@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
@@ -1,5 +1,6 @@
1
1
  import * as t from "io-ts";
2
2
  import type { LegacyContentCtx } from "../../../LegacyContentCtx";
3
+ import { GroupContent } from "../../GroupContent";
3
4
  export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
4
5
  type: t.StringC;
5
6
  __TYPE__: t.LiteralC<"EmptyContent">;
@@ -180,73 +181,7 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
180
181
  alt: t.Type<string | null, string | null, unknown>;
181
182
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
182
183
  }>]>>, t.PartialC<{
183
- linkTo: t.UnionC<[t.Type<({
184
- __TYPE__: "ImageLink";
185
- } & {
186
- id: string;
187
- url: string;
188
- height: string;
189
- width: string;
190
- size: string;
191
- name: string;
192
- kind: string;
193
- } & {
194
- date?: string | null | undefined;
195
- }) | ({
196
- id: string;
197
- url: string;
198
- name: string;
199
- kind: string;
200
- size: string;
201
- } & {
202
- date?: string | null | undefined;
203
- } & {
204
- __TYPE__: "FileLink";
205
- } & {
206
- size?: string;
207
- }) | ({
208
- __TYPE__: "DocumentLink";
209
- } & {
210
- id: string;
211
- }) | ({
212
- __TYPE__: "ExternalLink";
213
- } & {
214
- url: string;
215
- } & {
216
- kind?: "web";
217
- target?: string | null | undefined;
218
- preview?: {
219
- title?: string;
220
- } | null | undefined;
221
- }), ({
222
- id: string;
223
- url: string;
224
- height: string;
225
- width: string;
226
- size: string;
227
- name: string;
228
- kind: string;
229
- } & {
230
- date?: string | null | undefined;
231
- }) | ({
232
- id: string;
233
- url: string;
234
- name: string;
235
- kind: string;
236
- size: string;
237
- } & {
238
- date?: string | null | undefined;
239
- }) | {
240
- id: string;
241
- } | ({
242
- url: string;
243
- } & {
244
- kind?: "web";
245
- target?: string | null | undefined;
246
- preview?: {
247
- title?: string;
248
- } | null | undefined;
249
- }), unknown>, t.NullC, t.UndefinedC]>;
184
+ linkTo: t.UnionC<[t.Type<any, any, unknown>, t.NullC, t.UndefinedC]>;
250
185
  }>]>;
251
186
  }>, t.PartialC<{
252
187
  label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
@@ -392,405 +327,7 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
392
327
  }>]>>]>>;
