@prismicio/types-internal 2.4.0-alpha.1 → 2.4.0-alpha.3

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 (44) hide show
  1. package/lib/content/Document.d.ts +0 -72
  2. package/lib/content/fields/GroupContent.d.ts +0 -15
  3. package/lib/content/fields/WidgetContent.d.ts +0 -72
  4. package/lib/content/fields/nestable/ImageContent.d.ts +0 -9
  5. package/lib/content/fields/nestable/ImageContent.js +0 -1
  6. package/lib/content/fields/nestable/NestableContent.d.ts +0 -9
  7. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +0 -4
  8. package/lib/content/fields/nestable/RichTextContent/index.d.ts +0 -4
  9. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +0 -18
  10. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +0 -6
  11. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +0 -18
  12. package/lib/content/fields/slices/Slice/SharedSliceContent.js +3 -1
  13. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +0 -18
  14. package/lib/content/fields/slices/Slice/index.d.ts +0 -36
  15. package/lib/content/fields/slices/SliceItem.d.ts +0 -36
  16. package/lib/content/fields/slices/SlicesContent.d.ts +0 -54
  17. package/lib/customtypes/CustomType.d.ts +169 -14
  18. package/lib/customtypes/Section.d.ts +169 -14
  19. package/lib/customtypes/diff/SharedSlice.d.ts +338 -4
  20. package/lib/customtypes/diff/Variation.d.ts +340 -5
  21. package/lib/customtypes/widgets/Group.d.ts +0 -2
  22. package/lib/customtypes/widgets/Widget.d.ts +169 -16
  23. package/lib/customtypes/widgets/nestable/Image.d.ts +0 -2
  24. package/lib/customtypes/widgets/nestable/Image.js +0 -1
  25. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +0 -1
  26. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +0 -2
  27. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +0 -2
  28. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +336 -6
  29. package/lib/customtypes/widgets/slices/SharedSlice.js +2 -1
  30. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +327 -0
  31. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.js +8 -0
  32. package/lib/customtypes/widgets/slices/SliceWidget.d.ts +327 -0
  33. package/lib/customtypes/widgets/slices/SliceWidget.js +8 -0
  34. package/lib/customtypes/widgets/slices/Slices.d.ts +338 -24
  35. package/lib/customtypes/widgets/slices/index.d.ts +1 -0
  36. package/lib/customtypes/widgets/slices/index.js +1 -0
  37. package/package.json +1 -1
  38. package/src/content/fields/nestable/ImageContent.ts +0 -1
  39. package/src/content/fields/slices/Slice/SharedSliceContent.ts +12 -2
  40. package/src/customtypes/diff/Variation.ts +6 -5
  41. package/src/customtypes/widgets/nestable/Image.ts +0 -1
  42. package/src/customtypes/widgets/slices/SharedSlice.ts +2 -1
  43. package/src/customtypes/widgets/slices/SlicePrimaryWidget.ts +9 -0
  44. package/src/customtypes/widgets/slices/index.ts +1 -0
