@prismicio/types-internal 2.5.0-alpha.0 → 2.5.0-alpha.2

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.
Files changed (50) hide show
  1. package/lib/content/Document.d.ts +3972 -7926
  2. package/lib/content/fields/GroupContent.d.ts +17 -1754
  3. package/lib/content/fields/GroupContent.js +62 -22
  4. package/lib/content/fields/WidgetContent.d.ts +3371 -7324
  5. package/lib/content/fields/nestable/NestableContent.d.ts +3 -145
  6. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +4 -212
  7. package/lib/content/fields/nestable/RichTextContent/Blocks.js +2 -0
  8. package/lib/content/fields/nestable/RichTextContent/index.d.ts +4 -184
  9. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +6 -290
  10. package/lib/content/fields/slices/Slice/CompositeSliceContent.js +3 -0
  11. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +2 -383
  12. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +15 -1333
  13. package/lib/content/fields/slices/Slice/SharedSliceContent.js +2 -0
  14. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +7 -1182
  15. package/lib/content/fields/slices/Slice/SimpleSliceContent.js +1 -0
  16. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +7 -1182
  17. package/lib/content/fields/slices/Slice/index.d.ts +983 -2935
  18. package/lib/content/fields/slices/SliceItem.d.ts +148 -2100
  19. package/lib/content/fields/slices/SlicesContent.d.ts +866 -3644
  20. package/lib/content/fields/withDefaultValues.d.ts +4 -3
  21. package/lib/content/fields/withDefaultValues.js +17 -1
  22. package/lib/customtypes/CustomType.d.ts +70 -915
  23. package/lib/customtypes/Section.d.ts +70 -915
  24. package/lib/customtypes/diff/SharedSlice.d.ts +2 -340
  25. package/lib/customtypes/diff/Variation.d.ts +4 -351
  26. package/lib/customtypes/diff/Variation.js +4 -3
  27. package/lib/customtypes/diff/Widgets.d.ts +11 -0
  28. package/lib/customtypes/diff/Widgets.js +2 -0
  29. package/lib/customtypes/diff/index.d.ts +1 -0
  30. package/lib/customtypes/diff/index.js +1 -0
  31. package/lib/customtypes/widgets/Group.d.ts +15 -331
  32. package/lib/customtypes/widgets/Group.js +25 -5
  33. package/lib/customtypes/widgets/Widget.d.ts +7 -1014
  34. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -168
  35. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +2 -336
  36. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +3 -338
  37. package/lib/customtypes/widgets/slices/Slices.d.ts +7 -1184
  38. package/lib/validators/function.js +8 -1
  39. package/package.json +5 -5
  40. package/src/content/fields/GroupContent.ts +107 -32
  41. package/src/content/fields/nestable/RichTextContent/Blocks.ts +3 -1
  42. package/src/content/fields/slices/Slice/CompositeSliceContent.ts +7 -4
  43. package/src/content/fields/slices/Slice/SharedSliceContent.ts +5 -3
  44. package/src/content/fields/slices/Slice/SimpleSliceContent.ts +3 -1
  45. package/src/content/fields/withDefaultValues.ts +27 -3
  46. package/src/customtypes/diff/Variation.ts +9 -20
  47. package/src/customtypes/diff/Widgets.ts +17 -0
  48. package/src/customtypes/diff/index.ts +1 -0
  49. package/src/customtypes/widgets/Group.ts +66 -20
  50. package/src/validators/function.ts +11 -1
@@ -188,45 +188,7 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
188
188
  alt?: string | null;
189
189
  provider?: string | null | undefined;
190
190
  } & {
191
- linkTo?: ({
192
- __TYPE__: "ImageLink";
193
- } & {
194
- id: string;
195
- url: string;
196
- height: string;
197
- width: string;
198
- size: string;
199
- name: string;
200
- kind: string;
201
- } & {
202
- date?: string | null | undefined;
203
- }) | ({
204
- id: string;
205
- url: string;
206
- name: string;
207
- kind: string;
208
- size: string;
209
- } & {
210
- date?: string | null | undefined;
211
- } & {
212
- __TYPE__: "FileLink";
213
- } & {
214
- size?: string;
215
- }) | ({
216
- __TYPE__: "DocumentLink";
217
- } & {
218
- id: string;
219
- }) | ({
220
- __TYPE__: "ExternalLink";
221
- } & {
222
- url: string;
223
- } & {
224
- kind?: "web";
225
- target?: string | null | undefined;
226
- preview?: {
227
- title?: string;
228
- } | null | undefined;
229
- }) | null | undefined;
191
+ linkTo?: any;
230
192
  };
231
193
  } & {
232
194
  label?: string | null | undefined;
@@ -320,325 +282,7 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
320
282
  }))[];
