document-content-model 7.15.2 → 7.16.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 (117) hide show
  1. package/dist/bijection-constructs-3By08A5K.cjs +14695 -0
  2. package/dist/bijection-constructs-DlP29TpB.js +14624 -0
  3. package/dist/bijection-constructs.cjs +4 -0
  4. package/dist/bijection-constructs.d.cts +6 -0
  5. package/dist/bijection-constructs.d.ts +6 -0
  6. package/dist/bijection-constructs.js +2 -0
  7. package/dist/bijection-corpus.cjs +12 -0
  8. package/dist/bijection-corpus.d.cts +46 -0
  9. package/dist/bijection-corpus.d.ts +46 -0
  10. package/dist/bijection-corpus.js +2 -0
  11. package/dist/codec.d.cts +3 -3
  12. package/dist/codec.d.ts +3 -3
  13. package/dist/{construct-GVdTKrE7.d.cts → construct-C4XiF8OW.d.cts} +3 -3
  14. package/dist/{construct-GVdTKrE7.d.ts → construct-C4XiF8OW.d.ts} +3 -3
  15. package/dist/construct.d.cts +1 -1
  16. package/dist/construct.d.ts +1 -1
  17. package/dist/{content-CYB2gqF8.d.ts → content-CBE4kBMo.d.ts} +7924 -6158
  18. package/dist/{content-CG0dBdiE.d.cts → content-DKx5QaRd.d.cts} +7924 -6158
  19. package/dist/content-drawing-Dlo8cXJj.d.cts +1606 -0
  20. package/dist/content-drawing-DuvQQwuc.d.ts +1606 -0
  21. package/dist/content-drawing.cjs +186 -0
  22. package/dist/content-drawing.d.cts +2 -0
  23. package/dist/content-drawing.d.ts +2 -0
  24. package/dist/content-drawing.js +171 -0
  25. package/dist/content-json-schema-defs.cjs +29 -3035
  26. package/dist/content-json-schema-defs.d.cts +2 -6
  27. package/dist/content-json-schema-defs.d.ts +2 -6
  28. package/dist/content-json-schema-defs.js +30 -3033
  29. package/dist/content-sheet.cjs +408 -0
  30. package/dist/content-sheet.d.cts +2 -0
  31. package/dist/content-sheet.d.ts +2 -0
  32. package/dist/content-sheet.js +385 -0
  33. package/dist/content-vocabulary.cjs +190 -0
  34. package/dist/content-vocabulary.d.cts +2 -0
  35. package/dist/content-vocabulary.d.ts +2 -0
  36. package/dist/content-vocabulary.js +168 -0
  37. package/dist/content.cjs +29 -777
  38. package/dist/content.d.cts +2 -2
  39. package/dist/content.d.ts +2 -2
  40. package/dist/content.js +10 -701
  41. package/dist/decompose.cjs +5 -0
  42. package/dist/decompose.d.cts +5 -3
  43. package/dist/decompose.d.ts +5 -3
  44. package/dist/decompose.js +5 -1
  45. package/dist/definitions.cjs +2 -1
  46. package/dist/definitions.d.cts +4 -4
  47. package/dist/definitions.d.ts +4 -4
  48. package/dist/definitions.js +2 -1
  49. package/dist/factor-styles.cjs +2 -0
  50. package/dist/factor-styles.d.cts +1 -1
  51. package/dist/factor-styles.d.ts +1 -1
  52. package/dist/factor-styles.js +4 -2
  53. package/dist/flatten.cjs +5 -0
  54. package/dist/flatten.d.cts +3 -2
  55. package/dist/flatten.d.ts +3 -2
  56. package/dist/flatten.js +5 -1
  57. package/dist/index.cjs +71 -67
  58. package/dist/index.d.cts +12 -10
  59. package/dist/index.d.ts +12 -10
  60. package/dist/index.js +12 -12
  61. package/dist/json-schema-defs-blocks.cjs +1036 -0
  62. package/dist/json-schema-defs-blocks.d.cts +5 -0
  63. package/dist/json-schema-defs-blocks.d.ts +5 -0
  64. package/dist/json-schema-defs-blocks.js +1035 -0
  65. package/dist/json-schema-defs-math.cjs +291 -0
  66. package/dist/json-schema-defs-math.d.cts +5 -0
  67. package/dist/json-schema-defs-math.d.ts +5 -0
  68. package/dist/json-schema-defs-math.js +290 -0
  69. package/dist/json-schema-defs-shared.cjs +42 -0
  70. package/dist/json-schema-defs-shared.d.cts +9 -0
  71. package/dist/json-schema-defs-shared.d.ts +9 -0
  72. package/dist/json-schema-defs-shared.js +38 -0
  73. package/dist/json-schema-defs-sheet.cjs +944 -0
  74. package/dist/json-schema-defs-sheet.d.cts +5 -0
  75. package/dist/json-schema-defs-sheet.d.ts +5 -0
  76. package/dist/json-schema-defs-sheet.js +943 -0
  77. package/dist/json-schema-defs-tree.cjs +237 -0
  78. package/dist/json-schema-defs-tree.d.cts +5 -0
  79. package/dist/json-schema-defs-tree.d.ts +5 -0
  80. package/dist/json-schema-defs-tree.js +237 -0
  81. package/dist/json-schema-defs-vector.cjs +513 -0
  82. package/dist/json-schema-defs-vector.d.cts +5 -0
  83. package/dist/json-schema-defs-vector.d.ts +5 -0
  84. package/dist/json-schema-defs-vector.js +512 -0
  85. package/dist/magic-string.es-CB2hOw9v.js +1012 -0
  86. package/dist/magic-string.es-MEBc20Ce.cjs +1012 -0
  87. package/dist/math-layout.d.cts +2 -2
  88. package/dist/math-layout.d.ts +2 -2
  89. package/dist/math.cjs +7 -5
  90. package/dist/math.js +7 -5
  91. package/dist/mathml.cjs +3 -1
  92. package/dist/mathml.js +3 -1
  93. package/dist/{package-node-B8eeIyze.d.cts → package-node-BYL2owXg.d.cts} +40 -39
  94. package/dist/{package-node-BOvXA2-v.d.ts → package-node-vI3Q0nFf.d.ts} +40 -39
  95. package/dist/package-node.cjs +12 -9
  96. package/dist/package-node.d.cts +1 -1
  97. package/dist/package-node.d.ts +1 -1
  98. package/dist/package-node.js +4 -1
  99. package/dist/package.d.cts +6 -6
  100. package/dist/package.d.ts +6 -6
  101. package/dist/schema-io.cjs +7 -2
  102. package/dist/schema-io.d.cts +3 -2
  103. package/dist/schema-io.d.ts +3 -2
  104. package/dist/schema-io.js +7 -3
  105. package/dist/{style-BGMcYrD2.d.cts → style-D06NwxAJ.d.cts} +1 -1
  106. package/dist/{style-BGMcYrD2.d.ts → style-D06NwxAJ.d.ts} +1 -1
  107. package/dist/style.d.cts +1 -1
  108. package/dist/style.d.ts +1 -1
  109. package/dist/table-grid.cjs +5 -0
  110. package/dist/table-grid.d.cts +4 -3
  111. package/dist/table-grid.d.ts +4 -3
  112. package/dist/table-grid.js +5 -1
  113. package/dist/text-layout.d.cts +7 -7
  114. package/dist/text-layout.d.ts +7 -7
  115. package/package.json +1 -1
  116. package/schemas/content-document.schema.json +16 -16
  117. package/schemas/document-tree.schema.json +3 -3
