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