@prismicio/types-internal 3.4.0-alpha.13 → 3.4.0-alpha.14

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 (45) hide show
  1. package/lib/content/Document.d.ts +498 -3366
  2. package/lib/content/fields/GroupContent.d.ts +1 -1
  3. package/lib/content/fields/GroupContent.js +2 -1
  4. package/lib/content/fields/WidgetContent.d.ts +514 -3382
  5. package/lib/content/fields/nestable/NestableContent.d.ts +68 -546
  6. package/lib/content/fields/nestable/NestableContent.js +7 -8
  7. package/lib/content/fields/nestable/RepeatableContent.d.ts +2 -2
  8. package/lib/content/fields/nestable/RepeatableContent.js +5 -2
  9. package/lib/content/fields/nestable/RichTextContent/index.d.ts +9 -641
  10. package/lib/content/fields/nestable/RichTextContent/index.js +4 -8
  11. package/lib/content/fields/nestable/TableContent.d.ts +637 -834
  12. package/lib/content/fields/nestable/TableContent.js +10 -7
  13. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +190 -1146
  14. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +26 -252
  15. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +190 -1146
  16. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +68 -546
  17. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +68 -546
  18. package/lib/content/fields/slices/Slice/index.d.ts +269 -2029
  19. package/lib/content/fields/slices/SliceItem.d.ts +463 -2223
  20. package/lib/content/fields/slices/SlicesContent.d.ts +394 -2784
  21. package/lib/customtypes/widgets/Group.d.ts +36 -36
  22. package/lib/customtypes/widgets/Widget.d.ts +54 -54
  23. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +6 -6
  24. package/lib/customtypes/widgets/nestable/NestableWidget.js +1 -1
  25. package/lib/customtypes/widgets/nestable/RichText.d.ts +0 -2
  26. package/lib/customtypes/widgets/nestable/RichText.js +0 -2
  27. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +12 -12
  28. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +12 -12
  29. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +48 -48
  30. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +18 -18
  31. package/lib/customtypes/widgets/slices/Slices.d.ts +72 -72
  32. package/package.json +1 -1
  33. package/src/content/fields/GroupContent.ts +2 -1
  34. package/src/content/fields/nestable/NestableContent.ts +13 -9
  35. package/src/content/fields/nestable/RepeatableContent.ts +6 -2
  36. package/src/content/fields/nestable/RichTextContent/Blocks.ts +238 -0
  37. package/src/content/fields/nestable/RichTextContent/index.ts +3 -7
  38. package/src/content/fields/nestable/TableContent.ts +10 -7
  39. package/src/customtypes/widgets/nestable/NestableWidget.ts +1 -1
  40. package/src/customtypes/widgets/nestable/RichText.ts +0 -2
  41. package/src/content/fields/nestable/RichTextContent/Block.ts +0 -35
  42. package/src/content/fields/nestable/RichTextContent/EmbedBlock.ts +0 -81
  43. package/src/content/fields/nestable/RichTextContent/ImageBlock.ts +0 -42
  44. package/src/content/fields/nestable/RichTextContent/TableBlock.ts +0 -36
  45. package/src/content/fields/nestable/RichTextContent/TextBlock.ts +0 -108
@@ -317,7 +317,7 @@ export declare const NestableContent: 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" | "table", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table", unknown>;
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>;
321
321
  content: t.IntersectionC<[t.TypeC<{
322
322
  text: t.StringC;
323
323
  }>, t.PartialC<{
@@ -426,14 +426,18 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
426
426
  }>, t.PartialC<{
427
427
  label: t.StringC;
428
428
  direction: 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>;
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.ExactC<t.TypeC<{
438
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
439
+ value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
440
+ 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>;
437
441
  content: t.IntersectionC<[t.TypeC<{
438
442
  text: t.StringC;
439
443
  }>, t.PartialC<{
@@ -543,10 +547,13 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
543
547
  label: t.StringC;
544
548
  direction: t.StringC;
545
549
  }>]>>>;
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
+ }>>;
551
+ }>>, t.ExactC<t.TypeC<{
552
+ type: t.LiteralC<"tableCell">;
553
+ content: t.ExactC<t.TypeC<{
554
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
555
+ value: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
556
+ 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>;
550
557
  content: t.IntersectionC<[t.TypeC<{
551
558
  text: t.StringC;
552
559
  }>, t.PartialC<{
@@ -656,12 +663,12 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
656
663
  label: t.StringC;
657
664
  direction: t.StringC;
658
665
  }>]>>>;
659
- }>>]>>;
660
- }>>>;
661
- }>>]>>;
662
- }>>, t.ExactC<t.TypeC<{
663
- __TYPE__: t.LiteralC<"SeparatorContent">;
666
+ }>>;
667
+ }>>]>>;
668
+ }>>>;
664
669
  }>>, t.ExactC<t.TypeC<{
670
+ __TYPE__: t.LiteralC<"TableContent">;
671
+ }>>]>, t.ExactC<t.TypeC<{
665
672
  __TYPE__: t.LiteralC<"RepeatableContent">;
666
673
  type: t.LiteralC<"Link">;
667
674
  value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
@@ -742,240 +749,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
742
749
  variant: t.StringC;
743
750
  }>]>>]>]>;
