@depict-ai/ui 3.0.24 → 3.0.26

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
@@ -83,7 +83,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
83
83
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
84
84
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
85
85
  /*! Depict.ai search and product listing SDK */
86
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.24";
86
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.26";
87
87
  const $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>`);
88
88
  function $9d19451330d04c3c$export$8be2714ec7f169ee() {
89
89
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -1984,6 +1984,7 @@ const $ce467edb5343cfcd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<d
1984
1984
  function $ce467edb5343cfcd$export$94026ee33dbabc26(props) {
1985
1985
  return (() => {
1986
1986
  const _el$ = $52FdA$solidjsweb.getNextElement($ce467edb5343cfcd$var$_tmpl$);
1987
+ $52FdA$solidjsweb.insert(_el$, () => props.children);
1987
1988
  $52FdA$solidjsweb.effect(_p$ => {
1988
1989
  const _v$ = "position:relative;width:100%;padding-bottom:".concat(1 / props.aspectRatio * 100, "%"),
1989
1990
  _v$2 = props.class;
@@ -2178,7 +2179,7 @@ function $28535bb7671c63d1$export$e4b984597b71e989(props) {
2178
2179
  $52FdA$depictaiutilishared.queueMacroTask(() => setCurrentImageSize(undefined)); // unset the size accessor next event loop iteration, so that all onCleanup's have time to run, since the effects run more aggressively and can create a size accessor with a cleaned up owner otherwise
2179
2180
  });
2180
2181
 
2181
- $52FdA$solidjsweb.insert(container, $52FdA$solidjsweb.createComponent((0, $858fdcf73148519f$export$6e5611bc7e57e477), {
2182
+ $52FdA$solidjsweb.insert(container, $52FdA$solidjsweb.createComponent((0, $858fdcf73148519f$export$6e5611bc7e57e477), $52FdA$solidjsweb.mergeProps({
2182
2183
  style: "width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0;",
2183
2184
  get size() {
2184
2185
  return $52FdA$solidjs.createMemo(() => {
@@ -2188,11 +2189,8 @@ function $28535bb7671c63d1$export$e4b984597b71e989(props) {
2188
2189
  },
2189
2190
  get src() {
2190
2191
  return props.src;
2191
- },
2192
- get alt() {
2193
- return props.alt;
2194
2192
  }
2195
- }));
2193
+ }, () => props.imgProps)));
2196
2194
  return container;
2197
2195
  }
2198
2196
 
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 = "3.0.24";
13
+ export const version = "3.0.26";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
@@ -520,7 +520,6 @@ export function decode_sorting(search_params: URLSearchParams, sorting_query_par
520
520
  * @param sorting_query_param
521
521
  */
522
522
  export function strip_encoded_filter_and_sort(search_params: URLSearchParams, filter_query_param_prefix: string, sorting_query_param: string): void;
523
- /** @jsxImportSource solid-js */
524
523
  /**
525
524
  * ImageContainer for using the padding hack to set the aspect ratio of an image
526
525
  * Put this around an <img> or <ResponsiveImg> to give it a container that always has the same size as the image. This prevents CLS and enables ResponsiveImg to work (the browser to load the correct image size)
@@ -529,6 +528,7 @@ export function strip_encoded_filter_and_sort(search_params: URLSearchParams, fi
529
528
  export function ImageContainer(props: {
530
529
  aspectRatio: number;
531
530
  class?: string;
531
+ children?: JSX.Element;
532
532
  }): HTMLDivElement;
533
533
  /**
534
534
  * Returns an accessor that will update when the size of the provided element changes, to be used with ResponsiveImg
@@ -559,12 +559,13 @@ export const shopifyContainedImageContextSymbol: unique symbol;
559
559
  * @property aspectRatio aspect ratio of the image
560
560
  * @property class extra class to add to the container
561
561
  * @property alt alt text for the image
562
+ * @property imgProps props to pass to ShopifyResponsiveImg to add to the <img> element
562
563
  */
563
564
  export function ShopifyContainedImage(props: {
564
565
  src: string;
565
566
  aspectRatio: number;
566
567
  class?: string;
567
- alt?: string;
568
+ imgProps?: Omit<Parameters<typeof ShopifyResponsiveImg>[0], "size" | "src">;
568
569
  }): HTMLDivElement;
569
570
  /**
570
571
  * Returns accessor with the size of the provided element, including padding and border (I think)
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 = "3.0.24";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.26";
14
14
  const $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>`);
