@json-to-office/shared-docx 0.16.0 → 0.17.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 (42) hide show
  1. package/dist/{chunk-NZKLNPBZ.js → chunk-3XWQYKTW.js} +6 -6
  2. package/dist/{chunk-H56RLQOF.js → chunk-B66TAIK6.js} +31 -19
  3. package/dist/chunk-B66TAIK6.js.map +1 -0
  4. package/dist/{chunk-PVQV2RS4.js → chunk-CVIUFVXH.js} +2 -2
  5. package/dist/{chunk-M6LVAHZB.js → chunk-G6C2WMTW.js} +2 -2
  6. package/dist/{chunk-CGMJ665Z.js → chunk-NRDLQSF3.js} +170 -126
  7. package/dist/chunk-NRDLQSF3.js.map +1 -0
  8. package/dist/{chunk-SMIG3LSE.js → chunk-TTT3L236.js} +2 -2
  9. package/dist/{chunk-P4CGTP5W.js → chunk-V5DHEETI.js} +55 -36
  10. package/dist/chunk-V5DHEETI.js.map +1 -0
  11. package/dist/{chunk-YZYUY2VH.js → chunk-WIWVYW2G.js} +67 -55
  12. package/dist/chunk-WIWVYW2G.js.map +1 -0
  13. package/dist/{chunk-5C7XT6LW.js → chunk-WZPPVJN6.js} +2 -2
  14. package/dist/{chunk-X2B5OVWA.js → chunk-XVCODWSU.js} +3 -3
  15. package/dist/{chunk-YRRBEJPB.js → chunk-Y5KKRSXX.js} +2 -2
  16. package/dist/{document-validator-CiaGiy1v.d.ts → document-validator-SsJ_brnh.d.ts} +12 -0
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +11 -11
  19. package/dist/schemas/api.js +5 -5
  20. package/dist/schemas/component-defaults.js +2 -2
  21. package/dist/schemas/component-registry.js +3 -3
  22. package/dist/schemas/components.js +4 -4
  23. package/dist/schemas/document.d.ts +1 -1
  24. package/dist/schemas/document.js +6 -6
  25. package/dist/schemas/export.js +4 -4
  26. package/dist/schemas/font.js +1 -1
  27. package/dist/schemas/generator.js +4 -4
  28. package/dist/schemas/theme.js +3 -3
  29. package/dist/validation/unified/index.d.ts +19 -4
  30. package/dist/validation/unified/index.js +7 -7
  31. package/package.json +1 -1
  32. package/dist/chunk-CGMJ665Z.js.map +0 -1
  33. package/dist/chunk-H56RLQOF.js.map +0 -1
  34. package/dist/chunk-P4CGTP5W.js.map +0 -1
  35. package/dist/chunk-YZYUY2VH.js.map +0 -1
  36. /package/dist/{chunk-NZKLNPBZ.js.map → chunk-3XWQYKTW.js.map} +0 -0
  37. /package/dist/{chunk-PVQV2RS4.js.map → chunk-CVIUFVXH.js.map} +0 -0
  38. /package/dist/{chunk-M6LVAHZB.js.map → chunk-G6C2WMTW.js.map} +0 -0
  39. /package/dist/{chunk-SMIG3LSE.js.map → chunk-TTT3L236.js.map} +0 -0
  40. /package/dist/{chunk-5C7XT6LW.js.map → chunk-WZPPVJN6.js.map} +0 -0
  41. /package/dist/{chunk-X2B5OVWA.js.map → chunk-XVCODWSU.js.map} +0 -0
  42. /package/dist/{chunk-YRRBEJPB.js.map → chunk-Y5KKRSXX.js.map} +0 -0
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  ThemeConfigSchema
3
- } from "./chunk-X2B5OVWA.js";
3
+ } from "./chunk-XVCODWSU.js";
4
4
  import {
5
5
  documentValidator,
6
6
  strictDocumentValidator,
7
7
  validateAgainstSchema,
8
8
  validateJson
9
- } from "./chunk-P4CGTP5W.js";
9
+ } from "./chunk-V5DHEETI.js";
10
10
  import {
11
11
  ComponentDefinitionSchema
12
- } from "./chunk-M6LVAHZB.js";
12
+ } from "./chunk-G6C2WMTW.js";
13
13
  import {
14
14
  CustomComponentDefinitionSchema
15
15
  } from "./chunk-7GGTZ4TA.js";