393
328
  }>>, t.ExactC<t.TypeC<{
394
329
  __TYPE__: t.LiteralC<"SeparatorContent">;
395
- }>>]>, t.ExactC<t.TypeC<{
396
- __TYPE__: t.LiteralC<"GroupContentType">;
397
- value: t.ArrayC<t.ExactC<t.TypeC<{
398
- __TYPE__: t.LiteralC<"GroupItemContent">;
399
- value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
400
- type: t.StringC;
401
- __TYPE__: t.LiteralC<"EmptyContent">;
402
- }>>, t.ExactC<t.TypeC<{
403
- __TYPE__: t.LiteralC<"BooleanContent">;
404
- value: t.BooleanC;
405
- }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
406
- embed_url: t.StringC;
407
- type: t.StringC;
408
- }>, t.PartialC<{
409
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
410
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
411
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
412
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
413
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
414
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
415
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
416
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
417
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
418
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
419
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
420
- }>]>>, t.ExactC<t.TypeC<{
421
- __TYPE__: t.LiteralC<"EmbedContent">;
422
- all: t.UnknownC;
423
- }>>]>, t.ExactC<t.TypeC<{
424
- type: t.LiteralC<"Text">;
425
- value: t.Type<string, string, unknown>;
426
- __TYPE__: t.LiteralC<"FieldContent">;
427
- }>>, t.ExactC<t.TypeC<{
428
- type: t.LiteralC<"Timestamp">;
429
- value: t.Type<string, string, unknown>;
430
- __TYPE__: t.LiteralC<"FieldContent">;
431
- }>>, t.ExactC<t.TypeC<{
432
- type: t.LiteralC<"Select">;
433
- value: t.Type<string, string, unknown>;
434
- __TYPE__: t.LiteralC<"FieldContent">;
435
- }>>, t.ExactC<t.TypeC<{
436
- type: t.LiteralC<"Range">;
437
- value: t.Type<string, string, unknown>;
438
- __TYPE__: t.LiteralC<"FieldContent">;
439
- }>>, t.ExactC<t.TypeC<{
440
- type: t.LiteralC<"Number">;
441
- value: t.Type<string, string, unknown>;
442
- __TYPE__: t.LiteralC<"FieldContent">;
443
- }>>, t.ExactC<t.TypeC<{
444
- type: t.LiteralC<"Date">;
445
- value: t.Type<string, string, unknown>;
446
- __TYPE__: t.LiteralC<"FieldContent">;
447
- }>>, t.ExactC<t.TypeC<{
448
- type: t.LiteralC<"Color">;
449
- value: t.Type<string, string, unknown>;
450
- __TYPE__: t.LiteralC<"FieldContent">;
451
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
452
- position: t.ExactC<t.TypeC<{
453
- lat: t.NumberC;
454
- lng: t.NumberC;
455
- }>>;
456
- }>>, t.ExactC<t.TypeC<{
457
- __TYPE__: t.LiteralC<"GeoPointContent">;
458
- }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
459
- origin: t.ExactC<t.TypeC<{
460
- id: t.StringC;
461
- url: t.StringC;
462
- width: t.NumberC;
463
- height: t.NumberC;
464
- }>>;
465
- width: t.NumberC;
466
- height: t.NumberC;
467
- edit: t.TypeC<{
468
- zoom: t.NumberC;
469
- crop: t.TypeC<{
470
- x: t.NumberC;
471
- y: t.NumberC;
472
- }>;
473
- background: t.StringC;
474
- }>;
475
- }>, t.PartialC<{
476
- url: t.StringC;
477
- credits: t.Type<string | null, string | null, unknown>;
478
- alt: t.Type<string | null, string | null, unknown>;
479
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
480
- }>]>>, t.PartialC<{
481
- thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
482
- origin: t.ExactC<t.TypeC<{
483
- id: t.StringC;
484
- url: t.StringC;
485
- width: t.NumberC;
486
- height: t.NumberC;
487
- }>>;
488
- width: t.NumberC;
489
- height: t.NumberC;
490
- edit: t.TypeC<{
491
- zoom: t.NumberC;
492
- crop: t.TypeC<{
493
- x: t.NumberC;
494
- y: t.NumberC;
495
- }>;
496
- background: t.StringC;
497
- }>;
498
- }>, t.PartialC<{
499
- url: t.StringC;
500
- credits: t.Type<string | null, string | null, unknown>;
501
- alt: t.Type<string | null, string | null, unknown>;
502
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
503
- }>]>>>;
504
- }>]>, t.ExactC<t.TypeC<{
505
- __TYPE__: t.LiteralC<"ImageContent">;
506
- }>>]>, t.ExactC<t.TypeC<{
507
- __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
508
- value: t.StringC;
509
- }>>, t.ExactC<t.TypeC<{
510
- __TYPE__: t.LiteralC<"LinkContent">;
511
- value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
512
- __TYPE__: t.LiteralC<"ImageLink">;
513
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
514
- id: t.StringC;
515
- url: t.StringC;
516
- height: t.StringC;
517
- width: t.StringC;
518
- size: t.StringC;
519
- name: t.StringC;
520
- kind: t.StringC;
521
- }>, t.PartialC<{
522
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
523
- }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
524
- id: t.StringC;
525
- url: t.StringC;
526
- name: t.StringC;
527
- kind: t.StringC;
528
- size: t.StringC;
529
- }>, t.PartialC<{
530
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
531
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
532
- __TYPE__: t.LiteralC<"FileLink">;
533
- }>, t.PartialC<{
534
- size: t.StringC;
535
- }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
536
- __TYPE__: t.LiteralC<"DocumentLink">;
537
- }>>, t.ExactC<t.TypeC<{
538
- id: t.Type<string, string, unknown>;
539
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
540
- __TYPE__: t.LiteralC<"ExternalLink">;
541
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
542
- url: t.StringC;
543
- }>, t.PartialC<{
544
- kind: t.LiteralC<"web">;
545
- target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
546
- preview: t.UnionC<[t.Type<{
547
- title?: string;
548
- }, {
549
- title?: string;
550
- }, unknown>, t.NullC, t.UndefinedC]>;
551
- }>]>>]>]>;
552
- }>>, t.ExactC<t.TypeC<{
553
- __TYPE__: t.LiteralC<"StructuredTextContent">;
554
- value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
555
- type: t.LiteralC<"image">;
556
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
557
- origin: t.ExactC<t.TypeC<{
558
- id: t.StringC;
559
- url: t.StringC;
560
- width: t.NumberC;
561
- height: t.NumberC;
562
- }>>;
563
- width: t.NumberC;
564
- height: t.NumberC;
565
- edit: t.TypeC<{
566
- zoom: t.NumberC;
567
- crop: t.TypeC<{
568
- x: t.NumberC;
569
- y: t.NumberC;
570
- }>;
571
- background: t.StringC;
572
- }>;
573
- }>, t.PartialC<{
574
- url: t.StringC;
575
- credits: t.Type<string | null, string | null, unknown>;
576
- alt: t.Type<string | null, string | null, unknown>;
577
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
578
- }>]>>, t.PartialC<{
579
- linkTo: t.UnionC<[t.Type<({
580
- __TYPE__: "ImageLink";
581
- } & {
582
- id: string;
583
- url: string;
584
- height: string;
585
- width: string;
586
- size: string;
587
- name: string;
588
- kind: string;
589
- } & {
590
- date?: string | null | undefined;
591
- }) | ({
592
- id: string;
593
- url: string;
594
- name: string;
595
- kind: string;
596
- size: string;
597
- } & {
598
- date?: string | null | undefined;
599
- } & {
600
- __TYPE__: "FileLink";
601
- } & {
602
- size?: string;
603
- }) | ({
604
- __TYPE__: "DocumentLink";
605
- } & {
606
- id: string;
607
- }) | ({
608
- __TYPE__: "ExternalLink";
609
- } & {
610
- url: string;
611
- } & {
612
- kind?: "web";
613
- target?: string | null | undefined;
614
- preview?: {
615
- title?: string;
616
- } | null | undefined;
617
- }), ({
618
- id: string;
619
- url: string;
620
- height: string;
621
- width: string;
622
- size: string;
623
- name: string;
624
- kind: string;
625
- } & {
626
- date?: string | null | undefined;
627
- }) | ({
628
- id: string;
629
- url: string;
630
- name: string;
631
- kind: string;
632
- size: string;
633
- } & {
634
- date?: string | null | undefined;
635
- }) | {
636
- id: string;
637
- } | ({
638
- url: string;
639
- } & {
640
- kind?: "web";
641
- target?: string | null | undefined;
642
- preview?: {
643
- title?: string;
644
- } | null | undefined;
645
- }), unknown>, t.NullC, t.UndefinedC]>;
646
- }>]>;
647
- }>, t.PartialC<{
648
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
649
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
650
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
651
- type: t.LiteralC<"embed">;
652
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
653
- embed_url: t.StringC;
654
- type: t.StringC;
655
- }>, t.PartialC<{
656
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
657
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
658
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
659
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
660
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
661
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
662
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
663
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
664
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
665
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
666
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
667
- }>]>>, t.ExactC<t.TypeC<{
668
- __TYPE__: t.LiteralC<"EmbedContent">;
669
- all: t.UnknownC;
670
- }>>]>;
671
- }>, t.PartialC<{
672
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
673
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
674
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
675
- 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>;
676
- content: t.IntersectionC<[t.TypeC<{
677
- text: t.StringC;
678
- }>, t.PartialC<{
679
- spans: t.Type<({
680
- data: ({
681
- __TYPE__: "ImageLink";
682
- } & {
683
- id: string;
684
- url: string;
685
- height: string;
686
- width: string;
687
- size: string;
688
- name: string;
689
- kind: string;
690
- } & {
691
- date?: string | null | undefined;
692
- }) | ({
693
- id: string;
694
- url: string;
695
- name: string;
696
- kind: string;
697
- size: string;
698
- } & {
699
- date?: string | null | undefined;
700
- } & {
701
- __TYPE__: "FileLink";
702
- } & {
703
- size?: string;
704
- }) | ({
705
- __TYPE__: "DocumentLink";
706
- } & {
707
- id: string;
708
- }) | ({
709
- __TYPE__: "ExternalLink";
710
- } & {
711
- url: string;
712
- } & {
713
- kind?: "web";
714
- target?: string | null | undefined;
715
- preview?: {
716
- title?: string;
717
- } | null | undefined;
718
- });
719
- start: number;
720
- end: number;
721
- type: "hyperlink";
722
- } | {
723
- data: string;
724
- start: number;
725
- end: number;
726
- type: "label";
727
- } | {
728
- start: number;
729
- end: number;
730
- type: "strong" | "em" | "list-item";
731
- })[], ({
732
- data: ({
733
- __TYPE__: "ImageLink";
734
- } & {
735
- id: string;
736
- url: string;
737
- height: string;
738
- width: string;
739
- size: string;
740
- name: string;
741
- kind: string;
742
- } & {
743
- date?: string | null | undefined;
744
- }) | ({
745
- id: string;
746
- url: string;
747
- name: string;
748
- kind: string;
749
- size: string;
750
- } & {
751
- date?: string | null | undefined;
752
- } & {
753
- __TYPE__: "FileLink";
754
- } & {
755
- size?: string;
756
- }) | ({
757
- __TYPE__: "DocumentLink";
758
- } & {
759
- id: string;
760
- }) | ({
761
- __TYPE__: "ExternalLink";
762
- } & {
763
- url: string;
764
- } & {
765
- kind?: "web";
766
- target?: string | null | undefined;
767
- preview?: {
768
- title?: string;
769
- } | null | undefined;
770
- });
771
- start: number;
772
- end: number;
773
- type: "hyperlink";
774
- } | {
775
- data: string;
776
- start: number;
777
- end: number;
778
- type: "label";
779
- } | {
780
- start: number;
781
- end: number;
782
- type: "strong" | "em" | "list-item";
783
- })[], unknown>;
784
- }>]>;
785
- }>, t.PartialC<{
786
- label: t.StringC;
787
- direction: t.StringC;
788
- }>]>>]>>;
789
- }>>, t.ExactC<t.TypeC<{
790
- __TYPE__: t.LiteralC<"SeparatorContent">;
791
- }>>]>]>>;
792
- }>>>;
793
- }>>]>;
330
+ }>>]>, t.Type<GroupContent, GroupContent, unknown>]>;
794
331
  export declare type SlicePrimaryContent = t.TypeOf<typeof SlicePrimaryContent>;
