odf.js 5.5.2 → 6.0.0

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.
Files changed (52) hide show
  1. package/README.md +10 -10
  2. package/dist/{codec-CbPSWzQ2.d.ts → codec-DztlTBCo.d.ts} +8 -8
  3. package/dist/{codec-C3i7QbVt.d.cts → codec-Eu8F9yg-.d.cts} +8 -8
  4. package/dist/codec.d.cts +1 -1
  5. package/dist/codec.d.ts +1 -1
  6. package/dist/{embedded-CBTvjVKb.cjs → embedded-BsO-SvtW.cjs} +2 -2
  7. package/dist/{embedded-D2MXjcFm.js → embedded-UQQNFd5U.js} +3 -3
  8. package/dist/{form-RJTtSmwn.d.ts → form-D8QjulSp.d.ts} +1 -1
  9. package/dist/{form-CWWCkG-r.d.cts → form-DuOeV_ao.d.cts} +1 -1
  10. package/dist/index.cjs +1 -1
  11. package/dist/index.d.cts +8 -8
  12. package/dist/index.d.ts +8 -8
  13. package/dist/index.js +1 -1
  14. package/dist/{read-CDSmR3qt.d.cts → read-1Pb4V339.d.cts} +2 -2
  15. package/dist/{read-DJqvINGW.d.ts → read-BeSqYhgO.d.ts} +2 -2
  16. package/dist/{read-rwDsgR0d.d.cts → read-CmA_zSSu.d.cts} +2 -2
  17. package/dist/{read-BnN7u9Y2.d.ts → read-CnmgrUcT.d.ts} +2 -2
  18. package/dist/{read-24g5eZw6.d.ts → read-CydREmpv.d.ts} +2 -2
  19. package/dist/{read-DUCm1nUv.d.cts → read-DSm8V7pi.d.cts} +2 -2
  20. package/dist/{read-IOYq80AA.d.cts → read-IuxtJHKB.d.cts} +2 -2
  21. package/dist/{read-BLoaDxr_.d.ts → read-M0Tx5gOi.d.ts} +2 -2
  22. package/dist/{read-C3Ei_MYc.d.cts → read-iseHPpTG.d.cts} +2 -2
  23. package/dist/{read-DfEHXwgn.d.ts → read-sg7J23Kt.d.ts} +2 -2
  24. package/dist/typed/draw/embedded.cjs +1 -1
  25. package/dist/typed/draw/embedded.js +1 -1
  26. package/dist/typed/formula/read.cjs +1 -1
  27. package/dist/typed/formula/read.d.cts +1 -1
  28. package/dist/typed/formula/read.d.ts +1 -1
  29. package/dist/typed/formula/read.js +2 -2
  30. package/dist/typed/odb/form.cjs +1 -1
  31. package/dist/typed/odb/form.d.cts +1 -1
  32. package/dist/typed/odb/form.d.ts +1 -1
  33. package/dist/typed/odb/form.js +1 -1
  34. package/dist/typed/odg/read.cjs +1 -1
  35. package/dist/typed/odg/read.d.cts +1 -1
  36. package/dist/typed/odg/read.d.ts +1 -1
  37. package/dist/typed/odg/read.js +2 -2
  38. package/dist/typed/odp/read.cjs +1 -1
  39. package/dist/typed/odp/read.d.cts +1 -1
  40. package/dist/typed/odp/read.d.ts +1 -1
  41. package/dist/typed/odp/read.js +2 -2
  42. package/dist/typed/ods/read.cjs +1 -1
  43. package/dist/typed/ods/read.d.cts +1 -1
  44. package/dist/typed/ods/read.d.ts +1 -1
  45. package/dist/typed/ods/read.js +1 -1
  46. package/dist/typed/odt/read.cjs +1 -1
  47. package/dist/typed/odt/read.d.cts +1 -1
  48. package/dist/typed/odt/read.d.ts +1 -1
  49. package/dist/typed/odt/read.js +1 -1
  50. package/dist/typed/shared/constructs.cjs +4 -3
  51. package/dist/typed/shared/constructs.js +4 -3
  52. package/package.json +2 -2
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  `odf.js` is the ODF sibling of [`ooxml.js`](../ooxml.js/README.md), mirroring its architecture: a lossless ZIP-of-XML core that round-trips any package byte-for-content-faithful, with typed readers layered on top. Two ODF-specific differences shape the design: ODF has no relationship mechanism (inter-part references are direct paths, with an exhaustive `META-INF/manifest.xml`), and ODF has no inline/direct formatting — every formatting difference must be a named "automatic style," so `odf.js` owns a style-interning subsystem (`src/styles/`) with no OOXML equivalent.
8
8
 
9
- **This package does not depend on `ooxml.js`.** `ooxml.js`'s branding and SBOM are scoped to ECMA-376/OOXML; depending on it would be the wrong signal for an OASIS-standard codec and would force a breaking `ooxml.js` release for every ODF-only fix. The small generic ZIP/XML/`Package` layer is duplicated, kept structurally identical so TypeScript's structural typing makes both packages' values interchangeable for a shared consumer like `documents.js`. Both depend on [`document-schema.js`](../document-schema.js/README.md) for the genuinely identical `ContentDocument`/`DocumentPackage` content model.
9
+ **This package does not depend on `ooxml.js`.** `ooxml.js`'s branding and SBOM are scoped to ECMA-376/OOXML; depending on it would be the wrong signal for an OASIS-standard codec and would force a breaking `ooxml.js` release for every ODF-only fix. The small generic ZIP/XML/`Package` layer is duplicated, kept structurally identical so TypeScript's structural typing makes both packages' values interchangeable for a shared consumer like `documents.js`. Both depend on [`document-schema.js`](../document-schema.js/README.md) for the genuinely identical `ContentDocument`/`DocumentTree` content model.
10
10
 