16
16
  import {
17
17
  ReportPropsSchema
18
- } from "./chunk-YZYUY2VH.js";
18
+ } from "./chunk-WIWVYW2G.js";
19
19
  import {
20
20
  ColumnsPropsSchema,
21
21
  HeadingPropsSchema,
@@ -25,7 +25,7 @@ import {
25
25
  SectionPropsSchema,
26
26
  StatisticPropsSchema,
27
27
  TablePropsSchema
28
- } from "./chunk-CGMJ665Z.js";
28
+ } from "./chunk-NRDLQSF3.js";
29
29
 
30
30
  // src/validation/unified/index.ts
31
31
  import {
@@ -416,4 +416,4 @@ export {
416
416
  createErrorConfig,
417
417
  formatErrorMessage
418
418
  };
419
- //# sourceMappingURL=chunk-NZKLNPBZ.js.map
419
+ //# sourceMappingURL=chunk-3XWQYKTW.js.map
@@ -24,28 +24,40 @@ var TextFormattingPropertiesSchema = Type.Object(
24
24
  italic: Type.Optional(Type.Boolean()),
25
25
  underline: Type.Optional(Type.Boolean()),
26
26
  lineSpacing: Type.Optional(
27
- Type.Object({
28
- type: Type.Union([
29
- Type.Literal("single"),
30
- Type.Literal("atLeast"),
31
- Type.Literal("exactly"),
32
- Type.Literal("double"),
33
- Type.Literal("multiple")
34
- ]),
35
- value: Type.Optional(Type.Number({ minimum: 0 }))
36
- })
27
+ Type.Object(
28
+ {
29
+ type: Type.Union([
30
+ Type.Literal("single"),
31
+ Type.Literal("atLeast"),
32
+ Type.Literal("exactly"),
33
+ Type.Literal("double"),
34
+ Type.Literal("multiple")
35
+ ]),
36
+ value: Type.Optional(Type.Number({ minimum: 0 }))
37
+ },
38
+ { additionalProperties: false }
39
+ )
37
40
  ),
38
41
  spacing: Type.Optional(
39
- Type.Object({
40
- before: Type.Optional(Type.Number({ minimum: 0 })),
41
- after: Type.Optional(Type.Number({ minimum: 0 }))
42
- })
42
+ Type.Object(
43
+ {
44
+ before: Type.Optional(Type.Number({ minimum: 0 })),
45
+ after: Type.Optional(Type.Number({ minimum: 0 }))
46
+ },
47
+ { additionalProperties: false }
48
+ )
43
49
  ),
44
50
  characterSpacing: Type.Optional(
45
- Type.Object({
46
- type: Type.Union([Type.Literal("condensed"), Type.Literal("expanded")]),
47
- value: Type.Number()
48
- })
51
+ Type.Object(
52
+ {
53
+ type: Type.Union([
54
+ Type.Literal("condensed"),
55
+ Type.Literal("expanded")
56
+ ]),
57
+ value: Type.Number()
58
+ },
59
+ { additionalProperties: false }
60
+ )
49
61
  )
50
62
  },
51
63
  { additionalProperties: false }
@@ -67,4 +79,4 @@ export {
67
79
  TextFormattingPropertiesSchema,
68
80
  FontDefinitionSchema
69
81
  };
70
- //# sourceMappingURL=chunk-H56RLQOF.js.map
82
+ //# sourceMappingURL=chunk-B66TAIK6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/schemas/font.ts"],"sourcesContent":["/**\n * Font-related Schemas (shared)\n * Extracted to avoid circular dependencies between theme and module schemas.\n */\n\nimport { Type } from '@sinclair/typebox';\nimport { FontFamilyNameSchema } from '@json-to-office/shared';\n\n// ----------------------------------------------------------------------------\n// Shared Color Schema\n// ----------------------------------------------------------------------------\n\n/** Hex color with # prefix (e.g. \"#000000\") or a theme color name (e.g. \"primary\") */\nexport const HexColorSchema = Type.String({\n pattern: '^(#[0-9A-Fa-f]{6}|[a-zA-Z][a-zA-Z0-9]*)$',\n description: 'Hex color with # prefix (e.g. \"#000000\") or theme color name',\n});\n\n/** Like HexColorSchema but also accepts \"transparent\" (used for backgroundColor) */\nexport const HexColorOrTransparentSchema = Type.String({\n pattern: '^(transparent|#[0-9A-Fa-f]{6}|[a-zA-Z][a-zA-Z0-9]*)$',\n description: 'Hex color with # prefix, theme color name, or \"transparent\"',\n});\n\n// ----------------------------------------------------------------------------\n// Shared Text Formatting Properties\n// ----------------------------------------------------------------------------\n\n/**\n * Shared schema for text formatting properties.\n * Used as base for both font definitions and style definitions.\n */\nexport const TextFormattingPropertiesSchema = Type.Object(\n {\n size: Type.Optional(Type.Number({ minimum: 8, maximum: 72 })),\n color: Type.Optional(HexColorSchema),\n bold: Type.Optional(Type.Boolean()),\n fontWeight: Type.Optional(\n Type.Integer({\n minimum: 100,\n maximum: 900,\n description:\n 'Per-run weight (100–900). Any integer accepted; renderer picks the closest embedded variant via CSS font-matching. `bold: true` is shorthand for `fontWeight: 700`; if both are set, `fontWeight` wins.',\n })\n ),\n italic: Type.Optional(Type.Boolean()),\n underline: Type.Optional(Type.Boolean()),\n lineSpacing: Type.Optional(\n Type.Object(\n {\n type: Type.Union([\n Type.Literal('single'),\n Type.Literal('atLeast'),\n Type.Literal('exactly'),\n Type.Literal('double'),\n Type.Literal('multiple'),\n ]),\n value: Type.Optional(Type.Number({ minimum: 0 })),\n },\n { additionalProperties: false }\n )\n ),\n spacing: Type.Optional(\n Type.Object(\n {\n before: Type.Optional(Type.Number({ minimum: 0 })),\n after: Type.Optional(Type.Number({ minimum: 0 })),\n },\n { additionalProperties: false }\n )\n ),\n characterSpacing: Type.Optional(\n Type.Object(\n {\n type: Type.Union([\n Type.Literal('condensed'),\n Type.Literal('expanded'),\n ]),\n value: Type.Number(),\n },\n { additionalProperties: false }\n )\n ),\n },\n { additionalProperties: false }\n);\n\n// ----------------------------------------------------------------------------\n// Font Definition Schema\n// ----------------------------------------------------------------------------\n\n/**\n * Font definition schema with full text formatting properties.\n * All properties except 'family' are optional.\n */\nexport const FontDefinitionSchema = Type.Object(\n {\n family: FontFamilyNameSchema,\n ...TextFormattingPropertiesSchema.properties,\n },\n {\n description:\n 'Font definition with family and optional formatting properties',\n additionalProperties: false,\n }\n);\n"],"mappings":";AAKA,SAAS,YAAY;AACrB,SAAS,4BAA4B;AAO9B,IAAM,iBAAiB,KAAK,OAAO;AAAA,EACxC,SAAS;AAAA,EACT,aAAa;AACf,CAAC;AAGM,IAAM,8BAA8B,KAAK,OAAO;AAAA,EACrD,SAAS;AAAA,EACT,aAAa;AACf,CAAC;AAUM,IAAM,iCAAiC,KAAK;AAAA,EACjD;AAAA,IACE,MAAM,KAAK,SAAS,KAAK,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,CAAC,CAAC;AAAA,IAC5D,OAAO,KAAK,SAAS,cAAc;AAAA,IACnC,MAAM,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,IAClC,YAAY,KAAK;AAAA,MACf,KAAK,QAAQ;AAAA,QACX,SAAS;AAAA,QACT,SAAS;AAAA,QACT,aACE;AAAA,MACJ,CAAC;AAAA,IACH;AAAA,IACA,QAAQ,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,IACpC,WAAW,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,IACvC,aAAa,KAAK;AAAA,MAChB,KAAK;AAAA,QACH;AAAA,UACE,MAAM,KAAK,MAAM;AAAA,YACf,KAAK,QAAQ,QAAQ;AAAA,YACrB,KAAK,QAAQ,SAAS;AAAA,YACtB,KAAK,QAAQ,SAAS;AAAA,YACtB,KAAK,QAAQ,QAAQ;AAAA,YACrB,KAAK,QAAQ,UAAU;AAAA,UACzB,CAAC;AAAA,UACD,OAAO,KAAK,SAAS,KAAK,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;AAAA,QAClD;AAAA,QACA,EAAE,sBAAsB,MAAM;AAAA,MAChC;AAAA,IACF;AAAA,IACA,SAAS,KAAK;AAAA,MACZ,KAAK;AAAA,QACH;AAAA,UACE,QAAQ,KAAK,SAAS,KAAK,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;AAAA,UACjD,OAAO,KAAK,SAAS,KAAK,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;AAAA,QAClD;AAAA,QACA,EAAE,sBAAsB,MAAM;AAAA,MAChC;AAAA,IACF;AAAA,IACA,kBAAkB,KAAK;AAAA,MACrB,KAAK;AAAA,QACH;AAAA,UACE,MAAM,KAAK,MAAM;AAAA,YACf,KAAK,QAAQ,WAAW;AAAA,YACxB,KAAK,QAAQ,UAAU;AAAA,UACzB,CAAC;AAAA,UACD,OAAO,KAAK,OAAO;AAAA,QACrB;AAAA,QACA,EAAE,sBAAsB,MAAM;AAAA,MAChC;AAAA,IACF;AAAA,EACF;AAAA,EACA,EAAE,sBAAsB,MAAM;AAChC;AAUO,IAAM,uBAAuB,KAAK;AAAA,EACvC;AAAA,IACE,QAAQ;AAAA,IACR,GAAG,+BAA+B;AAAA,EACpC;AAAA,EACA;AAAA,IACE,aACE;AAAA,IACF,sBAAsB;AAAA,EACxB;AACF;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ComponentDefinitionSchema
3
- } from "./chunk-M6LVAHZB.js";
3
+ } from "./chunk-G6C2WMTW.js";
4
4
 
