@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
@@ -156,7 +156,6 @@ export declare function widgetReader<T extends StaticSlices | DynamicSlices>(cod
156
156
  width: t.Type<number | null, unknown, unknown>;
157
157
  height: t.Type<number | null, unknown, unknown>;
158
158
  }>]>>>;
159
- allowCaption: t.BooleanC;
160
159
  }>>;
161
160
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
162
161
  type: t.LiteralC<"IntegrationFields">;
@@ -322,7 +321,6 @@ export declare function widgetReader<T extends StaticSlices | DynamicSlices>(cod
322
321
  width: t.Type<number | null, unknown, unknown>;
323
322
  height: t.Type<number | null, unknown, unknown>;
324
323
  }>]>>>;
325
- allowCaption: t.BooleanC;
326
324
  }>>;
327
325
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
328
326
  type: t.LiteralC<"IntegrationFields">;
@@ -491,7 +489,6 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
491
489
  width: t.Type<number | null, unknown, unknown>;
492
490
  height: t.Type<number | null, unknown, unknown>;
493
491
  }>]>>>;
494
- allowCaption: t.BooleanC;
495
492
  }>>;
496
493
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
497
494
  type: t.LiteralC<"IntegrationFields">;
@@ -657,7 +654,6 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
657
654
  width: t.Type<number | null, unknown, unknown>;
658
655
  height: t.Type<number | null, unknown, unknown>;
659
656
  }>]>>>;
660
- allowCaption: t.BooleanC;
661
657
  }>>;
662
658
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
663
659
  type: t.LiteralC<"IntegrationFields">;
@@ -743,7 +739,6 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
743
739
  width?: number | null;
744
740
  height?: number | null;
745
741
  })[];
746
- allowCaption?: boolean;
747
742
  };
748
743
  }) | ({
749
744
  type: "IntegrationFields";
@@ -910,7 +905,6 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
910
905
  width?: number | null;
911
906
  height?: number | null;
912
907
  })[];
913
- allowCaption?: boolean;
914
908
  };
915
909
  }) | ({
916
910
  type: "IntegrationFields";
@@ -1078,7 +1072,6 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1078
1072
  width?: number | null;
1079
1073
  height?: number | null;
1080
1074
  })[];
1081
- allowCaption?: boolean;
1082
1075
  };
1083
1076
  }) | ({
1084
1077
  type: "IntegrationFields";
@@ -1238,7 +1231,6 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1238
1231
  width?: number | null;
1239
1232
  height?: number | null;
1240
1233
  })[];
1241
- allowCaption?: boolean;
1242
1234
  };
1243
1235
  }) | ({
1244
1236
  type: "IntegrationFields";
@@ -1414,7 +1406,6 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1414
1406
  width?: number | null;
1415
1407
  height?: number | null;
1416
1408
  })[];
1417
- allowCaption?: boolean;
1418
1409
  };
