@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.
- package/lib/content/Document.d.ts +0 -72
- package/lib/content/fields/GroupContent.d.ts +0 -15
- package/lib/content/fields/WidgetContent.d.ts +0 -72
- package/lib/content/fields/nestable/ImageContent.d.ts +0 -9
- package/lib/content/fields/nestable/ImageContent.js +0 -1
- package/lib/content/fields/nestable/NestableContent.d.ts +0 -9
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +0 -4
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +0 -4
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +0 -18
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +0 -6
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +0 -18
- package/lib/content/fields/slices/Slice/SharedSliceContent.js +3 -1
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +0 -18
- package/lib/content/fields/slices/Slice/index.d.ts +0 -36
- package/lib/content/fields/slices/SliceItem.d.ts +0 -36
- package/lib/content/fields/slices/SlicesContent.d.ts +0 -54
- package/lib/customtypes/CustomType.d.ts +169 -14
- package/lib/customtypes/Section.d.ts +169 -14
- package/lib/customtypes/diff/SharedSlice.d.ts +338 -4
- package/lib/customtypes/diff/Variation.d.ts +340 -5
- package/lib/customtypes/widgets/Group.d.ts +0 -2
- package/lib/customtypes/widgets/Widget.d.ts +169 -16
- package/lib/customtypes/widgets/nestable/Image.d.ts +0 -2
- package/lib/customtypes/widgets/nestable/Image.js +0 -1
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +0 -1
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +0 -2
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +0 -2
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +336 -6
- package/lib/customtypes/widgets/slices/SharedSlice.js +2 -1
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +327 -0
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.js +8 -0
- package/lib/customtypes/widgets/slices/SliceWidget.d.ts +327 -0
- package/lib/customtypes/widgets/slices/SliceWidget.js +8 -0
- package/lib/customtypes/widgets/slices/Slices.d.ts +338 -24
- package/lib/customtypes/widgets/slices/index.d.ts +1 -0
- package/lib/customtypes/widgets/slices/index.js +1 -0
- package/package.json +1 -1
- package/src/content/fields/nestable/ImageContent.ts +0 -1
- package/src/content/fields/slices/Slice/SharedSliceContent.ts +12 -2
- package/src/customtypes/diff/Variation.ts +6 -5
- package/src/customtypes/widgets/nestable/Image.ts +0 -1
- package/src/customtypes/widgets/slices/SharedSlice.ts +2 -1
- package/src/customtypes/widgets/slices/SlicePrimaryWidget.ts +9 -0
- package/src/customtypes/widgets/slices/index.ts +1 -0
|
@@ -10,7 +10,7 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
10
10
|
version: t.StringC;
|
|
11
11
|
}>, t.PartialC<{
|
|
12
12
|
display: t.StringC;
|
|
13
|
-
primary: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
13
|
+
primary: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
14
14
|
type: t.LiteralC<"Color">;
|
|
15
15
|
}>, t.PartialC<{
|
|
16
16
|
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -156,7 +156,6 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
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">;
|
|
@@ -167,6 +166,173 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
167
166
|
placeholder: t.StringC;
|
|
168
167
|
catalog: t.StringC;
|
|
169
168
|
}>>;
|
|
169
|
+
}>]>>]>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
170
|
+
type: t.LiteralC<"Group">;
|
|
171
|
+
}>, t.PartialC<{
|
|
172
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
173
|
+
icon: t.StringC;
|
|
174
|
+
description: t.StringC;
|
|
175
|
+
config: t.ExactC<t.PartialC<{
|
|
176
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
177
|
+
repeat: t.BooleanC;
|
|
178
|
+
fields: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
179
|
+
type: t.LiteralC<"Color">;
|
|
180
|
+
}>, t.PartialC<{
|
|
181
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
182
|
+
config: t.ExactC<t.PartialC<{
|
|
183
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
184
|
+
placeholder: t.StringC;
|
|
185
|
+
}>>;
|
|
186
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
187
|
+
type: t.LiteralC<"Boolean">;
|
|
188
|
+
}>, t.PartialC<{
|
|
189
|
+
config: t.ExactC<t.PartialC<{
|
|
190
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
191
|
+
default_value: t.BooleanC;
|
|
192
|
+
placeholder_true: t.StringC;
|
|
193
|
+
placeholder_false: t.StringC;
|
|
194
|
+
}>>;
|
|
195
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
196
|
+
type: t.LiteralC<"Embed">;
|
|
197
|
+
}>, t.PartialC<{
|
|
198
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
199
|
+
config: t.ExactC<t.PartialC<{
|
|
200
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
201
|
+
placeholder: t.StringC;
|
|
202
|
+
useAsTitle: t.BooleanC;
|
|
203
|
+
}>>;
|
|
204
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
205
|
+
type: t.LiteralC<"GeoPoint">;
|
|
206
|
+
}>, t.PartialC<{
|
|
207
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
208
|
+
config: t.ExactC<t.PartialC<{
|
|
209
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
210
|
+
}>>;
|
|
211
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
212
|
+
type: t.LiteralC<"Date">;
|
|
213
|
+
}>, t.PartialC<{
|
|
214
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
215
|
+
config: t.ExactC<t.PartialC<{
|
|
216
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
217
|
+
placeholder: t.StringC;
|
|
218
|
+
default: t.StringC;
|
|
219
|
+
}>>;
|
|
220
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
221
|
+
type: t.LiteralC<"Number">;
|
|
222
|
+
}>, t.PartialC<{
|
|
223
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
224
|
+
config: t.ExactC<t.PartialC<{
|
|
225
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
226
|
+
placeholder: t.StringC;
|
|
227
|
+
min: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
|
|
228
|
+
max: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
|
|
229
|
+
step: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
|
|
230
|
+
}>>;
|
|
231
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
232
|
+
type: t.LiteralC<"Range">;
|
|
233
|
+
}>, t.PartialC<{
|
|
234
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
235
|
+
config: t.ExactC<t.PartialC<{
|
|
236
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
237
|
+
placeholder: t.StringC;
|
|
238
|
+
min: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
|
|
239
|
+
max: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
|
|
240
|
+
step: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
|
|
241
|
+
}>>;
|
|
242
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
243
|
+
type: t.LiteralC<"StructuredText">;
|
|
244
|
+
}>, t.PartialC<{
|
|
245
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
246
|
+
config: t.ExactC<t.PartialC<{
|
|
247
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
248
|
+
placeholder: t.StringC;
|
|
249
|
+
useAsTitle: t.BooleanC;
|
|
250
|
+
single: t.Type<string, string, unknown>;
|
|
251
|
+
multi: t.Type<string, string, unknown>;
|
|
252
|
+
imageConstraint: t.PartialC<{
|
|
253
|
+
width: t.Type<number | null, unknown, unknown>;
|
|
254
|
+
height: t.Type<number | null, unknown, unknown>;
|
|
255
|
+
}>;
|
|
256
|
+
labels: t.Type<readonly string[], object, unknown>;
|
|
257
|
+
allowTargetBlank: t.BooleanC;
|
|
258
|
+
}>>;
|
|
259
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
260
|
+
type: t.LiteralC<"Select">;
|
|
261
|
+
}>, t.PartialC<{
|
|
262
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
263
|
+
config: t.ExactC<t.PartialC<{
|
|
264
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
265
|
+
placeholder: t.StringC;
|
|
266
|
+
default_value: t.StringC;
|
|
267
|
+
options: t.ReadonlyArrayC<t.UnionC<[t.StringC, t.Type<string, string, unknown>, t.Type<string, string, unknown>]>>;
|
|
268
|
+
}>>;
|
|
269
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
270
|
+
type: t.LiteralC<"Separator">;
|
|
271
|
+
}>, t.PartialC<{
|
|
272
|
+
config: t.ExactC<t.PartialC<{
|
|
273
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
274
|
+
}>>;
|
|
275
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
276
|
+
type: t.LiteralC<"Text">;
|
|
277
|
+
}>, t.PartialC<{
|
|
278
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
279
|
+
config: t.ExactC<t.PartialC<{
|
|
280
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
281
|
+
useAsTitle: t.BooleanC;
|
|
282
|
+
placeholder: t.StringC;
|
|
283
|
+
}>>;
|
|
284
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
285
|
+
type: t.LiteralC<"Timestamp">;
|
|
286
|
+
}>, t.PartialC<{
|
|
287
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
288
|
+
config: t.ExactC<t.PartialC<{
|
|
289
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
290
|
+
placeholder: t.StringC;
|
|
291
|
+
default: t.StringC;
|
|
292
|
+
}>>;
|
|
293
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
294
|
+
type: t.LiteralC<"Link">;
|
|
295
|
+
}>, t.PartialC<{
|
|
296
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
297
|
+
config: t.ExactC<t.PartialC<{
|
|
298
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
299
|
+
useAsTitle: t.BooleanC;
|
|
300
|
+
placeholder: t.StringC;
|
|
301
|
+
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
|
|
302
|
+
customtypes: t.ReadonlyArrayC<t.StringC>;
|
|
303
|
+
masks: t.Type<readonly string[], object, unknown>;
|
|
304
|
+
tags: t.Type<readonly string[], object, unknown>;
|
|
305
|
+
allowTargetBlank: t.BooleanC;
|
|
306
|
+
}>>;
|
|
307
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
308
|
+
type: t.LiteralC<"Image">;
|
|
309
|
+
}>, t.PartialC<{
|
|
310
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
311
|
+
config: t.ExactC<t.PartialC<{
|
|
312
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
313
|
+
placeholder: t.StringC;
|
|
314
|
+
constraint: t.PartialC<{
|
|
315
|
+
width: t.Type<number | null, unknown, unknown>;
|
|
316
|
+
height: t.Type<number | null, unknown, unknown>;
|
|
317
|
+
}>;
|
|
318
|
+
thumbnails: t.ReadonlyArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
319
|
+
name: t.StringC;
|
|
320
|
+
}>, t.PartialC<{
|
|
321
|
+
width: t.Type<number | null, unknown, unknown>;
|
|
322
|
+
height: t.Type<number | null, unknown, unknown>;
|
|
323
|
+
}>]>>>;
|
|
324
|
+
}>>;
|
|
325
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
326
|
+
type: t.LiteralC<"IntegrationFields">;
|
|
327
|
+
}>, t.PartialC<{
|
|
328
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
329
|
+
config: t.ExactC<t.PartialC<{
|
|
330
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
331
|
+
placeholder: t.StringC;
|
|
332
|
+
catalog: t.StringC;
|
|
333
|
+
}>>;
|
|
334
|
+
}>]>>]>>;
|
|
335
|
+
}>>;
|
|
170
336
|
}>]>>]>>;
|
|
171
337
|
items: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
172
338
|
type: t.LiteralC<"Color">;
|
|
@@ -314,7 +480,6 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
314
480
|
width: t.Type<number | null, unknown, unknown>;
|
|
315
481
|
height: t.Type<number | null, unknown, unknown>;
|
|
316
482
|
}>]>>>;
|
|
317
|
-
allowCaption: t.BooleanC;
|
|
318
483
|
}>>;
|
|
319
484
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
320
485
|
type: t.LiteralC<"IntegrationFields">;
|
|
@@ -348,7 +513,7 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
348
513
|
version: t.StringC;
|
|
349
514
|
}>, t.PartialC<{
|
|
350
515
|
display: t.StringC;
|
|
351
|
-
primary: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
516
|
+
primary: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
352
517
|
type: t.LiteralC<"Color">;
|
|
353
518
|
}>, t.PartialC<{
|
|
354
519
|
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -494,7 +659,6 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
494
659
|
width: t.Type<number | null, unknown, unknown>;
|
|
495
660
|
height: t.Type<number | null, unknown, unknown>;
|
|
496
661
|
}>]>>>;
|
|
497
|
-
allowCaption: t.BooleanC;
|
|
498
662
|
}>>;
|
|
499
663
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
500
664
|
type: t.LiteralC<"IntegrationFields">;
|
|
@@ -505,6 +669,173 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
505
669
|
placeholder: t.StringC;
|
|
506
670
|
catalog: t.StringC;
|
|
507
671
|
}>>;
|
|
672
|
+
}>]>>]>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
673
|
+
type: t.LiteralC<"Group">;
|
|
674
|
+
}>, t.PartialC<{
|
|
675
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
676
|
+
icon: t.StringC;
|
|
677
|
+
description: t.StringC;
|
|
678
|
+
config: t.ExactC<t.PartialC<{
|
|
679
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
680
|
+
repeat: t.BooleanC;
|
|
681
|
+
fields: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
682
|
+
type: t.LiteralC<"Color">;
|
|
683
|
+
}>, t.PartialC<{
|
|
684
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
685
|
+
config: t.ExactC<t.PartialC<{
|
|
686
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
687
|
+
placeholder: t.StringC;
|
|
688
|
+
}>>;
|
|
689
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
690
|
+
type: t.LiteralC<"Boolean">;
|
|
691
|
+
}>, t.PartialC<{
|
|
692
|
+
config: t.ExactC<t.PartialC<{
|
|
693
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
694
|
+
default_value: t.BooleanC;
|
|
695
|
+
placeholder_true: t.StringC;
|
|
696
|
+
placeholder_false: t.StringC;
|
|
697
|
+
}>>;
|
|
698
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
699
|
+
type: t.LiteralC<"Embed">;
|
|
700
|
+
}>, t.PartialC<{
|
|
701
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
702
|
+
config: t.ExactC<t.PartialC<{
|
|
703
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
704
|
+
placeholder: t.StringC;
|
|
705
|
+
useAsTitle: t.BooleanC;
|
|
706
|
+
}>>;
|
|
707
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
708
|
+
type: t.LiteralC<"GeoPoint">;
|
|
709
|
+
}>, t.PartialC<{
|
|
710
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
711
|
+
config: t.ExactC<t.PartialC<{
|
|
712
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
713
|
+
}>>;
|
|
714
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
715
|
+
type: t.LiteralC<"Date">;
|
|
716
|
+
}>, t.PartialC<{
|
|
717
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
718
|
+
config: t.ExactC<t.PartialC<{
|
|
719
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
720
|
+
placeholder: t.StringC;
|
|
721
|
+
default: t.StringC;
|
|
722
|
+
}>>;
|
|
723
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
724
|
+
type: t.LiteralC<"Number">;
|
|
725
|
+
}>, t.PartialC<{
|
|
726
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
727
|
+
config: t.ExactC<t.PartialC<{
|
|
728
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
729
|
+
placeholder: t.StringC;
|
|
730
|
+
min: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
|
|
731
|
+
max: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
|
|
732
|
+
step: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
|
|
733
|
+
}>>;
|
|
734
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
735
|
+
type: t.LiteralC<"Range">;
|
|
736
|
+
}>, t.PartialC<{
|
|
737
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
738
|
+
config: t.ExactC<t.PartialC<{
|
|
739
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
740
|
+
placeholder: t.StringC;
|
|
741
|
+
min: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
|
|
742
|
+
max: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
|
|
743
|
+
step: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
|
|
744
|
+
}>>;
|
|
745
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
746
|
+
type: t.LiteralC<"StructuredText">;
|
|
747
|
+
}>, t.PartialC<{
|
|
748
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
749
|
+
config: t.ExactC<t.PartialC<{
|
|
750
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
751
|
+
placeholder: t.StringC;
|
|
752
|
+
useAsTitle: t.BooleanC;
|
|
753
|
+
single: t.Type<string, string, unknown>;
|
|
754
|
+
multi: t.Type<string, string, unknown>;
|
|
755
|
+
imageConstraint: t.PartialC<{
|
|
756
|
+
width: t.Type<number | null, unknown, unknown>;
|
|
757
|
+
height: t.Type<number | null, unknown, unknown>;
|
|
758
|
+
}>;
|
|
759
|
+
labels: t.Type<readonly string[], object, unknown>;
|
|
760
|
+
allowTargetBlank: t.BooleanC;
|
|
761
|
+
}>>;
|
|
762
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
763
|
+
type: t.LiteralC<"Select">;
|
|
764
|
+
}>, t.PartialC<{
|
|
765
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
766
|
+
config: t.ExactC<t.PartialC<{
|
|
767
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
768
|
+
placeholder: t.StringC;
|
|
769
|
+
default_value: t.StringC;
|
|
770
|
+
options: t.ReadonlyArrayC<t.UnionC<[t.StringC, t.Type<string, string, unknown>, t.Type<string, string, unknown>]>>;
|
|
771
|
+
}>>;
|
|
772
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
773
|
+
type: t.LiteralC<"Separator">;
|
|
774
|
+
}>, t.PartialC<{
|
|
775
|
+
config: t.ExactC<t.PartialC<{
|
|
776
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
777
|
+
}>>;
|
|
778
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
779
|
+
type: t.LiteralC<"Text">;
|
|
780
|
+
}>, t.PartialC<{
|
|
781
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
782
|
+
config: t.ExactC<t.PartialC<{
|
|
783
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
784
|
+
useAsTitle: t.BooleanC;
|
|
785
|
+
placeholder: t.StringC;
|
|
786
|
+
}>>;
|
|
787
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
788
|
+
type: t.LiteralC<"Timestamp">;
|
|
789
|
+
}>, t.PartialC<{
|
|
790
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
791
|
+
config: t.ExactC<t.PartialC<{
|
|
792
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
793
|
+
placeholder: t.StringC;
|
|
794
|
+
default: t.StringC;
|
|
795
|
+
}>>;
|
|
796
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
797
|
+
type: t.LiteralC<"Link">;
|
|
798
|
+
}>, t.PartialC<{
|
|
799
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
800
|
+
config: t.ExactC<t.PartialC<{
|
|
801
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
802
|
+
useAsTitle: t.BooleanC;
|
|
803
|
+
placeholder: t.StringC;
|
|
804
|
+
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
|
|
805
|
+
customtypes: t.ReadonlyArrayC<t.StringC>;
|
|
806
|
+
masks: t.Type<readonly string[], object, unknown>;
|
|
807
|
+
tags: t.Type<readonly string[], object, unknown>;
|
|
808
|
+
allowTargetBlank: t.BooleanC;
|
|
809
|
+
}>>;
|
|
810
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
811
|
+
type: t.LiteralC<"Image">;
|
|
812
|
+
}>, t.PartialC<{
|
|
813
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
814
|
+
config: t.ExactC<t.PartialC<{
|
|
815
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
816
|
+
placeholder: t.StringC;
|
|
817
|
+
constraint: t.PartialC<{
|
|
818
|
+
width: t.Type<number | null, unknown, unknown>;
|
|
819
|
+
height: t.Type<number | null, unknown, unknown>;
|
|
820
|
+
}>;
|
|
821
|
+
thumbnails: t.ReadonlyArrayC<t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
822
|
+
name: t.StringC;
|
|
823
|
+
}>, t.PartialC<{
|
|
824
|
+
width: t.Type<number | null, unknown, unknown>;
|
|
825
|
+
height: t.Type<number | null, unknown, unknown>;
|
|
826
|
+
}>]>>>;
|
|
827
|
+
}>>;
|
|
828
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
829
|
+
type: t.LiteralC<"IntegrationFields">;
|
|
830
|
+
}>, t.PartialC<{
|
|
831
|
+
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
832
|
+
config: t.ExactC<t.PartialC<{
|
|
833
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
834
|
+
placeholder: t.StringC;
|
|
835
|
+
catalog: t.StringC;
|
|
836
|
+
}>>;
|
|
837
|
+
}>]>>]>>;
|
|
838
|
+
}>>;
|
|
508
839
|
}>]>>]>>;
|
|
509
840
|
items: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
510
841
|
type: t.LiteralC<"Color">;
|
|
@@ -652,7 +983,6 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
652
983
|
width: t.Type<number | null, unknown, unknown>;
|
|
653
984
|
height: t.Type<number | null, unknown, unknown>;
|
|
654
985
|
}>]>>>;
|
|
655
|
-
allowCaption: t.BooleanC;
|
|
656
986
|
}>>;
|
|
657
987
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
658
988
|
type: t.LiteralC<"IntegrationFields">;
|
|
@@ -6,6 +6,7 @@ const t = (0, tslib_1.__importStar)(require("io-ts"));
|
|
|
6
6
|
const withFallback_1 = require("io-ts-types/lib/withFallback");
|
|
7
7
|
const common_1 = require("../../../common");
|
|
8
8
|
const NestableWidget_1 = require("../nestable/NestableWidget");
|
|
9
|
+
const SlicePrimaryWidget_1 = require("./SlicePrimaryWidget");
|
|
9
10
|
const IMAGE_PLACEHOLDER_URL = "https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format";
|
|
10
11
|
exports.Variation = t.exact(t.intersection([
|
|
11
12
|
t.type({
|
|
@@ -18,7 +19,7 @@ exports.Variation = t.exact(t.intersection([
|
|
|
18
19
|
}),
|
|
19
20
|
t.partial({
|
|
20
21
|
display: t.string,
|
|
21
|
-
primary: t.record(common_1.WidgetKey,
|
|
22
|
+
primary: t.record(common_1.WidgetKey, SlicePrimaryWidget_1.SlicePrimaryWidget),
|
|
22
23
|
items: t.record(common_1.WidgetKey, NestableWidget_1.NestableWidget),
|
|
23
24
|
}),
|
|
24
25
|
]));
|