document-content-model 7.11.2 → 7.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/codec.d.cts +1 -1
  2. package/dist/codec.d.ts +1 -1
  3. package/dist/{construct-C4XiF8OW.d.cts → construct-C9cYkjnd.d.cts} +6 -6
  4. package/dist/{construct-C4XiF8OW.d.ts → construct-C9cYkjnd.d.ts} +6 -6
  5. package/dist/construct.d.cts +1 -1
  6. package/dist/construct.d.ts +1 -1
  7. package/dist/{content-D-j5QBCq.d.ts → content-GHj_31uQ.d.ts} +52 -52
  8. package/dist/{content-BrxGwe8j.d.cts → content-zNNPbwYY.d.cts} +52 -52
  9. package/dist/content.d.cts +1 -1
  10. package/dist/content.d.ts +1 -1
  11. package/dist/decompose.d.cts +2 -2
  12. package/dist/decompose.d.ts +2 -2
  13. package/dist/definitions.d.cts +4 -4
  14. package/dist/definitions.d.ts +4 -4
  15. package/dist/factor-styles.cjs +12 -54
  16. package/dist/factor-styles.d.cts +1 -1
  17. package/dist/factor-styles.d.ts +1 -1
  18. package/dist/factor-styles.js +12 -54
  19. package/dist/flatten.d.cts +1 -1
  20. package/dist/flatten.d.ts +1 -1
  21. package/dist/index.d.cts +4 -4
  22. package/dist/index.d.ts +4 -4
  23. package/dist/{package-node-CHX4Z0RM.d.ts → package-node-CIZQ2_C1.d.ts} +24 -24
  24. package/dist/{package-node-DH0p0dyl.d.cts → package-node-DaPwHzsg.d.cts} +24 -24
  25. package/dist/package-node.d.cts +1 -1
  26. package/dist/package-node.d.ts +1 -1
  27. package/dist/package.d.cts +6 -6
  28. package/dist/package.d.ts +6 -6
  29. package/dist/schema-io.cjs +2 -2
  30. package/dist/schema-io.d.cts +1 -1
  31. package/dist/schema-io.d.ts +1 -1
  32. package/dist/schema-io.js +2 -2
  33. package/dist/{style-D06NwxAJ.d.cts → style-BGMcYrD2.d.cts} +1 -1
  34. package/dist/{style-D06NwxAJ.d.ts → style-BGMcYrD2.d.ts} +1 -1
  35. package/dist/style.d.cts +1 -1
  36. package/dist/style.d.ts +1 -1
  37. package/dist/text-layout.d.cts +1 -1
  38. package/dist/text-layout.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/schemas/content-document.schema.json +16 -16
  41. package/schemas/document-tree.schema.json +3 -3
@@ -1,11 +1,11 @@
1
- import { St as ContentRun, mt as ContentParagraph } from "./content-D-j5QBCq.js";
1
+ import { St as ContentRun, mt as ContentParagraph } from "./content-GHj_31uQ.js";
2
2
  import { z } from "zod";
3
3
  //#region src/definitions.d.ts
