@prismicio/types-internal 3.10.0-alpha.1 → 3.10.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.
- package/lib/customtypes/CustomType.d.ts +144 -378
- package/lib/customtypes/Section.d.ts +144 -378
- package/lib/customtypes/diff/SharedSlice.d.ts +64 -168
- package/lib/customtypes/diff/Variation.d.ts +64 -168
- package/lib/customtypes/widgets/Group.d.ts +90 -246
- package/lib/customtypes/widgets/Widget.d.ts +231 -621
- package/lib/customtypes/widgets/nestable/Link.d.ts +30 -82
- package/lib/customtypes/widgets/nestable/Link.js +19 -43
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +15 -41
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +30 -82
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +30 -82
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +120 -328
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +69 -186
- package/lib/customtypes/widgets/slices/Slices.d.ts +308 -828
- package/package.json +1 -1
- package/src/customtypes/widgets/nestable/Link.ts +24 -85
|
@@ -135,55 +135,29 @@ export declare const NestedGroupConfig: t.ExactC<t.PartialC<{
|
|
|
135
135
|
useAsTitle: t.BooleanC;
|
|
136
136
|
placeholder: t.StringC;
|
|
137
137
|
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
|
|
138
|
-
customtypes: t.Type<readonly (string | {
|
|
138
|
+
customtypes: t.Type<readonly (string | ({
|
|
139
139
|
id: string;
|
|
140
|
-
|
|
140
|
+
} & {
|
|
141
|
+
fields?: readonly (string | {
|
|
141
142
|
id: string;
|
|
142
|
-
customtypes: readonly (string | {
|
|
143
|
+
customtypes: readonly (string | ({
|
|
143
144
|
id: string;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
})[];
|
|
148
|
-
})[];
|
|
149
|
-
} | {
|
|
150
|
-
id: string;
|
|
151
|
-
fields: readonly (string | {
|
|
152
|
-
id: string;
|
|
153
|
-
customtypes: readonly (string | {
|
|
154
|
-
id: string;
|
|
155
|
-
fields: readonly (string | {
|
|
156
|
-
id: string;
|
|
157
|
-
fields: readonly string[];
|
|
158
|
-
})[];
|
|
159
|
-
})[];
|
|
160
|
-
})[];
|
|
145
|
+
} & {
|
|
146
|
+
fields?: readonly string[];
|
|
147
|
+
}))[];
|
|
161
148
|
})[];
|
|
162
|
-
})[], readonly (string | {
|
|
149
|
+
}))[], readonly (string | ({
|
|
163
150
|
id: string;
|
|
164
|
-
|
|
151
|
+
} & {
|
|
152
|
+
fields?: readonly (string | {
|
|
165
153
|
id: string;
|
|
166
|
-
customtypes: readonly (string | {
|
|
154
|
+
customtypes: readonly (string | ({
|
|
167
155
|
id: string;
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
})[];
|
|
172
|
-
})[];
|
|
173
|
-
} | {
|
|
174
|
-
id: string;
|
|
175
|
-
fields: readonly (string | {
|
|
176
|
-
id: string;
|
|
177
|
-
customtypes: readonly (string | {
|
|
178
|
-
id: string;
|
|
179
|
-
fields: readonly (string | {
|
|
180
|
-
id: string;
|
|
181
|
-
fields: readonly string[];
|
|
182
|
-
})[];
|
|
183
|
-
})[];
|
|
184
|
-
})[];
|
|
156
|
+
} & {
|
|
157
|
+
fields?: readonly string[];
|
|
158
|
+
}))[];
|
|
185
159
|
})[];
|
|
186
|
-
})[], unknown>;
|
|
160
|
+
}))[], unknown>;
|
|
187
161
|
masks: t.Type<readonly string[], object, unknown>;
|
|
188
162
|
tags: t.Type<readonly string[], object, unknown>;
|
|
189
163
|
allowTargetBlank: t.BooleanC;
|
|
@@ -360,55 +334,29 @@ export declare const NestedGroup: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
360
334
|
useAsTitle: t.BooleanC;
|
|
361
335
|
placeholder: t.StringC;
|
|
362
336
|
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
|
|
363
|
-
customtypes: t.Type<readonly (string | {
|
|
337
|
+
customtypes: t.Type<readonly (string | ({
|
|
364
338
|
id: string;
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
customtypes: readonly (string | {
|
|
368
|
-
id: string;
|
|
369
|
-
fields: readonly (string | {
|
|
370
|
-
id: string;
|
|
371
|
-
fields: readonly string[];
|
|
372
|
-
})[];
|
|
373
|
-
})[];
|
|
374
|
-
} | {
|
|
339
|
+
} & {
|
|
340
|
+
fields?: readonly (string | {
|
|
375
341
|
id: string;
|
|
376
|
-
|
|
342
|
+
customtypes: readonly (string | ({
|
|
377
343
|
id: string;
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
id: string;
|
|
382
|
-
fields: readonly string[];
|
|
383
|
-
})[];
|
|
384
|
-
})[];
|
|
385
|
-
})[];
|
|
344
|
+
} & {
|
|
345
|
+
fields?: readonly string[];
|
|
346
|
+
}))[];
|
|
386
347
|
})[];
|
|
387
|
-
})[], readonly (string | {
|
|
348
|
+
}))[], readonly (string | ({
|
|
388
349
|
id: string;
|
|
389
|
-
|
|
350
|
+
} & {
|
|
351
|
+
fields?: readonly (string | {
|
|
390
352
|
id: string;
|
|
391
|
-
customtypes: readonly (string | {
|
|
353
|
+
customtypes: readonly (string | ({
|
|
392
354
|
id: string;
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
})[];
|
|
397
|
-
})[];
|
|
398
|
-
} | {
|
|
399
|
-
id: string;
|
|
400
|
-
fields: readonly (string | {
|
|
401
|
-
id: string;
|
|
402
|
-
customtypes: readonly (string | {
|
|
403
|
-
id: string;
|
|
404
|
-
fields: readonly (string | {
|
|
405
|
-
id: string;
|
|
406
|
-
fields: readonly string[];
|
|
407
|
-
})[];
|
|
408
|
-
})[];
|
|
409
|
-
})[];
|
|
355
|
+
} & {
|
|
356
|
+
fields?: readonly string[];
|
|
357
|
+
}))[];
|
|
410
358
|
})[];
|
|
411
|
-
})[], unknown>;
|
|
359
|
+
}))[], unknown>;
|
|
412
360
|
masks: t.Type<readonly string[], object, unknown>;
|
|
413
361
|
tags: t.Type<readonly string[], object, unknown>;
|
|
414
362
|
allowTargetBlank: t.BooleanC;
|
|
@@ -580,55 +528,29 @@ export declare const GroupConfig: t.ExactC<t.PartialC<{
|
|
|
580
528
|
useAsTitle: t.BooleanC;
|
|
581
529
|
placeholder: t.StringC;
|
|
582
530
|
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
|
|
583
|
-
customtypes: t.Type<readonly (string | {
|
|
531
|
+
customtypes: t.Type<readonly (string | ({
|
|
584
532
|
id: string;
|
|
585
|
-
|
|
533
|
+
} & {
|
|
534
|
+
fields?: readonly (string | {
|
|
586
535
|
id: string;
|
|
587
|
-
customtypes: readonly (string | {
|
|
536
|
+
customtypes: readonly (string | ({
|
|
588
537
|
id: string;
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
})[];
|
|
593
|
-
})[];
|
|
594
|
-
} | {
|
|
595
|
-
id: string;
|
|
596
|
-
fields: readonly (string | {
|
|
597
|
-
id: string;
|
|
598
|
-
customtypes: readonly (string | {
|
|
599
|
-
id: string;
|
|
600
|
-
fields: readonly (string | {
|
|
601
|
-
id: string;
|
|
602
|
-
fields: readonly string[];
|
|
603
|
-
})[];
|
|
604
|
-
})[];
|
|
605
|
-
})[];
|
|
538
|
+
} & {
|
|
539
|
+
fields?: readonly string[];
|
|
540
|
+
}))[];
|
|
606
541
|
})[];
|
|
607
|
-
})[], readonly (string | {
|
|
542
|
+
}))[], readonly (string | ({
|
|
608
543
|
id: string;
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
customtypes: readonly (string | {
|
|
612
|
-
id: string;
|
|
613
|
-
fields: readonly (string | {
|
|
614
|
-
id: string;
|
|
615
|
-
fields: readonly string[];
|
|
616
|
-
})[];
|
|
617
|
-
})[];
|
|
618
|
-
} | {
|
|
544
|
+
} & {
|
|
545
|
+
fields?: readonly (string | {
|
|
619
546
|
id: string;
|
|
620
|
-
|
|
547
|
+
customtypes: readonly (string | ({
|
|
621
548
|
id: string;
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
id: string;
|
|
626
|
-
fields: readonly string[];
|
|
627
|
-
})[];
|
|
628
|
-
})[];
|
|
629
|
-
})[];
|
|
549
|
+
} & {
|
|
550
|
+
fields?: readonly string[];
|
|
551
|
+
}))[];
|
|
630
552
|
})[];
|
|
631
|
-
})[], unknown>;
|
|
553
|
+
}))[], unknown>;
|
|
632
554
|
masks: t.Type<readonly string[], object, unknown>;
|
|
633
555
|
tags: t.Type<readonly string[], object, unknown>;
|
|
634
556
|
allowTargetBlank: t.BooleanC;
|
|
@@ -802,55 +724,29 @@ export declare const GroupConfig: t.ExactC<t.PartialC<{
|
|
|
802
724
|
useAsTitle: t.BooleanC;
|
|
803
725
|
placeholder: t.StringC;
|
|
804
726
|
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
|
|
805
|
-
customtypes: t.Type<readonly (string | {
|
|
727
|
+
customtypes: t.Type<readonly (string | ({
|
|
806
728
|
id: string;
|
|
807
|
-
|
|
729
|
+
} & {
|
|
730
|
+
fields?: readonly (string | {
|
|
808
731
|
id: string;
|
|
809
|
-
customtypes: readonly (string | {
|
|
732
|
+
customtypes: readonly (string | ({
|
|
810
733
|
id: string;
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
})[];
|
|
815
|
-
})[];
|
|
816
|
-
} | {
|
|
817
|
-
id: string;
|
|
818
|
-
fields: readonly (string | {
|
|
819
|
-
id: string;
|
|
820
|
-
customtypes: readonly (string | {
|
|
821
|
-
id: string;
|
|
822
|
-
fields: readonly (string | {
|
|
823
|
-
id: string;
|
|
824
|
-
fields: readonly string[];
|
|
825
|
-
})[];
|
|
826
|
-
})[];
|
|
827
|
-
})[];
|
|
734
|
+
} & {
|
|
735
|
+
fields?: readonly string[];
|
|
736
|
+
}))[];
|
|
828
737
|
})[];
|
|
829
|
-
})[], readonly (string | {
|
|
738
|
+
}))[], readonly (string | ({
|
|
830
739
|
id: string;
|
|
831
|
-
|
|
740
|
+
} & {
|
|
741
|
+
fields?: readonly (string | {
|
|
832
742
|
id: string;
|
|
833
|
-
customtypes: readonly (string | {
|
|
743
|
+
customtypes: readonly (string | ({
|
|
834
744
|
id: string;
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
})[];
|
|
839
|
-
})[];
|
|
840
|
-
} | {
|
|
841
|
-
id: string;
|
|
842
|
-
fields: readonly (string | {
|
|
843
|
-
id: string;
|
|
844
|
-
customtypes: readonly (string | {
|
|
845
|
-
id: string;
|
|
846
|
-
fields: readonly (string | {
|
|
847
|
-
id: string;
|
|
848
|
-
fields: readonly string[];
|
|
849
|
-
})[];
|
|
850
|
-
})[];
|
|
851
|
-
})[];
|
|
745
|
+
} & {
|
|
746
|
+
fields?: readonly string[];
|
|
747
|
+
}))[];
|
|
852
748
|
})[];
|
|
853
|
-
})[], unknown>;
|
|
749
|
+
}))[], unknown>;
|
|
854
750
|
masks: t.Type<readonly string[], object, unknown>;
|
|
855
751
|
tags: t.Type<readonly string[], object, unknown>;
|
|
856
752
|
allowTargetBlank: t.BooleanC;
|
|
@@ -1029,55 +925,29 @@ export declare const Group: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1029
925
|
useAsTitle: t.BooleanC;
|
|
1030
926
|
placeholder: t.StringC;
|
|
1031
927
|
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
|
|
1032
|
-
customtypes: t.Type<readonly (string | {
|
|
928
|
+
customtypes: t.Type<readonly (string | ({
|
|
1033
929
|
id: string;
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
customtypes: readonly (string | {
|
|
1037
|
-
id: string;
|
|
1038
|
-
fields: readonly (string | {
|
|
1039
|
-
id: string;
|
|
1040
|
-
fields: readonly string[];
|
|
1041
|
-
})[];
|
|
1042
|
-
})[];
|
|
1043
|
-
} | {
|
|
930
|
+
} & {
|
|
931
|
+
fields?: readonly (string | {
|
|
1044
932
|
id: string;
|
|
1045
|
-
|
|
933
|
+
customtypes: readonly (string | ({
|
|
1046
934
|
id: string;
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
id: string;
|
|
1051
|
-
fields: readonly string[];
|
|
1052
|
-
})[];
|
|
1053
|
-
})[];
|
|
1054
|
-
})[];
|
|
935
|
+
} & {
|
|
936
|
+
fields?: readonly string[];
|
|
937
|
+
}))[];
|
|
1055
938
|
})[];
|
|
1056
|
-
})[], readonly (string | {
|
|
939
|
+
}))[], readonly (string | ({
|
|
1057
940
|
id: string;
|
|
1058
|
-
|
|
941
|
+
} & {
|
|
942
|
+
fields?: readonly (string | {
|
|
1059
943
|
id: string;
|
|
1060
|
-
customtypes: readonly (string | {
|
|
944
|
+
customtypes: readonly (string | ({
|
|
1061
945
|
id: string;
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
})[];
|
|
1066
|
-
})[];
|
|
1067
|
-
} | {
|
|
1068
|
-
id: string;
|
|
1069
|
-
fields: readonly (string | {
|
|
1070
|
-
id: string;
|
|
1071
|
-
customtypes: readonly (string | {
|
|
1072
|
-
id: string;
|
|
1073
|
-
fields: readonly (string | {
|
|
1074
|
-
id: string;
|
|
1075
|
-
fields: readonly string[];
|
|
1076
|
-
})[];
|
|
1077
|
-
})[];
|
|
1078
|
-
})[];
|
|
946
|
+
} & {
|
|
947
|
+
fields?: readonly string[];
|
|
948
|
+
}))[];
|
|
1079
949
|
})[];
|
|
1080
|
-
})[], unknown>;
|
|
950
|
+
}))[], unknown>;
|
|
1081
951
|
masks: t.Type<readonly string[], object, unknown>;
|
|
1082
952
|
tags: t.Type<readonly string[], object, unknown>;
|
|
1083
953
|
allowTargetBlank: t.BooleanC;
|
|
@@ -1251,55 +1121,29 @@ export declare const Group: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1251
1121
|
useAsTitle: t.BooleanC;
|
|
1252
1122
|
placeholder: t.StringC;
|
|
1253
1123
|
select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
|
|
1254
|
-
customtypes: t.Type<readonly (string | {
|
|
1124
|
+
customtypes: t.Type<readonly (string | ({
|
|
1255
1125
|
id: string;
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
customtypes: readonly (string | {
|
|
1259
|
-
id: string;
|
|
1260
|
-
fields: readonly (string | {
|
|
1261
|
-
id: string;
|
|
1262
|
-
fields: readonly string[];
|
|
1263
|
-
})[];
|
|
1264
|
-
})[];
|
|
1265
|
-
} | {
|
|
1126
|
+
} & {
|
|
1127
|
+
fields?: readonly (string | {
|
|
1266
1128
|
id: string;
|
|
1267
|
-
|
|
1129
|
+
customtypes: readonly (string | ({
|
|
1268
1130
|
id: string;
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
id: string;
|
|
1273
|
-
fields: readonly string[];
|
|
1274
|
-
})[];
|
|
1275
|
-
})[];
|
|
1276
|
-
})[];
|
|
1131
|
+
} & {
|
|
1132
|
+
fields?: readonly string[];
|
|
1133
|
+
}))[];
|
|
1277
1134
|
})[];
|
|
1278
|
-
})[], readonly (string | {
|
|
1135
|
+
}))[], readonly (string | ({
|
|
1279
1136
|
id: string;
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
customtypes: readonly (string | {
|
|
1283
|
-
id: string;
|
|
1284
|
-
fields: readonly (string | {
|
|
1285
|
-
id: string;
|
|
1286
|
-
fields: readonly string[];
|
|
1287
|
-
})[];
|
|
1288
|
-
})[];
|
|
1289
|
-
} | {
|
|
1137
|
+
} & {
|
|
1138
|
+
fields?: readonly (string | {
|
|
1290
1139
|
id: string;
|
|
1291
|
-
|
|
1140
|
+
customtypes: readonly (string | ({
|
|
1292
1141
|
id: string;
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
id: string;
|
|
1297
|
-
fields: readonly string[];
|
|
1298
|
-
})[];
|
|
1299
|
-
})[];
|
|
1300
|
-
})[];
|
|
1142
|
+
} & {
|
|
1143
|
+
fields?: readonly string[];
|
|
1144
|
+
}))[];
|
|
1301
1145
|
})[];
|
|
1302
|
-
})[], unknown>;
|
|
1146
|
+
}))[], unknown>;
|
|
1303
1147
|
masks: t.Type<readonly string[], object, unknown>;
|
|
1304
1148
|
tags: t.Type<readonly string[], object, unknown>;
|
|
1305
1149
|
allowTargetBlank: t.BooleanC;
|