@depict-ai/ui 1.2.0 → 1.2.2
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/dist/client/main.cjs +39 -45
- package/dist/client/module.js +38 -44
- package/dist/index.d.ts +2 -2
- package/dist/server/main.cjs +34 -40
- package/dist/server/module.js +33 -39
- package/package.json +4 -4
package/dist/client/main.cjs
CHANGED
|
@@ -13,8 +13,8 @@ $parcel$export(module.exports, "fetchDepictRecommendations", () => $bc91d938b8c6
|
|
|
13
13
|
$parcel$export(module.exports, "QuickLinks", () => $48567ac5b39bac56$export$de035477d6fef996);
|
|
14
14
|
$parcel$export(module.exports, "BreadCrumbs", () => $48567ac5b39bac56$export$5b7c3ce0ebe51f86);
|
|
15
15
|
$parcel$export(module.exports, "CategoryTitle", () => $0b23bfd073d9a4e8$export$b91cec6bdc6b32a1);
|
|
16
|
-
$parcel$export(module.exports, "embedded_num_products", () => $
|
|
17
|
-
$parcel$export(module.exports, "get_categories", () => $
|
|
16
|
+
$parcel$export(module.exports, "embedded_num_products", () => $85b747260aa175c9$export$824dde41348efed1);
|
|
17
|
+
$parcel$export(module.exports, "get_categories", () => $63b10c9f461e0ef6$export$643598a327b5833e);
|
|
18
18
|
$parcel$export(module.exports, "DepictCategory", () => $48567ac5b39bac56$export$f34314aa9505732e);
|
|
19
19
|
$parcel$export(module.exports, "CategoryPage", () => $48567ac5b39bac56$export$e2bf8ce7779e827e);
|
|
20
20
|
$parcel$export(module.exports, "DepictSearch", () => $2c61e4cd8229c49a$export$ac6237957a15b3f0);
|
|
@@ -43,7 +43,7 @@ $parcel$export(module.exports, "defaultGridSpacing", () => $a3280f0aad997933$exp
|
|
|
43
43
|
$parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$export$c3834fa86c616831);
|
|
44
44
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
45
45
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
46
|
-
/*! Depict.ai search and product listing SDK */ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.2.
|
|
46
|
+
/*! Depict.ai search and product listing SDK */ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.2.2";
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
@@ -331,23 +331,10 @@ class $e1d6c0f3d89d531c$export$e015ed2f2950f2e3 {
|
|
|
331
331
|
let resolve_in_progress;
|
|
332
332
|
cache_obj.in_progress_[body] = new Promise((r)=>resolve_in_progress = r);
|
|
333
333
|
try {
|
|
334
|
-
|
|
334
|
+
const api_response = await (0, $57o7A$depictaiutilishared.fetch_retry)((0, $57o7A$depictaiutilishared.add_version_query_params)(endpoint1), {
|
|
335
335
|
method: "POST",
|
|
336
336
|
body: body
|
|
337
337
|
});
|
|
338
|
-
if ("query_id" in request && request.type === "collection") // FIXME: Remove. Backwards compatibility layer
|
|
339
|
-
// This will retry the request without the collection type if the first request fails
|
|
340
|
-
{
|
|
341
|
-
if (!api_response || api_response?.status === 404) {
|
|
342
|
-
(0, $57o7A$depictaiutilishared.dlog)("Fallback request for collections due to failure");
|
|
343
|
-
const fallback_body = JSON.parse(body);
|
|
344
|
-
delete fallback_body.type;
|
|
345
|
-
api_response = await (0, $57o7A$depictaiutilishared.fetch_retry)((0, $57o7A$depictaiutilishared.add_version_query_params)(endpoint1), {
|
|
346
|
-
method: "POST",
|
|
347
|
-
body: JSON.stringify(fallback_body)
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
338
|
return_successfully: {
|
|
352
339
|
if (!api_response || api_response.status !== 200) break return_successfully;
|
|
353
340
|
let result;
|
|
@@ -2266,10 +2253,10 @@ function $c1dc1554c1b94233$export$430444115f70a734({ selected_filters_: selected
|
|
|
2266
2253
|
}), _el$10, _co$2);
|
|
2267
2254
|
(0, $57o7A$solidjsweb.effect)(()=>_el$2.classList.toggle("count-0", !!(count() === 0)));
|
|
2268
2255
|
(0, $57o7A$solidjsweb.effect)(()=>_el$4.checked = (0, $57o7A$solidjs.createMemo)(()=>{
|
|
2256
|
+
const v = value();
|
|
2269
2257
|
const data = existing_filter()?.data;
|
|
2270
|
-
if (data ===
|
|
2271
|
-
|
|
2272
|
-
return false;
|
|
2258
|
+
if (data === v) return true;
|
|
2259
|
+
return Array.isArray(data) && data.every((item, index)=>item === v[index]);
|
|
2273
2260
|
})());
|
|
2274
2261
|
return _el$2;
|
|
2275
2262
|
})();
|
|
@@ -5300,9 +5287,9 @@ let $0b6e2070a98de347$export$44dad306455dddf;
|
|
|
5300
5287
|
|
|
5301
5288
|
|
|
5302
5289
|
|
|
5303
|
-
function $
|
|
5290
|
+
function $ef972f5c10b1c5b4$export$3945d6db2dfd3d12({ crumb_data_: crumb_data_ , query_id_: query_id_ , i18n_: i18n_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , plp_results_: plp_results_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ }) {
|
|
5304
5291
|
// If we just got opened in a new tab, clear filters instantly and remove the flag
|
|
5305
|
-
$
|
|
5292
|
+
$ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
|
|
5306
5293
|
plp_results_: plp_results_,
|
|
5307
5294
|
local_filter_cache_: local_filter_cache_,
|
|
5308
5295
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -5346,7 +5333,7 @@ function $cc7c480116d2eba0$export$3945d6db2dfd3d12({ crumb_data_: crumb_data_ ,
|
|
|
5346
5333
|
if (!allow_filter_clearing) allow_filter_clearing = true;
|
|
5347
5334
|
})));
|
|
5348
5335
|
}
|
|
5349
|
-
function $
|
|
5336
|
+
function $ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_flag({ plp_results_: plp_results_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , i18n_: i18n_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ , sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_] }) {
|
|
5350
5337
|
const tracking_function_for_plp_results = (0, $57o7A$solidjs.createReaction)(()=>{
|
|
5351
5338
|
// On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
|
|
5352
5339
|
if (!(0, $57o7A$solidjs.untrack)(get_sideways_filter_clearing_flag_)) return;
|
|
@@ -5376,8 +5363,8 @@ function $cc7c480116d2eba0$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
5376
5363
|
|
|
5377
5364
|
|
|
5378
5365
|
|
|
5379
|
-
const $
|
|
5380
|
-
function $
|
|
5366
|
+
const $839b3341523d31a2$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="statement">No category ID specified, this is probably unintentional. Make sure to create (and insert) the CategoryPage *after* you have specified a category ID in your Depict Provider.</div>`, 2), $839b3341523d31a2$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="buttons"><button class="ok major"></button></div>`, 4);
|
|
5367
|
+
function $839b3341523d31a2$export$d4fc5c0e68a52116(el, query_id_, i18n_) {
|
|
5381
5368
|
if (!(0, $57o7A$depictaiutilishared.is_debug)) return; // Just to make sure we don't show this in production
|
|
5382
5369
|
const owner = (0, $57o7A$solidjs.getOwner)();
|
|
5383
5370
|
const disconnect = (0, $57o7A$depictaiutilishared.observer).onexists(el, ({ element: element })=>(0, $57o7A$solidjs.runWithOwner)(owner, ()=>(0, $57o7A$solidjs.createEffect)(()=>{
|
|
@@ -5392,9 +5379,9 @@ function $cafad5eca9f09cb5$export$d4fc5c0e68a52116(el, query_id_, i18n_) {
|
|
|
5392
5379
|
background: "#ffb830"
|
|
5393
5380
|
},
|
|
5394
5381
|
children: [
|
|
5395
|
-
(0, $57o7A$solidjsweb.getNextElement)($
|
|
5382
|
+
(0, $57o7A$solidjsweb.getNextElement)($839b3341523d31a2$var$_tmpl$),
|
|
5396
5383
|
(()=>{
|
|
5397
|
-
const _el$2 = (0, $57o7A$solidjsweb.getNextElement)($
|
|
5384
|
+
const _el$2 = (0, $57o7A$solidjsweb.getNextElement)($839b3341523d31a2$var$_tmpl$2), _el$3 = _el$2.firstChild;
|
|
5398
5385
|
_el$3.$$click = ()=>close_toast_() /* We have to wait for close_toast_ to get defined after the call to show_toast */ ;
|
|
5399
5386
|
(0, $57o7A$solidjsweb.insert)(_el$3, ()=>i18n_.ok_());
|
|
5400
5387
|
(0, $57o7A$solidjsweb.runHydrationEvents)();
|
|
@@ -5413,6 +5400,9 @@ function $cafad5eca9f09cb5$export$d4fc5c0e68a52116(el, query_id_, i18n_) {
|
|
|
5413
5400
|
|
|
5414
5401
|
|
|
5415
5402
|
|
|
5403
|
+
const $6b502b1b2155a0bc$export$5c28802497c8a83c = /*@__PURE__*/ Symbol("category_title_type");
|
|
5404
|
+
|
|
5405
|
+
|
|
5416
5406
|
const $840d88a04b2d22a7$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="product-count"><!#><!/> <!#><!/></div>`, 6), $840d88a04b2d22a7$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div></div>`, 2), $840d88a04b2d22a7$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="filter-results-for-one-row"><!#><!/><!#><!/></div>`, 6), $840d88a04b2d22a7$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="depict plp category"><div class="listing-page"><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/></div><!#><!/><!#><!/></div>`, 20);
|
|
5417
5407
|
function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ , query_id_: query_id_ , listing_type_: listing_type_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , category_filters_open_: category_filters_open_ , category_sorting_open_: category_sorting_open_ , expanded_filters_: expanded_filters_ , selected_filters_: selected_filters_ , get_quicklinks_accessor_: get_quicklinks_accessor_ , i18n_: incoming_i18n , get_breadcrumb_accessor_: get_breadcrumb_accessor_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , local_filter_cache_: local_filter_cache_ , tenant_: tenant_ , market_: market_ , router_: router_ , show_quicklinks_: show_quicklinks_ , category_title_: category_title_ , show_breadcrumbs_: show_breadcrumbs_ , layout_options_: layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , product_card_template_: product_card_template_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ }) {
|
|
5418
5408
|
let results_for;
|
|
@@ -5478,7 +5468,8 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
5478
5468
|
const [results_filters, set_results_filters] = (0, $57o7A$solidjs.createSignal)();
|
|
5479
5469
|
const [observed_results_filters_elements, set_observed_results_filters_elements_] = (0, $57o7A$solidjs.createSignal)();
|
|
5480
5470
|
const is_slim_ = (0, $b54e6192d0caa293$export$d9f36cf74e24d595)("(max-width:600px)");
|
|
5481
|
-
|
|
5471
|
+
// @ts-ignore - there's no type error here when writing the code, but parcel can't generate types that include the symbol, so we need to suppress the error that creates in our pipelines
|
|
5472
|
+
const category_title_type = category_title_[0, $6b502b1b2155a0bc$export$5c28802497c8a83c];
|
|
5482
5473
|
const extra_sort_and_filter_args_ = {};
|
|
5483
5474
|
const make_product_count_ = ()=>(()=>{
|
|
5484
5475
|
const _el$ = (0, $57o7A$solidjsweb.getNextElement)($840d88a04b2d22a7$var$_tmpl$), _el$3 = _el$.firstChild, [_el$4, _co$] = (0, $57o7A$solidjsweb.getNextMarker)(_el$3.nextSibling), _el$2 = _el$4.nextSibling, _el$5 = _el$2.nextSibling, [_el$6, _co$2] = (0, $57o7A$solidjsweb.getNextMarker)(_el$5.nextSibling);
|
|
@@ -5584,7 +5575,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
5584
5575
|
selected_filters_: selected_filters_,
|
|
5585
5576
|
available_filters_: available_filters_
|
|
5586
5577
|
});
|
|
5587
|
-
(0, $
|
|
5578
|
+
(0, $ef972f5c10b1c5b4$export$3945d6db2dfd3d12)({
|
|
5588
5579
|
query_id_: query_id_,
|
|
5589
5580
|
crumb_data_: crumb_data_,
|
|
5590
5581
|
i18n_: i18n_,
|
|
@@ -5600,7 +5591,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
5600
5591
|
(0, $57o7A$solidjsweb.isServer) ? "<!-- Category page based on Depict SDK -->" : document.createComment("Category page based on Depict SDK"),
|
|
5601
5592
|
(()=>{
|
|
5602
5593
|
const _el$13 = (0, $57o7A$solidjsweb.getNextElement)($840d88a04b2d22a7$var$_tmpl$4), _el$14 = _el$13.firstChild, _el$15 = _el$14.firstChild, [_el$16, _co$5] = (0, $57o7A$solidjsweb.getNextMarker)(_el$15.nextSibling), _el$17 = _el$16.nextSibling, [_el$18, _co$6] = (0, $57o7A$solidjsweb.getNextMarker)(_el$17.nextSibling), _el$19 = _el$18.nextSibling, [_el$20, _co$7] = (0, $57o7A$solidjsweb.getNextMarker)(_el$19.nextSibling), _el$21 = _el$20.nextSibling, [_el$22, _co$8] = (0, $57o7A$solidjsweb.getNextMarker)(_el$21.nextSibling), _el$23 = _el$22.nextSibling, [_el$24, _co$9] = (0, $57o7A$solidjsweb.getNextMarker)(_el$23.nextSibling), _el$25 = _el$24.nextSibling, [_el$26, _co$10] = (0, $57o7A$solidjsweb.getNextMarker)(_el$25.nextSibling), _el$27 = _el$14.nextSibling, [_el$28, _co$11] = (0, $57o7A$solidjsweb.getNextMarker)(_el$27.nextSibling), _el$29 = _el$28.nextSibling, [_el$30, _co$12] = (0, $57o7A$solidjsweb.getNextMarker)(_el$29.nextSibling);
|
|
5603
|
-
(0, $57o7A$solidjsweb.use)((el)=>process.env.NODE_ENV === "development" && (0, $
|
|
5594
|
+
(0, $57o7A$solidjsweb.use)((el)=>process.env.NODE_ENV === "development" && (0, $839b3341523d31a2$export$d4fc5c0e68a52116)(el, query_id_, i18n_), _el$13);
|
|
5604
5595
|
(0, $57o7A$solidjsweb.insert)(_el$14, (0, $57o7A$solidjsweb.createComponent)((0, $57o7A$solidjs.Show), {
|
|
5605
5596
|
when: show_breadcrumbs_,
|
|
5606
5597
|
get children () {
|
|
@@ -6216,6 +6207,7 @@ function $48567ac5b39bac56$var$get_shared_properties(depict_category) {
|
|
|
6216
6207
|
|
|
6217
6208
|
|
|
6218
6209
|
|
|
6210
|
+
|
|
6219
6211
|
const $0b23bfd073d9a4e8$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="category-title"><h1 class="title"></h1><span class="explanation"> — <!#><!/></span></div>`, 8);
|
|
6220
6212
|
const $0b23bfd073d9a4e8$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
6221
6213
|
const actual_function = ({ category_title_: category_title_ , product_count_: product_count_ })=>{
|
|
@@ -6229,7 +6221,8 @@ const $0b23bfd073d9a4e8$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
|
6229
6221
|
return _el$;
|
|
6230
6222
|
})();
|
|
6231
6223
|
};
|
|
6232
|
-
|
|
6224
|
+
// This is wrong but parcel can't build correctly, it says unexpected undefined
|
|
6225
|
+
actual_function[0, $6b502b1b2155a0bc$export$5c28802497c8a83c] = "simple";
|
|
6233
6226
|
return actual_function;
|
|
6234
6227
|
})();
|
|
6235
6228
|
|
|
@@ -6240,8 +6233,9 @@ const $0b23bfd073d9a4e8$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
|
6240
6233
|
|
|
6241
6234
|
|
|
6242
6235
|
|
|
6243
|
-
|
|
6244
|
-
const $
|
|
6236
|
+
|
|
6237
|
+
const $85b747260aa175c9$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div class="sort-and-filter-buttons fake" aria-hidden="true" style="position:absolute;z-index:-1;pointer-events:none;opacity:0"><div class="outer"><div class="inner"><!#><!/><!#><!/><!#><!/></div></div></div>`, 12);
|
|
6238
|
+
const $85b747260aa175c9$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
6245
6239
|
const actual_function = ({ make_product_count_: make_product_count_ , set_observed_results_filters_elements_: set_observed_results_filters_elements_ , is_slim_: is_slim_ , sort_and_filter_element_: sort_and_filter_element_ , extra_sort_and_filter_args_: extra_sort_and_filter_args_ })=>{
|
|
6246
6240
|
// this does two things: make the sorting and filters button the same width and move the number of products out of the SortAndFilter middle_elements_ if it doesn't fit
|
|
6247
6241
|
let extra_sort_button_;
|
|
@@ -6263,7 +6257,7 @@ const $93e94e7b0aa8ca88$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
|
6263
6257
|
const on_filters_constructed_ = ()=>{
|
|
6264
6258
|
const active_sort_and_filter_element = (0, $57o7A$solidjs.untrack)(sort_and_filter_element_); // We assume that this doesn't change which it currently doesn't after the filters have been constructed
|
|
6265
6259
|
const extra_sort_and_filter_container_ = (()=>{
|
|
6266
|
-
const _el$ = (0, $57o7A$solidjsweb.getNextElement)($
|
|
6260
|
+
const _el$ = (0, $57o7A$solidjsweb.getNextElement)($85b747260aa175c9$var$_tmpl$), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, [_el$5, _co$] = (0, $57o7A$solidjsweb.getNextMarker)(_el$4.nextSibling), _el$6 = _el$5.nextSibling, [_el$7, _co$2] = (0, $57o7A$solidjsweb.getNextMarker)(_el$6.nextSibling), _el$8 = _el$7.nextSibling, [_el$9, _co$3] = (0, $57o7A$solidjsweb.getNextMarker)(_el$8.nextSibling);
|
|
6267
6261
|
(0, $57o7A$solidjsweb.insert)(_el$3, extra_filter_button_, _el$5, _co$);
|
|
6268
6262
|
(0, $57o7A$solidjsweb.insert)(_el$3, extra_count, _el$7, _co$2);
|
|
6269
6263
|
(0, $57o7A$solidjsweb.insert)(_el$3, extra_sort_button_, _el$9, _co$3);
|
|
@@ -6322,15 +6316,15 @@ const $93e94e7b0aa8ca88$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
|
6322
6316
|
on_filters_constructed_: on_filters_constructed_
|
|
6323
6317
|
};
|
|
6324
6318
|
};
|
|
6325
|
-
actual_function[
|
|
6319
|
+
actual_function[0, $6b502b1b2155a0bc$export$5c28802497c8a83c] = "interactive";
|
|
6326
6320
|
return actual_function;
|
|
6327
6321
|
})();
|
|
6328
6322
|
|
|
6329
6323
|
|
|
6330
6324
|
|
|
6331
|
-
const $
|
|
6332
|
-
const $
|
|
6333
|
-
async function $
|
|
6325
|
+
const $63b10c9f461e0ef6$var$TEN_MINUTES = 600000;
|
|
6326
|
+
const $63b10c9f461e0ef6$var$TWENTY_FOUR_HOURS = 86400000;
|
|
6327
|
+
async function $63b10c9f461e0ef6$export$643598a327b5833e(tenant, market, type) {
|
|
6334
6328
|
let localstorage_value;
|
|
6335
6329
|
const localstorage_key = `depict_${tenant}_${type ?? "categories"}_` + market;
|
|
6336
6330
|
try {
|
|
@@ -6344,11 +6338,11 @@ async function $7b4bc889571cc67b$export$643598a327b5833e(tenant, market, type) {
|
|
|
6344
6338
|
const stored_queries = localstorage_value?.queries;
|
|
6345
6339
|
if (Array.isArray(stored_queries) && typeof updated === "number") {
|
|
6346
6340
|
const age = now - updated;
|
|
6347
|
-
if (stored_queries.length && age < $
|
|
6341
|
+
if (stored_queries.length && age < $63b10c9f461e0ef6$var$TEN_MINUTES) // if younger than 10 minutes and probably valid data, just return stored value
|
|
6348
6342
|
return stored_queries;
|
|
6349
|
-
else if (age < $
|
|
6343
|
+
else if (age < $63b10c9f461e0ef6$var$TWENTY_FOUR_HOURS) {
|
|
6350
6344
|
// if younger than a day, return stored value but still trigger re-fetch, so we have fresh data next page load (stale data this one but never a delay)
|
|
6351
|
-
$
|
|
6345
|
+
$63b10c9f461e0ef6$var$fetch_and_store_categories(tenant, market, localstorage_key, type).catch((e)=>(0, $57o7A$depictaiutilishared.report)([
|
|
6352
6346
|
e,
|
|
6353
6347
|
"couldn't fetch categories"
|
|
6354
6348
|
], "warning"));
|
|
@@ -6356,10 +6350,10 @@ async function $7b4bc889571cc67b$export$643598a327b5833e(tenant, market, type) {
|
|
|
6356
6350
|
}
|
|
6357
6351
|
// else: we are older and just fetch, store and return new queries
|
|
6358
6352
|
}
|
|
6359
|
-
return await $
|
|
6353
|
+
return await $63b10c9f461e0ef6$var$fetch_and_store_categories(tenant, market, localstorage_key, type);
|
|
6360
6354
|
}
|
|
6361
|
-
async function $
|
|
6362
|
-
const new_categories = await $
|
|
6355
|
+
async function $63b10c9f461e0ef6$var$fetch_and_store_categories(tenant, market, localstorage_key, type) {
|
|
6356
|
+
const new_categories = await $63b10c9f461e0ef6$var$download_categories(tenant, market, type);
|
|
6363
6357
|
try {
|
|
6364
6358
|
localStorage[localstorage_key] = JSON.stringify({
|
|
6365
6359
|
updated: +new Date(),
|
|
@@ -6373,7 +6367,7 @@ async function $7b4bc889571cc67b$var$fetch_and_store_categories(tenant, market,
|
|
|
6373
6367
|
}
|
|
6374
6368
|
return new_categories;
|
|
6375
6369
|
}
|
|
6376
|
-
async function $
|
|
6370
|
+
async function $63b10c9f461e0ef6$var$download_categories(tenant, market, type) {
|
|
6377
6371
|
const fetched = await (0, $57o7A$depictaiutilishared.fetch_retry)((0, $57o7A$depictaiutilishared.base_url) + "/v2/product-listing/queries", {
|
|
6378
6372
|
method: "POST",
|
|
6379
6373
|
body: JSON.stringify({
|
package/dist/client/module.js
CHANGED
|
@@ -2,7 +2,7 @@ import {add_to_version_info as $gco9i$add_to_version_info, observer as $gco9i$ob
|
|
|
2
2
|
import {createRoot as $gco9i$createRoot, createSignal as $gco9i$createSignal, getOwner as $gco9i$getOwner, runWithOwner as $gco9i$runWithOwner, onCleanup as $gco9i$onCleanup, createComputed as $gco9i$createComputed, createRenderEffect as $gco9i$createRenderEffect, createEffect as $gco9i$createEffect, untrack as $gco9i$untrack, batch as $gco9i$batch, createResource as $gco9i$createResource, createMemo as $gco9i$createMemo, Show as $gco9i$Show, createReaction as $gco9i$createReaction, Suspense as $gco9i$Suspense, on as $gco9i$on, ErrorBoundary as $gco9i$ErrorBoundary, For as $gco9i$For, Index as $gco9i$Index} from "solid-js";
|
|
3
3
|
import {template as $gco9i$template, getNextElement as $gco9i$getNextElement, spread as $gco9i$spread, mergeProps as $gco9i$mergeProps, runHydrationEvents as $gco9i$runHydrationEvents, effect as $gco9i$effect, setAttribute as $gco9i$setAttribute, insert as $gco9i$insert, isServer as $gco9i$isServer, createComponent as $gco9i$createComponent, getNextMarker as $gco9i$getNextMarker, use as $gco9i$use, memo as $gco9i$memo, addEventListener as $gco9i$addEventListener, delegateEvents as $gco9i$delegateEvents, classList as $gco9i$classList, style as $gco9i$style, className as $gco9i$className, Dynamic as $gco9i$Dynamic} from "solid-js/web";
|
|
4
4
|
|
|
5
|
-
/*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.2.
|
|
5
|
+
/*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.2.2";
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -290,23 +290,10 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
|
|
|
290
290
|
let resolve_in_progress;
|
|
291
291
|
cache_obj.in_progress_[body] = new Promise((r)=>resolve_in_progress = r);
|
|
292
292
|
try {
|
|
293
|
-
|
|
293
|
+
const api_response = await (0, $gco9i$fetch_retry)((0, $gco9i$add_version_query_params)(endpoint1), {
|
|
294
294
|
method: "POST",
|
|
295
295
|
body: body
|
|
296
296
|
});
|
|
297
|
-
if ("query_id" in request && request.type === "collection") // FIXME: Remove. Backwards compatibility layer
|
|
298
|
-
// This will retry the request without the collection type if the first request fails
|
|
299
|
-
{
|
|
300
|
-
if (!api_response || api_response?.status === 404) {
|
|
301
|
-
(0, $gco9i$dlog)("Fallback request for collections due to failure");
|
|
302
|
-
const fallback_body = JSON.parse(body);
|
|
303
|
-
delete fallback_body.type;
|
|
304
|
-
api_response = await (0, $gco9i$fetch_retry)((0, $gco9i$add_version_query_params)(endpoint1), {
|
|
305
|
-
method: "POST",
|
|
306
|
-
body: JSON.stringify(fallback_body)
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
297
|
return_successfully: {
|
|
311
298
|
if (!api_response || api_response.status !== 200) break return_successfully;
|
|
312
299
|
let result;
|
|
@@ -2225,10 +2212,10 @@ function $eb8d9bf3b5700c26$export$430444115f70a734({ selected_filters_: selected
|
|
|
2225
2212
|
}), _el$10, _co$2);
|
|
2226
2213
|
(0, $gco9i$effect)(()=>_el$2.classList.toggle("count-0", !!(count() === 0)));
|
|
2227
2214
|
(0, $gco9i$effect)(()=>_el$4.checked = (0, $gco9i$createMemo)(()=>{
|
|
2215
|
+
const v = value();
|
|
2228
2216
|
const data = existing_filter()?.data;
|
|
2229
|
-
if (data ===
|
|
2230
|
-
|
|
2231
|
-
return false;
|
|
2217
|
+
if (data === v) return true;
|
|
2218
|
+
return Array.isArray(data) && data.every((item, index)=>item === v[index]);
|
|
2232
2219
|
})());
|
|
2233
2220
|
return _el$2;
|
|
2234
2221
|
})();
|
|
@@ -5259,9 +5246,9 @@ let $f86ba724282f6690$export$44dad306455dddf;
|
|
|
5259
5246
|
|
|
5260
5247
|
|
|
5261
5248
|
|
|
5262
|
-
function $
|
|
5249
|
+
function $e7fce80abe608e01$export$3945d6db2dfd3d12({ crumb_data_: crumb_data_ , query_id_: query_id_ , i18n_: i18n_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , plp_results_: plp_results_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ }) {
|
|
5263
5250
|
// If we just got opened in a new tab, clear filters instantly and remove the flag
|
|
5264
|
-
$
|
|
5251
|
+
$e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
|
|
5265
5252
|
plp_results_: plp_results_,
|
|
5266
5253
|
local_filter_cache_: local_filter_cache_,
|
|
5267
5254
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -5305,7 +5292,7 @@ function $a1c4da51ff91dd01$export$3945d6db2dfd3d12({ crumb_data_: crumb_data_ ,
|
|
|
5305
5292
|
if (!allow_filter_clearing) allow_filter_clearing = true;
|
|
5306
5293
|
})));
|
|
5307
5294
|
}
|
|
5308
|
-
function $
|
|
5295
|
+
function $e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_flag({ plp_results_: plp_results_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , i18n_: i18n_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ , sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_] }) {
|
|
5309
5296
|
const tracking_function_for_plp_results = (0, $gco9i$createReaction)(()=>{
|
|
5310
5297
|
// On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
|
|
5311
5298
|
if (!(0, $gco9i$untrack)(get_sideways_filter_clearing_flag_)) return;
|
|
@@ -5335,8 +5322,8 @@ function $a1c4da51ff91dd01$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
5335
5322
|
|
|
5336
5323
|
|
|
5337
5324
|
|
|
5338
|
-
const $
|
|
5339
|
-
function $
|
|
5325
|
+
const $9f5cb586f34c14e6$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div class="statement">No category ID specified, this is probably unintentional. Make sure to create (and insert) the CategoryPage *after* you have specified a category ID in your Depict Provider.</div>`, 2), $9f5cb586f34c14e6$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div class="buttons"><button class="ok major"></button></div>`, 4);
|
|
5326
|
+
function $9f5cb586f34c14e6$export$d4fc5c0e68a52116(el, query_id_, i18n_) {
|
|
5340
5327
|
if (!(0, $gco9i$is_debug)) return; // Just to make sure we don't show this in production
|
|
5341
5328
|
const owner = (0, $gco9i$getOwner)();
|
|
5342
5329
|
const disconnect = (0, $gco9i$observer).onexists(el, ({ element: element })=>(0, $gco9i$runWithOwner)(owner, ()=>(0, $gco9i$createEffect)(()=>{
|
|
@@ -5351,9 +5338,9 @@ function $eb9ba2e49ab3dcc2$export$d4fc5c0e68a52116(el, query_id_, i18n_) {
|
|
|
5351
5338
|
background: "#ffb830"
|
|
5352
5339
|
},
|
|
5353
5340
|
children: [
|
|
5354
|
-
(0, $gco9i$getNextElement)($
|
|
5341
|
+
(0, $gco9i$getNextElement)($9f5cb586f34c14e6$var$_tmpl$),
|
|
5355
5342
|
(()=>{
|
|
5356
|
-
const _el$2 = (0, $gco9i$getNextElement)($
|
|
5343
|
+
const _el$2 = (0, $gco9i$getNextElement)($9f5cb586f34c14e6$var$_tmpl$2), _el$3 = _el$2.firstChild;
|
|
5357
5344
|
_el$3.$$click = ()=>close_toast_() /* We have to wait for close_toast_ to get defined after the call to show_toast */ ;
|
|
5358
5345
|
(0, $gco9i$insert)(_el$3, ()=>i18n_.ok_());
|
|
5359
5346
|
(0, $gco9i$runHydrationEvents)();
|
|
@@ -5372,6 +5359,9 @@ function $eb9ba2e49ab3dcc2$export$d4fc5c0e68a52116(el, query_id_, i18n_) {
|
|
|
5372
5359
|
|
|
5373
5360
|
|
|
5374
5361
|
|
|
5362
|
+
const $4fb3a1cf207a7d5c$export$5c28802497c8a83c = /*@__PURE__*/ Symbol("category_title_type");
|
|
5363
|
+
|
|
5364
|
+
|
|
5375
5365
|
const $df5d81d0fe61ff21$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div class="product-count"><!#><!/> <!#><!/></div>`, 6), $df5d81d0fe61ff21$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div></div>`, 2), $df5d81d0fe61ff21$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div class="filter-results-for-one-row"><!#><!/><!#><!/></div>`, 6), $df5d81d0fe61ff21$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div class="depict plp category"><div class="listing-page"><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/><!#><!/></div><!#><!/><!#><!/></div>`, 20);
|
|
5376
5366
|
function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ , query_id_: query_id_ , listing_type_: listing_type_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , category_filters_open_: category_filters_open_ , category_sorting_open_: category_sorting_open_ , expanded_filters_: expanded_filters_ , selected_filters_: selected_filters_ , get_quicklinks_accessor_: get_quicklinks_accessor_ , i18n_: incoming_i18n , get_breadcrumb_accessor_: get_breadcrumb_accessor_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , local_filter_cache_: local_filter_cache_ , tenant_: tenant_ , market_: market_ , router_: router_ , show_quicklinks_: show_quicklinks_ , category_title_: category_title_ , show_breadcrumbs_: show_breadcrumbs_ , layout_options_: layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , product_card_template_: product_card_template_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ }) {
|
|
5377
5367
|
let results_for;
|
|
@@ -5437,7 +5427,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
5437
5427
|
const [results_filters, set_results_filters] = (0, $gco9i$createSignal)();
|
|
5438
5428
|
const [observed_results_filters_elements, set_observed_results_filters_elements_] = (0, $gco9i$createSignal)();
|
|
5439
5429
|
const is_slim_ = (0, $dc9262ef6f786812$export$d9f36cf74e24d595)("(max-width:600px)");
|
|
5440
|
-
|
|
5430
|
+
// @ts-ignore - there's no type error here when writing the code, but parcel can't generate types that include the symbol, so we need to suppress the error that creates in our pipelines
|
|
5431
|
+
const category_title_type = category_title_[0, $4fb3a1cf207a7d5c$export$5c28802497c8a83c];
|
|
5441
5432
|
const extra_sort_and_filter_args_ = {};
|
|
5442
5433
|
const make_product_count_ = ()=>(()=>{
|
|
5443
5434
|
const _el$ = (0, $gco9i$getNextElement)($df5d81d0fe61ff21$var$_tmpl$), _el$3 = _el$.firstChild, [_el$4, _co$] = (0, $gco9i$getNextMarker)(_el$3.nextSibling), _el$2 = _el$4.nextSibling, _el$5 = _el$2.nextSibling, [_el$6, _co$2] = (0, $gco9i$getNextMarker)(_el$5.nextSibling);
|
|
@@ -5543,7 +5534,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
5543
5534
|
selected_filters_: selected_filters_,
|
|
5544
5535
|
available_filters_: available_filters_
|
|
5545
5536
|
});
|
|
5546
|
-
(0, $
|
|
5537
|
+
(0, $e7fce80abe608e01$export$3945d6db2dfd3d12)({
|
|
5547
5538
|
query_id_: query_id_,
|
|
5548
5539
|
crumb_data_: crumb_data_,
|
|
5549
5540
|
i18n_: i18n_,
|
|
@@ -5559,7 +5550,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
5559
5550
|
(0, $gco9i$isServer) ? "<!-- Category page based on Depict SDK -->" : document.createComment("Category page based on Depict SDK"),
|
|
5560
5551
|
(()=>{
|
|
5561
5552
|
const _el$13 = (0, $gco9i$getNextElement)($df5d81d0fe61ff21$var$_tmpl$4), _el$14 = _el$13.firstChild, _el$15 = _el$14.firstChild, [_el$16, _co$5] = (0, $gco9i$getNextMarker)(_el$15.nextSibling), _el$17 = _el$16.nextSibling, [_el$18, _co$6] = (0, $gco9i$getNextMarker)(_el$17.nextSibling), _el$19 = _el$18.nextSibling, [_el$20, _co$7] = (0, $gco9i$getNextMarker)(_el$19.nextSibling), _el$21 = _el$20.nextSibling, [_el$22, _co$8] = (0, $gco9i$getNextMarker)(_el$21.nextSibling), _el$23 = _el$22.nextSibling, [_el$24, _co$9] = (0, $gco9i$getNextMarker)(_el$23.nextSibling), _el$25 = _el$24.nextSibling, [_el$26, _co$10] = (0, $gco9i$getNextMarker)(_el$25.nextSibling), _el$27 = _el$14.nextSibling, [_el$28, _co$11] = (0, $gco9i$getNextMarker)(_el$27.nextSibling), _el$29 = _el$28.nextSibling, [_el$30, _co$12] = (0, $gco9i$getNextMarker)(_el$29.nextSibling);
|
|
5562
|
-
(0, $gco9i$use)((el)=>process.env.NODE_ENV === "development" && (0, $
|
|
5553
|
+
(0, $gco9i$use)((el)=>process.env.NODE_ENV === "development" && (0, $9f5cb586f34c14e6$export$d4fc5c0e68a52116)(el, query_id_, i18n_), _el$13);
|
|
5563
5554
|
(0, $gco9i$insert)(_el$14, (0, $gco9i$createComponent)((0, $gco9i$Show), {
|
|
5564
5555
|
when: show_breadcrumbs_,
|
|
5565
5556
|
get children () {
|
|
@@ -6175,6 +6166,7 @@ function $961b5c64bef4662f$var$get_shared_properties(depict_category) {
|
|
|
6175
6166
|
|
|
6176
6167
|
|
|
6177
6168
|
|
|
6169
|
+
|
|
6178
6170
|
const $e4615ecd1849548f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div class="category-title"><h1 class="title"></h1><span class="explanation"> — <!#><!/></span></div>`, 8);
|
|
6179
6171
|
const $e4615ecd1849548f$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
6180
6172
|
const actual_function = ({ category_title_: category_title_ , product_count_: product_count_ })=>{
|
|
@@ -6188,7 +6180,8 @@ const $e4615ecd1849548f$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
|
6188
6180
|
return _el$;
|
|
6189
6181
|
})();
|
|
6190
6182
|
};
|
|
6191
|
-
|
|
6183
|
+
// This is wrong but parcel can't build correctly, it says unexpected undefined
|
|
6184
|
+
actual_function[0, $4fb3a1cf207a7d5c$export$5c28802497c8a83c] = "simple";
|
|
6192
6185
|
return actual_function;
|
|
6193
6186
|
})();
|
|
6194
6187
|
|
|
@@ -6199,8 +6192,9 @@ const $e4615ecd1849548f$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
|
6199
6192
|
|
|
6200
6193
|
|
|
6201
6194
|
|
|
6202
|
-
|
|
6203
|
-
const $
|
|
6195
|
+
|
|
6196
|
+
const $a6e23a834336fc19$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div class="sort-and-filter-buttons fake" aria-hidden="true" style="position:absolute;z-index:-1;pointer-events:none;opacity:0"><div class="outer"><div class="inner"><!#><!/><!#><!/><!#><!/></div></div></div>`, 12);
|
|
6197
|
+
const $a6e23a834336fc19$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
6204
6198
|
const actual_function = ({ make_product_count_: make_product_count_ , set_observed_results_filters_elements_: set_observed_results_filters_elements_ , is_slim_: is_slim_ , sort_and_filter_element_: sort_and_filter_element_ , extra_sort_and_filter_args_: extra_sort_and_filter_args_ })=>{
|
|
6205
6199
|
// this does two things: make the sorting and filters button the same width and move the number of products out of the SortAndFilter middle_elements_ if it doesn't fit
|
|
6206
6200
|
let extra_sort_button_;
|
|
@@ -6222,7 +6216,7 @@ const $a79d86d64fb64e8e$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
|
6222
6216
|
const on_filters_constructed_ = ()=>{
|
|
6223
6217
|
const active_sort_and_filter_element = (0, $gco9i$untrack)(sort_and_filter_element_); // We assume that this doesn't change which it currently doesn't after the filters have been constructed
|
|
6224
6218
|
const extra_sort_and_filter_container_ = (()=>{
|
|
6225
|
-
const _el$ = (0, $gco9i$getNextElement)($
|
|
6219
|
+
const _el$ = (0, $gco9i$getNextElement)($a6e23a834336fc19$var$_tmpl$), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, [_el$5, _co$] = (0, $gco9i$getNextMarker)(_el$4.nextSibling), _el$6 = _el$5.nextSibling, [_el$7, _co$2] = (0, $gco9i$getNextMarker)(_el$6.nextSibling), _el$8 = _el$7.nextSibling, [_el$9, _co$3] = (0, $gco9i$getNextMarker)(_el$8.nextSibling);
|
|
6226
6220
|
(0, $gco9i$insert)(_el$3, extra_filter_button_, _el$5, _co$);
|
|
6227
6221
|
(0, $gco9i$insert)(_el$3, extra_count, _el$7, _co$2);
|
|
6228
6222
|
(0, $gco9i$insert)(_el$3, extra_sort_button_, _el$9, _co$3);
|
|
@@ -6281,15 +6275,15 @@ const $a79d86d64fb64e8e$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
|
6281
6275
|
on_filters_constructed_: on_filters_constructed_
|
|
6282
6276
|
};
|
|
6283
6277
|
};
|
|
6284
|
-
actual_function[
|
|
6278
|
+
actual_function[0, $4fb3a1cf207a7d5c$export$5c28802497c8a83c] = "interactive";
|
|
6285
6279
|
return actual_function;
|
|
6286
6280
|
})();
|
|
6287
6281
|
|
|
6288
6282
|
|
|
6289
6283
|
|
|
6290
|
-
const $
|
|
6291
|
-
const $
|
|
6292
|
-
async function $
|
|
6284
|
+
const $c9312089e8983364$var$TEN_MINUTES = 600000;
|
|
6285
|
+
const $c9312089e8983364$var$TWENTY_FOUR_HOURS = 86400000;
|
|
6286
|
+
async function $c9312089e8983364$export$643598a327b5833e(tenant, market, type) {
|
|
6293
6287
|
let localstorage_value;
|
|
6294
6288
|
const localstorage_key = `depict_${tenant}_${type ?? "categories"}_` + market;
|
|
6295
6289
|
try {
|
|
@@ -6303,11 +6297,11 @@ async function $5c5f95951393e5d1$export$643598a327b5833e(tenant, market, type) {
|
|
|
6303
6297
|
const stored_queries = localstorage_value?.queries;
|
|
6304
6298
|
if (Array.isArray(stored_queries) && typeof updated === "number") {
|
|
6305
6299
|
const age = now - updated;
|
|
6306
|
-
if (stored_queries.length && age < $
|
|
6300
|
+
if (stored_queries.length && age < $c9312089e8983364$var$TEN_MINUTES) // if younger than 10 minutes and probably valid data, just return stored value
|
|
6307
6301
|
return stored_queries;
|
|
6308
|
-
else if (age < $
|
|
6302
|
+
else if (age < $c9312089e8983364$var$TWENTY_FOUR_HOURS) {
|
|
6309
6303
|
// if younger than a day, return stored value but still trigger re-fetch, so we have fresh data next page load (stale data this one but never a delay)
|
|
6310
|
-
$
|
|
6304
|
+
$c9312089e8983364$var$fetch_and_store_categories(tenant, market, localstorage_key, type).catch((e)=>(0, $gco9i$report)([
|
|
6311
6305
|
e,
|
|
6312
6306
|
"couldn't fetch categories"
|
|
6313
6307
|
], "warning"));
|
|
@@ -6315,10 +6309,10 @@ async function $5c5f95951393e5d1$export$643598a327b5833e(tenant, market, type) {
|
|
|
6315
6309
|
}
|
|
6316
6310
|
// else: we are older and just fetch, store and return new queries
|
|
6317
6311
|
}
|
|
6318
|
-
return await $
|
|
6312
|
+
return await $c9312089e8983364$var$fetch_and_store_categories(tenant, market, localstorage_key, type);
|
|
6319
6313
|
}
|
|
6320
|
-
async function $
|
|
6321
|
-
const new_categories = await $
|
|
6314
|
+
async function $c9312089e8983364$var$fetch_and_store_categories(tenant, market, localstorage_key, type) {
|
|
6315
|
+
const new_categories = await $c9312089e8983364$var$download_categories(tenant, market, type);
|
|
6322
6316
|
try {
|
|
6323
6317
|
localStorage[localstorage_key] = JSON.stringify({
|
|
6324
6318
|
updated: +new Date(),
|
|
@@ -6332,7 +6326,7 @@ async function $5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market,
|
|
|
6332
6326
|
}
|
|
6333
6327
|
return new_categories;
|
|
6334
6328
|
}
|
|
6335
|
-
async function $
|
|
6329
|
+
async function $c9312089e8983364$var$download_categories(tenant, market, type) {
|
|
6336
6330
|
const fetched = await (0, $gco9i$fetch_retry)((0, $gco9i$base_url) + "/v2/product-listing/queries", {
|
|
6337
6331
|
method: "POST",
|
|
6338
6332
|
body: JSON.stringify({
|
|
@@ -9122,4 +9116,4 @@ const $4690a06c8489dcd0$export$7bf543b9d9be2c22 = (0, $e4615ecd1849548f$export$b
|
|
|
9122
9116
|
(0, $gco9i$add_to_version_info)("ui", (0, $ec291e0010116877$export$83d89fbfd8236492));
|
|
9123
9117
|
|
|
9124
9118
|
|
|
9125
|
-
export {$194bd6b8e4c59830$export$79b1565500412d9b as general_modal_abstraction, $19976a74d273070d$export$3b621d86b1566b2 as CrossIcon, $fbbadcb080ad1d4a$export$8be2714ec7f169ee as GenericSliderArrowButton, $c58717f39bf51647$export$58e808b1db15d3bc as fetchDepictRecommendations, $961b5c64bef4662f$export$de035477d6fef996 as QuickLinks, $961b5c64bef4662f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $
|
|
9119
|
+
export {$194bd6b8e4c59830$export$79b1565500412d9b as general_modal_abstraction, $19976a74d273070d$export$3b621d86b1566b2 as CrossIcon, $fbbadcb080ad1d4a$export$8be2714ec7f169ee as GenericSliderArrowButton, $c58717f39bf51647$export$58e808b1db15d3bc as fetchDepictRecommendations, $961b5c64bef4662f$export$de035477d6fef996 as QuickLinks, $961b5c64bef4662f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a6e23a834336fc19$export$824dde41348efed1 as embedded_num_products, $c9312089e8983364$export$643598a327b5833e as get_categories, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $961b5c64bef4662f$export$e2bf8ce7779e827e as CategoryPage, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $806c97b931758897$export$316f6f283ae64765 as SearchField, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $d20eff0aadc28983$export$acb3eaade4b23afd as BasePlaceholder, $d134eae24341b4a1$export$89c6019e4baa40b1 as TextPlaceholder, $7f60f09116a3fe61$export$3f37af283f8fb843 as ImagePlaceholder, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version};
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { SearchRequest, SearchFilter } from "@depict-ai/types/api/SearchRequest"
|
|
|
7
7
|
import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
|
|
8
8
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
9
9
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
10
|
-
export const version = "1.2.
|
|
10
|
+
export const version = "1.2.2";
|
|
11
11
|
type PageURLCreatorAlwaysThereData = {
|
|
12
12
|
merchant: string;
|
|
13
13
|
market: string;
|
|
@@ -546,7 +546,7 @@ interface SearchFieldParams {
|
|
|
546
546
|
aligner_ref?: HTMLElement | null;
|
|
547
547
|
}
|
|
548
548
|
export function SearchField({ depict_search, modal_dispose_handler, click_handler, aligner_ref, }: SearchFieldParams): import("@depict-ai/utilishared").Node_Array;
|
|
549
|
-
export type BaseProviderConfig<InputDisplay extends Display, PossibleTransformedDisplay extends ModernDisplay | never
|
|
549
|
+
export type BaseProviderConfig<InputDisplay extends Display, PossibleTransformedDisplay extends ModernDisplay | never> = {
|
|
550
550
|
/**
|
|
551
551
|
* The merchant to use for the search.
|
|
552
552
|
* @example "YOUR_MERCHANT", "stronger"
|
package/dist/server/main.cjs
CHANGED
|
@@ -13,8 +13,8 @@ $parcel$export(module.exports, "fetchDepictRecommendations", () => $bc91d938b8c6
|
|
|
13
13
|
$parcel$export(module.exports, "QuickLinks", () => $48567ac5b39bac56$export$de035477d6fef996);
|
|
14
14
|
$parcel$export(module.exports, "BreadCrumbs", () => $48567ac5b39bac56$export$5b7c3ce0ebe51f86);
|
|
15
15
|
$parcel$export(module.exports, "CategoryTitle", () => $0b23bfd073d9a4e8$export$b91cec6bdc6b32a1);
|
|
16
|
-
$parcel$export(module.exports, "embedded_num_products", () => $
|
|
17
|
-
$parcel$export(module.exports, "get_categories", () => $
|
|
16
|
+
$parcel$export(module.exports, "embedded_num_products", () => $85b747260aa175c9$export$824dde41348efed1);
|
|
17
|
+
$parcel$export(module.exports, "get_categories", () => $63b10c9f461e0ef6$export$643598a327b5833e);
|
|
18
18
|
$parcel$export(module.exports, "DepictCategory", () => $48567ac5b39bac56$export$f34314aa9505732e);
|
|
19
19
|
$parcel$export(module.exports, "CategoryPage", () => $48567ac5b39bac56$export$e2bf8ce7779e827e);
|
|
20
20
|
$parcel$export(module.exports, "DepictSearch", () => $2c61e4cd8229c49a$export$ac6237957a15b3f0);
|
|
@@ -43,7 +43,7 @@ $parcel$export(module.exports, "defaultGridSpacing", () => $a3280f0aad997933$exp
|
|
|
43
43
|
$parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$export$c3834fa86c616831);
|
|
44
44
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
45
45
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
46
|
-
/*! Depict.ai search and product listing SDK */ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.2.
|
|
46
|
+
/*! Depict.ai search and product listing SDK */ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.2.2";
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
@@ -315,23 +315,10 @@ class $e1d6c0f3d89d531c$export$e015ed2f2950f2e3 {
|
|
|
315
315
|
let resolve_in_progress;
|
|
316
316
|
cache_obj.in_progress_[body] = new Promise((r)=>resolve_in_progress = r);
|
|
317
317
|
try {
|
|
318
|
-
|
|
318
|
+
const api_response = await (0, $diwD4$depictaiutilishared.fetch_retry)((0, $diwD4$depictaiutilishared.add_version_query_params)(endpoint1), {
|
|
319
319
|
method: "POST",
|
|
320
320
|
body: body
|
|
321
321
|
});
|
|
322
|
-
if ("query_id" in request && request.type === "collection") // FIXME: Remove. Backwards compatibility layer
|
|
323
|
-
// This will retry the request without the collection type if the first request fails
|
|
324
|
-
{
|
|
325
|
-
if (!api_response || api_response?.status === 404) {
|
|
326
|
-
(0, $diwD4$depictaiutilishared.dlog)("Fallback request for collections due to failure");
|
|
327
|
-
const fallback_body = JSON.parse(body);
|
|
328
|
-
delete fallback_body.type;
|
|
329
|
-
api_response = await (0, $diwD4$depictaiutilishared.fetch_retry)((0, $diwD4$depictaiutilishared.add_version_query_params)(endpoint1), {
|
|
330
|
-
method: "POST",
|
|
331
|
-
body: JSON.stringify(fallback_body)
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
322
|
return_successfully: {
|
|
336
323
|
if (!api_response || api_response.status !== 200) break return_successfully;
|
|
337
324
|
let result;
|
|
@@ -1852,10 +1839,10 @@ function $c1dc1554c1b94233$export$430444115f70a734({ selected_filters_: selected
|
|
|
1852
1839
|
const random_selector = (0, $diwD4$depictaiutilishared.make_random_classname)();
|
|
1853
1840
|
const count = (0, $diwD4$solidjs.createMemo)(()=>filter_().meta.counts?.[index]);
|
|
1854
1841
|
return (0, $diwD4$solidjsweb.ssr)($c1dc1554c1b94233$var$_tmpl$3, (0, $diwD4$solidjsweb.ssrHydrationKey)(), `input-row ${count() === 0 ? "count-0" : ""}`, (0, $diwD4$solidjsweb.ssrAttribute)("for", (0, $diwD4$solidjsweb.escape)(random_selector, true), false), (0, $diwD4$solidjsweb.ssrAttribute)("id", (0, $diwD4$solidjsweb.escape)(random_selector, true), false) + (0, $diwD4$solidjsweb.ssrAttribute)("name", (0, $diwD4$solidjsweb.escape)(radio_name, true), false), (0, $diwD4$solidjsweb.ssrAttribute)("checked", (0, $diwD4$solidjs.createMemo)(()=>{
|
|
1842
|
+
const v = value();
|
|
1855
1843
|
const data = existing_filter()?.data;
|
|
1856
|
-
if (data ===
|
|
1857
|
-
|
|
1858
|
-
return false;
|
|
1844
|
+
if (data === v) return true;
|
|
1845
|
+
return Array.isArray(data) && data.every((item, index)=>item === v[index]);
|
|
1859
1846
|
})(), true), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjs.createMemo)(()=>{
|
|
1860
1847
|
const name = filter_().meta?.names?.[index];
|
|
1861
1848
|
if (name) return name;
|
|
@@ -4606,9 +4593,9 @@ function $47e2cc552c02110c$export$8895d39404bd2bb1(props) {
|
|
|
4606
4593
|
}
|
|
4607
4594
|
|
|
4608
4595
|
|
|
4609
|
-
function $
|
|
4596
|
+
function $ef972f5c10b1c5b4$export$3945d6db2dfd3d12({ crumb_data_: crumb_data_ , query_id_: query_id_ , i18n_: i18n_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , plp_results_: plp_results_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ }) {
|
|
4610
4597
|
// If we just got opened in a new tab, clear filters instantly and remove the flag
|
|
4611
|
-
$
|
|
4598
|
+
$ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
|
|
4612
4599
|
plp_results_: plp_results_,
|
|
4613
4600
|
local_filter_cache_: local_filter_cache_,
|
|
4614
4601
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -4652,7 +4639,7 @@ function $cc7c480116d2eba0$export$3945d6db2dfd3d12({ crumb_data_: crumb_data_ ,
|
|
|
4652
4639
|
if (!allow_filter_clearing) allow_filter_clearing = true;
|
|
4653
4640
|
})));
|
|
4654
4641
|
}
|
|
4655
|
-
function $
|
|
4642
|
+
function $ef972f5c10b1c5b4$var$clear_if_opened_new_tab_with_sideways_url_params_flag({ plp_results_: plp_results_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , i18n_: i18n_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ , sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_] }) {
|
|
4656
4643
|
const tracking_function_for_plp_results = (0, $diwD4$solidjs.createReaction)(()=>{
|
|
4657
4644
|
// On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
|
|
4658
4645
|
if (!(0, $diwD4$solidjs.untrack)(get_sideways_filter_clearing_flag_)) return;
|
|
@@ -4676,6 +4663,9 @@ function $cc7c480116d2eba0$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
4676
4663
|
|
|
4677
4664
|
|
|
4678
4665
|
|
|
4666
|
+
const $6b502b1b2155a0bc$export$5c28802497c8a83c = /*@__PURE__*/ Symbol("category_title_type");
|
|
4667
|
+
|
|
4668
|
+
|
|
4679
4669
|
const $840d88a04b2d22a7$var$_tmpl$ = [
|
|
4680
4670
|
"<div",
|
|
4681
4671
|
' class="product-count"><!--#-->',
|
|
@@ -4765,7 +4755,8 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
4765
4755
|
const [results_filters, set_results_filters] = (0, $diwD4$solidjs.createSignal)();
|
|
4766
4756
|
const [observed_results_filters_elements, set_observed_results_filters_elements_] = (0, $diwD4$solidjs.createSignal)();
|
|
4767
4757
|
const is_slim_ = (0, $b54e6192d0caa293$export$d9f36cf74e24d595)("(max-width:600px)");
|
|
4768
|
-
|
|
4758
|
+
// @ts-ignore - there's no type error here when writing the code, but parcel can't generate types that include the symbol, so we need to suppress the error that creates in our pipelines
|
|
4759
|
+
const category_title_type = category_title_[0, $6b502b1b2155a0bc$export$5c28802497c8a83c];
|
|
4769
4760
|
const extra_sort_and_filter_args_ = {};
|
|
4770
4761
|
const make_product_count_ = ()=>(0, $diwD4$solidjsweb.ssr)($840d88a04b2d22a7$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)((0, $diwD4$solidjsweb.createComponent)((0, $diwD4$solidjs.Show), {
|
|
4771
4762
|
get when () {
|
|
@@ -4861,7 +4852,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
4861
4852
|
selected_filters_: selected_filters_,
|
|
4862
4853
|
available_filters_: available_filters_
|
|
4863
4854
|
});
|
|
4864
|
-
(0, $
|
|
4855
|
+
(0, $ef972f5c10b1c5b4$export$3945d6db2dfd3d12)({
|
|
4865
4856
|
query_id_: query_id_,
|
|
4866
4857
|
crumb_data_: crumb_data_,
|
|
4867
4858
|
i18n_: i18n_,
|
|
@@ -5478,6 +5469,7 @@ function $48567ac5b39bac56$var$get_shared_properties(depict_category) {
|
|
|
5478
5469
|
|
|
5479
5470
|
|
|
5480
5471
|
|
|
5472
|
+
|
|
5481
5473
|
const $0b23bfd073d9a4e8$var$_tmpl$ = [
|
|
5482
5474
|
"<div",
|
|
5483
5475
|
' class="category-title"><h1 class="title">',
|
|
@@ -5491,7 +5483,8 @@ const $0b23bfd073d9a4e8$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
|
5491
5483
|
width: "10ch"
|
|
5492
5484
|
})), (0, $diwD4$solidjsweb.escape)(product_count_));
|
|
5493
5485
|
};
|
|
5494
|
-
|
|
5486
|
+
// This is wrong but parcel can't build correctly, it says unexpected undefined
|
|
5487
|
+
actual_function[0, $6b502b1b2155a0bc$export$5c28802497c8a83c] = "simple";
|
|
5495
5488
|
return actual_function;
|
|
5496
5489
|
})();
|
|
5497
5490
|
|
|
@@ -5501,14 +5494,15 @@ const $0b23bfd073d9a4e8$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
|
5501
5494
|
|
|
5502
5495
|
|
|
5503
5496
|
|
|
5504
|
-
|
|
5497
|
+
|
|
5498
|
+
const $85b747260aa175c9$var$_tmpl$ = [
|
|
5505
5499
|
"<div",
|
|
5506
5500
|
' class="sort-and-filter-buttons fake" aria-hidden="true" style="position:absolute;z-index:-1;pointer-events:none;opacity:0"><div class="outer"><div class="inner"><!--#-->',
|
|
5507
5501
|
"<!--/--><!--#-->",
|
|
5508
5502
|
"<!--/--><!--#-->",
|
|
5509
5503
|
"<!--/--></div></div></div>"
|
|
5510
5504
|
];
|
|
5511
|
-
const $
|
|
5505
|
+
const $85b747260aa175c9$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
5512
5506
|
const actual_function = ({ make_product_count_: make_product_count_ , set_observed_results_filters_elements_: set_observed_results_filters_elements_ , is_slim_: is_slim_ , sort_and_filter_element_: sort_and_filter_element_ , extra_sort_and_filter_args_: extra_sort_and_filter_args_ })=>{
|
|
5513
5507
|
// this does two things: make the sorting and filters button the same width and move the number of products out of the SortAndFilter middle_elements_ if it doesn't fit
|
|
5514
5508
|
let extra_sort_button_;
|
|
@@ -5529,7 +5523,7 @@ const $93e94e7b0aa8ca88$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
|
5529
5523
|
extra_sort_and_filter_args_.sort_button_width_ = sort_button_width_;
|
|
5530
5524
|
const on_filters_constructed_ = ()=>{
|
|
5531
5525
|
const active_sort_and_filter_element = (0, $diwD4$solidjs.untrack)(sort_and_filter_element_); // We assume that this doesn't change which it currently doesn't after the filters have been constructed
|
|
5532
|
-
const extra_sort_and_filter_container_ = (0, $diwD4$solidjsweb.ssr)($
|
|
5526
|
+
const extra_sort_and_filter_container_ = (0, $diwD4$solidjsweb.ssr)($85b747260aa175c9$var$_tmpl$, (0, $diwD4$solidjsweb.ssrHydrationKey)(), (0, $diwD4$solidjsweb.escape)(extra_filter_button_), (0, $diwD4$solidjsweb.escape)(extra_count), (0, $diwD4$solidjsweb.escape)(extra_sort_button_));
|
|
5533
5527
|
set_observed_results_filters_elements_(extra_sort_and_filter_container_);
|
|
5534
5528
|
const [total_available_width, set_total_available_width] = (0, $diwD4$solidjs.createSignal)();
|
|
5535
5529
|
const [filter_button_required_width, set_filter_button_required_width] = (0, $diwD4$solidjs.createSignal)();
|
|
@@ -5583,15 +5577,15 @@ const $93e94e7b0aa8ca88$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
|
5583
5577
|
on_filters_constructed_: on_filters_constructed_
|
|
5584
5578
|
};
|
|
5585
5579
|
};
|
|
5586
|
-
actual_function[
|
|
5580
|
+
actual_function[0, $6b502b1b2155a0bc$export$5c28802497c8a83c] = "interactive";
|
|
5587
5581
|
return actual_function;
|
|
5588
5582
|
})();
|
|
5589
5583
|
|
|
5590
5584
|
|
|
5591
5585
|
|
|
5592
|
-
const $
|
|
5593
|
-
const $
|
|
5594
|
-
async function $
|
|
5586
|
+
const $63b10c9f461e0ef6$var$TEN_MINUTES = 600000;
|
|
5587
|
+
const $63b10c9f461e0ef6$var$TWENTY_FOUR_HOURS = 86400000;
|
|
5588
|
+
async function $63b10c9f461e0ef6$export$643598a327b5833e(tenant, market, type) {
|
|
5595
5589
|
let localstorage_value;
|
|
5596
5590
|
const localstorage_key = `depict_${tenant}_${type ?? "categories"}_` + market;
|
|
5597
5591
|
try {
|
|
@@ -5605,11 +5599,11 @@ async function $7b4bc889571cc67b$export$643598a327b5833e(tenant, market, type) {
|
|
|
5605
5599
|
const stored_queries = localstorage_value?.queries;
|
|
5606
5600
|
if (Array.isArray(stored_queries) && typeof updated === "number") {
|
|
5607
5601
|
const age = now - updated;
|
|
5608
|
-
if (stored_queries.length && age < $
|
|
5602
|
+
if (stored_queries.length && age < $63b10c9f461e0ef6$var$TEN_MINUTES) // if younger than 10 minutes and probably valid data, just return stored value
|
|
5609
5603
|
return stored_queries;
|
|
5610
|
-
else if (age < $
|
|
5604
|
+
else if (age < $63b10c9f461e0ef6$var$TWENTY_FOUR_HOURS) {
|
|
5611
5605
|
// if younger than a day, return stored value but still trigger re-fetch, so we have fresh data next page load (stale data this one but never a delay)
|
|
5612
|
-
$
|
|
5606
|
+
$63b10c9f461e0ef6$var$fetch_and_store_categories(tenant, market, localstorage_key, type).catch((e)=>(0, $diwD4$depictaiutilishared.report)([
|
|
5613
5607
|
e,
|
|
5614
5608
|
"couldn't fetch categories"
|
|
5615
5609
|
], "warning"));
|
|
@@ -5617,10 +5611,10 @@ async function $7b4bc889571cc67b$export$643598a327b5833e(tenant, market, type) {
|
|
|
5617
5611
|
}
|
|
5618
5612
|
// else: we are older and just fetch, store and return new queries
|
|
5619
5613
|
}
|
|
5620
|
-
return await $
|
|
5614
|
+
return await $63b10c9f461e0ef6$var$fetch_and_store_categories(tenant, market, localstorage_key, type);
|
|
5621
5615
|
}
|
|
5622
|
-
async function $
|
|
5623
|
-
const new_categories = await $
|
|
5616
|
+
async function $63b10c9f461e0ef6$var$fetch_and_store_categories(tenant, market, localstorage_key, type) {
|
|
5617
|
+
const new_categories = await $63b10c9f461e0ef6$var$download_categories(tenant, market, type);
|
|
5624
5618
|
try {
|
|
5625
5619
|
localStorage[localstorage_key] = JSON.stringify({
|
|
5626
5620
|
updated: +new Date(),
|
|
@@ -5634,7 +5628,7 @@ async function $7b4bc889571cc67b$var$fetch_and_store_categories(tenant, market,
|
|
|
5634
5628
|
}
|
|
5635
5629
|
return new_categories;
|
|
5636
5630
|
}
|
|
5637
|
-
async function $
|
|
5631
|
+
async function $63b10c9f461e0ef6$var$download_categories(tenant, market, type) {
|
|
5638
5632
|
const fetched = await (0, $diwD4$depictaiutilishared.fetch_retry)((0, $diwD4$depictaiutilishared.base_url) + "/v2/product-listing/queries", {
|
|
5639
5633
|
method: "POST",
|
|
5640
5634
|
body: JSON.stringify({
|
package/dist/server/module.js
CHANGED
|
@@ -2,7 +2,7 @@ import {add_to_version_info as $cV3wj$add_to_version_info, observer as $cV3wj$ob
|
|
|
2
2
|
import {createRoot as $cV3wj$createRoot, createSignal as $cV3wj$createSignal, getOwner as $cV3wj$getOwner, runWithOwner as $cV3wj$runWithOwner, onCleanup as $cV3wj$onCleanup, createComputed as $cV3wj$createComputed, createRenderEffect as $cV3wj$createRenderEffect, createEffect as $cV3wj$createEffect, untrack as $cV3wj$untrack, batch as $cV3wj$batch, createResource as $cV3wj$createResource, createMemo as $cV3wj$createMemo, Show as $cV3wj$Show, createReaction as $cV3wj$createReaction, Suspense as $cV3wj$Suspense, on as $cV3wj$on, ErrorBoundary as $cV3wj$ErrorBoundary, For as $cV3wj$For, Index as $cV3wj$Index} from "solid-js";
|
|
3
3
|
import {ssrElement as $cV3wj$ssrElement, ssr as $cV3wj$ssr, ssrHydrationKey as $cV3wj$ssrHydrationKey, ssrAttribute as $cV3wj$ssrAttribute, escape as $cV3wj$escape, isServer as $cV3wj$isServer, createComponent as $cV3wj$createComponent, ssrClassList as $cV3wj$ssrClassList, insert as $cV3wj$insert, ssrStyle as $cV3wj$ssrStyle, Dynamic as $cV3wj$Dynamic, mergeProps as $cV3wj$mergeProps} from "solid-js/web";
|
|
4
4
|
|
|
5
|
-
/*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.2.
|
|
5
|
+
/*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.2.2";
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -274,23 +274,10 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
|
|
|
274
274
|
let resolve_in_progress;
|
|
275
275
|
cache_obj.in_progress_[body] = new Promise((r)=>resolve_in_progress = r);
|
|
276
276
|
try {
|
|
277
|
-
|
|
277
|
+
const api_response = await (0, $cV3wj$fetch_retry)((0, $cV3wj$add_version_query_params)(endpoint1), {
|
|
278
278
|
method: "POST",
|
|
279
279
|
body: body
|
|
280
280
|
});
|
|
281
|
-
if ("query_id" in request && request.type === "collection") // FIXME: Remove. Backwards compatibility layer
|
|
282
|
-
// This will retry the request without the collection type if the first request fails
|
|
283
|
-
{
|
|
284
|
-
if (!api_response || api_response?.status === 404) {
|
|
285
|
-
(0, $cV3wj$dlog)("Fallback request for collections due to failure");
|
|
286
|
-
const fallback_body = JSON.parse(body);
|
|
287
|
-
delete fallback_body.type;
|
|
288
|
-
api_response = await (0, $cV3wj$fetch_retry)((0, $cV3wj$add_version_query_params)(endpoint1), {
|
|
289
|
-
method: "POST",
|
|
290
|
-
body: JSON.stringify(fallback_body)
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
281
|
return_successfully: {
|
|
295
282
|
if (!api_response || api_response.status !== 200) break return_successfully;
|
|
296
283
|
let result;
|
|
@@ -1811,10 +1798,10 @@ function $eb8d9bf3b5700c26$export$430444115f70a734({ selected_filters_: selected
|
|
|
1811
1798
|
const random_selector = (0, $cV3wj$make_random_classname)();
|
|
1812
1799
|
const count = (0, $cV3wj$createMemo)(()=>filter_().meta.counts?.[index]);
|
|
1813
1800
|
return (0, $cV3wj$ssr)($eb8d9bf3b5700c26$var$_tmpl$3, (0, $cV3wj$ssrHydrationKey)(), `input-row ${count() === 0 ? "count-0" : ""}`, (0, $cV3wj$ssrAttribute)("for", (0, $cV3wj$escape)(random_selector, true), false), (0, $cV3wj$ssrAttribute)("id", (0, $cV3wj$escape)(random_selector, true), false) + (0, $cV3wj$ssrAttribute)("name", (0, $cV3wj$escape)(radio_name, true), false), (0, $cV3wj$ssrAttribute)("checked", (0, $cV3wj$createMemo)(()=>{
|
|
1801
|
+
const v = value();
|
|
1814
1802
|
const data = existing_filter()?.data;
|
|
1815
|
-
if (data ===
|
|
1816
|
-
|
|
1817
|
-
return false;
|
|
1803
|
+
if (data === v) return true;
|
|
1804
|
+
return Array.isArray(data) && data.every((item, index)=>item === v[index]);
|
|
1818
1805
|
})(), true), (0, $cV3wj$escape)((0, $cV3wj$createMemo)(()=>{
|
|
1819
1806
|
const name = filter_().meta?.names?.[index];
|
|
1820
1807
|
if (name) return name;
|
|
@@ -4565,9 +4552,9 @@ function $e9342fb3ac73a54a$export$8895d39404bd2bb1(props) {
|
|
|
4565
4552
|
}
|
|
4566
4553
|
|
|
4567
4554
|
|
|
4568
|
-
function $
|
|
4555
|
+
function $e7fce80abe608e01$export$3945d6db2dfd3d12({ crumb_data_: crumb_data_ , query_id_: query_id_ , i18n_: i18n_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , plp_results_: plp_results_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ }) {
|
|
4569
4556
|
// If we just got opened in a new tab, clear filters instantly and remove the flag
|
|
4570
|
-
$
|
|
4557
|
+
$e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_flag({
|
|
4571
4558
|
plp_results_: plp_results_,
|
|
4572
4559
|
local_filter_cache_: local_filter_cache_,
|
|
4573
4560
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -4611,7 +4598,7 @@ function $a1c4da51ff91dd01$export$3945d6db2dfd3d12({ crumb_data_: crumb_data_ ,
|
|
|
4611
4598
|
if (!allow_filter_clearing) allow_filter_clearing = true;
|
|
4612
4599
|
})));
|
|
4613
4600
|
}
|
|
4614
|
-
function $
|
|
4601
|
+
function $e7fce80abe608e01$var$clear_if_opened_new_tab_with_sideways_url_params_flag({ plp_results_: plp_results_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , i18n_: i18n_ , selected_filters_: selected_filters_ , local_filter_cache_: local_filter_cache_ , sideways_filter_clearing_flag_: [get_sideways_filter_clearing_flag_, set_sideways_filter_clearing_flag_] }) {
|
|
4615
4602
|
const tracking_function_for_plp_results = (0, $cV3wj$createReaction)(()=>{
|
|
4616
4603
|
// On first rendering of the CategoryPage (after we have results), check if we got to this URL by going sideways in QuickLinks and clear filters with toast if so
|
|
4617
4604
|
if (!(0, $cV3wj$untrack)(get_sideways_filter_clearing_flag_)) return;
|
|
@@ -4635,6 +4622,9 @@ function $a1c4da51ff91dd01$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
4635
4622
|
|
|
4636
4623
|
|
|
4637
4624
|
|
|
4625
|
+
const $4fb3a1cf207a7d5c$export$5c28802497c8a83c = /*@__PURE__*/ Symbol("category_title_type");
|
|
4626
|
+
|
|
4627
|
+
|
|
4638
4628
|
const $df5d81d0fe61ff21$var$_tmpl$ = [
|
|
4639
4629
|
"<div",
|
|
4640
4630
|
' class="product-count"><!--#-->',
|
|
@@ -4724,7 +4714,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
4724
4714
|
const [results_filters, set_results_filters] = (0, $cV3wj$createSignal)();
|
|
4725
4715
|
const [observed_results_filters_elements, set_observed_results_filters_elements_] = (0, $cV3wj$createSignal)();
|
|
4726
4716
|
const is_slim_ = (0, $dc9262ef6f786812$export$d9f36cf74e24d595)("(max-width:600px)");
|
|
4727
|
-
|
|
4717
|
+
// @ts-ignore - there's no type error here when writing the code, but parcel can't generate types that include the symbol, so we need to suppress the error that creates in our pipelines
|
|
4718
|
+
const category_title_type = category_title_[0, $4fb3a1cf207a7d5c$export$5c28802497c8a83c];
|
|
4728
4719
|
const extra_sort_and_filter_args_ = {};
|
|
4729
4720
|
const make_product_count_ = ()=>(0, $cV3wj$ssr)($df5d81d0fe61ff21$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)((0, $cV3wj$createComponent)((0, $cV3wj$Show), {
|
|
4730
4721
|
get when () {
|
|
@@ -4820,7 +4811,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
4820
4811
|
selected_filters_: selected_filters_,
|
|
4821
4812
|
available_filters_: available_filters_
|
|
4822
4813
|
});
|
|
4823
|
-
(0, $
|
|
4814
|
+
(0, $e7fce80abe608e01$export$3945d6db2dfd3d12)({
|
|
4824
4815
|
query_id_: query_id_,
|
|
4825
4816
|
crumb_data_: crumb_data_,
|
|
4826
4817
|
i18n_: i18n_,
|
|
@@ -5437,6 +5428,7 @@ function $961b5c64bef4662f$var$get_shared_properties(depict_category) {
|
|
|
5437
5428
|
|
|
5438
5429
|
|
|
5439
5430
|
|
|
5431
|
+
|
|
5440
5432
|
const $e4615ecd1849548f$var$_tmpl$ = [
|
|
5441
5433
|
"<div",
|
|
5442
5434
|
' class="category-title"><h1 class="title">',
|
|
@@ -5450,7 +5442,8 @@ const $e4615ecd1849548f$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
|
5450
5442
|
width: "10ch"
|
|
5451
5443
|
})), (0, $cV3wj$escape)(product_count_));
|
|
5452
5444
|
};
|
|
5453
|
-
|
|
5445
|
+
// This is wrong but parcel can't build correctly, it says unexpected undefined
|
|
5446
|
+
actual_function[0, $4fb3a1cf207a7d5c$export$5c28802497c8a83c] = "simple";
|
|
5454
5447
|
return actual_function;
|
|
5455
5448
|
})();
|
|
5456
5449
|
|
|
@@ -5460,14 +5453,15 @@ const $e4615ecd1849548f$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
|
5460
5453
|
|
|
5461
5454
|
|
|
5462
5455
|
|
|
5463
|
-
|
|
5456
|
+
|
|
5457
|
+
const $a6e23a834336fc19$var$_tmpl$ = [
|
|
5464
5458
|
"<div",
|
|
5465
5459
|
' class="sort-and-filter-buttons fake" aria-hidden="true" style="position:absolute;z-index:-1;pointer-events:none;opacity:0"><div class="outer"><div class="inner"><!--#-->',
|
|
5466
5460
|
"<!--/--><!--#-->",
|
|
5467
5461
|
"<!--/--><!--#-->",
|
|
5468
5462
|
"<!--/--></div></div></div>"
|
|
5469
5463
|
];
|
|
5470
|
-
const $
|
|
5464
|
+
const $a6e23a834336fc19$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
5471
5465
|
const actual_function = ({ make_product_count_: make_product_count_ , set_observed_results_filters_elements_: set_observed_results_filters_elements_ , is_slim_: is_slim_ , sort_and_filter_element_: sort_and_filter_element_ , extra_sort_and_filter_args_: extra_sort_and_filter_args_ })=>{
|
|
5472
5466
|
// this does two things: make the sorting and filters button the same width and move the number of products out of the SortAndFilter middle_elements_ if it doesn't fit
|
|
5473
5467
|
let extra_sort_button_;
|
|
@@ -5488,7 +5482,7 @@ const $a79d86d64fb64e8e$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
|
5488
5482
|
extra_sort_and_filter_args_.sort_button_width_ = sort_button_width_;
|
|
5489
5483
|
const on_filters_constructed_ = ()=>{
|
|
5490
5484
|
const active_sort_and_filter_element = (0, $cV3wj$untrack)(sort_and_filter_element_); // We assume that this doesn't change which it currently doesn't after the filters have been constructed
|
|
5491
|
-
const extra_sort_and_filter_container_ = (0, $cV3wj$ssr)($
|
|
5485
|
+
const extra_sort_and_filter_container_ = (0, $cV3wj$ssr)($a6e23a834336fc19$var$_tmpl$, (0, $cV3wj$ssrHydrationKey)(), (0, $cV3wj$escape)(extra_filter_button_), (0, $cV3wj$escape)(extra_count), (0, $cV3wj$escape)(extra_sort_button_));
|
|
5492
5486
|
set_observed_results_filters_elements_(extra_sort_and_filter_container_);
|
|
5493
5487
|
const [total_available_width, set_total_available_width] = (0, $cV3wj$createSignal)();
|
|
5494
5488
|
const [filter_button_required_width, set_filter_button_required_width] = (0, $cV3wj$createSignal)();
|
|
@@ -5542,15 +5536,15 @@ const $a79d86d64fb64e8e$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
|
|
|
5542
5536
|
on_filters_constructed_: on_filters_constructed_
|
|
5543
5537
|
};
|
|
5544
5538
|
};
|
|
5545
|
-
actual_function[
|
|
5539
|
+
actual_function[0, $4fb3a1cf207a7d5c$export$5c28802497c8a83c] = "interactive";
|
|
5546
5540
|
return actual_function;
|
|
5547
5541
|
})();
|
|
5548
5542
|
|
|
5549
5543
|
|
|
5550
5544
|
|
|
5551
|
-
const $
|
|
5552
|
-
const $
|
|
5553
|
-
async function $
|
|
5545
|
+
const $c9312089e8983364$var$TEN_MINUTES = 600000;
|
|
5546
|
+
const $c9312089e8983364$var$TWENTY_FOUR_HOURS = 86400000;
|
|
5547
|
+
async function $c9312089e8983364$export$643598a327b5833e(tenant, market, type) {
|
|
5554
5548
|
let localstorage_value;
|
|
5555
5549
|
const localstorage_key = `depict_${tenant}_${type ?? "categories"}_` + market;
|
|
5556
5550
|
try {
|
|
@@ -5564,11 +5558,11 @@ async function $5c5f95951393e5d1$export$643598a327b5833e(tenant, market, type) {
|
|
|
5564
5558
|
const stored_queries = localstorage_value?.queries;
|
|
5565
5559
|
if (Array.isArray(stored_queries) && typeof updated === "number") {
|
|
5566
5560
|
const age = now - updated;
|
|
5567
|
-
if (stored_queries.length && age < $
|
|
5561
|
+
if (stored_queries.length && age < $c9312089e8983364$var$TEN_MINUTES) // if younger than 10 minutes and probably valid data, just return stored value
|
|
5568
5562
|
return stored_queries;
|
|
5569
|
-
else if (age < $
|
|
5563
|
+
else if (age < $c9312089e8983364$var$TWENTY_FOUR_HOURS) {
|
|
5570
5564
|
// if younger than a day, return stored value but still trigger re-fetch, so we have fresh data next page load (stale data this one but never a delay)
|
|
5571
|
-
$
|
|
5565
|
+
$c9312089e8983364$var$fetch_and_store_categories(tenant, market, localstorage_key, type).catch((e)=>(0, $cV3wj$report)([
|
|
5572
5566
|
e,
|
|
5573
5567
|
"couldn't fetch categories"
|
|
5574
5568
|
], "warning"));
|
|
@@ -5576,10 +5570,10 @@ async function $5c5f95951393e5d1$export$643598a327b5833e(tenant, market, type) {
|
|
|
5576
5570
|
}
|
|
5577
5571
|
// else: we are older and just fetch, store and return new queries
|
|
5578
5572
|
}
|
|
5579
|
-
return await $
|
|
5573
|
+
return await $c9312089e8983364$var$fetch_and_store_categories(tenant, market, localstorage_key, type);
|
|
5580
5574
|
}
|
|
5581
|
-
async function $
|
|
5582
|
-
const new_categories = await $
|
|
5575
|
+
async function $c9312089e8983364$var$fetch_and_store_categories(tenant, market, localstorage_key, type) {
|
|
5576
|
+
const new_categories = await $c9312089e8983364$var$download_categories(tenant, market, type);
|
|
5583
5577
|
try {
|
|
5584
5578
|
localStorage[localstorage_key] = JSON.stringify({
|
|
5585
5579
|
updated: +new Date(),
|
|
@@ -5593,7 +5587,7 @@ async function $5c5f95951393e5d1$var$fetch_and_store_categories(tenant, market,
|
|
|
5593
5587
|
}
|
|
5594
5588
|
return new_categories;
|
|
5595
5589
|
}
|
|
5596
|
-
async function $
|
|
5590
|
+
async function $c9312089e8983364$var$download_categories(tenant, market, type) {
|
|
5597
5591
|
const fetched = await (0, $cV3wj$fetch_retry)((0, $cV3wj$base_url) + "/v2/product-listing/queries", {
|
|
5598
5592
|
method: "POST",
|
|
5599
5593
|
body: JSON.stringify({
|
|
@@ -8117,4 +8111,4 @@ const $4690a06c8489dcd0$export$7bf543b9d9be2c22 = (0, $e4615ecd1849548f$export$b
|
|
|
8117
8111
|
(0, $cV3wj$add_to_version_info)("ui", (0, $ec291e0010116877$export$83d89fbfd8236492));
|
|
8118
8112
|
|
|
8119
8113
|
|
|
8120
|
-
export {$194bd6b8e4c59830$export$79b1565500412d9b as general_modal_abstraction, $19976a74d273070d$export$3b621d86b1566b2 as CrossIcon, $fbbadcb080ad1d4a$export$8be2714ec7f169ee as GenericSliderArrowButton, $c58717f39bf51647$export$58e808b1db15d3bc as fetchDepictRecommendations, $961b5c64bef4662f$export$de035477d6fef996 as QuickLinks, $961b5c64bef4662f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $
|
|
8114
|
+
export {$194bd6b8e4c59830$export$79b1565500412d9b as general_modal_abstraction, $19976a74d273070d$export$3b621d86b1566b2 as CrossIcon, $fbbadcb080ad1d4a$export$8be2714ec7f169ee as GenericSliderArrowButton, $c58717f39bf51647$export$58e808b1db15d3bc as fetchDepictRecommendations, $961b5c64bef4662f$export$de035477d6fef996 as QuickLinks, $961b5c64bef4662f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a6e23a834336fc19$export$824dde41348efed1 as embedded_num_products, $c9312089e8983364$export$643598a327b5833e as get_categories, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $961b5c64bef4662f$export$e2bf8ce7779e827e as CategoryPage, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $806c97b931758897$export$316f6f283ae64765 as SearchField, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $d20eff0aadc28983$export$acb3eaade4b23afd as BasePlaceholder, $d134eae24341b4a1$export$89c6019e4baa40b1 as TextPlaceholder, $7f60f09116a3fe61$export$3f37af283f8fb843 as ImagePlaceholder, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
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
|
"main": "dist/client/main.cjs",
|
|
@@ -124,9 +124,9 @@
|
|
|
124
124
|
"ts-jest": "^29.0.3"
|
|
125
125
|
},
|
|
126
126
|
"dependencies": {
|
|
127
|
-
"@depict-ai/plp-styling": "^1.0.
|
|
128
|
-
"@depict-ai/types": "^1.0.
|
|
129
|
-
"@depict-ai/utilishared": "^1.0.
|
|
127
|
+
"@depict-ai/plp-styling": "^1.0.24",
|
|
128
|
+
"@depict-ai/types": "^1.0.27",
|
|
129
|
+
"@depict-ai/utilishared": "^1.0.23",
|
|
130
130
|
"solid-js": "^1.7.3"
|
|
131
131
|
},
|
|
132
132
|
"types": "dist/index.d.ts",
|