@depict-ai/ui 4.3.2 → 4.3.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 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.2";
103
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.3.3";
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++) {
@@ -1360,7 +1360,7 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1360
1360
  let {
1361
1361
  display_: display_,
1362
1362
  FavoriteButton_: FavoriteButton_,
1363
- isExpanded_: isExpanded_,
1363
+ userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1364
1364
  textFadeInAnimationRunning_: textFadeInAnimationRunning_,
1365
1365
  outerRef_: outerRef_,
1366
1366
  animationDuration_: animationDuration_,
@@ -1376,7 +1376,7 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1376
1376
  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];
1377
1377
  });
1378
1378
  const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
1379
- const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $52FdA$solidjs.createSignal($52FdA$solidjs.untrack(isExpanded_));
1379
+ const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $52FdA$solidjs.createSignal($52FdA$solidjs.untrack(userWantsExpanded));
1380
1380
  const [animationEffectExists, setAnimationEffectExists] = $52FdA$solidjs.createSignal(false);
1381
1381
  const [salePrice] = $52FdA$solidjs.createResource(() => {
1382
1382
  var _variantToUse2;
@@ -1387,7 +1387,7 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1387
1387
  return (_variantToUse3 = variantToUse()) === null || _variantToUse3 === void 0 ? void 0 : _variantToUse3.original_price;
1388
1388
  });
1389
1389
  const isOnSale = $52FdA$solidjs.createMemo(() => !salePrice.loading && !originalPrice.loading && salePrice.latest !== originalPrice.latest); // .latest doesn't trigger suspense after the initial load
1390
- const enableLink = $52FdA$solidjs.createMemo(() => isExpanded_() && !animationIsRunning());
1390
+ const enableLink = $52FdA$solidjs.createMemo(() => userWantsExpanded() && !animationIsRunning());
1391
1391
  const href = $52FdA$solidjs.createMemo(() => {
1392
1392
  var _variantToUse4;
1393
1393
  return (_variantToUse4 = variantToUse()) === null || _variantToUse4 === void 0 ? void 0 : _variantToUse4.page_url;
@@ -1405,11 +1405,18 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1405
1405
  href: href()
1406
1406
  } : {}, {
1407
1407
  get onClick() {
1408
- return $52FdA$depictaiutilishared.catchify(event_ => enableLink() && pseudoRouter_.navigate_.go_to_({
1409
- new_url_: href(),
1410
- is_replace_: false,
1411
- event_: event_
1412
- }));
1408
+ return $52FdA$depictaiutilishared.catchify(event_ => {
1409
+ if (enableLink()) {
1410
+ pseudoRouter_.navigate_.go_to_({
1411
+ new_url_: href(),
1412
+ is_replace_: false,
1413
+ event_: event_
1414
+ });
1415
+ if (event_.defaultPrevented)
1416
+ // We single-page-navigated in this tab, close the look
1417
+ setUserWantsExpanded(false);
1418
+ }
1419
+ });
1413
1420
  }
1414
1421
  }), false, true);
1415
1422
  $52FdA$solidjsweb.insert(_el$, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
@@ -1436,10 +1443,10 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1436
1443
  return imageUrl();
1437
1444
  },
1438
1445
  get aspectRatio() {
1439
- return isExpanded_() ? 0.75 : 1;
1446
+ return userWantsExpanded() ? 0.75 : 1;
1440
1447
  },
1441
1448
  get autoAdjustAspectRatio() {
1442
- return isExpanded_();
1449
+ return userWantsExpanded();
1443
1450
  },
1444
1451
  imgProps: {
1445
1452
  keyRatioUpdating: true
@@ -1452,7 +1459,7 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1452
1459
  }), _el$13, _co$3);
1453
1460
  $52FdA$solidjsweb.insert(_el$, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
1454
1461
  get when() {
1455
- return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : isExpanded_()) || animationIsRunning();
1462
+ return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
1456
1463
  },
