@shoplix-ai/sdui-schema 1.3.0 → 1.5.0
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/binding.d.ts +26 -4
- package/dist/binding.d.ts.map +1 -1
- package/dist/binding.js +23 -3
- package/dist/binding.js.map +1 -1
- package/dist/block-definition.d.ts +85 -13
- package/dist/block-definition.d.ts.map +1 -1
- package/dist/block-definition.js +29 -5
- package/dist/block-definition.js.map +1 -1
- package/dist/blocks.d.ts +277 -6
- package/dist/blocks.d.ts.map +1 -1
- package/dist/blocks.js +33 -0
- package/dist/blocks.js.map +1 -1
- package/dist/definition-validator.d.ts +2 -0
- package/dist/definition-validator.d.ts.map +1 -1
- package/dist/definition-validator.js +30 -0
- package/dist/definition-validator.js.map +1 -1
- package/dist/display.d.ts +163 -7
- package/dist/display.d.ts.map +1 -1
- package/dist/display.js +69 -8
- package/dist/display.js.map +1 -1
- package/dist/envelope.d.ts +148 -22
- package/dist/envelope.d.ts.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/manifest.d.ts +2 -0
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js.map +1 -1
- package/dist/parse.d.ts +2 -1
- package/dist/parse.d.ts.map +1 -1
- package/dist/parse.js +4 -1
- package/dist/parse.js.map +1 -1
- package/dist/screen.d.ts +27 -5
- package/dist/screen.d.ts.map +1 -1
- package/dist/screen.js +39 -1
- package/dist/screen.js.map +1 -1
- package/dist/theme.d.ts +1 -1
- package/package.json +1 -1
package/dist/envelope.d.ts
CHANGED
|
@@ -153,18 +153,24 @@ export declare const frozenBlockDefinitionSchema: z.ZodObject<{
|
|
|
153
153
|
targetForms: z.ZodArray<z.ZodEnum<{
|
|
154
154
|
literal: "literal";
|
|
155
155
|
}>>;
|
|
156
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
157
|
+
kind: z.ZodLiteral<"cart">;
|
|
158
|
+
targetForms: z.ZodArray<z.ZodEnum<{
|
|
159
|
+
subject: "subject";
|
|
160
|
+
}>>;
|
|
156
161
|
}, z.core.$strict>], "kind">;
|
|
157
162
|
placement: z.ZodObject<{
|
|
158
163
|
allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
159
164
|
custom: "custom";
|
|
160
165
|
product: "product";
|
|
161
166
|
collection: "collection";
|
|
167
|
+
cart: "cart";
|
|
162
168
|
search: "search";
|
|
163
169
|
home: "home";
|
|
164
|
-
cart: "cart";
|
|
165
170
|
account: "account";
|
|
166
171
|
}>>>;
|
|
167
172
|
maxPerScreen: z.ZodNullable<z.ZodInt>;
|
|
173
|
+
pinned: z.ZodOptional<z.ZodLiteral<"bottom">>;
|
|
168
174
|
}, z.core.$strict>;
|
|
169
175
|
kind: z.ZodLiteral<"composed">;
|
|
170
176
|
body: z.ZodType<import("./primitives.js").EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<import("./primitives.js").EnvelopePrimitiveNode, unknown>>;
|
|
@@ -173,6 +179,12 @@ export declare const frozenBlockDefinitionSchema: z.ZodObject<{
|
|
|
173
179
|
addToCart: "addToCart";
|
|
174
180
|
openCart: "openCart";
|
|
175
181
|
beginCheckout: "beginCheckout";
|
|
182
|
+
setLineQuantity: "setLineQuantity";
|
|
183
|
+
removeLines: "removeLines";
|
|
184
|
+
applyDiscountCode: "applyDiscountCode";
|
|
185
|
+
removeDiscountCode: "removeDiscountCode";
|
|
186
|
+
setCartNote: "setCartNote";
|
|
187
|
+
setLineAttributes: "setLineAttributes";
|
|
176
188
|
}>>;
|
|
177
189
|
rendererVersion: z.ZodInt;
|
|
178
190
|
heightHint: z.ZodOptional<z.ZodInt>;
|
|
@@ -326,18 +338,24 @@ export declare const frozenBlockDefinitionSchema: z.ZodObject<{
|
|
|
326
338
|
targetForms: z.ZodArray<z.ZodEnum<{
|
|
327
339
|
literal: "literal";
|
|
328
340
|
}>>;
|
|
341
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
342
|
+
kind: z.ZodLiteral<"cart">;
|
|
343
|
+
targetForms: z.ZodArray<z.ZodEnum<{
|
|
344
|
+
subject: "subject";
|
|
345
|
+
}>>;
|
|
329
346
|
}, z.core.$strict>], "kind">;
|
|
330
347
|
placement: z.ZodObject<{
|
|
331
348
|
allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
332
349
|
custom: "custom";
|
|
333
350
|
product: "product";
|
|
334
351
|
collection: "collection";
|
|
352
|
+
cart: "cart";
|
|
335
353
|
search: "search";
|
|
336
354
|
home: "home";
|
|
337
|
-
cart: "cart";
|
|
338
355
|
account: "account";
|
|
339
356
|
}>>>;
|
|
340
357
|
maxPerScreen: z.ZodNullable<z.ZodInt>;
|
|
358
|
+
pinned: z.ZodOptional<z.ZodLiteral<"bottom">>;
|
|
341
359
|
}, z.core.$strict>;
|
|
342
360
|
kind: z.ZodLiteral<"code">;
|
|
343
361
|
}, z.core.$strict>], "kind">;
|
|
@@ -501,18 +519,24 @@ export declare const envelopeBlockDefinitionsSchema: z.ZodRecord<z.ZodString, z.
|
|
|
501
519
|
targetForms: z.ZodArray<z.ZodEnum<{
|
|
502
520
|
literal: "literal";
|
|
503
521
|
}>>;
|
|
522
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
523
|
+
kind: z.ZodLiteral<"cart">;
|
|
524
|
+
targetForms: z.ZodArray<z.ZodEnum<{
|
|
525
|
+
subject: "subject";
|
|
526
|
+
}>>;
|
|
504
527
|
}, z.core.$strict>], "kind">;
|
|
505
528
|
placement: z.ZodObject<{
|
|
506
529
|
allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
507
530
|
custom: "custom";
|
|
508
531
|
product: "product";
|
|
509
532
|
collection: "collection";
|
|
533
|
+
cart: "cart";
|
|
510
534
|
search: "search";
|
|
511
535
|
home: "home";
|
|
512
|
-
cart: "cart";
|
|
513
536
|
account: "account";
|
|
514
537
|
}>>>;
|
|
515
538
|
maxPerScreen: z.ZodNullable<z.ZodInt>;
|
|
539
|
+
pinned: z.ZodOptional<z.ZodLiteral<"bottom">>;
|
|
516
540
|
}, z.core.$strict>;
|
|
517
541
|
kind: z.ZodLiteral<"composed">;
|
|
518
542
|
body: z.ZodType<import("./primitives.js").EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<import("./primitives.js").EnvelopePrimitiveNode, unknown>>;
|
|
@@ -521,6 +545,12 @@ export declare const envelopeBlockDefinitionsSchema: z.ZodRecord<z.ZodString, z.
|
|
|
521
545
|
addToCart: "addToCart";
|
|
522
546
|
openCart: "openCart";
|
|
523
547
|
beginCheckout: "beginCheckout";
|
|
548
|
+
setLineQuantity: "setLineQuantity";
|
|
549
|
+
removeLines: "removeLines";
|
|
550
|
+
applyDiscountCode: "applyDiscountCode";
|
|
551
|
+
removeDiscountCode: "removeDiscountCode";
|
|
552
|
+
setCartNote: "setCartNote";
|
|
553
|
+
setLineAttributes: "setLineAttributes";
|
|
524
554
|
}>>;
|
|
525
555
|
rendererVersion: z.ZodInt;
|
|
526
556
|
heightHint: z.ZodOptional<z.ZodInt>;
|
|
@@ -674,18 +704,24 @@ export declare const envelopeBlockDefinitionsSchema: z.ZodRecord<z.ZodString, z.
|
|
|
674
704
|
targetForms: z.ZodArray<z.ZodEnum<{
|
|
675
705
|
literal: "literal";
|
|
676
706
|
}>>;
|
|
707
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
708
|
+
kind: z.ZodLiteral<"cart">;
|
|
709
|
+
targetForms: z.ZodArray<z.ZodEnum<{
|
|
710
|
+
subject: "subject";
|
|
711
|
+
}>>;
|
|
677
712
|
}, z.core.$strict>], "kind">;
|
|
678
713
|
placement: z.ZodObject<{
|
|
679
714
|
allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
680
715
|
custom: "custom";
|
|
681
716
|
product: "product";
|
|
682
717
|
collection: "collection";
|
|
718
|
+
cart: "cart";
|
|
683
719
|
search: "search";
|
|
684
720
|
home: "home";
|
|
685
|
-
cart: "cart";
|
|
686
721
|
account: "account";
|
|
687
722
|
}>>>;
|
|
688
723
|
maxPerScreen: z.ZodNullable<z.ZodInt>;
|
|
724
|
+
pinned: z.ZodOptional<z.ZodLiteral<"bottom">>;
|
|
689
725
|
}, z.core.$strict>;
|
|
690
726
|
kind: z.ZodLiteral<"code">;
|
|
691
727
|
}, z.core.$strict>], "kind">;
|
|
@@ -723,9 +759,9 @@ declare const shellBodySchema: z.ZodObject<{
|
|
|
723
759
|
custom: "custom";
|
|
724
760
|
product: "product";
|
|
725
761
|
collection: "collection";
|
|
762
|
+
cart: "cart";
|
|
726
763
|
search: "search";
|
|
727
764
|
home: "home";
|
|
728
|
-
cart: "cart";
|
|
729
765
|
account: "account";
|
|
730
766
|
}>;
|
|
731
767
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -755,9 +791,9 @@ declare const shellBodySchema: z.ZodObject<{
|
|
|
755
791
|
custom: "custom";
|
|
756
792
|
product: "product";
|
|
757
793
|
collection: "collection";
|
|
794
|
+
cart: "cart";
|
|
758
795
|
search: "search";
|
|
759
796
|
home: "home";
|
|
760
|
-
cart: "cart";
|
|
761
797
|
account: "account";
|
|
762
798
|
}>;
|
|
763
799
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -916,18 +952,24 @@ declare const shellBodySchema: z.ZodObject<{
|
|
|
916
952
|
targetForms: z.ZodArray<z.ZodEnum<{
|
|
917
953
|
literal: "literal";
|
|
918
954
|
}>>;
|
|
955
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
956
|
+
kind: z.ZodLiteral<"cart">;
|
|
957
|
+
targetForms: z.ZodArray<z.ZodEnum<{
|
|
958
|
+
subject: "subject";
|
|
959
|
+
}>>;
|
|
919
960
|
}, z.core.$strict>], "kind">;
|
|
920
961
|
placement: z.ZodObject<{
|
|
921
962
|
allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
922
963
|
custom: "custom";
|
|
923
964
|
product: "product";
|
|
924
965
|
collection: "collection";
|
|
966
|
+
cart: "cart";
|
|
925
967
|
search: "search";
|
|
926
968
|
home: "home";
|
|
927
|
-
cart: "cart";
|
|
928
969
|
account: "account";
|
|
929
970
|
}>>>;
|
|
930
971
|
maxPerScreen: z.ZodNullable<z.ZodInt>;
|
|
972
|
+
pinned: z.ZodOptional<z.ZodLiteral<"bottom">>;
|
|
931
973
|
}, z.core.$strict>;
|
|
932
974
|
kind: z.ZodLiteral<"composed">;
|
|
933
975
|
body: z.ZodType<import("./primitives.js").EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<import("./primitives.js").EnvelopePrimitiveNode, unknown>>;
|
|
@@ -936,6 +978,12 @@ declare const shellBodySchema: z.ZodObject<{
|
|
|
936
978
|
addToCart: "addToCart";
|
|
937
979
|
openCart: "openCart";
|
|
938
980
|
beginCheckout: "beginCheckout";
|
|
981
|
+
setLineQuantity: "setLineQuantity";
|
|
982
|
+
removeLines: "removeLines";
|
|
983
|
+
applyDiscountCode: "applyDiscountCode";
|
|
984
|
+
removeDiscountCode: "removeDiscountCode";
|
|
985
|
+
setCartNote: "setCartNote";
|
|
986
|
+
setLineAttributes: "setLineAttributes";
|
|
939
987
|
}>>;
|
|
940
988
|
rendererVersion: z.ZodInt;
|
|
941
989
|
heightHint: z.ZodOptional<z.ZodInt>;
|
|
@@ -1089,18 +1137,24 @@ declare const shellBodySchema: z.ZodObject<{
|
|
|
1089
1137
|
targetForms: z.ZodArray<z.ZodEnum<{
|
|
1090
1138
|
literal: "literal";
|
|
1091
1139
|
}>>;
|
|
1140
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1141
|
+
kind: z.ZodLiteral<"cart">;
|
|
1142
|
+
targetForms: z.ZodArray<z.ZodEnum<{
|
|
1143
|
+
subject: "subject";
|
|
1144
|
+
}>>;
|
|
1092
1145
|
}, z.core.$strict>], "kind">;
|
|
1093
1146
|
placement: z.ZodObject<{
|
|
1094
1147
|
allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
1095
1148
|
custom: "custom";
|
|
1096
1149
|
product: "product";
|
|
1097
1150
|
collection: "collection";
|
|
1151
|
+
cart: "cart";
|
|
1098
1152
|
search: "search";
|
|
1099
1153
|
home: "home";
|
|
1100
|
-
cart: "cart";
|
|
1101
1154
|
account: "account";
|
|
1102
1155
|
}>>>;
|
|
1103
1156
|
maxPerScreen: z.ZodNullable<z.ZodInt>;
|
|
1157
|
+
pinned: z.ZodOptional<z.ZodLiteral<"bottom">>;
|
|
1104
1158
|
}, z.core.$strict>;
|
|
1105
1159
|
kind: z.ZodLiteral<"code">;
|
|
1106
1160
|
}, z.core.$strict>], "kind">;
|
|
@@ -1139,9 +1193,9 @@ export declare const shellEnvelopeSchema: z.ZodObject<{
|
|
|
1139
1193
|
custom: "custom";
|
|
1140
1194
|
product: "product";
|
|
1141
1195
|
collection: "collection";
|
|
1196
|
+
cart: "cart";
|
|
1142
1197
|
search: "search";
|
|
1143
1198
|
home: "home";
|
|
1144
|
-
cart: "cart";
|
|
1145
1199
|
account: "account";
|
|
1146
1200
|
}>;
|
|
1147
1201
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -1171,9 +1225,9 @@ export declare const shellEnvelopeSchema: z.ZodObject<{
|
|
|
1171
1225
|
custom: "custom";
|
|
1172
1226
|
product: "product";
|
|
1173
1227
|
collection: "collection";
|
|
1228
|
+
cart: "cart";
|
|
1174
1229
|
search: "search";
|
|
1175
1230
|
home: "home";
|
|
1176
|
-
cart: "cart";
|
|
1177
1231
|
account: "account";
|
|
1178
1232
|
}>;
|
|
1179
1233
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -1332,18 +1386,24 @@ export declare const shellEnvelopeSchema: z.ZodObject<{
|
|
|
1332
1386
|
targetForms: z.ZodArray<z.ZodEnum<{
|
|
1333
1387
|
literal: "literal";
|
|
1334
1388
|
}>>;
|
|
1389
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1390
|
+
kind: z.ZodLiteral<"cart">;
|
|
1391
|
+
targetForms: z.ZodArray<z.ZodEnum<{
|
|
1392
|
+
subject: "subject";
|
|
1393
|
+
}>>;
|
|
1335
1394
|
}, z.core.$strict>], "kind">;
|
|
1336
1395
|
placement: z.ZodObject<{
|
|
1337
1396
|
allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
1338
1397
|
custom: "custom";
|
|
1339
1398
|
product: "product";
|
|
1340
1399
|
collection: "collection";
|
|
1400
|
+
cart: "cart";
|
|
1341
1401
|
search: "search";
|
|
1342
1402
|
home: "home";
|
|
1343
|
-
cart: "cart";
|
|
1344
1403
|
account: "account";
|
|
1345
1404
|
}>>>;
|
|
1346
1405
|
maxPerScreen: z.ZodNullable<z.ZodInt>;
|
|
1406
|
+
pinned: z.ZodOptional<z.ZodLiteral<"bottom">>;
|
|
1347
1407
|
}, z.core.$strict>;
|
|
1348
1408
|
kind: z.ZodLiteral<"composed">;
|
|
1349
1409
|
body: z.ZodType<import("./primitives.js").EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<import("./primitives.js").EnvelopePrimitiveNode, unknown>>;
|
|
@@ -1352,6 +1412,12 @@ export declare const shellEnvelopeSchema: z.ZodObject<{
|
|
|
1352
1412
|
addToCart: "addToCart";
|
|
1353
1413
|
openCart: "openCart";
|
|
1354
1414
|
beginCheckout: "beginCheckout";
|
|
1415
|
+
setLineQuantity: "setLineQuantity";
|
|
1416
|
+
removeLines: "removeLines";
|
|
1417
|
+
applyDiscountCode: "applyDiscountCode";
|
|
1418
|
+
removeDiscountCode: "removeDiscountCode";
|
|
1419
|
+
setCartNote: "setCartNote";
|
|
1420
|
+
setLineAttributes: "setLineAttributes";
|
|
1355
1421
|
}>>;
|
|
1356
1422
|
rendererVersion: z.ZodInt;
|
|
1357
1423
|
heightHint: z.ZodOptional<z.ZodInt>;
|
|
@@ -1505,18 +1571,24 @@ export declare const shellEnvelopeSchema: z.ZodObject<{
|
|
|
1505
1571
|
targetForms: z.ZodArray<z.ZodEnum<{
|
|
1506
1572
|
literal: "literal";
|
|
1507
1573
|
}>>;
|
|
1574
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1575
|
+
kind: z.ZodLiteral<"cart">;
|
|
1576
|
+
targetForms: z.ZodArray<z.ZodEnum<{
|
|
1577
|
+
subject: "subject";
|
|
1578
|
+
}>>;
|
|
1508
1579
|
}, z.core.$strict>], "kind">;
|
|
1509
1580
|
placement: z.ZodObject<{
|
|
1510
1581
|
allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
1511
1582
|
custom: "custom";
|
|
1512
1583
|
product: "product";
|
|
1513
1584
|
collection: "collection";
|
|
1585
|
+
cart: "cart";
|
|
1514
1586
|
search: "search";
|
|
1515
1587
|
home: "home";
|
|
1516
|
-
cart: "cart";
|
|
1517
1588
|
account: "account";
|
|
1518
1589
|
}>>>;
|
|
1519
1590
|
maxPerScreen: z.ZodNullable<z.ZodInt>;
|
|
1591
|
+
pinned: z.ZodOptional<z.ZodLiteral<"bottom">>;
|
|
1520
1592
|
}, z.core.$strict>;
|
|
1521
1593
|
kind: z.ZodLiteral<"code">;
|
|
1522
1594
|
}, z.core.$strict>], "kind">;
|
|
@@ -1533,9 +1605,9 @@ export declare const screenEnvelopeSchema: z.ZodObject<{
|
|
|
1533
1605
|
custom: "custom";
|
|
1534
1606
|
product: "product";
|
|
1535
1607
|
collection: "collection";
|
|
1608
|
+
cart: "cart";
|
|
1536
1609
|
search: "search";
|
|
1537
1610
|
home: "home";
|
|
1538
|
-
cart: "cart";
|
|
1539
1611
|
account: "account";
|
|
1540
1612
|
}>;
|
|
1541
1613
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -1712,18 +1784,24 @@ export declare const screenEnvelopeSchema: z.ZodObject<{
|
|
|
1712
1784
|
targetForms: z.ZodArray<z.ZodEnum<{
|
|
1713
1785
|
literal: "literal";
|
|
1714
1786
|
}>>;
|
|
1787
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1788
|
+
kind: z.ZodLiteral<"cart">;
|
|
1789
|
+
targetForms: z.ZodArray<z.ZodEnum<{
|
|
1790
|
+
subject: "subject";
|
|
1791
|
+
}>>;
|
|
1715
1792
|
}, z.core.$strict>], "kind">;
|
|
1716
1793
|
placement: z.ZodObject<{
|
|
1717
1794
|
allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
1718
1795
|
custom: "custom";
|
|
1719
1796
|
product: "product";
|
|
1720
1797
|
collection: "collection";
|
|
1798
|
+
cart: "cart";
|
|
1721
1799
|
search: "search";
|
|
1722
1800
|
home: "home";
|
|
1723
|
-
cart: "cart";
|
|
1724
1801
|
account: "account";
|
|
1725
1802
|
}>>>;
|
|
1726
1803
|
maxPerScreen: z.ZodNullable<z.ZodInt>;
|
|
1804
|
+
pinned: z.ZodOptional<z.ZodLiteral<"bottom">>;
|
|
1727
1805
|
}, z.core.$strict>;
|
|
1728
1806
|
kind: z.ZodLiteral<"composed">;
|
|
1729
1807
|
body: z.ZodType<import("./primitives.js").EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<import("./primitives.js").EnvelopePrimitiveNode, unknown>>;
|
|
@@ -1732,6 +1810,12 @@ export declare const screenEnvelopeSchema: z.ZodObject<{
|
|
|
1732
1810
|
addToCart: "addToCart";
|
|
1733
1811
|
openCart: "openCart";
|
|
1734
1812
|
beginCheckout: "beginCheckout";
|
|
1813
|
+
setLineQuantity: "setLineQuantity";
|
|
1814
|
+
removeLines: "removeLines";
|
|
1815
|
+
applyDiscountCode: "applyDiscountCode";
|
|
1816
|
+
removeDiscountCode: "removeDiscountCode";
|
|
1817
|
+
setCartNote: "setCartNote";
|
|
1818
|
+
setLineAttributes: "setLineAttributes";
|
|
1735
1819
|
}>>;
|
|
1736
1820
|
rendererVersion: z.ZodInt;
|
|
1737
1821
|
heightHint: z.ZodOptional<z.ZodInt>;
|
|
@@ -1885,18 +1969,24 @@ export declare const screenEnvelopeSchema: z.ZodObject<{
|
|
|
1885
1969
|
targetForms: z.ZodArray<z.ZodEnum<{
|
|
1886
1970
|
literal: "literal";
|
|
1887
1971
|
}>>;
|
|
1972
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1973
|
+
kind: z.ZodLiteral<"cart">;
|
|
1974
|
+
targetForms: z.ZodArray<z.ZodEnum<{
|
|
1975
|
+
subject: "subject";
|
|
1976
|
+
}>>;
|
|
1888
1977
|
}, z.core.$strict>], "kind">;
|
|
1889
1978
|
placement: z.ZodObject<{
|
|
1890
1979
|
allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
1891
1980
|
custom: "custom";
|
|
1892
1981
|
product: "product";
|
|
1893
1982
|
collection: "collection";
|
|
1983
|
+
cart: "cart";
|
|
1894
1984
|
search: "search";
|
|
1895
1985
|
home: "home";
|
|
1896
|
-
cart: "cart";
|
|
1897
1986
|
account: "account";
|
|
1898
1987
|
}>>>;
|
|
1899
1988
|
maxPerScreen: z.ZodNullable<z.ZodInt>;
|
|
1989
|
+
pinned: z.ZodOptional<z.ZodLiteral<"bottom">>;
|
|
1900
1990
|
}, z.core.$strict>;
|
|
1901
1991
|
kind: z.ZodLiteral<"code">;
|
|
1902
1992
|
}, z.core.$strict>], "kind">;
|
|
@@ -1944,9 +2034,9 @@ export declare const previewShellEnvelopeSchema: z.ZodObject<{
|
|
|
1944
2034
|
custom: "custom";
|
|
1945
2035
|
product: "product";
|
|
1946
2036
|
collection: "collection";
|
|
2037
|
+
cart: "cart";
|
|
1947
2038
|
search: "search";
|
|
1948
2039
|
home: "home";
|
|
1949
|
-
cart: "cart";
|
|
1950
2040
|
account: "account";
|
|
1951
2041
|
}>;
|
|
1952
2042
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -1976,9 +2066,9 @@ export declare const previewShellEnvelopeSchema: z.ZodObject<{
|
|
|
1976
2066
|
custom: "custom";
|
|
1977
2067
|
product: "product";
|
|
1978
2068
|
collection: "collection";
|
|
2069
|
+
cart: "cart";
|
|
1979
2070
|
search: "search";
|
|
1980
2071
|
home: "home";
|
|
1981
|
-
cart: "cart";
|
|
1982
2072
|
account: "account";
|
|
1983
2073
|
}>;
|
|
1984
2074
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -2137,18 +2227,24 @@ export declare const previewShellEnvelopeSchema: z.ZodObject<{
|
|
|
2137
2227
|
targetForms: z.ZodArray<z.ZodEnum<{
|
|
2138
2228
|
literal: "literal";
|
|
2139
2229
|
}>>;
|
|
2230
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2231
|
+
kind: z.ZodLiteral<"cart">;
|
|
2232
|
+
targetForms: z.ZodArray<z.ZodEnum<{
|
|
2233
|
+
subject: "subject";
|
|
2234
|
+
}>>;
|
|
2140
2235
|
}, z.core.$strict>], "kind">;
|
|
2141
2236
|
placement: z.ZodObject<{
|
|
2142
2237
|
allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
2143
2238
|
custom: "custom";
|
|
2144
2239
|
product: "product";
|
|
2145
2240
|
collection: "collection";
|
|
2241
|
+
cart: "cart";
|
|
2146
2242
|
search: "search";
|
|
2147
2243
|
home: "home";
|
|
2148
|
-
cart: "cart";
|
|
2149
2244
|
account: "account";
|
|
2150
2245
|
}>>>;
|
|
2151
2246
|
maxPerScreen: z.ZodNullable<z.ZodInt>;
|
|
2247
|
+
pinned: z.ZodOptional<z.ZodLiteral<"bottom">>;
|
|
2152
2248
|
}, z.core.$strict>;
|
|
2153
2249
|
kind: z.ZodLiteral<"composed">;
|
|
2154
2250
|
body: z.ZodType<import("./primitives.js").EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<import("./primitives.js").EnvelopePrimitiveNode, unknown>>;
|
|
@@ -2157,6 +2253,12 @@ export declare const previewShellEnvelopeSchema: z.ZodObject<{
|
|
|
2157
2253
|
addToCart: "addToCart";
|
|
2158
2254
|
openCart: "openCart";
|
|
2159
2255
|
beginCheckout: "beginCheckout";
|
|
2256
|
+
setLineQuantity: "setLineQuantity";
|
|
2257
|
+
removeLines: "removeLines";
|
|
2258
|
+
applyDiscountCode: "applyDiscountCode";
|
|
2259
|
+
removeDiscountCode: "removeDiscountCode";
|
|
2260
|
+
setCartNote: "setCartNote";
|
|
2261
|
+
setLineAttributes: "setLineAttributes";
|
|
2160
2262
|
}>>;
|
|
2161
2263
|
rendererVersion: z.ZodInt;
|
|
2162
2264
|
heightHint: z.ZodOptional<z.ZodInt>;
|
|
@@ -2310,18 +2412,24 @@ export declare const previewShellEnvelopeSchema: z.ZodObject<{
|
|
|
2310
2412
|
targetForms: z.ZodArray<z.ZodEnum<{
|
|
2311
2413
|
literal: "literal";
|
|
2312
2414
|
}>>;
|
|
2415
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2416
|
+
kind: z.ZodLiteral<"cart">;
|
|
2417
|
+
targetForms: z.ZodArray<z.ZodEnum<{
|
|
2418
|
+
subject: "subject";
|
|
2419
|
+
}>>;
|
|
2313
2420
|
}, z.core.$strict>], "kind">;
|
|
2314
2421
|
placement: z.ZodObject<{
|
|
2315
2422
|
allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
2316
2423
|
custom: "custom";
|
|
2317
2424
|
product: "product";
|
|
2318
2425
|
collection: "collection";
|
|
2426
|
+
cart: "cart";
|
|
2319
2427
|
search: "search";
|
|
2320
2428
|
home: "home";
|
|
2321
|
-
cart: "cart";
|
|
2322
2429
|
account: "account";
|
|
2323
2430
|
}>>>;
|
|
2324
2431
|
maxPerScreen: z.ZodNullable<z.ZodInt>;
|
|
2432
|
+
pinned: z.ZodOptional<z.ZodLiteral<"bottom">>;
|
|
2325
2433
|
}, z.core.$strict>;
|
|
2326
2434
|
kind: z.ZodLiteral<"code">;
|
|
2327
2435
|
}, z.core.$strict>], "kind">;
|
|
@@ -2354,9 +2462,9 @@ export declare const previewScreenEnvelopeSchema: z.ZodObject<{
|
|
|
2354
2462
|
custom: "custom";
|
|
2355
2463
|
product: "product";
|
|
2356
2464
|
collection: "collection";
|
|
2465
|
+
cart: "cart";
|
|
2357
2466
|
search: "search";
|
|
2358
2467
|
home: "home";
|
|
2359
|
-
cart: "cart";
|
|
2360
2468
|
account: "account";
|
|
2361
2469
|
}>;
|
|
2362
2470
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -2533,18 +2641,24 @@ export declare const previewScreenEnvelopeSchema: z.ZodObject<{
|
|
|
2533
2641
|
targetForms: z.ZodArray<z.ZodEnum<{
|
|
2534
2642
|
literal: "literal";
|
|
2535
2643
|
}>>;
|
|
2644
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2645
|
+
kind: z.ZodLiteral<"cart">;
|
|
2646
|
+
targetForms: z.ZodArray<z.ZodEnum<{
|
|
2647
|
+
subject: "subject";
|
|
2648
|
+
}>>;
|
|
2536
2649
|
}, z.core.$strict>], "kind">;
|
|
2537
2650
|
placement: z.ZodObject<{
|
|
2538
2651
|
allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
2539
2652
|
custom: "custom";
|
|
2540
2653
|
product: "product";
|
|
2541
2654
|
collection: "collection";
|
|
2655
|
+
cart: "cart";
|
|
2542
2656
|
search: "search";
|
|
2543
2657
|
home: "home";
|
|
2544
|
-
cart: "cart";
|
|
2545
2658
|
account: "account";
|
|
2546
2659
|
}>>>;
|
|
2547
2660
|
maxPerScreen: z.ZodNullable<z.ZodInt>;
|
|
2661
|
+
pinned: z.ZodOptional<z.ZodLiteral<"bottom">>;
|
|
2548
2662
|
}, z.core.$strict>;
|
|
2549
2663
|
kind: z.ZodLiteral<"composed">;
|
|
2550
2664
|
body: z.ZodType<import("./primitives.js").EnvelopePrimitiveNode, unknown, z.core.$ZodTypeInternals<import("./primitives.js").EnvelopePrimitiveNode, unknown>>;
|
|
@@ -2553,6 +2667,12 @@ export declare const previewScreenEnvelopeSchema: z.ZodObject<{
|
|
|
2553
2667
|
addToCart: "addToCart";
|
|
2554
2668
|
openCart: "openCart";
|
|
2555
2669
|
beginCheckout: "beginCheckout";
|
|
2670
|
+
setLineQuantity: "setLineQuantity";
|
|
2671
|
+
removeLines: "removeLines";
|
|
2672
|
+
applyDiscountCode: "applyDiscountCode";
|
|
2673
|
+
removeDiscountCode: "removeDiscountCode";
|
|
2674
|
+
setCartNote: "setCartNote";
|
|
2675
|
+
setLineAttributes: "setLineAttributes";
|
|
2556
2676
|
}>>;
|
|
2557
2677
|
rendererVersion: z.ZodInt;
|
|
2558
2678
|
heightHint: z.ZodOptional<z.ZodInt>;
|
|
@@ -2706,18 +2826,24 @@ export declare const previewScreenEnvelopeSchema: z.ZodObject<{
|
|
|
2706
2826
|
targetForms: z.ZodArray<z.ZodEnum<{
|
|
2707
2827
|
literal: "literal";
|
|
2708
2828
|
}>>;
|
|
2829
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2830
|
+
kind: z.ZodLiteral<"cart">;
|
|
2831
|
+
targetForms: z.ZodArray<z.ZodEnum<{
|
|
2832
|
+
subject: "subject";
|
|
2833
|
+
}>>;
|
|
2709
2834
|
}, z.core.$strict>], "kind">;
|
|
2710
2835
|
placement: z.ZodObject<{
|
|
2711
2836
|
allowedScreenKinds: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
2712
2837
|
custom: "custom";
|
|
2713
2838
|
product: "product";
|
|
2714
2839
|
collection: "collection";
|
|
2840
|
+
cart: "cart";
|
|
2715
2841
|
search: "search";
|
|
2716
2842
|
home: "home";
|
|
2717
|
-
cart: "cart";
|
|
2718
2843
|
account: "account";
|
|
2719
2844
|
}>>>;
|
|
2720
2845
|
maxPerScreen: z.ZodNullable<z.ZodInt>;
|
|
2846
|
+
pinned: z.ZodOptional<z.ZodLiteral<"bottom">>;
|
|
2721
2847
|
}, z.core.$strict>;
|
|
2722
2848
|
kind: z.ZodLiteral<"code">;
|
|
2723
2849
|
}, z.core.$strict>], "kind">;
|
package/dist/envelope.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../src/envelope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,yFAAyF;AACzF,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../src/envelope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,yFAAyF;AACzF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAGtC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,14 +4,14 @@ export type { LocaleCode, LocalizedText } from './locale.js';
|
|
|
4
4
|
export { actionOf } from './action.js';
|
|
5
5
|
export type { Action, ActionType } from './action.js';
|
|
6
6
|
export { BINDING_TARGET_FORMS, PRODUCT_SORT_KEYS, describeBinding } from './binding.js';
|
|
7
|
-
export type { Binding, BindingKind, BindingTargetForm, CollectionBinding, CollectionsBinding, EntityTarget, ProductBinding, ProductSortKey, ProductsBinding, } from './binding.js';
|
|
7
|
+
export type { Binding, BindingKind, BindingTargetForm, CartBinding, CollectionBinding, CollectionsBinding, EntityTarget, ProductBinding, ProductSortKey, ProductsBinding, } from './binding.js';
|
|
8
8
|
export { DEFAULT_THEME_STYLE, SEMANTIC_TOKENS, linkSemanticToken, resolveThemeStyle, semanticTokensLinked, terminalTokenPath, writeSemanticToken, } from './tokens.js';
|
|
9
9
|
export type { DimensionValue, SemanticTokenKey, SemanticTokenSpec, ThemeStyle, ThemeTokens, TokenGroup, TokenLeaf, TokenType, TokenValue, } from './tokens.js';
|
|
10
|
-
export { BLOCK_ID_PATTERN, BLOCK_TYPES } from './blocks.js';
|
|
10
|
+
export { BLOCK_ID_PATTERN, BLOCK_TYPES, CART_VISIBILITIES } from './blocks.js';
|
|
11
11
|
export { BLOCK_TYPE_ID_MAX_LENGTH, BLOCK_TYPE_ID_PATTERN, BLOCK_TYPE_SEPARATOR, isWellFormedShopSlug, } from './block-type-id.js';
|
|
12
12
|
export { parseBlockTypeId, privateBlockTypeId } from './block-type.js';
|
|
13
13
|
export type { BlockTypeIdentity, PlatformBlockTypeIdentity, PrivateBlockTypeIdentity, UnlistedBlockTypeIdentity, } from './block-type.js';
|
|
14
|
-
export type { AddToCartBlock, AnnouncementBarBlock, Block, BlockType, ButtonBlock, CollectionCirclesBlock, CollectionGridBlock, CollectionRowBlock, CountdownBlock, DividerBlock, FeatureStripBlock, HeroBannerBlock, ImageBlock, KnownBlock, ProductCardBlock, ProductCarouselBlock, ProductGalleryBlock, ProductGridBlock, ProductListBlock, ProductSpecsBlock, ProductSummaryBlock, PromoBannerBlock, ReviewsSlotBlock, SearchBarBlock, SectionHeaderBlock, SpacerBlock, TextBlock, UnknownBlock, VariantPickerBlock, VideoBlock, } from './blocks.js';
|
|
14
|
+
export type { AddToCartBlock, AnnouncementBarBlock, Block, BlockType, ButtonBlock, CartVisibility, CollectionCirclesBlock, CollectionGridBlock, CollectionRowBlock, CountdownBlock, DividerBlock, FeatureStripBlock, HeroBannerBlock, ImageBlock, KnownBlock, ProductCardBlock, ProductCarouselBlock, ProductGalleryBlock, ProductGridBlock, ProductListBlock, ProductSpecsBlock, ProductSummaryBlock, PromoBannerBlock, ReviewsSlotBlock, SearchBarBlock, SectionHeaderBlock, SpacerBlock, TextBlock, UnknownBlock, VariantPickerBlock, VideoBlock, } from './blocks.js';
|
|
15
15
|
export { ICON_NAMES, isIconName } from './icons.js';
|
|
16
16
|
export type { IconName } from './icons.js';
|
|
17
17
|
export { BUTTON_STYLES, GRID_COLUMNS, IMAGE_SHAPES, ITEM_IMAGE_FIELD, ITEM_TEXT_FIELDS, LAYOUT_ALIGNMENTS, PRIMITIVE_CHILD_SLOTS, PRIMITIVE_TYPES, SHOW_WHEN_CONDITIONS, TEXT_ALIGNMENTS, TEXT_SIZES, TEXT_WEIGHTS, composedBodyAssetIds, composedBodyAssetReferences, composedBodyConditions, composedBodyItemUses, composedBodyReferences, composedBodyRepeaters, composedBodyShape, enumSlotValues, isListedPrimitive, isTokenRole, nodeAtBodyPath, readsItem, tokenRoleValue, unknownPrimitivesOf, } from './primitives.js';
|
|
@@ -21,18 +21,18 @@ export type { ActionSetting, BlockBindingDeclaration, BlockBindingKind, BlockCap
|
|
|
21
21
|
export { DEFINITION_ISSUE, DEFINITION_LIMITS, definitionIssues } from './definition-validator.js';
|
|
22
22
|
export { definitionPathOf } from './path.js';
|
|
23
23
|
export type { DefinitionIssue, DefinitionIssueCode, DefinitionValidation, } from './definition-validator.js';
|
|
24
|
-
export { SCREEN_KINDS, screenSubject } from './screen.js';
|
|
25
|
-
export type { ScreenDocument, ScreenKind, ScreenRef, SubjectKind } from './screen.js';
|
|
24
|
+
export { SCREEN_ISSUE, SCREEN_KINDS, pinnedBlockIssues, screenSubject } from './screen.js';
|
|
25
|
+
export type { ScreenDocument, ScreenIssue, ScreenIssueCode, ScreenKind, ScreenRef, SubjectKind, } from './screen.js';
|
|
26
26
|
export { NAVIGATION_TAB_LIMITS } from './theme.js';
|
|
27
27
|
export type { Navigation, NavigationTab, ThemeDocument } from './theme.js';
|
|
28
28
|
export type { EnvelopeBlockDefinitions, FrozenBlockDefinition, PreviewScreenEnvelope, PreviewShellEnvelope, PreviewTarget, ScreenEnvelope, ShellBody, ShellEnvelope, } from './envelope.js';
|
|
29
29
|
export { assetReferencesOf, missingMediaOf, withoutUnchosenMedia } from './assets.js';
|
|
30
30
|
export type { AssetDisplay, AssetReference, AssetRendition, EnvelopeAssets, MissingMedia, } from './assets.js';
|
|
31
31
|
export { bindingItems, itemAvailable, itemImage, itemPrice, itemText } from './display.js';
|
|
32
|
-
export type { BindingData, BoundItem, CollectionDisplay, DisplayImage, DisplayMoney, ProductDisplay, ProductOption, ProductsBindingData, ProductVariantDisplay, } from './display.js';
|
|
32
|
+
export type { BindingData, BoundItem, CartAttribute, CartDiscountCode, CartDisplay, CartLineDisplay, CollectionDisplay, DisplayImage, DisplayMoney, ProductDisplay, ProductOption, ProductsBindingData, ProductVariantDisplay, } from './display.js';
|
|
33
33
|
export { BLOCK_MANIFEST } from './manifest.js';
|
|
34
34
|
export type { BlockManifestEntry } from './manifest.js';
|
|
35
35
|
export { blockPropKeys } from './props.js';
|
|
36
|
-
export { parseBinding, parseBlockDefinition, parseCollectionDisplay, parseEnvelopeBlockDefinitions, parsePreviewScreenEnvelope, parsePreviewShellEnvelope, parseProductDisplay, parseSchemaVersion, parseScreenDocument, parseScreenEnvelope, parseShellEnvelope, parseThemeDocument, parseThemeTokens, } from './parse.js';
|
|
36
|
+
export { parseBinding, parseBlockDefinition, parseCartDisplay, parseCollectionDisplay, parseEnvelopeBlockDefinitions, parsePreviewScreenEnvelope, parsePreviewShellEnvelope, parseProductDisplay, parseSchemaVersion, parseScreenDocument, parseScreenEnvelope, parseShellEnvelope, parseThemeDocument, parseThemeTokens, } from './parse.js';
|
|
37
37
|
export type { ParseIssue, ParseResult } from './parse.js';
|
|
38
38
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACxF,YAAY,EACV,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,GAChB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,WAAW,EACX,UAAU,EACV,SAAS,EACT,SAAS,EACT,UAAU,GACX,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,YAAY,EAA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ACd,cAAc,EACd,cAAc,EACd,YAAY,GACb,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC3F,YAAY,EACV,WAAW,EACX,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,YAAY,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,6BAA6B,EAC7B,0BAA0B,EAC1B,yBAAyB,EACzB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { SCHEMA_VERSION } from './version.js';
|
|
|
2
2
|
export { actionOf } from './action.js';
|
|
3
3
|
export { BINDING_TARGET_FORMS, PRODUCT_SORT_KEYS, describeBinding } from './binding.js';
|
|
4
4
|
export { DEFAULT_THEME_STYLE, SEMANTIC_TOKENS, linkSemanticToken, resolveThemeStyle, semanticTokensLinked, terminalTokenPath, writeSemanticToken, } from './tokens.js';
|
|
5
|
-
export { BLOCK_ID_PATTERN, BLOCK_TYPES } from './blocks.js';
|
|
5
|
+
export { BLOCK_ID_PATTERN, BLOCK_TYPES, CART_VISIBILITIES } from './blocks.js';
|
|
6
6
|
export { BLOCK_TYPE_ID_MAX_LENGTH, BLOCK_TYPE_ID_PATTERN, BLOCK_TYPE_SEPARATOR, isWellFormedShopSlug, } from './block-type-id.js';
|
|
7
7
|
export { parseBlockTypeId, privateBlockTypeId } from './block-type.js';
|
|
8
8
|
export { ICON_NAMES, isIconName } from './icons.js';
|
|
@@ -10,11 +10,11 @@ export { BUTTON_STYLES, GRID_COLUMNS, IMAGE_SHAPES, ITEM_IMAGE_FIELD, ITEM_TEXT_
|
|
|
10
10
|
export { BLOCK_BINDING_KINDS, BLOCK_CAPABILITY_NAMES, ROW_FIELD_TYPES, SETTING_TYPES, carriesValue, composedBlockPropsIssues, describeComposedBlockProps, composedPropAssetReferences, declaredBinding, defaultComposedBlockProps, defaultRowValue, } from './block-definition.js';
|
|
11
11
|
export { DEFINITION_ISSUE, DEFINITION_LIMITS, definitionIssues } from './definition-validator.js';
|
|
12
12
|
export { definitionPathOf } from './path.js';
|
|
13
|
-
export { SCREEN_KINDS, screenSubject } from './screen.js';
|
|
13
|
+
export { SCREEN_ISSUE, SCREEN_KINDS, pinnedBlockIssues, screenSubject } from './screen.js';
|
|
14
14
|
export { NAVIGATION_TAB_LIMITS } from './theme.js';
|
|
15
15
|
export { assetReferencesOf, missingMediaOf, withoutUnchosenMedia } from './assets.js';
|
|
16
16
|
export { bindingItems, itemAvailable, itemImage, itemPrice, itemText } from './display.js';
|
|
17
17
|
export { BLOCK_MANIFEST } from './manifest.js';
|
|
18
18
|
export { blockPropKeys } from './props.js';
|
|
19
|
-
export { parseBinding, parseBlockDefinition, parseCollectionDisplay, parseEnvelopeBlockDefinitions, parsePreviewScreenEnvelope, parsePreviewShellEnvelope, parseProductDisplay, parseSchemaVersion, parseScreenDocument, parseScreenEnvelope, parseShellEnvelope, parseThemeDocument, parseThemeTokens, } from './parse.js';
|
|
19
|
+
export { parseBinding, parseBlockDefinition, parseCartDisplay, parseCollectionDisplay, parseEnvelopeBlockDefinitions, parsePreviewScreenEnvelope, parsePreviewShellEnvelope, parseProductDisplay, parseSchemaVersion, parseScreenDocument, parseScreenEnvelope, parseShellEnvelope, parseThemeDocument, parseThemeTokens, } from './parse.js';
|
|
20
20
|
//# sourceMappingURL=index.js.map
|