@snowcone-app/ui 0.10.22 → 0.11.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.
- package/CHANGELOG.md +13 -0
- package/dist/chunk-MFDCHCN6.js +80 -0
- package/dist/chunk-MFDCHCN6.js.map +1 -0
- package/dist/hero-url.cjs +98 -0
- package/dist/hero-url.cjs.map +1 -0
- package/dist/hero-url.d.cts +66 -0
- package/dist/hero-url.d.ts +66 -0
- package/dist/hero-url.js +15 -0
- package/dist/hero-url.js.map +1 -0
- package/dist/index.cjs +64 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +20 -42
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/composed/HeroProductImage.tsx +19 -63
- package/src/composed/__tests__/HeroProductImage.ssr-match.test.tsx +102 -0
- package/src/composed/__tests__/fixtures/catalog-AKTGA7.json +298 -0
- package/src/composed/__tests__/fixtures/catalog-BC43BE.json +259 -0
- package/src/composed/__tests__/fixtures/catalog-KVJVVA.json +281 -0
- package/src/composed/__tests__/fixtures/catalog-NBYVCX.json +217 -0
- package/src/composed/carousels/MobileProductCarousel.tsx +4 -0
- package/src/composed/heroMockupUrl.ts +136 -0
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "BC43BE",
|
|
3
|
+
"name": "Apple iPhone 17 Pro Max Case",
|
|
4
|
+
"slug": "iphone-17-pro-max-case",
|
|
5
|
+
"tags": [
|
|
6
|
+
"Phone Cases"
|
|
7
|
+
],
|
|
8
|
+
"price": 3900,
|
|
9
|
+
"mockups": [
|
|
10
|
+
{
|
|
11
|
+
"id": "WUYNAH",
|
|
12
|
+
"gvids": [
|
|
13
|
+
"e92f40"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "4HCYRA",
|
|
18
|
+
"gvids": [
|
|
19
|
+
"e92f40"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "YUTVHQ",
|
|
24
|
+
"gvids": [
|
|
25
|
+
"e92f40"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "997FTM",
|
|
30
|
+
"gvids": [
|
|
31
|
+
"e92f40"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "9PUEDF",
|
|
36
|
+
"gvids": [
|
|
37
|
+
"e92f40"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "F95HHM",
|
|
42
|
+
"gvids": [
|
|
43
|
+
"e92f40"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "XA7GHY",
|
|
48
|
+
"gvids": [
|
|
49
|
+
"e92f40"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "JQGBQD",
|
|
54
|
+
"gvids": [
|
|
55
|
+
"e92f40"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "6F2GU3",
|
|
60
|
+
"gvids": [
|
|
61
|
+
"e92f40"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "G3PY5E",
|
|
66
|
+
"gvids": [
|
|
67
|
+
"e92f40"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": "X2FB5A",
|
|
72
|
+
"gvids": [
|
|
73
|
+
"e92f40"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "XPY77Q",
|
|
78
|
+
"gvids": [
|
|
79
|
+
"e92f40"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "9YWR95",
|
|
84
|
+
"gvids": [
|
|
85
|
+
"e92f40"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "QFYC27",
|
|
90
|
+
"gvids": [
|
|
91
|
+
"e92f40"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": "V7X7MN",
|
|
96
|
+
"gvids": [
|
|
97
|
+
"e92f40"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": "N4CNKE",
|
|
102
|
+
"gvids": [
|
|
103
|
+
"e92f40"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"id": "CKNMBV",
|
|
108
|
+
"gvids": [
|
|
109
|
+
"e92f40"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"id": "79KM49",
|
|
114
|
+
"gvids": [
|
|
115
|
+
"e92f40"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "6VJ5QD",
|
|
120
|
+
"gvids": [
|
|
121
|
+
"e92f40"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"id": "AWVNJQ",
|
|
126
|
+
"gvids": [
|
|
127
|
+
"e92f40"
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "CCT2X4",
|
|
132
|
+
"gvids": [
|
|
133
|
+
"e92f40"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "CYC6CB",
|
|
138
|
+
"gvids": [
|
|
139
|
+
"e92f40"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "E59JVX",
|
|
144
|
+
"gvids": [
|
|
145
|
+
"e92f40"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"id": "EQXFA4",
|
|
150
|
+
"gvids": [
|
|
151
|
+
"e92f40"
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"id": "FAXHMW",
|
|
156
|
+
"gvids": [
|
|
157
|
+
"e92f40"
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"id": "FCMJXE",
|
|
162
|
+
"gvids": [
|
|
163
|
+
"e92f40"
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"id": "KEVH4G",
|
|
168
|
+
"gvids": [
|
|
169
|
+
"e92f40"
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"id": "N4HETT",
|
|
174
|
+
"gvids": [
|
|
175
|
+
"e92f40"
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"id": "NWT4YD",
|
|
180
|
+
"gvids": [
|
|
181
|
+
"e92f40"
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"options": {
|
|
186
|
+
"combinations": [
|
|
187
|
+
{
|
|
188
|
+
"price": 3900,
|
|
189
|
+
"variantId": "e92f40",
|
|
190
|
+
"printableId": "AN8I90"
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
"care_guide": null,
|
|
195
|
+
"description": [
|
|
196
|
+
"A two-layer tough case for the Apple iPhone 17 Pro Max: a polycarbonate shell over a separate TPU insert with magnets for MagSafe chargers. Your design is printed edge to edge on every visible outside surface by 3D wrap sublimation, under a clear finish."
|
|
197
|
+
],
|
|
198
|
+
"key_features": [
|
|
199
|
+
"<b>\u2b50\ufe0f Fits iPhone 17 Pro Max</b> \u2013 Fits the Apple iPhone 17 Pro Max.",
|
|
200
|
+
"",
|
|
201
|
+
"<b>\u2b50\ufe0f Your Art, Edge to Edge</b> \u2013 Printed on every visible outside surface by 3D wrap sublimation.",
|
|
202
|
+
"",
|
|
203
|
+
"<b>\u2b50\ufe0f Two Layers</b> \u2013 A polycarbonate shell over a separate TPU insert.",
|
|
204
|
+
"",
|
|
205
|
+
"<b>\u2b50\ufe0f MagSafe Magnets</b> \u2013 Magnets in the insert work with MagSafe chargers and many accessories."
|
|
206
|
+
],
|
|
207
|
+
"days_to_deliver": "5 - 8",
|
|
208
|
+
"ships_from_country": "US",
|
|
209
|
+
"variants": [
|
|
210
|
+
{
|
|
211
|
+
"gvid": "e92f40",
|
|
212
|
+
"gvidForMockup": null,
|
|
213
|
+
"placements": [
|
|
214
|
+
{
|
|
215
|
+
"label": "Front",
|
|
216
|
+
"width": 1480,
|
|
217
|
+
"height": 2328
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"placements": [
|
|
223
|
+
{
|
|
224
|
+
"label": "Front",
|
|
225
|
+
"key": "front",
|
|
226
|
+
"type": "image",
|
|
227
|
+
"width": 1480,
|
|
228
|
+
"height": 2328,
|
|
229
|
+
"defaultScaleMode": "fill",
|
|
230
|
+
"fitMarginTop": 0,
|
|
231
|
+
"fitMarginRight": 0,
|
|
232
|
+
"fitMarginBottom": 0,
|
|
233
|
+
"fitMarginLeft": 0,
|
|
234
|
+
"fitAlign": "c",
|
|
235
|
+
"align": "c",
|
|
236
|
+
"scale": "1",
|
|
237
|
+
"offsetX": "0",
|
|
238
|
+
"offsetY": "0"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"defaultGvid": "e92f40",
|
|
242
|
+
"prices": {
|
|
243
|
+
"US": 3900
|
|
244
|
+
},
|
|
245
|
+
"currencies": {
|
|
246
|
+
"US": "USD"
|
|
247
|
+
},
|
|
248
|
+
"ships_to": [
|
|
249
|
+
"US"
|
|
250
|
+
],
|
|
251
|
+
"requiredPlacements": [
|
|
252
|
+
{
|
|
253
|
+
"label": "Front",
|
|
254
|
+
"type": "image",
|
|
255
|
+
"autoFilledByVariant": false
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"album": null
|
|
259
|
+
}
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "KVJVVA",
|
|
3
|
+
"name": "Custom Hardcover Notebook",
|
|
4
|
+
"slug": "sample-ar9bc3-kvjvva",
|
|
5
|
+
"tags": [
|
|
6
|
+
"Home and Office"
|
|
7
|
+
],
|
|
8
|
+
"price": 3900,
|
|
9
|
+
"mockups": [
|
|
10
|
+
{
|
|
11
|
+
"id": "NHQY2Y",
|
|
12
|
+
"gvids": [
|
|
13
|
+
"ar9def"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "WCXQ6W",
|
|
18
|
+
"gvids": [
|
|
19
|
+
"ar9def"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": "X5JFFP",
|
|
24
|
+
"gvids": [
|
|
25
|
+
"ar9def"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "7C4VWX",
|
|
30
|
+
"gvids": [
|
|
31
|
+
"ar9def"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "MGQK57",
|
|
36
|
+
"gvids": [
|
|
37
|
+
"ar9def"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "KK32YQ",
|
|
42
|
+
"gvids": [
|
|
43
|
+
"ar9def"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "YPUUFA",
|
|
48
|
+
"gvids": [
|
|
49
|
+
"ar9def"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "UCUF3W",
|
|
54
|
+
"gvids": [
|
|
55
|
+
"ar9def"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "UGH9F2",
|
|
60
|
+
"gvids": [
|
|
61
|
+
"ar9def"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "C92GE7",
|
|
66
|
+
"gvids": [
|
|
67
|
+
"ar9def"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": "K55XVH",
|
|
72
|
+
"gvids": [
|
|
73
|
+
"ar9def"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "VU2YGB",
|
|
78
|
+
"gvids": [
|
|
79
|
+
"ar9def"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "PTQQVG",
|
|
84
|
+
"gvids": [
|
|
85
|
+
"ar9def"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "AXYUX3",
|
|
90
|
+
"gvids": [
|
|
91
|
+
"ar9def"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": "PY9YW6",
|
|
96
|
+
"gvids": [
|
|
97
|
+
"ar9def"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": "EDNCNV",
|
|
102
|
+
"gvids": [
|
|
103
|
+
"ar9def"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"id": "AKWMMA",
|
|
108
|
+
"gvids": [
|
|
109
|
+
"ar9def"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"id": "62HACH",
|
|
114
|
+
"gvids": [
|
|
115
|
+
"ar9def"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "G6N9AX",
|
|
120
|
+
"gvids": [
|
|
121
|
+
"ar9def"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"id": "43PAD9",
|
|
126
|
+
"gvids": [
|
|
127
|
+
"ar9def"
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "XYHAVW",
|
|
132
|
+
"gvids": [
|
|
133
|
+
"ar9def"
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"options": {
|
|
138
|
+
"attributes": {
|
|
139
|
+
"page_style": {
|
|
140
|
+
"choices": [
|
|
141
|
+
{
|
|
142
|
+
"label": "Lined",
|
|
143
|
+
"printableValueId": "lined"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"label": "Dot",
|
|
147
|
+
"printableValueId": "dot"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"label": "Blank",
|
|
151
|
+
"printableValueId": "blank"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"printableOption": "page_style",
|
|
155
|
+
"affectsCombinations": false
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"combinations": [
|
|
159
|
+
{
|
|
160
|
+
"price": 3900,
|
|
161
|
+
"variantId": "ar9def",
|
|
162
|
+
"printableId": "AR9BC3"
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"attributesList": [
|
|
166
|
+
"page_style"
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
"care_guide": null,
|
|
170
|
+
"description": [
|
|
171
|
+
"A hardcover notebook with 120 pages, 5.5 x 8.5 in (14 x 21.6 cm), in rigid board covers 5.75 x 8.75 in (14.6 x 22.2 cm). Your design is printed as one wrap across the back cover, spine and front cover, and runs round the board edges. The covers are uncoated paper with a velvet laminate. The pages inside come lined, dot grid or blank, and the inside covers are not printed."
|
|
172
|
+
],
|
|
173
|
+
"key_features": [
|
|
174
|
+
"<b>\u2b50\ufe0f Full-Wrap Cover</b> \u2013 One design across the back, spine and front, wrapping round the board edges.",
|
|
175
|
+
"",
|
|
176
|
+
"<b>\u2b50\ufe0f 120 Pages</b> \u2013 120 pages, 5.5 x 8.5 in (14 x 21.6 cm).",
|
|
177
|
+
"",
|
|
178
|
+
"<b>\u2b50\ufe0f Rigid Hardcover</b> \u2013 Board covers 5.75 x 8.75 in (14.6 x 22.2 cm), finished with a velvet laminate.",
|
|
179
|
+
"",
|
|
180
|
+
"<b>\u2b50\ufe0f Your Choice of Pages</b> \u2013 Lined, dot grid or blank."
|
|
181
|
+
],
|
|
182
|
+
"days_to_deliver": "9 - 12",
|
|
183
|
+
"variants": [
|
|
184
|
+
{
|
|
185
|
+
"gvid": "ar9def",
|
|
186
|
+
"gvidForMockup": null,
|
|
187
|
+
"placements": [
|
|
188
|
+
{
|
|
189
|
+
"label": "Back Cover",
|
|
190
|
+
"width": 1950,
|
|
191
|
+
"height": 3075
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"label": "Front Cover",
|
|
195
|
+
"width": 1950,
|
|
196
|
+
"height": 3075
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"label": "Spine",
|
|
200
|
+
"width": 142,
|
|
201
|
+
"height": 3075
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
"placements": [
|
|
207
|
+
{
|
|
208
|
+
"label": "Back Cover",
|
|
209
|
+
"key": "back_cover",
|
|
210
|
+
"type": "image",
|
|
211
|
+
"width": 1950,
|
|
212
|
+
"height": 3075,
|
|
213
|
+
"defaultScaleMode": "fill",
|
|
214
|
+
"fitMarginTop": 0,
|
|
215
|
+
"fitMarginRight": 0,
|
|
216
|
+
"fitMarginBottom": 0,
|
|
217
|
+
"fitMarginLeft": 0,
|
|
218
|
+
"fitAlign": "c",
|
|
219
|
+
"align": "c",
|
|
220
|
+
"scale": 1,
|
|
221
|
+
"offsetX": 0,
|
|
222
|
+
"offsetY": 0
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"label": "Front Cover",
|
|
226
|
+
"key": "front_cover",
|
|
227
|
+
"type": "image",
|
|
228
|
+
"width": 1950,
|
|
229
|
+
"height": 3075,
|
|
230
|
+
"defaultScaleMode": "fill",
|
|
231
|
+
"fitMarginTop": 0,
|
|
232
|
+
"fitMarginRight": 0,
|
|
233
|
+
"fitMarginBottom": 0,
|
|
234
|
+
"fitMarginLeft": 0,
|
|
235
|
+
"fitAlign": "c",
|
|
236
|
+
"align": "c",
|
|
237
|
+
"scale": 1,
|
|
238
|
+
"offsetX": 2092,
|
|
239
|
+
"offsetY": 0
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"label": "Spine",
|
|
243
|
+
"key": "spine",
|
|
244
|
+
"type": "image",
|
|
245
|
+
"width": 142,
|
|
246
|
+
"height": 3075,
|
|
247
|
+
"defaultScaleMode": "fill",
|
|
248
|
+
"fitMarginTop": 0,
|
|
249
|
+
"fitMarginRight": 0,
|
|
250
|
+
"fitMarginBottom": 0,
|
|
251
|
+
"fitMarginLeft": 0,
|
|
252
|
+
"fitAlign": "c",
|
|
253
|
+
"align": "c",
|
|
254
|
+
"scale": 1,
|
|
255
|
+
"offsetX": 1950,
|
|
256
|
+
"offsetY": 0
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"defaultGvid": "ar9def",
|
|
260
|
+
"prices": {},
|
|
261
|
+
"currencies": {},
|
|
262
|
+
"ships_to": [],
|
|
263
|
+
"requiredPlacements": [
|
|
264
|
+
{
|
|
265
|
+
"label": "Back Cover",
|
|
266
|
+
"type": "image",
|
|
267
|
+
"autoFilledByVariant": false
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"label": "Front Cover",
|
|
271
|
+
"type": "image",
|
|
272
|
+
"autoFilledByVariant": false
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"label": "Spine",
|
|
276
|
+
"type": "image",
|
|
277
|
+
"autoFilledByVariant": false
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"album": null
|
|
281
|
+
}
|