document-model.js 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -5,14 +5,15 @@ import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t
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
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";
7
7
  import { ContentCodec } from "./codec.cjs";
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";
8
9
  import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.cjs";
9
10
  import { DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StylesTable, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.cjs";
10
11
  import { FontFace, FontRegistryOptions, FontSubstitution, ProvidedFont } from "./font-port.cjs";
11
12
  import { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema } from "./style.cjs";
12
13
  import { LayoutMetadata, LayoutMetadataSchema } from "./metadata.cjs";
13
- import { A as ShapeGroupSchema, B as isDrawPageGroupNode, C as SectionDescriptorSchema, D as ShapeDescriptor, E as ShapeChild, F as SheetGroupSchema, G as isPackageNode, H as isListGroupNode, I as SlideDescriptor, J as isSheetGroupNode, K as isSectionGroupNode, L as SlideDescriptorSchema, M as SheetDescriptor, N as SheetDescriptorSchema, O as ShapeDescriptorSchema, P as SheetGroupNode, R as SlideGroupNode, S as SectionDescriptor, T as SectionGroupSchema, U as isPackageGroup, V as isHeadingGroupNode, W as isPackageLeaf, Y as isSlideGroupNode, _ as PackageLeaf, a as DrawPageGroupSchema, b as PackageNodeSchema, c as HeadingParagraph, d as ListGroupNode, f as ListGroupSchema, g as PackageGroupSchema, h as PackageGroup, i as DrawPageGroupNode, j as SheetChild, k as ShapeGroupNode, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, o as HeadingGroupNode, p as ListParagraph, q as isShapeGroupNode, r as DrawPageDescriptorSchema, s as HeadingGroupSchema, t as DrawPageChild, u as ListChild, v as PackageLeafSchema, w as SectionGroupNode, x as SectionChild, y as PackageNode, z as SlideGroupSchema } from "./package-node-DDPSNOvy.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
15
  import { DocumentPackage, DocumentPackageSchema } from "./package.cjs";
15
16
  import { ContentDocumentJson, DocumentJsonResult, DocumentPackageJson, DocumentSchemaKind, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, schemaUriFor } from "./schema-io.cjs";
16
17
  import { StyledFragment, StyledRun, TextMeasurer, UnderlineMetrics, WrapOptions, WrappedLine } from "./text-layout.cjs";
17
18
  import { MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PositionedFormula } from "./math-layout.cjs";
18
- export { Alignment, AlignmentSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CellPosition, CellRange, Color, ColorSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentCodec, 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, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, ExactRational, ExactRationalSchema, FontFace, FontRegistryOptions, FontSubstitution, FusedNode, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, LayoutFont, LayoutFontSchema, LayoutFrame, LayoutFrameSchema, LayoutMetadata, LayoutMetadataSchema, LayoutSchemaDemotedError, 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, ProvidedFont, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionChild, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, 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, isSectionGroupNode, 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, 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 };
package/dist/index.d.ts CHANGED
@@ -5,14 +5,15 @@ import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t
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
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";
7
7
  import { ContentCodec } from "./codec.js";
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";
8
9
  import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.js";
9
10
  import { DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StylesTable, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.js";
10
11
  import { FontFace, FontRegistryOptions, FontSubstitution, ProvidedFont } from "./font-port.js";
11
12
  import { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema } from "./style.js";
12
13
  import { LayoutMetadata, LayoutMetadataSchema } from "./metadata.js";
13
- import { A as ShapeGroupSchema, B as isDrawPageGroupNode, C as SectionDescriptorSchema, D as ShapeDescriptor, E as ShapeChild, F as SheetGroupSchema, G as isPackageNode, H as isListGroupNode, I as SlideDescriptor, J as isSheetGroupNode, K as isSectionGroupNode, L as SlideDescriptorSchema, M as SheetDescriptor, N as SheetDescriptorSchema, O as ShapeDescriptorSchema, P as SheetGroupNode, R as SlideGroupNode, S as SectionDescriptor, T as SectionGroupSchema, U as isPackageGroup, V as isHeadingGroupNode, W as isPackageLeaf, Y as isSlideGroupNode, _ as PackageLeaf, a as DrawPageGroupSchema, b as PackageNodeSchema, c as HeadingParagraph, d as ListGroupNode, f as ListGroupSchema, g as PackageGroupSchema, h as PackageGroup, i as DrawPageGroupNode, j as SheetChild, k as ShapeGroupNode, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, o as HeadingGroupNode, p as ListParagraph, q as isShapeGroupNode, r as DrawPageDescriptorSchema, s as HeadingGroupSchema, t as DrawPageChild, u as ListChild, v as PackageLeafSchema, w as SectionGroupNode, x as SectionChild, y as PackageNode, z as SlideGroupSchema } from "./package-node-QVFHQcm8.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
15
  import { DocumentPackage, DocumentPackageSchema } from "./package.js";
15
16
  import { ContentDocumentJson, DocumentJsonResult, DocumentPackageJson, DocumentSchemaKind, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, schemaUriFor } from "./schema-io.js";
16
17
  import { StyledFragment, StyledRun, TextMeasurer, UnderlineMetrics, WrapOptions, WrappedLine } from "./text-layout.js";
17
18
  import { MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PositionedFormula } from "./math-layout.js";
18
- export { Alignment, AlignmentSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CellPosition, CellRange, Color, ColorSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentCodec, 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, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, ExactRational, ExactRationalSchema, FontFace, FontRegistryOptions, FontSubstitution, FusedNode, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, LayoutFont, LayoutFontSchema, LayoutFrame, LayoutFrameSchema, LayoutMetadata, LayoutMetadataSchema, LayoutSchemaDemotedError, 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, ProvidedFont, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionChild, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, 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, isSectionGroupNode, 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, 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 };
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { cellReference, columnIndexToLetters, columnLettersToIndex, parseCellReference, parseRangeReference, rangeReference } from "./a1.js";
2
2
  import "./codec.js";
3
3
  import { COLOR_BLACK, ColorSchema, colorToRgbHex, rgbHexToColor } from "./color.js";
4
+ import { AnchorDescriptorSchema, AnchorTypeSchema, ConstructDescriptorSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, DivisionDescriptorSchema, DivisionSourceSchema, FieldDescriptorSchema, LinkDescriptorSchema, LinkTargetSchema, ProvenanceChangeSchema, ProvenanceDescriptorSchema } from "./construct.js";
4
5
  import { DimensionVectorSchema, ExactRationalSchema, MathAppSchema, MathExpressionSchema, MathMatrixSchema, MathNormalisationContextSchema, MathNumSchema, MathPresentationSchema, MathProdSchema, MathProvenanceSchema, MathQtySchema, MathSumSchema, MathSymSchema, MathSymbolEntrySchema, MathUncertaintySchema, MathUnitSchema, MathUnparsedSchema, SI_BASE_DIMENSIONS, SymbolTableSchema, isMathExpression } from "./math.js";
5
6
  import { BoxSchema, LayoutFrameSchema, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN } from "./geometry.js";
6
7
  import { MathMlAttributeSchema, MathMlCdataSchema, MathMlCommentSchema, MathMlDeclarationSchema, MathMlElementSchema, MathMlNodeSchema, MathMlPiSchema, MathMlTextSchema, isMathMlNode } from "./mathml.js";
@@ -8,11 +9,11 @@ import { LayoutMetadataSchema } from "./metadata.js";
8
9
  import { AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFontSchema } from "./style.js";
9
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
11
  import { DefinitionEntrySchema, DefinitionsTableSchema, StyleEntrySchema, StyleParagraphPropertiesSchema, StyleRunPropertiesSchema, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.js";
11
- import { DrawPageDescriptorSchema, DrawPageGroupSchema, HeadingGroupSchema, HeadingParagraphSchema, ListGroupSchema, ListParagraphSchema, PackageGroupSchema, PackageLeafSchema, PackageNodeSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode } from "./package-node.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
13
  import { DocumentPackageSchema } from "./package.js";
13
14
  import { LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, schemaUriFor } from "./schema-io.js";
14
15
  import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.js";
15
16
  import "./font-port.js";
16
17
  import "./text-layout.js";
17
18
  import "./math-layout.js";
18
- export { AlignmentSchema, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, ColorSchema, 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, DEFAULT_LAYOUT_FONT, DecimalStringSchema, DefinitionEntrySchema, DefinitionsTableSchema, DimensionVectorSchema, DocumentPackageSchema, DrawPageDescriptorSchema, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, ExactRationalSchema, HeadingGroupSchema, HeadingParagraphSchema, LayoutFontSchema, LayoutFrameSchema, LayoutMetadataSchema, LayoutSchemaDemotedError, 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, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionDescriptorSchema, SectionGroupSchema, 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, isSectionGroupNode, 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, 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 };
@@ -1,4 +1,5 @@
1
1
  import { G as ContentSheetImage, gt as ContentVector, p as ContentEmbeddedObject, t as ContentBlock, v as ContentFormula } from "./content-BN0PWqpt.cjs";
2
+ import { a as ConstructDescriptor } from "./construct-CdQuI9f5.cjs";
2
3
  import { z } from "zod";
3
4
  //#region src/package-node.d.ts
4
5
  declare const SectionDescriptorSchema: z.ZodObject<{
@@ -25,6 +26,7 @@ declare const SlideDescriptorSchema: z.ZodObject<{
25
26
  }, z.core.$strict>;
26
27
  type SlideDescriptor = z.infer<typeof SlideDescriptorSchema>;
27
28
  declare const SheetDescriptorSchema: z.ZodObject<{
29
+ name: z.ZodString;
28
30
  cells: z.ZodArray<z.ZodObject<{
29
31
  row: z.ZodNumber;
30
32
  column: z.ZodNumber;
@@ -186,7 +188,6 @@ declare const SheetDescriptorSchema: z.ZodObject<{
186
188
  heightPt: z.ZodOptional<z.ZodNumber>;
187
189
  hidden: z.ZodOptional<z.ZodBoolean>;
188
190
  }, z.core.$strip>>;
189
- name: z.ZodString;
190
191
  columns: z.ZodArray<z.ZodObject<{
191
192
  index: z.ZodNumber;
192
193
  widthPt: z.ZodOptional<z.ZodNumber>;
@@ -245,6 +246,7 @@ declare const DrawPageDescriptorSchema: z.ZodObject<{
245
246
  }, z.core.$strict>;
246
247
  type DrawPageDescriptor = z.infer<typeof DrawPageDescriptorSchema>;
247
248
  declare const ShapeDescriptorSchema: z.ZodObject<{
249
+ name: z.ZodOptional<z.ZodString>;
248
250
  sourcePath: z.ZodOptional<z.ZodString>;
249
251
  frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
252
  pageIndex: z.ZodNumber;
@@ -259,7 +261,6 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
259
261
  widthPt: z.ZodNumber;
260
262
  heightPt: z.ZodNumber;
261
263
  }, z.core.$strip>;
262
- name: z.ZodOptional<z.ZodString>;
263
264
  rotationDeg: z.ZodOptional<z.ZodNumber>;
264
265
  insetLeftPt: z.ZodNumber;
265
266
  insetTopPt: z.ZodNumber;
@@ -375,9 +376,9 @@ declare const ListParagraphSchema: z.ZodObject<{
375
376
  }, z.core.$strip>;
376
377
  type ListParagraph = z.infer<typeof ListParagraphSchema>;
377
378
  type PackageLeaf = ContentBlock | ContentSheetImage | ContentEmbeddedObject | ContentVector | ContentFormula;
378
- type SectionChild = HeadingGroupNode | ListGroupNode | ContentBlock;
379
- type ShapeChild = ListGroupNode | ContentBlock;
380
- type ListChild = ListGroupNode | ContentBlock;
379
+ type SectionChild = HeadingGroupNode | ListGroupNode | SectionConstructGroupNode | ContentBlock;
380
+ type ShapeChild = ListGroupNode | ShapeConstructGroupNode | ContentBlock;
381
+ type ListChild = ListGroupNode | ShapeConstructGroupNode | ContentBlock;
381
382
  type SheetChild = ContentSheetImage | ContentEmbeddedObject;
382
383
  type DrawPageChild = ShapeGroupNode | ContentVector;
383
384
  interface SectionGroupNode {
@@ -415,7 +416,17 @@ interface ListGroupNode {
415
416
  style?: string;
416
417
  children: ListChild[];
417
418
  }
418
- type PackageGroup = SectionGroupNode | SlideGroupNode | SheetGroupNode | DrawPageGroupNode | ShapeGroupNode | HeadingGroupNode | ListGroupNode;
419
+ interface SectionConstructGroupNode {
420
+ readonly node: ConstructDescriptor;
421
+ style?: string;
422
+ children: SectionChild[];
423
+ }
424
+ interface ShapeConstructGroupNode {
425
+ readonly node: ConstructDescriptor;
426
+ style?: string;
427
+ children: ShapeChild[];
428
+ }
429
+ type PackageGroup = SectionGroupNode | SlideGroupNode | SheetGroupNode | DrawPageGroupNode | ShapeGroupNode | HeadingGroupNode | ListGroupNode | SectionConstructGroupNode | ShapeConstructGroupNode;
419
430
  type PackageNode = PackageGroup | PackageLeaf;
420
431
  declare function isSectionGroupNode(value: unknown): value is SectionGroupNode;
421
432
  declare function isSlideGroupNode(value: unknown): value is SlideGroupNode;
@@ -424,6 +435,8 @@ declare function isDrawPageGroupNode(value: unknown): value is DrawPageGroupNode
424
435
  declare function isShapeGroupNode(value: unknown): value is ShapeGroupNode;
425
436
  declare function isHeadingGroupNode(value: unknown): value is HeadingGroupNode;
426
437
  declare function isListGroupNode(value: unknown): value is ListGroupNode;
438
+ declare function isSectionConstructGroupNode(value: unknown): value is SectionConstructGroupNode;
439
+ declare function isShapeConstructGroupNode(value: unknown): value is ShapeConstructGroupNode;
427
440
  declare function isPackageLeaf(value: unknown): value is PackageLeaf;
428
441
  declare function isPackageGroup(value: unknown): value is PackageGroup;
429
442
  declare function isPackageNode(value: unknown): value is PackageNode;
@@ -434,8 +447,10 @@ declare const DrawPageGroupSchema: z.ZodCustom<DrawPageGroupNode, DrawPageGroupN
434
447
  declare const ShapeGroupSchema: z.ZodCustom<ShapeGroupNode, ShapeGroupNode>;
435
448
  declare const HeadingGroupSchema: z.ZodCustom<HeadingGroupNode, HeadingGroupNode>;
436
449
  declare const ListGroupSchema: z.ZodCustom<ListGroupNode, ListGroupNode>;
450
+ declare const SectionConstructGroupSchema: z.ZodCustom<SectionConstructGroupNode, SectionConstructGroupNode>;
451
+ declare const ShapeConstructGroupSchema: z.ZodCustom<ShapeConstructGroupNode, ShapeConstructGroupNode>;
437
452
  declare const PackageGroupSchema: z.ZodCustom<PackageGroup, PackageGroup>;
438
453
  declare const PackageLeafSchema: z.ZodCustom<PackageLeaf, PackageLeaf>;
439
454
  declare const PackageNodeSchema: z.ZodCustom<PackageNode, PackageNode>;
440
455
  //#endregion
441
- export { ShapeGroupSchema as A, isDrawPageGroupNode as B, SectionDescriptorSchema as C, ShapeDescriptor as D, ShapeChild as E, SheetGroupSchema as F, isPackageNode as G, isListGroupNode as H, SlideDescriptor as I, isSheetGroupNode as J, isSectionGroupNode as K, SlideDescriptorSchema as L, SheetDescriptor as M, SheetDescriptorSchema as N, ShapeDescriptorSchema as O, SheetGroupNode as P, SlideGroupNode as R, SectionDescriptor as S, SectionGroupSchema as T, isPackageGroup as U, isHeadingGroupNode as V, isPackageLeaf as W, isSlideGroupNode as Y, PackageLeaf as _, DrawPageGroupSchema as a, PackageNodeSchema as b, HeadingParagraph as c, ListGroupNode as d, ListGroupSchema as f, PackageGroupSchema as g, PackageGroup as h, DrawPageGroupNode as i, SheetChild as j, ShapeGroupNode as k, HeadingParagraphSchema as l, ListParagraphSchema as m, DrawPageDescriptor as n, HeadingGroupNode as o, ListParagraph as p, isShapeGroupNode as q, DrawPageDescriptorSchema as r, HeadingGroupSchema as s, DrawPageChild as t, ListChild as u, PackageLeafSchema as v, SectionGroupNode as w, SectionChild as x, PackageNode as y, SlideGroupSchema as z };
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 };
@@ -1,4 +1,5 @@
1
1
  import { G as ContentSheetImage, gt as ContentVector, p as ContentEmbeddedObject, t as ContentBlock, v as ContentFormula } from "./content-CiZf6Fqn.js";
2
+ import { a as ConstructDescriptor } from "./construct-CdQuI9f5.js";
2
3
  import { z } from "zod";
3
4
  //#region src/package-node.d.ts
4
5
  declare const SectionDescriptorSchema: z.ZodObject<{
@@ -25,6 +26,7 @@ declare const SlideDescriptorSchema: z.ZodObject<{
25
26
  }, z.core.$strict>;
26
27
  type SlideDescriptor = z.infer<typeof SlideDescriptorSchema>;
27
28
  declare const SheetDescriptorSchema: z.ZodObject<{
29
+ name: z.ZodString;
28
30
  cells: z.ZodArray<z.ZodObject<{
29
31
  row: z.ZodNumber;
30
32
  column: z.ZodNumber;
@@ -186,7 +188,6 @@ declare const SheetDescriptorSchema: z.ZodObject<{
186
188
  heightPt: z.ZodOptional<z.ZodNumber>;
187
189
  hidden: z.ZodOptional<z.ZodBoolean>;
188
190
  }, z.core.$strip>>;
189
- name: z.ZodString;
190
191
  columns: z.ZodArray<z.ZodObject<{
191
192
  index: z.ZodNumber;
192
193
  widthPt: z.ZodOptional<z.ZodNumber>;
@@ -245,6 +246,7 @@ declare const DrawPageDescriptorSchema: z.ZodObject<{
245
246
  }, z.core.$strict>;
246
247
  type DrawPageDescriptor = z.infer<typeof DrawPageDescriptorSchema>;
247
248
  declare const ShapeDescriptorSchema: z.ZodObject<{
249
+ name: z.ZodOptional<z.ZodString>;
248
250
  sourcePath: z.ZodOptional<z.ZodString>;
249
251
  frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
252
  pageIndex: z.ZodNumber;
@@ -259,7 +261,6 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
259
261
  widthPt: z.ZodNumber;
260
262
  heightPt: z.ZodNumber;
261
263
  }, z.core.$strip>;
262
- name: z.ZodOptional<z.ZodString>;
263
264
  rotationDeg: z.ZodOptional<z.ZodNumber>;
264
265
  insetLeftPt: z.ZodNumber;
265
266
  insetTopPt: z.ZodNumber;
@@ -375,9 +376,9 @@ declare const ListParagraphSchema: z.ZodObject<{
375
376
  }, z.core.$strip>;
376
377
  type ListParagraph = z.infer<typeof ListParagraphSchema>;
377
378
  type PackageLeaf = ContentBlock | ContentSheetImage | ContentEmbeddedObject | ContentVector | ContentFormula;
378
- type SectionChild = HeadingGroupNode | ListGroupNode | ContentBlock;
379
- type ShapeChild = ListGroupNode | ContentBlock;
380
- type ListChild = ListGroupNode | ContentBlock;
379
+ type SectionChild = HeadingGroupNode | ListGroupNode | SectionConstructGroupNode | ContentBlock;
380
+ type ShapeChild = ListGroupNode | ShapeConstructGroupNode | ContentBlock;
381
+ type ListChild = ListGroupNode | ShapeConstructGroupNode | ContentBlock;
381
382
  type SheetChild = ContentSheetImage | ContentEmbeddedObject;
382
383
  type DrawPageChild = ShapeGroupNode | ContentVector;
383
384
  interface SectionGroupNode {
@@ -415,7 +416,17 @@ interface ListGroupNode {
415
416
  style?: string;
416
417
  children: ListChild[];
417
418
  }
418
- type PackageGroup = SectionGroupNode | SlideGroupNode | SheetGroupNode | DrawPageGroupNode | ShapeGroupNode | HeadingGroupNode | ListGroupNode;
419
+ interface SectionConstructGroupNode {
420
+ readonly node: ConstructDescriptor;
421
+ style?: string;
422
+ children: SectionChild[];
423
+ }
424
+ interface ShapeConstructGroupNode {
425
+ readonly node: ConstructDescriptor;
426
+ style?: string;
427
+ children: ShapeChild[];
428
+ }
429
+ type PackageGroup = SectionGroupNode | SlideGroupNode | SheetGroupNode | DrawPageGroupNode | ShapeGroupNode | HeadingGroupNode | ListGroupNode | SectionConstructGroupNode | ShapeConstructGroupNode;
419
430
  type PackageNode = PackageGroup | PackageLeaf;
420
431
  declare function isSectionGroupNode(value: unknown): value is SectionGroupNode;
421
432
  declare function isSlideGroupNode(value: unknown): value is SlideGroupNode;
@@ -424,6 +435,8 @@ declare function isDrawPageGroupNode(value: unknown): value is DrawPageGroupNode
424
435
  declare function isShapeGroupNode(value: unknown): value is ShapeGroupNode;
425
436
  declare function isHeadingGroupNode(value: unknown): value is HeadingGroupNode;
426
437
  declare function isListGroupNode(value: unknown): value is ListGroupNode;
438
+ declare function isSectionConstructGroupNode(value: unknown): value is SectionConstructGroupNode;
439
+ declare function isShapeConstructGroupNode(value: unknown): value is ShapeConstructGroupNode;
427
440
  declare function isPackageLeaf(value: unknown): value is PackageLeaf;
428
441
  declare function isPackageGroup(value: unknown): value is PackageGroup;
429
442
  declare function isPackageNode(value: unknown): value is PackageNode;
@@ -434,8 +447,10 @@ declare const DrawPageGroupSchema: z.ZodCustom<DrawPageGroupNode, DrawPageGroupN
434
447
  declare const ShapeGroupSchema: z.ZodCustom<ShapeGroupNode, ShapeGroupNode>;
435
448
  declare const HeadingGroupSchema: z.ZodCustom<HeadingGroupNode, HeadingGroupNode>;
436
449
  declare const ListGroupSchema: z.ZodCustom<ListGroupNode, ListGroupNode>;
450
+ declare const SectionConstructGroupSchema: z.ZodCustom<SectionConstructGroupNode, SectionConstructGroupNode>;
451
+ declare const ShapeConstructGroupSchema: z.ZodCustom<ShapeConstructGroupNode, ShapeConstructGroupNode>;
437
452
  declare const PackageGroupSchema: z.ZodCustom<PackageGroup, PackageGroup>;
438
453
  declare const PackageLeafSchema: z.ZodCustom<PackageLeaf, PackageLeaf>;
439
454
  declare const PackageNodeSchema: z.ZodCustom<PackageNode, PackageNode>;
440
455
  //#endregion
441
- export { ShapeGroupSchema as A, isDrawPageGroupNode as B, SectionDescriptorSchema as C, ShapeDescriptor as D, ShapeChild as E, SheetGroupSchema as F, isPackageNode as G, isListGroupNode as H, SlideDescriptor as I, isSheetGroupNode as J, isSectionGroupNode as K, SlideDescriptorSchema as L, SheetDescriptor as M, SheetDescriptorSchema as N, ShapeDescriptorSchema as O, SheetGroupNode as P, SlideGroupNode as R, SectionDescriptor as S, SectionGroupSchema as T, isPackageGroup as U, isHeadingGroupNode as V, isPackageLeaf as W, isSlideGroupNode as Y, PackageLeaf as _, DrawPageGroupSchema as a, PackageNodeSchema as b, HeadingParagraph as c, ListGroupNode as d, ListGroupSchema as f, PackageGroupSchema as g, PackageGroup as h, DrawPageGroupNode as i, SheetChild as j, ShapeGroupNode as k, HeadingParagraphSchema as l, ListParagraphSchema as m, DrawPageDescriptor as n, HeadingGroupNode as o, ListParagraph as p, isShapeGroupNode as q, DrawPageDescriptorSchema as r, HeadingGroupSchema as s, DrawPageChild as t, ListChild as u, PackageLeafSchema as v, SectionGroupNode as w, SectionChild as x, PackageNode as y, SlideGroupSchema as z };
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 };
@@ -1,4 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_construct = require("./construct.cjs");
2
3
  const require_content = require("./content.cjs");
3
4
  let zod = require("zod");
4
5
  //#region src/package-node.ts
@@ -29,13 +30,13 @@ function isLeafChild(schema, value) {
29
30
  return schema.safeParse(value).success;
30
31
  }
31
32
  function isSectionChild(value) {
32
- return isHeadingGroupNode(value) || isListGroupNode(value) || isLeafChild(require_content.ContentBlockSchema, value);
33
+ return isHeadingGroupNode(value) || isListGroupNode(value) || isSectionConstructGroupNode(value) || isLeafChild(require_content.ContentBlockSchema, value);
33
34
  }
34
35
  function isShapeChild(value) {
35
- return isListGroupNode(value) || isLeafChild(require_content.ContentBlockSchema, value);
36
+ return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(require_content.ContentBlockSchema, value);
36
37
  }
37
38
  function isListChild(value) {
38
- return isListGroupNode(value) || isLeafChild(require_content.ContentBlockSchema, value);
39
+ return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(require_content.ContentBlockSchema, value);
39
40
  }
40
41
  function isSheetChild(value) {
41
42
  return isLeafChild(require_content.ContentSheetImageSchema, value) || isLeafChild(require_content.ContentEmbeddedObjectSchema, value);
@@ -44,25 +45,31 @@ function isDrawPageChild(value) {
44
45
  return isShapeGroupNode(value) || isLeafChild(require_content.ContentVectorSchema, value);
45
46
  }
46
47
  function isSectionGroupNode(value) {
47
- return isRecord(value) && isGroupWrapper(value, isSectionChild) && SectionDescriptorSchema.safeParse(value.node).success;
48
+ return isRecord(value) && SectionDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isSectionChild);
48
49
  }
49
50
  function isSlideGroupNode(value) {
50
- return isRecord(value) && isGroupWrapper(value, isShapeGroupNode) && SlideDescriptorSchema.safeParse(value.node).success;
51
+ return isRecord(value) && SlideDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isShapeGroupNode);
51
52
  }
52
53
  function isSheetGroupNode(value) {
53
- return isRecord(value) && isGroupWrapper(value, isSheetChild) && SheetDescriptorSchema.safeParse(value.node).success;
54
+ return isRecord(value) && SheetDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isSheetChild);
54
55
  }
55
56
  function isDrawPageGroupNode(value) {
56
- return isRecord(value) && isGroupWrapper(value, isDrawPageChild) && DrawPageDescriptorSchema.safeParse(value.node).success;
57
+ return isRecord(value) && DrawPageDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isDrawPageChild);
57
58
  }
58
59
  function isShapeGroupNode(value) {
59
- return isRecord(value) && isGroupWrapper(value, isShapeChild) && ShapeDescriptorSchema.safeParse(value.node).success;
60
+ return isRecord(value) && ShapeDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isShapeChild);
60
61
  }
61
62
  function isHeadingGroupNode(value) {
62
- return isRecord(value) && isGroupWrapper(value, isSectionChild) && HeadingParagraphSchema.safeParse(value.node).success;
63
+ return isRecord(value) && HeadingParagraphSchema.safeParse(value.node).success && isGroupWrapper(value, isSectionChild);
63
64
  }
64
65
  function isListGroupNode(value) {
65
- return isRecord(value) && isGroupWrapper(value, isListChild) && ListParagraphSchema.safeParse(value.node).success;
66
+ return isRecord(value) && ListParagraphSchema.safeParse(value.node).success && isGroupWrapper(value, isListChild);
67
+ }
68
+ function isSectionConstructGroupNode(value) {
69
+ return isRecord(value) && require_construct.ConstructDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isSectionChild);
70
+ }
71
+ function isShapeConstructGroupNode(value) {
72
+ return isRecord(value) && require_construct.ConstructDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isShapeChild);
66
73
  }
67
74
  const packageLeafUnion = zod.z.union([
68
75
  require_content.ContentBlockSchema,
@@ -75,7 +82,7 @@ function isPackageLeaf(value) {
75
82
  return packageLeafUnion.safeParse(value).success;
76
83
  }
77
84
  function isPackageGroup(value) {
78
- return isSectionGroupNode(value) || isSlideGroupNode(value) || isSheetGroupNode(value) || isDrawPageGroupNode(value) || isShapeGroupNode(value) || isHeadingGroupNode(value) || isListGroupNode(value);
85
+ return isSectionGroupNode(value) || isSlideGroupNode(value) || isSheetGroupNode(value) || isDrawPageGroupNode(value) || isShapeGroupNode(value) || isHeadingGroupNode(value) || isListGroupNode(value) || isSectionConstructGroupNode(value) || isShapeConstructGroupNode(value);
79
86
  }
80
87
  function isPackageNode(value) {
81
88
  return isPackageGroup(value) || isPackageLeaf(value);
@@ -87,6 +94,8 @@ const DrawPageGroupSchema = zod.z.custom(isDrawPageGroupNode);
87
94
  const ShapeGroupSchema = zod.z.custom(isShapeGroupNode);
88
95
  const HeadingGroupSchema = zod.z.custom(isHeadingGroupNode);
89
96
  const ListGroupSchema = zod.z.custom(isListGroupNode);
97
+ const SectionConstructGroupSchema = zod.z.custom(isSectionConstructGroupNode);
98
+ const ShapeConstructGroupSchema = zod.z.custom(isShapeConstructGroupNode);
90
99
  const PackageGroupSchema = zod.z.custom(isPackageGroup);
91
100
  const PackageLeafSchema = zod.z.custom(isPackageLeaf);
92
101
  const PackageNodeSchema = zod.z.custom(isPackageNode);
@@ -100,8 +109,10 @@ exports.ListParagraphSchema = ListParagraphSchema;
100
109
  exports.PackageGroupSchema = PackageGroupSchema;
101
110
  exports.PackageLeafSchema = PackageLeafSchema;
102
111
  exports.PackageNodeSchema = PackageNodeSchema;
112
+ exports.SectionConstructGroupSchema = SectionConstructGroupSchema;
103
113
  exports.SectionDescriptorSchema = SectionDescriptorSchema;
104
114
  exports.SectionGroupSchema = SectionGroupSchema;
115
+ exports.ShapeConstructGroupSchema = ShapeConstructGroupSchema;
105
116
  exports.ShapeDescriptorSchema = ShapeDescriptorSchema;
106
117
  exports.ShapeGroupSchema = ShapeGroupSchema;
107
118
  exports.SheetDescriptorSchema = SheetDescriptorSchema;
@@ -114,7 +125,9 @@ exports.isListGroupNode = isListGroupNode;
114
125
  exports.isPackageGroup = isPackageGroup;
115
126
  exports.isPackageLeaf = isPackageLeaf;
116
127
  exports.isPackageNode = isPackageNode;
128
+ exports.isSectionConstructGroupNode = isSectionConstructGroupNode;
117
129
  exports.isSectionGroupNode = isSectionGroupNode;
130
+ exports.isShapeConstructGroupNode = isShapeConstructGroupNode;
118
131
  exports.isShapeGroupNode = isShapeGroupNode;
119
132
  exports.isSheetGroupNode = isSheetGroupNode;
120
133
  exports.isSlideGroupNode = isSlideGroupNode;
@@ -1,2 +1,2 @@
1
- import { A as ShapeGroupSchema, B as isDrawPageGroupNode, C as SectionDescriptorSchema, D as ShapeDescriptor, E as ShapeChild, F as SheetGroupSchema, G as isPackageNode, H as isListGroupNode, I as SlideDescriptor, J as isSheetGroupNode, K as isSectionGroupNode, L as SlideDescriptorSchema, M as SheetDescriptor, N as SheetDescriptorSchema, O as ShapeDescriptorSchema, P as SheetGroupNode, R as SlideGroupNode, S as SectionDescriptor, T as SectionGroupSchema, U as isPackageGroup, V as isHeadingGroupNode, W as isPackageLeaf, Y as isSlideGroupNode, _ as PackageLeaf, a as DrawPageGroupSchema, b as PackageNodeSchema, c as HeadingParagraph, d as ListGroupNode, f as ListGroupSchema, g as PackageGroupSchema, h as PackageGroup, i as DrawPageGroupNode, j as SheetChild, k as ShapeGroupNode, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, o as HeadingGroupNode, p as ListParagraph, q as isShapeGroupNode, r as DrawPageDescriptorSchema, s as HeadingGroupSchema, t as DrawPageChild, u as ListChild, v as PackageLeafSchema, w as SectionGroupNode, x as SectionChild, y as PackageNode, z as SlideGroupSchema } from "./package-node-DDPSNOvy.cjs";
2
- export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, PackageGroup, PackageGroupSchema, PackageLeaf, PackageLeafSchema, PackageNode, PackageNodeSchema, SectionChild, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode };
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,2 +1,2 @@
1
- import { A as ShapeGroupSchema, B as isDrawPageGroupNode, C as SectionDescriptorSchema, D as ShapeDescriptor, E as ShapeChild, F as SheetGroupSchema, G as isPackageNode, H as isListGroupNode, I as SlideDescriptor, J as isSheetGroupNode, K as isSectionGroupNode, L as SlideDescriptorSchema, M as SheetDescriptor, N as SheetDescriptorSchema, O as ShapeDescriptorSchema, P as SheetGroupNode, R as SlideGroupNode, S as SectionDescriptor, T as SectionGroupSchema, U as isPackageGroup, V as isHeadingGroupNode, W as isPackageLeaf, Y as isSlideGroupNode, _ as PackageLeaf, a as DrawPageGroupSchema, b as PackageNodeSchema, c as HeadingParagraph, d as ListGroupNode, f as ListGroupSchema, g as PackageGroupSchema, h as PackageGroup, i as DrawPageGroupNode, j as SheetChild, k as ShapeGroupNode, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, o as HeadingGroupNode, p as ListParagraph, q as isShapeGroupNode, r as DrawPageDescriptorSchema, s as HeadingGroupSchema, t as DrawPageChild, u as ListChild, v as PackageLeafSchema, w as SectionGroupNode, x as SectionChild, y as PackageNode, z as SlideGroupSchema } from "./package-node-QVFHQcm8.js";
2
- export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, PackageGroup, PackageGroupSchema, PackageLeaf, PackageLeafSchema, PackageNode, PackageNodeSchema, SectionChild, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode };
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,3 +1,4 @@
1
+ import { ConstructDescriptorSchema } from "./construct.js";
1
2
  import { ContentBlockSchema, ContentDrawPageSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentListMembershipSchema, ContentParagraphSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetImageSchema, ContentSheetSchema, ContentSlideSchema, ContentVectorSchema } from "./content.js";
2
3
  import { z } from "zod";
3
4
  //#region src/package-node.ts
@@ -28,13 +29,13 @@ function isLeafChild(schema, value) {
28
29
  return schema.safeParse(value).success;
29
30
  }
30
31
  function isSectionChild(value) {
31
- return isHeadingGroupNode(value) || isListGroupNode(value) || isLeafChild(ContentBlockSchema, value);
32
+ return isHeadingGroupNode(value) || isListGroupNode(value) || isSectionConstructGroupNode(value) || isLeafChild(ContentBlockSchema, value);
32
33
  }
33
34
  function isShapeChild(value) {
34
- return isListGroupNode(value) || isLeafChild(ContentBlockSchema, value);
35
+ return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(ContentBlockSchema, value);
35
36
  }
36
37
  function isListChild(value) {
37
- return isListGroupNode(value) || isLeafChild(ContentBlockSchema, value);
38
+ return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(ContentBlockSchema, value);
38
39
  }
39
40
  function isSheetChild(value) {
40
41
  return isLeafChild(ContentSheetImageSchema, value) || isLeafChild(ContentEmbeddedObjectSchema, value);
@@ -43,25 +44,31 @@ function isDrawPageChild(value) {
43
44
  return isShapeGroupNode(value) || isLeafChild(ContentVectorSchema, value);
44
45
  }
45
46
  function isSectionGroupNode(value) {
46
- return isRecord(value) && isGroupWrapper(value, isSectionChild) && SectionDescriptorSchema.safeParse(value.node).success;
47
+ return isRecord(value) && SectionDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isSectionChild);
47
48
  }
48
49
  function isSlideGroupNode(value) {
49
- return isRecord(value) && isGroupWrapper(value, isShapeGroupNode) && SlideDescriptorSchema.safeParse(value.node).success;
50
+ return isRecord(value) && SlideDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isShapeGroupNode);
50
51
  }
51
52
  function isSheetGroupNode(value) {
52
- return isRecord(value) && isGroupWrapper(value, isSheetChild) && SheetDescriptorSchema.safeParse(value.node).success;
53
+ return isRecord(value) && SheetDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isSheetChild);
53
54
  }
54
55
  function isDrawPageGroupNode(value) {
55
- return isRecord(value) && isGroupWrapper(value, isDrawPageChild) && DrawPageDescriptorSchema.safeParse(value.node).success;
56
+ return isRecord(value) && DrawPageDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isDrawPageChild);
56
57
  }
57
58
  function isShapeGroupNode(value) {
58
- return isRecord(value) && isGroupWrapper(value, isShapeChild) && ShapeDescriptorSchema.safeParse(value.node).success;
59
+ return isRecord(value) && ShapeDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isShapeChild);
59
60
  }
60
61
  function isHeadingGroupNode(value) {
61
- return isRecord(value) && isGroupWrapper(value, isSectionChild) && HeadingParagraphSchema.safeParse(value.node).success;
62
+ return isRecord(value) && HeadingParagraphSchema.safeParse(value.node).success && isGroupWrapper(value, isSectionChild);
62
63
  }
63
64
  function isListGroupNode(value) {
64
- return isRecord(value) && isGroupWrapper(value, isListChild) && ListParagraphSchema.safeParse(value.node).success;
65
+ return isRecord(value) && ListParagraphSchema.safeParse(value.node).success && isGroupWrapper(value, isListChild);
66
+ }
67
+ function isSectionConstructGroupNode(value) {
68
+ return isRecord(value) && ConstructDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isSectionChild);
69
+ }
70
+ function isShapeConstructGroupNode(value) {
71
+ return isRecord(value) && ConstructDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isShapeChild);
65
72
  }
