@json-to-office/shared-docx 0.2.0 → 0.5.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 (38) hide show
  1. package/dist/{chunk-CN6VD4WH.js → chunk-3D6HY6AC.js} +159 -86
  2. package/dist/chunk-3D6HY6AC.js.map +1 -0
  3. package/dist/{chunk-NCGCTQZ6.js → chunk-A325P5FV.js} +8 -8
  4. package/dist/{chunk-HHMK2RWF.js → chunk-AMVS7BRX.js} +7 -2
  5. package/dist/chunk-AMVS7BRX.js.map +1 -0
  6. package/dist/{chunk-WTN6PMNZ.js → chunk-CVI7GFWX.js} +6 -7
  7. package/dist/chunk-CVI7GFWX.js.map +1 -0
  8. package/dist/{chunk-YGWE6RFN.js → chunk-EDYWA2KA.js} +2 -2
  9. package/dist/{chunk-TBDQHRHI.js → chunk-IFSM3GXH.js} +15 -9
  10. package/dist/chunk-IFSM3GXH.js.map +1 -0
  11. package/dist/{chunk-MXVEVEY7.js → chunk-S4EFGCIC.js} +2 -2
  12. package/dist/{chunk-XPL7NECE.js → chunk-WJA5TGNI.js} +25 -15
  13. package/dist/chunk-WJA5TGNI.js.map +1 -0
  14. package/dist/{chunk-6A2M4E4E.js → chunk-YNBTESFN.js} +6 -6
  15. package/dist/index.d.ts +1 -202
  16. package/dist/index.js +22 -22
  17. package/dist/schemas/api.js +3 -3
  18. package/dist/schemas/component-registry.d.ts +35 -5
  19. package/dist/schemas/component-registry.js +3 -1
  20. package/dist/schemas/components.d.ts +12 -200
  21. package/dist/schemas/components.js +6 -4
  22. package/dist/schemas/document.js +4 -4
  23. package/dist/schemas/export.js +3 -1
  24. package/dist/schemas/generator.js +2 -2
  25. package/dist/schemas/theme.d.ts +3 -597
  26. package/dist/schemas/theme.js +3 -3
  27. package/dist/validation/unified/index.d.ts +1 -199
  28. package/dist/validation/unified/index.js +5 -5
  29. package/package.json +1 -1
  30. package/dist/chunk-CN6VD4WH.js.map +0 -1
  31. package/dist/chunk-HHMK2RWF.js.map +0 -1
  32. package/dist/chunk-TBDQHRHI.js.map +0 -1
  33. package/dist/chunk-WTN6PMNZ.js.map +0 -1
  34. package/dist/chunk-XPL7NECE.js.map +0 -1
  35. /package/dist/{chunk-NCGCTQZ6.js.map → chunk-A325P5FV.js.map} +0 -0
  36. /package/dist/{chunk-YGWE6RFN.js.map → chunk-EDYWA2KA.js.map} +0 -0
  37. /package/dist/{chunk-MXVEVEY7.js.map → chunk-S4EFGCIC.js.map} +0 -0
  38. /package/dist/{chunk-6A2M4E4E.js.map → chunk-YNBTESFN.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -404,208 +404,7 @@ declare const COMPONENT_SCHEMA_MAP: {
404
404
  }>>;
405
405
  size: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"small">, _sinclair_typebox.TLiteral<"medium">, _sinclair_typebox.TLiteral<"large">]>>;
406
406
  }>;
