@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
@@ -2,6 +2,7 @@ import * as t from "io-ts";
2
2
  import type { ContentPath, TraverseSliceContentFn, TraverseWidgetContentFn } from "../../../../_internal/utils";
3
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;
@@ -183,73 +184,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
183
184
  alt: t.Type<string | null, string | null, unknown>;
184
185
  provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
185
186
  }>]>>, t.PartialC<{
186
- linkTo: t.UnionC<[t.Type<({
187
- __TYPE__: "ImageLink";
188
- } & {
189
- id: string;
190
- url: string;
191
- height: string;
192
- width: string;
193
- size: string;
194
- name: string;
195
- kind: string;
196
- } & {
197
- date?: string | null | undefined;
198
- }) | ({
199
- id: string;
200
- url: string;
201
- name: string;
202
- kind: string;
203
- size: string;
204
- } & {
205
- date?: string | null | undefined;
206
- } & {
207
- __TYPE__: "FileLink";
208
- } & {
209
- size?: string;
210
- }) | ({
211
- __TYPE__: "DocumentLink";
212
- } & {
213
- id: string;
214
- }) | ({
215
- __TYPE__: "ExternalLink";
216
- } & {
217
- url: string;
218
- } & {
219
- kind?: "web";
220
- target?: string | null | undefined;
221
- preview?: {
222
- title?: string;
223
- } | null | undefined;
224
- }), ({
225
- id: string;
226
- url: string;
227
- height: string;
228
- width: string;
229
- size: string;
230
- name: string;
231
- kind: string;
232
- } & {
233
- date?: string | null | undefined;
234
- }) | ({
235
- id: string;
236
- url: string;
237
- name: string;
238
- kind: string;
239
- size: string;
240
- } & {
241
- date?: string | null | undefined;
242
- }) | {
243
- id: string;
244
- } | ({
245
- url: string;
246
- } & {
247
- kind?: "web";
248
- target?: string | null | undefined;
249
- preview?: {
250
- title?: string;
251
- } | null | undefined;
252
- }), unknown>, t.NullC, t.UndefinedC]>;
187
+ linkTo: t.UnionC<[t.Type<any, any, unknown>, t.NullC, t.UndefinedC]>;
253
188
  }>]>;
254
189
  }>, t.PartialC<{
255
190
  label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
@@ -395,405 +330,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
395
330
  }>]>>]>>;
