@pdfme/common 2.2.1 → 3.0.0-beta.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.
Files changed (65) hide show
  1. package/dist/cjs/__tests__/helper.test.js +292 -233
  2. package/dist/cjs/__tests__/helper.test.js.map +1 -1
  3. package/dist/cjs/src/constants.js +3 -17
  4. package/dist/cjs/src/constants.js.map +1 -1
  5. package/dist/cjs/src/helper.js +72 -99
  6. package/dist/cjs/src/helper.js.map +1 -1
  7. package/dist/cjs/src/index.js +7 -37
  8. package/dist/cjs/src/index.js.map +1 -1
  9. package/dist/cjs/src/schema.js +17 -71
  10. package/dist/cjs/src/schema.js.map +1 -1
  11. package/dist/cjs/src/types.js +3 -0
  12. package/dist/cjs/src/types.js.map +1 -0
  13. package/dist/esm/__tests__/helper.test.js +270 -234
  14. package/dist/esm/__tests__/helper.test.js.map +1 -1
  15. package/dist/esm/src/constants.js +2 -16
  16. package/dist/esm/src/constants.js.map +1 -1
  17. package/dist/esm/src/helper.js +68 -98
  18. package/dist/esm/src/helper.js.map +1 -1
  19. package/dist/esm/src/index.js +3 -6
  20. package/dist/esm/src/index.js.map +1 -1
  21. package/dist/esm/src/schema.js +14 -68
  22. package/dist/esm/src/schema.js.map +1 -1
  23. package/dist/esm/src/types.js +2 -0
  24. package/dist/esm/src/types.js.map +1 -0
  25. package/dist/types/src/constants.d.ts +2 -16
  26. package/dist/types/src/helper.d.ts +11 -2
  27. package/dist/types/src/index.d.ts +5 -8
  28. package/dist/types/src/schema.d.ts +696 -3574
  29. package/dist/types/src/types.d.ts +127 -0
  30. package/package.json +5 -11
  31. package/src/constants.ts +2 -18
  32. package/src/helper.ts +108 -116
  33. package/src/index.ts +28 -87
  34. package/src/schema.ts +18 -84
  35. package/src/types.ts +124 -0
  36. package/tsconfig.cjs.json +3 -2
  37. package/tsconfig.esm.json +3 -2
  38. package/dist/cjs/__tests__/barcode.test.js +0 -107
  39. package/dist/cjs/__tests__/barcode.test.js.map +0 -1
  40. package/dist/cjs/__tests__/font.test.js +0 -465
  41. package/dist/cjs/__tests__/font.test.js.map +0 -1
  42. package/dist/cjs/src/barcode.js +0 -53
  43. package/dist/cjs/src/barcode.js.map +0 -1
  44. package/dist/cjs/src/font.js +0 -310
  45. package/dist/cjs/src/font.js.map +0 -1
  46. package/dist/cjs/src/type.js +0 -12
  47. package/dist/cjs/src/type.js.map +0 -1
  48. package/dist/esm/__tests__/barcode.test.js +0 -102
  49. package/dist/esm/__tests__/barcode.test.js.map +0 -1
  50. package/dist/esm/__tests__/font.test.js +0 -440
  51. package/dist/esm/__tests__/font.test.js.map +0 -1
  52. package/dist/esm/src/barcode.js +0 -44
  53. package/dist/esm/src/barcode.js.map +0 -1
  54. package/dist/esm/src/font.js +0 -274
  55. package/dist/esm/src/font.js.map +0 -1
  56. package/dist/esm/src/type.js +0 -6
  57. package/dist/esm/src/type.js.map +0 -1
  58. package/dist/types/__tests__/barcode.test.d.ts +0 -1
  59. package/dist/types/__tests__/font.test.d.ts +0 -1
  60. package/dist/types/src/barcode.d.ts +0 -19
  61. package/dist/types/src/font.d.ts +0 -34
  62. package/dist/types/src/type.d.ts +0 -81
  63. package/src/barcode.ts +0 -51
  64. package/src/font.ts +0 -352
  65. package/src/type.ts +0 -69
@@ -10,14 +10,8 @@ export declare const Size: z.ZodObject<{
10
10
  height: number;
11
11
  width: number;
12
12
  }>;
