document-content-model 7.11.1 → 7.11.3

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 (45) hide show
  1. package/dist/a1.cjs +1 -1
  2. package/dist/a1.js +1 -1
  3. package/dist/codec.d.cts +1 -1
  4. package/dist/codec.d.ts +1 -1
  5. package/dist/color.cjs +3 -5
  6. package/dist/color.js +3 -5
  7. package/dist/{construct-C9cYkjnd.d.cts → construct-GVdTKrE7.d.cts} +3 -3
  8. package/dist/{construct-C9cYkjnd.d.ts → construct-GVdTKrE7.d.ts} +3 -3
  9. package/dist/construct.d.cts +1 -1
  10. package/dist/construct.d.ts +1 -1
  11. package/dist/{content-DJYlkhmk.d.ts → content-C5CsxSt1.d.ts} +13 -13
  12. package/dist/{content-oJmrSCr6.d.cts → content-DWSflkUJ.d.cts} +13 -13
  13. package/dist/content-json-schema-defs.cjs +1 -3
  14. package/dist/content-json-schema-defs.js +1 -3
  15. package/dist/content.cjs +1 -1
  16. package/dist/content.d.cts +1 -1
  17. package/dist/content.d.ts +1 -1
  18. package/dist/content.js +1 -1
  19. package/dist/decompose.d.cts +2 -2
  20. package/dist/decompose.d.ts +2 -2
  21. package/dist/definitions.d.cts +1 -1
  22. package/dist/definitions.d.ts +1 -1
  23. package/dist/factor-styles.cjs +17 -61
  24. package/dist/factor-styles.d.cts +1 -1
  25. package/dist/factor-styles.d.ts +1 -1
  26. package/dist/factor-styles.js +17 -61
  27. package/dist/flatten.d.cts +1 -1
  28. package/dist/flatten.d.ts +1 -1
  29. package/dist/index.d.cts +3 -3
  30. package/dist/index.d.ts +3 -3
  31. package/dist/{package-node-DkOfPGtb.d.ts → package-node-5OqgGCtu.d.ts} +6 -6
  32. package/dist/{package-node-BaeLuQNH.d.cts → package-node-DK-b0h6V.d.cts} +6 -6
  33. package/dist/package-node.cjs +0 -1
  34. package/dist/package-node.d.cts +1 -1
  35. package/dist/package-node.d.ts +1 -1
  36. package/dist/package-node.js +0 -1
  37. package/dist/package.d.cts +1 -1
  38. package/dist/package.d.ts +1 -1
  39. package/dist/schema-io.cjs +2 -2
  40. package/dist/schema-io.d.cts +1 -1
  41. package/dist/schema-io.d.ts +1 -1
  42. package/dist/schema-io.js +2 -2
  43. package/package.json +1 -1
  44. package/schemas/content-document.schema.json +16 -16
  45. package/schemas/document-tree.schema.json +3 -3
