document-content-model 7.6.0 → 7.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/README.md +1 -1
  2. package/dist/codec.d.cts +1 -1
  3. package/dist/codec.d.ts +1 -1
  4. package/dist/{construct-GVdTKrE7.d.cts → construct-C9cYkjnd.d.cts} +3 -3
  5. package/dist/{construct-GVdTKrE7.d.ts → construct-C9cYkjnd.d.ts} +3 -3
  6. package/dist/construct.d.cts +1 -1
  7. package/dist/construct.d.ts +1 -1
  8. package/dist/{content-BCOxY0Eb.d.ts → content-BIM8bWWt.d.ts} +205 -59
  9. package/dist/{content-BzkhrS6P.d.cts → content-DpsxyPMw.d.cts} +205 -59
  10. package/dist/content-json-schema-defs.cjs +32 -0
  11. package/dist/content-json-schema-defs.js +32 -0
  12. package/dist/content.cjs +37 -11
  13. package/dist/content.d.cts +2 -2
  14. package/dist/content.d.ts +2 -2
  15. package/dist/content.js +33 -12
  16. package/dist/decompose.d.cts +2 -2
  17. package/dist/decompose.d.ts +2 -2
  18. package/dist/definitions.cjs +1 -10
  19. package/dist/definitions.d.cts +4 -4
  20. package/dist/definitions.d.ts +4 -4
  21. package/dist/definitions.js +2 -11
  22. package/dist/factor-styles.cjs +1 -0
  23. package/dist/factor-styles.d.cts +1 -1
  24. package/dist/factor-styles.d.ts +1 -1
  25. package/dist/factor-styles.js +1 -0
  26. package/dist/flatten.cjs +1 -0
  27. package/dist/flatten.d.cts +1 -1
  28. package/dist/flatten.d.ts +1 -1
  29. package/dist/flatten.js +1 -0
  30. package/dist/index.cjs +5 -0
  31. package/dist/index.d.cts +5 -5
  32. package/dist/index.d.ts +5 -5
  33. package/dist/index.js +2 -2
  34. package/dist/{package-node-C4mh1hLY.d.ts → package-node-B8LBrCCD.d.ts} +48 -35
  35. package/dist/{package-node-RQMDBzwd.d.cts → package-node-CENJl5PH.d.cts} +48 -35
  36. package/dist/package-node.d.cts +1 -1
  37. package/dist/package-node.d.ts +1 -1
  38. package/dist/package.cjs +1 -0
  39. package/dist/package.d.cts +11 -6
  40. package/dist/package.d.ts +11 -6
  41. package/dist/package.js +2 -1
  42. package/dist/schema-io.cjs +2 -2
  43. package/dist/schema-io.d.cts +1 -1
  44. package/dist/schema-io.d.ts +1 -1
  45. package/dist/schema-io.js +2 -2
  46. package/dist/{style-D06NwxAJ.d.cts → style-BGMcYrD2.d.cts} +1 -1
  47. package/dist/{style-D06NwxAJ.d.ts → style-BGMcYrD2.d.ts} +1 -1
  48. package/dist/style.d.cts +1 -1
  49. package/dist/style.d.ts +1 -1
  50. package/dist/text-layout.d.cts +1 -1
  51. package/dist/text-layout.d.ts +1 -1
  52. package/package.json +1 -1
  53. package/schemas/content-document.schema.json +171 -13
  54. package/schemas/document-tree.schema.json +87 -3
@@ -495,6 +495,19 @@ const CONTENT_DEFS = {
495
495
  required: ["horizontal", "vertical"],
496
496
  additionalProperties: false
497
497
  },
