@prismicio/types-internal 3.6.0 → 3.7.0-alpha.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 (25) hide show
  1. package/lib/content/Document.d.ts +72 -36
  2. package/lib/content/fields/WidgetContent.d.ts +72 -36
  3. package/lib/content/fields/nestable/NestableContent.d.ts +12 -6
  4. package/lib/content/fields/nestable/RichTextContent/Block.d.ts +1036 -0
  5. package/lib/content/fields/nestable/RichTextContent/Block.js +31 -0
  6. package/lib/content/fields/nestable/RichTextContent/EmbedBlock.d.ts +60 -0
  7. package/lib/content/fields/nestable/RichTextContent/EmbedBlock.js +53 -0
  8. package/lib/content/fields/nestable/RichTextContent/ImageBlock.d.ts +203 -0
  9. package/lib/content/fields/nestable/RichTextContent/ImageBlock.js +36 -0
  10. package/lib/content/fields/nestable/RichTextContent/TableBlock.d.ts +500 -0
  11. package/lib/content/fields/nestable/RichTextContent/TableBlock.js +21 -0
  12. package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +590 -0
  13. package/lib/content/fields/nestable/RichTextContent/TextBlock.js +80 -0
  14. package/lib/content/fields/nestable/TableContent.d.ts +16 -8
  15. package/lib/content/fields/nestable/TableContent.js +18 -8
  16. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +24 -12
  17. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +4 -2
  18. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +24 -12
  19. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +12 -6
  20. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +12 -6
  21. package/lib/content/fields/slices/Slice/index.d.ts +40 -20
  22. package/lib/content/fields/slices/SliceItem.d.ts +40 -20
  23. package/lib/content/fields/slices/SlicesContent.d.ts +60 -30
  24. package/package.json +3 -2
  25. package/src/content/fields/nestable/TableContent.ts +18 -8
@@ -436,7 +436,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
436
436
  __TYPE__: t.LiteralC<"TableContent">;
437
437
  content: t.ArrayC<t.ExactC<t.TypeC<{
438
438
  type: t.LiteralC<"tableRow">;
439
- content: t.ArrayC<t.ExactC<t.TypeC<{
439
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
440
440
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
441
441
  content: t.ExactC<t.TypeC<{
442
442
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -678,7 +678,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
678
678
  direction: t.StringC;
679
679
  }>]>>]>>;
680
680
  }>>;
681
- }>>>;
681
+ }>>, t.PartialC<{
682
+ columnWidth: t.NumberC;
683
+ }>]>>;
682
684
  }>>>;
683
685
  }>>, t.ExactC<t.TypeC<{
684
686
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -1204,7 +1206,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1204
1206
  __TYPE__: t.LiteralC<"TableContent">;
1205
1207
  content: t.ArrayC<t.ExactC<t.TypeC<{
1206
1208
  type: t.LiteralC<"tableRow">;
1207
- content: t.ArrayC<t.ExactC<t.TypeC<{
1209
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
1208
1210
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
1209
1211
  content: t.ExactC<t.TypeC<{
1210
1212
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -1446,7 +1448,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1446
1448
  direction: t.StringC;
1447
1449
  }>]>>]>>;
1448
1450
  }>>;
1449
- }>>>;
1451
+ }>>, t.PartialC<{
1452
+ columnWidth: t.NumberC;
1453
+ }>]>>;
1450
1454
  }>>>;
1451
1455
  }>>, t.ExactC<t.TypeC<{
1452
1456
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -1964,7 +1968,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
1964
1968
  __TYPE__: t.LiteralC<"TableContent">;
1965
1969
  content: t.ArrayC<t.ExactC<t.TypeC<{
1966
1970
  type: t.LiteralC<"tableRow">;
1967
- content: t.ArrayC<t.ExactC<t.TypeC<{
1971
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
1968
1972
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
1969
1973
  content: t.ExactC<t.TypeC<{
1970
1974
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -2206,7 +2210,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2206
2210
  direction: t.StringC;
2207
2211
  }>]>>]>>;
2208
2212
  }>>;