package/dist/content.cjs CHANGED
@@ -1,64 +1,16 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_color = require("./color.cjs");
3
2
  const require_source = require("./source.cjs");
4
3
  const require_construct = require("./construct.cjs");
4
+ const require_geometry = require("./geometry.cjs");
5
5
  const require_math = require("./math.cjs");
6
6
  const require_mathml = require("./mathml.cjs");
7
- const require_geometry = require("./geometry.cjs");
8
7
  const require_style = require("./style.cjs");
9
8
  const require_metadata = require("./metadata.cjs");
9
+ const require_content_vocabulary = require("./content-vocabulary.cjs");
10
+ const require_content_sheet = require("./content-sheet.cjs");
11
+ const require_content_drawing = require("./content-drawing.cjs");
10
12
  let zod = require("zod");
11
13
  //#region src/content.ts
12
- const ContentOriginSchema = zod.z.enum([
13
- "chart",
14
- "diagram",
15
- "table",
16
- "image",
17
- "notes",
18
- "body"
19
- ]);
20
- const ContentTranscriptSchema = zod.z.object({
21
- text: zod.z.string(),
22
- confidence: zod.z.enum([
23
- "high",
24
- "medium",
25
- "low"
26
- ]),
27
- mechanism: zod.z.enum(["deterministic", "model"])
28
- });
29
- const ContentInterpretationSchema = zod.z.object({
30
- transcript: ContentTranscriptSchema.optional(),
31
- description: zod.z.string().optional(),
32
- by: zod.z.object({
33
- model: zod.z.string(),
34
- at: zod.z.string()
35
- }).optional()
36
- });
37
- const CONTENT_ANNOTATION_FIELDS = {
38
- origin: ContentOriginSchema.optional(),
39
- interpretation: ContentInterpretationSchema.optional()
40
- };
41
- const RUN_FONT_PROPERTY_SHAPE = {
42
- bold: zod.z.boolean().optional(),
43
- italic: zod.z.boolean().optional(),
44
- underline: zod.z.boolean().optional(),
45
- strike: zod.z.boolean().optional(),
46
- fontFamily: zod.z.string().optional(),
47
- sizePt: zod.z.number().positive().optional(),
48
- color: require_color.ColorSchema.optional()
49
- };
50
- const ContentFontSchema = zod.z.object(RUN_FONT_PROPERTY_SHAPE);
51
- const ContentRunSchema = zod.z.object({
52
- text: zod.z.string(),
53
- ...RUN_FONT_PROPERTY_SHAPE,
54
- hyperlink: zod.z.string().optional(),
55
- verticalAlign: zod.z.enum(["superscript", "subscript"]).optional(),
56
- direction: require_style.TextDirectionSchema.optional(),
57
- sourcePath: zod.z.string().optional(),
58
- source: require_source.SourceResidueSchema.optional(),
59
- frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
60
- ...CONTENT_ANNOTATION_FIELDS
61
- });
62
14
  const ContentListMembershipSchema = zod.z.object({
63
15
  numId: zod.z.string().optional(),
64
16
  level: zod.z.number().int().nonnegative(),
@@ -73,32 +25,16 @@ const ContentListMembershipSchema = zod.z.object({
73
25
  "upperRoman"
74
26
  ]).optional()
75
27
  });
76
- const RunConstructExtentSchema = zod.z.object({
77
- descriptor: require_construct.ConstructDescriptorSchema,
78
- startRun: zod.z.number().int().nonnegative(),
79
- endRun: zod.z.number().int().nonnegative()
80
- });
81
- const ContentStrokeStyleSchema = zod.z.enum([
82
- "solid",
83
- "dashed",
84
- "dotted",
85
- "double"
86
- ]);
87
- const ContentBorderSchema = zod.z.object({
88
- color: require_color.ColorSchema,
89
- widthPt: zod.z.number().positive(),
90
- style: ContentStrokeStyleSchema.optional()
91
- });
92
28
  const ContentParagraphBordersSchema = zod.z.object({
93
- left: ContentBorderSchema.optional(),
94
- right: ContentBorderSchema.optional(),
95
- top: ContentBorderSchema.optional(),
96
- bottom: ContentBorderSchema.optional()
29
+ left: require_content_vocabulary.ContentBorderSchema.optional(),
30
+ right: require_content_vocabulary.ContentBorderSchema.optional(),
31
+ top: require_content_vocabulary.ContentBorderSchema.optional(),
32
+ bottom: require_content_vocabulary.ContentBorderSchema.optional()
97
33
  });
