Skip to content

feature-content-blocks advanced

Everything else the package exports, for when you go beyond its components and hooks, such as your own queries or cache updates. Most projects never need these.

GraphQL documents9
ContentBlocksAssetFieldsThe fields of an image or file the CMS manages.
@evolve-storefront/feature-content-blocks/queries
ContentBlocksBlockFieldsEvery block the package renders by default.
@evolve-storefront/feature-content-blocks/queries
ContentBlocksColumnEntryFieldsThe fields of everything a layout column can hold.
@evolve-storefront/feature-content-blocks/queries
ContentBlocksContentSearchThe pages and articles that match a search term, and the CMS's keyword redirect.
@evolve-storefront/feature-content-blocks/queries
ContentBlocksGetSiteSettingsWhich page answers each recurring purpose: contact, terms, privacy and the like.
@evolve-storefront/feature-content-blocks/queries
ContentBlocksLinkFieldsThe fields of a CMS link; the registered ResourceLink builds its href.
@evolve-storefront/feature-content-blocks/queries
ContentBlocksRichTextFieldsThe fields of a rich-text block: the vendor-neutral tree with the links and embeds it refers to by id, which the built-in RichText renders for every CMS.
@evolve-storefront/feature-content-blocks/queries
GetContentPageThe CMS page at a path: its heading, intro, lead image, metadata and body blocks.
@evolve-storefront/feature-content-blocks/queries
GetContentSnippetA reusable CMS snippet by key, with its blocks.
@evolve-storefront/feature-content-blocks/queries
Data and cache helpers6
contentSearchHitHrefThe href of a content hit's page.
@evolve-storefront/feature-content-blocks
contentSearchPageTypeThe PageType of a hit's page, from its __typename; null for a type the schema adds later.
@evolve-storefront/feature-content-blocks
contentSearchRedirectHrefWhere the CMS's keyword list sends a search: a URL as given, a page through resolvePageHref as contentSearchHitHref does.
@evolve-storefront/feature-content-blocks
createRegistryFreeze a registry.
@evolve-storefront/feature-content-blocks
sitePagePathThe path, from the site root, of the page answering purpose; null where the editor picked none or it is not published, so the link it would carry is left out.
@evolve-storefront/feature-content-blocks
contentKeysreact-query key factory for CMS content.
@evolve-storefront/feature-content-blocks
Other functions and constants3
readContentSearchThe pages and articles that match a search term, at most limit (3 by default), and the CMS's keyword redirect.
@evolve-storefront/feature-content-blocks/queries
resourceLinkHrefThe destination value names, with anchor appended.
@evolve-storefront/feature-content-blocks/content-blocks
defaultBlocksEvery type the package renders, keyed by the GraphQL type name of the data its component receives.
@evolve-storefront/feature-content-blocks/content-blocks
Types79
ArticleAuthorWho wrote an article (schema Author), as its byline shows it.
@evolve-storefront/feature-content-blocks
ArticleCardAn article as a card shows it.
@evolve-storefront/feature-content-blocks
ArticleListArticle cards, picked by the editor or the newest matching its filters.
@evolve-storefront/feature-content-blocks
ArticleTopicWhat an article is about (schema Topic), as a link to the topic's page.
@evolve-storefront/feature-content-blocks
ArticleTopicHrefResolverThe app's href for a topic's page; its route is the site's.
@evolve-storefront/feature-content-blocks
AudienceTypeSchema AudienceType, verbatim: who a block is shown to, applied in the browser.
@evolve-storefront/feature-content-blocks
BlockAnything that can sit at the top level of a page body.
@evolve-storefront/feature-content-blocks
BrandA brand, resolved by commerce from the key the editor picked.
@evolve-storefront/feature-content-blocks
BrandListBrand logos that link to their brand pages, in the editor's order.
@evolve-storefront/feature-content-blocks
CampaignBannerA campaign: an image with the text beside it, and one call to action.
@evolve-storefront/feature-content-blocks
CategoryListEntrances to categories: the picked ones, else the children of parentCategory.
@evolve-storefront/feature-content-blocks
ColumnEntryAnything that can sit inside a column.
@evolve-storefront/feature-content-blocks
ColumnsTwo to four column entries side by side, stacked in order on a narrow screen.
@evolve-storefront/feature-content-blocks
ColumnsRatioTypeSchema ColumnsRatioType, verbatim: the width of two columns, in placement order.
@evolve-storefront/feature-content-blocks
ContentAssetAn image or file managed by the CMS.
@evolve-storefront/feature-content-blocks
ContentBlockAttributesWhat a caller may put on an entry's root element: the standard HTML surface plus data-*, which React's own attribute types do not cover.
@evolve-storefront/feature-content-blocks
ContentBlockComponent
@evolve-storefront/feature-content-blocks
ContentBlockDataThe GraphQL type behind each key the package renders.
@evolve-storefront/feature-content-blocks
ContentBlockNameEvery key the package's own components look up.
@evolve-storefront/feature-content-blocks
ContentBlockRegistryA map from GraphQL type name to the component that renders it.
@evolve-storefront/feature-content-blocks
ContentImage
@evolve-storefront/feature-content-blocks
ContentLinkA link with its own label, to one target (schema Link): a page, a product or a URL.
@evolve-storefront/feature-content-blocks
ContentLinkPageTypeThe kind of page a Link opens: the schema's Page implementations, verbatim.
@evolve-storefront/feature-content-blocks
ContentPage
@evolve-storefront/feature-content-blocks
ContentSearchHitA page or article that matches a search (ContentSearchHit).
@evolve-storefront/feature-content-blocks
ContentSearchPageThe page a content hit points at (schema interface Page); __typename says which kind.
@evolve-storefront/feature-content-blocks
ContentSearchPageHrefResolverThe app's href for a page a search links to, such as a catalog page by its category route.
@evolve-storefront/feature-content-blocks
ContentSearchPageTargetA page a search links to: its path without a leading slash or locale prefix, and its type.
@evolve-storefront/feature-content-blocks
ContentSearchPageTypeSchema PageType, verbatim: the kind of page a search sends the shopper to.
@evolve-storefront/feature-content-blocks
ContentSearchResultWhat the CMS answers to a search term (ContentSearchResult).
@evolve-storefront/feature-content-blocks
ContentSnippetReusable content, keyed rather than routed — a USP band, a service banner.
@evolve-storefront/feature-content-blocks
ContentTeaserAn image beside text, or text alone, with up to two links.
@evolve-storefront/feature-content-blocks
ContentVersionDraft or published — a preview request asks for the former.
@evolve-storefront/feature-content-blocks
Faq
@evolve-storefront/feature-content-blocks
FaqGroup
@evolve-storefront/feature-content-blocks
FaqItem
@evolve-storefront/feature-content-blocks
FigureOne key figure: a value, what it measures and where it comes from.
@evolve-storefront/feature-content-blocks
FigureListTwo to four key figures.
@evolve-storefront/feature-content-blocks
HotspotOne product pinned on a shoppable image, at a percentage of its width and height.
@evolve-storefront/feature-content-blocks
LinkVariantSchema LinkVariantType, verbatim: how prominent a link is where it is a call to action.
@evolve-storefront/feature-content-blocks
MessagesThe store's fixed system copy; a null field means the storefront's own default.
@evolve-storefront/feature-content-blocks
OpenGraph
@evolve-storefront/feature-content-blocks
PageHeadingSourceThe fields of a page that PageHeading reads; a content, article and catalog page all fit.
@evolve-storefront/feature-content-blocks
PageMeta
@evolve-storefront/feature-content-blocks
ProductCategoryA commerce category, as a category list links to it.
@evolve-storefront/feature-content-blocks
ProductListProducts the editor picked, or those a category and filters select.
@evolve-storefront/feature-content-blocks
ProductVariantThe product a ProductList card is made of.
@evolve-storefront/feature-content-blocks
PromoA card that links somewhere: in a promo list, in a product grid and in a menu.
@evolve-storefront/feature-content-blocks
PromoListPromo cards in a row, in the editor's order.
@evolve-storefront/feature-content-blocks
registryWrapEntryThe wrapper a registry was built with, if any.
@evolve-storefront/feature-content-blocks
RenderableAnything the dispatcher can resolve a name from.
@evolve-storefront/feature-content-blocks
ResourceLinkA link the CMS authored.
@evolve-storefront/feature-content-blocks
ResourceLinkTypeWhat a link points at, which decides how a href is built from value.
@evolve-storefront/feature-content-blocks
RichTextRich text from any CMS, as the framework's vendor-neutral tree.
@evolve-storefront/feature-content-blocks
RichTextDocument
@evolve-storefront/feature-content-blocks
RichTextEmbed
@evolve-storefront/feature-content-blocks
RichTextLink
@evolve-storefront/feature-content-blocks
RichTextLinkKindLinkKindType: a page of the site by its path, or a URL.
@evolve-storefront/feature-content-blocks
RichTextNodeA node of the rich text tree.
@evolve-storefront/feature-content-blocks
SearchRedirectWhere a keyword rule sends a search (SearchRedirect).
@evolve-storefront/feature-content-blocks
ShoppableImageAn image with products pinned on it.
@evolve-storefront/feature-content-blocks
SitePageA page SiteSettings points at: its heading, for a link's label, and its path.
@evolve-storefront/feature-content-blocks
SitePurposeA purpose SiteSettings names a page for.
@evolve-storefront/feature-content-blocks
SiteSettingsWhich page answers each recurring purpose; null where none is picked or published.
@evolve-storefront/feature-content-blocks
StepOne step of a step list.
@evolve-storefront/feature-content-blocks
StepListTwo to four numbered steps, in the editor's order.
@evolve-storefront/feature-content-blocks
TableOfContentsLinks to the anchors on the page; the block holds only its title.
@evolve-storefront/feature-content-blocks
TableOfContentsEntryOne link of a table of contents: the anchor on the page and the words to show.
@evolve-storefront/feature-content-blocks
TipA highlighted tip, in a page body or inside rich text.
@evolve-storefront/feature-content-blocks
Usp
@evolve-storefront/feature-content-blocks
UspIconSchema UspIconType, verbatim: the icon before a selling point's title.
@evolve-storefront/feature-content-blocks
UspListThe store's selling points, two to six of them.
@evolve-storefront/feature-content-blocks
VideoA YouTube video, with its accessible name.
@evolve-storefront/feature-content-blocks
WrapEntryWraps every entry the dispatcher renders, whatever its type and wherever it sits.
@evolve-storefront/feature-content-blocks
YoutubeVideo
@evolve-storefront/feature-content-blocks
PreviewAudienceThe variants an editor previews: the visitor who is not logged in, and the customer who is.
@evolve-storefront/feature-content-blocks/content-audience
ArticleTopicLinkRendererA link with the app's router — its Link, or a plain anchor by default.
@evolve-storefront/feature-content-blocks/content-blocks
ContentSearchLinkRendererA link with the app's router — its Link, or a plain anchor by default.
@evolve-storefront/feature-content-blocks/content-blocks
RenderableBlockThe minimum a renderable entry has to carry: its type, and something to key on.
@evolve-storefront/feature-content-blocks/content-blocks

Not listed: 10 props and options types. They appear as the tables on the pages of what they type.