@prismicio/types-internal 3.6.0 → 3.7.0-alpha.1

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 +1 -1
  25. package/src/content/fields/nestable/TableContent.ts +22 -8
@@ -426,7 +426,7 @@ export declare const SliceLegacy: (ctx: LegacyContentCtx) => {
426
426
  __TYPE__: "TableContent";
427
427
  content: {
428
428
  type: "tableRow";
429
- content: {
429
+ content: ({
430
430
  type: "tableHeader" | "tableCell";
431
431
  content: {
432
432
  __TYPE__: "StructuredTextContent";
@@ -582,7 +582,9 @@ export declare const SliceLegacy: (ctx: LegacyContentCtx) => {
582
582
  direction?: string;
583
583
  }))[];
584
584
  };
585
- }[];
585
+ } & {
586
+ columnWidth?: number;
587
+ })[];
586
588
  }[];
587
589
  }> | import("fp-ts/lib/Either").Right<{
588
590
  __TYPE__: "CompositeSliceContent";
@@ -1012,7 +1014,7 @@ export declare const SliceLegacy: (ctx: LegacyContentCtx) => {
1012
1014
  __TYPE__: "TableContent";
1013
1015
  content: {
1014
1016
  type: "tableRow";
1015
- content: {
1017
+ content: ({
1016
1018
  type: "tableHeader" | "tableCell";
1017
1019
  content: {
1018
1020
  __TYPE__: "StructuredTextContent";
@@ -1168,7 +1170,9 @@ export declare const SliceLegacy: (ctx: LegacyContentCtx) => {
1168
1170
  direction?: string;
1169
1171
  }))[];
1170
1172
  };
1171
- }[];
1173
+ } & {
1174
+ columnWidth?: number;
1175
+ })[];
1172
1176
  }[];
1173
1177
  };
1174
1178
  };
@@ -1599,7 +1603,7 @@ export declare const SliceLegacy: (ctx: LegacyContentCtx) => {
1599
1603
  __TYPE__: "TableContent";
1600
1604
  content: {
1601
1605
  type: "tableRow";
1602
- content: {
1606
+ content: ({
1603
1607
  type: "tableHeader" | "tableCell";
1604
1608
  content: {
1605
1609
  __TYPE__: "StructuredTextContent";
@@ -1755,7 +1759,9 @@ export declare const SliceLegacy: (ctx: LegacyContentCtx) => {
1755
1759
  direction?: string;
1756
1760
  }))[];
1757
1761
  };
1758
- }[];
1762
+ } & {
1763
+ columnWidth?: number;
1764
+ })[];
1759
1765
  }[];
1760
1766
  }][];
1761
1767
  }[];
@@ -2188,7 +2194,7 @@ export declare const SliceLegacy: (ctx: LegacyContentCtx) => {
2188
2194
  __TYPE__: "TableContent";
2189
2195
  content: {
2190
2196
  type: "tableRow";
2191
- content: {
2197
+ content: ({
2192
2198
  type: "tableHeader" | "tableCell";
2193
2199
  content: {
2194
2200
  __TYPE__: "StructuredTextContent";
@@ -2344,7 +2350,9 @@ export declare const SliceLegacy: (ctx: LegacyContentCtx) => {
2344
2350
  direction?: string;
2345
2351
  }))[];
2346
2352
  };
2347
- }[];
2353
+ } & {
2354
+ columnWidth?: number;
2355
+ })[];
2348
2356
  }[];
2349
2357
  };
2350
2358
  };
@@ -2775,7 +2783,7 @@ export declare const SliceLegacy: (ctx: LegacyContentCtx) => {
2775
2783
  __TYPE__: "TableContent";
2776
2784
  content: {
2777
2785
  type: "tableRow";
2778
- content: {
2786
+ content: ({
2779
2787
  type: "tableHeader" | "tableCell";
2780
2788
  content: {
2781
2789
  __TYPE__: "StructuredTextContent";
@@ -2931,7 +2939,9 @@ export declare const SliceLegacy: (ctx: LegacyContentCtx) => {
2931
2939
  direction?: string;
2932
2940
  }))[];
2933
2941
  };
2934
- }[];
2942
+ } & {
2943
+ columnWidth?: number;
2944
+ })[];
2935
2945
  }[];
