@prismicio/types-internal 3.7.0 → 3.8.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 (33) hide show
  1. package/lib/content/Document.d.ts +114 -42
  2. package/lib/content/fields/RepeatableContent.d.ts +45 -47
  3. package/lib/content/fields/WidgetContent.d.ts +114 -42
  4. package/lib/content/fields/nestable/LinkContent.js +4 -16
  5. package/lib/content/fields/nestable/NestableContent.d.ts +19 -7
  6. package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +192 -55
  7. package/lib/content/fields/nestable/RichTextContent/TextBlock.js +10 -10
  8. package/lib/content/fields/nestable/TableContent.d.ts +25 -9
  9. package/lib/content/fields/nestable/TableContent.js +8 -8
  10. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +38 -14
  11. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +7 -3
  12. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +38 -14
  13. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +19 -7
  14. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +19 -7
  15. package/lib/content/fields/slices/Slice/index.d.ts +65 -25
  16. package/lib/content/fields/slices/SliceItem.d.ts +65 -25
  17. package/lib/content/fields/slices/SlicesContent.d.ts +95 -35
  18. package/lib/content/utils.d.ts +4 -0
  19. package/lib/content/utils.js +16 -1
  20. package/lib/customtypes/widgets/slices/SliceWidget.d.ts +327 -0
  21. package/lib/customtypes/widgets/slices/SliceWidget.js +8 -0
  22. package/package.json +1 -1
  23. package/src/content/fields/nestable/LinkContent.ts +1 -20
  24. package/src/content/fields/nestable/TableContent.ts +37 -29
  25. package/src/content/utils.ts +20 -0
  26. package/lib/content/fields/nestable/RichTextContent/Block.d.ts +0 -1036
  27. package/lib/content/fields/nestable/RichTextContent/Block.js +0 -31
  28. package/lib/content/fields/nestable/RichTextContent/EmbedBlock.d.ts +0 -60
  29. package/lib/content/fields/nestable/RichTextContent/EmbedBlock.js +0 -53
  30. package/lib/content/fields/nestable/RichTextContent/ImageBlock.d.ts +0 -203
  31. package/lib/content/fields/nestable/RichTextContent/ImageBlock.js +0 -36
  32. package/lib/content/fields/nestable/RichTextContent/TableBlock.d.ts +0 -500
  33. package/lib/content/fields/nestable/RichTextContent/TableBlock.js +0 -21
@@ -434,9 +434,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
434
434
  __TYPE__: t.LiteralC<"SeparatorContent">;
