@prismicio/types-internal 3.4.0-alpha.9 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/lib/content/Document.d.ts +2958 -5496
  2. package/lib/content/Document.js +8 -0
  3. package/lib/content/fields/GroupContent.d.ts +1 -1
  4. package/lib/content/fields/GroupContent.js +15 -7
  5. package/lib/content/fields/WidgetContent.d.ts +3268 -5806
  6. package/lib/content/fields/nestable/NestableContent.d.ts +399 -822
  7. package/lib/content/fields/nestable/NestableContent.js +7 -8
  8. package/lib/content/fields/nestable/RepeatableContent.d.ts +2 -2
  9. package/lib/content/fields/nestable/RepeatableContent.js +5 -2
  10. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +112 -0
  11. package/lib/content/fields/nestable/RichTextContent/Blocks.js +5 -5
  12. package/lib/content/fields/nestable/RichTextContent/index.d.ts +310 -641
  13. package/lib/content/fields/nestable/RichTextContent/index.js +7 -11
  14. package/lib/content/fields/nestable/TableContent.d.ts +545 -1130
  15. package/lib/content/fields/nestable/TableContent.js +88 -21
  16. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +701 -1547
  17. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +140 -357
  18. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +701 -1547
  19. package/lib/content/fields/slices/Slice/SharedSliceContent.js +12 -0
  20. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +399 -822
  21. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +392 -815
  22. package/lib/content/fields/slices/Slice/index.d.ts +1315 -2915
  23. package/lib/content/fields/slices/SliceItem.d.ts +1364 -2964
  24. package/lib/content/fields/slices/SlicesContent.d.ts +1861 -3976
  25. package/lib/customtypes/CustomType.d.ts +108 -0
  26. package/lib/customtypes/Section.d.ts +108 -0
  27. package/lib/customtypes/diff/SharedSlice.d.ts +48 -0
  28. package/lib/customtypes/diff/Variation.d.ts +48 -0
  29. package/lib/customtypes/widgets/Group.d.ts +36 -0
  30. package/lib/customtypes/widgets/Widget.d.ts +126 -0
  31. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +6 -0
  32. package/lib/customtypes/widgets/nestable/NestableWidget.js +2 -0
  33. package/lib/customtypes/widgets/nestable/RichText.d.ts +0 -2
  34. package/lib/customtypes/widgets/nestable/RichText.js +0 -2
  35. package/lib/customtypes/widgets/nestable/Table.d.ts +6 -0
  36. package/lib/customtypes/widgets/nestable/Table.js +13 -1
  37. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +12 -0
  38. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +12 -0
  39. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +48 -0
  40. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +36 -0
  41. package/lib/customtypes/widgets/slices/Slices.d.ts +168 -0
  42. package/package.json +1 -1
  43. package/src/content/Document.ts +9 -0
  44. package/src/content/fields/GroupContent.ts +17 -11
  45. package/src/content/fields/nestable/NestableContent.ts +13 -9
  46. package/src/content/fields/nestable/RepeatableContent.ts +6 -2
  47. package/src/content/fields/nestable/RichTextContent/Blocks.ts +238 -0
  48. package/src/content/fields/nestable/RichTextContent/index.ts +9 -13
  49. package/src/content/fields/nestable/TableContent.ts +115 -31
  50. package/src/content/fields/slices/Slice/SharedSliceContent.ts +13 -0
  51. package/src/customtypes/widgets/nestable/NestableWidget.ts +2 -0
  52. package/src/customtypes/widgets/nestable/RichText.ts +0 -2
  53. package/src/customtypes/widgets/nestable/Table.ts +13 -0
  54. package/lib/content/fields/nestable/RichTextContent/Block.d.ts +0 -1036
  55. package/lib/content/fields/nestable/RichTextContent/Block.js +0 -31
  56. package/lib/content/fields/nestable/RichTextContent/EmbedBlock.d.ts +0 -60
  57. package/lib/content/fields/nestable/RichTextContent/EmbedBlock.js +0 -53
  58. package/lib/content/fields/nestable/RichTextContent/ImageBlock.d.ts +0 -203
  59. package/lib/content/fields/nestable/RichTextContent/ImageBlock.js +0 -36
  60. package/lib/content/fields/nestable/RichTextContent/TableBlock.d.ts +0 -500
  61. package/lib/content/fields/nestable/RichTextContent/TableBlock.js +0 -21
  62. package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +0 -590
  63. package/lib/content/fields/nestable/RichTextContent/TextBlock.js +0 -80
  64. package/src/content/fields/nestable/RichTextContent/Block.ts +0 -35
  65. package/src/content/fields/nestable/RichTextContent/EmbedBlock.ts +0 -81
  66. package/src/content/fields/nestable/RichTextContent/ImageBlock.ts +0 -42
  67. package/src/content/fields/nestable/RichTextContent/TableBlock.ts +0 -36
  68. package/src/content/fields/nestable/RichTextContent/TextBlock.ts +0 -108
