@depict-ai/ui 4.3.0 → 4.3.1
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 +42 -66
- package/ES10/index.d.ts +3 -3
- package/ES10/index.js +42 -66
- package/latest/index.cjs +38 -57
- package/latest/index.d.ts +3 -3
- package/latest/index.js +38 -57
- package/package.json +2 -2
- package/server/ES10/index.cjs +4 -30
- package/server/ES10/index.d.ts +3 -3
- package/server/ES10/index.js +4 -30
- package/server/latest/index.cjs +3 -23
- package/server/latest/index.d.ts +3 -3
- package/server/latest/index.js +3 -23
package/ES10/index.cjs
CHANGED
|
@@ -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.1";
|
|
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++) {
|
|
@@ -1363,7 +1363,7 @@ function $f3db423dc84bc35d$export$9d4a4b669b1929ab(props) {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
}));
|
|
1365
1365
|
}
|
|
1366
|
-
var $d66c35b5a6d6d926$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=img-wrapper
|
|
1366
|
+
var $d66c35b5a6d6d926$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=img-wrapper>`),
|
|
1367
1367
|
$d66c35b5a6d6d926$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<span class="d-price original">`),
|
|
1368
1368
|
$d66c35b5a6d6d926$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=right-part><div class=text-container><span class="d-title line-clamp"></span><span class=d-price></span><!$><!/></div><!$><!/>`),
|
|
1369
1369
|
$d66c35b5a6d6d926$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<a class=look-item><!$><!/><!$><!/>`);
|
|
@@ -1380,17 +1380,9 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1380
1380
|
const display = display_();
|
|
1381
1381
|
return display === null || display === void 0 ? void 0 : display.variant_displays[display === null || display === void 0 ? void 0 : display.variant_index];
|
|
1382
1382
|
});
|
|
1383
|
-
const imageUrls = () => {
|
|
1384
|
-
var _variantToUse;
|
|
1385
|
-
return (_variantToUse = variantToUse()) === null || _variantToUse === void 0 ? void 0 : _variantToUse.image_urls;
|
|
1386
|
-
};
|
|
1387
1383
|
const imageUrl = $52FdA$solidjs.createMemo(() => {
|
|
1388
|
-
var
|
|
1389
|
-
return (
|
|
1390
|
-
});
|
|
1391
|
-
const secondaryImageUrl = $52FdA$solidjs.createMemo(() => {
|
|
1392
|
-
var _imageUrls2;
|
|
1393
|
-
return (_imageUrls2 = imageUrls()) === null || _imageUrls2 === void 0 ? void 0 : _imageUrls2[1];
|
|
1384
|
+
var _variantToUse, _variantToUse$image_u;
|
|
1385
|
+
return (_variantToUse = variantToUse()) === null || _variantToUse === void 0 ? void 0 : (_variantToUse$image_u = _variantToUse.image_urls) === null || _variantToUse$image_u === void 0 ? void 0 : _variantToUse$image_u[0];
|
|
1394
1386
|
});
|
|
1395
1387
|
const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
|
|
1396
1388
|
const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $52FdA$solidjs.createSignal($52FdA$solidjs.untrack(isExpanded_));
|
|
@@ -1407,10 +1399,10 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1407
1399
|
const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
|
|
1408
1400
|
return (() => {
|
|
1409
1401
|
var _el$ = $52FdA$solidjsweb.getNextElement($d66c35b5a6d6d926$var$_tmpl$4),
|
|
1410
|
-
_el$
|
|
1411
|
-
[_el$
|
|
1412
|
-
_el$
|
|
1413
|
-
[_el$
|
|
1402
|
+
_el$12 = _el$.firstChild,
|
|
1403
|
+
[_el$13, _co$3] = $52FdA$solidjsweb.getNextMarker(_el$12.nextSibling),
|
|
1404
|
+
_el$14 = _el$13.nextSibling,
|
|
1405
|
+
[_el$15, _co$4] = $52FdA$solidjsweb.getNextMarker(_el$14.nextSibling);
|
|
1414
1406
|
var _ref$ = outerRef_;
|
|
1415
1407
|
typeof _ref$ === "function" ? $52FdA$solidjsweb.use(_ref$, _el$) : outerRef_ = _el$;
|
|
1416
1408
|
$52FdA$solidjsweb.spread(_el$, $52FdA$solidjsweb.mergeProps(() => {
|
|
@@ -1427,11 +1419,7 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1427
1419
|
});
|
|
1428
1420
|
},
|
|
1429
1421
|
get children() {
|
|
1430
|
-
var _el$2 = $52FdA$solidjsweb.getNextElement($d66c35b5a6d6d926$var$_tmpl$)
|
|
1431
|
-
_el$3 = _el$2.firstChild,
|
|
1432
|
-
[_el$4, _co$] = $52FdA$solidjsweb.getNextMarker(_el$3.nextSibling),
|
|
1433
|
-
_el$5 = _el$4.nextSibling,
|
|
1434
|
-
[_el$6, _co$2] = $52FdA$solidjsweb.getNextMarker(_el$5.nextSibling);
|
|
1422
|
+
var _el$2 = $52FdA$solidjsweb.getNextElement($d66c35b5a6d6d926$var$_tmpl$);
|
|
1435
1423
|
$52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
1436
1424
|
get when() {
|
|
1437
1425
|
return imageUrl();
|
|
@@ -1454,42 +1442,23 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1454
1442
|
}
|
|
1455
1443
|
});
|
|
1456
1444
|
}
|
|
1457
|
-
})
|
|
1458
|
-
$52FdA$solidjsweb.insert(_el$2, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
1459
|
-
get when() {
|
|
1460
|
-
return secondaryImageUrl();
|
|
1461
|
-
},
|
|
1462
|
-
get children() {
|
|
1463
|
-
return $52FdA$solidjsweb.createComponent((0, $f3db423dc84bc35d$export$9d4a4b669b1929ab), {
|
|
1464
|
-
get src() {
|
|
1465
|
-
return secondaryImageUrl();
|
|
1466
|
-
},
|
|
1467
|
-
get aspectRatio() {
|
|
1468
|
-
return isExpanded_() ? 0.75 : 1;
|
|
1469
|
-
},
|
|
1470
|
-
"class": "secondary",
|
|
1471
|
-
get autoAdjustAspectRatio() {
|
|
1472
|
-
return isExpanded_() ? "smoothed" : false;
|
|
1473
|
-
}
|
|
1474
|
-
});
|
|
1475
|
-
}
|
|
1476
|
-
}), _el$6, _co$2);
|
|
1445
|
+
}));
|
|
1477
1446
|
return _el$2;
|
|
1478
1447
|
}
|
|
1479
|
-
}), _el$
|
|
1448
|
+
}), _el$13, _co$3);
|
|
1480
1449
|
$52FdA$solidjsweb.insert(_el$, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
1481
1450
|
get when() {
|
|
1482
1451
|
return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : isExpanded_()) || animationIsRunning();
|
|
1483
1452
|
},
|
|
1484
1453
|
get children() {
|
|
1485
|
-
var _el$
|
|
1486
|
-
_el$
|
|
1487
|
-
_el$
|
|
1488
|
-
_el$
|
|
1489
|
-
_el$
|
|
1490
|
-
[_el$
|
|
1491
|
-
_el$
|
|
1492
|
-
[_el$
|
|
1454
|
+
var _el$3 = $52FdA$solidjsweb.getNextElement($d66c35b5a6d6d926$var$_tmpl$3),
|
|
1455
|
+
_el$4 = _el$3.firstChild,
|
|
1456
|
+
_el$5 = _el$4.firstChild,
|
|
1457
|
+
_el$6 = _el$5.nextSibling,
|
|
1458
|
+
_el$8 = _el$6.nextSibling,
|
|
1459
|
+
[_el$9, _co$] = $52FdA$solidjsweb.getNextMarker(_el$8.nextSibling),
|
|
1460
|
+
_el$10 = _el$4.nextSibling,
|
|
1461
|
+
[_el$11, _co$2] = $52FdA$solidjsweb.getNextMarker(_el$10.nextSibling);
|
|
1493
1462
|
$52FdA$solidjsweb.use(element => {
|
|
1494
1463
|
const owner = $52FdA$solidjs.getOwner();
|
|
1495
1464
|
$52FdA$solidjs.onCleanup((0, $52FdA$depictaiutilishared.observer).onexists(element, _ref2 => {
|
|
@@ -1522,49 +1491,49 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1522
1491
|
for (const ev of ["cancel", "finish"]) textContainerAnimation.addEventListener(ev, $52FdA$depictaiutilishared.catchify(() => setAnimationIsRunning(false)));
|
|
1523
1492
|
disconnector();
|
|
1524
1493
|
}));
|
|
1525
|
-
}, _el$
|
|
1526
|
-
$52FdA$solidjsweb.insert(_el$
|
|
1494
|
+
}, _el$3);
|
|
1495
|
+
$52FdA$solidjsweb.insert(_el$5, () => {
|
|
1527
1496
|
var _variantToUse$title, _variantToUse5;
|
|
1528
1497
|
return (_variantToUse$title = (_variantToUse5 = variantToUse()) === null || _variantToUse5 === void 0 ? void 0 : _variantToUse5.title) !== null && _variantToUse$title !== void 0 ? _variantToUse$title : $52FdA$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
|
|
1529
1498
|
height: "1em",
|
|
1530
1499
|
width: "20ch"
|
|
1531
1500
|
});
|
|
1532
1501
|
});
|
|
1533
|
-
$52FdA$solidjsweb.insert(_el$
|
|
1502
|
+
$52FdA$solidjsweb.insert(_el$6, (() => {
|
|
1534
1503
|
var _c$ = $52FdA$solidjsweb.memo(() => !!(!variantToUse() || salePrice.loading));
|
|
1535
1504
|
return () => _c$() ? $52FdA$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
|
|
1536
1505
|
height: "1em",
|
|
1537
1506
|
width: "20ch"
|
|
1538
1507
|
}) : salePrice();
|
|
1539
1508
|
})());
|
|
1540
|
-
$52FdA$solidjsweb.insert(_el$
|
|
1509
|
+
$52FdA$solidjsweb.insert(_el$4, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
1541
1510
|
get when() {
|
|
1542
1511
|
return isOnSale();
|
|
1543
1512
|
},
|
|
1544
1513
|
get children() {
|
|
1545
|
-
var _el$
|
|
1546
|
-
$52FdA$solidjsweb.insert(_el$
|
|
1514
|
+
var _el$7 = $52FdA$solidjsweb.getNextElement($d66c35b5a6d6d926$var$_tmpl$2);
|
|
1515
|
+
$52FdA$solidjsweb.insert(_el$7, (() => {
|
|
1547
1516
|
var _c$2 = $52FdA$solidjsweb.memo(() => !!(!variantToUse() || originalPrice.loading));
|
|
1548
1517
|
return () => _c$2() ? $52FdA$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
|
|
1549
1518
|
height: "1em",
|
|
1550
1519
|
width: "20ch"
|
|
1551
1520
|
}) : originalPrice();
|
|
1552
1521
|
})());
|
|
1553
|
-
return _el$
|
|
1522
|
+
return _el$7;
|
|
1554
1523
|
}
|
|
1555
|
-
}), _el$
|
|
1556
|
-
$52FdA$solidjsweb.insert(_el$
|
|
1524
|
+
}), _el$9, _co$);
|
|
1525
|
+
$52FdA$solidjsweb.insert(_el$3, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
1557
1526
|
when: FavoriteButton_,
|
|
1558
1527
|
get children() {
|
|
1559
1528
|
return $52FdA$solidjsweb.createComponent(FavoriteButton, {
|
|
1560
1529
|
display_: display_
|
|
1561
1530
|
});
|
|
1562
1531
|
}
|
|
1563
|
-
}), _el$
|
|
1564
|
-
$52FdA$solidjsweb.effect(() => _el$
|
|
1565
|
-
return _el$
|
|
1532
|
+
}), _el$11, _co$2);
|
|
1533
|
+
$52FdA$solidjsweb.effect(() => _el$6.classList.toggle("sale", !!isOnSale()));
|
|
1534
|
+
return _el$3;
|
|
1566
1535
|
}
|
|
1567
|
-
}), _el$
|
|
1536
|
+
}), _el$15, _co$4);
|
|
1568
1537
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
1569
1538
|
return _el$;
|
|
1570
1539
|
})();
|
|
@@ -1740,16 +1709,23 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1740
1709
|
const us = Symbol("look");
|
|
1741
1710
|
const container = (() => {
|
|
1742
1711
|
var _el$ = $52FdA$solidjsweb.getNextElement($47e3c3102c78121b$var$_tmpl$);
|
|
1743
|
-
$52FdA$solidjsweb.addEventListener(_el$, "click", $52FdA$depictaiutilishared.catchify(
|
|
1712
|
+
$52FdA$solidjsweb.addEventListener(_el$, "click", $52FdA$depictaiutilishared.catchify(_ref2 => {
|
|
1713
|
+
let {
|
|
1714
|
+
target: target
|
|
1715
|
+
} = _ref2;
|
|
1716
|
+
// Don't toggle when clicking on the links
|
|
1717
|
+
if (target.matches("a") || target.closest("a")) return;
|
|
1718
|
+
setUserWantsExpanded(prev => !prev);
|
|
1719
|
+
}), true);
|
|
1744
1720
|
_el$.classList.toggle("placeholder", !!!display_);
|
|
1745
1721
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
1746
1722
|
return _el$;
|
|
1747
1723
|
})();
|
|
1748
1724
|
const containerWidth_ = $c387d7f1d9fb66c0$export$ebdc3711f7e02ccd(container);
|
|
1749
|
-
const clickHandler = $52FdA$depictaiutilishared.catchify(
|
|
1725
|
+
const clickHandler = $52FdA$depictaiutilishared.catchify(_ref3 => {
|
|
1750
1726
|
let {
|
|
1751
1727
|
target: target
|
|
1752
|
-
} =
|
|
1728
|
+
} = _ref3;
|
|
1753
1729
|
if (target !== container && !container.contains(target))
|
|
1754
1730
|
// When clicking outside the look, close it
|
|
1755
1731
|
setUserWantsExpanded(false);
|
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.1";
|
|
14
14
|
declare const LISTING_ID = "listingId";
|
|
15
15
|
declare const EXTERNAL_ID = "externalId";
|
|
16
16
|
type ScrollRestorationData = {
|
|
@@ -1377,7 +1377,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1377
1377
|
* Open the modal with support for alignment.
|
|
1378
1378
|
* @returns {void}
|
|
1379
1379
|
*/
|
|
1380
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1380
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1381
1381
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1382
1382
|
export interface PageReplacer {
|
|
1383
1383
|
readonly render_: () => Node_Array;
|
|
@@ -1455,5 +1455,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1455
1455
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1456
1456
|
layout?: PossibleLayout;
|
|
1457
1457
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1458
|
-
}): import("@depict-ai/utilishared
|
|
1458
|
+
}): import("@depict-ai/utilishared").Node_Array;
|
|
1459
1459
|
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.3.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.1";
|
|
14
14
|
const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
|
|
15
15
|
const cols_at_size = [];
|
|
16
16
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -1273,7 +1273,7 @@ function $98688279b9059f50$export$9d4a4b669b1929ab(props) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
}));
|
|
1275
1275
|
}
|
|
1276
|
-
var $0c5b1686f971e5e7$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=img-wrapper
|
|
1276
|
+
var $0c5b1686f971e5e7$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=img-wrapper>`),
|
|
1277
1277
|
$0c5b1686f971e5e7$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<span class="d-price original">`),
|
|
1278
1278
|
$0c5b1686f971e5e7$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=right-part><div class=text-container><span class="d-title line-clamp"></span><span class=d-price></span><!$><!/></div><!$><!/>`),
|
|
1279
1279
|
$0c5b1686f971e5e7$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<a class=look-item><!$><!/><!$><!/>`);
|
|
@@ -1290,17 +1290,9 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1290
1290
|
const display = display_();
|
|
1291
1291
|
return display === null || display === void 0 ? void 0 : display.variant_displays[display === null || display === void 0 ? void 0 : display.variant_index];
|
|
1292
1292
|
});
|
|
1293
|
-
const imageUrls = () => {
|
|
1294
|
-
var _variantToUse;
|
|
1295
|
-
return (_variantToUse = variantToUse()) === null || _variantToUse === void 0 ? void 0 : _variantToUse.image_urls;
|
|
1296
|
-
};
|
|
1297
1293
|
const imageUrl = $8tj43$createMemo(() => {
|
|
1298
|
-
var
|
|
1299
|
-
return (
|
|
1300
|
-
});
|
|
1301
|
-
const secondaryImageUrl = $8tj43$createMemo(() => {
|
|
1302
|
-
var _imageUrls2;
|
|
1303
|
-
return (_imageUrls2 = imageUrls()) === null || _imageUrls2 === void 0 ? void 0 : _imageUrls2[1];
|
|
1294
|
+
var _variantToUse, _variantToUse$image_u;
|
|
1295
|
+
return (_variantToUse = variantToUse()) === null || _variantToUse === void 0 ? void 0 : (_variantToUse$image_u = _variantToUse.image_urls) === null || _variantToUse$image_u === void 0 ? void 0 : _variantToUse$image_u[0];
|
|
1304
1296
|
});
|
|
1305
1297
|
const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
|
|
1306
1298
|
const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $8tj43$createSignal($8tj43$untrack(isExpanded_));
|
|
@@ -1317,10 +1309,10 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1317
1309
|
const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
|
|
1318
1310
|
return (() => {
|
|
1319
1311
|
var _el$ = $8tj43$getNextElement($0c5b1686f971e5e7$var$_tmpl$4),
|
|
1320
|
-
_el$
|
|
1321
|
-
[_el$
|
|
1322
|
-
_el$
|
|
1323
|
-
[_el$
|
|
1312
|
+
_el$12 = _el$.firstChild,
|
|
1313
|
+
[_el$13, _co$3] = $8tj43$getNextMarker(_el$12.nextSibling),
|
|
1314
|
+
_el$14 = _el$13.nextSibling,
|
|
1315
|
+
[_el$15, _co$4] = $8tj43$getNextMarker(_el$14.nextSibling);
|
|
1324
1316
|
var _ref$ = outerRef_;
|
|
1325
1317
|
typeof _ref$ === "function" ? $8tj43$use(_ref$, _el$) : outerRef_ = _el$;
|
|
1326
1318
|
$8tj43$spread(_el$, $8tj43$mergeProps(() => {
|
|
@@ -1337,11 +1329,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1337
1329
|
});
|
|
1338
1330
|
},
|
|
1339
1331
|
get children() {
|
|
1340
|
-
var _el$2 = $8tj43$getNextElement($0c5b1686f971e5e7$var$_tmpl$)
|
|
1341
|
-
_el$3 = _el$2.firstChild,
|
|
1342
|
-
[_el$4, _co$] = $8tj43$getNextMarker(_el$3.nextSibling),
|
|
1343
|
-
_el$5 = _el$4.nextSibling,
|
|
1344
|
-
[_el$6, _co$2] = $8tj43$getNextMarker(_el$5.nextSibling);
|
|
1332
|
+
var _el$2 = $8tj43$getNextElement($0c5b1686f971e5e7$var$_tmpl$);
|
|
1345
1333
|
$8tj43$insert(_el$2, $8tj43$createComponent((0, $8tj43$Show), {
|
|
1346
1334
|
get when() {
|
|
1347
1335
|
return imageUrl();
|
|
@@ -1364,42 +1352,23 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1364
1352
|
}
|
|
1365
1353
|
});
|
|
1366
1354
|
}
|
|
1367
|
-
})
|
|
1368
|
-
$8tj43$insert(_el$2, $8tj43$createComponent((0, $8tj43$Show), {
|
|
1369
|
-
get when() {
|
|
1370
|
-
return secondaryImageUrl();
|
|
1371
|
-
},
|
|
1372
|
-
get children() {
|
|
1373
|
-
return $8tj43$createComponent((0, $98688279b9059f50$export$9d4a4b669b1929ab), {
|
|
1374
|
-
get src() {
|
|
1375
|
-
return secondaryImageUrl();
|
|
1376
|
-
},
|
|
1377
|
-
get aspectRatio() {
|
|
1378
|
-
return isExpanded_() ? 0.75 : 1;
|
|
1379
|
-
},
|
|
1380
|
-
"class": "secondary",
|
|
1381
|
-
get autoAdjustAspectRatio() {
|
|
1382
|
-
return isExpanded_() ? "smoothed" : false;
|
|
1383
|
-
}
|
|
1384
|
-
});
|
|
1385
|
-
}
|
|
1386
|
-
}), _el$6, _co$2);
|
|
1355
|
+
}));
|
|
1387
1356
|
return _el$2;
|
|
1388
1357
|
}
|
|
1389
|
-
}), _el$
|
|
1358
|
+
}), _el$13, _co$3);
|
|
1390
1359
|
$8tj43$insert(_el$, $8tj43$createComponent((0, $8tj43$Show), {
|
|
1391
1360
|
get when() {
|
|
1392
1361
|
return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : isExpanded_()) || animationIsRunning();
|
|
1393
1362
|
},
|
|
1394
1363
|
get children() {
|
|
1395
|
-
var _el$
|
|
1396
|
-
_el$
|
|
1397
|
-
_el$
|
|
1398
|
-
_el$
|
|
1399
|
-
_el$
|
|
1400
|
-
[_el$
|
|
1401
|
-
_el$
|
|
1402
|
-
[_el$
|
|
1364
|
+
var _el$3 = $8tj43$getNextElement($0c5b1686f971e5e7$var$_tmpl$3),
|
|
1365
|
+
_el$4 = _el$3.firstChild,
|
|
1366
|
+
_el$5 = _el$4.firstChild,
|
|
1367
|
+
_el$6 = _el$5.nextSibling,
|
|
1368
|
+
_el$8 = _el$6.nextSibling,
|
|
1369
|
+
[_el$9, _co$] = $8tj43$getNextMarker(_el$8.nextSibling),
|
|
1370
|
+
_el$10 = _el$4.nextSibling,
|
|
1371
|
+
[_el$11, _co$2] = $8tj43$getNextMarker(_el$10.nextSibling);
|
|
1403
1372
|
$8tj43$use(element => {
|
|
1404
1373
|
const owner = $8tj43$getOwner();
|
|
1405
1374
|
$8tj43$onCleanup((0, $8tj43$observer).onexists(element, _ref2 => {
|
|
@@ -1432,49 +1401,49 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1432
1401
|
for (const ev of ["cancel", "finish"]) textContainerAnimation.addEventListener(ev, $8tj43$catchify(() => setAnimationIsRunning(false)));
|
|
1433
1402
|
disconnector();
|
|
1434
1403
|
}));
|
|
1435
|
-
}, _el$
|
|
1436
|
-
$8tj43$insert(_el$
|
|
1404
|
+
}, _el$3);
|
|
1405
|
+
$8tj43$insert(_el$5, () => {
|
|
1437
1406
|
var _variantToUse$title, _variantToUse5;
|
|
1438
1407
|
return (_variantToUse$title = (_variantToUse5 = variantToUse()) === null || _variantToUse5 === void 0 ? void 0 : _variantToUse5.title) !== null && _variantToUse$title !== void 0 ? _variantToUse$title : $8tj43$createComponent((0, $ceafb6fb91c6f394$export$89c6019e4baa40b1), {
|
|
1439
1408
|
height: "1em",
|
|
1440
1409
|
width: "20ch"
|
|
1441
1410
|
});
|
|
1442
1411
|
});
|
|
1443
|
-
$8tj43$insert(_el$
|
|
1412
|
+
$8tj43$insert(_el$6, (() => {
|
|
1444
1413
|
var _c$ = $8tj43$memo(() => !!(!variantToUse() || salePrice.loading));
|
|
1445
1414
|
return () => _c$() ? $8tj43$createComponent((0, $ceafb6fb91c6f394$export$89c6019e4baa40b1), {
|
|
1446
1415
|
height: "1em",
|
|
1447
1416
|
width: "20ch"
|
|
1448
1417
|
}) : salePrice();
|
|
1449
1418
|
})());
|
|
1450
|
-
$8tj43$insert(_el$
|
|
1419
|
+
$8tj43$insert(_el$4, $8tj43$createComponent((0, $8tj43$Show), {
|
|
1451
1420
|
get when() {
|
|
1452
1421
|
return isOnSale();
|
|
1453
1422
|
},
|
|
1454
1423
|
get children() {
|
|
1455
|
-
var _el$
|
|
1456
|
-
$8tj43$insert(_el$
|
|
1424
|
+
var _el$7 = $8tj43$getNextElement($0c5b1686f971e5e7$var$_tmpl$2);
|
|
1425
|
+
$8tj43$insert(_el$7, (() => {
|
|
1457
1426
|
var _c$2 = $8tj43$memo(() => !!(!variantToUse() || originalPrice.loading));
|
|
1458
1427
|
return () => _c$2() ? $8tj43$createComponent((0, $ceafb6fb91c6f394$export$89c6019e4baa40b1), {
|
|
1459
1428
|
height: "1em",
|
|
1460
1429
|
width: "20ch"
|
|
1461
1430
|
}) : originalPrice();
|
|
1462
1431
|
})());
|
|
1463
|
-
return _el$
|
|
1432
|
+
return _el$7;
|
|
1464
1433
|
}
|
|
1465
|
-
}), _el$
|
|
1466
|
-
$8tj43$insert(_el$
|
|
1434
|
+
}), _el$9, _co$);
|
|
1435
|
+
$8tj43$insert(_el$3, $8tj43$createComponent((0, $8tj43$Show), {
|
|
1467
1436
|
when: FavoriteButton_,
|
|
1468
1437
|
get children() {
|
|
1469
1438
|
return $8tj43$createComponent(FavoriteButton, {
|
|
1470
1439
|
display_: display_
|
|
1471
1440
|
});
|
|
1472
1441
|
}
|
|
1473
|
-
}), _el$
|
|
1474
|
-
$8tj43$effect(() => _el$
|
|
1475
|
-
return _el$
|
|
1442
|
+
}), _el$11, _co$2);
|
|
1443
|
+
$8tj43$effect(() => _el$6.classList.toggle("sale", !!isOnSale()));
|
|
1444
|
+
return _el$3;
|
|
1476
1445
|
}
|
|
1477
|
-
}), _el$
|
|
1446
|
+
}), _el$15, _co$4);
|
|
1478
1447
|
$8tj43$runHydrationEvents();
|
|
1479
1448
|
return _el$;
|
|
1480
1449
|
})();
|
|
@@ -1650,16 +1619,23 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
|
|
|
1650
1619
|
const us = Symbol("look");
|
|
1651
1620
|
const container = (() => {
|
|
1652
1621
|
var _el$ = $8tj43$getNextElement($697d8713dc82b9ab$var$_tmpl$);
|
|
1653
|
-
$8tj43$addEventListener(_el$, "click", $8tj43$catchify(
|
|
1622
|
+
$8tj43$addEventListener(_el$, "click", $8tj43$catchify(_ref2 => {
|
|
1623
|
+
let {
|
|
1624
|
+
target: target
|
|
1625
|
+
} = _ref2;
|
|
1626
|
+
// Don't toggle when clicking on the links
|
|
1627
|
+
if (target.matches("a") || target.closest("a")) return;
|
|
1628
|
+
setUserWantsExpanded(prev => !prev);
|
|
1629
|
+
}), true);
|
|
1654
1630
|
_el$.classList.toggle("placeholder", !!!display_);
|
|
1655
1631
|
$8tj43$runHydrationEvents();
|
|
1656
1632
|
return _el$;
|
|
1657
1633
|
})();
|
|
1658
1634
|
const containerWidth_ = $fc830a7ee59416ef$export$ebdc3711f7e02ccd(container);
|
|
1659
|
-
const clickHandler = $8tj43$catchify(
|
|
1635
|
+
const clickHandler = $8tj43$catchify(_ref3 => {
|
|
1660
1636
|
let {
|
|
1661
1637
|
target: target
|
|
1662
|
-
} =
|
|
1638
|
+
} = _ref3;
|
|
1663
1639
|
if (target !== container && !container.contains(target))
|
|
1664
1640
|
// When clicking outside the look, close it
|
|
1665
1641
|
setUserWantsExpanded(false);
|
package/latest/index.cjs
CHANGED
|
@@ -94,7 +94,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
94
94
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
95
95
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
96
96
|
/*! Depict.ai search and product listing SDK */
|
|
97
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.3.
|
|
97
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.3.1";
|
|
98
98
|
const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
|
|
99
99
|
const cols_at_size = [];
|
|
100
100
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -1298,7 +1298,7 @@ function $d212a67662c5cf38$export$9d4a4b669b1929ab(props) {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
}));
|
|
1300
1300
|
}
|
|
1301
|
-
var $1ae437d7d388a66e$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=img-wrapper
|
|
1301
|
+
var $1ae437d7d388a66e$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=img-wrapper>`),
|
|
1302
1302
|
$1ae437d7d388a66e$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<span class="d-price original">`),
|
|
1303
1303
|
$1ae437d7d388a66e$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=right-part><div class=text-container><span class="d-title line-clamp"></span><span class=d-price></span><!$><!/></div><!$><!/>`),
|
|
1304
1304
|
$1ae437d7d388a66e$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<a class=look-item><!$><!/><!$><!/>`);
|
|
@@ -1314,9 +1314,7 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
|
|
|
1314
1314
|
const display = display_();
|
|
1315
1315
|
return display?.variant_displays[display?.variant_index];
|
|
1316
1316
|
});
|
|
1317
|
-
const
|
|
1318
|
-
const imageUrl = $gVhhF$solidjs.createMemo(() => imageUrls()?.[0]);
|
|
1319
|
-
const secondaryImageUrl = $gVhhF$solidjs.createMemo(() => imageUrls()?.[1]);
|
|
1317
|
+
const imageUrl = $gVhhF$solidjs.createMemo(() => variantToUse()?.image_urls?.[0]);
|
|
1320
1318
|
const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
|
|
1321
1319
|
const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $gVhhF$solidjs.createSignal($gVhhF$solidjs.untrack(isExpanded_));
|
|
1322
1320
|
const [animationEffectExists, setAnimationEffectExists] = $gVhhF$solidjs.createSignal(false);
|
|
@@ -1326,10 +1324,10 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
|
|
|
1326
1324
|
const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
|
|
1327
1325
|
return (() => {
|
|
1328
1326
|
var _el$ = $gVhhF$solidjsweb.getNextElement($1ae437d7d388a66e$var$_tmpl$4),
|
|
1329
|
-
_el$
|
|
1330
|
-
[_el$
|
|
1331
|
-
_el$
|
|
1332
|
-
[_el$
|
|
1327
|
+
_el$12 = _el$.firstChild,
|
|
1328
|
+
[_el$13, _co$3] = $gVhhF$solidjsweb.getNextMarker(_el$12.nextSibling),
|
|
1329
|
+
_el$14 = _el$13.nextSibling,
|
|
1330
|
+
[_el$15, _co$4] = $gVhhF$solidjsweb.getNextMarker(_el$14.nextSibling);
|
|
1333
1331
|
var _ref$ = outerRef_;
|
|
1334
1332
|
typeof _ref$ === "function" ? $gVhhF$solidjsweb.use(_ref$, _el$) : outerRef_ = _el$;
|
|
1335
1333
|
$gVhhF$solidjsweb.spread(_el$, $gVhhF$solidjsweb.mergeProps(() => isExpanded_() && !animationIsRunning() ? {
|
|
@@ -1343,11 +1341,7 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
|
|
|
1343
1341
|
});
|
|
1344
1342
|
},
|
|
1345
1343
|
get children() {
|
|
1346
|
-
var _el$2 = $gVhhF$solidjsweb.getNextElement($1ae437d7d388a66e$var$_tmpl$)
|
|
1347
|
-
_el$3 = _el$2.firstChild,
|
|
1348
|
-
[_el$4, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$3.nextSibling),
|
|
1349
|
-
_el$5 = _el$4.nextSibling,
|
|
1350
|
-
[_el$6, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$5.nextSibling);
|
|
1344
|
+
var _el$2 = $gVhhF$solidjsweb.getNextElement($1ae437d7d388a66e$var$_tmpl$);
|
|
1351
1345
|
$gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
1352
1346
|
get when() {
|
|
1353
1347
|
return imageUrl();
|
|
@@ -1370,42 +1364,23 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
|
|
|
1370
1364
|
}
|
|
1371
1365
|
});
|
|
1372
1366
|
}
|
|
1373
|
-
})
|
|
1374
|
-
$gVhhF$solidjsweb.insert(_el$2, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
1375
|
-
get when() {
|
|
1376
|
-
return secondaryImageUrl();
|
|
1377
|
-
},
|
|
1378
|
-
get children() {
|
|
1379
|
-
return $gVhhF$solidjsweb.createComponent((0, $d212a67662c5cf38$export$9d4a4b669b1929ab), {
|
|
1380
|
-
get src() {
|
|
1381
|
-
return secondaryImageUrl();
|
|
1382
|
-
},
|
|
1383
|
-
get aspectRatio() {
|
|
1384
|
-
return isExpanded_() ? 0.75 : 1;
|
|
1385
|
-
},
|
|
1386
|
-
"class": "secondary",
|
|
1387
|
-
get autoAdjustAspectRatio() {
|
|
1388
|
-
return isExpanded_() ? "smoothed" : false;
|
|
1389
|
-
}
|
|
1390
|
-
});
|
|
1391
|
-
}
|
|
1392
|
-
}), _el$6, _co$2);
|
|
1367
|
+
}));
|
|
1393
1368
|
return _el$2;
|
|
1394
1369
|
}
|
|
1395
|
-
}), _el$
|
|
1370
|
+
}), _el$13, _co$3);
|
|
1396
1371
|
$gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
1397
1372
|
get when() {
|
|
1398
1373
|
return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : isExpanded_()) || animationIsRunning();
|
|
1399
1374
|
},
|
|
1400
1375
|
get children() {
|
|
1401
|
-
var _el$
|
|
1402
|
-
_el$
|
|
1403
|
-
_el$
|
|
1404
|
-
_el$
|
|
1405
|
-
_el$
|
|
1406
|
-
[_el$
|
|
1407
|
-
_el$
|
|
1408
|
-
[_el$
|
|
1376
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($1ae437d7d388a66e$var$_tmpl$3),
|
|
1377
|
+
_el$4 = _el$3.firstChild,
|
|
1378
|
+
_el$5 = _el$4.firstChild,
|
|
1379
|
+
_el$6 = _el$5.nextSibling,
|
|
1380
|
+
_el$8 = _el$6.nextSibling,
|
|
1381
|
+
[_el$9, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$8.nextSibling),
|
|
1382
|
+
_el$10 = _el$4.nextSibling,
|
|
1383
|
+
[_el$11, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$10.nextSibling);
|
|
1409
1384
|
$gVhhF$solidjsweb.use(element => {
|
|
1410
1385
|
const owner = $gVhhF$solidjs.getOwner();
|
|
1411
1386
|
$gVhhF$solidjs.onCleanup((0, $gVhhF$depictaiutilishared.observer).onexists(element, ({
|
|
@@ -1437,46 +1412,46 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
|
|
|
1437
1412
|
for (const ev of ["cancel", "finish"]) textContainerAnimation.addEventListener(ev, $gVhhF$depictaiutilishared.catchify(() => setAnimationIsRunning(false)));
|
|
1438
1413
|
disconnector();
|
|
1439
1414
|
}));
|
|
1440
|
-
}, _el$
|
|
1441
|
-
$gVhhF$solidjsweb.insert(_el$
|
|
1415
|
+
}, _el$3);
|
|
1416
|
+
$gVhhF$solidjsweb.insert(_el$5, () => variantToUse()?.title ?? $gVhhF$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
|
|
1442
1417
|
height: "1em",
|
|
1443
1418
|
width: "20ch"
|
|
1444
1419
|
}));
|
|
1445
|
-
$gVhhF$solidjsweb.insert(_el$
|
|
1420
|
+
$gVhhF$solidjsweb.insert(_el$6, (() => {
|
|
1446
1421
|
var _c$ = $gVhhF$solidjsweb.memo(() => !!(!variantToUse() || salePrice.loading));
|
|
1447
1422
|
return () => _c$() ? $gVhhF$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
|
|
1448
1423
|
height: "1em",
|
|
1449
1424
|
width: "20ch"
|
|
1450
1425
|
}) : salePrice();
|
|
1451
1426
|
})());
|
|
1452
|
-
$gVhhF$solidjsweb.insert(_el$
|
|
1427
|
+
$gVhhF$solidjsweb.insert(_el$4, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
1453
1428
|
get when() {
|
|
1454
1429
|
return isOnSale();
|
|
1455
1430
|
},
|
|
1456
1431
|
get children() {
|
|
1457
|
-
var _el$
|
|
1458
|
-
$gVhhF$solidjsweb.insert(_el$
|
|
1432
|
+
var _el$7 = $gVhhF$solidjsweb.getNextElement($1ae437d7d388a66e$var$_tmpl$2);
|
|
1433
|
+
$gVhhF$solidjsweb.insert(_el$7, (() => {
|
|
1459
1434
|
var _c$2 = $gVhhF$solidjsweb.memo(() => !!(!variantToUse() || originalPrice.loading));
|
|
1460
1435
|
return () => _c$2() ? $gVhhF$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
|
|
1461
1436
|
height: "1em",
|
|
1462
1437
|
width: "20ch"
|
|
1463
1438
|
}) : originalPrice();
|
|
1464
1439
|
})());
|
|
1465
|
-
return _el$
|
|
1440
|
+
return _el$7;
|
|
1466
1441
|
}
|
|
1467
|
-
}), _el$
|
|
1468
|
-
$gVhhF$solidjsweb.insert(_el$
|
|
1442
|
+
}), _el$9, _co$);
|
|
1443
|
+
$gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
1469
1444
|
when: FavoriteButton_,
|
|
1470
1445
|
get children() {
|
|
1471
1446
|
return $gVhhF$solidjsweb.createComponent(FavoriteButton, {
|
|
1472
1447
|
display_: display_
|
|
1473
1448
|
});
|
|
1474
1449
|
}
|
|
1475
|
-
}), _el$
|
|
1476
|
-
$gVhhF$solidjsweb.effect(() => _el$
|
|
1477
|
-
return _el$
|
|
1450
|
+
}), _el$11, _co$2);
|
|
1451
|
+
$gVhhF$solidjsweb.effect(() => _el$6.classList.toggle("sale", !!isOnSale()));
|
|
1452
|
+
return _el$3;
|
|
1478
1453
|
}
|
|
1479
|
-
}), _el$
|
|
1454
|
+
}), _el$15, _co$4);
|
|
1480
1455
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
1481
1456
|
return _el$;
|
|
1482
1457
|
})();
|
|
@@ -1650,7 +1625,13 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
|
1650
1625
|
const us = Symbol("look");
|
|
1651
1626
|
const container = (() => {
|
|
1652
1627
|
var _el$ = $gVhhF$solidjsweb.getNextElement($ad882bbe664dbd53$var$_tmpl$);
|
|
1653
|
-
$gVhhF$solidjsweb.addEventListener(_el$, "click", $gVhhF$depictaiutilishared.catchify((
|
|
1628
|
+
$gVhhF$solidjsweb.addEventListener(_el$, "click", $gVhhF$depictaiutilishared.catchify(({
|
|
1629
|
+
target: target
|
|
1630
|
+
}) => {
|
|
1631
|
+
// Don't toggle when clicking on the links
|
|
1632
|
+
if (target.matches("a") || target.closest("a")) return;
|
|
1633
|
+
setUserWantsExpanded(prev => !prev);
|
|
1634
|
+
}), true);
|
|
1654
1635
|
_el$.classList.toggle("placeholder", !!!display_);
|
|
1655
1636
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
1656
1637
|
return _el$;
|
package/latest/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.1";
|
|
14
14
|
declare const LISTING_ID = "listingId";
|
|
15
15
|
declare const EXTERNAL_ID = "externalId";
|
|
16
16
|
type ScrollRestorationData = {
|
|
@@ -1377,7 +1377,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1377
1377
|
* Open the modal with support for alignment.
|
|
1378
1378
|
* @returns {void}
|
|
1379
1379
|
*/
|
|
1380
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1380
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1381
1381
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1382
1382
|
export interface PageReplacer {
|
|
1383
1383
|
readonly render_: () => Node_Array;
|
|
@@ -1455,5 +1455,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1455
1455
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1456
1456
|
layout?: PossibleLayout;
|
|
1457
1457
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1458
|
-
}): import("@depict-ai/utilishared
|
|
1458
|
+
}): import("@depict-ai/utilishared").Node_Array;
|
|
1459
1459
|
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.3.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.3.1";
|
|
11
11
|
const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
|
|
12
12
|
const cols_at_size = [];
|
|
13
13
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -1211,7 +1211,7 @@ function $70bb27cc6be01fc7$export$9d4a4b669b1929ab(props) {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
}));
|
|
1213
1213
|
}
|
|
1214
|
-
var $5a6c386e1bde5665$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=img-wrapper
|
|
1214
|
+
var $5a6c386e1bde5665$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=img-wrapper>`),
|
|
1215
1215
|
$5a6c386e1bde5665$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<span class="d-price original">`),
|
|
1216
1216
|
$5a6c386e1bde5665$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=right-part><div class=text-container><span class="d-title line-clamp"></span><span class=d-price></span><!$><!/></div><!$><!/>`),
|
|
1217
1217
|
$5a6c386e1bde5665$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<a class=look-item><!$><!/><!$><!/>`);
|
|
@@ -1227,9 +1227,7 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
|
|
|
1227
1227
|
const display = display_();
|
|
1228
1228
|
return display?.variant_displays[display?.variant_index];
|
|
1229
1229
|
});
|
|
1230
|
-
const
|
|
1231
|
-
const imageUrl = $9HbP8$createMemo(() => imageUrls()?.[0]);
|
|
1232
|
-
const secondaryImageUrl = $9HbP8$createMemo(() => imageUrls()?.[1]);
|
|
1230
|
+
const imageUrl = $9HbP8$createMemo(() => variantToUse()?.image_urls?.[0]);
|
|
1233
1231
|
const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
|
|
1234
1232
|
const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $9HbP8$createSignal($9HbP8$untrack(isExpanded_));
|
|
1235
1233
|
const [animationEffectExists, setAnimationEffectExists] = $9HbP8$createSignal(false);
|
|
@@ -1239,10 +1237,10 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
|
|
|
1239
1237
|
const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
|
|
1240
1238
|
return (() => {
|
|
1241
1239
|
var _el$ = $9HbP8$getNextElement($5a6c386e1bde5665$var$_tmpl$4),
|
|
1242
|
-
_el$
|
|
1243
|
-
[_el$
|
|
1244
|
-
_el$
|
|
1245
|
-
[_el$
|
|
1240
|
+
_el$12 = _el$.firstChild,
|
|
1241
|
+
[_el$13, _co$3] = $9HbP8$getNextMarker(_el$12.nextSibling),
|
|
1242
|
+
_el$14 = _el$13.nextSibling,
|
|
1243
|
+
[_el$15, _co$4] = $9HbP8$getNextMarker(_el$14.nextSibling);
|
|
1246
1244
|
var _ref$ = outerRef_;
|
|
1247
1245
|
typeof _ref$ === "function" ? $9HbP8$use(_ref$, _el$) : outerRef_ = _el$;
|
|
1248
1246
|
$9HbP8$spread(_el$, $9HbP8$mergeProps(() => isExpanded_() && !animationIsRunning() ? {
|
|
@@ -1256,11 +1254,7 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
|
|
|
1256
1254
|
});
|
|
1257
1255
|
},
|
|
1258
1256
|
get children() {
|
|
1259
|
-
var _el$2 = $9HbP8$getNextElement($5a6c386e1bde5665$var$_tmpl$)
|
|
1260
|
-
_el$3 = _el$2.firstChild,
|
|
1261
|
-
[_el$4, _co$] = $9HbP8$getNextMarker(_el$3.nextSibling),
|
|
1262
|
-
_el$5 = _el$4.nextSibling,
|
|
1263
|
-
[_el$6, _co$2] = $9HbP8$getNextMarker(_el$5.nextSibling);
|
|
1257
|
+
var _el$2 = $9HbP8$getNextElement($5a6c386e1bde5665$var$_tmpl$);
|
|
1264
1258
|
$9HbP8$insert(_el$2, $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
1265
1259
|
get when() {
|
|
1266
1260
|
return imageUrl();
|
|
@@ -1283,42 +1277,23 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
|
|
|
1283
1277
|
}
|
|
1284
1278
|
});
|
|
1285
1279
|
}
|
|
1286
|
-
})
|
|
1287
|
-
$9HbP8$insert(_el$2, $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
1288
|
-
get when() {
|
|
1289
|
-
return secondaryImageUrl();
|
|
1290
|
-
},
|
|
1291
|
-
get children() {
|
|
1292
|
-
return $9HbP8$createComponent((0, $70bb27cc6be01fc7$export$9d4a4b669b1929ab), {
|
|
1293
|
-
get src() {
|
|
1294
|
-
return secondaryImageUrl();
|
|
1295
|
-
},
|
|
1296
|
-
get aspectRatio() {
|
|
1297
|
-
return isExpanded_() ? 0.75 : 1;
|
|
1298
|
-
},
|
|
1299
|
-
"class": "secondary",
|
|
1300
|
-
get autoAdjustAspectRatio() {
|
|
1301
|
-
return isExpanded_() ? "smoothed" : false;
|
|
1302
|
-
}
|
|
1303
|
-
});
|
|
1304
|
-
}
|
|
1305
|
-
}), _el$6, _co$2);
|
|
1280
|
+
}));
|
|
1306
1281
|
return _el$2;
|
|
1307
1282
|
}
|
|
1308
|
-
}), _el$
|
|
1283
|
+
}), _el$13, _co$3);
|
|
1309
1284
|
$9HbP8$insert(_el$, $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
1310
1285
|
get when() {
|
|
1311
1286
|
return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : isExpanded_()) || animationIsRunning();
|
|
1312
1287
|
},
|
|
1313
1288
|
get children() {
|
|
1314
|
-
var _el$
|
|
1315
|
-
_el$
|
|
1316
|
-
_el$
|
|
1317
|
-
_el$
|
|
1318
|
-
_el$
|
|
1319
|
-
[_el$
|
|
1320
|
-
_el$
|
|
1321
|
-
[_el$
|
|
1289
|
+
var _el$3 = $9HbP8$getNextElement($5a6c386e1bde5665$var$_tmpl$3),
|
|
1290
|
+
_el$4 = _el$3.firstChild,
|
|
1291
|
+
_el$5 = _el$4.firstChild,
|
|
1292
|
+
_el$6 = _el$5.nextSibling,
|
|
1293
|
+
_el$8 = _el$6.nextSibling,
|
|
1294
|
+
[_el$9, _co$] = $9HbP8$getNextMarker(_el$8.nextSibling),
|
|
1295
|
+
_el$10 = _el$4.nextSibling,
|
|
1296
|
+
[_el$11, _co$2] = $9HbP8$getNextMarker(_el$10.nextSibling);
|
|
1322
1297
|
$9HbP8$use(element => {
|
|
1323
1298
|
const owner = $9HbP8$getOwner();
|
|
1324
1299
|
$9HbP8$onCleanup((0, $9HbP8$observer).onexists(element, ({
|
|
@@ -1350,46 +1325,46 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
|
|
|
1350
1325
|
for (const ev of ["cancel", "finish"]) textContainerAnimation.addEventListener(ev, $9HbP8$catchify(() => setAnimationIsRunning(false)));
|
|
1351
1326
|
disconnector();
|
|
1352
1327
|
}));
|
|
1353
|
-
}, _el$
|
|
1354
|
-
$9HbP8$insert(_el$
|
|
1328
|
+
}, _el$3);
|
|
1329
|
+
$9HbP8$insert(_el$5, () => variantToUse()?.title ?? $9HbP8$createComponent((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
|
|
1355
1330
|
height: "1em",
|
|
1356
1331
|
width: "20ch"
|
|
1357
1332
|
}));
|
|
1358
|
-
$9HbP8$insert(_el$
|
|
1333
|
+
$9HbP8$insert(_el$6, (() => {
|
|
1359
1334
|
var _c$ = $9HbP8$memo(() => !!(!variantToUse() || salePrice.loading));
|
|
1360
1335
|
return () => _c$() ? $9HbP8$createComponent((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
|
|
1361
1336
|
height: "1em",
|
|
1362
1337
|
width: "20ch"
|
|
1363
1338
|
}) : salePrice();
|
|
1364
1339
|
})());
|
|
1365
|
-
$9HbP8$insert(_el$
|
|
1340
|
+
$9HbP8$insert(_el$4, $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
1366
1341
|
get when() {
|
|
1367
1342
|
return isOnSale();
|
|
1368
1343
|
},
|
|
1369
1344
|
get children() {
|
|
1370
|
-
var _el$
|
|
1371
|
-
$9HbP8$insert(_el$
|
|
1345
|
+
var _el$7 = $9HbP8$getNextElement($5a6c386e1bde5665$var$_tmpl$2);
|
|
1346
|
+
$9HbP8$insert(_el$7, (() => {
|
|
1372
1347
|
var _c$2 = $9HbP8$memo(() => !!(!variantToUse() || originalPrice.loading));
|
|
1373
1348
|
return () => _c$2() ? $9HbP8$createComponent((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
|
|
1374
1349
|
height: "1em",
|
|
1375
1350
|
width: "20ch"
|
|
1376
1351
|
}) : originalPrice();
|
|
1377
1352
|
})());
|
|
1378
|
-
return _el$
|
|
1353
|
+
return _el$7;
|
|
1379
1354
|
}
|
|
1380
|
-
}), _el$
|
|
1381
|
-
$9HbP8$insert(_el$
|
|
1355
|
+
}), _el$9, _co$);
|
|
1356
|
+
$9HbP8$insert(_el$3, $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
1382
1357
|
when: FavoriteButton_,
|
|
1383
1358
|
get children() {
|
|
1384
1359
|
return $9HbP8$createComponent(FavoriteButton, {
|
|
1385
1360
|
display_: display_
|
|
1386
1361
|
});
|
|
1387
1362
|
}
|
|
1388
|
-
}), _el$
|
|
1389
|
-
$9HbP8$effect(() => _el$
|
|
1390
|
-
return _el$
|
|
1363
|
+
}), _el$11, _co$2);
|
|
1364
|
+
$9HbP8$effect(() => _el$6.classList.toggle("sale", !!isOnSale()));
|
|
1365
|
+
return _el$3;
|
|
1391
1366
|
}
|
|
1392
|
-
}), _el$
|
|
1367
|
+
}), _el$15, _co$4);
|
|
1393
1368
|
$9HbP8$runHydrationEvents();
|
|
1394
1369
|
return _el$;
|
|
1395
1370
|
})();
|
|
@@ -1563,7 +1538,13 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
|
|
|
1563
1538
|
const us = Symbol("look");
|
|
1564
1539
|
const container = (() => {
|
|
1565
1540
|
var _el$ = $9HbP8$getNextElement($28ee4f7db3cc44b8$var$_tmpl$);
|
|
1566
|
-
$9HbP8$addEventListener(_el$, "click", $9HbP8$catchify((
|
|
1541
|
+
$9HbP8$addEventListener(_el$, "click", $9HbP8$catchify(({
|
|
1542
|
+
target: target
|
|
1543
|
+
}) => {
|
|
1544
|
+
// Don't toggle when clicking on the links
|
|
1545
|
+
if (target.matches("a") || target.closest("a")) return;
|
|
1546
|
+
setUserWantsExpanded(prev => !prev);
|
|
1547
|
+
}), true);
|
|
1567
1548
|
_el$.classList.toggle("placeholder", !!!display_);
|
|
1568
1549
|
$9HbP8$runHydrationEvents();
|
|
1569
1550
|
return _el$;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
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": "^3.1.
|
|
239
|
+
"@depict-ai/plp-styling": "^3.1.3",
|
|
240
240
|
"@depict-ai/types": "^5.1.1",
|
|
241
241
|
"@depict-ai/utilishared": "^2.1.1",
|
|
242
242
|
"solid-js": "^1.8.12"
|
package/server/ES10/index.cjs
CHANGED
|
@@ -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.1";
|
|
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++) {
|
|
@@ -1251,7 +1251,7 @@ function $f3db423dc84bc35d$export$9d4a4b669b1929ab(props) {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
}));
|
|
1253
1253
|
}
|
|
1254
|
-
var $d66c35b5a6d6d926$var$_tmpl$ = ["<div", ' class="img-wrapper"
|
|
1254
|
+
var $d66c35b5a6d6d926$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
|
|
1255
1255
|
$d66c35b5a6d6d926$var$_tmpl$2 = ["<span", ' class="d-price original">', "</span>"],
|
|
1256
1256
|
$d66c35b5a6d6d926$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container"><span class="d-title line-clamp">', '</span><span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
|
|
1257
1257
|
function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
|
|
@@ -1267,17 +1267,9 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1267
1267
|
const display = display_();
|
|
1268
1268
|
return display === null || display === void 0 ? void 0 : display.variant_displays[display === null || display === void 0 ? void 0 : display.variant_index];
|
|
1269
1269
|
});
|
|
1270
|
-
const imageUrls = () => {
|
|
1271
|
-
var _variantToUse;
|
|
1272
|
-
return (_variantToUse = variantToUse()) === null || _variantToUse === void 0 ? void 0 : _variantToUse.image_urls;
|
|
1273
|
-
};
|
|
1274
1270
|
const imageUrl = $3hooq$solidjs.createMemo(() => {
|
|
1275
|
-
var
|
|
1276
|
-
return (
|
|
1277
|
-
});
|
|
1278
|
-
const secondaryImageUrl = $3hooq$solidjs.createMemo(() => {
|
|
1279
|
-
var _imageUrls2;
|
|
1280
|
-
return (_imageUrls2 = imageUrls()) === null || _imageUrls2 === void 0 ? void 0 : _imageUrls2[1];
|
|
1271
|
+
var _variantToUse, _variantToUse$image_u;
|
|
1272
|
+
return (_variantToUse = variantToUse()) === null || _variantToUse === void 0 ? void 0 : (_variantToUse$image_u = _variantToUse.image_urls) === null || _variantToUse$image_u === void 0 ? void 0 : _variantToUse$image_u[0];
|
|
1281
1273
|
});
|
|
1282
1274
|
const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
|
|
1283
1275
|
const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $3hooq$solidjs.createSignal($3hooq$solidjs.untrack(isExpanded_));
|
|
@@ -1329,24 +1321,6 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1329
1321
|
}
|
|
1330
1322
|
});
|
|
1331
1323
|
}
|
|
1332
|
-
})), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
1333
|
-
get when() {
|
|
1334
|
-
return secondaryImageUrl();
|
|
1335
|
-
},
|
|
1336
|
-
get children() {
|
|
1337
|
-
return $3hooq$solidjsweb.createComponent((0, $f3db423dc84bc35d$export$9d4a4b669b1929ab), {
|
|
1338
|
-
get src() {
|
|
1339
|
-
return secondaryImageUrl();
|
|
1340
|
-
},
|
|
1341
|
-
get aspectRatio() {
|
|
1342
|
-
return isExpanded_() ? 0.75 : 1;
|
|
1343
|
-
},
|
|
1344
|
-
"class": "secondary",
|
|
1345
|
-
get autoAdjustAspectRatio() {
|
|
1346
|
-
return isExpanded_() ? "smoothed" : false;
|
|
1347
|
-
}
|
|
1348
|
-
});
|
|
1349
|
-
}
|
|
1350
1324
|
})));
|
|
1351
1325
|
}
|
|
1352
1326
|
})), "<!--/-->", "<!--$-->", $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
package/server/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.1";
|
|
14
14
|
declare const LISTING_ID = "listingId";
|
|
15
15
|
declare const EXTERNAL_ID = "externalId";
|
|
16
16
|
type ScrollRestorationData = {
|
|
@@ -1377,7 +1377,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1377
1377
|
* Open the modal with support for alignment.
|
|
1378
1378
|
* @returns {void}
|
|
1379
1379
|
*/
|
|
1380
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1380
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1381
1381
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1382
1382
|
export interface PageReplacer {
|
|
1383
1383
|
readonly render_: () => Node_Array;
|
|
@@ -1455,5 +1455,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1455
1455
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1456
1456
|
layout?: PossibleLayout;
|
|
1457
1457
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1458
|
-
}): import("@depict-ai/utilishared
|
|
1458
|
+
}): import("@depict-ai/utilishared").Node_Array;
|
|
1459
1459
|
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.3.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.1";
|
|
14
14
|
const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
|
|
15
15
|
const cols_at_size = [];
|
|
16
16
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -1161,7 +1161,7 @@ function $98688279b9059f50$export$9d4a4b669b1929ab(props) {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
}));
|
|
1163
1163
|
}
|
|
1164
|
-
var $0c5b1686f971e5e7$var$_tmpl$ = ["<div", ' class="img-wrapper"
|
|
1164
|
+
var $0c5b1686f971e5e7$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
|
|
1165
1165
|
$0c5b1686f971e5e7$var$_tmpl$2 = ["<span", ' class="d-price original">', "</span>"],
|
|
1166
1166
|
$0c5b1686f971e5e7$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container"><span class="d-title line-clamp">', '</span><span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
|
|
1167
1167
|
function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
@@ -1177,17 +1177,9 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1177
1177
|
const display = display_();
|
|
1178
1178
|
return display === null || display === void 0 ? void 0 : display.variant_displays[display === null || display === void 0 ? void 0 : display.variant_index];
|
|
1179
1179
|
});
|
|
1180
|
-
const imageUrls = () => {
|
|
1181
|
-
var _variantToUse;
|
|
1182
|
-
return (_variantToUse = variantToUse()) === null || _variantToUse === void 0 ? void 0 : _variantToUse.image_urls;
|
|
1183
|
-
};
|
|
1184
1180
|
const imageUrl = $b8hua$createMemo(() => {
|
|
1185
|
-
var
|
|
1186
|
-
return (
|
|
1187
|
-
});
|
|
1188
|
-
const secondaryImageUrl = $b8hua$createMemo(() => {
|
|
1189
|
-
var _imageUrls2;
|
|
1190
|
-
return (_imageUrls2 = imageUrls()) === null || _imageUrls2 === void 0 ? void 0 : _imageUrls2[1];
|
|
1181
|
+
var _variantToUse, _variantToUse$image_u;
|
|
1182
|
+
return (_variantToUse = variantToUse()) === null || _variantToUse === void 0 ? void 0 : (_variantToUse$image_u = _variantToUse.image_urls) === null || _variantToUse$image_u === void 0 ? void 0 : _variantToUse$image_u[0];
|
|
1191
1183
|
});
|
|
1192
1184
|
const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
|
|
1193
1185
|
const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $b8hua$createSignal($b8hua$untrack(isExpanded_));
|
|
@@ -1239,24 +1231,6 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1239
1231
|
}
|
|
1240
1232
|
});
|
|
1241
1233
|
}
|
|
1242
|
-
})), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
1243
|
-
get when() {
|
|
1244
|
-
return secondaryImageUrl();
|
|
1245
|
-
},
|
|
1246
|
-
get children() {
|
|
1247
|
-
return $b8hua$createComponent((0, $98688279b9059f50$export$9d4a4b669b1929ab), {
|
|
1248
|
-
get src() {
|
|
1249
|
-
return secondaryImageUrl();
|
|
1250
|
-
},
|
|
1251
|
-
get aspectRatio() {
|
|
1252
|
-
return isExpanded_() ? 0.75 : 1;
|
|
1253
|
-
},
|
|
1254
|
-
"class": "secondary",
|
|
1255
|
-
get autoAdjustAspectRatio() {
|
|
1256
|
-
return isExpanded_() ? "smoothed" : false;
|
|
1257
|
-
}
|
|
1258
|
-
});
|
|
1259
|
-
}
|
|
1260
1234
|
})));
|
|
1261
1235
|
}
|
|
1262
1236
|
})), "<!--/-->", "<!--$-->", $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
package/server/latest/index.cjs
CHANGED
|
@@ -94,7 +94,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
94
94
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
95
95
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
96
96
|
/*! Depict.ai search and product listing SDK */
|
|
97
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.3.
|
|
97
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.3.1";
|
|
98
98
|
const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
|
|
99
99
|
const cols_at_size = [];
|
|
100
100
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -1197,7 +1197,7 @@ function $d212a67662c5cf38$export$9d4a4b669b1929ab(props) {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
}));
|
|
1199
1199
|
}
|
|
1200
|
-
var $1ae437d7d388a66e$var$_tmpl$ = ["<div", ' class="img-wrapper"
|
|
1200
|
+
var $1ae437d7d388a66e$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
|
|
1201
1201
|
$1ae437d7d388a66e$var$_tmpl$2 = ["<span", ' class="d-price original">', "</span>"],
|
|
1202
1202
|
$1ae437d7d388a66e$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container"><span class="d-title line-clamp">', '</span><span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
|
|
1203
1203
|
function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
|
|
@@ -1212,9 +1212,7 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
|
|
|
1212
1212
|
const display = display_();
|
|
1213
1213
|
return display?.variant_displays[display?.variant_index];
|
|
1214
1214
|
});
|
|
1215
|
-
const
|
|
1216
|
-
const imageUrl = $5vyXB$solidjs.createMemo(() => imageUrls()?.[0]);
|
|
1217
|
-
const secondaryImageUrl = $5vyXB$solidjs.createMemo(() => imageUrls()?.[1]);
|
|
1215
|
+
const imageUrl = $5vyXB$solidjs.createMemo(() => variantToUse()?.image_urls?.[0]);
|
|
1218
1216
|
const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
|
|
1219
1217
|
const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $5vyXB$solidjs.createSignal($5vyXB$solidjs.untrack(isExpanded_));
|
|
1220
1218
|
const [animationEffectExists, setAnimationEffectExists] = $5vyXB$solidjs.createSignal(false);
|
|
@@ -1256,24 +1254,6 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
|
|
|
1256
1254
|
}
|
|
1257
1255
|
});
|
|
1258
1256
|
}
|
|
1259
|
-
})), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
1260
|
-
get when() {
|
|
1261
|
-
return secondaryImageUrl();
|
|
1262
|
-
},
|
|
1263
|
-
get children() {
|
|
1264
|
-
return $5vyXB$solidjsweb.createComponent((0, $d212a67662c5cf38$export$9d4a4b669b1929ab), {
|
|
1265
|
-
get src() {
|
|
1266
|
-
return secondaryImageUrl();
|
|
1267
|
-
},
|
|
1268
|
-
get aspectRatio() {
|
|
1269
|
-
return isExpanded_() ? 0.75 : 1;
|
|
1270
|
-
},
|
|
1271
|
-
"class": "secondary",
|
|
1272
|
-
get autoAdjustAspectRatio() {
|
|
1273
|
-
return isExpanded_() ? "smoothed" : false;
|
|
1274
|
-
}
|
|
1275
|
-
});
|
|
1276
|
-
}
|
|
1277
1257
|
})));
|
|
1278
1258
|
}
|
|
1279
1259
|
})), "<!--/-->", "<!--$-->", $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
package/server/latest/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.1";
|
|
14
14
|
declare const LISTING_ID = "listingId";
|
|
15
15
|
declare const EXTERNAL_ID = "externalId";
|
|
16
16
|
type ScrollRestorationData = {
|
|
@@ -1377,7 +1377,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1377
1377
|
* Open the modal with support for alignment.
|
|
1378
1378
|
* @returns {void}
|
|
1379
1379
|
*/
|
|
1380
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1380
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1381
1381
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1382
1382
|
export interface PageReplacer {
|
|
1383
1383
|
readonly render_: () => Node_Array;
|
|
@@ -1455,5 +1455,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1455
1455
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1456
1456
|
layout?: PossibleLayout;
|
|
1457
1457
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1458
|
-
}): import("@depict-ai/utilishared
|
|
1458
|
+
}): import("@depict-ai/utilishared").Node_Array;
|
|
1459
1459
|
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.3.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.3.1";
|
|
11
11
|
const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
|
|
12
12
|
const cols_at_size = [];
|
|
13
13
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -1110,7 +1110,7 @@ function $70bb27cc6be01fc7$export$9d4a4b669b1929ab(props) {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
}));
|
|
1112
1112
|
}
|
|
1113
|
-
var $5a6c386e1bde5665$var$_tmpl$ = ["<div", ' class="img-wrapper"
|
|
1113
|
+
var $5a6c386e1bde5665$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
|
|
1114
1114
|
$5a6c386e1bde5665$var$_tmpl$2 = ["<span", ' class="d-price original">', "</span>"],
|
|
1115
1115
|
$5a6c386e1bde5665$var$_tmpl$3 = ["<div", ' class="right-part"><div class="text-container"><span class="d-title line-clamp">', '</span><span class="', '">', "</span><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"];
|
|
1116
1116
|
function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
|
|
@@ -1125,9 +1125,7 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
|
|
|
1125
1125
|
const display = display_();
|
|
1126
1126
|
return display?.variant_displays[display?.variant_index];
|
|
1127
1127
|
});
|
|
1128
|
-
const
|
|
1129
|
-
const imageUrl = $i7OB2$createMemo(() => imageUrls()?.[0]);
|
|
1130
|
-
const secondaryImageUrl = $i7OB2$createMemo(() => imageUrls()?.[1]);
|
|
1128
|
+
const imageUrl = $i7OB2$createMemo(() => variantToUse()?.image_urls?.[0]);
|
|
1131
1129
|
const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
|
|
1132
1130
|
const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $i7OB2$createSignal($i7OB2$untrack(isExpanded_));
|
|
1133
1131
|
const [animationEffectExists, setAnimationEffectExists] = $i7OB2$createSignal(false);
|
|
@@ -1169,24 +1167,6 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
|
|
|
1169
1167
|
}
|
|
1170
1168
|
});
|
|
1171
1169
|
}
|
|
1172
|
-
})), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|
|
1173
|
-
get when() {
|
|
1174
|
-
return secondaryImageUrl();
|
|
1175
|
-
},
|
|
1176
|
-
get children() {
|
|
1177
|
-
return $i7OB2$createComponent((0, $70bb27cc6be01fc7$export$9d4a4b669b1929ab), {
|
|
1178
|
-
get src() {
|
|
1179
|
-
return secondaryImageUrl();
|
|
1180
|
-
},
|
|
1181
|
-
get aspectRatio() {
|
|
1182
|
-
return isExpanded_() ? 0.75 : 1;
|
|
1183
|
-
},
|
|
1184
|
-
"class": "secondary",
|
|
1185
|
-
get autoAdjustAspectRatio() {
|
|
1186
|
-
return isExpanded_() ? "smoothed" : false;
|
|
1187
|
-
}
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
1170
|
})));
|
|
1191
1171
|
}
|
|
1192
1172
|
})), "<!--/-->", "<!--$-->", $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|