1419
1410
  }) | ({
1420
1411
  type: "IntegrationFields";
@@ -1512,6 +1503,175 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1512
1503
  placeholder?: string;
1513
1504
  default?: string;
1514
1505
  };
1506
+ }) | ({
1507
+ type: "Group";
1508
+ } & {
1509
+ fieldset?: string | null | undefined;
1510
+ icon?: string;
1511
+ description?: string;
1512
+ config?: {
1513
+ label?: string | null | undefined;
1514
+ repeat?: boolean;
1515
+ fields?: {
1516
+ [x: string]: ({
1517
+ type: "Boolean";
1518
+ } & {
1519
+ config?: {
1520
+ label?: string | null | undefined;
1521
+ default_value?: boolean;
1522
+ placeholder_true?: string;
1523
+ placeholder_false?: string;
1524
+ };
1525
+ }) | ({
1526
+ type: "Color";
1527
+ } & {
1528
+ fieldset?: string | null | undefined;
1529
+ config?: {
1530
+ label?: string | null | undefined;
1531
+ placeholder?: string;
1532
+ };
1533
+ }) | ({
1534
+ type: "Date";
1535
+ } & {
1536
+ fieldset?: string | null | undefined;
1537
+ config?: {
1538
+ label?: string | null | undefined;
1539
+ placeholder?: string;
1540
+ default?: string;
1541
+ };
1542
+ }) | ({
1543
+ type: "Embed";
1544
+ } & {
1545
+ fieldset?: string | null | undefined;
1546
+ config?: {
1547
+ label?: string | null | undefined;
1548
+ placeholder?: string;
1549
+ useAsTitle?: boolean;
1550
+ };
1551
+ }) | ({
1552
+ type: "GeoPoint";
1553
+ } & {
1554
+ fieldset?: string | null | undefined;
1555
+ config?: {
1556
+ label?: string | null | undefined;
1557
+ };
1558
+ }) | ({
1559
+ type: "Image";
1560
+ } & {
1561
+ fieldset?: string | null | undefined;
1562
+ config?: {
1563
+ label?: string | null | undefined;
1564
+ placeholder?: string;
1565
+ constraint?: {
1566
+ width?: number | null;
1567
+ height?: number | null;
1568
+ };
1569
+ thumbnails?: readonly ({
1570
+ name: string;
1571
+ } & {
1572
+ width?: number | null;
1573
+ height?: number | null;
1574
+ })[];
1575
+ };
1576
+ }) | ({
1577
+ type: "IntegrationFields";
1578
+ } & {
1579
+ fieldset?: string | null | undefined;
1580
+ config?: {
1581
+ label?: string | null | undefined;
1582
+ placeholder?: string;
1583
+ catalog?: string;
1584
+ };
1585
+ }) | ({
1586
+ type: "Link";
1587
+ } & {
1588
+ fieldset?: string | null | undefined;
1589
+ config?: {
1590
+ label?: string | null | undefined;
1591
+ useAsTitle?: boolean;
1592
+ placeholder?: string;
1593
+ select?: "media" | "document" | "web" | null;
1594
+ customtypes?: readonly string[];
1595
+ masks?: readonly string[];
1596
+ tags?: readonly string[];
1597
+ allowTargetBlank?: boolean;
1598
+ };
1599
+ }) | ({
1600
+ type: "Number";
1601
+ } & {
1602
+ fieldset?: string | null | undefined;
1603
+ config?: {
1604
+ label?: string | null | undefined;
1605
+ placeholder?: string;
1606
+ min?: number;
1607
+ max?: number;
1608
+ step?: number;
1609
+ };
1610
+ }) | ({
1611
+ type: "Range";
1612
+ } & {
1613
+ fieldset?: string | null | undefined;
1614
+ config?: {
1615
+ label?: string | null | undefined;
1616
+ placeholder?: string;
1617
+ min?: number;
1618
+ max?: number;
1619
+ step?: number;
1620
+ };
1621
+ }) | ({
1622
+ type: "StructuredText";
1623
+ } & {
1624
+ fieldset?: string | null | undefined;
1625
+ config?: {
1626
+ label?: string | null | undefined;
1627
+ placeholder?: string;
1628
+ useAsTitle?: boolean;
1629
+ single?: string;
1630
+ multi?: string;
1631
+ imageConstraint?: {
1632
+ width?: number | null;
1633
+ height?: number | null;
1634
+ };
1635
+ labels?: readonly string[];
1636
+ allowTargetBlank?: boolean;
1637
+ };
1638
+ }) | ({
1639
+ type: "Select";
1640
+ } & {
1641
+ fieldset?: string | null | undefined;
1642
+ config?: {
1643
+ label?: string | null | undefined;
1644
+ placeholder?: string;
1645
+ default_value?: string;
1646
+ options?: readonly string[];
1647
+ };
1648
+ }) | ({
1649
+ type: "Separator";
1650
+ } & {
1651
+ config?: {
1652
+ label?: string | null | undefined;
1653
+ };
1654
+ }) | ({
1655
+ type: "Text";
1656
+ } & {
1657
+ fieldset?: string | null | undefined;
1658
+ config?: {
1659
+ label?: string | null | undefined;
1660
+ useAsTitle?: boolean;
1661
+ placeholder?: string;
1662
+ };
1663
+ }) | ({
1664
+ type: "Timestamp";
1665
+ } & {
1666
+ fieldset?: string | null | undefined;
1667
+ config?: {
1668
+ label?: string | null | undefined;
1669
+ placeholder?: string;
1670
+ default?: string;
1671
+ };
1672
+ });
1673
+ };
1674
+ };
1515
1675
  });
1516
1676
  };
1517
1677
  items?: {
@@ -1574,7 +1734,6 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1574
1734
  width?: number | null;
1575
1735
  height?: number | null;
1576
1736
  })[];
1577
- allowCaption?: boolean;
1578
1737
  };
1579
1738
  }) | ({
1580
1739
  type: "IntegrationFields";
@@ -1840,7 +1999,6 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
1840
1999
  width: t.Type<number | null, unknown, unknown>;
1841
2000
  height: t.Type<number | null, unknown, unknown>;
1842
2001
  }>]>>>;
1843
- allowCaption: t.BooleanC;
1844
2002
  }>>;
1845
2003
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1846
2004
  type: t.LiteralC<"IntegrationFields">;
@@ -2006,7 +2164,6 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
2006
2164
  width: t.Type<number | null, unknown, unknown>;
2007
2165
  height: t.Type<number | null, unknown, unknown>;
2008
2166
  }>]>>>;
2009
- allowCaption: t.BooleanC;
2010
2167
  }>>;
