Minor Changes
-
Add locale and facet support to search package and React hooks (ce89722)
SearchParametersnow accepts an optionallocalefield for multi-locale index configurationsSearchParametersnow accepts an optionalfacetfield (FacetRequest) to request facet counts and filter by facet valuesSearchResponsenow includes an optionalfacetsfield (FacetResult[]) with facet data when requested- Six new public types exported from
@sitecore-content-sdk/search:FacetRequest,FacetField,FacetFilter,FacetFilterOperator,FacetValue,FacetResult useSearchanduseInfiniteSearchhooks in@sitecore-content-sdk/reactupdated to support the newlocaleandfacetoptions and exposefacetsin the returned state
-
minor
@sitecore-content-sdk/searchdependency update:-
Add locale and facet support to search package and React hooks
-
SearchParametersnow accepts an optionallocalefield for multi-locale index configurations -
SearchParametersnow accepts an optionalfacetfield (FacetRequest) to request facet counts and filter by facet values -
SearchResponsenow includes an optionalfacetsfield (FacetResult[]) with facet data when requested -
Six new public types exported from
@sitecore-content-sdk/search:FacetRequest,FacetField,FacetFilter,FacetFilterOperator,FacetValue,FacetResult -
useSearchanduseInfiniteSearchhooks in@sitecore-content-sdk/reactupdated to support the newlocaleandfacetoptions and exposefacetsin the returned state (ce89722)
-
Patch Changes
-
Fix
RichTextrecreating nested DOM on parent re-renders by memoizingdangerouslySetInnerHTML, preserving event listeners on unchanged HTML. (938ddb6) -
Fix hydration mismatch warnings in Pages Editor for empty placeholders and placeholder/rendering chrome markers, most visibly with
AppPlaceholderin Next.js App Router. Sitecore Pages attaches chrome attributes (e.g.cursor: pointerstyling) to these SDK-owned elements directly in the DOM, which can happen before React hydration completes and previously surfaced as a "server rendered HTML didn't match the client" warning.suppressHydrationWarningis now set on these editing-only elements, since their DOM is expected to be mutated externally. (3b9edfe)Also fixes a separate "Each child in a list should have a unique key prop" warning from the same code path:
AppPlaceholder's outerPlaceholderMetadatakey now falls back to a placeholder-name-based key (placeholder-metadata-${name}) when the route rendering has nouid.