2936
2946
  }][];
2937
2947
  }[];
@@ -3372,7 +3382,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
3372
3382
  __TYPE__: t.LiteralC<"TableContent">;
3373
3383
  content: t.ArrayC<t.ExactC<t.TypeC<{
3374
3384
  type: t.LiteralC<"tableRow">;
3375
- content: t.ArrayC<t.ExactC<t.TypeC<{
3385
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
3376
3386
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
3377
3387
  content: t.ExactC<t.TypeC<{
3378
3388
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -3614,7 +3624,9 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
3614
3624
  direction: t.StringC;
3615
3625
  }>]>>]>>;
3616
3626
  }>>;
3617
- }>>>;
3627
+ }>>, t.ExactC<t.PartialC<{
3628
+ columnWidth: t.NumberC;
3629
+ }>>]>>;
3618
3630
  }>>>;
3619
3631
  }>>, t.ExactC<t.TypeC<{
3620
3632
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -4132,7 +4144,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
4132
4144
  __TYPE__: t.LiteralC<"TableContent">;
4133
4145
  content: t.ArrayC<t.ExactC<t.TypeC<{
4134
4146
  type: t.LiteralC<"tableRow">;
4135
- content: t.ArrayC<t.ExactC<t.TypeC<{
4147
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
4136
4148
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
4137
4149
  content: t.ExactC<t.TypeC<{
4138
4150
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -4374,7 +4386,9 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
4374
4386
  direction: t.StringC;
4375
4387
  }>]>>]>>;
4376
4388
  }>>;
4377
- }>>>;
4389
+ }>>, t.ExactC<t.PartialC<{
4390
+ columnWidth: t.NumberC;
4391
+ }>>]>>;
4378
4392
  }>>>;
4379
4393
  }>>, t.ExactC<t.TypeC<{
4380
4394
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -4894,7 +4908,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
4894
4908
  __TYPE__: t.LiteralC<"TableContent">;
4895
4909
  content: t.ArrayC<t.ExactC<t.TypeC<{
4896
4910
  type: t.LiteralC<"tableRow">;
4897
- content: t.ArrayC<t.ExactC<t.TypeC<{
4911
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
4898
4912
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
4899
4913
  content: t.ExactC<t.TypeC<{
4900
4914
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -5136,7 +5150,9 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
5136
5150
  direction: t.StringC;
5137
5151
  }>]>>]>>;
5138
5152
  }>>;
5139
- }>>>;
5153
+ }>>, t.ExactC<t.PartialC<{
5154
+ columnWidth: t.NumberC;
5155
+ }>>]>>;
5140
5156
  }>>>;
5141
5157
  }>>, t.ExactC<t.TypeC<{
5142
5158
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -5654,7 +5670,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
5654
5670
  __TYPE__: t.LiteralC<"TableContent">;
5655
5671
  content: t.ArrayC<t.ExactC<t.TypeC<{
5656
5672
  type: t.LiteralC<"tableRow">;
5657
- content: t.ArrayC<t.ExactC<t.TypeC<{
5673
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
5658
5674
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
5659
5675
  content: t.ExactC<t.TypeC<{
5660
5676
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -5896,7 +5912,9 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
5896
5912
  direction: t.StringC;
5897
5913
  }>]>>]>>;
5898
5914
  }>>;
5899
- }>>>;
5915
+ }>>, t.ExactC<t.PartialC<{
5916
+ columnWidth: t.NumberC;
5917
+ }>>]>>;
5900
5918
  }>>>;