5
5
  // src/schemas/api.ts
6
6
  import { Type } from "@sinclair/typebox";
@@ -94,4 +94,4 @@ export {
94
94
  GenerateDocumentResponseSchema,
95
95
  ValidateDocumentResponseSchema
96
96
  };
97
- //# sourceMappingURL=chunk-PVQV2RS4.js.map
97
+ //# sourceMappingURL=chunk-CVIUFVXH.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createAllComponentSchemas,
3
3
  createAllComponentSchemasNarrowed
4
- } from "./chunk-YZYUY2VH.js";
4
+ } from "./chunk-WIWVYW2G.js";
5
5
 
6
6
  // src/schemas/components.ts
7
7
  import { Type } from "@sinclair/typebox";
@@ -31,4 +31,4 @@ export {
31
31
  StandardComponentDefinitionSchema,
32
32
  ComponentDefinitionSchema
33
33
  };
34
- //# sourceMappingURL=chunk-M6LVAHZB.js.map
34
+ //# sourceMappingURL=chunk-G6C2WMTW.js.map
@@ -2,7 +2,7 @@ import {
2
2
  FontDefinitionSchema,
3
3
  HexColorOrTransparentSchema,
4
4
  HexColorSchema
5
- } from "./chunk-H56RLQOF.js";
5
+ } from "./chunk-B66TAIK6.js";
6
6
 