@@ -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" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", unknown>;
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>;
324
324
  content: t.IntersectionC<[t.TypeC<{
325
325
  text: t.StringC;
326
326
  }>, t.PartialC<{
@@ -429,127 +429,145 @@ 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
- }>]>>, t.ExactC<t.TypeC<{
433
- type: t.LiteralC<"table">;
432
+ }>]>>]>>;
433
+ }>>, t.ExactC<t.TypeC<{
434
+ __TYPE__: t.LiteralC<"SeparatorContent">;
435
+ }>>, t.ExactC<t.TypeC<{
436
+ __TYPE__: t.LiteralC<"TableContent">;
437
+ content: t.ArrayC<t.ExactC<t.TypeC<{
438
+ type: t.LiteralC<"tableRow">;
434
439
  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;
440
+ type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
441
+ content: t.ExactC<t.TypeC<{
442
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
443
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
444
+ type: t.LiteralC<"image">;
445
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
446
+ origin: t.ExactC<t.TypeC<{
447
+ id: t.StringC;
448
+ url: t.StringC;
449
+ width: t.NumberC;
450
+ height: t.NumberC;
451
+ }>>;
452
+ width: t.NumberC;
453
+ height: t.NumberC;
454
+ edit: t.TypeC<{
455
+ zoom: t.NumberC;
456
+ crop: t.TypeC<{
457
+ x: t.NumberC;
458
+ y: t.NumberC;
459
+ }>;
460
+ background: t.StringC;
461
+ }>;
442
462
  }>, 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>;
463
+ url: t.StringC;
464
+ credits: t.Type<string | null, string | null, unknown>;
465
+ alt: t.Type<string | null, string | null, unknown>;
466
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
467
+ }>]>>, t.PartialC<{
468
+ linkTo: t.UnionC<[t.Type<({
469
+ __TYPE__: "ImageLink";
470
+ } & {
471
+ kind: "image";
472
+ id: string;
473
+ url: string;
474
+ height: string;
475
+ width: string;
476
+ size: string;
477
+ name: string;
478
+ } & {
479
+ date?: string | null | undefined;
480
+ }) | ({
481
+ __TYPE__: "FileLink";
482
+ } & {
483
+ kind: "file";
484
+ id: string;
485
+ url: string;
486
+ name: string;
487
+ size: string;
488
+ } & {
489
+ date?: string | null | undefined;
490
+ }) | ({
491
+ __TYPE__: "DocumentLink";
492
+ } & {
493
+ id: string;
494
+ }) | ({
495
+ __TYPE__: "ExternalLink";
496
+ } & {
497
+ url: string;
498
+ } & {
499
+ kind?: "web";
500
+ target?: string | null | undefined;
501
+ preview?: {
502
+ title?: string;
503
+ } | null | undefined;
504
+ }), ({
505
+ __TYPE__: "ImageLink";
506
+ } & {
507
+ kind: "image";
508
+ id: string;
509
+ url: string;
510
+ height: string;
511
+ width: string;
512
+ size: string;
513
+ name: string;
514
+ } & {
515
+ date?: string | null | undefined;
516
+ }) | ({
517
+ __TYPE__: "FileLink";
518
+ } & {
519
+ kind: "file";
520
+ id: string;
521
+ url: string;
522
+ name: string;
523
+ size: string;
524
+ } & {
525
+ date?: string | null | undefined;
526
+ }) | ({
527
+ __TYPE__: "DocumentLink";
528
+ } & {
529
+ id: string;
530
+ }) | ({
531
+ __TYPE__: "ExternalLink";
532
+ } & {
533
+ url: string;
534
+ } & {
535
+ kind?: "web";
536
+ target?: string | null | undefined;
537
+ preview?: {
538
+ title?: string;
539
+ } | null | undefined;
540
+ }), unknown>, t.NullC, t.UndefinedC]>;
544
541
  }>]>;
545
542
  }>, t.PartialC<{
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>;
543
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
544
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
545
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
546
+ type: t.LiteralC<"embed">;
547
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
548
+ embed_url: t.StringC;
549
+ type: t.StringC;
550
+ }>, t.PartialC<{
551
+ version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
552
+ title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
553
+ author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
554
+ author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
555
+ provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
556
+ provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
557
+ cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
558
+ thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
559
+ thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
560
+ thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
561
+ html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
562
+ }>]>>, t.ExactC<t.TypeC<{
563
+ __TYPE__: t.LiteralC<"EmbedContent">;
564
+ all: t.UnknownC;
565
+ }>>]>;
566
+ }>, t.PartialC<{
567
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
568
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
569
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
570
+ 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>;
553
571
  content: t.IntersectionC<[t.TypeC<{
554
572
  text: t.StringC;
555
573
  }>, t.PartialC<{
@@ -658,12 +676,10 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
658
676
  }>, t.PartialC<{
659
677
  label: t.StringC;
660
678
  direction: t.StringC;
661
- }>]>>>;
662
- }>>]>>;
679
+ }>]>>]>>;
680
+ }>>;
663
681
  }>>>;
