@depict-ai/ui 4.2.2 → 4.3.1
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 +55 -87
- package/ES10/index.d.ts +5 -6
- package/ES10/index.js +55 -87
- package/README.md +1 -0
- package/latest/index.cjs +51 -75
- package/latest/index.d.ts +5 -6
- package/latest/index.js +51 -75
- package/package.json +2 -2
- package/server/ES10/index.cjs +17 -51
- package/server/ES10/index.d.ts +5 -6
- package/server/ES10/index.js +17 -51
- package/server/latest/index.cjs +16 -41
- package/server/latest/index.d.ts +5 -6
- package/server/latest/index.js +16 -41
package/server/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.3.1";
|
|
11
11
|
const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
|
|
12
12
|
const cols_at_size = [];
|
|
13
13
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -1110,7 +1110,7 @@ function $70bb27cc6be01fc7$export$9d4a4b669b1929ab(props) {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
}));
|
|
1112
1112
|
}
|
|
1113
|
-
var $5a6c386e1bde5665$var$_tmpl$ = ["<div", ' class="img-wrapper"
|
|
1113
|
+
var $5a6c386e1bde5665$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
|
|
1114
1114
|
$5a6c386e1bde5665$var$_tmpl$2 = ["<span", ' class="d-price original">', "</span>"],
|
|
1115
1115
|
$5a6c386e1bde5665$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container"><span class="d-title line-clamp">', '</span><span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
|
|
1116
1116
|
function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
|
|
@@ -1125,9 +1125,7 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
|
|
|
1125
1125
|
const display = display_();
|
|
1126
1126
|
return display?.variant_displays[display?.variant_index];
|
|
1127
1127
|
});
|
|
1128
|
-
const
|
|
1129
|
-
const imageUrl = $i7OB2$createMemo(() => imageUrls()?.[0]);
|
|
1130
|
-
const secondaryImageUrl = $i7OB2$createMemo(() => imageUrls()?.[1]);
|
|
1128
|
+
const imageUrl = $i7OB2$createMemo(() => variantToUse()?.image_urls?.[0]);
|
|
1131
1129
|
const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
|
|
1132
1130
|
const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $i7OB2$createSignal($i7OB2$untrack(isExpanded_));
|
|
1133
1131
|
const [animationEffectExists, setAnimationEffectExists] = $i7OB2$createSignal(false);
|
|
@@ -1169,24 +1167,6 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
|
|
|
1169
1167
|
}
|
|
1170
1168
|
});
|
|
1171
1169
|
}
|
|
1172
|
-
})), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|
|
1173
|
-
get when() {
|
|
1174
|
-
return secondaryImageUrl();
|
|
1175
|
-
},
|
|
1176
|
-
get children() {
|
|
1177
|
-
return $i7OB2$createComponent((0, $70bb27cc6be01fc7$export$9d4a4b669b1929ab), {
|
|
1178
|
-
get src() {
|
|
1179
|
-
return secondaryImageUrl();
|
|
1180
|
-
},
|
|
1181
|
-
get aspectRatio() {
|
|
1182
|
-
return isExpanded_() ? 0.75 : 1;
|
|
1183
|
-
},
|
|
1184
|
-
"class": "secondary",
|
|
1185
|
-
get autoAdjustAspectRatio() {
|
|
1186
|
-
return isExpanded_() ? "smoothed" : false;
|
|
1187
|
-
}
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
1170
|
})));
|
|
1191
1171
|
}
|
|
1192
1172
|
})), "<!--/-->", "<!--$-->", $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|
|
@@ -9427,7 +9407,8 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
9427
9407
|
selected_filters_: selected_filters_,
|
|
9428
9408
|
local_filter_cache_: local_filter_cache_,
|
|
9429
9409
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
9430
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
9410
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
9411
|
+
filterModalParent_: filterModalParent_
|
|
9431
9412
|
}) {
|
|
9432
9413
|
const Self = () => {
|
|
9433
9414
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -9539,7 +9520,7 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
9539
9520
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
9540
9521
|
dismiss_modal_: dismiss_modal_,
|
|
9541
9522
|
i18n_: i18n_
|
|
9542
|
-
}));
|
|
9523
|
+
}, filterModalParent_));
|
|
9543
9524
|
const {
|
|
9544
9525
|
remove: remove
|
|
9545
9526
|
} = $i7OB2$javascript_media_query("(max-width:651px)", ({
|
|
@@ -10360,7 +10341,6 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10360
10341
|
market_: market_,
|
|
10361
10342
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
10362
10343
|
layout_options_: layout_options_,
|
|
10363
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
10364
10344
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
10365
10345
|
product_card_template_: product_card_template_,
|
|
10366
10346
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -10370,7 +10350,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10370
10350
|
content_search_enabled_: content_search_enabled_,
|
|
10371
10351
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
10372
10352
|
modalVersionUsed_: modalVersionUsed_,
|
|
10373
|
-
BackIcon_: BackIcon_
|
|
10353
|
+
BackIcon_: BackIcon_,
|
|
10354
|
+
filterModalParent_: filterModalParent_
|
|
10374
10355
|
}) {
|
|
10375
10356
|
const [get_sorting] = current_sorting_;
|
|
10376
10357
|
const all_products_loaded_ = $i7OB2$createSignal(false);
|
|
@@ -10476,7 +10457,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10476
10457
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
10477
10458
|
local_filter_cache_: local_filter_cache_,
|
|
10478
10459
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
10479
|
-
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
|
|
10460
|
+
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
10461
|
+
filterModalParent_: filterModalParent_
|
|
10480
10462
|
});
|
|
10481
10463
|
const results_filters = $i7OB2$createSignal();
|
|
10482
10464
|
const owner = $i7OB2$getOwner();
|
|
@@ -10694,9 +10676,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10694
10676
|
depict_api_: depict_api_,
|
|
10695
10677
|
i18n_: i18n_,
|
|
10696
10678
|
search_query_base_: search_query_base_,
|
|
10697
|
-
|
|
10698
|
-
return $i7OB2$createMemo(() => recommendations_layout_options_?.() ?? layout_options_());
|
|
10699
|
-
},
|
|
10679
|
+
layout_options_: layout_options_,
|
|
10700
10680
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
10701
10681
|
product_card_template_: product_card_template_,
|
|
10702
10682
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -11104,15 +11084,7 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
|
|
|
11104
11084
|
cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77($1848f7cca286fbab$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
11105
11085
|
...grid_spacing_override()
|
|
11106
11086
|
})),
|
|
11107
|
-
|
|
11108
|
-
const {
|
|
11109
|
-
extra_depict_options: extra_depict_options
|
|
11110
|
-
} = props;
|
|
11111
|
-
return extra_depict_options?.recommendations_cols_at_size ? {
|
|
11112
|
-
cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
11113
|
-
...grid_spacing_override()
|
|
11114
|
-
} : undefined;
|
|
11115
|
-
}),
|
|
11087
|
+
filterModalParent_: $i7OB2$untrack(() => props.filterModalParent_),
|
|
11116
11088
|
product_card_template_: product_card_template
|
|
11117
11089
|
});
|
|
11118
11090
|
}, "Entire SearchPage failed");
|
|
@@ -11866,7 +11838,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
11866
11838
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
11867
11839
|
sorting_query_param_: sorting_query_param_,
|
|
11868
11840
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
11869
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
11841
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
11842
|
+
filterModalParent_: filterModalParent_
|
|
11870
11843
|
}) {
|
|
11871
11844
|
let results_for;
|
|
11872
11845
|
let only_show_filters_opener_;
|
|
@@ -12034,6 +12007,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
12034
12007
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12035
12008
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
12036
12009
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
12010
|
+
filterModalParent_: filterModalParent_,
|
|
12037
12011
|
...extra_sort_and_filter_args_
|
|
12038
12012
|
});
|
|
12039
12013
|
$i7OB2$catchify1((0, $641bba2917fe862b$export$6e49da55e449af7c))({
|
|
@@ -12275,6 +12249,7 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
|
|
|
12275
12249
|
category_sorting_open_: category_sorting_open_,
|
|
12276
12250
|
expanded_filters_: expanded_filters_,
|
|
12277
12251
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12252
|
+
filterModalParent_: $i7OB2$untrack(() => props.filterModalParent_),
|
|
12278
12253
|
selected_filters_: selected_filters_,
|
|
12279
12254
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12280
12255
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|