rtf-codec 4.0.2 → 4.0.4

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
@@ -1343,6 +1343,94 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1343
1343
  widthPt: z.ZodNumber;
1344
1344
  heightPt: z.ZodNumber;
1345
1345
  altText: z.ZodOptional<z.ZodString>;
1346
+ floatPosition: z.ZodOptional<z.ZodObject<{
1347
+ horizontal: z.ZodUnion<readonly [z.ZodObject<{
1348
+ relativeTo: z.ZodEnum<{
1349
+ paragraph: "paragraph";
1350
+ page: "page";
1351
+ margin: "margin";
1352
+ leftMargin: "leftMargin";
1353
+ rightMargin: "rightMargin";
1354
+ topMargin: "topMargin";
1355
+ bottomMargin: "bottomMargin";
1356
+ insideMargin: "insideMargin";
1357
+ outsideMargin: "outsideMargin";
1358
+ column: "column";
1359
+ character: "character";
1360
+ line: "line";
1361
+ frame: "frame";
1362
+ }>;
1363
+ offsetPt: z.ZodNumber;
1364
+ }, z.core.$strict>, z.ZodObject<{
1365
+ relativeTo: z.ZodEnum<{
1366
+ paragraph: "paragraph";
1367
+ page: "page";
1368
+ margin: "margin";
1369
+ leftMargin: "leftMargin";
1370
+ rightMargin: "rightMargin";
1371
+ topMargin: "topMargin";
1372
+ bottomMargin: "bottomMargin";
1373
+ insideMargin: "insideMargin";
1374
+ outsideMargin: "outsideMargin";
1375
+ column: "column";
1376
+ character: "character";
1377
+ line: "line";
1378
+ frame: "frame";
1379
+ }>;
1380
+ align: z.ZodEnum<{
1381
+ left: "left";
1382
+ center: "center";
1383
+ right: "right";
1384
+ top: "top";
1385
+ bottom: "bottom";
1386
+ inside: "inside";
1387
+ outside: "outside";
1388
+ }>;
1389
+ }, z.core.$strict>]>;
1390
+ vertical: z.ZodUnion<readonly [z.ZodObject<{
1391
+ relativeTo: z.ZodEnum<{
1392
+ paragraph: "paragraph";
1393
+ page: "page";
1394
+ margin: "margin";
1395
+ leftMargin: "leftMargin";
1396
+ rightMargin: "rightMargin";
1397
+ topMargin: "topMargin";
1398
+ bottomMargin: "bottomMargin";
1399
+ insideMargin: "insideMargin";
1400
+ outsideMargin: "outsideMargin";
1401
+ column: "column";
1402
+ character: "character";
1403
+ line: "line";
1404
+ frame: "frame";
1405
+ }>;
1406
+ offsetPt: z.ZodNumber;
1407
+ }, z.core.$strict>, z.ZodObject<{
1408
+ relativeTo: z.ZodEnum<{
1409
+ paragraph: "paragraph";
1410
+ page: "page";
1411
+ margin: "margin";
1412
+ leftMargin: "leftMargin";
1413
+ rightMargin: "rightMargin";
1414
+ topMargin: "topMargin";
1415
+ bottomMargin: "bottomMargin";
1416
+ insideMargin: "insideMargin";
1417
+ outsideMargin: "outsideMargin";
1418
+ column: "column";
1419
+ character: "character";
1420
+ line: "line";
1421
+ frame: "frame";
1422
+ }>;
1423
+ align: z.ZodEnum<{
1424
+ left: "left";
1425
+ center: "center";
1426
+ right: "right";
1427
+ top: "top";
1428
+ bottom: "bottom";
1429
+ inside: "inside";
1430
+ outside: "outside";
1431
+ }>;
1432
+ }, z.core.$strict>]>;
1433
+ }, z.core.$strip>>;
1346
1434
  sourcePath: z.ZodOptional<z.ZodString>;
