@depict-ai/portal-components 2.7.11 → 2.7.13
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 +27 -29
- package/dist/module.js +30 -31
- package/package.json +3 -2
- package/src/specialForShopify/DefaultSolidProductCard.tsx +3 -1
package/dist/main.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var $7jsgb$depictaiutilisharedlatest = require("@depict-ai/utilishared/latest");
|
|
2
2
|
var $7jsgb$solidjsweb = require("solid-js/web");
|
|
3
|
-
var $7jsgb$depictaiuilatest = require("@depict-ai/ui/latest");
|
|
4
|
-
var $7jsgb$solidjs = require("solid-js");
|
|
5
3
|
var $7jsgb$react = require("react");
|
|
6
4
|
var $7jsgb$solidjsstore = require("solid-js/store");
|
|
5
|
+
var $7jsgb$depictaiuilatest = require("@depict-ai/ui/latest");
|
|
6
|
+
var $7jsgb$solidjs = require("solid-js");
|
|
7
7
|
var $7jsgb$reactdom = require("react-dom");
|
|
8
8
|
|
|
9
9
|
|
|
@@ -11,7 +11,6 @@ function $parcel$export(e, n, v, s) {
|
|
|
11
11
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
$parcel$export(module.exports, "DefaultSolidProductCard", () => $3375ddd88f77967d$export$f11681c54c860912);
|
|
15
14
|
$parcel$export(module.exports, "ReactDefaultProductCard", () => $70cc6bd7e3f1dd4b$export$d1a48be4967fe67c);
|
|
16
15
|
$parcel$export(module.exports, "ReactSelectedFilters", () => $19e9e02e1e300b6d$export$aea1707d7b01c3a2);
|
|
17
16
|
$parcel$export(module.exports, "ReactFilterBody", () => $240090d16a629bfe$export$d929db7fb6179159);
|
|
@@ -19,10 +18,33 @@ $parcel$export(module.exports, "ExpandingSection", () => $2214dc111b9e2866$expor
|
|
|
19
18
|
$parcel$export(module.exports, "ReactLookCard", () => $35bab9ff48bfe404$export$48787da2a5568bc);
|
|
20
19
|
$parcel$export(module.exports, "version", () => $0a017be3a74fcc94$export$83d89fbfd8236492);
|
|
21
20
|
/*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
|
|
22
|
-
const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.7.
|
|
21
|
+
const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.7.13";
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
23
25
|
|
|
24
26
|
|
|
25
27
|
|
|
28
|
+
function $d38f1fd3cc4cd6b2$export$f6e64e17bd69eeef({ solid_component: solid_component, props: props, wrapper_type: wrapper_type = "div", wrapper_style: wrapper_style = {}, className: className }) {
|
|
29
|
+
const wrapper_element_ref = (0, $7jsgb$react.useRef)();
|
|
30
|
+
const [[store, write_store]] = (0, $7jsgb$react.useState)(()=>(0, $7jsgb$solidjsstore.createStore)(props));
|
|
31
|
+
// Update store when props change
|
|
32
|
+
write_store((0, $7jsgb$solidjsstore.reconcile)(props));
|
|
33
|
+
(0, $7jsgb$react.useEffect)(()=>{
|
|
34
|
+
const wrapper_element = wrapper_element_ref.current;
|
|
35
|
+
// If someone only rendered a solid component on the client that *could* be hydrated (no childNodes) then we fall back to `render` to avoid solid complaining about not being able to hydrate or crashing because the result of generateHydrationScript hasn't run at all
|
|
36
|
+
// This can happen for HMR or when SSR capable components are only rendered on the client
|
|
37
|
+
const dispose = (0, $7jsgb$solidjsweb.render)(()=>solid_component(store, wrapper_element), wrapper_element);
|
|
38
|
+
return dispose;
|
|
39
|
+
}, []);
|
|
40
|
+
return (0, $7jsgb$react.createElement)(wrapper_type, {
|
|
41
|
+
ref: wrapper_element_ref,
|
|
42
|
+
style: wrapper_style,
|
|
43
|
+
className: className
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
26
48
|
|
|
27
49
|
|
|
28
50
|
|
|
@@ -208,7 +230,7 @@ function $3375ddd88f77967d$export$f11681c54c860912(display, info, configuredOpti
|
|
|
208
230
|
(0, $7jsgb$solidjs.createEffect)(()=>(0, $7jsgb$depictaiutilisharedlatest.dlog)("Got passed display", JSON.parse(JSON.stringify(display()))));
|
|
209
231
|
(0, $7jsgb$solidjs.createEffect)(()=>noHoverSupport_() && setCardIsHovered(false));
|
|
210
232
|
// For switch from placeholders to product
|
|
211
|
-
(0, $7jsgb$solidjs.createEffect)(()=>!showVariantIndex() && defaultVariantIndex() && setShowVariantIndex(defaultVariantIndex()));
|
|
233
|
+
(0, $7jsgb$solidjs.createEffect)(()=>!showVariantIndex() && defaultVariantIndex() != undefined && setShowVariantIndex(defaultVariantIndex()));
|
|
212
234
|
return (0, $7jsgb$solidjsweb.createComponent)($3375ddd88f77967d$var$ContainsColorSwatchesProvider, {
|
|
213
235
|
get children () {
|
|
214
236
|
var _el$3 = $3375ddd88f77967d$var$_tmpl$3();
|
|
@@ -1010,30 +1032,6 @@ function $3375ddd88f77967d$var$InComponentOrDiv(props) {
|
|
|
1010
1032
|
|
|
1011
1033
|
|
|
1012
1034
|
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
function $d38f1fd3cc4cd6b2$export$f6e64e17bd69eeef({ solid_component: solid_component, props: props, wrapper_type: wrapper_type = "div", wrapper_style: wrapper_style = {}, className: className }) {
|
|
1016
|
-
const wrapper_element_ref = (0, $7jsgb$react.useRef)();
|
|
1017
|
-
const [[store, write_store]] = (0, $7jsgb$react.useState)(()=>(0, $7jsgb$solidjsstore.createStore)(props));
|
|
1018
|
-
// Update store when props change
|
|
1019
|
-
write_store((0, $7jsgb$solidjsstore.reconcile)(props));
|
|
1020
|
-
(0, $7jsgb$react.useEffect)(()=>{
|
|
1021
|
-
const wrapper_element = wrapper_element_ref.current;
|
|
1022
|
-
// If someone only rendered a solid component on the client that *could* be hydrated (no childNodes) then we fall back to `render` to avoid solid complaining about not being able to hydrate or crashing because the result of generateHydrationScript hasn't run at all
|
|
1023
|
-
// This can happen for HMR or when SSR capable components are only rendered on the client
|
|
1024
|
-
const dispose = (0, $7jsgb$solidjsweb.render)(()=>solid_component(store, wrapper_element), wrapper_element);
|
|
1025
|
-
return dispose;
|
|
1026
|
-
}, []);
|
|
1027
|
-
return (0, $7jsgb$react.createElement)(wrapper_type, {
|
|
1028
|
-
ref: wrapper_element_ref,
|
|
1029
|
-
style: wrapper_style,
|
|
1030
|
-
className: className
|
|
1031
|
-
});
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
1035
|
function $70cc6bd7e3f1dd4b$export$d1a48be4967fe67c(react_props) {
|
|
1038
1036
|
return (0, $d38f1fd3cc4cd6b2$export$f6e64e17bd69eeef)({
|
|
1039
1037
|
solid_component: (props_store)=>{
|
package/dist/module.js
CHANGED
|
@@ -1,16 +1,39 @@
|
|
|
1
|
-
import {add_to_version_info as $2MCgq$add_to_version_info,
|
|
2
|
-
import {template as $2MCgq$template, createComponent as $2MCgq$createComponent, addEventListener as $2MCgq$addEventListener, use as $2MCgq$use, insert as $2MCgq$insert, effect as $2MCgq$effect, className as $2MCgq$className, setAttribute as $2MCgq$setAttribute, memo as $2MCgq$memo, style as $2MCgq$style, classList as $2MCgq$classList, spread as $2MCgq$spread, mergeProps as $2MCgq$mergeProps, delegateEvents as $2MCgq$delegateEvents
|
|
3
|
-
import {media_query_to_accessor as $2MCgq$media_query_to_accessor, TextPlaceholder as $2MCgq$TextPlaceholder, useSlidableInformation as $2MCgq$useSlidableInformation, SlidableItems as $2MCgq$SlidableItems, ImagePlaceholder as $2MCgq$ImagePlaceholder, ImageContainer as $2MCgq$ImageContainer, ShopifyContainedImage as $2MCgq$ShopifyContainedImage, useVisibilityState as $2MCgq$useVisibilityState, useProductCardIndex as $2MCgq$useProductCardIndex, useProductCardIsVisible as $2MCgq$useProductCardIsVisible, accessor_of_object_to_object_with_accessor_values as $2MCgq$accessor_of_object_to_object_with_accessor_values, create_modified_filters as $2MCgq$create_modified_filters, SelectedFilters as $2MCgq$SelectedFilters, FilterBody as $2MCgq$FilterBody, ExpandingDetails as $2MCgq$ExpandingDetails, ListingProvider as $2MCgq$ListingProvider, PseudoRouter as $2MCgq$PseudoRouter, LookCard as $2MCgq$LookCard} from "@depict-ai/ui/latest";
|
|
4
|
-
import {createContext as $2MCgq$createContext, createMemo as $2MCgq$createMemo, createSignal as $2MCgq$createSignal, untrack as $2MCgq$untrack, createResource as $2MCgq$createResource, Suspense as $2MCgq$Suspense, createEffect as $2MCgq$createEffect, Show as $2MCgq$Show, children as $2MCgq$children, onCleanup as $2MCgq$onCleanup, For as $2MCgq$For, createRenderEffect as $2MCgq$createRenderEffect, on as $2MCgq$on, useContext as $2MCgq$useContext} from "solid-js";
|
|
1
|
+
import {add_to_version_info as $2MCgq$add_to_version_info, standard_price_format as $2MCgq$standard_price_format, catchify as $2MCgq$catchify, dlog as $2MCgq$dlog, dwarn as $2MCgq$dwarn} from "@depict-ai/utilishared/latest";
|
|
2
|
+
import {render as $2MCgq$render, template as $2MCgq$template, createComponent as $2MCgq$createComponent, addEventListener as $2MCgq$addEventListener, use as $2MCgq$use, insert as $2MCgq$insert, effect as $2MCgq$effect, className as $2MCgq$className, setAttribute as $2MCgq$setAttribute, memo as $2MCgq$memo, style as $2MCgq$style, classList as $2MCgq$classList, spread as $2MCgq$spread, mergeProps as $2MCgq$mergeProps, delegateEvents as $2MCgq$delegateEvents} from "solid-js/web";
|
|
5
3
|
import {useRef as $2MCgq$useRef, useState as $2MCgq$useState, useEffect as $2MCgq$useEffect, createElement as $2MCgq$createElement, Fragment as $2MCgq$Fragment} from "react";
|
|
6
4
|
import {createStore as $2MCgq$createStore, reconcile as $2MCgq$reconcile} from "solid-js/store";
|
|
5
|
+
import {media_query_to_accessor as $2MCgq$media_query_to_accessor, TextPlaceholder as $2MCgq$TextPlaceholder, useSlidableInformation as $2MCgq$useSlidableInformation, SlidableItems as $2MCgq$SlidableItems, ImagePlaceholder as $2MCgq$ImagePlaceholder, ImageContainer as $2MCgq$ImageContainer, ShopifyContainedImage as $2MCgq$ShopifyContainedImage, useVisibilityState as $2MCgq$useVisibilityState, useProductCardIndex as $2MCgq$useProductCardIndex, useProductCardIsVisible as $2MCgq$useProductCardIsVisible, accessor_of_object_to_object_with_accessor_values as $2MCgq$accessor_of_object_to_object_with_accessor_values, create_modified_filters as $2MCgq$create_modified_filters, SelectedFilters as $2MCgq$SelectedFilters, FilterBody as $2MCgq$FilterBody, ExpandingDetails as $2MCgq$ExpandingDetails, ListingProvider as $2MCgq$ListingProvider, PseudoRouter as $2MCgq$PseudoRouter, LookCard as $2MCgq$LookCard} from "@depict-ai/ui/latest";
|
|
6
|
+
import {createContext as $2MCgq$createContext, createMemo as $2MCgq$createMemo, createSignal as $2MCgq$createSignal, untrack as $2MCgq$untrack, createResource as $2MCgq$createResource, Suspense as $2MCgq$Suspense, createEffect as $2MCgq$createEffect, Show as $2MCgq$Show, children as $2MCgq$children, onCleanup as $2MCgq$onCleanup, For as $2MCgq$For, createRenderEffect as $2MCgq$createRenderEffect, on as $2MCgq$on, useContext as $2MCgq$useContext} from "solid-js";
|
|
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.13";
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
11
14
|
|
|
12
15
|
|
|
13
16
|
|
|
17
|
+
function $0fe03f2fcd2418f8$export$f6e64e17bd69eeef({ solid_component: solid_component, props: props, wrapper_type: wrapper_type = "div", wrapper_style: wrapper_style = {}, className: className }) {
|
|
18
|
+
const wrapper_element_ref = (0, $2MCgq$useRef)();
|
|
19
|
+
const [[store, write_store]] = (0, $2MCgq$useState)(()=>(0, $2MCgq$createStore)(props));
|
|
20
|
+
// Update store when props change
|
|
21
|
+
write_store((0, $2MCgq$reconcile)(props));
|
|
22
|
+
(0, $2MCgq$useEffect)(()=>{
|
|
23
|
+
const wrapper_element = wrapper_element_ref.current;
|
|
24
|
+
// If someone only rendered a solid component on the client that *could* be hydrated (no childNodes) then we fall back to `render` to avoid solid complaining about not being able to hydrate or crashing because the result of generateHydrationScript hasn't run at all
|
|
25
|
+
// This can happen for HMR or when SSR capable components are only rendered on the client
|
|
26
|
+
const dispose = (0, $2MCgq$render)(()=>solid_component(store, wrapper_element), wrapper_element);
|
|
27
|
+
return dispose;
|
|
28
|
+
}, []);
|
|
29
|
+
return (0, $2MCgq$createElement)(wrapper_type, {
|
|
30
|
+
ref: wrapper_element_ref,
|
|
31
|
+
style: wrapper_style,
|
|
32
|
+
className: className
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
14
37
|
|
|
15
38
|
|
|
16
39
|
|
|
@@ -196,7 +219,7 @@ function $29535f590238371c$export$f11681c54c860912(display, info, configuredOpti
|
|
|
196
219
|
(0, $2MCgq$createEffect)(()=>(0, $2MCgq$dlog)("Got passed display", JSON.parse(JSON.stringify(display()))));
|
|
197
220
|
(0, $2MCgq$createEffect)(()=>noHoverSupport_() && setCardIsHovered(false));
|
|
198
221
|
// For switch from placeholders to product
|
|
199
|
-
(0, $2MCgq$createEffect)(()=>!showVariantIndex() && defaultVariantIndex() && setShowVariantIndex(defaultVariantIndex()));
|
|
222
|
+
(0, $2MCgq$createEffect)(()=>!showVariantIndex() && defaultVariantIndex() != undefined && setShowVariantIndex(defaultVariantIndex()));
|
|
200
223
|
return (0, $2MCgq$createComponent)($29535f590238371c$var$ContainsColorSwatchesProvider, {
|
|
201
224
|
get children () {
|
|
202
225
|
var _el$3 = $29535f590238371c$var$_tmpl$3();
|
|
@@ -998,30 +1021,6 @@ function $29535f590238371c$var$InComponentOrDiv(props) {
|
|
|
998
1021
|
|
|
999
1022
|
|
|
1000
1023
|
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
function $0fe03f2fcd2418f8$export$f6e64e17bd69eeef({ solid_component: solid_component, props: props, wrapper_type: wrapper_type = "div", wrapper_style: wrapper_style = {}, className: className }) {
|
|
1004
|
-
const wrapper_element_ref = (0, $2MCgq$useRef)();
|
|
1005
|
-
const [[store, write_store]] = (0, $2MCgq$useState)(()=>(0, $2MCgq$createStore)(props));
|
|
1006
|
-
// Update store when props change
|
|
1007
|
-
write_store((0, $2MCgq$reconcile)(props));
|
|
1008
|
-
(0, $2MCgq$useEffect)(()=>{
|
|
1009
|
-
const wrapper_element = wrapper_element_ref.current;
|
|
1010
|
-
// If someone only rendered a solid component on the client that *could* be hydrated (no childNodes) then we fall back to `render` to avoid solid complaining about not being able to hydrate or crashing because the result of generateHydrationScript hasn't run at all
|
|
1011
|
-
// This can happen for HMR or when SSR capable components are only rendered on the client
|
|
1012
|
-
const dispose = (0, $2MCgq$render)(()=>solid_component(store, wrapper_element), wrapper_element);
|
|
1013
|
-
return dispose;
|
|
1014
|
-
}, []);
|
|
1015
|
-
return (0, $2MCgq$createElement)(wrapper_type, {
|
|
1016
|
-
ref: wrapper_element_ref,
|
|
1017
|
-
style: wrapper_style,
|
|
1018
|
-
className: className
|
|
1019
|
-
});
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
1024
|
function $474e9d712b745d60$export$d1a48be4967fe67c(react_props) {
|
|
1026
1025
|
return (0, $0fe03f2fcd2418f8$export$f6e64e17bd69eeef)({
|
|
1027
1026
|
solid_component: (props_store)=>{
|
|
@@ -1225,4 +1224,4 @@ function $8a700ff0722c56b3$export$48787da2a5568bc(react_props) {
|
|
|
1225
1224
|
(0, $2MCgq$add_to_version_info)("react-ui", (0, $91c11b750e80ede3$export$83d89fbfd8236492));
|
|
1226
1225
|
|
|
1227
1226
|
|
|
1228
|
-
export {$
|
|
1227
|
+
export {$474e9d712b745d60$export$d1a48be4967fe67c as ReactDefaultProductCard, $0cb1638b3c084153$export$aea1707d7b01c3a2 as ReactSelectedFilters, $890b58a81f64b470$export$d929db7fb6179159 as ReactFilterBody, $c79c5cb5e9424dd7$export$4ea53cd12ff17334 as ExpandingSection, $8a700ff0722c56b3$export$48787da2a5568bc as ReactLookCard, $91c11b750e80ede3$export$83d89fbfd8236492 as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/portal-components",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.13",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -70,7 +70,8 @@
|
|
|
70
70
|
"require": "./dist/main.js",
|
|
71
71
|
"sass": "./dist/styles/index.scss"
|
|
72
72
|
},
|
|
73
|
-
"./styles/*": "./dist/styles/*"
|
|
73
|
+
"./styles/*": "./dist/styles/*",
|
|
74
|
+
"./src/specialForShopify/DefaultSolidProductCard.tsx": "./src/specialForShopify/DefaultSolidProductCard.tsx"
|
|
74
75
|
},
|
|
75
76
|
"files": [
|
|
76
77
|
"/dist",
|
|
@@ -279,7 +279,9 @@ export function DefaultSolidProductCard(
|
|
|
279
279
|
|
|
280
280
|
createEffect(() => noHoverSupport_() && setCardIsHovered(false));
|
|
281
281
|
// For switch from placeholders to product
|
|
282
|
-
createEffect(
|
|
282
|
+
createEffect(
|
|
283
|
+
() => !showVariantIndex() && defaultVariantIndex() != undefined && setShowVariantIndex(defaultVariantIndex())
|
|
284
|
+
);
|
|
283
285
|
|
|
284
286
|
return (
|
|
285
287
|
<ContainsColorSwatchesProvider>
|