odf.js 2.6.5 → 2.6.7

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.
@@ -14,7 +14,6 @@ import "./span-KXroEGuH.js";
14
14
  import "./query-sECN-7vU.js";
15
15
  import "./color-CqXjt_to.js";
16
16
  import "./geometry-DnhkIhAM.js";
17
- import "./style-Jzwx2Q-Y.js";
18
17
  import "./text-CkNojpZm.js";
19
18
  import "./cascade-8u4q16_U.js";
20
19
  import "./metadata-32LoP2TK.js";
@@ -36,6 +35,7 @@ import "./subdocument-DQNQF7wV.js";
36
35
  import "./form-DcGOX5RW.js";
37
36
  import "./report-MpwUgXbA.js";
38
37
  import { z } from "zod";
38
+ import { Alignment as Alignment$1, AlignmentSchema as AlignmentSchema$1 } from "document-schema.js";
39
39
  //#region src/codec.d.ts
40
40
  declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
41
41
  type: z.ZodLiteral<"text">;
@@ -104,4 +104,4 @@ declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint
104
104
  declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
105
105
  declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
106
106
  //#endregion
107
- export { xmlCodec as i, encodePackage as n, packageCodec as r, decodePackage as t };
107
+ export { Alignment$1 as a, xmlCodec as i, encodePackage as n, AlignmentSchema$1 as o, packageCodec as r, decodePackage as t };
@@ -14,7 +14,6 @@ import "./span-BtmvlqZH.cjs";
14
14
  import "./query-P-Y5DK0-.cjs";
15
15
  import "./color-CqXjt_to.cjs";
16
16
  import "./geometry-lKWJ_ifA.cjs";
17
- import "./style-CwuPFm34.cjs";
18
17
  import "./text-Cal14ZaX.cjs";
19
18
  import "./cascade-qYa3mgnE.cjs";
20
19
  import "./metadata-frJqeeSB.cjs";
@@ -36,6 +35,7 @@ import "./subdocument-CIxH3a5V.cjs";
36
35
  import "./form-BC-wb1M2.cjs";
37
36
  import "./report-BuCJ7_YU.cjs";
38
37
  import { z } from "zod";
38
+ import { Alignment as Alignment$1, AlignmentSchema } from "document-schema.js";
39
39
  //#region src/codec.d.ts
40
40
  declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
41
41
  type: z.ZodLiteral<"text">;
@@ -104,4 +104,4 @@ declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint
104
104
  declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
105
105
  declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
106
106
  //#endregion
107
- export { xmlCodec as i, encodePackage as n, packageCodec as r, decodePackage as t };
107
+ export { Alignment$1 as a, xmlCodec as i, encodePackage as n, AlignmentSchema as o, packageCodec as r, decodePackage as t };
package/dist/codec.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-Dg0R3WGd.cjs";
1
+ import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-C7qDBOTn.cjs";
2
2
  export { decodePackage, encodePackage, packageCodec, xmlCodec };
package/dist/codec.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-CqVFFwD0.js";
1
+ import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-C0HcLUmU.js";
2
2
  export { decodePackage, encodePackage, packageCodec, xmlCodec };
package/dist/index.cjs CHANGED
@@ -25,7 +25,6 @@ const require_typed_shared_text = require("./typed/shared/text.cjs");
25
25
  const require_styles_span = require("./styles/span.cjs");
26
26
  const require_typed_shared_a1 = require("./typed/shared/a1.cjs");
27
27
  const require_typed_shared_geometry = require("./typed/shared/geometry.cjs");
28
- require("./typed/shared/style.cjs");
29
28
  const require_typed_shared_cascade = require("./typed/shared/cascade.cjs");
30
29
  const require_typed_shared_metadata = require("./typed/shared/metadata.cjs");
31
30
  const require_typed_shared_paragraph = require("./typed/shared/paragraph.cjs");
package/dist/index.d.cts CHANGED
@@ -22,7 +22,6 @@ import { n as formatOdfLength, r as parseOdfLength, t as LengthUnit } from "./un
22
22
  import { a as parseCellReference, i as columnLettersToIndex, n as cellReference, r as columnIndexToLetters, t as TableCursor } from "./a1-5e9veCyu.cjs";
23
23
  import { n as parseOdfColor, t as formatOdfColor } from "./color-CqXjt_to.cjs";
24
24
  import { i as parsePageSize, n as parseLinePoints, r as parseMargins, t as parseBox } from "./geometry-lKWJ_ifA.cjs";
25
- import { n as AlignmentSchema, t as Alignment } from "./style-CwuPFm34.cjs";
26
25
  import { i as sumOdfNodeLength, n as getOdfSpaceCount, r as measureOdfNodeLength, t as decodeOdfText } from "./text-Cal14ZaX.cjs";
27
26
  import { a as resolveStyle, i as findStyleElement, n as StyleCascadeResult, o as resolveStyleElementChain, r as StyleElementChainResult, t as CascadeDiagnostic } from "./cascade-qYa3mgnE.cjs";
28
27
  import { n as readOdfMetadata, t as META_PART } from "./metadata-frJqeeSB.cjs";
