document-model.js 3.3.0 → 4.0.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.
Files changed (41) hide show
  1. package/README.md +82 -31
  2. package/dist/codec.d.cts +2 -7
  3. package/dist/codec.d.ts +2 -7
  4. package/dist/content-BN0PWqpt.d.cts +2393 -0
  5. package/dist/content-CiZf6Fqn.d.ts +2393 -0
  6. package/dist/content-json-schema-defs.cjs +1005 -0
  7. package/dist/content-json-schema-defs.js +1005 -0
  8. package/dist/content.cjs +1 -7
  9. package/dist/content.d.cts +2 -2354
  10. package/dist/content.d.ts +2 -2354
  11. package/dist/content.js +1 -7
  12. package/dist/definitions.cjs +109 -0
  13. package/dist/definitions.d.cts +115 -0
  14. package/dist/definitions.d.ts +115 -0
  15. package/dist/definitions.js +99 -0
  16. package/dist/index.cjs +42 -18
  17. package/dist/index.d.cts +7 -6
  18. package/dist/index.d.ts +7 -6
  19. package/dist/index.js +6 -5
  20. package/dist/package-node-DDPSNOvy.d.cts +441 -0
  21. package/dist/package-node-QVFHQcm8.d.ts +441 -0
  22. package/dist/package-node.cjs +120 -0
  23. package/dist/package-node.d.cts +2 -0
  24. package/dist/package-node.d.ts +2 -0
  25. package/dist/package-node.js +93 -0
  26. package/dist/package.cjs +37 -7
  27. package/dist/package.d.cts +452 -755
  28. package/dist/package.d.ts +452 -755
  29. package/dist/package.js +39 -8
  30. package/dist/schema-io.cjs +55 -25
  31. package/dist/schema-io.d.cts +13 -11
  32. package/dist/schema-io.d.ts +13 -11
  33. package/dist/schema-io.js +54 -25
  34. package/package.json +2 -2
  35. package/schemas/content-document.schema.json +1476 -68
  36. package/schemas/document-package.schema.json +3056 -30
  37. package/dist/layout.cjs +0 -150
  38. package/dist/layout.d.cts +0 -684
  39. package/dist/layout.d.ts +0 -684
  40. package/dist/layout.js +0 -136
  41. package/schemas/layout-document.schema.json +0 -760
package/dist/index.d.cts CHANGED
@@ -3,15 +3,16 @@ 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 { CONTENT_FORMAT_VERSION, 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, isContentBlock } from "./content.cjs";
7
- import { LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutItem, LayoutItemSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutPage, LayoutPageSchema, LayoutPath, LayoutPathSchema, LayoutPathSegment, LayoutPathSegmentSchema, LayoutRect, LayoutRectSchema, LayoutSubpath, LayoutSubpathSchema, LayoutText, LayoutTextSchema } from "./layout.cjs";
8
- import { ContentCodec, LayoutCodec } from "./codec.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";
7
+ import { ContentCodec } from "./codec.cjs";
9
8
  import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.cjs";
