@depict-ai/ui 4.6.1 → 4.7.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/ES10/index.cjs CHANGED
@@ -104,7 +104,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
104
104
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
105
105
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
106
106
  /*! Depict.ai search and product listing SDK */
107
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.6.1";
107
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.0";
108
108
  function $d6d51b09cb2116a6$export$5bad61ecde080b1f() {
109
109
  const {
110
110
  collapse: collapse,
@@ -6472,7 +6472,9 @@ function $1a8463d757baadb6$export$8895d39404bd2bb1(props) {
6472
6472
  local_filter_cache_: [get_local_filter_cache, set_local_filter_cache],
6473
6473
  selected_filters_: [get_selected_filters, set_selected_filters],
6474
6474
  expanded_hierarchical_filters_: [get_expanded_hierarchical_filters, set_expanded_hierarchical_filters],
6475
- delay_toast_: delay_toast_
6475
+ delay_toast_: delay_toast_,
6476
+ expanded_filters_: expanded_filters_,
6477
+ filters_open_: filters_open_
6476
6478
  } = props;
6477
6479
  const previous_selected_filters = $52FdA$solidjs.untrack(get_selected_filters);
6478
6480
  if (!previous_selected_filters.length) {
@@ -6481,9 +6483,13 @@ function $1a8463d757baadb6$export$8895d39404bd2bb1(props) {
6481
6483
  if (delay_toast_) return () => {};
6482
6484
  return;
6483
6485
  }
6486
+ const previousExpandedFilters = $52FdA$solidjs.untrack(() => expanded_filters_ === null || expanded_filters_ === void 0 ? void 0 : expanded_filters_[0]());
6487
+ const previousFiltersOpen = $52FdA$solidjs.untrack(() => filters_open_ === null || filters_open_ === void 0 ? void 0 : filters_open_[0]());
6484
6488
  const previous_expanded_hierarchical_filters = $52FdA$solidjs.untrack(get_expanded_hierarchical_filters);
6485
6489
  const previous_local_filter_cache = $52FdA$solidjs.untrack(get_local_filter_cache);
6486
6490
  const statement_accessor = user_triggered_ ? i18n_.filters_cleared_ : i18n_.we_cleared_your_filters_;
6491
+ expanded_filters_ === null || expanded_filters_ === void 0 || expanded_filters_[1]([]);
6492
+ filters_open_ === null || filters_open_ === void 0 || filters_open_[1](false);
6487
6493
  set_selected_filters([]);
6488
6494
  scrollTo({
6489
6495
  top: 0
@@ -6509,7 +6515,7 @@ function $1a8463d757baadb6$export$8895d39404bd2bb1(props) {
6509
6515
  close_toast_: close_toast_
6510
6516
  } = $5909f8d84b7b4c30$export$5196e4c01fa56fcb({
6511
6517
  class: "cleared_filters",
6512
- close_after_: 30000,
6518
+ close_after_: 10000,
6513
6519
  on_close_: on_toast_hidden,
6514
6520
  children: [(() => {
6515
6521
  var _el$ = $52FdA$solidjsweb.getNextElement($1a8463d757baadb6$var$_tmpl$);
@@ -6522,7 +6528,9 @@ function $1a8463d757baadb6$export$8895d39404bd2bb1(props) {
6522
6528
  $52FdA$solidjsweb.addEventListener(_el$3, "click", $52FdA$depictaiutilishared.catchify(() => {
6523
6529
  set_selected_filters(previous_selected_filters);
6524
6530
  set_expanded_hierarchical_filters(previous_expanded_hierarchical_filters);
6531
+ if (previousExpandedFilters) expanded_filters_ === null || expanded_filters_ === void 0 || expanded_filters_[1](previousExpandedFilters);
6525
6532
  if (also_clear_sorting_ && previous_sorting) props.current_sorting_[1](previous_sorting);
6533
+ if (typeof previousFiltersOpen === "boolean") filters_open_ === null || filters_open_ === void 0 || filters_open_[1](previousFiltersOpen);
6526
6534
  // also restore previous filter cache, I think this should trigger a correct re-merging with newly in-came filters from backend in case there are any. This is because selected filters otherwise might not exist anymore and therefore can't be viewed in the UI
6527
6535
  set_local_filter_cache(previous_local_filter_cache);
6528
6536
  scrollTo({
@@ -10749,7 +10757,9 @@ function $1c0d0256826edea6$export$e026af0c7b64ea5f(_ref) {
10749
10757
  current_sorting_: current_sorting_,
10750
10758
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
10751
10759
  i18n_: i18n_,
10752
- local_filter_cache_: local_filter_cache_
10760
+ local_filter_cache_: local_filter_cache_,
10761
+ expanded_filters_: expanded_filters_,
10762
+ filters_open_: filters_open_
10753
10763
  } = _ref;
10754
10764
  const [get_selected_filters] = selected_filters_;
10755
10765
  // Possible values:
@@ -10777,7 +10787,9 @@ function $1c0d0256826edea6$export$e026af0c7b64ea5f(_ref) {
10777
10787
  also_clear_sorting_: true,
10778
10788
  current_sorting_: current_sorting_,
10779
10789
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
10780
- local_filter_cache_: local_filter_cache_
10790
+ local_filter_cache_: local_filter_cache_,
10791
+ expanded_filters_: expanded_filters_,
10792
+ filters_open_: filters_open_
10781
10793
  });
10782
10794
  }
10783
10795
  }), {
@@ -14451,7 +14463,9 @@ class $ddd39c5f36f49703$export$ac6237957a15b3f0 {
14451
14463
  current_sorting_: current_sorting_,
14452
14464
  expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
14453
14465
  i18n_: i18n_,
14454
- local_filter_cache_: state_.local_filter_cache
14466
+ local_filter_cache_: state_.local_filter_cache,
14467
+ expanded_filters_: state_.expanded_filters,
14468
+ filters_open_: state_.filters_open
14455
14469
  });
14456
14470
  $ddd39c5f36f49703$export$dde08b2dca8cc1ce.set(this, {
14457
14471
  search_query_url_param_name_: search_query_url_param_name_,
@@ -15527,7 +15541,9 @@ function $8b366fdb0c76194d$export$3945d6db2dfd3d12(_ref) {
15527
15541
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
15528
15542
  plp_results_: plp_results_,
15529
15543
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
15530
- id_type_: id_type_
15544
+ id_type_: id_type_,
15545
+ expanded_filters_: expanded_filters_,
15546
+ filters_open_: filters_open_
15531
15547
  } = _ref;
15532
15548
  // If we just got opened in a new tab, clear filters instantly and remove the flag
15533
15549
  $8b366fdb0c76194d$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
@@ -15536,7 +15552,9 @@ function $8b366fdb0c76194d$export$3945d6db2dfd3d12(_ref) {
15536
15552
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
15537
15553
  selected_filters_: selected_filters_,
15538
15554
  i18n_: i18n_,
15539
- sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
15555
+ sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
15556
+ expanded_filters_: expanded_filters_,
15557
+ filters_open_: filters_open_
15540
15558
  });
15541
15559
  // The code below is for when we're already open and the user navigates to a new category
15542
15560
  let previous_crumb_data = $52FdA$solidjs.untrack(crumb_data_);
@@ -15572,7 +15590,9 @@ function $8b366fdb0c76194d$export$3945d6db2dfd3d12(_ref) {
15572
15590
  also_clear_sorting_: false,
15573
15591
  selected_filters_: selected_filters_,
15574
15592
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
15575
- local_filter_cache_: local_filter_cache_
15593
+ local_filter_cache_: local_filter_cache_,
15594
+ expanded_filters_: expanded_filters_,
15595
+ filters_open_: filters_open_
15576
15596
  });
15577
15597
  // Also ensure we don't have `sideways_url_params_flag` set anymore
15578
15598
  sideways_filter_clearing_flag_[1](false);
@@ -15593,7 +15613,9 @@ function $8b366fdb0c76194d$var$clear_if_opened_new_tab_with_sideways_url_params_
15593
15613
  i18n_: i18n_,
15594
15614
  selected_filters_: selected_filters_,
15595
15615
  local_filter_cache_: local_filter_cache_,
15596
- sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_]
15616
+ sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_],
15617
+ expanded_filters_: expanded_filters_,
15618
+ filters_open_: filters_open_
15597
15619
  } = _ref3;
15598
15620
  const tracking_function_for_plp_results = $52FdA$solidjs.createReaction(() => {
15599
15621
  // On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
@@ -15608,7 +15630,9 @@ function $8b366fdb0c76194d$var$clear_if_opened_new_tab_with_sideways_url_params_
15608
15630
  also_clear_sorting_: false,
15609
15631
  selected_filters_: selected_filters_,
15610
15632
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
15611
- local_filter_cache_: local_filter_cache_
15633
+ local_filter_cache_: local_filter_cache_,
15634
+ filters_open_: filters_open_,
15635
+ expanded_filters_: expanded_filters_
15612
15636
  });
15613
15637
  });
15614
15638
  });
@@ -15935,7 +15959,9 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
15935
15959
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
15936
15960
  plp_results_: plp_products_,
15937
15961
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
15938
- id_type_: id_type_
15962
+ id_type_: id_type_,
15963
+ expanded_filters_: expanded_filters_,
15964
+ filters_open_: category_filters_open_
15939
15965
  });
15940
15966
  get_breadcrumb_accessor_ === null || get_breadcrumb_accessor_ === void 0 || get_breadcrumb_accessor_(crumb_data_);
15941
15967
  get_quicklinks_accessor_ === null || get_quicklinks_accessor_ === void 0 || get_quicklinks_accessor_(quicklinks_data_);
package/ES10/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.6.1";
14
+ export const version = "4.7.0";
15
15
  /**
16
16
  * Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
17
17
  */
package/ES10/index.js CHANGED
@@ -10,7 +10,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
10
10
  /*! Depict.ai search and product listing SDK */
11
11
  import { register_es_version } from "../multi_import_deduplicator.mjs";
12
12
  register_es_version("ui", "ES10");
13
- const $8db9a15135765c11$export$83d89fbfd8236492 = "4.6.1";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.0";
14
14
  function $8e8b179489080711$export$5bad61ecde080b1f() {
15
15
  const {
16
16
  collapse: collapse,
@@ -6378,7 +6378,9 @@ function $b4465d8d605f61e9$export$8895d39404bd2bb1(props) {
6378
6378
  local_filter_cache_: [get_local_filter_cache, set_local_filter_cache],
6379
6379
  selected_filters_: [get_selected_filters, set_selected_filters],
6380
6380
  expanded_hierarchical_filters_: [get_expanded_hierarchical_filters, set_expanded_hierarchical_filters],
6381
- delay_toast_: delay_toast_
6381
+ delay_toast_: delay_toast_,
6382
+ expanded_filters_: expanded_filters_,
6383
+ filters_open_: filters_open_
6382
6384
  } = props;
6383
6385
  const previous_selected_filters = $8tj43$untrack(get_selected_filters);
6384
6386
  if (!previous_selected_filters.length) {
@@ -6387,9 +6389,13 @@ function $b4465d8d605f61e9$export$8895d39404bd2bb1(props) {
6387
6389
  if (delay_toast_) return () => {};
6388
6390
  return;
6389
6391
  }
6392
+ const previousExpandedFilters = $8tj43$untrack(() => expanded_filters_ === null || expanded_filters_ === void 0 ? void 0 : expanded_filters_[0]());
6393
+ const previousFiltersOpen = $8tj43$untrack(() => filters_open_ === null || filters_open_ === void 0 ? void 0 : filters_open_[0]());
6390
6394
  const previous_expanded_hierarchical_filters = $8tj43$untrack(get_expanded_hierarchical_filters);
6391
6395
  const previous_local_filter_cache = $8tj43$untrack(get_local_filter_cache);
6392
6396
  const statement_accessor = user_triggered_ ? i18n_.filters_cleared_ : i18n_.we_cleared_your_filters_;
6397
+ expanded_filters_ === null || expanded_filters_ === void 0 || expanded_filters_[1]([]);
6398
+ filters_open_ === null || filters_open_ === void 0 || filters_open_[1](false);
6393
6399
  set_selected_filters([]);
6394
6400
  scrollTo({
6395
6401
  top: 0
@@ -6415,7 +6421,7 @@ function $b4465d8d605f61e9$export$8895d39404bd2bb1(props) {
6415
6421
  close_toast_: close_toast_
6416
6422
  } = $a61a2051e15c8d7a$export$5196e4c01fa56fcb({
6417
6423
  class: "cleared_filters",
6418
- close_after_: 30000,
6424
+ close_after_: 10000,
6419
6425
  on_close_: on_toast_hidden,
6420
6426
  children: [(() => {
6421
6427
  var _el$ = $8tj43$getNextElement($b4465d8d605f61e9$var$_tmpl$);
@@ -6428,7 +6434,9 @@ function $b4465d8d605f61e9$export$8895d39404bd2bb1(props) {
6428
6434
  $8tj43$addEventListener(_el$3, "click", $8tj43$catchify(() => {
6429
6435
  set_selected_filters(previous_selected_filters);
6430
6436
  set_expanded_hierarchical_filters(previous_expanded_hierarchical_filters);
6437
+ if (previousExpandedFilters) expanded_filters_ === null || expanded_filters_ === void 0 || expanded_filters_[1](previousExpandedFilters);
6431
6438
  if (also_clear_sorting_ && previous_sorting) props.current_sorting_[1](previous_sorting);
6439
+ if (typeof previousFiltersOpen === "boolean") filters_open_ === null || filters_open_ === void 0 || filters_open_[1](previousFiltersOpen);
6432
6440
  // also restore previous filter cache, I think this should trigger a correct re-merging with newly in-came filters from backend in case there are any. This is because selected filters otherwise might not exist anymore and therefore can't be viewed in the UI
6433
6441
  set_local_filter_cache(previous_local_filter_cache);
6434
6442
  scrollTo({
@@ -10655,7 +10663,9 @@ function $d8a66ba54a42eb3e$export$e026af0c7b64ea5f(_ref) {
10655
10663
  current_sorting_: current_sorting_,
10656
10664
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
10657
10665
  i18n_: i18n_,
10658
- local_filter_cache_: local_filter_cache_
10666
+ local_filter_cache_: local_filter_cache_,
10667
+ expanded_filters_: expanded_filters_,
10668
+ filters_open_: filters_open_
10659
10669
  } = _ref;
10660
10670
  const [get_selected_filters] = selected_filters_;
10661
10671
  // Possible values:
@@ -10683,7 +10693,9 @@ function $d8a66ba54a42eb3e$export$e026af0c7b64ea5f(_ref) {
10683
10693
  also_clear_sorting_: true,
10684
10694
  current_sorting_: current_sorting_,
10685
10695
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
10686
- local_filter_cache_: local_filter_cache_
10696
+ local_filter_cache_: local_filter_cache_,
10697
+ expanded_filters_: expanded_filters_,
10698
+ filters_open_: filters_open_
10687
10699
  });
10688
10700
  }
10689
10701
  }), {
@@ -14357,7 +14369,9 @@ class $eb064bc3350276c1$export$ac6237957a15b3f0 {
14357
14369
  current_sorting_: current_sorting_,
14358
14370
  expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
14359
14371
  i18n_: i18n_,
14360
- local_filter_cache_: state_.local_filter_cache
14372
+ local_filter_cache_: state_.local_filter_cache,
14373
+ expanded_filters_: state_.expanded_filters,
14374
+ filters_open_: state_.filters_open
14361
14375
  });
14362
14376
  $eb064bc3350276c1$export$dde08b2dca8cc1ce.set(this, {
14363
14377
  search_query_url_param_name_: search_query_url_param_name_,
@@ -15433,7 +15447,9 @@ function $a4777acaffa35a82$export$3945d6db2dfd3d12(_ref) {
15433
15447
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
15434
15448
  plp_results_: plp_results_,
15435
15449
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
15436
- id_type_: id_type_
15450
+ id_type_: id_type_,
15451
+ expanded_filters_: expanded_filters_,
15452
+ filters_open_: filters_open_
15437
15453
  } = _ref;
15438
15454
  // If we just got opened in a new tab, clear filters instantly and remove the flag
15439
15455
  $a4777acaffa35a82$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
@@ -15442,7 +15458,9 @@ function $a4777acaffa35a82$export$3945d6db2dfd3d12(_ref) {
15442
15458
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
15443
15459
  selected_filters_: selected_filters_,
15444
15460
  i18n_: i18n_,
15445
- sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
15461
+ sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
15462
+ expanded_filters_: expanded_filters_,
15463
+ filters_open_: filters_open_
15446
15464
  });
15447
15465
  // The code below is for when we're already open and the user navigates to a new category
15448
15466
  let previous_crumb_data = $8tj43$untrack(crumb_data_);
@@ -15478,7 +15496,9 @@ function $a4777acaffa35a82$export$3945d6db2dfd3d12(_ref) {
15478
15496
  also_clear_sorting_: false,
15479
15497
  selected_filters_: selected_filters_,
15480
15498
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
15481
- local_filter_cache_: local_filter_cache_
15499
+ local_filter_cache_: local_filter_cache_,
15500
+ expanded_filters_: expanded_filters_,
15501
+ filters_open_: filters_open_
15482
15502
  });
15483
15503
  // Also ensure we don't have `sideways_url_params_flag` set anymore
15484
15504
  sideways_filter_clearing_flag_[1](false);
@@ -15499,7 +15519,9 @@ function $a4777acaffa35a82$var$clear_if_opened_new_tab_with_sideways_url_params_
15499
15519
  i18n_: i18n_,
15500
15520
  selected_filters_: selected_filters_,
15501
15521
  local_filter_cache_: local_filter_cache_,
15502
- sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_]
15522
+ sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_],
15523
+ expanded_filters_: expanded_filters_,
15524
+ filters_open_: filters_open_
15503
15525
  } = _ref3;
15504
15526
  const tracking_function_for_plp_results = $8tj43$createReaction(() => {
15505
15527
  // On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
@@ -15514,7 +15536,9 @@ function $a4777acaffa35a82$var$clear_if_opened_new_tab_with_sideways_url_params_
15514
15536
  also_clear_sorting_: false,
15515
15537
  selected_filters_: selected_filters_,
15516
15538
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
15517
- local_filter_cache_: local_filter_cache_
15539
+ local_filter_cache_: local_filter_cache_,
15540
+ filters_open_: filters_open_,
15541
+ expanded_filters_: expanded_filters_
15518
15542
  });
15519
15543
  });
15520
15544
  });
@@ -15841,7 +15865,9 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
15841
15865
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
15842
15866
  plp_results_: plp_products_,
15843
15867
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
15844
- id_type_: id_type_
15868
+ id_type_: id_type_,
15869
+ expanded_filters_: expanded_filters_,
15870
+ filters_open_: category_filters_open_
15845
15871
  });
15846
15872
  get_breadcrumb_accessor_ === null || get_breadcrumb_accessor_ === void 0 || get_breadcrumb_accessor_(crumb_data_);
15847
15873
  get_quicklinks_accessor_ === null || get_quicklinks_accessor_ === void 0 || get_quicklinks_accessor_(quicklinks_data_);
package/latest/index.cjs CHANGED
@@ -98,7 +98,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
98
98
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
99
99
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
100
100
  /*! Depict.ai search and product listing SDK */
101
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.6.1";
101
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.0";
102
102
  function $4b455f60dadde8b8$export$5bad61ecde080b1f(...params) {
103
103
  const {
104
104
  collapse: collapse,
@@ -6182,7 +6182,9 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
6182
6182
  local_filter_cache_: [get_local_filter_cache, set_local_filter_cache],
6183
6183
  selected_filters_: [get_selected_filters, set_selected_filters],
6184
6184
  expanded_hierarchical_filters_: [get_expanded_hierarchical_filters, set_expanded_hierarchical_filters],
6185
- delay_toast_: delay_toast_
6185
+ delay_toast_: delay_toast_,
6186
+ expanded_filters_: expanded_filters_,
6187
+ filters_open_: filters_open_
6186
6188
  } = props;
6187
6189
  const previous_selected_filters = $gVhhF$solidjs.untrack(get_selected_filters);
6188
6190
  if (!previous_selected_filters.length) {
@@ -6191,9 +6193,13 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
6191
6193
  if (delay_toast_) return () => {};
6192
6194
  return;
6193
6195
  }
6196
+ const previousExpandedFilters = $gVhhF$solidjs.untrack(() => expanded_filters_?.[0]());
6197
+ const previousFiltersOpen = $gVhhF$solidjs.untrack(() => filters_open_?.[0]());
6194
6198
  const previous_expanded_hierarchical_filters = $gVhhF$solidjs.untrack(get_expanded_hierarchical_filters);
6195
6199
  const previous_local_filter_cache = $gVhhF$solidjs.untrack(get_local_filter_cache);
6196
6200
  const statement_accessor = user_triggered_ ? i18n_.filters_cleared_ : i18n_.we_cleared_your_filters_;
6201
+ expanded_filters_?.[1]([]);
6202
+ filters_open_?.[1](false);
6197
6203
  set_selected_filters([]);
6198
6204
  scrollTo({
6199
6205
  top: 0
@@ -6219,7 +6225,7 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
6219
6225
  close_toast_: close_toast_
6220
6226
  } = $ee498ec5e7dc2bba$export$5196e4c01fa56fcb({
6221
6227
  class: "cleared_filters",
6222
- close_after_: 30000,
6228
+ close_after_: 10000,
6223
6229
  on_close_: on_toast_hidden,
6224
6230
  children: [(() => {
6225
6231
  var _el$ = $gVhhF$solidjsweb.getNextElement($47e2cc552c02110c$var$_tmpl$);
@@ -6232,7 +6238,9 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
6232
6238
  $gVhhF$solidjsweb.addEventListener(_el$3, "click", $gVhhF$depictaiutilishared.catchify(() => {
6233
6239
  set_selected_filters(previous_selected_filters);
6234
6240
  set_expanded_hierarchical_filters(previous_expanded_hierarchical_filters);
6241
+ if (previousExpandedFilters) expanded_filters_?.[1](previousExpandedFilters);
6235
6242
  if (also_clear_sorting_ && previous_sorting) props.current_sorting_[1](previous_sorting);
6243
+ if (typeof previousFiltersOpen === "boolean") filters_open_?.[1](previousFiltersOpen);
6236
6244
  // also restore previous filter cache, I think this should trigger a correct re-merging with newly in-came filters from backend in case there are any. This is because selected filters otherwise might not exist anymore and therefore can't be viewed in the UI
6237
6245
  set_local_filter_cache(previous_local_filter_cache);
6238
6246
  scrollTo({
@@ -10105,7 +10113,9 @@ function $b34ce0b89e6db4e1$export$e026af0c7b64ea5f({
10105
10113
  current_sorting_: current_sorting_,
10106
10114
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
10107
10115
  i18n_: i18n_,
10108
- local_filter_cache_: local_filter_cache_
10116
+ local_filter_cache_: local_filter_cache_,
10117
+ expanded_filters_: expanded_filters_,
10118
+ filters_open_: filters_open_
10109
10119
  }) {
10110
10120
  const [get_selected_filters] = selected_filters_;
10111
10121
  // Possible values:
@@ -10133,7 +10143,9 @@ function $b34ce0b89e6db4e1$export$e026af0c7b64ea5f({
10133
10143
  also_clear_sorting_: true,
10134
10144
  current_sorting_: current_sorting_,
10135
10145
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
10136
- local_filter_cache_: local_filter_cache_
10146
+ local_filter_cache_: local_filter_cache_,
10147
+ expanded_filters_: expanded_filters_,
10148
+ filters_open_: filters_open_
10137
10149
  });
10138
10150
  }
10139
10151
  }), {
@@ -13565,7 +13577,9 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
13565
13577
  current_sorting_: current_sorting_,
13566
13578
  expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
13567
13579
  i18n_: i18n_,
13568
- local_filter_cache_: state_.local_filter_cache
13580
+ local_filter_cache_: state_.local_filter_cache,
13581
+ expanded_filters_: state_.expanded_filters,
13582
+ filters_open_: state_.filters_open
13569
13583
  });
13570
13584
  $2c61e4cd8229c49a$export$dde08b2dca8cc1ce.set(this, {
13571
13585
  search_query_url_param_name_: search_query_url_param_name_,
@@ -14503,7 +14517,9 @@ function $ef972f5c10b1c5b4$export$3945d6db2dfd3d12({
14503
14517
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
14504
14518
  plp_results_: plp_results_,
14505
14519
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
14506
- id_type_: id_type_
14520
+ id_type_: id_type_,
14521
+ expanded_filters_: expanded_filters_,
14522
+ filters_open_: filters_open_
14507
14523
  }) {
14508
14524
  // If we just got opened in a new tab, clear filters instantly and remove the flag
14509
14525
  $ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
@@ -14512,7 +14528,9 @@ function $ef972f5c10b1c5b4$export$3945d6db2dfd3d12({
14512
14528
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
14513
14529
  selected_filters_: selected_filters_,
14514
14530
  i18n_: i18n_,
14515
- sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
14531
+ sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
14532
+ expanded_filters_: expanded_filters_,
14533
+ filters_open_: filters_open_
14516
14534
  });
14517
14535
  // The code below is for when we're already open and the user navigates to a new category
14518
14536
  let previous_crumb_data = $gVhhF$solidjs.untrack(crumb_data_);
@@ -14545,7 +14563,9 @@ function $ef972f5c10b1c5b4$export$3945d6db2dfd3d12({
14545
14563
  also_clear_sorting_: false,
14546
14564
  selected_filters_: selected_filters_,
14547
14565
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
14548
- local_filter_cache_: local_filter_cache_
14566
+ local_filter_cache_: local_filter_cache_,
14567
+ expanded_filters_: expanded_filters_,
14568
+ filters_open_: filters_open_
14549
14569
  });
14550
14570
  // Also ensure we don't have `sideways_url_params_flag` set anymore
14551
14571
  sideways_filter_clearing_flag_[1](false);
@@ -14565,7 +14585,9 @@ function $ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_
14565
14585
  i18n_: i18n_,
14566
14586
  selected_filters_: selected_filters_,
14567
14587
  local_filter_cache_: local_filter_cache_,
14568
- sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_]
14588
+ sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_],
14589
+ expanded_filters_: expanded_filters_,
14590
+ filters_open_: filters_open_
14569
14591
  }) {
14570
14592
  const tracking_function_for_plp_results = $gVhhF$solidjs.createReaction(() => {
14571
14593
  // On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
@@ -14580,7 +14602,9 @@ function $ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_
14580
14602
  also_clear_sorting_: false,
14581
14603
  selected_filters_: selected_filters_,
14582
14604
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
14583
- local_filter_cache_: local_filter_cache_
14605
+ local_filter_cache_: local_filter_cache_,
14606
+ filters_open_: filters_open_,
14607
+ expanded_filters_: expanded_filters_
14584
14608
  });
14585
14609
  });
14586
14610
  });
@@ -14876,7 +14900,9 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
14876
14900
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
14877
14901
  plp_results_: plp_products_,
14878
14902
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
14879
- id_type_: id_type_
14903
+ id_type_: id_type_,
14904
+ expanded_filters_: expanded_filters_,
14905
+ filters_open_: category_filters_open_
14880
14906
  });
14881
14907
  get_breadcrumb_accessor_?.(crumb_data_);
14882
14908
  get_quicklinks_accessor_?.(quicklinks_data_);
package/latest/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.6.1";
14
+ export const version = "4.7.0";
15
15
  /**
16
16
  * Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
17
17
  */
package/latest/index.js CHANGED
@@ -7,7 +7,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from
7
7
  /*! Depict.ai search and product listing SDK */
8
8
  import { register_es_version } from "../multi_import_deduplicator.mjs";
9
9
  register_es_version("ui", "latest");
10
- const $ec291e0010116877$export$83d89fbfd8236492 = "4.6.1";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.0";
11
11
  function $24e27fab9c821b86$export$5bad61ecde080b1f(...params) {
12
12
  const {
13
13
  collapse: collapse,
@@ -6091,7 +6091,9 @@ function $e9342fb3ac73a54a$export$8895d39404bd2bb1(props) {
6091
6091
  local_filter_cache_: [get_local_filter_cache, set_local_filter_cache],
6092
6092
  selected_filters_: [get_selected_filters, set_selected_filters],
6093
6093
  expanded_hierarchical_filters_: [get_expanded_hierarchical_filters, set_expanded_hierarchical_filters],
6094
- delay_toast_: delay_toast_
6094
+ delay_toast_: delay_toast_,
6095
+ expanded_filters_: expanded_filters_,
6096
+ filters_open_: filters_open_
6095
6097
  } = props;
6096
6098
  const previous_selected_filters = $9HbP8$untrack(get_selected_filters);
6097
6099
  if (!previous_selected_filters.length) {
@@ -6100,9 +6102,13 @@ function $e9342fb3ac73a54a$export$8895d39404bd2bb1(props) {
6100
6102
  if (delay_toast_) return () => {};
6101
6103
  return;
6102
6104
  }
6105
+ const previousExpandedFilters = $9HbP8$untrack(() => expanded_filters_?.[0]());
6106
+ const previousFiltersOpen = $9HbP8$untrack(() => filters_open_?.[0]());
6103
6107
  const previous_expanded_hierarchical_filters = $9HbP8$untrack(get_expanded_hierarchical_filters);
6104
6108
  const previous_local_filter_cache = $9HbP8$untrack(get_local_filter_cache);
6105
6109
  const statement_accessor = user_triggered_ ? i18n_.filters_cleared_ : i18n_.we_cleared_your_filters_;
6110
+ expanded_filters_?.[1]([]);
6111
+ filters_open_?.[1](false);
6106
6112
  set_selected_filters([]);
6107
6113
  scrollTo({
6108
6114
  top: 0
@@ -6128,7 +6134,7 @@ function $e9342fb3ac73a54a$export$8895d39404bd2bb1(props) {
6128
6134
  close_toast_: close_toast_
6129
6135
  } = $bf52d9f9eebd1938$export$5196e4c01fa56fcb({
6130
6136
  class: "cleared_filters",
6131
- close_after_: 30000,
6137
+ close_after_: 10000,
6132
6138
  on_close_: on_toast_hidden,
6133
6139
  children: [(() => {
6134
6140
  var _el$ = $9HbP8$getNextElement($e9342fb3ac73a54a$var$_tmpl$);
@@ -6141,7 +6147,9 @@ function $e9342fb3ac73a54a$export$8895d39404bd2bb1(props) {
6141
6147
  $9HbP8$addEventListener(_el$3, "click", $9HbP8$catchify(() => {
6142
6148
  set_selected_filters(previous_selected_filters);
6143
6149
  set_expanded_hierarchical_filters(previous_expanded_hierarchical_filters);
6150
+ if (previousExpandedFilters) expanded_filters_?.[1](previousExpandedFilters);
6144
6151
  if (also_clear_sorting_ && previous_sorting) props.current_sorting_[1](previous_sorting);
6152
+ if (typeof previousFiltersOpen === "boolean") filters_open_?.[1](previousFiltersOpen);
6145
6153
  // also restore previous filter cache, I think this should trigger a correct re-merging with newly in-came filters from backend in case there are any. This is because selected filters otherwise might not exist anymore and therefore can't be viewed in the UI
6146
6154
  set_local_filter_cache(previous_local_filter_cache);
6147
6155
  scrollTo({
@@ -10014,7 +10022,9 @@ function $48d7e4a9707315b6$export$e026af0c7b64ea5f({
10014
10022
  current_sorting_: current_sorting_,
10015
10023
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
10016
10024
  i18n_: i18n_,
10017
- local_filter_cache_: local_filter_cache_
10025
+ local_filter_cache_: local_filter_cache_,
10026
+ expanded_filters_: expanded_filters_,
10027
+ filters_open_: filters_open_
10018
10028
  }) {
10019
10029
  const [get_selected_filters] = selected_filters_;
10020
10030
  // Possible values:
@@ -10042,7 +10052,9 @@ function $48d7e4a9707315b6$export$e026af0c7b64ea5f({
10042
10052
  also_clear_sorting_: true,
10043
10053
  current_sorting_: current_sorting_,
10044
10054
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
10045
- local_filter_cache_: local_filter_cache_
10055
+ local_filter_cache_: local_filter_cache_,
10056
+ expanded_filters_: expanded_filters_,
10057
+ filters_open_: filters_open_
10046
10058
  });
10047
10059
  }
10048
10060
  }), {
@@ -13474,7 +13486,9 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
13474
13486
  current_sorting_: current_sorting_,
13475
13487
  expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
13476
13488
  i18n_: i18n_,
13477
- local_filter_cache_: state_.local_filter_cache
13489
+ local_filter_cache_: state_.local_filter_cache,
13490
+ expanded_filters_: state_.expanded_filters,
13491
+ filters_open_: state_.filters_open
13478
13492
  });
13479
13493
  $806c97b931758897$export$dde08b2dca8cc1ce.set(this, {
13480
13494
  search_query_url_param_name_: search_query_url_param_name_,
@@ -14412,7 +14426,9 @@ function $e7fce80abe608e01$export$3945d6db2dfd3d12({
14412
14426
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
14413
14427
  plp_results_: plp_results_,
14414
14428
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
14415
- id_type_: id_type_
14429
+ id_type_: id_type_,
14430
+ expanded_filters_: expanded_filters_,
14431
+ filters_open_: filters_open_
14416
14432
  }) {
14417
14433
  // If we just got opened in a new tab, clear filters instantly and remove the flag
14418
14434
  $e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
@@ -14421,7 +14437,9 @@ function $e7fce80abe608e01$export$3945d6db2dfd3d12({
14421
14437
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
14422
14438
  selected_filters_: selected_filters_,
14423
14439
  i18n_: i18n_,
14424
- sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
14440
+ sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
14441
+ expanded_filters_: expanded_filters_,
14442
+ filters_open_: filters_open_
14425
14443
  });
14426
14444
  // The code below is for when we're already open and the user navigates to a new category
14427
14445
  let previous_crumb_data = $9HbP8$untrack(crumb_data_);
@@ -14454,7 +14472,9 @@ function $e7fce80abe608e01$export$3945d6db2dfd3d12({
14454
14472
  also_clear_sorting_: false,
14455
14473
  selected_filters_: selected_filters_,
14456
14474
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
14457
- local_filter_cache_: local_filter_cache_
14475
+ local_filter_cache_: local_filter_cache_,
14476
+ expanded_filters_: expanded_filters_,
14477
+ filters_open_: filters_open_
14458
14478
  });
14459
14479
  // Also ensure we don't have `sideways_url_params_flag` set anymore
14460
14480
  sideways_filter_clearing_flag_[1](false);
@@ -14474,7 +14494,9 @@ function $e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_
14474
14494
  i18n_: i18n_,
14475
14495
  selected_filters_: selected_filters_,
14476
14496
  local_filter_cache_: local_filter_cache_,
14477
- sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_]
14497
+ sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_],
14498
+ expanded_filters_: expanded_filters_,
14499
+ filters_open_: filters_open_
14478
14500
  }) {
14479
14501
  const tracking_function_for_plp_results = $9HbP8$createReaction(() => {
14480
14502
  // On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
@@ -14489,7 +14511,9 @@ function $e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_
14489
14511
  also_clear_sorting_: false,
14490
14512
  selected_filters_: selected_filters_,
14491
14513
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
14492
- local_filter_cache_: local_filter_cache_
14514
+ local_filter_cache_: local_filter_cache_,
14515
+ filters_open_: filters_open_,
14516
+ expanded_filters_: expanded_filters_
14493
14517
  });
14494
14518
  });
14495
14519
  });
@@ -14785,7 +14809,9 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
14785
14809
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
14786
14810
  plp_results_: plp_products_,
14787
14811
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
14788
- id_type_: id_type_
14812
+ id_type_: id_type_,
14813
+ expanded_filters_: expanded_filters_,
14814
+ filters_open_: category_filters_open_
14789
14815
  });
14790
14816
  get_breadcrumb_accessor_?.(crumb_data_);
14791
14817
  get_quicklinks_accessor_?.(quicklinks_data_);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.6.1",
3
+ "version": "4.7.0",
4
4
  "description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
5
5
  "packageManager": "yarn@3.2.2",
6
6
  "sass": "styles.scss",
@@ -236,9 +236,9 @@
236
236
  "@babel/plugin-transform-typescript": "^7.22.9",
237
237
  "@babel/runtime": "latest",
238
238
  "@babel/runtime-corejs3": "^7.22.6",
239
- "@depict-ai/plp-styling": "^4.3.1",
240
- "@depict-ai/types": "^5.3.1",
241
- "@depict-ai/utilishared": "^2.3.1",
239
+ "@depict-ai/plp-styling": "^4.4.0",
240
+ "@depict-ai/types": "^5.4.0",
241
+ "@depict-ai/utilishared": "^2.4.0",
242
242
  "solid-js": "^1.8.12"
243
243
  },
244
244
  "type": "module",
@@ -104,7 +104,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
104
104
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
105
105
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
106
106
  /*! Depict.ai search and product listing SDK */
107
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.6.1";
107
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.0";
108
108
  function $d6d51b09cb2116a6$export$5bad61ecde080b1f() {
109
109
  const {
110
110
  collapse: collapse,
@@ -8810,7 +8810,9 @@ function $1a8463d757baadb6$export$8895d39404bd2bb1(props) {
8810
8810
  local_filter_cache_: [get_local_filter_cache, set_local_filter_cache],
8811
8811
  selected_filters_: [get_selected_filters, set_selected_filters],
8812
8812
  expanded_hierarchical_filters_: [get_expanded_hierarchical_filters, set_expanded_hierarchical_filters],
8813
- delay_toast_: delay_toast_
8813
+ delay_toast_: delay_toast_,
8814
+ expanded_filters_: expanded_filters_,
8815
+ filters_open_: filters_open_
8814
8816
  } = props;
8815
8817
  const previous_selected_filters = $3hooq$solidjs.untrack(get_selected_filters);
8816
8818
  if (!previous_selected_filters.length) {
@@ -8819,9 +8821,13 @@ function $1a8463d757baadb6$export$8895d39404bd2bb1(props) {
8819
8821
  if (delay_toast_) return () => {};
8820
8822
  return;
8821
8823
  }
8824
+ const previousExpandedFilters = $3hooq$solidjs.untrack(() => expanded_filters_ === null || expanded_filters_ === void 0 ? void 0 : expanded_filters_[0]());
8825
+ const previousFiltersOpen = $3hooq$solidjs.untrack(() => filters_open_ === null || filters_open_ === void 0 ? void 0 : filters_open_[0]());
8822
8826
  const previous_expanded_hierarchical_filters = $3hooq$solidjs.untrack(get_expanded_hierarchical_filters);
8823
8827
  const previous_local_filter_cache = $3hooq$solidjs.untrack(get_local_filter_cache);
8824
8828
  const statement_accessor = user_triggered_ ? i18n_.filters_cleared_ : i18n_.we_cleared_your_filters_;
8829
+ expanded_filters_ === null || expanded_filters_ === void 0 || expanded_filters_[1]([]);
8830
+ filters_open_ === null || filters_open_ === void 0 || filters_open_[1](false);
8825
8831
  set_selected_filters([]);
8826
8832
  scrollTo({
8827
8833
  top: 0
@@ -8847,7 +8853,7 @@ function $1a8463d757baadb6$export$8895d39404bd2bb1(props) {
8847
8853
  close_toast_: close_toast_
8848
8854
  } = $5909f8d84b7b4c30$export$5196e4c01fa56fcb({
8849
8855
  class: "cleared_filters",
8850
- close_after_: 30000,
8856
+ close_after_: 10000,
8851
8857
  on_close_: on_toast_hidden,
8852
8858
  children: [$3hooq$solidjsweb.ssr($1a8463d757baadb6$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(statement_accessor())), $3hooq$solidjsweb.ssr($1a8463d757baadb6$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(i18n_.restore_()), $3hooq$solidjsweb.escape(i18n_.ok_()))]
8853
8859
  }));
@@ -8861,7 +8867,9 @@ function $1c0d0256826edea6$export$e026af0c7b64ea5f(_ref) {
8861
8867
  current_sorting_: current_sorting_,
8862
8868
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
8863
8869
  i18n_: i18n_,
8864
- local_filter_cache_: local_filter_cache_
8870
+ local_filter_cache_: local_filter_cache_,
8871
+ expanded_filters_: expanded_filters_,
8872
+ filters_open_: filters_open_
8865
8873
  } = _ref;
8866
8874
  const [get_selected_filters] = selected_filters_;
8867
8875
  // Possible values:
@@ -8889,7 +8897,9 @@ function $1c0d0256826edea6$export$e026af0c7b64ea5f(_ref) {
8889
8897
  also_clear_sorting_: true,
8890
8898
  current_sorting_: current_sorting_,
8891
8899
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
8892
- local_filter_cache_: local_filter_cache_
8900
+ local_filter_cache_: local_filter_cache_,
8901
+ expanded_filters_: expanded_filters_,
8902
+ filters_open_: filters_open_
8893
8903
  });
8894
8904
  }
8895
8905
  }), {
@@ -11946,7 +11956,9 @@ class $ddd39c5f36f49703$export$ac6237957a15b3f0 {
11946
11956
  current_sorting_: current_sorting_,
11947
11957
  expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
11948
11958
  i18n_: i18n_,
11949
- local_filter_cache_: state_.local_filter_cache
11959
+ local_filter_cache_: state_.local_filter_cache,
11960
+ expanded_filters_: state_.expanded_filters,
11961
+ filters_open_: state_.filters_open
11950
11962
  });
11951
11963
  $ddd39c5f36f49703$export$dde08b2dca8cc1ce.set(this, {
11952
11964
  search_query_url_param_name_: search_query_url_param_name_,
@@ -12977,7 +12989,9 @@ function $8b366fdb0c76194d$export$3945d6db2dfd3d12(_ref) {
12977
12989
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12978
12990
  plp_results_: plp_results_,
12979
12991
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
12980
- id_type_: id_type_
12992
+ id_type_: id_type_,
12993
+ expanded_filters_: expanded_filters_,
12994
+ filters_open_: filters_open_
12981
12995
  } = _ref;
12982
12996
  // If we just got opened in a new tab, clear filters instantly and remove the flag
12983
12997
  $8b366fdb0c76194d$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
@@ -12986,7 +13000,9 @@ function $8b366fdb0c76194d$export$3945d6db2dfd3d12(_ref) {
12986
13000
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12987
13001
  selected_filters_: selected_filters_,
12988
13002
  i18n_: i18n_,
12989
- sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
13003
+ sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
13004
+ expanded_filters_: expanded_filters_,
13005
+ filters_open_: filters_open_
12990
13006
  });
12991
13007
  // The code below is for when we're already open and the user navigates to a new category
12992
13008
  let previous_crumb_data = $3hooq$solidjs.untrack(crumb_data_);
@@ -13022,7 +13038,9 @@ function $8b366fdb0c76194d$export$3945d6db2dfd3d12(_ref) {
13022
13038
  also_clear_sorting_: false,
13023
13039
  selected_filters_: selected_filters_,
13024
13040
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
13025
- local_filter_cache_: local_filter_cache_
13041
+ local_filter_cache_: local_filter_cache_,
13042
+ expanded_filters_: expanded_filters_,
13043
+ filters_open_: filters_open_
13026
13044
  });
13027
13045
  // Also ensure we don't have `sideways_url_params_flag` set anymore
13028
13046
  sideways_filter_clearing_flag_[1](false);
@@ -13043,7 +13061,9 @@ function $8b366fdb0c76194d$var$clear_if_opened_new_tab_with_sideways_url_params_
13043
13061
  i18n_: i18n_,
13044
13062
  selected_filters_: selected_filters_,
13045
13063
  local_filter_cache_: local_filter_cache_,
13046
- sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_]
13064
+ sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_],
13065
+ expanded_filters_: expanded_filters_,
13066
+ filters_open_: filters_open_
13047
13067
  } = _ref3;
13048
13068
  const tracking_function_for_plp_results = $3hooq$solidjs.createReaction(() => {
13049
13069
  // On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
@@ -13058,7 +13078,9 @@ function $8b366fdb0c76194d$var$clear_if_opened_new_tab_with_sideways_url_params_
13058
13078
  also_clear_sorting_: false,
13059
13079
  selected_filters_: selected_filters_,
13060
13080
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
13061
- local_filter_cache_: local_filter_cache_
13081
+ local_filter_cache_: local_filter_cache_,
13082
+ filters_open_: filters_open_,
13083
+ expanded_filters_: expanded_filters_
13062
13084
  });
13063
13085
  });
13064
13086
  });
@@ -13329,7 +13351,9 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
13329
13351
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
13330
13352
  plp_results_: plp_products_,
13331
13353
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
13332
- id_type_: id_type_
13354
+ id_type_: id_type_,
13355
+ expanded_filters_: expanded_filters_,
13356
+ filters_open_: category_filters_open_
13333
13357
  });
13334
13358
  get_breadcrumb_accessor_ === null || get_breadcrumb_accessor_ === void 0 || get_breadcrumb_accessor_(crumb_data_);
13335
13359
  get_quicklinks_accessor_ === null || get_quicklinks_accessor_ === void 0 || get_quicklinks_accessor_(quicklinks_data_);
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.6.1";
14
+ export const version = "4.7.0";
15
15
  /**
16
16
  * Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
17
17
  */
@@ -10,7 +10,7 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
10
10
  /*! Depict.ai search and product listing SDK */
11
11
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
12
12
  register_es_version("ui", "ES10");
13
- const $8db9a15135765c11$export$83d89fbfd8236492 = "4.6.1";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.0";
14
14
  function $8e8b179489080711$export$5bad61ecde080b1f() {
15
15
  const {
16
16
  collapse: collapse,
@@ -8716,7 +8716,9 @@ function $b4465d8d605f61e9$export$8895d39404bd2bb1(props) {
8716
8716
  local_filter_cache_: [get_local_filter_cache, set_local_filter_cache],
8717
8717
  selected_filters_: [get_selected_filters, set_selected_filters],
8718
8718
  expanded_hierarchical_filters_: [get_expanded_hierarchical_filters, set_expanded_hierarchical_filters],
8719
- delay_toast_: delay_toast_
8719
+ delay_toast_: delay_toast_,
8720
+ expanded_filters_: expanded_filters_,
8721
+ filters_open_: filters_open_
8720
8722
  } = props;
8721
8723
  const previous_selected_filters = $b8hua$untrack(get_selected_filters);
8722
8724
  if (!previous_selected_filters.length) {
@@ -8725,9 +8727,13 @@ function $b4465d8d605f61e9$export$8895d39404bd2bb1(props) {
8725
8727
  if (delay_toast_) return () => {};
8726
8728
  return;
8727
8729
  }
8730
+ const previousExpandedFilters = $b8hua$untrack(() => expanded_filters_ === null || expanded_filters_ === void 0 ? void 0 : expanded_filters_[0]());
8731
+ const previousFiltersOpen = $b8hua$untrack(() => filters_open_ === null || filters_open_ === void 0 ? void 0 : filters_open_[0]());
8728
8732
  const previous_expanded_hierarchical_filters = $b8hua$untrack(get_expanded_hierarchical_filters);
8729
8733
  const previous_local_filter_cache = $b8hua$untrack(get_local_filter_cache);
8730
8734
  const statement_accessor = user_triggered_ ? i18n_.filters_cleared_ : i18n_.we_cleared_your_filters_;
8735
+ expanded_filters_ === null || expanded_filters_ === void 0 || expanded_filters_[1]([]);
8736
+ filters_open_ === null || filters_open_ === void 0 || filters_open_[1](false);
8731
8737
  set_selected_filters([]);
8732
8738
  scrollTo({
8733
8739
  top: 0
@@ -8753,7 +8759,7 @@ function $b4465d8d605f61e9$export$8895d39404bd2bb1(props) {
8753
8759
  close_toast_: close_toast_
8754
8760
  } = $a61a2051e15c8d7a$export$5196e4c01fa56fcb({
8755
8761
  class: "cleared_filters",
8756
- close_after_: 30000,
8762
+ close_after_: 10000,
8757
8763
  on_close_: on_toast_hidden,
8758
8764
  children: [$b8hua$ssr($b4465d8d605f61e9$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(statement_accessor())), $b8hua$ssr($b4465d8d605f61e9$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape(i18n_.restore_()), $b8hua$escape(i18n_.ok_()))]
8759
8765
  }));
@@ -8767,7 +8773,9 @@ function $d8a66ba54a42eb3e$export$e026af0c7b64ea5f(_ref) {
8767
8773
  current_sorting_: current_sorting_,
8768
8774
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
8769
8775
  i18n_: i18n_,
8770
- local_filter_cache_: local_filter_cache_
8776
+ local_filter_cache_: local_filter_cache_,
8777
+ expanded_filters_: expanded_filters_,
8778
+ filters_open_: filters_open_
8771
8779
  } = _ref;
8772
8780
  const [get_selected_filters] = selected_filters_;
8773
8781
  // Possible values:
@@ -8795,7 +8803,9 @@ function $d8a66ba54a42eb3e$export$e026af0c7b64ea5f(_ref) {
8795
8803
  also_clear_sorting_: true,
8796
8804
  current_sorting_: current_sorting_,
8797
8805
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
8798
- local_filter_cache_: local_filter_cache_
8806
+ local_filter_cache_: local_filter_cache_,
8807
+ expanded_filters_: expanded_filters_,
8808
+ filters_open_: filters_open_
8799
8809
  });
8800
8810
  }
8801
8811
  }), {
@@ -11852,7 +11862,9 @@ class $eb064bc3350276c1$export$ac6237957a15b3f0 {
11852
11862
  current_sorting_: current_sorting_,
11853
11863
  expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
11854
11864
  i18n_: i18n_,
11855
- local_filter_cache_: state_.local_filter_cache
11865
+ local_filter_cache_: state_.local_filter_cache,
11866
+ expanded_filters_: state_.expanded_filters,
11867
+ filters_open_: state_.filters_open
11856
11868
  });
11857
11869
  $eb064bc3350276c1$export$dde08b2dca8cc1ce.set(this, {
11858
11870
  search_query_url_param_name_: search_query_url_param_name_,
@@ -12883,7 +12895,9 @@ function $a4777acaffa35a82$export$3945d6db2dfd3d12(_ref) {
12883
12895
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12884
12896
  plp_results_: plp_results_,
12885
12897
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
12886
- id_type_: id_type_
12898
+ id_type_: id_type_,
12899
+ expanded_filters_: expanded_filters_,
12900
+ filters_open_: filters_open_
12887
12901
  } = _ref;
12888
12902
  // If we just got opened in a new tab, clear filters instantly and remove the flag
12889
12903
  $a4777acaffa35a82$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
@@ -12892,7 +12906,9 @@ function $a4777acaffa35a82$export$3945d6db2dfd3d12(_ref) {
12892
12906
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12893
12907
  selected_filters_: selected_filters_,
12894
12908
  i18n_: i18n_,
12895
- sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
12909
+ sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
12910
+ expanded_filters_: expanded_filters_,
12911
+ filters_open_: filters_open_
12896
12912
  });
12897
12913
  // The code below is for when we're already open and the user navigates to a new category
12898
12914
  let previous_crumb_data = $b8hua$untrack(crumb_data_);
@@ -12928,7 +12944,9 @@ function $a4777acaffa35a82$export$3945d6db2dfd3d12(_ref) {
12928
12944
  also_clear_sorting_: false,
12929
12945
  selected_filters_: selected_filters_,
12930
12946
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12931
- local_filter_cache_: local_filter_cache_
12947
+ local_filter_cache_: local_filter_cache_,
12948
+ expanded_filters_: expanded_filters_,
12949
+ filters_open_: filters_open_
12932
12950
  });
12933
12951
  // Also ensure we don't have `sideways_url_params_flag` set anymore
12934
12952
  sideways_filter_clearing_flag_[1](false);
@@ -12949,7 +12967,9 @@ function $a4777acaffa35a82$var$clear_if_opened_new_tab_with_sideways_url_params_
12949
12967
  i18n_: i18n_,
12950
12968
  selected_filters_: selected_filters_,
12951
12969
  local_filter_cache_: local_filter_cache_,
12952
- sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_]
12970
+ sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_],
12971
+ expanded_filters_: expanded_filters_,
12972
+ filters_open_: filters_open_
12953
12973
  } = _ref3;
12954
12974
  const tracking_function_for_plp_results = $b8hua$createReaction(() => {
12955
12975
  // On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
@@ -12964,7 +12984,9 @@ function $a4777acaffa35a82$var$clear_if_opened_new_tab_with_sideways_url_params_
12964
12984
  also_clear_sorting_: false,
12965
12985
  selected_filters_: selected_filters_,
12966
12986
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12967
- local_filter_cache_: local_filter_cache_
12987
+ local_filter_cache_: local_filter_cache_,
12988
+ filters_open_: filters_open_,
12989
+ expanded_filters_: expanded_filters_
12968
12990
  });
12969
12991
  });
12970
12992
  });
