@prismicio/types-internal 2.7.0-alpha.3 → 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 +2118 -798
- package/lib/content/fields/WidgetContent.d.ts +2118 -798
- package/lib/content/fields/nestable/LinkContent.d.ts +248 -85
- package/lib/content/fields/nestable/LinkContent.js +96 -42
- package/lib/content/fields/nestable/NestableContent.d.ts +353 -133
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +654 -234
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +320 -120
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +706 -266
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +161 -61
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +706 -266
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +353 -133
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +353 -133
- package/lib/content/fields/slices/Slice/index.d.ts +1285 -485
- package/lib/content/fields/slices/SliceItem.d.ts +1285 -485
- package/lib/content/fields/slices/SlicesContent.d.ts +1766 -666
- package/lib/customtypes/CustomType.d.ts +18 -320
- package/lib/customtypes/Section.d.ts +18 -320
- package/lib/customtypes/diff/SharedSlice.d.ts +8 -160
- package/lib/customtypes/diff/Variation.d.ts +8 -160
- package/lib/customtypes/widgets/Group.d.ts +18 -315
- package/lib/customtypes/widgets/Group.js +5 -43
- package/lib/customtypes/widgets/Widget.d.ts +33 -412
- package/lib/customtypes/widgets/nestable/Link.d.ts +2 -0
- package/lib/customtypes/widgets/nestable/Link.js +1 -0
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +1 -0
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +2 -0
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +4 -42
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +16 -168
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +10 -164
- package/lib/customtypes/widgets/slices/Slices.d.ts +34 -366
- package/package.json +1 -1
- package/src/content/fields/nestable/LinkContent.ts +121 -50
- package/src/customtypes/widgets/Group.ts +6 -52
- package/src/customtypes/widgets/nestable/Link.ts +1 -0
|
@@ -118,35 +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;
|
|
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<{
|
|
132
140
|
id: t.StringC;
|
|
133
141
|
url: t.StringC;
|
|
134
142
|
name: t.StringC;
|
|
135
|
-
kind: t.StringC;
|
|
136
143
|
size: t.StringC;
|
|
137
144
|
}>, t.PartialC<{
|
|
138
145
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
146
|
+
text: t.StringC;
|
|
147
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
148
|
+
text: t.StringC;
|
|
149
|
+
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
144
150
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
145
|
-
}>>, t.ExactC<t.TypeC<{
|
|
151
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
146
152
|
id: t.Type<string, string, unknown>;
|
|
147
|
-
}
|
|
153
|
+
}>, t.PartialC<{
|
|
154
|
+
kind: t.LiteralC<"document">;
|
|
155
|
+
text: t.StringC;
|
|
156
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
157
|
+
kind: t.LiteralC<"document">;
|
|
158
|
+
text: t.StringC;
|
|
159
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
148
160
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
149
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
161
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
150
162
|
url: t.StringC;
|
|
151
163
|
}>, t.PartialC<{
|
|
152
164
|
kind: t.LiteralC<"web">;
|
|
@@ -156,7 +168,15 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
156
168
|
}, {
|
|
157
169
|
title?: string;
|
|
158
170
|
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
159
|
-
|
|
171
|
+
text: t.StringC;
|
|
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
|
+
}>>]>]>;
|
|
160
180
|
}>>, t.ExactC<t.TypeC<{
|
|
161
181
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
162
182
|
value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -186,35 +206,47 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
186
206
|
}>]>>, t.PartialC<{
|
|
187
207
|
linkTo: t.UnionC<[t.Type<({
|
|
188
208
|
__TYPE__: "ImageLink";
|
|
189
|
-
} & {
|
|
209
|
+
} & ({
|
|
210
|
+
kind: "image";
|
|
211
|
+
} & (({
|
|
190
212
|
id: string;
|
|
191
213
|
url: string;
|
|
192
214
|
height: string;
|
|
193
215
|
width: string;
|
|
194
216
|
size: string;
|
|
195
217
|
name: string;
|
|
196
|
-
kind: string;
|
|
197
218
|
} & {
|
|
198
219
|
date?: string | null | undefined;
|
|
199
|
-
|
|
220
|
+
text?: string;
|
|
221
|
+
}) | {
|
|
222
|
+
text: string;
|
|
223
|
+
}))) | ({
|
|
224
|
+
__TYPE__: "FileLink";
|
|
225
|
+
} & ({
|
|
226
|
+
kind: "file";
|
|
227
|
+
} & (({
|
|
200
228
|
id: string;
|
|
201
229
|
url: string;
|
|
202
230
|
name: string;
|
|
203
|
-
kind: string;
|
|
204
231
|
size: string;
|
|
205
232
|
} & {
|
|
206
233
|
date?: string | null | undefined;
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}) | ({
|
|
234
|
+
text?: string;
|
|
235
|
+
}) | {
|
|
236
|
+
text: string;
|
|
237
|
+
}))) | ({
|
|
212
238
|
__TYPE__: "DocumentLink";
|
|
213
|
-
} & {
|
|
239
|
+
} & (({
|
|
214
240
|
id: string;
|
|
215
|
-
}) | ({
|
|
216
|
-
__TYPE__: "ExternalLink";
|
|
217
241
|
} & {
|
|
242
|
+
kind?: "document";
|
|
243
|
+
text?: string;
|
|
244
|
+
}) | {
|
|
245
|
+
kind: "document";
|
|
246
|
+
text: string;
|
|
247
|
+
})) | ({
|
|
248
|
+
__TYPE__: "ExternalLink";
|
|
249
|
+
} & (({
|
|
218
250
|
url: string;
|
|
219
251
|
} & {
|
|
220
252
|
kind?: "web";
|
|
@@ -222,37 +254,57 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
222
254
|
preview?: {
|
|
223
255
|
title?: string;
|
|
224
256
|
} | null | undefined;
|
|
257
|
+
text?: string;
|
|
258
|
+
}) | {
|
|
259
|
+
kind: "web";
|
|
260
|
+
text: string;
|
|
261
|
+
})) | ({
|
|
262
|
+
__TYPE__: "AnyLink";
|
|
263
|
+
} & {
|
|
264
|
+
text: string;
|
|
225
265
|
}), ({
|
|
226
266
|
__TYPE__: "ImageLink";
|
|
227
|
-
} & {
|
|
267
|
+
} & ({
|
|
268
|
+
kind: "image";
|
|
269
|
+
} & (({
|
|
228
270
|
id: string;
|
|
229
271
|
url: string;
|
|
230
272
|
height: string;
|
|
231
273
|
width: string;
|
|
232
274
|
size: string;
|
|
233
275
|
name: string;
|
|
234
|
-
kind: string;
|
|
235
276
|
} & {
|
|
236
277
|
date?: string | null | undefined;
|
|
237
|
-
|
|
278
|
+
text?: string;
|
|
279
|
+
}) | {
|
|
280
|
+
text: string;
|
|
281
|
+
}))) | ({
|
|
282
|
+
__TYPE__: "FileLink";
|
|
283
|
+
} & ({
|
|
284
|
+
kind: "file";
|
|
285
|
+
} & (({
|
|
238
286
|
id: string;
|
|
239
287
|
url: string;
|
|
240
288
|
name: string;
|
|
241
|
-
kind: string;
|
|
242
289
|
size: string;
|
|
243
290
|
} & {
|
|
244
291
|
date?: string | null | undefined;
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}) | ({
|
|
292
|
+
text?: string;
|
|
293
|
+
}) | {
|
|
294
|
+
text: string;
|
|
295
|
+
}))) | ({
|
|
250
296
|
__TYPE__: "DocumentLink";
|
|
251
|
-
} & {
|
|
297
|
+
} & (({
|
|
252
298
|
id: string;
|
|
253
|
-
}) | ({
|
|
254
|
-
__TYPE__: "ExternalLink";
|
|
255
299
|
} & {
|
|
300
|
+
kind?: "document";
|
|
301
|
+
text?: string;
|
|
302
|
+
}) | {
|
|
303
|
+
kind: "document";
|
|
304
|
+
text: string;
|
|
305
|
+
})) | ({
|
|
306
|
+
__TYPE__: "ExternalLink";
|
|
307
|
+
} & (({
|
|
256
308
|
url: string;
|
|
257
309
|
} & {
|
|
258
310
|
kind?: "web";
|
|
@@ -260,6 +312,14 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
260
312
|
preview?: {
|
|
261
313
|
title?: string;
|
|
262
314
|
} | null | undefined;
|
|
315
|
+
text?: string;
|
|
316
|
+
}) | {
|
|
317
|
+
kind: "web";
|
|
318
|
+
text: string;
|
|
319
|
+
})) | ({
|
|
320
|
+
__TYPE__: "AnyLink";
|
|
321
|
+
} & {
|
|
322
|
+
text: string;
|
|
263
323
|
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
264
324
|
}>]>;
|
|
265
325
|
}>, t.PartialC<{
|
|
@@ -297,35 +357,47 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
297
357
|
spans: t.Type<({
|
|
298
358
|
data: ({
|
|
299
359
|
__TYPE__: "ImageLink";
|
|
300
|
-
} & {
|
|
360
|
+
} & ({
|
|
361
|
+
kind: "image";
|
|
362
|
+
} & (({
|
|
301
363
|
id: string;
|
|
302
364
|
url: string;
|
|
303
365
|
height: string;
|
|
304
366
|
width: string;
|
|
305
367
|
size: string;
|
|
306
368
|
name: string;
|
|
307
|
-
kind: string;
|
|
308
369
|
} & {
|
|
309
370
|
date?: string | null | undefined;
|
|
310
|
-
|
|
371
|
+
text?: string;
|
|
372
|
+
}) | {
|
|
373
|
+
text: string;
|
|
374
|
+
}))) | ({
|
|
375
|
+
__TYPE__: "FileLink";
|
|
376
|
+
} & ({
|
|
377
|
+
kind: "file";
|
|
378
|
+
} & (({
|
|
311
379
|
id: string;
|
|
312
380
|
url: string;
|
|
313
381
|
name: string;
|
|
314
|
-
kind: string;
|
|
315
382
|
size: string;
|
|
316
383
|
} & {
|
|
317
384
|
date?: string | null | undefined;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
}) | ({
|
|
385
|
+
text?: string;
|
|
386
|
+
}) | {
|
|
387
|
+
text: string;
|
|
388
|
+
}))) | ({
|
|
323
389
|
__TYPE__: "DocumentLink";
|
|
324
|
-
} & {
|
|
390
|
+
} & (({
|
|
325
391
|
id: string;
|
|
326
|
-
}) | ({
|
|
327
|
-
__TYPE__: "ExternalLink";
|
|
328
392
|
} & {
|
|
393
|
+
kind?: "document";
|
|
394
|
+
text?: string;
|
|
395
|
+
}) | {
|
|
396
|
+
kind: "document";
|
|
397
|
+
text: string;
|
|
398
|
+
})) | ({
|
|
399
|
+
__TYPE__: "ExternalLink";
|
|
400
|
+
} & (({
|
|
329
401
|
url: string;
|
|
330
402
|
} & {
|
|
331
403
|
kind?: "web";
|
|
@@ -333,6 +405,14 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
333
405
|
preview?: {
|
|
334
406
|
title?: string;
|
|
335
407
|
} | null | undefined;
|
|
408
|
+
text?: string;
|
|
409
|
+
}) | {
|
|
410
|
+
kind: "web";
|
|
411
|
+
text: string;
|
|
412
|
+
})) | ({
|
|
413
|
+
__TYPE__: "AnyLink";
|
|
414
|
+
} & {
|
|
415
|
+
text: string;
|
|
336
416
|
});
|
|
337
417
|
start: number;
|
|
338
418
|
end: number;
|
|
@@ -349,35 +429,47 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
349
429
|
})[], ({
|
|
350
430
|
data: ({
|
|
351
431
|
__TYPE__: "ImageLink";
|
|
352
|
-
} & {
|
|
432
|
+
} & ({
|
|
433
|
+
kind: "image";
|
|
434
|
+
} & (({
|
|
353
435
|
id: string;
|
|
354
436
|
url: string;
|
|
355
437
|
height: string;
|
|
356
438
|
width: string;
|
|
357
439
|
size: string;
|
|
358
440
|
name: string;
|
|
359
|
-
kind: string;
|
|
360
441
|
} & {
|
|
361
442
|
date?: string | null | undefined;
|
|
362
|
-
|
|
443
|
+
text?: string;
|
|
444
|
+
}) | {
|
|
445
|
+
text: string;
|
|
446
|
+
}))) | ({
|
|
447
|
+
__TYPE__: "FileLink";
|
|
448
|
+
} & ({
|
|
449
|
+
kind: "file";
|
|
450
|
+
} & (({
|
|
363
451
|
id: string;
|
|
364
452
|
url: string;
|
|
365
453
|
name: string;
|
|
366
|
-
kind: string;
|
|
367
454
|
size: string;
|
|
368
455
|
} & {
|
|
369
456
|
date?: string | null | undefined;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}) | ({
|
|
457
|
+
text?: string;
|
|
458
|
+
}) | {
|
|
459
|
+
text: string;
|
|
460
|
+
}))) | ({
|
|
375
461
|
__TYPE__: "DocumentLink";
|
|
376
|
-
} & {
|
|
462
|
+
} & (({
|
|
377
463
|
id: string;
|
|
378
|
-
}) | ({
|
|
379
|
-
__TYPE__: "ExternalLink";
|
|
380
464
|
} & {
|
|
465
|
+
kind?: "document";
|
|
466
|
+
text?: string;
|
|
467
|
+
}) | {
|
|
468
|
+
kind: "document";
|
|
469
|
+
text: string;
|
|
470
|
+
})) | ({
|
|
471
|
+
__TYPE__: "ExternalLink";
|
|
472
|
+
} & (({
|
|
381
473
|
url: string;
|
|
382
474
|
} & {
|
|
383
475
|
kind?: "web";
|
|
@@ -385,6 +477,14 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
385
477
|
preview?: {
|
|
386
478
|
title?: string;
|
|
387
479
|
} | null | undefined;
|
|
480
|
+
text?: string;
|
|
481
|
+
}) | {
|
|
482
|
+
kind: "web";
|
|
483
|
+
text: string;
|
|
484
|
+
})) | ({
|
|
485
|
+
__TYPE__: "AnyLink";
|
|
486
|
+
} & {
|
|
487
|
+
text: string;
|
|
388
488
|
});
|
|
389
489
|
start: number;
|
|
390
490
|
end: number;
|
|
@@ -524,35 +624,47 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
524
624
|
__TYPE__: "LinkContent";
|
|
525
625
|
value: ({
|
|
526
626
|
__TYPE__: "ImageLink";
|
|
527
|
-
} & {
|
|
627
|
+
} & ({
|
|
628
|
+
kind: "image";
|
|
629
|
+
} & (({
|
|
528
630
|
id: string;
|
|
529
631
|
url: string;
|
|
530
632
|
height: string;
|
|
531
633
|
width: string;
|
|
532
634
|
size: string;
|
|
533
635
|
name: string;
|
|
534
|
-
kind: string;
|
|
535
636
|
} & {
|
|
536
637
|
date?: string | null | undefined;
|
|
537
|
-
|
|
638
|
+
text?: string;
|
|
639
|
+
}) | {
|
|
640
|
+
text: string;
|
|
641
|
+
}))) | ({
|
|
642
|
+
__TYPE__: "FileLink";
|
|
643
|
+
} & ({
|
|
644
|
+
kind: "file";
|
|
645
|
+
} & (({
|
|
538
646
|
id: string;
|
|
539
647
|
url: string;
|
|
540
648
|
name: string;
|
|
541
|
-
kind: string;
|
|
542
649
|
size: string;
|
|
543
650
|
} & {
|
|
544
651
|
date?: string | null | undefined;
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
}) | ({
|
|
652
|
+
text?: string;
|
|
653
|
+
}) | {
|
|
654
|
+
text: string;
|
|
655
|
+
}))) | ({
|
|
550
656
|
__TYPE__: "DocumentLink";
|
|
551
|
-
} & {
|
|
657
|
+
} & (({
|
|
552
658
|
id: string;
|
|
553
|
-
}) | ({
|
|
554
|
-
__TYPE__: "ExternalLink";
|
|
555
659
|
} & {
|
|
660
|
+
kind?: "document";
|
|
661
|
+
text?: string;
|
|
662
|
+
}) | {
|
|
663
|
+
kind: "document";
|
|
664
|
+
text: string;
|
|
665
|
+
})) | ({
|
|
666
|
+
__TYPE__: "ExternalLink";
|
|
667
|
+
} & (({
|
|
556
668
|
url: string;
|
|
557
669
|
} & {
|
|
558
670
|
kind?: "web";
|
|
@@ -560,6 +672,14 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
560
672
|
preview?: {
|
|
561
673
|
title?: string;
|
|
562
674
|
} | null | undefined;
|
|
675
|
+
text?: string;
|
|
676
|
+
}) | {
|
|
677
|
+
kind: "web";
|
|
678
|
+
text: string;
|
|
679
|
+
})) | ({
|
|
680
|
+
__TYPE__: "AnyLink";
|
|
681
|
+
} & {
|
|
682
|
+
text: string;
|
|
563
683
|
});
|
|
564
684
|
} | {
|
|
565
685
|
__TYPE__: "StructuredTextContent";
|
|
@@ -590,35 +710,47 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
590
710
|
} & {
|
|
591
711
|
linkTo?: ({
|
|
592
712
|
__TYPE__: "ImageLink";
|
|
593
|
-
} & {
|
|
713
|
+
} & ({
|
|
714
|
+
kind: "image";
|
|
715
|
+
} & (({
|
|
594
716
|
id: string;
|
|
595
717
|
url: string;
|
|
596
718
|
height: string;
|
|
597
719
|
width: string;
|
|
598
720
|
size: string;
|
|
599
721
|
name: string;
|
|
600
|
-
kind: string;
|
|
601
722
|
} & {
|
|
602
723
|
date?: string | null | undefined;
|
|
603
|
-
|
|
724
|
+
text?: string;
|
|
725
|
+
}) | {
|
|
726
|
+
text: string;
|
|
727
|
+
}))) | ({
|
|
728
|
+
__TYPE__: "FileLink";
|
|
729
|
+
} & ({
|
|
730
|
+
kind: "file";
|
|
731
|
+
} & (({
|
|
604
732
|
id: string;
|
|
605
733
|
url: string;
|
|
606
734
|
name: string;
|
|
607
|
-
kind: string;
|
|
608
735
|
size: string;
|
|
609
736
|
} & {
|
|
610
737
|
date?: string | null | undefined;
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
}) | ({
|
|
738
|
+
text?: string;
|
|
739
|
+
}) | {
|
|
740
|
+
text: string;
|
|
741
|
+
}))) | ({
|
|
616
742
|
__TYPE__: "DocumentLink";
|
|
617
|
-
} & {
|
|
743
|
+
} & (({
|
|
618
744
|
id: string;
|
|
619
|
-
}) | ({
|
|
620
|
-
__TYPE__: "ExternalLink";
|
|
621
745
|
} & {
|
|
746
|
+
kind?: "document";
|
|
747
|
+
text?: string;
|
|
748
|
+
}) | {
|
|
749
|
+
kind: "document";
|
|
750
|
+
text: string;
|
|
751
|
+
})) | ({
|
|
752
|
+
__TYPE__: "ExternalLink";
|
|
753
|
+
} & (({
|
|
622
754
|
url: string;
|
|
623
755
|
} & {
|
|
624
756
|
kind?: "web";
|
|
@@ -626,6 +758,14 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
626
758
|
preview?: {
|
|
627
759
|
title?: string;
|
|
628
760
|
} | null | undefined;
|
|
761
|
+
text?: string;
|
|
762
|
+
}) | {
|
|
763
|
+
kind: "web";
|
|
764
|
+
text: string;
|
|
765
|
+
})) | ({
|
|
766
|
+
__TYPE__: "AnyLink";
|
|
767
|
+
} & {
|
|
768
|
+
text: string;
|
|
629
769
|
}) | null | undefined;
|
|
630
770
|
};
|
|
631
771
|
} & {
|
|
@@ -663,35 +803,47 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
663
803
|
spans?: ({
|
|
664
804
|
data: ({
|
|
665
805
|
__TYPE__: "ImageLink";
|
|
666
|
-
} & {
|
|
806
|
+
} & ({
|
|
807
|
+
kind: "image";
|
|
808
|
+
} & (({
|
|
667
809
|
id: string;
|
|
668
810
|
url: string;
|
|
669
811
|
height: string;
|
|
670
812
|
width: string;
|
|
671
813
|
size: string;
|
|
672
814
|
name: string;
|
|
673
|
-
kind: string;
|
|
674
815
|
} & {
|
|
675
816
|
date?: string | null | undefined;
|
|
676
|
-
|
|
817
|
+
text?: string;
|
|
818
|
+
}) | {
|
|
819
|
+
text: string;
|
|
820
|
+
}))) | ({
|
|
821
|
+
__TYPE__: "FileLink";
|
|
822
|
+
} & ({
|
|
823
|
+
kind: "file";
|
|
824
|
+
} & (({
|
|
677
825
|
id: string;
|
|
678
826
|
url: string;
|
|
679
827
|
name: string;
|
|
680
|
-
kind: string;
|
|
681
828
|
size: string;
|
|
682
829
|
} & {
|
|
683
830
|
date?: string | null | undefined;
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
}) | ({
|
|
831
|
+
text?: string;
|
|
832
|
+
}) | {
|
|
833
|
+
text: string;
|
|
834
|
+
}))) | ({
|
|
689
835
|
__TYPE__: "DocumentLink";
|
|
690
|
-
} & {
|
|
836
|
+
} & (({
|
|
691
837
|
id: string;
|
|
692
|
-
}) | ({
|
|
693
|
-
__TYPE__: "ExternalLink";
|
|
694
838
|
} & {
|
|
839
|
+
kind?: "document";
|
|
840
|
+
text?: string;
|
|
841
|
+
}) | {
|
|
842
|
+
kind: "document";
|
|
843
|
+
text: string;
|
|
844
|
+
})) | ({
|
|
845
|
+
__TYPE__: "ExternalLink";
|
|
846
|
+
} & (({
|
|
695
847
|
url: string;
|
|
696
848
|
} & {
|
|
697
849
|
kind?: "web";
|
|
@@ -699,6 +851,14 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
699
851
|
preview?: {
|
|
700
852
|
title?: string;
|
|
701
853
|
} | null | undefined;
|
|
854
|
+
text?: string;
|
|
855
|
+
}) | {
|
|
856
|
+
kind: "web";
|
|
857
|
+
text: string;
|
|
858
|
+
})) | ({
|
|
859
|
+
__TYPE__: "AnyLink";
|
|
860
|
+
} & {
|
|
861
|
+
text: string;
|
|
702
862
|
});
|
|
703
863
|
start: number;
|
|
704
864
|
end: number;
|
|
@@ -838,35 +998,47 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
838
998
|
__TYPE__: "LinkContent";
|
|
839
999
|
value: ({
|
|
840
1000
|
__TYPE__: "ImageLink";
|
|
841
|
-
} & {
|
|
1001
|
+
} & ({
|
|
1002
|
+
kind: "image";
|
|
1003
|
+
} & (({
|
|
842
1004
|
id: string;
|
|
843
1005
|
url: string;
|
|
844
1006
|
height: string;
|
|
845
1007
|
width: string;
|
|
846
1008
|
size: string;
|
|
847
1009
|
name: string;
|
|
848
|
-
kind: string;
|
|
849
1010
|
} & {
|
|
850
1011
|
date?: string | null | undefined;
|
|
851
|
-
|
|
1012
|
+
text?: string;
|
|
1013
|
+
}) | {
|
|
1014
|
+
text: string;
|
|
1015
|
+
}))) | ({
|
|
1016
|
+
__TYPE__: "FileLink";
|
|
1017
|
+
} & ({
|
|
1018
|
+
kind: "file";
|
|
1019
|
+
} & (({
|
|
852
1020
|
id: string;
|
|
853
1021
|
url: string;
|
|
854
1022
|
name: string;
|
|
855
|
-
kind: string;
|
|
856
1023
|
size: string;
|
|
857
1024
|
} & {
|
|
858
1025
|
date?: string | null | undefined;
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
}) | ({
|
|
1026
|
+
text?: string;
|
|
1027
|
+
}) | {
|
|
1028
|
+
text: string;
|
|
1029
|
+
}))) | ({
|
|
864
1030
|
__TYPE__: "DocumentLink";
|
|
865
|
-
} & {
|
|
1031
|
+
} & (({
|
|
866
1032
|
id: string;
|
|
867
|
-
}) | ({
|
|
868
|
-
__TYPE__: "ExternalLink";
|
|
869
1033
|
} & {
|
|
1034
|
+
kind?: "document";
|
|
1035
|
+
text?: string;
|
|
1036
|
+
}) | {
|
|
1037
|
+
kind: "document";
|
|
1038
|
+
text: string;
|
|
1039
|
+
})) | ({
|
|
1040
|
+
__TYPE__: "ExternalLink";
|
|
1041
|
+
} & (({
|
|
870
1042
|
url: string;
|
|
871
1043
|
} & {
|
|
872
1044
|
kind?: "web";
|
|
@@ -874,6 +1046,14 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
874
1046
|
preview?: {
|
|
875
1047
|
title?: string;
|
|
876
1048
|
} | null | undefined;
|
|
1049
|
+
text?: string;
|
|
1050
|
+
}) | {
|
|
1051
|
+
kind: "web";
|
|
1052
|
+
text: string;
|
|
1053
|
+
})) | ({
|
|
1054
|
+
__TYPE__: "AnyLink";
|
|
1055
|
+
} & {
|
|
1056
|
+
text: string;
|
|
877
1057
|
});
|
|
878
1058
|
}> | import("fp-ts/lib/Either").Right<{
|
|
879
1059
|
__TYPE__: "StructuredTextContent";
|
|
@@ -904,35 +1084,47 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
904
1084
|
} & {
|
|
905
1085
|
linkTo?: ({
|
|
906
1086
|
__TYPE__: "ImageLink";
|
|
907
|
-
} & {
|
|
1087
|
+
} & ({
|
|
1088
|
+
kind: "image";
|
|
1089
|
+
} & (({
|
|
908
1090
|
id: string;
|
|
909
1091
|
url: string;
|
|
910
1092
|
height: string;
|
|
911
1093
|
width: string;
|
|
912
1094
|
size: string;
|
|
913
1095
|
name: string;
|
|
914
|
-
kind: string;
|
|
915
1096
|
} & {
|
|
916
1097
|
date?: string | null | undefined;
|
|
917
|
-
|
|
1098
|
+
text?: string;
|
|
1099
|
+
}) | {
|
|
1100
|
+
text: string;
|
|
1101
|
+
}))) | ({
|
|
1102
|
+
__TYPE__: "FileLink";
|
|
1103
|
+
} & ({
|
|
1104
|
+
kind: "file";
|
|
1105
|
+
} & (({
|
|
918
1106
|
id: string;
|
|
919
1107
|
url: string;
|
|
920
1108
|
name: string;
|
|
921
|
-
kind: string;
|
|
922
1109
|
size: string;
|
|
923
1110
|
} & {
|
|
924
1111
|
date?: string | null | undefined;
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
}) | ({
|
|
1112
|
+
text?: string;
|
|
1113
|
+
}) | {
|
|
1114
|
+
text: string;
|
|
1115
|
+
}))) | ({
|
|
930
1116
|
__TYPE__: "DocumentLink";
|
|
931
|
-
} & {
|
|
1117
|
+
} & (({
|
|
932
1118
|
id: string;
|
|
933
|
-
}) | ({
|
|
934
|
-
__TYPE__: "ExternalLink";
|
|
935
1119
|
} & {
|
|
1120
|
+
kind?: "document";
|
|
1121
|
+
text?: string;
|
|
1122
|
+
}) | {
|
|
1123
|
+
kind: "document";
|
|
1124
|
+
text: string;
|
|
1125
|
+
})) | ({
|
|
1126
|
+
__TYPE__: "ExternalLink";
|
|
1127
|
+
} & (({
|
|
936
1128
|
url: string;
|
|
937
1129
|
} & {
|
|
938
1130
|
kind?: "web";
|
|
@@ -940,6 +1132,14 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
940
1132
|
preview?: {
|
|
941
1133
|
title?: string;
|
|
942
1134
|
} | null | undefined;
|
|
1135
|
+
text?: string;
|
|
1136
|
+
}) | {
|
|
1137
|
+
kind: "web";
|
|
1138
|
+
text: string;
|
|
1139
|
+
})) | ({
|
|
1140
|
+
__TYPE__: "AnyLink";
|
|
1141
|
+
} & {
|
|
1142
|
+
text: string;
|
|
943
1143
|
}) | null | undefined;
|
|
944
1144
|
};
|
|
945
1145
|
} & {
|
|
@@ -977,35 +1177,47 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
977
1177
|
spans?: ({
|
|
978
1178
|
data: ({
|
|
979
1179
|
__TYPE__: "ImageLink";
|
|
980
|
-
} & {
|
|
1180
|
+
} & ({
|
|
1181
|
+
kind: "image";
|
|
1182
|
+
} & (({
|
|
981
1183
|
id: string;
|
|
982
1184
|
url: string;
|
|
983
1185
|
height: string;
|
|
984
1186
|
width: string;
|
|
985
1187
|
size: string;
|
|
986
1188
|
name: string;
|
|
987
|
-
kind: string;
|
|
988
1189
|
} & {
|
|
989
1190
|
date?: string | null | undefined;
|
|
990
|
-
|
|
1191
|
+
text?: string;
|
|
1192
|
+
}) | {
|
|
1193
|
+
text: string;
|
|
1194
|
+
}))) | ({
|
|
1195
|
+
__TYPE__: "FileLink";
|
|
1196
|
+
} & ({
|
|
1197
|
+
kind: "file";
|
|
1198
|
+
} & (({
|
|
991
1199
|
id: string;
|
|
992
1200
|
url: string;
|
|
993
1201
|
name: string;
|
|
994
|
-
kind: string;
|
|
995
1202
|
size: string;
|
|
996
1203
|
} & {
|
|
997
1204
|
date?: string | null | undefined;
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
}) | ({
|
|
1205
|
+
text?: string;
|
|
1206
|
+
}) | {
|
|
1207
|
+
text: string;
|
|
1208
|
+
}))) | ({
|
|
1003
1209
|
__TYPE__: "DocumentLink";
|
|
1004
|
-
} & {
|
|
1210
|
+
} & (({
|
|
1005
1211
|
id: string;
|
|
1006
|
-
}) | ({
|
|
1007
|
-
__TYPE__: "ExternalLink";
|
|
1008
1212
|
} & {
|
|
1213
|
+
kind?: "document";
|
|
1214
|
+
text?: string;
|
|
1215
|
+
}) | {
|
|
1216
|
+
kind: "document";
|
|
1217
|
+
text: string;
|
|
1218
|
+
})) | ({
|
|
1219
|
+
__TYPE__: "ExternalLink";
|
|
1220
|
+
} & (({
|
|
1009
1221
|
url: string;
|
|
1010
1222
|
} & {
|
|
1011
1223
|
kind?: "web";
|
|
@@ -1013,6 +1225,14 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1013
1225
|
preview?: {
|
|
1014
1226
|
title?: string;
|
|
1015
1227
|
} | null | undefined;
|
|
1228
|
+
text?: string;
|
|
1229
|
+
}) | {
|
|
1230
|
+
kind: "web";
|
|
1231
|
+
text: string;
|
|
1232
|
+
})) | ({
|
|
1233
|
+
__TYPE__: "AnyLink";
|
|
1234
|
+
} & {
|
|
1235
|
+
text: string;
|
|
1016
1236
|
});
|
|
1017
1237
|
start: number;
|
|
1018
1238
|
end: number;
|