rtf-codec 4.1.4 → 4.1.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
- right: "right";
15
14
  center: "center";
15
+ right: "right";
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
- right: "right";
164
163
  center: "center";
164
+ right: "right";
165
165
  justify: "justify";
166
166
  }>>;
167
167
  list: z.ZodOptional<z.ZodObject<{
@@ -309,8 +309,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
309
309
  paragraph: z.ZodOptional<z.ZodObject<{
310
310
  alignment: z.ZodOptional<z.ZodEnum<{
311
311
  left: "left";
312
- right: "right";
313
312
  center: "center";
313
+ right: "right";
314
314
  justify: "justify";
315
315
  }>>;
316
316
  list: z.ZodOptional<z.ZodObject<{
@@ -458,8 +458,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
458
458
  paragraph: z.ZodOptional<z.ZodObject<{
459
459
  alignment: z.ZodOptional<z.ZodEnum<{
460
460
  left: "left";
461
- right: "right";
462
461
  center: "center";
462
+ right: "right";
463
463
  justify: "justify";
464
464
  }>>;
465
465
  list: z.ZodOptional<z.ZodObject<{
@@ -639,8 +639,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
639
639
  paragraph: z.ZodOptional<z.ZodObject<{
640
640
  alignment: z.ZodOptional<z.ZodEnum<{
641
641
  left: "left";
642
- right: "right";
643
642
  center: "center";
643
+ right: "right";
644
644
  justify: "justify";
645
645
  }>>;
646
646
  list: z.ZodOptional<z.ZodObject<{
@@ -798,6 +798,16 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
798
798
  evenPage: "evenPage";
799
799
  oddPage: "oddPage";
800
800
  }>>;
801
+ headers: z.ZodOptional<z.ZodObject<{
802
+ default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
803
+ even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
804
+ first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
805
+ }, z.core.$strip>>;
806
+ footers: z.ZodOptional<z.ZodObject<{
807
+ default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
808
+ even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
809
+ first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
810
+ }, z.core.$strip>>;
801
811
  source: z.ZodOptional<z.ZodObject<{
802
812
  format: z.ZodEnum<{
803
813
  docx: "docx";
@@ -1285,8 +1295,8 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1285
1295
  }, z.core.$strip>>;
1286
1296
  alignment: z.ZodOptional<z.ZodEnum<{
1287
1297
  left: "left";
1288
- right: "right";
1289
1298
  center: "center";
1299
+ right: "right";
1290
1300
  justify: "justify";
1291
1301
  }>>;
1292
1302
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -1390,10 +1400,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1390
1400
  }>;
1391
1401
  align: z.ZodEnum<{
1392
1402
  left: "left";
1403
+ center: "center";
1393
1404
  right: "right";
1394
1405
  top: "top";
1395
1406
  bottom: "bottom";
1396
- center: "center";
1397
1407
  inside: "inside";
1398
1408
  outside: "outside";
1399
1409
  }>;
@@ -1433,10 +1443,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1433
1443
  }>;
1434
1444
  align: z.ZodEnum<{
1435
1445
  left: "left";
1446
+ center: "center";
1436
1447
  right: "right";
1437
1448
  top: "top";
1438
1449
  bottom: "bottom";
1439
- center: "center";
1440
1450
  inside: "inside";
1441
1451
  outside: "outside";
1442
1452
  }>;
@@ -1525,10 +1535,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1525
1535
  endColumn: z.ZodNumber;
1526
1536
  }, z.core.$strip>>;
1527
1537
  type: z.ZodEnum<{
1528
- date: "date";
1529
- custom: "custom";
1530
1538
  decimal: "decimal";
1531
1539
  list: "list";
1540
+ date: "date";
1541
+ custom: "custom";
1532
1542
  time: "time";
1533
1543
  whole: "whole";
1534
1544
  textLength: "textLength";
@@ -2000,11 +2010,11 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2000
2010
  stops: z.ZodArray<z.ZodObject<{
2001
2011
  value: z.ZodObject<{
2002
2012
  type: z.ZodEnum<{
2003
- formula: "formula";
2004
- percent: "percent";
2005
2013
  num: "num";
2006
- max: "max";
2007
2014
  min: "min";
2015
+ max: "max";
2016
+ formula: "formula";
2017
+ percent: "percent";
2008
2018
  percentile: "percentile";
2009
2019
  }>;
2010
2020
  value: z.ZodOptional<z.ZodString>;
@@ -2047,22 +2057,22 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2047
2057
  }, z.core.$strip>, z.ZodObject<{
2048
2058
  min: z.ZodObject<{
2049
2059
  type: z.ZodEnum<{
2050
- formula: "formula";
2051
- percent: "percent";
2052
2060
  num: "num";
2053
- max: "max";
2054
2061
  min: "min";
2062
+ max: "max";
2063
+ formula: "formula";
2064
+ percent: "percent";
2055
2065
  percentile: "percentile";
2056
2066
  }>;
2057
2067
  value: z.ZodOptional<z.ZodString>;
2058
2068
  }, z.core.$strip>;
2059
2069
  max: z.ZodObject<{
2060
2070
  type: z.ZodEnum<{
2061
- formula: "formula";
2062
- percent: "percent";
2063
2071
  num: "num";
2064
- max: "max";
2065
2072
  min: "min";
2073
+ max: "max";
2074
+ formula: "formula";
2075
+ percent: "percent";
2066
2076
  percentile: "percentile";
2067
2077
  }>;
2068
2078
  value: z.ZodOptional<z.ZodString>;
@@ -2106,11 +2116,11 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2106
2116
  iconSetType: z.ZodString;
2107
2117
  thresholds: z.ZodArray<z.ZodObject<{
2108
2118
  type: z.ZodEnum<{
2109
- formula: "formula";
2110
- percent: "percent";
2111
2119
  num: "num";
2112
- max: "max";
2113
2120
  min: "min";
2121
+ max: "max";
2122
+ formula: "formula";
2123
+ percent: "percent";
2114
2124
  percentile: "percentile";
2115
2125
  }>;
2116
2126
  value: z.ZodOptional<z.ZodString>;
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
- right: "right";
15
14
  center: "center";
15
+ right: "right";
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
- right: "right";
164
163
  center: "center";
164
+ right: "right";
165
165
  justify: "justify";
166
166
  }>>;
167
167
  list: z.ZodOptional<z.ZodObject<{
@@ -309,8 +309,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
309
309
  paragraph: z.ZodOptional<z.ZodObject<{
310
310
  alignment: z.ZodOptional<z.ZodEnum<{
311
311
  left: "left";
312
- right: "right";
313
312
  center: "center";
313
+ right: "right";
314
314
  justify: "justify";
315
315
  }>>;
316
316
  list: z.ZodOptional<z.ZodObject<{
@@ -458,8 +458,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
458
458
  paragraph: z.ZodOptional<z.ZodObject<{
459
459
  alignment: z.ZodOptional<z.ZodEnum<{
460
460
  left: "left";
461
- right: "right";
462
461
  center: "center";
462
+ right: "right";
463
463
  justify: "justify";
464
464
  }>>;
465
465
  list: z.ZodOptional<z.ZodObject<{
@@ -639,8 +639,8 @@ declare const rtfCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Arr
639
639
  paragraph: z.ZodOptional<z.ZodObject<{
640
640
  alignment: z.ZodOptional<z.ZodEnum<{
641
641
  left: "left";
642
- right: "right";
643
642
  center: "center";
643
+ right: "right";
644
644
  justify: "justify";
645
645
  }>>;
646
646
  list: z.ZodOptional<z.ZodObject<{
@@ -798,6 +798,16 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
798
798
  evenPage: "evenPage";
799
799
  oddPage: "oddPage";
800
800
  }>>;
801
+ headers: z.ZodOptional<z.ZodObject<{
802
+ default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
803
+ even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
804
+ first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
805
+ }, z.core.$strip>>;
806
+ footers: z.ZodOptional<z.ZodObject<{
807
+ default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
808
+ even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
809
+ first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>>;
810
+ }, z.core.$strip>>;
801
811
  source: z.ZodOptional<z.ZodObject<{
802
812
  format: z.ZodEnum<{
803
813
  docx: "docx";
@@ -1285,8 +1295,8 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1285
1295
  }, z.core.$strip>>;
1286
1296
  alignment: z.ZodOptional<z.ZodEnum<{
1287
1297
  left: "left";
1288
- right: "right";
1289
1298
  center: "center";
1299
+ right: "right";
1290
1300
  justify: "justify";
1291
1301
  }>>;
1292
1302
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -1390,10 +1400,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1390
1400
  }>;
1391
1401
  align: z.ZodEnum<{
1392
1402
  left: "left";
1403
+ center: "center";
1393
1404
  right: "right";
1394
1405
  top: "top";
1395
1406
  bottom: "bottom";
1396
- center: "center";
1397
1407
  inside: "inside";
1398
1408
  outside: "outside";
1399
1409
  }>;
@@ -1433,10 +1443,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1433
1443
  }>;
1434
1444
  align: z.ZodEnum<{
1435
1445
  left: "left";
1446
+ center: "center";
1436
1447
  right: "right";
1437
1448
  top: "top";
1438
1449
  bottom: "bottom";
1439
- center: "center";
1440
1450
  inside: "inside";
1441
1451
  outside: "outside";
1442
1452
  }>;
@@ -1525,10 +1535,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1525
1535
  endColumn: z.ZodNumber;
1526
1536
  }, z.core.$strip>>;
1527
1537
  type: z.ZodEnum<{
1528
- date: "date";
1529
- custom: "custom";
1530
1538
  decimal: "decimal";
1531
1539
  list: "list";
1540
+ date: "date";
1541
+ custom: "custom";
1532
1542
  time: "time";
1533
1543
  whole: "whole";
1534
1544
  textLength: "textLength";
@@ -2000,11 +2010,11 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2000
2010
  stops: z.ZodArray<z.ZodObject<{
2001
2011
  value: z.ZodObject<{
2002
2012
  type: z.ZodEnum<{
2003
- formula: "formula";
2004
- percent: "percent";
2005
2013
  num: "num";
2006
- max: "max";
2007
2014
  min: "min";
2015
+ max: "max";
2016
+ formula: "formula";
2017
+ percent: "percent";
2008
2018
  percentile: "percentile";
2009
2019
  }>;
2010
2020
  value: z.ZodOptional<z.ZodString>;
@@ -2047,22 +2057,22 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2047
2057
  }, z.core.$strip>, z.ZodObject<{
2048
2058
  min: z.ZodObject<{
2049
2059
  type: z.ZodEnum<{
2050
- formula: "formula";
2051
- percent: "percent";
2052
2060
  num: "num";
2053
- max: "max";
2054
2061
  min: "min";
2062
+ max: "max";
2063
+ formula: "formula";
2064
+ percent: "percent";
2055
2065
  percentile: "percentile";
2056
2066
  }>;
2057
2067
  value: z.ZodOptional<z.ZodString>;
2058
2068
  }, z.core.$strip>;
2059
2069
  max: z.ZodObject<{
2060
2070
  type: z.ZodEnum<{
2061
- formula: "formula";
2062
- percent: "percent";
2063
2071
  num: "num";
2064
- max: "max";
2065
2072
  min: "min";
2073
+ max: "max";
2074
+ formula: "formula";
2075
+ percent: "percent";
2066
2076
  percentile: "percentile";
2067
2077
  }>;
2068
2078
  value: z.ZodOptional<z.ZodString>;
@@ -2106,11 +2116,11 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
2106
2116
  iconSetType: z.ZodString;
2107
2117
  thresholds: z.ZodArray<z.ZodObject<{
2108
2118
  type: z.ZodEnum<{
2109
- formula: "formula";
2110
- percent: "percent";
2111
2119
  num: "num";
2112
- max: "max";
2113
2120
  min: "min";
2121
+ max: "max";
2122
+ formula: "formula";
2123
+ percent: "percent";
2114
2124
  percentile: "percentile";
2115
2125
  }>;
2116
2126
  value: z.ZodOptional<z.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rtf-codec",
3
- "version": "4.1.4",
3
+ "version": "4.1.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": {
@@ -80,8 +80,8 @@
80
80
  "license": "MIT",
81
81
  "packageManager": "pnpm@11.6.0",
82
82
  "dependencies": {
83
- "archive-codec": "1.10.1",
84
- "document-schema.js": "7.5.1",
83
+ "archive-codec": "1.10.2",
84
+ "document-schema.js": "7.6.0",
85
85
  "zod": "4.4.3"
86
86
  },
87
87
  "devDependencies": {