2209
- }>>>;
2213
+ }>>, t.PartialC<{
2214
+ columnWidth: t.NumberC;
2215
+ }>]>>;
2210
2216
  }>>>;
2211
2217
  }>>, t.ExactC<t.TypeC<{
2212
2218
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -2726,7 +2732,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2726
2732
  __TYPE__: t.LiteralC<"TableContent">;
2727
2733
  content: t.ArrayC<t.ExactC<t.TypeC<{
2728
2734
  type: t.LiteralC<"tableRow">;
2729
- content: t.ArrayC<t.ExactC<t.TypeC<{
2735
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
2730
2736
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
2731
2737
  content: t.ExactC<t.TypeC<{
2732
2738
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -2968,7 +2974,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
2968
2974
  direction: t.StringC;
2969
2975
  }>]>>]>>;
2970
2976
  }>>;
2971
- }>>>;
2977
+ }>>, t.PartialC<{
2978
+ columnWidth: t.NumberC;
2979
+ }>]>>;
2972
2980
  }>>>;
2973
2981
  }>>, t.ExactC<t.TypeC<{
2974
2982
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -3486,7 +3494,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3486
3494
  __TYPE__: t.LiteralC<"TableContent">;
3487
3495
  content: t.ArrayC<t.ExactC<t.TypeC<{
3488
3496
  type: t.LiteralC<"tableRow">;
3489
- content: t.ArrayC<t.ExactC<t.TypeC<{
3497
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
3490
3498
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
3491
3499
  content: t.ExactC<t.TypeC<{
3492
3500
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -3728,7 +3736,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
3728
3736
  direction: t.StringC;
3729
3737
  }>]>>]>>;
3730
3738
  }>>;
3731
- }>>>;
3739
+ }>>, t.PartialC<{
3740
+ columnWidth: t.NumberC;
3741
+ }>]>>;
3732
3742
  }>>>;
3733
3743
  }>>, t.ExactC<t.TypeC<{
3734
3744
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -4245,7 +4255,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
4245
4255
  __TYPE__: t.LiteralC<"TableContent">;
4246
4256
  content: t.ArrayC<t.ExactC<t.TypeC<{
4247
4257
  type: t.LiteralC<"tableRow">;
4248
- content: t.ArrayC<t.ExactC<t.TypeC<{
4258
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
4249
4259
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
4250
4260
  content: t.ExactC<t.TypeC<{
4251
4261
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -4487,7 +4497,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
4487
4497
  direction: t.StringC;
4488
4498
  }>]>>]>>;
4489
4499
  }>>;
4490
- }>>>;
4500
+ }>>, t.PartialC<{
4501
+ columnWidth: t.NumberC;
4502
+ }>]>>;
4491
4503
  }>>>;
4492
4504
  }>>, t.ExactC<t.TypeC<{
4493
4505
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -5016,7 +5028,7 @@ export declare const DocumentLegacy: {
5016
5028
  __TYPE__: "TableContent";
5017
5029
  content: {
5018
5030
  type: "tableRow";
5019
- content: {
5031
+ content: ({
5020
5032
  type: "tableHeader" | "tableCell";
5021
5033
  content: {
5022
5034
  __TYPE__: "StructuredTextContent";
@@ -5172,7 +5184,9 @@ export declare const DocumentLegacy: {
5172
5184
  direction?: string;
5173
5185
  }))[];
5174
5186
  };
5175
- }[];
5187
+ } & {
5188
+ columnWidth?: number;
5189
+ })[];
5176
5190
  }[];