11
11
  ```mermaid
12
12
  graph TD
@@ -58,9 +58,9 @@ Under active development. Built and shipped:
58
58
  - **Namespaces, media types, mimetype, manifest** (`src/ns.ts`, `src/media-type.ts`, `src/mimetype.ts`, `src/manifest.ts`) — full read and write, including `META-INF/manifest.xml` and the mimetype part's mandatory first-entry/stored/uncompressed layout.
59
59
  - **Style interning** (`src/styles/`) — `StyleRegistry` adopts existing automatic styles, finds-or-mints on `intern()`, fingerprints on canonical serialized properties (never `JSON.stringify`), collision-checked across all four style containers.
60
60
  - **Shared typed primitives** (`src/typed/shared/`) — unit parsing, A1 cell-reference computation with repeat-count cursor advancement, colour/geometry/master-page parsing into `document-schema.js` types, whitespace-run decoding, the read-side style cascade, shared `readOdfParagraph`/`readOdfTable`, the `draw:transform`/`draw:g` group-flattening geometry resolver, an `svg:d`/`draw:points` path parser, and `meta.xml` reading.
61
- - **Typed readers, at two levels** — `readOdt`/`readOdp`/`readOdg`/`readOds`/`readOdfFormula` resolve a `Package` into a `document-schema.js` **`DocumentPackage`**: the single hierarchical artefact, with a minted styles table. Beneath each sits its `*Content` sibling (`readOdtContent`, `readOdpContent`, `readOdgContent`, `readOdsContent`, `readOdfFormulaContent`) producing the flat `ContentDocument`-level shape instead. See [Reading a document](#reading-a-document).
61
+ - **Typed readers, at two levels** — `readOdt`/`readOdp`/`readOdg`/`readOds`/`readOdfFormula` resolve a `Package` into a `document-schema.js` **`DocumentTree`**: the single hierarchical artefact, with a minted styles table. Beneath each sits its `*Content` sibling (`readOdtContent`, `readOdpContent`, `readOdgContent`, `readOdsContent`, `readOdfFormulaContent`) producing the flat `ContentDocument`-level shape instead. See [Reading a document](#reading-a-document).
62
62
  - **What each reader actually covers** — wordprocessing (`readOdt`), presentation (`readOdp`), drawing (`readOdg`: vector primitives in `draw:z-index`-aware paint order), spreadsheet (`readOds`: every `office:value-type`, cell/page-anchored images, and embedded sub-documents including charts), each expressed in `document-schema.js`'s own `ContentSection`/`ContentSlide`/`ContentDrawPage`/`ContentSheet` vocabulary — plus the fidelity construct vocabulary in `readOdt` (fields including the cross-reference displays, bookmarks and reference-marks, tracked changes, notes, annotations, divisions, index wrappers, forms, and anchored frames; see [Fidelity constructs](#fidelity-constructs)).
63
- - **`readOdfFormulaMathMl`** — resolves a standalone/embedded `.odf` formula's bare-MathML `content.xml` into raw MathML nodes plus a StarMath annotation, with no pivot shaping at all. **`readOdfFormulaContent`** wraps that into a real `'formula'`-kind `ContentDocument`, and **`readOdfFormula`** into a `DocumentPackage`.
63
+ - **`readOdfFormulaMathMl`** — resolves a standalone/embedded `.odf` formula's bare-MathML `content.xml` into raw MathML nodes plus a StarMath annotation, with no pivot shaping at all. **`readOdfFormulaContent`** wraps that into a real `'formula'`-kind `ContentDocument`, and **`readOdfFormula`** into a `DocumentTree`.
64
64
  - **`readOdm`** — resolves a `.odm` master document into an ordered list of chapter references (`{ name, href, filterName? }`); chapters are genuinely external `.odt` files by ODF design, never cached.
65
65
  - **`readOdbInventory`** — resolves a `.odb` into connection info, table names, query definitions (`{ name, command, escapeProcessing? }` with real SQL text), and form/report `{ name, href }` pairs. A sub-document directory is named after an opaque *persistent* name (`forms/Obj11`), not the user-visible name.
66
66
  - **`readOdbForm`/`readOdbReport`** — extract one sub-document's *static structure*, executing nothing: a form's control tree and data bindings, or a report's band stack, recursive group tree, bound fields, and computed expressions.
@@ -99,7 +99,7 @@ To run a single test file: `pnpm vitest run src/path/to/file.test.ts`.
99
99
 
100
100
  ### Reading a document
101
101
 
102
- A typed reader takes a `Package` (bytes go through `decodePackage`/`parsePackage` first) and returns a [`DocumentPackage`](../document-schema.js/README.md#the-package-tree) — `document-schema.js`'s single hierarchical artefact, where structure, layout, and content are fused in one tree and a `styles` table has already been minted over it:
102
+ A typed reader takes a `Package` (bytes go through `decodePackage`/`parsePackage` first) and returns a [`DocumentTree`](../document-schema.js/README.md#the-package-tree) — `document-schema.js`'s single hierarchical artefact, where structure, layout, and content are fused in one tree and a `styles` table has already been minted over it:
103
103
 
104
104
  ```ts
105
105
  import { decodePackage, readOdt } from 'odf.js';
@@ -113,7 +113,7 @@ document.children; // one section group per ContentSection, headings and lists
113
113
  document.styles; // the minted styles table the tree's `style` refs name
114
114
  ```
115
115
 
116
- One reader per format, each returning the `DocumentPackage` arm its format produces:
116
+ One reader per format, each returning the `DocumentTree` arm its format produces:
117
117
 
118
118
  | Format | Reader | Package kind |
119
119
  | --- | --- | --- |
@@ -123,7 +123,7 @@ One reader per format, each returning the `DocumentPackage` arm its format produ
123
123
  | `.odg` | `readOdg` | `drawing` |
124
124
  | `.odf` | `readOdfFormula` | `formula` |
125
125
 
126
- Each is assembled through `document-schema.js`'s own `assemblePackage`, so odf.js's packages are built exactly the way every other package construction site in this family builds one. No `pages` array is populated and no node carries `frames`: a reader runs before any layout pass, and rendered page geometry is a layout engine's to report, never a reader's to invent.
126
+ Each is assembled through `document-schema.js`'s own `assembleTree`, so odf.js's packages are built exactly the way every other package construction site in this family builds one. No `pages` array is populated and no node carries `frames`: a reader runs before any layout pass, and rendered page geometry is a layout engine's to report, never a reader's to invent.
127
127
 
128
128
  ### The flat `ContentDocument` level
129
129
 
@@ -138,7 +138,7 @@ const { mathml, starMath } = readOdfFormulaMathMl(formulaPkg); // rawest of all:
138
138
 
139
139
  `readOdtContent`/`readOdpContent`/`readOdgContent`/`readOdsContent` return `{ metadata, sections | slides | pages | sheets }`; `readOdfFormulaContent` returns a whole `'formula'`-kind `ContentDocument`; `readOdfFormulaMathMl` returns the raw MathML with no pivot shaping at all. A package-native reader calls its own `*Content` sibling and reshapes that result, so the two levels are one read and can never disagree about what the file says.
140
140
 
141
- Crossing between the levels is `document-schema.js`'s job, not this package's: `flattenPackage(readOdt(pkg))` reproduces exactly what `readOdtContent(pkg)` returns, wrapped in its `ContentDocument` envelope. That equality is pinned per format against real fixture bytes in this package's own test suites.
141
+ Crossing between the levels is `document-schema.js`'s job, not this package's: `flattenTree(readOdt(pkg))` reproduces exactly what `readOdtContent(pkg)` returns, wrapped in its `ContentDocument` envelope. That equality is pinned per format against real fixture bytes in this package's own test suites.
142
142
 
143
143
  ### The primary names moved — migrating from 4.x
144
144
 
@@ -153,9 +153,9 @@ Every bare `readOdX` name now belongs to the package-native reader. Callers of t
153
153
  | `readOdfFormulaDocument` | `readOdfFormulaContent` | `ContentDocument` |
154
154
  | `readOdfFormula` | `readOdfFormulaMathMl` | `OdfFormulaDocument` |
155
155
 
156
- The rename is a compile error at every call site, never a silent behaviour change: each new bare name returns a `DocumentPackage`, which is assignable to none of the old return types.
156
+ The rename is a compile error at every call site, never a silent behaviour change: each new bare name returns a `DocumentTree`, which is assignable to none of the old return types.
157
157
 
158
- `readOdm`, `readOdbInventory`, `readOdbForm`, and `readOdbReport` are untouched, and none gains a package-native form. `readOdm`'s chapters are external file references and `readOdbInventory`/`readOdbReport` describe structure rather than content, so none of those three has a `ContentDocument` to decompose. `readOdbForm` is the exception that proves the rule rather than a fourth case of it: a form's sub-document is a complete, ordinary ODF text document, so `readOdbForm` does call `readOdtContent` on it and does return an `OdtDocument` — but that document is one component nested inside the form's own control-tree result, not the function's own top-level return value, so there is no `DocumentPackage`-native `readOdbForm` to add without changing what the function returns altogether.
158
+ `readOdm`, `readOdbInventory`, `readOdbForm`, and `readOdbReport` are untouched, and none gains a package-native form. `readOdm`'s chapters are external file references and `readOdbInventory`/`readOdbReport` describe structure rather than content, so none of those three has a `ContentDocument` to decompose. `readOdbForm` is the exception that proves the rule rather than a fourth case of it: a form's sub-document is a complete, ordinary ODF text document, so `readOdbForm` does call `readOdtContent` on it and does return an `OdtDocument` — but that document is one component nested inside the form's own control-tree result, not the function's own top-level return value, so there is no `DocumentTree`-native `readOdbForm` to add without changing what the function returns altogether.
159
159
 
160
160
  ### The lossless core
161
161
 
@@ -266,7 +266,7 @@ Conventional Commits, enforced workspace-wide by commitlint through a root `comm
266
266
  ## References