13
- export declare const Alignment: z.ZodEnum<["left", "center", "right"]>;
14
- export declare const VerticalAlignment: z.ZodEnum<["top", "middle", "bottom"]>;
15
- export declare const barcodeSchemaTypes: readonly ["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"];
16
- export declare const schemaTypes: readonly ["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"];
17
- export declare const BarcodeSchemaType: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
18
- export declare const SchemaType: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
19
- export declare const CommonSchema: z.ZodObject<{
20
- type: z.ZodEnum<["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
13
+ export declare const Schema: z.ZodObject<{
14
+ type: z.ZodString;
21
15
  position: z.ZodObject<{
22
16
  x: z.ZodNumber;
23
17
  y: z.ZodNumber;
@@ -31,28 +25,8 @@ export declare const CommonSchema: z.ZodObject<{
31
25
  width: z.ZodNumber;
32
26
  height: z.ZodNumber;
33
27
  rotate: z.ZodOptional<z.ZodNumber>;
34
- }, "strip", z.ZodTypeAny, {
35
- type: "image" | "text" | "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
36
- height: number;
37
- width: number;
38
- position: {
39
- x: number;
40
- y: number;
41
- };
42
- rotate?: number | undefined;
43
- }, {
44
- type: "image" | "text" | "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
45
- height: number;
46
- width: number;
47
- position: {
48
- x: number;
49
- y: number;
50
- };
51
- rotate?: number | undefined;
52
- }>;
53
- export declare const TextSchema: z.ZodObject<{
54
- height: z.ZodNumber;
55
- width: z.ZodNumber;
28
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
29
+ type: z.ZodString;
56
30
  position: z.ZodObject<{
57
31
  x: z.ZodNumber;
58
32
  y: z.ZodNumber;
@@ -63,154 +37,11 @@ export declare const TextSchema: z.ZodObject<{
63
37
  x: number;
64
38
  y: number;
65
39
  }>;
66
- rotate: z.ZodOptional<z.ZodNumber>;
67
- type: z.ZodLiteral<"text">;
68
- alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
69
- verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
70
- fontSize: z.ZodOptional<z.ZodNumber>;
71
- fontName: z.ZodOptional<z.ZodString>;
72
- fontColor: z.ZodOptional<z.ZodString>;
73
- backgroundColor: z.ZodOptional<z.ZodString>;
74
- characterSpacing: z.ZodOptional<z.ZodNumber>;
75
- lineHeight: z.ZodOptional<z.ZodNumber>;
76
- dynamicFontSize: z.ZodOptional<z.ZodObject<{
77
- max: z.ZodNumber;
78
- min: z.ZodNumber;
79
- fit: z.ZodOptional<z.ZodString>;
80
- }, "strip", z.ZodTypeAny, {
81
- max: number;
82
- min: number;
83
- fit?: string | undefined;
84
- }, {
85
- max: number;
86
- min: number;
87
- fit?: string | undefined;
88
- }>>;
89
- }, "strip", z.ZodTypeAny, {
90
- type: "text";
91
- height: number;
92
- width: number;
93
- position: {
94
- x: number;
95
- y: number;
96
- };
97
- rotate?: number | undefined;
98
- alignment?: "center" | "left" | "right" | undefined;
99
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
100
- fontSize?: number | undefined;
101
- fontName?: string | undefined;
102
- fontColor?: string | undefined;
103
- backgroundColor?: string | undefined;
104
- characterSpacing?: number | undefined;
105
- lineHeight?: number | undefined;
106
- dynamicFontSize?: {
107
- max: number;
108
- min: number;
109
- fit?: string | undefined;
110
- } | undefined;
111
- }, {
112
- type: "text";
113
- height: number;
114
- width: number;
115
- position: {
116
- x: number;
117
- y: number;
118
- };
119
- rotate?: number | undefined;
120
- alignment?: "center" | "left" | "right" | undefined;
121
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
122
- fontSize?: number | undefined;
123
- fontName?: string | undefined;
124
- fontColor?: string | undefined;
125
- backgroundColor?: string | undefined;
126
- characterSpacing?: number | undefined;
127
- lineHeight?: number | undefined;
128
- dynamicFontSize?: {
129
- max: number;
130
- min: number;
131
- fit?: string | undefined;
132
- } | undefined;
133
- }>;
134
- export declare const ImageSchema: z.ZodObject<{
135
- height: z.ZodNumber;
136
40
  width: z.ZodNumber;
137
- position: z.ZodObject<{
138
- x: z.ZodNumber;
139
- y: z.ZodNumber;
140
- }, "strip", z.ZodTypeAny, {
141
- x: number;
142
- y: number;
143
- }, {
144
- x: number;
145
- y: number;
146
- }>;
147
- rotate: z.ZodOptional<z.ZodNumber>;
148
- type: z.ZodLiteral<"image">;
149
- }, "strip", z.ZodTypeAny, {
150
- type: "image";
151
- height: number;
152
- width: number;
153
- position: {
154
- x: number;
155
- y: number;
156
- };
157
- rotate?: number | undefined;
158
- }, {
159
- type: "image";
160
- height: number;
161
- width: number;
162
- position: {
163
- x: number;
164
- y: number;
165
- };
166
- rotate?: number | undefined;
167
- }>;
168
- export declare const BarcodeSchema: z.ZodObject<{
169
41
  height: z.ZodNumber;
170
- width: z.ZodNumber;
171
- position: z.ZodObject<{
172
- x: z.ZodNumber;
173
- y: z.ZodNumber;
174
- }, "strip", z.ZodTypeAny, {
175
- x: number;
176
- y: number;
177
- }, {
178
- x: number;
179
- y: number;
180
- }>;
181
42
  rotate: z.ZodOptional<z.ZodNumber>;
182
- type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
183
- backgroundcolor: z.ZodOptional<z.ZodString>;
184
- barcolor: z.ZodOptional<z.ZodString>;
185
- textcolor: z.ZodOptional<z.ZodString>;
186
- }, "strip", z.ZodTypeAny, {
187
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
188
- height: number;
189
- width: number;
190
- position: {
191
- x: number;
192
- y: number;
193
- };
194
- rotate?: number | undefined;
195
- backgroundcolor?: string | undefined;
196
- barcolor?: string | undefined;
197
- textcolor?: string | undefined;
198
- }, {
199
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
200
- height: number;
201
- width: number;
202
- position: {
203
- x: number;
204
- y: number;
205
- };
206
- rotate?: number | undefined;
207
- backgroundcolor?: string | undefined;
208
- barcolor?: string | undefined;
209
- textcolor?: string | undefined;
210
- }>;
211
- export declare const Schema: z.ZodUnion<[z.ZodObject<{
212
- height: z.ZodNumber;
213
- width: z.ZodNumber;
43
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
44
+ type: z.ZodString;
214
45
  position: z.ZodObject<{
215
46
  x: z.ZodNumber;
216
47
  y: z.ZodNumber;
@@ -221,156 +52,14 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<{
221
52
  x: number;
222
53
  y: number;
223
54
  }>;
224
- rotate: z.ZodOptional<z.ZodNumber>;
225
- type: z.ZodLiteral<"text">;
226
- alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
227
- verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
228
- fontSize: z.ZodOptional<z.ZodNumber>;
229
- fontName: z.ZodOptional<z.ZodString>;
230
- fontColor: z.ZodOptional<z.ZodString>;
231
- backgroundColor: z.ZodOptional<z.ZodString>;
232
- characterSpacing: z.ZodOptional<z.ZodNumber>;
233
- lineHeight: z.ZodOptional<z.ZodNumber>;
234
- dynamicFontSize: z.ZodOptional<z.ZodObject<{
235
- max: z.ZodNumber;
236
- min: z.ZodNumber;
237
- fit: z.ZodOptional<z.ZodString>;
238
- }, "strip", z.ZodTypeAny, {
239
- max: number;
240
- min: number;
241
- fit?: string | undefined;
242
- }, {
243
- max: number;
244
- min: number;
245
- fit?: string | undefined;
246
- }>>;
247
- }, "strip", z.ZodTypeAny, {
248
- type: "text";
249
- height: number;
250
- width: number;
251
- position: {
252
- x: number;
253
- y: number;
254
- };
255
- rotate?: number | undefined;
256
- alignment?: "center" | "left" | "right" | undefined;
257
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
258
- fontSize?: number | undefined;
259
- fontName?: string | undefined;
260
- fontColor?: string | undefined;
261
- backgroundColor?: string | undefined;
262
- characterSpacing?: number | undefined;
263
- lineHeight?: number | undefined;
264
- dynamicFontSize?: {
265
- max: number;
266
- min: number;
267
- fit?: string | undefined;
268
- } | undefined;
269
- }, {
270
- type: "text";
271
- height: number;
272
- width: number;
273
- position: {
274
- x: number;
275
- y: number;
276
- };
277
- rotate?: number | undefined;
278
- alignment?: "center" | "left" | "right" | undefined;
279
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
280
- fontSize?: number | undefined;
281
- fontName?: string | undefined;
282
- fontColor?: string | undefined;
283
- backgroundColor?: string | undefined;
284
- characterSpacing?: number | undefined;
285
- lineHeight?: number | undefined;
286
- dynamicFontSize?: {
287
- max: number;
288
- min: number;
289
- fit?: string | undefined;
290
- } | undefined;
291
- }>, z.ZodObject<{
292
- height: z.ZodNumber;
293
55
  width: z.ZodNumber;
294
- position: z.ZodObject<{
295
- x: z.ZodNumber;
296
- y: z.ZodNumber;
297
- }, "strip", z.ZodTypeAny, {
298
- x: number;
299
- y: number;
300
- }, {
301
- x: number;
302
- y: number;
303
- }>;
304
- rotate: z.ZodOptional<z.ZodNumber>;
305
- type: z.ZodLiteral<"image">;
306
- }, "strip", z.ZodTypeAny, {
307
- type: "image";
308
- height: number;
309
- width: number;
310
- position: {
311
- x: number;
312
- y: number;
313
- };
314
- rotate?: number | undefined;
315
- }, {
316
- type: "image";
317
- height: number;
318
- width: number;
319
- position: {
320
- x: number;
321
- y: number;
322
- };
323
- rotate?: number | undefined;
324
- }>, z.ZodObject<{
325
56
  height: z.ZodNumber;
326
- width: z.ZodNumber;
327
- position: z.ZodObject<{
328
- x: z.ZodNumber;
329
- y: z.ZodNumber;
330
- }, "strip", z.ZodTypeAny, {
331
- x: number;
332
- y: number;
333
- }, {
334
- x: number;
335
- y: number;
336
- }>;
337
57
  rotate: z.ZodOptional<z.ZodNumber>;
338
- type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
339
- backgroundcolor: z.ZodOptional<z.ZodString>;
340
- barcolor: z.ZodOptional<z.ZodString>;
341
- textcolor: z.ZodOptional<z.ZodString>;
342
- }, "strip", z.ZodTypeAny, {
343
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
344
- height: number;
345
- width: number;
346
- position: {
347
- x: number;
348
- y: number;
349
- };
350
- rotate?: number | undefined;
351
- backgroundcolor?: string | undefined;
352
- barcolor?: string | undefined;
353
- textcolor?: string | undefined;
354
- }, {
355
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
356
- height: number;
357
- width: number;
358
- position: {
359
- x: number;
360
- y: number;
361
- };
362
- rotate?: number | undefined;
363
- backgroundcolor?: string | undefined;
364
- barcolor?: string | undefined;
365
- textcolor?: string | undefined;
366
- }>]>;
367
- export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<{
368
- type: z.ZodLiteral<"text">;
58
+ }, z.ZodTypeAny, "passthrough">>;
59
+ export declare const SchemaForUI: z.ZodObject<{
369
60
  height: z.ZodNumber;
370
61
  width: z.ZodNumber;
371
- backgroundColor: z.ZodOptional<z.ZodString>;
372
- fontSize: z.ZodOptional<z.ZodNumber>;
373
- lineHeight: z.ZodOptional<z.ZodNumber>;
62
+ type: z.ZodString;
374
63
  position: z.ZodObject<{
375
64
  x: z.ZodNumber;
376
65
  y: z.ZodNumber;
@@ -382,171 +71,34 @@ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<{
382
71
  y: number;
383
72
  }>;
384
73
  rotate: z.ZodOptional<z.ZodNumber>;
385
- alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
386
- verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
387
- fontName: z.ZodOptional<z.ZodString>;
388
- fontColor: z.ZodOptional<z.ZodString>;
389
- characterSpacing: z.ZodOptional<z.ZodNumber>;
390
- dynamicFontSize: z.ZodOptional<z.ZodObject<{
391
- max: z.ZodNumber;
392
- min: z.ZodNumber;
393
- fit: z.ZodOptional<z.ZodString>;
394
- }, "strip", z.ZodTypeAny, {
395
- max: number;
396
- min: number;
397
- fit?: string | undefined;
398
- }, {
399
- max: number;
400
- min: number;
401
- fit?: string | undefined;
402
- }>>;
403
74
  id: z.ZodString;
404
75
  key: z.ZodString;
405
76
  data: z.ZodString;
406
77
  }, "strip", z.ZodTypeAny, {
407
- type: "text";
408
- data: string;
409
- key: string;
410
- id: string;
411
78
  height: number;
412
79
  width: number;
80
+ type: string;
413
81
  position: {
414
82
  x: number;
415
83
  y: number;
416
84
  };
417
- backgroundColor?: string | undefined;
418
- fontSize?: number | undefined;
419
- lineHeight?: number | undefined;
420
- rotate?: number | undefined;
421
- alignment?: "center" | "left" | "right" | undefined;
422
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
423
- fontName?: string | undefined;
424
- fontColor?: string | undefined;
425
- characterSpacing?: number | undefined;
426
- dynamicFontSize?: {
427
- max: number;
428
- min: number;
429
- fit?: string | undefined;
430
- } | undefined;
431
- }, {
432
- type: "text";
433
85
  data: string;
434
- key: string;
435
86
  id: string;
436
- height: number;
437
- width: number;
438
- position: {
439
- x: number;
440
- y: number;
441
- };
442
- backgroundColor?: string | undefined;
443
- fontSize?: number | undefined;
444
- lineHeight?: number | undefined;
445
- rotate?: number | undefined;
446
- alignment?: "center" | "left" | "right" | undefined;
447
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
448
- fontName?: string | undefined;
449
- fontColor?: string | undefined;
450
- characterSpacing?: number | undefined;
451
- dynamicFontSize?: {
452
- max: number;
453
- min: number;
454
- fit?: string | undefined;
455
- } | undefined;
456
- }>, z.ZodObject<{
457
- type: z.ZodLiteral<"image">;
458
- height: z.ZodNumber;
459
- width: z.ZodNumber;
460
- position: z.ZodObject<{
461
- x: z.ZodNumber;
462
- y: z.ZodNumber;
463
- }, "strip", z.ZodTypeAny, {
464
- x: number;
465
- y: number;
466
- }, {
467
- x: number;
468
- y: number;
469
- }>;
470
- rotate: z.ZodOptional<z.ZodNumber>;
471
- id: z.ZodString;
472
- key: z.ZodString;
473
- data: z.ZodString;
474
- }, "strip", z.ZodTypeAny, {
475
- type: "image";
476
- data: string;
477
87
  key: string;
478
- id: string;
479
- height: number;
480
- width: number;
481
- position: {
482
- x: number;
483
- y: number;
484
- };
485
88
  rotate?: number | undefined;
486
89
  }, {
487
- type: "image";
488
- data: string;
489
- key: string;
490
- id: string;
491
90
  height: number;
492
91
  width: number;
92
+ type: string;
493
93
  position: {
494
94
  x: number;
495
95
  y: number;
496
96
  };
497
- rotate?: number | undefined;
498
- }>, z.ZodObject<{
499
- type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
500
- height: z.ZodNumber;
501
- width: z.ZodNumber;
502
- position: z.ZodObject<{
503
- x: z.ZodNumber;
504
- y: z.ZodNumber;
505
- }, "strip", z.ZodTypeAny, {
506
- x: number;
507
- y: number;
508
- }, {
509
- x: number;
510
- y: number;
511
- }>;
512
- rotate: z.ZodOptional<z.ZodNumber>;
513
- backgroundcolor: z.ZodOptional<z.ZodString>;
514
- barcolor: z.ZodOptional<z.ZodString>;
515
- textcolor: z.ZodOptional<z.ZodString>;
516
- id: z.ZodString;
517
- key: z.ZodString;
518
- data: z.ZodString;
519
- }, "strip", z.ZodTypeAny, {
520
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
521
97
  data: string;
522
- key: string;
523
98
  id: string;
524
- height: number;
525
- width: number;
526
- position: {
527
- x: number;
528
- y: number;
529
- };
530
- rotate?: number | undefined;
531
- backgroundcolor?: string | undefined;
532
- barcolor?: string | undefined;
533
- textcolor?: string | undefined;
534
- }, {
535
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
536
- data: string;
537
99
  key: string;
538
- id: string;
539
- height: number;
540
- width: number;
541
- position: {
542
- x: number;
543
- y: number;
544
- };
545
100
  rotate?: number | undefined;
546
- backgroundcolor?: string | undefined;
547
- barcolor?: string | undefined;
548
- textcolor?: string | undefined;
549
- }>]>;
101
+ }>;
550
102
  export declare const Font: z.ZodRecord<z.ZodString, z.ZodObject<{
551
103
  data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
552
104
  fallback: z.ZodOptional<z.ZodBoolean>;
@@ -562,9 +114,8 @@ export declare const Font: z.ZodRecord<z.ZodString, z.ZodObject<{
562
114
  }>>;
563
115
  export declare const BasePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
564
116
  export declare const Template: z.ZodObject<{
565
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
566
- height: z.ZodNumber;
567
- width: z.ZodNumber;
117
+ schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
118
+ type: z.ZodString;
568
119
  position: z.ZodObject<{
569
120
  x: z.ZodNumber;
570
121
  y: z.ZodNumber;
@@ -575,76 +126,11 @@ export declare const Template: z.ZodObject<{
575
126
  x: number;
576
127
  y: number;
577
128
  }>;
129
+ width: z.ZodNumber;
130
+ height: z.ZodNumber;
578
131
  rotate: z.ZodOptional<z.ZodNumber>;
579
- type: z.ZodLiteral<"text">;
580
- alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
581
- verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
582
- fontSize: z.ZodOptional<z.ZodNumber>;
583
- fontName: z.ZodOptional<z.ZodString>;
584
- fontColor: z.ZodOptional<z.ZodString>;
585
- backgroundColor: z.ZodOptional<z.ZodString>;
586
- characterSpacing: z.ZodOptional<z.ZodNumber>;
587
- lineHeight: z.ZodOptional<z.ZodNumber>;
588
- dynamicFontSize: z.ZodOptional<z.ZodObject<{
589
- max: z.ZodNumber;
590
- min: z.ZodNumber;
591
- fit: z.ZodOptional<z.ZodString>;
592
- }, "strip", z.ZodTypeAny, {
593
- max: number;
594
- min: number;
595
- fit?: string | undefined;
596
- }, {
597
- max: number;
598
- min: number;
599
- fit?: string | undefined;
600
- }>>;
601
- }, "strip", z.ZodTypeAny, {
602
- type: "text";
603
- height: number;
604
- width: number;
605
- position: {
606
- x: number;
607
- y: number;
608
- };
609
- rotate?: number | undefined;
610
- alignment?: "center" | "left" | "right" | undefined;
611
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
612
- fontSize?: number | undefined;
613
- fontName?: string | undefined;
614
- fontColor?: string | undefined;
615
- backgroundColor?: string | undefined;
616
- characterSpacing?: number | undefined;
617
- lineHeight?: number | undefined;
618
- dynamicFontSize?: {
619
- max: number;
620
- min: number;
621
- fit?: string | undefined;
622
- } | undefined;
623
- }, {
624
- type: "text";
625
- height: number;
626
- width: number;
627
- position: {
628
- x: number;
629
- y: number;
630
- };
631
- rotate?: number | undefined;
632
- alignment?: "center" | "left" | "right" | undefined;
633
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
634
- fontSize?: number | undefined;
635
- fontName?: string | undefined;
636
- fontColor?: string | undefined;
637
- backgroundColor?: string | undefined;
638
- characterSpacing?: number | undefined;
639
- lineHeight?: number | undefined;
640
- dynamicFontSize?: {
641
- max: number;
642
- min: number;
643
- fit?: string | undefined;
644
- } | undefined;
645
- }>, z.ZodObject<{
646
- height: z.ZodNumber;
647
- width: z.ZodNumber;
132
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
133
+ type: z.ZodString;
648
134
  position: z.ZodObject<{
649
135
  x: z.ZodNumber;
650
136
  y: z.ZodNumber;
@@ -655,29 +141,11 @@ export declare const Template: z.ZodObject<{
655
141
  x: number;
656
142
  y: number;
657
143
  }>;
658
- rotate: z.ZodOptional<z.ZodNumber>;
659
- type: z.ZodLiteral<"image">;
660
- }, "strip", z.ZodTypeAny, {
661
- type: "image";
662
- height: number;
663
- width: number;
664
- position: {
665
- x: number;
666
- y: number;
667
- };
668
- rotate?: number | undefined;
669
- }, {
670
- type: "image";
671
- height: number;
672
- width: number;
673
- position: {
674
- x: number;
675
- y: number;
676
- };
677
- rotate?: number | undefined;
678
- }>, z.ZodObject<{
679
- height: z.ZodNumber;
680
144
  width: z.ZodNumber;
145
+ height: z.ZodNumber;
146
+ rotate: z.ZodOptional<z.ZodNumber>;
147
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
148
+ type: z.ZodString;
681
149
  position: z.ZodObject<{
682
150
  x: z.ZodNumber;
683
151
  y: z.ZodNumber;
@@ -688,537 +156,55 @@ export declare const Template: z.ZodObject<{
688
156
  x: number;
689
157
  y: number;
690
158
  }>;
159
+ width: z.ZodNumber;
160
+ height: z.ZodNumber;
691
161
  rotate: z.ZodOptional<z.ZodNumber>;
692
- type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
693
- backgroundcolor: z.ZodOptional<z.ZodString>;
694
- barcolor: z.ZodOptional<z.ZodString>;
695
- textcolor: z.ZodOptional<z.ZodString>;
696
- }, "strip", z.ZodTypeAny, {
697
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
698
- height: number;
699
- width: number;
700
- position: {
701
- x: number;
702
- y: number;
703
- };
704
- rotate?: number | undefined;
705
- backgroundcolor?: string | undefined;
706
- barcolor?: string | undefined;
707
- textcolor?: string | undefined;
708
- }, {
709
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
710
- height: number;
711
- width: number;
712
- position: {
713
- x: number;
714
- y: number;
715
- };
716
- rotate?: number | undefined;
717
- backgroundcolor?: string | undefined;
718
- barcolor?: string | undefined;
719
- textcolor?: string | undefined;
720
- }>]>>, "many">;
162
+ }, z.ZodTypeAny, "passthrough">>>, "many">;
721
163
  basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
722
164
  sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
723
165
  columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
724
166
  }, "strip", z.ZodTypeAny, {
725
- schemas: Record<string, {
726
- type: "text";
727
- height: number;
728
- width: number;
729
- position: {
730
- x: number;
731
- y: number;
732
- };
733
- rotate?: number | undefined;
734
- alignment?: "center" | "left" | "right" | undefined;
735
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
736
- fontSize?: number | undefined;
737
- fontName?: string | undefined;
738
- fontColor?: string | undefined;
739
- backgroundColor?: string | undefined;
740
- characterSpacing?: number | undefined;
741
- lineHeight?: number | undefined;
742
- dynamicFontSize?: {
743
- max: number;
744
- min: number;
745
- fit?: string | undefined;
746
- } | undefined;
747
- } | {
748
- type: "image";
749
- height: number;
750
- width: number;
751
- position: {
167
+ schemas: Record<string, z.objectOutputType<{
168
+ type: z.ZodString;
169
+ position: z.ZodObject<{
170
+ x: z.ZodNumber;
171
+ y: z.ZodNumber;
172
+ }, "strip", z.ZodTypeAny, {
752
173
  x: number;
753
174
  y: number;
754
- };
755
- rotate?: number | undefined;
756
- } | {
757
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
758
- height: number;
759
- width: number;
760
- position: {
175
+ }, {
761
176
  x: number;
762
177
  y: number;
763
- };
764
- rotate?: number | undefined;
765
- backgroundcolor?: string | undefined;
766
- barcolor?: string | undefined;
767
- textcolor?: string | undefined;
768
- }>[];
178
+ }>;
179
+ width: z.ZodNumber;
180
+ height: z.ZodNumber;
181
+ rotate: z.ZodOptional<z.ZodNumber>;
182
+ }, z.ZodTypeAny, "passthrough">>[];
769
183
  basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
770
184
  sampledata?: Record<string, string>[] | undefined;
771
185
  columns?: string[] | undefined;
772
186
  }, {
773
- schemas: Record<string, {
774
- type: "text";
775
- height: number;
776
- width: number;
777
- position: {
778
- x: number;
779
- y: number;
780
- };
781
- rotate?: number | undefined;
782
- alignment?: "center" | "left" | "right" | undefined;
783
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
784
- fontSize?: number | undefined;
785
- fontName?: string | undefined;
786
- fontColor?: string | undefined;
787
- backgroundColor?: string | undefined;
788
- characterSpacing?: number | undefined;
789
- lineHeight?: number | undefined;
790
- dynamicFontSize?: {
791
- max: number;
792
- min: number;
793
- fit?: string | undefined;
794
- } | undefined;
795
- } | {
796
- type: "image";
797
- height: number;
798
- width: number;
799
- position: {
187
+ schemas: Record<string, z.objectInputType<{
188
+ type: z.ZodString;
189
+ position: z.ZodObject<{
190
+ x: z.ZodNumber;
191
+ y: z.ZodNumber;
192
+ }, "strip", z.ZodTypeAny, {
800
193
  x: number;
801
194
  y: number;
802
- };
803
- rotate?: number | undefined;
804
- } | {
805
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
806
- height: number;
807
- width: number;
808
- position: {
195
+ }, {
809
196
  x: number;
810
197
  y: number;
811
- };
812
- rotate?: number | undefined;
813
- backgroundcolor?: string | undefined;
814
- barcolor?: string | undefined;
815
- textcolor?: string | undefined;
816
- }>[];
198
+ }>;
199
+ width: z.ZodNumber;
200
+ height: z.ZodNumber;
201
+ rotate: z.ZodOptional<z.ZodNumber>;
202
+ }, z.ZodTypeAny, "passthrough">>[];
817
203
  basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
818
204
  sampledata?: Record<string, string>[] | undefined;
819
205
  columns?: string[] | undefined;
820
206
  }>;
821
207
  export declare const Inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
822
- export declare const CommonProps: z.ZodObject<{
823
- template: z.ZodObject<{
824
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
825
- height: z.ZodNumber;
826
- width: z.ZodNumber;
827
- position: z.ZodObject<{
828
- x: z.ZodNumber;
829
- y: z.ZodNumber;
830
- }, "strip", z.ZodTypeAny, {
831
- x: number;
832
- y: number;
833
- }, {
834
- x: number;
835
- y: number;
836
- }>;
837
- rotate: z.ZodOptional<z.ZodNumber>;
838
- type: z.ZodLiteral<"text">;
839
- alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
840
- verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
841
- fontSize: z.ZodOptional<z.ZodNumber>;
842
- fontName: z.ZodOptional<z.ZodString>;
843
- fontColor: z.ZodOptional<z.ZodString>;
844
- backgroundColor: z.ZodOptional<z.ZodString>;
845
- characterSpacing: z.ZodOptional<z.ZodNumber>;
846
- lineHeight: z.ZodOptional<z.ZodNumber>;
847
- dynamicFontSize: z.ZodOptional<z.ZodObject<{
848
- max: z.ZodNumber;
849
- min: z.ZodNumber;
850
- fit: z.ZodOptional<z.ZodString>;
851
- }, "strip", z.ZodTypeAny, {
852
- max: number;
853
- min: number;
854
- fit?: string | undefined;
855
- }, {
856
- max: number;
857
- min: number;
858
- fit?: string | undefined;
859
- }>>;
860
- }, "strip", z.ZodTypeAny, {
861
- type: "text";
862
- height: number;
863
- width: number;
864
- position: {
865
- x: number;
866
- y: number;
867
- };
868
- rotate?: number | undefined;
869
- alignment?: "center" | "left" | "right" | undefined;
870
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
871
- fontSize?: number | undefined;
872
- fontName?: string | undefined;
873
- fontColor?: string | undefined;
874
- backgroundColor?: string | undefined;
875
- characterSpacing?: number | undefined;
876
- lineHeight?: number | undefined;
877
- dynamicFontSize?: {
878
- max: number;
879
- min: number;
880
- fit?: string | undefined;
881
- } | undefined;
882
- }, {
883
- type: "text";
884
- height: number;
885
- width: number;
886
- position: {
887
- x: number;
888
- y: number;
889
- };
890
- rotate?: number | undefined;
891
- alignment?: "center" | "left" | "right" | undefined;
892
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
893
- fontSize?: number | undefined;
894
- fontName?: string | undefined;
895
- fontColor?: string | undefined;
896
- backgroundColor?: string | undefined;
897
- characterSpacing?: number | undefined;
898
- lineHeight?: number | undefined;
899
- dynamicFontSize?: {
900
- max: number;
901
- min: number;
902
- fit?: string | undefined;
903
- } | undefined;
904
- }>, z.ZodObject<{
905
- height: z.ZodNumber;
906
- width: z.ZodNumber;
907
- position: z.ZodObject<{
908
- x: z.ZodNumber;
909
- y: z.ZodNumber;
910
- }, "strip", z.ZodTypeAny, {
911
- x: number;
912
- y: number;
913
- }, {
914
- x: number;
915
- y: number;
916
- }>;
917
- rotate: z.ZodOptional<z.ZodNumber>;
918
- type: z.ZodLiteral<"image">;
919
- }, "strip", z.ZodTypeAny, {
920
- type: "image";
921
- height: number;
922
- width: number;
923
- position: {
924
- x: number;
925
- y: number;
926
- };
927
- rotate?: number | undefined;
928
- }, {
929
- type: "image";
930
- height: number;
931
- width: number;
932
- position: {
933
- x: number;
934
- y: number;
935
- };
936
- rotate?: number | undefined;
937
- }>, z.ZodObject<{
938
- height: z.ZodNumber;
939
- width: z.ZodNumber;
940
- position: z.ZodObject<{
941
- x: z.ZodNumber;
942
- y: z.ZodNumber;
943
- }, "strip", z.ZodTypeAny, {
944
- x: number;
945
- y: number;
946
- }, {
947
- x: number;
948
- y: number;
949
- }>;
950
- rotate: z.ZodOptional<z.ZodNumber>;
951
- type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
952
- backgroundcolor: z.ZodOptional<z.ZodString>;
953
- barcolor: z.ZodOptional<z.ZodString>;
954
- textcolor: z.ZodOptional<z.ZodString>;
955
- }, "strip", z.ZodTypeAny, {
956
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
957
- height: number;
958
- width: number;
959
- position: {
960
- x: number;
961
- y: number;
962
- };
963
- rotate?: number | undefined;
964
- backgroundcolor?: string | undefined;
965
- barcolor?: string | undefined;
966
- textcolor?: string | undefined;
967
- }, {
968
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
969
- height: number;
970
- width: number;
971
- position: {
972
- x: number;
973
- y: number;
974
- };
975
- rotate?: number | undefined;
976
- backgroundcolor?: string | undefined;
977
- barcolor?: string | undefined;
978
- textcolor?: string | undefined;
979
- }>]>>, "many">;
980
- basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
981
- sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
982
- columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
983
- }, "strip", z.ZodTypeAny, {
984
- schemas: Record<string, {
985
- type: "text";
986
- height: number;
987
- width: number;
988
- position: {
989
- x: number;
990
- y: number;
991
- };
992
- rotate?: number | undefined;
993
- alignment?: "center" | "left" | "right" | undefined;
994
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
995
- fontSize?: number | undefined;
996
- fontName?: string | undefined;
997
- fontColor?: string | undefined;
998
- backgroundColor?: string | undefined;
999
- characterSpacing?: number | undefined;
1000
- lineHeight?: number | undefined;
1001
- dynamicFontSize?: {
1002
- max: number;
1003
- min: number;
1004
- fit?: string | undefined;
1005
- } | undefined;
1006
- } | {
1007
- type: "image";
1008
- height: number;
1009
- width: number;
1010
- position: {
1011
- x: number;
1012
- y: number;
1013
- };
1014
- rotate?: number | undefined;
1015
- } | {
1016
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
1017
- height: number;
1018
- width: number;
1019
- position: {
1020
- x: number;
1021
- y: number;
1022
- };
1023
- rotate?: number | undefined;
1024
- backgroundcolor?: string | undefined;
1025
- barcolor?: string | undefined;
1026
- textcolor?: string | undefined;
1027
- }>[];
1028
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1029
- sampledata?: Record<string, string>[] | undefined;
1030
- columns?: string[] | undefined;
1031
- }, {
1032
- schemas: Record<string, {
1033
- type: "text";
1034
- height: number;
1035
- width: number;
1036
- position: {
1037
- x: number;
1038
- y: number;
1039
- };
1040
- rotate?: number | undefined;
1041
- alignment?: "center" | "left" | "right" | undefined;
1042
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1043
- fontSize?: number | undefined;
1044
- fontName?: string | undefined;
1045
- fontColor?: string | undefined;
1046
- backgroundColor?: string | undefined;
1047
- characterSpacing?: number | undefined;
1048
- lineHeight?: number | undefined;
1049
- dynamicFontSize?: {
1050
- max: number;
1051
- min: number;
1052
- fit?: string | undefined;
1053
- } | undefined;
1054
- } | {
1055
- type: "image";
1056
- height: number;
1057
- width: number;
1058
- position: {
1059
- x: number;
1060
- y: number;
1061
- };
1062
- rotate?: number | undefined;
1063
- } | {
1064
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
1065
- height: number;
1066
- width: number;
1067
- position: {
1068
- x: number;
1069
- y: number;
1070
- };
1071
- rotate?: number | undefined;
1072
- backgroundcolor?: string | undefined;
1073
- barcolor?: string | undefined;
1074
- textcolor?: string | undefined;
1075
- }>[];
1076
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1077
- sampledata?: Record<string, string>[] | undefined;
1078
- columns?: string[] | undefined;
1079
- }>;
1080
- options: z.ZodOptional<z.ZodObject<{
1081
- font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1082
- data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1083
- fallback: z.ZodOptional<z.ZodBoolean>;
1084
- subset: z.ZodOptional<z.ZodBoolean>;
1085
- }, "strip", z.ZodTypeAny, {
1086
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1087
- fallback?: boolean | undefined;
1088
- subset?: boolean | undefined;
1089
- }, {
1090
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1091
- fallback?: boolean | undefined;
1092
- subset?: boolean | undefined;
1093
- }>>>;
1094
- }, "strip", z.ZodTypeAny, {
1095
- font?: Record<string, {
1096
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1097
- fallback?: boolean | undefined;
1098
- subset?: boolean | undefined;
1099
- }> | undefined;
1100
- }, {
1101
- font?: Record<string, {
1102
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1103
- fallback?: boolean | undefined;
1104
- subset?: boolean | undefined;
1105
- }> | undefined;
1106
- }>>;
1107
- }, "strip", z.ZodTypeAny, {
1108
- template: {
1109
- schemas: Record<string, {
1110
- type: "text";
1111
- height: number;
1112
- width: number;
1113
- position: {
1114
- x: number;
1115
- y: number;
1116
- };
1117
- rotate?: number | undefined;
1118
- alignment?: "center" | "left" | "right" | undefined;
1119
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1120
- fontSize?: number | undefined;
1121
- fontName?: string | undefined;
1122
- fontColor?: string | undefined;
1123
- backgroundColor?: string | undefined;
1124
- characterSpacing?: number | undefined;
1125
- lineHeight?: number | undefined;
1126
- dynamicFontSize?: {
1127
- max: number;
1128
- min: number;
1129
- fit?: string | undefined;
1130
- } | undefined;
1131
- } | {
1132
- type: "image";
1133
- height: number;
1134
- width: number;
1135
- position: {
1136
- x: number;
1137
- y: number;
1138
- };
1139
- rotate?: number | undefined;
1140
- } | {
1141
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
1142
- height: number;
1143
- width: number;
1144
- position: {
1145
- x: number;
1146
- y: number;
1147
- };
1148
- rotate?: number | undefined;
1149
- backgroundcolor?: string | undefined;
1150
- barcolor?: string | undefined;
1151
- textcolor?: string | undefined;
1152
- }>[];
1153
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1154
- sampledata?: Record<string, string>[] | undefined;
1155
- columns?: string[] | undefined;
1156
- };
1157
- options?: {
1158
- font?: Record<string, {
1159
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1160
- fallback?: boolean | undefined;
1161
- subset?: boolean | undefined;
1162
- }> | undefined;
1163
- } | undefined;
1164
- }, {
1165
- template: {
1166
- schemas: Record<string, {
1167
- type: "text";
1168
- height: number;
1169
- width: number;
1170
- position: {
1171
- x: number;
1172
- y: number;
1173
- };
1174
- rotate?: number | undefined;
1175
- alignment?: "center" | "left" | "right" | undefined;
1176
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1177
- fontSize?: number | undefined;
1178
- fontName?: string | undefined;
1179
- fontColor?: string | undefined;
1180
- backgroundColor?: string | undefined;
1181
- characterSpacing?: number | undefined;
1182
- lineHeight?: number | undefined;
1183
- dynamicFontSize?: {
1184
- max: number;
1185
- min: number;
1186
- fit?: string | undefined;
1187
- } | undefined;
1188
- } | {
1189
- type: "image";
1190
- height: number;
1191
- width: number;
1192
- position: {
1193
- x: number;
1194
- y: number;
1195
- };
1196
- rotate?: number | undefined;
1197
- } | {
1198
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
1199
- height: number;
1200
- width: number;
1201
- position: {
1202
- x: number;
1203
- y: number;
1204
- };
1205
- rotate?: number | undefined;
1206
- backgroundcolor?: string | undefined;
1207
- barcolor?: string | undefined;
1208
- textcolor?: string | undefined;
1209
- }>[];
1210
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1211
- sampledata?: Record<string, string>[] | undefined;
1212
- columns?: string[] | undefined;
1213
- };
1214
- options?: {
1215
- font?: Record<string, {
1216
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1217
- fallback?: boolean | undefined;
1218
- subset?: boolean | undefined;
1219
- }> | undefined;
1220
- } | undefined;
1221
- }>;
1222
208
  export declare const GeneratorOptions: z.ZodObject<{
1223
209
  font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1224
210
  data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
@@ -1233,424 +219,7 @@ export declare const GeneratorOptions: z.ZodObject<{
1233
219
  fallback?: boolean | undefined;
1234
220
  subset?: boolean | undefined;
1235
221
  }>>>;
1236
- }, "strip", z.ZodTypeAny, {
1237
- font?: Record<string, {
1238
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1239
- fallback?: boolean | undefined;
1240
- subset?: boolean | undefined;
1241
- }> | undefined;
1242
- }, {
1243
- font?: Record<string, {
1244
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1245
- fallback?: boolean | undefined;
1246
- subset?: boolean | undefined;
1247
- }> | undefined;
1248
- }>;
1249
- export declare const GenerateProps: z.ZodObject<{
1250
- template: z.ZodObject<{
1251
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1252
- height: z.ZodNumber;
1253
- width: z.ZodNumber;
1254
- position: z.ZodObject<{
1255
- x: z.ZodNumber;
1256
- y: z.ZodNumber;
1257
- }, "strip", z.ZodTypeAny, {
1258
- x: number;
1259
- y: number;
1260
- }, {
1261
- x: number;
1262
- y: number;
1263
- }>;
1264
- rotate: z.ZodOptional<z.ZodNumber>;
1265
- type: z.ZodLiteral<"text">;
1266
- alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1267
- verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
1268
- fontSize: z.ZodOptional<z.ZodNumber>;
1269
- fontName: z.ZodOptional<z.ZodString>;
1270
- fontColor: z.ZodOptional<z.ZodString>;
1271
- backgroundColor: z.ZodOptional<z.ZodString>;
1272
- characterSpacing: z.ZodOptional<z.ZodNumber>;
1273
- lineHeight: z.ZodOptional<z.ZodNumber>;
1274
- dynamicFontSize: z.ZodOptional<z.ZodObject<{
1275
- max: z.ZodNumber;
1276
- min: z.ZodNumber;
1277
- fit: z.ZodOptional<z.ZodString>;
1278
- }, "strip", z.ZodTypeAny, {
1279
- max: number;
1280
- min: number;
1281
- fit?: string | undefined;
1282
- }, {
1283
- max: number;
1284
- min: number;
1285
- fit?: string | undefined;
1286
- }>>;
1287
- }, "strip", z.ZodTypeAny, {
1288
- type: "text";
1289
- height: number;
1290
- width: number;
1291
- position: {
1292
- x: number;
1293
- y: number;
1294
- };
1295
- rotate?: number | undefined;
1296
- alignment?: "center" | "left" | "right" | undefined;
1297
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1298
- fontSize?: number | undefined;
1299
- fontName?: string | undefined;
1300
- fontColor?: string | undefined;
1301
- backgroundColor?: string | undefined;
1302
- characterSpacing?: number | undefined;
1303
- lineHeight?: number | undefined;
1304
- dynamicFontSize?: {
1305
- max: number;
1306
- min: number;
1307
- fit?: string | undefined;
1308
- } | undefined;
1309
- }, {
1310
- type: "text";
1311
- height: number;
1312
- width: number;
1313
- position: {
1314
- x: number;
1315
- y: number;
1316
- };
1317
- rotate?: number | undefined;
1318
- alignment?: "center" | "left" | "right" | undefined;
1319
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1320
- fontSize?: number | undefined;
1321
- fontName?: string | undefined;
1322
- fontColor?: string | undefined;
1323
- backgroundColor?: string | undefined;
1324
- characterSpacing?: number | undefined;
1325
- lineHeight?: number | undefined;
1326
- dynamicFontSize?: {
1327
- max: number;
1328
- min: number;
1329
- fit?: string | undefined;
1330
- } | undefined;
1331
- }>, z.ZodObject<{
1332
- height: z.ZodNumber;
1333
- width: z.ZodNumber;
1334
- position: z.ZodObject<{
1335
- x: z.ZodNumber;
1336
- y: z.ZodNumber;
1337
- }, "strip", z.ZodTypeAny, {
1338
- x: number;
1339
- y: number;
1340
- }, {
1341
- x: number;
1342
- y: number;
1343
- }>;
1344
- rotate: z.ZodOptional<z.ZodNumber>;
1345
- type: z.ZodLiteral<"image">;
1346
- }, "strip", z.ZodTypeAny, {
1347
- type: "image";
1348
- height: number;
1349
- width: number;
1350
- position: {
1351
- x: number;
1352
- y: number;
1353
- };
1354
- rotate?: number | undefined;
1355
- }, {
1356
- type: "image";
1357
- height: number;
1358
- width: number;
1359
- position: {
1360
- x: number;
1361
- y: number;
1362
- };
1363
- rotate?: number | undefined;
1364
- }>, z.ZodObject<{
1365
- height: z.ZodNumber;
1366
- width: z.ZodNumber;
1367
- position: z.ZodObject<{
1368
- x: z.ZodNumber;
1369
- y: z.ZodNumber;
1370
- }, "strip", z.ZodTypeAny, {
1371
- x: number;
1372
- y: number;
1373
- }, {
1374
- x: number;
1375
- y: number;
1376
- }>;
1377
- rotate: z.ZodOptional<z.ZodNumber>;
1378
- type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
1379
- backgroundcolor: z.ZodOptional<z.ZodString>;
1380
- barcolor: z.ZodOptional<z.ZodString>;
1381
- textcolor: z.ZodOptional<z.ZodString>;
1382
- }, "strip", z.ZodTypeAny, {
1383
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
1384
- height: number;
1385
- width: number;
1386
- position: {
1387
- x: number;
1388
- y: number;
1389
- };
1390
- rotate?: number | undefined;
1391
- backgroundcolor?: string | undefined;
1392
- barcolor?: string | undefined;
1393
- textcolor?: string | undefined;
1394
- }, {
1395
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
1396
- height: number;
1397
- width: number;
1398
- position: {
1399
- x: number;
1400
- y: number;
1401
- };
1402
- rotate?: number | undefined;
1403
- backgroundcolor?: string | undefined;
1404
- barcolor?: string | undefined;
1405
- textcolor?: string | undefined;
1406
- }>]>>, "many">;
1407
- basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1408
- sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
1409
- columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1410
- }, "strip", z.ZodTypeAny, {
1411
- schemas: Record<string, {
1412
- type: "text";
1413
- height: number;
1414
- width: number;
1415
- position: {
1416
- x: number;
1417
- y: number;
1418
- };
1419
- rotate?: number | undefined;
1420
- alignment?: "center" | "left" | "right" | undefined;
1421
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1422
- fontSize?: number | undefined;
1423
- fontName?: string | undefined;
1424
- fontColor?: string | undefined;
1425
- backgroundColor?: string | undefined;
1426
- characterSpacing?: number | undefined;
1427
- lineHeight?: number | undefined;
1428
- dynamicFontSize?: {
1429
- max: number;
1430
- min: number;
1431
- fit?: string | undefined;
1432
- } | undefined;
1433
- } | {
1434
- type: "image";
1435
- height: number;
1436
- width: number;
1437
- position: {
1438
- x: number;
1439
- y: number;
1440
- };
1441
- rotate?: number | undefined;
1442
- } | {
1443
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
1444
- height: number;
1445
- width: number;
1446
- position: {
1447
- x: number;
1448
- y: number;
1449
- };
1450
- rotate?: number | undefined;
1451
- backgroundcolor?: string | undefined;
1452
- barcolor?: string | undefined;
1453
- textcolor?: string | undefined;
1454
- }>[];
1455
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1456
- sampledata?: Record<string, string>[] | undefined;
1457
- columns?: string[] | undefined;
1458
- }, {
1459
- schemas: Record<string, {
1460
- type: "text";
1461
- height: number;
1462
- width: number;
1463
- position: {
1464
- x: number;
1465
- y: number;
1466
- };
1467
- rotate?: number | undefined;
1468
- alignment?: "center" | "left" | "right" | undefined;
1469
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1470
- fontSize?: number | undefined;
1471
- fontName?: string | undefined;
1472
- fontColor?: string | undefined;
1473
- backgroundColor?: string | undefined;
1474
- characterSpacing?: number | undefined;
1475
- lineHeight?: number | undefined;
1476
- dynamicFontSize?: {
1477
- max: number;
1478
- min: number;
1479
- fit?: string | undefined;
1480
- } | undefined;
1481
- } | {
1482
- type: "image";
1483
- height: number;
1484
- width: number;
1485
- position: {
1486
- x: number;
1487
- y: number;
1488
- };
1489
- rotate?: number | undefined;
1490
- } | {
1491
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
1492
- height: number;
1493
- width: number;
1494
- position: {
1495
- x: number;
1496
- y: number;
1497
- };
1498
- rotate?: number | undefined;
1499
- backgroundcolor?: string | undefined;
1500
- barcolor?: string | undefined;
1501
- textcolor?: string | undefined;
1502
- }>[];
1503
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1504
- sampledata?: Record<string, string>[] | undefined;
1505
- columns?: string[] | undefined;
1506
- }>;
1507
- inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
1508
- options: z.ZodOptional<z.ZodObject<{
1509
- font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1510
- data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1511
- fallback: z.ZodOptional<z.ZodBoolean>;
1512
- subset: z.ZodOptional<z.ZodBoolean>;
1513
- }, "strip", z.ZodTypeAny, {
1514
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1515
- fallback?: boolean | undefined;
1516
- subset?: boolean | undefined;
1517
- }, {
1518
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1519
- fallback?: boolean | undefined;
1520
- subset?: boolean | undefined;
1521
- }>>>;
1522
- }, "strip", z.ZodTypeAny, {
1523
- font?: Record<string, {
1524
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1525
- fallback?: boolean | undefined;
1526
- subset?: boolean | undefined;
1527
- }> | undefined;
1528
- }, {
1529
- font?: Record<string, {
1530
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1531
- fallback?: boolean | undefined;
1532
- subset?: boolean | undefined;
1533
- }> | undefined;
1534
- }>>;
1535
- }, "strict", z.ZodTypeAny, {
1536
- template: {
1537
- schemas: Record<string, {
1538
- type: "text";
1539
- height: number;
1540
- width: number;
1541
- position: {
1542
- x: number;
1543
- y: number;
1544
- };
1545
- rotate?: number | undefined;
1546
- alignment?: "center" | "left" | "right" | undefined;
1547
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1548
- fontSize?: number | undefined;
1549
- fontName?: string | undefined;
1550
- fontColor?: string | undefined;
1551
- backgroundColor?: string | undefined;
1552
- characterSpacing?: number | undefined;
1553
- lineHeight?: number | undefined;
1554
- dynamicFontSize?: {
1555
- max: number;
1556
- min: number;
1557
- fit?: string | undefined;
1558
- } | undefined;
1559
- } | {
1560
- type: "image";
1561
- height: number;
1562
- width: number;
1563
- position: {
1564
- x: number;
1565
- y: number;
1566
- };
1567
- rotate?: number | undefined;
1568
- } | {
1569
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
1570
- height: number;
1571
- width: number;
1572
- position: {
1573
- x: number;
1574
- y: number;
1575
- };
1576
- rotate?: number | undefined;
1577
- backgroundcolor?: string | undefined;
1578
- barcolor?: string | undefined;
1579
- textcolor?: string | undefined;
1580
- }>[];
1581
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1582
- sampledata?: Record<string, string>[] | undefined;
1583
- columns?: string[] | undefined;
1584
- };
1585
- inputs: Record<string, string>[];
1586
- options?: {
1587
- font?: Record<string, {
1588
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1589
- fallback?: boolean | undefined;
1590
- subset?: boolean | undefined;
1591
- }> | undefined;
1592
- } | undefined;
1593
- }, {
1594
- template: {
1595
- schemas: Record<string, {
1596
- type: "text";
1597
- height: number;
1598
- width: number;
1599
- position: {
1600
- x: number;
1601
- y: number;
1602
- };
1603
- rotate?: number | undefined;
1604
- alignment?: "center" | "left" | "right" | undefined;
1605
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1606
- fontSize?: number | undefined;
1607
- fontName?: string | undefined;
1608
- fontColor?: string | undefined;
1609
- backgroundColor?: string | undefined;
1610
- characterSpacing?: number | undefined;
1611
- lineHeight?: number | undefined;
1612
- dynamicFontSize?: {
1613
- max: number;
1614
- min: number;
1615
- fit?: string | undefined;
1616
- } | undefined;
1617
- } | {
1618
- type: "image";
1619
- height: number;
1620
- width: number;
1621
- position: {
1622
- x: number;
1623
- y: number;
1624
- };
1625
- rotate?: number | undefined;
1626
- } | {
1627
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
1628
- height: number;
1629
- width: number;
1630
- position: {
1631
- x: number;
1632
- y: number;
1633
- };
1634
- rotate?: number | undefined;
1635
- backgroundcolor?: string | undefined;
1636
- barcolor?: string | undefined;
1637
- textcolor?: string | undefined;
1638
- }>[];
1639
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1640
- sampledata?: Record<string, string>[] | undefined;
1641
- columns?: string[] | undefined;
1642
- };
1643
- inputs: Record<string, string>[];
1644
- options?: {
1645
- font?: Record<string, {
1646
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1647
- fallback?: boolean | undefined;
1648
- subset?: boolean | undefined;
1649
- }> | undefined;
1650
- } | undefined;
1651
- }>;
1652
- export declare const SchemaInputs: z.ZodRecord<z.ZodString, z.ZodString>;
1653
- export declare const UIOptions: z.ZodObject<{
222
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1654
223
  font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1655
224
  data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1656
225
  fallback: z.ZodOptional<z.ZodBoolean>;
@@ -1664,435 +233,25 @@ export declare const UIOptions: z.ZodObject<{
1664
233
  fallback?: boolean | undefined;
1665
234
  subset?: boolean | undefined;
1666
235
  }>>>;
1667
- lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
1668
- }, "strip", z.ZodTypeAny, {
1669
- font?: Record<string, {
236
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
237
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
238
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
239
+ fallback: z.ZodOptional<z.ZodBoolean>;
240
+ subset: z.ZodOptional<z.ZodBoolean>;
241
+ }, "strip", z.ZodTypeAny, {
1670
242
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1671
243
  fallback?: boolean | undefined;
1672
244
  subset?: boolean | undefined;
1673
- }> | undefined;
1674
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
1675
- }, {
1676
- font?: Record<string, {
245
+ }, {
1677
246
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1678
247
  fallback?: boolean | undefined;
1679
- subset?: boolean | undefined;
1680
- }> | undefined;
1681
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
1682
- }>;
1683
- export declare const UIProps: z.ZodObject<{
1684
- template: z.ZodObject<{
1685
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1686
- height: z.ZodNumber;
1687
- width: z.ZodNumber;
1688
- position: z.ZodObject<{
1689
- x: z.ZodNumber;
1690
- y: z.ZodNumber;
1691
- }, "strip", z.ZodTypeAny, {
1692
- x: number;
1693
- y: number;
1694
- }, {
1695
- x: number;
1696
- y: number;
1697
- }>;
1698
- rotate: z.ZodOptional<z.ZodNumber>;
1699
- type: z.ZodLiteral<"text">;
1700
- alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1701
- verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
1702
- fontSize: z.ZodOptional<z.ZodNumber>;
1703
- fontName: z.ZodOptional<z.ZodString>;
1704
- fontColor: z.ZodOptional<z.ZodString>;
1705
- backgroundColor: z.ZodOptional<z.ZodString>;
1706
- characterSpacing: z.ZodOptional<z.ZodNumber>;
1707
- lineHeight: z.ZodOptional<z.ZodNumber>;
1708
- dynamicFontSize: z.ZodOptional<z.ZodObject<{
1709
- max: z.ZodNumber;
1710
- min: z.ZodNumber;
1711
- fit: z.ZodOptional<z.ZodString>;
1712
- }, "strip", z.ZodTypeAny, {
1713
- max: number;
1714
- min: number;
1715
- fit?: string | undefined;
1716
- }, {
1717
- max: number;
1718
- min: number;
1719
- fit?: string | undefined;
1720
- }>>;
1721
- }, "strip", z.ZodTypeAny, {
1722
- type: "text";
1723
- height: number;
1724
- width: number;
1725
- position: {
1726
- x: number;
1727
- y: number;
1728
- };
1729
- rotate?: number | undefined;
1730
- alignment?: "center" | "left" | "right" | undefined;
1731
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1732
- fontSize?: number | undefined;
1733
- fontName?: string | undefined;
1734
- fontColor?: string | undefined;
1735
- backgroundColor?: string | undefined;
1736
- characterSpacing?: number | undefined;
1737
- lineHeight?: number | undefined;
1738
- dynamicFontSize?: {
1739
- max: number;
1740
- min: number;
1741
- fit?: string | undefined;
1742
- } | undefined;
1743
- }, {
1744
- type: "text";
1745
- height: number;
1746
- width: number;
1747
- position: {
1748
- x: number;
1749
- y: number;
1750
- };
1751
- rotate?: number | undefined;
1752
- alignment?: "center" | "left" | "right" | undefined;
1753
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1754
- fontSize?: number | undefined;
1755
- fontName?: string | undefined;
1756
- fontColor?: string | undefined;
1757
- backgroundColor?: string | undefined;
1758
- characterSpacing?: number | undefined;
1759
- lineHeight?: number | undefined;
1760
- dynamicFontSize?: {
1761
- max: number;
1762
- min: number;
1763
- fit?: string | undefined;
1764
- } | undefined;
1765
- }>, z.ZodObject<{
1766
- height: z.ZodNumber;
1767
- width: z.ZodNumber;
1768
- position: z.ZodObject<{
1769
- x: z.ZodNumber;
1770
- y: z.ZodNumber;
1771
- }, "strip", z.ZodTypeAny, {
1772
- x: number;
1773
- y: number;
1774
- }, {
1775
- x: number;
1776
- y: number;
1777
- }>;
1778
- rotate: z.ZodOptional<z.ZodNumber>;
1779
- type: z.ZodLiteral<"image">;
1780
- }, "strip", z.ZodTypeAny, {
1781
- type: "image";
1782
- height: number;
1783
- width: number;
1784
- position: {
1785
- x: number;
1786
- y: number;
1787
- };
1788
- rotate?: number | undefined;
1789
- }, {
1790
- type: "image";
1791
- height: number;
1792
- width: number;
1793
- position: {
1794
- x: number;
1795
- y: number;
1796
- };
1797
- rotate?: number | undefined;
1798
- }>, z.ZodObject<{
1799
- height: z.ZodNumber;
1800
- width: z.ZodNumber;
1801
- position: z.ZodObject<{
1802
- x: z.ZodNumber;
1803
- y: z.ZodNumber;
1804
- }, "strip", z.ZodTypeAny, {
1805
- x: number;
1806
- y: number;
1807
- }, {
1808
- x: number;
1809
- y: number;
1810
- }>;
1811
- rotate: z.ZodOptional<z.ZodNumber>;
1812
- type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
1813
- backgroundcolor: z.ZodOptional<z.ZodString>;
1814
- barcolor: z.ZodOptional<z.ZodString>;
1815
- textcolor: z.ZodOptional<z.ZodString>;
1816
- }, "strip", z.ZodTypeAny, {
1817
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
1818
- height: number;
1819
- width: number;
1820
- position: {
1821
- x: number;
1822
- y: number;
1823
- };
1824
- rotate?: number | undefined;
1825
- backgroundcolor?: string | undefined;
1826
- barcolor?: string | undefined;
1827
- textcolor?: string | undefined;
1828
- }, {
1829
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
1830
- height: number;
1831
- width: number;
1832
- position: {
1833
- x: number;
1834
- y: number;
1835
- };
1836
- rotate?: number | undefined;
1837
- backgroundcolor?: string | undefined;
1838
- barcolor?: string | undefined;
1839
- textcolor?: string | undefined;
1840
- }>]>>, "many">;
1841
- basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1842
- sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
1843
- columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1844
- }, "strip", z.ZodTypeAny, {
1845
- schemas: Record<string, {
1846
- type: "text";
1847
- height: number;
1848
- width: number;
1849
- position: {
1850
- x: number;
1851
- y: number;
1852
- };
1853
- rotate?: number | undefined;
1854
- alignment?: "center" | "left" | "right" | undefined;
1855
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1856
- fontSize?: number | undefined;
1857
- fontName?: string | undefined;
1858
- fontColor?: string | undefined;
1859
- backgroundColor?: string | undefined;
1860
- characterSpacing?: number | undefined;
1861
- lineHeight?: number | undefined;
1862
- dynamicFontSize?: {
1863
- max: number;
1864
- min: number;
1865
- fit?: string | undefined;
1866
- } | undefined;
1867
- } | {
1868
- type: "image";
1869
- height: number;
1870
- width: number;
1871
- position: {
1872
- x: number;
1873
- y: number;
1874
- };
1875
- rotate?: number | undefined;
1876
- } | {
1877
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
1878
- height: number;
1879
- width: number;
1880
- position: {
1881
- x: number;
1882
- y: number;
1883
- };
1884
- rotate?: number | undefined;
1885
- backgroundcolor?: string | undefined;
1886
- barcolor?: string | undefined;
1887
- textcolor?: string | undefined;
1888
- }>[];
1889
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1890
- sampledata?: Record<string, string>[] | undefined;
1891
- columns?: string[] | undefined;
1892
- }, {
1893
- schemas: Record<string, {
1894
- type: "text";
1895
- height: number;
1896
- width: number;
1897
- position: {
1898
- x: number;
1899
- y: number;
1900
- };
1901
- rotate?: number | undefined;
1902
- alignment?: "center" | "left" | "right" | undefined;
1903
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1904
- fontSize?: number | undefined;
1905
- fontName?: string | undefined;
1906
- fontColor?: string | undefined;
1907
- backgroundColor?: string | undefined;
1908
- characterSpacing?: number | undefined;
1909
- lineHeight?: number | undefined;
1910
- dynamicFontSize?: {
1911
- max: number;
1912
- min: number;
1913
- fit?: string | undefined;
1914
- } | undefined;
1915
- } | {
1916
- type: "image";
1917
- height: number;
1918
- width: number;
1919
- position: {
1920
- x: number;
1921
- y: number;
1922
- };
1923
- rotate?: number | undefined;
1924
- } | {
1925
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
1926
- height: number;
1927
- width: number;
1928
- position: {
1929
- x: number;
1930
- y: number;
1931
- };
1932
- rotate?: number | undefined;
1933
- backgroundcolor?: string | undefined;
1934
- barcolor?: string | undefined;
1935
- textcolor?: string | undefined;
1936
- }>[];
1937
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1938
- sampledata?: Record<string, string>[] | undefined;
1939
- columns?: string[] | undefined;
1940
- }>;
1941
- domContainer: z.ZodType<HTMLElement, z.ZodTypeDef, HTMLElement>;
1942
- options: z.ZodOptional<z.ZodObject<{
1943
- font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1944
- data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1945
- fallback: z.ZodOptional<z.ZodBoolean>;
1946
- subset: z.ZodOptional<z.ZodBoolean>;
1947
- }, "strip", z.ZodTypeAny, {
1948
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1949
- fallback?: boolean | undefined;
1950
- subset?: boolean | undefined;
1951
- }, {
1952
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1953
- fallback?: boolean | undefined;
1954
- subset?: boolean | undefined;
1955
- }>>>;
1956
- lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
1957
- }, "strip", z.ZodTypeAny, {
1958
- font?: Record<string, {
1959
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1960
- fallback?: boolean | undefined;
1961
- subset?: boolean | undefined;
1962
- }> | undefined;
1963
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
1964
- }, {
1965
- font?: Record<string, {
1966
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1967
- fallback?: boolean | undefined;
1968
- subset?: boolean | undefined;
1969
- }> | undefined;
1970
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
1971
- }>>;
1972
- }, "strip", z.ZodTypeAny, {
1973
- template: {
1974
- schemas: Record<string, {
1975
- type: "text";
1976
- height: number;
1977
- width: number;
1978
- position: {
1979
- x: number;
1980
- y: number;
1981
- };
1982
- rotate?: number | undefined;
1983
- alignment?: "center" | "left" | "right" | undefined;
1984
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1985
- fontSize?: number | undefined;
1986
- fontName?: string | undefined;
1987
- fontColor?: string | undefined;
1988
- backgroundColor?: string | undefined;
1989
- characterSpacing?: number | undefined;
1990
- lineHeight?: number | undefined;
1991
- dynamicFontSize?: {
1992
- max: number;
1993
- min: number;
1994
- fit?: string | undefined;
1995
- } | undefined;
1996
- } | {
1997
- type: "image";
1998
- height: number;
1999
- width: number;
2000
- position: {
2001
- x: number;
2002
- y: number;
2003
- };
2004
- rotate?: number | undefined;
2005
- } | {
2006
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
2007
- height: number;
2008
- width: number;
2009
- position: {
2010
- x: number;
2011
- y: number;
2012
- };
2013
- rotate?: number | undefined;
2014
- backgroundcolor?: string | undefined;
2015
- barcolor?: string | undefined;
2016
- textcolor?: string | undefined;
2017
- }>[];
2018
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2019
- sampledata?: Record<string, string>[] | undefined;
2020
- columns?: string[] | undefined;
2021
- };
2022
- domContainer: HTMLElement;
2023
- options?: {
2024
- font?: Record<string, {
2025
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2026
- fallback?: boolean | undefined;
2027
- subset?: boolean | undefined;
2028
- }> | undefined;
2029
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
2030
- } | undefined;
2031
- }, {
2032
- template: {
2033
- schemas: Record<string, {
2034
- type: "text";
2035
- height: number;
2036
- width: number;
2037
- position: {
2038
- x: number;
2039
- y: number;
2040
- };
2041
- rotate?: number | undefined;
2042
- alignment?: "center" | "left" | "right" | undefined;
2043
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2044
- fontSize?: number | undefined;
2045
- fontName?: string | undefined;
2046
- fontColor?: string | undefined;
2047
- backgroundColor?: string | undefined;
2048
- characterSpacing?: number | undefined;
2049
- lineHeight?: number | undefined;
2050
- dynamicFontSize?: {
2051
- max: number;
2052
- min: number;
2053
- fit?: string | undefined;
2054
- } | undefined;
2055
- } | {
2056
- type: "image";
2057
- height: number;
2058
- width: number;
2059
- position: {
2060
- x: number;
2061
- y: number;
2062
- };
2063
- rotate?: number | undefined;
2064
- } | {
2065
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
2066
- height: number;
2067
- width: number;
2068
- position: {
2069
- x: number;
2070
- y: number;
2071
- };
2072
- rotate?: number | undefined;
2073
- backgroundcolor?: string | undefined;
2074
- barcolor?: string | undefined;
2075
- textcolor?: string | undefined;
2076
- }>[];
2077
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2078
- sampledata?: Record<string, string>[] | undefined;
2079
- columns?: string[] | undefined;
2080
- };
2081
- domContainer: HTMLElement;
2082
- options?: {
2083
- font?: Record<string, {
2084
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2085
- fallback?: boolean | undefined;
2086
- subset?: boolean | undefined;
2087
- }> | undefined;
2088
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
2089
- } | undefined;
2090
- }>;
2091
- export declare const PreviewProps: z.ZodObject<{
248
+ subset?: boolean | undefined;
249
+ }>>>;
250
+ }, z.ZodTypeAny, "passthrough">>;
251
+ export declare const GenerateProps: z.ZodObject<{
2092
252
  template: z.ZodObject<{
2093
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
2094
- height: z.ZodNumber;
2095
- width: z.ZodNumber;
253
+ schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
254
+ type: z.ZodString;
2096
255
  position: z.ZodObject<{
2097
256
  x: z.ZodNumber;
2098
257
  y: z.ZodNumber;
@@ -2103,76 +262,11 @@ export declare const PreviewProps: z.ZodObject<{
2103
262
  x: number;
2104
263
  y: number;
2105
264
  }>;
2106
- rotate: z.ZodOptional<z.ZodNumber>;
2107
- type: z.ZodLiteral<"text">;
2108
- alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
2109
- verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
2110
- fontSize: z.ZodOptional<z.ZodNumber>;
2111
- fontName: z.ZodOptional<z.ZodString>;
2112
- fontColor: z.ZodOptional<z.ZodString>;
2113
- backgroundColor: z.ZodOptional<z.ZodString>;
2114
- characterSpacing: z.ZodOptional<z.ZodNumber>;
2115
- lineHeight: z.ZodOptional<z.ZodNumber>;
2116
- dynamicFontSize: z.ZodOptional<z.ZodObject<{
2117
- max: z.ZodNumber;
2118
- min: z.ZodNumber;
2119
- fit: z.ZodOptional<z.ZodString>;
2120
- }, "strip", z.ZodTypeAny, {
2121
- max: number;
2122
- min: number;
2123
- fit?: string | undefined;
2124
- }, {
2125
- max: number;
2126
- min: number;
2127
- fit?: string | undefined;
2128
- }>>;
2129
- }, "strip", z.ZodTypeAny, {
2130
- type: "text";
2131
- height: number;
2132
- width: number;
2133
- position: {
2134
- x: number;
2135
- y: number;
2136
- };
2137
- rotate?: number | undefined;
2138
- alignment?: "center" | "left" | "right" | undefined;
2139
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2140
- fontSize?: number | undefined;
2141
- fontName?: string | undefined;
2142
- fontColor?: string | undefined;
2143
- backgroundColor?: string | undefined;
2144
- characterSpacing?: number | undefined;
2145
- lineHeight?: number | undefined;
2146
- dynamicFontSize?: {
2147
- max: number;
2148
- min: number;
2149
- fit?: string | undefined;
2150
- } | undefined;
2151
- }, {
2152
- type: "text";
2153
- height: number;
2154
- width: number;
2155
- position: {
2156
- x: number;
2157
- y: number;
2158
- };
2159
- rotate?: number | undefined;
2160
- alignment?: "center" | "left" | "right" | undefined;
2161
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2162
- fontSize?: number | undefined;
2163
- fontName?: string | undefined;
2164
- fontColor?: string | undefined;
2165
- backgroundColor?: string | undefined;
2166
- characterSpacing?: number | undefined;
2167
- lineHeight?: number | undefined;
2168
- dynamicFontSize?: {
2169
- max: number;
2170
- min: number;
2171
- fit?: string | undefined;
2172
- } | undefined;
2173
- }>, z.ZodObject<{
2174
- height: z.ZodNumber;
2175
265
  width: z.ZodNumber;
266
+ height: z.ZodNumber;
267
+ rotate: z.ZodOptional<z.ZodNumber>;
268
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
269
+ type: z.ZodString;
2176
270
  position: z.ZodObject<{
2177
271
  x: z.ZodNumber;
2178
272
  y: z.ZodNumber;
@@ -2183,29 +277,11 @@ export declare const PreviewProps: z.ZodObject<{
2183
277
  x: number;
2184
278
  y: number;
2185
279
  }>;
2186
- rotate: z.ZodOptional<z.ZodNumber>;
2187
- type: z.ZodLiteral<"image">;
2188
- }, "strip", z.ZodTypeAny, {
2189
- type: "image";
2190
- height: number;
2191
- width: number;
2192
- position: {
2193
- x: number;
2194
- y: number;
2195
- };
2196
- rotate?: number | undefined;
2197
- }, {
2198
- type: "image";
2199
- height: number;
2200
- width: number;
2201
- position: {
2202
- x: number;
2203
- y: number;
2204
- };
2205
- rotate?: number | undefined;
2206
- }>, z.ZodObject<{
2207
- height: z.ZodNumber;
2208
280
  width: z.ZodNumber;
281
+ height: z.ZodNumber;
282
+ rotate: z.ZodOptional<z.ZodNumber>;
283
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
284
+ type: z.ZodString;
2209
285
  position: z.ZodObject<{
2210
286
  x: z.ZodNumber;
2211
287
  y: z.ZodNumber;
@@ -2216,136 +292,68 @@ export declare const PreviewProps: z.ZodObject<{
2216
292
  x: number;
2217
293
  y: number;
2218
294
  }>;
295
+ width: z.ZodNumber;
296
+ height: z.ZodNumber;
2219
297
  rotate: z.ZodOptional<z.ZodNumber>;
2220
- type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
2221
- backgroundcolor: z.ZodOptional<z.ZodString>;
2222
- barcolor: z.ZodOptional<z.ZodString>;
2223
- textcolor: z.ZodOptional<z.ZodString>;
2224
- }, "strip", z.ZodTypeAny, {
2225
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
2226
- height: number;
2227
- width: number;
2228
- position: {
2229
- x: number;
2230
- y: number;
2231
- };
2232
- rotate?: number | undefined;
2233
- backgroundcolor?: string | undefined;
2234
- barcolor?: string | undefined;
2235
- textcolor?: string | undefined;
2236
- }, {
2237
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
2238
- height: number;
2239
- width: number;
2240
- position: {
2241
- x: number;
2242
- y: number;
2243
- };
2244
- rotate?: number | undefined;
2245
- backgroundcolor?: string | undefined;
2246
- barcolor?: string | undefined;
2247
- textcolor?: string | undefined;
2248
- }>]>>, "many">;
298
+ }, z.ZodTypeAny, "passthrough">>>, "many">;
2249
299
  basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
2250
300
  sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
2251
301
  columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2252
302
  }, "strip", z.ZodTypeAny, {
2253
- schemas: Record<string, {
2254
- type: "text";
2255
- height: number;
2256
- width: number;
2257
- position: {
2258
- x: number;
2259
- y: number;
2260
- };
2261
- rotate?: number | undefined;
2262
- alignment?: "center" | "left" | "right" | undefined;
2263
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2264
- fontSize?: number | undefined;
2265
- fontName?: string | undefined;
2266
- fontColor?: string | undefined;
2267
- backgroundColor?: string | undefined;
2268
- characterSpacing?: number | undefined;
2269
- lineHeight?: number | undefined;
2270
- dynamicFontSize?: {
2271
- max: number;
2272
- min: number;
2273
- fit?: string | undefined;
2274
- } | undefined;
2275
- } | {
2276
- type: "image";
2277
- height: number;
2278
- width: number;
2279
- position: {
303
+ schemas: Record<string, z.objectOutputType<{
304
+ type: z.ZodString;
305
+ position: z.ZodObject<{
306
+ x: z.ZodNumber;
307
+ y: z.ZodNumber;
308
+ }, "strip", z.ZodTypeAny, {
2280
309
  x: number;
2281
310
  y: number;
2282
- };
2283
- rotate?: number | undefined;
2284
- } | {
2285
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
2286
- height: number;
2287
- width: number;
2288
- position: {
311
+ }, {
2289
312
  x: number;
2290
313
  y: number;
2291
- };
2292
- rotate?: number | undefined;
2293
- backgroundcolor?: string | undefined;
2294
- barcolor?: string | undefined;
2295
- textcolor?: string | undefined;
2296
- }>[];
314
+ }>;
315
+ width: z.ZodNumber;
316
+ height: z.ZodNumber;
317
+ rotate: z.ZodOptional<z.ZodNumber>;
318
+ }, z.ZodTypeAny, "passthrough">>[];
2297
319
  basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2298
320
  sampledata?: Record<string, string>[] | undefined;
2299
321
  columns?: string[] | undefined;
2300
322
  }, {
2301
- schemas: Record<string, {
2302
- type: "text";
2303
- height: number;
2304
- width: number;
2305
- position: {
2306
- x: number;
2307
- y: number;
2308
- };
2309
- rotate?: number | undefined;
2310
- alignment?: "center" | "left" | "right" | undefined;
2311
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2312
- fontSize?: number | undefined;
2313
- fontName?: string | undefined;
2314
- fontColor?: string | undefined;
2315
- backgroundColor?: string | undefined;
2316
- characterSpacing?: number | undefined;
2317
- lineHeight?: number | undefined;
2318
- dynamicFontSize?: {
2319
- max: number;
2320
- min: number;
2321
- fit?: string | undefined;
2322
- } | undefined;
2323
- } | {
2324
- type: "image";
2325
- height: number;
2326
- width: number;
2327
- position: {
323
+ schemas: Record<string, z.objectInputType<{
324
+ type: z.ZodString;
325
+ position: z.ZodObject<{
326
+ x: z.ZodNumber;
327
+ y: z.ZodNumber;
328
+ }, "strip", z.ZodTypeAny, {
2328
329
  x: number;
2329
330
  y: number;
2330
- };
2331
- rotate?: number | undefined;
2332
- } | {
2333
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
2334
- height: number;
2335
- width: number;
2336
- position: {
331
+ }, {
2337
332
  x: number;
2338
333
  y: number;
2339
- };
2340
- rotate?: number | undefined;
2341
- backgroundcolor?: string | undefined;
2342
- barcolor?: string | undefined;
2343
- textcolor?: string | undefined;
2344
- }>[];
334
+ }>;
335
+ width: z.ZodNumber;
336
+ height: z.ZodNumber;
337
+ rotate: z.ZodOptional<z.ZodNumber>;
338
+ }, z.ZodTypeAny, "passthrough">>[];
2345
339
  basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2346
340
  sampledata?: Record<string, string>[] | undefined;
2347
341
  columns?: string[] | undefined;
2348
342
  }>;
343
+ plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
344
+ ui: z.ZodAny;
345
+ pdf: z.ZodAny;
346
+ propPanel: z.ZodAny;
347
+ }, "strip", z.ZodTypeAny, {
348
+ ui?: any;
349
+ pdf?: any;
350
+ propPanel?: any;
351
+ }, {
352
+ ui?: any;
353
+ pdf?: any;
354
+ propPanel?: any;
355
+ }>>>;
356
+ inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
2349
357
  options: z.ZodOptional<z.ZodObject<{
2350
358
  font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2351
359
  data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
@@ -2360,150 +368,39 @@ export declare const PreviewProps: z.ZodObject<{
2360
368
  fallback?: boolean | undefined;
2361
369
  subset?: boolean | undefined;
2362
370
  }>>>;
2363
- lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
2364
- }, "strip", z.ZodTypeAny, {
2365
- font?: Record<string, {
371
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
372
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
373
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
374
+ fallback: z.ZodOptional<z.ZodBoolean>;
375
+ subset: z.ZodOptional<z.ZodBoolean>;
376
+ }, "strip", z.ZodTypeAny, {
2366
377
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2367
378
  fallback?: boolean | undefined;
2368
379
  subset?: boolean | undefined;
2369
- }> | undefined;
2370
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
2371
- }, {
2372
- font?: Record<string, {
380
+ }, {
2373
381
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2374
382
  fallback?: boolean | undefined;
2375
383
  subset?: boolean | undefined;
2376
- }> | undefined;
2377
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
2378
- }>>;
2379
- domContainer: z.ZodType<HTMLElement, z.ZodTypeDef, HTMLElement>;
2380
- inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
2381
- }, "strict", z.ZodTypeAny, {
2382
- template: {
2383
- schemas: Record<string, {
2384
- type: "text";
2385
- height: number;
2386
- width: number;
2387
- position: {
2388
- x: number;
2389
- y: number;
2390
- };
2391
- rotate?: number | undefined;
2392
- alignment?: "center" | "left" | "right" | undefined;
2393
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2394
- fontSize?: number | undefined;
2395
- fontName?: string | undefined;
2396
- fontColor?: string | undefined;
2397
- backgroundColor?: string | undefined;
2398
- characterSpacing?: number | undefined;
2399
- lineHeight?: number | undefined;
2400
- dynamicFontSize?: {
2401
- max: number;
2402
- min: number;
2403
- fit?: string | undefined;
2404
- } | undefined;
2405
- } | {
2406
- type: "image";
2407
- height: number;
2408
- width: number;
2409
- position: {
2410
- x: number;
2411
- y: number;
2412
- };
2413
- rotate?: number | undefined;
2414
- } | {
2415
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
2416
- height: number;
2417
- width: number;
2418
- position: {
2419
- x: number;
2420
- y: number;
2421
- };
2422
- rotate?: number | undefined;
2423
- backgroundcolor?: string | undefined;
2424
- barcolor?: string | undefined;
2425
- textcolor?: string | undefined;
2426
- }>[];
2427
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2428
- sampledata?: Record<string, string>[] | undefined;
2429
- columns?: string[] | undefined;
2430
- };
2431
- inputs: Record<string, string>[];
2432
- domContainer: HTMLElement;
2433
- options?: {
2434
- font?: Record<string, {
384
+ }>>>;
385
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
386
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
387
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
388
+ fallback: z.ZodOptional<z.ZodBoolean>;
389
+ subset: z.ZodOptional<z.ZodBoolean>;
390
+ }, "strip", z.ZodTypeAny, {
2435
391
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2436
392
  fallback?: boolean | undefined;
2437
393
  subset?: boolean | undefined;
2438
- }> | undefined;
2439
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
2440
- } | undefined;
2441
- }, {
2442
- template: {
2443
- schemas: Record<string, {
2444
- type: "text";
2445
- height: number;
2446
- width: number;
2447
- position: {
2448
- x: number;
2449
- y: number;
2450
- };
2451
- rotate?: number | undefined;
2452
- alignment?: "center" | "left" | "right" | undefined;
2453
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2454
- fontSize?: number | undefined;
2455
- fontName?: string | undefined;
2456
- fontColor?: string | undefined;
2457
- backgroundColor?: string | undefined;
2458
- characterSpacing?: number | undefined;
2459
- lineHeight?: number | undefined;
2460
- dynamicFontSize?: {
2461
- max: number;
2462
- min: number;
2463
- fit?: string | undefined;
2464
- } | undefined;
2465
- } | {
2466
- type: "image";
2467
- height: number;
2468
- width: number;
2469
- position: {
2470
- x: number;
2471
- y: number;
2472
- };
2473
- rotate?: number | undefined;
2474
- } | {
2475
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
2476
- height: number;
2477
- width: number;
2478
- position: {
2479
- x: number;
2480
- y: number;
2481
- };
2482
- rotate?: number | undefined;
2483
- backgroundcolor?: string | undefined;
2484
- barcolor?: string | undefined;
2485
- textcolor?: string | undefined;
2486
- }>[];
2487
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2488
- sampledata?: Record<string, string>[] | undefined;
2489
- columns?: string[] | undefined;
2490
- };
2491
- inputs: Record<string, string>[];
2492
- domContainer: HTMLElement;
2493
- options?: {
2494
- font?: Record<string, {
394
+ }, {
2495
395
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2496
396
  fallback?: boolean | undefined;
2497
397
  subset?: boolean | undefined;
2498
- }> | undefined;
2499
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
2500
- } | undefined;
2501
- }>;
2502
- export declare const PreviewReactProps: z.ZodObject<{
2503
- template: z.ZodObject<{
2504
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
2505
- height: z.ZodNumber;
2506
- width: z.ZodNumber;
398
+ }>>>;
399
+ }, z.ZodTypeAny, "passthrough">>>;
400
+ }, "strict", z.ZodTypeAny, {
401
+ template: {
402
+ schemas: Record<string, z.objectOutputType<{
403
+ type: z.ZodString;
2507
404
  position: z.ZodObject<{
2508
405
  x: z.ZodNumber;
2509
406
  y: z.ZodNumber;
@@ -2514,250 +411,21 @@ export declare const PreviewReactProps: z.ZodObject<{
2514
411
  x: number;
2515
412
  y: number;
2516
413
  }>;
2517
- rotate: z.ZodOptional<z.ZodNumber>;
2518
- type: z.ZodLiteral<"text">;
2519
- alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
2520
- verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
2521
- fontSize: z.ZodOptional<z.ZodNumber>;
2522
- fontName: z.ZodOptional<z.ZodString>;
2523
- fontColor: z.ZodOptional<z.ZodString>;
2524
- backgroundColor: z.ZodOptional<z.ZodString>;
2525
- characterSpacing: z.ZodOptional<z.ZodNumber>;
2526
- lineHeight: z.ZodOptional<z.ZodNumber>;
2527
- dynamicFontSize: z.ZodOptional<z.ZodObject<{
2528
- max: z.ZodNumber;
2529
- min: z.ZodNumber;
2530
- fit: z.ZodOptional<z.ZodString>;
2531
- }, "strip", z.ZodTypeAny, {
2532
- max: number;
2533
- min: number;
2534
- fit?: string | undefined;
2535
- }, {
2536
- max: number;
2537
- min: number;
2538
- fit?: string | undefined;
2539
- }>>;
2540
- }, "strip", z.ZodTypeAny, {
2541
- type: "text";
2542
- height: number;
2543
- width: number;
2544
- position: {
2545
- x: number;
2546
- y: number;
2547
- };
2548
- rotate?: number | undefined;
2549
- alignment?: "center" | "left" | "right" | undefined;
2550
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2551
- fontSize?: number | undefined;
2552
- fontName?: string | undefined;
2553
- fontColor?: string | undefined;
2554
- backgroundColor?: string | undefined;
2555
- characterSpacing?: number | undefined;
2556
- lineHeight?: number | undefined;
2557
- dynamicFontSize?: {
2558
- max: number;
2559
- min: number;
2560
- fit?: string | undefined;
2561
- } | undefined;
2562
- }, {
2563
- type: "text";
2564
- height: number;
2565
- width: number;
2566
- position: {
2567
- x: number;
2568
- y: number;
2569
- };
2570
- rotate?: number | undefined;
2571
- alignment?: "center" | "left" | "right" | undefined;
2572
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2573
- fontSize?: number | undefined;
2574
- fontName?: string | undefined;
2575
- fontColor?: string | undefined;
2576
- backgroundColor?: string | undefined;
2577
- characterSpacing?: number | undefined;
2578
- lineHeight?: number | undefined;
2579
- dynamicFontSize?: {
2580
- max: number;
2581
- min: number;
2582
- fit?: string | undefined;
2583
- } | undefined;
2584
- }>, z.ZodObject<{
2585
- height: z.ZodNumber;
2586
414
  width: z.ZodNumber;
2587
- position: z.ZodObject<{
2588
- x: z.ZodNumber;
2589
- y: z.ZodNumber;
2590
- }, "strip", z.ZodTypeAny, {
2591
- x: number;
2592
- y: number;
2593
- }, {
2594
- x: number;
2595
- y: number;
2596
- }>;
2597
- rotate: z.ZodOptional<z.ZodNumber>;
2598
- type: z.ZodLiteral<"image">;
2599
- }, "strip", z.ZodTypeAny, {
2600
- type: "image";
2601
- height: number;
2602
- width: number;
2603
- position: {
2604
- x: number;
2605
- y: number;
2606
- };
2607
- rotate?: number | undefined;
2608
- }, {
2609
- type: "image";
2610
- height: number;
2611
- width: number;
2612
- position: {
2613
- x: number;
2614
- y: number;
2615
- };
2616
- rotate?: number | undefined;
2617
- }>, z.ZodObject<{
2618
415
  height: z.ZodNumber;
2619
- width: z.ZodNumber;
2620
- position: z.ZodObject<{
2621
- x: z.ZodNumber;
2622
- y: z.ZodNumber;
2623
- }, "strip", z.ZodTypeAny, {
2624
- x: number;
2625
- y: number;
2626
- }, {
2627
- x: number;
2628
- y: number;
2629
- }>;
2630
416
  rotate: z.ZodOptional<z.ZodNumber>;
2631
- type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
2632
- backgroundcolor: z.ZodOptional<z.ZodString>;
2633
- barcolor: z.ZodOptional<z.ZodString>;
2634
- textcolor: z.ZodOptional<z.ZodString>;
2635
- }, "strip", z.ZodTypeAny, {
2636
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
2637
- height: number;
2638
- width: number;
2639
- position: {
2640
- x: number;
2641
- y: number;
2642
- };
2643
- rotate?: number | undefined;
2644
- backgroundcolor?: string | undefined;
2645
- barcolor?: string | undefined;
2646
- textcolor?: string | undefined;
2647
- }, {
2648
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
2649
- height: number;
2650
- width: number;
2651
- position: {
2652
- x: number;
2653
- y: number;
2654
- };
2655
- rotate?: number | undefined;
2656
- backgroundcolor?: string | undefined;
2657
- barcolor?: string | undefined;
2658
- textcolor?: string | undefined;
2659
- }>]>>, "many">;
2660
- basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
2661
- sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
2662
- columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2663
- }, "strip", z.ZodTypeAny, {
2664
- schemas: Record<string, {
2665
- type: "text";
2666
- height: number;
2667
- width: number;
2668
- position: {
2669
- x: number;
2670
- y: number;
2671
- };
2672
- rotate?: number | undefined;
2673
- alignment?: "center" | "left" | "right" | undefined;
2674
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2675
- fontSize?: number | undefined;
2676
- fontName?: string | undefined;
2677
- fontColor?: string | undefined;
2678
- backgroundColor?: string | undefined;
2679
- characterSpacing?: number | undefined;
2680
- lineHeight?: number | undefined;
2681
- dynamicFontSize?: {
2682
- max: number;
2683
- min: number;
2684
- fit?: string | undefined;
2685
- } | undefined;
2686
- } | {
2687
- type: "image";
2688
- height: number;
2689
- width: number;
2690
- position: {
2691
- x: number;
2692
- y: number;
2693
- };
2694
- rotate?: number | undefined;
2695
- } | {
2696
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
2697
- height: number;
2698
- width: number;
2699
- position: {
2700
- x: number;
2701
- y: number;
2702
- };
2703
- rotate?: number | undefined;
2704
- backgroundcolor?: string | undefined;
2705
- barcolor?: string | undefined;
2706
- textcolor?: string | undefined;
2707
- }>[];
2708
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2709
- sampledata?: Record<string, string>[] | undefined;
2710
- columns?: string[] | undefined;
2711
- }, {
2712
- schemas: Record<string, {
2713
- type: "text";
2714
- height: number;
2715
- width: number;
2716
- position: {
2717
- x: number;
2718
- y: number;
2719
- };
2720
- rotate?: number | undefined;
2721
- alignment?: "center" | "left" | "right" | undefined;
2722
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2723
- fontSize?: number | undefined;
2724
- fontName?: string | undefined;
2725
- fontColor?: string | undefined;
2726
- backgroundColor?: string | undefined;
2727
- characterSpacing?: number | undefined;
2728
- lineHeight?: number | undefined;
2729
- dynamicFontSize?: {
2730
- max: number;
2731
- min: number;
2732
- fit?: string | undefined;
2733
- } | undefined;
2734
- } | {
2735
- type: "image";
2736
- height: number;
2737
- width: number;
2738
- position: {
2739
- x: number;
2740
- y: number;
2741
- };
2742
- rotate?: number | undefined;
2743
- } | {
2744
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
2745
- height: number;
2746
- width: number;
2747
- position: {
2748
- x: number;
2749
- y: number;
2750
- };
2751
- rotate?: number | undefined;
2752
- backgroundcolor?: string | undefined;
2753
- barcolor?: string | undefined;
2754
- textcolor?: string | undefined;
2755
- }>[];
417
+ }, z.ZodTypeAny, "passthrough">>[];
2756
418
  basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2757
419
  sampledata?: Record<string, string>[] | undefined;
2758
420
  columns?: string[] | undefined;
2759
- }>;
2760
- options: z.ZodOptional<z.ZodObject<{
421
+ };
422
+ inputs: Record<string, string>[];
423
+ plugins?: Record<string, {
424
+ ui?: any;
425
+ pdf?: any;
426
+ propPanel?: any;
427
+ }> | undefined;
428
+ options?: z.objectOutputType<{
2761
429
  font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2762
430
  data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
2763
431
  fallback: z.ZodOptional<z.ZodBoolean>;
@@ -2771,188 +439,101 @@ export declare const PreviewReactProps: z.ZodObject<{
2771
439
  fallback?: boolean | undefined;
2772
440
  subset?: boolean | undefined;
2773
441
  }>>>;
2774
- lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
2775
- }, "strip", z.ZodTypeAny, {
2776
- font?: Record<string, {
2777
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2778
- fallback?: boolean | undefined;
2779
- subset?: boolean | undefined;
2780
- }> | undefined;
2781
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
2782
- }, {
2783
- font?: Record<string, {
2784
- data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2785
- fallback?: boolean | undefined;
2786
- subset?: boolean | undefined;
2787
- }> | undefined;
2788
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
2789
- }>>;
2790
- inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
2791
- onChangeInput: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
2792
- index: z.ZodNumber;
2793
- value: z.ZodString;
2794
- key: z.ZodString;
2795
- }, "strip", z.ZodTypeAny, {
2796
- index: number;
2797
- key: string;
2798
- value: string;
2799
- }, {
2800
- index: number;
2801
- key: string;
2802
- value: string;
2803
- }>], z.ZodUnknown>, z.ZodVoid>>;
2804
- size: z.ZodObject<{
2805
- height: z.ZodNumber;
2806
- width: z.ZodNumber;
2807
- }, "strip", z.ZodTypeAny, {
2808
- height: number;
2809
- width: number;
2810
- }, {
2811
- height: number;
2812
- width: number;
2813
- }>;
2814
- }, "strict", z.ZodTypeAny, {
442
+ }, z.ZodTypeAny, "passthrough"> | undefined;
443
+ }, {
2815
444
  template: {
2816
- schemas: Record<string, {
2817
- type: "text";
2818
- height: number;
2819
- width: number;
2820
- position: {
2821
- x: number;
2822
- y: number;
2823
- };
2824
- rotate?: number | undefined;
2825
- alignment?: "center" | "left" | "right" | undefined;
2826
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2827
- fontSize?: number | undefined;
2828
- fontName?: string | undefined;
2829
- fontColor?: string | undefined;
2830
- backgroundColor?: string | undefined;
2831
- characterSpacing?: number | undefined;
2832
- lineHeight?: number | undefined;
2833
- dynamicFontSize?: {
2834
- max: number;
2835
- min: number;
2836
- fit?: string | undefined;
2837
- } | undefined;
2838
- } | {
2839
- type: "image";
2840
- height: number;
2841
- width: number;
2842
- position: {
445
+ schemas: Record<string, z.objectInputType<{
446
+ type: z.ZodString;
447
+ position: z.ZodObject<{
448
+ x: z.ZodNumber;
449
+ y: z.ZodNumber;
450
+ }, "strip", z.ZodTypeAny, {
2843
451
  x: number;
2844
452
  y: number;
2845
- };
2846
- rotate?: number | undefined;
2847
- } | {
2848
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
2849
- height: number;
2850
- width: number;
2851
- position: {
453
+ }, {
2852
454
  x: number;
2853
455
  y: number;
2854
- };
2855
- rotate?: number | undefined;
2856
- backgroundcolor?: string | undefined;
2857
- barcolor?: string | undefined;
2858
- textcolor?: string | undefined;
2859
- }>[];
456
+ }>;
457
+ width: z.ZodNumber;
458
+ height: z.ZodNumber;
459
+ rotate: z.ZodOptional<z.ZodNumber>;
460
+ }, z.ZodTypeAny, "passthrough">>[];
2860
461
  basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2861
462
  sampledata?: Record<string, string>[] | undefined;
2862
463
  columns?: string[] | undefined;
2863
464
  };
2864
- size: {
2865
- height: number;
2866
- width: number;
2867
- };
2868
465
  inputs: Record<string, string>[];
2869
- options?: {
2870
- font?: Record<string, {
466
+ plugins?: Record<string, {
467
+ ui?: any;
468
+ pdf?: any;
469
+ propPanel?: any;
470
+ }> | undefined;
471
+ options?: z.objectInputType<{
472
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
473
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
474
+ fallback: z.ZodOptional<z.ZodBoolean>;
475
+ subset: z.ZodOptional<z.ZodBoolean>;
476
+ }, "strip", z.ZodTypeAny, {
2871
477
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2872
478
  fallback?: boolean | undefined;
2873
479
  subset?: boolean | undefined;
2874
- }> | undefined;
2875
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
2876
- } | undefined;
2877
- onChangeInput?: ((args_0: {
2878
- index: number;
2879
- key: string;
2880
- value: string;
2881
- }, ...args_1: unknown[]) => void) | undefined;
2882
- }, {
2883
- template: {
2884
- schemas: Record<string, {
2885
- type: "text";
2886
- height: number;
2887
- width: number;
2888
- position: {
2889
- x: number;
2890
- y: number;
2891
- };
2892
- rotate?: number | undefined;
2893
- alignment?: "center" | "left" | "right" | undefined;
2894
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2895
- fontSize?: number | undefined;
2896
- fontName?: string | undefined;
2897
- fontColor?: string | undefined;
2898
- backgroundColor?: string | undefined;
2899
- characterSpacing?: number | undefined;
2900
- lineHeight?: number | undefined;
2901
- dynamicFontSize?: {
2902
- max: number;
2903
- min: number;
2904
- fit?: string | undefined;
2905
- } | undefined;
2906
- } | {
2907
- type: "image";
2908
- height: number;
2909
- width: number;
2910
- position: {
2911
- x: number;
2912
- y: number;
2913
- };
2914
- rotate?: number | undefined;
2915
- } | {
2916
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
2917
- height: number;
2918
- width: number;
2919
- position: {
2920
- x: number;
2921
- y: number;
2922
- };
2923
- rotate?: number | undefined;
2924
- backgroundcolor?: string | undefined;
2925
- barcolor?: string | undefined;
2926
- textcolor?: string | undefined;
2927
- }>[];
2928
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2929
- sampledata?: Record<string, string>[] | undefined;
2930
- columns?: string[] | undefined;
2931
- };
2932
- size: {
2933
- height: number;
2934
- width: number;
2935
- };
2936
- inputs: Record<string, string>[];
2937
- options?: {
2938
- font?: Record<string, {
480
+ }, {
2939
481
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2940
482
  fallback?: boolean | undefined;
2941
483
  subset?: boolean | undefined;
2942
- }> | undefined;
2943
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
2944
- } | undefined;
2945
- onChangeInput?: ((args_0: {
2946
- index: number;
2947
- key: string;
2948
- value: string;
2949
- }, ...args_1: unknown[]) => void) | undefined;
484
+ }>>>;
485
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2950
486
  }>;
