@depict-ai/ui 4.2.0 → 4.2.2
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 +140 -89
- package/ES10/index.d.ts +3 -2
- package/ES10/index.js +140 -89
- package/latest/index.cjs +116 -84
- package/latest/index.d.ts +3 -2
- package/latest/index.js +116 -84
- package/package.json +4 -4
- package/server/ES10/index.cjs +132 -78
- package/server/ES10/index.d.ts +3 -2
- package/server/ES10/index.js +133 -79
- package/server/latest/index.cjs +108 -73
- package/server/latest/index.d.ts +3 -2
- package/server/latest/index.js +109 -74
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.2.
|
|
97
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.2.2";
|
|
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++) {
|
|
@@ -1208,21 +1208,24 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
|
|
|
1208
1208
|
outerRef_: outerRef_,
|
|
1209
1209
|
animationDuration_: animationDuration_
|
|
1210
1210
|
}) {
|
|
1211
|
-
const variantToUse =
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1211
|
+
const variantToUse = $5vyXB$solidjs.createMemo(() => {
|
|
1212
|
+
const display = display_();
|
|
1213
|
+
return display?.variant_displays[display?.variant_index];
|
|
1214
|
+
});
|
|
1215
|
+
const imageUrls = () => variantToUse()?.image_urls;
|
|
1216
|
+
const imageUrl = $5vyXB$solidjs.createMemo(() => imageUrls()?.[0]);
|
|
1217
|
+
const secondaryImageUrl = $5vyXB$solidjs.createMemo(() => imageUrls()?.[1]);
|
|
1215
1218
|
const [animationIsRunning, setAnimationIsRunning] = textFadeInAnimationRunning_;
|
|
1216
1219
|
const [isExpandedThrottledByOurEffectRun, setIsExpandedThrottledByOurEffectRun] = $5vyXB$solidjs.createSignal($5vyXB$solidjs.untrack(isExpanded_));
|
|
1217
1220
|
const [animationEffectExists, setAnimationEffectExists] = $5vyXB$solidjs.createSignal(false);
|
|
1218
|
-
const [salePrice] = $5vyXB$solidjs.createResource(() => variantToUse?.sale_price);
|
|
1219
|
-
const [originalPrice] = $5vyXB$solidjs.createResource(() => variantToUse?.original_price);
|
|
1221
|
+
const [salePrice] = $5vyXB$solidjs.createResource(() => variantToUse()?.sale_price);
|
|
1222
|
+
const [originalPrice] = $5vyXB$solidjs.createResource(() => variantToUse()?.original_price);
|
|
1220
1223
|
const isOnSale = $5vyXB$solidjs.createMemo(() => salePrice.latest !== originalPrice.latest); // .latest doesn't trigger suspense
|
|
1221
1224
|
const FavoriteButton = FavoriteButton_; // Just to get rid of the type error - TS doesn't understand <Show>
|
|
1222
1225
|
return $5vyXB$solidjsweb.ssrElement("a", $5vyXB$solidjsweb.mergeProps({
|
|
1223
1226
|
"class": "look-item"
|
|
1224
1227
|
}, () => isExpanded_() && !animationIsRunning() ? {
|
|
1225
|
-
href: variantToUse?.page_url
|
|
1228
|
+
href: variantToUse()?.page_url
|
|
1226
1229
|
} : {}), () => ["<!--$-->", $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
1227
1230
|
when: imageUrl,
|
|
1228
1231
|
get fallback() {
|
|
@@ -1231,19 +1234,37 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
|
|
|
1231
1234
|
});
|
|
1232
1235
|
},
|
|
1233
1236
|
get children() {
|
|
1234
|
-
return $5vyXB$solidjsweb.ssr($1ae437d7d388a66e$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1237
|
+
return $5vyXB$solidjsweb.ssr($1ae437d7d388a66e$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
1238
|
+
get when() {
|
|
1239
|
+
return imageUrl();
|
|
1240
|
+
},
|
|
1241
|
+
get fallback() {
|
|
1242
|
+
return $5vyXB$solidjsweb.createComponent((0, $3bc4a89b971a3af5$export$3f37af283f8fb843), {
|
|
1243
|
+
aspectRatio: 1
|
|
1244
|
+
});
|
|
1238
1245
|
},
|
|
1239
|
-
get
|
|
1240
|
-
return
|
|
1246
|
+
get children() {
|
|
1247
|
+
return $5vyXB$solidjsweb.createComponent((0, $d212a67662c5cf38$export$9d4a4b669b1929ab), {
|
|
1248
|
+
get src() {
|
|
1249
|
+
return imageUrl();
|
|
1250
|
+
},
|
|
1251
|
+
get aspectRatio() {
|
|
1252
|
+
return isExpanded_() ? 0.75 : 1;
|
|
1253
|
+
},
|
|
1254
|
+
get autoAdjustAspectRatio() {
|
|
1255
|
+
return isExpanded_() ? "smoothed" : false;
|
|
1256
|
+
}
|
|
1257
|
+
});
|
|
1241
1258
|
}
|
|
1242
1259
|
})), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
1243
|
-
when
|
|
1260
|
+
get when() {
|
|
1261
|
+
return secondaryImageUrl();
|
|
1262
|
+
},
|
|
1244
1263
|
get children() {
|
|
1245
1264
|
return $5vyXB$solidjsweb.createComponent((0, $d212a67662c5cf38$export$9d4a4b669b1929ab), {
|
|
1246
|
-
src
|
|
1265
|
+
get src() {
|
|
1266
|
+
return secondaryImageUrl();
|
|
1267
|
+
},
|
|
1247
1268
|
get aspectRatio() {
|
|
1248
1269
|
return isExpanded_() ? 0.75 : 1;
|
|
1249
1270
|
},
|
|
@@ -1260,10 +1281,10 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
|
|
|
1260
1281
|
return (animationEffectExists() ? isExpandedThrottledByOurEffectRun() : isExpanded_()) || animationIsRunning();
|
|
1261
1282
|
},
|
|
1262
1283
|
get children() {
|
|
1263
|
-
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), {
|
|
1284
|
+
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), {
|
|
1264
1285
|
height: "1em",
|
|
1265
1286
|
width: "20ch"
|
|
1266
|
-
})), `d-price ${isOnSale() ? "sale" : ""}`, !variantToUse || salePrice.loading ? $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
|
|
1287
|
+
})), `d-price ${isOnSale() ? "sale" : ""}`, !variantToUse() || salePrice.loading ? $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
|
|
1267
1288
|
height: "1em",
|
|
1268
1289
|
width: "20ch"
|
|
1269
1290
|
})) : $5vyXB$solidjsweb.escape(salePrice()), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
@@ -1271,7 +1292,7 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
|
|
|
1271
1292
|
return isOnSale();
|
|
1272
1293
|
},
|
|
1273
1294
|
get children() {
|
|
1274
|
-
return $5vyXB$solidjsweb.ssr($1ae437d7d388a66e$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), !variantToUse || originalPrice.loading ? $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
|
|
1295
|
+
return $5vyXB$solidjsweb.ssr($1ae437d7d388a66e$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), !variantToUse() || originalPrice.loading ? $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $061ff5b4c3d36171$export$89c6019e4baa40b1), {
|
|
1275
1296
|
height: "1em",
|
|
1276
1297
|
width: "20ch"
|
|
1277
1298
|
})) : $5vyXB$solidjsweb.escape(originalPrice()));
|
|
@@ -1329,7 +1350,7 @@ async function $b9e830d616d01b31$var$checkIfIsAffectedByChromeBug326498383() {
|
|
|
1329
1350
|
// Passive to make it more likely to run the callback before our timeout if the browser is under high load during the test
|
|
1330
1351
|
{
|
|
1331
1352
|
once: true,
|
|
1332
|
-
passive:
|
|
1353
|
+
passive: false
|
|
1333
1354
|
});
|
|
1334
1355
|
await timeoutPromise;
|
|
1335
1356
|
} catch (e) {
|
|
@@ -1337,7 +1358,7 @@ async function $b9e830d616d01b31$var$checkIfIsAffectedByChromeBug326498383() {
|
|
|
1337
1358
|
}
|
|
1338
1359
|
return isAffected;
|
|
1339
1360
|
}
|
|
1340
|
-
var $905010a06f9aeae5$var$_tmpl$ = ["<div", ' class="scroll-padding"
|
|
1361
|
+
var $905010a06f9aeae5$var$_tmpl$ = ["<div", ' class="scroll-padding">', "</div>"];
|
|
1341
1362
|
function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
|
|
1342
1363
|
displays_: displays_,
|
|
1343
1364
|
FavoriteButton_: FavoriteButton_,
|
|
@@ -1353,31 +1374,42 @@ function $905010a06f9aeae5$export$ebf0b1d4f90c09ae({
|
|
|
1353
1374
|
// The following three signals just contain the state if the animations are actually running and should only be set by the respective animation code
|
|
1354
1375
|
const textFadeInAnimationRunning = $5vyXB$solidjs.createSignal(false);
|
|
1355
1376
|
const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
|
|
1356
|
-
// These expanded variables are what's used to trigger the second and first phase animations
|
|
1357
1377
|
$b9e830d616d01b31$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
|
|
1358
1378
|
return $5vyXB$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
|
|
1359
1379
|
get children() {
|
|
1360
1380
|
return $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
1361
1381
|
get when() {
|
|
1362
|
-
return containerWidth_();
|
|
1382
|
+
return containerWidth_() || !displays_;
|
|
1363
1383
|
},
|
|
1364
1384
|
get children() {
|
|
1365
|
-
return $5vyXB$solidjsweb.ssr($905010a06f9aeae5$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(),
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1385
|
+
return $5vyXB$solidjsweb.ssr($905010a06f9aeae5$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrElement("div", $5vyXB$solidjsweb.mergeProps({
|
|
1386
|
+
get ["class"]() {
|
|
1387
|
+
return `look-overlay ${userWantsExpanded() ? "expanded" : ""} ${!getSecondPartAnimationRunning() && userWantsExpanded() ? "resting-fully-expanded" : ""}`;
|
|
1388
|
+
}
|
|
1389
|
+
}, () => displays_ && {
|
|
1390
|
+
style: `--look-card-width:${containerWidth_()}px;--look-item-height:${lookItemHeight() || 200}px`
|
|
1391
|
+
}), () => $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Index), {
|
|
1392
|
+
get each() {
|
|
1393
|
+
return displays_ || Array.from({
|
|
1394
|
+
length: 4
|
|
1395
|
+
});
|
|
1396
|
+
},
|
|
1397
|
+
children: (display, index) => {
|
|
1398
|
+
return $5vyXB$solidjsweb.createComponent((0, $1ae437d7d388a66e$export$b73ed90f0ee50dc3), {
|
|
1399
|
+
animationDuration_: animationDuration_,
|
|
1400
|
+
display_: display,
|
|
1401
|
+
FavoriteButton_: FavoriteButton_,
|
|
1402
|
+
isExpanded_: userWantsExpanded,
|
|
1403
|
+
textFadeInAnimationRunning_: textFadeInAnimationRunning,
|
|
1404
|
+
outerRef_: el => $5vyXB$solidjs.createEffect(() => {
|
|
1405
|
+
if (index !== 0) return;
|
|
1406
|
+
const resizeObserver = new ResizeObserver($5vyXB$depictaiutilishared.catchify(records => setLookItemHeight(records.at(-1).contentRect.height)));
|
|
1407
|
+
resizeObserver.observe(el);
|
|
1408
|
+
$5vyXB$solidjs.onCleanup(() => resizeObserver.disconnect());
|
|
1409
|
+
})
|
|
1410
|
+
});
|
|
1411
|
+
}
|
|
1412
|
+
})), false));
|
|
1381
1413
|
}
|
|
1382
1414
|
});
|
|
1383
1415
|
}
|
|
@@ -1403,18 +1435,22 @@ function $905010a06f9aeae5$var$scrollingFunctionForChrome(element, targetScrollY
|
|
|
1403
1435
|
// Bootstrap our animation - it will get called right before next frame shall be rendered.
|
|
1404
1436
|
requestAnimationFrame(step);
|
|
1405
1437
|
}
|
|
1406
|
-
var $ad882bbe664dbd53$var$_tmpl$ = ["<div", ' class="
|
|
1407
|
-
function $ad882bbe664dbd53$export$44809a8a3e867e30(
|
|
1438
|
+
var $ad882bbe664dbd53$var$_tmpl$ = ["<div", ' class="', '"></div>'];
|
|
1439
|
+
function $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
1440
|
+
display_: display_,
|
|
1441
|
+
expandedLooksSignal_: [expandedLooks_, setExpandedLooks],
|
|
1442
|
+
FavoriteButton_: FavoriteButton_,
|
|
1443
|
+
placeholderImageAspectRatio_: placeholderImageAspectRatio_,
|
|
1444
|
+
animationDuration_: animationDuration_
|
|
1445
|
+
}) {
|
|
1408
1446
|
// TODO: shopify, run displayTransformers to get dynamic prices
|
|
1409
1447
|
// TODO: format prices
|
|
1410
|
-
const
|
|
1411
|
-
const [coverImage] = display?.image_urls || [];
|
|
1448
|
+
const [coverImage] = display_?.image_urls || [];
|
|
1412
1449
|
const useWantsExpandedSignal_ = $5vyXB$solidjs.createSignal(false);
|
|
1413
1450
|
const [userWantsExpanded, setUserWantsExpanded] = useWantsExpandedSignal_;
|
|
1414
|
-
const [expandedLooks_, setExpandedLooks] = info?.expandedLooksSignal_ || [];
|
|
1415
1451
|
const supportsHover_ = $b54e6192d0caa293$export$d9f36cf74e24d595("(hover: hover) and (pointer: fine)");
|
|
1416
1452
|
const us = Symbol("look");
|
|
1417
|
-
const container = $5vyXB$solidjsweb.ssr($ad882bbe664dbd53$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(),
|
|
1453
|
+
const container = $5vyXB$solidjsweb.ssr($ad882bbe664dbd53$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), `look-card ${!display_ ? "placeholder" : ""}`);
|
|
1418
1454
|
const containerWidth_ = $f13855d1b951b24a$export$ebdc3711f7e02ccd(container);
|
|
1419
1455
|
const clickHandler = $5vyXB$depictaiutilishared.catchify(({
|
|
1420
1456
|
target: target
|
|
@@ -1425,7 +1461,7 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30(display, info, FavoriteButton
|
|
|
1425
1461
|
});
|
|
1426
1462
|
addEventListener("click", clickHandler);
|
|
1427
1463
|
$5vyXB$solidjs.onCleanup(() => removeEventListener("click", clickHandler));
|
|
1428
|
-
$5vyXB$solidjs.createEffect(() => setExpandedLooks
|
|
1464
|
+
$5vyXB$solidjs.createEffect(() => setExpandedLooks(prev => {
|
|
1429
1465
|
if (userWantsExpanded()) {
|
|
1430
1466
|
// Close the other expanded looks
|
|
1431
1467
|
prev.clear();
|
|
@@ -1435,41 +1471,41 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30(display, info, FavoriteButton
|
|
|
1435
1471
|
return prev;
|
|
1436
1472
|
}));
|
|
1437
1473
|
// Close us if another look expands
|
|
1438
|
-
$5vyXB$solidjs.createEffect(() =>
|
|
1439
|
-
$5vyXB$solidjsweb.insert(container, () => $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
1440
|
-
when:
|
|
1474
|
+
$5vyXB$solidjs.createEffect(() => !expandedLooks_().has(us) && setUserWantsExpanded(false));
|
|
1475
|
+
$5vyXB$solidjsweb.insert(container, () => [$5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
1476
|
+
when: display_,
|
|
1441
1477
|
get fallback() {
|
|
1442
1478
|
return $5vyXB$solidjsweb.createComponent((0, $3bc4a89b971a3af5$export$3f37af283f8fb843), {
|
|
1443
|
-
|
|
1444
|
-
height: "100%"
|
|
1479
|
+
aspectRatio: placeholderImageAspectRatio_
|
|
1445
1480
|
});
|
|
1446
1481
|
},
|
|
1447
1482
|
get children() {
|
|
1448
|
-
return
|
|
1483
|
+
return $5vyXB$solidjsweb.createComponent((0, $d212a67662c5cf38$export$9d4a4b669b1929ab), {
|
|
1449
1484
|
src: coverImage,
|
|
1450
|
-
aspectRatio:
|
|
1485
|
+
aspectRatio: placeholderImageAspectRatio_,
|
|
1451
1486
|
autoAdjustAspectRatio: true
|
|
1452
|
-
})
|
|
1453
|
-
get displays_() {
|
|
1454
|
-
return display?.displays;
|
|
1455
|
-
},
|
|
1456
|
-
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1457
|
-
containerWidth_: containerWidth_,
|
|
1458
|
-
animationDuration_: animationDuration_,
|
|
1459
|
-
supportsHover_: supportsHover_,
|
|
1460
|
-
FavoriteButton_: FavoriteButton_
|
|
1461
|
-
})];
|
|
1487
|
+
});
|
|
1462
1488
|
}
|
|
1463
|
-
}))
|
|
1489
|
+
}), $5vyXB$solidjsweb.createComponent((0, $905010a06f9aeae5$export$ebf0b1d4f90c09ae), {
|
|
1490
|
+
get displays_() {
|
|
1491
|
+
return display_?.displays;
|
|
1492
|
+
},
|
|
1493
|
+
userWantsExpandedSignal_: useWantsExpandedSignal_,
|
|
1494
|
+
containerWidth_: containerWidth_,
|
|
1495
|
+
animationDuration_: animationDuration_,
|
|
1496
|
+
supportsHover_: supportsHover_,
|
|
1497
|
+
FavoriteButton_: FavoriteButton_
|
|
1498
|
+
})]);
|
|
1464
1499
|
return container;
|
|
1465
1500
|
}
|
|
1466
|
-
var $072863633018e322$var$_tmpl$ = ["<div", ' class="depict recommendations looks">', "</div>"];
|
|
1501
|
+
var $072863633018e322$var$_tmpl$ = ["<div", ' class="depict recommendations looks" style="', '">', "</div>"];
|
|
1467
1502
|
let $072863633018e322$var$expandedLooksSignal_;
|
|
1468
1503
|
function $072863633018e322$export$1935e6bdfc5ed8ce(props) {
|
|
1469
1504
|
return $95837413165cc2df$export$23fca46f3143581f(() => {
|
|
1470
1505
|
$072863633018e322$var$expandedLooksSignal_ ||= $5vyXB$solidjs.createSignal(new Set(), {
|
|
1471
1506
|
equals: false
|
|
1472
1507
|
});
|
|
1508
|
+
const expandingAnimationDuration = 240;
|
|
1473
1509
|
const grid_spacing_override = $5vyXB$solidjs.createMemo(() => {
|
|
1474
1510
|
const {
|
|
1475
1511
|
gridSpacing_: gridSpacing_
|
|
@@ -1499,13 +1535,16 @@ function $072863633018e322$export$1935e6bdfc5ed8ce(props) {
|
|
|
1499
1535
|
return [];
|
|
1500
1536
|
return decoded.listings;
|
|
1501
1537
|
});
|
|
1502
|
-
return $5vyXB$solidjsweb.ssr($072863633018e322$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
|
|
1538
|
+
return $5vyXB$solidjsweb.ssr($072863633018e322$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrStyle(`--animation-duration: ${expandingAnimationDuration}ms`), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $84798aaa863a4909$export$e68cff63f76bd15b), {
|
|
1503
1539
|
get children() {
|
|
1504
1540
|
return $363ce4d1d71041aa$export$d41d19e89346fa2({
|
|
1505
|
-
product_card_template_: (display, info) => $ad882bbe664dbd53$export$44809a8a3e867e30(
|
|
1506
|
-
|
|
1541
|
+
product_card_template_: (display, info) => $ad882bbe664dbd53$export$44809a8a3e867e30({
|
|
1542
|
+
display_: display,
|
|
1543
|
+
FavoriteButton_: props.FavoriteButton_,
|
|
1544
|
+
placeholderImageAspectRatio_: props.imagePlaceholderAspectRatio_,
|
|
1545
|
+
animationDuration_: expandingAnimationDuration,
|
|
1507
1546
|
expandedLooksSignal_: $072863633018e322$var$expandedLooksSignal_
|
|
1508
|
-
}
|
|
1547
|
+
}),
|
|
1509
1548
|
recommendations_resource_: looksResource,
|
|
1510
1549
|
title_: () => props.title_,
|
|
1511
1550
|
layout_options_: $5vyXB$solidjs.createMemo(() => ({
|
|
@@ -2598,10 +2637,6 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
2598
2637
|
}
|
|
2599
2638
|
function $ca1176b694a6ee2e$export$fe334901e8bebd57() {
|
|
2600
2639
|
const cleanup_fns = [];
|
|
2601
|
-
$5vyXB$depictaiutilishared.dlog("DISABLING SCROLLING");
|
|
2602
|
-
$5vyXB$solidjs.onCleanup(() => {
|
|
2603
|
-
console.log("RE-ENABLING SCROLLING");
|
|
2604
|
-
});
|
|
2605
2640
|
const cleanup = () => cleanup_fns.forEach(f => f());
|
|
2606
2641
|
// use an animation to automatically retain the `overflow` values and all other styling
|
|
2607
2642
|
for (const element of [document.documentElement, document.body]) {
|
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.2.
|
|
13
|
+
export const version = "4.2.2";
|
|
14
14
|
declare const LISTING_ID = "listingId";
|
|
15
15
|
declare const EXTERNAL_ID = "externalId";
|
|
16
16
|
type ScrollRestorationData = {
|
|
@@ -249,9 +249,10 @@ 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
|
-
display_: ModernDisplay | null | undefined
|
|
255
|
+
display_: Accessor<ModernDisplay | null | undefined>;
|
|
255
256
|
}) => JSX.Element;
|
|
256
257
|
}): HTMLDivElement;
|
|
257
258
|
export const prefixes_to_preserve_in_history_dot_state: Set<string>;
|