@prismicio/types-internal 2.5.0 → 2.6.0

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.
@@ -1,7 +1,8 @@
1
1
  import * as t from "io-ts";
2
2
  import type { ContentPath, TraverseSliceContentFn, TraverseWidgetContentFn } from "../../../../_internal/utils";
3
- import type { NestableWidget, NestedGroup, VariationFields } from "../../../../customtypes";
3
+ import type { Group, NestableWidget, VariationFields } from "../../../../customtypes";
4
4
  import type { LegacyContentCtx } from "../../../LegacyContentCtx";
5
+ import { GroupContent } from "../../GroupContent";
5
6
  import type { SharedSliceItemContent, SimpleSliceItemContent } from "../SliceItem";
6
7
  export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
7
8
  type: t.StringC;
@@ -405,415 +406,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
405
406
  }>]>>]>>;
406
407
  }>>, t.ExactC<t.TypeC<{
407
408
  __TYPE__: t.LiteralC<"SeparatorContent">;
408
- }>>]>, t.ExactC<t.TypeC<{
409
- __TYPE__: t.LiteralC<"GroupContentType">;
410
- value: t.ArrayC<t.ExactC<t.TypeC<{
411
- __TYPE__: t.LiteralC<"GroupItemContent">;
412
- value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
413
- type: t.StringC;
414
- __TYPE__: t.LiteralC<"EmptyContent">;
415
- }>>, t.ExactC<t.TypeC<{
416
- __TYPE__: t.LiteralC<"BooleanContent">;
417
- value: t.BooleanC;
418
- }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
419
- embed_url: t.StringC;
420
- type: t.StringC;
421
- }>, t.PartialC<{
422
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
423
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
424
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
425
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
426
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
427
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
428
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
429
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
430
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
431
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
432
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
433
- }>]>>, t.ExactC<t.TypeC<{
434
- __TYPE__: t.LiteralC<"EmbedContent">;
435
- all: t.UnknownC;
436
- }>>]>, t.ExactC<t.TypeC<{
437
- type: t.LiteralC<"Text">;
438
- value: t.Type<string, string, unknown>;
439
- __TYPE__: t.LiteralC<"FieldContent">;
440
- }>>, t.ExactC<t.TypeC<{
441
- type: t.LiteralC<"Timestamp">;
442
- value: t.Type<string, string, unknown>;
443
- __TYPE__: t.LiteralC<"FieldContent">;
444
- }>>, t.ExactC<t.TypeC<{
445
- type: t.LiteralC<"Select">;
446
- value: t.Type<string, string, unknown>;
447
- __TYPE__: t.LiteralC<"FieldContent">;
448
- }>>, t.ExactC<t.TypeC<{
449
- type: t.LiteralC<"Range">;
450
- value: t.Type<string, string, unknown>;
451
- __TYPE__: t.LiteralC<"FieldContent">;
452
- }>>, t.ExactC<t.TypeC<{
453
- type: t.LiteralC<"Number">;
454
- value: t.Type<string, string, unknown>;
455
- __TYPE__: t.LiteralC<"FieldContent">;
456
- }>>, t.ExactC<t.TypeC<{
457
- type: t.LiteralC<"Date">;
458
- value: t.Type<string, string, unknown>;
459
- __TYPE__: t.LiteralC<"FieldContent">;
460
- }>>, t.ExactC<t.TypeC<{
461
- type: t.LiteralC<"Color">;
462
- value: t.Type<string, string, unknown>;
463
- __TYPE__: t.LiteralC<"FieldContent">;
464
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
465
- position: t.ExactC<t.TypeC<{
466
- lat: t.NumberC;
467
- lng: t.NumberC;
468
- }>>;
469
- }>>, t.ExactC<t.TypeC<{
470
- __TYPE__: t.LiteralC<"GeoPointContent">;
471
- }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
472
- origin: t.ExactC<t.TypeC<{
473
- id: t.StringC;
474
- url: t.StringC;
475
- width: t.NumberC;
476
- height: t.NumberC;
477
- }>>;
478
- width: t.NumberC;
479
- height: t.NumberC;
480
- edit: t.TypeC<{
481
- zoom: t.NumberC;
482
- crop: t.TypeC<{
483
- x: t.NumberC;
484
- y: t.NumberC;
485
- }>;
486
- background: t.StringC;
487
- }>;
488
- }>, t.PartialC<{
489
- url: t.StringC;
490
- credits: t.Type<string | null, string | null, unknown>;
491
- alt: t.Type<string | null, string | null, unknown>;
492
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
493
- }>]>>, t.PartialC<{
494
- thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
495
- origin: t.ExactC<t.TypeC<{
496
- id: t.StringC;
497
- url: t.StringC;
498
- width: t.NumberC;
499
- height: t.NumberC;
500
- }>>;
501
- width: t.NumberC;
502
- height: t.NumberC;
503
- edit: t.TypeC<{
504
- zoom: t.NumberC;
505
- crop: t.TypeC<{
506
- x: t.NumberC;
507
- y: t.NumberC;
508
- }>;
509
- background: t.StringC;
510
- }>;
511
- }>, t.PartialC<{
512
- url: t.StringC;
513
- credits: t.Type<string | null, string | null, unknown>;
514
- alt: t.Type<string | null, string | null, unknown>;
515
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
516
- }>]>>>;
517
- }>]>, t.ExactC<t.TypeC<{
518
- __TYPE__: t.LiteralC<"ImageContent">;
519
- }>>]>, t.ExactC<t.TypeC<{
520
- __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
521
- value: t.StringC;
522
- }>>, t.ExactC<t.TypeC<{
523
- __TYPE__: t.LiteralC<"LinkContent">;
524
- value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
525
- __TYPE__: t.LiteralC<"ImageLink">;
526
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
527
- id: t.StringC;
528
- url: t.StringC;
529
- height: t.StringC;
530
- width: t.StringC;
531
- size: t.StringC;
532
- name: t.StringC;
533
- kind: t.StringC;
534
- }>, t.PartialC<{
535
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
536
- }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
537
- id: t.StringC;
538
- url: t.StringC;
539
- name: t.StringC;
540
- kind: t.StringC;
541
- size: t.StringC;
542
- }>, t.PartialC<{
543
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
544
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
545
- __TYPE__: t.LiteralC<"FileLink">;
546
- }>, t.PartialC<{
547
- size: t.StringC;
548
- }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
549
- __TYPE__: t.LiteralC<"DocumentLink">;
550
- }>>, t.ExactC<t.TypeC<{
551
- id: t.Type<string, string, unknown>;
552
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
553
- __TYPE__: t.LiteralC<"ExternalLink">;
554
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
555
- url: t.StringC;
556
- }>, t.PartialC<{
557
- kind: t.LiteralC<"web">;
558
- target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
559
- preview: t.UnionC<[t.Type<{
560
- title?: string;
561
- }, {
562
- title?: string;
563
- }, unknown>, t.NullC, t.UndefinedC]>;
564
- }>]>>]>]>;
565
- }>>, t.ExactC<t.TypeC<{
566
- __TYPE__: t.LiteralC<"StructuredTextContent">;
567
- value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
568
- type: t.LiteralC<"image">;
569
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
570
- origin: t.ExactC<t.TypeC<{
571
- id: t.StringC;
572
- url: t.StringC;
573
- width: t.NumberC;
574
- height: t.NumberC;
575
- }>>;
576
- width: t.NumberC;
577
- height: t.NumberC;
578
- edit: t.TypeC<{
579
- zoom: t.NumberC;
580
- crop: t.TypeC<{
581
- x: t.NumberC;
582
- y: t.NumberC;
583
- }>;
584
- background: t.StringC;
585
- }>;
586
- }>, t.PartialC<{
587
- url: t.StringC;
588
- credits: t.Type<string | null, string | null, unknown>;
589
- alt: t.Type<string | null, string | null, unknown>;
590
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
591
- }>]>>, t.PartialC<{
592
- linkTo: t.UnionC<[t.Type<({
593
- __TYPE__: "ImageLink";
594
- } & {
595
- id: string;
596
- url: string;
597
- height: string;
598
- width: string;
599
- size: string;
600
- name: string;
601
- kind: string;
602
- } & {
603
- date?: string | null | undefined;
604
- }) | ({
605
- id: string;
606
- url: string;
607
- name: string;
608
- kind: string;
609
- size: string;
610
- } & {
611
- date?: string | null | undefined;
612
- } & {
613
- __TYPE__: "FileLink";
614
- } & {
615
- size?: string;
616
- }) | ({
617
- __TYPE__: "DocumentLink";
618
- } & {
619
- id: string;
620
- }) | ({
621
- __TYPE__: "ExternalLink";
622
- } & {
623
- url: string;
624
- } & {
625
- kind?: "web";
626
- target?: string | null | undefined;
627
- preview?: {
628
- title?: string;
629
- } | null | undefined;
630
- }), ({
631
- __TYPE__: "ImageLink";
632
- } & {
633
- id: string;
634
- url: string;
635
- height: string;
636
- width: string;
637
- size: string;
638
- name: string;
639
- kind: string;
640
- } & {
641
- date?: string | null | undefined;
642
- }) | ({
643
- id: string;
644
- url: string;
645
- name: string;
646
- kind: string;
647
- size: string;
648
- } & {
649
- date?: string | null | undefined;
650
- } & {
651
- __TYPE__: "FileLink";
652
- } & {
653
- size?: string;
654
- }) | ({
655
- __TYPE__: "DocumentLink";
656
- } & {
657
- id: string;
658
- }) | ({
659
- __TYPE__: "ExternalLink";
660
- } & {
661
- url: string;
662
- } & {
663
- kind?: "web";
664
- target?: string | null | undefined;
665
- preview?: {
666
- title?: string;
667
- } | null | undefined;
668
- }), unknown>, t.NullC, t.UndefinedC]>;
669
- }>]>;
670
- }>, t.PartialC<{
671
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
672
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
673
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
674
- type: t.LiteralC<"embed">;
675
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
676
- embed_url: t.StringC;
677
- type: t.StringC;
678
- }>, t.PartialC<{
679
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
680
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
681
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
682
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
683
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
684
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
685
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
686
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
687
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
688
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
689
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
690
- }>]>>, t.ExactC<t.TypeC<{
691
- __TYPE__: t.LiteralC<"EmbedContent">;
692
- all: t.UnknownC;
693
- }>>]>;
694
- }>, t.PartialC<{
695
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
696
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
697
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
698
- 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>;
699
- content: t.IntersectionC<[t.TypeC<{
700
- text: t.StringC;
701
- }>, t.PartialC<{
702
- spans: t.Type<({
703
- data: ({
704
- __TYPE__: "ImageLink";
705
- } & {
706
- id: string;
707
- url: string;
708
- height: string;
709
- width: string;
710
- size: string;
711
- name: string;
712
- kind: string;
713
- } & {
714
- date?: string | null | undefined;
715
- }) | ({
716
- id: string;
717
- url: string;
718
- name: string;
719
- kind: string;
720
- size: string;
721
- } & {
722
- date?: string | null | undefined;
723
- } & {
724
- __TYPE__: "FileLink";
725
- } & {
726
- size?: string;
727
- }) | ({
728
- __TYPE__: "DocumentLink";
729
- } & {
730
- id: string;
731
- }) | ({
732
- __TYPE__: "ExternalLink";
733
- } & {
734
- url: string;
735
- } & {
736
- kind?: "web";
737
- target?: string | null | undefined;
738
- preview?: {
739
- title?: string;
740
- } | null | undefined;
741
- });
742
- start: number;
743
- end: number;
744
- type: "hyperlink";
745
- } | {
746
- data: string;
747
- start: number;
748
- end: number;
749
- type: "label";
750
- } | {
751
- start: number;
752
- end: number;
753
- type: "strong" | "em" | "list-item";
754
- })[], ({
755
- data: ({
756
- __TYPE__: "ImageLink";
757
- } & {
758
- id: string;
759
- url: string;
760
- height: string;
761
- width: string;
762
- size: string;
763
- name: string;
764
- kind: string;
765
- } & {
766
- date?: string | null | undefined;
767
- }) | ({
768
- id: string;
769
- url: string;
770
- name: string;
771
- kind: string;
772
- size: string;
773
- } & {
774
- date?: string | null | undefined;
775
- } & {
776
- __TYPE__: "FileLink";
777
- } & {
778
- size?: string;
779
- }) | ({
780
- __TYPE__: "DocumentLink";
781
- } & {
782
- id: string;
783
- }) | ({
784
- __TYPE__: "ExternalLink";
785
- } & {
786
- url: string;
787
- } & {
788
- kind?: "web";
789
- target?: string | null | undefined;
790
- preview?: {
791
- title?: string;
792
- } | null | undefined;
793
- });
794
- start: number;
795
- end: number;
796
- type: "hyperlink";
797
- } | {
798
- data: string;
799
- start: number;
800
- end: number;
801
- type: "label";
802
- } | {
803
- start: number;
804
- end: number;
805
- type: "strong" | "em" | "list-item";
806
- })[], unknown>;
807
- }>]>;
808
- }>, t.PartialC<{
809
- label: t.StringC;
810
- direction: t.StringC;
811
- }>]>>]>>;
812
- }>>, t.ExactC<t.TypeC<{
813
- __TYPE__: t.LiteralC<"SeparatorContent">;
814
- }>>]>]>>;
815
- }>>>;
816
- }>>]>;
409
+ }>>]>, t.Type<GroupContent, GroupContent, unknown>]>;
817
410
  export declare type SimpleSliceContent = t.TypeOf<typeof SimpleSliceContent>;