5901
5919
  }>>, t.ExactC<t.TypeC<{
5902
5920
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -6413,7 +6431,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
6413
6431
  __TYPE__: t.LiteralC<"TableContent">;
6414
6432
  content: t.ArrayC<t.ExactC<t.TypeC<{
6415
6433
  type: t.LiteralC<"tableRow">;
6416
- content: t.ArrayC<t.ExactC<t.TypeC<{
6434
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
6417
6435
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
6418
6436
  content: t.ExactC<t.TypeC<{
6419
6437
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -6655,7 +6673,9 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
6655
6673
  direction: t.StringC;
6656
6674
  }>]>>]>>;
6657
6675
  }>>;
6658
- }>>>;
6676
+ }>>, t.ExactC<t.PartialC<{
6677
+ columnWidth: t.NumberC;
6678
+ }>>]>>;
6659
6679
  }>>>;
6660
6680
  }>>, t.ExactC<t.TypeC<{
6661
6681
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -444,7 +444,7 @@ export declare const SliceItemContent: t.TypeC<{
444
444
  __TYPE__: t.LiteralC<"TableContent">;
445
445
  content: t.ArrayC<t.ExactC<t.TypeC<{
446
446
  type: t.LiteralC<"tableRow">;
447
- content: t.ArrayC<t.ExactC<t.TypeC<{
447
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
448
448
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
449
449
  content: t.ExactC<t.TypeC<{
450
450
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -686,7 +686,9 @@ export declare const SliceItemContent: t.TypeC<{
686
686
  direction: t.StringC;
687
687
  }>]>>]>>;
688
688
  }>>;
689
- }>>>;
689
+ }>>, t.ExactC<t.PartialC<{
690
+ columnWidth: t.NumberC;
691
+ }>>]>>;
690
692
  }>>>;
691
693
  }>>, t.ExactC<t.TypeC<{
692
694
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -1204,7 +1206,7 @@ export declare const SliceItemContent: t.TypeC<{
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 SliceItemContent: t.TypeC<{
1446
1448
  direction: t.StringC;
1447
1449
  }>]>>]>>;
1448
1450
  }>>;
1449
- }>>>;
1451
+ }>>, t.ExactC<t.PartialC<{
1452
+ columnWidth: t.NumberC;
1453
+ }>>]>>;
1450
1454
  }>>>;
1451
1455
  }>>, t.ExactC<t.TypeC<{
1452
1456
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -1966,7 +1970,7 @@ export declare const SliceItemContent: t.TypeC<{
1966
1970
  __TYPE__: t.LiteralC<"TableContent">;
1967
1971
  content: t.ArrayC<t.ExactC<t.TypeC<{
1968
1972
  type: t.LiteralC<"tableRow">;
1969
- content: t.ArrayC<t.ExactC<t.TypeC<{
1973
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
1970
1974
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
1971
1975
  content: t.ExactC<t.TypeC<{
1972
1976
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -2208,7 +2212,9 @@ export declare const SliceItemContent: t.TypeC<{
2208
2212
  direction: t.StringC;
2209
2213
  }>]>>]>>;
2210
2214
  }>>;
2211
- }>>>;
2215
+ }>>, t.ExactC<t.PartialC<{
2216
+ columnWidth: t.NumberC;
2217
+ }>>]>>;
2212
2218
  }>>>;
2213
2219
  }>>, t.ExactC<t.TypeC<{
2214
2220
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -2726,7 +2732,7 @@ export declare const SliceItemContent: t.TypeC<{
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 SliceItemContent: t.TypeC<{
2968
2974
  direction: t.StringC;
2969
2975
  }>]>>]>>;
2970
2976
  }>>;
2971
- }>>>;
2977
+ }>>, t.ExactC<t.PartialC<{
2978
+ columnWidth: t.NumberC;
2979
+ }>>]>>;
2972
2980
  }>>>;
