epub-codec 1.2.8 → 1.2.10
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 +94 -6
- package/dist/codec.d.ts +94 -6
- package/package.json +2 -2
package/dist/codec.d.cts
CHANGED
|
@@ -11,8 +11,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
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<{
|
|
@@ -159,8 +159,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
159
159
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
160
160
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
161
161
|
left: "left";
|
|
162
|
-
center: "center";
|
|
163
162
|
right: "right";
|
|
163
|
+
center: "center";
|
|
164
164
|
justify: "justify";
|
|
165
165
|
}>>;
|
|
166
166
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -307,8 +307,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
307
307
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
308
308
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
309
309
|
left: "left";
|
|
310
|
-
center: "center";
|
|
311
310
|
right: "right";
|
|
311
|
+
center: "center";
|
|
312
312
|
justify: "justify";
|
|
313
313
|
}>>;
|
|
314
314
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -455,8 +455,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
455
455
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
456
456
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
457
457
|
left: "left";
|
|
458
|
-
center: "center";
|
|
459
458
|
right: "right";
|
|
459
|
+
center: "center";
|
|
460
460
|
justify: "justify";
|
|
461
461
|
}>>;
|
|
462
462
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -634,8 +634,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
634
634
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
635
635
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
636
636
|
left: "left";
|
|
637
|
-
center: "center";
|
|
638
637
|
right: "right";
|
|
638
|
+
center: "center";
|
|
639
639
|
justify: "justify";
|
|
640
640
|
}>>;
|
|
641
641
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -1275,8 +1275,8 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1275
1275
|
}, z.core.$strip>>;
|
|
1276
1276
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1277
1277
|
left: "left";
|
|
1278
|
-
center: "center";
|
|
1279
1278
|
right: "right";
|
|
1279
|
+
center: "center";
|
|
1280
1280
|
justify: "justify";
|
|
1281
1281
|
}>>;
|
|
1282
1282
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1343,6 +1343,94 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
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
|
+
right: "right";
|
|
1383
|
+
top: "top";
|
|
1384
|
+
bottom: "bottom";
|
|
1385
|
+
center: "center";
|
|
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
|
+
right: "right";
|
|
1426
|
+
top: "top";
|
|
1427
|
+
bottom: "bottom";
|
|
1428
|
+
center: "center";
|
|
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<{
|
package/dist/codec.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
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<{
|
|
@@ -159,8 +159,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
159
159
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
160
160
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
161
161
|
left: "left";
|
|
162
|
-
center: "center";
|
|
163
162
|
right: "right";
|
|
163
|
+
center: "center";
|
|
164
164
|
justify: "justify";
|
|
165
165
|
}>>;
|
|
166
166
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -307,8 +307,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
307
307
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
308
308
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
309
309
|
left: "left";
|
|
310
|
-
center: "center";
|
|
311
310
|
right: "right";
|
|
311
|
+
center: "center";
|
|
312
312
|
justify: "justify";
|
|
313
313
|
}>>;
|
|
314
314
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -455,8 +455,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
455
455
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
456
456
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
457
457
|
left: "left";
|
|
458
|
-
center: "center";
|
|
459
458
|
right: "right";
|
|
459
|
+
center: "center";
|
|
460
460
|
justify: "justify";
|
|
461
461
|
}>>;
|
|
462
462
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -634,8 +634,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
634
634
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
635
635
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
636
636
|
left: "left";
|
|
637
|
-
center: "center";
|
|
638
637
|
right: "right";
|
|
638
|
+
center: "center";
|
|
639
639
|
justify: "justify";
|
|
640
640
|
}>>;
|
|
641
641
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -1275,8 +1275,8 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1275
1275
|
}, z.core.$strip>>;
|
|
1276
1276
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1277
1277
|
left: "left";
|
|
1278
|
-
center: "center";
|
|
1279
1278
|
right: "right";
|
|
1279
|
+
center: "center";
|
|
1280
1280
|
justify: "justify";
|
|
1281
1281
|
}>>;
|
|
1282
1282
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1343,6 +1343,94 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
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
|
+
right: "right";
|
|
1383
|
+
top: "top";
|
|
1384
|
+
bottom: "bottom";
|
|
1385
|
+
center: "center";
|
|
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
|
+
right: "right";
|
|
1426
|
+
top: "top";
|
|
1427
|
+
bottom: "bottom";
|
|
1428
|
+
center: "center";
|
|
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<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "epub-codec",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10",
|
|
4
4
|
"description": "EPUB 2/3 reading and deterministic EPUB 3 writing against the shared document-schema.js content pivot.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"license": "MIT",
|
|
79
79
|
"packageManager": "pnpm@11.6.0",
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"document-schema.js": "^7.
|
|
81
|
+
"document-schema.js": "^7.2.0",
|
|
82
82
|
"entities": "^8.0.0",
|
|
83
83
|
"fast-xml-parser": "^5.10.1",
|
|
84
84
|
"fflate": "^0.8.3",
|