@depict-ai/ui 3.0.18 → 3.0.19

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.18";
86
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.19";
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] : {};
@@ -2234,7 +2234,8 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
2234
2234
  disable_fading_: true,
2235
2235
  slider_ref_: slider => {
2236
2236
  const {
2237
- insert_here: insert_here
2237
+ insert_here: insert_here,
2238
+ container: container
2238
2239
  } = slider;
2239
2240
  const Layout = props => $6c2c739b113a8ddf$export$445d8d3f5f706a40(props, insert_here, true);
2240
2241
  // Do like this, so we don't have to call mergeProps ourselves
@@ -2244,6 +2245,7 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
2244
2245
  }, layout_options_));
2245
2246
  $52FdA$depictaiutilishared.slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
2246
2247
  insert_here.before($8edd3cf30d1fd8b4$export$a2cc176055f8f08());
2248
+ container.classList.add("products");
2247
2249
  },
2248
2250
  get children() {
2249
2251
  return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Suspense), {
@@ -7243,6 +7245,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
7243
7245
  }
7244
7246
  }));
7245
7247
  insert_here.classList.add("generated-spacing");
7248
+ container.classList.add("products");
7246
7249
  $52FdA$solidjs.createEffect(
7247
7250
  // @ts-ignore
7248
7251
  $52FdA$solidjs.on(query_base_, () => insert_here.scrollTo({
@@ -7258,11 +7261,9 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
7258
7261
  get_scroll_position_: () => insert_here.scrollLeft,
7259
7262
  listen_to_scroll_on_: insert_here
7260
7263
  });
7261
- const {
7262
- childNodes: childNodes
7263
- } = container;
7264
+ const non_solid_nodes = [...container.childNodes];
7264
7265
  // We have to use `insert` over Element.append, because ConfiguredScrollStatus is in an ErrorBoundary and therefore returns a function. `insert` will wipe all children, therefore save them first and then tell insert that the element should contain these elements + whatever ScrollStatus returns
7265
- $52FdA$solidjsweb.insert(container, $52FdA$solidjs.createMemo(() => [...childNodes, rendered_scroll_status]));
7266
+ $52FdA$solidjsweb.insert(container, $52FdA$solidjs.createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
7266
7267
  }
7267
7268
  },
7268
7269
  children: listing_contents
@@ -8897,7 +8898,7 @@ function $eef41d50f07bf19a$export$d31a1a1a83ad9413(plp_results_, _ref) {
8897
8898
  const $ede6c70ecdca46fe$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=product-count><!$><!/> <!$><!/>`),
8898
8899
  $ede6c70ecdca46fe$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`),
8899
8900
  $ede6c70ecdca46fe$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
8900
- $ede6c70ecdca46fe$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp category"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
8901
+ $ede6c70ecdca46fe$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp category"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/>`);
8901
8902
  function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
8902
8903
  let {
8903
8904
  depict_api_: depict_api_,
@@ -9196,9 +9197,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
9196
9197
  _el$25 = _el$24.nextSibling,
9197
9198
  [_el$26, _co$10] = $52FdA$solidjsweb.getNextMarker(_el$25.nextSibling),
9198
9199
  _el$27 = _el$14.nextSibling,
9199
- [_el$28, _co$11] = $52FdA$solidjsweb.getNextMarker(_el$27.nextSibling),
9200
- _el$29 = _el$28.nextSibling,
9201
- [_el$30, _co$12] = $52FdA$solidjsweb.getNextMarker(_el$29.nextSibling);
9200
+ [_el$28, _co$11] = $52FdA$solidjsweb.getNextMarker(_el$27.nextSibling);
9202
9201
  $52FdA$solidjsweb.use(el => process.env.NODE_ENV === "development" && $c3a7faae6f2b93c9$export$7af06a63c5a976c9(el, id_to_query_for_, i18n_), _el$13);
9203
9202
  $52FdA$solidjsweb.insert(_el$14, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
9204
9203
  get when() {
@@ -9292,25 +9291,25 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
9292
9291
  }), _el$26, _co$10);
9293
9292
  $52FdA$solidjsweb.insert(_el$13, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
9294
9293
  get when() {
9295
- return layout_options_().layout === "grid";
9294
+ var _layout_options_$layo;
9295
+ return !((_layout_options_$layo = layout_options_().layout) !== null && _layout_options_$layo !== void 0 && _layout_options_$layo.startsWith("slider"));
9296
9296
  },
9297
9297
  get children() {
9298
- return $52FdA$solidjsweb.createComponent(ConfiguredScrollStatus, {});
9298
+ return [$52FdA$solidjsweb.createComponent(ConfiguredScrollStatus, {}), $52FdA$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
9299
+ severity_: "error",
9300
+ message_: "Floating buttons failed",
9301
+ get children() {
9302
+ return $b7cbae23560f11b9$export$b23abd26de154ede({
9303
+ search_filters_open_: category_filters_open_,
9304
+ search_sorting_open_: category_sorting_open_,
9305
+ current_sorting_: current_sorting_,
9306
+ sort_and_filter_element_: sort_and_filter_element_,
9307
+ i18n_: i18n_
9308
+ });
9309
+ }
9310
+ })];
9299
9311
  }
9300
9312
  }), _el$28, _co$11);