@@ -43,5 +42,5 @@ import { a as readOdbInventory, i as OdbQueryInfo, n as OdbConnectionInfo, o as
43
42
  import { n as subDocumentPackage, t as SubDocumentPackageOptions } from "./subdocument-CIxH3a5V.cjs";
44
43
  import { i as readOdbForm, n as OdbFormControl, r as OdbFormDefinition, t as OdbForm } from "./form-BC-wb1M2.cjs";
45
44
  import { a as OdbReportGroup, i as OdbReportFunction, n as OdbReportBand, o as readOdbReport, r as OdbReportElement, t as OdbReport } from "./report-BuCJ7_YU.cjs";
46
- import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-Dg0R3WGd.cjs";
45
+ import { a as Alignment, i as xmlCodec, n as encodePackage, o as AlignmentSchema, r as packageCodec, t as decodePackage } from "./codec-C7qDBOTn.cjs";
47
46
  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/index.d.ts CHANGED
@@ -22,7 +22,6 @@ import { n as formatOdfLength, r as parseOdfLength, t as LengthUnit } from "./un
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 { n as AlignmentSchema, t as Alignment } from "./style-Jzwx2Q-Y.js";
26
25
  import { i as sumOdfNodeLength, n as getOdfSpaceCount, r as measureOdfNodeLength, t as decodeOdfText } from "./text-CkNojpZm.js";
27
26
  import { a as resolveStyle, i as findStyleElement, n as StyleCascadeResult, o as resolveStyleElementChain, r as StyleElementChainResult, t as CascadeDiagnostic } from "./cascade-8u4q16_U.js";
28
27
  import { n as readOdfMetadata, t as META_PART } from "./metadata-32LoP2TK.js";
@@ -43,5 +42,5 @@ import { a as readOdbInventory, i as OdbQueryInfo, n as OdbConnectionInfo, o as
43
42
  import { n as subDocumentPackage, t as SubDocumentPackageOptions } from "./subdocument-DQNQF7wV.js";
44
43
  import { i as readOdbForm, n as OdbFormControl, r as OdbFormDefinition, t as OdbForm } from "./form-DcGOX5RW.js";
45
44
  import { a as OdbReportGroup, i as OdbReportFunction, n as OdbReportBand, o as readOdbReport, r as OdbReportElement, t as OdbReport } from "./report-MpwUgXbA.js";
46
- import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-CqVFFwD0.js";
45
+ import { a as Alignment, i as xmlCodec, n as encodePackage, o as AlignmentSchema, r as packageCodec, t as decodePackage } from "./codec-C0HcLUmU.js";
47
46
  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/index.js CHANGED
@@ -24,7 +24,6 @@ import { decodeOdfText, getOdfSpaceCount, measureOdfNodeLength, sumOdfNodeLength
24
24
  import { ensureSpan } from "./styles/span.js";
25
25
  import { TableCursor, cellReference, columnIndexToLetters, columnLettersToIndex, parseCellReference } from "./typed/shared/a1.js";
26
26
  import { parseBox, parseLinePoints, parseMargins, parsePageSize } from "./typed/shared/geometry.js";
27
- import { AlignmentSchema } from "./typed/shared/style.js";
28
27
  import { findStyleElement, resolveStyle, resolveStyleElementChain } from "./typed/shared/cascade.js";
29
28
  import { META_PART, readOdfMetadata } from "./typed/shared/metadata.js";
30
29
  import { readOdfParagraph } from "./typed/shared/paragraph.js";
@@ -44,4 +43,5 @@ import { readOdm } from "./typed/odm/read.js";
44
43
  import { readOdbInventory, resolveOdbComponent } from "./typed/odb/read.js";
45
44
  import { readOdbForm } from "./typed/odb/form.js";
46
45
  import { readOdbReport } from "./typed/odb/report.js";
46
+ import { AlignmentSchema } from "document-schema.js";
47
47
  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, 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "odf.js",
3
- "version": "2.6.5",
3
+ "version": "2.6.7",
4
4
  "description": "Type-safe, lossless round-trip conversion between OpenDocument Format packages (odt, ods, odp) and JSON, hand-written and dependency-minimal, built on Zod 4 codecs.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -77,7 +77,7 @@
77
77
  "license": "MIT",
78
78
  "packageManager": "pnpm@11.6.0",
79
79
  "dependencies": {
80
- "document-schema.js": "^2.7.3",
80
+ "document-schema.js": "^2.7.4",
81
81
  "fast-xml-parser": "^5.10.1",
82
82
  "fflate": "^0.8.3",
83
83
  "zod": "^4.4.3"
@@ -88,7 +88,7 @@
88
88
  "@commitlint/cli": "^21.2.1",
89
89
  "@commitlint/config-conventional": "^21.2.0",
90
90
  "@eslint/js": "^10.0.1",
91
- "@exadev/eslint-config": "^2.0.0",
91
+ "@exadev/eslint-config": "^2.1.0",
92
92
  "@semantic-release/changelog": "^7.0.0",
93
93
  "@semantic-release/git": "^11.0.1",
94
94
  "@types/node": "^26.1.1",
@@ -1,2 +0,0 @@
1
- import { Alignment as Alignment$1, AlignmentSchema } from "document-schema.js";
2
- export { AlignmentSchema as n, Alignment$1 as t };
@@ -1,2 +0,0 @@
1
- import { Alignment as Alignment$1, AlignmentSchema as AlignmentSchema$1 } from "document-schema.js";
2
- export { AlignmentSchema$1 as n, Alignment$1 as t };
@@ -1,8 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- let document_schema_js = require("document-schema.js");
3
- Object.defineProperty(exports, "AlignmentSchema", {
4
- enumerable: true,
5
- get: function() {
6
- return document_schema_js.AlignmentSchema;
7
- }
8
- });
@@ -1,2 +0,0 @@
1
- import { n as AlignmentSchema, t as Alignment } from "../../style-CwuPFm34.cjs";
2
- export { type Alignment, AlignmentSchema };
@@ -1,2 +0,0 @@
1
- import { n as AlignmentSchema, t as Alignment } from "../../style-Jzwx2Q-Y.js";
2
- export { type Alignment, AlignmentSchema };
@@ -1,2 +0,0 @@
1
- import { AlignmentSchema } from "document-schema.js";
2
- export { AlignmentSchema };