@prismicio/types-internal 2.6.0 → 2.7.0-alpha.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.
- package/lib/content/Document.d.ts +409 -13
- package/lib/content/fields/WidgetContent.d.ts +408 -12
- package/lib/content/fields/nestable/LinkContent.d.ts +54 -8
- package/lib/content/fields/nestable/LinkContent.js +10 -1
- package/lib/content/fields/nestable/NestableContent.d.ts +68 -2
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +129 -6
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +60 -0
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +136 -4
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +32 -2
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +136 -4
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +68 -2
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +68 -2
- package/lib/content/fields/slices/Slice/index.d.ts +250 -10
- package/lib/content/fields/slices/SliceItem.d.ts +250 -10
- package/lib/content/fields/slices/SlicesContent.d.ts +340 -10
- package/lib/customtypes/CustomType.d.ts +342 -162
- package/lib/customtypes/Section.d.ts +342 -162
- package/lib/customtypes/diff/SharedSlice.d.ts +152 -72
- package/lib/customtypes/diff/Variation.d.ts +152 -72
- package/lib/customtypes/widgets/Group.d.ts +60 -0
- package/lib/customtypes/widgets/Widget.d.ts +318 -108
- package/lib/customtypes/widgets/nestable/Link.d.ts +20 -0
- package/lib/customtypes/widgets/nestable/Link.js +2 -0
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +10 -0
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +20 -0
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +20 -0
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +80 -0
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +87 -27
- package/lib/customtypes/widgets/slices/Slices.d.ts +424 -144
- package/package.json +1 -1
- package/src/content/fields/nestable/LinkContent.ts +12 -1
- package/src/customtypes/widgets/nestable/Link.ts +2 -0
- package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +0 -727
- package/lib/content/fields/nestable/RichTextContent/TextBlock.js +0 -80
- package/lib/customtypes/widgets/slices/SliceWidget.d.ts +0 -327
- package/lib/customtypes/widgets/slices/SliceWidget.js +0 -8
|
@@ -128,6 +128,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
128
128
|
kind: t.StringC;
|
|
129
129
|
}>, t.PartialC<{
|
|
130
130
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
131
|
+
text: t.StringC;
|
|
131
132
|
}>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
132
133
|
id: t.StringC;
|
|
133
134
|
url: t.StringC;
|
|
@@ -136,15 +137,19 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
136
137
|
size: t.StringC;
|
|
137
138
|
}>, t.PartialC<{
|
|
138
139
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
140
|
+
text: t.StringC;
|
|
139
141
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
140
142
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
141
143
|
}>, t.PartialC<{
|
|
142
144
|
size: t.StringC;
|
|
145
|
+
text: t.StringC;
|
|
143
146
|
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
144
147
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
145
|
-
}>>, t.ExactC<t.TypeC<{
|
|
148
|
+
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
146
149
|
id: t.Type<string, string, unknown>;
|
|
147
|
-
}
|
|
150
|
+
}>, t.PartialC<{
|
|
151
|
+
text: t.StringC;
|
|
152
|
+
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
148
153
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
149
154
|
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
150
155
|
url: t.StringC;
|
|
@@ -156,6 +161,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
156
161
|
}, {
|
|
157
162
|
title?: string;
|
|
158
163
|
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
164
|
+
text: t.StringC;
|
|
159
165
|
}>]>>]>]>;
|
|
160
166
|
}>>, t.ExactC<t.TypeC<{
|
|
161
167
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -196,6 +202,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
196
202
|
kind: string;
|
|
197
203
|
} & {
|
|
198
204
|
date?: string | null | undefined;
|
|
205
|
+
text?: string;
|
|
199
206
|
}) | ({
|
|
200
207
|
id: string;
|
|
201
208
|
url: string;
|
|
@@ -204,14 +211,18 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
204
211
|
size: string;
|
|
205
212
|
} & {
|
|
206
213
|
date?: string | null | undefined;
|
|
214
|
+
text?: string;
|
|
207
215
|
} & {
|
|
208
216
|
__TYPE__: "FileLink";
|
|
209
217
|
} & {
|
|
210
218
|
size?: string;
|
|
219
|
+
text?: string;
|
|
211
220
|
}) | ({
|
|
212
221
|
__TYPE__: "DocumentLink";
|
|
213
222
|
} & {
|
|
214
223
|
id: string;
|
|
224
|
+
} & {
|
|
225
|
+
text?: string;
|
|
215
226
|
}) | ({
|
|
216
227
|
__TYPE__: "ExternalLink";
|
|
217
228
|
} & {
|
|
@@ -222,6 +233,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
222
233
|
preview?: {
|
|
223
234
|
title?: string;
|
|
224
235
|
} | null | undefined;
|
|
236
|
+
text?: string;
|
|
225
237
|
}), ({
|
|
226
238
|
__TYPE__: "ImageLink";
|
|
227
239
|
} & {
|
|
@@ -234,6 +246,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
234
246
|
kind: string;
|
|
235
247
|
} & {
|
|
236
248
|
date?: string | null | undefined;
|
|
249
|
+
text?: string;
|
|
237
250
|
}) | ({
|
|
238
251
|
id: string;
|
|
239
252
|
url: string;
|
|
@@ -242,14 +255,18 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
242
255
|
size: string;
|
|
243
256
|
} & {
|
|
244
257
|
date?: string | null | undefined;
|
|
258
|
+
text?: string;
|
|
245
259
|
} & {
|
|
246
260
|
__TYPE__: "FileLink";
|
|
247
261
|
} & {
|
|
248
262
|
size?: string;
|
|
263
|
+
text?: string;
|
|
249
264
|
}) | ({
|
|
250
265
|
__TYPE__: "DocumentLink";
|
|
251
266
|
} & {
|
|
252
267
|
id: string;
|
|
268
|
+
} & {
|
|
269
|
+
text?: string;
|
|
253
270
|
}) | ({
|
|
254
271
|
__TYPE__: "ExternalLink";
|
|
255
272
|
} & {
|
|
@@ -260,6 +277,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
260
277
|
preview?: {
|
|
261
278
|
title?: string;
|
|
262
279
|
} | null | undefined;
|
|
280
|
+
text?: string;
|
|
263
281
|
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
264
282
|
}>]>;
|
|
265
283
|
}>, t.PartialC<{
|
|
@@ -307,6 +325,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
307
325
|
kind: string;
|
|
308
326
|
} & {
|
|
309
327
|
date?: string | null | undefined;
|
|
328
|
+
text?: string;
|
|
310
329
|
}) | ({
|
|
311
330
|
id: string;
|
|
312
331
|
url: string;
|
|
@@ -315,14 +334,18 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
315
334
|
size: string;
|
|
316
335
|
} & {
|
|
317
336
|
date?: string | null | undefined;
|
|
337
|
+
text?: string;
|
|
318
338
|
} & {
|
|
319
339
|
__TYPE__: "FileLink";
|
|
320
340
|
} & {
|
|
321
341
|
size?: string;
|
|
342
|
+
text?: string;
|
|
322
343
|
}) | ({
|
|
323
344
|
__TYPE__: "DocumentLink";
|
|
324
345
|
} & {
|
|
325
346
|
id: string;
|
|
347
|
+
} & {
|
|
348
|
+
text?: string;
|
|
326
349
|
}) | ({
|
|
327
350
|
__TYPE__: "ExternalLink";
|
|
328
351
|
} & {
|
|
@@ -333,6 +356,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
333
356
|
preview?: {
|
|
334
357
|
title?: string;
|
|
335
358
|
} | null | undefined;
|
|
359
|
+
text?: string;
|
|
336
360
|
});
|
|
337
361
|
start: number;
|
|
338
362
|
end: number;
|
|
@@ -359,6 +383,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
359
383
|
kind: string;
|
|
360
384
|
} & {
|
|
361
385
|
date?: string | null | undefined;
|
|
386
|
+
text?: string;
|
|
362
387
|
}) | ({
|
|
363
388
|
id: string;
|
|
364
389
|
url: string;
|
|
@@ -367,14 +392,18 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
367
392
|
size: string;
|
|
368
393
|
} & {
|
|
369
394
|
date?: string | null | undefined;
|
|
395
|
+
text?: string;
|
|
370
396
|
} & {
|
|
371
397
|
__TYPE__: "FileLink";
|
|
372
398
|
} & {
|
|
373
399
|
size?: string;
|
|
400
|
+
text?: string;
|
|
374
401
|
}) | ({
|
|
375
402
|
__TYPE__: "DocumentLink";
|
|
376
403
|
} & {
|
|
377
404
|
id: string;
|
|
405
|
+
} & {
|
|
406
|
+
text?: string;
|
|
378
407
|
}) | ({
|
|
379
408
|
__TYPE__: "ExternalLink";
|
|
380
409
|
} & {
|
|
@@ -385,6 +414,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
385
414
|
preview?: {
|
|
386
415
|
title?: string;
|
|
387
416
|
} | null | undefined;
|
|
417
|
+
text?: string;
|
|
388
418
|
});
|
|
389
419
|
start: number;
|
|
390
420
|
end: number;
|
|
@@ -534,6 +564,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
534
564
|
kind: string;
|
|
535
565
|
} & {
|
|
536
566
|
date?: string | null | undefined;
|
|
567
|
+
text?: string;
|
|
537
568
|
}) | ({
|
|
538
569
|
id: string;
|
|
539
570
|
url: string;
|
|
@@ -542,14 +573,18 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
542
573
|
size: string;
|
|
543
574
|
} & {
|
|
544
575
|
date?: string | null | undefined;
|
|
576
|
+
text?: string;
|
|
545
577
|
} & {
|
|
546
578
|
__TYPE__: "FileLink";
|
|
547
579
|
} & {
|
|
548
580
|
size?: string;
|
|
581
|
+
text?: string;
|
|
549
582
|
}) | ({
|
|
550
583
|
__TYPE__: "DocumentLink";
|
|
551
584
|
} & {
|
|
552
585
|
id: string;
|
|
586
|
+
} & {
|
|
587
|
+
text?: string;
|
|
553
588
|
}) | ({
|
|
554
589
|
__TYPE__: "ExternalLink";
|
|
555
590
|
} & {
|
|
@@ -560,6 +595,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
560
595
|
preview?: {
|
|
561
596
|
title?: string;
|
|
562
597
|
} | null | undefined;
|
|
598
|
+
text?: string;
|
|
563
599
|
});
|
|
564
600
|
} | {
|
|
565
601
|
__TYPE__: "StructuredTextContent";
|
|
@@ -600,6 +636,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
600
636
|
kind: string;
|
|
601
637
|
} & {
|
|
602
638
|
date?: string | null | undefined;
|
|
639
|
+
text?: string;
|
|
603
640
|
}) | ({
|
|
604
641
|
id: string;
|
|
605
642
|
url: string;
|
|
@@ -608,14 +645,18 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
608
645
|
size: string;
|
|
609
646
|
} & {
|
|
610
647
|
date?: string | null | undefined;
|
|
648
|
+
text?: string;
|
|
611
649
|
} & {
|
|
612
650
|
__TYPE__: "FileLink";
|
|
613
651
|
} & {
|
|
614
652
|
size?: string;
|
|
653
|
+
text?: string;
|
|
615
654
|
}) | ({
|
|
616
655
|
__TYPE__: "DocumentLink";
|
|
617
656
|
} & {
|
|
618
657
|
id: string;
|
|
658
|
+
} & {
|
|
659
|
+
text?: string;
|
|
619
660
|
}) | ({
|
|
620
661
|
__TYPE__: "ExternalLink";
|
|
621
662
|
} & {
|
|
@@ -626,6 +667,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
626
667
|
preview?: {
|
|
627
668
|
title?: string;
|
|
628
669
|
} | null | undefined;
|
|
670
|
+
text?: string;
|
|
629
671
|
}) | null | undefined;
|
|
630
672
|
};
|
|
631
673
|
} & {
|
|
@@ -673,6 +715,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
673
715
|
kind: string;
|
|
674
716
|
} & {
|
|
675
717
|
date?: string | null | undefined;
|
|
718
|
+
text?: string;
|
|
676
719
|
}) | ({
|
|
677
720
|
id: string;
|
|
678
721
|
url: string;
|
|
@@ -681,14 +724,18 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
681
724
|
size: string;
|
|
682
725
|
} & {
|
|
683
726
|
date?: string | null | undefined;
|
|
727
|
+
text?: string;
|
|
684
728
|
} & {
|
|
685
729
|
__TYPE__: "FileLink";
|
|
686
730
|
} & {
|
|
687
731
|
size?: string;
|
|
732
|
+
text?: string;
|
|
688
733
|
}) | ({
|
|
689
734
|
__TYPE__: "DocumentLink";
|
|
690
735
|
} & {
|
|
691
736
|
id: string;
|
|
737
|
+
} & {
|
|
738
|
+
text?: string;
|
|
692
739
|
}) | ({
|
|
693
740
|
__TYPE__: "ExternalLink";
|
|
694
741
|
} & {
|
|
@@ -699,6 +746,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
699
746
|
preview?: {
|
|
700
747
|
title?: string;
|
|
701
748
|
} | null | undefined;
|
|
749
|
+
text?: string;
|
|
702
750
|
});
|
|
703
751
|
start: number;
|
|
704
752
|
end: number;
|
|
@@ -848,6 +896,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
848
896
|
kind: string;
|
|
849
897
|
} & {
|
|
850
898
|
date?: string | null | undefined;
|
|
899
|
+
text?: string;
|
|
851
900
|
}) | ({
|
|
852
901
|
id: string;
|
|
853
902
|
url: string;
|
|
@@ -856,14 +905,18 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
856
905
|
size: string;
|
|
857
906
|
} & {
|
|
858
907
|
date?: string | null | undefined;
|
|
908
|
+
text?: string;
|
|
859
909
|
} & {
|
|
860
910
|
__TYPE__: "FileLink";
|
|
861
911
|
} & {
|
|
862
912
|
size?: string;
|
|
913
|
+
text?: string;
|
|
863
914
|
}) | ({
|
|
864
915
|
__TYPE__: "DocumentLink";
|
|
865
916
|
} & {
|
|
866
917
|
id: string;
|
|
918
|
+
} & {
|
|
919
|
+
text?: string;
|
|
867
920
|
}) | ({
|
|
868
921
|
__TYPE__: "ExternalLink";
|
|
869
922
|
} & {
|
|
@@ -874,6 +927,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
874
927
|
preview?: {
|
|
875
928
|
title?: string;
|
|
876
929
|
} | null | undefined;
|
|
930
|
+
text?: string;
|
|
877
931
|
});
|
|
878
932
|
}> | import("fp-ts/lib/Either").Right<{
|
|
879
933
|
__TYPE__: "StructuredTextContent";
|
|
@@ -914,6 +968,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
914
968
|
kind: string;
|
|
915
969
|
} & {
|
|
916
970
|
date?: string | null | undefined;
|
|
971
|
+
text?: string;
|
|
917
972
|
}) | ({
|
|
918
973
|
id: string;
|
|
919
974
|
url: string;
|
|
@@ -922,14 +977,18 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
922
977
|
size: string;
|
|
923
978
|
} & {
|
|
924
979
|
date?: string | null | undefined;
|
|
980
|
+
text?: string;
|
|
925
981
|
} & {
|
|
926
982
|
__TYPE__: "FileLink";
|
|
927
983
|
} & {
|
|
928
984
|
size?: string;
|
|
985
|
+
text?: string;
|
|
929
986
|
}) | ({
|
|
930
987
|
__TYPE__: "DocumentLink";
|
|
931
988
|
} & {
|
|
932
989
|
id: string;
|
|
990
|
+
} & {
|
|
991
|
+
text?: string;
|
|
933
992
|
}) | ({
|
|
934
993
|
__TYPE__: "ExternalLink";
|
|
935
994
|
} & {
|
|
@@ -940,6 +999,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
940
999
|
preview?: {
|
|
941
1000
|
title?: string;
|
|
942
1001
|
} | null | undefined;
|
|
1002
|
+
text?: string;
|
|
943
1003
|
}) | null | undefined;
|
|
944
1004
|
};
|
|
945
1005
|
} & {
|
|
@@ -987,6 +1047,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
987
1047
|
kind: string;
|
|
988
1048
|
} & {
|
|
989
1049
|
date?: string | null | undefined;
|
|
1050
|
+
text?: string;
|
|
990
1051
|
}) | ({
|
|
991
1052
|
id: string;
|
|
992
1053
|
url: string;
|
|
@@ -995,14 +1056,18 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
995
1056
|
size: string;
|
|
996
1057
|
} & {
|
|
997
1058
|
date?: string | null | undefined;
|
|
1059
|
+
text?: string;
|
|
998
1060
|
} & {
|
|
999
1061
|
__TYPE__: "FileLink";
|
|
1000
1062
|
} & {
|
|
1001
1063
|
size?: string;
|
|
1064
|
+
text?: string;
|
|
1002
1065
|
}) | ({
|
|
1003
1066
|
__TYPE__: "DocumentLink";
|
|
1004
1067
|
} & {
|
|
1005
1068
|
id: string;
|
|
1069
|
+
} & {
|
|
1070
|
+
text?: string;
|
|
1006
1071
|
}) | ({
|
|
1007
1072
|
__TYPE__: "ExternalLink";
|
|
1008
1073
|
} & {
|
|
@@ -1013,6 +1078,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1013
1078
|
preview?: {
|
|
1014
1079
|
title?: string;
|
|
1015
1080
|
} | null | undefined;
|
|
1081
|
+
text?: string;
|
|
1016
1082
|
});
|
|
1017
1083
|
start: number;
|
|
1018
1084
|
end: number;
|