epub-codec 1.3.5 → 1.3.6

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.
@@ -436,6 +436,11 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
436
436
  }, z.core.$strip>;
437
437
  kind: z.ZodLiteral<"presentation">;
438
438
  }, z.core.$strip>, z.ZodObject<{
439
+ names: z.ZodOptional<z.ZodArray<z.ZodObject<{
440
+ name: z.ZodString;
441
+ refersTo: z.ZodString;
442
+ scopeSheetIndex: z.ZodOptional<z.ZodNumber>;
443
+ }, z.core.$strip>>>;
439
444
  children: z.ZodArray<z.ZodCustom<import("document-schema.js").SheetGroupNode, import("document-schema.js").SheetGroupNode>>;
440
445
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
441
446
  widthPt: z.ZodNumber;
@@ -1216,8 +1221,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1216
1221
  formula: z.ZodOptional<z.ZodString>;
1217
1222
  displayText: z.ZodString;
1218
1223
  numberFormatCode: z.ZodOptional<z.ZodString>;
1219
- runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1220
- text: z.ZodString;
1224
+ font: z.ZodOptional<z.ZodObject<{
1221
1225
  bold: z.ZodOptional<z.ZodBoolean>;
1222
1226
  italic: z.ZodOptional<z.ZodBoolean>;
1223
1227
  underline: z.ZodOptional<z.ZodBoolean>;
@@ -1229,6 +1233,8 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1229
1233
  g: z.ZodNumber;
1230
1234
  b: z.ZodNumber;
1231
1235
  }, z.core.$strip>>;
1236
+ }, z.core.$strip>>;
1237
+ runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1232
1238
  hyperlink: z.ZodOptional<z.ZodString>;
1233
1239
  verticalAlign: z.ZodOptional<z.ZodEnum<{
1234
1240
  superscript: "superscript";
@@ -1266,6 +1272,18 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1266
1272
  widthPt: z.ZodNumber;
1267
1273
  heightPt: z.ZodNumber;
1268
1274
  }, z.core.$strip>>>;
1275
+ bold: z.ZodOptional<z.ZodBoolean>;
1276
+ italic: z.ZodOptional<z.ZodBoolean>;
1277
+ underline: z.ZodOptional<z.ZodBoolean>;
1278
+ strike: z.ZodOptional<z.ZodBoolean>;
1279
+ fontFamily: z.ZodOptional<z.ZodString>;
1280
+ sizePt: z.ZodOptional<z.ZodNumber>;
1281
+ color: z.ZodOptional<z.ZodObject<{
1282
+ r: z.ZodNumber;
1283
+ g: z.ZodNumber;
1284
+ b: z.ZodNumber;
1285
+ }, z.core.$strip>>;
1286
+ text: z.ZodString;
1269
1287
  }, z.core.$strip>>>;
1270
1288
  colSpan: z.ZodOptional<z.ZodNumber>;
1271
1289
  rowSpan: z.ZodOptional<z.ZodNumber>;
@@ -1500,6 +1518,14 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1500
1518
  widthPt: z.ZodNumber;
1501
1519
  heightPt: z.ZodNumber;
1502
1520
  altText: z.ZodOptional<z.ZodString>;