396
331
  }>>, t.ExactC<t.TypeC<{
397
332
  __TYPE__: t.LiteralC<"SeparatorContent">;
398
- }>>]>, t.ExactC<t.TypeC<{
399
- __TYPE__: t.LiteralC<"GroupContentType">;
400
- value: t.ArrayC<t.ExactC<t.TypeC<{
401
- __TYPE__: t.LiteralC<"GroupItemContent">;
402
- value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
403
- type: t.StringC;
404
- __TYPE__: t.LiteralC<"EmptyContent">;
405
- }>>, t.ExactC<t.TypeC<{
406
- __TYPE__: t.LiteralC<"BooleanContent">;
407
- value: t.BooleanC;
408
- }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
409
- embed_url: t.StringC;
410
- type: t.StringC;
411
- }>, t.PartialC<{
412
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
413
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
414
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
415
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
416
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
417
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
418
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
419
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
420
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
421
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
422
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
423
- }>]>>, t.ExactC<t.TypeC<{
424
- __TYPE__: t.LiteralC<"EmbedContent">;
425
- all: t.UnknownC;
426
- }>>]>, t.ExactC<t.TypeC<{
427
- type: t.LiteralC<"Text">;
428
- value: t.Type<string, string, unknown>;
429
- __TYPE__: t.LiteralC<"FieldContent">;
430
- }>>, t.ExactC<t.TypeC<{
431
- type: t.LiteralC<"Timestamp">;
432
- value: t.Type<string, string, unknown>;
433
- __TYPE__: t.LiteralC<"FieldContent">;
434
- }>>, t.ExactC<t.TypeC<{
435
- type: t.LiteralC<"Select">;
436
- value: t.Type<string, string, unknown>;
437
- __TYPE__: t.LiteralC<"FieldContent">;
438
- }>>, t.ExactC<t.TypeC<{
439
- type: t.LiteralC<"Range">;
440
- value: t.Type<string, string, unknown>;
441
- __TYPE__: t.LiteralC<"FieldContent">;
442
- }>>, t.ExactC<t.TypeC<{
443
- type: t.LiteralC<"Number">;
444
- value: t.Type<string, string, unknown>;
445
- __TYPE__: t.LiteralC<"FieldContent">;
446
- }>>, t.ExactC<t.TypeC<{
447
- type: t.LiteralC<"Date">;
448
- value: t.Type<string, string, unknown>;
449
- __TYPE__: t.LiteralC<"FieldContent">;
450
- }>>, t.ExactC<t.TypeC<{
451
- type: t.LiteralC<"Color">;
452
- value: t.Type<string, string, unknown>;
453
- __TYPE__: t.LiteralC<"FieldContent">;
454
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
455
- position: t.ExactC<t.TypeC<{
456
- lat: t.NumberC;
457
- lng: t.NumberC;
458
- }>>;
459
- }>>, t.ExactC<t.TypeC<{
460
- __TYPE__: t.LiteralC<"GeoPointContent">;
461
- }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
462
- origin: t.ExactC<t.TypeC<{
463
- id: t.StringC;
464
- url: t.StringC;
465
- width: t.NumberC;
466
- height: t.NumberC;
467
- }>>;
468
- width: t.NumberC;
469
- height: t.NumberC;
470
- edit: t.TypeC<{
471
- zoom: t.NumberC;
472
- crop: t.TypeC<{
473
- x: t.NumberC;
474
- y: t.NumberC;
475
- }>;
476
- background: t.StringC;
477
- }>;
478
- }>, t.PartialC<{
479
- url: t.StringC;
480
- credits: t.Type<string | null, string | null, unknown>;
481
- alt: t.Type<string | null, string | null, unknown>;
482
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
483
- }>]>>, t.PartialC<{
484
- thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
485
- origin: t.ExactC<t.TypeC<{
486
- id: t.StringC;
487
- url: t.StringC;
488
- width: t.NumberC;
489
- height: t.NumberC;
490
- }>>;
491
- width: t.NumberC;
492
- height: t.NumberC;
493
- edit: t.TypeC<{
494
- zoom: t.NumberC;
495
- crop: t.TypeC<{
496
- x: t.NumberC;
497
- y: t.NumberC;
498
- }>;
499
- background: t.StringC;
500
- }>;
501
- }>, t.PartialC<{
502
- url: t.StringC;
503
- credits: t.Type<string | null, string | null, unknown>;
504
- alt: t.Type<string | null, string | null, unknown>;
505
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
506
- }>]>>>;
507
- }>]>, t.ExactC<t.TypeC<{
508
- __TYPE__: t.LiteralC<"ImageContent">;
509
- }>>]>, t.ExactC<t.TypeC<{
510
- __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
511
- value: t.StringC;
512
- }>>, t.ExactC<t.TypeC<{
513
- __TYPE__: t.LiteralC<"LinkContent">;
514
- value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
515
- __TYPE__: t.LiteralC<"ImageLink">;
516
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
517
- id: t.StringC;
518
- url: t.StringC;
519
- height: t.StringC;
520
- width: t.StringC;
521
- size: t.StringC;
522
- name: t.StringC;
523
- kind: t.StringC;
524
- }>, t.PartialC<{
525
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
526
- }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
527
- id: t.StringC;
528
- url: t.StringC;
529
- name: t.StringC;
530
- kind: t.StringC;
531
- size: t.StringC;
532
- }>, t.PartialC<{
533
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
534
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
535
- __TYPE__: t.LiteralC<"FileLink">;
536
- }>, t.PartialC<{
537
- size: t.StringC;
538
- }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
539
- __TYPE__: t.LiteralC<"DocumentLink">;
540
- }>>, t.ExactC<t.TypeC<{
541
- id: t.Type<string, string, unknown>;
542
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
543
- __TYPE__: t.LiteralC<"ExternalLink">;
544
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
545
- url: t.StringC;
546
- }>, t.PartialC<{
547
- kind: t.LiteralC<"web">;
548
- target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
549
- preview: t.UnionC<[t.Type<{
550
- title?: string;
551
- }, {
552
- title?: string;
553
- }, unknown>, t.NullC, t.UndefinedC]>;
554
- }>]>>]>]>;
555
- }>>, t.ExactC<t.TypeC<{
556
- __TYPE__: t.LiteralC<"StructuredTextContent">;
557
- value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
558
- type: t.LiteralC<"image">;
559
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
560
- origin: t.ExactC<t.TypeC<{
561
- id: t.StringC;
562
- url: t.StringC;
563
- width: t.NumberC;
564
- height: t.NumberC;
565
- }>>;
566
- width: t.NumberC;
567
- height: t.NumberC;
568
- edit: t.TypeC<{
569
- zoom: t.NumberC;
570
- crop: t.TypeC<{
571
- x: t.NumberC;
572
- y: t.NumberC;
573
- }>;
574
- background: t.StringC;
575
- }>;
576
- }>, t.PartialC<{
577
- url: t.StringC;
578
- credits: t.Type<string | null, string | null, unknown>;
579
- alt: t.Type<string | null, string | null, unknown>;
580
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
581
- }>]>>, t.PartialC<{
582
- linkTo: t.UnionC<[t.Type<({
583
- __TYPE__: "ImageLink";
584
- } & {
585
- id: string;
586
- url: string;
587
- height: string;
588
- width: string;
589
- size: string;
590
- name: string;
591
- kind: string;
592
- } & {
593
- date?: string | null | undefined;
594
- }) | ({
595
- id: string;
596
- url: string;
597
- name: string;
598
- kind: string;
599
- size: string;
600
- } & {
601
- date?: string | null | undefined;
602
- } & {
603
- __TYPE__: "FileLink";
604
- } & {
605
- size?: string;
606
- }) | ({
607
- __TYPE__: "DocumentLink";
608
- } & {
609
- id: string;
610
- }) | ({
611
- __TYPE__: "ExternalLink";
612
- } & {
613
- url: string;
614
- } & {
615
- kind?: "web";
616
- target?: string | null | undefined;
617
- preview?: {
618
- title?: string;
619
- } | null | undefined;
620
- }), ({
621
- id: string;
622
- url: string;
623
- height: string;
624
- width: string;
625
- size: string;
626
- name: string;
627
- kind: string;
628
- } & {
629
- date?: string | null | undefined;
630
- }) | ({
631
- id: string;
632
- url: string;
633
- name: string;
634
- kind: string;
635
- size: string;
636
- } & {
637
- date?: string | null | undefined;
638
- }) | {
639
- id: string;
640
- } | ({
641
- url: string;
642
- } & {
643
- kind?: "web";
644
- target?: string | null | undefined;
645
- preview?: {
646
- title?: string;
647
- } | null | undefined;
648
- }), unknown>, t.NullC, t.UndefinedC]>;
649
- }>]>;
650
- }>, t.PartialC<{
651
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
652
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
653
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
654
- type: t.LiteralC<"embed">;
655
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
656
- embed_url: t.StringC;
657
- type: t.StringC;
658
- }>, t.PartialC<{
659
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
660
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
661
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
662
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
663
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
664
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
665
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
666
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
667
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
668
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
669
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
670
- }>]>>, t.ExactC<t.TypeC<{
671
- __TYPE__: t.LiteralC<"EmbedContent">;
672
- all: t.UnknownC;
673
- }>>]>;
674
- }>, t.PartialC<{
675
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
676
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
677
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
678
- 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>;
679
- content: t.IntersectionC<[t.TypeC<{
680
- text: t.StringC;
681
- }>, t.PartialC<{
682
- spans: t.Type<({
683
- data: ({
684
- __TYPE__: "ImageLink";
685
- } & {
686
- id: string;
687
- url: string;
688
- height: string;
689
- width: string;
690
- size: string;
691
- name: string;
692
- kind: string;
693
- } & {
694
- date?: string | null | undefined;
695
- }) | ({
696
- id: string;
697
- url: string;
698
- name: string;
699
- kind: string;
700
- size: string;
701
- } & {
702
- date?: string | null | undefined;
703
- } & {
704
- __TYPE__: "FileLink";
705
- } & {
706
- size?: string;
707
- }) | ({
708
- __TYPE__: "DocumentLink";
709
- } & {
710
- id: string;
711
- }) | ({
712
- __TYPE__: "ExternalLink";
713
- } & {
714
- url: string;
715
- } & {
716
- kind?: "web";
717
- target?: string | null | undefined;
718
- preview?: {
719
- title?: string;
720
- } | null | undefined;
721
- });
722
- start: number;
723
- end: number;
724
- type: "hyperlink";
725
- } | {
726
- data: string;
727
- start: number;
728
- end: number;
729
- type: "label";
730
- } | {
731
- start: number;
732
- end: number;
733
- type: "strong" | "em" | "list-item";
734
- })[], ({
735
- data: ({
736
- __TYPE__: "ImageLink";
737
- } & {
738
- id: string;
739
- url: string;
740
- height: string;
741
- width: string;
742
- size: string;
743
- name: string;
744
- kind: string;
745
- } & {
746
- date?: string | null | undefined;
747
- }) | ({
748
- id: string;
749
- url: string;
750
- name: string;
751
- kind: string;
752
- size: string;
753
- } & {
754
- date?: string | null | undefined;
755
- } & {
756
- __TYPE__: "FileLink";
757
- } & {
758
- size?: string;
759
- }) | ({
760
- __TYPE__: "DocumentLink";
761
- } & {
762
- id: string;
763
- }) | ({
764
- __TYPE__: "ExternalLink";
765
- } & {
766
- url: string;
767
- } & {
768
- kind?: "web";
769
- target?: string | null | undefined;
770
- preview?: {
771
- title?: string;
772
- } | null | undefined;
773
- });
774
- start: number;
775
- end: number;
776
- type: "hyperlink";
777
- } | {
778
- data: string;
779
- start: number;
780
- end: number;
781
- type: "label";
782
- } | {
783
- start: number;
784
- end: number;
785
- type: "strong" | "em" | "list-item";
786
- })[], unknown>;
787
- }>]>;
788
- }>, t.PartialC<{
789
- label: t.StringC;
790
- direction: t.StringC;
791
- }>]>>]>>;
792
- }>>, t.ExactC<t.TypeC<{
793
- __TYPE__: t.LiteralC<"SeparatorContent">;
794
- }>>]>]>>;
795
- }>>>;
796
- }>>]>;
333
+ }>>]>, t.Type<GroupContent, GroupContent, unknown>]>;
797
334
  export declare type SimpleSliceContent = t.TypeOf<typeof SimpleSliceContent>;