818
411
  export declare const isSimpleSliceContent: (u: unknown) => u is {
819
412
  type: string;
@@ -1127,325 +720,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
1127
720
  }))[];
1128
721
  } | {
1129
722
  __TYPE__: "SeparatorContent";
1130
- } | {
1131
- __TYPE__: "GroupContentType";
1132
- value: {
1133
- __TYPE__: "GroupItemContent";
1134
- value: [string, {
1135
- type: string;
1136
- __TYPE__: "EmptyContent";
1137
- } | {
1138
- __TYPE__: "BooleanContent";
1139
- value: boolean;
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
- all: unknown;
1158
- }) | {
1159
- type: "Color";
1160
- value: string;
1161
- __TYPE__: "FieldContent";
1162
- } | {
1163
- type: "Date";
1164
- value: string;
1165
- __TYPE__: "FieldContent";
1166
- } | {
1167
- type: "Number";
1168
- value: string;
1169
- __TYPE__: "FieldContent";
1170
- } | {
1171
- type: "Range";
1172
- value: string;
1173
- __TYPE__: "FieldContent";
1174
- } | {
1175
- type: "Select";
1176
- value: string;
1177
- __TYPE__: "FieldContent";
1178
- } | {
1179
- type: "Text";
1180
- value: string;
1181
- __TYPE__: "FieldContent";
1182
- } | {
1183
- type: "Timestamp";
1184
- value: string;
1185
- __TYPE__: "FieldContent";
1186
- } | ({
1187
- position: {
1188
- lat: number;
1189
- lng: number;
1190
- };
1191
- } & {
1192
- __TYPE__: "GeoPointContent";
1193
- }) | ({
1194
- origin: {
1195
- id: string;
1196
- url: string;
1197
- width: number;
1198
- height: number;
1199
- };
1200
- width: number;
1201
- height: number;
1202
- edit: {
1203
- zoom: number;
1204
- crop: {
1205
- x: number;
1206
- y: number;
1207
- };
1208
- background: string;
1209
- };
1210
- } & {
1211
- url?: string;
1212
- credits?: string | null;
1213
- alt?: string | null;
1214
- provider?: string | null | undefined;
1215
- } & {
1216
- thumbnails?: {
1217
- [x: string]: {
1218
- origin: {
1219
- id: string;
1220
- url: string;
1221
- width: number;
1222
- height: number;
1223
- };
1224
- width: number;
1225
- height: number;
1226
- edit: {
1227
- zoom: number;
1228
- crop: {
1229
- x: number;
1230
- y: number;
1231
- };
1232
- background: string;
1233
- };
1234
- } & {
1235
- url?: string;
1236
- credits?: string | null;
1237
- alt?: string | null;
1238
- provider?: string | null | undefined;
1239
- };
1240
- };
1241
- } & {
1242
- __TYPE__: "ImageContent";
1243
- }) | {
1244
- __TYPE__: "IntegrationFieldsContent";
1245
- value: string;
1246
- } | {
1247
- __TYPE__: "LinkContent";
1248
- value: ({
1249
- __TYPE__: "ImageLink";
1250
- } & {
1251
- id: string;
1252
- url: string;
1253
- height: string;
1254
- width: string;
1255
- size: string;
1256
- name: string;
1257
- kind: string;
1258
- } & {
1259
- date?: string | null | undefined;
1260
- }) | ({
1261
- id: string;
1262
- url: string;
1263
- name: string;
1264
- kind: string;
1265
- size: string;
1266
- } & {
1267
- date?: string | null | undefined;
1268
- } & {
1269
- __TYPE__: "FileLink";
1270
- } & {
1271
- size?: string;
1272
- }) | ({
1273
- __TYPE__: "DocumentLink";
1274
- } & {
1275
- id: string;
1276
- }) | ({
1277
- __TYPE__: "ExternalLink";
1278
- } & {
1279
- url: string;
1280
- } & {
1281
- kind?: "web";
1282
- target?: string | null | undefined;
1283
- preview?: {
1284
- title?: string;
1285
- } | null | undefined;
1286
- });
1287
- } | {
1288
- __TYPE__: "StructuredTextContent";
1289
- value: (({
1290
- type: "image";
1291
- data: {
1292
- origin: {
1293
- id: string;
1294
- url: string;
1295
- width: number;
1296
- height: number;
1297
- };
1298
- width: number;
1299
- height: number;
1300
- edit: {
1301
- zoom: number;
1302
- crop: {
1303
- x: number;
1304
- y: number;
1305
- };
1306
- background: string;
1307
- };
1308
- } & {
1309
- url?: string;
1310
- credits?: string | null;
1311
- alt?: string | null;
1312
- provider?: string | null | undefined;
1313
- } & {
1314
- linkTo?: ({
1315
- __TYPE__: "ImageLink";
1316
- } & {
1317
- id: string;
1318
- url: string;
1319
- height: string;
1320
- width: string;
1321
- size: string;
1322
- name: string;
1323
- kind: string;
1324
- } & {
1325
- date?: string | null | undefined;
1326
- }) | ({
1327
- id: string;
1328
- url: string;
1329
- name: string;
1330
- kind: string;
1331
- size: string;
1332
- } & {
1333
- date?: string | null | undefined;
1334
- } & {
1335
- __TYPE__: "FileLink";
1336
- } & {
1337
- size?: string;
1338
- }) | ({
1339
- __TYPE__: "DocumentLink";
1340
- } & {
1341
- id: string;
1342
- }) | ({
1343
- __TYPE__: "ExternalLink";
1344
- } & {
1345
- url: string;
1346
- } & {
1347
- kind?: "web";
1348
- target?: string | null | undefined;
1349
- preview?: {
1350
- title?: string;
1351
- } | null | undefined;
1352
- }) | null | undefined;
1353
- };
1354
- } & {
1355
- label?: string | null | undefined;
1356
- direction?: string | null | undefined;
1357
- }) | ({
1358
- type: "embed";
1359
- data: {
1360
- embed_url: string;
1361
- type: string;
1362
- } & {
1363
- version?: string | number | null;
1364
- title?: string | null | undefined;
1365
- author_name?: string | null | undefined;
1366
- author_url?: string | null | undefined;
1367
- provider_name?: string | null | undefined;
1368
- provider_url?: string | null | undefined;
1369
- cache_age?: string | number | null;
1370
- thumbnail_url?: string | null | undefined;
1371
- thumbnail_width?: number | null | undefined;
1372
- thumbnail_height?: number | null | undefined;
1373
- html?: string | null | undefined;
1374
- } & {
1375
- __TYPE__: "EmbedContent";
1376
- all: unknown;
1377
- };
1378
- } & {
1379
- label?: string | null | undefined;
1380
- direction?: string | null | undefined;
1381
- }) | ({
1382
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1383
- content: {
1384
- text: string;
1385
- } & {
1386
- spans?: ({
1387
- data: ({
1388
- __TYPE__: "ImageLink";
1389
- } & {
1390
- id: string;
1391
- url: string;
1392
- height: string;
1393
- width: string;
1394
- size: string;
1395
- name: string;
1396
- kind: string;
1397
- } & {
1398
- date?: string | null | undefined;
1399
- }) | ({
1400
- id: string;
1401
- url: string;
1402
- name: string;
1403
- kind: string;
1404
- size: string;
1405
- } & {
1406
- date?: string | null | undefined;
1407
- } & {
1408
- __TYPE__: "FileLink";
1409
- } & {
1410
- size?: string;
1411
- }) | ({
1412
- __TYPE__: "DocumentLink";
1413
- } & {
1414
- id: string;
1415
- }) | ({
1416
- __TYPE__: "ExternalLink";
1417
- } & {
1418
- url: string;
1419
- } & {
1420
- kind?: "web";
1421
- target?: string | null | undefined;
1422
- preview?: {
1423
- title?: string;
1424
- } | null | undefined;
1425
- });
1426
- start: number;
1427
- end: number;
1428
- type: "hyperlink";
1429
- } | {
1430
- data: string;
1431
- start: number;
1432
- end: number;
1433
- type: "label";
1434
- } | {
1435
- start: number;
1436
- end: number;
1437
- type: "strong" | "em" | "list-item";
1438
- })[];
1439
- };
1440
- } & {
1441
- label?: string;
1442
- direction?: string;
1443
- }))[];
1444
- } | {
1445
- __TYPE__: "SeparatorContent";
1446
- }][];
1447
- }[];
1448
- };
723
+ } | GroupContent;
1449
724
  export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
