@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
@@ -94,7 +94,7 @@ export declare const isRichTextContent: (u: unknown) => u is {
94
94
  label?: string | null | undefined;
95
95
  direction?: string | null | undefined;
96
96
  }) | ({
97
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
97
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
98
98
  content: {
99
99
  text: string;
100
100
  } & {
@@ -153,139 +153,7 @@ export declare const isRichTextContent: (u: unknown) => u is {
153
153
  } & {
154
154
  label?: string;
155
155
  direction?: string;
156
- }) | {
157
- type: "table";
158
- content: {
159
- type: "tableRow";
160
- content: ({
161
- type: "tableHeader";
162
- content: ({
163
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
164
- content: {
165
- text: string;
166
- } & {
167
- spans?: ({
168
- data: ({
169
- __TYPE__: "ImageLink";
170
- } & {
171
- kind: "image";
172
- id: string;
173
- url: string;
174
- height: string;
175
- width: string;
176
- size: string;
177
- name: string;
178
- } & {
179
- date?: string | null | undefined;
180
- }) | ({
181
- __TYPE__: "FileLink";
182
- } & {
183
- kind: "file";
184
- id: string;
185
- url: string;
186
- name: string;
187
- size: string;
188
- } & {
189
- date?: string | null | undefined;
190
- }) | ({
191
- __TYPE__: "DocumentLink";
192
- } & {
193
- id: string;
194
- }) | ({
195
- __TYPE__: "ExternalLink";
196
- } & {
197
- url: string;
198
- } & {
199
- kind?: "web";
200
- target?: string | null | undefined;
201
- preview?: {
202
- title?: string;
203
- } | null | undefined;
204
- });
205
- start: number;
206
- end: number;
207
- type: "hyperlink";
208
- } | {
209
- data: string;
210
- start: number;
211
- end: number;
212
- type: "label";
213
- } | {
214
- start: number;
215
- end: number;
216
- type: "strong" | "em" | "list-item";
217
- })[];
218
- };
219
- } & {
220
- label?: string;
221
- direction?: string;
222
- })[];
223
- } | {
224
- type: "tableCell";
225
- content: ({
226
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
227
- content: {
228
- text: string;
229
- } & {
230
- spans?: ({
231
- data: ({
232
- __TYPE__: "ImageLink";
233
- } & {
234
- kind: "image";
235
- id: string;
236
- url: string;
237
- height: string;
238
- width: string;
239
- size: string;
240
- name: string;
241
- } & {
242
- date?: string | null | undefined;
243
- }) | ({
244
- __TYPE__: "FileLink";
245
- } & {
246
- kind: "file";
247
- id: string;
248
- url: string;
249
- name: string;
250
- size: string;
251
- } & {
252
- date?: string | null | undefined;
253
- }) | ({
254
- __TYPE__: "DocumentLink";
255
- } & {
256
- id: string;
257
- }) | ({
258
- __TYPE__: "ExternalLink";
259
- } & {
260
- url: string;
261
- } & {
262
- kind?: "web";
263
- target?: string | null | undefined;
264
- preview?: {
265
- title?: string;
266
- } | null | undefined;
267
- });
268
- start: number;
269
- end: number;
270
- type: "hyperlink";
271
- } | {
272
- data: string;
273
- start: number;
274
- end: number;
275
- type: "label";
276
- } | {
277
- start: number;
278
- end: number;
279
- type: "strong" | "em" | "list-item";
280
- })[];
281
- };
282
- } & {
283
- label?: string;
284
- direction?: string;
285
- })[];
286
- })[];
287
- }[];
288
- })[];
156
+ }))[];
289
157
  };