267
267
 
268
268
  - [ooxml.js](../ooxml.js/README.md) — the OOXML sibling; architecturally mirrored, deliberately not depended on.
269
- - [document-schema.js](../document-schema.js/README.md) — the canonical `ContentDocument`/`DocumentPackage` schema both packages depend on, and the home of the `assemblePackage`/`flattenPackage`/`decompose`/`factorStyles` transform between the two encodings.
269
+ - [document-schema.js](../document-schema.js/README.md) — the canonical `ContentDocument`/`DocumentTree` schema both packages depend on, and the home of the `assembleTree`/`flattenTree`/`decompose`/`factorStyles` transform between the two encodings.
270
270
  - [documents.js](https://github.com/ExaDev/documents.js) — the downstream consumer; its own `readOdtContent`/`readOdpContent`/`readOdsContent`/`readOdgContent` adapters wrap this package's flat `*Content` readers into `ContentDocument`s, adding the odt/odp formula, image, and vector detection passes those readers deliberately leave out.
271
271
 
272
272
  ## License
@@ -25,19 +25,19 @@ import "./masterpage-By_F05W4.js";
25
25
  import "./path-DE7wkIcz.js";
26
26
  import "./shapes-CCB8ydqD.js";
27
27
  import "./embedded-Zv8KtFUo.js";
28
- import "./read-DfEHXwgn.js";
29
- import "./read-24g5eZw6.js";
30
- import "./read-BLoaDxr_.js";
31
- import "./read-DJqvINGW.js";
32
- import "./read-BnN7u9Y2.js";
28
+ import "./read-sg7J23Kt.js";
29
+ import "./read-CydREmpv.js";
30
+ import "./read-M0Tx5gOi.js";
31
+ import "./read-BeSqYhgO.js";
32
+ import "./read-CnmgrUcT.js";
33
33
  import "./read-DYYxbvfo.js";
34
34
  import "./read-CvjbdgH3.js";
35
35
  import "./subdocument-BwW3FZC_.js";
36
36
  import "./forms-CyLw7lpE.js";
37
- import "./form-RJTtSmwn.js";
37
+ import "./form-D8QjulSp.js";
38
38
  import "./report-DbslT2OR.js";
39
39
  import { z } from "zod";
40
- import { Alignment as Alignment$1, AlignmentSchema as AlignmentSchema$1, DocumentPackage as DocumentPackage$1 } from "document-schema.js";
40
+ import { Alignment as Alignment$1, AlignmentSchema as AlignmentSchema$1, DocumentTree as DocumentTree$1 } from "document-schema.js";
41
41
  //#region src/codec.d.ts
42
42
  declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
43
43
  type: z.ZodLiteral<"text">;
@@ -106,4 +106,4 @@ declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint
106
106
  declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
107
107
  declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
108
108
  //#endregion
109
- export { Alignment$1 as a, xmlCodec as i, encodePackage as n, AlignmentSchema$1 as o, packageCodec as r, DocumentPackage$1 as s, decodePackage as t };
109
+ export { Alignment$1 as a, xmlCodec as i, encodePackage as n, AlignmentSchema$1 as o, packageCodec as r, DocumentTree$1 as s, decodePackage as t };
@@ -25,19 +25,19 @@ import "./masterpage-Bt6gxuoL.cjs";
25
25
  import "./path-DE7wkIcz.cjs";
26
26
  import "./shapes-8o3NjBLU.cjs";
27
27
  import "./embedded-BzPTTzdf.cjs";
28
- import "./read-CDSmR3qt.cjs";
29
- import "./read-rwDsgR0d.cjs";
30
- import "./read-IOYq80AA.cjs";
31
- import "./read-C3Ei_MYc.cjs";
32
- import "./read-DUCm1nUv.cjs";
28
+ import "./read-1Pb4V339.cjs";
29
+ import "./read-CmA_zSSu.cjs";
30
+ import "./read-IuxtJHKB.cjs";
31
+ import "./read-iseHPpTG.cjs";
32
+ import "./read-DSm8V7pi.cjs";
33
33
  import "./read-ydLJ8bid.cjs";
34
34
  import "./read-BV2an1ok.cjs";
35
35
  import "./subdocument-yY8ASE4N.cjs";
36
36
  import "./forms-Eh1N15Qy.cjs";
37
- import "./form-CWWCkG-r.cjs";
37
+ import "./form-DuOeV_ao.cjs";
38
38
  import "./report-D6WNYaVn.cjs";
39
39
  import { z } from "zod";
40
- import { Alignment as Alignment$1, AlignmentSchema, DocumentPackage as DocumentPackage$1 } from "document-schema.js";
40
+ import { Alignment as Alignment$1, AlignmentSchema, DocumentTree as DocumentTree$1 } from "document-schema.js";
41
41
  //#region src/codec.d.ts
42
42
  declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
43
43
  type: z.ZodLiteral<"text">;
@@ -106,4 +106,4 @@ declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint
106
106
  declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
107
107
  declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
108
108
  //#endregion
109
- export { Alignment$1 as a, xmlCodec as i, encodePackage as n, AlignmentSchema as o, packageCodec as r, DocumentPackage$1 as s, decodePackage as t };
109
+ export { Alignment$1 as a, xmlCodec as i, encodePackage as n, AlignmentSchema as o, packageCodec as r, DocumentTree$1 as s, 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-C3i7QbVt.cjs";
1
+ import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-Eu8F9yg-.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-CbPSWzQ2.js";
1
+ import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-DztlTBCo.js";
2
2
  export { decodePackage, encodePackage, packageCodec, xmlCodec };
@@ -395,7 +395,7 @@ function readOdsContent(pkg) {
395
395
  }
396
396
  function readOds(pkg) {
397
397
  const { metadata, sheets, definitions, source } = readOdsContent(pkg);
398
- const assembled = (0, document_schema_js.assemblePackage)({
398
+ const assembled = (0, document_schema_js.assembleTree)({
399
399
  kind: "spreadsheet",
400
400
  metadata,
401
401
  sheets
@@ -747,7 +747,7 @@ function readOdtContent(pkg, options = {}) {
747
747
  }
748
748
  function readOdt(pkg, options = {}) {
749
749
  const { metadata, sections, definitions, source } = readOdtContent(pkg, options);
750
- const assembled = (0, document_schema_js.assemblePackage)({
750
+ const assembled = (0, document_schema_js.assembleTree)({
751
751
  kind: "wordprocessing",
752
752
  metadata,
753
753
  sections
@@ -16,7 +16,7 @@ import { subDocumentPackage } from "./typed/odb/subdocument.js";
16
16
  import { readOdgContent } from "./typed/odg/read.js";
17
17
  import { readOdpContent } from "./typed/odp/read.js";
18
18
  import { readOdfFormControlConstructs } from "./typed/shared/forms.js";
19
- import { PAGE_SIZE_A4, assemblePackage } from "document-schema.js";
19
+ import { PAGE_SIZE_A4, assembleTree } from "document-schema.js";
20
20
  //#region src/typed/ods/read.ts
21
21
  const CONTENT_PART$2 = "content.xml";
22
22
  function parseKnownOdfLength$1(value) {
@@ -395,7 +395,7 @@ function readOdsContent(pkg) {
395
395
  }
396
396
  function readOds(pkg) {
397
397
  const { metadata, sheets, definitions, source } = readOdsContent(pkg);
398
- const assembled = assemblePackage({
398
+ const assembled = assembleTree({
399
399
  kind: "spreadsheet",
400
400
  metadata,
401
401
  sheets
@@ -747,7 +747,7 @@ function readOdtContent(pkg, options = {}) {
747
747
  }
748
748
  function readOdt(pkg, options = {}) {
749
749
  const { metadata, sections, definitions, source } = readOdtContent(pkg, options);
750
- const assembled = assemblePackage({
750
+ const assembled = assembleTree({
751
751
  kind: "wordprocessing",
752
752
  metadata,
753
753
  sections
@@ -1,5 +1,5 @@
1
1
  import { r as Package } from "./package-BUojjTXf.js";
2
- import { t as OdtDocument } from "./read-24g5eZw6.js";
2
+ import { t as OdtDocument } from "./read-CydREmpv.js";
3
3
  import { n as OdbFormDefinition } from "./forms-CyLw7lpE.js";
4
4
  //#region src/typed/odb/form.d.ts
5
5
  interface OdbForm {
@@ -1,5 +1,5 @@
1
1
  import { r as Package } from "./package-L24lkba-.cjs";
2
- import { t as OdtDocument } from "./read-rwDsgR0d.cjs";
2
+ import { t as OdtDocument } from "./read-CmA_zSSu.cjs";
3
3
  import { n as OdbFormDefinition } from "./forms-Eh1N15Qy.cjs";
4
4
  //#region src/typed/odb/form.d.ts
5
5
  interface OdbForm {
package/dist/index.cjs CHANGED
@@ -38,7 +38,7 @@ const require_typed_formula_read = require("./typed/formula/read.cjs");
38
38
  const require_typed_odb_subdocument = require("./typed/odb/subdocument.cjs");
39
39
  const require_typed_odg_read = require("./typed/odg/read.cjs");
40
40
  const require_typed_odp_read = require("./typed/odp/read.cjs");
41
- const require_embedded = require("./embedded-CBTvjVKb.cjs");
41
+ const require_embedded = require("./embedded-BsO-SvtW.cjs");
42
42
  const require_typed_shared_forms = require("./typed/shared/forms.cjs");
43
43
  const require_typed_odm_read = require("./typed/odm/read.cjs");
44
44
  const require_typed_odb_read = require("./typed/odb/read.cjs");
package/dist/index.d.cts CHANGED
@@ -33,16 +33,16 @@ import { n as resolveDrawPageSize, r as resolvePageLayoutProperties } from "./ma
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.cjs";
34
34
  import { a as walkDrawShapes, i as readDrawPageContent, n as readDrawFrame, r as readDrawImageBlock, t as DrawPageContent } from "./shapes-8o3NjBLU.cjs";
35
35
  import { i as readDrawObjectReference, r as EmbeddedDrawObject, t as EmbeddedDocumentKind } from "./embedded-BzPTTzdf.cjs";
36
- import { n as readOdp, r as readOdpContent, t as OdpDocument } from "./read-CDSmR3qt.cjs";
37
- import { a as readOdt, i as OdtReadOptions, n as OdtHeaderFooterPart, o as readOdtContent, r as OdtHeaderFooterVariant, t as OdtDocument } from "./read-rwDsgR0d.cjs";
38
- import { n as readOdg, r as readOdgContent, t as OdgDocument } from "./read-IOYq80AA.cjs";
39
- import { n as readOds, r as readOdsContent, t as OdsDocument } from "./read-C3Ei_MYc.cjs";
40
- import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, r as readOdfFormula, t as OdfFormulaDocument } from "./read-DUCm1nUv.cjs";
36
+ import { n as readOdp, r as readOdpContent, t as OdpDocument } from "./read-1Pb4V339.cjs";
37
+ import { a as readOdt, i as OdtReadOptions, n as OdtHeaderFooterPart, o as readOdtContent, r as OdtHeaderFooterVariant, t as OdtDocument } from "./read-CmA_zSSu.cjs";
38
+ import { n as readOdg, r as readOdgContent, t as OdgDocument } from "./read-IuxtJHKB.cjs";
39
+ import { n as readOds, r as readOdsContent, t as OdsDocument } from "./read-iseHPpTG.cjs";
40
+ import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, r as readOdfFormula, t as OdfFormulaDocument } from "./read-DSm8V7pi.cjs";
41
41
  import { n as OdmSection, r as readOdm, t as OdmDocument } from "./read-ydLJ8bid.cjs";
42
42
  import { a as readOdbInventory, i as OdbQueryInfo, n as OdbConnectionInfo, o as resolveOdbComponent, r as OdbInventory, t as OdbComponentInfo } from "./read-BV2an1ok.cjs";
43
43
  import { n as subDocumentPackage, t as SubDocumentPackageOptions } from "./subdocument-yY8ASE4N.cjs";
44
44
  import { i as readOdfFormDefinitions, n as OdbFormDefinition, r as readOdfFormControlConstructs, t as OdbFormControl } from "./forms-Eh1N15Qy.cjs";
45
- import { n as readOdbForm, t as OdbForm } from "./form-CWWCkG-r.cjs";
45
+ import { n as readOdbForm, t as OdbForm } from "./form-DuOeV_ao.cjs";
46
46
  import { a as OdbReportGroup, i as OdbReportFunction, n as OdbReportBand, o as readOdbReport, r as OdbReportElement, t as OdbReport } from "./report-D6WNYaVn.cjs";
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-C3i7QbVt.cjs";
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 OdtHeaderFooterPart, type OdtHeaderFooterVariant, 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 };
47
+ import { a as Alignment, i as xmlCodec, n as encodePackage, o as AlignmentSchema, r as packageCodec, s as DocumentTree, t as decodePackage } from "./codec-Eu8F9yg-.cjs";
48
+ export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type BuildManifestOptions, type CascadeDiagnostic, type DocumentTree, 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 OdtHeaderFooterPart, type OdtHeaderFooterVariant, 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.d.ts CHANGED
@@ -33,16 +33,16 @@ import { n as resolveDrawPageSize, r as resolvePageLayoutProperties } from "./ma
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
34
  import { a as walkDrawShapes, i as readDrawPageContent, n as readDrawFrame, r as readDrawImageBlock, t as DrawPageContent } from "./shapes-CCB8ydqD.js";
35
35
  import { i as readDrawObjectReference, r as EmbeddedDrawObject, t as EmbeddedDocumentKind } from "./embedded-Zv8KtFUo.js";
36
- import { n as readOdp, r as readOdpContent, t as OdpDocument } from "./read-DfEHXwgn.js";
37
- import { a as readOdt, i as OdtReadOptions, n as OdtHeaderFooterPart, o as readOdtContent, r as OdtHeaderFooterVariant, t as OdtDocument } from "./read-24g5eZw6.js";
38
- import { n as readOdg, r as readOdgContent, t as OdgDocument } from "./read-BLoaDxr_.js";
39
- import { n as readOds, r as readOdsContent, t as OdsDocument } from "./read-DJqvINGW.js";
40
- import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, r as readOdfFormula, t as OdfFormulaDocument } from "./read-BnN7u9Y2.js";
36
+ import { n as readOdp, r as readOdpContent, t as OdpDocument } from "./read-sg7J23Kt.js";
37
+ import { a as readOdt, i as OdtReadOptions, n as OdtHeaderFooterPart, o as readOdtContent, r as OdtHeaderFooterVariant, t as OdtDocument } from "./read-CydREmpv.js";
38
+ import { n as readOdg, r as readOdgContent, t as OdgDocument } from "./read-M0Tx5gOi.js";
39
+ import { n as readOds, r as readOdsContent, t as OdsDocument } from "./read-BeSqYhgO.js";
40
+ import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, r as readOdfFormula, t as OdfFormulaDocument } from "./read-CnmgrUcT.js";
41
41
  import { n as OdmSection, r as readOdm, t as OdmDocument } from "./read-DYYxbvfo.js";
42
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
43
  import { n as subDocumentPackage, t as SubDocumentPackageOptions } from "./subdocument-BwW3FZC_.js";
44
44
  import { i as readOdfFormDefinitions, n as OdbFormDefinition, r as readOdfFormControlConstructs, t as OdbFormControl } from "./forms-CyLw7lpE.js";
45
- import { n as readOdbForm, t as OdbForm } from "./form-RJTtSmwn.js";
45
+ import { n as readOdbForm, t as OdbForm } from "./form-D8QjulSp.js";
46
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-CbPSWzQ2.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 OdtHeaderFooterPart, type OdtHeaderFooterVariant, 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 };
47
+ import { a as Alignment, i as xmlCodec, n as encodePackage, o as AlignmentSchema, r as packageCodec, s as DocumentTree, t as decodePackage } from "./codec-DztlTBCo.js";
48
+ export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type BuildManifestOptions, type CascadeDiagnostic, type DocumentTree, 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 OdtHeaderFooterPart, type OdtHeaderFooterVariant, 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
@@ -37,7 +37,7 @@ import { readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl } from "./t
37
37
  import { subDocumentPackage } from "./typed/odb/subdocument.js";
38
38
  import { readOdg, readOdgContent } from "./typed/odg/read.js";
39
39
  import { readOdp, readOdpContent } from "./typed/odp/read.js";
40
- import { a as readOdtContent, i as readOdt, o as readOds, s as readOdsContent, t as readDrawObjectReference } from "./embedded-D2MXjcFm.js";
40
+ import { a as readOdtContent, i as readOdt, o as readOds, s as readOdsContent, t as readDrawObjectReference } from "./embedded-UQQNFd5U.js";
41
41
  import { readOdfFormControlConstructs, readOdfFormDefinitions } from "./typed/shared/forms.js";
42
42
  import { readOdm } from "./typed/odm/read.js";
43
43
  import { readOdbInventory, resolveOdbComponent } from "./typed/odb/read.js";
@@ -1,5 +1,5 @@
1
1
  import { r as Package } from "./package-L24lkba-.cjs";
2
- import { ContentSlide, DocumentPackage, LayoutMetadata, SourceResidue } from "document-schema.js";
2
+ import { ContentSlide, DocumentTree, LayoutMetadata, SourceResidue } from "document-schema.js";
3
3
  //#region src/typed/odp/read.d.ts
4
4
  interface OdpDocument {
5
5
  metadata: LayoutMetadata;
@@ -7,6 +7,6 @@ interface OdpDocument {
7
7
  source?: Record<string, SourceResidue>;
8
8
  }
9
9
  declare function readOdpContent(pkg: Package): OdpDocument;
10
- declare function readOdp(pkg: Package): DocumentPackage;
10
+ declare function readOdp(pkg: Package): DocumentTree;
11
11
  //#endregion
12
12
  export { readOdp as n, readOdpContent as r, OdpDocument as t };
@@ -1,5 +1,5 @@
1
1
  import { r as Package } from "./package-BUojjTXf.js";
2
- import { ContentSheet, DefinitionsTable, DocumentPackage, LayoutMetadata, SourceResidue } from "document-schema.js";
2
+ import { ContentSheet, DefinitionsTable, DocumentTree, LayoutMetadata, SourceResidue } from "document-schema.js";
3
3
  //#region src/typed/ods/read.d.ts
4
4
  interface OdsDocument {
5
5
  metadata: LayoutMetadata;
@@ -8,6 +8,6 @@ interface OdsDocument {
8
8
  source?: Record<string, SourceResidue>;
9
9
  }
10
10
  declare function readOdsContent(pkg: Package): OdsDocument;
11
- declare function readOds(pkg: Package): DocumentPackage;
11
+ declare function readOds(pkg: Package): DocumentTree;
12
12
  //#endregion
13
13
  export { readOds as n, readOdsContent as r, OdsDocument as t };
@@ -1,5 +1,5 @@
1
1
  import { r as Package } from "./package-L24lkba-.cjs";
2
- import { ContentBlock, ContentSection, DefinitionsTable, DocumentPackage, LayoutMetadata, SourceResidue } from "document-schema.js";
2
+ import { ContentBlock, ContentSection, DefinitionsTable, DocumentTree, LayoutMetadata, SourceResidue } from "document-schema.js";
3
3
  //#region src/typed/odt/read.d.ts
4
4
  interface OdtReadOptions {
5
5
  frames?: 'lift' | 'none';
@@ -20,6 +20,6 @@ interface OdtHeaderFooterPart {
20
20
  readonly blocks: ContentBlock[];
21
21
  }
22
22
  declare function readOdtContent(pkg: Package, options?: OdtReadOptions): OdtDocument;
23
- declare function readOdt(pkg: Package, options?: OdtReadOptions): DocumentPackage;
23
+ declare function readOdt(pkg: Package, options?: OdtReadOptions): DocumentTree;
24
24
  //#endregion
25
25
  export { readOdt as a, OdtReadOptions as i, OdtHeaderFooterPart as n, readOdtContent as o, OdtHeaderFooterVariant as r, OdtDocument as t };
@@ -1,6 +1,6 @@
1
1
  import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.js";
2
2
  import { r as Package } from "./package-BUojjTXf.js";
3
- import { ContentDocument, DocumentPackage, LayoutMetadata } from "document-schema.js";
3
+ import { ContentDocument, DocumentTree, LayoutMetadata } from "document-schema.js";
4
4
  //#region src/typed/formula/read.d.ts
5
5
  interface OdfFormulaDocument {
6
6
  starMath?: string;
@@ -10,6 +10,6 @@ interface OdfFormulaDocument {
10
10
  declare function findMathRoot(nodes: readonly XmlNode[]): XmlElement | undefined;
11
11
  declare function readOdfFormulaMathMl(pkg: Package): OdfFormulaDocument;
12
12
  declare function readOdfFormulaContent(pkg: Package): ContentDocument;
13
- declare function readOdfFormula(pkg: Package): DocumentPackage;
13
+ declare function readOdfFormula(pkg: Package): DocumentTree;
14
14
  //#endregion
15
15
  export { readOdfFormulaMathMl as a, readOdfFormulaContent as i, findMathRoot as n, readOdfFormula as r, OdfFormulaDocument as t };
@@ -1,5 +1,5 @@
1
1
  import { r as Package } from "./package-BUojjTXf.js";
2
- import { ContentBlock, ContentSection, DefinitionsTable, DocumentPackage, LayoutMetadata, SourceResidue } from "document-schema.js";
2
+ import { ContentBlock, ContentSection, DefinitionsTable, DocumentTree, LayoutMetadata, SourceResidue } from "document-schema.js";
3
3
  //#region src/typed/odt/read.d.ts
4
4
  interface OdtReadOptions {
5
5
  frames?: 'lift' | 'none';
@@ -20,6 +20,6 @@ interface OdtHeaderFooterPart {
20
20
  readonly blocks: ContentBlock[];
21
21
  }
22
22
  declare function readOdtContent(pkg: Package, options?: OdtReadOptions): OdtDocument;
23
- declare function readOdt(pkg: Package, options?: OdtReadOptions): DocumentPackage;
23
+ declare function readOdt(pkg: Package, options?: OdtReadOptions): DocumentTree;
24
24
  //#endregion
25
25
  export { readOdt as a, OdtReadOptions as i, OdtHeaderFooterPart as n, readOdtContent as o, OdtHeaderFooterVariant as r, OdtDocument as t };
@@ -1,6 +1,6 @@
1
1
  import { d as XmlNode, l as XmlElement } from "./node-CkBWRjNR.cjs";
2
2
  import { r as Package } from "./package-L24lkba-.cjs";
3
- import { ContentDocument, DocumentPackage, LayoutMetadata } from "document-schema.js";
3
+ import { ContentDocument, DocumentTree, LayoutMetadata } from "document-schema.js";
4
4
  //#region src/typed/formula/read.d.ts
5
5
  interface OdfFormulaDocument {
6
6
  starMath?: string;
@@ -10,6 +10,6 @@ interface OdfFormulaDocument {
10
10
  declare function findMathRoot(nodes: readonly XmlNode[]): XmlElement | undefined;
11
11
  declare function readOdfFormulaMathMl(pkg: Package): OdfFormulaDocument;
12
12
  declare function readOdfFormulaContent(pkg: Package): ContentDocument;
13
- declare function readOdfFormula(pkg: Package): DocumentPackage;
13
+ declare function readOdfFormula(pkg: Package): DocumentTree;
14
14
  //#endregion
15
15
  export { readOdfFormulaMathMl as a, readOdfFormulaContent as i, findMathRoot as n, readOdfFormula as r, OdfFormulaDocument as t };
@@ -1,5 +1,5 @@
1
1
  import { r as Package } from "./package-L24lkba-.cjs";
2
- import { ContentDrawPage, DocumentPackage, LayoutMetadata, SourceResidue } from "document-schema.js";
2
+ import { ContentDrawPage, DocumentTree, LayoutMetadata, SourceResidue } from "document-schema.js";
3
3
  //#region src/typed/odg/read.d.ts
4
4
  interface OdgDocument {
5
5
  metadata: LayoutMetadata;
@@ -7,6 +7,6 @@ interface OdgDocument {
7
7
  source?: Record<string, SourceResidue>;
8
8
  }
9
9
  declare function readOdgContent(pkg: Package): OdgDocument;
10
- declare function readOdg(pkg: Package): DocumentPackage;
10
+ declare function readOdg(pkg: Package): DocumentTree;
11
11
  //#endregion
12
12
  export { readOdg as n, readOdgContent as r, OdgDocument as t };
@@ -1,5 +1,5 @@
1
1
  import { r as Package } from "./package-BUojjTXf.js";
2
- import { ContentDrawPage, DocumentPackage, LayoutMetadata, SourceResidue } from "document-schema.js";
2
+ import { ContentDrawPage, DocumentTree, LayoutMetadata, SourceResidue } from "document-schema.js";
3
3
  //#region src/typed/odg/read.d.ts
4
4
  interface OdgDocument {
5
5
  metadata: LayoutMetadata;
@@ -7,6 +7,6 @@ interface OdgDocument {
7
7
  source?: Record<string, SourceResidue>;
8
8
  }
9
9
  declare function readOdgContent(pkg: Package): OdgDocument;
10
- declare function readOdg(pkg: Package): DocumentPackage;
10
+ declare function readOdg(pkg: Package): DocumentTree;
11
11
  //#endregion
12
12
  export { readOdg as n, readOdgContent as r, OdgDocument as t };
@@ -1,5 +1,5 @@
1
1
  import { r as Package } from "./package-L24lkba-.cjs";
2
- import { ContentSheet, DefinitionsTable, DocumentPackage, LayoutMetadata, SourceResidue } from "document-schema.js";
2
+ import { ContentSheet, DefinitionsTable, DocumentTree, LayoutMetadata, SourceResidue } from "document-schema.js";
3
3
  //#region src/typed/ods/read.d.ts
4
4
  interface OdsDocument {
5
5
  metadata: LayoutMetadata;
@@ -8,6 +8,6 @@ interface OdsDocument {
8
8
  source?: Record<string, SourceResidue>;
9
9
  }
10
10
  declare function readOdsContent(pkg: Package): OdsDocument;
11
- declare function readOds(pkg: Package): DocumentPackage;
11
+ declare function readOds(pkg: Package): DocumentTree;
12
12
  //#endregion
13
13
  export { readOds as n, readOdsContent as r, OdsDocument as t };
@@ -1,5 +1,5 @@
1
1
  import { r as Package } from "./package-BUojjTXf.js";
2
- import { ContentSlide, DocumentPackage, LayoutMetadata, SourceResidue } from "document-schema.js";
2
+ import { ContentSlide, DocumentTree, LayoutMetadata, SourceResidue } from "document-schema.js";
3
3
  //#region src/typed/odp/read.d.ts
4
4
  interface OdpDocument {
5
5
  metadata: LayoutMetadata;
@@ -7,6 +7,6 @@ interface OdpDocument {
7
7
  source?: Record<string, SourceResidue>;
8
8
  }
9
9
  declare function readOdpContent(pkg: Package): OdpDocument;
10
- declare function readOdp(pkg: Package): DocumentPackage;
10
+ declare function readOdp(pkg: Package): DocumentTree;
11
11
  //#endregion
12
12
  export { readOdp as n, readOdpContent as r, OdpDocument as t };
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_embedded = require("../../embedded-CBTvjVKb.cjs");
2
+ const require_embedded = require("../../embedded-BsO-SvtW.cjs");
3
3
  exports.readDrawObjectReference = require_embedded.readDrawObjectReference;
4
4
  exports.readEmbeddedObjectDocument = require_embedded.readEmbeddedObjectDocument;
5
5
  exports.readOdfChartContent = require_embedded.readOdfChartContent;
@@ -1,2 +1,2 @@
1
- import { n as readEmbeddedObjectDocument, r as readOdfChartContent, t as readDrawObjectReference } from "../../embedded-D2MXjcFm.js";
1
+ import { n as readEmbeddedObjectDocument, r as readOdfChartContent, t as readDrawObjectReference } from "../../embedded-UQQNFd5U.js";
2
2
  export { readDrawObjectReference, readEmbeddedObjectDocument, readOdfChartContent };
@@ -57,7 +57,7 @@ function readOdfFormulaContent(pkg) {
57
57
  };
58
58
  }
59
59
  function readOdfFormula(pkg) {
60
- return (0, document_schema_js.assemblePackage)(readOdfFormulaContent(pkg));
60
+ return (0, document_schema_js.assembleTree)(readOdfFormulaContent(pkg));
61
61
  }
62
62
  //#endregion
63
63
  exports.findMathRoot = findMathRoot;
@@ -1,2 +1,2 @@
1
- import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, n as findMathRoot, r as readOdfFormula, t as OdfFormulaDocument } from "../../read-DUCm1nUv.cjs";
1
+ import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, n as findMathRoot, r as readOdfFormula, t as OdfFormulaDocument } from "../../read-DSm8V7pi.cjs";
2
2
  export { OdfFormulaDocument, findMathRoot, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl };
@@ -1,2 +1,2 @@
1
- import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, n as findMathRoot, r as readOdfFormula, t as OdfFormulaDocument } from "../../read-BnN7u9Y2.js";
1
+ import { a as readOdfFormulaMathMl, i as readOdfFormulaContent, n as findMathRoot, r as readOdfFormula, t as OdfFormulaDocument } from "../../read-CnmgrUcT.js";
2
2
  export { OdfFormulaDocument, findMathRoot, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl };
@@ -1,7 +1,7 @@
1
1
  import { decodeXmlText } from "../../xml/entities.js";
2
2
  import { attrValue, elementsWithTag, rootElement } from "../../xml/query.js";
3
3
  import { readOdfMetadata } from "../shared/metadata.js";
4
- import { assemblePackage } from "document-schema.js";
4
+ import { assembleTree } from "document-schema.js";
5
5
  //#region src/typed/formula/read.ts
6
6
  const CONTENT_PART = "content.xml";
7
7
  const MATH_ROOT_TAGS = ["math", "math:math"];
@@ -56,7 +56,7 @@ function readOdfFormulaContent(pkg) {
56
56
  };
57
57
  }
58
58
  function readOdfFormula(pkg) {
59
- return assemblePackage(readOdfFormulaContent(pkg));
59
+ return assembleTree(readOdfFormulaContent(pkg));
60
60
  }
61
61
  //#endregion
62
62
  export { findMathRoot, readOdfFormula, readOdfFormulaContent, readOdfFormulaMathMl };
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_xml_query = require("../../xml/query.cjs");
3
3
  const require_typed_odb_subdocument = require("./subdocument.cjs");
4
- const require_embedded = require("../../embedded-CBTvjVKb.cjs");
4
+ const require_embedded = require("../../embedded-BsO-SvtW.cjs");
5
5
  const require_typed_shared_forms = require("../shared/forms.cjs");
6
6
  const require_typed_odb_read = require("./read.cjs");
7
7
  //#region src/typed/odb/form.ts
@@ -1,2 +1,2 @@
1
- import { n as readOdbForm, t as OdbForm } from "../../form-CWWCkG-r.cjs";
1
+ import { n as readOdbForm, t as OdbForm } from "../../form-DuOeV_ao.cjs";
2
2
  export { OdbForm, readOdbForm };
@@ -1,2 +1,2 @@
1
- import { n as readOdbForm, t as OdbForm } from "../../form-RJTtSmwn.js";
1
+ import { n as readOdbForm, t as OdbForm } from "../../form-D8QjulSp.js";
2
2
  export { OdbForm, readOdbForm };
@@ -1,6 +1,6 @@
1
1
  import { findChildElement, rootElement } from "../../xml/query.js";
2
2
  import { subDocumentPackage } from "./subdocument.js";
3
- import { a as readOdtContent } from "../../embedded-D2MXjcFm.js";
3
+ import { a as readOdtContent } from "../../embedded-UQQNFd5U.js";
4
4
  import { readOdfFormDefinitions } from "../shared/forms.js";
5
5
  import { resolveOdbComponent } from "./read.js";
6
6
  //#region src/typed/odb/form.ts
@@ -36,7 +36,7 @@ function readOdgContent(pkg) {
36
36
  }
37
37
  function readOdg(pkg) {
38
38
  const { metadata, pages, source } = readOdgContent(pkg);
39
- const assembled = (0, document_schema_js.assemblePackage)({
39
+ const assembled = (0, document_schema_js.assembleTree)({
40
40
  kind: "drawing",
41
41
  metadata,
42
42
  pages
@@ -1,2 +1,2 @@
1
- import { n as readOdg, r as readOdgContent, t as OdgDocument } from "../../read-IOYq80AA.cjs";
1
+ import { n as readOdg, r as readOdgContent, t as OdgDocument } from "../../read-IuxtJHKB.cjs";
2
2
  export { OdgDocument, readOdg, readOdgContent };
@@ -1,2 +1,2 @@
1
- import { n as readOdg, r as readOdgContent, t as OdgDocument } from "../../read-BLoaDxr_.js";
1
+ import { n as readOdg, r as readOdgContent, t as OdgDocument } from "../../read-M0Tx5gOi.js";
2
2
  export { OdgDocument, readOdg, readOdgContent };
@@ -3,7 +3,7 @@ import { readOdfMetadata } from "../shared/metadata.js";
3
3
  import { collectOdfNonContentPartResidue, collectOdfUnmappedShapeResidue, odfResidue } from "../shared/constructs.js";
4
4
  import { resolveDrawPageSize } from "../shared/masterpage.js";
5
5
  import { readDrawPageContent } from "../draw/shapes.js";
6
- import { PAGE_SIZE_A4, assemblePackage } from "document-schema.js";
6
+ import { PAGE_SIZE_A4, assembleTree } from "document-schema.js";
7
7
  //#region src/typed/odg/read.ts
8
8
  const CONTENT_PART = "content.xml";
9
9
  function readPage(page, pkg) {
@@ -35,7 +35,7 @@ function readOdgContent(pkg) {
35
35
  }
36
36
  function readOdg(pkg) {
37
37
  const { metadata, pages, source } = readOdgContent(pkg);
38
- const assembled = assemblePackage({
38
+ const assembled = assembleTree({
39
39
  kind: "drawing",
40
40
  metadata,
41
41
  pages
@@ -83,7 +83,7 @@ function readOdpContent(pkg) {
83
83
  }
84
84
  function readOdp(pkg) {
85
85
  const { metadata, slides, source } = readOdpContent(pkg);
86
- const assembled = (0, document_schema_js.assemblePackage)({
86
+ const assembled = (0, document_schema_js.assembleTree)({
87
87
  kind: "presentation",
88
88
  metadata,
89
89
  slides
@@ -1,2 +1,2 @@
1
- import { n as readOdp, r as readOdpContent, t as OdpDocument } from "../../read-CDSmR3qt.cjs";
1
+ import { n as readOdp, r as readOdpContent, t as OdpDocument } from "../../read-1Pb4V339.cjs";
2
2
  export { OdpDocument, readOdp, readOdpContent };
@@ -1,2 +1,2 @@
1
- import { n as readOdp, r as readOdpContent, t as OdpDocument } from "../../read-DfEHXwgn.js";
1
+ import { n as readOdp, r as readOdpContent, t as OdpDocument } from "../../read-sg7J23Kt.js";
2
2
  export { OdpDocument, readOdp, readOdpContent };
@@ -4,7 +4,7 @@ import { readOdfMetadata } from "../shared/metadata.js";
4
4
  import { collectOdfNonContentPartResidue, collectOdfUnmappedShapeResidue, odfAttributeElement, odfResidue } from "../shared/constructs.js";
5
5
  import { resolveDrawPageSize } from "../shared/masterpage.js";
6
6
  import { walkDrawShapes } from "../draw/shapes.js";
7
- import { SLIDE_SIZE_WIDESCREEN, assemblePackage } from "document-schema.js";
7
+ import { SLIDE_SIZE_WIDESCREEN, assembleTree } from "document-schema.js";
8
8
  //#region src/typed/odp/read.ts
9
9
  const CONTENT_PART = "content.xml";
10
10
  function readSlideSize(page, pkg) {
@@ -82,7 +82,7 @@ function readOdpContent(pkg) {
82
82
  }
83
83
  function readOdp(pkg) {
84
84
  const { metadata, slides, source } = readOdpContent(pkg);
85
- const assembled = assemblePackage({
85
+ const assembled = assembleTree({
86
86
  kind: "presentation",
87
87
  metadata,
88
88
  slides
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_embedded = require("../../embedded-CBTvjVKb.cjs");
2
+ const require_embedded = require("../../embedded-BsO-SvtW.cjs");
3
3
  exports.readOds = require_embedded.readOds;
4
4
  exports.readOdsContent = require_embedded.readOdsContent;
@@ -1,2 +1,2 @@
1
- import { n as readOds, r as readOdsContent, t as OdsDocument } from "../../read-C3Ei_MYc.cjs";
1
+ import { n as readOds, r as readOdsContent, t as OdsDocument } from "../../read-iseHPpTG.cjs";
2
2
  export { OdsDocument, readOds, readOdsContent };
@@ -1,2 +1,2 @@
1
- import { n as readOds, r as readOdsContent, t as OdsDocument } from "../../read-DJqvINGW.js";
1
+ import { n as readOds, r as readOdsContent, t as OdsDocument } from "../../read-BeSqYhgO.js";
2
2
  export { OdsDocument, readOds, readOdsContent };
@@ -1,2 +1,2 @@
1
- import { o as readOds, s as readOdsContent } from "../../embedded-D2MXjcFm.js";
1
+ import { o as readOds, s as readOdsContent } from "../../embedded-UQQNFd5U.js";
2
2
  export { readOds, readOdsContent };
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_embedded = require("../../embedded-CBTvjVKb.cjs");
2
+ const require_embedded = require("../../embedded-BsO-SvtW.cjs");
3
3
  exports.readOdt = require_embedded.readOdt;
4
4
  exports.readOdtContent = require_embedded.readOdtContent;
@@ -1,2 +1,2 @@
1
- import { a as readOdt, i as OdtReadOptions, n as OdtHeaderFooterPart, o as readOdtContent, r as OdtHeaderFooterVariant, t as OdtDocument } from "../../read-rwDsgR0d.cjs";
1
+ import { a as readOdt, i as OdtReadOptions, n as OdtHeaderFooterPart, o as readOdtContent, r as OdtHeaderFooterVariant, t as OdtDocument } from "../../read-CmA_zSSu.cjs";
2
2
  export { OdtDocument, OdtHeaderFooterPart, OdtHeaderFooterVariant, OdtReadOptions, readOdt, readOdtContent };
@@ -1,2 +1,2 @@
1
- import { a as readOdt, i as OdtReadOptions, n as OdtHeaderFooterPart, o as readOdtContent, r as OdtHeaderFooterVariant, t as OdtDocument } from "../../read-24g5eZw6.js";
1
+ import { a as readOdt, i as OdtReadOptions, n as OdtHeaderFooterPart, o as readOdtContent, r as OdtHeaderFooterVariant, t as OdtDocument } from "../../read-CydREmpv.js";
2
2
  export { OdtDocument, OdtHeaderFooterPart, OdtHeaderFooterVariant, OdtReadOptions, readOdt, readOdtContent };
@@ -1,2 +1,2 @@
1
- import { a as readOdtContent, i as readOdt } from "../../embedded-D2MXjcFm.js";
1
+ import { a as readOdtContent, i as readOdt } from "../../embedded-UQQNFd5U.js";
2
2
  export { readOdt, readOdtContent };
@@ -136,11 +136,12 @@ function odfDivisionDescriptor(sectionElement, pkg) {
136
136
  if (sourceElement !== void 0) {
137
137
  const href = require_xml_query.attrValue(sourceElement, "xlink:href");
138
138
  if (href !== void 0) {
139
- const source = { href };
139
+ const linked = { href };
140
140
  const sectionName = require_xml_query.attrValue(sourceElement, "text:section-name");
141
- if (sectionName !== void 0) source.sectionName = sectionName;
142
- descriptor.source = source;
141
+ if (sectionName !== void 0) linked.sectionName = sectionName;
142
+ descriptor.linked = linked;
143
143
  }
144
+ if (require_xml_query.attrValue(sourceElement, "text:filter-name") !== void 0) descriptor.source = odfResidue("odt", odfAttributeElement(sourceElement, "text:filter-name"));
144
145
  }
145
146
  return descriptor;
146
147
  }
@@ -135,11 +135,12 @@ function odfDivisionDescriptor(sectionElement, pkg) {
135
135
  if (sourceElement !== void 0) {
136
136
  const href = attrValue(sourceElement, "xlink:href");
137
137
  if (href !== void 0) {
138
- const source = { href };
138
+ const linked = { href };
139
139
  const sectionName = attrValue(sourceElement, "text:section-name");
140
- if (sectionName !== void 0) source.sectionName = sectionName;
141
- descriptor.source = source;
140
+ if (sectionName !== void 0) linked.sectionName = sectionName;
141
+ descriptor.linked = linked;
142
142
  }
143
+ if (attrValue(sourceElement, "text:filter-name") !== void 0) descriptor.source = odfResidue("odt", odfAttributeElement(sourceElement, "text:filter-name"));
143
144
  }
144
145
  return descriptor;
145
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "odf.js",
3
- "version": "5.5.2",
3
+ "version": "6.0.0",
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": {
@@ -79,7 +79,7 @@
79
79
  "license": "MIT",
80
80
  "packageManager": "pnpm@11.6.0",
81
81
  "dependencies": {
82
- "document-schema.js": "^4.10.0",
82
+ "document-schema.js": "^5.0.0",
83
83
  "fast-xml-parser": "^5.10.1",
84
84
  "fflate": "^0.8.3",
85
85
  "zod": "^4.4.3"