@depict-ai/ui 4.2.0 → 4.2.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.
@@ -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.2.0";
103
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.2.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++) {
@@ -1263,22 +1263,43 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1263
1263
  outerRef_: outerRef_,
1264
1264
  animationDuration_: animationDuration_
1265
1265
  } = _ref;
1266
- const variantToUse = display_ === null || display_ === void 0 ? void 0 : display_.variant_displays[display_ === null || display_ === void 0 ? void 0 : display_.variant_index];
1267
- const imageUrls = variantToUse === null || variantToUse === void 0 ? void 0 : variantToUse.image_urls;
1268
- const imageUrl = imageUrls === null || imageUrls === void 0 ? void 0 : imageUrls[0];
1269
- const secondaryImageUrl = imageUrls === null || imageUrls === void 0 ? void 0 : imageUrls[1];
1266
+ const variantToUse = $3hooq$solidjs.createMemo(() => {
1267
+ const display = display_();
1268
+ return display === null || display === void 0 ? void 0 : display.variant_displays[display === null || display === void 0 ? void 0 : display.variant_index];
1269
+ });
1270
+ const imageUrls = () => {
1271
+ var _variantToUse;
1272
+ return (_variantToUse = variantToUse()) === null || _variantToUse === void 0 ? void 0 : _variantToUse.image_urls;
1273
+ };
1274
+ const imageUrl = $3hooq$solidjs.createMemo(() => {
1275
+ var _imageUrls;
1276
+ return (_imageUrls = imageUrls()) === null || _imageUrls === void 0 ? void 0 : _imageUrls[0];
1277
+ });
1278
+ const secondaryImageUrl = $3hooq$solidjs.createMemo(() => {
1279
+ var _imageUrls2;
1280
+ return (_imageUrls2 = imageUrls()) === null || _imageUrls2 === void 0 ? void 0 : _imageUrls2[1];
1281
+ });
1270
1282
  const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
1271
1283
  const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $3hooq$solidjs.createSignal($3hooq$solidjs.untrack(isExpanded_));
1272
1284
  const [animationEffectExists, setAnimationEffectExists] = $3hooq$solidjs.createSignal(false);
1273
- const [salePrice] = $3hooq$solidjs.createResource(() => variantToUse === null || variantToUse === void 0 ? void 0 : variantToUse.sale_price);
1274
- const [originalPrice] = $3hooq$solidjs.createResource(() => variantToUse === null || variantToUse === void 0 ? void 0 : variantToUse.original_price);
1285
+ const [salePrice] = $3hooq$solidjs.createResource(() => {
1286
+ var _variantToUse2;
1287
+ return (_variantToUse2 = variantToUse()) === null || _variantToUse2 === void 0 ? void 0 : _variantToUse2.sale_price;
1288
+ });
1289
+ const [originalPrice] = $3hooq$solidjs.createResource(() => {
1290
+ var _variantToUse3;
1291
+ return (_variantToUse3 = variantToUse()) === null || _variantToUse3 === void 0 ? void 0 : _variantToUse3.original_price;
1292
+ });
1275
1293
  const isOnSale = $3hooq$solidjs.createMemo(() => salePrice.latest !== originalPrice.latest); // .latest doesn't trigger suspense
1276
1294
  const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
1277
1295
  return $3hooq$solidjsweb.ssrElement("a", $3hooq$solidjsweb.mergeProps({
1278
1296
  "class": "look-item"
1279
- }, () => isExpanded_() && !animationIsRunning() ? {
1280
- href: variantToUse === null || variantToUse === void 0 ? void 0 : variantToUse.page_url
1281
- } : {}), () => ["<!--$-->", $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
1297
+ }, () => {
1298
+ var _variantToUse4;
1299
+ return isExpanded_() && !animationIsRunning() ? {
1300
+ href: (_variantToUse4 = variantToUse()) === null || _variantToUse4 === void 0 ? void 0 : _variantToUse4.page_url
1301
+ } : {};
1302
+ }), () => ["<!--$-->", $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
1282
1303
  when: imageUrl,
1283
1304
  get fallback() {
1284
1305
  return $3hooq$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
@@ -1286,19 +1307,37 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1286
1307
  });
1287
1308
  },