795
332
  export declare type SlicePrimaryContentType = SlicePrimaryContent["__TYPE__"];
796
333
  export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
@@ -974,45 +511,7 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
974
511
  alt?: string | null;
975
512
  provider?: string | null | undefined;
976
513
  } & {
977
- linkTo?: ({
978
- __TYPE__: "ImageLink";
979
- } & {
980
- id: string;
981
- url: string;
982
- height: string;
983
- width: string;
984
- size: string;
985
- name: string;
986
- kind: string;
987
- } & {
988
- date?: string | null | undefined;
989
- }) | ({
990
- id: string;
991
- url: string;
992
- name: string;
993
- kind: string;
994
- size: string;
995
- } & {
996
- date?: string | null | undefined;
997
- } & {
998
- __TYPE__: "FileLink";
999
- } & {
1000
- size?: string;
1001
- }) | ({
1002
- __TYPE__: "DocumentLink";
1003
- } & {
1004
- id: string;
1005
- }) | ({
1006
- __TYPE__: "ExternalLink";
1007
- } & {
1008
- url: string;
1009
- } & {
1010
- kind?: "web";
1011
- target?: string | null | undefined;
1012
- preview?: {
1013
- title?: string;
1014
- } | null | undefined;
1015
- }) | null | undefined;
514
+ linkTo?: any;
1016
515
  };
