@prismicio/types-internal 0.3.0 → 0.3.1

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.
@@ -92,7 +92,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
92
92
  label?: string | null | undefined;
93
93
  useAsTitle?: boolean;
94
94
  placeholder?: string;
95
- select?: "media" | "document" | "web" | null;
95
+ select?: "web" | "media" | "document" | null;
96
96
  customtypes?: string[];
97
97
  masks?: string[];
98
98
  tags?: string[];
@@ -258,7 +258,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
258
258
  label?: string | null | undefined;
259
259
  useAsTitle?: boolean;
260
260
  placeholder?: string;
261
- select?: "media" | "document" | "web" | null;
261
+ select?: "web" | "media" | "document" | null;
262
262
  customtypes?: string[];
263
263
  masks?: string[];
264
264
  tags?: string[];
@@ -431,7 +431,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
431
431
  label?: string | null | undefined;
432
432
  useAsTitle?: boolean;
433
433
  placeholder?: string;
434
- select?: "media" | "document" | "web" | null;
434
+ select?: "web" | "media" | "document" | null;
435
435
  customtypes?: string[];
436
436
  masks?: string[];
437
437
  tags?: string[];
@@ -511,19 +511,343 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
511
511
  default?: string;
512
512
  };
513
513
  }) | ({
514
- id: string;
515
- type: SlicesTypes.SharedSlice;
516
- name: string;
517
- variations: ({
518
- id: string;
519
- name: string;
520
- description: string;
521
- imageUrl: string;
522
- docURL: string;
523
- version: string;
524
- } & {
525
- display?: string;
526
- primary?: {
514
+ type: SlicesTypes.Slice;
515
+ } & {
516
+ fieldset?: string | null | undefined;
517
+ description?: string;
518
+ icon?: string;
519
+ display?: string;
520
+ "non-repeat"?: {
521
+ [x: string]: ({
522
+ type: WidgetTypes.BooleanField;
523
+ } & {
524
+ config?: {
525
+ label?: string | null | undefined;
526
+ default_value?: boolean;
527
+ placeholder_true?: string;
528
+ placeholder_false?: string;
529
+ };
530
+ }) | ({
531
+ type: WidgetTypes.Color;
532
+ } & {
533
+ fieldset?: string | null | undefined;
534
+ config?: {
535
+ label?: string | null | undefined;
536
+ placeholder?: string;
537
+ };
538
+ }) | ({
539
+ type: WidgetTypes.Date;
540
+ } & {
541
+ fieldset?: string | null | undefined;
542
+ config?: {
543
+ label?: string | null | undefined;
544
+ placeholder?: string;
545
+ default?: string;
546
+ };
547
+ }) | ({
548
+ type: WidgetTypes.Embed;
549
+ } & {
550
+ fieldset?: string | null | undefined;
551
+ config?: {
552
+ label?: string | null | undefined;
553
+ placeholder?: string;
554
+ useAsTitle?: boolean;
555
+ };
556
+ }) | ({
557
+ type: WidgetTypes.GeoPoint;
558
+ } & {
559
+ fieldset?: string | null | undefined;
560
+ config?: {
561
+ label?: string | null | undefined;
562
+ };
563
+ }) | ({
564
+ type: WidgetTypes.Image;
565
+ } & {
566
+ fieldset?: string | null | undefined;
567
+ config?: {
568
+ label?: string | null | undefined;
569
+ placeholder?: string;
570
+ constraint?: {
571
+ width?: number | null;
572
+ height?: number | null;
573
+ };
574
+ thumbnails?: ({
575
+ name: string;
576
+ } & {
577
+ width?: number | null;
578
+ height?: number | null;
579
+ })[];
580
+ };
581
+ }) | ({
582
+ type: WidgetTypes.IntegrationField;
583
+ } & {
584
+ fieldset?: string | null | undefined;
585
+ config?: {
586
+ label?: string | null | undefined;
587
+ placeholder?: string;
588
+ catalog?: string;
589
+ };
590
+ }) | ({
591
+ type: WidgetTypes.Link;
592
+ } & {
593
+ fieldset?: string | null | undefined;
594
+ config?: {
595
+ label?: string | null | undefined;
596
+ useAsTitle?: boolean;
597
+ placeholder?: string;
598
+ select?: "web" | "media" | "document" | null;
599
+ customtypes?: string[];
600
+ masks?: string[];
601
+ tags?: string[];
602
+ allowTargetBlank?: boolean;
603
+ };
604
+ }) | ({
605
+ type: WidgetTypes.Number;
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: WidgetTypes.Range;
617
+ } & {
618
+ fieldset?: string | null | undefined;
619
+ config?: {
620
+ label?: string | null | undefined;
621
+ placeholder?: string;
622
+ min?: number;
623
+ max?: number;
624
+ step?: number;
625
+ };
626
+ }) | ({
627
+ type: WidgetTypes.RichText;
628
+ } & {
629
+ fieldset?: string | null | undefined;
630
+ config?: {
631
+ label?: string | null | undefined;
632
+ placeholder?: string;
633
+ useAsTitle?: boolean;
634
+ single?: string;
635
+ multi?: string;
636
+ imageConstraint?: {
637
+ width?: number | null;
638
+ height?: number | null;
639
+ };
640
+ labels?: string[];
641
+ allowTargetBlank?: boolean;
642
+ };
643
+ }) | ({
644
+ type: WidgetTypes.Select;
645
+ } & {
646
+ fieldset?: string | null | undefined;
647
+ config?: {
648
+ label?: string | null | undefined;
649
+ placeholder?: string;
650
+ default_value?: string;
651
+ options?: string[];
652
+ };
653
+ }) | ({
654
+ type: WidgetTypes.Separator;
655
+ } & {
656
+ config?: {
657
+ label?: string | null | undefined;
658
+ };
659
+ }) | ({
660
+ type: WidgetTypes.Text;
661
+ } & {
662
+ fieldset?: string | null | undefined;
663
+ config?: {
664
+ label?: string | null | undefined;
665
+ useAsTitle?: boolean;
666
+ placeholder?: string;
667
+ };
668
+ }) | ({
669
+ type: WidgetTypes.Timestamp;
670
+ } & {
671
+ fieldset?: string | null | undefined;
672
+ config?: {
673
+ label?: string | null | undefined;
674
+ placeholder?: string;
675
+ default?: string;
676
+ };
677
+ });
678
+ };
679
+ repeat?: {
680
+ [x: string]: ({
681
+ type: WidgetTypes.BooleanField;
682
+ } & {
683
+ config?: {
684
+ label?: string | null | undefined;
685
+ default_value?: boolean;
686
+ placeholder_true?: string;
687
+ placeholder_false?: string;
688
+ };
689
+ }) | ({
690
+ type: WidgetTypes.Color;
691
+ } & {
692
+ fieldset?: string | null | undefined;
693
+ config?: {
694
+ label?: string | null | undefined;
695
+ placeholder?: string;
696
+ };
697
+ }) | ({
698
+ type: WidgetTypes.Date;
699
+ } & {
700
+ fieldset?: string | null | undefined;
701
+ config?: {
702
+ label?: string | null | undefined;
703
+ placeholder?: string;
704
+ default?: string;
705
+ };
706
+ }) | ({
707
+ type: WidgetTypes.Embed;
708
+ } & {
709
+ fieldset?: string | null | undefined;
710
+ config?: {
711
+ label?: string | null | undefined;
712
+ placeholder?: string;
713
+ useAsTitle?: boolean;
714
+ };
715
+ }) | ({
716
+ type: WidgetTypes.GeoPoint;
717
+ } & {
718
+ fieldset?: string | null | undefined;
719
+ config?: {
720
+ label?: string | null | undefined;
721
+ };
722
+ }) | ({
723
+ type: WidgetTypes.Image;
724
+ } & {
725
+ fieldset?: string | null | undefined;
726
+ config?: {
727
+ label?: string | null | undefined;
728
+ placeholder?: string;
729
+ constraint?: {
730
+ width?: number | null;
731
+ height?: number | null;
732
+ };
733
+ thumbnails?: ({
734
+ name: string;
735
+ } & {
736
+ width?: number | null;
737
+ height?: number | null;
738
+ })[];
739
+ };
740
+ }) | ({
741
+ type: WidgetTypes.IntegrationField;
742
+ } & {
743
+ fieldset?: string | null | undefined;
744
+ config?: {
745
+ label?: string | null | undefined;
746
+ placeholder?: string;
747
+ catalog?: string;
748
+ };
749
+ }) | ({
750
+ type: WidgetTypes.Link;
751
+ } & {
752
+ fieldset?: string | null | undefined;
753
+ config?: {
754
+ label?: string | null | undefined;
755
+ useAsTitle?: boolean;
756
+ placeholder?: string;
757
+ select?: "web" | "media" | "document" | null;
758
+ customtypes?: string[];
759
+ masks?: string[];
760
+ tags?: string[];
761
+ allowTargetBlank?: boolean;
762
+ };
763
+ }) | ({
764
+ type: WidgetTypes.Number;
765
+ } & {
766
+ fieldset?: string | null | undefined;
767
+ config?: {
768
+ label?: string | null | undefined;
769
+ placeholder?: string;
770
+ min?: number;
771
+ max?: number;
772
+ step?: number;
773
+ };
774
+ }) | ({
775
+ type: WidgetTypes.Range;
776
+ } & {
777
+ fieldset?: string | null | undefined;
778
+ config?: {
779
+ label?: string | null | undefined;
780
+ placeholder?: string;
781
+ min?: number;
782
+ max?: number;
783
+ step?: number;
784
+ };
785
+ }) | ({
786
+ type: WidgetTypes.RichText;
787
+ } & {
788
+ fieldset?: string | null | undefined;
789
+ config?: {
790
+ label?: string | null | undefined;
791
+ placeholder?: string;
792
+ useAsTitle?: boolean;
793
+ single?: string;
794
+ multi?: string;
795
+ imageConstraint?: {
796
+ width?: number | null;
797
+ height?: number | null;
798
+ };
799
+ labels?: string[];
800
+ allowTargetBlank?: boolean;
801
+ };
802
+ }) | ({
803
+ type: WidgetTypes.Select;
804
+ } & {
805
+ fieldset?: string | null | undefined;
806
+ config?: {
807
+ label?: string | null | undefined;
808
+ placeholder?: string;
809
+ default_value?: string;
810
+ options?: string[];
811
+ };
812
+ }) | ({
813
+ type: WidgetTypes.Separator;
814
+ } & {
815
+ config?: {
816
+ label?: string | null | undefined;
817
+ };
818
+ }) | ({
819
+ type: WidgetTypes.Text;
820
+ } & {
821
+ fieldset?: string | null | undefined;
822
+ config?: {
823
+ label?: string | null | undefined;
824
+ useAsTitle?: boolean;
825
+ placeholder?: string;
826
+ };
827
+ }) | ({
828
+ type: WidgetTypes.Timestamp;
829
+ } & {
830
+ fieldset?: string | null | undefined;
831
+ config?: {
832
+ label?: string | null | undefined;
833
+ placeholder?: string;
834
+ default?: string;
835
+ };
836
+ });
837
+ };
838
+ config?: {
839
+ label?: string | null | undefined;
840
+ };
841
+ }) | ({
842
+ type: WidgetTypes.Group;
843
+ } & {
844
+ fieldset?: string | null | undefined;
845
+ icon?: string;
846
+ description?: string;
847
+ config?: {
848
+ label?: string | null | undefined;
849
+ repeat?: boolean;
850
+ fields?: {
527
851
  [x: string]: ({
528
852
  type: WidgetTypes.BooleanField;
529
853
  } & {
@@ -601,7 +925,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
601
925
  label?: string | null | undefined;
602
926
  useAsTitle?: boolean;
603
927
  placeholder?: string;
604
- select?: "media" | "document" | "web" | null;
928
+ select?: "web" | "media" | "document" | null;
605
929
  customtypes?: string[];
606
930
  masks?: string[];
607
931
  tags?: string[];
@@ -682,7 +1006,21 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
682
1006
  };
683
1007
  });
684
1008
  };
685
- items?: {
1009
+ };
1010
+ }) | ({
1011
+ id: string;
1012
+ type: SlicesTypes.SharedSlice;
1013
+ name: string;
1014
+ variations: ({
1015
+ id: string;
1016
+ name: string;
1017
+ description: string;
1018
+ imageUrl: string;
1019
+ docURL: string;
1020
+ version: string;
1021
+ } & {
1022
+ display?: string;
1023
+ primary?: {
686
1024
  [x: string]: ({
687
1025
  type: WidgetTypes.BooleanField;
688
1026
  } & {
@@ -760,7 +1098,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
760
1098
  label?: string | null | undefined;
761
1099
  useAsTitle?: boolean;
762
1100
  placeholder?: string;
763
- select?: "media" | "document" | "web" | null;
1101
+ select?: "web" | "media" | "document" | null;
764
1102
  customtypes?: string[];
765
1103
  masks?: string[];
766
1104
  tags?: string[];
@@ -841,19 +1179,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
841
1179
  };
842
1180
  });
843
1181
  };
844
- })[];
845
- } & {
846
- description?: string;
847
- }) | ({
848
- type: WidgetTypes.Group;
849
- } & {
850
- fieldset?: string | null | undefined;
851
- icon?: string;
852
- description?: string;
853
- config?: {
854
- label?: string | null | undefined;
855
- repeat?: boolean;
856
- fields?: {
1182
+ items?: {
857
1183
  [x: string]: ({
858
1184
  type: WidgetTypes.BooleanField;
859
1185
  } & {
@@ -931,7 +1257,7 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
931
1257
  label?: string | null | undefined;
932
1258
  useAsTitle?: boolean;
933
1259
  placeholder?: string;
934
- select?: "media" | "document" | "web" | null;
1260
+ select?: "web" | "media" | "document" | null;
935
1261
  customtypes?: string[];
936
1262
  masks?: string[];
937
1263
  tags?: string[];
@@ -954,393 +1280,67 @@ export declare const StaticCustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
954
1280
  fieldset?: string | null | undefined;
955
1281
  config?: {
956
1282
  label?: string | null | undefined;
957
- placeholder?: string;
958
- min?: number;
959
- max?: number;
960
- step?: number;
961
- };
962
- }) | ({
963
- type: WidgetTypes.RichText;
964
- } & {
965
- fieldset?: string | null | undefined;
966
- config?: {
967
- label?: string | null | undefined;
968
- placeholder?: string;
969
- useAsTitle?: boolean;
970
- single?: string;
971
- multi?: string;
972
- imageConstraint?: {
973
- width?: number | null;
974
- height?: number | null;
975
- };
976
- labels?: string[];
977
- allowTargetBlank?: boolean;
978
- };
979
- }) | ({
980
- type: WidgetTypes.Select;
981
- } & {
982
- fieldset?: string | null | undefined;
983
- config?: {
984
- label?: string | null | undefined;
985
- placeholder?: string;
986
- default_value?: string;
987
- options?: string[];
988
- };
989
- }) | ({
990
- type: WidgetTypes.Separator;
991
- } & {
992
- config?: {
993
- label?: string | null | undefined;
994
- };
995
- }) | ({
996
- type: WidgetTypes.Text;
997
- } & {
998
- fieldset?: string | null | undefined;
999
- config?: {
1000
- label?: string | null | undefined;
1001
- useAsTitle?: boolean;
1002
- placeholder?: string;
1003
- };
1004
- }) | ({
1005
- type: WidgetTypes.Timestamp;
1006
- } & {
1007
- fieldset?: string | null | undefined;
1008
- config?: {
1009
- label?: string | null | undefined;
1010
- placeholder?: string;
1011
- default?: string;
1012
- };
1013
- });
1014
- };
1015
- };
1016
- }) | ({
1017
- type: SlicesTypes.Slice;
1018
- } & {
1019
- fieldset?: string | null | undefined;
1020
- description?: string;
1021
- icon?: string;
1022
- display?: string;
1023
- "non-repeat"?: {
1024
- [x: string]: ({
1025
- type: WidgetTypes.BooleanField;
1026
- } & {
1027
- config?: {
1028
- label?: string | null | undefined;
1029
- default_value?: boolean;
1030
- placeholder_true?: string;
1031
- placeholder_false?: string;
1032
- };
1033
- }) | ({
1034
- type: WidgetTypes.Color;
1035
- } & {
1036
- fieldset?: string | null | undefined;
1037
- config?: {
1038
- label?: string | null | undefined;
1039
- placeholder?: string;
1040
- };
1041
- }) | ({
1042
- type: WidgetTypes.Date;
1043
- } & {
1044
- fieldset?: string | null | undefined;
1045
- config?: {
1046
- label?: string | null | undefined;
1047
- placeholder?: string;
1048
- default?: string;
1049
- };
1050
- }) | ({
1051
- type: WidgetTypes.Embed;
1052
- } & {
1053
- fieldset?: string | null | undefined;
1054
- config?: {
1055
- label?: string | null | undefined;
1056
- placeholder?: string;
1057
- useAsTitle?: boolean;
1058
- };
1059
- }) | ({
1060
- type: WidgetTypes.GeoPoint;
1061
- } & {
1062
- fieldset?: string | null | undefined;
1063
- config?: {
1064
- label?: string | null | undefined;
1065
- };
1066
- }) | ({
1067
- type: WidgetTypes.Image;
1068
- } & {
1069
- fieldset?: string | null | undefined;
1070
- config?: {
1071
- label?: string | null | undefined;
1072
- placeholder?: string;
1073
- constraint?: {
1074
- width?: number | null;
1075
- height?: number | null;
1076
- };
1077
- thumbnails?: ({
1078
- name: string;
1079
- } & {
1080
- width?: number | null;
1081
- height?: number | null;
1082
- })[];
1083
- };
1084
- }) | ({
1085
- type: WidgetTypes.IntegrationField;
1086
- } & {
1087
- fieldset?: string | null | undefined;
1088
- config?: {
1089
- label?: string | null | undefined;
1090
- placeholder?: string;
1091
- catalog?: string;
1092
- };
1093
- }) | ({
1094
- type: WidgetTypes.Link;
1095
- } & {
1096
- fieldset?: string | null | undefined;
1097
- config?: {
1098
- label?: string | null | undefined;
1099
- useAsTitle?: boolean;
1100
- placeholder?: string;
1101
- select?: "media" | "document" | "web" | null;
1102
- customtypes?: string[];
1103
- masks?: string[];
1104
- tags?: string[];
1105
- allowTargetBlank?: boolean;
1106
- };
1107
- }) | ({
1108
- type: WidgetTypes.Number;
1109
- } & {
1110
- fieldset?: string | null | undefined;
1111
- config?: {
1112
- label?: string | null | undefined;
1113
- placeholder?: string;
1114
- min?: number;
1115
- max?: number;
1116
- step?: number;
1117
- };
1118
- }) | ({
1119
- type: WidgetTypes.Range;
1120
- } & {
1121
- fieldset?: string | null | undefined;
1122
- config?: {
1123
- label?: string | null | undefined;
1124
- placeholder?: string;
1125
- min?: number;
1126
- max?: number;
1127
- step?: number;
1128
- };
1129
- }) | ({
1130
- type: WidgetTypes.RichText;
1131
- } & {
1132
- fieldset?: string | null | undefined;
1133
- config?: {
1134
- label?: string | null | undefined;
1135
- placeholder?: string;
1136
- useAsTitle?: boolean;
1137
- single?: string;
1138
- multi?: string;
1139
- imageConstraint?: {
1140
- width?: number | null;
1141
- height?: number | null;
1283
+ placeholder?: string;
1284
+ min?: number;
1285
+ max?: number;
1286
+ step?: number;
1142
1287
  };
1143
- labels?: string[];
1144
- allowTargetBlank?: boolean;
1145
- };
1146
- }) | ({
1147
- type: WidgetTypes.Select;
1148
- } & {
1149
- fieldset?: string | null | undefined;
1150
- config?: {
1151
- label?: string | null | undefined;
1152
- placeholder?: string;
1153
- default_value?: string;
1154
- options?: string[];
1155
- };
1156
- }) | ({
1157
- type: WidgetTypes.Separator;
1158
- } & {
1159
- config?: {
1160
- label?: string | null | undefined;
1161
- };
1162
- }) | ({
1163
- type: WidgetTypes.Text;
1164
- } & {
1165
- fieldset?: string | null | undefined;
1166
- config?: {
1167
- label?: string | null | undefined;
1168
- useAsTitle?: boolean;
1169
- placeholder?: string;
1170
- };
1171
- }) | ({
1172
- type: WidgetTypes.Timestamp;
1173
- } & {
1174
- fieldset?: string | null | undefined;
1175
- config?: {
1176
- label?: string | null | undefined;
1177
- placeholder?: string;
1178
- default?: string;
1179
- };
1180
- });
1181
- };
1182
- repeat?: {
1183
- [x: string]: ({
1184
- type: WidgetTypes.BooleanField;
1185
- } & {
1186
- config?: {
1187
- label?: string | null | undefined;
1188
- default_value?: boolean;
1189
- placeholder_true?: string;
1190
- placeholder_false?: string;
1191
- };
1192
- }) | ({
1193
- type: WidgetTypes.Color;
1194
- } & {
1195
- fieldset?: string | null | undefined;
1196
- config?: {
1197
- label?: string | null | undefined;
1198
- placeholder?: string;
1199
- };
1200
- }) | ({
1201
- type: WidgetTypes.Date;
1202
- } & {
1203
- fieldset?: string | null | undefined;
1204
- config?: {
1205
- label?: string | null | undefined;
1206
- placeholder?: string;
1207
- default?: string;
1208
- };
1209
- }) | ({
1210
- type: WidgetTypes.Embed;
1211
- } & {
1212
- fieldset?: string | null | undefined;
1213
- config?: {
1214
- label?: string | null | undefined;
1215
- placeholder?: string;
1216
- useAsTitle?: boolean;
1217
- };
1218
- }) | ({
1219
- type: WidgetTypes.GeoPoint;
1220
- } & {
1221
- fieldset?: string | null | undefined;
1222
- config?: {
1223
- label?: string | null | undefined;
1224
- };
1225
- }) | ({
1226
- type: WidgetTypes.Image;
1227
- } & {
1228
- fieldset?: string | null | undefined;
1229
- config?: {
1230
- label?: string | null | undefined;
1231
- placeholder?: string;
1232
- constraint?: {
1233
- width?: number | null;
1234
- height?: number | null;
1288
+ }) | ({
1289
+ type: WidgetTypes.RichText;
1290
+ } & {
1291
+ fieldset?: string | null | undefined;
1292
+ config?: {
1293
+ label?: string | null | undefined;
1294
+ placeholder?: string;
1295
+ useAsTitle?: boolean;
1296
+ single?: string;
1297
+ multi?: string;
1298
+ imageConstraint?: {
1299
+ width?: number | null;
1300
+ height?: number | null;
1301
+ };
1302
+ labels?: string[];
1303
+ allowTargetBlank?: boolean;
1235
1304
  };
1236
- thumbnails?: ({
1237
- name: string;
1238
- } & {
1239
- width?: number | null;
1240
- height?: number | null;
1241
- })[];
1242
- };
1243
- }) | ({
1244
- type: WidgetTypes.IntegrationField;
1245
- } & {
1246
- fieldset?: string | null | undefined;
1247
- config?: {
1248
- label?: string | null | undefined;
1249
- placeholder?: string;
1250
- catalog?: string;
1251
- };
1252
- }) | ({
1253
- type: WidgetTypes.Link;
1254
- } & {
1255
- fieldset?: string | null | undefined;
1256
- config?: {
1257
- label?: string | null | undefined;
1258
- useAsTitle?: boolean;
1259
- placeholder?: string;
1260
- select?: "media" | "document" | "web" | null;
1261
- customtypes?: string[];
1262
- masks?: string[];
1263
- tags?: string[];
1264
- allowTargetBlank?: boolean;
1265
- };
1266
- }) | ({
1267
- type: WidgetTypes.Number;
1268
- } & {
1269
- fieldset?: string | null | undefined;
1270
- config?: {
1271
- label?: string | null | undefined;
1272
- placeholder?: string;
1273
- min?: number;
1274
- max?: number;
1275
- step?: number;
1276
- };
1277
- }) | ({
1278
- type: WidgetTypes.Range;
1279
- } & {
1280
- fieldset?: string | null | undefined;
1281
- config?: {
1282
- label?: string | null | undefined;
1283
- placeholder?: string;
1284
- min?: number;
1285
- max?: number;
1286
- step?: number;
1287
- };
1288
- }) | ({
1289
- type: WidgetTypes.RichText;
1290
- } & {
1291
- fieldset?: string | null | undefined;
1292
- config?: {
1293
- label?: string | null | undefined;
1294
- placeholder?: string;
1295
- useAsTitle?: boolean;
1296
- single?: string;
1297
- multi?: string;
1298
- imageConstraint?: {
1299
- width?: number | null;
1300
- height?: number | null;
1305
+ }) | ({
1306
+ type: WidgetTypes.Select;
1307
+ } & {
1308
+ fieldset?: string | null | undefined;
1309
+ config?: {
1310
+ label?: string | null | undefined;
1311
+ placeholder?: string;
1312
+ default_value?: string;
1313
+ options?: string[];
1301
1314
  };
1302
- labels?: string[];
1303
- allowTargetBlank?: boolean;
1304
- };
1305
- }) | ({
1306
- type: WidgetTypes.Select;
1307
- } & {
1308
- fieldset?: string | null | undefined;
1309
- config?: {
1310
- label?: string | null | undefined;
1311
- placeholder?: string;
1312
- default_value?: string;
1313
- options?: string[];
1314
- };
1315
- }) | ({
1316
- type: WidgetTypes.Separator;
1317
- } & {
1318
- config?: {
1319
- label?: string | null | undefined;
1320
- };
1321
- }) | ({
1322
- type: WidgetTypes.Text;
1323
- } & {
1324
- fieldset?: string | null | undefined;
1325
- config?: {
1326
- label?: string | null | undefined;
1327
- useAsTitle?: boolean;
1328
- placeholder?: string;
1329
- };
1330
- }) | ({
1331
- type: WidgetTypes.Timestamp;
1332
- } & {
1333
- fieldset?: string | null | undefined;
1334
- config?: {
1335
- label?: string | null | undefined;
1336
- placeholder?: string;
1337
- default?: string;
1338
- };
1339
- });
1340
- };
1341
- config?: {
1342
- label?: string | null | undefined;
1343
- };
1315
+ }) | ({
1316
+ type: WidgetTypes.Separator;
1317
+ } & {
1318
+ config?: {
1319
+ label?: string | null | undefined;
1320
+ };
1321
+ }) | ({
1322
+ type: WidgetTypes.Text;
1323
+ } & {
1324
+ fieldset?: string | null | undefined;
1325
+ config?: {
1326
+ label?: string | null | undefined;
1327
+ useAsTitle?: boolean;
1328
+ placeholder?: string;
1329
+ };
1330
+ }) | ({
1331
+ type: WidgetTypes.Timestamp;
1332
+ } & {
1333
+ fieldset?: string | null | undefined;
1334
+ config?: {
1335
+ label?: string | null | undefined;
1336
+ placeholder?: string;
1337
+ default?: string;
1338
+ };
1339
+ });
1340
+ };
1341
+ })[];
1342
+ } & {
1343
+ description?: string;
1344
1344
  });