321
283
  } | {
322
284
  __TYPE__: "SeparatorContent";
323
- } | {
324
- __TYPE__: "GroupContentType";
325
- value: {
326
- __TYPE__: "GroupItemContent";
327
- value: [string, {
328
- type: string;
329
- __TYPE__: "EmptyContent";
330
- } | {
331
- __TYPE__: "BooleanContent";
332
- value: boolean;
333
- } | ({
334
- embed_url: string;
335
- type: string;
336
- } & {
337
- version?: string | number | null;
338
- title?: string | null | undefined;
339
- author_name?: string | null | undefined;
340
- author_url?: string | null | undefined;
341
- provider_name?: string | null | undefined;
342
- provider_url?: string | null | undefined;
343
- cache_age?: string | number | null;
344
- thumbnail_url?: string | null | undefined;
345
- thumbnail_width?: number | null | undefined;
346
- thumbnail_height?: number | null | undefined;
347
- html?: string | null | undefined;
348
- } & {
349
- __TYPE__: "EmbedContent";
350
- all: unknown;
351
- }) | {
352
- type: "Color";
353
- value: string;
354
- __TYPE__: "FieldContent";
355
- } | {
356
- type: "Date";
357
- value: string;
358
- __TYPE__: "FieldContent";
359
- } | {
360
- type: "Number";
361
- value: string;
362
- __TYPE__: "FieldContent";
363
- } | {
364
- type: "Range";
365
- value: string;
366
- __TYPE__: "FieldContent";
367
- } | {
368
- type: "Select";
369
- value: string;
370
- __TYPE__: "FieldContent";
371
- } | {
372
- type: "Text";
373
- value: string;
374
- __TYPE__: "FieldContent";
375
- } | {
376
- type: "Timestamp";
377
- value: string;
378
- __TYPE__: "FieldContent";
379
- } | ({
380
- position: {
381
- lat: number;
382
- lng: number;
383
- };
384
- } & {
385
- __TYPE__: "GeoPointContent";
386
- }) | ({
387
- origin: {
388
- id: string;
389
- url: string;
390
- width: number;
391
- height: number;
392
- };
393
- width: number;
394
- height: number;
395
- edit: {
396
- zoom: number;
397
- crop: {
398
- x: number;
399
- y: number;
400
- };
401
- background: string;
402
- };
403
- } & {
404
- url?: string;
405
- credits?: string | null;
406
- alt?: string | null;
407
- provider?: string | null | undefined;
408
- } & {
409
- thumbnails?: {
410
- [x: string]: {
411
- origin: {
412
- id: string;
413
- url: string;
414
- width: number;
415
- height: number;
416
- };
417
- width: number;
418
- height: number;
419
- edit: {
420
- zoom: number;
421
- crop: {
422
- x: number;
423
- y: number;
424
- };
425
- background: string;
426
- };
427
- } & {
428
- url?: string;
429
- credits?: string | null;
430
- alt?: string | null;
431
- provider?: string | null | undefined;
432
- };
433
- };
434
- } & {
435
- __TYPE__: "ImageContent";
436
- }) | {
437
- __TYPE__: "IntegrationFieldsContent";
438
- value: string;
439
- } | {
440
- __TYPE__: "LinkContent";
441
- value: ({
442
- __TYPE__: "ImageLink";
443
- } & {
444
- id: string;
445
- url: string;
446
- height: string;
447
- width: string;
448
- size: string;
449
- name: string;
450
- kind: string;
451
- } & {
452
- date?: string | null | undefined;
453
- }) | ({
454
- id: string;
455
- url: string;
456
- name: string;
457
- kind: string;
458
- size: string;
459
- } & {
460
- date?: string | null | undefined;
461
- } & {
462
- __TYPE__: "FileLink";
463
- } & {
464
- size?: string;
465
- }) | ({
466
- __TYPE__: "DocumentLink";
467
- } & {
468
- id: string;
469
- }) | ({
470
- __TYPE__: "ExternalLink";
471
- } & {
472
- url: string;
473
- } & {
474
- kind?: "web";
475
- target?: string | null | undefined;
476
- preview?: {
477
- title?: string;
478
- } | null | undefined;
479
- });
480
- } | {
481
- __TYPE__: "StructuredTextContent";
482
- value: (({
483
- type: "image";
484
- data: {
485
- origin: {
486
- id: string;
487
- url: string;
488
- width: number;
489
- height: number;
490
- };
491
- width: number;
492
- height: number;
493
- edit: {
494
- zoom: number;
495
- crop: {
496
- x: number;
497
- y: number;
498
- };
499
- background: string;
500
- };
501
- } & {
502
- url?: string;
503
- credits?: string | null;
504
- alt?: string | null;
505
- provider?: string | null | undefined;
506
- } & {
507
- linkTo?: ({
508
- __TYPE__: "ImageLink";
509
- } & {
510
- id: string;
511
- url: string;
512
- height: string;
513
- width: string;
514
- size: string;
515
- name: string;
516
- kind: string;
517
- } & {
518
- date?: string | null | undefined;
519
- }) | ({
520
- id: string;
521
- url: string;
522
- name: string;
523
- kind: string;
524
- size: string;
525
- } & {
526
- date?: string | null | undefined;
527
- } & {
528
- __TYPE__: "FileLink";
529
- } & {
530
- size?: string;
531
- }) | ({
532
- __TYPE__: "DocumentLink";
533
- } & {
534
- id: string;
535
- }) | ({
536
- __TYPE__: "ExternalLink";
537
- } & {
538
- url: string;
539
- } & {
540
- kind?: "web";
541
- target?: string | null | undefined;
542
- preview?: {
543
- title?: string;
544
- } | null | undefined;
545
- }) | null | undefined;
546
- };
547
- } & {
548
- label?: string | null | undefined;
549
- direction?: string | null | undefined;
550
- }) | ({
551
- type: "embed";
552
- data: {
553
- embed_url: string;
554
- type: string;
555
- } & {
556
- version?: string | number | null;
557
- title?: string | null | undefined;
558
- author_name?: string | null | undefined;
559
- author_url?: string | null | undefined;
560
- provider_name?: string | null | undefined;
561
- provider_url?: string | null | undefined;
562
- cache_age?: string | number | null;
563
- thumbnail_url?: string | null | undefined;
564
- thumbnail_width?: number | null | undefined;
565
- thumbnail_height?: number | null | undefined;
566
- html?: string | null | undefined;
567
- } & {
568
- __TYPE__: "EmbedContent";
569
- all: unknown;
570
- };
571
- } & {
572
- label?: string | null | undefined;
573
- direction?: string | null | undefined;
574
- }) | ({
575
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
576
- content: {
577
- text: string;
578
- } & {
579
- spans?: ({
580
- data: ({
581
- __TYPE__: "ImageLink";
582
- } & {
583
- id: string;
584
- url: string;
585
- height: string;
586
- width: string;
587
- size: string;
588
- name: string;
589
- kind: string;
590
- } & {
591
- date?: string | null | undefined;
592
- }) | ({
593
- id: string;
594
- url: string;
595
- name: string;
596
- kind: string;
597
- size: string;
598
- } & {
599
- date?: string | null | undefined;
600
- } & {
601
- __TYPE__: "FileLink";
602
- } & {
603
- size?: string;
604
- }) | ({
605
- __TYPE__: "DocumentLink";
606
- } & {
607
- id: string;
608
- }) | ({
609
- __TYPE__: "ExternalLink";
610
- } & {
611
- url: string;
612
- } & {
613
- kind?: "web";
614
- target?: string | null | undefined;
615
- preview?: {
616
- title?: string;
617
- } | null | undefined;
618
- });
619
- start: number;
620
- end: number;
621
- type: "hyperlink";
622
- } | {
623
- data: string;
624
- start: number;
625
- end: number;
626
- type: "label";
627
- } | {
628
- start: number;
629
- end: number;
630
- type: "strong" | "em" | "list-item";
631
- })[];
632
- };
633
- } & {
634
- label?: string;
635
- direction?: string;
636
- }))[];
637
- } | {
638
- __TYPE__: "SeparatorContent";
639
- }][];
640
- }[];
641
- };
285
+ } | import("../../GroupContent").GroupContent;
642
286
  };