@@ -13235,7 +13257,9 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
13235
13257
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
13236
13258
  plp_results_: plp_products_,
13237
13259
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
13238
- id_type_: id_type_
13260
+ id_type_: id_type_,
13261
+ expanded_filters_: expanded_filters_,
13262
+ filters_open_: category_filters_open_
13239
13263
  });
13240
13264
  get_breadcrumb_accessor_ === null || get_breadcrumb_accessor_ === void 0 || get_breadcrumb_accessor_(crumb_data_);
13241
13265
  get_quicklinks_accessor_ === null || get_quicklinks_accessor_ === void 0 || get_quicklinks_accessor_(quicklinks_data_);
@@ -98,7 +98,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
98
98
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
99
99
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
100
100
  /*! Depict.ai search and product listing SDK */
101
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.6.1";
101
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.0";
102
102
  function $4b455f60dadde8b8$export$5bad61ecde080b1f(...params) {
103
103
  const {
104
104
  collapse: collapse,
@@ -8224,7 +8224,9 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
8224
8224
  local_filter_cache_: [get_local_filter_cache, set_local_filter_cache],
8225
8225
  selected_filters_: [get_selected_filters, set_selected_filters],
8226
8226
  expanded_hierarchical_filters_: [get_expanded_hierarchical_filters, set_expanded_hierarchical_filters],
8227
- delay_toast_: delay_toast_
8227
+ delay_toast_: delay_toast_,
8228
+ expanded_filters_: expanded_filters_,
8229
+ filters_open_: filters_open_
8228
8230
  } = props;
8229
8231
  const previous_selected_filters = $5vyXB$solidjs.untrack(get_selected_filters);
8230
8232
  if (!previous_selected_filters.length) {
@@ -8233,9 +8235,13 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
8233
8235
  if (delay_toast_) return () => {};
8234
8236
  return;
8235
8237
  }
8238
+ const previousExpandedFilters = $5vyXB$solidjs.untrack(() => expanded_filters_?.[0]());
8239
+ const previousFiltersOpen = $5vyXB$solidjs.untrack(() => filters_open_?.[0]());
8236
8240
  const previous_expanded_hierarchical_filters = $5vyXB$solidjs.untrack(get_expanded_hierarchical_filters);
8237
8241
  const previous_local_filter_cache = $5vyXB$solidjs.untrack(get_local_filter_cache);
8238
8242
  const statement_accessor = user_triggered_ ? i18n_.filters_cleared_ : i18n_.we_cleared_your_filters_;
8243
+ expanded_filters_?.[1]([]);
8244
+ filters_open_?.[1](false);
8239
8245
  set_selected_filters([]);
8240
8246
  scrollTo({
8241
8247
  top: 0
@@ -8261,7 +8267,7 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
8261
8267
  close_toast_: close_toast_
8262
8268
  } = $ee498ec5e7dc2bba$export$5196e4c01fa56fcb({
8263
8269
  class: "cleared_filters",
8264
- close_after_: 30000,
8270
+ close_after_: 10000,
8265
8271
  on_close_: on_toast_hidden,
8266
8272
  children: [$5vyXB$solidjsweb.ssr($47e2cc552c02110c$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(statement_accessor())), $5vyXB$solidjsweb.ssr($47e2cc552c02110c$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(i18n_.restore_()), $5vyXB$solidjsweb.escape(i18n_.ok_()))]
8267
8273
  }));
@@ -8274,7 +8280,9 @@ function $b34ce0b89e6db4e1$export$e026af0c7b64ea5f({
8274
8280
  current_sorting_: current_sorting_,
8275
8281
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
8276
8282
  i18n_: i18n_,
8277
- local_filter_cache_: local_filter_cache_
8283
+ local_filter_cache_: local_filter_cache_,
8284
+ expanded_filters_: expanded_filters_,
8285
+ filters_open_: filters_open_
8278
8286
  }) {
8279
8287
  const [get_selected_filters] = selected_filters_;
8280
8288
  // Possible values:
@@ -8302,7 +8310,9 @@ function $b34ce0b89e6db4e1$export$e026af0c7b64ea5f({
8302
8310
  also_clear_sorting_: true,
8303
8311
  current_sorting_: current_sorting_,
8304
8312
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
8305
- local_filter_cache_: local_filter_cache_
8313
+ local_filter_cache_: local_filter_cache_,
8314
+ expanded_filters_: expanded_filters_,
8315
+ filters_open_: filters_open_
8306
8316
  });
8307
8317
  }
8308
8318
  }), {
@@ -11131,7 +11141,9 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
11131
11141
  current_sorting_: current_sorting_,
11132
11142
  expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
11133
11143
  i18n_: i18n_,
11134
- local_filter_cache_: state_.local_filter_cache
11144
+ local_filter_cache_: state_.local_filter_cache,
11145
+ expanded_filters_: state_.expanded_filters,
11146
+ filters_open_: state_.filters_open
11135
11147
  });