1288
1309
  get children() {
1289
- return $3hooq$solidjsweb.ssr($d66c35b5a6d6d926$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $f3db423dc84bc35d$export$9d4a4b669b1929ab), {
1290
- src: imageUrl,
1291
- get aspectRatio() {
1292
- return isExpanded_() ? 0.75 : 1;
1310
+ return $3hooq$solidjsweb.ssr($d66c35b5a6d6d926$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
1311
+ get when() {
1312
+ return imageUrl();
1293
1313
  },
1294
- get autoAdjustAspectRatio() {
1295
- return isExpanded_() ? "smoothed" : false;
1314
+ get fallback() {
1315
+ return $3hooq$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
1316
+ aspectRatio: 1
1317
+ });
1318
+ },
1319
+ get children() {
1320
+ return $3hooq$solidjsweb.createComponent((0, $f3db423dc84bc35d$export$9d4a4b669b1929ab), {
1321
+ get src() {
1322
+ return imageUrl();
1323
+ },
1324
+ get aspectRatio() {
1325
+ return isExpanded_() ? 0.75 : 1;
1326
+ },
1327
+ get autoAdjustAspectRatio() {
1328
+ return isExpanded_() ? "smoothed" : false;
1329
+ }
1330
+ });
1296
1331
  }
1297
1332
  })), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
1298
- when: secondaryImageUrl,
1333
+ get when() {
1334
+ return secondaryImageUrl();
1335
+ },
1299
1336
  get children() {
1300
1337
  return $3hooq$solidjsweb.createComponent((0, $f3db423dc84bc35d$export$9d4a4b669b1929ab), {
1301
- src: secondaryImageUrl,
1338
+ get src() {
1339
+ return secondaryImageUrl();
1340
+ },
1302
1341
  get aspectRatio() {
1303
1342
  return isExpanded_() ? 0.75 : 1;
1304
1343
  },
@@ -1315,11 +1354,11 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1315
1354
  return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : isExpanded_()) || animationIsRunning();
1316
1355
  },
1317
1356
  get children() {
1318
- var _$escape2;
1319
- return $3hooq$solidjsweb.ssr($d66c35b5a6d6d926$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), (_$escape2 = $3hooq$solidjsweb.escape(variantToUse === null || variantToUse === void 0 ? void 0 : variantToUse.title)) !== null && _$escape2 !== void 0 ? _$escape2 : $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
1357
+ var _$escape2, _variantToUse5;
1358
+ return $3hooq$solidjsweb.ssr($d66c35b5a6d6d926$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), (_$escape2 = $3hooq$solidjsweb.escape((_variantToUse5 = variantToUse()) === null || _variantToUse5 === void 0 ? void 0 : _variantToUse5.title)) !== null && _$escape2 !== void 0 ? _$escape2 : $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
1320
1359
  height: "1em",
1321
1360
  width: "20ch"
1322
- })), "d-price ".concat(isOnSale() ? "sale" : ""), !variantToUse || salePrice.loading ? $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
1361
+ })), "d-price ".concat(isOnSale() ? "sale" : ""), !variantToUse() || salePrice.loading ? $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
1323
1362
  height: "1em",
1324
1363
  width: "20ch"
1325
1364
  })) : $3hooq$solidjsweb.escape(salePrice()), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
@@ -1327,7 +1366,7 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1327
1366
  return isOnSale();
1328
1367
  },
1329
1368
  get children() {
1330
- return $3hooq$solidjsweb.ssr($d66c35b5a6d6d926$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), !variantToUse || originalPrice.loading ? $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
1369
+ return $3hooq$solidjsweb.ssr($d66c35b5a6d6d926$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), !variantToUse() || originalPrice.loading ? $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $a7f7d416e6f61504$export$89c6019e4baa40b1), {
1331
1370
  height: "1em",
1332
1371
  width: "20ch"
1333
1372
  })) : $3hooq$solidjsweb.escape(originalPrice()));
@@ -1385,7 +1424,7 @@ async function $dfa95866b27a2a53$var$checkIfIsAffectedByChromeBug326498383() {
1385
1424
  // Passive to make it more likely to run the callback before our timeout if the browser is under high load during the test
1386
1425
  {
1387
1426
  once: true,
1388
- passive: true
1427
+ passive: false
1389
1428
  });
1390
1429
  await timeoutPromise;
1391
1430
  } catch (e) {
@@ -1393,7 +1432,7 @@ async function $dfa95866b27a2a53$var$checkIfIsAffectedByChromeBug326498383() {
1393
1432
  }
1394
1433
  return isAffected;
1395
1434
  }
