odf.js 5.1.2 → 5.3.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.
- package/README.md +5 -3
- package/dist/{cascade-rhqUQrUa.d.ts → cascade-BZ7zqXhL.d.ts} +2 -2
- package/dist/{cascade-BmvsXcAz.d.cts → cascade-DWQfTwaM.d.cts} +2 -2
- package/dist/{codec-BAz7YIru.d.cts → codec-LgpdP32n.d.cts} +13 -13
- package/dist/{codec-BxxFEqvT.d.ts → codec-sFSMk-if.d.ts} +13 -13
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{constructs-CJpDDQV0.d.ts → constructs-B1yajQJB.d.ts} +8 -1
- package/dist/{constructs-Dy_DMFs3.d.cts → constructs-BSC_5kfU.d.cts} +8 -1
- package/dist/embedded-BSSdoKcK.js +904 -0
- package/dist/{embedded-BPhuSEEI.d.ts → embedded-ClsebpWi.d.ts} +7 -2
- package/dist/embedded-DbLrCGPi.cjs +945 -0
- package/dist/{embedded-J3M3kDvY.d.cts → embedded-rKOsAsjg.d.cts} +7 -2
- package/dist/{form-D3H5H2NL.d.ts → form-CsOrcORr.d.ts} +2 -2
- package/dist/{form-BGCT81ss.d.cts → form-D8wh-xhJ.d.cts} +2 -2
- package/dist/{forms-cIjw-Jf-.d.cts → forms-BydLKkI0.d.cts} +1 -1
- package/dist/{forms-D1-0spCe.d.ts → forms-iwRSwhOn.d.ts} +1 -1
- package/dist/index.cjs +7 -9
- package/dist/index.d.cts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +2 -4
- package/dist/{masterpage-XJ2v2khe.d.cts → masterpage-Bt6gxuoL.d.cts} +2 -1
- package/dist/{masterpage-C1McDhMv.d.ts → masterpage-By_F05W4.d.ts} +2 -1
- package/dist/{paragraph-6hzAZpmi.d.ts → paragraph-BE71DZ0t.d.ts} +4 -3
- package/dist/{paragraph-BBmSl_sK.d.cts → paragraph-CuEMXbDg.d.cts} +4 -3
- package/dist/{properties-BF_Fv6B3.d.cts → properties-C-JKQZUD.d.cts} +2 -0
- package/dist/{properties-DjAIdPry.d.ts → properties-Rral02h1.d.ts} +2 -0
- package/dist/read-24g5eZw6.d.ts +25 -0
- package/dist/{read-lc0t0UHK.d.ts → read-BLoaDxr_.d.ts} +2 -1
- package/dist/{read-B4238IGr.d.cts → read-C3Ei_MYc.d.cts} +2 -1
- package/dist/{read-CTfeWaWq.d.cts → read-CDSmR3qt.d.cts} +2 -1
- package/dist/{read-CdvX2qnz.d.ts → read-DJqvINGW.d.ts} +2 -1
- package/dist/{read-Db_GZ0ZH.d.ts → read-DfEHXwgn.d.ts} +2 -1
- package/dist/{read-DOYWO6BM.d.cts → read-IOYq80AA.d.cts} +2 -1
- package/dist/read-rwDsgR0d.d.cts +25 -0
- package/dist/{registry-CaJpWDke.d.cts → registry-CphRYjDD.d.cts} +1 -1
- package/dist/{registry-BVeEpUMI.d.ts → registry-D5RGBteE.d.ts} +1 -1
- package/dist/{serialize-DvaE_t5D.d.ts → serialize-B-lq0LiG.d.ts} +1 -1
- package/dist/{serialize-9xvti0FF.d.cts → serialize-D1fti8C5.d.cts} +1 -1
- package/dist/styles/properties.cjs +25 -3
- package/dist/styles/properties.d.cts +1 -1
- package/dist/styles/properties.d.ts +1 -1
- package/dist/styles/properties.js +25 -3
- package/dist/styles/registry.d.cts +1 -1
- package/dist/styles/registry.d.ts +1 -1
- package/dist/styles/serialize.d.cts +1 -1
- package/dist/styles/serialize.d.ts +1 -1
- package/dist/typed/draw/embedded.cjs +4 -85
- package/dist/typed/draw/embedded.d.cts +2 -2
- package/dist/typed/draw/embedded.d.ts +2 -2
- package/dist/typed/draw/embedded.js +2 -84
- package/dist/typed/draw/shapes.cjs +4 -1
- package/dist/typed/draw/shapes.js +4 -1
- package/dist/typed/odb/form.cjs +2 -2
- package/dist/typed/odb/form.d.cts +1 -1
- package/dist/typed/odb/form.d.ts +1 -1
- package/dist/typed/odb/form.js +1 -1
- package/dist/typed/odg/read.cjs +14 -4
- package/dist/typed/odg/read.d.cts +1 -1
- package/dist/typed/odg/read.d.ts +1 -1
- package/dist/typed/odg/read.js +14 -4
- package/dist/typed/odp/read.cjs +51 -4
- package/dist/typed/odp/read.d.cts +1 -1
- package/dist/typed/odp/read.d.ts +1 -1
- package/dist/typed/odp/read.js +52 -5
- package/dist/typed/ods/read.cjs +3 -446
- package/dist/typed/ods/read.d.cts +1 -1
- package/dist/typed/ods/read.d.ts +1 -1
- package/dist/typed/ods/read.js +1 -444
- package/dist/typed/odt/read.cjs +3 -310
- package/dist/typed/odt/read.d.cts +2 -2
- package/dist/typed/odt/read.d.ts +2 -2
- package/dist/typed/odt/read.js +1 -308
- package/dist/typed/shared/cascade.d.cts +1 -1
- package/dist/typed/shared/cascade.d.ts +1 -1
- package/dist/typed/shared/constructs.cjs +73 -0
- package/dist/typed/shared/constructs.d.cts +2 -2
- package/dist/typed/shared/constructs.d.ts +2 -2
- package/dist/typed/shared/constructs.js +67 -1
- package/dist/typed/shared/forms.d.cts +1 -1
- package/dist/typed/shared/forms.d.ts +1 -1
- package/dist/typed/shared/masterpage.cjs +7 -0
- package/dist/typed/shared/masterpage.d.cts +2 -2
- package/dist/typed/shared/masterpage.d.ts +2 -2
- package/dist/typed/shared/masterpage.js +7 -1
- package/dist/typed/shared/paragraph.cjs +17 -6
- package/dist/typed/shared/paragraph.d.cts +2 -2
- package/dist/typed/shared/paragraph.d.ts +2 -2
- package/dist/typed/shared/paragraph.js +18 -8
- package/package.json +2 -2
- package/dist/read-Cs1ktkWB.d.cts +0 -15
- package/dist/read-DHuiGh_y.d.ts +0 -15
package/README.md
CHANGED
|
@@ -209,7 +209,7 @@ Layered from a lossless core outward, mirroring `ooxml.js`:
|
|
|
209
209
|
- **`src/styles/`** — `properties.ts`/`serialize.ts` (canonical property-bag ↔ XML attributes), `registry.ts` (`StyleRegistry`, the mandatory style-interning layer), `span.ts` (character-range `text:span` wrapping).
|
|
210
210
|
- **`src/typed/shared/`** — ODF-specific typed primitives every reader builds on (units, A1 cursors, colour/geometry, whitespace runs, style cascade, shared paragraph/table readers, transform/path parsing, metadata).
|
|
211
211
|
- **`src/typed/odt/`, `odp/`, `odg/`, `ods/`** — one module per format, each carrying both levels of its reader: the package-native `readOdt`/`readOdp`/`readOdg`/`readOds` and the flat `readOdtContent`/`readOdpContent`/`readOdgContent`/`readOdsContent` it is built on.
|
|
212
|
-
- **`src/typed/draw/`** — the shared `draw:frame`/`draw:g`/vector shape vocabulary (`shapes.ts`), plus `embedded.ts` (`readDrawObjectReference`, `
|
|
212
|
+
- **`src/typed/draw/`** — the shared `draw:frame`/`draw:g`/vector shape vocabulary and `readDrawImageBlock` (`shapes.ts`), plus `embedded.ts` (`readDrawObjectReference`, `readEmbeddedObjectDocument`, `readOdfChartContent` — the shared embedded-object reference resolver and the central kind→reader dispatch table).
|
|
213
213
|
- **`src/typed/formula/`, `odm/`** — `readOdfFormula`/`readOdfFormulaContent`/`readOdfFormulaMathMl` and `readOdm`.
|
|
214
214
|
- **`src/typed/odb/`** — `readOdbInventory`, `readOdbForm`/`readOdbReport`, `resolveOdbComponent`, `subDocumentPackage`.
|
|
215
215
|
|
|
@@ -237,15 +237,17 @@ Layered from a lossless core outward, mirroring `ooxml.js`:
|
|
|
237
237
|
|
|
238
238
|
## Fidelity constructs
|
|
239
239
|
|
|
240
|
-
`readOdt` reads ODF's fidelity constructs into `document-schema.js`'s harmonised construct vocabulary — the semantic channel of the family's two-channel fidelity model (the quarantined residue channel is the other half).
|
|
240
|
+
`readOdt` reads ODF's fidelity constructs into `document-schema.js`'s harmonised construct vocabulary — the semantic channel of the family's two-channel fidelity model (the quarantined residue channel is the other half). Two residue rows carry genuine producer fixtures (`conditional-format.ods`, `transitions.odp` — real LibreOffice output, generated through the same UNO calls the Calc/Impress UIs use); every other fixture below the unit suites is programmatic, built to the OASIS element grammar, with real-producer verification outstanding.
|
|
241
241
|
|
|
242
242
|
- **Fields** — every inline field element (the simple set, the variable/user-field/sequence instance families, the database displays) reads as ordinary runs carrying its cached text plus a run-level field extent on the paragraph, instruction being the serialised element and `cachedResult` its own text content. Field master declarations (`text:*-decls`) read into the package-root definitions table, keyed per family.
|
|
243
243
|
- **Bookmarks and tracked changes** — paired marker halves at run scope pair inside one paragraph; halves at paragraph edges pair across blocks into `constructStart`/`constructEnd` markers. Change markers resolve their `text:change-id` against the `text:changed-region` definitions (either id spelling, `xml:id` today and ODF 1.0's `text:id`), carrying author and date as provenance.
|
|
244
244
|
- **Notes and annotations** — a `text:note`'s citation becomes a run, its body a definitions entry, an anchor extent naming both; an `office:annotation` does the same and pairs with `office:annotation-end` by `office:name` over a range, falling back to a point anchor when no end arrives.
|
|
245
245
|
- **Divisions and index wrappers** — `text:section` brackets its blocks as a division construct (name, protected, column count, and a `text:section-source`'s external-chapter link); the seven index wrappers bracket their cached `text:index-body` blocks as `index` content controls, with the wrapper's `*-source` build rules quarantined in residue.
|
|
246
246
|
- **Forms** — `office:forms` in an ordinary text document reads as point content controls in pre-order through the same form-tree walker the `.odb` reader uses; `form:properties` bags quarantine into residue.
|
|
247
|
-
- **Anchored frames** — a `draw:frame` in text flow lifts to blocks after its paragraph: images, text-box content, and embedded objects (formula, drawing, presentation, chart
|
|
247
|
+
- **Anchored frames** — a `draw:frame` in text flow lifts to blocks after its paragraph: images, text-box content, and embedded objects (formula, drawing, presentation, chart, spreadsheet), each dispatched through `typed/draw/embedded.ts`'s shared `readEmbeddedObjectDocument` — the central kind→reader table that lets a Writer document read an embedded Calc sheet (and a Calc sheet an embedded Writer document) without any format reader importing a sibling reader.
|
|
248
248
|
- **Style-side tenants** — `number:*` data styles and `office:font-face-decls` read into the definitions table from both parts; a paragraph style's unmodellable properties quarantine as per-node residue.
|
|
249
|
+
- **Master pages and page-break styles** — every `style:master-page` reads as part of a whole-page inventory: a paragraph style's `style:paragraph-properties/@style:master-page-name` switch opens a new `ContentSection` at that paragraph carrying the named master page's own geometry (`breakType: 'nextPage'` — ODF defines the switch as forcing a page break), and each master page's `style:header`/`style:footer` variants (default, `-left`, `-first`) read as real block flow on `OdtDocument.headerFooterParts`, with `sectionMasterPages` naming positionally which master page each section came from. Explicit page breaks ride the shared cascade: `fo:break-before`/`fo:break-after="page"` resolve onto the paragraph's `pageBreakBefore`/`pageBreakAfter` flags (`auto` to an explicit false; `column`/`even-page`/`odd-page` quarantine as residue through the unknown-properties path, since the boolean cannot hold their extra meaning).
|
|
250
|
+
- **The quarantined residue rows** — inline no-analogue constructs (`text:ruby`, `text:meta`, a heading's `text:is-list-header` flag) quarantine on their own paragraph beside the style-chain unknowns; document-level tenants nothing else owns (`xforms:model`, DDE connection declarations and `text:dde-source` links, vendor-extension elements) quarantine at the package tier on `OdtDocument.source`; `table:calculation-settings` and vendor-extension elements (Calc writes its `calcext:conditional-formats` inside each `table:table`) do the same on `OdsDocument.source`; an odp slide's presentation extras — the transition attributes off the slide's own drawing-page style, where every ODF schema version and real Impress output put them (the legacy `presentation:transition-*`/`presentation:duration` spelling and the ODF 1.2 `smil:type`/`-subtype`/`-direction`/`-fadeColor` one), plus `presentation:sound` and `anim:` trees — and every format's unmapped shape kinds (`dr3d:scene`, `draw:connector`, `draw:measure`, applet/plugin/floating-frame) quarantine on their own slide/page; an unrecognised `draw:custom-shape` preset's whole `draw:enhanced-geometry` quarantines in the text shape it degrades to; and every non-content XML part (`settings.xml`, `META-INF/manifest.rdf`, `Configurations2/…`) quarantines at the package tier keyed by its part path — never an embedded sub-document's own `Object N/` parts, which the semantic channel already carries whole.
|
|
249
251
|
|
|
250
252
|
Every read-side construct has no write-side counterpart because this package's typed layer is read-only — the honest asymmetry of a reader with no content writer; the lossless `encodePackage` layer remains the byte-fidelity tier.
|
|
251
253
|
- **An embedded Math object in a spreadsheet cell reads as `objectKind: 'formula'`** — its `content.xml` root *is* the MathML root, so `readDrawObjectReference` falls back to `findMathRoot` and dispatches to `readOdfFormulaContent`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as XmlElement } from "./node-CkBWRjNR.js";
|
|
2
2
|
import { r as Package } from "./package-BUojjTXf.js";
|
|
3
|
-
import { n as StyleProperties } from "./properties-
|
|
4
|
-
import { i as StyleFamily } from "./registry-
|
|
3
|
+
import { n as StyleProperties } from "./properties-Rral02h1.js";
|
|
4
|
+
import { i as StyleFamily } from "./registry-D5RGBteE.js";
|
|
5
5
|
//#region src/typed/shared/cascade.d.ts
|
|
6
6
|
interface CascadeDiagnostic {
|
|
7
7
|
severity: 'warning';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as XmlElement } from "./node-CkBWRjNR.cjs";
|
|
2
2
|
import { r as Package } from "./package-L24lkba-.cjs";
|
|
3
|
-
import { n as StyleProperties } from "./properties-
|
|
4
|
-
import { i as StyleFamily } from "./registry-
|
|
3
|
+
import { n as StyleProperties } from "./properties-C-JKQZUD.cjs";
|
|
4
|
+
import { i as StyleFamily } from "./registry-CphRYjDD.cjs";
|
|
5
5
|
//#region src/typed/shared/cascade.d.ts
|
|
6
6
|
interface CascadeDiagnostic {
|
|
7
7
|
severity: 'warning';
|
|
@@ -7,34 +7,34 @@ import "./build-XSm3I8LT.cjs";
|
|
|
7
7
|
import "./mimetype-CPNMj04s.cjs";
|
|
8
8
|
import "./fragment-B1og_8uA.cjs";
|
|
9
9
|
import "./manifest-BALwu2JR.cjs";
|
|
10
|
-
import "./properties-
|
|
11
|
-
import "./serialize-
|
|
12
|
-
import "./registry-
|
|
10
|
+
import "./properties-C-JKQZUD.cjs";
|
|
11
|
+
import "./serialize-D1fti8C5.cjs";
|
|
12
|
+
import "./registry-CphRYjDD.cjs";
|
|
13
13
|
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
17
|
import "./text-BAi1tapc.cjs";
|
|
18
|
-
import "./cascade-
|
|
18
|
+
import "./cascade-DWQfTwaM.cjs";
|
|
19
19
|
import "./metadata-1j1zm9Cx.cjs";
|
|
20
20
|
import "./list-KZeXA0mR.cjs";
|
|
21
|
-
import "./paragraph-
|
|
21
|
+
import "./paragraph-CuEMXbDg.cjs";
|
|
22
22
|
import "./table-BH_Q2n_N.cjs";
|
|
23
23
|
import "./transform-DKEjydnm.cjs";
|
|
24
|
-
import "./masterpage-
|
|
24
|
+
import "./masterpage-Bt6gxuoL.cjs";
|
|
25
25
|
import "./path-DE7wkIcz.cjs";
|
|
26
26
|
import "./shapes-8o3NjBLU.cjs";
|
|
27
|
-
import "./embedded-
|
|
28
|
-
import "./read-
|
|
29
|
-
import "./read-
|
|
30
|
-
import "./read-
|
|
31
|
-
import "./read-
|
|
27
|
+
import "./embedded-rKOsAsjg.cjs";
|
|
28
|
+
import "./read-CDSmR3qt.cjs";
|
|
29
|
+
import "./read-rwDsgR0d.cjs";
|
|
30
|
+
import "./read-IOYq80AA.cjs";
|
|
31
|
+
import "./read-C3Ei_MYc.cjs";
|
|
32
32
|
import "./read-DUCm1nUv.cjs";
|
|
33
33
|
import "./read-ydLJ8bid.cjs";
|
|
34
34
|
import "./read-BV2an1ok.cjs";
|
|
35
35
|
import "./subdocument-yY8ASE4N.cjs";
|
|
36
|
-
import "./forms-
|
|
37
|
-
import "./form-
|
|
36
|
+
import "./forms-BydLKkI0.cjs";
|
|
37
|
+
import "./form-D8wh-xhJ.cjs";
|
|
38
38
|
import "./report-D6WNYaVn.cjs";
|
|
39
39
|
import { z } from "zod";
|
|
40
40
|
import { Alignment as Alignment$1, AlignmentSchema, DocumentPackage as DocumentPackage$1 } from "document-schema.js";
|
|
@@ -7,34 +7,34 @@ import "./build-Z1KRkSEB.js";
|
|
|
7
7
|
import "./mimetype-BfkwTeaW.js";
|
|
8
8
|
import "./fragment-B1ZV7T5Z.js";
|
|
9
9
|
import "./manifest-CP1sqyGU.js";
|
|
10
|
-
import "./properties-
|
|
11
|
-
import "./serialize-
|
|
12
|
-
import "./registry-
|
|
10
|
+
import "./properties-Rral02h1.js";
|
|
11
|
+
import "./serialize-B-lq0LiG.js";
|
|
12
|
+
import "./registry-D5RGBteE.js";
|
|
13
13
|
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
17
|
import "./text-gJ5R0q3u.js";
|
|
18
|
-
import "./cascade-
|
|
18
|
+
import "./cascade-BZ7zqXhL.js";
|
|
19
19
|
import "./metadata-BXpjrAS-.js";
|
|
20
20
|
import "./list-Qeuawtew.js";
|
|
21
|
-
import "./paragraph-
|
|
21
|
+
import "./paragraph-BE71DZ0t.js";
|
|
22
22
|
import "./table-ByOoGcq_.js";
|
|
23
23
|
import "./transform-C7GrZZdR.js";
|
|
24
|
-
import "./masterpage-
|
|
24
|
+
import "./masterpage-By_F05W4.js";
|
|
25
25
|
import "./path-DE7wkIcz.js";
|
|
26
26
|
import "./shapes-CCB8ydqD.js";
|
|
27
|
-
import "./embedded-
|
|
28
|
-
import "./read-
|
|
29
|
-
import "./read-
|
|
30
|
-
import "./read-
|
|
31
|
-
import "./read-
|
|
27
|
+
import "./embedded-ClsebpWi.js";
|
|
28
|
+
import "./read-DfEHXwgn.js";
|
|
29
|
+
import "./read-24g5eZw6.js";
|
|
30
|
+
import "./read-BLoaDxr_.js";
|
|
31
|
+
import "./read-DJqvINGW.js";
|
|
32
32
|
import "./read-BnN7u9Y2.js";
|
|
33
33
|
import "./read-DYYxbvfo.js";
|
|
34
34
|
import "./read-CvjbdgH3.js";
|
|
35
35
|
import "./subdocument-BwW3FZC_.js";
|
|
36
|
-
import "./forms-
|
|
37
|
-
import "./form-
|
|
36
|
+
import "./forms-iwRSwhOn.js";
|
|
37
|
+
import "./form-CsOrcORr.js";
|
|
38
38
|
import "./report-DbslT2OR.js";
|
|
39
39
|
import { z } from "zod";
|
|
40
40
|
import { Alignment as Alignment$1, AlignmentSchema as AlignmentSchema$1, DocumentPackage as DocumentPackage$1 } from "document-schema.js";
|
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-
|
|
1
|
+
import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-LgpdP32n.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-
|
|
1
|
+
import { i as xmlCodec, n as encodePackage, r as packageCodec, t as decodePackage } from "./codec-sFSMk-if.js";
|
|
2
2
|
export { decodePackage, encodePackage, packageCodec, xmlCodec };
|
|
@@ -6,6 +6,13 @@ declare function odfFieldDescriptor(element: XmlElement): FieldDescriptor;
|
|
|
6
6
|
declare function odfBookmarkAnchorDescriptor(name: string): AnchorDescriptor;
|
|
7
7
|
type OdfResidueFormat = 'odt' | 'ods' | 'odp' | 'odg' | 'odm' | 'odb' | 'odf';
|
|
8
8
|
declare function odfResidue(format: OdfResidueFormat, ...elements: XmlElement[]): SourceResidue;
|
|
9
|
+
declare function isOdfExtensionElement(element: XmlElement): boolean;
|
|
10
|
+
declare const ODF_UNMAPPED_SHAPE_TAGS: ReadonlySet<string>;
|
|
11
|
+
declare function collectOdfUnmappedShapeResidue(children: readonly XmlNode[], out: XmlElement[]): void;
|
|
12
|
+
declare function odfAttributeElement(element: XmlElement, ...attributeNames: readonly string[]): XmlElement;
|
|
13
|
+
declare function addOdfPackageResidue(out: Record<string, SourceResidue>, key: string, format: OdfResidueFormat, ...elements: XmlElement[]): void;
|
|
14
|
+
declare const ODF_CONSUMED_PART_PATHS: ReadonlySet<string>;
|
|
15
|
+
declare function collectOdfNonContentPartResidue(pkg: Package, format: OdfResidueFormat, out: Record<string, SourceResidue>): void;
|
|
9
16
|
declare function odfDivisionDescriptor(sectionElement: XmlElement, pkg: Package): DivisionDescriptor;
|
|
10
17
|
declare const ODF_INDEX_WRAPPER_TAGS: ReadonlySet<string>;
|
|
11
18
|
declare function isOdfIndexWrapper(element: XmlElement): boolean;
|
|
@@ -60,4 +67,4 @@ declare function collectOdfDataStyleDefinitions(nodes: readonly XmlNode[], out:
|
|
|
60
67
|
declare function collectOdfFontFaceDefinitions(nodes: readonly XmlNode[], out: Record<string, DefinitionEntry>): void;
|
|
61
68
|
declare function collectOdfNamedExpressions(nodes: readonly XmlNode[], out: Record<string, DefinitionEntry>): void;
|
|
62
69
|
//#endregion
|
|
63
|
-
export { pairOdfMarkerHalves as C,
|
|
70
|
+
export { pairOdfMarkerHalves as A, odfBookmarkAnchorDescriptor as C, odfIndexControlDescriptor as D, odfFieldDescriptor as E, odfMarkerHalfEventIndex as O, odfAttributeElement as S, odfDivisionDescriptor as T, collectOdfUnmappedShapeResidue as _, OdfDefinitionsSink as a, isOdfExtensionElement as b, OdfMarkerKind as c, collectOdfDataStyleDefinitions as d, collectOdfFieldMasterDefinitions as f, collectOdfProvenanceRegions as g, collectOdfNonContentPartResidue as h, OdfConstructExtent as i, resolveOdfMarkerEvents as j, odfResidue as k, OdfResidueFormat as l, collectOdfNamedExpressions as m, ODF_INDEX_WRAPPER_TAGS as n, OdfMarkerEvent as o, collectOdfFontFaceDefinitions as p, ODF_UNMAPPED_SHAPE_TAGS as r, OdfMarkerHalf as s, ODF_CONSUMED_PART_PATHS as t, addOdfPackageResidue as u, insertOdfConstructMarkers as v, odfChangedRegionId as w, isOdfIndexWrapper as x, isOdfBlockScopedHalf as y };
|
|
@@ -6,6 +6,13 @@ declare function odfFieldDescriptor(element: XmlElement): FieldDescriptor;
|
|
|
6
6
|
declare function odfBookmarkAnchorDescriptor(name: string): AnchorDescriptor;
|
|
7
7
|
type OdfResidueFormat = 'odt' | 'ods' | 'odp' | 'odg' | 'odm' | 'odb' | 'odf';
|
|
8
8
|
declare function odfResidue(format: OdfResidueFormat, ...elements: XmlElement[]): SourceResidue;
|
|
9
|
+
declare function isOdfExtensionElement(element: XmlElement): boolean;
|
|
10
|
+
declare const ODF_UNMAPPED_SHAPE_TAGS: ReadonlySet<string>;
|
|
11
|
+
declare function collectOdfUnmappedShapeResidue(children: readonly XmlNode[], out: XmlElement[]): void;
|
|
12
|
+
declare function odfAttributeElement(element: XmlElement, ...attributeNames: readonly string[]): XmlElement;
|
|
13
|
+
declare function addOdfPackageResidue(out: Record<string, SourceResidue>, key: string, format: OdfResidueFormat, ...elements: XmlElement[]): void;
|
|
14
|
+
declare const ODF_CONSUMED_PART_PATHS: ReadonlySet<string>;
|
|
15
|
+
declare function collectOdfNonContentPartResidue(pkg: Package, format: OdfResidueFormat, out: Record<string, SourceResidue>): void;
|
|
9
16
|
declare function odfDivisionDescriptor(sectionElement: XmlElement, pkg: Package): DivisionDescriptor;
|
|
10
17
|
declare const ODF_INDEX_WRAPPER_TAGS: ReadonlySet<string>;
|
|
11
18
|
declare function isOdfIndexWrapper(element: XmlElement): boolean;
|
|
@@ -60,4 +67,4 @@ declare function collectOdfDataStyleDefinitions(nodes: readonly XmlNode[], out:
|
|
|
60
67
|
declare function collectOdfFontFaceDefinitions(nodes: readonly XmlNode[], out: Record<string, DefinitionEntry>): void;
|
|
61
68
|
declare function collectOdfNamedExpressions(nodes: readonly XmlNode[], out: Record<string, DefinitionEntry>): void;
|
|
62
69
|
//#endregion
|
|
63
|
-
export { pairOdfMarkerHalves as C,
|
|
70
|
+
export { pairOdfMarkerHalves as A, odfBookmarkAnchorDescriptor as C, odfIndexControlDescriptor as D, odfFieldDescriptor as E, odfMarkerHalfEventIndex as O, odfAttributeElement as S, odfDivisionDescriptor as T, collectOdfUnmappedShapeResidue as _, OdfDefinitionsSink as a, isOdfExtensionElement as b, OdfMarkerKind as c, collectOdfDataStyleDefinitions as d, collectOdfFieldMasterDefinitions as f, collectOdfProvenanceRegions as g, collectOdfNonContentPartResidue as h, OdfConstructExtent as i, resolveOdfMarkerEvents as j, odfResidue as k, OdfResidueFormat as l, collectOdfNamedExpressions as m, ODF_INDEX_WRAPPER_TAGS as n, OdfMarkerEvent as o, collectOdfFontFaceDefinitions as p, ODF_UNMAPPED_SHAPE_TAGS as r, OdfMarkerHalf as s, ODF_CONSUMED_PART_PATHS as t, addOdfPackageResidue as u, insertOdfConstructMarkers as v, odfChangedRegionId as w, isOdfIndexWrapper as x, isOdfBlockScopedHalf as y };
|