@searchcraft/vue-sdk 0.12.1 → 0.13.0

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/dist/index.d.ts CHANGED
@@ -183,6 +183,7 @@ export interface FacetsFilterItem extends FilterItem {
183
183
  type: "facets";
184
184
  options: {
185
185
  showSublevel: boolean;
186
+ exclude?: string[];
186
187
  };
187
188
  }
188
189
  export interface NumericFilterItem extends FilterItem {
@@ -653,6 +654,7 @@ export interface SearchcraftStateFunctions {
653
654
  search: (options?: {
654
655
  skipSummary?: boolean;
655
656
  }) => Promise<void>;
657
+ setFilterPanelVisibility: (isVisible: boolean) => void;
656
658
  setPopoverVisibility: (isVisible: boolean) => void;
657
659
  setSearchResultsCount: (count: number) => void;
658
660
  setSearchResultsPage: (page: number) => void;
@@ -675,6 +677,7 @@ export interface SearchcraftStateValues {
675
677
  hotkey: string;
676
678
  hotkeyModifier: "ctrl" | "meta" | "alt" | "option";
677
679
  facetPathsForIndexFields: Record<string, FacetPathsForIndexField>;
680
+ isFilterPanelVisible: boolean;
678
681
  isPopoverVisible: boolean;
679
682
  isSearchInProgress: boolean;
680
683
  rangeValueForIndexFields: Record<string, RangeValueForIndexField>;
@@ -833,6 +836,10 @@ export namespace Components {
833
836
  * ```
834
837
  */
835
838
  interface SearchcraftFacetList {
839
+ /**
840
+ * Array of facet values to exclude from rendering.
841
+ */
842
+ "exclude"?: string[];
836
843
  /**
837
844
  * The name of the field where facets are applied.
838
845
  */
@@ -873,6 +880,14 @@ export namespace Components {
873
880
  * The items to filter.
874
881
  */
875
882
  "items": FilterItem[];
883
+ /**
884
+ * Controls whether the filter panel automatically hides/shows based on window size. - 'auto': Automatically hide/show based on window width - 'manual': User controls visibility manually
885
+ */
886
+ "responsiveBehavior"?: "auto" | "manual";
887
+ /**
888
+ * The breakpoint (in pixels) below which the filter panel will be hidden. Defaults to 768px (--sc-breakpoint-md).
889
+ */
890
+ "responsiveBreakpoint"?: number;
876
891
  /**
877
892
  * The id of the Searchcraft instance that this component should use.
878
893
  */
@@ -2082,6 +2097,10 @@ declare namespace LocalJSX {
2082
2097
  * ```
2083
2098
  */
2084
2099
  interface SearchcraftFacetList {
2100
+ /**
2101
+ * Array of facet values to exclude from rendering.
2102
+ */
2103
+ "exclude"?: string[];
2085
2104
  /**
2086
2105
  * The name of the field where facets are applied.
2087
2106
  */
@@ -2128,6 +2147,14 @@ declare namespace LocalJSX {
2128
2147
  * The items to filter.
2129
2148
  */
2130
2149
  "items"?: FilterItem[];
2150
+ /**
2151
+ * Controls whether the filter panel automatically hides/shows based on window size. - 'auto': Automatically hide/show based on window width - 'manual': User controls visibility manually
2152
+ */
2153
+ "responsiveBehavior"?: "auto" | "manual";
2154
+ /**
2155
+ * The breakpoint (in pixels) below which the filter panel will be hidden. Defaults to 768px (--sc-breakpoint-md).
2156
+ */
2157
+ "responsiveBreakpoint"?: number;
2131
2158
  /**
2132
2159
  * The id of the Searchcraft instance that this component should use.
2133
2160
  */