@depict-ai/ui 3.0.17 → 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 +35 -28
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +35 -28
- package/README.md +2 -1
- package/latest/index.cjs +33 -27
- package/latest/index.d.ts +1 -1
- package/latest/index.js +33 -27
- package/package.json +4 -4
- package/server/ES10/index.cjs +34 -24
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +34 -24
- package/server/latest/index.cjs +32 -23
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +32 -23
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.
|
|
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(() => [...
|
|
7266
|
+
$52FdA$solidjsweb.insert(container, $52FdA$solidjs.createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
|
|
7266
7267
|
}
|
|
7267
7268
|
},
|
|
7268
7269
|
children: listing_contents
|
|
@@ -8897,9 +8898,8 @@ 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
|
-
var _on_filters_construct;
|
|
8903
8903
|
let {
|
|
8904
8904
|
depict_api_: depict_api_,
|
|
8905
8905
|
id_to_query_for_: id_to_query_for_,
|
|
@@ -9138,7 +9138,11 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
9138
9138
|
id_: id_to_query_for_,
|
|
9139
9139
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
9140
9140
|
});
|
|
9141
|
-
(
|
|
9141
|
+
$52FdA$solidjs.createEffect(() => {
|
|
9142
|
+
var _on_filters_construct;
|
|
9143
|
+
if (sort_and_filter_disabled_()) return;
|
|
9144
|
+
(_on_filters_construct = on_filters_constructed_) === null || _on_filters_construct === void 0 || _on_filters_construct();
|
|
9145
|
+
});
|
|
9142
9146
|
$52FdA$solidjs.createComputed(() => {
|
|
9143
9147
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
9144
9148
|
});
|
|
@@ -9193,9 +9197,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
9193
9197
|
_el$25 = _el$24.nextSibling,
|
|
9194
9198
|
[_el$26, _co$10] = $52FdA$solidjsweb.getNextMarker(_el$25.nextSibling),
|
|
9195
9199
|
_el$27 = _el$14.nextSibling,
|
|
9196
|
-
[_el$28, _co$11] = $52FdA$solidjsweb.getNextMarker(_el$27.nextSibling)
|
|
9197
|
-
_el$29 = _el$28.nextSibling,
|
|
9198
|
-
[_el$30, _co$12] = $52FdA$solidjsweb.getNextMarker(_el$29.nextSibling);
|
|
9200
|
+
[_el$28, _co$11] = $52FdA$solidjsweb.getNextMarker(_el$27.nextSibling);
|
|
9199
9201
|
$52FdA$solidjsweb.use(el => process.env.NODE_ENV === "development" && $c3a7faae6f2b93c9$export$7af06a63c5a976c9(el, id_to_query_for_, i18n_), _el$13);
|
|
9200
9202
|
$52FdA$solidjsweb.insert(_el$14, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
9201
9203
|
get when() {
|
|
@@ -9289,25 +9291,25 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
9289
9291
|
}), _el$26, _co$10);
|
|
9290
9292
|
$52FdA$solidjsweb.insert(_el$13, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
9291
9293
|
get when() {
|
|
9292
|
-
|
|
9294
|
+
var _layout_options_$layo;
|
|
9295
|
+
return !((_layout_options_$layo = layout_options_().layout) !== null && _layout_options_$layo !== void 0 && _layout_options_$layo.startsWith("slider"));
|
|
9293
9296
|
},
|
|
9294
9297
|
get children() {
|
|
9295
|
-
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
|
+
})];
|
|
9296
9311
|
}
|
|
9297
9312
|
}), _el$28, _co$11);
|
|
9298
|
-
$52FdA$solidjsweb.insert(_el$13, $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
|
-
}), _el$30, _co$12);
|
|
9311
9313
|
$52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setAttribute(_el$13, "id", (0, $c95c6dd9e93acd82$export$44dad306455dddf).PLP_CATEGORY));
|
|
9312
9314
|
return _el$13;
|
|
9313
9315
|
})()];
|
|
@@ -9693,7 +9695,12 @@ function $9cbefc32b9dab36d$export$e2bf8ce7779e827e(props) {
|
|
|
9693
9695
|
return newId;
|
|
9694
9696
|
});
|
|
9695
9697
|
$52FdA$solidjs.onCleanup(() => $bdea39a75c454f4f$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
9696
|
-
const is_grid = $52FdA$solidjs.createMemo(() =>
|
|
9698
|
+
const is_grid = $52FdA$solidjs.createMemo(() => {
|
|
9699
|
+
const {
|
|
9700
|
+
layout: layout
|
|
9701
|
+
} = props;
|
|
9702
|
+
return !layout || layout === "grid";
|
|
9703
|
+
});
|
|
9697
9704
|
const grid_spacing_override = $52FdA$solidjs.createMemo(() => {
|
|
9698
9705
|
const {
|
|
9699
9706
|
grid_spacing: grid_spacing
|
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.
|
|
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.
|
|
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(() => [...
|
|
7193
|
+
$8tj43$insert(container, $8tj43$createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
|
|
7193
7194
|
}
|
|
7194
7195
|
},
|
|
7195
7196
|
children: listing_contents
|
|
@@ -8824,9 +8825,8 @@ 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
|
-
var _on_filters_construct;
|
|
8830
8830
|
let {
|
|
8831
8831
|
depict_api_: depict_api_,
|
|
8832
8832
|
id_to_query_for_: id_to_query_for_,
|
|
@@ -9065,7 +9065,11 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
9065
9065
|
id_: id_to_query_for_,
|
|
9066
9066
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
9067
9067
|
});
|
|
9068
|
-
(
|
|
9068
|
+
$8tj43$createEffect(() => {
|
|
9069
|
+
var _on_filters_construct;
|
|
9070
|
+
if (sort_and_filter_disabled_()) return;
|
|
9071
|
+
(_on_filters_construct = on_filters_constructed_) === null || _on_filters_construct === void 0 || _on_filters_construct();
|
|
9072
|
+
});
|
|
9069
9073
|
$8tj43$createComputed(() => {
|
|
9070
9074
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
9071
9075
|
});
|
|
@@ -9120,9 +9124,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
9120
9124
|
_el$25 = _el$24.nextSibling,
|
|
9121
9125
|
[_el$26, _co$10] = $8tj43$getNextMarker(_el$25.nextSibling),
|
|
9122
9126
|
_el$27 = _el$14.nextSibling,
|
|
9123
|
-
[_el$28, _co$11] = $8tj43$getNextMarker(_el$27.nextSibling)
|
|
9124
|
-
_el$29 = _el$28.nextSibling,
|
|
9125
|
-
[_el$30, _co$12] = $8tj43$getNextMarker(_el$29.nextSibling);
|
|
9127
|
+
[_el$28, _co$11] = $8tj43$getNextMarker(_el$27.nextSibling);
|
|
9126
9128
|
$8tj43$use(el => process.env.NODE_ENV === "development" && $1145661fd3ca5519$export$7af06a63c5a976c9(el, id_to_query_for_, i18n_), _el$13);
|
|
9127
9129
|
$8tj43$insert(_el$14, $8tj43$createComponent((0, $8tj43$Show), {
|
|
9128
9130
|
get when() {
|
|
@@ -9216,25 +9218,25 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
9216
9218
|
}), _el$26, _co$10);
|
|
9217
9219
|
$8tj43$insert(_el$13, $8tj43$createComponent((0, $8tj43$Show), {
|
|
9218
9220
|
get when() {
|
|
9219
|
-
|
|
9221
|
+
var _layout_options_$layo;
|
|
9222
|
+
return !((_layout_options_$layo = layout_options_().layout) !== null && _layout_options_$layo !== void 0 && _layout_options_$layo.startsWith("slider"));
|
|
9220
9223
|
},
|
|
9221
9224
|
get children() {
|
|
9222
|
-
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
|
+
})];
|
|
9223
9238
|
}
|
|
9224
9239
|
}), _el$28, _co$11);
|
|
9225
|
-
$8tj43$insert(_el$13, $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
|
-
}), _el$30, _co$12);
|
|
9238
9240
|
$8tj43$effect(() => $8tj43$setAttribute(_el$13, "id", (0, $c3820807ac1e6fd7$export$44dad306455dddf).PLP_CATEGORY));
|
|
9239
9241
|
return _el$13;
|
|
9240
9242
|
})()];
|
|
@@ -9620,7 +9622,12 @@ function $f5f54892fd0c7d9f$export$e2bf8ce7779e827e(props) {
|
|
|
9620
9622
|
return newId;
|
|
9621
9623
|
});
|
|
9622
9624
|
$8tj43$onCleanup(() => $01c33966d9ddb108$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
9623
|
-
const is_grid = $8tj43$createMemo(() =>
|
|
9625
|
+
const is_grid = $8tj43$createMemo(() => {
|
|
9626
|
+
const {
|
|
9627
|
+
layout: layout
|
|
9628
|
+
} = props;
|
|
9629
|
+
return !layout || layout === "grid";
|
|
9630
|
+
});
|
|
9624
9631
|
const grid_spacing_override = $8tj43$createMemo(() => {
|
|
9625
9632
|
const {
|
|
9626
9633
|
grid_spacing: grid_spacing
|
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.
|
|
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(() => [...
|
|
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_,
|
|
@@ -8570,7 +8571,10 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
8570
8571
|
id_: id_to_query_for_,
|
|
8571
8572
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
8572
8573
|
});
|
|
8573
|
-
|
|
8574
|
+
$gVhhF$solidjs.createEffect(() => {
|
|
8575
|
+
if (sort_and_filter_disabled_()) return;
|
|
8576
|
+
on_filters_constructed_?.();
|
|
8577
|
+
});
|
|
8574
8578
|
$gVhhF$solidjs.createComputed(() => {
|
|
8575
8579
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
8576
8580
|
});
|
|
@@ -8624,9 +8628,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
8624
8628
|
_el$25 = _el$24.nextSibling,
|
|
8625
8629
|
[_el$26, _co$10] = $gVhhF$solidjsweb.getNextMarker(_el$25.nextSibling),
|
|
8626
8630
|
_el$27 = _el$14.nextSibling,
|
|
8627
|
-
[_el$28, _co$11] = $gVhhF$solidjsweb.getNextMarker(_el$27.nextSibling)
|
|
8628
|
-
_el$29 = _el$28.nextSibling,
|
|
8629
|
-
[_el$30, _co$12] = $gVhhF$solidjsweb.getNextMarker(_el$29.nextSibling);
|
|
8631
|
+
[_el$28, _co$11] = $gVhhF$solidjsweb.getNextMarker(_el$27.nextSibling);
|
|
8630
8632
|
$gVhhF$solidjsweb.use(el => process.env.NODE_ENV === "development" && $bb9760b7a8acdc18$export$7af06a63c5a976c9(el, id_to_query_for_, i18n_), _el$13);
|
|
8631
8633
|
$gVhhF$solidjsweb.insert(_el$14, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
8632
8634
|
get when() {
|
|
@@ -8719,25 +8721,24 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
8719
8721
|
}), _el$26, _co$10);
|
|
8720
8722
|
$gVhhF$solidjsweb.insert(_el$13, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
8721
8723
|
get when() {
|
|
8722
|
-
return layout_options_().layout
|
|
8724
|
+
return !layout_options_().layout?.startsWith("slider");
|
|
8723
8725
|
},
|
|
8724
8726
|
get children() {
|
|
8725
|
-
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
|
+
})];
|
|
8726
8740
|
}
|
|
8727
8741
|
}), _el$28, _co$11);
|
|
8728
|
-
$gVhhF$solidjsweb.insert(_el$13, $gVhhF$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
|
|
8729
|
-
severity_: "error",
|
|
8730
|
-
message_: "Floating buttons failed",
|
|
8731
|
-
get children() {
|
|
8732
|
-
return $2fb324fbcc7b4a7b$export$b23abd26de154ede({
|
|
8733
|
-
search_filters_open_: category_filters_open_,
|
|
8734
|
-
search_sorting_open_: category_sorting_open_,
|
|
8735
|
-
current_sorting_: current_sorting_,
|
|
8736
|
-
sort_and_filter_element_: sort_and_filter_element_,
|
|
8737
|
-
i18n_: i18n_
|
|
8738
|
-
});
|
|
8739
|
-
}
|
|
8740
|
-
}), _el$30, _co$12);
|
|
8741
8742
|
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setAttribute(_el$13, "id", (0, $0b6e2070a98de347$export$44dad306455dddf).PLP_CATEGORY));
|
|
8742
8743
|
return _el$13;
|
|
8743
8744
|
})()];
|
|
@@ -9051,7 +9052,12 @@ function $48567ac5b39bac56$export$e2bf8ce7779e827e(props) {
|
|
|
9051
9052
|
return newId;
|
|
9052
9053
|
});
|
|
9053
9054
|
$gVhhF$solidjs.onCleanup(() => $deaaf04362a1bc71$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
9054
|
-
const is_grid = $gVhhF$solidjs.createMemo(() =>
|
|
9055
|
+
const is_grid = $gVhhF$solidjs.createMemo(() => {
|
|
9056
|
+
const {
|
|
9057
|
+
layout: layout
|
|
9058
|
+
} = props;
|
|
9059
|
+
return !layout || layout === "grid";
|
|
9060
|
+
});
|
|
9055
9061
|
const grid_spacing_override = $gVhhF$solidjs.createMemo(() => {
|
|
9056
9062
|
const {
|
|
9057
9063
|
grid_spacing: grid_spacing
|
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.
|
|
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.
|
|
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(() => [...
|
|
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_,
|
|
@@ -8500,7 +8501,10 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
8500
8501
|
id_: id_to_query_for_,
|
|
8501
8502
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
8502
8503
|
});
|
|
8503
|
-
|
|
8504
|
+
$9HbP8$createEffect(() => {
|
|
8505
|
+
if (sort_and_filter_disabled_()) return;
|
|
8506
|
+
on_filters_constructed_?.();
|
|
8507
|
+
});
|
|
8504
8508
|
$9HbP8$createComputed(() => {
|
|
8505
8509
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
8506
8510
|
});
|
|
@@ -8554,9 +8558,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
8554
8558
|
_el$25 = _el$24.nextSibling,
|
|
8555
8559
|
[_el$26, _co$10] = $9HbP8$getNextMarker(_el$25.nextSibling),
|
|
8556
8560
|
_el$27 = _el$14.nextSibling,
|
|
8557
|
-
[_el$28, _co$11] = $9HbP8$getNextMarker(_el$27.nextSibling)
|
|
8558
|
-
_el$29 = _el$28.nextSibling,
|
|
8559
|
-
[_el$30, _co$12] = $9HbP8$getNextMarker(_el$29.nextSibling);
|
|
8561
|
+
[_el$28, _co$11] = $9HbP8$getNextMarker(_el$27.nextSibling);
|
|
8560
8562
|
$9HbP8$use(el => process.env.NODE_ENV === "development" && $cc6f5b69378cd164$export$7af06a63c5a976c9(el, id_to_query_for_, i18n_), _el$13);
|
|
8561
8563
|
$9HbP8$insert(_el$14, $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
8562
8564
|
get when() {
|
|
@@ -8649,25 +8651,24 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
8649
8651
|
}), _el$26, _co$10);
|
|
8650
8652
|
$9HbP8$insert(_el$13, $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
8651
8653
|
get when() {
|
|
8652
|
-
return layout_options_().layout
|
|
8654
|
+
return !layout_options_().layout?.startsWith("slider");
|
|
8653
8655
|
},
|
|
8654
8656
|
get children() {
|
|
8655
|
-
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
|
+
})];
|
|
8656
8670
|
}
|
|
8657
8671
|
}), _el$28, _co$11);
|
|
8658
|
-
$9HbP8$insert(_el$13, $9HbP8$createComponent((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
|
|
8659
|
-
severity_: "error",
|
|
8660
|
-
message_: "Floating buttons failed",
|
|
8661
|
-
get children() {
|
|
8662
|
-
return $0b0380f75d729d63$export$b23abd26de154ede({
|
|
8663
|
-
search_filters_open_: category_filters_open_,
|
|
8664
|
-
search_sorting_open_: category_sorting_open_,
|
|
8665
|
-
current_sorting_: current_sorting_,
|
|
8666
|
-
sort_and_filter_element_: sort_and_filter_element_,
|
|
8667
|
-
i18n_: i18n_
|
|
8668
|
-
});
|
|
8669
|
-
}
|
|
8670
|
-
}), _el$30, _co$12);
|
|
8671
8672
|
$9HbP8$effect(() => $9HbP8$setAttribute(_el$13, "id", (0, $f86ba724282f6690$export$44dad306455dddf).PLP_CATEGORY));
|
|
8672
8673
|
return _el$13;
|
|
8673
8674
|
})()];
|
|
@@ -8981,7 +8982,12 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e(props) {
|
|
|
8981
8982
|
return newId;
|
|
8982
8983
|
});
|
|
8983
8984
|
$9HbP8$onCleanup(() => $d8dbf52fea1773e2$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
8984
|
-
const is_grid = $9HbP8$createMemo(() =>
|
|
8985
|
+
const is_grid = $9HbP8$createMemo(() => {
|
|
8986
|
+
const {
|
|
8987
|
+
layout: layout
|
|
8988
|
+
} = props;
|
|
8989
|
+
return !layout || layout === "grid";
|
|
8990
|
+
});
|
|
8985
8991
|
const grid_spacing_override = $9HbP8$createMemo(() => {
|
|
8986
8992
|
const {
|
|
8987
8993
|
grid_spacing: grid_spacing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "3.0.
|
|
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.
|
|
240
|
-
"@depict-ai/types": "^5.0.
|
|
241
|
-
"@depict-ai/utilishared": "^2.0.
|
|
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",
|
package/server/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.
|
|
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(() => [...
|
|
6109
|
+
$3hooq$solidjsweb.insert(container, $3hooq$solidjs.createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
|
|
6109
6110
|
}
|
|
6110
6111
|
},
|
|
6111
6112
|
children: listing_contents
|
|
@@ -7369,9 +7370,8 @@ 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><!--$-->", "
|
|
7373
|
+
$ede6c70ecdca46fe$var$_tmpl$4 = ["<div", ' class="depict plp category"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
|
|
7373
7374
|
function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
7374
|
-
var _on_filters_construct;
|
|
7375
7375
|
let {
|
|
7376
7376
|
depict_api_: depict_api_,
|
|
7377
7377
|
id_to_query_for_: id_to_query_for_,
|
|
@@ -7600,7 +7600,11 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
7600
7600
|
id_: id_to_query_for_,
|
|
7601
7601
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
7602
7602
|
});
|
|
7603
|
-
(
|
|
7603
|
+
$3hooq$solidjs.createEffect(() => {
|
|
7604
|
+
var _on_filters_construct;
|
|
7605
|
+
if (sort_and_filter_disabled_()) return;
|
|
7606
|
+
(_on_filters_construct = on_filters_constructed_) === null || _on_filters_construct === void 0 || _on_filters_construct();
|
|
7607
|
+
});
|
|
7604
7608
|
$3hooq$solidjs.createComputed(() => {
|
|
7605
7609
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
7606
7610
|
});
|
|
@@ -7716,22 +7720,23 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
7716
7720
|
}
|
|
7717
7721
|
})), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
7718
7722
|
get when() {
|
|
7719
|
-
|
|
7723
|
+
var _layout_options_$layo;
|
|
7724
|
+
return !((_layout_options_$layo = layout_options_().layout) !== null && _layout_options_$layo !== void 0 && _layout_options_$layo.startsWith("slider"));
|
|
7720
7725
|
},
|
|
7721
7726
|
get children() {
|
|
7722
|
-
return $3hooq$solidjsweb.createComponent(ConfiguredScrollStatus, {})
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
});
|
|
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
|
+
})];
|
|
7735
7740
|
}
|
|
7736
7741
|
})))];
|
|
7737
7742
|
}
|
|
@@ -8111,7 +8116,12 @@ function $9cbefc32b9dab36d$export$e2bf8ce7779e827e(props) {
|
|
|
8111
8116
|
return newId;
|
|
8112
8117
|
});
|
|
8113
8118
|
$3hooq$solidjs.onCleanup(() => $bdea39a75c454f4f$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
8114
|
-
const is_grid = $3hooq$solidjs.createMemo(() =>
|
|
8119
|
+
const is_grid = $3hooq$solidjs.createMemo(() => {
|
|
8120
|
+
const {
|
|
8121
|
+
layout: layout
|
|
8122
|
+
} = props;
|
|
8123
|
+
return !layout || layout === "grid";
|
|
8124
|
+
});
|
|
8115
8125
|
const grid_spacing_override = $3hooq$solidjs.createMemo(() => {
|
|
8116
8126
|
const {
|
|
8117
8127
|
grid_spacing: grid_spacing
|
package/server/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.
|
|
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/server/ES10/index.js
CHANGED
|
@@ -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.
|
|
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(() => [...
|
|
6036
|
+
$b8hua$insert(container, $b8hua$createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
|
|
6036
6037
|
}
|
|
6037
6038
|
},
|
|
6038
6039
|
children: listing_contents
|
|
@@ -7296,9 +7297,8 @@ 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><!--$-->", "
|
|
7300
|
+
$4b4b262708b516ee$var$_tmpl$4 = ["<div", ' class="depict plp category"><div class="listing-page"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
|
|
7300
7301
|
function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
7301
|
-
var _on_filters_construct;
|
|
7302
7302
|
let {
|
|
7303
7303
|
depict_api_: depict_api_,
|
|
7304
7304
|
id_to_query_for_: id_to_query_for_,
|
|
@@ -7527,7 +7527,11 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
7527
7527
|
id_: id_to_query_for_,
|
|
7528
7528
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
7529
7529
|
});
|
|
7530
|
-
(
|
|
7530
|
+
$b8hua$createEffect(() => {
|
|
7531
|
+
var _on_filters_construct;
|
|
7532
|
+
if (sort_and_filter_disabled_()) return;
|
|
7533
|
+
(_on_filters_construct = on_filters_constructed_) === null || _on_filters_construct === void 0 || _on_filters_construct();
|
|
7534
|
+
});
|
|
7531
7535
|
$b8hua$createComputed(() => {
|
|
7532
7536
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
7533
7537
|
});
|
|
@@ -7643,22 +7647,23 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
7643
7647
|
}
|
|
7644
7648
|
})), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
7645
7649
|
get when() {
|
|
7646
|
-
|
|
7650
|
+
var _layout_options_$layo;
|
|
7651
|
+
return !((_layout_options_$layo = layout_options_().layout) !== null && _layout_options_$layo !== void 0 && _layout_options_$layo.startsWith("slider"));
|
|
7647
7652
|
},
|
|
7648
7653
|
get children() {
|
|
7649
|
-
return $b8hua$createComponent(ConfiguredScrollStatus, {})
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
});
|
|
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
|
+
})];
|
|
7662
7667
|
}
|
|
7663
7668
|
})))];
|
|
7664
7669
|
}
|
|
@@ -8038,7 +8043,12 @@ function $f5f54892fd0c7d9f$export$e2bf8ce7779e827e(props) {
|
|
|
8038
8043
|
return newId;
|
|
8039
8044
|
});
|
|
8040
8045
|
$b8hua$onCleanup(() => $01c33966d9ddb108$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
8041
|
-
const is_grid = $b8hua$createMemo(() =>
|
|
8046
|
+
const is_grid = $b8hua$createMemo(() => {
|
|
8047
|
+
const {
|
|
8048
|
+
layout: layout
|
|
8049
|
+
} = props;
|
|
8050
|
+
return !layout || layout === "grid";
|
|
8051
|
+
});
|
|
8042
8052
|
const grid_spacing_override = $b8hua$createMemo(() => {
|
|
8043
8053
|
const {
|
|
8044
8054
|
grid_spacing: grid_spacing
|
package/server/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.
|
|
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(() => [...
|
|
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><!--$-->", "
|
|
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_,
|
|
@@ -7090,7 +7091,10 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
7090
7091
|
id_: id_to_query_for_,
|
|
7091
7092
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
7092
7093
|
});
|
|
7093
|
-
|
|
7094
|
+
$5vyXB$solidjs.createEffect(() => {
|
|
7095
|
+
if (sort_and_filter_disabled_()) return;
|
|
7096
|
+
on_filters_constructed_?.();
|
|
7097
|
+
});
|
|
7094
7098
|
$5vyXB$solidjs.createComputed(() => {
|
|
7095
7099
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
7096
7100
|
});
|
|
@@ -7204,22 +7208,22 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
7204
7208
|
}
|
|
7205
7209
|
})), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
7206
7210
|
get when() {
|
|
7207
|
-
return layout_options_().layout
|
|
7211
|
+
return !layout_options_().layout?.startsWith("slider");
|
|
7208
7212
|
},
|
|
7209
7213
|
get children() {
|
|
7210
|
-
return $5vyXB$solidjsweb.createComponent(ConfiguredScrollStatus, {})
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
});
|
|
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
|
+
})];
|
|
7223
7227
|
}
|
|
7224
7228
|
})))];
|
|
7225
7229
|
}
|
|
@@ -7527,7 +7531,12 @@ function $48567ac5b39bac56$export$e2bf8ce7779e827e(props) {
|
|
|
7527
7531
|
return newId;
|
|
7528
7532
|
});
|
|
7529
7533
|
$5vyXB$solidjs.onCleanup(() => $deaaf04362a1bc71$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
7530
|
-
const is_grid = $5vyXB$solidjs.createMemo(() =>
|
|
7534
|
+
const is_grid = $5vyXB$solidjs.createMemo(() => {
|
|
7535
|
+
const {
|
|
7536
|
+
layout: layout
|
|
7537
|
+
} = props;
|
|
7538
|
+
return !layout || layout === "grid";
|
|
7539
|
+
});
|
|
7531
7540
|
const grid_spacing_override = $5vyXB$solidjs.createMemo(() => {
|
|
7532
7541
|
const {
|
|
7533
7542
|
grid_spacing: grid_spacing
|
package/server/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.
|
|
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/server/latest/index.js
CHANGED
|
@@ -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.
|
|
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(() => [...
|
|
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><!--$-->", "
|
|
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_,
|
|
@@ -7020,7 +7021,10 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
7020
7021
|
id_: id_to_query_for_,
|
|
7021
7022
|
can_write_scroll_restoration_: can_write_scroll_restoration_
|
|
7022
7023
|
});
|
|
7023
|
-
|
|
7024
|
+
$i7OB2$createEffect(() => {
|
|
7025
|
+
if (sort_and_filter_disabled_()) return;
|
|
7026
|
+
on_filters_constructed_?.();
|
|
7027
|
+
});
|
|
7024
7028
|
$i7OB2$createComputed(() => {
|
|
7025
7029
|
if (plp_products_.loading) set_can_write_scroll_restoration(false);else if (plp_products_()) set_can_write_scroll_restoration(true);
|
|
7026
7030
|
});
|
|
@@ -7134,22 +7138,22 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
7134
7138
|
}
|
|
7135
7139
|
})), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|
|
7136
7140
|
get when() {
|
|
7137
|
-
return layout_options_().layout
|
|
7141
|
+
return !layout_options_().layout?.startsWith("slider");
|
|
7138
7142
|
},
|
|
7139
7143
|
get children() {
|
|
7140
|
-
return $i7OB2$createComponent(ConfiguredScrollStatus, {})
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
});
|
|
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
|
+
})];
|
|
7153
7157
|
}
|
|
7154
7158
|
})))];
|
|
7155
7159
|
}
|
|
@@ -7457,7 +7461,12 @@ function $961b5c64bef4662f$export$e2bf8ce7779e827e(props) {
|
|
|
7457
7461
|
return newId;
|
|
7458
7462
|
});
|
|
7459
7463
|
$i7OB2$onCleanup(() => $d8dbf52fea1773e2$export$f50b88e2a00918b5(props.on_listing_query_change)());
|
|
7460
|
-
const is_grid = $i7OB2$createMemo(() =>
|
|
7464
|
+
const is_grid = $i7OB2$createMemo(() => {
|
|
7465
|
+
const {
|
|
7466
|
+
layout: layout
|
|
7467
|
+
} = props;
|
|
7468
|
+
return !layout || layout === "grid";
|
|
7469
|
+
});
|
|
7461
7470
|
const grid_spacing_override = $i7OB2$createMemo(() => {
|
|
7462
7471
|
const {
|
|
7463
7472
|
grid_spacing: grid_spacing
|