@depict-ai/ui 4.3.3 → 4.3.5
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 +140 -127
- package/ES10/index.d.ts +16 -3
- package/ES10/index.js +174 -161
- package/latest/index.cjs +134 -121
- package/latest/index.d.ts +16 -3
- package/latest/index.js +168 -155
- package/package.json +2 -2
- package/server/ES10/index.cjs +122 -111
- package/server/ES10/index.d.ts +16 -3
- package/server/ES10/index.js +161 -150
- package/server/latest/index.cjs +116 -105
- package/server/latest/index.d.ts +16 -3
- package/server/latest/index.js +155 -144
package/ES10/index.cjs
CHANGED
|
@@ -18,7 +18,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
18
18
|
function $parcel$interopDefault(a) {
|
|
19
19
|
return a && a.__esModule ? a.default : a;
|
|
20
20
|
}
|
|
21
|
-
$parcel$export(module.exports, "LooksSlider", () => $
|
|
21
|
+
$parcel$export(module.exports, "LooksSlider", () => $e57cd46536ad992e$export$2c9f9bf2092486aa);
|
|
22
22
|
$parcel$export(module.exports, "promiseSafeStructuredClone", () => $400d96565bbbfe07$export$83bb9af5671e1dbe);
|
|
23
23
|
$parcel$export(module.exports, "preserve_items_in_history_dot_state", () => $cfcd56242923775d$export$5162a71f252e6122);
|
|
24
24
|
$parcel$export(module.exports, "prefixes_to_preserve_in_history_dot_state", () => $cfcd56242923775d$export$3064e1e8c6513da3);
|
|
@@ -100,7 +100,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
100
100
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
101
101
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
102
102
|
/*! Depict.ai search and product listing SDK */
|
|
103
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.3.
|
|
103
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.3.5";
|
|
104
104
|
const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
|
|
105
105
|
const cols_at_size = [];
|
|
106
106
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -1954,11 +1954,105 @@ function $73014ff36186a4dd$var$_get_navigation_happened_promise2(is_replace) {
|
|
|
1954
1954
|
(0, $52FdA$depictaiutilishared.instant_exec_on_suspect_history_change).add(handler);
|
|
1955
1955
|
});
|
|
1956
1956
|
}
|
|
1957
|
-
var $
|
|
1958
|
-
|
|
1959
|
-
|
|
1957
|
+
var $2c920813c92d6987$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="show-more major"type=button>`),
|
|
1958
|
+
$2c920813c92d6987$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<h2 class=recs-title>`),
|
|
1959
|
+
$2c920813c92d6987$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=recommendation-grid><!$><!/><!$><!/>`);
|
|
1960
|
+
function $2c920813c92d6987$export$7da560f849543dff(_ref) {
|
|
1961
|
+
let {
|
|
1962
|
+
recommendations_resource_: recommendations_resource_,
|
|
1963
|
+
product_card_template_: product_card_template_,
|
|
1964
|
+
layout_options_: layout_options_,
|
|
1965
|
+
title_: title_,
|
|
1966
|
+
max_rows_: max_rows_,
|
|
1967
|
+
view_more_button_: view_more_button_
|
|
1968
|
+
} = _ref;
|
|
1969
|
+
const rows_object_ = $52FdA$solidjs.createMemo(() => {
|
|
1970
|
+
var _view_more_button$row;
|
|
1971
|
+
const view_more_button = view_more_button_ === null || view_more_button_ === void 0 ? void 0 : view_more_button_();
|
|
1972
|
+
const max_rows = max_rows_ === null || max_rows_ === void 0 ? void 0 : max_rows_();
|
|
1973
|
+
if (!view_more_button) {
|
|
1974
|
+
if (max_rows) return {
|
|
1975
|
+
max_rows: max_rows
|
|
1976
|
+
};
|
|
1977
|
+
return "all";
|
|
1978
|
+
}
|
|
1979
|
+
return {
|
|
1980
|
+
max_rows: max_rows,
|
|
1981
|
+
start_rows: view_more_button.start_rows,
|
|
1982
|
+
rows_per_click: (_view_more_button$row = view_more_button.rows_per_click) !== null && _view_more_button$row !== void 0 ? _view_more_button$row : 2,
|
|
1983
|
+
button: (() => {
|
|
1984
|
+
var _el$ = $52FdA$solidjsweb.getNextElement($2c920813c92d6987$var$_tmpl$);
|
|
1985
|
+
$52FdA$solidjsweb.insert(_el$, () => view_more_button.text);
|
|
1986
|
+
return _el$;
|
|
1987
|
+
})()
|
|
1988
|
+
};
|
|
1989
|
+
});
|
|
1990
|
+
const is_showing_something = $52FdA$solidjs.createMemo(() => {
|
|
1991
|
+
var _recommendations_reso;
|
|
1992
|
+
return recommendations_resource_.loading || ((_recommendations_reso = recommendations_resource_()) === null || _recommendations_reso === void 0 ? void 0 : _recommendations_reso.length);
|
|
1993
|
+
});
|
|
1994
|
+
const title = $52FdA$solidjs.createMemo(() => title_ === null || title_ === void 0 ? void 0 : title_()); // In case getter/accessor creates elements, don't create them twice
|
|
1995
|
+
const num_placeholders_ = () => 20;
|
|
1996
|
+
const elements = [$52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
1997
|
+
get when() {
|
|
1998
|
+
return title();
|
|
1999
|
+
},
|
|
2000
|
+
get children() {
|
|
2001
|
+
var _el$2 = $52FdA$solidjsweb.getNextElement($2c920813c92d6987$var$_tmpl$2);
|
|
2002
|
+
$52FdA$solidjsweb.insert(_el$2, title);
|
|
2003
|
+
return _el$2;
|
|
2004
|
+
}
|
|
2005
|
+
}), (() => {
|
|
2006
|
+
var _el$3 = $52FdA$solidjsweb.getNextElement($2c920813c92d6987$var$_tmpl$3),
|
|
2007
|
+
_el$4 = _el$3.firstChild,
|
|
2008
|
+
[_el$5, _co$] = $52FdA$solidjsweb.getNextMarker(_el$4.nextSibling),
|
|
2009
|
+
_el$6 = _el$5.nextSibling,
|
|
2010
|
+
[_el$7, _co$2] = $52FdA$solidjsweb.getNextMarker(_el$6.nextSibling);
|
|
2011
|
+
$52FdA$solidjsweb.insert(_el$3, (0, $8edd3cf30d1fd8b4$export$a2cc176055f8f08), _el$5, _co$);
|
|
2012
|
+
$52FdA$solidjsweb.insert(_el$3, $52FdA$solidjsweb.createComponent((0, $6c2c739b113a8ddf$export$d21e32dfedac04be), $52FdA$solidjsweb.mergeProps({
|
|
2013
|
+
get rows() {
|
|
2014
|
+
return rows_object_();
|
|
2015
|
+
},
|
|
2016
|
+
layout: "grid",
|
|
2017
|
+
element_attributes: {
|
|
2018
|
+
class: "cards"
|
|
2019
|
+
}
|
|
2020
|
+
}, layout_options_, {
|
|
2021
|
+
get children() {
|
|
2022
|
+
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Suspense), {
|
|
2023
|
+
get fallback() {
|
|
2024
|
+
return $e3915574cfd3466c$export$f33414a4df0afd3f({
|
|
2025
|
+
num_placeholders_: num_placeholders_,
|
|
2026
|
+
product_card_template_: product_card_template_
|
|
2027
|
+
});
|
|
2028
|
+
},
|
|
2029
|
+
get children() {
|
|
2030
|
+
return (() => {
|
|
2031
|
+
// IIFE to make sure we access both the recommendations_resource and the resources containing the product card rendering results themselves within the Suspense boundary
|
|
2032
|
+
const displays_by_key_ = $76012c4468a53d1f$export$7f8bd308237ab5a5($52FdA$solidjs.createMemo(() => recommendations_resource_() || []));
|
|
2033
|
+
return $76012c4468a53d1f$export$43f0fb951fcb0c54({
|
|
2034
|
+
displays_by_key_: displays_by_key_,
|
|
2035
|
+
product_card_template_: product_card_template_
|
|
2036
|
+
});
|
|
2037
|
+
})();
|
|
2038
|
+
}
|
|
2039
|
+
});
|
|
2040
|
+
}
|
|
2041
|
+
})), _el$7, _co$2);
|
|
2042
|
+
return _el$3;
|
|
2043
|
+
})()];
|
|
2044
|
+
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
2045
|
+
get when() {
|
|
2046
|
+
return is_showing_something();
|
|
2047
|
+
},
|
|
2048
|
+
children: elements
|
|
2049
|
+
});
|
|
2050
|
+
}
|
|
2051
|
+
var $e57cd46536ad992e$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict recommendations looks"style=--animation-duration:240ms>`);
|
|
2052
|
+
let $e57cd46536ad992e$var$expandedLooksSignal_;
|
|
2053
|
+
function $e57cd46536ad992e$export$2c9f9bf2092486aa(props) {
|
|
1960
2054
|
return $d05611ff6b8c8357$export$23fca46f3143581f(() => {
|
|
1961
|
-
$
|
|
2055
|
+
$e57cd46536ad992e$var$expandedLooksSignal_ || ($e57cd46536ad992e$var$expandedLooksSignal_ = $52FdA$solidjs.createSignal(new Set(), {
|
|
1962
2056
|
equals: false
|
|
1963
2057
|
}));
|
|
1964
2058
|
const expandingAnimationDuration = 240;
|
|
@@ -2000,8 +2094,25 @@ function $8446f782881fa12e$export$1935e6bdfc5ed8ce(props) {
|
|
|
2000
2094
|
market: market,
|
|
2001
2095
|
locale: locale
|
|
2002
2096
|
};
|
|
2003
|
-
return $
|
|
2004
|
-
});
|
|
2097
|
+
return $e57cd46536ad992e$var$runDisplayTransformersForLooks(baseData, listings, props.displayTransformers_);
|
|
2098
|
+
});
|
|
2099
|
+
const sharedOptions = {
|
|
2100
|
+
product_card_template_: display => $47e3c3102c78121b$export$44809a8a3e867e30({
|
|
2101
|
+
display_: display,
|
|
2102
|
+
FavoriteButton_: props.FavoriteButton_,
|
|
2103
|
+
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
2104
|
+
animationDuration_: expandingAnimationDuration,
|
|
2105
|
+
expandedLooksSignal_: $e57cd46536ad992e$var$expandedLooksSignal_,
|
|
2106
|
+
priceFormatting_: () => props.priceFormatting_,
|
|
2107
|
+
pseudoRouter_: pseudoRouter
|
|
2108
|
+
}),
|
|
2109
|
+
recommendations_resource_: looksResource,
|
|
2110
|
+
title_: () => props.title_,
|
|
2111
|
+
layout_options_: $52FdA$solidjs.createMemo(() => ({
|
|
2112
|
+
cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77(props.columnsAtSize_),
|
|
2113
|
+
...grid_spacing_override()
|
|
2114
|
+
}))
|
|
2115
|
+
};
|
|
2005
2116
|
$52FdA$solidjs.createEffect(() => {
|
|
2006
2117
|
const {
|
|
2007
2118
|
onNavigation_: onNavigation_
|
|
@@ -2009,25 +2120,19 @@ function $8446f782881fa12e$export$1935e6bdfc5ed8ce(props) {
|
|
|
2009
2120
|
if (onNavigation_) pseudoRouter.on_navigation_ = onNavigation_;
|
|
2010
2121
|
});
|
|
2011
2122
|
return (() => {
|
|
2012
|
-
var _el$ = $52FdA$solidjsweb.getNextElement($
|
|
2123
|
+
var _el$ = $52FdA$solidjsweb.getNextElement($e57cd46536ad992e$var$_tmpl$);
|
|
2013
2124
|
$52FdA$solidjsweb.insert(_el$, $52FdA$solidjsweb.createComponent((0, $d067f3a30f047b41$export$e68cff63f76bd15b), {
|
|
2014
2125
|
get children() {
|
|
2015
|
-
return $
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
}
|
|
2025
|
-
recommendations_resource_: looksResource,
|
|
2026
|
-
title_: () => props.title_,
|
|
2027
|
-
layout_options_: $52FdA$solidjs.createMemo(() => ({
|
|
2028
|
-
cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77(props.columnsAtSize_),
|
|
2029
|
-
...grid_spacing_override()
|
|
2030
|
-
}))
|
|
2126
|
+
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
2127
|
+
get when() {
|
|
2128
|
+
return props.gridOptions_;
|
|
2129
|
+
},
|
|
2130
|
+
get fallback() {
|
|
2131
|
+
return $52FdA$solidjsweb.createComponent((0, $236a257ee52e5414$export$d41d19e89346fa2), sharedOptions);
|
|
2132
|
+
},
|
|
2133
|
+
get children() {
|
|
2134
|
+
return $52FdA$solidjsweb.createComponent((0, $2c920813c92d6987$export$7da560f849543dff), $52FdA$solidjsweb.mergeProps(sharedOptions, () => props.gridOptions_));
|
|
2135
|
+
}
|
|
2031
2136
|
});
|
|
2032
2137
|
}
|
|
2033
2138
|
}));
|
|
@@ -2035,7 +2140,7 @@ function $8446f782881fa12e$export$1935e6bdfc5ed8ce(props) {
|
|
|
2035
2140
|
})();
|
|
2036
2141
|
}, "LookSlider failed");
|
|
2037
2142
|
}
|
|
2038
|
-
async function $
|
|
2143
|
+
async function $e57cd46536ad992e$var$runDisplayTransformersForLooks(baseData, listings, displayTransformers) {
|
|
2039
2144
|
try {
|
|
2040
2145
|
const {
|
|
2041
2146
|
products: productTransformer,
|
|
@@ -5592,104 +5697,9 @@ const $dc0bcefcc3486ebd$export$b91cec6bdc6b32a1 = /*@__PURE__*/(() => {
|
|
|
5592
5697
|
const $33eed84f447aa0c0$export$c3834fa86c616831 = [[4], [3, 1024], [2, 901]];
|
|
5593
5698
|
const $33eed84f447aa0c0$export$864d304a0bc46829 = "2%";
|
|
5594
5699
|
const $33eed84f447aa0c0$export$7bf543b9d9be2c22 = (0, $dc0bcefcc3486ebd$export$b91cec6bdc6b32a1);
|
|
5595
|
-
var $
|
|
5596
|
-
$2c920813c92d6987$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=recommendation-grid><!$><!/><!$><!/>`);
|
|
5597
|
-
function $2c920813c92d6987$export$7da560f849543dff(_ref) {
|
|
5598
|
-
let {
|
|
5599
|
-
recommendations_resource_: recommendations_resource_,
|
|
5600
|
-
product_card_template_: product_card_template_,
|
|
5601
|
-
layout_options_: layout_options_,
|
|
5602
|
-
rows_object_: rows_object_,
|
|
5603
|
-
title_: title_
|
|
5604
|
-
} = _ref;
|
|
5605
|
-
const is_showing_something = $52FdA$solidjs.createMemo(() => {
|
|
5606
|
-
var _recommendations_reso;
|
|
5607
|
-
return recommendations_resource_.loading || ((_recommendations_reso = recommendations_resource_()) === null || _recommendations_reso === void 0 ? void 0 : _recommendations_reso.length);
|
|
5608
|
-
});
|
|
5609
|
-
const title = $52FdA$solidjs.createMemo(() => title_ === null || title_ === void 0 ? void 0 : title_()); // In case getter/accessor creates elements, don't create them twice
|
|
5610
|
-
const num_placeholders_ = () => 20;
|
|
5611
|
-
const elements = [$52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
5612
|
-
get when() {
|
|
5613
|
-
return title();
|
|
5614
|
-
},
|
|
5615
|
-
get children() {
|
|
5616
|
-
var _el$ = $52FdA$solidjsweb.getNextElement($2c920813c92d6987$var$_tmpl$);
|
|
5617
|
-
$52FdA$solidjsweb.insert(_el$, title);
|
|
5618
|
-
return _el$;
|
|
5619
|
-
}
|
|
5620
|
-
}), (() => {
|
|
5621
|
-
var _el$2 = $52FdA$solidjsweb.getNextElement($2c920813c92d6987$var$_tmpl$2),
|
|
5622
|
-
_el$3 = _el$2.firstChild,
|
|
5623
|
-
[_el$4, _co$] = $52FdA$solidjsweb.getNextMarker(_el$3.nextSibling),
|
|
5624
|
-
_el$5 = _el$4.nextSibling,
|
|
5625
|
-
[_el$6, _co$2] = $52FdA$solidjsweb.getNextMarker(_el$5.nextSibling);
|
|
5626
|
-
$52FdA$solidjsweb.insert(_el$2, (0, $8edd3cf30d1fd8b4$export$a2cc176055f8f08), _el$4, _co$);
|
|
5627
|
-
$52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent((0, $6c2c739b113a8ddf$export$d21e32dfedac04be), $52FdA$solidjsweb.mergeProps({
|
|
5628
|
-
get rows() {
|
|
5629
|
-
return rows_object_();
|
|
5630
|
-
},
|
|
5631
|
-
layout: "grid",
|
|
5632
|
-
element_attributes: {
|
|
5633
|
-
class: "cards"
|
|
5634
|
-
}
|
|
5635
|
-
}, layout_options_, {
|
|
5636
|
-
get children() {
|
|
5637
|
-
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Suspense), {
|
|
5638
|
-
get fallback() {
|
|
5639
|
-
return $e3915574cfd3466c$export$f33414a4df0afd3f({
|
|
5640
|
-
num_placeholders_: num_placeholders_,
|
|
5641
|
-
product_card_template_: product_card_template_
|
|
5642
|
-
});
|
|
5643
|
-
},
|
|
5644
|
-
get children() {
|
|
5645
|
-
return (() => {
|
|
5646
|
-
// IIFE to make sure we access both the recommendations_resource and the resources containing the product card rendering results themselves within the Suspense boundary
|
|
5647
|
-
const displays_by_key_ = $76012c4468a53d1f$export$7f8bd308237ab5a5($52FdA$solidjs.createMemo(() => recommendations_resource_() || []));
|
|
5648
|
-
return $76012c4468a53d1f$export$43f0fb951fcb0c54({
|
|
5649
|
-
displays_by_key_: displays_by_key_,
|
|
5650
|
-
product_card_template_: product_card_template_
|
|
5651
|
-
});
|
|
5652
|
-
})();
|
|
5653
|
-
}
|
|
5654
|
-
});
|
|
5655
|
-
}
|
|
5656
|
-
})), _el$6, _co$2);
|
|
5657
|
-
return _el$2;
|
|
5658
|
-
})()];
|
|
5659
|
-
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
5660
|
-
get when() {
|
|
5661
|
-
return is_showing_something();
|
|
5662
|
-
},
|
|
5663
|
-
children: elements
|
|
5664
|
-
});
|
|
5665
|
-
}
|
|
5666
|
-
var $41227f10ad680afd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="show-more major"type=button>`),
|
|
5667
|
-
$41227f10ad680afd$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp recommendations">`);
|
|
5700
|
+
var $41227f10ad680afd$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`);
|
|
5668
5701
|
function $41227f10ad680afd$export$9756467d34d91cdb(props) {
|
|
5669
5702
|
return $d05611ff6b8c8357$export$23fca46f3143581f(() => {
|
|
5670
|
-
const rows_object_ = $52FdA$solidjs.createMemo(() => {
|
|
5671
|
-
var _view_more_button$row;
|
|
5672
|
-
const {
|
|
5673
|
-
view_more_button: view_more_button,
|
|
5674
|
-
max_rows: max_rows
|
|
5675
|
-
} = props;
|
|
5676
|
-
if (!view_more_button) {
|
|
5677
|
-
if (max_rows) return {
|
|
5678
|
-
max_rows: max_rows
|
|
5679
|
-
};
|
|
5680
|
-
return "all";
|
|
5681
|
-
}
|
|
5682
|
-
return {
|
|
5683
|
-
max_rows: max_rows,
|
|
5684
|
-
start_rows: view_more_button.start_rows,
|
|
5685
|
-
rows_per_click: (_view_more_button$row = view_more_button.rows_per_click) !== null && _view_more_button$row !== void 0 ? _view_more_button$row : 2,
|
|
5686
|
-
button: (() => {
|
|
5687
|
-
var _el$ = $52FdA$solidjsweb.getNextElement($41227f10ad680afd$var$_tmpl$);
|
|
5688
|
-
$52FdA$solidjsweb.insert(_el$, () => view_more_button.text);
|
|
5689
|
-
return _el$;
|
|
5690
|
-
})()
|
|
5691
|
-
};
|
|
5692
|
-
});
|
|
5693
5703
|
const grid_spacing_override = $52FdA$solidjs.createMemo(() => {
|
|
5694
5704
|
const {
|
|
5695
5705
|
grid_spacing: grid_spacing
|
|
@@ -5703,11 +5713,12 @@ function $41227f10ad680afd$export$9756467d34d91cdb(props) {
|
|
|
5703
5713
|
});
|
|
5704
5714
|
const [recommendations_resource_] = $52FdA$solidjs.createResource(() => props.recommendations, recs => recs);
|
|
5705
5715
|
return (() => {
|
|
5706
|
-
var _el$
|
|
5707
|
-
$52FdA$solidjsweb.insert(_el
|
|
5716
|
+
var _el$ = $52FdA$solidjsweb.getNextElement($41227f10ad680afd$var$_tmpl$);
|
|
5717
|
+
$52FdA$solidjsweb.insert(_el$, $52FdA$solidjsweb.createComponent((0, $d067f3a30f047b41$export$e68cff63f76bd15b), {
|
|
5708
5718
|
get children() {
|
|
5709
5719
|
return $2c920813c92d6987$export$7da560f849543dff({
|
|
5710
|
-
|
|
5720
|
+
max_rows_: () => props.max_rows,
|
|
5721
|
+
view_more_button_: () => props.view_more_button,
|
|
5711
5722
|
product_card_template_: function () {
|
|
5712
5723
|
return props.product_card_template(...arguments);
|
|
5713
5724
|
},
|
|
@@ -5720,7 +5731,8 @@ function $41227f10ad680afd$export$9756467d34d91cdb(props) {
|
|
|
5720
5731
|
});
|
|
5721
5732
|
}
|
|
5722
5733
|
}));
|
|
5723
|
-
|
|
5734
|
+
$52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.className(_el$, "depict plp recommendations".concat(props.class ? " ".concat(props.class) : "")));
|
|
5735
|
+
return _el$;
|
|
5724
5736
|
})();
|
|
5725
5737
|
}, "RecommendationGrid failed");
|
|
5726
5738
|
}
|
|
@@ -6070,7 +6082,7 @@ function $3476012866dab42c$var$actualSetupModal() {
|
|
|
6070
6082
|
closeModal: actually_close_modal_
|
|
6071
6083
|
};
|
|
6072
6084
|
}
|
|
6073
|
-
var $2badc30d7c6610e1$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div
|
|
6085
|
+
var $2badc30d7c6610e1$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`);
|
|
6074
6086
|
function $2badc30d7c6610e1$export$9574e176201e5e8d(props) {
|
|
6075
6087
|
return $d05611ff6b8c8357$export$23fca46f3143581f(() => {
|
|
6076
6088
|
const grid_spacing_override = $52FdA$solidjs.createMemo(() => {
|
|
@@ -6102,6 +6114,7 @@ function $2badc30d7c6610e1$export$9574e176201e5e8d(props) {
|
|
|
6102
6114
|
});
|
|
6103
6115
|
}
|
|
6104
6116
|
}));
|
|
6117
|
+
$52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.className(_el$, "depict recommendations".concat(props.class ? " ".concat(props.class) : "")));
|
|
6105
6118
|
return _el$;
|
|
6106
6119
|
})();
|
|
6107
6120
|
}, "RecommendationSlider failed");
|
package/ES10/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
|
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.3.
|
|
13
|
+
export const version = "4.3.5";
|
|
14
14
|
declare const LISTING_ID = "listingId";
|
|
15
15
|
declare const EXTERNAL_ID = "externalId";
|
|
16
16
|
type ScrollRestorationData = {
|
|
@@ -877,6 +877,17 @@ export function LooksSlider(props: {
|
|
|
877
877
|
display_: Accessor<ModernDisplay | null | undefined>;
|
|
878
878
|
}) => JSX.Element;
|
|
879
879
|
displayTransformers_?: DisplayTransformers<ModernDisplay, ModernDisplayWithPageUrl<ModernDisplay>>;
|
|
880
|
+
/**
|
|
881
|
+
* If provided, will render as grid instead of slider
|
|
882
|
+
*/
|
|
883
|
+
gridOptions_?: {
|
|
884
|
+
view_more_button?: {
|
|
885
|
+
text: string;
|
|
886
|
+
start_rows?: number;
|
|
887
|
+
rows_per_click?: number;
|
|
888
|
+
};
|
|
889
|
+
max_rows?: number;
|
|
890
|
+
};
|
|
880
891
|
onNavigation_?: OnNavigation;
|
|
881
892
|
priceFormatting_: plp_shared_i18n["price_formatting_"];
|
|
882
893
|
}): HTMLDivElement;
|
|
@@ -976,6 +987,7 @@ export function RecommendationGrid<T extends Display>(props: {
|
|
|
976
987
|
};
|
|
977
988
|
max_rows?: number;
|
|
978
989
|
product_card_template: ProductCardTemplate<T>;
|
|
990
|
+
class?: string;
|
|
979
991
|
}): HTMLDivElement;
|
|
980
992
|
type ShopTheLookOpenModalOptions<T extends Display> = {
|
|
981
993
|
onNavigation: OnNavigation;
|
|
@@ -1027,6 +1039,7 @@ export function RecommendationSlider<T extends Display>(props: {
|
|
|
1027
1039
|
recommendations: Promise<T[]>;
|
|
1028
1040
|
title?: JSX.Element;
|
|
1029
1041
|
product_card_template: ProductCardTemplate<T>;
|
|
1042
|
+
class?: string;
|
|
1030
1043
|
}): HTMLDivElement;
|
|
1031
1044
|
export function ExpandingDetails(props: {
|
|
1032
1045
|
details_: HTMLDetailsElement;
|
|
@@ -1384,7 +1397,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1384
1397
|
* Open the modal with support for alignment.
|
|
1385
1398
|
* @returns {void}
|
|
1386
1399
|
*/
|
|
1387
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1400
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1388
1401
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1389
1402
|
export interface PageReplacer {
|
|
1390
1403
|
readonly render_: () => Node_Array;
|
|
@@ -1462,5 +1475,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1462
1475
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1463
1476
|
layout?: PossibleLayout;
|
|
1464
1477
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1465
|
-
}): import("@depict-ai/utilishared").Node_Array;
|
|
1478
|
+
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1466
1479
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|