@searchstax-inc/searchstudio-ux-js 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 CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to the "searchstudio-ux-js" 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
5
13
 
6
14
  ## [4.1.55]
7
15
  ### Bug Fixes
package/README.md CHANGED
@@ -795,6 +795,8 @@ Each instance can be configured separately via its options object. This allows f
795
795
  - itemsPerPageDesktop: number; // default expanded facets for desktop
796
796
  - itemsPerPageMobile: number; // default expanded facets for mobile
797
797
  - templates - see examples below
798
+ - hooks: Optional object of lifecycle hooks to customize facet data before rendering. Supported hook:
799
+ - **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).
798
800
 
799
801
 
800
802
  **Main Template Desktop Override**
package/README.mustache CHANGED
@@ -545,6 +545,8 @@ Each instance can be configured separately via its options object. This allows f
545
545
  - itemsPerPageDesktop: number; // default expanded facets for desktop
546
546
  - itemsPerPageMobile: number; // default expanded facets for mobile
547
547
  - templates - see examples below
548
+ - hooks: Optional object of lifecycle hooks to customize facet data before rendering. Supported hook:
549
+ - **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).
548
550
 
549
551
 
550
552
  **Main Template Desktop Override**