@depict-ai/ui 3.0.8 → 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.8";
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] : {};
@@ -658,10 +658,11 @@ function $083b2336093176cf$export$3b621d86b1566b2() {
658
658
  }
659
659
  const $e3d733f899558f40$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<span>`);
660
660
  function $e3d733f899558f40$export$acb3eaade4b23afd(props) {
661
+ // Work around https://github.com/solidjs/solid/issues/1980
661
662
  return (() => {
662
663
  const _el$ = $52FdA$solidjsweb.getNextElement($e3d733f899558f40$var$_tmpl$);
663
664
  $52FdA$solidjsweb.effect(_p$ => {
664
- const _v$ = "depict-placeholder ".concat(props.class || ""),
665
+ const _v$ = "".concat(props.class || "", " depict-placeholder"),
665
666
  _v$2 = props.style;
666
667
  _v$ !== _p$._v$ && $52FdA$solidjsweb.className(_el$, _p$._v$ = _v$);
667
668
  _p$._v$2 = $52FdA$solidjsweb.style(_el$, _v$2, _p$._v$2);
@@ -10107,10 +10108,17 @@ function $c77adcdf5346b187$export$7de92c4c2205ebf3(_ref) {
10107
10108
  var _recommendations_reso;
10108
10109
  return !!((recommendations_resource.loading || (_recommendations_reso = recommendations_resource()) !== null && _recommendations_reso !== void 0 && _recommendations_reso.length) && all_products_loaded_());
10109
10110
  });
10110
- const num_placeholders_ = $52FdA$solidjs.createMemo(() => (0, $da887c42f8e8847a$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(_ref2 => {
10111
- let [per_column] = _ref2;
10112
- return per_column;
10113
- })));
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
+ });
10114
10122
  // Don't tear down elements every time one updates the page - don't put them within <Show>
10115
10123
  const elements = (() => {
10116
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.8";
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
  */
@@ -965,7 +965,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
965
965
  category_title: typeof CategoryTitle | typeof embedded_num_products;
966
966
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
967
967
  content_blocks_by_row?: ContentBlocksByRow;
968
- }): import("@depict-ai/utilishared").Node_Array;
968
+ }): import("@depict-ai/utilishared/latest").Node_Array;
969
969
  export function BreadCrumbs<T extends Display>({
970
970
  depict_category
971
971
  }: {
@@ -1117,7 +1117,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1117
1117
  * Open the modal with support for alignment.
1118
1118
  * @returns {void}
1119
1119
  */
1120
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1120
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1121
1121
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1122
1122
  export interface PageReplacer {
1123
1123
  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 = "3.0.8";
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] : {};
@@ -585,10 +585,11 @@ function $9783d437ad61594c$export$3b621d86b1566b2() {
585
585
  }
586
586
  const $bc2337c9a05ecd18$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<span>`);