11136
11148
  $2c61e4cd8229c49a$export$dde08b2dca8cc1ce.set(this, {
11137
11149
  search_query_url_param_name_: search_query_url_param_name_,
@@ -12026,7 +12038,9 @@ function $ef972f5c10b1c5b4$export$3945d6db2dfd3d12({
12026
12038
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12027
12039
  plp_results_: plp_results_,
12028
12040
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
12029
- id_type_: id_type_
12041
+ id_type_: id_type_,
12042
+ expanded_filters_: expanded_filters_,
12043
+ filters_open_: filters_open_
12030
12044
  }) {
12031
12045
  // If we just got opened in a new tab, clear filters instantly and remove the flag
12032
12046
  $ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
@@ -12035,7 +12049,9 @@ function $ef972f5c10b1c5b4$export$3945d6db2dfd3d12({
12035
12049
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12036
12050
  selected_filters_: selected_filters_,
12037
12051
  i18n_: i18n_,
12038
- sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
12052
+ sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
12053
+ expanded_filters_: expanded_filters_,
12054
+ filters_open_: filters_open_
12039
12055
  });
12040
12056
  // The code below is for when we're already open and the user navigates to a new category
12041
12057
  let previous_crumb_data = $5vyXB$solidjs.untrack(crumb_data_);
@@ -12068,7 +12084,9 @@ function $ef972f5c10b1c5b4$export$3945d6db2dfd3d12({
12068
12084
  also_clear_sorting_: false,
12069
12085
  selected_filters_: selected_filters_,
12070
12086
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12071
- local_filter_cache_: local_filter_cache_
12087
+ local_filter_cache_: local_filter_cache_,
12088
+ expanded_filters_: expanded_filters_,
12089
+ filters_open_: filters_open_
12072
12090
  });
12073
12091
  // Also ensure we don't have `sideways_url_params_flag` set anymore
12074
12092
  sideways_filter_clearing_flag_[1](false);
@@ -12088,7 +12106,9 @@ function $ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_
12088
12106
  i18n_: i18n_,
12089
12107
  selected_filters_: selected_filters_,
12090
12108
  local_filter_cache_: local_filter_cache_,
12091
- sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_]
12109
+ sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_],
12110
+ expanded_filters_: expanded_filters_,
12111
+ filters_open_: filters_open_
12092
12112
  }) {
12093
12113
  const tracking_function_for_plp_results = $5vyXB$solidjs.createReaction(() => {
12094
12114
  // On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
@@ -12103,7 +12123,9 @@ function $ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_
12103
12123
  also_clear_sorting_: false,
12104
12124
  selected_filters_: selected_filters_,
12105
12125
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12106
- local_filter_cache_: local_filter_cache_
12126
+ local_filter_cache_: local_filter_cache_,
12127
+ filters_open_: filters_open_,
12128
+ expanded_filters_: expanded_filters_
12107
12129
  });
12108
12130
  });
