epub-codec 1.3.7 → 1.3.8

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.
@@ -233,9 +233,9 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
233
233
  symbol: z.ZodString;
234
234
  name: z.ZodOptional<z.ZodString>;
235
235
  dimension: z.ZodRecord<z.ZodEnum<{
236
+ time: "time";
236
237
  length: "length";
237
238
  mass: "mass";
238
- time: "time";
239
239
  electricCurrent: "electricCurrent";
240
240
  thermodynamicTemperature: "thermodynamicTemperature";
241
241
  amountOfSubstance: "amountOfSubstance";
@@ -382,9 +382,9 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
382
382
  symbol: z.ZodString;
383
383
  name: z.ZodOptional<z.ZodString>;
384
384
  dimension: z.ZodRecord<z.ZodEnum<{
385
+ time: "time";
385
386
  length: "length";
386
387
  mass: "mass";
387
- time: "time";
388
388
  electricCurrent: "electricCurrent";
389
389
  thermodynamicTemperature: "thermodynamicTemperature";
390
390
  amountOfSubstance: "amountOfSubstance";
@@ -536,9 +536,9 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
536
536
  symbol: z.ZodString;
537
537
  name: z.ZodOptional<z.ZodString>;
538
538
  dimension: z.ZodRecord<z.ZodEnum<{
539
+ time: "time";
539
540
  length: "length";
540
541
  mass: "mass";
541
- time: "time";
542
542
  electricCurrent: "electricCurrent";
543
543
  thermodynamicTemperature: "thermodynamicTemperature";
544
544
  amountOfSubstance: "amountOfSubstance";
@@ -685,9 +685,9 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
685
685
  symbol: z.ZodString;
686
686
  name: z.ZodOptional<z.ZodString>;
687
687
  dimension: z.ZodRecord<z.ZodEnum<{
688
+ time: "time";
688
689
  length: "length";
689
690
  mass: "mass";
690
- time: "time";
691
691
  electricCurrent: "electricCurrent";
692
692
  thermodynamicTemperature: "thermodynamicTemperature";
693
693
  amountOfSubstance: "amountOfSubstance";
@@ -893,9 +893,9 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
893
893
  symbol: z.ZodString;
894
894
  name: z.ZodOptional<z.ZodString>;
895
895
  dimension: z.ZodRecord<z.ZodEnum<{
896
+ time: "time";
896
897
  length: "length";
897
898
  mass: "mass";
898
- time: "time";
899
899
  electricCurrent: "electricCurrent";
900
900
  thermodynamicTemperature: "thermodynamicTemperature";
901
901
  amountOfSubstance: "amountOfSubstance";
@@ -1038,9 +1038,9 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1038
1038
  symbol: z.ZodString;
1039
1039
  name: z.ZodOptional<z.ZodString>;
1040
1040
  dimension: z.ZodRecord<z.ZodEnum<{
1041
+ time: "time";
1041
1042
  length: "length";
1042
1043
  mass: "mass";
1043
- time: "time";
1044
1044
  electricCurrent: "electricCurrent";
1045
1045
  thermodynamicTemperature: "thermodynamicTemperature";
1046
1046
  amountOfSubstance: "amountOfSubstance";
@@ -1233,9 +1233,9 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1233
1233
  symbol: z.ZodString;
1234
1234
  name: z.ZodOptional<z.ZodString>;
1235
1235
  dimension: z.ZodRecord<z.ZodEnum<{
1236
+ time: "time";
1236
1237
  length: "length";
1237
1238
  mass: "mass";
1238
- time: "time";
1239
1239
  electricCurrent: "electricCurrent";
1240
1240
  thermodynamicTemperature: "thermodynamicTemperature";
1241
1241
  amountOfSubstance: "amountOfSubstance";
@@ -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<{
@@ -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";
@@ -2577,9 +2578,9 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2577
2578
  symbol: z.ZodString;
2578
2579
  name: z.ZodOptional<z.ZodString>;
2579
2580
  dimension: z.ZodRecord<z.ZodEnum<{
2581
+ time: "time";
2580
2582
  length: "length";
2581
2583
  mass: "mass";
2582
- time: "time";
2583
2584
  electricCurrent: "electricCurrent";
2584
2585
  thermodynamicTemperature: "thermodynamicTemperature";
2585
2586
  amountOfSubstance: "amountOfSubstance";
@@ -3306,9 +3307,9 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
3306
3307
  symbol: z.ZodString;
3307
3308
  name: z.ZodOptional<z.ZodString>;
3308
3309
  dimension: z.ZodRecord<z.ZodEnum<{
3310
+ time: "time";
3309
3311
  length: "length";
3310
3312
  mass: "mass";
3311
- time: "time";
3312
3313
  electricCurrent: "electricCurrent";
3313
3314
  thermodynamicTemperature: "thermodynamicTemperature";
3314
3315
  amountOfSubstance: "amountOfSubstance";
@@ -3434,9 +3435,9 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
3434
3435
  symbol: z.ZodString;
3435
3436
  name: z.ZodOptional<z.ZodString>;
3436
3437
  dimension: z.ZodRecord<z.ZodEnum<{
3438
+ time: "time";
3437
3439
  length: "length";
3438
3440
  mass: "mass";
3439
- time: "time";
3440
3441
  electricCurrent: "electricCurrent";
3441
3442
  thermodynamicTemperature: "thermodynamicTemperature";
3442
3443
  amountOfSubstance: "amountOfSubstance";
@@ -233,9 +233,9 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
233
233
  symbol: z.ZodString;
234
234
  name: z.ZodOptional<z.ZodString>;
235
235
  dimension: z.ZodRecord<z.ZodEnum<{
236
+ time: "time";
236
237
  length: "length";
237
238
  mass: "mass";
238
- time: "time";
239
239
  electricCurrent: "electricCurrent";
240
240
  thermodynamicTemperature: "thermodynamicTemperature";
241
241
  amountOfSubstance: "amountOfSubstance";
@@ -382,9 +382,9 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
382
382
  symbol: z.ZodString;
383
383
  name: z.ZodOptional<z.ZodString>;
384
384
  dimension: z.ZodRecord<z.ZodEnum<{
385
+ time: "time";
385
386
  length: "length";
386
387
  mass: "mass";
387
- time: "time";
388
388
  electricCurrent: "electricCurrent";
389
389
  thermodynamicTemperature: "thermodynamicTemperature";
390
390
  amountOfSubstance: "amountOfSubstance";
@@ -536,9 +536,9 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
536
536
  symbol: z.ZodString;
537
537
  name: z.ZodOptional<z.ZodString>;
538
538
  dimension: z.ZodRecord<z.ZodEnum<{
539
+ time: "time";
539
540
  length: "length";
540
541
  mass: "mass";
541
- time: "time";
542
542
  electricCurrent: "electricCurrent";
543
543
  thermodynamicTemperature: "thermodynamicTemperature";
544
544
  amountOfSubstance: "amountOfSubstance";
@@ -685,9 +685,9 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
685
685
  symbol: z.ZodString;
686
686
  name: z.ZodOptional<z.ZodString>;
687
687
  dimension: z.ZodRecord<z.ZodEnum<{
688
+ time: "time";
688
689
  length: "length";
689
690
  mass: "mass";
690
- time: "time";
691
691
  electricCurrent: "electricCurrent";
692
692
  thermodynamicTemperature: "thermodynamicTemperature";
693
693
  amountOfSubstance: "amountOfSubstance";
@@ -893,9 +893,9 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
893
893
  symbol: z.ZodString;
894
894
  name: z.ZodOptional<z.ZodString>;
895
895
  dimension: z.ZodRecord<z.ZodEnum<{
896
+ time: "time";
896
897
  length: "length";
897
898
  mass: "mass";
898
- time: "time";
899
899
  electricCurrent: "electricCurrent";
900
900
  thermodynamicTemperature: "thermodynamicTemperature";
901
901
  amountOfSubstance: "amountOfSubstance";
@@ -1038,9 +1038,9 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1038
1038
  symbol: z.ZodString;
1039
1039
  name: z.ZodOptional<z.ZodString>;
1040
1040
  dimension: z.ZodRecord<z.ZodEnum<{
1041
+ time: "time";
1041
1042
  length: "length";
1042
1043
  mass: "mass";
1043
- time: "time";
1044
1044
  electricCurrent: "electricCurrent";
1045
1045
  thermodynamicTemperature: "thermodynamicTemperature";
1046
1046
  amountOfSubstance: "amountOfSubstance";
@@ -1233,9 +1233,9 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1233
1233
  symbol: z.ZodString;
1234
1234
  name: z.ZodOptional<z.ZodString>;
1235
1235
  dimension: z.ZodRecord<z.ZodEnum<{
1236
+ time: "time";
1236
1237
  length: "length";
1237
1238
  mass: "mass";
1238
- time: "time";
1239
1239
  electricCurrent: "electricCurrent";
1240
1240
  thermodynamicTemperature: "thermodynamicTemperature";
1241
1241
  amountOfSubstance: "amountOfSubstance";
@@ -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<{
@@ -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";
@@ -2577,9 +2578,9 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2577
2578
  symbol: z.ZodString;
2578
2579
  name: z.ZodOptional<z.ZodString>;
2579
2580
  dimension: z.ZodRecord<z.ZodEnum<{
2581
+ time: "time";
2580
2582
  length: "length";
2581
2583
  mass: "mass";
2582
- time: "time";
2583
2584
  electricCurrent: "electricCurrent";
2584
2585
  thermodynamicTemperature: "thermodynamicTemperature";
2585
2586
  amountOfSubstance: "amountOfSubstance";
@@ -3306,9 +3307,9 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
3306
3307
  symbol: z.ZodString;
3307
3308
  name: z.ZodOptional<z.ZodString>;
3308
3309
  dimension: z.ZodRecord<z.ZodEnum<{
3310
+ time: "time";
3309
3311
  length: "length";
3310
3312
  mass: "mass";
3311
- time: "time";
3312
3313
  electricCurrent: "electricCurrent";
3313
3314
  thermodynamicTemperature: "thermodynamicTemperature";
3314
3315
  amountOfSubstance: "amountOfSubstance";
@@ -3434,9 +3435,9 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
3434
3435
  symbol: z.ZodString;
3435
3436
  name: z.ZodOptional<z.ZodString>;
3436
3437
  dimension: z.ZodRecord<z.ZodEnum<{
3438
+ time: "time";
3437
3439
  length: "length";
3438
3440
  mass: "mass";
3439
- time: "time";
3440
3441
  electricCurrent: "electricCurrent";
3441
3442
  thermodynamicTemperature: "thermodynamicTemperature";
3442
3443
  amountOfSubstance: "amountOfSubstance";
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-C-4UJ78w.cjs";
1
+ import { a as epubContentCodec, i as epubCodec, n as decodePackage, o as packageCodec, r as encodePackage, t as EpubBytesSchema } from "./codec-DqV3Y5Fa.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-DpvZLWRM.js";
1
+ import { a as epubContentCodec, i as epubCodec, n as decodePackage, o as packageCodec, r as encodePackage, t as EpubBytesSchema } from "./codec-d7Sr4Y0B.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-C-4UJ78w.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-DqV3Y5Fa.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-DpvZLWRM.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-d7Sr4Y0B.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";
@@ -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-C-4UJ78w.cjs";
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-DqV3Y5Fa.cjs";
2
2
  export { BinaryPart, BinaryPartSchema, EpubPackage, EpubPackageSchema, Part, PartSchema, XmlPart, XmlPartSchema };
@@ -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-DpvZLWRM.js";
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-d7Sr4Y0B.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-C-4UJ78w.cjs";
1
+ import { l as packageFromEntries, u as parsePackage } from "../codec-DqV3Y5Fa.cjs";
2
2
  export { packageFromEntries, parsePackage };
@@ -1,2 +1,2 @@
1
- import { l as packageFromEntries, u as parsePackage } from "../codec-DpvZLWRM.js";
1
+ import { l as packageFromEntries, u as parsePackage } from "../codec-d7Sr4Y0B.js";
2
2
  export { packageFromEntries, parsePackage };
@@ -1,2 +1,2 @@
1
- import { c as serializePackage, s as packageToEntries } from "../codec-C-4UJ78w.cjs";
1
+ import { c as serializePackage, s as packageToEntries } from "../codec-DqV3Y5Fa.cjs";
2
2
  export { packageToEntries, serializePackage };
@@ -1,2 +1,2 @@
1
- import { c as serializePackage, s as packageToEntries } from "../codec-DpvZLWRM.js";
1
+ import { c as serializePackage, s as packageToEntries } from "../codec-d7Sr4Y0B.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.7",
3
+ "version": "1.3.8",
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.8.0",
81
+ "document-schema.js": "7.9.0",
82
82
  "entities": "8.0.0",
83
83
  "fast-xml-parser": "5.10.1",
84
84
  "fflate": "0.8.3",