@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
|
@@ -115,40 +115,47 @@ export declare const SlicePrimaryContent: t.UnionC<[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;
|
|
129
|
-
}>]
|
|
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<{
|
|
130
137
|
id: t.StringC;
|
|
131
138
|
url: t.StringC;
|
|
132
139
|
name: t.StringC;
|
|
133
|
-
kind: t.StringC;
|
|
134
140
|
size: t.StringC;
|
|
135
141
|
}>, t.PartialC<{
|
|
136
142
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
137
143
|
text: t.StringC;
|
|
138
|
-
}>]>>, t.ExactC<t.
|
|
139
|
-
__TYPE__: t.LiteralC<"FileLink">;
|
|
140
|
-
}>, t.PartialC<{
|
|
141
|
-
size: t.StringC;
|
|
144
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
142
145
|
text: t.StringC;
|
|
143
|
-
}>]
|
|
146
|
+
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
144
147
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
145
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
148
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
146
149
|
id: t.Type<string, string, unknown>;
|
|
147
150
|
}>, t.PartialC<{
|
|
151
|
+
kind: t.LiteralC<"document">;
|
|
148
152
|
text: t.StringC;
|
|
149
|
-
}>]
|
|
153
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
154
|
+
kind: t.LiteralC<"document">;
|
|
155
|
+
text: t.StringC;
|
|
156
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
150
157
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
151
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
158
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
152
159
|
url: t.StringC;
|
|
153
160
|
}>, t.PartialC<{
|
|
154
161
|
kind: t.LiteralC<"web">;
|
|
@@ -159,7 +166,14 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
159
166
|
title?: string;
|
|
160
167
|
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
161
168
|
text: t.StringC;
|
|
162
|
-
}>]
|
|
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
|
+
}>>]>]>;
|
|
163
177
|
}>>, t.ExactC<t.TypeC<{
|
|
164
178
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
165
179
|
value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -189,40 +203,47 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
189
203
|
}>]>>, t.PartialC<{
|
|
190
204
|
linkTo: t.UnionC<[t.Type<({
|
|
191
205
|
__TYPE__: "ImageLink";
|
|
192
|
-
} & {
|
|
206
|
+
} & ({
|
|
207
|
+
kind: "image";
|
|
208
|
+
} & (({
|
|
193
209
|
id: string;
|
|
194
210
|
url: string;
|
|
195
211
|
height: string;
|
|
196
212
|
width: string;
|
|
197
213
|
size: string;
|
|
198
214
|
name: string;
|
|
199
|
-
kind: string;
|
|
200
215
|
} & {
|
|
201
216
|
date?: string | null | undefined;
|
|
202
217
|
text?: string;
|
|
203
|
-
}) |
|
|
218
|
+
}) | {
|
|
219
|
+
text: string;
|
|
220
|
+
}))) | ({
|
|
221
|
+
__TYPE__: "FileLink";
|
|
222
|
+
} & ({
|
|
223
|
+
kind: "file";
|
|
224
|
+
} & (({
|
|
204
225
|
id: string;
|
|
205
226
|
url: string;
|
|
206
227
|
name: string;
|
|
207
|
-
kind: string;
|
|
208
228
|
size: string;
|
|
209
229
|
} & {
|
|
210
230
|
date?: string | null | undefined;
|
|
211
231
|
text?: string;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
size?: string;
|
|
216
|
-
text?: string;
|
|
217
|
-
}) | ({
|
|
232
|
+
}) | {
|
|
233
|
+
text: string;
|
|
234
|
+
}))) | ({
|
|
218
235
|
__TYPE__: "DocumentLink";
|
|
219
|
-
} & {
|
|
236
|
+
} & (({
|
|
220
237
|
id: string;
|
|
221
238
|
} & {
|
|
239
|
+
kind?: "document";
|
|
222
240
|
text?: string;
|
|
223
|
-
}) |
|
|
241
|
+
}) | {
|
|
242
|
+
kind: "document";
|
|
243
|
+
text: string;
|
|
244
|
+
})) | ({
|
|
224
245
|
__TYPE__: "ExternalLink";
|
|
225
|
-
} & {
|
|
246
|
+
} & (({
|
|
226
247
|
url: string;
|
|
227
248
|
} & {
|
|
228
249
|
kind?: "web";
|
|
@@ -231,42 +252,56 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
231
252
|
title?: string;
|
|
232
253
|
} | null | undefined;
|
|
233
254
|
text?: string;
|
|
255
|
+
}) | {
|
|
256
|
+
kind: "web";
|
|
257
|
+
text: string;
|
|
258
|
+
})) | ({
|
|
259
|
+
__TYPE__: "AnyLink";
|
|
260
|
+
} & {
|
|
261
|
+
text: string;
|
|
234
262
|
}), ({
|
|
235
263
|
__TYPE__: "ImageLink";
|
|
236
|
-
} & {
|
|
264
|
+
} & ({
|
|
265
|
+
kind: "image";
|
|
266
|
+
} & (({
|
|
237
267
|
id: string;
|
|
238
268
|
url: string;
|
|
239
269
|
height: string;
|
|
240
270
|
width: string;
|
|
241
271
|
size: string;
|
|
242
272
|
name: string;
|
|
243
|
-
kind: string;
|
|
244
273
|
} & {
|
|
245
274
|
date?: string | null | undefined;
|
|
246
275
|
text?: string;
|
|
247
|
-
}) |
|
|
276
|
+
}) | {
|
|
277
|
+
text: string;
|
|
278
|
+
}))) | ({
|
|
279
|
+
__TYPE__: "FileLink";
|
|
280
|
+
} & ({
|
|
281
|
+
kind: "file";
|
|
282
|
+
} & (({
|
|
248
283
|
id: string;
|
|
249
284
|
url: string;
|
|
250
285
|
name: string;
|
|
251
|
-
kind: string;
|
|
252
286
|
size: string;
|
|
253
287
|
} & {
|
|
254
288
|
date?: string | null | undefined;
|
|
255
289
|
text?: string;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
size?: string;
|
|
260
|
-
text?: string;
|
|
261
|
-
}) | ({
|
|
290
|
+
}) | {
|
|
291
|
+
text: string;
|
|
292
|
+
}))) | ({
|
|
262
293
|
__TYPE__: "DocumentLink";
|
|
263
|
-
} & {
|
|
294
|
+
} & (({
|
|
264
295
|
id: string;
|
|
265
296
|
} & {
|
|
297
|
+
kind?: "document";
|
|
266
298
|
text?: string;
|
|
267
|
-
}) |
|
|
299
|
+
}) | {
|
|
300
|
+
kind: "document";
|
|
301
|
+
text: string;
|
|
302
|
+
})) | ({
|
|
268
303
|
__TYPE__: "ExternalLink";
|
|
269
|
-
} & {
|
|
304
|
+
} & (({
|
|
270
305
|
url: string;
|
|
271
306
|
} & {
|
|
272
307
|
kind?: "web";
|
|
@@ -275,6 +310,13 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
275
310
|
title?: string;
|
|
276
311
|
} | null | undefined;
|
|
277
312
|
text?: string;
|
|
313
|
+
}) | {
|
|
314
|
+
kind: "web";
|
|
315
|
+
text: string;
|
|
316
|
+
})) | ({
|
|
317
|
+
__TYPE__: "AnyLink";
|
|
318
|
+
} & {
|
|
319
|
+
text: string;
|
|
278
320
|
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
279
321
|
}>]>;
|
|
280
322
|
}>, t.PartialC<{
|
|
@@ -312,40 +354,47 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
312
354
|
spans: t.Type<({
|
|
313
355
|
data: ({
|
|
314
356
|
__TYPE__: "ImageLink";
|
|
315
|
-
} & {
|
|
357
|
+
} & ({
|
|
358
|
+
kind: "image";
|
|
359
|
+
} & (({
|
|
316
360
|
id: string;
|
|
317
361
|
url: string;
|
|
318
362
|
height: string;
|
|
319
363
|
width: string;
|
|
320
364
|
size: string;
|
|
321
365
|
name: string;
|
|
322
|
-
kind: string;
|
|
323
366
|
} & {
|
|
324
367
|
date?: string | null | undefined;
|
|
325
368
|
text?: string;
|
|
326
|
-
}) |
|
|
369
|
+
}) | {
|
|
370
|
+
text: string;
|
|
371
|
+
}))) | ({
|
|
372
|
+
__TYPE__: "FileLink";
|
|
373
|
+
} & ({
|
|
374
|
+
kind: "file";
|
|
375
|
+
} & (({
|
|
327
376
|
id: string;
|
|
328
377
|
url: string;
|
|
329
378
|
name: string;
|
|
330
|
-
kind: string;
|
|
331
379
|
size: string;
|
|
332
380
|
} & {
|
|
333
381
|
date?: string | null | undefined;
|
|
334
382
|
text?: string;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
}
|
|
338
|
-
size?: string;
|
|
339
|
-
text?: string;
|
|
340
|
-
}) | ({
|
|
383
|
+
}) | {
|
|
384
|
+
text: string;
|
|
385
|
+
}))) | ({
|
|
341
386
|
__TYPE__: "DocumentLink";
|
|
342
|
-
} & {
|
|
387
|
+
} & (({
|
|
343
388
|
id: string;
|
|
344
389
|
} & {
|
|
390
|
+
kind?: "document";
|
|
345
391
|
text?: string;
|
|
346
|
-
}) |
|
|
392
|
+
}) | {
|
|
393
|
+
kind: "document";
|
|
394
|
+
text: string;
|
|
395
|
+
})) | ({
|
|
347
396
|
__TYPE__: "ExternalLink";
|
|
348
|
-
} & {
|
|
397
|
+
} & (({
|
|
349
398
|
url: string;
|
|
350
399
|
} & {
|
|
351
400
|
kind?: "web";
|
|
@@ -354,6 +403,13 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
354
403
|
title?: string;
|
|
355
404
|
} | null | undefined;
|
|
356
405
|
text?: string;
|
|
406
|
+
}) | {
|
|
407
|
+
kind: "web";
|
|
408
|
+
text: string;
|
|
409
|
+
})) | ({
|
|
410
|
+
__TYPE__: "AnyLink";
|
|
411
|
+
} & {
|
|
412
|
+
text: string;
|
|
357
413
|
});
|
|
358
414
|
start: number;
|
|
359
415
|
end: number;
|
|
@@ -370,40 +426,47 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
370
426
|
})[], ({
|
|
371
427
|
data: ({
|
|
372
428
|
__TYPE__: "ImageLink";
|
|
373
|
-
} & {
|
|
429
|
+
} & ({
|
|
430
|
+
kind: "image";
|
|
431
|
+
} & (({
|
|
374
432
|
id: string;
|
|
375
433
|
url: string;
|
|
376
434
|
height: string;
|
|
377
435
|
width: string;
|
|
378
436
|
size: string;
|
|
379
437
|
name: string;
|
|
380
|
-
kind: string;
|
|
381
438
|
} & {
|
|
382
439
|
date?: string | null | undefined;
|
|
383
440
|
text?: string;
|
|
384
|
-
}) |
|
|
441
|
+
}) | {
|
|
442
|
+
text: string;
|
|
443
|
+
}))) | ({
|
|
444
|
+
__TYPE__: "FileLink";
|
|
445
|
+
} & ({
|
|
446
|
+
kind: "file";
|
|
447
|
+
} & (({
|
|
385
448
|
id: string;
|
|
386
449
|
url: string;
|
|
387
450
|
name: string;
|
|
388
|
-
kind: string;
|
|
389
451
|
size: string;
|
|
390
452
|
} & {
|
|
391
453
|
date?: string | null | undefined;
|
|
392
454
|
text?: string;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
}
|
|
396
|
-
size?: string;
|
|
397
|
-
text?: string;
|
|
398
|
-
}) | ({
|
|
455
|
+
}) | {
|
|
456
|
+
text: string;
|
|
457
|
+
}))) | ({
|
|
399
458
|
__TYPE__: "DocumentLink";
|
|
400
|
-
} & {
|
|
459
|
+
} & (({
|
|
401
460
|
id: string;
|
|
402
461
|
} & {
|
|
462
|
+
kind?: "document";
|
|
403
463
|
text?: string;
|
|
404
|
-
}) |
|
|
464
|
+
}) | {
|
|
465
|
+
kind: "document";
|
|
466
|
+
text: string;
|
|
467
|
+
})) | ({
|
|
405
468
|
__TYPE__: "ExternalLink";
|
|
406
|
-
} & {
|
|
469
|
+
} & (({
|
|
407
470
|
url: string;
|
|
408
471
|
} & {
|
|
409
472
|
kind?: "web";
|
|
@@ -412,6 +475,13 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
412
475
|
title?: string;
|
|
413
476
|
} | null | undefined;
|
|
414
477
|
text?: string;
|
|
478
|
+
}) | {
|
|
479
|
+
kind: "web";
|
|
480
|
+
text: string;
|
|
481
|
+
})) | ({
|
|
482
|
+
__TYPE__: "AnyLink";
|
|
483
|
+
} & {
|
|
484
|
+
text: string;
|
|
415
485
|
});
|
|
416
486
|
start: number;
|
|
417
487
|
end: number;
|
|
@@ -553,40 +623,47 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
553
623
|
__TYPE__: "LinkContent";
|
|
554
624
|
value: ({
|
|
555
625
|
__TYPE__: "ImageLink";
|
|
556
|
-
} & {
|
|
626
|
+
} & ({
|
|
627
|
+
kind: "image";
|
|
628
|
+
} & (({
|
|
557
629
|
id: string;
|
|
558
630
|
url: string;
|
|
559
631
|
height: string;
|
|
560
632
|
width: string;
|
|
561
633
|
size: string;
|
|
562
634
|
name: string;
|
|
563
|
-
kind: string;
|
|
564
635
|
} & {
|
|
565
636
|
date?: string | null | undefined;
|
|
566
637
|
text?: string;
|
|
567
|
-
}) |
|
|
638
|
+
}) | {
|
|
639
|
+
text: string;
|
|
640
|
+
}))) | ({
|
|
641
|
+
__TYPE__: "FileLink";
|
|
642
|
+
} & ({
|
|
643
|
+
kind: "file";
|
|
644
|
+
} & (({
|
|
568
645
|
id: string;
|
|
569
646
|
url: string;
|
|
570
647
|
name: string;
|
|
571
|
-
kind: string;
|
|
572
648
|
size: string;
|
|
573
649
|
} & {
|
|
574
650
|
date?: string | null | undefined;
|
|
575
651
|
text?: string;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
}
|
|
579
|
-
size?: string;
|
|
580
|
-
text?: string;
|
|
581
|
-
}) | ({
|
|
652
|
+
}) | {
|
|
653
|
+
text: string;
|
|
654
|
+
}))) | ({
|
|
582
655
|
__TYPE__: "DocumentLink";
|
|
583
|
-
} & {
|
|
656
|
+
} & (({
|
|
584
657
|
id: string;
|
|
585
658
|
} & {
|
|
659
|
+
kind?: "document";
|
|
586
660
|
text?: string;
|
|
587
|
-
}) |
|
|
661
|
+
}) | {
|
|
662
|
+
kind: "document";
|
|
663
|
+
text: string;
|
|
664
|
+
})) | ({
|
|
588
665
|
__TYPE__: "ExternalLink";
|
|
589
|
-
} & {
|
|
666
|
+
} & (({
|
|
590
667
|
url: string;
|
|
591
668
|
} & {
|
|
592
669
|
kind?: "web";
|
|
@@ -595,6 +672,13 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
595
672
|
title?: string;
|
|
596
673
|
} | null | undefined;
|
|
597
674
|
text?: string;
|
|
675
|
+
}) | {
|
|
676
|
+
kind: "web";
|
|
677
|
+
text: string;
|
|
678
|
+
})) | ({
|
|
679
|
+
__TYPE__: "AnyLink";
|
|
680
|
+
} & {
|
|
681
|
+
text: string;
|
|
598
682
|
});
|
|
599
683
|
}> | import("fp-ts/lib/Either").Right<{
|
|
600
684
|
__TYPE__: "StructuredTextContent";
|
|
@@ -625,40 +709,47 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
625
709
|
} & {
|
|
626
710
|
linkTo?: ({
|
|
627
711
|
__TYPE__: "ImageLink";
|
|
628
|
-
} & {
|
|
712
|
+
} & ({
|
|
713
|
+
kind: "image";
|
|
714
|
+
} & (({
|
|
629
715
|
id: string;
|
|
630
716
|
url: string;
|
|
631
717
|
height: string;
|
|
632
718
|
width: string;
|
|
633
719
|
size: string;
|
|
634
720
|
name: string;
|
|
635
|
-
kind: string;
|
|
636
721
|
} & {
|
|
637
722
|
date?: string | null | undefined;
|
|
638
723
|
text?: string;
|
|
639
|
-
}) |
|
|
724
|
+
}) | {
|
|
725
|
+
text: string;
|
|
726
|
+
}))) | ({
|
|
727
|
+
__TYPE__: "FileLink";
|
|
728
|
+
} & ({
|
|
729
|
+
kind: "file";
|
|
730
|
+
} & (({
|
|
640
731
|
id: string;
|
|
641
732
|
url: string;
|
|
642
733
|
name: string;
|
|
643
|
-
kind: string;
|
|
644
734
|
size: string;
|
|
645
735
|
} & {
|
|
646
736
|
date?: string | null | undefined;
|
|
647
737
|
text?: string;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
}
|
|
651
|
-
size?: string;
|
|
652
|
-
text?: string;
|
|
653
|
-
}) | ({
|
|
738
|
+
}) | {
|
|
739
|
+
text: string;
|
|
740
|
+
}))) | ({
|
|
654
741
|
__TYPE__: "DocumentLink";
|
|
655
|
-
} & {
|
|
742
|
+
} & (({
|
|
656
743
|
id: string;
|
|
657
744
|
} & {
|
|
745
|
+
kind?: "document";
|
|
658
746
|
text?: string;
|
|
659
|
-
}) |
|
|
747
|
+
}) | {
|
|
748
|
+
kind: "document";
|
|
749
|
+
text: string;
|
|
750
|
+
})) | ({
|
|
660
751
|
__TYPE__: "ExternalLink";
|
|
661
|
-
} & {
|
|
752
|
+
} & (({
|
|
662
753
|
url: string;
|
|
663
754
|
} & {
|
|
664
755
|
kind?: "web";
|
|
@@ -667,6 +758,13 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
667
758
|
title?: string;
|
|
668
759
|
} | null | undefined;
|
|
669
760
|
text?: string;
|
|
761
|
+
}) | {
|
|
762
|
+
kind: "web";
|
|
763
|
+
text: string;
|
|
764
|
+
})) | ({
|
|
765
|
+
__TYPE__: "AnyLink";
|
|
766
|
+
} & {
|
|
767
|
+
text: string;
|
|
670
768
|
}) | null | undefined;
|
|
671
769
|
};
|
|
672
770
|
} & {
|
|
@@ -704,40 +802,47 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
704
802
|
spans?: ({
|
|
705
803
|
data: ({
|
|
706
804
|
__TYPE__: "ImageLink";
|
|
707
|
-
} & {
|
|
805
|
+
} & ({
|
|
806
|
+
kind: "image";
|
|
807
|
+
} & (({
|
|
708
808
|
id: string;
|
|
709
809
|
url: string;
|
|
710
810
|
height: string;
|
|
711
811
|
width: string;
|
|
712
812
|
size: string;
|
|
713
813
|
name: string;
|
|
714
|
-
kind: string;
|
|
715
814
|
} & {
|
|
716
815
|
date?: string | null | undefined;
|
|
717
816
|
text?: string;
|
|
718
|
-
}) |
|
|
817
|
+
}) | {
|
|
818
|
+
text: string;
|
|
819
|
+
}))) | ({
|
|
820
|
+
__TYPE__: "FileLink";
|
|
821
|
+
} & ({
|
|
822
|
+
kind: "file";
|
|
823
|
+
} & (({
|
|
719
824
|
id: string;
|
|
720
825
|
url: string;
|
|
721
826
|
name: string;
|
|
722
|
-
kind: string;
|
|
723
827
|
size: string;
|
|
724
828
|
} & {
|
|
725
829
|
date?: string | null | undefined;
|
|
726
830
|
text?: string;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
}
|
|
730
|
-
size?: string;
|
|
731
|
-
text?: string;
|
|
732
|
-
}) | ({
|
|
831
|
+
}) | {
|
|
832
|
+
text: string;
|
|
833
|
+
}))) | ({
|
|
733
834
|
__TYPE__: "DocumentLink";
|
|
734
|
-
} & {
|
|
835
|
+
} & (({
|
|
735
836
|
id: string;
|
|
736
837
|
} & {
|
|
838
|
+
kind?: "document";
|
|
737
839
|
text?: string;
|
|
738
|
-
}) |
|
|
840
|
+
}) | {
|
|
841
|
+
kind: "document";
|
|
842
|
+
text: string;
|
|
843
|
+
})) | ({
|
|
739
844
|
__TYPE__: "ExternalLink";
|
|
740
|
-
} & {
|
|
845
|
+
} & (({
|
|
741
846
|
url: string;
|
|
742
847
|
} & {
|
|
743
848
|
kind?: "web";
|
|
@@ -746,6 +851,13 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
746
851
|
title?: string;
|
|
747
852
|
} | null | undefined;
|
|
748
853
|
text?: string;
|
|
854
|
+
}) | {
|
|
855
|
+
kind: "web";
|
|
856
|
+
text: string;
|
|
857
|
+
})) | ({
|
|
858
|
+
__TYPE__: "AnyLink";
|
|
859
|
+
} & {
|
|
860
|
+
text: string;
|
|
749
861
|
});
|
|
750
862
|
start: number;
|
|
751
863
|
end: number;
|
|
@@ -886,40 +998,47 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
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 isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
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
|
} | {
|
|
933
1059
|
__TYPE__: "StructuredTextContent";
|
|
@@ -958,40 +1084,47 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
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 isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
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 isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
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 isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
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;
|