@prismicio/types-internal 1.0.0-alpha.1 → 1.1.0

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