9301
- $52FdA$solidjsweb.insert(_el$13, $52FdA$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
9302
- severity_: "error",
9303
- message_: "Floating buttons failed",
9304
- get children() {
9305
- return $b7cbae23560f11b9$export$b23abd26de154ede({
9306
- search_filters_open_: category_filters_open_,
9307
- search_sorting_open_: category_sorting_open_,
9308
- current_sorting_: current_sorting_,
9309
- sort_and_filter_element_: sort_and_filter_element_,
9310
- i18n_: i18n_
9311
- });
9312
- }
9313
- }), _el$30, _co$12);
9314
9313
  $52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setAttribute(_el$13, "id", (0, $c95c6dd9e93acd82$export$44dad306455dddf).PLP_CATEGORY));
9315
9314
  return _el$13;
9316
9315
  })()];
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.18";
13
+ export const version = "3.0.19";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
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.18";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.19";
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] : {};
@@ -2161,7 +2161,8 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
2161
2161
  disable_fading_: true,
2162
2162
  slider_ref_: slider => {
2163
2163
  const {
2164
- insert_here: insert_here
2164
+ insert_here: insert_here,
2165
+ container: container
2165
2166
  } = slider;
2166
2167
  const Layout = props => $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, insert_here, true);
2167
2168
  // Do like this, so we don't have to call mergeProps ourselves
@@ -2171,6 +2172,7 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
2171
2172
  }, layout_options_));
2172
2173
  $8tj43$slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
2173
2174
  insert_here.before($ca55612a53dbbdd2$export$a2cc176055f8f08());
2175
+ container.classList.add("products");
2174
2176
  },
2175
2177
  get children() {
2176
2178
  return $8tj43$createComponent((0, $8tj43$Suspense), {
@@ -7170,6 +7172,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
7170
7172
  }
7171
7173
  }));
7172
7174
  insert_here.classList.add("generated-spacing");
7175
+ container.classList.add("products");
7173
7176
  $8tj43$createEffect(
7174
7177
  // @ts-ignore
7175
7178
  $8tj43$on(query_base_, () => insert_here.scrollTo({
@@ -7185,11 +7188,9 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
7185
7188
  get_scroll_position_: () => insert_here.scrollLeft,
7186
7189
  listen_to_scroll_on_: insert_here
7187
7190
  });
7188
- const {
7189
- childNodes: childNodes
7190
- } = container;
7191
+ const non_solid_nodes = [...container.childNodes];
7191
7192
  // We have to use `insert` over Element.append, because ConfiguredScrollStatus is in an ErrorBoundary and therefore returns a function. `insert` will wipe all children, therefore save them first and then tell insert that the element should contain these elements + whatever ScrollStatus returns
7192
- $8tj43$insert(container, $8tj43$createMemo(() => [...childNodes, rendered_scroll_status]));
7193
+ $8tj43$insert(container, $8tj43$createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
7193
7194
  }
7194
7195
  },
7195
7196
  children: listing_contents
@@ -8824,7 +8825,7 @@ function $3a2bed57c9a57e21$export$d31a1a1a83ad9413(plp_results_, _ref) {
8824
8825
  const $4b4b262708b516ee$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=product-count><!$><!/> <!$><!/>`),
8825
8826
  $4b4b262708b516ee$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<div>`),
8826
8827
  $4b4b262708b516ee$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
8827
- $4b4b262708b516ee$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class="depict plp category"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
8828
+ $4b4b262708b516ee$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class="depict plp category"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/>`);
8828
8829
  function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
8829
8830
  let {
8830
8831
  depict_api_: depict_api_,
@@ -9123,9 +9124,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
9123
9124
  _el$25 = _el$24.nextSibling,
9124
9125
  [_el$26, _co$10] = $8tj43$getNextMarker(_el$25.nextSibling),
9125
9126
  _el$27 = _el$14.nextSibling,
9126
- [_el$28, _co$11] = $8tj43$getNextMarker(_el$27.nextSibling),
9127
- _el$29 = _el$28.nextSibling,
9128
- [_el$30, _co$12] = $8tj43$getNextMarker(_el$29.nextSibling);
9127
+ [_el$28, _co$11] = $8tj43$getNextMarker(_el$27.nextSibling);
9129
9128
  $8tj43$use(el => process.env.NODE_ENV === "development" && $1145661fd3ca5519$export$7af06a63c5a976c9(el, id_to_query_for_, i18n_), _el$13);
9130
9129
  $8tj43$insert(_el$14, $8tj43$createComponent((0, $8tj43$Show), {
9131
9130
  get when() {
@@ -9219,25 +9218,25 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
9219
9218
  }), _el$26, _co$10);
9220
9219
  $8tj43$insert(_el$13, $8tj43$createComponent((0, $8tj43$Show), {
9221
9220
  get when() {
9222
- return layout_options_().layout === "grid";
9221
+ var _layout_options_$layo;
9222
+ return !((_layout_options_$layo = layout_options_().layout) !== null && _layout_options_$layo !== void 0 && _layout_options_$layo.startsWith("slider"));
9223
9223
  },
9224
9224
  get children() {
9225
- return $8tj43$createComponent(ConfiguredScrollStatus, {});
9225
+ return [$8tj43$createComponent(ConfiguredScrollStatus, {}), $8tj43$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
9226
+ severity_: "error",
9227
+ message_: "Floating buttons failed",
9228
+ get children() {
9229
+ return $6a16b21155984cef$export$b23abd26de154ede({
9230
+ search_filters_open_: category_filters_open_,
9231
+ search_sorting_open_: category_sorting_open_,
9232
+ current_sorting_: current_sorting_,
9233
+ sort_and_filter_element_: sort_and_filter_element_,
9234
+ i18n_: i18n_
9235
+ });
9236
+ }
9237
+ })];
9226
9238
  }
9227
9239
  }), _el$28, _co$11);
9228
- $8tj43$insert(_el$13, $8tj43$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
9229
- severity_: "error",
9230
- message_: "Floating buttons failed",
9231
- get children() {
9232
- return $6a16b21155984cef$export$b23abd26de154ede({
9233
- search_filters_open_: category_filters_open_,
9234
- search_sorting_open_: category_sorting_open_,
9235
- current_sorting_: current_sorting_,
9236
- sort_and_filter_element_: sort_and_filter_element_,
9237
- i18n_: i18n_
9238
- });
9239
- }
9240
- }), _el$30, _co$12);
9241
9240
  $8tj43$effect(() => $8tj43$setAttribute(_el$13, "id", (0, $c3820807ac1e6fd7$export$44dad306455dddf).PLP_CATEGORY));
9242
9241
  return _el$13;
9243
9242
  })()];
package/README.md CHANGED
@@ -8,4 +8,5 @@ Breaking changes:
8
8
  - 1.2.0 added `page_url_creator` and changed typing to support it. The only breaking change is that this potentially causes type errors where the resolution is to move the generics to the provider instead of the SearchPage and CategoryPage components.
9
9
  - 1.3.0 moved `depict-filter-sort-mobile-modal-container` from being a class to being an id
10
10
  - 1.4.0 Added `brand_` translation string to Locale.
11
- - 2.0.0 Made `enable_content_search` `true` by default. Redesigned filter counts.
11
+ - 2.0.0 Made `enable_content_search` `true` by default. Redesigned filter counts.
12
+ - 3.0.15 (first `latest` tagged release of version 3): Please see this [migration guide](https://docs.depict.ai/other-guides/sdk-migration-v2-v3)
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.18";
80
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.19";
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 (() => {
@@ -2116,7 +2116,8 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
2116
2116
  disable_fading_: true,
2117
2117
  slider_ref_: slider => {
2118
2118
  const {
2119
- insert_here: insert_here
2119
+ insert_here: insert_here,
2120
+ container: container
2120
2121
  } = slider;
2121
2122
  const Layout = props => $f48d0fbb00835aaa$export$445d8d3f5f706a40(props, insert_here, true);
2122
2123
  // Do like this, so we don't have to call mergeProps ourselves
@@ -2126,6 +2127,7 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
2126
2127
  }, layout_options_));
2127
2128
  $gVhhF$depictaiutilishared.slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
2128
2129
  insert_here.before($fc23d7668ae0011d$export$a2cc176055f8f08());
2130
+ container.classList.add("products");
2129
2131
  },
2130
2132
  get children() {
2131
2133
  return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Suspense), {
@@ -6799,6 +6801,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
6799
6801
  }
6800
6802
  }));
6801
6803
  insert_here.classList.add("generated-spacing");
6804
+ container.classList.add("products");
6802
6805
  $gVhhF$solidjs.createEffect(
6803
6806
  // @ts-ignore
6804
6807
  $gVhhF$solidjs.on(query_base_, () => insert_here.scrollTo({
@@ -6814,11 +6817,9 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
6814
6817
  get_scroll_position_: () => insert_here.scrollLeft,
6815
6818
  listen_to_scroll_on_: insert_here
6816
6819
  });
6817
- const {
6818
- childNodes: childNodes
6819
- } = container;
6820
+ const non_solid_nodes = [...container.childNodes];
6820
6821
  // We have to use `insert` over Element.append, because ConfiguredScrollStatus is in an ErrorBoundary and therefore returns a function. `insert` will wipe all children, therefore save them first and then tell insert that the element should contain these elements + whatever ScrollStatus returns
6821
- $gVhhF$solidjsweb.insert(container, $gVhhF$solidjs.createMemo(() => [...childNodes, rendered_scroll_status]));
6822
+ $gVhhF$solidjsweb.insert(container, $gVhhF$solidjs.createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
6822
6823
  }
6823
6824
  },
6824
6825
  children: listing_contents
@@ -8356,7 +8357,7 @@ function $6a8e766e914723d8$export$d31a1a1a83ad9413(plp_results_, [get_selected_f
8356
8357
  const $840d88a04b2d22a7$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=product-count><!$><!/> <!$><!/>`),
