@prismicio/types-internal 1.5.0 → 1.5.1

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 (36) hide show
  1. package/lib/content/CustomType.d.ts +702 -694
  2. package/lib/content/fields/UIDContent.d.ts +1 -0
  3. package/lib/content/fields/UIDContent.js +2 -1
  4. package/lib/content/fields/index.d.ts +2989 -0
  5. package/lib/content/fields/index.js +18 -0
  6. package/lib/content/fields/nestable/EmbedContent.d.ts +1 -0
  7. package/lib/content/fields/nestable/EmbedContent.js +2 -1
  8. package/lib/content/fields/nestable/ImageContent.d.ts +25 -0
  9. package/lib/content/fields/nestable/ImageContent.js +2 -1
  10. package/lib/content/fields/nestable/LinkContent.d.ts +7 -0
  11. package/lib/content/fields/nestable/LinkContent.js +8 -1
  12. package/lib/content/fields/nestable/NestableContent.d.ts +17 -0
  13. package/lib/content/fields/nestable/NestableContent.js +13 -1
  14. package/lib/content/fields/nestable/RichTextContent.d.ts +249 -0
  15. package/lib/content/fields/nestable/RichTextContent.js +6 -1
  16. package/lib/content/fields/slices/CompositeSliceContent.d.ts +351 -347
  17. package/lib/content/fields/slices/CompositeSliceContent.js +6 -4
  18. package/lib/content/fields/slices/RepeatableContent.d.ts +371 -0
  19. package/lib/content/fields/slices/RepeatableContent.js +16 -0
  20. package/lib/content/fields/slices/SharedSliceContent.d.ts +346 -343
  21. package/lib/content/fields/slices/SharedSliceContent.js +2 -1
  22. package/lib/content/fields/slices/SlicesContent.d.ts +1399 -1386
  23. package/lib/content/fields/slices/SlicesContent.js +2 -1
  24. package/package.json +1 -1
  25. package/src/content/CustomType.ts +1 -0
  26. package/src/content/fields/UIDContent.ts +3 -2
  27. package/src/content/fields/index.ts +23 -0
  28. package/src/content/fields/nestable/EmbedContent.ts +3 -2
  29. package/src/content/fields/nestable/ImageContent.ts +4 -0
  30. package/src/content/fields/nestable/LinkContent.ts +8 -0
  31. package/src/content/fields/nestable/NestableContent.ts +26 -7
  32. package/src/content/fields/nestable/RichTextContent.ts +18 -0
  33. package/src/content/fields/slices/CompositeSliceContent.ts +7 -5
  34. package/src/content/fields/slices/RepeatableContent.ts +15 -0
  35. package/src/content/fields/slices/SharedSliceContent.ts +2 -1
  36. package/src/content/fields/slices/SlicesContent.ts +4 -2
@@ -1,14 +1,16 @@
1
1
  import * as t from "io-ts";
2
+ import { WidgetKey as KeyForWidgetContent } from "../documents/widgets";
2
3
  export declare const WidgetKey: t.Type<string, string, unknown>;