643
287
  items: {
644
288
  __TYPE__: "GroupItemContent";
@@ -822,45 +466,7 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
822
466
  alt?: string | null;
823
467
  provider?: string | null | undefined;
824
468
  } & {
825
- linkTo?: ({
826
- __TYPE__: "ImageLink";
827
- } & {
828
- id: string;
829
- url: string;
830
- height: string;
831
- width: string;
832
- size: string;
833
- name: string;
834
- kind: string;
835
- } & {
836
- date?: string | null | undefined;
837
- }) | ({
838
- id: string;
839
- url: string;
840
- name: string;
841
- kind: string;
842
- size: string;
843
- } & {
844
- date?: string | null | undefined;
845
- } & {
846
- __TYPE__: "FileLink";
847
- } & {
848
- size?: string;
849
- }) | ({
850
- __TYPE__: "DocumentLink";
851
- } & {
852
- id: string;
853
- }) | ({
854
- __TYPE__: "ExternalLink";
855
- } & {
856
- url: string;
857
- } & {
858
- kind?: "web";
859
- target?: string | null | undefined;
860
- preview?: {
861
- title?: string;
862
- } | null | undefined;
863
- }) | null | undefined;
469
+ linkTo?: any;
864
470
  };
865
471
  } & {
866
472
  label?: string | null | undefined;
@@ -1141,45 +747,7 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
1141
747
  alt?: string | null;
1142
748
  provider?: string | null | undefined;
1143
749
  } & {
1144
- linkTo?: ({
1145
- __TYPE__: "ImageLink";
1146
- } & {
1147
- id: string;
1148
- url: string;
1149
- height: string;
1150
- width: string;
1151
- size: string;
1152
- name: string;
1153
- kind: string;
1154
- } & {
1155
- date?: string | null | undefined;
1156
- }) | ({
1157
- id: string;
1158
- url: string;
1159
- name: string;
1160
- kind: string;
1161
- size: string;
1162
- } & {
1163
- date?: string | null | undefined;
1164
- } & {
1165
- __TYPE__: "FileLink";
1166
- } & {
1167
- size?: string;
1168
- }) | ({
1169
- __TYPE__: "DocumentLink";
1170
- } & {
1171
- id: string;
1172
- }) | ({
1173
- __TYPE__: "ExternalLink";
1174
- } & {
1175
- url: string;
1176
- } & {
1177
- kind?: "web";
1178
- target?: string | null | undefined;
1179
- preview?: {
1180
- title?: string;
1181
- } | null | undefined;
1182
- }) | null | undefined;
750
+ linkTo?: any;
1183
751
  };
1184
752
  } & {
1185
753
  label?: string | null | undefined;
@@ -1273,331 +841,13 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
1273
841
  }))[];