8357
8358
  $840d88a04b2d22a7$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
8358
8359
  $840d88a04b2d22a7$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
8359
- $840d88a04b2d22a7$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp category"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
8360
+ $840d88a04b2d22a7$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp category"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/>`);
8360
8361
  function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
8361
8362
  depict_api_: depict_api_,
8362
8363
  id_to_query_for_: id_to_query_for_,
@@ -8627,9 +8628,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
8627
8628
  _el$25 = _el$24.nextSibling,
8628
8629
  [_el$26, _co$10] = $gVhhF$solidjsweb.getNextMarker(_el$25.nextSibling),
8629
8630
  _el$27 = _el$14.nextSibling,
8630
- [_el$28, _co$11] = $gVhhF$solidjsweb.getNextMarker(_el$27.nextSibling),
8631
- _el$29 = _el$28.nextSibling,
8632
- [_el$30, _co$12] = $gVhhF$solidjsweb.getNextMarker(_el$29.nextSibling);
8631
+ [_el$28, _co$11] = $gVhhF$solidjsweb.getNextMarker(_el$27.nextSibling);
8633
8632
  $gVhhF$solidjsweb.use(el => process.env.NODE_ENV === "development" && $bb9760b7a8acdc18$export$7af06a63c5a976c9(el, id_to_query_for_, i18n_), _el$13);
8634
8633
  $gVhhF$solidjsweb.insert(_el$14, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
8635
8634
  get when() {
@@ -8722,25 +8721,24 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
8722
8721
  }), _el$26, _co$10);