1017
516
  } & {
1018
517
  label?: string | null | undefined;
@@ -1106,325 +605,7 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
1106
605
  }))[];
1107
606
  }> | import("fp-ts/lib/Either").Right<{
1108
607
  __TYPE__: "SeparatorContent";
1109
- }> | t.Validation<{
1110
- __TYPE__: "GroupContentType";
1111
- value: {
1112
- __TYPE__: "GroupItemContent";
1113
- value: [string, {
1114
- type: string;
1115
- __TYPE__: "EmptyContent";
1116
- } | {
1117
- __TYPE__: "BooleanContent";
1118
- value: boolean;
1119
- } | ({
1120
- embed_url: string;
1121
- type: string;
1122
- } & {
1123
- version?: string | number | null;
1124
- title?: string | null | undefined;
1125
- author_name?: string | null | undefined;
1126
- author_url?: string | null | undefined;
1127
- provider_name?: string | null | undefined;
1128
- provider_url?: string | null | undefined;
1129
- cache_age?: string | number | null;
1130
- thumbnail_url?: string | null | undefined;
1131
- thumbnail_width?: number | null | undefined;
1132
- thumbnail_height?: number | null | undefined;
1133
- html?: string | null | undefined;
1134
- } & {
1135
- __TYPE__: "EmbedContent";
1136
- all: unknown;
1137
- }) | {
1138
- type: "Color";
1139
- value: string;
1140
- __TYPE__: "FieldContent";
1141
- } | {
1142
- type: "Date";
1143
- value: string;
1144
- __TYPE__: "FieldContent";
1145
- } | {
1146
- type: "Number";
1147
- value: string;
1148
- __TYPE__: "FieldContent";
1149
- } | {
1150
- type: "Range";
1151
- value: string;
1152
- __TYPE__: "FieldContent";
1153
- } | {
1154
- type: "Select";
1155
- value: string;
1156
- __TYPE__: "FieldContent";
1157
- } | {
1158
- type: "Text";
1159
- value: string;
1160
- __TYPE__: "FieldContent";
1161
- } | {
1162
- type: "Timestamp";
1163
- value: string;
1164
- __TYPE__: "FieldContent";
1165
- } | ({
1166
- position: {
1167
- lat: number;
1168
- lng: number;
1169
- };
1170
- } & {
1171
- __TYPE__: "GeoPointContent";
1172
- }) | ({
1173
- origin: {
1174
- id: string;
1175
- url: string;
1176
- width: number;
1177
- height: number;
1178
- };
1179
- width: number;
1180
- height: number;
1181
- edit: {
1182
- zoom: number;
1183
- crop: {
1184
- x: number;
1185
- y: number;
1186
- };
1187
- background: string;
1188
- };
1189
- } & {
1190
- url?: string;
1191
- credits?: string | null;
1192
- alt?: string | null;
1193
- provider?: string | null | undefined;
1194
- } & {
1195
- thumbnails?: {
1196
- [x: string]: {
1197
- origin: {
1198
- id: string;
1199
- url: string;
1200
- width: number;
1201
- height: number;
1202
- };
1203
- width: number;
1204
- height: number;
1205
- edit: {
1206
- zoom: number;
1207
- crop: {
1208
- x: number;
1209
- y: number;
1210
- };
1211
- background: string;
1212
- };
1213
- } & {
1214
- url?: string;
1215
- credits?: string | null;
1216
- alt?: string | null;
1217
- provider?: string | null | undefined;
1218
- };
1219
- };
1220
- } & {
1221
- __TYPE__: "ImageContent";
1222
- }) | {
1223
- __TYPE__: "IntegrationFieldsContent";
1224
- value: string;
1225
- } | {
1226
- __TYPE__: "LinkContent";
1227
- value: ({
1228
- __TYPE__: "ImageLink";
1229
- } & {
1230
- id: string;
1231
- url: string;
1232
- height: string;
1233
- width: string;
1234
- size: string;
1235
- name: string;
1236
- kind: string;
1237
- } & {
1238
- date?: string | null | undefined;
1239
- }) | ({
1240
- id: string;
1241
- url: string;
1242
- name: string;
1243
- kind: string;
1244
- size: string;
1245
- } & {
1246
- date?: string | null | undefined;
1247
- } & {
1248
- __TYPE__: "FileLink";
1249
- } & {
1250
- size?: string;
1251
- }) | ({
1252
- __TYPE__: "DocumentLink";
1253
- } & {
1254
- id: string;
1255
- }) | ({
1256
- __TYPE__: "ExternalLink";
1257
- } & {
1258
- url: string;
1259
- } & {
1260
- kind?: "web";
1261
- target?: string | null | undefined;
1262
- preview?: {
1263
- title?: string;
1264
- } | null | undefined;
1265
- });
1266
- } | {
1267
- __TYPE__: "StructuredTextContent";
1268
- value: (({
1269
- type: "image";
1270
- data: {
1271
- origin: {
1272
- id: string;
1273
- url: string;
1274
- width: number;
1275
- height: number;
1276
- };
1277
- width: number;
1278
- height: number;
1279
- edit: {
1280
- zoom: number;
1281
- crop: {
1282
- x: number;
1283
- y: number;
1284
- };
1285
- background: string;
1286
- };
1287
- } & {
1288
- url?: string;
1289
- credits?: string | null;
1290
- alt?: string | null;
1291
- provider?: string | null | undefined;
1292
- } & {
1293
- linkTo?: ({
1294
- __TYPE__: "ImageLink";
1295
- } & {
1296
- id: string;
1297
- url: string;
1298
- height: string;
1299
- width: string;
1300
- size: string;
1301
- name: string;
1302
- kind: string;
1303
- } & {
1304
- date?: string | null | undefined;
1305
- }) | ({
1306
- id: string;
1307
- url: string;
1308
- name: string;
1309
- kind: string;
1310
- size: string;
1311
- } & {
1312
- date?: string | null | undefined;
1313
- } & {
1314
- __TYPE__: "FileLink";
1315
- } & {
1316
- size?: string;
1317
- }) | ({
1318
- __TYPE__: "DocumentLink";
1319
- } & {
1320
- id: string;
1321
- }) | ({
1322
- __TYPE__: "ExternalLink";
1323
- } & {
1324
- url: string;
1325
- } & {
1326
- kind?: "web";
1327
- target?: string | null | undefined;
1328
- preview?: {
1329
- title?: string;
1330
- } | null | undefined;
1331
- }) | null | undefined;
1332
- };
1333
- } & {
1334
- label?: string | null | undefined;
1335
- direction?: string | null | undefined;
1336
- }) | ({
1337
- type: "embed";
1338
- data: {
1339
- embed_url: string;
1340
- type: string;
1341
- } & {
1342
- version?: string | number | null;
1343
- title?: string | null | undefined;
1344
- author_name?: string | null | undefined;
1345
- author_url?: string | null | undefined;
1346
- provider_name?: string | null | undefined;
1347
- provider_url?: string | null | undefined;
1348
- cache_age?: string | number | null;
1349
- thumbnail_url?: string | null | undefined;
1350
- thumbnail_width?: number | null | undefined;
1351
- thumbnail_height?: number | null | undefined;
1352
- html?: string | null | undefined;
1353
- } & {
1354
- __TYPE__: "EmbedContent";
1355
- all: unknown;
1356
- };
1357
- } & {
1358
- label?: string | null | undefined;
1359
- direction?: string | null | undefined;
1360
- }) | ({
1361
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1362
- content: {
1363
- text: string;
1364
- } & {
1365
- spans?: ({
1366
- data: ({
1367
- __TYPE__: "ImageLink";
1368
- } & {
1369
- id: string;
1370
- url: string;
1371
- height: string;
1372
- width: string;
1373
- size: string;
1374
- name: string;
1375
- kind: string;
1376
- } & {
1377
- date?: string | null | undefined;
1378
- }) | ({
1379
- id: string;
1380
- url: string;
1381
- name: string;
1382
- kind: string;
1383
- size: string;
1384
- } & {
1385
- date?: string | null | undefined;
1386
- } & {
1387
- __TYPE__: "FileLink";
1388
- } & {
1389
- size?: string;
1390
- }) | ({
1391
- __TYPE__: "DocumentLink";
1392
- } & {
1393
- id: string;
1394
- }) | ({
1395
- __TYPE__: "ExternalLink";
1396
- } & {
1397
- url: string;
1398
- } & {
1399
- kind?: "web";
1400
- target?: string | null | undefined;
1401
- preview?: {
1402
- title?: string;
1403
- } | null | undefined;
1404
- });
1405
- start: number;
1406
- end: number;
1407
- type: "hyperlink";
1408
- } | {
1409
- data: string;
1410
- start: number;
1411
- end: number;
1412
- type: "label";
1413
- } | {
1414
- start: number;
1415
- end: number;
1416
- type: "strong" | "em" | "list-item";
1417
- })[];
1418
- };
1419
- } & {
1420
- label?: string;
1421
- direction?: string;
1422
- }))[];
1423
- } | {
1424
- __TYPE__: "SeparatorContent";
1425
- }][];
1426
- }[];
1427
- }> | undefined;
608
+ }> | t.Validation<GroupContent> | undefined;
1428
609
  encode(value: SlicePrimaryContent): import("../../../LegacyContentCtx").WithTypes<unknown> | undefined;