1274
842
  } | {
1275
843
  __TYPE__: "SeparatorContent";
1276
- } | {
1277
- __TYPE__: "GroupContentType";
1278
- value: {
1279
- __TYPE__: "GroupItemContent";
1280
- value: [string, {
1281
- type: string;
1282
- __TYPE__: "EmptyContent";
1283
- } | {
1284
- __TYPE__: "BooleanContent";
1285
- value: boolean;
1286
- } | ({
1287
- embed_url: string;
1288
- type: string;
1289
- } & {
1290
- version?: string | number | null;
1291
- title?: string | null | undefined;
1292
- author_name?: string | null | undefined;
1293
- author_url?: string | null | undefined;
1294
- provider_name?: string | null | undefined;
1295
- provider_url?: string | null | undefined;
1296
- cache_age?: string | number | null;
1297
- thumbnail_url?: string | null | undefined;
1298
- thumbnail_width?: number | null | undefined;
1299
- thumbnail_height?: number | null | undefined;
1300
- html?: string | null | undefined;
1301
- } & {
1302
- __TYPE__: "EmbedContent";
1303
- all: unknown;
1304
- }) | {
1305
- type: "Color";
1306
- value: string;
1307
- __TYPE__: "FieldContent";
1308
- } | {
1309
- type: "Date";
1310
- value: string;
1311
- __TYPE__: "FieldContent";
1312
- } | {
1313
- type: "Number";
1314
- value: string;
1315
- __TYPE__: "FieldContent";
1316
- } | {
1317
- type: "Range";
1318
- value: string;
1319
- __TYPE__: "FieldContent";
1320
- } | {
1321
- type: "Select";
1322
- value: string;
1323
- __TYPE__: "FieldContent";
1324
- } | {
1325
- type: "Text";
1326
- value: string;
1327
- __TYPE__: "FieldContent";
1328
- } | {
1329
- type: "Timestamp";
1330
- value: string;
1331
- __TYPE__: "FieldContent";
1332
- } | ({
1333
- position: {
1334
- lat: number;
1335
- lng: number;
1336
- };
1337
- } & {
1338
- __TYPE__: "GeoPointContent";
1339
- }) | ({
1340
- origin: {
1341
- id: string;
1342
- url: string;
1343
- width: number;
1344
- height: number;
1345
- };
1346
- width: number;
1347
- height: number;
1348
- edit: {
1349
- zoom: number;
1350
- crop: {
1351
- x: number;
1352
- y: number;
1353
- };
1354
- background: string;
1355
- };
1356
- } & {
1357
- url?: string;
1358
- credits?: string | null;
1359
- alt?: string | null;
1360
- provider?: string | null | undefined;
1361
- } & {
1362
- thumbnails?: {
1363
- [x: string]: {
1364
- origin: {
1365
- id: string;
1366
- url: string;
1367
- width: number;
1368
- height: number;
1369
- };
1370
- width: number;
1371
- height: number;
1372
- edit: {
1373
- zoom: number;
1374
- crop: {
1375
- x: number;
1376
- y: number;
1377
- };
1378
- background: string;
1379
- };
1380
- } & {
1381
- url?: string;
1382
- credits?: string | null;
1383
- alt?: string | null;
1384
- provider?: string | null | undefined;
1385
- };
1386
- };
1387
- } & {
1388
- __TYPE__: "ImageContent";
1389
- }) | {
1390
- __TYPE__: "IntegrationFieldsContent";
1391
- value: string;
1392
- } | {
1393
- __TYPE__: "LinkContent";
1394
- value: ({
1395
- __TYPE__: "ImageLink";
1396
- } & {
1397
- id: string;
1398
- url: string;
1399
- height: string;
1400
- width: string;
1401
- size: string;
1402
- name: string;
1403
- kind: string;
1404
- } & {
1405
- date?: string | null | undefined;
1406
- }) | ({
1407
- id: string;
1408
- url: string;
1409
- name: string;
1410
- kind: string;
1411
- size: string;
1412
- } & {
1413
- date?: string | null | undefined;
1414
- } & {
1415
- __TYPE__: "FileLink";
1416
- } & {
1417
- size?: string;
1418
- }) | ({
1419
- __TYPE__: "DocumentLink";
1420
- } & {
1421
- id: string;
1422
- }) | ({
1423
- __TYPE__: "ExternalLink";
1424
- } & {
1425
- url: string;
1426
- } & {
1427
- kind?: "web";
1428
- target?: string | null | undefined;
1429
- preview?: {
1430
- title?: string;
1431
- } | null | undefined;
1432
- });
1433
- } | {
1434
- __TYPE__: "StructuredTextContent";
1435
- value: (({
1436
- type: "image";
1437
- data: {
1438
- origin: {
1439
- id: string;
1440
- url: string;
1441
- width: number;
1442
- height: number;
1443
- };
1444
- width: number;
1445
- height: number;
1446
- edit: {
1447
- zoom: number;
1448
- crop: {
1449
- x: number;
1450
- y: number;
1451
- };
1452
- background: string;
1453
- };
1454
- } & {
1455
- url?: string;
1456
- credits?: string | null;
1457
- alt?: string | null;
1458
- provider?: string | null | undefined;
1459
- } & {
1460
- linkTo?: ({
1461
- __TYPE__: "ImageLink";
1462
- } & {
1463
- id: string;
1464
- url: string;
1465
- height: string;
1466
- width: string;
1467
- size: string;
1468
- name: string;
1469
- kind: string;
1470
- } & {
1471
- date?: string | null | undefined;
1472
- }) | ({
1473
- id: string;
1474
- url: string;
1475
- name: string;
1476
- kind: string;
1477
- size: string;
1478
- } & {
1479
- date?: string | null | undefined;
1480
- } & {
1481
- __TYPE__: "FileLink";
1482
- } & {
1483
- size?: string;
1484
- }) | ({
1485
- __TYPE__: "DocumentLink";
1486
- } & {
1487
- id: string;
1488
- }) | ({
1489
- __TYPE__: "ExternalLink";
1490
- } & {
1491
- url: string;
1492
- } & {
1493
- kind?: "web";
1494
- target?: string | null | undefined;
1495
- preview?: {
1496
- title?: string;
1497
- } | null | undefined;
1498
- }) | null | undefined;
1499
- };
1500
- } & {
1501
- label?: string | null | undefined;
1502
- direction?: string | null | undefined;
1503
- }) | ({
1504
- type: "embed";
1505
- data: {
1506
- embed_url: string;
1507
- type: string;
1508
- } & {
1509
- version?: string | number | null;
1510
- title?: string | null | undefined;
1511
- author_name?: string | null | undefined;
1512
- author_url?: string | null | undefined;
1513
- provider_name?: string | null | undefined;
1514
- provider_url?: string | null | undefined;
1515
- cache_age?: string | number | null;
1516
- thumbnail_url?: string | null | undefined;
1517
- thumbnail_width?: number | null | undefined;
1518
- thumbnail_height?: number | null | undefined;
1519
- html?: string | null | undefined;
1520
- } & {
1521
- __TYPE__: "EmbedContent";
1522
- all: unknown;
1523
- };
1524
- } & {
1525
- label?: string | null | undefined;
1526
- direction?: string | null | undefined;
1527
- }) | ({
1528
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1529
- content: {
1530
- text: string;
1531
- } & {
1532
- spans?: ({
1533
- data: ({
1534
- __TYPE__: "ImageLink";
1535
- } & {
1536
- id: string;
1537
- url: string;
1538
- height: string;
1539
- width: string;
1540
- size: string;
1541
- name: string;
1542
- kind: string;
1543
- } & {
1544
- date?: string | null | undefined;
1545
- }) | ({
1546
- id: string;
1547
- url: string;
1548
- name: string;
1549
- kind: string;
1550
- size: string;
1551
- } & {
1552
- date?: string | null | undefined;
1553
- } & {
1554
- __TYPE__: "FileLink";
1555
- } & {
1556
- size?: string;
1557
- }) | ({
1558
- __TYPE__: "DocumentLink";
1559
- } & {
1560
- id: string;
1561
- }) | ({
1562
- __TYPE__: "ExternalLink";
1563
- } & {
1564
- url: string;
1565
- } & {
1566
- kind?: "web";
1567
- target?: string | null | undefined;
1568
- preview?: {
1569
- title?: string;
1570
- } | null | undefined;
1571
- });
1572
- start: number;
1573
- end: number;
1574
- type: "hyperlink";
1575
- } | {
1576
- data: string;
1577
- start: number;
1578
- end: number;
1579
- type: "label";
1580
- } | {
1581
- start: number;
1582
- end: number;
1583
- type: "strong" | "em" | "list-item";
1584
- })[];
1585
- };
1586
- } & {
1587
- label?: string;
1588
- direction?: string;
1589
- }))[];
1590
- } | {
1591
- __TYPE__: "SeparatorContent";
1592
- }][];
1593
- }[];
1594
- };
1595
- };
1596
- items: {
1597
- __TYPE__: "GroupItemContent";
1598
- value: [string, {
1599
- type: string;
1600
- __TYPE__: "EmptyContent";
844
+ } | import("../../GroupContent").GroupContent;
845
+ };
846
+ items: {
847
+ __TYPE__: "GroupItemContent";
848
+ value: [string, {
849
+ type: string;
850
+ __TYPE__: "EmptyContent";
1601
851
  } | {
1602
852
  __TYPE__: "BooleanContent";
1603
853
  value: boolean;
@@ -1775,45 +1025,7 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
1775
1025
  alt?: string | null;
1776
1026
  provider?: string | null | undefined;
1777
1027
  } & {
1778
- linkTo?: ({
1779
- __TYPE__: "ImageLink";
1780
- } & {
1781
- id: string;
1782
- url: string;
1783
- height: string;
1784
- width: string;
1785
- size: string;
1786
- name: string;
1787
- kind: string;
1788
- } & {
1789
- date?: string | null | undefined;
1790
- }) | ({
1791
- id: string;
1792
- url: string;
1793
- name: string;
1794
- kind: string;
1795
- size: string;
1796
- } & {
1797
- date?: string | null | undefined;
1798
- } & {
1799
- __TYPE__: "FileLink";
1800
- } & {
1801
- size?: string;
1802
- }) | ({
1803
- __TYPE__: "DocumentLink";
1804
- } & {
1805
- id: string;
1806
- }) | ({
1807
- __TYPE__: "ExternalLink";
1808
- } & {
1809
- url: string;
1810
- } & {
1811
- kind?: "web";
1812
- target?: string | null | undefined;
1813
- preview?: {
1814
- title?: string;
1815
- } | null | undefined;
1816
- }) | null | undefined;
1028
+ linkTo?: any;
1817
1029
  };
1818
1030
  } & {
1819
1031
  label?: string | null | undefined;
@@ -2099,73 +1311,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
2099
1311
  alt: t.Type<string | null, string | null, unknown>;
2100
1312
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2101
1313
  }>]>>, t.PartialC<{
2102
- linkTo: t.UnionC<[t.Type<({
2103
- __TYPE__: "ImageLink";
2104
- } & {
2105
- id: string;
2106
- url: string;
2107
- height: string;
2108
- width: string;
2109
- size: string;
2110
- name: string;
2111
- kind: string;
2112
- } & {
2113
- date?: string | null | undefined;
2114
- }) | ({
2115
- id: string;
2116
- url: string;
2117
- name: string;
2118
- kind: string;
2119
- size: string;
2120
- } & {
2121
- date?: string | null | undefined;
2122
- } & {
2123
- __TYPE__: "FileLink";
2124
- } & {
2125
- size?: string;
2126
- }) | ({
2127
- __TYPE__: "DocumentLink";
2128
- } & {
2129
- id: string;
2130
- }) | ({
2131
- __TYPE__: "ExternalLink";
2132
- } & {
2133
- url: string;
2134
- } & {
2135
- kind?: "web";
2136
- target?: string | null | undefined;
2137
- preview?: {
2138
- title?: string;
2139
- } | null | undefined;
2140
- }), ({
2141
- id: string;
2142
- url: string;
2143
- height: string;
2144
- width: string;
2145
- size: string;
2146
- name: string;
2147
- kind: string;
2148
- } & {
2149
- date?: string | null | undefined;
2150
- }) | ({
2151
- id: string;
2152
- url: string;
2153
- name: string;
2154
- kind: string;
2155
- size: string;
2156
- } & {
2157
- date?: string | null | undefined;
2158
- }) | {
2159
- id: string;
2160
- } | ({
2161
- url: string;
2162
- } & {
2163
- kind?: "web";
2164
- target?: string | null | undefined;
2165
- preview?: {
2166
- title?: string;
2167
- } | null | undefined;
2168
- }), unknown>, t.NullC, t.UndefinedC]>;
1314
+ linkTo: t.UnionC<[t.Type<any, any, unknown>, t.NullC, t.UndefinedC]>;
2169
1315
  }>]>;