435
435
  }>>, t.ExactC<t.TypeC<{
436
436
  __TYPE__: t.LiteralC<"TableContent">;
437
- content: t.ArrayC<t.ExactC<t.TypeC<{
437
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
438
+ key: t.Type<string, string, unknown>;
439
+ }>>, t.ExactC<t.TypeC<{
438
440
  type: t.LiteralC<"tableRow">;
439
441
  content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
442
+ key: t.Type<string, string, unknown>;
443
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
440
444
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
441
445
  content: t.ExactC<t.TypeC<{
442
446
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -680,8 +684,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
680
684
  }>>;
681
685
  }>>, t.ExactC<t.PartialC<{
682
686
  columnWidth: t.NumberC;
683
- }>>]>>;
684
- }>>>;
687
+ }>>]>]>>;
688
+ }>>]>>;
685
689
  }>>, t.ExactC<t.TypeC<{
686
690
  __TYPE__: t.LiteralC<"RepeatableContent">;
687
691
  type: t.LiteralC<"Link">;
@@ -1204,9 +1208,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1204
1208
  __TYPE__: t.LiteralC<"SeparatorContent">;
1205
1209
  }>>, t.ExactC<t.TypeC<{
1206
1210
  __TYPE__: t.LiteralC<"TableContent">;
1207
- content: t.ArrayC<t.ExactC<t.TypeC<{
1211
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
1212
+ key: t.Type<string, string, unknown>;
1213
+ }>>, t.ExactC<t.TypeC<{
1208
1214
  type: t.LiteralC<"tableRow">;
1209
1215
  content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
1216
+ key: t.Type<string, string, unknown>;
1217
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
1210
1218
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
1211
1219
  content: t.ExactC<t.TypeC<{
1212
1220
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -1450,8 +1458,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1450
1458
  }>>;
1451
1459
  }>>, t.ExactC<t.PartialC<{
1452
1460
  columnWidth: t.NumberC;
1453
- }>>]>>;
1454
- }>>>;
1461
+ }>>]>]>>;
1462
+ }>>]>>;
1455
1463
  }>>, t.ExactC<t.TypeC<{
1456
1464
  __TYPE__: t.LiteralC<"RepeatableContent">;
1457
1465
  type: t.LiteralC<"Link">;
@@ -1966,9 +1974,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1966
1974
  __TYPE__: t.LiteralC<"SeparatorContent">;
1967
1975
  }>>, t.ExactC<t.TypeC<{
1968
1976
  __TYPE__: t.LiteralC<"TableContent">;
1969
- content: t.ArrayC<t.ExactC<t.TypeC<{
1977
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
1978
+ key: t.Type<string, string, unknown>;
1979
+ }>>, t.ExactC<t.TypeC<{
1970
1980
  type: t.LiteralC<"tableRow">;
1971
1981
  content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
1982
+ key: t.Type<string, string, unknown>;
1983
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
1972
1984
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
1973
1985
  content: t.ExactC<t.TypeC<{
1974
1986
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -2212,8 +2224,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2212
2224
  }>>;
2213
2225
  }>>, t.ExactC<t.PartialC<{
2214
2226
  columnWidth: t.NumberC;
2215
- }>>]>>;
2216
- }>>>;
2227
+ }>>]>]>>;
2228
+ }>>]>>;
2217
2229
  }>>, t.ExactC<t.TypeC<{
2218
2230
  __TYPE__: t.LiteralC<"RepeatableContent">;
2219
2231
  type: t.LiteralC<"Link">;
@@ -2730,9 +2742,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2730
2742
  __TYPE__: t.LiteralC<"SeparatorContent">;
2731
2743
  }>>, t.ExactC<t.TypeC<{
2732
2744
  __TYPE__: t.LiteralC<"TableContent">;
2733
- content: t.ArrayC<t.ExactC<t.TypeC<{
2745
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
2746
+ key: t.Type<string, string, unknown>;
2747
+ }>>, t.ExactC<t.TypeC<{
2734
2748
  type: t.LiteralC<"tableRow">;
2735
2749
  content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
2750
+ key: t.Type<string, string, unknown>;
2751
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
2736
2752
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
2737
2753
  content: t.ExactC<t.TypeC<{
2738
2754
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -2976,8 +2992,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2976
2992
  }>>;
2977
2993
  }>>, t.ExactC<t.PartialC<{
2978
2994
  columnWidth: t.NumberC;
2979
- }>>]>>;
2980
- }>>>;
2995
+ }>>]>]>>;
2996
+ }>>]>>;
2981
2997
  }>>, t.ExactC<t.TypeC<{
2982
2998
  __TYPE__: t.LiteralC<"RepeatableContent">;
2983
2999
  type: t.LiteralC<"Link">;
@@ -3492,9 +3508,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3492
3508
  __TYPE__: t.LiteralC<"SeparatorContent">;
3493
3509
  }>>, t.ExactC<t.TypeC<{
3494
3510
  __TYPE__: t.LiteralC<"TableContent">;
3495
- content: t.ArrayC<t.ExactC<t.TypeC<{
3511
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
3512
+ key: t.Type<string, string, unknown>;
3513
+ }>>, t.ExactC<t.TypeC<{
3496
3514
  type: t.LiteralC<"tableRow">;
3497
3515
  content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
3516
+ key: t.Type<string, string, unknown>;
3517
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
3498
3518
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
3499
3519
  content: t.ExactC<t.TypeC<{
3500
3520
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -3738,8 +3758,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3738
3758
  }>>;
3739
3759
  }>>, t.ExactC<t.PartialC<{
3740
3760
  columnWidth: t.NumberC;
3741
- }>>]>>;
3742
- }>>>;
3761
+ }>>]>]>>;
3762
+ }>>]>>;
3743
3763
  }>>, t.ExactC<t.TypeC<{
3744
3764
  __TYPE__: t.LiteralC<"RepeatableContent">;
3745
3765
  type: t.LiteralC<"Link">;
@@ -4253,9 +4273,13 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
4253
4273
  __TYPE__: t.LiteralC<"SeparatorContent">;
4254
4274
  }>>, t.ExactC<t.TypeC<{
4255
4275
  __TYPE__: t.LiteralC<"TableContent">;
4256
- content: t.ArrayC<t.ExactC<t.TypeC<{
4276
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
4277
+ key: t.Type<string, string, unknown>;
4278
+ }>>, t.ExactC<t.TypeC<{
4257
4279
  type: t.LiteralC<"tableRow">;
4258
4280
  content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
4281
+ key: t.Type<string, string, unknown>;
4282
+ }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
4259
4283
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
4260
4284
  content: t.ExactC<t.TypeC<{
4261
4285
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -4499,8 +4523,8 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
4499
4523
  }>>;
4500
4524
  }>>, t.ExactC<t.PartialC<{
4501
4525
  columnWidth: t.NumberC;
4502
- }>>]>>;
4503
- }>>>;
4526
+ }>>]>]>>;
4527
+ }>>]>>;
4504
4528
  }>>, t.ExactC<t.TypeC<{
4505
4529
  __TYPE__: t.LiteralC<"RepeatableContent">;
4506
4530
  type: t.LiteralC<"Link">;
@@ -5026,9 +5050,13 @@ export declare const DocumentLegacy: {
5026
5050
  __TYPE__: "SeparatorContent";
5027
5051
  } | {
5028
5052
  __TYPE__: "TableContent";
5029
- content: {
5053
+ content: ({
5054
+ key: string;
5055
+ } & {
5030
5056
  type: "tableRow";
5031
5057
  content: ({
5058
+ key: string;
5059
+ } & {
5032
5060
  type: "tableHeader" | "tableCell";
5033
5061
  content: {
5034
5062
  __TYPE__: "StructuredTextContent";
@@ -5187,7 +5215,7 @@ export declare const DocumentLegacy: {
5187
5215
  } & {
5188
5216
  columnWidth?: number;
5189
5217
  })[];
5190
- }[];
5218
+ })[];
5191
5219
  } | {
5192
5220
  __TYPE__: "UIDContent";
5193
5221
  value: string;
@@ -5620,9 +5648,13 @@ export declare const DocumentLegacy: {
5620
5648
  __TYPE__: "SeparatorContent";
5621
5649
  } | {
5622
5650
  __TYPE__: "TableContent";
5623
- content: {
5651
+ content: ({
5652
+ key: string;
5653
+ } & {
5624
5654
  type: "tableRow";
5625
5655
  content: ({
5656
+ key: string;
5657
+ } & {
5626
5658
  type: "tableHeader" | "tableCell";
5627
5659
  content: {
5628
5660
  __TYPE__: "StructuredTextContent";
@@ -5781,7 +5813,7 @@ export declare const DocumentLegacy: {
5781
5813
  } & {
5782
5814
  columnWidth?: number;
5783
5815
  })[];
5784
- }[];
5816
+ })[];
5785
5817
  } | {
5786
5818
  __TYPE__: "CompositeSliceContent";
5787
5819
  nonRepeat: {
@@ -6208,9 +6240,13 @@ export declare const DocumentLegacy: {
6208
6240
  __TYPE__: "SeparatorContent";
6209
6241
  } | {
6210
6242
  __TYPE__: "TableContent";
6211
- content: {
6243
+ content: ({
6244
+ key: string;
6245
+ } & {
6212
6246
  type: "tableRow";
6213
6247
  content: ({
6248
+ key: string;
6249
+ } & {
6214
6250
  type: "tableHeader" | "tableCell";
6215
6251
  content: {
6216
6252
  __TYPE__: "StructuredTextContent";
@@ -6369,7 +6405,7 @@ export declare const DocumentLegacy: {
6369
6405
  } & {
6370
6406
  columnWidth?: number;
6371
6407
  })[];
6372
- }[];
6408
+ })[];
6373
6409
  };
6374
6410
  };
6375
6411
  repeat: {
@@ -6797,9 +6833,13 @@ export declare const DocumentLegacy: {
6797
6833
  __TYPE__: "SeparatorContent";
6798
6834
  } | {
6799
6835
  __TYPE__: "TableContent";
6800
- content: {
6836
+ content: ({
6837
+ key: string;
6838
+ } & {
6801
6839
  type: "tableRow";
6802
6840
  content: ({
6841
+ key: string;
6842
+ } & {
6803
6843
  type: "tableHeader" | "tableCell";
6804
6844
  content: {
6805
6845
  __TYPE__: "StructuredTextContent";
@@ -6958,7 +6998,7 @@ export declare const DocumentLegacy: {
6958
6998
  } & {
6959
6999
  columnWidth?: number;
6960
7000
  })[];
6961
- }[];
7001
+ })[];
6962
7002
  }][];
6963
7003
  }[];
6964
7004
  } | {
@@ -7388,9 +7428,13 @@ export declare const DocumentLegacy: {
7388
7428
  __TYPE__: "SeparatorContent";
7389
7429
  } | {
7390
7430
  __TYPE__: "TableContent";
7391
- content: {
7431
+ content: ({
7432
+ key: string;
7433
+ } & {
7392
7434
  type: "tableRow";
7393
7435
  content: ({
7436
+ key: string;
7437
+ } & {
7394
7438
  type: "tableHeader" | "tableCell";
7395
7439
  content: {
7396
7440
  __TYPE__: "StructuredTextContent";
@@ -7549,7 +7593,7 @@ export declare const DocumentLegacy: {
7549
7593
  } & {
7550
7594
  columnWidth?: number;
7551
7595
  })[];
7552
- }[];
7596
+ })[];
7553
7597
  };
7554
7598
  };
7555
7599
  items: {
@@ -7977,9 +8021,13 @@ export declare const DocumentLegacy: {
7977
8021
  __TYPE__: "SeparatorContent";
7978
8022
  } | {
7979
8023
  __TYPE__: "TableContent";
7980
- content: {
8024
+ content: ({
8025
+ key: string;
8026
+ } & {
7981
8027
  type: "tableRow";
7982
8028
  content: ({
8029
+ key: string;
8030
+ } & {
7983
8031
  type: "tableHeader" | "tableCell";
7984
8032
  content: {
7985
8033
  __TYPE__: "StructuredTextContent";
@@ -8138,7 +8186,7 @@ export declare const DocumentLegacy: {
8138
8186
  } & {
8139
8187
  columnWidth?: number;
8140
8188
  })[];
8141
- }[];
8189
+ })[];
8142
8190
  }][];
8143
8191
  }[];
8144
8192
  };
@@ -8602,9 +8650,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
8602
8650
  __TYPE__: "SeparatorContent";
8603
8651
  } | {
8604
8652
  __TYPE__: "TableContent";
8605
- content: {
8653
+ content: ({
8654
+ key: string;
8655
+ } & {
8606
8656
  type: "tableRow";
8607
8657
  content: ({
8658
+ key: string;
8659
+ } & {
8608
8660
  type: "tableHeader" | "tableCell";
8609
8661
  content: {
8610
8662
  __TYPE__: "StructuredTextContent";
@@ -8763,7 +8815,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
8763
8815
  } & {
8764
8816
  columnWidth?: number;
8765
8817
  })[];
8766
- }[];
8818
+ })[];
8767
8819
  } | {
8768
8820
  __TYPE__: "UIDContent";
8769
8821
  value: string;
@@ -9196,9 +9248,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
9196
9248
  __TYPE__: "SeparatorContent";
9197
9249
  } | {
9198
9250
  __TYPE__: "TableContent";
9199
- content: {
9251
+ content: ({
9252
+ key: string;
9253
+ } & {
9200
9254
  type: "tableRow";
9201
9255
  content: ({
9256
+ key: string;
9257
+ } & {
9202
9258
  type: "tableHeader" | "tableCell";
9203
9259
  content: {
9204
9260
  __TYPE__: "StructuredTextContent";
@@ -9357,7 +9413,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
9357
9413
  } & {
9358
9414
  columnWidth?: number;
9359
9415
  })[];
9360
- }[];
9416
+ })[];
9361
9417
  } | {
9362
9418
  __TYPE__: "CompositeSliceContent";
9363
9419
  nonRepeat: {
@@ -9784,9 +9840,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
9784
9840
  __TYPE__: "SeparatorContent";
9785
9841
  } | {
9786
9842
  __TYPE__: "TableContent";
9787
- content: {
9843
+ content: ({
9844
+ key: string;
9845
+ } & {
9788
9846
  type: "tableRow";
9789
9847
  content: ({
9848
+ key: string;
9849
+ } & {
9790
9850
  type: "tableHeader" | "tableCell";
9791
9851
  content: {
9792
9852
  __TYPE__: "StructuredTextContent";
@@ -9945,7 +10005,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
9945
10005
  } & {
9946
10006
  columnWidth?: number;
9947
10007
  })[];
9948
- }[];
10008
+ })[];
9949
10009
  };
9950
10010
  };
9951
10011
  repeat: {
@@ -10373,9 +10433,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
10373
10433
  __TYPE__: "SeparatorContent";
10374
10434
  } | {
10375
10435
  __TYPE__: "TableContent";
10376
- content: {
10436
+ content: ({
10437
+ key: string;
10438
+ } & {
10377
10439
  type: "tableRow";
10378
10440
  content: ({
10441
+ key: string;
10442
+ } & {
10379
10443
  type: "tableHeader" | "tableCell";
10380
10444
  content: {
10381
10445
  __TYPE__: "StructuredTextContent";
@@ -10534,7 +10598,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
10534
10598
  } & {
10535
10599
  columnWidth?: number;
10536
10600
  })[];
10537
- }[];
10601
+ })[];
10538
10602
  }][];
10539
10603
  }[];
10540
10604
  } | {
@@ -10964,9 +11028,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
10964
11028
  __TYPE__: "SeparatorContent";
10965
11029
  } | {
10966
11030
  __TYPE__: "TableContent";
10967
- content: {
11031
+ content: ({
11032
+ key: string;
11033
+ } & {
10968
11034
  type: "tableRow";
10969
11035
  content: ({
11036
+ key: string;
11037
+ } & {
10970
11038
  type: "tableHeader" | "tableCell";
10971
11039
  content: {
10972
11040
  __TYPE__: "StructuredTextContent";
@@ -11125,7 +11193,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
11125
11193
  } & {
11126
11194
  columnWidth?: number;
11127
11195
  })[];
11128
- }[];
11196
+ })[];
11129
11197
  };
11130
11198
  };
11131
11199
  items: {
@@ -11553,9 +11621,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
11553
11621
  __TYPE__: "SeparatorContent";
11554
11622
  } | {
11555
11623
  __TYPE__: "TableContent";
11556
- content: {
11624
+ content: ({
11625
+ key: string;
11626
+ } & {
11557
11627
  type: "tableRow";
11558
11628
  content: ({
11629
+ key: string;
11630
+ } & {
11559
11631
  type: "tableHeader" | "tableCell";
11560
11632
  content: {
11561
11633
  __TYPE__: "StructuredTextContent";
@@ -11714,7 +11786,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
11714
11786
  } & {
11715
11787
  columnWidth?: number;
11716
11788
  })[];
11717
- }[];
11789
+ })[];
11718
11790
  }][];
11719
11791
  }[];
11720
11792
  };
@@ -5,14 +5,12 @@ import type { LegacyContentCtx, WithTypes } from "../LegacyContentCtx";
5
5
  export declare const RepeatableContent: t.ExactC<t.TypeC<{
6
6
  __TYPE__: t.LiteralC<"RepeatableContent">;
7
7
  type: t.LiteralC<"Link">;
8
- value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
9
- key: t.Type<string, string, unknown>;
10
- }>>, t.ExactC<t.TypeC<{
8
+ value: t.ArrayC<t.ExactC<t.TypeC<{
11
9
  __TYPE__: t.LiteralC<"LinkContent">;
12
10
  value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
13
11
  __TYPE__: t.LiteralC<"ImageLink">;
14
- }>>, t.IntersectionC<[t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
15
- kind: t.Type<"image", "image", unknown>;
12
+ }>>, t.UnionC<[t.IntersectionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
13
+ kind: t.StringC;
16
14
  id: t.StringC;
17
15
  url: t.StringC;
18
16
  height: t.StringC;
@@ -21,35 +19,38 @@ export declare const RepeatableContent: t.ExactC<t.TypeC<{
21
19
  name: t.StringC;
22
20
  }>>, t.ExactC<t.PartialC<{
23
21
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
22
+ }>>]>, t.ExactC<t.PartialC<{
23
+ text: t.StringC;
24
24
  }>>]>, t.ExactC<t.TypeC<{
25
25
  kind: t.LiteralC<"image">;
26
- }>>]>, t.ExactC<t.PartialC<{
27
26
  text: t.StringC;
28
27
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
29
28
  __TYPE__: t.LiteralC<"FileLink">;
30
- }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
31
- kind: t.Type<"file", "file", unknown>;
29
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
30
+ kind: t.StringC;
32
31
  id: t.StringC;
33
32
  url: t.StringC;
34
33
  name: t.StringC;
35
34
  size: t.StringC;
36
35
  }>, t.PartialC<{
37
36
  date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
38
- }>]>>, t.ExactC<t.TypeC<{
37
+ }>]>>, t.ExactC<t.PartialC<{
38
+ text: t.StringC;
39
+ }>>]>, t.ExactC<t.TypeC<{
39
40
  kind: t.LiteralC<"file">;
40
- }>>]>, t.ExactC<t.PartialC<{
41
41
  text: t.StringC;
42
42
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
43
43
  __TYPE__: t.LiteralC<"DocumentLink">;
44
- }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
44
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
45
45
  id: t.Type<string, string, unknown>;
46
- }>>, t.ExactC<t.TypeC<{
46
+ }>>, t.ExactC<t.PartialC<{
47
+ text: t.StringC;
48
+ }>>]>, t.ExactC<t.TypeC<{
47
49
  kind: t.LiteralC<"document">;
48
- }>>]>, t.ExactC<t.PartialC<{
49
50
  text: t.StringC;
50
51
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
51
52
  __TYPE__: t.LiteralC<"ExternalLink">;
52
- }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
53
+ }>>, t.UnionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
53
54
  url: t.StringC;