1429
610
  };
1430
611
  export declare const isSlicePrimaryContent: (u: unknown) => u is {
@@ -1607,45 +788,7 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
1607
788
  alt?: string | null;
1608
789
  provider?: string | null | undefined;
1609
790
  } & {
1610
- linkTo?: ({
1611
- __TYPE__: "ImageLink";
1612
- } & {
1613
- id: string;
1614
- url: string;
1615
- height: string;
1616
- width: string;
1617
- size: string;
1618
- name: string;
1619
- kind: string;
1620
- } & {
1621
- date?: string | null | undefined;
1622
- }) | ({
1623
- id: string;
1624
- url: string;
1625
- name: string;
1626
- kind: string;
1627
- size: string;
1628
- } & {
1629
- date?: string | null | undefined;
1630
- } & {
1631
- __TYPE__: "FileLink";
1632
- } & {
1633
- size?: string;
1634
- }) | ({
1635
- __TYPE__: "DocumentLink";
1636
- } & {
1637
- id: string;
1638
- }) | ({
1639
- __TYPE__: "ExternalLink";
1640
- } & {
1641
- url: string;
1642
- } & {
1643
- kind?: "web";
1644
- target?: string | null | undefined;
1645
- preview?: {
1646
- title?: string;
1647
- } | null | undefined;
1648
- }) | null | undefined;
791
+ linkTo?: any;
1649
792
  };
