document-content-model 7.14.1 → 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/{content-Cj_IC0ge.d.ts → content-BMrK9SrW.d.ts} +139 -128
- package/dist/{content-DZDor2Ct.d.cts → content-Dg9cb8mF.d.cts} +139 -128
- package/dist/content-json-schema-defs.cjs +15 -6
- package/dist/content-json-schema-defs.js +15 -6
- package/dist/content.cjs +10 -2
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +10 -3
- 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.cjs +1 -0
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/math-layout.d.cts +1 -1
- package/dist/math-layout.d.ts +1 -1
- package/dist/{package-node-SBZNVEGu.d.ts → package-node-gA3Kpgl2.d.ts} +39 -39
- package/dist/{package-node-DBtKtaqn.d.cts → package-node-wxNXHAov.d.cts} +39 -39
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package.d.cts +7 -7
- package/dist/package.d.ts +7 -7
- 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.cjs +3 -3
- package/dist/table-grid.d.cts +4 -4
- package/dist/table-grid.d.ts +4 -4
- package/dist/table-grid.js +3 -3
- 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 +35 -20
- package/schemas/document-tree.schema.json +22 -7
|
@@ -697,6 +697,18 @@ const CONTENT_DEFS = {
|
|
|
697
697
|
required: ["cells"],
|
|
698
698
|
additionalProperties: false
|
|
699
699
|
},
|
|
700
|
+
ContentTableColumn: {
|
|
701
|
+
type: "object",
|
|
702
|
+
properties: {
|
|
703
|
+
widthPt: {
|
|
704
|
+
type: "number",
|
|
705
|
+
minimum: 0
|
|
706
|
+
},
|
|
707
|
+
isHeader: { type: "boolean" }
|
|
708
|
+
},
|
|
709
|
+
required: ["widthPt"],
|
|
710
|
+
additionalProperties: false
|
|
711
|
+
},
|
|
700
712
|
ContentTable: {
|
|
701
713
|
type: "object",
|
|
702
714
|
properties: {
|
|
@@ -708,12 +720,9 @@ const CONTENT_DEFS = {
|
|
|
708
720
|
type: "array",
|
|
709
721
|
items: { $ref: "#/$defs/ContentTableRow" }
|
|
710
722
|
},
|
|
711
|
-
|
|
723
|
+
columns: {
|
|
712
724
|
type: "array",
|
|
713
|
-
items: {
|
|
714
|
-
type: "number",
|
|
715
|
-
minimum: 0
|
|
716
|
-
}
|
|
725
|
+
items: { $ref: "#/$defs/ContentTableColumn" }
|
|
717
726
|
},
|
|
718
727
|
sourcePath: { type: "string" },
|
|
719
728
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
@@ -727,7 +736,7 @@ const CONTENT_DEFS = {
|
|
|
727
736
|
required: [
|
|
728
737
|
"kind",
|
|
729
738
|
"rows",
|
|
730
|
-
"
|
|
739
|
+
"columns"
|
|
731
740
|
],
|
|
732
741
|
additionalProperties: false
|
|
733
742
|
},
|
|
@@ -696,6 +696,18 @@ const CONTENT_DEFS = {
|
|
|
696
696
|
required: ["cells"],
|
|
697
697
|
additionalProperties: false
|
|
698
698
|
},
|
|
699
|
+
ContentTableColumn: {
|
|
700
|
+
type: "object",
|
|
701
|
+
properties: {
|
|
702
|
+
widthPt: {
|
|
703
|
+
type: "number",
|
|
704
|
+
minimum: 0
|
|
705
|
+
},
|
|
706
|
+
isHeader: { type: "boolean" }
|
|
707
|
+
},
|
|
708
|
+
required: ["widthPt"],
|
|
709
|
+
additionalProperties: false
|
|
710
|
+
},
|
|
699
711
|
ContentTable: {
|
|
700
712
|
type: "object",
|
|
701
713
|
properties: {
|
|
@@ -707,12 +719,9 @@ const CONTENT_DEFS = {
|
|
|
707
719
|
type: "array",
|
|
708
720
|
items: { $ref: "#/$defs/ContentTableRow" }
|
|
709
721
|
},
|
|
710
|
-
|
|
722
|
+
columns: {
|
|
711
723
|
type: "array",
|
|
712
|
-
items: {
|
|
713
|
-
type: "number",
|
|
714
|
-
minimum: 0
|
|
715
|
-
}
|
|
724
|
+
items: { $ref: "#/$defs/ContentTableColumn" }
|
|
716
725
|
},
|
|
717
726
|
sourcePath: { type: "string" },
|
|
718
727
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
@@ -726,7 +735,7 @@ const CONTENT_DEFS = {
|
|
|
726
735
|
required: [
|
|
727
736
|
"kind",
|
|
728
737
|
"rows",
|
|
729
|
-
"
|
|
738
|
+
"columns"
|
|
730
739
|
],
|
|
731
740
|
additionalProperties: false
|
|
732
741
|
},
|
package/dist/content.cjs
CHANGED
|
@@ -213,6 +213,9 @@ function isContentTableCell(value) {
|
|
|
213
213
|
function isContentTableRow(value) {
|
|
214
214
|
return isRecord(value) && Array.isArray(value.cells) && value.cells.every(isContentTableCell) && (value.heightPt === void 0 || typeof value.heightPt === "number") && (value.isHeader === void 0 || typeof value.isHeader === "boolean");
|
|
215
215
|
}
|
|
216
|
+
function isContentTableColumn(value) {
|
|
217
|
+
return isRecord(value) && typeof value.widthPt === "number" && (value.isHeader === void 0 || typeof value.isHeader === "boolean");
|
|
218
|
+
}
|
|
216
219
|
function isContentEmbeddedObjectKind(value) {
|
|
217
220
|
return value === "formula" || value === "wordprocessing" || value === "presentation" || value === "spreadsheet" || value === "drawing" || value === "chart";
|
|
218
221
|
}
|
|
@@ -239,7 +242,7 @@ function isContentBlock(value) {
|
|
|
239
242
|
if (kind === "paragraph") return Array.isArray(value.runs) && value.runs.every(isContentRun) && (value.constructs === void 0 || Array.isArray(value.constructs) && value.constructs.every(isRunConstructExtent));
|
|
240
243
|
if (kind === "image") return isImageFormat(value.format) && typeof value.base64 === "string" && typeof value.widthPt === "number" && typeof value.heightPt === "number";
|
|
241
244
|
if (kind === "pageBreak") return true;
|
|
242
|
-
if (kind === "table") return Array.isArray(value.rows) && value.rows.every(isContentTableRow) && Array.isArray(value.
|
|
245
|
+
if (kind === "table") return Array.isArray(value.rows) && value.rows.every(isContentTableRow) && Array.isArray(value.columns) && value.columns.every(isContentTableColumn);
|
|
243
246
|
if (kind === "embeddedObject") return isContentEmbeddedObject(value);
|
|
244
247
|
if (kind === "constructStart") return isContentConstructStart(value);
|
|
245
248
|
if (kind === "constructEnd") return true;
|
|
@@ -397,10 +400,14 @@ const ContentTableRowSchema = zod.z.object({
|
|
|
397
400
|
direction: require_style.TextDirectionSchema.optional(),
|
|
398
401
|
isHeader: zod.z.boolean().optional()
|
|
399
402
|
});
|
|
403
|
+
const ContentTableColumnSchema = zod.z.object({
|
|
404
|
+
widthPt: zod.z.number().nonnegative(),
|
|
405
|
+
isHeader: zod.z.boolean().optional()
|
|
406
|
+
});
|
|
400
407
|
const ContentTableSchema = zod.z.object({
|
|
401
408
|
kind: zod.z.literal("table"),
|
|
402
409
|
rows: zod.z.array(ContentTableRowSchema),
|
|
403
|
-
|
|
410
|
+
columns: zod.z.array(ContentTableColumnSchema),
|
|
404
411
|
sourcePath: zod.z.string().optional(),
|
|
405
412
|
source: require_source.SourceResidueSchema.optional(),
|
|
406
413
|
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
|
@@ -1006,6 +1013,7 @@ exports.ContentStrokeSchema = ContentStrokeSchema;
|
|
|
1006
1013
|
exports.ContentStrokeStyleSchema = ContentStrokeStyleSchema;
|
|
1007
1014
|
exports.ContentSubpathSchema = ContentSubpathSchema;
|
|
1008
1015
|
exports.ContentTableCellSchema = ContentTableCellSchema;
|
|
1016
|
+
exports.ContentTableColumnSchema = ContentTableColumnSchema;
|
|
1009
1017
|
exports.ContentTableRowSchema = ContentTableRowSchema;
|
|
1010
1018
|
exports.ContentTableSchema = ContentTableSchema;
|
|
1011
1019
|
exports.ContentTranscriptSchema = ContentTranscriptSchema;
|
package/dist/content.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as
|
|
2
|
-
export { CONTENT_ANNOTATION_FIELDS, ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
|
1
|
+
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";
|
|
2
|
+
export { CONTENT_ANNOTATION_FIELDS, ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableColumn, ContentTableColumnSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
package/dist/content.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as
|
|
2
|
-
export { CONTENT_ANNOTATION_FIELDS, ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
|
1
|
+
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";
|
|
2
|
+
export { CONTENT_ANNOTATION_FIELDS, ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableColumn, ContentTableColumnSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
package/dist/content.js
CHANGED
|
@@ -212,6 +212,9 @@ function isContentTableCell(value) {
|
|
|
212
212
|
function isContentTableRow(value) {
|
|
213
213
|
return isRecord(value) && Array.isArray(value.cells) && value.cells.every(isContentTableCell) && (value.heightPt === void 0 || typeof value.heightPt === "number") && (value.isHeader === void 0 || typeof value.isHeader === "boolean");
|
|
214
214
|
}
|
|
215
|
+
function isContentTableColumn(value) {
|
|
216
|
+
return isRecord(value) && typeof value.widthPt === "number" && (value.isHeader === void 0 || typeof value.isHeader === "boolean");
|
|
217
|
+
}
|
|
215
218
|
function isContentEmbeddedObjectKind(value) {
|
|
216
219
|
return value === "formula" || value === "wordprocessing" || value === "presentation" || value === "spreadsheet" || value === "drawing" || value === "chart";
|
|
217
220
|
}
|
|
@@ -238,7 +241,7 @@ function isContentBlock(value) {
|
|
|
238
241
|
if (kind === "paragraph") return Array.isArray(value.runs) && value.runs.every(isContentRun) && (value.constructs === void 0 || Array.isArray(value.constructs) && value.constructs.every(isRunConstructExtent));
|
|
239
242
|
if (kind === "image") return isImageFormat(value.format) && typeof value.base64 === "string" && typeof value.widthPt === "number" && typeof value.heightPt === "number";
|
|
240
243
|
if (kind === "pageBreak") return true;
|
|
241
|
-
if (kind === "table") return Array.isArray(value.rows) && value.rows.every(isContentTableRow) && Array.isArray(value.
|
|
244
|
+
if (kind === "table") return Array.isArray(value.rows) && value.rows.every(isContentTableRow) && Array.isArray(value.columns) && value.columns.every(isContentTableColumn);
|
|
242
245
|
if (kind === "embeddedObject") return isContentEmbeddedObject(value);
|
|
243
246
|
if (kind === "constructStart") return isContentConstructStart(value);
|
|
244
247
|
if (kind === "constructEnd") return true;
|
|
@@ -396,10 +399,14 @@ const ContentTableRowSchema = z.object({
|
|
|
396
399
|
direction: TextDirectionSchema.optional(),
|
|
397
400
|
isHeader: z.boolean().optional()
|
|
398
401
|
});
|
|
402
|
+
const ContentTableColumnSchema = z.object({
|
|
403
|
+
widthPt: z.number().nonnegative(),
|
|
404
|
+
isHeader: z.boolean().optional()
|
|
405
|
+
});
|
|
399
406
|
const ContentTableSchema = z.object({
|
|
400
407
|
kind: z.literal("table"),
|
|
401
408
|
rows: z.array(ContentTableRowSchema),
|
|
402
|
-
|
|
409
|
+
columns: z.array(ContentTableColumnSchema),
|
|
403
410
|
sourcePath: z.string().optional(),
|
|
404
411
|
source: SourceResidueSchema.optional(),
|
|
405
412
|
frames: z.array(LayoutFrameSchema).optional(),
|
|
@@ -944,4 +951,4 @@ const ContentDocumentSchema = z.discriminatedUnion("kind", [
|
|
|
944
951
|
})
|
|
945
952
|
]);
|
|
946
953
|
//#endregion
|
|
947
|
-
export { CONTENT_ANNOTATION_FIELDS, ContentBitmapFillSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellFillSchema, ContentCellPatternTypeSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentDefinedNameSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFillPatternSchema, ContentFloatAlignSchema, ContentFloatAxisSchema, ContentFloatOriginSchema, ContentFloatPositionSchema, ContentFontSchema, ContentFormulaSchema, ContentGradientFillSchema, ContentGradientStyleSchema, ContentHatchFillSchema, ContentHatchStyleSchema, ContentImageBlockSchema, ContentImageOriginalSchema, ContentInterpretationSchema, ContentListMembershipSchema, ContentOriginSchema, ContentPageBreakSchema, ContentPageFurnitureSchema, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidationSchema, ContentSheetDataValidationTypeSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRangeSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentTranscriptSchema, ContentVectorSchema, DecimalStringSchema, IMAGE_FORMATS, RUN_FONT_PROPERTY_SHAPE, RunConstructExtentSchema, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
|
954
|
+
export { CONTENT_ANNOTATION_FIELDS, ContentBitmapFillSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellFillSchema, ContentCellPatternTypeSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentDefinedNameSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFillPatternSchema, ContentFloatAlignSchema, ContentFloatAxisSchema, ContentFloatOriginSchema, ContentFloatPositionSchema, ContentFontSchema, ContentFormulaSchema, ContentGradientFillSchema, ContentGradientStyleSchema, ContentHatchFillSchema, ContentHatchStyleSchema, ContentImageBlockSchema, ContentImageOriginalSchema, ContentInterpretationSchema, ContentListMembershipSchema, ContentOriginSchema, ContentPageBreakSchema, ContentPageFurnitureSchema, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidationSchema, ContentSheetDataValidationTypeSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRangeSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableColumnSchema, ContentTableRowSchema, ContentTableSchema, ContentTranscriptSchema, ContentVectorSchema, DecimalStringSchema, IMAGE_FORMATS, RUN_FONT_PROPERTY_SHAPE, RunConstructExtentSchema, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
package/dist/decompose.cjs
CHANGED
|
@@ -74,7 +74,10 @@ function walkSectionBlocks(cursor) {
|
|
|
74
74
|
const parent = headingStack.at(-1);
|
|
75
75
|
(parent !== void 0 ? parent.children : root).push(group);
|
|
76
76
|
headingStack.push(group);
|
|
77
|
-
} else if (isListParagraph(block)) openListGroup(
|
|
77
|
+
} else if (isListParagraph(block)) openListGroup({
|
|
78
|
+
listStack,
|
|
79
|
+
scopeChildren: headingScope()
|
|
80
|
+
}, block);
|
|
78
81
|
else {
|
|
79
82
|
listStack.length = 0;
|
|
80
83
|
headingScope().push(block);
|
|
@@ -145,7 +148,10 @@ function walkShapeBlocks(cursor) {
|
|
|
145
148
|
continue;
|
|
146
149
|
}
|
|
147
150
|
if (isListParagraph(block)) {
|
|
148
|
-
openListGroup(
|
|
151
|
+
openListGroup({
|
|
152
|
+
listStack,
|
|
153
|
+
scopeChildren: root
|
|
154
|
+
}, block);
|
|
149
155
|
continue;
|
|
150
156
|
}
|
|
151
157
|
listStack.length = 0;
|
|
@@ -153,16 +159,16 @@ function walkShapeBlocks(cursor) {
|
|
|
153
159
|
}
|
|
154
160
|
return root;
|
|
155
161
|
}
|
|
156
|
-
function openListGroup(
|
|
162
|
+
function openListGroup(sink, paragraph) {
|
|
157
163
|
const level = paragraph.list.level;
|
|
158
|
-
for (let top = listStack.at(-1); top !== void 0 && top.node.list.level >= level; top = listStack.at(-1)) listStack.pop();
|
|
164
|
+
for (let top = sink.listStack.at(-1); top !== void 0 && top.node.list.level >= level; top = sink.listStack.at(-1)) sink.listStack.pop();
|
|
159
165
|
const group = {
|
|
160
166
|
node: paragraph,
|
|
161
167
|
children: []
|
|
162
168
|
};
|
|
163
|
-
const parent = listStack.at(-1);
|
|
164
|
-
(parent !== void 0 ? parent.children : scopeChildren).push(group);
|
|
165
|
-
listStack.push(group);
|
|
169
|
+
const parent = sink.listStack.at(-1);
|
|
170
|
+
(parent !== void 0 ? parent.children : sink.scopeChildren).push(group);
|
|
171
|
+
sink.listStack.push(group);
|
|
166
172
|
}
|
|
167
173
|
//#endregion
|
|
168
174
|
exports.ConstructMarkerImbalanceError = ConstructMarkerImbalanceError;
|
package/dist/decompose.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-
|
|
2
|
-
import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-
|
|
1
|
+
import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-Dg9cb8mF.cjs";
|
|
2
|
+
import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-wxNXHAov.cjs";
|
|
3
3
|
//#region src/decompose.d.ts
|
|
4
4
|
declare function isHeadingParagraph(paragraph: ContentParagraph): paragraph is HeadingParagraph;
|
|
5
5
|
declare function isListParagraph(paragraph: ContentParagraph): paragraph is ListParagraph;
|
package/dist/decompose.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-
|
|
2
|
-
import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-
|
|
1
|
+
import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-BMrK9SrW.js";
|
|
2
|
+
import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-gA3Kpgl2.js";
|
|
3
3
|
//#region src/decompose.d.ts
|
|
4
4
|
declare function isHeadingParagraph(paragraph: ContentParagraph): paragraph is HeadingParagraph;
|
|
5
5
|
declare function isListParagraph(paragraph: ContentParagraph): paragraph is ListParagraph;
|
package/dist/decompose.js
CHANGED
|
@@ -73,7 +73,10 @@ function walkSectionBlocks(cursor) {
|
|
|
73
73
|
const parent = headingStack.at(-1);
|
|
74
74
|
(parent !== void 0 ? parent.children : root).push(group);
|
|
75
75
|
headingStack.push(group);
|
|
76
|
-
} else if (isListParagraph(block)) openListGroup(
|
|
76
|
+
} else if (isListParagraph(block)) openListGroup({
|
|
77
|
+
listStack,
|
|
78
|
+
scopeChildren: headingScope()
|
|
79
|
+
}, block);
|
|
77
80
|
else {
|
|
78
81
|
listStack.length = 0;
|
|
79
82
|
headingScope().push(block);
|
|
@@ -144,7 +147,10 @@ function walkShapeBlocks(cursor) {
|
|
|
144
147
|
continue;
|
|
145
148
|
}
|
|
146
149
|
if (isListParagraph(block)) {
|
|
147
|
-
openListGroup(
|
|
150
|
+
openListGroup({
|
|
151
|
+
listStack,
|
|
152
|
+
scopeChildren: root
|
|
153
|
+
}, block);
|
|
148
154
|
continue;
|
|
149
155
|
}
|
|
150
156
|
listStack.length = 0;
|
|
@@ -152,16 +158,16 @@ function walkShapeBlocks(cursor) {
|
|
|
152
158
|
}
|
|
153
159
|
return root;
|
|
154
160
|
}
|
|
155
|
-
function openListGroup(
|
|
161
|
+
function openListGroup(sink, paragraph) {
|
|
156
162
|
const level = paragraph.list.level;
|
|
157
|
-
for (let top = listStack.at(-1); top !== void 0 && top.node.list.level >= level; top = listStack.at(-1)) listStack.pop();
|
|
163
|
+
for (let top = sink.listStack.at(-1); top !== void 0 && top.node.list.level >= level; top = sink.listStack.at(-1)) sink.listStack.pop();
|
|
158
164
|
const group = {
|
|
159
165
|
node: paragraph,
|
|
160
166
|
children: []
|
|
161
167
|
};
|
|
162
|
-
const parent = listStack.at(-1);
|
|
163
|
-
(parent !== void 0 ? parent.children : scopeChildren).push(group);
|
|
164
|
-
listStack.push(group);
|
|
168
|
+
const parent = sink.listStack.at(-1);
|
|
169
|
+
(parent !== void 0 ? parent.children : sink.scopeChildren).push(group);
|
|
170
|
+
sink.listStack.push(group);
|
|
165
171
|
}
|
|
166
172
|
//#endregion
|
|
167
173
|
export { ConstructMarkerImbalanceError, decompose, decomposeDrawPage, decomposeSection, decomposeShape, decomposeSheet, decomposeSlide, isHeadingParagraph, isListParagraph };
|
package/dist/definitions.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { St as ContentRun, mt as ContentParagraph } from "./content-
|
|
1
|
+
import { St as ContentRun, mt as ContentParagraph } from "./content-Dg9cb8mF.cjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/definitions.d.ts
|
|
4
4
|
declare const StyleParagraphPropertiesSchema: z.ZodObject<{
|
|
5
5
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
6
6
|
left: "left";
|
|
7
|
-
center: "center";
|
|
8
7
|
right: "right";
|
|
8
|
+
center: "center";
|
|
9
9
|
justify: "justify";
|
|
10
10
|
}>>;
|
|
11
11
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -49,8 +49,8 @@ declare const StyleEntrySchema: z.ZodObject<{
|
|
|
49
49
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
50
50
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
51
51
|
left: "left";
|
|
52
|
-
center: "center";
|
|
53
52
|
right: "right";
|
|
53
|
+
center: "center";
|
|
54
54
|
justify: "justify";
|
|
55
55
|
}>>;
|
|
56
56
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -94,8 +94,8 @@ declare const StylesTableSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
94
94
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
95
95
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
96
96
|
left: "left";
|
|
97
|
-
center: "center";
|
|
98
97
|
right: "right";
|
|
98
|
+
center: "center";
|
|
99
99
|
justify: "justify";
|
|
100
100
|
}>>;
|
|
101
101
|
list: z.ZodOptional<z.ZodObject<{
|
package/dist/definitions.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { St as ContentRun, mt as ContentParagraph } from "./content-
|
|
1
|
+
import { St as ContentRun, mt as ContentParagraph } from "./content-BMrK9SrW.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/definitions.d.ts
|
|
4
4
|
declare const StyleParagraphPropertiesSchema: z.ZodObject<{
|
|
5
5
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
6
6
|
left: "left";
|
|
7
|
-
center: "center";
|
|
8
7
|
right: "right";
|
|
8
|
+
center: "center";
|
|
9
9
|
justify: "justify";
|
|
10
10
|
}>>;
|
|
11
11
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -49,8 +49,8 @@ declare const StyleEntrySchema: z.ZodObject<{
|
|
|
49
49
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
50
50
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
51
51
|
left: "left";
|
|
52
|
-
center: "center";
|
|
53
52
|
right: "right";
|
|
53
|
+
center: "center";
|
|
54
54
|
justify: "justify";
|
|
55
55
|
}>>;
|
|
56
56
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -94,8 +94,8 @@ declare const StylesTableSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
94
94
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
95
95
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
96
96
|
left: "left";
|
|
97
|
-
center: "center";
|
|
98
97
|
right: "right";
|
|
98
|
+
center: "center";
|
|
99
99
|
justify: "justify";
|
|
100
100
|
}>>;
|
|
101
101
|
list: z.ZodOptional<z.ZodObject<{
|
package/dist/factor-styles.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as PageSize } from "./geometry-CvcjSwnA.cjs";
|
|
2
|
-
import { C as ContentDocument } from "./content-
|
|
2
|
+
import { C as ContentDocument } from "./content-Dg9cb8mF.cjs";
|
|
3
3
|
import { DocumentTree } from "./package.cjs";
|
|
4
4
|
//#region src/factor-styles.d.ts
|
|
5
5
|
declare function assembleTree(content: ContentDocument, pages?: readonly PageSize[]): DocumentTree;
|
package/dist/factor-styles.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as PageSize } from "./geometry-CvcjSwnA.js";
|
|
2
|
-
import { C as ContentDocument } from "./content-
|
|
2
|
+
import { C as ContentDocument } from "./content-BMrK9SrW.js";
|
|
3
3
|
import { DocumentTree } from "./package.js";
|
|
4
4
|
//#region src/factor-styles.d.ts
|
|
5
5
|
declare function assembleTree(content: ContentDocument, pages?: readonly PageSize[]): DocumentTree;
|
package/dist/flatten.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ContentDocument } from "./content-
|
|
1
|
+
import { C as ContentDocument } from "./content-Dg9cb8mF.cjs";
|
|
2
2
|
import { DocumentTree } from "./package.cjs";
|
|
3
3
|
//#region src/flatten.d.ts
|
|
4
4
|
declare function flattenTree(pkg: DocumentTree): ContentDocument;
|
package/dist/flatten.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -98,6 +98,7 @@ exports.ContentStrokeSchema = require_content.ContentStrokeSchema;
|
|
|
98
98
|
exports.ContentStrokeStyleSchema = require_content.ContentStrokeStyleSchema;
|
|
99
99
|
exports.ContentSubpathSchema = require_content.ContentSubpathSchema;
|
|
100
100
|
exports.ContentTableCellSchema = require_content.ContentTableCellSchema;
|
|
101
|
+
exports.ContentTableColumnSchema = require_content.ContentTableColumnSchema;
|
|
101
102
|
exports.ContentTableRowSchema = require_content.ContentTableRowSchema;
|
|
102
103
|
exports.ContentTableSchema = require_content.ContentTableSchema;
|
|
103
104
|
exports.ContentTranscriptSchema = require_content.ContentTranscriptSchema;
|
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
|
|
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
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";
|
|
@@ -22,4 +22,4 @@ import { AnchorTableRow, PositionedTableCell, PositionedTableRow, TableGridAncho
|
|
|
22
22
|
import { ContentDocumentJson, DocumentJsonResult, DocumentPackageRenamedError, DocumentSchemaKind, DocumentTreeJson, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, schemaUriFor } from "./schema-io.cjs";
|
|
23
23
|
import { StyledFragment, StyledRun, TextMeasurer, UnderlineMetrics, WrapOptions, WrappedLine } from "./text-layout.cjs";
|
|
24
24
|
import { MathAssembledGlyphs, MathBox, MathColor, MathFontMetrics, MathGlyphMetrics, MathGlyphPlacement, MathGlyphRun, MathLayoutItem, MathRule, MathStretchAxis, MathStretchGlyph, MathStretchResult, MathStroke, PositionedFormula } from "./math-layout.cjs";
|
|
25
|
-
export { Alignment, AlignmentSchema, AnchorDescriptor, AnchorDescriptorSchema, AnchorTableRow, AnchorType, AnchorTypeSchema, BORDER_WIDTH_PT, BorderWeight, Box, BoxSchema, COLOR_BLACK, CONTENT_ANNOTATION_FIELDS, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CellPosition, CellRange, Color, ColorSchema, ConstructDescriptor, ConstructDescriptorSchema, ConstructMarkerImbalance, ConstructMarkerImbalanceError, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentCodec, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalString, DecimalStringSchema, DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, DimensionVector, DimensionVectorSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, DocumentJsonResult, DocumentPackageRenamedError, DocumentSchemaKind, DocumentTree, DocumentTreeJson, DocumentTreeSchema, DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, EvaluationValue, EvaluationValueSchema, ExactRational, ExactRationalSchema, FieldDescriptor, FieldDescriptorSchema, FontFace, FontRegistryOptions, FontSubstitution, FormulaBindings, FormulaBindingsSchema, FusedNode, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, IMAGE_FORMATS, ImageFormat, Interval, IntervalSchema, 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, PageSize, PageSizeSchema, Point, PositionedFormula, PositionedTableCell, PositionedTableRow, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema, ProvidedFont, Quantity, QuantitySchema, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, 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, SheetRuleOperator, SheetRuleOperatorSchema, SiBaseDimension, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, SourceFormat, SourceFormatSchema, SourceResidue, SourceResidueSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StyledFragment, StyledRun, StylesTable, StylesTableSchema, SymbolTable, SymbolTableSchema, TableGridAnchor, TableGridCovered, TableGridFault, TableGridPosition, TextDirection, TextDirectionSchema, TextMeasurer, TreeBlockLeaf, TreeBlockLeafSchema, type TreeChildren, TreeEmbeddedFont, TreeEmbeddedFontSchema, TreeGroup, TreeGroupSchema, TreeLeaf, TreeLeafSchema, TreeNode, TreeNodeSchema, UnderlineMetrics, UnrecognizedDocumentSchemaError, WrapOptions, WrappedLine, applyParagraphStyleProperties, applyRunStyleProperties, assembleTree, borderWeightForWidthPt, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, dashedBorderWeightForWidthPt, decompose, denseTableRows, describeTableGridFault, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, factorStyles, findConstructMarkerImbalance, findRunConstructFault, findTableGridFault, flattenTree, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isRunConstructExtent, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode, overlayStyleEntries, parseCellReference, parseRangeReference, placeAnchorTableRows, rangeReference, resolveCellFillColor, resolveStyleChain, rgbHexToColor, schemaUriFor, tableCellColumnSpan, tableCellRowSpan, tableGridColumnCount, unrecognizedFillKind, walkTableGrid };
|
|
25
|
+
export { Alignment, AlignmentSchema, AnchorDescriptor, AnchorDescriptorSchema, AnchorTableRow, AnchorType, AnchorTypeSchema, BORDER_WIDTH_PT, BorderWeight, Box, BoxSchema, COLOR_BLACK, CONTENT_ANNOTATION_FIELDS, CONTENT_DEFS, CONTENT_DOCUMENT_URI, CellPosition, CellRange, Color, ColorSchema, ConstructDescriptor, ConstructDescriptorSchema, ConstructMarkerImbalance, ConstructMarkerImbalanceError, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentCodec, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentJson, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableColumn, ContentTableColumnSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DecimalString, DecimalStringSchema, DefinitionEntry, DefinitionEntrySchema, DefinitionsTable, DefinitionsTableSchema, DimensionVector, DimensionVectorSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, DocumentJsonResult, DocumentPackageRenamedError, DocumentSchemaKind, DocumentTree, DocumentTreeJson, DocumentTreeSchema, DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, EvaluationValue, EvaluationValueSchema, ExactRational, ExactRationalSchema, FieldDescriptor, FieldDescriptorSchema, FontFace, FontRegistryOptions, FontSubstitution, FormulaBindings, FormulaBindingsSchema, FusedNode, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, IMAGE_FORMATS, ImageFormat, Interval, IntervalSchema, 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, PageSize, PageSizeSchema, Point, PositionedFormula, PositionedTableCell, PositionedTableRow, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema, ProvidedFont, Quantity, QuantitySchema, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, 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, SheetRuleOperator, SheetRuleOperatorSchema, SiBaseDimension, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, SourceFormat, SourceFormatSchema, SourceResidue, SourceResidueSchema, StyleEntry, StyleEntrySchema, StyleParagraphProperties, StyleParagraphPropertiesSchema, StyleRunProperties, StyleRunPropertiesSchema, StyledFragment, StyledRun, StylesTable, StylesTableSchema, SymbolTable, SymbolTableSchema, TableGridAnchor, TableGridCovered, TableGridFault, TableGridPosition, TextDirection, TextDirectionSchema, TextMeasurer, TreeBlockLeaf, TreeBlockLeafSchema, type TreeChildren, TreeEmbeddedFont, TreeEmbeddedFontSchema, TreeGroup, TreeGroupSchema, TreeLeaf, TreeLeafSchema, TreeNode, TreeNodeSchema, UnderlineMetrics, UnrecognizedDocumentSchemaError, WrapOptions, WrappedLine, applyParagraphStyleProperties, applyRunStyleProperties, assembleTree, borderWeightForWidthPt, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, dashedBorderWeightForWidthPt, decompose, denseTableRows, describeTableGridFault, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, factorStyles, findConstructMarkerImbalance, findRunConstructFault, findTableGridFault, flattenTree, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isRunConstructExtent, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode, overlayStyleEntries, parseCellReference, parseRangeReference, placeAnchorTableRows, rangeReference, resolveCellFillColor, resolveStyleChain, rgbHexToColor, schemaUriFor, tableCellColumnSpan, tableCellRowSpan, tableGridColumnCount, unrecognizedFillKind, walkTableGrid };
|