@prismicio/types-internal 3.2.0-alpha.3 → 3.3.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 (33) hide show
  1. package/lib/content/Document.d.ts +216 -0
  2. package/lib/content/fields/WidgetContent.d.ts +216 -0
  3. package/lib/content/fields/nestable/LinkContent.d.ts +48 -0
  4. package/lib/content/fields/nestable/LinkContent.js +6 -0
  5. package/lib/content/fields/nestable/NestableContent.d.ts +36 -0
  6. package/lib/content/fields/nestable/RepeatableContent.d.ts +12 -0
  7. package/lib/content/fields/nestable/RepeatableContent.js +1 -8
  8. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +72 -0
  9. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +12 -0
  10. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +72 -0
  11. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +36 -0
  12. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +36 -0
  13. package/lib/content/fields/slices/Slice/index.d.ts +120 -0
  14. package/lib/content/fields/slices/SliceItem.d.ts +120 -0
  15. package/lib/content/fields/slices/SlicesContent.d.ts +180 -0
  16. package/lib/customtypes/CustomType.d.ts +72 -0
  17. package/lib/customtypes/Section.d.ts +72 -0
  18. package/lib/customtypes/diff/SharedSlice.d.ts +32 -0
  19. package/lib/customtypes/diff/Variation.d.ts +32 -0
  20. package/lib/customtypes/widgets/Group.d.ts +24 -0
  21. package/lib/customtypes/widgets/Widget.d.ts +84 -0
  22. package/lib/customtypes/widgets/nestable/Link.d.ts +8 -0
  23. package/lib/customtypes/widgets/nestable/Link.js +4 -0
  24. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +4 -0
  25. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +8 -0
  26. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +8 -0
  27. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +32 -0
  28. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +24 -0
  29. package/lib/customtypes/widgets/slices/Slices.d.ts +112 -0
  30. package/package.json +1 -1
  31. package/src/content/fields/nestable/LinkContent.ts +6 -0
  32. package/src/content/fields/nestable/RepeatableContent.ts +1 -10
  33. package/src/customtypes/widgets/nestable/Link.ts +5 -0
@@ -140,6 +140,10 @@ export declare function widgetReader<T extends StaticSlices | DynamicSlices>(cod
140
140
  allowTargetBlank: t.BooleanC;
141
141
  allowText: t.BooleanC;
142
142
  repeat: t.BooleanC;
143
+ variant: t.ExactC<t.TypeC<{
144
+ options: t.ArrayC<t.StringC>;
145
+ default_value: t.StringC;
146
+ }>>;
143
147
  }>>;
144
148
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
145
149
  type: t.LiteralC<"Image">;
@@ -307,6 +311,10 @@ export declare function widgetReader<T extends StaticSlices | DynamicSlices>(cod
307
311
  allowTargetBlank: t.BooleanC;
308
312
  allowText: t.BooleanC;
309
313
  repeat: t.BooleanC;
314
+ variant: t.ExactC<t.TypeC<{
315
+ options: t.ArrayC<t.StringC>;
316
+ default_value: t.StringC;
317
+ }>>;
310
318
  }>>;
311
319
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
312
320
  type: t.LiteralC<"Image">;
@@ -474,6 +482,10 @@ export declare function widgetReader<T extends StaticSlices | DynamicSlices>(cod
474
482
  allowTargetBlank: t.BooleanC;
475
483
  allowText: t.BooleanC;
476
484
  repeat: t.BooleanC;
485
+ variant: t.ExactC<t.TypeC<{
486
+ options: t.ArrayC<t.StringC>;
487
+ default_value: t.StringC;
488
+ }>>;
477
489
  }>>;
478
490
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
479
491
  type: t.LiteralC<"Image">;
@@ -646,6 +658,10 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
646
658
  allowTargetBlank: t.BooleanC;
647
659
  allowText: t.BooleanC;
648
660
  repeat: t.BooleanC;
661
+ variant: t.ExactC<t.TypeC<{
662
+ options: t.ArrayC<t.StringC>;
663
+ default_value: t.StringC;
664
+ }>>;
649
665
  }>>;
650
666
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
651
667
  type: t.LiteralC<"Image">;
@@ -813,6 +829,10 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
813
829
  allowTargetBlank: t.BooleanC;
814
830
  allowText: t.BooleanC;
815
831
  repeat: t.BooleanC;