@@ -93,7 +93,6 @@ export declare const SliceItemContent: t.TypeC<{
93
93
  credits: t.Type<string | null, string | null, unknown>;
94
94
  alt: t.Type<string | null, string | null, unknown>;
95
95
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
96
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
97
96
  }>]>>, t.PartialC<{
98
97
  thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
99
98
  origin: t.ExactC<t.TypeC<{
@@ -117,7 +116,6 @@ export declare const SliceItemContent: t.TypeC<{
117
116
  credits: t.Type<string | null, string | null, unknown>;
118
117
  alt: t.Type<string | null, string | null, unknown>;
119
118
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
120
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
121
119
  }>]>>>;
122
120
  }>]>, t.ExactC<t.TypeC<{
123
121
  __TYPE__: t.LiteralC<"ImageContent">;
@@ -193,7 +191,6 @@ export declare const SliceItemContent: t.TypeC<{
193
191
  credits: t.Type<string | null, string | null, unknown>;
194
192
  alt: t.Type<string | null, string | null, unknown>;
195
193
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
196
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
197
194
  }>]>>, t.PartialC<{
198
195
  linkTo: t.UnionC<[t.Type<({
199
196
  __TYPE__: "ImageLink";
@@ -491,7 +488,6 @@ export declare const SliceItemContent: t.TypeC<{
491
488
  credits: t.Type<string | null, string | null, unknown>;
492
489
  alt: t.Type<string | null, string | null, unknown>;
493
490
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
494
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
495
491
  }>]>>, t.PartialC<{
496
492
  thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
497
493
  origin: t.ExactC<t.TypeC<{
@@ -515,7 +511,6 @@ export declare const SliceItemContent: t.TypeC<{
515
511
  credits: t.Type<string | null, string | null, unknown>;
516
512
  alt: t.Type<string | null, string | null, unknown>;
517
513
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
518
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
519
514
  }>]>>>;
520
515
  }>]>, t.ExactC<t.TypeC<{
521
516
  __TYPE__: t.LiteralC<"ImageContent">;
@@ -591,7 +586,6 @@ export declare const SliceItemContent: t.TypeC<{
591
586
  credits: t.Type<string | null, string | null, unknown>;
592
587
  alt: t.Type<string | null, string | null, unknown>;
593
588
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
594
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
595
589
  }>]>>, t.PartialC<{
596
590
  linkTo: t.UnionC<[t.Type<({
597
591
  __TYPE__: "ImageLink";
@@ -891,7 +885,6 @@ export declare const SliceItemContent: t.TypeC<{
891
885
  credits: t.Type<string | null, string | null, unknown>;
892
886
  alt: t.Type<string | null, string | null, unknown>;
893
887
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
894
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
895
888
  }>]>>, t.PartialC<{
896
889
  thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
897
890
  origin: t.ExactC<t.TypeC<{
@@ -915,7 +908,6 @@ export declare const SliceItemContent: t.TypeC<{
915
908
  credits: t.Type<string | null, string | null, unknown>;
916
909
  alt: t.Type<string | null, string | null, unknown>;
917
910
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
918
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
919
911
  }>]>>>;
920
912
  }>]>, t.ExactC<t.TypeC<{
921
913
  __TYPE__: t.LiteralC<"ImageContent">;
@@ -991,7 +983,6 @@ export declare const SliceItemContent: t.TypeC<{
991
983
  credits: t.Type<string | null, string | null, unknown>;
992
984
  alt: t.Type<string | null, string | null, unknown>;
993
985
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
994
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
995
986
  }>]>>, t.PartialC<{
996
987
  linkTo: t.UnionC<[t.Type<({
997
988
  __TYPE__: "ImageLink";
@@ -1289,7 +1280,6 @@ export declare const SliceItemContent: t.TypeC<{
1289
1280
  credits: t.Type<string | null, string | null, unknown>;
1290
1281
  alt: t.Type<string | null, string | null, unknown>;
1291
1282
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1292
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1293
1283
  }>]>>, t.PartialC<{
1294
1284
  thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
1295
1285
  origin: t.ExactC<t.TypeC<{
@@ -1313,7 +1303,6 @@ export declare const SliceItemContent: t.TypeC<{
1313
1303
  credits: t.Type<string | null, string | null, unknown>;
1314
1304
  alt: t.Type<string | null, string | null, unknown>;
1315
1305
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1316
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1317
1306
  }>]>>>;
1318
1307
  }>]>, t.ExactC<t.TypeC<{
1319
1308
  __TYPE__: t.LiteralC<"ImageContent">;
@@ -1389,7 +1378,6 @@ export declare const SliceItemContent: t.TypeC<{
1389
1378
  credits: t.Type<string | null, string | null, unknown>;
1390
1379
  alt: t.Type<string | null, string | null, unknown>;
1391
1380
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1392
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1393
1381
  }>]>>, t.PartialC<{
1394
1382
  linkTo: t.UnionC<[t.Type<({
1395
1383
  __TYPE__: "ImageLink";
@@ -1686,7 +1674,6 @@ export declare const SliceItemContent: t.TypeC<{
1686
1674
  credits: t.Type<string | null, string | null, unknown>;
1687
1675
  alt: t.Type<string | null, string | null, unknown>;
1688
1676
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1689
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1690
1677
  }>]>>, t.PartialC<{
1691
1678
  thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
1692
1679
  origin: t.ExactC<t.TypeC<{
@@ -1710,7 +1697,6 @@ export declare const SliceItemContent: t.TypeC<{
1710
1697
  credits: t.Type<string | null, string | null, unknown>;
1711
1698
  alt: t.Type<string | null, string | null, unknown>;
1712
1699
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1713
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1714
1700
  }>]>>>;
1715
1701
  }>]>, t.ExactC<t.TypeC<{
1716
1702
  __TYPE__: t.LiteralC<"ImageContent">;
@@ -1786,7 +1772,6 @@ export declare const SliceItemContent: t.TypeC<{
1786
1772
  credits: t.Type<string | null, string | null, unknown>;
1787
1773
  alt: t.Type<string | null, string | null, unknown>;
1788
1774
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1789
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1790
1775
  }>]>>, t.PartialC<{
1791
1776
  linkTo: t.UnionC<[t.Type<({
1792
1777
  __TYPE__: "ImageLink";
@@ -2085,7 +2070,6 @@ export declare const SliceItemContent: t.TypeC<{
2085
2070
  credits: t.Type<string | null, string | null, unknown>;
2086
2071
  alt: t.Type<string | null, string | null, unknown>;
2087
2072
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2088
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2089
2073
  }>]>>, t.PartialC<{
2090
2074
  thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
2091
2075
  origin: t.ExactC<t.TypeC<{
@@ -2109,7 +2093,6 @@ export declare const SliceItemContent: t.TypeC<{
2109
2093
  credits: t.Type<string | null, string | null, unknown>;
2110
2094
  alt: t.Type<string | null, string | null, unknown>;
2111
2095
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2112
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2113
2096
  }>]>>>;
2114
2097
  }>]>, t.ExactC<t.TypeC<{
2115
2098
  __TYPE__: t.LiteralC<"ImageContent">;
@@ -2185,7 +2168,6 @@ export declare const SliceItemContent: t.TypeC<{
2185
2168
  credits: t.Type<string | null, string | null, unknown>;
2186
2169
  alt: t.Type<string | null, string | null, unknown>;
2187
2170
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2188
- caption: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2189
2171
  }>]>>, t.PartialC<{
2190
2172
  linkTo: t.UnionC<[t.Type<({
2191
2173
  __TYPE__: "ImageLink";
@@ -2502,7 +2484,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
2502
2484
  credits?: string | null;
2503
2485
  alt?: string | null;
2504
2486
  provider?: string | null | undefined;
2505
- caption?: string | null | undefined;
2506
2487
  } & {
2507
2488
  thumbnails?: {
2508
2489
  [x: string]: {
@@ -2527,7 +2508,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
2527
2508
  credits?: string | null;
2528
2509
  alt?: string | null;
2529
2510
  provider?: string | null | undefined;
2530
- caption?: string | null | undefined;
2531
2511
  };
2532
2512
  };
2533
2513
  } & {
@@ -2602,7 +2582,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
2602
2582
  credits?: string | null;
2603
2583
  alt?: string | null;
2604
2584
  provider?: string | null | undefined;
2605
- caption?: string | null | undefined;
2606
2585
  } & {
2607
2586
  linkTo?: ({
2608
2587
  __TYPE__: "ImageLink";
@@ -2821,7 +2800,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
2821
2800
  credits?: string | null;
2822
2801
  alt?: string | null;
2823
2802
  provider?: string | null | undefined;
2824
- caption?: string | null | undefined;
2825
2803
  } & {
2826
2804
  thumbnails?: {
2827
2805
  [x: string]: {
@@ -2846,7 +2824,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
2846
2824
  credits?: string | null;
2847
2825
  alt?: string | null;
2848
2826
  provider?: string | null | undefined;
2849
- caption?: string | null | undefined;
2850
2827
  };
2851
2828
  };
2852
2829
  } & {
@@ -2921,7 +2898,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
2921
2898
  credits?: string | null;
2922
2899
  alt?: string | null;
2923
2900
  provider?: string | null | undefined;
2924
- caption?: string | null | undefined;
2925
2901
  } & {
2926
2902
  linkTo?: ({
2927
2903
  __TYPE__: "ImageLink";
@@ -3141,7 +3117,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
3141
3117
  credits?: string | null;
3142
3118
  alt?: string | null;
3143
3119
  provider?: string | null | undefined;
3144
- caption?: string | null | undefined;
3145
3120
  } & {
3146
3121
  thumbnails?: {
3147
3122
  [x: string]: {
@@ -3166,7 +3141,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
3166
3141
  credits?: string | null;
3167
3142
  alt?: string | null;
3168
3143
  provider?: string | null | undefined;
3169
- caption?: string | null | undefined;
3170
3144
  };
3171
3145
  };
3172
3146
  } & {
@@ -3241,7 +3215,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
3241
3215
  credits?: string | null;
3242
3216
  alt?: string | null;
3243
3217
  provider?: string | null | undefined;
3244
- caption?: string | null | undefined;
3245
3218
  } & {
3246
3219
  linkTo?: ({
3247
3220
  __TYPE__: "ImageLink";
@@ -3460,7 +3433,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
3460
3433
  credits?: string | null;
3461
3434
  alt?: string | null;
3462
3435
  provider?: string | null | undefined;
3463
- caption?: string | null | undefined;
3464
3436
  } & {
3465
3437
  thumbnails?: {
3466
3438
  [x: string]: {
@@ -3485,7 +3457,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
3485
3457
  credits?: string | null;
3486
3458
  alt?: string | null;
3487
3459
  provider?: string | null | undefined;
3488
- caption?: string | null | undefined;
3489
3460
  };
3490
3461
  };
3491
3462
  } & {
@@ -3560,7 +3531,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
3560
3531
  credits?: string | null;
3561
3532
  alt?: string | null;
3562
3533
  provider?: string | null | undefined;
3563
- caption?: string | null | undefined;
3564
3534
  } & {
3565
3535
  linkTo?: ({
3566
3536
  __TYPE__: "ImageLink";
@@ -3781,7 +3751,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
3781
3751
  credits?: string | null;
3782
3752
  alt?: string | null;
3783
3753
  provider?: string | null | undefined;
3784
- caption?: string | null | undefined;
3785
3754
  } & {
3786
3755
  thumbnails?: {
3787
3756
  [x: string]: {
@@ -3806,7 +3775,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
3806
3775
  credits?: string | null;
3807
3776
  alt?: string | null;
3808
3777
  provider?: string | null | undefined;
3809
- caption?: string | null | undefined;
3810
3778
  };
3811
3779
  };
3812
3780
  } & {
@@ -3881,7 +3849,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
3881
3849
  credits?: string | null;
3882
3850
  alt?: string | null;
3883
3851
  provider?: string | null | undefined;
3884
- caption?: string | null | undefined;
3885
3852
  } & {
3886
3853
  linkTo?: ({
3887
3854
  __TYPE__: "ImageLink";
@@ -4100,7 +4067,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
4100
4067
  credits?: string | null;
4101
4068
  alt?: string | null;
4102
4069
  provider?: string | null | undefined;
4103
- caption?: string | null | undefined;
4104
4070
  } & {
4105
4071
  thumbnails?: {
4106
4072
  [x: string]: {
@@ -4125,7 +4091,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
4125
4091
  credits?: string | null;
4126
4092
  alt?: string | null;
4127
4093
  provider?: string | null | undefined;
4128
- caption?: string | null | undefined;
4129
4094
  };
4130
4095
  };
4131
4096
  } & {
@@ -4200,7 +4165,6 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
4200
4165
  credits?: string | null;
4201
4166
  alt?: string | null;
4202
4167
  provider?: string | null | undefined;
4203
- caption?: string | null | undefined;
4204
4168
  } & {
4205
4169
  linkTo?: ({
4206
4170
  __TYPE__: "ImageLink";