407
- readonly table: _sinclair_typebox.TObject<{
408
- borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
409
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
410
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
411
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
412
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
413
- }>]>>;
414
- borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
415
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
416
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
417
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
418
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
419
- }>]>>;
420
- hideBorders: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TObject<{
421
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
422
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
423
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
424
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
425
- insideHorizontal: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
426
- insideVertical: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
427
- }>]>>;
428
- cellDefaults: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
429
- color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
430
- backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
431
- horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
432
- verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
433
- font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
434
- family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
435
- size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
436
- bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
437
- italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
438
- underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
439
- }>>;
440
- borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
441
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
442
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
443
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
444
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
445
- }>]>>;
446
- borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
447
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
448
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
449
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
450
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
451
- }>]>>;
452
- padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
453
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
454
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
455
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
456
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
457
- }>]>>;
458
- height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
459
- }>>;
460
- headerCellDefaults: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
461
- color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
462
- backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
463
- horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
464
- verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
465
- font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
466
- family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
467
- size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
468
- bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
469
- italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
470
- underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
471
- }>>;
472
- borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
473
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
474
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
475
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
476
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
477
- }>]>>;
478
- borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
479
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
480
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
481
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
482
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
483
- }>]>>;
484
- padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
485
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
486
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
487
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
488
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
489
- }>]>>;
490
- height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
491
- }>>;
492
- width: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
493
- columns: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
494
- width: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
495
- cellDefaults: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
496
- color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
497
- backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
498
- horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
499
- verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
500
- font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
501
- family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
502
- size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
503
- bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
504
- italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
505
- underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
506
- }>>;
507
- borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
508
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
509
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
510
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
511
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
512
- }>]>>;
513
- borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
514
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
515
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
516
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
517
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
518
- }>]>>;
519
- padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
520
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
521
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
522
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
523
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
524
- }>]>>;
525
- height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
526
- }>>;
527
- header: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
528
- color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
529
- backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
530
- horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
531
- verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
532
- font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
533
- family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
534
- size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
535
- bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
536
- italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
537
- underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
538
- }>>;
539
- borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
540
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
541
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
542
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
543
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
544
- }>]>>;
545
- borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
546
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
547
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
548
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
549
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
550
- }>]>>;
551
- padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
552
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
553
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
554
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
555
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
556
- }>]>>;
557
- height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
558
- content: _sinclair_typebox.TOptional<_sinclair_typebox.TRecursive<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
559
- name: _sinclair_typebox.TString;
560
- props: _sinclair_typebox.TObject<{}>;
561
- children: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TThis>>;
562
- }>]>>>;
563
- }>>;
564
- cells: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TObject<{
565
- color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
566
- backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
567
- horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
568
- verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
569
- font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
570
- family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
571
- size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
572
- bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
573
- italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
574
- underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
575
- }>>;
576
- /**
577
- * Batch validate multiple components
578
- */
579
- borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
580
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
581
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
582
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
583
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
584
- }>]>>;
585
- borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
586
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
587
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
588
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
589
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
590
- }>]>>;
591
- padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
592
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
593
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
594
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
595
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
596
- }>]>>;
597
- height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
598
- content: _sinclair_typebox.TOptional<_sinclair_typebox.TRecursive<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
599
- name: _sinclair_typebox.TString;
600
- props: _sinclair_typebox.TObject<{}>;
601
- children: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TThis>>;
602
- }>]>>>;
603
- }>>>;
604
- }>>;
605
- keepInOnePage: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
606
- keepNext: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
607
- repeatHeaderOnPageBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
608
- }>;
407
+ readonly table: _sinclair_typebox.TSchema;
609
408
  readonly header: _sinclair_typebox.TObject<{
610
409
  text: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
611
410
  logo: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generateUnifiedDocumentSchema
3
- } from "./chunk-XPL7NECE.js";
3
+ } from "./chunk-WJA5TGNI.js";
4
4
  import {
5
5
  DOC_LINKS,
6
6
  ERROR_TEMPLATES,
@@ -34,21 +34,21 @@ import {
34
34
  validateTheme,
35
35
  validateThemeJson,
36
36
  validateThemeWithEnhancement
37
- } from "./chunk-NCGCTQZ6.js";
37
+ } from "./chunk-A325P5FV.js";
38
38
  import {
39
39
  ThemeConfigSchema,
40
40
  isValidThemeConfig
41
- } from "./chunk-TBDQHRHI.js";
41
+ } from "./chunk-IFSM3GXH.js";
42
42
  import {
43
43
  GenerateDocumentRequestSchema,
44
44
  GenerateDocumentResponseSchema,
45
45
  ValidateDocumentRequestSchema,
46
46
  ValidateDocumentResponseSchema
47
- } from "./chunk-YGWE6RFN.js";
47
+ } from "./chunk-EDYWA2KA.js";
48
48
  import {
49
49
  JSON_SCHEMA_URLS,
50
50
  JsonComponentDefinitionSchema
51
- } from "./chunk-MXVEVEY7.js";
51
+ } from "./chunk-S4EFGCIC.js";
52
52
  import {
53
53
  comprehensiveValidateDocument,
54
54
  createDocumentValidator,
@@ -70,11 +70,25 @@ import {
70
70
  validateJsonComponent,
71
71
  validateJsonDocument,
72
72
  validateWithEnhancement
73
- } from "./chunk-6A2M4E4E.js";
73
+ } from "./chunk-YNBTESFN.js";
74
74
  import {
75
75
  ComponentDefinitionSchema,
76
76
  StandardComponentDefinitionSchema
77
- } from "./chunk-WTN6PMNZ.js";
77
+ } from "./chunk-CVI7GFWX.js";
78
+ import {
79
+ CustomComponentDefinitionSchema,
80
+ TextSpaceAfterComponentSchema,
81
+ TextSpaceAfterPropsSchema
82
+ } from "./chunk-VP3X6DBP.js";
83
+ import {
84
+ BASE_SCHEMA_METADATA,
85
+ COMPONENT_METADATA,
86
+ THEME_SCHEMA_METADATA,
87
+ convertToJsonSchema,
88
+ createComponentSchema,
89
+ exportSchemaToFile,
90
+ fixSchemaReferences
91
+ } from "./chunk-AMVS7BRX.js";
78
92
  import {
79
93
  AlignmentSchema,
80
94
  BaseComponentPropsSchema,
@@ -100,21 +114,7 @@ import {
100
114
  TablePropsSchema,
101
115
  TextBoxPropsSchema,
102
116
  TocPropsSchema
103
- } from "./chunk-CN6VD4WH.js";
104
- import {
105
- CustomComponentDefinitionSchema,
106
- TextSpaceAfterComponentSchema,
107
- TextSpaceAfterPropsSchema
108
- } from "./chunk-VP3X6DBP.js";
109
- import {
110
- BASE_SCHEMA_METADATA,
111
- COMPONENT_METADATA,
112
- THEME_SCHEMA_METADATA,
113
- convertToJsonSchema,
114
- createComponentSchema,
115
- exportSchemaToFile,
116
- fixSchemaReferences
117
- } from "./chunk-HHMK2RWF.js";
117
+ } from "./chunk-3D6HY6AC.js";
118
118
  import "./chunk-F5LVWDTY.js";