1345
1345
  };
1346
1346
  };
@@ -1442,7 +1442,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1442
1442
  label?: string | null | undefined;
1443
1443
  useAsTitle?: boolean;
1444
1444
  placeholder?: string;
1445
- select?: "media" | "document" | "web" | null;
1445
+ select?: "web" | "media" | "document" | null;
1446
1446
  customtypes?: string[];
1447
1447
  masks?: string[];
1448
1448
  tags?: string[];
@@ -1608,7 +1608,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1608
1608
  label?: string | null | undefined;
1609
1609
  useAsTitle?: boolean;
1610
1610
  placeholder?: string;
1611
- select?: "media" | "document" | "web" | null;
1611
+ select?: "web" | "media" | "document" | null;
1612
1612
  customtypes?: string[];
1613
1613
  masks?: string[];
1614
1614
  tags?: string[];
@@ -1769,265 +1769,96 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
1769
1769
  } & {
1770
1770
  fieldset?: string | null | undefined;
1771
1771
  config?: {
1772
- label?: string | null | undefined;
1773
- placeholder?: string;
1774
- catalog?: string;
1775
- };
1776
- }) | ({
1777
- type: WidgetTypes.Link;
1778
- } & {
1779
- fieldset?: string | null | undefined;
1780
- config?: {
1781
- label?: string | null | undefined;
1782
- useAsTitle?: boolean;
1783
- placeholder?: string;
1784
- select?: "media" | "document" | "web" | null;
1785
- customtypes?: string[];
1786
- masks?: string[];
1787
- tags?: string[];
1788
- allowTargetBlank?: boolean;
1789
- };
1790
- }) | ({
1791
- type: WidgetTypes.Number;
1792
- } & {
1793
- fieldset?: string | null | undefined;
1794
- config?: {
1795
- label?: string | null | undefined;
1796
- placeholder?: string;
1797
- min?: number;
1798
- max?: number;
1799
- step?: number;
1800
- };
1801
- }) | ({
1802
- type: WidgetTypes.Range;
1803
- } & {
1804
- fieldset?: string | null | undefined;
1805
- config?: {
1806
- label?: string | null | undefined;
1807
- placeholder?: string;
1808
- min?: number;
1809
- max?: number;
1810
- step?: number;
1811
- };
1812
- }) | ({
1813
- type: WidgetTypes.RichText;
1814
- } & {
1815
- fieldset?: string | null | undefined;
1816
- config?: {
1817
- label?: string | null | undefined;
1818
- placeholder?: string;
1819
- useAsTitle?: boolean;
1820
- single?: string;
1821
- multi?: string;
1822
- imageConstraint?: {
1823
- width?: number | null;
1824
- height?: number | null;
1825
- };
1826
- labels?: string[];
1827
- allowTargetBlank?: boolean;
1828
- };
1829
- }) | ({
1830
- type: WidgetTypes.Select;
1831
- } & {
1832
- fieldset?: string | null | undefined;
1833
- config?: {
1834
- label?: string | null | undefined;
1835
- placeholder?: string;
1836
- default_value?: string;
1837
- options?: string[];
1838
- };
1839
- }) | ({
1840
- type: WidgetTypes.Separator;
1841
- } & {
1842
- config?: {
1843
- label?: string | null | undefined;
1844
- };
1845
- }) | ({
1846
- type: WidgetTypes.Text;
1847
- } & {
1848
- fieldset?: string | null | undefined;
1849
- config?: {
1850
- label?: string | null | undefined;
1851
- useAsTitle?: boolean;
1852
- placeholder?: string;
1853
- };
1854
- }) | ({
1855
- type: WidgetTypes.Timestamp;
1856
- } & {
1857
- fieldset?: string | null | undefined;
1858
- config?: {
1859
- label?: string | null | undefined;
1860
- placeholder?: string;
1861
- default?: string;
1862
- };
1863
- }) | ({
1864
- type: WidgetTypes.Group;
1865
- } & {
1866
- fieldset?: string | null | undefined;
1867
- icon?: string;
1868
- description?: string;
1869
- config?: {
1870
- label?: string | null | undefined;
1871
- repeat?: boolean;
1872
- fields?: {
1873
- [x: string]: ({
1874
- type: WidgetTypes.BooleanField;
1875
- } & {
1876
- config?: {
1877
- label?: string | null | undefined;
1878
- default_value?: boolean;
1879
- placeholder_true?: string;
1880
- placeholder_false?: string;
1881
- };
1882
- }) | ({
1883
- type: WidgetTypes.Color;
1884
- } & {
1885
- fieldset?: string | null | undefined;
1886
- config?: {
1887
- label?: string | null | undefined;
1888
- placeholder?: string;
1889
- };
1890
- }) | ({
1891
- type: WidgetTypes.Date;
1892
- } & {
1893
- fieldset?: string | null | undefined;
1894
- config?: {
1895
- label?: string | null | undefined;
1896
- placeholder?: string;
1897
- default?: string;
1898
- };
1899
- }) | ({
1900
- type: WidgetTypes.Embed;
1901
- } & {
1902
- fieldset?: string | null | undefined;
1903
- config?: {
1904
- label?: string | null | undefined;
1905
- placeholder?: string;
1906
- useAsTitle?: boolean;
1907
- };
1908
- }) | ({
1909
- type: WidgetTypes.GeoPoint;
1910
- } & {
1911
- fieldset?: string | null | undefined;
1912
- config?: {
1913
- label?: string | null | undefined;
1914
- };
1915
- }) | ({
1916
- type: WidgetTypes.Image;
1917
- } & {
1918
- fieldset?: string | null | undefined;
1919
- config?: {
1920
- label?: string | null | undefined;
1921
- placeholder?: string;
1922
- constraint?: {
1923
- width?: number | null;
1924
- height?: number | null;
1925
- };
1926
- thumbnails?: ({
1927
- name: string;
1928
- } & {
1929
- width?: number | null;
1930
- height?: number | null;
1931
- })[];
1932
- };
1933
- }) | ({
1934
- type: WidgetTypes.IntegrationField;
1935
- } & {
1936
- fieldset?: string | null | undefined;
1937
- config?: {
1938
- label?: string | null | undefined;
1939
- placeholder?: string;
1940
- catalog?: string;
1941
- };
1942
- }) | ({
1943
- type: WidgetTypes.Link;
1944
- } & {
1945
- fieldset?: string | null | undefined;
1946
- config?: {
1947
- label?: string | null | undefined;
1948
- useAsTitle?: boolean;
1949
- placeholder?: string;
1950
- select?: "media" | "document" | "web" | null;
1951
- customtypes?: string[];
1952
- masks?: string[];
1953
- tags?: string[];
1954
- allowTargetBlank?: boolean;
1955
- };
1956
- }) | ({
1957
- type: WidgetTypes.Number;
1958
- } & {
1959
- fieldset?: string | null | undefined;
1960
- config?: {
1961
- label?: string | null | undefined;
1962
- placeholder?: string;
1963
- min?: number;
1964
- max?: number;
1965
- step?: number;
1966
- };
1967
- }) | ({
1968
- type: WidgetTypes.Range;
1969
- } & {
1970
- fieldset?: string | null | undefined;
1971
- config?: {
1972
- label?: string | null | undefined;
1973
- placeholder?: string;
1974
- min?: number;
1975
- max?: number;
1976
- step?: number;
1977
- };
1978
- }) | ({
1979
- type: WidgetTypes.RichText;
1980
- } & {
1981
- fieldset?: string | null | undefined;
1982
- config?: {
1983
- label?: string | null | undefined;
1984
- placeholder?: string;
1985
- useAsTitle?: boolean;
1986
- single?: string;
1987
- multi?: string;
1988
- imageConstraint?: {
1989
- width?: number | null;
1990
- height?: number | null;
1991
- };
1992
- labels?: string[];
1993
- allowTargetBlank?: boolean;
1994
- };
1995
- }) | ({
1996
- type: WidgetTypes.Select;
1997
- } & {
1998
- fieldset?: string | null | undefined;
1999
- config?: {
2000
- label?: string | null | undefined;
2001
- placeholder?: string;
2002
- default_value?: string;
2003
- options?: string[];
2004
- };
2005
- }) | ({
2006
- type: WidgetTypes.Separator;
2007
- } & {
2008
- config?: {
2009
- label?: string | null | undefined;
2010
- };
2011
- }) | ({
2012
- type: WidgetTypes.Text;
2013
- } & {
2014
- fieldset?: string | null | undefined;
2015
- config?: {
2016
- label?: string | null | undefined;
2017
- useAsTitle?: boolean;
2018
- placeholder?: string;
2019
- };
2020
- }) | ({
2021
- type: WidgetTypes.Timestamp;
2022
- } & {
2023
- fieldset?: string | null | undefined;
2024
- config?: {
2025
- label?: string | null | undefined;
2026
- placeholder?: string;
2027
- default?: string;
2028
- };
2029
- });
1772
+ label?: string | null | undefined;
1773
+ placeholder?: string;
1774
+ catalog?: string;
1775
+ };
1776
+ }) | ({
1777
+ type: WidgetTypes.Link;
1778
+ } & {
1779
+ fieldset?: string | null | undefined;
1780
+ config?: {
1781
+ label?: string | null | undefined;
1782
+ useAsTitle?: boolean;
1783
+ placeholder?: string;
1784
+ select?: "web" | "media" | "document" | null;
1785
+ customtypes?: string[];
1786
+ masks?: string[];
1787
+ tags?: string[];
1788
+ allowTargetBlank?: boolean;
1789
+ };
1790
+ }) | ({
1791
+ type: WidgetTypes.Number;
1792
+ } & {
1793
+ fieldset?: string | null | undefined;
1794
+ config?: {
1795
+ label?: string | null | undefined;
1796
+ placeholder?: string;
1797
+ min?: number;
1798
+ max?: number;
1799
+ step?: number;
1800
+ };
1801
+ }) | ({
1802
+ type: WidgetTypes.Range;
1803
+ } & {
1804
+ fieldset?: string | null | undefined;
1805
+ config?: {
1806
+ label?: string | null | undefined;
1807
+ placeholder?: string;
1808
+ min?: number;
1809
+ max?: number;
1810
+ step?: number;
1811
+ };
1812
+ }) | ({
1813
+ type: WidgetTypes.RichText;
1814
+ } & {
1815
+ fieldset?: string | null | undefined;
1816
+ config?: {
1817
+ label?: string | null | undefined;
1818
+ placeholder?: string;
1819
+ useAsTitle?: boolean;
1820
+ single?: string;
1821
+ multi?: string;
1822
+ imageConstraint?: {
1823
+ width?: number | null;
1824
+ height?: number | null;
2030
1825
  };
1826
+ labels?: string[];
1827
+ allowTargetBlank?: boolean;
1828
+ };
1829
+ }) | ({
1830
+ type: WidgetTypes.Select;
1831
+ } & {
1832
+ fieldset?: string | null | undefined;
1833
+ config?: {
1834
+ label?: string | null | undefined;
1835
+ placeholder?: string;
1836
+ default_value?: string;
1837
+ options?: string[];
1838
+ };
1839
+ }) | ({
1840
+ type: WidgetTypes.Separator;
1841
+ } & {
1842
+ config?: {
1843
+ label?: string | null | undefined;
1844
+ };
1845
+ }) | ({
1846
+ type: WidgetTypes.Text;
1847
+ } & {
1848
+ fieldset?: string | null | undefined;
1849
+ config?: {
1850
+ label?: string | null | undefined;
1851
+ useAsTitle?: boolean;
1852
+ placeholder?: string;
1853
+ };
1854
+ }) | ({
1855
+ type: WidgetTypes.Timestamp;
1856
+ } & {
1857
+ fieldset?: string | null | undefined;
1858
+ config?: {
1859
+ label?: string | null | undefined;
1860
+ placeholder?: string;
1861
+ default?: string;
2031
1862
  };
2032
1863
  }) | ({
2033
1864
  type: SlicesTypes.Slice;
@@ -2114,7 +1945,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2114
1945
  label?: string | null | undefined;
2115
1946
  useAsTitle?: boolean;
2116
1947
  placeholder?: string;
2117
- select?: "media" | "document" | "web" | null;
1948
+ select?: "web" | "media" | "document" | null;
2118
1949
  customtypes?: string[];
2119
1950
  masks?: string[];
2120
1951
  tags?: string[];
@@ -2273,7 +2104,7 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2273
2104
  label?: string | null | undefined;
2274
2105
  useAsTitle?: boolean;
2275
2106
  placeholder?: string;
2276
- select?: "media" | "document" | "web" | null;
2107
+ select?: "web" | "media" | "document" | null;
2277
2108
  customtypes?: string[];
2278
2109
  masks?: string[];
2279
2110
  tags?: string[];
@@ -2357,6 +2188,175 @@ export declare const CustomType: t.ExactC<t.IntersectionC<[t.TypeC<{
2357
2188
  config?: {
2358
2189
  label?: string | null | undefined;
2359
2190
  };
2191
+ }) | ({
2192
+ type: WidgetTypes.Group;
2193
+ } & {
2194
+ fieldset?: string | null | undefined;
2195
+ icon?: string;
2196
+ description?: string;
2197
+ config?: {
2198
+ label?: string | null | undefined;
2199
+ repeat?: boolean;
2200
+ fields?: {
2201
+ [x: string]: ({
2202
+ type: WidgetTypes.BooleanField;
2203
+ } & {
2204
+ config?: {
2205
+ label?: string | null | undefined;
2206
+ default_value?: boolean;
2207
+ placeholder_true?: string;
2208
+ placeholder_false?: string;
2209
+ };
2210
+ }) | ({
2211
+ type: WidgetTypes.Color;
2212
+ } & {
2213
+ fieldset?: string | null | undefined;
2214
+ config?: {
2215
+ label?: string | null | undefined;
2216
+ placeholder?: string;
2217
+ };
2218
+ }) | ({
2219
+ type: WidgetTypes.Date;
2220
+ } & {
2221
+ fieldset?: string | null | undefined;
2222
+ config?: {
2223
+ label?: string | null | undefined;
2224
+ placeholder?: string;
2225
+ default?: string;
2226
+ };
2227
+ }) | ({
2228
+ type: WidgetTypes.Embed;
2229
+ } & {
2230
+ fieldset?: string | null | undefined;
2231
+ config?: {
2232
+ label?: string | null | undefined;
2233
+ placeholder?: string;
2234
+ useAsTitle?: boolean;
2235
+ };
2236
+ }) | ({
2237
+ type: WidgetTypes.GeoPoint;
2238
+ } & {
2239
+ fieldset?: string | null | undefined;
2240
+ config?: {
2241
+ label?: string | null | undefined;
2242
+ };
2243
+ }) | ({
2244
+ type: WidgetTypes.Image;
2245
+ } & {
2246
+ fieldset?: string | null | undefined;
2247
+ config?: {
2248
+ label?: string | null | undefined;
2249
+ placeholder?: string;
2250
+ constraint?: {
2251
+ width?: number | null;
2252
+ height?: number | null;
2253
+ };
2254
+ thumbnails?: ({
2255
+ name: string;
2256
+ } & {
2257
+ width?: number | null;
2258
+ height?: number | null;
2259
+ })[];
2260
+ };
2261
+ }) | ({
2262
+ type: WidgetTypes.IntegrationField;
2263
+ } & {
2264
+ fieldset?: string | null | undefined;
2265
+ config?: {
2266
+ label?: string | null | undefined;
2267
+ placeholder?: string;
2268
+ catalog?: string;
2269
+ };
2270
+ }) | ({
2271
+ type: WidgetTypes.Link;
2272
+ } & {
2273
+ fieldset?: string | null | undefined;
2274
+ config?: {
2275
+ label?: string | null | undefined;
2276
+ useAsTitle?: boolean;
2277
+ placeholder?: string;
2278
+ select?: "web" | "media" | "document" | null;
2279
+ customtypes?: string[];
2280
+ masks?: string[];
2281
+ tags?: string[];
2282
+ allowTargetBlank?: boolean;
2283
+ };
2284
+ }) | ({
2285
+ type: WidgetTypes.Number;
2286
+ } & {
2287
+ fieldset?: string | null | undefined;
2288
+ config?: {
2289
+ label?: string | null | undefined;
2290
+ placeholder?: string;
2291
+ min?: number;
2292
+ max?: number;
2293
+ step?: number;
2294
+ };
2295
+ }) | ({
2296
+ type: WidgetTypes.Range;
2297
+ } & {
2298
+ fieldset?: string | null | undefined;
2299
+ config?: {
2300
+ label?: string | null | undefined;
2301
+ placeholder?: string;
2302
+ min?: number;
2303
+ max?: number;
2304
+ step?: number;
2305
+ };
2306
+ }) | ({
2307
+ type: WidgetTypes.RichText;
2308
+ } & {
2309
+ fieldset?: string | null | undefined;
2310
+ config?: {
2311
+ label?: string | null | undefined;
2312
+ placeholder?: string;
2313
+ useAsTitle?: boolean;
2314
+ single?: string;
2315
+ multi?: string;
2316
+ imageConstraint?: {
2317
+ width?: number | null;
2318
+ height?: number | null;
2319
+ };
2320
+ labels?: string[];
2321
+ allowTargetBlank?: boolean;
2322
+ };
2323
+ }) | ({
2324
+ type: WidgetTypes.Select;
2325
+ } & {
2326
+ fieldset?: string | null | undefined;
2327
+ config?: {
2328
+ label?: string | null | undefined;
2329
+ placeholder?: string;
2330
+ default_value?: string;
2331
+ options?: string[];
2332
+ };
2333
+ }) | ({
2334
+ type: WidgetTypes.Separator;
2335
+ } & {
2336
+ config?: {
2337
+ label?: string | null | undefined;
2338
+ };
2339
+ }) | ({
2340
+ type: WidgetTypes.Text;
2341
+ } & {
2342
+ fieldset?: string | null | undefined;
2343
+ config?: {
2344
+ label?: string | null | undefined;
2345
+ useAsTitle?: boolean;
2346
+ placeholder?: string;
2347
+ };
2348
+ }) | ({
2349
+ type: WidgetTypes.Timestamp;
2350
+ } & {
2351
+ fieldset?: string | null | undefined;
2352
+ config?: {
2353
+ label?: string | null | undefined;
2354
+ placeholder?: string;
2355
+ default?: string;
2356
+ };
2357
+ });
2358
+ };
2359
+ };
2360
2360
  }) | {
2361
2361
  type: SlicesTypes.SharedSlice;
2362
2362
  };