@prismicio/types-internal 3.4.0-alpha.2 → 3.4.0-alpha.4

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 (55) hide show
  1. package/lib/content/Document.d.ts +3305 -3323
  2. package/lib/content/fields/RepeatableContent.d.ts +51 -123
  3. package/lib/content/fields/RepeatableContent.js +10 -14
  4. package/lib/content/fields/WidgetContent.d.ts +3046 -3064
  5. package/lib/content/fields/nestable/NestableContent.d.ts +501 -504
  6. package/lib/content/fields/nestable/NestableContent.js +0 -7
  7. package/lib/content/fields/nestable/RichTextContent/Block.d.ts +1036 -0
  8. package/lib/content/fields/nestable/RichTextContent/Block.js +31 -0
  9. package/lib/content/fields/nestable/RichTextContent/EmbedBlock.d.ts +60 -0
  10. package/lib/content/fields/nestable/RichTextContent/EmbedBlock.js +53 -0
  11. package/lib/content/fields/nestable/RichTextContent/ImageBlock.d.ts +203 -0
  12. package/lib/content/fields/nestable/RichTextContent/ImageBlock.js +36 -0
  13. package/lib/content/fields/nestable/RichTextContent/TableBlock.d.ts +500 -0
  14. package/lib/content/fields/nestable/RichTextContent/TableBlock.js +21 -0
  15. package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +590 -0
  16. package/lib/content/fields/nestable/RichTextContent/TextBlock.js +80 -0
  17. package/lib/content/fields/nestable/RichTextContent/index.d.ts +637 -9
  18. package/lib/content/fields/nestable/RichTextContent/index.js +4 -4
  19. package/lib/content/fields/nestable/TableContent.d.ts +245 -12
  20. package/lib/content/fields/nestable/TableContent.js +7 -7
  21. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +1013 -1019
  22. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +234 -235
  23. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +1013 -1019
  24. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +501 -504
  25. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +499 -502
  26. package/lib/content/fields/slices/Slice/index.d.ts +1852 -1862
  27. package/lib/content/fields/slices/SliceItem.d.ts +1957 -1967
  28. package/lib/content/fields/slices/SlicesContent.d.ts +2619 -2634
  29. package/lib/customtypes/CustomType.d.ts +0 -108
  30. package/lib/customtypes/Section.d.ts +0 -108
  31. package/lib/customtypes/diff/SharedSlice.d.ts +0 -48
  32. package/lib/customtypes/diff/Variation.d.ts +0 -48
  33. package/lib/customtypes/widgets/Group.d.ts +0 -36
  34. package/lib/customtypes/widgets/Widget.d.ts +0 -126
  35. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +0 -6
  36. package/lib/customtypes/widgets/nestable/NestableWidget.js +0 -2
  37. package/lib/customtypes/widgets/nestable/RichText.d.ts +2 -0
  38. package/lib/customtypes/widgets/nestable/RichText.js +2 -0
  39. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +0 -12
  40. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +0 -12
  41. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +0 -48
  42. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +0 -36
  43. package/lib/customtypes/widgets/slices/Slices.d.ts +0 -168
  44. package/package.json +1 -1
  45. package/src/content/fields/nestable/NestableContent.ts +0 -12
  46. package/src/content/fields/nestable/RichTextContent/Block.ts +35 -0
  47. package/src/content/fields/nestable/RichTextContent/EmbedBlock.ts +81 -0
  48. package/src/content/fields/nestable/RichTextContent/ImageBlock.ts +42 -0
  49. package/src/content/fields/nestable/RichTextContent/TableBlock.ts +36 -0
  50. package/src/content/fields/nestable/RichTextContent/TextBlock.ts +108 -0
  51. package/src/content/fields/nestable/RichTextContent/index.ts +2 -2
  52. package/src/content/fields/nestable/TableContent.ts +6 -6
  53. package/src/customtypes/widgets/nestable/NestableWidget.ts +0 -2
  54. package/src/customtypes/widgets/nestable/RichText.ts +2 -0
  55. package/src/content/fields/nestable/RichTextContent/Blocks.ts +0 -238
@@ -320,7 +320,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
320
320
  label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
321
321
  direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