832
+ variant: t.ExactC<t.TypeC<{
833
+ options: t.ArrayC<t.StringC>;
834
+ default_value: t.StringC;
835
+ }>>;
816
836
  }>>;
817
837
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
818
838
  type: t.LiteralC<"Image">;
@@ -980,6 +1000,10 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
980
1000
  allowTargetBlank: t.BooleanC;
981
1001
  allowText: t.BooleanC;
982
1002
  repeat: t.BooleanC;
1003
+ variant: t.ExactC<t.TypeC<{
1004
+ options: t.ArrayC<t.StringC>;
1005
+ default_value: t.StringC;
1006
+ }>>;
983
1007
  }>>;
984
1008
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
985
1009
  type: t.LiteralC<"Image">;
@@ -1110,6 +1134,10 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1110
1134
  allowTargetBlank?: boolean;
1111
1135
  allowText?: boolean;
1112
1136
  repeat?: boolean;
1137
+ variant?: {
1138
+ options: string[];
1139
+ default_value: string;
1140
+ };
1113
1141
  };
1114
1142
  }) | ({
1115
1143
  type: "Number";
@@ -1278,6 +1306,10 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1278
1306
  allowTargetBlank?: boolean;
1279
1307
  allowText?: boolean;
1280
1308
  repeat?: boolean;
1309
+ variant?: {
1310
+ options: string[];
1311
+ default_value: string;
1312
+ };
1281
1313
  };
1282
1314
  }) | ({
1283
1315
  type: "Number";
@@ -1447,6 +1479,10 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1447
1479
  allowTargetBlank?: boolean;
1448
1480
  allowText?: boolean;
1449
1481
  repeat?: boolean;
1482
+ variant?: {
1483
+ options: string[];
1484
+ default_value: string;
1485
+ };
1450
1486
  };
1451
1487
  }) | ({
1452
1488
  type: "Number";
@@ -1608,6 +1644,10 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1608
1644
  allowTargetBlank?: boolean;
1609
1645
  allowText?: boolean;
1610
1646
  repeat?: boolean;
1647
+ variant?: {
1648
+ options: string[];
1649
+ default_value: string;
1650
+ };
1611
1651
  };
1612
1652
  }) | ({
1613
1653
  type: "Number";
@@ -1785,6 +1825,10 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1785
1825
  allowTargetBlank?: boolean;
1786
1826
  allowText?: boolean;
1787
1827
  repeat?: boolean;
1828
+ variant?: {
1829
+ options: string[];
1830
+ default_value: string;
1831
+ };
1788
1832
  };
1789
1833
  }) | ({
1790
1834
  type: "Number";
@@ -1953,6 +1997,10 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1953
1997
  allowTargetBlank?: boolean;
1954
1998
  allowText?: boolean;
1955
1999
  repeat?: boolean;
2000
+ variant?: {
2001
+ options: string[];
2002
+ default_value: string;
2003
+ };
1956
2004
  };
1957
2005
  }) | ({
1958
2006
  type: "Number";
@@ -2121,6 +2169,10 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2121
2169
  allowTargetBlank?: boolean;
2122
2170
  allowText?: boolean;
2123
2171
  repeat?: boolean;
2172
+ variant?: {
2173
+ options: string[];
2174
+ default_value: string;
2175
+ };
2124
2176
  };
2125
2177
  }) | ({
2126
2178
  type: "Number";
@@ -2288,6 +2340,10 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2288
2340
  allowTargetBlank?: boolean;
2289
2341
  allowText?: boolean;
2290
2342
  repeat?: boolean;
2343
+ variant?: {
2344
+ options: string[];
2345
+ default_value: string;
2346
+ };
2291
2347
  };
2292
2348
  }) | ({
2293
2349
  type: "Number";
@@ -2514,6 +2570,10 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
2514
2570
  allowTargetBlank: t.BooleanC;
2515
2571
  allowText: t.BooleanC;
2516
2572
  repeat: t.BooleanC;
2573
+ variant: t.ExactC<t.TypeC<{
2574
+ options: t.ArrayC<t.StringC>;
2575
+ default_value: t.StringC;
2576
+ }>>;
2517
2577
  }>>;
2518
2578
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2519
2579
  type: t.LiteralC<"Image">;
@@ -2681,6 +2741,10 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
2681
2741
  allowTargetBlank: t.BooleanC;
2682
2742
  allowText: t.BooleanC;
2683
2743
  repeat: t.BooleanC;
2744
+ variant: t.ExactC<t.TypeC<{
2745
+ options: t.ArrayC<t.StringC>;
2746
+ default_value: t.StringC;
2747
+ }>>;
2684
2748
  }>>;
