odf.js 2.6.12 → 2.7.1
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.ts +71 -1
- package/dist/image/sniff.d.ts +4 -1
- package/dist/index.d.ts +44 -43
- package/dist/manifest.d.ts +39 -1
- package/dist/media-type.d.ts +19 -1
- package/dist/mimetype.d.ts +5 -1
- package/dist/ns.d.ts +32 -1
- package/dist/package-io/read.d.ts +4 -1
- package/dist/package-io/write.d.ts +6 -1
- package/dist/styles/properties.d.ts +43 -1
- package/dist/styles/registry.d.ts +36 -1
- package/dist/styles/serialize.d.ts +6 -1
- package/dist/styles/span.d.ts +4 -1
- package/dist/typed/draw/embedded.d.ts +12 -1
- package/dist/typed/draw/shapes.d.ts +17 -1
- package/dist/typed/formula/read.d.ts +13 -1
- package/dist/typed/odb/form.d.ts +30 -1
- package/dist/typed/odb/read.d.ts +27 -1
- package/dist/typed/odb/report.d.ts +47 -1
- package/dist/typed/odb/subdocument.d.ts +7 -1
- package/dist/typed/odg/read.d.ts +9 -1
- package/dist/typed/odm/read.d.ts +14 -1
- package/dist/typed/odp/read.d.ts +9 -1
- package/dist/typed/ods/read.d.ts +9 -1
- package/dist/typed/odt/read.cjs +21 -1
- package/dist/typed/odt/read.d.ts +9 -1
- package/dist/typed/odt/read.js +21 -1
- package/dist/typed/shared/a1.d.ts +17 -1
- package/dist/typed/shared/cascade.d.ts +21 -1
- package/dist/typed/shared/color.d.ts +5 -1
- package/dist/typed/shared/geometry.d.ts +11 -1
- package/dist/typed/shared/masterpage.d.ts +7 -1
- package/dist/typed/shared/metadata.d.ts +6 -1
- package/dist/typed/shared/paragraph.d.ts +6 -1
- package/dist/typed/shared/path.d.ts +33 -1
- package/dist/typed/shared/table.d.ts +13 -1
- package/dist/typed/shared/text.d.ts +7 -1
- package/dist/typed/shared/transform.d.ts +25 -1
- package/dist/typed/shared/units.d.ts +5 -1
- package/dist/util/base64.d.ts +4 -1
- package/dist/xml/build.d.ts +4 -1
- package/dist/xml/entities.d.ts +4 -1
- package/dist/xml/fragment.d.ts +5 -1
- package/dist/xml/parse.d.ts +4 -1
- package/dist/xml/query.d.ts +8 -1
- package/dist/zip.d.ts +8 -1
- package/package.json +1 -1
- package/dist/a1-5e9veCyu.d.ts +0 -18
- package/dist/base64--HuymRl_.d.ts +0 -5
- package/dist/build-Z1KRkSEB.d.ts +0 -5
- package/dist/cascade-8u4q16_U.d.ts +0 -22
- package/dist/codec-C0HcLUmU.d.ts +0 -107
- package/dist/color-CqXjt_to.d.ts +0 -6
- package/dist/embedded-CNMqOrnt.d.ts +0 -13
- package/dist/entities-BZlXvHqu.d.ts +0 -5
- package/dist/form-DcGOX5RW.d.ts +0 -31
- package/dist/fragment-B1ZV7T5Z.d.ts +0 -6
- package/dist/geometry-DnhkIhAM.d.ts +0 -12
- package/dist/manifest-xxJ4FpSe.d.ts +0 -40
- package/dist/masterpage-7nBnqFj-.d.ts +0 -8
- package/dist/media-type-BOLkcHkJ.d.ts +0 -20
- package/dist/metadata-32LoP2TK.d.ts +0 -7
- package/dist/mimetype-uF-RHNpR.d.ts +0 -6
- package/dist/ns-Cihto3Fx.d.ts +0 -33
- package/dist/paragraph-DWNnedIE.d.ts +0 -7
- package/dist/parse-A8_8sdpX.d.ts +0 -5
- package/dist/path-DE7wkIcz.d.ts +0 -34
- package/dist/properties-DjAIdPry.d.ts +0 -44
- package/dist/query-sECN-7vU.d.ts +0 -9
- package/dist/read-B0aBfNRf.d.ts +0 -10
- package/dist/read-BkFbEves.d.ts +0 -15
- package/dist/read-Bleh4LfR.d.ts +0 -14
- package/dist/read-BoIUENWq.d.ts +0 -28
- package/dist/read-C7gT8wtc.d.ts +0 -10
- package/dist/read-CxdHrV1m.d.ts +0 -10
- package/dist/read-DhLNXgiM.d.ts +0 -5
- package/dist/read-Dn9qyBBs.d.ts +0 -10
- package/dist/registry-R43n1hcL.d.ts +0 -37
- package/dist/report-MpwUgXbA.d.ts +0 -48
- package/dist/serialize-DvaE_t5D.d.ts +0 -7
- package/dist/shapes-BJAtBY24.d.ts +0 -18
- package/dist/sniff-DjpnUZRp.d.ts +0 -5
- package/dist/span-KXroEGuH.d.ts +0 -5
- package/dist/subdocument-DQNQF7wV.d.ts +0 -8
- package/dist/table-D81TZyBn.d.ts +0 -14
- package/dist/text-CkNojpZm.d.ts +0 -8
- package/dist/transform-C7GrZZdR.d.ts +0 -26
- package/dist/units-7pCiECuP.d.ts +0 -6
- package/dist/write-C0nwVuPI.d.ts +0 -7
- package/dist/zip-ie17sOo5.d.ts +0 -9
package/dist/codec.d.ts
CHANGED
|
@@ -1,2 +1,72 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as XmlNode } from "./node-CkBWRjNR.js";
|
|
2
|
+
import { Package } from "./model/package.js";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
//#region src/codec.d.ts
|
|
5
|
+
declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
|
+
type: z.ZodLiteral<"text">;
|
|
7
|
+
value: z.ZodString;
|
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
+
type: z.ZodLiteral<"cdata">;
|
|
10
|
+
value: z.ZodString;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
type: z.ZodLiteral<"comment">;
|
|
13
|
+
value: z.ZodString;
|
|
14
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
+
type: z.ZodLiteral<"declaration">;
|
|
16
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
value: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
type: z.ZodLiteral<"pi">;
|
|
22
|
+
target: z.ZodString;
|
|
23
|
+
content: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
type: z.ZodLiteral<"element">;
|
|
26
|
+
tag: z.ZodString;
|
|
27
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
value: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
32
|
+
}, z.core.$strip>], "type">>>;
|
|
33
|
+
declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodObject<{
|
|
34
|
+
parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
35
|
+
kind: z.ZodLiteral<"xml">;
|
|
36
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<"text">;
|
|
38
|
+
value: z.ZodString;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
type: z.ZodLiteral<"cdata">;
|
|
41
|
+
value: z.ZodString;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
type: z.ZodLiteral<"comment">;
|
|
44
|
+
value: z.ZodString;
|
|
45
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
+
type: z.ZodLiteral<"declaration">;
|
|
47
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
value: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
+
type: z.ZodLiteral<"pi">;
|
|
53
|
+
target: z.ZodString;
|
|
54
|
+
content: z.ZodString;
|
|
55
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
+
type: z.ZodLiteral<"element">;
|
|
57
|
+
tag: z.ZodString;
|
|
58
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
value: z.ZodString;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
63
|
+
}, z.core.$strip>], "type">>;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
+
kind: z.ZodLiteral<"binary">;
|
|
66
|
+
base64: z.ZodString;
|
|
67
|
+
}, z.core.$strip>], "kind">>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
|
|
70
|
+
declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
|
|
71
|
+
//#endregion
|
|
2
72
|
export { decodePackage, encodePackage, packageCodec, xmlCodec };
|
package/dist/image/sniff.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/image/sniff.d.ts
|
|
2
|
+
type ImageFormat = 'png' | 'jpeg';
|
|
3
|
+
declare function sniffImageFormat(bytes: Uint8Array<ArrayBuffer>): ImageFormat | undefined;
|
|
4
|
+
//#endregion
|
|
2
5
|
export { ImageFormat, sniffImageFormat };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,46 +1,47 @@
|
|
|
1
1
|
import { _ as isXmlNode, a as XmlComment, c as XmlDeclarationSchema, d as XmlNode, f as XmlNodeSchema, g as XmlTextSchema, h as XmlText, i as XmlCdataSchema, l as XmlElement, m as XmlPiSchema, n as AttributeSchema, o as XmlCommentSchema, p as XmlPi, r as XmlCdata, s as XmlDeclaration, t as Attribute, u as XmlElementSchema } from "./node-CkBWRjNR.js";
|
|
2
2
|
import { BinaryPart, BinaryPartSchema, Package, PackageSchema, Part, PartSchema, XmlPart, XmlPartSchema } from "./model/package.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
3
|
+
import { decodePackage, encodePackage, packageCodec, xmlCodec } from "./codec.js";
|
|
4
|
+
import { ImageFormat, sniffImageFormat } from "./image/sniff.js";
|
|
5
|
+
import { parsePackage } from "./package-io/read.js";
|
|
6
|
+
import { MANIFEST_PART, MIMETYPE_PART, serializePackage } from "./package-io/write.js";
|
|
7
|
+
import { parseXml } from "./xml/parse.js";
|
|
8
|
+
import { buildXml } from "./xml/build.js";
|
|
9
|
+
import { ZipEntry, unzipPackage, zipPackage } from "./zip.js";
|
|
10
|
+
import { base64ToBytes, bytesToBase64 } from "./util/base64.js";
|
|
11
|
+
import { ODF_NAMESPACES, OdfNamespacePrefix, xmlnsAttributes } from "./ns.js";
|
|
12
|
+
import { ODF_MEDIA_TYPES, OdfExtension, mediaTypeForExtension } from "./media-type.js";
|
|
13
|
+
import { readMimetype, writeMimetype } from "./mimetype.js";
|
|
14
|
+
import { el, txt } from "./xml/fragment.js";
|
|
15
|
+
import { decodeXmlText, encodeXmlText } from "./xml/entities.js";
|
|
16
|
+
import { BuildManifestOptions, Manifest, ManifestEntry, ManifestEntrySchema, ManifestProblem, ManifestProblemSchema, ManifestSchema, buildManifest, readManifest, setDocumentMediaType, syncManifest, validateManifest, writeManifest } from "./manifest.js";
|
|
17
|
+
import { ParsedProperties, StyleProperties, StylePropertiesSchema, formatPercentageMultiplier, formatPt, paragraphPropertiesToAttributes, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, textPropertiesToAttributes } from "./styles/properties.js";
|
|
18
|
+
import { buildStylePropertyElements, canonicalPropertiesString } from "./styles/serialize.js";
|
|
19
|
+
import { InternRequest, OtherPartRef, STYLE_FAMILIES, StyleFamily, StyleRegistry, StyleRegistryOptions, isStyleFamily } from "./styles/registry.js";
|
|
20
|
+
import { ensureSpan } from "./styles/span.js";
|
|
21
|
+
import { attrValue, childrenWithTag, elementsWithTag, findChildElement, rootElement } from "./xml/query.js";
|
|
22
|
+
import { LengthUnit, formatOdfLength, parseOdfLength } from "./typed/shared/units.js";
|
|
23
|
+
import { TableCursor, cellReference, columnIndexToLetters, columnLettersToIndex, parseCellReference } from "./typed/shared/a1.js";
|
|
24
|
+
import { formatOdfColor, parseOdfColor } from "./typed/shared/color.js";
|
|
25
|
+
import { parseBox, parseLinePoints, parseMargins, parsePageSize } from "./typed/shared/geometry.js";
|
|
26
|
+
import { decodeOdfText, getOdfSpaceCount, measureOdfNodeLength, sumOdfNodeLength } from "./typed/shared/text.js";
|
|
27
|
+
import { CascadeDiagnostic, StyleCascadeResult, StyleElementChainResult, findStyleElement, resolveStyle, resolveStyleElementChain } from "./typed/shared/cascade.js";
|
|
28
|
+
import { META_PART, readOdfMetadata } from "./typed/shared/metadata.js";
|
|
29
|
+
import { readOdfParagraph } from "./typed/shared/paragraph.js";
|
|
30
|
+
import { readOdfTable } from "./typed/shared/table.js";
|
|
31
|
+
import { OdfPoint, OdfShapeGeometry, OdfTransformFunction, applyOdfTransform, composeOdfGroupTransform, netRotationDeg, parseOdfTransform, resolveOdfShapeGeometry } from "./typed/shared/transform.js";
|
|
32
|
+
import { resolveDrawPageSize, resolvePageLayoutProperties } from "./typed/shared/masterpage.js";
|
|
33
|
+
import { OdfRawPoint, OdfRawSegment, OdfRawSubpath, OdfViewBox, buildOdfSubpaths, parseOdfPathData, parseOdfPointsList, parseOdfViewBox, rawSubpathFromPoints, scaleOdfRawPoint } from "./typed/shared/path.js";
|
|
34
|
+
import { DrawPageContent, readDrawFrame, readDrawImageBlock, readDrawPageContent, walkDrawShapes } from "./typed/draw/shapes.js";
|
|
35
|
+
import { EmbeddedDocumentKind, EmbeddedDrawObject, readDrawObjectReference } from "./typed/draw/embedded.js";
|
|
36
|
+
import { OdpDocument, readOdp } from "./typed/odp/read.js";
|
|
37
|
+
import { OdtDocument, readOdt } from "./typed/odt/read.js";
|
|
38
|
+
import { OdgDocument, readOdg } from "./typed/odg/read.js";
|
|
39
|
+
import { OdsDocument, readOds } from "./typed/ods/read.js";
|
|
40
|
+
import { OdfFormulaDocument, readOdfFormula, readOdfFormulaDocument } from "./typed/formula/read.js";
|
|
41
|
+
import { OdmDocument, OdmSection, readOdm } from "./typed/odm/read.js";
|
|
42
|
+
import { OdbComponentInfo, OdbConnectionInfo, OdbInventory, OdbQueryInfo, readOdbInventory, resolveOdbComponent } from "./typed/odb/read.js";
|
|
43
|
+
import { SubDocumentPackageOptions, subDocumentPackage } from "./typed/odb/subdocument.js";
|
|
44
|
+
import { OdbForm, OdbFormControl, OdbFormDefinition, readOdbForm } from "./typed/odb/form.js";
|
|
45
|
+
import { OdbReport, OdbReportBand, OdbReportElement, OdbReportFunction, OdbReportGroup, readOdbReport } from "./typed/odb/report.js";
|
|
46
|
+
import { Alignment, AlignmentSchema } from "document-schema.js";
|
|
46
47
|
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type BuildManifestOptions, type CascadeDiagnostic, type DrawPageContent, type EmbeddedDocumentKind, type EmbeddedDrawObject, type ImageFormat, type InternRequest, type LengthUnit, MANIFEST_PART, META_PART, MIMETYPE_PART, type Manifest, type ManifestEntry, ManifestEntrySchema, type ManifestProblem, ManifestProblemSchema, ManifestSchema, ODF_MEDIA_TYPES, ODF_NAMESPACES, type OdbComponentInfo, type OdbConnectionInfo, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, type OdfExtension, type OdfFormulaDocument, type OdfNamespacePrefix, type OdfPoint, type OdfRawPoint, type OdfRawSegment, type OdfRawSubpath, type OdfShapeGeometry, type OdfTransformFunction, type OdfViewBox, type OdgDocument, type OdmDocument, type OdmSection, type OdpDocument, type OdsDocument, type OdtDocument, type OtherPartRef, type Package, PackageSchema, type ParsedProperties, type Part, PartSchema, STYLE_FAMILIES, type StyleCascadeResult, type StyleElementChainResult, type StyleFamily, type StyleProperties, StylePropertiesSchema, StyleRegistry, type StyleRegistryOptions, type SubDocumentPackageOptions, TableCursor, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, type ZipEntry, applyOdfTransform, attrValue, base64ToBytes, buildManifest, buildOdfSubpaths, buildStylePropertyElements, buildXml, bytesToBase64, canonicalPropertiesString, cellReference, childrenWithTag, columnIndexToLetters, columnLettersToIndex, composeOdfGroupTransform, decodeOdfText, decodePackage, decodeXmlText, el, elementsWithTag, encodePackage, encodeXmlText, ensureSpan, findChildElement, findStyleElement, formatOdfColor, formatOdfLength, formatPercentageMultiplier, formatPt, getOdfSpaceCount, isStyleFamily, isXmlNode, measureOdfNodeLength, mediaTypeForExtension, netRotationDeg, packageCodec, paragraphPropertiesToAttributes, parseBox, parseCellReference, parseOdfLength as parseLength, parseOdfLength, parseLinePoints, parseMargins, parseOdfColor, parseOdfPathData, parseOdfPointsList, parseOdfTransform, parseOdfViewBox, parsePackage, parsePageSize, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, parseXml, rawSubpathFromPoints, readDrawFrame, readDrawImageBlock, readDrawObjectReference, readDrawPageContent, readManifest, readMimetype, readOdbForm, readOdbInventory, readOdbReport, readOdfFormula, readOdfFormulaDocument, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdm, readOdp, readOds, readOdt, resolveDrawPageSize, resolveOdbComponent, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, serializePackage, setDocumentMediaType, sniffImageFormat, subDocumentPackage, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, txt, unzipPackage, validateManifest, walkDrawShapes, writeManifest, writeMimetype, xmlCodec, xmlnsAttributes, zipPackage };
|
package/dist/manifest.d.ts
CHANGED
|
@@ -1,2 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Package } from "./model/package.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/manifest.d.ts
|
|
4
|
+
declare const ManifestEntrySchema: z.ZodObject<{
|
|
5
|
+
fullPath: z.ZodString;
|
|
6
|
+
mediaType: z.ZodString;
|
|
7
|
+
version: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type ManifestEntry = z.infer<typeof ManifestEntrySchema>;
|
|
10
|
+
declare const ManifestSchema: z.ZodObject<{
|
|
11
|
+
version: z.ZodString;
|
|
12
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
13
|
+
fullPath: z.ZodString;
|
|
14
|
+
mediaType: z.ZodString;
|
|
15
|
+
version: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
type Manifest = z.infer<typeof ManifestSchema>;
|
|
19
|
+
declare const ManifestProblemSchema: z.ZodObject<{
|
|
20
|
+
severity: z.ZodEnum<{
|
|
21
|
+
error: "error";
|
|
22
|
+
warning: "warning";
|
|
23
|
+
}>;
|
|
24
|
+
message: z.ZodString;
|
|
25
|
+
path: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
type ManifestProblem = z.infer<typeof ManifestProblemSchema>;
|
|
28
|
+
declare function readManifest(pkg: Package): Manifest;
|
|
29
|
+
interface BuildManifestOptions {
|
|
30
|
+
documentMediaType?: string;
|
|
31
|
+
version?: string;
|
|
32
|
+
mediaTypeOverrides?: Readonly<Record<string, string>>;
|
|
33
|
+
}
|
|
34
|
+
declare function buildManifest(pkg: Package, options?: BuildManifestOptions): Manifest;
|
|
35
|
+
declare function writeManifest(pkg: Package, manifest: Manifest): void;
|
|
36
|
+
declare function syncManifest(pkg: Package, options?: BuildManifestOptions): void;
|
|
37
|
+
declare function validateManifest(pkg: Package): ManifestProblem[];
|
|
38
|
+
declare function setDocumentMediaType(pkg: Package, mediaType: string, version?: string): void;
|
|
39
|
+
//#endregion
|
|
2
40
|
export { BuildManifestOptions, Manifest, ManifestEntry, ManifestEntrySchema, ManifestProblem, ManifestProblemSchema, ManifestSchema, buildManifest, readManifest, setDocumentMediaType, syncManifest, validateManifest, writeManifest };
|
package/dist/media-type.d.ts
CHANGED
|
@@ -1,2 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/media-type.d.ts
|
|
2
|
+
declare const ODF_MEDIA_TYPES: Readonly<{
|
|
3
|
+
odt: "application/vnd.oasis.opendocument.text";
|
|
4
|
+
ott: "application/vnd.oasis.opendocument.text-template";
|
|
5
|
+
ods: "application/vnd.oasis.opendocument.spreadsheet";
|
|
6
|
+
ots: "application/vnd.oasis.opendocument.spreadsheet-template";
|
|
7
|
+
odp: "application/vnd.oasis.opendocument.presentation";
|
|
8
|
+
otp: "application/vnd.oasis.opendocument.presentation-template";
|
|
9
|
+
odg: "application/vnd.oasis.opendocument.graphics";
|
|
10
|
+
otg: "application/vnd.oasis.opendocument.graphics-template";
|
|
11
|
+
odf: "application/vnd.oasis.opendocument.formula";
|
|
12
|
+
otf: "application/vnd.oasis.opendocument.formula-template";
|
|
13
|
+
odm: "application/vnd.oasis.opendocument.text-master";
|
|
14
|
+
otm: "application/vnd.oasis.opendocument.text-master-template";
|
|
15
|
+
odb: "application/vnd.oasis.opendocument.base";
|
|
16
|
+
}>;
|
|
17
|
+
type OdfExtension = keyof typeof ODF_MEDIA_TYPES;
|
|
18
|
+
declare function mediaTypeForExtension(extension: string): string | undefined;
|
|
19
|
+
//#endregion
|
|
2
20
|
export { ODF_MEDIA_TYPES, OdfExtension, mediaTypeForExtension };
|
package/dist/mimetype.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Package } from "./model/package.js";
|
|
2
|
+
//#region src/mimetype.d.ts
|
|
3
|
+
declare function readMimetype(pkg: Package): string | undefined;
|
|
4
|
+
declare function writeMimetype(pkg: Package, mediaType: string): void;
|
|
5
|
+
//#endregion
|
|
2
6
|
export { readMimetype, writeMimetype };
|
package/dist/ns.d.ts
CHANGED
|
@@ -1,2 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/ns.d.ts
|
|
2
|
+
declare const ODF_NAMESPACES: Readonly<{
|
|
3
|
+
office: "urn:oasis:names:tc:opendocument:xmlns:office:1.0";
|
|
4
|
+
style: "urn:oasis:names:tc:opendocument:xmlns:style:1.0";
|
|
5
|
+
text: "urn:oasis:names:tc:opendocument:xmlns:text:1.0";
|
|
6
|
+
table: "urn:oasis:names:tc:opendocument:xmlns:table:1.0";
|
|
7
|
+
draw: "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0";
|
|
8
|
+
fo: "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0";
|
|
9
|
+
svg: "urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0";
|
|
10
|
+
xlink: "http://www.w3.org/1999/xlink";
|
|
11
|
+
dc: "http://purl.org/dc/elements/1.1/";
|
|
12
|
+
meta: "urn:oasis:names:tc:opendocument:xmlns:meta:1.0";
|
|
13
|
+
number: "urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0";
|
|
14
|
+
chart: "urn:oasis:names:tc:opendocument:xmlns:chart:1.0";
|
|
15
|
+
dr3d: "urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0";
|
|
16
|
+
math: "http://www.w3.org/1998/Math/MathML";
|
|
17
|
+
form: "urn:oasis:names:tc:opendocument:xmlns:form:1.0";
|
|
18
|
+
script: "urn:oasis:names:tc:opendocument:xmlns:script:1.0";
|
|
19
|
+
config: "urn:oasis:names:tc:opendocument:xmlns:config:1.0";
|
|
20
|
+
presentation: "urn:oasis:names:tc:opendocument:xmlns:presentation:1.0";
|
|
21
|
+
smil: "urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0";
|
|
22
|
+
anim: "urn:oasis:names:tc:opendocument:xmlns:animation:1.0";
|
|
23
|
+
xforms: "http://www.w3.org/2002/xforms";
|
|
24
|
+
xsd: "http://www.w3.org/2001/XMLSchema";
|
|
25
|
+
xsi: "http://www.w3.org/2001/XMLSchema-instance";
|
|
26
|
+
manifest: "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0";
|
|
27
|
+
db: "urn:oasis:names:tc:opendocument:xmlns:database:1.0";
|
|
28
|
+
rpt: "http://openoffice.org/2005/report";
|
|
29
|
+
}>;
|
|
30
|
+
type OdfNamespacePrefix = keyof typeof ODF_NAMESPACES;
|
|
31
|
+
declare function xmlnsAttributes(prefixes: readonly OdfNamespacePrefix[]): Record<string, string>;
|
|
32
|
+
//#endregion
|
|
2
33
|
export { ODF_NAMESPACES, OdfNamespacePrefix, xmlnsAttributes };
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Package } from "../model/package.js";
|
|
2
|
+
//#region src/package-io/write.d.ts
|
|
3
|
+
declare const MIMETYPE_PART = "mimetype";
|
|
4
|
+
declare const MANIFEST_PART = "META-INF/manifest.xml";
|
|
5
|
+
declare function serializePackage(pkg: Package): Uint8Array<ArrayBuffer>;
|
|
6
|
+
//#endregion
|
|
2
7
|
export { MANIFEST_PART, MIMETYPE_PART, serializePackage };
|
|
@@ -1,2 +1,44 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as XmlElement, t as Attribute } from "../node-CkBWRjNR.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/styles/properties.d.ts
|
|
4
|
+
declare const StylePropertiesSchema: z.ZodObject<{
|
|
5
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
strike: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
10
|
+
sizePt: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
r: z.ZodNumber;
|
|
13
|
+
g: z.ZodNumber;
|
|
14
|
+
b: z.ZodNumber;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
alignment: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
left: "left";
|
|
18
|
+
center: "center";
|
|
19
|
+
right: "right";
|
|
20
|
+
justify: "justify";
|
|
21
|
+
}>>;
|
|
22
|
+
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
lineSpacing: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
indentLeftPt: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
type StyleProperties = z.infer<typeof StylePropertiesSchema>;
|
|
29
|
+
interface ParsedProperties {
|
|
30
|
+
properties: Partial<StyleProperties>;
|
|
31
|
+
hasUnknown: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare function formatPt(valuePt: number): string;
|
|
34
|
+
declare function formatPercentageMultiplier(multiplier: number): string;
|
|
35
|
+
declare function parseTextProperties(element: XmlElement): ParsedProperties;
|
|
36
|
+
declare function parseParagraphProperties(element: XmlElement): ParsedProperties;
|
|
37
|
+
declare function parseStyleElementProperties(styleElement: XmlElement): {
|
|
38
|
+
properties: StyleProperties;
|
|
39
|
+
hasUnknown: boolean;
|
|
40
|
+
};
|
|
41
|
+
declare function textPropertiesToAttributes(properties: StyleProperties): Attribute[];
|
|
42
|
+
declare function paragraphPropertiesToAttributes(properties: StyleProperties): Attribute[];
|
|
43
|
+
//#endregion
|
|
2
44
|
export { ParsedProperties, StyleProperties, StylePropertiesSchema, formatPercentageMultiplier, formatPt, paragraphPropertiesToAttributes, parseParagraphProperties, parseStyleElementProperties, parseTextProperties, textPropertiesToAttributes };
|
|
@@ -1,2 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Package } from "../model/package.js";
|
|
2
|
+
import { StyleProperties } from "./properties.js";
|
|
3
|
+
//#region src/styles/registry.d.ts
|
|
4
|
+
declare const STYLE_FAMILIES: readonly ["paragraph", "text", "table", "table-column", "table-row", "table-cell", "graphic"];
|
|
5
|
+
type StyleFamily = (typeof STYLE_FAMILIES)[number];
|
|
6
|
+
declare function isStyleFamily(value: string): value is StyleFamily;
|
|
7
|
+
interface InternRequest {
|
|
8
|
+
properties: StyleProperties;
|
|
9
|
+
family: StyleFamily;
|
|
10
|
+
parentStyleName?: string;
|
|
11
|
+
}
|
|
12
|
+
interface OtherPartRef {
|
|
13
|
+
pkg: Package;
|
|
14
|
+
partPath: string;
|
|
15
|
+
}
|
|
16
|
+
interface StyleRegistryOptions {
|
|
17
|
+
otherPart?: OtherPartRef;
|
|
18
|
+
additionalReservedNames?: readonly string[];
|
|
19
|
+
}
|
|
20
|
+
declare class StyleRegistry {
|
|
21
|
+
private readonly automaticStyles;
|
|
22
|
+
private readonly prefixes;
|
|
23
|
+
private readonly reservedByFamily;
|
|
24
|
+
private readonly knownStyles;
|
|
25
|
+
private readonly fingerprintToName;
|
|
26
|
+
private readonly nameToFingerprint;
|
|
27
|
+
private readonly familyCounters;
|
|
28
|
+
private constructor();
|
|
29
|
+
static forPart(pkg: Package, partPath: string, options?: StyleRegistryOptions): StyleRegistry;
|
|
30
|
+
fingerprint(request: InternRequest): string;
|
|
31
|
+
intern(request: InternRequest): string;
|
|
32
|
+
private mintName;
|
|
33
|
+
names(): readonly string[];
|
|
34
|
+
gc(referenced: ReadonlySet<string>): number;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
2
37
|
export { InternRequest, OtherPartRef, STYLE_FAMILIES, StyleFamily, StyleRegistry, StyleRegistryOptions, isStyleFamily };
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as XmlElement } from "../node-CkBWRjNR.js";
|
|
2
|
+
import { StyleProperties } from "./properties.js";
|
|
3
|
+
//#region src/styles/serialize.d.ts
|
|
4
|
+
declare function buildStylePropertyElements(properties: StyleProperties): XmlElement[];
|
|
5
|
+
declare function canonicalPropertiesString(properties: StyleProperties): string;
|
|
6
|
+
//#endregion
|
|
2
7
|
export { buildStylePropertyElements, canonicalPropertiesString };
|
package/dist/styles/span.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as XmlElement } from "../node-CkBWRjNR.js";
|
|
2
|
+
//#region src/styles/span.d.ts
|
|
3
|
+
declare function ensureSpan(paragraph: XmlElement, start: number, end: number, styleName: string): XmlElement;
|
|
4
|
+
//#endregion
|
|
2
5
|
export { ensureSpan };
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as XmlElement } from "../../node-CkBWRjNR.js";
|
|
2
|
+
import { Package } from "../../model/package.js";
|
|
3
|
+
import { ContentEmbeddedObjectKind } from "document-schema.js";
|
|
4
|
+
//#region src/typed/draw/embedded.d.ts
|
|
5
|
+
type EmbeddedDocumentKind = ContentEmbeddedObjectKind;
|
|
6
|
+
interface EmbeddedDrawObject {
|
|
7
|
+
objectKind: EmbeddedDocumentKind;
|
|
8
|
+
package: Package;
|
|
9
|
+
href: string;
|
|
10
|
+
}
|
|
11
|
+
declare function readDrawObjectReference(frame: XmlElement, pkg: Package): EmbeddedDrawObject | undefined;
|
|
12
|
+
//#endregion
|
|
2
13
|
export { EmbeddedDocumentKind, EmbeddedDrawObject, readDrawObjectReference };
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as XmlNode, l as XmlElement } from "../../node-CkBWRjNR.js";
|
|
2
|
+
import { Package } from "../../model/package.js";
|
|
3
|
+
import { OdfTransformFunction } from "../shared/transform.js";
|
|
4
|
+
import { Box, ContentImageBlock, ContentShape, ContentVector } from "document-schema.js";
|
|
5
|
+
//#region src/typed/draw/shapes.d.ts
|
|
6
|
+
declare function readDrawImageBlock(image: XmlElement, frame: XmlElement, frameBox: Box, pkg: Package): ContentImageBlock | undefined;
|
|
7
|
+
declare function readDrawFrame(frame: XmlElement, groupFunctions: readonly OdfTransformFunction[], pkg: Package): ContentShape | undefined;
|
|
8
|
+
declare function walkDrawShapes(children: readonly XmlNode[], groupFunctions: readonly OdfTransformFunction[], pkg: Package, out: ContentShape[], indexState?: DocumentIndexState): void;
|
|
9
|
+
interface DocumentIndexState {
|
|
10
|
+
next: number;
|
|
11
|
+
}
|
|
12
|
+
interface DrawPageContent {
|
|
13
|
+
readonly shapes: ContentShape[];
|
|
14
|
+
readonly vectors: ContentVector[];
|
|
15
|
+
}
|
|
16
|
+
declare function readDrawPageContent(children: readonly XmlNode[], pkg: Package): DrawPageContent;
|
|
17
|
+
//#endregion
|
|
2
18
|
export { DrawPageContent, readDrawFrame, readDrawImageBlock, readDrawPageContent, walkDrawShapes };
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as XmlNode, l as XmlElement } from "../../node-CkBWRjNR.js";
|
|
2
|
+
import { Package } from "../../model/package.js";
|
|
3
|
+
import { ContentDocument, LayoutMetadata } from "document-schema.js";
|
|
4
|
+
//#region src/typed/formula/read.d.ts
|
|
5
|
+
interface OdfFormulaDocument {
|
|
6
|
+
starMath?: string;
|
|
7
|
+
mathml: XmlNode[];
|
|
8
|
+
metadata: LayoutMetadata;
|
|
9
|
+
}
|
|
10
|
+
declare function findMathRoot(nodes: readonly XmlNode[]): XmlElement | undefined;
|
|
11
|
+
declare function readOdfFormula(pkg: Package): OdfFormulaDocument;
|
|
12
|
+
declare function readOdfFormulaDocument(pkg: Package): ContentDocument;
|
|
13
|
+
//#endregion
|
|
2
14
|
export { OdfFormulaDocument, findMathRoot, readOdfFormula, readOdfFormulaDocument };
|
package/dist/typed/odb/form.d.ts
CHANGED
|
@@ -1,2 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Package } from "../../model/package.js";
|
|
2
|
+
import { OdtDocument } from "../odt/read.js";
|
|
3
|
+
//#region src/typed/odb/form.d.ts
|
|
4
|
+
interface OdbFormControl {
|
|
5
|
+
tag: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
controlImplementation?: string;
|
|
8
|
+
dataField?: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
controls: OdbFormControl[];
|
|
12
|
+
}
|
|
13
|
+
interface OdbFormDefinition {
|
|
14
|
+
name?: string;
|
|
15
|
+
command?: string;
|
|
16
|
+
commandType?: string;
|
|
17
|
+
datasource?: string;
|
|
18
|
+
filter?: string;
|
|
19
|
+
order?: string;
|
|
20
|
+
controls: OdbFormControl[];
|
|
21
|
+
subForms: OdbFormDefinition[];
|
|
22
|
+
}
|
|
23
|
+
interface OdbForm {
|
|
24
|
+
name: string;
|
|
25
|
+
href: string;
|
|
26
|
+
document: OdtDocument;
|
|
27
|
+
forms: OdbFormDefinition[];
|
|
28
|
+
}
|
|
29
|
+
declare function readOdbForm(pkg: Package, formName: string): OdbForm;
|
|
30
|
+
//#endregion
|
|
2
31
|
export { OdbForm, OdbFormControl, OdbFormDefinition, readOdbForm };
|
package/dist/typed/odb/read.d.ts
CHANGED
|
@@ -1,2 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Package } from "../../model/package.js";
|
|
2
|
+
//#region src/typed/odb/read.d.ts
|
|
3
|
+
interface OdbConnectionInfo {
|
|
4
|
+
type: 'embedded' | 'external';
|
|
5
|
+
driverClass?: string;
|
|
6
|
+
url?: string;
|
|
7
|
+
}
|
|
8
|
+
interface OdbQueryInfo {
|
|
9
|
+
name: string;
|
|
10
|
+
command: string;
|
|
11
|
+
escapeProcessing?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface OdbComponentInfo {
|
|
14
|
+
name: string;
|
|
15
|
+
href: string;
|
|
16
|
+
asTemplate?: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface OdbInventory {
|
|
19
|
+
connection: OdbConnectionInfo | undefined;
|
|
20
|
+
tables: string[];
|
|
21
|
+
queries: OdbQueryInfo[];
|
|
22
|
+
forms: OdbComponentInfo[];
|
|
23
|
+
reports: OdbComponentInfo[];
|
|
24
|
+
}
|
|
25
|
+
declare function resolveOdbComponent(pkg: Package, kind: 'form' | 'report', name: string): OdbComponentInfo;
|
|
26
|
+
declare function readOdbInventory(pkg: Package): OdbInventory;
|
|
27
|
+
//#endregion
|
|
2
28
|
export { OdbComponentInfo, OdbConnectionInfo, OdbInventory, OdbQueryInfo, readOdbInventory, resolveOdbComponent };
|
|
@@ -1,2 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Package } from "../../model/package.js";
|
|
2
|
+
//#region src/typed/odb/report.d.ts
|
|
3
|
+
interface OdbReportElement {
|
|
4
|
+
tag: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
formula?: string;
|
|
8
|
+
dataField?: string;
|
|
9
|
+
}
|
|
10
|
+
interface OdbReportBand {
|
|
11
|
+
kind: 'report-header' | 'page-header' | 'group-header' | 'detail' | 'group-footer' | 'page-footer' | 'report-footer';
|
|
12
|
+
name?: string;
|
|
13
|
+
elements: OdbReportElement[];
|
|
14
|
+
}
|
|
15
|
+
interface OdbReportFunction {
|
|
16
|
+
name: string;
|
|
17
|
+
formula: string;
|
|
18
|
+
}
|
|
19
|
+
interface OdbReportGroup {
|
|
20
|
+
groupExpression?: string;
|
|
21
|
+
sortExpression?: string;
|
|
22
|
+
sortAscending?: boolean;
|
|
23
|
+
startNewColumn?: boolean;
|
|
24
|
+
resetPageNumber?: boolean;
|
|
25
|
+
keepTogether?: string;
|
|
26
|
+
header?: OdbReportBand;
|
|
27
|
+
footer?: OdbReportBand;
|
|
28
|
+
functions: OdbReportFunction[];
|
|
29
|
+
groups: OdbReportGroup[];
|
|
30
|
+
}
|
|
31
|
+
interface OdbReport {
|
|
32
|
+
name: string;
|
|
33
|
+
href: string;
|
|
34
|
+
command?: string;
|
|
35
|
+
commandType?: string;
|
|
36
|
+
caption?: string;
|
|
37
|
+
mimeType?: string;
|
|
38
|
+
reportHeader?: OdbReportBand;
|
|
39
|
+
pageHeader?: OdbReportBand;
|
|
40
|
+
groups: OdbReportGroup[];
|
|
41
|
+
detail?: OdbReportBand;
|
|
42
|
+
pageFooter?: OdbReportBand;
|
|
43
|
+
reportFooter?: OdbReportBand;
|
|
44
|
+
functions: OdbReportFunction[];
|
|
45
|
+
}
|
|
46
|
+
declare function readOdbReport(pkg: Package, reportName: string): OdbReport;
|
|
47
|
+
//#endregion
|
|
2
48
|
export { OdbReport, OdbReportBand, OdbReportElement, OdbReportFunction, OdbReportGroup, readOdbReport };
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Package } from "../../model/package.js";
|
|
2
|
+
//#region src/typed/odb/subdocument.d.ts
|
|
3
|
+
interface SubDocumentPackageOptions {
|
|
4
|
+
allowMissingContent?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare function subDocumentPackage(pkg: Package, prefix: string, options?: SubDocumentPackageOptions): Package;
|
|
7
|
+
//#endregion
|
|
2
8
|
export { SubDocumentPackageOptions, subDocumentPackage };
|
package/dist/typed/odg/read.d.ts
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Package } from "../../model/package.js";
|
|
2
|
+
import { ContentDrawPage, LayoutMetadata } from "document-schema.js";
|
|
3
|
+
//#region src/typed/odg/read.d.ts
|
|
4
|
+
interface OdgDocument {
|
|
5
|
+
metadata: LayoutMetadata;
|
|
6
|
+
pages: ContentDrawPage[];
|
|
7
|
+
}
|
|
8
|
+
declare function readOdg(pkg: Package): OdgDocument;
|
|
9
|
+
//#endregion
|
|
2
10
|
export { OdgDocument, readOdg };
|
package/dist/typed/odm/read.d.ts
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as XmlNode } from "../../node-CkBWRjNR.js";
|
|
2
|
+
import { Package } from "../../model/package.js";
|
|
3
|
+
//#region src/typed/odm/read.d.ts
|
|
4
|
+
interface OdmSection {
|
|
5
|
+
name: string;
|
|
6
|
+
href: string;
|
|
7
|
+
filterName?: string;
|
|
8
|
+
inlineContent?: readonly XmlNode[];
|
|
9
|
+
}
|
|
10
|
+
interface OdmDocument {
|
|
11
|
+
sections: readonly OdmSection[];
|
|
12
|
+
}
|
|
13
|
+
declare function readOdm(pkg: Package): OdmDocument;
|
|
14
|
+
//#endregion
|
|
2
15
|
export { OdmDocument, OdmSection, readOdm };
|