798
335
  export declare const isSimpleSliceContent: (u: unknown) => u is {
799
336
  type: string;
@@ -975,45 +512,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
975
512
  alt?: string | null;
976
513
  provider?: string | null | undefined;
977
514
  } & {
978
- linkTo?: ({
979
- __TYPE__: "ImageLink";
980
- } & {
981
- id: string;
982
- url: string;
983
- height: string;
984
- width: string;
985
- size: string;
986
- name: string;
987
- kind: string;
988
- } & {
989
- date?: string | null | undefined;
990
- }) | ({
991
- id: string;
992
- url: string;
993
- name: string;
994
- kind: string;
995
- size: string;
996
- } & {
997
- date?: string | null | undefined;
998
- } & {
999
- __TYPE__: "FileLink";
1000
- } & {
1001
- size?: string;
1002
- }) | ({
1003
- __TYPE__: "DocumentLink";
1004
- } & {
1005
- id: string;
1006
- }) | ({
1007
- __TYPE__: "ExternalLink";
1008
- } & {
1009
- url: string;
1010
- } & {
1011
- kind?: "web";
1012
- target?: string | null | undefined;
1013
- preview?: {
1014
- title?: string;
1015
- } | null | undefined;
1016
- }) | null | undefined;
515
+ linkTo?: any;
1017
516
  };
