@depict-ai/ui 3.0.9 → 3.0.10

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.9";
86
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.10";
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] : {};
@@ -10108,10 +10108,17 @@ function $c77adcdf5346b187$export$7de92c4c2205ebf3(_ref) {
10108
10108
  var _recommendations_reso;
10109
10109
  return !!((recommendations_resource.loading || (_recommendations_reso = recommendations_resource()) !== null && _recommendations_reso !== void 0 && _recommendations_reso.length) && all_products_loaded_());
10110
10110
  });
10111
- const num_placeholders_ = $52FdA$solidjs.createMemo(() => (0, $da887c42f8e8847a$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(_ref2 => {
10112
- let [per_column] = _ref2;
10113
- return per_column;
10114
- })));
10111
+ const num_placeholders_ = $52FdA$solidjs.createMemo(() => {
10112
+ const possible_num_columns = layout_options_().cols_at_size.map(_ref2 => {
10113
+ let [per_column] = _ref2;
10114
+ return per_column;
10115
+ });
10116
+ if (!possible_num_columns.length)
10117
+ // Empty cols_at_size, for example artilleriet has that
10118
+ // Assume there will be 4 columns
10119
+ possible_num_columns.push(4);
10120
+ return (0, $da887c42f8e8847a$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
10121
+ });
10115
10122
  // Don't tear down elements every time one updates the page - don't put them within <Show>
10116
10123
  const elements = (() => {
10117
10124
  const _el$ = $52FdA$solidjsweb.getNextElement($c77adcdf5346b187$var$_tmpl$),
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.9";
13
+ export const version = "3.0.10";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
@@ -454,7 +454,7 @@ type ShopTheLookOpenModalOptions<T extends Display> = {
454
454
  type ShopTheLookButtonProps<T extends Display> = ShopTheLookOpenModalOptions<T> & {
455
455
  buttonAttributes?: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
456
456
  };
457
- export function ShopTheLookButton<T extends Display>(props: ShopTheLookButtonProps<T>): import("solid-js").JSX.Element;
457
+ export function ShopTheLookButton<T extends Display>(props: ShopTheLookButtonProps<T>): JSX.Element;
458
458
  /**
459
459
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
460
460
  */
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.9";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.10";
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] : {};
@@ -10035,10 +10035,17 @@ function $8ef6232475d44150$export$7de92c4c2205ebf3(_ref) {
10035
10035
  var _recommendations_reso;
10036
10036
  return !!((recommendations_resource.loading || (_recommendations_reso = recommendations_resource()) !== null && _recommendations_reso !== void 0 && _recommendations_reso.length) && all_products_loaded_());
10037
10037
  });
10038
- const num_placeholders_ = $8tj43$createMemo(() => (0, $981356a8bf29ad72$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(_ref2 => {
10039
- let [per_column] = _ref2;
10040
- return per_column;
10041
- })));
10038
+ const num_placeholders_ = $8tj43$createMemo(() => {
10039
+ const possible_num_columns = layout_options_().cols_at_size.map(_ref2 => {
10040
+ let [per_column] = _ref2;
10041
+ return per_column;
10042
+ });
10043
+ if (!possible_num_columns.length)
10044
+ // Empty cols_at_size, for example artilleriet has that
10045
+ // Assume there will be 4 columns
10046
+ possible_num_columns.push(4);
10047
+ return (0, $981356a8bf29ad72$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
10048
+ });
10042
10049
  // Don't tear down elements every time one updates the page - don't put them within <Show>
10043
10050
  const elements = (() => {
10044
10051
  const _el$ = $8tj43$getNextElement($8ef6232475d44150$var$_tmpl$),
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.9";
80
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.10";
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 (() => {
@@ -9450,7 +9450,14 @@ function $fb29c6201c369e39$export$7de92c4c2205ebf3({
9450
9450
  // only fetch/refetch if all products are loaded
9451
9451
  query => query && depict_api_.get_recommended(query).then(r => r.displays));
9452
9452
  const should_show = $gVhhF$solidjs.createMemo(() => !!((recommendations_resource.loading || recommendations_resource()?.length) && all_products_loaded_()));
9453
- const num_placeholders_ = $gVhhF$solidjs.createMemo(() => (0, $aec24316ed262dc0$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(([per_column]) => per_column)));
9453
+ const num_placeholders_ = $gVhhF$solidjs.createMemo(() => {
9454
+ const possible_num_columns = layout_options_().cols_at_size.map(([per_column]) => per_column);
9455
+ if (!possible_num_columns.length)
9456
+ // Empty cols_at_size, for example artilleriet has that
9457
+ // Assume there will be 4 columns
9458
+ possible_num_columns.push(4);
9459
+ return (0, $aec24316ed262dc0$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
9460
+ });
9454
9461
  // Don't tear down elements every time one updates the page - don't put them within <Show>
9455
9462
  const elements = (() => {
9456
9463
  const _el$ = $gVhhF$solidjsweb.getNextElement($fb29c6201c369e39$var$_tmpl$),
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.9";
13
+ export const version = "3.0.10";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
@@ -454,7 +454,7 @@ type ShopTheLookOpenModalOptions<T extends Display> = {
454
454
  type ShopTheLookButtonProps<T extends Display> = ShopTheLookOpenModalOptions<T> & {
455
455
  buttonAttributes?: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
456
456
  };
457
- export function ShopTheLookButton<T extends Display>(props: ShopTheLookButtonProps<T>): import("solid-js").JSX.Element;
457
+ export function ShopTheLookButton<T extends Display>(props: ShopTheLookButtonProps<T>): JSX.Element;
458
458
  /**
459
459
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
460
460
  */
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.9";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "3.0.10";
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 (() => {
@@ -9380,7 +9380,14 @@ function $172e1b898d457050$export$7de92c4c2205ebf3({
9380
9380
  // only fetch/refetch if all products are loaded
9381
9381
  query => query && depict_api_.get_recommended(query).then(r => r.displays));
9382
9382
  const should_show = $9HbP8$createMemo(() => !!((recommendations_resource.loading || recommendations_resource()?.length) && all_products_loaded_()));
9383
- const num_placeholders_ = $9HbP8$createMemo(() => (0, $7747fe1a8c5652e3$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(([per_column]) => per_column)));
9383
+ const num_placeholders_ = $9HbP8$createMemo(() => {
9384
+ const possible_num_columns = layout_options_().cols_at_size.map(([per_column]) => per_column);
9385
+ if (!possible_num_columns.length)
9386
+ // Empty cols_at_size, for example artilleriet has that
9387
+ // Assume there will be 4 columns
9388
+ possible_num_columns.push(4);
9389
+ return (0, $7747fe1a8c5652e3$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
9390
+ });
9384
9391
  // Don't tear down elements every time one updates the page - don't put them within <Show>
9385
9392
  const elements = (() => {
9386
9393
  const _el$ = $9HbP8$getNextElement($172e1b898d457050$var$_tmpl$),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "3.0.9",
3
+ "version": "3.0.10",
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",
@@ -238,7 +238,7 @@
238
238
  "@babel/runtime-corejs3": "^7.22.6",
239
239
  "@depict-ai/plp-styling": "^2.0.2",
240
240
  "@depict-ai/types": "^5.0.2",
241
- "@depict-ai/utilishared": "^2.0.2",
241
+ "@depict-ai/utilishared": "^2.0.4",
242
242
  "solid-js": "^1.8.1"
243
243
  },
244
244
  "type": "module",
@@ -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.9";
86
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.10";
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;
@@ -8377,10 +8377,17 @@ function $c77adcdf5346b187$export$7de92c4c2205ebf3(_ref) {
8377
8377
  var _recommendations_reso;
8378
8378
  return !!((recommendations_resource.loading || (_recommendations_reso = recommendations_resource()) !== null && _recommendations_reso !== void 0 && _recommendations_reso.length) && all_products_loaded_());
8379
8379
  });
8380
- const num_placeholders_ = $3hooq$solidjs.createMemo(() => (0, $da887c42f8e8847a$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(_ref2 => {
8381
- let [per_column] = _ref2;
8382
- return per_column;
8383
- })));
8380
+ const num_placeholders_ = $3hooq$solidjs.createMemo(() => {
8381
+ const possible_num_columns = layout_options_().cols_at_size.map(_ref2 => {
8382
+ let [per_column] = _ref2;
8383
+ return per_column;
8384
+ });
8385
+ if (!possible_num_columns.length)
8386
+ // Empty cols_at_size, for example artilleriet has that
8387
+ // Assume there will be 4 columns
8388
+ possible_num_columns.push(4);
8389
+ return (0, $da887c42f8e8847a$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
8390
+ });
8384
8391
  // Don't tear down elements every time one updates the page - don't put them within <Show>
8385
8392
  const elements = $3hooq$solidjsweb.ssr($c77adcdf5346b187$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(i18n_.search_recs_title_()), $3hooq$solidjsweb.escape($8edd3cf30d1fd8b4$export$a2cc176055f8f08()), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $6c2c739b113a8ddf$export$d21e32dfedac04be), $3hooq$solidjsweb.mergeProps({
8386
8393
  rows: rows_object,
@@ -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.9";
13
+ export const version = "3.0.10";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
@@ -454,7 +454,7 @@ type ShopTheLookOpenModalOptions<T extends Display> = {
454
454
  type ShopTheLookButtonProps<T extends Display> = ShopTheLookOpenModalOptions<T> & {
455
455
  buttonAttributes?: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
456
456
  };
457
- export function ShopTheLookButton<T extends Display>(props: ShopTheLookButtonProps<T>): import("solid-js").JSX.Element;
457
+ export function ShopTheLookButton<T extends Display>(props: ShopTheLookButtonProps<T>): JSX.Element;
458
458
  /**
459
459
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
460
460
  */
@@ -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.9";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.10";
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;
@@ -8304,10 +8304,17 @@ function $8ef6232475d44150$export$7de92c4c2205ebf3(_ref) {
8304
8304
  var _recommendations_reso;
8305
8305
  return !!((recommendations_resource.loading || (_recommendations_reso = recommendations_resource()) !== null && _recommendations_reso !== void 0 && _recommendations_reso.length) && all_products_loaded_());
8306
8306
  });
8307
- const num_placeholders_ = $b8hua$createMemo(() => (0, $981356a8bf29ad72$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(_ref2 => {
8308
- let [per_column] = _ref2;
8309
- return per_column;
8310
- })));
8307
+ const num_placeholders_ = $b8hua$createMemo(() => {
8308
+ const possible_num_columns = layout_options_().cols_at_size.map(_ref2 => {
8309
+ let [per_column] = _ref2;
8310
+ return per_column;
8311
+ });
8312
+ if (!possible_num_columns.length)
8313
+ // Empty cols_at_size, for example artilleriet has that
8314
+ // Assume there will be 4 columns
8315
+ possible_num_columns.push(4);
8316
+ return (0, $981356a8bf29ad72$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
8317
+ });
8311
8318
  // Don't tear down elements every time one updates the page - don't put them within <Show>
8312
8319
  const elements = $b8hua$ssr($8ef6232475d44150$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(i18n_.search_recs_title_()), $b8hua$escape($ca55612a53dbbdd2$export$a2cc176055f8f08()), $b8hua$escape($b8hua$createComponent((0, $63f1f8dbcd07d3b0$export$d21e32dfedac04be), $b8hua$mergeProps({
8313
8320
  rows: rows_object,
@@ -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.9";
80
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.10";
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));
@@ -7779,7 +7779,14 @@ function $fb29c6201c369e39$export$7de92c4c2205ebf3({
7779
7779
  // only fetch/refetch if all products are loaded
7780
7780
  query => query && depict_api_.get_recommended(query).then(r => r.displays));
7781
7781
  const should_show = $5vyXB$solidjs.createMemo(() => !!((recommendations_resource.loading || recommendations_resource()?.length) && all_products_loaded_()));
7782
- const num_placeholders_ = $5vyXB$solidjs.createMemo(() => (0, $aec24316ed262dc0$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(([per_column]) => per_column)));
7782
+ const num_placeholders_ = $5vyXB$solidjs.createMemo(() => {
7783
+ const possible_num_columns = layout_options_().cols_at_size.map(([per_column]) => per_column);
7784
+ if (!possible_num_columns.length)
7785
+ // Empty cols_at_size, for example artilleriet has that
7786
+ // Assume there will be 4 columns
7787
+ possible_num_columns.push(4);
7788
+ return (0, $aec24316ed262dc0$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
7789
+ });
7783
7790
  // Don't tear down elements every time one updates the page - don't put them within <Show>
7784
7791
  const elements = $5vyXB$solidjsweb.ssr($fb29c6201c369e39$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(i18n_.search_recs_title_()), $5vyXB$solidjsweb.escape($fc23d7668ae0011d$export$a2cc176055f8f08()), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $f48d0fbb00835aaa$export$d21e32dfedac04be), $5vyXB$solidjsweb.mergeProps({
7785
7792
  rows: rows_object,
@@ -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.9";
13
+ export const version = "3.0.10";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
@@ -454,7 +454,7 @@ type ShopTheLookOpenModalOptions<T extends Display> = {
454
454
  type ShopTheLookButtonProps<T extends Display> = ShopTheLookOpenModalOptions<T> & {
455
455
  buttonAttributes?: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
456
456
  };
457
- export function ShopTheLookButton<T extends Display>(props: ShopTheLookButtonProps<T>): import("solid-js").JSX.Element;
457
+ export function ShopTheLookButton<T extends Display>(props: ShopTheLookButtonProps<T>): JSX.Element;
458
458
  /**
459
459
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
460
460
  */
@@ -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.9";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "3.0.10";
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));
@@ -7709,7 +7709,14 @@ function $172e1b898d457050$export$7de92c4c2205ebf3({
7709
7709
  // only fetch/refetch if all products are loaded
7710
7710
  query => query && depict_api_.get_recommended(query).then(r => r.displays));
7711
7711
  const should_show = $i7OB2$createMemo(() => !!((recommendations_resource.loading || recommendations_resource()?.length) && all_products_loaded_()));
7712
- const num_placeholders_ = $i7OB2$createMemo(() => (0, $7747fe1a8c5652e3$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(([per_column]) => per_column)));
7712
+ const num_placeholders_ = $i7OB2$createMemo(() => {
7713
+ const possible_num_columns = layout_options_().cols_at_size.map(([per_column]) => per_column);
7714
+ if (!possible_num_columns.length)
7715
+ // Empty cols_at_size, for example artilleriet has that
7716
+ // Assume there will be 4 columns
7717
+ possible_num_columns.push(4);
7718
+ return (0, $7747fe1a8c5652e3$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
7719
+ });
7713
7720
  // Don't tear down elements every time one updates the page - don't put them within <Show>
7714
7721
  const elements = $i7OB2$ssr($172e1b898d457050$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape(i18n_.search_recs_title_()), $i7OB2$escape($a458486f22b22f63$export$a2cc176055f8f08()), $i7OB2$escape($i7OB2$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $i7OB2$mergeProps({
7715
7722
  rows: rows_object,