@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
|
@@ -12,7 +12,25 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
12
12
|
}>>, t.ExactC<t.TypeC<{
|
|
13
13
|
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
14
14
|
value: t.BooleanC;
|
|
15
|
-
}>>, t.
|
|
15
|
+
}>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
16
|
+
embed_url: t.StringC;
|
|
17
|
+
type: t.StringC;
|
|
18
|
+
}>, t.PartialC<{
|
|
19
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
20
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
21
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
22
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
23
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
24
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
25
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
26
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
27
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
28
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
29
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
30
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
31
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
32
|
+
all: t.UnknownC;
|
|
33
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
16
34
|
type: t.LiteralC<"Text">;
|
|
17
35
|
value: t.Type<string, string, unknown>;
|
|
18
36
|
__TYPE__: t.LiteralC<"FieldContent">;
|
|
@@ -251,7 +269,25 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
251
269
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
252
270
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
253
271
|
type: t.LiteralC<"embed">;
|
|
254
|
-
data: t.
|
|
272
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
273
|
+
embed_url: t.StringC;
|
|
274
|
+
type: t.StringC;
|
|
275
|
+
}>, t.PartialC<{
|
|
276
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
277
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
278
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
279
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
280
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
281
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
282
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
283
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
284
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
285
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
286
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
287
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
288
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
289
|
+
all: t.UnknownC;
|
|
290
|
+
}>>]>;
|
|
255
291
|
}>, t.PartialC<{
|
|
256
292
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
257
293
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -289,7 +325,25 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
289
325
|
}>>, t.ExactC<t.TypeC<{
|
|
290
326
|
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
291
327
|
value: t.BooleanC;
|
|
292
|
-
}>>, t.
|
|
328
|
+
}>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
329
|
+
embed_url: t.StringC;
|
|
330
|
+
type: t.StringC;
|
|
331
|
+
}>, t.PartialC<{
|
|
332
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
333
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
334
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
335
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
336
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
337
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
338
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
339
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
340
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
341
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
342
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
343
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
344
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
345
|
+
all: t.UnknownC;
|
|
346
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
293
347
|
type: t.LiteralC<"Text">;
|
|
294
348
|
value: t.Type<string, string, unknown>;
|
|
295
349
|
__TYPE__: t.LiteralC<"FieldContent">;
|
|
@@ -528,7 +582,25 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
528
582
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
529
583
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
530
584
|
type: t.LiteralC<"embed">;
|
|
531
|
-
data: t.
|
|
585
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
586
|
+
embed_url: t.StringC;
|
|
587
|
+
type: t.StringC;
|
|
588
|
+
}>, t.PartialC<{
|
|
589
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
590
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
591
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
592
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
593
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
594
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
595
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
596
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
597
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
598
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
599
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
600
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
601
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
602
|
+
all: t.UnknownC;
|
|
603
|
+
}>>]>;
|
|
532
604
|
}>, t.PartialC<{
|
|
533
605
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
534
606
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -568,7 +640,25 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
568
640
|
}>>, t.ExactC<t.TypeC<{
|
|
569
641
|
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
570
642
|
value: t.BooleanC;
|
|
571
|
-
}>>, t.
|
|
643
|
+
}>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
644
|
+
embed_url: t.StringC;
|
|
645
|
+
type: t.StringC;
|
|
646
|
+
}>, t.PartialC<{
|
|
647
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
648
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
649
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
650
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
651
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
652
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
653
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
654
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
655
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
656
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
657
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
658
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
659
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
660
|
+
all: t.UnknownC;
|
|
661
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
572
662
|
type: t.LiteralC<"Text">;
|
|
573
663
|
value: t.Type<string, string, unknown>;
|
|
574
664
|
__TYPE__: t.LiteralC<"FieldContent">;
|
|
@@ -807,7 +897,25 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
807
897
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
808
898
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
809
899
|
type: t.LiteralC<"embed">;
|
|
810
|
-
data: t.
|
|
900
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
901
|
+
embed_url: t.StringC;
|
|
902
|
+
type: t.StringC;
|
|
903
|
+
}>, t.PartialC<{
|
|
904
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
905
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
906
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
907
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
908
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
909
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
910
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
911
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
912
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
913
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
914
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
915
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
916
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
917
|
+
all: t.UnknownC;
|
|
918
|
+
}>>]>;
|
|
811
919
|
}>, t.PartialC<{
|
|
812
920
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
813
921
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -845,7 +953,25 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
845
953
|
}>>, t.ExactC<t.TypeC<{
|
|
846
954
|
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
847
955
|
value: t.BooleanC;
|
|
848
|
-
}>>, t.
|
|
956
|
+
}>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
957
|
+
embed_url: t.StringC;
|
|
958
|
+
type: t.StringC;
|
|
959
|
+
}>, t.PartialC<{
|
|
960
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
961
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
962
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
963
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
964
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
965
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
966
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
967
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
968
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
969
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
970
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
971
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
972
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
973
|
+
all: t.UnknownC;
|
|
974
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
849
975
|
type: t.LiteralC<"Text">;
|
|
850
976
|
value: t.Type<string, string, unknown>;
|
|
851
977
|
__TYPE__: t.LiteralC<"FieldContent">;
|
|
@@ -1084,7 +1210,25 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1084
1210
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1085
1211
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1086
1212
|
type: t.LiteralC<"embed">;
|
|
1087
|
-
data: t.
|
|
1213
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1214
|
+
embed_url: t.StringC;
|
|
1215
|
+
type: t.StringC;
|
|
1216
|
+
}>, t.PartialC<{
|
|
1217
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1218
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1219
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1220
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1221
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1222
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1223
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1224
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1225
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1226
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1227
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1228
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
1229
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
1230
|
+
all: t.UnknownC;
|
|
1231
|
+
}>>]>;
|
|
1088
1232
|
}>, t.PartialC<{
|
|
1089
1233
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1090
1234
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -1121,7 +1265,25 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1121
1265
|
}>>, t.ExactC<t.TypeC<{
|
|
1122
1266
|
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
1123
1267
|
value: t.BooleanC;
|
|
1124
|
-
}>>, t.
|
|
1268
|
+
}>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1269
|
+
embed_url: t.StringC;
|
|
1270
|
+
type: t.StringC;
|
|
1271
|
+
}>, t.PartialC<{
|
|
1272
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1273
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1274
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1275
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1276
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1277
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1278
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1279
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1280
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1281
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1282
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1283
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
1284
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
1285
|
+
all: t.UnknownC;
|
|
1286
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
1125
1287
|
type: t.LiteralC<"Text">;
|
|
1126
1288
|
value: t.Type<string, string, unknown>;
|
|
1127
1289
|
__TYPE__: t.LiteralC<"FieldContent">;
|
|
@@ -1360,7 +1522,25 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1360
1522
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1361
1523
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1362
1524
|
type: t.LiteralC<"embed">;
|
|
1363
|
-
data: t.
|
|
1525
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1526
|
+
embed_url: t.StringC;
|
|
1527
|
+
type: t.StringC;
|
|
1528
|
+
}>, t.PartialC<{
|
|
1529
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1530
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1531
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1532
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1533
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1534
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1535
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1536
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1537
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1538
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1539
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1540
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
1541
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
1542
|
+
all: t.UnknownC;
|
|
1543
|
+
}>>]>;
|
|
1364
1544
|
}>, t.PartialC<{
|
|
1365
1545
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1366
1546
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -1399,7 +1579,25 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1399
1579
|
}>>, t.ExactC<t.TypeC<{
|
|
1400
1580
|
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
1401
1581
|
value: t.BooleanC;
|
|
1402
|
-
}>>, t.
|
|
1582
|
+
}>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1583
|
+
embed_url: t.StringC;
|
|
1584
|
+
type: t.StringC;
|
|
1585
|
+
}>, t.PartialC<{
|
|
1586
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1587
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1588
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1589
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1590
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1591
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1592
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1593
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1594
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1595
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1596
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1597
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
1598
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
1599
|
+
all: t.UnknownC;
|
|
1600
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
1403
1601
|
type: t.LiteralC<"Text">;
|
|
1404
1602
|
value: t.Type<string, string, unknown>;
|
|
1405
1603
|
__TYPE__: t.LiteralC<"FieldContent">;
|
|
@@ -1638,7 +1836,25 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1638
1836
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1639
1837
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1640
1838
|
type: t.LiteralC<"embed">;
|
|
1641
|
-
data: t.
|
|
1839
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1840
|
+
embed_url: t.StringC;
|
|
1841
|
+
type: t.StringC;
|
|
1842
|
+
}>, t.PartialC<{
|
|
1843
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1844
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1845
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1846
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1847
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1848
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1849
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1850
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1851
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1852
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1853
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1854
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
1855
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
1856
|
+
all: t.UnknownC;
|
|
1857
|
+
}>>]>;
|
|
1642
1858
|
}>, t.PartialC<{
|
|
1643
1859
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1644
1860
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -1679,7 +1895,25 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1679
1895
|
widget: {
|
|
1680
1896
|
__TYPE__: "BooleanContent";
|
|
1681
1897
|
value: boolean;
|
|
1682
|
-
} |
|
|
1898
|
+
} | ({
|
|
1899
|
+
embed_url: string;
|
|
1900
|
+
type: string;
|
|
1901
|
+
} & {
|
|
1902
|
+
version?: string | number | null;
|
|
1903
|
+
title?: string | null | undefined;
|
|
1904
|
+
author_name?: string | null | undefined;
|
|
1905
|
+
author_url?: string | null | undefined;
|
|
1906
|
+
provider_name?: string | null | undefined;
|
|
1907
|
+
provider_url?: string | null | undefined;
|
|
1908
|
+
cache_age?: string | number | null;
|
|
1909
|
+
thumbnail_url?: string | null | undefined;
|
|
1910
|
+
thumbnail_width?: number | null | undefined;
|
|
1911
|
+
thumbnail_height?: number | null | undefined;
|
|
1912
|
+
html?: string | null | undefined;
|
|
1913
|
+
} & {
|
|
1914
|
+
__TYPE__: "EmbedContent";
|
|
1915
|
+
all: unknown;
|
|
1916
|
+
}) | {
|
|
1683
1917
|
type: "Color";
|
|
1684
1918
|
value: string;
|
|
1685
1919
|
__TYPE__: "FieldContent";
|
|
@@ -1883,7 +2117,25 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1883
2117
|
direction?: string | null | undefined;
|
|
1884
2118
|
}) | ({
|
|
1885
2119
|
type: "embed";
|
|
1886
|
-
data:
|
|
2120
|
+
data: {
|
|
2121
|
+
embed_url: string;
|
|
2122
|
+
type: string;
|
|
2123
|
+
} & {
|
|
2124
|
+
version?: string | number | null;
|
|
2125
|
+
title?: string | null | undefined;
|
|
2126
|
+
author_name?: string | null | undefined;
|
|
2127
|
+
author_url?: string | null | undefined;
|
|
2128
|
+
provider_name?: string | null | undefined;
|
|
2129
|
+
provider_url?: string | null | undefined;
|
|
2130
|
+
cache_age?: string | number | null;
|
|
2131
|
+
thumbnail_url?: string | null | undefined;
|
|
2132
|
+
thumbnail_width?: number | null | undefined;
|
|
2133
|
+
thumbnail_height?: number | null | undefined;
|
|
2134
|
+
html?: string | null | undefined;
|
|
2135
|
+
} & {
|
|
2136
|
+
__TYPE__: "EmbedContent";
|
|
2137
|
+
all: unknown;
|
|
2138
|
+
};
|
|
1887
2139
|
} & {
|
|
1888
2140
|
label?: string | null | undefined;
|
|
1889
2141
|
direction?: string | null | undefined;
|
|
@@ -1913,7 +2165,25 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1913
2165
|
value: [string, {
|
|
1914
2166
|
__TYPE__: "BooleanContent";
|
|
1915
2167
|
value: boolean;
|
|
1916
|
-
} |
|
|
2168
|
+
} | ({
|
|
2169
|
+
embed_url: string;
|
|
2170
|
+
type: string;
|
|
2171
|
+
} & {
|
|
2172
|
+
version?: string | number | null;
|
|
2173
|
+
title?: string | null | undefined;
|
|
2174
|
+
author_name?: string | null | undefined;
|
|
2175
|
+
author_url?: string | null | undefined;
|
|
2176
|
+
provider_name?: string | null | undefined;
|
|
2177
|
+
provider_url?: string | null | undefined;
|
|
2178
|
+
cache_age?: string | number | null;
|
|
2179
|
+
thumbnail_url?: string | null | undefined;
|
|
2180
|
+
thumbnail_width?: number | null | undefined;
|
|
2181
|
+
thumbnail_height?: number | null | undefined;
|
|
2182
|
+
html?: string | null | undefined;
|
|
2183
|
+
} & {
|
|
2184
|
+
__TYPE__: "EmbedContent";
|
|
2185
|
+
all: unknown;
|
|
2186
|
+
}) | {
|
|
1917
2187
|
type: "Color";
|
|
1918
2188
|
value: string;
|
|
1919
2189
|
__TYPE__: "FieldContent";
|
|
@@ -2117,7 +2387,25 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2117
2387
|
direction?: string | null | undefined;
|
|
2118
2388
|
}) | ({
|
|
2119
2389
|
type: "embed";
|
|
2120
|
-
data:
|
|
2390
|
+
data: {
|
|
2391
|
+
embed_url: string;
|
|
2392
|
+
type: string;
|
|
2393
|
+
} & {
|
|
2394
|
+
version?: string | number | null;
|
|
2395
|
+
title?: string | null | undefined;
|
|
2396
|
+
author_name?: string | null | undefined;
|
|
2397
|
+
author_url?: string | null | undefined;
|
|
2398
|
+
provider_name?: string | null | undefined;
|
|
2399
|
+
provider_url?: string | null | undefined;
|
|
2400
|
+
cache_age?: string | number | null;
|
|
2401
|
+
thumbnail_url?: string | null | undefined;
|
|
2402
|
+
thumbnail_width?: number | null | undefined;
|
|
2403
|
+
thumbnail_height?: number | null | undefined;
|
|
2404
|
+
html?: string | null | undefined;
|
|
2405
|
+
} & {
|
|
2406
|
+
__TYPE__: "EmbedContent";
|
|
2407
|
+
all: unknown;
|
|
2408
|
+
};
|
|
2121
2409
|
} & {
|
|
2122
2410
|
label?: string | null | undefined;
|
|
2123
2411
|
direction?: string | null | undefined;
|
|
@@ -2148,7 +2436,25 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2148
2436
|
[x: string]: {
|
|
2149
2437
|
__TYPE__: "BooleanContent";
|
|
2150
2438
|
value: boolean;
|
|
2151
|
-
} |
|
|
2439
|
+
} | ({
|
|
2440
|
+
embed_url: string;
|
|
2441
|
+
type: string;
|
|
2442
|
+
} & {
|
|
2443
|
+
version?: string | number | null;
|
|
2444
|
+
title?: string | null | undefined;
|
|
2445
|
+
author_name?: string | null | undefined;
|
|
2446
|
+
author_url?: string | null | undefined;
|
|
2447
|
+
provider_name?: string | null | undefined;
|
|
2448
|
+
provider_url?: string | null | undefined;
|
|
2449
|
+
cache_age?: string | number | null;
|
|
2450
|
+
thumbnail_url?: string | null | undefined;
|
|
2451
|
+
thumbnail_width?: number | null | undefined;
|
|
2452
|
+
thumbnail_height?: number | null | undefined;
|
|
2453
|
+
html?: string | null | undefined;
|
|
2454
|
+
} & {
|
|
2455
|
+
__TYPE__: "EmbedContent";
|
|
2456
|
+
all: unknown;
|
|
2457
|
+
}) | {
|
|
2152
2458
|
type: "Color";
|
|
2153
2459
|
value: string;
|
|
2154
2460
|
__TYPE__: "FieldContent";
|
|
@@ -2352,7 +2658,25 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2352
2658
|
direction?: string | null | undefined;
|
|
2353
2659
|
}) | ({
|
|
2354
2660
|
type: "embed";
|
|
2355
|
-
data:
|
|
2661
|
+
data: {
|
|
2662
|
+
embed_url: string;
|
|
2663
|
+
type: string;
|
|
2664
|
+
} & {
|
|
2665
|
+
version?: string | number | null;
|
|
2666
|
+
title?: string | null | undefined;
|
|
2667
|
+
author_name?: string | null | undefined;
|
|
2668
|
+
author_url?: string | null | undefined;
|
|
2669
|
+
provider_name?: string | null | undefined;
|
|
2670
|
+
provider_url?: string | null | undefined;
|
|
2671
|
+
cache_age?: string | number | null;
|
|
2672
|
+
thumbnail_url?: string | null | undefined;
|
|
2673
|
+
thumbnail_width?: number | null | undefined;
|
|
2674
|
+
thumbnail_height?: number | null | undefined;
|
|
2675
|
+
html?: string | null | undefined;
|
|
2676
|
+
} & {
|
|
2677
|
+
__TYPE__: "EmbedContent";
|
|
2678
|
+
all: unknown;
|
|
2679
|
+
};
|
|
2356
2680
|
} & {
|
|
2357
2681
|
label?: string | null | undefined;
|
|
2358
2682
|
direction?: string | null | undefined;
|
|
@@ -2382,7 +2706,25 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2382
2706
|
value: [string, {
|
|
2383
2707
|
__TYPE__: "BooleanContent";
|
|
2384
2708
|
value: boolean;
|
|
2385
|
-
} |
|
|
2709
|
+
} | ({
|
|
2710
|
+
embed_url: string;
|
|
2711
|
+
type: string;
|
|
2712
|
+
} & {
|
|
2713
|
+
version?: string | number | null;
|
|
2714
|
+
title?: string | null | undefined;
|
|
2715
|
+
author_name?: string | null | undefined;
|
|
2716
|
+
author_url?: string | null | undefined;
|
|
2717
|
+
provider_name?: string | null | undefined;
|
|
2718
|
+
provider_url?: string | null | undefined;
|
|
2719
|
+
cache_age?: string | number | null;
|
|
2720
|
+
thumbnail_url?: string | null | undefined;
|
|
2721
|
+
thumbnail_width?: number | null | undefined;
|
|
2722
|
+
thumbnail_height?: number | null | undefined;
|
|
2723
|
+
html?: string | null | undefined;
|
|
2724
|
+
} & {
|
|
2725
|
+
__TYPE__: "EmbedContent";
|
|
2726
|
+
all: unknown;
|
|
2727
|
+
}) | {
|
|
2386
2728
|
type: "Color";
|
|
2387
2729
|
value: string;
|
|
2388
2730
|
__TYPE__: "FieldContent";
|
|
@@ -2586,7 +2928,25 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2586
2928
|
direction?: string | null | undefined;
|
|
2587
2929
|
}) | ({
|
|
2588
2930
|
type: "embed";
|
|
2589
|
-
data:
|
|
2931
|
+
data: {
|
|
2932
|
+
embed_url: string;
|
|
2933
|
+
type: string;
|
|
2934
|
+
} & {
|
|
2935
|
+
version?: string | number | null;
|
|
2936
|
+
title?: string | null | undefined;
|
|
2937
|
+
author_name?: string | null | undefined;
|
|
2938
|
+
author_url?: string | null | undefined;
|
|
2939
|
+
provider_name?: string | null | undefined;
|
|
2940
|
+
provider_url?: string | null | undefined;
|
|
2941
|
+
cache_age?: string | number | null;
|
|
2942
|
+
thumbnail_url?: string | null | undefined;
|
|
2943
|
+
thumbnail_width?: number | null | undefined;
|
|
2944
|
+
thumbnail_height?: number | null | undefined;
|
|
2945
|
+
html?: string | null | undefined;
|
|
2946
|
+
} & {
|
|
2947
|
+
__TYPE__: "EmbedContent";
|
|
2948
|
+
all: unknown;
|
|
2949
|
+
};
|
|
2590
2950
|
} & {
|
|
2591
2951
|
label?: string | null | undefined;
|
|
2592
2952
|
direction?: string | null | undefined;
|
|
@@ -2618,7 +2978,25 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2618
2978
|
[x: string]: {
|
|
2619
2979
|
__TYPE__: "BooleanContent";
|
|
2620
2980
|
value: boolean;
|
|
2621
|
-
} |
|
|
2981
|
+
} | ({
|
|
2982
|
+
embed_url: string;
|
|
2983
|
+
type: string;
|
|
2984
|
+
} & {
|
|
2985
|
+
version?: string | number | null;
|
|
2986
|
+
title?: string | null | undefined;
|
|
2987
|
+
author_name?: string | null | undefined;
|
|
2988
|
+
author_url?: string | null | undefined;
|
|
2989
|
+
provider_name?: string | null | undefined;
|
|
2990
|
+
provider_url?: string | null | undefined;
|
|
2991
|
+
cache_age?: string | number | null;
|
|
2992
|
+
thumbnail_url?: string | null | undefined;
|
|
2993
|
+
thumbnail_width?: number | null | undefined;
|
|
2994
|
+
thumbnail_height?: number | null | undefined;
|
|
2995
|
+
html?: string | null | undefined;
|
|
2996
|
+
} & {
|
|
2997
|
+
__TYPE__: "EmbedContent";
|
|
2998
|
+
all: unknown;
|
|
2999
|
+
}) | {
|
|
2622
3000
|
type: "Color";
|
|
2623
3001
|
value: string;
|
|
2624
3002
|
__TYPE__: "FieldContent";
|
|
@@ -2822,7 +3200,25 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2822
3200
|
direction?: string | null | undefined;
|
|
2823
3201
|
}) | ({
|
|
2824
3202
|
type: "embed";
|
|
2825
|
-
data:
|
|
3203
|
+
data: {
|
|
3204
|
+
embed_url: string;
|
|
3205
|
+
type: string;
|
|
3206
|
+
} & {
|
|
3207
|
+
version?: string | number | null;
|
|
3208
|
+
title?: string | null | undefined;
|
|
3209
|
+
author_name?: string | null | undefined;
|
|
3210
|
+
author_url?: string | null | undefined;
|
|
3211
|
+
provider_name?: string | null | undefined;
|
|
3212
|
+
provider_url?: string | null | undefined;
|
|
3213
|
+
cache_age?: string | number | null;
|
|
3214
|
+
thumbnail_url?: string | null | undefined;
|
|
3215
|
+
thumbnail_width?: number | null | undefined;
|
|
3216
|
+
thumbnail_height?: number | null | undefined;
|
|
3217
|
+
html?: string | null | undefined;
|
|
3218
|
+
} & {
|
|
3219
|
+
__TYPE__: "EmbedContent";
|
|
3220
|
+
all: unknown;
|
|
3221
|
+
};
|
|
2826
3222
|
} & {
|
|
2827
3223
|
label?: string | null | undefined;
|
|
2828
3224
|
direction?: string | null | undefined;
|
|
@@ -2852,7 +3248,25 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2852
3248
|
value: [string, {
|
|
2853
3249
|
__TYPE__: "BooleanContent";
|
|
2854
3250
|
value: boolean;
|
|
2855
|
-
} |
|
|
3251
|
+
} | ({
|
|
3252
|
+
embed_url: string;
|
|
3253
|
+
type: string;
|
|
3254
|
+
} & {
|
|
3255
|
+
version?: string | number | null;
|
|
3256
|
+
title?: string | null | undefined;
|
|
3257
|
+
author_name?: string | null | undefined;
|
|
3258
|
+
author_url?: string | null | undefined;
|
|
3259
|
+
provider_name?: string | null | undefined;
|
|
3260
|
+
provider_url?: string | null | undefined;
|
|
3261
|
+
cache_age?: string | number | null;
|
|
3262
|
+
thumbnail_url?: string | null | undefined;
|
|
3263
|
+
thumbnail_width?: number | null | undefined;
|
|
3264
|
+
thumbnail_height?: number | null | undefined;
|
|
3265
|
+
html?: string | null | undefined;
|
|
3266
|
+
} & {
|
|
3267
|
+
__TYPE__: "EmbedContent";
|
|
3268
|
+
all: unknown;
|
|
3269
|
+
}) | {
|
|
2856
3270
|
type: "Color";
|
|
2857
3271
|
value: string;
|
|
2858
3272
|
__TYPE__: "FieldContent";
|
|
@@ -3056,7 +3470,25 @@ export declare const SlicesItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
3056
3470
|
direction?: string | null | undefined;
|
|
3057
3471
|
}) | ({
|
|
3058
3472
|
type: "embed";
|
|
3059
|
-
data:
|
|
3473
|
+
data: {
|
|
3474
|
+
embed_url: string;
|
|
3475
|
+
type: string;
|
|
3476
|
+
} & {
|
|
3477
|
+
version?: string | number | null;
|
|
3478
|
+
title?: string | null | undefined;
|
|
3479
|
+
author_name?: string | null | undefined;
|
|
3480
|
+
author_url?: string | null | undefined;
|
|
3481
|
+
provider_name?: string | null | undefined;
|
|
3482
|
+
provider_url?: string | null | undefined;
|
|
3483
|
+
cache_age?: string | number | null;
|
|
3484
|
+
thumbnail_url?: string | null | undefined;
|
|
3485
|
+
thumbnail_width?: number | null | undefined;
|
|
3486
|
+
thumbnail_height?: number | null | undefined;
|
|
3487
|
+
html?: string | null | undefined;
|
|
3488
|
+
} & {
|
|
3489
|
+
__TYPE__: "EmbedContent";
|
|
3490
|
+
all: unknown;
|
|
3491
|
+
};
|
|
3060
3492
|
} & {
|
|
3061
3493
|
label?: string | null | undefined;
|
|
3062
3494
|
direction?: string | null | undefined;
|
|
@@ -35,7 +35,7 @@ const SlicesItemLegacy = (ctx) => {
|
|
|
35
35
|
var _a;
|
|
36
36
|
const stopIdx = parsedSlice.key.indexOf("$");
|
|
37
37
|
const sliceName = parsedSlice.key.substring(0, stopIdx > 0 ? stopIdx : undefined);
|
|
38
|
-
const itemCtx = (0, LegacyContentCtx_1.getFieldCtx)(
|
|
38
|
+
const itemCtx = (0, LegacyContentCtx_1.getFieldCtx)(sliceName, ctx);
|
|
39
39
|
const item = (0, Slice_1.SliceLegacy)(itemCtx).decode(parsedSlice.value);
|
|
40
40
|
if (!item || (0, Either_1.isLeft)(item))
|
|
41
41
|
return t.failure(sliceItem, context);
|
|
@@ -47,7 +47,7 @@ const SlicesItemLegacy = (ctx) => {
|
|
|
47
47
|
});
|
|
48
48
|
}));
|
|
49
49
|
}, (sItem) => {
|
|
50
|
-
const itemCtx = (0, LegacyContentCtx_1.getFieldCtx)(sItem.
|
|
50
|
+
const itemCtx = (0, LegacyContentCtx_1.getFieldCtx)(sItem.name, ctx);
|
|
51
51
|
const result = (0, Slice_1.SliceLegacy)(itemCtx).encode(sItem.widget);
|
|
52
52
|
return {
|
|
53
53
|
content: {
|