8723
8722
  $gVhhF$solidjsweb.insert(_el$13, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
8724
8723
  get when() {
8725
- return layout_options_().layout === "grid";
8724
+ return !layout_options_().layout?.startsWith("slider");
8726
8725
  },
8727
8726
  get children() {
8728
- return $gVhhF$solidjsweb.createComponent(ConfiguredScrollStatus, {});
8727
+ return [$gVhhF$solidjsweb.createComponent(ConfiguredScrollStatus, {}), $gVhhF$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
8728
+ severity_: "error",
8729
+ message_: "Floating buttons failed",
8730
+ get children() {
8731
+ return $2fb324fbcc7b4a7b$export$b23abd26de154ede({
8732
+ search_filters_open_: category_filters_open_,
8733
+ search_sorting_open_: category_sorting_open_,
8734
+ current_sorting_: current_sorting_,
8735
+ sort_and_filter_element_: sort_and_filter_element_,
8736
+ i18n_: i18n_
8737
+ });
8738
+ }
8739
+ })];
8729
8740
  }
8730
8741
  }), _el$28, _co$11);
8731
- $gVhhF$solidjsweb.insert(_el$13, $gVhhF$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
8732
- severity_: "error",
8733
- message_: "Floating buttons failed",
8734
- get children() {
8735
- return $2fb324fbcc7b4a7b$export$b23abd26de154ede({
8736
- search_filters_open_: category_filters_open_,
8737
- search_sorting_open_: category_sorting_open_,
8738
- current_sorting_: current_sorting_,
8739
- sort_and_filter_element_: sort_and_filter_element_,
8740
- i18n_: i18n_
8741
- });
8742
- }
8743
- }), _el$30, _co$12);
8744
8742
  $gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setAttribute(_el$13, "id", (0, $0b6e2070a98de347$export$44dad306455dddf).PLP_CATEGORY));
8745
8743
  return _el$13;
8746
8744
  })()];
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.18";
13
+ export const version = "3.0.19";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
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.18";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "3.0.19";
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 (() => {
@@ -2046,7 +2046,8 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
2046
2046
  disable_fading_: true,
2047
2047
  slider_ref_: slider => {
2048
2048
  const {
2049
- insert_here: insert_here
2049
+ insert_here: insert_here,
2050
+ container: container
2050
2051
  } = slider;
2051
2052
  const Layout = props => $c8d5ff4524619fcd$export$445d8d3f5f706a40(props, insert_here, true);
2052
2053
  // Do like this, so we don't have to call mergeProps ourselves
@@ -2056,6 +2057,7 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
2056
2057
  }, layout_options_));
2057
2058
  $9HbP8$slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
2058
2059
  insert_here.before($a458486f22b22f63$export$a2cc176055f8f08());
2060
+ container.classList.add("products");
2059
2061
  },
2060
2062
  get children() {
2061
2063
  return $9HbP8$createComponent((0, $9HbP8$Suspense), {
@@ -6729,6 +6731,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
6729
6731
  }
6730
6732
  }));
6731
6733
  insert_here.classList.add("generated-spacing");
6734
+ container.classList.add("products");
6732
6735
  $9HbP8$createEffect(
6733
6736
  // @ts-ignore
6734
6737
  $9HbP8$on(query_base_, () => insert_here.scrollTo({
@@ -6744,11 +6747,9 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
6744
6747
  get_scroll_position_: () => insert_here.scrollLeft,
6745
6748
  listen_to_scroll_on_: insert_here
6746
6749
  });
6747
- const {
6748
- childNodes: childNodes
6749
- } = container;
6750
+ const non_solid_nodes = [...container.childNodes];
6750
6751
  // We have to use `insert` over Element.append, because ConfiguredScrollStatus is in an ErrorBoundary and therefore returns a function. `insert` will wipe all children, therefore save them first and then tell insert that the element should contain these elements + whatever ScrollStatus returns
6751
- $9HbP8$insert(container, $9HbP8$createMemo(() => [...childNodes, rendered_scroll_status]));
6752
+ $9HbP8$insert(container, $9HbP8$createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
6752
6753
  }
6753
6754
  },
6754
6755
  children: listing_contents
@@ -8286,7 +8287,7 @@ function $2ab89d64b7f1d5ef$export$d31a1a1a83ad9413(plp_results_, [get_selected_f
8286
8287
  const $df5d81d0fe61ff21$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=product-count><!$><!/> <!$><!/>`),
8287
8288
  $df5d81d0fe61ff21$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<div>`),
8288
8289
  $df5d81d0fe61ff21$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=filter-results-for-one-row><!$><!/><!$><!/>`),
8289
- $df5d81d0fe61ff21$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp category"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/><!$><!/>`);
8290
+ $df5d81d0fe61ff21$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp category"><div class=listing-page><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></div><!$><!/>`);
8290
8291
  function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
8291
8292
  depict_api_: depict_api_,
8292
8293
  id_to_query_for_: id_to_query_for_,
@@ -8557,9 +8558,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
8557
8558
  _el$25 = _el$24.nextSibling,
8558
8559
  [_el$26, _co$10] = $9HbP8$getNextMarker(_el$25.nextSibling),
8559
8560
  _el$27 = _el$14.nextSibling,
8560
- [_el$28, _co$11] = $9HbP8$getNextMarker(_el$27.nextSibling),
8561
- _el$29 = _el$28.nextSibling,
8562
- [_el$30, _co$12] = $9HbP8$getNextMarker(_el$29.nextSibling);
8561
+ [_el$28, _co$11] = $9HbP8$getNextMarker(_el$27.nextSibling);
8563
8562
  $9HbP8$use(el => process.env.NODE_ENV === "development" && $cc6f5b69378cd164$export$7af06a63c5a976c9(el, id_to_query_for_, i18n_), _el$13);
8564
8563
  $9HbP8$insert(_el$14, $9HbP8$createComponent((0, $9HbP8$Show), {
8565
8564
  get when() {
@@ -8652,25 +8651,24 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
8652
8651
  }), _el$26, _co$10);
8653
8652
  $9HbP8$insert(_el$13, $9HbP8$createComponent((0, $9HbP8$Show), {
8654
8653
  get when() {
8655
- return layout_options_().layout === "grid";
8654
+ return !layout_options_().layout?.startsWith("slider");
8656
8655
  },
8657
8656
  get children() {
8658
- return $9HbP8$createComponent(ConfiguredScrollStatus, {});
8657
+ return [$9HbP8$createComponent(ConfiguredScrollStatus, {}), $9HbP8$createComponent((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
8658
+ severity_: "error",
8659
+ message_: "Floating buttons failed",
8660
+ get children() {
8661
+ return $0b0380f75d729d63$export$b23abd26de154ede({
8662
+ search_filters_open_: category_filters_open_,
8663
+ search_sorting_open_: category_sorting_open_,
8664
+ current_sorting_: current_sorting_,
8665
+ sort_and_filter_element_: sort_and_filter_element_,
8666
+ i18n_: i18n_
8667
+ });
8668
+ }
8669
+ })];
8659
8670
  }
8660
8671
  }), _el$28, _co$11);
8661
- $9HbP8$insert(_el$13, $9HbP8$createComponent((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
8662
- severity_: "error",
8663
- message_: "Floating buttons failed",
8664
- get children() {
8665
- return $0b0380f75d729d63$export$b23abd26de154ede({
8666
- search_filters_open_: category_filters_open_,
8667
- search_sorting_open_: category_sorting_open_,
8668
- current_sorting_: current_sorting_,
8669
- sort_and_filter_element_: sort_and_filter_element_,
8670
- i18n_: i18n_
8671
- });
8672
- }
8673
- }), _el$30, _co$12);
8674
8672
  $9HbP8$effect(() => $9HbP8$setAttribute(_el$13, "id", (0, $f86ba724282f6690$export$44dad306455dddf).PLP_CATEGORY));
8675
8673
  return _el$13;
8676
8674
  })()];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "3.0.18",
