@pdfme/common 4.0.2 → 4.1.0-dev.3
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/cjs/src/schema.js
CHANGED
@@ -56,6 +56,7 @@ exports.Dict = zod_1.z.object({
|
|
56
56
|
'schemas.text.max': zod_1.z.string(),
|
57
57
|
'schemas.text.fit': zod_1.z.string(),
|
58
58
|
'schemas.text.dynamicFontSize': zod_1.z.string(),
|
59
|
+
'schemas.text.format': zod_1.z.string(),
|
59
60
|
'schemas.barcodes.barColor': zod_1.z.string(),
|
60
61
|
'schemas.barcodes.includetext': zod_1.z.string(),
|
61
62
|
'schemas.table.alternateBackgroundColor': zod_1.z.string(),
|
@@ -92,7 +93,8 @@ exports.BlankPdf = zod_1.z.object({
|
|
92
93
|
height: zod_1.z.number(),
|
93
94
|
padding: zod_1.z.tuple([zod_1.z.number(), zod_1.z.number(), zod_1.z.number(), zod_1.z.number()]),
|
94
95
|
});
|
95
|
-
|
96
|
+
const CustomPdf = zod_1.z.union([zod_1.z.string(), ArrayBufferSchema, Uint8ArraySchema]);
|
97
|
+
exports.BasePdf = zod_1.z.union([CustomPdf, exports.BlankPdf]);
|
96
98
|
exports.Template = zod_1.z
|
97
99
|
.object({
|
98
100
|
schemas: zod_1.z.array(zod_1.z.record(exports.Schema)),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAE7E,QAAA,IAAI,GAAG,OAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACrB,QAAA,IAAI,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3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AQ,EAAE;CAC9B,CAAC,CAAC;AAEU,QAAA,YAAY,GAAG,eAAO,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,cAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAE3D,QAAA,aAAa,GAAG,eAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
package/dist/esm/src/schema.js
CHANGED
@@ -53,6 +53,7 @@ export const Dict = z.object({
|
|
53
53
|
'schemas.text.max': z.string(),
|
54
54
|
'schemas.text.fit': z.string(),
|
55
55
|
'schemas.text.dynamicFontSize': z.string(),
|
56
|
+
'schemas.text.format': z.string(),
|
56
57
|
'schemas.barcodes.barColor': z.string(),
|
57
58
|
'schemas.barcodes.includetext': z.string(),
|
58
59
|
'schemas.table.alternateBackgroundColor': z.string(),
|
@@ -89,7 +90,8 @@ export const BlankPdf = z.object({
|
|
89
90
|
height: z.number(),
|
90
91
|
padding: z.tuple([z.number(), z.number(), z.number(), z.number()]),
|
91
92
|
});
|
92
|
-
|
93
|
+
const CustomPdf = z.union([z.string(), ArrayBufferSchema, Uint8ArraySchema]);
|
94
|
+
export const BasePdf = z.union([CustomPdf, BlankPdf]);
|
93
95
|
export const Template = z
|
94
96
|
.object({
|
95
97
|
schemas: z.array(z.record(Schema)),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAE1F,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAClC,MAAM,CAAC,MAAM,IAAI,GAAG,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C;AAEH,MAAM,iBAAiB,GAA6B,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,YAAY,WAAW,CAAC,CAAC;AAEpG,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,iBAAiB;IAC/B,OAAO,EAAE,SAAS,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAExE,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
@@ -50,6 +50,7 @@ export declare const Dict: z.ZodObject<{
|
|
50
50
|
'schemas.text.max': z.ZodString;
|
51
51
|
'schemas.text.fit': z.ZodString;
|
52
52
|
'schemas.text.dynamicFontSize': z.ZodString;
|
53
|
+
'schemas.text.format': z.ZodString;
|
53
54
|
'schemas.barcodes.barColor': z.ZodString;
|
54
55
|
'schemas.barcodes.includetext': z.ZodString;
|
55
56
|
'schemas.table.alternateBackgroundColor': z.ZodString;
|
@@ -107,6 +108,7 @@ export declare const Dict: z.ZodObject<{
|
|
107
108
|
'schemas.text.max': string;
|
108
109
|
'schemas.text.fit': string;
|
109
110
|
'schemas.text.dynamicFontSize': string;
|
111
|
+
'schemas.text.format': string;
|
110
112
|
'schemas.barcodes.barColor': string;
|
111
113
|
'schemas.barcodes.includetext': string;
|
112
114
|
'schemas.table.alternateBackgroundColor': string;
|
@@ -164,6 +166,7 @@ export declare const Dict: z.ZodObject<{
|
|
164
166
|
'schemas.text.max': string;
|
165
167
|
'schemas.text.fit': string;
|
166
168
|
'schemas.text.dynamicFontSize': string;
|
169
|
+
'schemas.text.format': string;
|
167
170
|
'schemas.barcodes.barColor': string;
|
168
171
|
'schemas.barcodes.includetext': string;
|
169
172
|
'schemas.table.alternateBackgroundColor': string;
|
@@ -307,7 +310,7 @@ export declare const BlankPdf: z.ZodObject<{
|
|
307
310
|
height: number;
|
308
311
|
padding: [number, number, number, number];
|
309
312
|
}>;
|
310
|
-
export declare const BasePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
313
|
+
export declare const BasePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
311
314
|
width: z.ZodNumber;
|
312
315
|
height: z.ZodNumber;
|
313
316
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
@@ -379,7 +382,7 @@ export declare const Template: z.ZodObject<{
|
|
379
382
|
opacity: z.ZodOptional<z.ZodNumber>;
|
380
383
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
381
384
|
}, z.ZodTypeAny, "passthrough">>>, "many">;
|
382
|
-
basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
385
|
+
basePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
383
386
|
width: z.ZodNumber;
|
384
387
|
height: z.ZodNumber;
|
385
388
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
@@ -452,7 +455,7 @@ export declare const Template: z.ZodObject<{
|
|
452
455
|
opacity: z.ZodOptional<z.ZodNumber>;
|
453
456
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
454
457
|
}, z.ZodTypeAny, "passthrough">>>, "many">;
|
455
|
-
basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
458
|
+
basePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
456
459
|
width: z.ZodNumber;
|
457
460
|
height: z.ZodNumber;
|
458
461
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
@@ -525,7 +528,7 @@ export declare const Template: z.ZodObject<{
|
|
525
528
|
opacity: z.ZodOptional<z.ZodNumber>;
|
526
529
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
527
530
|
}, z.ZodTypeAny, "passthrough">>>, "many">;
|
528
|
-
basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
531
|
+
basePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
529
532
|
width: z.ZodNumber;
|
530
533
|
height: z.ZodNumber;
|
531
534
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
@@ -730,7 +733,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
730
733
|
opacity: z.ZodOptional<z.ZodNumber>;
|
731
734
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
732
735
|
}, z.ZodTypeAny, "passthrough">>>, "many">;
|
733
|
-
basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
736
|
+
basePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
734
737
|
width: z.ZodNumber;
|
735
738
|
height: z.ZodNumber;
|
736
739
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
@@ -803,7 +806,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
803
806
|
opacity: z.ZodOptional<z.ZodNumber>;
|
804
807
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
805
808
|
}, z.ZodTypeAny, "passthrough">>>, "many">;
|
806
|
-
basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
809
|
+
basePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
807
810
|
width: z.ZodNumber;
|
808
811
|
height: z.ZodNumber;
|
809
812
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
@@ -876,7 +879,7 @@ export declare const GenerateProps: z.ZodObject<{
|
|
876
879
|
opacity: z.ZodOptional<z.ZodNumber>;
|
877
880
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
878
881
|
}, z.ZodTypeAny, "passthrough">>>, "many">;
|
879
|
-
basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
882
|
+
basePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
880
883
|
width: z.ZodNumber;
|
881
884
|
height: z.ZodNumber;
|
882
885
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
@@ -1223,7 +1226,7 @@ export declare const UIProps: z.ZodObject<{
|
|
1223
1226
|
opacity: z.ZodOptional<z.ZodNumber>;
|
1224
1227
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1225
1228
|
}, z.ZodTypeAny, "passthrough">>>, "many">;
|
1226
|
-
basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
1229
|
+
basePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
1227
1230
|
width: z.ZodNumber;
|
1228
1231
|
height: z.ZodNumber;
|
1229
1232
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
@@ -1296,7 +1299,7 @@ export declare const UIProps: z.ZodObject<{
|
|
1296
1299
|
opacity: z.ZodOptional<z.ZodNumber>;
|
1297
1300
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1298
1301
|
}, z.ZodTypeAny, "passthrough">>>, "many">;
|
1299
|
-
basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
1302
|
+
basePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
1300
1303
|
width: z.ZodNumber;
|
1301
1304
|
height: z.ZodNumber;
|
1302
1305
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
@@ -1369,7 +1372,7 @@ export declare const UIProps: z.ZodObject<{
|
|
1369
1372
|
opacity: z.ZodOptional<z.ZodNumber>;
|
1370
1373
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1371
1374
|
}, z.ZodTypeAny, "passthrough">>>, "many">;
|
1372
|
-
basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
1375
|
+
basePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
1373
1376
|
width: z.ZodNumber;
|
1374
1377
|
height: z.ZodNumber;
|
1375
1378
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
@@ -1681,7 +1684,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1681
1684
|
opacity: z.ZodOptional<z.ZodNumber>;
|
1682
1685
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1683
1686
|
}, z.ZodTypeAny, "passthrough">>>, "many">;
|
1684
|
-
basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
1687
|
+
basePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
1685
1688
|
width: z.ZodNumber;
|
1686
1689
|
height: z.ZodNumber;
|
1687
1690
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
@@ -1754,7 +1757,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1754
1757
|
opacity: z.ZodOptional<z.ZodNumber>;
|
1755
1758
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1756
1759
|
}, z.ZodTypeAny, "passthrough">>>, "many">;
|
1757
|
-
basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
1760
|
+
basePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
1758
1761
|
width: z.ZodNumber;
|
1759
1762
|
height: z.ZodNumber;
|
1760
1763
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
@@ -1827,7 +1830,7 @@ export declare const PreviewProps: z.ZodObject<{
|
|
1827
1830
|
opacity: z.ZodOptional<z.ZodNumber>;
|
1828
1831
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
1829
1832
|
}, z.ZodTypeAny, "passthrough">>>, "many">;
|
1830
|
-
basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
1833
|
+
basePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
1831
1834
|
width: z.ZodNumber;
|
1832
1835
|
height: z.ZodNumber;
|
1833
1836
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
@@ -2090,7 +2093,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
2090
2093
|
opacity: z.ZodOptional<z.ZodNumber>;
|
2091
2094
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
2092
2095
|
}, z.ZodTypeAny, "passthrough">>>, "many">;
|
2093
|
-
basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
2096
|
+
basePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
2094
2097
|
width: z.ZodNumber;
|
2095
2098
|
height: z.ZodNumber;
|
2096
2099
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
@@ -2163,7 +2166,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
2163
2166
|
opacity: z.ZodOptional<z.ZodNumber>;
|
2164
2167
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
2165
2168
|
}, z.ZodTypeAny, "passthrough">>>, "many">;
|
2166
|
-
basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
2169
|
+
basePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
2167
2170
|
width: z.ZodNumber;
|
2168
2171
|
height: z.ZodNumber;
|
2169
2172
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
@@ -2236,7 +2239,7 @@ export declare const DesignerProps: z.ZodObject<{
|
|
2236
2239
|
opacity: z.ZodOptional<z.ZodNumber>;
|
2237
2240
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
2238
2241
|
}, z.ZodTypeAny, "passthrough">>>, "many">;
|
2239
|
-
basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodObject<{
|
2242
|
+
basePdf: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>, z.ZodObject<{
|
2240
2243
|
width: z.ZodNumber;
|
2241
2244
|
height: z.ZodNumber;
|
2242
2245
|
padding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
package/package.json
CHANGED
package/src/schema.ts
CHANGED
@@ -56,6 +56,7 @@ export const Dict = z.object({
|
|
56
56
|
'schemas.text.max': z.string(),
|
57
57
|
'schemas.text.fit': z.string(),
|
58
58
|
'schemas.text.dynamicFontSize': z.string(),
|
59
|
+
'schemas.text.format': z.string(),
|
59
60
|
|
60
61
|
'schemas.barcodes.barColor': z.string(),
|
61
62
|
'schemas.barcodes.includetext': z.string(),
|
@@ -94,13 +95,16 @@ export const SchemaForUI = Schema.merge(SchemaForUIAdditionalInfo);
|
|
94
95
|
|
95
96
|
const ArrayBufferSchema: z.ZodSchema<ArrayBuffer> = z.any().refine((v) => v instanceof ArrayBuffer);
|
96
97
|
const Uint8ArraySchema: z.ZodSchema<Uint8Array> = z.any().refine((v) => v instanceof Uint8Array);
|
98
|
+
|
97
99
|
export const BlankPdf = z.object({
|
98
100
|
width: z.number(),
|
99
101
|
height: z.number(),
|
100
102
|
padding: z.tuple([z.number(), z.number(), z.number(), z.number()]),
|
101
103
|
});
|
102
104
|
|
103
|
-
|
105
|
+
const CustomPdf = z.union([z.string(), ArrayBufferSchema, Uint8ArraySchema]);
|
106
|
+
|
107
|
+
export const BasePdf = z.union([CustomPdf, BlankPdf]);
|
104
108
|
|
105
109
|
export const Template = z
|
106
110
|
.object({
|