@prismicio/types-internal 2.5.0-alpha.0 → 2.5.0-alpha.2
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 +3972 -7926
- package/lib/content/fields/GroupContent.d.ts +17 -1754
- package/lib/content/fields/GroupContent.js +62 -22
- package/lib/content/fields/WidgetContent.d.ts +3371 -7324
- package/lib/content/fields/nestable/NestableContent.d.ts +3 -145
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +4 -212
- package/lib/content/fields/nestable/RichTextContent/Blocks.js +2 -0
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +4 -184
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +6 -290
- package/lib/content/fields/slices/Slice/CompositeSliceContent.js +3 -0
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +2 -383
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +15 -1333
- package/lib/content/fields/slices/Slice/SharedSliceContent.js +2 -0
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +7 -1182
- package/lib/content/fields/slices/Slice/SimpleSliceContent.js +1 -0
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +7 -1182
- package/lib/content/fields/slices/Slice/index.d.ts +983 -2935
- package/lib/content/fields/slices/SliceItem.d.ts +148 -2100
- package/lib/content/fields/slices/SlicesContent.d.ts +866 -3644
- package/lib/content/fields/withDefaultValues.d.ts +4 -3
- package/lib/content/fields/withDefaultValues.js +17 -1
- package/lib/customtypes/CustomType.d.ts +70 -915
- package/lib/customtypes/Section.d.ts +70 -915
- package/lib/customtypes/diff/SharedSlice.d.ts +2 -340
- package/lib/customtypes/diff/Variation.d.ts +4 -351
- package/lib/customtypes/diff/Variation.js +4 -3
- package/lib/customtypes/diff/Widgets.d.ts +11 -0
- package/lib/customtypes/diff/Widgets.js +2 -0
- package/lib/customtypes/diff/index.d.ts +1 -0
- package/lib/customtypes/diff/index.js +1 -0
- package/lib/customtypes/widgets/Group.d.ts +15 -331
- package/lib/customtypes/widgets/Group.js +25 -5
- package/lib/customtypes/widgets/Widget.d.ts +7 -1014
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -168
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +2 -336
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +3 -338
- package/lib/customtypes/widgets/slices/Slices.d.ts +7 -1184
- package/lib/validators/function.js +8 -1
- package/package.json +5 -5
- package/src/content/fields/GroupContent.ts +107 -32
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +3 -1
- package/src/content/fields/slices/Slice/CompositeSliceContent.ts +7 -4
- package/src/content/fields/slices/Slice/SharedSliceContent.ts +5 -3
- package/src/content/fields/slices/Slice/SimpleSliceContent.ts +3 -1
- package/src/content/fields/withDefaultValues.ts +27 -3
- package/src/customtypes/diff/Variation.ts +9 -20
- package/src/customtypes/diff/Widgets.ts +17 -0
- package/src/customtypes/diff/index.ts +1 -0
- package/src/customtypes/widgets/Group.ts +66 -20
- package/src/validators/function.ts +11 -1
|
@@ -158,176 +158,7 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
158
158
|
placeholder?: string;
|
|
159
159
|
default?: string;
|
|
160
160
|
};
|
|
161
|
-
}) | ({
|
|
162
|
-
type: "Group";
|
|
163
|
-
} & {
|
|
164
|
-
fieldset?: string | null | undefined;
|
|
165
|
-
icon?: string;
|
|
166
|
-
description?: string;
|
|
167
|
-
config?: {
|
|
168
|
-
label?: string | null | undefined;
|
|
169
|
-
repeat?: boolean;
|
|
170
|
-
fields?: {
|
|
171
|
-
[x: string]: ({
|
|
172
|
-
type: "Boolean";
|
|
173
|
-
} & {
|
|
174
|
-
config?: {
|
|
175
|
-
label?: string | null | undefined;
|
|
176
|
-
default_value?: boolean;
|
|
177
|
-
placeholder_true?: string;
|
|
178
|
-
placeholder_false?: string;
|
|
179
|
-
};
|
|
180
|
-
}) | ({
|
|
181
|
-
type: "Color";
|
|
182
|
-
} & {
|
|
183
|
-
fieldset?: string | null | undefined;
|
|
184
|
-
config?: {
|
|
185
|
-
label?: string | null | undefined;
|
|
186
|
-
placeholder?: string;
|
|
187
|
-
};
|
|
188
|
-
}) | ({
|
|
189
|
-
type: "Date";
|
|
190
|
-
} & {
|
|
191
|
-
fieldset?: string | null | undefined;
|
|
192
|
-
config?: {
|
|
193
|
-
label?: string | null | undefined;
|
|
194
|
-
placeholder?: string;
|
|
195
|
-
default?: string;
|
|
196
|
-
};
|
|
197
|
-
}) | ({
|
|
198
|
-
type: "Embed";
|
|
199
|
-
} & {
|
|
200
|
-
fieldset?: string | null | undefined;
|
|
201
|
-
config?: {
|
|
202
|
-
label?: string | null | undefined;
|
|
203
|
-
placeholder?: string;
|
|
204
|
-
useAsTitle?: boolean;
|
|
205
|
-
};
|
|
206
|
-
}) | ({
|
|
207
|
-
type: "GeoPoint";
|
|
208
|
-
} & {
|
|
209
|
-
fieldset?: string | null | undefined;
|
|
210
|
-
config?: {
|
|
211
|
-
label?: string | null | undefined;
|
|
212
|
-
};
|
|
213
|
-
}) | ({
|
|
214
|
-
type: "Image";
|
|
215
|
-
} & {
|
|
216
|
-
fieldset?: string | null | undefined;
|
|
217
|
-
config?: {
|
|
218
|
-
label?: string | null | undefined;
|
|
219
|
-
placeholder?: string;
|
|
220
|
-
constraint?: {
|
|
221
|
-
width?: number | null;
|
|
222
|
-
height?: number | null;
|
|
223
|
-
};
|
|
224
|
-
thumbnails?: readonly ({
|
|
225
|
-
name: string;
|
|
226
|
-
} & {
|
|
227
|
-
width?: number | null;
|
|
228
|
-
height?: number | null;
|
|
229
|
-
})[];
|
|
230
|
-
};
|
|
231
|
-
}) | ({
|
|
232
|
-
type: "IntegrationFields";
|
|
233
|
-
} & {
|
|
234
|
-
fieldset?: string | null | undefined;
|
|
235
|
-
config?: {
|
|
236
|
-
label?: string | null | undefined;
|
|
237
|
-
placeholder?: string;
|
|
238
|
-
catalog?: string;
|
|
239
|
-
};
|
|
240
|
-
}) | ({
|
|
241
|
-
type: "Link";
|
|
242
|
-
} & {
|
|
243
|
-
fieldset?: string | null | undefined;
|
|
244
|
-
config?: {
|
|
245
|
-
label?: string | null | undefined;
|
|
246
|
-
useAsTitle?: boolean;
|
|
247
|
-
placeholder?: string;
|
|
248
|
-
select?: "media" | "document" | "web" | null;
|
|
249
|
-
customtypes?: readonly string[];
|
|
250
|
-
masks?: readonly string[];
|
|
251
|
-
tags?: readonly string[];
|
|
252
|
-
allowTargetBlank?: boolean;
|
|
253
|
-
};
|
|
254
|
-
}) | ({
|
|
255
|
-
type: "Number";
|
|
256
|
-
} & {
|
|
257
|
-
fieldset?: string | null | undefined;
|
|
258
|
-
config?: {
|
|
259
|
-
label?: string | null | undefined;
|
|
260
|
-
placeholder?: string;
|
|
261
|
-
min?: number;
|
|
262
|
-
max?: number;
|
|
263
|
-
step?: number;
|
|
264
|
-
};
|
|
265
|
-
}) | ({
|
|
266
|
-
type: "Range";
|
|
267
|
-
} & {
|
|
268
|
-
fieldset?: string | null | undefined;
|
|
269
|
-
config?: {
|
|
270
|
-
label?: string | null | undefined;
|
|
271
|
-
placeholder?: string;
|
|
272
|
-
min?: number;
|
|
273
|
-
max?: number;
|
|
274
|
-
step?: number;
|
|
275
|
-
};
|
|
276
|
-
}) | ({
|
|
277
|
-
type: "StructuredText";
|
|
278
|
-
} & {
|
|
279
|
-
fieldset?: string | null | undefined;
|
|
280
|
-
config?: {
|
|
281
|
-
label?: string | null | undefined;
|
|
282
|
-
placeholder?: string;
|
|
283
|
-
useAsTitle?: boolean;
|
|
284
|
-
single?: string;
|
|
285
|
-
multi?: string;
|
|
286
|
-
imageConstraint?: {
|
|
287
|
-
width?: number | null;
|
|
288
|
-
height?: number | null;
|
|
289
|
-
};
|
|
290
|
-
labels?: readonly string[];
|
|
291
|
-
allowTargetBlank?: boolean;
|
|
292
|
-
};
|
|
293
|
-
}) | ({
|
|
294
|
-
type: "Select";
|
|
295
|
-
} & {
|
|
296
|
-
fieldset?: string | null | undefined;
|
|
297
|
-
config?: {
|
|
298
|
-
label?: string | null | undefined;
|
|
299
|
-
placeholder?: string;
|
|
300
|
-
default_value?: string;
|
|
301
|
-
options?: readonly string[];
|
|
302
|
-
};
|
|
303
|
-
}) | ({
|
|
304
|
-
type: "Separator";
|
|
305
|
-
} & {
|
|
306
|
-
config?: {
|
|
307
|
-
label?: string | null | undefined;
|
|
308
|
-
};
|
|
309
|
-
}) | ({
|
|
310
|
-
type: "Text";
|
|
311
|
-
} & {
|
|
312
|
-
fieldset?: string | null | undefined;
|
|
313
|
-
config?: {
|
|
314
|
-
label?: string | null | undefined;
|
|
315
|
-
useAsTitle?: boolean;
|
|
316
|
-
placeholder?: string;
|
|
317
|
-
};
|
|
318
|
-
}) | ({
|
|
319
|
-
type: "Timestamp";
|
|
320
|
-
} & {
|
|
321
|
-
fieldset?: string | null | undefined;
|
|
322
|
-
config?: {
|
|
323
|
-
label?: string | null | undefined;
|
|
324
|
-
placeholder?: string;
|
|
325
|
-
default?: string;
|
|
326
|
-
};
|
|
327
|
-
});
|
|
328
|
-
};
|
|
329
|
-
};
|
|
330
|
-
}) | ({
|
|
161
|
+
}) | import("./widgets").Group | ({
|
|
331
162
|
type: "Choice" | "Slices";
|
|
332
163
|
} & {
|
|
333
164
|
fieldset?: string | null | undefined;
|
|
@@ -497,235 +328,66 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
497
328
|
placeholder?: string;
|
|
498
329
|
default?: string;
|
|
499
330
|
};
|
|
500
|
-
}) | ({
|
|
501
|
-
type: "
|
|
331
|
+
}) | import("./widgets").Group | ({
|
|
332
|
+
type: "Slice";
|
|
502
333
|
} & {
|
|
503
334
|
fieldset?: string | null | undefined;
|
|
504
|
-
icon?: string;
|
|
505
335
|
description?: string;
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
height?: number | null;
|
|
562
|
-
};
|
|
563
|
-
thumbnails?: readonly ({
|
|
564
|
-
name: string;
|
|
565
|
-
} & {
|
|
566
|
-
width?: number | null;
|
|
567
|
-
height?: number | null;
|
|
568
|
-
})[];
|
|
569
|
-
};
|
|
570
|
-
}) | ({
|
|
571
|
-
type: "IntegrationFields";
|
|
572
|
-
} & {
|
|
573
|
-
fieldset?: string | null | undefined;
|
|
574
|
-
config?: {
|
|
575
|
-
label?: string | null | undefined;
|
|
576
|
-
placeholder?: string;
|
|
577
|
-
catalog?: string;
|
|
578
|
-
};
|
|
579
|
-
}) | ({
|
|
580
|
-
type: "Link";
|
|
581
|
-
} & {
|
|
582
|
-
fieldset?: string | null | undefined;
|
|
583
|
-
config?: {
|
|
584
|
-
label?: string | null | undefined;
|
|
585
|
-
useAsTitle?: boolean;
|
|
586
|
-
placeholder?: string;
|
|
587
|
-
select?: "media" | "document" | "web" | null;
|
|
588
|
-
customtypes?: readonly string[];
|
|
589
|
-
masks?: readonly string[];
|
|
590
|
-
tags?: readonly string[];
|
|
591
|
-
allowTargetBlank?: boolean;
|
|
592
|
-
};
|
|
593
|
-
}) | ({
|
|
594
|
-
type: "Number";
|
|
595
|
-
} & {
|
|
596
|
-
fieldset?: string | null | undefined;
|
|
597
|
-
config?: {
|
|
598
|
-
label?: string | null | undefined;
|
|
599
|
-
placeholder?: string;
|
|
600
|
-
min?: number;
|
|
601
|
-
max?: number;
|
|
602
|
-
step?: number;
|
|
603
|
-
};
|
|
604
|
-
}) | ({
|
|
605
|
-
type: "Range";
|
|
606
|
-
} & {
|
|
607
|
-
fieldset?: string | null | undefined;
|
|
608
|
-
config?: {
|
|
609
|
-
label?: string | null | undefined;
|
|
610
|
-
placeholder?: string;
|
|
611
|
-
min?: number;
|
|
612
|
-
max?: number;
|
|
613
|
-
step?: number;
|
|
614
|
-
};
|
|
615
|
-
}) | ({
|
|
616
|
-
type: "StructuredText";
|
|
617
|
-
} & {
|
|
618
|
-
fieldset?: string | null | undefined;
|
|
619
|
-
config?: {
|
|
620
|
-
label?: string | null | undefined;
|
|
621
|
-
placeholder?: string;
|
|
622
|
-
useAsTitle?: boolean;
|
|
623
|
-
single?: string;
|
|
624
|
-
multi?: string;
|
|
625
|
-
imageConstraint?: {
|
|
626
|
-
width?: number | null;
|
|
627
|
-
height?: number | null;
|
|
628
|
-
};
|
|
629
|
-
labels?: readonly string[];
|
|
630
|
-
allowTargetBlank?: boolean;
|
|
631
|
-
};
|
|
632
|
-
}) | ({
|
|
633
|
-
type: "Select";
|
|
634
|
-
} & {
|
|
635
|
-
fieldset?: string | null | undefined;
|
|
636
|
-
config?: {
|
|
637
|
-
label?: string | null | undefined;
|
|
638
|
-
placeholder?: string;
|
|
639
|
-
default_value?: string;
|
|
640
|
-
options?: readonly string[];
|
|
641
|
-
};
|
|
642
|
-
}) | ({
|
|
643
|
-
type: "Separator";
|
|
644
|
-
} & {
|
|
645
|
-
config?: {
|
|
646
|
-
label?: string | null | undefined;
|
|
647
|
-
};
|
|
648
|
-
}) | ({
|
|
649
|
-
type: "Text";
|
|
650
|
-
} & {
|
|
651
|
-
fieldset?: string | null | undefined;
|
|
652
|
-
config?: {
|
|
653
|
-
label?: string | null | undefined;
|
|
654
|
-
useAsTitle?: boolean;
|
|
655
|
-
placeholder?: string;
|
|
656
|
-
};
|
|
657
|
-
}) | ({
|
|
658
|
-
type: "Timestamp";
|
|
659
|
-
} & {
|
|
660
|
-
fieldset?: string | null | undefined;
|
|
661
|
-
config?: {
|
|
662
|
-
label?: string | null | undefined;
|
|
663
|
-
placeholder?: string;
|
|
664
|
-
default?: string;
|
|
665
|
-
};
|
|
666
|
-
});
|
|
667
|
-
};
|
|
668
|
-
};
|
|
669
|
-
}) | ({
|
|
670
|
-
type: "Slice";
|
|
671
|
-
} & {
|
|
672
|
-
fieldset?: string | null | undefined;
|
|
673
|
-
description?: string;
|
|
674
|
-
icon?: string;
|
|
675
|
-
display?: string;
|
|
676
|
-
"non-repeat"?: {
|
|
677
|
-
[x: string]: ({
|
|
678
|
-
type: "Boolean";
|
|
679
|
-
} & {
|
|
680
|
-
config?: {
|
|
681
|
-
label?: string | null | undefined;
|
|
682
|
-
default_value?: boolean;
|
|
683
|
-
placeholder_true?: string;
|
|
684
|
-
placeholder_false?: string;
|
|
685
|
-
};
|
|
686
|
-
}) | ({
|
|
687
|
-
type: "Color";
|
|
688
|
-
} & {
|
|
689
|
-
fieldset?: string | null | undefined;
|
|
690
|
-
config?: {
|
|
691
|
-
label?: string | null | undefined;
|
|
692
|
-
placeholder?: string;
|
|
693
|
-
};
|
|
694
|
-
}) | ({
|
|
695
|
-
type: "Date";
|
|
696
|
-
} & {
|
|
697
|
-
fieldset?: string | null | undefined;
|
|
698
|
-
config?: {
|
|
699
|
-
label?: string | null | undefined;
|
|
700
|
-
placeholder?: string;
|
|
701
|
-
default?: string;
|
|
702
|
-
};
|
|
703
|
-
}) | ({
|
|
704
|
-
type: "Embed";
|
|
705
|
-
} & {
|
|
706
|
-
fieldset?: string | null | undefined;
|
|
707
|
-
config?: {
|
|
708
|
-
label?: string | null | undefined;
|
|
709
|
-
placeholder?: string;
|
|
710
|
-
useAsTitle?: boolean;
|
|
711
|
-
};
|
|
712
|
-
}) | ({
|
|
713
|
-
type: "GeoPoint";
|
|
714
|
-
} & {
|
|
715
|
-
fieldset?: string | null | undefined;
|
|
716
|
-
config?: {
|
|
717
|
-
label?: string | null | undefined;
|
|
718
|
-
};
|
|
719
|
-
}) | ({
|
|
720
|
-
type: "Image";
|
|
721
|
-
} & {
|
|
722
|
-
fieldset?: string | null | undefined;
|
|
723
|
-
config?: {
|
|
724
|
-
label?: string | null | undefined;
|
|
725
|
-
placeholder?: string;
|
|
726
|
-
constraint?: {
|
|
727
|
-
width?: number | null;
|
|
728
|
-
height?: number | null;
|
|
336
|
+
icon?: string;
|
|
337
|
+
display?: string;
|
|
338
|
+
"non-repeat"?: {
|
|
339
|
+
[x: string]: ({
|
|
340
|
+
type: "Boolean";
|
|
341
|
+
} & {
|
|
342
|
+
config?: {
|
|
343
|
+
label?: string | null | undefined;
|
|
344
|
+
default_value?: boolean;
|
|
345
|
+
placeholder_true?: string;
|
|
346
|
+
placeholder_false?: string;
|
|
347
|
+
};
|
|
348
|
+
}) | ({
|
|
349
|
+
type: "Color";
|
|
350
|
+
} & {
|
|
351
|
+
fieldset?: string | null | undefined;
|
|
352
|
+
config?: {
|
|
353
|
+
label?: string | null | undefined;
|
|
354
|
+
placeholder?: string;
|
|
355
|
+
};
|
|
356
|
+
}) | ({
|
|
357
|
+
type: "Date";
|
|
358
|
+
} & {
|
|
359
|
+
fieldset?: string | null | undefined;
|
|
360
|
+
config?: {
|
|
361
|
+
label?: string | null | undefined;
|
|
362
|
+
placeholder?: string;
|
|
363
|
+
default?: string;
|
|
364
|
+
};
|
|
365
|
+
}) | ({
|
|
366
|
+
type: "Embed";
|
|
367
|
+
} & {
|
|
368
|
+
fieldset?: string | null | undefined;
|
|
369
|
+
config?: {
|
|
370
|
+
label?: string | null | undefined;
|
|
371
|
+
placeholder?: string;
|
|
372
|
+
useAsTitle?: boolean;
|
|
373
|
+
};
|
|
374
|
+
}) | ({
|
|
375
|
+
type: "GeoPoint";
|
|
376
|
+
} & {
|
|
377
|
+
fieldset?: string | null | undefined;
|
|
378
|
+
config?: {
|
|
379
|
+
label?: string | null | undefined;
|
|
380
|
+
};
|
|
381
|
+
}) | ({
|
|
382
|
+
type: "Image";
|
|
383
|
+
} & {
|
|
384
|
+
fieldset?: string | null | undefined;
|
|
385
|
+
config?: {
|
|
386
|
+
label?: string | null | undefined;
|
|
387
|
+
placeholder?: string;
|
|
388
|
+
constraint?: {
|
|
389
|
+
width?: number | null;
|
|
390
|
+
height?: number | null;
|
|
729
391
|
};
|
|
730
392
|
thumbnails?: readonly ({
|
|
731
393
|
name: string;
|
|
@@ -1164,176 +826,7 @@ export declare const StaticSection: t.RecordC<t.Type<string, string, unknown>, t
|
|
|
1164
826
|
placeholder?: string;
|
|
1165
827
|
default?: string;
|
|
1166
828
|
};
|
|
1167
|
-
}) | (
|
|
1168
|
-
type: "Group";
|
|
1169
|
-
} & {
|
|
1170
|
-
fieldset?: string | null | undefined;
|
|
1171
|
-
icon?: string;
|
|
1172
|
-
description?: string;
|
|
1173
|
-
config?: {
|
|
1174
|
-
label?: string | null | undefined;
|
|
1175
|
-
repeat?: boolean;
|
|
1176
|
-
fields?: {
|
|
1177
|
-
[x: string]: ({
|
|
1178
|
-
type: "Boolean";
|
|
1179
|
-
} & {
|
|
1180
|
-
config?: {
|
|
1181
|
-
label?: string | null | undefined;
|
|
1182
|
-
default_value?: boolean;
|
|
1183
|
-
placeholder_true?: string;
|
|
1184
|
-
placeholder_false?: string;
|
|
1185
|
-
};
|
|
1186
|
-
}) | ({
|
|
1187
|
-
type: "Color";
|
|
1188
|
-
} & {
|
|
1189
|
-
fieldset?: string | null | undefined;
|
|
1190
|
-
config?: {
|
|
1191
|
-
label?: string | null | undefined;
|
|
1192
|
-
placeholder?: string;
|
|
1193
|
-
};
|
|
1194
|
-
}) | ({
|
|
1195
|
-
type: "Date";
|
|
1196
|
-
} & {
|
|
1197
|
-
fieldset?: string | null | undefined;
|
|
1198
|
-
config?: {
|
|
1199
|
-
label?: string | null | undefined;
|
|
1200
|
-
placeholder?: string;
|
|
1201
|
-
default?: string;
|
|
1202
|
-
};
|
|
1203
|
-
}) | ({
|
|
1204
|
-
type: "Embed";
|
|
1205
|
-
} & {
|
|
1206
|
-
fieldset?: string | null | undefined;
|
|
1207
|
-
config?: {
|
|
1208
|
-
label?: string | null | undefined;
|
|
1209
|
-
placeholder?: string;
|
|
1210
|
-
useAsTitle?: boolean;
|
|
1211
|
-
};
|
|
1212
|
-
}) | ({
|
|
1213
|
-
type: "GeoPoint";
|
|
1214
|
-
} & {
|
|
1215
|
-
fieldset?: string | null | undefined;
|
|
1216
|
-
config?: {
|
|
1217
|
-
label?: string | null | undefined;
|
|
1218
|
-
};
|
|
1219
|
-
}) | ({
|
|
1220
|
-
type: "Image";
|
|
1221
|
-
} & {
|
|
1222
|
-
fieldset?: string | null | undefined;
|
|
1223
|
-
config?: {
|
|
1224
|
-
label?: string | null | undefined;
|
|
1225
|
-
placeholder?: string;
|
|
1226
|
-
constraint?: {
|
|
1227
|
-
width?: number | null;
|
|
1228
|
-
height?: number | null;
|
|
1229
|
-
};
|
|
1230
|
-
thumbnails?: readonly ({
|
|
1231
|
-
name: string;
|
|
1232
|
-
} & {
|
|
1233
|
-
width?: number | null;
|
|
1234
|
-
height?: number | null;
|
|
1235
|
-
})[];
|
|
1236
|
-
};
|
|
1237
|
-
}) | ({
|
|
1238
|
-
type: "IntegrationFields";
|
|
1239
|
-
} & {
|
|
1240
|
-
fieldset?: string | null | undefined;
|
|
1241
|
-
config?: {
|
|
1242
|
-
label?: string | null | undefined;
|
|
1243
|
-
placeholder?: string;
|
|
1244
|
-
catalog?: string;
|
|
1245
|
-
};
|
|
1246
|
-
}) | ({
|
|
1247
|
-
type: "Link";
|
|
1248
|
-
} & {
|
|
1249
|
-
fieldset?: string | null | undefined;
|
|
1250
|
-
config?: {
|
|
1251
|
-
label?: string | null | undefined;
|
|
1252
|
-
useAsTitle?: boolean;
|
|
1253
|
-
placeholder?: string;
|
|
1254
|
-
select?: "media" | "document" | "web" | null;
|
|
1255
|
-
customtypes?: readonly string[];
|
|
1256
|
-
masks?: readonly string[];
|
|
1257
|
-
tags?: readonly string[];
|
|
1258
|
-
allowTargetBlank?: boolean;
|
|
1259
|
-
};
|
|
1260
|
-
}) | ({
|
|
1261
|
-
type: "Number";
|
|
1262
|
-
} & {
|
|
1263
|
-
fieldset?: string | null | undefined;
|
|
1264
|
-
config?: {
|
|
1265
|
-
label?: string | null | undefined;
|
|
1266
|
-
placeholder?: string;
|
|
1267
|
-
min?: number;
|
|
1268
|
-
max?: number;
|
|
1269
|
-
step?: number;
|
|
1270
|
-
};
|
|
1271
|
-
}) | ({
|
|
1272
|
-
type: "Range";
|
|
1273
|
-
} & {
|
|
1274
|
-
fieldset?: string | null | undefined;
|
|
1275
|
-
config?: {
|
|
1276
|
-
label?: string | null | undefined;
|
|
1277
|
-
placeholder?: string;
|
|
1278
|
-
min?: number;
|
|
1279
|
-
max?: number;
|
|
1280
|
-
step?: number;
|
|
1281
|
-
};
|
|
1282
|
-
}) | ({
|
|
1283
|
-
type: "StructuredText";
|
|
1284
|
-
} & {
|
|
1285
|
-
fieldset?: string | null | undefined;
|
|
1286
|
-
config?: {
|
|
1287
|
-
label?: string | null | undefined;
|
|
1288
|
-
placeholder?: string;
|
|
1289
|
-
useAsTitle?: boolean;
|
|
1290
|
-
single?: string;
|
|
1291
|
-
multi?: string;
|
|
1292
|
-
imageConstraint?: {
|
|
1293
|
-
width?: number | null;
|
|
1294
|
-
height?: number | null;
|
|
1295
|
-
};
|
|
1296
|
-
labels?: readonly string[];
|
|
1297
|
-
allowTargetBlank?: boolean;
|
|
1298
|
-
};
|
|
1299
|
-
}) | ({
|
|
1300
|
-
type: "Select";
|
|
1301
|
-
} & {
|
|
1302
|
-
fieldset?: string | null | undefined;
|
|
1303
|
-
config?: {
|
|
1304
|
-
label?: string | null | undefined;
|
|
1305
|
-
placeholder?: string;
|
|
1306
|
-
default_value?: string;
|
|
1307
|
-
options?: readonly string[];
|
|
1308
|
-
};
|
|
1309
|
-
}) | ({
|
|
1310
|
-
type: "Separator";
|
|
1311
|
-
} & {
|
|
1312
|
-
config?: {
|
|
1313
|
-
label?: string | null | undefined;
|
|
1314
|
-
};
|
|
1315
|
-
}) | ({
|
|
1316
|
-
type: "Text";
|
|
1317
|
-
} & {
|
|
1318
|
-
fieldset?: string | null | undefined;
|
|
1319
|
-
config?: {
|
|
1320
|
-
label?: string | null | undefined;
|
|
1321
|
-
useAsTitle?: boolean;
|
|
1322
|
-
placeholder?: string;
|
|
1323
|
-
};
|
|
1324
|
-
}) | ({
|
|
1325
|
-
type: "Timestamp";
|
|
1326
|
-
} & {
|
|
1327
|
-
fieldset?: string | null | undefined;
|
|
1328
|
-
config?: {
|
|
1329
|
-
label?: string | null | undefined;
|
|
1330
|
-
placeholder?: string;
|
|
1331
|
-
default?: string;
|
|
1332
|
-
};
|
|
1333
|
-
});
|
|
1334
|
-
};
|
|
1335
|
-
};
|
|
1336
|
-
});
|
|
829
|
+
}) | import("./widgets").Group;
|
|
1337
830
|
};
|
|
1338
831
|
items?: {
|
|
1339
832
|
[x: string]: ({
|
|
@@ -1670,16 +1163,20 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
1670
1163
|
placeholder?: string;
|
|
1671
1164
|
default?: string;
|
|
1672
1165
|
};
|
|
1673
|
-
}) | ({
|
|
1674
|
-
type: "
|
|
1166
|
+
}) | import("./widgets").Group | ({
|
|
1167
|
+
type: "Choice" | "Slices";
|
|
1675
1168
|
} & {
|
|
1676
1169
|
fieldset?: string | null | undefined;
|
|
1677
|
-
icon?: string;
|
|
1678
|
-
description?: string;
|
|
1679
1170
|
config?: {
|
|
1680
1171
|
label?: string | null | undefined;
|
|
1681
|
-
|
|
1682
|
-
|
|
1172
|
+
labels?: {
|
|
1173
|
+
[x: string]: readonly ({
|
|
1174
|
+
name: string;
|
|
1175
|
+
} & {
|
|
1176
|
+
display?: string;
|
|
1177
|
+
})[];
|
|
1178
|
+
} | null;
|
|
1179
|
+
choices?: {
|
|
1683
1180
|
[x: string]: ({
|
|
1684
1181
|
type: "Boolean";
|
|
1685
1182
|
} & {
|
|
@@ -1836,349 +1333,7 @@ export declare const DynamicSection: t.RecordC<t.Type<string, string, unknown>,
|
|
|
1836
1333
|
placeholder?: string;
|
|
1837
1334
|
default?: string;
|
|
1838
1335
|
};
|
|
1839
|
-
})
|
|
1840
|
-
};
|
|
1841
|
-
};
|
|
1842
|
-
}) | ({
|
|
1843
|
-
type: "Choice" | "Slices";
|
|
1844
|
-
} & {
|
|
1845
|
-
fieldset?: string | null | undefined;
|
|
1846
|
-
config?: {
|
|
1847
|
-
label?: string | null | undefined;
|
|
1848
|
-
labels?: {
|
|
1849
|
-
[x: string]: readonly ({
|
|
1850
|
-
name: string;
|
|
1851
|
-
} & {
|
|
1852
|
-
display?: string;
|
|
1853
|
-
})[];
|
|
1854
|
-
} | null;
|
|
1855
|
-
choices?: {
|
|
1856
|
-
[x: string]: ({
|
|
1857
|
-
type: "Boolean";
|
|
1858
|
-
} & {
|
|
1859
|
-
config?: {
|
|
1860
|
-
label?: string | null | undefined;
|
|
1861
|
-
default_value?: boolean;
|
|
1862
|
-
placeholder_true?: string;
|
|
1863
|
-
placeholder_false?: string;
|
|
1864
|
-
};
|
|
1865
|
-
}) | ({
|
|
1866
|
-
type: "Color";
|
|
1867
|
-
} & {
|
|
1868
|
-
fieldset?: string | null | undefined;
|
|
1869
|
-
config?: {
|
|
1870
|
-
label?: string | null | undefined;
|
|
1871
|
-
placeholder?: string;
|
|
1872
|
-
};
|
|
1873
|
-
}) | ({
|
|
1874
|
-
type: "Date";
|
|
1875
|
-
} & {
|
|
1876
|
-
fieldset?: string | null | undefined;
|
|
1877
|
-
config?: {
|
|
1878
|
-
label?: string | null | undefined;
|
|
1879
|
-
placeholder?: string;
|
|
1880
|
-
default?: string;
|
|
1881
|
-
};
|
|
1882
|
-
}) | ({
|
|
1883
|
-
type: "Embed";
|
|
1884
|
-
} & {
|
|
1885
|
-
fieldset?: string | null | undefined;
|
|
1886
|
-
config?: {
|
|
1887
|
-
label?: string | null | undefined;
|
|
1888
|
-
placeholder?: string;
|
|
1889
|
-
useAsTitle?: boolean;
|
|
1890
|
-
};
|
|
1891
|
-
}) | ({
|
|
1892
|
-
type: "GeoPoint";
|
|
1893
|
-
} & {
|
|
1894
|
-
fieldset?: string | null | undefined;
|
|
1895
|
-
config?: {
|
|
1896
|
-
label?: string | null | undefined;
|
|
1897
|
-
};
|
|
1898
|
-
}) | ({
|
|
1899
|
-
type: "Image";
|
|
1900
|
-
} & {
|
|
1901
|
-
fieldset?: string | null | undefined;
|
|
1902
|
-
config?: {
|
|
1903
|
-
label?: string | null | undefined;
|
|
1904
|
-
placeholder?: string;
|
|
1905
|
-
constraint?: {
|
|
1906
|
-
width?: number | null;
|
|
1907
|
-
height?: number | null;
|
|
1908
|
-
};
|
|
1909
|
-
thumbnails?: readonly ({
|
|
1910
|
-
name: string;
|
|
1911
|
-
} & {
|
|
1912
|
-
width?: number | null;
|
|
1913
|
-
height?: number | null;
|
|
1914
|
-
})[];
|
|
1915
|
-
};
|
|
1916
|
-
}) | ({
|
|
1917
|
-
type: "IntegrationFields";
|
|
1918
|
-
} & {
|
|
1919
|
-
fieldset?: string | null | undefined;
|
|
1920
|
-
config?: {
|
|
1921
|
-
label?: string | null | undefined;
|
|
1922
|
-
placeholder?: string;
|
|
1923
|
-
catalog?: string;
|
|
1924
|
-
};
|
|
1925
|
-
}) | ({
|
|
1926
|
-
type: "Link";
|
|
1927
|
-
} & {
|
|
1928
|
-
fieldset?: string | null | undefined;
|
|
1929
|
-
config?: {
|
|
1930
|
-
label?: string | null | undefined;
|
|
1931
|
-
useAsTitle?: boolean;
|
|
1932
|
-
placeholder?: string;
|
|
1933
|
-
select?: "media" | "document" | "web" | null;
|
|
1934
|
-
customtypes?: readonly string[];
|
|
1935
|
-
masks?: readonly string[];
|
|
1936
|
-
tags?: readonly string[];
|
|
1937
|
-
allowTargetBlank?: boolean;
|
|
1938
|
-
};
|
|
1939
|
-
}) | ({
|
|
1940
|
-
type: "Number";
|
|
1941
|
-
} & {
|
|
1942
|
-
fieldset?: string | null | undefined;
|
|
1943
|
-
config?: {
|
|
1944
|
-
label?: string | null | undefined;
|
|
1945
|
-
placeholder?: string;
|
|
1946
|
-
min?: number;
|
|
1947
|
-
max?: number;
|
|
1948
|
-
step?: number;
|
|
1949
|
-
};
|
|
1950
|
-
}) | ({
|
|
1951
|
-
type: "Range";
|
|
1952
|
-
} & {
|
|
1953
|
-
fieldset?: string | null | undefined;
|
|
1954
|
-
config?: {
|
|
1955
|
-
label?: string | null | undefined;
|
|
1956
|
-
placeholder?: string;
|
|
1957
|
-
min?: number;
|
|
1958
|
-
max?: number;
|
|
1959
|
-
step?: number;
|
|
1960
|
-
};
|
|
1961
|
-
}) | ({
|
|
1962
|
-
type: "StructuredText";
|
|
1963
|
-
} & {
|
|
1964
|
-
fieldset?: string | null | undefined;
|
|
1965
|
-
config?: {
|
|
1966
|
-
label?: string | null | undefined;
|
|
1967
|
-
placeholder?: string;
|
|
1968
|
-
useAsTitle?: boolean;
|
|
1969
|
-
single?: string;
|
|
1970
|
-
multi?: string;
|
|
1971
|
-
imageConstraint?: {
|
|
1972
|
-
width?: number | null;
|
|
1973
|
-
height?: number | null;
|
|
1974
|
-
};
|
|
1975
|
-
labels?: readonly string[];
|
|
1976
|
-
allowTargetBlank?: boolean;
|
|
1977
|
-
};
|
|
1978
|
-
}) | ({
|
|
1979
|
-
type: "Select";
|
|
1980
|
-
} & {
|
|
1981
|
-
fieldset?: string | null | undefined;
|
|
1982
|
-
config?: {
|
|
1983
|
-
label?: string | null | undefined;
|
|
1984
|
-
placeholder?: string;
|
|
1985
|
-
default_value?: string;
|
|
1986
|
-
options?: readonly string[];
|
|
1987
|
-
};
|
|
1988
|
-
}) | ({
|
|
1989
|
-
type: "Separator";
|
|
1990
|
-
} & {
|
|
1991
|
-
config?: {
|
|
1992
|
-
label?: string | null | undefined;
|
|
1993
|
-
};
|
|
1994
|
-
}) | ({
|
|
1995
|
-
type: "Text";
|
|
1996
|
-
} & {
|
|
1997
|
-
fieldset?: string | null | undefined;
|
|
1998
|
-
config?: {
|
|
1999
|
-
label?: string | null | undefined;
|
|
2000
|
-
useAsTitle?: boolean;
|
|
2001
|
-
placeholder?: string;
|
|
2002
|
-
};
|
|
2003
|
-
}) | ({
|
|
2004
|
-
type: "Timestamp";
|
|
2005
|
-
} & {
|
|
2006
|
-
fieldset?: string | null | undefined;
|
|
2007
|
-
config?: {
|
|
2008
|
-
label?: string | null | undefined;
|
|
2009
|
-
placeholder?: string;
|
|
2010
|
-
default?: string;
|
|
2011
|
-
};
|
|
2012
|
-
}) | ({
|
|
2013
|
-
type: "Group";
|
|
2014
|
-
} & {
|
|
2015
|
-
fieldset?: string | null | undefined;
|
|
2016
|
-
icon?: string;
|
|
2017
|
-
description?: string;
|
|
2018
|
-
config?: {
|
|
2019
|
-
label?: string | null | undefined;
|
|
2020
|
-
repeat?: boolean;
|
|
2021
|
-
fields?: {
|
|
2022
|
-
[x: string]: ({
|
|
2023
|
-
type: "Boolean";
|
|
2024
|
-
} & {
|
|
2025
|
-
config?: {
|
|
2026
|
-
label?: string | null | undefined;
|
|
2027
|
-
default_value?: boolean;
|
|
2028
|
-
placeholder_true?: string;
|
|
2029
|
-
placeholder_false?: string;
|
|
2030
|
-
};
|
|
2031
|
-
}) | ({
|
|
2032
|
-
type: "Color";
|
|
2033
|
-
} & {
|
|
2034
|
-
fieldset?: string | null | undefined;
|
|
2035
|
-
config?: {
|
|
2036
|
-
label?: string | null | undefined;
|
|
2037
|
-
placeholder?: string;
|
|
2038
|
-
};
|
|
2039
|
-
}) | ({
|
|
2040
|
-
type: "Date";
|
|
2041
|
-
} & {
|
|
2042
|
-
fieldset?: string | null | undefined;
|
|
2043
|
-
config?: {
|
|
2044
|
-
label?: string | null | undefined;
|
|
2045
|
-
placeholder?: string;
|
|
2046
|
-
default?: string;
|
|
2047
|
-
};
|
|
2048
|
-
}) | ({
|
|
2049
|
-
type: "Embed";
|
|
2050
|
-
} & {
|
|
2051
|
-
fieldset?: string | null | undefined;
|
|
2052
|
-
config?: {
|
|
2053
|
-
label?: string | null | undefined;
|
|
2054
|
-
placeholder?: string;
|
|
2055
|
-
useAsTitle?: boolean;
|
|
2056
|
-
};
|
|
2057
|
-
}) | ({
|
|
2058
|
-
type: "GeoPoint";
|
|
2059
|
-
} & {
|
|
2060
|
-
fieldset?: string | null | undefined;
|
|
2061
|
-
config?: {
|
|
2062
|
-
label?: string | null | undefined;
|
|
2063
|
-
};
|
|
2064
|
-
}) | ({
|
|
2065
|
-
type: "Image";
|
|
2066
|
-
} & {
|
|
2067
|
-
fieldset?: string | null | undefined;
|
|
2068
|
-
config?: {
|
|
2069
|
-
label?: string | null | undefined;
|
|
2070
|
-
placeholder?: string;
|
|
2071
|
-
constraint?: {
|
|
2072
|
-
width?: number | null;
|
|
2073
|
-
height?: number | null;
|
|
2074
|
-
};
|
|
2075
|
-
thumbnails?: readonly ({
|
|
2076
|
-
name: string;
|
|
2077
|
-
} & {
|
|
2078
|
-
width?: number | null;
|
|
2079
|
-
height?: number | null;
|
|
2080
|
-
})[];
|
|
2081
|
-
};
|
|
2082
|
-
}) | ({
|
|
2083
|
-
type: "IntegrationFields";
|
|
2084
|
-
} & {
|
|
2085
|
-
fieldset?: string | null | undefined;
|
|
2086
|
-
config?: {
|
|
2087
|
-
label?: string | null | undefined;
|
|
2088
|
-
placeholder?: string;
|
|
2089
|
-
catalog?: string;
|
|
2090
|
-
};
|
|
2091
|
-
}) | ({
|
|
2092
|
-
type: "Link";
|
|
2093
|
-
} & {
|
|
2094
|
-
fieldset?: string | null | undefined;
|
|
2095
|
-
config?: {
|
|
2096
|
-
label?: string | null | undefined;
|
|
2097
|
-
useAsTitle?: boolean;
|
|
2098
|
-
placeholder?: string;
|
|
2099
|
-
select?: "media" | "document" | "web" | null;
|
|
2100
|
-
customtypes?: readonly string[];
|
|
2101
|
-
masks?: readonly string[];
|
|
2102
|
-
tags?: readonly string[];
|
|
2103
|
-
allowTargetBlank?: boolean;
|
|
2104
|
-
};
|
|
2105
|
-
}) | ({
|
|
2106
|
-
type: "Number";
|
|
2107
|
-
} & {
|
|
2108
|
-
fieldset?: string | null | undefined;
|
|
2109
|
-
config?: {
|
|
2110
|
-
label?: string | null | undefined;
|
|
2111
|
-
placeholder?: string;
|
|
2112
|
-
min?: number;
|
|
2113
|
-
max?: number;
|
|
2114
|
-
step?: number;
|
|
2115
|
-
};
|
|
2116
|
-
}) | ({
|
|
2117
|
-
type: "Range";
|
|
2118
|
-
} & {
|
|
2119
|
-
fieldset?: string | null | undefined;
|
|
2120
|
-
config?: {
|
|
2121
|
-
label?: string | null | undefined;
|
|
2122
|
-
placeholder?: string;
|
|
2123
|
-
min?: number;
|
|
2124
|
-
max?: number;
|
|
2125
|
-
step?: number;
|
|
2126
|
-
};
|
|
2127
|
-
}) | ({
|
|
2128
|
-
type: "StructuredText";
|
|
2129
|
-
} & {
|
|
2130
|
-
fieldset?: string | null | undefined;
|
|
2131
|
-
config?: {
|
|
2132
|
-
label?: string | null | undefined;
|
|
2133
|
-
placeholder?: string;
|
|
2134
|
-
useAsTitle?: boolean;
|
|
2135
|
-
single?: string;
|
|
2136
|
-
multi?: string;
|
|
2137
|
-
imageConstraint?: {
|
|
2138
|
-
width?: number | null;
|
|
2139
|
-
height?: number | null;
|
|
2140
|
-
};
|
|
2141
|
-
labels?: readonly string[];
|
|
2142
|
-
allowTargetBlank?: boolean;
|
|
2143
|
-
};
|
|
2144
|
-
}) | ({
|
|
2145
|
-
type: "Select";
|
|
2146
|
-
} & {
|
|
2147
|
-
fieldset?: string | null | undefined;
|
|
2148
|
-
config?: {
|
|
2149
|
-
label?: string | null | undefined;
|
|
2150
|
-
placeholder?: string;
|
|
2151
|
-
default_value?: string;
|
|
2152
|
-
options?: readonly string[];
|
|
2153
|
-
};
|
|
2154
|
-
}) | ({
|
|
2155
|
-
type: "Separator";
|
|
2156
|
-
} & {
|
|
2157
|
-
config?: {
|
|
2158
|
-
label?: string | null | undefined;
|
|
2159
|
-
};
|
|
2160
|
-
}) | ({
|
|
2161
|
-
type: "Text";
|
|
2162
|
-
} & {
|
|
2163
|
-
fieldset?: string | null | undefined;
|
|
2164
|
-
config?: {
|
|
2165
|
-
label?: string | null | undefined;
|
|
2166
|
-
useAsTitle?: boolean;
|
|
2167
|
-
placeholder?: string;
|
|
2168
|
-
};
|
|
2169
|
-
}) | ({
|
|
2170
|
-
type: "Timestamp";
|
|
2171
|
-
} & {
|
|
2172
|
-
fieldset?: string | null | undefined;
|
|
2173
|
-
config?: {
|
|
2174
|
-
label?: string | null | undefined;
|
|
2175
|
-
placeholder?: string;
|
|
2176
|
-
default?: string;
|
|
2177
|
-
};
|
|
2178
|
-
});
|
|
2179
|
-
};
|
|
2180
|
-
};
|
|
2181
|
-
}) | ({
|
|
1336
|
+
}) | import("./widgets").Group | ({
|
|
2182
1337
|
type: "Slice";
|
|
2183
1338
|
} & {
|
|
2184
1339
|
fieldset?: string | null | undefined;
|