5177
5191
  } | {
5178
5192
  __TYPE__: "UIDContent";
@@ -5608,7 +5622,7 @@ export declare const DocumentLegacy: {
5608
5622
  __TYPE__: "TableContent";
5609
5623
  content: {
5610
5624
  type: "tableRow";
5611
- content: {
5625
+ content: ({
5612
5626
  type: "tableHeader" | "tableCell";
5613
5627
  content: {
5614
5628
  __TYPE__: "StructuredTextContent";
@@ -5764,7 +5778,9 @@ export declare const DocumentLegacy: {
5764
5778
  direction?: string;
5765
5779
  }))[];
5766
5780
  };
5767
- }[];
5781
+ } & {
5782
+ columnWidth?: number;
5783
+ })[];
5768
5784
  }[];
5769
5785
  } | {
5770
5786
  __TYPE__: "CompositeSliceContent";
@@ -6194,7 +6210,7 @@ export declare const DocumentLegacy: {
6194
6210
  __TYPE__: "TableContent";
6195
6211
  content: {
6196
6212
  type: "tableRow";
6197
- content: {
6213
+ content: ({
6198
6214
  type: "tableHeader" | "tableCell";
6199
6215
  content: {
6200
6216
  __TYPE__: "StructuredTextContent";
@@ -6350,7 +6366,9 @@ export declare const DocumentLegacy: {
6350
6366
  direction?: string;
6351
6367
  }))[];
6352
6368
  };
6353
- }[];
6369
+ } & {
6370
+ columnWidth?: number;
6371
+ })[];
6354
6372
  }[];
6355
6373
  };
6356
6374
  };
@@ -6781,7 +6799,7 @@ export declare const DocumentLegacy: {
6781
6799
  __TYPE__: "TableContent";
6782
6800
  content: {
6783
6801
  type: "tableRow";
6784
- content: {
6802
+ content: ({
6785
6803
  type: "tableHeader" | "tableCell";
6786
6804
  content: {
6787
6805
  __TYPE__: "StructuredTextContent";
@@ -6937,7 +6955,9 @@ export declare const DocumentLegacy: {
6937
6955
  direction?: string;
6938
6956
  }))[];
6939
6957
  };
6940
- }[];
6958
+ } & {
6959
+ columnWidth?: number;
6960
+ })[];
6941
6961
  }[];
6942
6962
  }][];
6943
6963
  }[];
@@ -7370,7 +7390,7 @@ export declare const DocumentLegacy: {
7370
7390
  __TYPE__: "TableContent";
7371
7391
  content: {
7372
7392
  type: "tableRow";
7373
- content: {
7393
+ content: ({
7374
7394
  type: "tableHeader" | "tableCell";
7375
7395
  content: {
7376
7396
  __TYPE__: "StructuredTextContent";
@@ -7526,7 +7546,9 @@ export declare const DocumentLegacy: {
7526
7546
  direction?: string;
7527
7547
  }))[];
7528
7548
  };
7529
- }[];
7549
+ } & {
7550
+ columnWidth?: number;
7551
+ })[];
7530
7552
  }[];
7531
7553
  };
7532
7554
  };
@@ -7957,7 +7979,7 @@ export declare const DocumentLegacy: {
7957
7979
  __TYPE__: "TableContent";
7958
7980
  content: {
7959
7981
  type: "tableRow";
7960
- content: {
7982
+ content: ({
7961
7983
  type: "tableHeader" | "tableCell";
7962
7984
  content: {
7963
7985
  __TYPE__: "StructuredTextContent";
@@ -8113,7 +8135,9 @@ export declare const DocumentLegacy: {
8113
8135
  direction?: string;
8114
8136
  }))[];
8115
8137
  };
8116
- }[];
8138
+ } & {
8139
+ columnWidth?: number;
8140
+ })[];
8117
8141
  }[];
8118
8142
  }][];
8119
8143
  }[];
@@ -8580,7 +8604,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
8580
8604
  __TYPE__: "TableContent";