7
7
  // src/schemas/component-defaults.ts
8
8
  import { Type as Type11 } from "@sinclair/typebox";
@@ -89,7 +89,7 @@ var MarginsSchema = Type.Object(
89
89
  left: Type.Optional(Type.Number({ minimum: 0 })),
90
90
  right: Type.Optional(Type.Number({ minimum: 0 }))
91
91
  },
92
- { description: "Margin configuration" }
92
+ { description: "Margin configuration", additionalProperties: false }
93
93
  );
94
94
  var BorderSchema = Type.Object(
95
95
  {
@@ -105,7 +105,7 @@ var BorderSchema = Type.Object(
105
105
  width: Type.Optional(Type.Number({ minimum: 0 })),
106
106
  color: Type.Optional(HexColorSchema)
107
107
  },
108
- { description: "Border configuration" }
108
+ { description: "Border configuration", additionalProperties: false }
109
109
  );
110
110
  var LineSpacingSchema = Type.Object(
111
111
  {
@@ -118,14 +118,14 @@ var LineSpacingSchema = Type.Object(
118
118
  ]),
119
119
  value: Type.Optional(Type.Number({ minimum: 0 }))
120
120
  },
121
- { description: "Line spacing configuration" }
121
+ { description: "Line spacing configuration", additionalProperties: false }
122
122
  );