9
+ import { DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StylesTable, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.cjs";
10
10
  import { FontFace, FontRegistryOptions, FontSubstitution, ProvidedFont } from "./font-port.cjs";
11
11
  import { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema } from "./style.cjs";
12
12
  import { LayoutMetadata, LayoutMetadataSchema } from "./metadata.cjs";
13
- import { DOCUMENT_PACKAGE_FORMAT_VERSION, DocumentPackage, DocumentPackageSchema } from "./package.cjs";
14
- import { ContentDocumentJson, DocumentJsonResult, DocumentPackageJson, DocumentSchemaKind, LayoutDocumentJson, SCHEMA_FILE_NAMES, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, layoutDocumentWithSchema, schemaUriFor } from "./schema-io.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 { DocumentPackage, DocumentPackageSchema } from "./package.cjs";
15
+ import { ContentDocumentJson, DocumentJsonResult, DocumentPackageJson, DocumentSchemaKind, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, schemaUriFor } from "./schema-io.cjs";
15
16
  import { StyledFragment, StyledRun, TextMeasurer, UnderlineMetrics, WrapOptions, WrappedLine } from "./text-layout.cjs";
16
17
  import { MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PositionedFormula } from "./math-layout.cjs";
17
- export { Alignment, AlignmentSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CONTENT_FORMAT_VERSION, 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, DOCUMENT_PACKAGE_FORMAT_VERSION, DecimalString, DecimalStringSchema, DimensionVector, DimensionVectorSchema, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, EMBEDDED_OBJECT_KINDS, ExactRational, ExactRationalSchema, FontFace, FontRegistryOptions, FontSubstitution, FusedNode, LAYOUT_FORMAT_VERSION, LayoutCodec, LayoutDocument, LayoutDocumentJson, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutFont, LayoutFontSchema, LayoutFrame, LayoutFrameSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutItem, LayoutItemSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutMetadata, LayoutMetadataSchema, LayoutPage, LayoutPageSchema, LayoutPath, LayoutPathSchema, LayoutPathSegment, LayoutPathSegmentSchema, LayoutRect, LayoutRectSchema, LayoutSubpath, LayoutSubpathSchema, LayoutText, LayoutTextSchema, 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, PageSize, PageSizeSchema, Point, PositionedFormula, ProvidedFont, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SiBaseDimension, StyledFragment, StyledRun, SymbolTable, SymbolTableSchema, TextMeasurer, UnderlineMetrics, UnrecognizedDocumentSchemaError, WrapOptions, WrappedLine, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, isMathExpression, isMathMlNode, layoutDocumentWithSchema, parseCellReference, parseRangeReference, rangeReference, rgbHexToColor, schemaUriFor };
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 };
package/dist/index.d.ts CHANGED
@@ -3,15 +3,16 @@ 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 { CONTENT_FORMAT_VERSION, 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, isContentBlock } from "./content.js";
7
- import { LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutItem, LayoutItemSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutPage, LayoutPageSchema, LayoutPath, LayoutPathSchema, LayoutPathSegment, LayoutPathSegmentSchema, LayoutRect, LayoutRectSchema, LayoutSubpath, LayoutSubpathSchema, LayoutText, LayoutTextSchema } from "./layout.js";
8
- import { ContentCodec, LayoutCodec } from "./codec.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";
7
+ import { ContentCodec } from "./codec.js";
9
8
  import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.js";