744
751
  }>>]>>;
745
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
746
- content: t.ArrayC<t.ExactC<t.TypeC<{
747
- type: t.LiteralC<"tableRow">;
748
- content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
749
- type: t.LiteralC<"tableHeader">;
750
- content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
751
- 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>;
752
- content: t.IntersectionC<[t.TypeC<{
753
- text: t.StringC;
754
- }>, t.PartialC<{
755
- spans: t.Type<({
756
- data: ({
757
- __TYPE__: "ImageLink";
758
- } & {
759
- kind: "image";
760
- id: string;
761
- url: string;
762
- height: string;
763
- width: string;
764
- size: string;
765
- name: string;
766
- } & {
767
- date?: string | null | undefined;
768
- }) | ({
769
- __TYPE__: "FileLink";
770
- } & {
771
- kind: "file";
772
- id: string;
773
- url: string;
774
- name: string;
775
- size: string;
776
- } & {
777
- date?: string | null | undefined;
778
- }) | ({
779
- __TYPE__: "DocumentLink";
780
- } & {
781
- id: string;
782
- }) | ({
783
- __TYPE__: "ExternalLink";
784
- } & {
785
- url: string;
786
- } & {
787
- kind?: "web";
788
- target?: string | null | undefined;
789
- preview?: {
790
- title?: string;
791
- } | null | undefined;
792
- });
793
- start: number;
794
- end: number;
795
- type: "hyperlink";
796
- } | {
797
- data: string;
798
- start: number;
799
- end: number;
800
- type: "label";
801
- } | {
802
- start: number;
803
- end: number;
804
- type: "strong" | "em" | "list-item";
805
- })[], ({
806
- data: ({
807
- __TYPE__: "ImageLink";
808
- } & {
809
- kind: "image";
810
- id: string;
811
- url: string;
812
- height: string;
813
- width: string;
814
- size: string;
815
- name: string;
816
- } & {
817
- date?: string | null | undefined;
818
- }) | ({
819
- __TYPE__: "FileLink";
820
- } & {
821
- kind: "file";
822
- id: string;
823
- url: string;
824
- name: string;
825
- size: string;
826
- } & {
827
- date?: string | null | undefined;
828
- }) | ({
829
- __TYPE__: "DocumentLink";
830
- } & {
831
- id: string;
832
- }) | ({
833
- __TYPE__: "ExternalLink";
834
- } & {
835
- url: string;
836
- } & {
837
- kind?: "web";
838
- target?: string | null | undefined;
839
- preview?: {
840
- title?: string;
841
- } | null | undefined;
842
- });
843
- start: number;
844
- end: number;
845
- type: "hyperlink";
846
- } | {
847
- data: string;
848
- start: number;
849
- end: number;
850
- type: "label";
851
- } | {
852
- start: number;
853
- end: number;
854
- type: "strong" | "em" | "list-item";
855
- })[], unknown>;
856
- }>]>;
857
- }>, t.PartialC<{
858
- label: t.StringC;
859
- direction: t.StringC;
860
- }>]>>>;
861
- }>>, t.ExactC<t.TypeC<{
862
- type: t.LiteralC<"tableCell">;
863
- content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
864
- 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>;
865
- content: t.IntersectionC<[t.TypeC<{
866
- text: t.StringC;
867
- }>, t.PartialC<{
868
- spans: t.Type<({
869
- data: ({
870
- __TYPE__: "ImageLink";
871
- } & {
872
- kind: "image";
873
- id: string;
874
- url: string;
875
- height: string;
876
- width: string;
877
- size: string;
878
- name: string;
879
- } & {
880
- date?: string | null | undefined;
881
- }) | ({
882
- __TYPE__: "FileLink";
883
- } & {
884
- kind: "file";
885
- id: string;
886
- url: string;
887
- name: string;
888
- size: string;
889
- } & {
890
- date?: string | null | undefined;
891
- }) | ({
892
- __TYPE__: "DocumentLink";
893
- } & {
894
- id: string;
895
- }) | ({
896
- __TYPE__: "ExternalLink";
897
- } & {
898
- url: string;
899
- } & {
900
- kind?: "web";
901
- target?: string | null | undefined;
902
- preview?: {
903
- title?: string;
904
- } | null | undefined;
905
- });
906
- start: number;
907
- end: number;
908
- type: "hyperlink";
909
- } | {
910
- data: string;
911
- start: number;
912
- end: number;
913
- type: "label";
914
- } | {
915
- start: number;
916
- end: number;
917
- type: "strong" | "em" | "list-item";
918
- })[], ({
919
- data: ({
920
- __TYPE__: "ImageLink";
921
- } & {
922
- kind: "image";
923
- id: string;
924
- url: string;
925
- height: string;
926
- width: string;
927
- size: string;
928
- name: string;
929
- } & {
930
- date?: string | null | undefined;
931
- }) | ({
932
- __TYPE__: "FileLink";
933
- } & {
934
- kind: "file";
935
- id: string;
936
- url: string;
937
- name: string;
938
- size: string;
939
- } & {
940
- date?: string | null | undefined;
941
- }) | ({
942
- __TYPE__: "DocumentLink";
943
- } & {
944
- id: string;
945
- }) | ({
946
- __TYPE__: "ExternalLink";
947
- } & {
948
- url: string;
949
- } & {
950
- kind?: "web";
951
- target?: string | null | undefined;
952
- preview?: {
953
- title?: string;
954
- } | null | undefined;
955
- });
956
- start: number;
957
- end: number;
958
- type: "hyperlink";
959
- } | {
960
- data: string;
961
- start: number;
962
- end: number;
963
- type: "label";
964
- } | {
965
- start: number;
966
- end: number;
967
- type: "strong" | "em" | "list-item";
968
- })[], unknown>;
969
- }>]>;
970
- }>, t.PartialC<{
971
- label: t.StringC;
972
- direction: t.StringC;
973
- }>]>>>;
974
- }>>]>>;
975
- }>>>;
976
- }>>, t.ExactC<t.TypeC<{
977
- __TYPE__: t.LiteralC<"TableContent">;
978
- }>>]>]>;
752
+ }>>]>;
979
753
  export declare type NestableContent = t.TypeOf<typeof NestableContent>;
