@depict-ai/ui 4.7.2 → 4.7.3
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 +16 -11
- package/ES10/index.d.ts +4 -4
- package/ES10/index.js +16 -11
- package/latest/index.cjs +13 -12
- package/latest/index.d.ts +4 -4
- package/latest/index.js +13 -12
- package/package.json +2 -2
- package/server/ES10/index.cjs +16 -11
- package/server/ES10/index.d.ts +4 -4
- package/server/ES10/index.js +16 -11
- package/server/latest/index.cjs +13 -12
- package/server/latest/index.d.ts +4 -4
- package/server/latest/index.js +13 -12
package/ES10/index.cjs
CHANGED
|
@@ -104,7 +104,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
104
104
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
105
105
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
106
106
|
/*! Depict.ai search and product listing SDK */
|
|
107
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.
|
|
107
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.3";
|
|
108
108
|
function $d6d51b09cb2116a6$export$5bad61ecde080b1f() {
|
|
109
109
|
const {
|
|
110
110
|
collapse: collapse,
|
|
@@ -1720,7 +1720,7 @@ function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1720
1720
|
get children() {
|
|
1721
1721
|
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
1722
1722
|
get when() {
|
|
1723
|
-
return containerWidth_() || !displays_;
|
|
1723
|
+
return containerWidth_() || !displays_();
|
|
1724
1724
|
},
|
|
1725
1725
|
get children() {
|
|
1726
1726
|
var _el$ = $52FdA$solidjsweb.getNextElement($e0b3f1f332b6863b$var$_tmpl$),
|
|
@@ -1749,12 +1749,12 @@ function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1749
1749
|
get onMouseLeave() {
|
|
1750
1750
|
return $52FdA$depictaiutilishared.catchify(() => supportsHover_() && setUserWantsExpanded(false));
|
|
1751
1751
|
}
|
|
1752
|
-
}, () => displays_ && {
|
|
1752
|
+
}, () => displays_() && {
|
|
1753
1753
|
style: "--look-card-width:".concat(containerWidth_(), "px;--look-item-height:").concat(lookItemHeight() || 200, "px")
|
|
1754
1754
|
}), false, true);
|
|
1755
1755
|
$52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Index), {
|
|
1756
1756
|
get each() {
|
|
1757
|
-
return displays_ || Array.from({
|
|
1757
|
+
return displays_() || Array.from({
|
|
1758
1758
|
length: 4
|
|
1759
1759
|
});
|
|
1760
1760
|
},
|
|
@@ -1814,7 +1814,6 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1814
1814
|
priceFormatting_: priceFormatting_,
|
|
1815
1815
|
pseudoRouter_: pseudoRouter_
|
|
1816
1816
|
} = _ref;
|
|
1817
|
-
const [coverImage] = (display_ === null || display_ === void 0 ? void 0 : display_.image_urls) || [];
|
|
1818
1817
|
const useWantsExpandedSignal_ = $52FdA$solidjs.createSignal(false);
|
|
1819
1818
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1820
1819
|
const supportsHover_ = $3e17e871e9d0911d$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
@@ -1827,7 +1826,7 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1827
1826
|
} = _ref2;
|
|
1828
1827
|
return setUserWantsExpanded(prev => !prev);
|
|
1829
1828
|
}), true);
|
|
1830
|
-
_el$.classList.toggle("placeholder",
|
|
1829
|
+
$52FdA$solidjsweb.effect(() => _el$.classList.toggle("placeholder", !display_()));
|
|
1831
1830
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
1832
1831
|
return _el$;
|
|
1833
1832
|
})();
|
|
@@ -1854,7 +1853,9 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1854
1853
|
// Close us if another look expands
|
|
1855
1854
|
$52FdA$solidjs.createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1856
1855
|
$52FdA$solidjsweb.insert(container, () => [$52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
1857
|
-
when
|
|
1856
|
+
get when() {
|
|
1857
|
+
return display_();
|
|
1858
|
+
},
|
|
1858
1859
|
get fallback() {
|
|
1859
1860
|
return $52FdA$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
|
|
1860
1861
|
aspectRatio: "var(".concat((0, $c0cf6af094336798$export$8a2234b5b1a5ebd4), ", ").concat(placeholderImageAspectRatio_, ")")
|
|
@@ -1862,14 +1863,18 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1862
1863
|
},
|
|
1863
1864
|
get children() {
|
|
1864
1865
|
return $52FdA$solidjsweb.createComponent((0, $f3db423dc84bc35d$export$9d4a4b669b1929ab), {
|
|
1865
|
-
src
|
|
1866
|
+
get src() {
|
|
1867
|
+
var _display_, _display_$image_urls;
|
|
1868
|
+
return (_display_ = display_()) === null || _display_ === void 0 ? void 0 : (_display_$image_urls = _display_.image_urls) === null || _display_$image_urls === void 0 ? void 0 : _display_$image_urls[0];
|
|
1869
|
+
},
|
|
1866
1870
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1867
1871
|
autoAdjustAspectRatio: true
|
|
1868
1872
|
});
|
|
1869
1873
|
}
|
|
1870
1874
|
}), $52FdA$solidjsweb.createComponent((0, $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae), {
|
|
1871
|
-
|
|
1872
|
-
|
|
1875
|
+
displays_: () => {
|
|
1876
|
+
var _display_2;
|
|
1877
|
+
return (_display_2 = display_()) === null || _display_2 === void 0 ? void 0 : _display_2.displays;
|
|
1873
1878
|
},
|
|
1874
1879
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1875
1880
|
containerWidth_: containerWidth_,
|
|
@@ -2157,7 +2162,7 @@ function $e57cd46536ad992e$export$2c9f9bf2092486aa(props) {
|
|
|
2157
2162
|
});
|
|
2158
2163
|
const sharedOptions = {
|
|
2159
2164
|
product_card_template_: display => $47e3c3102c78121b$export$44809a8a3e867e30({
|
|
2160
|
-
display_: display,
|
|
2165
|
+
display_: () => display,
|
|
2161
2166
|
FavoriteButton_: props.FavoriteButton_,
|
|
2162
2167
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
2163
2168
|
animationDuration_: expandingAnimationDuration,
|
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.7.
|
|
14
|
+
export const version = "4.7.3";
|
|
15
15
|
/**
|
|
16
16
|
* Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
|
|
17
17
|
*/
|
|
@@ -893,7 +893,7 @@ export function LookCard({
|
|
|
893
893
|
priceFormatting_,
|
|
894
894
|
pseudoRouter_
|
|
895
895
|
}: {
|
|
896
|
-
display_: FeaturedInDisplay | null
|
|
896
|
+
display_: Accessor<FeaturedInDisplay | null>;
|
|
897
897
|
FavoriteButton_?: (props: {
|
|
898
898
|
display_: Accessor<ModernDisplay | null | undefined>;
|
|
899
899
|
}) => JSX.Element;
|
|
@@ -1442,7 +1442,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1442
1442
|
* Open the modal with support for alignment.
|
|
1443
1443
|
* @returns {void}
|
|
1444
1444
|
*/
|
|
1445
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1445
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1446
1446
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1447
1447
|
export interface PageReplacer {
|
|
1448
1448
|
readonly render_: () => Node_Array;
|
|
@@ -1521,5 +1521,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1521
1521
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1522
1522
|
layout?: PossibleLayout;
|
|
1523
1523
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1524
|
-
}): import("@depict-ai/utilishared
|
|
1524
|
+
}): import("@depict-ai/utilishared").Node_Array;
|
|
1525
1525
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
|
|
|
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.7.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.3";
|
|
14
14
|
function $8e8b179489080711$export$5bad61ecde080b1f() {
|
|
15
15
|
const {
|
|
16
16
|
collapse: collapse,
|
|
@@ -1626,7 +1626,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1626
1626
|
get children() {
|
|
1627
1627
|
return $8tj43$createComponent((0, $8tj43$Show), {
|
|
1628
1628
|
get when() {
|
|
1629
|
-
return containerWidth_() || !displays_;
|
|
1629
|
+
return containerWidth_() || !displays_();
|
|
1630
1630
|
},
|
|
1631
1631
|
get children() {
|
|
1632
1632
|
var _el$ = $8tj43$getNextElement($4089a7972a508539$var$_tmpl$),
|
|
@@ -1655,12 +1655,12 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1655
1655
|
get onMouseLeave() {
|
|
1656
1656
|
return $8tj43$catchify(() => supportsHover_() && setUserWantsExpanded(false));
|
|
1657
1657
|
}
|
|
1658
|
-
}, () => displays_ && {
|
|
1658
|
+
}, () => displays_() && {
|
|
1659
1659
|
style: "--look-card-width:".concat(containerWidth_(), "px;--look-item-height:").concat(lookItemHeight() || 200, "px")
|
|
1660
1660
|
}), false, true);
|
|
1661
1661
|
$8tj43$insert(_el$2, $8tj43$createComponent((0, $8tj43$Index), {
|
|
1662
1662
|
get each() {
|
|
1663
|
-
return displays_ || Array.from({
|
|
1663
|
+
return displays_() || Array.from({
|
|
1664
1664
|
length: 4
|
|
1665
1665
|
});
|
|
1666
1666
|
},
|
|
@@ -1720,7 +1720,6 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1720
1720
|
priceFormatting_: priceFormatting_,
|
|
1721
1721
|
pseudoRouter_: pseudoRouter_
|
|
1722
1722
|
} = _ref;
|
|
1723
|
-
const [coverImage] = (display_ === null || display_ === void 0 ? void 0 : display_.image_urls) || [];
|
|
1724
1723
|
const useWantsExpandedSignal_ = $8tj43$createSignal(false);
|
|
1725
1724
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1726
1725
|
const supportsHover_ = $00a5b94f0c11efbb$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
@@ -1733,7 +1732,7 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1733
1732
|
} = _ref2;
|
|
1734
1733
|
return setUserWantsExpanded(prev => !prev);
|
|
1735
1734
|
}), true);
|
|
1736
|
-
_el$.classList.toggle("placeholder",
|
|
1735
|
+
$8tj43$effect(() => _el$.classList.toggle("placeholder", !display_()));
|
|
1737
1736
|
$8tj43$runHydrationEvents();
|
|
1738
1737
|
return _el$;
|
|
1739
1738
|
})();
|
|
@@ -1760,7 +1759,9 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1760
1759
|
// Close us if another look expands
|
|
1761
1760
|
$8tj43$createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1762
1761
|
$8tj43$insert(container, () => [$8tj43$createComponent((0, $8tj43$Show), {
|
|
1763
|
-
when
|
|
1762
|
+
get when() {
|
|
1763
|
+
return display_();
|
|
1764
|
+
},
|
|
1764
1765
|
get fallback() {
|
|
1765
1766
|
return $8tj43$createComponent((0, $3ab4aa97880fb88d$export$3f37af283f8fb843), {
|
|
1766
1767
|
aspectRatio: "var(".concat((0, $5eaa00b951637e96$export$8a2234b5b1a5ebd4), ", ").concat(placeholderImageAspectRatio_, ")")
|
|
@@ -1768,14 +1769,18 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1768
1769
|
},
|
|
1769
1770
|
get children() {
|
|
1770
1771
|
return $8tj43$createComponent((0, $98688279b9059f50$export$9d4a4b669b1929ab), {
|
|
1771
|
-
src
|
|
1772
|
+
get src() {
|
|
1773
|
+
var _display_, _display_$image_urls;
|
|
1774
|
+
return (_display_ = display_()) === null || _display_ === void 0 ? void 0 : (_display_$image_urls = _display_.image_urls) === null || _display_$image_urls === void 0 ? void 0 : _display_$image_urls[0];
|
|
1775
|
+
},
|
|
1772
1776
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1773
1777
|
autoAdjustAspectRatio: true
|
|
1774
1778
|
});
|
|
1775
1779
|
}
|
|
1776
1780
|
}), $8tj43$createComponent((0, $4089a7972a508539$export$ebf0b1d4f90c09ae), {
|
|
1777
|
-
|
|
1778
|
-
|
|
1781
|
+
displays_: () => {
|
|
1782
|
+
var _display_2;
|
|
1783
|
+
return (_display_2 = display_()) === null || _display_2 === void 0 ? void 0 : _display_2.displays;
|
|
1779
1784
|
},
|
|
1780
1785
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1781
1786
|
containerWidth_: containerWidth_,
|
|
@@ -2063,7 +2068,7 @@ function $bb34cd283e904784$export$2c9f9bf2092486aa(props) {
|
|
|
2063
2068
|
});
|
|
2064
2069
|
const sharedOptions = {
|
|
2065
2070
|
product_card_template_: display => $697d8713dc82b9ab$export$44809a8a3e867e30({
|
|
2066
|
-
display_: display,
|
|
2071
|
+
display_: () => display,
|
|
2067
2072
|
FavoriteButton_: props.FavoriteButton_,
|
|
2068
2073
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
2069
2074
|
animationDuration_: expandingAnimationDuration,
|
package/latest/index.cjs
CHANGED
|
@@ -98,7 +98,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
98
98
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
99
99
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
100
100
|
/*! Depict.ai search and product listing SDK */
|
|
101
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.
|
|
101
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.3";
|
|
102
102
|
function $4b455f60dadde8b8$export$5bad61ecde080b1f(...params) {
|
|
103
103
|
const {
|
|
104
104
|
collapse: collapse,
|
|
@@ -1632,7 +1632,7 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
|
|
|
1632
1632
|
get children() {
|
|
1633
1633
|
return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
1634
1634
|
get when() {
|
|
1635
|
-
return containerWidth_() || !displays_;
|
|
1635
|
+
return containerWidth_() || !displays_();
|
|
1636
1636
|
},
|
|
1637
1637
|
get children() {
|
|
1638
1638
|
var _el$ = $gVhhF$solidjsweb.getNextElement($905010a06f9aeae5$var$_tmpl$),
|
|
@@ -1661,12 +1661,12 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
|
|
|
1661
1661
|
get onMouseLeave() {
|
|
1662
1662
|
return $gVhhF$depictaiutilishared.catchify(() => supportsHover_() && setUserWantsExpanded(false));
|
|
1663
1663
|
}
|
|
1664
|
-
}, () => displays_ && {
|
|
1664
|
+
}, () => displays_() && {
|
|
1665
1665
|
style: `--look-card-width:${containerWidth_()}px;--look-item-height:${lookItemHeight() || 200}px`
|
|
1666
1666
|
}), false, true);
|
|
1667
1667
|
$gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
|
|
1668
1668
|
get each() {
|
|
1669
|
-
return displays_ || Array.from({
|
|
1669
|
+
return displays_() || Array.from({
|
|
1670
1670
|
length: 4
|
|
1671
1671
|
});
|
|
1672
1672
|
},
|
|
@@ -1725,7 +1725,6 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1725
1725
|
priceFormatting_: priceFormatting_,
|
|
1726
1726
|
pseudoRouter_: pseudoRouter_
|
|
1727
1727
|
}) {
|
|
1728
|
-
const [coverImage] = display_?.image_urls || [];
|
|
1729
1728
|
const useWantsExpandedSignal_ = $gVhhF$solidjs.createSignal(false);
|
|
1730
1729
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1731
1730
|
const supportsHover_ = $b54e6192d0caa293$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
@@ -1735,7 +1734,7 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1735
1734
|
$gVhhF$solidjsweb.addEventListener(_el$, "click", $gVhhF$depictaiutilishared.catchify(({
|
|
1736
1735
|
target: target
|
|
1737
1736
|
}) => setUserWantsExpanded(prev => !prev)), true);
|
|
1738
|
-
_el$.classList.toggle("placeholder",
|
|
1737
|
+
$gVhhF$solidjsweb.effect(() => _el$.classList.toggle("placeholder", !display_()));
|
|
1739
1738
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
1740
1739
|
return _el$;
|
|
1741
1740
|
})();
|
|
@@ -1761,7 +1760,9 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1761
1760
|
// Close us if another look expands
|
|
1762
1761
|
$gVhhF$solidjs.createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1763
1762
|
$gVhhF$solidjsweb.insert(container, () => [$gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
1764
|
-
when
|
|
1763
|
+
get when() {
|
|
1764
|
+
return display_();
|
|
1765
|
+
},
|
|
1765
1766
|
get fallback() {
|
|
1766
1767
|
return $gVhhF$solidjsweb.createComponent((0, $3bc4a89b971a3af5$export$3f37af283f8fb843), {
|
|
1767
1768
|
aspectRatio: `var(${(0, $6f604560873e4f69$export$8a2234b5b1a5ebd4)}, ${placeholderImageAspectRatio_})`
|
|
@@ -1769,15 +1770,15 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1769
1770
|
},
|
|
1770
1771
|
get children() {
|
|
1771
1772
|
return $gVhhF$solidjsweb.createComponent((0, $d212a67662c5cf38$export$9d4a4b669b1929ab), {
|
|
1772
|
-
src
|
|
1773
|
+
get src() {
|
|
1774
|
+
return display_()?.image_urls?.[0];
|
|
1775
|
+
},
|
|
1773
1776
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1774
1777
|
autoAdjustAspectRatio: true
|
|
1775
1778
|
});
|
|
1776
1779
|
}
|
|
1777
1780
|
}), $gVhhF$solidjsweb.createComponent((0, $905010a06f9aeae5$export$ebf0b1d4f90c09ae), {
|
|
1778
|
-
|
|
1779
|
-
return display_?.displays;
|
|
1780
|
-
},
|
|
1781
|
+
displays_: () => display_()?.displays,
|
|
1781
1782
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1782
1783
|
containerWidth_: containerWidth_,
|
|
1783
1784
|
animationDuration_: animationDuration_,
|
|
@@ -2045,7 +2046,7 @@ function $a3bbfa5fdaa39f3a$export$2c9f9bf2092486aa(props) {
|
|
|
2045
2046
|
});
|
|
2046
2047
|
const sharedOptions = {
|
|
2047
2048
|
product_card_template_: display => $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
2048
|
-
display_: display,
|
|
2049
|
+
display_: () => display,
|
|
2049
2050
|
FavoriteButton_: props.FavoriteButton_,
|
|
2050
2051
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
2051
2052
|
animationDuration_: expandingAnimationDuration,
|
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.7.
|
|
14
|
+
export const version = "4.7.3";
|
|
15
15
|
/**
|
|
16
16
|
* Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
|
|
17
17
|
*/
|
|
@@ -893,7 +893,7 @@ export function LookCard({
|
|
|
893
893
|
priceFormatting_,
|
|
894
894
|
pseudoRouter_
|
|
895
895
|
}: {
|
|
896
|
-
display_: FeaturedInDisplay | null
|
|
896
|
+
display_: Accessor<FeaturedInDisplay | null>;
|
|
897
897
|
FavoriteButton_?: (props: {
|
|
898
898
|
display_: Accessor<ModernDisplay | null | undefined>;
|
|
899
899
|
}) => JSX.Element;
|
|
@@ -1442,7 +1442,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1442
1442
|
* Open the modal with support for alignment.
|
|
1443
1443
|
* @returns {void}
|
|
1444
1444
|
*/
|
|
1445
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1445
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1446
1446
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1447
1447
|
export interface PageReplacer {
|
|
1448
1448
|
readonly render_: () => Node_Array;
|
|
@@ -1521,5 +1521,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1521
1521
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1522
1522
|
layout?: PossibleLayout;
|
|
1523
1523
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1524
|
-
}): import("@depict-ai/utilishared
|
|
1524
|
+
}): import("@depict-ai/utilishared").Node_Array;
|
|
1525
1525
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.3";
|
|
11
11
|
function $24e27fab9c821b86$export$5bad61ecde080b1f(...params) {
|
|
12
12
|
const {
|
|
13
13
|
collapse: collapse,
|
|
@@ -1541,7 +1541,7 @@ function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
|
|
|
1541
1541
|
get children() {
|
|
1542
1542
|
return $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
1543
1543
|
get when() {
|
|
1544
|
-
return containerWidth_() || !displays_;
|
|
1544
|
+
return containerWidth_() || !displays_();
|
|
1545
1545
|
},
|
|
1546
1546
|
get children() {
|
|
1547
1547
|
var _el$ = $9HbP8$getNextElement($7555dcad3b8a4632$var$_tmpl$),
|
|
@@ -1570,12 +1570,12 @@ function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
|
|
|
1570
1570
|
get onMouseLeave() {
|
|
1571
1571
|
return $9HbP8$catchify(() => supportsHover_() && setUserWantsExpanded(false));
|
|
1572
1572
|
}
|
|
1573
|
-
}, () => displays_ && {
|
|
1573
|
+
}, () => displays_() && {
|
|
1574
1574
|
style: `--look-card-width:${containerWidth_()}px;--look-item-height:${lookItemHeight() || 200}px`
|
|
1575
1575
|
}), false, true);
|
|
1576
1576
|
$9HbP8$insert(_el$2, $9HbP8$createComponent((0, $9HbP8$Index), {
|
|
1577
1577
|
get each() {
|
|
1578
|
-
return displays_ || Array.from({
|
|
1578
|
+
return displays_() || Array.from({
|
|
1579
1579
|
length: 4
|
|
1580
1580
|
});
|
|
1581
1581
|
},
|
|
@@ -1634,7 +1634,6 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
|
1634
1634
|
priceFormatting_: priceFormatting_,
|
|
1635
1635
|
pseudoRouter_: pseudoRouter_
|
|
1636
1636
|
}) {
|
|
1637
|
-
const [coverImage] = display_?.image_urls || [];
|
|
1638
1637
|
const useWantsExpandedSignal_ = $9HbP8$createSignal(false);
|
|
1639
1638
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1640
1639
|
const supportsHover_ = $dc9262ef6f786812$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
@@ -1644,7 +1643,7 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
|
1644
1643
|
$9HbP8$addEventListener(_el$, "click", $9HbP8$catchify(({
|
|
1645
1644
|
target: target
|
|
1646
1645
|
}) => setUserWantsExpanded(prev => !prev)), true);
|
|
1647
|
-
_el$.classList.toggle("placeholder",
|
|
1646
|
+
$9HbP8$effect(() => _el$.classList.toggle("placeholder", !display_()));
|
|
1648
1647
|
$9HbP8$runHydrationEvents();
|
|
1649
1648
|
return _el$;
|
|
1650
1649
|
})();
|
|
@@ -1670,7 +1669,9 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
|
1670
1669
|
// Close us if another look expands
|
|
1671
1670
|
$9HbP8$createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1672
1671
|
$9HbP8$insert(container, () => [$9HbP8$createComponent((0, $9HbP8$Show), {
|
|
1673
|
-
when
|
|
1672
|
+
get when() {
|
|
1673
|
+
return display_();
|
|
1674
|
+
},
|
|
1674
1675
|
get fallback() {
|
|
1675
1676
|
return $9HbP8$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
|
|
1676
1677
|
aspectRatio: `var(${(0, $bb15dfb548a7666e$export$8a2234b5b1a5ebd4)}, ${placeholderImageAspectRatio_})`
|
|
@@ -1678,15 +1679,15 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
|
1678
1679
|
},
|
|
1679
1680
|
get children() {
|
|
1680
1681
|
return $9HbP8$createComponent((0, $70bb27cc6be01fc7$export$9d4a4b669b1929ab), {
|
|
1681
|
-
src
|
|
1682
|
+
get src() {
|
|
1683
|
+
return display_()?.image_urls?.[0];
|
|
1684
|
+
},
|
|
1682
1685
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1683
1686
|
autoAdjustAspectRatio: true
|
|
1684
1687
|
});
|
|
1685
1688
|
}
|
|
1686
1689
|
}), $9HbP8$createComponent((0, $7555dcad3b8a4632$export$ebf0b1d4f90c09ae), {
|
|
1687
|
-
|
|
1688
|
-
return display_?.displays;
|
|
1689
|
-
},
|
|
1690
|
+
displays_: () => display_()?.displays,
|
|
1690
1691
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1691
1692
|
containerWidth_: containerWidth_,
|
|
1692
1693
|
animationDuration_: animationDuration_,
|
|
@@ -1954,7 +1955,7 @@ function $07ef910e8ef6b783$export$2c9f9bf2092486aa(props) {
|
|
|
1954
1955
|
});
|
|
1955
1956
|
const sharedOptions = {
|
|
1956
1957
|
product_card_template_: display => $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
1957
|
-
display_: display,
|
|
1958
|
+
display_: () => display,
|
|
1958
1959
|
FavoriteButton_: props.FavoriteButton_,
|
|
1959
1960
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
1960
1961
|
animationDuration_: expandingAnimationDuration,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.3",
|
|
4
4
|
"description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
|
|
5
5
|
"packageManager": "yarn@3.2.2",
|
|
6
6
|
"sass": "styles.scss",
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
"@babel/plugin-transform-typescript": "^7.22.9",
|
|
237
237
|
"@babel/runtime": "latest",
|
|
238
238
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
239
|
-
"@depict-ai/plp-styling": "^4.4.
|
|
239
|
+
"@depict-ai/plp-styling": "^4.4.1",
|
|
240
240
|
"@depict-ai/types": "^5.4.0",
|
|
241
241
|
"@depict-ai/utilishared": "^2.4.0",
|
|
242
242
|
"solid-js": "^1.8.12"
|
package/server/ES10/index.cjs
CHANGED
|
@@ -104,7 +104,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
104
104
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
105
105
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
106
106
|
/*! Depict.ai search and product listing SDK */
|
|
107
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.
|
|
107
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.3";
|
|
108
108
|
function $d6d51b09cb2116a6$export$5bad61ecde080b1f() {
|
|
109
109
|
const {
|
|
110
110
|
collapse: collapse,
|
|
@@ -1531,18 +1531,18 @@ function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1531
1531
|
get children() {
|
|
1532
1532
|
return $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
1533
1533
|
get when() {
|
|
1534
|
-
return containerWidth_() || !displays_;
|
|
1534
|
+
return containerWidth_() || !displays_();
|
|
1535
1535
|
},
|
|
1536
1536
|
get children() {
|
|
1537
1537
|
return $3hooq$solidjsweb.ssr($e0b3f1f332b6863b$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrElement("div", $3hooq$solidjsweb.mergeProps({
|
|
1538
1538
|
get ["class"]() {
|
|
1539
1539
|
return "look-overlay ".concat(userWantsExpanded() ? "expanded" : "", " ").concat(!getSecondPartAnimationRunning() && userWantsExpanded() ? "resting-fully-expanded" : "");
|
|
1540
1540
|
}
|
|
1541
|
-
}, () => displays_ && {
|
|
1541
|
+
}, () => displays_() && {
|
|
1542
1542
|
style: "--look-card-width:".concat(containerWidth_(), "px;--look-item-height:").concat(lookItemHeight() || 200, "px")
|
|
1543
1543
|
}), () => $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Index), {
|
|
1544
1544
|
get each() {
|
|
1545
|
-
return displays_ || Array.from({
|
|
1545
|
+
return displays_() || Array.from({
|
|
1546
1546
|
length: 4
|
|
1547
1547
|
});
|
|
1548
1548
|
},
|
|
@@ -1600,12 +1600,11 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1600
1600
|
priceFormatting_: priceFormatting_,
|
|
1601
1601
|
pseudoRouter_: pseudoRouter_
|
|
1602
1602
|
} = _ref;
|
|
1603
|
-
const [coverImage] = (display_ === null || display_ === void 0 ? void 0 : display_.image_urls) || [];
|
|
1604
1603
|
const useWantsExpandedSignal_ = $3hooq$solidjs.createSignal(false);
|
|
1605
1604
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1606
1605
|
const supportsHover_ = $3e17e871e9d0911d$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
1607
1606
|
const us = Symbol("look");
|
|
1608
|
-
const container = $3hooq$solidjsweb.ssr($47e3c3102c78121b$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "look-card ".concat(!display_ ? "placeholder" : ""));
|
|
1607
|
+
const container = $3hooq$solidjsweb.ssr($47e3c3102c78121b$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "look-card ".concat(!display_() ? "placeholder" : ""));
|
|
1609
1608
|
const containerWidth_ = $c387d7f1d9fb66c0$export$ebdc3711f7e02ccd(container);
|
|
1610
1609
|
const clickHandler = $3hooq$depictaiutilishared.catchify(_ref2 => {
|
|
1611
1610
|
let {
|
|
@@ -1629,7 +1628,9 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1629
1628
|
// Close us if another look expands
|
|
1630
1629
|
$3hooq$solidjs.createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1631
1630
|
$3hooq$solidjsweb.insert(container, () => [$3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
1632
|
-
when
|
|
1631
|
+
get when() {
|
|
1632
|
+
return display_();
|
|
1633
|
+
},
|
|
1633
1634
|
get fallback() {
|
|
1634
1635
|
return $3hooq$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
|
|
1635
1636
|
aspectRatio: "var(".concat((0, $c0cf6af094336798$export$8a2234b5b1a5ebd4), ", ").concat(placeholderImageAspectRatio_, ")")
|
|
@@ -1637,14 +1638,18 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1637
1638
|
},
|
|
1638
1639
|
get children() {
|
|
1639
1640
|
return $3hooq$solidjsweb.createComponent((0, $f3db423dc84bc35d$export$9d4a4b669b1929ab), {
|
|
1640
|
-
src
|
|
1641
|
+
get src() {
|
|
1642
|
+
var _display_, _display_$image_urls;
|
|
1643
|
+
return (_display_ = display_()) === null || _display_ === void 0 ? void 0 : (_display_$image_urls = _display_.image_urls) === null || _display_$image_urls === void 0 ? void 0 : _display_$image_urls[0];
|
|
1644
|
+
},
|
|
1641
1645
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1642
1646
|
autoAdjustAspectRatio: true
|
|
1643
1647
|
});
|
|
1644
1648
|
}
|
|
1645
1649
|
}), $3hooq$solidjsweb.createComponent((0, $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae), {
|
|
1646
|
-
|
|
1647
|
-
|
|
1650
|
+
displays_: () => {
|
|
1651
|
+
var _display_2;
|
|
1652
|
+
return (_display_2 = display_()) === null || _display_2 === void 0 ? void 0 : _display_2.displays;
|
|
1648
1653
|
},
|
|
1649
1654
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1650
1655
|
containerWidth_: containerWidth_,
|
|
@@ -1916,7 +1921,7 @@ function $e57cd46536ad992e$export$2c9f9bf2092486aa(props) {
|
|
|
1916
1921
|
});
|
|
1917
1922
|
const sharedOptions = {
|
|
1918
1923
|
product_card_template_: display => $47e3c3102c78121b$export$44809a8a3e867e30({
|
|
1919
|
-
display_: display,
|
|
1924
|
+
display_: () => display,
|
|
1920
1925
|
FavoriteButton_: props.FavoriteButton_,
|
|
1921
1926
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
1922
1927
|
animationDuration_: expandingAnimationDuration,
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.7.
|
|
14
|
+
export const version = "4.7.3";
|
|
15
15
|
/**
|
|
16
16
|
* Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
|
|
17
17
|
*/
|
|
@@ -893,7 +893,7 @@ export function LookCard({
|
|
|
893
893
|
priceFormatting_,
|
|
894
894
|
pseudoRouter_
|
|
895
895
|
}: {
|
|
896
|
-
display_: FeaturedInDisplay | null
|
|
896
|
+
display_: Accessor<FeaturedInDisplay | null>;
|
|
897
897
|
FavoriteButton_?: (props: {
|
|
898
898
|
display_: Accessor<ModernDisplay | null | undefined>;
|
|
899
899
|
}) => JSX.Element;
|
|
@@ -1442,7 +1442,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1442
1442
|
* Open the modal with support for alignment.
|
|
1443
1443
|
* @returns {void}
|
|
1444
1444
|
*/
|
|
1445
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1445
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1446
1446
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1447
1447
|
export interface PageReplacer {
|
|
1448
1448
|
readonly render_: () => Node_Array;
|
|
@@ -1521,5 +1521,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1521
1521
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1522
1522
|
layout?: PossibleLayout;
|
|
1523
1523
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1524
|
-
}): import("@depict-ai/utilishared
|
|
1524
|
+
}): import("@depict-ai/utilishared").Node_Array;
|
|
1525
1525
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/server/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
|
|
|
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.7.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.3";
|
|
14
14
|
function $8e8b179489080711$export$5bad61ecde080b1f() {
|
|
15
15
|
const {
|
|
16
16
|
collapse: collapse,
|
|
@@ -1437,18 +1437,18 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1437
1437
|
get children() {
|
|
1438
1438
|
return $b8hua$createComponent((0, $b8hua$Show), {
|
|
1439
1439
|
get when() {
|
|
1440
|
-
return containerWidth_() || !displays_;
|
|
1440
|
+
return containerWidth_() || !displays_();
|
|
1441
1441
|
},
|
|
1442
1442
|
get children() {
|
|
1443
1443
|
return $b8hua$ssr($4089a7972a508539$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrElement("div", $b8hua$mergeProps({
|
|
1444
1444
|
get ["class"]() {
|
|
1445
1445
|
return "look-overlay ".concat(userWantsExpanded() ? "expanded" : "", " ").concat(!getSecondPartAnimationRunning() && userWantsExpanded() ? "resting-fully-expanded" : "");
|
|
1446
1446
|
}
|
|
1447
|
-
}, () => displays_ && {
|
|
1447
|
+
}, () => displays_() && {
|
|
1448
1448
|
style: "--look-card-width:".concat(containerWidth_(), "px;--look-item-height:").concat(lookItemHeight() || 200, "px")
|
|
1449
1449
|
}), () => $b8hua$escape($b8hua$createComponent((0, $b8hua$Index), {
|
|
1450
1450
|
get each() {
|
|
1451
|
-
return displays_ || Array.from({
|
|
1451
|
+
return displays_() || Array.from({
|
|
1452
1452
|
length: 4
|
|
1453
1453
|
});
|
|
1454
1454
|
},
|
|
@@ -1506,12 +1506,11 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1506
1506
|
priceFormatting_: priceFormatting_,
|
|
1507
1507
|
pseudoRouter_: pseudoRouter_
|
|
1508
1508
|
} = _ref;
|
|
1509
|
-
const [coverImage] = (display_ === null || display_ === void 0 ? void 0 : display_.image_urls) || [];
|
|
1510
1509
|
const useWantsExpandedSignal_ = $b8hua$createSignal(false);
|
|
1511
1510
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1512
1511
|
const supportsHover_ = $00a5b94f0c11efbb$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
1513
1512
|
const us = Symbol("look");
|
|
1514
|
-
const container = $b8hua$ssr($697d8713dc82b9ab$var$_tmpl$, $b8hua$ssrHydrationKey(), "look-card ".concat(!display_ ? "placeholder" : ""));
|
|
1513
|
+
const container = $b8hua$ssr($697d8713dc82b9ab$var$_tmpl$, $b8hua$ssrHydrationKey(), "look-card ".concat(!display_() ? "placeholder" : ""));
|
|
1515
1514
|
const containerWidth_ = $fc830a7ee59416ef$export$ebdc3711f7e02ccd(container);
|
|
1516
1515
|
const clickHandler = $b8hua$catchify(_ref2 => {
|
|
1517
1516
|
let {
|
|
@@ -1535,7 +1534,9 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1535
1534
|
// Close us if another look expands
|
|
1536
1535
|
$b8hua$createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1537
1536
|
$b8hua$insert(container, () => [$b8hua$createComponent((0, $b8hua$Show), {
|
|
1538
|
-
when
|
|
1537
|
+
get when() {
|
|
1538
|
+
return display_();
|
|
1539
|
+
},
|
|
1539
1540
|
get fallback() {
|
|
1540
1541
|
return $b8hua$createComponent((0, $3ab4aa97880fb88d$export$3f37af283f8fb843), {
|
|
1541
1542
|
aspectRatio: "var(".concat((0, $5eaa00b951637e96$export$8a2234b5b1a5ebd4), ", ").concat(placeholderImageAspectRatio_, ")")
|
|
@@ -1543,14 +1544,18 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1543
1544
|
},
|
|
1544
1545
|
get children() {
|
|
1545
1546
|
return $b8hua$createComponent((0, $98688279b9059f50$export$9d4a4b669b1929ab), {
|
|
1546
|
-
src
|
|
1547
|
+
get src() {
|
|
1548
|
+
var _display_, _display_$image_urls;
|
|
1549
|
+
return (_display_ = display_()) === null || _display_ === void 0 ? void 0 : (_display_$image_urls = _display_.image_urls) === null || _display_$image_urls === void 0 ? void 0 : _display_$image_urls[0];
|
|
1550
|
+
},
|
|
1547
1551
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1548
1552
|
autoAdjustAspectRatio: true
|
|
1549
1553
|
});
|
|
1550
1554
|
}
|
|
1551
1555
|
}), $b8hua$createComponent((0, $4089a7972a508539$export$ebf0b1d4f90c09ae), {
|
|
1552
|
-
|
|
1553
|
-
|
|
1556
|
+
displays_: () => {
|
|
1557
|
+
var _display_2;
|
|
1558
|
+
return (_display_2 = display_()) === null || _display_2 === void 0 ? void 0 : _display_2.displays;
|
|
1554
1559
|
},
|
|
1555
1560
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1556
1561
|
containerWidth_: containerWidth_,
|
|
@@ -1822,7 +1827,7 @@ function $bb34cd283e904784$export$2c9f9bf2092486aa(props) {
|
|
|
1822
1827
|
});
|
|
1823
1828
|
const sharedOptions = {
|
|
1824
1829
|
product_card_template_: display => $697d8713dc82b9ab$export$44809a8a3e867e30({
|
|
1825
|
-
display_: display,
|
|
1830
|
+
display_: () => display,
|
|
1826
1831
|
FavoriteButton_: props.FavoriteButton_,
|
|
1827
1832
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
1828
1833
|
animationDuration_: expandingAnimationDuration,
|
package/server/latest/index.cjs
CHANGED
|
@@ -98,7 +98,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
98
98
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
99
99
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
100
100
|
/*! Depict.ai search and product listing SDK */
|
|
101
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.
|
|
101
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.3";
|
|
102
102
|
function $4b455f60dadde8b8$export$5bad61ecde080b1f(...params) {
|
|
103
103
|
const {
|
|
104
104
|
collapse: collapse,
|
|
@@ -1455,18 +1455,18 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
|
|
|
1455
1455
|
get children() {
|
|
1456
1456
|
return $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
1457
1457
|
get when() {
|
|
1458
|
-
return containerWidth_() || !displays_;
|
|
1458
|
+
return containerWidth_() || !displays_();
|
|
1459
1459
|
},
|
|
1460
1460
|
get children() {
|
|
1461
1461
|
return $5vyXB$solidjsweb.ssr($905010a06f9aeae5$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrElement("div", $5vyXB$solidjsweb.mergeProps({
|
|
1462
1462
|
get ["class"]() {
|
|
1463
1463
|
return `look-overlay ${userWantsExpanded() ? "expanded" : ""} ${!getSecondPartAnimationRunning() && userWantsExpanded() ? "resting-fully-expanded" : ""}`;
|
|
1464
1464
|
}
|
|
1465
|
-
}, () => displays_ && {
|
|
1465
|
+
}, () => displays_() && {
|
|
1466
1466
|
style: `--look-card-width:${containerWidth_()}px;--look-item-height:${lookItemHeight() || 200}px`
|
|
1467
1467
|
}), () => $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Index), {
|
|
1468
1468
|
get each() {
|
|
1469
|
-
return displays_ || Array.from({
|
|
1469
|
+
return displays_() || Array.from({
|
|
1470
1470
|
length: 4
|
|
1471
1471
|
});
|
|
1472
1472
|
},
|
|
@@ -1523,12 +1523,11 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1523
1523
|
priceFormatting_: priceFormatting_,
|
|
1524
1524
|
pseudoRouter_: pseudoRouter_
|
|
1525
1525
|
}) {
|
|
1526
|
-
const [coverImage] = display_?.image_urls || [];
|
|
1527
1526
|
const useWantsExpandedSignal_ = $5vyXB$solidjs.createSignal(false);
|
|
1528
1527
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1529
1528
|
const supportsHover_ = $b54e6192d0caa293$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
1530
1529
|
const us = Symbol("look");
|
|
1531
|
-
const container = $5vyXB$solidjsweb.ssr($ad882bbe664dbd53$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `look-card ${!display_ ? "placeholder" : ""}`);
|
|
1530
|
+
const container = $5vyXB$solidjsweb.ssr($ad882bbe664dbd53$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `look-card ${!display_() ? "placeholder" : ""}`);
|
|
1532
1531
|
const containerWidth_ = $f13855d1b951b24a$export$ebdc3711f7e02ccd(container);
|
|
1533
1532
|
const clickHandler = $5vyXB$depictaiutilishared.catchify(({
|
|
1534
1533
|
target: target
|
|
@@ -1551,7 +1550,9 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1551
1550
|
// Close us if another look expands
|
|
1552
1551
|
$5vyXB$solidjs.createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1553
1552
|
$5vyXB$solidjsweb.insert(container, () => [$5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
1554
|
-
when
|
|
1553
|
+
get when() {
|
|
1554
|
+
return display_();
|
|
1555
|
+
},
|
|
1555
1556
|
get fallback() {
|
|
1556
1557
|
return $5vyXB$solidjsweb.createComponent((0, $3bc4a89b971a3af5$export$3f37af283f8fb843), {
|
|
1557
1558
|
aspectRatio: `var(${(0, $6f604560873e4f69$export$8a2234b5b1a5ebd4)}, ${placeholderImageAspectRatio_})`
|
|
@@ -1559,15 +1560,15 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1559
1560
|
},
|
|
1560
1561
|
get children() {
|
|
1561
1562
|
return $5vyXB$solidjsweb.createComponent((0, $d212a67662c5cf38$export$9d4a4b669b1929ab), {
|
|
1562
|
-
src
|
|
1563
|
+
get src() {
|
|
1564
|
+
return display_()?.image_urls?.[0];
|
|
1565
|
+
},
|
|
1563
1566
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1564
1567
|
autoAdjustAspectRatio: true
|
|
1565
1568
|
});
|
|
1566
1569
|
}
|
|
1567
1570
|
}), $5vyXB$solidjsweb.createComponent((0, $905010a06f9aeae5$export$ebf0b1d4f90c09ae), {
|
|
1568
|
-
|
|
1569
|
-
return display_?.displays;
|
|
1570
|
-
},
|
|
1571
|
+
displays_: () => display_()?.displays,
|
|
1571
1572
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1572
1573
|
containerWidth_: containerWidth_,
|
|
1573
1574
|
animationDuration_: animationDuration_,
|
|
@@ -1819,7 +1820,7 @@ function $a3bbfa5fdaa39f3a$export$2c9f9bf2092486aa(props) {
|
|
|
1819
1820
|
});
|
|
1820
1821
|
const sharedOptions = {
|
|
1821
1822
|
product_card_template_: display => $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
1822
|
-
display_: display,
|
|
1823
|
+
display_: () => display,
|
|
1823
1824
|
FavoriteButton_: props.FavoriteButton_,
|
|
1824
1825
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
1825
1826
|
animationDuration_: expandingAnimationDuration,
|
package/server/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.7.
|
|
14
|
+
export const version = "4.7.3";
|
|
15
15
|
/**
|
|
16
16
|
* Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
|
|
17
17
|
*/
|
|
@@ -893,7 +893,7 @@ export function LookCard({
|
|
|
893
893
|
priceFormatting_,
|
|
894
894
|
pseudoRouter_
|
|
895
895
|
}: {
|
|
896
|
-
display_: FeaturedInDisplay | null
|
|
896
|
+
display_: Accessor<FeaturedInDisplay | null>;
|
|
897
897
|
FavoriteButton_?: (props: {
|
|
898
898
|
display_: Accessor<ModernDisplay | null | undefined>;
|
|
899
899
|
}) => JSX.Element;
|
|
@@ -1442,7 +1442,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1442
1442
|
* Open the modal with support for alignment.
|
|
1443
1443
|
* @returns {void}
|
|
1444
1444
|
*/
|
|
1445
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1445
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1446
1446
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1447
1447
|
export interface PageReplacer {
|
|
1448
1448
|
readonly render_: () => Node_Array;
|
|
@@ -1521,5 +1521,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1521
1521
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1522
1522
|
layout?: PossibleLayout;
|
|
1523
1523
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1524
|
-
}): import("@depict-ai/utilishared
|
|
1524
|
+
}): import("@depict-ai/utilishared").Node_Array;
|
|
1525
1525
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/server/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.3";
|
|
11
11
|
function $24e27fab9c821b86$export$5bad61ecde080b1f(...params) {
|
|
12
12
|
const {
|
|
13
13
|
collapse: collapse,
|
|
@@ -1364,18 +1364,18 @@ function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
|
|
|
1364
1364
|
get children() {
|
|
1365
1365
|
return $i7OB2$createComponent((0, $i7OB2$Show), {
|
|
1366
1366
|
get when() {
|
|
1367
|
-
return containerWidth_() || !displays_;
|
|
1367
|
+
return containerWidth_() || !displays_();
|
|
1368
1368
|
},
|
|
1369
1369
|
get children() {
|
|
1370
1370
|
return $i7OB2$ssr($7555dcad3b8a4632$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$ssrElement("div", $i7OB2$mergeProps({
|
|
1371
1371
|
get ["class"]() {
|
|
1372
1372
|
return `look-overlay ${userWantsExpanded() ? "expanded" : ""} ${!getSecondPartAnimationRunning() && userWantsExpanded() ? "resting-fully-expanded" : ""}`;
|
|
1373
1373
|
}
|
|
1374
|
-
}, () => displays_ && {
|
|
1374
|
+
}, () => displays_() && {
|
|
1375
1375
|
style: `--look-card-width:${containerWidth_()}px;--look-item-height:${lookItemHeight() || 200}px`
|
|
1376
1376
|
}), () => $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Index), {
|
|
1377
1377
|
get each() {
|
|
1378
|
-
return displays_ || Array.from({
|
|
1378
|
+
return displays_() || Array.from({
|
|
1379
1379
|
length: 4
|
|
1380
1380
|
});
|
|
1381
1381
|
},
|
|
@@ -1432,12 +1432,11 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
|
1432
1432
|
priceFormatting_: priceFormatting_,
|
|
1433
1433
|
pseudoRouter_: pseudoRouter_
|
|
1434
1434
|
}) {
|
|
1435
|
-
const [coverImage] = display_?.image_urls || [];
|
|
1436
1435
|
const useWantsExpandedSignal_ = $i7OB2$createSignal(false);
|
|
1437
1436
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1438
1437
|
const supportsHover_ = $dc9262ef6f786812$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
1439
1438
|
const us = Symbol("look");
|
|
1440
|
-
const container = $i7OB2$ssr($28ee4f7db3cc44b8$var$_tmpl$, $i7OB2$ssrHydrationKey(), `look-card ${!display_ ? "placeholder" : ""}`);
|
|
1439
|
+
const container = $i7OB2$ssr($28ee4f7db3cc44b8$var$_tmpl$, $i7OB2$ssrHydrationKey(), `look-card ${!display_() ? "placeholder" : ""}`);
|
|
1441
1440
|
const containerWidth_ = $2449872a62a75a20$export$ebdc3711f7e02ccd(container);
|
|
1442
1441
|
const clickHandler = $i7OB2$catchify(({
|
|
1443
1442
|
target: target
|
|
@@ -1460,7 +1459,9 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
|
1460
1459
|
// Close us if another look expands
|
|
1461
1460
|
$i7OB2$createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1462
1461
|
$i7OB2$insert(container, () => [$i7OB2$createComponent((0, $i7OB2$Show), {
|
|
1463
|
-
when
|
|
1462
|
+
get when() {
|
|
1463
|
+
return display_();
|
|
1464
|
+
},
|
|
1464
1465
|
get fallback() {
|
|
1465
1466
|
return $i7OB2$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
|
|
1466
1467
|
aspectRatio: `var(${(0, $bb15dfb548a7666e$export$8a2234b5b1a5ebd4)}, ${placeholderImageAspectRatio_})`
|
|
@@ -1468,15 +1469,15 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
|
1468
1469
|
},
|
|
1469
1470
|
get children() {
|
|
1470
1471
|
return $i7OB2$createComponent((0, $70bb27cc6be01fc7$export$9d4a4b669b1929ab), {
|
|
1471
|
-
src
|
|
1472
|
+
get src() {
|
|
1473
|
+
return display_()?.image_urls?.[0];
|
|
1474
|
+
},
|
|
1472
1475
|
aspectRatio: placeholderImageAspectRatio_,
|
|
1473
1476
|
autoAdjustAspectRatio: true
|
|
1474
1477
|
});
|
|
1475
1478
|
}
|
|
1476
1479
|
}), $i7OB2$createComponent((0, $7555dcad3b8a4632$export$ebf0b1d4f90c09ae), {
|
|
1477
|
-
|
|
1478
|
-
return display_?.displays;
|
|
1479
|
-
},
|
|
1480
|
+
displays_: () => display_()?.displays,
|
|
1480
1481
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1481
1482
|
containerWidth_: containerWidth_,
|
|
1482
1483
|
animationDuration_: animationDuration_,
|
|
@@ -1728,7 +1729,7 @@ function $07ef910e8ef6b783$export$2c9f9bf2092486aa(props) {
|
|
|
1728
1729
|
});
|
|
1729
1730
|
const sharedOptions = {
|
|
1730
1731
|
product_card_template_: display => $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
1731
|
-
display_: display,
|
|
1732
|
+
display_: () => display,
|
|
1732
1733
|
FavoriteButton_: props.FavoriteButton_,
|
|
1733
1734
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
1734
1735
|
animationDuration_: expandingAnimationDuration,
|