1347
1435
  source: z.ZodOptional<z.ZodObject<{
1348
1436
  format: z.ZodEnum<{
@@ -1427,9 +1515,9 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1427
1515
  type: z.ZodEnum<{
1428
1516
  date: "date";
1429
1517
  custom: "custom";
1430
- time: "time";
1431
1518
  decimal: "decimal";
1432
1519
  list: "list";
1520
+ time: "time";
1433
1521
  whole: "whole";
1434
1522
  textLength: "textLength";
1435
1523
  }>;
@@ -1820,6 +1908,9 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1820
1908
  thisWeek: "thisWeek";
1821
1909
  lastWeek: "lastWeek";
1822
1910
  nextWeek: "nextWeek";
1911
+ thisYear: "thisYear";
1912
+ lastYear: "lastYear";
1913
+ nextYear: "nextYear";
1823
1914
  }>;
1824
1915
  style: z.ZodOptional<z.ZodObject<{
1825
1916
  textColor: z.ZodOptional<z.ZodObject<{
@@ -1885,10 +1976,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1885
1976
  value: z.ZodObject<{
1886
1977
  type: z.ZodEnum<{
1887
1978
  formula: "formula";
1979
+ percent: "percent";
1888
1980
  num: "num";
1889
- min: "min";
1890
1981
  max: "max";
1891
- percent: "percent";
1982
+ min: "min";
1892
1983
  percentile: "percentile";
1893
1984
  }>;
1894
1985
  value: z.ZodOptional<z.ZodString>;
@@ -1931,10 +2022,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1931
2022
  min: z.ZodObject<{
1932
2023
  type: z.ZodEnum<{
1933
2024
  formula: "formula";
2025
+ percent: "percent";
1934
2026
  num: "num";
1935
- min: "min";
1936
2027
  max: "max";
1937
- percent: "percent";
2028
+ min: "min";
1938
2029
  percentile: "percentile";
1939
2030
  }>;
1940
2031
  value: z.ZodOptional<z.ZodString>;
@@ -1942,10 +2033,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1942
2033
  max: z.ZodObject<{
1943
2034
  type: z.ZodEnum<{
1944
2035
  formula: "formula";
2036
+ percent: "percent";
1945
2037
  num: "num";
1946
- min: "min";
1947
2038
  max: "max";
1948
- percent: "percent";
2039
+ min: "min";
1949
2040
  percentile: "percentile";
1950
2041
  }>;
1951
2042
  value: z.ZodOptional<z.ZodString>;
@@ -1989,10 +2080,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1989
2080
  thresholds: z.ZodArray<z.ZodObject<{
1990
2081
  type: z.ZodEnum<{
1991
2082
  formula: "formula";
2083
+ percent: "percent";
1992
2084
  num: "num";
1993
- min: "min";
1994
2085
  max: "max";
1995
- percent: "percent";
2086
+ min: "min";
1996
2087
  percentile: "percentile";
1997
2088
  }>;
1998
2089
  value: z.ZodOptional<z.ZodString>;
package/dist/codec.d.ts CHANGED
@@ -1343,6 +1343,94 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1343
1343
  widthPt: z.ZodNumber;
1344
1344
  heightPt: z.ZodNumber;
1345
1345
  altText: z.ZodOptional<z.ZodString>;
1346
+ floatPosition: z.ZodOptional<z.ZodObject<{
1347
+ horizontal: z.ZodUnion<readonly [z.ZodObject<{
1348
+ relativeTo: z.ZodEnum<{
1349
+ paragraph: "paragraph";
1350
+ page: "page";
1351
+ margin: "margin";
1352
+ leftMargin: "leftMargin";
1353
+ rightMargin: "rightMargin";
1354
+ topMargin: "topMargin";
1355
+ bottomMargin: "bottomMargin";
1356
+ insideMargin: "insideMargin";
1357
+ outsideMargin: "outsideMargin";
1358
+ column: "column";
1359
+ character: "character";
1360
+ line: "line";
1361
+ frame: "frame";
1362
+ }>;
1363
+ offsetPt: z.ZodNumber;
1364
+ }, z.core.$strict>, z.ZodObject<{
1365
+ relativeTo: z.ZodEnum<{
1366
+ paragraph: "paragraph";
1367
+ page: "page";
1368
+ margin: "margin";
1369
+ leftMargin: "leftMargin";
1370
+ rightMargin: "rightMargin";
1371
+ topMargin: "topMargin";
1372
+ bottomMargin: "bottomMargin";
1373
+ insideMargin: "insideMargin";
1374
+ outsideMargin: "outsideMargin";
1375
+ column: "column";
1376
+ character: "character";
1377
+ line: "line";
1378
+ frame: "frame";
1379
+ }>;
1380
+ align: z.ZodEnum<{
1381
+ left: "left";
1382
+ center: "center";
1383
+ right: "right";
1384
+ top: "top";
1385
+ bottom: "bottom";
1386
+ inside: "inside";
1387
+ outside: "outside";
1388
+ }>;
1389
+ }, z.core.$strict>]>;
1390
+ vertical: z.ZodUnion<readonly [z.ZodObject<{
1391
+ relativeTo: z.ZodEnum<{
1392
+ paragraph: "paragraph";
1393
+ page: "page";
1394
+ margin: "margin";
1395
+ leftMargin: "leftMargin";
1396
+ rightMargin: "rightMargin";
1397
+ topMargin: "topMargin";
1398
+ bottomMargin: "bottomMargin";
1399
+ insideMargin: "insideMargin";
1400
+ outsideMargin: "outsideMargin";
1401
+ column: "column";
1402
+ character: "character";
1403
+ line: "line";
1404
+ frame: "frame";
1405
+ }>;
1406
+ offsetPt: z.ZodNumber;
1407
+ }, z.core.$strict>, z.ZodObject<{
1408
+ relativeTo: z.ZodEnum<{
1409
+ paragraph: "paragraph";
1410
+ page: "page";
1411
+ margin: "margin";
1412
+ leftMargin: "leftMargin";
1413
+ rightMargin: "rightMargin";
1414
+ topMargin: "topMargin";
1415
+ bottomMargin: "bottomMargin";
1416
+ insideMargin: "insideMargin";
1417
+ outsideMargin: "outsideMargin";
1418
+ column: "column";
1419
+ character: "character";
1420
+ line: "line";
1421
+ frame: "frame";
1422
+ }>;
1423
+ align: z.ZodEnum<{
1424
+ left: "left";
1425
+ center: "center";
1426
+ right: "right";
1427
+ top: "top";
1428
+ bottom: "bottom";
1429
+ inside: "inside";
1430
+ outside: "outside";
1431
+ }>;
1432
+ }, z.core.$strict>]>;
1433
+ }, z.core.$strip>>;
1346
1434
  sourcePath: z.ZodOptional<z.ZodString>;
1347
1435
  source: z.ZodOptional<z.ZodObject<{
1348
1436
  format: z.ZodEnum<{
@@ -1427,9 +1515,9 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1427
1515
  type: z.ZodEnum<{
1428
1516
  date: "date";
1429
1517
  custom: "custom";
1430
- time: "time";
1431
1518
  decimal: "decimal";
1432
1519
  list: "list";
1520
+ time: "time";
1433
1521
  whole: "whole";
1434
1522
  textLength: "textLength";
1435
1523
  }>;
@@ -1820,6 +1908,9 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1820
1908
  thisWeek: "thisWeek";
1821
1909
  lastWeek: "lastWeek";
1822
1910
  nextWeek: "nextWeek";
1911
+ thisYear: "thisYear";
1912
+ lastYear: "lastYear";
1913
+ nextYear: "nextYear";
1823
1914
  }>;
1824
1915
  style: z.ZodOptional<z.ZodObject<{
1825
1916
  textColor: z.ZodOptional<z.ZodObject<{
@@ -1885,10 +1976,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1885
1976
  value: z.ZodObject<{
1886
1977
  type: z.ZodEnum<{
1887
1978
  formula: "formula";
1979
+ percent: "percent";
1888
1980
  num: "num";
1889
- min: "min";
1890
1981
  max: "max";
1891
- percent: "percent";
1982
+ min: "min";
1892
1983
  percentile: "percentile";
1893
1984
  }>;
1894
1985
  value: z.ZodOptional<z.ZodString>;
@@ -1931,10 +2022,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1931
2022
  min: z.ZodObject<{
1932
2023
  type: z.ZodEnum<{
1933
2024
  formula: "formula";
2025
+ percent: "percent";
1934
2026
  num: "num";
1935
- min: "min";
1936
2027
  max: "max";
1937
- percent: "percent";
2028
+ min: "min";
1938
2029
  percentile: "percentile";
1939
2030
  }>;
1940
2031
  value: z.ZodOptional<z.ZodString>;
@@ -1942,10 +2033,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1942
2033
  max: z.ZodObject<{
1943
2034
  type: z.ZodEnum<{
1944
2035
  formula: "formula";
2036
+ percent: "percent";
1945
2037
  num: "num";
1946
- min: "min";
1947
2038
  max: "max";
1948
- percent: "percent";
2039
+ min: "min";
1949
2040
  percentile: "percentile";
1950
2041
  }>;
1951
2042
  value: z.ZodOptional<z.ZodString>;
@@ -1989,10 +2080,10 @@ declare const rtfContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, U
1989
2080
  thresholds: z.ZodArray<z.ZodObject<{
1990
2081
  type: z.ZodEnum<{
1991
2082
  formula: "formula";
2083
+ percent: "percent";
1992
2084
  num: "num";
1993
- min: "min";
1994
2085
  max: "max";
1995
- percent: "percent";
2086
+ min: "min";
1996
2087
  percentile: "percentile";
1997
2088
  }>;
1998
2089
  value: z.ZodOptional<z.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rtf-codec",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
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.6.6",
84
- "document-schema.js": "^7.1.0",
83
+ "archive-codec": "^1.6.8",
84
+ "document-schema.js": "^7.3.0",
85
85
  "zod": "^4.4.3"
86
86
  },
87
87
  "devDependencies": {