@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.
@@ -176,7 +176,7 @@ export declare function widgetReader<T extends StaticSlices | DynamicSlices>(cod
176
176
  config: t.ExactC<t.PartialC<{
177
177
  label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
178
178
  repeat: t.BooleanC;
179
- fields: t.RecordC<t.StringC, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
179
+ fields: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
180
180
  type: t.LiteralC<WidgetTypes.Color>;
181
181
  }>, t.PartialC<{
182
182
  fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
@@ -509,7 +509,7 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
509
509
  config: t.ExactC<t.PartialC<{
510
510
  label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
511
511
  repeat: t.BooleanC;
512
- fields: t.RecordC<t.StringC, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
512
+ fields: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
513
513
  type: t.LiteralC<WidgetTypes.Color>;
514
514
  }>, t.PartialC<{
515
515
  fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
@@ -758,7 +758,7 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
758
758
  label?: string | null | undefined;
759
759
  useAsTitle?: boolean;
760
760
  placeholder?: string;
761
- select?: "media" | "document" | "web" | null;
761
+ select?: "web" | "media" | "document" | null;
762
762
  customtypes?: string[];
763
763
  masks?: string[];
764
764
  tags?: string[];
@@ -838,19 +838,343 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
838
838
  default?: string;
839
839
  };
840
840
  }) | ({
841
- id: string;
842
- type: import("./slices/SlicesTypes").default.SharedSlice;
843
- name: string;
844
- variations: ({
845
- id: string;
846
- name: string;
847
- description: string;
848
- imageUrl: string;
849
- docURL: string;
850
- version: string;
851
- } & {
852
- display?: string;
853
- primary?: {
841
+ type: import("./slices/SlicesTypes").default.Slice;
842
+ } & {
843
+ fieldset?: string | null | undefined;
844
+ description?: string;
845
+ icon?: string;
846
+ display?: string;
847
+ "non-repeat"?: {
848
+ [x: string]: ({
849
+ type: WidgetTypes.BooleanField;
850
+ } & {
851
+ config?: {
852
+ label?: string | null | undefined;
853
+ default_value?: boolean;
854
+ placeholder_true?: string;
855
+ placeholder_false?: string;
856
+ };
857
+ }) | ({
858
+ type: WidgetTypes.Color;
859
+ } & {
860
+ fieldset?: string | null | undefined;
861
+ config?: {
862
+ label?: string | null | undefined;
863
+ placeholder?: string;
864
+ };
865
+ }) | ({
866
+ type: WidgetTypes.Date;
867
+ } & {
868
+ fieldset?: string | null | undefined;
869
+ config?: {
870
+ label?: string | null | undefined;
871
+ placeholder?: string;
872
+ default?: string;
873
+ };
874
+ }) | ({
875
+ type: WidgetTypes.Embed;
876
+ } & {
877
+ fieldset?: string | null | undefined;
878
+ config?: {
879
+ label?: string | null | undefined;
880
+ placeholder?: string;
881
+ useAsTitle?: boolean;
882
+ };
883
+ }) | ({
884
+ type: WidgetTypes.GeoPoint;
885
+ } & {
886
+ fieldset?: string | null | undefined;
887
+ config?: {
888
+ label?: string | null | undefined;
889
+ };
890
+ }) | ({
891
+ type: WidgetTypes.Image;
892
+ } & {
893
+ fieldset?: string | null | undefined;
894
+ config?: {
895
+ label?: string | null | undefined;
896
+ placeholder?: string;
897
+ constraint?: {
898
+ width?: number | null;
899
+ height?: number | null;
900
+ };
901
+ thumbnails?: ({
902
+ name: string;
903
+ } & {
904
+ width?: number | null;
905
+ height?: number | null;
906
+ })[];
907
+ };
908
+ }) | ({
909
+ type: WidgetTypes.IntegrationField;
910
+ } & {
911
+ fieldset?: string | null | undefined;
912
+ config?: {
913
+ label?: string | null | undefined;
914
+ placeholder?: string;
915
+ catalog?: string;
916
+ };
917
+ }) | ({
918
+ type: WidgetTypes.Link;
919
+ } & {
920
+ fieldset?: string | null | undefined;
921
+ config?: {
922
+ label?: string | null | undefined;
923
+ useAsTitle?: boolean;
924
+ placeholder?: string;
925
+ select?: "web" | "media" | "document" | null;
926
+ customtypes?: string[];
927
+ masks?: string[];
928
+ tags?: string[];
929
+ allowTargetBlank?: boolean;
930
+ };
931
+ }) | ({
932
+ type: WidgetTypes.Number;
933
+ } & {
934
+ fieldset?: string | null | undefined;
935
+ config?: {
936
+ label?: string | null | undefined;
937
+ placeholder?: string;
938
+ min?: number;
939
+ max?: number;
940
+ step?: number;
941
+ };
942
+ }) | ({
943
+ type: WidgetTypes.Range;
944
+ } & {
945
+ fieldset?: string | null | undefined;
946
+ config?: {
947
+ label?: string | null | undefined;
948
+ placeholder?: string;
949
+ min?: number;
950
+ max?: number;
951
+ step?: number;
952
+ };
953
+ }) | ({
954
+ type: WidgetTypes.RichText;
955
+ } & {
956
+ fieldset?: string | null | undefined;
957
+ config?: {
958
+ label?: string | null | undefined;
959
+ placeholder?: string;
960
+ useAsTitle?: boolean;
961
+ single?: string;
962
+ multi?: string;
963
+ imageConstraint?: {
964
+ width?: number | null;
965
+ height?: number | null;
966
+ };
967
+ labels?: string[];
968
+ allowTargetBlank?: boolean;
969
+ };
970
+ }) | ({
971
+ type: WidgetTypes.Select;
972
+ } & {
973
+ fieldset?: string | null | undefined;
974
+ config?: {
975
+ label?: string | null | undefined;
976
+ placeholder?: string;
977
+ default_value?: string;
978
+ options?: string[];
979
+ };
980
+ }) | ({
981
+ type: WidgetTypes.Separator;
982
+ } & {
983
+ config?: {
984
+ label?: string | null | undefined;
985
+ };
986
+ }) | ({
987
+ type: WidgetTypes.Text;
988
+ } & {
989
+ fieldset?: string | null | undefined;
990
+ config?: {
991
+ label?: string | null | undefined;
992
+ useAsTitle?: boolean;
993
+ placeholder?: string;
994
+ };
995
+ }) | ({
996
+ type: WidgetTypes.Timestamp;
997
+ } & {
998
+ fieldset?: string | null | undefined;
999
+ config?: {
1000
+ label?: string | null | undefined;
1001
+ placeholder?: string;
1002
+ default?: string;
1003
+ };
1004
+ });
1005
+ };
1006
+ repeat?: {
1007
+ [x: string]: ({
1008
+ type: WidgetTypes.BooleanField;
1009
+ } & {
1010
+ config?: {
1011
+ label?: string | null | undefined;
1012
+ default_value?: boolean;
1013
+ placeholder_true?: string;
1014
+ placeholder_false?: string;
1015
+ };
1016
+ }) | ({
1017
+ type: WidgetTypes.Color;
1018
+ } & {
1019
+ fieldset?: string | null | undefined;
1020
+ config?: {
1021
+ label?: string | null | undefined;
1022
+ placeholder?: string;
1023
+ };
1024
+ }) | ({
1025
+ type: WidgetTypes.Date;
1026
+ } & {
1027
+ fieldset?: string | null | undefined;
1028
+ config?: {
1029
+ label?: string | null | undefined;
1030
+ placeholder?: string;
1031
+ default?: string;
1032
+ };
1033
+ }) | ({
1034
+ type: WidgetTypes.Embed;
1035
+ } & {
1036
+ fieldset?: string | null | undefined;
1037
+ config?: {
1038
+ label?: string | null | undefined;
1039
+ placeholder?: string;
1040
+ useAsTitle?: boolean;
1041
+ };
1042
+ }) | ({
1043
+ type: WidgetTypes.GeoPoint;
1044
+ } & {
1045
+ fieldset?: string | null | undefined;
1046
+ config?: {
1047
+ label?: string | null | undefined;
1048
+ };
1049
+ }) | ({
1050
+ type: WidgetTypes.Image;
1051
+ } & {
1052
+ fieldset?: string | null | undefined;
1053
+ config?: {
1054
+ label?: string | null | undefined;
1055
+ placeholder?: string;
1056
+ constraint?: {
1057
+ width?: number | null;
1058
+ height?: number | null;
1059
+ };
1060
+ thumbnails?: ({
1061
+ name: string;
1062
+ } & {
1063
+ width?: number | null;
1064
+ height?: number | null;
1065
+ })[];
1066
+ };
1067
+ }) | ({
1068
+ type: WidgetTypes.IntegrationField;
1069
+ } & {
1070
+ fieldset?: string | null | undefined;
1071
+ config?: {
1072
+ label?: string | null | undefined;
1073
+ placeholder?: string;
1074
+ catalog?: string;
1075
+ };
1076
+ }) | ({
1077
+ type: WidgetTypes.Link;
1078
+ } & {
1079
+ fieldset?: string | null | undefined;
1080
+ config?: {
1081
+ label?: string | null | undefined;
1082
+ useAsTitle?: boolean;
1083
+ placeholder?: string;
1084
+ select?: "web" | "media" | "document" | null;
1085
+ customtypes?: string[];
1086
+ masks?: string[];
1087
+ tags?: string[];
1088
+ allowTargetBlank?: boolean;
1089
+ };
1090
+ }) | ({
1091
+ type: WidgetTypes.Number;
1092
+ } & {
1093
+ fieldset?: string | null | undefined;
1094
+ config?: {
1095
+ label?: string | null | undefined;
1096
+ placeholder?: string;
1097
+ min?: number;
1098
+ max?: number;
1099
+ step?: number;
1100
+ };
1101
+ }) | ({
1102
+ type: WidgetTypes.Range;
1103
+ } & {
1104
+ fieldset?: string | null | undefined;
1105
+ config?: {
1106
+ label?: string | null | undefined;
1107
+ placeholder?: string;
1108
+ min?: number;
1109
+ max?: number;
1110
+ step?: number;
1111
+ };
1112
+ }) | ({
1113
+ type: WidgetTypes.RichText;
1114
+ } & {
1115
+ fieldset?: string | null | undefined;
1116
+ config?: {
1117
+ label?: string | null | undefined;
1118
+ placeholder?: string;
1119
+ useAsTitle?: boolean;
1120
+ single?: string;
1121
+ multi?: string;
1122
+ imageConstraint?: {
1123
+ width?: number | null;
1124
+ height?: number | null;
1125
+ };
1126
+ labels?: string[];
1127
+ allowTargetBlank?: boolean;
1128
+ };
1129
+ }) | ({
1130
+ type: WidgetTypes.Select;
1131
+ } & {
1132
+ fieldset?: string | null | undefined;
1133
+ config?: {
1134
+ label?: string | null | undefined;
1135
+ placeholder?: string;
1136
+ default_value?: string;
1137
+ options?: string[];
1138
+ };
1139
+ }) | ({
1140
+ type: WidgetTypes.Separator;
1141
+ } & {
1142
+ config?: {
1143
+ label?: string | null | undefined;
1144
+ };
1145
+ }) | ({
1146
+ type: WidgetTypes.Text;
1147
+ } & {
1148
+ fieldset?: string | null | undefined;
1149
+ config?: {
1150
+ label?: string | null | undefined;
1151
+ useAsTitle?: boolean;
1152
+ placeholder?: string;
1153
+ };
1154
+ }) | ({
1155
+ type: WidgetTypes.Timestamp;
1156
+ } & {
1157
+ fieldset?: string | null | undefined;
1158
+ config?: {
1159
+ label?: string | null | undefined;
1160
+ placeholder?: string;
1161
+ default?: string;
1162
+ };
1163
+ });
1164
+ };
1165
+ config?: {
1166
+ label?: string | null | undefined;
1167
+ };
1168
+ }) | ({
1169
+ type: WidgetTypes.Group;
1170
+ } & {
1171
+ fieldset?: string | null | undefined;
1172
+ icon?: string;
1173
+ description?: string;
1174
+ config?: {
1175
+ label?: string | null | undefined;
1176
+ repeat?: boolean;
1177
+ fields?: {
854
1178
  [x: string]: ({
855
1179
  type: WidgetTypes.BooleanField;
856
1180
  } & {
@@ -928,7 +1252,7 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
928
1252
  label?: string | null | undefined;
929
1253
  useAsTitle?: boolean;
930
1254
  placeholder?: string;
931
- select?: "media" | "document" | "web" | null;
1255
+ select?: "web" | "media" | "document" | null;
932
1256
  customtypes?: string[];
933
1257
  masks?: string[];
934
1258
  tags?: string[];
@@ -1009,7 +1333,21 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1009
1333
  };
1010
1334
  });
1011
1335
  };
1012
- items?: {
1336
+ };
1337
+ }) | ({
1338
+ id: string;
1339
+ type: import("./slices/SlicesTypes").default.SharedSlice;
1340
+ name: string;
1341
+ variations: ({
1342
+ id: string;
1343
+ name: string;
1344
+ description: string;
1345
+ imageUrl: string;
1346
+ docURL: string;
1347
+ version: string;
1348
+ } & {
1349
+ display?: string;
1350
+ primary?: {
1013
1351
  [x: string]: ({
1014
1352
  type: WidgetTypes.BooleanField;
1015
1353
  } & {
@@ -1087,7 +1425,7 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1087
1425
  label?: string | null | undefined;
1088
1426
  useAsTitle?: boolean;
1089
1427
  placeholder?: string;
1090
- select?: "media" | "document" | "web" | null;
1428
+ select?: "web" | "media" | "document" | null;
1091
1429
  customtypes?: string[];
1092
1430
  masks?: string[];
1093
1431
  tags?: string[];
@@ -1168,19 +1506,7 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1168
1506
  };
1169
1507
  });
1170
1508
  };
1171
- })[];
1172
- } & {
1173
- description?: string;
1174
- }) | ({
1175
- type: WidgetTypes.Group;
1176
- } & {
1177
- fieldset?: string | null | undefined;
1178
- icon?: string;
1179
- description?: string;
1180
- config?: {
1181
- label?: string | null | undefined;
1182
- repeat?: boolean;
1183
- fields?: {
1509
+ items?: {
1184
1510
  [x: string]: ({
1185
1511
  type: WidgetTypes.BooleanField;
1186
1512
  } & {
@@ -1258,7 +1584,7 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1258
1584
  label?: string | null | undefined;
1259
1585
  useAsTitle?: boolean;
1260
1586
  placeholder?: string;
1261
- select?: "media" | "document" | "web" | null;
1587
+ select?: "web" | "media" | "document" | null;
1262
1588
  customtypes?: string[];
1263
1589
  masks?: string[];
1264
1590
  tags?: string[];
@@ -1281,393 +1607,67 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1281
1607
  fieldset?: string | null | undefined;
1282
1608
  config?: {
1283
1609
  label?: string | null | undefined;
1284
- placeholder?: string;
1285
- min?: number;
1286
- max?: number;
1287
- step?: number;
1288
- };
1289
- }) | ({
1290
- type: WidgetTypes.RichText;
1291
- } & {
1292
- fieldset?: string | null | undefined;
1293
- config?: {
1294
- label?: string | null | undefined;
1295
- placeholder?: string;
1296
- useAsTitle?: boolean;
1297
- single?: string;
1298
- multi?: string;
1299
- imageConstraint?: {
1300
- width?: number | null;
1301
- height?: number | null;
1302
- };
1303
- labels?: string[];
1304
- allowTargetBlank?: boolean;
1305
- };
1306
- }) | ({
1307
- type: WidgetTypes.Select;
1308
- } & {
1309
- fieldset?: string | null | undefined;
1310
- config?: {
1311
- label?: string | null | undefined;
1312
- placeholder?: string;
1313
- default_value?: string;
1314
- options?: string[];
1315
- };
1316
- }) | ({
1317
- type: WidgetTypes.Separator;
1318
- } & {
1319
- config?: {
1320
- label?: string | null | undefined;
1321
- };
1322
- }) | ({
1323
- type: WidgetTypes.Text;
1324
- } & {
1325
- fieldset?: string | null | undefined;
1326
- config?: {
1327
- label?: string | null | undefined;
1328
- useAsTitle?: boolean;
1329
- placeholder?: string;
1330
- };
1331
- }) | ({
1332
- type: WidgetTypes.Timestamp;
1333
- } & {
1334
- fieldset?: string | null | undefined;
1335
- config?: {
1336
- label?: string | null | undefined;
1337
- placeholder?: string;
1338
- default?: string;
1339
- };
1340
- });
1341
- };
1342
- };
1343
- }) | ({
1344
- type: import("./slices/SlicesTypes").default.Slice;
1345
- } & {
1346
- fieldset?: string | null | undefined;
1347
- description?: string;
1348
- icon?: string;
1349
- display?: string;
1350
- "non-repeat"?: {
1351
- [x: string]: ({
1352
- type: WidgetTypes.BooleanField;
1353
- } & {
1354
- config?: {
1355
- label?: string | null | undefined;
1356
- default_value?: boolean;
1357
- placeholder_true?: string;
1358
- placeholder_false?: string;
1359
- };
1360
- }) | ({
1361
- type: WidgetTypes.Color;
1362
- } & {
1363
- fieldset?: string | null | undefined;
1364
- config?: {
1365
- label?: string | null | undefined;
1366
- placeholder?: string;
1367
- };
1368
- }) | ({
1369
- type: WidgetTypes.Date;
1370
- } & {
1371
- fieldset?: string | null | undefined;
1372
- config?: {
1373
- label?: string | null | undefined;
1374
- placeholder?: string;
1375
- default?: string;
1376
- };
1377
- }) | ({
1378
- type: WidgetTypes.Embed;
1379
- } & {
1380
- fieldset?: string | null | undefined;
1381
- config?: {
1382
- label?: string | null | undefined;
1383
- placeholder?: string;
1384
- useAsTitle?: boolean;
1385
- };
1386
- }) | ({
1387
- type: WidgetTypes.GeoPoint;
1388
- } & {
1389
- fieldset?: string | null | undefined;
1390
- config?: {
1391
- label?: string | null | undefined;
1392
- };
1393
- }) | ({
1394
- type: WidgetTypes.Image;
1395
- } & {
1396
- fieldset?: string | null | undefined;
1397
- config?: {
1398
- label?: string | null | undefined;
1399
- placeholder?: string;
1400
- constraint?: {
1401
- width?: number | null;
1402
- height?: number | null;
1403
- };
1404
- thumbnails?: ({
1405
- name: string;
1406
- } & {
1407
- width?: number | null;
1408
- height?: number | null;
1409
- })[];
1410
- };
1411
- }) | ({
1412
- type: WidgetTypes.IntegrationField;
1413
- } & {
1414
- fieldset?: string | null | undefined;
1415
- config?: {
1416
- label?: string | null | undefined;
1417
- placeholder?: string;
1418
- catalog?: string;
1419
- };
1420
- }) | ({
1421
- type: WidgetTypes.Link;
1422
- } & {
1423
- fieldset?: string | null | undefined;
1424
- config?: {
1425
- label?: string | null | undefined;
1426
- useAsTitle?: boolean;
1427
- placeholder?: string;
1428
- select?: "media" | "document" | "web" | null;
1429
- customtypes?: string[];
1430
- masks?: string[];
1431
- tags?: string[];
1432
- allowTargetBlank?: boolean;
1433
- };
1434
- }) | ({
1435
- type: WidgetTypes.Number;
1436
- } & {
1437
- fieldset?: string | null | undefined;
1438
- config?: {
1439
- label?: string | null | undefined;
1440
- placeholder?: string;
1441
- min?: number;
1442
- max?: number;
1443
- step?: number;
1444
- };
1445
- }) | ({
1446
- type: WidgetTypes.Range;
1447
- } & {
1448
- fieldset?: string | null | undefined;
1449
- config?: {
1450
- label?: string | null | undefined;
1451
- placeholder?: string;
1452
- min?: number;
1453
- max?: number;
1454
- step?: number;
1455
- };
1456
- }) | ({
1457
- type: WidgetTypes.RichText;
1458
- } & {
1459
- fieldset?: string | null | undefined;
1460
- config?: {
1461
- label?: string | null | undefined;
1462
- placeholder?: string;
1463
- useAsTitle?: boolean;
1464
- single?: string;
1465
- multi?: string;
1466
- imageConstraint?: {
1467
- width?: number | null;
1468
- height?: number | null;
1610
+ placeholder?: string;
1611
+ min?: number;
1612
+ max?: number;
1613
+ step?: number;
1469
1614
  };
1470
- labels?: string[];
1471
- allowTargetBlank?: boolean;
1472
- };
1473
- }) | ({
1474
- type: WidgetTypes.Select;
1475
- } & {
1476
- fieldset?: string | null | undefined;
1477
- config?: {
1478
- label?: string | null | undefined;
1479
- placeholder?: string;
1480
- default_value?: string;
1481
- options?: string[];
1482
- };
1483
- }) | ({
1484
- type: WidgetTypes.Separator;
1485
- } & {
1486
- config?: {
1487
- label?: string | null | undefined;
1488
- };
1489
- }) | ({
1490
- type: WidgetTypes.Text;
1491
- } & {
1492
- fieldset?: string | null | undefined;
1493
- config?: {
1494
- label?: string | null | undefined;
1495
- useAsTitle?: boolean;
1496
- placeholder?: string;
1497
- };
1498
- }) | ({
1499
- type: WidgetTypes.Timestamp;
1500
- } & {
1501
- fieldset?: string | null | undefined;
1502
- config?: {
1503
- label?: string | null | undefined;
1504
- placeholder?: string;
1505
- default?: string;
1506
- };
1507
- });
1508
- };
1509
- repeat?: {
1510
- [x: string]: ({
1511
- type: WidgetTypes.BooleanField;
1512
- } & {
1513
- config?: {
1514
- label?: string | null | undefined;
1515
- default_value?: boolean;
1516
- placeholder_true?: string;
1517
- placeholder_false?: string;
1518
- };
1519
- }) | ({
1520
- type: WidgetTypes.Color;
1521
- } & {
1522
- fieldset?: string | null | undefined;
1523
- config?: {
1524
- label?: string | null | undefined;
1525
- placeholder?: string;
1526
- };
1527
- }) | ({
1528
- type: WidgetTypes.Date;
1529
- } & {
1530
- fieldset?: string | null | undefined;
1531
- config?: {
1532
- label?: string | null | undefined;
1533
- placeholder?: string;
1534
- default?: string;
1535
- };
1536
- }) | ({
1537
- type: WidgetTypes.Embed;
1538
- } & {
1539
- fieldset?: string | null | undefined;
1540
- config?: {
1541
- label?: string | null | undefined;
1542
- placeholder?: string;
1543
- useAsTitle?: boolean;
1544
- };
1545
- }) | ({
1546
- type: WidgetTypes.GeoPoint;
1547
- } & {
1548
- fieldset?: string | null | undefined;
1549
- config?: {
1550
- label?: string | null | undefined;
1551
- };
1552
- }) | ({
1553
- type: WidgetTypes.Image;
1554
- } & {
1555
- fieldset?: string | null | undefined;
1556
- config?: {
1557
- label?: string | null | undefined;
1558
- placeholder?: string;
1559
- constraint?: {
1560
- width?: number | null;
1561
- height?: number | null;
1615
+ }) | ({
1616
+ type: WidgetTypes.RichText;
1617
+ } & {
1618
+ fieldset?: string | null | undefined;
1619
+ config?: {
1620
+ label?: string | null | undefined;
1621
+ placeholder?: string;
1622
+ useAsTitle?: boolean;
1623
+ single?: string;
1624
+ multi?: string;
1625
+ imageConstraint?: {
1626
+ width?: number | null;
1627
+ height?: number | null;
1628
+ };
1629
+ labels?: string[];
1630
+ allowTargetBlank?: boolean;
1562
1631
  };
1563
- thumbnails?: ({
1564
- name: string;
1565
- } & {
1566
- width?: number | null;
1567
- height?: number | null;
1568
- })[];
1569
- };
1570
- }) | ({
1571
- type: WidgetTypes.IntegrationField;
1572
- } & {
1573
- fieldset?: string | null | undefined;
1574
- config?: {
1575
- label?: string | null | undefined;
1576
- placeholder?: string;
1577
- catalog?: string;
1578
- };
1579
- }) | ({
1580
- type: WidgetTypes.Link;
1581
- } & {
1582
- fieldset?: string | null | undefined;
1583
- config?: {
1584
- label?: string | null | undefined;
1585
- useAsTitle?: boolean;
1586
- placeholder?: string;
1587
- select?: "media" | "document" | "web" | null;
1588
- customtypes?: string[];
1589
- masks?: string[];
1590
- tags?: string[];
1591
- allowTargetBlank?: boolean;
1592
- };
1593
- }) | ({
1594
- type: WidgetTypes.Number;
1595
- } & {
1596
- fieldset?: string | null | undefined;
1597
- config?: {
1598
- label?: string | null | undefined;
1599
- placeholder?: string;
1600
- min?: number;
1601
- max?: number;
1602
- step?: number;
1603
- };
1604
- }) | ({
1605
- type: WidgetTypes.Range;
1606
- } & {
1607
- fieldset?: string | null | undefined;
1608
- config?: {
1609
- label?: string | null | undefined;
1610
- placeholder?: string;
1611
- min?: number;
1612
- max?: number;
1613
- step?: number;
1614
- };
1615
- }) | ({
1616
- type: WidgetTypes.RichText;
1617
- } & {
1618
- fieldset?: string | null | undefined;
1619
- config?: {
1620
- label?: string | null | undefined;
1621
- placeholder?: string;
1622
- useAsTitle?: boolean;
1623
- single?: string;
1624
- multi?: string;
1625
- imageConstraint?: {
1626
- width?: number | null;
1627
- height?: number | null;
1632
+ }) | ({
1633
+ type: WidgetTypes.Select;
1634
+ } & {
1635
+ fieldset?: string | null | undefined;
1636
+ config?: {
1637
+ label?: string | null | undefined;
1638
+ placeholder?: string;
1639
+ default_value?: string;
1640
+ options?: string[];
1628
1641
  };
1629
- labels?: string[];
1630
- allowTargetBlank?: boolean;
1631
- };
1632
- }) | ({
1633
- type: WidgetTypes.Select;
1634
- } & {
1635
- fieldset?: string | null | undefined;
1636
- config?: {
1637
- label?: string | null | undefined;
1638
- placeholder?: string;
1639
- default_value?: string;
1640
- options?: string[];
1641
- };
1642
- }) | ({
1643
- type: WidgetTypes.Separator;
1644
- } & {
1645
- config?: {
1646
- label?: string | null | undefined;
1647
- };
1648
- }) | ({
1649
- type: WidgetTypes.Text;
1650
- } & {
1651
- fieldset?: string | null | undefined;
1652
- config?: {
1653
- label?: string | null | undefined;
1654
- useAsTitle?: boolean;
1655
- placeholder?: string;
1656
- };
1657
- }) | ({
1658
- type: WidgetTypes.Timestamp;
1659
- } & {
1660
- fieldset?: string | null | undefined;
1661
- config?: {
1662
- label?: string | null | undefined;
1663
- placeholder?: string;
1664
- default?: string;
1665
- };
1666
- });
1667
- };
1668
- config?: {
1669
- label?: string | null | undefined;
1670
- };
1642
+ }) | ({
1643
+ type: WidgetTypes.Separator;
1644
+ } & {
1645
+ config?: {
1646
+ label?: string | null | undefined;
1647
+ };
1648
+ }) | ({
1649
+ type: WidgetTypes.Text;
1650
+ } & {
1651
+ fieldset?: string | null | undefined;
1652
+ config?: {
1653
+ label?: string | null | undefined;
1654
+ useAsTitle?: boolean;
1655
+ placeholder?: string;
1656
+ };
1657
+ }) | ({
1658
+ type: WidgetTypes.Timestamp;
1659
+ } & {
1660
+ fieldset?: string | null | undefined;
1661
+ config?: {
1662
+ label?: string | null | undefined;
1663
+ placeholder?: string;
1664
+ default?: string;
1665
+ };
1666
+ });
1667
+ };
1668
+ })[];
1669
+ } & {
1670
+ description?: string;
1671
1671
  });
