@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/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);
|
|
@@ -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 {
|
|
@@ -1096,12 +1098,26 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
|
|
|
1096
1098
|
},
|
|
1097
1099
|
get fallback() {
|
|
1098
1100
|
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
|
-
|
|
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$);
|
|
1105
1121
|
$52FdA$solidjsweb.insert(_el$5, () => props.children);
|
|
1106
1122
|
return _el$2;
|
|
1107
1123
|
})();
|
|
@@ -1115,8 +1131,8 @@ function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
|
|
|
1115
1131
|
});
|
|
1116
1132
|
const slider = new (0, $52FdA$depictaiutilishared.Amazing_Slider)({
|
|
1117
1133
|
button_contents: {
|
|
1118
|
-
left: [MakeButton()],
|
|
1119
|
-
right: [MakeButton()]
|
|
1134
|
+
left: props.showArrow_ === false ? [] : [MakeButton()],
|
|
1135
|
+
right: props.showArrow_ === false ? [] : [MakeButton()]
|
|
1120
1136
|
},
|
|
1121
1137
|
constructor_plugins: [$52FdA$depictaiutilishared.slider_snap_css(0, {
|
|
1122
1138
|
align: snapAlign_
|
|
@@ -1798,7 +1814,8 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
|
|
|
1798
1814
|
layout_options_: layout_options_,
|
|
1799
1815
|
title_: title_,
|
|
1800
1816
|
NoResultsFallback_: NoResultsFallback_,
|
|
1801
|
-
placeholderCacheKey_: placeholderCacheKey_
|
|
1817
|
+
placeholderCacheKey_: placeholderCacheKey_,
|
|
1818
|
+
showSliderArrow_: showSliderArrow_
|
|
1802
1819
|
} = _ref;
|
|
1803
1820
|
const is_showing_something = $52FdA$solidjs.createMemo(() => {
|
|
1804
1821
|
var _recommendations_reso;
|
|
@@ -1819,6 +1836,9 @@ function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
|
|
|
1819
1836
|
arrow_height_: 25,
|
|
1820
1837
|
arrow_width_: 12.5,
|
|
1821
1838
|
disable_fading_: true,
|
|
1839
|
+
get showArrow_() {
|
|
1840
|
+
return showSliderArrow_ === null || showSliderArrow_ === void 0 ? void 0 : showSliderArrow_();
|
|
1841
|
+
},
|
|
1822
1842
|
slider_ref_: slider => {
|
|
1823
1843
|
const {
|
|
1824
1844
|
insert_here: insert_here,
|
|
@@ -6882,6 +6902,7 @@ function $2badc30d7c6610e1$export$9574e176201e5e8d(props) {
|
|
|
6882
6902
|
return props.product_card_template(...arguments);
|
|
6883
6903
|
},
|
|
6884
6904
|
recommendations_resource_: recommendations_resource_,
|
|
6905
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
6885
6906
|
title_: () => props.title,
|
|
6886
6907
|
layout_options_: $52FdA$solidjs.createMemo(() => ({
|
|
6887
6908
|
cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -12159,7 +12180,8 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
|
|
|
12159
12180
|
id_currently_querying_for_: id_currently_querying_for_,
|
|
12160
12181
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
12161
12182
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
12162
|
-
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
|
|
12183
|
+
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
12184
|
+
showSliderArrow_: showSliderArrow_
|
|
12163
12185
|
} = _ref;
|
|
12164
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
|
|
12165
12187
|
const is_loading_ = $52FdA$solidjs.createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -12346,6 +12368,9 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
|
|
|
12346
12368
|
arrow_height_: 25,
|
|
12347
12369
|
arrow_width_: 12.5,
|
|
12348
12370
|
disable_fading_: true,
|
|
12371
|
+
get showArrow_() {
|
|
12372
|
+
return showSliderArrow_();
|
|
12373
|
+
},
|
|
12349
12374
|
slider_ref_: slider => {
|
|
12350
12375
|
const {
|
|
12351
12376
|
insert_here: insert_here,
|
|
@@ -14207,7 +14232,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
14207
14232
|
modalVersionUsed_: modalVersionUsed_,
|
|
14208
14233
|
BackIcon_: BackIcon_,
|
|
14209
14234
|
filterModalParent_: filterModalParent_,
|
|
14210
|
-
class_: class_
|
|
14235
|
+
class_: class_,
|
|
14236
|
+
showSliderArrow_: showSliderArrow_
|
|
14211
14237
|
} = _ref;
|
|
14212
14238
|
const [get_sorting] = current_sorting_;
|
|
14213
14239
|
const all_products_loaded_ = $52FdA$solidjs.createSignal(false);
|
|
@@ -14566,6 +14592,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
14566
14592
|
id_currently_querying_for_: get_search_query_,
|
|
14567
14593
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
14568
14594
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
14595
|
+
showSliderArrow_: showSliderArrow_,
|
|
14569
14596
|
no_results_options_: {
|
|
14570
14597
|
selected_filters_: selected_filters_,
|
|
14571
14598
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -15058,6 +15085,7 @@ function $ddd39c5f36f49703$export$f2dc7e4e4aa11abb(props) {
|
|
|
15058
15085
|
},
|
|
15059
15086
|
submit_query_: shared_properties.configured_submit_query_,
|
|
15060
15087
|
modalVersionUsed_: shared_properties.modalVersionUsed_,
|
|
15088
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
15061
15089
|
i18n_: shared_properties.i18n_,
|
|
15062
15090
|
modalAlignmentSignalsRef_: style => {
|
|
15063
15091
|
const shared_info_right_now = $ddd39c5f36f49703$export$dde08b2dca8cc1ce.get(depict_search);
|
|
@@ -16229,7 +16257,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
16229
16257
|
sorting_query_param_: sorting_query_param_,
|
|
16230
16258
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
16231
16259
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
16232
|
-
filterModalParent_: filterModalParent_
|
|
16260
|
+
filterModalParent_: filterModalParent_,
|
|
16261
|
+
showSliderArrow_: showSliderArrow_
|
|
16233
16262
|
} = _ref;
|
|
16234
16263
|
let results_for;
|
|
16235
16264
|
let only_show_filters_opener_;
|
|
@@ -16608,6 +16637,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
16608
16637
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
16609
16638
|
id_currently_querying_for_: id_to_query_for_,
|
|
16610
16639
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
16640
|
+
showSliderArrow_: showSliderArrow_,
|
|
16611
16641
|
all_products_loaded_: all_products_loaded_,
|
|
16612
16642
|
no_results_options_: {
|
|
16613
16643
|
selected_filters_: selected_filters_,
|
|
@@ -16754,6 +16784,7 @@ function $c10e33c4681f8c9b$export$e2bf8ce7779e827e(props) {
|
|
|
16754
16784
|
selected_filters_: selected_filters_,
|
|
16755
16785
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
16756
16786
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
16787
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
16757
16788
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
16758
16789
|
history_content_blocks_: history_content_blocks_,
|
|
16759
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
|
*/
|
|
@@ -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.17";
|
|
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 {
|
|
@@ -992,12 +994,26 @@ function $002f09d00aac50b2$export$6649caad96ef8870(props) {
|
|
|
992
994
|
},
|
|
993
995
|
get fallback() {
|
|
994
996
|
return (() => {
|
|
995
|
-
var _el$2 = $8tj43$getNextElement($002f09d00aac50b2$var$_tmpl$
|
|
996
|
-
_el$
|
|
997
|
-
_el$
|
|
998
|
-
_el$5 = _el$
|
|
999
|
-
$8tj43$insert(_el$
|
|
1000
|
-
|
|
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$);
|
|
1001
1017
|
$8tj43$insert(_el$5, () => props.children);
|
|
1002
1018
|
return _el$2;
|
|
1003
1019
|
})();
|
|
@@ -1011,8 +1027,8 @@ function $002f09d00aac50b2$export$6649caad96ef8870(props) {
|
|
|
1011
1027
|
});
|
|
1012
1028
|
const slider = new (0, $8tj43$Amazing_Slider)({
|
|
1013
1029
|
button_contents: {
|
|
1014
|
-
left: [MakeButton()],
|
|
1015
|
-
right: [MakeButton()]
|
|
1030
|
+
left: props.showArrow_ === false ? [] : [MakeButton()],
|
|
1031
|
+
right: props.showArrow_ === false ? [] : [MakeButton()]
|
|
1016
1032
|
},
|
|
1017
1033
|
constructor_plugins: [$8tj43$slider_snap_css(0, {
|
|
1018
1034
|
align: snapAlign_
|
|
@@ -1694,7 +1710,8 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
|
|
|
1694
1710
|
layout_options_: layout_options_,
|
|
1695
1711
|
title_: title_,
|
|
1696
1712
|
NoResultsFallback_: NoResultsFallback_,
|
|
1697
|
-
placeholderCacheKey_: placeholderCacheKey_
|
|
1713
|
+
placeholderCacheKey_: placeholderCacheKey_,
|
|
1714
|
+
showSliderArrow_: showSliderArrow_
|
|
1698
1715
|
} = _ref;
|
|
1699
1716
|
const is_showing_something = $8tj43$createMemo(() => {
|
|
1700
1717
|
var _recommendations_reso;
|
|
@@ -1715,6 +1732,9 @@ function $39ddb986053fb759$export$d41d19e89346fa2(_ref) {
|
|
|
1715
1732
|
arrow_height_: 25,
|
|
1716
1733
|
arrow_width_: 12.5,
|
|
1717
1734
|
disable_fading_: true,
|
|
1735
|
+
get showArrow_() {
|
|
1736
|
+
return showSliderArrow_ === null || showSliderArrow_ === void 0 ? void 0 : showSliderArrow_();
|
|
1737
|
+
},
|
|
1718
1738
|
slider_ref_: slider => {
|
|
1719
1739
|
const {
|
|
1720
1740
|
insert_here: insert_here,
|
|
@@ -6778,6 +6798,7 @@ function $d5d7e58c5c9d8db0$export$9574e176201e5e8d(props) {
|
|
|
6778
6798
|
return props.product_card_template(...arguments);
|
|
6779
6799
|
},
|
|
6780
6800
|
recommendations_resource_: recommendations_resource_,
|
|
6801
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
6781
6802
|
title_: () => props.title,
|
|
6782
6803
|
layout_options_: $8tj43$createMemo(() => ({
|
|
6783
6804
|
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -12055,7 +12076,8 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
|
|
|
12055
12076
|
id_currently_querying_for_: id_currently_querying_for_,
|
|
12056
12077
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
12057
12078
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
12058
|
-
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
|
|
12079
|
+
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
12080
|
+
showSliderArrow_: showSliderArrow_
|
|
12059
12081
|
} = _ref;
|
|
12060
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
|
|
12061
12083
|
const is_loading_ = $8tj43$createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -12242,6 +12264,9 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
|
|
|
12242
12264
|
arrow_height_: 25,
|
|
12243
12265
|
arrow_width_: 12.5,
|
|
12244
12266
|
disable_fading_: true,
|
|
12267
|
+
get showArrow_() {
|
|
12268
|
+
return showSliderArrow_();
|
|
12269
|
+
},
|
|
12245
12270
|
slider_ref_: slider => {
|
|
12246
12271
|
const {
|
|
12247
12272
|
insert_here: insert_here,
|
|
@@ -14103,7 +14128,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
14103
14128
|
modalVersionUsed_: modalVersionUsed_,
|
|
14104
14129
|
BackIcon_: BackIcon_,
|
|
14105
14130
|
filterModalParent_: filterModalParent_,
|
|
14106
|
-
class_: class_
|
|
14131
|
+
class_: class_,
|
|
14132
|
+
showSliderArrow_: showSliderArrow_
|
|
14107
14133
|
} = _ref;
|
|
14108
14134
|
const [get_sorting] = current_sorting_;
|
|
14109
14135
|
const all_products_loaded_ = $8tj43$createSignal(false);
|
|
@@ -14462,6 +14488,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
14462
14488
|
id_currently_querying_for_: get_search_query_,
|
|
14463
14489
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
14464
14490
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
14491
|
+
showSliderArrow_: showSliderArrow_,
|
|
14465
14492
|
no_results_options_: {
|
|
14466
14493
|
selected_filters_: selected_filters_,
|
|
14467
14494
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -14954,6 +14981,7 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
|
|
|
14954
14981
|
},
|
|
14955
14982
|
submit_query_: shared_properties.configured_submit_query_,
|
|
14956
14983
|
modalVersionUsed_: shared_properties.modalVersionUsed_,
|
|
14984
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
14957
14985
|
i18n_: shared_properties.i18n_,
|
|
14958
14986
|
modalAlignmentSignalsRef_: style => {
|
|
14959
14987
|
const shared_info_right_now = $eb064bc3350276c1$export$dde08b2dca8cc1ce.get(depict_search);
|
|
@@ -16125,7 +16153,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
16125
16153
|
sorting_query_param_: sorting_query_param_,
|
|
16126
16154
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
16127
16155
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
16128
|
-
filterModalParent_: filterModalParent_
|
|
16156
|
+
filterModalParent_: filterModalParent_,
|
|
16157
|
+
showSliderArrow_: showSliderArrow_
|
|
16129
16158
|
} = _ref;
|
|
16130
16159
|
let results_for;
|
|
16131
16160
|
let only_show_filters_opener_;
|
|
@@ -16504,6 +16533,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
16504
16533
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
16505
16534
|
id_currently_querying_for_: id_to_query_for_,
|
|
16506
16535
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
16536
|
+
showSliderArrow_: showSliderArrow_,
|
|
16507
16537
|
all_products_loaded_: all_products_loaded_,
|
|
16508
16538
|
no_results_options_: {
|
|
16509
16539
|
selected_filters_: selected_filters_,
|
|
@@ -16650,6 +16680,7 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
|
|
|
16650
16680
|
selected_filters_: selected_filters_,
|
|
16651
16681
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
16652
16682
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
16683
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
16653
16684
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
16654
16685
|
history_content_blocks_: history_content_blocks_,
|
|
16655
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);
|
|
@@ -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 {
|
|
@@ -1048,12 +1050,26 @@ function $a0e53f99354809d9$export$6649caad96ef8870(props) {
|
|
|
1048
1050
|
},
|
|
1049
1051
|
get fallback() {
|
|
1050
1052
|
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
|
-
|
|
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$);
|
|
1057
1073
|
$gVhhF$solidjsweb.insert(_el$5, () => props.children);
|
|
1058
1074
|
return _el$2;
|
|
1059
1075
|
})();
|
|
@@ -1067,8 +1083,8 @@ function $a0e53f99354809d9$export$6649caad96ef8870(props) {
|
|
|
1067
1083
|
});
|
|
1068
1084
|
const slider = new (0, $gVhhF$depictaiutilishared.Amazing_Slider)({
|
|
1069
1085
|
button_contents: {
|
|
1070
|
-
left: [MakeButton()],
|
|
1071
|
-
right: [MakeButton()]
|
|
1086
|
+
left: props.showArrow_ === false ? [] : [MakeButton()],
|
|
1087
|
+
right: props.showArrow_ === false ? [] : [MakeButton()]
|
|
1072
1088
|
},
|
|
1073
1089
|
constructor_plugins: [$gVhhF$depictaiutilishared.slider_snap_css(0, {
|
|
1074
1090
|
align: snapAlign_
|
|
@@ -1718,7 +1734,8 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
|
1718
1734
|
layout_options_: layout_options_,
|
|
1719
1735
|
title_: title_,
|
|
1720
1736
|
NoResultsFallback_: NoResultsFallback_,
|
|
1721
|
-
placeholderCacheKey_: placeholderCacheKey_
|
|
1737
|
+
placeholderCacheKey_: placeholderCacheKey_,
|
|
1738
|
+
showSliderArrow_: showSliderArrow_
|
|
1722
1739
|
}) {
|
|
1723
1740
|
const is_showing_something = $gVhhF$solidjs.createMemo(() => recommendations_resource_.loading || recommendations_resource_()?.length);
|
|
1724
1741
|
const title = $gVhhF$solidjs.createMemo(() => title_?.()); // In case getter/accessor creates elements, don't create them twice
|
|
@@ -1736,6 +1753,9 @@ function $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
|
1736
1753
|
arrow_height_: 25,
|
|
1737
1754
|
arrow_width_: 12.5,
|
|
1738
1755
|
disable_fading_: true,
|
|
1756
|
+
get showArrow_() {
|
|
1757
|
+
return showSliderArrow_?.();
|
|
1758
|
+
},
|
|
1739
1759
|
slider_ref_: slider => {
|
|
1740
1760
|
const {
|
|
1741
1761
|
insert_here: insert_here,
|
|
@@ -6568,6 +6588,7 @@ function $72f96c4782db0b1b$export$9574e176201e5e8d(props) {
|
|
|
6568
6588
|
return $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
6569
6589
|
product_card_template_: (...args) => props.product_card_template(...args),
|
|
6570
6590
|
recommendations_resource_: recommendations_resource_,
|
|
6591
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
6571
6592
|
title_: () => props.title,
|
|
6572
6593
|
layout_options_: $gVhhF$solidjs.createMemo(() => ({
|
|
6573
6594
|
cols_at_size: $4e04be41243c3d80$export$6daf8749b65a1b77(props.cols_at_size),
|
|
@@ -11444,7 +11465,8 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
11444
11465
|
id_currently_querying_for_: id_currently_querying_for_,
|
|
11445
11466
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
11446
11467
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
11447
|
-
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_
|
|
11468
|
+
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
11469
|
+
showSliderArrow_: showSliderArrow_
|
|
11448
11470
|
}) {
|
|
11449
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
|
|
11450
11472
|
const is_loading_ = $gVhhF$solidjs.createMemo(() => plp_results_.loading || query_base_.loading);
|
|
@@ -11625,6 +11647,9 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
|
|
|
11625
11647
|
arrow_height_: 25,
|
|
11626
11648
|
arrow_width_: 12.5,
|
|
11627
11649
|
disable_fading_: true,
|
|
11650
|
+
get showArrow_() {
|
|
11651
|
+
return showSliderArrow_();
|
|
11652
|
+
},
|
|
11628
11653
|
slider_ref_: slider => {
|
|
11629
11654
|
const {
|
|
11630
11655
|
insert_here: insert_here,
|
|
@@ -13388,7 +13413,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
13388
13413
|
modalVersionUsed_: modalVersionUsed_,
|
|
13389
13414
|
BackIcon_: BackIcon_,
|
|
13390
13415
|
filterModalParent_: filterModalParent_,
|
|
13391
|
-
class_: class_
|
|
13416
|
+
class_: class_,
|
|
13417
|
+
showSliderArrow_: showSliderArrow_
|
|
13392
13418
|
}) {
|
|
13393
13419
|
const [get_sorting] = current_sorting_;
|
|
13394
13420
|
const all_products_loaded_ = $gVhhF$solidjs.createSignal(false);
|
|
@@ -13728,6 +13754,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
13728
13754
|
id_currently_querying_for_: get_search_query_,
|
|
13729
13755
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
13730
13756
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
13757
|
+
showSliderArrow_: showSliderArrow_,
|
|
13731
13758
|
no_results_options_: {
|
|
13732
13759
|
selected_filters_: selected_filters_,
|
|
13733
13760
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
@@ -14133,6 +14160,7 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
|
|
|
14133
14160
|
open_modal_: (...args) => depict_search.modal_open = args,
|
|
14134
14161
|
submit_query_: shared_properties.configured_submit_query_,
|
|
14135
14162
|
modalVersionUsed_: shared_properties.modalVersionUsed_,
|
|
14163
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
14136
14164
|
i18n_: shared_properties.i18n_,
|
|
14137
14165
|
modalAlignmentSignalsRef_: style => {
|
|
14138
14166
|
const shared_info_right_now = $2c61e4cd8229c49a$export$dde08b2dca8cc1ce.get(depict_search);
|
|
@@ -15173,7 +15201,8 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
15173
15201
|
sorting_query_param_: sorting_query_param_,
|
|
15174
15202
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
15175
15203
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
15176
|
-
filterModalParent_: filterModalParent_
|
|
15204
|
+
filterModalParent_: filterModalParent_,
|
|
15205
|
+
showSliderArrow_: showSliderArrow_
|
|
15177
15206
|
}) {
|
|
15178
15207
|
let results_for;
|
|
15179
15208
|
let only_show_filters_opener_;
|
|
@@ -15531,6 +15560,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
15531
15560
|
ConfiguredScrollStatus_: ConfiguredScrollStatus_,
|
|
15532
15561
|
id_currently_querying_for_: id_to_query_for_,
|
|
15533
15562
|
setCurrentlyLoadedDisplays_: setCurrentlyLoadedDisplays_,
|
|
15563
|
+
showSliderArrow_: showSliderArrow_,
|
|
15534
15564
|
all_products_loaded_: all_products_loaded_,
|
|
15535
15565
|
no_results_options_: {
|
|
15536
15566
|
selected_filters_: selected_filters_,
|
|
@@ -15669,6 +15699,7 @@ function $14f289047713d67a$export$e2bf8ce7779e827e(props) {
|
|
|
15669
15699
|
selected_filters_: selected_filters_,
|
|
15670
15700
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
15671
15701
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
|
15702
|
+
showSliderArrow_: () => props.showSliderArrow_,
|
|
15672
15703
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
15673
15704
|
history_content_blocks_: history_content_blocks_,
|
|
15674
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
|
*/
|
|
@@ -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";
|