document-schema 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.
Files changed (51) hide show
  1. package/dist/a1.d.cts +1 -1
  2. package/dist/a1.d.ts +1 -1
  3. package/dist/codec.d.cts +1 -1
  4. package/dist/codec.d.ts +1 -1
  5. package/dist/{color-AELCDH_b.d.cts → color-CS3HtBwD.d.cts} +1 -1
  6. package/dist/{color-AELCDH_b.d.ts → color-CS3HtBwD.d.ts} +1 -1
  7. package/dist/color.d.cts +1 -1
  8. package/dist/color.d.ts +1 -1
  9. package/dist/{content-Cc9oMKMd.d.ts → content-BMrK9SrW.d.ts} +15 -4
  10. package/dist/{content-Db6wh_6v.d.cts → content-Dg9cb8mF.d.cts} +15 -4
  11. package/dist/content-json-schema-defs.cjs +15 -6
  12. package/dist/content-json-schema-defs.js +15 -6
  13. package/dist/content.cjs +10 -2
  14. package/dist/content.d.cts +2 -2
  15. package/dist/content.d.ts +2 -2
  16. package/dist/content.js +10 -3
  17. package/dist/decompose.cjs +13 -7
  18. package/dist/decompose.d.cts +2 -2
  19. package/dist/decompose.d.ts +2 -2
  20. package/dist/decompose.js +13 -7
  21. package/dist/definitions.d.cts +1 -1
  22. package/dist/definitions.d.ts +1 -1
  23. package/dist/factor-styles.d.cts +1 -1
  24. package/dist/factor-styles.d.ts +1 -1
  25. package/dist/flatten.d.cts +1 -1
  26. package/dist/flatten.d.ts +1 -1
  27. package/dist/index.cjs +1 -0
  28. package/dist/index.d.cts +4 -4
  29. package/dist/index.d.ts +4 -4
  30. package/dist/index.js +2 -2
  31. package/dist/math-layout.d.cts +1 -1
  32. package/dist/math-layout.d.ts +1 -1
  33. package/dist/{package-node-D-1yiCmi.d.ts → package-node-gA3Kpgl2.d.ts} +1 -1
  34. package/dist/{package-node-D42YxKm6.d.cts → package-node-wxNXHAov.d.cts} +1 -1
  35. package/dist/package-node.d.cts +1 -1
  36. package/dist/package-node.d.ts +1 -1
  37. package/dist/package.d.cts +1 -1
  38. package/dist/package.d.ts +1 -1
  39. package/dist/schema-io.cjs +2 -2
  40. package/dist/schema-io.d.cts +1 -1
  41. package/dist/schema-io.d.ts +1 -1
  42. package/dist/schema-io.js +2 -2
  43. package/dist/table-grid.cjs +3 -3
  44. package/dist/table-grid.d.cts +3 -3
  45. package/dist/table-grid.d.ts +3 -3
  46. package/dist/table-grid.js +3 -3
  47. package/dist/text-layout.d.cts +7 -7
  48. package/dist/text-layout.d.ts +7 -7
  49. package/package.json +1 -1
  50. package/schemas/content-document.schema.json +35 -20
  51. package/schemas/document-tree.schema.json +22 -7
package/dist/a1.d.cts CHANGED
@@ -14,6 +14,6 @@ interface CellRange {
14
14
  endColumn: number;
15
15
  }
16
16
  declare function parseRangeReference(ref: string): CellRange | undefined;
17
- declare function rangeReference(range: CellRange): string;
17
+ declare function rangeReference(range: Readonly<CellRange>): string;
18
18
  //#endregion
19
19
  export { CellPosition, CellRange, cellReference, columnIndexToLetters, columnLettersToIndex, parseCellReference, parseRangeReference, rangeReference };
package/dist/a1.d.ts CHANGED
@@ -14,6 +14,6 @@ interface CellRange {
14
14
  endColumn: number;
15
15
  }
16
16
  declare function parseRangeReference(ref: string): CellRange | undefined;
17
- declare function rangeReference(range: CellRange): string;
17
+ declare function rangeReference(range: Readonly<CellRange>): string;
18
18
  //#endregion
19
19
  export { CellPosition, CellRange, cellReference, columnIndexToLetters, columnLettersToIndex, parseCellReference, parseRangeReference, rangeReference };
package/dist/codec.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ContentDocument } from "./content-Db6wh_6v.cjs";
1
+ import { C as ContentDocument } from "./content-Dg9cb8mF.cjs";
2
2
  //#region src/codec.d.ts