1457
1464
  get children() {
1458
1465
  var _el$3 = $52FdA$solidjsweb.getNextElement($d66c35b5a6d6d926$var$_tmpl$3),
@@ -1480,7 +1487,7 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1480
1487
  setAnimationIsRunning(true);
1481
1488
  $52FdA$solidjs.runWithOwner(owner, () => {
1482
1489
  $52FdA$solidjs.createRenderEffect(() => {
1483
- const expanded = isExpanded_();
1490
+ const expanded = userWantsExpanded();
1484
1491
  // Still glitches in chrome (probably not fixable) and sometimes the timing is off in Safari but fuck it, I couldn't massage the WAAPI to improve it in any way (without reading computed style) to make the reversing of animations glitch less
1485
1492
  textContainerAnimation.pause();
1486
1493
  textContainerAnimation.updatePlaybackRate(expanded ? 1 : -1);
@@ -1639,7 +1646,7 @@ function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
1639
1646
  let {
1640
1647
  displays_: displays_,
1641
1648
  FavoriteButton_: FavoriteButton_,
1642
- userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1649
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1643
1650
  containerWidth_: containerWidth_,
1644
1651
  animationDuration_: animationDuration_,
1645
1652
  supportsHover_: supportsHover_,
@@ -1653,6 +1660,7 @@ function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
1653
1660
  // The following three signals just contain the state if the animations are actually running and should only be set by the respective animation code
1654
1661
  const textFadeInAnimationRunning = $52FdA$solidjs.createSignal(false);
1655
1662
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1663
+ const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
1656
1664
  $dfa95866b27a2a53$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1657
1665
  return $52FdA$solidjsweb.createComponent((0, $d067f3a30f047b41$export$e68cff63f76bd15b), {
1658
1666
  get children() {
@@ -1702,7 +1710,7 @@ function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
1702
1710
  animationDuration_: animationDuration_,
1703
1711
  display_: display,
1704
1712
  FavoriteButton_: FavoriteButton_,
1705
- isExpanded_: userWantsExpanded,
1713
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1706
1714
  textFadeInAnimationRunning_: textFadeInAnimationRunning,
1707
1715
  priceFormatting_: priceFormatting_,
1708
1716
  outerRef_: el => $52FdA$solidjs.createEffect(() => {
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.2";
13
+ export const version = "4.3.3";
14
14
  declare const LISTING_ID = "listingId";
15
15
  declare const EXTERNAL_ID = "externalId";
16
16
  type ScrollRestorationData = {
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.2";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.3";
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++) {
@@ -1270,7 +1270,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1270
1270
  let {
1271
1271
  display_: display_,
1272
1272
  FavoriteButton_: FavoriteButton_,
1273
- isExpanded_: isExpanded_,
1273
+ userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1274
1274
  textFadeInAnimationRunning_: textFadeInAnimationRunning_,
1275
1275
  outerRef_: outerRef_,
1276
1276
  animationDuration_: animationDuration_,
@@ -1286,7 +1286,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1286
1286
  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];
1287
1287
  });
1288
1288
  const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
1289
- const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $8tj43$createSignal($8tj43$untrack(isExpanded_));
1289
+ const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $8tj43$createSignal($8tj43$untrack(userWantsExpanded));
1290
1290
  const [animationEffectExists, setAnimationEffectExists] = $8tj43$createSignal(false);
1291
1291
  const [salePrice] = $8tj43$createResource(() => {
1292
1292
  var _variantToUse2;
@@ -1297,7 +1297,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1297
1297
  return (_variantToUse3 = variantToUse()) === null || _variantToUse3 === void 0 ? void 0 : _variantToUse3.original_price;
1298
1298
  });
1299
1299
  const isOnSale = $8tj43$createMemo(() => !salePrice.loading && !originalPrice.loading && salePrice.latest !== originalPrice.latest); // .latest doesn't trigger suspense after the initial load
1300
- const enableLink = $8tj43$createMemo(() => isExpanded_() && !animationIsRunning());
1300
+ const enableLink = $8tj43$createMemo(() => userWantsExpanded() && !animationIsRunning());
1301
1301
  const href = $8tj43$createMemo(() => {
1302
1302
  var _variantToUse4;
1303
1303
  return (_variantToUse4 = variantToUse()) === null || _variantToUse4 === void 0 ? void 0 : _variantToUse4.page_url;
@@ -1315,11 +1315,18 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1315
1315
  href: href()
1316
1316
  } : {}, {
1317
1317
  get onClick() {
1318
- return $8tj43$catchify(event_ => enableLink() && pseudoRouter_.navigate_.go_to_({
1319
- new_url_: href(),
1320
- is_replace_: false,
1321
- event_: event_
1322
- }));
1318
+ return $8tj43$catchify(event_ => {
1319
+ if (enableLink()) {
1320
+ pseudoRouter_.navigate_.go_to_({
1321
+ new_url_: href(),
1322
+ is_replace_: false,
1323
+ event_: event_
1324
+ });
1325
+ if (event_.defaultPrevented)
1326
+ // We single-page-navigated in this tab, close the look
1327
+ setUserWantsExpanded(false);
1328
+ }
1329
+ });
1323
1330
  }
1324
1331
  }), false, true);
1325
1332
  $8tj43$insert(_el$, $8tj43$createComponent((0, $8tj43$Show), {
@@ -1346,10 +1353,10 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1346
1353
  return imageUrl();
1347
1354
  },
1348
1355
  get aspectRatio() {
1349
- return isExpanded_() ? 0.75 : 1;
1356
+ return userWantsExpanded() ? 0.75 : 1;
1350
1357
  },
1351
1358
  get autoAdjustAspectRatio() {
1352
- return isExpanded_();
1359
+ return userWantsExpanded();
1353
1360
  },
1354
1361
  imgProps: {
1355
1362
  keyRatioUpdating: true
@@ -1362,7 +1369,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1362
1369
  }), _el$13, _co$3);
1363
1370
  $8tj43$insert(_el$, $8tj43$createComponent((0, $8tj43$Show), {
1364
1371
  get when() {
1365
- return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : isExpanded_()) || animationIsRunning();
1372
+ return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
1366
1373
  },
1367
1374
  get children() {
1368
1375
  var _el$3 = $8tj43$getNextElement($0c5b1686f971e5e7$var$_tmpl$3),
@@ -1390,7 +1397,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1390
1397
  setAnimationIsRunning(true);
1391
1398
  $8tj43$runWithOwner(owner, () => {
1392
1399
  $8tj43$createRenderEffect(() => {
1393
- const expanded = isExpanded_();
1400
+ const expanded = userWantsExpanded();
1394
1401
  // Still glitches in chrome (probably not fixable) and sometimes the timing is off in Safari but fuck it, I couldn't massage the WAAPI to improve it in any way (without reading computed style) to make the reversing of animations glitch less
1395
1402
  textContainerAnimation.pause();
1396
1403
  textContainerAnimation.updatePlaybackRate(expanded ? 1 : -1);
@@ -1549,7 +1556,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
1549
1556
  let {
1550
1557
  displays_: displays_,
1551
1558
  FavoriteButton_: FavoriteButton_,
1552
- userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1559
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1553
1560
  containerWidth_: containerWidth_,
1554
1561
  animationDuration_: animationDuration_,
1555
1562
  supportsHover_: supportsHover_,
@@ -1563,6 +1570,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
1563
1570
  // The following three signals just contain the state if the animations are actually running and should only be set by the respective animation code
1564
1571
  const textFadeInAnimationRunning = $8tj43$createSignal(false);
1565
1572
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1573
+ const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
1566
1574
  $72017ebd8b9df947$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1567
1575
  return $8tj43$createComponent((0, $5441862cd2f5e111$export$e68cff63f76bd15b), {
1568
1576
  get children() {
@@ -1612,7 +1620,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
1612
1620
  animationDuration_: animationDuration_,
1613
1621
  display_: display,
1614
1622
  FavoriteButton_: FavoriteButton_,
1615
- isExpanded_: userWantsExpanded,
1623
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1616
1624
  textFadeInAnimationRunning_: textFadeInAnimationRunning,
1617
1625
  priceFormatting_: priceFormatting_,
1618
1626
  outerRef_: el => $8tj43$createEffect(() => {
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.2";
97
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.3.3";
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++) {
@@ -1294,7 +1294,7 @@ var $1ae437d7d388a66e$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div
1294
1294
  function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1295
1295
  display_: display_,
1296
1296
  FavoriteButton_: FavoriteButton_,
1297
- isExpanded_: isExpanded_,
1297
+ userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1298
1298
  textFadeInAnimationRunning_: textFadeInAnimationRunning_,
1299
1299
  outerRef_: outerRef_,
1300
1300
  animationDuration_: animationDuration_,
@@ -1307,12 +1307,12 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1307
1307
  });
1308
1308
  const imageUrl = $gVhhF$solidjs.createMemo(() => variantToUse()?.image_urls?.[0]);
1309
1309
  const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
1310
- const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $gVhhF$solidjs.createSignal($gVhhF$solidjs.untrack(isExpanded_));
1310
+ const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $gVhhF$solidjs.createSignal($gVhhF$solidjs.untrack(userWantsExpanded));
1311
1311
  const [animationEffectExists, setAnimationEffectExists] = $gVhhF$solidjs.createSignal(false);
1312
1312
  const [salePrice] = $gVhhF$solidjs.createResource(() => variantToUse()?.sale_price);
1313
1313
  const [originalPrice] = $gVhhF$solidjs.createResource(() => variantToUse()?.original_price);
1314
1314
  const isOnSale = $gVhhF$solidjs.createMemo(() => !salePrice.loading && !originalPrice.loading && salePrice.latest !== originalPrice.latest); // .latest doesn't trigger suspense after the initial load
1315
- const enableLink = $gVhhF$solidjs.createMemo(() => isExpanded_() && !animationIsRunning());
1315
+ const enableLink = $gVhhF$solidjs.createMemo(() => userWantsExpanded() && !animationIsRunning());
1316
1316
  const href = $gVhhF$solidjs.createMemo(() => variantToUse()?.page_url);
1317
1317
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1318
1318
  return (() => {
@@ -1327,11 +1327,18 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1327
1327
  href: href()
1328
1328
  } : {}, {
1329
1329
  get onClick() {
1330
- return $gVhhF$depictaiutilishared.catchify(event_ => enableLink() && pseudoRouter_.navigate_.go_to_({
1331
- new_url_: href(),
1332
- is_replace_: false,
1333
- event_: event_
1334
- }));
1330
+ return $gVhhF$depictaiutilishared.catchify(event_ => {
1331
+ if (enableLink()) {
1332
+ pseudoRouter_.navigate_.go_to_({
1333
+ new_url_: href(),
1334
+ is_replace_: false,
1335
+ event_: event_
1336
+ });
1337
+ if (event_.defaultPrevented)
1338
+ // We single-page-navigated in this tab, close the look
1339
+ setUserWantsExpanded(false);
1340
+ }
1341
+ });
1335
1342
  }
1336
1343
  }), false, true);
1337
1344
  $gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
@@ -1358,10 +1365,10 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1358
1365
  return imageUrl();
1359
1366
  },
1360
1367
  get aspectRatio() {
1361
- return isExpanded_() ? 0.75 : 1;
1368
+ return userWantsExpanded() ? 0.75 : 1;
1362
1369
  },
1363
1370
  get autoAdjustAspectRatio() {
1364
- return isExpanded_();
1371
+ return userWantsExpanded();
1365
1372
  },
1366
1373
  imgProps: {
1367
1374
  keyRatioUpdating: true
@@ -1374,7 +1381,7 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1374
1381
  }), _el$13, _co$3);
1375
1382
  $gVhhF$solidjsweb.insert(_el$, $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
1376
1383
  get when() {
1377
- return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : isExpanded_()) || animationIsRunning();
1384
+ return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
1378
1385
  },
1379
1386
  get children() {
1380
1387
  var _el$3 = $gVhhF$solidjsweb.getNextElement($1ae437d7d388a66e$var$_tmpl$3),
@@ -1401,7 +1408,7 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1401
1408
  setAnimationIsRunning(true);
1402
1409
  $gVhhF$solidjs.runWithOwner(owner, () => {
1403
1410
  $gVhhF$solidjs.createRenderEffect(() => {
1404
- const expanded = isExpanded_();
1411
+ const expanded = userWantsExpanded();
1405
1412
  // Still glitches in chrome (probably not fixable) and sometimes the timing is off in Safari but fuck it, I couldn't massage the WAAPI to improve it in any way (without reading computed style) to make the reversing of animations glitch less
1406
1413
  textContainerAnimation.pause();
1407
1414
  textContainerAnimation.updatePlaybackRate(expanded ? 1 : -1);
@@ -1556,7 +1563,7 @@ var $905010a06f9aeae5$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div
1556
1563
  function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
1557
1564
  displays_: displays_,
1558
1565
  FavoriteButton_: FavoriteButton_,
1559
- userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1566
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1560
1567
  containerWidth_: containerWidth_,
1561
1568
  animationDuration_: animationDuration_,
1562
1569
  supportsHover_: supportsHover_,
@@ -1570,6 +1577,7 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
1570
1577
  // The following three signals just contain the state if the animations are actually running and should only be set by the respective animation code
1571
1578
  const textFadeInAnimationRunning = $gVhhF$solidjs.createSignal(false);
1572
1579
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1580
+ const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
1573
1581
  $b9e830d616d01b31$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1574
1582
  return $gVhhF$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
1575
1583
  get children() {
@@ -1619,7 +1627,7 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
1619
1627
  animationDuration_: animationDuration_,
1620
1628
  display_: display,
1621
1629
  FavoriteButton_: FavoriteButton_,
1622
- isExpanded_: userWantsExpanded,
1630
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1623
1631
  textFadeInAnimationRunning_: textFadeInAnimationRunning,
1624
1632
  priceFormatting_: priceFormatting_,
1625
1633
  outerRef_: el => $gVhhF$solidjs.createEffect(() => {
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.2";
13
+ export const version = "4.3.3";
14
14
  declare const LISTING_ID = "listingId";
15
15
  declare const EXTERNAL_ID = "externalId";
16
16
  type ScrollRestorationData = {
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.2";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.3.3";
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++) {
@@ -1207,7 +1207,7 @@ var $5a6c386e1bde5665$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=img-
1207
1207
  function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1208
1208
  display_: display_,
1209
1209
  FavoriteButton_: FavoriteButton_,
1210
- isExpanded_: isExpanded_,
1210
+ userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1211
1211
  textFadeInAnimationRunning_: textFadeInAnimationRunning_,
1212
1212
  outerRef_: outerRef_,
1213
1213
  animationDuration_: animationDuration_,
@@ -1220,12 +1220,12 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1220
1220
  });
1221
1221
  const imageUrl = $9HbP8$createMemo(() => variantToUse()?.image_urls?.[0]);
1222
1222
  const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
1223
- const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $9HbP8$createSignal($9HbP8$untrack(isExpanded_));
1223
+ const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $9HbP8$createSignal($9HbP8$untrack(userWantsExpanded));
1224
1224
  const [animationEffectExists, setAnimationEffectExists] = $9HbP8$createSignal(false);
1225
1225
  const [salePrice] = $9HbP8$createResource(() => variantToUse()?.sale_price);
1226
1226
  const [originalPrice] = $9HbP8$createResource(() => variantToUse()?.original_price);
1227
1227
  const isOnSale = $9HbP8$createMemo(() => !salePrice.loading && !originalPrice.loading && salePrice.latest !== originalPrice.latest); // .latest doesn't trigger suspense after the initial load
1228
- const enableLink = $9HbP8$createMemo(() => isExpanded_() && !animationIsRunning());
1228
+ const enableLink = $9HbP8$createMemo(() => userWantsExpanded() && !animationIsRunning());
1229
1229
  const href = $9HbP8$createMemo(() => variantToUse()?.page_url);
1230
1230
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1231
1231
  return (() => {
@@ -1240,11 +1240,18 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1240
1240
  href: href()
1241
1241
  } : {}, {
1242
1242
  get onClick() {
1243
- return $9HbP8$catchify(event_ => enableLink() && pseudoRouter_.navigate_.go_to_({
1244
- new_url_: href(),
1245
- is_replace_: false,
1246
- event_: event_
1247
- }));
1243
+ return $9HbP8$catchify(event_ => {
1244
+ if (enableLink()) {
1245
+ pseudoRouter_.navigate_.go_to_({
1246
+ new_url_: href(),
1247
+ is_replace_: false,
1248
+ event_: event_
1249
+ });
1250
+ if (event_.defaultPrevented)
1251
+ // We single-page-navigated in this tab, close the look
1252
+ setUserWantsExpanded(false);
1253
+ }
1254
+ });
1248
1255
  }
1249
1256
  }), false, true);
1250
1257
  $9HbP8$insert(_el$, $9HbP8$createComponent((0, $9HbP8$Show), {
@@ -1271,10 +1278,10 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1271
1278
  return imageUrl();
1272
1279
  },
1273
1280
  get aspectRatio() {
1274
- return isExpanded_() ? 0.75 : 1;
1281
+ return userWantsExpanded() ? 0.75 : 1;
1275
1282
  },
1276
1283
  get autoAdjustAspectRatio() {
1277
- return isExpanded_();
1284
+ return userWantsExpanded();
1278
1285
  },
1279
1286
  imgProps: {
1280
1287
  keyRatioUpdating: true
@@ -1287,7 +1294,7 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1287
1294
  }), _el$13, _co$3);
1288
1295
  $9HbP8$insert(_el$, $9HbP8$createComponent((0, $9HbP8$Show), {
1289
1296
  get when() {
1290
- return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : isExpanded_()) || animationIsRunning();
1297
+ return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
1291
1298
  },
1292
1299
  get children() {
1293
1300
  var _el$3 = $9HbP8$getNextElement($5a6c386e1bde5665$var$_tmpl$3),
@@ -1314,7 +1321,7 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1314
1321
  setAnimationIsRunning(true);
1315
1322
  $9HbP8$runWithOwner(owner, () => {
1316
1323
  $9HbP8$createRenderEffect(() => {
1317
- const expanded = isExpanded_();
1324
+ const expanded = userWantsExpanded();
1318
1325
  // Still glitches in chrome (probably not fixable) and sometimes the timing is off in Safari but fuck it, I couldn't massage the WAAPI to improve it in any way (without reading computed style) to make the reversing of animations glitch less
1319
1326
  textContainerAnimation.pause();
1320
1327
  textContainerAnimation.updatePlaybackRate(expanded ? 1 : -1);
@@ -1469,7 +1476,7 @@ var $7555dcad3b8a4632$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=scro
1469
1476
  function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
1470
1477
  displays_: displays_,
1471
1478
  FavoriteButton_: FavoriteButton_,
1472
- userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1479
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1473
1480
  containerWidth_: containerWidth_,
1474
1481
  animationDuration_: animationDuration_,
1475
1482
  supportsHover_: supportsHover_,
@@ -1483,6 +1490,7 @@ function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
1483
1490
  // The following three signals just contain the state if the animations are actually running and should only be set by the respective animation code
1484
1491
  const textFadeInAnimationRunning = $9HbP8$createSignal(false);
1485
1492
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1493
+ const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
1486
1494
  $62a8f670f8464532$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1487
1495
  return $9HbP8$createComponent((0, $011607bdf658f807$export$e68cff63f76bd15b), {
1488
1496
  get children() {
@@ -1532,7 +1540,7 @@ function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
1532
1540
  animationDuration_: animationDuration_,
1533
1541
  display_: display,
1534
1542
  FavoriteButton_: FavoriteButton_,
1535
- isExpanded_: userWantsExpanded,
1543
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1536
1544
  textFadeInAnimationRunning_: textFadeInAnimationRunning,
1537
1545
  priceFormatting_: priceFormatting_,
1538
1546
  outerRef_: el => $9HbP8$createEffect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.3.2",
3
+ "version": "4.3.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": "^3.1.4",
239
+ "@depict-ai/plp-styling": "^3.2.0",
240
240
  "@depict-ai/types": "^5.1.1",
241
241
  "@depict-ai/utilishared": "^2.1.1",
242
242
  "solid-js": "^1.8.12"
@@ -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.2";
103
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.3.3";
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++) {
@@ -1247,7 +1247,7 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1247
1247
  let {
1248
1248
  display_: display_,
1249
1249
  FavoriteButton_: FavoriteButton_,
1250
- isExpanded_: isExpanded_,
1250
+ userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1251
1251
  textFadeInAnimationRunning_: textFadeInAnimationRunning_,
1252
1252
  outerRef_: outerRef_,
1253
1253
  animationDuration_: animationDuration_,
@@ -1263,7 +1263,7 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1263
1263
  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];
1264
1264
  });
1265
1265
  const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
1266
- const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $3hooq$solidjs.createSignal($3hooq$solidjs.untrack(isExpanded_));
1266
+ const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $3hooq$solidjs.createSignal($3hooq$solidjs.untrack(userWantsExpanded));
1267
1267
  const [animationEffectExists, setAnimationEffectExists] = $3hooq$solidjs.createSignal(false);
1268
1268
  const [salePrice] = $3hooq$solidjs.createResource(() => {
1269
1269
  var _variantToUse2;
@@ -1274,7 +1274,7 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1274
1274
  return (_variantToUse3 = variantToUse()) === null || _variantToUse3 === void 0 ? void 0 : _variantToUse3.original_price;
1275
1275
  });
1276
1276
  const isOnSale = $3hooq$solidjs.createMemo(() => !salePrice.loading && !originalPrice.loading && salePrice.latest !== originalPrice.latest); // .latest doesn't trigger suspense after the initial load
1277
- const enableLink = $3hooq$solidjs.createMemo(() => isExpanded_() && !animationIsRunning());
1277
+ const enableLink = $3hooq$solidjs.createMemo(() => userWantsExpanded() && !animationIsRunning());
1278
1278
  const href = $3hooq$solidjs.createMemo(() => {
1279
1279
  var _variantToUse4;
1280
1280
  return (_variantToUse4 = variantToUse()) === null || _variantToUse4 === void 0 ? void 0 : _variantToUse4.page_url;
@@ -1307,10 +1307,10 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1307
1307
  return imageUrl();
1308
1308
  },
1309
1309
  get aspectRatio() {
1310
- return isExpanded_() ? 0.75 : 1;
1310
+ return userWantsExpanded() ? 0.75 : 1;
1311
1311
  },
1312
1312
  get autoAdjustAspectRatio() {
1313
- return isExpanded_();
1313
+ return userWantsExpanded();
1314
1314
  },
1315
1315
  imgProps: {
1316
1316
  keyRatioUpdating: true
@@ -1321,7 +1321,7 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1321
1321
  }
1322
1322
  })), "<!--/-->", "<!--$-->", $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
1323
1323
  get when() {
1324
- return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : isExpanded_()) || animationIsRunning();
1324
+ return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
1325
1325
  },
1326
1326
  get children() {
1327
1327
  var _$escape2, _variantToUse5;
@@ -1455,7 +1455,7 @@ function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
1455
1455
  let {
1456
1456
  displays_: displays_,
1457
1457
  FavoriteButton_: FavoriteButton_,
1458
- userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1458
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1459
1459
  containerWidth_: containerWidth_,
1460
1460
  animationDuration_: animationDuration_,
1461
1461
  supportsHover_: supportsHover_,
@@ -1469,6 +1469,7 @@ function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
1469
1469
  // The following three signals just contain the state if the animations are actually running and should only be set by the respective animation code
1470
1470
  const textFadeInAnimationRunning = $3hooq$solidjs.createSignal(false);
1471
1471
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1472
+ const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
1472
1473
  $dfa95866b27a2a53$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1473
1474
  return $3hooq$solidjsweb.createComponent((0, $d067f3a30f047b41$export$e68cff63f76bd15b), {
1474
1475
  get children() {
@@ -1495,7 +1496,7 @@ function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
1495
1496
  animationDuration_: animationDuration_,
1496
1497
  display_: display,
1497
1498
  FavoriteButton_: FavoriteButton_,
1498
- isExpanded_: userWantsExpanded,
1499
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1499
1500
  textFadeInAnimationRunning_: textFadeInAnimationRunning,
1500
1501
  priceFormatting_: priceFormatting_,
1501
1502
  outerRef_: el => $3hooq$solidjs.createEffect(() => {
@@ -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.2";
13
+ export const version = "4.3.3";
14
14
  declare const LISTING_ID = "listingId";
15
15
  declare const EXTERNAL_ID = "externalId";
16
16
  type ScrollRestorationData = {
@@ -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.2";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.3";
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++) {
@@ -1157,7 +1157,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1157
1157
  let {
1158
1158
  display_: display_,
1159
1159
  FavoriteButton_: FavoriteButton_,
1160
- isExpanded_: isExpanded_,
1160
+ userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1161
1161
  textFadeInAnimationRunning_: textFadeInAnimationRunning_,
1162
1162
  outerRef_: outerRef_,
1163
1163
  animationDuration_: animationDuration_,
@@ -1173,7 +1173,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1173
1173
  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];
1174
1174
  });
1175
1175
  const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
1176
- const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $b8hua$createSignal($b8hua$untrack(isExpanded_));
1176
+ const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $b8hua$createSignal($b8hua$untrack(userWantsExpanded));
1177
1177
  const [animationEffectExists, setAnimationEffectExists] = $b8hua$createSignal(false);
1178
1178
  const [salePrice] = $b8hua$createResource(() => {
1179
1179
  var _variantToUse2;
@@ -1184,7 +1184,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1184
1184
  return (_variantToUse3 = variantToUse()) === null || _variantToUse3 === void 0 ? void 0 : _variantToUse3.original_price;
1185
1185
  });
1186
1186
  const isOnSale = $b8hua$createMemo(() => !salePrice.loading && !originalPrice.loading && salePrice.latest !== originalPrice.latest); // .latest doesn't trigger suspense after the initial load
1187
- const enableLink = $b8hua$createMemo(() => isExpanded_() && !animationIsRunning());
1187
+ const enableLink = $b8hua$createMemo(() => userWantsExpanded() && !animationIsRunning());
1188
1188
  const href = $b8hua$createMemo(() => {
1189
1189
  var _variantToUse4;
1190
1190
  return (_variantToUse4 = variantToUse()) === null || _variantToUse4 === void 0 ? void 0 : _variantToUse4.page_url;
@@ -1217,10 +1217,10 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1217
1217
  return imageUrl();
1218
1218
  },
1219
1219
  get aspectRatio() {
1220
- return isExpanded_() ? 0.75 : 1;
1220
+ return userWantsExpanded() ? 0.75 : 1;
1221
1221
  },
1222
1222
  get autoAdjustAspectRatio() {
1223
- return isExpanded_();
1223
+ return userWantsExpanded();
1224
1224
  },
1225
1225
  imgProps: {
1226
1226
  keyRatioUpdating: true
@@ -1231,7 +1231,7 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1231
1231
  }
1232
1232
  })), "<!--/-->", "<!--$-->", $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
1233
1233
  get when() {
1234
- return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : isExpanded_()) || animationIsRunning();
1234
+ return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
1235
1235
  },
1236
1236
  get children() {
1237
1237
  var _$escape2, _variantToUse5;
@@ -1365,7 +1365,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
1365
1365
  let {
1366
1366
  displays_: displays_,
1367
1367
  FavoriteButton_: FavoriteButton_,
1368
- userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1368
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1369
1369
  containerWidth_: containerWidth_,
1370
1370
  animationDuration_: animationDuration_,
1371
1371
  supportsHover_: supportsHover_,
@@ -1379,6 +1379,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
1379
1379
  // The following three signals just contain the state if the animations are actually running and should only be set by the respective animation code
1380
1380
  const textFadeInAnimationRunning = $b8hua$createSignal(false);
1381
1381
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1382
+ const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
1382
1383
  $72017ebd8b9df947$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1383
1384
  return $b8hua$createComponent((0, $5441862cd2f5e111$export$e68cff63f76bd15b), {
1384
1385
  get children() {
@@ -1405,7 +1406,7 @@ function $4089a7972a508539$export$ebf0b1d4f90c09ae(_ref) {
1405
1406
  animationDuration_: animationDuration_,
1406
1407
  display_: display,
1407
1408
  FavoriteButton_: FavoriteButton_,
1408
- isExpanded_: userWantsExpanded,
1409
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1409
1410
  textFadeInAnimationRunning_: textFadeInAnimationRunning,
1410
1411
  priceFormatting_: priceFormatting_,
1411
1412
  outerRef_: el => $b8hua$createEffect(() => {
@@ -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.2";
97
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.3.3";
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++) {
@@ -1192,7 +1192,7 @@ var $1ae437d7d388a66e$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
1192
1192
  function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1193
1193
  display_: display_,
1194
1194
  FavoriteButton_: FavoriteButton_,
1195
- isExpanded_: isExpanded_,
1195
+ userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1196
1196
  textFadeInAnimationRunning_: textFadeInAnimationRunning_,
1197
1197
  outerRef_: outerRef_,
1198
1198
  animationDuration_: animationDuration_,
@@ -1205,12 +1205,12 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1205
1205
  });
1206
1206
  const imageUrl = $5vyXB$solidjs.createMemo(() => variantToUse()?.image_urls?.[0]);
1207
1207
  const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
1208
- const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $5vyXB$solidjs.createSignal($5vyXB$solidjs.untrack(isExpanded_));
1208
+ const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $5vyXB$solidjs.createSignal($5vyXB$solidjs.untrack(userWantsExpanded));
1209
1209
  const [animationEffectExists, setAnimationEffectExists] = $5vyXB$solidjs.createSignal(false);
1210
1210
  const [salePrice] = $5vyXB$solidjs.createResource(() => variantToUse()?.sale_price);
1211
1211
  const [originalPrice] = $5vyXB$solidjs.createResource(() => variantToUse()?.original_price);
1212
1212
  const isOnSale = $5vyXB$solidjs.createMemo(() => !salePrice.loading && !originalPrice.loading && salePrice.latest !== originalPrice.latest); // .latest doesn't trigger suspense after the initial load
1213
- const enableLink = $5vyXB$solidjs.createMemo(() => isExpanded_() && !animationIsRunning());
1213
+ const enableLink = $5vyXB$solidjs.createMemo(() => userWantsExpanded() && !animationIsRunning());
1214
1214
  const href = $5vyXB$solidjs.createMemo(() => variantToUse()?.page_url);
1215
1215
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1216
1216
  return $5vyXB$solidjsweb.ssrElement("a", $5vyXB$solidjsweb.mergeProps({
@@ -1240,10 +1240,10 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1240
1240
  return imageUrl();
1241
1241
  },
1242
1242
  get aspectRatio() {
1243
- return isExpanded_() ? 0.75 : 1;
1243
+ return userWantsExpanded() ? 0.75 : 1;
1244
1244
  },
1245
1245
  get autoAdjustAspectRatio() {
1246
- return isExpanded_();
1246
+ return userWantsExpanded();
1247
1247
  },
1248
1248
  imgProps: {
1249
1249
  keyRatioUpdating: true
@@ -1254,7 +1254,7 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1254
1254
  }
1255
1255
  })), "<!--/-->", "<!--$-->", $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
1256
1256
  get when() {
1257
- return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : isExpanded_()) || animationIsRunning();
1257
+ return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
1258
1258
  },
1259
1259
  get children() {
1260
1260
  return $5vyXB$solidjsweb.ssr($1ae437d7d388a66e$var$_tmpl$3, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(variantToUse()?.title) ?? $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
@@ -1386,7 +1386,7 @@ var $905010a06f9aeae5$var$_tmpl$ = ["<div", ' class="scroll-padding">', "</div>"
1386
1386
  function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
1387
1387
  displays_: displays_,
1388
1388
  FavoriteButton_: FavoriteButton_,
1389
- userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1389
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1390
1390
  containerWidth_: containerWidth_,
1391
1391
  animationDuration_: animationDuration_,
1392
1392
  supportsHover_: supportsHover_,
@@ -1400,6 +1400,7 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
1400
1400
  // The following three signals just contain the state if the animations are actually running and should only be set by the respective animation code
1401
1401
  const textFadeInAnimationRunning = $5vyXB$solidjs.createSignal(false);
1402
1402
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1403
+ const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
1403
1404
  $b9e830d616d01b31$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1404
1405
  return $5vyXB$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
1405
1406
  get children() {
@@ -1426,7 +1427,7 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
1426
1427
  animationDuration_: animationDuration_,
1427
1428
  display_: display,
1428
1429
  FavoriteButton_: FavoriteButton_,
1429
- isExpanded_: userWantsExpanded,
1430
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1430
1431
  textFadeInAnimationRunning_: textFadeInAnimationRunning,
1431
1432
  priceFormatting_: priceFormatting_,
1432
1433
  outerRef_: el => $5vyXB$solidjs.createEffect(() => {
@@ -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.2";
13
+ export const version = "4.3.3";
14
14
  declare const LISTING_ID = "listingId";
15
15
  declare const EXTERNAL_ID = "externalId";
16
16
  type ScrollRestorationData = {
@@ -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.2";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.3.3";
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++) {
@@ -1105,7 +1105,7 @@ var $5a6c386e1bde5665$var$_tmpl$ = ["<div", ' class="img-wrapper">', "</div>"],
1105
1105
  function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1106
1106
  display_: display_,
1107
1107
  FavoriteButton_: FavoriteButton_,
1108
- isExpanded_: isExpanded_,
1108
+ userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1109
1109
  textFadeInAnimationRunning_: textFadeInAnimationRunning_,
1110
1110
  outerRef_: outerRef_,
1111
1111
  animationDuration_: animationDuration_,
@@ -1118,12 +1118,12 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1118
1118
  });
1119
1119
  const imageUrl = $i7OB2$createMemo(() => variantToUse()?.image_urls?.[0]);
1120
1120
  const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
1121
- const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $i7OB2$createSignal($i7OB2$untrack(isExpanded_));
1121
+ const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $i7OB2$createSignal($i7OB2$untrack(userWantsExpanded));
1122
1122
  const [animationEffectExists, setAnimationEffectExists] = $i7OB2$createSignal(false);
1123
1123
  const [salePrice] = $i7OB2$createResource(() => variantToUse()?.sale_price);
1124
1124
  const [originalPrice] = $i7OB2$createResource(() => variantToUse()?.original_price);
1125
1125
  const isOnSale = $i7OB2$createMemo(() => !salePrice.loading && !originalPrice.loading && salePrice.latest !== originalPrice.latest); // .latest doesn't trigger suspense after the initial load
1126
- const enableLink = $i7OB2$createMemo(() => isExpanded_() && !animationIsRunning());
1126
+ const enableLink = $i7OB2$createMemo(() => userWantsExpanded() && !animationIsRunning());
1127
1127
  const href = $i7OB2$createMemo(() => variantToUse()?.page_url);
1128
1128
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1129
1129
  return $i7OB2$ssrElement("a", $i7OB2$mergeProps1({
@@ -1153,10 +1153,10 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1153
1153
  return imageUrl();
1154
1154
  },
1155
1155
  get aspectRatio() {
1156
- return isExpanded_() ? 0.75 : 1;
1156
+ return userWantsExpanded() ? 0.75 : 1;
1157
1157
  },
1158
1158
  get autoAdjustAspectRatio() {
1159
- return isExpanded_();
1159
+ return userWantsExpanded();
1160
1160
  },
1161
1161
  imgProps: {
1162
1162
  keyRatioUpdating: true
@@ -1167,7 +1167,7 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1167
1167
  }
1168
1168
  })), "<!--/-->", "<!--$-->", $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
1169
1169
  get when() {
1170
- return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : isExpanded_()) || animationIsRunning();
1170
+ return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : userWantsExpanded()) || animationIsRunning();
1171
1171
  },
1172
1172
  get children() {
1173
1173
  return $i7OB2$ssr($5a6c386e1bde5665$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$escape(variantToUse()?.title) ?? $i7OB2$escape($i7OB2$createComponent((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
@@ -1299,7 +1299,7 @@ var $7555dcad3b8a4632$var$_tmpl$ = ["<div", ' class="scroll-padding">', "</div>"
1299
1299
  function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
1300
1300
  displays_: displays_,
1301
1301
  FavoriteButton_: FavoriteButton_,
1302
- userWantsExpandedSignal_: [userWantsExpanded, setUserWantsExpanded],
1302
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1303
1303
  containerWidth_: containerWidth_,
1304
1304
  animationDuration_: animationDuration_,
1305
1305
  supportsHover_: supportsHover_,
@@ -1313,6 +1313,7 @@ function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
1313
1313
  // The following three signals just contain the state if the animations are actually running and should only be set by the respective animation code
1314
1314
  const textFadeInAnimationRunning = $i7OB2$createSignal(false);
1315
1315
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1316
+ const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
1316
1317
  $62a8f670f8464532$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1317
1318
  return $i7OB2$createComponent((0, $011607bdf658f807$export$e68cff63f76bd15b), {
1318
1319
  get children() {
@@ -1339,7 +1340,7 @@ function $7555dcad3b8a4632$export$ebf0b1d4f90c09ae({
1339
1340
  animationDuration_: animationDuration_,
1340
1341
  display_: display,
1341
1342
  FavoriteButton_: FavoriteButton_,
1342
- isExpanded_: userWantsExpanded,
1343
+ userWantsExpandedSignal_: userWantsExpandedSignal_,
1343
1344
  textFadeInAnimationRunning_: textFadeInAnimationRunning,
1344
1345
  priceFormatting_: priceFormatting_,
1345
1346
  outerRef_: el => $i7OB2$createEffect(() => {