@depict-ai/portal-components 2.7.27 → 2.7.28
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/dist/main.js
CHANGED
|
@@ -20,7 +20,7 @@ $parcel$export(module.exports, "ExpandingSection", () => $2214dc111b9e2866$expor
|
|
|
20
20
|
$parcel$export(module.exports, "ReactLookCard", () => $35bab9ff48bfe404$export$48787da2a5568bc);
|
|
21
21
|
$parcel$export(module.exports, "version", () => $0a017be3a74fcc94$export$83d89fbfd8236492);
|
|
22
22
|
/*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
|
|
23
|
-
const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.7.
|
|
23
|
+
const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.7.28";
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -213,7 +213,8 @@ function $3375ddd88f77967d$export$f11681c54c860912(display, info, configuredOpti
|
|
|
213
213
|
video_: ()=>variantToShow()?.video,
|
|
214
214
|
configuredOptions_: configuredOptions_,
|
|
215
215
|
cardIsHovered_: ()=>showVariantIndex() === display()?.variant_index && cardIsHovered(),
|
|
216
|
-
aspectRatio_: aspectRatio_
|
|
216
|
+
aspectRatio_: aspectRatio_,
|
|
217
|
+
noHoverSupport_: noHoverSupport_
|
|
217
218
|
});
|
|
218
219
|
}
|
|
219
220
|
}), null);
|
|
@@ -628,7 +629,7 @@ function $3375ddd88f77967d$var$setStyleForTextOptions({ style: style }, options)
|
|
|
628
629
|
(0, $7jsgb$solidjs.createEffect)(()=>$3375ddd88f77967d$var$setPropertyIfExists(style, "--color", options().color));
|
|
629
630
|
(0, $7jsgb$solidjs.createEffect)(()=>$3375ddd88f77967d$var$setPropertyIfExists(style, "--background", options().bg_color));
|
|
630
631
|
}
|
|
631
|
-
function $3375ddd88f77967d$var$ImagesAndVideos({ image_urls_: image_urls_, video_: video_, configuredOptions_: configuredOptions_, cardIsHovered_: cardIsHovered_, aspectRatio_: aspectRatio_ }) {
|
|
632
|
+
function $3375ddd88f77967d$var$ImagesAndVideos({ image_urls_: image_urls_, video_: video_, configuredOptions_: configuredOptions_, cardIsHovered_: cardIsHovered_, aspectRatio_: aspectRatio_, noHoverSupport_: noHoverSupport_ }) {
|
|
632
633
|
const PLPLayout = (0, $7jsgb$depictaiuilatest.usePLPLayout)();
|
|
633
634
|
const isAlreadyInSlider = (0, $7jsgb$solidjs.createMemo)(()=>!!((0, $7jsgb$depictaiuilatest.useSlidableInformation)() || PLPLayout?.()?.startsWith("slider")));
|
|
634
635
|
const containerClasses = ()=>[
|
|
@@ -637,7 +638,7 @@ function $3375ddd88f77967d$var$ImagesAndVideos({ image_urls_: image_urls_, video
|
|
|
637
638
|
];
|
|
638
639
|
// Don't make cards swipable inside of sliders (PLP slider or recs slider)
|
|
639
640
|
const slidable = (0, $7jsgb$solidjs.createMemo)(()=>!isAlreadyInSlider() && configuredOptions_().image_carousel);
|
|
640
|
-
const hoverImageDisabled = (0, $7jsgb$solidjs.createMemo)(()=>!configuredOptions_().use_hover_image);
|
|
641
|
+
const hoverImageDisabled = (0, $7jsgb$solidjs.createMemo)(()=>!configuredOptions_().use_hover_image || noHoverSupport_());
|
|
641
642
|
const video_urls = ()=>video_()?.video_urls;
|
|
642
643
|
const Container = (props)=>{
|
|
643
644
|
const resolved = (0, $7jsgb$solidjs.children)(()=>props.children);
|
package/dist/module.js
CHANGED
|
@@ -7,7 +7,7 @@ import {createContext as $2MCgq$createContext, createMemo as $2MCgq$createMemo,
|
|
|
7
7
|
import {createPortal as $2MCgq$createPortal} from "react-dom";
|
|
8
8
|
|
|
9
9
|
/*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
|
|
10
|
-
const $91c11b750e80ede3$export$83d89fbfd8236492 = "2.7.
|
|
10
|
+
const $91c11b750e80ede3$export$83d89fbfd8236492 = "2.7.28";
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -200,7 +200,8 @@ function $29535f590238371c$export$f11681c54c860912(display, info, configuredOpti
|
|
|
200
200
|
video_: ()=>variantToShow()?.video,
|
|
201
201
|
configuredOptions_: configuredOptions_,
|
|
202
202
|
cardIsHovered_: ()=>showVariantIndex() === display()?.variant_index && cardIsHovered(),
|
|
203
|
-
aspectRatio_: aspectRatio_
|
|
203
|
+
aspectRatio_: aspectRatio_,
|
|
204
|
+
noHoverSupport_: noHoverSupport_
|
|
204
205
|
});
|
|
205
206
|
}
|
|
206
207
|
}), null);
|
|
@@ -615,7 +616,7 @@ function $29535f590238371c$var$setStyleForTextOptions({ style: style }, options)
|
|
|
615
616
|
(0, $2MCgq$createEffect)(()=>$29535f590238371c$var$setPropertyIfExists(style, "--color", options().color));
|
|
616
617
|
(0, $2MCgq$createEffect)(()=>$29535f590238371c$var$setPropertyIfExists(style, "--background", options().bg_color));
|
|
617
618
|
}
|
|
618
|
-
function $29535f590238371c$var$ImagesAndVideos({ image_urls_: image_urls_, video_: video_, configuredOptions_: configuredOptions_, cardIsHovered_: cardIsHovered_, aspectRatio_: aspectRatio_ }) {
|
|
619
|
+
function $29535f590238371c$var$ImagesAndVideos({ image_urls_: image_urls_, video_: video_, configuredOptions_: configuredOptions_, cardIsHovered_: cardIsHovered_, aspectRatio_: aspectRatio_, noHoverSupport_: noHoverSupport_ }) {
|
|
619
620
|
const PLPLayout = (0, $2MCgq$usePLPLayout)();
|
|
620
621
|
const isAlreadyInSlider = (0, $2MCgq$createMemo)(()=>!!((0, $2MCgq$useSlidableInformation)() || PLPLayout?.()?.startsWith("slider")));
|
|
621
622
|
const containerClasses = ()=>[
|
|
@@ -624,7 +625,7 @@ function $29535f590238371c$var$ImagesAndVideos({ image_urls_: image_urls_, video
|
|
|
624
625
|
];
|
|
625
626
|
// Don't make cards swipable inside of sliders (PLP slider or recs slider)
|
|
626
627
|
const slidable = (0, $2MCgq$createMemo)(()=>!isAlreadyInSlider() && configuredOptions_().image_carousel);
|
|
627
|
-
const hoverImageDisabled = (0, $2MCgq$createMemo)(()=>!configuredOptions_().use_hover_image);
|
|
628
|
+
const hoverImageDisabled = (0, $2MCgq$createMemo)(()=>!configuredOptions_().use_hover_image || noHoverSupport_());
|
|
628
629
|
const video_urls = ()=>video_()?.video_urls;
|
|
629
630
|
const Container = (props)=>{
|
|
630
631
|
const resolved = (0, $2MCgq$children)(()=>props.children);
|
package/package.json
CHANGED
|
@@ -267,6 +267,7 @@ export function DefaultSolidProductCard(
|
|
|
267
267
|
configuredOptions_={configuredOptions_}
|
|
268
268
|
cardIsHovered_={() => showVariantIndex() === display()?.variant_index && cardIsHovered()}
|
|
269
269
|
aspectRatio_={aspectRatio_}
|
|
270
|
+
noHoverSupport_={noHoverSupport_}
|
|
270
271
|
/>
|
|
271
272
|
</LinkWrapped>
|
|
272
273
|
|
|
@@ -677,19 +678,21 @@ function ImagesAndVideos({
|
|
|
677
678
|
configuredOptions_,
|
|
678
679
|
cardIsHovered_,
|
|
679
680
|
aspectRatio_,
|
|
681
|
+
noHoverSupport_,
|
|
680
682
|
}: {
|
|
681
683
|
image_urls_: Accessor<undefined | string[]>;
|
|
682
684
|
video_: Accessor<undefined | { preview_image_url: string; video_urls: string[] }>;
|
|
683
685
|
configuredOptions_: Accessor<ProductCardSchema>;
|
|
684
686
|
cardIsHovered_: Accessor<boolean>;
|
|
685
687
|
aspectRatio_: Accessor<number>;
|
|
688
|
+
noHoverSupport_: Accessor<boolean>;
|
|
686
689
|
}) {
|
|
687
690
|
const PLPLayout = usePLPLayout();
|
|
688
691
|
const isAlreadyInSlider = createMemo(() => !!(useSlidableInformation() || PLPLayout?.()?.startsWith("slider")));
|
|
689
692
|
const containerClasses = () => ["image-video", "border-radius-" + configuredOptions_().image_radius] as const;
|
|
690
693
|
// Don't make cards swipable inside of sliders (PLP slider or recs slider)
|
|
691
694
|
const slidable = createMemo(() => !isAlreadyInSlider() && configuredOptions_().image_carousel);
|
|
692
|
-
const hoverImageDisabled = createMemo(() => !configuredOptions_().use_hover_image);
|
|
695
|
+
const hoverImageDisabled = createMemo(() => !configuredOptions_().use_hover_image || noHoverSupport_());
|
|
693
696
|
const video_urls = () => video_()?.video_urls;
|
|
694
697
|
|
|
695
698
|
const Container = (props: { children: JSX.Element }) => {
|