document-content-model 7.15.0 → 7.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a1.d.cts +1 -1
- package/dist/a1.d.ts +1 -1
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{color-AELCDH_b.d.cts → color-CS3HtBwD.d.cts} +1 -1
- package/dist/{color-AELCDH_b.d.ts → color-CS3HtBwD.d.ts} +1 -1
- package/dist/color.d.cts +1 -1
- package/dist/color.d.ts +1 -1
- package/dist/{construct-GVdTKrE7.d.cts → construct-C9cYkjnd.d.cts} +3 -3
- package/dist/{construct-GVdTKrE7.d.ts → construct-C9cYkjnd.d.ts} +3 -3
- package/dist/construct.d.cts +1 -1
- package/dist/construct.d.ts +1 -1
- package/dist/{content-BzGOsekw.d.ts → content-BMrK9SrW.d.ts} +38 -38
- package/dist/{content-lXpPw1nC.d.cts → content-Dg9cb8mF.d.cts} +38 -38
- package/dist/content.d.cts +1 -1
- package/dist/content.d.ts +1 -1
- package/dist/decompose.cjs +13 -7
- package/dist/decompose.d.cts +2 -2
- package/dist/decompose.d.ts +2 -2
- package/dist/decompose.js +13 -7
- package/dist/definitions.d.cts +4 -4
- package/dist/definitions.d.ts +4 -4
- package/dist/factor-styles.d.cts +1 -1
- package/dist/factor-styles.d.ts +1 -1
- package/dist/flatten.d.cts +1 -1
- package/dist/flatten.d.ts +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/math-layout.d.cts +1 -1
- package/dist/math-layout.d.ts +1 -1
- package/dist/{package-node-DosdPQ6x.d.ts → package-node-gA3Kpgl2.d.ts} +9 -9
- package/dist/{package-node-CWW0Evpn.d.cts → package-node-wxNXHAov.d.cts} +9 -9
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package.d.cts +6 -6
- package/dist/package.d.ts +6 -6
- package/dist/schema-io.cjs +2 -2
- package/dist/schema-io.d.cts +1 -1
- package/dist/schema-io.d.ts +1 -1
- package/dist/schema-io.js +2 -2
- package/dist/{style-D06NwxAJ.d.cts → style-BGMcYrD2.d.cts} +1 -1
- package/dist/{style-D06NwxAJ.d.ts → style-BGMcYrD2.d.ts} +1 -1
- package/dist/style.d.cts +1 -1
- package/dist/style.d.ts +1 -1
- package/dist/table-grid.d.cts +2 -2
- package/dist/table-grid.d.ts +2 -2
- package/dist/text-layout.d.cts +8 -8
- package/dist/text-layout.d.ts +8 -8
- package/package.json +1 -1
- package/schemas/content-document.schema.json +16 -16
- package/schemas/document-tree.schema.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -2,15 +2,15 @@ import { CellPosition, CellRange, cellReference, columnIndexToLetters, columnLet
|
|
|
2
2
|
import { BORDER_WIDTH_PT, BorderWeight, borderWeightForWidthPt, dashedBorderWeightForWidthPt } from "./border-weight.cjs";
|
|
3
3
|
import { _ as isMathMlNode, a as MathMlComment, c as MathMlDeclarationSchema, d as MathMlNode, f as MathMlNodeSchema, g as MathMlTextSchema, h as MathMlText, i as MathMlCdataSchema, l as MathMlElement, m as MathMlPiSchema, n as MathMlAttributeSchema, o as MathMlCommentSchema, p as MathMlPi, r as MathMlCdata, s as MathMlDeclaration, t as MathMlAttribute, u as MathMlElementSchema } from "./mathml-Czqc1mdZ.cjs";
|
|
4
4
|
import { A as MathSumSchema, B as MathUnparsedSchema, C as MathProd, D as MathQty, E as MathProvenanceSchema, F as MathUncertainty, G as SymbolTable, H as QuantitySchema, I as MathUncertaintySchema, K as SymbolTableSchema, L as MathUnit, M as MathSymSchema, N as MathSymbolEntry, O as MathQtySchema, P as MathSymbolEntrySchema, R as MathUnitSchema, S as MathPresentationSchema, T as MathProvenance, U as SI_BASE_DIMENSIONS, V as Quantity, W as SiBaseDimension, _ as MathNormalisationContext, a as ExactRational, b as MathNumSchema, c as FormulaBindingsSchema, d as MathApp, f as MathAppSchema, g as MathMatrixSchema, h as MathMatrix, i as EvaluationValueSchema, j as MathSym, k as MathSum, l as Interval, m as MathExpressionSchema, n as DimensionVectorSchema, o as ExactRationalSchema, p as MathExpression, q as isMathExpression, r as EvaluationValue, s as FormulaBindings, t as DimensionVector, u as IntervalSchema, v as MathNormalisationContextSchema, w as MathProdSchema, x as MathPresentation, y as MathNum, z as MathUnparsed } from "./math-BScHxedi.cjs";
|
|
5
|
-
import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-
|
|
5
|
+
import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-CS3HtBwD.cjs";
|
|
6
6
|
import { a as Margins, c as PAGE_SIZE_LETTER, d as Point, f as SLIDE_SIZE_STANDARD, i as LayoutFrameSchema, l as PageSize, n as BoxSchema, o as MarginsSchema, p as SLIDE_SIZE_WIDESCREEN, r as LayoutFrame, s as PAGE_SIZE_A4, t as Box, u as PageSizeSchema } from "./geometry-CvcjSwnA.cjs";
|
|
7
7
|
import { i as SourceResidueSchema, n as SourceFormatSchema, r as SourceResidue, t as SourceFormat } from "./source-Bas5ol6f.cjs";
|
|
8
|
-
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-
|
|
9
|
-
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as ImageFormat, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as findRunConstructFault, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentTranscriptSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as DecimalStringSchema, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as DecimalString, Et as ContentShape, F as ContentFloatAlignSchema, Fn as SheetRuleOperator, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gn as resolveCellFillColor, Gt as ContentSheetImage, H as ContentFont, Hn as isContentConstructEnd, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as SheetRuleOperatorSchema, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kn as unrecognizedFillKind, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as clampHeadingLevel, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructExtent, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as RunConstructExtentSchema, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as FusedNode, Ot as ContentSheet, P as ContentFloatAlign, Pn as RunConstructFault, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as contentDocumentSharedFields, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentTranscript, St as ContentRun, T as ContentDrawPage, Tn as ContentVectorSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as isContentConstructStart, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentBlock, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as isRunConstructExtent, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableColumn, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTableRowSchema, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RUN_FONT_PROPERTY_SHAPE, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as IMAGE_FORMATS, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableColumnSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as ContentVector, wt as ContentSection, x as ContentDefinedName, xn as ContentTableSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableRow, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as findConstructMarkerImbalance, zt as ContentSheetConditionalFormatValue } from "./content-
|
|
8
|
+
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-BGMcYrD2.cjs";
|
|
9
|
+
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as ImageFormat, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as findRunConstructFault, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentTranscriptSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as DecimalStringSchema, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as DecimalString, Et as ContentShape, F as ContentFloatAlignSchema, Fn as SheetRuleOperator, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gn as resolveCellFillColor, Gt as ContentSheetImage, H as ContentFont, Hn as isContentConstructEnd, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as SheetRuleOperatorSchema, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kn as unrecognizedFillKind, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as clampHeadingLevel, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructExtent, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as RunConstructExtentSchema, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as FusedNode, Ot as ContentSheet, P as ContentFloatAlign, Pn as RunConstructFault, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as contentDocumentSharedFields, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentTranscript, St as ContentRun, T as ContentDrawPage, Tn as ContentVectorSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as isContentConstructStart, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentBlock, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as isRunConstructExtent, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableColumn, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTableRowSchema, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RUN_FONT_PROPERTY_SHAPE, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as IMAGE_FORMATS, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableColumnSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as ContentVector, wt as ContentSection, x as ContentDefinedName, xn as ContentTableSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableRow, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as findConstructMarkerImbalance, zt as ContentSheetConditionalFormatValue } from "./content-Dg9cb8mF.cjs";
|
|
10
10
|
import { ContentCodec } from "./codec.cjs";
|
|
11
|
-
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-
|
|
11
|
+
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-C9cYkjnd.cjs";
|
|
12
12
|
import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.cjs";
|
|
13
|
-
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-
|
|
13
|
+
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-wxNXHAov.cjs";
|
|
14
14
|
import { ConstructMarkerImbalanceError, TreeChildren, decompose } from "./decompose.cjs";
|
|
15
15
|
import { DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StylesTable, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.cjs";
|
|
16
16
|
import { DocumentTree, DocumentTreeSchema, TreeEmbeddedFont, TreeEmbeddedFontSchema } from "./package.cjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -2,15 +2,15 @@ import { CellPosition, CellRange, cellReference, columnIndexToLetters, columnLet
|
|
|
2
2
|
import { BORDER_WIDTH_PT, BorderWeight, borderWeightForWidthPt, dashedBorderWeightForWidthPt } from "./border-weight.js";
|
|
3
3
|
import { _ as isMathMlNode, a as MathMlComment, c as MathMlDeclarationSchema, d as MathMlNode, f as MathMlNodeSchema, g as MathMlTextSchema, h as MathMlText, i as MathMlCdataSchema, l as MathMlElement, m as MathMlPiSchema, n as MathMlAttributeSchema, o as MathMlCommentSchema, p as MathMlPi, r as MathMlCdata, s as MathMlDeclaration, t as MathMlAttribute, u as MathMlElementSchema } from "./mathml-Czqc1mdZ.js";
|
|
4
4
|
import { A as MathSumSchema, B as MathUnparsedSchema, C as MathProd, D as MathQty, E as MathProvenanceSchema, F as MathUncertainty, G as SymbolTable, H as QuantitySchema, I as MathUncertaintySchema, K as SymbolTableSchema, L as MathUnit, M as MathSymSchema, N as MathSymbolEntry, O as MathQtySchema, P as MathSymbolEntrySchema, R as MathUnitSchema, S as MathPresentationSchema, T as MathProvenance, U as SI_BASE_DIMENSIONS, V as Quantity, W as SiBaseDimension, _ as MathNormalisationContext, a as ExactRational, b as MathNumSchema, c as FormulaBindingsSchema, d as MathApp, f as MathAppSchema, g as MathMatrixSchema, h as MathMatrix, i as EvaluationValueSchema, j as MathSym, k as MathSum, l as Interval, m as MathExpressionSchema, n as DimensionVectorSchema, o as ExactRationalSchema, p as MathExpression, q as isMathExpression, r as EvaluationValue, s as FormulaBindings, t as DimensionVector, u as IntervalSchema, v as MathNormalisationContextSchema, w as MathProdSchema, x as MathPresentation, y as MathNum, z as MathUnparsed } from "./math-BScHxedi.js";
|
|
5
|
-
import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-
|
|
5
|
+
import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-CS3HtBwD.js";
|
|
6
6
|
import { a as Margins, c as PAGE_SIZE_LETTER, d as Point, f as SLIDE_SIZE_STANDARD, i as LayoutFrameSchema, l as PageSize, n as BoxSchema, o as MarginsSchema, p as SLIDE_SIZE_WIDESCREEN, r as LayoutFrame, s as PAGE_SIZE_A4, t as Box, u as PageSizeSchema } from "./geometry-CvcjSwnA.js";
|
|
7
7
|
import { i as SourceResidueSchema, n as SourceFormatSchema, r as SourceResidue, t as SourceFormat } from "./source-Bas5ol6f.js";
|
|
8
|
-
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-
|
|
9
|
-
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as ImageFormat, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as findRunConstructFault, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentTranscriptSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as DecimalStringSchema, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as DecimalString, Et as ContentShape, F as ContentFloatAlignSchema, Fn as SheetRuleOperator, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gn as resolveCellFillColor, Gt as ContentSheetImage, H as ContentFont, Hn as isContentConstructEnd, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as SheetRuleOperatorSchema, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kn as unrecognizedFillKind, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as clampHeadingLevel, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructExtent, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as RunConstructExtentSchema, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as FusedNode, Ot as ContentSheet, P as ContentFloatAlign, Pn as RunConstructFault, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as contentDocumentSharedFields, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentTranscript, St as ContentRun, T as ContentDrawPage, Tn as ContentVectorSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as isContentConstructStart, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentBlock, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as isRunConstructExtent, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableColumn, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTableRowSchema, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RUN_FONT_PROPERTY_SHAPE, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as IMAGE_FORMATS, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableColumnSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as ContentVector, wt as ContentSection, x as ContentDefinedName, xn as ContentTableSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableRow, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as findConstructMarkerImbalance, zt as ContentSheetConditionalFormatValue } from "./content-
|
|
8
|
+
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-BGMcYrD2.js";
|
|
9
|
+
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as ImageFormat, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as findRunConstructFault, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentTranscriptSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as DecimalStringSchema, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as DecimalString, Et as ContentShape, F as ContentFloatAlignSchema, Fn as SheetRuleOperator, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gn as resolveCellFillColor, Gt as ContentSheetImage, H as ContentFont, Hn as isContentConstructEnd, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as SheetRuleOperatorSchema, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kn as unrecognizedFillKind, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as clampHeadingLevel, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructExtent, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as RunConstructExtentSchema, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as FusedNode, Ot as ContentSheet, P as ContentFloatAlign, Pn as RunConstructFault, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as contentDocumentSharedFields, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentTranscript, St as ContentRun, T as ContentDrawPage, Tn as ContentVectorSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as isContentConstructStart, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentBlock, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as isRunConstructExtent, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableColumn, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTableRowSchema, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RUN_FONT_PROPERTY_SHAPE, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as IMAGE_FORMATS, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableColumnSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as ContentVector, wt as ContentSection, x as ContentDefinedName, xn as ContentTableSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableRow, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as findConstructMarkerImbalance, zt as ContentSheetConditionalFormatValue } from "./content-BMrK9SrW.js";
|
|
10
10
|
import { ContentCodec } from "./codec.js";
|
|
11
|
-
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-
|
|
11
|
+
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-C9cYkjnd.js";
|
|
12
12
|
import { CONTENT_DEFS, CONTENT_DOCUMENT_URI, EMBEDDED_OBJECT_KINDS, MAX_SAFE_INTEGER } from "./content-json-schema-defs.js";
|
|
13
|
-
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-
|
|
13
|
+
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-gA3Kpgl2.js";
|
|
14
14
|
import { ConstructMarkerImbalanceError, TreeChildren, decompose } from "./decompose.js";
|
|
15
15
|
import { DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StylesTable, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.js";
|
|
16
16
|
import { DocumentTree, DocumentTreeSchema, TreeEmbeddedFont, TreeEmbeddedFontSchema } from "./package.js";
|
package/dist/math-layout.d.cts
CHANGED
package/dist/math-layout.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as ContentEmbeddedObject, Gt as ContentSheetImage, W as ContentFormula, _ as ContentConstructEnd, a as ContentBlock, wn as ContentVector, y as ContentConstructStart } from "./content-
|
|
2
|
-
import { a as ConstructDescriptor } from "./construct-
|
|
1
|
+
import { D as ContentEmbeddedObject, Gt as ContentSheetImage, W as ContentFormula, _ as ContentConstructEnd, a as ContentBlock, wn as ContentVector, y as ContentConstructStart } from "./content-BMrK9SrW.js";
|
|
2
|
+
import { a as ConstructDescriptor } from "./construct-C9cYkjnd.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/package-node.d.ts
|
|
5
5
|
declare const SectionDescriptorSchema: z.ZodObject<{
|
|
@@ -552,8 +552,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
552
552
|
}, z.core.$strip>>;
|
|
553
553
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
554
554
|
left: "left";
|
|
555
|
-
center: "center";
|
|
556
555
|
right: "right";
|
|
556
|
+
center: "center";
|
|
557
557
|
justify: "justify";
|
|
558
558
|
}>>;
|
|
559
559
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -617,10 +617,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
617
617
|
endColumn: z.ZodNumber;
|
|
618
618
|
}, z.core.$strip>>;
|
|
619
619
|
type: z.ZodEnum<{
|
|
620
|
-
decimal: "decimal";
|
|
621
|
-
list: "list";
|
|
622
620
|
date: "date";
|
|
623
621
|
custom: "custom";
|
|
622
|
+
decimal: "decimal";
|
|
623
|
+
list: "list";
|
|
624
624
|
time: "time";
|
|
625
625
|
whole: "whole";
|
|
626
626
|
textLength: "textLength";
|
|
@@ -1482,12 +1482,12 @@ declare const HeadingParagraphSchema: z.ZodObject<{
|
|
|
1482
1482
|
descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1483
1483
|
kind: z.ZodLiteral<"contentControl">;
|
|
1484
1484
|
controlType: z.ZodEnum<{
|
|
1485
|
-
date: "date";
|
|
1486
1485
|
richText: "richText";
|
|
1487
1486
|
plainText: "plainText";
|
|
1488
1487
|
checkbox: "checkbox";
|
|
1489
1488
|
dropDown: "dropDown";
|
|
1490
1489
|
comboBox: "comboBox";
|
|
1490
|
+
date: "date";
|
|
1491
1491
|
picture: "picture";
|
|
1492
1492
|
repeatingSection: "repeatingSection";
|
|
1493
1493
|
button: "button";
|
|
@@ -1677,8 +1677,8 @@ declare const HeadingParagraphSchema: z.ZodObject<{
|
|
|
1677
1677
|
preformatted: z.ZodOptional<z.ZodBoolean>;
|
|
1678
1678
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1679
1679
|
left: "left";
|
|
1680
|
-
center: "center";
|
|
1681
1680
|
right: "right";
|
|
1681
|
+
center: "center";
|
|
1682
1682
|
justify: "justify";
|
|
1683
1683
|
}>>;
|
|
1684
1684
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -1907,12 +1907,12 @@ declare const ListParagraphSchema: z.ZodObject<{
|
|
|
1907
1907
|
descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1908
1908
|
kind: z.ZodLiteral<"contentControl">;
|
|
1909
1909
|
controlType: z.ZodEnum<{
|
|
1910
|
-
date: "date";
|
|
1911
1910
|
richText: "richText";
|
|
1912
1911
|
plainText: "plainText";
|
|
1913
1912
|
checkbox: "checkbox";
|
|
1914
1913
|
dropDown: "dropDown";
|
|
1915
1914
|
comboBox: "comboBox";
|
|
1915
|
+
date: "date";
|
|
1916
1916
|
picture: "picture";
|
|
1917
1917
|
repeatingSection: "repeatingSection";
|
|
1918
1918
|
button: "button";
|
|
@@ -2103,8 +2103,8 @@ declare const ListParagraphSchema: z.ZodObject<{
|
|
|
2103
2103
|
headingLevel: z.ZodOptional<z.ZodNumber>;
|
|
2104
2104
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
2105
2105
|
left: "left";
|
|
2106
|
-
center: "center";
|
|
2107
2106
|
right: "right";
|
|
2107
|
+
center: "center";
|
|
2108
2108
|
justify: "justify";
|
|
2109
2109
|
}>>;
|
|
2110
2110
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as ContentEmbeddedObject, Gt as ContentSheetImage, W as ContentFormula, _ as ContentConstructEnd, a as ContentBlock, wn as ContentVector, y as ContentConstructStart } from "./content-
|
|
2
|
-
import { a as ConstructDescriptor } from "./construct-
|
|
1
|
+
import { D as ContentEmbeddedObject, Gt as ContentSheetImage, W as ContentFormula, _ as ContentConstructEnd, a as ContentBlock, wn as ContentVector, y as ContentConstructStart } from "./content-Dg9cb8mF.cjs";
|
|
2
|
+
import { a as ConstructDescriptor } from "./construct-C9cYkjnd.cjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/package-node.d.ts
|
|
5
5
|
declare const SectionDescriptorSchema: z.ZodObject<{
|
|
@@ -552,8 +552,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
552
552
|
}, z.core.$strip>>;
|
|
553
553
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
554
554
|
left: "left";
|
|
555
|
-
center: "center";
|
|
556
555
|
right: "right";
|
|
556
|
+
center: "center";
|
|
557
557
|
justify: "justify";
|
|
558
558
|
}>>;
|
|
559
559
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -617,10 +617,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
|
|
|
617
617
|
endColumn: z.ZodNumber;
|
|
618
618
|
}, z.core.$strip>>;
|
|
619
619
|
type: z.ZodEnum<{
|
|
620
|
-
decimal: "decimal";
|
|
621
|
-
list: "list";
|
|
622
620
|
date: "date";
|
|
623
621
|
custom: "custom";
|
|
622
|
+
decimal: "decimal";
|
|
623
|
+
list: "list";
|
|
624
624
|
time: "time";
|
|
625
625
|
whole: "whole";
|
|
626
626
|
textLength: "textLength";
|
|
@@ -1482,12 +1482,12 @@ declare const HeadingParagraphSchema: z.ZodObject<{
|
|
|
1482
1482
|
descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1483
1483
|
kind: z.ZodLiteral<"contentControl">;
|
|
1484
1484
|
controlType: z.ZodEnum<{
|
|
1485
|
-
date: "date";
|
|
1486
1485
|
richText: "richText";
|
|
1487
1486
|
plainText: "plainText";
|
|
1488
1487
|
checkbox: "checkbox";
|
|
1489
1488
|
dropDown: "dropDown";
|
|
1490
1489
|
comboBox: "comboBox";
|
|
1490
|
+
date: "date";
|
|
1491
1491
|
picture: "picture";
|
|
1492
1492
|
repeatingSection: "repeatingSection";
|
|
1493
1493
|
button: "button";
|
|
@@ -1677,8 +1677,8 @@ declare const HeadingParagraphSchema: z.ZodObject<{
|
|
|
1677
1677
|
preformatted: z.ZodOptional<z.ZodBoolean>;
|
|
1678
1678
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
1679
1679
|
left: "left";
|
|
1680
|
-
center: "center";
|
|
1681
1680
|
right: "right";
|
|
1681
|
+
center: "center";
|
|
1682
1682
|
justify: "justify";
|
|
1683
1683
|
}>>;
|
|
1684
1684
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -1907,12 +1907,12 @@ declare const ListParagraphSchema: z.ZodObject<{
|
|
|
1907
1907
|
descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1908
1908
|
kind: z.ZodLiteral<"contentControl">;
|
|
1909
1909
|
controlType: z.ZodEnum<{
|
|
1910
|
-
date: "date";
|
|
1911
1910
|
richText: "richText";
|
|
1912
1911
|
plainText: "plainText";
|
|
1913
1912
|
checkbox: "checkbox";
|
|
1914
1913
|
dropDown: "dropDown";
|
|
1915
1914
|
comboBox: "comboBox";
|
|
1915
|
+
date: "date";
|
|
1916
1916
|
picture: "picture";
|
|
1917
1917
|
repeatingSection: "repeatingSection";
|
|
1918
1918
|
button: "button";
|
|
@@ -2103,8 +2103,8 @@ declare const ListParagraphSchema: z.ZodObject<{
|
|
|
2103
2103
|
headingLevel: z.ZodOptional<z.ZodNumber>;
|
|
2104
2104
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
2105
2105
|
left: "left";
|
|
2106
|
-
center: "center";
|
|
2107
2106
|
right: "right";
|
|
2107
|
+
center: "center";
|
|
2108
2108
|
justify: "justify";
|
|
2109
2109
|
}>>;
|
|
2110
2110
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
package/dist/package-node.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-
|
|
1
|
+
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-wxNXHAov.cjs";
|
|
2
2
|
export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, TreeBlockLeaf, TreeBlockLeafSchema, TreeGroup, TreeGroupSchema, TreeLeaf, TreeLeafSchema, TreeNode, TreeNodeSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode };
|
package/dist/package-node.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-
|
|
1
|
+
import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-gA3Kpgl2.js";
|
|
2
2
|
export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, TreeBlockLeaf, TreeBlockLeafSchema, TreeGroup, TreeGroupSchema, TreeLeaf, TreeLeafSchema, TreeNode, TreeNodeSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode };
|
package/dist/package.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as MathMlNode } from "./mathml-Czqc1mdZ.cjs";
|
|
2
2
|
import { p as MathExpression } from "./math-BScHxedi.cjs";
|
|
3
|
-
import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-
|
|
3
|
+
import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-wxNXHAov.cjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/package.d.ts
|
|
6
6
|
declare const TreeEmbeddedFontSchema: z.ZodObject<{
|
|
@@ -26,8 +26,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
26
26
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
27
27
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
28
28
|
left: "left";
|
|
29
|
-
center: "center";
|
|
30
29
|
right: "right";
|
|
30
|
+
center: "center";
|
|
31
31
|
justify: "justify";
|
|
32
32
|
}>>;
|
|
33
33
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -181,8 +181,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
181
181
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
182
182
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
183
183
|
left: "left";
|
|
184
|
-
center: "center";
|
|
185
184
|
right: "right";
|
|
185
|
+
center: "center";
|
|
186
186
|
justify: "justify";
|
|
187
187
|
}>>;
|
|
188
188
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -341,8 +341,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
341
341
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
342
342
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
343
343
|
left: "left";
|
|
344
|
-
center: "center";
|
|
345
344
|
right: "right";
|
|
345
|
+
center: "center";
|
|
346
346
|
justify: "justify";
|
|
347
347
|
}>>;
|
|
348
348
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -496,8 +496,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
496
496
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
497
497
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
498
498
|
left: "left";
|
|
499
|
-
center: "center";
|
|
500
499
|
right: "right";
|
|
500
|
+
center: "center";
|
|
501
501
|
justify: "justify";
|
|
502
502
|
}>>;
|
|
503
503
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -710,8 +710,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
710
710
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
711
711
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
712
712
|
left: "left";
|
|
713
|
-
center: "center";
|
|
714
713
|
right: "right";
|
|
714
|
+
center: "center";
|
|
715
715
|
justify: "justify";
|
|
716
716
|
}>>;
|
|
717
717
|
list: z.ZodOptional<z.ZodObject<{
|
package/dist/package.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as MathMlNode } from "./mathml-Czqc1mdZ.js";
|
|
2
2
|
import { p as MathExpression } from "./math-BScHxedi.js";
|
|
3
|
-
import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-
|
|
3
|
+
import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-gA3Kpgl2.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/package.d.ts
|
|
6
6
|
declare const TreeEmbeddedFontSchema: z.ZodObject<{
|
|
@@ -26,8 +26,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
26
26
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
27
27
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
28
28
|
left: "left";
|
|
29
|
-
center: "center";
|
|
30
29
|
right: "right";
|
|
30
|
+
center: "center";
|
|
31
31
|
justify: "justify";
|
|
32
32
|
}>>;
|
|
33
33
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -181,8 +181,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
181
181
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
182
182
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
183
183
|
left: "left";
|
|
184
|
-
center: "center";
|
|
185
184
|
right: "right";
|
|
185
|
+
center: "center";
|
|
186
186
|
justify: "justify";
|
|
187
187
|
}>>;
|
|
188
188
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -341,8 +341,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
341
341
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
342
342
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
343
343
|
left: "left";
|
|
344
|
-
center: "center";
|
|
345
344
|
right: "right";
|
|
345
|
+
center: "center";
|
|
346
346
|
justify: "justify";
|
|
347
347
|
}>>;
|
|
348
348
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -496,8 +496,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
496
496
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
497
497
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
498
498
|
left: "left";
|
|
499
|
-
center: "center";
|
|
500
499
|
right: "right";
|
|
500
|
+
center: "center";
|
|
501
501
|
justify: "justify";
|
|
502
502
|
}>>;
|
|
503
503
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -710,8 +710,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
710
710
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
711
711
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
712
712
|
left: "left";
|
|
713
|
-
center: "center";
|
|
714
713
|
right: "right";
|
|
714
|
+
center: "center";
|
|
715
715
|
justify: "justify";
|
|
716
716
|
}>>;
|
|
717
717
|
list: z.ZodOptional<z.ZodObject<{
|
package/dist/schema-io.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const SCHEMA_FILE_NAMES = {
|
|
|
7
7
|
ContentDocument: "content-document.schema.json"
|
|
8
8
|
};
|
|
9
9
|
function schemaUriFor(kind) {
|
|
10
|
-
return `https://cdn.jsdelivr.net/npm/document-schema.js@7.15.
|
|
10
|
+
return `https://cdn.jsdelivr.net/npm/document-schema.js@7.15.1/schemas/${SCHEMA_FILE_NAMES[kind]}`;
|
|
11
11
|
}
|
|
12
12
|
const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-tree|document-package|content-document|layout-document)\.schema\.json$/;
|
|
13
13
|
function parseSchemaUri(uri) {
|
|
@@ -102,7 +102,7 @@ function documentFromJson(value) {
|
|
|
102
102
|
if (parts.stem === "document-package") throw new DocumentPackageRenamedError(value.$schema);
|
|
103
103
|
const kind = kindForFileStem(parts.stem);
|
|
104
104
|
if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
|
|
105
|
-
if (majorVersionOf(parts.version) !== majorVersionOf("7.15.
|
|
105
|
+
if (majorVersionOf(parts.version) !== majorVersionOf("7.15.1")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.15.1");
|
|
106
106
|
switch (kind) {
|
|
107
107
|
case "DocumentTree": return {
|
|
108
108
|
kind,
|
package/dist/schema-io.d.cts
CHANGED
package/dist/schema-io.d.ts
CHANGED
package/dist/schema-io.js
CHANGED
|
@@ -6,7 +6,7 @@ const SCHEMA_FILE_NAMES = {
|
|
|
6
6
|
ContentDocument: "content-document.schema.json"
|
|
7
7
|
};
|
|
8
8
|
function schemaUriFor(kind) {
|
|
9
|
-
return `https://cdn.jsdelivr.net/npm/document-schema.js@7.15.
|
|
9
|
+
return `https://cdn.jsdelivr.net/npm/document-schema.js@7.15.1/schemas/${SCHEMA_FILE_NAMES[kind]}`;
|
|
10
10
|
}
|
|
11
11
|
const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-tree|document-package|content-document|layout-document)\.schema\.json$/;
|
|
12
12
|
function parseSchemaUri(uri) {
|
|
@@ -101,7 +101,7 @@ function documentFromJson(value) {
|
|
|
101
101
|
if (parts.stem === "document-package") throw new DocumentPackageRenamedError(value.$schema);
|
|
102
102
|
const kind = kindForFileStem(parts.stem);
|
|
103
103
|
if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
|
|
104
|
-
if (majorVersionOf(parts.version) !== majorVersionOf("7.15.
|
|
104
|
+
if (majorVersionOf(parts.version) !== majorVersionOf("7.15.1")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.15.1");
|
|
105
105
|
switch (kind) {
|
|
106
106
|
case "DocumentTree": return {
|
|
107
107
|
kind,
|
package/dist/style.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-
|
|
1
|
+
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-BGMcYrD2.cjs";
|
|
2
2
|
export { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema, TextDirection, TextDirectionSchema };
|
package/dist/style.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-
|
|
1
|
+
import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-BGMcYrD2.js";
|
|
2
2
|
export { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema, TextDirection, TextDirectionSchema };
|
package/dist/table-grid.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as TextDirection } from "./style-
|
|
2
|
-
import { hn as ContentTableCell, mn as ContentTable, yn as ContentTableRow } from "./content-
|
|
1
|
+
import { o as TextDirection } from "./style-BGMcYrD2.cjs";
|
|
2
|
+
import { hn as ContentTableCell, mn as ContentTable, yn as ContentTableRow } from "./content-Dg9cb8mF.cjs";
|
|
3
3
|
//#region src/table-grid.d.ts
|
|
4
4
|
/** The number of grid columns a cell occupies; an absent `colSpan` means the cell occupies its own column only. */
|
|
5
5
|
declare function tableCellColumnSpan(cell: ContentTableCell): number;
|
package/dist/table-grid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as TextDirection } from "./style-
|
|
2
|
-
import { hn as ContentTableCell, mn as ContentTable, yn as ContentTableRow } from "./content-
|
|
1
|
+
import { o as TextDirection } from "./style-BGMcYrD2.js";
|
|
2
|
+
import { hn as ContentTableCell, mn as ContentTable, yn as ContentTableRow } from "./content-BMrK9SrW.js";
|
|
3
3
|
//#region src/table-grid.d.ts
|
|
4
4
|
/** The number of grid columns a cell occupies; an absent `colSpan` means the cell occupies its own column only. */
|
|
5
5
|
declare function tableCellColumnSpan(cell: ContentTableCell): number;
|
package/dist/text-layout.d.cts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { n as Color } from "./color-
|
|
2
|
-
import { i as LayoutFont } from "./style-
|
|
1
|
+
import { n as Color } from "./color-CS3HtBwD.cjs";
|
|
2
|
+
import { i as LayoutFont } from "./style-BGMcYrD2.cjs";
|
|
3
3
|
//#region src/text-layout.d.ts
|
|
4
4
|
interface UnderlineMetrics {
|
|
5
5
|
readonly offsetPt: number;
|
|
6
6
|
readonly thicknessPt: number;
|
|
7
7
|
}
|
|
8
8
|
interface TextMeasurer {
|
|
9
|
-
widthOfTextAtSize(text: string, font: LayoutFont
|
|
10
|
-
lineHeightAtSize(font: LayoutFont
|
|
11
|
-
ascenderAtSize(font: LayoutFont
|
|
12
|
-
descenderAtSize(font: LayoutFont
|
|
13
|
-
underlineAtSize(font: LayoutFont
|
|
14
|
-
horizontalScaleFor(font: LayoutFont): number;
|
|
9
|
+
widthOfTextAtSize(text: string, font: Readonly<LayoutFont>, sizePt: number): number;
|
|
10
|
+
lineHeightAtSize(font: Readonly<LayoutFont>, sizePt: number): number;
|
|
11
|
+
ascenderAtSize(font: Readonly<LayoutFont>, sizePt: number): number;
|
|
12
|
+
descenderAtSize(font: Readonly<LayoutFont>, sizePt: number): number;
|
|
13
|
+
underlineAtSize(font: Readonly<LayoutFont>, sizePt: number): UnderlineMetrics;
|
|
14
|
+
horizontalScaleFor(font: Readonly<LayoutFont>): number;
|
|
15
15
|
}
|
|
16
16
|
interface StyledRun {
|
|
17
17
|
readonly text: string;
|
package/dist/text-layout.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { n as Color } from "./color-
|
|
2
|
-
import { i as LayoutFont } from "./style-
|
|
1
|
+
import { n as Color } from "./color-CS3HtBwD.js";
|
|
2
|
+
import { i as LayoutFont } from "./style-BGMcYrD2.js";
|
|
3
3
|
//#region src/text-layout.d.ts
|
|
4
4
|
interface UnderlineMetrics {
|
|
5
5
|
readonly offsetPt: number;
|
|
6
6
|
readonly thicknessPt: number;
|
|
7
7
|
}
|
|
8
8
|
interface TextMeasurer {
|
|
9
|
-
widthOfTextAtSize(text: string, font: LayoutFont
|
|
10
|
-
lineHeightAtSize(font: LayoutFont
|
|
11
|
-
ascenderAtSize(font: LayoutFont
|
|
12
|
-
descenderAtSize(font: LayoutFont
|
|
13
|
-
underlineAtSize(font: LayoutFont
|
|
14
|
-
horizontalScaleFor(font: LayoutFont): number;
|
|
9
|
+
widthOfTextAtSize(text: string, font: Readonly<LayoutFont>, sizePt: number): number;
|
|
10
|
+
lineHeightAtSize(font: Readonly<LayoutFont>, sizePt: number): number;
|
|
11
|
+
ascenderAtSize(font: Readonly<LayoutFont>, sizePt: number): number;
|
|
12
|
+
descenderAtSize(font: Readonly<LayoutFont>, sizePt: number): number;
|
|
13
|
+
underlineAtSize(font: Readonly<LayoutFont>, sizePt: number): UnderlineMetrics;
|
|
14
|
+
horizontalScaleFor(font: Readonly<LayoutFont>): number;
|
|
15
15
|
}
|
|
16
16
|
interface StyledRun {
|
|
17
17
|
readonly text: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-content-model",
|
|
3
|
-
"version": "7.15.
|
|
3
|
+
"version": "7.15.1",
|
|
4
4
|
"description": "The canonical, format-agnostic content and document-tree schemas shared by ooxml.js, odf.js, documents.js, pdf-codec, and markdown-codec, plus the structural transform between them — no format-specific or I/O behaviour.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|