document-content-model 7.11.0 → 7.11.2
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/dist/a1.cjs +1 -1
- package/dist/a1.js +1 -1
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/color.cjs +3 -5
- package/dist/color.js +3 -5
- package/dist/{construct-GVdTKrE7.d.cts → construct-C4XiF8OW.d.cts} +3 -3
- package/dist/{construct-GVdTKrE7.d.ts → construct-C4XiF8OW.d.ts} +3 -3
- package/dist/construct.d.cts +1 -1
- package/dist/construct.d.ts +1 -1
- package/dist/{content-DWSflkUJ.d.cts → content-BrxGwe8j.d.cts} +31 -31
- package/dist/{content-C5CsxSt1.d.ts → content-D-j5QBCq.d.ts} +31 -31
- package/dist/content-json-schema-defs.cjs +1 -3
- package/dist/content-json-schema-defs.js +1 -3
- package/dist/content.cjs +1 -1
- package/dist/content.d.cts +1 -1
- package/dist/content.d.ts +1 -1
- package/dist/content.js +1 -1
- package/dist/decompose.d.cts +2 -2
- package/dist/decompose.d.ts +2 -2
- package/dist/definitions.d.cts +1 -1
- package/dist/definitions.d.ts +1 -1
- package/dist/factor-styles.cjs +17 -61
- package/dist/factor-styles.d.cts +1 -1
- package/dist/factor-styles.d.ts +1 -1
- package/dist/factor-styles.js +17 -61
- package/dist/flatten.d.cts +1 -1
- package/dist/flatten.d.ts +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/{package-node-5OqgGCtu.d.ts → package-node-CHX4Z0RM.d.ts} +20 -20
- package/dist/{package-node-DK-b0h6V.d.cts → package-node-DH0p0dyl.d.cts} +20 -20
- package/dist/package-node.cjs +0 -1
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package-node.js +0 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/dist/schema-io.cjs +2 -2
- package/dist/schema-io.d.cts +1 -1
- package/dist/schema-io.d.ts +1 -1
- package/dist/schema-io.js +2 -2
- package/package.json +2 -2
- package/schemas/content-document.schema.json +16 -16
- package/schemas/document-tree.schema.json +3 -3
package/dist/factor-styles.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as PageSize } from "./geometry-CvcjSwnA.js";
|
|
2
|
-
import { C as ContentDocument } from "./content-
|
|
2
|
+
import { C as ContentDocument } from "./content-D-j5QBCq.js";
|
|
3
3
|
import { DocumentTree } from "./package.js";
|
|
4
4
|
//#region src/factor-styles.d.ts
|
|
5
5
|
declare function assembleTree(content: ContentDocument, pages?: readonly PageSize[]): DocumentTree;
|
package/dist/factor-styles.js
CHANGED
|
@@ -21,18 +21,9 @@ const RUN_STYLE_KEYS = [
|
|
|
21
21
|
"sizePt",
|
|
22
22
|
"color"
|
|
23
23
|
];
|
|
24
|
-
function isShapeGroupWrapper(wrapper) {
|
|
25
|
-
return !("kind" in wrapper.node);
|
|
26
|
-
}
|
|
27
24
|
function isAnchorGroupWrapper(wrapper) {
|
|
28
25
|
return "kind" in wrapper.node && wrapper.node.kind === "paragraph";
|
|
29
26
|
}
|
|
30
|
-
function isSlideGroupWrapper(wrapper) {
|
|
31
|
-
return "kind" in wrapper.node && wrapper.node.kind === "slide";
|
|
32
|
-
}
|
|
33
|
-
function isDrawPageGroupWrapper(wrapper) {
|
|
34
|
-
return "kind" in wrapper.node && wrapper.node.kind === "drawPage";
|
|
35
|
-
}
|
|
36
27
|
function isHeadingGroup(group) {
|
|
37
28
|
return group.node.headingLevel !== void 0;
|
|
38
29
|
}
|
|
@@ -81,21 +72,13 @@ function factorStyles(pkg) {
|
|
|
81
72
|
...pkg.fonts !== void 0 ? { fonts: pkg.fonts } : {},
|
|
82
73
|
...pkg.source !== void 0 ? { source: pkg.source } : {}
|
|
83
74
|
};
|
|
84
|
-
if (pkg.definitions === void 0 && pkg.fonts === void 0 && pkg.source === void 0) return reassembled;
|
|
85
75
|
return {
|
|
86
76
|
...reassembled,
|
|
87
77
|
...carried
|
|
88
78
|
};
|
|
89
79
|
}
|
|
90
80
|
function extentOf(wrapper) {
|
|
91
|
-
if (isShapeGroupWrapper(wrapper)) return flowExtent(wrapper.children);
|
|
92
81
|
if (isAnchorGroupWrapper(wrapper)) return [wrapper.node, ...flowExtent(wrapper.children)];
|
|
93
|
-
if (isSlideGroupWrapper(wrapper)) return wrapper.children.flatMap(extentOf);
|
|
94
|
-
if (isDrawPageGroupWrapper(wrapper)) {
|
|
95
|
-
const paragraphs = [];
|
|
96
|
-
for (const child of wrapper.children) if ("node" in child) paragraphs.push(...extentOf(child));
|
|
97
|
-
return paragraphs;
|
|
98
|
-
}
|
|
99
82
|
return flowExtent(wrapper.children);
|
|
100
83
|
}
|
|
101
84
|
function flowExtent(children) {
|
|
@@ -106,12 +89,12 @@ function flowExtent(children) {
|
|
|
106
89
|
}
|
|
107
90
|
function paragraphTuple(paragraph, keys) {
|
|
108
91
|
const tuple = {};
|
|
109
|
-
for (const key of keys)
|
|
92
|
+
for (const key of keys) tuple[key] = paragraph[key];
|
|
110
93
|
return tuple;
|
|
111
94
|
}
|
|
112
95
|
function runTuple(run, keys) {
|
|
113
96
|
const tuple = {};
|
|
114
|
-
for (const key of keys)
|
|
97
|
+
for (const key of keys) tuple[key] = run[key];
|
|
115
98
|
return tuple;
|
|
116
99
|
}
|
|
117
100
|
function commonParagraphKeys(extent, frozen) {
|
|
@@ -119,7 +102,6 @@ function commonParagraphKeys(extent, frozen) {
|
|
|
119
102
|
}
|
|
120
103
|
function commonRunKeys(extent, frozen) {
|
|
121
104
|
const runs = extent.flatMap((paragraph) => paragraph.runs);
|
|
122
|
-
if (runs.length === 0) return [];
|
|
123
105
|
return RUN_STYLE_KEYS.filter((key) => !frozen.has(key) && runs.every((run) => run[key] !== void 0));
|
|
124
106
|
}
|
|
125
107
|
function bestParagraphCandidate(extent, keys, factored) {
|
|
@@ -164,10 +146,10 @@ function bestGroup(groups) {
|
|
|
164
146
|
}
|
|
165
147
|
return best;
|
|
166
148
|
}
|
|
167
|
-
function plan(wrapper,
|
|
149
|
+
function plan(wrapper, branch, state, entries) {
|
|
168
150
|
const extent = extentOf(wrapper);
|
|
169
|
-
const paragraphCandidate =
|
|
170
|
-
const runCandidate =
|
|
151
|
+
const paragraphCandidate = bestParagraphCandidate(extent, commonParagraphKeys(extent, branch.frozenParagraphs), branch.factoredParagraphs);
|
|
152
|
+
const runCandidate = bestRunCandidate(extent, commonRunKeys(extent, branch.frozenRuns), branch.factoredRuns);
|
|
171
153
|
const nextFrozenParagraphs = new Set(branch.frozenParagraphs);
|
|
172
154
|
const nextFrozenRuns = new Set(branch.frozenRuns);
|
|
173
155
|
const nextFactoredParagraphs = new Set(branch.factoredParagraphs);
|
|
@@ -182,8 +164,7 @@ function plan(wrapper, visit, branch, state, entries) {
|
|
|
182
164
|
if (existing === void 0) entries.set(contentKey, {
|
|
183
165
|
content,
|
|
184
166
|
wrappers: [wrapper],
|
|
185
|
-
frequency: (paragraphCandidate?.positions.length ?? 0) + (runCandidate?.positions.length ?? 0)
|
|
186
|
-
firstVisit: visit.index
|
|
167
|
+
frequency: (paragraphCandidate?.positions.length ?? 0) + (runCandidate?.positions.length ?? 0)
|
|
187
168
|
});
|
|
188
169
|
else {
|
|
189
170
|
existing.wrappers.push(wrapper);
|
|
@@ -209,27 +190,15 @@ function plan(wrapper, visit, branch, state, entries) {
|
|
|
209
190
|
}
|
|
210
191
|
state.wrapperStrips.set(wrapper, strips);
|
|
211
192
|
}
|
|
212
|
-
visit.index += 1;
|
|
213
193
|
const next = {
|
|
214
194
|
frozenParagraphs: nextFrozenParagraphs,
|
|
215
195
|
frozenRuns: nextFrozenRuns,
|
|
216
196
|
factoredParagraphs: nextFactoredParagraphs,
|
|
217
197
|
factoredRuns: nextFactoredRuns
|
|
218
198
|
};
|
|
219
|
-
for (const child of childWrappers(wrapper)) plan(child,
|
|
199
|
+
for (const child of childWrappers(wrapper)) plan(child, next, state, entries);
|
|
220
200
|
}
|
|
221
201
|
function childWrappers(wrapper) {
|
|
222
|
-
if (isShapeGroupWrapper(wrapper) || isAnchorGroupWrapper(wrapper)) {
|
|
223
|
-
const wrappers = [];
|
|
224
|
-
for (const child of wrapper.children) if ("node" in child && "children" in child) wrappers.push(child);
|
|
225
|
-
return wrappers;
|
|
226
|
-
}
|
|
227
|
-
if (isSlideGroupWrapper(wrapper)) return [...wrapper.children];
|
|
228
|
-
if (isDrawPageGroupWrapper(wrapper)) {
|
|
229
|
-
const shapes = [];
|
|
230
|
-
for (const child of wrapper.children) if ("node" in child) shapes.push(child);
|
|
231
|
-
return shapes;
|
|
232
|
-
}
|
|
233
202
|
const wrappers = [];
|
|
234
203
|
for (const child of wrapper.children) if ("node" in child && "children" in child) wrappers.push(child);
|
|
235
204
|
return wrappers;
|
|
@@ -240,7 +209,6 @@ function mint(pkg) {
|
|
|
240
209
|
wrapperStrips: /* @__PURE__ */ new Map()
|
|
241
210
|
};
|
|
242
211
|
const entries = /* @__PURE__ */ new Map();
|
|
243
|
-
const visit = { index: 0 };
|
|
244
212
|
const rootBranch = {
|
|
245
213
|
frozenParagraphs: /* @__PURE__ */ new Set(),
|
|
246
214
|
frozenRuns: /* @__PURE__ */ new Set(),
|
|
@@ -249,15 +217,11 @@ function mint(pkg) {
|
|
|
249
217
|
};
|
|
250
218
|
switch (pkg.kind) {
|
|
251
219
|
case "wordprocessing":
|
|
252
|
-
for (const root of pkg.children) plan(root, visit, rootBranch, state, entries);
|
|
253
|
-
break;
|
|
254
220
|
case "presentation":
|
|
255
|
-
|
|
256
|
-
break;
|
|
257
|
-
case "drawing": for (const root of pkg.children) plan(root, visit, rootBranch, state, entries);
|
|
221
|
+
case "drawing": for (const root of pkg.children) plan(root, rootBranch, state, entries);
|
|
258
222
|
}
|
|
259
223
|
if (entries.size === 0) return pkg;
|
|
260
|
-
const ordered = [...entries.values()].sort((a, b) => b.frequency - a.frequency
|
|
224
|
+
const ordered = [...entries.values()].sort((a, b) => b.frequency - a.frequency);
|
|
261
225
|
const styles = {};
|
|
262
226
|
ordered.forEach((entry, index) => {
|
|
263
227
|
const id = `s${index + 1}`;
|
|
@@ -311,7 +275,7 @@ function rebuildSlideGroup(group, chain, state) {
|
|
|
311
275
|
const inner = innerChain(group, chain, state);
|
|
312
276
|
const children = group.children.map((shape) => rebuildShapeGroup(shape, inner, state));
|
|
313
277
|
const ref = state.wrapperRefs.get(group);
|
|
314
|
-
return
|
|
278
|
+
return children.every((child, index) => child === group.children[index]) ? group : {
|
|
315
279
|
node: group.node,
|
|
316
280
|
...ref !== void 0 ? { style: ref } : {},
|
|
317
281
|
children
|
|
@@ -321,7 +285,7 @@ function rebuildDrawPageGroup(group, chain, state) {
|
|
|
321
285
|
const inner = innerChain(group, chain, state);
|
|
322
286
|
const children = group.children.map((child) => "node" in child ? rebuildShapeGroup(child, inner, state) : child);
|
|
323
287
|
const ref = state.wrapperRefs.get(group);
|
|
324
|
-
return
|
|
288
|
+
return children.every((child, index) => child === group.children[index]) ? group : {
|
|
325
289
|
node: group.node,
|
|
326
290
|
...ref !== void 0 ? { style: ref } : {},
|
|
327
291
|
children
|
|
@@ -331,7 +295,7 @@ function rebuildSectionGroup(group, chain, state) {
|
|
|
331
295
|
const inner = innerChain(group, chain, state);
|
|
332
296
|
const children = group.children.map((child) => rebuildSectionChild(child, inner, state));
|
|
333
297
|
const ref = state.wrapperRefs.get(group);
|
|
334
|
-
return
|
|
298
|
+
return children.every((child, index) => child === group.children[index]) ? group : {
|
|
335
299
|
node: group.node,
|
|
336
300
|
...ref !== void 0 ? { style: ref } : {},
|
|
337
301
|
children
|
|
@@ -353,7 +317,7 @@ function rebuildShapeGroup(group, chain, state) {
|
|
|
353
317
|
const inner = innerChain(group, chain, state);
|
|
354
318
|
const children = group.children.map((child) => rebuildListChild(child, inner, state));
|
|
355
319
|
const ref = state.wrapperRefs.get(group);
|
|
356
|
-
return
|
|
320
|
+
return children.every((child, index) => child === group.children[index]) ? group : {
|
|
357
321
|
node: group.node,
|
|
358
322
|
...ref !== void 0 ? { style: ref } : {},
|
|
359
323
|
children
|
|
@@ -363,7 +327,7 @@ function rebuildSectionConstructGroup(group, chain, state) {
|
|
|
363
327
|
const inner = innerChain(group, chain, state);
|
|
364
328
|
const children = group.children.map((child) => rebuildSectionChild(child, inner, state));
|
|
365
329
|
const ref = state.wrapperRefs.get(group);
|
|
366
|
-
return
|
|
330
|
+
return children.every((child, index) => child === group.children[index]) ? group : {
|
|
367
331
|
node: group.node,
|
|
368
332
|
...ref !== void 0 ? { style: ref } : {},
|
|
369
333
|
children
|
|
@@ -373,7 +337,7 @@ function rebuildShapeConstructGroup(group, chain, state) {
|
|
|
373
337
|
const inner = innerChain(group, chain, state);
|
|
374
338
|
const children = group.children.map((child) => rebuildListChild(child, inner, state));
|
|
375
339
|
const ref = state.wrapperRefs.get(group);
|
|
376
|
-
return
|
|
340
|
+
return children.every((child, index) => child === group.children[index]) ? group : {
|
|
377
341
|
node: group.node,
|
|
378
342
|
...ref !== void 0 ? { style: ref } : {},
|
|
379
343
|
children
|
|
@@ -382,10 +346,9 @@ function rebuildShapeConstructGroup(group, chain, state) {
|
|
|
382
346
|
function rebuildHeadingGroup(group, chain, state, rebuildChild) {
|
|
383
347
|
const inner = innerChain(group, chain, state);
|
|
384
348
|
const anchor = rebuildParagraph(group.node, inner);
|
|
385
|
-
assertHeadingAnchor(anchor);
|
|
386
349
|
const children = group.children.map((child) => rebuildChild(child, inner, state));
|
|
387
350
|
const ref = state.wrapperRefs.get(group);
|
|
388
|
-
return
|
|
351
|
+
return anchor === group.node && children.every((child, index) => child === group.children[index]) ? group : {
|
|
389
352
|
node: anchor,
|
|
390
353
|
...ref !== void 0 ? { style: ref } : {},
|
|
391
354
|
children
|
|
@@ -394,21 +357,14 @@ function rebuildHeadingGroup(group, chain, state, rebuildChild) {
|
|
|
394
357
|
function rebuildListGroup(group, chain, state, rebuildChild) {
|
|
395
358
|
const inner = innerChain(group, chain, state);
|
|
396
359
|
const anchor = rebuildParagraph(group.node, inner);
|
|
397
|
-
assertListAnchor(anchor);
|
|
398
360
|
const children = group.children.map((child) => rebuildChild(child, inner, state));
|
|
399
361
|
const ref = state.wrapperRefs.get(group);
|
|
400
|
-
return
|
|
362
|
+
return anchor === group.node && children.every((child, index) => child === group.children[index]) ? group : {
|
|
401
363
|
node: anchor,
|
|
402
364
|
...ref !== void 0 ? { style: ref } : {},
|
|
403
365
|
children
|
|
404
366
|
};
|
|
405
367
|
}
|
|
406
|
-
function assertHeadingAnchor(paragraph) {
|
|
407
|
-
if (paragraph.headingLevel === void 0) throw new Error("factorStyles: stripping dropped a heading anchor's headingLevel");
|
|
408
|
-
}
|
|
409
|
-
function assertListAnchor(paragraph) {
|
|
410
|
-
if (paragraph.list === void 0) throw new Error("factorStyles: stripping dropped a list anchor's list membership");
|
|
411
|
-
}
|
|
412
368
|
function rebuildParagraph(paragraph, chain) {
|
|
413
369
|
const strips = paragraphStripsOf(chain, paragraph);
|
|
414
370
|
const base = strips === void 0 ? paragraph : stripParagraphKeys(paragraph, strips);
|
package/dist/flatten.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ContentDocument } from "./content-
|
|
1
|
+
import { C as ContentDocument } from "./content-BrxGwe8j.cjs";
|
|
2
2
|
import { DocumentTree } from "./package.cjs";
|
|
3
3
|
//#region src/flatten.d.ts
|
|
4
4
|
declare function flattenTree(pkg: DocumentTree): ContentDocument;
|
package/dist/flatten.d.ts
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -6,11 +6,11 @@ import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t
|
|
|
6
6
|
import { a as Margins, c as PAGE_SIZE_LETTER, d as Point, f as SLIDE_SIZE_STANDARD, i as LayoutFrameSchema, l as PageSize, n as BoxSchema, o as MarginsSchema, p as SLIDE_SIZE_WIDESCREEN, r as LayoutFrame, s as PAGE_SIZE_A4, t as Box, u as PageSizeSchema } from "./geometry-CvcjSwnA.cjs";
|
|
7
7
|
import { i as SourceResidueSchema, n as SourceFormatSchema, r as SourceResidue, t as SourceFormat } from "./source-Bas5ol6f.cjs";
|
|
8
8
|
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-D06NwxAJ.cjs";
|
|
9
|
-
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-
|
|
9
|
+
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-BrxGwe8j.cjs";
|
|
10
10
|
import { ContentCodec } from "./codec.cjs";
|
|
11
|
-
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-
|
|
11
|
+
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-C4XiF8OW.cjs";
|
|
12
12
|
import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.cjs";
|
|
13
|
-
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-
|
|
13
|
+
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-DH0p0dyl.cjs";
|
|
14
14
|
import { ConstructMarkerImbalanceError, TreeChildren, decompose } from "./decompose.cjs";
|
|
15
15
|
import { DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StylesTable, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.cjs";
|
|
16
16
|
import { DocumentTree, DocumentTreeSchema, TreeEmbeddedFont, TreeEmbeddedFontSchema } from "./package.cjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t
|
|
|
6
6
|
import { a as Margins, c as PAGE_SIZE_LETTER, d as Point, f as SLIDE_SIZE_STANDARD, i as LayoutFrameSchema, l as PageSize, n as BoxSchema, o as MarginsSchema, p as SLIDE_SIZE_WIDESCREEN, r as LayoutFrame, s as PAGE_SIZE_A4, t as Box, u as PageSizeSchema } from "./geometry-CvcjSwnA.js";
|
|
7
7
|
import { i as SourceResidueSchema, n as SourceFormatSchema, r as SourceResidue, t as SourceFormat } from "./source-Bas5ol6f.js";
|
|
8
8
|
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-D06NwxAJ.js";
|
|
9
|
-
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-
|
|
9
|
+
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-D-j5QBCq.js";
|
|
10
10
|
import { ContentCodec } from "./codec.js";
|
|
11
|
-
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-
|
|
11
|
+
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-C4XiF8OW.js";
|
|
12
12
|
import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.js";
|
|
13
|
-
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-
|
|
13
|
+
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-CHX4Z0RM.js";
|
|
14
14
|
import { ConstructMarkerImbalanceError, TreeChildren, decompose } from "./decompose.js";
|
|
15
15
|
import { DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StylesTable, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.js";
|
|
16
16
|
import { DocumentTree, DocumentTreeSchema, TreeEmbeddedFont, TreeEmbeddedFontSchema } from "./package.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as ContentEmbeddedObject, Gt as ContentSheetImage, Sn as ContentVector, W as ContentFormula, _ as ContentConstructEnd, a as ContentBlock, y as ContentConstructStart } from "./content-
|
|
2
|
-
import { a as ConstructDescriptor } from "./construct-
|
|
1
|
+
import { D as ContentEmbeddedObject, Gt as ContentSheetImage, Sn as ContentVector, W as ContentFormula, _ as ContentConstructEnd, a as ContentBlock, y as ContentConstructStart } from "./content-D-j5QBCq.js";
|
|
2
|
+
import { a as ConstructDescriptor } from "./construct-C4XiF8OW.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/package-node.d.ts
|
|
5
5
|
declare const SectionDescriptorSchema: z.ZodObject<{
|
|
@@ -141,6 +141,7 @@ declare const SlideDescriptorSchema: z.ZodObject<{
|
|
|
141
141
|
}, z.core.$strict>;
|
|
142
142
|
type SlideDescriptor = z.infer<typeof SlideDescriptorSchema>;
|
|
143
143
|
declare const SheetDescriptorSchema: z.ZodObject<{
|
|
144
|
+
name: z.ZodString;
|
|
144
145
|
source: z.ZodOptional<z.ZodObject<{
|
|
145
146
|
format: z.ZodEnum<{
|
|
146
147
|
docx: "docx";
|
|
@@ -161,7 +162,6 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
161
162
|
}>;
|
|
162
163
|
xml: z.ZodString;
|
|
163
164
|
}, z.core.$strict>>;
|
|
164
|
-
name: z.ZodString;
|
|
165
165
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
166
166
|
chart: "chart";
|
|
167
167
|
diagram: "diagram";
|
|
@@ -617,11 +617,11 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
617
617
|
endColumn: z.ZodNumber;
|
|
618
618
|
}, z.core.$strip>>;
|
|
619
619
|
type: z.ZodEnum<{
|
|
620
|
-
decimal: "decimal";
|
|
621
|
-
list: "list";
|
|
622
620
|
date: "date";
|
|
623
621
|
custom: "custom";
|
|
624
622
|
time: "time";
|
|
623
|
+
decimal: "decimal";
|
|
624
|
+
list: "list";
|
|
625
625
|
whole: "whole";
|
|
626
626
|
textLength: "textLength";
|
|
627
627
|
}>;
|
|
@@ -1093,8 +1093,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1093
1093
|
value: z.ZodObject<{
|
|
1094
1094
|
type: z.ZodEnum<{
|
|
1095
1095
|
formula: "formula";
|
|
1096
|
-
percent: "percent";
|
|
1097
1096
|
num: "num";
|
|
1097
|
+
percent: "percent";
|
|
1098
1098
|
max: "max";
|
|
1099
1099
|
min: "min";
|
|
1100
1100
|
percentile: "percentile";
|
|
@@ -1140,8 +1140,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1140
1140
|
min: z.ZodObject<{
|
|
1141
1141
|
type: z.ZodEnum<{
|
|
1142
1142
|
formula: "formula";
|
|
1143
|
-
percent: "percent";
|
|
1144
1143
|
num: "num";
|
|
1144
|
+
percent: "percent";
|
|
1145
1145
|
max: "max";
|
|
1146
1146
|
min: "min";
|
|
1147
1147
|
percentile: "percentile";
|
|
@@ -1151,8 +1151,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1151
1151
|
max: z.ZodObject<{
|
|
1152
1152
|
type: z.ZodEnum<{
|
|
1153
1153
|
formula: "formula";
|
|
1154
|
-
percent: "percent";
|
|
1155
1154
|
num: "num";
|
|
1155
|
+
percent: "percent";
|
|
1156
1156
|
max: "max";
|
|
1157
1157
|
min: "min";
|
|
1158
1158
|
percentile: "percentile";
|
|
@@ -1199,8 +1199,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1199
1199
|
thresholds: z.ZodArray<z.ZodObject<{
|
|
1200
1200
|
type: z.ZodEnum<{
|
|
1201
1201
|
formula: "formula";
|
|
1202
|
-
percent: "percent";
|
|
1203
1202
|
num: "num";
|
|
1203
|
+
percent: "percent";
|
|
1204
1204
|
max: "max";
|
|
1205
1205
|
min: "min";
|
|
1206
1206
|
percentile: "percentile";
|
|
@@ -1298,6 +1298,7 @@ declare const DrawPageDescriptorSchema: z.ZodObject<{
|
|
|
1298
1298
|
}, z.core.$strict>;
|
|
1299
1299
|
type DrawPageDescriptor = z.infer<typeof DrawPageDescriptorSchema>;
|
|
1300
1300
|
declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
1301
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1301
1302
|
source: z.ZodOptional<z.ZodObject<{
|
|
1302
1303
|
format: z.ZodEnum<{
|
|
1303
1304
|
docx: "docx";
|
|
@@ -1318,15 +1319,6 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
|
1318
1319
|
}>;
|
|
1319
1320
|
xml: z.ZodString;
|
|
1320
1321
|
}, z.core.$strict>>;
|
|
1321
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1322
|
-
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1323
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1324
|
-
pageIndex: z.ZodNumber;
|
|
1325
|
-
xPt: z.ZodNumber;
|
|
1326
|
-
yPt: z.ZodNumber;
|
|
1327
|
-
widthPt: z.ZodNumber;
|
|
1328
|
-
heightPt: z.ZodNumber;
|
|
1329
|
-
}, z.core.$strip>>>;
|
|
1330
1322
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1331
1323
|
chart: "chart";
|
|
1332
1324
|
diagram: "diagram";
|
|
@@ -1354,6 +1346,14 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
|
1354
1346
|
at: z.ZodString;
|
|
1355
1347
|
}, z.core.$strip>>;
|
|
1356
1348
|
}, z.core.$strip>>;
|
|
1349
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1350
|
+
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1351
|
+
pageIndex: z.ZodNumber;
|
|
1352
|
+
xPt: z.ZodNumber;
|
|
1353
|
+
yPt: z.ZodNumber;
|
|
1354
|
+
widthPt: z.ZodNumber;
|
|
1355
|
+
heightPt: z.ZodNumber;
|
|
1356
|
+
}, z.core.$strip>>>;
|
|
1357
1357
|
frame: z.ZodObject<{
|
|
1358
1358
|
xPt: z.ZodNumber;
|
|
1359
1359
|
yPt: z.ZodNumber;
|
|
@@ -1551,10 +1551,10 @@ declare const HeadingParagraphSchema: z.ZodObject<{
|
|
|
1551
1551
|
}, z.core.$strict>, z.ZodObject<{
|
|
1552
1552
|
kind: z.ZodLiteral<"anchor">;
|
|
1553
1553
|
anchorType: z.ZodEnum<{
|
|
1554
|
+
comment: "comment";
|
|
1554
1555
|
bookmark: "bookmark";
|
|
1555
1556
|
footnote: "footnote";
|
|
1556
1557
|
endnote: "endnote";
|
|
1557
|
-
comment: "comment";
|
|
1558
1558
|
}>;
|
|
1559
1559
|
name: z.ZodString;
|
|
1560
1560
|
definition: z.ZodOptional<z.ZodString>;
|
|
@@ -1976,10 +1976,10 @@ declare const ListParagraphSchema: z.ZodObject<{
|
|
|
1976
1976
|
}, z.core.$strict>, z.ZodObject<{
|
|
1977
1977
|
kind: z.ZodLiteral<"anchor">;
|
|
1978
1978
|
anchorType: z.ZodEnum<{
|
|
1979
|
+
comment: "comment";
|
|
1979
1980
|
bookmark: "bookmark";
|
|
1980
1981
|
footnote: "footnote";
|
|
1981
1982
|
endnote: "endnote";
|
|
1982
|
-
comment: "comment";
|
|
1983
1983
|
}>;
|
|
1984
1984
|
name: z.ZodString;
|
|
1985
1985
|
definition: z.ZodOptional<z.ZodString>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as ContentEmbeddedObject, Gt as ContentSheetImage, Sn as ContentVector, W as ContentFormula, _ as ContentConstructEnd, a as ContentBlock, y as ContentConstructStart } from "./content-
|
|
2
|
-
import { a as ConstructDescriptor } from "./construct-
|
|
1
|
+
import { D as ContentEmbeddedObject, Gt as ContentSheetImage, Sn as ContentVector, W as ContentFormula, _ as ContentConstructEnd, a as ContentBlock, y as ContentConstructStart } from "./content-BrxGwe8j.cjs";
|
|
2
|
+
import { a as ConstructDescriptor } from "./construct-C4XiF8OW.cjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/package-node.d.ts
|
|
5
5
|
declare const SectionDescriptorSchema: z.ZodObject<{
|
|
@@ -141,6 +141,7 @@ declare const SlideDescriptorSchema: z.ZodObject<{
|
|
|
141
141
|
}, z.core.$strict>;
|
|
142
142
|
type SlideDescriptor = z.infer<typeof SlideDescriptorSchema>;
|
|
143
143
|
declare const SheetDescriptorSchema: z.ZodObject<{
|
|
144
|
+
name: z.ZodString;
|
|
144
145
|
source: z.ZodOptional<z.ZodObject<{
|
|
145
146
|
format: z.ZodEnum<{
|
|
146
147
|
docx: "docx";
|
|
@@ -161,7 +162,6 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
161
162
|
}>;
|
|
162
163
|
xml: z.ZodString;
|
|
163
164
|
}, z.core.$strict>>;
|
|
164
|
-
name: z.ZodString;
|
|
165
165
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
166
166
|
chart: "chart";
|
|
167
167
|
diagram: "diagram";
|
|
@@ -617,11 +617,11 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
617
617
|
endColumn: z.ZodNumber;
|
|
618
618
|
}, z.core.$strip>>;
|
|
619
619
|
type: z.ZodEnum<{
|
|
620
|
-
decimal: "decimal";
|
|
621
|
-
list: "list";
|
|
622
620
|
date: "date";
|
|
623
621
|
custom: "custom";
|
|
624
622
|
time: "time";
|
|
623
|
+
decimal: "decimal";
|
|
624
|
+
list: "list";
|
|
625
625
|
whole: "whole";
|
|
626
626
|
textLength: "textLength";
|
|
627
627
|
}>;
|
|
@@ -1093,8 +1093,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1093
1093
|
value: z.ZodObject<{
|
|
1094
1094
|
type: z.ZodEnum<{
|
|
1095
1095
|
formula: "formula";
|
|
1096
|
-
percent: "percent";
|
|
1097
1096
|
num: "num";
|
|
1097
|
+
percent: "percent";
|
|
1098
1098
|
max: "max";
|
|
1099
1099
|
min: "min";
|
|
1100
1100
|
percentile: "percentile";
|
|
@@ -1140,8 +1140,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1140
1140
|
min: z.ZodObject<{
|
|
1141
1141
|
type: z.ZodEnum<{
|
|
1142
1142
|
formula: "formula";
|
|
1143
|
-
percent: "percent";
|
|
1144
1143
|
num: "num";
|
|
1144
|
+
percent: "percent";
|
|
1145
1145
|
max: "max";
|
|
1146
1146
|
min: "min";
|
|
1147
1147
|
percentile: "percentile";
|
|
@@ -1151,8 +1151,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1151
1151
|
max: z.ZodObject<{
|
|
1152
1152
|
type: z.ZodEnum<{
|
|
1153
1153
|
formula: "formula";
|
|
1154
|
-
percent: "percent";
|
|
1155
1154
|
num: "num";
|
|
1155
|
+
percent: "percent";
|
|
1156
1156
|
max: "max";
|
|
1157
1157
|
min: "min";
|
|
1158
1158
|
percentile: "percentile";
|
|
@@ -1199,8 +1199,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
1199
1199
|
thresholds: z.ZodArray<z.ZodObject<{
|
|
1200
1200
|
type: z.ZodEnum<{
|
|
1201
1201
|
formula: "formula";
|
|
1202
|
-
percent: "percent";
|
|
1203
1202
|
num: "num";
|
|
1203
|
+
percent: "percent";
|
|
1204
1204
|
max: "max";
|
|
1205
1205
|
min: "min";
|
|
1206
1206
|
percentile: "percentile";
|
|
@@ -1298,6 +1298,7 @@ declare const DrawPageDescriptorSchema: z.ZodObject<{
|
|
|
1298
1298
|
}, z.core.$strict>;
|
|
1299
1299
|
type DrawPageDescriptor = z.infer<typeof DrawPageDescriptorSchema>;
|
|
1300
1300
|
declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
1301
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1301
1302
|
source: z.ZodOptional<z.ZodObject<{
|
|
1302
1303
|
format: z.ZodEnum<{
|
|
1303
1304
|
docx: "docx";
|
|
@@ -1318,15 +1319,6 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
|
1318
1319
|
}>;
|
|
1319
1320
|
xml: z.ZodString;
|
|
1320
1321
|
}, z.core.$strict>>;
|
|
1321
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1322
|
-
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1323
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1324
|
-
pageIndex: z.ZodNumber;
|
|
1325
|
-
xPt: z.ZodNumber;
|
|
1326
|
-
yPt: z.ZodNumber;
|
|
1327
|
-
widthPt: z.ZodNumber;
|
|
1328
|
-
heightPt: z.ZodNumber;
|
|
1329
|
-
}, z.core.$strip>>>;
|
|
1330
1322
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
1331
1323
|
chart: "chart";
|
|
1332
1324
|
diagram: "diagram";
|
|
@@ -1354,6 +1346,14 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
|
|
|
1354
1346
|
at: z.ZodString;
|
|
1355
1347
|
}, z.core.$strip>>;
|
|
1356
1348
|
}, z.core.$strip>>;
|
|
1349
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1350
|
+
frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1351
|
+
pageIndex: z.ZodNumber;
|
|
1352
|
+
xPt: z.ZodNumber;
|
|
1353
|
+
yPt: z.ZodNumber;
|
|
1354
|
+
widthPt: z.ZodNumber;
|
|
1355
|
+
heightPt: z.ZodNumber;
|
|
1356
|
+
}, z.core.$strip>>>;
|
|
1357
1357
|
frame: z.ZodObject<{
|
|
1358
1358
|
xPt: z.ZodNumber;
|
|
1359
1359
|
yPt: z.ZodNumber;
|
|
@@ -1551,10 +1551,10 @@ declare const HeadingParagraphSchema: z.ZodObject<{
|
|
|
1551
1551
|
}, z.core.$strict>, z.ZodObject<{
|
|
1552
1552
|
kind: z.ZodLiteral<"anchor">;
|
|
1553
1553
|
anchorType: z.ZodEnum<{
|
|
1554
|
+
comment: "comment";
|
|
1554
1555
|
bookmark: "bookmark";
|
|
1555
1556
|
footnote: "footnote";
|
|
1556
1557
|
endnote: "endnote";
|
|
1557
|
-
comment: "comment";
|
|
1558
1558
|
}>;
|
|
1559
1559
|
name: z.ZodString;
|
|
1560
1560
|
definition: z.ZodOptional<z.ZodString>;
|
|
@@ -1976,10 +1976,10 @@ declare const ListParagraphSchema: z.ZodObject<{
|
|
|
1976
1976
|
}, z.core.$strict>, z.ZodObject<{
|
|
1977
1977
|
kind: z.ZodLiteral<"anchor">;
|
|
1978
1978
|
anchorType: z.ZodEnum<{
|
|
1979
|
+
comment: "comment";
|
|
1979
1980
|
bookmark: "bookmark";
|
|
1980
1981
|
footnote: "footnote";
|
|
1981
1982
|
endnote: "endnote";
|
|
1982
|
-
comment: "comment";
|
|
1983
1983
|
}>;
|
|
1984
1984
|
name: z.ZodString;
|
|
1985
1985
|
definition: z.ZodOptional<z.ZodString>;
|
package/dist/package-node.cjs
CHANGED
|
@@ -20,7 +20,6 @@ function isRecord(value) {
|
|
|
20
20
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
21
21
|
}
|
|
22
22
|
function isGroupWrapper(value, isChild) {
|
|
23
|
-
if (!isRecord(value.node)) return false;
|
|
24
23
|
if (value.style !== void 0 && typeof value.style !== "string") return false;
|
|
25
24
|
if (!Object.keys(value).every((key) => key === "node" || key === "style" || key === "children")) return false;
|
|
26
25
|
return Array.isArray(value.children) && value.children.every(isChild);
|
package/dist/package-node.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-
|
|
1
|
+
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-DH0p0dyl.cjs";
|
|
2
2
|
export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, TreeBlockLeaf, TreeBlockLeafSchema, TreeGroup, TreeGroupSchema, TreeLeaf, TreeLeafSchema, TreeNode, TreeNodeSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode };
|
package/dist/package-node.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-
|
|
1
|
+
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-CHX4Z0RM.js";
|
|
2
2
|
export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, TreeBlockLeaf, TreeBlockLeafSchema, TreeGroup, TreeGroupSchema, TreeLeaf, TreeLeafSchema, TreeNode, TreeNodeSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode };
|