123
123
  var IndentSchema = Type.Object(
124
124
  {
125
125
  left: Type.Optional(Type.Number({ minimum: 0 })),
126
126
  hanging: Type.Optional(Type.Number({ minimum: 0 }))
127
127
  },
128
- { description: "Indentation configuration" }
128
+ { description: "Indentation configuration", additionalProperties: false }
129
129
  );
130
130
  var HorizontalPositionRelativeFromSchema = Type.Union(
131
131
  [
@@ -224,7 +224,8 @@ var FloatingPropertiesSchema = Type.Object(
224
224
  )
225
225
  },
226
226
  {
227
- description: "Horizontal positioning (use either align or offset, not both)"
227
+ description: "Horizontal positioning (use either align or offset, not both)",
228
+ additionalProperties: false
228
229
  }
229
230
  )
230
231
  ),
@@ -246,7 +247,8 @@ var FloatingPropertiesSchema = Type.Object(
246
247
  )
247
248
  },
248
249
  {
249
- description: "Vertical positioning (use either align or offset, not both)"
250
+ description: "Vertical positioning (use either align or offset, not both)",
251
+ additionalProperties: false
250
252
  }
251
253
  )
252
254
  ),
@@ -296,13 +298,15 @@ var FloatingPropertiesSchema = Type.Object(
296
298
  )
297
299
  },
298
300
  {
299
- description: "Distance from text margins"
301
+ description: "Distance from text margins",
302
+ additionalProperties: false
300
303
  }
301
304
  )
302
305
  )
303
306
  },
304
307
  {
305
- description: "Text wrapping configuration"
308
+ description: "Text wrapping configuration",
309
+ additionalProperties: false
306
310
  }
307
311
  )
308
312
  ),
@@ -344,7 +348,8 @@ var FloatingPropertiesSchema = Type.Object(
344
348
  )
345
349
  },
346
350
  {
347
- description: "Floating element properties"
351
+ description: "Floating element properties",
352
+ additionalProperties: false
348
353
  }
349
354
  );
350
355
  var NumberingSchema = Type.Object(
@@ -361,7 +366,10 @@ var NumberingSchema = Type.Object(
361
366
  ),
362
367
  separator: Type.Optional(Type.String())
363
368
  },
364
- { description: "Numbering configuration for lists" }
369
+ {
370
+ description: "Numbering configuration for lists",
371
+ additionalProperties: false
372
+ }
365
373
  );
366
374
  var BaseComponentFields = {};
367
375
  var BaseComponentPropsSchema = Type.Object(BaseComponentFields, {
@@ -525,7 +533,8 @@ var FloatingFramePropertiesSchema = Type4.Object(
525
533
  )
526
534
  },
527
535
  {
528
- description: "Horizontal positioning (use either align or offset, not both)"
536
+ description: "Horizontal positioning (use either align or offset, not both)",
537
+ additionalProperties: false
529
538
  }
530
539
  )
531
540
  ),
@@ -547,7 +556,8 @@ var FloatingFramePropertiesSchema = Type4.Object(
547
556
  )
548
557
  },
549
558
  {
550
- description: "Vertical positioning (use either align or offset, not both)"
559
+ description: "Vertical positioning (use either align or offset, not both)",
560
+ additionalProperties: false
551
561
  }
552
562
  )
553
563
  ),
@@ -557,7 +567,8 @@ var FloatingFramePropertiesSchema = Type4.Object(
557
567
  type: FrameWrapTypeSchema
558
568
  },
559
569
  {
560
- description: "Text wrapping configuration"
570
+ description: "Text wrapping configuration",
571
+ additionalProperties: false
561
572
  }
562
573
  )
563
574
  ),
@@ -580,7 +591,8 @@ var FloatingFramePropertiesSchema = Type4.Object(
580
591
  )
581
592
  },
582
593
  {
583
- description: "Floating text frame properties"
594
+ description: "Floating text frame properties",
595
+ additionalProperties: false
584
596
  }
585
597
  );
