@depict-ai/ui 4.7.23 → 4.7.25
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 +129 -45
- package/ES10/index.d.ts +5 -1
- package/ES10/index.js +347 -264
- package/latest/index.cjs +129 -45
- package/latest/index.d.ts +5 -1
- package/latest/index.js +347 -264
- package/package.json +1 -1
- package/server/ES10/index.cjs +100 -32
- package/server/ES10/index.d.ts +5 -1
- package/server/ES10/index.js +236 -169
- package/server/latest/index.cjs +100 -32
- package/server/latest/index.d.ts +5 -1
- package/server/latest/index.js +236 -169
package/server/latest/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $5vyXB$depictaiutilishared = require("@depict-ai/utilishared/latest");
|
|
2
|
+
var $5vyXB$depictaiutilisharedlatest = require("@depict-ai/utilishared/latest");
|
|
2
3
|
var $5vyXB$solidjs = require("solid-js");
|
|
3
4
|
var $5vyXB$solidjsweb = require("solid-js/web");
|
|
4
|
-
var $5vyXB$depictaiutilisharedlatest = require("@depict-ai/utilishared/latest");
|
|
5
5
|
var $5vyXB$solidjsstore = require("solid-js/store");
|
|
6
6
|
require("../../multi_import_deduplicator.cjs").register_es_version("ui", "latest");
|
|
7
7
|
function $parcel$export(e, n, v, s) {
|
|
@@ -12,13 +12,14 @@ function $parcel$export(e, n, v, s) {
|
|
|
12
12
|
configurable: true
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
+
$parcel$export(module.exports, "useMobileHover", () => $8bf678c45948a297$export$d4d96868197be50e);
|
|
15
16
|
$parcel$export(module.exports, "useVisibilityState", () => $55cbacb79d3e0cea$export$54299a3c81f5425);
|
|
16
17
|
$parcel$export(module.exports, "useSlidableInformation", () => $a0e53f99354809d9$export$eaa625fb39439e37);
|
|
17
18
|
$parcel$export(module.exports, "useProductCardIsVisible", () => $67155e1aeb7073f6$export$80bb7300ce6a8be3);
|
|
18
19
|
$parcel$export(module.exports, "CurrentlyIntersectingContext", () => $67155e1aeb7073f6$export$f223d69ed12f5fb7);
|
|
19
20
|
$parcel$export(module.exports, "useExpandingContainerReactive", () => $4b455f60dadde8b8$export$5bad61ecde080b1f);
|
|
20
21
|
$parcel$export(module.exports, "LooksSliderOrGrid", () => $a3bbfa5fdaa39f3a$export$2c9f9bf2092486aa);
|
|
21
|
-
$parcel$export(module.exports, "LookCard", () => $
|
|
22
|
+
$parcel$export(module.exports, "LookCard", () => $bda357ff87c46163$export$44809a8a3e867e30);
|
|
22
23
|
$parcel$export(module.exports, "PseudoRouter", () => $e96dd13889871fc0$export$7e1297a3a19f10d8);
|
|
23
24
|
$parcel$export(module.exports, "promiseSafeStructuredClone", () => $ac946c6b782bb900$export$83bb9af5671e1dbe);
|
|
24
25
|
$parcel$export(module.exports, "preserve_items_in_history_dot_state", () => $d84fe647b84b5dc5$export$5162a71f252e6122);
|
|
@@ -103,7 +104,68 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
103
104
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
104
105
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
105
106
|
/*! Depict.ai search and product listing SDK */
|
|
106
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.
|
|
107
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.25";
|
|
108
|
+
let $8bf678c45948a297$var$elementsHoveredSignal;
|
|
109
|
+
let $8bf678c45948a297$var$consumersSignal;
|
|
110
|
+
function $8bf678c45948a297$export$d4d96868197be50e() {
|
|
111
|
+
if (!$8bf678c45948a297$var$elementsHoveredSignal || !$8bf678c45948a297$var$consumersSignal) $5vyXB$solidjs.createRoot(dispose => {
|
|
112
|
+
$8bf678c45948a297$var$elementsHoveredSignal = $5vyXB$solidjs.createSignal(new Set());
|
|
113
|
+
$8bf678c45948a297$var$consumersSignal = $5vyXB$solidjs.createSignal(0);
|
|
114
|
+
const [consumers] = $8bf678c45948a297$var$consumersSignal;
|
|
115
|
+
// No matter how often useMobileHover is called, only add one listener and get hovered elements once per touchmove event, for efficiency
|
|
116
|
+
$8bf678c45948a297$var$doHeavyCalculations();
|
|
117
|
+
$5vyXB$solidjs.createEffect(() => {
|
|
118
|
+
// No-one needs information anymore, stop listening
|
|
119
|
+
const users = consumers();
|
|
120
|
+
if (users < 1) {
|
|
121
|
+
$5vyXB$depictaiutilisharedlatest.dlog("Stopping to listen for mobile hover");
|
|
122
|
+
dispose();
|
|
123
|
+
$8bf678c45948a297$var$elementsHoveredSignal = undefined;
|
|
124
|
+
$8bf678c45948a297$var$consumersSignal = undefined;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
const [elementsHovered] = $8bf678c45948a297$var$elementsHoveredSignal;
|
|
129
|
+
const [, setConsumers] = $8bf678c45948a297$var$consumersSignal;
|
|
130
|
+
setConsumers(prev => prev + 1);
|
|
131
|
+
$5vyXB$solidjs.onCleanup(() => setConsumers(prev => prev - 1));
|
|
132
|
+
return elementsHovered;
|
|
133
|
+
}
|
|
134
|
+
function $8bf678c45948a297$var$doHeavyCalculations() {
|
|
135
|
+
$5vyXB$depictaiutilisharedlatest.dlog("Starting to listen for mobile hover");
|
|
136
|
+
const [, setElementsHovered] = $8bf678c45948a297$var$elementsHoveredSignal;
|
|
137
|
+
const elementAtTouch = new Map();
|
|
138
|
+
const updateSet = () => setElementsHovered(new Set([...elementAtTouch.values()].filter(v => v)));
|
|
139
|
+
const setPositionHandler = $5vyXB$depictaiutilisharedlatest.catchify(evt => {
|
|
140
|
+
for (const touch of evt.changedTouches) elementAtTouch.set(touch.identifier, $8bf678c45948a297$var$getElementAtTouch(touch));
|
|
141
|
+
updateSet();
|
|
142
|
+
});
|
|
143
|
+
const deleteTouchHandler = $5vyXB$depictaiutilisharedlatest.catchify(evt => {
|
|
144
|
+
for (const touch of evt.changedTouches) elementAtTouch.delete(touch.identifier);
|
|
145
|
+
updateSet();
|
|
146
|
+
});
|
|
147
|
+
addEventListener("touchstart", setPositionHandler, {
|
|
148
|
+
passive: true
|
|
149
|
+
});
|
|
150
|
+
addEventListener("touchmove", setPositionHandler, {
|
|
151
|
+
passive: true
|
|
152
|
+
});
|
|
153
|
+
addEventListener("touchend", deleteTouchHandler, {
|
|
154
|
+
passive: true
|
|
155
|
+
});
|
|
156
|
+
addEventListener("touchcancel", deleteTouchHandler, {
|
|
157
|
+
passive: true
|
|
158
|
+
});
|
|
159
|
+
$5vyXB$solidjs.onCleanup(() => {
|
|
160
|
+
removeEventListener("touchstart", setPositionHandler);
|
|
161
|
+
removeEventListener("touchmove", setPositionHandler);
|
|
162
|
+
removeEventListener("touchend", deleteTouchHandler);
|
|
163
|
+
removeEventListener("touchcancel", deleteTouchHandler);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function $8bf678c45948a297$var$getElementAtTouch(touch) {
|
|
167
|
+
return document.elementFromPoint(touch.clientX, touch.clientY);
|
|
168
|
+
}
|
|
107
169
|
function $55cbacb79d3e0cea$export$54299a3c81f5425() {
|
|
108
170
|
const d = document;
|
|
109
171
|
const [isVisible, setIsVisible] = $5vyXB$solidjs.createSignal(d.visibilityState !== "hidden");
|
|
@@ -1336,10 +1398,10 @@ function $d659702496cb72ea$export$a71e92cfbb498adc(props) {
|
|
|
1336
1398
|
return $5vyXB$depictaiutilishared.standard_price_format(props.price_, price_formatting.places_after_comma_, price_formatting.decimal_places_delimiter_, price_formatting.thousands_delimiter_);
|
|
1337
1399
|
});
|
|
1338
1400
|
}
|
|
1339
|
-
var $
|
|
1340
|
-
$
|
|
1341
|
-
$
|
|
1342
|
-
function $
|
|
1401
|
+
var $0540c3739b32dc79$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
|
|
1402
|
+
$0540c3739b32dc79$var$_tmpl$2 = ["<span", ' class="d-price original">', "</span>"],
|
|
1403
|
+
$0540c3739b32dc79$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container">', '<span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
|
|
1404
|
+
function $0540c3739b32dc79$export$b73ed90f0ee50dc3({
|
|
1343
1405
|
display_: display_,
|
|
1344
1406
|
FavoriteButton_: FavoriteButton_,
|
|
1345
1407
|
userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
|
|
@@ -1376,7 +1438,7 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
|
|
|
1376
1438
|
});
|
|
1377
1439
|
},
|
|
1378
1440
|
get children() {
|
|
1379
|
-
return $5vyXB$solidjsweb.ssr($
|
|
1441
|
+
return $5vyXB$solidjsweb.ssr($0540c3739b32dc79$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
1380
1442
|
get when() {
|
|
1381
1443
|
return imageUrl();
|
|
1382
1444
|
},
|
|
@@ -1408,7 +1470,7 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
|
|
|
1408
1470
|
return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
|
|
1409
1471
|
},
|
|
1410
1472
|
get children() {
|
|
1411
|
-
return $5vyXB$solidjsweb.ssr($
|
|
1473
|
+
return $5vyXB$solidjsweb.ssr($0540c3739b32dc79$var$_tmpl$3, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrElement("span", $5vyXB$solidjsweb.mergeProps({
|
|
1412
1474
|
"class": "d-title line-clamp"
|
|
1413
1475
|
}, () => title() && {
|
|
1414
1476
|
title: title()
|
|
@@ -1447,7 +1509,7 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
|
|
|
1447
1509
|
return isOnSale();
|
|
1448
1510
|
},
|
|
1449
1511
|
get children() {
|
|
1450
|
-
return $5vyXB$solidjsweb.ssr($
|
|
1512
|
+
return $5vyXB$solidjsweb.ssr($0540c3739b32dc79$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
1451
1513
|
get when() {
|
|
1452
1514
|
return variantToUse() && !originalPrice.loading;
|
|
1453
1515
|
},
|
|
@@ -1537,8 +1599,8 @@ async function $4f38102efa525ee0$var$checkIfIsAffectedByChromeBug326498383() {
|
|
|
1537
1599
|
}
|
|
1538
1600
|
return isAffected;
|
|
1539
1601
|
}
|
|
1540
|
-
var $
|
|
1541
|
-
function $
|
|
1602
|
+
var $912d9a717ceee184$var$_tmpl$ = ["<div", ' class="scroll-padding"><div class="', '" style="', '">', "</div></div>"];
|
|
1603
|
+
function $912d9a717ceee184$export$ebf0b1d4f90c09ae({
|
|
1542
1604
|
displays_: displays_,
|
|
1543
1605
|
FavoriteButton_: FavoriteButton_,
|
|
1544
1606
|
userWantsExpandedSignal_: userWantsExpandedSignal_,
|
|
@@ -1557,6 +1619,7 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
|
|
|
1557
1619
|
const textFadeInAnimationRunning = $5vyXB$solidjs.createSignal(false);
|
|
1558
1620
|
const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
|
|
1559
1621
|
const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
|
|
1622
|
+
//const elementsHovered = useMobileHover();
|
|
1560
1623
|
$4f38102efa525ee0$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
|
|
1561
1624
|
return $5vyXB$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
|
|
1562
1625
|
get children() {
|
|
@@ -1565,7 +1628,7 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
|
|
|
1565
1628
|
return containerWidth_() || !displays_();
|
|
1566
1629
|
},
|
|
1567
1630
|
get children() {
|
|
1568
|
-
return $5vyXB$solidjsweb.ssr($
|
|
1631
|
+
return $5vyXB$solidjsweb.ssr($912d9a717ceee184$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `look-overlay ${userWantsExpanded() ? "expanded" : ""} ${!getSecondPartAnimationRunning() && userWantsExpanded() ? "resting-fully-expanded" : ""}`, $5vyXB$solidjsweb.ssrStyle(displays_() &&
|
|
1569
1632
|
// The styling is written like this to eke out animation smoothness on low CPU devices, git blame for previous, more readable versions.
|
|
1570
1633
|
`--look-card-width:${containerWidth_()}px;--look-card-height:${containerHeight_()}px;--look-item-height:${lookItemHeight() || 200}px`), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Index), {
|
|
1571
1634
|
get each() {
|
|
@@ -1574,7 +1637,7 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
|
|
|
1574
1637
|
});
|
|
1575
1638
|
},
|
|
1576
1639
|
children: (display, index) => {
|
|
1577
|
-
return $5vyXB$solidjsweb.createComponent((0, $
|
|
1640
|
+
return $5vyXB$solidjsweb.createComponent((0, $0540c3739b32dc79$export$b73ed90f0ee50dc3), {
|
|
1578
1641
|
pseudoRouter_: pseudoRouter_,
|
|
1579
1642
|
animationDuration_: animationDuration_,
|
|
1580
1643
|
display_: display,
|
|
@@ -1599,7 +1662,7 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
|
|
|
1599
1662
|
/**
|
|
1600
1663
|
* Workaround for Chrome bug 326498383, adapted version of https://stackoverflow.com/a/39494245
|
|
1601
1664
|
*/
|
|
1602
|
-
function $
|
|
1665
|
+
function $912d9a717ceee184$var$scrollingFunctionForChrome(element, targetScrollY, duration) {
|
|
1603
1666
|
let start;
|
|
1604
1667
|
const startingY = element.scrollTop;
|
|
1605
1668
|
const diff = targetScrollY - startingY;
|
|
@@ -1616,8 +1679,8 @@ function $905010a06f9aeae5$var$scrollingFunctionForChrome(element, targetScrollY
|
|
|
1616
1679
|
// Bootstrap our animation - it will get called right before next frame shall be rendered.
|
|
1617
1680
|
requestAnimationFrame(step);
|
|
1618
1681
|
}
|
|
1619
|
-
var $
|
|
1620
|
-
function $
|
|
1682
|
+
var $bda357ff87c46163$var$_tmpl$ = ["<div", ' class="', '"><!--$-->', "<!--/--><!--$-->", "<!--/--></div>"];
|
|
1683
|
+
function $bda357ff87c46163$export$44809a8a3e867e30({
|
|
1621
1684
|
display_: display_,
|
|
1622
1685
|
expandedLooksSignal_: [expandedLooks_, setExpandedLooks],
|
|
1623
1686
|
FavoriteButton_: FavoriteButton_,
|
|
@@ -1673,7 +1736,7 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1673
1736
|
}
|
|
1674
1737
|
// Close us if another look expands
|
|
1675
1738
|
$5vyXB$solidjs.createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1676
|
-
return $5vyXB$solidjsweb.ssr($
|
|
1739
|
+
return $5vyXB$solidjsweb.ssr($bda357ff87c46163$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `look-card ${!display_() ? "placeholder" : ""}`, $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
1677
1740
|
get when() {
|
|
1678
1741
|
return display_();
|
|
1679
1742
|
},
|
|
@@ -1691,7 +1754,7 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1691
1754
|
autoAdjustAspectRatio: true
|
|
1692
1755
|
});
|
|
1693
1756
|
}
|
|
1694
|
-
})), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $
|
|
1757
|
+
})), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $912d9a717ceee184$export$ebf0b1d4f90c09ae), {
|
|
1695
1758
|
displays_: () => display_()?.displays,
|
|
1696
1759
|
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1697
1760
|
containerWidth_: containerWidth_,
|
|
@@ -1949,7 +2012,7 @@ function $a3bbfa5fdaa39f3a$export$2c9f9bf2092486aa(props) {
|
|
|
1949
2012
|
return $a3bbfa5fdaa39f3a$var$runDisplayTransformersForLooks(baseData, listings, props.displayTransformers_);
|
|
1950
2013
|
});
|
|
1951
2014
|
const sharedOptions = {
|
|
1952
|
-
product_card_template_: display => $
|
|
2015
|
+
product_card_template_: display => $bda357ff87c46163$export$44809a8a3e867e30({
|
|
1953
2016
|
display_: () => display,
|
|
1954
2017
|
FavoriteButton_: props.FavoriteButton_,
|
|
1955
2018
|
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
@@ -3595,7 +3658,7 @@ function $1ab22f2cd39b3061$export$916e6850778505f6(search_params, filter_query_p
|
|
|
3595
3658
|
const keys = [...search_params.keys()];
|
|
3596
3659
|
for (const key of keys) if (key.startsWith(filter_query_param_prefix) || key === sorting_query_param || key.startsWith($1ab22f2cd39b3061$var$legacy_filter_prefix)) search_params.delete(key);
|
|
3597
3660
|
}
|
|
3598
|
-
const $1ab22f2cd39b3061$export$
|
|
3661
|
+
const $1ab22f2cd39b3061$export$84daa4fa1471698b = "#went_sideways_clear_filters";
|
|
3599
3662
|
function $1ab22f2cd39b3061$export$43cd1e747fecd42e({
|
|
3600
3663
|
to_url_: to_url_,
|
|
3601
3664
|
set_clearing_flag_: set_clearing_flag_,
|
|
@@ -3609,9 +3672,13 @@ function $1ab22f2cd39b3061$export$43cd1e747fecd42e({
|
|
|
3609
3672
|
const {
|
|
3610
3673
|
searchParams: searchParams
|
|
3611
3674
|
} = url_object;
|
|
3612
|
-
|
|
3675
|
+
let transferredAnyFilters = false;
|
|
3613
3676
|
if (from_search_params_.has(sorting_query_param_)) searchParams.set(sorting_query_param_, from_search_params_.get(sorting_query_param_));
|
|
3614
|
-
for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_))
|
|
3677
|
+
for (const key of from_search_params_.keys()) if (key.startsWith(filter_query_param_prefix_)) {
|
|
3678
|
+
searchParams.set(key, from_search_params_.get(key));
|
|
3679
|
+
transferredAnyFilters = true;
|
|
3680
|
+
}
|
|
3681
|
+
if (set_clearing_flag_ && transferredAnyFilters) url_object.hash = $1ab22f2cd39b3061$export$84daa4fa1471698b;
|
|
3615
3682
|
if (was_url_object) return url_object;
|
|
3616
3683
|
return url_object.href;
|
|
3617
3684
|
}
|
|
@@ -7943,7 +8010,8 @@ function $c79fd10a3ab7d6e0$export$477caf01aecaeb2a(options) {
|
|
|
7943
8010
|
$5vyXB$solidjs.onCleanup(() => (0, $5vyXB$depictaiutilishared.instant_exec_on_suspect_history_change).delete(history_change_handler));
|
|
7944
8011
|
$5vyXB$solidjs.createComputed(() => {
|
|
7945
8012
|
const {
|
|
7946
|
-
searchParams: searchParams
|
|
8013
|
+
searchParams: searchParams,
|
|
8014
|
+
hash: hash
|
|
7947
8015
|
} = new URL(get_current_href());
|
|
7948
8016
|
$5vyXB$solidjs.batch(() => {
|
|
7949
8017
|
const found_sorting = $1ab22f2cd39b3061$export$766e9676e74997d3(searchParams, sorting_query_param_);
|
|
@@ -7975,7 +8043,7 @@ function $c79fd10a3ab7d6e0$export$477caf01aecaeb2a(options) {
|
|
|
7975
8043
|
if (found_override_listing_id) $5vyXB$depictaiutilishared.dlog("Found override query id:", found_override_listing_id); // This stuff might get confusing so better log it
|
|
7976
8044
|
}
|
|
7977
8045
|
|
|
7978
|
-
if (
|
|
8046
|
+
if (hash === (0, $1ab22f2cd39b3061$export$84daa4fa1471698b)) set_has_sideways_filter_clearing_flag(true);
|
|
7979
8047
|
if (!writer_started) {
|
|
7980
8048
|
// The owner here is the createComputed which gets disposed the next time the computation runs - but we actually just want to delay the start of the href_writer until our signals contain the current value of the URL, therefore the runWithOwner
|
|
7981
8049
|
$5vyXB$solidjs.runWithOwner(owner, () => $c79fd10a3ab7d6e0$var$start_href_writer({
|
|
@@ -8016,21 +8084,21 @@ function $c79fd10a3ab7d6e0$var$start_href_writer({
|
|
|
8016
8084
|
filter_query_param_prefix_: filter_query_param_prefix_
|
|
8017
8085
|
}) {
|
|
8018
8086
|
$5vyXB$solidjs.createEffect($5vyXB$solidjs.on([get_sorting_, get_selected_filters_, get_has_sideways_filter_clearing_flag_], ([sorting, filters, has_sideways_filter_clearing_flag]) => {
|
|
8019
|
-
const
|
|
8020
|
-
const
|
|
8087
|
+
const url_object = new URL(location.href);
|
|
8088
|
+
const unmodified_search_params = [...url_object.searchParams];
|
|
8089
|
+
const unmodified_hash = url_object.hash;
|
|
8021
8090
|
const {
|
|
8022
8091
|
searchParams: searchParams
|
|
8023
8092
|
} = url_object;
|
|
8024
8093
|
$1ab22f2cd39b3061$export$916e6850778505f6(searchParams, filter_query_param_prefix_, sorting_query_param_);
|
|
8025
8094
|
$1ab22f2cd39b3061$export$62acb285a7579555(sorting, searchParams, sorting_query_param_);
|
|
8026
8095
|
$1ab22f2cd39b3061$export$58aa3f171519b6d7(filters, searchParams, filter_query_param_prefix_);
|
|
8027
|
-
if (!has_sideways_filter_clearing_flag) $c79fd10a3ab7d6e0$var$delete_sideways_param_flag(
|
|
8096
|
+
if (!has_sideways_filter_clearing_flag) $c79fd10a3ab7d6e0$var$delete_sideways_param_flag(url_object);
|
|
8028
8097
|
// We can't just check if the URL is equal since sometimes the order of the parameters in the URL changes (randomly?) so we need to compare them one by one
|
|
8029
|
-
const unmodified_search_params = [...new URL(current_href).searchParams];
|
|
8030
8098
|
const new_search_params = [...searchParams];
|
|
8031
8099
|
// Having the array middle step because if we'd check the "size" property of the map the algorithm could be fooled if there were two query parameters with the same key
|
|
8032
8100
|
const new_search_params_map = new Map(new_search_params);
|
|
8033
|
-
if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(([key, value]) => new_search_params_map.get(key) === value))
|
|
8101
|
+
if (unmodified_search_params.length !== new_search_params.length || !unmodified_search_params.every(([key, value]) => new_search_params_map.get(key) === value) || unmodified_hash !== url_object.hash)
|
|
8034
8102
|
// Only update URL if it actually changed
|
|
8035
8103
|
router_.navigate_.go_to_({
|
|
8036
8104
|
is_replace_: true,
|
|
@@ -8042,8 +8110,8 @@ function $c79fd10a3ab7d6e0$var$start_href_writer({
|
|
|
8042
8110
|
defer: true
|
|
8043
8111
|
}));
|
|
8044
8112
|
}
|
|
8045
|
-
function $c79fd10a3ab7d6e0$var$delete_sideways_param_flag(
|
|
8046
|
-
if (
|
|
8113
|
+
function $c79fd10a3ab7d6e0$var$delete_sideways_param_flag(url_object) {
|
|
8114
|
+
if (url_object.hash === (0, $1ab22f2cd39b3061$export$84daa4fa1471698b)) url_object.hash = "";
|
|
8047
8115
|
}
|
|
8048
8116
|
|
|
8049
8117
|
// We just pass page_url_creator to DepictAPI when we instantiate it, so don't allow it to be specified if api is already specified
|
package/server/latest/index.d.ts
CHANGED
|
@@ -11,7 +11,11 @@ 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.25";
|
|
15
|
+
/**
|
|
16
|
+
* Returns a set containing the element under every finger touching the screen right now.
|
|
17
|
+
*/
|
|
18
|
+
export function useMobileHover(): import("solid-js").Accessor<Set<Element>>;
|
|
15
19
|
/**
|
|
16
20
|
* Returns if the current tab is visible
|
|
17
21
|
*/
|