4
+ export declare type WidgetKey = KeyForWidgetContent;
3
5
  export declare const CustomTypeContent: t.RecordC<t.Type<string, string, unknown>, t.UnionC<[t.TypeC<{
4
6
  __TYPE__: t.LiteralC<"SliceContentType">;
5
7
  value: t.ArrayC<t.TypeC<{
6
8
  key: t.StringC;
7
9
  name: t.StringC;
8
10
  maybeLabel: t.UnionC<[t.StringC, t.UndefinedC]>;
9
- widget: t.UnionC<[t.TypeC<{
11
+ widget: t.UnionC<[t.ExactC<t.TypeC<{
10
12
  __TYPE__: t.LiteralC<"CompositeSliceContent">;
11
- repeat: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
13
+ nonRepeat: t.RecordC<t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
12
14
  __TYPE__: t.LiteralC<"BooleanContent">;
13
15
  value: t.BooleanC;
14
16
  }>>, t.IntersectionC<[t.Type<{
@@ -374,375 +376,378 @@ export declare const CustomTypeContent: t.RecordC<t.Type<string, string, unknown
374
376
  }>]>>]>>;
375
377
  }>>, t.ExactC<t.TypeC<{
376
378
  __TYPE__: t.LiteralC<"SeparatorContent">;
377
- }>>]>]>>;
378
- "non-repeat": t.RecordC<t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
379
- __TYPE__: t.LiteralC<"BooleanContent">;
380
- value: t.BooleanC;
381
- }>>, t.IntersectionC<[t.Type<{
382
- embed_url: string;
383
- type: string;
384
- } & {
385
- version?: string | number | null;
386
- title?: string | null | undefined;
387
- author_name?: string | null | undefined;
388
- author_url?: string | null | undefined;
389
- provider_name?: string | null | undefined;
390
- provider_url?: string | null | undefined;
391
- cache_age?: string | number | null;
392
- thumbnail_url?: string | null | undefined;
393
- thumbnail_width?: number | null | undefined;
394
- thumbnail_height?: number | null | undefined;
395
- html?: string | null | undefined;
396
- }, {
397
- embed_url: string;
398
- type: string;
399
- } & {
400
- version?: string | number | null;
401
- title?: string | null | undefined;
402
- author_name?: string | null | undefined;
403
- author_url?: string | null | undefined;
404
- provider_name?: string | null | undefined;
405
- provider_url?: string | null | undefined;
406
- cache_age?: string | number | null;
407
- thumbnail_url?: string | null | undefined;
408
- thumbnail_width?: number | null | undefined;
409
- thumbnail_height?: number | null | undefined;
410
- html?: string | null | undefined;
411
- } & {
412
- __TYPE__: "EmbedContent";
413
- }, unknown>, t.ExactC<t.TypeC<{
414
- __TYPE__: t.LiteralC<"EmbedContent">;
415
- all: t.UnknownC;
416
- }>>]>, t.ExactC<t.TypeC<{
417
- type: t.KeyofC<{
418
- Text: null;
419
- Date: null;
420
- Timestamp: null;
421
- Color: null;
422
- Number: null;
423
- Range: null;
424
- Select: null;
425
- }>;
426
- value: t.Type<string, string, unknown>;
427
- __TYPE__: t.LiteralC<"FieldContent">;
428
- }>>, t.IntersectionC<[t.Type<{
429
- position: {
430
- lat: number;
431
- lng: number;
432
- };
433
- }, {
434
- position: {
435
- lat: number;
436
- lng: number;
437
- };
438
- } & {
439
- __TYPE__: "GeoPointContent";
440
- }, unknown>, t.ExactC<t.TypeC<{
441
- __TYPE__: t.LiteralC<"GeoPointContent">;
442
- }>>]>, t.IntersectionC<[t.Type<{
443
- origin: {
444
- id: string;
445
- url: string;
446
- width: number;
447
- height: number;
448
- };
449
- width: number;
450
- height: number;
451
- edit: {
452
- zoom: number;
453
- crop: {
454
- x: number;
455
- y: number;
379
+ }>>]>>;
380
+ repeat: t.ArrayC<t.ExactC<t.TypeC<{
381
+ __TYPE__: t.LiteralC<"GroupItemContent">;
382
+ value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
383
+ __TYPE__: t.LiteralC<"BooleanContent">;
384
+ value: t.BooleanC;
385
+ }>>, t.IntersectionC<[t.Type<{
386
+ embed_url: string;
387
+ type: string;
388
+ } & {
389
+ version?: string | number | null;
390
+ title?: string | null | undefined;
391
+ author_name?: string | null | undefined;
392
+ author_url?: string | null | undefined;
393
+ provider_name?: string | null | undefined;
394
+ provider_url?: string | null | undefined;
395
+ cache_age?: string | number | null;
396
+ thumbnail_url?: string | null | undefined;
397
+ thumbnail_width?: number | null | undefined;
398
+ thumbnail_height?: number | null | undefined;
399
+ html?: string | null | undefined;
400
+ }, {
401
+ embed_url: string;
402
+ type: string;
403
+ } & {
404
+ version?: string | number | null;
405
+ title?: string | null | undefined;
406
+ author_name?: string | null | undefined;
407
+ author_url?: string | null | undefined;
408
+ provider_name?: string | null | undefined;
409
+ provider_url?: string | null | undefined;
410
+ cache_age?: string | number | null;
411
+ thumbnail_url?: string | null | undefined;
412
+ thumbnail_width?: number | null | undefined;
413
+ thumbnail_height?: number | null | undefined;
414
+ html?: string | null | undefined;
415
+ } & {
416
+ __TYPE__: "EmbedContent";
417
+ }, unknown>, t.ExactC<t.TypeC<{
418
+ __TYPE__: t.LiteralC<"EmbedContent">;
419
+ all: t.UnknownC;
420
+ }>>]>, t.ExactC<t.TypeC<{
421
+ type: t.KeyofC<{
422
+ Text: null;
423
+ Date: null;
424
+ Timestamp: null;
425
+ Color: null;
426
+ Number: null;
427
+ Range: null;
428
+ Select: null;
429
+ }>;
430
+ value: t.Type<string, string, unknown>;
431
+ __TYPE__: t.LiteralC<"FieldContent">;
432
+ }>>, t.IntersectionC<[t.Type<{
433
+ position: {
434
+ lat: number;
435
+ lng: number;
456
436
  };
457
- background: string;
458
- };
459
- } & {
460
- url?: string;
461
- credits?: string | null;
462
- alt?: string | null;
463
- provider?: string | null | undefined;
464
- } & {
465
- thumbnails?: {
466
- [x: string]: {
467
- origin: {
468
- id: string;
469
- url: string;
470
- width: number;
471
- height: number;
472
- };
437
+ }, {
438
+ position: {
439
+ lat: number;
440
+ lng: number;
441
+ };
442
+ } & {
443
+ __TYPE__: "GeoPointContent";
444
+ }, unknown>, t.ExactC<t.TypeC<{
445
+ __TYPE__: t.LiteralC<"GeoPointContent">;
446
+ }>>]>, t.IntersectionC<[t.Type<{
447
+ origin: {
448
+ id: string;
449
+ url: string;
473
450
  width: number;
474
451
  height: number;
475
- edit: {
476
- zoom: number;
477
- crop: {
478
- x: number;
479
- y: number;
480
- };
481
- background: string;
482
- };
483
- } & {
484
- url?: string;
485
- credits?: string | null;
486
- alt?: string | null;
487
- provider?: string | null | undefined;
488
452
  };
489
- };
490
- }, {
491
- origin: {
492
- id: string;
493
- url: string;
494
453
  width: number;
495
454
  height: number;
496
- };
497
- width: number;
498
- height: number;
499
- edit: {
500
- zoom: number;
501
- crop: {
502
- x: number;
503
- y: number;
455
+ edit: {
456
+ zoom: number;
457
+ crop: {
458
+ x: number;
459
+ y: number;
460
+ };
461
+ background: string;
504
462
  };
505
- background: string;
506
- };
507
- } & {
508
- url?: string;
509
- credits?: string | null;
510
- alt?: string | null;
511
- provider?: string | null | undefined;
512
- } & {
513
- thumbnails?: {
514
- [x: string]: {
515
- origin: {
516
- id: string;
517
- url: string;
463
+ } & {
464
+ url?: string;
465
+ credits?: string | null;
466
+ alt?: string | null;
467
+ provider?: string | null | undefined;
468
+ } & {
469
+ thumbnails?: {
470
+ [x: string]: {
471
+ origin: {
472
+ id: string;
473
+ url: string;
474
+ width: number;
475
+ height: number;
476
+ };
518
477
  width: number;
519
478
  height: number;
479
+ edit: {
480
+ zoom: number;
481
+ crop: {
482
+ x: number;
483
+ y: number;
484
+ };
485
+ background: string;
486
+ };
487
+ } & {
488
+ url?: string;
489
+ credits?: string | null;
490
+ alt?: string | null;
491
+ provider?: string | null | undefined;
520
492
  };
493
+ };
494
+ }, {
495
+ origin: {
496
+ id: string;
497
+ url: string;
521
498
  width: number;
522
499
  height: number;
523
- edit: {
524
- zoom: number;
525
- crop: {
526
- x: number;
527
- y: number;
528
- };
529
- background: string;
530
- };
531
- } & {
532
- url?: string;
533
- credits?: string | null;
534
- alt?: string | null;
535
- provider?: string | null | undefined;
536
500
  };
537
- };
538
- } & {
539
- __TYPE__: "ImageContent";
540
- }, unknown>, t.ExactC<t.TypeC<{
541
- __TYPE__: t.LiteralC<"ImageContent">;
542
- }>>]>, t.ExactC<t.TypeC<{
543
- __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
544
- value: t.StringC;
545
- }>>, t.ExactC<t.TypeC<{
546
- __TYPE__: t.LiteralC<"LinkContent">;
547
- value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
548
- __TYPE__: t.LiteralC<"ImageLink">;
549
- }>>, t.Type<{
550
- id: string;
551
- url: string;
552
- height: string;
553
- width: string;
554
- size: string;
555
- name: string;
556
- kind: string;
557
- } & {
558
- date?: string | null | undefined;
559
- }, {
560
- id: string;
561
- url: string;
562
- height: string;
563
- width: string;
564
- size: string;
565
- name: string;
566
- kind: string;
501
+ width: number;
502
+ height: number;
503
+ edit: {
504
+ zoom: number;
505
+ crop: {
506
+ x: number;
507
+ y: number;
508
+ };
509
+ background: string;
510
+ };
567
511
  } & {
568
- date?: string | null | undefined;
512
+ url?: string;
513
+ credits?: string | null;
514
+ alt?: string | null;
515
+ provider?: string | null | undefined;
569
516
  } & {
570
- __TYPE__: "ImageLink";
571
- }, unknown>]>, t.IntersectionC<[t.Type<{
572
- id: string;
573
- url: string;
574
- name: string;
575
- kind: string;
517
+ thumbnails?: {
518
+ [x: string]: {
519
+ origin: {
520
+ id: string;
521
+ url: string;
522
+ width: number;
523
+ height: number;
524
+ };
525
+ width: number;
526
+ height: number;
527
+ edit: {
528
+ zoom: number;
529
+ crop: {
530
+ x: number;
531
+ y: number;
532
+ };
533
+ background: string;
534
+ };
535
+ } & {
536
+ url?: string;
537
+ credits?: string | null;
538
+ alt?: string | null;
539
+ provider?: string | null | undefined;
540
+ };
541
+ };
576
542
  } & {
577
- date?: string | null | undefined;
578
- size?: string;
579
- }, {
580
- readonly size: string;
581
- readonly __TYPE__: "FileLink";
582
- readonly id: string;
583
- readonly url: string;
584
- readonly name: string;
585
- readonly kind: string;
586
- readonly date?: string | null | undefined;
543
+ __TYPE__: "ImageContent";
587
544
  }, unknown>, t.ExactC<t.TypeC<{
588
- __TYPE__: t.LiteralC<"FileLink">;
589
- size: t.StringC;
590
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
591
- __TYPE__: t.LiteralC<"DocumentLink">;
592
- }>>, t.Type<{
593
- id: string;
594
- }, {
595
- id: string;
596
- } & {
597
- __TYPE__: "DocumentLink";
598
- }, unknown>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
599
- __TYPE__: t.LiteralC<"ExternalLink">;
600
- }>>, t.Type<{
601
- url: string;
602
- } & {
603
- kind?: "web";
604
- target?: string | null | undefined;
605
- preview?: {
606
- title?: string;
607
- } | null | undefined;
608
- }, {
609
- url: string;
610
- } & {
611
- kind?: "web";
612
- target?: string | null | undefined;
613
- preview?: {
614
- title?: string;
615
- } | null | undefined;
616
- } & {
617
- __TYPE__: "ExternalLink";
618
- }, unknown>]>]>;
619
- }>>, t.ExactC<t.TypeC<{
620
- __TYPE__: t.LiteralC<"StructuredTextContent">;
621
- value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
622
- type: t.LiteralC<"image">;
623
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
624
- origin: t.ExactC<t.TypeC<{
625
- id: t.StringC;
626
- url: t.StringC;
545
+ __TYPE__: t.LiteralC<"ImageContent">;
546
+ }>>]>, t.ExactC<t.TypeC<{
547
+ __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
548
+ value: t.StringC;
549
+ }>>, t.ExactC<t.TypeC<{
550
+ __TYPE__: t.LiteralC<"LinkContent">;
551
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
552
+ __TYPE__: t.LiteralC<"ImageLink">;
553
+ }>>, t.Type<{
554
+ id: string;
555
+ url: string;
556
+ height: string;
557
+ width: string;
558
+ size: string;
559
+ name: string;
560
+ kind: string;
561
+ } & {
562
+ date?: string | null | undefined;
563
+ }, {
564
+ id: string;
565
+ url: string;
566
+ height: string;
567
+ width: string;
568
+ size: string;
569
+ name: string;
570
+ kind: string;
571
+ } & {
572
+ date?: string | null | undefined;
573
+ } & {
574
+ __TYPE__: "ImageLink";
575
+ }, unknown>]>, t.IntersectionC<[t.Type<{
576
+ id: string;
577
+ url: string;
578
+ name: string;
579
+ kind: string;
580
+ } & {
581
+ date?: string | null | undefined;
582
+ size?: string;
583
+ }, {
584
+ readonly size: string;
585
+ readonly __TYPE__: "FileLink";
586
+ readonly id: string;
587
+ readonly url: string;
588
+ readonly name: string;
589
+ readonly kind: string;
590
+ readonly date?: string | null | undefined;
591
+ }, unknown>, t.ExactC<t.TypeC<{
592
+ __TYPE__: t.LiteralC<"FileLink">;
593
+ size: t.StringC;
594
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
595
+ __TYPE__: t.LiteralC<"DocumentLink">;
596
+ }>>, t.Type<{
597
+ id: string;
598
+ }, {
599
+ id: string;
600
+ } & {
601
+ __TYPE__: "DocumentLink";
602
+ }, unknown>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
603
+ __TYPE__: t.LiteralC<"ExternalLink">;
604
+ }>>, t.Type<{
605
+ url: string;
606
+ } & {
607
+ kind?: "web";
608
+ target?: string | null | undefined;
609
+ preview?: {
610
+ title?: string;
611
+ } | null | undefined;
612
+ }, {
613
+ url: string;
614
+ } & {
615
+ kind?: "web";
616
+ target?: string | null | undefined;
617
+ preview?: {
618
+ title?: string;
619
+ } | null | undefined;
620
+ } & {
621
+ __TYPE__: "ExternalLink";
622
+ }, unknown>]>]>;
623
+ }>>, t.ExactC<t.TypeC<{
624
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
625
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
626
+ type: t.LiteralC<"image">;
627
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
628
+ origin: t.ExactC<t.TypeC<{
629
+ id: t.StringC;
630
+ url: t.StringC;
631
+ width: t.NumberC;
632
+ height: t.NumberC;
633
+ }>>;
627
634
  width: t.NumberC;
628
635
  height: t.NumberC;
629
- }>>;
630
- width: t.NumberC;
631
- height: t.NumberC;
632
- edit: t.TypeC<{
633
- zoom: t.NumberC;
634
- crop: t.TypeC<{
635
- x: t.NumberC;
636
- y: t.NumberC;
636
+ edit: t.TypeC<{
637
+ zoom: t.NumberC;
638
+ crop: t.TypeC<{
639
+ x: t.NumberC;
640
+ y: t.NumberC;
641
+ }>;
642
+ background: t.StringC;
637
643
  }>;
638
- background: t.StringC;
639
- }>;
640
- }>, t.PartialC<{
641
- url: t.StringC;
642
- credits: t.Type<string | null, string | null, unknown>;
643
- alt: t.Type<string | null, string | null, unknown>;
644
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
645
- }>]>>, t.PartialC<{
646
- linkTo: t.UnionC<[t.Type<{
647
- id: string;
648
- } | ({
649
- url: string;
650
- } & {
651
- kind?: "web";
652
- target?: string | null | undefined;
653
- preview?: {
654
- title?: string;
655
- } | null | undefined;
656
- }) | ({
657
- id: string;
658
- url: string;
659
- name: string;
660
- kind: string;
661
- } & {
662
- date?: string | null | undefined;
663
- size?: string;
664
- }) | ({
665
- id: string;
666
- url: string;
667
- height: string;
668
- width: string;
669
- size: string;
670
- name: string;
671
- kind: string;
672
- } & {
673
- date?: string | null | undefined;
674
- }), ({
675
- id: string;
676
- } & {
677
- __TYPE__: "DocumentLink";
678
- }) | ({
679
- url: string;
680
- } & {
681
- kind?: "web";
682
- target?: string | null | undefined;
683
- preview?: {
684
- title?: string;
685
- } | null | undefined;
686
- } & {
687
- __TYPE__: "ExternalLink";
688
- }) | {
689
- readonly size: string;
690
- readonly __TYPE__: "FileLink";
691
- readonly id: string;
692
- readonly url: string;
693
- readonly name: string;
694
- readonly kind: string;
695
- readonly date?: string | null | undefined;
696
- } | ({
697
- id: string;
698
- url: string;
699
- height: string;
700
- width: string;
701
- size: string;
702
- name: string;
703
- kind: string;
704
- } & {
705
- date?: string | null | undefined;
706
- } & {
707
- __TYPE__: "ImageLink";
708
- }), unknown>, t.NullC, t.UndefinedC]>;
709
- }>]>;
710
- }>, t.PartialC<{
711
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
712
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
713
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
714
- type: t.LiteralC<"embed">;
715
- data: t.Type<import("../documents/widgets/nestable").EmbedContentO, unknown, unknown>;
716
- }>, t.PartialC<{
717
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
718
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
719
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
720
- type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
721
- content: t.IntersectionC<[t.TypeC<{
722
- text: t.StringC;
644
+ }>, t.PartialC<{
645
+ url: t.StringC;
646
+ credits: t.Type<string | null, string | null, unknown>;
647
+ alt: t.Type<string | null, string | null, unknown>;
648
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
649
+ }>]>>, t.PartialC<{
650
+ linkTo: t.UnionC<[t.Type<{
651
+ id: string;
652
+ } | ({
653
+ url: string;
654
+ } & {
655
+ kind?: "web";
656
+ target?: string | null | undefined;
657
+ preview?: {
658
+ title?: string;
659
+ } | null | undefined;
660
+ }) | ({
661
+ id: string;
662
+ url: string;
663
+ name: string;
664
+ kind: string;
665
+ } & {
666
+ date?: string | null | undefined;
667
+ size?: string;
668
+ }) | ({
669
+ id: string;
670
+ url: string;
671
+ height: string;
672
+ width: string;
673
+ size: string;
674
+ name: string;
675
+ kind: string;
676
+ } & {
677
+ date?: string | null | undefined;
678
+ }), ({
679
+ id: string;
680
+ } & {
681
+ __TYPE__: "DocumentLink";
682
+ }) | ({
683
+ url: string;
684
+ } & {
685
+ kind?: "web";
686
+ target?: string | null | undefined;
687
+ preview?: {
688
+ title?: string;
689
+ } | null | undefined;
690
+ } & {
691
+ __TYPE__: "ExternalLink";
692
+ }) | {
693
+ readonly size: string;
694
+ readonly __TYPE__: "FileLink";
695
+ readonly id: string;
696
+ readonly url: string;
697
+ readonly name: string;
698
+ readonly kind: string;
699
+ readonly date?: string | null | undefined;
700
+ } | ({
701
+ id: string;
702
+ url: string;
703
+ height: string;
704
+ width: string;
705
+ size: string;
706
+ name: string;
707
+ kind: string;
708
+ } & {
709
+ date?: string | null | undefined;
710
+ } & {
711
+ __TYPE__: "ImageLink";
712
+ }), unknown>, t.NullC, t.UndefinedC]>;
713
+ }>]>;
723
714
  }>, t.PartialC<{
724
- spans: t.Type<({
725
- data?: unknown;
726
- } & {
727
- start: number;
728
- end: number;
729
- type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
730
- })[], ({
731
- data?: unknown;
732
- } & {
733
- start: number;
734
- end: number;
735
- type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
736
- })[], unknown>;
737
- }>]>;
738
- }>, t.PartialC<{
739
- label: t.StringC;
740
- direction: t.StringC;
741
- }>]>>]>>;
742
- }>>, t.ExactC<t.TypeC<{
743
- __TYPE__: t.LiteralC<"SeparatorContent">;
744
- }>>]>>;
745
- }>, t.ExactC<t.TypeC<{
715
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
716
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
717
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
718
+ type: t.LiteralC<"embed">;
719
+ data: t.Type<import("../documents/widgets/nestable").EmbedContentO, unknown, unknown>;
720
+ }>, t.PartialC<{
721
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
722
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
723
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
724
+ type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
725
+ content: t.IntersectionC<[t.TypeC<{
726
+ text: t.StringC;
727
+ }>, t.PartialC<{
728
+ spans: t.Type<({
729
+ data?: unknown;
730
+ } & {
731
+ start: number;
732
+ end: number;
733
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
734
+ })[], ({
735
+ data?: unknown;
736
+ } & {
737
+ start: number;
738
+ end: number;
739
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
740
+ })[], unknown>;
741
+ }>]>;
742
+ }>, t.PartialC<{
743
+ label: t.StringC;
744
+ direction: t.StringC;
745
+ }>]>>]>>;
746
+ }>>, t.ExactC<t.TypeC<{
747
+ __TYPE__: t.LiteralC<"SeparatorContent">;
748
+ }>>]>]>>;
749
+ }>>>;
750
+ }>>, t.ExactC<t.TypeC<{
746
751
  __TYPE__: t.LiteralC<"SharedSliceContent">;
747
752
  variation: t.StringC;
748
753
  primary: t.RecordC<t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
@@ -1112,373 +1117,376 @@ export declare const CustomTypeContent: t.RecordC<t.Type<string, string, unknown
1112
1117
  }>>, t.ExactC<t.TypeC<{
1113
1118
  __TYPE__: t.LiteralC<"SeparatorContent">;
1114
1119
  }>>]>>;
