@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 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;
|
|
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 SlicePrimaryContent: t.UnionC<[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 SlicePrimaryContent: t.UnionC<[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 SlicePrimaryContent: t.UnionC<[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 SlicePrimaryContent: t.UnionC<[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 SlicePrimaryContent: t.UnionC<[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 SlicePrimaryContent: t.UnionC<[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 SlicePrimaryContent: t.UnionC<[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 SlicePrimaryContent: t.UnionC<[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 SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
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 SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
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
|
}> | import("fp-ts/lib/Either").Right<{
|
|
564
684
|
__TYPE__: "StructuredTextContent";
|
|
@@ -589,35 +709,47 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
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 SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
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 SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
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 SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
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;
|
|
@@ -838,35 +998,47 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
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 isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
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
|
} | {
|
|
879
1059
|
__TYPE__: "StructuredTextContent";
|
|
@@ -904,35 +1084,47 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
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 isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
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 isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
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 isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
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;
|