@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
@@ -317,7 +317,7 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
317
317
  label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
318
318
  direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
319
319
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
320
- 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>;
320
+ 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>;
321
321
  content: t.IntersectionC<[t.TypeC<{
322
322
  text: t.StringC;
323
323
  }>, t.PartialC<{
@@ -426,243 +426,242 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
426
426
  }>, t.PartialC<{
427
427
  label: t.StringC;
428
428
  direction: t.StringC;
429
- }>]>>]>>;
430
- }>>, t.ExactC<t.TypeC<{
431
- __TYPE__: t.LiteralC<"SeparatorContent">;
432
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
433
- content: t.ArrayC<t.ExactC<t.TypeC<{
434
- type: t.LiteralC<"tableRow">;
435
- content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
436
- type: t.LiteralC<"tableHeader">;
437
- content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
438
- 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>;
439
- content: t.IntersectionC<[t.TypeC<{
440
- text: t.StringC;
429
+ }>]>>, t.ExactC<t.TypeC<{
430
+ type: t.LiteralC<"table">;
431
+ content: t.ArrayC<t.ExactC<t.TypeC<{
432
+ type: t.LiteralC<"tableRow">;
433
+ content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
434
+ type: t.LiteralC<"tableHeader">;
435
+ content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
436
+ 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>;
437
+ content: t.IntersectionC<[t.TypeC<{
438
+ text: t.StringC;
439
+ }>, t.PartialC<{
440
+ spans: t.Type<({
441
+ data: ({
442
+ __TYPE__: "ImageLink";
443
+ } & {
444
+ kind: "image";
445
+ id: string;
446
+ url: string;
447
+ height: string;
448
+ width: string;
449
+ size: string;
450
+ name: string;
451
+ } & {
452
+ date?: string | null | undefined;
453
+ }) | ({
454
+ __TYPE__: "FileLink";
455
+ } & {
456
+ kind: "file";
457
+ id: string;
458
+ url: string;
459
+ name: string;
460
+ size: string;
461
+ } & {
462
+ date?: string | null | undefined;
463
+ }) | ({
464
+ __TYPE__: "DocumentLink";
465
+ } & {
466
+ id: string;
467
+ }) | ({
468
+ __TYPE__: "ExternalLink";
469
+ } & {
470
+ url: string;
471
+ } & {
472
+ kind?: "web";
473
+ target?: string | null | undefined;
474
+ preview?: {
475
+ title?: string;
476
+ } | null | undefined;
477
+ });
478
+ start: number;
479
+ end: number;
480
+ type: "hyperlink";
481
+ } | {
482
+ data: string;
483
+ start: number;
484
+ end: number;
485
+ type: "label";
486
+ } | {
487
+ start: number;
488
+ end: number;
489
+ type: "strong" | "em" | "list-item";
490
+ })[], ({
491
+ data: ({
492
+ __TYPE__: "ImageLink";
493
+ } & {
494
+ kind: "image";
495
+ id: string;
496
+ url: string;
497
+ height: string;
498
+ width: string;
499
+ size: string;
500
+ name: string;
501
+ } & {
502
+ date?: string | null | undefined;
503
+ }) | ({
504
+ __TYPE__: "FileLink";
505
+ } & {
506
+ kind: "file";
507
+ id: string;
508
+ url: string;
509
+ name: string;
510
+ size: string;
511
+ } & {
512
+ date?: string | null | undefined;
513
+ }) | ({
514
+ __TYPE__: "DocumentLink";
515
+ } & {
516
+ id: string;
517
+ }) | ({
518
+ __TYPE__: "ExternalLink";
519
+ } & {
520
+ url: string;
521
+ } & {
522
+ kind?: "web";
523
+ target?: string | null | undefined;
524
+ preview?: {
525
+ title?: string;
526
+ } | null | undefined;
527
+ });
528
+ start: number;
529
+ end: number;
530
+ type: "hyperlink";
531
+ } | {
532
+ data: string;
533
+ start: number;
534
+ end: number;
535
+ type: "label";
536
+ } | {
537
+ start: number;
538
+ end: number;
539
+ type: "strong" | "em" | "list-item";
540
+ })[], unknown>;
541
+ }>]>;
441
542
  }>, t.PartialC<{
442
- spans: t.Type<({
443
- data: ({
444
- __TYPE__: "ImageLink";
445
- } & {
446
- kind: "image";
447
- id: string;
448
- url: string;
449
- height: string;
450
- width: string;
451
- size: string;
452
- name: string;
453
- } & {
454
- date?: string | null | undefined;
455
- }) | ({
456
- __TYPE__: "FileLink";
457
- } & {
458
- kind: "file";
459
- id: string;
460
- url: string;
461
- name: string;
462
- size: string;
463
- } & {
464
- date?: string | null | undefined;
465
- }) | ({
466
- __TYPE__: "DocumentLink";
467
- } & {
468
- id: string;
469
- }) | ({
470
- __TYPE__: "ExternalLink";
471
- } & {
472
- url: string;
473
- } & {
474
- kind?: "web";
475
- target?: string | null | undefined;
476
- preview?: {
477
- title?: string;
478
- } | null | undefined;
479
- });
480
- start: number;
481
- end: number;
482
- type: "hyperlink";
483
- } | {
484
- data: string;
485
- start: number;
486
- end: number;
487
- type: "label";
488
- } | {
489
- start: number;
490
- end: number;
491
- type: "strong" | "em" | "list-item";
492
- })[], ({
493
- data: ({
494
- __TYPE__: "ImageLink";
495
- } & {
496
- kind: "image";
497
- id: string;
498
- url: string;
499
- height: string;
500
- width: string;
501
- size: string;
502
- name: string;
503
- } & {
504
- date?: string | null | undefined;
505
- }) | ({
506
- __TYPE__: "FileLink";
507
- } & {
508
- kind: "file";
509
- id: string;
510
- url: string;
511
- name: string;
512
- size: string;
513
- } & {
514
- date?: string | null | undefined;
515
- }) | ({
516
- __TYPE__: "DocumentLink";
517
- } & {
518
- id: string;
519
- }) | ({
520
- __TYPE__: "ExternalLink";
521
- } & {
522
- url: string;
523
- } & {
524
- kind?: "web";
525
- target?: string | null | undefined;
526
- preview?: {
527
- title?: string;
528
- } | null | undefined;
529
- });
530
- start: number;
531
- end: number;
532
- type: "hyperlink";
533
- } | {
534
- data: string;
535
- start: number;
536
- end: number;
537
- type: "label";
538
- } | {
539
- start: number;
540
- end: number;
541
- type: "strong" | "em" | "list-item";
542
- })[], unknown>;
543
- }>]>;
544
- }>, t.PartialC<{
545
- label: t.StringC;
546
- direction: t.StringC;
547
- }>]>>>;
548
- }>>, t.ExactC<t.TypeC<{
549
- type: t.LiteralC<"tableCell">;
550
- content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
551
- 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>;
552
- content: t.IntersectionC<[t.TypeC<{
553
- text: t.StringC;
543
+ label: t.StringC;
544
+ direction: t.StringC;
545
+ }>]>>>;
546
+ }>>, t.ExactC<t.TypeC<{
547
+ type: t.LiteralC<"tableCell">;
548
+ content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
549
+ 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>;
550
+ content: t.IntersectionC<[t.TypeC<{
551
+ text: t.StringC;
552
+ }>, t.PartialC<{
553
+ spans: t.Type<({
554
+ data: ({
555
+ __TYPE__: "ImageLink";
556
+ } & {
557
+ kind: "image";
558
+ id: string;
559
+ url: string;
560
+ height: string;
561
+ width: string;
562
+ size: string;
563
+ name: string;
564
+ } & {
565
+ date?: string | null | undefined;
566
+ }) | ({
567
+ __TYPE__: "FileLink";
568
+ } & {
569
+ kind: "file";
570
+ id: string;
571
+ url: string;
572
+ name: string;
573
+ size: string;
574
+ } & {
575
+ date?: string | null | undefined;
576
+ }) | ({
577
+ __TYPE__: "DocumentLink";
578
+ } & {
579
+ id: string;
580
+ }) | ({
581
+ __TYPE__: "ExternalLink";
582
+ } & {
583
+ url: string;
584
+ } & {
585
+ kind?: "web";
586
+ target?: string | null | undefined;
587
+ preview?: {
588
+ title?: string;
589
+ } | null | undefined;
590
+ });
591
+ start: number;
592
+ end: number;
593
+ type: "hyperlink";
594
+ } | {
595
+ data: string;
596
+ start: number;
597
+ end: number;
598
+ type: "label";
599
+ } | {
600
+ start: number;
601
+ end: number;
602
+ type: "strong" | "em" | "list-item";
603
+ })[], ({
604
+ data: ({
605
+ __TYPE__: "ImageLink";
606
+ } & {
607
+ kind: "image";
608
+ id: string;
609
+ url: string;
610
+ height: string;
611
+ width: string;
612
+ size: string;
613
+ name: string;
614
+ } & {
615
+ date?: string | null | undefined;
616
+ }) | ({
617
+ __TYPE__: "FileLink";
618
+ } & {
619
+ kind: "file";
620
+ id: string;
621
+ url: string;
622
+ name: string;
623
+ size: string;
624
+ } & {
625
+ date?: string | null | undefined;
626
+ }) | ({
627
+ __TYPE__: "DocumentLink";
628
+ } & {
629
+ id: string;
630
+ }) | ({
631
+ __TYPE__: "ExternalLink";
632
+ } & {
633
+ url: string;
634
+ } & {
635
+ kind?: "web";
636
+ target?: string | null | undefined;
637
+ preview?: {
638
+ title?: string;
639
+ } | null | undefined;
640
+ });
641
+ start: number;
642
+ end: number;
643
+ type: "hyperlink";
644
+ } | {
645
+ data: string;
646
+ start: number;
647
+ end: number;
648
+ type: "label";
649
+ } | {
650
+ start: number;
651
+ end: number;
652
+ type: "strong" | "em" | "list-item";
653
+ })[], unknown>;
654
+ }>]>;
554
655
  }>, t.PartialC<{
555
- spans: t.Type<({
556
- data: ({
557
- __TYPE__: "ImageLink";
558
- } & {
559
- kind: "image";
560
- id: string;
561
- url: string;
562
- height: string;
563
- width: string;
564
- size: string;
565
- name: string;
566
- } & {
567
- date?: string | null | undefined;
568
- }) | ({
569
- __TYPE__: "FileLink";
570
- } & {
571
- kind: "file";
572
- id: string;
573
- url: string;
574
- name: string;
575
- size: string;
576
- } & {
577
- date?: string | null | undefined;
578
- }) | ({
579
- __TYPE__: "DocumentLink";
580
- } & {
581
- id: string;
582
- }) | ({
583
- __TYPE__: "ExternalLink";
584
- } & {
585
- url: string;
586
- } & {
587
- kind?: "web";
588
- target?: string | null | undefined;
589
- preview?: {
590
- title?: string;
591
- } | null | undefined;
592
- });
593
- start: number;
594
- end: number;
595
- type: "hyperlink";
596
- } | {
597
- data: string;
598
- start: number;
599
- end: number;
600
- type: "label";
601
- } | {
602
- start: number;
603
- end: number;
604
- type: "strong" | "em" | "list-item";
605
- })[], ({
606
- data: ({
607
- __TYPE__: "ImageLink";
608
- } & {
609
- kind: "image";
610
- id: string;
611
- url: string;
612
- height: string;
613
- width: string;
614
- size: string;
615
- name: string;
616
- } & {
617
- date?: string | null | undefined;
618
- }) | ({
619
- __TYPE__: "FileLink";
620
- } & {
621
- kind: "file";
622
- id: string;
623
- url: string;
624
- name: string;
625
- size: string;
626
- } & {
627
- date?: string | null | undefined;
628
- }) | ({
629
- __TYPE__: "DocumentLink";
630
- } & {
631
- id: string;
632
- }) | ({
633
- __TYPE__: "ExternalLink";
634
- } & {
635
- url: string;
636
- } & {
637
- kind?: "web";
638
- target?: string | null | undefined;
639
- preview?: {
640
- title?: string;
641
- } | null | undefined;
642
- });
643
- start: number;
644
- end: number;
645
- type: "hyperlink";
646
- } | {
647
- data: string;
648
- start: number;
649
- end: number;
650
- type: "label";
651
- } | {
652
- start: number;
653
- end: number;
654
- type: "strong" | "em" | "list-item";
655
- })[], unknown>;
656
- }>]>;
657
- }>, t.PartialC<{
658
- label: t.StringC;
659
- direction: t.StringC;
660
- }>]>>>;
661
- }>>]>>;
662
- }>>>;
656
+ label: t.StringC;
657
+ direction: t.StringC;
658
+ }>]>>>;
659
+ }>>]>>;
660
+ }>>>;
661
+ }>>]>>;
662
+ }>>, t.ExactC<t.TypeC<{
663
+ __TYPE__: t.LiteralC<"SeparatorContent">;
663
664
  }>>, t.ExactC<t.TypeC<{
664
- __TYPE__: t.LiteralC<"TableContent">;
665
- }>>]>, t.ExactC<t.TypeC<{
666
665
  __TYPE__: t.LiteralC<"RepeatableContent">;
667
666
  type: t.LiteralC<"Link">;
668
667
  value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
@@ -1106,7 +1105,7 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
1106
1105
  label?: string | null | undefined;
1107
1106
  direction?: string | null | undefined;
1108
1107
  }) | ({
1109
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1108
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1110
1109
  content: {
1111
1110
  text: string;
1112
1111
  } & {
@@ -1165,142 +1164,141 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
1165
1164
  } & {
1166
1165
  label?: string;
1167
1166
  direction?: string;
1168
- }))[];
1169
- }> | import("fp-ts/lib/Either").Right<{
1170
- __TYPE__: "SeparatorContent";
1171
- }> | import("fp-ts/lib/Either").Right<{
1172
- content: {
1173
- type: "tableRow";
1174
- content: ({
1175
- type: "tableHeader";
1167
+ }) | {
1168
+ type: "table";
1169
+ content: {
1170
+ type: "tableRow";
1176
1171
  content: ({
1177
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1178
- content: {
1179
- text: string;
1172
+ type: "tableHeader";
1173
+ content: ({
1174
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1175
+ content: {
1176
+ text: string;
1177
+ } & {
1178
+ spans?: ({
1179
+ data: ({
1180
+ __TYPE__: "ImageLink";
1181
+ } & {
1182
+ kind: "image";
1183
+ id: string;
1184
+ url: string;
1185
+ height: string;
1186
+ width: string;
1187
+ size: string;
1188
+ name: string;
1189
+ } & {
1190
+ date?: string | null | undefined;
1191
+ }) | ({
1192
+ __TYPE__: "FileLink";
1193
+ } & {
1194
+ kind: "file";
1195
+ id: string;
1196
+ url: string;
1197
+ name: string;
1198
+ size: string;
1199
+ } & {
1200
+ date?: string | null | undefined;
1201
+ }) | ({
1202
+ __TYPE__: "DocumentLink";
1203
+ } & {
1204
+ id: string;
1205
+ }) | ({
1206
+ __TYPE__: "ExternalLink";
1207
+ } & {
1208
+ url: string;
1209
+ } & {
1210
+ kind?: "web";
1211
+ target?: string | null | undefined;
1212
+ preview?: {
1213
+ title?: string;
1214
+ } | null | undefined;
1215
+ });
1216
+ start: number;
1217
+ end: number;
1218
+ type: "hyperlink";
1219
+ } | {
1220
+ data: string;
1221
+ start: number;
1222
+ end: number;
1223
+ type: "label";
1224
+ } | {
1225
+ start: number;
1226
+ end: number;
1227
+ type: "strong" | "em" | "list-item";
1228
+ })[];
1229
+ };
1180
1230
  } & {
1181
- spans?: ({
1182
- data: ({
1183
- __TYPE__: "ImageLink";
1184
- } & {
1185
- kind: "image";
1186
- id: string;
1187
- url: string;
1188
- height: string;
1189
- width: string;
1190
- size: string;
1191
- name: string;
1192
- } & {
1193
- date?: string | null | undefined;
1194
- }) | ({
1195
- __TYPE__: "FileLink";
1196
- } & {
1197
- kind: "file";
1198
- id: string;
1199
- url: string;
1200
- name: string;
1201
- size: string;
1202
- } & {
1203
- date?: string | null | undefined;
1204
- }) | ({
1205
- __TYPE__: "DocumentLink";
1206
- } & {
1207
- id: string;
1208
- }) | ({
1209
- __TYPE__: "ExternalLink";
1210
- } & {
1211
- url: string;
1212
- } & {
1213
- kind?: "web";
1214
- target?: string | null | undefined;
1215
- preview?: {
1216
- title?: string;
1217
- } | null | undefined;
1218
- });
1219
- start: number;
1220
- end: number;
1221
- type: "hyperlink";
1222
- } | {
1223
- data: string;
1224
- start: number;
1225
- end: number;
1226
- type: "label";
1227
- } | {
1228
- start: number;
1229
- end: number;
1230
- type: "strong" | "em" | "list-item";
1231
- })[];
1232
- };
1233
- } & {
1234
- label?: string;
1235
- direction?: string;
1236
- })[];
1237
- } | {
1238
- type: "tableCell";
1239
- content: ({
1240
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1241
- content: {
1242
- text: string;
1231
+ label?: string;
1232
+ direction?: string;
1233
+ })[];
1234
+ } | {
1235
+ type: "tableCell";
1236
+ content: ({
1237
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1238
+ content: {
1239
+ text: string;
1240
+ } & {
1241
+ spans?: ({
1242
+ data: ({
1243
+ __TYPE__: "ImageLink";
1244
+ } & {
1245
+ kind: "image";
1246
+ id: string;
1247
+ url: string;
1248
+ height: string;
1249
+ width: string;
1250
+ size: string;
1251
+ name: string;
1252
+ } & {
1253
+ date?: string | null | undefined;
1254
+ }) | ({
1255
+ __TYPE__: "FileLink";
1256
+ } & {
1257
+ kind: "file";
1258
+ id: string;
1259
+ url: string;
1260
+ name: string;
1261
+ size: string;
1262
+ } & {
1263
+ date?: string | null | undefined;
1264
+ }) | ({
1265
+ __TYPE__: "DocumentLink";
1266
+ } & {
1267
+ id: string;
1268
+ }) | ({
1269
+ __TYPE__: "ExternalLink";
1270
+ } & {
1271
+ url: string;
1272
+ } & {
1273
+ kind?: "web";
1274
+ target?: string | null | undefined;
1275
+ preview?: {
1276
+ title?: string;
1277
+ } | null | undefined;
1278
+ });
1279
+ start: number;
1280
+ end: number;
1281
+ type: "hyperlink";
1282
+ } | {
1283
+ data: string;
1284
+ start: number;
1285
+ end: number;
1286
+ type: "label";
1287
+ } | {
1288
+ start: number;
1289
+ end: number;
1290
+ type: "strong" | "em" | "list-item";
1291
+ })[];
1292
+ };
1243
1293
  } & {
1244
- spans?: ({
1245
- data: ({
1246
- __TYPE__: "ImageLink";
1247
- } & {
1248
- kind: "image";
1249
- id: string;
1250
- url: string;
1251
- height: string;
1252
- width: string;
1253
- size: string;
1254
- name: string;
1255
- } & {
1256
- date?: string | null | undefined;
1257
- }) | ({
1258
- __TYPE__: "FileLink";
1259
- } & {
1260
- kind: "file";
1261
- id: string;
1262
- url: string;
1263
- name: string;
1264
- size: string;
1265
- } & {
1266
- date?: string | null | undefined;
1267
- }) | ({
1268
- __TYPE__: "DocumentLink";
1269
- } & {
1270
- id: string;
1271
- }) | ({
1272
- __TYPE__: "ExternalLink";
1273
- } & {
1274
- url: string;
1275
- } & {
1276
- kind?: "web";
1277
- target?: string | null | undefined;
1278
- preview?: {
1279
- title?: string;
1280
- } | null | undefined;
1281
- });
1282
- start: number;
1283
- end: number;
1284
- type: "hyperlink";
1285
- } | {
1286
- data: string;
1287
- start: number;
1288
- end: number;
1289
- type: "label";
1290
- } | {
1291
- start: number;
1292
- end: number;
1293
- type: "strong" | "em" | "list-item";
1294
- })[];
1295
- };
1296
- } & {
1297
- label?: string;
1298
- direction?: string;
1294
+ label?: string;
1295
+ direction?: string;
1296
+ })[];
1299
1297
  })[];
1300
- })[];
1301
- }[];
1302
- } & {
1303
- __TYPE__: "TableContent";
1298
+ }[];
1299
+ })[];
1300
+ }> | import("fp-ts/lib/Either").Right<{
1301
+ __TYPE__: "SeparatorContent";
1304
1302
  }> | t.Validation<GroupContent> | undefined;
1305
1303
  encode(value: SlicePrimaryContent): import("../../../LegacyContentCtx").WithTypes<unknown> | undefined;
1306
1304
  };
@@ -1663,7 +1661,7 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
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,140 +1720,139 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
1722
1720
  } & {
1723
1721
  label?: string;
1724
1722
  direction?: string;
1725
- }))[];
1726
- } | {
1727
- __TYPE__: "SeparatorContent";
1728
- } | ({
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";
1861
- });
1854
+ }[];
1855
+ })[];
1856
+ } | {
1857
+ __TYPE__: "SeparatorContent";
1858
+ };