2951
- export declare const DesignerProps: z.ZodObject<{
487
+ export declare const UIOptions: z.ZodObject<{
488
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
489
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
490
+ fallback: z.ZodOptional<z.ZodBoolean>;
491
+ subset: z.ZodOptional<z.ZodBoolean>;
492
+ }, "strip", z.ZodTypeAny, {
493
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
494
+ fallback?: boolean | undefined;
495
+ subset?: boolean | undefined;
496
+ }, {
497
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
498
+ fallback?: boolean | undefined;
499
+ subset?: boolean | undefined;
500
+ }>>>;
501
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
502
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
503
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
504
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
505
+ fallback: z.ZodOptional<z.ZodBoolean>;
506
+ subset: z.ZodOptional<z.ZodBoolean>;
507
+ }, "strip", z.ZodTypeAny, {
508
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
509
+ fallback?: boolean | undefined;
510
+ subset?: boolean | undefined;
511
+ }, {
512
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
513
+ fallback?: boolean | undefined;
514
+ subset?: boolean | undefined;
515
+ }>>>;
516
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
517
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
518
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
519
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
520
+ fallback: z.ZodOptional<z.ZodBoolean>;
521
+ subset: z.ZodOptional<z.ZodBoolean>;
522
+ }, "strip", z.ZodTypeAny, {
523
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
524
+ fallback?: boolean | undefined;
525
+ subset?: boolean | undefined;
526
+ }, {
527
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
528
+ fallback?: boolean | undefined;
529
+ subset?: boolean | undefined;
530
+ }>>>;
531
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
532
+ }, z.ZodTypeAny, "passthrough">>;
533
+ export declare const UIProps: z.ZodObject<{
2952
534
  template: z.ZodObject<{
2953
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
2954
- height: z.ZodNumber;
2955
- width: z.ZodNumber;
535
+ schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
536
+ type: z.ZodString;
2956
537
  position: z.ZodObject<{
2957
538
  x: z.ZodNumber;
2958
539
  y: z.ZodNumber;
@@ -2963,76 +544,11 @@ export declare const DesignerProps: z.ZodObject<{
2963
544
  x: number;
2964
545
  y: number;
2965
546
  }>;
2966
- rotate: z.ZodOptional<z.ZodNumber>;
2967
- type: z.ZodLiteral<"text">;
2968
- alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
2969
- verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
2970
- fontSize: z.ZodOptional<z.ZodNumber>;
2971
- fontName: z.ZodOptional<z.ZodString>;
2972
- fontColor: z.ZodOptional<z.ZodString>;
2973
- backgroundColor: z.ZodOptional<z.ZodString>;
2974
- characterSpacing: z.ZodOptional<z.ZodNumber>;
2975
- lineHeight: z.ZodOptional<z.ZodNumber>;
2976
- dynamicFontSize: z.ZodOptional<z.ZodObject<{
2977
- max: z.ZodNumber;
2978
- min: z.ZodNumber;
2979
- fit: z.ZodOptional<z.ZodString>;
2980
- }, "strip", z.ZodTypeAny, {
2981
- max: number;
2982
- min: number;
2983
- fit?: string | undefined;
2984
- }, {
2985
- max: number;
2986
- min: number;
2987
- fit?: string | undefined;
2988
- }>>;
2989
- }, "strip", z.ZodTypeAny, {
2990
- type: "text";
2991
- height: number;
2992
- width: number;
2993
- position: {
2994
- x: number;
2995
- y: number;
2996
- };
2997
- rotate?: number | undefined;
2998
- alignment?: "center" | "left" | "right" | undefined;
2999
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3000
- fontSize?: number | undefined;
3001
- fontName?: string | undefined;
3002
- fontColor?: string | undefined;
3003
- backgroundColor?: string | undefined;
3004
- characterSpacing?: number | undefined;
3005
- lineHeight?: number | undefined;
3006
- dynamicFontSize?: {
3007
- max: number;
3008
- min: number;
3009
- fit?: string | undefined;
3010
- } | undefined;
3011
- }, {
3012
- type: "text";
3013
- height: number;
3014
- width: number;
3015
- position: {
3016
- x: number;
3017
- y: number;
3018
- };
3019
- rotate?: number | undefined;
3020
- alignment?: "center" | "left" | "right" | undefined;
3021
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3022
- fontSize?: number | undefined;
3023
- fontName?: string | undefined;
3024
- fontColor?: string | undefined;
3025
- backgroundColor?: string | undefined;
3026
- characterSpacing?: number | undefined;
3027
- lineHeight?: number | undefined;
3028
- dynamicFontSize?: {
3029
- max: number;
3030
- min: number;
3031
- fit?: string | undefined;
3032
- } | undefined;
3033
- }>, z.ZodObject<{
3034
- height: z.ZodNumber;
3035
547
  width: z.ZodNumber;
548
+ height: z.ZodNumber;
549
+ rotate: z.ZodOptional<z.ZodNumber>;
550
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
551
+ type: z.ZodString;
3036
552
  position: z.ZodObject<{
3037
553
  x: z.ZodNumber;
3038
554
  y: z.ZodNumber;
@@ -3043,29 +559,11 @@ export declare const DesignerProps: z.ZodObject<{
3043
559
  x: number;
3044
560
  y: number;
3045
561
  }>;
3046
- rotate: z.ZodOptional<z.ZodNumber>;
3047
- type: z.ZodLiteral<"image">;
3048
- }, "strip", z.ZodTypeAny, {
3049
- type: "image";
3050
- height: number;
3051
- width: number;
3052
- position: {
3053
- x: number;
3054
- y: number;
3055
- };
3056
- rotate?: number | undefined;
3057
- }, {
3058
- type: "image";
3059
- height: number;
3060
- width: number;
3061
- position: {
3062
- x: number;
3063
- y: number;
3064
- };
3065
- rotate?: number | undefined;
3066
- }>, z.ZodObject<{
3067
- height: z.ZodNumber;
3068
562
  width: z.ZodNumber;
563
+ height: z.ZodNumber;
564
+ rotate: z.ZodOptional<z.ZodNumber>;
565
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
566
+ type: z.ZodString;
3069
567
  position: z.ZodObject<{
3070
568
  x: z.ZodNumber;
3071
569
  y: z.ZodNumber;
@@ -3076,136 +574,68 @@ export declare const DesignerProps: z.ZodObject<{
3076
574
  x: number;
3077
575
  y: number;
3078
576
  }>;
577
+ width: z.ZodNumber;
578
+ height: z.ZodNumber;
3079
579
  rotate: z.ZodOptional<z.ZodNumber>;
3080
- type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
3081
- backgroundcolor: z.ZodOptional<z.ZodString>;
3082
- barcolor: z.ZodOptional<z.ZodString>;
3083
- textcolor: z.ZodOptional<z.ZodString>;
3084
- }, "strip", z.ZodTypeAny, {
3085
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
3086
- height: number;
3087
- width: number;
3088
- position: {
3089
- x: number;
3090
- y: number;
3091
- };
3092
- rotate?: number | undefined;
3093
- backgroundcolor?: string | undefined;
3094
- barcolor?: string | undefined;
3095
- textcolor?: string | undefined;
3096
- }, {
3097
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
3098
- height: number;
3099
- width: number;
3100
- position: {
3101
- x: number;
3102
- y: number;
3103
- };
3104
- rotate?: number | undefined;
3105
- backgroundcolor?: string | undefined;
3106
- barcolor?: string | undefined;
3107
- textcolor?: string | undefined;
3108
- }>]>>, "many">;
580
+ }, z.ZodTypeAny, "passthrough">>>, "many">;
3109
581
  basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
3110
582
  sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
3111
583
  columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3112
584
  }, "strip", z.ZodTypeAny, {
3113
- schemas: Record<string, {
3114
- type: "text";
3115
- height: number;
3116
- width: number;
3117
- position: {
3118
- x: number;
3119
- y: number;
3120
- };
3121
- rotate?: number | undefined;
3122
- alignment?: "center" | "left" | "right" | undefined;
3123
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3124
- fontSize?: number | undefined;
3125
- fontName?: string | undefined;
3126
- fontColor?: string | undefined;
3127
- backgroundColor?: string | undefined;
3128
- characterSpacing?: number | undefined;
3129
- lineHeight?: number | undefined;
3130
- dynamicFontSize?: {
3131
- max: number;
3132
- min: number;
3133
- fit?: string | undefined;
3134
- } | undefined;
3135
- } | {
3136
- type: "image";
3137
- height: number;
3138
- width: number;
3139
- position: {
585
+ schemas: Record<string, z.objectOutputType<{
586
+ type: z.ZodString;
587
+ position: z.ZodObject<{
588
+ x: z.ZodNumber;
589
+ y: z.ZodNumber;
590
+ }, "strip", z.ZodTypeAny, {
3140
591
  x: number;
3141
592
  y: number;
3142
- };
3143
- rotate?: number | undefined;
3144
- } | {
3145
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
3146
- height: number;
3147
- width: number;
3148
- position: {
593
+ }, {
3149
594
  x: number;
3150
595
  y: number;
3151
- };
3152
- rotate?: number | undefined;
3153
- backgroundcolor?: string | undefined;
3154
- barcolor?: string | undefined;
3155
- textcolor?: string | undefined;
3156
- }>[];
596
+ }>;
597
+ width: z.ZodNumber;
598
+ height: z.ZodNumber;
599
+ rotate: z.ZodOptional<z.ZodNumber>;
600
+ }, z.ZodTypeAny, "passthrough">>[];
3157
601
  basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3158
602
  sampledata?: Record<string, string>[] | undefined;
3159
603
  columns?: string[] | undefined;
3160
604
  }, {
3161
- schemas: Record<string, {
3162
- type: "text";
3163
- height: number;
3164
- width: number;
3165
- position: {
3166
- x: number;
3167
- y: number;
3168
- };
3169
- rotate?: number | undefined;
3170
- alignment?: "center" | "left" | "right" | undefined;
3171
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3172
- fontSize?: number | undefined;
3173
- fontName?: string | undefined;
3174
- fontColor?: string | undefined;
3175
- backgroundColor?: string | undefined;
3176
- characterSpacing?: number | undefined;
3177
- lineHeight?: number | undefined;
3178
- dynamicFontSize?: {
3179
- max: number;
3180
- min: number;
3181
- fit?: string | undefined;
3182
- } | undefined;
3183
- } | {
3184
- type: "image";
3185
- height: number;
3186
- width: number;
3187
- position: {
605
+ schemas: Record<string, z.objectInputType<{
606
+ type: z.ZodString;
607
+ position: z.ZodObject<{
608
+ x: z.ZodNumber;
609
+ y: z.ZodNumber;
610
+ }, "strip", z.ZodTypeAny, {
3188
611
  x: number;
3189
612
  y: number;
3190
- };
3191
- rotate?: number | undefined;
3192
- } | {
3193
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
3194
- height: number;
3195
- width: number;
3196
- position: {
613
+ }, {
3197
614
  x: number;
3198
615
  y: number;
3199
- };
3200
- rotate?: number | undefined;
3201
- backgroundcolor?: string | undefined;
3202
- barcolor?: string | undefined;
3203
- textcolor?: string | undefined;
3204
- }>[];
616
+ }>;
617
+ width: z.ZodNumber;
618
+ height: z.ZodNumber;
619
+ rotate: z.ZodOptional<z.ZodNumber>;
620
+ }, z.ZodTypeAny, "passthrough">>[];
3205
621
  basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3206
622
  sampledata?: Record<string, string>[] | undefined;
3207
623
  columns?: string[] | undefined;
3208
624
  }>;
625
+ plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
626
+ ui: z.ZodAny;
627
+ pdf: z.ZodAny;
628
+ propPanel: z.ZodAny;
629
+ }, "strip", z.ZodTypeAny, {
630
+ ui?: any;
631
+ pdf?: any;
632
+ propPanel?: any;
633
+ }, {
634
+ ui?: any;
635
+ pdf?: any;
636
+ propPanel?: any;
637
+ }>>>;
638
+ domContainer: z.ZodType<HTMLElement, z.ZodTypeDef, HTMLElement>;
3209
639
  options: z.ZodOptional<z.ZodObject<{
3210
640
  font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3211
641
  data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
@@ -3221,146 +651,246 @@ export declare const DesignerProps: z.ZodObject<{
3221
651
  subset?: boolean | undefined;
3222
652
  }>>>;
3223
653
  lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
3224
- }, "strip", z.ZodTypeAny, {
3225
- font?: Record<string, {
654
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
655
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
656
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
657
+ fallback: z.ZodOptional<z.ZodBoolean>;
658
+ subset: z.ZodOptional<z.ZodBoolean>;
659
+ }, "strip", z.ZodTypeAny, {
3226
660
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3227
661
  fallback?: boolean | undefined;
3228
662
  subset?: boolean | undefined;
3229
- }> | undefined;
3230
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
3231
- }, {
3232
- font?: Record<string, {
663
+ }, {
3233
664
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3234
665
  fallback?: boolean | undefined;
3235
666
  subset?: boolean | undefined;
3236
- }> | undefined;
3237
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
3238
- }>>;
3239
- domContainer: z.ZodType<HTMLElement, z.ZodTypeDef, HTMLElement>;
3240
- }, "strict", z.ZodTypeAny, {
667
+ }>>>;
668
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
669
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
670
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
671
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
672
+ fallback: z.ZodOptional<z.ZodBoolean>;
673
+ subset: z.ZodOptional<z.ZodBoolean>;
674
+ }, "strip", z.ZodTypeAny, {
675
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
676
+ fallback?: boolean | undefined;
677
+ subset?: boolean | undefined;
678
+ }, {
679
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
680
+ fallback?: boolean | undefined;
681
+ subset?: boolean | undefined;
682
+ }>>>;
683
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
684
+ }, z.ZodTypeAny, "passthrough">>>;
685
+ }, "strip", z.ZodTypeAny, {
3241
686
  template: {
3242
- schemas: Record<string, {
3243
- type: "text";
3244
- height: number;
3245
- width: number;
3246
- position: {
3247
- x: number;
3248
- y: number;
3249
- };
3250
- rotate?: number | undefined;
3251
- alignment?: "center" | "left" | "right" | undefined;
3252
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3253
- fontSize?: number | undefined;
3254
- fontName?: string | undefined;
3255
- fontColor?: string | undefined;
3256
- backgroundColor?: string | undefined;
3257
- characterSpacing?: number | undefined;
3258
- lineHeight?: number | undefined;
3259
- dynamicFontSize?: {
3260
- max: number;
3261
- min: number;
3262
- fit?: string | undefined;
3263
- } | undefined;
3264
- } | {
3265
- type: "image";
3266
- height: number;
3267
- width: number;
3268
- position: {
687
+ schemas: Record<string, z.objectOutputType<{
688
+ type: z.ZodString;
689
+ position: z.ZodObject<{
690
+ x: z.ZodNumber;
691
+ y: z.ZodNumber;
692
+ }, "strip", z.ZodTypeAny, {
3269
693
  x: number;
3270
694
  y: number;
3271
- };
3272
- rotate?: number | undefined;
3273
- } | {
3274
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
3275
- height: number;
3276
- width: number;
3277
- position: {
695
+ }, {
3278
696
  x: number;
3279
697
  y: number;
3280
- };
3281
- rotate?: number | undefined;
3282
- backgroundcolor?: string | undefined;
3283
- barcolor?: string | undefined;
3284
- textcolor?: string | undefined;
3285
- }>[];
698
+ }>;
699
+ width: z.ZodNumber;
700
+ height: z.ZodNumber;
701
+ rotate: z.ZodOptional<z.ZodNumber>;
702
+ }, z.ZodTypeAny, "passthrough">>[];
3286
703
  basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3287
704
  sampledata?: Record<string, string>[] | undefined;
3288
705
  columns?: string[] | undefined;
3289
706
  };
3290
707
  domContainer: HTMLElement;
3291
- options?: {
3292
- font?: Record<string, {
708
+ plugins?: Record<string, {
709
+ ui?: any;
710
+ pdf?: any;
711
+ propPanel?: any;
712
+ }> | undefined;
713
+ options?: z.objectOutputType<{
714
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
715
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
716
+ fallback: z.ZodOptional<z.ZodBoolean>;
717
+ subset: z.ZodOptional<z.ZodBoolean>;
718
+ }, "strip", z.ZodTypeAny, {
719
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
720
+ fallback?: boolean | undefined;
721
+ subset?: boolean | undefined;
722
+ }, {
3293
723
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3294
724
  fallback?: boolean | undefined;
3295
725
  subset?: boolean | undefined;
3296
- }> | undefined;
3297
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
3298
- } | undefined;
726
+ }>>>;
727
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
728
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3299
729
  }, {
3300
730
  template: {
3301
- schemas: Record<string, {
3302
- type: "text";
3303
- height: number;
3304
- width: number;
3305
- position: {
3306
- x: number;
3307
- y: number;
3308
- };
3309
- rotate?: number | undefined;
3310
- alignment?: "center" | "left" | "right" | undefined;
3311
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3312
- fontSize?: number | undefined;
3313
- fontName?: string | undefined;
3314
- fontColor?: string | undefined;
3315
- backgroundColor?: string | undefined;
3316
- characterSpacing?: number | undefined;
3317
- lineHeight?: number | undefined;
3318
- dynamicFontSize?: {
3319
- max: number;
3320
- min: number;
3321
- fit?: string | undefined;
3322
- } | undefined;
3323
- } | {
3324
- type: "image";
3325
- height: number;
3326
- width: number;
3327
- position: {
731
+ schemas: Record<string, z.objectInputType<{
732
+ type: z.ZodString;
733
+ position: z.ZodObject<{
734
+ x: z.ZodNumber;
735
+ y: z.ZodNumber;
736
+ }, "strip", z.ZodTypeAny, {
3328
737
  x: number;
3329
738
  y: number;
3330
- };
3331
- rotate?: number | undefined;
3332
- } | {
3333
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
3334
- height: number;
3335
- width: number;
3336
- position: {
739
+ }, {
3337
740
  x: number;
3338
741
  y: number;
3339
- };
3340
- rotate?: number | undefined;
3341
- backgroundcolor?: string | undefined;
3342
- barcolor?: string | undefined;
3343
- textcolor?: string | undefined;
3344
- }>[];
742
+ }>;
743
+ width: z.ZodNumber;
744
+ height: z.ZodNumber;
745
+ rotate: z.ZodOptional<z.ZodNumber>;
746
+ }, z.ZodTypeAny, "passthrough">>[];
3345
747
  basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3346
748
  sampledata?: Record<string, string>[] | undefined;
3347
749
  columns?: string[] | undefined;
3348
750
  };
3349
751
  domContainer: HTMLElement;
3350
- options?: {
3351
- font?: Record<string, {
752
+ plugins?: Record<string, {
753
+ ui?: any;
754
+ pdf?: any;
755
+ propPanel?: any;
756
+ }> | undefined;
757
+ options?: z.objectInputType<{
758
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
759
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
760
+ fallback: z.ZodOptional<z.ZodBoolean>;
761
+ subset: z.ZodOptional<z.ZodBoolean>;
762
+ }, "strip", z.ZodTypeAny, {
763
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
764
+ fallback?: boolean | undefined;
765
+ subset?: boolean | undefined;
766
+ }, {
3352
767
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3353
768
  fallback?: boolean | undefined;
3354
769
  subset?: boolean | undefined;
3355
- }> | undefined;
3356
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
3357
- } | undefined;
770
+ }>>>;
771
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
772
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3358
773
  }>;
