@prismicio/types-internal 2.2.0-alpha.5 → 2.2.0-alpha.6

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.
@@ -1,4 +1,1342 @@
1
- import type { Asset } from "../../../../common";
1
+ import type { Asset, AssetId } from "../../../../common";
2
2
  import type { ImageContent } from "../../../../content";
3
3
  import type { ImportImage } from "../../../validators";
4
- export declare const imageConverter: (field: ImportImage["value"], assets: Record<string, Asset>) => ImageContent | undefined;
4
+ export declare const imageConverter: (imageField: ImportImage["value"], assets: Record<AssetId, Asset>, model?: ({
5
+ type: "Boolean";
6
+ } & {
7
+ config?: {
8
+ label?: string | null | undefined;
9
+ default_value?: boolean;
10
+ placeholder_true?: string;
11
+ placeholder_false?: string;
12
+ };
13
+ }) | ({
14
+ type: "Color";
15
+ } & {
16
+ fieldset?: string | null | undefined;
17
+ config?: {
18
+ label?: string | null | undefined;
19
+ placeholder?: string;
20
+ };
21
+ }) | ({
22
+ type: "Date";
23
+ } & {
24
+ fieldset?: string | null | undefined;
25
+ config?: {
26
+ label?: string | null | undefined;
27
+ placeholder?: string;
28
+ default?: string;
29
+ };
30
+ }) | ({
31
+ type: "Embed";
32
+ } & {
33
+ fieldset?: string | null | undefined;
34
+ config?: {
35
+ label?: string | null | undefined;
36
+ placeholder?: string;
37
+ useAsTitle?: boolean;
38
+ };
39
+ }) | ({
40
+ type: "GeoPoint";
41
+ } & {
42
+ fieldset?: string | null | undefined;
43
+ config?: {
44
+ label?: string | null | undefined;
45
+ };
46
+ }) | ({
47
+ type: "Image";
48
+ } & {
49
+ fieldset?: string | null | undefined;
50
+ config?: {
51
+ label?: string | null | undefined;
52
+ placeholder?: string;
53
+ constraint?: {
54
+ width?: number | null;
55
+ height?: number | null;
56
+ };
57
+ thumbnails?: readonly ({
58
+ name: string;
59
+ } & {
60
+ width?: number | null;
61
+ height?: number | null;
62
+ })[];
63
+ };
64
+ }) | ({
65
+ type: "IntegrationFields";
66
+ } & {
67
+ fieldset?: string | null | undefined;
68
+ config?: {
69
+ label?: string | null | undefined;
70
+ placeholder?: string;
71
+ catalog?: string;
72
+ };
73
+ }) | ({
74
+ type: "Link";
75
+ } & {
76
+ fieldset?: string | null | undefined;
77
+ config?: {
78
+ label?: string | null | undefined;
79
+ useAsTitle?: boolean;
80
+ placeholder?: string;
81
+ select?: "media" | "document" | "web" | null;
82
+ customtypes?: readonly string[];
83
+ masks?: readonly string[];
84
+ tags?: readonly string[];
85
+ allowTargetBlank?: boolean;
86
+ };
87
+ }) | ({
88
+ type: "Number";
89
+ } & {
90
+ fieldset?: string | null | undefined;
91
+ config?: {
92
+ label?: string | null | undefined;
93
+ placeholder?: string;
94
+ min?: number;
95
+ max?: number;
96
+ step?: number;
97
+ };
98
+ }) | ({
99
+ type: "Range";
100
+ } & {
101
+ fieldset?: string | null | undefined;
102
+ config?: {
103
+ label?: string | null | undefined;
104
+ placeholder?: string;
105
+ min?: number;
106
+ max?: number;
107
+ step?: number;
108
+ };
109
+ }) | ({
110
+ type: "StructuredText";
111
+ } & {
112
+ fieldset?: string | null | undefined;
113
+ config?: {
114
+ label?: string | null | undefined;
115
+ placeholder?: string;
116
+ useAsTitle?: boolean;
117
+ single?: string;
118
+ multi?: string;
119
+ imageConstraint?: {
120
+ width?: number | null;
121
+ height?: number | null;
122
+ };
123
+ labels?: readonly string[];
124
+ allowTargetBlank?: boolean;
125
+ };
126
+ }) | ({
127
+ type: "Select";
128
+ } & {
129
+ fieldset?: string | null | undefined;
130
+ config?: {
131
+ label?: string | null | undefined;
132
+ placeholder?: string;
133
+ default_value?: string;
134
+ options?: readonly string[];
135
+ };
136
+ }) | ({
137
+ type: "Separator";
138
+ } & {
139
+ config?: {
140
+ label?: string | null | undefined;
141
+ };
142
+ }) | ({
143
+ type: "Text";
144
+ } & {
145
+ fieldset?: string | null | undefined;
146
+ config?: {
147
+ label?: string | null | undefined;
148
+ useAsTitle?: boolean;
149
+ placeholder?: string;
150
+ };
151
+ }) | ({
152
+ type: "Timestamp";
153
+ } & {
154
+ fieldset?: string | null | undefined;
155
+ config?: {
156
+ label?: string | null | undefined;
157
+ placeholder?: string;
158
+ default?: string;
159
+ };
160
+ }) | ({
161
+ type: "Group";
162
+ } & {
163
+ fieldset?: string | null | undefined;
164
+ icon?: string;
165
+ description?: string;
166
+ config?: {
167
+ label?: string | null | undefined;
168
+ repeat?: boolean;
169
+ fields?: {
170
+ [x: string]: ({
171
+ type: "Boolean";
172
+ } & {
173
+ config?: {
174
+ label?: string | null | undefined;
175
+ default_value?: boolean;
176
+ placeholder_true?: string;
177
+ placeholder_false?: string;
178
+ };
179
+ }) | ({
180
+ type: "Color";
181
+ } & {
182
+ fieldset?: string | null | undefined;
183
+ config?: {
184
+ label?: string | null | undefined;
185
+ placeholder?: string;
186
+ };
187
+ }) | ({
188
+ type: "Date";
189
+ } & {
190
+ fieldset?: string | null | undefined;
191
+ config?: {
192
+ label?: string | null | undefined;
193
+ placeholder?: string;
194
+ default?: string;
195
+ };
196
+ }) | ({
197
+ type: "Embed";
198
+ } & {
199
+ fieldset?: string | null | undefined;
200
+ config?: {
201
+ label?: string | null | undefined;
202
+ placeholder?: string;
203
+ useAsTitle?: boolean;
204
+ };
205
+ }) | ({
206
+ type: "GeoPoint";
207
+ } & {
208
+ fieldset?: string | null | undefined;
209
+ config?: {
210
+ label?: string | null | undefined;
211
+ };
212
+ }) | ({
213
+ type: "Image";
214
+ } & {
215
+ fieldset?: string | null | undefined;
216
+ config?: {
217
+ label?: string | null | undefined;
218
+ placeholder?: string;
219
+ constraint?: {
220
+ width?: number | null;
221
+ height?: number | null;
222
+ };
223
+ thumbnails?: readonly ({
224
+ name: string;
225
+ } & {
226
+ width?: number | null;
227
+ height?: number | null;
228
+ })[];
229
+ };
230
+ }) | ({
231
+ type: "IntegrationFields";
232
+ } & {
233
+ fieldset?: string | null | undefined;
234
+ config?: {
235
+ label?: string | null | undefined;
236
+ placeholder?: string;
237
+ catalog?: string;
238
+ };
239
+ }) | ({
240
+ type: "Link";
241
+ } & {
242
+ fieldset?: string | null | undefined;
243
+ config?: {
244
+ label?: string | null | undefined;
245
+ useAsTitle?: boolean;
246
+ placeholder?: string;
247
+ select?: "media" | "document" | "web" | null;
248
+ customtypes?: readonly string[];
249
+ masks?: readonly string[];
250
+ tags?: readonly string[];
251
+ allowTargetBlank?: boolean;
252
+ };
253
+ }) | ({
254
+ type: "Number";
255
+ } & {
256
+ fieldset?: string | null | undefined;
257
+ config?: {
258
+ label?: string | null | undefined;
259
+ placeholder?: string;
260
+ min?: number;
261
+ max?: number;
262
+ step?: number;
263
+ };
264
+ }) | ({
265
+ type: "Range";
266
+ } & {
267
+ fieldset?: string | null | undefined;
268
+ config?: {
269
+ label?: string | null | undefined;
270
+ placeholder?: string;
271
+ min?: number;
272
+ max?: number;
273
+ step?: number;
274
+ };
275
+ }) | ({
276
+ type: "StructuredText";
277
+ } & {
278
+ fieldset?: string | null | undefined;
279
+ config?: {
280
+ label?: string | null | undefined;
281
+ placeholder?: string;
282
+ useAsTitle?: boolean;
283
+ single?: string;
284
+ multi?: string;
285
+ imageConstraint?: {
286
+ width?: number | null;
287
+ height?: number | null;
288
+ };
289
+ labels?: readonly string[];
290
+ allowTargetBlank?: boolean;
291
+ };
292
+ }) | ({
293
+ type: "Select";
294
+ } & {
295
+ fieldset?: string | null | undefined;
296
+ config?: {
297
+ label?: string | null | undefined;
298
+ placeholder?: string;
299
+ default_value?: string;
300
+ options?: readonly string[];
301
+ };
302
+ }) | ({
303
+ type: "Separator";
304
+ } & {
305
+ config?: {
306
+ label?: string | null | undefined;
307
+ };
308
+ }) | ({
309
+ type: "Text";
310
+ } & {
311
+ fieldset?: string | null | undefined;
312
+ config?: {
313
+ label?: string | null | undefined;
314
+ useAsTitle?: boolean;
315
+ placeholder?: string;
316
+ };
317
+ }) | ({
318
+ type: "Timestamp";
319
+ } & {
320
+ fieldset?: string | null | undefined;
321
+ config?: {
322
+ label?: string | null | undefined;
323
+ placeholder?: string;
324
+ default?: string;
325
+ };
326
+ });
327
+ };
328
+ };
329
+ }) | ({
330
+ type: "Choice" | "Slices";
331
+ } & {
332
+ fieldset?: string | null | undefined;
333
+ config?: {
334
+ label?: string | null | undefined;
335
+ labels?: {
336
+ [x: string]: readonly ({
337
+ name: string;
338
+ } & {
339
+ display?: string;
340
+ })[];
341
+ } | null;
342
+ choices?: {
343
+ [x: string]: ({
344
+ type: "Boolean";
345
+ } & {
346
+ config?: {
347
+ label?: string | null | undefined;
348
+ default_value?: boolean;
349
+ placeholder_true?: string;
350
+ placeholder_false?: string;
351
+ };
352
+ }) | ({
353
+ type: "Color";
354
+ } & {
355
+ fieldset?: string | null | undefined;
356
+ config?: {
357
+ label?: string | null | undefined;
358
+ placeholder?: string;
359
+ };
360
+ }) | ({
361
+ type: "Date";
362
+ } & {
363
+ fieldset?: string | null | undefined;
364
+ config?: {
365
+ label?: string | null | undefined;
366
+ placeholder?: string;
367
+ default?: string;
368
+ };
369
+ }) | ({
370
+ type: "Embed";
371
+ } & {
372
+ fieldset?: string | null | undefined;
373
+ config?: {
374
+ label?: string | null | undefined;
375
+ placeholder?: string;
376
+ useAsTitle?: boolean;
377
+ };
378
+ }) | ({
379
+ type: "GeoPoint";
380
+ } & {
381
+ fieldset?: string | null | undefined;
382
+ config?: {
383
+ label?: string | null | undefined;
384
+ };
385
+ }) | ({
386
+ type: "Image";
387
+ } & {
388
+ fieldset?: string | null | undefined;
389
+ config?: {
390
+ label?: string | null | undefined;
391
+ placeholder?: string;
392
+ constraint?: {
393
+ width?: number | null;
394
+ height?: number | null;
395
+ };
396
+ thumbnails?: readonly ({
397
+ name: string;
398
+ } & {
399
+ width?: number | null;
400
+ height?: number | null;
401
+ })[];
402
+ };
403
+ }) | ({
404
+ type: "IntegrationFields";
405
+ } & {
406
+ fieldset?: string | null | undefined;
407
+ config?: {
408
+ label?: string | null | undefined;
409
+ placeholder?: string;
410
+ catalog?: string;
411
+ };
412
+ }) | ({
413
+ type: "Link";
414
+ } & {
415
+ fieldset?: string | null | undefined;
416
+ config?: {
417
+ label?: string | null | undefined;
418
+ useAsTitle?: boolean;
419
+ placeholder?: string;
420
+ select?: "media" | "document" | "web" | null;
421
+ customtypes?: readonly string[];
422
+ masks?: readonly string[];
423
+ tags?: readonly string[];
424
+ allowTargetBlank?: boolean;
425
+ };
426
+ }) | ({
427
+ type: "Number";
428
+ } & {
429
+ fieldset?: string | null | undefined;
430
+ config?: {
431
+ label?: string | null | undefined;
432
+ placeholder?: string;
433
+ min?: number;
434
+ max?: number;
435
+ step?: number;
436
+ };
437
+ }) | ({
438
+ type: "Range";
439
+ } & {
440
+ fieldset?: string | null | undefined;
441
+ config?: {
442
+ label?: string | null | undefined;
443
+ placeholder?: string;
444
+ min?: number;
445
+ max?: number;
446
+ step?: number;
447
+ };
448
+ }) | ({
449
+ type: "StructuredText";
450
+ } & {
451
+ fieldset?: string | null | undefined;
452
+ config?: {
453
+ label?: string | null | undefined;
454
+ placeholder?: string;
455
+ useAsTitle?: boolean;
456
+ single?: string;
457
+ multi?: string;
458
+ imageConstraint?: {
459
+ width?: number | null;
460
+ height?: number | null;
461
+ };
462
+ labels?: readonly string[];
463
+ allowTargetBlank?: boolean;
464
+ };
465
+ }) | ({
466
+ type: "Select";
467
+ } & {
468
+ fieldset?: string | null | undefined;
469
+ config?: {
470
+ label?: string | null | undefined;
471
+ placeholder?: string;
472
+ default_value?: string;
473
+ options?: readonly string[];
474
+ };
475
+ }) | ({
476
+ type: "Separator";
477
+ } & {
478
+ config?: {
479
+ label?: string | null | undefined;
480
+ };
481
+ }) | ({
482
+ type: "Text";
483
+ } & {
484
+ fieldset?: string | null | undefined;
485
+ config?: {
486
+ label?: string | null | undefined;
487
+ useAsTitle?: boolean;
488
+ placeholder?: string;
489
+ };
490
+ }) | ({
491
+ type: "Timestamp";
492
+ } & {
493
+ fieldset?: string | null | undefined;
494
+ config?: {
495
+ label?: string | null | undefined;
496
+ placeholder?: string;
497
+ default?: string;
498
+ };
499
+ }) | ({
500
+ type: "Group";
501
+ } & {
502
+ fieldset?: string | null | undefined;
503
+ icon?: string;
504
+ description?: string;
505
+ config?: {
506
+ label?: string | null | undefined;
507
+ repeat?: boolean;
508
+ fields?: {
509
+ [x: string]: ({
510
+ type: "Boolean";
511
+ } & {
512
+ config?: {
513
+ label?: string | null | undefined;
514
+ default_value?: boolean;
515
+ placeholder_true?: string;
516
+ placeholder_false?: string;
517
+ };
518
+ }) | ({
519
+ type: "Color";
520
+ } & {
521
+ fieldset?: string | null | undefined;
522
+ config?: {
523
+ label?: string | null | undefined;
524
+ placeholder?: string;
525
+ };
526
+ }) | ({
527
+ type: "Date";
528
+ } & {
529
+ fieldset?: string | null | undefined;
530
+ config?: {
531
+ label?: string | null | undefined;
532
+ placeholder?: string;
533
+ default?: string;
534
+ };
535
+ }) | ({
536
+ type: "Embed";
537
+ } & {
538
+ fieldset?: string | null | undefined;
539
+ config?: {
540
+ label?: string | null | undefined;
541
+ placeholder?: string;
542
+ useAsTitle?: boolean;
543
+ };
544
+ }) | ({
545
+ type: "GeoPoint";
546
+ } & {
547
+ fieldset?: string | null | undefined;
548
+ config?: {
549
+ label?: string | null | undefined;
550
+ };
551
+ }) | ({
552
+ type: "Image";
553
+ } & {
554
+ fieldset?: string | null | undefined;
555
+ config?: {
556
+ label?: string | null | undefined;
557
+ placeholder?: string;
558
+ constraint?: {
559
+ width?: number | null;
560
+ height?: number | null;
561
+ };
562
+ thumbnails?: readonly ({
563
+ name: string;
564
+ } & {
565
+ width?: number | null;
566
+ height?: number | null;
567
+ })[];
568
+ };
569
+ }) | ({
570
+ type: "IntegrationFields";
571
+ } & {
572
+ fieldset?: string | null | undefined;
573
+ config?: {
574
+ label?: string | null | undefined;
575
+ placeholder?: string;
576
+ catalog?: string;
577
+ };
578
+ }) | ({
579
+ type: "Link";
580
+ } & {
581
+ fieldset?: string | null | undefined;
582
+ config?: {
583
+ label?: string | null | undefined;
584
+ useAsTitle?: boolean;
585
+ placeholder?: string;
586
+ select?: "media" | "document" | "web" | null;
587
+ customtypes?: readonly string[];
588
+ masks?: readonly string[];
589
+ tags?: readonly string[];
590
+ allowTargetBlank?: boolean;
591
+ };
592
+ }) | ({
593
+ type: "Number";
594
+ } & {
595
+ fieldset?: string | null | undefined;
596
+ config?: {
597
+ label?: string | null | undefined;
598
+ placeholder?: string;
599
+ min?: number;
600
+ max?: number;
601
+ step?: number;
602
+ };
603
+ }) | ({
604
+ type: "Range";
605
+ } & {
606
+ fieldset?: string | null | undefined;
607
+ config?: {
608
+ label?: string | null | undefined;
609
+ placeholder?: string;
610
+ min?: number;
611
+ max?: number;
612
+ step?: number;
613
+ };
614
+ }) | ({
615
+ type: "StructuredText";
616
+ } & {
617
+ fieldset?: string | null | undefined;
618
+ config?: {
619
+ label?: string | null | undefined;
620
+ placeholder?: string;
621
+ useAsTitle?: boolean;
622
+ single?: string;
623
+ multi?: string;
624
+ imageConstraint?: {
625
+ width?: number | null;
626
+ height?: number | null;
627
+ };
628
+ labels?: readonly string[];
629
+ allowTargetBlank?: boolean;
630
+ };
631
+ }) | ({
632
+ type: "Select";
633
+ } & {
634
+ fieldset?: string | null | undefined;
635
+ config?: {
636
+ label?: string | null | undefined;
637
+ placeholder?: string;
638
+ default_value?: string;
639
+ options?: readonly string[];
640
+ };
641
+ }) | ({
642
+ type: "Separator";
643
+ } & {
644
+ config?: {
645
+ label?: string | null | undefined;
646
+ };
647
+ }) | ({
648
+ type: "Text";
649
+ } & {
650
+ fieldset?: string | null | undefined;
651
+ config?: {
652
+ label?: string | null | undefined;
653
+ useAsTitle?: boolean;
654
+ placeholder?: string;
655
+ };
656
+ }) | ({
657
+ type: "Timestamp";
658
+ } & {
659
+ fieldset?: string | null | undefined;
660
+ config?: {
661
+ label?: string | null | undefined;
662
+ placeholder?: string;
663
+ default?: string;
664
+ };
665
+ });
666
+ };
667
+ };
668
+ }) | ({
669
+ type: "Slice";
670
+ } & {
671
+ fieldset?: string | null | undefined;
672
+ description?: string;
673
+ icon?: string;
674
+ display?: string;
675
+ "non-repeat"?: {
676
+ [x: string]: ({
677
+ type: "Boolean";
678
+ } & {
679
+ config?: {
680
+ label?: string | null | undefined;
681
+ default_value?: boolean;
682
+ placeholder_true?: string;
683
+ placeholder_false?: string;
684
+ };
685
+ }) | ({
686
+ type: "Color";
687
+ } & {
688
+ fieldset?: string | null | undefined;
689
+ config?: {
690
+ label?: string | null | undefined;
691
+ placeholder?: string;
692
+ };
693
+ }) | ({
694
+ type: "Date";
695
+ } & {
696
+ fieldset?: string | null | undefined;
697
+ config?: {
698
+ label?: string | null | undefined;
699
+ placeholder?: string;
700
+ default?: string;
701
+ };
702
+ }) | ({
703
+ type: "Embed";
704
+ } & {
705
+ fieldset?: string | null | undefined;
706
+ config?: {
707
+ label?: string | null | undefined;
708
+ placeholder?: string;
709
+ useAsTitle?: boolean;
710
+ };
711
+ }) | ({
712
+ type: "GeoPoint";
713
+ } & {
714
+ fieldset?: string | null | undefined;
715
+ config?: {
716
+ label?: string | null | undefined;
717
+ };
718
+ }) | ({
719
+ type: "Image";
720
+ } & {
721
+ fieldset?: string | null | undefined;
722
+ config?: {
723
+ label?: string | null | undefined;
724
+ placeholder?: string;
725
+ constraint?: {
726
+ width?: number | null;
727
+ height?: number | null;
728
+ };
729
+ thumbnails?: readonly ({
730
+ name: string;
731
+ } & {
732
+ width?: number | null;
733
+ height?: number | null;
734
+ })[];
735
+ };
736
+ }) | ({
737
+ type: "IntegrationFields";
738
+ } & {
739
+ fieldset?: string | null | undefined;
740
+ config?: {
741
+ label?: string | null | undefined;
742
+ placeholder?: string;
743
+ catalog?: string;
744
+ };
745
+ }) | ({
746
+ type: "Link";
747
+ } & {
748
+ fieldset?: string | null | undefined;
749
+ config?: {
750
+ label?: string | null | undefined;
751
+ useAsTitle?: boolean;
752
+ placeholder?: string;
753
+ select?: "media" | "document" | "web" | null;
754
+ customtypes?: readonly string[];
755
+ masks?: readonly string[];
756
+ tags?: readonly string[];
757
+ allowTargetBlank?: boolean;
758
+ };
759
+ }) | ({
760
+ type: "Number";
761
+ } & {
762
+ fieldset?: string | null | undefined;
763
+ config?: {
764
+ label?: string | null | undefined;
765
+ placeholder?: string;
766
+ min?: number;
767
+ max?: number;
768
+ step?: number;
769
+ };
770
+ }) | ({
771
+ type: "Range";
772
+ } & {
773
+ fieldset?: string | null | undefined;
774
+ config?: {
775
+ label?: string | null | undefined;
776
+ placeholder?: string;
777
+ min?: number;
778
+ max?: number;
779
+ step?: number;
780
+ };
781
+ }) | ({
782
+ type: "StructuredText";
783
+ } & {
784
+ fieldset?: string | null | undefined;
785
+ config?: {
786
+ label?: string | null | undefined;
787
+ placeholder?: string;
788
+ useAsTitle?: boolean;
789
+ single?: string;
790
+ multi?: string;
791
+ imageConstraint?: {
792
+ width?: number | null;
793
+ height?: number | null;
794
+ };
795
+ labels?: readonly string[];
796
+ allowTargetBlank?: boolean;
797
+ };
798
+ }) | ({
799
+ type: "Select";
800
+ } & {
801
+ fieldset?: string | null | undefined;
802
+ config?: {
803
+ label?: string | null | undefined;
804
+ placeholder?: string;
805
+ default_value?: string;
806
+ options?: readonly string[];
807
+ };
808
+ }) | ({
809
+ type: "Separator";
810
+ } & {
811
+ config?: {
812
+ label?: string | null | undefined;
813
+ };
814
+ }) | ({
815
+ type: "Text";
816
+ } & {
817
+ fieldset?: string | null | undefined;
818
+ config?: {
819
+ label?: string | null | undefined;
820
+ useAsTitle?: boolean;
821
+ placeholder?: string;
822
+ };
823
+ }) | ({
824
+ type: "Timestamp";
825
+ } & {
826
+ fieldset?: string | null | undefined;
827
+ config?: {
828
+ label?: string | null | undefined;
829
+ placeholder?: string;
830
+ default?: string;
831
+ };
832
+ });
833
+ };
834
+ repeat?: {
835
+ [x: string]: ({
836
+ type: "Boolean";
837
+ } & {
838
+ config?: {
839
+ label?: string | null | undefined;
840
+ default_value?: boolean;
841
+ placeholder_true?: string;
842
+ placeholder_false?: string;
843
+ };
844
+ }) | ({
845
+ type: "Color";
846
+ } & {
847
+ fieldset?: string | null | undefined;
848
+ config?: {
849
+ label?: string | null | undefined;
850
+ placeholder?: string;
851
+ };
852
+ }) | ({
853
+ type: "Date";
854
+ } & {
855
+ fieldset?: string | null | undefined;
856
+ config?: {
857
+ label?: string | null | undefined;
858
+ placeholder?: string;
859
+ default?: string;
860
+ };
861
+ }) | ({
862
+ type: "Embed";
863
+ } & {
864
+ fieldset?: string | null | undefined;
865
+ config?: {
866
+ label?: string | null | undefined;
867
+ placeholder?: string;
868
+ useAsTitle?: boolean;
869
+ };
870
+ }) | ({
871
+ type: "GeoPoint";
872
+ } & {
873
+ fieldset?: string | null | undefined;
874
+ config?: {
875
+ label?: string | null | undefined;
876
+ };
877
+ }) | ({
878
+ type: "Image";
879
+ } & {
880
+ fieldset?: string | null | undefined;
881
+ config?: {
882
+ label?: string | null | undefined;
883
+ placeholder?: string;
884
+ constraint?: {
885
+ width?: number | null;
886
+ height?: number | null;
887
+ };
888
+ thumbnails?: readonly ({
889
+ name: string;
890
+ } & {
891
+ width?: number | null;
892
+ height?: number | null;
893
+ })[];
894
+ };
895
+ }) | ({
896
+ type: "IntegrationFields";
897
+ } & {
898
+ fieldset?: string | null | undefined;
899
+ config?: {
900
+ label?: string | null | undefined;
901
+ placeholder?: string;
902
+ catalog?: string;
903
+ };
904
+ }) | ({
905
+ type: "Link";
906
+ } & {
907
+ fieldset?: string | null | undefined;
908
+ config?: {
909
+ label?: string | null | undefined;
910
+ useAsTitle?: boolean;
911
+ placeholder?: string;
912
+ select?: "media" | "document" | "web" | null;
913
+ customtypes?: readonly string[];
914
+ masks?: readonly string[];
915
+ tags?: readonly string[];
916
+ allowTargetBlank?: boolean;
917
+ };
918
+ }) | ({
919
+ type: "Number";
920
+ } & {
921
+ fieldset?: string | null | undefined;
922
+ config?: {
923
+ label?: string | null | undefined;
924
+ placeholder?: string;
925
+ min?: number;
926
+ max?: number;
927
+ step?: number;
928
+ };
929
+ }) | ({
930
+ type: "Range";
931
+ } & {
932
+ fieldset?: string | null | undefined;
933
+ config?: {
934
+ label?: string | null | undefined;
935
+ placeholder?: string;
936
+ min?: number;
937
+ max?: number;
938
+ step?: number;
939
+ };
940
+ }) | ({
941
+ type: "StructuredText";
942
+ } & {
943
+ fieldset?: string | null | undefined;
944
+ config?: {
945
+ label?: string | null | undefined;
946
+ placeholder?: string;
947
+ useAsTitle?: boolean;
948
+ single?: string;
949
+ multi?: string;
950
+ imageConstraint?: {
951
+ width?: number | null;
952
+ height?: number | null;
953
+ };
954
+ labels?: readonly string[];
955
+ allowTargetBlank?: boolean;
956
+ };
957
+ }) | ({
958
+ type: "Select";
959
+ } & {
960
+ fieldset?: string | null | undefined;
961
+ config?: {
962
+ label?: string | null | undefined;
963
+ placeholder?: string;
964
+ default_value?: string;
965
+ options?: readonly string[];
966
+ };
967
+ }) | ({
968
+ type: "Separator";
969
+ } & {
970
+ config?: {
971
+ label?: string | null | undefined;
972
+ };
973
+ }) | ({
974
+ type: "Text";
975
+ } & {
976
+ fieldset?: string | null | undefined;
977
+ config?: {
978
+ label?: string | null | undefined;
979
+ useAsTitle?: boolean;
980
+ placeholder?: string;
981
+ };
982
+ }) | ({
983
+ type: "Timestamp";
984
+ } & {
985
+ fieldset?: string | null | undefined;
986
+ config?: {
987
+ label?: string | null | undefined;
988
+ placeholder?: string;
989
+ default?: string;
990
+ };
991
+ });
992
+ };
993
+ config?: {
994
+ label?: string | null | undefined;
995
+ };
996
+ }) | ({
997
+ id: string;
998
+ type: "SharedSlice";
999
+ name: string;
1000
+ variations: readonly ({
1001
+ id: string;
1002
+ name: string;
1003
+ description: string;
1004
+ imageUrl: string;
1005
+ docURL: string;
1006
+ version: string;
1007
+ } & {
1008
+ display?: string;
1009
+ primary?: {
1010
+ [x: string]: ({
1011
+ type: "Boolean";
1012
+ } & {
1013
+ config?: {
1014
+ label?: string | null | undefined;
1015
+ default_value?: boolean;
1016
+ placeholder_true?: string;
1017
+ placeholder_false?: string;
1018
+ };
1019
+ }) | ({
1020
+ type: "Color";
1021
+ } & {
1022
+ fieldset?: string | null | undefined;
1023
+ config?: {
1024
+ label?: string | null | undefined;
1025
+ placeholder?: string;
1026
+ };
1027
+ }) | ({
1028
+ type: "Date";
1029
+ } & {
1030
+ fieldset?: string | null | undefined;
1031
+ config?: {
1032
+ label?: string | null | undefined;
1033
+ placeholder?: string;
1034
+ default?: string;
1035
+ };
1036
+ }) | ({
1037
+ type: "Embed";
1038
+ } & {
1039
+ fieldset?: string | null | undefined;
1040
+ config?: {
1041
+ label?: string | null | undefined;
1042
+ placeholder?: string;
1043
+ useAsTitle?: boolean;
1044
+ };
1045
+ }) | ({
1046
+ type: "GeoPoint";
1047
+ } & {
1048
+ fieldset?: string | null | undefined;
1049
+ config?: {
1050
+ label?: string | null | undefined;
1051
+ };
1052
+ }) | ({
1053
+ type: "Image";
1054
+ } & {
1055
+ fieldset?: string | null | undefined;
1056
+ config?: {
1057
+ label?: string | null | undefined;
1058
+ placeholder?: string;
1059
+ constraint?: {
1060
+ width?: number | null;
1061
+ height?: number | null;
1062
+ };
1063
+ thumbnails?: readonly ({
1064
+ name: string;
1065
+ } & {
1066
+ width?: number | null;
1067
+ height?: number | null;
1068
+ })[];
1069
+ };
1070
+ }) | ({
1071
+ type: "IntegrationFields";
1072
+ } & {
1073
+ fieldset?: string | null | undefined;
1074
+ config?: {
1075
+ label?: string | null | undefined;
1076
+ placeholder?: string;
1077
+ catalog?: string;
1078
+ };
1079
+ }) | ({
1080
+ type: "Link";
1081
+ } & {
1082
+ fieldset?: string | null | undefined;
1083
+ config?: {
1084
+ label?: string | null | undefined;
1085
+ useAsTitle?: boolean;
1086
+ placeholder?: string;
1087
+ select?: "media" | "document" | "web" | null;
1088
+ customtypes?: readonly string[];
1089
+ masks?: readonly string[];
1090
+ tags?: readonly string[];
1091
+ allowTargetBlank?: boolean;
1092
+ };
1093
+ }) | ({
1094
+ type: "Number";
1095
+ } & {
1096
+ fieldset?: string | null | undefined;
1097
+ config?: {
1098
+ label?: string | null | undefined;
1099
+ placeholder?: string;
1100
+ min?: number;
1101
+ max?: number;
1102
+ step?: number;
1103
+ };
1104
+ }) | ({
1105
+ type: "Range";
1106
+ } & {
1107
+ fieldset?: string | null | undefined;
1108
+ config?: {
1109
+ label?: string | null | undefined;
1110
+ placeholder?: string;
1111
+ min?: number;
1112
+ max?: number;
1113
+ step?: number;
1114
+ };
1115
+ }) | ({
1116
+ type: "StructuredText";
1117
+ } & {
1118
+ fieldset?: string | null | undefined;
1119
+ config?: {
1120
+ label?: string | null | undefined;
1121
+ placeholder?: string;
1122
+ useAsTitle?: boolean;
1123
+ single?: string;
1124
+ multi?: string;
1125
+ imageConstraint?: {
1126
+ width?: number | null;
1127
+ height?: number | null;
1128
+ };
1129
+ labels?: readonly string[];
1130
+ allowTargetBlank?: boolean;
1131
+ };
1132
+ }) | ({
1133
+ type: "Select";
1134
+ } & {
1135
+ fieldset?: string | null | undefined;
1136
+ config?: {
1137
+ label?: string | null | undefined;
1138
+ placeholder?: string;
1139
+ default_value?: string;
1140
+ options?: readonly string[];
1141
+ };
1142
+ }) | ({
1143
+ type: "Separator";
1144
+ } & {
1145
+ config?: {
1146
+ label?: string | null | undefined;
1147
+ };
1148
+ }) | ({
1149
+ type: "Text";
1150
+ } & {
1151
+ fieldset?: string | null | undefined;
1152
+ config?: {
1153
+ label?: string | null | undefined;
1154
+ useAsTitle?: boolean;
1155
+ placeholder?: string;
1156
+ };
1157
+ }) | ({
1158
+ type: "Timestamp";
1159
+ } & {
1160
+ fieldset?: string | null | undefined;
1161
+ config?: {
1162
+ label?: string | null | undefined;
1163
+ placeholder?: string;
1164
+ default?: string;
1165
+ };
1166
+ });
1167
+ };
1168
+ items?: {
1169
+ [x: string]: ({
1170
+ type: "Boolean";
1171
+ } & {
1172
+ config?: {
1173
+ label?: string | null | undefined;
1174
+ default_value?: boolean;
1175
+ placeholder_true?: string;
1176
+ placeholder_false?: string;
1177
+ };
1178
+ }) | ({
1179
+ type: "Color";
1180
+ } & {
1181
+ fieldset?: string | null | undefined;
1182
+ config?: {
1183
+ label?: string | null | undefined;
1184
+ placeholder?: string;
1185
+ };
1186
+ }) | ({
1187
+ type: "Date";
1188
+ } & {
1189
+ fieldset?: string | null | undefined;
1190
+ config?: {
1191
+ label?: string | null | undefined;
1192
+ placeholder?: string;
1193
+ default?: string;
1194
+ };
1195
+ }) | ({
1196
+ type: "Embed";
1197
+ } & {
1198
+ fieldset?: string | null | undefined;
1199
+ config?: {
1200
+ label?: string | null | undefined;
1201
+ placeholder?: string;
1202
+ useAsTitle?: boolean;
1203
+ };
1204
+ }) | ({
1205
+ type: "GeoPoint";
1206
+ } & {
1207
+ fieldset?: string | null | undefined;
1208
+ config?: {
1209
+ label?: string | null | undefined;
1210
+ };
1211
+ }) | ({
1212
+ type: "Image";
1213
+ } & {
1214
+ fieldset?: string | null | undefined;
1215
+ config?: {
1216
+ label?: string | null | undefined;
1217
+ placeholder?: string;
1218
+ constraint?: {
1219
+ width?: number | null;
1220
+ height?: number | null;
1221
+ };
1222
+ thumbnails?: readonly ({
1223
+ name: string;
1224
+ } & {
1225
+ width?: number | null;
1226
+ height?: number | null;
1227
+ })[];
1228
+ };
1229
+ }) | ({
1230
+ type: "IntegrationFields";
1231
+ } & {
1232
+ fieldset?: string | null | undefined;
1233
+ config?: {
1234
+ label?: string | null | undefined;
1235
+ placeholder?: string;
1236
+ catalog?: string;
1237
+ };
1238
+ }) | ({
1239
+ type: "Link";
1240
+ } & {
1241
+ fieldset?: string | null | undefined;
1242
+ config?: {
1243
+ label?: string | null | undefined;
1244
+ useAsTitle?: boolean;
1245
+ placeholder?: string;
1246
+ select?: "media" | "document" | "web" | null;
1247
+ customtypes?: readonly string[];
1248
+ masks?: readonly string[];
1249
+ tags?: readonly string[];
1250
+ allowTargetBlank?: boolean;
1251
+ };
1252
+ }) | ({
1253
+ type: "Number";
1254
+ } & {
1255
+ fieldset?: string | null | undefined;
1256
+ config?: {
1257
+ label?: string | null | undefined;
1258
+ placeholder?: string;
1259
+ min?: number;
1260
+ max?: number;
1261
+ step?: number;
1262
+ };
1263
+ }) | ({
1264
+ type: "Range";
1265
+ } & {
1266
+ fieldset?: string | null | undefined;
1267
+ config?: {
1268
+ label?: string | null | undefined;
1269
+ placeholder?: string;
1270
+ min?: number;
1271
+ max?: number;
1272
+ step?: number;
1273
+ };
1274
+ }) | ({
1275
+ type: "StructuredText";
1276
+ } & {
1277
+ fieldset?: string | null | undefined;
1278
+ config?: {
1279
+ label?: string | null | undefined;
1280
+ placeholder?: string;
1281
+ useAsTitle?: boolean;
1282
+ single?: string;
1283
+ multi?: string;
1284
+ imageConstraint?: {
1285
+ width?: number | null;
1286
+ height?: number | null;
1287
+ };
1288
+ labels?: readonly string[];
1289
+ allowTargetBlank?: boolean;
1290
+ };
1291
+ }) | ({
1292
+ type: "Select";
1293
+ } & {
1294
+ fieldset?: string | null | undefined;
1295
+ config?: {
1296
+ label?: string | null | undefined;
1297
+ placeholder?: string;
1298
+ default_value?: string;
1299
+ options?: readonly string[];
1300
+ };
1301
+ }) | ({
1302
+ type: "Separator";
1303
+ } & {
1304
+ config?: {
1305
+ label?: string | null | undefined;
1306
+ };
1307
+ }) | ({
1308
+ type: "Text";
1309
+ } & {
1310
+ fieldset?: string | null | undefined;
1311
+ config?: {
1312
+ label?: string | null | undefined;
1313
+ useAsTitle?: boolean;
1314
+ placeholder?: string;
1315
+ };
1316
+ }) | ({
1317
+ type: "Timestamp";
1318
+ } & {
1319
+ fieldset?: string | null | undefined;
1320
+ config?: {
1321
+ label?: string | null | undefined;
1322
+ placeholder?: string;
1323
+ default?: string;
1324
+ };
1325
+ });
1326
+ };
1327
+ })[];
1328
+ } & {
1329
+ description?: string;
1330
+ });
1331
+ };
1332
+ };
1333
+ }) | ({
1334
+ type: "UID";
1335
+ } & {
1336
+ fieldset?: string | null | undefined;
1337
+ config?: {
1338
+ label?: string | null | undefined;
1339
+ useAsTitle?: boolean;
1340
+ placeholder?: string;
1341
+ };
1342
+ }) | undefined) => ImageContent | undefined;