2685
2749
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2686
2750
  type: t.LiteralC<"Image">;
@@ -2848,6 +2912,10 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
2848
2912
  allowTargetBlank: t.BooleanC;
2849
2913
  allowText: t.BooleanC;
2850
2914
  repeat: t.BooleanC;
2915
+ variant: t.ExactC<t.TypeC<{
2916
+ options: t.ArrayC<t.StringC>;
2917
+ default_value: t.StringC;
2918
+ }>>;
2851
2919
  }>>;
2852
2920
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2853
2921
  type: t.LiteralC<"Image">;
@@ -2978,6 +3046,10 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
2978
3046
  allowTargetBlank?: boolean;
2979
3047
  allowText?: boolean;
2980
3048
  repeat?: boolean;
3049
+ variant?: {
3050
+ options: string[];
3051
+ default_value: string;
3052
+ };
2981
3053
  };
2982
3054
  }) | ({
2983
3055
  type: "Number";
@@ -3146,6 +3218,10 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
3146
3218
  allowTargetBlank?: boolean;
3147
3219
  allowText?: boolean;
3148
3220
  repeat?: boolean;
3221
+ variant?: {
3222
+ options: string[];
3223
+ default_value: string;
3224
+ };
3149
3225
  };
3150
3226
  }) | ({
3151
3227
  type: "Number";
@@ -3315,6 +3391,10 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
3315
3391
  allowTargetBlank?: boolean;
3316
3392
  allowText?: boolean;
3317
3393
  repeat?: boolean;
3394
+ variant?: {
3395
+ options: string[];
3396
+ default_value: string;
3397
+ };
3318
3398
  };
3319
3399
  }) | ({
3320
3400
  type: "Number";
@@ -3476,6 +3556,10 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
3476
3556
  allowTargetBlank?: boolean;
3477
3557
  allowText?: boolean;
3478
3558
  repeat?: boolean;
3559
+ variant?: {
3560
+ options: string[];
3561
+ default_value: string;
3562
+ };
3479
3563
  };
3480
3564
  }) | ({
3481
3565
  type: "Number";
@@ -15,6 +15,10 @@ export declare const LinkConfig: t.ExactC<t.PartialC<{
15
15
  * `undefined` means that the field is not repeatable (hence repeat = false).
16
16
  */
17
17
  repeat: t.BooleanC;
18
+ variant: t.ExactC<t.TypeC<{
19
+ options: t.ArrayC<t.StringC>;
20
+ default_value: t.StringC;
21
+ }>>;
18
22
  }>>;
19
23
  export declare type LinkConfig = t.TypeOf<typeof LinkConfig>;
20
24
  export declare const Link: t.ExactC<t.IntersectionC<[t.TypeC<{
@@ -36,6 +40,10 @@ export declare const Link: t.ExactC<t.IntersectionC<[t.TypeC<{
36
40
  * `undefined` means that the field is not repeatable (hence repeat = false).
37
41
  */
38
42
  repeat: t.BooleanC;
43
+ variant: t.ExactC<t.TypeC<{
44
+ options: t.ArrayC<t.StringC>;
45
+ default_value: t.StringC;
46
+ }>>;
39
47
  }>>;
40
48
  }>]>>;
41
49
  export declare type Link = t.TypeOf<typeof Link>;
@@ -48,6 +48,10 @@ exports.LinkConfig = t.exact(t.partial({
48
48
  * `undefined` means that the field is not repeatable (hence repeat = false).
49
49
  */
50
50
  repeat: t.boolean,
51
+ variant: t.strict({
52
+ options: t.array(t.string),
53
+ default_value: t.string,
54
+ }),
51
55
  }));
52
56
  exports.Link = t.exact(t.intersection([
53
57
  t.type({
@@ -129,6 +129,10 @@ export declare const NestableWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC
129
129
  allowTargetBlank: t.BooleanC;
130
130
  allowText: t.BooleanC;
131
131
  repeat: t.BooleanC;
132
+ variant: t.ExactC<t.TypeC<{
133
+ options: t.ArrayC<t.StringC>;
134
+ default_value: t.StringC;
135
+ }>>;
132
136
  }>>;
133
137
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
134
138
  type: t.LiteralC<"Image">;
@@ -142,6 +142,10 @@ export declare const CompositeSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
142
142
  allowTargetBlank: t.BooleanC;
143
143
  allowText: t.BooleanC;
144
144
  repeat: t.BooleanC;
145
+ variant: t.ExactC<t.TypeC<{
146
+ options: t.ArrayC<t.StringC>;
147
+ default_value: t.StringC;
148
+ }>>;
145
149
  }>>;
146
150
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
147
151
  type: t.LiteralC<"Image">;
@@ -301,6 +305,10 @@ export declare const CompositeSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
301
305
  allowTargetBlank: t.BooleanC;
302
306
  allowText: t.BooleanC;
303
307
  repeat: t.BooleanC;
308
+ variant: t.ExactC<t.TypeC<{
309
+ options: t.ArrayC<t.StringC>;
310
+ default_value: t.StringC;
311
+ }>>;
304
312
  }>>;
305
313
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
306
314
  type: t.LiteralC<"Image">;
@@ -130,6 +130,10 @@ export declare const LegacySlice: t.UnionC<[t.UnionC<[t.ExactC<t.IntersectionC<[
130
130
  allowTargetBlank: t.BooleanC;
131
131
  allowText: t.BooleanC;
132
132
  repeat: t.BooleanC;
133
+ variant: t.ExactC<t.TypeC<{
134
+ options: t.ArrayC<t.StringC>;
135
+ default_value: t.StringC;
136
+ }>>;
133
137
  }>>;
134
138
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
135
139
  type: t.LiteralC<"Image">;
@@ -297,6 +301,10 @@ export declare const LegacySlice: t.UnionC<[t.UnionC<[t.ExactC<t.IntersectionC<[
297
301
  allowTargetBlank: t.BooleanC;
298
302
  allowText: t.BooleanC;
299
303
  repeat: t.BooleanC;
304
+ variant: t.ExactC<t.TypeC<{
305
+ options: t.ArrayC<t.StringC>;
306
+ default_value: t.StringC;
307
+ }>>;
300
308
  }>>;
301
309
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
302
310
  type: t.LiteralC<"Image">;
@@ -140,6 +140,10 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
140
140
  allowTargetBlank: t.BooleanC;
141
141
  allowText: t.BooleanC;
142
142
  repeat: t.BooleanC;
143
+ variant: t.ExactC<t.TypeC<{
144
+ options: t.ArrayC<t.StringC>;
145
+ default_value: t.StringC;
146
+ }>>;
143
147
  }>>;
144
148
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
145
149
  type: t.LiteralC<"Image">;
@@ -307,6 +311,10 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
307
311
  allowTargetBlank: t.BooleanC;
308
312
  allowText: t.BooleanC;
309
313
  repeat: t.BooleanC;
314
+ variant: t.ExactC<t.TypeC<{
315
+ options: t.ArrayC<t.StringC>;
316
+ default_value: t.StringC;
317
+ }>>;
310
318
  }>>;
311
319
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
312
320
  type: t.LiteralC<"Image">;
@@ -474,6 +482,10 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
474
482
  allowTargetBlank: t.BooleanC;
475
483
  allowText: t.BooleanC;
476
484
  repeat: t.BooleanC;
485
+ variant: t.ExactC<t.TypeC<{
486
+ options: t.ArrayC<t.StringC>;
487
+ default_value: t.StringC;
488
+ }>>;
477
489
  }>>;
478
490
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
479
491
  type: t.LiteralC<"Image">;
@@ -637,6 +649,10 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
637
649
  allowTargetBlank: t.BooleanC;
638
650
  allowText: t.BooleanC;
639
651
  repeat: t.BooleanC;
652
+ variant: t.ExactC<t.TypeC<{
653
+ options: t.ArrayC<t.StringC>;
654
+ default_value: t.StringC;
655
+ }>>;
640
656
  }>>;
641
657
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
642
658
  type: t.LiteralC<"Image">;
@@ -818,6 +834,10 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
818
834
  allowTargetBlank: t.BooleanC;
819
835
  allowText: t.BooleanC;
820
836
  repeat: t.BooleanC;
837
+ variant: t.ExactC<t.TypeC<{
838
+ options: t.ArrayC<t.StringC>;
839
+ default_value: t.StringC;
840
+ }>>;
821
841
  }>>;
822
842
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
823
843
  type: t.LiteralC<"Image">;
@@ -985,6 +1005,10 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
985
1005
  allowTargetBlank: t.BooleanC;
986
1006
  allowText: t.BooleanC;
987
1007
  repeat: t.BooleanC;
1008
+ variant: t.ExactC<t.TypeC<{
1009
+ options: t.ArrayC<t.StringC>;
1010
+ default_value: t.StringC;
1011
+ }>>;
988
1012
  }>>;
989
1013
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
990
1014
  type: t.LiteralC<"Image">;
@@ -1152,6 +1176,10 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
1152
1176
  allowTargetBlank: t.BooleanC;
1153
1177
  allowText: t.BooleanC;
1154
1178
  repeat: t.BooleanC;
1179
+ variant: t.ExactC<t.TypeC<{
1180
+ options: t.ArrayC<t.StringC>;
1181
+ default_value: t.StringC;
1182
+ }>>;
1155
1183
  }>>;
1156
1184
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1157
1185
  type: t.LiteralC<"Image">;
@@ -1315,6 +1343,10 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
1315
1343
  allowTargetBlank: t.BooleanC;
1316
1344
  allowText: t.BooleanC;
1317
1345
  repeat: t.BooleanC;
1346
+ variant: t.ExactC<t.TypeC<{
1347
+ options: t.ArrayC<t.StringC>;
1348
+ default_value: t.StringC;
1349
+ }>>;
1318
1350
  }>>;
1319
1351
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1320
1352
  type: t.LiteralC<"Image">;
@@ -129,6 +129,10 @@ export declare const SlicePrimaryWidget: t.UnionC<[t.UnionC<[t.ExactC<t.Intersec
129
129
  allowTargetBlank: t.BooleanC;
130
130
  allowText: t.BooleanC;
131
131
  repeat: t.BooleanC;
132
+ variant: t.ExactC<t.TypeC<{
133
+ options: t.ArrayC<t.StringC>;
134
+ default_value: t.StringC;
135
+ }>>;
132
136
  }>>;
133
137
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
134
138
  type: t.LiteralC<"Image">;
@@ -296,6 +300,10 @@ export declare const SlicePrimaryWidget: t.UnionC<[t.UnionC<[t.ExactC<t.Intersec
296
300
  allowTargetBlank: t.BooleanC;
297
301
  allowText: t.BooleanC;
298
302
  repeat: t.BooleanC;
303
+ variant: t.ExactC<t.TypeC<{
304
+ options: t.ArrayC<t.StringC>;
305
+ default_value: t.StringC;
306
+ }>>;
299
307
  }>>;
300
308
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
301
309
  type: t.LiteralC<"Image">;
@@ -463,6 +471,10 @@ export declare const SlicePrimaryWidget: t.UnionC<[t.UnionC<[t.ExactC<t.Intersec
463
471
  allowTargetBlank: t.BooleanC;
464
472
  allowText: t.BooleanC;
465
473
  repeat: t.BooleanC;
474
+ variant: t.ExactC<t.TypeC<{
475
+ options: t.ArrayC<t.StringC>;
476
+ default_value: t.StringC;
477
+ }>>;
466
478
  }>>;
467
479
  }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
468
480
  type: t.LiteralC<"Image">;
@@ -582,6 +594,10 @@ export declare const isSlicePrimaryWidget: (u: unknown) => u is ({
582
594
  allowTargetBlank?: boolean;
583
595
  allowText?: boolean;
584
596
  repeat?: boolean;
597
+ variant?: {
598
+ options: string[];
599
+ default_value: string;
600
+ };
585
601
  };
586
602
  }) | ({
587
603
  type: "Number";
@@ -750,6 +766,10 @@ export declare const isSlicePrimaryWidget: (u: unknown) => u is ({
750
766
  allowTargetBlank?: boolean;
751
767
  allowText?: boolean;
752
768
  repeat?: boolean;
769
+ variant?: {
770
+ options: string[];
771
+ default_value: string;
772
+ };
753
773
  };
754
774
  }) | ({
755
775
  type: "Number";
@@ -918,6 +938,10 @@ export declare const isSlicePrimaryWidget: (u: unknown) => u is ({
918
938
  allowTargetBlank?: boolean;
919
939
  allowText?: boolean;
920
940
  repeat?: boolean;
941
+ variant?: {
942
+ options: string[];
943
+ default_value: string;
944
+ };
921
945
  };
922
946
  }) | ({
923
947
  type: "Number";