rtf-codec 4.2.3 → 4.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/codec.d.cts CHANGED
@@ -11,8 +11,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
11
11
  paragraph: z.ZodOptional<z.ZodObject<{
12
12
  alignment: z.ZodOptional<z.ZodEnum<{
13
13
  left: "left";
14
- center: "center";
15
14
  right: "right";
15
+ center: "center";
16
16
  justify: "justify";
17
17
  }>>;
18
18
  list: z.ZodOptional<z.ZodObject<{
@@ -160,8 +160,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
160
160
  paragraph: z.ZodOptional<z.ZodObject<{
161
161
  alignment: z.ZodOptional<z.ZodEnum<{
162
162
  left: "left";
163
- center: "center";
164
163
  right: "right";
164
+ center: "center";
165
165
  justify: "justify";
166
166
  }>>;
167
167
  list: z.ZodOptional<z.ZodObject<{
@@ -314,8 +314,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
314
314
  paragraph: z.ZodOptional<z.ZodObject<{
315
315
  alignment: z.ZodOptional<z.ZodEnum<{
316
316
  left: "left";
317
- center: "center";
318
317
  right: "right";
318
+ center: "center";
319
319
  justify: "justify";
320
320
  }>>;
321
321
  list: z.ZodOptional<z.ZodObject<{
@@ -463,8 +463,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
463
463
  paragraph: z.ZodOptional<z.ZodObject<{
464
464
  alignment: z.ZodOptional<z.ZodEnum<{
465
465
  left: "left";
466
- center: "center";
467
466
  right: "right";
467
+ center: "center";
468
468
  justify: "justify";
469
469
  }>>;
470
470
  list: z.ZodOptional<z.ZodObject<{
@@ -671,8 +671,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
671
671
  paragraph: z.ZodOptional<z.ZodObject<{
672
672
  alignment: z.ZodOptional<z.ZodEnum<{
673
673
  left: "left";
674
- center: "center";
675
674
  right: "right";
675
+ center: "center";
676
676
  justify: "justify";
677
677
  }>>;
678
678
  list: z.ZodOptional<z.ZodObject<{
@@ -1502,8 +1502,8 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1502
1502
  }, z.core.$strip>>;
1503
1503
  alignment: z.ZodOptional<z.ZodEnum<{
1504
1504
  left: "left";
1505
- center: "center";
1506
1505
  right: "right";
1506
+ center: "center";
1507
1507
  justify: "justify";
1508
1508
  }>>;
1509
1509
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -1608,6 +1608,7 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1608
1608
  }, z.core.$strip>>;
1609
1609
  anchorRunIndex: z.ZodOptional<z.ZodNumber>;
1610
1610
  anchorOffset: z.ZodOptional<z.ZodNumber>;
1611
+ caption: z.ZodOptional<z.ZodString>;
1611
1612
  floatPosition: z.ZodOptional<z.ZodObject<{
1612
1613
  horizontal: z.ZodUnion<readonly [z.ZodObject<{
1613
1614
  relativeTo: z.ZodEnum<{
@@ -1644,10 +1645,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1644
1645
  }>;
1645
1646
  align: z.ZodEnum<{
1646
1647
  left: "left";
1647
- center: "center";
1648
1648
  right: "right";
1649
1649
  top: "top";
1650
1650
  bottom: "bottom";
1651
+ center: "center";
1651
1652
  inside: "inside";
1652
1653
  outside: "outside";
1653
1654
  }>;
@@ -1687,10 +1688,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1687
1688
  }>;
1688
1689
  align: z.ZodEnum<{
1689
1690
  left: "left";
1690
- center: "center";
1691
1691
  right: "right";
1692
1692
  top: "top";
1693
1693
  bottom: "bottom";
1694
+ center: "center";
1694
1695
  inside: "inside";
1695
1696
  outside: "outside";
1696
1697
  }>;
@@ -1779,10 +1780,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1779
1780
  endColumn: z.ZodNumber;
1780
1781
  }, z.core.$strip>>;
1781
1782
  type: z.ZodEnum<{
1782
- decimal: "decimal";
1783
- list: "list";
1784
1783
  date: "date";
1785
1784
  custom: "custom";
1785
+ decimal: "decimal";
1786
+ list: "list";
1786
1787
  time: "time";
1787
1788
  whole: "whole";
1788
1789
  textLength: "textLength";
package/dist/codec.d.ts CHANGED
@@ -11,8 +11,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
11
11
  paragraph: z.ZodOptional<z.ZodObject<{
12
12
  alignment: z.ZodOptional<z.ZodEnum<{
13
13
  left: "left";
14
- center: "center";
15
14
  right: "right";
15
+ center: "center";
16
16
  justify: "justify";
17
17
  }>>;
18
18
  list: z.ZodOptional<z.ZodObject<{
@@ -160,8 +160,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
160
160
  paragraph: z.ZodOptional<z.ZodObject<{
161
161
  alignment: z.ZodOptional<z.ZodEnum<{
162
162
  left: "left";
163
- center: "center";
164
163
  right: "right";
164
+ center: "center";
165
165
  justify: "justify";
166
166
  }>>;
167
167
  list: z.ZodOptional<z.ZodObject<{
@@ -314,8 +314,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
314
314
  paragraph: z.ZodOptional<z.ZodObject<{
315
315
  alignment: z.ZodOptional<z.ZodEnum<{
316
316
  left: "left";
317
- center: "center";
318
317
  right: "right";
318
+ center: "center";
319
319
  justify: "justify";
320
320
  }>>;
321
321
  list: z.ZodOptional<z.ZodObject<{
@@ -463,8 +463,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
463
463
  paragraph: z.ZodOptional<z.ZodObject<{
464
464
  alignment: z.ZodOptional<z.ZodEnum<{
465
465
  left: "left";
466
- center: "center";
467
466
  right: "right";
467
+ center: "center";
468
468
  justify: "justify";
469
469
  }>>;
470
470
  list: z.ZodOptional<z.ZodObject<{
@@ -671,8 +671,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
671
671
  paragraph: z.ZodOptional<z.ZodObject<{
672
672
  alignment: z.ZodOptional<z.ZodEnum<{
673
673
  left: "left";
674
- center: "center";
675
674
  right: "right";
675
+ center: "center";
676
676
  justify: "justify";
677
677
  }>>;
678
678
  list: z.ZodOptional<z.ZodObject<{
@@ -1502,8 +1502,8 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1502
1502
  }, z.core.$strip>>;
1503
1503
  alignment: z.ZodOptional<z.ZodEnum<{
1504
1504
  left: "left";
1505
- center: "center";
1506
1505
  right: "right";
1506
+ center: "center";
1507
1507
  justify: "justify";
1508
1508
  }>>;
1509
1509
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -1608,6 +1608,7 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1608
1608
  }, z.core.$strip>>;
1609
1609
  anchorRunIndex: z.ZodOptional<z.ZodNumber>;
1610
1610
  anchorOffset: z.ZodOptional<z.ZodNumber>;
1611
+ caption: z.ZodOptional<z.ZodString>;
1611
1612
  floatPosition: z.ZodOptional<z.ZodObject<{
1612
1613
  horizontal: z.ZodUnion<readonly [z.ZodObject<{
1613
1614
  relativeTo: z.ZodEnum<{
@@ -1644,10 +1645,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1644
1645
  }>;
1645
1646
  align: z.ZodEnum<{
1646
1647
  left: "left";
1647
- center: "center";
1648
1648
  right: "right";
1649
1649
  top: "top";
1650
1650
  bottom: "bottom";
1651
+ center: "center";
1651
1652
  inside: "inside";
1652
1653
  outside: "outside";
1653
1654
  }>;
@@ -1687,10 +1688,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1687
1688
  }>;
1688
1689
  align: z.ZodEnum<{
1689
1690
  left: "left";
1690
- center: "center";
1691
1691
  right: "right";
1692
1692
  top: "top";
1693
1693
  bottom: "bottom";
1694
+ center: "center";
1694
1695
  inside: "inside";
1695
1696
  outside: "outside";
1696
1697
  }>;
@@ -1779,10 +1780,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1779
1780
  endColumn: z.ZodNumber;
1780
1781
  }, z.core.$strip>>;
1781
1782
  type: z.ZodEnum<{
1782
- decimal: "decimal";
1783
- list: "list";
1784
1783
  date: "date";
1785
1784
  custom: "custom";
1785
+ decimal: "decimal";
1786
+ list: "list";
1786
1787
  time: "time";
1787
1788
  whole: "whole";
1788
1789
  textLength: "textLength";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rtf-codec",
3
- "version": "4.2.3",
3
+ "version": "4.2.5",
4
4
  "description": "Hand-written Rich Text Format (RTF 1.9.1) reader and writer against the shared document-schema.js content pivot.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -82,8 +82,8 @@
82
82
  "license": "MIT",
83
83
  "packageManager": "pnpm@11.6.0",
84
84
  "dependencies": {
85
- "archive-codec": "1.10.5",
86
- "document-schema.js": "7.8.0",
85
+ "archive-codec": "1.10.7",
86
+ "document-schema.js": "7.9.1",
87
87
  "zod": "4.4.3"
88
88
  },
89
89
  "devDependencies": {