@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
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Block = exports.BlockLegacy = exports.TextBlock = exports.checkEmbedBlock = exports.EmbedBlock = exports.checkImageBlock = exports.ImageBlock = exports.ValidatedMetas = exports.Span = exports.Meta = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const fp_ts_1 = require("fp-ts");
|
|
6
|
-
const
|
|
6
|
+
const Either_1 = require("fp-ts/lib/Either");
|
|
7
7
|
const function_1 = require("fp-ts/lib/function");
|
|
8
8
|
const t = tslib_1.__importStar(require("io-ts"));
|
|
9
9
|
const nestable_1 = require("../../../../customtypes/widgets/nestable");
|
|
@@ -29,12 +29,12 @@ const ValidatedMetas = (linkCodec) => new t.Type("ValidatedMetas", (metas) => Ar
|
|
|
29
29
|
const res = metas
|
|
30
30
|
.reduce((acc, maybeMeta) => {
|
|
31
31
|
const maybeDecodedMeta = exports.Meta.decode(maybeMeta);
|
|
32
|
-
if (
|
|
32
|
+
if ((0, Either_1.isRight)(maybeDecodedMeta)) {
|
|
33
33
|
const meta = maybeDecodedMeta.right;
|
|
34
34
|
// if it's an hyperlink it should have data validated as link otherwise we don't care and keep the meta
|
|
35
35
|
if (meta.data && meta.type === "hyperlink") {
|
|
36
36
|
const decoded = linkCodec.decode(meta.data);
|
|
37
|
-
if (
|
|
37
|
+
if ((0, Either_1.isLeft)(decoded))
|
|
38
38
|
return acc;
|
|
39
39
|
return [...acc, { ...meta, data: decoded.right }];
|
|
40
40
|
}
|
|
@@ -54,7 +54,7 @@ const ValidatedMetas = (linkCodec) => new t.Type("ValidatedMetas", (metas) => Ar
|
|
|
54
54
|
if (meta.type === "hyperlink" && meta.data) {
|
|
55
55
|
// since the Span data are typed as unknown we have to redecode for type safety and then encode to either new format or legacy.
|
|
56
56
|
const decoded = linkCodec.decode(meta.data);
|
|
57
|
-
if (
|
|
57
|
+
if ((0, Either_1.isLeft)(decoded))
|
|
58
58
|
return acc;
|
|
59
59
|
return [...acc, { ...meta, data: linkCodec.encode(decoded.right) }];
|
|
60
60
|
}
|
|
@@ -94,7 +94,7 @@ const embedBlockLegacyCodec = t.exact(t.intersection([
|
|
|
94
94
|
const EmbedBlockLegacy = new t.Type("EmbedBlockLegacy", (u) => u.type === "embed", (block) => (0, function_1.pipe)(embedBlockLegacyCodec.decode(block), fp_ts_1.either.map((parsedBlock) => {
|
|
95
95
|
return exports.EmbedBlock.encode({
|
|
96
96
|
...parsedBlock,
|
|
97
|
-
data: EmbedContent_1.
|
|
97
|
+
data: (0, EmbedContent_1.buildEmbedContent)({
|
|
98
98
|
...parsedBlock.data,
|
|
99
99
|
__TYPE__: EmbedContent_1.EmbedContentType,
|
|
100
100
|
}),
|
|
@@ -45,9 +45,9 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
45
45
|
url: string;
|
|
46
46
|
name: string;
|
|
47
47
|
kind: string;
|
|
48
|
+
size: string;
|
|
48
49
|
} & {
|
|
49
50
|
date?: string | null | undefined;
|
|
50
|
-
size?: string;
|
|
51
51
|
} & {
|
|
52
52
|
__TYPE__: "FileLink";
|
|
53
53
|
} & {
|
|
@@ -73,24 +73,7 @@ export declare const isRichTextContent: (u: unknown) => u is {
|
|
|
73
73
|
direction?: string | null | undefined;
|
|
74
74
|
}) | ({
|
|
75
75
|
type: "embed";
|
|
76
|
-
data:
|
|
77
|
-
embed_url: string;
|
|
78
|
-
type: string;
|
|
79
|
-
} & {
|
|
80
|
-
version?: string | number | null;
|
|
81
|
-
title?: string | null | undefined;
|
|
82
|
-
author_name?: string | null | undefined;
|
|
83
|
-
author_url?: string | null | undefined;
|
|
84
|
-
provider_name?: string | null | undefined;
|
|
85
|
-
provider_url?: string | null | undefined;
|
|
86
|
-
cache_age?: string | number | null;
|
|
87
|
-
thumbnail_url?: string | null | undefined;
|
|
88
|
-
thumbnail_width?: number | null | undefined;
|
|
89
|
-
thumbnail_height?: number | null | undefined;
|
|
90
|
-
html?: string | null | undefined;
|
|
91
|
-
} & {
|
|
92
|
-
__TYPE__: "EmbedContent";
|
|
93
|
-
};
|
|
76
|
+
data: import("..").EmbedContent;
|
|
94
77
|
} & {
|
|
95
78
|
label?: string | null | undefined;
|
|
96
79
|
direction?: string | null | undefined;
|
|
@@ -156,9 +139,9 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
156
139
|
url: string;
|
|
157
140
|
name: string;
|
|
158
141
|
kind: string;
|
|
142
|
+
size: string;
|
|
159
143
|
} & {
|
|
160
144
|
date?: string | null | undefined;
|
|
161
|
-
size?: string;
|
|
162
145
|
} & {
|
|
163
146
|
__TYPE__: "FileLink";
|
|
164
147
|
} & {
|
|
@@ -194,9 +177,9 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
194
177
|
url: string;
|
|
195
178
|
name: string;
|
|
196
179
|
kind: string;
|
|
180
|
+
size: string;
|
|
197
181
|
} & {
|
|
198
182
|
date?: string | null | undefined;
|
|
199
|
-
size?: string;
|
|
200
183
|
} & {
|
|
201
184
|
__TYPE__: "FileLink";
|
|
202
185
|
} & {
|
|
@@ -222,24 +205,7 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
|
|
|
222
205
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
223
206
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
224
207
|
type: t.LiteralC<"embed">;
|
|
225
|
-
data: t.
|
|
226
|
-
embed_url: t.StringC;
|
|
227
|
-
type: t.StringC;
|
|
228
|
-
}>, t.PartialC<{
|
|
229
|
-
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
230
|
-
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
231
|
-
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
232
|
-
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
233
|
-
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
234
|
-
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
235
|
-
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
236
|
-
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
237
|
-
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
238
|
-
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
239
|
-
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
240
|
-
}>]>>, t.ExactC<t.TypeC<{
|
|
241
|
-
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
242
|
-
}>>]>;
|
|
208
|
+
data: t.Type<import("..").EmbedContent, import("..").EmbedContent, unknown>;
|
|
243
209
|
}>, t.PartialC<{
|
|
244
210
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
245
211
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -313,9 +279,9 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
313
279
|
url: string;
|
|
314
280
|
name: string;
|
|
315
281
|
kind: string;
|
|
282
|
+
size: string;
|
|
316
283
|
} & {
|
|
317
284
|
date?: string | null | undefined;
|
|
318
|
-
size?: string;
|
|
319
285
|
} & {
|
|
320
286
|
__TYPE__: "FileLink";
|
|
321
287
|
} & {
|
|
@@ -341,24 +307,7 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
341
307
|
direction?: string | null | undefined;
|
|
342
308
|
}) | ({
|
|
343
309
|
type: "embed";
|
|
344
|
-
data:
|
|
345
|
-
embed_url: string;
|
|
346
|
-
type: string;
|
|
347
|
-
} & {
|
|
348
|
-
version?: string | number | null;
|
|
349
|
-
title?: string | null | undefined;
|
|
350
|
-
author_name?: string | null | undefined;
|
|
351
|
-
author_url?: string | null | undefined;
|
|
352
|
-
provider_name?: string | null | undefined;
|
|
353
|
-
provider_url?: string | null | undefined;
|
|
354
|
-
cache_age?: string | number | null;
|
|
355
|
-
thumbnail_url?: string | null | undefined;
|
|
356
|
-
thumbnail_width?: number | null | undefined;
|
|
357
|
-
thumbnail_height?: number | null | undefined;
|
|
358
|
-
html?: string | null | undefined;
|
|
359
|
-
} & {
|
|
360
|
-
__TYPE__: "EmbedContent";
|
|
361
|
-
};
|
|
310
|
+
data: import("..").EmbedContent;
|
|
362
311
|
} & {
|
|
363
312
|
label?: string | null | undefined;
|
|
364
313
|
direction?: string | null | undefined;
|
|
@@ -421,9 +370,9 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
421
370
|
url: string;
|
|
422
371
|
name: string;
|
|
423
372
|
kind: string;
|
|
373
|
+
size: string;
|
|
424
374
|
} & {
|
|
425
375
|
date?: string | null | undefined;
|
|
426
|
-
size?: string;
|
|
427
376
|
} & {
|
|
428
377
|
__TYPE__: "FileLink";
|
|
429
378
|
} & {
|
|
@@ -449,24 +398,7 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
449
398
|
direction?: string | null | undefined;
|
|
450
399
|
}) | ({
|
|
451
400
|
type: "embed";
|
|
452
|
-
data:
|
|
453
|
-
embed_url: string;
|
|
454
|
-
type: string;
|
|
455
|
-
} & {
|
|
456
|
-
version?: string | number | null;
|
|
457
|
-
title?: string | null | undefined;
|
|
458
|
-
author_name?: string | null | undefined;
|
|
459
|
-
author_url?: string | null | undefined;
|
|
460
|
-
provider_name?: string | null | undefined;
|
|
461
|
-
provider_url?: string | null | undefined;
|
|
462
|
-
cache_age?: string | number | null;
|
|
463
|
-
thumbnail_url?: string | null | undefined;
|
|
464
|
-
thumbnail_width?: number | null | undefined;
|
|
465
|
-
thumbnail_height?: number | null | undefined;
|
|
466
|
-
html?: string | null | undefined;
|
|
467
|
-
} & {
|
|
468
|
-
__TYPE__: "EmbedContent";
|
|
469
|
-
};
|
|
401
|
+
data: import("..").EmbedContent;
|
|
470
402
|
} & {
|
|
471
403
|
label?: string | null | undefined;
|
|
472
404
|
direction?: string | null | undefined;
|
|
@@ -7,24 +7,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
7
7
|
[x: string]: {
|
|
8
8
|
__TYPE__: "BooleanContent";
|
|
9
9
|
value: boolean;
|
|
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
|
-
}) | {
|
|
10
|
+
} | import("../../nestable").EmbedContent | {
|
|
28
11
|
type: "Color";
|
|
29
12
|
value: string;
|
|
30
13
|
__TYPE__: "FieldContent";
|
|
@@ -131,9 +114,9 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
131
114
|
url: string;
|
|
132
115
|
name: string;
|
|
133
116
|
kind: string;
|
|
117
|
+
size: string;
|
|
134
118
|
} & {
|
|
135
119
|
date?: string | null | undefined;
|
|
136
|
-
size?: string;
|
|
137
120
|
} & {
|
|
138
121
|
__TYPE__: "FileLink";
|
|
139
122
|
} & {
|
|
@@ -200,9 +183,9 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
200
183
|
url: string;
|
|
201
184
|
name: string;
|
|
202
185
|
kind: string;
|
|
186
|
+
size: string;
|
|
203
187
|
} & {
|
|
204
188
|
date?: string | null | undefined;
|
|
205
|
-
size?: string;
|
|
206
189
|
} & {
|
|
207
190
|
__TYPE__: "FileLink";
|
|
208
191
|
} & {
|
|
@@ -228,24 +211,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
228
211
|
direction?: string | null | undefined;
|
|
229
212
|
}) | ({
|
|
230
213
|
type: "embed";
|
|
231
|
-
data:
|
|
232
|
-
embed_url: string;
|
|
233
|
-
type: string;
|
|
234
|
-
} & {
|
|
235
|
-
version?: string | number | null;
|
|
236
|
-
title?: string | null | undefined;
|
|
237
|
-
author_name?: string | null | undefined;
|
|
238
|
-
author_url?: string | null | undefined;
|
|
239
|
-
provider_name?: string | null | undefined;
|
|
240
|
-
provider_url?: string | null | undefined;
|
|
241
|
-
cache_age?: string | number | null;
|
|
242
|
-
thumbnail_url?: string | null | undefined;
|
|
243
|
-
thumbnail_width?: number | null | undefined;
|
|
244
|
-
thumbnail_height?: number | null | undefined;
|
|
245
|
-
html?: string | null | undefined;
|
|
246
|
-
} & {
|
|
247
|
-
__TYPE__: "EmbedContent";
|
|
248
|
-
};
|
|
214
|
+
data: import("../../nestable").EmbedContent;
|
|
249
215
|
} & {
|
|
250
216
|
label?: string | null | undefined;
|
|
251
217
|
direction?: string | null | undefined;
|
|
@@ -275,24 +241,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
275
241
|
value: [string, {
|
|
276
242
|
__TYPE__: "BooleanContent";
|
|
277
243
|
value: boolean;
|
|
278
|
-
} | ({
|
|
279
|
-
embed_url: string;
|
|
280
|
-
type: string;
|
|
281
|
-
} & {
|
|
282
|
-
version?: string | number | null;
|
|
283
|
-
title?: string | null | undefined;
|
|
284
|
-
author_name?: string | null | undefined;
|
|
285
|
-
author_url?: string | null | undefined;
|
|
286
|
-
provider_name?: string | null | undefined;
|
|
287
|
-
provider_url?: string | null | undefined;
|
|
288
|
-
cache_age?: string | number | null;
|
|
289
|
-
thumbnail_url?: string | null | undefined;
|
|
290
|
-
thumbnail_width?: number | null | undefined;
|
|
291
|
-
thumbnail_height?: number | null | undefined;
|
|
292
|
-
html?: string | null | undefined;
|
|
293
|
-
} & {
|
|
294
|
-
__TYPE__: "EmbedContent";
|
|
295
|
-
}) | {
|
|
244
|
+
} | import("../../nestable").EmbedContent | {
|
|
296
245
|
type: "Color";
|
|
297
246
|
value: string;
|
|
298
247
|
__TYPE__: "FieldContent";
|
|
@@ -399,9 +348,9 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
399
348
|
url: string;
|
|
400
349
|
name: string;
|
|
401
350
|
kind: string;
|
|
351
|
+
size: string;
|
|
402
352
|
} & {
|
|
403
353
|
date?: string | null | undefined;
|
|
404
|
-
size?: string;
|
|
405
354
|
} & {
|
|
406
355
|
__TYPE__: "FileLink";
|
|
407
356
|
} & {
|
|
@@ -468,9 +417,9 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
468
417
|
url: string;
|
|
469
418
|
name: string;
|
|
470
419
|
kind: string;
|
|
420
|
+
size: string;
|
|
471
421
|
} & {
|
|
472
422
|
date?: string | null | undefined;
|
|
473
|
-
size?: string;
|
|
474
423
|
} & {
|
|
475
424
|
__TYPE__: "FileLink";
|
|
476
425
|
} & {
|
|
@@ -496,24 +445,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
496
445
|
direction?: string | null | undefined;
|
|
497
446
|
}) | ({
|
|
498
447
|
type: "embed";
|
|
499
|
-
data:
|
|
500
|
-
embed_url: string;
|
|
501
|
-
type: string;
|
|
502
|
-
} & {
|
|
503
|
-
version?: string | number | null;
|
|
504
|
-
title?: string | null | undefined;
|
|
505
|
-
author_name?: string | null | undefined;
|
|
506
|
-
author_url?: string | null | undefined;
|
|
507
|
-
provider_name?: string | null | undefined;
|
|
508
|
-
provider_url?: string | null | undefined;
|
|
509
|
-
cache_age?: string | number | null;
|
|
510
|
-
thumbnail_url?: string | null | undefined;
|
|
511
|
-
thumbnail_width?: number | null | undefined;
|
|
512
|
-
thumbnail_height?: number | null | undefined;
|
|
513
|
-
html?: string | null | undefined;
|
|
514
|
-
} & {
|
|
515
|
-
__TYPE__: "EmbedContent";
|
|
516
|
-
};
|
|
448
|
+
data: import("../../nestable").EmbedContent;
|
|
517
449
|
} & {
|
|
518
450
|
label?: string | null | undefined;
|
|
519
451
|
direction?: string | null | undefined;
|
|
@@ -545,24 +477,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
545
477
|
[x: string]: {
|
|
546
478
|
__TYPE__: "BooleanContent";
|
|
547
479
|
value: boolean;
|
|
548
|
-
} | ({
|
|
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
|
-
}) | {
|
|
480
|
+
} | import("../../nestable").EmbedContent | {
|
|
566
481
|
type: "Color";
|
|
567
482
|
value: string;
|
|
568
483
|
__TYPE__: "FieldContent";
|
|
@@ -669,9 +584,9 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
669
584
|
url: string;
|
|
670
585
|
name: string;
|
|
671
586
|
kind: string;
|
|
587
|
+
size: string;
|
|
672
588
|
} & {
|
|
673
589
|
date?: string | null | undefined;
|
|
674
|
-
size?: string;
|
|
675
590
|
} & {
|
|
676
591
|
__TYPE__: "FileLink";
|
|
677
592
|
} & {
|
|
@@ -738,9 +653,9 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
738
653
|
url: string;
|
|
739
654
|
name: string;
|
|
740
655
|
kind: string;
|
|
656
|
+
size: string;
|
|
741
657
|
} & {
|
|
742
658
|
date?: string | null | undefined;
|
|
743
|
-
size?: string;
|
|
744
659
|
} & {
|
|
745
660
|
__TYPE__: "FileLink";
|
|
746
661
|
} & {
|
|
@@ -766,24 +681,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
766
681
|
direction?: string | null | undefined;
|
|
767
682
|
}) | ({
|
|
768
683
|
type: "embed";
|
|
769
|
-
data:
|
|
770
|
-
embed_url: string;
|
|
771
|
-
type: string;
|
|
772
|
-
} & {
|
|
773
|
-
version?: string | number | null;
|
|
774
|
-
title?: string | null | undefined;
|
|
775
|
-
author_name?: string | null | undefined;
|
|
776
|
-
author_url?: string | null | undefined;
|
|
777
|
-
provider_name?: string | null | undefined;
|
|
778
|
-
provider_url?: string | null | undefined;
|
|
779
|
-
cache_age?: string | number | null;
|
|
780
|
-
thumbnail_url?: string | null | undefined;
|
|
781
|
-
thumbnail_width?: number | null | undefined;
|
|
782
|
-
thumbnail_height?: number | null | undefined;
|
|
783
|
-
html?: string | null | undefined;
|
|
784
|
-
} & {
|
|
785
|
-
__TYPE__: "EmbedContent";
|
|
786
|
-
};
|
|
684
|
+
data: import("../../nestable").EmbedContent;
|
|
787
685
|
} & {
|
|
788
686
|
label?: string | null | undefined;
|
|
789
687
|
direction?: string | null | undefined;
|
|
@@ -813,24 +711,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
813
711
|
value: [string, {
|
|
814
712
|
__TYPE__: "BooleanContent";
|
|
815
713
|
value: boolean;
|
|
816
|
-
} | ({
|
|
817
|
-
embed_url: string;
|
|
818
|
-
type: string;
|
|
819
|
-
} & {
|
|
820
|
-
version?: string | number | null;
|
|
821
|
-
title?: string | null | undefined;
|
|
822
|
-
author_name?: string | null | undefined;
|
|
823
|
-
author_url?: string | null | undefined;
|
|
824
|
-
provider_name?: string | null | undefined;
|
|
825
|
-
provider_url?: string | null | undefined;
|
|
826
|
-
cache_age?: string | number | null;
|
|
827
|
-
thumbnail_url?: string | null | undefined;
|
|
828
|
-
thumbnail_width?: number | null | undefined;
|
|
829
|
-
thumbnail_height?: number | null | undefined;
|
|
830
|
-
html?: string | null | undefined;
|
|
831
|
-
} & {
|
|
832
|
-
__TYPE__: "EmbedContent";
|
|
833
|
-
}) | {
|
|
714
|
+
} | import("../../nestable").EmbedContent | {
|
|
834
715
|
type: "Color";
|
|
835
716
|
value: string;
|
|
836
717
|
__TYPE__: "FieldContent";
|
|
@@ -937,9 +818,9 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
937
818
|
url: string;
|
|
938
819
|
name: string;
|
|
939
820
|
kind: string;
|
|
821
|
+
size: string;
|
|
940
822
|
} & {
|
|
941
823
|
date?: string | null | undefined;
|
|
942
|
-
size?: string;
|
|
943
824
|
} & {
|
|
944
825
|
__TYPE__: "FileLink";
|
|
945
826
|
} & {
|
|
@@ -1006,9 +887,9 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1006
887
|
url: string;
|
|
1007
888
|
name: string;
|
|
1008
889
|
kind: string;
|
|
890
|
+
size: string;
|
|
1009
891
|
} & {
|
|
1010
892
|
date?: string | null | undefined;
|
|
1011
|
-
size?: string;
|
|
1012
893
|
} & {
|
|
1013
894
|
__TYPE__: "FileLink";
|
|
1014
895
|
} & {
|
|
@@ -1034,24 +915,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1034
915
|
direction?: string | null | undefined;
|
|
1035
916
|
}) | ({
|
|
1036
917
|
type: "embed";
|
|
1037
|
-
data:
|
|
1038
|
-
embed_url: string;
|
|
1039
|
-
type: string;
|
|
1040
|
-
} & {
|
|
1041
|
-
version?: string | number | null;
|
|
1042
|
-
title?: string | null | undefined;
|
|
1043
|
-
author_name?: string | null | undefined;
|
|
1044
|
-
author_url?: string | null | undefined;
|
|
1045
|
-
provider_name?: string | null | undefined;
|
|
1046
|
-
provider_url?: string | null | undefined;
|
|
1047
|
-
cache_age?: string | number | null;
|
|
1048
|
-
thumbnail_url?: string | null | undefined;
|
|
1049
|
-
thumbnail_width?: number | null | undefined;
|
|
1050
|
-
thumbnail_height?: number | null | undefined;
|
|
1051
|
-
html?: string | null | undefined;
|
|
1052
|
-
} & {
|
|
1053
|
-
__TYPE__: "EmbedContent";
|
|
1054
|
-
};
|
|
918
|
+
data: import("../../nestable").EmbedContent;
|
|
1055
919
|
} & {
|
|
1056
920
|
label?: string | null | undefined;
|
|
1057
921
|
direction?: string | null | undefined;
|
|
@@ -1090,24 +954,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1090
954
|
}>>, t.ExactC<t.TypeC<{
|
|
1091
955
|
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
1092
956
|
value: t.BooleanC;
|
|
1093
|
-
}>>, t.
|
|
1094
|
-
embed_url: t.StringC;
|
|
1095
|
-
type: t.StringC;
|
|
1096
|
-
}>, t.PartialC<{
|
|
1097
|
-
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1098
|
-
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1099
|
-
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1100
|
-
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1101
|
-
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1102
|
-
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1103
|
-
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1104
|
-
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1105
|
-
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1106
|
-
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1107
|
-
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1108
|
-
}>]>>, t.ExactC<t.TypeC<{
|
|
1109
|
-
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
1110
|
-
}>>]>, t.ExactC<t.TypeC<{
|
|
957
|
+
}>>, t.Type<import("../../nestable").EmbedContent, import("../../nestable").EmbedContent, unknown>, t.ExactC<t.TypeC<{
|
|
1111
958
|
type: t.LiteralC<"Text">;
|
|
1112
959
|
value: t.Type<string, string, unknown>;
|
|
1113
960
|
__TYPE__: t.LiteralC<"FieldContent">;
|
|
@@ -1212,9 +1059,9 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1212
1059
|
url: t.StringC;
|
|
1213
1060
|
name: t.StringC;
|
|
1214
1061
|
kind: t.StringC;
|
|
1062
|
+
size: t.StringC;
|
|
1215
1063
|
}>, t.PartialC<{
|
|
1216
1064
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1217
|
-
size: t.StringC;
|
|
1218
1065
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1219
1066
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
1220
1067
|
}>, t.PartialC<{
|
|
@@ -1280,9 +1127,9 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1280
1127
|
url: string;
|
|
1281
1128
|
name: string;
|
|
1282
1129
|
kind: string;
|
|
1130
|
+
size: string;
|
|
1283
1131
|
} & {
|
|
1284
1132
|
date?: string | null | undefined;
|
|
1285
|
-
size?: string;
|
|
1286
1133
|
} & {
|
|
1287
1134
|
__TYPE__: "FileLink";
|
|
1288
1135
|
} & {
|
|
@@ -1318,9 +1165,9 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1318
1165
|
url: string;
|
|
1319
1166
|
name: string;
|
|
1320
1167
|
kind: string;
|
|
1168
|
+
size: string;
|
|
1321
1169
|
} & {
|
|
1322
1170
|
date?: string | null | undefined;
|
|
1323
|
-
size?: string;
|
|
1324
1171
|
} & {
|
|
1325
1172
|
__TYPE__: "FileLink";
|
|
1326
1173
|
} & {
|
|
@@ -1346,24 +1193,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1346
1193
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1347
1194
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1348
1195
|
type: t.LiteralC<"embed">;
|
|
1349
|
-
data: t.
|
|
1350
|
-
embed_url: t.StringC;
|
|
1351
|
-
type: t.StringC;
|
|
1352
|
-
}>, t.PartialC<{
|
|
1353
|
-
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1354
|
-
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1355
|
-
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1356
|
-
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1357
|
-
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1358
|
-
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1359
|
-
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1360
|
-
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1361
|
-
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1362
|
-
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1363
|
-
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1364
|
-
}>]>>, t.ExactC<t.TypeC<{
|
|
1365
|
-
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
1366
|
-
}>>]>;
|
|
1196
|
+
data: t.Type<import("../../nestable").EmbedContent, import("../../nestable").EmbedContent, unknown>;
|
|
1367
1197
|
}>, t.PartialC<{
|
|
1368
1198
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1369
1199
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -1401,24 +1231,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1401
1231
|
}>>, t.ExactC<t.TypeC<{
|
|
1402
1232
|
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
1403
1233
|
value: t.BooleanC;
|
|
1404
|
-
}>>, t.
|
|
1405
|
-
embed_url: t.StringC;
|
|
1406
|
-
type: t.StringC;
|
|
1407
|
-
}>, t.PartialC<{
|
|
1408
|
-
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1409
|
-
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1410
|
-
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1411
|
-
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1412
|
-
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1413
|
-
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1414
|
-
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1415
|
-
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1416
|
-
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1417
|
-
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1418
|
-
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1419
|
-
}>]>>, t.ExactC<t.TypeC<{
|
|
1420
|
-
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
1421
|
-
}>>]>, t.ExactC<t.TypeC<{
|
|
1234
|
+
}>>, t.Type<import("../../nestable").EmbedContent, import("../../nestable").EmbedContent, unknown>, t.ExactC<t.TypeC<{
|
|
1422
1235
|
type: t.LiteralC<"Text">;
|
|
1423
1236
|
value: t.Type<string, string, unknown>;
|
|
1424
1237
|
__TYPE__: t.LiteralC<"FieldContent">;
|
|
@@ -1523,9 +1336,9 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1523
1336
|
url: t.StringC;
|
|
1524
1337
|
name: t.StringC;
|
|
1525
1338
|
kind: t.StringC;
|
|
1339
|
+
size: t.StringC;
|
|
1526
1340
|
}>, t.PartialC<{
|
|
1527
1341
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1528
|
-
size: t.StringC;
|
|
1529
1342
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1530
1343
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
1531
1344
|
}>, t.PartialC<{
|
|
@@ -1591,9 +1404,9 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1591
1404
|
url: string;
|
|
1592
1405
|
name: string;
|
|
1593
1406
|
kind: string;
|
|
1407
|
+
size: string;
|
|
1594
1408
|
} & {
|
|
1595
1409
|
date?: string | null | undefined;
|
|
1596
|
-
size?: string;
|
|
1597
1410
|
} & {
|
|
1598
1411
|
__TYPE__: "FileLink";
|
|
1599
1412
|
} & {
|
|
@@ -1629,9 +1442,9 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1629
1442
|
url: string;
|
|
1630
1443
|
name: string;
|
|
1631
1444
|
kind: string;
|
|
1445
|
+
size: string;
|
|
1632
1446
|
} & {
|
|
1633
1447
|
date?: string | null | undefined;
|
|
1634
|
-
size?: string;
|
|
1635
1448
|
} & {
|
|
1636
1449
|
__TYPE__: "FileLink";
|
|
1637
1450
|
} & {
|
|
@@ -1657,24 +1470,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1657
1470
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1658
1471
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1659
1472
|
type: t.LiteralC<"embed">;
|
|
1660
|
-
data: t.
|
|
1661
|
-
embed_url: t.StringC;
|
|
1662
|
-
type: t.StringC;
|
|
1663
|
-
}>, t.PartialC<{
|
|
1664
|
-
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1665
|
-
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1666
|
-
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1667
|
-
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1668
|
-
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1669
|
-
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1670
|
-
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
1671
|
-
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1672
|
-
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1673
|
-
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
1674
|
-
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1675
|
-
}>]>>, t.ExactC<t.TypeC<{
|
|
1676
|
-
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
1677
|
-
}>>]>;
|
|
1473
|
+
data: t.Type<import("../../nestable").EmbedContent, import("../../nestable").EmbedContent, unknown>;
|
|
1678
1474
|
}>, t.PartialC<{
|
|
1679
1475
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1680
1476
|
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|