1018
517
  } & {
1019
518
  label?: string | null | undefined;
@@ -1107,325 +606,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
1107
606
  }))[];
1108
607
  } | {
1109
608
  __TYPE__: "SeparatorContent";
1110
- } | {
1111
- __TYPE__: "GroupContentType";
1112
- value: {
1113
- __TYPE__: "GroupItemContent";
1114
- value: [string, {
1115
- type: string;
1116
- __TYPE__: "EmptyContent";
1117
- } | {
1118
- __TYPE__: "BooleanContent";
1119
- value: boolean;
1120
- } | ({
1121
- embed_url: string;
1122
- type: string;
1123
- } & {
1124
- version?: string | number | null;
1125
- title?: string | null | undefined;
1126
- author_name?: string | null | undefined;
1127
- author_url?: string | null | undefined;
1128
- provider_name?: string | null | undefined;
1129
- provider_url?: string | null | undefined;
1130
- cache_age?: string | number | null;
1131
- thumbnail_url?: string | null | undefined;
1132
- thumbnail_width?: number | null | undefined;
1133
- thumbnail_height?: number | null | undefined;
1134
- html?: string | null | undefined;
1135
- } & {
1136
- __TYPE__: "EmbedContent";
1137
- all: unknown;
1138
- }) | {
1139
- type: "Color";
1140
- value: string;
1141
- __TYPE__: "FieldContent";
1142
- } | {
1143
- type: "Date";
1144
- value: string;
1145
- __TYPE__: "FieldContent";
1146
- } | {
1147
- type: "Number";
1148
- value: string;
1149
- __TYPE__: "FieldContent";
1150
- } | {
1151
- type: "Range";
1152
- value: string;
1153
- __TYPE__: "FieldContent";
1154
- } | {
1155
- type: "Select";
1156
- value: string;
1157
- __TYPE__: "FieldContent";
1158
- } | {
1159
- type: "Text";
1160
- value: string;
1161
- __TYPE__: "FieldContent";
1162
- } | {
1163
- type: "Timestamp";
1164
- value: string;
1165
- __TYPE__: "FieldContent";
1166
- } | ({
1167
- position: {
1168
- lat: number;
1169
- lng: number;
1170
- };
1171
- } & {
1172
- __TYPE__: "GeoPointContent";
1173
- }) | ({
1174
- origin: {
1175
- id: string;
1176
- url: string;
1177
- width: number;
1178
- height: number;
1179
- };
1180
- width: number;
1181
- height: number;
1182
- edit: {
1183
- zoom: number;
1184
- crop: {
1185
- x: number;
1186
- y: number;
1187
- };
1188
- background: string;
1189
- };
1190
- } & {
1191
- url?: string;
1192
- credits?: string | null;
1193
- alt?: string | null;
1194
- provider?: string | null | undefined;
1195
- } & {
1196
- thumbnails?: {
1197
- [x: string]: {
1198
- origin: {
1199
- id: string;
1200
- url: string;
1201
- width: number;
1202
- height: number;
1203
- };
1204
- width: number;
1205
- height: number;
1206
- edit: {
1207
- zoom: number;
1208
- crop: {
1209
- x: number;
1210
- y: number;
1211
- };
1212
- background: string;
1213
- };
1214
- } & {
1215
- url?: string;
1216
- credits?: string | null;
1217
- alt?: string | null;
1218
- provider?: string | null | undefined;
1219
- };
1220
- };
1221
- } & {
1222
- __TYPE__: "ImageContent";
1223
- }) | {
1224
- __TYPE__: "IntegrationFieldsContent";
1225
- value: string;
1226
- } | {
1227
- __TYPE__: "LinkContent";
1228
- value: ({
1229
- __TYPE__: "ImageLink";
1230
- } & {
1231
- id: string;
1232
- url: string;
1233
- height: string;
1234
- width: string;
1235
- size: string;
1236
- name: string;
1237
- kind: string;
1238
- } & {
1239
- date?: string | null | undefined;
1240
- }) | ({
1241
- id: string;
1242
- url: string;
1243
- name: string;
1244
- kind: string;
1245
- size: string;
1246
- } & {
1247
- date?: string | null | undefined;
1248
- } & {
1249
- __TYPE__: "FileLink";
1250
- } & {
1251
- size?: string;
1252
- }) | ({
1253
- __TYPE__: "DocumentLink";
1254
- } & {
1255
- id: string;
1256
- }) | ({
1257
- __TYPE__: "ExternalLink";
1258
- } & {
1259
- url: string;
1260
- } & {
1261
- kind?: "web";
1262
- target?: string | null | undefined;
1263
- preview?: {
1264
- title?: string;
1265
- } | null | undefined;
1266
- });
1267
- } | {
1268
- __TYPE__: "StructuredTextContent";
1269
- value: (({
1270
- type: "image";
1271
- data: {
1272
- origin: {
1273
- id: string;
1274
- url: string;
1275
- width: number;
1276
- height: number;
1277
- };
1278
- width: number;
1279
- height: number;
1280
- edit: {
1281
- zoom: number;
1282
- crop: {
1283
- x: number;
1284
- y: number;
1285
- };
1286
- background: string;
1287
- };
1288
- } & {
1289
- url?: string;
1290
- credits?: string | null;
1291
- alt?: string | null;
1292
- provider?: string | null | undefined;
1293
- } & {
1294
- linkTo?: ({
1295
- __TYPE__: "ImageLink";
1296
- } & {
1297
- id: string;
1298
- url: string;
1299
- height: string;
1300
- width: string;
1301
- size: string;
1302
- name: string;
1303
- kind: string;
1304
- } & {
1305
- date?: string | null | undefined;
1306
- }) | ({
1307
- id: string;
1308
- url: string;
1309
- name: string;
1310
- kind: string;
1311
- size: string;
1312
- } & {
1313
- date?: string | null | undefined;
1314
- } & {
1315
- __TYPE__: "FileLink";
1316
- } & {
1317
- size?: string;
1318
- }) | ({
1319
- __TYPE__: "DocumentLink";
1320
- } & {
1321
- id: string;
1322
- }) | ({
1323
- __TYPE__: "ExternalLink";
1324
- } & {
1325
- url: string;
1326
- } & {
1327
- kind?: "web";
1328
- target?: string | null | undefined;
1329
- preview?: {
1330
- title?: string;
1331
- } | null | undefined;
1332
- }) | null | undefined;
1333
- };
1334
- } & {
1335
- label?: string | null | undefined;
1336
- direction?: string | null | undefined;
1337
- }) | ({
1338
- type: "embed";
1339
- data: {
1340
- embed_url: string;
1341
- type: string;
1342
- } & {
1343
- version?: string | number | null;
1344
- title?: string | null | undefined;
1345
- author_name?: string | null | undefined;
1346
- author_url?: string | null | undefined;
1347
- provider_name?: string | null | undefined;
1348
- provider_url?: string | null | undefined;
1349
- cache_age?: string | number | null;
1350
- thumbnail_url?: string | null | undefined;
1351
- thumbnail_width?: number | null | undefined;
1352
- thumbnail_height?: number | null | undefined;
1353
- html?: string | null | undefined;
1354
- } & {
1355
- __TYPE__: "EmbedContent";
1356
- all: unknown;
1357
- };
1358
- } & {
1359
- label?: string | null | undefined;
1360
- direction?: string | null | undefined;
1361
- }) | ({
1362
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1363
- content: {
1364
- text: string;
1365
- } & {
1366
- spans?: ({
1367
- data: ({
1368
- __TYPE__: "ImageLink";
1369
- } & {
1370
- id: string;
1371
- url: string;
1372
- height: string;
1373
- width: string;
1374
- size: string;
1375
- name: string;
1376
- kind: string;
1377
- } & {
1378
- date?: string | null | undefined;
1379
- }) | ({
1380
- id: string;
1381
- url: string;
1382
- name: string;
1383
- kind: string;
1384
- size: string;
1385
- } & {
1386
- date?: string | null | undefined;
1387
- } & {
1388
- __TYPE__: "FileLink";
1389
- } & {
1390
- size?: string;
1391
- }) | ({
1392
- __TYPE__: "DocumentLink";
1393
- } & {
1394
- id: string;
1395
- }) | ({
1396
- __TYPE__: "ExternalLink";
1397
- } & {
1398
- url: string;
1399
- } & {
1400
- kind?: "web";
1401
- target?: string | null | undefined;
1402
- preview?: {
1403
- title?: string;
1404
- } | null | undefined;
1405
- });
1406
- start: number;
1407
- end: number;
1408
- type: "hyperlink";
1409
- } | {
1410
- data: string;
1411
- start: number;
1412
- end: number;
1413
- type: "label";
1414
- } | {
1415
- start: number;
1416
- end: number;
1417
- type: "strong" | "em" | "list-item";
1418
- })[];
1419
- };
1420
- } & {
1421
- label?: string;
1422
- direction?: string;
1423
- }))[];
1424
- } | {
1425
- __TYPE__: "SeparatorContent";
1426
- }][];
1427
- }[];
1428
- };
609
+ } | GroupContent;
1429
610
  export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
1430
611
  decode: ((value: unknown) => import("fp-ts/lib/Either").Left<t.Errors> | import("fp-ts/lib/Either").Right<{
1431
612
  type: string;
@@ -1607,45 +788,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
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,325 +882,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
1739
882
  }))[];
1740
883
  }> | import("fp-ts/lib/Either").Right<{
1741
884
  __TYPE__: "SeparatorContent";
1742
- }> | undefined) | ((i: unknown) => t.Validation<{
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
+ }> | undefined) | ((i: unknown) => t.Validation<GroupContent>);
2061
886
  encode: (value: SimpleSliceContent) => import("../../../LegacyContentCtx").WithTypes<unknown> | undefined;
2062
887
  };
2063
888
  export declare function traverseSimpleSliceContent({ path, sliceKey, sliceName, model, content, }: {