ooxml.js 3.0.0 → 3.1.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 +19 -3
- package/dist/codec-B3qT1CGZ.d.ts +89 -0
- package/dist/codec-CuzuI9Dy.d.cts +89 -0
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/index.cjs +104 -0
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/typed/docx/constructs.cjs +211 -0
- package/dist/typed/docx/constructs.d.cts +27 -0
- package/dist/typed/docx/constructs.d.ts +27 -0
- package/dist/typed/docx/constructs.js +200 -0
- package/dist/typed/docx/read.cjs +275 -74
- package/dist/typed/docx/read.js +276 -75
- package/dist/typed/docx/write.cjs +676 -0
- package/dist/typed/docx/write.d.cts +2 -0
- package/dist/typed/docx/write.d.ts +2 -0
- package/dist/typed/docx/write.js +675 -0
- package/dist/typed/shared/source-path.cjs +1 -0
- package/dist/typed/shared/source-path.js +1 -0
- package/dist/typed/util.cjs +4 -3
- package/dist/typed/util.js +4 -3
- package/dist/write-C08_maSc.d.cts +11 -0
- package/dist/write-U3Ap0vHi.d.ts +11 -0
- package/package.json +2 -2
- package/dist/codec-Ch4blnoI.d.cts +0 -88
- package/dist/codec-ChWBx_WN.d.ts +0 -88
package/README.md
CHANGED
|
@@ -106,6 +106,19 @@ const doc = readDocx(decodePackage(bytes));
|
|
|
106
106
|
// inside tables); each run already carries its cascade-resolved bold/italic/colour/font.
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
+
`readDocx` also reads the block-scoped fidelity constructs — structured document tags, fields, bookmarks, and tracked changes — as `document-schema.js` construct-boundary markers bracketing the blocks each one spans, and `buildDocxPackage` writes those sections back out as a fresh docx package:
|
|
110
|
+
|
|
111
|
+
```ts
|
|
112
|
+
import { buildDocxPackage, decodePackage, encodePackage, readDocx } from 'ooxml.js';
|
|
113
|
+
|
|
114
|
+
const doc = readDocx(decodePackage(bytes));
|
|
115
|
+
// doc.sections[0].blocks might read: a constructStart marker carrying a field descriptor, the TOC's
|
|
116
|
+
// own paragraphs, then a constructEnd — one matched pair per construct, nesting as brackets do.
|
|
117
|
+
const out = encodePackage(buildDocxPackage(doc)); // sections -> a complete docx, built from scratch
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
A construct whose extent is a sub-sequence of one paragraph's runs — a field inside a sentence, a bookmark over three words, a few inserted words in an otherwise untouched paragraph — has no marker encoding: the marker pair brackets whole blocks, so those occurrences keep their existing treatment (the text still comes through; the construct itself does not). See the gotchas below.
|
|
121
|
+
|
|
109
122
|
`readXlsx` is the lossy, cell-values-only view. `readXlsxContent`/`buildXlsxPackage` are a separate `ContentDocument`-shaped pair — a richer reader (column widths, row heights, hidden rows/columns, merged ranges, every cell value kind, cell comments, print settings) matched with this package's first writer, round-tripping a spreadsheet through the same `ContentDocument` shape `documents.js`/`odf.js` use:
|
|
110
123
|
|
|
111
124
|
```ts
|
|
@@ -228,20 +241,23 @@ The package layers a lossless core outward to lossy convenience views:
|
|
|
228
241
|
- **`src/package-io/`** — `read.ts`/`write.ts` unzip, classify each entry as XML or binary (`looksLikeXml` byte sniff), and parse/serialize.
|
|
229
242
|
- **`src/codec.ts`** — public round-trip surface: `packageCodec`/`xmlCodec` (`z.codec()` pairs) plus `decodePackage`/`encodePackage` wrappers.
|
|
230
243
|
- **`src/compact.ts`** — the ooxml.js format: `compactCodec`/`compactPackageCodec` plus `toCompact`/`fromCompact`/`decodeCompactPackage`/`encodeCompactPackage` wrappers.
|
|
231
|
-
- **`src/typed/`** —
|
|
244
|
+
- **`src/typed/`** — lossy projections. `readDocx` resolves the full style cascade (`docDefaults` → `basedOn` → paragraph-mark → character styles → direct formatting) into ordered `sections` plus comments/footnotes/headers/footers/numbering; `readPptx` resolves placeholder → layout → master → theme inheritance into `slides` (presentation order via `p:sldIdLst`); `readXlsx` covers cell values/formulas, merged ranges, defined names. `typed/shared/` holds shared OOXML primitives (`drawingml.ts` geometry/theme/colour, `color.ts` `ColorTransform` cascade, `units.ts`, `metadata.ts`, `source-path.ts`). Types come from `document-schema.js`. Only the docx and xlsx `ContentDocument`-shaped pairs encode back to a `Package`; everything else is one-way, and faithful round-tripping goes through `decodePackage`/`encodePackage`.
|
|
245
|
+
- **`src/typed/docx/`** — `read.ts` and `write.ts` are a read/write pair over `ContentSection[]`. `constructs.ts` owns the fidelity construct vocabulary both halves share: the descriptor shapes (`contentControl` from `w:sdt`, `field` from `w:fldChar`/`w:fldSimple`, `anchor` from `w:bookmarkStart`/`End`, `provenance` from `w:ins`/`w:del`/`w:moveFrom`/`w:moveTo`) and the rule deciding which occurrences are block-scoped enough to bracket. `buildDocxPackage` builds a complete docx `Package` from scratch; it writes no `styles.xml`, `numbering.xml`, comments, footnotes, or headers/footers, so the `DocxDocument` fields outside `sections` do not survive the pair.
|
|
232
246
|
- **`src/typed/xlsx/`** — a `ContentDocument`-shaped read/write pair alongside the lossy `readXlsx` (both exported; different callers). `readXlsxContent` reads column widths, row heights, hidden rows/columns, merged ranges, every cell value kind, print settings, and cell comments (`comments.ts`: legacy `xl/comments{N}.xml` notes plus `[MS-XLSX]` threaded comments, both resolved through the worksheet part's own relationships, never by part name); `buildXlsxPackage` builds a complete xlsx `Package` from scratch (never editing the decoded package). `number-format.ts`/`styles.ts`/`serial.ts` run both ways: reading classifies style index → format code → kind (`percentage`/`currency`/`date`/`time`/`dateTime`); writing emits interned `numFmt` codes, fed back through the classifier in tests. The classifier is not a formatter (`displayText` is the typed-value spelling). Scope limits: `currency` with no ISO code writes as plain `number`; non-canonical temporal values degrade to text; cell comments read but do not write (`buildXlsxPackage` emits no comment part, so they do not survive this pair).
|
|
233
247
|
|
|
234
248
|
## Conventions
|
|
235
249
|
|
|
236
250
|
- **Zod-first schema/type/guard.** Every model type is inferred from its Zod schema (`z.infer<typeof XSchema>`), not hand-written.
|
|
237
251
|
- **`XmlNode` uses a recursive structural guard, not `z.lazy`.** `z.lazy` collapses to `unknown` for element-children in the pinned Zod version, so `XmlElementSchema` validates `children` via `z.custom<XmlNode>(isXmlNode)`. Any change to `XmlNode`'s shape must update `isXmlNode` in step. `CompactXmlNode` and `document-schema.js`'s `ContentBlock` reuse this pattern.
|
|
238
|
-
- **Lossless core vs. lossy views is a hard boundary.** `decodePackage`/`encodePackage` stay byte/part faithful. `src/typed/*`
|
|
252
|
+
- **Lossless core vs. lossy views is a hard boundary.** `decodePackage`/`encodePackage` stay byte/part faithful. A `src/typed/*` reader is a lossy projection; faithful round-tripping goes through the generic `Package`. `readXlsxContent`/`buildXlsxPackage` and `readDocx`/`buildDocxPackage` are the deliberate exceptions — read/write pairs around the shared content model, where each writer builds a fresh package rather than touching the decoded one.
|
|
239
253
|
- **XML entities stay raw in the lossless layer.** `parseXml` runs with `processEntities: false`; typed readers decode the five standard entities (`decodeEntities` in `typed/util.ts`) only in their own lossy projection.
|
|
240
254
|
- **No type assertions.** `eslint.config.ts` bans `as` and angle-bracket casts (`assertionStyle: "never"`, `noInlineConfig: true` — no `eslint-disable` escape hatch). Narrow with a guard or parse with Zod.
|
|
241
255
|
|
|
242
256
|
## Gotchas and quirks
|
|
243
257
|
|
|
244
|
-
-
|
|
258
|
+
- **A construct marker brackets whole blocks, never a sub-sequence of runs.** `document-schema.js`'s flat form has no run-level extent, so an inline field, a mid-paragraph bookmark, a run-level content control, or a few inserted words inside an otherwise untouched paragraph are read exactly as before — the text survives, the construct does not. So does an extent that crosses another, or that straddles a section break: neither is expressible as balanced brackets, and both are dropped rather than emitted at a position that would decode to a different nesting.
|
|
259
|
+
- **`readDocx`/`buildDocxPackage` round-trip `sections`, not a whole `DocxDocument`.** Numbering definitions, cell border styling/shading, and `w:themeColor` (without `themeShade`/`themeTint`) are read; images read into `ContentImageBlock` (floating `wp:anchor` position not recorded); `PAGE`/`NUMPAGES` fields resolve to Word's cached text. The writer emits no `styles.xml`, `numbering.xml`, comments, footnotes, or headers/footers, so the `DocxDocument` fields outside `sections` do not come back — a paragraph's `styleId` is still written as a `w:pStyle` reference, resolving to nothing, since every property the style would have contributed is already spelled as direct formatting by then.
|
|
260
|
+
- **`readPptx` is one-way.** Connector shapes (`p:cxnSp`) are skipped; shape rotation composes through groups; a chart graphic frame reads its chart part's cached series/category model into a table block (header row = series names, one row per category index); a SmartArt graphic frame reads its diagram data model's node text as paragraphs in diagram order (depth-first over `parOf` connections, siblings by `srcOrd`); an OLE graphic frame reads the fallback picture its `mc:Fallback` carries (or, with none reachable, a paragraph naming the `p:oleObj`'s `progId`) — the embedded payload itself is an external application's data and is not decoded.
|
|
245
261
|
- **xlsx has no native percentage/currency/date/time cell type.** Both directions are closed via the number-format engine: reading classifies style → format code → kind; writing emits interned `numFmt` codes, fed back through the classifier in tests. `displayText` is the typed-value spelling, not the producer's rendered string.
|
|
246
262
|
- **`test:smoke` depends on a fresh build.** It runs `tsdown && vitest run --project smoke`, always rebuilding `dist/` first. A bare `vitest` runs both projects; `smoke` fails loudly (`Cannot find module '../dist/index.js'`) if `dist/` is unbuilt.
|
|
247
263
|
- **Binary-vs-XML part classification is a byte sniff, not an extension check.** `looksLikeXml` looks for a leading `<` after skipping a UTF-8 BOM and whitespace; any future binary format starting with `<` would misclassify.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { d as XmlNode } from "./node-CkBWRjNR.js";
|
|
2
|
+
import { r as Package } from "./package-BUojjTXf.js";
|
|
3
|
+
import "./read-CMDEXqGw.js";
|
|
4
|
+
import "./write-CT-EgVT7.js";
|
|
5
|
+
import "./parse-A8_8sdpX.js";
|
|
6
|
+
import "./build-Z1KRkSEB.js";
|
|
7
|
+
import "./fragment-B1ZV7T5Z.js";
|
|
8
|
+
import "./util-DFe4UbvU.js";
|
|
9
|
+
import "./compact-f0TfhicN.js";
|
|
10
|
+
import "./color-fFIKAs-Y.js";
|
|
11
|
+
import "./metadata-o_WH9V_I.js";
|
|
12
|
+
import "./read-B2-FFhqI.js";
|
|
13
|
+
import "./write-U3Ap0vHi.js";
|
|
14
|
+
import "./numbering-D0YfuiOO.js";
|
|
15
|
+
import "./read-CeCtSzjQ.js";
|
|
16
|
+
import "./xlsx-BxKODiLX.js";
|
|
17
|
+
import "./content-t6ZfmfQM.js";
|
|
18
|
+
import "./build-C0gS5QeG.js";
|
|
19
|
+
import { z } from "zod";
|
|
20
|
+
import { Alignment as Alignment$1, AlignmentSchema, AnchorDescriptor as AnchorDescriptor$1, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, Box as Box$1, BoxSchema, COLOR_BLACK as COLOR_BLACK$1, Color as Color$1, ColorSchema, ConstructDescriptor as ConstructDescriptor$1, ConstructDescriptorSchema, ConstructMarkerImbalance, ContentBlock as ContentBlock$1, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders as ContentCellBorders$1, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentControlDescriptor as ContentControlDescriptor$1, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, ContentDocument as ContentDocument$1, ContentDocumentSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph as ContentParagraph$1, ContentParagraphSchema, ContentRun, ContentRunSchema, ContentSection as ContentSection$1, ContentSectionSchema as ContentSectionSchema$1, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange as ContentSheetPrintRange$1, ContentSheetPrintRangeSchema, ContentSheetPrintSettings as ContentSheetPrintSettings$1, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange as ContentSheetRepeatRange$1, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema as ContentSlideSchema$1, ContentStrokeStyle, ContentStrokeStyleSchema, ContentTable as ContentTable$1, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, DivisionDescriptor, DivisionDescriptorSchema, FieldDescriptor, FieldDescriptorSchema, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, Margins, MarginsSchema, PAGE_SIZE_A4 as PAGE_SIZE_A4$1, PAGE_SIZE_LETTER as PAGE_SIZE_LETTER$1, PageSize as PageSize$1, PageSizeSchema, ProvenanceChange as ProvenanceChange$1, ProvenanceChangeSchema, ProvenanceDescriptor as ProvenanceDescriptor$1, ProvenanceDescriptorSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN as SLIDE_SIZE_WIDESCREEN$1, colorToRgbHex as colorToRgbHex$1, findConstructMarkerImbalance as findConstructMarkerImbalance$1, isContentBlock, isContentConstructEnd, isContentConstructStart, rgbHexToColor as rgbHexToColor$1 } from "document-schema.js";
|
|
21
|
+
//#region src/codec.d.ts
|
|
22
|
+
declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23
|
+
type: z.ZodLiteral<"text">;
|
|
24
|
+
value: z.ZodString;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<"cdata">;
|
|
27
|
+
value: z.ZodString;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<"comment">;
|
|
30
|
+
value: z.ZodString;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
type: z.ZodLiteral<"declaration">;
|
|
33
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
value: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
+
type: z.ZodLiteral<"pi">;
|
|
39
|
+
target: z.ZodString;
|
|
40
|
+
content: z.ZodString;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
type: z.ZodLiteral<"element">;
|
|
43
|
+
tag: z.ZodString;
|
|
44
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
value: z.ZodString;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
49
|
+
}, z.core.$strip>], "type">>>;
|
|
50
|
+
declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodObject<{
|
|
51
|
+
parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52
|
+
kind: z.ZodLiteral<"xml">;
|
|
53
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
54
|
+
type: z.ZodLiteral<"text">;
|
|
55
|
+
value: z.ZodString;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
type: z.ZodLiteral<"cdata">;
|
|
58
|
+
value: z.ZodString;
|
|
59
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
+
type: z.ZodLiteral<"comment">;
|
|
61
|
+
value: z.ZodString;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
type: z.ZodLiteral<"declaration">;
|
|
64
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
65
|
+
name: z.ZodString;
|
|
66
|
+
value: z.ZodString;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
type: z.ZodLiteral<"pi">;
|
|
70
|
+
target: z.ZodString;
|
|
71
|
+
content: z.ZodString;
|
|
72
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
+
type: z.ZodLiteral<"element">;
|
|
74
|
+
tag: z.ZodString;
|
|
75
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
value: z.ZodString;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
80
|
+
}, z.core.$strip>], "type">>;
|
|
81
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
+
kind: z.ZodLiteral<"binary">;
|
|
83
|
+
base64: z.ZodString;
|
|
84
|
+
}, z.core.$strip>], "kind">>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
|
|
87
|
+
declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
|
|
88
|
+
//#endregion
|
|
89
|
+
export { ContentSheet as $, ContentConstructStartSchema as A, LinkDescriptorSchema as At, ContentImageBlockSchema as B, ProvenanceChangeSchema as Bt, ContentCellBorders$1 as C, ContentTableRowSchema as Ct, ContentConstructEnd as D, FieldDescriptor as Dt, ContentCellValueSchema as E, DivisionDescriptorSchema as Et, ContentControlType as F, PAGE_SIZE_A4$1 as Ft, ContentParagraph$1 as G, colorToRgbHex$1 as Gt, ContentListMembershipSchema as H, ProvenanceDescriptorSchema as Ht, ContentControlTypeSchema as I, PAGE_SIZE_LETTER$1 as It, ContentRunSchema as J, isContentConstructEnd as Jt, ContentParagraphSchema as K, findConstructMarkerImbalance$1 as Kt, ContentDocument$1 as L, PageSize$1 as Lt, ContentControlDescriptorSchema as M, LinkTargetSchema as Mt, ContentControlLock as N, Margins as Nt, ContentConstructEndSchema as O, FieldDescriptorSchema as Ot, ContentControlLockSchema as P, MarginsSchema as Pt, ContentShapeSchema as Q, ContentDocumentSchema as R, PageSizeSchema as Rt, ContentBorderSchema as S, ContentTableRow as St, ContentCellValue as T, DivisionDescriptor as Tt, ContentPageBreak as U, SLIDE_SIZE_STANDARD as Ut, ContentListMembership as V, ProvenanceDescriptor$1 as Vt, ContentPageBreakSchema as W, SLIDE_SIZE_WIDESCREEN$1 as Wt, ContentSectionSchema$1 as X, rgbHexToColor$1 as Xt, ContentSection$1 as Y, isContentConstructStart as Yt, ContentShape as Z, ConstructDescriptorSchema as _, ContentStrokeStyle as _t, Alignment$1 as a, ContentSheetImageSchema as at, ContentBlockSchema as b, ContentTableCell as bt, AnchorDescriptorSchema as c, ContentSheetPrintSettings$1 as ct, Box$1 as d, ContentSheetRepeatRangeSchema as dt, ContentSheetCell as et, BoxSchema as f, ContentSheetRow as ft, ConstructDescriptor$1 as g, ContentSlideSchema$1 as gt, ColorSchema as h, ContentSlide as ht, xmlCodec as i, ContentSheetImage as it, ContentControlDescriptor$1 as j, LinkTarget as jt, ContentConstructStart as k, LinkDescriptor as kt, AnchorType as l, ContentSheetPrintSettingsSchema as lt, Color$1 as m, ContentSheetSchema as mt, encodePackage as n, ContentSheetColumn as nt, AlignmentSchema as o, ContentSheetPrintRange$1 as ot, COLOR_BLACK$1 as p, ContentSheetRowSchema as pt, ContentRun as q, isContentBlock as qt, packageCodec as r, ContentSheetColumnSchema as rt, AnchorDescriptor$1 as s, ContentSheetPrintRangeSchema as st, decodePackage as t, ContentSheetCellSchema as tt, AnchorTypeSchema as u, ContentSheetRepeatRange$1 as ut, ConstructMarkerImbalance as v, ContentStrokeStyleSchema as vt, ContentCellBordersSchema as w, ContentTableSchema as wt, ContentBorder as x, ContentTableCellSchema as xt, ContentBlock$1 as y, ContentTable$1 as yt, ContentImageBlock as z, ProvenanceChange$1 as zt };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { d as XmlNode } from "./node-CkBWRjNR.cjs";
|
|
2
|
+
import { r as Package } from "./package-L24lkba-.cjs";
|
|
3
|
+
import "./read-DzmMJPHd.cjs";
|
|
4
|
+
import "./write-6JmxvaK5.cjs";
|
|
5
|
+
import "./parse-CP5FLZqv.cjs";
|
|
6
|
+
import "./build-XSm3I8LT.cjs";
|
|
7
|
+
import "./fragment-B1og_8uA.cjs";
|
|
8
|
+
import "./util-M3JJlDhF.cjs";
|
|
9
|
+
import "./compact-B1qg9oex.cjs";
|
|
10
|
+
import "./color-fFIKAs-Y.cjs";
|
|
11
|
+
import "./metadata-D6o-kLpg.cjs";
|
|
12
|
+
import "./read-D_CpruL_.cjs";
|
|
13
|
+
import "./write-C08_maSc.cjs";
|
|
14
|
+
import "./numbering-C53LT-Jx.cjs";
|
|
15
|
+
import "./read-OBV7MMlF.cjs";
|
|
16
|
+
import "./xlsx-B97t4YE-.cjs";
|
|
17
|
+
import "./content-UlQ-Nhgi.cjs";
|
|
18
|
+
import "./build-CBL9scQK.cjs";
|
|
19
|
+
import { z } from "zod";
|
|
20
|
+
import { Alignment as Alignment$1, AlignmentSchema, AnchorDescriptor as AnchorDescriptor$1, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, Box as Box$1, BoxSchema, COLOR_BLACK, Color as Color$1, ColorSchema, ConstructDescriptor as ConstructDescriptor$1, ConstructDescriptorSchema, ConstructMarkerImbalance, ContentBlock as ContentBlock$1, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders as ContentCellBorders$1, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentControlDescriptor as ContentControlDescriptor$1, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, ContentDocument as ContentDocument$1, ContentDocumentSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph as ContentParagraph$1, ContentParagraphSchema, ContentRun, ContentRunSchema, ContentSection as ContentSection$1, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange as ContentSheetPrintRange$1, ContentSheetPrintRangeSchema, ContentSheetPrintSettings as ContentSheetPrintSettings$1, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange as ContentSheetRepeatRange$1, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentTable as ContentTable$1, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, DivisionDescriptor, DivisionDescriptorSchema, FieldDescriptor, FieldDescriptorSchema, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize as PageSize$1, PageSizeSchema, ProvenanceChange as ProvenanceChange$1, ProvenanceChangeSchema, ProvenanceDescriptor as ProvenanceDescriptor$1, ProvenanceDescriptorSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, findConstructMarkerImbalance, isContentBlock, isContentConstructEnd, isContentConstructStart, rgbHexToColor } from "document-schema.js";
|
|
21
|
+
//#region src/codec.d.ts
|
|
22
|
+
declare const xmlCodec: z.ZodCodec<z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23
|
+
type: z.ZodLiteral<"text">;
|
|
24
|
+
value: z.ZodString;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<"cdata">;
|
|
27
|
+
value: z.ZodString;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<"comment">;
|
|
30
|
+
value: z.ZodString;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
type: z.ZodLiteral<"declaration">;
|
|
33
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
value: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
+
type: z.ZodLiteral<"pi">;
|
|
39
|
+
target: z.ZodString;
|
|
40
|
+
content: z.ZodString;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
type: z.ZodLiteral<"element">;
|
|
43
|
+
tag: z.ZodString;
|
|
44
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
value: z.ZodString;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
49
|
+
}, z.core.$strip>], "type">>>;
|
|
50
|
+
declare const packageCodec: z.ZodCodec<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodObject<{
|
|
51
|
+
parts: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52
|
+
kind: z.ZodLiteral<"xml">;
|
|
53
|
+
nodes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
54
|
+
type: z.ZodLiteral<"text">;
|
|
55
|
+
value: z.ZodString;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
type: z.ZodLiteral<"cdata">;
|
|
58
|
+
value: z.ZodString;
|
|
59
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
+
type: z.ZodLiteral<"comment">;
|
|
61
|
+
value: z.ZodString;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
type: z.ZodLiteral<"declaration">;
|
|
64
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
65
|
+
name: z.ZodString;
|
|
66
|
+
value: z.ZodString;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
type: z.ZodLiteral<"pi">;
|
|
70
|
+
target: z.ZodString;
|
|
71
|
+
content: z.ZodString;
|
|
72
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
+
type: z.ZodLiteral<"element">;
|
|
74
|
+
tag: z.ZodString;
|
|
75
|
+
attributes: z.ZodArray<z.ZodObject<{
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
value: z.ZodString;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
children: z.ZodArray<z.ZodCustom<XmlNode, XmlNode>>;
|
|
80
|
+
}, z.core.$strip>], "type">>;
|
|
81
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
+
kind: z.ZodLiteral<"binary">;
|
|
83
|
+
base64: z.ZodString;
|
|
84
|
+
}, z.core.$strip>], "kind">>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
declare function decodePackage(bytes: Uint8Array<ArrayBuffer>): Package;
|
|
87
|
+
declare function encodePackage(pkg: Package): Uint8Array<ArrayBuffer>;
|
|
88
|
+
//#endregion
|
|
89
|
+
export { ContentSheet as $, ContentConstructStartSchema as A, LinkDescriptorSchema as At, ContentImageBlockSchema as B, ProvenanceChangeSchema as Bt, ContentCellBorders$1 as C, ContentTableRowSchema as Ct, ContentConstructEnd as D, FieldDescriptor as Dt, ContentCellValueSchema as E, DivisionDescriptorSchema as Et, ContentControlType as F, PAGE_SIZE_A4 as Ft, ContentParagraph$1 as G, colorToRgbHex as Gt, ContentListMembershipSchema as H, ProvenanceDescriptorSchema as Ht, ContentControlTypeSchema as I, PAGE_SIZE_LETTER as It, ContentRunSchema as J, isContentConstructEnd as Jt, ContentParagraphSchema as K, findConstructMarkerImbalance as Kt, ContentDocument$1 as L, PageSize$1 as Lt, ContentControlDescriptorSchema as M, LinkTargetSchema as Mt, ContentControlLock as N, Margins as Nt, ContentConstructEndSchema as O, FieldDescriptorSchema as Ot, ContentControlLockSchema as P, MarginsSchema as Pt, ContentShapeSchema as Q, ContentDocumentSchema as R, PageSizeSchema as Rt, ContentBorderSchema as S, ContentTableRow as St, ContentCellValue as T, DivisionDescriptor as Tt, ContentPageBreak as U, SLIDE_SIZE_STANDARD as Ut, ContentListMembership as V, ProvenanceDescriptor$1 as Vt, ContentPageBreakSchema as W, SLIDE_SIZE_WIDESCREEN as Wt, ContentSectionSchema as X, rgbHexToColor as Xt, ContentSection$1 as Y, isContentConstructStart as Yt, ContentShape as Z, ConstructDescriptorSchema as _, ContentStrokeStyle as _t, Alignment$1 as a, ContentSheetImageSchema as at, ContentBlockSchema as b, ContentTableCell as bt, AnchorDescriptorSchema as c, ContentSheetPrintSettings$1 as ct, Box$1 as d, ContentSheetRepeatRangeSchema as dt, ContentSheetCell as et, BoxSchema as f, ContentSheetRow as ft, ConstructDescriptor$1 as g, ContentSlideSchema as gt, ColorSchema as h, ContentSlide as ht, xmlCodec as i, ContentSheetImage as it, ContentControlDescriptor$1 as j, LinkTarget as jt, ContentConstructStart as k, LinkDescriptor as kt, AnchorType as l, ContentSheetPrintSettingsSchema as lt, Color$1 as m, ContentSheetSchema as mt, encodePackage as n, ContentSheetColumn as nt, AlignmentSchema as o, ContentSheetPrintRange$1 as ot, COLOR_BLACK as p, ContentSheetRowSchema as pt, ContentRun as q, isContentBlock as qt, packageCodec as r, ContentSheetColumnSchema as rt, AnchorDescriptor$1 as s, ContentSheetPrintRangeSchema as st, decodePackage as t, ContentSheetCellSchema as tt, AnchorTypeSchema as u, ContentSheetRepeatRange$1 as ut, ConstructMarkerImbalance as v, ContentStrokeStyleSchema as vt, ContentCellBordersSchema as w, ContentTableSchema as wt, ContentBorder as x, ContentTableCellSchema as xt, ContentBlock$1 as y, ContentTable$1 as yt, ContentImageBlock as z, ProvenanceChange$1 as zt };
|
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-CuzuI9Dy.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-B3qT1CGZ.js";
|
|
2
2
|
export { decodePackage, encodePackage, packageCodec, xmlCodec };
|
package/dist/index.cjs
CHANGED
|
@@ -17,6 +17,7 @@ const require_typed_shared_metadata = require("./typed/shared/metadata.cjs");
|
|
|
17
17
|
const require_image_sniff = require("./image/sniff.cjs");
|
|
18
18
|
const require_typed_docx_numbering = require("./typed/docx/numbering.cjs");
|
|
19
19
|
const require_typed_docx_read = require("./typed/docx/read.cjs");
|
|
20
|
+
const require_typed_docx_write = require("./typed/docx/write.cjs");
|
|
20
21
|
const require_typed_pptx_read = require("./typed/pptx/read.cjs");
|
|
21
22
|
const require_typed_xlsx = require("./typed/xlsx.cjs");
|
|
22
23
|
const require_typed_xlsx_content = require("./typed/xlsx/content.cjs");
|
|
@@ -28,6 +29,18 @@ Object.defineProperty(exports, "AlignmentSchema", {
|
|
|
28
29
|
return document_schema_js.AlignmentSchema;
|
|
29
30
|
}
|
|
30
31
|
});
|
|
32
|
+
Object.defineProperty(exports, "AnchorDescriptorSchema", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function() {
|
|
35
|
+
return document_schema_js.AnchorDescriptorSchema;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "AnchorTypeSchema", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function() {
|
|
41
|
+
return document_schema_js.AnchorTypeSchema;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
31
44
|
exports.AttributeSchema = require_model_node.AttributeSchema;
|
|
32
45
|
exports.BinaryPartSchema = require_model_package.BinaryPartSchema;
|
|
33
46
|
Object.defineProperty(exports, "BoxSchema", {
|
|
@@ -52,6 +65,12 @@ exports.CommentSchema = require_typed_docx_read.CommentSchema;
|
|
|
52
65
|
exports.CompactPackageSchema = require_compact.CompactPackageSchema;
|
|
53
66
|
exports.CompactPartSchema = require_compact.CompactPartSchema;
|
|
54
67
|
exports.CompactXmlNodeSchema = require_compact.CompactXmlNodeSchema;
|
|
68
|
+
Object.defineProperty(exports, "ConstructDescriptorSchema", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function() {
|
|
71
|
+
return document_schema_js.ConstructDescriptorSchema;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
55
74
|
Object.defineProperty(exports, "ContentBlockSchema", {
|
|
56
75
|
enumerable: true,
|
|
57
76
|
get: function() {
|
|
@@ -76,6 +95,36 @@ Object.defineProperty(exports, "ContentCellValueSchema", {
|
|
|
76
95
|
return document_schema_js.ContentCellValueSchema;
|
|
77
96
|
}
|
|
78
97
|
});
|
|
98
|
+
Object.defineProperty(exports, "ContentConstructEndSchema", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function() {
|
|
101
|
+
return document_schema_js.ContentConstructEndSchema;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
Object.defineProperty(exports, "ContentConstructStartSchema", {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
get: function() {
|
|
107
|
+
return document_schema_js.ContentConstructStartSchema;
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
Object.defineProperty(exports, "ContentControlDescriptorSchema", {
|
|
111
|
+
enumerable: true,
|
|
112
|
+
get: function() {
|
|
113
|
+
return document_schema_js.ContentControlDescriptorSchema;
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
Object.defineProperty(exports, "ContentControlLockSchema", {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
get: function() {
|
|
119
|
+
return document_schema_js.ContentControlLockSchema;
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
Object.defineProperty(exports, "ContentControlTypeSchema", {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
get: function() {
|
|
125
|
+
return document_schema_js.ContentControlTypeSchema;
|
|
126
|
+
}
|
|
127
|
+
});
|
|
79
128
|
Object.defineProperty(exports, "ContentDocumentSchema", {
|
|
80
129
|
enumerable: true,
|
|
81
130
|
get: function() {
|
|
@@ -203,9 +252,33 @@ Object.defineProperty(exports, "ContentTableSchema", {
|
|
|
203
252
|
}
|
|
204
253
|
});
|
|
205
254
|
exports.DefinedNameSchema = require_typed_xlsx.DefinedNameSchema;
|
|
255
|
+
Object.defineProperty(exports, "DivisionDescriptorSchema", {
|
|
256
|
+
enumerable: true,
|
|
257
|
+
get: function() {
|
|
258
|
+
return document_schema_js.DivisionDescriptorSchema;
|
|
259
|
+
}
|
|
260
|
+
});
|
|
206
261
|
exports.DocumentMetadataSchema = require_typed_shared_metadata.DocumentMetadataSchema;
|
|
207
262
|
exports.DocxDocumentSchema = require_typed_docx_read.DocxDocumentSchema;
|
|
263
|
+
Object.defineProperty(exports, "FieldDescriptorSchema", {
|
|
264
|
+
enumerable: true,
|
|
265
|
+
get: function() {
|
|
266
|
+
return document_schema_js.FieldDescriptorSchema;
|
|
267
|
+
}
|
|
268
|
+
});
|
|
208
269
|
exports.FootnoteSchema = require_typed_docx_read.FootnoteSchema;
|
|
270
|
+
Object.defineProperty(exports, "LinkDescriptorSchema", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
get: function() {
|
|
273
|
+
return document_schema_js.LinkDescriptorSchema;
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
Object.defineProperty(exports, "LinkTargetSchema", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function() {
|
|
279
|
+
return document_schema_js.LinkTargetSchema;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
209
282
|
Object.defineProperty(exports, "MarginsSchema", {
|
|
210
283
|
enumerable: true,
|
|
211
284
|
get: function() {
|
|
@@ -235,6 +308,18 @@ Object.defineProperty(exports, "PageSizeSchema", {
|
|
|
235
308
|
});
|
|
236
309
|
exports.PartSchema = require_model_package.PartSchema;
|
|
237
310
|
exports.PptxDocumentSchema = require_typed_pptx_read.PptxDocumentSchema;
|
|
311
|
+
Object.defineProperty(exports, "ProvenanceChangeSchema", {
|
|
312
|
+
enumerable: true,
|
|
313
|
+
get: function() {
|
|
314
|
+
return document_schema_js.ProvenanceChangeSchema;
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
Object.defineProperty(exports, "ProvenanceDescriptorSchema", {
|
|
318
|
+
enumerable: true,
|
|
319
|
+
get: function() {
|
|
320
|
+
return document_schema_js.ProvenanceDescriptorSchema;
|
|
321
|
+
}
|
|
322
|
+
});
|
|
238
323
|
Object.defineProperty(exports, "SLIDE_SIZE_STANDARD", {
|
|
239
324
|
enumerable: true,
|
|
240
325
|
get: function() {
|
|
@@ -261,6 +346,7 @@ exports.XmlTextSchema = require_model_node.XmlTextSchema;
|
|
|
261
346
|
exports.applyColorTransforms = require_typed_shared_color.applyColorTransforms;
|
|
262
347
|
exports.attr = require_typed_util.attr;
|
|
263
348
|
exports.base64ToBytes = require_util_base64.base64ToBytes;
|
|
349
|
+
exports.buildDocxPackage = require_typed_docx_write.buildDocxPackage;
|
|
264
350
|
exports.buildXlsxPackage = require_typed_xlsx_build.buildXlsxPackage;
|
|
265
351
|
exports.buildXml = require_xml_build.buildXml;
|
|
266
352
|
exports.bytesToBase64 = require_util_base64.bytesToBase64;
|
|
@@ -281,6 +367,12 @@ exports.elementsWithTag = require_typed_util.elementsWithTag;
|
|
|
281
367
|
exports.encodeCompactPackage = require_compact.encodeCompactPackage;
|
|
282
368
|
exports.encodePackage = require_codec.encodePackage;
|
|
283
369
|
exports.encodeXmlText = require_xml_entities.encodeXmlText;
|
|
370
|
+
Object.defineProperty(exports, "findConstructMarkerImbalance", {
|
|
371
|
+
enumerable: true,
|
|
372
|
+
get: function() {
|
|
373
|
+
return document_schema_js.findConstructMarkerImbalance;
|
|
374
|
+
}
|
|
375
|
+
});
|
|
284
376
|
exports.fromCompact = require_compact.fromCompact;
|
|
285
377
|
exports.isCompactXmlNode = require_compact.isCompactXmlNode;
|
|
286
378
|
Object.defineProperty(exports, "isContentBlock", {
|
|
@@ -289,6 +381,18 @@ Object.defineProperty(exports, "isContentBlock", {
|
|
|
289
381
|
return document_schema_js.isContentBlock;
|
|
290
382
|
}
|
|
291
383
|
});
|
|
384
|
+
Object.defineProperty(exports, "isContentConstructEnd", {
|
|
385
|
+
enumerable: true,
|
|
386
|
+
get: function() {
|
|
387
|
+
return document_schema_js.isContentConstructEnd;
|
|
388
|
+
}
|
|
389
|
+
});
|
|
390
|
+
Object.defineProperty(exports, "isContentConstructStart", {
|
|
391
|
+
enumerable: true,
|
|
392
|
+
get: function() {
|
|
393
|
+
return document_schema_js.isContentConstructStart;
|
|
394
|
+
}
|
|
395
|
+
});
|
|
292
396
|
exports.isXmlNode = require_model_node.isXmlNode;
|
|
293
397
|
exports.packageCodec = require_codec.packageCodec;
|
|
294
398
|
exports.parsePackage = require_package_io_read.parsePackage;
|
package/dist/index.d.cts
CHANGED
|
@@ -14,10 +14,11 @@ import { n as applyColorTransforms, t as ColorTransform } from "./color-fFIKAs-Y
|
|
|
14
14
|
import { n as DocumentMetadataSchema, t as DocumentMetadata } from "./metadata-D6o-kLpg.cjs";
|
|
15
15
|
import { n as sniffImageFormat, t as ImageFormat } from "./sniff-DjpnUZRp.cjs";
|
|
16
16
|
import { a as Footnote, i as DocxDocumentSchema, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as readDocx, t as Comment } from "./read-D_CpruL_.cjs";
|
|
17
|
+
import { n as buildDocxPackage, t as DocxContent } from "./write-C08_maSc.cjs";
|
|
17
18
|
import { a as NumberingLevelSchema, i as NumberingLevel, n as NumberingDefinitionSchema, o as readNumberingDefinitions, r as NumberingDefinitions, t as NumberingDefinition } from "./numbering-C53LT-Jx.cjs";
|
|
18
19
|
import { n as PptxDocumentSchema, r as readPptx, t as PptxDocument } from "./read-OBV7MMlF.cjs";
|
|
19
20
|
import { a as XlsxSheet, c as XlsxWorkbookSchema, i as XlsxCellSchema, l as readXlsx, n as DefinedNameSchema, o as XlsxSheetSchema, r as XlsxCell, s as XlsxWorkbook, t as DefinedName } from "./xlsx-B97t4YE-.cjs";
|
|
20
21
|
import { t as readXlsxContent } from "./content-UlQ-Nhgi.cjs";
|
|
21
22
|
import { t as buildXlsxPackage } from "./build-CBL9scQK.cjs";
|
|
22
|
-
import { $ as
|
|
23
|
-
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, BoxSchema, COLOR_BLACK, type Color, ColorSchema, type ColorTransform, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentBorder, ContentBorderSchema, type ContentCellBorders, ContentCellBordersSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, ContentDocumentSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, ContentListMembershipSchema, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, ContentSheetImageSchema, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStrokeStyle, ContentStrokeStyleSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type DefinedName, DefinedNameSchema, type DocumentMetadata, DocumentMetadataSchema, type DocxDocument, DocxDocumentSchema, type Footnote, FootnoteSchema, type ImageFormat, type Margins, MarginsSchema, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, PageSizeSchema, type Part, PartSchema, type PptxDocument, PptxDocumentSchema, type Relationship, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type XlsxCell, XlsxCellSchema, type XlsxSheet, XlsxSheetSchema, type XlsxWorkbook, XlsxWorkbookSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyColorTransforms, attr, base64ToBytes, buildXlsxPackage, buildXml, bytesToBase64, childrenWithTag, colorToRgbHex, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, el, elementsWithTag, encodeCompactPackage, encodePackage, encodeXmlText, fromCompact, isCompactXmlNode, isContentBlock, isXmlNode, packageCodec, parsePackage, parseXml, readDocx, readNumberingDefinitions, readPptx, readXlsx, readXlsxContent, resolveRelationships, rgbHexToColor, rootElement, serializePackage, sniffImageFormat, textContent, toCompact, txt, unzipPackage, walk, xmlCodec, zipPackage };
|
|
23
|
+
import { $ as ContentSheet, A as ContentConstructStartSchema, At as LinkDescriptorSchema, B as ContentImageBlockSchema, Bt as ProvenanceChangeSchema, C as ContentCellBorders, Ct as ContentTableRowSchema, D as ContentConstructEnd, Dt as FieldDescriptor, E as ContentCellValueSchema, Et as DivisionDescriptorSchema, F as ContentControlType, Ft as PAGE_SIZE_A4, G as ContentParagraph, Gt as colorToRgbHex, H as ContentListMembershipSchema, Ht as ProvenanceDescriptorSchema, I as ContentControlTypeSchema, It as PAGE_SIZE_LETTER, J as ContentRunSchema, Jt as isContentConstructEnd, K as ContentParagraphSchema, Kt as findConstructMarkerImbalance, L as ContentDocument, Lt as PageSize, M as ContentControlDescriptorSchema, Mt as LinkTargetSchema, N as ContentControlLock, Nt as Margins, O as ContentConstructEndSchema, Ot as FieldDescriptorSchema, P as ContentControlLockSchema, Pt as MarginsSchema, Q as ContentShapeSchema, R as ContentDocumentSchema, Rt as PageSizeSchema, S as ContentBorderSchema, St as ContentTableRow, T as ContentCellValue, Tt as DivisionDescriptor, U as ContentPageBreak, Ut as SLIDE_SIZE_STANDARD, V as ContentListMembership, Vt as ProvenanceDescriptor, W as ContentPageBreakSchema, Wt as SLIDE_SIZE_WIDESCREEN, X as ContentSectionSchema, Xt as rgbHexToColor, Y as ContentSection, Yt as isContentConstructStart, Z as ContentShape, _ as ConstructDescriptorSchema, _t as ContentStrokeStyle, a as Alignment, at as ContentSheetImageSchema, b as ContentBlockSchema, bt as ContentTableCell, c as AnchorDescriptorSchema, ct as ContentSheetPrintSettings, d as Box, dt as ContentSheetRepeatRangeSchema, et as ContentSheetCell, f as BoxSchema, ft as ContentSheetRow, g as ConstructDescriptor, gt as ContentSlideSchema, h as ColorSchema, ht as ContentSlide, i as xmlCodec, it as ContentSheetImage, j as ContentControlDescriptor, jt as LinkTarget, k as ContentConstructStart, kt as LinkDescriptor, l as AnchorType, lt as ContentSheetPrintSettingsSchema, m as Color, mt as ContentSheetSchema, n as encodePackage, nt as ContentSheetColumn, o as AlignmentSchema, ot as ContentSheetPrintRange, p as COLOR_BLACK, pt as ContentSheetRowSchema, q as ContentRun, qt as isContentBlock, r as packageCodec, rt as ContentSheetColumnSchema, s as AnchorDescriptor, st as ContentSheetPrintRangeSchema, t as decodePackage, tt as ContentSheetCellSchema, u as AnchorTypeSchema, ut as ContentSheetRepeatRange, v as ConstructMarkerImbalance, vt as ContentStrokeStyleSchema, w as ContentCellBordersSchema, wt as ContentTableSchema, x as ContentBorder, xt as ContentTableCellSchema, y as ContentBlock, yt as ContentTable, z as ContentImageBlock, zt as ProvenanceChange } from "./codec-CuzuI9Dy.cjs";
|
|
24
|
+
export { type Alignment, AlignmentSchema, type AnchorDescriptor, AnchorDescriptorSchema, type AnchorType, AnchorTypeSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, BoxSchema, COLOR_BLACK, type Color, ColorSchema, type ColorTransform, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ConstructDescriptor, ConstructDescriptorSchema, type ConstructMarkerImbalance, type ContentBlock, ContentBlockSchema, type ContentBorder, ContentBorderSchema, type ContentCellBorders, ContentCellBordersSchema, type ContentCellValue, ContentCellValueSchema, type ContentConstructEnd, ContentConstructEndSchema, type ContentConstructStart, ContentConstructStartSchema, type ContentControlDescriptor, ContentControlDescriptorSchema, type ContentControlLock, ContentControlLockSchema, type ContentControlType, ContentControlTypeSchema, type ContentDocument, ContentDocumentSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, ContentListMembershipSchema, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, ContentSheetImageSchema, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStrokeStyle, ContentStrokeStyleSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type DefinedName, DefinedNameSchema, type DivisionDescriptor, DivisionDescriptorSchema, type DocumentMetadata, DocumentMetadataSchema, type DocxContent, type DocxDocument, DocxDocumentSchema, type FieldDescriptor, FieldDescriptorSchema, type Footnote, FootnoteSchema, type ImageFormat, type LinkDescriptor, LinkDescriptorSchema, type LinkTarget, LinkTargetSchema, type Margins, MarginsSchema, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, PageSizeSchema, type Part, PartSchema, type PptxDocument, PptxDocumentSchema, type ProvenanceChange, ProvenanceChangeSchema, type ProvenanceDescriptor, ProvenanceDescriptorSchema, type Relationship, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type XlsxCell, XlsxCellSchema, type XlsxSheet, XlsxSheetSchema, type XlsxWorkbook, XlsxWorkbookSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyColorTransforms, attr, base64ToBytes, buildDocxPackage, buildXlsxPackage, buildXml, bytesToBase64, childrenWithTag, colorToRgbHex, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, el, elementsWithTag, encodeCompactPackage, encodePackage, encodeXmlText, findConstructMarkerImbalance, fromCompact, isCompactXmlNode, isContentBlock, isContentConstructEnd, isContentConstructStart, isXmlNode, packageCodec, parsePackage, parseXml, readDocx, readNumberingDefinitions, readPptx, readXlsx, readXlsxContent, resolveRelationships, rgbHexToColor, rootElement, serializePackage, sniffImageFormat, textContent, toCompact, txt, unzipPackage, walk, xmlCodec, zipPackage };
|
package/dist/index.d.ts
CHANGED
|
@@ -14,10 +14,11 @@ import { n as applyColorTransforms, t as ColorTransform } from "./color-fFIKAs-Y
|
|
|
14
14
|
import { n as DocumentMetadataSchema, t as DocumentMetadata } from "./metadata-o_WH9V_I.js";
|
|
15
15
|
import { n as sniffImageFormat, t as ImageFormat } from "./sniff-DjpnUZRp.js";
|
|
16
16
|
import { a as Footnote, i as DocxDocumentSchema, n as CommentSchema, o as FootnoteSchema, r as DocxDocument, s as readDocx, t as Comment } from "./read-B2-FFhqI.js";
|
|
17
|
+
import { n as buildDocxPackage, t as DocxContent } from "./write-U3Ap0vHi.js";
|
|
17
18
|
import { a as NumberingLevelSchema, i as NumberingLevel, n as NumberingDefinitionSchema, o as readNumberingDefinitions, r as NumberingDefinitions, t as NumberingDefinition } from "./numbering-D0YfuiOO.js";
|
|
18
19
|
import { n as PptxDocumentSchema, r as readPptx, t as PptxDocument } from "./read-CeCtSzjQ.js";
|
|
19
20
|
import { a as XlsxSheet, c as XlsxWorkbookSchema, i as XlsxCellSchema, l as readXlsx, n as DefinedNameSchema, o as XlsxSheetSchema, r as XlsxCell, s as XlsxWorkbook, t as DefinedName } from "./xlsx-BxKODiLX.js";
|
|
20
21
|
import { t as readXlsxContent } from "./content-t6ZfmfQM.js";
|
|
21
22
|
import { t as buildXlsxPackage } from "./build-C0gS5QeG.js";
|
|
22
|
-
import { $ as
|
|
23
|
-
export { type Alignment, AlignmentSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, BoxSchema, COLOR_BLACK, type Color, ColorSchema, type ColorTransform, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ContentBlock, ContentBlockSchema, type ContentBorder, ContentBorderSchema, type ContentCellBorders, ContentCellBordersSchema, type ContentCellValue, ContentCellValueSchema, type ContentDocument, ContentDocumentSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, ContentListMembershipSchema, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, ContentSheetImageSchema, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStrokeStyle, ContentStrokeStyleSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type DefinedName, DefinedNameSchema, type DocumentMetadata, DocumentMetadataSchema, type DocxDocument, DocxDocumentSchema, type Footnote, FootnoteSchema, type ImageFormat, type Margins, MarginsSchema, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, PageSizeSchema, type Part, PartSchema, type PptxDocument, PptxDocumentSchema, type Relationship, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type XlsxCell, XlsxCellSchema, type XlsxSheet, XlsxSheetSchema, type XlsxWorkbook, XlsxWorkbookSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyColorTransforms, attr, base64ToBytes, buildXlsxPackage, buildXml, bytesToBase64, childrenWithTag, colorToRgbHex, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, el, elementsWithTag, encodeCompactPackage, encodePackage, encodeXmlText, fromCompact, isCompactXmlNode, isContentBlock, isXmlNode, packageCodec, parsePackage, parseXml, readDocx, readNumberingDefinitions, readPptx, readXlsx, readXlsxContent, resolveRelationships, rgbHexToColor, rootElement, serializePackage, sniffImageFormat, textContent, toCompact, txt, unzipPackage, walk, xmlCodec, zipPackage };
|
|
23
|
+
import { $ as ContentSheet, A as ContentConstructStartSchema, At as LinkDescriptorSchema, B as ContentImageBlockSchema, Bt as ProvenanceChangeSchema, C as ContentCellBorders, Ct as ContentTableRowSchema, D as ContentConstructEnd, Dt as FieldDescriptor, E as ContentCellValueSchema, Et as DivisionDescriptorSchema, F as ContentControlType, Ft as PAGE_SIZE_A4, G as ContentParagraph, Gt as colorToRgbHex, H as ContentListMembershipSchema, Ht as ProvenanceDescriptorSchema, I as ContentControlTypeSchema, It as PAGE_SIZE_LETTER, J as ContentRunSchema, Jt as isContentConstructEnd, K as ContentParagraphSchema, Kt as findConstructMarkerImbalance, L as ContentDocument, Lt as PageSize, M as ContentControlDescriptorSchema, Mt as LinkTargetSchema, N as ContentControlLock, Nt as Margins, O as ContentConstructEndSchema, Ot as FieldDescriptorSchema, P as ContentControlLockSchema, Pt as MarginsSchema, Q as ContentShapeSchema, R as ContentDocumentSchema, Rt as PageSizeSchema, S as ContentBorderSchema, St as ContentTableRow, T as ContentCellValue, Tt as DivisionDescriptor, U as ContentPageBreak, Ut as SLIDE_SIZE_STANDARD, V as ContentListMembership, Vt as ProvenanceDescriptor, W as ContentPageBreakSchema, Wt as SLIDE_SIZE_WIDESCREEN, X as ContentSectionSchema, Xt as rgbHexToColor, Y as ContentSection, Yt as isContentConstructStart, Z as ContentShape, _ as ConstructDescriptorSchema, _t as ContentStrokeStyle, a as Alignment, at as ContentSheetImageSchema, b as ContentBlockSchema, bt as ContentTableCell, c as AnchorDescriptorSchema, ct as ContentSheetPrintSettings, d as Box, dt as ContentSheetRepeatRangeSchema, et as ContentSheetCell, f as BoxSchema, ft as ContentSheetRow, g as ConstructDescriptor, gt as ContentSlideSchema, h as ColorSchema, ht as ContentSlide, i as xmlCodec, it as ContentSheetImage, j as ContentControlDescriptor, jt as LinkTarget, k as ContentConstructStart, kt as LinkDescriptor, l as AnchorType, lt as ContentSheetPrintSettingsSchema, m as Color, mt as ContentSheetSchema, n as encodePackage, nt as ContentSheetColumn, o as AlignmentSchema, ot as ContentSheetPrintRange, p as COLOR_BLACK, pt as ContentSheetRowSchema, q as ContentRun, qt as isContentBlock, r as packageCodec, rt as ContentSheetColumnSchema, s as AnchorDescriptor, st as ContentSheetPrintRangeSchema, t as decodePackage, tt as ContentSheetCellSchema, u as AnchorTypeSchema, ut as ContentSheetRepeatRange, v as ConstructMarkerImbalance, vt as ContentStrokeStyleSchema, w as ContentCellBordersSchema, wt as ContentTableSchema, x as ContentBorder, xt as ContentTableCellSchema, y as ContentBlock, yt as ContentTable, z as ContentImageBlock, zt as ProvenanceChange } from "./codec-B3qT1CGZ.js";
|
|
24
|
+
export { type Alignment, AlignmentSchema, type AnchorDescriptor, AnchorDescriptorSchema, type AnchorType, AnchorTypeSchema, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, BoxSchema, COLOR_BLACK, type Color, ColorSchema, type ColorTransform, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type ConstructDescriptor, ConstructDescriptorSchema, type ConstructMarkerImbalance, type ContentBlock, ContentBlockSchema, type ContentBorder, ContentBorderSchema, type ContentCellBorders, ContentCellBordersSchema, type ContentCellValue, ContentCellValueSchema, type ContentConstructEnd, ContentConstructEndSchema, type ContentConstructStart, ContentConstructStartSchema, type ContentControlDescriptor, ContentControlDescriptorSchema, type ContentControlLock, ContentControlLockSchema, type ContentControlType, ContentControlTypeSchema, type ContentDocument, ContentDocumentSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, ContentListMembershipSchema, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, ContentSheetImageSchema, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStrokeStyle, ContentStrokeStyleSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type DefinedName, DefinedNameSchema, type DivisionDescriptor, DivisionDescriptorSchema, type DocumentMetadata, DocumentMetadataSchema, type DocxContent, type DocxDocument, DocxDocumentSchema, type FieldDescriptor, FieldDescriptorSchema, type Footnote, FootnoteSchema, type ImageFormat, type LinkDescriptor, LinkDescriptorSchema, type LinkTarget, LinkTargetSchema, type Margins, MarginsSchema, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageSize, PageSizeSchema, type Part, PartSchema, type PptxDocument, PptxDocumentSchema, type ProvenanceChange, ProvenanceChangeSchema, type ProvenanceDescriptor, ProvenanceDescriptorSchema, type Relationship, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, type XlsxCell, XlsxCellSchema, type XlsxSheet, XlsxSheetSchema, type XlsxWorkbook, XlsxWorkbookSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyColorTransforms, attr, base64ToBytes, buildDocxPackage, buildXlsxPackage, buildXml, bytesToBase64, childrenWithTag, colorToRgbHex, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, el, elementsWithTag, encodeCompactPackage, encodePackage, encodeXmlText, findConstructMarkerImbalance, fromCompact, isCompactXmlNode, isContentBlock, isContentConstructEnd, isContentConstructStart, isXmlNode, packageCodec, parsePackage, parseXml, readDocx, readNumberingDefinitions, readPptx, readXlsx, readXlsxContent, resolveRelationships, rgbHexToColor, rootElement, serializePackage, sniffImageFormat, textContent, toCompact, txt, unzipPackage, walk, xmlCodec, zipPackage };
|
package/dist/index.js
CHANGED
|
@@ -16,9 +16,10 @@ import { DocumentMetadataSchema } from "./typed/shared/metadata.js";
|
|
|
16
16
|
import { sniffImageFormat } from "./image/sniff.js";
|
|
17
17
|
import { NumberingDefinitionSchema, NumberingLevelSchema, readNumberingDefinitions } from "./typed/docx/numbering.js";
|
|
18
18
|
import { CommentSchema, DocxDocumentSchema, FootnoteSchema, readDocx } from "./typed/docx/read.js";
|
|
19
|
+
import { buildDocxPackage } from "./typed/docx/write.js";
|
|
19
20
|
import { PptxDocumentSchema, readPptx } from "./typed/pptx/read.js";
|
|
20
21
|
import { DefinedNameSchema, XlsxCellSchema, XlsxSheetSchema, XlsxWorkbookSchema, readXlsx } from "./typed/xlsx.js";
|
|
21
22
|
import { readXlsxContent } from "./typed/xlsx/content.js";
|
|
22
23
|
import { buildXlsxPackage } from "./typed/xlsx/build.js";
|
|
23
|
-
import { AlignmentSchema, BoxSchema, COLOR_BLACK, ColorSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentDocumentSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeStyleSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor } from "document-schema.js";
|
|
24
|
-
export { AlignmentSchema, AttributeSchema, BinaryPartSchema, BoxSchema, COLOR_BLACK, ColorSchema, CommentSchema, CompactPackageSchema, CompactPartSchema, CompactXmlNodeSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentDocumentSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeStyleSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, DefinedNameSchema, DocumentMetadataSchema, DocxDocumentSchema, FootnoteSchema, MarginsSchema, NumberingDefinitionSchema, NumberingLevelSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageSchema, PageSizeSchema, PartSchema, PptxDocumentSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, XlsxCellSchema, XlsxSheetSchema, XlsxWorkbookSchema, XmlCdataSchema, XmlCommentSchema, XmlDeclarationSchema, XmlElementSchema, XmlNodeSchema, XmlPartSchema, XmlPiSchema, XmlTextSchema, applyColorTransforms, attr, base64ToBytes, buildXlsxPackage, buildXml, bytesToBase64, childrenWithTag, colorToRgbHex, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, el, elementsWithTag, encodeCompactPackage, encodePackage, encodeXmlText, fromCompact, isCompactXmlNode, isContentBlock, isXmlNode, packageCodec, parsePackage, parseXml, readDocx, readNumberingDefinitions, readPptx, readXlsx, readXlsxContent, resolveRelationships, rgbHexToColor, rootElement, serializePackage, sniffImageFormat, textContent, toCompact, txt, unzipPackage, walk, xmlCodec, zipPackage };
|
|
24
|
+
import { AlignmentSchema, AnchorDescriptorSchema, AnchorTypeSchema, BoxSchema, COLOR_BLACK, ColorSchema, ConstructDescriptorSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, ContentDocumentSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeStyleSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, DivisionDescriptorSchema, FieldDescriptorSchema, LinkDescriptorSchema, LinkTargetSchema, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, ProvenanceChangeSchema, ProvenanceDescriptorSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, findConstructMarkerImbalance, isContentBlock, isContentConstructEnd, isContentConstructStart, rgbHexToColor } from "document-schema.js";
|
|
25
|
+
export { AlignmentSchema, AnchorDescriptorSchema, AnchorTypeSchema, AttributeSchema, BinaryPartSchema, BoxSchema, COLOR_BLACK, ColorSchema, CommentSchema, CompactPackageSchema, CompactPartSchema, CompactXmlNodeSchema, ConstructDescriptorSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, ContentDocumentSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeStyleSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, DefinedNameSchema, DivisionDescriptorSchema, DocumentMetadataSchema, DocxDocumentSchema, FieldDescriptorSchema, FootnoteSchema, LinkDescriptorSchema, LinkTargetSchema, MarginsSchema, NumberingDefinitionSchema, NumberingLevelSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageSchema, PageSizeSchema, PartSchema, PptxDocumentSchema, ProvenanceChangeSchema, ProvenanceDescriptorSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, XlsxCellSchema, XlsxSheetSchema, XlsxWorkbookSchema, XmlCdataSchema, XmlCommentSchema, XmlDeclarationSchema, XmlElementSchema, XmlNodeSchema, XmlPartSchema, XmlPiSchema, XmlTextSchema, applyColorTransforms, attr, base64ToBytes, buildDocxPackage, buildXlsxPackage, buildXml, bytesToBase64, childrenWithTag, colorToRgbHex, compactCodec, compactPackageCodec, decodeCompactPackage, decodeEntities, decodePackage, el, elementsWithTag, encodeCompactPackage, encodePackage, encodeXmlText, findConstructMarkerImbalance, fromCompact, isCompactXmlNode, isContentBlock, isContentConstructEnd, isContentConstructStart, isXmlNode, packageCodec, parsePackage, parseXml, readDocx, readNumberingDefinitions, readPptx, readXlsx, readXlsxContent, resolveRelationships, rgbHexToColor, rootElement, serializePackage, sniffImageFormat, textContent, toCompact, txt, unzipPackage, walk, xmlCodec, zipPackage };
|