54
55
  }>, t.PartialC<{
55
56
  kind: t.LiteralC<"web">;
@@ -59,37 +60,33 @@ export declare const RepeatableContent: t.ExactC<t.TypeC<{
59
60
  }, {
60
61
  title?: string;
61
62
  }, unknown>, t.NullC, t.UndefinedC]>;
62
- }>]>>, t.ExactC<t.TypeC<{
63
+ }>]>>, t.ExactC<t.PartialC<{
64
+ text: t.StringC;
65
+ }>>]>, t.ExactC<t.TypeC<{
63
66
  kind: t.LiteralC<"web">;
64
- }>>]>, t.ExactC<t.PartialC<{
65
67
  text: t.StringC;
66
68
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
67
69
  __TYPE__: t.LiteralC<"MediaLink">;
68
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
70
+ }>>, t.ExactC<t.TypeC<{
69
71
  kind: t.LiteralC<"media">;
70
- }>>, t.ExactC<t.PartialC<{
71
72
  text: t.StringC;
72
- }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
73
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
73
74
  __TYPE__: t.LiteralC<"AnyLink">;
74
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
75
- kind: t.LiteralC<"any">;
76
- }>, t.PartialC<{
75
+ }>>, t.ExactC<t.TypeC<{
77
76
  text: t.StringC;
78
- }>]>>]>]>;
79
- }>>]>>;
77
+ }>>]>]>;
78
+ }>>>;
80
79
  }>>;
