@prismicio/types-internal 2.7.0-alpha.3 → 2.7.0-alpha.4

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 (34) hide show
  1. package/lib/content/Document.d.ts +2118 -798
  2. package/lib/content/fields/WidgetContent.d.ts +2118 -798
  3. package/lib/content/fields/nestable/LinkContent.d.ts +248 -85
  4. package/lib/content/fields/nestable/LinkContent.js +96 -42
  5. package/lib/content/fields/nestable/NestableContent.d.ts +353 -133
  6. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +654 -234
  7. package/lib/content/fields/nestable/RichTextContent/index.d.ts +320 -120
  8. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +706 -266
  9. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +161 -61
  10. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +706 -266
  11. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +353 -133
  12. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +353 -133
  13. package/lib/content/fields/slices/Slice/index.d.ts +1285 -485
  14. package/lib/content/fields/slices/SliceItem.d.ts +1285 -485
  15. package/lib/content/fields/slices/SlicesContent.d.ts +1766 -666
  16. package/lib/customtypes/CustomType.d.ts +18 -320
  17. package/lib/customtypes/Section.d.ts +18 -320
  18. package/lib/customtypes/diff/SharedSlice.d.ts +8 -160
  19. package/lib/customtypes/diff/Variation.d.ts +8 -160
  20. package/lib/customtypes/widgets/Group.d.ts +18 -315
  21. package/lib/customtypes/widgets/Group.js +5 -43
  22. package/lib/customtypes/widgets/Widget.d.ts +33 -412
  23. package/lib/customtypes/widgets/nestable/Link.d.ts +2 -0
  24. package/lib/customtypes/widgets/nestable/Link.js +1 -0
  25. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +1 -0
  26. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +2 -0
  27. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +4 -42
  28. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +16 -168
  29. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +10 -164
  30. package/lib/customtypes/widgets/slices/Slices.d.ts +34 -366
  31. package/package.json +1 -1
  32. package/src/content/fields/nestable/LinkContent.ts +121 -50
  33. package/src/customtypes/widgets/Group.ts +6 -52
  34. package/src/customtypes/widgets/nestable/Link.ts +1 -0
@@ -100,6 +100,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
100
100
  masks?: readonly string[];
101
101
  tags?: readonly string[];
102
102
  allowTargetBlank?: boolean;
103
+ allowText?: boolean;
103
104
  };