2011
2168
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2012
2169
  type: t.LiteralC<"IntegrationFields">;
@@ -2092,7 +2249,6 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
2092
2249
  width?: number | null;
2093
2250
  height?: number | null;
2094
2251
  })[];
2095
- allowCaption?: boolean;
2096
2252
  };
2097
2253
  }) | ({
2098
2254
  type: "IntegrationFields";
@@ -2259,7 +2415,6 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
2259
2415
  width?: number | null;
2260
2416
  height?: number | null;
2261
2417
  })[];
2262
- allowCaption?: boolean;
2263
2418
  };
2264
2419
  }) | ({
2265
2420
  type: "IntegrationFields";
@@ -2427,7 +2582,6 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
2427
2582
  width?: number | null;
2428
2583
  height?: number | null;
2429
2584
  })[];
2430
- allowCaption?: boolean;
2431
2585
  };
2432
2586
  }) | ({
2433
2587
  type: "IntegrationFields";
@@ -2587,7 +2741,6 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
2587
2741
  width?: number | null;
2588
2742
  height?: number | null;
2589
2743
  })[];
2590
- allowCaption?: boolean;
2591
2744
  };
2592
2745
  }) | ({
2593
2746
  type: "IntegrationFields";
@@ -20,7 +20,6 @@ export declare const ImageConfig: t.ExactC<t.PartialC<{
20
20
  width: t.Type<number | null, unknown, unknown>;
21
21
  height: t.Type<number | null, unknown, unknown>;
22
22
  }>]>>>;
23
- allowCaption: t.BooleanC;
24
23
  }>>;
25
24
  export declare type ImageConfig = t.TypeOf<typeof ImageConfig>;
26
25
  export declare const Image: t.ExactC<t.IntersectionC<[t.TypeC<{
@@ -40,7 +39,6 @@ export declare const Image: t.ExactC<t.IntersectionC<[t.TypeC<{
40
39
  width: t.Type<number | null, unknown, unknown>;
41
40
  height: t.Type<number | null, unknown, unknown>;
42
41
  }>]>>>;
43
- allowCaption: t.BooleanC;
44
42
  }>>;
45
43
  }>]>>;
46
44
  export declare type Image = t.TypeOf<typeof Image>;
@@ -17,7 +17,6 @@ exports.ImageConfig = t.exact(t.partial({
17
17
  placeholder: t.string,
18
18
  constraint: ImageConstraint_1.default,
19
19
  thumbnails: t.readonlyArray(exports.Thumbnail),
20
- allowCaption: t.boolean,
21
20
  }));
22
21
  exports.Image = t.exact(t.intersection([
23
22
  t.type({
@@ -145,7 +145,6 @@ export declare const NestableWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC
145
145
  width: t.Type<number | null, unknown, unknown>;
146
146
  height: t.Type<number | null, unknown, unknown>;
147
147
  }>]>>>;
148
- allowCaption: t.BooleanC;
149
148
  }>>;
150
149
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
151
150
  type: t.LiteralC<"IntegrationFields">;
@@ -158,7 +158,6 @@ export declare const CompositeSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
158
158
  width: t.Type<number | null, unknown, unknown>;
159
159
  height: t.Type<number | null, unknown, unknown>;
160
160
  }>]>>>;
161
- allowCaption: t.BooleanC;
162
161
  }>>;
163
162
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
164
163
  type: t.LiteralC<"IntegrationFields">;
@@ -316,7 +315,6 @@ export declare const CompositeSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
316
315
  width: t.Type<number | null, unknown, unknown>;
317
316
  height: t.Type<number | null, unknown, unknown>;
318
317
  }>]>>>;
319
- allowCaption: t.BooleanC;
320
318
  }>>;
321
319
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
322
320
  type: t.LiteralC<"IntegrationFields">;
@@ -146,7 +146,6 @@ export declare const LegacySlice: t.UnionC<[t.UnionC<[t.ExactC<t.IntersectionC<[
146
146
  width: t.Type<number | null, unknown, unknown>;
147
147
  height: t.Type<number | null, unknown, unknown>;
148
148
  }>]>>>;
149
- allowCaption: t.BooleanC;
150
149
  }>>;
151
150
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
152
151
  type: t.LiteralC<"IntegrationFields">;
@@ -312,7 +311,6 @@ export declare const LegacySlice: t.UnionC<[t.UnionC<[t.ExactC<t.IntersectionC<[
312
311
  width: t.Type<number | null, unknown, unknown>;
313
312
  height: t.Type<number | null, unknown, unknown>;
314
313
  }>]>>>;
315
- allowCaption: t.BooleanC;
316
314
  }>>;
317
315
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
318
316
  type: t.LiteralC<"IntegrationFields">;