3
+ "version": "3.0.19",
4
4
  "description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
5
5
  "packageManager": "yarn@3.2.2",
6
6
  "sass": "styles.scss",
@@ -236,9 +236,9 @@
236
236
  "@babel/plugin-transform-typescript": "^7.22.9",
237
237
  "@babel/runtime": "latest",
238
238
  "@babel/runtime-corejs3": "^7.22.6",
239
- "@depict-ai/plp-styling": "^2.0.3",
240
- "@depict-ai/types": "^5.0.2",
241
- "@depict-ai/utilishared": "^2.0.6",
239
+ "@depict-ai/plp-styling": "^2.0.4",
240
+ "@depict-ai/types": "^5.0.3",
241
+ "@depict-ai/utilishared": "^2.0.7",
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.18";
86
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.19";
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;
@@ -1985,7 +1985,8 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
1985
1985
  disable_fading_: true,
1986
1986
  slider_ref_: slider => {
1987
1987
  const {
1988
- insert_here: insert_here
1988
+ insert_here: insert_here,
1989
+ container: container
1989
1990
  } = slider;
1990
1991
  const Layout = props => $6c2c739b113a8ddf$export$445d8d3f5f706a40(props, insert_here, true);
1991
1992
  // Do like this, so we don't have to call mergeProps ourselves
@@ -1995,6 +1996,7 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
1995
1996
  }, layout_options_));
1996
1997
  $3hooq$depictaiutilishared.slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
1997
1998
  insert_here.before($8edd3cf30d1fd8b4$export$a2cc176055f8f08());
1999
+ container.classList.add("products");
1998
2000
  },
1999
2001
  get children() {
2000
2002
  return $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Suspense), {
@@ -6086,6 +6088,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
6086
6088
  }
6087
6089
  }));
6088
6090
  insert_here.classList.add("generated-spacing");
