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