1521
+ original: z.ZodOptional<z.ZodObject<{
1522
+ filter: z.ZodEnum<{
1523
+ jbig2: "jbig2";
1524
+ jpeg2000: "jpeg2000";
1525
+ }>;
1526
+ base64: z.ZodString;
1527
+ jbig2GlobalsBase64: z.ZodOptional<z.ZodString>;
1528
+ }, z.core.$strip>>;
1503
1529
  floatPosition: z.ZodOptional<z.ZodObject<{
1504
1530
  horizontal: z.ZodUnion<readonly [z.ZodObject<{
1505
1531
  relativeTo: z.ZodEnum<{
@@ -2314,6 +2340,11 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2314
2340
  xml: z.ZodString;
2315
2341
  }, z.core.$strict>>;
2316
2342
  }, z.core.$strip>>;
2343
+ names: z.ZodOptional<z.ZodArray<z.ZodObject<{
2344
+ name: z.ZodString;
2345
+ refersTo: z.ZodString;
2346
+ scopeSheetIndex: z.ZodOptional<z.ZodNumber>;
2347
+ }, z.core.$strip>>>;
2317
2348
  symbolTable: z.ZodOptional<z.ZodObject<{
2318
2349
  symbols: z.ZodArray<z.ZodObject<{
2319
2350
  glyph: z.ZodString;
@@ -436,6 +436,11 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
436
436
  }, z.core.$strip>;
437
437
  kind: z.ZodLiteral<"presentation">;
438
438
  }, z.core.$strip>, z.ZodObject<{
439
+ names: z.ZodOptional<z.ZodArray<z.ZodObject<{
440
+ name: z.ZodString;
441
+ refersTo: z.ZodString;
442
+ scopeSheetIndex: z.ZodOptional<z.ZodNumber>;
443
+ }, z.core.$strip>>>;
439
444
  children: z.ZodArray<z.ZodCustom<import("document-schema.js").SheetGroupNode, import("document-schema.js").SheetGroupNode>>;
440
445
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
441
446
  widthPt: z.ZodNumber;
@@ -1216,8 +1221,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1216
1221
  formula: z.ZodOptional<z.ZodString>;
1217
1222
  displayText: z.ZodString;
1218
1223
  numberFormatCode: z.ZodOptional<z.ZodString>;
1219
- runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1220
- text: z.ZodString;
1224
+ font: z.ZodOptional<z.ZodObject<{
1221
1225
  bold: z.ZodOptional<z.ZodBoolean>;
1222
1226
  italic: z.ZodOptional<z.ZodBoolean>;
1223
1227
  underline: z.ZodOptional<z.ZodBoolean>;
@@ -1229,6 +1233,8 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1229
1233
  g: z.ZodNumber;
1230
1234
  b: z.ZodNumber;
1231
1235
  }, z.core.$strip>>;
1236
+ }, z.core.$strip>>;
1237
+ runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1232
1238
  hyperlink: z.ZodOptional<z.ZodString>;
1233
1239
  verticalAlign: z.ZodOptional<z.ZodEnum<{
1234
1240
  superscript: "superscript";
@@ -1266,6 +1272,18 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1266
1272
  widthPt: z.ZodNumber;
1267
1273
  heightPt: z.ZodNumber;
1268
1274
  }, z.core.$strip>>>;
1275
+ bold: z.ZodOptional<z.ZodBoolean>;
1276
+ italic: z.ZodOptional<z.ZodBoolean>;
1277
+ underline: z.ZodOptional<z.ZodBoolean>;
1278
+ strike: z.ZodOptional<z.ZodBoolean>;
1279
+ fontFamily: z.ZodOptional<z.ZodString>;
1280
+ sizePt: z.ZodOptional<z.ZodNumber>;
1281
+ color: z.ZodOptional<z.ZodObject<{
1282
+ r: z.ZodNumber;
1283
+ g: z.ZodNumber;
1284
+ b: z.ZodNumber;
1285
+ }, z.core.$strip>>;
1286
+ text: z.ZodString;
1269
1287
  }, z.core.$strip>>>;
1270
1288
  colSpan: z.ZodOptional<z.ZodNumber>;
1271
1289
  rowSpan: z.ZodOptional<z.ZodNumber>;
@@ -1500,6 +1518,14 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
1500
1518
  widthPt: z.ZodNumber;
1501
1519
  heightPt: z.ZodNumber;
1502
1520
  altText: z.ZodOptional<z.ZodString>;
1521
+ original: z.ZodOptional<z.ZodObject<{
1522
+ filter: z.ZodEnum<{
1523
+ jbig2: "jbig2";
1524
+ jpeg2000: "jpeg2000";
1525
+ }>;
1526
+ base64: z.ZodString;
1527
+ jbig2GlobalsBase64: z.ZodOptional<z.ZodString>;
1528
+ }, z.core.$strip>>;
1503
1529
  floatPosition: z.ZodOptional<z.ZodObject<{
1504
1530
  horizontal: z.ZodUnion<readonly [z.ZodObject<{
1505
1531
  relativeTo: z.ZodEnum<{
@@ -2314,6 +2340,11 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
2314
2340
  xml: z.ZodString;
2315
2341
  }, z.core.$strict>>;
2316
2342
  }, z.core.$strip>>;
2343
+ names: z.ZodOptional<z.ZodArray<z.ZodObject<{
2344
+ name: z.ZodString;
2345
+ refersTo: z.ZodString;
2346
+ scopeSheetIndex: z.ZodOptional<z.ZodNumber>;
2347
+ }, z.core.$strip>>>;
2317
2348
  symbolTable: z.ZodOptional<z.ZodObject<{
2318
2349
  symbols: z.ZodArray<z.ZodObject<{
2319
2350
  glyph: z.ZodString;
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-DIDwGivS.cjs";
1
+ import { a as epubContentCodec, i as epubCodec, n as decodePackage, o as packageCodec, r as encodePackage, t as EpubBytesSchema } from "./codec-D1d9aS27.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-DLyNH4rX.js";
1
+ import { a as epubContentCodec, i as epubCodec, n as decodePackage, o as packageCodec, r as encodePackage, t as EpubBytesSchema } from "./codec-CPAZbRZe.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-DIDwGivS.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-D1d9aS27.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-DLyNH4rX.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-CPAZbRZe.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-DIDwGivS.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-D1d9aS27.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-DLyNH4rX.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-CPAZbRZe.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-DIDwGivS.cjs";
1
+ import { l as packageFromEntries, u as parsePackage } from "../codec-D1d9aS27.cjs";
2
2
  export { packageFromEntries, parsePackage };
@@ -1,2 +1,2 @@
1
- import { l as packageFromEntries, u as parsePackage } from "../codec-DLyNH4rX.js";
1
+ import { l as packageFromEntries, u as parsePackage } from "../codec-CPAZbRZe.js";
2
2
  export { packageFromEntries, parsePackage };
@@ -1,2 +1,2 @@
1
- import { c as serializePackage, s as packageToEntries } from "../codec-DIDwGivS.cjs";
1
+ import { c as serializePackage, s as packageToEntries } from "../codec-D1d9aS27.cjs";
2
2
  export { packageToEntries, serializePackage };
@@ -1,2 +1,2 @@
1
- import { c as serializePackage, s as packageToEntries } from "../codec-DLyNH4rX.js";
1
+ import { c as serializePackage, s as packageToEntries } from "../codec-CPAZbRZe.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.5",
3
+ "version": "1.3.6",
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.6.1",
81
+ "document-schema.js": "7.7.0",
82
82
  "entities": "8.0.0",
83
83
  "fast-xml-parser": "5.10.1",
84
84
  "fflate": "0.8.3",