Minor Changes
-
[angular] Metadata, Open Graph and Schema.org & JSON-LD Support (c7801c3)
@sitecore-content-sdk/content:resolvePageMetadataFields(withPageMetadataRouteFields/ResolvedPageMetadataFields) moved from@sitecore-content-sdk/nextjsto@sitecore-content-sdk/content/layout, so every framework shares the same field-to-tag rules.@sitecore-content-sdk/nextjskeeps re-exportingPageMetadataRouteFields.@sitecore-content-sdk/angular: addedPageMetadataService+<sc-page-meta-tags [route]>(<title>, metadata and Open Graph<meta>tags via Angular'sTitle/Metaservices) andJsonLdSchemaService+<sc-json-ld-schema [page]>(a single<script type="application/ld+json">in<head>, normal mode only). Re-exported thePageMetadataFields,MetadataFields,OpenGraphFields,OpenGraphImageField(Value)andPageMetadataRouteFieldstypes.- Angular template:
LayoutComponentrenders both components;RouteFieldsextendsPageMetadataFields.
-
Avoid throwing errors in scClient calls when context ID in browser is missing. (5184ea7)
- Replaces the GraphQL client used by scClient with no-op fallback in browser context, when public content ID is missing, preventing
getPage(),getDictionary()and other GraphQL-bound method from throwing. - Adds a guard into
getHeadLinks()call to return empty results when client context ID is missing, instead of throwing an error. - Client Context ID becomes required for rendering head links.
- Replaces the GraphQL client used by scClient with no-op fallback in browser context, when public content ID is missing, preventing
-
Apply
rewriteMediaUrlstoSitecoreClient.getDataresults so custom Experience Edge hostnames are rewritten in component GraphQL data. (5509bcd) -
Schema.org & JSON-LD Support (b858df1)
Patch Changes
- Send the Sitecore Context ID for Forms in the
x-sitecore-contextidheader instead of the query string, and use the public/client context ID for stylesheet<link>URLs so the server context ID is not rendered in page markup. (a8a17de) - Silence import-map codegen warnings for non-JS asset imports such as SCSS modules, SVGs, and images. Unresolved JavaScript and TypeScript modules still warn. (08d0014)