664
- }>>]>>;
665
- }>>, t.ExactC<t.TypeC<{
666
- __TYPE__: t.LiteralC<"SeparatorContent">;
682
+ }>>>;
667
683
  }>>, t.ExactC<t.TypeC<{
668
684
  __TYPE__: t.LiteralC<"RepeatableContent">;
669
685
  type: t.LiteralC<"Link">;
@@ -705,280 +721,47 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
705
721
  variant: t.StringC;
706
722
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
707
723
  __TYPE__: t.LiteralC<"DocumentLink">;
708
- }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
709
- id: t.Type<string, string, unknown>;
710
- }>>, t.ExactC<t.TypeC<{
711
- kind: t.LiteralC<"document">;
712
- }>>]>, t.ExactC<t.PartialC<{
713
- text: t.StringC;
714
- variant: t.StringC;
715
- }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
716
- __TYPE__: t.LiteralC<"ExternalLink">;
717
- }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
718
- url: t.StringC;
719
- }>, t.PartialC<{
720
- kind: t.LiteralC<"web">;
721
- target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
722
- preview: t.UnionC<[t.Type<{
723
- title?: string;
724
- }, {
725
- title?: string;
726
- }, unknown>, t.NullC, t.UndefinedC]>;
727
- }>]>>, t.ExactC<t.TypeC<{
728
- kind: t.LiteralC<"web">;
729
- }>>]>, t.ExactC<t.PartialC<{
730
- text: t.StringC;
731
- variant: t.StringC;
732
- }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
733
- __TYPE__: t.LiteralC<"MediaLink">;
734
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
735
- kind: t.LiteralC<"media">;
736
- }>>, t.ExactC<t.PartialC<{
737
- text: t.StringC;
738
- variant: t.StringC;
739
- }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
740
- __TYPE__: t.LiteralC<"AnyLink">;
741
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
742
- kind: t.LiteralC<"any">;
743
- }>, t.PartialC<{
744
- text: t.StringC;
745
- variant: t.StringC;
746
- }>]>>]>]>;
747
- }>>]>>;
748
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
749
- content: t.ArrayC<t.ExactC<t.TypeC<{
750
- type: t.LiteralC<"tableRow">;
751
- content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
752
- type: t.LiteralC<"tableHeader">;
753
- content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
754
- 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>;
755
- content: t.IntersectionC<[t.TypeC<{
756
- text: t.StringC;
757
- }>, t.PartialC<{
758
- spans: t.Type<({
759
- data: ({
760
- __TYPE__: "ImageLink";
761
- } & {
762
- kind: "image";
763
- id: string;
764
- url: string;
765
- height: string;
766
- width: string;
767
- size: string;
768
- name: string;
769
- } & {
770
- date?: string | null | undefined;
771
- }) | ({
772
- __TYPE__: "FileLink";
773
- } & {
774
- kind: "file";
775
- id: string;
776
- url: string;
777
- name: string;
778
- size: string;
779
- } & {
780
- date?: string | null | undefined;
781
- }) | ({
782
- __TYPE__: "DocumentLink";
783
- } & {
784
- id: string;
785
- }) | ({
786
- __TYPE__: "ExternalLink";
787
- } & {
788
- url: string;
789
- } & {
790
- kind?: "web";
791
- target?: string | null | undefined;
792
- preview?: {
793
- title?: string;
794
- } | null | undefined;
795
- });
796
- start: number;
797
- end: number;
798
- type: "hyperlink";
799
- } | {
800
- data: string;
801
- start: number;
802
- end: number;
803
- type: "label";
804
- } | {
805
- start: number;
806
- end: number;
807
- type: "strong" | "em" | "list-item";
808
- })[], ({
809
- data: ({
810
- __TYPE__: "ImageLink";
811
- } & {
812
- kind: "image";
813
- id: string;
814
- url: string;
815
- height: string;
816
- width: string;
817
- size: string;
818
- name: string;
819
- } & {
820
- date?: string | null | undefined;
821
- }) | ({
822
- __TYPE__: "FileLink";
823
- } & {
824
- kind: "file";
825
- id: string;
826
- url: string;
827
- name: string;
828
- size: string;
829
- } & {
830
- date?: string | null | undefined;
831
- }) | ({
832
- __TYPE__: "DocumentLink";
833
- } & {
834
- id: string;
835
- }) | ({
836
- __TYPE__: "ExternalLink";
837
- } & {
838
- url: string;
839
- } & {
840
- kind?: "web";
841
- target?: string | null | undefined;
842
- preview?: {
843
- title?: string;
844
- } | null | undefined;
845
- });
846
- start: number;
847
- end: number;
848
- type: "hyperlink";
849
- } | {
850
- data: string;
851
- start: number;
852
- end: number;
853
- type: "label";
854
- } | {
855
- start: number;
856
- end: number;
857
- type: "strong" | "em" | "list-item";
858
- })[], unknown>;
859
- }>]>;
860
- }>, t.PartialC<{
861
- label: t.StringC;
862
- direction: t.StringC;
863
- }>]>>>;
864
- }>>, t.ExactC<t.TypeC<{
865
- type: t.LiteralC<"tableCell">;
866
- content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
867
- 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>;
868
- content: t.IntersectionC<[t.TypeC<{
869
- text: t.StringC;
870
- }>, t.PartialC<{
871
- spans: t.Type<({
872
- data: ({
873
- __TYPE__: "ImageLink";
874
- } & {
875
- kind: "image";
876
- id: string;
877
- url: string;
878
- height: string;
879
- width: string;
880
- size: string;
881
- name: string;
882
- } & {
883
- date?: string | null | undefined;
884
- }) | ({
885
- __TYPE__: "FileLink";
886
- } & {
887
- kind: "file";
888
- id: string;
889
- url: string;
890
- name: string;
891
- size: string;
892
- } & {
893
- date?: string | null | undefined;
894
- }) | ({
895
- __TYPE__: "DocumentLink";
896
- } & {
897
- id: string;
898
- }) | ({
899
- __TYPE__: "ExternalLink";
900
- } & {
901
- url: string;
902
- } & {
903
- kind?: "web";
904
- target?: string | null | undefined;
905
- preview?: {
906
- title?: string;
907
- } | null | undefined;
908
- });
909
- start: number;
910
- end: number;
911
- type: "hyperlink";
912
- } | {
913
- data: string;
914
- start: number;
915
- end: number;
916
- type: "label";
917
- } | {
918
- start: number;
919
- end: number;
920
- type: "strong" | "em" | "list-item";
921
- })[], ({
922
- data: ({
923
- __TYPE__: "ImageLink";
924
- } & {
925
- kind: "image";
926
- id: string;
927
- url: string;
928
- height: string;
929
- width: string;
930
- size: string;
931
- name: string;
932
- } & {
933
- date?: string | null | undefined;
934
- }) | ({
935
- __TYPE__: "FileLink";
936
- } & {
937
- kind: "file";
938
- id: string;
939
- url: string;
940
- name: string;
941
- size: string;
942
- } & {
943
- date?: string | null | undefined;
944
- }) | ({
945
- __TYPE__: "DocumentLink";
946
- } & {
947
- id: string;
948
- }) | ({
949
- __TYPE__: "ExternalLink";
950
- } & {
951
- url: string;
952
- } & {
953
- kind?: "web";
954
- target?: string | null | undefined;
955
- preview?: {
956
- title?: string;
957
- } | null | undefined;
958
- });
959
- start: number;
960
- end: number;
961
- type: "hyperlink";
962
- } | {
963
- data: string;
964
- start: number;
965
- end: number;
966
- type: "label";
967
- } | {
968
- start: number;
969
- end: number;
970
- type: "strong" | "em" | "list-item";
971
- })[], unknown>;
972
- }>]>;
973
- }>, t.PartialC<{
974
- label: t.StringC;
975
- direction: t.StringC;
976
- }>]>>>;
977
- }>>]>>;
978
- }>>>;
979
- }>>, t.ExactC<t.TypeC<{
980
- __TYPE__: t.LiteralC<"TableContent">;
981
- }>>]>]>, t.Type<GroupContent, GroupContent, unknown>]>;
724
+ }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
725
+ id: t.Type<string, string, unknown>;
726
+ }>>, t.ExactC<t.TypeC<{
727
+ kind: t.LiteralC<"document">;
728
+ }>>]>, t.ExactC<t.PartialC<{
729
+ text: t.StringC;
730
+ variant: t.StringC;
731
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
732
+ __TYPE__: t.LiteralC<"ExternalLink">;
733
+ }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
734
+ url: t.StringC;
735
+ }>, t.PartialC<{
736
+ kind: t.LiteralC<"web">;
737
+ target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
738
+ preview: t.UnionC<[t.Type<{
739
+ title?: string;
740
+ }, {
741
+ title?: string;
742
+ }, unknown>, t.NullC, t.UndefinedC]>;
743
+ }>]>>, t.ExactC<t.TypeC<{
744
+ kind: t.LiteralC<"web">;
745
+ }>>]>, t.ExactC<t.PartialC<{
746
+ text: t.StringC;
747
+ variant: t.StringC;
748
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
749
+ __TYPE__: t.LiteralC<"MediaLink">;
750
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
751
+ kind: t.LiteralC<"media">;
752
+ }>>, t.ExactC<t.PartialC<{
753
+ text: t.StringC;
754
+ variant: t.StringC;
755
+ }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
756
+ __TYPE__: t.LiteralC<"AnyLink">;
757
+ }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
758
+ kind: t.LiteralC<"any">;
759
+ }>, t.PartialC<{
760
+ text: t.StringC;
761
+ variant: t.StringC;
762
+ }>]>>]>]>;
763
+ }>>]>>;
764
+ }>>]>, t.Type<GroupContent, GroupContent, unknown>]>;
982
765
  export declare type SimpleSliceContent = t.TypeOf<typeof SimpleSliceContent>;
