odf.js 5.0.9 → 5.1.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/README.md +16 -2
- package/dist/{cascade-qYa3mgnE.d.cts → cascade-BmvsXcAz.d.cts} +2 -2
- package/dist/{cascade-8u4q16_U.d.ts → cascade-rhqUQrUa.d.ts} +2 -2
- package/dist/{codec-jKlS0rWl.d.cts → codec-BAz7YIru.d.cts} +26 -25
- package/dist/{codec-DqldvlN5.d.ts → codec-BxxFEqvT.d.ts} +26 -25
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/constructs-CJpDDQV0.d.ts +63 -0
- package/dist/constructs-Dy_DMFs3.d.cts +63 -0
- package/dist/embedded-BPhuSEEI.d.ts +18 -0
- package/dist/embedded-J3M3kDvY.d.cts +18 -0
- package/dist/form-BGCT81ss.d.cts +13 -0
- package/dist/form-D3H5H2NL.d.ts +13 -0
- package/dist/forms-D1-0spCe.d.ts +27 -0
- package/dist/forms-cIjw-Jf-.d.cts +27 -0
- package/dist/index.cjs +5 -2
- package/dist/index.d.cts +28 -27
- package/dist/index.d.ts +28 -27
- package/dist/index.js +4 -3
- package/dist/{list-C35tiDYU.d.cts → list-KZeXA0mR.d.cts} +1 -1
- package/dist/{list-acGU0xLo.d.ts → list-Qeuawtew.d.ts} +1 -1
- package/dist/{manifest-xxJ4FpSe.d.ts → manifest-BALwu2JR.d.cts} +1 -1
- package/dist/{manifest-CmsCOCEi.d.cts → manifest-CP1sqyGU.d.ts} +1 -1
- package/dist/manifest.d.cts +1 -1
- package/dist/manifest.d.ts +1 -1
- package/dist/{masterpage-7nBnqFj-.d.ts → masterpage-C1McDhMv.d.ts} +1 -1
- package/dist/{masterpage-EmefIRgy.d.cts → masterpage-XJ2v2khe.d.cts} +1 -1
- package/dist/{metadata-32LoP2TK.d.ts → metadata-1j1zm9Cx.d.cts} +1 -1
- package/dist/{metadata-frJqeeSB.d.cts → metadata-BXpjrAS-.d.ts} +1 -1
- package/dist/{mimetype-uF-RHNpR.d.ts → mimetype-BfkwTeaW.d.ts} +1 -1
- package/dist/{mimetype-BcLX0N-N.d.cts → mimetype-CPNMj04s.d.cts} +1 -1
- package/dist/mimetype.d.cts +1 -1
- package/dist/mimetype.d.ts +1 -1
- package/dist/model/package.d.cts +1 -113
- package/dist/model/package.d.ts +1 -113
- package/dist/package-BUojjTXf.d.ts +114 -0
- package/dist/package-L24lkba-.d.cts +114 -0
- 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/dist/paragraph-6hzAZpmi.d.ts +16 -0
- package/dist/paragraph-BBmSl_sK.d.cts +16 -0
- package/dist/read-B4238IGr.d.cts +12 -0
- package/dist/{read-DrdmKX0x.d.cts → read-BV2an1ok.d.cts} +1 -1
- package/dist/{read-DOuXgPhP.d.ts → read-BnN7u9Y2.d.ts} +1 -1
- package/dist/{read-DhLNXgiM.d.ts → read-CMDEXqGw.d.ts} +1 -1
- package/dist/{read-YSIwlhrk.d.ts → read-CTfeWaWq.d.cts} +1 -1
- package/dist/read-CdvX2qnz.d.ts +12 -0
- package/dist/read-Cs1ktkWB.d.cts +15 -0
- package/dist/{read-BoIUENWq.d.ts → read-CvjbdgH3.d.ts} +1 -1
- package/dist/read-DHuiGh_y.d.ts +15 -0
- package/dist/{read-BM8KaFQS.d.cts → read-DOYWO6BM.d.cts} +1 -1
- package/dist/{read-xCmo7cec.d.cts → read-DUCm1nUv.d.cts} +1 -1
- package/dist/{read-BkFbEves.d.ts → read-DYYxbvfo.d.ts} +1 -1
- package/dist/{read-KpU38maT.d.cts → read-Db_GZ0ZH.d.ts} +1 -1
- package/dist/{read-CFMsXSl7.d.cts → read-DzmMJPHd.d.cts} +1 -1
- package/dist/{read-B9zz_ax1.d.ts → read-lc0t0UHK.d.ts} +1 -1
- package/dist/{read-DNNf5_6n.d.cts → read-ydLJ8bid.d.cts} +1 -1
- package/dist/{registry-R43n1hcL.d.ts → registry-BVeEpUMI.d.ts} +1 -1
- package/dist/{registry-Dy6pjoh3.d.cts → registry-CaJpWDke.d.cts} +1 -1
- package/dist/{report-MpwUgXbA.d.ts → report-D6WNYaVn.d.cts} +1 -1
- package/dist/{report-BuCJ7_YU.d.cts → report-DbslT2OR.d.ts} +1 -1
- package/dist/{shapes-BqcccDK8.d.cts → shapes-8o3NjBLU.d.cts} +3 -3
- package/dist/{shapes-BB59aIC8.d.ts → shapes-CCB8ydqD.d.ts} +3 -3
- package/dist/styles/registry.d.cts +1 -1
- package/dist/styles/registry.d.ts +1 -1
- package/dist/{subdocument-CIxH3a5V.d.cts → subdocument-BwW3FZC_.d.ts} +1 -1
- package/dist/{subdocument-DQNQF7wV.d.ts → subdocument-yY8ASE4N.d.cts} +1 -1
- package/dist/{table-sweV3r9n.d.cts → table-BH_Q2n_N.d.cts} +1 -1
- package/dist/{table-D81TZyBn.d.ts → table-ByOoGcq_.d.ts} +1 -1
- package/dist/{text-Cal14ZaX.d.cts → text-BAi1tapc.d.cts} +3 -1
- package/dist/{text-CkNojpZm.d.ts → text-gJ5R0q3u.d.ts} +3 -1
- package/dist/typed/draw/embedded.cjs +38 -0
- package/dist/typed/draw/embedded.d.cts +2 -2
- package/dist/typed/draw/embedded.d.ts +2 -2
- package/dist/typed/draw/embedded.js +39 -2
- package/dist/typed/draw/shapes.cjs +20 -3
- package/dist/typed/draw/shapes.d.cts +1 -1
- package/dist/typed/draw/shapes.d.ts +1 -1
- package/dist/typed/draw/shapes.js +20 -3
- package/dist/typed/formula/read.d.cts +1 -1
- package/dist/typed/formula/read.d.ts +1 -1
- package/dist/typed/odb/form.cjs +2 -59
- package/dist/typed/odb/form.d.cts +2 -2
- package/dist/typed/odb/form.d.ts +2 -2
- package/dist/typed/odb/form.js +3 -60
- package/dist/typed/odb/read.d.cts +1 -1
- package/dist/typed/odb/read.d.ts +1 -1
- package/dist/typed/odb/report.d.cts +1 -1
- package/dist/typed/odb/report.d.ts +1 -1
- package/dist/typed/odb/subdocument.d.cts +1 -1
- package/dist/typed/odb/subdocument.d.ts +1 -1
- package/dist/typed/odg/read.d.cts +1 -1
- package/dist/typed/odg/read.d.ts +1 -1
- package/dist/typed/odm/read.d.cts +1 -1
- package/dist/typed/odm/read.d.ts +1 -1
- package/dist/typed/odp/read.d.cts +1 -1
- package/dist/typed/odp/read.d.ts +1 -1
- package/dist/typed/ods/read.cjs +28 -7
- package/dist/typed/ods/read.d.cts +1 -1
- package/dist/typed/ods/read.d.ts +1 -1
- package/dist/typed/ods/read.js +29 -8
- package/dist/typed/odt/read.cjs +215 -15
- package/dist/typed/odt/read.d.cts +2 -2
- package/dist/typed/odt/read.d.ts +2 -2
- package/dist/typed/odt/read.js +215 -15
- package/dist/typed/shared/cascade.d.cts +1 -1
- package/dist/typed/shared/cascade.d.ts +1 -1
- package/dist/typed/shared/constructs.cjs +392 -0
- package/dist/typed/shared/constructs.d.cts +2 -0
- package/dist/typed/shared/constructs.d.ts +2 -0
- package/dist/typed/shared/constructs.js +374 -0
- package/dist/typed/shared/forms.cjs +128 -0
- package/dist/typed/shared/forms.d.cts +2 -0
- package/dist/typed/shared/forms.d.ts +2 -0
- package/dist/typed/shared/forms.js +126 -0
- package/dist/typed/shared/list.d.cts +1 -1
- package/dist/typed/shared/list.d.ts +1 -1
- package/dist/typed/shared/masterpage.d.cts +1 -1
- package/dist/typed/shared/masterpage.d.ts +1 -1
- package/dist/typed/shared/metadata.d.cts +1 -1
- package/dist/typed/shared/metadata.d.ts +1 -1
- package/dist/typed/shared/paragraph.cjs +189 -10
- package/dist/typed/shared/paragraph.d.cts +2 -2
- package/dist/typed/shared/paragraph.d.ts +2 -2
- package/dist/typed/shared/paragraph.js +192 -13
- package/dist/typed/shared/table.d.cts +1 -1
- package/dist/typed/shared/table.d.ts +1 -1
- package/dist/typed/shared/text.cjs +57 -2
- package/dist/typed/shared/text.d.cts +2 -2
- package/dist/typed/shared/text.d.ts +2 -2
- package/dist/typed/shared/text.js +56 -3
- package/dist/{write-C0nwVuPI.d.ts → write-BxVkPZID.d.ts} +1 -1
- package/dist/{write-Dfb2tirK.d.cts → write-D3kyj1Xw.d.cts} +1 -1
- package/package.json +2 -2
- package/dist/embedded-CNMqOrnt.d.ts +0 -13
- package/dist/embedded-D7Kr1Sce.d.cts +0 -13
- package/dist/form-BsAAx5-p.d.ts +0 -31
- package/dist/form-DSIbHxog.d.cts +0 -31
- package/dist/paragraph-9ii2naJC.d.cts +0 -7
- package/dist/paragraph-DWNnedIE.d.ts +0 -7
- package/dist/read-B4zS8bGb.d.ts +0 -11
- package/dist/read-BHpPvhzR.d.cts +0 -11
- package/dist/read-C6MhadqG.d.ts +0 -11
- package/dist/read-CszvDMMt.d.cts +0 -11
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
import {
|
|
3
|
-
import { t as parsePackage } from "./read-
|
|
4
|
-
import { n as MIMETYPE_PART, r as serializePackage, t as MANIFEST_PART } from "./write-
|
|
2
|
+
import { a as Part, c as XmlPartSchema, i as PackageSchema, n as BinaryPartSchema, o as PartSchema, r as Package, s as XmlPart, t as BinaryPart } from "./package-BUojjTXf.js";
|
|
3
|
+
import { t as parsePackage } from "./read-CMDEXqGw.js";
|
|
4
|
+
import { n as MIMETYPE_PART, r as serializePackage, t as MANIFEST_PART } from "./write-BxVkPZID.js";
|
|
5
5
|
import { t as parseXml } from "./parse-A8_8sdpX.js";
|
|
6
6
|
import { t as buildXml } from "./build-Z1KRkSEB.js";
|
|
7
7
|
import { n as unzipPackage, r as zipPackage, t as ZipEntry } from "./zip-ie17sOo5.js";
|
|
@@ -9,39 +9,40 @@ import { n as bytesToBase64, t as base64ToBytes } from "./base64--HuymRl_.js";
|
|
|
9
9
|
import { n as OdfNamespacePrefix, r as xmlnsAttributes, t as ODF_NAMESPACES } from "./ns-Cihto3Fx.js";
|
|
10
10
|
import { n as OdfExtension, r as mediaTypeForExtension, t as ODF_MEDIA_TYPES } from "./media-type-BOLkcHkJ.js";
|
|
11
11
|
import { n as sniffImageFormat, t as ImageFormat } from "./sniff-DjpnUZRp.js";
|
|
12
|
-
import { n as writeMimetype, t as readMimetype } from "./mimetype-
|
|
12
|
+
import { n as writeMimetype, t as readMimetype } from "./mimetype-BfkwTeaW.js";
|
|
13
13
|
import { n as txt, t as el } from "./fragment-B1ZV7T5Z.js";
|
|
14
14
|
import { n as encodeXmlText, t as decodeXmlText } from "./entities-BZlXvHqu.js";
|
|
15
|
-
import { a as ManifestProblem, c as buildManifest, d as syncManifest, f as validateManifest, i as ManifestEntrySchema, l as readManifest, n as Manifest, o as ManifestProblemSchema, p as writeManifest, r as ManifestEntry, s as ManifestSchema, t as BuildManifestOptions, u as setDocumentMediaType } from "./manifest-
|
|
15
|
+
import { a as ManifestProblem, c as buildManifest, d as syncManifest, f as validateManifest, i as ManifestEntrySchema, l as readManifest, n as Manifest, o as ManifestProblemSchema, p as writeManifest, r as ManifestEntry, s as ManifestSchema, t as BuildManifestOptions, u as setDocumentMediaType } from "./manifest-CP1sqyGU.js";
|
|
16
16
|
import { a as formatPt, c as parseStyleElementProperties, i as formatPercentageMultiplier, l as parseTextProperties, n as StyleProperties, o as paragraphPropertiesToAttributes, r as StylePropertiesSchema, s as parseParagraphProperties, t as ParsedProperties, u as textPropertiesToAttributes } from "./properties-DjAIdPry.js";
|
|
17
17
|
import { n as canonicalPropertiesString, t as buildStylePropertyElements } from "./serialize-DvaE_t5D.js";
|
|
18
|
-
import { a as StyleRegistry, i as StyleFamily, n as OtherPartRef, o as StyleRegistryOptions, r as STYLE_FAMILIES, s as isStyleFamily, t as InternRequest } from "./registry-
|
|
18
|
+
import { a as StyleRegistry, i as StyleFamily, n as OtherPartRef, o as StyleRegistryOptions, r as STYLE_FAMILIES, s as isStyleFamily, t as InternRequest } from "./registry-BVeEpUMI.js";
|
|
19
19
|
import { t as ensureSpan } from "./span-KXroEGuH.js";
|
|
20
20
|
import { a as rootElement, i as findChildElement, n as childrenWithTag, r as elementsWithTag, t as attrValue } from "./query-sECN-7vU.js";
|
|
21
21
|
import { n as formatOdfLength, r as parseOdfLength, t as LengthUnit } from "./units-7pCiECuP.js";
|
|
22
22
|
import { a as parseCellReference, i as columnLettersToIndex, n as cellReference, r as columnIndexToLetters, t as TableCursor } from "./a1-5e9veCyu.js";
|
|
23
23
|
import { n as parseOdfColor, t as formatOdfColor } from "./color-CqXjt_to.js";
|
|
24
24
|
import { i as parsePageSize, n as parseLinePoints, r as parseMargins, t as parseBox } from "./geometry-DnhkIhAM.js";
|
|
25
|
-
import {
|
|
26
|
-
import { a as resolveStyle, i as findStyleElement, n as StyleCascadeResult, o as resolveStyleElementChain, r as StyleElementChainResult, t as CascadeDiagnostic } from "./cascade-
|
|
27
|
-
import { n as readOdfMetadata, t as META_PART } from "./metadata-
|
|
28
|
-
import { t as
|
|
29
|
-
import {
|
|
30
|
-
import { r as readOdfTable } from "./table-
|
|
25
|
+
import { a as measureOdfNodeLength, n as decodeOdfText, o as sumOdfNodeLength, r as getOdfSpaceCount } from "./text-gJ5R0q3u.js";
|
|
26
|
+
import { a as resolveStyle, i as findStyleElement, n as StyleCascadeResult, o as resolveStyleElementChain, r as StyleElementChainResult, t as CascadeDiagnostic } from "./cascade-rhqUQrUa.js";
|
|
27
|
+
import { n as readOdfMetadata, t as META_PART } from "./metadata-BXpjrAS-.js";
|
|
28
|
+
import { a as resolveOdfListKind, i as readOdfListParagraphs, n as OdfListParagraphReader, r as mintOdfListNumId, t as OdfListIdState } from "./list-Qeuawtew.js";
|
|
29
|
+
import { n as readOdfParagraph } from "./paragraph-6hzAZpmi.js";
|
|
30
|
+
import { r as readOdfTable } from "./table-ByOoGcq_.js";
|
|
31
31
|
import { a as composeOdfGroupTransform, c as resolveOdfShapeGeometry, i as applyOdfTransform, n as OdfShapeGeometry, o as netRotationDeg, r as OdfTransformFunction, s as parseOdfTransform, t as OdfPoint } from "./transform-C7GrZZdR.js";
|
|
32
|
-
import { n as resolvePageLayoutProperties, t as resolveDrawPageSize } from "./masterpage-
|
|
32
|
+
import { n as resolvePageLayoutProperties, t as resolveDrawPageSize } from "./masterpage-C1McDhMv.js";
|
|
33
33
|
import { a as buildOdfSubpaths, c as parseOdfViewBox, i as OdfViewBox, l as rawSubpathFromPoints, n as OdfRawSegment, o as parseOdfPathData, r as OdfRawSubpath, s as parseOdfPointsList, t as OdfRawPoint, u as scaleOdfRawPoint } from "./path-DE7wkIcz.js";
|
|
34
|
-
import { a as walkDrawShapes, i as readDrawPageContent, n as readDrawFrame, r as readDrawImageBlock, t as DrawPageContent } from "./shapes-
|
|
35
|
-
import { n as EmbeddedDrawObject, r as readDrawObjectReference, t as EmbeddedDocumentKind } from "./embedded-
|
|
36
|
-
import { n as readOdp, r as readOdpContent, t as OdpDocument } from "./read-
|
|
37
|
-
import { n as
|
|
38
|
-
import { n as readOdg, r as readOdgContent, t as OdgDocument } from "./read-
|
|
39
|
-
import { n as readOds, r as readOdsContent, t as OdsDocument } from "./read-
|
|
40
|
-
import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, r as readOdfFormula, t as OdfFormulaDocument } from "./read-
|
|
41
|
-
import { n as OdmSection, r as readOdm, t as OdmDocument } from "./read-
|
|
42
|
-
import { a as readOdbInventory, i as OdbQueryInfo, n as OdbConnectionInfo, o as resolveOdbComponent, r as OdbInventory, t as OdbComponentInfo } from "./read-
|
|
43
|
-
import { n as subDocumentPackage, t as SubDocumentPackageOptions } from "./subdocument-
|
|
44
|
-
import { i as
|
|
45
|
-
import {
|
|
46
|
-
import { a as
|
|
47
|
-
|
|
34
|
+
import { a as walkDrawShapes, i as readDrawPageContent, n as readDrawFrame, r as readDrawImageBlock, t as DrawPageContent } from "./shapes-CCB8ydqD.js";
|
|
35
|
+
import { n as EmbeddedDrawObject, r as readDrawObjectReference, t as EmbeddedDocumentKind } from "./embedded-BPhuSEEI.js";
|
|
36
|
+
import { n as readOdp, r as readOdpContent, t as OdpDocument } from "./read-Db_GZ0ZH.js";
|
|
37
|
+
import { i as readOdtContent, n as OdtReadOptions, r as readOdt, t as OdtDocument } from "./read-DHuiGh_y.js";
|
|
38
|
+
import { n as readOdg, r as readOdgContent, t as OdgDocument } from "./read-lc0t0UHK.js";
|
|
39
|
+
import { n as readOds, r as readOdsContent, t as OdsDocument } from "./read-CdvX2qnz.js";
|
|
40
|
+
import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, r as readOdfFormula, t as OdfFormulaDocument } from "./read-BnN7u9Y2.js";
|
|
41
|
+
import { n as OdmSection, r as readOdm, t as OdmDocument } from "./read-DYYxbvfo.js";
|
|
42
|
+
import { a as readOdbInventory, i as OdbQueryInfo, n as OdbConnectionInfo, o as resolveOdbComponent, r as OdbInventory, t as OdbComponentInfo } from "./read-CvjbdgH3.js";
|
|
43
|
+
import { n as subDocumentPackage, t as SubDocumentPackageOptions } from "./subdocument-BwW3FZC_.js";
|
|
44
|
+
import { i as readOdfFormDefinitions, n as OdbFormDefinition, r as readOdfFormControlConstructs, t as OdbFormControl } from "./forms-D1-0spCe.js";
|
|
45
|
+
import { n as readOdbForm, t as OdbForm } from "./form-D3H5H2NL.js";
|
|
46
|
+
import { a as OdbReportGroup, i as OdbReportFunction, n as OdbReportBand, o as readOdbReport, r as OdbReportElement, t as OdbReport } from "./report-DbslT2OR.js";
|
|
47
|
+
import { a as Alignment, i as xmlCodec, n as encodePackage, o as AlignmentSchema, r as packageCodec, s as DocumentPackage, t as decodePackage } from "./codec-BxxFEqvT.js";
|
|
48
|
+
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type BuildManifestOptions, type CascadeDiagnostic, type DocumentPackage, 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 OdfListIdState, type OdfListParagraphReader, 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 OdtReadOptions, 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, mintOdfListNumId, 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, readOdfFormControlConstructs, readOdfFormDefinitions, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl, readOdfListParagraphs, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdgContent, readOdm, readOdp, readOdpContent, readOds, readOdsContent, readOdt, readOdtContent, resolveDrawPageSize, resolveOdbComponent, resolveOdfListKind, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, serializePackage, setDocumentMediaType, sniffImageFormat, subDocumentPackage, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, txt, unzipPackage, validateManifest, walkDrawShapes, writeManifest, writeMimetype, xmlCodec, xmlnsAttributes, zipPackage };
|
package/dist/index.js
CHANGED
|
@@ -26,8 +26,8 @@ import { TableCursor, cellReference, columnIndexToLetters, columnLettersToIndex,
|
|
|
26
26
|
import { parseBox, parseLinePoints, parseMargins, parsePageSize } from "./typed/shared/geometry.js";
|
|
27
27
|
import { findStyleElement, resolveStyle, resolveStyleElementChain } from "./typed/shared/cascade.js";
|
|
28
28
|
import { META_PART, readOdfMetadata } from "./typed/shared/metadata.js";
|
|
29
|
-
import { readOdfParagraph } from "./typed/shared/paragraph.js";
|
|
30
29
|
import { mintOdfListNumId, readOdfListParagraphs, resolveOdfListKind } from "./typed/shared/list.js";
|
|
30
|
+
import { readOdfParagraph } from "./typed/shared/paragraph.js";
|
|
31
31
|
import { readOdfTable } from "./typed/shared/table.js";
|
|
32
32
|
import { applyOdfTransform, composeOdfGroupTransform, netRotationDeg, parseOdfTransform, resolveOdfShapeGeometry } from "./typed/shared/transform.js";
|
|
33
33
|
import { resolveDrawPageSize, resolvePageLayoutProperties } from "./typed/shared/masterpage.js";
|
|
@@ -37,12 +37,13 @@ import { readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl } from "./t
|
|
|
37
37
|
import { subDocumentPackage } from "./typed/odb/subdocument.js";
|
|
38
38
|
import { readDrawObjectReference } from "./typed/draw/embedded.js";
|
|
39
39
|
import { readOdp, readOdpContent } from "./typed/odp/read.js";
|
|
40
|
-
import {
|
|
40
|
+
import { readOdfFormControlConstructs, readOdfFormDefinitions } from "./typed/shared/forms.js";
|
|
41
41
|
import { readOdg, readOdgContent } from "./typed/odg/read.js";
|
|
42
|
+
import { readOdt, readOdtContent } from "./typed/odt/read.js";
|
|
42
43
|
import { readOds, readOdsContent } from "./typed/ods/read.js";
|
|
43
44
|
import { readOdm } from "./typed/odm/read.js";
|
|
44
45
|
import { readOdbInventory, resolveOdbComponent } from "./typed/odb/read.js";
|
|
45
46
|
import { readOdbForm } from "./typed/odb/form.js";
|
|
46
47
|
import { readOdbReport } from "./typed/odb/report.js";
|
|
47
48
|
import { AlignmentSchema } from "document-schema.js";
|
|
48
|
-
export { AlignmentSchema, AttributeSchema, BinaryPartSchema, MANIFEST_PART, META_PART, MIMETYPE_PART, ManifestEntrySchema, ManifestProblemSchema, ManifestSchema, ODF_MEDIA_TYPES, ODF_NAMESPACES, PackageSchema, PartSchema, STYLE_FAMILIES, StylePropertiesSchema, StyleRegistry, TableCursor, XmlCdataSchema, XmlCommentSchema, XmlDeclarationSchema, XmlElementSchema, XmlNodeSchema, XmlPartSchema, XmlPiSchema, XmlTextSchema, 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, mintOdfListNumId, 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, readOdfFormulaContent, readOdfFormulaMathMl, readOdfListParagraphs, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdgContent, readOdm, readOdp, readOdpContent, readOds, readOdsContent, readOdt, readOdtContent, resolveDrawPageSize, resolveOdbComponent, resolveOdfListKind, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, serializePackage, setDocumentMediaType, sniffImageFormat, subDocumentPackage, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, txt, unzipPackage, validateManifest, walkDrawShapes, writeManifest, writeMimetype, xmlCodec, xmlnsAttributes, zipPackage };
|
|
49
|
+
export { AlignmentSchema, AttributeSchema, BinaryPartSchema, MANIFEST_PART, META_PART, MIMETYPE_PART, ManifestEntrySchema, ManifestProblemSchema, ManifestSchema, ODF_MEDIA_TYPES, ODF_NAMESPACES, PackageSchema, PartSchema, STYLE_FAMILIES, StylePropertiesSchema, StyleRegistry, TableCursor, XmlCdataSchema, XmlCommentSchema, XmlDeclarationSchema, XmlElementSchema, XmlNodeSchema, XmlPartSchema, XmlPiSchema, XmlTextSchema, 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, mintOdfListNumId, 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, readOdfFormControlConstructs, readOdfFormDefinitions, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl, readOdfListParagraphs, readOdfMetadata, readOdfParagraph, readOdfTable, readOdg, readOdgContent, readOdm, readOdp, readOdpContent, readOds, readOdsContent, readOdt, readOdtContent, resolveDrawPageSize, resolveOdbComponent, resolveOdfListKind, resolveOdfShapeGeometry, resolvePageLayoutProperties, resolveStyle, resolveStyleElementChain, rootElement, scaleOdfRawPoint, serializePackage, setDocumentMediaType, sniffImageFormat, subDocumentPackage, sumOdfNodeLength, syncManifest, textPropertiesToAttributes, txt, unzipPackage, validateManifest, walkDrawShapes, writeManifest, writeMimetype, xmlCodec, xmlnsAttributes, zipPackage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
|
-
import { Package } from "./
|
|
2
|
+
import { r as Package } from "./package-L24lkba-.cjs";
|
|
3
3
|
import { ContentListMembership, ContentParagraph } from "document-schema.js";
|
|
4
4
|
//#region src/typed/shared/list.d.ts
|
|
5
5
|
interface OdfListIdState {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as XmlElement } from "./node-CkBWRjNR.js";
|
|
2
|
-
import { Package } from "./
|
|
2
|
+
import { r as Package } from "./package-BUojjTXf.js";
|
|
3
3
|
import { ContentListMembership, ContentParagraph } from "document-schema.js";
|
|
4
4
|
//#region src/typed/shared/list.d.ts
|
|
5
5
|
interface OdfListIdState {
|
package/dist/manifest.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ManifestProblem, c as buildManifest, d as syncManifest, f as validateManifest, i as ManifestEntrySchema, l as readManifest, n as Manifest, o as ManifestProblemSchema, p as writeManifest, r as ManifestEntry, s as ManifestSchema, t as BuildManifestOptions, u as setDocumentMediaType } from "./manifest-
|
|
1
|
+
import { a as ManifestProblem, c as buildManifest, d as syncManifest, f as validateManifest, i as ManifestEntrySchema, l as readManifest, n as Manifest, o as ManifestProblemSchema, p as writeManifest, r as ManifestEntry, s as ManifestSchema, t as BuildManifestOptions, u as setDocumentMediaType } from "./manifest-BALwu2JR.cjs";
|
|
2
2
|
export { BuildManifestOptions, Manifest, ManifestEntry, ManifestEntrySchema, ManifestProblem, ManifestProblemSchema, ManifestSchema, buildManifest, readManifest, setDocumentMediaType, syncManifest, validateManifest, writeManifest };
|
package/dist/manifest.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ManifestProblem, c as buildManifest, d as syncManifest, f as validateManifest, i as ManifestEntrySchema, l as readManifest, n as Manifest, o as ManifestProblemSchema, p as writeManifest, r as ManifestEntry, s as ManifestSchema, t as BuildManifestOptions, u as setDocumentMediaType } from "./manifest-
|
|
1
|
+
import { a as ManifestProblem, c as buildManifest, d as syncManifest, f as validateManifest, i as ManifestEntrySchema, l as readManifest, n as Manifest, o as ManifestProblemSchema, p as writeManifest, r as ManifestEntry, s as ManifestSchema, t as BuildManifestOptions, u as setDocumentMediaType } from "./manifest-CP1sqyGU.js";
|
|
2
2
|
export { BuildManifestOptions, Manifest, ManifestEntry, ManifestEntrySchema, ManifestProblem, ManifestProblemSchema, ManifestSchema, buildManifest, readManifest, setDocumentMediaType, syncManifest, validateManifest, writeManifest };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as XmlElement } from "./node-CkBWRjNR.js";
|
|
2
|
-
import { Package } from "./
|
|
2
|
+
import { r as Package } from "./package-BUojjTXf.js";
|
|
3
3
|
import { PageSize } from "document-schema.js";
|
|
4
4
|
//#region src/typed/shared/masterpage.d.ts
|
|
5
5
|
declare function resolvePageLayoutProperties(pkg: Package, masterPageName: string | undefined): XmlElement | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
|
-
import { Package } from "./
|
|
2
|
+
import { r as Package } from "./package-L24lkba-.cjs";
|
|
3
3
|
import { PageSize } from "document-schema.js";
|
|
4
4
|
//#region src/typed/shared/masterpage.d.ts
|
|
5
5
|
declare function resolvePageLayoutProperties(pkg: Package, masterPageName: string | undefined): XmlElement | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Package } from "./
|
|
1
|
+
import { r as Package } from "./package-L24lkba-.cjs";
|
|
2
2
|
//#region src/mimetype.d.ts
|
|
3
3
|
declare function readMimetype(pkg: Package): string | undefined;
|
|
4
4
|
declare function writeMimetype(pkg: Package, mediaType: string): void;
|
package/dist/mimetype.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as writeMimetype, t as readMimetype } from "./mimetype-
|
|
1
|
+
import { n as writeMimetype, t as readMimetype } from "./mimetype-CPNMj04s.cjs";
|
|
2
2
|
export { readMimetype, writeMimetype };
|
package/dist/mimetype.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as writeMimetype, t as readMimetype } from "./mimetype-
|
|
1
|
+
import { n as writeMimetype, t as readMimetype } from "./mimetype-BfkwTeaW.js";
|
|
2
2
|
export { readMimetype, writeMimetype };
|
package/dist/model/package.d.cts
CHANGED
|
@@ -1,114 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
//#region src/model/package.d.ts
|
|
4
|
-
declare const XmlPartSchema: z.ZodObject<{
|
|
5
|
-
kind: z.ZodLiteral<"xml">;
|
|
6
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
|
-
type: z.ZodLiteral<"text">;
|
|
8
|
-
value: z.ZodString;
|
|
9
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
10
|
-
type: z.ZodLiteral<"cdata">;
|
|
11
|
-
value: z.ZodString;
|
|
12
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
-
type: z.ZodLiteral<"comment">;
|
|
14
|
-
value: z.ZodString;
|
|
15
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
-
type: z.ZodLiteral<"declaration">;
|
|
17
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
18
|
-
name: z.ZodString;
|
|
19
|
-
value: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
type: z.ZodLiteral<"pi">;
|
|
23
|
-
target: z.ZodString;
|
|
24
|
-
content: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
type: z.ZodLiteral<"element">;
|
|
27
|
-
tag: z.ZodString;
|
|
28
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
29
|
-
name: z.ZodString;
|
|
30
|
-
value: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>;
|
|
32
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
33
|
-
}, z.core.$strip>], "type">>;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
|
-
type XmlPart = z.infer<typeof XmlPartSchema>;
|
|
36
|
-
declare const BinaryPartSchema: z.ZodObject<{
|
|
37
|
-
kind: z.ZodLiteral<"binary">;
|
|
38
|
-
base64: z.ZodString;
|
|
39
|
-
}, z.core.$strip>;
|
|
40
|
-
type BinaryPart = z.infer<typeof BinaryPartSchema>;
|
|
41
|
-
declare const PartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
42
|
-
kind: z.ZodLiteral<"xml">;
|
|
43
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44
|
-
type: z.ZodLiteral<"text">;
|
|
45
|
-
value: z.ZodString;
|
|
46
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
-
type: z.ZodLiteral<"cdata">;
|
|
48
|
-
value: z.ZodString;
|
|
49
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
-
type: z.ZodLiteral<"comment">;
|
|
51
|
-
value: z.ZodString;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
type: z.ZodLiteral<"declaration">;
|
|
54
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
55
|
-
name: z.ZodString;
|
|
56
|
-
value: z.ZodString;
|
|
57
|
-
}, z.core.$strip>>;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
type: z.ZodLiteral<"pi">;
|
|
60
|
-
target: z.ZodString;
|
|
61
|
-
content: z.ZodString;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
type: z.ZodLiteral<"element">;
|
|
64
|
-
tag: z.ZodString;
|
|
65
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
66
|
-
name: z.ZodString;
|
|
67
|
-
value: z.ZodString;
|
|
68
|
-
}, z.core.$strip>>;
|
|
69
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
70
|
-
}, z.core.$strip>], "type">>;
|
|
71
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
-
kind: z.ZodLiteral<"binary">;
|
|
73
|
-
base64: z.ZodString;
|
|
74
|
-
}, z.core.$strip>], "kind">;
|
|
75
|
-
type Part = z.infer<typeof PartSchema>;
|
|
76
|
-
declare const PackageSchema: z.ZodObject<{
|
|
77
|
-
parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
78
|
-
kind: z.ZodLiteral<"xml">;
|
|
79
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
80
|
-
type: z.ZodLiteral<"text">;
|
|
81
|
-
value: z.ZodString;
|
|
82
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
-
type: z.ZodLiteral<"cdata">;
|
|
84
|
-
value: z.ZodString;
|
|
85
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
-
type: z.ZodLiteral<"comment">;
|
|
87
|
-
value: z.ZodString;
|
|
88
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
-
type: z.ZodLiteral<"declaration">;
|
|
90
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
91
|
-
name: z.ZodString;
|
|
92
|
-
value: z.ZodString;
|
|
93
|
-
}, z.core.$strip>>;
|
|
94
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
-
type: z.ZodLiteral<"pi">;
|
|
96
|
-
target: z.ZodString;
|
|
97
|
-
content: z.ZodString;
|
|
98
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
99
|
-
type: z.ZodLiteral<"element">;
|
|
100
|
-
tag: z.ZodString;
|
|
101
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
102
|
-
name: z.ZodString;
|
|
103
|
-
value: z.ZodString;
|
|
104
|
-
}, z.core.$strip>>;
|
|
105
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
106
|
-
}, z.core.$strip>], "type">>;
|
|
107
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
108
|
-
kind: z.ZodLiteral<"binary">;
|
|
109
|
-
base64: z.ZodString;
|
|
110
|
-
}, z.core.$strip>], "kind">>;
|
|
111
|
-
}, z.core.$strip>;
|
|
112
|
-
type Package = z.infer<typeof PackageSchema>;
|
|
113
|
-
//#endregion
|
|
1
|
+
import { a as Part, c as XmlPartSchema, i as PackageSchema, n as BinaryPartSchema, o as PartSchema, r as Package, s as XmlPart, t as BinaryPart } from "../package-L24lkba-.cjs";
|
|
114
2
|
export { BinaryPart, BinaryPartSchema, Package, PackageSchema, Part, PartSchema, XmlPart, XmlPartSchema };
|
package/dist/model/package.d.ts
CHANGED
|
@@ -1,114 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
//#region src/model/package.d.ts
|
|
4
|
-
declare const XmlPartSchema: z.ZodObject<{
|
|
5
|
-
kind: z.ZodLiteral<"xml">;
|
|
6
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
|
-
type: z.ZodLiteral<"text">;
|
|
8
|
-
value: z.ZodString;
|
|
9
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
10
|
-
type: z.ZodLiteral<"cdata">;
|
|
11
|
-
value: z.ZodString;
|
|
12
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
-
type: z.ZodLiteral<"comment">;
|
|
14
|
-
value: z.ZodString;
|
|
15
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
-
type: z.ZodLiteral<"declaration">;
|
|
17
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
18
|
-
name: z.ZodString;
|
|
19
|
-
value: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
type: z.ZodLiteral<"pi">;
|
|
23
|
-
target: z.ZodString;
|
|
24
|
-
content: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
type: z.ZodLiteral<"element">;
|
|
27
|
-
tag: z.ZodString;
|
|
28
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
29
|
-
name: z.ZodString;
|
|
30
|
-
value: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>;
|
|
32
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
33
|
-
}, z.core.$strip>], "type">>;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
|
-
type XmlPart = z.infer<typeof XmlPartSchema>;
|
|
36
|
-
declare const BinaryPartSchema: z.ZodObject<{
|
|
37
|
-
kind: z.ZodLiteral<"binary">;
|
|
38
|
-
base64: z.ZodString;
|
|
39
|
-
}, z.core.$strip>;
|
|
40
|
-
type BinaryPart = z.infer<typeof BinaryPartSchema>;
|
|
41
|
-
declare const PartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
42
|
-
kind: z.ZodLiteral<"xml">;
|
|
43
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44
|
-
type: z.ZodLiteral<"text">;
|
|
45
|
-
value: z.ZodString;
|
|
46
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
-
type: z.ZodLiteral<"cdata">;
|
|
48
|
-
value: z.ZodString;
|
|
49
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
-
type: z.ZodLiteral<"comment">;
|
|
51
|
-
value: z.ZodString;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
type: z.ZodLiteral<"declaration">;
|
|
54
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
55
|
-
name: z.ZodString;
|
|
56
|
-
value: z.ZodString;
|
|
57
|
-
}, z.core.$strip>>;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
type: z.ZodLiteral<"pi">;
|
|
60
|
-
target: z.ZodString;
|
|
61
|
-
content: z.ZodString;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
type: z.ZodLiteral<"element">;
|
|
64
|
-
tag: z.ZodString;
|
|
65
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
66
|
-
name: z.ZodString;
|
|
67
|
-
value: z.ZodString;
|
|
68
|
-
}, z.core.$strip>>;
|
|
69
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
70
|
-
}, z.core.$strip>], "type">>;
|
|
71
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
-
kind: z.ZodLiteral<"binary">;
|
|
73
|
-
base64: z.ZodString;
|
|
74
|
-
}, z.core.$strip>], "kind">;
|
|
75
|
-
type Part = z.infer<typeof PartSchema>;
|
|
76
|
-
declare const PackageSchema: z.ZodObject<{
|
|
77
|
-
parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
78
|
-
kind: z.ZodLiteral<"xml">;
|
|
79
|
-
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
80
|
-
type: z.ZodLiteral<"text">;
|
|
81
|
-
value: z.ZodString;
|
|
82
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
-
type: z.ZodLiteral<"cdata">;
|
|
84
|
-
value: z.ZodString;
|
|
85
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
-
type: z.ZodLiteral<"comment">;
|
|
87
|
-
value: z.ZodString;
|
|
88
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
-
type: z.ZodLiteral<"declaration">;
|
|
90
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
91
|
-
name: z.ZodString;
|
|
92
|
-
value: z.ZodString;
|
|
93
|
-
}, z.core.$strip>>;
|
|
94
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
-
type: z.ZodLiteral<"pi">;
|
|
96
|
-
target: z.ZodString;
|
|
97
|
-
content: z.ZodString;
|
|
98
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
99
|
-
type: z.ZodLiteral<"element">;
|
|
100
|
-
tag: z.ZodString;
|
|
101
|
-
attributes: z.ZodArray<z.ZodObject<{
|
|
102
|
-
name: z.ZodString;
|
|
103
|
-
value: z.ZodString;
|
|
104
|
-
}, z.core.$strip>>;
|
|
105
|
-
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
106
|
-
}, z.core.$strip>], "type">>;
|
|
107
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
108
|
-
kind: z.ZodLiteral<"binary">;
|
|
109
|
-
base64: z.ZodString;
|
|
110
|
-
}, z.core.$strip>], "kind">>;
|
|
111
|
-
}, z.core.$strip>;
|
|
112
|
-
type Package = z.infer<typeof PackageSchema>;
|
|
113
|
-
//#endregion
|
|
1
|
+
import { a as Part, c as XmlPartSchema, i as PackageSchema, n as BinaryPartSchema, o as PartSchema, r as Package, s as XmlPart, t as BinaryPart } from "../package-BUojjTXf.js";
|
|
114
2
|
export { BinaryPart, BinaryPartSchema, Package, PackageSchema, Part, PartSchema, XmlPart, XmlPartSchema };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { d as XmlNode } from "./node-CkBWRjNR.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/model/package.d.ts
|
|
4
|
+
declare const XmlPartSchema: z.ZodObject<{
|
|
5
|
+
kind: z.ZodLiteral<"xml">;
|
|
6
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
|
+
type: z.ZodLiteral<"text">;
|
|
8
|
+
value: z.ZodString;
|
|
9
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10
|
+
type: z.ZodLiteral<"cdata">;
|
|
11
|
+
value: z.ZodString;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
type: z.ZodLiteral<"comment">;
|
|
14
|
+
value: z.ZodString;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
type: z.ZodLiteral<"declaration">;
|
|
17
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
value: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
type: z.ZodLiteral<"pi">;
|
|
23
|
+
target: z.ZodString;
|
|
24
|
+
content: z.ZodString;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<"element">;
|
|
27
|
+
tag: z.ZodString;
|
|
28
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
value: z.ZodString;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
33
|
+
}, z.core.$strip>], "type">>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
type XmlPart = z.infer<typeof XmlPartSchema>;
|
|
36
|
+
declare const BinaryPartSchema: z.ZodObject<{
|
|
37
|
+
kind: z.ZodLiteral<"binary">;
|
|
38
|
+
base64: z.ZodString;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
type BinaryPart = z.infer<typeof BinaryPartSchema>;
|
|
41
|
+
declare const PartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
42
|
+
kind: z.ZodLiteral<"xml">;
|
|
43
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44
|
+
type: z.ZodLiteral<"text">;
|
|
45
|
+
value: z.ZodString;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
type: z.ZodLiteral<"cdata">;
|
|
48
|
+
value: z.ZodString;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
type: z.ZodLiteral<"comment">;
|
|
51
|
+
value: z.ZodString;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
type: z.ZodLiteral<"declaration">;
|
|
54
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
55
|
+
name: z.ZodString;
|
|
56
|
+
value: z.ZodString;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
type: z.ZodLiteral<"pi">;
|
|
60
|
+
target: z.ZodString;
|
|
61
|
+
content: z.ZodString;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
type: z.ZodLiteral<"element">;
|
|
64
|
+
tag: z.ZodString;
|
|
65
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
value: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
70
|
+
}, z.core.$strip>], "type">>;
|
|
71
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
+
kind: z.ZodLiteral<"binary">;
|
|
73
|
+
base64: z.ZodString;
|
|
74
|
+
}, z.core.$strip>], "kind">;
|
|
75
|
+
type Part = z.infer<typeof PartSchema>;
|
|
76
|
+
declare const PackageSchema: z.ZodObject<{
|
|
77
|
+
parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
78
|
+
kind: z.ZodLiteral<"xml">;
|
|
79
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
80
|
+
type: z.ZodLiteral<"text">;
|
|
81
|
+
value: z.ZodString;
|
|
82
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
+
type: z.ZodLiteral<"cdata">;
|
|
84
|
+
value: z.ZodString;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
type: z.ZodLiteral<"comment">;
|
|
87
|
+
value: z.ZodString;
|
|
88
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
+
type: z.ZodLiteral<"declaration">;
|
|
90
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
91
|
+
name: z.ZodString;
|
|
92
|
+
value: z.ZodString;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
+
type: z.ZodLiteral<"pi">;
|
|
96
|
+
target: z.ZodString;
|
|
97
|
+
content: z.ZodString;
|
|
98
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
99
|
+
type: z.ZodLiteral<"element">;
|
|
100
|
+
tag: z.ZodString;
|
|
101
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
102
|
+
name: z.ZodString;
|
|
103
|
+
value: z.ZodString;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
106
|
+
}, z.core.$strip>], "type">>;
|
|
107
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
108
|
+
kind: z.ZodLiteral<"binary">;
|
|
109
|
+
base64: z.ZodString;
|
|
110
|
+
}, z.core.$strip>], "kind">>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
type Package = z.infer<typeof PackageSchema>;
|
|
113
|
+
//#endregion
|
|
114
|
+
export { Part as a, XmlPartSchema as c, PackageSchema as i, BinaryPartSchema as n, PartSchema as o, Package as r, XmlPart as s, BinaryPart as t };
|