290
158
  export declare const RichTextContent: t.ExactC<t.TypeC<{
291
159
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -416,7 +284,7 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
416
284
  label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
417
285
  direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
418
286
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
419
- 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>;
287
+ 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>;
420
288
  content: t.IntersectionC<[t.TypeC<{
421
289
  text: t.StringC;
422
290
  }>, t.PartialC<{
@@ -525,241 +393,10 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
525
393
  }>, t.PartialC<{
526
394
  label: t.StringC;
527
395
  direction: t.StringC;
528
- }>]>>, t.ExactC<t.TypeC<{
529
- type: t.LiteralC<"table">;
530
- content: t.ArrayC<t.ExactC<t.TypeC<{
531
- type: t.LiteralC<"tableRow">;
532
- content: t.ArrayC<t.UnionC<[t.ExactC<t.TypeC<{
533
- type: t.LiteralC<"tableHeader">;
534
- content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
535
- 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>;
536
- content: t.IntersectionC<[t.TypeC<{
537
- text: t.StringC;
538
- }>, t.PartialC<{
539
- spans: t.Type<({
540
- data: ({
541
- __TYPE__: "ImageLink";
542
- } & {
543
- kind: "image";
544
- id: string;
545
- url: string;
546
- height: string;
547
- width: string;
548
- size: string;
549
- name: string;
550
- } & {
551
- date?: string | null | undefined;
552
- }) | ({
553
- __TYPE__: "FileLink";
554
- } & {
555
- kind: "file";
556
- id: string;
557
- url: string;
558
- name: string;
559
- size: string;
560
- } & {
561
- date?: string | null | undefined;
562
- }) | ({
563
- __TYPE__: "DocumentLink";
564
- } & {
565
- id: string;
566
- }) | ({
567
- __TYPE__: "ExternalLink";
568
- } & {
569
- url: string;
570
- } & {
571
- kind?: "web";
572
- target?: string | null | undefined;
573
- preview?: {
574
- title?: string;
575
- } | null | undefined;
576
- });
577
- start: number;
578
- end: number;
579
- type: "hyperlink";
580
- } | {
581
- data: string;
582
- start: number;
583
- end: number;
584
- type: "label";
585
- } | {
586
- start: number;
587
- end: number;
588
- type: "strong" | "em" | "list-item";
589
- })[], ({
590
- data: ({
591
- __TYPE__: "ImageLink";
592
- } & {
593
- kind: "image";
594
- id: string;
595
- url: string;
596
- height: string;
597
- width: string;
598
- size: string;
599
- name: string;
600
- } & {
601
- date?: string | null | undefined;
602
- }) | ({
603
- __TYPE__: "FileLink";
604
- } & {
605
- kind: "file";
606
- id: string;
607
- url: string;
608
- name: string;
609
- size: string;
610
- } & {
611
- date?: string | null | undefined;
612
- }) | ({
613
- __TYPE__: "DocumentLink";
614
- } & {
615
- id: string;
616
- }) | ({
617
- __TYPE__: "ExternalLink";
618
- } & {
619
- url: string;
620
- } & {
621
- kind?: "web";
622
- target?: string | null | undefined;
623
- preview?: {
624
- title?: string;
625
- } | null | undefined;
626
- });
627
- start: number;
628
- end: number;
629
- type: "hyperlink";
630
- } | {
631
- data: string;
632
- start: number;
633
- end: number;
634
- type: "label";
635
- } | {
636
- start: number;
637
- end: number;
638
- type: "strong" | "em" | "list-item";
639
- })[], unknown>;
640
- }>]>;
641
- }>, t.PartialC<{
642
- label: t.StringC;
643
- direction: t.StringC;
644
- }>]>>>;
645
- }>>, t.ExactC<t.TypeC<{
646
- type: t.LiteralC<"tableCell">;
647
- content: t.ArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
648
- 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>;
649
- content: t.IntersectionC<[t.TypeC<{
650
- text: t.StringC;
651
- }>, t.PartialC<{
652
- spans: t.Type<({
653
- data: ({
654
- __TYPE__: "ImageLink";
655
- } & {
656
- kind: "image";
657
- id: string;
658
- url: string;
659
- height: string;
660
- width: string;
661
- size: string;
662
- name: string;
663
- } & {
664
- date?: string | null | undefined;
665
- }) | ({
666
- __TYPE__: "FileLink";
667
- } & {
668
- kind: "file";
669
- id: string;
670
- url: string;
671
- name: string;
672
- size: string;
673
- } & {
674
- date?: string | null | undefined;
675
- }) | ({
676
- __TYPE__: "DocumentLink";
677
- } & {
678
- id: string;
679
- }) | ({
680
- __TYPE__: "ExternalLink";
681
- } & {
682
- url: string;
683
- } & {
684
- kind?: "web";
685
- target?: string | null | undefined;
686
- preview?: {
687
- title?: string;
688
- } | null | undefined;
689
- });
690
- start: number;
691
- end: number;
692
- type: "hyperlink";
693
- } | {
694
- data: string;
695
- start: number;
696
- end: number;
697
- type: "label";
698
- } | {
699
- start: number;
700
- end: number;
701
- type: "strong" | "em" | "list-item";
702
- })[], ({
703
- data: ({
704
- __TYPE__: "ImageLink";
705
- } & {
706
- kind: "image";
707
- id: string;
708
- url: string;
709
- height: string;
710
- width: string;
711
- size: string;
712
- name: string;
713
- } & {
714
- date?: string | null | undefined;
715
- }) | ({
716
- __TYPE__: "FileLink";
717
- } & {
718
- kind: "file";
719
- id: string;
720
- url: string;
721
- name: string;
722
- size: string;
723
- } & {
724
- date?: string | null | undefined;
725
- }) | ({
726
- __TYPE__: "DocumentLink";
727
- } & {
728
- id: string;
729
- }) | ({
730
- __TYPE__: "ExternalLink";
731
- } & {
732
- url: string;
733
- } & {
734
- kind?: "web";
735
- target?: string | null | undefined;
736
- preview?: {
737
- title?: string;
738
- } | null | undefined;
739
- });
740
- start: number;
741
- end: number;
742
- type: "hyperlink";
743
- } | {
744
- data: string;
745
- start: number;
746
- end: number;
747
- type: "label";
748
- } | {
749
- start: number;
750
- end: number;
751
- type: "strong" | "em" | "list-item";
752
- })[], unknown>;
753
- }>]>;
754
- }>, t.PartialC<{
755
- label: t.StringC;
756
- direction: t.StringC;
757
- }>]>>>;
758
- }>>]>>;
759
- }>>>;
760
- }>>]>>;
396
+ }>]>>]>>;
761
397
  }>>;