983
766
  export declare const isSimpleSliceContent: (u: unknown) => u is {
984
767
  type: string;
@@ -1339,7 +1122,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
1339
1122
  label?: string | null | undefined;
1340
1123
  direction?: string | null | undefined;
1341
1124
  }) | ({
1342
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1125
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1343
1126
  content: {
1344
1127
  text: string;
1345
1128
  } & {
@@ -1398,77 +1181,109 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
1398
1181
  } & {
1399
1182
  label?: string;
1400
1183
  direction?: string;
1401
- }) | {
1402
- type: "table";
1184
+ }))[];
1185
+ } | {
1186
+ __TYPE__: "SeparatorContent";
1187
+ } | {
1188
+ __TYPE__: "TableContent";
1189
+ content: {
1190
+ type: "tableRow";
1403
1191
  content: {
1404
- type: "tableRow";
1405
- content: ({
1406
- type: "tableHeader";
1407
- content: ({
1408
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1409
- content: {
1410
- text: string;
1192
+ type: "tableHeader" | "tableCell";
1193
+ content: {
1194
+ __TYPE__: "StructuredTextContent";
1195
+ value: (({
1196
+ type: "image";
1197
+ data: {
1198
+ origin: {
1199
+ id: string;
1200
+ url: string;
1201
+ width: number;
1202
+ height: number;
1203
+ };
1204
+ width: number;
1205
+ height: number;
1206
+ edit: {
1207
+ zoom: number;
1208
+ crop: {
1209
+ x: number;
1210
+ y: number;
1211
+ };
1212
+ background: string;
1213
+ };
1411
1214
  } & {
1412
- spans?: ({
1413
- data: ({
1414
- __TYPE__: "ImageLink";
1415
- } & {
1416
- kind: "image";
1417
- id: string;
1418
- url: string;
1419
- height: string;
1420
- width: string;
1421
- size: string;
1422
- name: string;
1423
- } & {
1424
- date?: string | null | undefined;
1425
- }) | ({
1426
- __TYPE__: "FileLink";
1427
- } & {
1428
- kind: "file";
1429
- id: string;
1430
- url: string;
1431
- name: string;
1432
- size: string;
1433
- } & {
1434
- date?: string | null | undefined;
1435
- }) | ({
1436
- __TYPE__: "DocumentLink";
1437
- } & {
1438
- id: string;
1439
- }) | ({
1440
- __TYPE__: "ExternalLink";
1441
- } & {
1442
- url: string;
1443
- } & {
1444
- kind?: "web";
1445
- target?: string | null | undefined;
1446
- preview?: {
1447
- title?: string;
1448
- } | null | undefined;
1449
- });
1450
- start: number;
1451
- end: number;
1452
- type: "hyperlink";
1453
- } | {
1454
- data: string;
1455
- start: number;
1456
- end: number;
1457
- type: "label";
1458
- } | {
1459
- start: number;
1460
- end: number;
1461
- type: "strong" | "em" | "list-item";
1462
- })[];
1215
+ url?: string;
1216
+ credits?: string | null;
1217
+ alt?: string | null;
1218
+ provider?: string | null | undefined;
1219
+ } & {
1220
+ linkTo?: ({
1221
+ __TYPE__: "ImageLink";
1222
+ } & {
1223
+ kind: "image";
1224
+ id: string;
1225
+ url: string;
1226
+ height: string;
1227
+ width: string;
1228
+ size: string;
1229
+ name: string;
1230
+ } & {
1231
+ date?: string | null | undefined;
1232
+ }) | ({
1233
+ __TYPE__: "FileLink";
1234
+ } & {
1235
+ kind: "file";
1236
+ id: string;
1237
+ url: string;
1238
+ name: string;
1239
+ size: string;
1240
+ } & {
1241
+ date?: string | null | undefined;
1242
+ }) | ({
1243
+ __TYPE__: "DocumentLink";
1244
+ } & {
1245
+ id: string;
1246
+ }) | ({
1247
+ __TYPE__: "ExternalLink";
1248
+ } & {
1249
+ url: string;
1250
+ } & {
1251
+ kind?: "web";
1252
+ target?: string | null | undefined;
1253
+ preview?: {
1254
+ title?: string;
1255
+ } | null | undefined;
1256
+ }) | null | undefined;
1463
1257
  };
1464
1258
  } & {
1465
- label?: string;
1466
- direction?: string;
1467
- })[];
1468
- } | {
1469
- type: "tableCell";
1470
- content: ({
1471
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1259
+ label?: string | null | undefined;
1260
+ direction?: string | null | undefined;
1261
+ }) | ({
1262
+ type: "embed";
1263
+ data: {
1264
+ embed_url: string;
1265
+ type: string;
1266
+ } & {
1267
+ version?: string | number | null;
1268
+ title?: string | null | undefined;
1269
+ author_name?: string | null | undefined;
1270
+ author_url?: string | null | undefined;
1271
+ provider_name?: string | null | undefined;
1272
+ provider_url?: string | null | undefined;
1273
+ cache_age?: string | number | null;
1274
+ thumbnail_url?: string | null | undefined;
1275
+ thumbnail_width?: number | null | undefined;
1276
+ thumbnail_height?: number | null | undefined;
1277
+ html?: string | null | undefined;
1278
+ } & {
1279
+ __TYPE__: "EmbedContent";
1280
+ all: unknown;
1281
+ };
1282
+ } & {
1283
+ label?: string | null | undefined;
1284
+ direction?: string | null | undefined;
1285
+ }) | ({
1286
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1472
1287
  content: {
1473
1288
  text: string;
1474
1289
  } & {
@@ -1514,159 +1329,24 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
1514
1329
  end: number;
1515
1330
  type: "hyperlink";
1516
1331
  } | {
1517
- data: string;
1518
- start: number;
1519
- end: number;
1520
- type: "label";
1521
- } | {
1522
- start: number;
1523
- end: number;
1524
- type: "strong" | "em" | "list-item";
1525
- })[];
1526
- };
1527
- } & {
1528
- label?: string;
1529
- direction?: string;
1530
- })[];
1531
- })[];
1532
- }[];
1533
- })[];
1534
- } | {
1535
- __TYPE__: "SeparatorContent";
1536
- } | ({
1537
- content: {
1538
- type: "tableRow";
1539
- content: ({
1540
- type: "tableHeader";
1541
- content: ({
1542
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1543
- content: {
1544
- text: string;
1545
- } & {
1546
- spans?: ({
1547
- data: ({
1548
- __TYPE__: "ImageLink";
1549
- } & {
1550
- kind: "image";
1551
- id: string;
1552
- url: string;
1553
- height: string;
1554
- width: string;
1555
- size: string;
1556
- name: string;
1557
- } & {
1558
- date?: string | null | undefined;
1559
- }) | ({
1560
- __TYPE__: "FileLink";
1561
- } & {
1562
- kind: "file";
1563
- id: string;
1564
- url: string;
1565
- name: string;
1566
- size: string;
1567
- } & {
1568
- date?: string | null | undefined;
1569
- }) | ({
1570
- __TYPE__: "DocumentLink";
1571
- } & {
1572
- id: string;
1573
- }) | ({
1574
- __TYPE__: "ExternalLink";
1575
- } & {
1576
- url: string;
1577
- } & {
1578
- kind?: "web";
1579
- target?: string | null | undefined;
1580
- preview?: {
1581
- title?: string;
1582
- } | null | undefined;
1583
- });
1584
- start: number;
1585
- end: number;
1586
- type: "hyperlink";
1587
- } | {
1588
- data: string;
1589
- start: number;
1590
- end: number;
1591
- type: "label";
1592
- } | {
1593
- start: number;
1594
- end: number;
1595
- type: "strong" | "em" | "list-item";
1596
- })[];
1597
- };
1598
- } & {
1599
- label?: string;
1600
- direction?: string;
1601
- })[];
1602
- } | {
1603
- type: "tableCell";
1604
- content: ({
1605
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1606
- content: {
1607
- text: string;
1608
- } & {
1609
- spans?: ({
1610
- data: ({
1611
- __TYPE__: "ImageLink";
1612
- } & {
1613
- kind: "image";
1614
- id: string;
1615
- url: string;
1616
- height: string;
1617
- width: string;
1618
- size: string;
1619
- name: string;
1620
- } & {
1621
- date?: string | null | undefined;
1622
- }) | ({
1623
- __TYPE__: "FileLink";
1624
- } & {
1625
- kind: "file";
1626
- id: string;
1627
- url: string;
1628
- name: string;
1629
- size: string;
1630
- } & {
1631
- date?: string | null | undefined;
1632
- }) | ({
1633
- __TYPE__: "DocumentLink";
1634
- } & {
1635
- id: string;
1636
- }) | ({
1637
- __TYPE__: "ExternalLink";
1638
- } & {
1639
- url: string;
1640
- } & {
1641
- kind?: "web";
1642
- target?: string | null | undefined;
1643
- preview?: {
1644
- title?: string;
1645
- } | null | undefined;
1646
- });
1647
- start: number;
1648
- end: number;
1649
- type: "hyperlink";
1650
- } | {
1651
- data: string;
1652
- start: number;
1653
- end: number;
1654
- type: "label";
1655
- } | {
1656
- start: number;
1657
- end: number;
1658
- type: "strong" | "em" | "list-item";
1659
- })[];
1660
- };
1661
- } & {
1662
- label?: string;
1663
- direction?: string;
1664
- })[];
1665
- })[];
1332
+ data: string;
1333
+ start: number;
1334
+ end: number;
1335
+ type: "label";
1336
+ } | {
1337
+ start: number;
1338
+ end: number;
1339
+ type: "strong" | "em" | "list-item";
1340
+ })[];
1341
+ };
1342
+ } & {
1343
+ label?: string;
1344
+ direction?: string;
1345
+ }))[];
1346
+ };
1347
+ }[];
1666
1348
  }[];