322
322
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
323
- type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
323
+ type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", unknown>;
324
324
  content: t.IntersectionC<[t.TypeC<{
325
325
  text: t.StringC;
326
326
  }>, t.PartialC<{
@@ -429,243 +429,242 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
429
429
  }>, t.PartialC<{
430
430
  label: t.StringC;
431
431
  direction: t.StringC;
432
- }>]>>]>>;
433
- }>>, t.ExactC<t.TypeC<{
434
- __TYPE__: t.LiteralC<"SeparatorContent">;
435
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
436
- content: t.ArrayC<t.ExactC<t.TypeC<{
437
- type: t.LiteralC<"tableRow">;
438
- content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
439
- type: t.LiteralC<"tableHeader">;
440
- content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
441
- type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
442
- content: t.IntersectionC<[t.TypeC<{
443
- text: t.StringC;
432
+ }>]>>, t.ExactC<t.TypeC<{
433
+ type: t.LiteralC<"table">;
434
+ content: t.ArrayC<t.ExactC<t.TypeC<{
435
+ type: t.LiteralC<"tableRow">;
436
+ content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
437
+ type: t.LiteralC<"tableHeader">;
438
+ content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
439
+ type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", unknown>;
440
+ content: t.IntersectionC<[t.TypeC<{
441
+ text: t.StringC;
442
+ }>, t.PartialC<{
443
+ spans: t.Type<({
444
+ data: ({
445
+ __TYPE__: "ImageLink";
446
+ } & {
447
+ kind: "image";
448
+ id: string;
449
+ url: string;
450
+ height: string;
451
+ width: string;
452
+ size: string;
453
+ name: string;
454
+ } & {
455
+ date?: string | null | undefined;
456
+ }) | ({
457
+ __TYPE__: "FileLink";
458
+ } & {
459
+ kind: "file";
460
+ id: string;
461
+ url: string;
462
+ name: string;
463
+ size: string;
464
+ } & {
465
+ date?: string | null | undefined;
466
+ }) | ({
467
+ __TYPE__: "DocumentLink";
468
+ } & {
469
+ id: string;
470
+ }) | ({
471
+ __TYPE__: "ExternalLink";
472
+ } & {
473
+ url: string;
474
+ } & {
475
+ kind?: "web";
476
+ target?: string | null | undefined;
477
+ preview?: {
478
+ title?: string;
479
+ } | null | undefined;
480
+ });
481
+ start: number;
482
+ end: number;
483
+ type: "hyperlink";
484
+ } | {
485
+ data: string;
486
+ start: number;
487
+ end: number;
488
+ type: "label";
489
+ } | {
490
+ start: number;
491
+ end: number;
492
+ type: "strong" | "em" | "list-item";
493
+ })[], ({
494
+ data: ({
495
+ __TYPE__: "ImageLink";
496
+ } & {
497
+ kind: "image";
498
+ id: string;
499
+ url: string;
500
+ height: string;
501
+ width: string;
502
+ size: string;
503
+ name: string;
504
+ } & {
505
+ date?: string | null | undefined;
506
+ }) | ({
507
+ __TYPE__: "FileLink";
508
+ } & {
509
+ kind: "file";
510
+ id: string;
511
+ url: string;
512
+ name: string;
513
+ size: string;
514
+ } & {
515
+ date?: string | null | undefined;
516
+ }) | ({
517
+ __TYPE__: "DocumentLink";
518
+ } & {
519
+ id: string;
520
+ }) | ({
521
+ __TYPE__: "ExternalLink";
522
+ } & {
523
+ url: string;
524
+ } & {
525
+ kind?: "web";
526
+ target?: string | null | undefined;
527
+ preview?: {
528
+ title?: string;
529
+ } | null | undefined;
530
+ });
531
+ start: number;
532
+ end: number;
533
+ type: "hyperlink";
534
+ } | {
535
+ data: string;
536
+ start: number;
537
+ end: number;
538
+ type: "label";
539
+ } | {
540
+ start: number;
541
+ end: number;
542
+ type: "strong" | "em" | "list-item";
543
+ })[], unknown>;
544
+ }>]>;
444
545
  }>, t.PartialC<{
445
- spans: t.Type<({
446
- data: ({
447
- __TYPE__: "ImageLink";
448
- } & {
449
- kind: "image";
450
- id: string;
451
- url: string;
452
- height: string;
453
- width: string;
454
- size: string;
455
- name: string;
456
- } & {
457
- date?: string | null | undefined;
458
- }) | ({
459
- __TYPE__: "FileLink";
460
- } & {
461
- kind: "file";
462
- id: string;
463
- url: string;
464
- name: string;
465
- size: string;
466
- } & {
467
- date?: string | null | undefined;
468
- }) | ({
469
- __TYPE__: "DocumentLink";
470
- } & {
471
- id: string;
472
- }) | ({
473
- __TYPE__: "ExternalLink";
474
- } & {
475
- url: string;
476
- } & {
477
- kind?: "web";
478
- target?: string | null | undefined;
479
- preview?: {
480
- title?: string;
481
- } | null | undefined;
482
- });
483
- start: number;
484
- end: number;
485
- type: "hyperlink";
486
- } | {
487
- data: string;
488
- start: number;
489
- end: number;
490
- type: "label";
491
- } | {
492
- start: number;
493
- end: number;
494
- type: "strong" | "em" | "list-item";
495
- })[], ({
496
- data: ({
497
- __TYPE__: "ImageLink";
498
- } & {
499
- kind: "image";
500
- id: string;
501
- url: string;
502
- height: string;
503
- width: string;
504
- size: string;
505
- name: string;
506
- } & {
507
- date?: string | null | undefined;
508
- }) | ({
509
- __TYPE__: "FileLink";
510
- } & {
511
- kind: "file";
512
- id: string;
513
- url: string;
514
- name: string;
515
- size: string;
516
- } & {
517
- date?: string | null | undefined;
518
- }) | ({
519
- __TYPE__: "DocumentLink";
520
- } & {
521
- id: string;
522
- }) | ({
523
- __TYPE__: "ExternalLink";
524
- } & {
525
- url: string;
526
- } & {
527
- kind?: "web";
528
- target?: string | null | undefined;
529
- preview?: {
530
- title?: string;
531
- } | null | undefined;
532
- });
533
- start: number;
534
- end: number;
535
- type: "hyperlink";
536
- } | {
537
- data: string;
538
- start: number;
539
- end: number;
540
- type: "label";
541
- } | {
542
- start: number;
543
- end: number;
544
- type: "strong" | "em" | "list-item";
545
- })[], unknown>;
546
- }>]>;
547
- }>, t.PartialC<{
548
- label: t.StringC;
549
- direction: t.StringC;
550
- }>]>>>;
551
- }>>, t.ExactC<t.TypeC<{
552
- type: t.LiteralC<"tableCell">;
553
- content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
554
- type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
555
- content: t.IntersectionC<[t.TypeC<{
556
- text: t.StringC;
546
+ label: t.StringC;
547
+ direction: t.StringC;
548
+ }>]>>>;
549
+ }>>, t.ExactC<t.TypeC<{
550
+ type: t.LiteralC<"tableCell">;
551
+ content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
552
+ type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", unknown>;
553
+ content: t.IntersectionC<[t.TypeC<{
554
+ text: t.StringC;
555
+ }>, t.PartialC<{
556
+ spans: t.Type<({
557
+ data: ({
558
+ __TYPE__: "ImageLink";
559
+ } & {
560
+ kind: "image";
561
+ id: string;
562
+ url: string;
563
+ height: string;
564
+ width: string;
565
+ size: string;
566
+ name: string;
567
+ } & {
568
+ date?: string | null | undefined;
569
+ }) | ({
570
+ __TYPE__: "FileLink";
571
+ } & {
572
+ kind: "file";
573
+ id: string;
574
+ url: string;
575
+ name: string;
576
+ size: string;
577
+ } & {
578
+ date?: string | null | undefined;
579
+ }) | ({
580
+ __TYPE__: "DocumentLink";
581
+ } & {
582
+ id: string;
583
+ }) | ({
584
+ __TYPE__: "ExternalLink";
585
+ } & {
586
+ url: string;
587
+ } & {
588
+ kind?: "web";
589
+ target?: string | null | undefined;
590
+ preview?: {
591
+ title?: string;
592
+ } | null | undefined;
593
+ });
594
+ start: number;
595
+ end: number;
596
+ type: "hyperlink";
597
+ } | {
598
+ data: string;
599
+ start: number;
600
+ end: number;
601
+ type: "label";
602
+ } | {
603
+ start: number;
604
+ end: number;
605
+ type: "strong" | "em" | "list-item";
606
+ })[], ({
607
+ data: ({
608
+ __TYPE__: "ImageLink";
609
+ } & {
610
+ kind: "image";
611
+ id: string;
612
+ url: string;
613
+ height: string;
614
+ width: string;
615
+ size: string;
616
+ name: string;
617
+ } & {
618
+ date?: string | null | undefined;
619
+ }) | ({
620
+ __TYPE__: "FileLink";
621
+ } & {
622
+ kind: "file";
623
+ id: string;
624
+ url: string;
625
+ name: string;
626
+ size: string;
627
+ } & {
628
+ date?: string | null | undefined;
629
+ }) | ({
630
+ __TYPE__: "DocumentLink";
631
+ } & {
632
+ id: string;
633
+ }) | ({
634
+ __TYPE__: "ExternalLink";
635
+ } & {
636
+ url: string;
637
+ } & {
638
+ kind?: "web";
639
+ target?: string | null | undefined;
640
+ preview?: {
641
+ title?: string;
642
+ } | null | undefined;
643
+ });
644
+ start: number;
645
+ end: number;
646
+ type: "hyperlink";
647
+ } | {
648
+ data: string;
649
+ start: number;
650
+ end: number;
651
+ type: "label";
652
+ } | {
653
+ start: number;
654
+ end: number;
655
+ type: "strong" | "em" | "list-item";
656
+ })[], unknown>;
657
+ }>]>;
557
658
  }>, t.PartialC<{
558
- spans: t.Type<({
559
- data: ({
560
- __TYPE__: "ImageLink";
561
- } & {
562
- kind: "image";
563
- id: string;
564
- url: string;
565
- height: string;
566
- width: string;
567
- size: string;
568
- name: string;
569
- } & {
570
- date?: string | null | undefined;
571
- }) | ({
572
- __TYPE__: "FileLink";
573
- } & {
574
- kind: "file";
575
- id: string;
576
- url: string;
577
- name: string;
578
- size: string;
579
- } & {
580
- date?: string | null | undefined;
581
- }) | ({
582
- __TYPE__: "DocumentLink";
583
- } & {
584
- id: string;
585
- }) | ({
586
- __TYPE__: "ExternalLink";
587
- } & {
588
- url: string;
589
- } & {
590
- kind?: "web";
591
- target?: string | null | undefined;
592
- preview?: {
593
- title?: string;
594
- } | null | undefined;
595
- });
596
- start: number;
597
- end: number;
598
- type: "hyperlink";
599
- } | {
600
- data: string;
601
- start: number;
602
- end: number;
603
- type: "label";
604
- } | {
605
- start: number;
606
- end: number;
607
- type: "strong" | "em" | "list-item";
608
- })[], ({
609
- data: ({
610
- __TYPE__: "ImageLink";
611
- } & {
612
- kind: "image";
613
- id: string;
614
- url: string;
615
- height: string;
616
- width: string;
617
- size: string;
618
- name: string;
619
- } & {
620
- date?: string | null | undefined;
621
- }) | ({
622
- __TYPE__: "FileLink";
623
- } & {
624
- kind: "file";
625
- id: string;
626
- url: string;
627
- name: string;
628
- size: string;
629
- } & {
630
- date?: string | null | undefined;
631
- }) | ({
632
- __TYPE__: "DocumentLink";
633
- } & {
634
- id: string;
635
- }) | ({
636
- __TYPE__: "ExternalLink";
637
- } & {
638
- url: string;
639
- } & {
640
- kind?: "web";
641
- target?: string | null | undefined;
642
- preview?: {
643
- title?: string;
644
- } | null | undefined;
645
- });
646
- start: number;
647
- end: number;
648
- type: "hyperlink";
649
- } | {
650
- data: string;
651
- start: number;
652
- end: number;
653
- type: "label";
654
- } | {
655
- start: number;
656
- end: number;
657
- type: "strong" | "em" | "list-item";
658
- })[], unknown>;
659
- }>]>;
660
- }>, t.PartialC<{
661
- label: t.StringC;
662
- direction: t.StringC;
663
- }>]>>>;
664
- }>>]>>;
665
- }>>>;
659
+ label: t.StringC;
660
+ direction: t.StringC;
661
+ }>]>>>;
662
+ }>>]>>;
663
+ }>>>;
664
+ }>>]>>;
665
+ }>>, t.ExactC<t.TypeC<{
666
+ __TYPE__: t.LiteralC<"SeparatorContent">;
666
667
  }>>, t.ExactC<t.TypeC<{
667
- __TYPE__: t.LiteralC<"TableContent">;
668
- }>>]>, t.ExactC<t.TypeC<{
669
668
  __TYPE__: t.LiteralC<"RepeatableContent">;
670
669
  type: t.LiteralC<"Link">;
671
670
  value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
@@ -1107,7 +1106,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
1107
1106
  label?: string | null | undefined;
1108
1107
  direction?: string | null | undefined;
1109
1108
  }) | ({
1110
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1109
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1111
1110
  content: {
1112
1111
  text: string;
1113
1112
  } & {
@@ -1166,143 +1165,142 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
1166
1165
  } & {
1167
1166
  label?: string;
1168
1167
  direction?: string;
1169
- }))[];
1170
- } | {
1171
- __TYPE__: "SeparatorContent";
1172
- } | ({
1173
- content: {
1174
- type: "tableRow";
1175
- content: ({
1176
- type: "tableHeader";
1177
- content: ({
1178
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1179
- content: {
1180
- text: string;
1181
- } & {
1182
- spans?: ({
1183
- data: ({
1184
- __TYPE__: "ImageLink";
1185
- } & {
1186
- kind: "image";
1187
- id: string;
1188
- url: string;
1189
- height: string;
1190
- width: string;
1191
- size: string;
1192
- name: string;
1193
- } & {
1194
- date?: string | null | undefined;
1195
- }) | ({
1196
- __TYPE__: "FileLink";
1197
- } & {
1198
- kind: "file";
1199
- id: string;
1200
- url: string;
1201
- name: string;
1202
- size: string;
1203
- } & {
1204
- date?: string | null | undefined;
1205
- }) | ({
1206
- __TYPE__: "DocumentLink";
1207
- } & {
1208
- id: string;
1209
- }) | ({
1210
- __TYPE__: "ExternalLink";
1211
- } & {
1212
- url: string;
1213
- } & {
1214
- kind?: "web";
1215
- target?: string | null | undefined;
1216
- preview?: {
1217
- title?: string;
1218
- } | null | undefined;
1219
- });
1220
- start: number;
1221
- end: number;
1222
- type: "hyperlink";
1223
- } | {
1224
- data: string;
1225
- start: number;
1226
- end: number;
1227
- type: "label";
1228
- } | {
1229
- start: number;
1230
- end: number;
1231
- type: "strong" | "em" | "list-item";
1232
- })[];
1233
- };
1234
- } & {
1235
- label?: string;
1236
- direction?: string;
1237
- })[];
1238
- } | {
1239
- type: "tableCell";
1168
+ }) | {
1169
+ type: "table";
1170
+ content: {
1171
+ type: "tableRow";
1240
1172
  content: ({
1241
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1242
- content: {
1243
- text: string;
1244
- } & {
1245
- spans?: ({
1246
- data: ({
1247
- __TYPE__: "ImageLink";
1248
- } & {
1249
- kind: "image";
1250
- id: string;
1251
- url: string;
1252
- height: string;
1253
- width: string;
1254
- size: string;
1255
- name: string;
1256
- } & {
1257
- date?: string | null | undefined;
1258
- }) | ({
1259
- __TYPE__: "FileLink";
1260
- } & {
1261
- kind: "file";
1262
- id: string;
1263
- url: string;
1264
- name: string;
1265
- size: string;
1266
- } & {
1267
- date?: string | null | undefined;
1268
- }) | ({
1269
- __TYPE__: "DocumentLink";
1270
- } & {
1271
- id: string;
1272
- }) | ({
1273
- __TYPE__: "ExternalLink";
1274
- } & {
1275
- url: string;
1276
- } & {
1277
- kind?: "web";
1278
- target?: string | null | undefined;
1279
- preview?: {
1280
- title?: string;
1281
- } | null | undefined;
1282
- });
1283
- start: number;
1284
- end: number;
1285
- type: "hyperlink";
1286
- } | {
1287
- data: string;
1288
- start: number;
1289
- end: number;
1290
- type: "label";
1291
- } | {
1292
- start: number;
1293
- end: number;
1294
- type: "strong" | "em" | "list-item";
1295
- })[];
1296
- };
1297
- } & {
1298
- label?: string;
1299
- direction?: string;
1173
+ type: "tableHeader";
1174
+ content: ({
1175
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1176
+ content: {
1177
+ text: string;
1178
+ } & {
1179
+ spans?: ({
1180
+ data: ({
1181
+ __TYPE__: "ImageLink";
1182
+ } & {
1183
+ kind: "image";
1184
+ id: string;
1185
+ url: string;
1186
+ height: string;
1187
+ width: string;
1188
+ size: string;
1189
+ name: string;
1190
+ } & {
1191
+ date?: string | null | undefined;
1192
+ }) | ({
1193
+ __TYPE__: "FileLink";
1194
+ } & {
1195
+ kind: "file";
1196
+ id: string;
1197
+ url: string;
1198
+ name: string;
1199
+ size: string;
1200
+ } & {
1201
+ date?: string | null | undefined;
1202
+ }) | ({
1203
+ __TYPE__: "DocumentLink";
1204
+ } & {
1205
+ id: string;
1206
+ }) | ({
1207
+ __TYPE__: "ExternalLink";
1208
+ } & {
1209
+ url: string;
1210
+ } & {
1211
+ kind?: "web";
1212
+ target?: string | null | undefined;
1213
+ preview?: {
1214
+ title?: string;
1215
+ } | null | undefined;
1216
+ });
1217
+ start: number;
1218
+ end: number;
1219
+ type: "hyperlink";
1220
+ } | {
1221
+ data: string;
1222
+ start: number;
1223
+ end: number;
1224
+ type: "label";
1225
+ } | {
1226
+ start: number;
1227
+ end: number;
1228
+ type: "strong" | "em" | "list-item";
1229
+ })[];
1230
+ };
1231
+ } & {
1232
+ label?: string;
1233
+ direction?: string;
1234
+ })[];
1235
+ } | {
1236
+ type: "tableCell";
1237
+ content: ({
1238
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1239
+ content: {
1240
+ text: string;
1241
+ } & {
1242
+ spans?: ({
1243
+ data: ({
1244
+ __TYPE__: "ImageLink";
1245
+ } & {
1246
+ kind: "image";
1247
+ id: string;
1248
+ url: string;
1249
+ height: string;
1250
+ width: string;
1251
+ size: string;
1252
+ name: string;
1253
+ } & {
1254
+ date?: string | null | undefined;
1255
+ }) | ({
1256
+ __TYPE__: "FileLink";
1257
+ } & {
1258
+ kind: "file";
1259
+ id: string;
1260
+ url: string;
1261
+ name: string;
1262
+ size: string;
1263
+ } & {
1264
+ date?: string | null | undefined;
1265
+ }) | ({
1266
+ __TYPE__: "DocumentLink";
1267
+ } & {
1268
+ id: string;
1269
+ }) | ({
1270
+ __TYPE__: "ExternalLink";
1271
+ } & {
1272
+ url: string;
1273
+ } & {
1274
+ kind?: "web";
1275
+ target?: string | null | undefined;
1276
+ preview?: {
1277
+ title?: string;
1278
+ } | null | undefined;
1279
+ });
1280
+ start: number;
1281
+ end: number;
1282
+ type: "hyperlink";
1283
+ } | {
1284
+ data: string;
1285
+ start: number;
1286
+ end: number;
1287
+ type: "label";
1288
+ } | {
1289
+ start: number;
1290
+ end: number;
1291
+ type: "strong" | "em" | "list-item";
1292
+ })[];
1293
+ };
1294
+ } & {
1295
+ label?: string;
1296
+ direction?: string;
1297
+ })[];
1300
1298
  })[];
1301
- })[];
1302
- }[];
1303
- } & {
1304
- __TYPE__: "TableContent";
1305
- });
1299
+ }[];
1300
+ })[];
1301
+ } | {
1302
+ __TYPE__: "SeparatorContent";
1303
+ };
1306
1304
  export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
