@prismicio/types-internal 2.5.0-alpha.2 → 2.5.0-alpha.4
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/content/Document.d.ts +957 -45
- package/lib/content/fields/GroupContent.d.ts +8 -8
- package/lib/content/fields/GroupContent.js +14 -32
- package/lib/content/fields/WidgetContent.d.ts +957 -45
- package/lib/content/fields/nestable/NestableContent.d.ts +155 -3
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +232 -4
- package/lib/content/fields/nestable/RichTextContent/Blocks.js +5 -2
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +194 -4
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +314 -10
- package/lib/content/fields/slices/Slice/CompositeSliceContent.js +0 -3
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +80 -3
- package/lib/content/fields/slices/Slice/RepeatableContent.js +4 -1
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +314 -10
- package/lib/content/fields/slices/Slice/SharedSliceContent.js +0 -2
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +155 -3
- package/lib/content/fields/slices/Slice/SimpleSliceContent.js +0 -1
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +155 -3
- package/lib/content/fields/slices/Slice/index.d.ts +586 -16
- package/lib/content/fields/slices/SliceItem.d.ts +586 -16
- package/lib/content/fields/slices/SlicesContent.d.ts +817 -57
- package/lib/customtypes/CustomType.d.ts +2042 -690
- package/lib/customtypes/Section.d.ts +2028 -676
- package/lib/customtypes/diff/SharedSlice.d.ts +678 -2
- package/lib/customtypes/diff/Variation.d.ts +678 -3
- package/lib/customtypes/widgets/Group.d.ts +996 -15
- package/lib/customtypes/widgets/Group.js +15 -27
- package/lib/customtypes/widgets/Widget.d.ts +1684 -7
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +168 -2
- package/lib/customtypes/widgets/slices/LegacySlice.js +1 -1
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +670 -2
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +674 -3
- package/lib/customtypes/widgets/slices/Slices.d.ts +1522 -7
- package/package.json +1 -1
- package/src/content/fields/GroupContent.ts +24 -48
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +6 -3
- package/src/content/fields/slices/Slice/CompositeSliceContent.ts +4 -7
- package/src/content/fields/slices/Slice/RepeatableContent.ts +9 -2
- package/src/content/fields/slices/Slice/SharedSliceContent.ts +3 -5
- package/src/content/fields/slices/Slice/SimpleSliceContent.ts +1 -3
- package/src/customtypes/widgets/Group.ts +34 -61
- package/src/customtypes/widgets/slices/LegacySlice.ts +2 -2
|
@@ -181,7 +181,83 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
181
181
|
alt: t.Type<string | null, string | null, unknown>;
|
|
182
182
|
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
183
183
|
}>]>>, t.PartialC<{
|
|
184
|
-
linkTo: t.UnionC<[t.Type<
|
|
184
|
+
linkTo: t.UnionC<[t.Type<({
|
|
185
|
+
__TYPE__: "ImageLink";
|
|
186
|
+
} & {
|
|
187
|
+
id: string;
|
|
188
|
+
url: string;
|
|
189
|
+
height: string;
|
|
190
|
+
width: string;
|
|
191
|
+
size: string;
|
|
192
|
+
name: string;
|
|
193
|
+
kind: string;
|
|
194
|
+
} & {
|
|
195
|
+
date?: string | null | undefined;
|
|
196
|
+
}) | ({
|
|
197
|
+
id: string;
|
|
198
|
+
url: string;
|
|
199
|
+
name: string;
|
|
200
|
+
kind: string;
|
|
201
|
+
size: string;
|
|
202
|
+
} & {
|
|
203
|
+
date?: string | null | undefined;
|
|
204
|
+
} & {
|
|
205
|
+
__TYPE__: "FileLink";
|
|
206
|
+
} & {
|
|
207
|
+
size?: string;
|
|
208
|
+
}) | ({
|
|
209
|
+
__TYPE__: "DocumentLink";
|
|
210
|
+
} & {
|
|
211
|
+
id: string;
|
|
212
|
+
}) | ({
|
|
213
|
+
__TYPE__: "ExternalLink";
|
|
214
|
+
} & {
|
|
215
|
+
url: string;
|
|
216
|
+
} & {
|
|
217
|
+
kind?: "web";
|
|
218
|
+
target?: string | null | undefined;
|
|
219
|
+
preview?: {
|
|
220
|
+
title?: string;
|
|
221
|
+
} | null | undefined;
|
|
222
|
+
}), ({
|
|
223
|
+
__TYPE__: "ImageLink";
|
|
224
|
+
} & {
|
|
225
|
+
id: string;
|
|
226
|
+
url: string;
|
|
227
|
+
height: string;
|
|
228
|
+
width: string;
|
|
229
|
+
size: string;
|
|
230
|
+
name: string;
|
|
231
|
+
kind: string;
|
|
232
|
+
} & {
|
|
233
|
+
date?: string | null | undefined;
|
|
234
|
+
}) | ({
|
|
235
|
+
id: string;
|
|
236
|
+
url: string;
|
|
237
|
+
name: string;
|
|
238
|
+
kind: string;
|
|
239
|
+
size: string;
|
|
240
|
+
} & {
|
|
241
|
+
date?: string | null | undefined;
|
|
242
|
+
} & {
|
|
243
|
+
__TYPE__: "FileLink";
|
|
244
|
+
} & {
|
|
245
|
+
size?: string;
|
|
246
|
+
}) | ({
|
|
247
|
+
__TYPE__: "DocumentLink";
|
|
248
|
+
} & {
|
|
249
|
+
id: string;
|
|
250
|
+
}) | ({
|
|
251
|
+
__TYPE__: "ExternalLink";
|
|
252
|
+
} & {
|
|
253
|
+
url: string;
|
|
254
|
+
} & {
|
|
255
|
+
kind?: "web";
|
|
256
|
+
target?: string | null | undefined;
|
|
257
|
+
preview?: {
|
|
258
|
+
title?: string;
|
|
259
|
+
} | null | undefined;
|
|
260
|
+
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
185
261
|
}>]>;
|
|
186
262
|
}>, t.PartialC<{
|
|
187
263
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -511,7 +587,45 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
511
587
|
alt?: string | null;
|
|
512
588
|
provider?: string | null | undefined;
|
|
513
589
|
} & {
|
|
514
|
-
linkTo?:
|
|
590
|
+
linkTo?: ({
|
|
591
|
+
__TYPE__: "ImageLink";
|
|
592
|
+
} & {
|
|
593
|
+
id: string;
|
|
594
|
+
url: string;
|
|
595
|
+
height: string;
|
|
596
|
+
width: string;
|
|
597
|
+
size: string;
|
|
598
|
+
name: string;
|
|
599
|
+
kind: string;
|
|
600
|
+
} & {
|
|
601
|
+
date?: string | null | undefined;
|
|
602
|
+
}) | ({
|
|
603
|
+
id: string;
|
|
604
|
+
url: string;
|
|
605
|
+
name: string;
|
|
606
|
+
kind: string;
|
|
607
|
+
size: string;
|
|
608
|
+
} & {
|
|
609
|
+
date?: string | null | undefined;
|
|
610
|
+
} & {
|
|
611
|
+
__TYPE__: "FileLink";
|
|
612
|
+
} & {
|
|
613
|
+
size?: string;
|
|
614
|
+
}) | ({
|
|
615
|
+
__TYPE__: "DocumentLink";
|
|
616
|
+
} & {
|
|
617
|
+
id: string;
|
|
618
|
+
}) | ({
|
|
619
|
+
__TYPE__: "ExternalLink";
|
|
620
|
+
} & {
|
|
621
|
+
url: string;
|
|
622
|
+
} & {
|
|
623
|
+
kind?: "web";
|
|
624
|
+
target?: string | null | undefined;
|
|
625
|
+
preview?: {
|
|
626
|
+
title?: string;
|
|
627
|
+
} | null | undefined;
|
|
628
|
+
}) | null | undefined;
|
|
515
629
|
};
|
|
516
630
|
} & {
|
|
517
631
|
label?: string | null | undefined;
|
|
@@ -788,7 +902,45 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
788
902
|
alt?: string | null;
|
|
789
903
|
provider?: string | null | undefined;
|
|
790
904
|
} & {
|
|
791
|
-
linkTo?:
|
|
905
|
+
linkTo?: ({
|
|
906
|
+
__TYPE__: "ImageLink";
|
|
907
|
+
} & {
|
|
908
|
+
id: string;
|
|
909
|
+
url: string;
|
|
910
|
+
height: string;
|
|
911
|
+
width: string;
|
|
912
|
+
size: string;
|
|
913
|
+
name: string;
|
|
914
|
+
kind: string;
|
|
915
|
+
} & {
|
|
916
|
+
date?: string | null | undefined;
|
|
917
|
+
}) | ({
|
|
918
|
+
id: string;
|
|
919
|
+
url: string;
|
|
920
|
+
name: string;
|
|
921
|
+
kind: string;
|
|
922
|
+
size: string;
|
|
923
|
+
} & {
|
|
924
|
+
date?: string | null | undefined;
|
|
925
|
+
} & {
|
|
926
|
+
__TYPE__: "FileLink";
|
|
927
|
+
} & {
|
|
928
|
+
size?: string;
|
|
929
|
+
}) | ({
|
|
930
|
+
__TYPE__: "DocumentLink";
|
|
931
|
+
} & {
|
|
932
|
+
id: string;
|
|
933
|
+
}) | ({
|
|
934
|
+
__TYPE__: "ExternalLink";
|
|
935
|
+
} & {
|
|
936
|
+
url: string;
|
|
937
|
+
} & {
|
|
938
|
+
kind?: "web";
|
|
939
|
+
target?: string | null | undefined;
|
|
940
|
+
preview?: {
|
|
941
|
+
title?: string;
|
|
942
|
+
} | null | undefined;
|
|
943
|
+
}) | null | undefined;
|
|
792
944
|
};
|
|
793
945
|
} & {
|
|
794
946
|
label?: string | null | undefined;
|