6091
+ container.classList.add("products");
6089
6092
  $3hooq$solidjs.createEffect(
6090
6093
  // @ts-ignore
6091
6094
  $3hooq$solidjs.on(query_base_, () => insert_here.scrollTo({
@@ -6101,11 +6104,9 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
6101
6104
  get_scroll_position_: () => insert_here.scrollLeft,
6102
6105
  listen_to_scroll_on_: insert_here
6103
6106
  });
6104
- const {
6105
- childNodes: childNodes
6106
- } = container;
6107
+ const non_solid_nodes = [...container.childNodes];
6107
6108
  // We have to use `insert` over Element.append, because ConfiguredScrollStatus is in an ErrorBoundary and therefore returns a function. `insert` will wipe all children, therefore save them first and then tell insert that the element should contain these elements + whatever ScrollStatus returns
6108
- $3hooq$solidjsweb.insert(container, $3hooq$solidjs.createMemo(() => [...childNodes, rendered_scroll_status]));
6109
+ $3hooq$solidjsweb.insert(container, $3hooq$solidjs.createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
6109
6110
  }
6110
6111
  },
6111
6112
  children: listing_contents
@@ -7369,7 +7370,7 @@ function $eef41d50f07bf19a$export$d31a1a1a83ad9413(plp_results_, _ref) {
7369
7370
  const $ede6c70ecdca46fe$var$_tmpl$ = ["<div", ' class="product-count"><!--$-->', "<!--/--> <!--$-->", "<!--/--></div>"],
7370
7371
  $ede6c70ecdca46fe$var$_tmpl$2 = ["<div", "></div>"],
7371
7372
  $ede6c70ecdca46fe$var$_tmpl$3 = ["<div", ' class="filter-results-for-one-row"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
7372
- $ede6c70ecdca46fe$var$_tmpl$4 = ["<div", ' class="depict plp category"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
7373
+ $ede6c70ecdca46fe$var$_tmpl$4 = ["<div", ' class="depict plp category"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
7373
7374
  function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
7374
7375
  let {
7375
7376
  depict_api_: depict_api_,
@@ -7719,22 +7720,23 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
7719
7720
  }
7720
7721
  })), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
7721
7722
  get when() {
7722
- return layout_options_().layout === "grid";
7723
+ var _layout_options_$layo;
7724
+ return !((_layout_options_$layo = layout_options_().layout) !== null && _layout_options_$layo !== void 0 && _layout_options_$layo.startsWith("slider"));
7723
7725
  },
7724
7726
  get children() {
7725
- return $3hooq$solidjsweb.createComponent(ConfiguredScrollStatus, {});
7726
- }
7727
- })), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
7728
- severity_: "error",
7729
- message_: "Floating buttons failed",
7730
- get children() {
7731
- return $b7cbae23560f11b9$export$b23abd26de154ede({
7732
- search_filters_open_: category_filters_open_,
7733
- search_sorting_open_: category_sorting_open_,
7734
- current_sorting_: current_sorting_,
7735
- sort_and_filter_element_: sort_and_filter_element_,
7736
- i18n_: i18n_
7737
- });
7727
+ return [$3hooq$solidjsweb.createComponent(ConfiguredScrollStatus, {}), $3hooq$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
7728
+ severity_: "error",
7729
+ message_: "Floating buttons failed",
7730
+ get children() {
7731
+ return $b7cbae23560f11b9$export$b23abd26de154ede({
7732
+ search_filters_open_: category_filters_open_,
7733
+ search_sorting_open_: category_sorting_open_,
7734
+ current_sorting_: current_sorting_,
7735
+ sort_and_filter_element_: sort_and_filter_element_,
7736
+ i18n_: i18n_
7737
+ });
7738
+ }
7739
+ })];
7738
7740
  }
7739
7741
  })))];
7740
7742
  }
@@ -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.18";
13
+ export const version = "3.0.19";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
@@ -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.18";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.19";
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;
@@ -1912,7 +1912,8 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
1912
1912
  disable_fading_: true,
1913
1913
  slider_ref_: slider => {
1914
1914
  const {
1915
- insert_here: insert_here
1915
+ insert_here: insert_here,
1916
+ container: container
1916
1917
  } = slider;
1917
1918
  const Layout = props => $63f1f8dbcd07d3b0$export$445d8d3f5f706a40(props, insert_here, true);
1918
1919
  // Do like this, so we don't have to call mergeProps ourselves
@@ -1922,6 +1923,7 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
1922
1923
  }, layout_options_));
1923
1924
  $b8hua$slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
1924
1925
  insert_here.before($ca55612a53dbbdd2$export$a2cc176055f8f08());
1926
+ container.classList.add("products");
1925
1927
  },
1926
1928
  get children() {
1927
1929
  return $b8hua$createComponent((0, $b8hua$Suspense), {
@@ -6013,6 +6015,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
6013
6015
  }
6014
6016
  }));
6015
6017
  insert_here.classList.add("generated-spacing");
6018
+ container.classList.add("products");
6016
6019
  $b8hua$createEffect(
6017
6020
  // @ts-ignore
6018
6021
  $b8hua$on(query_base_, () => insert_here.scrollTo({
@@ -6028,11 +6031,9 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
6028
6031
  get_scroll_position_: () => insert_here.scrollLeft,
6029
6032
  listen_to_scroll_on_: insert_here
6030
6033
  });
6031
- const {
6032
- childNodes: childNodes
6033
- } = container;
6034
+ const non_solid_nodes = [...container.childNodes];
6034
6035
  // We have to use `insert` over Element.append, because ConfiguredScrollStatus is in an ErrorBoundary and therefore returns a function. `insert` will wipe all children, therefore save them first and then tell insert that the element should contain these elements + whatever ScrollStatus returns
6035
- $b8hua$insert(container, $b8hua$createMemo(() => [...childNodes, rendered_scroll_status]));
6036
+ $b8hua$insert(container, $b8hua$createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
6036
6037
  }
6037
6038
  },
6038
6039
  children: listing_contents
@@ -7296,7 +7297,7 @@ function $3a2bed57c9a57e21$export$d31a1a1a83ad9413(plp_results_, _ref) {
7296
7297
  const $4b4b262708b516ee$var$_tmpl$ = ["<div", ' class="product-count"><!--$-->', "<!--/--> <!--$-->", "<!--/--></div>"],
7297
7298
  $4b4b262708b516ee$var$_tmpl$2 = ["<div", "></div>"],
7298
7299
  $4b4b262708b516ee$var$_tmpl$3 = ["<div", ' class="filter-results-for-one-row"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
7299
- $4b4b262708b516ee$var$_tmpl$4 = ["<div", ' class="depict plp category"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
7300
+ $4b4b262708b516ee$var$_tmpl$4 = ["<div", ' class="depict plp category"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
7300
7301
  function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
7301
7302
  let {
7302
7303
  depict_api_: depict_api_,
@@ -7646,22 +7647,23 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
7646
7647
  }
7647
7648
  })), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
7648
7649
  get when() {
7649
- return layout_options_().layout === "grid";
7650
+ var _layout_options_$layo;
7651
+ return !((_layout_options_$layo = layout_options_().layout) !== null && _layout_options_$layo !== void 0 && _layout_options_$layo.startsWith("slider"));
7650
7652
  },
7651
7653
  get children() {
7652
- return $b8hua$createComponent(ConfiguredScrollStatus, {});
7653
- }
7654
- })), $b8hua$escape($b8hua$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
7655
- severity_: "error",
7656
- message_: "Floating buttons failed",
7657
- get children() {
7658
- return $6a16b21155984cef$export$b23abd26de154ede({
7659
- search_filters_open_: category_filters_open_,
7660
- search_sorting_open_: category_sorting_open_,
7661
- current_sorting_: current_sorting_,
7662
- sort_and_filter_element_: sort_and_filter_element_,
7663
- i18n_: i18n_
7664
- });
7654
+ return [$b8hua$createComponent(ConfiguredScrollStatus, {}), $b8hua$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
7655
+ severity_: "error",
7656
+ message_: "Floating buttons failed",
7657
+ get children() {
7658
+ return $6a16b21155984cef$export$b23abd26de154ede({
7659
+ search_filters_open_: category_filters_open_,
7660
+ search_sorting_open_: category_sorting_open_,
7661
+ current_sorting_: current_sorting_,
7662
+ sort_and_filter_element_: sort_and_filter_element_,
7663
+ i18n_: i18n_
7664
+ });
7665
+ }
7666
+ })];
7665
7667
  }
