@prismicio/types-internal 2.0.0-alpha.7 → 2.0.0-alpha.8
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 +608 -32
- package/lib/content/fields/GroupContent.d.ts +190 -10
- package/lib/content/fields/WidgetContent.d.ts +912 -48
- package/lib/content/fields/nestable/EmbedContent.d.ts +44 -41
- package/lib/content/fields/nestable/EmbedContent.js +15 -38
- package/lib/content/fields/nestable/NestableContent.d.ts +114 -7
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +76 -5
- package/lib/content/fields/nestable/RichTextContent/Blocks.js +15 -7
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +76 -4
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +228 -12
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +76 -4
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +228 -12
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +190 -10
- package/lib/content/fields/slices/Slice/index.d.ts +421 -22
- package/lib/content/fields/slices/Slice/index.js +3 -0
- package/lib/content/fields/slices/SliceItem.d.ts +456 -24
- package/lib/content/fields/slices/SliceItem.js +2 -2
- package/lib/content/fields/slices/SlicesContent.d.ts +684 -36
- package/lib/content/fields/slices/index.d.ts +1 -3
- package/lib/content/fields/slices/index.js +1 -3
- package/package.json +1 -1
- package/src/content/fields/nestable/EmbedContent.ts +20 -59
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +19 -8
- package/src/content/fields/slices/Slice/index.ts +4 -0
- package/src/content/fields/slices/SliceItem.ts +2 -2
- package/src/content/fields/slices/index.ts +1 -3
|
@@ -9,7 +9,25 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
|
|
|
9
9
|
}>>, t.ExactC<t.TypeC<{
|
|
10
10
|
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
11
11
|
value: t.BooleanC;
|
|
12
|
-
}>>, t.
|
|
12
|
+
}>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
13
|
+
embed_url: t.StringC;
|
|
14
|
+
type: t.StringC;
|
|
15
|
+
}>, t.PartialC<{
|
|
16
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
17
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
18
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
19
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
20
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
21
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
22
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
23
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
24
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
25
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
26
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
27
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
28
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
29
|
+
all: t.UnknownC;
|
|
30
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
13
31
|
type: t.LiteralC<"Text">;
|
|
14
32
|
value: t.Type<string, string, unknown>;
|
|
15
33
|
__TYPE__: t.LiteralC<"FieldContent">;
|
|
@@ -248,7 +266,25 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
|
|
|
248
266
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
249
267
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
250
268
|
type: t.LiteralC<"embed">;
|
|
251
|
-
data: t.
|
|
269
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
270
|
+
embed_url: t.StringC;
|
|
271
|
+
type: t.StringC;
|
|
272
|
+
}>, t.PartialC<{
|
|
273
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
274
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
275
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
276
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
277
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
278
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
279
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
280
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
281
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
282
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
283
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
284
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
285
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
286
|
+
all: t.UnknownC;
|
|
287
|
+
}>>]>;
|
|
252
288
|
}>, t.PartialC<{
|
|
253
289
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
254
290
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -287,7 +323,25 @@ export declare const GroupItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
287
323
|
value: [string, {
|
|
288
324
|
__TYPE__: "BooleanContent";
|
|
289
325
|
value: boolean;
|
|
290
|
-
} |
|
|
326
|
+
} | ({
|
|
327
|
+
embed_url: string;
|
|
328
|
+
type: string;
|
|
329
|
+
} & {
|
|
330
|
+
version?: string | number | null;
|
|
331
|
+
title?: string | null | undefined;
|
|
332
|
+
author_name?: string | null | undefined;
|
|
333
|
+
author_url?: string | null | undefined;
|
|
334
|
+
provider_name?: string | null | undefined;
|
|
335
|
+
provider_url?: string | null | undefined;
|
|
336
|
+
cache_age?: string | number | null;
|
|
337
|
+
thumbnail_url?: string | null | undefined;
|
|
338
|
+
thumbnail_width?: number | null | undefined;
|
|
339
|
+
thumbnail_height?: number | null | undefined;
|
|
340
|
+
html?: string | null | undefined;
|
|
341
|
+
} & {
|
|
342
|
+
__TYPE__: "EmbedContent";
|
|
343
|
+
all: unknown;
|
|
344
|
+
}) | {
|
|
291
345
|
type: "Color";
|
|
292
346
|
value: string;
|
|
293
347
|
__TYPE__: "FieldContent";
|
|
@@ -491,7 +545,25 @@ export declare const GroupItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
491
545
|
direction?: string | null | undefined;
|
|
492
546
|
}) | ({
|
|
493
547
|
type: "embed";
|
|
494
|
-
data:
|
|
548
|
+
data: {
|
|
549
|
+
embed_url: string;
|
|
550
|
+
type: string;
|
|
551
|
+
} & {
|
|
552
|
+
version?: string | number | null;
|
|
553
|
+
title?: string | null | undefined;
|
|
554
|
+
author_name?: string | null | undefined;
|
|
555
|
+
author_url?: string | null | undefined;
|
|
556
|
+
provider_name?: string | null | undefined;
|
|
557
|
+
provider_url?: string | null | undefined;
|
|
558
|
+
cache_age?: string | number | null;
|
|
559
|
+
thumbnail_url?: string | null | undefined;
|
|
560
|
+
thumbnail_width?: number | null | undefined;
|
|
561
|
+
thumbnail_height?: number | null | undefined;
|
|
562
|
+
html?: string | null | undefined;
|
|
563
|
+
} & {
|
|
564
|
+
__TYPE__: "EmbedContent";
|
|
565
|
+
all: unknown;
|
|
566
|
+
};
|
|
495
567
|
} & {
|
|
496
568
|
label?: string | null | undefined;
|
|
497
569
|
direction?: string | null | undefined;
|
|
@@ -524,7 +596,25 @@ export declare const GroupLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
524
596
|
value: [string, {
|
|
525
597
|
__TYPE__: "BooleanContent";
|
|
526
598
|
value: boolean;
|
|
527
|
-
} |
|
|
599
|
+
} | ({
|
|
600
|
+
embed_url: string;
|
|
601
|
+
type: string;
|
|
602
|
+
} & {
|
|
603
|
+
version?: string | number | null;
|
|
604
|
+
title?: string | null | undefined;
|
|
605
|
+
author_name?: string | null | undefined;
|
|
606
|
+
author_url?: string | null | undefined;
|
|
607
|
+
provider_name?: string | null | undefined;
|
|
608
|
+
provider_url?: string | null | undefined;
|
|
609
|
+
cache_age?: string | number | null;
|
|
610
|
+
thumbnail_url?: string | null | undefined;
|
|
611
|
+
thumbnail_width?: number | null | undefined;
|
|
612
|
+
thumbnail_height?: number | null | undefined;
|
|
613
|
+
html?: string | null | undefined;
|
|
614
|
+
} & {
|
|
615
|
+
__TYPE__: "EmbedContent";
|
|
616
|
+
all: unknown;
|
|
617
|
+
}) | {
|
|
528
618
|
type: "Color";
|
|
529
619
|
value: string;
|
|
530
620
|
__TYPE__: "FieldContent";
|
|
@@ -728,7 +818,25 @@ export declare const GroupLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
728
818
|
direction?: string | null | undefined;
|
|
729
819
|
}) | ({
|
|
730
820
|
type: "embed";
|
|
731
|
-
data:
|
|
821
|
+
data: {
|
|
822
|
+
embed_url: string;
|
|
823
|
+
type: string;
|
|
824
|
+
} & {
|
|
825
|
+
version?: string | number | null;
|
|
826
|
+
title?: string | null | undefined;
|
|
827
|
+
author_name?: string | null | undefined;
|
|
828
|
+
author_url?: string | null | undefined;
|
|
829
|
+
provider_name?: string | null | undefined;
|
|
830
|
+
provider_url?: string | null | undefined;
|
|
831
|
+
cache_age?: string | number | null;
|
|
832
|
+
thumbnail_url?: string | null | undefined;
|
|
833
|
+
thumbnail_width?: number | null | undefined;
|
|
834
|
+
thumbnail_height?: number | null | undefined;
|
|
835
|
+
html?: string | null | undefined;
|
|
836
|
+
} & {
|
|
837
|
+
__TYPE__: "EmbedContent";
|
|
838
|
+
all: unknown;
|
|
839
|
+
};
|
|
732
840
|
} & {
|
|
733
841
|
label?: string | null | undefined;
|
|
734
842
|
direction?: string | null | undefined;
|
|
@@ -762,7 +870,25 @@ export declare const isGroupContent: (u: unknown) => u is {
|
|
|
762
870
|
value: [string, {
|
|
763
871
|
__TYPE__: "BooleanContent";
|
|
764
872
|
value: boolean;
|
|
765
|
-
} |
|
|
873
|
+
} | ({
|
|
874
|
+
embed_url: string;
|
|
875
|
+
type: string;
|
|
876
|
+
} & {
|
|
877
|
+
version?: string | number | null;
|
|
878
|
+
title?: string | null | undefined;
|
|
879
|
+
author_name?: string | null | undefined;
|
|
880
|
+
author_url?: string | null | undefined;
|
|
881
|
+
provider_name?: string | null | undefined;
|
|
882
|
+
provider_url?: string | null | undefined;
|
|
883
|
+
cache_age?: string | number | null;
|
|
884
|
+
thumbnail_url?: string | null | undefined;
|
|
885
|
+
thumbnail_width?: number | null | undefined;
|
|
886
|
+
thumbnail_height?: number | null | undefined;
|
|
887
|
+
html?: string | null | undefined;
|
|
888
|
+
} & {
|
|
889
|
+
__TYPE__: "EmbedContent";
|
|
890
|
+
all: unknown;
|
|
891
|
+
}) | {
|
|
766
892
|
type: "Color";
|
|
767
893
|
value: string;
|
|
768
894
|
__TYPE__: "FieldContent";
|
|
@@ -966,7 +1092,25 @@ export declare const isGroupContent: (u: unknown) => u is {
|
|
|
966
1092
|
direction?: string | null | undefined;
|
|
967
1093
|
}) | ({
|
|
968
1094
|
type: "embed";
|
|
969
|
-
data:
|
|
1095
|
+
data: {
|
|
1096
|
+
embed_url: string;
|
|
1097
|
+
type: string;
|
|
1098
|
+
} & {
|
|
1099
|
+
version?: string | number | null;
|
|
1100
|
+
title?: string | null | undefined;
|
|
1101
|
+
author_name?: string | null | undefined;
|
|
1102
|
+
author_url?: string | null | undefined;
|
|
1103
|
+
provider_name?: string | null | undefined;
|
|
1104
|
+
provider_url?: string | null | undefined;
|
|
1105
|
+
cache_age?: string | number | null;
|
|
1106
|
+
thumbnail_url?: string | null | undefined;
|
|
1107
|
+
thumbnail_width?: number | null | undefined;
|
|
1108
|
+
thumbnail_height?: number | null | undefined;
|
|
1109
|
+
html?: string | null | undefined;
|
|
1110
|
+
} & {
|
|
1111
|
+
__TYPE__: "EmbedContent";
|
|
1112
|
+
all: unknown;
|
|
1113
|
+
};
|
|
970
1114
|
} & {
|
|
971
1115
|
label?: string | null | undefined;
|
|
972
1116
|
direction?: string | null | undefined;
|
|
@@ -1002,7 +1146,25 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
|
|
|
1002
1146
|
}>>, t.ExactC<t.TypeC<{
|
|
1003
1147
|
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
1004
1148
|
value: t.BooleanC;
|
|
1005
|
-
}>>, t.
|
|
1149
|
+
}>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1150
|
+
embed_url: t.StringC;
|
|
1151
|
+
type: t.StringC;
|
|
1152
|
+
}>, t.PartialC<{
|
|
1153
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1154
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1155
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1156
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1157
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1158
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1159
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1160
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1161
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1162
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1163
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1164
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
1165
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
1166
|
+
all: t.UnknownC;
|
|
1167
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
1006
1168
|
type: t.LiteralC<"Text">;
|
|
1007
1169
|
value: t.Type<string, string, unknown>;
|
|
1008
1170
|
__TYPE__: t.LiteralC<"FieldContent">;
|
|
@@ -1241,7 +1403,25 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
|
|
|
1241
1403
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1242
1404
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1243
1405
|
type: t.LiteralC<"embed">;
|
|
1244
|
-
data: t.
|
|
1406
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1407
|
+
embed_url: t.StringC;
|
|
1408
|
+
type: t.StringC;
|
|
1409
|
+
}>, t.PartialC<{
|
|
1410
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1411
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1412
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1413
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1414
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1415
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1416
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1417
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1418
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1419
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1420
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1421
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
1422
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
1423
|
+
all: t.UnknownC;
|
|
1424
|
+
}>>]>;
|
|
1245
1425
|
}>, t.PartialC<{
|
|
1246
1426
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1247
1427
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|