9
+ import { DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StylesTable, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.js";
10
10
  import { FontFace, FontRegistryOptions, FontSubstitution, ProvidedFont } from "./font-port.js";
11
11
  import { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema } from "./style.js";
12
12
  import { LayoutMetadata, LayoutMetadataSchema } from "./metadata.js";
13
- import { DOCUMENT_PACKAGE_FORMAT_VERSION, DocumentPackage, DocumentPackageSchema } from "./package.js";
14
- import { ContentDocumentJson, DocumentJsonResult, DocumentPackageJson, DocumentSchemaKind, LayoutDocumentJson, SCHEMA_FILE_NAMES, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, layoutDocumentWithSchema, schemaUriFor } from "./schema-io.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 { DocumentPackage, DocumentPackageSchema } from "./package.js";
15
+ import { ContentDocumentJson, DocumentJsonResult, DocumentPackageJson, DocumentSchemaKind, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, schemaUriFor } from "./schema-io.js";
15
16
  import { StyledFragment, StyledRun, TextMeasurer, UnderlineMetrics, WrapOptions, WrappedLine } from "./text-layout.js";
16
17
  import { MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PositionedFormula } from "./math-layout.js";
17
- export { Alignment, AlignmentSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CONTENT_FORMAT_VERSION, 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, DOCUMENT_PACKAGE_FORMAT_VERSION, DecimalString, DecimalStringSchema, DimensionVector, DimensionVectorSchema, DocumentJsonResult, DocumentPackage, DocumentPackageJson, DocumentPackageSchema, DocumentSchemaKind, EMBEDDED_OBJECT_KINDS, ExactRational, ExactRationalSchema, FontFace, FontRegistryOptions, FontSubstitution, FusedNode, LAYOUT_FORMAT_VERSION, LayoutCodec, LayoutDocument, LayoutDocumentJson, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutFont, LayoutFontSchema, LayoutFrame, LayoutFrameSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutItem, LayoutItemSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutMetadata, LayoutMetadataSchema, LayoutPage, LayoutPageSchema, LayoutPath, LayoutPathSchema, LayoutPathSegment, LayoutPathSegmentSchema, LayoutRect, LayoutRectSchema, LayoutSubpath, LayoutSubpathSchema, LayoutText, LayoutTextSchema, 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, PageSize, PageSizeSchema, Point, PositionedFormula, ProvidedFont, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SiBaseDimension, StyledFragment, StyledRun, SymbolTable, SymbolTableSchema, TextMeasurer, UnderlineMetrics, UnrecognizedDocumentSchemaError, WrapOptions, WrappedLine, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, isMathExpression, isMathMlNode, layoutDocumentWithSchema, parseCellReference, parseRangeReference, rangeReference, rgbHexToColor, schemaUriFor };
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 };
package/dist/index.js CHANGED
@@ -6,12 +6,13 @@ import { BoxSchema, LayoutFrameSchema, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LE
6
6
  import { MathMlAttributeSchema, MathMlCdataSchema, MathMlCommentSchema, MathMlDeclarationSchema, MathMlElementSchema, MathMlNodeSchema, MathMlPiSchema, MathMlTextSchema, isMathMlNode } from "./mathml.js";
7
7
  import { LayoutMetadataSchema } from "./metadata.js";
8
8
  import { AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFontSchema } from "./style.js";
9
- import { CONTENT_FORMAT_VERSION, 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, isContentBlock } from "./content.js";
10
- import { LAYOUT_FORMAT_VERSION, LayoutDocumentSchema, LayoutEllipseSchema, LayoutImageAssetSchema, LayoutImageSchema, LayoutItemSchema, LayoutLineSchema, LayoutLinkSchema, LayoutPageSchema, LayoutPathSchema, LayoutPathSegmentSchema, LayoutRectSchema, LayoutSubpathSchema, LayoutTextSchema } from "./layout.js";
11
- import { DOCUMENT_PACKAGE_FORMAT_VERSION, DocumentPackageSchema } from "./package.js";
12
- import { SCHEMA_FILE_NAMES, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, layoutDocumentWithSchema, schemaUriFor } from "./schema-io.js";
9
+ 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 { 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 { DocumentPackageSchema } from "./package.js";
13
+ import { LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, schemaUriFor } from "./schema-io.js";
13
14
  import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.js";
14
15
  import "./font-port.js";
15
16
  import "./text-layout.js";
16
17
  import "./math-layout.js";
17
- export { AlignmentSchema, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CONTENT_FORMAT_VERSION, 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, DOCUMENT_PACKAGE_FORMAT_VERSION, DecimalStringSchema, DimensionVectorSchema, DocumentPackageSchema, EMBEDDED_OBJECT_KINDS, ExactRationalSchema, LAYOUT_FORMAT_VERSION, LayoutDocumentSchema, LayoutEllipseSchema, LayoutFontSchema, LayoutFrameSchema, LayoutImageAssetSchema, LayoutImageSchema, LayoutItemSchema, LayoutLineSchema, LayoutLinkSchema, LayoutMetadataSchema, LayoutPageSchema, LayoutPathSchema, LayoutPathSegmentSchema, LayoutRectSchema, LayoutSubpathSchema, LayoutTextSchema, 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, PageSizeSchema, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SymbolTableSchema, UnrecognizedDocumentSchemaError, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, isContentBlock, isMathExpression, isMathMlNode, layoutDocumentWithSchema, parseCellReference, parseRangeReference, rangeReference, rgbHexToColor, schemaUriFor };
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 };
@@ -0,0 +1,441 @@
1
+ import { G as ContentSheetImage, gt as ContentVector, p as ContentEmbeddedObject, t as ContentBlock, v as ContentFormula } from "./content-BN0PWqpt.cjs";
2
+ import { z } from "zod";
3
+ //#region src/package-node.d.ts
4
+ declare const SectionDescriptorSchema: z.ZodObject<{
5
+ pageSize: z.ZodObject<{
6
+ widthPt: z.ZodNumber;
7
+ heightPt: z.ZodNumber;
8
+ }, z.core.$strip>;
9
+ margins: z.ZodObject<{
10
+ topPt: z.ZodNumber;
11
+ rightPt: z.ZodNumber;
12
+ bottomPt: z.ZodNumber;
13
+ leftPt: z.ZodNumber;
14
+ }, z.core.$strip>;
15
+ kind: z.ZodLiteral<"section">;
16
+ }, z.core.$strict>;
17
+ type SectionDescriptor = z.infer<typeof SectionDescriptorSchema>;
18
+ declare const SlideDescriptorSchema: z.ZodObject<{
19
+ size: z.ZodObject<{
20
+ widthPt: z.ZodNumber;
21
+ heightPt: z.ZodNumber;
22
+ }, z.core.$strip>;
23
+ notes: z.ZodString;
24
+ kind: z.ZodLiteral<"slide">;
25
+ }, z.core.$strict>;
26
+ type SlideDescriptor = z.infer<typeof SlideDescriptorSchema>;
27
+ declare const SheetDescriptorSchema: z.ZodObject<{
28
+ cells: z.ZodArray<z.ZodObject<{
29
+ row: z.ZodNumber;
30
+ column: z.ZodNumber;
31
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
32
+ kind: z.ZodLiteral<"number">;
33
+ value: z.ZodNumber;
34
+ exactValue: z.ZodOptional<z.ZodString>;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ kind: z.ZodLiteral<"percentage">;
37
+ value: z.ZodNumber;
38
+ exactValue: z.ZodOptional<z.ZodString>;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ kind: z.ZodLiteral<"currency">;
41
+ value: z.ZodNumber;
42
+ currency: z.ZodOptional<z.ZodString>;
43
+ exactValue: z.ZodOptional<z.ZodString>;
44
+ }, z.core.$strip>, z.ZodObject<{
45
+ kind: z.ZodLiteral<"boolean">;
46
+ value: z.ZodBoolean;
47
+ }, z.core.$strip>, z.ZodObject<{
48
+ kind: z.ZodLiteral<"date">;
49
+ value: z.ZodString;
50
+ }, z.core.$strip>, z.ZodObject<{
51
+ kind: z.ZodLiteral<"time">;
52
+ value: z.ZodString;
53
+ }, z.core.$strip>, z.ZodObject<{
54
+ kind: z.ZodLiteral<"dateTime">;
55
+ value: z.ZodString;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ kind: z.ZodLiteral<"string">;
58
+ value: z.ZodString;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ kind: z.ZodLiteral<"error">;
61
+ value: z.ZodString;
62
+ }, z.core.$strip>, z.ZodObject<{
63
+ kind: z.ZodLiteral<"empty">;
64
+ }, z.core.$strip>], "kind">;
65
+ formula: z.ZodOptional<z.ZodString>;
66
+ displayText: z.ZodString;
67
+ runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
68
+ text: z.ZodString;
69
+ bold: z.ZodOptional<z.ZodBoolean>;
70
+ italic: z.ZodOptional<z.ZodBoolean>;
71
+ underline: z.ZodOptional<z.ZodBoolean>;
72
+ strike: z.ZodOptional<z.ZodBoolean>;
73
+ fontFamily: z.ZodOptional<z.ZodString>;
74
+ sizePt: z.ZodOptional<z.ZodNumber>;
75
+ color: z.ZodOptional<z.ZodObject<{
76
+ r: z.ZodNumber;
77
+ g: z.ZodNumber;
78
+ b: z.ZodNumber;
79
+ }, z.core.$strip>>;
80
+ hyperlink: z.ZodOptional<z.ZodString>;
81
+ sourcePath: z.ZodOptional<z.ZodString>;
82
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
83
+ pageIndex: z.ZodNumber;
84
+ xPt: z.ZodNumber;
85
+ yPt: z.ZodNumber;
86
+ widthPt: z.ZodNumber;
87
+ heightPt: z.ZodNumber;
88
+ }, z.core.$strip>>>;
89
+ }, z.core.$strip>>>;
90
+ colSpan: z.ZodOptional<z.ZodNumber>;
91
+ rowSpan: z.ZodOptional<z.ZodNumber>;
92
+ background: z.ZodOptional<z.ZodObject<{
93
+ r: z.ZodNumber;
94
+ g: z.ZodNumber;
95
+ b: z.ZodNumber;
96
+ }, z.core.$strip>>;
97
+ borders: z.ZodOptional<z.ZodObject<{
98
+ left: z.ZodOptional<z.ZodObject<{
99
+ color: z.ZodObject<{
100
+ r: z.ZodNumber;
101
+ g: z.ZodNumber;
102
+ b: z.ZodNumber;
103
+ }, z.core.$strip>;
104
+ widthPt: z.ZodNumber;
105
+ style: z.ZodOptional<z.ZodEnum<{
106
+ solid: "solid";
107
+ dashed: "dashed";
108
+ dotted: "dotted";
109
+ double: "double";
110
+ }>>;
111
+ }, z.core.$strip>>;
112
+ right: z.ZodOptional<z.ZodObject<{
113
+ color: z.ZodObject<{
114
+ r: z.ZodNumber;
115
+ g: z.ZodNumber;
116
+ b: z.ZodNumber;
117
+ }, z.core.$strip>;
118
+ widthPt: z.ZodNumber;
119
+ style: z.ZodOptional<z.ZodEnum<{
120
+ solid: "solid";
121
+ dashed: "dashed";
122
+ dotted: "dotted";
123
+ double: "double";
124
+ }>>;
125
+ }, z.core.$strip>>;
126
+ top: z.ZodOptional<z.ZodObject<{
127
+ color: z.ZodObject<{
128
+ r: z.ZodNumber;
129
+ g: z.ZodNumber;
130
+ b: z.ZodNumber;
131
+ }, z.core.$strip>;
132
+ widthPt: z.ZodNumber;
133
+ style: z.ZodOptional<z.ZodEnum<{
134
+ solid: "solid";
135
+ dashed: "dashed";
136
+ dotted: "dotted";
137
+ double: "double";
138
+ }>>;
139
+ }, z.core.$strip>>;
140
+ bottom: z.ZodOptional<z.ZodObject<{
141
+ color: z.ZodObject<{
142
+ r: z.ZodNumber;
143
+ g: z.ZodNumber;
144
+ b: z.ZodNumber;
145
+ }, z.core.$strip>;
146
+ widthPt: z.ZodNumber;
147
+ style: z.ZodOptional<z.ZodEnum<{
148
+ solid: "solid";
149
+ dashed: "dashed";
150
+ dotted: "dotted";
151
+ double: "double";
152
+ }>>;
153
+ }, z.core.$strip>>;
154
+ }, z.core.$strip>>;
155
+ alignment: z.ZodOptional<z.ZodEnum<{
156
+ left: "left";
157
+ center: "center";
158
+ right: "right";
159
+ justify: "justify";
160
+ }>>;
161
+ verticalAlignment: z.ZodOptional<z.ZodEnum<{
162
+ top: "top";
163
+ bottom: "bottom";
164
+ middle: "middle";
165
+ }>>;
166
+ comment: z.ZodOptional<z.ZodObject<{
167
+ text: z.ZodString;
168
+ author: z.ZodOptional<z.ZodString>;
169
+ createdAt: z.ZodOptional<z.ZodString>;
170
+ replies: z.ZodOptional<z.ZodArray<z.ZodObject<{
171
+ text: z.ZodString;
172
+ author: z.ZodOptional<z.ZodString>;
173
+ }, z.core.$strip>>>;
174
+ }, z.core.$strip>>;
175
+ sourcePath: z.ZodOptional<z.ZodString>;
176
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
177
+ pageIndex: z.ZodNumber;
178
+ xPt: z.ZodNumber;
179
+ yPt: z.ZodNumber;
180
+ widthPt: z.ZodNumber;
181
+ heightPt: z.ZodNumber;
182
+ }, z.core.$strip>>>;
183
+ }, z.core.$strip>>;
184
+ rows: z.ZodArray<z.ZodObject<{
185
+ index: z.ZodNumber;
186
+ heightPt: z.ZodOptional<z.ZodNumber>;
187
+ hidden: z.ZodOptional<z.ZodBoolean>;
188
+ }, z.core.$strip>>;
189
+ name: z.ZodString;
190
+ columns: z.ZodArray<z.ZodObject<{
191
+ index: z.ZodNumber;
192
+ widthPt: z.ZodOptional<z.ZodNumber>;
193
+ hidden: z.ZodOptional<z.ZodBoolean>;
194
+ }, z.core.$strip>>;
195
+ printSettings: z.ZodObject<{
196
+ pageSize: z.ZodObject<{
197
+ widthPt: z.ZodNumber;
198
+ heightPt: z.ZodNumber;
199
+ }, z.core.$strip>;
200
+ margins: z.ZodObject<{
201
+ topPt: z.ZodNumber;
202
+ rightPt: z.ZodNumber;
203
+ bottomPt: z.ZodNumber;
204
+ leftPt: z.ZodNumber;
205
+ }, z.core.$strip>;
206
+ printRange: z.ZodOptional<z.ZodObject<{
207
+ startRow: z.ZodNumber;
208
+ startColumn: z.ZodNumber;
209
+ endRow: z.ZodNumber;
210
+ endColumn: z.ZodNumber;
211
+ }, z.core.$strip>>;
212
+ scalePercent: z.ZodOptional<z.ZodNumber>;
213
+ fitToPages: z.ZodOptional<z.ZodObject<{
214
+ width: z.ZodNumber;
215
+ height: z.ZodNumber;
216
+ }, z.core.$strip>>;
217
+ repeatRows: z.ZodOptional<z.ZodObject<{
218
+ start: z.ZodNumber;
219
+ end: z.ZodNumber;
220
+ }, z.core.$strip>>;
221
+ repeatColumns: z.ZodOptional<z.ZodObject<{
222
+ start: z.ZodNumber;
223
+ end: z.ZodNumber;
224
+ }, z.core.$strip>>;
225
+ gridlines: z.ZodBoolean;
226
+ headers: z.ZodBoolean;
227
+ pageOrder: z.ZodEnum<{
228
+ downThenOver: "downThenOver";
229
+ overThenDown: "overThenDown";
230
+ }>;
231
+ manualBreaks: z.ZodOptional<z.ZodObject<{
232
+ rows: z.ZodArray<z.ZodNumber>;
233
+ columns: z.ZodArray<z.ZodNumber>;
234
+ }, z.core.$strip>>;
235
+ }, z.core.$strip>;
236
+ kind: z.ZodLiteral<"sheet">;
237
+ }, z.core.$strict>;
238
+ type SheetDescriptor = z.infer<typeof SheetDescriptorSchema>;
239
+ declare const DrawPageDescriptorSchema: z.ZodObject<{
240
+ size: z.ZodObject<{
241
+ widthPt: z.ZodNumber;
242
+ heightPt: z.ZodNumber;
243
+ }, z.core.$strip>;
244
+ kind: z.ZodLiteral<"drawPage">;
245
+ }, z.core.$strict>;
246
+ type DrawPageDescriptor = z.infer<typeof DrawPageDescriptorSchema>;
247
+ declare const ShapeDescriptorSchema: z.ZodObject<{
248
+ sourcePath: z.ZodOptional<z.ZodString>;
249
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
+ pageIndex: z.ZodNumber;
251
+ xPt: z.ZodNumber;
252
+ yPt: z.ZodNumber;
253
+ widthPt: z.ZodNumber;
254
+ heightPt: z.ZodNumber;
255
+ }, z.core.$strip>>>;
256
+ frame: z.ZodObject<{
257
+ xPt: z.ZodNumber;
258
+ yPt: z.ZodNumber;
259
+ widthPt: z.ZodNumber;
260
+ heightPt: z.ZodNumber;
261
+ }, z.core.$strip>;
262
+ name: z.ZodOptional<z.ZodString>;
263
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
264
+ insetLeftPt: z.ZodNumber;
265
+ insetTopPt: z.ZodNumber;
266
+ insetRightPt: z.ZodNumber;
267
+ insetBottomPt: z.ZodNumber;
268
+ fontScale: z.ZodOptional<z.ZodNumber>;
269
+ lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
270
+ paintOrder: z.ZodOptional<z.ZodNumber>;
271
+ }, z.core.$strict>;
272
+ type ShapeDescriptor = z.infer<typeof ShapeDescriptorSchema>;
273
+ declare const HeadingParagraphSchema: z.ZodObject<{
274
+ kind: z.ZodLiteral<"paragraph">;
275
+ runs: z.ZodArray<z.ZodObject<{
276
+ text: z.ZodString;
277
+ bold: z.ZodOptional<z.ZodBoolean>;
278
+ italic: z.ZodOptional<z.ZodBoolean>;
279
+ underline: z.ZodOptional<z.ZodBoolean>;
280
+ strike: z.ZodOptional<z.ZodBoolean>;
281
+ fontFamily: z.ZodOptional<z.ZodString>;
282
+ sizePt: z.ZodOptional<z.ZodNumber>;
283
+ color: z.ZodOptional<z.ZodObject<{
284
+ r: z.ZodNumber;
285
+ g: z.ZodNumber;
286
+ b: z.ZodNumber;
287
+ }, z.core.$strip>>;
288
+ hyperlink: z.ZodOptional<z.ZodString>;
289
+ sourcePath: z.ZodOptional<z.ZodString>;
290
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
291
+ pageIndex: z.ZodNumber;
292
+ xPt: z.ZodNumber;
293
+ yPt: z.ZodNumber;
294
+ widthPt: z.ZodNumber;
295
+ heightPt: z.ZodNumber;
296
+ }, z.core.$strip>>>;
297
+ }, z.core.$strip>>;
298
+ styleId: z.ZodOptional<z.ZodString>;
299
+ alignment: z.ZodOptional<z.ZodEnum<{
300
+ left: "left";
301
+ center: "center";
302
+ right: "right";
303
+ justify: "justify";
304
+ }>>;
305
+ list: z.ZodOptional<z.ZodObject<{
306
+ numId: z.ZodOptional<z.ZodString>;
307
+ level: z.ZodNumber;
308
+ }, z.core.$strip>>;
309
+ spacingBeforePt: z.ZodOptional<z.ZodNumber>;
310
+ spacingAfterPt: z.ZodOptional<z.ZodNumber>;
311
+ lineSpacing: z.ZodOptional<z.ZodNumber>;
312
+ indentLeftPt: z.ZodOptional<z.ZodNumber>;
313
+ indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
314
+ sourcePath: z.ZodOptional<z.ZodString>;
315
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
316
+ pageIndex: z.ZodNumber;
317
+ xPt: z.ZodNumber;
318
+ yPt: z.ZodNumber;
319
+ widthPt: z.ZodNumber;
320
+ heightPt: z.ZodNumber;
321
+ }, z.core.$strip>>>;
322
+ headingLevel: z.ZodNumber;
323
+ }, z.core.$strip>;
324
+ type HeadingParagraph = z.infer<typeof HeadingParagraphSchema>;
325
+ declare const ListParagraphSchema: z.ZodObject<{
326
+ kind: z.ZodLiteral<"paragraph">;
327
+ runs: z.ZodArray<z.ZodObject<{
328
+ text: z.ZodString;
329
+ bold: z.ZodOptional<z.ZodBoolean>;
330
+ italic: z.ZodOptional<z.ZodBoolean>;
331
+ underline: z.ZodOptional<z.ZodBoolean>;
332
+ strike: z.ZodOptional<z.ZodBoolean>;
333
+ fontFamily: z.ZodOptional<z.ZodString>;
334
+ sizePt: z.ZodOptional<z.ZodNumber>;
335
+ color: z.ZodOptional<z.ZodObject<{
336
+ r: z.ZodNumber;
337
+ g: z.ZodNumber;
338
+ b: z.ZodNumber;
339
+ }, z.core.$strip>>;
340
+ hyperlink: z.ZodOptional<z.ZodString>;
341
+ sourcePath: z.ZodOptional<z.ZodString>;
342
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
343
+ pageIndex: z.ZodNumber;
344
+ xPt: z.ZodNumber;
345
+ yPt: z.ZodNumber;
346
+ widthPt: z.ZodNumber;
347
+ heightPt: z.ZodNumber;
348
+ }, z.core.$strip>>>;
349
+ }, z.core.$strip>>;
350
+ styleId: z.ZodOptional<z.ZodString>;
351
+ headingLevel: z.ZodOptional<z.ZodNumber>;
352
+ alignment: z.ZodOptional<z.ZodEnum<{
353
+ left: "left";
354
+ center: "center";
355
+ right: "right";
356
+ justify: "justify";
357
+ }>>;
358
+ spacingBeforePt: z.ZodOptional<z.ZodNumber>;
359
+ spacingAfterPt: z.ZodOptional<z.ZodNumber>;
360
+ lineSpacing: z.ZodOptional<z.ZodNumber>;
361
+ indentLeftPt: z.ZodOptional<z.ZodNumber>;
362
+ indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
363
+ sourcePath: z.ZodOptional<z.ZodString>;
364
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
365
+ pageIndex: z.ZodNumber;
366
+ xPt: z.ZodNumber;
367
+ yPt: z.ZodNumber;
368
+ widthPt: z.ZodNumber;
369
+ heightPt: z.ZodNumber;
370
+ }, z.core.$strip>>>;
371
+ list: z.ZodObject<{
372
+ numId: z.ZodOptional<z.ZodString>;
373
+ level: z.ZodNumber;
374
+ }, z.core.$strip>;
375
+ }, z.core.$strip>;
376
+ type ListParagraph = z.infer<typeof ListParagraphSchema>;
377
+ type PackageLeaf = ContentBlock | ContentSheetImage | ContentEmbeddedObject | ContentVector | ContentFormula;
378
+ type SectionChild = HeadingGroupNode | ListGroupNode | ContentBlock;
379
+ type ShapeChild = ListGroupNode | ContentBlock;
380
+ type ListChild = ListGroupNode | ContentBlock;
381
+ type SheetChild = ContentSheetImage | ContentEmbeddedObject;
382
+ type DrawPageChild = ShapeGroupNode | ContentVector;
383
+ interface SectionGroupNode {
384
+ readonly node: SectionDescriptor;
385
+ style?: string;
386
+ children: SectionChild[];
387
+ }
388
+ interface SlideGroupNode {
389
+ readonly node: SlideDescriptor;
390
+ style?: string;
391
+ children: ShapeGroupNode[];
392
+ }
393
+ interface SheetGroupNode {
394
+ readonly node: SheetDescriptor;
395
+ style?: string;
396
+ children: SheetChild[];
397
+ }
398
+ interface DrawPageGroupNode {
399
+ readonly node: DrawPageDescriptor;
400
+ style?: string;
401
+ children: DrawPageChild[];
402
+ }
403
+ interface ShapeGroupNode {
404
+ readonly node: ShapeDescriptor;
405
+ style?: string;
406
+ children: ShapeChild[];
407
+ }
408
+ interface HeadingGroupNode {
409
+ readonly node: HeadingParagraph;
410
+ style?: string;
411
+ children: SectionChild[];
412
+ }
413
+ interface ListGroupNode {
414
+ readonly node: ListParagraph;
415
+ style?: string;
416
+ children: ListChild[];
417
+ }
418
+ type PackageGroup = SectionGroupNode | SlideGroupNode | SheetGroupNode | DrawPageGroupNode | ShapeGroupNode | HeadingGroupNode | ListGroupNode;
419
+ type PackageNode = PackageGroup | PackageLeaf;
420
+ declare function isSectionGroupNode(value: unknown): value is SectionGroupNode;
421
+ declare function isSlideGroupNode(value: unknown): value is SlideGroupNode;
422
+ declare function isSheetGroupNode(value: unknown): value is SheetGroupNode;
423
+ declare function isDrawPageGroupNode(value: unknown): value is DrawPageGroupNode;
424
+ declare function isShapeGroupNode(value: unknown): value is ShapeGroupNode;
425
+ declare function isHeadingGroupNode(value: unknown): value is HeadingGroupNode;
426
+ declare function isListGroupNode(value: unknown): value is ListGroupNode;
427
+ declare function isPackageLeaf(value: unknown): value is PackageLeaf;
428
+ declare function isPackageGroup(value: unknown): value is PackageGroup;
429
+ declare function isPackageNode(value: unknown): value is PackageNode;
430
+ declare const SectionGroupSchema: z.ZodCustom<SectionGroupNode, SectionGroupNode>;
431
+ declare const SlideGroupSchema: z.ZodCustom<SlideGroupNode, SlideGroupNode>;
432
+ declare const SheetGroupSchema: z.ZodCustom<SheetGroupNode, SheetGroupNode>;
433
+ declare const DrawPageGroupSchema: z.ZodCustom<DrawPageGroupNode, DrawPageGroupNode>;
434
+ declare const ShapeGroupSchema: z.ZodCustom<ShapeGroupNode, ShapeGroupNode>;
435
+ declare const HeadingGroupSchema: z.ZodCustom<HeadingGroupNode, HeadingGroupNode>;
436
+ declare const ListGroupSchema: z.ZodCustom<ListGroupNode, ListGroupNode>;
437
+ declare const PackageGroupSchema: z.ZodCustom<PackageGroup, PackageGroup>;
438
+ declare const PackageLeafSchema: z.ZodCustom<PackageLeaf, PackageLeaf>;
439
+ declare const PackageNodeSchema: z.ZodCustom<PackageNode, PackageNode>;
440
+ //#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 };