81
80
  export declare type RepeatableContent = t.TypeOf<typeof RepeatableContent>;
82
81
  export declare const isRepeatableContent: t.Is<{
83
82
  __TYPE__: "RepeatableContent";
84
83
  type: "Link";
85
- value: ({
86
- key: string;
87
- } & {
84
+ value: {
88
85
  __TYPE__: "LinkContent";
89
86
  value: ({
90
87
  __TYPE__: "ImageLink";
91
- } & ((({
92
- kind: "image";
88
+ } & (({
89
+ kind: string;
93
90
  id: string;
94
91
  url: string;
95
92
  height: string;
@@ -98,41 +95,43 @@ export declare const isRepeatableContent: t.Is<{
98
95
  name: string;
99
96
  } & {
100
97
  date?: string | null | undefined;
98
+ } & {
99
+ text?: string;
101
100
  }) | {
102
101
  kind: "image";
103
- }) & {
104
- text?: string;
102
+ text: string;
105
103
  })) | ({
106
104
  __TYPE__: "FileLink";
107
- } & ((({
108
- kind: "file";
105
+ } & (({
106
+ kind: string;
109
107
  id: string;
110
108
  url: string;
111
109
  name: string;
112
110
  size: string;
113
111
  } & {
114
112
  date?: string | null | undefined;
113
+ } & {
114
+ text?: string;
115
115
  }) | {
116
116
  kind: "file";
117
- }) & {
118
- text?: string;
117
+ text: string;
119
118
  })) | ({
120
119
  __TYPE__: "MediaLink";
121
120
  } & {
122
121
  kind: "media";
123
- } & {
124
- text?: string;
122
+ text: string;
125
123
  }) | ({
126
124
  __TYPE__: "DocumentLink";
127
125
  } & (({
128
126
  id: string;
129
- } | {
130
- kind: "document";
131
- }) & {
127
+ } & {
132
128
  text?: string;
129
+ }) | {
130
+ kind: "document";
131
+ text: string;
133
132
  })) | ({
134
133
  __TYPE__: "ExternalLink";
135
- } & ((({
134
+ } & (({
136
135
  url: string;
137
136
  } & {
138
137
  kind?: "web";
@@ -140,18 +139,17 @@ export declare const isRepeatableContent: t.Is<{
140
139
  preview?: {
141
140
  title?: string;
142
141
  } | null | undefined;
142
+ } & {
143
+ text?: string;
143
144
  }) | {
144
145
  kind: "web";
145
- }) & {
146
- text?: string;
146
+ text: string;
147
147
  })) | ({
148
148
  __TYPE__: "AnyLink";
149
149
  } & {
150
- kind: "any";
151
- } & {
152
- text?: string;
150
+ text: string;
153
151
  });
154
- })[];
152
+ }[];
155
153
  }>;
156
154
  export declare const RepeatableLegacy: (ctx: LegacyContentCtx, fieldType: "Link") => t.Type<RepeatableContent, WithTypes<Array<unknown>>, unknown>;
157
155
  export declare type RepeatableCustomType = Link;