1307
1305
  decode: ((value: unknown) => import("fp-ts/lib/Either").Left<t.Errors> | import("fp-ts/lib/Either").Right<{
1308
1306
  type: string;
@@ -1663,7 +1661,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
1663
1661
  label?: string | null | undefined;
1664
1662
  direction?: string | null | undefined;
1665
1663
  }) | ({
1666
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1664
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1667
1665
  content: {
1668
1666
  text: string;
1669
1667
  } & {
@@ -1722,142 +1720,141 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
1722
1720
  } & {
1723
1721
  label?: string;
1724
1722
  direction?: string;
1725
- }))[];
1726
- }> | import("fp-ts/lib/Either").Right<{
1727
- __TYPE__: "SeparatorContent";
1728
- }> | import("fp-ts/lib/Either").Right<{
1729
- content: {
1730
- type: "tableRow";
1731
- content: ({
1732
- type: "tableHeader";
1723
+ }) | {
1724
+ type: "table";
1725
+ content: {
1726
+ type: "tableRow";
1733
1727
  content: ({
1734
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1735
- content: {
1736
- text: string;
1728
+ type: "tableHeader";
1729
+ content: ({
1730
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1731
+ content: {
1732
+ text: string;
1733
+ } & {
1734
+ spans?: ({
1735
+ data: ({
1736
+ __TYPE__: "ImageLink";
1737
+ } & {
1738
+ kind: "image";
1739
+ id: string;
1740
+ url: string;
1741
+ height: string;
1742
+ width: string;
1743
+ size: string;
1744
+ name: string;
1745
+ } & {
1746
+ date?: string | null | undefined;
1747
+ }) | ({
1748
+ __TYPE__: "FileLink";
1749
+ } & {
1750
+ kind: "file";
1751
+ id: string;
1752
+ url: string;
1753
+ name: string;
1754
+ size: string;
1755
+ } & {
1756
+ date?: string | null | undefined;
1757
+ }) | ({
1758
+ __TYPE__: "DocumentLink";
1759
+ } & {
1760
+ id: string;
1761
+ }) | ({
1762
+ __TYPE__: "ExternalLink";
1763
+ } & {
1764
+ url: string;
1765
+ } & {
1766
+ kind?: "web";
1767
+ target?: string | null | undefined;
1768
+ preview?: {
1769
+ title?: string;
1770
+ } | null | undefined;
1771
+ });
1772
+ start: number;
1773
+ end: number;
1774
+ type: "hyperlink";
1775
+ } | {
1776
+ data: string;
1777
+ start: number;
1778
+ end: number;
1779
+ type: "label";
1780
+ } | {
1781
+ start: number;
1782
+ end: number;
1783
+ type: "strong" | "em" | "list-item";
1784
+ })[];
1785
+ };
1737
1786
  } & {
1738
- spans?: ({
1739
- data: ({
1740
- __TYPE__: "ImageLink";
1741
- } & {
1742
- kind: "image";
1743
- id: string;
1744
- url: string;
1745
- height: string;
1746
- width: string;
1747
- size: string;
1748
- name: string;
1749
- } & {
1750
- date?: string | null | undefined;
1751
- }) | ({
1752
- __TYPE__: "FileLink";
1753
- } & {
1754
- kind: "file";
1755
- id: string;
1756
- url: string;
1757
- name: string;
1758
- size: string;
1759
- } & {
1760
- date?: string | null | undefined;
1761
- }) | ({
1762
- __TYPE__: "DocumentLink";
1763
- } & {
1764
- id: string;
1765
- }) | ({
1766
- __TYPE__: "ExternalLink";
1767
- } & {
1768
- url: string;
1769
- } & {
1770
- kind?: "web";
1771
- target?: string | null | undefined;
1772
- preview?: {
1773
- title?: string;
1774
- } | null | undefined;
1775
- });
1776
- start: number;
1777
- end: number;
1778
- type: "hyperlink";
1779
- } | {
1780
- data: string;
1781
- start: number;
1782
- end: number;
1783
- type: "label";
1784
- } | {
1785
- start: number;
1786
- end: number;
1787
- type: "strong" | "em" | "list-item";
1788
- })[];
1789
- };
1790
- } & {
1791
- label?: string;
1792
- direction?: string;
1793
- })[];
1794
- } | {
1795
- type: "tableCell";
1796
- content: ({
1797
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1798
- content: {
1799
- text: string;
1787
+ label?: string;
1788
+ direction?: string;
1789
+ })[];
1790
+ } | {
1791
+ type: "tableCell";
1792
+ content: ({
1793
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1794
+ content: {
1795
+ text: string;
1796
+ } & {
1797
+ spans?: ({
1798
+ data: ({
1799
+ __TYPE__: "ImageLink";
1800
+ } & {
1801
+ kind: "image";
1802
+ id: string;
1803
+ url: string;
1804
+ height: string;
1805
+ width: string;
1806
+ size: string;
1807
+ name: string;
1808
+ } & {
1809
+ date?: string | null | undefined;
1810
+ }) | ({
1811
+ __TYPE__: "FileLink";
1812
+ } & {
1813
+ kind: "file";
1814
+ id: string;
1815
+ url: string;
1816
+ name: string;
1817
+ size: string;
1818
+ } & {
1819
+ date?: string | null | undefined;
1820
+ }) | ({
1821
+ __TYPE__: "DocumentLink";
1822
+ } & {
1823
+ id: string;
1824
+ }) | ({
1825
+ __TYPE__: "ExternalLink";
1826
+ } & {
1827
+ url: string;
1828
+ } & {
1829
+ kind?: "web";
1830
+ target?: string | null | undefined;
1831
+ preview?: {
1832
+ title?: string;
1833
+ } | null | undefined;
1834
+ });
1835
+ start: number;
1836
+ end: number;
1837
+ type: "hyperlink";
1838
+ } | {
1839
+ data: string;
1840
+ start: number;
1841
+ end: number;
1842
+ type: "label";
1843
+ } | {
1844
+ start: number;
1845
+ end: number;
1846
+ type: "strong" | "em" | "list-item";
1847
+ })[];
1848
+ };
1800
1849
  } & {
1801
- spans?: ({
1802
- data: ({
1803
- __TYPE__: "ImageLink";
1804
- } & {
1805
- kind: "image";
1806
- id: string;
1807
- url: string;
1808
- height: string;
1809
- width: string;
1810
- size: string;
1811
- name: string;
1812
- } & {
1813
- date?: string | null | undefined;
1814
- }) | ({
1815
- __TYPE__: "FileLink";
1816
- } & {
1817
- kind: "file";
1818
- id: string;
1819
- url: string;
1820
- name: string;
1821
- size: string;
1822
- } & {
1823
- date?: string | null | undefined;
1824
- }) | ({
1825
- __TYPE__: "DocumentLink";
1826
- } & {
1827
- id: string;
1828
- }) | ({
1829
- __TYPE__: "ExternalLink";
1830
- } & {
1831
- url: string;
1832
- } & {
1833
- kind?: "web";
1834
- target?: string | null | undefined;
1835
- preview?: {
1836
- title?: string;
1837
- } | null | undefined;
1838
- });
1839
- start: number;
1840
- end: number;
1841
- type: "hyperlink";
1842
- } | {
1843
- data: string;
1844
- start: number;
1845
- end: number;
1846
- type: "label";
1847
- } | {
1848
- start: number;
1849
- end: number;
1850
- type: "strong" | "em" | "list-item";
1851
- })[];
1852
- };
1853
- } & {
1854
- label?: string;
1855
- direction?: string;
1850
+ label?: string;
1851
+ direction?: string;
1852
+ })[];
1856
1853
  })[];
1857
- })[];
1858
- }[];
1859
- } & {
1860
- __TYPE__: "TableContent";
1854
+ }[];
1855
+ })[];
1856
+ }> | import("fp-ts/lib/Either").Right<{
1857
+ __TYPE__: "SeparatorContent";
1861
1858
  }> | undefined) | ((i: unknown) => t.Validation<GroupContent>);
1862
1859
  encode: (value: SimpleSliceContent) => import("../../../LegacyContentCtx").WithTypes<unknown> | undefined;
1863
1860
  };