119
119
 
120
120
  // src/index.ts
@@ -3,9 +3,9 @@ import {
3
3
  GenerateDocumentResponseSchema,
4
4
  ValidateDocumentRequestSchema,
5
5
  ValidateDocumentResponseSchema
6
- } from "../chunk-YGWE6RFN.js";
7
- import "../chunk-WTN6PMNZ.js";
8
- import "../chunk-CN6VD4WH.js";
6
+ } from "../chunk-EDYWA2KA.js";
7
+ import "../chunk-CVI7GFWX.js";
8
+ import "../chunk-3D6HY6AC.js";
9
9
  import "../chunk-F5LVWDTY.js";
10
10
  export {
11
11
  GenerateDocumentRequestSchema,
@@ -25,6 +25,19 @@ interface StandardComponentDefinition {
25
25
  propsSchema: TSchema;
26
26
  /** Whether this component can contain children */
27
27
  hasChildren: boolean;
28
+ /**
29
+ * Names of standard components allowed as direct children.
30
+ * Only meaningful when hasChildren is true.
31
+ * Plugin components are always allowed in addition to these.
32
+ * Omit to allow the full recursive union (backward-compat).
33
+ */
34
+ allowedChildren?: readonly string[];
35
+ /**
36
+ * Factory that builds props with a live recursive ref (e.g., for section
37
+ * header/footer, table cell content). When present and a recursive ref is
38
+ * available, used instead of the static `propsSchema`.
39
+ */
40
+ createPropsSchema?: (recursiveRef: TSchema) => TSchema;
28
41
  /** Component category for organization */
29
42
  category: 'container' | 'content' | 'layout';
30
43
  /** Human-readable description */
@@ -72,19 +85,36 @@ declare function getContentComponents(): readonly StandardComponentDefinition[];
72
85
  */
73
86
  declare function isStandardComponent(name: string): boolean;
74
87
  /**
75
- * Generate TypeBox schema object for a component
88
+ * Generate TypeBox schema object for a component.
76
89
  *
77
90
  * @param component - Component definition from the registry
78
- * @param recursiveRef - Optional recursive reference for children (use Type.Recursive's 'This')
91
+ * @param childrenType - Schema for children items. For containers this should be
92
+ * a narrowed union of allowed children; for leaves omit it.
79
93
  * @returns TypeBox schema object for the component
80
94
  */
81
- declare function createComponentSchemaObject(component: StandardComponentDefinition, recursiveRef?: TSchema): TSchema;
95
+ declare function createComponentSchemaObject(component: StandardComponentDefinition, childrenType?: TSchema, selfRef?: TSchema): TSchema;
82
96
  /**
83
- * Generate an array of TypeBox schemas for all standard components
97
+ * Generate an array of TypeBox schemas for all standard components.
98
+ * Uses a flat recursive ref for all containers (legacy behavior).
84
99
  *
85
100
  * @param recursiveRef - Optional recursive reference for children
86
101
  * @returns Array of TypeBox schemas for all components in the registry
87
102
  */
88
103
  declare function createAllComponentSchemas(recursiveRef?: TSchema): readonly TSchema[];
104
+ /**
105
+ * Build all standard component schemas with per-container narrowed children.
106
+ *
107
+ * Resolves containers in dependency order so each container's children union
108
+ * only references its allowedChildren. Plugin schemas are always included in
109
+ * every container's children.
110
+ *
111
+ * @param selfRef - The Type.Recursive self-reference (used as fallback and for plugin children)
112
+ * @param pluginSchemas - Plugin component schemas (always allowed in all containers)
113
+ * @returns schemas array and a byName map for direct lookups
114
+ */
115
+ declare function createAllComponentSchemasNarrowed(selfRef: TSchema, pluginSchemas?: TSchema[]): {
116
+ schemas: TSchema[];
117
+ byName: Map<string, TSchema>;
118
+ };
89
119
 
90
- export { STANDARD_COMPONENTS_REGISTRY, type StandardComponentDefinition, createAllComponentSchemas, createComponentSchemaObject, getAllStandardComponentNames, getComponentsByCategory, getContainerComponents, getContentComponents, getStandardComponent, isStandardComponent };
120
+ export { STANDARD_COMPONENTS_REGISTRY, type StandardComponentDefinition, createAllComponentSchemas, createAllComponentSchemasNarrowed, createComponentSchemaObject, getAllStandardComponentNames, getComponentsByCategory, getContainerComponents, getContentComponents, getStandardComponent, isStandardComponent };
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  STANDARD_COMPONENTS_REGISTRY,
3
3
  createAllComponentSchemas,
4
+ createAllComponentSchemasNarrowed,
4
5
  createComponentSchemaObject,
5
6
  getAllStandardComponentNames,
6
7
  getComponentsByCategory,
@@ -8,11 +9,12 @@ import {
8
9
  getContentComponents,
9
10
  getStandardComponent,
10
11
  isStandardComponent
11
- } from "../chunk-CN6VD4WH.js";
12
+ } from "../chunk-3D6HY6AC.js";
12
13
  import "../chunk-F5LVWDTY.js";
13
14
  export {
14
15
  STANDARD_COMPONENTS_REGISTRY,
15
16
  createAllComponentSchemas,
17
+ createAllComponentSchemasNarrowed,
16
18
  createComponentSchemaObject,
17
19
  getAllStandardComponentNames,
18
20
  getComponentsByCategory,
@@ -366,205 +366,17 @@ declare const StatisticPropsSchema: _sinclair_typebox.TObject<{
366
366
  }>;
367
367
  type StatisticProps = Static<typeof StatisticPropsSchema>;
368
368
 
369
- declare const TablePropsSchema: _sinclair_typebox.TObject<{
370
- borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
371
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
372
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
373
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
374
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
375
- }>]>>;
376
- borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
377
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
378
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
379
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
380
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
381
- }>]>>;
382
- hideBorders: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TObject<{
383
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
384
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
385
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
386
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
387
- insideHorizontal: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
388
- insideVertical: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
389
- }>]>>;
390
- cellDefaults: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
391
- color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
392
- backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
393
- horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
394
- verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
395
- font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
396
- family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
397
- size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
398
- bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
399
- italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
400
- underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
401
- }>>;
402
- borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
403
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
404
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
405
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
406
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
407
- }>]>>;
408
- borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
409
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
410
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
411
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
412
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
413
- }>]>>;
414
- padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
415
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
416
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
417
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
418
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
419
- }>]>>;
420
- height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
421
- }>>;
422
- headerCellDefaults: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
423
- color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
424
- backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
425
- horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
426
- verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
427
- font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
428
- family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
429
- size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
430
- bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
431
- italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
432
- underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
433
- }>>;
434
- borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
435
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
436
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
437
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
438
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
439
- }>]>>;
440
- borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
441
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
442
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
443
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
444
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
445
- }>]>>;
446
- padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
447
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
448
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
449
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
450
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
451
- }>]>>;
452
- height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
453
- }>>;
454
- width: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
455
- columns: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
456
- width: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
457
- cellDefaults: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
458
- color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
459
- backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
460
- horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
461
- verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
462
- font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
463
- family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
464
- size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
465
- bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
466
- italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
467
- underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
468
- }>>;
469
- borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
470
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
471
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
472
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
473
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
474
- }>]>>;
475
- borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
476
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
477
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
478
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
479
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
480
- }>]>>;
481
- padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
482
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
483
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
484
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
485
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
486
- }>]>>;
487
- height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
488
- }>>;
489
- header: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
490
- color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
491
- backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
492
- horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
493
- verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
494
- font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
495
- family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
496
- size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
497
- bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
498
- italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
499
- underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
500
- }>>;
501
- borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
502
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
503
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
504
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
505
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
506
- }>]>>;
507
- borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
508
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
509
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
510
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
511
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
512
- }>]>>;
513
- padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
514
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
515
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
516
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
517
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
518
- }>]>>;
519
- height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
520
- content: _sinclair_typebox.TOptional<_sinclair_typebox.TRecursive<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
521
- name: _sinclair_typebox.TString;
522
- props: _sinclair_typebox.TObject<{}>;
523
- children: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TThis>>;
524
- }>]>>>;
525
- }>>;
526
- cells: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TObject<{
527
- color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
528
- backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
529
- horizontalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"left">, _sinclair_typebox.TLiteral<"center">, _sinclair_typebox.TLiteral<"right">, _sinclair_typebox.TLiteral<"justify">]>>;
530
- verticalAlignment: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"top">, _sinclair_typebox.TLiteral<"middle">, _sinclair_typebox.TLiteral<"bottom">]>>;
531
- font: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
532
- family: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
533
- size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
534
- bold: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
535
- italic: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
536
- underline: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
537
- }>>;
538
- borderColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
539
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
540
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
541
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
542
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
543
- }>]>>;
544
- borderSize: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
545
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
546
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
547
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
548
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
549
- }>]>>;
550
- padding: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TObject<{
551
- bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
552
- top: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
553
- right: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
554
- left: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
555
- }>]>>;
556
- height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
557
- content: _sinclair_typebox.TOptional<_sinclair_typebox.TRecursive<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
558
- name: _sinclair_typebox.TString;
559
- props: _sinclair_typebox.TObject<{}>;
560
- children: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TThis>>;
561
- }>]>>>;
562
- }>>>;
563
- }>>;
564
- keepInOnePage: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
565
- keepNext: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
566
- repeatHeaderOnPageBreak: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
567
- }>;
369
+ /**
370
+ * Table Component Schema
371
+ */
372
+
373
+ /**
374
+ * Build TablePropsSchema with a given cell-content type.
375
+ * Called with `CellContentSchema` for the static export below, and with a
376
+ * live recursive ref at schema-generation time.
377
+ */
378
+ declare function createTablePropsSchema(componentRef: TSchema): TSchema;
379
+ declare const TablePropsSchema: TSchema;
568
380
  type TableProps = Static<typeof TablePropsSchema>;
