@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
|
@@ -7,7 +7,25 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
7
7
|
[x: string]: {
|
|
8
8
|
__TYPE__: "BooleanContent";
|
|
9
9
|
value: boolean;
|
|
10
|
-
} |
|
|
10
|
+
} | ({
|
|
11
|
+
embed_url: string;
|
|
12
|
+
type: string;
|
|
13
|
+
} & {
|
|
14
|
+
version?: string | number | null;
|
|
15
|
+
title?: string | null | undefined;
|
|
16
|
+
author_name?: string | null | undefined;
|
|
17
|
+
author_url?: string | null | undefined;
|
|
18
|
+
provider_name?: string | null | undefined;
|
|
19
|
+
provider_url?: string | null | undefined;
|
|
20
|
+
cache_age?: string | number | null;
|
|
21
|
+
thumbnail_url?: string | null | undefined;
|
|
22
|
+
thumbnail_width?: number | null | undefined;
|
|
23
|
+
thumbnail_height?: number | null | undefined;
|
|
24
|
+
html?: string | null | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
__TYPE__: "EmbedContent";
|
|
27
|
+
all: unknown;
|
|
28
|
+
}) | {
|
|
11
29
|
type: "Color";
|
|
12
30
|
value: string;
|
|
13
31
|
__TYPE__: "FieldContent";
|
|
@@ -211,7 +229,25 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
211
229
|
direction?: string | null | undefined;
|
|
212
230
|
}) | ({
|
|
213
231
|
type: "embed";
|
|
214
|
-
data:
|
|
232
|
+
data: {
|
|
233
|
+
embed_url: string;
|
|
234
|
+
type: string;
|
|
235
|
+
} & {
|
|
236
|
+
version?: string | number | null;
|
|
237
|
+
title?: string | null | undefined;
|
|
238
|
+
author_name?: string | null | undefined;
|
|
239
|
+
author_url?: string | null | undefined;
|
|
240
|
+
provider_name?: string | null | undefined;
|
|
241
|
+
provider_url?: string | null | undefined;
|
|
242
|
+
cache_age?: string | number | null;
|
|
243
|
+
thumbnail_url?: string | null | undefined;
|
|
244
|
+
thumbnail_width?: number | null | undefined;
|
|
245
|
+
thumbnail_height?: number | null | undefined;
|
|
246
|
+
html?: string | null | undefined;
|
|
247
|
+
} & {
|
|
248
|
+
__TYPE__: "EmbedContent";
|
|
249
|
+
all: unknown;
|
|
250
|
+
};
|
|
215
251
|
} & {
|
|
216
252
|
label?: string | null | undefined;
|
|
217
253
|
direction?: string | null | undefined;
|
|
@@ -241,7 +277,25 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
241
277
|
value: [string, {
|
|
242
278
|
__TYPE__: "BooleanContent";
|
|
243
279
|
value: boolean;
|
|
244
|
-
} |
|
|
280
|
+
} | ({
|
|
281
|
+
embed_url: string;
|
|
282
|
+
type: string;
|
|
283
|
+
} & {
|
|
284
|
+
version?: string | number | null;
|
|
285
|
+
title?: string | null | undefined;
|
|
286
|
+
author_name?: string | null | undefined;
|
|
287
|
+
author_url?: string | null | undefined;
|
|
288
|
+
provider_name?: string | null | undefined;
|
|
289
|
+
provider_url?: string | null | undefined;
|
|
290
|
+
cache_age?: string | number | null;
|
|
291
|
+
thumbnail_url?: string | null | undefined;
|
|
292
|
+
thumbnail_width?: number | null | undefined;
|
|
293
|
+
thumbnail_height?: number | null | undefined;
|
|
294
|
+
html?: string | null | undefined;
|
|
295
|
+
} & {
|
|
296
|
+
__TYPE__: "EmbedContent";
|
|
297
|
+
all: unknown;
|
|
298
|
+
}) | {
|
|
245
299
|
type: "Color";
|
|
246
300
|
value: string;
|
|
247
301
|
__TYPE__: "FieldContent";
|
|
@@ -445,7 +499,25 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
445
499
|
direction?: string | null | undefined;
|
|
446
500
|
}) | ({
|
|
447
501
|
type: "embed";
|
|
448
|
-
data:
|
|
502
|
+
data: {
|
|
503
|
+
embed_url: string;
|
|
504
|
+
type: string;
|
|
505
|
+
} & {
|
|
506
|
+
version?: string | number | null;
|
|
507
|
+
title?: string | null | undefined;
|
|
508
|
+
author_name?: string | null | undefined;
|
|
509
|
+
author_url?: string | null | undefined;
|
|
510
|
+
provider_name?: string | null | undefined;
|
|
511
|
+
provider_url?: string | null | undefined;
|
|
512
|
+
cache_age?: string | number | null;
|
|
513
|
+
thumbnail_url?: string | null | undefined;
|
|
514
|
+
thumbnail_width?: number | null | undefined;
|
|
515
|
+
thumbnail_height?: number | null | undefined;
|
|
516
|
+
html?: string | null | undefined;
|
|
517
|
+
} & {
|
|
518
|
+
__TYPE__: "EmbedContent";
|
|
519
|
+
all: unknown;
|
|
520
|
+
};
|
|
449
521
|
} & {
|
|
450
522
|
label?: string | null | undefined;
|
|
451
523
|
direction?: string | null | undefined;
|
|
@@ -477,7 +549,25 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
477
549
|
[x: string]: {
|
|
478
550
|
__TYPE__: "BooleanContent";
|
|
479
551
|
value: boolean;
|
|
480
|
-
} |
|
|
552
|
+
} | ({
|
|
553
|
+
embed_url: string;
|
|
554
|
+
type: string;
|
|
555
|
+
} & {
|
|
556
|
+
version?: string | number | null;
|
|
557
|
+
title?: string | null | undefined;
|
|
558
|
+
author_name?: string | null | undefined;
|
|
559
|
+
author_url?: string | null | undefined;
|
|
560
|
+
provider_name?: string | null | undefined;
|
|
561
|
+
provider_url?: string | null | undefined;
|
|
562
|
+
cache_age?: string | number | null;
|
|
563
|
+
thumbnail_url?: string | null | undefined;
|
|
564
|
+
thumbnail_width?: number | null | undefined;
|
|
565
|
+
thumbnail_height?: number | null | undefined;
|
|
566
|
+
html?: string | null | undefined;
|
|
567
|
+
} & {
|
|
568
|
+
__TYPE__: "EmbedContent";
|
|
569
|
+
all: unknown;
|
|
570
|
+
}) | {
|
|
481
571
|
type: "Color";
|
|
482
572
|
value: string;
|
|
483
573
|
__TYPE__: "FieldContent";
|
|
@@ -681,7 +771,25 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
681
771
|
direction?: string | null | undefined;
|
|
682
772
|
}) | ({
|
|
683
773
|
type: "embed";
|
|
684
|
-
data:
|
|
774
|
+
data: {
|
|
775
|
+
embed_url: string;
|
|
776
|
+
type: string;
|
|
777
|
+
} & {
|
|
778
|
+
version?: string | number | null;
|
|
779
|
+
title?: string | null | undefined;
|
|
780
|
+
author_name?: string | null | undefined;
|
|
781
|
+
author_url?: string | null | undefined;
|
|
782
|
+
provider_name?: string | null | undefined;
|
|
783
|
+
provider_url?: string | null | undefined;
|
|
784
|
+
cache_age?: string | number | null;
|
|
785
|
+
thumbnail_url?: string | null | undefined;
|
|
786
|
+
thumbnail_width?: number | null | undefined;
|
|
787
|
+
thumbnail_height?: number | null | undefined;
|
|
788
|
+
html?: string | null | undefined;
|
|
789
|
+
} & {
|
|
790
|
+
__TYPE__: "EmbedContent";
|
|
791
|
+
all: unknown;
|
|
792
|
+
};
|
|
685
793
|
} & {
|
|
686
794
|
label?: string | null | undefined;
|
|
687
795
|
direction?: string | null | undefined;
|
|
@@ -711,7 +819,25 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
711
819
|
value: [string, {
|
|
712
820
|
__TYPE__: "BooleanContent";
|
|
713
821
|
value: boolean;
|
|
714
|
-
} |
|
|
822
|
+
} | ({
|
|
823
|
+
embed_url: string;
|
|
824
|
+
type: string;
|
|
825
|
+
} & {
|
|
826
|
+
version?: string | number | null;
|
|
827
|
+
title?: string | null | undefined;
|
|
828
|
+
author_name?: string | null | undefined;
|
|
829
|
+
author_url?: string | null | undefined;
|
|
830
|
+
provider_name?: string | null | undefined;
|
|
831
|
+
provider_url?: string | null | undefined;
|
|
832
|
+
cache_age?: string | number | null;
|
|
833
|
+
thumbnail_url?: string | null | undefined;
|
|
834
|
+
thumbnail_width?: number | null | undefined;
|
|
835
|
+
thumbnail_height?: number | null | undefined;
|
|
836
|
+
html?: string | null | undefined;
|
|
837
|
+
} & {
|
|
838
|
+
__TYPE__: "EmbedContent";
|
|
839
|
+
all: unknown;
|
|
840
|
+
}) | {
|
|
715
841
|
type: "Color";
|
|
716
842
|
value: string;
|
|
717
843
|
__TYPE__: "FieldContent";
|
|
@@ -915,7 +1041,25 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
915
1041
|
direction?: string | null | undefined;
|
|
916
1042
|
}) | ({
|
|
917
1043
|
type: "embed";
|
|
918
|
-
data:
|
|
1044
|
+
data: {
|
|
1045
|
+
embed_url: string;
|
|
1046
|
+
type: string;
|
|
1047
|
+
} & {
|
|
1048
|
+
version?: string | number | null;
|
|
1049
|
+
title?: string | null | undefined;
|
|
1050
|
+
author_name?: string | null | undefined;
|
|
1051
|
+
author_url?: string | null | undefined;
|
|
1052
|
+
provider_name?: string | null | undefined;
|
|
1053
|
+
provider_url?: string | null | undefined;
|
|
1054
|
+
cache_age?: string | number | null;
|
|
1055
|
+
thumbnail_url?: string | null | undefined;
|
|
1056
|
+
thumbnail_width?: number | null | undefined;
|
|
1057
|
+
thumbnail_height?: number | null | undefined;
|
|
1058
|
+
html?: string | null | undefined;
|
|
1059
|
+
} & {
|
|
1060
|
+
__TYPE__: "EmbedContent";
|
|
1061
|
+
all: unknown;
|
|
1062
|
+
};
|
|
919
1063
|
} & {
|
|
920
1064
|
label?: string | null | undefined;
|
|
921
1065
|
direction?: string | null | undefined;
|
|
@@ -954,7 +1098,25 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
954
1098
|
}>>, t.ExactC<t.TypeC<{
|
|
955
1099
|
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
956
1100
|
value: t.BooleanC;
|
|
957
|
-
}>>, t.
|
|
1101
|
+
}>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1102
|
+
embed_url: t.StringC;
|
|
1103
|
+
type: t.StringC;
|
|
1104
|
+
}>, t.PartialC<{
|
|
1105
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1106
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1107
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1108
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1109
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1110
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1111
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1112
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1113
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1114
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1115
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1116
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
1117
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
1118
|
+
all: t.UnknownC;
|
|
1119
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
958
1120
|
type: t.LiteralC<"Text">;
|
|
959
1121
|
value: t.Type<string, string, unknown>;
|
|
960
1122
|
__TYPE__: t.LiteralC<"FieldContent">;
|
|
@@ -1193,7 +1355,25 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1193
1355
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1194
1356
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1195
1357
|
type: t.LiteralC<"embed">;
|
|
1196
|
-
data: t.
|
|
1358
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1359
|
+
embed_url: t.StringC;
|
|
1360
|
+
type: t.StringC;
|
|
1361
|
+
}>, t.PartialC<{
|
|
1362
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1363
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1364
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1365
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1366
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1367
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1368
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1369
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1370
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1371
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1372
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1373
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
1374
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
1375
|
+
all: t.UnknownC;
|
|
1376
|
+
}>>]>;
|
|
1197
1377
|
}>, t.PartialC<{
|
|
1198
1378
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1199
1379
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -1231,7 +1411,25 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1231
1411
|
}>>, t.ExactC<t.TypeC<{
|
|
1232
1412
|
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
1233
1413
|
value: t.BooleanC;
|
|
1234
|
-
}>>, t.
|
|
1414
|
+
}>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1415
|
+
embed_url: t.StringC;
|
|
1416
|
+
type: t.StringC;
|
|
1417
|
+
}>, t.PartialC<{
|
|
1418
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1419
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1420
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1421
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1422
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1423
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1424
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1425
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1426
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1427
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1428
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1429
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
1430
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
1431
|
+
all: t.UnknownC;
|
|
1432
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
1235
1433
|
type: t.LiteralC<"Text">;
|
|
1236
1434
|
value: t.Type<string, string, unknown>;
|
|
1237
1435
|
__TYPE__: t.LiteralC<"FieldContent">;
|
|
@@ -1470,7 +1668,25 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1470
1668
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1471
1669
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1472
1670
|
type: t.LiteralC<"embed">;
|
|
1473
|
-
data: t.
|
|
1671
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1672
|
+
embed_url: t.StringC;
|
|
1673
|
+
type: t.StringC;
|
|
1674
|
+
}>, t.PartialC<{
|
|
1675
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1676
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1677
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1678
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1679
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1680
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1681
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1682
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1683
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1684
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1685
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1686
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
1687
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
1688
|
+
all: t.UnknownC;
|
|
1689
|
+
}>>]>;
|
|
1474
1690
|
}>, t.PartialC<{
|
|
1475
1691
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1476
1692
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -5,7 +5,25 @@ export declare const RepeatableWidgetsLegacy: (ctx: LegacyContentCtx) => t.Array
|
|
|
5
5
|
value: [string, {
|
|
6
6
|
__TYPE__: "BooleanContent";
|
|
7
7
|
value: boolean;
|
|
8
|
-
} |
|
|
8
|
+
} | ({
|
|
9
|
+
embed_url: string;
|
|
10
|
+
type: string;
|
|
11
|
+
} & {
|
|
12
|
+
version?: string | number | null;
|
|
13
|
+
title?: string | null | undefined;
|
|
14
|
+
author_name?: string | null | undefined;
|
|
15
|
+
author_url?: string | null | undefined;
|
|
16
|
+
provider_name?: string | null | undefined;
|
|
17
|
+
provider_url?: string | null | undefined;
|
|
18
|
+
cache_age?: string | number | null;
|
|
19
|
+
thumbnail_url?: string | null | undefined;
|
|
20
|
+
thumbnail_width?: number | null | undefined;
|
|
21
|
+
thumbnail_height?: number | null | undefined;
|
|
22
|
+
html?: string | null | undefined;
|
|
23
|
+
} & {
|
|
24
|
+
__TYPE__: "EmbedContent";
|
|
25
|
+
all: unknown;
|
|
26
|
+
}) | {
|
|
9
27
|
type: "Color";
|
|
10
28
|
value: string;
|
|
11
29
|
__TYPE__: "FieldContent";
|
|
@@ -209,7 +227,25 @@ export declare const RepeatableWidgetsLegacy: (ctx: LegacyContentCtx) => t.Array
|
|
|
209
227
|
direction?: string | null | undefined;
|
|
210
228
|
}) | ({
|
|
211
229
|
type: "embed";
|
|
212
|
-
data:
|
|
230
|
+
data: {
|
|
231
|
+
embed_url: string;
|
|
232
|
+
type: string;
|
|
233
|
+
} & {
|
|
234
|
+
version?: string | number | null;
|
|
235
|
+
title?: string | null | undefined;
|
|
236
|
+
author_name?: string | null | undefined;
|
|
237
|
+
author_url?: string | null | undefined;
|
|
238
|
+
provider_name?: string | null | undefined;
|
|
239
|
+
provider_url?: string | null | undefined;
|
|
240
|
+
cache_age?: string | number | null;
|
|
241
|
+
thumbnail_url?: string | null | undefined;
|
|
242
|
+
thumbnail_width?: number | null | undefined;
|
|
243
|
+
thumbnail_height?: number | null | undefined;
|
|
244
|
+
html?: string | null | undefined;
|
|
245
|
+
} & {
|
|
246
|
+
__TYPE__: "EmbedContent";
|
|
247
|
+
all: unknown;
|
|
248
|
+
};
|
|
213
249
|
} & {
|
|
214
250
|
label?: string | null | undefined;
|
|
215
251
|
direction?: string | null | undefined;
|
|
@@ -242,7 +278,25 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
242
278
|
}>>, t.ExactC<t.TypeC<{
|
|
243
279
|
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
244
280
|
value: t.BooleanC;
|
|
245
|
-
}>>, t.
|
|
281
|
+
}>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
282
|
+
embed_url: t.StringC;
|
|
283
|
+
type: t.StringC;
|
|
284
|
+
}>, t.PartialC<{
|
|
285
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
286
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
287
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
288
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
289
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
290
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
291
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
292
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
293
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
294
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
295
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
296
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
297
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
298
|
+
all: t.UnknownC;
|
|
299
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
246
300
|
type: t.LiteralC<"Text">;
|
|
247
301
|
value: t.Type<string, string, unknown>;
|
|
248
302
|
__TYPE__: t.LiteralC<"FieldContent">;
|
|
@@ -481,7 +535,25 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
481
535
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
482
536
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
483
537
|
type: t.LiteralC<"embed">;
|
|
484
|
-
data: t.
|
|
538
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
539
|
+
embed_url: t.StringC;
|
|
540
|
+
type: t.StringC;
|
|
541
|
+
}>, t.PartialC<{
|
|
542
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
543
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
544
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
545
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
546
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
547
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
548
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
549
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
550
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
551
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
552
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
553
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
554
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
555
|
+
all: t.UnknownC;
|
|
556
|
+
}>>]>;
|
|
485
557
|
}>, t.PartialC<{
|
|
486
558
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
487
559
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|