2973
2981
  }>>, t.ExactC<t.TypeC<{
2974
2982
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -3485,7 +3493,7 @@ export declare const SliceItemContent: t.TypeC<{
3485
3493
  __TYPE__: t.LiteralC<"TableContent">;
3486
3494
  content: t.ArrayC<t.ExactC<t.TypeC<{
3487
3495
  type: t.LiteralC<"tableRow">;
3488
- content: t.ArrayC<t.ExactC<t.TypeC<{
3496
+ content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
3489
3497
  type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
3490
3498
  content: t.ExactC<t.TypeC<{
3491
3499
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -3727,7 +3735,9 @@ export declare const SliceItemContent: t.TypeC<{
3727
3735
  direction: t.StringC;
3728
3736
  }>]>>]>>;
3729
3737
  }>>;
3730
- }>>>;
3738
+ }>>, t.ExactC<t.PartialC<{
3739
+ columnWidth: t.NumberC;
3740
+ }>>]>>;
3731
3741
  }>>>;
3732
3742
  }>>, t.ExactC<t.TypeC<{
3733
3743
  __TYPE__: t.LiteralC<"RepeatableContent">;
@@ -4255,7 +4265,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
4255
4265
  __TYPE__: "TableContent";
4256
4266
  content: {
4257
4267
  type: "tableRow";
4258
- content: {
4268
+ content: ({
4259
4269
  type: "tableHeader" | "tableCell";
4260
4270
  content: {
4261
4271
  __TYPE__: "StructuredTextContent";
@@ -4411,7 +4421,9 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
4411
4421
  direction?: string;
4412
4422
  }))[];
4413
4423
  };
4414
- }[];
4424
+ } & {
4425
+ columnWidth?: number;
4426
+ })[];
4415
4427
  }[];
4416
4428
  } | {
4417
4429
  __TYPE__: "CompositeSliceContent";
@@ -4841,7 +4853,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
4841
4853
  __TYPE__: "TableContent";
4842
4854
  content: {
4843
4855
  type: "tableRow";
4844
- content: {
4856
+ content: ({
4845
4857
  type: "tableHeader" | "tableCell";
4846
4858
  content: {
4847
4859
  __TYPE__: "StructuredTextContent";
@@ -4997,7 +5009,9 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
4997
5009
  direction?: string;
4998
5010
  }))[];
4999
5011
  };
5000
- }[];
5012
+ } & {
5013
+ columnWidth?: number;
5014
+ })[];
5001
5015
  }[];
5002
5016
  };
5003
5017
  };
@@ -5428,7 +5442,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
5428
5442
  __TYPE__: "TableContent";
5429
5443
  content: {
5430
5444
  type: "tableRow";
5431
- content: {
5445
+ content: ({
5432
5446
  type: "tableHeader" | "tableCell";
5433
5447
  content: {
5434
5448
  __TYPE__: "StructuredTextContent";
@@ -5584,7 +5598,9 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
5584
5598
  direction?: string;
5585
5599
  }))[];
5586
5600
  };
5587
- }[];
5601
+ } & {
5602
+ columnWidth?: number;
5603
+ })[];
5588
5604
  }[];
5589
5605
  }][];
5590
5606
  }[];
@@ -6017,7 +6033,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
6017
6033
  __TYPE__: "TableContent";
6018
6034
  content: {
6019
6035
  type: "tableRow";
6020
- content: {
6036
+ content: ({
6021
6037
  type: "tableHeader" | "tableCell";
6022
6038
  content: {
6023
6039
  __TYPE__: "StructuredTextContent";
@@ -6173,7 +6189,9 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
6173
6189
  direction?: string;
6174
6190
  }))[];
6175
6191
  };
6176
- }[];
6192
+ } & {
6193
+ columnWidth?: number;
6194
+ })[];
6177
6195
  }[];
6178
6196
  };
6179
6197
  };
@@ -6604,7 +6622,7 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
6604
6622
  __TYPE__: "TableContent";
6605
6623
  content: {
6606
6624
  type: "tableRow";
6607
- content: {
6625
+ content: ({
6608
6626
  type: "tableHeader" | "tableCell";
6609
6627
  content: {
6610
6628
  __TYPE__: "StructuredTextContent";
@@ -6760,7 +6778,9 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
6760
6778
  direction?: string;
6761
6779
  }))[];
6762
6780
  };
6763
- }[];
6781
+ } & {
6782
+ columnWidth?: number;
6783
+ })[];
6764
6784
  }[];
6765
6785
  }][];
6766
6786
  }[];