104
105
  }) | ({
105
106
  type: "Number";
@@ -176,46 +177,6 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
176
177
  };
177
178
  }) | ({
178
179
  type: "Group";
179
- } & {
180
- fieldset?: string | null | undefined;
181
- icon?: string;
182
- description?: string;
183
- config?: {
184
- as: "Link";
185
- fields: {
186
- link: {
187
- type: "Link";
188
- } & {
189
- fieldset?: string | null | undefined;
190
- config?: {
191
- label?: string | null | undefined;
192
- useAsTitle?: boolean;
193
- placeholder?: string;
194
- select?: "media" | "document" | "web" | null;
195
- customtypes?: readonly string[];
196
- masks?: readonly string[];
197
- tags?: readonly string[];
198
- allowTargetBlank?: boolean;
199
- };
200
- };
201
- } & {
202
- text?: {
203
- type: "Text";
204
- } & {
205
- fieldset?: string | null | undefined;
206
- config?: {
207
- label?: string | null | undefined;
208
- useAsTitle?: boolean;
209
- placeholder?: string;
210
- };
211
- };
212
- };
213
- } & {
214
- label?: string | null | undefined;
215
- repeat?: boolean;
216
- };
217
- }) | ({
218
- type: "Group";
219
180
  } & {
220
181
  fieldset?: string | null | undefined;
221
182
  icon?: string;
@@ -306,6 +267,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
306
267
  masks?: readonly string[];
307
268
  tags?: readonly string[];
308
269
  allowTargetBlank?: boolean;
270
+ allowText?: boolean;
309
271
  };
310
272
  }) | ({
311
273
  type: "Number";
@@ -382,46 +344,6 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
382
344
  };
383
345
  }) | ({
384
346
  type: "Group";
385
- } & {
386
- fieldset?: string | null | undefined;
387
- icon?: string;
388
- description?: string;
389
- config?: {
390
- as: "Link";
391
- fields: {
392
- link: {
393
- type: "Link";
394
- } & {
395
- fieldset?: string | null | undefined;
396
- config?: {
397
- label?: string | null | undefined;
398
- useAsTitle?: boolean;
399
- placeholder?: string;
400
- select?: "media" | "document" | "web" | null;
401
- customtypes?: readonly string[];
402
- masks?: readonly string[];
403
- tags?: readonly string[];
404
- allowTargetBlank?: boolean;
405
- };
406
- };
407
- } & {
408
- text?: {
409
- type: "Text";
410
- } & {
411
- fieldset?: string | null | undefined;
412
- config?: {
413
- label?: string | null | undefined;
414
- useAsTitle?: boolean;
415
- placeholder?: string;
416
- };
417
- };
418
- };
419
- } & {
420
- label?: string | null | undefined;
421
- repeat?: boolean;
422
- };
423
- }) | ({
424
- type: "Group";
425
347
  } & {
426
348
  fieldset?: string | null | undefined;
427
349
  icon?: string;
@@ -512,6 +434,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
512
434
  masks?: readonly string[];
513
435
  tags?: readonly string[];
514
436
  allowTargetBlank?: boolean;
437
+ allowText?: boolean;
515
438
  };
516
439
  }) | ({
517
440
  type: "Number";
@@ -688,6 +611,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
688
611
  masks?: readonly string[];
689
612
  tags?: readonly string[];
690
613
  allowTargetBlank?: boolean;
614
+ allowText?: boolean;
691
615
  };
692
616
  }) | ({
693
617
  type: "Number";
@@ -764,46 +688,6 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
764
688
  };
765
689
  }) | ({
766
690
  type: "Group";
767
- } & {
768
- fieldset?: string | null | undefined;
769
- icon?: string;
770
- description?: string;
771
- config?: {
772
- as: "Link";
773
- fields: {
774
- link: {
775
- type: "Link";
776
- } & {
777
- fieldset?: string | null | undefined;
778
- config?: {
779
- label?: string | null | undefined;
780
- useAsTitle?: boolean;
781
- placeholder?: string;
782
- select?: "media" | "document" | "web" | null;
783
- customtypes?: readonly string[];
784
- masks?: readonly string[];
785
- tags?: readonly string[];
786
- allowTargetBlank?: boolean;
787
- };
788
- };
789
- } & {
790
- text?: {
791
- type: "Text";
792
- } & {
793
- fieldset?: string | null | undefined;
794
- config?: {
795
- label?: string | null | undefined;
796
- useAsTitle?: boolean;
797
- placeholder?: string;
798
- };
799
- };
800
- };
801
- } & {
802
- label?: string | null | undefined;
803
- repeat?: boolean;
804
- };
805
- }) | ({
806
- type: "Group";
807
691
  } & {
808
692
  fieldset?: string | null | undefined;
809
693
  icon?: string;
@@ -894,6 +778,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
894
778
  masks?: readonly string[];
895
779
  tags?: readonly string[];
896
780
  allowTargetBlank?: boolean;
781
+ allowText?: boolean;
897
782
  };
898
783
  }) | ({
899
784
  type: "Number";
@@ -1061,6 +946,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1061
946
  masks?: readonly string[];
1062
947
  tags?: readonly string[];
1063
948
  allowTargetBlank?: boolean;
949
+ allowText?: boolean;
1064
950
  };
1065
951
  }) | ({
1066
952
  type: "Number";
@@ -1220,6 +1106,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1220
1106
  masks?: readonly string[];
1221
1107
  tags?: readonly string[];
1222
1108
  allowTargetBlank?: boolean;
1109
+ allowText?: boolean;
1223
1110
  };
1224
1111
  }) | ({
1225
1112
  type: "Number";
@@ -1395,6 +1282,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1395
1282
  masks?: readonly string[];
1396
1283
  tags?: readonly string[];
1397
1284
  allowTargetBlank?: boolean;
1285
+ allowText?: boolean;
1398
1286
  };
1399
1287
  }) | ({
1400
1288
  type: "Number";
@@ -1471,46 +1359,6 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1471
1359
  };
1472
1360
  }) | ({
1473
1361
  type: "Group";
1474
- } & {
1475
- fieldset?: string | null | undefined;
1476
- icon?: string;
1477
- description?: string;
1478
- config?: {
1479
- as: "Link";
1480
- fields: {
1481
- link: {
1482
- type: "Link";
1483
- } & {
1484
- fieldset?: string | null | undefined;
1485
- config?: {
1486
- label?: string | null | undefined;
1487
- useAsTitle?: boolean;
1488
- placeholder?: string;
1489
- select?: "media" | "document" | "web" | null;
1490
- customtypes?: readonly string[];
1491
- masks?: readonly string[];
1492
- tags?: readonly string[];
1493
- allowTargetBlank?: boolean;
1494
- };
1495
- };
1496
- } & {
1497
- text?: {
1498
- type: "Text";
1499
- } & {
1500
- fieldset?: string | null | undefined;
1501
- config?: {
1502
- label?: string | null | undefined;
1503
- useAsTitle?: boolean;
1504
- placeholder?: string;
1505
- };
1506
- };
1507
- };
1508
- } & {
1509
- label?: string | null | undefined;
1510
- repeat?: boolean;
1511
- };
1512
- }) | ({
1513
- type: "Group";
1514
1362
  } & {
1515
1363
  fieldset?: string | null | undefined;
1516
1364
  icon?: string;
@@ -1601,6 +1449,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1601
1449
  masks?: readonly string[];
1602
1450
  tags?: readonly string[];
1603
1451
  allowTargetBlank?: boolean;
1452
+ allowText?: boolean;
1604
1453
  };
1605
1454
  }) | ({
1606
1455
  type: "Number";
@@ -1677,46 +1526,6 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1677
1526
  };
1678
1527
  }) | ({
1679
1528
  type: "Group";
1680
- } & {
1681
- fieldset?: string | null | undefined;
1682
- icon?: string;
1683
- description?: string;
1684
- config?: {
1685
- as: "Link";
1686
- fields: {
1687
- link: {
1688
- type: "Link";
1689
- } & {
1690
- fieldset?: string | null | undefined;
1691
- config?: {
1692
- label?: string | null | undefined;
1693
- useAsTitle?: boolean;
1694
- placeholder?: string;
1695
- select?: "media" | "document" | "web" | null;
1696
- customtypes?: readonly string[];
1697
- masks?: readonly string[];
1698
- tags?: readonly string[];
1699
- allowTargetBlank?: boolean;
1700
- };
1701
- };
1702
- } & {
1703
- text?: {
1704
- type: "Text";
1705
- } & {
1706
- fieldset?: string | null | undefined;
1707
- config?: {
1708
- label?: string | null | undefined;
1709
- useAsTitle?: boolean;
1710
- placeholder?: string;
1711
- };
1712
- };
1713
- };
1714
- } & {
1715
- label?: string | null | undefined;
1716
- repeat?: boolean;
1717
- };
1718
- }) | ({
1719
- type: "Group";
1720
1529
  } & {
1721
1530
  fieldset?: string | null | undefined;
1722
1531
  icon?: string;
@@ -1807,6 +1616,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1807
1616
  masks?: readonly string[];
1808
1617
  tags?: readonly string[];
1809
1618
  allowTargetBlank?: boolean;
1619
+ allowText?: boolean;
1810
1620
  };
1811
1621
  }) | ({
1812
1622
  type: "Number";
@@ -1972,6 +1782,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1972
1782
  masks?: readonly string[];
1973
1783
  tags?: readonly string[];
1974
1784
  allowTargetBlank?: boolean;
1785
+ allowText?: boolean;
1975
1786
  };
1976
1787
  }) | ({
1977
1788
  type: "Number";
@@ -2163,6 +1974,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2163
1974
  masks?: readonly string[];
2164
1975
  tags?: readonly string[];
2165
1976
  allowTargetBlank?: boolean;
1977
+ allowText?: boolean;
2166
1978
  };
2167
1979
  }) | ({
2168
1980
  type: "Number";
@@ -2239,46 +2051,6 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2239
2051
  };
2240
2052
  }) | ({
2241
2053
  type: "Group";
2242
- } & {
2243
- fieldset?: string | null | undefined;
2244
- icon?: string;
2245
- description?: string;
2246
- config?: {
2247
- as: "Link";
2248
- fields: {
2249
- link: {
2250
- type: "Link";
2251
- } & {
2252
- fieldset?: string | null | undefined;
2253
- config?: {
2254
- label?: string | null | undefined;
2255
- useAsTitle?: boolean;
2256
- placeholder?: string;
2257
- select?: "media" | "document" | "web" | null;
2258
- customtypes?: readonly string[];
2259
- masks?: readonly string[];
2260
- tags?: readonly string[];
2261
- allowTargetBlank?: boolean;
2262
- };
2263
- };
2264
- } & {
2265
- text?: {
2266
- type: "Text";
2267
- } & {
2268
- fieldset?: string | null | undefined;
2269
- config?: {
2270
- label?: string | null | undefined;
2271
- useAsTitle?: boolean;
2272
- placeholder?: string;
2273
- };
2274
- };
2275
- };
2276
- } & {
2277
- label?: string | null | undefined;
2278
- repeat?: boolean;
2279
- };
2280
- }) | ({
2281
- type: "Group";
2282
2054
  } & {
2283
2055
  fieldset?: string | null | undefined;
2284
2056
  icon?: string;
@@ -2369,6 +2141,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2369
2141
  masks?: readonly string[];
2370
2142
  tags?: readonly string[];
2371
2143
  allowTargetBlank?: boolean;
2144
+ allowText?: boolean;
2372
2145
  };
2373
2146
  }) | ({
2374
2147
  type: "Number";
@@ -2445,46 +2218,6 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2445
2218
  };
2446
2219
  }) | ({
2447
2220
  type: "Group";
2448
- } & {
2449
- fieldset?: string | null | undefined;
2450
- icon?: string;
2451
- description?: string;
2452
- config?: {
2453
- as: "Link";
2454
- fields: {
2455
- link: {
2456
- type: "Link";
2457
- } & {
2458
- fieldset?: string | null | undefined;
2459
- config?: {
2460
- label?: string | null | undefined;
2461
- useAsTitle?: boolean;
2462
- placeholder?: string;
2463
- select?: "media" | "document" | "web" | null;
2464
- customtypes?: readonly string[];
2465
- masks?: readonly string[];
2466
- tags?: readonly string[];
2467
- allowTargetBlank?: boolean;
2468
- };
2469
- };
2470
- } & {
2471
- text?: {
2472
- type: "Text";
2473
- } & {
2474
- fieldset?: string | null | undefined;
2475
- config?: {
2476
- label?: string | null | undefined;
2477
- useAsTitle?: boolean;
2478
- placeholder?: string;
2479
- };
2480
- };
2481
- };
2482
- } & {
2483
- label?: string | null | undefined;
2484
- repeat?: boolean;
2485
- };
2486
- }) | ({
2487
- type: "Group";
2488
2221
  } & {
2489
2222
  fieldset?: string | null | undefined;
2490
2223
  icon?: string;
@@ -2575,6 +2308,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2575
2308
  masks?: readonly string[];
2576
2309
  tags?: readonly string[];
2577
2310
  allowTargetBlank?: boolean;
2311
+ allowText?: boolean;
2578
2312
  };
2579
2313
  }) | ({
2580
2314
  type: "Number";
@@ -2751,6 +2485,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2751
2485
  masks?: readonly string[];
2752
2486
  tags?: readonly string[];
2753
2487
  allowTargetBlank?: boolean;
2488
+ allowText?: boolean;
2754
2489
  };
2755
2490
  }) | ({
2756
2491
  type: "Number";
@@ -2827,46 +2562,6 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2827
2562
  };
2828
2563
  }) | ({
2829
2564
  type: "Group";
2830
- } & {
2831
- fieldset?: string | null | undefined;
2832
- icon?: string;
2833
- description?: string;
2834
- config?: {
2835
- as: "Link";
2836
- fields: {
2837
- link: {
2838
- type: "Link";
2839
- } & {
2840
- fieldset?: string | null | undefined;
2841
- config?: {
2842
- label?: string | null | undefined;
2843
- useAsTitle?: boolean;
2844
- placeholder?: string;
2845
- select?: "media" | "document" | "web" | null;
2846
- customtypes?: readonly string[];
2847
- masks?: readonly string[];
2848
- tags?: readonly string[];
2849
- allowTargetBlank?: boolean;
2850
- };
2851
- };
2852
- } & {
2853
- text?: {
2854
- type: "Text";
2855
- } & {
2856
- fieldset?: string | null | undefined;
2857
- config?: {
2858
- label?: string | null | undefined;
2859
- useAsTitle?: boolean;
2860
- placeholder?: string;
2861
- };
2862
- };
2863
- };
2864
- } & {
2865
- label?: string | null | undefined;
2866
- repeat?: boolean;
2867
- };
2868
- }) | ({
2869
- type: "Group";
2870
2565
  } & {
2871
2566
  fieldset?: string | null | undefined;
2872
2567
  icon?: string;
@@ -2957,6 +2652,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2957
2652
  masks?: readonly string[];
2958
2653
  tags?: readonly string[];
2959
2654
  allowTargetBlank?: boolean;
2655
+ allowText?: boolean;
2960
2656
  };
2961
2657
  }) | ({
2962
2658
  type: "Number";
@@ -3124,6 +2820,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
3124
2820
  masks?: readonly string[];
3125
2821
  tags?: readonly string[];
3126
2822
  allowTargetBlank?: boolean;
2823
+ allowText?: boolean;
3127
2824
  };
3128
2825
  }) | ({
3129
2826
  type: "Number";
@@ -3283,6 +2980,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
3283
2980
  masks?: readonly string[];
3284
2981
  tags?: readonly string[];
3285
2982
  allowTargetBlank?: boolean;
2983
+ allowText?: boolean;
3286
2984
  };
3287
2985
  }) | ({
3288
2986
  type: "Number";