980
754
  export declare type NestableContentType = NestableContent["__TYPE__"];
981
755
  export declare const NestableContentDefaultValue: (widgetDef: NestableWidget) => NestableContent | undefined;
@@ -1338,7 +1112,7 @@ export declare const isNestableContent: (u: unknown) => u is {
1338
1112
  label?: string | null | undefined;
1339
1113
  direction?: string | null | undefined;
1340
1114
  }) | ({
1341
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1115
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1342
1116
  content: {
1343
1117
  text: string;
1344
1118
  } & {
@@ -1397,14 +1171,18 @@ export declare const isNestableContent: (u: unknown) => u is {
1397
1171
  } & {
1398
1172
  label?: string;
1399
1173
  direction?: string;
1400
- }) | {
1401
- type: "table";
1402
- content: {
1403
- type: "tableRow";
1404
- content: ({
1405
- type: "tableHeader";
1406
- content: ({
1407
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1174
+ }))[];
1175
+ } | {
1176
+ __TYPE__: "SeparatorContent";
1177
+ } | ({
1178
+ content: {
1179
+ type: "tableRow";
1180
+ content: ({
1181
+ type: "tableHeader";
1182
+ content: {
1183
+ __TYPE__: "StructuredTextContent";
1184
+ value: ({
1185
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1408
1186
  content: {
1409
1187
  text: string;
1410
1188
  } & {
@@ -1464,10 +1242,13 @@ export declare const isNestableContent: (u: unknown) => u is {
1464
1242
  label?: string;
1465
1243
  direction?: string;
1466
1244
  })[];
1467
- } | {
1468
- type: "tableCell";
1469
- content: ({
1470
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1245
+ };
1246
+ } | {
1247
+ type: "tableCell";
1248
+ content: {
1249
+ __TYPE__: "StructuredTextContent";
1250
+ value: ({
1251
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1471
1252
  content: {
1472
1253
  text: string;
1473
1254
  } & {
@@ -1527,140 +1308,7 @@ export declare const isNestableContent: (u: unknown) => u is {
1527
1308
  label?: string;
1528
1309
  direction?: string;
1529
1310
  })[];
1530
- })[];
1531
- }[];
1532
- })[];
1533
- } | {
1534
- __TYPE__: "SeparatorContent";
1535
- } | ({
1536
- content: {
1537
- type: "tableRow";
1538
- content: ({
1539
- type: "tableHeader";
1540
- content: ({
1541
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1542
- content: {
1543
- text: string;
1544
- } & {
1545
- spans?: ({
1546
- data: ({
1547
- __TYPE__: "ImageLink";
1548
- } & {
1549
- kind: "image";
1550
- id: string;
1551
- url: string;
1552
- height: string;
1553
- width: string;
1554
- size: string;
1555
- name: string;
1556
- } & {
1557
- date?: string | null | undefined;
1558
- }) | ({
1559
- __TYPE__: "FileLink";
1560
- } & {
1561
- kind: "file";
1562
- id: string;
1563
- url: string;
1564
- name: string;
1565
- size: string;
1566
- } & {
1567
- date?: string | null | undefined;
1568
- }) | ({
1569
- __TYPE__: "DocumentLink";
1570
- } & {
1571
- id: string;
1572
- }) | ({
1573
- __TYPE__: "ExternalLink";
1574
- } & {
1575
- url: string;
1576
- } & {
1577
- kind?: "web";
1578
- target?: string | null | undefined;
1579
- preview?: {
1580
- title?: string;
1581
- } | null | undefined;
1582
- });
1583
- start: number;
1584
- end: number;
1585
- type: "hyperlink";
1586
- } | {
1587
- data: string;
1588
- start: number;
1589
- end: number;
1590
- type: "label";
1591
- } | {
1592
- start: number;
1593
- end: number;
1594
- type: "strong" | "em" | "list-item";
1595
- })[];
1596
- };
1597
- } & {
1598
- label?: string;
1599
- direction?: string;
1600
- })[];
1601
- } | {
1602
- type: "tableCell";
1603
- content: ({
1604
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1605
- content: {
1606
- text: string;
1607
- } & {
1608
- spans?: ({
1609
- data: ({
1610
- __TYPE__: "ImageLink";
1611
- } & {
1612
- kind: "image";
1613
- id: string;
1614
- url: string;
1615
- height: string;
1616
- width: string;
1617
- size: string;
1618
- name: string;
1619
- } & {
1620
- date?: string | null | undefined;
1621
- }) | ({
1622
- __TYPE__: "FileLink";
1623
- } & {
1624
- kind: "file";
1625
- id: string;
1626
- url: string;
1627
- name: string;
1628
- size: string;
1629
- } & {
1630
- date?: string | null | undefined;
1631
- }) | ({
1632
- __TYPE__: "DocumentLink";
1633
- } & {
1634
- id: string;
1635
- }) | ({
1636
- __TYPE__: "ExternalLink";
1637
- } & {
1638
- url: string;
1639
- } & {
1640
- kind?: "web";
1641
- target?: string | null | undefined;
1642
- preview?: {
1643
- title?: string;
1644
- } | null | undefined;
1645
- });
1646
- start: number;
1647
- end: number;
1648
- type: "hyperlink";
1649
- } | {
1650
- data: string;
1651
- start: number;
1652
- end: number;
1653
- type: "label";
1654
- } | {
1655
- start: number;
1656
- end: number;
1657
- type: "strong" | "em" | "list-item";
1658
- })[];
1659
- };
1660
- } & {
1661
- label?: string;
1662
- direction?: string;
1663
- })[];
1311
+ };
1664
1312
  })[];
1665
1313
  }[];
1666
1314
  } & {
@@ -2026,7 +1674,7 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
2026
1674
  label?: string | null | undefined;
2027
1675
  direction?: string | null | undefined;
2028
1676
  }) | ({
2029
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1677
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2030
1678
  content: {
2031
1679
  text: string;
2032
1680
  } & {
@@ -2085,14 +1733,18 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
2085
1733
  } & {
2086
1734
  label?: string;
2087
1735
  direction?: string;
2088
- }) | {
2089
- type: "table";
2090
- content: {
2091
- type: "tableRow";
2092
- content: ({
2093
- type: "tableHeader";
2094
- content: ({
2095
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1736
+ }))[];
1737
+ }> | import("fp-ts/lib/Either").Right<{
1738
+ __TYPE__: "SeparatorContent";
1739
+ }> | import("fp-ts/lib/Either").Right<{
1740
+ content: {
1741
+ type: "tableRow";
1742
+ content: ({
1743
+ type: "tableHeader";
1744
+ content: {
1745
+ __TYPE__: "StructuredTextContent";
1746
+ value: ({
1747
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2096
1748
  content: {
2097
1749
  text: string;
2098
1750
  } & {
@@ -2152,10 +1804,13 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
2152
1804
  label?: string;
2153
1805
  direction?: string;
2154
1806
  })[];
2155
- } | {
2156
- type: "tableCell";
2157
- content: ({
2158
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1807
+ };
1808
+ } | {
1809
+ type: "tableCell";
1810
+ content: {
1811
+ __TYPE__: "StructuredTextContent";
1812
+ value: ({
1813
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2159
1814
  content: {
2160
1815
  text: string;
2161
1816
  } & {
@@ -2215,140 +1870,7 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
2215
1870
  label?: string;
2216
1871
  direction?: string;
2217
1872
  })[];
2218
- })[];
2219
- }[];
2220
- })[];
2221
- }> | import("fp-ts/lib/Either").Right<{
2222
- __TYPE__: "SeparatorContent";
2223
- }> | import("fp-ts/lib/Either").Right<{
2224
- content: {
2225
- type: "tableRow";
2226
- content: ({
2227
- type: "tableHeader";
2228
- content: ({
2229
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
2230
- content: {
2231
- text: string;
2232
- } & {
2233
- spans?: ({
2234
- data: ({
2235
- __TYPE__: "ImageLink";
2236
- } & {
2237
- kind: "image";
2238
- id: string;
2239
- url: string;
2240
- height: string;
2241
- width: string;
2242
- size: string;
2243
- name: string;
2244
- } & {
2245
- date?: string | null | undefined;
2246
- }) | ({
2247
- __TYPE__: "FileLink";
2248
- } & {
2249
- kind: "file";
2250
- id: string;
2251
- url: string;
2252
- name: string;
2253
- size: string;
2254
- } & {
2255
- date?: string | null | undefined;
2256
- }) | ({
2257
- __TYPE__: "DocumentLink";
2258
- } & {
2259
- id: string;
2260
- }) | ({
2261
- __TYPE__: "ExternalLink";
2262
- } & {
2263
- url: string;
2264
- } & {
2265
- kind?: "web";
2266
- target?: string | null | undefined;
2267
- preview?: {
2268
- title?: string;
2269
- } | null | undefined;
2270
- });
2271
- start: number;
2272
- end: number;
2273
- type: "hyperlink";
2274
- } | {
2275
- data: string;
2276
- start: number;
2277
- end: number;
2278
- type: "label";
2279
- } | {
2280
- start: number;
2281
- end: number;
2282
- type: "strong" | "em" | "list-item";
2283
- })[];
2284
- };
2285
- } & {
2286
- label?: string;
2287
- direction?: string;
2288
- })[];
2289
- } | {
2290
- type: "tableCell";
2291
- content: ({
2292
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
2293
- content: {
2294
- text: string;
2295
- } & {
2296
- spans?: ({
2297
- data: ({
2298
- __TYPE__: "ImageLink";
2299
- } & {
2300
- kind: "image";
2301
- id: string;
2302
- url: string;
2303
- height: string;
2304
- width: string;
2305
- size: string;
2306
- name: string;
2307
- } & {
2308
- date?: string | null | undefined;
2309
- }) | ({
2310
- __TYPE__: "FileLink";
2311
- } & {
2312
- kind: "file";
2313
- id: string;
2314
- url: string;
2315
- name: string;
2316
- size: string;
2317
- } & {
2318
- date?: string | null | undefined;
2319
- }) | ({
2320
- __TYPE__: "DocumentLink";
2321
- } & {
2322
- id: string;
2323
- }) | ({
2324
- __TYPE__: "ExternalLink";
2325
- } & {
2326
- url: string;
2327
- } & {
2328
- kind?: "web";
2329
- target?: string | null | undefined;
2330
- preview?: {
2331
- title?: string;
2332
- } | null | undefined;
2333
- });
2334
- start: number;
2335
- end: number;
2336
- type: "hyperlink";
2337
- } | {
2338
- data: string;
2339
- start: number;
2340
- end: number;
2341
- type: "label";
2342
- } | {
2343
- start: number;
2344
- end: number;
2345
- type: "strong" | "em" | "list-item";
2346
- })[];
2347
- };
2348
- } & {
2349
- label?: string;
2350
- direction?: string;
2351
- })[];
1873
+ };
2352
1874
  })[];
2353
1875
  }[];
2354
1876
  } & {