@depict-ai/react-ui 4.0.23 → 4.1.1

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.
@@ -1,9 +1,9 @@
1
1
  import { DPC } from "@depict-ai/dpc/latest";
2
2
  import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } from "react";
3
- import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } from "@depict-ai/ui/latest";
3
+ import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations, FilterWithData } from "@depict-ai/ui/latest";
4
4
  import { Locale } from "@depict-ai/ui/locales/latest";
5
5
  import { Display, ModernDisplay } from "@depict-ai/utilishared/latest";
6
- export const version = "4.0.23";
6
+ export const version = "4.1.1";
7
7
  interface UsePerformanceClientReturn {
8
8
  dpc: DPC;
9
9
  }
@@ -602,6 +602,15 @@ interface UseFetchRecommendationsReturn<T extends Display> {
602
602
  * @returns {UseFetchRecommendationsReturn}
603
603
  */
604
604
  export function useFetchRecommendations<T extends ModernDisplay>(): UseFetchRecommendationsReturn<T>;
605
+ /**
606
+ * Gives you some helpers that let you interact with the state of a category page
607
+ * @param stateKey the stateKey of the components to effect, leave unset if you haven't set a stateKey on your components.
608
+ */
609
+ export function useCategoryFilterHelpers(stateKey: string | undefined): {
610
+ categorySetShouldShowFilters: (shouldShow: boolean) => void;
611
+ categorySetFilter: (filter: FilterWithData) => void;
612
+ categoryExpandFilterGroup: (title: string) => void;
613
+ };
605
614
  /**
606
615
  * Helper function to navigate to a new page depending on the navigation library used.
607
616
  */
@@ -159,10 +159,18 @@ function $4d5c3f13a5ae62a7$export$e46079a2793e9ec7(props, set_portals) {
159
159
  }
160
160
  });
161
161
  }
162
- const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "4.0.23";
162
+ const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "4.1.1";
163
163
  function $2b1fdeb83610500f$export$9fac37a9c21c2f3b(props) {
164
164
  return props.children;
165
165
  }
166
+ function $2b1fdeb83610500f$export$72616730c1fad2f4() {
167
+ const noop = () => {};
168
+ return {
169
+ categorySetShouldShowFilters: noop,
170
+ categorySetFilter: noop,
171
+ categoryExpandFilterGroup: noop
172
+ };
173
+ }
166
174
  function $2b1fdeb83610500f$export$a54ec244c8863715() {
167
175
  return $eOXet$createElement("div", {
168
176
  children: []
@@ -263,4 +271,4 @@ function $2b1fdeb83610500f$export$6501da23a2770fc() {
263
271
  }
264
272
  };
265
273
  }
266
- export { $2b1fdeb83610500f$export$9fac37a9c21c2f3b as DepictProvider, $2b1fdeb83610500f$export$a54ec244c8863715 as SearchPage, $2b1fdeb83610500f$export$f7d2f673fc2f091d as CategoryPage, $2b1fdeb83610500f$export$5646050d516e06bc as BreadCrumbs, $2b1fdeb83610500f$export$466cdc317043f6cb as QuickLinks, $2b1fdeb83610500f$export$82cfdc85a4d15688 as RecommendationSlider, $2b1fdeb83610500f$export$80e99ee6b29cadd2 as ComponentAligner, $2b1fdeb83610500f$export$3f37af283f8fb843 as ImagePlaceholder, $2b1fdeb83610500f$export$b0a773486c1c2312 as RecommendationGrid, $2b1fdeb83610500f$export$89c6019e4baa40b1 as TextPlaceholder, $2b1fdeb83610500f$export$9bb30bbe003b82e0 as useSearchField, $2b1fdeb83610500f$export$a7f6cffb6b8ba11c as openModal, $2b1fdeb83610500f$export$912994940e660d32 as useSearchModal, $2b1fdeb83610500f$export$38b98fae14bd1f64 as usePerformanceClient, $2b1fdeb83610500f$export$6501da23a2770fc as useFetchRecommendations, $c9c4d066f9a5b51b$export$83d89fbfd8236492 as version };
274
+ export { $2b1fdeb83610500f$export$9fac37a9c21c2f3b as DepictProvider, $2b1fdeb83610500f$export$72616730c1fad2f4 as useCategoryFilterHelpers, $2b1fdeb83610500f$export$a54ec244c8863715 as SearchPage, $2b1fdeb83610500f$export$f7d2f673fc2f091d as CategoryPage, $2b1fdeb83610500f$export$5646050d516e06bc as BreadCrumbs, $2b1fdeb83610500f$export$466cdc317043f6cb as QuickLinks, $2b1fdeb83610500f$export$82cfdc85a4d15688 as RecommendationSlider, $2b1fdeb83610500f$export$80e99ee6b29cadd2 as ComponentAligner, $2b1fdeb83610500f$export$3f37af283f8fb843 as ImagePlaceholder, $2b1fdeb83610500f$export$b0a773486c1c2312 as RecommendationGrid, $2b1fdeb83610500f$export$89c6019e4baa40b1 as TextPlaceholder, $2b1fdeb83610500f$export$9bb30bbe003b82e0 as useSearchField, $2b1fdeb83610500f$export$a7f6cffb6b8ba11c as openModal, $2b1fdeb83610500f$export$912994940e660d32 as useSearchModal, $2b1fdeb83610500f$export$38b98fae14bd1f64 as usePerformanceClient, $2b1fdeb83610500f$export$6501da23a2770fc as useFetchRecommendations, $c9c4d066f9a5b51b$export$83d89fbfd8236492 as version };