7666
7668
  })))];
7667
7669
  }
@@ -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.18";
80
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.19";
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));
@@ -1882,7 +1882,8 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
1882
1882
  disable_fading_: true,
1883
1883
  slider_ref_: slider => {
1884
1884
  const {
1885
- insert_here: insert_here
1885
+ insert_here: insert_here,
1886
+ container: container
1886
1887
  } = slider;
1887
1888
  const Layout = props => $f48d0fbb00835aaa$export$445d8d3f5f706a40(props, insert_here, true);
1888
1889
  // Do like this, so we don't have to call mergeProps ourselves
@@ -1892,6 +1893,7 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
1892
1893
  }, layout_options_));
1893
1894
  $5vyXB$depictaiutilishared.slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
1894
1895
  insert_here.before($fc23d7668ae0011d$export$a2cc176055f8f08());
1896
+ container.classList.add("products");
1895
1897
  },
1896
1898
  get children() {
1897
1899
  return $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Suspense), {
@@ -5685,6 +5687,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
5685
5687
  }
5686
5688
  }));
5687
5689
  insert_here.classList.add("generated-spacing");
5690
+ container.classList.add("products");
5688
5691
  $5vyXB$solidjs.createEffect(
5689
5692
  // @ts-ignore
5690
5693
  $5vyXB$solidjs.on(query_base_, () => insert_here.scrollTo({
@@ -5700,11 +5703,9 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
5700
5703
  get_scroll_position_: () => insert_here.scrollLeft,
5701
5704
  listen_to_scroll_on_: insert_here
5702
5705
  });
5703
- const {
5704
- childNodes: childNodes
5705
- } = container;
5706
+ const non_solid_nodes = [...container.childNodes];
5706
5707
  // We have to use `insert` over Element.append, because ConfiguredScrollStatus is in an ErrorBoundary and therefore returns a function. `insert` will wipe all children, therefore save them first and then tell insert that the element should contain these elements + whatever ScrollStatus returns
5707
- $5vyXB$solidjsweb.insert(container, $5vyXB$solidjs.createMemo(() => [...childNodes, rendered_scroll_status]));
5708
+ $5vyXB$solidjsweb.insert(container, $5vyXB$solidjs.createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
5708
5709
  }
5709
5710
  },
5710
5711
  children: listing_contents
@@ -6886,7 +6887,7 @@ function $6a8e766e914723d8$export$d31a1a1a83ad9413(plp_results_, [get_selected_f
6886
6887
  const $840d88a04b2d22a7$var$_tmpl$ = ["<div", ' class="product-count"><!--$-->', "<!--/--> <!--$-->", "<!--/--></div>"],
6887
6888
  $840d88a04b2d22a7$var$_tmpl$2 = ["<div", "></div>"],
6888
6889
  $840d88a04b2d22a7$var$_tmpl$3 = ["<div", ' class="filter-results-for-one-row"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
6889
- $840d88a04b2d22a7$var$_tmpl$4 = ["<div", ' class="depict plp category"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
6890
+ $840d88a04b2d22a7$var$_tmpl$4 = ["<div", ' class="depict plp category"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
6890
6891
  function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
6891
6892
  depict_api_: depict_api_,
6892
6893
  id_to_query_for_: id_to_query_for_,
@@ -7207,22 +7208,22 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
7207
7208
  }
7208
7209
  })), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
7209
7210
  get when() {
7210
- return layout_options_().layout === "grid";
7211
+ return !layout_options_().layout?.startsWith("slider");
7211
7212
  },
7212
7213
  get children() {
7213
- return $5vyXB$solidjsweb.createComponent(ConfiguredScrollStatus, {});
7214
- }
7215
- })), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
7216
- severity_: "error",
7217
- message_: "Floating buttons failed",
7218
- get children() {
7219
- return $2fb324fbcc7b4a7b$export$b23abd26de154ede({
7220
- search_filters_open_: category_filters_open_,
7221
- search_sorting_open_: category_sorting_open_,
7222
- current_sorting_: current_sorting_,
7223
- sort_and_filter_element_: sort_and_filter_element_,
7224
- i18n_: i18n_
7225
- });
7214
+ return [$5vyXB$solidjsweb.createComponent(ConfiguredScrollStatus, {}), $5vyXB$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
7215
+ severity_: "error",
7216
+ message_: "Floating buttons failed",
7217
+ get children() {
7218
+ return $2fb324fbcc7b4a7b$export$b23abd26de154ede({
7219
+ search_filters_open_: category_filters_open_,
7220
+ search_sorting_open_: category_sorting_open_,
7221
+ current_sorting_: current_sorting_,
7222
+ sort_and_filter_element_: sort_and_filter_element_,
7223
+ i18n_: i18n_
7224
+ });
7225
+ }
7226
+ })];
7226
7227
  }