586
598
  var AlignmentSchema2 = Type4.Union(
@@ -807,58 +819,67 @@ var VerticalAlignmentSchema = Type7.Union(
807
819
  [Type7.Literal("top"), Type7.Literal("middle"), Type7.Literal("bottom")],
808
820
  { description: "Vertical cell alignment" }
809
821
  );
810
- var FontConfigSchema = Type7.Object({
811
- family: Type7.Optional(Type7.String({ description: "Font family name" })),
812
- size: Type7.Optional(
813
- Type7.Number({ minimum: 0, description: "Font size in points" })
814
- ),
815
- bold: Type7.Optional(Type7.Boolean({ description: "Bold text" })),
816
- fontWeight: Type7.Optional(
817
- Type7.Integer({
818
- minimum: 100,
819
- maximum: 900,
820
- description: "Per-cell weight (100\u2013900). Overrides `bold` when set."
821
- })
822
- ),
823
- italic: Type7.Optional(Type7.Boolean({ description: "Italic text" })),
824
- underline: Type7.Optional(Type7.Boolean({ description: "Underlined text" }))
825
- });
822
+ var FontConfigSchema = Type7.Object(
823
+ {
824
+ family: Type7.Optional(Type7.String({ description: "Font family name" })),
825
+ size: Type7.Optional(
826
+ Type7.Number({ minimum: 0, description: "Font size in points" })
827
+ ),
828
+ bold: Type7.Optional(Type7.Boolean({ description: "Bold text" })),
829
+ fontWeight: Type7.Optional(
830
+ Type7.Integer({
831
+ minimum: 100,
832
+ maximum: 900,
833
+ description: "Per-cell weight (100\u2013900). Overrides `bold` when set."
834
+ })
835
+ ),
836
+ italic: Type7.Optional(Type7.Boolean({ description: "Italic text" })),
837
+ underline: Type7.Optional(Type7.Boolean({ description: "Underlined text" }))
838
+ },
839
+ { additionalProperties: false }
840
+ );
826
841
  var BorderColorSchema = Type7.Union([
827
842
  Type7.String({ description: "Border color for all sides (hex without #)" }),
828
- Type7.Object({
829
- bottom: Type7.Optional(
830
- Type7.String({ description: "Bottom border color (hex without #)" })
831
- ),
832
- top: Type7.Optional(
833
- Type7.String({ description: "Top border color (hex without #)" })
834
- ),
835
- right: Type7.Optional(
836
- Type7.String({ description: "Right border color (hex without #)" })
837
- ),
838
- left: Type7.Optional(
839
- Type7.String({ description: "Left border color (hex without #)" })
840
- )
841
- })
843
+ Type7.Object(
844
+ {
845
+ bottom: Type7.Optional(
846
+ Type7.String({ description: "Bottom border color (hex without #)" })
847
+ ),
848
+ top: Type7.Optional(
849
+ Type7.String({ description: "Top border color (hex without #)" })
850
+ ),
851
+ right: Type7.Optional(
852
+ Type7.String({ description: "Right border color (hex without #)" })
853
+ ),
854
+ left: Type7.Optional(
855
+ Type7.String({ description: "Left border color (hex without #)" })
856
+ )
857
+ },
858
+ { additionalProperties: false }
859
+ )
842
860
  ]);
843
861
  var BorderSizeSchema = Type7.Union([
844
862
  Type7.Number({
845
863
  minimum: 0,
846
864
  description: "Border size for all sides in points"
847
865
  }),
848
- Type7.Object({
849
- bottom: Type7.Optional(
850
- Type7.Number({ minimum: 0, description: "Bottom border size in points" })
851
- ),
852
- top: Type7.Optional(
853
- Type7.Number({ minimum: 0, description: "Top border size in points" })
854
- ),
855
- right: Type7.Optional(
856
- Type7.Number({ minimum: 0, description: "Right border size in points" })
857
- ),
858
- left: Type7.Optional(
859
- Type7.Number({ minimum: 0, description: "Left border size in points" })
860
- )
861
- })
866
+ Type7.Object(
867
+ {
868
+ bottom: Type7.Optional(
869
+ Type7.Number({ minimum: 0, description: "Bottom border size in points" })
870
+ ),
871
+ top: Type7.Optional(
872
+ Type7.Number({ minimum: 0, description: "Top border size in points" })
873
+ ),
874
+ right: Type7.Optional(
875
+ Type7.Number({ minimum: 0, description: "Right border size in points" })
876
+ ),
877
+ left: Type7.Optional(
878
+ Type7.Number({ minimum: 0, description: "Left border size in points" })
879
+ )
880
+ },
881
+ { additionalProperties: false }
882
+ )
862
883
  ]);
863
884
  var HideBordersSchema = Type7.Union([
864
885
  Type7.Boolean({
@@ -879,39 +900,48 @@ var HideBordersSchema = Type7.Union([
879
900
  Type7.Boolean({ description: "Hide vertical borders between columns" })
880
901
  )
881
902
  },
882
- { description: "Selectively hide specific borders" }
903
+ {
904
+ description: "Selectively hide specific borders",
905
+ additionalProperties: false
906
+ }
883
907
  )
884
908
  ]);
885
909
  var PaddingSchema = Type7.Union([
886
910
  Type7.Number({ minimum: 0, description: "Padding for all sides in points" }),
887
- Type7.Object({
888
- bottom: Type7.Optional(
889
- Type7.Number({ minimum: 0, description: "Bottom padding in points" })
890
- ),
891
- top: Type7.Optional(
892
- Type7.Number({ minimum: 0, description: "Top padding in points" })
893
- ),
894
- right: Type7.Optional(
895
- Type7.Number({ minimum: 0, description: "Right padding in points" })
896
- ),
897
- left: Type7.Optional(
898
- Type7.Number({ minimum: 0, description: "Left padding in points" })
899
- )
900
- })
901
- ]);
902
- var CellDefaultsSchema = Type7.Object({
903
- color: Type7.Optional(HexColorSchema),
904
- backgroundColor: Type7.Optional(HexColorOrTransparentSchema),
905
- horizontalAlignment: Type7.Optional(HorizontalAlignmentSchema),
906
- verticalAlignment: Type7.Optional(VerticalAlignmentSchema),
907
- font: Type7.Optional(FontConfigSchema),
908
- borderColor: Type7.Optional(BorderColorSchema),
909
- borderSize: Type7.Optional(BorderSizeSchema),
910
- padding: Type7.Optional(PaddingSchema),
911
- height: Type7.Optional(
912
- Type7.Number({ minimum: 0, description: "Cell height in points" })
911
+ Type7.Object(
912
+ {
913
+ bottom: Type7.Optional(
914
+ Type7.Number({ minimum: 0, description: "Bottom padding in points" })
915
+ ),
916
+ top: Type7.Optional(
917
+ Type7.Number({ minimum: 0, description: "Top padding in points" })
918
+ ),
919
+ right: Type7.Optional(
920
+ Type7.Number({ minimum: 0, description: "Right padding in points" })
921
+ ),
922
+ left: Type7.Optional(
923
+ Type7.Number({ minimum: 0, description: "Left padding in points" })
924
+ )
925
+ },
926
+ { additionalProperties: false }
913
927
  )
914
- });
928
+ ]);
929
+ var CellDefaultsSchema = Type7.Object(
930
+ {
931
+ color: Type7.Optional(HexColorSchema),
932
+ backgroundColor: Type7.Optional(HexColorOrTransparentSchema),
933
+ horizontalAlignment: Type7.Optional(HorizontalAlignmentSchema),
934
+ verticalAlignment: Type7.Optional(VerticalAlignmentSchema),
935
+ font: Type7.Optional(FontConfigSchema),
936
+ borderColor: Type7.Optional(BorderColorSchema),
937
+ borderSize: Type7.Optional(BorderSizeSchema),
938
+ padding: Type7.Optional(PaddingSchema),
939
+ height: Type7.Optional(
940
+ Type7.Number({ minimum: 0, description: "Cell height in points" })
941
+ )
942
+ },
943
+ { additionalProperties: false }
944
+ );
915
945
  function createTablePropsSchema(componentRef) {
916
946
  const cellContent = Type7.Union([Type7.String(), componentRef]);
917
947
  const cellFields = {
@@ -927,31 +957,40 @@ function createTablePropsSchema(componentRef) {
927
957
  Type7.Number({ minimum: 0, description: "Cell height in points" })
928
958
  )
929
959
  };
930
- const headerSchema = Type7.Object({
931
- ...cellFields,
932
- content: Type7.Optional(cellContent)
933
- });
934
- const cellSchema = Type7.Object({
935
- ...cellFields,
936
- content: Type7.Optional(cellContent)
937
- });
938
- const columnSchema = Type7.Object({
939
- width: Type7.Optional(
940
- Type7.Union([
941
- Type7.Number({
942
- minimum: 0,
943
- description: "Column width in points. When set on some columns, remaining columns will automatically share the leftover table space equally. Leave undefined to distribute space evenly among unspecified columns."
944
- }),
945
- Type7.String({
946
- pattern: "^\\d+(\\.\\d+)?%$",
947
- description: 'Column width as percentage of available width (e.g., "40%")'
948
- })
949
- ])
950
- ),
951
- cellDefaults: Type7.Optional(CellDefaultsSchema),
952
- header: Type7.Optional(headerSchema),
953
- cells: Type7.Optional(Type7.Array(cellSchema))
954
- });
960
+ const headerSchema = Type7.Object(
961
+ {
962
+ ...cellFields,
963
+ content: Type7.Optional(cellContent)
964
+ },
965
+ { additionalProperties: false }
966
+ );
967
+ const cellSchema = Type7.Object(
968
+ {
969
+ ...cellFields,
970
+ content: Type7.Optional(cellContent)
971
+ },
972
+ { additionalProperties: false }
973
+ );
974
+ const columnSchema = Type7.Object(
975
+ {
976
+ width: Type7.Optional(
977
+ Type7.Union([
978
+ Type7.Number({
979
+ minimum: 0,
980
+ description: "Column width in points. When set on some columns, remaining columns will automatically share the leftover table space equally. Leave undefined to distribute space evenly among unspecified columns."
981
+ }),
982
+ Type7.String({
983
+ pattern: "^\\d+(\\.\\d+)?%$",
984
+ description: 'Column width as percentage of available width (e.g., "40%")'
985
+ })
986
+ ])
987
+ ),
988
+ cellDefaults: Type7.Optional(CellDefaultsSchema),
989
+ header: Type7.Optional(headerSchema),
990
+ cells: Type7.Optional(Type7.Array(cellSchema))
991
+ },
992
+ { additionalProperties: false }
993
+ );
955
994
  return Type7.Object(
956
995
  {
957
996
  borderColor: Type7.Optional(BorderColorSchema),
@@ -988,7 +1027,8 @@ function createTablePropsSchema(componentRef) {
988
1027
  )
989
1028
  },
990
1029
  {
991
- description: "Table component props with column-based structure"
1030
+ description: "Table component props with column-based structure",
1031
+ additionalProperties: false
992
1032
  }
993
1033
  );
994
1034
  }
@@ -1254,7 +1294,8 @@ var ListLevelPropsSchema = Type10.Object(
1254
1294
  )
1255
1295
  },