3359
- export declare const DesignerReactProps: z.ZodObject<{
774
+ export declare const PreviewProps: z.ZodObject<{
775
+ options: z.ZodOptional<z.ZodObject<{
776
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
777
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
778
+ fallback: z.ZodOptional<z.ZodBoolean>;
779
+ subset: z.ZodOptional<z.ZodBoolean>;
780
+ }, "strip", z.ZodTypeAny, {
781
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
782
+ fallback?: boolean | undefined;
783
+ subset?: boolean | undefined;
784
+ }, {
785
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
786
+ fallback?: boolean | undefined;
787
+ subset?: boolean | undefined;
788
+ }>>>;
789
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
790
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
791
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
792
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
793
+ fallback: z.ZodOptional<z.ZodBoolean>;
794
+ subset: z.ZodOptional<z.ZodBoolean>;
795
+ }, "strip", z.ZodTypeAny, {
796
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
797
+ fallback?: boolean | undefined;
798
+ subset?: boolean | undefined;
799
+ }, {
800
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
801
+ fallback?: boolean | undefined;
802
+ subset?: boolean | undefined;
803
+ }>>>;
804
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
805
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
806
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
807
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
808
+ fallback: z.ZodOptional<z.ZodBoolean>;
809
+ subset: z.ZodOptional<z.ZodBoolean>;
810
+ }, "strip", z.ZodTypeAny, {
811
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
812
+ fallback?: boolean | undefined;
813
+ subset?: boolean | undefined;
814
+ }, {
815
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
816
+ fallback?: boolean | undefined;
817
+ subset?: boolean | undefined;
818
+ }>>>;
819
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
820
+ }, z.ZodTypeAny, "passthrough">>>;
3360
821
  template: z.ZodObject<{
3361
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
822
+ schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
823
+ type: z.ZodString;
824
+ position: z.ZodObject<{
825
+ x: z.ZodNumber;
826
+ y: z.ZodNumber;
827
+ }, "strip", z.ZodTypeAny, {
828
+ x: number;
829
+ y: number;
830
+ }, {
831
+ x: number;
832
+ y: number;
833
+ }>;
834
+ width: z.ZodNumber;
835
+ height: z.ZodNumber;
836
+ rotate: z.ZodOptional<z.ZodNumber>;
837
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
838
+ type: z.ZodString;
839
+ position: z.ZodObject<{
840
+ x: z.ZodNumber;
841
+ y: z.ZodNumber;
842
+ }, "strip", z.ZodTypeAny, {
843
+ x: number;
844
+ y: number;
845
+ }, {
846
+ x: number;
847
+ y: number;
848
+ }>;
849
+ width: z.ZodNumber;
3362
850
  height: z.ZodNumber;
851
+ rotate: z.ZodOptional<z.ZodNumber>;
852
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
853
+ type: z.ZodString;
854
+ position: z.ZodObject<{
855
+ x: z.ZodNumber;
856
+ y: z.ZodNumber;
857
+ }, "strip", z.ZodTypeAny, {
858
+ x: number;
859
+ y: number;
860
+ }, {
861
+ x: number;
862
+ y: number;
863
+ }>;
864
+ width: z.ZodNumber;
865
+ height: z.ZodNumber;
866
+ rotate: z.ZodOptional<z.ZodNumber>;
867
+ }, z.ZodTypeAny, "passthrough">>>, "many">;
868
+ basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
869
+ sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
870
+ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
871
+ }, "strip", z.ZodTypeAny, {
872
+ schemas: Record<string, z.objectOutputType<{
873
+ type: z.ZodString;
874
+ position: z.ZodObject<{
875
+ x: z.ZodNumber;
876
+ y: z.ZodNumber;
877
+ }, "strip", z.ZodTypeAny, {
878
+ x: number;
879
+ y: number;
880
+ }, {
881
+ x: number;
882
+ y: number;
883
+ }>;
3363
884
  width: z.ZodNumber;
885
+ height: z.ZodNumber;
886
+ rotate: z.ZodOptional<z.ZodNumber>;
887
+ }, z.ZodTypeAny, "passthrough">>[];
888
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
889
+ sampledata?: Record<string, string>[] | undefined;
890
+ columns?: string[] | undefined;
891
+ }, {
892
+ schemas: Record<string, z.objectInputType<{
893
+ type: z.ZodString;
3364
894
  position: z.ZodObject<{
3365
895
  x: z.ZodNumber;
3366
896
  y: z.ZodNumber;
@@ -3371,76 +901,33 @@ export declare const DesignerReactProps: z.ZodObject<{
3371
901
  x: number;
3372
902
  y: number;
3373
903
  }>;
3374
- rotate: z.ZodOptional<z.ZodNumber>;
3375
- type: z.ZodLiteral<"text">;
3376
- alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
3377
- verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
3378
- fontSize: z.ZodOptional<z.ZodNumber>;
3379
- fontName: z.ZodOptional<z.ZodString>;
3380
- fontColor: z.ZodOptional<z.ZodString>;
3381
- backgroundColor: z.ZodOptional<z.ZodString>;
3382
- characterSpacing: z.ZodOptional<z.ZodNumber>;
3383
- lineHeight: z.ZodOptional<z.ZodNumber>;
3384
- dynamicFontSize: z.ZodOptional<z.ZodObject<{
3385
- max: z.ZodNumber;
3386
- min: z.ZodNumber;
3387
- fit: z.ZodOptional<z.ZodString>;
3388
- }, "strip", z.ZodTypeAny, {
3389
- max: number;
3390
- min: number;
3391
- fit?: string | undefined;
3392
- }, {
3393
- max: number;
3394
- min: number;
3395
- fit?: string | undefined;
3396
- }>>;
3397
- }, "strip", z.ZodTypeAny, {
3398
- type: "text";
3399
- height: number;
3400
- width: number;
3401
- position: {
3402
- x: number;
3403
- y: number;
3404
- };
3405
- rotate?: number | undefined;
3406
- alignment?: "center" | "left" | "right" | undefined;
3407
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3408
- fontSize?: number | undefined;
3409
- fontName?: string | undefined;
3410
- fontColor?: string | undefined;
3411
- backgroundColor?: string | undefined;
3412
- characterSpacing?: number | undefined;
3413
- lineHeight?: number | undefined;
3414
- dynamicFontSize?: {
3415
- max: number;
3416
- min: number;
3417
- fit?: string | undefined;
3418
- } | undefined;
3419
- }, {
3420
- type: "text";
3421
- height: number;
3422
- width: number;
3423
- position: {
3424
- x: number;
3425
- y: number;
3426
- };
3427
- rotate?: number | undefined;
3428
- alignment?: "center" | "left" | "right" | undefined;
3429
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3430
- fontSize?: number | undefined;
3431
- fontName?: string | undefined;
3432
- fontColor?: string | undefined;
3433
- backgroundColor?: string | undefined;
3434
- characterSpacing?: number | undefined;
3435
- lineHeight?: number | undefined;
3436
- dynamicFontSize?: {
3437
- max: number;
3438
- min: number;
3439
- fit?: string | undefined;
3440
- } | undefined;
3441
- }>, z.ZodObject<{
3442
- height: z.ZodNumber;
3443
904
  width: z.ZodNumber;
905
+ height: z.ZodNumber;
906
+ rotate: z.ZodOptional<z.ZodNumber>;
907
+ }, z.ZodTypeAny, "passthrough">>[];
908
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
909
+ sampledata?: Record<string, string>[] | undefined;
910
+ columns?: string[] | undefined;
911
+ }>;
912
+ plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
913
+ ui: z.ZodAny;
914
+ pdf: z.ZodAny;
915
+ propPanel: z.ZodAny;
916
+ }, "strip", z.ZodTypeAny, {
917
+ ui?: any;
918
+ pdf?: any;
919
+ propPanel?: any;
920
+ }, {
921
+ ui?: any;
922
+ pdf?: any;
923
+ propPanel?: any;
924
+ }>>>;
925
+ domContainer: z.ZodType<HTMLElement, z.ZodTypeDef, HTMLElement>;
926
+ inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
927
+ }, "strict", z.ZodTypeAny, {
928
+ template: {
929
+ schemas: Record<string, z.objectOutputType<{
930
+ type: z.ZodString;
3444
931
  position: z.ZodObject<{
3445
932
  x: z.ZodNumber;
3446
933
  y: z.ZodNumber;
@@ -3451,29 +938,41 @@ export declare const DesignerReactProps: z.ZodObject<{
3451
938
  x: number;
3452
939
  y: number;
3453
940
  }>;
941
+ width: z.ZodNumber;
942
+ height: z.ZodNumber;
3454
943
  rotate: z.ZodOptional<z.ZodNumber>;
3455
- type: z.ZodLiteral<"image">;
944
+ }, z.ZodTypeAny, "passthrough">>[];
945
+ basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
946
+ sampledata?: Record<string, string>[] | undefined;
947
+ columns?: string[] | undefined;
948
+ };
949
+ inputs: Record<string, string>[];
950
+ domContainer: HTMLElement;
951
+ options?: z.objectOutputType<{
952
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
953
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
954
+ fallback: z.ZodOptional<z.ZodBoolean>;
955
+ subset: z.ZodOptional<z.ZodBoolean>;
3456
956
  }, "strip", z.ZodTypeAny, {
3457
- type: "image";
3458
- height: number;
3459
- width: number;
3460
- position: {
3461
- x: number;
3462
- y: number;
3463
- };
3464
- rotate?: number | undefined;
957
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
958
+ fallback?: boolean | undefined;
959
+ subset?: boolean | undefined;
3465
960
  }, {
3466
- type: "image";
3467
- height: number;
3468
- width: number;
3469
- position: {
3470
- x: number;
3471
- y: number;
3472
- };
3473
- rotate?: number | undefined;
3474
- }>, z.ZodObject<{
3475
- height: z.ZodNumber;
3476
- width: z.ZodNumber;
961
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
962
+ fallback?: boolean | undefined;
963
+ subset?: boolean | undefined;
964
+ }>>>;
965
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
966
+ }, z.ZodTypeAny, "passthrough"> | undefined;
967
+ plugins?: Record<string, {
968
+ ui?: any;
969
+ pdf?: any;
970
+ propPanel?: any;
971
+ }> | undefined;
972
+ }, {
973
+ template: {
974
+ schemas: Record<string, z.objectInputType<{
975
+ type: z.ZodString;
3477
976
  position: z.ZodObject<{
3478
977
  x: z.ZodNumber;
3479
978
  y: z.ZodNumber;
@@ -3484,136 +983,39 @@ export declare const DesignerReactProps: z.ZodObject<{
3484
983
  x: number;
3485
984
  y: number;
3486
985
  }>;
986
+ width: z.ZodNumber;
987
+ height: z.ZodNumber;
3487
988
  rotate: z.ZodOptional<z.ZodNumber>;
3488
- type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
3489
- backgroundcolor: z.ZodOptional<z.ZodString>;
3490
- barcolor: z.ZodOptional<z.ZodString>;
3491
- textcolor: z.ZodOptional<z.ZodString>;
3492
- }, "strip", z.ZodTypeAny, {
3493
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
3494
- height: number;
3495
- width: number;
3496
- position: {
3497
- x: number;
3498
- y: number;
3499
- };
3500
- rotate?: number | undefined;
3501
- backgroundcolor?: string | undefined;
3502
- barcolor?: string | undefined;
3503
- textcolor?: string | undefined;
3504
- }, {
3505
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
3506
- height: number;
3507
- width: number;
3508
- position: {
3509
- x: number;
3510
- y: number;
3511
- };
3512
- rotate?: number | undefined;
3513
- backgroundcolor?: string | undefined;
3514
- barcolor?: string | undefined;
3515
- textcolor?: string | undefined;
3516
- }>]>>, "many">;
3517
- basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
3518
- sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
3519
- columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3520
- }, "strip", z.ZodTypeAny, {
3521
- schemas: Record<string, {
3522
- type: "text";
3523
- height: number;
3524
- width: number;
3525
- position: {
3526
- x: number;
3527
- y: number;
3528
- };
3529
- rotate?: number | undefined;
3530
- alignment?: "center" | "left" | "right" | undefined;
3531
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3532
- fontSize?: number | undefined;
3533
- fontName?: string | undefined;
3534
- fontColor?: string | undefined;
3535
- backgroundColor?: string | undefined;
3536
- characterSpacing?: number | undefined;
3537
- lineHeight?: number | undefined;
3538
- dynamicFontSize?: {
3539
- max: number;
3540
- min: number;
3541
- fit?: string | undefined;
3542
- } | undefined;
3543
- } | {
3544
- type: "image";
3545
- height: number;
3546
- width: number;
3547
- position: {
3548
- x: number;
3549
- y: number;
3550
- };
3551
- rotate?: number | undefined;
3552
- } | {
3553
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
3554
- height: number;
3555
- width: number;
3556
- position: {
3557
- x: number;
3558
- y: number;
3559
- };
3560
- rotate?: number | undefined;
3561
- backgroundcolor?: string | undefined;
3562
- barcolor?: string | undefined;
3563
- textcolor?: string | undefined;
3564
- }>[];
3565
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3566
- sampledata?: Record<string, string>[] | undefined;
3567
- columns?: string[] | undefined;
3568
- }, {
3569
- schemas: Record<string, {
3570
- type: "text";
3571
- height: number;
3572
- width: number;
3573
- position: {
3574
- x: number;
3575
- y: number;
3576
- };
3577
- rotate?: number | undefined;
3578
- alignment?: "center" | "left" | "right" | undefined;
3579
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3580
- fontSize?: number | undefined;
3581
- fontName?: string | undefined;
3582
- fontColor?: string | undefined;
3583
- backgroundColor?: string | undefined;
3584
- characterSpacing?: number | undefined;
3585
- lineHeight?: number | undefined;
3586
- dynamicFontSize?: {
3587
- max: number;
3588
- min: number;
3589
- fit?: string | undefined;
3590
- } | undefined;
3591
- } | {
3592
- type: "image";
3593
- height: number;
3594
- width: number;
3595
- position: {
3596
- x: number;
3597
- y: number;
3598
- };
3599
- rotate?: number | undefined;
3600
- } | {
3601
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
3602
- height: number;
3603
- width: number;
3604
- position: {
3605
- x: number;
3606
- y: number;
3607
- };
3608
- rotate?: number | undefined;
3609
- backgroundcolor?: string | undefined;
3610
- barcolor?: string | undefined;
3611
- textcolor?: string | undefined;
3612
- }>[];
989
+ }, z.ZodTypeAny, "passthrough">>[];
3613
990
  basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3614
991
  sampledata?: Record<string, string>[] | undefined;
3615
992
  columns?: string[] | undefined;
3616
- }>;
993
+ };
994
+ inputs: Record<string, string>[];
995
+ domContainer: HTMLElement;
996
+ options?: z.objectInputType<{
997
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
998
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
999
+ fallback: z.ZodOptional<z.ZodBoolean>;
1000
+ subset: z.ZodOptional<z.ZodBoolean>;
1001
+ }, "strip", z.ZodTypeAny, {
1002
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1003
+ fallback?: boolean | undefined;
1004
+ subset?: boolean | undefined;
1005
+ }, {
1006
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1007
+ fallback?: boolean | undefined;
1008
+ subset?: boolean | undefined;
1009
+ }>>>;
1010
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
1011
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1012
+ plugins?: Record<string, {
1013
+ ui?: any;
1014
+ pdf?: any;
1015
+ propPanel?: any;
1016
+ }> | undefined;
1017
+ }>;
1018
+ export declare const DesignerProps: z.ZodObject<{
3617
1019
  options: z.ZodOptional<z.ZodObject<{
3618
1020
  font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3619
1021
  data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
@@ -3629,25 +1031,40 @@ export declare const DesignerReactProps: z.ZodObject<{
3629
1031
  subset?: boolean | undefined;
3630
1032
  }>>>;
3631
1033
  lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
3632
- }, "strip", z.ZodTypeAny, {
3633
- font?: Record<string, {
1034
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1035
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1036
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1037
+ fallback: z.ZodOptional<z.ZodBoolean>;
1038
+ subset: z.ZodOptional<z.ZodBoolean>;
1039
+ }, "strip", z.ZodTypeAny, {
3634
1040
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3635
1041
  fallback?: boolean | undefined;
3636
1042
  subset?: boolean | undefined;
3637
- }> | undefined;
3638
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
3639
- }, {
3640
- font?: Record<string, {
1043
+ }, {
3641
1044
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3642
1045
  fallback?: boolean | undefined;
3643
1046
  subset?: boolean | undefined;
3644
- }> | undefined;
3645
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
3646
- }>>;
3647
- onSaveTemplate: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
3648
- schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
3649
- height: z.ZodNumber;
3650
- width: z.ZodNumber;
1047
+ }>>>;
1048
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
1049
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1050
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1051
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1052
+ fallback: z.ZodOptional<z.ZodBoolean>;
1053
+ subset: z.ZodOptional<z.ZodBoolean>;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1056
+ fallback?: boolean | undefined;
1057
+ subset?: boolean | undefined;
1058
+ }, {
1059
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1060
+ fallback?: boolean | undefined;
1061
+ subset?: boolean | undefined;
1062
+ }>>>;
1063
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
1064
+ }, z.ZodTypeAny, "passthrough">>>;
1065
+ template: z.ZodObject<{
1066
+ schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
1067
+ type: z.ZodString;
3651
1068
  position: z.ZodObject<{
3652
1069
  x: z.ZodNumber;
3653
1070
  y: z.ZodNumber;
@@ -3658,76 +1075,11 @@ export declare const DesignerReactProps: z.ZodObject<{
3658
1075
  x: number;
3659
1076
  y: number;
3660
1077
  }>;
3661
- rotate: z.ZodOptional<z.ZodNumber>;
3662
- type: z.ZodLiteral<"text">;
3663
- alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
3664
- verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
3665
- fontSize: z.ZodOptional<z.ZodNumber>;
3666
- fontName: z.ZodOptional<z.ZodString>;
3667
- fontColor: z.ZodOptional<z.ZodString>;
3668
- backgroundColor: z.ZodOptional<z.ZodString>;
3669
- characterSpacing: z.ZodOptional<z.ZodNumber>;
3670
- lineHeight: z.ZodOptional<z.ZodNumber>;
3671
- dynamicFontSize: z.ZodOptional<z.ZodObject<{
3672
- max: z.ZodNumber;
3673
- min: z.ZodNumber;
3674
- fit: z.ZodOptional<z.ZodString>;
3675
- }, "strip", z.ZodTypeAny, {
3676
- max: number;
3677
- min: number;
3678
- fit?: string | undefined;
3679
- }, {
3680
- max: number;
3681
- min: number;
3682
- fit?: string | undefined;
3683
- }>>;
3684
- }, "strip", z.ZodTypeAny, {
3685
- type: "text";
3686
- height: number;
3687
- width: number;
3688
- position: {
3689
- x: number;
3690
- y: number;
3691
- };
3692
- rotate?: number | undefined;
3693
- alignment?: "center" | "left" | "right" | undefined;
3694
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3695
- fontSize?: number | undefined;
3696
- fontName?: string | undefined;
3697
- fontColor?: string | undefined;
3698
- backgroundColor?: string | undefined;
3699
- characterSpacing?: number | undefined;
3700
- lineHeight?: number | undefined;
3701
- dynamicFontSize?: {
3702
- max: number;
3703
- min: number;
3704
- fit?: string | undefined;
3705
- } | undefined;
3706
- }, {
3707
- type: "text";
3708
- height: number;
3709
- width: number;
3710
- position: {
3711
- x: number;
3712
- y: number;
3713
- };
3714
- rotate?: number | undefined;
3715
- alignment?: "center" | "left" | "right" | undefined;
3716
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3717
- fontSize?: number | undefined;
3718
- fontName?: string | undefined;
3719
- fontColor?: string | undefined;
3720
- backgroundColor?: string | undefined;
3721
- characterSpacing?: number | undefined;
3722
- lineHeight?: number | undefined;
3723
- dynamicFontSize?: {
3724
- max: number;
3725
- min: number;
3726
- fit?: string | undefined;
3727
- } | undefined;
3728
- }>, z.ZodObject<{
3729
- height: z.ZodNumber;
3730
1078
  width: z.ZodNumber;
1079
+ height: z.ZodNumber;
1080
+ rotate: z.ZodOptional<z.ZodNumber>;
1081
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1082
+ type: z.ZodString;
3731
1083
  position: z.ZodObject<{
3732
1084
  x: z.ZodNumber;
3733
1085
  y: z.ZodNumber;
@@ -3738,29 +1090,11 @@ export declare const DesignerReactProps: z.ZodObject<{
3738
1090
  x: number;
3739
1091
  y: number;
3740
1092
  }>;
3741
- rotate: z.ZodOptional<z.ZodNumber>;
3742
- type: z.ZodLiteral<"image">;
3743
- }, "strip", z.ZodTypeAny, {
3744
- type: "image";
3745
- height: number;
3746
- width: number;
3747
- position: {
3748
- x: number;
3749
- y: number;
3750
- };
3751
- rotate?: number | undefined;
3752
- }, {
3753
- type: "image";
3754
- height: number;
3755
- width: number;
3756
- position: {
3757
- x: number;
3758
- y: number;
3759
- };
3760
- rotate?: number | undefined;
3761
- }>, z.ZodObject<{
3762
- height: z.ZodNumber;
3763
1093
  width: z.ZodNumber;
1094
+ height: z.ZodNumber;
1095
+ rotate: z.ZodOptional<z.ZodNumber>;
1096
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1097
+ type: z.ZodString;
3764
1098
  position: z.ZodObject<{
3765
1099
  x: z.ZodNumber;
3766
1100
  y: z.ZodNumber;
@@ -3771,366 +1105,154 @@ export declare const DesignerReactProps: z.ZodObject<{
3771
1105
  x: number;
3772
1106
  y: number;
3773
1107
  }>;
1108
+ width: z.ZodNumber;
1109
+ height: z.ZodNumber;
3774
1110
  rotate: z.ZodOptional<z.ZodNumber>;
3775
- type: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
3776
- backgroundcolor: z.ZodOptional<z.ZodString>;
3777
- barcolor: z.ZodOptional<z.ZodString>;
3778
- textcolor: z.ZodOptional<z.ZodString>;
3779
- }, "strip", z.ZodTypeAny, {
3780
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
3781
- height: number;
3782
- width: number;
3783
- position: {
3784
- x: number;
3785
- y: number;
3786
- };
3787
- rotate?: number | undefined;
3788
- backgroundcolor?: string | undefined;
3789
- barcolor?: string | undefined;
3790
- textcolor?: string | undefined;
3791
- }, {
3792
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
3793
- height: number;
3794
- width: number;
3795
- position: {
3796
- x: number;
3797
- y: number;
3798
- };
3799
- rotate?: number | undefined;
3800
- backgroundcolor?: string | undefined;
3801
- barcolor?: string | undefined;
3802
- textcolor?: string | undefined;
3803
- }>]>>, "many">;
1111
+ }, z.ZodTypeAny, "passthrough">>>, "many">;
3804
1112
  basePdf: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
3805
1113
  sampledata: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
3806
1114
  columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3807
1115
  }, "strip", z.ZodTypeAny, {
3808
- schemas: Record<string, {
3809
- type: "text";
3810
- height: number;
3811
- width: number;
3812
- position: {
3813
- x: number;
3814
- y: number;
3815
- };
3816
- rotate?: number | undefined;
3817
- alignment?: "center" | "left" | "right" | undefined;
3818
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3819
- fontSize?: number | undefined;
3820
- fontName?: string | undefined;
3821
- fontColor?: string | undefined;
3822
- backgroundColor?: string | undefined;
3823
- characterSpacing?: number | undefined;
3824
- lineHeight?: number | undefined;
3825
- dynamicFontSize?: {
3826
- max: number;
3827
- min: number;
3828
- fit?: string | undefined;
3829
- } | undefined;
3830
- } | {
3831
- type: "image";
3832
- height: number;
3833
- width: number;
3834
- position: {
1116
+ schemas: Record<string, z.objectOutputType<{
1117
+ type: z.ZodString;
1118
+ position: z.ZodObject<{
1119
+ x: z.ZodNumber;
1120
+ y: z.ZodNumber;
1121
+ }, "strip", z.ZodTypeAny, {
3835
1122
  x: number;
3836
1123
  y: number;
3837
- };
3838
- rotate?: number | undefined;
3839
- } | {
3840
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
3841
- height: number;
3842
- width: number;
3843
- position: {
1124
+ }, {
3844
1125
  x: number;
3845
1126
  y: number;
3846
- };
3847
- rotate?: number | undefined;
3848
- backgroundcolor?: string | undefined;
3849
- barcolor?: string | undefined;
3850
- textcolor?: string | undefined;
3851
- }>[];
1127
+ }>;
1128
+ width: z.ZodNumber;
1129
+ height: z.ZodNumber;
1130
+ rotate: z.ZodOptional<z.ZodNumber>;
1131
+ }, z.ZodTypeAny, "passthrough">>[];
3852
1132
  basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3853
1133
  sampledata?: Record<string, string>[] | undefined;
3854
1134
  columns?: string[] | undefined;
3855
1135
  }, {
3856
- schemas: Record<string, {
3857
- type: "text";
3858
- height: number;
3859
- width: number;
3860
- position: {
3861
- x: number;
3862
- y: number;
3863
- };
3864
- rotate?: number | undefined;
3865
- alignment?: "center" | "left" | "right" | undefined;
3866
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3867
- fontSize?: number | undefined;
3868
- fontName?: string | undefined;
3869
- fontColor?: string | undefined;
3870
- backgroundColor?: string | undefined;
3871
- characterSpacing?: number | undefined;
3872
- lineHeight?: number | undefined;
3873
- dynamicFontSize?: {
3874
- max: number;
3875
- min: number;
3876
- fit?: string | undefined;
3877
- } | undefined;
3878
- } | {
3879
- type: "image";
3880
- height: number;
3881
- width: number;
3882
- position: {
1136
+ schemas: Record<string, z.objectInputType<{
1137
+ type: z.ZodString;
1138
+ position: z.ZodObject<{
1139
+ x: z.ZodNumber;
1140
+ y: z.ZodNumber;
1141
+ }, "strip", z.ZodTypeAny, {
3883
1142
  x: number;
3884
1143
  y: number;
3885
- };
3886
- rotate?: number | undefined;
3887
- } | {
3888
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
3889
- height: number;
3890
- width: number;
3891
- position: {
1144
+ }, {
3892
1145
  x: number;
3893
1146
  y: number;
3894
- };
3895
- rotate?: number | undefined;
3896
- backgroundcolor?: string | undefined;
3897
- barcolor?: string | undefined;
3898
- textcolor?: string | undefined;
3899
- }>[];
1147
+ }>;
1148
+ width: z.ZodNumber;
1149
+ height: z.ZodNumber;
1150
+ rotate: z.ZodOptional<z.ZodNumber>;
1151
+ }, z.ZodTypeAny, "passthrough">>[];
3900
1152
  basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3901
1153
  sampledata?: Record<string, string>[] | undefined;
3902
1154
  columns?: string[] | undefined;
3903
- }>], z.ZodUnknown>, z.ZodVoid>;
3904
- size: z.ZodObject<{
3905
- height: z.ZodNumber;
3906
- width: z.ZodNumber;
1155
+ }>;
1156
+ plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1157
+ ui: z.ZodAny;
1158
+ pdf: z.ZodAny;
1159
+ propPanel: z.ZodAny;
3907
1160
  }, "strip", z.ZodTypeAny, {
3908
- height: number;
3909
- width: number;
1161
+ ui?: any;
1162
+ pdf?: any;
1163
+ propPanel?: any;
3910
1164
  }, {
3911
- height: number;
3912
- width: number;
3913
- }>;
1165
+ ui?: any;
1166
+ pdf?: any;
1167
+ propPanel?: any;
1168
+ }>>>;
1169
+ domContainer: z.ZodType<HTMLElement, z.ZodTypeDef, HTMLElement>;
3914
1170
  }, "strict", z.ZodTypeAny, {
3915
1171
  template: {
3916
- schemas: Record<string, {
3917
- type: "text";
3918
- height: number;
3919
- width: number;
3920
- position: {
3921
- x: number;
3922
- y: number;
3923
- };
3924
- rotate?: number | undefined;
3925
- alignment?: "center" | "left" | "right" | undefined;
3926
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3927
- fontSize?: number | undefined;
3928
- fontName?: string | undefined;
3929
- fontColor?: string | undefined;
3930
- backgroundColor?: string | undefined;
3931
- characterSpacing?: number | undefined;
3932
- lineHeight?: number | undefined;
3933
- dynamicFontSize?: {
3934
- max: number;
3935
- min: number;
3936
- fit?: string | undefined;
3937
- } | undefined;
3938
- } | {
3939
- type: "image";
3940
- height: number;
3941
- width: number;
3942
- position: {
1172
+ schemas: Record<string, z.objectOutputType<{
1173
+ type: z.ZodString;
1174
+ position: z.ZodObject<{
1175
+ x: z.ZodNumber;
1176
+ y: z.ZodNumber;
1177
+ }, "strip", z.ZodTypeAny, {
3943
1178
  x: number;
3944
1179
  y: number;
3945
- };
3946
- rotate?: number | undefined;
3947
- } | {
3948
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
3949
- height: number;
3950
- width: number;
3951
- position: {
1180
+ }, {
3952
1181
  x: number;
3953
1182
  y: number;
3954
- };
3955
- rotate?: number | undefined;
3956
- backgroundcolor?: string | undefined;
3957
- barcolor?: string | undefined;
3958
- textcolor?: string | undefined;
3959
- }>[];
1183
+ }>;
1184
+ width: z.ZodNumber;
1185
+ height: z.ZodNumber;
1186
+ rotate: z.ZodOptional<z.ZodNumber>;
1187
+ }, z.ZodTypeAny, "passthrough">>[];
3960
1188
  basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3961
1189
  sampledata?: Record<string, string>[] | undefined;
3962
1190
  columns?: string[] | undefined;
3963
1191
  };
3964
- size: {
3965
- height: number;
3966
- width: number;
3967
- };
3968
- onSaveTemplate: (args_0: {
3969
- schemas: Record<string, {
3970
- type: "text";
3971
- height: number;
3972
- width: number;
3973
- position: {
3974
- x: number;
3975
- y: number;
3976
- };
3977
- rotate?: number | undefined;
3978
- alignment?: "center" | "left" | "right" | undefined;
3979
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3980
- fontSize?: number | undefined;
3981
- fontName?: string | undefined;
3982
- fontColor?: string | undefined;
3983
- backgroundColor?: string | undefined;
3984
- characterSpacing?: number | undefined;
3985
- lineHeight?: number | undefined;
3986
- dynamicFontSize?: {
3987
- max: number;
3988
- min: number;
3989
- fit?: string | undefined;
3990
- } | undefined;
3991
- } | {
3992
- type: "image";
3993
- height: number;
3994
- width: number;
3995
- position: {
3996
- x: number;
3997
- y: number;
3998
- };
3999
- rotate?: number | undefined;
4000
- } | {
4001
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
4002
- height: number;
4003
- width: number;
4004
- position: {
4005
- x: number;
4006
- y: number;
4007
- };
4008
- rotate?: number | undefined;
4009
- backgroundcolor?: string | undefined;
4010
- barcolor?: string | undefined;
4011
- textcolor?: string | undefined;
4012
- }>[];
4013
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
4014
- sampledata?: Record<string, string>[] | undefined;
4015
- columns?: string[] | undefined;
4016
- }, ...args_1: unknown[]) => void;
4017
- options?: {
4018
- font?: Record<string, {
1192
+ domContainer: HTMLElement;
1193
+ options?: z.objectOutputType<{
1194
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1195
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1196
+ fallback: z.ZodOptional<z.ZodBoolean>;
1197
+ subset: z.ZodOptional<z.ZodBoolean>;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1200
+ fallback?: boolean | undefined;
1201
+ subset?: boolean | undefined;
1202
+ }, {
4019
1203
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
4020
1204
  fallback?: boolean | undefined;
4021
1205
  subset?: boolean | undefined;
4022
- }> | undefined;
4023
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
4024
- } | undefined;
1206
+ }>>>;
1207
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
1208
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1209
+ plugins?: Record<string, {
1210
+ ui?: any;
1211
+ pdf?: any;
1212
+ propPanel?: any;
1213
+ }> | undefined;
4025
1214
  }, {
4026
1215
  template: {
4027
- schemas: Record<string, {
4028
- type: "text";
4029
- height: number;
4030
- width: number;
4031
- position: {
4032
- x: number;
4033
- y: number;
4034
- };
4035
- rotate?: number | undefined;
4036
- alignment?: "center" | "left" | "right" | undefined;
4037
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
4038
- fontSize?: number | undefined;
4039
- fontName?: string | undefined;
4040
- fontColor?: string | undefined;
4041
- backgroundColor?: string | undefined;
4042
- characterSpacing?: number | undefined;
4043
- lineHeight?: number | undefined;
4044
- dynamicFontSize?: {
4045
- max: number;
4046
- min: number;
4047
- fit?: string | undefined;
4048
- } | undefined;
4049
- } | {
4050
- type: "image";
4051
- height: number;
4052
- width: number;
4053
- position: {
1216
+ schemas: Record<string, z.objectInputType<{
1217
+ type: z.ZodString;
1218
+ position: z.ZodObject<{
1219
+ x: z.ZodNumber;
1220
+ y: z.ZodNumber;
1221
+ }, "strip", z.ZodTypeAny, {
4054
1222
  x: number;
4055
1223
  y: number;
4056
- };
4057
- rotate?: number | undefined;
4058
- } | {
4059
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
4060
- height: number;
4061
- width: number;
4062
- position: {
1224
+ }, {
4063
1225
  x: number;
4064
1226
  y: number;
4065
- };
4066
- rotate?: number | undefined;
4067
- backgroundcolor?: string | undefined;
4068
- barcolor?: string | undefined;
4069
- textcolor?: string | undefined;
4070
- }>[];
1227
+ }>;
1228
+ width: z.ZodNumber;
1229
+ height: z.ZodNumber;
1230
+ rotate: z.ZodOptional<z.ZodNumber>;
1231
+ }, z.ZodTypeAny, "passthrough">>[];
4071
1232
  basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
4072
1233
  sampledata?: Record<string, string>[] | undefined;
4073
1234
  columns?: string[] | undefined;
4074
1235
  };
4075
- size: {
4076
- height: number;
4077
- width: number;
4078
- };
4079
- onSaveTemplate: (args_0: {
4080
- schemas: Record<string, {
4081
- type: "text";
4082
- height: number;
4083
- width: number;
4084
- position: {
4085
- x: number;
4086
- y: number;
4087
- };
4088
- rotate?: number | undefined;
4089
- alignment?: "center" | "left" | "right" | undefined;
4090
- verticalAlignment?: "top" | "bottom" | "middle" | undefined;
4091
- fontSize?: number | undefined;
4092
- fontName?: string | undefined;
4093
- fontColor?: string | undefined;
4094
- backgroundColor?: string | undefined;
4095
- characterSpacing?: number | undefined;
4096
- lineHeight?: number | undefined;
4097
- dynamicFontSize?: {
4098
- max: number;
4099
- min: number;
4100
- fit?: string | undefined;
4101
- } | undefined;
4102
- } | {
4103
- type: "image";
4104
- height: number;
4105
- width: number;
4106
- position: {
4107
- x: number;
4108
- y: number;
4109
- };
4110
- rotate?: number | undefined;
4111
- } | {
4112
- type: "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "nw7" | "itf14" | "upca" | "upce" | "gs1datamatrix";
4113
- height: number;
4114
- width: number;
4115
- position: {
4116
- x: number;
4117
- y: number;
4118
- };
4119
- rotate?: number | undefined;
4120
- backgroundcolor?: string | undefined;
4121
- barcolor?: string | undefined;
4122
- textcolor?: string | undefined;
4123
- }>[];
4124
- basePdf: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
4125
- sampledata?: Record<string, string>[] | undefined;
4126
- columns?: string[] | undefined;
4127
- }, ...args_1: unknown[]) => void;
4128
- options?: {
4129
- font?: Record<string, {
1236
+ domContainer: HTMLElement;
1237
+ options?: z.objectInputType<{
1238
+ font: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1239
+ data: z.ZodUnion<[z.ZodString, z.ZodType<ArrayBuffer, z.ZodTypeDef, ArrayBuffer>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>;
1240
+ fallback: z.ZodOptional<z.ZodBoolean>;
1241
+ subset: z.ZodOptional<z.ZodBoolean>;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1244
+ fallback?: boolean | undefined;
1245
+ subset?: boolean | undefined;
1246
+ }, {
4130
1247
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
4131
1248
  fallback?: boolean | undefined;
4132
1249
  subset?: boolean | undefined;
4133
- }> | undefined;
4134
- lang?: "th" | "en" | "ja" | "ar" | "pl" | "it" | undefined;
4135
- } | undefined;
1250
+ }>>>;
1251
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl", "it"]>>;
1252
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1253
+ plugins?: Record<string, {
1254
+ ui?: any;
1255
+ pdf?: any;
1256
+ propPanel?: any;
1257
+ }> | undefined;
4136
1258
  }>;