4
4
  declare const StyleParagraphPropertiesSchema: z.ZodObject<{
5
5
  alignment: z.ZodOptional<z.ZodEnum<{
6
6
  left: "left";
7
- center: "center";
8
7
  right: "right";
8
+ center: "center";
9
9
  justify: "justify";
10
10
  }>>;
11
11
  list: z.ZodOptional<z.ZodObject<{
@@ -49,8 +49,8 @@ declare const StyleEntrySchema: z.ZodObject<{
49
49
  paragraph: z.ZodOptional<z.ZodObject<{
50
50
  alignment: z.ZodOptional<z.ZodEnum<{
51
51
  left: "left";
52
- center: "center";
53
52
  right: "right";
53
+ center: "center";
54
54
  justify: "justify";
55
55
  }>>;
56
56
  list: z.ZodOptional<z.ZodObject<{
@@ -94,8 +94,8 @@ declare const StylesTableSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
94
94
  paragraph: z.ZodOptional<z.ZodObject<{
95
95
  alignment: z.ZodOptional<z.ZodEnum<{
96
96
  left: "left";
97
- center: "center";
98
97
  right: "right";
98
+ center: "center";
99
99
  justify: "justify";
100
100
  }>>;
101
101
  list: z.ZodOptional<z.ZodObject<{
@@ -25,12 +25,6 @@ const RUN_STYLE_KEYS = [
25
25
  function isAnchorGroupWrapper(wrapper) {
26
26
  return "kind" in wrapper.node && wrapper.node.kind === "paragraph";
27
27
  }
28
- function isHeadingGroup(group) {
29
- return group.node.headingLevel !== void 0;
30
- }
31
- function isConstructGroup(child) {
32
- return "node" in child && "children" in child && child.node.kind !== "paragraph";
33
- }
34
28
  function assembleTree(content, pages) {
35
29
  const envelope = {
36
30
  metadata: content.metadata,
@@ -294,7 +288,7 @@ function rebuildDrawPageGroup(group, chain, state) {
294
288
  }
295
289
  function rebuildSectionGroup(group, chain, state) {
296
290
  const inner = innerChain(group, chain, state);
297
- const children = group.children.map((child) => rebuildSectionChild(child, inner, state));
291
+ const children = group.children.map((child) => rebuildFlowChild(child, inner, state));
298
292
  const ref = state.wrapperRefs.get(group);
299
293
  return children.every((child, index) => child === group.children[index]) ? group : {
300
294
  node: group.node,
@@ -302,41 +296,27 @@ function rebuildSectionGroup(group, chain, state) {
302
296
  children
303
297
  };
304
298
  }
305
- function rebuildSectionChild(child, chain, state) {
306
- if (isConstructGroup(child)) return rebuildSectionConstructGroup(child, chain, state);
307
- if ("node" in child && "children" in child) return isHeadingGroup(child) ? rebuildHeadingGroup(child, chain, state, rebuildSectionChild) : rebuildListGroup(child, chain, state, rebuildListChild);
308
- if (child.kind === "paragraph") return rebuildParagraph(child, chain);
309
- return child;
310
- }
311
- function rebuildListChild(child, chain, state) {
312
- if (isConstructGroup(child)) return rebuildShapeConstructGroup(child, chain, state);
313
- if ("node" in child && "children" in child) return rebuildListGroup(child, chain, state, rebuildListChild);
299
+ function rebuildFlowChild(child, chain, state) {
300
+ if ("node" in child && "children" in child) return rebuildWrapper(child, chain, state);
314
301
  if (child.kind === "paragraph") return rebuildParagraph(child, chain);
315
302
  return child;
316
303
  }
317
- function rebuildShapeGroup(group, chain, state) {
304
+ function rebuildWrapper(group, chain, state) {
318
305
  const inner = innerChain(group, chain, state);
319
- const children = group.children.map((child) => rebuildListChild(child, inner, state));
306
+ const anchor = isAnchorGroupWrapper(group) ? rebuildParagraph(group.node, inner) : group.node;
307
+ const children = group.children.map((child) => rebuildFlowChild(child, inner, state));
320
308
  const ref = state.wrapperRefs.get(group);
321
- return children.every((child, index) => child === group.children[index]) ? group : {
322
- node: group.node,
323
- ...ref !== void 0 ? { style: ref } : {},
324
- children
325
- };
326
- }
327
- function rebuildSectionConstructGroup(group, chain, state) {
328
- const inner = innerChain(group, chain, state);
329
- const children = group.children.map((child) => rebuildSectionChild(child, inner, state));
330
- const ref = state.wrapperRefs.get(group);
331
- return children.every((child, index) => child === group.children[index]) ? group : {
332
- node: group.node,
309
+ if (anchor === group.node && children.every((child, index) => child === group.children[index])) return group;
310
+ return {
311
+ ...group,
312
+ node: anchor,
333
313
  ...ref !== void 0 ? { style: ref } : {},
334
314
  children
335
315
  };
336
316
  }
337
- function rebuildShapeConstructGroup(group, chain, state) {
317
+ function rebuildShapeGroup(group, chain, state) {
338
318
  const inner = innerChain(group, chain, state);
339
- const children = group.children.map((child) => rebuildListChild(child, inner, state));
319
+ const children = group.children.map((child) => rebuildFlowChild(child, inner, state));
340
320
  const ref = state.wrapperRefs.get(group);
341
321
  return children.every((child, index) => child === group.children[index]) ? group : {
342
322
  node: group.node,
@@ -344,28 +324,6 @@ function rebuildShapeConstructGroup(group, chain, state) {
344
324
  children
345
325
  };
346
326
  }
347
- function rebuildHeadingGroup(group, chain, state, rebuildChild) {
348
- const inner = innerChain(group, chain, state);
349
- const anchor = rebuildParagraph(group.node, inner);
350
- const children = group.children.map((child) => rebuildChild(child, inner, state));
351
- const ref = state.wrapperRefs.get(group);
352
- return anchor === group.node && children.every((child, index) => child === group.children[index]) ? group : {
353
- node: anchor,
354
- ...ref !== void 0 ? { style: ref } : {},
355
- children
356
- };
357
- }
358
- function rebuildListGroup(group, chain, state, rebuildChild) {
359
- const inner = innerChain(group, chain, state);
360
- const anchor = rebuildParagraph(group.node, inner);
361
- const children = group.children.map((child) => rebuildChild(child, inner, state));
362
- const ref = state.wrapperRefs.get(group);
363
- return anchor === group.node && children.every((child, index) => child === group.children[index]) ? group : {
364
- node: anchor,
365
- ...ref !== void 0 ? { style: ref } : {},
366
- children
367
- };
368
- }
369
327
  function rebuildParagraph(paragraph, chain) {
370
328
  const strips = paragraphStripsOf(chain, paragraph);
371
329
  const base = strips === void 0 ? paragraph : stripParagraphKeys(paragraph, strips);
@@ -1,5 +1,5 @@
1
1
  import { l as PageSize } from "./geometry-CvcjSwnA.cjs";
2
- import { C as ContentDocument } from "./content-BrxGwe8j.cjs";
2
+ import { C as ContentDocument } from "./content-zNNPbwYY.cjs";
3
3
  import { DocumentTree } from "./package.cjs";
4
4
  //#region src/factor-styles.d.ts
5
5
  declare function assembleTree(content: ContentDocument, pages?: readonly PageSize[]): DocumentTree;
@@ -1,5 +1,5 @@
1
1
  import { l as PageSize } from "./geometry-CvcjSwnA.js";
2
- import { C as ContentDocument } from "./content-D-j5QBCq.js";
2
+ import { C as ContentDocument } from "./content-GHj_31uQ.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;
@@ -24,12 +24,6 @@ const RUN_STYLE_KEYS = [
24
24
  function isAnchorGroupWrapper(wrapper) {
25
25
  return "kind" in wrapper.node && wrapper.node.kind === "paragraph";
26
26
  }
27
- function isHeadingGroup(group) {
28
- return group.node.headingLevel !== void 0;
29
- }
30
- function isConstructGroup(child) {
31
- return "node" in child && "children" in child && child.node.kind !== "paragraph";
32
- }
33
27
  function assembleTree(content, pages) {
34
28
  const envelope = {
35
29
  metadata: content.metadata,
@@ -293,7 +287,7 @@ function rebuildDrawPageGroup(group, chain, state) {
293
287
  }
294
288
  function rebuildSectionGroup(group, chain, state) {
295
289
  const inner = innerChain(group, chain, state);
296
- const children = group.children.map((child) => rebuildSectionChild(child, inner, state));
290
+ const children = group.children.map((child) => rebuildFlowChild(child, inner, state));
297
291
  const ref = state.wrapperRefs.get(group);
298
292
  return children.every((child, index) => child === group.children[index]) ? group : {
299
293
  node: group.node,
@@ -301,41 +295,27 @@ function rebuildSectionGroup(group, chain, state) {
301
295
  children
302
296
  };
303
297
  }
304
- function rebuildSectionChild(child, chain, state) {
305
- if (isConstructGroup(child)) return rebuildSectionConstructGroup(child, chain, state);
306
- if ("node" in child && "children" in child) return isHeadingGroup(child) ? rebuildHeadingGroup(child, chain, state, rebuildSectionChild) : rebuildListGroup(child, chain, state, rebuildListChild);
307
- if (child.kind === "paragraph") return rebuildParagraph(child, chain);
308
- return child;
309
- }
310
- function rebuildListChild(child, chain, state) {
311
- if (isConstructGroup(child)) return rebuildShapeConstructGroup(child, chain, state);
312
- if ("node" in child && "children" in child) return rebuildListGroup(child, chain, state, rebuildListChild);
298
+ function rebuildFlowChild(child, chain, state) {
299
+ if ("node" in child && "children" in child) return rebuildWrapper(child, chain, state);
313
300
  if (child.kind === "paragraph") return rebuildParagraph(child, chain);
314
301
  return child;
315
302
  }
316
- function rebuildShapeGroup(group, chain, state) {
303
+ function rebuildWrapper(group, chain, state) {
317
304
  const inner = innerChain(group, chain, state);
318
- const children = group.children.map((child) => rebuildListChild(child, inner, state));
305
+ const anchor = isAnchorGroupWrapper(group) ? rebuildParagraph(group.node, inner) : group.node;
306
+ const children = group.children.map((child) => rebuildFlowChild(child, inner, state));
319
307
  const ref = state.wrapperRefs.get(group);
320
- return children.every((child, index) => child === group.children[index]) ? group : {
321
- node: group.node,
322
- ...ref !== void 0 ? { style: ref } : {},
323
- children
324
- };
325
- }
326
- function rebuildSectionConstructGroup(group, chain, state) {
327
- const inner = innerChain(group, chain, state);
328
- const children = group.children.map((child) => rebuildSectionChild(child, inner, state));
329
- const ref = state.wrapperRefs.get(group);
330
- return children.every((child, index) => child === group.children[index]) ? group : {
331
- node: group.node,
308
+ if (anchor === group.node && children.every((child, index) => child === group.children[index])) return group;
309
+ return {
310
+ ...group,
311
+ node: anchor,
332
312
  ...ref !== void 0 ? { style: ref } : {},
333
313
  children
334
314
  };
335
315
  }
336
- function rebuildShapeConstructGroup(group, chain, state) {
316
+ function rebuildShapeGroup(group, chain, state) {
337
317
  const inner = innerChain(group, chain, state);
338
- const children = group.children.map((child) => rebuildListChild(child, inner, state));
318
+ const children = group.children.map((child) => rebuildFlowChild(child, inner, state));
339
319
  const ref = state.wrapperRefs.get(group);
340
320
  return children.every((child, index) => child === group.children[index]) ? group : {
341
321
  node: group.node,
@@ -343,28 +323,6 @@ function rebuildShapeConstructGroup(group, chain, state) {
343
323
  children
344
324
  };
345
325
  }
346
- function rebuildHeadingGroup(group, chain, state, rebuildChild) {
347
- const inner = innerChain(group, chain, state);
348
- const anchor = rebuildParagraph(group.node, inner);
349
- const children = group.children.map((child) => rebuildChild(child, inner, state));
350
- const ref = state.wrapperRefs.get(group);
351
- return anchor === group.node && children.every((child, index) => child === group.children[index]) ? group : {
352
- node: anchor,
353
- ...ref !== void 0 ? { style: ref } : {},
354
- children
355
- };
356
- }
357
- function rebuildListGroup(group, chain, state, rebuildChild) {
358
- const inner = innerChain(group, chain, state);
359
- const anchor = rebuildParagraph(group.node, inner);
360
- const children = group.children.map((child) => rebuildChild(child, inner, state));
361
- const ref = state.wrapperRefs.get(group);
362
- return anchor === group.node && children.every((child, index) => child === group.children[index]) ? group : {
363
- node: anchor,
364
- ...ref !== void 0 ? { style: ref } : {},
365
- children
366
- };
367
- }
368
326
  function rebuildParagraph(paragraph, chain) {
369
327
  const strips = paragraphStripsOf(chain, paragraph);
370
328
  const base = strips === void 0 ? paragraph : stripParagraphKeys(paragraph, strips);
@@ -1,4 +1,4 @@
1
- import { C as ContentDocument } from "./content-BrxGwe8j.cjs";
1
+ import { C as ContentDocument } from "./content-zNNPbwYY.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
@@ -1,4 +1,4 @@
1
- import { C as ContentDocument } from "./content-D-j5QBCq.js";
1
+ import { C as ContentDocument } from "./content-GHj_31uQ.js";
2
2
  import { DocumentTree } from "./package.js";
3
3
  //#region src/flatten.d.ts
4
4
  declare function flattenTree(pkg: DocumentTree): ContentDocument;
package/dist/index.d.cts CHANGED
@@ -5,12 +5,12 @@ import { A as MathSumSchema, B as MathUnparsedSchema, C as MathProd, D as MathQt
5
5
  import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-AELCDH_b.cjs";
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
- 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-BrxGwe8j.cjs";
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-BGMcYrD2.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-zNNPbwYY.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-C4XiF8OW.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-C9cYkjnd.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-DH0p0dyl.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-DaPwHzsg.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
@@ -5,12 +5,12 @@ import { A as MathSumSchema, B as MathUnparsedSchema, C as MathProd, D as MathQt
5
5
  import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-AELCDH_b.js";
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
- 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-D-j5QBCq.js";
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-BGMcYrD2.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-GHj_31uQ.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-C4XiF8OW.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-C9cYkjnd.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-CHX4Z0RM.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-CIZQ2_C1.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-D-j5QBCq.js";
2
- import { a as ConstructDescriptor } from "./construct-C4XiF8OW.js";
1
+ import { D as ContentEmbeddedObject, Gt as ContentSheetImage, Sn as ContentVector, W as ContentFormula, _ as ContentConstructEnd, a as ContentBlock, y as ContentConstructStart } from "./content-GHj_31uQ.js";
2
+ import { a as ConstructDescriptor } from "./construct-C9cYkjnd.js";
3
3
  import { z } from "zod";
4
4
  //#region src/package-node.d.ts
5
5
  declare const SectionDescriptorSchema: z.ZodObject<{
@@ -141,7 +141,6 @@ 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;
145
144
  source: z.ZodOptional<z.ZodObject<{
146
145
  format: z.ZodEnum<{
147
146
  docx: "docx";
@@ -162,6 +161,7 @@ declare const SheetDescriptorSchema: z.ZodObject<{
162
161
  }>;
163
162
  xml: z.ZodString;
164
163
  }, z.core.$strict>>;
164
+ name: z.ZodString;
165
165
  origin: z.ZodOptional<z.ZodEnum<{
166
166
  chart: "chart";
167
167
  diagram: "diagram";
@@ -552,8 +552,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
552
552
  }, z.core.$strip>>;
553
553
  alignment: z.ZodOptional<z.ZodEnum<{
554
554
  left: "left";
555
- center: "center";
556
555
  right: "right";
556
+ center: "center";
557
557
  justify: "justify";
558
558
  }>>;
559
559
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -619,9 +619,9 @@ declare const SheetDescriptorSchema: z.ZodObject<{
619
619
  type: z.ZodEnum<{
620
620
  date: "date";
621
621
  custom: "custom";
622
- time: "time";
623
622
  decimal: "decimal";
624
623
  list: "list";
624
+ time: "time";
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
- num: "num";
1097
1096
  percent: "percent";
1097
+ num: "num";
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
- num: "num";
1144
1143
  percent: "percent";
1144
+ num: "num";
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
- num: "num";
1155
1154
  percent: "percent";
1155
+ num: "num";
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
- num: "num";
1203
1202
  percent: "percent";
1203
+ num: "num";
1204
1204
  max: "max";
1205
1205
  min: "min";
1206
1206
  percentile: "percentile";
@@ -1298,7 +1298,6 @@ 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>;
1302
1301
  source: z.ZodOptional<z.ZodObject<{
1303
1302
  format: z.ZodEnum<{
1304
1303
  docx: "docx";
@@ -1319,6 +1318,15 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
1319
1318
  }>;
1320
1319
  xml: z.ZodString;
1321
1320
  }, 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>>>;
1322
1330
  origin: z.ZodOptional<z.ZodEnum<{
1323
1331
  chart: "chart";
1324
1332
  diagram: "diagram";
@@ -1346,14 +1354,6 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
1346
1354
  at: z.ZodString;
1347
1355
  }, z.core.$strip>>;
1348
1356
  }, 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;
@@ -1482,12 +1482,12 @@ declare const HeadingParagraphSchema: z.ZodObject<{
1482
1482
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1483
1483
  kind: z.ZodLiteral<"contentControl">;
1484
1484
  controlType: z.ZodEnum<{
1485
- date: "date";
1486
1485
  richText: "richText";
1487
1486
  plainText: "plainText";
1488
1487
  checkbox: "checkbox";
1489
1488
  dropDown: "dropDown";
1490
1489
  comboBox: "comboBox";
1490
+ date: "date";
1491
1491
  picture: "picture";
1492
1492
  repeatingSection: "repeatingSection";
1493
1493
  button: "button";
@@ -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";
1555
1554
  bookmark: "bookmark";
1556
1555
  footnote: "footnote";
1557
1556
  endnote: "endnote";
1557
+ comment: "comment";
1558
1558
  }>;
1559
1559
  name: z.ZodString;
1560
1560
  definition: z.ZodOptional<z.ZodString>;
@@ -1677,8 +1677,8 @@ declare const HeadingParagraphSchema: z.ZodObject<{
1677
1677
  preformatted: z.ZodOptional<z.ZodBoolean>;
1678
1678
  alignment: z.ZodOptional<z.ZodEnum<{
1679
1679
  left: "left";
1680
- center: "center";
1681
1680
  right: "right";
1681
+ center: "center";
1682
1682
  justify: "justify";
1683
1683
  }>>;
1684
1684
  list: z.ZodOptional<z.ZodObject<{
@@ -1907,12 +1907,12 @@ declare const ListParagraphSchema: z.ZodObject<{
1907
1907
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1908
1908
  kind: z.ZodLiteral<"contentControl">;
1909
1909
  controlType: z.ZodEnum<{
1910
- date: "date";
1911
1910
  richText: "richText";
1912
1911
  plainText: "plainText";
1913
1912
  checkbox: "checkbox";
1914
1913
  dropDown: "dropDown";
1915
1914
  comboBox: "comboBox";
1915
+ date: "date";
1916
1916
  picture: "picture";
1917
1917
  repeatingSection: "repeatingSection";
1918
1918
  button: "button";
@@ -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";
1980
1979
  bookmark: "bookmark";
1981
1980
  footnote: "footnote";
1982
1981
  endnote: "endnote";
1982
+ comment: "comment";
1983
1983
  }>;
1984
1984
  name: z.ZodString;
1985
1985
  definition: z.ZodOptional<z.ZodString>;
@@ -2103,8 +2103,8 @@ declare const ListParagraphSchema: z.ZodObject<{
2103
2103
  headingLevel: z.ZodOptional<z.ZodNumber>;
2104
2104
  alignment: z.ZodOptional<z.ZodEnum<{
2105
2105
  left: "left";
2106
- center: "center";
2107
2106
  right: "right";
2107
+ center: "center";
2108
2108
  justify: "justify";
2109
2109
  }>>;
2110
2110
  spacingBeforePt: z.ZodOptional<z.ZodNumber>;