12109
12131
  });
@@ -12346,7 +12368,9 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
12346
12368
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12347
12369
  plp_results_: plp_products_,
12348
12370
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
12349
- id_type_: id_type_
12371
+ id_type_: id_type_,
12372
+ expanded_filters_: expanded_filters_,
12373
+ filters_open_: category_filters_open_
12350
12374
  });
12351
12375
  get_breadcrumb_accessor_?.(crumb_data_);
12352
12376
  get_quicklinks_accessor_?.(quicklinks_data_);
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.6.1";
14
+ export const version = "4.7.0";
15
15
  /**
16
16
  * Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
17
17
  */
@@ -7,7 +7,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
7
7
  /*! Depict.ai search and product listing SDK */
8
8
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
9
9
  register_es_version("ui", "latest");
10
- const $ec291e0010116877$export$83d89fbfd8236492 = "4.6.1";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.0";
11
11
  function $24e27fab9c821b86$export$5bad61ecde080b1f(...params) {
12
12
  const {
13
13
  collapse: collapse,
@@ -8133,7 +8133,9 @@ function $e9342fb3ac73a54a$export$8895d39404bd2bb1(props) {
8133
8133
  local_filter_cache_: [get_local_filter_cache, set_local_filter_cache],
8134
8134
  selected_filters_: [get_selected_filters, set_selected_filters],
8135
8135
  expanded_hierarchical_filters_: [get_expanded_hierarchical_filters, set_expanded_hierarchical_filters],
8136
- delay_toast_: delay_toast_
8136
+ delay_toast_: delay_toast_,
8137
+ expanded_filters_: expanded_filters_,
8138
+ filters_open_: filters_open_
8137
8139
  } = props;
8138
8140
  const previous_selected_filters = $i7OB2$untrack(get_selected_filters);
8139
8141
  if (!previous_selected_filters.length) {
@@ -8142,9 +8144,13 @@ function $e9342fb3ac73a54a$export$8895d39404bd2bb1(props) {
8142
8144
  if (delay_toast_) return () => {};
8143
8145
  return;
8144
8146
  }
8147
+ const previousExpandedFilters = $i7OB2$untrack(() => expanded_filters_?.[0]());
8148
+ const previousFiltersOpen = $i7OB2$untrack(() => filters_open_?.[0]());
8145
8149
  const previous_expanded_hierarchical_filters = $i7OB2$untrack(get_expanded_hierarchical_filters);
8146
8150
  const previous_local_filter_cache = $i7OB2$untrack(get_local_filter_cache);
8147
8151
  const statement_accessor = user_triggered_ ? i18n_.filters_cleared_ : i18n_.we_cleared_your_filters_;
8152
+ expanded_filters_?.[1]([]);
8153
+ filters_open_?.[1](false);
8148
8154
  set_selected_filters([]);
8149
8155
  scrollTo({
8150
8156
  top: 0
@@ -8170,7 +8176,7 @@ function $e9342fb3ac73a54a$export$8895d39404bd2bb1(props) {
8170
8176
  close_toast_: close_toast_
8171
8177
  } = $bf52d9f9eebd1938$export$5196e4c01fa56fcb({
8172
8178
  class: "cleared_filters",
8173
- close_after_: 30000,
8179
+ close_after_: 10000,
8174
8180
  on_close_: on_toast_hidden,
8175
8181
  children: [$i7OB2$ssr($e9342fb3ac73a54a$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape(statement_accessor())), $i7OB2$ssr($e9342fb3ac73a54a$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$escape(i18n_.restore_()), $i7OB2$escape(i18n_.ok_()))]
8176
8182
  }));
@@ -8183,7 +8189,9 @@ function $48d7e4a9707315b6$export$e026af0c7b64ea5f({
8183
8189
  current_sorting_: current_sorting_,
8184
8190
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
8185
8191
  i18n_: i18n_,
8186
- local_filter_cache_: local_filter_cache_
8192
+ local_filter_cache_: local_filter_cache_,
8193
+ expanded_filters_: expanded_filters_,
8194
+ filters_open_: filters_open_
8187
8195
  }) {
8188
8196
  const [get_selected_filters] = selected_filters_;
8189
8197
  // Possible values:
@@ -8211,7 +8219,9 @@ function $48d7e4a9707315b6$export$e026af0c7b64ea5f({
8211
8219
  also_clear_sorting_: true,
8212
8220
  current_sorting_: current_sorting_,
8213
8221
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
8214
- local_filter_cache_: local_filter_cache_
8222
+ local_filter_cache_: local_filter_cache_,
8223
+ expanded_filters_: expanded_filters_,
8224
+ filters_open_: filters_open_
8215
8225
  });
8216
8226
  }
8217
8227
  }), {
@@ -11040,7 +11050,9 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
11040
11050
  current_sorting_: current_sorting_,
11041
11051
  expanded_hierarchical_filters_: state_.expanded_hierarchical_filters,
11042
11052
  i18n_: i18n_,
11043
- local_filter_cache_: state_.local_filter_cache
11053
+ local_filter_cache_: state_.local_filter_cache,
11054
+ expanded_filters_: state_.expanded_filters,
11055
+ filters_open_: state_.filters_open
11044
11056
  });
11045
11057
  $806c97b931758897$export$dde08b2dca8cc1ce.set(this, {
11046
11058
  search_query_url_param_name_: search_query_url_param_name_,
@@ -11935,7 +11947,9 @@ function $e7fce80abe608e01$export$3945d6db2dfd3d12({
11935
11947
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
11936
11948
  plp_results_: plp_results_,
11937
11949
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
11938
- id_type_: id_type_
11950
+ id_type_: id_type_,
11951
+ expanded_filters_: expanded_filters_,
11952
+ filters_open_: filters_open_
11939
11953
  }) {
11940
11954
  // If we just got opened in a new tab, clear filters instantly and remove the flag
11941
11955
  $e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
@@ -11944,7 +11958,9 @@ function $e7fce80abe608e01$export$3945d6db2dfd3d12({
11944
11958
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
11945
11959
  selected_filters_: selected_filters_,
11946
11960
  i18n_: i18n_,
11947
- sideways_filter_clearing_flag_: sideways_filter_clearing_flag_
11961
+ sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
11962
+ expanded_filters_: expanded_filters_,
11963
+ filters_open_: filters_open_
11948
11964
  });
11949
11965
  // The code below is for when we're already open and the user navigates to a new category
11950
11966
  let previous_crumb_data = $i7OB2$untrack(crumb_data_);
@@ -11977,7 +11993,9 @@ function $e7fce80abe608e01$export$3945d6db2dfd3d12({
11977
11993
  also_clear_sorting_: false,
11978
11994
  selected_filters_: selected_filters_,
11979
11995
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
11980
- local_filter_cache_: local_filter_cache_
11996
+ local_filter_cache_: local_filter_cache_,
11997
+ expanded_filters_: expanded_filters_,
11998
+ filters_open_: filters_open_
11981
11999
  });
11982
12000
  // Also ensure we don't have `sideways_url_params_flag` set anymore
11983
12001
  sideways_filter_clearing_flag_[1](false);
@@ -11997,7 +12015,9 @@ function $e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_
11997
12015
  i18n_: i18n_,
11998
12016
  selected_filters_: selected_filters_,
11999
12017
  local_filter_cache_: local_filter_cache_,
12000
- sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_]
12018
+ sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_],
12019
+ expanded_filters_: expanded_filters_,
12020
+ filters_open_: filters_open_
12001
12021
  }) {
12002
12022
  const tracking_function_for_plp_results = $i7OB2$createReaction(() => {
12003
12023
  // On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
@@ -12012,7 +12032,9 @@ function $e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_
12012
12032
  also_clear_sorting_: false,
12013
12033
  selected_filters_: selected_filters_,
12014
12034
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12015
- local_filter_cache_: local_filter_cache_
12035
+ local_filter_cache_: local_filter_cache_,
12036
+ filters_open_: filters_open_,
12037
+ expanded_filters_: expanded_filters_
12016
12038
  });
12017
12039
  });
12018
12040
  });
@@ -12255,7 +12277,9 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
12255
12277
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
12256
12278
  plp_results_: plp_products_,
12257
12279
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
12258
- id_type_: id_type_
12280
+ id_type_: id_type_,
12281
+ expanded_filters_: expanded_filters_,
12282
+ filters_open_: category_filters_open_
12259
12283
  });
12260
12284
  get_breadcrumb_accessor_?.(crumb_data_);
12261
12285
  get_quicklinks_accessor_?.(quicklinks_data_);