odf.js 5.1.1 → 5.2.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 +2 -2
- package/dist/{codec-BxxFEqvT.d.ts → codec-BQB05qN1.d.ts} +1 -1
- package/dist/{codec-BAz7YIru.d.cts → codec-BoPvy83Y.d.cts} +1 -1
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/embedded-BBJoUl86.js +777 -0
- package/dist/{embedded-BPhuSEEI.d.ts → embedded-CLuwn306.d.ts} +6 -1
- package/dist/embedded-FMIPM1fw.cjs +818 -0
- package/dist/{embedded-J3M3kDvY.d.cts → embedded-ztNK8w6V.d.cts} +6 -1
- package/dist/index.cjs +7 -9
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -4
- 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/odb/form.cjs +2 -2
- package/dist/typed/odb/form.js +1 -1
- package/dist/typed/ods/read.cjs +3 -446
- package/dist/typed/ods/read.js +1 -444
- package/dist/typed/odt/read.cjs +3 -310
- package/dist/typed/odt/read.js +1 -308
- package/dist/zip.cjs +6 -2
- package/dist/zip.js +6 -2
- package/package.json +1 -1
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
|
|
|
@@ -244,7 +244,7 @@ Layered from a lossless core outward, mirroring `ooxml.js`:
|
|
|
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
249
|
|
|
250
250
|
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.
|
|
@@ -24,7 +24,7 @@ import "./transform-C7GrZZdR.js";
|
|
|
24
24
|
import "./masterpage-C1McDhMv.js";
|
|
25
25
|
import "./path-DE7wkIcz.js";
|
|
26
26
|
import "./shapes-CCB8ydqD.js";
|
|
27
|
-
import "./embedded-
|
|
27
|
+
import "./embedded-CLuwn306.js";
|
|
28
28
|
import "./read-Db_GZ0ZH.js";
|
|
29
29
|
import "./read-DHuiGh_y.js";
|
|
30
30
|
import "./read-lc0t0UHK.js";
|
|
@@ -24,7 +24,7 @@ import "./transform-DKEjydnm.cjs";
|
|
|
24
24
|
import "./masterpage-XJ2v2khe.cjs";
|
|
25
25
|
import "./path-DE7wkIcz.cjs";
|
|
26
26
|
import "./shapes-8o3NjBLU.cjs";
|
|
27
|
-
import "./embedded-
|
|
27
|
+
import "./embedded-ztNK8w6V.cjs";
|
|
28
28
|
import "./read-CTfeWaWq.cjs";
|
|
29
29
|
import "./read-Cs1ktkWB.cjs";
|
|
30
30
|
import "./read-DOYWO6BM.cjs";
|
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-BoPvy83Y.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-BQB05qN1.js";
|
|
2
2
|
export { decodePackage, encodePackage, packageCodec, xmlCodec };
|