document-schema 3.3.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.
Files changed (47) hide show
  1. package/README.md +141 -30
  2. package/dist/codec.d.cts +2 -7
  3. package/dist/codec.d.ts +2 -7
  4. package/dist/construct-CdQuI9f5.d.cts +204 -0
  5. package/dist/construct-CdQuI9f5.d.ts +204 -0
  6. package/dist/construct.cjs +106 -0
  7. package/dist/construct.d.cts +2 -0
  8. package/dist/construct.d.ts +2 -0
  9. package/dist/construct.js +93 -0
  10. package/dist/content-BN0PWqpt.d.cts +2393 -0
  11. package/dist/content-CiZf6Fqn.d.ts +2393 -0
  12. package/dist/content-json-schema-defs.cjs +1227 -0
  13. package/dist/content-json-schema-defs.js +1227 -0
  14. package/dist/content.cjs +1 -7
  15. package/dist/content.d.cts +2 -2354
  16. package/dist/content.d.ts +2 -2354
  17. package/dist/content.js +1 -7
  18. package/dist/definitions.cjs +109 -0
  19. package/dist/definitions.d.cts +115 -0
  20. package/dist/definitions.d.ts +115 -0
  21. package/dist/definitions.js +99 -0
  22. package/dist/index.cjs +60 -18
  23. package/dist/index.d.cts +8 -6
  24. package/dist/index.d.ts +8 -6
  25. package/dist/index.js +7 -5
  26. package/dist/package-node-BiUEzIzl.d.cts +456 -0
  27. package/dist/package-node-DLUobcDQ.d.ts +456 -0
  28. package/dist/package-node.cjs +133 -0
  29. package/dist/package-node.d.cts +2 -0
  30. package/dist/package-node.d.ts +2 -0
  31. package/dist/package-node.js +102 -0
  32. package/dist/package.cjs +40 -7
  33. package/dist/package.d.cts +497 -755
  34. package/dist/package.d.ts +497 -755
  35. package/dist/package.js +42 -8
  36. package/dist/schema-io.cjs +55 -25
  37. package/dist/schema-io.d.cts +13 -11
  38. package/dist/schema-io.d.ts +13 -11
  39. package/dist/schema-io.js +54 -25
  40. package/package.json +2 -2
  41. package/schemas/content-document.schema.json +1813 -68
  42. package/schemas/document-package.schema.json +3528 -30
  43. package/dist/layout.cjs +0 -150
  44. package/dist/layout.d.cts +0 -684
  45. package/dist/layout.d.ts +0 -684
  46. package/dist/layout.js +0 -136
  47. package/schemas/layout-document.schema.json +0 -760
package/dist/index.d.cts CHANGED
@@ -3,15 +3,17 @@ 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";
8
+ import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-CdQuI9f5.cjs";
9
9
  import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.cjs";
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 { 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";
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";
15
+ import { DocumentPackage, DocumentPackageSchema } from "./package.cjs";
16
+ import { ContentDocumentJson, DocumentJsonResult, DocumentPackageJson, DocumentSchemaKind, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, schemaUriFor } from "./schema-io.cjs";
15
17
  import { StyledFragment, StyledRun, TextMeasurer, UnderlineMetrics, WrapOptions, WrappedLine } from "./text-layout.cjs";
16
18
  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 };
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
@@ -3,15 +3,17 @@ 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";
8
+ import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-CdQuI9f5.js";
9
9
  import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.js";
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 { 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";
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";
15
+ import { DocumentPackage, DocumentPackageSchema } from "./package.js";
16
+ import { ContentDocumentJson, DocumentJsonResult, DocumentPackageJson, DocumentSchemaKind, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, schemaUriFor } from "./schema-io.js";
15
17
  import { StyledFragment, StyledRun, TextMeasurer, UnderlineMetrics, WrapOptions, WrappedLine } from "./text-layout.js";
16
18
  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 };
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,17 +1,19 @@
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";
7
8
  import { LayoutMetadataSchema } from "./metadata.js";