1396
- var $e0b3f1f332b6863b$var$_tmpl$ = ["<div", ' class="scroll-padding"><div class="', '" style="', '">', "</div></div>"];
1435
+ var $e0b3f1f332b6863b$var$_tmpl$ = ["<div", ' class="scroll-padding">', "</div>"];
1397
1436
  function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
1398
1437
  let {
1399
1438
  displays_: displays_,
@@ -1410,31 +1449,42 @@ function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
1410
1449
  // The following three signals just contain the state if the animations are actually running and should only be set by the respective animation code
1411
1450
  const textFadeInAnimationRunning = $3hooq$solidjs.createSignal(false);
1412
1451
  const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
1413
- // These expanded variables are what's used to trigger the second and first phase animations
1414
1452
  $dfa95866b27a2a53$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
1415
1453
  return $3hooq$solidjsweb.createComponent((0, $d067f3a30f047b41$export$e68cff63f76bd15b), {
1416
1454
  get children() {
1417
1455
  return $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
1418
1456
  get when() {
1419
- return containerWidth_();
1457
+ return containerWidth_() || !displays_;
1420
1458
  },
1421
1459
  get children() {
1422
- return $3hooq$solidjsweb.ssr($e0b3f1f332b6863b$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "look-overlay ".concat(userWantsExpanded() ? "expanded" : "", " ").concat(!getSecondPartAnimationRunning() && userWantsExpanded() ? "resting-fully-expanded" : ""), $3hooq$solidjsweb.ssrStyle("--look-card-width:".concat(containerWidth_(), "px;--look-item-height:").concat(lookItemHeight() || 200, "px")), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.For), {
1423
- each: displays_,
1424
- children: (display, index) => $3hooq$solidjsweb.createComponent((0, $d66c35b5a6d6d926$export$b73ed90f0ee50dc3), {
1425
- animationDuration_: animationDuration_,
1426
- display_: display,
1427
- FavoriteButton_: FavoriteButton_,
1428
- isExpanded_: userWantsExpanded,
1429
- textFadeInAnimationRunning_: textFadeInAnimationRunning,
1430
- outerRef_: el => $3hooq$solidjs.createEffect(() => {
1431
- if (index() !== 0) return;
1432
- const resizeObserver = new ResizeObserver($3hooq$depictaiutilishared.catchify(records => setLookItemHeight(records.at(-1).contentRect.height)));
1433
- resizeObserver.observe(el);
1434
- $3hooq$solidjs.onCleanup(() => resizeObserver.disconnect());
1435
- })
1436
- })
1437
- })));
1460
+ return $3hooq$solidjsweb.ssr($e0b3f1f332b6863b$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrElement("div", $3hooq$solidjsweb.mergeProps({
1461
+ get ["class"]() {
1462
+ return "look-overlay ".concat(userWantsExpanded() ? "expanded" : "", " ").concat(!getSecondPartAnimationRunning() && userWantsExpanded() ? "resting-fully-expanded" : "");
1463
+ }
1464
+ }, () => displays_ && {
1465
+ style: "--look-card-width:".concat(containerWidth_(), "px;--look-item-height:").concat(lookItemHeight() || 200, "px")
1466
+ }), () => $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Index), {
1467
+ get each() {
1468
+ return displays_ || Array.from({
1469
+ length: 4
1470
+ });
1471
+ },
1472
+ children: (display, index) => {
1473
+ return $3hooq$solidjsweb.createComponent((0, $d66c35b5a6d6d926$export$b73ed90f0ee50dc3), {
1474
+ animationDuration_: animationDuration_,
1475
+ display_: display,
1476
+ FavoriteButton_: FavoriteButton_,
1477
+ isExpanded_: userWantsExpanded,
1478
+ textFadeInAnimationRunning_: textFadeInAnimationRunning,
1479
+ outerRef_: el => $3hooq$solidjs.createEffect(() => {
1480
+ if (index !== 0) return;
1481
+ const resizeObserver = new ResizeObserver($3hooq$depictaiutilishared.catchify(records => setLookItemHeight(records.at(-1).contentRect.height)));
1482
+ resizeObserver.observe(el);
1483
+ $3hooq$solidjs.onCleanup(() => resizeObserver.disconnect());
1484
+ })
1485
+ });
1486
+ }
1487
+ })), false));
1438
1488
  }
1439
1489
  });
1440
1490
  }