2170
1316
  }>, t.PartialC<{
2171
1317
  label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
@@ -2311,405 +1457,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
2311
1457
  }>]>>]>>;
2312
1458
  }>>, t.ExactC<t.TypeC<{
2313
1459
  __TYPE__: t.LiteralC<"SeparatorContent">;
2314
- }>>]>, t.ExactC<t.TypeC<{
2315
- __TYPE__: t.LiteralC<"GroupContentType">;
2316
- value: t.ArrayC<t.ExactC<t.TypeC<{
2317
- __TYPE__: t.LiteralC<"GroupItemContent">;
2318
- value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
2319
- type: t.StringC;
2320
- __TYPE__: t.LiteralC<"EmptyContent">;
2321
- }>>, t.ExactC<t.TypeC<{
2322
- __TYPE__: t.LiteralC<"BooleanContent">;
2323
- value: t.BooleanC;
2324
- }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2325
- embed_url: t.StringC;
2326
- type: t.StringC;
2327
- }>, t.PartialC<{
2328
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2329
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2330
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2331
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2332
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2333
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2334
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2335
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2336
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2337
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2338
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2339
- }>]>>, t.ExactC<t.TypeC<{
2340
- __TYPE__: t.LiteralC<"EmbedContent">;
2341
- all: t.UnknownC;
2342
- }>>]>, t.ExactC<t.TypeC<{
2343
- type: t.LiteralC<"Text">;
2344
- value: t.Type<string, string, unknown>;
2345
- __TYPE__: t.LiteralC<"FieldContent">;
2346
- }>>, t.ExactC<t.TypeC<{
2347
- type: t.LiteralC<"Timestamp">;
2348
- value: t.Type<string, string, unknown>;
2349
- __TYPE__: t.LiteralC<"FieldContent">;
2350
- }>>, t.ExactC<t.TypeC<{
2351
- type: t.LiteralC<"Select">;
2352
- value: t.Type<string, string, unknown>;
2353
- __TYPE__: t.LiteralC<"FieldContent">;
2354
- }>>, t.ExactC<t.TypeC<{
2355
- type: t.LiteralC<"Range">;
2356
- value: t.Type<string, string, unknown>;
2357
- __TYPE__: t.LiteralC<"FieldContent">;
2358
- }>>, t.ExactC<t.TypeC<{
2359
- type: t.LiteralC<"Number">;
2360
- value: t.Type<string, string, unknown>;
2361
- __TYPE__: t.LiteralC<"FieldContent">;
2362
- }>>, t.ExactC<t.TypeC<{
2363
- type: t.LiteralC<"Date">;
2364
- value: t.Type<string, string, unknown>;
2365
- __TYPE__: t.LiteralC<"FieldContent">;
2366
- }>>, t.ExactC<t.TypeC<{
2367
- type: t.LiteralC<"Color">;
2368
- value: t.Type<string, string, unknown>;
2369
- __TYPE__: t.LiteralC<"FieldContent">;
2370
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
2371
- position: t.ExactC<t.TypeC<{
2372
- lat: t.NumberC;
2373
- lng: t.NumberC;
2374
- }>>;
2375
- }>>, t.ExactC<t.TypeC<{
2376
- __TYPE__: t.LiteralC<"GeoPointContent">;
2377
- }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2378
- origin: t.ExactC<t.TypeC<{
2379
- id: t.StringC;
2380
- url: t.StringC;
2381
- width: t.NumberC;
2382
- height: t.NumberC;
2383
- }>>;
2384
- width: t.NumberC;
2385
- height: t.NumberC;
2386
- edit: t.TypeC<{
2387
- zoom: t.NumberC;
2388
- crop: t.TypeC<{
2389
- x: t.NumberC;
2390
- y: t.NumberC;
2391
- }>;
2392
- background: t.StringC;
2393
- }>;
2394
- }>, t.PartialC<{
2395
- url: t.StringC;
2396
- credits: t.Type<string | null, string | null, unknown>;
2397
- alt: t.Type<string | null, string | null, unknown>;
2398
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2399
- }>]>>, t.PartialC<{
2400
- thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
2401
- origin: t.ExactC<t.TypeC<{
2402
- id: t.StringC;
2403
- url: t.StringC;
2404
- width: t.NumberC;
2405
- height: t.NumberC;
2406
- }>>;
2407
- width: t.NumberC;
2408
- height: t.NumberC;
2409
- edit: t.TypeC<{
2410
- zoom: t.NumberC;
2411
- crop: t.TypeC<{
2412
- x: t.NumberC;
2413
- y: t.NumberC;
2414
- }>;
2415
- background: t.StringC;
2416
- }>;
2417
- }>, t.PartialC<{
2418
- url: t.StringC;
2419
- credits: t.Type<string | null, string | null, unknown>;
2420
- alt: t.Type<string | null, string | null, unknown>;
2421
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2422
- }>]>>>;
2423
- }>]>, t.ExactC<t.TypeC<{
2424
- __TYPE__: t.LiteralC<"ImageContent">;
2425
- }>>]>, t.ExactC<t.TypeC<{
2426
- __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
2427
- value: t.StringC;
2428
- }>>, t.ExactC<t.TypeC<{
2429
- __TYPE__: t.LiteralC<"LinkContent">;
2430
- value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2431
- __TYPE__: t.LiteralC<"ImageLink">;
2432
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2433
- id: t.StringC;
2434
- url: t.StringC;
2435
- height: t.StringC;
2436
- width: t.StringC;
2437
- size: t.StringC;
2438
- name: t.StringC;
2439
- kind: t.StringC;
2440
- }>, t.PartialC<{
2441
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2442
- }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2443
- id: t.StringC;
2444
- url: t.StringC;
2445
- name: t.StringC;
2446
- kind: t.StringC;
2447
- size: t.StringC;
2448
- }>, t.PartialC<{
2449
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2450
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2451
- __TYPE__: t.LiteralC<"FileLink">;
2452
- }>, t.PartialC<{
2453
- size: t.StringC;
2454
- }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2455
- __TYPE__: t.LiteralC<"DocumentLink">;
2456
- }>>, t.ExactC<t.TypeC<{
2457
- id: t.Type<string, string, unknown>;
2458
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2459
- __TYPE__: t.LiteralC<"ExternalLink">;
2460
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2461
- url: t.StringC;
2462
- }>, t.PartialC<{
2463
- kind: t.LiteralC<"web">;
2464
- target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2465
- preview: t.UnionC<[t.Type<{
2466
- title?: string;
2467
- }, {
2468
- title?: string;
2469
- }, unknown>, t.NullC, t.UndefinedC]>;
2470
- }>]>>]>]>;
2471
- }>>, t.ExactC<t.TypeC<{
2472
- __TYPE__: t.LiteralC<"StructuredTextContent">;
2473
- value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2474
- type: t.LiteralC<"image">;
2475
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2476
- origin: t.ExactC<t.TypeC<{
2477
- id: t.StringC;
2478
- url: t.StringC;
2479
- width: t.NumberC;
2480
- height: t.NumberC;
2481
- }>>;
2482
- width: t.NumberC;
2483
- height: t.NumberC;
2484
- edit: t.TypeC<{
2485
- zoom: t.NumberC;
2486
- crop: t.TypeC<{
2487
- x: t.NumberC;
2488
- y: t.NumberC;
2489
- }>;
2490
- background: t.StringC;
2491
- }>;
2492
- }>, t.PartialC<{
2493
- url: t.StringC;
2494
- credits: t.Type<string | null, string | null, unknown>;
2495
- alt: t.Type<string | null, string | null, unknown>;
2496
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2497
- }>]>>, t.PartialC<{
2498
- linkTo: t.UnionC<[t.Type<({
2499
- __TYPE__: "ImageLink";
2500
- } & {
2501
- id: string;
2502
- url: string;
2503
- height: string;
2504
- width: string;
2505
- size: string;
2506
- name: string;
2507
- kind: string;
2508
- } & {
2509
- date?: string | null | undefined;
2510
- }) | ({
2511
- id: string;
2512
- url: string;
2513
- name: string;
2514
- kind: string;
2515
- size: string;
2516
- } & {
2517
- date?: string | null | undefined;
2518
- } & {
2519
- __TYPE__: "FileLink";
2520
- } & {
2521
- size?: string;
2522
- }) | ({
2523
- __TYPE__: "DocumentLink";
2524
- } & {
2525
- id: string;
2526
- }) | ({
2527
- __TYPE__: "ExternalLink";
2528
- } & {
2529
- url: string;
2530
- } & {
2531
- kind?: "web";
2532
- target?: string | null | undefined;
2533
- preview?: {
2534
- title?: string;
2535
- } | null | undefined;
2536
- }), ({
2537
- id: string;
2538
- url: string;
2539
- height: string;
2540
- width: string;
2541
- size: string;
2542
- name: string;
2543
- kind: string;
2544
- } & {
2545
- date?: string | null | undefined;
2546
- }) | ({
2547
- id: string;
2548
- url: string;
2549
- name: string;
2550
- kind: string;
2551
- size: string;
2552
- } & {
2553
- date?: string | null | undefined;
2554
- }) | {
2555
- id: string;
2556
- } | ({
2557
- url: string;
2558
- } & {
2559
- kind?: "web";
2560
- target?: string | null | undefined;
2561
- preview?: {
2562
- title?: string;
2563
- } | null | undefined;
2564
- }), unknown>, t.NullC, t.UndefinedC]>;
2565
- }>]>;
2566
- }>, t.PartialC<{
2567
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2568
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2569
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2570
- type: t.LiteralC<"embed">;
2571
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2572
- embed_url: t.StringC;
2573
- type: t.StringC;
2574
- }>, t.PartialC<{
2575
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2576
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2577
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2578
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2579
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2580
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2581
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2582
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2583
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2584
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2585
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2586
- }>]>>, t.ExactC<t.TypeC<{
2587
- __TYPE__: t.LiteralC<"EmbedContent">;
2588
- all: t.UnknownC;
2589
- }>>]>;
2590
- }>, t.PartialC<{
2591
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2592
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2593
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2594
- type: t.Type<"image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
2595
- content: t.IntersectionC<[t.TypeC<{
2596
- text: t.StringC;
2597
- }>, t.PartialC<{
2598
- spans: t.Type<({
2599
- data: ({
2600
- __TYPE__: "ImageLink";
2601
- } & {
2602
- id: string;
2603
- url: string;
2604
- height: string;
2605
- width: string;
2606
- size: string;
2607
- name: string;
2608
- kind: string;
2609
- } & {
2610
- date?: string | null | undefined;
2611
- }) | ({
2612
- id: string;
2613
- url: string;
2614
- name: string;
2615
- kind: string;
2616
- size: string;
2617
- } & {
2618
- date?: string | null | undefined;
2619
- } & {
2620
- __TYPE__: "FileLink";
2621
- } & {
2622
- size?: string;
2623
- }) | ({
2624
- __TYPE__: "DocumentLink";
2625
- } & {
2626
- id: string;
2627
- }) | ({
2628
- __TYPE__: "ExternalLink";
2629
- } & {
2630
- url: string;
2631
- } & {
2632
- kind?: "web";
2633
- target?: string | null | undefined;
2634
- preview?: {
2635
- title?: string;
2636
- } | null | undefined;
2637
- });
2638
- start: number;
2639
- end: number;
2640
- type: "hyperlink";
2641
- } | {
2642
- data: string;
2643
- start: number;
2644
- end: number;
2645
- type: "label";
2646
- } | {
2647
- start: number;
2648
- end: number;
2649
- type: "strong" | "em" | "list-item";
2650
- })[], ({
2651
- data: ({
2652
- __TYPE__: "ImageLink";
2653
- } & {
2654
- id: string;
2655
- url: string;
2656
- height: string;
2657
- width: string;
2658
- size: string;
2659
- name: string;
2660
- kind: string;
2661
- } & {
2662
- date?: string | null | undefined;
2663
- }) | ({
2664
- id: string;
2665
- url: string;
2666
- name: string;
2667
- kind: string;
2668
- size: string;
2669
- } & {
2670
- date?: string | null | undefined;
2671
- } & {
2672
- __TYPE__: "FileLink";
2673
- } & {
2674
- size?: string;
2675
- }) | ({
2676
- __TYPE__: "DocumentLink";
2677
- } & {
2678
- id: string;
2679
- }) | ({
2680
- __TYPE__: "ExternalLink";
2681
- } & {
2682
- url: string;
2683
- } & {
2684
- kind?: "web";
2685
- target?: string | null | undefined;
2686
- preview?: {
2687
- title?: string;
2688
- } | null | undefined;
2689
- });
2690
- start: number;
2691
- end: number;
2692
- type: "hyperlink";
2693
- } | {
2694
- data: string;
2695
- start: number;
2696
- end: number;
2697
- type: "label";
2698
- } | {
2699
- start: number;
2700
- end: number;
2701
- type: "strong" | "em" | "list-item";
2702
- })[], unknown>;
2703
- }>]>;
2704
- }>, t.PartialC<{
2705
- label: t.StringC;
2706
- direction: t.StringC;
2707
- }>]>>]>>;
2708
- }>>, t.ExactC<t.TypeC<{
2709
- __TYPE__: t.LiteralC<"SeparatorContent">;
2710
- }>>]>]>>;
2711
- }>>>;
2712
- }>>]>>;
1460
+ }>>]>, t.Type<import("../../GroupContent").GroupContent, import("../../GroupContent").GroupContent, unknown>]>>;
2713
1461
  items: t.ArrayC<t.ExactC<t.TypeC<{
2714
1462
  __TYPE__: t.LiteralC<"GroupItemContent">;
2715
1463
  value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
@@ -2892,73 +1640,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
2892
1640
  alt: t.Type<string | null, string | null, unknown>;
2893
1641
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2894
1642
  }>]>>, t.PartialC<{
2895
- linkTo: t.UnionC<[t.Type<({
2896
- __TYPE__: "ImageLink";
2897
- } & {
2898
- id: string;
2899
- url: string;
2900
- height: string;
2901
- width: string;
2902
- size: string;
2903
- name: string;
2904
- kind: string;
2905
- } & {
2906
- date?: string | null | undefined;
2907
- }) | ({
2908
- id: string;
2909
- url: string;
2910
- name: string;
2911
- kind: string;
2912
- size: string;
2913
- } & {
2914
- date?: string | null | undefined;
2915
- } & {
2916
- __TYPE__: "FileLink";
2917
- } & {
2918
- size?: string;
2919
- }) | ({
2920
- __TYPE__: "DocumentLink";
2921
- } & {
2922
- id: string;
2923
- }) | ({
2924
- __TYPE__: "ExternalLink";
2925
- } & {
2926
- url: string;
2927
- } & {
2928
- kind?: "web";
2929
- target?: string | null | undefined;
2930
- preview?: {
2931
- title?: string;
2932
- } | null | undefined;
2933
- }), ({
2934
- id: string;
2935
- url: string;
2936
- height: string;
2937
- width: string;
2938
- size: string;
2939
- name: string;
2940
- kind: string;
2941
- } & {
2942
- date?: string | null | undefined;
2943
- }) | ({
2944
- id: string;
2945
- url: string;
2946
- name: string;
2947
- kind: string;
2948
- size: string;
2949
- } & {
2950
- date?: string | null | undefined;
2951
- }) | {
2952
- id: string;
2953
- } | ({
2954
- url: string;
2955
- } & {
2956
- kind?: "web";
2957
- target?: string | null | undefined;
2958
- preview?: {
2959
- title?: string;
2960
- } | null | undefined;
2961
- }), unknown>, t.NullC, t.UndefinedC]>;
1643
+ linkTo: t.UnionC<[t.Type<any, any, unknown>, t.NullC, t.UndefinedC]>;
2962
1644
  }>]>;
2963
1645
  }>, t.PartialC<{
2964
1646
  label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;