document-model.js 4.1.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- import { $ as ContentSheetRow, A as ContentPathSegment, B as ContentSheetCellComment, C as ContentListMembershipSchema, Ct as isContentBlock, D as ContentParagraphSchema, E as ContentParagraph, F as ContentSectionSchema, G as ContentSheetImage, H as ContentSheetCellSchema, I as ContentShape, J as ContentSheetPrintRangeSchema, K as ContentSheetImageSchema, L as ContentShapeSchema, M as ContentRun, N as ContentRunSchema, O as ContentPathPoint, P as ContentSection, Q as ContentSheetRepeatRangeSchema, R as ContentSheet, S as ContentListMembership, St as contentDocumentSharedFields, T as ContentPageBreakSchema, U as ContentSheetColumn, V as ContentSheetCellCommentSchema, W as ContentSheetColumnSchema, X as ContentSheetPrintSettingsSchema, Y as ContentSheetPrintSettings, Z as ContentSheetRepeatRange, _ as ContentEmbeddedObjectSchema, _t as ContentVectorSchema, a as ContentCellBorders, at as ContentStrokeSchema, b as ContentImageBlock, bt as FusedNode, c as ContentCellValueSchema, ct as ContentSubpath, d as ContentDrawPage, dt as ContentTableCell, et as ContentSheetRowSchema, f as ContentDrawPageSchema, ft as ContentTableCellSchema, g as ContentEmbeddedObjectKind, gt as ContentVector, h as ContentEmbeddedObjectBlockSchema, ht as ContentTableSchema, i as ContentBorderSchema, it as ContentStroke, j as ContentPathSegmentSchema, k as ContentPathPointSchema, l as ContentDocument, lt as ContentSubpathSchema, m as ContentEmbeddedObjectBlock, mt as ContentTableRowSchema, n as ContentBlockSchema, nt as ContentSlide, o as ContentCellBordersSchema, ot as ContentStrokeStyle, p as ContentEmbeddedObject, pt as ContentTableRow, q as ContentSheetPrintRange, r as ContentBorder, rt as ContentSlideSchema, s as ContentCellValue, st as ContentStrokeStyleSchema, t as ContentBlock, tt as ContentSheetSchema, u as ContentDocumentSchema, ut as ContentTable, v as ContentFormula, vt as DecimalString, w as ContentPageBreak, x as ContentImageBlockSchema, xt as clampHeadingLevel, y as ContentFormulaSchema, yt as DecimalStringSchema, z as ContentSheetCell } from "./content-BN0PWqpt.cjs";
2
- export { ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, clampHeadingLevel, contentDocumentSharedFields, isContentBlock };
1
+ import { $ as ContentSheetPrintRangeSchema, A as ContentPageBreakSchema, At as isContentConstructEnd, B as ContentSectionSchema, C as ContentFormula, Ct as DecimalString, D as ContentListMembership, Dt as contentDocumentSharedFields, E as ContentImageBlockSchema, Et as clampHeadingLevel, F as ContentPathSegment, G as ContentSheetCellComment, H as ContentShapeSchema, I as ContentPathSegmentSchema, J as ContentSheetColumn, K as ContentSheetCellCommentSchema, L as ContentRun, M as ContentParagraphSchema, N as ContentPathPoint, O as ContentListMembershipSchema, Ot as findConstructMarkerImbalance, P as ContentPathPointSchema, Q as ContentSheetPrintRange, R as ContentRunSchema, S as ContentEmbeddedObjectSchema, St as ContentVectorSchema, T as ContentImageBlock, Tt as FusedNode, U as ContentSheet, V as ContentShape, W as ContentSheetCell, X as ContentSheetImage, Y as ContentSheetColumnSchema, Z as ContentSheetImageSchema, _ as ContentDrawPageSchema, _t as ContentTableCellSchema, a as ContentBorderSchema, at as ContentSheetRowSchema, b as ContentEmbeddedObjectBlockSchema, bt as ContentTableSchema, c as ContentCellValue, ct as ContentSlideSchema, d as ContentConstructEndSchema, dt as ContentStrokeStyle, et as ContentSheetPrintSettings, f as ContentConstructStart, ft as ContentStrokeStyleSchema, g as ContentDrawPage, gt as ContentTableCell, h as ContentDocumentSchema, ht as ContentTable, i as ContentBorder, it as ContentSheetRow, j as ContentParagraph, jt as isContentConstructStart, k as ContentPageBreak, kt as isContentBlock, l as ContentCellValueSchema, lt as ContentStroke, m as ContentDocument, mt as ContentSubpathSchema, n as ContentBlock, nt as ContentSheetRepeatRange, o as ContentCellBorders, ot as ContentSheetSchema, p as ContentConstructStartSchema, pt as ContentSubpath, q as ContentSheetCellSchema, r as ContentBlockSchema, rt as ContentSheetRepeatRangeSchema, s as ContentCellBordersSchema, st as ContentSlide, t as ConstructMarkerImbalance, tt as ContentSheetPrintSettingsSchema, u as ContentConstructEnd, ut as ContentStrokeSchema, v as ContentEmbeddedObject, vt as ContentTableRow, w as ContentFormulaSchema, wt as DecimalStringSchema, x as ContentEmbeddedObjectKind, xt as ContentVector, y as ContentEmbeddedObjectBlock, yt as ContentTableRowSchema, z as ContentSection } from "./content-BmqzegMG.cjs";
2
+ export { ConstructMarkerImbalance, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, isContentBlock, isContentConstructEnd, isContentConstructStart };
package/dist/content.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as ContentSheetRow, A as ContentPathSegment, B as ContentSheetCellComment, C as ContentListMembershipSchema, Ct as isContentBlock, D as ContentParagraphSchema, E as ContentParagraph, F as ContentSectionSchema, G as ContentSheetImage, H as ContentSheetCellSchema, I as ContentShape, J as ContentSheetPrintRangeSchema, K as ContentSheetImageSchema, L as ContentShapeSchema, M as ContentRun, N as ContentRunSchema, O as ContentPathPoint, P as ContentSection, Q as ContentSheetRepeatRangeSchema, R as ContentSheet, S as ContentListMembership, St as contentDocumentSharedFields, T as ContentPageBreakSchema, U as ContentSheetColumn, V as ContentSheetCellCommentSchema, W as ContentSheetColumnSchema, X as ContentSheetPrintSettingsSchema, Y as ContentSheetPrintSettings, Z as ContentSheetRepeatRange, _ as ContentEmbeddedObjectSchema, _t as ContentVectorSchema, a as ContentCellBorders, at as ContentStrokeSchema, b as ContentImageBlock, bt as FusedNode, c as ContentCellValueSchema, ct as ContentSubpath, d as ContentDrawPage, dt as ContentTableCell, et as ContentSheetRowSchema, f as ContentDrawPageSchema, ft as ContentTableCellSchema, g as ContentEmbeddedObjectKind, gt as ContentVector, h as ContentEmbeddedObjectBlockSchema, ht as ContentTableSchema, i as ContentBorderSchema, it as ContentStroke, j as ContentPathSegmentSchema, k as ContentPathPointSchema, l as ContentDocument, lt as ContentSubpathSchema, m as ContentEmbeddedObjectBlock, mt as ContentTableRowSchema, n as ContentBlockSchema, nt as ContentSlide, o as ContentCellBordersSchema, ot as ContentStrokeStyle, p as ContentEmbeddedObject, pt as ContentTableRow, q as ContentSheetPrintRange, r as ContentBorder, rt as ContentSlideSchema, s as ContentCellValue, st as ContentStrokeStyleSchema, t as ContentBlock, tt as ContentSheetSchema, u as ContentDocumentSchema, ut as ContentTable, v as ContentFormula, vt as DecimalString, w as ContentPageBreak, x as ContentImageBlockSchema, xt as clampHeadingLevel, y as ContentFormulaSchema, yt as DecimalStringSchema, z as ContentSheetCell } from "./content-CiZf6Fqn.js";
2
- export { ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, clampHeadingLevel, contentDocumentSharedFields, isContentBlock };
1
+ import { $ as ContentSheetPrintRangeSchema, A as ContentPageBreakSchema, At as isContentConstructEnd, B as ContentSectionSchema, C as ContentFormula, Ct as DecimalString, D as ContentListMembership, Dt as contentDocumentSharedFields, E as ContentImageBlockSchema, Et as clampHeadingLevel, F as ContentPathSegment, G as ContentSheetCellComment, H as ContentShapeSchema, I as ContentPathSegmentSchema, J as ContentSheetColumn, K as ContentSheetCellCommentSchema, L as ContentRun, M as ContentParagraphSchema, N as ContentPathPoint, O as ContentListMembershipSchema, Ot as findConstructMarkerImbalance, P as ContentPathPointSchema, Q as ContentSheetPrintRange, R as ContentRunSchema, S as ContentEmbeddedObjectSchema, St as ContentVectorSchema, T as ContentImageBlock, Tt as FusedNode, U as ContentSheet, V as ContentShape, W as ContentSheetCell, X as ContentSheetImage, Y as ContentSheetColumnSchema, Z as ContentSheetImageSchema, _ as ContentDrawPageSchema, _t as ContentTableCellSchema, a as ContentBorderSchema, at as ContentSheetRowSchema, b as ContentEmbeddedObjectBlockSchema, bt as ContentTableSchema, c as ContentCellValue, ct as ContentSlideSchema, d as ContentConstructEndSchema, dt as ContentStrokeStyle, et as ContentSheetPrintSettings, f as ContentConstructStart, ft as ContentStrokeStyleSchema, g as ContentDrawPage, gt as ContentTableCell, h as ContentDocumentSchema, ht as ContentTable, i as ContentBorder, it as ContentSheetRow, j as ContentParagraph, jt as isContentConstructStart, k as ContentPageBreak, kt as isContentBlock, l as ContentCellValueSchema, lt as ContentStroke, m as ContentDocument, mt as ContentSubpathSchema, n as ContentBlock, nt as ContentSheetRepeatRange, o as ContentCellBorders, ot as ContentSheetSchema, p as ContentConstructStartSchema, pt as ContentSubpath, q as ContentSheetCellSchema, r as ContentBlockSchema, rt as ContentSheetRepeatRangeSchema, s as ContentCellBordersSchema, st as ContentSlide, t as ConstructMarkerImbalance, tt as ContentSheetPrintSettingsSchema, u as ContentConstructEnd, ut as ContentStrokeSchema, v as ContentEmbeddedObject, vt as ContentTableRow, w as ContentFormulaSchema, wt as DecimalStringSchema, x as ContentEmbeddedObjectKind, xt as ContentVector, y as ContentEmbeddedObjectBlock, yt as ContentTableRowSchema, z as ContentSection } from "./content-CIwPb_yh.js";
2
+ export { ConstructMarkerImbalance, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, isContentBlock, isContentConstructEnd, isContentConstructStart };
package/dist/content.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { ColorSchema } from "./color.js";
2
+ import { ConstructDescriptorSchema } from "./construct.js";
2
3
  import { MathExpressionSchema, MathPresentationSchema, MathProvenanceSchema, SymbolTableSchema } from "./math.js";
