@prismicio/types-internal 2.7.0-alpha.2 → 2.7.0-alpha.4
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 +1783 -859
- package/lib/content/fields/WidgetContent.d.ts +1782 -858
- package/lib/content/fields/nestable/LinkContent.d.ts +207 -90
- package/lib/content/fields/nestable/LinkContent.js +93 -48
- package/lib/content/fields/nestable/NestableContent.d.ts +297 -143
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +546 -249
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +270 -130
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +594 -286
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +135 -65
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +594 -286
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +297 -143
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +297 -143
- package/lib/content/fields/slices/Slice/index.d.ts +1080 -520
- package/lib/content/fields/slices/SliceItem.d.ts +1080 -520
- package/lib/content/fields/slices/SlicesContent.d.ts +1485 -715
- package/lib/customtypes/CustomType.d.ts +180 -342
- package/lib/customtypes/Section.d.ts +180 -342
- package/lib/customtypes/diff/SharedSlice.d.ts +80 -152
- package/lib/customtypes/diff/Variation.d.ts +80 -152
- package/lib/customtypes/widgets/Group.d.ts +6 -60
- package/lib/customtypes/widgets/Widget.d.ts +129 -318
- package/lib/customtypes/widgets/nestable/Link.d.ts +2 -20
- package/lib/customtypes/widgets/nestable/Link.js +1 -2
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +1 -10
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +2 -20
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -20
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +8 -80
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +33 -87
- package/lib/customtypes/widgets/slices/Slices.d.ts +172 -424
- package/package.json +1 -1
- package/src/content/fields/nestable/LinkContent.ts +118 -58
- package/src/customtypes/widgets/nestable/Link.ts +1 -2
- 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
|
@@ -118,40 +118,47 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
118
118
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
119
119
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
120
120
|
__TYPE__: t.LiteralC<"ImageLink">;
|
|
121
|
-
}>>, t.
|
|
121
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
122
|
+
kind: t.LiteralC<"image">;
|
|
123
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
122
124
|
id: t.StringC;
|
|
123
125
|
url: t.StringC;
|
|
124
126
|
height: t.StringC;
|
|
125
127
|
width: t.StringC;
|
|
126
128
|
size: t.StringC;
|
|
127
129
|
name: t.StringC;
|
|
128
|
-
kind: t.StringC;
|
|
129
130
|
}>, t.PartialC<{
|
|
130
131
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
131
132
|
text: t.StringC;
|
|
132
|
-
}>]
|
|
133
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
134
|
+
text: t.StringC;
|
|
135
|
+
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
136
|
+
__TYPE__: t.LiteralC<"FileLink">;
|
|
137
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
138
|
+
kind: t.LiteralC<"file">;
|
|
139
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
133
140
|
id: t.StringC;
|
|
134
141
|
url: t.StringC;
|
|
135
142
|
name: t.StringC;
|
|
136
|
-
kind: t.StringC;
|
|
137
143
|
size: t.StringC;
|
|
138
144
|
}>, t.PartialC<{
|
|
139
145
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
140
146
|
text: t.StringC;
|
|
141
|
-
}>]>>, t.ExactC<t.
|
|
142
|
-
__TYPE__: t.LiteralC<"FileLink">;
|
|
143
|
-
}>, t.PartialC<{
|
|
144
|
-
size: t.StringC;
|
|
147
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
145
148
|
text: t.StringC;
|
|
146
|
-
}>]
|
|
149
|
+
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
147
150
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
148
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
151
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
149
152
|
id: t.Type<string, string, unknown>;
|
|
150
153
|
}>, t.PartialC<{
|
|
154
|
+
kind: t.LiteralC<"document">;
|
|
151
155
|
text: t.StringC;
|
|
152
|
-
}>]
|
|
156
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
157
|
+
kind: t.LiteralC<"document">;
|
|
158
|
+
text: t.StringC;
|
|
159
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
153
160
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
154
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
161
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
155
162
|
url: t.StringC;
|
|
156
163
|
}>, t.PartialC<{
|
|
157
164
|
kind: t.LiteralC<"web">;
|
|
@@ -162,7 +169,14 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
162
169
|
title?: string;
|
|
163
170
|
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
164
171
|
text: t.StringC;
|
|
165
|
-
}>]
|
|
172
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
173
|
+
kind: t.LiteralC<"web">;
|
|
174
|
+
text: t.StringC;
|
|
175
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
176
|
+
__TYPE__: t.LiteralC<"AnyLink">;
|
|
177
|
+
}>>, t.ExactC<t.TypeC<{
|
|
178
|
+
text: t.StringC;
|
|
179
|
+
}>>]>]>;
|
|
166
180
|
}>>, t.ExactC<t.TypeC<{
|
|
167
181
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
168
182
|
value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -192,40 +206,47 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
192
206
|
}>]>>, t.PartialC<{
|
|
193
207
|
linkTo: t.UnionC<[t.Type<({
|
|
194
208
|
__TYPE__: "ImageLink";
|
|
195
|
-
} & {
|
|
209
|
+
} & ({
|
|
210
|
+
kind: "image";
|
|
211
|
+
} & (({
|
|
196
212
|
id: string;
|
|
197
213
|
url: string;
|
|
198
214
|
height: string;
|
|
199
215
|
width: string;
|
|
200
216
|
size: string;
|
|
201
217
|
name: string;
|
|
202
|
-
kind: string;
|
|
203
218
|
} & {
|
|
204
219
|
date?: string | null | undefined;
|
|
205
220
|
text?: string;
|
|
206
|
-
}) |
|
|
221
|
+
}) | {
|
|
222
|
+
text: string;
|
|
223
|
+
}))) | ({
|
|
224
|
+
__TYPE__: "FileLink";
|
|
225
|
+
} & ({
|
|
226
|
+
kind: "file";
|
|
227
|
+
} & (({
|
|
207
228
|
id: string;
|
|
208
229
|
url: string;
|
|
209
230
|
name: string;
|
|
210
|
-
kind: string;
|
|
211
231
|
size: string;
|
|
212
232
|
} & {
|
|
213
233
|
date?: string | null | undefined;
|
|
214
234
|
text?: string;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
size?: string;
|
|
219
|
-
text?: string;
|
|
220
|
-
}) | ({
|
|
235
|
+
}) | {
|
|
236
|
+
text: string;
|
|
237
|
+
}))) | ({
|
|
221
238
|
__TYPE__: "DocumentLink";
|
|
222
|
-
} & {
|
|
239
|
+
} & (({
|
|
223
240
|
id: string;
|
|
224
241
|
} & {
|
|
242
|
+
kind?: "document";
|
|
225
243
|
text?: string;
|
|
226
|
-
}) |
|
|
244
|
+
}) | {
|
|
245
|
+
kind: "document";
|
|
246
|
+
text: string;
|
|
247
|
+
})) | ({
|
|
227
248
|
__TYPE__: "ExternalLink";
|
|
228
|
-
} & {
|
|
249
|
+
} & (({
|
|
229
250
|
url: string;
|
|
230
251
|
} & {
|
|
231
252
|
kind?: "web";
|
|
@@ -234,42 +255,56 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
234
255
|
title?: string;
|
|
235
256
|
} | null | undefined;
|
|
236
257
|
text?: string;
|
|
258
|
+
}) | {
|
|
259
|
+
kind: "web";
|
|
260
|
+
text: string;
|
|
261
|
+
})) | ({
|
|
262
|
+
__TYPE__: "AnyLink";
|
|
263
|
+
} & {
|
|
264
|
+
text: string;
|
|
237
265
|
}), ({
|
|
238
266
|
__TYPE__: "ImageLink";
|
|
239
|
-
} & {
|
|
267
|
+
} & ({
|
|
268
|
+
kind: "image";
|
|
269
|
+
} & (({
|
|
240
270
|
id: string;
|
|
241
271
|
url: string;
|
|
242
272
|
height: string;
|
|
243
273
|
width: string;
|
|
244
274
|
size: string;
|
|
245
275
|
name: string;
|
|
246
|
-
kind: string;
|
|
247
276
|
} & {
|
|
248
277
|
date?: string | null | undefined;
|
|
249
278
|
text?: string;
|
|
250
|
-
}) |
|
|
279
|
+
}) | {
|
|
280
|
+
text: string;
|
|
281
|
+
}))) | ({
|
|
282
|
+
__TYPE__: "FileLink";
|
|
283
|
+
} & ({
|
|
284
|
+
kind: "file";
|
|
285
|
+
} & (({
|
|
251
286
|
id: string;
|
|
252
287
|
url: string;
|
|
253
288
|
name: string;
|
|
254
|
-
kind: string;
|
|
255
289
|
size: string;
|
|
256
290
|
} & {
|
|
257
291
|
date?: string | null | undefined;
|
|
258
292
|
text?: string;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
}
|
|
262
|
-
size?: string;
|
|
263
|
-
text?: string;
|
|
264
|
-
}) | ({
|
|
293
|
+
}) | {
|
|
294
|
+
text: string;
|
|
295
|
+
}))) | ({
|
|
265
296
|
__TYPE__: "DocumentLink";
|
|
266
|
-
} & {
|
|
297
|
+
} & (({
|
|
267
298
|
id: string;
|
|
268
299
|
} & {
|
|
300
|
+
kind?: "document";
|
|
269
301
|
text?: string;
|
|
270
|
-
}) |
|
|
302
|
+
}) | {
|
|
303
|
+
kind: "document";
|
|
304
|
+
text: string;
|
|
305
|
+
})) | ({
|
|
271
306
|
__TYPE__: "ExternalLink";
|
|
272
|
-
} & {
|
|
307
|
+
} & (({
|
|
273
308
|
url: string;
|
|
274
309
|
} & {
|
|
275
310
|
kind?: "web";
|
|
@@ -278,6 +313,13 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
278
313
|
title?: string;
|
|
279
314
|
} | null | undefined;
|
|
280
315
|
text?: string;
|
|
316
|
+
}) | {
|
|
317
|
+
kind: "web";
|
|
318
|
+
text: string;
|
|
319
|
+
})) | ({
|
|
320
|
+
__TYPE__: "AnyLink";
|
|
321
|
+
} & {
|
|
322
|
+
text: string;
|
|
281
323
|
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
282
324
|
}>]>;
|
|
283
325
|
}>, t.PartialC<{
|
|
@@ -315,40 +357,47 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
315
357
|
spans: t.Type<({
|
|
316
358
|
data: ({
|
|
317
359
|
__TYPE__: "ImageLink";
|
|
318
|
-
} & {
|
|
360
|
+
} & ({
|
|
361
|
+
kind: "image";
|
|
362
|
+
} & (({
|
|
319
363
|
id: string;
|
|
320
364
|
url: string;
|
|
321
365
|
height: string;
|
|
322
366
|
width: string;
|
|
323
367
|
size: string;
|
|
324
368
|
name: string;
|
|
325
|
-
kind: string;
|
|
326
369
|
} & {
|
|
327
370
|
date?: string | null | undefined;
|
|
328
371
|
text?: string;
|
|
329
|
-
}) |
|
|
372
|
+
}) | {
|
|
373
|
+
text: string;
|
|
374
|
+
}))) | ({
|
|
375
|
+
__TYPE__: "FileLink";
|
|
376
|
+
} & ({
|
|
377
|
+
kind: "file";
|
|
378
|
+
} & (({
|
|
330
379
|
id: string;
|
|
331
380
|
url: string;
|
|
332
381
|
name: string;
|
|
333
|
-
kind: string;
|
|
334
382
|
size: string;
|
|
335
383
|
} & {
|
|
336
384
|
date?: string | null | undefined;
|
|
337
385
|
text?: string;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
}
|
|
341
|
-
size?: string;
|
|
342
|
-
text?: string;
|
|
343
|
-
}) | ({
|
|
386
|
+
}) | {
|
|
387
|
+
text: string;
|
|
388
|
+
}))) | ({
|
|
344
389
|
__TYPE__: "DocumentLink";
|
|
345
|
-
} & {
|
|
390
|
+
} & (({
|
|
346
391
|
id: string;
|
|
347
392
|
} & {
|
|
393
|
+
kind?: "document";
|
|
348
394
|
text?: string;
|
|
349
|
-
}) |
|
|
395
|
+
}) | {
|
|
396
|
+
kind: "document";
|
|
397
|
+
text: string;
|
|
398
|
+
})) | ({
|
|
350
399
|
__TYPE__: "ExternalLink";
|
|
351
|
-
} & {
|
|
400
|
+
} & (({
|
|
352
401
|
url: string;
|
|
353
402
|
} & {
|
|
354
403
|
kind?: "web";
|
|
@@ -357,6 +406,13 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
357
406
|
title?: string;
|
|
358
407
|
} | null | undefined;
|
|
359
408
|
text?: string;
|
|
409
|
+
}) | {
|
|
410
|
+
kind: "web";
|
|
411
|
+
text: string;
|
|
412
|
+
})) | ({
|
|
413
|
+
__TYPE__: "AnyLink";
|
|
414
|
+
} & {
|
|
415
|
+
text: string;
|
|
360
416
|
});
|
|
361
417
|
start: number;
|
|
362
418
|
end: number;
|
|
@@ -373,40 +429,47 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
373
429
|
})[], ({
|
|
374
430
|
data: ({
|
|
375
431
|
__TYPE__: "ImageLink";
|
|
376
|
-
} & {
|
|
432
|
+
} & ({
|
|
433
|
+
kind: "image";
|
|
434
|
+
} & (({
|
|
377
435
|
id: string;
|
|
378
436
|
url: string;
|
|
379
437
|
height: string;
|
|
380
438
|
width: string;
|
|
381
439
|
size: string;
|
|
382
440
|
name: string;
|
|
383
|
-
kind: string;
|
|
384
441
|
} & {
|
|
385
442
|
date?: string | null | undefined;
|
|
386
443
|
text?: string;
|
|
387
|
-
}) |
|
|
444
|
+
}) | {
|
|
445
|
+
text: string;
|
|
446
|
+
}))) | ({
|
|
447
|
+
__TYPE__: "FileLink";
|
|
448
|
+
} & ({
|
|
449
|
+
kind: "file";
|
|
450
|
+
} & (({
|
|
388
451
|
id: string;
|
|
389
452
|
url: string;
|
|
390
453
|
name: string;
|
|
391
|
-
kind: string;
|
|
392
454
|
size: string;
|
|
393
455
|
} & {
|
|
394
456
|
date?: string | null | undefined;
|
|
395
457
|
text?: string;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
}
|
|
399
|
-
size?: string;
|
|
400
|
-
text?: string;
|
|
401
|
-
}) | ({
|
|
458
|
+
}) | {
|
|
459
|
+
text: string;
|
|
460
|
+
}))) | ({
|
|
402
461
|
__TYPE__: "DocumentLink";
|
|
403
|
-
} & {
|
|
462
|
+
} & (({
|
|
404
463
|
id: string;
|
|
405
464
|
} & {
|
|
465
|
+
kind?: "document";
|
|
406
466
|
text?: string;
|
|
407
|
-
}) |
|
|
467
|
+
}) | {
|
|
468
|
+
kind: "document";
|
|
469
|
+
text: string;
|
|
470
|
+
})) | ({
|
|
408
471
|
__TYPE__: "ExternalLink";
|
|
409
|
-
} & {
|
|
472
|
+
} & (({
|
|
410
473
|
url: string;
|
|
411
474
|
} & {
|
|
412
475
|
kind?: "web";
|
|
@@ -415,6 +478,13 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
415
478
|
title?: string;
|
|
416
479
|
} | null | undefined;
|
|
417
480
|
text?: string;
|
|
481
|
+
}) | {
|
|
482
|
+
kind: "web";
|
|
483
|
+
text: string;
|
|
484
|
+
})) | ({
|
|
485
|
+
__TYPE__: "AnyLink";
|
|
486
|
+
} & {
|
|
487
|
+
text: string;
|
|
418
488
|
});
|
|
419
489
|
start: number;
|
|
420
490
|
end: number;
|
|
@@ -554,40 +624,47 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
554
624
|
__TYPE__: "LinkContent";
|
|
555
625
|
value: ({
|
|
556
626
|
__TYPE__: "ImageLink";
|
|
557
|
-
} & {
|
|
627
|
+
} & ({
|
|
628
|
+
kind: "image";
|
|
629
|
+
} & (({
|
|
558
630
|
id: string;
|
|
559
631
|
url: string;
|
|
560
632
|
height: string;
|
|
561
633
|
width: string;
|
|
562
634
|
size: string;
|
|
563
635
|
name: string;
|
|
564
|
-
kind: string;
|
|
565
636
|
} & {
|
|
566
637
|
date?: string | null | undefined;
|
|
567
638
|
text?: string;
|
|
568
|
-
}) |
|
|
639
|
+
}) | {
|
|
640
|
+
text: string;
|
|
641
|
+
}))) | ({
|
|
642
|
+
__TYPE__: "FileLink";
|
|
643
|
+
} & ({
|
|
644
|
+
kind: "file";
|
|
645
|
+
} & (({
|
|
569
646
|
id: string;
|
|
570
647
|
url: string;
|
|
571
648
|
name: string;
|
|
572
|
-
kind: string;
|
|
573
649
|
size: string;
|
|
574
650
|
} & {
|
|
575
651
|
date?: string | null | undefined;
|
|
576
652
|
text?: string;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
}
|
|
580
|
-
size?: string;
|
|
581
|
-
text?: string;
|
|
582
|
-
}) | ({
|
|
653
|
+
}) | {
|
|
654
|
+
text: string;
|
|
655
|
+
}))) | ({
|
|
583
656
|
__TYPE__: "DocumentLink";
|
|
584
|
-
} & {
|
|
657
|
+
} & (({
|
|
585
658
|
id: string;
|
|
586
659
|
} & {
|
|
660
|
+
kind?: "document";
|
|
587
661
|
text?: string;
|
|
588
|
-
}) |
|
|
662
|
+
}) | {
|
|
663
|
+
kind: "document";
|
|
664
|
+
text: string;
|
|
665
|
+
})) | ({
|
|
589
666
|
__TYPE__: "ExternalLink";
|
|
590
|
-
} & {
|
|
667
|
+
} & (({
|
|
591
668
|
url: string;
|
|
592
669
|
} & {
|
|
593
670
|
kind?: "web";
|
|
@@ -596,6 +673,13 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
596
673
|
title?: string;
|
|
597
674
|
} | null | undefined;
|
|
598
675
|
text?: string;
|
|
676
|
+
}) | {
|
|
677
|
+
kind: "web";
|
|
678
|
+
text: string;
|
|
679
|
+
})) | ({
|
|
680
|
+
__TYPE__: "AnyLink";
|
|
681
|
+
} & {
|
|
682
|
+
text: string;
|
|
599
683
|
});
|
|
600
684
|
} | {
|
|
601
685
|
__TYPE__: "StructuredTextContent";
|
|
@@ -626,40 +710,47 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
626
710
|
} & {
|
|
627
711
|
linkTo?: ({
|
|
628
712
|
__TYPE__: "ImageLink";
|
|
629
|
-
} & {
|
|
713
|
+
} & ({
|
|
714
|
+
kind: "image";
|
|
715
|
+
} & (({
|
|
630
716
|
id: string;
|
|
631
717
|
url: string;
|
|
632
718
|
height: string;
|
|
633
719
|
width: string;
|
|
634
720
|
size: string;
|
|
635
721
|
name: string;
|
|
636
|
-
kind: string;
|
|
637
722
|
} & {
|
|
638
723
|
date?: string | null | undefined;
|
|
639
724
|
text?: string;
|
|
640
|
-
}) |
|
|
725
|
+
}) | {
|
|
726
|
+
text: string;
|
|
727
|
+
}))) | ({
|
|
728
|
+
__TYPE__: "FileLink";
|
|
729
|
+
} & ({
|
|
730
|
+
kind: "file";
|
|
731
|
+
} & (({
|
|
641
732
|
id: string;
|
|
642
733
|
url: string;
|
|
643
734
|
name: string;
|
|
644
|
-
kind: string;
|
|
645
735
|
size: string;
|
|
646
736
|
} & {
|
|
647
737
|
date?: string | null | undefined;
|
|
648
738
|
text?: string;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
}
|
|
652
|
-
size?: string;
|
|
653
|
-
text?: string;
|
|
654
|
-
}) | ({
|
|
739
|
+
}) | {
|
|
740
|
+
text: string;
|
|
741
|
+
}))) | ({
|
|
655
742
|
__TYPE__: "DocumentLink";
|
|
656
|
-
} & {
|
|
743
|
+
} & (({
|
|
657
744
|
id: string;
|
|
658
745
|
} & {
|
|
746
|
+
kind?: "document";
|
|
659
747
|
text?: string;
|
|
660
|
-
}) |
|
|
748
|
+
}) | {
|
|
749
|
+
kind: "document";
|
|
750
|
+
text: string;
|
|
751
|
+
})) | ({
|
|
661
752
|
__TYPE__: "ExternalLink";
|
|
662
|
-
} & {
|
|
753
|
+
} & (({
|
|
663
754
|
url: string;
|
|
664
755
|
} & {
|
|
665
756
|
kind?: "web";
|
|
@@ -668,6 +759,13 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
668
759
|
title?: string;
|
|
669
760
|
} | null | undefined;
|
|
670
761
|
text?: string;
|
|
762
|
+
}) | {
|
|
763
|
+
kind: "web";
|
|
764
|
+
text: string;
|
|
765
|
+
})) | ({
|
|
766
|
+
__TYPE__: "AnyLink";
|
|
767
|
+
} & {
|
|
768
|
+
text: string;
|
|
671
769
|
}) | null | undefined;
|
|
672
770
|
};
|
|
673
771
|
} & {
|
|
@@ -705,40 +803,47 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
705
803
|
spans?: ({
|
|
706
804
|
data: ({
|
|
707
805
|
__TYPE__: "ImageLink";
|
|
708
|
-
} & {
|
|
806
|
+
} & ({
|
|
807
|
+
kind: "image";
|
|
808
|
+
} & (({
|
|
709
809
|
id: string;
|
|
710
810
|
url: string;
|
|
711
811
|
height: string;
|
|
712
812
|
width: string;
|
|
713
813
|
size: string;
|
|
714
814
|
name: string;
|
|
715
|
-
kind: string;
|
|
716
815
|
} & {
|
|
717
816
|
date?: string | null | undefined;
|
|
718
817
|
text?: string;
|
|
719
|
-
}) |
|
|
818
|
+
}) | {
|
|
819
|
+
text: string;
|
|
820
|
+
}))) | ({
|
|
821
|
+
__TYPE__: "FileLink";
|
|
822
|
+
} & ({
|
|
823
|
+
kind: "file";
|
|
824
|
+
} & (({
|
|
720
825
|
id: string;
|
|
721
826
|
url: string;
|
|
722
827
|
name: string;
|
|
723
|
-
kind: string;
|
|
724
828
|
size: string;
|
|
725
829
|
} & {
|
|
726
830
|
date?: string | null | undefined;
|
|
727
831
|
text?: string;
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
}
|
|
731
|
-
size?: string;
|
|
732
|
-
text?: string;
|
|
733
|
-
}) | ({
|
|
832
|
+
}) | {
|
|
833
|
+
text: string;
|
|
834
|
+
}))) | ({
|
|
734
835
|
__TYPE__: "DocumentLink";
|
|
735
|
-
} & {
|
|
836
|
+
} & (({
|
|
736
837
|
id: string;
|
|
737
838
|
} & {
|
|
839
|
+
kind?: "document";
|
|
738
840
|
text?: string;
|
|
739
|
-
}) |
|
|
841
|
+
}) | {
|
|
842
|
+
kind: "document";
|
|
843
|
+
text: string;
|
|
844
|
+
})) | ({
|
|
740
845
|
__TYPE__: "ExternalLink";
|
|
741
|
-
} & {
|
|
846
|
+
} & (({
|
|
742
847
|
url: string;
|
|
743
848
|
} & {
|
|
744
849
|
kind?: "web";
|
|
@@ -747,6 +852,13 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
747
852
|
title?: string;
|
|
748
853
|
} | null | undefined;
|
|
749
854
|
text?: string;
|
|
855
|
+
}) | {
|
|
856
|
+
kind: "web";
|
|
857
|
+
text: string;
|
|
858
|
+
})) | ({
|
|
859
|
+
__TYPE__: "AnyLink";
|
|
860
|
+
} & {
|
|
861
|
+
text: string;
|
|
750
862
|
});
|
|
751
863
|
start: number;
|
|
752
864
|
end: number;
|
|
@@ -886,40 +998,47 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
886
998
|
__TYPE__: "LinkContent";
|
|
887
999
|
value: ({
|
|
888
1000
|
__TYPE__: "ImageLink";
|
|
889
|
-
} & {
|
|
1001
|
+
} & ({
|
|
1002
|
+
kind: "image";
|
|
1003
|
+
} & (({
|
|
890
1004
|
id: string;
|
|
891
1005
|
url: string;
|
|
892
1006
|
height: string;
|
|
893
1007
|
width: string;
|
|
894
1008
|
size: string;
|
|
895
1009
|
name: string;
|
|
896
|
-
kind: string;
|
|
897
1010
|
} & {
|
|
898
1011
|
date?: string | null | undefined;
|
|
899
1012
|
text?: string;
|
|
900
|
-
}) |
|
|
1013
|
+
}) | {
|
|
1014
|
+
text: string;
|
|
1015
|
+
}))) | ({
|
|
1016
|
+
__TYPE__: "FileLink";
|
|
1017
|
+
} & ({
|
|
1018
|
+
kind: "file";
|
|
1019
|
+
} & (({
|
|
901
1020
|
id: string;
|
|
902
1021
|
url: string;
|
|
903
1022
|
name: string;
|
|
904
|
-
kind: string;
|
|
905
1023
|
size: string;
|
|
906
1024
|
} & {
|
|
907
1025
|
date?: string | null | undefined;
|
|
908
1026
|
text?: string;
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
}
|
|
912
|
-
size?: string;
|
|
913
|
-
text?: string;
|
|
914
|
-
}) | ({
|
|
1027
|
+
}) | {
|
|
1028
|
+
text: string;
|
|
1029
|
+
}))) | ({
|
|
915
1030
|
__TYPE__: "DocumentLink";
|
|
916
|
-
} & {
|
|
1031
|
+
} & (({
|
|
917
1032
|
id: string;
|
|
918
1033
|
} & {
|
|
1034
|
+
kind?: "document";
|
|
919
1035
|
text?: string;
|
|
920
|
-
}) |
|
|
1036
|
+
}) | {
|
|
1037
|
+
kind: "document";
|
|
1038
|
+
text: string;
|
|
1039
|
+
})) | ({
|
|
921
1040
|
__TYPE__: "ExternalLink";
|
|
922
|
-
} & {
|
|
1041
|
+
} & (({
|
|
923
1042
|
url: string;
|
|
924
1043
|
} & {
|
|
925
1044
|
kind?: "web";
|
|
@@ -928,6 +1047,13 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
928
1047
|
title?: string;
|
|
929
1048
|
} | null | undefined;
|
|
930
1049
|
text?: string;
|
|
1050
|
+
}) | {
|
|
1051
|
+
kind: "web";
|
|
1052
|
+
text: string;
|
|
1053
|
+
})) | ({
|
|
1054
|
+
__TYPE__: "AnyLink";
|
|
1055
|
+
} & {
|
|
1056
|
+
text: string;
|
|
931
1057
|
});
|
|
932
1058
|
}> | import("fp-ts/lib/Either").Right<{
|
|
933
1059
|
__TYPE__: "StructuredTextContent";
|
|
@@ -958,40 +1084,47 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
958
1084
|
} & {
|
|
959
1085
|
linkTo?: ({
|
|
960
1086
|
__TYPE__: "ImageLink";
|
|
961
|
-
} & {
|
|
1087
|
+
} & ({
|
|
1088
|
+
kind: "image";
|
|
1089
|
+
} & (({
|
|
962
1090
|
id: string;
|
|
963
1091
|
url: string;
|
|
964
1092
|
height: string;
|
|
965
1093
|
width: string;
|
|
966
1094
|
size: string;
|
|
967
1095
|
name: string;
|
|
968
|
-
kind: string;
|
|
969
1096
|
} & {
|
|
970
1097
|
date?: string | null | undefined;
|
|
971
1098
|
text?: string;
|
|
972
|
-
}) |
|
|
1099
|
+
}) | {
|
|
1100
|
+
text: string;
|
|
1101
|
+
}))) | ({
|
|
1102
|
+
__TYPE__: "FileLink";
|
|
1103
|
+
} & ({
|
|
1104
|
+
kind: "file";
|
|
1105
|
+
} & (({
|
|
973
1106
|
id: string;
|
|
974
1107
|
url: string;
|
|
975
1108
|
name: string;
|
|
976
|
-
kind: string;
|
|
977
1109
|
size: string;
|
|
978
1110
|
} & {
|
|
979
1111
|
date?: string | null | undefined;
|
|
980
1112
|
text?: string;
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
}
|
|
984
|
-
size?: string;
|
|
985
|
-
text?: string;
|
|
986
|
-
}) | ({
|
|
1113
|
+
}) | {
|
|
1114
|
+
text: string;
|
|
1115
|
+
}))) | ({
|
|
987
1116
|
__TYPE__: "DocumentLink";
|
|
988
|
-
} & {
|
|
1117
|
+
} & (({
|
|
989
1118
|
id: string;
|
|
990
1119
|
} & {
|
|
1120
|
+
kind?: "document";
|
|
991
1121
|
text?: string;
|
|
992
|
-
}) |
|
|
1122
|
+
}) | {
|
|
1123
|
+
kind: "document";
|
|
1124
|
+
text: string;
|
|
1125
|
+
})) | ({
|
|
993
1126
|
__TYPE__: "ExternalLink";
|
|
994
|
-
} & {
|
|
1127
|
+
} & (({
|
|
995
1128
|
url: string;
|
|
996
1129
|
} & {
|
|
997
1130
|
kind?: "web";
|
|
@@ -1000,6 +1133,13 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1000
1133
|
title?: string;
|
|
1001
1134
|
} | null | undefined;
|
|
1002
1135
|
text?: string;
|
|
1136
|
+
}) | {
|
|
1137
|
+
kind: "web";
|
|
1138
|
+
text: string;
|
|
1139
|
+
})) | ({
|
|
1140
|
+
__TYPE__: "AnyLink";
|
|
1141
|
+
} & {
|
|
1142
|
+
text: string;
|
|
1003
1143
|
}) | null | undefined;
|
|
1004
1144
|
};
|
|
1005
1145
|
} & {
|
|
@@ -1037,40 +1177,47 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1037
1177
|
spans?: ({
|
|
1038
1178
|
data: ({
|
|
1039
1179
|
__TYPE__: "ImageLink";
|
|
1040
|
-
} & {
|
|
1180
|
+
} & ({
|
|
1181
|
+
kind: "image";
|
|
1182
|
+
} & (({
|
|
1041
1183
|
id: string;
|
|
1042
1184
|
url: string;
|
|
1043
1185
|
height: string;
|
|
1044
1186
|
width: string;
|
|
1045
1187
|
size: string;
|
|
1046
1188
|
name: string;
|
|
1047
|
-
kind: string;
|
|
1048
1189
|
} & {
|
|
1049
1190
|
date?: string | null | undefined;
|
|
1050
1191
|
text?: string;
|
|
1051
|
-
}) |
|
|
1192
|
+
}) | {
|
|
1193
|
+
text: string;
|
|
1194
|
+
}))) | ({
|
|
1195
|
+
__TYPE__: "FileLink";
|
|
1196
|
+
} & ({
|
|
1197
|
+
kind: "file";
|
|
1198
|
+
} & (({
|
|
1052
1199
|
id: string;
|
|
1053
1200
|
url: string;
|
|
1054
1201
|
name: string;
|
|
1055
|
-
kind: string;
|
|
1056
1202
|
size: string;
|
|
1057
1203
|
} & {
|
|
1058
1204
|
date?: string | null | undefined;
|
|
1059
1205
|
text?: string;
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
}
|
|
1063
|
-
size?: string;
|
|
1064
|
-
text?: string;
|
|
1065
|
-
}) | ({
|
|
1206
|
+
}) | {
|
|
1207
|
+
text: string;
|
|
1208
|
+
}))) | ({
|
|
1066
1209
|
__TYPE__: "DocumentLink";
|
|
1067
|
-
} & {
|
|
1210
|
+
} & (({
|
|
1068
1211
|
id: string;
|
|
1069
1212
|
} & {
|
|
1213
|
+
kind?: "document";
|
|
1070
1214
|
text?: string;
|
|
1071
|
-
}) |
|
|
1215
|
+
}) | {
|
|
1216
|
+
kind: "document";
|
|
1217
|
+
text: string;
|
|
1218
|
+
})) | ({
|
|
1072
1219
|
__TYPE__: "ExternalLink";
|
|
1073
|
-
} & {
|
|
1220
|
+
} & (({
|
|
1074
1221
|
url: string;
|
|
1075
1222
|
} & {
|
|
1076
1223
|
kind?: "web";
|
|
@@ -1079,6 +1226,13 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1079
1226
|
title?: string;
|
|
1080
1227
|
} | null | undefined;
|
|
1081
1228
|
text?: string;
|
|
1229
|
+
}) | {
|
|
1230
|
+
kind: "web";
|
|
1231
|
+
text: string;
|
|
1232
|
+
})) | ({
|
|
1233
|
+
__TYPE__: "AnyLink";
|
|
1234
|
+
} & {
|
|
1235
|
+
text: string;
|
|
1082
1236
|
});
|
|
1083
1237
|
start: number;
|
|
1084
1238
|
end: number;
|