1115
- items: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
1116
- __TYPE__: t.LiteralC<"BooleanContent">;
1117
- value: t.BooleanC;
1118
- }>>, t.IntersectionC<[t.Type<{
1119
- embed_url: string;
1120
- type: string;
1121
- } & {
1122
- version?: string | number | null;
1123
- title?: string | null | undefined;
1124
- author_name?: string | null | undefined;
1125
- author_url?: string | null | undefined;
1126
- provider_name?: string | null | undefined;
1127
- provider_url?: string | null | undefined;
1128
- cache_age?: string | number | null;
1129
- thumbnail_url?: string | null | undefined;
1130
- thumbnail_width?: number | null | undefined;
1131
- thumbnail_height?: number | null | undefined;
1132
- html?: string | null | undefined;
1133
- }, {
1134
- embed_url: string;
1135
- type: string;
1136
- } & {
1137
- version?: string | number | null;
1138
- title?: string | null | undefined;
1139
- author_name?: string | null | undefined;
1140
- author_url?: string | null | undefined;
1141
- provider_name?: string | null | undefined;
1142
- provider_url?: string | null | undefined;
1143
- cache_age?: string | number | null;
1144
- thumbnail_url?: string | null | undefined;
1145
- thumbnail_width?: number | null | undefined;
1146
- thumbnail_height?: number | null | undefined;
1147
- html?: string | null | undefined;
1148
- } & {
1149
- __TYPE__: "EmbedContent";
1150
- }, unknown>, t.ExactC<t.TypeC<{
1151
- __TYPE__: t.LiteralC<"EmbedContent">;
1152
- all: t.UnknownC;
1153
- }>>]>, t.ExactC<t.TypeC<{
1154
- type: t.KeyofC<{
1155
- Text: null;
1156
- Date: null;
1157
- Timestamp: null;
1158
- Color: null;
1159
- Number: null;
1160
- Range: null;
1161
- Select: null;
1162
- }>;
1163
- value: t.Type<string, string, unknown>;
1164
- __TYPE__: t.LiteralC<"FieldContent">;
1165
- }>>, t.IntersectionC<[t.Type<{
1166
- position: {
1167
- lat: number;
1168
- lng: number;
1169
- };
1170
- }, {
1171
- position: {
1172
- lat: number;
1173
- lng: number;
1174
- };
1175
- } & {
1176
- __TYPE__: "GeoPointContent";
1177
- }, unknown>, t.ExactC<t.TypeC<{
1178
- __TYPE__: t.LiteralC<"GeoPointContent">;
1179
- }>>]>, t.IntersectionC<[t.Type<{
1180
- origin: {
1181
- id: string;
1182
- url: string;
1183
- width: number;
1184
- height: number;
1185
- };
1186
- width: number;
1187
- height: number;
1188
- edit: {
1189
- zoom: number;
1190
- crop: {
1191
- x: number;
1192
- y: number;
1120
+ items: t.ArrayC<t.ExactC<t.TypeC<{
1121
+ __TYPE__: t.LiteralC<"GroupItemContent">;
1122
+ value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
1123
+ __TYPE__: t.LiteralC<"BooleanContent">;
1124
+ value: t.BooleanC;
1125
+ }>>, t.IntersectionC<[t.Type<{
1126
+ embed_url: string;
1127
+ type: string;
1128
+ } & {
1129
+ version?: string | number | null;
1130
+ title?: string | null | undefined;
1131
+ author_name?: string | null | undefined;
1132
+ author_url?: string | null | undefined;
1133
+ provider_name?: string | null | undefined;
1134
+ provider_url?: string | null | undefined;
1135
+ cache_age?: string | number | null;
1136
+ thumbnail_url?: string | null | undefined;
1137
+ thumbnail_width?: number | null | undefined;
1138
+ thumbnail_height?: number | null | undefined;
1139
+ html?: string | null | undefined;
1140
+ }, {
1141
+ embed_url: string;
1142
+ type: string;
1143
+ } & {
1144
+ version?: string | number | null;
1145
+ title?: string | null | undefined;
1146
+ author_name?: string | null | undefined;
1147
+ author_url?: string | null | undefined;
1148
+ provider_name?: string | null | undefined;
1149
+ provider_url?: string | null | undefined;
1150
+ cache_age?: string | number | null;
1151
+ thumbnail_url?: string | null | undefined;
1152
+ thumbnail_width?: number | null | undefined;
1153
+ thumbnail_height?: number | null | undefined;
1154
+ html?: string | null | undefined;
1155
+ } & {
1156
+ __TYPE__: "EmbedContent";
1157
+ }, unknown>, t.ExactC<t.TypeC<{
1158
+ __TYPE__: t.LiteralC<"EmbedContent">;
1159
+ all: t.UnknownC;
1160
+ }>>]>, t.ExactC<t.TypeC<{
1161
+ type: t.KeyofC<{
1162
+ Text: null;
1163
+ Date: null;
1164
+ Timestamp: null;
1165
+ Color: null;
1166
+ Number: null;
1167
+ Range: null;
1168
+ Select: null;
1169
+ }>;
1170
+ value: t.Type<string, string, unknown>;
1171
+ __TYPE__: t.LiteralC<"FieldContent">;
1172
+ }>>, t.IntersectionC<[t.Type<{
1173
+ position: {
1174
+ lat: number;
1175
+ lng: number;
1193
1176
  };
1194
- background: string;
1195
- };
1196
- } & {
1197
- url?: string;
1198
- credits?: string | null;
1199
- alt?: string | null;
1200
- provider?: string | null | undefined;
1201
- } & {
1202
- thumbnails?: {
1203
- [x: string]: {
1204
- origin: {
1205
- id: string;
1206
- url: string;
1207
- width: number;
1208
- height: number;
1209
- };
1177
+ }, {
1178
+ position: {
1179
+ lat: number;
1180
+ lng: number;
1181
+ };
1182
+ } & {
1183
+ __TYPE__: "GeoPointContent";
1184
+ }, unknown>, t.ExactC<t.TypeC<{
1185
+ __TYPE__: t.LiteralC<"GeoPointContent">;
1186
+ }>>]>, t.IntersectionC<[t.Type<{
1187
+ origin: {
1188
+ id: string;
1189
+ url: string;
1210
1190
  width: number;
1211
1191
  height: number;
1212
- edit: {
1213
- zoom: number;
1214
- crop: {
1215
- x: number;
1216
- y: number;
1217
- };
1218
- background: string;
1219
- };
1220
- } & {
1221
- url?: string;
1222
- credits?: string | null;
1223
- alt?: string | null;
1224
- provider?: string | null | undefined;
1225
1192
  };
1226
- };
1227
- }, {
1228
- origin: {
1229
- id: string;
1230
- url: string;
1231
1193
  width: number;
1232
1194
  height: number;
1233
- };
1234
- width: number;
1235
- height: number;
1236
- edit: {
1237
- zoom: number;
1238
- crop: {
1239
- x: number;
1240
- y: number;
1195
+ edit: {
1196
+ zoom: number;
1197
+ crop: {
1198
+ x: number;
1199
+ y: number;
1200
+ };
1201
+ background: string;
1241
1202
  };
1242
- background: string;
1243
- };
1244
- } & {
1245
- url?: string;
1246
- credits?: string | null;
1247
- alt?: string | null;
1248
- provider?: string | null | undefined;
1249
- } & {
1250
- thumbnails?: {
1251
- [x: string]: {
1252
- origin: {
1253
- id: string;
1254
- url: string;
1203
+ } & {
1204
+ url?: string;
1205
+ credits?: string | null;
1206
+ alt?: string | null;
1207
+ provider?: string | null | undefined;
1208
+ } & {
1209
+ thumbnails?: {
1210
+ [x: string]: {
1211
+ origin: {
1212
+ id: string;
1213
+ url: string;
1214
+ width: number;
1215
+ height: number;
1216
+ };
1255
1217
  width: number;
1256
1218
  height: number;
1219
+ edit: {
1220
+ zoom: number;
1221
+ crop: {
1222
+ x: number;
1223
+ y: number;
1224
+ };
1225
+ background: string;
1226
+ };
1227
+ } & {
1228
+ url?: string;
1229
+ credits?: string | null;
1230
+ alt?: string | null;
1231
+ provider?: string | null | undefined;
1257
1232
  };
1233
+ };
1234
+ }, {
1235
+ origin: {
1236
+ id: string;
1237
+ url: string;
1258
1238
  width: number;
1259
1239
  height: number;
1260
- edit: {
1261
- zoom: number;
1262
- crop: {
1263
- x: number;
1264
- y: number;
1265
- };
1266
- background: string;
1240
+ };
1241
+ width: number;
1242
+ height: number;
1243
+ edit: {
1244
+ zoom: number;
1245
+ crop: {
1246
+ x: number;
1247
+ y: number;
1267
1248
  };
1268
- } & {
1269
- url?: string;
1270
- credits?: string | null;
1271
- alt?: string | null;
1272
- provider?: string | null | undefined;
1249
+ background: string;
1273
1250
  };
1274
- };
1275
- } & {
1276
- __TYPE__: "ImageContent";
1277
- }, unknown>, t.ExactC<t.TypeC<{
1278
- __TYPE__: t.LiteralC<"ImageContent">;
1279
- }>>]>, t.ExactC<t.TypeC<{
1280
- __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
1281
- value: t.StringC;
1282
- }>>, t.ExactC<t.TypeC<{
1283
- __TYPE__: t.LiteralC<"LinkContent">;
1284
- value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1285
- __TYPE__: t.LiteralC<"ImageLink">;
1286
- }>>, t.Type<{
1287
- id: string;
1288
- url: string;
1289
- height: string;
1290
- width: string;
1291
- size: string;
1292
- name: string;
1293
- kind: string;
1294
- } & {
1295
- date?: string | null | undefined;
1296
- }, {
1297
- id: string;
1298
- url: string;
1299
- height: string;
1300
- width: string;
1301
- size: string;
1302
- name: string;
1303
- kind: string;
1304
1251
  } & {
1305
- date?: string | null | undefined;
1252
+ url?: string;
1253
+ credits?: string | null;
1254
+ alt?: string | null;
1255
+ provider?: string | null | undefined;
1306
1256
  } & {
1307
- __TYPE__: "ImageLink";
1308
- }, unknown>]>, t.IntersectionC<[t.Type<{
1309
- id: string;
1310
- url: string;
1311
- name: string;
1312
- kind: string;
1257
+ thumbnails?: {
1258
+ [x: string]: {
1259
+ origin: {
1260
+ id: string;
1261
+ url: string;
1262
+ width: number;
1263
+ height: number;
1264
+ };
1265
+ width: number;
1266
+ height: number;
1267
+ edit: {
1268
+ zoom: number;
1269
+ crop: {
1270
+ x: number;
1271
+ y: number;
1272
+ };
1273
+ background: string;
1274
+ };
1275
+ } & {
1276
+ url?: string;
1277
+ credits?: string | null;
1278
+ alt?: string | null;
1279
+ provider?: string | null | undefined;
1280
+ };
1281
+ };
1313
1282
  } & {
1314
- date?: string | null | undefined;
1315
- size?: string;
1316
- }, {
1317
- readonly size: string;
1318
- readonly __TYPE__: "FileLink";
1319
- readonly id: string;
1320
- readonly url: string;
1321
- readonly name: string;
1322
- readonly kind: string;
1323
- readonly date?: string | null | undefined;
1283
+ __TYPE__: "ImageContent";
1324
1284
  }, unknown>, t.ExactC<t.TypeC<{
1325
- __TYPE__: t.LiteralC<"FileLink">;
1326
- size: t.StringC;
1327
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1328
- __TYPE__: t.LiteralC<"DocumentLink">;
1329
- }>>, t.Type<{
1330
- id: string;
1331
- }, {
1332
- id: string;
1333
- } & {
1334
- __TYPE__: "DocumentLink";
1335
- }, unknown>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1336
- __TYPE__: t.LiteralC<"ExternalLink">;
1337
- }>>, t.Type<{
1338
- url: string;
1339
- } & {
1340
- kind?: "web";
1341
- target?: string | null | undefined;
1342
- preview?: {
1343
- title?: string;
1344
- } | null | undefined;
1345
- }, {
1346
- url: string;
1347
- } & {
1348
- kind?: "web";
1349
- target?: string | null | undefined;
1350
- preview?: {
1351
- title?: string;
1352
- } | null | undefined;
1353
- } & {
1354
- __TYPE__: "ExternalLink";
1355
- }, unknown>]>]>;
1356
- }>>, t.ExactC<t.TypeC<{
1357
- __TYPE__: t.LiteralC<"StructuredTextContent">;
1358
- value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1359
- type: t.LiteralC<"image">;
1360
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1361
- origin: t.ExactC<t.TypeC<{
1362
- id: t.StringC;
1363
- url: t.StringC;
1285
+ __TYPE__: t.LiteralC<"ImageContent">;
1286
+ }>>]>, t.ExactC<t.TypeC<{
1287
+ __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
1288
+ value: t.StringC;
1289
+ }>>, t.ExactC<t.TypeC<{
1290
+ __TYPE__: t.LiteralC<"LinkContent">;
1291
+ value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
1292
+ __TYPE__: t.LiteralC<"ImageLink">;
1293
+ }>>, t.Type<{
1294
+ id: string;
1295
+ url: string;
1296
+ height: string;
1297
+ width: string;
1298
+ size: string;
1299
+ name: string;
1300
+ kind: string;
1301
+ } & {
1302
+ date?: string | null | undefined;
1303
+ }, {
1304
+ id: string;
1305
+ url: string;
1306
+ height: string;
1307
+ width: string;
1308
+ size: string;
1309
+ name: string;
1310
+ kind: string;
1311
+ } & {
1312
+ date?: string | null | undefined;
1313
+ } & {
1314
+ __TYPE__: "ImageLink";
1315
+ }, unknown>]>, t.IntersectionC<[t.Type<{
1316
+ id: string;
1317
+ url: string;
1318
+ name: string;
1319
+ kind: string;
1320
+ } & {
1321
+ date?: string | null | undefined;
1322
+ size?: string;
1323
+ }, {
1324
+ readonly size: string;
1325
+ readonly __TYPE__: "FileLink";
1326
+ readonly id: string;
1327
+ readonly url: string;
1328
+ readonly name: string;
1329
+ readonly kind: string;
1330
+ readonly date?: string | null | undefined;
1331
+ }, unknown>, t.ExactC<t.TypeC<{
1332
+ __TYPE__: t.LiteralC<"FileLink">;
1333
+ size: t.StringC;
1334
+ }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1335
+ __TYPE__: t.LiteralC<"DocumentLink">;
1336
+ }>>, t.Type<{
1337
+ id: string;
1338
+ }, {
1339
+ id: string;
1340
+ } & {
1341
+ __TYPE__: "DocumentLink";
1342
+ }, unknown>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
1343
+ __TYPE__: t.LiteralC<"ExternalLink">;
1344
+ }>>, t.Type<{
1345
+ url: string;
1346
+ } & {
1347
+ kind?: "web";
1348
+ target?: string | null | undefined;
1349
+ preview?: {
1350
+ title?: string;
1351
+ } | null | undefined;
1352
+ }, {
1353
+ url: string;
1354
+ } & {
1355
+ kind?: "web";
1356
+ target?: string | null | undefined;
1357
+ preview?: {
1358
+ title?: string;
1359
+ } | null | undefined;
1360
+ } & {
1361
+ __TYPE__: "ExternalLink";
1362
+ }, unknown>]>]>;
1363
+ }>>, t.ExactC<t.TypeC<{
1364
+ __TYPE__: t.LiteralC<"StructuredTextContent">;
1365
+ value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1366
+ type: t.LiteralC<"image">;
1367
+ data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
1368
+ origin: t.ExactC<t.TypeC<{
1369
+ id: t.StringC;
1370
+ url: t.StringC;
1371
+ width: t.NumberC;
1372
+ height: t.NumberC;
1373
+ }>>;
1364
1374
  width: t.NumberC;
1365
1375
  height: t.NumberC;
1366
- }>>;
1367
- width: t.NumberC;
1368
- height: t.NumberC;
1369
- edit: t.TypeC<{
1370
- zoom: t.NumberC;
1371
- crop: t.TypeC<{
1372
- x: t.NumberC;
1373
- y: t.NumberC;
1376
+ edit: t.TypeC<{
1377
+ zoom: t.NumberC;
1378
+ crop: t.TypeC<{
1379
+ x: t.NumberC;
1380
+ y: t.NumberC;
1381
+ }>;
1382
+ background: t.StringC;
1374
1383
  }>;
1375
- background: t.StringC;
1376
- }>;
1384
+ }>, t.PartialC<{
1385
+ url: t.StringC;
1386
+ credits: t.Type<string | null, string | null, unknown>;
1387
+ alt: t.Type<string | null, string | null, unknown>;
1388
+ provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1389
+ }>]>>, t.PartialC<{
1390
+ linkTo: t.UnionC<[t.Type<{
1391
+ id: string;
1392
+ } | ({
1393
+ url: string;
1394
+ } & {
1395
+ kind?: "web";
1396
+ target?: string | null | undefined;
1397
+ preview?: {
1398
+ title?: string;
1399
+ } | null | undefined;
1400
+ }) | ({
1401
+ id: string;
1402
+ url: string;
1403
+ name: string;
1404
+ kind: string;
1405
+ } & {
1406
+ date?: string | null | undefined;
1407
+ size?: string;
1408
+ }) | ({
1409
+ id: string;
1410
+ url: string;
1411
+ height: string;
1412
+ width: string;
1413
+ size: string;
1414
+ name: string;
1415
+ kind: string;
1416
+ } & {
1417
+ date?: string | null | undefined;
1418
+ }), ({
1419
+ id: string;
1420
+ } & {
1421
+ __TYPE__: "DocumentLink";
1422
+ }) | ({
1423
+ url: string;
1424
+ } & {
1425
+ kind?: "web";
1426
+ target?: string | null | undefined;
1427
+ preview?: {
1428
+ title?: string;
1429
+ } | null | undefined;
1430
+ } & {
1431
+ __TYPE__: "ExternalLink";
1432
+ }) | {
1433
+ readonly size: string;
1434
+ readonly __TYPE__: "FileLink";
1435
+ readonly id: string;
1436
+ readonly url: string;
1437
+ readonly name: string;
1438
+ readonly kind: string;
1439
+ readonly date?: string | null | undefined;
1440
+ } | ({
1441
+ id: string;
1442
+ url: string;
1443
+ height: string;
1444
+ width: string;
1445
+ size: string;
1446
+ name: string;
1447
+ kind: string;
1448
+ } & {
1449
+ date?: string | null | undefined;
1450
+ } & {
1451
+ __TYPE__: "ImageLink";
1452
+ }), unknown>, t.NullC, t.UndefinedC]>;
1453
+ }>]>;
1377
1454
  }>, t.PartialC<{
1378
- url: t.StringC;
1379
- credits: t.Type<string | null, string | null, unknown>;
1380
- alt: t.Type<string | null, string | null, unknown>;
1381
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1382
- }>]>>, t.PartialC<{
1383
- linkTo: t.UnionC<[t.Type<{
1384
- id: string;
1385
- } | ({
1386
- url: string;
1387
- } & {
1388
- kind?: "web";
1389
- target?: string | null | undefined;
1390
- preview?: {
1391
- title?: string;
1392
- } | null | undefined;
1393
- }) | ({
1394
- id: string;
1395
- url: string;
1396
- name: string;
1397
- kind: string;
1398
- } & {
1399
- date?: string | null | undefined;
1400
- size?: string;
1401
- }) | ({
1402
- id: string;
1403
- url: string;
1404
- height: string;
1405
- width: string;
1406
- size: string;
1407
- name: string;
1408
- kind: string;
1409
- } & {
1410
- date?: string | null | undefined;
1411
- }), ({
1412
- id: string;
1413
- } & {
1414
- __TYPE__: "DocumentLink";
1415
- }) | ({
1416
- url: string;
1417
- } & {
1418
- kind?: "web";
1419
- target?: string | null | undefined;
1420
- preview?: {
1421
- title?: string;
1422
- } | null | undefined;
1423
- } & {
1424
- __TYPE__: "ExternalLink";
1425
- }) | {
1426
- readonly size: string;
1427
- readonly __TYPE__: "FileLink";
1428
- readonly id: string;
1429
- readonly url: string;
1430
- readonly name: string;
1431
- readonly kind: string;
1432
- readonly date?: string | null | undefined;
1433
- } | ({
1434
- id: string;
1435
- url: string;
1436
- height: string;
1437
- width: string;
1438
- size: string;
1439
- name: string;
1440
- kind: string;
1441
- } & {
1442
- date?: string | null | undefined;
1443
- } & {
1444
- __TYPE__: "ImageLink";
1445
- }), unknown>, t.NullC, t.UndefinedC]>;
1446
- }>]>;
1447
- }>, t.PartialC<{
1448
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1449
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1450
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1451
- type: t.LiteralC<"embed">;
1452
- data: t.Type<import("../documents/widgets/nestable").EmbedContentO, unknown, unknown>;
1453
- }>, t.PartialC<{
1454
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1455
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1456
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1457
- type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
1458
- content: t.IntersectionC<[t.TypeC<{
1459
- text: t.StringC;
1455
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1456
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1457
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1458
+ type: t.LiteralC<"embed">;
1459
+ data: t.Type<import("../documents/widgets/nestable").EmbedContentO, unknown, unknown>;
1460
1460
  }>, t.PartialC<{
1461
- spans: t.Type<({
1462
- data?: unknown;
1463
- } & {
1464
- start: number;
1465
- end: number;
1466
- type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
1467
- })[], ({
1468
- data?: unknown;
1469
- } & {
1470
- start: number;
1471
- end: number;
1472
- type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
1473
- })[], unknown>;
1474
- }>]>;
1475
- }>, t.PartialC<{
1476
- label: t.StringC;
1477
- direction: t.StringC;
1478
- }>]>>]>>;
1479
- }>>, t.ExactC<t.TypeC<{
1480
- __TYPE__: t.LiteralC<"SeparatorContent">;
1481
- }>>]>]>>;
1461
+ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1462
+ direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
1463
+ }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
1464
+ type: t.Type<"paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl", unknown>;
1465
+ content: t.IntersectionC<[t.TypeC<{
1466
+ text: t.StringC;
1467
+ }>, t.PartialC<{
1468
+ spans: t.Type<({
1469
+ data?: unknown;
1470
+ } & {
1471
+ start: number;
1472
+ end: number;
1473
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
1474
+ })[], ({
1475
+ data?: unknown;
1476
+ } & {
1477
+ start: number;
1478
+ end: number;
1479
+ type: "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
1480
+ })[], unknown>;
1481
+ }>]>;
1482
+ }>, t.PartialC<{
1483
+ label: t.StringC;
1484
+ direction: t.StringC;
1485
+ }>]>>]>>;
1486
+ }>>, t.ExactC<t.TypeC<{
1487
+ __TYPE__: t.LiteralC<"SeparatorContent">;
1488
+ }>>]>]>>;
1489
+ }>>>;
1482
1490
  }>>, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
1483
1491
  __TYPE__: t.LiteralC<"BooleanContent">;
1484
1492
  value: t.BooleanC;