762
398
  export declare type RichTextContent = t.TypeOf<typeof RichTextContent>;
399
+ export * from "./Blocks";
763
400
  export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
764
401
  __TYPE__: "StructuredTextContent";
765
402
  value: (({
@@ -853,7 +490,7 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
853
490
  label?: string | null | undefined;
854
491
  direction?: string | null | undefined;
855
492
  }) | ({
856
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
493
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
857
494
  content: {
858
495
  text: string;
859
496
  } & {
@@ -912,139 +549,7 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
912
549
  } & {
913
550
  label?: string;
914
551
  direction?: string;
915
- }) | {
916
- type: "table";
917
- content: {
918
- type: "tableRow";
919
- content: ({
920
- type: "tableHeader";
921
- content: ({
922
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
923
- content: {
924
- text: string;
925
- } & {
926
- spans?: ({
927
- data: ({
928
- __TYPE__: "ImageLink";
929
- } & {
930
- kind: "image";
931
- id: string;
932
- url: string;
933
- height: string;
934
- width: string;
935
- size: string;
936
- name: string;
937
- } & {
938
- date?: string | null | undefined;
939
- }) | ({
940
- __TYPE__: "FileLink";
941
- } & {
942
- kind: "file";
943
- id: string;
944
- url: string;
945
- name: string;
946
- size: string;
947
- } & {
948
- date?: string | null | undefined;
949
- }) | ({
950
- __TYPE__: "DocumentLink";
951
- } & {
952
- id: string;
953
- }) | ({
954
- __TYPE__: "ExternalLink";
955
- } & {
956
- url: string;
957
- } & {
958
- kind?: "web";
959
- target?: string | null | undefined;
960
- preview?: {
961
- title?: string;
962
- } | null | undefined;
963
- });
964
- start: number;
965
- end: number;
966
- type: "hyperlink";
967
- } | {
968
- data: string;
969
- start: number;
970
- end: number;
971
- type: "label";
972
- } | {
973
- start: number;
974
- end: number;
975
- type: "strong" | "em" | "list-item";
976
- })[];
977
- };
978
- } & {
979
- label?: string;
980
- direction?: string;
981
- })[];
982
- } | {
983
- type: "tableCell";
984
- content: ({
985
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
986
- content: {
987
- text: string;
988
- } & {
989
- spans?: ({
990
- data: ({
991
- __TYPE__: "ImageLink";
992
- } & {
993
- kind: "image";
994
- id: string;
995
- url: string;
996
- height: string;
997
- width: string;
998
- size: string;
999
- name: string;
1000
- } & {
1001
- date?: string | null | undefined;
1002
- }) | ({
1003
- __TYPE__: "FileLink";
1004
- } & {
1005
- kind: "file";
1006
- id: string;
1007
- url: string;
1008
- name: string;
1009
- size: string;
1010
- } & {
1011
- date?: string | null | undefined;
1012
- }) | ({
1013
- __TYPE__: "DocumentLink";
1014
- } & {
1015
- id: string;
1016
- }) | ({
1017
- __TYPE__: "ExternalLink";
1018
- } & {
1019
- url: string;
1020
- } & {
1021
- kind?: "web";
1022
- target?: string | null | undefined;
1023
- preview?: {
1024
- title?: string;
1025
- } | null | undefined;
1026
- });
1027
- start: number;
1028
- end: number;
1029
- type: "hyperlink";
1030
- } | {
1031
- data: string;
1032
- start: number;
1033
- end: number;
1034
- type: "label";
1035
- } | {
1036
- start: number;
1037
- end: number;
1038
- type: "strong" | "em" | "list-item";
1039
- })[];
1040
- };
1041
- } & {
1042
- label?: string;
1043
- direction?: string;
1044
- })[];
1045
- })[];
1046
- }[];
1047
- })[];
552
+ }))[];
1048
553
  }, WithTypes<(({
1049
554
  type: "image";
1050
555
  data: {
@@ -1136,7 +641,7 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
1136
641
  label?: string | null | undefined;
1137
642
  direction?: string | null | undefined;
1138
643
  }) | ({
1139
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
644
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1140
645
  content: {
1141
646
  text: string;
1142
647
  } & {
@@ -1195,141 +700,4 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
1195
700
  } & {
1196
701
  label?: string;
1197
702
  direction?: string;
1198
- }) | {
1199
- type: "table";
1200
- content: {
1201
- type: "tableRow";
1202
- content: ({
1203
- type: "tableHeader";
1204
- content: ({
1205
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1206
- content: {
1207
- text: string;
1208
- } & {
1209
- spans?: ({
1210
- data: ({
1211
- __TYPE__: "ImageLink";
1212
- } & {
1213
- kind: "image";
1214
- id: string;
1215
- url: string;
1216
- height: string;
1217
- width: string;
1218
- size: string;
1219
- name: string;
1220
- } & {
1221
- date?: string | null | undefined;
1222
- }) | ({
1223
- __TYPE__: "FileLink";
1224
- } & {
1225
- kind: "file";
1226
- id: string;
1227
- url: string;
1228
- name: string;
1229
- size: string;
1230
- } & {
1231
- date?: string | null | undefined;
1232
- }) | ({
1233
- __TYPE__: "DocumentLink";
1234
- } & {
1235
- id: string;
1236
- }) | ({
1237
- __TYPE__: "ExternalLink";
1238
- } & {
1239
- url: string;
1240
- } & {
1241
- kind?: "web";
1242
- target?: string | null | undefined;
1243
- preview?: {
1244
- title?: string;
1245
- } | null | undefined;
1246
- });
1247
- start: number;
1248
- end: number;
1249
- type: "hyperlink";
1250
- } | {
1251
- data: string;
1252
- start: number;
1253
- end: number;
1254
- type: "label";
1255
- } | {
1256
- start: number;
1257
- end: number;
1258
- type: "strong" | "em" | "list-item";
1259
- })[];
1260
- };
1261
- } & {
1262
- label?: string;
1263
- direction?: string;
1264
- })[];
1265
- } | {
1266
- type: "tableCell";
1267
- content: ({
1268
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl" | "table";
1269
- content: {
1270
- text: string;
1271
- } & {
1272
- spans?: ({
1273
- data: ({
1274
- __TYPE__: "ImageLink";
1275
- } & {
1276
- kind: "image";
1277
- id: string;
1278
- url: string;
1279
- height: string;
1280
- width: string;
1281
- size: string;
1282
- name: string;
1283
- } & {
1284
- date?: string | null | undefined;
1285
- }) | ({
1286
- __TYPE__: "FileLink";
1287
- } & {
1288
- kind: "file";
1289
- id: string;
1290
- url: string;
1291
- name: string;
1292
- size: string;
1293
- } & {
1294
- date?: string | null | undefined;
1295
- }) | ({
1296
- __TYPE__: "DocumentLink";
1297
- } & {
1298
- id: string;
1299
- }) | ({
1300
- __TYPE__: "ExternalLink";
1301
- } & {
1302
- url: string;
1303
- } & {
1304
- kind?: "web";
1305
- target?: string | null | undefined;
1306
- preview?: {
1307
- title?: string;
1308
- } | null | undefined;
1309
- });
1310
- start: number;
1311
- end: number;
1312
- type: "hyperlink";
1313
- } | {
1314
- data: string;
1315
- start: number;
1316
- end: number;
1317
- type: "label";
1318
- } | {
1319
- start: number;
1320
- end: number;
1321
- type: "strong" | "em" | "list-item";
1322
- })[];
1323
- };
1324
- } & {
1325
- label?: string;
1326
- direction?: string;
1327
- })[];
1328
- })[];
1329
- }[];
1330
- })[]>, unknown>;
1331
- export * from "./Block";
1332
- export * from "./EmbedBlock";
1333
- export * from "./ImageBlock";
1334
- export * from "./TableBlock";
1335
- export * from "./TextBlock";
703
+ }))[]>, unknown>;