@prismicio/types-internal 2.0.0-alpha.4 → 2.0.0-alpha.6
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 +72 -616
- package/lib/content/Document.js +4 -3
- package/lib/content/fields/GroupContent.d.ts +23 -193
- package/lib/content/fields/GroupContent.js +3 -3
- package/lib/content/fields/WidgetContent.d.ts +104 -920
- package/lib/content/fields/nestable/EmbedContent.d.ts +30 -45
- package/lib/content/fields/nestable/EmbedContent.js +25 -12
- package/lib/content/fields/nestable/LinkContent.d.ts +8 -8
- package/lib/content/fields/nestable/LinkContent.js +1 -1
- package/lib/content/fields/nestable/NestableContent.d.ts +14 -115
- package/lib/content/fields/nestable/NestableContent.js +2 -1
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +11 -78
- package/lib/content/fields/nestable/RichTextContent/Blocks.js +5 -5
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +9 -77
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +26 -230
- package/lib/content/fields/slices/Slice/CompositeSliceContent.js +4 -4
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +9 -77
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +26 -230
- package/lib/content/fields/slices/Slice/SharedSliceContent.js +4 -4
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +22 -192
- package/lib/content/fields/slices/Slice/index.d.ts +50 -424
- package/lib/content/fields/slices/SliceItem.d.ts +54 -462
- package/lib/content/fields/slices/SliceItem.js +2 -1
- package/lib/content/fields/slices/SlicesContent.d.ts +78 -690
- package/lib/content/utils.js +3 -3
- package/lib/customtypes/index.d.ts +2 -2
- package/lib/customtypes/index.js +2 -3
- package/lib/customtypes/widgets/nestable/RichText.d.ts +1 -1
- package/lib/customtypes/widgets/nestable/RichText.js +10 -10
- package/lib/customtypes/widgets/slices/Slices.d.ts +12 -3
- package/lib/customtypes/widgets/slices/Slices.js +4 -4
- package/lib/customtypes/widgets/slices/index.d.ts +6 -6
- package/lib/customtypes/widgets/slices/index.js +6 -11
- package/package.json +1 -1
- package/src/content/Document.ts +4 -3
- package/src/content/fields/GroupContent.ts +4 -4
- package/src/content/fields/nestable/EmbedContent.ts +52 -28
- package/src/content/fields/nestable/LinkContent.ts +1 -1
- package/src/content/fields/nestable/NestableContent.ts +2 -1
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +6 -5
- package/src/content/fields/slices/Slice/CompositeSliceContent.ts +4 -3
- package/src/content/fields/slices/Slice/SharedSliceContent.ts +4 -3
- package/src/content/fields/slices/SliceItem.ts +2 -2
- package/src/content/utils.ts +4 -5
- package/src/customtypes/index.ts +2 -2
- package/src/customtypes/widgets/nestable/RichText.ts +16 -16
- package/src/customtypes/widgets/slices/Slices.ts +4 -4
- package/src/customtypes/widgets/slices/index.ts +6 -6
|
@@ -6,24 +6,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
6
6
|
}>>, t.ExactC<t.TypeC<{
|
|
7
7
|
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
8
8
|
value: t.BooleanC;
|
|
9
|
-
}>>, t.
|
|
10
|
-
embed_url: t.StringC;
|
|
11
|
-
type: t.StringC;
|
|
12
|
-
}>, t.PartialC<{
|
|
13
|
-
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
14
|
-
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
15
|
-
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
16
|
-
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
17
|
-
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
18
|
-
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
19
|
-
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
20
|
-
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
21
|
-
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
22
|
-
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
23
|
-
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
24
|
-
}>]>>, t.ExactC<t.TypeC<{
|
|
25
|
-
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
26
|
-
}>>]>, t.ExactC<t.TypeC<{
|
|
9
|
+
}>>, t.Type<import("../../nestable").EmbedContent, import("../../nestable").EmbedContent, unknown>, t.ExactC<t.TypeC<{
|
|
27
10
|
type: t.LiteralC<"Text">;
|
|
28
11
|
value: t.Type<string, string, unknown>;
|
|
29
12
|
__TYPE__: t.LiteralC<"FieldContent">;
|
|
@@ -128,9 +111,9 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
128
111
|
url: t.StringC;
|
|
129
112
|
name: t.StringC;
|
|
130
113
|
kind: t.StringC;
|
|
114
|
+
size: t.StringC;
|
|
131
115
|
}>, t.PartialC<{
|
|
132
116
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
133
|
-
size: t.StringC;
|
|
134
117
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
135
118
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
136
119
|
}>, t.PartialC<{
|
|
@@ -196,9 +179,9 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
196
179
|
url: string;
|
|
197
180
|
name: string;
|
|
198
181
|
kind: string;
|
|
182
|
+
size: string;
|
|
199
183
|
} & {
|
|
200
184
|
date?: string | null | undefined;
|
|
201
|
-
size?: string;
|
|
202
185
|
} & {
|
|
203
186
|
__TYPE__: "FileLink";
|
|
204
187
|
} & {
|
|
@@ -234,9 +217,9 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
234
217
|
url: string;
|
|
235
218
|
name: string;
|
|
236
219
|
kind: string;
|
|
220
|
+
size: string;
|
|
237
221
|
} & {
|
|
238
222
|
date?: string | null | undefined;
|
|
239
|
-
size?: string;
|
|
240
223
|
} & {
|
|
241
224
|
__TYPE__: "FileLink";
|
|
242
225
|
} & {
|
|
@@ -262,24 +245,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
262
245
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
263
246
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
264
247
|
type: t.LiteralC<"embed">;
|
|
265
|
-
data: t.
|
|
266
|
-
embed_url: t.StringC;
|
|
267
|
-
type: t.StringC;
|
|
268
|
-
}>, t.PartialC<{
|
|
269
|
-
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
270
|
-
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
271
|
-
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
272
|
-
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
273
|
-
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
274
|
-
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
275
|
-
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
276
|
-
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
277
|
-
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
278
|
-
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
279
|
-
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
280
|
-
}>]>>, t.ExactC<t.TypeC<{
|
|
281
|
-
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
282
|
-
}>>]>;
|
|
248
|
+
data: t.Type<import("../../nestable").EmbedContent, import("../../nestable").EmbedContent, unknown>;
|
|
283
249
|
}>, t.PartialC<{
|
|
284
250
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
285
251
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -318,24 +284,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
318
284
|
}>>, t.ExactC<t.TypeC<{
|
|
319
285
|
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
320
286
|
value: t.BooleanC;
|
|
321
|
-
}>>, t.
|
|
322
|
-
embed_url: t.StringC;
|
|
323
|
-
type: t.StringC;
|
|
324
|
-
}>, t.PartialC<{
|
|
325
|
-
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
326
|
-
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
327
|
-
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
328
|
-
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
329
|
-
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
330
|
-
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
331
|
-
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
332
|
-
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
333
|
-
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
334
|
-
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
335
|
-
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
336
|
-
}>]>>, t.ExactC<t.TypeC<{
|
|
337
|
-
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
338
|
-
}>>]>, t.ExactC<t.TypeC<{
|
|
287
|
+
}>>, t.Type<import("../../nestable").EmbedContent, import("../../nestable").EmbedContent, unknown>, t.ExactC<t.TypeC<{
|
|
339
288
|
type: t.LiteralC<"Text">;
|
|
340
289
|
value: t.Type<string, string, unknown>;
|
|
341
290
|
__TYPE__: t.LiteralC<"FieldContent">;
|
|
@@ -440,9 +389,9 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
440
389
|
url: t.StringC;
|
|
441
390
|
name: t.StringC;
|
|
442
391
|
kind: t.StringC;
|
|
392
|
+
size: t.StringC;
|
|
443
393
|
}>, t.PartialC<{
|
|
444
394
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
445
|
-
size: t.StringC;
|
|
446
395
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
447
396
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
448
397
|
}>, t.PartialC<{
|
|
@@ -508,9 +457,9 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
508
457
|
url: string;
|
|
509
458
|
name: string;
|
|
510
459
|
kind: string;
|
|
460
|
+
size: string;
|
|
511
461
|
} & {
|
|
512
462
|
date?: string | null | undefined;
|
|
513
|
-
size?: string;
|
|
514
463
|
} & {
|
|
515
464
|
__TYPE__: "FileLink";
|
|
516
465
|
} & {
|
|
@@ -546,9 +495,9 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
546
495
|
url: string;
|
|
547
496
|
name: string;
|
|
548
497
|
kind: string;
|
|
498
|
+
size: string;
|
|
549
499
|
} & {
|
|
550
500
|
date?: string | null | undefined;
|
|
551
|
-
size?: string;
|
|
552
501
|
} & {
|
|
553
502
|
__TYPE__: "FileLink";
|
|
554
503
|
} & {
|
|
@@ -574,24 +523,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
574
523
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
575
524
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
576
525
|
type: t.LiteralC<"embed">;
|
|
577
|
-
data: t.
|
|
578
|
-
embed_url: t.StringC;
|
|
579
|
-
type: t.StringC;
|
|
580
|
-
}>, t.PartialC<{
|
|
581
|
-
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
582
|
-
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
583
|
-
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
584
|
-
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
585
|
-
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
586
|
-
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
587
|
-
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
588
|
-
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
589
|
-
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
590
|
-
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
591
|
-
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
592
|
-
}>]>>, t.ExactC<t.TypeC<{
|
|
593
|
-
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
594
|
-
}>>]>;
|
|
526
|
+
data: t.Type<import("../../nestable").EmbedContent, import("../../nestable").EmbedContent, unknown>;
|
|
595
527
|
}>, t.PartialC<{
|
|
596
528
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
597
529
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -627,24 +559,7 @@ export type SimpleSliceContent = t.TypeOf<typeof SimpleSliceContent>;
|
|
|
627
559
|
export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
628
560
|
__TYPE__: "BooleanContent";
|
|
629
561
|
value: boolean;
|
|
630
|
-
} | ({
|
|
631
|
-
embed_url: string;
|
|
632
|
-
type: string;
|
|
633
|
-
} & {
|
|
634
|
-
version?: string | number | null;
|
|
635
|
-
title?: string | null | undefined;
|
|
636
|
-
author_name?: string | null | undefined;
|
|
637
|
-
author_url?: string | null | undefined;
|
|
638
|
-
provider_name?: string | null | undefined;
|
|
639
|
-
provider_url?: string | null | undefined;
|
|
640
|
-
cache_age?: string | number | null;
|
|
641
|
-
thumbnail_url?: string | null | undefined;
|
|
642
|
-
thumbnail_width?: number | null | undefined;
|
|
643
|
-
thumbnail_height?: number | null | undefined;
|
|
644
|
-
html?: string | null | undefined;
|
|
645
|
-
} & {
|
|
646
|
-
__TYPE__: "EmbedContent";
|
|
647
|
-
}) | {
|
|
562
|
+
} | import("../../nestable").EmbedContent | {
|
|
648
563
|
type: "Color";
|
|
649
564
|
value: string;
|
|
650
565
|
__TYPE__: "FieldContent";
|
|
@@ -751,9 +666,9 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
751
666
|
url: string;
|
|
752
667
|
name: string;
|
|
753
668
|
kind: string;
|
|
669
|
+
size: string;
|
|
754
670
|
} & {
|
|
755
671
|
date?: string | null | undefined;
|
|
756
|
-
size?: string;
|
|
757
672
|
} & {
|
|
758
673
|
__TYPE__: "FileLink";
|
|
759
674
|
} & {
|
|
@@ -820,9 +735,9 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
820
735
|
url: string;
|
|
821
736
|
name: string;
|
|
822
737
|
kind: string;
|
|
738
|
+
size: string;
|
|
823
739
|
} & {
|
|
824
740
|
date?: string | null | undefined;
|
|
825
|
-
size?: string;
|
|
826
741
|
} & {
|
|
827
742
|
__TYPE__: "FileLink";
|
|
828
743
|
} & {
|
|
@@ -848,24 +763,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
848
763
|
direction?: string | null | undefined;
|
|
849
764
|
}) | ({
|
|
850
765
|
type: "embed";
|
|
851
|
-
data:
|
|
852
|
-
embed_url: string;
|
|
853
|
-
type: string;
|
|
854
|
-
} & {
|
|
855
|
-
version?: string | number | null;
|
|
856
|
-
title?: string | null | undefined;
|
|
857
|
-
author_name?: string | null | undefined;
|
|
858
|
-
author_url?: string | null | undefined;
|
|
859
|
-
provider_name?: string | null | undefined;
|
|
860
|
-
provider_url?: string | null | undefined;
|
|
861
|
-
cache_age?: string | number | null;
|
|
862
|
-
thumbnail_url?: string | null | undefined;
|
|
863
|
-
thumbnail_width?: number | null | undefined;
|
|
864
|
-
thumbnail_height?: number | null | undefined;
|
|
865
|
-
html?: string | null | undefined;
|
|
866
|
-
} & {
|
|
867
|
-
__TYPE__: "EmbedContent";
|
|
868
|
-
};
|
|
766
|
+
data: import("../../nestable").EmbedContent;
|
|
869
767
|
} & {
|
|
870
768
|
label?: string | null | undefined;
|
|
871
769
|
direction?: string | null | undefined;
|
|
@@ -895,24 +793,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
895
793
|
value: [string, {
|
|
896
794
|
__TYPE__: "BooleanContent";
|
|
897
795
|
value: boolean;
|
|
898
|
-
} | ({
|
|
899
|
-
embed_url: string;
|
|
900
|
-
type: string;
|
|
901
|
-
} & {
|
|
902
|
-
version?: string | number | null;
|
|
903
|
-
title?: string | null | undefined;
|
|
904
|
-
author_name?: string | null | undefined;
|
|
905
|
-
author_url?: string | null | undefined;
|
|
906
|
-
provider_name?: string | null | undefined;
|
|
907
|
-
provider_url?: string | null | undefined;
|
|
908
|
-
cache_age?: string | number | null;
|
|
909
|
-
thumbnail_url?: string | null | undefined;
|
|
910
|
-
thumbnail_width?: number | null | undefined;
|
|
911
|
-
thumbnail_height?: number | null | undefined;
|
|
912
|
-
html?: string | null | undefined;
|
|
913
|
-
} & {
|
|
914
|
-
__TYPE__: "EmbedContent";
|
|
915
|
-
}) | {
|
|
796
|
+
} | import("../../nestable").EmbedContent | {
|
|
916
797
|
type: "Color";
|
|
917
798
|
value: string;
|
|
918
799
|
__TYPE__: "FieldContent";
|
|
@@ -1019,9 +900,9 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
1019
900
|
url: string;
|
|
1020
901
|
name: string;
|
|
1021
902
|
kind: string;
|
|
903
|
+
size: string;
|
|
1022
904
|
} & {
|
|
1023
905
|
date?: string | null | undefined;
|
|
1024
|
-
size?: string;
|
|
1025
906
|
} & {
|
|
1026
907
|
__TYPE__: "FileLink";
|
|
1027
908
|
} & {
|
|
@@ -1088,9 +969,9 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
1088
969
|
url: string;
|
|
1089
970
|
name: string;
|
|
1090
971
|
kind: string;
|
|
972
|
+
size: string;
|
|
1091
973
|
} & {
|
|
1092
974
|
date?: string | null | undefined;
|
|
1093
|
-
size?: string;
|
|
1094
975
|
} & {
|
|
1095
976
|
__TYPE__: "FileLink";
|
|
1096
977
|
} & {
|
|
@@ -1116,24 +997,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
1116
997
|
direction?: string | null | undefined;
|
|
1117
998
|
}) | ({
|
|
1118
999
|
type: "embed";
|
|
1119
|
-
data:
|
|
1120
|
-
embed_url: string;
|
|
1121
|
-
type: string;
|
|
1122
|
-
} & {
|
|
1123
|
-
version?: string | number | null;
|
|
1124
|
-
title?: string | null | undefined;
|
|
1125
|
-
author_name?: string | null | undefined;
|
|
1126
|
-
author_url?: string | null | undefined;
|
|
1127
|
-
provider_name?: string | null | undefined;
|
|
1128
|
-
provider_url?: string | null | undefined;
|
|
1129
|
-
cache_age?: string | number | null;
|
|
1130
|
-
thumbnail_url?: string | null | undefined;
|
|
1131
|
-
thumbnail_width?: number | null | undefined;
|
|
1132
|
-
thumbnail_height?: number | null | undefined;
|
|
1133
|
-
html?: string | null | undefined;
|
|
1134
|
-
} & {
|
|
1135
|
-
__TYPE__: "EmbedContent";
|
|
1136
|
-
};
|
|
1000
|
+
data: import("../../nestable").EmbedContent;
|
|
1137
1001
|
} & {
|
|
1138
1002
|
label?: string | null | undefined;
|
|
1139
1003
|
direction?: string | null | undefined;
|
|
@@ -1163,24 +1027,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1163
1027
|
decode: (value: unknown) => import("fp-ts/lib/Either").Left<t.Errors> | import("fp-ts/lib/Either").Right<{
|
|
1164
1028
|
__TYPE__: "BooleanContent";
|
|
1165
1029
|
value: boolean;
|
|
1166
|
-
}> | import("fp-ts/lib/Either").Right<{
|
|
1167
|
-
embed_url: string;
|
|
1168
|
-
type: string;
|
|
1169
|
-
} & {
|
|
1170
|
-
version?: string | number | null;
|
|
1171
|
-
title?: string | null | undefined;
|
|
1172
|
-
author_name?: string | null | undefined;
|
|
1173
|
-
author_url?: string | null | undefined;
|
|
1174
|
-
provider_name?: string | null | undefined;
|
|
1175
|
-
provider_url?: string | null | undefined;
|
|
1176
|
-
cache_age?: string | number | null;
|
|
1177
|
-
thumbnail_url?: string | null | undefined;
|
|
1178
|
-
thumbnail_width?: number | null | undefined;
|
|
1179
|
-
thumbnail_height?: number | null | undefined;
|
|
1180
|
-
html?: string | null | undefined;
|
|
1181
|
-
} & {
|
|
1182
|
-
__TYPE__: "EmbedContent";
|
|
1183
|
-
}> | import("fp-ts/lib/Either").Right<{
|
|
1030
|
+
}> | import("fp-ts/lib/Either").Right<import("../../nestable").EmbedContent> | import("fp-ts/lib/Either").Right<{
|
|
1184
1031
|
type: "Color";
|
|
1185
1032
|
value: string;
|
|
1186
1033
|
__TYPE__: "FieldContent";
|
|
@@ -1287,9 +1134,9 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1287
1134
|
url: string;
|
|
1288
1135
|
name: string;
|
|
1289
1136
|
kind: string;
|
|
1137
|
+
size: string;
|
|
1290
1138
|
} & {
|
|
1291
1139
|
date?: string | null | undefined;
|
|
1292
|
-
size?: string;
|
|
1293
1140
|
} & {
|
|
1294
1141
|
__TYPE__: "FileLink";
|
|
1295
1142
|
} & {
|
|
@@ -1356,9 +1203,9 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1356
1203
|
url: string;
|
|
1357
1204
|
name: string;
|
|
1358
1205
|
kind: string;
|
|
1206
|
+
size: string;
|
|
1359
1207
|
} & {
|
|
1360
1208
|
date?: string | null | undefined;
|
|
1361
|
-
size?: string;
|
|
1362
1209
|
} & {
|
|
1363
1210
|
__TYPE__: "FileLink";
|
|
1364
1211
|
} & {
|
|
@@ -1384,24 +1231,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1384
1231
|
direction?: string | null | undefined;
|
|
1385
1232
|
}) | ({
|
|
1386
1233
|
type: "embed";
|
|
1387
|
-
data:
|
|
1388
|
-
embed_url: string;
|
|
1389
|
-
type: string;
|
|
1390
|
-
} & {
|
|
1391
|
-
version?: string | number | null;
|
|
1392
|
-
title?: string | null | undefined;
|
|
1393
|
-
author_name?: string | null | undefined;
|
|
1394
|
-
author_url?: string | null | undefined;
|
|
1395
|
-
provider_name?: string | null | undefined;
|
|
1396
|
-
provider_url?: string | null | undefined;
|
|
1397
|
-
cache_age?: string | number | null;
|
|
1398
|
-
thumbnail_url?: string | null | undefined;
|
|
1399
|
-
thumbnail_width?: number | null | undefined;
|
|
1400
|
-
thumbnail_height?: number | null | undefined;
|
|
1401
|
-
html?: string | null | undefined;
|
|
1402
|
-
} & {
|
|
1403
|
-
__TYPE__: "EmbedContent";
|
|
1404
|
-
};
|
|
1234
|
+
data: import("../../nestable").EmbedContent;
|
|
1405
1235
|
} & {
|
|
1406
1236
|
label?: string | null | undefined;
|
|
1407
1237
|
direction?: string | null | undefined;
|