@syntrologie/adapt-product 2.8.0-canary.245

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.
Files changed (47) hide show
  1. package/dist/bind/controller.d.ts +12 -0
  2. package/dist/bind/controller.d.ts.map +1 -0
  3. package/dist/bind/dom-selector.d.ts +11 -0
  4. package/dist/bind/dom-selector.d.ts.map +1 -0
  5. package/dist/bind/index.d.ts +6 -0
  6. package/dist/bind/index.d.ts.map +1 -0
  7. package/dist/bind/jsonld.d.ts +11 -0
  8. package/dist/bind/jsonld.d.ts.map +1 -0
  9. package/dist/bind/opengraph.d.ts +7 -0
  10. package/dist/bind/opengraph.d.ts.map +1 -0
  11. package/dist/bind/shopify-ajax.d.ts +11 -0
  12. package/dist/bind/shopify-ajax.d.ts.map +1 -0
  13. package/dist/bind/types.d.ts +7 -0
  14. package/dist/bind/types.d.ts.map +1 -0
  15. package/dist/bind/woocommerce-store-api.d.ts +7 -0
  16. package/dist/bind/woocommerce-store-api.d.ts.map +1 -0
  17. package/dist/cdn.d.ts +30 -0
  18. package/dist/cdn.d.ts.map +1 -0
  19. package/dist/cdn.js +34 -0
  20. package/dist/cdn.js.map +7 -0
  21. package/dist/chunk-E2IVTQMX.js +1100 -0
  22. package/dist/chunk-E2IVTQMX.js.map +7 -0
  23. package/dist/chunk-SM35E4R3.js +126 -0
  24. package/dist/chunk-SM35E4R3.js.map +7 -0
  25. package/dist/runtime.d.ts +567 -0
  26. package/dist/runtime.d.ts.map +1 -0
  27. package/dist/runtime.js +18 -0
  28. package/dist/runtime.js.map +7 -0
  29. package/dist/sanitizer.d.ts +8 -0
  30. package/dist/sanitizer.d.ts.map +1 -0
  31. package/dist/schema-primitives.d.ts +414 -0
  32. package/dist/schema-primitives.d.ts.map +1 -0
  33. package/dist/schema.d.ts +3645 -0
  34. package/dist/schema.d.ts.map +1 -0
  35. package/dist/schema.js +17 -0
  36. package/dist/schema.js.map +7 -0
  37. package/dist/theme.d.ts +9 -0
  38. package/dist/theme.d.ts.map +1 -0
  39. package/dist/widgets/ProductCardLit.d.ts +32 -0
  40. package/dist/widgets/ProductCardLit.d.ts.map +1 -0
  41. package/dist/widgets/ProductComparisonLit.d.ts +33 -0
  42. package/dist/widgets/ProductComparisonLit.d.ts.map +1 -0
  43. package/dist/widgets/ProductGridLit.d.ts +27 -0
  44. package/dist/widgets/ProductGridLit.d.ts.map +1 -0
  45. package/dist/widgets/ProductHeroLit.d.ts +27 -0
  46. package/dist/widgets/ProductHeroLit.d.ts.map +1 -0
  47. package/package.json +58 -0