587
587
  function $bc2337c9a05ecd18$export$acb3eaade4b23afd(props) {
588
+ // Work around https://github.com/solidjs/solid/issues/1980
588
589
  return (() => {
589
590
  const _el$ = $8tj43$getNextElement($bc2337c9a05ecd18$var$_tmpl$);
590
591
  $8tj43$effect(_p$ => {
591
- const _v$ = "depict-placeholder ".concat(props.class || ""),
592
+ const _v$ = "".concat(props.class || "", " depict-placeholder"),
592
593
  _v$2 = props.style;
593
594
  _v$ !== _p$._v$ && $8tj43$className(_el$, _p$._v$ = _v$);
594
595
  _p$._v$2 = $8tj43$style(_el$, _v$2, _p$._v$2);
@@ -10034,10 +10035,17 @@ function $8ef6232475d44150$export$7de92c4c2205ebf3(_ref) {
10034
10035
  var _recommendations_reso;
10035
10036
  return !!((recommendations_resource.loading || (_recommendations_reso = recommendations_resource()) !== null && _recommendations_reso !== void 0 && _recommendations_reso.length) && all_products_loaded_());
10036
10037
  });
10037
- const num_placeholders_ = $8tj43$createMemo(() => (0, $981356a8bf29ad72$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(_ref2 => {
10038
- let [per_column] = _ref2;
10039
- return per_column;
10040
- })));
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
+ });
10041
10049
  // Don't tear down elements every time one updates the page - don't put them within <Show>
10042
10050
  const elements = (() => {
10043
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.8";
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 (() => {
@@ -614,10 +614,11 @@ function $c77c68e559a1506c$export$3b621d86b1566b2(props = {}) {
614
614
  }
615
615
  const $9fe9883b1d8ecccc$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span>`);
616
616
  function $9fe9883b1d8ecccc$export$acb3eaade4b23afd(props) {
617
+ // Work around https://github.com/solidjs/solid/issues/1980
617
618
  return (() => {
618
619
  const _el$ = $gVhhF$solidjsweb.getNextElement($9fe9883b1d8ecccc$var$_tmpl$);
619
620
  $gVhhF$solidjsweb.effect(_p$ => {
620
- const _v$ = `depict-placeholder ${props.class || ""}`,
621
+ const _v$ = `${props.class || ""} depict-placeholder`,
621
622
  _v$2 = props.style;
622
623
  _v$ !== _p$._v$ && $gVhhF$solidjsweb.className(_el$, _p$._v$ = _v$);
623
624
  _p$._v$2 = $gVhhF$solidjsweb.style(_el$, _v$2, _p$._v$2);
@@ -9449,7 +9450,14 @@ function $fb29c6201c369e39$export$7de92c4c2205ebf3({
9449
9450
  // only fetch/refetch if all products are loaded
9450
9451
  query => query && depict_api_.get_recommended(query).then(r => r.displays));
9451
9452
  const should_show = $gVhhF$solidjs.createMemo(() => !!((recommendations_resource.loading || recommendations_resource()?.length) && all_products_loaded_()));
9452
- 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
+ });
9453
9461
  // Don't tear down elements every time one updates the page - don't put them within <Show>
9454
9462
  const elements = (() => {
9455
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.8";
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
  */
@@ -965,7 +965,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
965
965
  category_title: typeof CategoryTitle | typeof embedded_num_products;
966
966
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
967
967
  content_blocks_by_row?: ContentBlocksByRow;
968
- }): import("@depict-ai/utilishared").Node_Array;
968
+ }): import("@depict-ai/utilishared/latest").Node_Array;
969
969
  export function BreadCrumbs<T extends Display>({
970
970
  depict_category
971
971
  }: {
@@ -1117,7 +1117,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1117
1117
  * Open the modal with support for alignment.
1118
1118
  * @returns {void}
1119
1119
  */
1120
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1120
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1121
1121
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1122
1122
  export interface PageReplacer {
1123
1123
  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 = "3.0.8";
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 (() => {
@@ -544,10 +544,11 @@ function $19976a74d273070d$export$3b621d86b1566b2(props = {}) {
544
544
  }
545
545
  const $d20eff0aadc28983$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<span>`);
546
546
  function $d20eff0aadc28983$export$acb3eaade4b23afd(props) {
547
+ // Work around https://github.com/solidjs/solid/issues/1980
547
548
  return (() => {
548
549
  const _el$ = $9HbP8$getNextElement($d20eff0aadc28983$var$_tmpl$);
549
550
  $9HbP8$effect(_p$ => {
550
- const _v$ = `depict-placeholder ${props.class || ""}`,
551
+ const _v$ = `${props.class || ""} depict-placeholder`,
551
552
  _v$2 = props.style;
552
553
  _v$ !== _p$._v$ && $9HbP8$className(_el$, _p$._v$ = _v$);
553
554
  _p$._v$2 = $9HbP8$style(_el$, _v$2, _p$._v$2);
@@ -9379,7 +9380,14 @@ function $172e1b898d457050$export$7de92c4c2205ebf3({
9379
9380
  // only fetch/refetch if all products are loaded
9380
9381
  query => query && depict_api_.get_recommended(query).then(r => r.displays));
9381
9382
  const should_show = $9HbP8$createMemo(() => !!((recommendations_resource.loading || recommendations_resource()?.length) && all_products_loaded_()));
9382
- 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
+ });
9383
9391
  // Don't tear down elements every time one updates the page - don't put them within <Show>
9384
9392
  const elements = (() => {
9385
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.8",
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.8";
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;
@@ -594,7 +594,8 @@ function $083b2336093176cf$export$3b621d86b1566b2() {
594
594
  }
595
595
  const $e3d733f899558f40$var$_tmpl$ = ["<span", ' class="', '" style="', '"></span>'];
596
596
  function $e3d733f899558f40$export$acb3eaade4b23afd(props) {
597
- return $3hooq$solidjsweb.ssr($e3d733f899558f40$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "depict-placeholder".concat($3hooq$solidjsweb.escape(props.class, true) || ""), $3hooq$solidjsweb.ssrStyle(props.style));
597
+ // Work around https://github.com/solidjs/solid/issues/1980
598
+ return $3hooq$solidjsweb.ssr($e3d733f899558f40$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "".concat($3hooq$solidjsweb.escape(props.class, true) || "", " depict-placeholder"), $3hooq$solidjsweb.ssrStyle(props.style));
598
599
  }
599
600
  function $b8a8d61b3ec5f5ac$export$3f37af283f8fb843(props) {
600
601
  const style = $3hooq$solidjs.createMemo(() => {
@@ -8376,10 +8377,17 @@ function $c77adcdf5346b187$export$7de92c4c2205ebf3(_ref) {
8376
8377
  var _recommendations_reso;
8377
8378
  return !!((recommendations_resource.loading || (_recommendations_reso = recommendations_resource()) !== null && _recommendations_reso !== void 0 && _recommendations_reso.length) && all_products_loaded_());
8378
8379
  });
8379
- const num_placeholders_ = $3hooq$solidjs.createMemo(() => (0, $da887c42f8e8847a$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(_ref2 => {
8380
- let [per_column] = _ref2;
8381
- return per_column;
8382
- })));
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
+ });
8383
8391
  // Don't tear down elements every time one updates the page - don't put them within <Show>
8384
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({
8385
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.8";
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
  */
@@ -965,7 +965,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
965
965
  category_title: typeof CategoryTitle | typeof embedded_num_products;
966
966
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
967
967
  content_blocks_by_row?: ContentBlocksByRow;
968
- }): import("@depict-ai/utilishared").Node_Array;
968
+ }): import("@depict-ai/utilishared/latest").Node_Array;
969
969
  export function BreadCrumbs<T extends Display>({
970
970
  depict_category
971
971
  }: {
@@ -1117,7 +1117,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1117
1117
  * Open the modal with support for alignment.
1118
1118
  * @returns {void}
1119
1119
  */
1120
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1120
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1121
1121
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1122
1122
  export interface PageReplacer {
1123
1123
  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 = "3.0.8";
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;
@@ -521,7 +521,8 @@ function $9783d437ad61594c$export$3b621d86b1566b2() {
521
521
  }
522
522
  const $bc2337c9a05ecd18$var$_tmpl$ = ["<span", ' class="', '" style="', '"></span>'];
523
523
  function $bc2337c9a05ecd18$export$acb3eaade4b23afd(props) {
524
- return $b8hua$ssr($bc2337c9a05ecd18$var$_tmpl$, $b8hua$ssrHydrationKey(), "depict-placeholder".concat($b8hua$escape(props.class, true) || ""), $b8hua$ssrStyle(props.style));
524
+ // Work around https://github.com/solidjs/solid/issues/1980
525
+ return $b8hua$ssr($bc2337c9a05ecd18$var$_tmpl$, $b8hua$ssrHydrationKey(), "".concat($b8hua$escape(props.class, true) || "", " depict-placeholder"), $b8hua$ssrStyle(props.style));
525
526
  }
526
527
  function $3ab4aa97880fb88d$export$3f37af283f8fb843(props) {
527
528
  const style = $b8hua$createMemo(() => {
@@ -8303,10 +8304,17 @@ function $8ef6232475d44150$export$7de92c4c2205ebf3(_ref) {
8303
8304
  var _recommendations_reso;
8304
8305
  return !!((recommendations_resource.loading || (_recommendations_reso = recommendations_resource()) !== null && _recommendations_reso !== void 0 && _recommendations_reso.length) && all_products_loaded_());
8305
8306
  });
8306
- const num_placeholders_ = $b8hua$createMemo(() => (0, $981356a8bf29ad72$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...layout_options_().cols_at_size.map(_ref2 => {
8307
- let [per_column] = _ref2;
8308
- return per_column;
8309
- })));
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
+ });
8310
8318
  // Don't tear down elements every time one updates the page - don't put them within <Show>
8311
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({
8312
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.8";
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));
@@ -555,7 +555,8 @@ function $c77c68e559a1506c$export$3b621d86b1566b2(props = {}) {
555
555
  }
556
556
  const $9fe9883b1d8ecccc$var$_tmpl$ = ["<span", ' class="', '" style="', '"></span>'];
557
557
  function $9fe9883b1d8ecccc$export$acb3eaade4b23afd(props) {
558
- return $5vyXB$solidjsweb.ssr($9fe9883b1d8ecccc$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `depict-placeholder${$5vyXB$solidjsweb.escape(props.class, true) || ""}`, $5vyXB$solidjsweb.ssrStyle(props.style));
558
+ // Work around https://github.com/solidjs/solid/issues/1980
559
+ return $5vyXB$solidjsweb.ssr($9fe9883b1d8ecccc$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `${$5vyXB$solidjsweb.escape(props.class, true) || ""} depict-placeholder`, $5vyXB$solidjsweb.ssrStyle(props.style));
559
560
  }
560
561
  function $3bc4a89b971a3af5$export$3f37af283f8fb843(props) {
561
562
  const style = $5vyXB$solidjs.createMemo(() => {
@@ -7778,7 +7779,14 @@ function $fb29c6201c369e39$export$7de92c4c2205ebf3({
7778
7779
  // only fetch/refetch if all products are loaded
7779
7780
  query => query && depict_api_.get_recommended(query).then(r => r.displays));
7780
7781
  const should_show = $5vyXB$solidjs.createMemo(() => !!((recommendations_resource.loading || recommendations_resource()?.length) && all_products_loaded_()));
7781
- 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
+ });
7782
7790
  // Don't tear down elements every time one updates the page - don't put them within <Show>
7783
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({
7784
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.8";
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
  */
@@ -965,7 +965,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
965
965
  category_title: typeof CategoryTitle | typeof embedded_num_products;
966
966
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
967
967
  content_blocks_by_row?: ContentBlocksByRow;
968
- }): import("@depict-ai/utilishared").Node_Array;
968
+ }): import("@depict-ai/utilishared/latest").Node_Array;
969
969
  export function BreadCrumbs<T extends Display>({
970
970
  depict_category
971
971
  }: {
@@ -1117,7 +1117,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1117
1117
  * Open the modal with support for alignment.
1118
1118
  * @returns {void}
1119
1119
  */
1120
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1120
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1121
1121
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1122
1122
  export interface PageReplacer {
1123
1123
  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 = "3.0.8";
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));
@@ -485,7 +485,8 @@ function $19976a74d273070d$export$3b621d86b1566b2(props = {}) {
485
485
  }
486
486
  const $d20eff0aadc28983$var$_tmpl$ = ["<span", ' class="', '" style="', '"></span>'];
487
487
  function $d20eff0aadc28983$export$acb3eaade4b23afd(props) {
488
- return $i7OB2$ssr($d20eff0aadc28983$var$_tmpl$, $i7OB2$ssrHydrationKey(), `depict-placeholder${$i7OB2$escape(props.class, true) || ""}`, $i7OB2$ssrStyle(props.style));
488
+ // Work around https://github.com/solidjs/solid/issues/1980
489
+ return $i7OB2$ssr($d20eff0aadc28983$var$_tmpl$, $i7OB2$ssrHydrationKey(), `${$i7OB2$escape(props.class, true) || ""} depict-placeholder`, $i7OB2$ssrStyle(props.style));
489
490
  }
490
491
  function $7f60f09116a3fe61$export$3f37af283f8fb843(props) {
491
492
  const style = $i7OB2$createMemo(() => {
@@ -7708,7 +7709,14 @@ function $172e1b898d457050$export$7de92c4c2205ebf3({
7708
7709
  // only fetch/refetch if all products are loaded
7709
7710
  query => query && depict_api_.get_recommended(query).then(r => r.displays));
7710
7711
  const should_show = $i7OB2$createMemo(() => !!((recommendations_resource.loading || recommendations_resource()?.length) && all_products_loaded_()));
7711
- 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
+ });
7712
7720
  // Don't tear down elements every time one updates the page - don't put them within <Show>
7713
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({
7714
7722
  rows: rows_object,