@depict-ai/ui 4.0.21 → 4.0.23

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
@@ -95,7 +95,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447a
95
95
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
96
96
  $parcel$export(module.exports, "SearchField", () => $98aef9965764903d$export$316f6f283ae64765);
97
97
  /*! Depict.ai search and product listing SDK */
98
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.21";
98
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.23";
99
99
 
100
100
  /**
101
101
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -2816,8 +2816,9 @@ function $317500f39819fba6$export$9ca09caa9c849d9c() {
2816
2816
  return $52FdA$solidjsweb.getNextElement($317500f39819fba6$var$_tmpl$);
2817
2817
  }
2818
2818
  var $d1e7b96fb13cd1d3$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<a>`),
2819
- $d1e7b96fb13cd1d3$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=listing-card><div class=image-part></div><!$><!/><h3 class=title>`),
2820
- $d1e7b96fb13cd1d3$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=empty-image>`);
2819
+ $d1e7b96fb13cd1d3$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=images-wrapper>`),
2820
+ $d1e7b96fb13cd1d3$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=listing-card><!$><!/><!$><!/><h3 class=title>`),
2821
+ $d1e7b96fb13cd1d3$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=empty-image>`);
2821
2822
  const $d1e7b96fb13cd1d3$var$aspectRatioWidthComponent = 400;
2822
2823
  const $d1e7b96fb13cd1d3$var$aspectRatioHeightComponent = 200;
2823
2824
  const $d1e7b96fb13cd1d3$var$listingSuggestionCollageAspectRatio = $d1e7b96fb13cd1d3$var$aspectRatioWidthComponent / $d1e7b96fb13cd1d3$var$aspectRatioHeightComponent;
@@ -2839,26 +2840,22 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2839
2840
  }); // <- could be made reactive getter created in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
2840
2841
  const LinkToListing = props => (() => {
2841
2842
  var _el$ = $52FdA$solidjsweb.getNextElement($d1e7b96fb13cd1d3$var$_tmpl$);
2842
- $52FdA$solidjsweb.addEventListener(_el$, "click", $52FdA$depictaiutilishared.catchify(ev => href() && router_.navigate_.go_to_({
2843
- new_url_: href(),
2844
- is_replace_: false,
2845
- event_: ev,
2846
- listing_query_: {
2847
- id: listing_().listing_id,
2848
- type: $c3739e86187f2054$export$74ee7529ce0f8a00
2843
+ $52FdA$solidjsweb.spread(_el$, $52FdA$solidjsweb.mergeProps(props, {
2844
+ get href() {
2845
+ return href();
2846
+ },
2847
+ get onClick() {
2848
+ return $52FdA$depictaiutilishared.catchify(ev => href() && router_.navigate_.go_to_({
2849
+ new_url_: href(),
2850
+ is_replace_: false,
2851
+ event_: ev,
2852
+ listing_query_: {
2853
+ id: listing_().listing_id,
2854
+ type: $c3739e86187f2054$export$74ee7529ce0f8a00
2855
+ }
2856
+ }));
2849
2857
  }
2850
- })), true);
2851
- $52FdA$solidjsweb.insert(_el$, () => props.children);
2852
- $52FdA$solidjsweb.effect(_p$ => {
2853
- var _v$ = props.tabIndex_,
2854
- _v$2 = href();
2855
- _v$ !== _p$.e && $52FdA$solidjsweb.setAttribute(_el$, "tabindex", _p$.e = _v$);
2856
- _v$2 !== _p$.t && $52FdA$solidjsweb.setAttribute(_el$, "href", _p$.t = _v$2);
2857
- return _p$;
2858
- }, {
2859
- e: undefined,
2860
- t: undefined
2861
- });
2858
+ }), false, false);
2862
2859
  $52FdA$solidjsweb.runHydrationEvents();
2863
2860
  return _el$;
2864
2861
  })();
@@ -2872,11 +2869,12 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2872
2869
  return (_listing_3 = listing_()) === null || _listing_3 === void 0 ? void 0 : _listing_3.ancestors;
2873
2870
  });
2874
2871
  return (() => {
2875
- var _el$2 = $52FdA$solidjsweb.getNextElement($d1e7b96fb13cd1d3$var$_tmpl$2),
2876
- _el$3 = _el$2.firstChild,
2877
- _el$5 = _el$3.nextSibling,
2872
+ var _el$2 = $52FdA$solidjsweb.getNextElement($d1e7b96fb13cd1d3$var$_tmpl$3),
2873
+ _el$5 = _el$2.firstChild,
2878
2874
  [_el$6, _co$] = $52FdA$solidjsweb.getNextMarker(_el$5.nextSibling),
2879
- _el$4 = _el$6.nextSibling;
2875
+ _el$7 = _el$6.nextSibling,
2876
+ [_el$8, _co$2] = $52FdA$solidjsweb.getNextMarker(_el$7.nextSibling),
2877
+ _el$4 = _el$8.nextSibling;
2880
2878
  $52FdA$solidjsweb.use(element => $b0f8d9f49e018db9$export$12761f53d7ab7f27(element, selectedDueToKeyboardNavigation), _el$2);
2881
2879
  $52FdA$solidjsweb.addEventListener(_el$2, "mouseleave", $52FdA$depictaiutilishared.catchify(() => write_selected_index_()));
2882
2880
  $52FdA$solidjsweb.addEventListener(_el$2, "mouseover", $52FdA$depictaiutilishared.catchify(_ref2 => {
@@ -2891,15 +2889,22 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2891
2889
  }
2892
2890
  write_selected_index_([keyboardNavigationGroupIndex_(), index_()]);
2893
2891
  }), true);
2894
- $52FdA$solidjsweb.insert(_el$3, $52FdA$solidjsweb.createComponent(LinkToListing, {
2895
- tabIndex_: -1,
2892
+ $52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent(LinkToListing, {
2893
+ "class": "image-part",
2894
+ get style() {
2895
+ var _image_urls$length, _image_urls;
2896
+ return "--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0);
2897
+ },
2898
+ tabIndex: -1,
2896
2899
  get children() {
2897
- return $52FdA$solidjsweb.createComponent($d1e7b96fb13cd1d3$export$ea41102db9bd68c3, {
2900
+ var _el$3 = $52FdA$solidjsweb.getNextElement($d1e7b96fb13cd1d3$var$_tmpl$2);
2901
+ $52FdA$solidjsweb.insert(_el$3, $52FdA$solidjsweb.createComponent($d1e7b96fb13cd1d3$export$ea41102db9bd68c3, {
2898
2902
  image_urls_: image_urls,
2899
2903
  merchant_: merchant_
2900
- });
2904
+ }));
2905
+ return _el$3;
2901
2906
  }
2902
- }));
2907
+ }), _el$6, _co$);
2903
2908
  $52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
2904
2909
  get when() {
2905
2910
  var _crumbData;
@@ -2915,7 +2920,7 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2915
2920
  placeholderData_: [,,]
2916
2921
  });
2917
2922
  }
2918
- }), _el$6, _co$);
2923
+ }), _el$8, _co$2);
2919
2924
  $52FdA$solidjsweb.insert(_el$4, $52FdA$solidjsweb.createComponent(LinkToListing, {
2920
2925
  get children() {
2921
2926
  var _listing_4;
@@ -2925,17 +2930,7 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2925
2930
  });
2926
2931
  }
2927
2932
  }));
2928
- $52FdA$solidjsweb.effect(_p$ => {
2929
- var _image_urls$length, _image_urls;
2930
- var _v$3 = !!isSelected(),
2931
- _v$4 = "--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0);
2932
- _v$3 !== _p$.e && _el$2.classList.toggle("selected", _p$.e = _v$3);
2933
- _p$.t = $52FdA$solidjsweb.style(_el$3, _v$4, _p$.t);
2934
- return _p$;
2935
- }, {
2936
- e: undefined,
2937
- t: undefined
2938
- });
2933
+ $52FdA$solidjsweb.effect(() => _el$2.classList.toggle("selected", !!isSelected()));
2939
2934
  $52FdA$solidjsweb.runHydrationEvents();
2940
2935
  return _el$2;
2941
2936
  })();
@@ -2980,13 +2975,13 @@ function $d1e7b96fb13cd1d3$export$ea41102db9bd68c3(_ref3) {
2980
2975
  }
2981
2976
  function $d1e7b96fb13cd1d3$var$EmptyImage() {
2982
2977
  return (() => {
2983
- var _el$7 = $52FdA$solidjsweb.getNextElement($d1e7b96fb13cd1d3$var$_tmpl$3);
2984
- _el$7.style.setProperty("aspect-ratio", "2");
2985
- $52FdA$solidjsweb.insert(_el$7, $52FdA$solidjsweb.createComponent((0, $317500f39819fba6$export$9ca09caa9c849d9c), {}));
2986
- return _el$7;
2978
+ var _el$9 = $52FdA$solidjsweb.getNextElement($d1e7b96fb13cd1d3$var$_tmpl$4);
2979
+ _el$9.style.setProperty("aspect-ratio", "2");
2980
+ $52FdA$solidjsweb.insert(_el$9, $52FdA$solidjsweb.createComponent((0, $317500f39819fba6$export$9ca09caa9c849d9c), {}));
2981
+ return _el$9;
2987
2982
  })();
2988
2983
  }
2989
- $52FdA$solidjsweb.delegateEvents(["click", "mouseover"]);
2984
+ $52FdA$solidjsweb.delegateEvents(["mouseover"]);
2990
2985
  var $9d19451330d04c3c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
2991
2986
  function $9d19451330d04c3c$export$8be2714ec7f169ee() {
2992
2987
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
package/ES10/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.0.21";
13
+ export const version = "4.0.23";
14
14
  /**
15
15
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
16
16
  */