15
15
  function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
16
16
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -1911,6 +1911,7 @@ const $801e8845d3fa3653$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div>`);
1911
1911
  function $801e8845d3fa3653$export$94026ee33dbabc26(props) {
1912
1912
  return (() => {
1913
1913
  const _el$ = $8tj43$getNextElement($801e8845d3fa3653$var$_tmpl$);
1914
+ $8tj43$insert(_el$, () => props.children);
1914
1915
  $8tj43$effect(_p$ => {
1915
1916
  const _v$ = "position:relative;width:100%;padding-bottom:".concat(1 / props.aspectRatio * 100, "%"),
1916
1917
  _v$2 = props.class;
@@ -2105,7 +2106,7 @@ function $4df489344a0f97c7$export$e4b984597b71e989(props) {
2105
2106
  $8tj43$queueMacroTask(() => setCurrentImageSize(undefined)); // unset the size accessor next event loop iteration, so that all onCleanup's have time to run, since the effects run more aggressively and can create a size accessor with a cleaned up owner otherwise
2106
2107
  });
2107
2108
 
2108
- $8tj43$insert(container, $8tj43$createComponent((0, $56047603f9d212b6$export$6e5611bc7e57e477), {
2109
+ $8tj43$insert(container, $8tj43$createComponent((0, $56047603f9d212b6$export$6e5611bc7e57e477), $8tj43$mergeProps({
2109
2110
  style: "width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0;",
2110
2111
  get size() {
2111
2112
  return $8tj43$createMemo(() => {
@@ -2115,11 +2116,8 @@ function $4df489344a0f97c7$export$e4b984597b71e989(props) {
2115
2116
  },
2116
2117
  get src() {
2117
2118
  return props.src;
2118
- },
2119
- get alt() {
2120
- return props.alt;
2121
2119
  }
2122
- }));
2120
+ }, () => props.imgProps)));
2123
2121
  return container;
2124
2122
  }
2125
2123
 
package/latest/index.cjs CHANGED
@@ -77,7 +77,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
77
77
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
78
78
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
79
79
  /*! Depict.ai search and product listing SDK */
80
- const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.24";
80
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.26";
81
81
  const $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>`);
82
82
  function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