66
73
  const packageLeafUnion = z.union([
67
74
  ContentBlockSchema,
@@ -74,7 +81,7 @@ function isPackageLeaf(value) {
74
81
  return packageLeafUnion.safeParse(value).success;
75
82
  }
76
83
  function isPackageGroup(value) {
77
- return isSectionGroupNode(value) || isSlideGroupNode(value) || isSheetGroupNode(value) || isDrawPageGroupNode(value) || isShapeGroupNode(value) || isHeadingGroupNode(value) || isListGroupNode(value);
84
+ return isSectionGroupNode(value) || isSlideGroupNode(value) || isSheetGroupNode(value) || isDrawPageGroupNode(value) || isShapeGroupNode(value) || isHeadingGroupNode(value) || isListGroupNode(value) || isSectionConstructGroupNode(value) || isShapeConstructGroupNode(value);
78
85
  }
79
86
  function isPackageNode(value) {
80
87
  return isPackageGroup(value) || isPackageLeaf(value);
@@ -86,8 +93,10 @@ const DrawPageGroupSchema = z.custom(isDrawPageGroupNode);
86
93
  const ShapeGroupSchema = z.custom(isShapeGroupNode);
87
94
  const HeadingGroupSchema = z.custom(isHeadingGroupNode);
88
95
  const ListGroupSchema = z.custom(isListGroupNode);
96
+ const SectionConstructGroupSchema = z.custom(isSectionConstructGroupNode);
97
+ const ShapeConstructGroupSchema = z.custom(isShapeConstructGroupNode);
89
98
  const PackageGroupSchema = z.custom(isPackageGroup);
90
99
  const PackageLeafSchema = z.custom(isPackageLeaf);
91
100
  const PackageNodeSchema = z.custom(isPackageNode);
92
101
  //#endregion
93
- export { DrawPageDescriptorSchema, DrawPageGroupSchema, HeadingGroupSchema, HeadingParagraphSchema, ListGroupSchema, ListParagraphSchema, PackageGroupSchema, PackageLeafSchema, PackageNodeSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode };
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 };
package/dist/package.cjs CHANGED
@@ -11,7 +11,10 @@ const packageEnvelopeFields = {
11
11
  ...require_content.contentDocumentSharedFields,
12
12
  pages: zod.z.array(require_geometry.PageSizeSchema).optional(),
13
13
  styles: require_definitions.StylesTableSchema.optional(),
14
- definitions: require_definitions.DefinitionsTableSchema.optional()
14
+ definitions: require_definitions.DefinitionsTableSchema.optional(),
15
+ layers: require_definitions.DefinitionsTableSchema.optional(),
16
+ attachments: require_definitions.DefinitionsTableSchema.optional(),
17
+ destinations: require_definitions.DefinitionsTableSchema.optional()
15
18
  };
16
19
  const DocumentPackageSchema = zod.z.discriminatedUnion("kind", [
17
20
  zod.z.object({