@depict-ai/ui 4.8.16 → 4.8.18
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 +50 -12
- package/ES10/index.d.ts +8 -4
- package/ES10/index.js +50 -12
- package/latest/index.cjs +50 -12
- package/latest/index.d.ts +8 -4
- package/latest/index.js +50 -12
- package/package.json +3 -3
- package/server/ES10/index.cjs +38 -7
- package/server/ES10/index.d.ts +8 -4
- package/server/ES10/index.js +38 -7
- package/server/latest/index.cjs +38 -7
- package/server/latest/index.d.ts +8 -4
- package/server/latest/index.js +38 -7
package/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.18";
|
|
118
118
|
function $054b1113e4897051$export$54c6d6ff54e72743(whatToWatch) {
|
|
119
119
|
const [width, setWidth] = $52FdA$solidjs.createSignal(0);
|
|
120
120
|
const [height, setHeight] = $52FdA$solidjs.createSignal(0);
|
|
@@ -1061,7 +1061,9 @@ function $9d19451330d04c3c$export$8be2714ec7f169ee() {
|
|
|
1061
1061
|
})();
|
|
1062
1062
|
}
|
|
1063
1063
|
var $ad8ec7729fffeb9c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`),
|
|
1064
|
-
$ad8ec7729fffeb9c$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<
|
|
1064
|
+
$ad8ec7729fffeb9c$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button aria-label="Scroll left"class="left d-navbutton"type=button>`),
|
|
1065
|
+
$ad8ec7729fffeb9c$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button aria-label="Scroll right"class="right d-navbutton"type=button>`),
|
|
1066
|
+
$ad8ec7729fffeb9c$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict-slider depict"><!$><!/><div class=sliding>`);
|
|
1065
1067
|
const $ad8ec7729fffeb9c$var$SlidableContext = /*@__PURE__*/$52FdA$solidjs.createContext();
|
|
1066
1068
|
function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
|
|
1067
1069
|
const {
|
|
@@ -1073,6 +1075,7 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
|
|
|
1073
1075
|
fadingThreshold_ = 0.96
|
|
1074
1076
|
} = props;
|
|
1075
1077
|
const [hasHydrated, setHasHydrated] = $52FdA$solidjs.createSignal(false);
|
|
1078
|
+
const shouldShowArrows = () => props.showArrow_ !== false;
|
|
1076
1079
|
$52FdA$solidjs.createEffect(() => setHasHydrated(true));
|
|
1077
1080
|
const MakeButton = () => (() => {
|
|
1078
1081
|
var _el$ = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$);
|
|
@@ -1096,12 +1099,26 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
|
|
|
1096
1099
|
},
|
|
1097
1100
|
get fallback() {
|
|
1098
1101
|
return (() => {
|
|
1099
|
-
var _el$2 = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$
|
|
1100
|
-
_el$
|
|
1101
|
-
_el$
|
|
1102
|
-
_el$5 = _el$
|
|
1103
|
-
$52FdA$solidjsweb.insert(_el$
|
|
1104
|
-
|
|
1102
|
+
var _el$2 = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$4),
|
|
1103
|
+
_el$6 = _el$2.firstChild,
|
|
1104
|
+
[_el$7, _co$] = $52FdA$solidjsweb.getNextMarker(_el$6.nextSibling),
|
|
1105
|
+
_el$5 = _el$7.nextSibling;
|
|
1106
|
+
$52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
1107
|
+
get when() {
|
|
1108
|
+
return shouldShowArrows();
|
|
1109
|
+
},
|
|
1110
|
+
get children() {
|
|
1111
|
+
return [(() => {
|
|
1112
|
+
var _el$3 = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$2);
|
|
1113
|
+
$52FdA$solidjsweb.insert(_el$3, $52FdA$solidjsweb.createComponent(MakeButton, {}));
|
|
1114
|
+
return _el$3;
|
|
1115
|
+
})(), (() => {
|
|
1116
|
+
var _el$4 = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$3);
|
|
1117
|
+
$52FdA$solidjsweb.insert(_el$4, $52FdA$solidjsweb.createComponent(MakeButton, {}));
|
|
1118
|
+
return _el$4;
|
|
1119
|
+
})()];
|
|
1120
|
+
}
|
|
1121
|
+
}), _el$7, _co$);
|
|
1105
1122
|
$52FdA$solidjsweb.insert(_el$5, () => props.children);
|
|
1106
1123
|
return _el$2;
|
|
1107
1124
|
})();
|
|
@@ -1123,6 +1140,12 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
|
|
|
1123
1140
|
}).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
|
|
1124
1141
|
mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
|
|
1125
1142
|
});
|
|
1143
|
+
const {
|
|
1144
|
+
left_: left_,
|
|
1145
|
+
right_: right_
|
|
1146
|
+
} = slider.elements_;
|
|
1147
|
+
$52FdA$solidjs.createEffect(() => left_.style.display = shouldShowArrows() ? "" : "none");
|
|
1148
|
+
$52FdA$solidjs.createEffect(() => right_.style.display = shouldShowArrows() ? "" : "none");
|
|
1126
1149
|
$52FdA$solidjsweb.insert(slider.insert_here, () => $52FdA$solidjsweb.createComponent($ad8ec7729fffeb9c$var$SlidableContext.Provider, {
|
|
1127
1150
|
value: {
|
|
1128
1151
|
slider_: slider,
|
|
@@ -1798,7 +1821,8 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
|
|
|
1798
1821
|
layout_options_: layout_options_,
|
|
1799
1822
|
title_: title_,
|
|
1800
1823
|
NoResultsFallback_: NoResultsFallback_,
|
|
1801
|
-
placeholderCacheKey_: placeholderCacheKey_
|
|
1824
|
+
placeholderCacheKey_: placeholderCacheKey_,
|
|
1825
|
+
showSliderArrow_: showSliderArrow_
|
|
1802
1826
|
} = _ref;
|
|
1803
1827
|
const is_showing_something = $52FdA$solidjs.createMemo(() => {
|
|
1804
1828
|
var _recommendations_reso;
|
|
@@ -1819,6 +1843,9 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
|
|
|
1819
1843
|
arrow_height_: 25,
|
|
1820
1844
|
arrow_width_: 12.5,
|
|
1821
1845
|
disable_fading_: true,
|
|
1846
|
+
get showArrow_() {
|
|
1847
|
+
return showSliderArrow_ === null || showSliderArrow_ === void 0 ? void 0 : showSliderArrow_();
|
|
1848
|
+
},
|
|
1822
1849
|
slider_ref_: slider => {
|
|
1823
1850
|
const {
|
|
1824
1851
|
insert_here: insert_here,
|
|
@@ -6882,6 +6909,7 @@ function $2badc30d7c6610e1$export$9574e176201e5e8d(props) {
|
|
|
6882
6909
|
return props.product_card_template(...arguments);
|
|
6883
6910
|
},
|
|
6884
6911
|
recommendations_resource_: recommendations_resource_,
|
|
6912
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
6885
6913
|
title_: () => props.title,
|
|
6886
6914
|
layout_options_: $52FdA$solidjs.createMemo(() => ({
|
|
6887
6915
|
cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -12159,7 +12187,8 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
|
|
|
12159
12187
|
id_currently_querying_for_: id_currently_querying_for_,
|
|
12160
12188
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
12161
12189
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
12162
|
-
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
|
|
12190
|
+
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
12191
|
+
showSliderArrow_: showSliderArrow_
|
|
12163
12192
|
} = _ref;
|
|
12164
12193
|
// 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
|
|
12165
12194
|
const is_loading_ = $52FdA$solidjs.createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -12346,6 +12375,9 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
|
|
|
12346
12375
|
arrow_height_: 25,
|
|
12347
12376
|
arrow_width_: 12.5,
|
|
12348
12377
|
disable_fading_: true,
|
|
12378
|
+
get showArrow_() {
|
|
12379
|
+
return showSliderArrow_();
|
|
12380
|
+
},
|
|
12349
12381
|
slider_ref_: slider => {
|
|
12350
12382
|
const {
|
|
12351
12383
|
insert_here: insert_here,
|
|
@@ -14207,7 +14239,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
14207
14239
|
modalVersionUsed_: modalVersionUsed_,
|
|
14208
14240
|
BackIcon_: BackIcon_,
|
|
14209
14241
|
filterModalParent_: filterModalParent_,
|
|
14210
|
-
class_: class_
|
|
14242
|
+
class_: class_,
|
|
14243
|
+
showSliderArrow_: showSliderArrow_
|
|
14211
14244
|
} = _ref;
|
|
14212
14245
|
const [get_sorting] = current_sorting_;
|
|
14213
14246
|
const all_products_loaded_ = $52FdA$solidjs.createSignal(false);
|
|
@@ -14566,6 +14599,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
14566
14599
|
id_currently_querying_for_: get_search_query_,
|
|
14567
14600
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
14568
14601
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
14602
|
+
showSliderArrow_: showSliderArrow_,
|
|
14569
14603
|
no_results_options_: {
|
|
14570
14604
|
selected_filters_: selected_filters_,
|
|
14571
14605
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -15058,6 +15092,7 @@ function $ddd39c5f36f49703$export$f2dc7e4e4aa11abb(props) {
|
|
|
15058
15092
|
},
|
|
15059
15093
|
submit_query_: shared_properties.configured_submit_query_,
|
|
15060
15094
|
modalVersionUsed_: shared_properties.modalVersionUsed_,
|
|
15095
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
15061
15096
|
i18n_: shared_properties.i18n_,
|
|
15062
15097
|
modalAlignmentSignalsRef_: style => {
|
|
15063
15098
|
const shared_info_right_now = $ddd39c5f36f49703$export$dde08b2dca8cc1ce.get(depict_search);
|
|
@@ -16229,7 +16264,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
16229
16264
|
sorting_query_param_: sorting_query_param_,
|
|
16230
16265
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
16231
16266
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
16232
|
-
filterModalParent_: filterModalParent_
|
|
16267
|
+
filterModalParent_: filterModalParent_,
|
|
16268
|
+
showSliderArrow_: showSliderArrow_
|
|
16233
16269
|
} = _ref;
|
|
16234
16270
|
let results_for;
|
|
16235
16271
|
let only_show_filters_opener_;
|
|
@@ -16608,6 +16644,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
16608
16644
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
16609
16645
|
id_currently_querying_for_: id_to_query_for_,
|
|
16610
16646
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
16647
|
+
showSliderArrow_: showSliderArrow_,
|
|
16611
16648
|
all_products_loaded_: all_products_loaded_,
|
|
16612
16649
|
no_results_options_: {
|
|
16613
16650
|
selected_filters_: selected_filters_,
|
|
@@ -16754,6 +16791,7 @@ function $c10e33c4681f8c9b$export$e2bf8ce7779e827e(props) {
|
|
|
16754
16791
|
selected_filters_: selected_filters_,
|
|
16755
16792
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
16756
16793
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
16794
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
16757
16795
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
16758
16796
|
history_content_blocks_: history_content_blocks_,
|
|
16759
16797
|
layout_options_: $52FdA$solidjs.createMemo(() => ({
|
package/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.18";
|
|
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/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $8tj43$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.18";
|
|
14
14
|
function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
|
|
15
15
|
const [width, setWidth] = $8tj43$createSignal(0);
|
|
16
16
|
const [height, setHeight] = $8tj43$createSignal(0);
|
|
@@ -957,7 +957,9 @@ function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
|
|
|
957
957
|
})();
|
|
958
958
|
}
|
|
959
959
|
var $002f09d00aac50b2$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div>`),
|
|
960
|
-
$002f09d00aac50b2$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<
|
|
960
|
+
$002f09d00aac50b2$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<button aria-label="Scroll left"class="left d-navbutton"type=button>`),
|
|
961
|
+
$002f09d00aac50b2$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<button aria-label="Scroll right"class="right d-navbutton"type=button>`),
|
|
962
|
+
$002f09d00aac50b2$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class="depict-slider depict"><!$><!/><div class=sliding>`);
|
|
961
963
|
const $002f09d00aac50b2$var$SlidableContext = /*@__PURE__*/$8tj43$createContext();
|
|
962
964
|
function $002f09d00aac50b2$export$6649caad96ef8870(props) {
|
|
963
965
|
const {
|
|
@@ -969,6 +971,7 @@ function $002f09d00aac50b2$export$6649caad96ef8870(props) {
|
|
|
969
971
|
fadingThreshold_ = 0.96
|
|
970
972
|
} = props;
|
|
971
973
|
const [hasHydrated, setHasHydrated] = $8tj43$createSignal(false);
|
|
974
|
+
const shouldShowArrows = () => props.showArrow_ !== false;
|
|
972
975
|
$8tj43$createEffect(() => setHasHydrated(true));
|
|
973
976
|
const MakeButton = () => (() => {
|
|
974
977
|
var _el$ = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$);
|
|
@@ -992,12 +995,26 @@ function $002f09d00aac50b2$export$6649caad96ef8870(props) {
|
|
|
992
995
|
},
|
|
993
996
|
get fallback() {
|
|
994
997
|
return (() => {
|
|
995
|
-
var _el$2 = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$
|
|
996
|
-
_el$
|
|
997
|
-
_el$
|
|
998
|
-
_el$5 = _el$
|
|
999
|
-
$8tj43$insert(_el$
|
|
1000
|
-
|
|
998
|
+
var _el$2 = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$4),
|
|
999
|
+
_el$6 = _el$2.firstChild,
|
|
1000
|
+
[_el$7, _co$] = $8tj43$getNextMarker(_el$6.nextSibling),
|
|
1001
|
+
_el$5 = _el$7.nextSibling;
|
|
1002
|
+
$8tj43$insert(_el$2, $8tj43$createComponent((0, $8tj43$Show), {
|
|
1003
|
+
get when() {
|
|
1004
|
+
return shouldShowArrows();
|
|
1005
|
+
},
|
|
1006
|
+
get children() {
|
|
1007
|
+
return [(() => {
|
|
1008
|
+
var _el$3 = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$2);
|
|
1009
|
+
$8tj43$insert(_el$3, $8tj43$createComponent(MakeButton, {}));
|
|
1010
|
+
return _el$3;
|
|
1011
|
+
})(), (() => {
|
|
1012
|
+
var _el$4 = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$3);
|
|
1013
|
+
$8tj43$insert(_el$4, $8tj43$createComponent(MakeButton, {}));
|
|
1014
|
+
return _el$4;
|
|
1015
|
+
})()];
|
|
1016
|
+
}
|
|
1017
|
+
}), _el$7, _co$);
|
|
1001
1018
|
$8tj43$insert(_el$5, () => props.children);
|
|
1002
1019
|
return _el$2;
|
|
1003
1020
|
})();
|
|
@@ -1019,6 +1036,12 @@ function $002f09d00aac50b2$export$6649caad96ef8870(props) {
|
|
|
1019
1036
|
}).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
|
|
1020
1037
|
mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
|
|
1021
1038
|
});
|
|
1039
|
+
const {
|
|
1040
|
+
left_: left_,
|
|
1041
|
+
right_: right_
|
|
1042
|
+
} = slider.elements_;
|
|
1043
|
+
$8tj43$createEffect(() => left_.style.display = shouldShowArrows() ? "" : "none");
|
|
1044
|
+
$8tj43$createEffect(() => right_.style.display = shouldShowArrows() ? "" : "none");
|
|
1022
1045
|
$8tj43$insert(slider.insert_here, () => $8tj43$createComponent($002f09d00aac50b2$var$SlidableContext.Provider, {
|
|
1023
1046
|
value: {
|
|
1024
1047
|
slider_: slider,
|
|
@@ -1694,7 +1717,8 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
|
|
|
1694
1717
|
layout_options_: layout_options_,
|
|
1695
1718
|
title_: title_,
|
|
1696
1719
|
NoResultsFallback_: NoResultsFallback_,
|
|
1697
|
-
placeholderCacheKey_: placeholderCacheKey_
|
|
1720
|
+
placeholderCacheKey_: placeholderCacheKey_,
|
|
1721
|
+
showSliderArrow_: showSliderArrow_
|
|
1698
1722
|
} = _ref;
|
|
1699
1723
|
const is_showing_something = $8tj43$createMemo(() => {
|
|
1700
1724
|
var _recommendations_reso;
|
|
@@ -1715,6 +1739,9 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
|
|
|
1715
1739
|
arrow_height_: 25,
|
|
1716
1740
|
arrow_width_: 12.5,
|
|
1717
1741
|
disable_fading_: true,
|
|
1742
|
+
get showArrow_() {
|
|
1743
|
+
return showSliderArrow_ === null || showSliderArrow_ === void 0 ? void 0 : showSliderArrow_();
|
|
1744
|
+
},
|
|
1718
1745
|
slider_ref_: slider => {
|
|
1719
1746
|
const {
|
|
1720
1747
|
insert_here: insert_here,
|
|
@@ -6778,6 +6805,7 @@ function $d5d7e58c5c9d8db0$export$9574e176201e5e8d(props) {
|
|
|
6778
6805
|
return props.product_card_template(...arguments);
|
|
6779
6806
|
},
|
|
6780
6807
|
recommendations_resource_: recommendations_resource_,
|
|
6808
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
6781
6809
|
title_: () => props.title,
|
|
6782
6810
|
layout_options_: $8tj43$createMemo(() => ({
|
|
6783
6811
|
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -12055,7 +12083,8 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
|
|
|
12055
12083
|
id_currently_querying_for_: id_currently_querying_for_,
|
|
12056
12084
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
12057
12085
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
12058
|
-
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
|
|
12086
|
+
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
12087
|
+
showSliderArrow_: showSliderArrow_
|
|
12059
12088
|
} = _ref;
|
|
12060
12089
|
// 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
|
|
12061
12090
|
const is_loading_ = $8tj43$createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -12242,6 +12271,9 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
|
|
|
12242
12271
|
arrow_height_: 25,
|
|
12243
12272
|
arrow_width_: 12.5,
|
|
12244
12273
|
disable_fading_: true,
|
|
12274
|
+
get showArrow_() {
|
|
12275
|
+
return showSliderArrow_();
|
|
12276
|
+
},
|
|
12245
12277
|
slider_ref_: slider => {
|
|
12246
12278
|
const {
|
|
12247
12279
|
insert_here: insert_here,
|
|
@@ -14103,7 +14135,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
14103
14135
|
modalVersionUsed_: modalVersionUsed_,
|
|
14104
14136
|
BackIcon_: BackIcon_,
|
|
14105
14137
|
filterModalParent_: filterModalParent_,
|
|
14106
|
-
class_: class_
|
|
14138
|
+
class_: class_,
|
|
14139
|
+
showSliderArrow_: showSliderArrow_
|
|
14107
14140
|
} = _ref;
|
|
14108
14141
|
const [get_sorting] = current_sorting_;
|
|
14109
14142
|
const all_products_loaded_ = $8tj43$createSignal(false);
|
|
@@ -14462,6 +14495,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
14462
14495
|
id_currently_querying_for_: get_search_query_,
|
|
14463
14496
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
14464
14497
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
14498
|
+
showSliderArrow_: showSliderArrow_,
|
|
14465
14499
|
no_results_options_: {
|
|
14466
14500
|
selected_filters_: selected_filters_,
|
|
14467
14501
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -14954,6 +14988,7 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
|
|
|
14954
14988
|
},
|
|
14955
14989
|
submit_query_: shared_properties.configured_submit_query_,
|
|
14956
14990
|
modalVersionUsed_: shared_properties.modalVersionUsed_,
|
|
14991
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
14957
14992
|
i18n_: shared_properties.i18n_,
|
|
14958
14993
|
modalAlignmentSignalsRef_: style => {
|
|
14959
14994
|
const shared_info_right_now = $eb064bc3350276c1$export$dde08b2dca8cc1ce.get(depict_search);
|
|
@@ -16125,7 +16160,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
16125
16160
|
sorting_query_param_: sorting_query_param_,
|
|
16126
16161
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
16127
16162
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
16128
|
-
filterModalParent_: filterModalParent_
|
|
16163
|
+
filterModalParent_: filterModalParent_,
|
|
16164
|
+
showSliderArrow_: showSliderArrow_
|
|
16129
16165
|
} = _ref;
|
|
16130
16166
|
let results_for;
|
|
16131
16167
|
let only_show_filters_opener_;
|
|
@@ -16504,6 +16540,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
16504
16540
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
16505
16541
|
id_currently_querying_for_: id_to_query_for_,
|
|
16506
16542
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
16543
|
+
showSliderArrow_: showSliderArrow_,
|
|
16507
16544
|
all_products_loaded_: all_products_loaded_,
|
|
16508
16545
|
no_results_options_: {
|
|
16509
16546
|
selected_filters_: selected_filters_,
|
|
@@ -16650,6 +16687,7 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
|
|
|
16650
16687
|
selected_filters_: selected_filters_,
|
|
16651
16688
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
16652
16689
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
16690
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
16653
16691
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
16654
16692
|
history_content_blocks_: history_content_blocks_,
|
|
16655
16693
|
layout_options_: $8tj43$createMemo(() => ({
|
package/latest/index.cjs
CHANGED
|
@@ -108,7 +108,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
108
108
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
109
109
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
110
110
|
/*! Depict.ai search and product listing SDK */
|
|
111
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.
|
|
111
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.18";
|
|
112
112
|
function $128302ab61dab8f1$export$54c6d6ff54e72743(whatToWatch) {
|
|
113
113
|
const [width, setWidth] = $gVhhF$solidjs.createSignal(0);
|
|
114
114
|
const [height, setHeight] = $gVhhF$solidjs.createSignal(0);
|
|
@@ -1013,7 +1013,9 @@ function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
|
|
|
1013
1013
|
})();
|
|
1014
1014
|
}
|
|
1015
1015
|
var $a0e53f99354809d9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
|
|
1016
|
-
$a0e53f99354809d9$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<
|
|
1016
|
+
$a0e53f99354809d9$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button aria-label="Scroll left"class="left d-navbutton"type=button>`),
|
|
1017
|
+
$a0e53f99354809d9$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<button aria-label="Scroll right"class="right d-navbutton"type=button>`),
|
|
1018
|
+
$a0e53f99354809d9$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict-slider depict"><!$><!/><div class=sliding>`);
|
|
1017
1019
|
const $a0e53f99354809d9$var$SlidableContext = /*@__PURE__*/$gVhhF$solidjs.createContext();
|
|
1018
1020
|
function $a0e53f99354809d9$export$6649caad96ef8870(props) {
|
|
1019
1021
|
const {
|
|
@@ -1025,6 +1027,7 @@ function $a0e53f99354809d9$export$6649caad96ef8870(props) {
|
|
|
1025
1027
|
fadingThreshold_ = 0.96
|
|
1026
1028
|
} = props;
|
|
1027
1029
|
const [hasHydrated, setHasHydrated] = $gVhhF$solidjs.createSignal(false);
|
|
1030
|
+
const shouldShowArrows = () => props.showArrow_ !== false;
|
|
1028
1031
|
$gVhhF$solidjs.createEffect(() => setHasHydrated(true));
|
|
1029
1032
|
const MakeButton = () => (() => {
|
|
1030
1033
|
var _el$ = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$);
|
|
@@ -1048,12 +1051,26 @@ function $a0e53f99354809d9$export$6649caad96ef8870(props) {
|
|
|
1048
1051
|
},
|
|
1049
1052
|
get fallback() {
|
|
1050
1053
|
return (() => {
|
|
1051
|
-
var _el$2 = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$
|
|
1052
|
-
_el$
|
|
1053
|
-
_el$
|
|
1054
|
-
_el$5 = _el$
|
|
1055
|
-
$gVhhF$solidjsweb.insert(_el$
|
|
1056
|
-
|
|
1054
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$4),
|
|
1055
|
+
_el$6 = _el$2.firstChild,
|
|
1056
|
+
[_el$7, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$6.nextSibling),
|
|
1057
|
+
_el$5 = _el$7.nextSibling;
|
|
1058
|
+
$gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
1059
|
+
get when() {
|
|
1060
|
+
return shouldShowArrows();
|
|
1061
|
+
},
|
|
1062
|
+
get children() {
|
|
1063
|
+
return [(() => {
|
|
1064
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$2);
|
|
1065
|
+
$gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjsweb.createComponent(MakeButton, {}));
|
|
1066
|
+
return _el$3;
|
|
1067
|
+
})(), (() => {
|
|
1068
|
+
var _el$4 = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$3);
|
|
1069
|
+
$gVhhF$solidjsweb.insert(_el$4, $gVhhF$solidjsweb.createComponent(MakeButton, {}));
|
|
1070
|
+
return _el$4;
|
|
1071
|
+
})()];
|
|
1072
|
+
}
|
|
1073
|
+
}), _el$7, _co$);
|
|
1057
1074
|
$gVhhF$solidjsweb.insert(_el$5, () => props.children);
|
|
1058
1075
|
return _el$2;
|
|
1059
1076
|
})();
|
|
@@ -1075,6 +1092,12 @@ function $a0e53f99354809d9$export$6649caad96ef8870(props) {
|
|
|
1075
1092
|
}).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
|
|
1076
1093
|
mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
|
|
1077
1094
|
});
|
|
1095
|
+
const {
|
|
1096
|
+
left_: left_,
|
|
1097
|
+
right_: right_
|
|
1098
|
+
} = slider.elements_;
|
|
1099
|
+
$gVhhF$solidjs.createEffect(() => left_.style.display = shouldShowArrows() ? "" : "none");
|
|
1100
|
+
$gVhhF$solidjs.createEffect(() => right_.style.display = shouldShowArrows() ? "" : "none");
|
|
1078
1101
|
$gVhhF$solidjsweb.insert(slider.insert_here, () => $gVhhF$solidjsweb.createComponent($a0e53f99354809d9$var$SlidableContext.Provider, {
|
|
1079
1102
|
value: {
|
|
1080
1103
|
slider_: slider,
|
|
@@ -1718,7 +1741,8 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
|
1718
1741
|
layout_options_: layout_options_,
|
|
1719
1742
|
title_: title_,
|
|
1720
1743
|
NoResultsFallback_: NoResultsFallback_,
|
|
1721
|
-
placeholderCacheKey_: placeholderCacheKey_
|
|
1744
|
+
placeholderCacheKey_: placeholderCacheKey_,
|
|
1745
|
+
showSliderArrow_: showSliderArrow_
|
|
1722
1746
|
}) {
|
|
1723
1747
|
const is_showing_something = $gVhhF$solidjs.createMemo(() => recommendations_resource_.loading || recommendations_resource_()?.length);
|
|
1724
1748
|
const title = $gVhhF$solidjs.createMemo(() => title_?.()); // In case getter/accessor creates elements, don't create them twice
|
|
@@ -1736,6 +1760,9 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
|
1736
1760
|
arrow_height_: 25,
|
|
1737
1761
|
arrow_width_: 12.5,
|
|
1738
1762
|
disable_fading_: true,
|
|
1763
|
+
get showArrow_() {
|
|
1764
|
+
return showSliderArrow_?.();
|
|
1765
|
+
},
|
|
1739
1766
|
slider_ref_: slider => {
|
|
1740
1767
|
const {
|
|
1741
1768
|
insert_here: insert_here,
|
|
@@ -6568,6 +6595,7 @@ function $72f96c4782db0b1b$export$9574e176201e5e8d(props) {
|
|
|
6568
6595
|
return $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
6569
6596
|
product_card_template_: (...args) => props.product_card_template(...args),
|
|
6570
6597
|
recommendations_resource_: recommendations_resource_,
|
|
6598
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
6571
6599
|
title_: () => props.title,
|
|
6572
6600
|
layout_options_: $gVhhF$solidjs.createMemo(() => ({
|
|
6573
6601
|
cols_at_size: $4e04be41243c3d80$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -11444,7 +11472,8 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
11444
11472
|
id_currently_querying_for_: id_currently_querying_for_,
|
|
11445
11473
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
11446
11474
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
11447
|
-
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
|
|
11475
|
+
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
11476
|
+
showSliderArrow_: showSliderArrow_
|
|
11448
11477
|
}) {
|
|
11449
11478
|
// 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
|
|
11450
11479
|
const is_loading_ = $gVhhF$solidjs.createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -11625,6 +11654,9 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
11625
11654
|
arrow_height_: 25,
|
|
11626
11655
|
arrow_width_: 12.5,
|
|
11627
11656
|
disable_fading_: true,
|
|
11657
|
+
get showArrow_() {
|
|
11658
|
+
return showSliderArrow_();
|
|
11659
|
+
},
|
|
11628
11660
|
slider_ref_: slider => {
|
|
11629
11661
|
const {
|
|
11630
11662
|
insert_here: insert_here,
|
|
@@ -13388,7 +13420,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
13388
13420
|
modalVersionUsed_: modalVersionUsed_,
|
|
13389
13421
|
BackIcon_: BackIcon_,
|
|
13390
13422
|
filterModalParent_: filterModalParent_,
|
|
13391
|
-
class_: class_
|
|
13423
|
+
class_: class_,
|
|
13424
|
+
showSliderArrow_: showSliderArrow_
|
|
13392
13425
|
}) {
|
|
13393
13426
|
const [get_sorting] = current_sorting_;
|
|
13394
13427
|
const all_products_loaded_ = $gVhhF$solidjs.createSignal(false);
|
|
@@ -13728,6 +13761,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
13728
13761
|
id_currently_querying_for_: get_search_query_,
|
|
13729
13762
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
13730
13763
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
13764
|
+
showSliderArrow_: showSliderArrow_,
|
|
13731
13765
|
no_results_options_: {
|
|
13732
13766
|
selected_filters_: selected_filters_,
|
|
13733
13767
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -14133,6 +14167,7 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
|
|
|
14133
14167
|
open_modal_: (...args) => depict_search.modal_open = args,
|
|
14134
14168
|
submit_query_: shared_properties.configured_submit_query_,
|
|
14135
14169
|
modalVersionUsed_: shared_properties.modalVersionUsed_,
|
|
14170
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
14136
14171
|
i18n_: shared_properties.i18n_,
|
|
14137
14172
|
modalAlignmentSignalsRef_: style => {
|
|
14138
14173
|
const shared_info_right_now = $2c61e4cd8229c49a$export$dde08b2dca8cc1ce.get(depict_search);
|
|
@@ -15173,7 +15208,8 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
15173
15208
|
sorting_query_param_: sorting_query_param_,
|
|
15174
15209
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
15175
15210
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
15176
|
-
filterModalParent_: filterModalParent_
|
|
15211
|
+
filterModalParent_: filterModalParent_,
|
|
15212
|
+
showSliderArrow_: showSliderArrow_
|
|
15177
15213
|
}) {
|
|
15178
15214
|
let results_for;
|
|
15179
15215
|
let only_show_filters_opener_;
|
|
@@ -15531,6 +15567,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
15531
15567
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
15532
15568
|
id_currently_querying_for_: id_to_query_for_,
|
|
15533
15569
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
15570
|
+
showSliderArrow_: showSliderArrow_,
|
|
15534
15571
|
all_products_loaded_: all_products_loaded_,
|
|
15535
15572
|
no_results_options_: {
|
|
15536
15573
|
selected_filters_: selected_filters_,
|
|
@@ -15669,6 +15706,7 @@ function $14f289047713d67a$export$e2bf8ce7779e827e(props) {
|
|
|
15669
15706
|
selected_filters_: selected_filters_,
|
|
15670
15707
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
15671
15708
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
15709
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
15672
15710
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
15673
15711
|
history_content_blocks_: history_content_blocks_,
|
|
15674
15712
|
layout_options_: $gVhhF$solidjs.createMemo(() => ({
|
package/latest/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.18";
|
|
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";
|