1672
1672
  };
1673
1673
  };
@@ -1847,7 +1847,7 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
1847
1847
  config: t.ExactC<t.PartialC<{
1848
1848
  label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1849
1849
  repeat: t.BooleanC;
1850
- fields: t.RecordC<t.StringC, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1850
+ fields: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1851
1851
  type: t.LiteralC<WidgetTypes.Color>;
1852
1852
  }>, t.PartialC<{
1853
1853
  fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
@@ -2084,265 +2084,96 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
2084
2084
  } & {
2085
2085
  fieldset?: string | null | undefined;
2086
2086
  config?: {
2087
- label?: string | null | undefined;
2088
- placeholder?: string;
2089
- catalog?: string;
2090
- };
2091
- }) | ({
2092
- type: WidgetTypes.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?: string[];
2101
- masks?: string[];
2102
- tags?: string[];
2103
- allowTargetBlank?: boolean;
2104
- };
2105
- }) | ({
2106
- type: WidgetTypes.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: WidgetTypes.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: WidgetTypes.RichText;
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?: string[];
2142
- allowTargetBlank?: boolean;
2143
- };
2144
- }) | ({
2145
- type: WidgetTypes.Select;
2146
- } & {
2147
- fieldset?: string | null | undefined;
2148
- config?: {
2149
- label?: string | null | undefined;
2150
- placeholder?: string;
2151
- default_value?: string;
2152
- options?: string[];
2153
- };
2154
- }) | ({
2155
- type: WidgetTypes.Separator;
2156
- } & {
2157
- config?: {
2158
- label?: string | null | undefined;
2159
- };
2160
- }) | ({
2161
- type: WidgetTypes.Text;
2162
- } & {
2163
- fieldset?: string | null | undefined;
2164
- config?: {
2165
- label?: string | null | undefined;
2166
- useAsTitle?: boolean;
2167
- placeholder?: string;
2168
- };
2169
- }) | ({
2170
- type: WidgetTypes.Timestamp;
2171
- } & {
2172
- fieldset?: string | null | undefined;
2173
- config?: {
2174
- label?: string | null | undefined;
2175
- placeholder?: string;
2176
- default?: string;
2177
- };
2178
- }) | ({
2179
- type: WidgetTypes.Group;
2180
- } & {
2181
- fieldset?: string | null | undefined;
2182
- icon?: string;
2183
- description?: string;
2184
- config?: {
2185
- label?: string | null | undefined;
2186
- repeat?: boolean;
2187
- fields?: {
2188
- [x: string]: ({
2189
- type: WidgetTypes.BooleanField;
2190
- } & {
2191
- config?: {
2192
- label?: string | null | undefined;
2193
- default_value?: boolean;
2194
- placeholder_true?: string;
2195
- placeholder_false?: string;
2196
- };
2197
- }) | ({
2198
- type: WidgetTypes.Color;
2199
- } & {
2200
- fieldset?: string | null | undefined;
2201
- config?: {
2202
- label?: string | null | undefined;
2203
- placeholder?: string;
2204
- };
2205
- }) | ({
2206
- type: WidgetTypes.Date;
2207
- } & {
2208
- fieldset?: string | null | undefined;
2209
- config?: {
2210
- label?: string | null | undefined;
2211
- placeholder?: string;
2212
- default?: string;
2213
- };
2214
- }) | ({
2215
- type: WidgetTypes.Embed;
2216
- } & {
2217
- fieldset?: string | null | undefined;
2218
- config?: {
2219
- label?: string | null | undefined;
2220
- placeholder?: string;
2221
- useAsTitle?: boolean;
2222
- };
2223
- }) | ({
2224
- type: WidgetTypes.GeoPoint;
2225
- } & {
2226
- fieldset?: string | null | undefined;
2227
- config?: {
2228
- label?: string | null | undefined;
2229
- };
2230
- }) | ({
2231
- type: WidgetTypes.Image;
2232
- } & {
2233
- fieldset?: string | null | undefined;
2234
- config?: {
2235
- label?: string | null | undefined;
2236
- placeholder?: string;
2237
- constraint?: {
2238
- width?: number | null;
2239
- height?: number | null;
2240
- };
2241
- thumbnails?: ({
2242
- name: string;
2243
- } & {
2244
- width?: number | null;
2245
- height?: number | null;
2246
- })[];
2247
- };
2248
- }) | ({
2249
- type: WidgetTypes.IntegrationField;
2250
- } & {
2251
- fieldset?: string | null | undefined;
2252
- config?: {
2253
- label?: string | null | undefined;
2254
- placeholder?: string;
2255
- catalog?: string;
2256
- };
2257
- }) | ({
2258
- type: WidgetTypes.Link;
2259
- } & {
2260
- fieldset?: string | null | undefined;
2261
- config?: {
2262
- label?: string | null | undefined;
2263
- useAsTitle?: boolean;
2264
- placeholder?: string;
2265
- select?: "media" | "document" | "web" | null;
2266
- customtypes?: string[];
2267
- masks?: string[];
2268
- tags?: string[];
2269
- allowTargetBlank?: boolean;
2270
- };
2271
- }) | ({
2272
- type: WidgetTypes.Number;
2273
- } & {
2274
- fieldset?: string | null | undefined;
2275
- config?: {
2276
- label?: string | null | undefined;
2277
- placeholder?: string;
2278
- min?: number;
2279
- max?: number;
2280
- step?: number;
2281
- };
2282
- }) | ({
2283
- type: WidgetTypes.Range;
2284
- } & {
2285
- fieldset?: string | null | undefined;
2286
- config?: {
2287
- label?: string | null | undefined;
2288
- placeholder?: string;
2289
- min?: number;
2290
- max?: number;
2291
- step?: number;
2292
- };
2293
- }) | ({
2294
- type: WidgetTypes.RichText;
2295
- } & {
2296
- fieldset?: string | null | undefined;
2297
- config?: {
2298
- label?: string | null | undefined;
2299
- placeholder?: string;
2300
- useAsTitle?: boolean;
2301
- single?: string;
2302
- multi?: string;
2303
- imageConstraint?: {
2304
- width?: number | null;
2305
- height?: number | null;
2306
- };
2307
- labels?: string[];
2308
- allowTargetBlank?: boolean;
2309
- };
2310
- }) | ({
2311
- type: WidgetTypes.Select;
2312
- } & {
2313
- fieldset?: string | null | undefined;
2314
- config?: {
2315
- label?: string | null | undefined;
2316
- placeholder?: string;
2317
- default_value?: string;
2318
- options?: string[];
2319
- };
2320
- }) | ({
2321
- type: WidgetTypes.Separator;
2322
- } & {
2323
- config?: {
2324
- label?: string | null | undefined;
2325
- };
2326
- }) | ({
2327
- type: WidgetTypes.Text;
2328
- } & {
2329
- fieldset?: string | null | undefined;
2330
- config?: {
2331
- label?: string | null | undefined;
2332
- useAsTitle?: boolean;
2333
- placeholder?: string;
2334
- };
2335
- }) | ({
2336
- type: WidgetTypes.Timestamp;
2337
- } & {
2338
- fieldset?: string | null | undefined;
2339
- config?: {
2340
- label?: string | null | undefined;
2341
- placeholder?: string;
2342
- default?: string;
2343
- };
2344
- });
2087
+ label?: string | null | undefined;
2088
+ placeholder?: string;
2089
+ catalog?: string;
2090
+ };
2091
+ }) | ({
2092
+ type: WidgetTypes.Link;
2093
+ } & {
2094
+ fieldset?: string | null | undefined;
2095
+ config?: {
2096
+ label?: string | null | undefined;
2097
+ useAsTitle?: boolean;
2098
+ placeholder?: string;
2099
+ select?: "web" | "media" | "document" | null;
2100
+ customtypes?: string[];
2101
+ masks?: string[];
2102
+ tags?: string[];
2103
+ allowTargetBlank?: boolean;
2104
+ };
2105
+ }) | ({
2106
+ type: WidgetTypes.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: WidgetTypes.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: WidgetTypes.RichText;
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;
2345
2140
  };
2141
+ labels?: string[];
2142
+ allowTargetBlank?: boolean;
2143
+ };
2144
+ }) | ({
2145
+ type: WidgetTypes.Select;
2146
+ } & {
2147
+ fieldset?: string | null | undefined;
2148
+ config?: {
2149
+ label?: string | null | undefined;
2150
+ placeholder?: string;
2151
+ default_value?: string;
2152
+ options?: string[];
2153
+ };
2154
+ }) | ({
2155
+ type: WidgetTypes.Separator;
2156
+ } & {
2157
+ config?: {
2158
+ label?: string | null | undefined;
2159
+ };
2160
+ }) | ({
2161
+ type: WidgetTypes.Text;
2162
+ } & {
2163
+ fieldset?: string | null | undefined;
2164
+ config?: {
2165
+ label?: string | null | undefined;
2166
+ useAsTitle?: boolean;
2167
+ placeholder?: string;
2168
+ };
2169
+ }) | ({
2170
+ type: WidgetTypes.Timestamp;
2171
+ } & {
2172
+ fieldset?: string | null | undefined;
2173
+ config?: {
2174
+ label?: string | null | undefined;
2175
+ placeholder?: string;
2176
+ default?: string;
2346
2177
  };
2347
2178
  }) | ({
2348
2179
  type: import("./slices/SlicesTypes").default.Slice;
@@ -2429,7 +2260,7 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
2429
2260
  label?: string | null | undefined;
2430
2261
  useAsTitle?: boolean;
2431
2262
  placeholder?: string;
2432
- select?: "media" | "document" | "web" | null;
2263
+ select?: "web" | "media" | "document" | null;
2433
2264
  customtypes?: string[];
2434
2265
  masks?: string[];
2435
2266
  tags?: string[];
@@ -2588,7 +2419,7 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
2588
2419
  label?: string | null | undefined;
2589
2420
  useAsTitle?: boolean;
2590
2421
  placeholder?: string;
2591
- select?: "media" | "document" | "web" | null;
2422
+ select?: "web" | "media" | "document" | null;
2592
2423
  customtypes?: string[];
2593
2424
  masks?: string[];
2594
2425
  tags?: string[];
@@ -2672,6 +2503,175 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
2672
2503
  config?: {
2673
2504
  label?: string | null | undefined;
2674
2505
  };
2506
+ }) | ({
2507
+ type: WidgetTypes.Group;
2508
+ } & {
2509
+ fieldset?: string | null | undefined;
2510
+ icon?: string;
2511
+ description?: string;
2512
+ config?: {
2513
+ label?: string | null | undefined;
2514
+ repeat?: boolean;
2515
+ fields?: {
2516
+ [x: string]: ({
2517
+ type: WidgetTypes.BooleanField;
2518
+ } & {
2519
+ config?: {
2520
+ label?: string | null | undefined;
2521
+ default_value?: boolean;
2522
+ placeholder_true?: string;
2523
+ placeholder_false?: string;
2524
+ };
2525
+ }) | ({
2526
+ type: WidgetTypes.Color;
2527
+ } & {
2528
+ fieldset?: string | null | undefined;
2529
+ config?: {
2530
+ label?: string | null | undefined;
2531
+ placeholder?: string;
2532
+ };
2533
+ }) | ({
2534
+ type: WidgetTypes.Date;
2535
+ } & {
2536
+ fieldset?: string | null | undefined;
2537
+ config?: {
2538
+ label?: string | null | undefined;
2539
+ placeholder?: string;
2540
+ default?: string;
2541
+ };
2542
+ }) | ({
2543
+ type: WidgetTypes.Embed;
2544
+ } & {
2545
+ fieldset?: string | null | undefined;
2546
+ config?: {
2547
+ label?: string | null | undefined;
2548
+ placeholder?: string;
2549
+ useAsTitle?: boolean;
2550
+ };
2551
+ }) | ({
2552
+ type: WidgetTypes.GeoPoint;
2553
+ } & {
2554
+ fieldset?: string | null | undefined;
2555
+ config?: {
2556
+ label?: string | null | undefined;
2557
+ };
2558
+ }) | ({
2559
+ type: WidgetTypes.Image;
2560
+ } & {
2561
+ fieldset?: string | null | undefined;
2562
+ config?: {
2563
+ label?: string | null | undefined;
2564
+ placeholder?: string;
2565
+ constraint?: {
2566
+ width?: number | null;
2567
+ height?: number | null;
2568
+ };
2569
+ thumbnails?: ({
2570
+ name: string;
2571
+ } & {
2572
+ width?: number | null;
2573
+ height?: number | null;
2574
+ })[];
2575
+ };
2576
+ }) | ({
2577
+ type: WidgetTypes.IntegrationField;
2578
+ } & {
2579
+ fieldset?: string | null | undefined;
2580
+ config?: {
2581
+ label?: string | null | undefined;
2582
+ placeholder?: string;
2583
+ catalog?: string;
2584
+ };
2585
+ }) | ({
2586
+ type: WidgetTypes.Link;
2587
+ } & {
2588
+ fieldset?: string | null | undefined;
2589
+ config?: {
2590
+ label?: string | null | undefined;
2591
+ useAsTitle?: boolean;
2592
+ placeholder?: string;
2593
+ select?: "web" | "media" | "document" | null;
2594
+ customtypes?: string[];
2595
+ masks?: string[];
2596
+ tags?: string[];
2597
+ allowTargetBlank?: boolean;
2598
+ };
2599
+ }) | ({
2600
+ type: WidgetTypes.Number;
2601
+ } & {
2602
+ fieldset?: string | null | undefined;
2603
+ config?: {
2604
+ label?: string | null | undefined;
2605
+ placeholder?: string;
2606
+ min?: number;
2607
+ max?: number;
2608
+ step?: number;
2609
+ };
2610
+ }) | ({
2611
+ type: WidgetTypes.Range;
2612
+ } & {
2613
+ fieldset?: string | null | undefined;
2614
+ config?: {
2615
+ label?: string | null | undefined;
2616
+ placeholder?: string;
2617
+ min?: number;
2618
+ max?: number;
2619
+ step?: number;
2620
+ };
2621
+ }) | ({
2622
+ type: WidgetTypes.RichText;
2623
+ } & {
2624
+ fieldset?: string | null | undefined;
2625
+ config?: {
2626
+ label?: string | null | undefined;
2627
+ placeholder?: string;
2628
+ useAsTitle?: boolean;
2629
+ single?: string;
2630
+ multi?: string;
2631
+ imageConstraint?: {
2632
+ width?: number | null;
2633
+ height?: number | null;
2634
+ };
2635
+ labels?: string[];
2636
+ allowTargetBlank?: boolean;
2637
+ };
2638
+ }) | ({
2639
+ type: WidgetTypes.Select;
2640
+ } & {
2641
+ fieldset?: string | null | undefined;
2642
+ config?: {
2643
+ label?: string | null | undefined;
2644
+ placeholder?: string;
2645
+ default_value?: string;
2646
+ options?: string[];
2647
+ };
2648
+ }) | ({
2649
+ type: WidgetTypes.Separator;
2650
+ } & {
2651
+ config?: {
2652
+ label?: string | null | undefined;
2653
+ };
2654
+ }) | ({
2655
+ type: WidgetTypes.Text;
2656
+ } & {
2657
+ fieldset?: string | null | undefined;
2658
+ config?: {
2659
+ label?: string | null | undefined;
2660
+ useAsTitle?: boolean;
2661
+ placeholder?: string;
2662
+ };
2663
+ }) | ({
2664
+ type: WidgetTypes.Timestamp;
2665
+ } & {
2666
+ fieldset?: string | null | undefined;
2667
+ config?: {
2668
+ label?: string | null | undefined;
2669
+ placeholder?: string;
2670
+ default?: string;
2671
+ };
2672
+ });
2673
+ };
2674
+ };
2675
2675
  }) | {
2676
2676
  type: import("./slices/SlicesTypes").default.SharedSlice;
2677
2677
  };