1450
725
  decode: ((value: unknown) => import("fp-ts/lib/Either").Left<t.Errors> | import("fp-ts/lib/Either").Right<{
1451
726
  type: string;
@@ -1759,325 +1034,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
1759
1034
  }))[];
1760
1035
  }> | import("fp-ts/lib/Either").Right<{
1761
1036
  __TYPE__: "SeparatorContent";
1762
- }> | undefined) | ((i: unknown) => t.Validation<{
1763
- __TYPE__: "GroupContentType";
1764
- value: {
1765
- __TYPE__: "GroupItemContent";
1766
- value: [string, {
1767
- type: string;
1768
- __TYPE__: "EmptyContent";
1769
- } | {
1770
- __TYPE__: "BooleanContent";
1771
- value: boolean;
1772
- } | ({
1773
- embed_url: string;
1774
- type: string;
1775
- } & {
1776
- version?: string | number | null;
1777
- title?: string | null | undefined;
1778
- author_name?: string | null | undefined;
1779
- author_url?: string | null | undefined;
1780
- provider_name?: string | null | undefined;
1781
- provider_url?: string | null | undefined;
1782
- cache_age?: string | number | null;
1783
- thumbnail_url?: string | null | undefined;
1784
- thumbnail_width?: number | null | undefined;
1785
- thumbnail_height?: number | null | undefined;
1786
- html?: string | null | undefined;
1787
- } & {
1788
- __TYPE__: "EmbedContent";
1789
- all: unknown;
1790
- }) | {
1791
- type: "Color";
1792
- value: string;
1793
- __TYPE__: "FieldContent";
1794
- } | {
1795
- type: "Date";
1796
- value: string;
1797
- __TYPE__: "FieldContent";
1798
- } | {
1799
- type: "Number";
1800
- value: string;
1801
- __TYPE__: "FieldContent";
1802
- } | {
1803
- type: "Range";
1804
- value: string;
1805
- __TYPE__: "FieldContent";
1806
- } | {
1807
- type: "Select";
1808
- value: string;
1809
- __TYPE__: "FieldContent";
1810
- } | {
1811
- type: "Text";
1812
- value: string;
1813
- __TYPE__: "FieldContent";
1814
- } | {
1815
- type: "Timestamp";
1816
- value: string;
1817
- __TYPE__: "FieldContent";
1818
- } | ({
1819
- position: {
1820
- lat: number;
1821
- lng: number;
1822
- };
1823
- } & {
1824
- __TYPE__: "GeoPointContent";
1825
- }) | ({
1826
- origin: {
1827
- id: string;
1828
- url: string;
1829
- width: number;
1830
- height: number;
1831
- };
1832
- width: number;
1833
- height: number;
1834
- edit: {
1835
- zoom: number;
1836
- crop: {
1837
- x: number;
1838
- y: number;
1839
- };
1840
- background: string;
1841
- };
1842
- } & {
1843
- url?: string;
1844
- credits?: string | null;
1845
- alt?: string | null;
1846
- provider?: string | null | undefined;
1847
- } & {
1848
- thumbnails?: {
1849
- [x: string]: {
1850
- origin: {
1851
- id: string;
1852
- url: string;
1853
- width: number;
1854
- height: number;
1855
- };
1856
- width: number;
1857
- height: number;
1858
- edit: {
1859
- zoom: number;
1860
- crop: {
1861
- x: number;
1862
- y: number;
1863
- };
1864
- background: string;
1865
- };
1866
- } & {
1867
- url?: string;
1868
- credits?: string | null;
1869
- alt?: string | null;
1870
- provider?: string | null | undefined;
1871
- };
1872
- };
1873
- } & {
1874
- __TYPE__: "ImageContent";
1875
- }) | {
1876
- __TYPE__: "IntegrationFieldsContent";
1877
- value: string;
1878
- } | {
1879
- __TYPE__: "LinkContent";
1880
- value: ({
1881
- __TYPE__: "ImageLink";
1882
- } & {
1883
- id: string;
1884
- url: string;
1885
- height: string;
1886
- width: string;
1887
- size: string;
1888
- name: string;
1889
- kind: string;
1890
- } & {
1891
- date?: string | null | undefined;
1892
- }) | ({
1893
- id: string;
1894
- url: string;
1895
- name: string;
1896
- kind: string;
1897
- size: string;
1898
- } & {
1899
- date?: string | null | undefined;
1900
- } & {
1901
- __TYPE__: "FileLink";
1902
- } & {
1903
- size?: string;
1904
- }) | ({
1905
- __TYPE__: "DocumentLink";
1906
- } & {
1907
- id: string;
1908
- }) | ({
1909
- __TYPE__: "ExternalLink";
1910
- } & {
1911
- url: string;
1912
- } & {
1913
- kind?: "web";
1914
- target?: string | null | undefined;
1915
- preview?: {
1916
- title?: string;
1917
- } | null | undefined;
1918
- });
1919
- } | {
1920
- __TYPE__: "StructuredTextContent";
1921
- value: (({
1922
- type: "image";
1923
- data: {
1924
- origin: {
1925
- id: string;
1926
- url: string;
1927
- width: number;
1928
- height: number;
1929
- };
1930
- width: number;
1931
- height: number;
1932
- edit: {
1933
- zoom: number;
1934
- crop: {
1935
- x: number;
1936
- y: number;
1937
- };
1938
- background: string;
1939
- };
1940
- } & {
1941
- url?: string;
1942
- credits?: string | null;
1943
- alt?: string | null;
1944
- provider?: string | null | undefined;
1945
- } & {
1946
- linkTo?: ({
1947
- __TYPE__: "ImageLink";
1948
- } & {
1949
- id: string;
1950
- url: string;
1951
- height: string;
1952
- width: string;
1953
- size: string;
1954
- name: string;
1955
- kind: string;
1956
- } & {
1957
- date?: string | null | undefined;
1958
- }) | ({
1959
- id: string;
1960
- url: string;
1961
- name: string;
1962
- kind: string;
1963
- size: string;
1964
- } & {
1965
- date?: string | null | undefined;
1966
- } & {
1967
- __TYPE__: "FileLink";
1968
- } & {
1969
- size?: string;
1970
- }) | ({
1971
- __TYPE__: "DocumentLink";
1972
- } & {
1973
- id: string;
1974
- }) | ({
1975
- __TYPE__: "ExternalLink";
1976
- } & {
1977
- url: string;
1978
- } & {
1979
- kind?: "web";
1980
- target?: string | null | undefined;
1981
- preview?: {
1982
- title?: string;
1983
- } | null | undefined;
1984
- }) | null | undefined;
1985
- };
1986
- } & {
1987
- label?: string | null | undefined;
1988
- direction?: string | null | undefined;
1989
- }) | ({
1990
- type: "embed";
1991
- data: {
1992
- embed_url: string;
1993
- type: string;
1994
- } & {
1995
- version?: string | number | null;
1996
- title?: string | null | undefined;
1997
- author_name?: string | null | undefined;
1998
- author_url?: string | null | undefined;
1999
- provider_name?: string | null | undefined;
2000
- provider_url?: string | null | undefined;
2001
- cache_age?: string | number | null;
2002
- thumbnail_url?: string | null | undefined;
2003
- thumbnail_width?: number | null | undefined;
2004
- thumbnail_height?: number | null | undefined;
2005
- html?: string | null | undefined;
2006
- } & {
2007
- __TYPE__: "EmbedContent";
2008
- all: unknown;
2009
- };
2010
- } & {
2011
- label?: string | null | undefined;
2012
- direction?: string | null | undefined;
2013
- }) | ({
2014
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
2015
- content: {
2016
- text: string;
2017
- } & {
2018
- spans?: ({
2019
- data: ({
2020
- __TYPE__: "ImageLink";
2021
- } & {
2022
- id: string;
2023
- url: string;
2024
- height: string;
2025
- width: string;
2026
- size: string;
2027
- name: string;
2028
- kind: string;
2029
- } & {
2030
- date?: string | null | undefined;
2031
- }) | ({
2032
- id: string;
2033
- url: string;
2034
- name: string;
2035
- kind: string;
2036
- size: string;
2037
- } & {
2038
- date?: string | null | undefined;
2039
- } & {
2040
- __TYPE__: "FileLink";
2041
- } & {
2042
- size?: string;
2043
- }) | ({
2044
- __TYPE__: "DocumentLink";
2045
- } & {
2046
- id: string;
2047
- }) | ({
2048
- __TYPE__: "ExternalLink";
2049
- } & {
2050
- url: string;
2051
- } & {
2052
- kind?: "web";
2053
- target?: string | null | undefined;
2054
- preview?: {
2055
- title?: string;
2056
- } | null | undefined;
2057
- });
2058
- start: number;
2059
- end: number;
2060
- type: "hyperlink";
2061
- } | {
2062
- data: string;
2063
- start: number;
2064
- end: number;
2065
- type: "label";
2066
- } | {
2067
- start: number;
2068
- end: number;
2069
- type: "strong" | "em" | "list-item";
2070
- })[];
2071
- };
2072
- } & {
2073
- label?: string;
2074
- direction?: string;
2075
- }))[];
2076
- } | {
2077
- __TYPE__: "SeparatorContent";
2078
- }][];
2079
- }[];
2080
- }>);
1037
+ }> | undefined) | ((i: unknown) => t.Validation<GroupContent>);
2081
1038
  encode: (value: SimpleSliceContent) => import("../../../LegacyContentCtx").WithTypes<unknown> | undefined;
2082
1039
  };
2083
1040
  export declare function traverseSimpleSliceContent({ path, sliceKey, sliceName, model, content, }: {
@@ -2085,6 +1042,6 @@ export declare function traverseSimpleSliceContent({ path, sliceKey, sliceName,
2085
1042
  sliceKey: string;
2086
1043
  sliceName: string;
2087
1044
  content: SimpleSliceItemContent;
2088
- model?: VariationFields | NestedGroup | NestableWidget | undefined;
1045
+ model?: VariationFields | Group | NestableWidget | undefined;
2089
1046
  }): (transformWidget: TraverseWidgetContentFn, transformSlice: TraverseSliceContentFn) => SharedSliceItemContent | SimpleSliceItemContent | undefined;
2090
1047
  export declare function migrateSimpleSlice(model: VariationFields, content: SimpleSliceItemContent): SharedSliceItemContent;