1667
- } & {
1668
- __TYPE__: "TableContent";
1669
- });
1349
+ };
1670
1350
  export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
1671
1351
  decode: ((value: unknown) => import("fp-ts/lib/Either").Left<t.Errors> | import("fp-ts/lib/Either").Right<{
1672
1352
  type: string;
@@ -2027,7 +1707,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
2027
1707
  label?: string | null | undefined;
2028
1708
  direction?: string | null | undefined;
2029
1709
  }) | ({
2030
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1710
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2031
1711
  content: {
2032
1712
  text: string;
2033
1713
  } & {
@@ -2086,77 +1766,109 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
2086
1766
  } & {
2087
1767
  label?: string;
2088
1768
  direction?: string;
2089
- }) | {
2090
- type: "table";
1769
+ }))[];
1770
+ }> | import("fp-ts/lib/Either").Right<{
1771
+ __TYPE__: "SeparatorContent";
1772
+ }> | import("fp-ts/lib/Either").Right<{
1773
+ __TYPE__: "TableContent";
1774
+ content: {
1775
+ type: "tableRow";
2091
1776
  content: {
2092
- type: "tableRow";
2093
- content: ({
2094
- type: "tableHeader";
2095
- content: ({
2096
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
2097
- content: {
2098
- text: string;
1777
+ type: "tableHeader" | "tableCell";
1778
+ content: {
1779
+ __TYPE__: "StructuredTextContent";
1780
+ value: (({
1781
+ type: "image";
1782
+ data: {
1783
+ origin: {
1784
+ id: string;
1785
+ url: string;
1786
+ width: number;
1787
+ height: number;
1788
+ };
1789
+ width: number;
1790
+ height: number;
1791
+ edit: {
1792
+ zoom: number;
1793
+ crop: {
1794
+ x: number;
1795
+ y: number;
1796
+ };
1797
+ background: string;
1798
+ };
2099
1799
  } & {
2100
- spans?: ({
2101
- data: ({
2102
- __TYPE__: "ImageLink";
2103
- } & {
2104
- kind: "image";
2105
- id: string;
2106
- url: string;
2107
- height: string;
2108
- width: string;
2109
- size: string;
2110
- name: string;
2111
- } & {
2112
- date?: string | null | undefined;
2113
- }) | ({
2114
- __TYPE__: "FileLink";
2115
- } & {
2116
- kind: "file";
2117
- id: string;
2118
- url: string;
2119
- name: string;
2120
- size: string;
2121
- } & {
2122
- date?: string | null | undefined;
2123
- }) | ({
2124
- __TYPE__: "DocumentLink";
2125
- } & {
2126
- id: string;
2127
- }) | ({
2128
- __TYPE__: "ExternalLink";
2129
- } & {
2130
- url: string;
2131
- } & {
2132
- kind?: "web";
2133
- target?: string | null | undefined;
2134
- preview?: {
2135
- title?: string;
2136
- } | null | undefined;
2137
- });
2138
- start: number;
2139
- end: number;
2140
- type: "hyperlink";
2141
- } | {
2142
- data: string;
2143
- start: number;
2144
- end: number;
2145
- type: "label";
2146
- } | {
2147
- start: number;
2148
- end: number;
2149
- type: "strong" | "em" | "list-item";
2150
- })[];
1800
+ url?: string;
1801
+ credits?: string | null;
1802
+ alt?: string | null;
1803
+ provider?: string | null | undefined;
1804
+ } & {
1805
+ linkTo?: ({
1806
+ __TYPE__: "ImageLink";
1807
+ } & {
1808
+ kind: "image";
1809
+ id: string;
1810
+ url: string;
1811
+ height: string;
1812
+ width: string;
1813
+ size: string;
1814
+ name: string;
1815
+ } & {
1816
+ date?: string | null | undefined;
1817
+ }) | ({
1818
+ __TYPE__: "FileLink";
1819
+ } & {
1820
+ kind: "file";
1821
+ id: string;
1822
+ url: string;
1823
+ name: string;
1824
+ size: string;
1825
+ } & {
1826
+ date?: string | null | undefined;
1827
+ }) | ({
1828
+ __TYPE__: "DocumentLink";
1829
+ } & {
1830
+ id: string;
1831
+ }) | ({
1832
+ __TYPE__: "ExternalLink";
1833
+ } & {
1834
+ url: string;
1835
+ } & {
1836
+ kind?: "web";
1837
+ target?: string | null | undefined;
1838
+ preview?: {
1839
+ title?: string;
1840
+ } | null | undefined;
1841
+ }) | null | undefined;
2151
1842
  };
2152
1843
  } & {
2153
- label?: string;
2154
- direction?: string;
2155
- })[];
2156
- } | {
2157
- type: "tableCell";
2158
- content: ({
2159
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1844
+ label?: string | null | undefined;
1845
+ direction?: string | null | undefined;
1846
+ }) | ({
1847
+ type: "embed";
1848
+ data: {
1849
+ embed_url: string;
1850
+ type: string;
1851
+ } & {
1852
+ version?: string | number | null;
1853
+ title?: string | null | undefined;
1854
+ author_name?: string | null | undefined;
1855
+ author_url?: string | null | undefined;
1856
+ provider_name?: string | null | undefined;
1857
+ provider_url?: string | null | undefined;
1858
+ cache_age?: string | number | null;
1859
+ thumbnail_url?: string | null | undefined;
1860
+ thumbnail_width?: number | null | undefined;
1861
+ thumbnail_height?: number | null | undefined;
1862
+ html?: string | null | undefined;
1863
+ } & {
1864
+ __TYPE__: "EmbedContent";
1865
+ all: unknown;
1866
+ };
1867
+ } & {
1868
+ label?: string | null | undefined;
1869
+ direction?: string | null | undefined;
1870
+ }) | ({
1871
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2160
1872
  content: {
2161
1873
  text: string;
2162
1874
  } & {
@@ -2215,145 +1927,10 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
2215
1927
  } & {
2216
1928
  label?: string;
2217
1929
  direction?: string;
2218
- })[];
2219
- })[];
1930
+ }))[];
1931
+ };
2220
1932
  }[];
2221
- })[];
2222
- }> | import("fp-ts/lib/Either").Right<{
2223
- __TYPE__: "SeparatorContent";
2224
- }> | import("fp-ts/lib/Either").Right<{
2225
- content: {
2226
- type: "tableRow";
2227
- content: ({
2228
- type: "tableHeader";
2229
- content: ({
2230
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
2231
- content: {
2232
- text: string;
2233
- } & {
2234
- spans?: ({
2235
- data: ({
2236
- __TYPE__: "ImageLink";
2237
- } & {
2238
- kind: "image";
2239
- id: string;
2240
- url: string;
2241
- height: string;
2242
- width: string;
2243
- size: string;
2244
- name: string;
2245
- } & {
2246
- date?: string | null | undefined;
2247
- }) | ({
2248
- __TYPE__: "FileLink";
2249
- } & {
2250
- kind: "file";
2251
- id: string;
2252
- url: string;
2253
- name: string;
2254
- size: string;
2255
- } & {
2256
- date?: string | null | undefined;
2257
- }) | ({
2258
- __TYPE__: "DocumentLink";
2259
- } & {
2260
- id: string;
2261
- }) | ({
2262
- __TYPE__: "ExternalLink";
2263
- } & {
2264
- url: string;
2265
- } & {
2266
- kind?: "web";
2267
- target?: string | null | undefined;
2268
- preview?: {
2269
- title?: string;
2270
- } | null | undefined;
2271
- });
2272
- start: number;
2273
- end: number;
2274
- type: "hyperlink";
2275
- } | {
2276
- data: string;
2277
- start: number;
2278
- end: number;
2279
- type: "label";
2280
- } | {
2281
- start: number;
2282
- end: number;
2283
- type: "strong" | "em" | "list-item";
2284
- })[];
2285
- };
2286
- } & {
2287
- label?: string;
2288
- direction?: string;
2289
- })[];
2290
- } | {
2291
- type: "tableCell";
2292
- content: ({
2293
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
2294
- content: {
2295
- text: string;
2296
- } & {
2297
- spans?: ({
2298
- data: ({
2299
- __TYPE__: "ImageLink";
2300
- } & {
2301
- kind: "image";
2302
- id: string;
2303
- url: string;
2304
- height: string;
2305
- width: string;
2306
- size: string;
2307
- name: string;
2308
- } & {
2309
- date?: string | null | undefined;
2310
- }) | ({
2311
- __TYPE__: "FileLink";
2312
- } & {
2313
- kind: "file";
2314
- id: string;
2315
- url: string;
2316
- name: string;
2317
- size: string;
2318
- } & {
2319
- date?: string | null | undefined;
2320
- }) | ({
2321
- __TYPE__: "DocumentLink";
2322
- } & {
2323
- id: string;
2324
- }) | ({
2325
- __TYPE__: "ExternalLink";
2326
- } & {
2327
- url: string;
2328
- } & {
2329
- kind?: "web";
2330
- target?: string | null | undefined;
2331
- preview?: {
2332
- title?: string;
2333
- } | null | undefined;
2334
- });
2335
- start: number;
2336
- end: number;
2337
- type: "hyperlink";
2338
- } | {
2339
- data: string;
2340
- start: number;
2341
- end: number;
2342
- type: "label";
2343
- } | {
2344
- start: number;
2345
- end: number;
2346
- type: "strong" | "em" | "list-item";
2347
- })[];
2348
- };
2349
- } & {
2350
- label?: string;
2351
- direction?: string;
2352
- })[];
2353
- })[];
2354
1933
  }[];
2355
- } & {
2356
- __TYPE__: "TableContent";
2357
1934
  }> | undefined) | ((i: unknown) => t.Validation<GroupContent>);
2358
1935
  encode: (value: SimpleSliceContent) => import("../../../LegacyContentCtx").WithTypes<unknown> | undefined;
2359
1936
  };