8581
8605
  content: {
8582
8606
  type: "tableRow";
8583
- content: {
8607
+ content: ({
8584
8608
  type: "tableHeader" | "tableCell";
8585
8609
  content: {
8586
8610
  __TYPE__: "StructuredTextContent";
@@ -8736,7 +8760,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
8736
8760
  direction?: string;
8737
8761
  }))[];
8738
8762
  };
8739
- }[];
8763
+ } & {
8764
+ columnWidth?: number;
8765
+ })[];
8740
8766
  }[];
8741
8767
  } | {
8742
8768
  __TYPE__: "UIDContent";
@@ -9172,7 +9198,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
9172
9198
  __TYPE__: "TableContent";
9173
9199
  content: {
9174
9200
  type: "tableRow";
9175
- content: {
9201
+ content: ({
9176
9202
  type: "tableHeader" | "tableCell";
9177
9203
  content: {
9178
9204
  __TYPE__: "StructuredTextContent";
@@ -9328,7 +9354,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
9328
9354
  direction?: string;
9329
9355
  }))[];
9330
9356
  };
9331
- }[];
9357
+ } & {
9358
+ columnWidth?: number;
9359
+ })[];
9332
9360
  }[];
9333
9361
  } | {
9334
9362
  __TYPE__: "CompositeSliceContent";
@@ -9758,7 +9786,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
9758
9786
  __TYPE__: "TableContent";
9759
9787
  content: {
9760
9788
  type: "tableRow";
9761
- content: {
9789
+ content: ({
9762
9790
  type: "tableHeader" | "tableCell";
9763
9791
  content: {
9764
9792
  __TYPE__: "StructuredTextContent";
@@ -9914,7 +9942,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
9914
9942
  direction?: string;
9915
9943
  }))[];
9916
9944
  };
9917
- }[];
9945
+ } & {
9946
+ columnWidth?: number;
9947
+ })[];
9918
9948
  }[];
9919
9949
  };
9920
9950
  };
@@ -10345,7 +10375,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
10345
10375
  __TYPE__: "TableContent";
10346
10376
  content: {
10347
10377
  type: "tableRow";
10348
- content: {
10378
+ content: ({
10349
10379
  type: "tableHeader" | "tableCell";
10350
10380
  content: {
10351
10381
  __TYPE__: "StructuredTextContent";
@@ -10501,7 +10531,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
10501
10531
  direction?: string;
10502
10532
  }))[];
10503
10533
  };
10504
- }[];
10534
+ } & {
10535
+ columnWidth?: number;
10536
+ })[];
10505
10537
  }[];
10506
10538
  }][];
10507
10539
  }[];
@@ -10934,7 +10966,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
10934
10966
  __TYPE__: "TableContent";
10935
10967
  content: {
10936
10968
  type: "tableRow";
10937
- content: {
10969
+ content: ({
10938
10970
  type: "tableHeader" | "tableCell";
10939
10971
  content: {
10940
10972
  __TYPE__: "StructuredTextContent";
@@ -11090,7 +11122,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
11090
11122
  direction?: string;
11091
11123
  }))[];
11092
11124
  };
11093
- }[];
11125
+ } & {
11126
+ columnWidth?: number;
11127
+ })[];
11094
11128
  }[];
11095
11129
  };
11096
11130
  };
@@ -11521,7 +11555,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
11521
11555
  __TYPE__: "TableContent";
11522
11556
  content: {
11523
11557
  type: "tableRow";
11524
- content: {
11558
+ content: ({
11525
11559
  type: "tableHeader" | "tableCell";
11526
11560
  content: {
11527
11561
  __TYPE__: "StructuredTextContent";
@@ -11677,7 +11711,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
11677
11711
  direction?: string;
11678
11712
  }))[];
11679
11713
  };
11680
- }[];
11714
+ } & {
11715
+ columnWidth?: number;
11716
+ })[];
11681
11717
  }[];
11682
11718
  }][];
11683
11719
  }[];