@@ -0,0 +1,414 @@
1
+ import { z } from 'zod';
2
+ export declare const HrefZ: z.ZodEffects<z.ZodString, string, string>;
3
+ export declare const PriceBindZ: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4
+ type: z.ZodLiteral<"dom-selector">;
5
+ selector: z.ZodString;
6
+ }, "strict", z.ZodTypeAny, {
7
+ type: "dom-selector";
8
+ selector: string;
9
+ }, {
10
+ type: "dom-selector";
11
+ selector: string;
12
+ }>, z.ZodObject<{
13
+ type: z.ZodLiteral<"shopify-ajax">;
14
+ handle: z.ZodString;
15
+ base: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
16
+ }, "strict", z.ZodTypeAny, {
17
+ type: "shopify-ajax";
18
+ handle: string;
19
+ base?: string | undefined;
20
+ }, {
21
+ type: "shopify-ajax";
22
+ handle: string;
23
+ base?: string | undefined;
24
+ }>, z.ZodObject<{
25
+ type: z.ZodLiteral<"woocommerce-store-api">;
26
+ slug: z.ZodString;
27
+ base: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
28
+ }, "strict", z.ZodTypeAny, {
29
+ type: "woocommerce-store-api";
30
+ slug: string;
31
+ base?: string | undefined;
32
+ }, {
33
+ type: "woocommerce-store-api";
34
+ slug: string;
35
+ base?: string | undefined;
36
+ }>, z.ZodObject<{
37
+ type: z.ZodLiteral<"jsonld">;
38
+ url: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
39
+ }, "strict", z.ZodTypeAny, {
40
+ type: "jsonld";
41
+ url?: string | undefined;
42
+ }, {
43
+ type: "jsonld";
44
+ url?: string | undefined;
45
+ }>]>;
46
+ export declare const ImageBindZ: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
47
+ type: z.ZodLiteral<"dom-selector">;
48
+ selector: z.ZodString;
49
+ }, "strict", z.ZodTypeAny, {
50
+ type: "dom-selector";
51
+ selector: string;
52
+ }, {
53
+ type: "dom-selector";
54
+ selector: string;
55
+ }>, z.ZodObject<{
56
+ type: z.ZodLiteral<"shopify-ajax">;
57
+ handle: z.ZodString;
58
+ base: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
59
+ }, "strict", z.ZodTypeAny, {
60
+ type: "shopify-ajax";
61
+ handle: string;
62
+ base?: string | undefined;
63
+ }, {
64
+ type: "shopify-ajax";
65
+ handle: string;
66
+ base?: string | undefined;
67
+ }>, z.ZodObject<{
68
+ type: z.ZodLiteral<"opengraph">;
69
+ url: z.ZodEffects<z.ZodString, string, string>;
70
+ }, "strict", z.ZodTypeAny, {
71
+ type: "opengraph";
72
+ url: string;
73
+ }, {
74
+ type: "opengraph";
75
+ url: string;
76
+ }>, z.ZodObject<{
77
+ type: z.ZodLiteral<"jsonld">;
78
+ url: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
79
+ }, "strict", z.ZodTypeAny, {
80
+ type: "jsonld";
81
+ url?: string | undefined;
82
+ }, {
83
+ type: "jsonld";
84
+ url?: string | undefined;
85
+ }>]>;
86
+ export declare const productSchema: z.ZodObject<{
87
+ id: z.ZodString;
88
+ name: z.ZodString;
89
+ tagline: z.ZodOptional<z.ZodString>;
90
+ image: z.ZodObject<{
91
+ src: z.ZodEffects<z.ZodString, string, string>;
92
+ alt: z.ZodString;
93
+ bind: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
94
+ type: z.ZodLiteral<"dom-selector">;
95
+ selector: z.ZodString;
96
+ }, "strict", z.ZodTypeAny, {
97
+ type: "dom-selector";
98
+ selector: string;
99
+ }, {
100
+ type: "dom-selector";
101
+ selector: string;
102
+ }>, z.ZodObject<{
103
+ type: z.ZodLiteral<"shopify-ajax">;
104
+ handle: z.ZodString;
105
+ base: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
106
+ }, "strict", z.ZodTypeAny, {
107
+ type: "shopify-ajax";
108
+ handle: string;
109
+ base?: string | undefined;
110
+ }, {
111
+ type: "shopify-ajax";
112
+ handle: string;
113
+ base?: string | undefined;
114
+ }>, z.ZodObject<{
115
+ type: z.ZodLiteral<"opengraph">;
116
+ url: z.ZodEffects<z.ZodString, string, string>;
117
+ }, "strict", z.ZodTypeAny, {
118
+ type: "opengraph";
119
+ url: string;
120
+ }, {
121
+ type: "opengraph";
122
+ url: string;
123
+ }>, z.ZodObject<{
124
+ type: z.ZodLiteral<"jsonld">;
125
+ url: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
126
+ }, "strict", z.ZodTypeAny, {
127
+ type: "jsonld";
128
+ url?: string | undefined;
129
+ }, {
130
+ type: "jsonld";
131
+ url?: string | undefined;
132
+ }>]>>;
133
+ }, "strict", z.ZodTypeAny, {
134
+ src: string;
135
+ alt: string;
136
+ bind?: {
137
+ type: "dom-selector";
138
+ selector: string;
139
+ } | {
140
+ type: "shopify-ajax";
141
+ handle: string;
142
+ base?: string | undefined;
143
+ } | {
144
+ type: "opengraph";
145
+ url: string;
146
+ } | {
147
+ type: "jsonld";
148
+ url?: string | undefined;
149
+ } | undefined;
150
+ }, {
151
+ src: string;
152
+ alt: string;
153
+ bind?: {
154
+ type: "dom-selector";
155
+ selector: string;
156
+ } | {
157
+ type: "shopify-ajax";
158
+ handle: string;
159
+ base?: string | undefined;
160
+ } | {
161
+ type: "opengraph";
162
+ url: string;
163
+ } | {
164
+ type: "jsonld";
165
+ url?: string | undefined;
166
+ } | undefined;
167
+ }>;
168
+ price: z.ZodOptional<z.ZodObject<{
169
+ amount: z.ZodString;
170
+ cadence: z.ZodOptional<z.ZodString>;
171
+ bind: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
172
+ type: z.ZodLiteral<"dom-selector">;
173
+ selector: z.ZodString;
174
+ }, "strict", z.ZodTypeAny, {
175
+ type: "dom-selector";
176
+ selector: string;
177
+ }, {
178
+ type: "dom-selector";
179
+ selector: string;
180
+ }>, z.ZodObject<{
181
+ type: z.ZodLiteral<"shopify-ajax">;
182
+ handle: z.ZodString;
183
+ base: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
184
+ }, "strict", z.ZodTypeAny, {
185
+ type: "shopify-ajax";
186
+ handle: string;
187
+ base?: string | undefined;
188
+ }, {
189
+ type: "shopify-ajax";
190
+ handle: string;
191
+ base?: string | undefined;
192
+ }>, z.ZodObject<{
193
+ type: z.ZodLiteral<"woocommerce-store-api">;
194
+ slug: z.ZodString;
195
+ base: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
196
+ }, "strict", z.ZodTypeAny, {
197
+ type: "woocommerce-store-api";
198
+ slug: string;
199
+ base?: string | undefined;
200
+ }, {
201
+ type: "woocommerce-store-api";
202
+ slug: string;
203
+ base?: string | undefined;
204
+ }>, z.ZodObject<{
205
+ type: z.ZodLiteral<"jsonld">;
206
+ url: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
207
+ }, "strict", z.ZodTypeAny, {
208
+ type: "jsonld";
209
+ url?: string | undefined;
210
+ }, {
211
+ type: "jsonld";
212
+ url?: string | undefined;
213
+ }>]>>;
214
+ }, "strict", z.ZodTypeAny, {
215
+ amount: string;
216
+ bind?: {
217
+ type: "dom-selector";
218
+ selector: string;
219
+ } | {
220
+ type: "shopify-ajax";
221
+ handle: string;
222
+ base?: string | undefined;
223
+ } | {
224
+ type: "woocommerce-store-api";
225
+ slug: string;
226
+ base?: string | undefined;
227
+ } | {
228
+ type: "jsonld";
229
+ url?: string | undefined;
230
+ } | undefined;
231
+ cadence?: string | undefined;
232
+ }, {
233
+ amount: string;
234
+ bind?: {
235
+ type: "dom-selector";
236
+ selector: string;
237
+ } | {
238
+ type: "shopify-ajax";
239
+ handle: string;
240
+ base?: string | undefined;
241
+ } | {
242
+ type: "woocommerce-store-api";
243
+ slug: string;
244
+ base?: string | undefined;
245
+ } | {
246
+ type: "jsonld";
247
+ url?: string | undefined;
248
+ } | undefined;
249
+ cadence?: string | undefined;
250
+ }>>;
251
+ badge: z.ZodOptional<z.ZodObject<{
252
+ label: z.ZodString;
253
+ tone: z.ZodDefault<z.ZodEnum<["neutral", "primary", "success", "warning"]>>;
254
+ }, "strict", z.ZodTypeAny, {
255
+ label: string;
256
+ tone: "neutral" | "primary" | "success" | "warning";
257
+ }, {
258
+ label: string;
259
+ tone?: "neutral" | "primary" | "success" | "warning" | undefined;
260
+ }>>;
261
+ attributes: z.ZodArray<z.ZodObject<{
262
+ label: z.ZodString;
263
+ value: z.ZodString;
264
+ emphasis: z.ZodDefault<z.ZodBoolean>;
265
+ }, "strict", z.ZodTypeAny, {
266
+ value: string;
267
+ label: string;
268
+ emphasis: boolean;
269
+ }, {
270
+ value: string;
271
+ label: string;
272
+ emphasis?: boolean | undefined;
273
+ }>, "many">;
274
+ framing: z.ZodOptional<z.ZodString>;
275
+ ctas: z.ZodArray<z.ZodObject<{
276
+ label: z.ZodString;
277
+ href: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
278
+ target: z.ZodDefault<z.ZodEnum<["_self", "_blank"]>>;
279
+ variant: z.ZodDefault<z.ZodEnum<["primary", "secondary", "ghost"]>>;
280
+ actionId: z.ZodOptional<z.ZodString>;
281
+ }, "strict", z.ZodTypeAny, {
282
+ label: string;
283
+ target: "_self" | "_blank";
284
+ variant: "primary" | "secondary" | "ghost";
285
+ href?: string | undefined;
286
+ actionId?: string | undefined;
287
+ }, {
288
+ label: string;
289
+ href?: string | undefined;
290
+ target?: "_self" | "_blank" | undefined;
291
+ variant?: "primary" | "secondary" | "ghost" | undefined;
292
+ actionId?: string | undefined;
293
+ }>, "many">;
294
+ }, "strict", z.ZodTypeAny, {
295
+ id: string;
296
+ name: string;
297
+ image: {
298
+ src: string;
299
+ alt: string;
300
+ bind?: {
301
+ type: "dom-selector";
302
+ selector: string;
303
+ } | {
304
+ type: "shopify-ajax";
305
+ handle: string;
306
+ base?: string | undefined;
307
+ } | {
308
+ type: "opengraph";
309
+ url: string;
310
+ } | {
311
+ type: "jsonld";
312
+ url?: string | undefined;
313
+ } | undefined;
314
+ };
315
+ attributes: {
316
+ value: string;
317
+ label: string;
318
+ emphasis: boolean;
319
+ }[];
320
+ ctas: {
321
+ label: string;
322
+ target: "_self" | "_blank";
323
+ variant: "primary" | "secondary" | "ghost";
324
+ href?: string | undefined;
325
+ actionId?: string | undefined;
326
+ }[];
327
+ tagline?: string | undefined;
328
+ price?: {
329
+ amount: string;
330
+ bind?: {
331
+ type: "dom-selector";
332
+ selector: string;
333
+ } | {
334
+ type: "shopify-ajax";
335
+ handle: string;
336
+ base?: string | undefined;
337
+ } | {
338
+ type: "woocommerce-store-api";
339
+ slug: string;
340
+ base?: string | undefined;
341
+ } | {
342
+ type: "jsonld";
343
+ url?: string | undefined;
344
+ } | undefined;
345
+ cadence?: string | undefined;
346
+ } | undefined;
347
+ badge?: {
348
+ label: string;
349
+ tone: "neutral" | "primary" | "success" | "warning";
350
+ } | undefined;
351
+ framing?: string | undefined;
352
+ }, {
353
+ id: string;
354
+ name: string;
355
+ image: {
356
+ src: string;
357
+ alt: string;
358
+ bind?: {
359
+ type: "dom-selector";
360
+ selector: string;
361
+ } | {
362
+ type: "shopify-ajax";
363
+ handle: string;
364
+ base?: string | undefined;
365
+ } | {
366
+ type: "opengraph";
367
+ url: string;
368
+ } | {
369
+ type: "jsonld";
370
+ url?: string | undefined;
371
+ } | undefined;
372
+ };
373
+ attributes: {
374
+ value: string;
375
+ label: string;
376
+ emphasis?: boolean | undefined;
377
+ }[];
378
+ ctas: {
379
+ label: string;
380
+ href?: string | undefined;
381
+ target?: "_self" | "_blank" | undefined;
382
+ variant?: "primary" | "secondary" | "ghost" | undefined;
383
+ actionId?: string | undefined;
384
+ }[];
385
+ tagline?: string | undefined;
386
+ price?: {
387
+ amount: string;
388
+ bind?: {
389
+ type: "dom-selector";
390
+ selector: string;
391
+ } | {
392
+ type: "shopify-ajax";
393
+ handle: string;
394
+ base?: string | undefined;
395
+ } | {
396
+ type: "woocommerce-store-api";
397
+ slug: string;
398
+ base?: string | undefined;
399
+ } | {
400
+ type: "jsonld";
401
+ url?: string | undefined;
402
+ } | undefined;
403
+ cadence?: string | undefined;
404
+ } | undefined;
405
+ badge?: {
406
+ label: string;
407
+ tone?: "neutral" | "primary" | "success" | "warning" | undefined;
408
+ } | undefined;
409
+ framing?: string | undefined;
410
+ }>;
411
+ export type Product = z.infer<typeof productSchema>;
412
+ export type PriceBind = z.infer<typeof PriceBindZ>;
413
+ export type ImageBind = z.infer<typeof ImageBindZ>;
414
+ //# sourceMappingURL=schema-primitives.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-primitives.d.ts","sourceRoot":"","sources":["../src/schema-primitives.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,KAAK,2CAiBf,CAAC;AAEJ,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAarB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOrB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDf,CAAC;AAEZ,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACnD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}