3
4
  import { BoxSchema, LayoutFrameSchema, MarginsSchema, PageSizeSchema } from "./geometry.js";
4
5
  import { MathMlNodeSchema } from "./mathml.js";
@@ -56,6 +57,11 @@ const ContentPageBreakSchema = z.object({
56
57
  sourcePath: z.string().optional(),
57
58
  frames: z.array(LayoutFrameSchema).optional()
58
59
  });
60
+ const ContentConstructStartSchema = z.object({
61
+ kind: z.literal("constructStart"),
62
+ descriptor: ConstructDescriptorSchema
63
+ });
64
+ const ContentConstructEndSchema = z.object({ kind: z.literal("constructEnd") });
59
65
  function isRecord(value) {
60
66
  return typeof value === "object" && value !== null && !Array.isArray(value);
61
67
  }
@@ -77,6 +83,12 @@ function isContentEmbeddedObject(value) {
77
83
  function isContentEmbeddedObjectBlock(value) {
78
84
  return isRecord(value) && value.kind === "embeddedObject" && isContentEmbeddedObject(value);
79
85
  }
86
+ function isContentConstructStart(value) {
87
+ return isRecord(value) && value.kind === "constructStart" && ConstructDescriptorSchema.safeParse(value.descriptor).success;
88
+ }
89
+ function isContentConstructEnd(value) {
90
+ return isRecord(value) && value.kind === "constructEnd";
91
+ }
80
92
  function isContentBlock(value) {
81
93
  if (!isRecord(value)) return false;
82
94
  const kind = value.kind;
@@ -85,11 +97,26 @@ function isContentBlock(value) {
85
97
  if (kind === "pageBreak") return true;
86
98
  if (kind === "table") return Array.isArray(value.rows) && value.rows.every(isContentTableRow) && Array.isArray(value.columnWidthsPt) && value.columnWidthsPt.every((w) => typeof w === "number");
87
99
  if (kind === "embeddedObject") return isContentEmbeddedObject(value);
100
+ if (kind === "constructStart") return isContentConstructStart(value);
101
+ if (kind === "constructEnd") return true;
88
102
  return false;
89
103
  }
90
104
  const ContentBlockSchema = z.custom(isContentBlock);
91
105
  const ContentEmbeddedObjectSchema = z.custom(isContentEmbeddedObject);
92
106
  const ContentEmbeddedObjectBlockSchema = z.custom(isContentEmbeddedObjectBlock);
107
+ function findConstructMarkerImbalance(blocks) {
108
+ const openStartIndices = [];
109
+ for (const [index, block] of blocks.entries()) if (isContentConstructStart(block)) openStartIndices.push(index);
110
+ else if (isContentConstructEnd(block) && openStartIndices.pop() === void 0) return {
111
+ kind: "unmatchedEnd",
112
+ index
113
+ };
114
+ const outermostUnclosed = openStartIndices[0];
115
+ if (outermostUnclosed !== void 0) return {
116
+ kind: "unclosedStart",
117
+ index: outermostUnclosed
118
+ };
119
+ }
93
120
  const ContentStrokeStyleSchema = z.enum([
94
121
  "solid",
95
122
  "dashed",
@@ -392,4 +419,4 @@ const ContentDocumentSchema = z.discriminatedUnion("kind", [
392
419
  })
393
420
  ]);
394
421
  //#endregion
395
- export { ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DecimalStringSchema, clampHeadingLevel, contentDocumentSharedFields, isContentBlock };
422
+ export { ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DecimalStringSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, isContentBlock, isContentConstructEnd, isContentConstructStart };
@@ -1,4 +1,4 @@
1
- import { E as ContentParagraph, M as ContentRun } from "./content-BN0PWqpt.cjs";
1
+ import { L as ContentRun, j as ContentParagraph } from "./content-BmqzegMG.cjs";
2
2
  import { z } from "zod";
3
3
  //#region src/definitions.d.ts
4
4
  declare const StyleParagraphPropertiesSchema: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { E as ContentParagraph, M as ContentRun } from "./content-CiZf6Fqn.js";
1
+ import { L as ContentRun, j as ContentParagraph } from "./content-CIwPb_yh.js";
2
2
  import { z } from "zod";
3
3
  //#region src/definitions.d.ts
4
4
  declare const StyleParagraphPropertiesSchema: z.ZodObject<{
package/dist/index.cjs CHANGED
@@ -30,6 +30,8 @@ exports.ContentBlockSchema = require_content.ContentBlockSchema;
30
30
  exports.ContentBorderSchema = require_content.ContentBorderSchema;
31
31
  exports.ContentCellBordersSchema = require_content.ContentCellBordersSchema;
32
32
  exports.ContentCellValueSchema = require_content.ContentCellValueSchema;
33
+ exports.ContentConstructEndSchema = require_content.ContentConstructEndSchema;
34
+ exports.ContentConstructStartSchema = require_content.ContentConstructStartSchema;
33
35
  exports.ContentControlDescriptorSchema = require_construct.ContentControlDescriptorSchema;
34
36
  exports.ContentControlLockSchema = require_construct.ContentControlLockSchema;
35
37
  exports.ContentControlTypeSchema = require_construct.ContentControlTypeSchema;
@@ -114,6 +116,7 @@ exports.MathUnitSchema = require_math.MathUnitSchema;
114
116
  exports.MathUnparsedSchema = require_math.MathUnparsedSchema;
115
117
  exports.PAGE_SIZE_A4 = require_geometry.PAGE_SIZE_A4;
116
118
  exports.PAGE_SIZE_LETTER = require_geometry.PAGE_SIZE_LETTER;
119
+ exports.PackageBlockLeafSchema = require_package_node.PackageBlockLeafSchema;
117
120
  exports.PackageGroupSchema = require_package_node.PackageGroupSchema;
118
121
  exports.PackageLeafSchema = require_package_node.PackageLeafSchema;
119
122
  exports.PackageNodeSchema = require_package_node.PackageNodeSchema;
@@ -153,12 +156,16 @@ exports.contentDocumentWithSchema = require_schema_io.contentDocumentWithSchema;
153
156
  exports.documentFromJson = require_schema_io.documentFromJson;
154
157
  exports.documentPackageWithSchema = require_schema_io.documentPackageWithSchema;
155
158
  exports.documentSchemaKindOf = require_schema_io.documentSchemaKindOf;
159
+ exports.findConstructMarkerImbalance = require_content.findConstructMarkerImbalance;
156
160
  exports.isContentBlock = require_content.isContentBlock;
161
+ exports.isContentConstructEnd = require_content.isContentConstructEnd;
162
+ exports.isContentConstructStart = require_content.isContentConstructStart;
157
163
  exports.isDrawPageGroupNode = require_package_node.isDrawPageGroupNode;
158
164
  exports.isHeadingGroupNode = require_package_node.isHeadingGroupNode;
159
165
  exports.isListGroupNode = require_package_node.isListGroupNode;
160
166
  exports.isMathExpression = require_math.isMathExpression;
161
167
  exports.isMathMlNode = require_mathml.isMathMlNode;
168
+ exports.isPackageBlockLeaf = require_package_node.isPackageBlockLeaf;
162
169
  exports.isPackageGroup = require_package_node.isPackageGroup;
163
170
  exports.isPackageLeaf = require_package_node.isPackageLeaf;
164
171
  exports.isPackageNode = require_package_node.isPackageNode;
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ import { _ as isMathMlNode, a as MathMlComment, c as MathMlDeclarationSchema, d
3
3
  import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-B7gZJeND.cjs";
4
4
  import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-AELCDH_b.cjs";
5
5
  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";
6
- import { $ as ContentSheetRow, A as ContentPathSegment, B as ContentSheetCellComment, C as ContentListMembershipSchema, Ct as isContentBlock, D as ContentParagraphSchema, E as ContentParagraph, F as ContentSectionSchema, G as ContentSheetImage, H as ContentSheetCellSchema, I as ContentShape, J as ContentSheetPrintRangeSchema, K as ContentSheetImageSchema, L as ContentShapeSchema, M as ContentRun, N as ContentRunSchema, O as ContentPathPoint, P as ContentSection, Q as ContentSheetRepeatRangeSchema, R as ContentSheet, S as ContentListMembership, St as contentDocumentSharedFields, T as ContentPageBreakSchema, U as ContentSheetColumn, V as ContentSheetCellCommentSchema, W as ContentSheetColumnSchema, X as ContentSheetPrintSettingsSchema, Y as ContentSheetPrintSettings, Z as ContentSheetRepeatRange, _ as ContentEmbeddedObjectSchema, _t as ContentVectorSchema, a as ContentCellBorders, at as ContentStrokeSchema, b as ContentImageBlock, bt as FusedNode, c as ContentCellValueSchema, ct as ContentSubpath, d as ContentDrawPage, dt as ContentTableCell, et as ContentSheetRowSchema, f as ContentDrawPageSchema, ft as ContentTableCellSchema, g as ContentEmbeddedObjectKind, gt as ContentVector, h as ContentEmbeddedObjectBlockSchema, ht as ContentTableSchema, i as ContentBorderSchema, it as ContentStroke, j as ContentPathSegmentSchema, k as ContentPathPointSchema, l as ContentDocument, lt as ContentSubpathSchema, m as ContentEmbeddedObjectBlock, mt as ContentTableRowSchema, n as ContentBlockSchema, nt as ContentSlide, o as ContentCellBordersSchema, ot as ContentStrokeStyle, p as ContentEmbeddedObject, pt as ContentTableRow, q as ContentSheetPrintRange, r as ContentBorder, rt as ContentSlideSchema, s as ContentCellValue, st as ContentStrokeStyleSchema, t as ContentBlock, tt as ContentSheetSchema, u as ContentDocumentSchema, ut as ContentTable, v as ContentFormula, vt as DecimalString, w as ContentPageBreak, x as ContentImageBlockSchema, xt as clampHeadingLevel, y as ContentFormulaSchema, yt as DecimalStringSchema, z as ContentSheetCell } from "./content-BN0PWqpt.cjs";
6
+ import { $ as ContentSheetPrintRangeSchema, A as ContentPageBreakSchema, At as isContentConstructEnd, B as ContentSectionSchema, C as ContentFormula, Ct as DecimalString, D as ContentListMembership, Dt as contentDocumentSharedFields, E as ContentImageBlockSchema, Et as clampHeadingLevel, F as ContentPathSegment, G as ContentSheetCellComment, H as ContentShapeSchema, I as ContentPathSegmentSchema, J as ContentSheetColumn, K as ContentSheetCellCommentSchema, L as ContentRun, M as ContentParagraphSchema, N as ContentPathPoint, O as ContentListMembershipSchema, Ot as findConstructMarkerImbalance, P as ContentPathPointSchema, Q as ContentSheetPrintRange, R as ContentRunSchema, S as ContentEmbeddedObjectSchema, St as ContentVectorSchema, T as ContentImageBlock, Tt as FusedNode, U as ContentSheet, V as ContentShape, W as ContentSheetCell, X as ContentSheetImage, Y as ContentSheetColumnSchema, Z as ContentSheetImageSchema, _ as ContentDrawPageSchema, _t as ContentTableCellSchema, a as ContentBorderSchema, at as ContentSheetRowSchema, b as ContentEmbeddedObjectBlockSchema, bt as ContentTableSchema, c as ContentCellValue, ct as ContentSlideSchema, d as ContentConstructEndSchema, dt as ContentStrokeStyle, et as ContentSheetPrintSettings, f as ContentConstructStart, ft as ContentStrokeStyleSchema, g as ContentDrawPage, gt as ContentTableCell, h as ContentDocumentSchema, ht as ContentTable, i as ContentBorder, it as ContentSheetRow, j as ContentParagraph, jt as isContentConstructStart, k as ContentPageBreak, kt as isContentBlock, l as ContentCellValueSchema, lt as ContentStroke, m as ContentDocument, mt as ContentSubpathSchema, n as ContentBlock, nt as ContentSheetRepeatRange, o as ContentCellBorders, ot as ContentSheetSchema, p as ContentConstructStartSchema, pt as ContentSubpath, q as ContentSheetCellSchema, r as ContentBlockSchema, rt as ContentSheetRepeatRangeSchema, s as ContentCellBordersSchema, st as ContentSlide, t as ConstructMarkerImbalance, tt as ContentSheetPrintSettingsSchema, u as ContentConstructEnd, ut as ContentStrokeSchema, v as ContentEmbeddedObject, vt as ContentTableRow, w as ContentFormulaSchema, wt as DecimalStringSchema, x as ContentEmbeddedObjectKind, xt as ContentVector, y as ContentEmbeddedObjectBlock, yt as ContentTableRowSchema, z as ContentSection } from "./content-BmqzegMG.cjs";
7
7
  import { ContentCodec } from "./codec.cjs";
8
8
  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-CdQuI9f5.cjs";
9
9
  import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.cjs";
@@ -11,9 +11,9 @@ import { DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTa
11
11
  import { FontFace, FontRegistryOptions, FontSubstitution, ProvidedFont } from "./font-port.cjs";
12
12
  import { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema } from "./style.cjs";
13
13
  import { LayoutMetadata, LayoutMetadataSchema } from "./metadata.cjs";
14
- import { $ as isShapeGroupNode, A as ShapeConstructGroupSchema, B as SlideDescriptor, C as SectionConstructGroupSchema, D as SectionGroupSchema, E as SectionGroupNode, F as SheetChild, G as isHeadingGroupNode, H as SlideGroupNode, I as SheetDescriptor, J as isPackageLeaf, K as isListGroupNode, L as SheetDescriptorSchema, M as ShapeDescriptorSchema, N as ShapeGroupNode, O as ShapeChild, P as ShapeGroupSchema, Q as isShapeConstructGroupNode, R as SheetGroupNode, S as SectionConstructGroupNode, T as SectionDescriptorSchema, U as SlideGroupSchema, V as SlideDescriptorSchema, W as isDrawPageGroupNode, X as isSectionConstructGroupNode, Y as isPackageNode, Z as isSectionGroupNode, _ as PackageLeaf, a as DrawPageGroupSchema, b as PackageNodeSchema, c as HeadingParagraph, d as ListGroupNode, et as isSheetGroupNode, f as ListGroupSchema, g as PackageGroupSchema, h as PackageGroup, i as DrawPageGroupNode, j as ShapeDescriptor, k as ShapeConstructGroupNode, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, o as HeadingGroupNode, p as ListParagraph, q as isPackageGroup, r as DrawPageDescriptorSchema, s as HeadingGroupSchema, t as DrawPageChild, tt as isSlideGroupNode, u as ListChild, v as PackageLeafSchema, w as SectionDescriptor, x as SectionChild, y as PackageNode, z as SheetGroupSchema } from "./package-node-BiUEzIzl.cjs";
14
+ import { $ as isSectionConstructGroupNode, A as ShapeChild, B as SheetGroupNode, C as SectionChild, D as SectionDescriptorSchema, E as SectionDescriptor, F as ShapeGroupNode, G as SlideGroupSchema, H as SlideDescriptor, I as ShapeGroupSchema, J as isListGroupNode, K as isDrawPageGroupNode, L as SheetChild, M as ShapeConstructGroupSchema, N as ShapeDescriptor, O as SectionGroupNode, P as ShapeDescriptorSchema, Q as isPackageNode, R as SheetDescriptor, S as PackageNodeSchema, T as SectionConstructGroupSchema, U as SlideDescriptorSchema, V as SheetGroupSchema, W as SlideGroupNode, X as isPackageGroup, Y as isPackageBlockLeaf, Z as isPackageLeaf, _ as PackageGroup, a as DrawPageGroupSchema, b as PackageLeafSchema, c as HeadingParagraph, d as ListGroupNode, et as isSectionGroupNode, f as ListGroupSchema, g as PackageBlockLeafSchema, h as PackageBlockLeaf, i as DrawPageGroupNode, it as isSlideGroupNode, j as ShapeConstructGroupNode, k as SectionGroupSchema, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isShapeGroupNode, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isSheetGroupNode, s as HeadingGroupSchema, t as DrawPageChild, tt as isShapeConstructGroupNode, u as ListChild, v as PackageGroupSchema, w as SectionConstructGroupNode, x as PackageNode, y as PackageLeaf, z as SheetDescriptorSchema } from "./package-node-a9CyRaD3.cjs";
15
15
  import { DocumentPackage, DocumentPackageSchema } from "./package.cjs";
16
16
  import { ContentDocumentJson, DocumentJsonResult, DocumentPackageJson, DocumentSchemaKind, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, schemaUriFor } from "./schema-io.cjs";
17
17
  import { StyledFragment, StyledRun, TextMeasurer, UnderlineMetrics, WrapOptions, WrappedLine } from "./text-layout.cjs";
18
18
  import { MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PositionedFormula } from "./math-layout.cjs";
19
- export { Alignment, AlignmentSchema, AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CellPosition, CellRange, Color, ColorSchema, ConstructDescriptor, ConstructDescriptorSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentCodec, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalString, DecimalStringSchema, DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, DimensionVector, DimensionVectorSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, ExactRational, ExactRationalSchema, FieldDescriptor, FieldDescriptorSchema, FontFace, FontRegistryOptions, FontSubstitution, FusedNode, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, LayoutFont, LayoutFontSchema, LayoutFrame, LayoutFrameSchema, LayoutMetadata, LayoutMetadataSchema, LayoutSchemaDemotedError, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, MAX_SAFE_INTEGER, Margins, MarginsSchema, MathApp, MathAppSchema, MathAssembledGlyphs, MathBox, MathColor, MathExpression, MathExpressionSchema, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathMatrix, MathMatrixSchema, MathMlAttribute, MathMlAttributeSchema, MathMlCdata, MathMlCdataSchema, MathMlComment, MathMlCommentSchema, MathMlDeclaration, MathMlDeclarationSchema, MathMlElement, MathMlElementSchema, MathMlNode, MathMlNodeSchema, MathMlPi, MathMlPiSchema, MathMlText, MathMlTextSchema, MathNormalisationContext, MathNormalisationContextSchema, MathNum, MathNumSchema, MathPresentation, MathPresentationSchema, MathProd, MathProdSchema, MathProvenance, MathProvenanceSchema, MathQty, MathQtySchema, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, MathSum, MathSumSchema, MathSym, MathSymSchema, MathSymbolEntry, MathSymbolEntrySchema, MathUncertainty, MathUncertaintySchema, MathUnit, MathUnitSchema, MathUnparsed, MathUnparsedSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageGroup, PackageGroupSchema, PackageLeaf, PackageLeafSchema, PackageNode, PackageNodeSchema, PageSize, PageSizeSchema, Point, PositionedFormula, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema, ProvidedFont, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SiBaseDimension, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StyledFragment, StyledRun, StylesTable, StylesTableSchema, SymbolTable, SymbolTableSchema, TextMeasurer, UnderlineMetrics, UnrecognizedDocumentSchemaError, WrapOptions, WrappedLine, applyParagraphStyleProperties, applyRunStyleProperties, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, overlayStyleEntries, parseCellReference, parseRangeReference, rangeReference, resolveStyleChain, rgbHexToColor, schemaUriFor };
19
+ export { Alignment, AlignmentSchema, AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CellPosition, CellRange, Color, ColorSchema, ConstructDescriptor, ConstructDescriptorSchema, ConstructMarkerImbalance, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentCodec, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalString, DecimalStringSchema, DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, DimensionVector, DimensionVectorSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, ExactRational, ExactRationalSchema, FieldDescriptor, FieldDescriptorSchema, FontFace, FontRegistryOptions, FontSubstitution, FusedNode, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, LayoutFont, LayoutFontSchema, LayoutFrame, LayoutFrameSchema, LayoutMetadata, LayoutMetadataSchema, LayoutSchemaDemotedError, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, MAX_SAFE_INTEGER, Margins, MarginsSchema, MathApp, MathAppSchema, MathAssembledGlyphs, MathBox, MathColor, MathExpression, MathExpressionSchema, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathMatrix, MathMatrixSchema, MathMlAttribute, MathMlAttributeSchema, MathMlCdata, MathMlCdataSchema, MathMlComment, MathMlCommentSchema, MathMlDeclaration, MathMlDeclarationSchema, MathMlElement, MathMlElementSchema, MathMlNode, MathMlNodeSchema, MathMlPi, MathMlPiSchema, MathMlText, MathMlTextSchema, MathNormalisationContext, MathNormalisationContextSchema, MathNum, MathNumSchema, MathPresentation, MathPresentationSchema, MathProd, MathProdSchema, MathProvenance, MathProvenanceSchema, MathQty, MathQtySchema, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, MathSum, MathSumSchema, MathSym, MathSymSchema, MathSymbolEntry, MathSymbolEntrySchema, MathUncertainty, MathUncertaintySchema, MathUnit, MathUnitSchema, MathUnparsed, MathUnparsedSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageBlockLeaf, PackageBlockLeafSchema, PackageGroup, PackageGroupSchema, PackageLeaf, PackageLeafSchema, PackageNode, PackageNodeSchema, PageSize, PageSizeSchema, Point, PositionedFormula, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema, ProvidedFont, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SiBaseDimension, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StyledFragment, StyledRun, StylesTable, StylesTableSchema, SymbolTable, SymbolTableSchema, TextMeasurer, UnderlineMetrics, UnrecognizedDocumentSchemaError, WrapOptions, WrappedLine, applyParagraphStyleProperties, applyRunStyleProperties, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, findConstructMarkerImbalance, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isPackageBlockLeaf, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, overlayStyleEntries, parseCellReference, parseRangeReference, rangeReference, resolveStyleChain, rgbHexToColor, schemaUriFor };
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { _ as isMathMlNode, a as MathMlComment, c as MathMlDeclarationSchema, d
3
3
  import { A as MathUncertaintySchema, C as MathSum, D as MathSymbolEntry, E as MathSymSchema, F as SI_BASE_DIMENSIONS, I as SiBaseDimension, L as SymbolTable, M as MathUnitSchema, N as MathUnparsed, O as MathSymbolEntrySchema, P as MathUnparsedSchema, R as SymbolTableSchema, S as MathQtySchema, T as MathSym, _ as MathProd, a as MathApp, b as MathProvenanceSchema, c as MathExpressionSchema, d as MathNormalisationContext, f as MathNormalisationContextSchema, g as MathPresentationSchema, h as MathPresentation, i as ExactRationalSchema, j as MathUnit, k as MathUncertainty, l as MathMatrix, m as MathNumSchema, n as DimensionVectorSchema, o as MathAppSchema, p as MathNum, r as ExactRational, s as MathExpression, t as DimensionVector, u as MathMatrixSchema, v as MathProdSchema, w as MathSumSchema, x as MathQty, y as MathProvenance, z as isMathExpression } from "./math-B7gZJeND.js";
4
4
  import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-AELCDH_b.js";
5
5
  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";
6
- import { $ as ContentSheetRow, A as ContentPathSegment, B as ContentSheetCellComment, C as ContentListMembershipSchema, Ct as isContentBlock, D as ContentParagraphSchema, E as ContentParagraph, F as ContentSectionSchema, G as ContentSheetImage, H as ContentSheetCellSchema, I as ContentShape, J as ContentSheetPrintRangeSchema, K as ContentSheetImageSchema, L as ContentShapeSchema, M as ContentRun, N as ContentRunSchema, O as ContentPathPoint, P as ContentSection, Q as ContentSheetRepeatRangeSchema, R as ContentSheet, S as ContentListMembership, St as contentDocumentSharedFields, T as ContentPageBreakSchema, U as ContentSheetColumn, V as ContentSheetCellCommentSchema, W as ContentSheetColumnSchema, X as ContentSheetPrintSettingsSchema, Y as ContentSheetPrintSettings, Z as ContentSheetRepeatRange, _ as ContentEmbeddedObjectSchema, _t as ContentVectorSchema, a as ContentCellBorders, at as ContentStrokeSchema, b as ContentImageBlock, bt as FusedNode, c as ContentCellValueSchema, ct as ContentSubpath, d as ContentDrawPage, dt as ContentTableCell, et as ContentSheetRowSchema, f as ContentDrawPageSchema, ft as ContentTableCellSchema, g as ContentEmbeddedObjectKind, gt as ContentVector, h as ContentEmbeddedObjectBlockSchema, ht as ContentTableSchema, i as ContentBorderSchema, it as ContentStroke, j as ContentPathSegmentSchema, k as ContentPathPointSchema, l as ContentDocument, lt as ContentSubpathSchema, m as ContentEmbeddedObjectBlock, mt as ContentTableRowSchema, n as ContentBlockSchema, nt as ContentSlide, o as ContentCellBordersSchema, ot as ContentStrokeStyle, p as ContentEmbeddedObject, pt as ContentTableRow, q as ContentSheetPrintRange, r as ContentBorder, rt as ContentSlideSchema, s as ContentCellValue, st as ContentStrokeStyleSchema, t as ContentBlock, tt as ContentSheetSchema, u as ContentDocumentSchema, ut as ContentTable, v as ContentFormula, vt as DecimalString, w as ContentPageBreak, x as ContentImageBlockSchema, xt as clampHeadingLevel, y as ContentFormulaSchema, yt as DecimalStringSchema, z as ContentSheetCell } from "./content-CiZf6Fqn.js";
6
+ import { $ as ContentSheetPrintRangeSchema, A as ContentPageBreakSchema, At as isContentConstructEnd, B as ContentSectionSchema, C as ContentFormula, Ct as DecimalString, D as ContentListMembership, Dt as contentDocumentSharedFields, E as ContentImageBlockSchema, Et as clampHeadingLevel, F as ContentPathSegment, G as ContentSheetCellComment, H as ContentShapeSchema, I as ContentPathSegmentSchema, J as ContentSheetColumn, K as ContentSheetCellCommentSchema, L as ContentRun, M as ContentParagraphSchema, N as ContentPathPoint, O as ContentListMembershipSchema, Ot as findConstructMarkerImbalance, P as ContentPathPointSchema, Q as ContentSheetPrintRange, R as ContentRunSchema, S as ContentEmbeddedObjectSchema, St as ContentVectorSchema, T as ContentImageBlock, Tt as FusedNode, U as ContentSheet, V as ContentShape, W as ContentSheetCell, X as ContentSheetImage, Y as ContentSheetColumnSchema, Z as ContentSheetImageSchema, _ as ContentDrawPageSchema, _t as ContentTableCellSchema, a as ContentBorderSchema, at as ContentSheetRowSchema, b as ContentEmbeddedObjectBlockSchema, bt as ContentTableSchema, c as ContentCellValue, ct as ContentSlideSchema, d as ContentConstructEndSchema, dt as ContentStrokeStyle, et as ContentSheetPrintSettings, f as ContentConstructStart, ft as ContentStrokeStyleSchema, g as ContentDrawPage, gt as ContentTableCell, h as ContentDocumentSchema, ht as ContentTable, i as ContentBorder, it as ContentSheetRow, j as ContentParagraph, jt as isContentConstructStart, k as ContentPageBreak, kt as isContentBlock, l as ContentCellValueSchema, lt as ContentStroke, m as ContentDocument, mt as ContentSubpathSchema, n as ContentBlock, nt as ContentSheetRepeatRange, o as ContentCellBorders, ot as ContentSheetSchema, p as ContentConstructStartSchema, pt as ContentSubpath, q as ContentSheetCellSchema, r as ContentBlockSchema, rt as ContentSheetRepeatRangeSchema, s as ContentCellBordersSchema, st as ContentSlide, t as ConstructMarkerImbalance, tt as ContentSheetPrintSettingsSchema, u as ContentConstructEnd, ut as ContentStrokeSchema, v as ContentEmbeddedObject, vt as ContentTableRow, w as ContentFormulaSchema, wt as DecimalStringSchema, x as ContentEmbeddedObjectKind, xt as ContentVector, y as ContentEmbeddedObjectBlock, yt as ContentTableRowSchema, z as ContentSection } from "./content-CIwPb_yh.js";
7
7
  import { ContentCodec } from "./codec.js";
8
8
  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-CdQuI9f5.js";
9
9
  import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.js";
@@ -11,9 +11,9 @@ import { DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTa
11
11
  import { FontFace, FontRegistryOptions, FontSubstitution, ProvidedFont } from "./font-port.js";
12
12
  import { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema } from "./style.js";
13
13
  import { LayoutMetadata, LayoutMetadataSchema } from "./metadata.js";
14
- import { $ as isShapeGroupNode, A as ShapeConstructGroupSchema, B as SlideDescriptor, C as SectionConstructGroupSchema, D as SectionGroupSchema, E as SectionGroupNode, F as SheetChild, G as isHeadingGroupNode, H as SlideGroupNode, I as SheetDescriptor, J as isPackageLeaf, K as isListGroupNode, L as SheetDescriptorSchema, M as ShapeDescriptorSchema, N as ShapeGroupNode, O as ShapeChild, P as ShapeGroupSchema, Q as isShapeConstructGroupNode, R as SheetGroupNode, S as SectionConstructGroupNode, T as SectionDescriptorSchema, U as SlideGroupSchema, V as SlideDescriptorSchema, W as isDrawPageGroupNode, X as isSectionConstructGroupNode, Y as isPackageNode, Z as isSectionGroupNode, _ as PackageLeaf, a as DrawPageGroupSchema, b as PackageNodeSchema, c as HeadingParagraph, d as ListGroupNode, et as isSheetGroupNode, f as ListGroupSchema, g as PackageGroupSchema, h as PackageGroup, i as DrawPageGroupNode, j as ShapeDescriptor, k as ShapeConstructGroupNode, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, o as HeadingGroupNode, p as ListParagraph, q as isPackageGroup, r as DrawPageDescriptorSchema, s as HeadingGroupSchema, t as DrawPageChild, tt as isSlideGroupNode, u as ListChild, v as PackageLeafSchema, w as SectionDescriptor, x as SectionChild, y as PackageNode, z as SheetGroupSchema } from "./package-node-DLUobcDQ.js";
14
+ import { $ as isSectionConstructGroupNode, A as ShapeChild, B as SheetGroupNode, C as SectionChild, D as SectionDescriptorSchema, E as SectionDescriptor, F as ShapeGroupNode, G as SlideGroupSchema, H as SlideDescriptor, I as ShapeGroupSchema, J as isListGroupNode, K as isDrawPageGroupNode, L as SheetChild, M as ShapeConstructGroupSchema, N as ShapeDescriptor, O as SectionGroupNode, P as ShapeDescriptorSchema, Q as isPackageNode, R as SheetDescriptor, S as PackageNodeSchema, T as SectionConstructGroupSchema, U as SlideDescriptorSchema, V as SheetGroupSchema, W as SlideGroupNode, X as isPackageGroup, Y as isPackageBlockLeaf, Z as isPackageLeaf, _ as PackageGroup, a as DrawPageGroupSchema, b as PackageLeafSchema, c as HeadingParagraph, d as ListGroupNode, et as isSectionGroupNode, f as ListGroupSchema, g as PackageBlockLeafSchema, h as PackageBlockLeaf, i as DrawPageGroupNode, it as isSlideGroupNode, j as ShapeConstructGroupNode, k as SectionGroupSchema, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isShapeGroupNode, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isSheetGroupNode, s as HeadingGroupSchema, t as DrawPageChild, tt as isShapeConstructGroupNode, u as ListChild, v as PackageGroupSchema, w as SectionConstructGroupNode, x as PackageNode, y as PackageLeaf, z as SheetDescriptorSchema } from "./package-node-C7RiYhyk.js";
15
15
  import { DocumentPackage, DocumentPackageSchema } from "./package.js";
16
16
  import { ContentDocumentJson, DocumentJsonResult, DocumentPackageJson, DocumentSchemaKind, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, schemaUriFor } from "./schema-io.js";
17
17
  import { StyledFragment, StyledRun, TextMeasurer, UnderlineMetrics, WrapOptions, WrappedLine } from "./text-layout.js";
18
18
  import { MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PositionedFormula } from "./math-layout.js";
19
- export { Alignment, AlignmentSchema, AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CellPosition, CellRange, Color, ColorSchema, ConstructDescriptor, ConstructDescriptorSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentCodec, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalString, DecimalStringSchema, DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, DimensionVector, DimensionVectorSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, ExactRational, ExactRationalSchema, FieldDescriptor, FieldDescriptorSchema, FontFace, FontRegistryOptions, FontSubstitution, FusedNode, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, LayoutFont, LayoutFontSchema, LayoutFrame, LayoutFrameSchema, LayoutMetadata, LayoutMetadataSchema, LayoutSchemaDemotedError, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, MAX_SAFE_INTEGER, Margins, MarginsSchema, MathApp, MathAppSchema, MathAssembledGlyphs, MathBox, MathColor, MathExpression, MathExpressionSchema, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathMatrix, MathMatrixSchema, MathMlAttribute, MathMlAttributeSchema, MathMlCdata, MathMlCdataSchema, MathMlComment, MathMlCommentSchema, MathMlDeclaration, MathMlDeclarationSchema, MathMlElement, MathMlElementSchema, MathMlNode, MathMlNodeSchema, MathMlPi, MathMlPiSchema, MathMlText, MathMlTextSchema, MathNormalisationContext, MathNormalisationContextSchema, MathNum, MathNumSchema, MathPresentation, MathPresentationSchema, MathProd, MathProdSchema, MathProvenance, MathProvenanceSchema, MathQty, MathQtySchema, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, MathSum, MathSumSchema, MathSym, MathSymSchema, MathSymbolEntry, MathSymbolEntrySchema, MathUncertainty, MathUncertaintySchema, MathUnit, MathUnitSchema, MathUnparsed, MathUnparsedSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageGroup, PackageGroupSchema, PackageLeaf, PackageLeafSchema, PackageNode, PackageNodeSchema, PageSize, PageSizeSchema, Point, PositionedFormula, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema, ProvidedFont, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SiBaseDimension, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StyledFragment, StyledRun, StylesTable, StylesTableSchema, SymbolTable, SymbolTableSchema, TextMeasurer, UnderlineMetrics, UnrecognizedDocumentSchemaError, WrapOptions, WrappedLine, applyParagraphStyleProperties, applyRunStyleProperties, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, overlayStyleEntries, parseCellReference, parseRangeReference, rangeReference, resolveStyleChain, rgbHexToColor, schemaUriFor };
19
+ export { Alignment, AlignmentSchema, AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CellPosition, CellRange, Color, ColorSchema, ConstructDescriptor, ConstructDescriptorSchema, ConstructMarkerImbalance, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentCodec, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalString, DecimalStringSchema, DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, DimensionVector, DimensionVectorSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, ExactRational, ExactRationalSchema, FieldDescriptor, FieldDescriptorSchema, FontFace, FontRegistryOptions, FontSubstitution, FusedNode, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, LayoutFont, LayoutFontSchema, LayoutFrame, LayoutFrameSchema, LayoutMetadata, LayoutMetadataSchema, LayoutSchemaDemotedError, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, MAX_SAFE_INTEGER, Margins, MarginsSchema, MathApp, MathAppSchema, MathAssembledGlyphs, MathBox, MathColor, MathExpression, MathExpressionSchema, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathMatrix, MathMatrixSchema, MathMlAttribute, MathMlAttributeSchema, MathMlCdata, MathMlCdataSchema, MathMlComment, MathMlCommentSchema, MathMlDeclaration, MathMlDeclarationSchema, MathMlElement, MathMlElementSchema, MathMlNode, MathMlNodeSchema, MathMlPi, MathMlPiSchema, MathMlText, MathMlTextSchema, MathNormalisationContext, MathNormalisationContextSchema, MathNum, MathNumSchema, MathPresentation, MathPresentationSchema, MathProd, MathProdSchema, MathProvenance, MathProvenanceSchema, MathQty, MathQtySchema, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, MathSum, MathSumSchema, MathSym, MathSymSchema, MathSymbolEntry, MathSymbolEntrySchema, MathUncertainty, MathUncertaintySchema, MathUnit, MathUnitSchema, MathUnparsed, MathUnparsedSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageBlockLeaf, PackageBlockLeafSchema, PackageGroup, PackageGroupSchema, PackageLeaf, PackageLeafSchema, PackageNode, PackageNodeSchema, PageSize, PageSizeSchema, Point, PositionedFormula, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema, ProvidedFont, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SiBaseDimension, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StyledFragment, StyledRun, StylesTable, StylesTableSchema, SymbolTable, SymbolTableSchema, TextMeasurer, UnderlineMetrics, UnrecognizedDocumentSchemaError, WrapOptions, WrappedLine, applyParagraphStyleProperties, applyRunStyleProperties, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, findConstructMarkerImbalance, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isPackageBlockLeaf, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, overlayStyleEntries, parseCellReference, parseRangeReference, rangeReference, resolveStyleChain, rgbHexToColor, schemaUriFor };
package/dist/index.js CHANGED
@@ -7,13 +7,13 @@ import { BoxSchema, LayoutFrameSchema, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LE
7
7
  import { MathMlAttributeSchema, MathMlCdataSchema, MathMlCommentSchema, MathMlDeclarationSchema, MathMlElementSchema, MathMlNodeSchema, MathMlPiSchema, MathMlTextSchema, isMathMlNode } from "./mathml.js";
8
8
  import { LayoutMetadataSchema } from "./metadata.js";
9
9
  import { AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFontSchema } from "./style.js";
10
- import { ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DecimalStringSchema, clampHeadingLevel, contentDocumentSharedFields, isContentBlock } from "./content.js";
10
+ import { ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DecimalStringSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, isContentBlock, isContentConstructEnd, isContentConstructStart } from "./content.js";
11
11
  import { DefinitionEntrySchema, DefinitionsTableSchema, StyleEntrySchema, StyleParagraphPropertiesSchema, StyleRunPropertiesSchema, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.js";
12
- import { DrawPageDescriptorSchema, DrawPageGroupSchema, HeadingGroupSchema, HeadingParagraphSchema, ListGroupSchema, ListParagraphSchema, PackageGroupSchema, PackageLeafSchema, PackageNodeSchema, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode } from "./package-node.js";
12
+ import { DrawPageDescriptorSchema, DrawPageGroupSchema, HeadingGroupSchema, HeadingParagraphSchema, ListGroupSchema, ListParagraphSchema, PackageBlockLeafSchema, PackageGroupSchema, PackageLeafSchema, PackageNodeSchema, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageBlockLeaf, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode } from "./package-node.js";
13
13
  import { DocumentPackageSchema } from "./package.js";
14
14
  import { LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, schemaUriFor } from "./schema-io.js";
15
15
  import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.js";
16
16
  import "./font-port.js";
17
17
  import "./text-layout.js";
18
18
  import "./math-layout.js";
19
- export { AlignmentSchema, AnchorDescriptorSchema, AnchorTypeSchema, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, ColorSchema, ConstructDescriptorSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalStringSchema, DefinitionEntrySchema, DefinitionsTableSchema, DimensionVectorSchema, DivisionDescriptorSchema, DivisionSourceSchema, DocumentPackageSchema, DrawPageDescriptorSchema, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, ExactRationalSchema, FieldDescriptorSchema, HeadingGroupSchema, HeadingParagraphSchema, LayoutFontSchema, LayoutFrameSchema, LayoutMetadataSchema, LayoutSchemaDemotedError, LinkDescriptorSchema, LinkTargetSchema, ListGroupSchema, ListParagraphSchema, MAX_SAFE_INTEGER, MarginsSchema, MathAppSchema, MathExpressionSchema, MathMatrixSchema, MathMlAttributeSchema, MathMlCdataSchema, MathMlCommentSchema, MathMlDeclarationSchema, MathMlElementSchema, MathMlNodeSchema, MathMlPiSchema, MathMlTextSchema, MathNormalisationContextSchema, MathNumSchema, MathPresentationSchema, MathProdSchema, MathProvenanceSchema, MathQtySchema, MathSumSchema, MathSymSchema, MathSymbolEntrySchema, MathUncertaintySchema, MathUnitSchema, MathUnparsedSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageGroupSchema, PackageLeafSchema, PackageNodeSchema, PageSizeSchema, ProvenanceChangeSchema, ProvenanceDescriptorSchema, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, StyleEntrySchema, StyleParagraphPropertiesSchema, StyleRunPropertiesSchema, StylesTableSchema, SymbolTableSchema, UnrecognizedDocumentSchemaError, applyParagraphStyleProperties, applyRunStyleProperties, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, overlayStyleEntries, parseCellReference, parseRangeReference, rangeReference, resolveStyleChain, rgbHexToColor, schemaUriFor };
19
+ export { AlignmentSchema, AnchorDescriptorSchema, AnchorTypeSchema, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, ColorSchema, ConstructDescriptorSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentImageBlockSchema, ContentListMembershipSchema, ContentPageBreakSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalStringSchema, DefinitionEntrySchema, DefinitionsTableSchema, DimensionVectorSchema, DivisionDescriptorSchema, DivisionSourceSchema, DocumentPackageSchema, DrawPageDescriptorSchema, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, ExactRationalSchema, FieldDescriptorSchema, HeadingGroupSchema, HeadingParagraphSchema, LayoutFontSchema, LayoutFrameSchema, LayoutMetadataSchema, LayoutSchemaDemotedError, LinkDescriptorSchema, LinkTargetSchema, ListGroupSchema, ListParagraphSchema, MAX_SAFE_INTEGER, MarginsSchema, MathAppSchema, MathExpressionSchema, MathMatrixSchema, MathMlAttributeSchema, MathMlCdataSchema, MathMlCommentSchema, MathMlDeclarationSchema, MathMlElementSchema, MathMlNodeSchema, MathMlPiSchema, MathMlTextSchema, MathNormalisationContextSchema, MathNumSchema, MathPresentationSchema, MathProdSchema, MathProvenanceSchema, MathQtySchema, MathSumSchema, MathSymSchema, MathSymbolEntrySchema, MathUncertaintySchema, MathUnitSchema, MathUnparsedSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PackageBlockLeafSchema, PackageGroupSchema, PackageLeafSchema, PackageNodeSchema, PageSizeSchema, ProvenanceChangeSchema, ProvenanceDescriptorSchema, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, StyleEntrySchema, StyleParagraphPropertiesSchema, StyleRunPropertiesSchema, StylesTableSchema, SymbolTableSchema, UnrecognizedDocumentSchemaError, applyParagraphStyleProperties, applyRunStyleProperties, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, findConstructMarkerImbalance, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isPackageBlockLeaf, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, overlayStyleEntries, parseCellReference, parseRangeReference, rangeReference, resolveStyleChain, rgbHexToColor, schemaUriFor };
@@ -1,4 +1,4 @@
1
- import { G as ContentSheetImage, gt as ContentVector, p as ContentEmbeddedObject, t as ContentBlock, v as ContentFormula } from "./content-CiZf6Fqn.js";
1
+ import { C as ContentFormula, X as ContentSheetImage, f as ContentConstructStart, n as ContentBlock, u as ContentConstructEnd, v as ContentEmbeddedObject, xt as ContentVector } from "./content-CIwPb_yh.js";
2
2
  import { a as ConstructDescriptor } from "./construct-CdQuI9f5.js";
3
3
  import { z } from "zod";
4
4
  //#region src/package-node.d.ts
@@ -375,10 +375,11 @@ declare const ListParagraphSchema: z.ZodObject<{
375
375
  }, z.core.$strip>;
376
376
  }, z.core.$strip>;
377
377
  type ListParagraph = z.infer<typeof ListParagraphSchema>;
378
- type PackageLeaf = ContentBlock | ContentSheetImage | ContentEmbeddedObject | ContentVector | ContentFormula;
379
- type SectionChild = HeadingGroupNode | ListGroupNode | SectionConstructGroupNode | ContentBlock;
380
- type ShapeChild = ListGroupNode | ShapeConstructGroupNode | ContentBlock;
381
- type ListChild = ListGroupNode | ShapeConstructGroupNode | ContentBlock;
378
+ type PackageBlockLeaf = Exclude<ContentBlock, ContentConstructStart | ContentConstructEnd>;
379
+ type PackageLeaf = PackageBlockLeaf | ContentSheetImage | ContentEmbeddedObject | ContentVector | ContentFormula;
380
+ type SectionChild = HeadingGroupNode | ListGroupNode | SectionConstructGroupNode | PackageBlockLeaf;
381
+ type ShapeChild = ListGroupNode | ShapeConstructGroupNode | PackageBlockLeaf;
382
+ type ListChild = ListGroupNode | ShapeConstructGroupNode | PackageBlockLeaf;
382
383
  type SheetChild = ContentSheetImage | ContentEmbeddedObject;
383
384
  type DrawPageChild = ShapeGroupNode | ContentVector;
384
385
  interface SectionGroupNode {
@@ -428,6 +429,8 @@ interface ShapeConstructGroupNode {
428
429
  }
429
430
  type PackageGroup = SectionGroupNode | SlideGroupNode | SheetGroupNode | DrawPageGroupNode | ShapeGroupNode | HeadingGroupNode | ListGroupNode | SectionConstructGroupNode | ShapeConstructGroupNode;
430
431
  type PackageNode = PackageGroup | PackageLeaf;
432
+ declare function isPackageBlockLeaf(value: unknown): value is PackageBlockLeaf;
433
+ declare const PackageBlockLeafSchema: z.ZodCustom<PackageBlockLeaf, PackageBlockLeaf>;
431
434
  declare function isSectionGroupNode(value: unknown): value is SectionGroupNode;
432
435
  declare function isSlideGroupNode(value: unknown): value is SlideGroupNode;
433
436
  declare function isSheetGroupNode(value: unknown): value is SheetGroupNode;
@@ -453,4 +456,4 @@ declare const PackageGroupSchema: z.ZodCustom<PackageGroup, PackageGroup>;
453
456
  declare const PackageLeafSchema: z.ZodCustom<PackageLeaf, PackageLeaf>;
454
457
  declare const PackageNodeSchema: z.ZodCustom<PackageNode, PackageNode>;
455
458
  //#endregion
456
- export { isShapeGroupNode as $, ShapeConstructGroupSchema as A, SlideDescriptor as B, SectionConstructGroupSchema as C, SectionGroupSchema as D, SectionGroupNode as E, SheetChild as F, isHeadingGroupNode as G, SlideGroupNode as H, SheetDescriptor as I, isPackageLeaf as J, isListGroupNode as K, SheetDescriptorSchema as L, ShapeDescriptorSchema as M, ShapeGroupNode as N, ShapeChild as O, ShapeGroupSchema as P, isShapeConstructGroupNode as Q, SheetGroupNode as R, SectionConstructGroupNode as S, SectionDescriptorSchema as T, SlideGroupSchema as U, SlideDescriptorSchema as V, isDrawPageGroupNode as W, isSectionConstructGroupNode as X, isPackageNode as Y, isSectionGroupNode as Z, PackageLeaf as _, DrawPageGroupSchema as a, PackageNodeSchema as b, HeadingParagraph as c, ListGroupNode as d, isSheetGroupNode as et, ListGroupSchema as f, PackageGroupSchema as g, PackageGroup as h, DrawPageGroupNode as i, ShapeDescriptor as j, ShapeConstructGroupNode as k, HeadingParagraphSchema as l, ListParagraphSchema as m, DrawPageDescriptor as n, HeadingGroupNode as o, ListParagraph as p, isPackageGroup as q, DrawPageDescriptorSchema as r, HeadingGroupSchema as s, DrawPageChild as t, isSlideGroupNode as tt, ListChild as u, PackageLeafSchema as v, SectionDescriptor as w, SectionChild as x, PackageNode as y, SheetGroupSchema as z };
459
+ export { isSectionConstructGroupNode as $, ShapeChild as A, SheetGroupNode as B, SectionChild as C, SectionDescriptorSchema as D, SectionDescriptor as E, ShapeGroupNode as F, SlideGroupSchema as G, SlideDescriptor as H, ShapeGroupSchema as I, isListGroupNode as J, isDrawPageGroupNode as K, SheetChild as L, ShapeConstructGroupSchema as M, ShapeDescriptor as N, SectionGroupNode as O, ShapeDescriptorSchema as P, isPackageNode as Q, SheetDescriptor as R, PackageNodeSchema as S, SectionConstructGroupSchema as T, SlideDescriptorSchema as U, SheetGroupSchema as V, SlideGroupNode as W, isPackageGroup as X, isPackageBlockLeaf as Y, isPackageLeaf as Z, PackageGroup as _, DrawPageGroupSchema as a, PackageLeafSchema as b, HeadingParagraph as c, ListGroupNode as d, isSectionGroupNode as et, ListGroupSchema as f, PackageBlockLeafSchema as g, PackageBlockLeaf as h, DrawPageGroupNode as i, isSlideGroupNode as it, ShapeConstructGroupNode as j, SectionGroupSchema as k, HeadingParagraphSchema as l, ListParagraphSchema as m, DrawPageDescriptor as n, isShapeGroupNode as nt, HeadingGroupNode as o, ListParagraph as p, isHeadingGroupNode as q, DrawPageDescriptorSchema as r, isSheetGroupNode as rt, HeadingGroupSchema as s, DrawPageChild as t, isShapeConstructGroupNode as tt, ListChild as u, PackageGroupSchema as v, SectionConstructGroupNode as w, PackageNode as x, PackageLeaf as y, SheetDescriptorSchema as z };
@@ -1,4 +1,4 @@
1
- import { G as ContentSheetImage, gt as ContentVector, p as ContentEmbeddedObject, t as ContentBlock, v as ContentFormula } from "./content-BN0PWqpt.cjs";
1
+ import { C as ContentFormula, X as ContentSheetImage, f as ContentConstructStart, n as ContentBlock, u as ContentConstructEnd, v as ContentEmbeddedObject, xt as ContentVector } from "./content-BmqzegMG.cjs";
2
2
  import { a as ConstructDescriptor } from "./construct-CdQuI9f5.cjs";
3
3
  import { z } from "zod";
4
4
  //#region src/package-node.d.ts
@@ -375,10 +375,11 @@ declare const ListParagraphSchema: z.ZodObject<{
375
375
  }, z.core.$strip>;
376
376
  }, z.core.$strip>;
377
377
  type ListParagraph = z.infer<typeof ListParagraphSchema>;
378
- type PackageLeaf = ContentBlock | ContentSheetImage | ContentEmbeddedObject | ContentVector | ContentFormula;
379
- type SectionChild = HeadingGroupNode | ListGroupNode | SectionConstructGroupNode | ContentBlock;
380
- type ShapeChild = ListGroupNode | ShapeConstructGroupNode | ContentBlock;
381
- type ListChild = ListGroupNode | ShapeConstructGroupNode | ContentBlock;
378
+ type PackageBlockLeaf = Exclude<ContentBlock, ContentConstructStart | ContentConstructEnd>;
379
+ type PackageLeaf = PackageBlockLeaf | ContentSheetImage | ContentEmbeddedObject | ContentVector | ContentFormula;
380
+ type SectionChild = HeadingGroupNode | ListGroupNode | SectionConstructGroupNode | PackageBlockLeaf;
381
+ type ShapeChild = ListGroupNode | ShapeConstructGroupNode | PackageBlockLeaf;
382
+ type ListChild = ListGroupNode | ShapeConstructGroupNode | PackageBlockLeaf;
382
383
  type SheetChild = ContentSheetImage | ContentEmbeddedObject;
383
384
  type DrawPageChild = ShapeGroupNode | ContentVector;
384
385
  interface SectionGroupNode {
@@ -428,6 +429,8 @@ interface ShapeConstructGroupNode {
428
429
  }
429
430
  type PackageGroup = SectionGroupNode | SlideGroupNode | SheetGroupNode | DrawPageGroupNode | ShapeGroupNode | HeadingGroupNode | ListGroupNode | SectionConstructGroupNode | ShapeConstructGroupNode;
430
431
  type PackageNode = PackageGroup | PackageLeaf;
432
+ declare function isPackageBlockLeaf(value: unknown): value is PackageBlockLeaf;
433
+ declare const PackageBlockLeafSchema: z.ZodCustom<PackageBlockLeaf, PackageBlockLeaf>;
431
434
  declare function isSectionGroupNode(value: unknown): value is SectionGroupNode;
432
435
  declare function isSlideGroupNode(value: unknown): value is SlideGroupNode;
433
436
  declare function isSheetGroupNode(value: unknown): value is SheetGroupNode;
@@ -453,4 +456,4 @@ declare const PackageGroupSchema: z.ZodCustom<PackageGroup, PackageGroup>;
453
456
  declare const PackageLeafSchema: z.ZodCustom<PackageLeaf, PackageLeaf>;
454
457
  declare const PackageNodeSchema: z.ZodCustom<PackageNode, PackageNode>;
455
458
  //#endregion
456
- export { isShapeGroupNode as $, ShapeConstructGroupSchema as A, SlideDescriptor as B, SectionConstructGroupSchema as C, SectionGroupSchema as D, SectionGroupNode as E, SheetChild as F, isHeadingGroupNode as G, SlideGroupNode as H, SheetDescriptor as I, isPackageLeaf as J, isListGroupNode as K, SheetDescriptorSchema as L, ShapeDescriptorSchema as M, ShapeGroupNode as N, ShapeChild as O, ShapeGroupSchema as P, isShapeConstructGroupNode as Q, SheetGroupNode as R, SectionConstructGroupNode as S, SectionDescriptorSchema as T, SlideGroupSchema as U, SlideDescriptorSchema as V, isDrawPageGroupNode as W, isSectionConstructGroupNode as X, isPackageNode as Y, isSectionGroupNode as Z, PackageLeaf as _, DrawPageGroupSchema as a, PackageNodeSchema as b, HeadingParagraph as c, ListGroupNode as d, isSheetGroupNode as et, ListGroupSchema as f, PackageGroupSchema as g, PackageGroup as h, DrawPageGroupNode as i, ShapeDescriptor as j, ShapeConstructGroupNode as k, HeadingParagraphSchema as l, ListParagraphSchema as m, DrawPageDescriptor as n, HeadingGroupNode as o, ListParagraph as p, isPackageGroup as q, DrawPageDescriptorSchema as r, HeadingGroupSchema as s, DrawPageChild as t, isSlideGroupNode as tt, ListChild as u, PackageLeafSchema as v, SectionDescriptor as w, SectionChild as x, PackageNode as y, SheetGroupSchema as z };
459
+ export { isSectionConstructGroupNode as $, ShapeChild as A, SheetGroupNode as B, SectionChild as C, SectionDescriptorSchema as D, SectionDescriptor as E, ShapeGroupNode as F, SlideGroupSchema as G, SlideDescriptor as H, ShapeGroupSchema as I, isListGroupNode as J, isDrawPageGroupNode as K, SheetChild as L, ShapeConstructGroupSchema as M, ShapeDescriptor as N, SectionGroupNode as O, ShapeDescriptorSchema as P, isPackageNode as Q, SheetDescriptor as R, PackageNodeSchema as S, SectionConstructGroupSchema as T, SlideDescriptorSchema as U, SheetGroupSchema as V, SlideGroupNode as W, isPackageGroup as X, isPackageBlockLeaf as Y, isPackageLeaf as Z, PackageGroup as _, DrawPageGroupSchema as a, PackageLeafSchema as b, HeadingParagraph as c, ListGroupNode as d, isSectionGroupNode as et, ListGroupSchema as f, PackageBlockLeafSchema as g, PackageBlockLeaf as h, DrawPageGroupNode as i, isSlideGroupNode as it, ShapeConstructGroupNode as j, SectionGroupSchema as k, HeadingParagraphSchema as l, ListParagraphSchema as m, DrawPageDescriptor as n, isShapeGroupNode as nt, HeadingGroupNode as o, ListParagraph as p, isHeadingGroupNode as q, DrawPageDescriptorSchema as r, isSheetGroupNode as rt, HeadingGroupSchema as s, DrawPageChild as t, isShapeConstructGroupNode as tt, ListChild as u, PackageGroupSchema as v, SectionConstructGroupNode as w, PackageNode as x, PackageLeaf as y, SheetDescriptorSchema as z };
@@ -29,14 +29,19 @@ function isLeafChild(schema, value) {
29
29
  if (isRecord(value) && "style" in value) return false;
30
30
  return schema.safeParse(value).success;
31
31
  }
32
+ function isPackageBlockLeaf(value) {
33
+ if (require_content.isContentConstructStart(value) || require_content.isContentConstructEnd(value)) return false;
34
+ return require_content.isContentBlock(value);
35
+ }
36
+ const PackageBlockLeafSchema = zod.z.custom(isPackageBlockLeaf);
32
37
  function isSectionChild(value) {
33
- return isHeadingGroupNode(value) || isListGroupNode(value) || isSectionConstructGroupNode(value) || isLeafChild(require_content.ContentBlockSchema, value);
38
+ return isHeadingGroupNode(value) || isListGroupNode(value) || isSectionConstructGroupNode(value) || isLeafChild(PackageBlockLeafSchema, value);
34
39
  }
35
40
  function isShapeChild(value) {
36
- return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(require_content.ContentBlockSchema, value);
41
+ return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(PackageBlockLeafSchema, value);
37
42
  }
38
43
  function isListChild(value) {
39
- return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(require_content.ContentBlockSchema, value);
44
+ return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(PackageBlockLeafSchema, value);
40
45
  }
41
46
  function isSheetChild(value) {
42
47
  return isLeafChild(require_content.ContentSheetImageSchema, value) || isLeafChild(require_content.ContentEmbeddedObjectSchema, value);
@@ -72,7 +77,7 @@ function isShapeConstructGroupNode(value) {
72
77
  return isRecord(value) && require_construct.ConstructDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isShapeChild);
73
78
  }
74
79
  const packageLeafUnion = zod.z.union([
75
- require_content.ContentBlockSchema,
80
+ PackageBlockLeafSchema,
76
81
  require_content.ContentSheetImageSchema,
77
82
  require_content.ContentEmbeddedObjectSchema,
78
83
  require_content.ContentVectorSchema,
@@ -106,6 +111,7 @@ exports.HeadingGroupSchema = HeadingGroupSchema;
106
111
  exports.HeadingParagraphSchema = HeadingParagraphSchema;
107
112
  exports.ListGroupSchema = ListGroupSchema;
108
113
  exports.ListParagraphSchema = ListParagraphSchema;
114
+ exports.PackageBlockLeafSchema = PackageBlockLeafSchema;
109
115
  exports.PackageGroupSchema = PackageGroupSchema;
110
116
  exports.PackageLeafSchema = PackageLeafSchema;
111
117
  exports.PackageNodeSchema = PackageNodeSchema;
@@ -122,6 +128,7 @@ exports.SlideGroupSchema = SlideGroupSchema;
122
128
  exports.isDrawPageGroupNode = isDrawPageGroupNode;
123
129
  exports.isHeadingGroupNode = isHeadingGroupNode;
124
130
  exports.isListGroupNode = isListGroupNode;
131
+ exports.isPackageBlockLeaf = isPackageBlockLeaf;
125
132
  exports.isPackageGroup = isPackageGroup;
126
133
  exports.isPackageLeaf = isPackageLeaf;
127
134
  exports.isPackageNode = isPackageNode;
@@ -1,2 +1,2 @@
1
- import { $ as isShapeGroupNode, A as ShapeConstructGroupSchema, B as SlideDescriptor, C as SectionConstructGroupSchema, D as SectionGroupSchema, E as SectionGroupNode, F as SheetChild, G as isHeadingGroupNode, H as SlideGroupNode, I as SheetDescriptor, J as isPackageLeaf, K as isListGroupNode, L as SheetDescriptorSchema, M as ShapeDescriptorSchema, N as ShapeGroupNode, O as ShapeChild, P as ShapeGroupSchema, Q as isShapeConstructGroupNode, R as SheetGroupNode, S as SectionConstructGroupNode, T as SectionDescriptorSchema, U as SlideGroupSchema, V as SlideDescriptorSchema, W as isDrawPageGroupNode, X as isSectionConstructGroupNode, Y as isPackageNode, Z as isSectionGroupNode, _ as PackageLeaf, a as DrawPageGroupSchema, b as PackageNodeSchema, c as HeadingParagraph, d as ListGroupNode, et as isSheetGroupNode, f as ListGroupSchema, g as PackageGroupSchema, h as PackageGroup, i as DrawPageGroupNode, j as ShapeDescriptor, k as ShapeConstructGroupNode, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, o as HeadingGroupNode, p as ListParagraph, q as isPackageGroup, r as DrawPageDescriptorSchema, s as HeadingGroupSchema, t as DrawPageChild, tt as isSlideGroupNode, u as ListChild, v as PackageLeafSchema, w as SectionDescriptor, x as SectionChild, y as PackageNode, z as SheetGroupSchema } from "./package-node-BiUEzIzl.cjs";
2
- export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, PackageGroup, PackageGroupSchema, PackageLeaf, PackageLeafSchema, PackageNode, PackageNodeSchema, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode };
1
+ import { $ as isSectionConstructGroupNode, A as ShapeChild, B as SheetGroupNode, C as SectionChild, D as SectionDescriptorSchema, E as SectionDescriptor, F as ShapeGroupNode, G as SlideGroupSchema, H as SlideDescriptor, I as ShapeGroupSchema, J as isListGroupNode, K as isDrawPageGroupNode, L as SheetChild, M as ShapeConstructGroupSchema, N as ShapeDescriptor, O as SectionGroupNode, P as ShapeDescriptorSchema, Q as isPackageNode, R as SheetDescriptor, S as PackageNodeSchema, T as SectionConstructGroupSchema, U as SlideDescriptorSchema, V as SheetGroupSchema, W as SlideGroupNode, X as isPackageGroup, Y as isPackageBlockLeaf, Z as isPackageLeaf, _ as PackageGroup, a as DrawPageGroupSchema, b as PackageLeafSchema, c as HeadingParagraph, d as ListGroupNode, et as isSectionGroupNode, f as ListGroupSchema, g as PackageBlockLeafSchema, h as PackageBlockLeaf, i as DrawPageGroupNode, it as isSlideGroupNode, j as ShapeConstructGroupNode, k as SectionGroupSchema, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isShapeGroupNode, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isSheetGroupNode, s as HeadingGroupSchema, t as DrawPageChild, tt as isShapeConstructGroupNode, u as ListChild, v as PackageGroupSchema, w as SectionConstructGroupNode, x as PackageNode, y as PackageLeaf, z as SheetDescriptorSchema } from "./package-node-a9CyRaD3.cjs";
2
+ export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, PackageBlockLeaf, PackageBlockLeafSchema, PackageGroup, PackageGroupSchema, PackageLeaf, PackageLeafSchema, PackageNode, PackageNodeSchema, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageBlockLeaf, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode };
@@ -1,2 +1,2 @@
1
- import { $ as isShapeGroupNode, A as ShapeConstructGroupSchema, B as SlideDescriptor, C as SectionConstructGroupSchema, D as SectionGroupSchema, E as SectionGroupNode, F as SheetChild, G as isHeadingGroupNode, H as SlideGroupNode, I as SheetDescriptor, J as isPackageLeaf, K as isListGroupNode, L as SheetDescriptorSchema, M as ShapeDescriptorSchema, N as ShapeGroupNode, O as ShapeChild, P as ShapeGroupSchema, Q as isShapeConstructGroupNode, R as SheetGroupNode, S as SectionConstructGroupNode, T as SectionDescriptorSchema, U as SlideGroupSchema, V as SlideDescriptorSchema, W as isDrawPageGroupNode, X as isSectionConstructGroupNode, Y as isPackageNode, Z as isSectionGroupNode, _ as PackageLeaf, a as DrawPageGroupSchema, b as PackageNodeSchema, c as HeadingParagraph, d as ListGroupNode, et as isSheetGroupNode, f as ListGroupSchema, g as PackageGroupSchema, h as PackageGroup, i as DrawPageGroupNode, j as ShapeDescriptor, k as ShapeConstructGroupNode, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, o as HeadingGroupNode, p as ListParagraph, q as isPackageGroup, r as DrawPageDescriptorSchema, s as HeadingGroupSchema, t as DrawPageChild, tt as isSlideGroupNode, u as ListChild, v as PackageLeafSchema, w as SectionDescriptor, x as SectionChild, y as PackageNode, z as SheetGroupSchema } from "./package-node-DLUobcDQ.js";
2
- export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, PackageGroup, PackageGroupSchema, PackageLeaf, PackageLeafSchema, PackageNode, PackageNodeSchema, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode };
1
+ import { $ as isSectionConstructGroupNode, A as ShapeChild, B as SheetGroupNode, C as SectionChild, D as SectionDescriptorSchema, E as SectionDescriptor, F as ShapeGroupNode, G as SlideGroupSchema, H as SlideDescriptor, I as ShapeGroupSchema, J as isListGroupNode, K as isDrawPageGroupNode, L as SheetChild, M as ShapeConstructGroupSchema, N as ShapeDescriptor, O as SectionGroupNode, P as ShapeDescriptorSchema, Q as isPackageNode, R as SheetDescriptor, S as PackageNodeSchema, T as SectionConstructGroupSchema, U as SlideDescriptorSchema, V as SheetGroupSchema, W as SlideGroupNode, X as isPackageGroup, Y as isPackageBlockLeaf, Z as isPackageLeaf, _ as PackageGroup, a as DrawPageGroupSchema, b as PackageLeafSchema, c as HeadingParagraph, d as ListGroupNode, et as isSectionGroupNode, f as ListGroupSchema, g as PackageBlockLeafSchema, h as PackageBlockLeaf, i as DrawPageGroupNode, it as isSlideGroupNode, j as ShapeConstructGroupNode, k as SectionGroupSchema, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isShapeGroupNode, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isSheetGroupNode, s as HeadingGroupSchema, t as DrawPageChild, tt as isShapeConstructGroupNode, u as ListChild, v as PackageGroupSchema, w as SectionConstructGroupNode, x as PackageNode, y as PackageLeaf, z as SheetDescriptorSchema } from "./package-node-C7RiYhyk.js";
2
+ export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, PackageBlockLeaf, PackageBlockLeafSchema, PackageGroup, PackageGroupSchema, PackageLeaf, PackageLeafSchema, PackageNode, PackageNodeSchema, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageBlockLeaf, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode };
@@ -1,5 +1,5 @@
1
1
  import { ConstructDescriptorSchema } from "./construct.js";
2
- import { ContentBlockSchema, ContentDrawPageSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentListMembershipSchema, ContentParagraphSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetImageSchema, ContentSheetSchema, ContentSlideSchema, ContentVectorSchema } from "./content.js";
2
+ import { ContentDrawPageSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentListMembershipSchema, ContentParagraphSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetImageSchema, ContentSheetSchema, ContentSlideSchema, ContentVectorSchema, isContentBlock, isContentConstructEnd, isContentConstructStart } from "./content.js";
3
3
  import { z } from "zod";
4
4
  //#region src/package-node.ts
5
5
  const SectionDescriptorSchema = ContentSectionSchema.omit({ blocks: true }).extend({ kind: z.literal("section") }).strict();
@@ -28,14 +28,19 @@ function isLeafChild(schema, value) {
28
28
  if (isRecord(value) && "style" in value) return false;
29
29
  return schema.safeParse(value).success;
30
30
  }
31
+ function isPackageBlockLeaf(value) {
32
+ if (isContentConstructStart(value) || isContentConstructEnd(value)) return false;
33
+ return isContentBlock(value);
34
+ }
35
+ const PackageBlockLeafSchema = z.custom(isPackageBlockLeaf);
31
36
  function isSectionChild(value) {
32
- return isHeadingGroupNode(value) || isListGroupNode(value) || isSectionConstructGroupNode(value) || isLeafChild(ContentBlockSchema, value);
37
+ return isHeadingGroupNode(value) || isListGroupNode(value) || isSectionConstructGroupNode(value) || isLeafChild(PackageBlockLeafSchema, value);
33
38
  }
34
39
  function isShapeChild(value) {
35
- return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(ContentBlockSchema, value);
40
+ return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(PackageBlockLeafSchema, value);
36
41
  }
37
42
  function isListChild(value) {
38
- return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(ContentBlockSchema, value);
43
+ return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(PackageBlockLeafSchema, value);
39
44
  }
40
45
  function isSheetChild(value) {
41
46
  return isLeafChild(ContentSheetImageSchema, value) || isLeafChild(ContentEmbeddedObjectSchema, value);
@@ -71,7 +76,7 @@ function isShapeConstructGroupNode(value) {
71
76
  return isRecord(value) && ConstructDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isShapeChild);
72
77
  }
73
78
  const packageLeafUnion = z.union([
74
- ContentBlockSchema,
79
+ PackageBlockLeafSchema,
75
80
  ContentSheetImageSchema,
76
81
  ContentEmbeddedObjectSchema,
77
82
  ContentVectorSchema,
@@ -99,4 +104,4 @@ const PackageGroupSchema = z.custom(isPackageGroup);
99
104
  const PackageLeafSchema = z.custom(isPackageLeaf);
100
105
  const PackageNodeSchema = z.custom(isPackageNode);
101
106
  //#endregion
102
- export { DrawPageDescriptorSchema, DrawPageGroupSchema, HeadingGroupSchema, HeadingParagraphSchema, ListGroupSchema, ListParagraphSchema, PackageGroupSchema, PackageLeafSchema, PackageNodeSchema, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode };
107
+ export { DrawPageDescriptorSchema, DrawPageGroupSchema, HeadingGroupSchema, HeadingParagraphSchema, ListGroupSchema, ListParagraphSchema, PackageBlockLeafSchema, PackageGroupSchema, PackageLeafSchema, PackageNodeSchema, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageBlockLeaf, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode };
@@ -1,6 +1,6 @@
1
1
  import { d as MathMlNode } from "./mathml-B1oTCtzc.cjs";
2
2
  import { s as MathExpression } from "./math-B7gZJeND.cjs";
3
- import { E as SectionGroupNode, H as SlideGroupNode, R as SheetGroupNode, i as DrawPageGroupNode } from "./package-node-BiUEzIzl.cjs";
3
+ import { B as SheetGroupNode, O as SectionGroupNode, W as SlideGroupNode, i as DrawPageGroupNode } from "./package-node-a9CyRaD3.cjs";
4
4
  import { z } from "zod";
5
5
  //#region src/package.d.ts
6
6
  declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
package/dist/package.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { d as MathMlNode } from "./mathml-B1oTCtzc.js";
2
2
  import { s as MathExpression } from "./math-B7gZJeND.js";
3
- import { E as SectionGroupNode, H as SlideGroupNode, R as SheetGroupNode, i as DrawPageGroupNode } from "./package-node-DLUobcDQ.js";
3
+ import { B as SheetGroupNode, O as SectionGroupNode, W as SlideGroupNode, i as DrawPageGroupNode } from "./package-node-C7RiYhyk.js";
4
4
  import { z } from "zod";
5
5
  //#region src/package.d.ts
6
6
  declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{