1256
1296
  {
1257
- description: "Configuration for a single list level"
1297
+ description: "Configuration for a single list level",
1298
+ additionalProperties: false
1258
1299
  }
1259
1300
  );
1260
1301
  var ListPropsSchema = Type10.Object(
@@ -1262,17 +1303,20 @@ var ListPropsSchema = Type10.Object(
1262
1303
  items: Type10.Array(
1263
1304
  Type10.Union([
1264
1305
  Type10.String(),
1265
- Type10.Object({
1266
- text: Type10.String(),
1267
- level: Type10.Optional(
1268
- Type10.Number({
1269
- minimum: 0,
1270
- maximum: 8,
1271
- description: "Nesting level for this item"
1272
- })
1273
- ),
1274
- revision: Type10.Optional(RevisionSchema)
1275
- })
1306
+ Type10.Object(
1307
+ {
1308
+ text: Type10.String(),
1309
+ level: Type10.Optional(
1310
+ Type10.Number({
1311
+ minimum: 0,
1312
+ maximum: 8,
1313
+ description: "Nesting level for this item"
1314
+ })
1315
+ ),
1316
+ revision: Type10.Optional(RevisionSchema)
1317
+ },
1318
+ { additionalProperties: false }
1319
+ )
1276
1320
  ]),
1277
1321
  {
1278
1322
  description: "List items (required)",
@@ -1395,4 +1439,4 @@ export {
1395
1439
  ListComponentDefaultsSchema,
1396
1440
  ComponentDefaultsSchema
1397
1441
  };
1398
- //# sourceMappingURL=chunk-CGMJ665Z.js.map
1442
+ //# sourceMappingURL=chunk-NRDLQSF3.js.map