documents.js 1.33.4 → 1.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.cjs +748 -714
- package/dist/index.d.cts +15 -12
- package/dist/index.d.ts +15 -12
- package/dist/index.js +748 -714
- package/package.json +4 -2
package/dist/index.d.cts
CHANGED
|
@@ -265,12 +265,12 @@ declare const LayoutTextSchema: z.ZodObject<{
|
|
|
265
265
|
font: z.ZodObject<{
|
|
266
266
|
family: z.ZodString;
|
|
267
267
|
weight: z.ZodEnum<{
|
|
268
|
-
normal: "normal";
|
|
269
268
|
bold: "bold";
|
|
269
|
+
normal: "normal";
|
|
270
270
|
}>;
|
|
271
271
|
style: z.ZodEnum<{
|
|
272
|
-
normal: "normal";
|
|
273
272
|
italic: "italic";
|
|
273
|
+
normal: "normal";
|
|
274
274
|
}>;
|
|
275
275
|
}, z.core.$strip>;
|
|
276
276
|
sizePt: z.ZodNumber;
|
|
@@ -367,12 +367,12 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
367
367
|
font: z.ZodObject<{
|
|
368
368
|
family: z.ZodString;
|
|
369
369
|
weight: z.ZodEnum<{
|
|
370
|
-
normal: "normal";
|
|
371
370
|
bold: "bold";
|
|
371
|
+
normal: "normal";
|
|
372
372
|
}>;
|
|
373
373
|
style: z.ZodEnum<{
|
|
374
|
-
normal: "normal";
|
|
375
374
|
italic: "italic";
|
|
375
|
+
normal: "normal";
|
|
376
376
|
}>;
|
|
377
377
|
}, z.core.$strip>;
|
|
378
378
|
sizePt: z.ZodNumber;
|
|
@@ -462,12 +462,12 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
462
462
|
font: z.ZodObject<{
|
|
463
463
|
family: z.ZodString;
|
|
464
464
|
weight: z.ZodEnum<{
|
|
465
|
-
normal: "normal";
|
|
466
465
|
bold: "bold";
|
|
466
|
+
normal: "normal";
|
|
467
467
|
}>;
|
|
468
468
|
style: z.ZodEnum<{
|
|
469
|
-
normal: "normal";
|
|
470
469
|
italic: "italic";
|
|
470
|
+
normal: "normal";
|
|
471
471
|
}>;
|
|
472
472
|
}, z.core.$strip>;
|
|
473
473
|
sizePt: z.ZodNumber;
|
|
@@ -545,6 +545,7 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
545
545
|
widthPt: z.ZodNumber;
|
|
546
546
|
heightPt: z.ZodNumber;
|
|
547
547
|
}, z.core.$strip>], "kind">>;
|
|
548
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
548
549
|
}, z.core.$strip>;
|
|
549
550
|
type LayoutPage = z.infer<typeof LayoutPageSchema>;
|
|
550
551
|
declare const LayoutImageAssetSchema: z.ZodObject<{
|
|
@@ -591,12 +592,12 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
591
592
|
font: z.ZodObject<{
|
|
592
593
|
family: z.ZodString;
|
|
593
594
|
weight: z.ZodEnum<{
|
|
594
|
-
normal: "normal";
|
|
595
595
|
bold: "bold";
|
|
596
|
+
normal: "normal";
|
|
596
597
|
}>;
|
|
597
598
|
style: z.ZodEnum<{
|
|
598
|
-
normal: "normal";
|
|
599
599
|
italic: "italic";
|
|
600
|
+
normal: "normal";
|
|
600
601
|
}>;
|
|
601
602
|
}, z.core.$strip>;
|
|
602
603
|
sizePt: z.ZodNumber;
|
|
@@ -674,6 +675,7 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
674
675
|
widthPt: z.ZodNumber;
|
|
675
676
|
heightPt: z.ZodNumber;
|
|
676
677
|
}, z.core.$strip>], "kind">>;
|
|
678
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
677
679
|
}, z.core.$strip>>;
|
|
678
680
|
images: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
679
681
|
format: z.ZodEnum<{
|
|
@@ -694,12 +696,12 @@ declare function flipY(box: Box$1, containerHeightPt: number): Box$1;
|
|
|
694
696
|
declare const LayoutFontSchema: z.ZodObject<{
|
|
695
697
|
family: z.ZodString;
|
|
696
698
|
weight: z.ZodEnum<{
|
|
697
|
-
normal: "normal";
|
|
698
699
|
bold: "bold";
|
|
700
|
+
normal: "normal";
|
|
699
701
|
}>;
|
|
700
702
|
style: z.ZodEnum<{
|
|
701
|
-
normal: "normal";
|
|
702
703
|
italic: "italic";
|
|
704
|
+
normal: "normal";
|
|
703
705
|
}>;
|
|
704
706
|
}, z.core.$strip>;
|
|
705
707
|
type LayoutFont = z.infer<typeof LayoutFontSchema>;
|
|
@@ -991,12 +993,12 @@ declare const pdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
991
993
|
font: z.ZodObject<{
|
|
992
994
|
family: z.ZodString;
|
|
993
995
|
weight: z.ZodEnum<{
|
|
994
|
-
normal: "normal";
|
|
995
996
|
bold: "bold";
|
|
997
|
+
normal: "normal";
|
|
996
998
|
}>;
|
|
997
999
|
style: z.ZodEnum<{
|
|
998
|
-
normal: "normal";
|
|
999
1000
|
italic: "italic";
|
|
1001
|
+
normal: "normal";
|
|
1000
1002
|
}>;
|
|
1001
1003
|
}, z.core.$strip>;
|
|
1002
1004
|
sizePt: z.ZodNumber;
|
|
@@ -1074,6 +1076,7 @@ declare const pdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
1074
1076
|
widthPt: z.ZodNumber;
|
|
1075
1077
|
heightPt: z.ZodNumber;
|
|
1076
1078
|
}, z.core.$strip>], "kind">>;
|
|
1079
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1077
1080
|
}, z.core.$strip>>;
|
|
1078
1081
|
images: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1079
1082
|
format: z.ZodEnum<{
|
package/dist/index.d.ts
CHANGED
|
@@ -265,12 +265,12 @@ declare const LayoutTextSchema: z.ZodObject<{
|
|
|
265
265
|
font: z.ZodObject<{
|
|
266
266
|
family: z.ZodString;
|
|
267
267
|
weight: z.ZodEnum<{
|
|
268
|
-
normal: "normal";
|
|
269
268
|
bold: "bold";
|
|
269
|
+
normal: "normal";
|
|
270
270
|
}>;
|
|
271
271
|
style: z.ZodEnum<{
|
|
272
|
-
normal: "normal";
|
|
273
272
|
italic: "italic";
|
|
273
|
+
normal: "normal";
|
|
274
274
|
}>;
|
|
275
275
|
}, z.core.$strip>;
|
|
276
276
|
sizePt: z.ZodNumber;
|
|
@@ -367,12 +367,12 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
367
367
|
font: z.ZodObject<{
|
|
368
368
|
family: z.ZodString;
|
|
369
369
|
weight: z.ZodEnum<{
|
|
370
|
-
normal: "normal";
|
|
371
370
|
bold: "bold";
|
|
371
|
+
normal: "normal";
|
|
372
372
|
}>;
|
|
373
373
|
style: z.ZodEnum<{
|
|
374
|
-
normal: "normal";
|
|
375
374
|
italic: "italic";
|
|
375
|
+
normal: "normal";
|
|
376
376
|
}>;
|
|
377
377
|
}, z.core.$strip>;
|
|
378
378
|
sizePt: z.ZodNumber;
|
|
@@ -462,12 +462,12 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
462
462
|
font: z.ZodObject<{
|
|
463
463
|
family: z.ZodString;
|
|
464
464
|
weight: z.ZodEnum<{
|
|
465
|
-
normal: "normal";
|
|
466
465
|
bold: "bold";
|
|
466
|
+
normal: "normal";
|
|
467
467
|
}>;
|
|
468
468
|
style: z.ZodEnum<{
|
|
469
|
-
normal: "normal";
|
|
470
469
|
italic: "italic";
|
|
470
|
+
normal: "normal";
|
|
471
471
|
}>;
|
|
472
472
|
}, z.core.$strip>;
|
|
473
473
|
sizePt: z.ZodNumber;
|
|
@@ -545,6 +545,7 @@ declare const LayoutPageSchema: z.ZodObject<{
|
|
|
545
545
|
widthPt: z.ZodNumber;
|
|
546
546
|
heightPt: z.ZodNumber;
|
|
547
547
|
}, z.core.$strip>], "kind">>;
|
|
548
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
548
549
|
}, z.core.$strip>;
|
|
549
550
|
type LayoutPage = z.infer<typeof LayoutPageSchema>;
|
|
550
551
|
declare const LayoutImageAssetSchema: z.ZodObject<{
|
|
@@ -591,12 +592,12 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
591
592
|
font: z.ZodObject<{
|
|
592
593
|
family: z.ZodString;
|
|
593
594
|
weight: z.ZodEnum<{
|
|
594
|
-
normal: "normal";
|
|
595
595
|
bold: "bold";
|
|
596
|
+
normal: "normal";
|
|
596
597
|
}>;
|
|
597
598
|
style: z.ZodEnum<{
|
|
598
|
-
normal: "normal";
|
|
599
599
|
italic: "italic";
|
|
600
|
+
normal: "normal";
|
|
600
601
|
}>;
|
|
601
602
|
}, z.core.$strip>;
|
|
602
603
|
sizePt: z.ZodNumber;
|
|
@@ -674,6 +675,7 @@ declare const LayoutDocumentSchema: z.ZodObject<{
|
|
|
674
675
|
widthPt: z.ZodNumber;
|
|
675
676
|
heightPt: z.ZodNumber;
|
|
676
677
|
}, z.core.$strip>], "kind">>;
|
|
678
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
677
679
|
}, z.core.$strip>>;
|
|
678
680
|
images: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
679
681
|
format: z.ZodEnum<{
|
|
@@ -694,12 +696,12 @@ declare function flipY(box: Box$1, containerHeightPt: number): Box$1;
|
|
|
694
696
|
declare const LayoutFontSchema: z.ZodObject<{
|
|
695
697
|
family: z.ZodString;
|
|
696
698
|
weight: z.ZodEnum<{
|
|
697
|
-
normal: "normal";
|
|
698
699
|
bold: "bold";
|
|
700
|
+
normal: "normal";
|
|
699
701
|
}>;
|
|
700
702
|
style: z.ZodEnum<{
|
|
701
|
-
normal: "normal";
|
|
702
703
|
italic: "italic";
|
|
704
|
+
normal: "normal";
|
|
703
705
|
}>;
|
|
704
706
|
}, z.core.$strip>;
|
|
705
707
|
type LayoutFont = z.infer<typeof LayoutFontSchema>;
|
|
@@ -991,12 +993,12 @@ declare const pdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
991
993
|
font: z.ZodObject<{
|
|
992
994
|
family: z.ZodString;
|
|
993
995
|
weight: z.ZodEnum<{
|
|
994
|
-
normal: "normal";
|
|
995
996
|
bold: "bold";
|
|
997
|
+
normal: "normal";
|
|
996
998
|
}>;
|
|
997
999
|
style: z.ZodEnum<{
|
|
998
|
-
normal: "normal";
|
|
999
1000
|
italic: "italic";
|
|
1001
|
+
normal: "normal";
|
|
1000
1002
|
}>;
|
|
1001
1003
|
}, z.core.$strip>;
|
|
1002
1004
|
sizePt: z.ZodNumber;
|
|
@@ -1074,6 +1076,7 @@ declare const pdfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
|
|
|
1074
1076
|
widthPt: z.ZodNumber;
|
|
1075
1077
|
heightPt: z.ZodNumber;
|
|
1076
1078
|
}, z.core.$strip>], "kind">>;
|
|
1079
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1077
1080
|
}, z.core.$strip>>;
|
|
1078
1081
|
images: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1079
1082
|
format: z.ZodEnum<{
|