epub-codec 1.3.7 → 1.3.9
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-DpvZLWRM.d.ts → codec-DF9r4Fkv.d.ts} +11 -10
- package/dist/{codec-C-4UJ78w.d.cts → codec-DS1GA490.d.cts} +11 -10
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/model/package.d.cts +1 -1
- package/dist/model/package.d.ts +1 -1
- package/dist/package-io/read.d.cts +1 -1
- package/dist/package-io/read.d.ts +1 -1
- package/dist/package-io/write.d.cts +1 -1
- package/dist/package-io/write.d.ts +1 -1
- package/package.json +2 -2
|
@@ -147,8 +147,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
147
147
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
148
148
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
149
149
|
left: "left";
|
|
150
|
-
center: "center";
|
|
151
150
|
right: "right";
|
|
151
|
+
center: "center";
|
|
152
152
|
justify: "justify";
|
|
153
153
|
}>>;
|
|
154
154
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -296,8 +296,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
296
296
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
297
297
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
298
298
|
left: "left";
|
|
299
|
-
center: "center";
|
|
300
299
|
right: "right";
|
|
300
|
+
center: "center";
|
|
301
301
|
justify: "justify";
|
|
302
302
|
}>>;
|
|
303
303
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -450,8 +450,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
450
450
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
451
451
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
452
452
|
left: "left";
|
|
453
|
-
center: "center";
|
|
454
453
|
right: "right";
|
|
454
|
+
center: "center";
|
|
455
455
|
justify: "justify";
|
|
456
456
|
}>>;
|
|
457
457
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -599,8 +599,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
599
599
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
600
600
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
601
601
|
left: "left";
|
|
602
|
-
center: "center";
|
|
603
602
|
right: "right";
|
|
603
|
+
center: "center";
|
|
604
604
|
justify: "justify";
|
|
605
605
|
}>>;
|
|
606
606
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -807,8 +807,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
807
807
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
808
808
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
809
809
|
left: "left";
|
|
810
|
-
center: "center";
|
|
811
810
|
right: "right";
|
|
811
|
+
center: "center";
|
|
812
812
|
justify: "justify";
|
|
813
813
|
}>>;
|
|
814
814
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -1638,8 +1638,8 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1638
1638
|
}, z.core.$strip>>;
|
|
1639
1639
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1640
1640
|
left: "left";
|
|
1641
|
-
center: "center";
|
|
1642
1641
|
right: "right";
|
|
1642
|
+
center: "center";
|
|
1643
1643
|
justify: "justify";
|
|
1644
1644
|
}>>;
|
|
1645
1645
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1744,6 +1744,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1744
1744
|
}, z.core.$strip>>;
|
|
1745
1745
|
anchorRunIndex: z.ZodOptional<z.ZodNumber>;
|
|
1746
1746
|
anchorOffset: z.ZodOptional<z.ZodNumber>;
|
|
1747
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
1747
1748
|
floatPosition: z.ZodOptional<z.ZodObject<{
|
|
1748
1749
|
horizontal: z.ZodUnion<readonly [z.ZodObject<{
|
|
1749
1750
|
relativeTo: z.ZodEnum<{
|
|
@@ -1780,10 +1781,10 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1780
1781
|
}>;
|
|
1781
1782
|
align: z.ZodEnum<{
|
|
1782
1783
|
left: "left";
|
|
1783
|
-
center: "center";
|
|
1784
1784
|
right: "right";
|
|
1785
1785
|
top: "top";
|
|
1786
1786
|
bottom: "bottom";
|
|
1787
|
+
center: "center";
|
|
1787
1788
|
inside: "inside";
|
|
1788
1789
|
outside: "outside";
|
|
1789
1790
|
}>;
|
|
@@ -1823,10 +1824,10 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1823
1824
|
}>;
|
|
1824
1825
|
align: z.ZodEnum<{
|
|
1825
1826
|
left: "left";
|
|
1826
|
-
center: "center";
|
|
1827
1827
|
right: "right";
|
|
1828
1828
|
top: "top";
|
|
1829
1829
|
bottom: "bottom";
|
|
1830
|
+
center: "center";
|
|
1830
1831
|
inside: "inside";
|
|
1831
1832
|
outside: "outside";
|
|
1832
1833
|
}>;
|
|
@@ -1915,10 +1916,10 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1915
1916
|
endColumn: z.ZodNumber;
|
|
1916
1917
|
}, z.core.$strip>>;
|
|
1917
1918
|
type: z.ZodEnum<{
|
|
1918
|
-
decimal: "decimal";
|
|
1919
|
-
list: "list";
|
|
1920
1919
|
date: "date";
|
|
1921
1920
|
custom: "custom";
|
|
1921
|
+
decimal: "decimal";
|
|
1922
|
+
list: "list";
|
|
1922
1923
|
time: "time";
|
|
1923
1924
|
whole: "whole";
|
|
1924
1925
|
textLength: "textLength";
|
|
@@ -147,8 +147,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
147
147
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
148
148
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
149
149
|
left: "left";
|
|
150
|
-
center: "center";
|
|
151
150
|
right: "right";
|
|
151
|
+
center: "center";
|
|
152
152
|
justify: "justify";
|
|
153
153
|
}>>;
|
|
154
154
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -296,8 +296,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
296
296
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
297
297
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
298
298
|
left: "left";
|
|
299
|
-
center: "center";
|
|
300
299
|
right: "right";
|
|
300
|
+
center: "center";
|
|
301
301
|
justify: "justify";
|
|
302
302
|
}>>;
|
|
303
303
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -450,8 +450,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
450
450
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
451
451
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
452
452
|
left: "left";
|
|
453
|
-
center: "center";
|
|
454
453
|
right: "right";
|
|
454
|
+
center: "center";
|
|
455
455
|
justify: "justify";
|
|
456
456
|
}>>;
|
|
457
457
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -599,8 +599,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
599
599
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
600
600
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
601
601
|
left: "left";
|
|
602
|
-
center: "center";
|
|
603
602
|
right: "right";
|
|
603
|
+
center: "center";
|
|
604
604
|
justify: "justify";
|
|
605
605
|
}>>;
|
|
606
606
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -807,8 +807,8 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
807
807
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
808
808
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
809
809
|
left: "left";
|
|
810
|
-
center: "center";
|
|
811
810
|
right: "right";
|
|
811
|
+
center: "center";
|
|
812
812
|
justify: "justify";
|
|
813
813
|
}>>;
|
|
814
814
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -1638,8 +1638,8 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1638
1638
|
}, z.core.$strip>>;
|
|
1639
1639
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1640
1640
|
left: "left";
|
|
1641
|
-
center: "center";
|
|
1642
1641
|
right: "right";
|
|
1642
|
+
center: "center";
|
|
1643
1643
|
justify: "justify";
|
|
1644
1644
|
}>>;
|
|
1645
1645
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1744,6 +1744,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1744
1744
|
}, z.core.$strip>>;
|
|
1745
1745
|
anchorRunIndex: z.ZodOptional<z.ZodNumber>;
|
|
1746
1746
|
anchorOffset: z.ZodOptional<z.ZodNumber>;
|
|
1747
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
1747
1748
|
floatPosition: z.ZodOptional<z.ZodObject<{
|
|
1748
1749
|
horizontal: z.ZodUnion<readonly [z.ZodObject<{
|
|
1749
1750
|
relativeTo: z.ZodEnum<{
|
|
@@ -1780,10 +1781,10 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1780
1781
|
}>;
|
|
1781
1782
|
align: z.ZodEnum<{
|
|
1782
1783
|
left: "left";
|
|
1783
|
-
center: "center";
|
|
1784
1784
|
right: "right";
|
|
1785
1785
|
top: "top";
|
|
1786
1786
|
bottom: "bottom";
|
|
1787
|
+
center: "center";
|
|
1787
1788
|
inside: "inside";
|
|
1788
1789
|
outside: "outside";
|
|
1789
1790
|
}>;
|
|
@@ -1823,10 +1824,10 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1823
1824
|
}>;
|
|
1824
1825
|
align: z.ZodEnum<{
|
|
1825
1826
|
left: "left";
|
|
1826
|
-
center: "center";
|
|
1827
1827
|
right: "right";
|
|
1828
1828
|
top: "top";
|
|
1829
1829
|
bottom: "bottom";
|
|
1830
|
+
center: "center";
|
|
1830
1831
|
inside: "inside";
|
|
1831
1832
|
outside: "outside";
|
|
1832
1833
|
}>;
|
|
@@ -1915,10 +1916,10 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1915
1916
|
endColumn: z.ZodNumber;
|
|
1916
1917
|
}, z.core.$strip>>;
|
|
1917
1918
|
type: z.ZodEnum<{
|
|
1918
|
-
decimal: "decimal";
|
|
1919
|
-
list: "list";
|
|
1920
1919
|
date: "date";
|
|
1921
1920
|
custom: "custom";
|
|
1921
|
+
decimal: "decimal";
|
|
1922
|
+
list: "list";
|
|
1922
1923
|
time: "time";
|
|
1923
1924
|
whole: "whole";
|
|
1924
1925
|
textLength: "textLength";
|
package/dist/codec.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as epubContentCodec, i as epubCodec, n as decodePackage, o as packageCodec, r as encodePackage, t as EpubBytesSchema } from "./codec-
|
|
1
|
+
import { a as epubContentCodec, i as epubCodec, n as decodePackage, o as packageCodec, r as encodePackage, t as EpubBytesSchema } from "./codec-DS1GA490.cjs";
|
|
2
2
|
export { EpubBytesSchema, decodePackage, encodePackage, epubCodec, epubContentCodec, packageCodec };
|
package/dist/codec.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as epubContentCodec, i as epubCodec, n as decodePackage, o as packageCodec, r as encodePackage, t as EpubBytesSchema } from "./codec-
|
|
1
|
+
import { a as epubContentCodec, i as epubCodec, n as decodePackage, o as packageCodec, r as encodePackage, t as EpubBytesSchema } from "./codec-DF9r4Fkv.js";
|
|
2
2
|
export { EpubBytesSchema, decodePackage, encodePackage, epubCodec, epubContentCodec, packageCodec };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as OCF_CONTAINER_PATH, r as OCF_MIMETYPE_PATH, t as EPUB_MIME_TYPE } from "./format-DxUddUPj.cjs";
|
|
2
2
|
import { n as unzipPackage, r as zipPackage, t as ZipEntry } from "./zip-ie17sOo5.cjs";
|
|
3
|
-
import { _ as XmlPart, a as epubContentCodec, c as serializePackage, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, i as epubCodec, l as packageFromEntries, m as EpubPackageSchema, n as decodePackage, o as packageCodec, p as EpubPackage, r as encodePackage, s as packageToEntries, t as EpubBytesSchema, u as parsePackage, v as XmlPartSchema } from "./codec-
|
|
3
|
+
import { _ as XmlPart, a as epubContentCodec, c as serializePackage, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, i as epubCodec, l as packageFromEntries, m as EpubPackageSchema, n as decodePackage, o as packageCodec, p as EpubPackage, r as encodePackage, s as packageToEntries, t as EpubBytesSchema, u as parsePackage, v as XmlPartSchema } from "./codec-DS1GA490.cjs";
|
|
4
4
|
import { a as EpubEmptySpineError, c as EpubInvalidOpfError, d as EpubUnbalancedConstructMarkersError, f as EpubUnsupportedDocumentKindError, i as EpubDiagnosticSink, l as EpubPackageFlattenError, m as NOOP_EPUB_DIAGNOSTIC_SINK, n as EpubDiagnosticCodes, o as EpubInvalidContainerError, p as EpubWriteError, r as EpubDiagnosticSeverity, s as EpubInvalidMimetypeError, t as EpubDiagnostic, u as EpubParseError } from "./diagnostics-C0CRdoda.cjs";
|
|
5
5
|
import { t as resolveOpfPath } from "./container-B6cHHiY9.cjs";
|
|
6
6
|
import { n as OpfPackage, r as OpfSpineItemRef, t as OpfManifestItem } from "./types-BxmkPT_F.cjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as OCF_CONTAINER_PATH, r as OCF_MIMETYPE_PATH, t as EPUB_MIME_TYPE } from "./format-DxUddUPj.js";
|
|
2
2
|
import { n as unzipPackage, r as zipPackage, t as ZipEntry } from "./zip-ie17sOo5.js";
|
|
3
|
-
import { _ as XmlPart, a as epubContentCodec, c as serializePackage, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, i as epubCodec, l as packageFromEntries, m as EpubPackageSchema, n as decodePackage, o as packageCodec, p as EpubPackage, r as encodePackage, s as packageToEntries, t as EpubBytesSchema, u as parsePackage, v as XmlPartSchema } from "./codec-
|
|
3
|
+
import { _ as XmlPart, a as epubContentCodec, c as serializePackage, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, i as epubCodec, l as packageFromEntries, m as EpubPackageSchema, n as decodePackage, o as packageCodec, p as EpubPackage, r as encodePackage, s as packageToEntries, t as EpubBytesSchema, u as parsePackage, v as XmlPartSchema } from "./codec-DF9r4Fkv.js";
|
|
4
4
|
import { a as EpubEmptySpineError, c as EpubInvalidOpfError, d as EpubUnbalancedConstructMarkersError, f as EpubUnsupportedDocumentKindError, i as EpubDiagnosticSink, l as EpubPackageFlattenError, m as NOOP_EPUB_DIAGNOSTIC_SINK, n as EpubDiagnosticCodes, o as EpubInvalidContainerError, p as EpubWriteError, r as EpubDiagnosticSeverity, s as EpubInvalidMimetypeError, t as EpubDiagnostic, u as EpubParseError } from "./diagnostics-C0CRdoda.js";
|
|
5
5
|
import { t as resolveOpfPath } from "./container-B6cHHiY9.js";
|
|
6
6
|
import { n as OpfPackage, r as OpfSpineItemRef, t as OpfManifestItem } from "./types-BxmkPT_F.js";
|
package/dist/model/package.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as XmlPart, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, m as EpubPackageSchema, p as EpubPackage, v as XmlPartSchema } from "../codec-
|
|
1
|
+
import { _ as XmlPart, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, m as EpubPackageSchema, p as EpubPackage, v as XmlPartSchema } from "../codec-DS1GA490.cjs";
|
|
2
2
|
export { BinaryPart, BinaryPartSchema, EpubPackage, EpubPackageSchema, Part, PartSchema, XmlPart, XmlPartSchema };
|
package/dist/model/package.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as XmlPart, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, m as EpubPackageSchema, p as EpubPackage, v as XmlPartSchema } from "../codec-
|
|
1
|
+
import { _ as XmlPart, d as BinaryPart, f as BinaryPartSchema, g as PartSchema, h as Part, m as EpubPackageSchema, p as EpubPackage, v as XmlPartSchema } from "../codec-DF9r4Fkv.js";
|
|
2
2
|
export { BinaryPart, BinaryPartSchema, EpubPackage, EpubPackageSchema, Part, PartSchema, XmlPart, XmlPartSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { l as packageFromEntries, u as parsePackage } from "../codec-
|
|
1
|
+
import { l as packageFromEntries, u as parsePackage } from "../codec-DS1GA490.cjs";
|
|
2
2
|
export { packageFromEntries, parsePackage };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { l as packageFromEntries, u as parsePackage } from "../codec-
|
|
1
|
+
import { l as packageFromEntries, u as parsePackage } from "../codec-DF9r4Fkv.js";
|
|
2
2
|
export { packageFromEntries, parsePackage };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as serializePackage, s as packageToEntries } from "../codec-
|
|
1
|
+
import { c as serializePackage, s as packageToEntries } from "../codec-DS1GA490.cjs";
|
|
2
2
|
export { packageToEntries, serializePackage };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as serializePackage, s as packageToEntries } from "../codec-
|
|
1
|
+
import { c as serializePackage, s as packageToEntries } from "../codec-DF9r4Fkv.js";
|
|
2
2
|
export { packageToEntries, serializePackage };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "epub-codec",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9",
|
|
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.9.1",
|
|
82
82
|
"entities": "8.0.0",
|
|
83
83
|
"fast-xml-parser": "5.10.1",
|
|
84
84
|
"fflate": "0.8.3",
|