@searchstax-inc/searchstudio-ux-react 4.1.55 → 4.1.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/README.md +1 -0
- package/README.mustache +1 -0
- package/dist/@searchstax-inc/components/SearchstaxAnswerWidget.d.ts +1 -0
- package/dist/@searchstax-inc/components/SearchstaxFacetsWidget.d.ts +1 -0
- package/dist/@searchstax-inc/searchstudio-ux-react.cjs +9 -9
- package/dist/@searchstax-inc/searchstudio-ux-react.iife.js +11 -11
- package/dist/@searchstax-inc/searchstudio-ux-react.mjs +208 -198
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the "searchstudio-ux-react" project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [4.1.64]
|
|
6
|
+
### Features
|
|
7
|
+
- added ability to use answers widget for preview
|
|
8
|
+
|
|
9
|
+
## [4.1.59]
|
|
10
|
+
### Features
|
|
11
|
+
- introduced beforeFacetsRender hook to be able sort and change facets before they render
|
|
12
|
+
- added support for smart answers returning config for showMore functionality
|
|
13
|
+
|
|
5
14
|
## [4.1.55]
|
|
6
15
|
### Bug Fixes
|
|
7
16
|
- fixed related searches not being identified as links
|
package/README.md
CHANGED
|
@@ -1150,6 +1150,7 @@ Facet lists are configured and ordered on the Site Search [Faceting Tab](https:/
|
|
|
1150
1150
|
- itemsPerPageMobile: number; // default expanded facets for mobile
|
|
1151
1151
|
- facetsTemplateDesktop - template override for desktop view
|
|
1152
1152
|
- facetsTemplateMobile - template override for mobile view
|
|
1153
|
+
- beforeFacetsRender `(facets: IFacetData[]) => IFacetData[]` — Called with the current facets array before the widget renders. Return the same or a modified array to filter, reorder, or transform facets (e.g., hide certain facets or change their order).
|
|
1153
1154
|
|
|
1154
1155
|
|
|
1155
1156
|
**Main Template Desktop Override**
|
package/README.mustache
CHANGED
|
@@ -396,6 +396,7 @@ Facet lists are configured and ordered on the Site Search [Faceting Tab](https:/
|
|
|
396
396
|
- itemsPerPageMobile: number; // default expanded facets for mobile
|
|
397
397
|
- facetsTemplateDesktop - template override for desktop view
|
|
398
398
|
- facetsTemplateMobile - template override for mobile view
|
|
399
|
+
- beforeFacetsRender `(facets: IFacetData[]) => IFacetData[]` — Called with the current facets array before the widget renders. Return the same or a modified array to filter, reorder, or transform facets (e.g., hide certain facets or change their order).
|
|
399
400
|
|
|
400
401
|
|
|
401
402
|
**Main Template Desktop Override**
|
|
@@ -3,5 +3,6 @@ declare function SearchstaxAnswerWidget(props: {
|
|
|
3
3
|
searchAnswerTemplate?: (answerData: null | ISearchstaxAnswerData, showMore: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) => React.ReactElement;
|
|
4
4
|
feedbackwidget?: IFeedbackWidgetProperties;
|
|
5
5
|
showMoreAfterWordCount?: number;
|
|
6
|
+
testString?: string;
|
|
6
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default SearchstaxAnswerWidget;
|
|
@@ -10,5 +10,6 @@ declare function SearchstaxFacetsWidget(props: {
|
|
|
10
10
|
facetsTemplateMobile?: (facetsTemplateDataMobile: IFacetsTemplateData | null, selectedFacetsCheckboxes: IFacetValue[], facetContainers: {
|
|
11
11
|
[key: string]: React.LegacyRef<HTMLDivElement> | undefined;
|
|
12
12
|
}, isNotDeactivated: (name: string) => boolean, toggleFacetGroup: (name: string) => void, selectFacet: (index: string, event: React.MouseEvent<HTMLDivElement, MouseEvent>, data: IFacetValueData, isInput: boolean) => void, isChecked: (facetValue: IFacetValueData) => boolean | undefined, unselectFacet: (facet: IFacetValue) => void, showMoreLessMobile: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, data: IFacetData) => void, openOverlay: () => void, closeOverlay: () => void, unselectAll: () => void) => React.ReactElement;
|
|
13
|
+
beforeFacetsRender?: (facetsTemplateDataDesktop: IFacetData[]) => IFacetData[];
|
|
13
14
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export default SearchstaxFacetsWidget;
|