83
83
  return (() => {
@@ -1880,6 +1880,7 @@ const $93304d59a9747aa6$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<d
1880
1880
  function $93304d59a9747aa6$export$94026ee33dbabc26(props) {
1881
1881
  return (() => {
1882
1882
  const _el$ = $gVhhF$solidjsweb.getNextElement($93304d59a9747aa6$var$_tmpl$);
1883
+ $gVhhF$solidjsweb.insert(_el$, () => props.children);
1883
1884
  $gVhhF$solidjsweb.effect(_p$ => {
1884
1885
  const _v$ = `position:relative;width:100%;padding-bottom:${1 / props.aspectRatio * 100}%`,
1885
1886
  _v$2 = props.class;
@@ -2071,18 +2072,15 @@ function $a33065cfed827fc0$export$e4b984597b71e989(props) {
2071
2072
  $gVhhF$depictaiutilishared.queueMacroTask(() => setCurrentImageSize(undefined)); // unset the size accessor next event loop iteration, so that all onCleanup's have time to run, since the effects run more aggressively and can create a size accessor with a cleaned up owner otherwise
2072
2073
  });
2073
2074
 
2074
- $gVhhF$solidjsweb.insert(container, $gVhhF$solidjsweb.createComponent((0, $19950faaac026e09$export$6e5611bc7e57e477), {
2075
+ $gVhhF$solidjsweb.insert(container, $gVhhF$solidjsweb.createComponent((0, $19950faaac026e09$export$6e5611bc7e57e477), $gVhhF$solidjsweb.mergeProps({
2075
2076
  style: "width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0;",
2076
2077
  get size() {
2077
2078
  return $gVhhF$solidjs.createMemo(() => currentImageSize()?.() || 0);
2078
2079
  },
2079
2080
  get src() {
2080
2081
  return props.src;
2081
- },
2082
- get alt() {
2083
- return props.alt;
2084
2082
  }
2085
- }));
2083
+ }, () => props.imgProps)));
2086
2084
  return container;
2087
2085
  }
2088
2086
 
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 = "3.0.24";
13
+ export const version = "3.0.26";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
@@ -520,7 +520,6 @@ export function decode_sorting(search_params: URLSearchParams, sorting_query_par
520
520
  * @param sorting_query_param
521
521
  */
522
522
  export function strip_encoded_filter_and_sort(search_params: URLSearchParams, filter_query_param_prefix: string, sorting_query_param: string): void;
523
- /** @jsxImportSource solid-js */
524
523
  /**
525
524
  * ImageContainer for using the padding hack to set the aspect ratio of an image
526
525
  * Put this around an <img> or <ResponsiveImg> to give it a container that always has the same size as the image. This prevents CLS and enables ResponsiveImg to work (the browser to load the correct image size)
@@ -529,6 +528,7 @@ export function strip_encoded_filter_and_sort(search_params: URLSearchParams, fi
529
528
  export function ImageContainer(props: {
530
529
  aspectRatio: number;
531
530
  class?: string;
531
+ children?: JSX.Element;
532
532
  }): HTMLDivElement;
533
533
  /**
534
534
  * Returns an accessor that will update when the size of the provided element changes, to be used with ResponsiveImg
@@ -559,12 +559,13 @@ export const shopifyContainedImageContextSymbol: unique symbol;
559
559
  * @property aspectRatio aspect ratio of the image
560
560
  * @property class extra class to add to the container
561
561
  * @property alt alt text for the image
562
+ * @property imgProps props to pass to ShopifyResponsiveImg to add to the <img> element
562
563
  */
563
564
  export function ShopifyContainedImage(props: {
564
565
  src: string;
565
566
  aspectRatio: number;
566
567
  class?: string;
567
- alt?: string;
568
+ imgProps?: Omit<Parameters<typeof ShopifyResponsiveImg>[0], "size" | "src">;
568
569
  }): HTMLDivElement;
569
570
  /**
570
571
  * Returns accessor with the size of the provided element, including padding and border (I think)
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 = "3.0.24";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "3.0.26";
11
11
  const $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>`);
12
12
  function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
13
13
  return (() => {
@@ -1810,6 +1810,7 @@ const $f18d425032111270$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div>`);
1810
1810
  function $f18d425032111270$export$94026ee33dbabc26(props) {
1811
1811
  return (() => {
1812
1812
  const _el$ = $9HbP8$getNextElement($f18d425032111270$var$_tmpl$);
1813
+ $9HbP8$insert(_el$, () => props.children);
1813
1814
  $9HbP8$effect(_p$ => {
1814
1815
  const _v$ = `position:relative;width:100%;padding-bottom:${1 / props.aspectRatio * 100}%`,
1815
1816
  _v$2 = props.class;
@@ -2001,18 +2002,15 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
2001
2002
  $9HbP8$queueMacroTask(() => setCurrentImageSize(undefined)); // unset the size accessor next event loop iteration, so that all onCleanup's have time to run, since the effects run more aggressively and can create a size accessor with a cleaned up owner otherwise
2002
2003
  });
2003
2004
 
2004
- $9HbP8$insert(container, $9HbP8$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), {
2005
+ $9HbP8$insert(container, $9HbP8$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), $9HbP8$mergeProps({
2005
2006
  style: "width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0;",
2006
2007
  get size() {
2007
2008
  return $9HbP8$createMemo(() => currentImageSize()?.() || 0);
2008
2009
  },
2009
2010
  get src() {
2010
2011
  return props.src;
2011
- },
2012
- get alt() {
2013
- return props.alt;
2014
2012
  }
2015
- }));
2013
+ }, () => props.imgProps)));
2016
2014
  return container;
2017
2015
  }
2018
2016
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "3.0.24",
3
+ "version": "3.0.26",
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",
@@ -83,7 +83,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
83
83
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
84
84
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
85
85
  /*! Depict.ai search and product listing SDK */
86
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.24";
86
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.26";
87
87
  const $9d19451330d04c3c$var$_tmpl$ = ["<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"></path></svg>'];
88
88
  function $9d19451330d04c3c$export$8be2714ec7f169ee() {
89
89
  var _$escape2, _$escape3;
@@ -1741,9 +1741,9 @@ function $a68b73fd7ba0853f$export$43cd1e747fecd42e(_ref2) {
1741
1741
  if (was_url_object) return url_object;
1742
1742
  return url_object.href;
1743
1743
  }
1744
- const $ce467edb5343cfcd$var$_tmpl$ = ["<div", ' style="', '"', "></div>"];
1744
+ const $ce467edb5343cfcd$var$_tmpl$ = ["<div", ' style="', '"', ">", "</div>"];
1745
1745
  function $ce467edb5343cfcd$export$94026ee33dbabc26(props) {
1746
- return $3hooq$solidjsweb.ssr($ce467edb5343cfcd$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrStyle("position:relative;width:100%;padding-bottom:".concat(1 / props.aspectRatio * 100, "%")), $3hooq$solidjsweb.ssrAttribute("class", $3hooq$solidjsweb.escape(props.class, true), false));
1746
+ return $3hooq$solidjsweb.ssr($ce467edb5343cfcd$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrStyle("position:relative;width:100%;padding-bottom:".concat(1 / props.aspectRatio * 100, "%")), $3hooq$solidjsweb.ssrAttribute("class", $3hooq$solidjsweb.escape(props.class, true), false), $3hooq$solidjsweb.escape(props.children));
1747
1747
  }
1748
1748
  function $858fdcf73148519f$export$e6fffe67d4cdd848(whatToWatch) {
1749
1749
  const [size, setSize] = $3hooq$solidjs.createSignal(0);
@@ -1926,7 +1926,7 @@ function $28535bb7671c63d1$export$e4b984597b71e989(props) {
1926
1926
  $3hooq$depictaiutilishared.queueMacroTask(() => setCurrentImageSize(undefined)); // unset the size accessor next event loop iteration, so that all onCleanup's have time to run, since the effects run more aggressively and can create a size accessor with a cleaned up owner otherwise
1927
1927
  });
1928
1928
 
1929
- $3hooq$solidjsweb.insert(container, $3hooq$solidjsweb.createComponent((0, $858fdcf73148519f$export$6e5611bc7e57e477), {
1929
+ $3hooq$solidjsweb.insert(container, $3hooq$solidjsweb.createComponent((0, $858fdcf73148519f$export$6e5611bc7e57e477), $3hooq$solidjsweb.mergeProps({
1930
1930
  style: "width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0;",
1931
1931
  get size() {
1932
1932
  return $3hooq$solidjs.createMemo(() => {
@@ -1936,11 +1936,8 @@ function $28535bb7671c63d1$export$e4b984597b71e989(props) {
1936
1936
  },
1937
1937
  get src() {
1938
1938
  return props.src;
1939
- },
1940
- get alt() {
1941
- return props.alt;
1942
1939
  }
1943
- }));
1940
+ }, () => props.imgProps)));
1944
1941
  return container;
1945
1942
  }
1946
1943
 
@@ -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 = "3.0.24";
13
+ export const version = "3.0.26";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
@@ -520,7 +520,6 @@ export function decode_sorting(search_params: URLSearchParams, sorting_query_par
520
520
  * @param sorting_query_param
521
521
  */
522
522
  export function strip_encoded_filter_and_sort(search_params: URLSearchParams, filter_query_param_prefix: string, sorting_query_param: string): void;
523
- /** @jsxImportSource solid-js */
524
523
  /**
525
524
  * ImageContainer for using the padding hack to set the aspect ratio of an image
526
525
  * Put this around an <img> or <ResponsiveImg> to give it a container that always has the same size as the image. This prevents CLS and enables ResponsiveImg to work (the browser to load the correct image size)
@@ -529,6 +528,7 @@ export function strip_encoded_filter_and_sort(search_params: URLSearchParams, fi
529
528
  export function ImageContainer(props: {
530
529
  aspectRatio: number;
531
530
  class?: string;
531
+ children?: JSX.Element;
532
532
  }): HTMLDivElement;
533
533
  /**
534
534
  * Returns an accessor that will update when the size of the provided element changes, to be used with ResponsiveImg
@@ -559,12 +559,13 @@ export const shopifyContainedImageContextSymbol: unique symbol;
559
559
  * @property aspectRatio aspect ratio of the image
560
560
  * @property class extra class to add to the container
561
561
  * @property alt alt text for the image
562
+ * @property imgProps props to pass to ShopifyResponsiveImg to add to the <img> element
562
563
  */
563
564
  export function ShopifyContainedImage(props: {
564
565
  src: string;
565
566
  aspectRatio: number;
566
567
  class?: string;
567
- alt?: string;
568
+ imgProps?: Omit<Parameters<typeof ShopifyResponsiveImg>[0], "size" | "src">;
568
569
  }): HTMLDivElement;
569
570
  /**
570
571
  * Returns accessor with the size of the provided element, including padding and border (I think)
@@ -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 = "3.0.24";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.26";
14
14
  const $ca6ab5f08bd28bca$var$_tmpl$ = ["<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"></path></svg>'];
15
15
  function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
16
16
  var _$escape2, _$escape3;
@@ -1668,9 +1668,9 @@ function $2855bffe06ef7a03$export$43cd1e747fecd42e(_ref2) {
1668
1668
  if (was_url_object) return url_object;
1669
1669
  return url_object.href;
1670
1670
  }
1671
- const $801e8845d3fa3653$var$_tmpl$ = ["<div", ' style="', '"', "></div>"];
1671
+ const $801e8845d3fa3653$var$_tmpl$ = ["<div", ' style="', '"', ">", "</div>"];
1672
1672
  function $801e8845d3fa3653$export$94026ee33dbabc26(props) {
1673
- return $b8hua$ssr($801e8845d3fa3653$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrStyle("position:relative;width:100%;padding-bottom:".concat(1 / props.aspectRatio * 100, "%")), $b8hua$ssrAttribute("class", $b8hua$escape(props.class, true), false));
1673
+ return $b8hua$ssr($801e8845d3fa3653$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrStyle("position:relative;width:100%;padding-bottom:".concat(1 / props.aspectRatio * 100, "%")), $b8hua$ssrAttribute("class", $b8hua$escape(props.class, true), false), $b8hua$escape(props.children));
1674
1674
  }
1675
1675
  function $56047603f9d212b6$export$e6fffe67d4cdd848(whatToWatch) {
1676
1676
  const [size, setSize] = $b8hua$createSignal(0);
@@ -1853,7 +1853,7 @@ function $4df489344a0f97c7$export$e4b984597b71e989(props) {
1853
1853
  $b8hua$queueMacroTask(() => setCurrentImageSize(undefined)); // unset the size accessor next event loop iteration, so that all onCleanup's have time to run, since the effects run more aggressively and can create a size accessor with a cleaned up owner otherwise
1854
1854
  });
1855
1855
 
1856
- $b8hua$insert(container, $b8hua$createComponent((0, $56047603f9d212b6$export$6e5611bc7e57e477), {
1856
+ $b8hua$insert(container, $b8hua$createComponent((0, $56047603f9d212b6$export$6e5611bc7e57e477), $b8hua$mergeProps({
1857
1857
  style: "width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0;",
1858
1858
  get size() {
1859
1859
  return $b8hua$createMemo(() => {
@@ -1863,11 +1863,8 @@ function $4df489344a0f97c7$export$e4b984597b71e989(props) {
1863
1863
  },
1864
1864
  get src() {
1865
1865
  return props.src;
1866
- },
1867
- get alt() {
1868
- return props.alt;
1869
1866
  }
1870
- }));
1867
+ }, () => props.imgProps)));
1871
1868
  return container;
1872
1869
  }
1873
1870
 
@@ -77,7 +77,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
77
77
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
78
78
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
79
79
  /*! Depict.ai search and product listing SDK */
80
- const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.24";
80
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.26";
81
81
  const $0f313083912e447a$var$_tmpl$ = ["<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"></path></svg>'];
82
82
  function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
83
83
  return $5vyXB$solidjsweb.ssr($0f313083912e447a$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrAttribute("width", $5vyXB$solidjsweb.escape(props.width_, true) ?? 14, false) + $5vyXB$solidjsweb.ssrAttribute("height", $5vyXB$solidjsweb.escape(props.height_, true) ?? 26, false));
@@ -1652,9 +1652,9 @@ function $1ab22f2cd39b3061$export$43cd1e747fecd42e({
1652
1652
  if (was_url_object) return url_object;
1653
1653
  return url_object.href;
1654
1654
  }
1655
- const $93304d59a9747aa6$var$_tmpl$ = ["<div", ' style="', '"', "></div>"];
1655
+ const $93304d59a9747aa6$var$_tmpl$ = ["<div", ' style="', '"', ">", "</div>"];
1656
1656
  function $93304d59a9747aa6$export$94026ee33dbabc26(props) {
1657
- return $5vyXB$solidjsweb.ssr($93304d59a9747aa6$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrStyle(`position:relative;width:100%;padding-bottom:${1 / props.aspectRatio * 100}%`), $5vyXB$solidjsweb.ssrAttribute("class", $5vyXB$solidjsweb.escape(props.class, true), false));
1657
+ return $5vyXB$solidjsweb.ssr($93304d59a9747aa6$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrStyle(`position:relative;width:100%;padding-bottom:${1 / props.aspectRatio * 100}%`), $5vyXB$solidjsweb.ssrAttribute("class", $5vyXB$solidjsweb.escape(props.class, true), false), $5vyXB$solidjsweb.escape(props.children));
1658
1658
  }
1659
1659
  function $19950faaac026e09$export$e6fffe67d4cdd848(whatToWatch) {
1660
1660
  const [size, setSize] = $5vyXB$solidjs.createSignal(0);
@@ -1834,18 +1834,15 @@ function $a33065cfed827fc0$export$e4b984597b71e989(props) {
1834
1834
  $5vyXB$depictaiutilishared.queueMacroTask(() => setCurrentImageSize(undefined)); // unset the size accessor next event loop iteration, so that all onCleanup's have time to run, since the effects run more aggressively and can create a size accessor with a cleaned up owner otherwise
1835
1835
  });
1836
1836
 
1837
- $5vyXB$solidjsweb.insert(container, $5vyXB$solidjsweb.createComponent((0, $19950faaac026e09$export$6e5611bc7e57e477), {
1837
+ $5vyXB$solidjsweb.insert(container, $5vyXB$solidjsweb.createComponent((0, $19950faaac026e09$export$6e5611bc7e57e477), $5vyXB$solidjsweb.mergeProps({
1838
1838
  style: "width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0;",
1839
1839
  get size() {
1840
1840
  return $5vyXB$solidjs.createMemo(() => currentImageSize()?.() || 0);
1841
1841
  },
1842
1842
  get src() {
1843
1843
  return props.src;
1844
- },
1845
- get alt() {
1846
- return props.alt;
1847
1844
  }
1848
- }));
1845
+ }, () => props.imgProps)));
1849
1846
  return container;
1850
1847
  }
1851
1848
 
@@ -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 = "3.0.24";
13
+ export const version = "3.0.26";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
@@ -520,7 +520,6 @@ export function decode_sorting(search_params: URLSearchParams, sorting_query_par
520
520
  * @param sorting_query_param
521
521
  */
522
522
  export function strip_encoded_filter_and_sort(search_params: URLSearchParams, filter_query_param_prefix: string, sorting_query_param: string): void;
523
- /** @jsxImportSource solid-js */
524
523
  /**
525
524
  * ImageContainer for using the padding hack to set the aspect ratio of an image
526
525
  * Put this around an <img> or <ResponsiveImg> to give it a container that always has the same size as the image. This prevents CLS and enables ResponsiveImg to work (the browser to load the correct image size)
@@ -529,6 +528,7 @@ export function strip_encoded_filter_and_sort(search_params: URLSearchParams, fi
529
528
  export function ImageContainer(props: {
530
529
  aspectRatio: number;
531
530
  class?: string;
531
+ children?: JSX.Element;
532
532
  }): HTMLDivElement;
533
533
  /**
534
534
  * Returns an accessor that will update when the size of the provided element changes, to be used with ResponsiveImg
@@ -559,12 +559,13 @@ export const shopifyContainedImageContextSymbol: unique symbol;
559
559
  * @property aspectRatio aspect ratio of the image
560
560
  * @property class extra class to add to the container
561
561
  * @property alt alt text for the image
562
+ * @property imgProps props to pass to ShopifyResponsiveImg to add to the <img> element
562
563
  */
563
564
  export function ShopifyContainedImage(props: {
564
565
  src: string;
565
566
  aspectRatio: number;
566
567
  class?: string;
567
- alt?: string;
568
+ imgProps?: Omit<Parameters<typeof ShopifyResponsiveImg>[0], "size" | "src">;
568
569
  }): HTMLDivElement;
569
570
  /**
570
571
  * Returns accessor with the size of the provided element, including padding and border (I think)
@@ -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 = "3.0.24";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "3.0.26";
11
11
  const $fbbadcb080ad1d4a$var$_tmpl$ = ["<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"></path></svg>'];
12
12
  function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
13
13
  return $i7OB2$ssr($fbbadcb080ad1d4a$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("width", $i7OB2$escape(props.width_, true) ?? 14, false) + $i7OB2$ssrAttribute("height", $i7OB2$escape(props.height_, true) ?? 26, false));
@@ -1582,9 +1582,9 @@ function $4147651646da990a$export$43cd1e747fecd42e({
1582
1582
  if (was_url_object) return url_object;
1583
1583
  return url_object.href;
1584
1584
  }
1585
- const $f18d425032111270$var$_tmpl$ = ["<div", ' style="', '"', "></div>"];
1585
+ const $f18d425032111270$var$_tmpl$ = ["<div", ' style="', '"', ">", "</div>"];
1586
1586
  function $f18d425032111270$export$94026ee33dbabc26(props) {
1587
- return $i7OB2$ssr($f18d425032111270$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$ssrStyle(`position:relative;width:100%;padding-bottom:${1 / props.aspectRatio * 100}%`), $i7OB2$ssrAttribute("class", $i7OB2$escape(props.class, true), false));
1587
+ return $i7OB2$ssr($f18d425032111270$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$ssrStyle(`position:relative;width:100%;padding-bottom:${1 / props.aspectRatio * 100}%`), $i7OB2$ssrAttribute("class", $i7OB2$escape(props.class, true), false), $i7OB2$escape(props.children));
1588
1588
  }
1589
1589
  function $e8ffe11ed01df0fe$export$e6fffe67d4cdd848(whatToWatch) {
1590
1590
  const [size, setSize] = $i7OB2$createSignal(0);
@@ -1764,18 +1764,15 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
1764
1764
  $i7OB2$queueMacroTask(() => setCurrentImageSize(undefined)); // unset the size accessor next event loop iteration, so that all onCleanup's have time to run, since the effects run more aggressively and can create a size accessor with a cleaned up owner otherwise
1765
1765
  });
1766
1766
 
1767
- $i7OB2$insert(container, $i7OB2$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), {
1767
+ $i7OB2$insert(container, $i7OB2$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), $i7OB2$mergeProps({
1768
1768
  style: "width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0;",
1769
1769
  get size() {
1770
1770
  return $i7OB2$createMemo(() => currentImageSize()?.() || 0);
1771
1771
  },
1772
1772
  get src() {
1773
1773
  return props.src;
1774
- },
1775
- get alt() {
1776
- return props.alt;
1777
1774
  }
1778
- }));
1775
+ }, () => props.imgProps)));
1779
1776
  return container;
1780
1777
  }
1781
1778