package/dist/a1.cjs CHANGED
@@ -43,7 +43,7 @@ function cellReference(row, column) {
43
43
  function parseRangeReference(ref) {
44
44
  const separatorIndex = ref.indexOf(":");
45
45
  const startRaw = separatorIndex === -1 ? ref : ref.slice(0, separatorIndex);
46
- const endRaw = separatorIndex === -1 ? ref : ref.slice(separatorIndex + 1);
46
+ const endRaw = ref.slice(separatorIndex + 1);
47
47
  const start = parseCellReference(startRaw);
48
48
  const end = parseCellReference(endRaw);
49
49
  if (start === void 0 || end === void 0) return;
package/dist/a1.js CHANGED
@@ -42,7 +42,7 @@ function cellReference(row, column) {
42
42
  function parseRangeReference(ref) {
43
43
  const separatorIndex = ref.indexOf(":");
44
44
  const startRaw = separatorIndex === -1 ? ref : ref.slice(0, separatorIndex);
45
- const endRaw = separatorIndex === -1 ? ref : ref.slice(separatorIndex + 1);
45
+ const endRaw = ref.slice(separatorIndex + 1);
46
46
  const start = parseCellReference(startRaw);
47
47
  const end = parseCellReference(endRaw);
48
48
  if (start === void 0 || end === void 0) return;
package/dist/codec.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ContentDocument } from "./content-oJmrSCr6.cjs";
1
+ import { C as ContentDocument } from "./content-DWSflkUJ.cjs";
2
2
  //#region src/codec.d.ts
3
3
  interface ContentCodec<TOptions = unknown> {
4
4
  read(bytes: Uint8Array, options?: TOptions): ContentDocument;
package/dist/codec.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ContentDocument } from "./content-DJYlkhmk.js";
1
+ import { C as ContentDocument } from "./content-C5CsxSt1.js";
2
2
  //#region src/codec.d.ts
3
3
  interface ContentCodec<TOptions = unknown> {
4
4
  read(bytes: Uint8Array, options?: TOptions): ContentDocument;
package/dist/color.cjs CHANGED
@@ -11,13 +11,11 @@ const COLOR_BLACK = {
11
11
  g: 0,
12
12
  b: 0
13
13
  };
14
- const HEX_COLOR_PATTERN = /^#?([0-9a-fA-F]{6})$/;
14
+ const HEX_DIGITS_PATTERN = /^[0-9a-fA-F]{6}$/;
15
15
  const HEX_BYTE_MAX = 255;
16
16
  function rgbHexToColor(hex) {
17
- const match = HEX_COLOR_PATTERN.exec(hex);
18
- if (match === null) throw new Error(`not a 6-digit hex colour: ${hex}`);
19
- const digits = match[1];
20
- if (digits === void 0) throw new Error(`not a 6-digit hex colour: ${hex}`);
17
+ const digits = hex.startsWith("#") ? hex.slice(1) : hex;
18
+ if (!HEX_DIGITS_PATTERN.test(digits)) throw new Error(`not a 6-digit hex colour: ${hex}`);
21
19
  const r = Number.parseInt(digits.slice(0, 2), 16);
22
20
  const g = Number.parseInt(digits.slice(2, 4), 16);
23
21
  const b = Number.parseInt(digits.slice(4, 6), 16);
package/dist/color.js CHANGED
@@ -10,13 +10,11 @@ const COLOR_BLACK = {
10
10
  g: 0,
11
11
  b: 0
12
12
  };
13
- const HEX_COLOR_PATTERN = /^#?([0-9a-fA-F]{6})$/;
13
+ const HEX_DIGITS_PATTERN = /^[0-9a-fA-F]{6}$/;
14
14
  const HEX_BYTE_MAX = 255;
15
15
  function rgbHexToColor(hex) {
16
- const match = HEX_COLOR_PATTERN.exec(hex);
17
- if (match === null) throw new Error(`not a 6-digit hex colour: ${hex}`);
18
- const digits = match[1];
19
- if (digits === void 0) throw new Error(`not a 6-digit hex colour: ${hex}`);
16
+ const digits = hex.startsWith("#") ? hex.slice(1) : hex;
17
+ if (!HEX_DIGITS_PATTERN.test(digits)) throw new Error(`not a 6-digit hex colour: ${hex}`);
20
18
  const r = Number.parseInt(digits.slice(0, 2), 16);
21
19
  const g = Number.parseInt(digits.slice(2, 4), 16);
22
20
  const b = Number.parseInt(digits.slice(4, 6), 16);
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
2
  //#region src/construct.d.ts
3
3
  declare const ContentControlTypeSchema: z.ZodEnum<{
4
+ date: "date";
4
5
  richText: "richText";
5
6
  plainText: "plainText";
6
7
  checkbox: "checkbox";
7
8
  dropDown: "dropDown";
8
9
  comboBox: "comboBox";
9
- date: "date";
10
10
  picture: "picture";
11
11
  repeatingSection: "repeatingSection";
12
12
  button: "button";
@@ -23,12 +23,12 @@ type ContentControlLock = z.infer<typeof ContentControlLockSchema>;
23
23
  declare const ContentControlDescriptorSchema: z.ZodObject<{
24
24
  kind: z.ZodLiteral<"contentControl">;
25
25
  controlType: z.ZodEnum<{
26
+ date: "date";
26
27
  richText: "richText";
27
28
  plainText: "plainText";
28
29
  checkbox: "checkbox";
29
30
  dropDown: "dropDown";
30
31
  comboBox: "comboBox";
31
- date: "date";
32
32
  picture: "picture";
33
33
  repeatingSection: "repeatingSection";
34
34
  button: "button";
@@ -252,12 +252,12 @@ type DivisionDescriptor = z.infer<typeof DivisionDescriptorSchema>;
252
252
  declare const ConstructDescriptorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
253
253
  kind: z.ZodLiteral<"contentControl">;
254
254
  controlType: z.ZodEnum<{
255
+ date: "date";
255
256
  richText: "richText";
256
257
  plainText: "plainText";
257
258
  checkbox: "checkbox";
258
259
  dropDown: "dropDown";
259
260
  comboBox: "comboBox";
260
- date: "date";
261
261
  picture: "picture";
262
262
  repeatingSection: "repeatingSection";
263
263
  button: "button";
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
2
  //#region src/construct.d.ts
3
3
  declare const ContentControlTypeSchema: z.ZodEnum<{
4
+ date: "date";
4
5
  richText: "richText";
5
6
  plainText: "plainText";
6
7
  checkbox: "checkbox";
7
8
  dropDown: "dropDown";
8
9
  comboBox: "comboBox";
9
- date: "date";
10
10
  picture: "picture";
11
11
  repeatingSection: "repeatingSection";
12
12
  button: "button";
@@ -23,12 +23,12 @@ type ContentControlLock = z.infer<typeof ContentControlLockSchema>;
23
23
  declare const ContentControlDescriptorSchema: z.ZodObject<{
24
24
  kind: z.ZodLiteral<"contentControl">;
25
25
  controlType: z.ZodEnum<{
26
+ date: "date";
26
27
  richText: "richText";
27
28
  plainText: "plainText";
28
29
  checkbox: "checkbox";
29
30
  dropDown: "dropDown";
30
31
  comboBox: "comboBox";
31
- date: "date";
32
32
  picture: "picture";
33
33
  repeatingSection: "repeatingSection";
34
34
  button: "button";
@@ -252,12 +252,12 @@ type DivisionDescriptor = z.infer<typeof DivisionDescriptorSchema>;
252
252
  declare const ConstructDescriptorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
253
253
  kind: z.ZodLiteral<"contentControl">;
254
254
  controlType: z.ZodEnum<{
255
+ date: "date";
255
256
  richText: "richText";
256
257
  plainText: "plainText";
257
258
  checkbox: "checkbox";
258
259
  dropDown: "dropDown";
259
260
  comboBox: "comboBox";
260
- date: "date";
261
261
  picture: "picture";
262
262
  repeatingSection: "repeatingSection";
263
263
  button: "button";
@@ -1,2 +1,2 @@
1
- import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-C9cYkjnd.cjs";
1
+ import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-GVdTKrE7.cjs";
2
2
  export { AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, ConstructDescriptor, ConstructDescriptorSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, FieldDescriptor, FieldDescriptorSchema, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema };
@@ -1,2 +1,2 @@
1
- import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-C9cYkjnd.js";
1
+ import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-GVdTKrE7.js";
2
2
  export { AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, ConstructDescriptor, ConstructDescriptorSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, FieldDescriptor, FieldDescriptorSchema, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema };
@@ -205,12 +205,12 @@ declare const RunConstructExtentSchema: z.ZodObject<{
205
205
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
206
206
  kind: z.ZodLiteral<"contentControl">;
207
207
  controlType: z.ZodEnum<{
208
+ date: "date";
208
209
  richText: "richText";
209
210
  plainText: "plainText";
210
211
  checkbox: "checkbox";
211
212
  dropDown: "dropDown";
212
213
  comboBox: "comboBox";
213
- date: "date";
214
214
  picture: "picture";
215
215
  repeatingSection: "repeatingSection";
216
216
  button: "button";
@@ -588,12 +588,12 @@ declare const ContentParagraphSchema: z.ZodObject<{
588
588
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
589
589
  kind: z.ZodLiteral<"contentControl">;
590
590
  controlType: z.ZodEnum<{
591
+ date: "date";
591
592
  richText: "richText";
592
593
  plainText: "plainText";
593
594
  checkbox: "checkbox";
594
595
  dropDown: "dropDown";
595
596
  comboBox: "comboBox";
596
- date: "date";
597
597
  picture: "picture";
598
598
  repeatingSection: "repeatingSection";
599
599
  button: "button";
@@ -1305,12 +1305,12 @@ declare const ContentConstructStartSchema: z.ZodObject<{
1305
1305
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1306
1306
  kind: z.ZodLiteral<"contentControl">;
1307
1307
  controlType: z.ZodEnum<{
1308
+ date: "date";
1308
1309
  richText: "richText";
1309
1310
  plainText: "plainText";
1310
1311
  checkbox: "checkbox";
1311
1312
  dropDown: "dropDown";
1312
1313
  comboBox: "comboBox";
1313
- date: "date";
1314
1314
  picture: "picture";
1315
1315
  repeatingSection: "repeatingSection";
1316
1316
  button: "button";
@@ -2570,10 +2570,10 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
2570
2570
  endColumn: z.ZodNumber;
2571
2571
  }, z.core.$strip>>;
2572
2572
  type: z.ZodEnum<{
2573
- date: "date";
2574
- custom: "custom";
2575
2573
  decimal: "decimal";
2576
2574
  list: "list";
2575
+ date: "date";
2576
+ custom: "custom";
2577
2577
  time: "time";
2578
2578
  whole: "whole";
2579
2579
  textLength: "textLength";
@@ -5959,10 +5959,10 @@ declare const SheetRuleOperatorSchema: z.ZodEnum<{
5959
5959
  }>;
5960
5960
  type SheetRuleOperator = z.infer<typeof SheetRuleOperatorSchema>;
5961
5961
  declare const ContentSheetDataValidationTypeSchema: z.ZodEnum<{
5962
- date: "date";
5963
- custom: "custom";
5964
5962
  decimal: "decimal";
5965
5963
  list: "list";
5964
+ date: "date";
5965
+ custom: "custom";
5966
5966
  time: "time";
5967
5967
  whole: "whole";
5968
5968
  textLength: "textLength";
@@ -5976,10 +5976,10 @@ declare const ContentSheetDataValidationSchema: z.ZodObject<{
5976
5976
  endColumn: z.ZodNumber;
5977
5977
  }, z.core.$strip>>;
5978
5978
  type: z.ZodEnum<{
5979
- date: "date";
5980
- custom: "custom";
5981
5979
  decimal: "decimal";
5982
5980
  list: "list";
5981
+ date: "date";
5982
+ custom: "custom";
5983
5983
  time: "time";
5984
5984
  whole: "whole";
5985
5985
  textLength: "textLength";
@@ -7446,10 +7446,10 @@ declare const ContentSheetSchema: z.ZodObject<{
7446
7446
  endColumn: z.ZodNumber;
7447
7447
  }, z.core.$strip>>;
7448
7448
  type: z.ZodEnum<{
7449
- date: "date";
7450
- custom: "custom";
7451
7449
  decimal: "decimal";
7452
7450
  list: "list";
7451
+ date: "date";
7452
+ custom: "custom";
7453
7453
  time: "time";
7454
7454
  whole: "whole";
7455
7455
  textLength: "textLength";
@@ -10574,10 +10574,10 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
10574
10574
  endColumn: z.ZodNumber;
10575
10575
  }, z.core.$strip>>;
10576
10576
  type: z.ZodEnum<{
10577
- date: "date";
10578
- custom: "custom";
10579
10577
  decimal: "decimal";
10580
10578
  list: "list";
10579
+ date: "date";
10580
+ custom: "custom";
10581
10581
  time: "time";
10582
10582
  whole: "whole";
10583
10583
  textLength: "textLength";
@@ -205,12 +205,12 @@ declare const RunConstructExtentSchema: z.ZodObject<{
205
205
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
206
206
  kind: z.ZodLiteral<"contentControl">;
207
207
  controlType: z.ZodEnum<{
208
+ date: "date";
208
209
  richText: "richText";
209
210
  plainText: "plainText";
210
211
  checkbox: "checkbox";
211
212
  dropDown: "dropDown";
212
213
  comboBox: "comboBox";
213
- date: "date";
214
214
  picture: "picture";
215
215
  repeatingSection: "repeatingSection";
216
216
  button: "button";
@@ -588,12 +588,12 @@ declare const ContentParagraphSchema: z.ZodObject<{
588
588
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
589
589
  kind: z.ZodLiteral<"contentControl">;
590
590
  controlType: z.ZodEnum<{
591
+ date: "date";
591
592
  richText: "richText";
592
593
  plainText: "plainText";
593
594
  checkbox: "checkbox";
594
595
  dropDown: "dropDown";
595
596
  comboBox: "comboBox";
596
- date: "date";
597
597
  picture: "picture";
598
598
  repeatingSection: "repeatingSection";
599
599
  button: "button";
@@ -1305,12 +1305,12 @@ declare const ContentConstructStartSchema: z.ZodObject<{
1305
1305
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1306
1306
  kind: z.ZodLiteral<"contentControl">;
1307
1307
  controlType: z.ZodEnum<{
1308
+ date: "date";
1308
1309
  richText: "richText";
1309
1310
  plainText: "plainText";
1310
1311
  checkbox: "checkbox";
1311
1312
  dropDown: "dropDown";
1312
1313
  comboBox: "comboBox";
1313
- date: "date";
1314
1314
  picture: "picture";
1315
1315
  repeatingSection: "repeatingSection";
1316
1316
  button: "button";
@@ -2570,10 +2570,10 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
2570
2570
  endColumn: z.ZodNumber;
2571
2571
  }, z.core.$strip>>;
2572
2572
  type: z.ZodEnum<{
2573
- date: "date";
2574
- custom: "custom";
2575
2573
  decimal: "decimal";
2576
2574
  list: "list";
2575
+ date: "date";
2576
+ custom: "custom";
2577
2577
  time: "time";
2578
2578
  whole: "whole";
2579
2579
  textLength: "textLength";
@@ -5959,10 +5959,10 @@ declare const SheetRuleOperatorSchema: z.ZodEnum<{
5959
5959
  }>;
5960
5960
  type SheetRuleOperator = z.infer<typeof SheetRuleOperatorSchema>;
5961
5961
  declare const ContentSheetDataValidationTypeSchema: z.ZodEnum<{
5962
- date: "date";
5963
- custom: "custom";
5964
5962
  decimal: "decimal";
5965
5963
  list: "list";
5964
+ date: "date";
5965
+ custom: "custom";
5966
5966
  time: "time";
5967
5967
  whole: "whole";
5968
5968
  textLength: "textLength";
@@ -5976,10 +5976,10 @@ declare const ContentSheetDataValidationSchema: z.ZodObject<{
5976
5976
  endColumn: z.ZodNumber;
5977
5977
  }, z.core.$strip>>;
5978
5978
  type: z.ZodEnum<{
5979
- date: "date";
5980
- custom: "custom";
5981
5979
  decimal: "decimal";
5982
5980
  list: "list";
5981
+ date: "date";
5982
+ custom: "custom";
5983
5983
  time: "time";
5984
5984
  whole: "whole";
5985
5985
  textLength: "textLength";
@@ -7446,10 +7446,10 @@ declare const ContentSheetSchema: z.ZodObject<{
7446
7446
  endColumn: z.ZodNumber;
7447
7447
  }, z.core.$strip>>;
7448
7448
  type: z.ZodEnum<{
7449
- date: "date";
7450
- custom: "custom";
7451
7449
  decimal: "decimal";
7452
7450
  list: "list";
7451
+ date: "date";
7452
+ custom: "custom";
7453
7453
  time: "time";
7454
7454
  whole: "whole";
7455
7455
  textLength: "textLength";
@@ -10574,10 +10574,10 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
10574
10574
  endColumn: z.ZodNumber;
10575
10575
  }, z.core.$strip>>;
10576
10576
  type: z.ZodEnum<{
10577
- date: "date";
10578
- custom: "custom";
10579
10577
  decimal: "decimal";
10580
10578
  list: "list";
10579
+ date: "date";
10580
+ custom: "custom";
10581
10581
  time: "time";
10582
10582
  whole: "whole";
10583
10583
  textLength: "textLength";
@@ -27,9 +27,7 @@ function getMathMlJsonSchemas() {
27
27
  return cachedMathMlJsonSchemas;
28
28
  }
29
29
  function mathMlDef(id) {
30
- const generated = getMathMlJsonSchemas()[id];
31
- if (generated === void 0) throw new Error(`z.toJSONSchema() produced no schema for registered id "${id}"`);
32
- const stripped = { ...generated };
30
+ const stripped = { ...getMathMlJsonSchemas()[id] };
33
31
  delete stripped.$schema;
34
32
  delete stripped.$id;
35
33
  return stripped;
@@ -26,9 +26,7 @@ function getMathMlJsonSchemas() {
26
26
  return cachedMathMlJsonSchemas;
27
27
  }
28
28
  function mathMlDef(id) {
29
- const generated = getMathMlJsonSchemas()[id];
30
- if (generated === void 0) throw new Error(`z.toJSONSchema() produced no schema for registered id "${id}"`);
31
- const stripped = { ...generated };
29
+ const stripped = { ...getMathMlJsonSchemas()[id] };
32
30
  delete stripped.$schema;
33
31
  delete stripped.$id;
34
32
  return stripped;
package/dist/content.cjs CHANGED
@@ -165,7 +165,7 @@ const IMAGE_FORMATS = [
165
165
  "gif"
166
166
  ];
167
167
  function isImageFormat(value) {
168
- return typeof value === "string" && IMAGE_FORMATS.includes(value);
168
+ return IMAGE_FORMATS.includes(value);
169
169
  }
170
170
  const ContentImageOriginalSchema = zod.z.object({
171
171
  filter: zod.z.enum(["jbig2", "jpeg2000"]),
@@ -1,2 +1,2 @@
1
- import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-oJmrSCr6.cjs";
1
+ import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-DWSflkUJ.cjs";
2
2
  export { CONTENT_ANNOTATION_FIELDS, ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
package/dist/content.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-DJYlkhmk.js";
1
+ import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-C5CsxSt1.js";
2
2
  export { CONTENT_ANNOTATION_FIELDS, ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
package/dist/content.js CHANGED
@@ -164,7 +164,7 @@ const IMAGE_FORMATS = [
164
164
  "gif"
165
165
  ];
166
166
  function isImageFormat(value) {
167
- return typeof value === "string" && IMAGE_FORMATS.includes(value);
167
+ return IMAGE_FORMATS.includes(value);
168
168
  }
169
169
  const ContentImageOriginalSchema = z.object({
170
170
  filter: z.enum(["jbig2", "jpeg2000"]),
@@ -1,5 +1,5 @@
1
- import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-oJmrSCr6.cjs";
2
- import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-BaeLuQNH.cjs";
1
+ import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-DWSflkUJ.cjs";
2
+ import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-DK-b0h6V.cjs";
3
3
  //#region src/decompose.d.ts
4
4
  declare function isHeadingParagraph(paragraph: ContentParagraph): paragraph is HeadingParagraph;
5
5
  declare function isListParagraph(paragraph: ContentParagraph): paragraph is ListParagraph;
@@ -1,5 +1,5 @@
1
- import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-DJYlkhmk.js";
2
- import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-DkOfPGtb.js";
1
+ import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-C5CsxSt1.js";
2
+ import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-5OqgGCtu.js";
3
3
  //#region src/decompose.d.ts
4
4
  declare function isHeadingParagraph(paragraph: ContentParagraph): paragraph is HeadingParagraph;
5
5
  declare function isListParagraph(paragraph: ContentParagraph): paragraph is ListParagraph;
@@ -1,4 +1,4 @@
1
- import { St as ContentRun, mt as ContentParagraph } from "./content-oJmrSCr6.cjs";
1
+ import { St as ContentRun, mt as ContentParagraph } from "./content-DWSflkUJ.cjs";
2
2
  import { z } from "zod";
3
3
  //#region src/definitions.d.ts
4
4
  declare const StyleParagraphPropertiesSchema: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { St as ContentRun, mt as ContentParagraph } from "./content-DJYlkhmk.js";
1
+ import { St as ContentRun, mt as ContentParagraph } from "./content-C5CsxSt1.js";
2
2
  import { z } from "zod";
3
3
  //#region src/definitions.d.ts
4
4
  declare const StyleParagraphPropertiesSchema: z.ZodObject<{