1650
793
  } & {
1651
794
  label?: string | null | undefined;
@@ -1739,322 +882,4 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
1739
882
  }))[];
1740
883
  } | {
1741
884
  __TYPE__: "SeparatorContent";
1742
- } | {
1743
- __TYPE__: "GroupContentType";
1744
- value: {
1745
- __TYPE__: "GroupItemContent";
1746
- value: [string, {
1747
- type: string;
1748
- __TYPE__: "EmptyContent";
1749
- } | {
1750
- __TYPE__: "BooleanContent";
1751
- value: boolean;
1752
- } | ({
1753
- embed_url: string;
1754
- type: string;
1755
- } & {
1756
- version?: string | number | null;
1757
- title?: string | null | undefined;
1758
- author_name?: string | null | undefined;
1759
- author_url?: string | null | undefined;
1760
- provider_name?: string | null | undefined;
1761
- provider_url?: string | null | undefined;
1762
- cache_age?: string | number | null;
1763
- thumbnail_url?: string | null | undefined;
1764
- thumbnail_width?: number | null | undefined;
1765
- thumbnail_height?: number | null | undefined;
1766
- html?: string | null | undefined;
1767
- } & {
1768
- __TYPE__: "EmbedContent";
1769
- all: unknown;
1770
- }) | {
1771
- type: "Color";
1772
- value: string;
1773
- __TYPE__: "FieldContent";
1774
- } | {
1775
- type: "Date";
1776
- value: string;
1777
- __TYPE__: "FieldContent";
1778
- } | {
1779
- type: "Number";
1780
- value: string;
1781
- __TYPE__: "FieldContent";
1782
- } | {
1783
- type: "Range";
1784
- value: string;
1785
- __TYPE__: "FieldContent";
1786
- } | {
1787
- type: "Select";
1788
- value: string;
1789
- __TYPE__: "FieldContent";
1790
- } | {
1791
- type: "Text";
1792
- value: string;
1793
- __TYPE__: "FieldContent";
1794
- } | {
1795
- type: "Timestamp";
1796
- value: string;
1797
- __TYPE__: "FieldContent";
1798
- } | ({
1799
- position: {
1800
- lat: number;
1801
- lng: number;
1802
- };
1803
- } & {
1804
- __TYPE__: "GeoPointContent";
1805
- }) | ({
1806
- origin: {
1807
- id: string;
1808
- url: string;
1809
- width: number;
1810
- height: number;
1811
- };
1812
- width: number;
1813
- height: number;
1814
- edit: {
1815
- zoom: number;
1816
- crop: {
1817
- x: number;
1818
- y: number;
1819
- };
1820
- background: string;
1821
- };
1822
- } & {
1823
- url?: string;
1824
- credits?: string | null;
1825
- alt?: string | null;
1826
- provider?: string | null | undefined;
1827
- } & {
1828
- thumbnails?: {
1829
- [x: string]: {
1830
- origin: {
1831
- id: string;
1832
- url: string;
1833
- width: number;
1834
- height: number;
1835
- };
1836
- width: number;
1837
- height: number;
1838
- edit: {
1839
- zoom: number;
1840
- crop: {
1841
- x: number;
1842
- y: number;
1843
- };
1844
- background: string;
1845
- };
1846
- } & {
1847
- url?: string;
1848
- credits?: string | null;
1849
- alt?: string | null;
1850
- provider?: string | null | undefined;
1851
- };
1852
- };
1853
- } & {
1854
- __TYPE__: "ImageContent";
1855
- }) | {
1856
- __TYPE__: "IntegrationFieldsContent";
1857
- value: string;
1858
- } | {
1859
- __TYPE__: "LinkContent";
1860
- value: ({
1861
- __TYPE__: "ImageLink";
1862
- } & {
1863
- id: string;
1864
- url: string;
1865
- height: string;
1866
- width: string;
1867
- size: string;
1868
- name: string;
1869
- kind: string;
1870
- } & {
1871
- date?: string | null | undefined;
1872
- }) | ({
1873
- id: string;
1874
- url: string;
1875
- name: string;
1876
- kind: string;
1877
- size: string;
1878
- } & {
1879
- date?: string | null | undefined;
1880
- } & {
1881
- __TYPE__: "FileLink";
1882
- } & {
1883
- size?: string;
1884
- }) | ({
1885
- __TYPE__: "DocumentLink";
1886
- } & {
1887
- id: string;
1888
- }) | ({
1889
- __TYPE__: "ExternalLink";
1890
- } & {
1891
- url: string;
1892
- } & {
1893
- kind?: "web";
1894
- target?: string | null | undefined;
1895
- preview?: {
1896
- title?: string;
1897
- } | null | undefined;
1898
- });
1899
- } | {
1900
- __TYPE__: "StructuredTextContent";
1901
- value: (({
1902
- type: "image";
1903
- data: {
1904
- origin: {
1905
- id: string;
1906
- url: string;
1907
- width: number;
1908
- height: number;
1909
- };
1910
- width: number;
1911
- height: number;
1912
- edit: {
1913
- zoom: number;
1914
- crop: {
1915
- x: number;
1916
- y: number;
1917
- };
1918
- background: string;
1919
- };
1920
- } & {
1921
- url?: string;
1922
- credits?: string | null;
1923
- alt?: string | null;
1924
- provider?: string | null | undefined;
1925
- } & {
1926
- linkTo?: ({
1927
- __TYPE__: "ImageLink";
1928
- } & {
1929
- id: string;
1930
- url: string;
1931
- height: string;
1932
- width: string;
1933
- size: string;
1934
- name: string;
1935
- kind: string;
1936
- } & {
1937
- date?: string | null | undefined;
1938
- }) | ({
1939
- id: string;
1940
- url: string;
1941
- name: string;
1942
- kind: string;
1943
- size: string;
1944
- } & {
1945
- date?: string | null | undefined;
1946
- } & {
1947
- __TYPE__: "FileLink";
1948
- } & {
1949
- size?: string;
1950
- }) | ({
1951
- __TYPE__: "DocumentLink";
1952
- } & {
1953
- id: string;
1954
- }) | ({
1955
- __TYPE__: "ExternalLink";
1956
- } & {
1957
- url: string;
1958
- } & {
1959
- kind?: "web";
1960
- target?: string | null | undefined;
1961
- preview?: {
1962
- title?: string;
1963
- } | null | undefined;
1964
- }) | null | undefined;
1965
- };
1966
- } & {
1967
- label?: string | null | undefined;
1968
- direction?: string | null | undefined;
1969
- }) | ({
1970
- type: "embed";
1971
- data: {
1972
- embed_url: string;
1973
- type: string;
1974
- } & {
1975
- version?: string | number | null;
1976
- title?: string | null | undefined;
1977
- author_name?: string | null | undefined;
1978
- author_url?: string | null | undefined;
1979
- provider_name?: string | null | undefined;
1980
- provider_url?: string | null | undefined;
1981
- cache_age?: string | number | null;
1982
- thumbnail_url?: string | null | undefined;
1983
- thumbnail_width?: number | null | undefined;
1984
- thumbnail_height?: number | null | undefined;
1985
- html?: string | null | undefined;
1986
- } & {
1987
- __TYPE__: "EmbedContent";
1988
- all: unknown;
1989
- };
1990
- } & {
1991
- label?: string | null | undefined;
1992
- direction?: string | null | undefined;
1993
- }) | ({
1994
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1995
- content: {
1996
- text: string;
1997
- } & {
1998
- spans?: ({
1999
- data: ({
2000
- __TYPE__: "ImageLink";
2001
- } & {
2002
- id: string;
2003
- url: string;
2004
- height: string;
2005
- width: string;
2006
- size: string;
2007
- name: string;
2008
- kind: string;
2009
- } & {
2010
- date?: string | null | undefined;
2011
- }) | ({
2012
- id: string;
2013
- url: string;
2014
- name: string;
2015
- kind: string;
2016
- size: string;
2017
- } & {
2018
- date?: string | null | undefined;
2019
- } & {
2020
- __TYPE__: "FileLink";
2021
- } & {
2022
- size?: string;
2023
- }) | ({
2024
- __TYPE__: "DocumentLink";
2025
- } & {
2026
- id: string;
2027
- }) | ({
2028
- __TYPE__: "ExternalLink";
2029
- } & {
2030
- url: string;
2031
- } & {
2032
- kind?: "web";
2033
- target?: string | null | undefined;
2034
- preview?: {
2035
- title?: string;
2036
- } | null | undefined;
2037
- });
2038
- start: number;
2039
- end: number;
2040
- type: "hyperlink";
2041
- } | {
2042
- data: string;
2043
- start: number;
2044
- end: number;
2045
- type: "label";
2046
- } | {
2047
- start: number;
2048
- end: number;
2049
- type: "strong" | "em" | "list-item";
2050
- })[];
2051
- };
2052
- } & {
2053
- label?: string;
2054
- direction?: string;
2055
- }))[];
2056
- } | {
2057
- __TYPE__: "SeparatorContent";
2058
- }][];
2059
- }[];
2060
- };
885
+ } | GroupContent;