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