98
34
  const ContentParagraphSchema = zod.z.object({
99
35
  kind: zod.z.literal("paragraph"),
100
- runs: zod.z.array(ContentRunSchema),
101
- constructs: zod.z.array(RunConstructExtentSchema).optional(),
36
+ runs: zod.z.array(require_content_vocabulary.ContentRunSchema),
37
+ constructs: zod.z.array(require_content_vocabulary.RunConstructExtentSchema).optional(),
102
38
  styleId: zod.z.string().optional(),
103
39
  codeLanguage: zod.z.string().optional(),
104
40
  preformatted: zod.z.boolean().optional(),
@@ -118,84 +54,18 @@ const ContentParagraphSchema = zod.z.object({
118
54
  sourcePath: zod.z.string().optional(),
119
55
  source: require_source.SourceResidueSchema.optional(),
120
56
  frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
121
- ...CONTENT_ANNOTATION_FIELDS
57
+ ...require_content_vocabulary.CONTENT_ANNOTATION_FIELDS
122
58
  });
123
59
  const MAX_HEADING_LEVEL = 6;
124
60
  function clampHeadingLevel(level) {
125
61
  return Math.min(MAX_HEADING_LEVEL, Math.max(1, Math.round(level)));
126
62
  }
127
- const ContentFloatOriginSchema = zod.z.enum([
128
- "page",
129
- "margin",
130
- "leftMargin",
131
- "rightMargin",
132
- "topMargin",
133
- "bottomMargin",
134
- "insideMargin",
135
- "outsideMargin",
136
- "column",
137
- "character",
138
- "paragraph",
139
- "line",
140
- "frame"
141
- ]);
142
- const ContentFloatAlignSchema = zod.z.enum([
143
- "left",
144
- "right",
145
- "top",
146
- "bottom",
147
- "center",
148
- "inside",
149
- "outside"
150
- ]);
151
- const ContentFloatAxisSchema = zod.z.union([zod.z.strictObject({
152
- relativeTo: ContentFloatOriginSchema,
153
- offsetPt: zod.z.number()
154
- }), zod.z.strictObject({
155
- relativeTo: ContentFloatOriginSchema,
156
- align: ContentFloatAlignSchema
157
- })]);
158
- const ContentFloatPositionSchema = zod.z.object({
159
- horizontal: ContentFloatAxisSchema,
160
- vertical: ContentFloatAxisSchema
161
- });
162
- const IMAGE_FORMATS = [
163
- "png",
164
- "jpeg",
165
- "svg",
166
- "gif"
167
- ];
168
- function isImageFormat(value) {
169
- return IMAGE_FORMATS.includes(value);
170
- }
171
- const ContentImageOriginalSchema = zod.z.object({
172
- filter: zod.z.enum(["jbig2", "jpeg2000"]),
173
- base64: zod.z.string(),
174
- jbig2GlobalsBase64: zod.z.string().optional()
175
- });
176
- const ContentImageBlockSchema = zod.z.object({
177
- kind: zod.z.literal("image"),
178
- format: zod.z.enum(IMAGE_FORMATS),
179
- base64: zod.z.string(),
180
- widthPt: zod.z.number().positive(),
181
- heightPt: zod.z.number().positive(),
182
- altText: zod.z.string().optional(),
183
- original: ContentImageOriginalSchema.optional(),
184
- anchorRunIndex: zod.z.number().int().nonnegative().optional(),
185
- anchorOffset: zod.z.number().int().nonnegative().optional(),
186
- caption: zod.z.string().optional(),
187
- floatPosition: ContentFloatPositionSchema.optional(),
188
- sourcePath: zod.z.string().optional(),
189
- source: require_source.SourceResidueSchema.optional(),
190
- frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
191
- ...CONTENT_ANNOTATION_FIELDS
192
- });
193
63
  const ContentPageBreakSchema = zod.z.object({
194
64
  kind: zod.z.literal("pageBreak"),
195
65
  sourcePath: zod.z.string().optional(),
196
66
  source: require_source.SourceResidueSchema.optional(),
197
67
  frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
198
- ...CONTENT_ANNOTATION_FIELDS
68
+ ...require_content_vocabulary.CONTENT_ANNOTATION_FIELDS
199
69
  });
200
70
  const ContentConstructStartSchema = zod.z.object({
201
71
  kind: zod.z.literal("constructStart"),
@@ -221,7 +91,7 @@ function isContentEmbeddedObjectKind(value) {
221
91
  return value === "formula" || value === "wordprocessing" || value === "presentation" || value === "spreadsheet" || value === "drawing" || value === "chart";
222
92
  }
223
93
  function isContentEmbeddedObject(value) {
224
- return isRecord(value) && isContentEmbeddedObjectKind(value.objectKind) && require_geometry.BoxSchema.safeParse(value.frame).success && ContentDocumentSchema.safeParse(value.document).success && (value.anchorRow === void 0 || typeof value.anchorRow === "number" && Number.isInteger(value.anchorRow) && value.anchorRow >= 0) && (value.anchorColumn === void 0 || typeof value.anchorColumn === "number" && Number.isInteger(value.anchorColumn) && value.anchorColumn >= 0) && (value.offsetXPt === void 0 || typeof value.offsetXPt === "number") && (value.offsetYPt === void 0 || typeof value.offsetYPt === "number");
94
+ return isRecord(value) && isContentEmbeddedObjectKind(value.objectKind) && require_geometry.BoxSchema.safeParse(value.frame).success && require_content_vocabulary.contentDocumentSchemaBox.value.safeParse(value.document).success && (value.anchorRow === void 0 || typeof value.anchorRow === "number" && Number.isInteger(value.anchorRow) && value.anchorRow >= 0) && (value.anchorColumn === void 0 || typeof value.anchorColumn === "number" && Number.isInteger(value.anchorColumn) && value.anchorColumn >= 0) && (value.offsetXPt === void 0 || typeof value.offsetXPt === "number") && (value.offsetYPt === void 0 || typeof value.offsetYPt === "number");
225
95
  }
226
96
  function isContentConstructStart(value) {
227
97
  return isRecord(value) && value.kind === "constructStart" && require_construct.ConstructDescriptorSchema.safeParse(value.descriptor).success;
@@ -241,7 +111,7 @@ function isContentBlock(value) {
241
111
  if (!isRecord(value)) return false;
242
112
  const kind = value.kind;
243
113
  if (kind === "paragraph") return Array.isArray(value.runs) && value.runs.every(isContentRun) && (value.constructs === void 0 || Array.isArray(value.constructs) && value.constructs.every(isRunConstructExtent));
244
- if (kind === "image") return isImageFormat(value.format) && typeof value.base64 === "string" && typeof value.widthPt === "number" && typeof value.heightPt === "number";
114
+ if (kind === "image") return require_content_vocabulary.isImageFormat(value.format) && typeof value.base64 === "string" && typeof value.widthPt === "number" && typeof value.heightPt === "number";
245
115
  if (kind === "pageBreak") return true;
246
116
  if (kind === "table") return Array.isArray(value.rows) && value.rows.every(isContentTableRow) && Array.isArray(value.columns) && value.columns.every(isContentTableColumn);
247
117
  if (kind === "embeddedObject") return isContentEmbeddedObject(value);
@@ -249,31 +119,6 @@ function isContentBlock(value) {
249
119
  if (kind === "constructEnd") return true;
250
120
  return false;
251
121
  }
252
- const CONTENT_EMBEDDED_OBJECT_FIELDS = {
253
- objectKind: zod.z.enum([
254
- "formula",
255
- "wordprocessing",
256
- "presentation",
257
- "spreadsheet",
258
- "drawing",
259
- "chart"
260
- ]),
261
- document: zod.z.lazy(() => ContentDocumentSchema),
262
- frame: require_geometry.BoxSchema,
263
- anchorRow: zod.z.number().int().nonnegative().optional(),
264
- anchorColumn: zod.z.number().int().nonnegative().optional(),
265
- offsetXPt: zod.z.number().optional(),
266
- offsetYPt: zod.z.number().optional(),
267
- source: require_source.SourceResidueSchema.optional(),
268
- ...CONTENT_ANNOTATION_FIELDS
269
- };
270
- const ContentEmbeddedObjectSchema = zod.z.object(CONTENT_EMBEDDED_OBJECT_FIELDS);
271
- const ContentEmbeddedObjectBlockSchema = zod.z.object({
272
- kind: zod.z.literal("embeddedObject"),
273
- ...CONTENT_EMBEDDED_OBJECT_FIELDS,
274
- sourcePath: zod.z.string().optional(),
275
- frames: zod.z.array(require_geometry.LayoutFrameSchema).optional()
276
- });
277
122
  function findConstructMarkerImbalance(blocks) {
278
123
  const openStartIndices = [];
279
124
  for (const [index, block] of blocks.entries()) if (isContentConstructStart(block)) openStartIndices.push(index);
@@ -301,89 +146,12 @@ function findRunConstructFault(paragraph) {
301
146
  };
302
147
  }
303
148
  }
304
- const ContentCellBordersSchema = zod.z.object({
305
- left: ContentBorderSchema.optional(),
306
- right: ContentBorderSchema.optional(),
307
- top: ContentBorderSchema.optional(),
308
- bottom: ContentBorderSchema.optional(),
309
- diagonalUp: ContentBorderSchema.optional(),
310
- diagonalDown: ContentBorderSchema.optional()
311
- });
312
- const ContentCellPatternTypeSchema = zod.z.enum([
313
- "percent5",
314
- "percent10",
315
- "percent12",
316
- "percent15",
317
- "percent20",
318
- "percent25",
319
- "percent30",
320
- "percent35",
321
- "percent37",
322
- "percent40",
323
- "percent45",
324
- "percent50",
325
- "percent55",
326
- "percent60",
327
- "percent62",
328
- "percent65",
329
- "percent70",
330
- "percent75",
331
- "percent80",
332
- "percent85",
333
- "percent87",
334
- "percent90",
335
- "percent95",
336
- "horizontalStripe",
337
- "verticalStripe",
338
- "diagonalStripe",
339
- "reverseDiagonalStripe",
340
- "horizontalCross",
341
- "diagonalCross",
342
- "thinHorizontalStripe",
343
- "thinVerticalStripe",
344
- "thinDiagonalStripe",
345
- "thinReverseDiagonalStripe",
346
- "thinHorizontalCross",
347
- "thinDiagonalCross",
348
- "mediumGray",
349
- "darkGray",
350
- "lightGray",
351
- "darkHorizontal",
352
- "darkVertical",
353
- "darkDown",
354
- "darkUp",
355
- "darkGrid",
356
- "darkTrellis",
357
- "lightHorizontal",
358
- "lightVertical",
359
- "lightDown",
360
- "lightUp",
361
- "lightGrid",
362
- "lightTrellis",
363
- "gray125",
364
- "gray0625"
365
- ]);
366
- const ContentCellFillSchema = zod.z.discriminatedUnion("kind", [zod.z.object({
367
- kind: zod.z.literal("solid"),
368
- color: require_color.ColorSchema
369
- }), zod.z.object({
370
- kind: zod.z.literal("pattern"),
371
- patternType: ContentCellPatternTypeSchema,
372
- foregroundColor: require_color.ColorSchema.optional(),
373
- backgroundColor: require_color.ColorSchema.optional()
374
- })]);
375
- function resolveCellFillColor(fill) {
376
- return fill.kind === "solid" ? fill.color : fill.foregroundColor ?? fill.backgroundColor;
377
- }
378
- function unrecognizedFillKind(fill) {
379
- return String(fill.kind);
380
- }
381
149
  const ContentTableCellSchema = zod.z.object({
382
- blocks: zod.z.lazy(() => zod.z.array(ContentBlockSchema)),
150
+ blocks: zod.z.lazy(() => zod.z.array(require_content_vocabulary.contentBlockSchemaBox.value)),
383
151
  colSpan: zod.z.number().int().positive().optional(),
384
152
  rowSpan: zod.z.number().int().positive().optional(),
385
- background: ContentCellFillSchema.optional(),
386
- borders: ContentCellBordersSchema.optional(),
153
+ background: require_content_sheet.ContentCellFillSchema.optional(),
154
+ borders: require_content_sheet.ContentCellBordersSchema.optional(),
387
155
  verticalAlign: zod.z.enum([
388
156
  "top",
389
157
  "center",
@@ -393,7 +161,7 @@ const ContentTableCellSchema = zod.z.object({
393
161
  sourcePath: zod.z.string().optional(),
394
162
  source: require_source.SourceResidueSchema.optional(),
395
163
  frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
396
- ...CONTENT_ANNOTATION_FIELDS
164
+ ...require_content_vocabulary.CONTENT_ANNOTATION_FIELDS
397
165
  });
398
166
  const ContentTableRowSchema = zod.z.object({
399
167
  cells: zod.z.array(ContentTableCellSchema),
@@ -412,17 +180,19 @@ const ContentTableSchema = zod.z.object({
412
180
  sourcePath: zod.z.string().optional(),
413
181
  source: require_source.SourceResidueSchema.optional(),
414
182
  frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
415
- ...CONTENT_ANNOTATION_FIELDS
183
+ ...require_content_vocabulary.CONTENT_ANNOTATION_FIELDS
416
184
  });
417
185
  const ContentBlockSchema = zod.z.discriminatedUnion("kind", [
418
186
  ContentParagraphSchema,
419
187
  ContentTableSchema,
420
- ContentImageBlockSchema,
188
+ require_content_vocabulary.ContentImageBlockSchema,
421
189
  ContentPageBreakSchema,
422
- ContentEmbeddedObjectBlockSchema,
190
+ require_content_vocabulary.ContentEmbeddedObjectBlockSchema,
423
191
  ContentConstructStartSchema,
424
192
  ContentConstructEndSchema
425
193
  ]);
194
+ require_content_vocabulary.contentBlockSchemaBox.value = ContentBlockSchema;
195
+ require_content_vocabulary.contentBlockSchemaBox.value = ContentBlockSchema;
426
196
  const ContentPageFurnitureSchema = zod.z.object({
427
197
  default: zod.z.lazy(() => zod.z.array(ContentBlockSchema)).optional(),
428
198
  even: zod.z.lazy(() => zod.z.array(ContentBlockSchema)).optional(),
@@ -442,469 +212,7 @@ const ContentSectionSchema = zod.z.object({
442
212
  footers: ContentPageFurnitureSchema.optional(),
443
213
  watermarks: ContentPageFurnitureSchema.optional(),
444
214
  source: require_source.SourceResidueSchema.optional(),
445
- ...CONTENT_ANNOTATION_FIELDS
446
- });
447
- const ContentShapeSchema = zod.z.object({
448
- name: zod.z.string().optional(),
449
- frame: require_geometry.BoxSchema,
450
- rotationDeg: zod.z.number().optional(),
451
- insetLeftPt: zod.z.number().nonnegative(),
452
- insetTopPt: zod.z.number().nonnegative(),
453
- insetRightPt: zod.z.number().nonnegative(),
454
- insetBottomPt: zod.z.number().nonnegative(),
455
- fontScale: zod.z.number().positive().optional(),
456
- lineSpacingReduction: zod.z.number().nonnegative().optional(),
457
- paintOrder: zod.z.number().optional(),
458
- readingOrder: zod.z.number().optional(),
459
- sourcePath: zod.z.string().optional(),
460
- source: require_source.SourceResidueSchema.optional(),
461
- frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
462
- ...CONTENT_ANNOTATION_FIELDS,
463
- blocks: zod.z.lazy(() => zod.z.array(ContentBlockSchema))
464
- });
465
- const ContentSlideSchema = zod.z.object({
466
- size: require_geometry.PageSizeSchema,
467
- shapes: zod.z.array(ContentShapeSchema),
468
- notes: zod.z.string(),
469
- source: require_source.SourceResidueSchema.optional(),
470
- ...CONTENT_ANNOTATION_FIELDS
471
- });
472
- const DecimalStringSchema = zod.z.string().regex(/^-?(0|[1-9]\d*)(\.\d+)?$/);
473
- const ContentCellValueSchema = zod.z.discriminatedUnion("kind", [
474
- zod.z.object({
475
- kind: zod.z.literal("number"),
476
- value: zod.z.number(),
477
- exactValue: DecimalStringSchema.optional()
478
- }),
479
- zod.z.object({
480
- kind: zod.z.literal("percentage"),
481
- value: zod.z.number(),
482
- exactValue: DecimalStringSchema.optional()
483
- }),
484
- zod.z.object({
485
- kind: zod.z.literal("currency"),
486
- value: zod.z.number(),
487
- currency: zod.z.string().optional(),
488
- exactValue: DecimalStringSchema.optional()
489
- }),
490
- zod.z.object({
491
- kind: zod.z.literal("boolean"),
492
- value: zod.z.boolean()
493
- }),
494
- zod.z.object({
495
- kind: zod.z.literal("date"),
496
- value: zod.z.string()
497
- }),
498
- zod.z.object({
499
- kind: zod.z.literal("time"),
500
- value: zod.z.string()
501
- }),
502
- zod.z.object({
503
- kind: zod.z.literal("dateTime"),
504
- value: zod.z.string()
505
- }),
506
- zod.z.object({
507
- kind: zod.z.literal("string"),
508
- value: zod.z.string()
509
- }),
510
- zod.z.object({
511
- kind: zod.z.literal("error"),
512
- value: zod.z.string()
513
- }),
514
- zod.z.object({ kind: zod.z.literal("empty") })
515
- ]);
516
- const ContentSheetCellCommentSchema = zod.z.object({
517
- text: zod.z.string(),
518
- author: zod.z.string().optional(),
519
- createdAt: zod.z.string().optional(),
520
- replies: zod.z.array(zod.z.object({
521
- text: zod.z.string(),
522
- author: zod.z.string().optional()
523
- })).optional()
524
- });
525
- const ContentSheetCellSchema = zod.z.object({
526
- row: zod.z.number().int().nonnegative(),
527
- column: zod.z.number().int().nonnegative(),
528
- value: ContentCellValueSchema,
529
- formula: zod.z.string().optional(),
530
- displayText: zod.z.string(),
531
- numberFormatCode: zod.z.string().optional(),
532
- font: ContentFontSchema.optional(),
533
- runs: zod.z.array(ContentRunSchema).optional(),
534
- colSpan: zod.z.number().int().positive().optional(),
535
- rowSpan: zod.z.number().int().positive().optional(),
536
- background: ContentCellFillSchema.optional(),
537
- borders: ContentCellBordersSchema.optional(),
538
- alignment: require_style.AlignmentSchema.optional(),
539
- verticalAlignment: zod.z.enum([
540
- "top",
541
- "middle",
542
- "bottom"
543
- ]).optional(),
544
- comment: ContentSheetCellCommentSchema.optional(),
545
- sourcePath: zod.z.string().optional(),
546
- source: require_source.SourceResidueSchema.optional(),
547
- frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
548
- ...CONTENT_ANNOTATION_FIELDS
549
- });
550
- const ContentSheetColumnSchema = zod.z.object({
551
- index: zod.z.number().int().nonnegative(),
552
- widthPt: zod.z.number().positive().optional(),
553
- hidden: zod.z.boolean().optional()
554
- });
555
- const ContentSheetRowSchema = zod.z.object({
556
- index: zod.z.number().int().nonnegative(),
557
- heightPt: zod.z.number().positive().optional(),
558
- hidden: zod.z.boolean().optional()
559
- });
560
- const ContentSheetPrintRangeSchema = zod.z.object({
561
- startRow: zod.z.number().int().nonnegative(),
562
- startColumn: zod.z.number().int().nonnegative(),
563
- endRow: zod.z.number().int().nonnegative(),
564
- endColumn: zod.z.number().int().nonnegative()
565
- });
566
- const ContentSheetRepeatRangeSchema = zod.z.object({
567
- start: zod.z.number().int().nonnegative(),
568
- end: zod.z.number().int().nonnegative()
569
- });
570
- const ContentSheetPrintSettingsSchema = zod.z.object({
571
- pageSize: require_geometry.PageSizeSchema,
572
- margins: require_geometry.MarginsSchema,
573
- printRange: ContentSheetPrintRangeSchema.optional(),
574
- scalePercent: zod.z.number().positive().optional(),
575
- fitToPages: zod.z.object({
576
- width: zod.z.number().int().positive(),
577
- height: zod.z.number().int().positive()
578
- }).optional(),
579
- repeatRows: ContentSheetRepeatRangeSchema.optional(),
580
- repeatColumns: ContentSheetRepeatRangeSchema.optional(),
581
- gridlines: zod.z.boolean(),
582
- headers: zod.z.boolean(),
583
- pageOrder: zod.z.enum(["downThenOver", "overThenDown"]),
584
- manualBreaks: zod.z.object({
585
- rows: zod.z.array(zod.z.number().int().nonnegative()),
586
- columns: zod.z.array(zod.z.number().int().nonnegative())
587
- }).optional()
588
- });
589
- const ContentSheetRangeSchema = zod.z.object({
590
- startRow: zod.z.number().int().nonnegative(),
591
- startColumn: zod.z.number().int().nonnegative(),
592
- endRow: zod.z.number().int().nonnegative(),
593
- endColumn: zod.z.number().int().nonnegative()
594
- });
595
- const SheetRuleOperatorSchema = zod.z.enum([
596
- "between",
597
- "notBetween",
598
- "equal",
599
- "notEqual",
600
- "greaterThan",
601
- "greaterThanOrEqual",
602
- "lessThan",
603
- "lessThanOrEqual"
604
- ]);
605
- const ContentSheetDataValidationTypeSchema = zod.z.enum([
606
- "whole",
607
- "decimal",
608
- "list",
609
- "date",
610
- "time",
611
- "textLength",
612
- "custom"
613
- ]);
614
- const ContentSheetDataValidationSchema = zod.z.object({
615
- ranges: zod.z.array(ContentSheetRangeSchema),
616
- type: ContentSheetDataValidationTypeSchema,
617
- operator: SheetRuleOperatorSchema.optional(),
618
- formula1: zod.z.string().optional(),
619
- formula2: zod.z.string().optional(),
620
- allowBlank: zod.z.boolean().optional(),
621
- showInputMessage: zod.z.boolean().optional(),
622
- promptTitle: zod.z.string().optional(),
623
- prompt: zod.z.string().optional(),
624
- showErrorMessage: zod.z.boolean().optional(),
625
- errorStyle: zod.z.enum([
626
- "stop",
627
- "warning",
628
- "information"
629
- ]).optional(),
630
- errorTitle: zod.z.string().optional(),
631
- error: zod.z.string().optional(),
632
- source: require_source.SourceResidueSchema.optional()
633
- });
634
- const ContentSheetConditionalFormatStyleSchema = zod.z.object({
635
- textColor: require_color.ColorSchema.optional(),
636
- background: require_color.ColorSchema.optional(),
637
- source: require_source.SourceResidueSchema.optional()
638
- });
639
- const cfvoTypeSchema = zod.z.enum([
640
- "num",
641
- "percent",
642
- "max",
643
- "min",
644
- "formula",
645
- "percentile"
646
- ]);
647
- const ContentSheetConditionalFormatValueSchema = zod.z.object({
648
- type: cfvoTypeSchema,
649
- value: zod.z.string().optional()
650
- });
651
- const MIN_COLOR_SCALE_STOPS = 2;
652
- const MAX_COLOR_SCALE_STOPS = 3;
653
- const conditionalFormatCommonFields = {
654
- ranges: zod.z.array(ContentSheetRangeSchema),
655
- priority: zod.z.number().int().optional(),
656
- stopIfTrue: zod.z.boolean().optional(),
657
- source: require_source.SourceResidueSchema.optional()
658
- };
659
- const ContentSheetConditionalFormatSchema = zod.z.discriminatedUnion("type", [
660
- zod.z.object({
661
- type: zod.z.literal("cellIs"),
662
- ...conditionalFormatCommonFields,
663
- operator: SheetRuleOperatorSchema,
664
- formula1: zod.z.string(),
665
- formula2: zod.z.string().optional(),
666
- style: ContentSheetConditionalFormatStyleSchema.optional()
667
- }),
668
- zod.z.object({
669
- type: zod.z.enum([
670
- "containsText",
671
- "notContainsText",
672
- "beginsWith",
673
- "endsWith"
674
- ]),
675
- ...conditionalFormatCommonFields,
676
- text: zod.z.string(),
677
- style: ContentSheetConditionalFormatStyleSchema.optional()
678
- }),
679
- zod.z.object({
680
- type: zod.z.enum([
681
- "containsBlanks",
682
- "notContainsBlanks",
683
- "containsErrors",
684
- "notContainsErrors",
685
- "uniqueValues",
686
- "duplicateValues"
687
- ]),
688
- ...conditionalFormatCommonFields,
689
- style: ContentSheetConditionalFormatStyleSchema.optional()
690
- }),
691
- zod.z.object({
692
- type: zod.z.literal("top10"),
693
- ...conditionalFormatCommonFields,
694
- rank: zod.z.number().positive(),
695
- percent: zod.z.boolean().optional(),
696
- bottom: zod.z.boolean().optional(),
697
- style: ContentSheetConditionalFormatStyleSchema.optional()
698
- }),
699
- zod.z.object({
700
- type: zod.z.literal("aboveAverage"),
701
- ...conditionalFormatCommonFields,
702
- aboveAverage: zod.z.boolean().optional(),
703
- equalAverage: zod.z.boolean().optional(),
704
- stdDev: zod.z.number().int().positive().optional(),
705
- style: ContentSheetConditionalFormatStyleSchema.optional()
706
- }),
707
- zod.z.object({
708
- type: zod.z.literal("timePeriod"),
709
- ...conditionalFormatCommonFields,
710
- timePeriod: zod.z.enum([
711
- "yesterday",
712
- "today",
713
- "tomorrow",
714
- "last7Days",
715
- "thisMonth",
716
- "lastMonth",
717
- "nextMonth",
718
- "thisWeek",
719
- "lastWeek",
720
- "nextWeek",
721
- "thisYear",
722
- "lastYear",
723
- "nextYear"
724
- ]),
725
- style: ContentSheetConditionalFormatStyleSchema.optional()
726
- }),
727
- zod.z.object({
728
- type: zod.z.literal("colorScale"),
729
- ...conditionalFormatCommonFields,
730
- stops: zod.z.array(zod.z.object({
731
- value: ContentSheetConditionalFormatValueSchema,
732
- color: require_color.ColorSchema
733
- })).min(MIN_COLOR_SCALE_STOPS).max(MAX_COLOR_SCALE_STOPS)
734
- }),
735
- zod.z.object({
736
- type: zod.z.literal("dataBar"),
737
- ...conditionalFormatCommonFields,
738
- min: ContentSheetConditionalFormatValueSchema,
739
- max: ContentSheetConditionalFormatValueSchema,
740
- color: require_color.ColorSchema,
741
- showValue: zod.z.boolean().optional()
742
- }),
743
- zod.z.object({
744
- type: zod.z.literal("iconSet"),
745
- ...conditionalFormatCommonFields,
746
- iconSetType: zod.z.string(),
747
- thresholds: zod.z.array(ContentSheetConditionalFormatValueSchema),
748
- reverse: zod.z.boolean().optional(),
749
- showValue: zod.z.boolean().optional()
750
- })
751
- ]);
752
- const ContentSheetImageSchema = ContentImageBlockSchema.extend({
753
- anchorRow: zod.z.number().int().nonnegative(),
754
- anchorColumn: zod.z.number().int().nonnegative(),
755
- offsetXPt: zod.z.number(),
756
- offsetYPt: zod.z.number()
757
- });
758
- const ContentSheetSchema = zod.z.object({
759
- name: zod.z.string(),
760
- cells: zod.z.array(ContentSheetCellSchema),
761
- columns: zod.z.array(ContentSheetColumnSchema),
762
- rows: zod.z.array(ContentSheetRowSchema),
763
- images: zod.z.array(ContentSheetImageSchema),
764
- printSettings: ContentSheetPrintSettingsSchema,
765
- embeddedObjects: zod.z.array(ContentEmbeddedObjectSchema).optional(),
766
- dataValidations: zod.z.array(ContentSheetDataValidationSchema).optional(),
767
- conditionalFormats: zod.z.array(ContentSheetConditionalFormatSchema).optional(),
768
- source: require_source.SourceResidueSchema.optional(),
769
- ...CONTENT_ANNOTATION_FIELDS
770
- });
771
- const ContentStrokeDashSchema = zod.z.object({
772
- dots1: zod.z.number().int().positive(),
773
- dots1LengthPt: zod.z.number().positive(),
774
- dots2: zod.z.number().int().positive().optional(),
775
- dots2LengthPt: zod.z.number().positive().optional(),
776
- distancePt: zod.z.number().nonnegative()
777
- });
778
- const ContentStrokeSchema = zod.z.object({
779
- color: require_color.ColorSchema,
780
- widthPt: zod.z.number().positive(),
781
- style: ContentStrokeStyleSchema.optional(),
782
- opacity: zod.z.number().min(0).max(1).optional(),
783
- dashPattern: ContentStrokeDashSchema.optional()
784
- });
785
- const ContentGradientStyleSchema = zod.z.enum([
786
- "linear",
787
- "axial",
788
- "radial",
789
- "ellipsoid",
790
- "square",
791
- "rectangular"
792
- ]);
793
- const ContentGradientFillSchema = zod.z.object({
794
- kind: zod.z.literal("gradient"),
795
- style: ContentGradientStyleSchema,
796
- startColor: require_color.ColorSchema,
797
- endColor: require_color.ColorSchema,
798
- angleDeg: zod.z.number().optional()
799
- });
800
- const ContentHatchStyleSchema = zod.z.enum([
801
- "single",
802
- "double",
803
- "triple"
804
- ]);
805
- const ContentHatchFillSchema = zod.z.object({
806
- kind: zod.z.literal("hatch"),
807
- style: ContentHatchStyleSchema,
808
- color: require_color.ColorSchema,
809
- distancePt: zod.z.number().nonnegative(),
810
- rotationDeg: zod.z.number().optional()
811
- });
812
- const ContentBitmapFillSchema = zod.z.object({
813
- kind: zod.z.literal("bitmap"),
814
- format: zod.z.enum([
815
- "png",
816
- "jpeg",
817
- "svg",
818
- "gif"
819
- ]),
820
- base64: zod.z.string()
821
- });
822
- const ContentFillPatternSchema = zod.z.discriminatedUnion("kind", [
823
- ContentGradientFillSchema,
824
- ContentHatchFillSchema,
825
- ContentBitmapFillSchema
826
- ]);
827
- const ContentPathPointSchema = zod.z.object({
828
- xPt: zod.z.number(),
829
- yPt: zod.z.number()
830
- });
831
- const ContentPathSegmentSchema = zod.z.discriminatedUnion("kind", [zod.z.object({
832
- kind: zod.z.literal("line"),
833
- to: ContentPathPointSchema
834
- }), zod.z.object({
835
- kind: zod.z.literal("cubic"),
836
- control1: ContentPathPointSchema,
837
- control2: ContentPathPointSchema,
838
- to: ContentPathPointSchema
839
- })]);
840
- const ContentSubpathSchema = zod.z.object({
841
- start: ContentPathPointSchema,
842
- segments: zod.z.array(ContentPathSegmentSchema),
843
- closed: zod.z.boolean()
844
- });
845
- const ContentVectorSchema = zod.z.discriminatedUnion("kind", [
846
- zod.z.object({
847
- kind: zod.z.literal("rect"),
848
- frame: require_geometry.BoxSchema,
849
- rotationDeg: zod.z.number().optional(),
850
- fill: require_color.ColorSchema.optional(),
851
- fillPattern: ContentFillPatternSchema.optional(),
852
- fillOpacity: zod.z.number().min(0).max(1).optional(),
853
- stroke: ContentStrokeSchema.optional(),
854
- paintOrder: zod.z.number().optional(),
855
- sourcePath: zod.z.string().optional(),
856
- source: require_source.SourceResidueSchema.optional(),
857
- frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
858
- ...CONTENT_ANNOTATION_FIELDS
859
- }),
860
- zod.z.object({
861
- kind: zod.z.literal("ellipse"),
862
- frame: require_geometry.BoxSchema,
863
- rotationDeg: zod.z.number().optional(),
864
- fill: require_color.ColorSchema.optional(),
865
- fillPattern: ContentFillPatternSchema.optional(),
866
- fillOpacity: zod.z.number().min(0).max(1).optional(),
867
- stroke: ContentStrokeSchema.optional(),
868
- paintOrder: zod.z.number().optional(),
869
- sourcePath: zod.z.string().optional(),
870
- source: require_source.SourceResidueSchema.optional(),
871
- frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
872
- ...CONTENT_ANNOTATION_FIELDS
873
- }),
874
- zod.z.object({
875
- kind: zod.z.literal("line"),
876
- from: ContentPathPointSchema,
877
- to: ContentPathPointSchema,
878
- stroke: ContentStrokeSchema,
879
- paintOrder: zod.z.number().optional(),
880
- sourcePath: zod.z.string().optional(),
881
- source: require_source.SourceResidueSchema.optional(),
882
- frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
883
- ...CONTENT_ANNOTATION_FIELDS
884
- }),
885
- zod.z.object({
886
- kind: zod.z.literal("path"),
887
- frame: require_geometry.BoxSchema,
888
- rotationDeg: zod.z.number().optional(),
889
- subpaths: zod.z.array(ContentSubpathSchema),
890
- fill: require_color.ColorSchema.optional(),
891
- fillPattern: ContentFillPatternSchema.optional(),
892
- fillOpacity: zod.z.number().min(0).max(1).optional(),
893
- fillRule: zod.z.enum(["nonzero", "evenodd"]).optional(),
894
- stroke: ContentStrokeSchema.optional(),
895
- paintOrder: zod.z.number().optional(),
896
- sourcePath: zod.z.string().optional(),
897
- source: require_source.SourceResidueSchema.optional(),
898
- frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
899
- ...CONTENT_ANNOTATION_FIELDS
900
- })
901
- ]);
902
- const ContentDrawPageSchema = zod.z.object({
903
- size: require_geometry.PageSizeSchema,
904
- shapes: zod.z.array(ContentShapeSchema),
905
- vectors: zod.z.array(ContentVectorSchema),
906
- source: require_source.SourceResidueSchema.optional(),
907
- ...CONTENT_ANNOTATION_FIELDS
215
+ ...require_content_vocabulary.CONTENT_ANNOTATION_FIELDS
908
216
  });
909
217
  const ContentFormulaSchema = zod.z.object({
910
218
  mathml: zod.z.array(require_mathml.MathMlNodeSchema),
@@ -913,7 +221,7 @@ const ContentFormulaSchema = zod.z.object({
913
221
  content: require_math.MathExpressionSchema.optional(),
914
222
  provenance: require_math.MathProvenanceSchema.optional(),
915
223
  source: require_source.SourceResidueSchema.optional(),
916
- ...CONTENT_ANNOTATION_FIELDS
224
+ ...require_content_vocabulary.CONTENT_ANNOTATION_FIELDS
917
225
  });
918
226
  const contentDocumentSharedFields = { symbolTable: require_math.SymbolTableSchema.optional() };
919
227
  const ContentDefinedNameSchema = zod.z.object({
@@ -932,20 +240,20 @@ const ContentDocumentSchema = zod.z.discriminatedUnion("kind", [
932
240
  kind: zod.z.literal("presentation"),
933
241
  metadata: require_metadata.LayoutMetadataSchema,
934
242
  ...contentDocumentSharedFields,
935
- slides: zod.z.array(ContentSlideSchema)
243
+ slides: zod.z.array(require_content_drawing.ContentSlideSchema)
936
244
  }),
937
245
  zod.z.object({
938
246
  kind: zod.z.literal("spreadsheet"),
939
247
  metadata: require_metadata.LayoutMetadataSchema,
940
248
  ...contentDocumentSharedFields,
941
- sheets: zod.z.array(ContentSheetSchema),
249
+ sheets: zod.z.array(require_content_sheet.ContentSheetSchema),
942
250
  names: zod.z.array(ContentDefinedNameSchema).optional()
943
251
  }),
944
252
  zod.z.object({
945
253
  kind: zod.z.literal("drawing"),
946
254
  metadata: require_metadata.LayoutMetadataSchema,
947
255
  ...contentDocumentSharedFields,
948
- pages: zod.z.array(ContentDrawPageSchema)
256
+ pages: zod.z.array(require_content_drawing.ContentDrawPageSchema)
949
257
  }),
950
258
  zod.z.object({
951
259
  kind: zod.z.literal("formula"),
@@ -954,78 +262,24 @@ const ContentDocumentSchema = zod.z.discriminatedUnion("kind", [
954
262
  formula: ContentFormulaSchema
955
263
  })
956
264
  ]);
265
+ require_content_vocabulary.contentDocumentSchemaBox.value = ContentDocumentSchema;
957
266
  //#endregion
958
- exports.CONTENT_ANNOTATION_FIELDS = CONTENT_ANNOTATION_FIELDS;
959
- exports.ContentBitmapFillSchema = ContentBitmapFillSchema;
960
267
  exports.ContentBlockSchema = ContentBlockSchema;
961
- exports.ContentBorderSchema = ContentBorderSchema;
962
- exports.ContentCellBordersSchema = ContentCellBordersSchema;
963
- exports.ContentCellFillSchema = ContentCellFillSchema;
964
- exports.ContentCellPatternTypeSchema = ContentCellPatternTypeSchema;
965
- exports.ContentCellValueSchema = ContentCellValueSchema;
966
268
  exports.ContentConstructEndSchema = ContentConstructEndSchema;
967
269
  exports.ContentConstructStartSchema = ContentConstructStartSchema;
968
270
  exports.ContentDefinedNameSchema = ContentDefinedNameSchema;
969
271
  exports.ContentDocumentSchema = ContentDocumentSchema;
970
- exports.ContentDrawPageSchema = ContentDrawPageSchema;
971
- exports.ContentEmbeddedObjectBlockSchema = ContentEmbeddedObjectBlockSchema;
972
- exports.ContentEmbeddedObjectSchema = ContentEmbeddedObjectSchema;
973
- exports.ContentFillPatternSchema = ContentFillPatternSchema;
974
- exports.ContentFloatAlignSchema = ContentFloatAlignSchema;
975
- exports.ContentFloatAxisSchema = ContentFloatAxisSchema;
976
- exports.ContentFloatOriginSchema = ContentFloatOriginSchema;
977
- exports.ContentFloatPositionSchema = ContentFloatPositionSchema;
978
- exports.ContentFontSchema = ContentFontSchema;
979
272
  exports.ContentFormulaSchema = ContentFormulaSchema;
980
- exports.ContentGradientFillSchema = ContentGradientFillSchema;
981
- exports.ContentGradientStyleSchema = ContentGradientStyleSchema;
982
- exports.ContentHatchFillSchema = ContentHatchFillSchema;
983
- exports.ContentHatchStyleSchema = ContentHatchStyleSchema;
984
- exports.ContentImageBlockSchema = ContentImageBlockSchema;
985
- exports.ContentImageOriginalSchema = ContentImageOriginalSchema;
986
- exports.ContentInterpretationSchema = ContentInterpretationSchema;
987
273
  exports.ContentListMembershipSchema = ContentListMembershipSchema;
988
- exports.ContentOriginSchema = ContentOriginSchema;
989
274
  exports.ContentPageBreakSchema = ContentPageBreakSchema;
990
275
  exports.ContentPageFurnitureSchema = ContentPageFurnitureSchema;
991
276
  exports.ContentParagraphBordersSchema = ContentParagraphBordersSchema;
992
277
  exports.ContentParagraphSchema = ContentParagraphSchema;
993
- exports.ContentPathPointSchema = ContentPathPointSchema;
994
- exports.ContentPathSegmentSchema = ContentPathSegmentSchema;
995
- exports.ContentRunSchema = ContentRunSchema;
996
278
  exports.ContentSectionSchema = ContentSectionSchema;
997
- exports.ContentShapeSchema = ContentShapeSchema;
998
- exports.ContentSheetCellCommentSchema = ContentSheetCellCommentSchema;
999
- exports.ContentSheetCellSchema = ContentSheetCellSchema;
1000
- exports.ContentSheetColumnSchema = ContentSheetColumnSchema;
1001
- exports.ContentSheetConditionalFormatSchema = ContentSheetConditionalFormatSchema;
1002
- exports.ContentSheetConditionalFormatStyleSchema = ContentSheetConditionalFormatStyleSchema;
1003
- exports.ContentSheetConditionalFormatValueSchema = ContentSheetConditionalFormatValueSchema;
1004
- exports.ContentSheetDataValidationSchema = ContentSheetDataValidationSchema;
1005
- exports.ContentSheetDataValidationTypeSchema = ContentSheetDataValidationTypeSchema;
1006
- exports.ContentSheetImageSchema = ContentSheetImageSchema;
1007
- exports.ContentSheetPrintRangeSchema = ContentSheetPrintRangeSchema;
1008
- exports.ContentSheetPrintSettingsSchema = ContentSheetPrintSettingsSchema;
1009
- exports.ContentSheetRangeSchema = ContentSheetRangeSchema;
1010
- exports.ContentSheetRepeatRangeSchema = ContentSheetRepeatRangeSchema;
1011
- exports.ContentSheetRowSchema = ContentSheetRowSchema;
1012
- exports.ContentSheetSchema = ContentSheetSchema;
1013
- exports.ContentSlideSchema = ContentSlideSchema;
1014
- exports.ContentStrokeDashSchema = ContentStrokeDashSchema;
1015
- exports.ContentStrokeSchema = ContentStrokeSchema;
1016
- exports.ContentStrokeStyleSchema = ContentStrokeStyleSchema;
1017
- exports.ContentSubpathSchema = ContentSubpathSchema;
1018
279
  exports.ContentTableCellSchema = ContentTableCellSchema;
1019
280
  exports.ContentTableColumnSchema = ContentTableColumnSchema;
1020
281
  exports.ContentTableRowSchema = ContentTableRowSchema;
1021
282
  exports.ContentTableSchema = ContentTableSchema;
1022
- exports.ContentTranscriptSchema = ContentTranscriptSchema;
1023
- exports.ContentVectorSchema = ContentVectorSchema;
1024
- exports.DecimalStringSchema = DecimalStringSchema;
1025
- exports.IMAGE_FORMATS = IMAGE_FORMATS;
1026
- exports.RUN_FONT_PROPERTY_SHAPE = RUN_FONT_PROPERTY_SHAPE;
1027
- exports.RunConstructExtentSchema = RunConstructExtentSchema;
1028
- exports.SheetRuleOperatorSchema = SheetRuleOperatorSchema;
1029
283
  exports.clampHeadingLevel = clampHeadingLevel;
1030
284
  exports.contentDocumentSharedFields = contentDocumentSharedFields;
1031
285
  exports.findConstructMarkerImbalance = findConstructMarkerImbalance;
@@ -1034,5 +288,3 @@ exports.isContentBlock = isContentBlock;
1034
288
  exports.isContentConstructEnd = isContentConstructEnd;
1035
289
  exports.isContentConstructStart = isContentConstructStart;
1036
290
  exports.isRunConstructExtent = isRunConstructExtent;
1037
- exports.resolveCellFillColor = resolveCellFillColor;
1038
- exports.unrecognizedFillKind = unrecognizedFillKind;