epub-codec 1.2.5 → 1.2.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.
- package/dist/codec.d.cts +18 -18
- package/dist/codec.d.ts +18 -18
- package/package.json +2 -2
package/dist/codec.d.cts
CHANGED
|
@@ -600,7 +600,7 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
600
600
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
601
601
|
latex: z.ZodString;
|
|
602
602
|
}, z.core.$strip>>;
|
|
603
|
-
content: z.ZodOptional<z.
|
|
603
|
+
content: z.ZodOptional<z.ZodType<import("document-schema.js").MathExpression, import("document-schema.js").MathExpression, z.core.$ZodTypeInternals<import("document-schema.js").MathExpression, import("document-schema.js").MathExpression>>>;
|
|
604
604
|
provenance: z.ZodOptional<z.ZodObject<{
|
|
605
605
|
source: z.ZodString;
|
|
606
606
|
pageRef: z.ZodOptional<z.ZodString>;
|
|
@@ -785,7 +785,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
785
785
|
bottomPt: z.ZodNumber;
|
|
786
786
|
leftPt: z.ZodNumber;
|
|
787
787
|
}, z.core.$strip>;
|
|
788
|
-
blocks: z.ZodArray<z.
|
|
788
|
+
blocks: z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>;
|
|
789
789
|
breakType: z.ZodOptional<z.ZodEnum<{
|
|
790
790
|
nextPage: "nextPage";
|
|
791
791
|
continuous: "continuous";
|
|
@@ -928,7 +928,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
928
928
|
widthPt: z.ZodNumber;
|
|
929
929
|
heightPt: z.ZodNumber;
|
|
930
930
|
}, z.core.$strip>>>;
|
|
931
|
-
blocks: z.ZodArray<z.
|
|
931
|
+
blocks: z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>;
|
|
932
932
|
}, z.core.$strip>>;
|
|
933
933
|
notes: z.ZodString;
|
|
934
934
|
source: z.ZodOptional<z.ZodObject<{
|
|
@@ -1416,7 +1416,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1416
1416
|
columns: z.ZodArray<z.ZodNumber>;
|
|
1417
1417
|
}, z.core.$strip>>;
|
|
1418
1418
|
}, z.core.$strip>;
|
|
1419
|
-
embeddedObjects: z.ZodOptional<z.ZodArray<z.
|
|
1419
|
+
embeddedObjects: z.ZodOptional<z.ZodArray<z.ZodType<import("document-schema.js").ContentEmbeddedObject, import("document-schema.js").ContentEmbeddedObject, z.core.$ZodTypeInternals<import("document-schema.js").ContentEmbeddedObject, import("document-schema.js").ContentEmbeddedObject>>>>;
|
|
1420
1420
|
dataValidations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1421
1421
|
ranges: z.ZodArray<z.ZodObject<{
|
|
1422
1422
|
startRow: z.ZodNumber;
|
|
@@ -1884,11 +1884,11 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1884
1884
|
stops: z.ZodArray<z.ZodObject<{
|
|
1885
1885
|
value: z.ZodObject<{
|
|
1886
1886
|
type: z.ZodEnum<{
|
|
1887
|
-
num: "num";
|
|
1888
|
-
min: "min";
|
|
1889
|
-
max: "max";
|
|
1890
1887
|
formula: "formula";
|
|
1888
|
+
num: "num";
|
|
1891
1889
|
percent: "percent";
|
|
1890
|
+
max: "max";
|
|
1891
|
+
min: "min";
|
|
1892
1892
|
percentile: "percentile";
|
|
1893
1893
|
}>;
|
|
1894
1894
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -1930,22 +1930,22 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1930
1930
|
}, z.core.$strip>, z.ZodObject<{
|
|
1931
1931
|
min: z.ZodObject<{
|
|
1932
1932
|
type: z.ZodEnum<{
|
|
1933
|
-
num: "num";
|
|
1934
|
-
min: "min";
|
|
1935
|
-
max: "max";
|
|
1936
1933
|
formula: "formula";
|
|
1934
|
+
num: "num";
|
|
1937
1935
|
percent: "percent";
|
|
1936
|
+
max: "max";
|
|
1937
|
+
min: "min";
|
|
1938
1938
|
percentile: "percentile";
|
|
1939
1939
|
}>;
|
|
1940
1940
|
value: z.ZodOptional<z.ZodString>;
|
|
1941
1941
|
}, z.core.$strip>;
|
|
1942
1942
|
max: z.ZodObject<{
|
|
1943
1943
|
type: z.ZodEnum<{
|
|
1944
|
-
num: "num";
|
|
1945
|
-
min: "min";
|
|
1946
|
-
max: "max";
|
|
1947
1944
|
formula: "formula";
|
|
1945
|
+
num: "num";
|
|
1948
1946
|
percent: "percent";
|
|
1947
|
+
max: "max";
|
|
1948
|
+
min: "min";
|
|
1949
1949
|
percentile: "percentile";
|
|
1950
1950
|
}>;
|
|
1951
1951
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -1988,11 +1988,11 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1988
1988
|
iconSetType: z.ZodString;
|
|
1989
1989
|
thresholds: z.ZodArray<z.ZodObject<{
|
|
1990
1990
|
type: z.ZodEnum<{
|
|
1991
|
-
num: "num";
|
|
1992
|
-
min: "min";
|
|
1993
|
-
max: "max";
|
|
1994
1991
|
formula: "formula";
|
|
1992
|
+
num: "num";
|
|
1995
1993
|
percent: "percent";
|
|
1994
|
+
max: "max";
|
|
1995
|
+
min: "min";
|
|
1996
1996
|
percentile: "percentile";
|
|
1997
1997
|
}>;
|
|
1998
1998
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -2164,7 +2164,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2164
2164
|
widthPt: z.ZodNumber;
|
|
2165
2165
|
heightPt: z.ZodNumber;
|
|
2166
2166
|
}, z.core.$strip>>>;
|
|
2167
|
-
blocks: z.ZodArray<z.
|
|
2167
|
+
blocks: z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>;
|
|
2168
2168
|
}, z.core.$strip>>;
|
|
2169
2169
|
vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2170
2170
|
kind: z.ZodLiteral<"rect">;
|
|
@@ -2513,7 +2513,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2513
2513
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
2514
2514
|
latex: z.ZodString;
|
|
2515
2515
|
}, z.core.$strip>>;
|
|
2516
|
-
content: z.ZodOptional<z.
|
|
2516
|
+
content: z.ZodOptional<z.ZodType<import("document-schema.js").MathExpression, import("document-schema.js").MathExpression, z.core.$ZodTypeInternals<import("document-schema.js").MathExpression, import("document-schema.js").MathExpression>>>;
|
|
2517
2517
|
provenance: z.ZodOptional<z.ZodObject<{
|
|
2518
2518
|
source: z.ZodString;
|
|
2519
2519
|
pageRef: z.ZodOptional<z.ZodString>;
|
package/dist/codec.d.ts
CHANGED
|
@@ -600,7 +600,7 @@ declare const epubCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Ar
|
|
|
600
600
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
601
601
|
latex: z.ZodString;
|
|
602
602
|
}, z.core.$strip>>;
|
|
603
|
-
content: z.ZodOptional<z.
|
|
603
|
+
content: z.ZodOptional<z.ZodType<import("document-schema.js").MathExpression, import("document-schema.js").MathExpression, z.core.$ZodTypeInternals<import("document-schema.js").MathExpression, import("document-schema.js").MathExpression>>>;
|
|
604
604
|
provenance: z.ZodOptional<z.ZodObject<{
|
|
605
605
|
source: z.ZodString;
|
|
606
606
|
pageRef: z.ZodOptional<z.ZodString>;
|
|
@@ -785,7 +785,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
785
785
|
bottomPt: z.ZodNumber;
|
|
786
786
|
leftPt: z.ZodNumber;
|
|
787
787
|
}, z.core.$strip>;
|
|
788
|
-
blocks: z.ZodArray<z.
|
|
788
|
+
blocks: z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>;
|
|
789
789
|
breakType: z.ZodOptional<z.ZodEnum<{
|
|
790
790
|
nextPage: "nextPage";
|
|
791
791
|
continuous: "continuous";
|
|
@@ -928,7 +928,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
928
928
|
widthPt: z.ZodNumber;
|
|
929
929
|
heightPt: z.ZodNumber;
|
|
930
930
|
}, z.core.$strip>>>;
|
|
931
|
-
blocks: z.ZodArray<z.
|
|
931
|
+
blocks: z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>;
|
|
932
932
|
}, z.core.$strip>>;
|
|
933
933
|
notes: z.ZodString;
|
|
934
934
|
source: z.ZodOptional<z.ZodObject<{
|
|
@@ -1416,7 +1416,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1416
1416
|
columns: z.ZodArray<z.ZodNumber>;
|
|
1417
1417
|
}, z.core.$strip>>;
|
|
1418
1418
|
}, z.core.$strip>;
|
|
1419
|
-
embeddedObjects: z.ZodOptional<z.ZodArray<z.
|
|
1419
|
+
embeddedObjects: z.ZodOptional<z.ZodArray<z.ZodType<import("document-schema.js").ContentEmbeddedObject, import("document-schema.js").ContentEmbeddedObject, z.core.$ZodTypeInternals<import("document-schema.js").ContentEmbeddedObject, import("document-schema.js").ContentEmbeddedObject>>>>;
|
|
1420
1420
|
dataValidations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1421
1421
|
ranges: z.ZodArray<z.ZodObject<{
|
|
1422
1422
|
startRow: z.ZodNumber;
|
|
@@ -1884,11 +1884,11 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1884
1884
|
stops: z.ZodArray<z.ZodObject<{
|
|
1885
1885
|
value: z.ZodObject<{
|
|
1886
1886
|
type: z.ZodEnum<{
|
|
1887
|
-
num: "num";
|
|
1888
|
-
min: "min";
|
|
1889
|
-
max: "max";
|
|
1890
1887
|
formula: "formula";
|
|
1888
|
+
num: "num";
|
|
1891
1889
|
percent: "percent";
|
|
1890
|
+
max: "max";
|
|
1891
|
+
min: "min";
|
|
1892
1892
|
percentile: "percentile";
|
|
1893
1893
|
}>;
|
|
1894
1894
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -1930,22 +1930,22 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1930
1930
|
}, z.core.$strip>, z.ZodObject<{
|
|
1931
1931
|
min: z.ZodObject<{
|
|
1932
1932
|
type: z.ZodEnum<{
|
|
1933
|
-
num: "num";
|
|
1934
|
-
min: "min";
|
|
1935
|
-
max: "max";
|
|
1936
1933
|
formula: "formula";
|
|
1934
|
+
num: "num";
|
|
1937
1935
|
percent: "percent";
|
|
1936
|
+
max: "max";
|
|
1937
|
+
min: "min";
|
|
1938
1938
|
percentile: "percentile";
|
|
1939
1939
|
}>;
|
|
1940
1940
|
value: z.ZodOptional<z.ZodString>;
|
|
1941
1941
|
}, z.core.$strip>;
|
|
1942
1942
|
max: z.ZodObject<{
|
|
1943
1943
|
type: z.ZodEnum<{
|
|
1944
|
-
num: "num";
|
|
1945
|
-
min: "min";
|
|
1946
|
-
max: "max";
|
|
1947
1944
|
formula: "formula";
|
|
1945
|
+
num: "num";
|
|
1948
1946
|
percent: "percent";
|
|
1947
|
+
max: "max";
|
|
1948
|
+
min: "min";
|
|
1949
1949
|
percentile: "percentile";
|
|
1950
1950
|
}>;
|
|
1951
1951
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -1988,11 +1988,11 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
1988
1988
|
iconSetType: z.ZodString;
|
|
1989
1989
|
thresholds: z.ZodArray<z.ZodObject<{
|
|
1990
1990
|
type: z.ZodEnum<{
|
|
1991
|
-
num: "num";
|
|
1992
|
-
min: "min";
|
|
1993
|
-
max: "max";
|
|
1994
1991
|
formula: "formula";
|
|
1992
|
+
num: "num";
|
|
1995
1993
|
percent: "percent";
|
|
1994
|
+
max: "max";
|
|
1995
|
+
min: "min";
|
|
1996
1996
|
percentile: "percentile";
|
|
1997
1997
|
}>;
|
|
1998
1998
|
value: z.ZodOptional<z.ZodString>;
|
|
@@ -2164,7 +2164,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2164
2164
|
widthPt: z.ZodNumber;
|
|
2165
2165
|
heightPt: z.ZodNumber;
|
|
2166
2166
|
}, z.core.$strip>>>;
|
|
2167
|
-
blocks: z.ZodArray<z.
|
|
2167
|
+
blocks: z.ZodLazy<z.ZodArray<z.ZodType<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock, z.core.$ZodTypeInternals<import("document-schema.js").ContentBlock, import("document-schema.js").ContentBlock>>>>;
|
|
2168
2168
|
}, z.core.$strip>>;
|
|
2169
2169
|
vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2170
2170
|
kind: z.ZodLiteral<"rect">;
|
|
@@ -2513,7 +2513,7 @@ declare const epubContentCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>,
|
|
|
2513
2513
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
2514
2514
|
latex: z.ZodString;
|
|
2515
2515
|
}, z.core.$strip>>;
|
|
2516
|
-
content: z.ZodOptional<z.
|
|
2516
|
+
content: z.ZodOptional<z.ZodType<import("document-schema.js").MathExpression, import("document-schema.js").MathExpression, z.core.$ZodTypeInternals<import("document-schema.js").MathExpression, import("document-schema.js").MathExpression>>>;
|
|
2517
2517
|
provenance: z.ZodOptional<z.ZodObject<{
|
|
2518
2518
|
source: z.ZodString;
|
|
2519
2519
|
pageRef: z.ZodOptional<z.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "epub-codec",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.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": "^6.2.
|
|
81
|
+
"document-schema.js": "^6.2.2",
|
|
82
82
|
"entities": "^8.0.0",
|
|
83
83
|
"fast-xml-parser": "^5.10.1",
|
|
84
84
|
"fflate": "^0.8.3",
|