498
+ ContentImageOriginal: {
499
+ type: "object",
500
+ properties: {
501
+ filter: {
502
+ type: "string",
503
+ enum: ["jbig2", "jpeg2000"]
504
+ },
505
+ base64: { type: "string" },
506
+ jbig2GlobalsBase64: { type: "string" }
507
+ },
508
+ required: ["filter", "base64"],
509
+ additionalProperties: false
510
+ },
498
511
  ContentImageBlock: {
499
512
  type: "object",
500
513
  properties: {
@@ -521,6 +534,7 @@ const CONTENT_DEFS = {
521
534
  exclusiveMinimum: 0
522
535
  },
523
536
  altText: { type: "string" },
537
+ original: { $ref: "#/$defs/ContentImageOriginal" },
524
538
  floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
525
539
  sourcePath: { type: "string" },
526
540
  source: { $ref: "#/$defs/SourceResidue" },
@@ -1040,6 +1054,22 @@ const CONTENT_DEFS = {
1040
1054
  ],
1041
1055
  additionalProperties: false
1042
1056
  },
1057
+ ContentFont: {
1058
+ type: "object",
1059
+ properties: {
1060
+ bold: { type: "boolean" },
1061
+ italic: { type: "boolean" },
1062
+ underline: { type: "boolean" },
1063
+ strike: { type: "boolean" },
1064
+ fontFamily: { type: "string" },
1065
+ sizePt: {
1066
+ type: "number",
1067
+ exclusiveMinimum: 0
1068
+ },
1069
+ color: { $ref: "#/$defs/Color" }
1070
+ },
1071
+ additionalProperties: false
1072
+ },
1043
1073
  ContentSheetCell: {
1044
1074
  type: "object",
1045
1075
  properties: {
@@ -1057,6 +1087,7 @@ const CONTENT_DEFS = {
1057
1087
  formula: { type: "string" },
1058
1088
  displayText: { type: "string" },
1059
1089
  numberFormatCode: { type: "string" },
1090
+ font: { $ref: "#/$defs/ContentFont" },
1060
1091
  runs: {
1061
1092
  type: "array",
1062
1093
  items: { $ref: "#/$defs/ContentRun" }
@@ -1854,6 +1885,7 @@ const CONTENT_DEFS = {
1854
1885
  exclusiveMinimum: 0
1855
1886
  },
1856
1887
  altText: { type: "string" },
1888
+ original: { $ref: "#/$defs/ContentImageOriginal" },
1857
1889
  floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
1858
1890
  sourcePath: { type: "string" },
1859
1891
  source: { $ref: "#/$defs/SourceResidue" },
@@ -494,6 +494,19 @@ const CONTENT_DEFS = {
494
494
  required: ["horizontal", "vertical"],
495
495
  additionalProperties: false
496
496
  },
497
+ ContentImageOriginal: {
498
+ type: "object",
499
+ properties: {
500
+ filter: {
501
+ type: "string",
502
+ enum: ["jbig2", "jpeg2000"]
503
+ },
504
+ base64: { type: "string" },
505
+ jbig2GlobalsBase64: { type: "string" }
506
+ },
507
+ required: ["filter", "base64"],
508
+ additionalProperties: false
509
+ },
497
510
  ContentImageBlock: {
498
511
  type: "object",
499
512
  properties: {
@@ -520,6 +533,7 @@ const CONTENT_DEFS = {
520
533
  exclusiveMinimum: 0
521
534
  },
522
535
  altText: { type: "string" },
536
+ original: { $ref: "#/$defs/ContentImageOriginal" },
523
537
  floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
524
538
  sourcePath: { type: "string" },
525
539
  source: { $ref: "#/$defs/SourceResidue" },
@@ -1039,6 +1053,22 @@ const CONTENT_DEFS = {
1039
1053
  ],
1040
1054
  additionalProperties: false
1041
1055
  },
1056
+ ContentFont: {
1057
+ type: "object",
1058
+ properties: {
1059
+ bold: { type: "boolean" },
1060
+ italic: { type: "boolean" },
1061
+ underline: { type: "boolean" },
1062
+ strike: { type: "boolean" },
1063
+ fontFamily: { type: "string" },
1064
+ sizePt: {
1065
+ type: "number",
1066
+ exclusiveMinimum: 0
1067
+ },
1068
+ color: { $ref: "#/$defs/Color" }
1069
+ },
1070
+ additionalProperties: false
1071
+ },
1042
1072
  ContentSheetCell: {
1043
1073
  type: "object",
1044
1074
  properties: {
@@ -1056,6 +1086,7 @@ const CONTENT_DEFS = {
1056
1086
  formula: { type: "string" },
1057
1087
  displayText: { type: "string" },
1058
1088
  numberFormatCode: { type: "string" },
1089
+ font: { $ref: "#/$defs/ContentFont" },
1059
1090
  runs: {
1060
1091
  type: "array",
1061
1092
  items: { $ref: "#/$defs/ContentRun" }
@@ -1853,6 +1884,7 @@ const CONTENT_DEFS = {
1853
1884
  exclusiveMinimum: 0
1854
1885
  },
1855
1886
  altText: { type: "string" },
1887
+ original: { $ref: "#/$defs/ContentImageOriginal" },
1856
1888
  floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
1857
1889
  sourcePath: { type: "string" },
1858
1890
  source: { $ref: "#/$defs/SourceResidue" },
package/dist/content.cjs CHANGED
@@ -9,15 +9,19 @@ const require_style = require("./style.cjs");
9
9
  const require_metadata = require("./metadata.cjs");
10
10
  let zod = require("zod");
11
11
  //#region src/content.ts
12
- const ContentRunSchema = zod.z.object({
13
- text: zod.z.string(),
12
+ const RUN_FONT_PROPERTY_SHAPE = {
14
13
  bold: zod.z.boolean().optional(),
15
14
  italic: zod.z.boolean().optional(),
16
15
  underline: zod.z.boolean().optional(),
17
16
  strike: zod.z.boolean().optional(),
18
17
  fontFamily: zod.z.string().optional(),
19
18
  sizePt: zod.z.number().positive().optional(),
20
- color: require_color.ColorSchema.optional(),
19
+ color: require_color.ColorSchema.optional()
20
+ };
21
+ const ContentFontSchema = zod.z.object(RUN_FONT_PROPERTY_SHAPE);
22
+ const ContentRunSchema = zod.z.object({
23
+ text: zod.z.string(),
24
+ ...RUN_FONT_PROPERTY_SHAPE,
21
25
  hyperlink: zod.z.string().optional(),
22
26
  verticalAlign: zod.z.enum(["superscript", "subscript"]).optional(),
23
27
  direction: require_style.TextDirectionSchema.optional(),
@@ -123,18 +127,28 @@ const ContentFloatPositionSchema = zod.z.object({
123
127
  horizontal: ContentFloatAxisSchema,
124
128
  vertical: ContentFloatAxisSchema
125
129
  });
130
+ const IMAGE_FORMATS = [
131
+ "png",
132
+ "jpeg",
133
+ "svg",
134
+ "gif"
135
+ ];
136
+ function isImageFormat(value) {
137
+ return typeof value === "string" && IMAGE_FORMATS.includes(value);
138
+ }
139
+ const ContentImageOriginalSchema = zod.z.object({
140
+ filter: zod.z.enum(["jbig2", "jpeg2000"]),
141
+ base64: zod.z.string(),
142
+ jbig2GlobalsBase64: zod.z.string().optional()
143
+ });
126
144
  const ContentImageBlockSchema = zod.z.object({
127
145
  kind: zod.z.literal("image"),
128
- format: zod.z.enum([
129
- "png",
130
- "jpeg",
131
- "svg",
132
- "gif"
133
- ]),
146
+ format: zod.z.enum(IMAGE_FORMATS),
134
147
  base64: zod.z.string(),
135
148
  widthPt: zod.z.number().positive(),
136
149
  heightPt: zod.z.number().positive(),
137
150
  altText: zod.z.string().optional(),
151
+ original: ContentImageOriginalSchema.optional(),
138
152
  floatPosition: ContentFloatPositionSchema.optional(),
139
153
  sourcePath: zod.z.string().optional(),
140
154
  source: require_source.SourceResidueSchema.optional(),
@@ -187,7 +201,7 @@ function isContentBlock(value) {
187
201
  if (!isRecord(value)) return false;
188
202
  const kind = value.kind;
189
203
  if (kind === "paragraph") return Array.isArray(value.runs) && value.runs.every(isContentRun) && (value.constructs === void 0 || Array.isArray(value.constructs) && value.constructs.every(isRunConstructExtent));
190
- if (kind === "image") return (value.format === "png" || value.format === "jpeg") && typeof value.base64 === "string" && typeof value.widthPt === "number" && typeof value.heightPt === "number";
204
+ if (kind === "image") return isImageFormat(value.format) && typeof value.base64 === "string" && typeof value.widthPt === "number" && typeof value.heightPt === "number";
191
205
  if (kind === "pageBreak") return true;
192
206
  if (kind === "table") return Array.isArray(value.rows) && value.rows.every(isContentTableRow) && Array.isArray(value.columnWidthsPt) && value.columnWidthsPt.every((w) => typeof w === "number");
193
207
  if (kind === "embeddedObject") return isContentEmbeddedObject(value);
@@ -462,6 +476,7 @@ const ContentSheetCellSchema = zod.z.object({
462
476
  formula: zod.z.string().optional(),
463
477
  displayText: zod.z.string(),
464
478
  numberFormatCode: zod.z.string().optional(),
479
+ font: ContentFontSchema.optional(),
465
480
  runs: zod.z.array(ContentRunSchema).optional(),
466
481
  colSpan: zod.z.number().int().positive().optional(),
467
482
  rowSpan: zod.z.number().int().positive().optional(),
@@ -838,6 +853,11 @@ const ContentFormulaSchema = zod.z.object({
838
853
  source: require_source.SourceResidueSchema.optional()
839
854
  });
840
855
  const contentDocumentSharedFields = { symbolTable: require_math.SymbolTableSchema.optional() };
856
+ const ContentDefinedNameSchema = zod.z.object({
857
+ name: zod.z.string(),
858
+ refersTo: zod.z.string(),
859
+ scopeSheetIndex: zod.z.number().int().nonnegative().optional()
860
+ });
841
861
  const ContentDocumentSchema = zod.z.discriminatedUnion("kind", [
842
862
  zod.z.object({
843
863
  kind: zod.z.literal("wordprocessing"),
@@ -855,7 +875,8 @@ const ContentDocumentSchema = zod.z.discriminatedUnion("kind", [
855
875
  kind: zod.z.literal("spreadsheet"),
856
876
  metadata: require_metadata.LayoutMetadataSchema,
857
877
  ...contentDocumentSharedFields,
858
- sheets: zod.z.array(ContentSheetSchema)
878
+ sheets: zod.z.array(ContentSheetSchema),
879
+ names: zod.z.array(ContentDefinedNameSchema).optional()
859
880
  }),
860
881
  zod.z.object({
861
882
  kind: zod.z.literal("drawing"),
@@ -880,6 +901,7 @@ exports.ContentCellPatternTypeSchema = ContentCellPatternTypeSchema;
880
901
  exports.ContentCellValueSchema = ContentCellValueSchema;
881
902
  exports.ContentConstructEndSchema = ContentConstructEndSchema;
882
903
  exports.ContentConstructStartSchema = ContentConstructStartSchema;
904
+ exports.ContentDefinedNameSchema = ContentDefinedNameSchema;
883
905
  exports.ContentDocumentSchema = ContentDocumentSchema;
884
906
  exports.ContentDrawPageSchema = ContentDrawPageSchema;
885
907
  exports.ContentEmbeddedObjectBlockSchema = ContentEmbeddedObjectBlockSchema;
@@ -889,12 +911,14 @@ exports.ContentFloatAlignSchema = ContentFloatAlignSchema;
889
911
  exports.ContentFloatAxisSchema = ContentFloatAxisSchema;
890
912
  exports.ContentFloatOriginSchema = ContentFloatOriginSchema;
891
913
  exports.ContentFloatPositionSchema = ContentFloatPositionSchema;
914
+ exports.ContentFontSchema = ContentFontSchema;
892
915
  exports.ContentFormulaSchema = ContentFormulaSchema;
893
916
  exports.ContentGradientFillSchema = ContentGradientFillSchema;
894
917
  exports.ContentGradientStyleSchema = ContentGradientStyleSchema;
895
918
  exports.ContentHatchFillSchema = ContentHatchFillSchema;
896
919
  exports.ContentHatchStyleSchema = ContentHatchStyleSchema;
897
920
  exports.ContentImageBlockSchema = ContentImageBlockSchema;
921
+ exports.ContentImageOriginalSchema = ContentImageOriginalSchema;
898
922
  exports.ContentListMembershipSchema = ContentListMembershipSchema;
899
923
  exports.ContentPageBreakSchema = ContentPageBreakSchema;
900
924
  exports.ContentPageFurnitureSchema = ContentPageFurnitureSchema;
@@ -930,6 +954,8 @@ exports.ContentTableRowSchema = ContentTableRowSchema;
930
954
  exports.ContentTableSchema = ContentTableSchema;
931
955
  exports.ContentVectorSchema = ContentVectorSchema;
932
956
  exports.DecimalStringSchema = DecimalStringSchema;
957
+ exports.IMAGE_FORMATS = IMAGE_FORMATS;
958
+ exports.RUN_FONT_PROPERTY_SHAPE = RUN_FONT_PROPERTY_SHAPE;
933
959
  exports.RunConstructExtentSchema = RunConstructExtentSchema;
934
960
  exports.SheetRuleOperatorSchema = SheetRuleOperatorSchema;
935
961
  exports.clampHeadingLevel = clampHeadingLevel;
@@ -1,2 +1,2 @@
1
- import { $ as ContentPageBreak, $t as ContentStrokeStyle, A as ContentFillPatternSchema, At as ContentSheetDataValidation, B as ContentFormulaSchema, Bt as ContentSheetRange, C as ContentDrawPageSchema, Cn as isContentBlock, Ct as ContentSheetColumnSchema, D as ContentEmbeddedObjectKind, Dn as resolveCellFillColor, Dt as ContentSheetConditionalFormatStyleSchema, E as ContentEmbeddedObjectBlockSchema, En as isRunConstructExtent, Et as ContentSheetConditionalFormatStyle, F as ContentFloatOrigin, Ft as ContentSheetImageSchema, G as ContentHatchFill, Gt as ContentSheetRowSchema, H as ContentGradientFillSchema, Ht as ContentSheetRepeatRange, I as ContentFloatOriginSchema, It as ContentSheetPrintRange, J as ContentHatchStyleSchema, Jt as ContentSlideSchema, K as ContentHatchFillSchema, Kt as ContentSheetSchema, L as ContentFloatPosition, Lt as ContentSheetPrintRangeSchema, M as ContentFloatAlignSchema, Mt as ContentSheetDataValidationType, N as ContentFloatAxis, Nt as ContentSheetDataValidationTypeSchema, O as ContentEmbeddedObjectSchema, On as unrecognizedFillKind, Ot as ContentSheetConditionalFormatValue, P as ContentFloatAxisSchema, Pt as ContentSheetImage, Q as ContentListMembershipSchema, Qt as ContentStrokeSchema, R as ContentFloatPositionSchema, Rt as ContentSheetPrintSettings, S as ContentDrawPage, Sn as findRunConstructFault, St as ContentSheetColumn, T as ContentEmbeddedObjectBlock, Tn as isContentConstructStart, Tt as ContentSheetConditionalFormatSchema, U as ContentGradientStyle, Ut as ContentSheetRepeatRangeSchema, V as ContentGradientFill, Vt as ContentSheetRangeSchema, W as ContentGradientStyleSchema, Wt as ContentSheetRow, X as ContentImageBlockSchema, Xt as ContentStrokeDash, Y as ContentImageBlock, Yt as ContentStroke, Z as ContentListMembership, Zt as ContentStrokeDashSchema, _ as ContentConstructEndSchema, _n as SheetRuleOperator, _t as ContentSheet, a as ContentBlockSchema, an as ContentTableCellSchema, at as ContentParagraphBordersSchema, b as ContentDocument, bn as contentDocumentSharedFields, bt as ContentSheetCellCommentSchema, c as ContentCellBorders, cn as ContentTableSchema, ct as ContentPathPointSchema, d as ContentCellFillSchema, dn as DecimalString, dt as ContentRun, en as ContentStrokeStyleSchema, et as ContentPageBreakSchema, f as ContentCellPatternType, fn as DecimalStringSchema, ft as ContentRunSchema, g as ContentConstructEnd, gn as RunConstructFault, gt as ContentShapeSchema, h as ContentCellValueSchema, hn as RunConstructExtentSchema, ht as ContentShape, i as ContentBlock, in as ContentTableCell, it as ContentParagraphBorders, j as ContentFloatAlign, jt as ContentSheetDataValidationSchema, k as ContentFillPattern, kt as ContentSheetConditionalFormatValueSchema, l as ContentCellBordersSchema, ln as ContentVector, lt as ContentPathSegment, m as ContentCellValue, mn as RunConstructExtent, mt as ContentSectionSchema, n as ContentBitmapFill, nn as ContentSubpathSchema, nt as ContentPageFurnitureSchema, o as ContentBorder, on as ContentTableRow, ot as ContentParagraphSchema, p as ContentCellPatternTypeSchema, pn as FusedNode, pt as ContentSection, q as ContentHatchStyle, qt as ContentSlide, r as ContentBitmapFillSchema, rn as ContentTable, rt as ContentParagraph, s as ContentBorderSchema, sn as ContentTableRowSchema, st as ContentPathPoint, t as ConstructMarkerImbalance, tn as ContentSubpath, tt as ContentPageFurniture, u as ContentCellFill, un as ContentVectorSchema, ut as ContentPathSegmentSchema, v as ContentConstructStart, vn as SheetRuleOperatorSchema, vt as ContentSheetCell, w as ContentEmbeddedObject, wn as isContentConstructEnd, wt as ContentSheetConditionalFormat, x as ContentDocumentSchema, xn as findConstructMarkerImbalance, xt as ContentSheetCellSchema, y as ContentConstructStartSchema, yn as clampHeadingLevel, yt as ContentSheetCellComment, z as ContentFormula, zt as ContentSheetPrintSettingsSchema } from "./content-BzkhrS6P.cjs";
2
- export { ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, 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, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
1
+ import { $ as ContentImageBlock, $t as ContentSlide, A as ContentEmbeddedObjectSchema, An as findConstructMarkerImbalance, At as ContentSheetConditionalFormat, B as ContentFloatPositionSchema, Bt as ContentSheetImage, C as ContentDocumentSchema, Cn as RunConstructExtent, Ct as ContentSheet, D as ContentEmbeddedObjectBlock, Dn as SheetRuleOperatorSchema, Dt as ContentSheetCellSchema, E as ContentEmbeddedObject, En as SheetRuleOperator, Et as ContentSheetCellCommentSchema, F as ContentFloatAxis, Fn as isRunConstructExtent, Ft as ContentSheetConditionalFormatValueSchema, G as ContentGradientFill, Gt as ContentSheetPrintSettingsSchema, H as ContentFontSchema, Ht as ContentSheetPrintRange, I as ContentFloatAxisSchema, In as resolveCellFillColor, It as ContentSheetDataValidation, J as ContentGradientStyleSchema, Jt as ContentSheetRepeatRange, K as ContentGradientFillSchema, Kt as ContentSheetRange, L as ContentFloatOrigin, Ln as unrecognizedFillKind, Lt as ContentSheetDataValidationSchema, M as ContentFillPatternSchema, Mn as isContentBlock, Mt as ContentSheetConditionalFormatStyle, N as ContentFloatAlign, Nn as isContentConstructEnd, Nt as ContentSheetConditionalFormatStyleSchema, O as ContentEmbeddedObjectBlockSchema, On as clampHeadingLevel, Ot as ContentSheetColumn, P as ContentFloatAlignSchema, Pn as isContentConstructStart, Pt as ContentSheetConditionalFormatValue, Q as ContentHatchStyleSchema, Qt as ContentSheetSchema, R as ContentFloatOriginSchema, Rt as ContentSheetDataValidationType, S as ContentDocument, Sn as RUN_FONT_PROPERTY_SHAPE, St as ContentShapeSchema, T as ContentDrawPageSchema, Tn as RunConstructFault, Tt as ContentSheetCellComment, U as ContentFormula, Ut as ContentSheetPrintRangeSchema, V as ContentFont, Vt as ContentSheetImageSchema, W as ContentFormulaSchema, Wt as ContentSheetPrintSettings, X as ContentHatchFillSchema, Xt as ContentSheetRow, Y as ContentHatchFill, Yt as ContentSheetRepeatRangeSchema, Z as ContentHatchStyle, Zt as ContentSheetRowSchema, _ as ContentConstructEndSchema, _n as DecimalString, _t as ContentRun, a as ContentBlockSchema, an as ContentStrokeStyle, at as ContentPageBreak, b as ContentDefinedName, bn as IMAGE_FORMATS, bt as ContentSectionSchema, c as ContentCellBorders, cn as ContentSubpathSchema, ct as ContentPageFurnitureSchema, d as ContentCellFillSchema, dn as ContentTableCellSchema, dt as ContentParagraphBordersSchema, en as ContentSlideSchema, et as ContentImageBlockSchema, f as ContentCellPatternType, fn as ContentTableRow, ft as ContentParagraphSchema, g as ContentConstructEnd, gn as ContentVectorSchema, gt as ContentPathSegmentSchema, h as ContentCellValueSchema, hn as ContentVector, ht as ContentPathSegment, i as ContentBlock, in as ContentStrokeSchema, it as ContentListMembershipSchema, j as ContentFillPattern, jn as findRunConstructFault, jt as ContentSheetConditionalFormatSchema, k as ContentEmbeddedObjectKind, kn as contentDocumentSharedFields, kt as ContentSheetColumnSchema, l as ContentCellBordersSchema, ln as ContentTable, lt as ContentParagraph, m as ContentCellValue, mn as ContentTableSchema, mt as ContentPathPointSchema, n as ContentBitmapFill, nn as ContentStrokeDash, nt as ContentImageOriginalSchema, o as ContentBorder, on as ContentStrokeStyleSchema, ot as ContentPageBreakSchema, p as ContentCellPatternTypeSchema, pn as ContentTableRowSchema, pt as ContentPathPoint, q as ContentGradientStyle, qt as ContentSheetRangeSchema, r as ContentBitmapFillSchema, rn as ContentStrokeDashSchema, rt as ContentListMembership, s as ContentBorderSchema, sn as ContentSubpath, st as ContentPageFurniture, t as ConstructMarkerImbalance, tn as ContentStroke, tt as ContentImageOriginal, u as ContentCellFill, un as ContentTableCell, ut as ContentParagraphBorders, v as ContentConstructStart, vn as DecimalStringSchema, vt as ContentRunSchema, w as ContentDrawPage, wn as RunConstructExtentSchema, wt as ContentSheetCell, x as ContentDefinedNameSchema, xn as ImageFormat, xt as ContentShape, y as ContentConstructStartSchema, yn as FusedNode, yt as ContentSection, z as ContentFloatPosition, zt as ContentSheetDataValidationTypeSchema } from "./content-DpsxyPMw.cjs";
2
+ export { 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, ContentListMembership, ContentListMembershipSchema, 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, 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 ContentPageBreak, $t as ContentStrokeStyle, A as ContentFillPatternSchema, At as ContentSheetDataValidation, B as ContentFormulaSchema, Bt as ContentSheetRange, C as ContentDrawPageSchema, Cn as isContentBlock, Ct as ContentSheetColumnSchema, D as ContentEmbeddedObjectKind, Dn as resolveCellFillColor, Dt as ContentSheetConditionalFormatStyleSchema, E as ContentEmbeddedObjectBlockSchema, En as isRunConstructExtent, Et as ContentSheetConditionalFormatStyle, F as ContentFloatOrigin, Ft as ContentSheetImageSchema, G as ContentHatchFill, Gt as ContentSheetRowSchema, H as ContentGradientFillSchema, Ht as ContentSheetRepeatRange, I as ContentFloatOriginSchema, It as ContentSheetPrintRange, J as ContentHatchStyleSchema, Jt as ContentSlideSchema, K as ContentHatchFillSchema, Kt as ContentSheetSchema, L as ContentFloatPosition, Lt as ContentSheetPrintRangeSchema, M as ContentFloatAlignSchema, Mt as ContentSheetDataValidationType, N as ContentFloatAxis, Nt as ContentSheetDataValidationTypeSchema, O as ContentEmbeddedObjectSchema, On as unrecognizedFillKind, Ot as ContentSheetConditionalFormatValue, P as ContentFloatAxisSchema, Pt as ContentSheetImage, Q as ContentListMembershipSchema, Qt as ContentStrokeSchema, R as ContentFloatPositionSchema, Rt as ContentSheetPrintSettings, S as ContentDrawPage, Sn as findRunConstructFault, St as ContentSheetColumn, T as ContentEmbeddedObjectBlock, Tn as isContentConstructStart, Tt as ContentSheetConditionalFormatSchema, U as ContentGradientStyle, Ut as ContentSheetRepeatRangeSchema, V as ContentGradientFill, Vt as ContentSheetRangeSchema, W as ContentGradientStyleSchema, Wt as ContentSheetRow, X as ContentImageBlockSchema, Xt as ContentStrokeDash, Y as ContentImageBlock, Yt as ContentStroke, Z as ContentListMembership, Zt as ContentStrokeDashSchema, _ as ContentConstructEndSchema, _n as SheetRuleOperator, _t as ContentSheet, a as ContentBlockSchema, an as ContentTableCellSchema, at as ContentParagraphBordersSchema, b as ContentDocument, bn as contentDocumentSharedFields, bt as ContentSheetCellCommentSchema, c as ContentCellBorders, cn as ContentTableSchema, ct as ContentPathPointSchema, d as ContentCellFillSchema, dn as DecimalString, dt as ContentRun, en as ContentStrokeStyleSchema, et as ContentPageBreakSchema, f as ContentCellPatternType, fn as DecimalStringSchema, ft as ContentRunSchema, g as ContentConstructEnd, gn as RunConstructFault, gt as ContentShapeSchema, h as ContentCellValueSchema, hn as RunConstructExtentSchema, ht as ContentShape, i as ContentBlock, in as ContentTableCell, it as ContentParagraphBorders, j as ContentFloatAlign, jt as ContentSheetDataValidationSchema, k as ContentFillPattern, kt as ContentSheetConditionalFormatValueSchema, l as ContentCellBordersSchema, ln as ContentVector, lt as ContentPathSegment, m as ContentCellValue, mn as RunConstructExtent, mt as ContentSectionSchema, n as ContentBitmapFill, nn as ContentSubpathSchema, nt as ContentPageFurnitureSchema, o as ContentBorder, on as ContentTableRow, ot as ContentParagraphSchema, p as ContentCellPatternTypeSchema, pn as FusedNode, pt as ContentSection, q as ContentHatchStyle, qt as ContentSlide, r as ContentBitmapFillSchema, rn as ContentTable, rt as ContentParagraph, s as ContentBorderSchema, sn as ContentTableRowSchema, st as ContentPathPoint, t as ConstructMarkerImbalance, tn as ContentSubpath, tt as ContentPageFurniture, u as ContentCellFill, un as ContentVectorSchema, ut as ContentPathSegmentSchema, v as ContentConstructStart, vn as SheetRuleOperatorSchema, vt as ContentSheetCell, w as ContentEmbeddedObject, wn as isContentConstructEnd, wt as ContentSheetConditionalFormat, x as ContentDocumentSchema, xn as findConstructMarkerImbalance, xt as ContentSheetCellSchema, y as ContentConstructStartSchema, yn as clampHeadingLevel, yt as ContentSheetCellComment, z as ContentFormula, zt as ContentSheetPrintSettingsSchema } from "./content-BCOxY0Eb.js";
2
- export { ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, 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, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
1
+ import { $ as ContentImageBlock, $t as ContentSlide, A as ContentEmbeddedObjectSchema, An as findConstructMarkerImbalance, At as ContentSheetConditionalFormat, B as ContentFloatPositionSchema, Bt as ContentSheetImage, C as ContentDocumentSchema, Cn as RunConstructExtent, Ct as ContentSheet, D as ContentEmbeddedObjectBlock, Dn as SheetRuleOperatorSchema, Dt as ContentSheetCellSchema, E as ContentEmbeddedObject, En as SheetRuleOperator, Et as ContentSheetCellCommentSchema, F as ContentFloatAxis, Fn as isRunConstructExtent, Ft as ContentSheetConditionalFormatValueSchema, G as ContentGradientFill, Gt as ContentSheetPrintSettingsSchema, H as ContentFontSchema, Ht as ContentSheetPrintRange, I as ContentFloatAxisSchema, In as resolveCellFillColor, It as ContentSheetDataValidation, J as ContentGradientStyleSchema, Jt as ContentSheetRepeatRange, K as ContentGradientFillSchema, Kt as ContentSheetRange, L as ContentFloatOrigin, Ln as unrecognizedFillKind, Lt as ContentSheetDataValidationSchema, M as ContentFillPatternSchema, Mn as isContentBlock, Mt as ContentSheetConditionalFormatStyle, N as ContentFloatAlign, Nn as isContentConstructEnd, Nt as ContentSheetConditionalFormatStyleSchema, O as ContentEmbeddedObjectBlockSchema, On as clampHeadingLevel, Ot as ContentSheetColumn, P as ContentFloatAlignSchema, Pn as isContentConstructStart, Pt as ContentSheetConditionalFormatValue, Q as ContentHatchStyleSchema, Qt as ContentSheetSchema, R as ContentFloatOriginSchema, Rt as ContentSheetDataValidationType, S as ContentDocument, Sn as RUN_FONT_PROPERTY_SHAPE, St as ContentShapeSchema, T as ContentDrawPageSchema, Tn as RunConstructFault, Tt as ContentSheetCellComment, U as ContentFormula, Ut as ContentSheetPrintRangeSchema, V as ContentFont, Vt as ContentSheetImageSchema, W as ContentFormulaSchema, Wt as ContentSheetPrintSettings, X as ContentHatchFillSchema, Xt as ContentSheetRow, Y as ContentHatchFill, Yt as ContentSheetRepeatRangeSchema, Z as ContentHatchStyle, Zt as ContentSheetRowSchema, _ as ContentConstructEndSchema, _n as DecimalString, _t as ContentRun, a as ContentBlockSchema, an as ContentStrokeStyle, at as ContentPageBreak, b as ContentDefinedName, bn as IMAGE_FORMATS, bt as ContentSectionSchema, c as ContentCellBorders, cn as ContentSubpathSchema, ct as ContentPageFurnitureSchema, d as ContentCellFillSchema, dn as ContentTableCellSchema, dt as ContentParagraphBordersSchema, en as ContentSlideSchema, et as ContentImageBlockSchema, f as ContentCellPatternType, fn as ContentTableRow, ft as ContentParagraphSchema, g as ContentConstructEnd, gn as ContentVectorSchema, gt as ContentPathSegmentSchema, h as ContentCellValueSchema, hn as ContentVector, ht as ContentPathSegment, i as ContentBlock, in as ContentStrokeSchema, it as ContentListMembershipSchema, j as ContentFillPattern, jn as findRunConstructFault, jt as ContentSheetConditionalFormatSchema, k as ContentEmbeddedObjectKind, kn as contentDocumentSharedFields, kt as ContentSheetColumnSchema, l as ContentCellBordersSchema, ln as ContentTable, lt as ContentParagraph, m as ContentCellValue, mn as ContentTableSchema, mt as ContentPathPointSchema, n as ContentBitmapFill, nn as ContentStrokeDash, nt as ContentImageOriginalSchema, o as ContentBorder, on as ContentStrokeStyleSchema, ot as ContentPageBreakSchema, p as ContentCellPatternTypeSchema, pn as ContentTableRowSchema, pt as ContentPathPoint, q as ContentGradientStyle, qt as ContentSheetRangeSchema, r as ContentBitmapFillSchema, rn as ContentStrokeDashSchema, rt as ContentListMembership, s as ContentBorderSchema, sn as ContentSubpath, st as ContentPageFurniture, t as ConstructMarkerImbalance, tn as ContentStroke, tt as ContentImageOriginal, u as ContentCellFill, un as ContentTableCell, ut as ContentParagraphBorders, v as ContentConstructStart, vn as DecimalStringSchema, vt as ContentRunSchema, w as ContentDrawPage, wn as RunConstructExtentSchema, wt as ContentSheetCell, x as ContentDefinedNameSchema, xn as ImageFormat, xt as ContentShape, y as ContentConstructStartSchema, yn as FusedNode, yt as ContentSection, z as ContentFloatPosition, zt as ContentSheetDataValidationTypeSchema } from "./content-BIM8bWWt.js";
2
+ export { 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, ContentListMembership, ContentListMembershipSchema, 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, 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
@@ -8,15 +8,19 @@ import { AlignmentSchema, TextDirectionSchema } from "./style.js";
8
8
  import { LayoutMetadataSchema } from "./metadata.js";
9
9
  import { z } from "zod";
10
10
  //#region src/content.ts
11
- const ContentRunSchema = z.object({
12
- text: z.string(),
11
+ const RUN_FONT_PROPERTY_SHAPE = {
13
12
  bold: z.boolean().optional(),
14
13
  italic: z.boolean().optional(),
15
14
  underline: z.boolean().optional(),
16
15
  strike: z.boolean().optional(),
17
16
  fontFamily: z.string().optional(),
18
17
  sizePt: z.number().positive().optional(),
19
- color: ColorSchema.optional(),
18
+ color: ColorSchema.optional()
19
+ };
20
+ const ContentFontSchema = z.object(RUN_FONT_PROPERTY_SHAPE);
21
+ const ContentRunSchema = z.object({
22
+ text: z.string(),
23
+ ...RUN_FONT_PROPERTY_SHAPE,
20
24
  hyperlink: z.string().optional(),
21
25
  verticalAlign: z.enum(["superscript", "subscript"]).optional(),
22
26
  direction: TextDirectionSchema.optional(),
@@ -122,18 +126,28 @@ const ContentFloatPositionSchema = z.object({
122
126
  horizontal: ContentFloatAxisSchema,
123
127
  vertical: ContentFloatAxisSchema
124
128
  });
129
+ const IMAGE_FORMATS = [
130
+ "png",
131
+ "jpeg",
132
+ "svg",
133
+ "gif"
134
+ ];
135
+ function isImageFormat(value) {
136
+ return typeof value === "string" && IMAGE_FORMATS.includes(value);
137
+ }
138
+ const ContentImageOriginalSchema = z.object({
139
+ filter: z.enum(["jbig2", "jpeg2000"]),
140
+ base64: z.string(),
141
+ jbig2GlobalsBase64: z.string().optional()
142
+ });
125
143
  const ContentImageBlockSchema = z.object({
126
144
  kind: z.literal("image"),
127
- format: z.enum([
128
- "png",
129
- "jpeg",
130
- "svg",
131
- "gif"
132
- ]),
145
+ format: z.enum(IMAGE_FORMATS),
133
146
  base64: z.string(),
134
147
  widthPt: z.number().positive(),
135
148
  heightPt: z.number().positive(),
136
149
  altText: z.string().optional(),
150
+ original: ContentImageOriginalSchema.optional(),
137
151
  floatPosition: ContentFloatPositionSchema.optional(),
138
152
  sourcePath: z.string().optional(),
139
153
  source: SourceResidueSchema.optional(),
@@ -186,7 +200,7 @@ function isContentBlock(value) {
186
200
  if (!isRecord(value)) return false;
187
201
  const kind = value.kind;
188
202
  if (kind === "paragraph") return Array.isArray(value.runs) && value.runs.every(isContentRun) && (value.constructs === void 0 || Array.isArray(value.constructs) && value.constructs.every(isRunConstructExtent));
189
- if (kind === "image") return (value.format === "png" || value.format === "jpeg") && typeof value.base64 === "string" && typeof value.widthPt === "number" && typeof value.heightPt === "number";
203
+ if (kind === "image") return isImageFormat(value.format) && typeof value.base64 === "string" && typeof value.widthPt === "number" && typeof value.heightPt === "number";
190
204
  if (kind === "pageBreak") return true;
191
205
  if (kind === "table") return Array.isArray(value.rows) && value.rows.every(isContentTableRow) && Array.isArray(value.columnWidthsPt) && value.columnWidthsPt.every((w) => typeof w === "number");
192
206
  if (kind === "embeddedObject") return isContentEmbeddedObject(value);
@@ -461,6 +475,7 @@ const ContentSheetCellSchema = z.object({
461
475
  formula: z.string().optional(),
462
476
  displayText: z.string(),
463
477
  numberFormatCode: z.string().optional(),
478
+ font: ContentFontSchema.optional(),
464
479
  runs: z.array(ContentRunSchema).optional(),
465
480
  colSpan: z.number().int().positive().optional(),
466
481
  rowSpan: z.number().int().positive().optional(),
@@ -837,6 +852,11 @@ const ContentFormulaSchema = z.object({
837
852
  source: SourceResidueSchema.optional()
838
853
  });
839
854
  const contentDocumentSharedFields = { symbolTable: SymbolTableSchema.optional() };
855
+ const ContentDefinedNameSchema = z.object({
856
+ name: z.string(),
857
+ refersTo: z.string(),
858
+ scopeSheetIndex: z.number().int().nonnegative().optional()
859
+ });
840
860
  const ContentDocumentSchema = z.discriminatedUnion("kind", [
841
861
  z.object({
842
862
  kind: z.literal("wordprocessing"),
@@ -854,7 +874,8 @@ const ContentDocumentSchema = z.discriminatedUnion("kind", [
854
874
  kind: z.literal("spreadsheet"),
855
875
  metadata: LayoutMetadataSchema,
856
876
  ...contentDocumentSharedFields,
857
- sheets: z.array(ContentSheetSchema)
877
+ sheets: z.array(ContentSheetSchema),
878
+ names: z.array(ContentDefinedNameSchema).optional()
858
879
  }),
859
880
  z.object({
860
881
  kind: z.literal("drawing"),
@@ -870,4 +891,4 @@ const ContentDocumentSchema = z.discriminatedUnion("kind", [
870
891
  })
871
892
  ]);
872
893
  //#endregion
873
- export { ContentBitmapFillSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellFillSchema, ContentCellPatternTypeSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFillPatternSchema, ContentFloatAlignSchema, ContentFloatAxisSchema, ContentFloatOriginSchema, ContentFloatPositionSchema, ContentFormulaSchema, ContentGradientFillSchema, ContentGradientStyleSchema, ContentHatchFillSchema, ContentHatchStyleSchema, ContentImageBlockSchema, ContentListMembershipSchema, 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, ContentVectorSchema, DecimalStringSchema, RunConstructExtentSchema, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
894
+ export { 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, ContentListMembershipSchema, 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, ContentVectorSchema, DecimalStringSchema, IMAGE_FORMATS, RUN_FONT_PROPERTY_SHAPE, RunConstructExtentSchema, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
@@ -1,5 +1,5 @@
1
- import { S as ContentDrawPage, _t as ContentSheet, b as ContentDocument, ht as ContentShape, pt as ContentSection, qt as ContentSlide, rt as ContentParagraph, t as ConstructMarkerImbalance, z as ContentFormula } from "./content-BzkhrS6P.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-RQMDBzwd.cjs";
1
+ import { $t as ContentSlide, Ct as ContentSheet, S as ContentDocument, U as ContentFormula, lt as ContentParagraph, t as ConstructMarkerImbalance, w as ContentDrawPage, xt as ContentShape, yt as ContentSection } from "./content-DpsxyPMw.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-CENJl5PH.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;
@@ -1,5 +1,5 @@
1
- import { S as ContentDrawPage, _t as ContentSheet, b as ContentDocument, ht as ContentShape, pt as ContentSection, qt as ContentSlide, rt as ContentParagraph, t as ConstructMarkerImbalance, z as ContentFormula } from "./content-BCOxY0Eb.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-C4mh1hLY.js";
1
+ import { $t as ContentSlide, Ct as ContentSheet, S as ContentDocument, U as ContentFormula, lt as ContentParagraph, t as ConstructMarkerImbalance, w as ContentDrawPage, xt as ContentShape, yt as ContentSection } from "./content-BIM8bWWt.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-B8LBrCCD.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;
@@ -1,5 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_color = require("./color.cjs");
3
2
  const require_style = require("./style.cjs");
4
3
  const require_content = require("./content.cjs");
5
4
  let zod = require("zod");
@@ -15,15 +14,7 @@ const StyleParagraphPropertiesSchema = zod.z.strictObject({
15
14
  pageBreakBefore: zod.z.boolean().optional(),
16
15
  pageBreakAfter: zod.z.boolean().optional()
17
16
  });
18
- const StyleRunPropertiesSchema = zod.z.strictObject({
19
- bold: zod.z.boolean().optional(),
20
- italic: zod.z.boolean().optional(),
21
- underline: zod.z.boolean().optional(),
22
- strike: zod.z.boolean().optional(),
23
- fontFamily: zod.z.string().optional(),
24
- sizePt: zod.z.number().positive().optional(),
25
- color: require_color.ColorSchema.optional()
26
- });
17
+ const StyleRunPropertiesSchema = zod.z.strictObject(require_content.RUN_FONT_PROPERTY_SHAPE);
27
18
  const StyleEntrySchema = zod.z.strictObject({
28
19
  paragraph: StyleParagraphPropertiesSchema.optional(),
29
20
  run: StyleRunPropertiesSchema.optional()
@@ -1,11 +1,11 @@
1
- import { dt as ContentRun, rt as ContentParagraph } from "./content-BzkhrS6P.cjs";
1
+ import { _t as ContentRun, lt as ContentParagraph } from "./content-DpsxyPMw.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<{
@@ -1,11 +1,11 @@
1
- import { dt as ContentRun, rt as ContentParagraph } from "./content-BCOxY0Eb.js";
1
+ import { _t as ContentRun, lt as ContentParagraph } from "./content-BIM8bWWt.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<{
@@ -1,6 +1,5 @@
1
- import { ColorSchema } from "./color.js";
2
1
  import { AlignmentSchema } from "./style.js";
3
- import { ContentListMembershipSchema } from "./content.js";
2
+ import { ContentListMembershipSchema, RUN_FONT_PROPERTY_SHAPE } from "./content.js";
4
3
  import { z } from "zod";
5
4
  //#region src/definitions.ts
6
5
  const StyleParagraphPropertiesSchema = z.strictObject({
@@ -14,15 +13,7 @@ const StyleParagraphPropertiesSchema = z.strictObject({
14
13
  pageBreakBefore: z.boolean().optional(),
15
14
  pageBreakAfter: z.boolean().optional()
16
15
  });
17
- const StyleRunPropertiesSchema = z.strictObject({
18
- bold: z.boolean().optional(),
19
- italic: z.boolean().optional(),
20
- underline: z.boolean().optional(),
21
- strike: z.boolean().optional(),
22
- fontFamily: z.string().optional(),
23
- sizePt: z.number().positive().optional(),
24
- color: ColorSchema.optional()
25
- });
16
+ const StyleRunPropertiesSchema = z.strictObject(RUN_FONT_PROPERTY_SHAPE);
26
17
  const StyleEntrySchema = z.strictObject({
27
18
  paragraph: StyleParagraphPropertiesSchema.optional(),
28
19
  run: StyleRunPropertiesSchema.optional()
@@ -60,6 +60,7 @@ function assembleTree(content, pages) {
60
60
  case "spreadsheet": return mint({
61
61
  kind: "spreadsheet",
62
62
  ...envelope,
63
+ ...content.names !== void 0 ? { names: content.names } : {},
63
64
  children: content.sheets.map(require_decompose.decomposeSheet)
64
65
  });
65
66
  case "drawing": return mint({
@@ -1,5 +1,5 @@
1
1
  import { l as PageSize } from "./geometry-CvcjSwnA.cjs";
2
- import { b as ContentDocument } from "./content-BzkhrS6P.cjs";
2
+ import { S as ContentDocument } from "./content-DpsxyPMw.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;
@@ -1,5 +1,5 @@
1
1
  import { l as PageSize } from "./geometry-CvcjSwnA.js";
2
- import { b as ContentDocument } from "./content-BCOxY0Eb.js";
2
+ import { S as ContentDocument } from "./content-BIM8bWWt.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;
@@ -59,6 +59,7 @@ function assembleTree(content, pages) {
59
59
  case "spreadsheet": return mint({
60
60
  kind: "spreadsheet",
61
61
  ...envelope,
62
+ ...content.names !== void 0 ? { names: content.names } : {},
62
63
  children: content.sheets.map(decomposeSheet)
63
64
  });
64
65
  case "drawing": return mint({
package/dist/flatten.cjs CHANGED
@@ -48,6 +48,7 @@ function flattenTree(pkg) {
48
48
  case "spreadsheet": return {
49
49
  kind: "spreadsheet",
50
50
  ...envelope,
51
+ ...pkg.names !== void 0 ? { names: pkg.names } : {},
51
52
  sheets: pkg.children.map((group) => {
52
53
  if (group.style !== void 0) throw new Error("flattenTree: a sheet group carries a style ref but a sheet holds no block flow to resolve it onto");
53
54
  const images = [];
@@ -1,4 +1,4 @@
1
- import { b as ContentDocument } from "./content-BzkhrS6P.cjs";
1
+ import { S as ContentDocument } from "./content-DpsxyPMw.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
@@ -1,4 +1,4 @@
1
- import { b as ContentDocument } from "./content-BCOxY0Eb.js";
1
+ import { S as ContentDocument } from "./content-BIM8bWWt.js";
2
2
  import { DocumentTree } from "./package.js";
3
3
  //#region src/flatten.d.ts
4
4
  declare function flattenTree(pkg: DocumentTree): ContentDocument;