@depict-ai/ui 4.8.15 → 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 +47 -15
- package/ES10/index.d.ts +22 -3
- package/ES10/index.js +47 -15
- package/latest/index.cjs +47 -15
- package/latest/index.d.ts +22 -3
- package/latest/index.js +47 -15
- package/package.json +2 -2
- package/server/ES10/index.cjs +35 -10
- package/server/ES10/index.d.ts +22 -3
- package/server/ES10/index.js +35 -10
- package/server/latest/index.cjs +35 -10
- package/server/latest/index.d.ts +22 -3
- package/server/latest/index.js +35 -10
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.17";
|
|
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);
|
|
@@ -150,7 +150,8 @@ function $054b1113e4897051$export$54c6d6ff54e72743(whatToWatch) {
|
|
|
150
150
|
// Them being here is value first too because this can be easily imported in the product card editor
|
|
151
151
|
let $cc9aacef898ccc9a$var$extraDisplayTransformers;
|
|
152
152
|
const $cc9aacef898ccc9a$export$b2d94be4f02525b2 = () => $cc9aacef898ccc9a$var$extraDisplayTransformers;
|
|
153
|
-
const $cc9aacef898ccc9a$export$f98b8d5ea7207a1 = displayTransformers => $cc9aacef898ccc9a$var$extraDisplayTransformers = displayTransformers;
|
|
153
|
+
const $cc9aacef898ccc9a$export$f98b8d5ea7207a1 = displayTransformers => $cc9aacef898ccc9a$var$extraDisplayTransformers = displayTransformers; // These display transformers are "extra" so they don't have to return a page_url, we already do that in the shopify app
|
|
154
|
+
|
|
154
155
|
const $d067f3a30f047b41$var$ListingContext = /*@__PURE__*/$52FdA$solidjs.createContext();
|
|
155
156
|
function $d067f3a30f047b41$export$e68cff63f76bd15b(props) {
|
|
156
157
|
const our_object = {};
|
|
@@ -1060,7 +1061,9 @@ function $9d19451330d04c3c$export$8be2714ec7f169ee() {
|
|
|
1060
1061
|
})();
|
|
1061
1062
|
}
|
|
1062
1063
|
var $ad8ec7729fffeb9c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`),
|
|
1063
|
-
$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>`);
|
|
1064
1067
|
const $ad8ec7729fffeb9c$var$SlidableContext = /*@__PURE__*/$52FdA$solidjs.createContext();
|
|
1065
1068
|
function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
|
|
1066
1069
|
const {
|
|
@@ -1095,12 +1098,26 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
|
|
|
1095
1098
|
},
|
|
1096
1099
|
get fallback() {
|
|
1097
1100
|
return (() => {
|
|
1098
|
-
var _el$2 = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$
|
|
1099
|
-
_el$
|
|
1100
|
-
_el$
|
|
1101
|
-
_el$5 = _el$
|
|
1102
|
-
$52FdA$solidjsweb.insert(_el$
|
|
1103
|
-
|
|
1101
|
+
var _el$2 = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$4),
|
|
1102
|
+
_el$6 = _el$2.firstChild,
|
|
1103
|
+
[_el$7, _co$] = $52FdA$solidjsweb.getNextMarker(_el$6.nextSibling),
|
|
1104
|
+
_el$5 = _el$7.nextSibling;
|
|
1105
|
+
$52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
1106
|
+
get when() {
|
|
1107
|
+
return props.showArrow_ !== false;
|
|
1108
|
+
},
|
|
1109
|
+
get children() {
|
|
1110
|
+
return [(() => {
|
|
1111
|
+
var _el$3 = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$2);
|
|
1112
|
+
$52FdA$solidjsweb.insert(_el$3, $52FdA$solidjsweb.createComponent(MakeButton, {}));
|
|
1113
|
+
return _el$3;
|
|
1114
|
+
})(), (() => {
|
|
1115
|
+
var _el$4 = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$3);
|
|
1116
|
+
$52FdA$solidjsweb.insert(_el$4, $52FdA$solidjsweb.createComponent(MakeButton, {}));
|
|
1117
|
+
return _el$4;
|
|
1118
|
+
})()];
|
|
1119
|
+
}
|
|
1120
|
+
}), _el$7, _co$);
|
|
1104
1121
|
$52FdA$solidjsweb.insert(_el$5, () => props.children);
|
|
1105
1122
|
return _el$2;
|
|
1106
1123
|
})();
|
|
@@ -1114,8 +1131,8 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
|
|
|
1114
1131
|
});
|
|
1115
1132
|
const slider = new (0, $52FdA$depictaiutilishared.Amazing_Slider)({
|
|
1116
1133
|
button_contents: {
|
|
1117
|
-
left: [MakeButton()],
|
|
1118
|
-
right: [MakeButton()]
|
|
1134
|
+
left: props.showArrow_ === false ? [] : [MakeButton()],
|
|
1135
|
+
right: props.showArrow_ === false ? [] : [MakeButton()]
|
|
1119
1136
|
},
|
|
1120
1137
|
constructor_plugins: [$52FdA$depictaiutilishared.slider_snap_css(0, {
|
|
1121
1138
|
align: snapAlign_
|
|
@@ -1797,7 +1814,8 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
|
|
|
1797
1814
|
layout_options_: layout_options_,
|
|
1798
1815
|
title_: title_,
|
|
1799
1816
|
NoResultsFallback_: NoResultsFallback_,
|
|
1800
|
-
placeholderCacheKey_: placeholderCacheKey_
|
|
1817
|
+
placeholderCacheKey_: placeholderCacheKey_,
|
|
1818
|
+
showSliderArrow_: showSliderArrow_
|
|
1801
1819
|
} = _ref;
|
|
1802
1820
|
const is_showing_something = $52FdA$solidjs.createMemo(() => {
|
|
1803
1821
|
var _recommendations_reso;
|
|
@@ -1818,6 +1836,9 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
|
|
|
1818
1836
|
arrow_height_: 25,
|
|
1819
1837
|
arrow_width_: 12.5,
|
|
1820
1838
|
disable_fading_: true,
|
|
1839
|
+
get showArrow_() {
|
|
1840
|
+
return showSliderArrow_ === null || showSliderArrow_ === void 0 ? void 0 : showSliderArrow_();
|
|
1841
|
+
},
|
|
1821
1842
|
slider_ref_: slider => {
|
|
1822
1843
|
const {
|
|
1823
1844
|
insert_here: insert_here,
|
|
@@ -6881,6 +6902,7 @@ function $2badc30d7c6610e1$export$9574e176201e5e8d(props) {
|
|
|
6881
6902
|
return props.product_card_template(...arguments);
|
|
6882
6903
|
},
|
|
6883
6904
|
recommendations_resource_: recommendations_resource_,
|
|
6905
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
6884
6906
|
title_: () => props.title,
|
|
6885
6907
|
layout_options_: $52FdA$solidjs.createMemo(() => ({
|
|
6886
6908
|
cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -12158,7 +12180,8 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
|
|
|
12158
12180
|
id_currently_querying_for_: id_currently_querying_for_,
|
|
12159
12181
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
12160
12182
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
12161
|
-
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
|
|
12183
|
+
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
12184
|
+
showSliderArrow_: showSliderArrow_
|
|
12162
12185
|
} = _ref;
|
|
12163
12186
|
// 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
|
|
12164
12187
|
const is_loading_ = $52FdA$solidjs.createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -12345,6 +12368,9 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
|
|
|
12345
12368
|
arrow_height_: 25,
|
|
12346
12369
|
arrow_width_: 12.5,
|
|
12347
12370
|
disable_fading_: true,
|
|
12371
|
+
get showArrow_() {
|
|
12372
|
+
return showSliderArrow_();
|
|
12373
|
+
},
|
|
12348
12374
|
slider_ref_: slider => {
|
|
12349
12375
|
const {
|
|
12350
12376
|
insert_here: insert_here,
|
|
@@ -14206,7 +14232,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
14206
14232
|
modalVersionUsed_: modalVersionUsed_,
|
|
14207
14233
|
BackIcon_: BackIcon_,
|
|
14208
14234
|
filterModalParent_: filterModalParent_,
|
|
14209
|
-
class_: class_
|
|
14235
|
+
class_: class_,
|
|
14236
|
+
showSliderArrow_: showSliderArrow_
|
|
14210
14237
|
} = _ref;
|
|
14211
14238
|
const [get_sorting] = current_sorting_;
|
|
14212
14239
|
const all_products_loaded_ = $52FdA$solidjs.createSignal(false);
|
|
@@ -14565,6 +14592,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
14565
14592
|
id_currently_querying_for_: get_search_query_,
|
|
14566
14593
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
14567
14594
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
14595
|
+
showSliderArrow_: showSliderArrow_,
|
|
14568
14596
|
no_results_options_: {
|
|
14569
14597
|
selected_filters_: selected_filters_,
|
|
14570
14598
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -15057,6 +15085,7 @@ function $ddd39c5f36f49703$export$f2dc7e4e4aa11abb(props) {
|
|
|
15057
15085
|
},
|
|
15058
15086
|
submit_query_: shared_properties.configured_submit_query_,
|
|
15059
15087
|
modalVersionUsed_: shared_properties.modalVersionUsed_,
|
|
15088
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
15060
15089
|
i18n_: shared_properties.i18n_,
|
|
15061
15090
|
modalAlignmentSignalsRef_: style => {
|
|
15062
15091
|
const shared_info_right_now = $ddd39c5f36f49703$export$dde08b2dca8cc1ce.get(depict_search);
|
|
@@ -16228,7 +16257,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
16228
16257
|
sorting_query_param_: sorting_query_param_,
|
|
16229
16258
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
16230
16259
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
16231
|
-
filterModalParent_: filterModalParent_
|
|
16260
|
+
filterModalParent_: filterModalParent_,
|
|
16261
|
+
showSliderArrow_: showSliderArrow_
|
|
16232
16262
|
} = _ref;
|
|
16233
16263
|
let results_for;
|
|
16234
16264
|
let only_show_filters_opener_;
|
|
@@ -16607,6 +16637,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
16607
16637
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
16608
16638
|
id_currently_querying_for_: id_to_query_for_,
|
|
16609
16639
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
16640
|
+
showSliderArrow_: showSliderArrow_,
|
|
16610
16641
|
all_products_loaded_: all_products_loaded_,
|
|
16611
16642
|
no_results_options_: {
|
|
16612
16643
|
selected_filters_: selected_filters_,
|
|
@@ -16753,6 +16784,7 @@ function $c10e33c4681f8c9b$export$e2bf8ce7779e827e(props) {
|
|
|
16753
16784
|
selected_filters_: selected_filters_,
|
|
16754
16785
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
16755
16786
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
16787
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
16756
16788
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
16757
16789
|
history_content_blocks_: history_content_blocks_,
|
|
16758
16790
|
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.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
|
*/
|
|
@@ -68,12 +68,27 @@ export type SomethingTakingADisplayTransformers<InputDisplay extends Display, Ou
|
|
|
68
68
|
page_url_creator?: never;
|
|
69
69
|
display_transformers?: never;
|
|
70
70
|
};
|
|
71
|
-
export const getExtraDisplayTransformers: () =>
|
|
71
|
+
export const getExtraDisplayTransformers: () => ExtraDisplayTransformers<any, any> | undefined;
|
|
72
72
|
/**
|
|
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
|
+
type ExtraDisplayTransformers<InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay | never> = {
|
|
78
|
+
products?: (options: DisplayTransformerAlwaysThereData & {
|
|
79
|
+
displays: InputDisplay[];
|
|
80
|
+
/**
|
|
81
|
+
* If the category display transformer was called due to navigating to a listing using a <CategoryPage> component, currentListing will be set and contain a promise that can be used to get information of said listing.
|
|
82
|
+
*/
|
|
83
|
+
currentListing?: Promise<ProductListing>;
|
|
84
|
+
}) => CanBePromiseWrapped<OutputDisplay>;
|
|
85
|
+
categories?: <T extends ProductListingWithAncestors | ListingSuggestionForTransformer>(options: DisplayTransformerAlwaysThereData & {
|
|
86
|
+
data: T[];
|
|
87
|
+
}) => CanBePromiseWrapped<T[]>;
|
|
88
|
+
contentResults?: (options: DisplayTransformerAlwaysThereData & {
|
|
89
|
+
data: ContentLink[];
|
|
90
|
+
}) => CanBePromiseWrapped<ContentLink[]>;
|
|
91
|
+
};
|
|
77
92
|
/**
|
|
78
93
|
* Provider to wrap every listing (group of products) in
|
|
79
94
|
* Used for example for deduplicating ResizeObservers for responsive images
|
|
@@ -306,6 +321,7 @@ export function SlidableItems(props: {
|
|
|
306
321
|
mutation_plugins_?: ((this: Amazing_Slider, mutations: IntersectionObserverEntry[], intersecting_items: Record<number, IntersectionObserverEntry>) => unknown)[];
|
|
307
322
|
arrow_width_?: number;
|
|
308
323
|
arrow_height_?: number;
|
|
324
|
+
showArrow_?: boolean;
|
|
309
325
|
}): JSX.Element;
|
|
310
326
|
/**
|
|
311
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)
|
|
@@ -1152,6 +1168,7 @@ export function RecommendationSlider<T extends Display>(props: {
|
|
|
1152
1168
|
recommendations: Promise<T[]>;
|
|
1153
1169
|
title?: JSX.Element;
|
|
1154
1170
|
product_card_template: ProductCardTemplate<T>;
|
|
1171
|
+
showSliderArrow_?: boolean;
|
|
1155
1172
|
class?: string;
|
|
1156
1173
|
}): HTMLDivElement;
|
|
1157
1174
|
export function ExpandingDetails(props: {
|
|
@@ -1477,6 +1494,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1477
1494
|
on_query_change?: (new_query?: string | undefined, old_query?: string | undefined) => void;
|
|
1478
1495
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1479
1496
|
class?: string;
|
|
1497
|
+
showSliderArrow_?: boolean;
|
|
1480
1498
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1481
1499
|
/**
|
|
1482
1500
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1595,5 +1613,6 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1595
1613
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1596
1614
|
layout?: PossibleLayout;
|
|
1597
1615
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1616
|
+
showSliderArrow_?: boolean;
|
|
1598
1617
|
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1599
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.17";
|
|
14
14
|
function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
|
|
15
15
|
const [width, setWidth] = $8tj43$createSignal(0);
|
|
16
16
|
const [height, setHeight] = $8tj43$createSignal(0);
|
|
@@ -46,7 +46,8 @@ function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
|
|
|
46
46
|
// Them being here is value first too because this can be easily imported in the product card editor
|
|
47
47
|
let $80c7883e020be192$var$extraDisplayTransformers;
|
|
48
48
|
const $80c7883e020be192$export$b2d94be4f02525b2 = () => $80c7883e020be192$var$extraDisplayTransformers;
|
|
49
|
-
const $80c7883e020be192$export$f98b8d5ea7207a1 = displayTransformers => $80c7883e020be192$var$extraDisplayTransformers = displayTransformers;
|
|
49
|
+
const $80c7883e020be192$export$f98b8d5ea7207a1 = displayTransformers => $80c7883e020be192$var$extraDisplayTransformers = displayTransformers; // These display transformers are "extra" so they don't have to return a page_url, we already do that in the shopify app
|
|
50
|
+
|
|
50
51
|
const $5441862cd2f5e111$var$ListingContext = /*@__PURE__*/$8tj43$createContext();
|
|
51
52
|
function $5441862cd2f5e111$export$e68cff63f76bd15b(props) {
|
|
52
53
|
const our_object = {};
|
|
@@ -956,7 +957,9 @@ function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
|
|
|
956
957
|
})();
|
|
957
958
|
}
|
|
958
959
|
var $002f09d00aac50b2$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div>`),
|
|
959
|
-
$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>`);
|
|
960
963
|
const $002f09d00aac50b2$var$SlidableContext = /*@__PURE__*/$8tj43$createContext();
|
|
961
964
|
function $002f09d00aac50b2$export$6649caad96ef8870(props) {
|
|
962
965
|
const {
|
|
@@ -991,12 +994,26 @@ function $002f09d00aac50b2$export$6649caad96ef8870(props) {
|
|
|
991
994
|
},
|
|
992
995
|
get fallback() {
|
|
993
996
|
return (() => {
|
|
994
|
-
var _el$2 = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$
|
|
995
|
-
_el$
|
|
996
|
-
_el$
|
|
997
|
-
_el$5 = _el$
|
|
998
|
-
$8tj43$insert(_el$
|
|
999
|
-
|
|
997
|
+
var _el$2 = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$4),
|
|
998
|
+
_el$6 = _el$2.firstChild,
|
|
999
|
+
[_el$7, _co$] = $8tj43$getNextMarker(_el$6.nextSibling),
|
|
1000
|
+
_el$5 = _el$7.nextSibling;
|
|
1001
|
+
$8tj43$insert(_el$2, $8tj43$createComponent((0, $8tj43$Show), {
|
|
1002
|
+
get when() {
|
|
1003
|
+
return props.showArrow_ !== false;
|
|
1004
|
+
},
|
|
1005
|
+
get children() {
|
|
1006
|
+
return [(() => {
|
|
1007
|
+
var _el$3 = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$2);
|
|
1008
|
+
$8tj43$insert(_el$3, $8tj43$createComponent(MakeButton, {}));
|
|
1009
|
+
return _el$3;
|
|
1010
|
+
})(), (() => {
|
|
1011
|
+
var _el$4 = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$3);
|
|
1012
|
+
$8tj43$insert(_el$4, $8tj43$createComponent(MakeButton, {}));
|
|
1013
|
+
return _el$4;
|
|
1014
|
+
})()];
|
|
1015
|
+
}
|
|
1016
|
+
}), _el$7, _co$);
|
|
1000
1017
|
$8tj43$insert(_el$5, () => props.children);
|
|
1001
1018
|
return _el$2;
|
|
1002
1019
|
})();
|
|
@@ -1010,8 +1027,8 @@ function $002f09d00aac50b2$export$6649caad96ef8870(props) {
|
|
|
1010
1027
|
});
|
|
1011
1028
|
const slider = new (0, $8tj43$Amazing_Slider)({
|
|
1012
1029
|
button_contents: {
|
|
1013
|
-
left: [MakeButton()],
|
|
1014
|
-
right: [MakeButton()]
|
|
1030
|
+
left: props.showArrow_ === false ? [] : [MakeButton()],
|
|
1031
|
+
right: props.showArrow_ === false ? [] : [MakeButton()]
|
|
1015
1032
|
},
|
|
1016
1033
|
constructor_plugins: [$8tj43$slider_snap_css(0, {
|
|
1017
1034
|
align: snapAlign_
|
|
@@ -1693,7 +1710,8 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
|
|
|
1693
1710
|
layout_options_: layout_options_,
|
|
1694
1711
|
title_: title_,
|
|
1695
1712
|
NoResultsFallback_: NoResultsFallback_,
|
|
1696
|
-
placeholderCacheKey_: placeholderCacheKey_
|
|
1713
|
+
placeholderCacheKey_: placeholderCacheKey_,
|
|
1714
|
+
showSliderArrow_: showSliderArrow_
|
|
1697
1715
|
} = _ref;
|
|
1698
1716
|
const is_showing_something = $8tj43$createMemo(() => {
|
|
1699
1717
|
var _recommendations_reso;
|
|
@@ -1714,6 +1732,9 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
|
|
|
1714
1732
|
arrow_height_: 25,
|
|
1715
1733
|
arrow_width_: 12.5,
|
|
1716
1734
|
disable_fading_: true,
|
|
1735
|
+
get showArrow_() {
|
|
1736
|
+
return showSliderArrow_ === null || showSliderArrow_ === void 0 ? void 0 : showSliderArrow_();
|
|
1737
|
+
},
|
|
1717
1738
|
slider_ref_: slider => {
|
|
1718
1739
|
const {
|
|
1719
1740
|
insert_here: insert_here,
|
|
@@ -6777,6 +6798,7 @@ function $d5d7e58c5c9d8db0$export$9574e176201e5e8d(props) {
|
|
|
6777
6798
|
return props.product_card_template(...arguments);
|
|
6778
6799
|
},
|
|
6779
6800
|
recommendations_resource_: recommendations_resource_,
|
|
6801
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
6780
6802
|
title_: () => props.title,
|
|
6781
6803
|
layout_options_: $8tj43$createMemo(() => ({
|
|
6782
6804
|
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -12054,7 +12076,8 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
|
|
|
12054
12076
|
id_currently_querying_for_: id_currently_querying_for_,
|
|
12055
12077
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
12056
12078
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
12057
|
-
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
|
|
12079
|
+
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
12080
|
+
showSliderArrow_: showSliderArrow_
|
|
12058
12081
|
} = _ref;
|
|
12059
12082
|
// 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
|
|
12060
12083
|
const is_loading_ = $8tj43$createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -12241,6 +12264,9 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
|
|
|
12241
12264
|
arrow_height_: 25,
|
|
12242
12265
|
arrow_width_: 12.5,
|
|
12243
12266
|
disable_fading_: true,
|
|
12267
|
+
get showArrow_() {
|
|
12268
|
+
return showSliderArrow_();
|
|
12269
|
+
},
|
|
12244
12270
|
slider_ref_: slider => {
|
|
12245
12271
|
const {
|
|
12246
12272
|
insert_here: insert_here,
|
|
@@ -14102,7 +14128,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
14102
14128
|
modalVersionUsed_: modalVersionUsed_,
|
|
14103
14129
|
BackIcon_: BackIcon_,
|
|
14104
14130
|
filterModalParent_: filterModalParent_,
|
|
14105
|
-
class_: class_
|
|
14131
|
+
class_: class_,
|
|
14132
|
+
showSliderArrow_: showSliderArrow_
|
|
14106
14133
|
} = _ref;
|
|
14107
14134
|
const [get_sorting] = current_sorting_;
|
|
14108
14135
|
const all_products_loaded_ = $8tj43$createSignal(false);
|
|
@@ -14461,6 +14488,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
14461
14488
|
id_currently_querying_for_: get_search_query_,
|
|
14462
14489
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
14463
14490
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
14491
|
+
showSliderArrow_: showSliderArrow_,
|
|
14464
14492
|
no_results_options_: {
|
|
14465
14493
|
selected_filters_: selected_filters_,
|
|
14466
14494
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -14953,6 +14981,7 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
|
|
|
14953
14981
|
},
|
|
14954
14982
|
submit_query_: shared_properties.configured_submit_query_,
|
|
14955
14983
|
modalVersionUsed_: shared_properties.modalVersionUsed_,
|
|
14984
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
14956
14985
|
i18n_: shared_properties.i18n_,
|
|
14957
14986
|
modalAlignmentSignalsRef_: style => {
|
|
14958
14987
|
const shared_info_right_now = $eb064bc3350276c1$export$dde08b2dca8cc1ce.get(depict_search);
|
|
@@ -16124,7 +16153,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
16124
16153
|
sorting_query_param_: sorting_query_param_,
|
|
16125
16154
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
16126
16155
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
16127
|
-
filterModalParent_: filterModalParent_
|
|
16156
|
+
filterModalParent_: filterModalParent_,
|
|
16157
|
+
showSliderArrow_: showSliderArrow_
|
|
16128
16158
|
} = _ref;
|
|
16129
16159
|
let results_for;
|
|
16130
16160
|
let only_show_filters_opener_;
|
|
@@ -16503,6 +16533,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
16503
16533
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
16504
16534
|
id_currently_querying_for_: id_to_query_for_,
|
|
16505
16535
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
16536
|
+
showSliderArrow_: showSliderArrow_,
|
|
16506
16537
|
all_products_loaded_: all_products_loaded_,
|
|
16507
16538
|
no_results_options_: {
|
|
16508
16539
|
selected_filters_: selected_filters_,
|
|
@@ -16649,6 +16680,7 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
|
|
|
16649
16680
|
selected_filters_: selected_filters_,
|
|
16650
16681
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
16651
16682
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
16683
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
16652
16684
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
16653
16685
|
history_content_blocks_: history_content_blocks_,
|
|
16654
16686
|
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.17";
|
|
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);
|
|
@@ -141,7 +141,8 @@ function $128302ab61dab8f1$export$54c6d6ff54e72743(whatToWatch) {
|
|
|
141
141
|
// Them being here is value first too because this can be easily imported in the product card editor
|
|
142
142
|
let $606c221d98ba4d92$var$extraDisplayTransformers;
|
|
143
143
|
const $606c221d98ba4d92$export$b2d94be4f02525b2 = () => $606c221d98ba4d92$var$extraDisplayTransformers;
|
|
144
|
-
const $606c221d98ba4d92$export$f98b8d5ea7207a1 = displayTransformers => $606c221d98ba4d92$var$extraDisplayTransformers = displayTransformers;
|
|
144
|
+
const $606c221d98ba4d92$export$f98b8d5ea7207a1 = displayTransformers => $606c221d98ba4d92$var$extraDisplayTransformers = displayTransformers; // These display transformers are "extra" so they don't have to return a page_url, we already do that in the shopify app
|
|
145
|
+
|
|
145
146
|
const $84798aaa863a4909$var$ListingContext = /*@__PURE__*/$gVhhF$solidjs.createContext();
|
|
146
147
|
function $84798aaa863a4909$export$e68cff63f76bd15b(props) {
|
|
147
148
|
const our_object = {};
|
|
@@ -1012,7 +1013,9 @@ function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
|
|
|
1012
1013
|
})();
|
|
1013
1014
|
}
|
|
1014
1015
|
var $a0e53f99354809d9$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div>`),
|
|
1015
|
-
$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>`);
|
|
1016
1019
|
const $a0e53f99354809d9$var$SlidableContext = /*@__PURE__*/$gVhhF$solidjs.createContext();
|
|
1017
1020
|
function $a0e53f99354809d9$export$6649caad96ef8870(props) {
|
|
1018
1021
|
const {
|
|
@@ -1047,12 +1050,26 @@ function $a0e53f99354809d9$export$6649caad96ef8870(props) {
|
|
|
1047
1050
|
},
|
|
1048
1051
|
get fallback() {
|
|
1049
1052
|
return (() => {
|
|
1050
|
-
var _el$2 = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$
|
|
1051
|
-
_el$
|
|
1052
|
-
_el$
|
|
1053
|
-
_el$5 = _el$
|
|
1054
|
-
$gVhhF$solidjsweb.insert(_el$
|
|
1055
|
-
|
|
1053
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$4),
|
|
1054
|
+
_el$6 = _el$2.firstChild,
|
|
1055
|
+
[_el$7, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$6.nextSibling),
|
|
1056
|
+
_el$5 = _el$7.nextSibling;
|
|
1057
|
+
$gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
1058
|
+
get when() {
|
|
1059
|
+
return props.showArrow_ !== false;
|
|
1060
|
+
},
|
|
1061
|
+
get children() {
|
|
1062
|
+
return [(() => {
|
|
1063
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$2);
|
|
1064
|
+
$gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjsweb.createComponent(MakeButton, {}));
|
|
1065
|
+
return _el$3;
|
|
1066
|
+
})(), (() => {
|
|
1067
|
+
var _el$4 = $gVhhF$solidjsweb.getNextElement($a0e53f99354809d9$var$_tmpl$3);
|
|
1068
|
+
$gVhhF$solidjsweb.insert(_el$4, $gVhhF$solidjsweb.createComponent(MakeButton, {}));
|
|
1069
|
+
return _el$4;
|
|
1070
|
+
})()];
|
|
1071
|
+
}
|
|
1072
|
+
}), _el$7, _co$);
|
|
1056
1073
|
$gVhhF$solidjsweb.insert(_el$5, () => props.children);
|
|
1057
1074
|
return _el$2;
|
|
1058
1075
|
})();
|
|
@@ -1066,8 +1083,8 @@ function $a0e53f99354809d9$export$6649caad96ef8870(props) {
|
|
|
1066
1083
|
});
|
|
1067
1084
|
const slider = new (0, $gVhhF$depictaiutilishared.Amazing_Slider)({
|
|
1068
1085
|
button_contents: {
|
|
1069
|
-
left: [MakeButton()],
|
|
1070
|
-
right: [MakeButton()]
|
|
1086
|
+
left: props.showArrow_ === false ? [] : [MakeButton()],
|
|
1087
|
+
right: props.showArrow_ === false ? [] : [MakeButton()]
|
|
1071
1088
|
},
|
|
1072
1089
|
constructor_plugins: [$gVhhF$depictaiutilishared.slider_snap_css(0, {
|
|
1073
1090
|
align: snapAlign_
|
|
@@ -1717,7 +1734,8 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
|
1717
1734
|
layout_options_: layout_options_,
|
|
1718
1735
|
title_: title_,
|
|
1719
1736
|
NoResultsFallback_: NoResultsFallback_,
|
|
1720
|
-
placeholderCacheKey_: placeholderCacheKey_
|
|
1737
|
+
placeholderCacheKey_: placeholderCacheKey_,
|
|
1738
|
+
showSliderArrow_: showSliderArrow_
|
|
1721
1739
|
}) {
|
|
1722
1740
|
const is_showing_something = $gVhhF$solidjs.createMemo(() => recommendations_resource_.loading || recommendations_resource_()?.length);
|
|
1723
1741
|
const title = $gVhhF$solidjs.createMemo(() => title_?.()); // In case getter/accessor creates elements, don't create them twice
|
|
@@ -1735,6 +1753,9 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
|
1735
1753
|
arrow_height_: 25,
|
|
1736
1754
|
arrow_width_: 12.5,
|
|
1737
1755
|
disable_fading_: true,
|
|
1756
|
+
get showArrow_() {
|
|
1757
|
+
return showSliderArrow_?.();
|
|
1758
|
+
},
|
|
1738
1759
|
slider_ref_: slider => {
|
|
1739
1760
|
const {
|
|
1740
1761
|
insert_here: insert_here,
|
|
@@ -6567,6 +6588,7 @@ function $72f96c4782db0b1b$export$9574e176201e5e8d(props) {
|
|
|
6567
6588
|
return $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
6568
6589
|
product_card_template_: (...args) => props.product_card_template(...args),
|
|
6569
6590
|
recommendations_resource_: recommendations_resource_,
|
|
6591
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
6570
6592
|
title_: () => props.title,
|
|
6571
6593
|
layout_options_: $gVhhF$solidjs.createMemo(() => ({
|
|
6572
6594
|
cols_at_size: $4e04be41243c3d80$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -11443,7 +11465,8 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
11443
11465
|
id_currently_querying_for_: id_currently_querying_for_,
|
|
11444
11466
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
11445
11467
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
11446
|
-
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
|
|
11468
|
+
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
11469
|
+
showSliderArrow_: showSliderArrow_
|
|
11447
11470
|
}) {
|
|
11448
11471
|
// 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
|
|
11449
11472
|
const is_loading_ = $gVhhF$solidjs.createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -11624,6 +11647,9 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
11624
11647
|
arrow_height_: 25,
|
|
11625
11648
|
arrow_width_: 12.5,
|
|
11626
11649
|
disable_fading_: true,
|
|
11650
|
+
get showArrow_() {
|
|
11651
|
+
return showSliderArrow_();
|
|
11652
|
+
},
|
|
11627
11653
|
slider_ref_: slider => {
|
|
11628
11654
|
const {
|
|
11629
11655
|
insert_here: insert_here,
|
|
@@ -13387,7 +13413,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
13387
13413
|
modalVersionUsed_: modalVersionUsed_,
|
|
13388
13414
|
BackIcon_: BackIcon_,
|
|
13389
13415
|
filterModalParent_: filterModalParent_,
|
|
13390
|
-
class_: class_
|
|
13416
|
+
class_: class_,
|
|
13417
|
+
showSliderArrow_: showSliderArrow_
|
|
13391
13418
|
}) {
|
|
13392
13419
|
const [get_sorting] = current_sorting_;
|
|
13393
13420
|
const all_products_loaded_ = $gVhhF$solidjs.createSignal(false);
|
|
@@ -13727,6 +13754,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
13727
13754
|
id_currently_querying_for_: get_search_query_,
|
|
13728
13755
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
13729
13756
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
13757
|
+
showSliderArrow_: showSliderArrow_,
|
|
13730
13758
|
no_results_options_: {
|
|
13731
13759
|
selected_filters_: selected_filters_,
|
|
13732
13760
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -14132,6 +14160,7 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
|
|
|
14132
14160
|
open_modal_: (...args) => depict_search.modal_open = args,
|
|
14133
14161
|
submit_query_: shared_properties.configured_submit_query_,
|
|
14134
14162
|
modalVersionUsed_: shared_properties.modalVersionUsed_,
|
|
14163
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
14135
14164
|
i18n_: shared_properties.i18n_,
|
|
14136
14165
|
modalAlignmentSignalsRef_: style => {
|
|
14137
14166
|
const shared_info_right_now = $2c61e4cd8229c49a$export$dde08b2dca8cc1ce.get(depict_search);
|
|
@@ -15172,7 +15201,8 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
15172
15201
|
sorting_query_param_: sorting_query_param_,
|
|
15173
15202
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
15174
15203
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
15175
|
-
filterModalParent_: filterModalParent_
|
|
15204
|
+
filterModalParent_: filterModalParent_,
|
|
15205
|
+
showSliderArrow_: showSliderArrow_
|
|
15176
15206
|
}) {
|
|
15177
15207
|
let results_for;
|
|
15178
15208
|
let only_show_filters_opener_;
|
|
@@ -15530,6 +15560,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
15530
15560
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
15531
15561
|
id_currently_querying_for_: id_to_query_for_,
|
|
15532
15562
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
15563
|
+
showSliderArrow_: showSliderArrow_,
|
|
15533
15564
|
all_products_loaded_: all_products_loaded_,
|
|
15534
15565
|
no_results_options_: {
|
|
15535
15566
|
selected_filters_: selected_filters_,
|
|
@@ -15668,6 +15699,7 @@ function $14f289047713d67a$export$e2bf8ce7779e827e(props) {
|
|
|
15668
15699
|
selected_filters_: selected_filters_,
|
|
15669
15700
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
15670
15701
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
15702
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
15671
15703
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
15672
15704
|
history_content_blocks_: history_content_blocks_,
|
|
15673
15705
|
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.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
|
*/
|
|
@@ -68,12 +68,27 @@ export type SomethingTakingADisplayTransformers<InputDisplay extends Display, Ou
|
|
|
68
68
|
page_url_creator?: never;
|
|
69
69
|
display_transformers?: never;
|
|
70
70
|
};
|
|
71
|
-
export const getExtraDisplayTransformers: () =>
|
|
71
|
+
export const getExtraDisplayTransformers: () => ExtraDisplayTransformers<any, any> | undefined;
|
|
72
72
|
/**
|
|
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
|
+
type ExtraDisplayTransformers<InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay | never> = {
|
|
78
|
+
products?: (options: DisplayTransformerAlwaysThereData & {
|
|
79
|
+
displays: InputDisplay[];
|
|
80
|
+
/**
|
|
81
|
+
* If the category display transformer was called due to navigating to a listing using a <CategoryPage> component, currentListing will be set and contain a promise that can be used to get information of said listing.
|
|
82
|
+
*/
|
|
83
|
+
currentListing?: Promise<ProductListing>;
|
|
84
|
+
}) => CanBePromiseWrapped<OutputDisplay>;
|
|
85
|
+
categories?: <T extends ProductListingWithAncestors | ListingSuggestionForTransformer>(options: DisplayTransformerAlwaysThereData & {
|
|
86
|
+
data: T[];
|
|
87
|
+
}) => CanBePromiseWrapped<T[]>;
|
|
88
|
+
contentResults?: (options: DisplayTransformerAlwaysThereData & {
|
|
89
|
+
data: ContentLink[];
|
|
90
|
+
}) => CanBePromiseWrapped<ContentLink[]>;
|
|
91
|
+
};
|
|
77
92
|
/**
|
|
78
93
|
* Provider to wrap every listing (group of products) in
|
|
79
94
|
* Used for example for deduplicating ResizeObservers for responsive images
|
|
@@ -306,6 +321,7 @@ export function SlidableItems(props: {
|
|
|
306
321
|
mutation_plugins_?: ((this: Amazing_Slider, mutations: IntersectionObserverEntry[], intersecting_items: Record<number, IntersectionObserverEntry>) => unknown)[];
|
|
307
322
|
arrow_width_?: number;
|
|
308
323
|
arrow_height_?: number;
|
|
324
|
+
showArrow_?: boolean;
|
|
309
325
|
}): JSX.Element;
|
|
310
326
|
/**
|
|
311
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)
|
|
@@ -1152,6 +1168,7 @@ export function RecommendationSlider<T extends Display>(props: {
|
|
|
1152
1168
|
recommendations: Promise<T[]>;
|
|
1153
1169
|
title?: JSX.Element;
|
|
1154
1170
|
product_card_template: ProductCardTemplate<T>;
|
|
1171
|
+
showSliderArrow_?: boolean;
|
|
1155
1172
|
class?: string;
|
|
1156
1173
|
}): HTMLDivElement;
|
|
1157
1174
|
export function ExpandingDetails(props: {
|
|
@@ -1477,6 +1494,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1477
1494
|
on_query_change?: (new_query?: string | undefined, old_query?: string | undefined) => void;
|
|
1478
1495
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1479
1496
|
class?: string;
|
|
1497
|
+
showSliderArrow_?: boolean;
|
|
1480
1498
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1481
1499
|
/**
|
|
1482
1500
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1595,5 +1613,6 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1595
1613
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1596
1614
|
layout?: PossibleLayout;
|
|
1597
1615
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1616
|
+
showSliderArrow_?: boolean;
|
|
1598
1617
|
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1599
1618
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|