@depict-ai/portal-components 2.7.7 → 2.7.9
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/index.d.ts +1 -1
- package/dist/main.js +34 -2
- package/dist/module.js +34 -2
- package/package.json +2 -2
- package/src/specialForShopify/DefaultSolidProductCard.tsx +33 -3
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { SearchFilter } from "@depict-ai/types/api/SearchResponse";
|
|
|
3
3
|
import { Locale } from "@depict-ai/react-ui/locales/latest";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
6
|
-
export const version = "2.7.
|
|
6
|
+
export const version = "2.7.9";
|
|
7
7
|
type TextOptions = {
|
|
8
8
|
/** Enabled */
|
|
9
9
|
enabled: boolean;
|
package/dist/main.js
CHANGED
|
@@ -18,7 +18,7 @@ $parcel$export(module.exports, "ExpandingSection", () => $2214dc111b9e2866$expor
|
|
|
18
18
|
$parcel$export(module.exports, "ReactLookCard", () => $35bab9ff48bfe404$export$48787da2a5568bc);
|
|
19
19
|
$parcel$export(module.exports, "version", () => $0a017be3a74fcc94$export$83d89fbfd8236492);
|
|
20
20
|
/*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
|
|
21
|
-
const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.7.
|
|
21
|
+
const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.7.9";
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -53,18 +53,39 @@ var $3375ddd88f77967d$var$_tmpl$ = /*#__PURE__*/ (0, $7jsgb$solidjsweb.template)
|
|
|
53
53
|
// You can import from the solid-js library here and leverage its reactivity to create an interactive UI.
|
|
54
54
|
// Also, Depict packages can be imported (you must import /latest from those).
|
|
55
55
|
const $3375ddd88f77967d$var$sizeOrder = [
|
|
56
|
+
"XXXXS",
|
|
57
|
+
"4XS",
|
|
58
|
+
"XXXS",
|
|
59
|
+
"3XS",
|
|
56
60
|
"XXS",
|
|
61
|
+
"2XS",
|
|
62
|
+
"XX-SMALL",
|
|
57
63
|
"XS",
|
|
64
|
+
"X-SMALL",
|
|
58
65
|
"XS/S",
|
|
59
66
|
"S",
|
|
67
|
+
"SMALL",
|
|
60
68
|
"S/M",
|
|
61
69
|
"M",
|
|
70
|
+
"MEDIUM",
|
|
62
71
|
"M/L",
|
|
63
72
|
"L",
|
|
73
|
+
"LARGE",
|
|
64
74
|
"L/XL",
|
|
65
75
|
"XL",
|
|
76
|
+
"X-LARGE",
|
|
77
|
+
"1X",
|
|
66
78
|
"XL/XXL",
|
|
67
79
|
"XXL",
|
|
80
|
+
"2XL",
|
|
81
|
+
"XX-LARGE",
|
|
82
|
+
"2X",
|
|
83
|
+
"XXXL",
|
|
84
|
+
"3XL",
|
|
85
|
+
"3X",
|
|
86
|
+
"XXXXL",
|
|
87
|
+
"4XL",
|
|
88
|
+
"4X",
|
|
68
89
|
"One Size",
|
|
69
90
|
"Onesize"
|
|
70
91
|
];
|
|
@@ -188,7 +209,18 @@ function $3375ddd88f77967d$export$f11681c54c860912(display, info, configuredOpti
|
|
|
188
209
|
})();
|
|
189
210
|
const mainStyle = ()=>{
|
|
190
211
|
const { alignment: alignment } = configuredOptions_();
|
|
191
|
-
|
|
212
|
+
let flexAlignment;
|
|
213
|
+
switch(alignment){
|
|
214
|
+
case "left":
|
|
215
|
+
flexAlignment = "flex-start";
|
|
216
|
+
break;
|
|
217
|
+
case "right":
|
|
218
|
+
flexAlignment = "flex-end";
|
|
219
|
+
break;
|
|
220
|
+
default:
|
|
221
|
+
flexAlignment = alignment;
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
192
224
|
return {
|
|
193
225
|
"--flex-alignment": flexAlignment,
|
|
194
226
|
"--alignment": alignment
|
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.9";
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -42,18 +42,39 @@ var $29535f590238371c$var$_tmpl$ = /*#__PURE__*/ (0, $2MCgq$template)(`<a>`), $2
|
|
|
42
42
|
// You can import from the solid-js library here and leverage its reactivity to create an interactive UI.
|
|
43
43
|
// Also, Depict packages can be imported (you must import /latest from those).
|
|
44
44
|
const $29535f590238371c$var$sizeOrder = [
|
|
45
|
+
"XXXXS",
|
|
46
|
+
"4XS",
|
|
47
|
+
"XXXS",
|
|
48
|
+
"3XS",
|
|
45
49
|
"XXS",
|
|
50
|
+
"2XS",
|
|
51
|
+
"XX-SMALL",
|
|
46
52
|
"XS",
|
|
53
|
+
"X-SMALL",
|
|
47
54
|
"XS/S",
|
|
48
55
|
"S",
|
|
56
|
+
"SMALL",
|
|
49
57
|
"S/M",
|
|
50
58
|
"M",
|
|
59
|
+
"MEDIUM",
|
|
51
60
|
"M/L",
|
|
52
61
|
"L",
|
|
62
|
+
"LARGE",
|
|
53
63
|
"L/XL",
|
|
54
64
|
"XL",
|
|
65
|
+
"X-LARGE",
|
|
66
|
+
"1X",
|
|
55
67
|
"XL/XXL",
|
|
56
68
|
"XXL",
|
|
69
|
+
"2XL",
|
|
70
|
+
"XX-LARGE",
|
|
71
|
+
"2X",
|
|
72
|
+
"XXXL",
|
|
73
|
+
"3XL",
|
|
74
|
+
"3X",
|
|
75
|
+
"XXXXL",
|
|
76
|
+
"4XL",
|
|
77
|
+
"4X",
|
|
57
78
|
"One Size",
|
|
58
79
|
"Onesize"
|
|
59
80
|
];
|
|
@@ -177,7 +198,18 @@ function $29535f590238371c$export$f11681c54c860912(display, info, configuredOpti
|
|
|
177
198
|
})();
|
|
178
199
|
const mainStyle = ()=>{
|
|
179
200
|
const { alignment: alignment } = configuredOptions_();
|
|
180
|
-
|
|
201
|
+
let flexAlignment;
|
|
202
|
+
switch(alignment){
|
|
203
|
+
case "left":
|
|
204
|
+
flexAlignment = "flex-start";
|
|
205
|
+
break;
|
|
206
|
+
case "right":
|
|
207
|
+
flexAlignment = "flex-end";
|
|
208
|
+
break;
|
|
209
|
+
default:
|
|
210
|
+
flexAlignment = alignment;
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
181
213
|
return {
|
|
182
214
|
"--flex-alignment": flexAlignment,
|
|
183
215
|
"--alignment": alignment
|
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.9",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"@babel/runtime": "latest",
|
|
102
102
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
103
|
-
"@depict-ai/plp-styling": "^4.4.
|
|
103
|
+
"@depict-ai/plp-styling": "^4.4.16",
|
|
104
104
|
"@depict-ai/react-ui": "^4.8.6",
|
|
105
105
|
"@depict-ai/types": "^5.4.4",
|
|
106
106
|
"@depict-ai/ui": "^4.8.15",
|
|
@@ -80,26 +80,45 @@ export type ProductCardSchema = {
|
|
|
80
80
|
};
|
|
81
81
|
|
|
82
82
|
const sizeOrder = [
|
|
83
|
+
"XXXXS",
|
|
84
|
+
"4XS",
|
|
85
|
+
"XXXS",
|
|
86
|
+
"3XS",
|
|
83
87
|
"XXS",
|
|
88
|
+
"2XS",
|
|
89
|
+
"XX-SMALL",
|
|
84
90
|
"XS",
|
|
91
|
+
"X-SMALL",
|
|
85
92
|
"XS/S",
|
|
86
93
|
"S",
|
|
94
|
+
"SMALL",
|
|
87
95
|
"S/M",
|
|
88
96
|
"M",
|
|
97
|
+
"MEDIUM",
|
|
89
98
|
"M/L",
|
|
90
99
|
"L",
|
|
100
|
+
"LARGE",
|
|
91
101
|
"L/XL",
|
|
92
102
|
"XL",
|
|
103
|
+
"X-LARGE",
|
|
104
|
+
"1X",
|
|
93
105
|
"XL/XXL",
|
|
94
106
|
"XXL",
|
|
107
|
+
"2XL",
|
|
108
|
+
"XX-LARGE",
|
|
109
|
+
"2X",
|
|
110
|
+
"XXXL",
|
|
111
|
+
"3XL",
|
|
112
|
+
"3X",
|
|
113
|
+
"XXXXL",
|
|
114
|
+
"4XL",
|
|
115
|
+
"4X",
|
|
95
116
|
"One Size",
|
|
96
117
|
"Onesize",
|
|
97
118
|
];
|
|
98
119
|
const ContainsColorSwatchesContext = /*@__PURE__*/ createContext<Signal<boolean>>();
|
|
99
120
|
let colorCanvasContext: CanvasRenderingContext2D | undefined | null;
|
|
100
121
|
|
|
101
|
-
// Remove weird spaces around swatches
|
|
102
|
-
|
|
103
122
|
/**
|
|
104
123
|
* ProductCard built according to this excerpt of our SDK docs https://docs.depict.ai/js-ui-guide/setup/product-card
|
|
105
124
|
*/
|
|
@@ -240,7 +259,18 @@ export function DefaultSolidProductCard(
|
|
|
240
259
|
);
|
|
241
260
|
const mainStyle = () => {
|
|
242
261
|
const { alignment } = configuredOptions_();
|
|
243
|
-
|
|
262
|
+
let flexAlignment: "flex-start" | "flex-end" | "center";
|
|
263
|
+
switch (alignment) {
|
|
264
|
+
case "left":
|
|
265
|
+
flexAlignment = "flex-start";
|
|
266
|
+
break;
|
|
267
|
+
case "right":
|
|
268
|
+
flexAlignment = "flex-end";
|
|
269
|
+
break;
|
|
270
|
+
default:
|
|
271
|
+
flexAlignment = alignment;
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
244
274
|
return { "--flex-alignment": flexAlignment, "--alignment": alignment };
|
|
245
275
|
};
|
|
246
276
|
|