569
381
 
570
382
  declare const HeaderPropsSchema: _sinclair_typebox.TObject<{
@@ -752,4 +564,4 @@ declare const StandardComponentDefinitionSchema: _sinclair_typebox.TUnion<_sincl
752
564
  declare const ComponentDefinitionSchema: _sinclair_typebox.TRecursive<_sinclair_typebox.TUnion<_sinclair_typebox.TSchema[]>>;
753
565
  type ComponentDefinition = Static<typeof ComponentDefinitionSchema>;
754
566
 
755
- export { type Alignment, AlignmentSchema, BaseComponentFields, type BaseComponentProps, BaseComponentPropsSchema, type Border, BorderSchema, type ColumnsProps, ColumnsPropsSchema, type ComponentDefinition, ComponentDefinitionSchema, type FloatingProperties, FloatingPropertiesSchema, type FooterProps, FooterPropsSchema, type HeaderProps, HeaderPropsSchema, type HeadingLevel, HeadingLevelSchema, type HeadingProps, HeadingPropsSchema, type HighchartsProps, HighchartsPropsSchema, type HorizontalPositionAlign, HorizontalPositionAlignSchema, type HorizontalPositionRelativeFrom, HorizontalPositionRelativeFromSchema, type ImageProps, ImagePropsSchema, type Indent, IndentSchema, type JustifiedAlignment, JustifiedAlignmentSchema, type LevelFormat, LevelFormatSchema, type LineSpacing, LineSpacingSchema, type ListLevelProps, ListLevelPropsSchema, type ListProps, ListPropsSchema, type ListSpacing, ListSpacingSchema, type Margins, MarginsSchema, type Numbering, NumberingSchema, type ParagraphProps, ParagraphPropsSchema, type ReportProps, ReportPropsSchema, type SectionProps, SectionPropsSchema, type Spacing, SpacingSchema, StandardComponentDefinitionSchema, type StatisticProps, StatisticPropsSchema, type TableProps, TablePropsSchema, type TextBoxProps, TextBoxPropsSchema, type TextWrappingSide, TextWrappingSideSchema, type TextWrappingType, TextWrappingTypeSchema, TocDepthRangeSchema, type TocProps, TocPropsSchema, TocScopeSchema, TocStyleMappingSchema, TocStyleSchema, type VerticalPositionAlign, VerticalPositionAlignSchema, type VerticalPositionRelativeFrom, VerticalPositionRelativeFromSchema, createReportPropsSchema, createSectionPropsSchema };
567
+ export { type Alignment, AlignmentSchema, BaseComponentFields, type BaseComponentProps, BaseComponentPropsSchema, type Border, BorderSchema, type ColumnsProps, ColumnsPropsSchema, type ComponentDefinition, ComponentDefinitionSchema, type FloatingProperties, FloatingPropertiesSchema, type FooterProps, FooterPropsSchema, type HeaderProps, HeaderPropsSchema, type HeadingLevel, HeadingLevelSchema, type HeadingProps, HeadingPropsSchema, type HighchartsProps, HighchartsPropsSchema, type HorizontalPositionAlign, HorizontalPositionAlignSchema, type HorizontalPositionRelativeFrom, HorizontalPositionRelativeFromSchema, type ImageProps, ImagePropsSchema, type Indent, IndentSchema, type JustifiedAlignment, JustifiedAlignmentSchema, type LevelFormat, LevelFormatSchema, type LineSpacing, LineSpacingSchema, type ListLevelProps, ListLevelPropsSchema, type ListProps, ListPropsSchema, type ListSpacing, ListSpacingSchema, type Margins, MarginsSchema, type Numbering, NumberingSchema, type ParagraphProps, ParagraphPropsSchema, type ReportProps, ReportPropsSchema, type SectionProps, SectionPropsSchema, type Spacing, SpacingSchema, StandardComponentDefinitionSchema, type StatisticProps, StatisticPropsSchema, type TableProps, TablePropsSchema, type TextBoxProps, TextBoxPropsSchema, type TextWrappingSide, TextWrappingSideSchema, type TextWrappingType, TextWrappingTypeSchema, TocDepthRangeSchema, type TocProps, TocPropsSchema, TocScopeSchema, TocStyleMappingSchema, TocStyleSchema, type VerticalPositionAlign, VerticalPositionAlignSchema, type VerticalPositionRelativeFrom, VerticalPositionRelativeFromSchema, createReportPropsSchema, createSectionPropsSchema, createTablePropsSchema };