3
3
  interface ContentCodec<TOptions = unknown> {
4
4
  read(bytes: Uint8Array, options?: TOptions): ContentDocument;
package/dist/codec.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ContentDocument } from "./content-Cc9oMKMd.js";
1
+ import { C as ContentDocument } from "./content-BMrK9SrW.js";
2
2
  //#region src/codec.d.ts
3
3
  interface ContentCodec<TOptions = unknown> {
4
4
  read(bytes: Uint8Array, options?: TOptions): ContentDocument;
@@ -8,6 +8,6 @@ declare const ColorSchema: z.ZodObject<{
8
8
  type Color = z.infer<typeof ColorSchema>;
9
9
  declare const COLOR_BLACK: Color;
10
10
  declare function rgbHexToColor(hex: string): Color;
11
- declare function colorToRgbHex(color: Color): string;
11
+ declare function colorToRgbHex(color: Readonly<Color>): string;
12
12
  //#endregion
13
13
  export { rgbHexToColor as a, colorToRgbHex as i, Color as n, ColorSchema as r, COLOR_BLACK as t };
@@ -8,6 +8,6 @@ declare const ColorSchema: z.ZodObject<{
8
8
  type Color = z.infer<typeof ColorSchema>;
9
9
  declare const COLOR_BLACK: Color;
10
10
  declare function rgbHexToColor(hex: string): Color;
11
- declare function colorToRgbHex(color: Color): string;
11
+ declare function colorToRgbHex(color: Readonly<Color>): string;
12
12
  //#endregion
13
13
  export { rgbHexToColor as a, colorToRgbHex as i, Color as n, ColorSchema as r, COLOR_BLACK as t };
package/dist/color.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-AELCDH_b.cjs";
1
+ import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-CS3HtBwD.cjs";
2
2
  export { COLOR_BLACK, Color, ColorSchema, colorToRgbHex, rgbHexToColor };
package/dist/color.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-AELCDH_b.js";
1
+ import { a as rgbHexToColor, i as colorToRgbHex, n as Color, r as ColorSchema, t as COLOR_BLACK } from "./color-CS3HtBwD.js";
2
2
  export { COLOR_BLACK, Color, ColorSchema, colorToRgbHex, rgbHexToColor };
@@ -1,6 +1,6 @@
1
1
  import { d as MathMlNode } from "./mathml-Czqc1mdZ.js";
2
2
  import { p as MathExpression } from "./math-BScHxedi.js";
3
- import { n as Color } from "./color-AELCDH_b.js";
3
+ import { n as Color } from "./color-CS3HtBwD.js";
4
4
  import { r as LayoutFrame, t as Box } from "./geometry-CvcjSwnA.js";
5
5
  import { r as SourceResidue } from "./source-Bas5ol6f.js";
6
6
  import { o as TextDirection } from "./style-BGMcYrD2.js";
@@ -1518,10 +1518,14 @@ interface ContentTableRow {
1518
1518
  direction?: TextDirection;
1519
1519
  isHeader?: boolean;
1520
1520
  }
1521
+ interface ContentTableColumn {
1522
+ widthPt: number;
1523
+ isHeader?: boolean;
1524
+ }
1521
1525
  interface ContentTable {
1522
1526
  kind: "table";
1523
1527
  rows: ContentTableRow[];
1524
- columnWidthsPt: number[];
1528
+ columns: ContentTableColumn[];
1525
1529
  sourcePath?: string;
1526
1530
  source?: SourceResidue;
1527
1531
  frames?: LayoutFrame[];
@@ -4874,6 +4878,10 @@ declare const ContentTableRowSchema: z.ZodObject<{
4874
4878
  }>>;
4875
4879
  isHeader: z.ZodOptional<z.ZodBoolean>;
4876
4880
  }, z.core.$strip>;
4881
+ declare const ContentTableColumnSchema: z.ZodObject<{
4882
+ widthPt: z.ZodNumber;
4883
+ isHeader: z.ZodOptional<z.ZodBoolean>;
4884
+ }, z.core.$strip>;
4877
4885
  declare const ContentTableSchema: z.ZodObject<{
4878
4886
  origin: z.ZodOptional<z.ZodEnum<{
4879
4887
  chart: "chart";
@@ -5137,7 +5145,10 @@ declare const ContentTableSchema: z.ZodObject<{
5137
5145
  }>>;
5138
5146
  isHeader: z.ZodOptional<z.ZodBoolean>;
5139
5147
  }, z.core.$strip>>;
5140
- columnWidthsPt: z.ZodArray<z.ZodNumber>;
5148
+ columns: z.ZodArray<z.ZodObject<{
5149
+ widthPt: z.ZodNumber;
5150
+ isHeader: z.ZodOptional<z.ZodBoolean>;
5151
+ }, z.core.$strip>>;
5141
5152
  sourcePath: z.ZodOptional<z.ZodString>;
5142
5153
  source: z.ZodOptional<z.ZodObject<{
5143
5154
  format: z.ZodEnum<{
@@ -12153,4 +12164,4 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
12153
12164
  }, z.core.$strip>], "kind">;
12154
12165
  type ContentDocument = z.infer<typeof ContentDocumentSchema>;
12155
12166
  //#endregion
12156
- export { ContentHatchStyleSchema as $, ContentSheetRepeatRange as $t, ContentEmbeddedObjectKind as A, RunConstructExtent as An, ContentSheetCellComment as At, ContentFloatPosition as B, isContentConstructEnd as Bn, ContentSheetConditionalFormatValueSchema as Bt, ContentDocument as C, ContentVectorSchema as Cn, ContentRunSchema as Ct, ContentEmbeddedObject as D, IMAGE_FORMATS as Dn, ContentShapeSchema as Dt, ContentDrawPageSchema as E, FusedNode as En, ContentShape as Et, ContentFloatAlignSchema as F, clampHeadingLevel as Fn, ContentSheetConditionalFormat as Ft, ContentFormulaSchema as G, ContentSheetImage as Gt, ContentFont as H, isRunConstructExtent as Hn, ContentSheetDataValidationSchema as Ht, ContentFloatAxis as I, contentDocumentSharedFields as In, ContentSheetConditionalFormatSchema as It, ContentGradientStyle as J, ContentSheetPrintRangeSchema as Jt, ContentGradientFill as K, ContentSheetImageSchema as Kt, ContentFloatAxisSchema as L, findConstructMarkerImbalance as Ln, ContentSheetConditionalFormatStyle as Lt, ContentFillPattern as M, RunConstructFault as Mn, ContentSheetCellSchema as Mt, ContentFillPatternSchema as N, SheetRuleOperator as Nn, ContentSheetColumn as Nt, ContentEmbeddedObjectBlock as O, ImageFormat as On, ContentSheet as Ot, ContentFloatAlign as P, SheetRuleOperatorSchema as Pn, ContentSheetColumnSchema as Pt, ContentHatchStyle as Q, ContentSheetRangeSchema as Qt, ContentFloatOrigin as R, findRunConstructFault as Rn, ContentSheetConditionalFormatStyleSchema as Rt, ContentDefinedNameSchema as S, ContentVector as Sn, ContentRun as St, ContentDrawPage as T, DecimalStringSchema as Tn, ContentSectionSchema as Tt, ContentFontSchema as U, resolveCellFillColor as Un, ContentSheetDataValidationType as Ut, ContentFloatPositionSchema as V, isContentConstructStart as Vn, ContentSheetDataValidation as Vt, ContentFormula as W, unrecognizedFillKind as Wn, ContentSheetDataValidationTypeSchema as Wt, ContentHatchFill as X, ContentSheetPrintSettingsSchema as Xt, ContentGradientStyleSchema as Y, ContentSheetPrintSettings as Yt, ContentHatchFillSchema as Z, ContentSheetRange as Zt, ContentConstructEnd as _, ContentTableRow as _n, ContentParagraphSchema as _t, ContentBlock as a, ContentSlideSchema as an, ContentInterpretationSchema as at, ContentConstructStartSchema as b, ContentTranscript as bn, ContentPathSegment as bt, ContentBorderSchema as c, ContentStrokeDashSchema as cn, ContentOrigin as ct, ContentCellFill as d, ContentStrokeStyleSchema as dn, ContentPageBreakSchema as dt, ContentSheetRepeatRangeSchema as en, ContentImageBlock as et, ContentCellFillSchema as f, ContentSubpath as fn, ContentPageFurniture as ft, ContentCellValueSchema as g, ContentTableCellSchema as gn, ContentParagraphBordersSchema as gt, ContentCellValue as h, ContentTableCell as hn, ContentParagraphBorders as ht, ContentBitmapFillSchema as i, ContentSlide as in, ContentInterpretation as it, ContentEmbeddedObjectSchema as j, RunConstructExtentSchema as jn, ContentSheetCellCommentSchema as jt, ContentEmbeddedObjectBlockSchema as k, RUN_FONT_PROPERTY_SHAPE as kn, ContentSheetCell as kt, ContentCellBorders as l, ContentStrokeSchema as ln, ContentOriginSchema as lt, ContentCellPatternTypeSchema as m, ContentTable as mn, ContentParagraph as mt, ConstructMarkerImbalance as n, ContentSheetRowSchema as nn, ContentImageOriginal as nt, ContentBlockSchema as o, ContentStroke as on, ContentListMembership as ot, ContentCellPatternType as p, ContentSubpathSchema as pn, ContentPageFurnitureSchema as pt, ContentGradientFillSchema as q, ContentSheetPrintRange as qt, ContentBitmapFill as r, ContentSheetSchema as rn, ContentImageOriginalSchema as rt, ContentBorder as s, ContentStrokeDash as sn, ContentListMembershipSchema as st, CONTENT_ANNOTATION_FIELDS as t, ContentSheetRow as tn, ContentImageBlockSchema as tt, ContentCellBordersSchema as u, ContentStrokeStyle as un, ContentPageBreak as ut, ContentConstructEndSchema as v, ContentTableRowSchema as vn, ContentPathPoint as vt, ContentDocumentSchema as w, DecimalString as wn, ContentSection as wt, ContentDefinedName as x, ContentTranscriptSchema as xn, ContentPathSegmentSchema as xt, ContentConstructStart as y, ContentTableSchema as yn, ContentPathPointSchema as yt, ContentFloatOriginSchema as z, isContentBlock as zn, ContentSheetConditionalFormatValue as zt };
12167
+ export { ContentHatchStyleSchema as $, ContentSheetRepeatRange as $t, ContentEmbeddedObjectKind as A, ImageFormat as An, ContentSheetCellComment as At, ContentFloatPosition as B, findRunConstructFault as Bn, ContentSheetConditionalFormatValueSchema as Bt, ContentDocument as C, ContentTranscriptSchema as Cn, ContentRunSchema as Ct, ContentEmbeddedObject as D, DecimalStringSchema as Dn, ContentShapeSchema as Dt, ContentDrawPageSchema as E, DecimalString as En, ContentShape as Et, ContentFloatAlignSchema as F, SheetRuleOperator as Fn, ContentSheetConditionalFormat as Ft, ContentFormulaSchema as G, resolveCellFillColor as Gn, ContentSheetImage as Gt, ContentFont as H, isContentConstructEnd as Hn, ContentSheetDataValidationSchema as Ht, ContentFloatAxis as I, SheetRuleOperatorSchema as In, ContentSheetConditionalFormatSchema as It, ContentGradientStyle as J, ContentSheetPrintRangeSchema as Jt, ContentGradientFill as K, unrecognizedFillKind as Kn, ContentSheetImageSchema as Kt, ContentFloatAxisSchema as L, clampHeadingLevel as Ln, ContentSheetConditionalFormatStyle as Lt, ContentFillPattern as M, RunConstructExtent as Mn, ContentSheetCellSchema as Mt, ContentFillPatternSchema as N, RunConstructExtentSchema as Nn, ContentSheetColumn as Nt, ContentEmbeddedObjectBlock as O, FusedNode as On, ContentSheet as Ot, ContentFloatAlign as P, RunConstructFault as Pn, ContentSheetColumnSchema as Pt, ContentHatchStyle as Q, ContentSheetRangeSchema as Qt, ContentFloatOrigin as R, contentDocumentSharedFields as Rn, ContentSheetConditionalFormatStyleSchema as Rt, ContentDefinedNameSchema as S, ContentTranscript as Sn, ContentRun as St, ContentDrawPage as T, ContentVectorSchema as Tn, ContentSectionSchema as Tt, ContentFontSchema as U, isContentConstructStart as Un, ContentSheetDataValidationType as Ut, ContentFloatPositionSchema as V, isContentBlock as Vn, ContentSheetDataValidation as Vt, ContentFormula as W, isRunConstructExtent as Wn, ContentSheetDataValidationTypeSchema as Wt, ContentHatchFill as X, ContentSheetPrintSettingsSchema as Xt, ContentGradientStyleSchema as Y, ContentSheetPrintSettings as Yt, ContentHatchFillSchema as Z, ContentSheetRange as Zt, ContentConstructEnd as _, ContentTableColumn as _n, ContentParagraphSchema as _t, ContentBlock as a, ContentSlideSchema as an, ContentInterpretationSchema as at, ContentConstructStartSchema as b, ContentTableRowSchema as bn, ContentPathSegment as bt, ContentBorderSchema as c, ContentStrokeDashSchema as cn, ContentOrigin as ct, ContentCellFill as d, ContentStrokeStyleSchema as dn, ContentPageBreakSchema as dt, ContentSheetRepeatRangeSchema as en, ContentImageBlock as et, ContentCellFillSchema as f, ContentSubpath as fn, ContentPageFurniture as ft, ContentCellValueSchema as g, ContentTableCellSchema as gn, ContentParagraphBordersSchema as gt, ContentCellValue as h, ContentTableCell as hn, ContentParagraphBorders as ht, ContentBitmapFillSchema as i, ContentSlide as in, ContentInterpretation as it, ContentEmbeddedObjectSchema as j, RUN_FONT_PROPERTY_SHAPE as jn, ContentSheetCellCommentSchema as jt, ContentEmbeddedObjectBlockSchema as k, IMAGE_FORMATS as kn, ContentSheetCell as kt, ContentCellBorders as l, ContentStrokeSchema as ln, ContentOriginSchema as lt, ContentCellPatternTypeSchema as m, ContentTable as mn, ContentParagraph as mt, ConstructMarkerImbalance as n, ContentSheetRowSchema as nn, ContentImageOriginal as nt, ContentBlockSchema as o, ContentStroke as on, ContentListMembership as ot, ContentCellPatternType as p, ContentSubpathSchema as pn, ContentPageFurnitureSchema as pt, ContentGradientFillSchema as q, ContentSheetPrintRange as qt, ContentBitmapFill as r, ContentSheetSchema as rn, ContentImageOriginalSchema as rt, ContentBorder as s, ContentStrokeDash as sn, ContentListMembershipSchema as st, CONTENT_ANNOTATION_FIELDS as t, ContentSheetRow as tn, ContentImageBlockSchema as tt, ContentCellBordersSchema as u, ContentStrokeStyle as un, ContentPageBreak as ut, ContentConstructEndSchema as v, ContentTableColumnSchema as vn, ContentPathPoint as vt, ContentDocumentSchema as w, ContentVector as wn, ContentSection as wt, ContentDefinedName as x, ContentTableSchema as xn, ContentPathSegmentSchema as xt, ContentConstructStart as y, ContentTableRow as yn, ContentPathPointSchema as yt, ContentFloatOriginSchema as z, findConstructMarkerImbalance as zn, ContentSheetConditionalFormatValue as zt };
@@ -1,6 +1,6 @@
1
1
  import { d as MathMlNode } from "./mathml-Czqc1mdZ.cjs";
2
2
  import { p as MathExpression } from "./math-BScHxedi.cjs";
3
- import { n as Color } from "./color-AELCDH_b.cjs";
3
+ import { n as Color } from "./color-CS3HtBwD.cjs";
4
4
  import { r as LayoutFrame, t as Box } from "./geometry-CvcjSwnA.cjs";
5
5
  import { r as SourceResidue } from "./source-Bas5ol6f.cjs";
6
6
  import { o as TextDirection } from "./style-BGMcYrD2.cjs";
@@ -1518,10 +1518,14 @@ interface ContentTableRow {
1518
1518
  direction?: TextDirection;
1519
1519
  isHeader?: boolean;
1520
1520
  }
1521
+ interface ContentTableColumn {
1522
+ widthPt: number;
1523
+ isHeader?: boolean;
1524
+ }
1521
1525
  interface ContentTable {
1522
1526
  kind: "table";
1523
1527
  rows: ContentTableRow[];
1524
- columnWidthsPt: number[];
1528
+ columns: ContentTableColumn[];
1525
1529
  sourcePath?: string;
1526
1530
  source?: SourceResidue;
1527
1531
  frames?: LayoutFrame[];
@@ -4874,6 +4878,10 @@ declare const ContentTableRowSchema: z.ZodObject<{
4874
4878
  }>>;
4875
4879
  isHeader: z.ZodOptional<z.ZodBoolean>;
4876
4880
  }, z.core.$strip>;
4881
+ declare const ContentTableColumnSchema: z.ZodObject<{
4882
+ widthPt: z.ZodNumber;
4883
+ isHeader: z.ZodOptional<z.ZodBoolean>;
4884
+ }, z.core.$strip>;
4877
4885
  declare const ContentTableSchema: z.ZodObject<{
4878
4886
  origin: z.ZodOptional<z.ZodEnum<{
4879
4887
  chart: "chart";
@@ -5137,7 +5145,10 @@ declare const ContentTableSchema: z.ZodObject<{
5137
5145
  }>>;
5138
5146
  isHeader: z.ZodOptional<z.ZodBoolean>;
5139
5147
  }, z.core.$strip>>;
5140
- columnWidthsPt: z.ZodArray<z.ZodNumber>;
5148
+ columns: z.ZodArray<z.ZodObject<{
5149
+ widthPt: z.ZodNumber;
5150
+ isHeader: z.ZodOptional<z.ZodBoolean>;
5151
+ }, z.core.$strip>>;
5141
5152
  sourcePath: z.ZodOptional<z.ZodString>;
5142
5153
  source: z.ZodOptional<z.ZodObject<{
5143
5154
  format: z.ZodEnum<{
@@ -12153,4 +12164,4 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
12153
12164
  }, z.core.$strip>], "kind">;
12154
12165
  type ContentDocument = z.infer<typeof ContentDocumentSchema>;
12155
12166
  //#endregion
12156
- export { ContentHatchStyleSchema as $, ContentSheetRepeatRange as $t, ContentEmbeddedObjectKind as A, RunConstructExtent as An, ContentSheetCellComment as At, ContentFloatPosition as B, isContentConstructEnd as Bn, ContentSheetConditionalFormatValueSchema as Bt, ContentDocument as C, ContentVectorSchema as Cn, ContentRunSchema as Ct, ContentEmbeddedObject as D, IMAGE_FORMATS as Dn, ContentShapeSchema as Dt, ContentDrawPageSchema as E, FusedNode as En, ContentShape as Et, ContentFloatAlignSchema as F, clampHeadingLevel as Fn, ContentSheetConditionalFormat as Ft, ContentFormulaSchema as G, ContentSheetImage as Gt, ContentFont as H, isRunConstructExtent as Hn, ContentSheetDataValidationSchema as Ht, ContentFloatAxis as I, contentDocumentSharedFields as In, ContentSheetConditionalFormatSchema as It, ContentGradientStyle as J, ContentSheetPrintRangeSchema as Jt, ContentGradientFill as K, ContentSheetImageSchema as Kt, ContentFloatAxisSchema as L, findConstructMarkerImbalance as Ln, ContentSheetConditionalFormatStyle as Lt, ContentFillPattern as M, RunConstructFault as Mn, ContentSheetCellSchema as Mt, ContentFillPatternSchema as N, SheetRuleOperator as Nn, ContentSheetColumn as Nt, ContentEmbeddedObjectBlock as O, ImageFormat as On, ContentSheet as Ot, ContentFloatAlign as P, SheetRuleOperatorSchema as Pn, ContentSheetColumnSchema as Pt, ContentHatchStyle as Q, ContentSheetRangeSchema as Qt, ContentFloatOrigin as R, findRunConstructFault as Rn, ContentSheetConditionalFormatStyleSchema as Rt, ContentDefinedNameSchema as S, ContentVector as Sn, ContentRun as St, ContentDrawPage as T, DecimalStringSchema as Tn, ContentSectionSchema as Tt, ContentFontSchema as U, resolveCellFillColor as Un, ContentSheetDataValidationType as Ut, ContentFloatPositionSchema as V, isContentConstructStart as Vn, ContentSheetDataValidation as Vt, ContentFormula as W, unrecognizedFillKind as Wn, ContentSheetDataValidationTypeSchema as Wt, ContentHatchFill as X, ContentSheetPrintSettingsSchema as Xt, ContentGradientStyleSchema as Y, ContentSheetPrintSettings as Yt, ContentHatchFillSchema as Z, ContentSheetRange as Zt, ContentConstructEnd as _, ContentTableRow as _n, ContentParagraphSchema as _t, ContentBlock as a, ContentSlideSchema as an, ContentInterpretationSchema as at, ContentConstructStartSchema as b, ContentTranscript as bn, ContentPathSegment as bt, ContentBorderSchema as c, ContentStrokeDashSchema as cn, ContentOrigin as ct, ContentCellFill as d, ContentStrokeStyleSchema as dn, ContentPageBreakSchema as dt, ContentSheetRepeatRangeSchema as en, ContentImageBlock as et, ContentCellFillSchema as f, ContentSubpath as fn, ContentPageFurniture as ft, ContentCellValueSchema as g, ContentTableCellSchema as gn, ContentParagraphBordersSchema as gt, ContentCellValue as h, ContentTableCell as hn, ContentParagraphBorders as ht, ContentBitmapFillSchema as i, ContentSlide as in, ContentInterpretation as it, ContentEmbeddedObjectSchema as j, RunConstructExtentSchema as jn, ContentSheetCellCommentSchema as jt, ContentEmbeddedObjectBlockSchema as k, RUN_FONT_PROPERTY_SHAPE as kn, ContentSheetCell as kt, ContentCellBorders as l, ContentStrokeSchema as ln, ContentOriginSchema as lt, ContentCellPatternTypeSchema as m, ContentTable as mn, ContentParagraph as mt, ConstructMarkerImbalance as n, ContentSheetRowSchema as nn, ContentImageOriginal as nt, ContentBlockSchema as o, ContentStroke as on, ContentListMembership as ot, ContentCellPatternType as p, ContentSubpathSchema as pn, ContentPageFurnitureSchema as pt, ContentGradientFillSchema as q, ContentSheetPrintRange as qt, ContentBitmapFill as r, ContentSheetSchema as rn, ContentImageOriginalSchema as rt, ContentBorder as s, ContentStrokeDash as sn, ContentListMembershipSchema as st, CONTENT_ANNOTATION_FIELDS as t, ContentSheetRow as tn, ContentImageBlockSchema as tt, ContentCellBordersSchema as u, ContentStrokeStyle as un, ContentPageBreak as ut, ContentConstructEndSchema as v, ContentTableRowSchema as vn, ContentPathPoint as vt, ContentDocumentSchema as w, DecimalString as wn, ContentSection as wt, ContentDefinedName as x, ContentTranscriptSchema as xn, ContentPathSegmentSchema as xt, ContentConstructStart as y, ContentTableSchema as yn, ContentPathPointSchema as yt, ContentFloatOriginSchema as z, isContentBlock as zn, ContentSheetConditionalFormatValue as zt };
12167
+ export { ContentHatchStyleSchema as $, ContentSheetRepeatRange as $t, ContentEmbeddedObjectKind as A, ImageFormat as An, ContentSheetCellComment as At, ContentFloatPosition as B, findRunConstructFault as Bn, ContentSheetConditionalFormatValueSchema as Bt, ContentDocument as C, ContentTranscriptSchema as Cn, ContentRunSchema as Ct, ContentEmbeddedObject as D, DecimalStringSchema as Dn, ContentShapeSchema as Dt, ContentDrawPageSchema as E, DecimalString as En, ContentShape as Et, ContentFloatAlignSchema as F, SheetRuleOperator as Fn, ContentSheetConditionalFormat as Ft, ContentFormulaSchema as G, resolveCellFillColor as Gn, ContentSheetImage as Gt, ContentFont as H, isContentConstructEnd as Hn, ContentSheetDataValidationSchema as Ht, ContentFloatAxis as I, SheetRuleOperatorSchema as In, ContentSheetConditionalFormatSchema as It, ContentGradientStyle as J, ContentSheetPrintRangeSchema as Jt, ContentGradientFill as K, unrecognizedFillKind as Kn, ContentSheetImageSchema as Kt, ContentFloatAxisSchema as L, clampHeadingLevel as Ln, ContentSheetConditionalFormatStyle as Lt, ContentFillPattern as M, RunConstructExtent as Mn, ContentSheetCellSchema as Mt, ContentFillPatternSchema as N, RunConstructExtentSchema as Nn, ContentSheetColumn as Nt, ContentEmbeddedObjectBlock as O, FusedNode as On, ContentSheet as Ot, ContentFloatAlign as P, RunConstructFault as Pn, ContentSheetColumnSchema as Pt, ContentHatchStyle as Q, ContentSheetRangeSchema as Qt, ContentFloatOrigin as R, contentDocumentSharedFields as Rn, ContentSheetConditionalFormatStyleSchema as Rt, ContentDefinedNameSchema as S, ContentTranscript as Sn, ContentRun as St, ContentDrawPage as T, ContentVectorSchema as Tn, ContentSectionSchema as Tt, ContentFontSchema as U, isContentConstructStart as Un, ContentSheetDataValidationType as Ut, ContentFloatPositionSchema as V, isContentBlock as Vn, ContentSheetDataValidation as Vt, ContentFormula as W, isRunConstructExtent as Wn, ContentSheetDataValidationTypeSchema as Wt, ContentHatchFill as X, ContentSheetPrintSettingsSchema as Xt, ContentGradientStyleSchema as Y, ContentSheetPrintSettings as Yt, ContentHatchFillSchema as Z, ContentSheetRange as Zt, ContentConstructEnd as _, ContentTableColumn as _n, ContentParagraphSchema as _t, ContentBlock as a, ContentSlideSchema as an, ContentInterpretationSchema as at, ContentConstructStartSchema as b, ContentTableRowSchema as bn, ContentPathSegment as bt, ContentBorderSchema as c, ContentStrokeDashSchema as cn, ContentOrigin as ct, ContentCellFill as d, ContentStrokeStyleSchema as dn, ContentPageBreakSchema as dt, ContentSheetRepeatRangeSchema as en, ContentImageBlock as et, ContentCellFillSchema as f, ContentSubpath as fn, ContentPageFurniture as ft, ContentCellValueSchema as g, ContentTableCellSchema as gn, ContentParagraphBordersSchema as gt, ContentCellValue as h, ContentTableCell as hn, ContentParagraphBorders as ht, ContentBitmapFillSchema as i, ContentSlide as in, ContentInterpretation as it, ContentEmbeddedObjectSchema as j, RUN_FONT_PROPERTY_SHAPE as jn, ContentSheetCellCommentSchema as jt, ContentEmbeddedObjectBlockSchema as k, IMAGE_FORMATS as kn, ContentSheetCell as kt, ContentCellBorders as l, ContentStrokeSchema as ln, ContentOriginSchema as lt, ContentCellPatternTypeSchema as m, ContentTable as mn, ContentParagraph as mt, ConstructMarkerImbalance as n, ContentSheetRowSchema as nn, ContentImageOriginal as nt, ContentBlockSchema as o, ContentStroke as on, ContentListMembership as ot, ContentCellPatternType as p, ContentSubpathSchema as pn, ContentPageFurnitureSchema as pt, ContentGradientFillSchema as q, ContentSheetPrintRange as qt, ContentBitmapFill as r, ContentSheetSchema as rn, ContentImageOriginalSchema as rt, ContentBorder as s, ContentStrokeDash as sn, ContentListMembershipSchema as st, CONTENT_ANNOTATION_FIELDS as t, ContentSheetRow as tn, ContentImageBlockSchema as tt, ContentCellBordersSchema as u, ContentStrokeStyle as un, ContentPageBreak as ut, ContentConstructEndSchema as v, ContentTableColumnSchema as vn, ContentPathPoint as vt, ContentDocumentSchema as w, ContentVector as wn, ContentSection as wt, ContentDefinedName as x, ContentTableSchema as xn, ContentPathSegmentSchema as xt, ContentConstructStart as y, ContentTableRow as yn, ContentPathPointSchema as yt, ContentFloatOriginSchema as z, findConstructMarkerImbalance as zn, ContentSheetConditionalFormatValue as zt };
@@ -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
- columnWidthsPt: {
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
- "columnWidthsPt"
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
- columnWidthsPt: {
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
- "columnWidthsPt"
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.columnWidthsPt) && value.columnWidthsPt.every((w) => typeof w === "number");
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
- columnWidthsPt: zod.z.array(zod.z.number().nonnegative()),
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;
@@ -1,2 +1,2 @@
1
- import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, 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 ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, 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 RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, 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 ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-Db6wh_6v.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, 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 RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, 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 ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, 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 RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, 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 ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-Cc9oMKMd.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, 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.columnWidthsPt) && value.columnWidthsPt.every((w) => typeof w === "number");
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
- columnWidthsPt: z.array(z.number().nonnegative()),
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 };
@@ -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(listStack, headingScope(), block);
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(listStack, root, block);
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(listStack, scopeChildren, paragraph) {
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;
@@ -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-Db6wh_6v.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-D42YxKm6.cjs";
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;
@@ -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-Cc9oMKMd.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-D-1yiCmi.js";
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(listStack, headingScope(), block);
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(listStack, root, block);
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(listStack, scopeChildren, paragraph) {
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 };
@@ -1,4 +1,4 @@
1
- import { St as ContentRun, mt as ContentParagraph } from "./content-Db6wh_6v.cjs";
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<{
@@ -1,4 +1,4 @@
1
- import { St as ContentRun, mt as ContentParagraph } from "./content-Cc9oMKMd.js";
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<{
@@ -1,5 +1,5 @@
1
1
  import { l as PageSize } from "./geometry-CvcjSwnA.cjs";
2
- import { C as ContentDocument } from "./content-Db6wh_6v.cjs";
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;
@@ -1,5 +1,5 @@
1
1
  import { l as PageSize } from "./geometry-CvcjSwnA.js";
2
- import { C as ContentDocument } from "./content-Cc9oMKMd.js";
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;
@@ -1,4 +1,4 @@
1
- import { C as ContentDocument } from "./content-Db6wh_6v.cjs";
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
@@ -1,4 +1,4 @@
1
- import { C as ContentDocument } from "./content-Cc9oMKMd.js";
1
+ import { C as ContentDocument } from "./content-BMrK9SrW.js";
2
2
  import { DocumentTree } from "./package.js";
3
3
  //#region src/flatten.d.ts
4
4
  declare function flattenTree(pkg: DocumentTree): ContentDocument;