@depict-ai/ui 4.8.16 → 4.8.17
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 +45 -14
- package/ES10/index.d.ts +8 -4
- package/ES10/index.js +45 -14
- package/latest/index.cjs +45 -14
- package/latest/index.d.ts +8 -4
- package/latest/index.js +45 -14
- package/package.json +2 -2
- package/server/ES10/index.cjs +33 -9
- package/server/ES10/index.d.ts +8 -4
- package/server/ES10/index.js +33 -9
- package/server/latest/index.cjs +33 -9
- package/server/latest/index.d.ts +8 -4
- package/server/latest/index.js +33 -9
package/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { dlog as $9HbP8$dlog, catchify as $9HbP8$catchify1, ListenableSet as $9H
|
|
|
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.8.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.17";
|
|
11
11
|
function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
|
|
12
12
|
const [width, setWidth] = $9HbP8$createSignal(0);
|
|
13
13
|
const [height, setHeight] = $9HbP8$createSignal(0);
|
|
@@ -912,7 +912,9 @@ function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
|
|
|
912
912
|
})();
|
|
913
913
|
}
|
|
914
914
|
var $f32e14878e75af51$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div>`),
|
|
915
|
-
$f32e14878e75af51$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<
|
|
915
|
+
$f32e14878e75af51$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<button aria-label="Scroll left"class="left d-navbutton"type=button>`),
|
|
916
|
+
$f32e14878e75af51$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<button aria-label="Scroll right"class="right d-navbutton"type=button>`),
|
|
917
|
+
$f32e14878e75af51$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class="depict-slider depict"><!$><!/><div class=sliding>`);
|
|
916
918
|
const $f32e14878e75af51$var$SlidableContext = /*@__PURE__*/$9HbP8$createContext();
|
|
917
919
|
function $f32e14878e75af51$export$6649caad96ef8870(props) {
|
|
918
920
|
const {
|
|
@@ -947,12 +949,26 @@ function $f32e14878e75af51$export$6649caad96ef8870(props) {
|
|
|
947
949
|
},
|
|
948
950
|
get fallback() {
|
|
949
951
|
return (() => {
|
|
950
|
-
var _el$2 = $9HbP8$getNextElement($f32e14878e75af51$var$_tmpl$
|
|
951
|
-
_el$
|
|
952
|
-
_el$
|
|
953
|
-
_el$5 = _el$
|
|
954
|
-
$9HbP8$insert(_el$
|
|
955
|
-
|
|
952
|
+
var _el$2 = $9HbP8$getNextElement($f32e14878e75af51$var$_tmpl$4),
|
|
953
|
+
_el$6 = _el$2.firstChild,
|
|
954
|
+
[_el$7, _co$] = $9HbP8$getNextMarker(_el$6.nextSibling),
|
|
955
|
+
_el$5 = _el$7.nextSibling;
|
|
956
|
+
$9HbP8$insert(_el$2, $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
957
|
+
get when() {
|
|
958
|
+
return props.showArrow_ !== false;
|
|
959
|
+
},
|
|
960
|
+
get children() {
|
|
961
|
+
return [(() => {
|
|
962
|
+
var _el$3 = $9HbP8$getNextElement($f32e14878e75af51$var$_tmpl$2);
|
|
963
|
+
$9HbP8$insert(_el$3, $9HbP8$createComponent(MakeButton, {}));
|
|
964
|
+
return _el$3;
|
|
965
|
+
})(), (() => {
|
|
966
|
+
var _el$4 = $9HbP8$getNextElement($f32e14878e75af51$var$_tmpl$3);
|
|
967
|
+
$9HbP8$insert(_el$4, $9HbP8$createComponent(MakeButton, {}));
|
|
968
|
+
return _el$4;
|
|
969
|
+
})()];
|
|
970
|
+
}
|
|
971
|
+
}), _el$7, _co$);
|
|
956
972
|
$9HbP8$insert(_el$5, () => props.children);
|
|
957
973
|
return _el$2;
|
|
958
974
|
})();
|
|
@@ -966,8 +982,8 @@ function $f32e14878e75af51$export$6649caad96ef8870(props) {
|
|
|
966
982
|
});
|
|
967
983
|
const slider = new (0, $9HbP8$Amazing_Slider)({
|
|
968
984
|
button_contents: {
|
|
969
|
-
left: [MakeButton()],
|
|
970
|
-
right: [MakeButton()]
|
|
985
|
+
left: props.showArrow_ === false ? [] : [MakeButton()],
|
|
986
|
+
right: props.showArrow_ === false ? [] : [MakeButton()]
|
|
971
987
|
},
|
|
972
988
|
constructor_plugins: [$9HbP8$slider_snap_css(0, {
|
|
973
989
|
align: snapAlign_
|
|
@@ -1617,7 +1633,8 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
|
|
|
1617
1633
|
layout_options_: layout_options_,
|
|
1618
1634
|
title_: title_,
|
|
1619
1635
|
NoResultsFallback_: NoResultsFallback_,
|
|
1620
|
-
placeholderCacheKey_: placeholderCacheKey_
|
|
1636
|
+
placeholderCacheKey_: placeholderCacheKey_,
|
|
1637
|
+
showSliderArrow_: showSliderArrow_
|
|
1621
1638
|
}) {
|
|
1622
1639
|
const is_showing_something = $9HbP8$createMemo(() => recommendations_resource_.loading || recommendations_resource_()?.length);
|
|
1623
1640
|
const title = $9HbP8$createMemo(() => title_?.()); // In case getter/accessor creates elements, don't create them twice
|
|
@@ -1635,6 +1652,9 @@ function $c4492d24952ed731$export$d41d19e89346fa2({
|
|
|
1635
1652
|
arrow_height_: 25,
|
|
1636
1653
|
arrow_width_: 12.5,
|
|
1637
1654
|
disable_fading_: true,
|
|
1655
|
+
get showArrow_() {
|
|
1656
|
+
return showSliderArrow_?.();
|
|
1657
|
+
},
|
|
1638
1658
|
slider_ref_: slider => {
|
|
1639
1659
|
const {
|
|
1640
1660
|
insert_here: insert_here,
|
|
@@ -6467,6 +6487,7 @@ function $ee116da074deb002$export$9574e176201e5e8d(props) {
|
|
|
6467
6487
|
return $c4492d24952ed731$export$d41d19e89346fa2({
|
|
6468
6488
|
product_card_template_: (...args) => props.product_card_template(...args),
|
|
6469
6489
|
recommendations_resource_: recommendations_resource_,
|
|
6490
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
6470
6491
|
title_: () => props.title,
|
|
6471
6492
|
layout_options_: $9HbP8$createMemo(() => ({
|
|
6472
6493
|
cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -11343,7 +11364,8 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
|
|
|
11343
11364
|
id_currently_querying_for_: id_currently_querying_for_,
|
|
11344
11365
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
11345
11366
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
11346
|
-
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
|
|
11367
|
+
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
11368
|
+
showSliderArrow_: showSliderArrow_
|
|
11347
11369
|
}) {
|
|
11348
11370
|
// The plp_results_ resource will be delayed because we're using createBatchedMemo to not make triplicate API requests, but we need to show the placeholders before already to match Chrome and Firefox's "content has to be there, ready for scroll restoration, before all popstate tasks have been completed"-requirement
|
|
11349
11371
|
const is_loading_ = $9HbP8$createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -11524,6 +11546,9 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
|
|
|
11524
11546
|
arrow_height_: 25,
|
|
11525
11547
|
arrow_width_: 12.5,
|
|
11526
11548
|
disable_fading_: true,
|
|
11549
|
+
get showArrow_() {
|
|
11550
|
+
return showSliderArrow_();
|
|
11551
|
+
},
|
|
11527
11552
|
slider_ref_: slider => {
|
|
11528
11553
|
const {
|
|
11529
11554
|
insert_here: insert_here,
|
|
@@ -13287,7 +13312,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
13287
13312
|
modalVersionUsed_: modalVersionUsed_,
|
|
13288
13313
|
BackIcon_: BackIcon_,
|
|
13289
13314
|
filterModalParent_: filterModalParent_,
|
|
13290
|
-
class_: class_
|
|
13315
|
+
class_: class_,
|
|
13316
|
+
showSliderArrow_: showSliderArrow_
|
|
13291
13317
|
}) {
|
|
13292
13318
|
const [get_sorting] = current_sorting_;
|
|
13293
13319
|
const all_products_loaded_ = $9HbP8$createSignal(false);
|
|
@@ -13627,6 +13653,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
13627
13653
|
id_currently_querying_for_: get_search_query_,
|
|
13628
13654
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
13629
13655
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
13656
|
+
showSliderArrow_: showSliderArrow_,
|
|
13630
13657
|
no_results_options_: {
|
|
13631
13658
|
selected_filters_: selected_filters_,
|
|
13632
13659
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -14032,6 +14059,7 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
|
|
|
14032
14059
|
open_modal_: (...args) => depict_search.modal_open = args,
|
|
14033
14060
|
submit_query_: shared_properties.configured_submit_query_,
|
|
14034
14061
|
modalVersionUsed_: shared_properties.modalVersionUsed_,
|
|
14062
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
14035
14063
|
i18n_: shared_properties.i18n_,
|
|
14036
14064
|
modalAlignmentSignalsRef_: style => {
|
|
14037
14065
|
const shared_info_right_now = $806c97b931758897$export$dde08b2dca8cc1ce.get(depict_search);
|
|
@@ -15072,7 +15100,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
15072
15100
|
sorting_query_param_: sorting_query_param_,
|
|
15073
15101
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
15074
15102
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
15075
|
-
filterModalParent_: filterModalParent_
|
|
15103
|
+
filterModalParent_: filterModalParent_,
|
|
15104
|
+
showSliderArrow_: showSliderArrow_
|
|
15076
15105
|
}) {
|
|
15077
15106
|
let results_for;
|
|
15078
15107
|
let only_show_filters_opener_;
|
|
@@ -15430,6 +15459,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
15430
15459
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
15431
15460
|
id_currently_querying_for_: id_to_query_for_,
|
|
15432
15461
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
15462
|
+
showSliderArrow_: showSliderArrow_,
|
|
15433
15463
|
all_products_loaded_: all_products_loaded_,
|
|
15434
15464
|
no_results_options_: {
|
|
15435
15465
|
selected_filters_: selected_filters_,
|
|
@@ -15568,6 +15598,7 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
|
|
|
15568
15598
|
selected_filters_: selected_filters_,
|
|
15569
15599
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
15570
15600
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
15601
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
15571
15602
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
15572
15603
|
history_content_blocks_: history_content_blocks_,
|
|
15573
15604
|
layout_options_: $9HbP8$createMemo(() => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.17",
|
|
4
4
|
"description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
|
|
5
5
|
"packageManager": "yarn@3.2.2",
|
|
6
6
|
"sass": "styles.scss",
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
"@babel/plugin-transform-typescript": "^7.22.9",
|
|
237
237
|
"@babel/runtime": "latest",
|
|
238
238
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
239
|
-
"@depict-ai/plp-styling": "^4.4.
|
|
239
|
+
"@depict-ai/plp-styling": "^4.4.18",
|
|
240
240
|
"@depict-ai/types": "^5.4.4",
|
|
241
241
|
"@depict-ai/utilishared": "^2.4.5",
|
|
242
242
|
"solid-js": "^1.8.16"
|
package/server/ES10/index.cjs
CHANGED
|
@@ -114,7 +114,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
114
114
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
115
115
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
116
116
|
/*! Depict.ai search and product listing SDK */
|
|
117
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.
|
|
117
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.17";
|
|
118
118
|
function $054b1113e4897051$export$54c6d6ff54e72743(whatToWatch) {
|
|
119
119
|
const [width, setWidth] = $3hooq$solidjs.createSignal(0);
|
|
120
120
|
const [height, setHeight] = $3hooq$solidjs.createSignal(0);
|
|
@@ -836,7 +836,9 @@ function $9d19451330d04c3c$export$8be2714ec7f169ee() {
|
|
|
836
836
|
return $3hooq$solidjsweb.ssr($9d19451330d04c3c$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrAttribute("width", (_$escape2 = $3hooq$solidjsweb.escape(props.width_, true)) !== null && _$escape2 !== void 0 ? _$escape2 : 14, false) + $3hooq$solidjsweb.ssrAttribute("height", (_$escape3 = $3hooq$solidjsweb.escape(props.height_, true)) !== null && _$escape3 !== void 0 ? _$escape3 : 26, false));
|
|
837
837
|
}
|
|
838
838
|
var $ad8ec7729fffeb9c$var$_tmpl$ = ["<div", ">", "</div>"],
|
|
839
|
-
$ad8ec7729fffeb9c$var$_tmpl$2 = ["<
|
|
839
|
+
$ad8ec7729fffeb9c$var$_tmpl$2 = ["<button", ' aria-label="Scroll left" class="left d-navbutton" type="button">', "</button>"],
|
|
840
|
+
$ad8ec7729fffeb9c$var$_tmpl$3 = ["<button", ' aria-label="Scroll right" class="right d-navbutton" type="button">', "</button>"],
|
|
841
|
+
$ad8ec7729fffeb9c$var$_tmpl$4 = ["<div", ' class="depict-slider depict"><!--$-->', '<!--/--><div class="sliding">', "</div></div>"];
|
|
840
842
|
const $ad8ec7729fffeb9c$var$SlidableContext = /*@__PURE__*/$3hooq$solidjs.createContext();
|
|
841
843
|
function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
|
|
842
844
|
const {
|
|
@@ -866,7 +868,14 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
|
|
|
866
868
|
return hasHydrated() && !(0, $3hooq$solidjsweb.isServer);
|
|
867
869
|
},
|
|
868
870
|
get fallback() {
|
|
869
|
-
return $3hooq$solidjsweb.ssr($ad8ec7729fffeb9c$var$_tmpl$
|
|
871
|
+
return $3hooq$solidjsweb.ssr($ad8ec7729fffeb9c$var$_tmpl$4, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
872
|
+
get when() {
|
|
873
|
+
return props.showArrow_ !== false;
|
|
874
|
+
},
|
|
875
|
+
get children() {
|
|
876
|
+
return [$3hooq$solidjsweb.ssr($ad8ec7729fffeb9c$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(MakeButton, {}))), $3hooq$solidjsweb.ssr($ad8ec7729fffeb9c$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(MakeButton, {})))];
|
|
877
|
+
}
|
|
878
|
+
})), $3hooq$solidjsweb.escape(props.children));
|
|
870
879
|
},
|
|
871
880
|
get children() {
|
|
872
881
|
return (() => {
|
|
@@ -877,8 +886,8 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
|
|
|
877
886
|
});
|
|
878
887
|
const slider = new (0, $3hooq$depictaiutilishared.Amazing_Slider)({
|
|
879
888
|
button_contents: {
|
|
880
|
-
left: [MakeButton()],
|
|
881
|
-
right: [MakeButton()]
|
|
889
|
+
left: props.showArrow_ === false ? [] : [MakeButton()],
|
|
890
|
+
right: props.showArrow_ === false ? [] : [MakeButton()]
|
|
882
891
|
},
|
|
883
892
|
constructor_plugins: [$3hooq$depictaiutilishared.slider_snap_css(0, {
|
|
884
893
|
align: snapAlign_
|
|
@@ -1571,7 +1580,8 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
|
|
|
1571
1580
|
layout_options_: layout_options_,
|
|
1572
1581
|
title_: title_,
|
|
1573
1582
|
NoResultsFallback_: NoResultsFallback_,
|
|
1574
|
-
placeholderCacheKey_: placeholderCacheKey_
|
|
1583
|
+
placeholderCacheKey_: placeholderCacheKey_,
|
|
1584
|
+
showSliderArrow_: showSliderArrow_
|
|
1575
1585
|
} = _ref;
|
|
1576
1586
|
const is_showing_something = $3hooq$solidjs.createMemo(() => {
|
|
1577
1587
|
var _recommendations_reso;
|
|
@@ -1590,6 +1600,9 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
|
|
|
1590
1600
|
arrow_height_: 25,
|
|
1591
1601
|
arrow_width_: 12.5,
|
|
1592
1602
|
disable_fading_: true,
|
|
1603
|
+
get showArrow_() {
|
|
1604
|
+
return showSliderArrow_ === null || showSliderArrow_ === void 0 ? void 0 : showSliderArrow_();
|
|
1605
|
+
},
|
|
1593
1606
|
slider_ref_: slider => {
|
|
1594
1607
|
const {
|
|
1595
1608
|
insert_here: insert_here,
|
|
@@ -5565,6 +5578,7 @@ function $2badc30d7c6610e1$export$9574e176201e5e8d(props) {
|
|
|
5565
5578
|
return props.product_card_template(...arguments);
|
|
5566
5579
|
},
|
|
5567
5580
|
recommendations_resource_: recommendations_resource_,
|
|
5581
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
5568
5582
|
title_: () => props.title,
|
|
5569
5583
|
layout_options_: $3hooq$solidjs.createMemo(() => ({
|
|
5570
5584
|
cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -10156,7 +10170,8 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
|
|
|
10156
10170
|
id_currently_querying_for_: id_currently_querying_for_,
|
|
10157
10171
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
10158
10172
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
10159
|
-
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
|
|
10173
|
+
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
10174
|
+
showSliderArrow_: showSliderArrow_
|
|
10160
10175
|
} = _ref;
|
|
10161
10176
|
// The plp_results_ resource will be delayed because we're using createBatchedMemo to not make triplicate API requests, but we need to show the placeholders before already to match Chrome and Firefox's "content has to be there, ready for scroll restoration, before all popstate tasks have been completed"-requirement
|
|
10162
10177
|
const is_loading_ = $3hooq$solidjs.createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -10337,6 +10352,9 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
|
|
|
10337
10352
|
arrow_height_: 25,
|
|
10338
10353
|
arrow_width_: 12.5,
|
|
10339
10354
|
disable_fading_: true,
|
|
10355
|
+
get showArrow_() {
|
|
10356
|
+
return showSliderArrow_();
|
|
10357
|
+
},
|
|
10340
10358
|
slider_ref_: slider => {
|
|
10341
10359
|
const {
|
|
10342
10360
|
insert_here: insert_here,
|
|
@@ -11709,7 +11727,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
11709
11727
|
modalVersionUsed_: modalVersionUsed_,
|
|
11710
11728
|
BackIcon_: BackIcon_,
|
|
11711
11729
|
filterModalParent_: filterModalParent_,
|
|
11712
|
-
class_: class_
|
|
11730
|
+
class_: class_,
|
|
11731
|
+
showSliderArrow_: showSliderArrow_
|
|
11713
11732
|
} = _ref;
|
|
11714
11733
|
const [get_sorting] = current_sorting_;
|
|
11715
11734
|
const all_products_loaded_ = $3hooq$solidjs.createSignal(false);
|
|
@@ -12033,6 +12052,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
12033
12052
|
id_currently_querying_for_: get_search_query_,
|
|
12034
12053
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
12035
12054
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
12055
|
+
showSliderArrow_: showSliderArrow_,
|
|
12036
12056
|
no_results_options_: {
|
|
12037
12057
|
selected_filters_: selected_filters_,
|
|
12038
12058
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -12510,6 +12530,7 @@ function $ddd39c5f36f49703$export$f2dc7e4e4aa11abb(props) {
|
|
|
12510
12530
|
},
|
|
12511
12531
|
submit_query_: shared_properties.configured_submit_query_,
|
|
12512
12532
|
modalVersionUsed_: shared_properties.modalVersionUsed_,
|
|
12533
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
12513
12534
|
i18n_: shared_properties.i18n_,
|
|
12514
12535
|
modalAlignmentSignalsRef_: style => {
|
|
12515
12536
|
const shared_info_right_now = $ddd39c5f36f49703$export$dde08b2dca8cc1ce.get(depict_search);
|
|
@@ -13583,7 +13604,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
13583
13604
|
sorting_query_param_: sorting_query_param_,
|
|
13584
13605
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
13585
13606
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
13586
|
-
filterModalParent_: filterModalParent_
|
|
13607
|
+
filterModalParent_: filterModalParent_,
|
|
13608
|
+
showSliderArrow_: showSliderArrow_
|
|
13587
13609
|
} = _ref;
|
|
13588
13610
|
let results_for;
|
|
13589
13611
|
let only_show_filters_opener_;
|
|
@@ -13920,6 +13942,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
13920
13942
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
13921
13943
|
id_currently_querying_for_: id_to_query_for_,
|
|
13922
13944
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
13945
|
+
showSliderArrow_: showSliderArrow_,
|
|
13923
13946
|
all_products_loaded_: all_products_loaded_,
|
|
13924
13947
|
no_results_options_: {
|
|
13925
13948
|
selected_filters_: selected_filters_,
|
|
@@ -14062,6 +14085,7 @@ function $c10e33c4681f8c9b$export$e2bf8ce7779e827e(props) {
|
|
|
14062
14085
|
selected_filters_: selected_filters_,
|
|
14063
14086
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
14064
14087
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
14088
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
14065
14089
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
14066
14090
|
history_content_blocks_: history_content_blocks_,
|
|
14067
14091
|
layout_options_: $3hooq$solidjs.createMemo(() => ({
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.8.
|
|
14
|
+
export const version = "4.8.17";
|
|
15
15
|
/**
|
|
16
16
|
* Returns two accessors (one width and one height) that will update when the size of the provided element changes, to be used with ResponsiveImg
|
|
17
17
|
*/
|
|
@@ -73,7 +73,7 @@ export const getExtraDisplayTransformers: () => ExtraDisplayTransformers<any, an
|
|
|
73
73
|
* When called from inside the shopify apps product card editor, this registers extra display transformers to be ran alongside Depict's default added ones. The ones for products and content will run after Depicts but the ones for categories will run before Depicts.
|
|
74
74
|
* @param displayTransformers
|
|
75
75
|
*/
|
|
76
|
-
export const setExtraDisplayTransformers: <InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay =
|
|
76
|
+
export const setExtraDisplayTransformers: <InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay = InputDisplay>(displayTransformers: ExtraDisplayTransformers<InputDisplay, OutputDisplay>) => ExtraDisplayTransformers<InputDisplay, OutputDisplay>;
|
|
77
77
|
type ExtraDisplayTransformers<InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay | never> = {
|
|
78
78
|
products?: (options: DisplayTransformerAlwaysThereData & {
|
|
79
79
|
displays: InputDisplay[];
|
|
@@ -321,6 +321,7 @@ export function SlidableItems(props: {
|
|
|
321
321
|
mutation_plugins_?: ((this: Amazing_Slider, mutations: IntersectionObserverEntry[], intersecting_items: Record<number, IntersectionObserverEntry>) => unknown)[];
|
|
322
322
|
arrow_width_?: number;
|
|
323
323
|
arrow_height_?: number;
|
|
324
|
+
showArrow_?: boolean;
|
|
324
325
|
}): JSX.Element;
|
|
325
326
|
/**
|
|
326
327
|
* Use this inside the children of a <SlidableItems> component to get the slider instance and a signal that contains the latest intersection obsrever entries (note they are accessible on the slider instance in a processed format already at the time this acessor updates)
|
|
@@ -1167,6 +1168,7 @@ export function RecommendationSlider<T extends Display>(props: {
|
|
|
1167
1168
|
recommendations: Promise<T[]>;
|
|
1168
1169
|
title?: JSX.Element;
|
|
1169
1170
|
product_card_template: ProductCardTemplate<T>;
|
|
1171
|
+
showSliderArrow_?: boolean;
|
|
1170
1172
|
class?: string;
|
|
1171
1173
|
}): HTMLDivElement;
|
|
1172
1174
|
export function ExpandingDetails(props: {
|
|
@@ -1492,6 +1494,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1492
1494
|
on_query_change?: (new_query?: string | undefined, old_query?: string | undefined) => void;
|
|
1493
1495
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1494
1496
|
class?: string;
|
|
1497
|
+
showSliderArrow_?: boolean;
|
|
1495
1498
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1496
1499
|
/**
|
|
1497
1500
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1531,7 +1534,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1531
1534
|
* Open the modal with support for alignment.
|
|
1532
1535
|
* @returns {void}
|
|
1533
1536
|
*/
|
|
1534
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1537
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1535
1538
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1536
1539
|
export interface PageReplacer {
|
|
1537
1540
|
readonly render_: () => Node_Array;
|
|
@@ -1610,5 +1613,6 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1610
1613
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1611
1614
|
layout?: PossibleLayout;
|
|
1612
1615
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1613
|
-
|
|
1616
|
+
showSliderArrow_?: boolean;
|
|
1617
|
+
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1614
1618
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/server/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.17";
|
|
14
14
|
function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
|
|
15
15
|
const [width, setWidth] = $b8hua$createSignal(0);
|
|
16
16
|
const [height, setHeight] = $b8hua$createSignal(0);
|
|
@@ -732,7 +732,9 @@ function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
|
|
|
732
732
|
return $b8hua$ssr($ca6ab5f08bd28bca$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("width", (_$escape2 = $b8hua$escape(props.width_, true)) !== null && _$escape2 !== void 0 ? _$escape2 : 14, false) + $b8hua$ssrAttribute("height", (_$escape3 = $b8hua$escape(props.height_, true)) !== null && _$escape3 !== void 0 ? _$escape3 : 26, false));
|
|
733
733
|
}
|
|
734
734
|
var $002f09d00aac50b2$var$_tmpl$ = ["<div", ">", "</div>"],
|
|
735
|
-
$002f09d00aac50b2$var$_tmpl$2 = ["<
|
|
735
|
+
$002f09d00aac50b2$var$_tmpl$2 = ["<button", ' aria-label="Scroll left" class="left d-navbutton" type="button">', "</button>"],
|
|
736
|
+
$002f09d00aac50b2$var$_tmpl$3 = ["<button", ' aria-label="Scroll right" class="right d-navbutton" type="button">', "</button>"],
|
|
737
|
+
$002f09d00aac50b2$var$_tmpl$4 = ["<div", ' class="depict-slider depict"><!--$-->', '<!--/--><div class="sliding">', "</div></div>"];
|
|
736
738
|
const $002f09d00aac50b2$var$SlidableContext = /*@__PURE__*/$b8hua$createContext();
|
|
737
739
|
function $002f09d00aac50b2$export$6649caad96ef8870(props) {
|
|
738
740
|
const {
|
|
@@ -762,7 +764,14 @@ function $002f09d00aac50b2$export$6649caad96ef8870(props) {
|
|
|
762
764
|
return hasHydrated() && !(0, $b8hua$isServer);
|
|
763
765
|
},
|
|
764
766
|
get fallback() {
|
|
765
|
-
return $b8hua$ssr($002f09d00aac50b2$var$_tmpl$
|
|
767
|
+
return $b8hua$ssr($002f09d00aac50b2$var$_tmpl$4, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
768
|
+
get when() {
|
|
769
|
+
return props.showArrow_ !== false;
|
|
770
|
+
},
|
|
771
|
+
get children() {
|
|
772
|
+
return [$b8hua$ssr($002f09d00aac50b2$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent(MakeButton, {}))), $b8hua$ssr($002f09d00aac50b2$var$_tmpl$3, $b8hua$ssrHydrationKey(), $b8hua$escape($b8hua$createComponent(MakeButton, {})))];
|
|
773
|
+
}
|
|
774
|
+
})), $b8hua$escape(props.children));
|
|
766
775
|
},
|
|
767
776
|
get children() {
|
|
768
777
|
return (() => {
|
|
@@ -773,8 +782,8 @@ function $002f09d00aac50b2$export$6649caad96ef8870(props) {
|
|
|
773
782
|
});
|
|
774
783
|
const slider = new (0, $b8hua$Amazing_Slider)({
|
|
775
784
|
button_contents: {
|
|
776
|
-
left: [MakeButton()],
|
|
777
|
-
right: [MakeButton()]
|
|
785
|
+
left: props.showArrow_ === false ? [] : [MakeButton()],
|
|
786
|
+
right: props.showArrow_ === false ? [] : [MakeButton()]
|
|
778
787
|
},
|
|
779
788
|
constructor_plugins: [$b8hua$slider_snap_css(0, {
|
|
780
789
|
align: snapAlign_
|
|
@@ -1467,7 +1476,8 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
|
|
|
1467
1476
|
layout_options_: layout_options_,
|
|
1468
1477
|
title_: title_,
|
|
1469
1478
|
NoResultsFallback_: NoResultsFallback_,
|
|
1470
|
-
placeholderCacheKey_: placeholderCacheKey_
|
|
1479
|
+
placeholderCacheKey_: placeholderCacheKey_,
|
|
1480
|
+
showSliderArrow_: showSliderArrow_
|
|
1471
1481
|
} = _ref;
|
|
1472
1482
|
const is_showing_something = $b8hua$createMemo(() => {
|
|
1473
1483
|
var _recommendations_reso;
|
|
@@ -1486,6 +1496,9 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
|
|
|
1486
1496
|
arrow_height_: 25,
|
|
1487
1497
|
arrow_width_: 12.5,
|
|
1488
1498
|
disable_fading_: true,
|
|
1499
|
+
get showArrow_() {
|
|
1500
|
+
return showSliderArrow_ === null || showSliderArrow_ === void 0 ? void 0 : showSliderArrow_();
|
|
1501
|
+
},
|
|
1489
1502
|
slider_ref_: slider => {
|
|
1490
1503
|
const {
|
|
1491
1504
|
insert_here: insert_here,
|
|
@@ -5461,6 +5474,7 @@ function $d5d7e58c5c9d8db0$export$9574e176201e5e8d(props) {
|
|
|
5461
5474
|
return props.product_card_template(...arguments);
|
|
5462
5475
|
},
|
|
5463
5476
|
recommendations_resource_: recommendations_resource_,
|
|
5477
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
5464
5478
|
title_: () => props.title,
|
|
5465
5479
|
layout_options_: $b8hua$createMemo(() => ({
|
|
5466
5480
|
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -10052,7 +10066,8 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
|
|
|
10052
10066
|
id_currently_querying_for_: id_currently_querying_for_,
|
|
10053
10067
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
10054
10068
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
10055
|
-
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
|
|
10069
|
+
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
10070
|
+
showSliderArrow_: showSliderArrow_
|
|
10056
10071
|
} = _ref;
|
|
10057
10072
|
// The plp_results_ resource will be delayed because we're using createBatchedMemo to not make triplicate API requests, but we need to show the placeholders before already to match Chrome and Firefox's "content has to be there, ready for scroll restoration, before all popstate tasks have been completed"-requirement
|
|
10058
10073
|
const is_loading_ = $b8hua$createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -10233,6 +10248,9 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
|
|
|
10233
10248
|
arrow_height_: 25,
|
|
10234
10249
|
arrow_width_: 12.5,
|
|
10235
10250
|
disable_fading_: true,
|
|
10251
|
+
get showArrow_() {
|
|
10252
|
+
return showSliderArrow_();
|
|
10253
|
+
},
|
|
10236
10254
|
slider_ref_: slider => {
|
|
10237
10255
|
const {
|
|
10238
10256
|
insert_here: insert_here,
|
|
@@ -11605,7 +11623,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11605
11623
|
modalVersionUsed_: modalVersionUsed_,
|
|
11606
11624
|
BackIcon_: BackIcon_,
|
|
11607
11625
|
filterModalParent_: filterModalParent_,
|
|
11608
|
-
class_: class_
|
|
11626
|
+
class_: class_,
|
|
11627
|
+
showSliderArrow_: showSliderArrow_
|
|
11609
11628
|
} = _ref;
|
|
11610
11629
|
const [get_sorting] = current_sorting_;
|
|
11611
11630
|
const all_products_loaded_ = $b8hua$createSignal(false);
|
|
@@ -11929,6 +11948,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11929
11948
|
id_currently_querying_for_: get_search_query_,
|
|
11930
11949
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
11931
11950
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
11951
|
+
showSliderArrow_: showSliderArrow_,
|
|
11932
11952
|
no_results_options_: {
|
|
11933
11953
|
selected_filters_: selected_filters_,
|
|
11934
11954
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -12406,6 +12426,7 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
|
|
|
12406
12426
|
},
|
|
12407
12427
|
submit_query_: shared_properties.configured_submit_query_,
|
|
12408
12428
|
modalVersionUsed_: shared_properties.modalVersionUsed_,
|
|
12429
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
12409
12430
|
i18n_: shared_properties.i18n_,
|
|
12410
12431
|
modalAlignmentSignalsRef_: style => {
|
|
12411
12432
|
const shared_info_right_now = $eb064bc3350276c1$export$dde08b2dca8cc1ce.get(depict_search);
|
|
@@ -13479,7 +13500,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
13479
13500
|
sorting_query_param_: sorting_query_param_,
|
|
13480
13501
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
13481
13502
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
13482
|
-
filterModalParent_: filterModalParent_
|
|
13503
|
+
filterModalParent_: filterModalParent_,
|
|
13504
|
+
showSliderArrow_: showSliderArrow_
|
|
13483
13505
|
} = _ref;
|
|
13484
13506
|
let results_for;
|
|
13485
13507
|
let only_show_filters_opener_;
|
|
@@ -13816,6 +13838,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
13816
13838
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
13817
13839
|
id_currently_querying_for_: id_to_query_for_,
|
|
13818
13840
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
13841
|
+
showSliderArrow_: showSliderArrow_,
|
|
13819
13842
|
all_products_loaded_: all_products_loaded_,
|
|
13820
13843
|
no_results_options_: {
|
|
13821
13844
|
selected_filters_: selected_filters_,
|
|
@@ -13958,6 +13981,7 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
|
|
|
13958
13981
|
selected_filters_: selected_filters_,
|
|
13959
13982
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
13960
13983
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
13984
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
13961
13985
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
13962
13986
|
history_content_blocks_: history_content_blocks_,
|
|
13963
13987
|
layout_options_: $b8hua$createMemo(() => ({
|