@@ -1211,7 +1211,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1211
1211
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
1212
1212
  content_blocks_by_row?: ContentBlocksByRow;
1213
1213
  layout?: PossibleLayout;
1214
- }): import("@depict-ai/utilishared/latest").Node_Array;
1214
+ }): import("@depict-ai/utilishared").Node_Array;
1215
1215
  export function BreadCrumbs<T extends Display>({
1216
1216
  depict_category
1217
1217
  }: {
@@ -1351,7 +1351,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1351
1351
  * Open the modal with support for alignment.
1352
1352
  * @returns {void}
1353
1353
  */
1354
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1354
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1355
1355
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1356
1356
  export interface PageReplacer {
1357
1357
  readonly render_: () => Node_Array;
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.0.21";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.0.23";
14
14
 
15
15
  /**
16
16
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -2731,8 +2731,9 @@ function $4a3ed70b3b7c60d5$export$9ca09caa9c849d9c() {
2731
2731
  return $8tj43$getNextElement($4a3ed70b3b7c60d5$var$_tmpl$);
2732
2732
  }
2733
2733
  var $26db6925469636a4$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<a>`),
2734
- $26db6925469636a4$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=listing-card><div class=image-part></div><!$><!/><h3 class=title>`),
2735
- $26db6925469636a4$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=empty-image>`);
2734
+ $26db6925469636a4$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div class=images-wrapper>`),
2735
+ $26db6925469636a4$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=listing-card><!$><!/><!$><!/><h3 class=title>`),
2736
+ $26db6925469636a4$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class=empty-image>`);
2736
2737
  const $26db6925469636a4$var$aspectRatioWidthComponent = 400;
2737
2738
  const $26db6925469636a4$var$aspectRatioHeightComponent = 200;
2738
2739
  const $26db6925469636a4$var$listingSuggestionCollageAspectRatio = $26db6925469636a4$var$aspectRatioWidthComponent / $26db6925469636a4$var$aspectRatioHeightComponent;
@@ -2754,26 +2755,22 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2754
2755
  }); // <- could be made reactive getter created in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
2755
2756
  const LinkToListing = props => (() => {
2756
2757
  var _el$ = $8tj43$getNextElement($26db6925469636a4$var$_tmpl$);
2757
- $8tj43$addEventListener(_el$, "click", $8tj43$catchify(ev => href() && router_.navigate_.go_to_({
2758
- new_url_: href(),
2759
- is_replace_: false,
2760
- event_: ev,
2761
- listing_query_: {
2762
- id: listing_().listing_id,
2763
- type: $397620a4d7958ed1$export$74ee7529ce0f8a00
2758
+ $8tj43$spread(_el$, $8tj43$mergeProps(props, {
2759
+ get href() {
2760
+ return href();
2761
+ },
2762
+ get onClick() {
2763
+ return $8tj43$catchify(ev => href() && router_.navigate_.go_to_({
2764
+ new_url_: href(),
2765
+ is_replace_: false,
2766
+ event_: ev,
2767
+ listing_query_: {
2768
+ id: listing_().listing_id,
2769
+ type: $397620a4d7958ed1$export$74ee7529ce0f8a00
2770
+ }
2771
+ }));
2764
2772
  }
2765
- })), true);
2766
- $8tj43$insert(_el$, () => props.children);
2767
- $8tj43$effect(_p$ => {
2768
- var _v$ = props.tabIndex_,
2769
- _v$2 = href();
2770
- _v$ !== _p$.e && $8tj43$setAttribute(_el$, "tabindex", _p$.e = _v$);
2771
- _v$2 !== _p$.t && $8tj43$setAttribute(_el$, "href", _p$.t = _v$2);
2772
- return _p$;
2773
- }, {
2774
- e: undefined,
2775
- t: undefined
2776
- });
2773
+ }), false, false);
2777
2774
  $8tj43$runHydrationEvents();
2778
2775
  return _el$;
2779
2776
  })();
@@ -2787,11 +2784,12 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2787
2784
  return (_listing_3 = listing_()) === null || _listing_3 === void 0 ? void 0 : _listing_3.ancestors;
2788
2785
  });
2789
2786
  return (() => {
2790
- var _el$2 = $8tj43$getNextElement($26db6925469636a4$var$_tmpl$2),
2791
- _el$3 = _el$2.firstChild,
2792
- _el$5 = _el$3.nextSibling,
2787
+ var _el$2 = $8tj43$getNextElement($26db6925469636a4$var$_tmpl$3),
2788
+ _el$5 = _el$2.firstChild,
2793
2789
  [_el$6, _co$] = $8tj43$getNextMarker(_el$5.nextSibling),
2794
- _el$4 = _el$6.nextSibling;
2790
+ _el$7 = _el$6.nextSibling,
2791
+ [_el$8, _co$2] = $8tj43$getNextMarker(_el$7.nextSibling),
2792
+ _el$4 = _el$8.nextSibling;
2795
2793
  $8tj43$use(element => $d0883254246d3eb6$export$12761f53d7ab7f27(element, selectedDueToKeyboardNavigation), _el$2);
2796
2794
  $8tj43$addEventListener(_el$2, "mouseleave", $8tj43$catchify(() => write_selected_index_()));
2797
2795
  $8tj43$addEventListener(_el$2, "mouseover", $8tj43$catchify(_ref2 => {
@@ -2806,15 +2804,22 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2806
2804
  }
2807
2805
  write_selected_index_([keyboardNavigationGroupIndex_(), index_()]);
2808
2806
  }), true);
2809
- $8tj43$insert(_el$3, $8tj43$createComponent(LinkToListing, {
2810
- tabIndex_: -1,
2807
+ $8tj43$insert(_el$2, $8tj43$createComponent(LinkToListing, {
2808
+ "class": "image-part",
2809
+ get style() {
2810
+ var _image_urls$length, _image_urls;
2811
+ return "--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0);
2812
+ },
2813
+ tabIndex: -1,
2811
2814
  get children() {
2812
- return $8tj43$createComponent($26db6925469636a4$export$ea41102db9bd68c3, {
2815
+ var _el$3 = $8tj43$getNextElement($26db6925469636a4$var$_tmpl$2);
2816
+ $8tj43$insert(_el$3, $8tj43$createComponent($26db6925469636a4$export$ea41102db9bd68c3, {
2813
2817
  image_urls_: image_urls,
2814
2818
  merchant_: merchant_
2815
- });
2819
+ }));
2820
+ return _el$3;
2816
2821
  }
2817
- }));
2822
+ }), _el$6, _co$);
2818
2823
  $8tj43$insert(_el$2, $8tj43$createComponent((0, $8tj43$Show), {
2819
2824
  get when() {
2820
2825
  var _crumbData;
@@ -2830,7 +2835,7 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2830
2835
  placeholderData_: [,,]
2831
2836
  });
2832
2837
  }
2833
- }), _el$6, _co$);
2838
+ }), _el$8, _co$2);
2834
2839
  $8tj43$insert(_el$4, $8tj43$createComponent(LinkToListing, {
2835
2840
  get children() {
2836
2841
  var _listing_4;
@@ -2840,17 +2845,7 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2840
2845
  });
2841
2846
  }
2842
2847
  }));
2843
- $8tj43$effect(_p$ => {
2844
- var _image_urls$length, _image_urls;
2845
- var _v$3 = !!isSelected(),
2846
- _v$4 = "--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0);
2847
- _v$3 !== _p$.e && _el$2.classList.toggle("selected", _p$.e = _v$3);
2848
- _p$.t = $8tj43$style(_el$3, _v$4, _p$.t);
2849
- return _p$;
2850
- }, {
2851
- e: undefined,
2852
- t: undefined
2853
- });
2848
+ $8tj43$effect(() => _el$2.classList.toggle("selected", !!isSelected()));
2854
2849
  $8tj43$runHydrationEvents();
2855
2850
  return _el$2;
2856
2851
  })();
@@ -2895,13 +2890,13 @@ function $26db6925469636a4$export$ea41102db9bd68c3(_ref3) {
2895
2890
  }
2896
2891
  function $26db6925469636a4$var$EmptyImage() {
2897
2892
  return (() => {
2898
- var _el$7 = $8tj43$getNextElement($26db6925469636a4$var$_tmpl$3);
2899
- _el$7.style.setProperty("aspect-ratio", "2");
2900
- $8tj43$insert(_el$7, $8tj43$createComponent((0, $4a3ed70b3b7c60d5$export$9ca09caa9c849d9c), {}));
2901
- return _el$7;
2893
+ var _el$9 = $8tj43$getNextElement($26db6925469636a4$var$_tmpl$4);
2894
+ _el$9.style.setProperty("aspect-ratio", "2");
2895
+ $8tj43$insert(_el$9, $8tj43$createComponent((0, $4a3ed70b3b7c60d5$export$9ca09caa9c849d9c), {}));
2896
+ return _el$9;
2902
2897
  })();
2903
2898
  }
2904
- $8tj43$delegateEvents(["click", "mouseover"]);
2899
+ $8tj43$delegateEvents(["mouseover"]);
2905
2900
  var $ca6ab5f08bd28bca$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
2906
2901
  function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
2907
2902
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
package/README.md CHANGED
@@ -9,4 +9,5 @@ Breaking changes:
9
9
  - 1.3.0 moved `depict-filter-sort-mobile-modal-container` from being a class to being an id
10
10
  - 1.4.0 Added `brand_` translation string to Locale.
11
11
  - 2.0.0 Made `enable_content_search` `true` by default. Redesigned filter counts.
12
- - 3.0.19 (first `latest` tagged release of version 3): Please see this [migration guide](https://docs.depict.ai/other-guides/sdk-migration-v2-v3)
12
+ - 3.0.19 (first `latest` tagged release of version 3): Please see this [migration guide](https://docs.depict.ai/other-guides/sdk-migration-v2-v3)
13
+ - 4.x.x: See https://docs.depict.ai/other-guides/sdk-migration-v3-v4
package/latest/index.cjs CHANGED
@@ -89,7 +89,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
89
89
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
90
90
  $parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
91
91
  /*! Depict.ai search and product listing SDK */
92
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.21";
92
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.23";
93
93
 
94
94
  /**
95
95
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -2700,8 +2700,9 @@ function $3a1c4fee88fb8672$export$9ca09caa9c849d9c() {
2700
2700
  return $gVhhF$solidjsweb.getNextElement($3a1c4fee88fb8672$var$_tmpl$);
2701
2701
  }
2702
2702
  var $1f3b5fa875714dea$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a>`),
2703
- $1f3b5fa875714dea$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=listing-card><div class=image-part></div><!$><!/><h3 class=title>`),
2704
- $1f3b5fa875714dea$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=empty-image>`);
2703
+ $1f3b5fa875714dea$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=images-wrapper>`),
2704
+ $1f3b5fa875714dea$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=listing-card><!$><!/><!$><!/><h3 class=title>`),
2705
+ $1f3b5fa875714dea$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=empty-image>`);
2705
2706
  const $1f3b5fa875714dea$var$aspectRatioWidthComponent = 400;
2706
2707
  const $1f3b5fa875714dea$var$aspectRatioHeightComponent = 200;
2707
2708
  const $1f3b5fa875714dea$var$listingSuggestionCollageAspectRatio = $1f3b5fa875714dea$var$aspectRatioWidthComponent / $1f3b5fa875714dea$var$aspectRatioHeightComponent;
@@ -2719,26 +2720,22 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
2719
2720
  const href = $gVhhF$solidjs.createMemo(() => listing_()?.page_url); // <- could be made reactive getter created in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
2720
2721
  const LinkToListing = props => (() => {
2721
2722
  var _el$ = $gVhhF$solidjsweb.getNextElement($1f3b5fa875714dea$var$_tmpl$);
2722
- $gVhhF$solidjsweb.addEventListener(_el$, "click", $gVhhF$depictaiutilishared.catchify(ev => href() && router_.navigate_.go_to_({
2723
- new_url_: href(),
2724
- is_replace_: false,
2725
- event_: ev,
2726
- listing_query_: {
2727
- id: listing_().listing_id,
2728
- type: $779741d0f266ea8c$export$74ee7529ce0f8a00
2723
+ $gVhhF$solidjsweb.spread(_el$, $gVhhF$solidjsweb.mergeProps(props, {
2724
+ get href() {
2725
+ return href();
2726
+ },
2727
+ get onClick() {
2728
+ return $gVhhF$depictaiutilishared.catchify(ev => href() && router_.navigate_.go_to_({
2729
+ new_url_: href(),
2730
+ is_replace_: false,
2731
+ event_: ev,
2732
+ listing_query_: {
2733
+ id: listing_().listing_id,
2734
+ type: $779741d0f266ea8c$export$74ee7529ce0f8a00
2735
+ }
2736
+ }));
2729
2737
  }
2730
- })), true);
2731
- $gVhhF$solidjsweb.insert(_el$, () => props.children);
2732
- $gVhhF$solidjsweb.effect(_p$ => {
2733
- var _v$ = props.tabIndex_,
2734
- _v$2 = href();
2735
- _v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$, "tabindex", _p$.e = _v$);
2736
- _v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$, "href", _p$.t = _v$2);
2737
- return _p$;
2738
- }, {
2739
- e: undefined,
2740
- t: undefined
2741
- });
2738
+ }), false, false);
2742
2739
  $gVhhF$solidjsweb.runHydrationEvents();
2743
2740
  return _el$;
2744
2741
  })();
@@ -2746,11 +2743,12 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
2746
2743
  const [isSelected, selectedDueToKeyboardNavigation] = $f144ea315d9e4caa$export$fb40a80c530e5f2b(read_selected_index_, keyboardNavigationGroupIndex_, index_);
2747
2744
  const crumbData = $gVhhF$solidjs.createMemo(() => listing_()?.ancestors);
2748
2745
  return (() => {
2749
- var _el$2 = $gVhhF$solidjsweb.getNextElement($1f3b5fa875714dea$var$_tmpl$2),
2750
- _el$3 = _el$2.firstChild,
2751
- _el$5 = _el$3.nextSibling,
2746
+ var _el$2 = $gVhhF$solidjsweb.getNextElement($1f3b5fa875714dea$var$_tmpl$3),
2747
+ _el$5 = _el$2.firstChild,
2752
2748
  [_el$6, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$5.nextSibling),
2753
- _el$4 = _el$6.nextSibling;
2749
+ _el$7 = _el$6.nextSibling,
2750
+ [_el$8, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$7.nextSibling),
2751
+ _el$4 = _el$8.nextSibling;
2754
2752
  $gVhhF$solidjsweb.use(element => $f144ea315d9e4caa$export$12761f53d7ab7f27(element, selectedDueToKeyboardNavigation), _el$2);
2755
2753
  $gVhhF$solidjsweb.addEventListener(_el$2, "mouseleave", $gVhhF$depictaiutilishared.catchify(() => write_selected_index_()));
2756
2754
  $gVhhF$solidjsweb.addEventListener(_el$2, "mouseover", $gVhhF$depictaiutilishared.catchify(({
@@ -2764,15 +2762,21 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
2764
2762
  }
2765
2763
  write_selected_index_([keyboardNavigationGroupIndex_(), index_()]);
2766
2764
  }), true);
2767
- $gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjsweb.createComponent(LinkToListing, {
2768
- tabIndex_: -1,
2765
+ $gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent(LinkToListing, {
2766
+ "class": "image-part",
2767
+ get style() {
2768
+ return `--image-count: ${image_urls()?.length ?? 0}`;
2769
+ },
2770
+ tabIndex: -1,
2769
2771
  get children() {
2770
- return $gVhhF$solidjsweb.createComponent($1f3b5fa875714dea$export$ea41102db9bd68c3, {
2772
+ var _el$3 = $gVhhF$solidjsweb.getNextElement($1f3b5fa875714dea$var$_tmpl$2);
2773
+ $gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjsweb.createComponent($1f3b5fa875714dea$export$ea41102db9bd68c3, {
2771
2774
  image_urls_: image_urls,
2772
2775
  merchant_: merchant_
2773
- });
2776
+ }));
2777
+ return _el$3;
2774
2778
  }
2775
- }));
2779
+ }), _el$6, _co$);
2776
2780
  $gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
2777
2781
  get when() {
2778
2782
  return crumbData()?.length !== 0;
@@ -2787,7 +2791,7 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
2787
2791
  placeholderData_: [,,]
2788
2792
  });
2789
2793
  }
2790
- }), _el$6, _co$);
2794
+ }), _el$8, _co$2);
2791
2795
  $gVhhF$solidjsweb.insert(_el$4, $gVhhF$solidjsweb.createComponent(LinkToListing, {
2792
2796
  get children() {
2793
2797
  return listing_()?.title || $gVhhF$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
@@ -2796,16 +2800,7 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
2796
2800
  });
2797
2801
  }
2798
2802
  }));
2799
- $gVhhF$solidjsweb.effect(_p$ => {
2800
- var _v$3 = !!isSelected(),
2801
- _v$4 = `--image-count: ${image_urls()?.length ?? 0}`;
2802
- _v$3 !== _p$.e && _el$2.classList.toggle("selected", _p$.e = _v$3);
2803
- _p$.t = $gVhhF$solidjsweb.style(_el$3, _v$4, _p$.t);
2804
- return _p$;
2805
- }, {
2806
- e: undefined,
2807
- t: undefined
2808
- });
2803
+ $gVhhF$solidjsweb.effect(() => _el$2.classList.toggle("selected", !!isSelected()));
2809
2804
  $gVhhF$solidjsweb.runHydrationEvents();
2810
2805
  return _el$2;
2811
2806
  })();
@@ -2848,13 +2843,13 @@ function $1f3b5fa875714dea$export$ea41102db9bd68c3({
2848
2843
  }
2849
2844
  function $1f3b5fa875714dea$var$EmptyImage() {
2850
2845
  return (() => {
2851
- var _el$7 = $gVhhF$solidjsweb.getNextElement($1f3b5fa875714dea$var$_tmpl$3);
2852
- _el$7.style.setProperty("aspect-ratio", "2");
2853
- $gVhhF$solidjsweb.insert(_el$7, $gVhhF$solidjsweb.createComponent((0, $3a1c4fee88fb8672$export$9ca09caa9c849d9c), {}));
2854
- return _el$7;
2846
+ var _el$9 = $gVhhF$solidjsweb.getNextElement($1f3b5fa875714dea$var$_tmpl$4);
2847
+ _el$9.style.setProperty("aspect-ratio", "2");
2848
+ $gVhhF$solidjsweb.insert(_el$9, $gVhhF$solidjsweb.createComponent((0, $3a1c4fee88fb8672$export$9ca09caa9c849d9c), {}));
2849
+ return _el$9;
2855
2850
  })();
2856
2851
  }
2857
- $gVhhF$solidjsweb.delegateEvents(["click", "mouseover"]);
2852
+ $gVhhF$solidjsweb.delegateEvents(["mouseover"]);
2858
2853
  var $0f313083912e447a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
2859
2854
  function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
2860
2855
  return (() => {
package/latest/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.0.21";
13
+ export const version = "4.0.23";
14
14
  /**
15
15
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
16
16
  */
@@ -1211,7 +1211,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1211
1211
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
1212
1212
  content_blocks_by_row?: ContentBlocksByRow;
1213
1213
  layout?: PossibleLayout;
1214
- }): import("@depict-ai/utilishared/latest").Node_Array;
1214
+ }): import("@depict-ai/utilishared").Node_Array;
1215
1215
  export function BreadCrumbs<T extends Display>({
1216
1216
  depict_category
1217
1217
  }: {
@@ -1351,7 +1351,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1351
1351
  * Open the modal with support for alignment.
1352
1352
  * @returns {void}
1353
1353
  */
1354
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1354
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1355
1355
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1356
1356
  export interface PageReplacer {
1357
1357
  readonly render_: () => Node_Array;
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.0.21";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.0.23";
11
11
 
12
12
  /**
13
13
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -2618,8 +2618,9 @@ function $0eb1f9e7ee46f1c2$export$9ca09caa9c849d9c() {
2618
2618
  return $9HbP8$getNextElement($0eb1f9e7ee46f1c2$var$_tmpl$);
2619
2619
  }
2620
2620
  var $4ce5b8892775b62d$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<a>`),
2621
- $4ce5b8892775b62d$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=listing-card><div class=image-part></div><!$><!/><h3 class=title>`),
2622
- $4ce5b8892775b62d$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=empty-image>`);
2621
+ $4ce5b8892775b62d$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div class=images-wrapper>`),
2622
+ $4ce5b8892775b62d$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=listing-card><!$><!/><!$><!/><h3 class=title>`),
2623
+ $4ce5b8892775b62d$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class=empty-image>`);
2623
2624
  const $4ce5b8892775b62d$var$aspectRatioWidthComponent = 400;
2624
2625
  const $4ce5b8892775b62d$var$aspectRatioHeightComponent = 200;
2625
2626
  const $4ce5b8892775b62d$var$listingSuggestionCollageAspectRatio = $4ce5b8892775b62d$var$aspectRatioWidthComponent / $4ce5b8892775b62d$var$aspectRatioHeightComponent;
@@ -2637,26 +2638,22 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
2637
2638
  const href = $9HbP8$createMemo(() => listing_()?.page_url); // <- could be made reactive getter created in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
2638
2639
  const LinkToListing = props => (() => {
2639
2640
  var _el$ = $9HbP8$getNextElement($4ce5b8892775b62d$var$_tmpl$);
2640
- $9HbP8$addEventListener(_el$, "click", $9HbP8$catchify(ev => href() && router_.navigate_.go_to_({
2641
- new_url_: href(),
2642
- is_replace_: false,
2643
- event_: ev,
2644
- listing_query_: {
2645
- id: listing_().listing_id,
2646
- type: $c20599a0d81d953a$export$74ee7529ce0f8a00
2641
+ $9HbP8$spread(_el$, $9HbP8$mergeProps(props, {
2642
+ get href() {
2643
+ return href();
2644
+ },
2645
+ get onClick() {
2646
+ return $9HbP8$catchify(ev => href() && router_.navigate_.go_to_({
2647
+ new_url_: href(),
2648
+ is_replace_: false,
2649
+ event_: ev,
2650
+ listing_query_: {
2651
+ id: listing_().listing_id,
2652
+ type: $c20599a0d81d953a$export$74ee7529ce0f8a00
2653
+ }
2654
+ }));
2647
2655
  }
2648
- })), true);
2649
- $9HbP8$insert(_el$, () => props.children);
2650
- $9HbP8$effect(_p$ => {
2651
- var _v$ = props.tabIndex_,
2652
- _v$2 = href();
2653
- _v$ !== _p$.e && $9HbP8$setAttribute(_el$, "tabindex", _p$.e = _v$);
2654
- _v$2 !== _p$.t && $9HbP8$setAttribute(_el$, "href", _p$.t = _v$2);
2655
- return _p$;
2656
- }, {
2657
- e: undefined,
2658
- t: undefined
2659
- });
2656
+ }), false, false);
2660
2657
  $9HbP8$runHydrationEvents();
2661
2658
  return _el$;
2662
2659
  })();
@@ -2664,11 +2661,12 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
2664
2661
  const [isSelected, selectedDueToKeyboardNavigation] = $f4125ce4984deee6$export$fb40a80c530e5f2b(read_selected_index_, keyboardNavigationGroupIndex_, index_);
2665
2662
  const crumbData = $9HbP8$createMemo(() => listing_()?.ancestors);
2666
2663
  return (() => {
2667
- var _el$2 = $9HbP8$getNextElement($4ce5b8892775b62d$var$_tmpl$2),
2668
- _el$3 = _el$2.firstChild,
2669
- _el$5 = _el$3.nextSibling,
2664
+ var _el$2 = $9HbP8$getNextElement($4ce5b8892775b62d$var$_tmpl$3),
2665
+ _el$5 = _el$2.firstChild,
2670
2666
  [_el$6, _co$] = $9HbP8$getNextMarker(_el$5.nextSibling),
2671
- _el$4 = _el$6.nextSibling;
2667
+ _el$7 = _el$6.nextSibling,
2668
+ [_el$8, _co$2] = $9HbP8$getNextMarker(_el$7.nextSibling),
2669
+ _el$4 = _el$8.nextSibling;
2672
2670
  $9HbP8$use(element => $f4125ce4984deee6$export$12761f53d7ab7f27(element, selectedDueToKeyboardNavigation), _el$2);
2673
2671
  $9HbP8$addEventListener(_el$2, "mouseleave", $9HbP8$catchify(() => write_selected_index_()));
2674
2672
  $9HbP8$addEventListener(_el$2, "mouseover", $9HbP8$catchify(({
@@ -2682,15 +2680,21 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
2682
2680
  }
2683
2681
  write_selected_index_([keyboardNavigationGroupIndex_(), index_()]);
2684
2682
  }), true);
2685
- $9HbP8$insert(_el$3, $9HbP8$createComponent(LinkToListing, {
2686
- tabIndex_: -1,
2683
+ $9HbP8$insert(_el$2, $9HbP8$createComponent(LinkToListing, {
2684
+ "class": "image-part",
2685
+ get style() {
2686
+ return `--image-count: ${image_urls()?.length ?? 0}`;
2687
+ },
2688
+ tabIndex: -1,
2687
2689
  get children() {
2688
- return $9HbP8$createComponent($4ce5b8892775b62d$export$ea41102db9bd68c3, {
2690
+ var _el$3 = $9HbP8$getNextElement($4ce5b8892775b62d$var$_tmpl$2);
2691
+ $9HbP8$insert(_el$3, $9HbP8$createComponent($4ce5b8892775b62d$export$ea41102db9bd68c3, {
2689
2692
  image_urls_: image_urls,
2690
2693
  merchant_: merchant_
2691
- });
2694
+ }));
2695
+ return _el$3;
2692
2696
  }
2693
- }));
2697
+ }), _el$6, _co$);
2694
2698
  $9HbP8$insert(_el$2, $9HbP8$createComponent((0, $9HbP8$Show), {
2695
2699
  get when() {
2696
2700
  return crumbData()?.length !== 0;
@@ -2705,7 +2709,7 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
2705
2709
  placeholderData_: [,,]
2706
2710
  });
2707
2711
  }
2708
- }), _el$6, _co$);
2712
+ }), _el$8, _co$2);
2709
2713
  $9HbP8$insert(_el$4, $9HbP8$createComponent(LinkToListing, {
2710
2714
  get children() {
2711
2715
  return listing_()?.title || $9HbP8$createComponent((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
@@ -2714,16 +2718,7 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
2714
2718
  });
2715
2719
  }
2716
2720
  }));
2717
- $9HbP8$effect(_p$ => {
2718
- var _v$3 = !!isSelected(),
2719
- _v$4 = `--image-count: ${image_urls()?.length ?? 0}`;
2720
- _v$3 !== _p$.e && _el$2.classList.toggle("selected", _p$.e = _v$3);
2721
- _p$.t = $9HbP8$style(_el$3, _v$4, _p$.t);
2722
- return _p$;
2723
- }, {
2724
- e: undefined,
2725
- t: undefined
2726
- });
2721
+ $9HbP8$effect(() => _el$2.classList.toggle("selected", !!isSelected()));
2727
2722
  $9HbP8$runHydrationEvents();
2728
2723
  return _el$2;
2729
2724
  })();
@@ -2766,13 +2761,13 @@ function $4ce5b8892775b62d$export$ea41102db9bd68c3({
2766
2761
  }
2767
2762
  function $4ce5b8892775b62d$var$EmptyImage() {
2768
2763
  return (() => {
2769
- var _el$7 = $9HbP8$getNextElement($4ce5b8892775b62d$var$_tmpl$3);
2770
- _el$7.style.setProperty("aspect-ratio", "2");
2771
- $9HbP8$insert(_el$7, $9HbP8$createComponent((0, $0eb1f9e7ee46f1c2$export$9ca09caa9c849d9c), {}));
2772
- return _el$7;
2764
+ var _el$9 = $9HbP8$getNextElement($4ce5b8892775b62d$var$_tmpl$4);
2765
+ _el$9.style.setProperty("aspect-ratio", "2");
2766
+ $9HbP8$insert(_el$9, $9HbP8$createComponent((0, $0eb1f9e7ee46f1c2$export$9ca09caa9c849d9c), {}));
2767
+ return _el$9;
2773
2768
  })();
2774
2769
  }
2775
- $9HbP8$delegateEvents(["click", "mouseover"]);
2770
+ $9HbP8$delegateEvents(["mouseover"]);
2776
2771
  var $fbbadcb080ad1d4a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
2777
2772
  function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
2778
2773
  return (() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.0.21",
3
+ "version": "4.0.23",
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,7 +236,7 @@
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": "^3.0.11",
239
+ "@depict-ai/plp-styling": "^3.0.12",
240
240
  "@depict-ai/types": "^5.0.5",
241
241
  "@depict-ai/utilishared": "^2.0.15",
242
242
  "solid-js": "^1.8.12"
@@ -95,7 +95,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447a
95
95
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
96
96
  $parcel$export(module.exports, "SearchField", () => $98aef9965764903d$export$316f6f283ae64765);
97
97
  /*! Depict.ai search and product listing SDK */
98
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.21";
98
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.23";
99
99
 
100
100
  /**
101
101
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -2245,14 +2245,13 @@ var $317500f39819fba6$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"
2245
2245
  function $317500f39819fba6$export$9ca09caa9c849d9c() {
2246
2246
  return $3hooq$solidjsweb.ssr($317500f39819fba6$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey());
2247
2247
  }
2248
- var $d1e7b96fb13cd1d3$var$_tmpl$ = ["<a", ">", "</a>"],
2249
- $d1e7b96fb13cd1d3$var$_tmpl$2 = ["<div", ' class="', '"><div class="image-part" style="', '">', "</div><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2248
+ var $d1e7b96fb13cd1d3$var$_tmpl$ = ["<div", ' class="images-wrapper">', "</div>"],
2249
+ $d1e7b96fb13cd1d3$var$_tmpl$2 = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2250
2250
  $d1e7b96fb13cd1d3$var$_tmpl$3 = ["<div", ' class="empty-image" style="', '">', "</div>"];
2251
2251
  const $d1e7b96fb13cd1d3$var$aspectRatioWidthComponent = 400;
2252
2252
  const $d1e7b96fb13cd1d3$var$aspectRatioHeightComponent = 200;
2253
2253
  const $d1e7b96fb13cd1d3$var$listingSuggestionCollageAspectRatio = $d1e7b96fb13cd1d3$var$aspectRatioWidthComponent / $d1e7b96fb13cd1d3$var$aspectRatioHeightComponent;
2254
2254
  function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2255
- var _image_urls$length, _image_urls;
2256
2255
  let {
2257
2256
  listing_: listing_,
2258
2257
  router_: router_,
@@ -2268,7 +2267,11 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2268
2267
  var _listing_;
2269
2268
  return (_listing_ = listing_()) === null || _listing_ === void 0 ? void 0 : _listing_.page_url;
2270
2269
  }); // <- could be made reactive getter created in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
2271
- const LinkToListing = props => $3hooq$solidjsweb.ssr($d1e7b96fb13cd1d3$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey() + $3hooq$solidjsweb.ssrAttribute("tabindex", $3hooq$solidjsweb.escape(props.tabIndex_, true), false) + $3hooq$solidjsweb.ssrAttribute("href", $3hooq$solidjsweb.escape(href(), true), false), $3hooq$solidjsweb.escape(props.children));
2270
+ const LinkToListing = props => $3hooq$solidjsweb.ssrElement("a", $3hooq$solidjsweb.mergeProps(props, {
2271
+ get href() {
2272
+ return href();
2273
+ }
2274
+ }), undefined, true);
2272
2275
  const image_urls = $3hooq$solidjs.createMemo(() => {
2273
2276
  var _listing_2;
2274
2277
  return (_listing_2 = listing_()) === null || _listing_2 === void 0 ? void 0 : _listing_2.image_urls;
@@ -2278,13 +2281,18 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
2278
2281
  var _listing_3;
2279
2282
  return (_listing_3 = listing_()) === null || _listing_3 === void 0 ? void 0 : _listing_3.ancestors;
2280
2283
  });
2281
- return $3hooq$solidjsweb.ssr($d1e7b96fb13cd1d3$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), "listing-card ".concat(isSelected() ? "selected" : ""), $3hooq$solidjsweb.ssrStyle("--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0)), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(LinkToListing, {
2282
- tabIndex_: -1,
2284
+ return $3hooq$solidjsweb.ssr($d1e7b96fb13cd1d3$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), "listing-card ".concat(isSelected() ? "selected" : ""), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(LinkToListing, {
2285
+ "class": "image-part",
2286
+ get style() {
2287
+ var _image_urls$length, _image_urls;
2288
+ return "--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0);
2289
+ },
2290
+ tabIndex: -1,
2283
2291
  get children() {
2284
- return $3hooq$solidjsweb.createComponent($d1e7b96fb13cd1d3$export$ea41102db9bd68c3, {
2292
+ return $3hooq$solidjsweb.ssr($d1e7b96fb13cd1d3$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent($d1e7b96fb13cd1d3$export$ea41102db9bd68c3, {
2285
2293
  image_urls_: image_urls,
2286
2294
  merchant_: merchant_
2287
- });
2295
+ })));
2288
2296
  }
2289
2297
  })), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
2290
2298
  get when() {
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.0.21";
13
+ export const version = "4.0.23";
14
14
  /**
15
15
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
16
16
  */
@@ -1211,7 +1211,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1211
1211
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
1212
1212
  content_blocks_by_row?: ContentBlocksByRow;
1213
1213
  layout?: PossibleLayout;
1214
- }): import("@depict-ai/utilishared/latest").Node_Array;
1214
+ }): import("@depict-ai/utilishared").Node_Array;
1215
1215
  export function BreadCrumbs<T extends Display>({
1216
1216
  depict_category
1217
1217
  }: {
@@ -1351,7 +1351,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1351
1351
  * Open the modal with support for alignment.
1352
1352
  * @returns {void}
1353
1353
  */
1354
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1354
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1355
1355
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1356
1356
  export interface PageReplacer {
1357
1357
  readonly render_: () => Node_Array;
@@ -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.0.21";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.0.23";
14
14
 
15
15
  /**
16
16
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -2160,14 +2160,13 @@ var $4a3ed70b3b7c60d5$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"
2160
2160
  function $4a3ed70b3b7c60d5$export$9ca09caa9c849d9c() {
2161
2161
  return $b8hua$ssr($4a3ed70b3b7c60d5$var$_tmpl$, $b8hua$ssrHydrationKey());
2162
2162
  }
2163
- var $26db6925469636a4$var$_tmpl$ = ["<a", ">", "</a>"],
2164
- $26db6925469636a4$var$_tmpl$2 = ["<div", ' class="', '"><div class="image-part" style="', '">', "</div><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2163
+ var $26db6925469636a4$var$_tmpl$ = ["<div", ' class="images-wrapper">', "</div>"],
2164
+ $26db6925469636a4$var$_tmpl$2 = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2165
2165
  $26db6925469636a4$var$_tmpl$3 = ["<div", ' class="empty-image" style="', '">', "</div>"];
2166
2166
  const $26db6925469636a4$var$aspectRatioWidthComponent = 400;
2167
2167
  const $26db6925469636a4$var$aspectRatioHeightComponent = 200;
2168
2168
  const $26db6925469636a4$var$listingSuggestionCollageAspectRatio = $26db6925469636a4$var$aspectRatioWidthComponent / $26db6925469636a4$var$aspectRatioHeightComponent;
2169
2169
  function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2170
- var _image_urls$length, _image_urls;
2171
2170
  let {
2172
2171
  listing_: listing_,
2173
2172
  router_: router_,
@@ -2183,7 +2182,11 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2183
2182
  var _listing_;
2184
2183
  return (_listing_ = listing_()) === null || _listing_ === void 0 ? void 0 : _listing_.page_url;
2185
2184
  }); // <- could be made reactive getter created in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
2186
- const LinkToListing = props => $b8hua$ssr($26db6925469636a4$var$_tmpl$, $b8hua$ssrHydrationKey() + $b8hua$ssrAttribute("tabindex", $b8hua$escape(props.tabIndex_, true), false) + $b8hua$ssrAttribute("href", $b8hua$escape(href(), true), false), $b8hua$escape(props.children));
2185
+ const LinkToListing = props => $b8hua$ssrElement("a", $b8hua$mergeProps(props, {
2186
+ get href() {
2187
+ return href();
2188
+ }
2189
+ }), undefined, true);
2187
2190
  const image_urls = $b8hua$createMemo(() => {
2188
2191
  var _listing_2;
2189
2192
  return (_listing_2 = listing_()) === null || _listing_2 === void 0 ? void 0 : _listing_2.image_urls;
@@ -2193,13 +2196,18 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
2193
2196
  var _listing_3;
2194
2197
  return (_listing_3 = listing_()) === null || _listing_3 === void 0 ? void 0 : _listing_3.ancestors;
2195
2198
  });
2196
- return $b8hua$ssr($26db6925469636a4$var$_tmpl$2, $b8hua$ssrHydrationKey(), "listing-card ".concat(isSelected() ? "selected" : ""), $b8hua$ssrStyle("--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0)), $b8hua$escape($b8hua$createComponent(LinkToListing, {
2197
- tabIndex_: -1,
2199
+ return $b8hua$ssr($26db6925469636a4$var$_tmpl$2, $b8hua$ssrHydrationKey(), "listing-card ".concat(isSelected() ? "selected" : ""), $b8hua$escape($b8hua$createComponent(LinkToListing, {
2200
+ "class": "image-part",
2201
+ get style() {
2202
+ var _image_urls$length, _image_urls;
2203
+ return "--image-count: ".concat((_image_urls$length = (_image_urls = image_urls()) === null || _image_urls === void 0 ? void 0 : _image_urls.length) !== null && _image_urls$length !== void 0 ? _image_urls$length : 0);
2204
+ },
2205
+ tabIndex: -1,
2198
2206
  get children() {
2199
- return $b8hua$createComponent($26db6925469636a4$export$ea41102db9bd68c3, {
2207
+ return $b8hua$ssr($26db6925469636a4$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent($26db6925469636a4$export$ea41102db9bd68c3, {
2200
2208
  image_urls_: image_urls,
2201
2209
  merchant_: merchant_
2202
- });
2210
+ })));
2203
2211
  }
2204
2212
  })), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
2205
2213
  get when() {
@@ -89,7 +89,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
89
89
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
90
90
  $parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
91
91
  /*! Depict.ai search and product listing SDK */
92
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.21";
92
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.23";
93
93
 
94
94
  /**
95
95
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -2143,8 +2143,8 @@ var $3a1c4fee88fb8672$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"
2143
2143
  function $3a1c4fee88fb8672$export$9ca09caa9c849d9c() {
2144
2144
  return $5vyXB$solidjsweb.ssr($3a1c4fee88fb8672$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey());
2145
2145
  }
2146
- var $1f3b5fa875714dea$var$_tmpl$ = ["<a", ">", "</a>"],
2147
- $1f3b5fa875714dea$var$_tmpl$2 = ["<div", ' class="', '"><div class="image-part" style="', '">', "</div><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2146
+ var $1f3b5fa875714dea$var$_tmpl$ = ["<div", ' class="images-wrapper">', "</div>"],
2147
+ $1f3b5fa875714dea$var$_tmpl$2 = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2148
2148
  $1f3b5fa875714dea$var$_tmpl$3 = ["<div", ' class="empty-image" style="', '">', "</div>"];
2149
2149
  const $1f3b5fa875714dea$var$aspectRatioWidthComponent = 400;
2150
2150
  const $1f3b5fa875714dea$var$aspectRatioHeightComponent = 200;
@@ -2161,17 +2161,25 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
2161
2161
  selected_index_: [read_selected_index_, write_selected_index_]
2162
2162
  }) {
2163
2163
  const href = $5vyXB$solidjs.createMemo(() => listing_()?.page_url); // <- could be made reactive getter created in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
2164
- const LinkToListing = props => $5vyXB$solidjsweb.ssr($1f3b5fa875714dea$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey() + $5vyXB$solidjsweb.ssrAttribute("tabindex", $5vyXB$solidjsweb.escape(props.tabIndex_, true), false) + $5vyXB$solidjsweb.ssrAttribute("href", $5vyXB$solidjsweb.escape(href(), true), false), $5vyXB$solidjsweb.escape(props.children));
2164
+ const LinkToListing = props => $5vyXB$solidjsweb.ssrElement("a", $5vyXB$solidjsweb.mergeProps(props, {
2165
+ get href() {
2166
+ return href();
2167
+ }
2168
+ }), undefined, true);
2165
2169
  const image_urls = $5vyXB$solidjs.createMemo(() => listing_()?.image_urls);
2166
2170
  const [isSelected, selectedDueToKeyboardNavigation] = $f144ea315d9e4caa$export$fb40a80c530e5f2b(read_selected_index_, keyboardNavigationGroupIndex_, index_);
2167
2171
  const crumbData = $5vyXB$solidjs.createMemo(() => listing_()?.ancestors);
2168
- return $5vyXB$solidjsweb.ssr($1f3b5fa875714dea$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), `listing-card ${isSelected() ? "selected" : ""}`, $5vyXB$solidjsweb.ssrStyle(`--image-count: ${image_urls()?.length ?? 0}`), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(LinkToListing, {
2169
- tabIndex_: -1,
2172
+ return $5vyXB$solidjsweb.ssr($1f3b5fa875714dea$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), `listing-card ${isSelected() ? "selected" : ""}`, $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(LinkToListing, {
2173
+ "class": "image-part",
2174
+ get style() {
2175
+ return `--image-count: ${image_urls()?.length ?? 0}`;
2176
+ },
2177
+ tabIndex: -1,
2170
2178
  get children() {
2171
- return $5vyXB$solidjsweb.createComponent($1f3b5fa875714dea$export$ea41102db9bd68c3, {
2179
+ return $5vyXB$solidjsweb.ssr($1f3b5fa875714dea$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent($1f3b5fa875714dea$export$ea41102db9bd68c3, {
2172
2180
  image_urls_: image_urls,
2173
2181
  merchant_: merchant_
2174
- });
2182
+ })));
2175
2183
  }
2176
2184
  })), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
2177
2185
  get when() {
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.0.21";
13
+ export const version = "4.0.23";
14
14
  /**
15
15
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
16
16
  */
@@ -1211,7 +1211,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1211
1211
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
1212
1212
  content_blocks_by_row?: ContentBlocksByRow;
1213
1213
  layout?: PossibleLayout;
1214
- }): import("@depict-ai/utilishared/latest").Node_Array;
1214
+ }): import("@depict-ai/utilishared").Node_Array;
1215
1215
  export function BreadCrumbs<T extends Display>({
1216
1216
  depict_category
1217
1217
  }: {
@@ -1351,7 +1351,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1351
1351
  * Open the modal with support for alignment.
1352
1352
  * @returns {void}
1353
1353
  */
1354
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1354
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1355
1355
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1356
1356
  export interface PageReplacer {
1357
1357
  readonly render_: () => Node_Array;
@@ -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.0.21";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.0.23";
11
11
 
12
12
  /**
13
13
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -2061,8 +2061,8 @@ var $0eb1f9e7ee46f1c2$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"
2061
2061
  function $0eb1f9e7ee46f1c2$export$9ca09caa9c849d9c() {
2062
2062
  return $i7OB2$ssr($0eb1f9e7ee46f1c2$var$_tmpl$, $i7OB2$ssrHydrationKey());
2063
2063
  }
2064
- var $4ce5b8892775b62d$var$_tmpl$ = ["<a", ">", "</a>"],
2065
- $4ce5b8892775b62d$var$_tmpl$2 = ["<div", ' class="', '"><div class="image-part" style="', '">', "</div><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2064
+ var $4ce5b8892775b62d$var$_tmpl$ = ["<div", ' class="images-wrapper">', "</div>"],
2065
+ $4ce5b8892775b62d$var$_tmpl$2 = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
2066
2066
  $4ce5b8892775b62d$var$_tmpl$3 = ["<div", ' class="empty-image" style="', '">', "</div>"];
2067
2067
  const $4ce5b8892775b62d$var$aspectRatioWidthComponent = 400;
2068
2068
  const $4ce5b8892775b62d$var$aspectRatioHeightComponent = 200;
@@ -2079,17 +2079,25 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
2079
2079
  selected_index_: [read_selected_index_, write_selected_index_]
2080
2080
  }) {
2081
2081
  const href = $i7OB2$createMemo(() => listing_()?.page_url); // <- could be made reactive getter created in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
2082
- const LinkToListing = props => $i7OB2$ssr($4ce5b8892775b62d$var$_tmpl$, $i7OB2$ssrHydrationKey() + $i7OB2$ssrAttribute("tabindex", $i7OB2$escape(props.tabIndex_, true), false) + $i7OB2$ssrAttribute("href", $i7OB2$escape(href(), true), false), $i7OB2$escape(props.children));
2082
+ const LinkToListing = props => $i7OB2$ssrElement("a", $i7OB2$mergeProps(props, {
2083
+ get href() {
2084
+ return href();
2085
+ }
2086
+ }), undefined, true);
2083
2087
  const image_urls = $i7OB2$createMemo(() => listing_()?.image_urls);
2084
2088
  const [isSelected, selectedDueToKeyboardNavigation] = $f4125ce4984deee6$export$fb40a80c530e5f2b(read_selected_index_, keyboardNavigationGroupIndex_, index_);
2085
2089
  const crumbData = $i7OB2$createMemo(() => listing_()?.ancestors);
2086
- return $i7OB2$ssr($4ce5b8892775b62d$var$_tmpl$2, $i7OB2$ssrHydrationKey(), `listing-card ${isSelected() ? "selected" : ""}`, $i7OB2$ssrStyle(`--image-count: ${image_urls()?.length ?? 0}`), $i7OB2$escape($i7OB2$createComponent(LinkToListing, {
2087
- tabIndex_: -1,
2090
+ return $i7OB2$ssr($4ce5b8892775b62d$var$_tmpl$2, $i7OB2$ssrHydrationKey(), `listing-card ${isSelected() ? "selected" : ""}`, $i7OB2$escape($i7OB2$createComponent(LinkToListing, {
2091
+ "class": "image-part",
2092
+ get style() {
2093
+ return `--image-count: ${image_urls()?.length ?? 0}`;
2094
+ },
2095
+ tabIndex: -1,
2088
2096
  get children() {
2089
- return $i7OB2$createComponent($4ce5b8892775b62d$export$ea41102db9bd68c3, {
2097
+ return $i7OB2$ssr($4ce5b8892775b62d$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape($i7OB2$createComponent($4ce5b8892775b62d$export$ea41102db9bd68c3, {
2090
2098
  image_urls_: image_urls,
2091
2099
  merchant_: merchant_
2092
- });
2100
+ })));
2093
2101
  }
2094
2102
  })), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
2095
2103
  get when() {