@prismicio/types-internal 2.6.0 → 2.7.0-alpha.1
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 +409 -13
- package/lib/content/fields/WidgetContent.d.ts +408 -12
- package/lib/content/fields/nestable/LinkContent.d.ts +54 -8
- package/lib/content/fields/nestable/LinkContent.js +10 -1
- package/lib/content/fields/nestable/NestableContent.d.ts +68 -2
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +129 -6
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +60 -0
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +136 -4
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +32 -2
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +136 -4
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +68 -2
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +68 -2
- package/lib/content/fields/slices/Slice/index.d.ts +250 -10
- package/lib/content/fields/slices/SliceItem.d.ts +250 -10
- package/lib/content/fields/slices/SlicesContent.d.ts +340 -10
- package/lib/customtypes/CustomType.d.ts +342 -162
- package/lib/customtypes/Section.d.ts +342 -162
- package/lib/customtypes/diff/SharedSlice.d.ts +152 -72
- package/lib/customtypes/diff/Variation.d.ts +152 -72
- package/lib/customtypes/widgets/Group.d.ts +60 -0
- package/lib/customtypes/widgets/Widget.d.ts +318 -108
- package/lib/customtypes/widgets/nestable/Link.d.ts +20 -0
- package/lib/customtypes/widgets/nestable/Link.js +2 -0
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +10 -0
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +20 -0
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +20 -0
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +80 -0
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +87 -27
- package/lib/customtypes/widgets/slices/Slices.d.ts +424 -144
- package/package.json +1 -1
- package/src/content/fields/nestable/LinkContent.ts +12 -1
- package/src/customtypes/widgets/nestable/Link.ts +2 -0
- package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +0 -727
- package/lib/content/fields/nestable/RichTextContent/TextBlock.js +0 -80
- package/lib/customtypes/widgets/slices/SliceWidget.d.ts +0 -327
- package/lib/customtypes/widgets/slices/SliceWidget.js +0 -8
|
@@ -13,6 +13,7 @@ export declare const ImageLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
|
13
13
|
kind: t.StringC;
|
|
14
14
|
}>, t.PartialC<{
|
|
15
15
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
16
|
+
text: t.StringC;
|
|
16
17
|
}>]>>]>;
|
|
17
18
|
export declare type ImageLinkContent = t.TypeOf<typeof ImageLinkContent>;
|
|
18
19
|
export declare const FileLinkType = "FileLink";
|
|
@@ -24,18 +25,22 @@ export declare const FileLinkContent: t.IntersectionC<[t.ExactC<t.IntersectionC<
|
|
|
24
25
|
size: t.StringC;
|
|
25
26
|
}>, t.PartialC<{
|
|
26
27
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
28
|
+
text: t.StringC;
|
|
27
29
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
28
30
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
29
31
|
}>, t.PartialC<{
|
|
30
32
|
size: t.StringC;
|
|
33
|
+
text: t.StringC;
|
|
31
34
|
}>]>>]>;
|
|
32
35
|
export declare type FileLinkContent = t.TypeOf<typeof FileLinkContent>;
|
|
33
36
|
export declare const DocumentLinkType = "DocumentLink";
|
|
34
37
|
export declare const DocumentLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
35
38
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
36
|
-
}>>, t.ExactC<t.TypeC<{
|
|
39
|
+
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
37
40
|
id: t.Type<string, string, unknown>;
|
|
38
|
-
}
|
|
41
|
+
}>, t.PartialC<{
|
|
42
|
+
text: t.StringC;
|
|
43
|
+
}>]>>]>;
|
|
39
44
|
export declare type DocumentLinkContent = t.TypeOf<typeof DocumentLinkContent>;
|
|
40
45
|
export declare const ExternalLinkType = "ExternalLink";
|
|
41
46
|
export declare const ExternalLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -50,6 +55,7 @@ export declare const ExternalLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
|
50
55
|
}, {
|
|
51
56
|
title?: string;
|
|
52
57
|
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
58
|
+
text: t.StringC;
|
|
53
59
|
}>]>>]>;
|
|
54
60
|
export declare type ExternalLinkContent = t.TypeOf<typeof ExternalLinkContent>;
|
|
55
61
|
export declare const LinkContentType = "LinkContent";
|
|
@@ -67,6 +73,7 @@ export declare const isLinkContent: (u: unknown) => u is {
|
|
|
67
73
|
kind: string;
|
|
68
74
|
} & {
|
|
69
75
|
date?: string | null | undefined;
|
|
76
|
+
text?: string;
|
|
70
77
|
}) | ({
|
|
71
78
|
id: string;
|
|
72
79
|
url: string;
|
|
@@ -75,14 +82,18 @@ export declare const isLinkContent: (u: unknown) => u is {
|
|
|
75
82
|
size: string;
|
|
76
83
|
} & {
|
|
77
84
|
date?: string | null | undefined;
|
|
85
|
+
text?: string;
|
|
78
86
|
} & {
|
|
79
87
|
__TYPE__: "FileLink";
|
|
80
88
|
} & {
|
|
81
89
|
size?: string;
|
|
90
|
+
text?: string;
|
|
82
91
|
}) | ({
|
|
83
92
|
__TYPE__: "DocumentLink";
|
|
84
93
|
} & {
|
|
85
94
|
id: string;
|
|
95
|
+
} & {
|
|
96
|
+
text?: string;
|
|
86
97
|
}) | ({
|
|
87
98
|
__TYPE__: "ExternalLink";
|
|
88
99
|
} & {
|
|
@@ -93,6 +104,7 @@ export declare const isLinkContent: (u: unknown) => u is {
|
|
|
93
104
|
preview?: {
|
|
94
105
|
title?: string;
|
|
95
106
|
} | null | undefined;
|
|
107
|
+
text?: string;
|
|
96
108
|
});
|
|
97
109
|
};
|
|
98
110
|
export declare const LinkLegacy: t.UnionC<[t.Type<{
|
|
@@ -107,6 +119,7 @@ export declare const LinkLegacy: t.UnionC<[t.Type<{
|
|
|
107
119
|
kind: string;
|
|
108
120
|
} & {
|
|
109
121
|
date?: string | null | undefined;
|
|
122
|
+
text?: string;
|
|
110
123
|
}, {
|
|
111
124
|
id: string;
|
|
112
125
|
url: string;
|
|
@@ -117,6 +130,7 @@ export declare const LinkLegacy: t.UnionC<[t.Type<{
|
|
|
117
130
|
kind: string;
|
|
118
131
|
} & {
|
|
119
132
|
date?: string | null | undefined;
|
|
133
|
+
text?: string;
|
|
120
134
|
}, unknown>, t.Type<{
|
|
121
135
|
id: string;
|
|
122
136
|
url: string;
|
|
@@ -125,10 +139,12 @@ export declare const LinkLegacy: t.UnionC<[t.Type<{
|
|
|
125
139
|
size: string;
|
|
126
140
|
} & {
|
|
127
141
|
date?: string | null | undefined;
|
|
142
|
+
text?: string;
|
|
128
143
|
} & {
|
|
129
144
|
__TYPE__: "FileLink";
|
|
130
145
|
} & {
|
|
131
146
|
size?: string;
|
|
147
|
+
text?: string;
|
|
132
148
|
}, {
|
|
133
149
|
id: string;
|
|
134
150
|
url: string;
|
|
@@ -137,12 +153,17 @@ export declare const LinkLegacy: t.UnionC<[t.Type<{
|
|
|
137
153
|
size: string;
|
|
138
154
|
} & {
|
|
139
155
|
date?: string | null | undefined;
|
|
156
|
+
text?: string;
|
|
140
157
|
}, unknown>, t.Type<{
|
|
141
158
|
__TYPE__: "DocumentLink";
|
|
142
159
|
} & {
|
|
143
160
|
id: string;
|
|
161
|
+
} & {
|
|
162
|
+
text?: string;
|
|
144
163
|
}, {
|
|
145
164
|
id: string;
|
|
165
|
+
} & {
|
|
166
|
+
text?: string;
|
|
146
167
|
}, unknown>, t.Type<{
|
|
147
168
|
__TYPE__: "ExternalLink";
|
|
148
169
|
} & {
|
|
@@ -153,6 +174,7 @@ export declare const LinkLegacy: t.UnionC<[t.Type<{
|
|
|
153
174
|
preview?: {
|
|
154
175
|
title?: string;
|
|
155
176
|
} | null | undefined;
|
|
177
|
+
text?: string;
|
|
156
178
|
}, {
|
|
157
179
|
url: string;
|
|
158
180
|
} & {
|
|
@@ -161,6 +183,7 @@ export declare const LinkLegacy: t.UnionC<[t.Type<{
|
|
|
161
183
|
preview?: {
|
|
162
184
|
title?: string;
|
|
163
185
|
} | null | undefined;
|
|
186
|
+
text?: string;
|
|
164
187
|
}, unknown>]>;
|
|
165
188
|
export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
166
189
|
__TYPE__: "LinkContent";
|
|
@@ -176,6 +199,7 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
176
199
|
kind: string;
|
|
177
200
|
} & {
|
|
178
201
|
date?: string | null | undefined;
|
|
202
|
+
text?: string;
|
|
179
203
|
}) | ({
|
|
180
204
|
id: string;
|
|
181
205
|
url: string;
|
|
@@ -184,14 +208,18 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
184
208
|
size: string;
|
|
185
209
|
} & {
|
|
186
210
|
date?: string | null | undefined;
|
|
211
|
+
text?: string;
|
|
187
212
|
} & {
|
|
188
213
|
__TYPE__: "FileLink";
|
|
189
214
|
} & {
|
|
190
215
|
size?: string;
|
|
216
|
+
text?: string;
|
|
191
217
|
}) | ({
|
|
192
218
|
__TYPE__: "DocumentLink";
|
|
193
219
|
} & {
|
|
194
220
|
id: string;
|
|
221
|
+
} & {
|
|
222
|
+
text?: string;
|
|
195
223
|
}) | ({
|
|
196
224
|
__TYPE__: "ExternalLink";
|
|
197
225
|
} & {
|
|
@@ -202,6 +230,7 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
202
230
|
preview?: {
|
|
203
231
|
title?: string;
|
|
204
232
|
} | null | undefined;
|
|
233
|
+
text?: string;
|
|
205
234
|
});
|
|
206
235
|
}, WithTypes<({
|
|
207
236
|
id: string;
|
|
@@ -213,6 +242,7 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
213
242
|
kind: string;
|
|
214
243
|
} & {
|
|
215
244
|
date?: string | null | undefined;
|
|
245
|
+
text?: string;
|
|
216
246
|
}) | ({
|
|
217
247
|
id: string;
|
|
218
248
|
url: string;
|
|
@@ -221,9 +251,12 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
221
251
|
size: string;
|
|
222
252
|
} & {
|
|
223
253
|
date?: string | null | undefined;
|
|
224
|
-
|
|
254
|
+
text?: string;
|
|
255
|
+
}) | ({
|
|
225
256
|
id: string;
|
|
226
|
-
}
|
|
257
|
+
} & {
|
|
258
|
+
text?: string;
|
|
259
|
+
}) | ({
|
|
227
260
|
url: string;
|
|
228
261
|
} & {
|
|
229
262
|
kind?: "web";
|
|
@@ -231,6 +264,7 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
231
264
|
preview?: {
|
|
232
265
|
title?: string;
|
|
233
266
|
} | null | undefined;
|
|
267
|
+
text?: string;
|
|
234
268
|
})>, unknown>;
|
|
235
269
|
export declare const Link: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
236
270
|
__TYPE__: t.LiteralC<"ImageLink">;
|
|
@@ -244,6 +278,7 @@ export declare const Link: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
|
244
278
|
kind: t.StringC;
|
|
245
279
|
}>, t.PartialC<{
|
|
246
280
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
281
|
+
text: t.StringC;
|
|
247
282
|
}>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
248
283
|
id: t.StringC;
|
|
249
284
|
url: t.StringC;
|
|
@@ -252,15 +287,19 @@ export declare const Link: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
|
252
287
|
size: t.StringC;
|
|
253
288
|
}>, t.PartialC<{
|
|
254
289
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
290
|
+
text: t.StringC;
|
|
255
291
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
256
292
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
257
293
|
}>, t.PartialC<{
|
|
258
294
|
size: t.StringC;
|
|
295
|
+
text: t.StringC;
|
|
259
296
|
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
260
297
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
261
|
-
}>>, t.ExactC<t.TypeC<{
|
|
298
|
+
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
262
299
|
id: t.Type<string, string, unknown>;
|
|
263
|
-
}
|
|
300
|
+
}>, t.PartialC<{
|
|
301
|
+
text: t.StringC;
|
|
302
|
+
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
264
303
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
265
304
|
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
266
305
|
url: t.StringC;
|
|
@@ -272,6 +311,7 @@ export declare const Link: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
|
272
311
|
}, {
|
|
273
312
|
title?: string;
|
|
274
313
|
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
314
|
+
text: t.StringC;
|
|
275
315
|
}>]>>]>]>;
|
|
276
316
|
export declare const LinkContent: t.ExactC<t.TypeC<{
|
|
277
317
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
@@ -287,6 +327,7 @@ export declare const LinkContent: t.ExactC<t.TypeC<{
|
|
|
287
327
|
kind: t.StringC;
|
|
288
328
|
}>, t.PartialC<{
|
|
289
329
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
330
|
+
text: t.StringC;
|
|
290
331
|
}>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
291
332
|
id: t.StringC;
|
|
292
333
|
url: t.StringC;
|
|
@@ -295,15 +336,19 @@ export declare const LinkContent: t.ExactC<t.TypeC<{
|
|
|
295
336
|
size: t.StringC;
|
|
296
337
|
}>, t.PartialC<{
|
|
297
338
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
339
|
+
text: t.StringC;
|
|
298
340
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
299
341
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
300
342
|
}>, t.PartialC<{
|
|
301
343
|
size: t.StringC;
|
|
344
|
+
text: t.StringC;
|
|
302
345
|
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
303
346
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
304
|
-
}>>, t.ExactC<t.TypeC<{
|
|
347
|
+
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
305
348
|
id: t.Type<string, string, unknown>;
|
|
306
|
-
}
|
|
349
|
+
}>, t.PartialC<{
|
|
350
|
+
text: t.StringC;
|
|
351
|
+
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
307
352
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
308
353
|
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
309
354
|
url: t.StringC;
|
|
@@ -315,6 +360,7 @@ export declare const LinkContent: t.ExactC<t.TypeC<{
|
|
|
315
360
|
}, {
|
|
316
361
|
title?: string;
|
|
317
362
|
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
363
|
+
text: t.StringC;
|
|
318
364
|
}>]>>]>]>;
|
|
319
365
|
}>>;
|
|
320
366
|
export declare type LinkContent = t.TypeOf<typeof LinkContent>;
|
|
@@ -22,6 +22,7 @@ const imageLinkLegacyCodec = t.exact(t.intersection([
|
|
|
22
22
|
}),
|
|
23
23
|
t.partial({
|
|
24
24
|
date: validators_1.StringOrNull,
|
|
25
|
+
text: t.string,
|
|
25
26
|
}),
|
|
26
27
|
]));
|
|
27
28
|
const ImageLinkLegacy = new t.Type("ImageLink", (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.ImageLinkType, (image) => {
|
|
@@ -51,6 +52,7 @@ const fileLinkLegacyCodec = t.exact(t.intersection([
|
|
|
51
52
|
}),
|
|
52
53
|
t.partial({
|
|
53
54
|
date: (0, function_2.nullable)(t.string),
|
|
55
|
+
text: t.string,
|
|
54
56
|
}),
|
|
55
57
|
]));
|
|
56
58
|
const FileLinkLegacy = new t.Type("FileLink", (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.FileLinkType, (file) => {
|
|
@@ -71,11 +73,17 @@ exports.FileLinkContent = t.intersection([
|
|
|
71
73
|
}),
|
|
72
74
|
t.partial({
|
|
73
75
|
size: (0, io_ts_types_1.withFallback)(t.string, "0"),
|
|
76
|
+
text: t.string,
|
|
74
77
|
}),
|
|
75
78
|
])),
|
|
76
79
|
]);
|
|
77
80
|
exports.DocumentLinkType = "DocumentLink";
|
|
78
|
-
const documentLinkLegacyCodec = t.
|
|
81
|
+
const documentLinkLegacyCodec = t.exact(t.intersection([
|
|
82
|
+
t.type({ id: validators_1.NonEmptyString }),
|
|
83
|
+
t.partial({
|
|
84
|
+
text: t.string,
|
|
85
|
+
}),
|
|
86
|
+
]));
|
|
79
87
|
const DocumentLinkLegacy = new t.Type("DocumentLink", (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.DocumentLinkType, (file) => {
|
|
80
88
|
return (0, function_1.pipe)(documentLinkLegacyCodec.decode(file), fp_ts_1.either.map((parsedDoc) => {
|
|
81
89
|
return exports.DocumentLinkContent.encode({
|
|
@@ -103,6 +111,7 @@ const externalLinkLegacyCodec = t.exact(t.intersection([
|
|
|
103
111
|
preview: (0, function_2.nullable)(t.partial({
|
|
104
112
|
title: t.string,
|
|
105
113
|
})),
|
|
114
|
+
text: t.string,
|
|
106
115
|
}),
|
|
107
116
|
]));
|
|
108
117
|
const ExternalLinkLegacy = new t.Type("ExternalLink", (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.ExternalLinkType, (file) => {
|
|
@@ -125,6 +125,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
125
125
|
kind: t.StringC;
|
|
126
126
|
}>, t.PartialC<{
|
|
127
127
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
128
|
+
text: t.StringC;
|
|
128
129
|
}>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
129
130
|
id: t.StringC;
|
|
130
131
|
url: t.StringC;
|
|
@@ -133,15 +134,19 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
133
134
|
size: t.StringC;
|
|
134
135
|
}>, t.PartialC<{
|
|
135
136
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
137
|
+
text: t.StringC;
|
|
136
138
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
137
139
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
138
140
|
}>, t.PartialC<{
|
|
139
141
|
size: t.StringC;
|
|
142
|
+
text: t.StringC;
|
|
140
143
|
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
141
144
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
142
|
-
}>>, t.ExactC<t.TypeC<{
|
|
145
|
+
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
143
146
|
id: t.Type<string, string, unknown>;
|
|
144
|
-
}
|
|
147
|
+
}>, t.PartialC<{
|
|
148
|
+
text: t.StringC;
|
|
149
|
+
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
145
150
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
146
151
|
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
147
152
|
url: t.StringC;
|
|
@@ -153,6 +158,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
153
158
|
}, {
|
|
154
159
|
title?: string;
|
|
155
160
|
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
161
|
+
text: t.StringC;
|
|
156
162
|
}>]>>]>]>;
|
|
157
163
|
}>>, t.ExactC<t.TypeC<{
|
|
158
164
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -193,6 +199,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
193
199
|
kind: string;
|
|
194
200
|
} & {
|
|
195
201
|
date?: string | null | undefined;
|
|
202
|
+
text?: string;
|
|
196
203
|
}) | ({
|
|
197
204
|
id: string;
|
|
198
205
|
url: string;
|
|
@@ -201,14 +208,18 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
201
208
|
size: string;
|
|
202
209
|
} & {
|
|
203
210
|
date?: string | null | undefined;
|
|
211
|
+
text?: string;
|
|
204
212
|
} & {
|
|
205
213
|
__TYPE__: "FileLink";
|
|
206
214
|
} & {
|
|
207
215
|
size?: string;
|
|
216
|
+
text?: string;
|
|
208
217
|
}) | ({
|
|
209
218
|
__TYPE__: "DocumentLink";
|
|
210
219
|
} & {
|
|
211
220
|
id: string;
|
|
221
|
+
} & {
|
|
222
|
+
text?: string;
|
|
212
223
|
}) | ({
|
|
213
224
|
__TYPE__: "ExternalLink";
|
|
214
225
|
} & {
|
|
@@ -219,6 +230,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
219
230
|
preview?: {
|
|
220
231
|
title?: string;
|
|
221
232
|
} | null | undefined;
|
|
233
|
+
text?: string;
|
|
222
234
|
}), ({
|
|
223
235
|
__TYPE__: "ImageLink";
|
|
224
236
|
} & {
|
|
@@ -231,6 +243,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
231
243
|
kind: string;
|
|
232
244
|
} & {
|
|
233
245
|
date?: string | null | undefined;
|
|
246
|
+
text?: string;
|
|
234
247
|
}) | ({
|
|
235
248
|
id: string;
|
|
236
249
|
url: string;
|
|
@@ -239,14 +252,18 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
239
252
|
size: string;
|
|
240
253
|
} & {
|
|
241
254
|
date?: string | null | undefined;
|
|
255
|
+
text?: string;
|
|
242
256
|
} & {
|
|
243
257
|
__TYPE__: "FileLink";
|
|
244
258
|
} & {
|
|
245
259
|
size?: string;
|
|
260
|
+
text?: string;
|
|
246
261
|
}) | ({
|
|
247
262
|
__TYPE__: "DocumentLink";
|
|
248
263
|
} & {
|
|
249
264
|
id: string;
|
|
265
|
+
} & {
|
|
266
|
+
text?: string;
|
|
250
267
|
}) | ({
|
|
251
268
|
__TYPE__: "ExternalLink";
|
|
252
269
|
} & {
|
|
@@ -257,6 +274,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
257
274
|
preview?: {
|
|
258
275
|
title?: string;
|
|
259
276
|
} | null | undefined;
|
|
277
|
+
text?: string;
|
|
260
278
|
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
261
279
|
}>]>;
|
|
262
280
|
}>, t.PartialC<{
|
|
@@ -304,6 +322,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
304
322
|
kind: string;
|
|
305
323
|
} & {
|
|
306
324
|
date?: string | null | undefined;
|
|
325
|
+
text?: string;
|
|
307
326
|
}) | ({
|
|
308
327
|
id: string;
|
|
309
328
|
url: string;
|
|
@@ -312,14 +331,18 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
312
331
|
size: string;
|
|
313
332
|
} & {
|
|
314
333
|
date?: string | null | undefined;
|
|
334
|
+
text?: string;
|
|
315
335
|
} & {
|
|
316
336
|
__TYPE__: "FileLink";
|
|
317
337
|
} & {
|
|
318
338
|
size?: string;
|
|
339
|
+
text?: string;
|
|
319
340
|
}) | ({
|
|
320
341
|
__TYPE__: "DocumentLink";
|
|
321
342
|
} & {
|
|
322
343
|
id: string;
|
|
344
|
+
} & {
|
|
345
|
+
text?: string;
|
|
323
346
|
}) | ({
|
|
324
347
|
__TYPE__: "ExternalLink";
|
|
325
348
|
} & {
|
|
@@ -330,6 +353,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
330
353
|
preview?: {
|
|
331
354
|
title?: string;
|
|
332
355
|
} | null | undefined;
|
|
356
|
+
text?: string;
|
|
333
357
|
});
|
|
334
358
|
start: number;
|
|
335
359
|
end: number;
|
|
@@ -356,6 +380,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
356
380
|
kind: string;
|
|
357
381
|
} & {
|
|
358
382
|
date?: string | null | undefined;
|
|
383
|
+
text?: string;
|
|
359
384
|
}) | ({
|
|
360
385
|
id: string;
|
|
361
386
|
url: string;
|
|
@@ -364,14 +389,18 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
364
389
|
size: string;
|
|
365
390
|
} & {
|
|
366
391
|
date?: string | null | undefined;
|
|
392
|
+
text?: string;
|
|
367
393
|
} & {
|
|
368
394
|
__TYPE__: "FileLink";
|
|
369
395
|
} & {
|
|
370
396
|
size?: string;
|
|
397
|
+
text?: string;
|
|
371
398
|
}) | ({
|
|
372
399
|
__TYPE__: "DocumentLink";
|
|
373
400
|
} & {
|
|
374
401
|
id: string;
|
|
402
|
+
} & {
|
|
403
|
+
text?: string;
|
|
375
404
|
}) | ({
|
|
376
405
|
__TYPE__: "ExternalLink";
|
|
377
406
|
} & {
|
|
@@ -382,6 +411,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
382
411
|
preview?: {
|
|
383
412
|
title?: string;
|
|
384
413
|
} | null | undefined;
|
|
414
|
+
text?: string;
|
|
385
415
|
});
|
|
386
416
|
start: number;
|
|
387
417
|
end: number;
|
|
@@ -533,6 +563,7 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
533
563
|
kind: string;
|
|
534
564
|
} & {
|
|
535
565
|
date?: string | null | undefined;
|
|
566
|
+
text?: string;
|
|
536
567
|
}) | ({
|
|
537
568
|
id: string;
|
|
538
569
|
url: string;
|
|
@@ -541,14 +572,18 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
541
572
|
size: string;
|
|
542
573
|
} & {
|
|
543
574
|
date?: string | null | undefined;
|
|
575
|
+
text?: string;
|
|
544
576
|
} & {
|
|
545
577
|
__TYPE__: "FileLink";
|
|
546
578
|
} & {
|
|
547
579
|
size?: string;
|
|
580
|
+
text?: string;
|
|
548
581
|
}) | ({
|
|
549
582
|
__TYPE__: "DocumentLink";
|
|
550
583
|
} & {
|
|
551
584
|
id: string;
|
|
585
|
+
} & {
|
|
586
|
+
text?: string;
|
|
552
587
|
}) | ({
|
|
553
588
|
__TYPE__: "ExternalLink";
|
|
554
589
|
} & {
|
|
@@ -559,6 +594,7 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
559
594
|
preview?: {
|
|
560
595
|
title?: string;
|
|
561
596
|
} | null | undefined;
|
|
597
|
+
text?: string;
|
|
562
598
|
});
|
|
563
599
|
} | {
|
|
564
600
|
__TYPE__: "StructuredTextContent";
|
|
@@ -599,6 +635,7 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
599
635
|
kind: string;
|
|
600
636
|
} & {
|
|
601
637
|
date?: string | null | undefined;
|
|
638
|
+
text?: string;
|
|
602
639
|
}) | ({
|
|
603
640
|
id: string;
|
|
604
641
|
url: string;
|
|
@@ -607,14 +644,18 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
607
644
|
size: string;
|
|
608
645
|
} & {
|
|
609
646
|
date?: string | null | undefined;
|
|
647
|
+
text?: string;
|
|
610
648
|
} & {
|
|
611
649
|
__TYPE__: "FileLink";
|
|
612
650
|
} & {
|
|
613
651
|
size?: string;
|
|
652
|
+
text?: string;
|
|
614
653
|
}) | ({
|
|
615
654
|
__TYPE__: "DocumentLink";
|
|
616
655
|
} & {
|
|
617
656
|
id: string;
|
|
657
|
+
} & {
|
|
658
|
+
text?: string;
|
|
618
659
|
}) | ({
|
|
619
660
|
__TYPE__: "ExternalLink";
|
|
620
661
|
} & {
|
|
@@ -625,6 +666,7 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
625
666
|
preview?: {
|
|
626
667
|
title?: string;
|
|
627
668
|
} | null | undefined;
|
|
669
|
+
text?: string;
|
|
628
670
|
}) | null | undefined;
|
|
629
671
|
};
|
|
630
672
|
} & {
|
|
@@ -672,6 +714,7 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
672
714
|
kind: string;
|
|
673
715
|
} & {
|
|
674
716
|
date?: string | null | undefined;
|
|
717
|
+
text?: string;
|
|
675
718
|
}) | ({
|
|
676
719
|
id: string;
|
|
677
720
|
url: string;
|
|
@@ -680,14 +723,18 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
680
723
|
size: string;
|
|
681
724
|
} & {
|
|
682
725
|
date?: string | null | undefined;
|
|
726
|
+
text?: string;
|
|
683
727
|
} & {
|
|
684
728
|
__TYPE__: "FileLink";
|
|
685
729
|
} & {
|
|
686
730
|
size?: string;
|
|
731
|
+
text?: string;
|
|
687
732
|
}) | ({
|
|
688
733
|
__TYPE__: "DocumentLink";
|
|
689
734
|
} & {
|
|
690
735
|
id: string;
|
|
736
|
+
} & {
|
|
737
|
+
text?: string;
|
|
691
738
|
}) | ({
|
|
692
739
|
__TYPE__: "ExternalLink";
|
|
693
740
|
} & {
|
|
@@ -698,6 +745,7 @@ export declare const isNestableContent: (u: unknown) => u is {
|
|
|
698
745
|
preview?: {
|
|
699
746
|
title?: string;
|
|
700
747
|
} | null | undefined;
|
|
748
|
+
text?: string;
|
|
701
749
|
});
|
|
702
750
|
start: number;
|
|
703
751
|
end: number;
|
|
@@ -847,6 +895,7 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
847
895
|
kind: string;
|
|
848
896
|
} & {
|
|
849
897
|
date?: string | null | undefined;
|
|
898
|
+
text?: string;
|
|
850
899
|
}) | ({
|
|
851
900
|
id: string;
|
|
852
901
|
url: string;
|
|
@@ -855,14 +904,18 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
855
904
|
size: string;
|
|
856
905
|
} & {
|
|
857
906
|
date?: string | null | undefined;
|
|
907
|
+
text?: string;
|
|
858
908
|
} & {
|
|
859
909
|
__TYPE__: "FileLink";
|
|
860
910
|
} & {
|
|
861
911
|
size?: string;
|
|
912
|
+
text?: string;
|
|
862
913
|
}) | ({
|
|
863
914
|
__TYPE__: "DocumentLink";
|
|
864
915
|
} & {
|
|
865
916
|
id: string;
|
|
917
|
+
} & {
|
|
918
|
+
text?: string;
|
|
866
919
|
}) | ({
|
|
867
920
|
__TYPE__: "ExternalLink";
|
|
868
921
|
} & {
|
|
@@ -873,6 +926,7 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
873
926
|
preview?: {
|
|
874
927
|
title?: string;
|
|
875
928
|
} | null | undefined;
|
|
929
|
+
text?: string;
|
|
876
930
|
});
|
|
877
931
|
}> | import("fp-ts/lib/Either").Right<{
|
|
878
932
|
__TYPE__: "StructuredTextContent";
|
|
@@ -913,6 +967,7 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
913
967
|
kind: string;
|
|
914
968
|
} & {
|
|
915
969
|
date?: string | null | undefined;
|
|
970
|
+
text?: string;
|
|
916
971
|
}) | ({
|
|
917
972
|
id: string;
|
|
918
973
|
url: string;
|
|
@@ -921,14 +976,18 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
921
976
|
size: string;
|
|
922
977
|
} & {
|
|
923
978
|
date?: string | null | undefined;
|
|
979
|
+
text?: string;
|
|
924
980
|
} & {
|
|
925
981
|
__TYPE__: "FileLink";
|
|
926
982
|
} & {
|
|
927
983
|
size?: string;
|
|
984
|
+
text?: string;
|
|
928
985
|
}) | ({
|
|
929
986
|
__TYPE__: "DocumentLink";
|
|
930
987
|
} & {
|
|
931
988
|
id: string;
|
|
989
|
+
} & {
|
|
990
|
+
text?: string;
|
|
932
991
|
}) | ({
|
|
933
992
|
__TYPE__: "ExternalLink";
|
|
934
993
|
} & {
|
|
@@ -939,6 +998,7 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
939
998
|
preview?: {
|
|
940
999
|
title?: string;
|
|
941
1000
|
} | null | undefined;
|
|
1001
|
+
text?: string;
|
|
942
1002
|
}) | null | undefined;
|
|
943
1003
|
};
|
|
944
1004
|
} & {
|
|
@@ -986,6 +1046,7 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
986
1046
|
kind: string;
|
|
987
1047
|
} & {
|
|
988
1048
|
date?: string | null | undefined;
|
|
1049
|
+
text?: string;
|
|
989
1050
|
}) | ({
|
|
990
1051
|
id: string;
|
|
991
1052
|
url: string;
|
|
@@ -994,14 +1055,18 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
994
1055
|
size: string;
|
|
995
1056
|
} & {
|
|
996
1057
|
date?: string | null | undefined;
|
|
1058
|
+
text?: string;
|
|
997
1059
|
} & {
|
|
998
1060
|
__TYPE__: "FileLink";
|
|
999
1061
|
} & {
|
|
1000
1062
|
size?: string;
|
|
1063
|
+
text?: string;
|
|
1001
1064
|
}) | ({
|
|
1002
1065
|
__TYPE__: "DocumentLink";
|
|
1003
1066
|
} & {
|
|
1004
1067
|
id: string;
|
|
1068
|
+
} & {
|
|
1069
|
+
text?: string;
|
|
1005
1070
|
}) | ({
|
|
1006
1071
|
__TYPE__: "ExternalLink";
|
|
1007
1072
|
} & {
|
|
@@ -1012,6 +1077,7 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1012
1077
|
preview?: {
|
|
1013
1078
|
title?: string;
|
|
1014
1079
|
} | null | undefined;
|
|
1080
|
+
text?: string;
|
|
1015
1081
|
});
|
|
1016
1082
|
start: number;
|
|
1017
1083
|
end: number;
|