@depict-ai/ui 2.1.22 → 2.1.24
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 +33 -23
- package/ES10/index.d.ts +3 -1
- package/ES10/index.js +33 -23
- package/latest/index.cjs +30 -20
- package/latest/index.d.ts +3 -1
- package/latest/index.js +30 -20
- package/locales/ES10/index.cjs +49 -49
- package/locales/ES10/index.js +49 -49
- package/locales/latest/index.cjs +65 -65
- package/locales/latest/index.js +65 -65
- package/package.json +5 -5
- package/server/ES10/index.cjs +33 -23
- package/server/ES10/index.d.ts +3 -1
- package/server/ES10/index.js +33 -23
- package/server/latest/index.cjs +30 -20
- package/server/latest/index.d.ts +3 -1
- package/server/latest/index.js +30 -20
- package/locales/require.js +0 -1152
package/server/ES10/index.js
CHANGED
|
@@ -9,25 +9,25 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
|
|
|
9
9
|
/*! Depict.ai search and product listing SDK */
|
|
10
10
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
11
11
|
register_es_version("ui", "ES10");
|
|
12
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.
|
|
12
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.24";
|
|
13
13
|
const $2855bffe06ef7a03$var$fallback_operator = "in";
|
|
14
14
|
const $2855bffe06ef7a03$var$fallback_token = "";
|
|
15
15
|
const $2855bffe06ef7a03$var$legacy_filter_prefix = "filter_";
|
|
16
16
|
const $2855bffe06ef7a03$var$operator_map = {
|
|
17
|
-
"eq": "
|
|
18
|
-
"neq": "
|
|
19
|
-
"in": "
|
|
20
|
-
"nin": "
|
|
21
|
-
"leq": "
|
|
22
|
-
"geq": "
|
|
17
|
+
"eq": "\u2261",
|
|
18
|
+
"neq": "\u2260",
|
|
19
|
+
"in": "\u2208",
|
|
20
|
+
"nin": "\u2209",
|
|
21
|
+
"leq": "\u2264",
|
|
22
|
+
"geq": "\u2265",
|
|
23
23
|
"inrange": "\uD83D\uDD22"
|
|
24
24
|
};
|
|
25
25
|
const $2855bffe06ef7a03$var$ascending_token = "\uD83D\uDCC8";
|
|
26
26
|
const $2855bffe06ef7a03$var$descending_token = "\uD83D\uDCC9";
|
|
27
27
|
const $2855bffe06ef7a03$var$range_delimiter = "-";
|
|
28
|
-
const $2855bffe06ef7a03$var$string_item_delimiter = "
|
|
29
|
-
const $2855bffe06ef7a03$var$array_item_delimiter = "
|
|
30
|
-
const $2855bffe06ef7a03$var$empty_item_replacement = "0
|
|
28
|
+
const $2855bffe06ef7a03$var$string_item_delimiter = "\u201A"; // This is not a comma but a comma-like character that browsers will render in the URL bar.
|
|
29
|
+
const $2855bffe06ef7a03$var$array_item_delimiter = "\u2023"; // FIXME: decide on a character. Could theoretically be a double string delimiter.
|
|
30
|
+
const $2855bffe06ef7a03$var$empty_item_replacement = "0\uFE0F\u20E3";
|
|
31
31
|
const $2855bffe06ef7a03$var$op_to_token = op => {
|
|
32
32
|
if (op === $2855bffe06ef7a03$var$fallback_operator) return $2855bffe06ef7a03$var$fallback_token;
|
|
33
33
|
return $2855bffe06ef7a03$var$operator_map[op];
|
|
@@ -396,6 +396,9 @@ function $4df489344a0f97c7$export$e4b984597b71e989(props) {
|
|
|
396
396
|
},
|
|
397
397
|
get src() {
|
|
398
398
|
return props.src;
|
|
399
|
+
},
|
|
400
|
+
get alt() {
|
|
401
|
+
return props.alt;
|
|
399
402
|
}
|
|
400
403
|
}));
|
|
401
404
|
return container;
|
|
@@ -1305,7 +1308,7 @@ function $af5d8e0b7d97a7f6$export$325f75597868c4f0(stuff) {
|
|
|
1305
1308
|
}
|
|
1306
1309
|
const $4711a82d08d2021b$var$_tmpl$ = ["<button", ' class="clear-all-filters minor">', "</button>"],
|
|
1307
1310
|
$4711a82d08d2021b$var$_tmpl$2 = ["<div", ' class="inner"><span class="title"><!--$-->', "<!--/-->: </span><!--$-->", "<!--/--></div>"],
|
|
1308
|
-
$4711a82d08d2021b$var$_tmpl$3 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/-->
|
|
1311
|
+
$4711a82d08d2021b$var$_tmpl$3 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--> \u2013 <!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></button>"],
|
|
1309
1312
|
$4711a82d08d2021b$var$_tmpl$4 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span>", "</span></button>"];
|
|
1310
1313
|
function $4711a82d08d2021b$export$fecbb157621501bd(_ref) {
|
|
1311
1314
|
let {
|
|
@@ -2128,7 +2131,7 @@ function $f3a159279dc1a8fb$var$cut_text(segmented_text) {
|
|
|
2128
2131
|
// identical split point, or split end before split start, can't do anything
|
|
2129
2132
|
split_start_segment == split_end_segment && split_start_character >= split_end_character || split_start_segment > split_end_segment) return;
|
|
2130
2133
|
const dots_segment = {
|
|
2131
|
-
text_: "
|
|
2134
|
+
text_: " \u2026 ",
|
|
2132
2135
|
highlighted_: false
|
|
2133
2136
|
};
|
|
2134
2137
|
const split_and_dotted_values = segmented_text.flatMap((segment, i) => {
|
|
@@ -2222,7 +2225,7 @@ function $f3a159279dc1a8fb$var$cut_start(cut_left_of_index, segmented_text) {
|
|
|
2222
2225
|
if (character === "," || is_space)
|
|
2223
2226
|
// if we cut at a comma or psace, we add a … at the beginning
|
|
2224
2227
|
segmented_text.unshift({
|
|
2225
|
-
text_: "
|
|
2228
|
+
text_: "\u2026 ",
|
|
2226
2229
|
highlighted_: false
|
|
2227
2230
|
});
|
|
2228
2231
|
break outmost_loop;
|
|
@@ -3184,7 +3187,7 @@ function $d0ff304c14f50521$export$53c59af873b303c9(_ref) {
|
|
|
3184
3187
|
get price_formatting_() {
|
|
3185
3188
|
return price_formatting_();
|
|
3186
3189
|
}
|
|
3187
|
-
}), price_formatting_().post_, "
|
|
3190
|
+
}), price_formatting_().post_, " \u2013 ", price_formatting_().pre_, $b8hua$createComponent((0, $60ec7a29849d81db$export$a71e92cfbb498adc), {
|
|
3188
3191
|
get price_() {
|
|
3189
3192
|
return selected_filter.data[1];
|
|
3190
3193
|
},
|
|
@@ -4120,7 +4123,7 @@ class $284849364a6ef73a$export$e015ed2f2950f2e3 {
|
|
|
4120
4123
|
try {
|
|
4121
4124
|
return await $284849364a6ef73a$var$_classPrivateMethodGet(this, $284849364a6ef73a$var$_run_url_creator_for_suggest, $284849364a6ef73a$var$_run_url_creator_for_suggest2).call(this, input_req.tenant, input_req.market, decoded_json);
|
|
4122
4125
|
} catch (e) {
|
|
4123
|
-
$b8hua$dwarn("
|
|
4126
|
+
$b8hua$dwarn("displayTransformer failed", e);
|
|
4124
4127
|
}
|
|
4125
4128
|
}
|
|
4126
4129
|
return {
|
|
@@ -4171,7 +4174,7 @@ function $284849364a6ef73a$var$_get_cache_obj_for_endpoint2(endpoint) {
|
|
|
4171
4174
|
}
|
|
4172
4175
|
function $284849364a6ef73a$var$_guard_url_creator_length2(expected, received) {
|
|
4173
4176
|
if (expected.length !== received.length) {
|
|
4174
|
-
const e = new Error("
|
|
4177
|
+
const e = new Error("displayTransformer returned wrong number of page URLs, got " + received.length + ", expected " + expected.length);
|
|
4175
4178
|
queueMicrotask(() => {
|
|
4176
4179
|
throw e;
|
|
4177
4180
|
});
|
|
@@ -4292,7 +4295,7 @@ async function $284849364a6ef73a$var$_cached_post_request2(endpoint, input_req,
|
|
|
4292
4295
|
const unmodified_result = await api_response.json();
|
|
4293
4296
|
result = await $284849364a6ef73a$var$_classPrivateMethodGet(this, $284849364a6ef73a$var$_run_display_transformers_for_rest, $284849364a6ef73a$var$_run_display_transformers_for_rest2).call(this, input_req.tenant, input_req.market, unmodified_result);
|
|
4294
4297
|
} catch (e) {
|
|
4295
|
-
$b8hua$dwarn("
|
|
4298
|
+
$b8hua$dwarn("displayTransformer or json decoding failed", e);
|
|
4296
4299
|
break return_successfully;
|
|
4297
4300
|
}
|
|
4298
4301
|
// Here result actually becomes O
|
|
@@ -4425,7 +4428,7 @@ function $33e7d1906c93db7d$export$205efb947c7ffd78(handler) {
|
|
|
4425
4428
|
$b8hua$onCleanup(() => removeEventListener(event, catchified_handler));
|
|
4426
4429
|
}
|
|
4427
4430
|
}
|
|
4428
|
-
const $b69740fc6de9f17e$var$_tmpl$ = ["<div", ' class="scroll-status" style="display:none"><span class="text"><b>', "</b>
|
|
4431
|
+
const $b69740fc6de9f17e$var$_tmpl$ = ["<div", ' class="scroll-status" style="display:none"><span class="text"><b>', "</b> \u2013 <b>", "</b> <!--$-->", "<!--/--> <b>", "</b></span></div>"];
|
|
4429
4432
|
function $b69740fc6de9f17e$export$83fd5de5504a7a67(_ref) {
|
|
4430
4433
|
let {
|
|
4431
4434
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
@@ -7536,7 +7539,7 @@ function $f5f54892fd0c7d9f$var$get_shared_properties(depict_category) {
|
|
|
7536
7539
|
if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
|
|
7537
7540
|
return shared_properties;
|
|
7538
7541
|
}
|
|
7539
|
-
const $fa332ea03168857c$var$_tmpl$ = ["<div", ' class="category-title"><h1 class="title">', '</h1><span class="explanation">
|
|
7542
|
+
const $fa332ea03168857c$var$_tmpl$ = ["<div", ' class="category-title"><h1 class="title">', '</h1><span class="explanation"> \u2014 <!--$-->', "<!--/--></span></div>"];
|
|
7540
7543
|
const $fa332ea03168857c$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
|
|
7541
7544
|
const actual_function = _ref => {
|
|
7542
7545
|
let {
|
|
@@ -7788,10 +7791,17 @@ function $8ef6232475d44150$export$7de92c4c2205ebf3(_ref) {
|
|
|
7788
7791
|
var _recommendations_reso;
|
|
7789
7792
|
return !!((recommendations_resource.loading || (_recommendations_reso = recommendations_resource()) !== null && _recommendations_reso !== void 0 && _recommendations_reso.length) && all_products_loaded_());
|
|
7790
7793
|
});
|
|
7791
|
-
const num_placeholders_ = $b8hua$createMemo(() =>
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7794
|
+
const num_placeholders_ = $b8hua$createMemo(() => {
|
|
7795
|
+
const possible_num_columns = layout_options_().cols_at_size.map(_ref2 => {
|
|
7796
|
+
let [per_column] = _ref2;
|
|
7797
|
+
return per_column;
|
|
7798
|
+
});
|
|
7799
|
+
if (!possible_num_columns.length)
|
|
7800
|
+
// Empty cols_at_size, for example artilleriet has that
|
|
7801
|
+
// Assume there will be 4 columns
|
|
7802
|
+
possible_num_columns.push(4);
|
|
7803
|
+
return (0, $981356a8bf29ad72$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
|
|
7804
|
+
});
|
|
7795
7805
|
// Don't tear down elements every time one updates the page - don't put them within <Show>
|
|
7796
7806
|
const elements = $b8hua$ssr($8ef6232475d44150$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(i18n_.search_recs_title_()), $b8hua$escape($ca55612a53dbbdd2$export$a2cc176055f8f08()), $b8hua$escape($b8hua$createComponent((0, $63f1f8dbcd07d3b0$export$d21e32dfedac04be), $b8hua$mergeProps1({
|
|
7797
7807
|
rows: rows_object,
|
package/server/latest/index.cjs
CHANGED
|
@@ -72,25 +72,25 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
|
|
|
72
72
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
73
73
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
74
74
|
/*! Depict.ai search and product listing SDK */
|
|
75
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.
|
|
75
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.24";
|
|
76
76
|
const $1ab22f2cd39b3061$var$fallback_operator = "in";
|
|
77
77
|
const $1ab22f2cd39b3061$var$fallback_token = "";
|
|
78
78
|
const $1ab22f2cd39b3061$var$legacy_filter_prefix = "filter_";
|
|
79
79
|
const $1ab22f2cd39b3061$var$operator_map = {
|
|
80
|
-
"eq": "
|
|
81
|
-
"neq": "
|
|
82
|
-
"in": "
|
|
83
|
-
"nin": "
|
|
84
|
-
"leq": "
|
|
85
|
-
"geq": "
|
|
80
|
+
"eq": "\u2261",
|
|
81
|
+
"neq": "\u2260",
|
|
82
|
+
"in": "\u2208",
|
|
83
|
+
"nin": "\u2209",
|
|
84
|
+
"leq": "\u2264",
|
|
85
|
+
"geq": "\u2265",
|
|
86
86
|
"inrange": "\uD83D\uDD22"
|
|
87
87
|
};
|
|
88
88
|
const $1ab22f2cd39b3061$var$ascending_token = "\uD83D\uDCC8";
|
|
89
89
|
const $1ab22f2cd39b3061$var$descending_token = "\uD83D\uDCC9";
|
|
90
90
|
const $1ab22f2cd39b3061$var$range_delimiter = "-";
|
|
91
|
-
const $1ab22f2cd39b3061$var$string_item_delimiter = "
|
|
92
|
-
const $1ab22f2cd39b3061$var$array_item_delimiter = "
|
|
93
|
-
const $1ab22f2cd39b3061$var$empty_item_replacement = "0
|
|
91
|
+
const $1ab22f2cd39b3061$var$string_item_delimiter = "\u201A"; // This is not a comma but a comma-like character that browsers will render in the URL bar.
|
|
92
|
+
const $1ab22f2cd39b3061$var$array_item_delimiter = "\u2023"; // FIXME: decide on a character. Could theoretically be a double string delimiter.
|
|
93
|
+
const $1ab22f2cd39b3061$var$empty_item_replacement = "0\uFE0F\u20E3";
|
|
94
94
|
const $1ab22f2cd39b3061$var$op_to_token = op => {
|
|
95
95
|
if (op === $1ab22f2cd39b3061$var$fallback_operator) return $1ab22f2cd39b3061$var$fallback_token;
|
|
96
96
|
return $1ab22f2cd39b3061$var$operator_map[op];
|
|
@@ -448,6 +448,9 @@ function $a33065cfed827fc0$export$e4b984597b71e989(props) {
|
|
|
448
448
|
},
|
|
449
449
|
get src() {
|
|
450
450
|
return props.src;
|
|
451
|
+
},
|
|
452
|
+
get alt() {
|
|
453
|
+
return props.alt;
|
|
451
454
|
}
|
|
452
455
|
}));
|
|
453
456
|
return container;
|
|
@@ -1310,7 +1313,7 @@ function $daa394359b026187$export$325f75597868c4f0(stuff) {
|
|
|
1310
1313
|
}
|
|
1311
1314
|
const $235a2771a44e28e9$var$_tmpl$ = ["<button", ' class="clear-all-filters minor">', "</button>"],
|
|
1312
1315
|
$235a2771a44e28e9$var$_tmpl$2 = ["<div", ' class="inner"><span class="title"><!--$-->', "<!--/-->: </span><!--$-->", "<!--/--></div>"],
|
|
1313
|
-
$235a2771a44e28e9$var$_tmpl$3 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/-->
|
|
1316
|
+
$235a2771a44e28e9$var$_tmpl$3 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--> \u2013 <!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></button>"],
|
|
1314
1317
|
$235a2771a44e28e9$var$_tmpl$4 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span>", "</span></button>"];
|
|
1315
1318
|
function $235a2771a44e28e9$export$fecbb157621501bd({
|
|
1316
1319
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
@@ -2079,7 +2082,7 @@ function $5ea5a82e398f6f44$var$cut_text(segmented_text) {
|
|
|
2079
2082
|
// identical split point, or split end before split start, can't do anything
|
|
2080
2083
|
split_start_segment == split_end_segment && split_start_character >= split_end_character || split_start_segment > split_end_segment) return;
|
|
2081
2084
|
const dots_segment = {
|
|
2082
|
-
text_: "
|
|
2085
|
+
text_: " \u2026 ",
|
|
2083
2086
|
highlighted_: false
|
|
2084
2087
|
};
|
|
2085
2088
|
const split_and_dotted_values = segmented_text.flatMap((segment, i) => {
|
|
@@ -2171,7 +2174,7 @@ function $5ea5a82e398f6f44$var$cut_start(cut_left_of_index, segmented_text) {
|
|
|
2171
2174
|
if (character === "," || is_space)
|
|
2172
2175
|
// if we cut at a comma or psace, we add a … at the beginning
|
|
2173
2176
|
segmented_text.unshift({
|
|
2174
|
-
text_: "
|
|
2177
|
+
text_: "\u2026 ",
|
|
2175
2178
|
highlighted_: false
|
|
2176
2179
|
});
|
|
2177
2180
|
break outmost_loop;
|
|
@@ -3062,7 +3065,7 @@ function $b064919833b3e80b$export$53c59af873b303c9({
|
|
|
3062
3065
|
get price_formatting_() {
|
|
3063
3066
|
return price_formatting_();
|
|
3064
3067
|
}
|
|
3065
|
-
}), price_formatting_().post_, "
|
|
3068
|
+
}), price_formatting_().post_, " \u2013 ", price_formatting_().pre_, $5vyXB$solidjsweb.createComponent((0, $d659702496cb72ea$export$a71e92cfbb498adc), {
|
|
3066
3069
|
get price_() {
|
|
3067
3070
|
return selected_filter.data[1];
|
|
3068
3071
|
},
|
|
@@ -3862,7 +3865,7 @@ class $e1d6c0f3d89d531c$export$e015ed2f2950f2e3 {
|
|
|
3862
3865
|
#get_session_id;
|
|
3863
3866
|
#guard_url_creator_length(expected, received) {
|
|
3864
3867
|
if (expected.length !== received.length) {
|
|
3865
|
-
const e = new Error("
|
|
3868
|
+
const e = new Error("displayTransformer returned wrong number of page URLs, got " + received.length + ", expected " + expected.length);
|
|
3866
3869
|
queueMicrotask(() => {
|
|
3867
3870
|
throw e;
|
|
3868
3871
|
});
|
|
@@ -3981,7 +3984,7 @@ class $e1d6c0f3d89d531c$export$e015ed2f2950f2e3 {
|
|
|
3981
3984
|
const unmodified_result = await api_response.json();
|
|
3982
3985
|
result = await this.#run_display_transformers_for_rest(input_req.tenant, input_req.market, unmodified_result);
|
|
3983
3986
|
} catch (e) {
|
|
3984
|
-
$5vyXB$depictaiutilishared.dwarn("
|
|
3987
|
+
$5vyXB$depictaiutilishared.dwarn("displayTransformer or json decoding failed", e);
|
|
3985
3988
|
break return_successfully;
|
|
3986
3989
|
}
|
|
3987
3990
|
// Here result actually becomes O
|
|
@@ -4035,7 +4038,7 @@ class $e1d6c0f3d89d531c$export$e015ed2f2950f2e3 {
|
|
|
4035
4038
|
try {
|
|
4036
4039
|
return await this.#run_url_creator_for_suggest(input_req.tenant, input_req.market, decoded_json);
|
|
4037
4040
|
} catch (e) {
|
|
4038
|
-
$5vyXB$depictaiutilishared.dwarn("
|
|
4041
|
+
$5vyXB$depictaiutilishared.dwarn("displayTransformer failed", e);
|
|
4039
4042
|
}
|
|
4040
4043
|
}
|
|
4041
4044
|
return {
|
|
@@ -4168,7 +4171,7 @@ function $76b6ac05693f5c71$export$205efb947c7ffd78(handler, passive = true) {
|
|
|
4168
4171
|
$5vyXB$solidjs.onCleanup(() => removeEventListener(event, catchified_handler));
|
|
4169
4172
|
}
|
|
4170
4173
|
}
|
|
4171
|
-
const $401aee5f33dca9e2$var$_tmpl$ = ["<div", ' class="scroll-status" style="display:none"><span class="text"><b>', "</b>
|
|
4174
|
+
const $401aee5f33dca9e2$var$_tmpl$ = ["<div", ' class="scroll-status" style="display:none"><span class="text"><b>', "</b> \u2013 <b>", "</b> <!--$-->", "<!--/--> <b>", "</b></span></div>"];
|
|
4172
4175
|
function $401aee5f33dca9e2$export$83fd5de5504a7a67({
|
|
4173
4176
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
4174
4177
|
first_result_in_viewport_: [get_first_result_in_viewport],
|
|
@@ -7016,7 +7019,7 @@ function $48567ac5b39bac56$var$get_shared_properties(depict_category) {
|
|
|
7016
7019
|
if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
|
|
7017
7020
|
return shared_properties;
|
|
7018
7021
|
}
|
|
7019
|
-
const $0b23bfd073d9a4e8$var$_tmpl$ = ["<div", ' class="category-title"><h1 class="title">', '</h1><span class="explanation">
|
|
7022
|
+
const $0b23bfd073d9a4e8$var$_tmpl$ = ["<div", ' class="category-title"><h1 class="title">', '</h1><span class="explanation"> \u2014 <!--$-->', "<!--/--></span></div>"];
|
|
7020
7023
|
const $0b23bfd073d9a4e8$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
|
|
7021
7024
|
const actual_function = ({
|
|
7022
7025
|
category_title_: category_title_,
|
|
@@ -7258,7 +7261,14 @@ function $fb29c6201c369e39$export$7de92c4c2205ebf3({
|
|
|
7258
7261
|
// only fetch/refetch if all products are loaded
|
|
7259
7262
|
query => query && depict_api_.get_recommended(query).then(r => r.displays));
|
|
7260
7263
|
const should_show = $5vyXB$solidjs.createMemo(() => !!((recommendations_resource.loading || recommendations_resource()?.length) && all_products_loaded_()));
|
|
7261
|
-
const num_placeholders_ = $5vyXB$solidjs.createMemo(() =>
|
|
7264
|
+
const num_placeholders_ = $5vyXB$solidjs.createMemo(() => {
|
|
7265
|
+
const possible_num_columns = layout_options_().cols_at_size.map(([per_column]) => per_column);
|
|
7266
|
+
if (!possible_num_columns.length)
|
|
7267
|
+
// Empty cols_at_size, for example artilleriet has that
|
|
7268
|
+
// Assume there will be 4 columns
|
|
7269
|
+
possible_num_columns.push(4);
|
|
7270
|
+
return (0, $aec24316ed262dc0$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
|
|
7271
|
+
});
|
|
7262
7272
|
// Don't tear down elements every time one updates the page - don't put them within <Show>
|
|
7263
7273
|
const elements = $5vyXB$solidjsweb.ssr($fb29c6201c369e39$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(i18n_.search_recs_title_()), $5vyXB$solidjsweb.escape($fc23d7668ae0011d$export$a2cc176055f8f08()), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $f48d0fbb00835aaa$export$d21e32dfedac04be), $5vyXB$solidjsweb.mergeProps({
|
|
7264
7274
|
rows: rows_object,
|
package/server/latest/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { LegacyCategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/
|
|
|
7
7
|
import { BaseSearchRequestV2 } from "@depict-ai/types/api/BaseSearchRequestV2";
|
|
8
8
|
import { SearchSuggestionsRequestV2 } from "@depict-ai/types/api/SearchSuggestionsRequestV2";
|
|
9
9
|
import { ProductListingRequestV2 } from "@depict-ai/types/api/ProductListingRequestV2";
|
|
10
|
-
export const version = "2.1.
|
|
10
|
+
export const version = "2.1.24";
|
|
11
11
|
/**
|
|
12
12
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
13
13
|
*/
|
|
@@ -183,11 +183,13 @@ export const shopifyContainedImageContextSymbol: unique symbol;
|
|
|
183
183
|
* @property src image source
|
|
184
184
|
* @property aspectRatio aspect ratio of the image
|
|
185
185
|
* @property class extra class to add to the container
|
|
186
|
+
* @property alt alt text for the image
|
|
186
187
|
*/
|
|
187
188
|
export function ShopifyContainedImage(props: {
|
|
188
189
|
src: string;
|
|
189
190
|
aspectRatio: number;
|
|
190
191
|
class?: string;
|
|
192
|
+
alt?: string;
|
|
191
193
|
}): HTMLDivElement;
|
|
192
194
|
/** @jsxImportSource solid-js */
|
|
193
195
|
export function GenericSliderArrowButton(props?: {
|
package/server/latest/index.js
CHANGED
|
@@ -6,25 +6,25 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
|
|
|
6
6
|
/*! Depict.ai search and product listing SDK */
|
|
7
7
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
8
8
|
register_es_version("ui", "latest");
|
|
9
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.
|
|
9
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.24";
|
|
10
10
|
const $4147651646da990a$var$fallback_operator = "in";
|
|
11
11
|
const $4147651646da990a$var$fallback_token = "";
|
|
12
12
|
const $4147651646da990a$var$legacy_filter_prefix = "filter_";
|
|
13
13
|
const $4147651646da990a$var$operator_map = {
|
|
14
|
-
"eq": "
|
|
15
|
-
"neq": "
|
|
16
|
-
"in": "
|
|
17
|
-
"nin": "
|
|
18
|
-
"leq": "
|
|
19
|
-
"geq": "
|
|
14
|
+
"eq": "\u2261",
|
|
15
|
+
"neq": "\u2260",
|
|
16
|
+
"in": "\u2208",
|
|
17
|
+
"nin": "\u2209",
|
|
18
|
+
"leq": "\u2264",
|
|
19
|
+
"geq": "\u2265",
|
|
20
20
|
"inrange": "\uD83D\uDD22"
|
|
21
21
|
};
|
|
22
22
|
const $4147651646da990a$var$ascending_token = "\uD83D\uDCC8";
|
|
23
23
|
const $4147651646da990a$var$descending_token = "\uD83D\uDCC9";
|
|
24
24
|
const $4147651646da990a$var$range_delimiter = "-";
|
|
25
|
-
const $4147651646da990a$var$string_item_delimiter = "
|
|
26
|
-
const $4147651646da990a$var$array_item_delimiter = "
|
|
27
|
-
const $4147651646da990a$var$empty_item_replacement = "0
|
|
25
|
+
const $4147651646da990a$var$string_item_delimiter = "\u201A"; // This is not a comma but a comma-like character that browsers will render in the URL bar.
|
|
26
|
+
const $4147651646da990a$var$array_item_delimiter = "\u2023"; // FIXME: decide on a character. Could theoretically be a double string delimiter.
|
|
27
|
+
const $4147651646da990a$var$empty_item_replacement = "0\uFE0F\u20E3";
|
|
28
28
|
const $4147651646da990a$var$op_to_token = op => {
|
|
29
29
|
if (op === $4147651646da990a$var$fallback_operator) return $4147651646da990a$var$fallback_token;
|
|
30
30
|
return $4147651646da990a$var$operator_map[op];
|
|
@@ -382,6 +382,9 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
|
|
|
382
382
|
},
|
|
383
383
|
get src() {
|
|
384
384
|
return props.src;
|
|
385
|
+
},
|
|
386
|
+
get alt() {
|
|
387
|
+
return props.alt;
|
|
385
388
|
}
|
|
386
389
|
}));
|
|
387
390
|
return container;
|
|
@@ -1244,7 +1247,7 @@ function $91aa8ee9f431800d$export$325f75597868c4f0(stuff) {
|
|
|
1244
1247
|
}
|
|
1245
1248
|
const $1adfe60f3a14a1d7$var$_tmpl$ = ["<button", ' class="clear-all-filters minor">', "</button>"],
|
|
1246
1249
|
$1adfe60f3a14a1d7$var$_tmpl$2 = ["<div", ' class="inner"><span class="title"><!--$-->', "<!--/-->: </span><!--$-->", "<!--/--></div>"],
|
|
1247
|
-
$1adfe60f3a14a1d7$var$_tmpl$3 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/-->
|
|
1250
|
+
$1adfe60f3a14a1d7$var$_tmpl$3 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--> \u2013 <!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></span></button>"],
|
|
1248
1251
|
$1adfe60f3a14a1d7$var$_tmpl$4 = ["<button", ' class="clear-filter major"><!--$-->', "<!--/--><span>", "</span></button>"];
|
|
1249
1252
|
function $1adfe60f3a14a1d7$export$fecbb157621501bd({
|
|
1250
1253
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
@@ -2013,7 +2016,7 @@ function $522a690e0e2bd46d$var$cut_text(segmented_text) {
|
|
|
2013
2016
|
// identical split point, or split end before split start, can't do anything
|
|
2014
2017
|
split_start_segment == split_end_segment && split_start_character >= split_end_character || split_start_segment > split_end_segment) return;
|
|
2015
2018
|
const dots_segment = {
|
|
2016
|
-
text_: "
|
|
2019
|
+
text_: " \u2026 ",
|
|
2017
2020
|
highlighted_: false
|
|
2018
2021
|
};
|
|
2019
2022
|
const split_and_dotted_values = segmented_text.flatMap((segment, i) => {
|
|
@@ -2105,7 +2108,7 @@ function $522a690e0e2bd46d$var$cut_start(cut_left_of_index, segmented_text) {
|
|
|
2105
2108
|
if (character === "," || is_space)
|
|
2106
2109
|
// if we cut at a comma or psace, we add a … at the beginning
|
|
2107
2110
|
segmented_text.unshift({
|
|
2108
|
-
text_: "
|
|
2111
|
+
text_: "\u2026 ",
|
|
2109
2112
|
highlighted_: false
|
|
2110
2113
|
});
|
|
2111
2114
|
break outmost_loop;
|
|
@@ -2996,7 +2999,7 @@ function $a7b58cb3bcffd156$export$53c59af873b303c9({
|
|
|
2996
2999
|
get price_formatting_() {
|
|
2997
3000
|
return price_formatting_();
|
|
2998
3001
|
}
|
|
2999
|
-
}), price_formatting_().post_, "
|
|
3002
|
+
}), price_formatting_().post_, " \u2013 ", price_formatting_().pre_, $i7OB2$createComponent((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
|
|
3000
3003
|
get price_() {
|
|
3001
3004
|
return selected_filter.data[1];
|
|
3002
3005
|
},
|
|
@@ -3796,7 +3799,7 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
|
|
|
3796
3799
|
#get_session_id;
|
|
3797
3800
|
#guard_url_creator_length(expected, received) {
|
|
3798
3801
|
if (expected.length !== received.length) {
|
|
3799
|
-
const e = new Error("
|
|
3802
|
+
const e = new Error("displayTransformer returned wrong number of page URLs, got " + received.length + ", expected " + expected.length);
|
|
3800
3803
|
queueMicrotask(() => {
|
|
3801
3804
|
throw e;
|
|
3802
3805
|
});
|
|
@@ -3915,7 +3918,7 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
|
|
|
3915
3918
|
const unmodified_result = await api_response.json();
|
|
3916
3919
|
result = await this.#run_display_transformers_for_rest(input_req.tenant, input_req.market, unmodified_result);
|
|
3917
3920
|
} catch (e) {
|
|
3918
|
-
$i7OB2$dwarn("
|
|
3921
|
+
$i7OB2$dwarn("displayTransformer or json decoding failed", e);
|
|
3919
3922
|
break return_successfully;
|
|
3920
3923
|
}
|
|
3921
3924
|
// Here result actually becomes O
|
|
@@ -3969,7 +3972,7 @@ class $7fa23e2a0079eca4$export$e015ed2f2950f2e3 {
|
|
|
3969
3972
|
try {
|
|
3970
3973
|
return await this.#run_url_creator_for_suggest(input_req.tenant, input_req.market, decoded_json);
|
|
3971
3974
|
} catch (e) {
|
|
3972
|
-
$i7OB2$dwarn("
|
|
3975
|
+
$i7OB2$dwarn("displayTransformer failed", e);
|
|
3973
3976
|
}
|
|
3974
3977
|
}
|
|
3975
3978
|
return {
|
|
@@ -4102,7 +4105,7 @@ function $8f9120a1ca151e6a$export$205efb947c7ffd78(handler, passive = true) {
|
|
|
4102
4105
|
$i7OB2$onCleanup(() => removeEventListener(event, catchified_handler));
|
|
4103
4106
|
}
|
|
4104
4107
|
}
|
|
4105
|
-
const $6db49ca163afa2c3$var$_tmpl$ = ["<div", ' class="scroll-status" style="display:none"><span class="text"><b>', "</b>
|
|
4108
|
+
const $6db49ca163afa2c3$var$_tmpl$ = ["<div", ' class="scroll-status" style="display:none"><span class="text"><b>', "</b> \u2013 <b>", "</b> <!--$-->", "<!--/--> <b>", "</b></span></div>"];
|
|
4106
4109
|
function $6db49ca163afa2c3$export$83fd5de5504a7a67({
|
|
4107
4110
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
4108
4111
|
first_result_in_viewport_: [get_first_result_in_viewport],
|
|
@@ -6950,7 +6953,7 @@ function $961b5c64bef4662f$var$get_shared_properties(depict_category) {
|
|
|
6950
6953
|
if (!shared_properties) throw new Error("Can't connect to provided DepictCategory instance");
|
|
6951
6954
|
return shared_properties;
|
|
6952
6955
|
}
|
|
6953
|
-
const $e4615ecd1849548f$var$_tmpl$ = ["<div", ' class="category-title"><h1 class="title">', '</h1><span class="explanation">
|
|
6956
|
+
const $e4615ecd1849548f$var$_tmpl$ = ["<div", ' class="category-title"><h1 class="title">', '</h1><span class="explanation"> \u2014 <!--$-->', "<!--/--></span></div>"];
|
|
6954
6957
|
const $e4615ecd1849548f$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
|
|
6955
6958
|
const actual_function = ({
|
|
6956
6959
|
category_title_: category_title_,
|
|
@@ -7192,7 +7195,14 @@ function $172e1b898d457050$export$7de92c4c2205ebf3({
|
|
|
7192
7195
|
// only fetch/refetch if all products are loaded
|
|
7193
7196
|
query => query && depict_api_.get_recommended(query).then(r => r.displays));
|
|
7194
7197
|
const should_show = $i7OB2$createMemo(() => !!((recommendations_resource.loading || recommendations_resource()?.length) && all_products_loaded_()));
|
|
7195
|
-
const num_placeholders_ = $i7OB2$createMemo(() =>
|
|
7198
|
+
const num_placeholders_ = $i7OB2$createMemo(() => {
|
|
7199
|
+
const possible_num_columns = layout_options_().cols_at_size.map(([per_column]) => per_column);
|
|
7200
|
+
if (!possible_num_columns.length)
|
|
7201
|
+
// Empty cols_at_size, for example artilleriet has that
|
|
7202
|
+
// Assume there will be 4 columns
|
|
7203
|
+
possible_num_columns.push(4);
|
|
7204
|
+
return (0, $7747fe1a8c5652e3$export$6c9030e511152266) + get_showing_recommendation_rows() * Math.max(...possible_num_columns);
|
|
7205
|
+
});
|
|
7196
7206
|
// Don't tear down elements every time one updates the page - don't put them within <Show>
|
|
7197
7207
|
const elements = $i7OB2$ssr($172e1b898d457050$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape(i18n_.search_recs_title_()), $i7OB2$escape($a458486f22b22f63$export$a2cc176055f8f08()), $i7OB2$escape($i7OB2$createComponent((0, $c8d5ff4524619fcd$export$d21e32dfedac04be), $i7OB2$mergeProps1({
|
|
7198
7208
|
rows: rows_object,
|