document-schema 7.6.1 → 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 (43) hide show
  1. package/dist/codec.d.cts +1 -1
  2. package/dist/codec.d.ts +1 -1
  3. package/dist/{content-CIIFuBbn.d.cts → content-BlTHCDvF.d.cts} +169 -23
  4. package/dist/{content-wL5-wetq.d.ts → content-BqSMRlSK.d.ts} +169 -23
  5. package/dist/content-json-schema-defs.cjs +32 -0
  6. package/dist/content-json-schema-defs.js +32 -0
  7. package/dist/content.cjs +37 -11
  8. package/dist/content.d.cts +2 -2
  9. package/dist/content.d.ts +2 -2
  10. package/dist/content.js +33 -12
  11. package/dist/decompose.d.cts +2 -2
  12. package/dist/decompose.d.ts +2 -2
  13. package/dist/definitions.cjs +1 -10
  14. package/dist/definitions.d.cts +1 -1
  15. package/dist/definitions.d.ts +1 -1
  16. package/dist/definitions.js +2 -11
  17. package/dist/factor-styles.cjs +1 -0
  18. package/dist/factor-styles.d.cts +1 -1
  19. package/dist/factor-styles.d.ts +1 -1
  20. package/dist/factor-styles.js +1 -0
  21. package/dist/flatten.cjs +1 -0
  22. package/dist/flatten.d.cts +1 -1
  23. package/dist/flatten.d.ts +1 -1
  24. package/dist/flatten.js +1 -0
  25. package/dist/index.cjs +5 -0
  26. package/dist/index.d.cts +3 -3
  27. package/dist/index.d.ts +3 -3
  28. package/dist/index.js +2 -2
  29. package/dist/{package-node-C9iYNIXi.d.cts → package-node-Btm9VsaX.d.cts} +40 -27
  30. package/dist/{package-node-C_rpWAh2.d.ts → package-node-DPm8hWYt.d.ts} +40 -27
  31. package/dist/package-node.d.cts +1 -1
  32. package/dist/package-node.d.ts +1 -1
  33. package/dist/package.cjs +1 -0
  34. package/dist/package.d.cts +6 -1
  35. package/dist/package.d.ts +6 -1
  36. package/dist/package.js +2 -1
  37. package/dist/schema-io.cjs +2 -2
  38. package/dist/schema-io.d.cts +1 -1
  39. package/dist/schema-io.d.ts +1 -1
  40. package/dist/schema-io.js +2 -2
  41. package/package.json +1 -1
  42. package/schemas/content-document.schema.json +171 -13
  43. package/schemas/document-tree.schema.json +87 -3
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { MathMlAttributeSchema, MathMlCdataSchema, MathMlCommentSchema, MathMlDe
9
9
  import { BoxSchema, LayoutFrameSchema, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN } from "./geometry.js";
10
10
  import { AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFontSchema, TextDirectionSchema } from "./style.js";
11
11
  import { LayoutMetadataSchema } from "./metadata.js";
12
- import { 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 } from "./content.js";
12
+ import { 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 } from "./content.js";
13
13
  import { DefinitionEntrySchema, DefinitionsTableSchema, StyleEntrySchema, StyleParagraphPropertiesSchema, StyleRunPropertiesSchema, StylesTableSchema, applyParagraphStyleProperties, applyRunStyleProperties, overlayStyleEntries, resolveStyleChain } from "./definitions.js";
14
14
  import { DrawPageDescriptorSchema, DrawPageGroupSchema, HeadingGroupSchema, HeadingParagraphSchema, ListGroupSchema, ListParagraphSchema, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, TreeBlockLeafSchema, TreeGroupSchema, TreeLeafSchema, TreeNodeSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode } from "./package-node.js";
15
15
  import { DocumentTreeSchema } from "./package.js";
@@ -21,4 +21,4 @@ import { assembleTree, factorStyles } from "./factor-styles.js";
21
21
  import "./font-port.js";
22
22
  import "./text-layout.js";
23
23
  import "./math-layout.js";
24
- export { AlignmentSchema, AnchorDescriptorSchema, AnchorTypeSchema, BORDER_WIDTH_PT, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, ColorSchema, ConstructDescriptorSchema, ConstructMarkerImbalanceError, ContentBitmapFillSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellFillSchema, ContentCellPatternTypeSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, 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, DEFAULT_LAYOUT_FONT, DecimalStringSchema, DefinitionEntrySchema, DefinitionsTableSchema, DimensionVectorSchema, DivisionDescriptorSchema, DivisionSourceSchema, DocumentPackageRenamedError, DocumentTreeSchema, DrawPageDescriptorSchema, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, EvaluationValueSchema, ExactRationalSchema, FieldDescriptorSchema, FormulaBindingsSchema, HeadingGroupSchema, HeadingParagraphSchema, IntervalSchema, LayoutFontSchema, LayoutFrameSchema, LayoutMetadataSchema, LayoutSchemaDemotedError, LinkDescriptorSchema, LinkTargetSchema, ListGroupSchema, ListParagraphSchema, MAX_SAFE_INTEGER, MarginsSchema, MathAppSchema, MathExpressionSchema, MathMatrixSchema, MathMlAttributeSchema, MathMlCdataSchema, MathMlCommentSchema, MathMlDeclarationSchema, MathMlElementSchema, MathMlNodeSchema, MathMlPiSchema, MathMlTextSchema, MathNormalisationContextSchema, MathNumSchema, MathPresentationSchema, MathProdSchema, MathProvenanceSchema, MathQtySchema, MathSumSchema, MathSymSchema, MathSymbolEntrySchema, MathUncertaintySchema, MathUnitSchema, MathUnparsedSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, ProvenanceChangeSchema, ProvenanceDescriptorSchema, QuantitySchema, RunConstructExtentSchema, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SheetRuleOperatorSchema, SlideDescriptorSchema, SlideGroupSchema, SourceFormatSchema, SourceResidueSchema, StyleEntrySchema, StyleParagraphPropertiesSchema, StyleRunPropertiesSchema, StylesTableSchema, SymbolTableSchema, TextDirectionSchema, TreeBlockLeafSchema, TreeGroupSchema, TreeLeafSchema, TreeNodeSchema, UnrecognizedDocumentSchemaError, applyParagraphStyleProperties, applyRunStyleProperties, assembleTree, borderWeightForWidthPt, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, dashedBorderWeightForWidthPt, decompose, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, factorStyles, findConstructMarkerImbalance, findRunConstructFault, flattenTree, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isRunConstructExtent, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode, overlayStyleEntries, parseCellReference, parseRangeReference, rangeReference, resolveCellFillColor, resolveStyleChain, rgbHexToColor, schemaUriFor, unrecognizedFillKind };
24
+ export { AlignmentSchema, AnchorDescriptorSchema, AnchorTypeSchema, BORDER_WIDTH_PT, BoxSchema, COLOR_BLACK, CONTENT_DEFS, CONTENT_DOCUMENT_URI, ColorSchema, ConstructDescriptorSchema, ConstructMarkerImbalanceError, ContentBitmapFillSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellFillSchema, ContentCellPatternTypeSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentControlDescriptorSchema, ContentControlLockSchema, ContentControlTypeSchema, 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, DEFAULT_LAYOUT_FONT, DecimalStringSchema, DefinitionEntrySchema, DefinitionsTableSchema, DimensionVectorSchema, DivisionDescriptorSchema, DivisionSourceSchema, DocumentPackageRenamedError, DocumentTreeSchema, DrawPageDescriptorSchema, DrawPageGroupSchema, EMBEDDED_OBJECT_KINDS, EvaluationValueSchema, ExactRationalSchema, FieldDescriptorSchema, FormulaBindingsSchema, HeadingGroupSchema, HeadingParagraphSchema, IMAGE_FORMATS, IntervalSchema, LayoutFontSchema, LayoutFrameSchema, LayoutMetadataSchema, LayoutSchemaDemotedError, LinkDescriptorSchema, LinkTargetSchema, ListGroupSchema, ListParagraphSchema, MAX_SAFE_INTEGER, MarginsSchema, MathAppSchema, MathExpressionSchema, MathMatrixSchema, MathMlAttributeSchema, MathMlCdataSchema, MathMlCommentSchema, MathMlDeclarationSchema, MathMlElementSchema, MathMlNodeSchema, MathMlPiSchema, MathMlTextSchema, MathNormalisationContextSchema, MathNumSchema, MathPresentationSchema, MathProdSchema, MathProvenanceSchema, MathQtySchema, MathSumSchema, MathSymSchema, MathSymbolEntrySchema, MathUncertaintySchema, MathUnitSchema, MathUnparsedSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSizeSchema, ProvenanceChangeSchema, ProvenanceDescriptorSchema, QuantitySchema, RUN_FONT_PROPERTY_SHAPE, RunConstructExtentSchema, SCHEMA_FILE_NAMES, SI_BASE_DIMENSIONS, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SchemaVersionMismatchError, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SheetRuleOperatorSchema, SlideDescriptorSchema, SlideGroupSchema, SourceFormatSchema, SourceResidueSchema, StyleEntrySchema, StyleParagraphPropertiesSchema, StyleRunPropertiesSchema, StylesTableSchema, SymbolTableSchema, TextDirectionSchema, TreeBlockLeafSchema, TreeGroupSchema, TreeLeafSchema, TreeNodeSchema, UnrecognizedDocumentSchemaError, applyParagraphStyleProperties, applyRunStyleProperties, assembleTree, borderWeightForWidthPt, cellReference, clampHeadingLevel, colorToRgbHex, columnIndexToLetters, columnLettersToIndex, contentDocumentSharedFields, contentDocumentWithSchema, dashedBorderWeightForWidthPt, decompose, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, factorStyles, findConstructMarkerImbalance, findRunConstructFault, flattenTree, isContentBlock, isContentConstructEnd, isContentConstructStart, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isMathExpression, isMathMlNode, isRunConstructExtent, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode, overlayStyleEntries, parseCellReference, parseRangeReference, rangeReference, resolveCellFillColor, resolveStyleChain, rgbHexToColor, schemaUriFor, unrecognizedFillKind };
@@ -1,4 +1,4 @@
1
- import { Pt as ContentSheetImage, g as ContentConstructEnd, i as ContentBlock, ln as ContentVector, v as ContentConstructStart, w as ContentEmbeddedObject, z as ContentFormula } from "./content-CIIFuBbn.cjs";
1
+ import { Bt as ContentSheetImage, E as ContentEmbeddedObject, U as ContentFormula, g as ContentConstructEnd, hn as ContentVector, i as ContentBlock, v as ContentConstructStart } from "./content-BlTHCDvF.cjs";
2
2
  import { a as ConstructDescriptor } from "./construct-C9cYkjnd.cjs";
3
3
  import { z } from "zod";
4
4
  //#region src/package-node.d.ts
@@ -184,8 +184,7 @@ declare const SheetDescriptorSchema: z.ZodObject<{
184
184
  formula: z.ZodOptional<z.ZodString>;
185
185
  displayText: z.ZodString;
186
186
  numberFormatCode: z.ZodOptional<z.ZodString>;
187
- runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
188
- text: z.ZodString;
187
+ font: z.ZodOptional<z.ZodObject<{
189
188
  bold: z.ZodOptional<z.ZodBoolean>;
190
189
  italic: z.ZodOptional<z.ZodBoolean>;
191
190
  underline: z.ZodOptional<z.ZodBoolean>;
@@ -197,6 +196,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
197
196
  g: z.ZodNumber;
198
197
  b: z.ZodNumber;
199
198
  }, z.core.$strip>>;
199
+ }, z.core.$strip>>;
200
+ runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
200
201
  hyperlink: z.ZodOptional<z.ZodString>;
201
202
  verticalAlign: z.ZodOptional<z.ZodEnum<{
202
203
  superscript: "superscript";
@@ -234,6 +235,18 @@ declare const SheetDescriptorSchema: z.ZodObject<{
234
235
  widthPt: z.ZodNumber;
235
236
  heightPt: z.ZodNumber;
236
237
  }, z.core.$strip>>>;
238
+ bold: z.ZodOptional<z.ZodBoolean>;
239
+ italic: z.ZodOptional<z.ZodBoolean>;
240
+ underline: z.ZodOptional<z.ZodBoolean>;
241
+ strike: z.ZodOptional<z.ZodBoolean>;
242
+ fontFamily: z.ZodOptional<z.ZodString>;
243
+ sizePt: z.ZodOptional<z.ZodNumber>;
244
+ color: z.ZodOptional<z.ZodObject<{
245
+ r: z.ZodNumber;
246
+ g: z.ZodNumber;
247
+ b: z.ZodNumber;
248
+ }, z.core.$strip>>;
249
+ text: z.ZodString;
237
250
  }, z.core.$strip>>>;
238
251
  colSpan: z.ZodOptional<z.ZodNumber>;
239
252
  rowSpan: z.ZodOptional<z.ZodNumber>;
@@ -1166,18 +1179,6 @@ type ShapeDescriptor = z.infer<typeof ShapeDescriptorSchema>;
1166
1179
  declare const HeadingParagraphSchema: z.ZodObject<{
1167
1180
  kind: z.ZodLiteral<"paragraph">;
1168
1181
  runs: z.ZodArray<z.ZodObject<{
1169
- text: z.ZodString;
1170
- bold: z.ZodOptional<z.ZodBoolean>;
1171
- italic: z.ZodOptional<z.ZodBoolean>;
1172
- underline: z.ZodOptional<z.ZodBoolean>;
1173
- strike: z.ZodOptional<z.ZodBoolean>;
1174
- fontFamily: z.ZodOptional<z.ZodString>;
1175
- sizePt: z.ZodOptional<z.ZodNumber>;
1176
- color: z.ZodOptional<z.ZodObject<{
1177
- r: z.ZodNumber;
1178
- g: z.ZodNumber;
1179
- b: z.ZodNumber;
1180
- }, z.core.$strip>>;
1181
1182
  hyperlink: z.ZodOptional<z.ZodString>;
1182
1183
  verticalAlign: z.ZodOptional<z.ZodEnum<{
1183
1184
  superscript: "superscript";
@@ -1215,6 +1216,18 @@ declare const HeadingParagraphSchema: z.ZodObject<{
1215
1216
  widthPt: z.ZodNumber;
1216
1217
  heightPt: z.ZodNumber;
1217
1218
  }, z.core.$strip>>>;
1219
+ bold: z.ZodOptional<z.ZodBoolean>;
1220
+ italic: z.ZodOptional<z.ZodBoolean>;
1221
+ underline: z.ZodOptional<z.ZodBoolean>;
1222
+ strike: z.ZodOptional<z.ZodBoolean>;
1223
+ fontFamily: z.ZodOptional<z.ZodString>;
1224
+ sizePt: z.ZodOptional<z.ZodNumber>;
1225
+ color: z.ZodOptional<z.ZodObject<{
1226
+ r: z.ZodNumber;
1227
+ g: z.ZodNumber;
1228
+ b: z.ZodNumber;
1229
+ }, z.core.$strip>>;
1230
+ text: z.ZodString;
1218
1231
  }, z.core.$strip>>;
1219
1232
  constructs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1220
1233
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1537,18 +1550,6 @@ type HeadingParagraph = z.infer<typeof HeadingParagraphSchema>;
1537
1550
  declare const ListParagraphSchema: z.ZodObject<{
1538
1551
  kind: z.ZodLiteral<"paragraph">;
1539
1552
  runs: z.ZodArray<z.ZodObject<{
1540
- text: z.ZodString;
1541
- bold: z.ZodOptional<z.ZodBoolean>;
1542
- italic: z.ZodOptional<z.ZodBoolean>;
1543
- underline: z.ZodOptional<z.ZodBoolean>;
1544
- strike: z.ZodOptional<z.ZodBoolean>;
1545
- fontFamily: z.ZodOptional<z.ZodString>;
1546
- sizePt: z.ZodOptional<z.ZodNumber>;
1547
- color: z.ZodOptional<z.ZodObject<{
1548
- r: z.ZodNumber;
1549
- g: z.ZodNumber;
1550
- b: z.ZodNumber;
1551
- }, z.core.$strip>>;
1552
1553
  hyperlink: z.ZodOptional<z.ZodString>;
1553
1554
  verticalAlign: z.ZodOptional<z.ZodEnum<{
1554
1555
  superscript: "superscript";
@@ -1586,6 +1587,18 @@ declare const ListParagraphSchema: z.ZodObject<{
1586
1587
  widthPt: z.ZodNumber;
1587
1588
  heightPt: z.ZodNumber;
1588
1589
  }, z.core.$strip>>>;
1590
+ bold: z.ZodOptional<z.ZodBoolean>;
1591
+ italic: z.ZodOptional<z.ZodBoolean>;
1592
+ underline: z.ZodOptional<z.ZodBoolean>;
1593
+ strike: z.ZodOptional<z.ZodBoolean>;
1594
+ fontFamily: z.ZodOptional<z.ZodString>;
1595
+ sizePt: z.ZodOptional<z.ZodNumber>;
1596
+ color: z.ZodOptional<z.ZodObject<{
1597
+ r: z.ZodNumber;
1598
+ g: z.ZodNumber;
1599
+ b: z.ZodNumber;
1600
+ }, z.core.$strip>>;
1601
+ text: z.ZodString;
1589
1602
  }, z.core.$strip>>;
1590
1603
  constructs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1591
1604
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { Pt as ContentSheetImage, g as ContentConstructEnd, i as ContentBlock, ln as ContentVector, v as ContentConstructStart, w as ContentEmbeddedObject, z as ContentFormula } from "./content-wL5-wetq.js";
1
+ import { Bt as ContentSheetImage, E as ContentEmbeddedObject, U as ContentFormula, g as ContentConstructEnd, hn as ContentVector, i as ContentBlock, v as ContentConstructStart } from "./content-BqSMRlSK.js";
2
2
  import { a as ConstructDescriptor } from "./construct-C9cYkjnd.js";
3
3
  import { z } from "zod";
4
4
  //#region src/package-node.d.ts
@@ -184,8 +184,7 @@ declare const SheetDescriptorSchema: z.ZodObject<{
184
184
  formula: z.ZodOptional<z.ZodString>;
185
185
  displayText: z.ZodString;
186
186
  numberFormatCode: z.ZodOptional<z.ZodString>;
187
- runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
188
- text: z.ZodString;
187
+ font: z.ZodOptional<z.ZodObject<{
189
188
  bold: z.ZodOptional<z.ZodBoolean>;
190
189
  italic: z.ZodOptional<z.ZodBoolean>;
191
190
  underline: z.ZodOptional<z.ZodBoolean>;
@@ -197,6 +196,8 @@ declare const SheetDescriptorSchema: z.ZodObject<{
197
196
  g: z.ZodNumber;
198
197
  b: z.ZodNumber;
199
198
  }, z.core.$strip>>;
199
+ }, z.core.$strip>>;
200
+ runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
200
201
  hyperlink: z.ZodOptional<z.ZodString>;
201
202
  verticalAlign: z.ZodOptional<z.ZodEnum<{
202
203
  superscript: "superscript";
@@ -234,6 +235,18 @@ declare const SheetDescriptorSchema: z.ZodObject<{
234
235
  widthPt: z.ZodNumber;
235
236
  heightPt: z.ZodNumber;
236
237
  }, z.core.$strip>>>;
238
+ bold: z.ZodOptional<z.ZodBoolean>;
239
+ italic: z.ZodOptional<z.ZodBoolean>;
240
+ underline: z.ZodOptional<z.ZodBoolean>;
241
+ strike: z.ZodOptional<z.ZodBoolean>;
242
+ fontFamily: z.ZodOptional<z.ZodString>;
243
+ sizePt: z.ZodOptional<z.ZodNumber>;
244
+ color: z.ZodOptional<z.ZodObject<{
245
+ r: z.ZodNumber;
246
+ g: z.ZodNumber;
247
+ b: z.ZodNumber;
248
+ }, z.core.$strip>>;
249
+ text: z.ZodString;
237
250
  }, z.core.$strip>>>;
238
251
  colSpan: z.ZodOptional<z.ZodNumber>;
239
252
  rowSpan: z.ZodOptional<z.ZodNumber>;
@@ -1166,18 +1179,6 @@ type ShapeDescriptor = z.infer<typeof ShapeDescriptorSchema>;
1166
1179
  declare const HeadingParagraphSchema: z.ZodObject<{
1167
1180
  kind: z.ZodLiteral<"paragraph">;
1168
1181
  runs: z.ZodArray<z.ZodObject<{
1169
- text: z.ZodString;
1170
- bold: z.ZodOptional<z.ZodBoolean>;
1171
- italic: z.ZodOptional<z.ZodBoolean>;
1172
- underline: z.ZodOptional<z.ZodBoolean>;
1173
- strike: z.ZodOptional<z.ZodBoolean>;
1174
- fontFamily: z.ZodOptional<z.ZodString>;
1175
- sizePt: z.ZodOptional<z.ZodNumber>;
1176
- color: z.ZodOptional<z.ZodObject<{
1177
- r: z.ZodNumber;
1178
- g: z.ZodNumber;
1179
- b: z.ZodNumber;
1180
- }, z.core.$strip>>;
1181
1182
  hyperlink: z.ZodOptional<z.ZodString>;
1182
1183
  verticalAlign: z.ZodOptional<z.ZodEnum<{
1183
1184
  superscript: "superscript";
@@ -1215,6 +1216,18 @@ declare const HeadingParagraphSchema: z.ZodObject<{
1215
1216
  widthPt: z.ZodNumber;
1216
1217
  heightPt: z.ZodNumber;
1217
1218
  }, z.core.$strip>>>;
1219
+ bold: z.ZodOptional<z.ZodBoolean>;
1220
+ italic: z.ZodOptional<z.ZodBoolean>;
1221
+ underline: z.ZodOptional<z.ZodBoolean>;
1222
+ strike: z.ZodOptional<z.ZodBoolean>;
1223
+ fontFamily: z.ZodOptional<z.ZodString>;
1224
+ sizePt: z.ZodOptional<z.ZodNumber>;
1225
+ color: z.ZodOptional<z.ZodObject<{
1226
+ r: z.ZodNumber;
1227
+ g: z.ZodNumber;
1228
+ b: z.ZodNumber;
1229
+ }, z.core.$strip>>;
1230
+ text: z.ZodString;
1218
1231
  }, z.core.$strip>>;
1219
1232
  constructs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1220
1233
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1537,18 +1550,6 @@ type HeadingParagraph = z.infer<typeof HeadingParagraphSchema>;
1537
1550
  declare const ListParagraphSchema: z.ZodObject<{
1538
1551
  kind: z.ZodLiteral<"paragraph">;
1539
1552
  runs: z.ZodArray<z.ZodObject<{
1540
- text: z.ZodString;
1541
- bold: z.ZodOptional<z.ZodBoolean>;
1542
- italic: z.ZodOptional<z.ZodBoolean>;
1543
- underline: z.ZodOptional<z.ZodBoolean>;
1544
- strike: z.ZodOptional<z.ZodBoolean>;
1545
- fontFamily: z.ZodOptional<z.ZodString>;
1546
- sizePt: z.ZodOptional<z.ZodNumber>;
1547
- color: z.ZodOptional<z.ZodObject<{
1548
- r: z.ZodNumber;
1549
- g: z.ZodNumber;
1550
- b: z.ZodNumber;
1551
- }, z.core.$strip>>;
1552
1553
  hyperlink: z.ZodOptional<z.ZodString>;
1553
1554
  verticalAlign: z.ZodOptional<z.ZodEnum<{
1554
1555
  superscript: "superscript";
@@ -1586,6 +1587,18 @@ declare const ListParagraphSchema: z.ZodObject<{
1586
1587
  widthPt: z.ZodNumber;
1587
1588
  heightPt: z.ZodNumber;
1588
1589
  }, z.core.$strip>>>;
1590
+ bold: z.ZodOptional<z.ZodBoolean>;
1591
+ italic: z.ZodOptional<z.ZodBoolean>;
1592
+ underline: z.ZodOptional<z.ZodBoolean>;
1593
+ strike: z.ZodOptional<z.ZodBoolean>;
1594
+ fontFamily: z.ZodOptional<z.ZodString>;
1595
+ sizePt: z.ZodOptional<z.ZodNumber>;
1596
+ color: z.ZodOptional<z.ZodObject<{
1597
+ r: z.ZodNumber;
1598
+ g: z.ZodNumber;
1599
+ b: z.ZodNumber;
1600
+ }, z.core.$strip>>;
1601
+ text: z.ZodString;
1589
1602
  }, z.core.$strip>>;
1590
1603
  constructs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1591
1604
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1,2 +1,2 @@
1
- import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-C9iYNIXi.cjs";
1
+ import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-Btm9VsaX.cjs";
2
2
  export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, TreeBlockLeaf, TreeBlockLeafSchema, TreeGroup, TreeGroupSchema, TreeLeaf, TreeLeafSchema, TreeNode, TreeNodeSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode };
@@ -1,2 +1,2 @@
1
- import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-C_rpWAh2.js";
1
+ import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-DPm8hWYt.js";
2
2
  export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, TreeBlockLeaf, TreeBlockLeafSchema, TreeGroup, TreeGroupSchema, TreeLeaf, TreeLeafSchema, TreeNode, TreeNodeSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode };
package/dist/package.cjs CHANGED
@@ -32,6 +32,7 @@ const DocumentTreeSchema = zod.z.discriminatedUnion("kind", [
32
32
  zod.z.object({
33
33
  kind: zod.z.literal("spreadsheet"),
34
34
  ...packageEnvelopeFields,
35
+ names: zod.z.array(require_content.ContentDefinedNameSchema).optional(),
35
36
  children: zod.z.array(require_package_node.SheetGroupSchema)
36
37
  }),
37
38
  zod.z.object({
@@ -1,6 +1,6 @@
1
1
  import { d as MathMlNode } from "./mathml-Czqc1mdZ.cjs";
2
2
  import { p as MathExpression } from "./math-BScHxedi.cjs";
3
- import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-C9iYNIXi.cjs";
3
+ import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-Btm9VsaX.cjs";
4
4
  import { z } from "zod";
5
5
  //#region src/package.d.ts
6
6
  declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -302,6 +302,11 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
302
302
  }, z.core.$strip>;
303
303
  kind: z.ZodLiteral<"presentation">;
304
304
  }, z.core.$strip>, z.ZodObject<{
305
+ names: z.ZodOptional<z.ZodArray<z.ZodObject<{
306
+ name: z.ZodString;
307
+ refersTo: z.ZodString;
308
+ scopeSheetIndex: z.ZodOptional<z.ZodNumber>;
309
+ }, z.core.$strip>>>;
305
310
  children: z.ZodArray<z.ZodCustom<SheetGroupNode, SheetGroupNode>>;
306
311
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
307
312
  widthPt: z.ZodNumber;
package/dist/package.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { d as MathMlNode } from "./mathml-Czqc1mdZ.js";
2
2
  import { p as MathExpression } from "./math-BScHxedi.js";
3
- import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-C_rpWAh2.js";
3
+ import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-DPm8hWYt.js";
4
4
  import { z } from "zod";
5
5
  //#region src/package.d.ts
6
6
  declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -302,6 +302,11 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
302
302
  }, z.core.$strip>;
303
303
  kind: z.ZodLiteral<"presentation">;
304
304
  }, z.core.$strip>, z.ZodObject<{
305
+ names: z.ZodOptional<z.ZodArray<z.ZodObject<{
306
+ name: z.ZodString;
307
+ refersTo: z.ZodString;
308
+ scopeSheetIndex: z.ZodOptional<z.ZodNumber>;
309
+ }, z.core.$strip>>>;
305
310
  children: z.ZodArray<z.ZodCustom<SheetGroupNode, SheetGroupNode>>;
306
311
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
307
312
  widthPt: z.ZodNumber;
package/dist/package.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { SourceResidueSchema } from "./source.js";
2
2
  import { PageSizeSchema } from "./geometry.js";
3
3
  import { LayoutMetadataSchema } from "./metadata.js";
4
- import { ContentFormulaSchema, contentDocumentSharedFields } from "./content.js";
4
+ import { ContentDefinedNameSchema, ContentFormulaSchema, contentDocumentSharedFields } from "./content.js";
5
5
  import { DefinitionsTableSchema, StylesTableSchema } from "./definitions.js";
6
6
  import { DrawPageGroupSchema, SectionGroupSchema, SheetGroupSchema, SlideGroupSchema } from "./package-node.js";
7
7
  import { z } from "zod";
@@ -31,6 +31,7 @@ const DocumentTreeSchema = z.discriminatedUnion("kind", [
31
31
  z.object({
32
32
  kind: z.literal("spreadsheet"),
33
33
  ...packageEnvelopeFields,
34
+ names: z.array(ContentDefinedNameSchema).optional(),
34
35
  children: z.array(SheetGroupSchema)
35
36
  }),
36
37
  z.object({
@@ -7,7 +7,7 @@ const SCHEMA_FILE_NAMES = {
7
7
  ContentDocument: "content-document.schema.json"
8
8
  };
9
9
  function schemaUriFor(kind) {
10
- return `https://cdn.jsdelivr.net/npm/document-schema.js@7.6.1/schemas/${SCHEMA_FILE_NAMES[kind]}`;
10
+ return `https://cdn.jsdelivr.net/npm/document-schema.js@7.7.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
11
11
  }
12
12
  const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-tree|document-package|content-document|layout-document)\.schema\.json$/;
13
13
  function parseSchemaUri(uri) {
@@ -102,7 +102,7 @@ function documentFromJson(value) {
102
102
  if (parts.stem === "document-package") throw new DocumentPackageRenamedError(value.$schema);
103
103
  const kind = kindForFileStem(parts.stem);
104
104
  if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
105
- if (majorVersionOf(parts.version) !== majorVersionOf("7.6.1")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.6.1");
105
+ if (majorVersionOf(parts.version) !== majorVersionOf("7.7.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.7.0");
106
106
  switch (kind) {
107
107
  case "DocumentTree": return {
108
108
  kind,
@@ -1,4 +1,4 @@
1
- import { b as ContentDocument } from "./content-CIIFuBbn.cjs";
1
+ import { S as ContentDocument } from "./content-BlTHCDvF.cjs";
2
2
  import { DocumentTree } from "./package.cjs";
3
3
  //#region src/schema-io.d.ts
4
4
  type DocumentSchemaKind = "DocumentTree" | "ContentDocument";
@@ -1,4 +1,4 @@
1
- import { b as ContentDocument } from "./content-wL5-wetq.js";
1
+ import { S as ContentDocument } from "./content-BqSMRlSK.js";
2
2
  import { DocumentTree } from "./package.js";
3
3
  //#region src/schema-io.d.ts
4
4
  type DocumentSchemaKind = "DocumentTree" | "ContentDocument";
package/dist/schema-io.js CHANGED
@@ -6,7 +6,7 @@ const SCHEMA_FILE_NAMES = {
6
6
  ContentDocument: "content-document.schema.json"
7
7
  };
8
8
  function schemaUriFor(kind) {
9
- return `https://cdn.jsdelivr.net/npm/document-schema.js@7.6.1/schemas/${SCHEMA_FILE_NAMES[kind]}`;
9
+ return `https://cdn.jsdelivr.net/npm/document-schema.js@7.7.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
10
10
  }
11
11
  const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-tree|document-package|content-document|layout-document)\.schema\.json$/;
12
12
  function parseSchemaUri(uri) {
@@ -101,7 +101,7 @@ function documentFromJson(value) {
101
101
  if (parts.stem === "document-package") throw new DocumentPackageRenamedError(value.$schema);
102
102
  const kind = kindForFileStem(parts.stem);
103
103
  if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
104
- if (majorVersionOf(parts.version) !== majorVersionOf("7.6.1")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.6.1");
104
+ if (majorVersionOf(parts.version) !== majorVersionOf("7.7.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.7.0");
105
105
  switch (kind) {
106
106
  case "DocumentTree": return {
107
107
  kind,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-schema",
3
- "version": "7.6.1",
3
+ "version": "7.7.0",
4
4
  "description": "The canonical, format-agnostic content and document-tree schemas shared by ooxml.js, odf.js, documents.js, pdf-codec, and markdown-codec, plus the structural transform between them -- no format-specific or I/O behaviour.",
5
5
  "type": "module",
6
6
  "repository": {