@@ -1460,30 +1510,35 @@ function $e0b3f1f332b6863b$var$scrollingFunctionForChrome(element, targetScrollY
1460
1510
  // Bootstrap our animation - it will get called right before next frame shall be rendered.
1461
1511
  requestAnimationFrame(step);
1462
1512
  }
1463
- var $47e3c3102c78121b$var$_tmpl$ = ["<div", ' class="look-card" style="', '"></div>'];
1464
- function $47e3c3102c78121b$export$44809a8a3e867e30(display, info, FavoriteButton_) {
1513
+ var $47e3c3102c78121b$var$_tmpl$ = ["<div", ' class="', '"></div>'];
1514
+ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
1515
+ let {
1516
+ display_: display_,
1517
+ expandedLooksSignal_: [expandedLooks_, setExpandedLooks],
1518
+ FavoriteButton_: FavoriteButton_,
1519
+ placeholderImageAspectRatio_: placeholderImageAspectRatio_,
1520
+ animationDuration_: animationDuration_
1521
+ } = _ref;
1465
1522
  // TODO: shopify, run displayTransformers to get dynamic prices
1466
1523
  // TODO: format prices
1467
- const animationDuration_ = 300;
1468
- const [coverImage] = (display === null || display === void 0 ? void 0 : display.image_urls) || [];
1524
+ const [coverImage] = (display_ === null || display_ === void 0 ? void 0 : display_.image_urls) || [];
1469
1525
  const useWantsExpandedSignal_ = $3hooq$solidjs.createSignal(false);
1470
1526
  const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
1471
- const [expandedLooks_, setExpandedLooks] = (info === null || info === void 0 ? void 0 : info.expandedLooksSignal_) || [];
1472
1527
  const supportsHover_ = $3e17e871e9d0911d$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
1473
1528
  const us = Symbol("look");
1474
- const container = $3hooq$solidjsweb.ssr($47e3c3102c78121b$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrStyle("--animation-duration: ".concat(animationDuration_, "ms")));
1529
+ const container = $3hooq$solidjsweb.ssr($47e3c3102c78121b$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), "look-card ".concat(!display_ ? "placeholder" : ""));
1475
1530
  const containerWidth_ = $c387d7f1d9fb66c0$export$ebdc3711f7e02ccd(container);
1476
- const clickHandler = $3hooq$depictaiutilishared.catchify(_ref => {
1531
+ const clickHandler = $3hooq$depictaiutilishared.catchify(_ref2 => {
1477
1532
  let {
1478
1533
  target: target
1479
- } = _ref;
1534
+ } = _ref2;
1480
1535
  if (target !== container && !container.contains(target))
1481
1536
  // When clicking outside the look, close it
1482
1537
  setUserWantsExpanded(false);
1483
1538
  });
1484
1539
  addEventListener("click", clickHandler);
1485
1540
  $3hooq$solidjs.onCleanup(() => removeEventListener("click", clickHandler));
1486
- $3hooq$solidjs.createEffect(() => setExpandedLooks === null || setExpandedLooks === void 0 ? void 0 : setExpandedLooks(prev => {
1541
+ $3hooq$solidjs.createEffect(() => setExpandedLooks(prev => {
1487
1542
  if (userWantsExpanded()) {
1488
1543
  // Close the other expanded looks
1489
1544
  prev.clear();
@@ -1493,41 +1548,41 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(display, info, FavoriteButton
1493
1548
  return prev;
1494
1549
  }));
1495
1550
  // Close us if another look expands
1496
- $3hooq$solidjs.createEffect(() => expandedLooks_ && !expandedLooks_().has(us) && setUserWantsExpanded(false));
1497
- $3hooq$solidjsweb.insert(container, () => $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
1498
- when: display,
1551
+ $3hooq$solidjs.createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
1552
+ $3hooq$solidjsweb.insert(container, () => [$3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
1553
+ when: display_,
1499
1554
  get fallback() {
1500
1555
  return $3hooq$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
1501
- width: "100%",
1502
- height: "100%"
1556
+ aspectRatio: placeholderImageAspectRatio_
1503
1557
  });
1504
1558
  },
1505
1559
  get children() {
1506
- return [$3hooq$solidjsweb.createComponent((0, $f3db423dc84bc35d$export$9d4a4b669b1929ab), {
1560
+ return $3hooq$solidjsweb.createComponent((0, $f3db423dc84bc35d$export$9d4a4b669b1929ab), {
1507
1561
  src: coverImage,
1508
- aspectRatio: 0.75,
1562
+ aspectRatio: placeholderImageAspectRatio_,
1509
1563
  autoAdjustAspectRatio: true
1510
- }), $3hooq$solidjsweb.createComponent((0, $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae), {
1511
- get displays_() {
1512
- return display === null || display === void 0 ? void 0 : display.displays;
1513
- },
1514
- userWantsExpandedSignal_: useWantsExpandedSignal_,
1515
- containerWidth_: containerWidth_,
1516
- animationDuration_: animationDuration_,
1517
- supportsHover_: supportsHover_,
1518
- FavoriteButton_: FavoriteButton_
1519
- })];
1564
+ });
1520
1565
  }
1521
- }));
1566
+ }), $3hooq$solidjsweb.createComponent((0, $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae), {
1567
+ get displays_() {
1568
+ return display_ === null || display_ === void 0 ? void 0 : display_.displays;
1569
+ },
1570
+ userWantsExpandedSignal_: useWantsExpandedSignal_,
1571
+ containerWidth_: containerWidth_,
1572
+ animationDuration_: animationDuration_,
1573
+ supportsHover_: supportsHover_,
1574
+ FavoriteButton_: FavoriteButton_
1575
+ })]);
1522
1576
  return container;
