@depict-ai/ui 4.8.16 → 4.8.18

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/latest/index.js CHANGED
@@ -7,7 +7,7 @@ import { dlog as $9HbP8$dlog, catchify as $9HbP8$catchify1, ListenableSet as $9H
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.8.15";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.18";
11
11
  function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
12
12
  const [width, setWidth] = $9HbP8$createSignal(0);
13
13
  const [height, setHeight] = $9HbP8$createSignal(0);
@@ -912,7 +912,9 @@ function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
912
912
  })();
913
913
  }
914
914
  var $f32e14878e75af51$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div>`),
915
- $f32e14878e75af51$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class="depict-slider depict"><button aria-label="Scroll left"class="left d-navbutton"type=button></button><button aria-label="Scroll right"class="right d-navbutton"type=button></button><div class=sliding>`);
915
+ $f32e14878e75af51$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<button aria-label="Scroll left"class="left d-navbutton"type=button>`),
916
+ $f32e14878e75af51$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<button aria-label="Scroll right"class="right d-navbutton"type=button>`),
917
+ $f32e14878e75af51$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class="depict-slider depict"><!$><!/><div class=sliding>`);
916
918
  const $f32e14878e75af51$var$SlidableContext = /*@__PURE__*/$9HbP8$createContext();
917
919
  function $f32e14878e75af51$export$6649caad96ef8870(props) {
918
920
  const {
@@ -924,6 +926,7 @@ function $f32e14878e75af51$export$6649caad96ef8870(props) {
924
926
  fadingThreshold_ = 0.96
925
927
  } = props;
926
928
  const [hasHydrated, setHasHydrated] = $9HbP8$createSignal(false);
929
+ const shouldShowArrows = () => props.showArrow_ !== false;
927
930
  $9HbP8$createEffect(() => setHasHydrated(true));
928
931
  const MakeButton = () => (() => {
929
932
  var _el$ = $9HbP8$getNextElement($f32e14878e75af51$var$_tmpl$);
@@ -947,12 +950,26 @@ function $f32e14878e75af51$export$6649caad96ef8870(props) {
947
950
  },
948
951
  get fallback() {
949
952
  return (() => {
950
- var _el$2 = $9HbP8$getNextElement($f32e14878e75af51$var$_tmpl$2),
951
- _el$3 = _el$2.firstChild,
952
- _el$4 = _el$3.nextSibling,
953
- _el$5 = _el$4.nextSibling;
954
- $9HbP8$insert(_el$3, $9HbP8$createComponent(MakeButton, {}));
955
- $9HbP8$insert(_el$4, $9HbP8$createComponent(MakeButton, {}));
953
+ var _el$2 = $9HbP8$getNextElement($f32e14878e75af51$var$_tmpl$4),
954
+ _el$6 = _el$2.firstChild,
955
+ [_el$7, _co$] = $9HbP8$getNextMarker(_el$6.nextSibling),
956
+ _el$5 = _el$7.nextSibling;
957
+ $9HbP8$insert(_el$2, $9HbP8$createComponent((0, $9HbP8$Show), {
958
+ get when() {
959
+ return shouldShowArrows();
960
+ },
961
+ get children() {
962
+ return [(() => {
963
+ var _el$3 = $9HbP8$getNextElement($f32e14878e75af51$var$_tmpl$2);
964
+ $9HbP8$insert(_el$3, $9HbP8$createComponent(MakeButton, {}));
965
+ return _el$3;
966
+ })(), (() => {
967
+ var _el$4 = $9HbP8$getNextElement($f32e14878e75af51$var$_tmpl$3);
968
+ $9HbP8$insert(_el$4, $9HbP8$createComponent(MakeButton, {}));
969
+ return _el$4;
970
+ })()];
971
+ }
972
+ }), _el$7, _co$);
956
973
  $9HbP8$insert(_el$5, () => props.children);
957
974
  return _el$2;
958
975
  })();
@@ -974,6 +991,12 @@ function $f32e14878e75af51$export$6649caad96ef8870(props) {
974
991
  }).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
975
992
  mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
976
993
  });
994
+ const {
995
+ left_: left_,
996
+ right_: right_
997
+ } = slider.elements_;
998
+ $9HbP8$createEffect(() => left_.style.display = shouldShowArrows() ? "" : "none");
999
+ $9HbP8$createEffect(() => right_.style.display = shouldShowArrows() ? "" : "none");
977
1000
  $9HbP8$insert(slider.insert_here, () => $9HbP8$createComponent($f32e14878e75af51$var$SlidableContext.Provider, {
978
1001
  value: {
979
1002
  slider_: slider,
@@ -1617,7 +1640,8 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
1617
1640
  layout_options_: layout_options_,
1618
1641
  title_: title_,
1619
1642
  NoResultsFallback_: NoResultsFallback_,
1620
- placeholderCacheKey_: placeholderCacheKey_
1643
+ placeholderCacheKey_: placeholderCacheKey_,
1644
+ showSliderArrow_: showSliderArrow_
1621
1645
  }) {
1622
1646
  const is_showing_something = $9HbP8$createMemo(() => recommendations_resource_.loading || recommendations_resource_()?.length);
1623
1647
  const title = $9HbP8$createMemo(() => title_?.()); // In case getter/accessor creates elements, don't create them twice
@@ -1635,6 +1659,9 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
1635
1659
  arrow_height_: 25,
1636
1660
  arrow_width_: 12.5,
1637
1661
  disable_fading_: true,
1662
+ get showArrow_() {
1663
+ return showSliderArrow_?.();
1664
+ },
1638
1665
  slider_ref_: slider => {
1639
1666
  const {
1640
1667
  insert_here: insert_here,
@@ -6467,6 +6494,7 @@ function $ee116da074deb002$export$9574e176201e5e8d(props) {
6467
6494
  return $c4492d24952ed731$export$d41d19e89346fa2({
6468
6495
  product_card_template_: (...args) => props.product_card_template(...args),
6469
6496
  recommendations_resource_: recommendations_resource_,
6497
+ showSliderArrow_: () => props.showSliderArrow_,
6470
6498
  title_: () => props.title,
6471
6499
  layout_options_: $9HbP8$createMemo(() => ({
6472
6500
  cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77(props.cols_at_size),
@@ -11343,7 +11371,8 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
11343
11371
  id_currently_querying_for_: id_currently_querying_for_,
11344
11372
  content_blocks_by_row_: content_blocks_by_row_,
11345
11373
  ConfiguredScrollStatus_: ConfiguredScrollStatus_,
11346
- setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
11374
+ setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
11375
+ showSliderArrow_: showSliderArrow_
11347
11376
  }) {
11348
11377
  // The plp_results_ resource will be delayed because we're using createBatchedMemo to not make triplicate API requests, but we need to show the placeholders before already to match Chrome and Firefox's "content has to be there, ready for scroll restoration, before all popstate tasks have been completed"-requirement
11349
11378
  const is_loading_ = $9HbP8$createMemo(() => plp_results_.loading || query_base_.loading);
@@ -11524,6 +11553,9 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
11524
11553
  arrow_height_: 25,
11525
11554
  arrow_width_: 12.5,
11526
11555
  disable_fading_: true,
11556
+ get showArrow_() {
11557
+ return showSliderArrow_();
11558
+ },
11527
11559
  slider_ref_: slider => {
11528
11560
  const {
11529
11561
  insert_here: insert_here,
@@ -13287,7 +13319,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
13287
13319
  modalVersionUsed_: modalVersionUsed_,
13288
13320
  BackIcon_: BackIcon_,
13289
13321
  filterModalParent_: filterModalParent_,
13290
- class_: class_
13322
+ class_: class_,
13323
+ showSliderArrow_: showSliderArrow_
13291
13324
  }) {
13292
13325
  const [get_sorting] = current_sorting_;
13293
13326
  const all_products_loaded_ = $9HbP8$createSignal(false);
@@ -13627,6 +13660,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
13627
13660
  id_currently_querying_for_: get_search_query_,
13628
13661
  content_blocks_by_row_: content_blocks_by_row_,
13629
13662
  setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
13663
+ showSliderArrow_: showSliderArrow_,
13630
13664
  no_results_options_: {
13631
13665
  selected_filters_: selected_filters_,
13632
13666
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
@@ -14032,6 +14066,7 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
14032
14066
  open_modal_: (...args) => depict_search.modal_open = args,
14033
14067
  submit_query_: shared_properties.configured_submit_query_,
14034
14068
  modalVersionUsed_: shared_properties.modalVersionUsed_,
14069
+ showSliderArrow_: () => props.showSliderArrow_,
14035
14070
  i18n_: shared_properties.i18n_,
14036
14071
  modalAlignmentSignalsRef_: style => {
14037
14072
  const shared_info_right_now = $806c97b931758897$export$dde08b2dca8cc1ce.get(depict_search);
@@ -15072,7 +15107,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
15072
15107
  sorting_query_param_: sorting_query_param_,
15073
15108
  filter_query_param_prefix_: filter_query_param_prefix_,
15074
15109
  content_blocks_by_row_: content_blocks_by_row_,
15075
- filterModalParent_: filterModalParent_
15110
+ filterModalParent_: filterModalParent_,
15111
+ showSliderArrow_: showSliderArrow_
15076
15112
  }) {
15077
15113
  let results_for;
15078
15114
  let only_show_filters_opener_;
@@ -15430,6 +15466,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
15430
15466
  ConfiguredScrollStatus_: ConfiguredScrollStatus_,
15431
15467
  id_currently_querying_for_: id_to_query_for_,
15432
15468
  setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
15469
+ showSliderArrow_: showSliderArrow_,
15433
15470
  all_products_loaded_: all_products_loaded_,
15434
15471
  no_results_options_: {
15435
15472
  selected_filters_: selected_filters_,
@@ -15568,6 +15605,7 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
15568
15605
  selected_filters_: selected_filters_,
15569
15606
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
15570
15607
  content_blocks_by_row_: () => props.content_blocks_by_row,
15608
+ showSliderArrow_: () => props.showSliderArrow_,
15571
15609
  scroll_restoration_data_: scroll_restoration_data_,
15572
15610
  history_content_blocks_: history_content_blocks_,
15573
15611
  layout_options_: $9HbP8$createMemo(() => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.8.16",
3
+ "version": "4.8.18",
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.4.16",
239
+ "@depict-ai/plp-styling": "^4.4.18",
240
240
  "@depict-ai/types": "^5.4.4",
241
- "@depict-ai/utilishared": "^2.4.5",
241
+ "@depict-ai/utilishared": "^2.4.6",
242
242
  "solid-js": "^1.8.16"
243
243
  },
244
244
  "type": "module",
@@ -114,7 +114,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
114
114
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
115
115
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
116
116
  /*! Depict.ai search and product listing SDK */
117
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.15";
117
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.18";
118
118
  function $054b1113e4897051$export$54c6d6ff54e72743(whatToWatch) {
119
119
  const [width, setWidth] = $3hooq$solidjs.createSignal(0);
120
120
  const [height, setHeight] = $3hooq$solidjs.createSignal(0);
@@ -836,7 +836,9 @@ function $9d19451330d04c3c$export$8be2714ec7f169ee() {
836
836
  return $3hooq$solidjsweb.ssr($9d19451330d04c3c$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrAttribute("width", (_$escape2 = $3hooq$solidjsweb.escape(props.width_, true)) !== null && _$escape2 !== void 0 ? _$escape2 : 14, false) + $3hooq$solidjsweb.ssrAttribute("height", (_$escape3 = $3hooq$solidjsweb.escape(props.height_, true)) !== null && _$escape3 !== void 0 ? _$escape3 : 26, false));
837
837
  }
838
838
  var $ad8ec7729fffeb9c$var$_tmpl$ = ["<div", ">", "</div>"],
839
- $ad8ec7729fffeb9c$var$_tmpl$2 = ["<div", ' class="depict-slider depict"><button aria-label="Scroll left" class="left d-navbutton" type="button">', '</button><button aria-label="Scroll right" class="right d-navbutton" type="button">', '</button><div class="sliding">', "</div></div>"];
839
+ $ad8ec7729fffeb9c$var$_tmpl$2 = ["<button", ' aria-label="Scroll left" class="left d-navbutton" type="button">', "</button>"],
840
+ $ad8ec7729fffeb9c$var$_tmpl$3 = ["<button", ' aria-label="Scroll right" class="right d-navbutton" type="button">', "</button>"],
841
+ $ad8ec7729fffeb9c$var$_tmpl$4 = ["<div", ' class="depict-slider depict"><!--$-->', '<!--/--><div class="sliding">', "</div></div>"];
840
842
  const $ad8ec7729fffeb9c$var$SlidableContext = /*@__PURE__*/$3hooq$solidjs.createContext();
841
843
  function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
842
844
  const {
@@ -848,6 +850,7 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
848
850
  fadingThreshold_ = 0.96
849
851
  } = props;
850
852
  const [hasHydrated, setHasHydrated] = $3hooq$solidjs.createSignal(false);
853
+ const shouldShowArrows = () => props.showArrow_ !== false;
851
854
  $3hooq$solidjs.createEffect(() => setHasHydrated(true));
852
855
  const MakeButton = () => $3hooq$solidjsweb.ssr($ad8ec7729fffeb9c$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $9d19451330d04c3c$export$8be2714ec7f169ee), {
853
856
  get height_() {
@@ -866,7 +869,14 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
866
869
  return hasHydrated() && !(0, $3hooq$solidjsweb.isServer);
867
870
  },
868
871
  get fallback() {
869
- return $3hooq$solidjsweb.ssr($ad8ec7729fffeb9c$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(MakeButton, {})), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(MakeButton, {})), $3hooq$solidjsweb.escape(props.children));
872
+ return $3hooq$solidjsweb.ssr($ad8ec7729fffeb9c$var$_tmpl$4, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
873
+ get when() {
874
+ return shouldShowArrows();
875
+ },
876
+ get children() {
877
+ return [$3hooq$solidjsweb.ssr($ad8ec7729fffeb9c$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(MakeButton, {}))), $3hooq$solidjsweb.ssr($ad8ec7729fffeb9c$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(MakeButton, {})))];
878
+ }
879
+ })), $3hooq$solidjsweb.escape(props.children));
870
880
  },
871
881
  get children() {
872
882
  return (() => {
@@ -885,6 +895,12 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
885
895
  }).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
886
896
  mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
887
897
  });
898
+ const {
899
+ left_: left_,
900
+ right_: right_
901
+ } = slider.elements_;
902
+ $3hooq$solidjs.createEffect(() => left_.style.display = shouldShowArrows() ? "" : "none");
903
+ $3hooq$solidjs.createEffect(() => right_.style.display = shouldShowArrows() ? "" : "none");
888
904
  $3hooq$solidjsweb.insert(slider.insert_here, () => $3hooq$solidjsweb.createComponent($ad8ec7729fffeb9c$var$SlidableContext.Provider, {
889
905
  value: {
890
906
  slider_: slider,
@@ -1571,7 +1587,8 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
1571
1587
  layout_options_: layout_options_,
1572
1588
  title_: title_,
1573
1589
  NoResultsFallback_: NoResultsFallback_,
1574
- placeholderCacheKey_: placeholderCacheKey_
1590
+ placeholderCacheKey_: placeholderCacheKey_,
1591
+ showSliderArrow_: showSliderArrow_
1575
1592
  } = _ref;
1576
1593
  const is_showing_something = $3hooq$solidjs.createMemo(() => {
1577
1594
  var _recommendations_reso;
@@ -1590,6 +1607,9 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
1590
1607
  arrow_height_: 25,
1591
1608
  arrow_width_: 12.5,
1592
1609
  disable_fading_: true,
1610
+ get showArrow_() {
1611
+ return showSliderArrow_ === null || showSliderArrow_ === void 0 ? void 0 : showSliderArrow_();
1612
+ },
1593
1613
  slider_ref_: slider => {
1594
1614
  const {
1595
1615
  insert_here: insert_here,
@@ -5565,6 +5585,7 @@ function $2badc30d7c6610e1$export$9574e176201e5e8d(props) {
5565
5585
  return props.product_card_template(...arguments);
5566
5586
  },
5567
5587
  recommendations_resource_: recommendations_resource_,
5588
+ showSliderArrow_: () => props.showSliderArrow_,
5568
5589
  title_: () => props.title,
5569
5590
  layout_options_: $3hooq$solidjs.createMemo(() => ({
5570
5591
  cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77(props.cols_at_size),
@@ -10156,7 +10177,8 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
10156
10177
  id_currently_querying_for_: id_currently_querying_for_,
10157
10178
  content_blocks_by_row_: content_blocks_by_row_,
10158
10179
  ConfiguredScrollStatus_: ConfiguredScrollStatus_,
10159
- setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
10180
+ setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
10181
+ showSliderArrow_: showSliderArrow_
10160
10182
  } = _ref;
10161
10183
  // The plp_results_ resource will be delayed because we're using createBatchedMemo to not make triplicate API requests, but we need to show the placeholders before already to match Chrome and Firefox's "content has to be there, ready for scroll restoration, before all popstate tasks have been completed"-requirement
10162
10184
  const is_loading_ = $3hooq$solidjs.createMemo(() => plp_results_.loading || query_base_.loading);
@@ -10337,6 +10359,9 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
10337
10359
  arrow_height_: 25,
10338
10360
  arrow_width_: 12.5,
10339
10361
  disable_fading_: true,
10362
+ get showArrow_() {
10363
+ return showSliderArrow_();
10364
+ },
10340
10365
  slider_ref_: slider => {
10341
10366
  const {
10342
10367
  insert_here: insert_here,
@@ -11709,7 +11734,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
11709
11734
  modalVersionUsed_: modalVersionUsed_,
11710
11735
  BackIcon_: BackIcon_,
11711
11736
  filterModalParent_: filterModalParent_,
11712
- class_: class_
11737
+ class_: class_,
11738
+ showSliderArrow_: showSliderArrow_
11713
11739
  } = _ref;
11714
11740
  const [get_sorting] = current_sorting_;
11715
11741
  const all_products_loaded_ = $3hooq$solidjs.createSignal(false);
@@ -12033,6 +12059,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
12033
12059
  id_currently_querying_for_: get_search_query_,
12034
12060
  content_blocks_by_row_: content_blocks_by_row_,
12035
12061
  setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
12062
+ showSliderArrow_: showSliderArrow_,
12036
12063
  no_results_options_: {
12037
12064
  selected_filters_: selected_filters_,
12038
12065
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
@@ -12510,6 +12537,7 @@ function $ddd39c5f36f49703$export$f2dc7e4e4aa11abb(props) {
12510
12537
  },
12511
12538
  submit_query_: shared_properties.configured_submit_query_,
12512
12539
  modalVersionUsed_: shared_properties.modalVersionUsed_,
12540
+ showSliderArrow_: () => props.showSliderArrow_,
12513
12541
  i18n_: shared_properties.i18n_,
12514
12542
  modalAlignmentSignalsRef_: style => {
12515
12543
  const shared_info_right_now = $ddd39c5f36f49703$export$dde08b2dca8cc1ce.get(depict_search);
@@ -13583,7 +13611,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
13583
13611
  sorting_query_param_: sorting_query_param_,
13584
13612
  filter_query_param_prefix_: filter_query_param_prefix_,
13585
13613
  content_blocks_by_row_: content_blocks_by_row_,
13586
- filterModalParent_: filterModalParent_
13614
+ filterModalParent_: filterModalParent_,
13615
+ showSliderArrow_: showSliderArrow_
13587
13616
  } = _ref;
13588
13617
  let results_for;
13589
13618
  let only_show_filters_opener_;
@@ -13920,6 +13949,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
13920
13949
  ConfiguredScrollStatus_: ConfiguredScrollStatus_,
13921
13950
  id_currently_querying_for_: id_to_query_for_,
13922
13951
  setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
13952
+ showSliderArrow_: showSliderArrow_,
13923
13953
  all_products_loaded_: all_products_loaded_,
13924
13954
  no_results_options_: {
13925
13955
  selected_filters_: selected_filters_,
@@ -14062,6 +14092,7 @@ function $c10e33c4681f8c9b$export$e2bf8ce7779e827e(props) {
14062
14092
  selected_filters_: selected_filters_,
14063
14093
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
14064
14094
  content_blocks_by_row_: () => props.content_blocks_by_row,
14095
+ showSliderArrow_: () => props.showSliderArrow_,
14065
14096
  scroll_restoration_data_: scroll_restoration_data_,
14066
14097
  history_content_blocks_: history_content_blocks_,
14067
14098
  layout_options_: $3hooq$solidjs.createMemo(() => ({
@@ -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.8.15";
14
+ export const version = "4.8.18";
15
15
  /**
16
16
  * Returns two accessors (one width and one height) that will update when the size of the provided element changes, to be used with ResponsiveImg
17
17
  */
@@ -73,7 +73,7 @@ export const getExtraDisplayTransformers: () => ExtraDisplayTransformers<any, an
73
73
  * When called from inside the shopify apps product card editor, this registers extra display transformers to be ran alongside Depict's default added ones. The ones for products and content will run after Depicts but the ones for categories will run before Depicts.
74
74
  * @param displayTransformers
75
75
  */
76
- export const setExtraDisplayTransformers: <InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay = ModernDisplayWithPageUrl<InputDisplay>>(displayTransformers: ExtraDisplayTransformers<InputDisplay, OutputDisplay>) => ExtraDisplayTransformers<InputDisplay, OutputDisplay>;
76
+ export const setExtraDisplayTransformers: <InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay = InputDisplay>(displayTransformers: ExtraDisplayTransformers<InputDisplay, OutputDisplay>) => ExtraDisplayTransformers<InputDisplay, OutputDisplay>;
77
77
  type ExtraDisplayTransformers<InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay | never> = {
78
78
  products?: (options: DisplayTransformerAlwaysThereData & {
79
79
  displays: InputDisplay[];
@@ -321,6 +321,7 @@ export function SlidableItems(props: {
321
321
  mutation_plugins_?: ((this: Amazing_Slider, mutations: IntersectionObserverEntry[], intersecting_items: Record<number, IntersectionObserverEntry>) => unknown)[];
322
322
  arrow_width_?: number;
323
323
  arrow_height_?: number;
324
+ showArrow_?: boolean;
324
325
  }): JSX.Element;
325
326
  /**
326
327
  * Use this inside the children of a <SlidableItems> component to get the slider instance and a signal that contains the latest intersection obsrever entries (note they are accessible on the slider instance in a processed format already at the time this acessor updates)
@@ -1167,6 +1168,7 @@ export function RecommendationSlider<T extends Display>(props: {
1167
1168
  recommendations: Promise<T[]>;
1168
1169
  title?: JSX.Element;
1169
1170
  product_card_template: ProductCardTemplate<T>;
1171
+ showSliderArrow_?: boolean;
1170
1172
  class?: string;
1171
1173
  }): HTMLDivElement;
1172
1174
  export function ExpandingDetails(props: {
@@ -1492,6 +1494,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
1492
1494
  on_query_change?: (new_query?: string | undefined, old_query?: string | undefined) => void;
1493
1495
  filterModalParent_?: HTMLElement | ShadowRoot;
1494
1496
  class?: string;
1497
+ showSliderArrow_?: boolean;
1495
1498
  }): import("@depict-ai/utilishared").Node_Array;
1496
1499
  /**
1497
1500
  * Connects the height of the search field to the height of the aligner.
@@ -1531,7 +1534,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1531
1534
  * Open the modal with support for alignment.
1532
1535
  * @returns {void}
1533
1536
  */
1534
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1537
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1535
1538
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1536
1539
  export interface PageReplacer {
1537
1540
  readonly render_: () => Node_Array;
@@ -1610,5 +1613,6 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1610
1613
  content_blocks_by_row?: ContentBlocksByRow;
1611
1614
  layout?: PossibleLayout;
1612
1615
  filterModalParent_?: HTMLElement | ShadowRoot;
1613
- }): import("@depict-ai/utilishared").Node_Array;
1616
+ showSliderArrow_?: boolean;
1617
+ }): import("@depict-ai/utilishared/latest").Node_Array;
1614
1618
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
@@ -10,7 +10,7 @@ import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
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.8.15";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.18";
14
14
  function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
15
15
  const [width, setWidth] = $b8hua$createSignal(0);
16
16
  const [height, setHeight] = $b8hua$createSignal(0);
@@ -732,7 +732,9 @@ function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
732
732
  return $b8hua$ssr($ca6ab5f08bd28bca$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("width", (_$escape2 = $b8hua$escape(props.width_, true)) !== null && _$escape2 !== void 0 ? _$escape2 : 14, false) + $b8hua$ssrAttribute("height", (_$escape3 = $b8hua$escape(props.height_, true)) !== null && _$escape3 !== void 0 ? _$escape3 : 26, false));
733
733
  }
734
734
  var $002f09d00aac50b2$var$_tmpl$ = ["<div", ">", "</div>"],
735
- $002f09d00aac50b2$var$_tmpl$2 = ["<div", ' class="depict-slider depict"><button aria-label="Scroll left" class="left d-navbutton" type="button">', '</button><button aria-label="Scroll right" class="right d-navbutton" type="button">', '</button><div class="sliding">', "</div></div>"];
735
+ $002f09d00aac50b2$var$_tmpl$2 = ["<button", ' aria-label="Scroll left" class="left d-navbutton" type="button">', "</button>"],
736
+ $002f09d00aac50b2$var$_tmpl$3 = ["<button", ' aria-label="Scroll right" class="right d-navbutton" type="button">', "</button>"],
737
+ $002f09d00aac50b2$var$_tmpl$4 = ["<div", ' class="depict-slider depict"><!--$-->', '<!--/--><div class="sliding">', "</div></div>"];
736
738
  const $002f09d00aac50b2$var$SlidableContext = /*@__PURE__*/$b8hua$createContext();
737
739
  function $002f09d00aac50b2$export$6649caad96ef8870(props) {
738
740
  const {
@@ -744,6 +746,7 @@ function $002f09d00aac50b2$export$6649caad96ef8870(props) {
744
746
  fadingThreshold_ = 0.96
745
747
  } = props;
746
748
  const [hasHydrated, setHasHydrated] = $b8hua$createSignal(false);
749
+ const shouldShowArrows = () => props.showArrow_ !== false;
747
750
  $b8hua$createEffect(() => setHasHydrated(true));
748
751
  const MakeButton = () => $b8hua$ssr($002f09d00aac50b2$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $ca6ab5f08bd28bca$export$8be2714ec7f169ee), {
749
752
  get height_() {
@@ -762,7 +765,14 @@ function $002f09d00aac50b2$export$6649caad96ef8870(props) {
762
765
  return hasHydrated() && !(0, $b8hua$isServer);
763
766
  },
764
767
  get fallback() {
765
- return $b8hua$ssr($002f09d00aac50b2$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent(MakeButton, {})), $b8hua$escape($b8hua$createComponent(MakeButton, {})), $b8hua$escape(props.children));
768
+ return $b8hua$ssr($002f09d00aac50b2$var$_tmpl$4, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
769
+ get when() {
770
+ return shouldShowArrows();
771
+ },
772
+ get children() {
773
+ return [$b8hua$ssr($002f09d00aac50b2$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent(MakeButton, {}))), $b8hua$ssr($002f09d00aac50b2$var$_tmpl$3, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent(MakeButton, {})))];
774
+ }
775
+ })), $b8hua$escape(props.children));
766
776
  },
767
777
  get children() {
768
778
  return (() => {
@@ -781,6 +791,12 @@ function $002f09d00aac50b2$export$6649caad96ef8870(props) {
781
791
  }).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
782
792
  mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
783
793
  });
794
+ const {
795
+ left_: left_,
796
+ right_: right_
797
+ } = slider.elements_;
798
+ $b8hua$createEffect(() => left_.style.display = shouldShowArrows() ? "" : "none");
799
+ $b8hua$createEffect(() => right_.style.display = shouldShowArrows() ? "" : "none");
784
800
  $b8hua$insert(slider.insert_here, () => $b8hua$createComponent($002f09d00aac50b2$var$SlidableContext.Provider, {
785
801
  value: {
786
802
  slider_: slider,
@@ -1467,7 +1483,8 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
1467
1483
  layout_options_: layout_options_,
1468
1484
  title_: title_,
1469
1485
  NoResultsFallback_: NoResultsFallback_,
1470
- placeholderCacheKey_: placeholderCacheKey_
1486
+ placeholderCacheKey_: placeholderCacheKey_,
1487
+ showSliderArrow_: showSliderArrow_
1471
1488
  } = _ref;
1472
1489
  const is_showing_something = $b8hua$createMemo(() => {
1473
1490
  var _recommendations_reso;
@@ -1486,6 +1503,9 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
1486
1503
  arrow_height_: 25,
1487
1504
  arrow_width_: 12.5,
1488
1505
  disable_fading_: true,
1506
+ get showArrow_() {
1507
+ return showSliderArrow_ === null || showSliderArrow_ === void 0 ? void 0 : showSliderArrow_();
1508
+ },
1489
1509
  slider_ref_: slider => {
1490
1510
  const {
1491
1511
  insert_here: insert_here,
@@ -5461,6 +5481,7 @@ function $d5d7e58c5c9d8db0$export$9574e176201e5e8d(props) {
5461
5481
  return props.product_card_template(...arguments);
5462
5482
  },
5463
5483
  recommendations_resource_: recommendations_resource_,
5484
+ showSliderArrow_: () => props.showSliderArrow_,
5464
5485
  title_: () => props.title,
5465
5486
  layout_options_: $b8hua$createMemo(() => ({
5466
5487
  cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77(props.cols_at_size),
@@ -10052,7 +10073,8 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
10052
10073
  id_currently_querying_for_: id_currently_querying_for_,
10053
10074
  content_blocks_by_row_: content_blocks_by_row_,
10054
10075
  ConfiguredScrollStatus_: ConfiguredScrollStatus_,
10055
- setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
10076
+ setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
10077
+ showSliderArrow_: showSliderArrow_
10056
10078
  } = _ref;
10057
10079
  // The plp_results_ resource will be delayed because we're using createBatchedMemo to not make triplicate API requests, but we need to show the placeholders before already to match Chrome and Firefox's "content has to be there, ready for scroll restoration, before all popstate tasks have been completed"-requirement
10058
10080
  const is_loading_ = $b8hua$createMemo(() => plp_results_.loading || query_base_.loading);
@@ -10233,6 +10255,9 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
10233
10255
  arrow_height_: 25,
10234
10256
  arrow_width_: 12.5,
10235
10257
  disable_fading_: true,
10258
+ get showArrow_() {
10259
+ return showSliderArrow_();
10260
+ },
10236
10261
  slider_ref_: slider => {
10237
10262
  const {
10238
10263
  insert_here: insert_here,
@@ -11605,7 +11630,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
11605
11630
  modalVersionUsed_: modalVersionUsed_,
11606
11631
  BackIcon_: BackIcon_,
11607
11632
  filterModalParent_: filterModalParent_,
11608
- class_: class_
11633
+ class_: class_,
11634
+ showSliderArrow_: showSliderArrow_
11609
11635
  } = _ref;
11610
11636
  const [get_sorting] = current_sorting_;
11611
11637
  const all_products_loaded_ = $b8hua$createSignal(false);
@@ -11929,6 +11955,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
11929
11955
  id_currently_querying_for_: get_search_query_,
11930
11956
  content_blocks_by_row_: content_blocks_by_row_,
11931
11957
  setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
11958
+ showSliderArrow_: showSliderArrow_,
11932
11959
  no_results_options_: {
11933
11960
  selected_filters_: selected_filters_,
11934
11961
  expanded_hierarchical_filters_: expanded_hierarchical_filters_,
@@ -12406,6 +12433,7 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
12406
12433
  },
12407
12434
  submit_query_: shared_properties.configured_submit_query_,
12408
12435
  modalVersionUsed_: shared_properties.modalVersionUsed_,
12436
+ showSliderArrow_: () => props.showSliderArrow_,
12409
12437
  i18n_: shared_properties.i18n_,
12410
12438
  modalAlignmentSignalsRef_: style => {
12411
12439
  const shared_info_right_now = $eb064bc3350276c1$export$dde08b2dca8cc1ce.get(depict_search);
@@ -13479,7 +13507,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
13479
13507
  sorting_query_param_: sorting_query_param_,
13480
13508
  filter_query_param_prefix_: filter_query_param_prefix_,
13481
13509
  content_blocks_by_row_: content_blocks_by_row_,
13482
- filterModalParent_: filterModalParent_
13510
+ filterModalParent_: filterModalParent_,
13511
+ showSliderArrow_: showSliderArrow_
13483
13512
  } = _ref;
13484
13513
  let results_for;
13485
13514
  let only_show_filters_opener_;
@@ -13816,6 +13845,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
13816
13845
  ConfiguredScrollStatus_: ConfiguredScrollStatus_,
13817
13846
  id_currently_querying_for_: id_to_query_for_,
13818
13847
  setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
13848
+ showSliderArrow_: showSliderArrow_,
13819
13849
  all_products_loaded_: all_products_loaded_,
13820
13850
  no_results_options_: {
13821
13851
  selected_filters_: selected_filters_,
@@ -13958,6 +13988,7 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
13958
13988
  selected_filters_: selected_filters_,
13959
13989
  sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
13960
13990
  content_blocks_by_row_: () => props.content_blocks_by_row,
13991
+ showSliderArrow_: () => props.showSliderArrow_,
13961
13992
  scroll_restoration_data_: scroll_restoration_data_,
13962
13993
  history_content_blocks_: history_content_blocks_,
13963
13994
  layout_options_: $b8hua$createMemo(() => ({