8
9
  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";
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";
11
+ import { DefinitionEntrySchema, DefinitionsTableSchema, StyleEntrySchema, StyleParagraphPropertiesSchema, StyleRunPropertiesSchema, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.js";
12
+ import { DrawPageDescriptorSchema, DrawPageGroupSchema, HeadingGroupSchema, HeadingParagraphSchema, ListGroupSchema, ListParagraphSchema, PackageGroupSchema, PackageLeafSchema, PackageNodeSchema, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode } from "./package-node.js";
13
+ import { DocumentPackageSchema } from "./package.js";
14
+ import { LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentPackageWithSchema, documentSchemaKindOf, schemaUriFor } from "./schema-io.js";
13
15
  import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.js";
14
16
  import "./font-port.js";
15
17
  import "./text-layout.js";
16
18
  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 };
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 };
@@ -0,0 +1,456 @@
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";
3
+ import { z } from "zod";
4
+ //#region src/package-node.d.ts
5
+ declare const SectionDescriptorSchema: z.ZodObject<{
6
+ pageSize: z.ZodObject<{
7
+ widthPt: z.ZodNumber;
8
+ heightPt: z.ZodNumber;
9
+ }, z.core.$strip>;
10
+ margins: z.ZodObject<{
11
+ topPt: z.ZodNumber;
12
+ rightPt: z.ZodNumber;
13
+ bottomPt: z.ZodNumber;
14
+ leftPt: z.ZodNumber;
15
+ }, z.core.$strip>;
16
+ kind: z.ZodLiteral<"section">;
17
+ }, z.core.$strict>;
18
+ type SectionDescriptor = z.infer<typeof SectionDescriptorSchema>;
19
+ declare const SlideDescriptorSchema: z.ZodObject<{
20
+ size: z.ZodObject<{
21
+ widthPt: z.ZodNumber;
22
+ heightPt: z.ZodNumber;
23
+ }, z.core.$strip>;
24
+ notes: z.ZodString;
25
+ kind: z.ZodLiteral<"slide">;
26
+ }, z.core.$strict>;
27
+ type SlideDescriptor = z.infer<typeof SlideDescriptorSchema>;
28
+ declare const SheetDescriptorSchema: z.ZodObject<{
29
+ name: z.ZodString;
30
+ cells: z.ZodArray<z.ZodObject<{
31
+ row: z.ZodNumber;
32
+ column: z.ZodNumber;
33
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
34
+ kind: z.ZodLiteral<"number">;
35
+ value: z.ZodNumber;
36
+ exactValue: z.ZodOptional<z.ZodString>;
37
+ }, z.core.$strip>, z.ZodObject<{
38
+ kind: z.ZodLiteral<"percentage">;
39
+ value: z.ZodNumber;
40
+ exactValue: z.ZodOptional<z.ZodString>;
41
+ }, z.core.$strip>, z.ZodObject<{
42
+ kind: z.ZodLiteral<"currency">;
43
+ value: z.ZodNumber;
44
+ currency: z.ZodOptional<z.ZodString>;
45
+ exactValue: z.ZodOptional<z.ZodString>;
46
+ }, z.core.$strip>, z.ZodObject<{
47
+ kind: z.ZodLiteral<"boolean">;
48
+ value: z.ZodBoolean;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ kind: z.ZodLiteral<"date">;
51
+ value: z.ZodString;
52
+ }, z.core.$strip>, z.ZodObject<{
53
+ kind: z.ZodLiteral<"time">;
54
+ value: z.ZodString;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ kind: z.ZodLiteral<"dateTime">;
57
+ value: z.ZodString;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ kind: z.ZodLiteral<"string">;
60
+ value: z.ZodString;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ kind: z.ZodLiteral<"error">;
63
+ value: z.ZodString;
64
+ }, z.core.$strip>, z.ZodObject<{
65
+ kind: z.ZodLiteral<"empty">;
66
+ }, z.core.$strip>], "kind">;
67
+ formula: z.ZodOptional<z.ZodString>;
68
+ displayText: z.ZodString;
69
+ runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
70
+ text: z.ZodString;
71
+ bold: z.ZodOptional<z.ZodBoolean>;
72
+ italic: z.ZodOptional<z.ZodBoolean>;
73
+ underline: z.ZodOptional<z.ZodBoolean>;
74
+ strike: z.ZodOptional<z.ZodBoolean>;
75
+ fontFamily: z.ZodOptional<z.ZodString>;
76
+ sizePt: z.ZodOptional<z.ZodNumber>;
77
+ color: z.ZodOptional<z.ZodObject<{
78
+ r: z.ZodNumber;
79
+ g: z.ZodNumber;
80
+ b: z.ZodNumber;
81
+ }, z.core.$strip>>;
82
+ hyperlink: z.ZodOptional<z.ZodString>;
83
+ sourcePath: z.ZodOptional<z.ZodString>;
84
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
85
+ pageIndex: z.ZodNumber;
86
+ xPt: z.ZodNumber;
87
+ yPt: z.ZodNumber;
88
+ widthPt: z.ZodNumber;
89
+ heightPt: z.ZodNumber;
90
+ }, z.core.$strip>>>;
91
+ }, z.core.$strip>>>;
92
+ colSpan: z.ZodOptional<z.ZodNumber>;
93
+ rowSpan: z.ZodOptional<z.ZodNumber>;
94
+ background: z.ZodOptional<z.ZodObject<{
95
+ r: z.ZodNumber;
96
+ g: z.ZodNumber;
97
+ b: z.ZodNumber;
98
+ }, z.core.$strip>>;
99
+ borders: z.ZodOptional<z.ZodObject<{
100
+ left: z.ZodOptional<z.ZodObject<{
101
+ color: z.ZodObject<{
102
+ r: z.ZodNumber;
103
+ g: z.ZodNumber;
104
+ b: z.ZodNumber;
105
+ }, z.core.$strip>;
106
+ widthPt: z.ZodNumber;
107
+ style: z.ZodOptional<z.ZodEnum<{
108
+ solid: "solid";
109
+ dashed: "dashed";
110
+ dotted: "dotted";
111
+ double: "double";
112
+ }>>;
113
+ }, z.core.$strip>>;
114
+ right: z.ZodOptional<z.ZodObject<{
115
+ color: z.ZodObject<{
116
+ r: z.ZodNumber;
117
+ g: z.ZodNumber;
118
+ b: z.ZodNumber;
119
+ }, z.core.$strip>;
120
+ widthPt: z.ZodNumber;
121
+ style: z.ZodOptional<z.ZodEnum<{
122
+ solid: "solid";
123
+ dashed: "dashed";
124
+ dotted: "dotted";
125
+ double: "double";
126
+ }>>;
127
+ }, z.core.$strip>>;
128
+ top: z.ZodOptional<z.ZodObject<{
129
+ color: z.ZodObject<{
130
+ r: z.ZodNumber;
131
+ g: z.ZodNumber;
132
+ b: z.ZodNumber;
133
+ }, z.core.$strip>;
134
+ widthPt: z.ZodNumber;
135
+ style: z.ZodOptional<z.ZodEnum<{
136
+ solid: "solid";
137
+ dashed: "dashed";
138
+ dotted: "dotted";
139
+ double: "double";
140
+ }>>;
141
+ }, z.core.$strip>>;
142
+ bottom: z.ZodOptional<z.ZodObject<{
143
+ color: z.ZodObject<{
144
+ r: z.ZodNumber;
145
+ g: z.ZodNumber;
146
+ b: z.ZodNumber;
147
+ }, z.core.$strip>;
148
+ widthPt: z.ZodNumber;
149
+ style: z.ZodOptional<z.ZodEnum<{
150
+ solid: "solid";
151
+ dashed: "dashed";
152
+ dotted: "dotted";
153
+ double: "double";
154
+ }>>;
155
+ }, z.core.$strip>>;
156
+ }, z.core.$strip>>;
157
+ alignment: z.ZodOptional<z.ZodEnum<{
158
+ left: "left";
159
+ center: "center";
160
+ right: "right";
161
+ justify: "justify";
162
+ }>>;
163
+ verticalAlignment: z.ZodOptional<z.ZodEnum<{
164
+ top: "top";
165
+ bottom: "bottom";
166
+ middle: "middle";
167
+ }>>;
168
+ comment: z.ZodOptional<z.ZodObject<{
169
+ text: z.ZodString;
170
+ author: z.ZodOptional<z.ZodString>;
171
+ createdAt: z.ZodOptional<z.ZodString>;
172
+ replies: z.ZodOptional<z.ZodArray<z.ZodObject<{
173
+ text: z.ZodString;
174
+ author: z.ZodOptional<z.ZodString>;
175
+ }, z.core.$strip>>>;
176
+ }, z.core.$strip>>;
177
+ sourcePath: z.ZodOptional<z.ZodString>;
178
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
179
+ pageIndex: z.ZodNumber;
180
+ xPt: z.ZodNumber;
181
+ yPt: z.ZodNumber;
182
+ widthPt: z.ZodNumber;
183
+ heightPt: z.ZodNumber;
184
+ }, z.core.$strip>>>;
185
+ }, z.core.$strip>>;
186
+ rows: z.ZodArray<z.ZodObject<{
187
+ index: z.ZodNumber;
188
+ heightPt: z.ZodOptional<z.ZodNumber>;
189
+ hidden: z.ZodOptional<z.ZodBoolean>;
190
+ }, z.core.$strip>>;
191
+ columns: z.ZodArray<z.ZodObject<{
192
+ index: z.ZodNumber;
193
+ widthPt: z.ZodOptional<z.ZodNumber>;
194
+ hidden: z.ZodOptional<z.ZodBoolean>;
195
+ }, z.core.$strip>>;
196
+ printSettings: z.ZodObject<{
197
+ pageSize: z.ZodObject<{
198
+ widthPt: z.ZodNumber;
199
+ heightPt: z.ZodNumber;
200
+ }, z.core.$strip>;
201
+ margins: z.ZodObject<{
202
+ topPt: z.ZodNumber;
203
+ rightPt: z.ZodNumber;
204
+ bottomPt: z.ZodNumber;
205
+ leftPt: z.ZodNumber;
206
+ }, z.core.$strip>;
207
+ printRange: z.ZodOptional<z.ZodObject<{
208
+ startRow: z.ZodNumber;
209
+ startColumn: z.ZodNumber;
210
+ endRow: z.ZodNumber;
211
+ endColumn: z.ZodNumber;
212
+ }, z.core.$strip>>;
213
+ scalePercent: z.ZodOptional<z.ZodNumber>;
214
+ fitToPages: z.ZodOptional<z.ZodObject<{
215
+ width: z.ZodNumber;
216
+ height: z.ZodNumber;
217
+ }, z.core.$strip>>;
218
+ repeatRows: z.ZodOptional<z.ZodObject<{
219
+ start: z.ZodNumber;
220
+ end: z.ZodNumber;
221
+ }, z.core.$strip>>;
222
+ repeatColumns: z.ZodOptional<z.ZodObject<{
223
+ start: z.ZodNumber;
224
+ end: z.ZodNumber;
225
+ }, z.core.$strip>>;
226
+ gridlines: z.ZodBoolean;
227
+ headers: z.ZodBoolean;
228
+ pageOrder: z.ZodEnum<{
229
+ downThenOver: "downThenOver";
230
+ overThenDown: "overThenDown";
231
+ }>;
232
+ manualBreaks: z.ZodOptional<z.ZodObject<{
233
+ rows: z.ZodArray<z.ZodNumber>;
234
+ columns: z.ZodArray<z.ZodNumber>;
235
+ }, z.core.$strip>>;
236
+ }, z.core.$strip>;
237
+ kind: z.ZodLiteral<"sheet">;
238
+ }, z.core.$strict>;
239
+ type SheetDescriptor = z.infer<typeof SheetDescriptorSchema>;
240
+ declare const DrawPageDescriptorSchema: z.ZodObject<{
241
+ size: z.ZodObject<{
242
+ widthPt: z.ZodNumber;
243
+ heightPt: z.ZodNumber;
244
+ }, z.core.$strip>;
245
+ kind: z.ZodLiteral<"drawPage">;
246
+ }, z.core.$strict>;
247
+ type DrawPageDescriptor = z.infer<typeof DrawPageDescriptorSchema>;
248
+ declare const ShapeDescriptorSchema: z.ZodObject<{
249
+ name: z.ZodOptional<z.ZodString>;
250
+ sourcePath: z.ZodOptional<z.ZodString>;
251
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
252
+ pageIndex: z.ZodNumber;
253
+ xPt: z.ZodNumber;
254
+ yPt: z.ZodNumber;
255
+ widthPt: z.ZodNumber;
256
+ heightPt: z.ZodNumber;
257
+ }, z.core.$strip>>>;
258
+ frame: z.ZodObject<{
259
+ xPt: z.ZodNumber;
260
+ yPt: z.ZodNumber;
261
+ widthPt: z.ZodNumber;
262
+ heightPt: z.ZodNumber;
263
+ }, z.core.$strip>;
264
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
265
+ insetLeftPt: z.ZodNumber;
266
+ insetTopPt: z.ZodNumber;
267
+ insetRightPt: z.ZodNumber;
268
+ insetBottomPt: z.ZodNumber;
269
+ fontScale: z.ZodOptional<z.ZodNumber>;
270
+ lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
271
+ paintOrder: z.ZodOptional<z.ZodNumber>;
272
+ }, z.core.$strict>;
273
+ type ShapeDescriptor = z.infer<typeof ShapeDescriptorSchema>;
274
+ declare const HeadingParagraphSchema: z.ZodObject<{
275
+ kind: z.ZodLiteral<"paragraph">;
276
+ runs: z.ZodArray<z.ZodObject<{
277
+ text: z.ZodString;
278
+ bold: z.ZodOptional<z.ZodBoolean>;
279
+ italic: z.ZodOptional<z.ZodBoolean>;
280
+ underline: z.ZodOptional<z.ZodBoolean>;
281
+ strike: z.ZodOptional<z.ZodBoolean>;
282
+ fontFamily: z.ZodOptional<z.ZodString>;
283
+ sizePt: z.ZodOptional<z.ZodNumber>;
284
+ color: z.ZodOptional<z.ZodObject<{
285
+ r: z.ZodNumber;
286
+ g: z.ZodNumber;
287
+ b: z.ZodNumber;
288
+ }, z.core.$strip>>;
289
+ hyperlink: z.ZodOptional<z.ZodString>;
290
+ sourcePath: z.ZodOptional<z.ZodString>;
291
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
292
+ pageIndex: z.ZodNumber;
293
+ xPt: z.ZodNumber;
294
+ yPt: z.ZodNumber;
295
+ widthPt: z.ZodNumber;
296
+ heightPt: z.ZodNumber;
297
+ }, z.core.$strip>>>;
298
+ }, z.core.$strip>>;
299
+ styleId: z.ZodOptional<z.ZodString>;
300
+ alignment: z.ZodOptional<z.ZodEnum<{
301
+ left: "left";
302
+ center: "center";
303
+ right: "right";
304
+ justify: "justify";
305
+ }>>;
306
+ list: z.ZodOptional<z.ZodObject<{
307
+ numId: z.ZodOptional<z.ZodString>;
308
+ level: z.ZodNumber;
309
+ }, z.core.$strip>>;
310
+ spacingBeforePt: z.ZodOptional<z.ZodNumber>;
311
+ spacingAfterPt: z.ZodOptional<z.ZodNumber>;
312
+ lineSpacing: z.ZodOptional<z.ZodNumber>;
313
+ indentLeftPt: z.ZodOptional<z.ZodNumber>;
314
+ indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
315
+ sourcePath: z.ZodOptional<z.ZodString>;
316
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
317
+ pageIndex: z.ZodNumber;
318
+ xPt: z.ZodNumber;
319
+ yPt: z.ZodNumber;
320
+ widthPt: z.ZodNumber;
321
+ heightPt: z.ZodNumber;
322
+ }, z.core.$strip>>>;
323
+ headingLevel: z.ZodNumber;
324
+ }, z.core.$strip>;
325
+ type HeadingParagraph = z.infer<typeof HeadingParagraphSchema>;
326
+ declare const ListParagraphSchema: z.ZodObject<{
327
+ kind: z.ZodLiteral<"paragraph">;
328
+ runs: z.ZodArray<z.ZodObject<{
329
+ text: z.ZodString;
330
+ bold: z.ZodOptional<z.ZodBoolean>;
331
+ italic: z.ZodOptional<z.ZodBoolean>;
332
+ underline: z.ZodOptional<z.ZodBoolean>;
333
+ strike: z.ZodOptional<z.ZodBoolean>;
334
+ fontFamily: z.ZodOptional<z.ZodString>;
335
+ sizePt: z.ZodOptional<z.ZodNumber>;
336
+ color: z.ZodOptional<z.ZodObject<{
337
+ r: z.ZodNumber;
338
+ g: z.ZodNumber;
339
+ b: z.ZodNumber;
340
+ }, z.core.$strip>>;
341
+ hyperlink: z.ZodOptional<z.ZodString>;
342
+ sourcePath: z.ZodOptional<z.ZodString>;
343
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
344
+ pageIndex: z.ZodNumber;
345
+ xPt: z.ZodNumber;
346
+ yPt: z.ZodNumber;
347
+ widthPt: z.ZodNumber;
348
+ heightPt: z.ZodNumber;
349
+ }, z.core.$strip>>>;
350
+ }, z.core.$strip>>;
351
+ styleId: z.ZodOptional<z.ZodString>;
352
+ headingLevel: z.ZodOptional<z.ZodNumber>;
353
+ alignment: z.ZodOptional<z.ZodEnum<{
354
+ left: "left";
355
+ center: "center";
356
+ right: "right";
357
+ justify: "justify";
358
+ }>>;
359
+ spacingBeforePt: z.ZodOptional<z.ZodNumber>;
360
+ spacingAfterPt: z.ZodOptional<z.ZodNumber>;
361
+ lineSpacing: z.ZodOptional<z.ZodNumber>;
362
+ indentLeftPt: z.ZodOptional<z.ZodNumber>;
363
+ indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
364
+ sourcePath: z.ZodOptional<z.ZodString>;
365
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
366
+ pageIndex: z.ZodNumber;
367
+ xPt: z.ZodNumber;
368
+ yPt: z.ZodNumber;
369
+ widthPt: z.ZodNumber;
370
+ heightPt: z.ZodNumber;
371
+ }, z.core.$strip>>>;
372
+ list: z.ZodObject<{
373
+ numId: z.ZodOptional<z.ZodString>;
374
+ level: z.ZodNumber;
375
+ }, z.core.$strip>;
376
+ }, z.core.$strip>;
377
+ type ListParagraph = z.infer<typeof ListParagraphSchema>;
378
+ type PackageLeaf = ContentBlock | ContentSheetImage | ContentEmbeddedObject | ContentVector | ContentFormula;
379
+ type SectionChild = HeadingGroupNode | ListGroupNode | SectionConstructGroupNode | ContentBlock;
380
+ type ShapeChild = ListGroupNode | ShapeConstructGroupNode | ContentBlock;
381
+ type ListChild = ListGroupNode | ShapeConstructGroupNode | ContentBlock;
382
+ type SheetChild = ContentSheetImage | ContentEmbeddedObject;
383
+ type DrawPageChild = ShapeGroupNode | ContentVector;
384
+ interface SectionGroupNode {
385
+ readonly node: SectionDescriptor;
386
+ style?: string;
387
+ children: SectionChild[];
388
+ }
389
+ interface SlideGroupNode {
390
+ readonly node: SlideDescriptor;
391
+ style?: string;
392
+ children: ShapeGroupNode[];
393
+ }
394
+ interface SheetGroupNode {
395
+ readonly node: SheetDescriptor;
396
+ style?: string;
397
+ children: SheetChild[];
398
+ }
399
+ interface DrawPageGroupNode {
400
+ readonly node: DrawPageDescriptor;
401
+ style?: string;
402
+ children: DrawPageChild[];
403
+ }
404
+ interface ShapeGroupNode {
405
+ readonly node: ShapeDescriptor;
406
+ style?: string;
407
+ children: ShapeChild[];
408
+ }
409
+ interface HeadingGroupNode {
410
+ readonly node: HeadingParagraph;
411
+ style?: string;
412
+ children: SectionChild[];
413
+ }
414
+ interface ListGroupNode {
415
+ readonly node: ListParagraph;
416
+ style?: string;
417
+ children: ListChild[];
418
+ }
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;
430
+ type PackageNode = PackageGroup | PackageLeaf;
431
+ declare function isSectionGroupNode(value: unknown): value is SectionGroupNode;
432
+ declare function isSlideGroupNode(value: unknown): value is SlideGroupNode;
433
+ declare function isSheetGroupNode(value: unknown): value is SheetGroupNode;
434
+ declare function isDrawPageGroupNode(value: unknown): value is DrawPageGroupNode;
435
+ declare function isShapeGroupNode(value: unknown): value is ShapeGroupNode;
436
+ declare function isHeadingGroupNode(value: unknown): value is HeadingGroupNode;
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;
440
+ declare function isPackageLeaf(value: unknown): value is PackageLeaf;
441
+ declare function isPackageGroup(value: unknown): value is PackageGroup;
442
+ declare function isPackageNode(value: unknown): value is PackageNode;
443
+ declare const SectionGroupSchema: z.ZodCustom<SectionGroupNode, SectionGroupNode>;
444
+ declare const SlideGroupSchema: z.ZodCustom<SlideGroupNode, SlideGroupNode>;
445
+ declare const SheetGroupSchema: z.ZodCustom<SheetGroupNode, SheetGroupNode>;
446
+ declare const DrawPageGroupSchema: z.ZodCustom<DrawPageGroupNode, DrawPageGroupNode>;
447
+ declare const ShapeGroupSchema: z.ZodCustom<ShapeGroupNode, ShapeGroupNode>;
448
+ declare const HeadingGroupSchema: z.ZodCustom<HeadingGroupNode, HeadingGroupNode>;
449
+ declare const ListGroupSchema: z.ZodCustom<ListGroupNode, ListGroupNode>;
450
+ declare const SectionConstructGroupSchema: z.ZodCustom<SectionConstructGroupNode, SectionConstructGroupNode>;
451
+ declare const ShapeConstructGroupSchema: z.ZodCustom<ShapeConstructGroupNode, ShapeConstructGroupNode>;
452
+ declare const PackageGroupSchema: z.ZodCustom<PackageGroup, PackageGroup>;
453
+ declare const PackageLeafSchema: z.ZodCustom<PackageLeaf, PackageLeaf>;
454
+ declare const PackageNodeSchema: z.ZodCustom<PackageNode, PackageNode>;
455
+ //#endregion
456
+ export { isShapeGroupNode as $, ShapeConstructGroupSchema as A, SlideDescriptor as B, SectionConstructGroupSchema as C, SectionGroupSchema as D, SectionGroupNode as E, SheetChild as F, isHeadingGroupNode as G, SlideGroupNode as H, SheetDescriptor as I, isPackageLeaf as J, isListGroupNode as K, SheetDescriptorSchema as L, ShapeDescriptorSchema as M, ShapeGroupNode as N, ShapeChild as O, ShapeGroupSchema as P, isShapeConstructGroupNode as Q, SheetGroupNode as R, SectionConstructGroupNode as S, SectionDescriptorSchema as T, SlideGroupSchema as U, SlideDescriptorSchema as V, isDrawPageGroupNode as W, isSectionConstructGroupNode as X, isPackageNode as Y, isSectionGroupNode as Z, PackageLeaf as _, DrawPageGroupSchema as a, PackageNodeSchema as b, HeadingParagraph as c, ListGroupNode as d, isSheetGroupNode as et, ListGroupSchema as f, PackageGroupSchema as g, PackageGroup as h, DrawPageGroupNode as i, ShapeDescriptor as j, ShapeConstructGroupNode as k, HeadingParagraphSchema as l, ListParagraphSchema as m, DrawPageDescriptor as n, HeadingGroupNode as o, ListParagraph as p, isPackageGroup as q, DrawPageDescriptorSchema as r, HeadingGroupSchema as s, DrawPageChild as t, isSlideGroupNode as tt, ListChild as u, PackageLeafSchema as v, SectionDescriptor as w, SectionChild as x, PackageNode as y, SheetGroupSchema as z };