1523
1577
  }
1524
- var $8446f782881fa12e$var$_tmpl$ = ["<div", ' class="depict recommendations looks">', "</div>"];
1578
+ var $8446f782881fa12e$var$_tmpl$ = ["<div", ' class="depict recommendations looks" style="', '">', "</div>"];
1525
1579
  let $8446f782881fa12e$var$expandedLooksSignal_;
1526
1580
  function $8446f782881fa12e$export$1935e6bdfc5ed8ce(props) {
1527
1581
  return $d05611ff6b8c8357$export$23fca46f3143581f(() => {
1528
1582
  $8446f782881fa12e$var$expandedLooksSignal_ || ($8446f782881fa12e$var$expandedLooksSignal_ = $3hooq$solidjs.createSignal(new Set(), {
1529
1583
  equals: false
1530
1584
  }));
1585
+ const expandingAnimationDuration = 240;
1531
1586
  const grid_spacing_override = $3hooq$solidjs.createMemo(() => {
1532
1587
  const {
1533
1588
  gridSpacing_: gridSpacing_
@@ -1559,13 +1614,16 @@ function $8446f782881fa12e$export$1935e6bdfc5ed8ce(props) {
1559
1614
  return [];
1560
1615
  return decoded.listings;
1561
1616
  });
1562
- return $3hooq$solidjsweb.ssr($8446f782881fa12e$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $d067f3a30f047b41$export$e68cff63f76bd15b), {
1617
+ return $3hooq$solidjsweb.ssr($8446f782881fa12e$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrStyle("--animation-duration: ".concat(expandingAnimationDuration, "ms")), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $d067f3a30f047b41$export$e68cff63f76bd15b), {
1563
1618
  get children() {
1564
1619
  return $236a257ee52e5414$export$d41d19e89346fa2({
1565
- product_card_template_: (display, info) => $47e3c3102c78121b$export$44809a8a3e867e30(display, info ? {
1566
- ...info,
1620
+ product_card_template_: (display, info) => $47e3c3102c78121b$export$44809a8a3e867e30({
1621
+ display_: display,
1622
+ FavoriteButton_: props.FavoriteButton_,
1623
+ placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
1624
+ animationDuration_: expandingAnimationDuration,
1567
1625
  expandedLooksSignal_: $8446f782881fa12e$var$expandedLooksSignal_
1568
- } : info, props.FavoriteButton_),
1626
+ }),
1569
1627
  recommendations_resource_: looksResource,
1570
1628
  title_: () => props.title_,
1571
1629
  layout_options_: $3hooq$solidjs.createMemo(() => ({
@@ -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.2.0";
13
+ export const version = "4.2.1";
14
14
  declare const LISTING_ID = "listingId";
15
15
  declare const EXTERNAL_ID = "externalId";
16
16
  type ScrollRestorationData = {
@@ -249,6 +249,7 @@ export function LooksSlider(props: {
249
249
  merchant_: string;
250
250
  market_: string;
251
251
  locale_: string;
252
+ imagePlaceholderAspectRatio_: number | string;
252
253
  title_?: JSX.Element;
253
254
  FavoriteButton_?: (props: {
254
255
  display_: ModernDisplay | null | undefined;