7227
7228
  })))];
7228
7229
  }
@@ -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.18";
13
+ export const version = "3.0.19";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
@@ -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.18";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "3.0.19";
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));
@@ -1812,7 +1812,8 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
1812
1812
  disable_fading_: true,
1813
1813
  slider_ref_: slider => {
1814
1814
  const {
1815
- insert_here: insert_here
1815
+ insert_here: insert_here,
1816
+ container: container
1816
1817
  } = slider;
1817
1818
  const Layout = props => $c8d5ff4524619fcd$export$445d8d3f5f706a40(props, insert_here, true);
1818
1819
  // Do like this, so we don't have to call mergeProps ourselves
@@ -1822,6 +1823,7 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
1822
1823
  }, layout_options_));
1823
1824
  $i7OB2$slider_fractional_factory(0, 0.75).constructor_plugin.call(slider, {}); // enable fractional scrolling
1824
1825
  insert_here.before($a458486f22b22f63$export$a2cc176055f8f08());
1826
+ container.classList.add("products");
1825
1827
  },
1826
1828
  get children() {
1827
1829
  return $i7OB2$createComponent((0, $i7OB2$Suspense), {
@@ -5615,6 +5617,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
5615
5617
  }
5616
5618
  }));
5617
5619
  insert_here.classList.add("generated-spacing");
5620
+ container.classList.add("products");
5618
5621
  $i7OB2$createEffect(
5619
5622
  // @ts-ignore
5620
5623
  $i7OB2$on(query_base_, () => insert_here.scrollTo({
@@ -5630,11 +5633,9 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
5630
5633
  get_scroll_position_: () => insert_here.scrollLeft,
5631
5634
  listen_to_scroll_on_: insert_here
5632
5635
  });
5633
- const {
5634
- childNodes: childNodes
5635
- } = container;
5636
+ const non_solid_nodes = [...container.childNodes];
5636
5637
  // We have to use `insert` over Element.append, because ConfiguredScrollStatus is in an ErrorBoundary and therefore returns a function. `insert` will wipe all children, therefore save them first and then tell insert that the element should contain these elements + whatever ScrollStatus returns
5637
- $i7OB2$insert(container, $i7OB2$createMemo(() => [...childNodes, rendered_scroll_status]));
5638
+ $i7OB2$insert(container, $i7OB2$createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
5638
5639
  }
5639
5640
  },
5640
5641
  children: listing_contents
@@ -6816,7 +6817,7 @@ function $2ab89d64b7f1d5ef$export$d31a1a1a83ad9413(plp_results_, [get_selected_f
6816
6817
  const $df5d81d0fe61ff21$var$_tmpl$ = ["<div", ' class="product-count"><!--$-->', "<!--/--> <!--$-->", "<!--/--></div>"],
6817
6818
  $df5d81d0fe61ff21$var$_tmpl$2 = ["<div", "></div>"],
6818
6819
  $df5d81d0fe61ff21$var$_tmpl$3 = ["<div", ' class="filter-results-for-one-row"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"],
6819
- $df5d81d0fe61ff21$var$_tmpl$4 = ["<div", ' class="depict plp category"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"];
6820
+ $df5d81d0fe61ff21$var$_tmpl$4 = ["<div", ' class="depict plp category"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
6820
6821
  function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
6821
6822
  depict_api_: depict_api_,
6822
6823
  id_to_query_for_: id_to_query_for_,
@@ -7137,22 +7138,22 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
7137
7138
  }
7138
7139
  })), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
7139
7140
  get when() {
7140
- return layout_options_().layout === "grid";
7141
+ return !layout_options_().layout?.startsWith("slider");
7141
7142
  },
7142
7143
  get children() {
7143
- return $i7OB2$createComponent(ConfiguredScrollStatus, {});
7144
- }
7145
- })), $i7OB2$escape($i7OB2$createComponent((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
7146
- severity_: "error",
7147
- message_: "Floating buttons failed",
7148
- get children() {
7149
- return $0b0380f75d729d63$export$b23abd26de154ede({
7150
- search_filters_open_: category_filters_open_,
7151
- search_sorting_open_: category_sorting_open_,
7152
- current_sorting_: current_sorting_,
7153
- sort_and_filter_element_: sort_and_filter_element_,
7154
- i18n_: i18n_
7155
- });
7144
+ return [$i7OB2$createComponent(ConfiguredScrollStatus, {}), $i7OB2$createComponent((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
7145
+ severity_: "error",
7146
+ message_: "Floating buttons failed",
7147
+ get children() {
7148
+ return $0b0380f75d729d63$export$b23abd26de154ede({
7149
+ search_filters_open_: category_filters_open_,
7150
+ search_sorting_open_: category_sorting_open_,
7151
+ current_sorting_: current_sorting_,
7152
+ sort_and_filter_element_: sort_and_filter_element_,
7153
+ i18n_: i18n_
7154
+ });
7155
+ }
7156
+ })];
7156
7157
  }
7157
7158
  })))];
7158
7159
  }