@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.
@@ -819,7 +819,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
819
819
  }>>]>>;
820
820
  repeat: t.ArrayC<t.ExactC<t.TypeC<{
821
821
  __TYPE__: t.LiteralC<"GroupItemContent">;
822
- value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
822
+ value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
823
823
  type: t.StringC;
824
824
  __TYPE__: t.LiteralC<"EmptyContent">;
825
825
  }>>, t.ExactC<t.TypeC<{
@@ -1221,7 +1221,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
1221
1221
  }>]>>]>>;
1222
1222
  }>>, t.ExactC<t.TypeC<{
1223
1223
  __TYPE__: t.LiteralC<"SeparatorContent">;
1224
- }>>]>]>>;
1224
+ }>>]>, t.Type<GroupContent, GroupContent, unknown>]>]>>;
1225
1225
  }>>>;
1226
1226
  }>>, t.ExactC<t.TypeC<{
1227
1227
  __TYPE__: t.LiteralC<"SharedSliceContent">;
@@ -1631,7 +1631,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
1631
1631
  }>>]>, t.Type<GroupContent, GroupContent, unknown>]>>;
1632
1632
  items: t.ArrayC<t.ExactC<t.TypeC<{
1633
1633
  __TYPE__: t.LiteralC<"GroupItemContent">;
1634
- value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
1634
+ value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
1635
1635
  type: t.StringC;
1636
1636
  __TYPE__: t.LiteralC<"EmptyContent">;
1637
1637
  }>>, t.ExactC<t.TypeC<{
@@ -2033,7 +2033,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
2033
2033
  }>]>>]>>;
2034
2034
  }>>, t.ExactC<t.TypeC<{
2035
2035
  __TYPE__: t.LiteralC<"SeparatorContent">;
2036
- }>>]>]>>;
2036
+ }>>]>, t.Type<GroupContent, GroupContent, unknown>]>]>>;
2037
2037
  }>>>;
2038
2038
  }>>, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
2039
2039
  type: t.StringC;
@@ -2437,415 +2437,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
2437
2437
  }>]>>]>>;
2438
2438
  }>>, t.ExactC<t.TypeC<{
2439
2439
  __TYPE__: t.LiteralC<"SeparatorContent">;
2440
- }>>]>, t.ExactC<t.TypeC<{
2441
- __TYPE__: t.LiteralC<"GroupContentType">;
2442
- value: t.ArrayC<t.ExactC<t.TypeC<{
2443
- __TYPE__: t.LiteralC<"GroupItemContent">;
2444
- value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
2445
- type: t.StringC;
2446
- __TYPE__: t.LiteralC<"EmptyContent">;
2447
- }>>, t.ExactC<t.TypeC<{
2448
- __TYPE__: t.LiteralC<"BooleanContent">;
2449
- value: t.BooleanC;
2450
- }>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2451
- embed_url: t.StringC;
2452
- type: t.StringC;
2453
- }>, t.PartialC<{
2454
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2455
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2456
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2457
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2458
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2459
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2460
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2461
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2462
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2463
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2464
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2465
- }>]>>, t.ExactC<t.TypeC<{
2466
- __TYPE__: t.LiteralC<"EmbedContent">;
2467
- all: t.UnknownC;
2468
- }>>]>, t.ExactC<t.TypeC<{
2469
- type: t.LiteralC<"Text">;
2470
- value: t.Type<string, string, unknown>;
2471
- __TYPE__: t.LiteralC<"FieldContent">;
2472
- }>>, t.ExactC<t.TypeC<{
2473
- type: t.LiteralC<"Timestamp">;
2474
- value: t.Type<string, string, unknown>;
2475
- __TYPE__: t.LiteralC<"FieldContent">;
2476
- }>>, t.ExactC<t.TypeC<{
2477
- type: t.LiteralC<"Select">;
2478
- value: t.Type<string, string, unknown>;
2479
- __TYPE__: t.LiteralC<"FieldContent">;
2480
- }>>, t.ExactC<t.TypeC<{
2481
- type: t.LiteralC<"Range">;
2482
- value: t.Type<string, string, unknown>;
2483
- __TYPE__: t.LiteralC<"FieldContent">;
2484
- }>>, t.ExactC<t.TypeC<{
2485
- type: t.LiteralC<"Number">;
2486
- value: t.Type<string, string, unknown>;
2487
- __TYPE__: t.LiteralC<"FieldContent">;
2488
- }>>, t.ExactC<t.TypeC<{
2489
- type: t.LiteralC<"Date">;
2490
- value: t.Type<string, string, unknown>;
2491
- __TYPE__: t.LiteralC<"FieldContent">;
2492
- }>>, t.ExactC<t.TypeC<{
2493
- type: t.LiteralC<"Color">;
2494
- value: t.Type<string, string, unknown>;
2495
- __TYPE__: t.LiteralC<"FieldContent">;
2496
- }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
2497
- position: t.ExactC<t.TypeC<{
2498
- lat: t.NumberC;
2499
- lng: t.NumberC;
2500
- }>>;
2501
- }>>, t.ExactC<t.TypeC<{
2502
- __TYPE__: t.LiteralC<"GeoPointContent">;
2503
- }>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2504
- origin: t.ExactC<t.TypeC<{
2505
- id: t.StringC;
2506
- url: t.StringC;
2507
- width: t.NumberC;
2508
- height: t.NumberC;
2509
- }>>;
2510
- width: t.NumberC;
2511
- height: t.NumberC;
2512
- edit: t.TypeC<{
2513
- zoom: t.NumberC;
2514
- crop: t.TypeC<{
2515
- x: t.NumberC;
2516
- y: t.NumberC;
2517
- }>;
2518
- background: t.StringC;
2519
- }>;
2520
- }>, t.PartialC<{
2521
- url: t.StringC;
2522
- credits: t.Type<string | null, string | null, unknown>;
2523
- alt: t.Type<string | null, string | null, unknown>;
2524
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2525
- }>]>>, t.PartialC<{
2526
- thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
2527
- origin: t.ExactC<t.TypeC<{
2528
- id: t.StringC;
2529
- url: t.StringC;
2530
- width: t.NumberC;
2531
- height: t.NumberC;
2532
- }>>;
2533
- width: t.NumberC;
2534
- height: t.NumberC;
2535
- edit: t.TypeC<{
2536
- zoom: t.NumberC;
2537
- crop: t.TypeC<{
2538
- x: t.NumberC;
2539
- y: t.NumberC;
2540
- }>;
2541
- background: t.StringC;
2542
- }>;
2543
- }>, t.PartialC<{
2544
- url: t.StringC;
2545
- credits: t.Type<string | null, string | null, unknown>;
2546
- alt: t.Type<string | null, string | null, unknown>;
2547
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2548
- }>]>>>;
2549
- }>]>, t.ExactC<t.TypeC<{
2550
- __TYPE__: t.LiteralC<"ImageContent">;
2551
- }>>]>, t.ExactC<t.TypeC<{
2552
- __TYPE__: t.LiteralC<"IntegrationFieldsContent">;
2553
- value: t.StringC;
2554
- }>>, t.ExactC<t.TypeC<{
2555
- __TYPE__: t.LiteralC<"LinkContent">;
2556
- value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
2557
- __TYPE__: t.LiteralC<"ImageLink">;
2558
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2559
- id: t.StringC;
2560
- url: t.StringC;
2561
- height: t.StringC;
2562
- width: t.StringC;
2563
- size: t.StringC;
2564
- name: t.StringC;
2565
- kind: t.StringC;
2566
- }>, t.PartialC<{
2567
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2568
- }>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2569
- id: t.StringC;
2570
- url: t.StringC;
2571
- name: t.StringC;
2572
- kind: t.StringC;
2573
- size: t.StringC;
2574
- }>, t.PartialC<{
2575
- date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2576
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2577
- __TYPE__: t.LiteralC<"FileLink">;
2578
- }>, t.PartialC<{
2579
- size: t.StringC;
2580
- }>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2581
- __TYPE__: t.LiteralC<"DocumentLink">;
2582
- }>>, t.ExactC<t.TypeC<{
2583
- id: t.Type<string, string, unknown>;
2584
- }>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
2585
- __TYPE__: t.LiteralC<"ExternalLink">;
2586
- }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2587
- url: t.StringC;
2588
- }>, t.PartialC<{
2589
- kind: t.LiteralC<"web">;
2590
- target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2591
- preview: t.UnionC<[t.Type<{
2592
- title?: string;
2593
- }, {
2594
- title?: string;
2595
- }, unknown>, t.NullC, t.UndefinedC]>;
2596
- }>]>>]>]>;
2597
- }>>, t.ExactC<t.TypeC<{
2598
- __TYPE__: t.LiteralC<"StructuredTextContent">;
2599
- value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2600
- type: t.LiteralC<"image">;
2601
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2602
- origin: t.ExactC<t.TypeC<{
2603
- id: t.StringC;
2604
- url: t.StringC;
2605
- width: t.NumberC;
2606
- height: t.NumberC;
2607
- }>>;
2608
- width: t.NumberC;
2609
- height: t.NumberC;
2610
- edit: t.TypeC<{
2611
- zoom: t.NumberC;
2612
- crop: t.TypeC<{
2613
- x: t.NumberC;
2614
- y: t.NumberC;
2615
- }>;
2616
- background: t.StringC;
2617
- }>;
2618
- }>, t.PartialC<{
2619
- url: t.StringC;
2620
- credits: t.Type<string | null, string | null, unknown>;
2621
- alt: t.Type<string | null, string | null, unknown>;
2622
- provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2623
- }>]>>, t.PartialC<{
2624
- linkTo: t.UnionC<[t.Type<({
2625
- __TYPE__: "ImageLink";
2626
- } & {
2627
- id: string;
2628
- url: string;
2629
- height: string;
2630
- width: string;
2631
- size: string;
2632
- name: string;
2633
- kind: string;
2634
- } & {
2635
- date?: string | null | undefined;
2636
- }) | ({
2637
- id: string;
2638
- url: string;
2639
- name: string;
2640
- kind: string;
2641
- size: string;
2642
- } & {
2643
- date?: string | null | undefined;
2644
- } & {
2645
- __TYPE__: "FileLink";
2646
- } & {
2647
- size?: string;
2648
- }) | ({
2649
- __TYPE__: "DocumentLink";
2650
- } & {
2651
- id: string;
2652
- }) | ({
2653
- __TYPE__: "ExternalLink";
2654
- } & {
2655
- url: string;
2656
- } & {
2657
- kind?: "web";
2658
- target?: string | null | undefined;
2659
- preview?: {
2660
- title?: string;
2661
- } | null | undefined;
2662
- }), ({
2663
- __TYPE__: "ImageLink";
2664
- } & {
2665
- id: string;
2666
- url: string;
2667
- height: string;
2668
- width: string;
2669
- size: string;
2670
- name: string;
2671
- kind: string;
2672
- } & {
2673
- date?: string | null | undefined;
2674
- }) | ({
2675
- id: string;
2676
- url: string;
2677
- name: string;
2678
- kind: string;
2679
- size: string;
2680
- } & {
2681
- date?: string | null | undefined;
2682
- } & {
2683
- __TYPE__: "FileLink";
2684
- } & {
2685
- size?: string;
2686
- }) | ({
2687
- __TYPE__: "DocumentLink";
2688
- } & {
2689
- id: string;
2690
- }) | ({
2691
- __TYPE__: "ExternalLink";
2692
- } & {
2693
- url: string;
2694
- } & {
2695
- kind?: "web";
2696
- target?: string | null | undefined;
2697
- preview?: {
2698
- title?: string;
2699
- } | null | undefined;
2700
- }), unknown>, t.NullC, t.UndefinedC]>;
2701
- }>]>;
2702
- }>, t.PartialC<{
2703
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2704
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2705
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2706
- type: t.LiteralC<"embed">;
2707
- data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
2708
- embed_url: t.StringC;
2709
- type: t.StringC;
2710
- }>, t.PartialC<{
2711
- version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2712
- title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2713
- author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2714
- author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2715
- provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2716
- provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2717
- cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
2718
- thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2719
- thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2720
- thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
2721
- html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2722
- }>]>>, t.ExactC<t.TypeC<{
2723
- __TYPE__: t.LiteralC<"EmbedContent">;
2724
- all: t.UnknownC;
2725
- }>>]>;
2726
- }>, t.PartialC<{
2727
- label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2728
- direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
2729
- }>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
2730
- 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>;
2731
- content: t.IntersectionC<[t.TypeC<{
2732
- text: t.StringC;
2733
- }>, t.PartialC<{
2734
- spans: t.Type<({
2735
- data: ({
2736
- __TYPE__: "ImageLink";
2737
- } & {
2738
- id: string;
2739
- url: string;
2740
- height: string;
2741
- width: string;
2742
- size: string;
2743
- name: string;
2744
- kind: string;
2745
- } & {
2746
- date?: string | null | undefined;
2747
- }) | ({
2748
- id: string;
2749
- url: string;
2750
- name: string;
2751
- kind: string;
2752
- size: string;
2753
- } & {
2754
- date?: string | null | undefined;
2755
- } & {
2756
- __TYPE__: "FileLink";
2757
- } & {
2758
- size?: string;
2759
- }) | ({
2760
- __TYPE__: "DocumentLink";
2761
- } & {
2762
- id: string;
2763
- }) | ({
2764
- __TYPE__: "ExternalLink";
2765
- } & {
2766
- url: string;
2767
- } & {
2768
- kind?: "web";
2769
- target?: string | null | undefined;
2770
- preview?: {
2771
- title?: string;
2772
- } | null | undefined;
2773
- });
2774
- start: number;
2775
- end: number;
2776
- type: "hyperlink";
2777
- } | {
2778
- data: string;
2779
- start: number;
2780
- end: number;
2781
- type: "label";
2782
- } | {
2783
- start: number;
2784
- end: number;
2785
- type: "strong" | "em" | "list-item";
2786
- })[], ({
2787
- data: ({
2788
- __TYPE__: "ImageLink";
2789
- } & {
2790
- id: string;
2791
- url: string;
2792
- height: string;
2793
- width: string;
2794
- size: string;
2795
- name: string;
2796
- kind: string;
2797
- } & {
2798
- date?: string | null | undefined;
2799
- }) | ({
2800
- id: string;
2801
- url: string;
2802
- name: string;
2803
- kind: string;
2804
- size: string;
2805
- } & {
2806
- date?: string | null | undefined;
2807
- } & {
2808
- __TYPE__: "FileLink";
2809
- } & {
2810
- size?: string;
2811
- }) | ({
2812
- __TYPE__: "DocumentLink";
2813
- } & {
2814
- id: string;
2815
- }) | ({
2816
- __TYPE__: "ExternalLink";
2817
- } & {
2818
- url: string;
2819
- } & {
2820
- kind?: "web";
2821
- target?: string | null | undefined;
2822
- preview?: {
2823
- title?: string;
2824
- } | null | undefined;
2825
- });
2826
- start: number;
2827
- end: number;
2828
- type: "hyperlink";
2829
- } | {
2830
- data: string;
2831
- start: number;
2832
- end: number;
2833
- type: "label";
2834
- } | {
2835
- start: number;
2836
- end: number;
2837
- type: "strong" | "em" | "list-item";
2838
- })[], unknown>;
2839
- }>]>;
2840
- }>, t.PartialC<{
2841
- label: t.StringC;
2842
- direction: t.StringC;
2843
- }>]>>]>>;
2844
- }>>, t.ExactC<t.TypeC<{
2845
- __TYPE__: t.LiteralC<"SeparatorContent">;
2846
- }>>]>]>>;
2847
- }>>>;
2848
- }>>]>]>;
2440
+ }>>]>, t.Type<GroupContent, GroupContent, unknown>]>]>;
2849
2441
  }>>;
2850
2442
  }>]>;
2851
2443
  export declare const isWidgetContent: (u: unknown) => u is {
@@ -3339,266 +2931,17 @@ export declare const isWidgetContent: (u: unknown) => u is {
3339
2931
  zoom: number;
3340
2932
  crop: {
3341
2933
  x: number;
3342
- y: number;
3343
- };
3344
- background: string;
3345
- };
3346
- } & {
3347
- url?: string;
3348
- credits?: string | null;
3349
- alt?: string | null;
3350
- provider?: string | null | undefined;
3351
- } & {
3352
- linkTo?: ({
3353
- __TYPE__: "ImageLink";
3354
- } & {
3355
- id: string;
3356
- url: string;
3357
- height: string;
3358
- width: string;
3359
- size: string;
3360
- name: string;
3361
- kind: string;
3362
- } & {
3363
- date?: string | null | undefined;
3364
- }) | ({
3365
- id: string;
3366
- url: string;
3367
- name: string;
3368
- kind: string;
3369
- size: string;
3370
- } & {
3371
- date?: string | null | undefined;
3372
- } & {
3373
- __TYPE__: "FileLink";
3374
- } & {
3375
- size?: string;
3376
- }) | ({
3377
- __TYPE__: "DocumentLink";
3378
- } & {
3379
- id: string;
3380
- }) | ({
3381
- __TYPE__: "ExternalLink";
3382
- } & {
3383
- url: string;
3384
- } & {
3385
- kind?: "web";
3386
- target?: string | null | undefined;
3387
- preview?: {
3388
- title?: string;
3389
- } | null | undefined;
3390
- }) | null | undefined;
3391
- };
3392
- } & {
3393
- label?: string | null | undefined;
3394
- direction?: string | null | undefined;
3395
- }) | ({
3396
- type: "embed";
3397
- data: {
3398
- embed_url: string;
3399
- type: string;
3400
- } & {
3401
- version?: string | number | null;
3402
- title?: string | null | undefined;
3403
- author_name?: string | null | undefined;
3404
- author_url?: string | null | undefined;
3405
- provider_name?: string | null | undefined;
3406
- provider_url?: string | null | undefined;
3407
- cache_age?: string | number | null;
3408
- thumbnail_url?: string | null | undefined;
3409
- thumbnail_width?: number | null | undefined;
3410
- thumbnail_height?: number | null | undefined;
3411
- html?: string | null | undefined;
3412
- } & {
3413
- __TYPE__: "EmbedContent";
3414
- all: unknown;
3415
- };
3416
- } & {
3417
- label?: string | null | undefined;
3418
- direction?: string | null | undefined;
3419
- }) | ({
3420
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
3421
- content: {
3422
- text: string;
3423
- } & {
3424
- spans?: ({
3425
- data: ({
3426
- __TYPE__: "ImageLink";
3427
- } & {
3428
- id: string;
3429
- url: string;
3430
- height: string;
3431
- width: string;
3432
- size: string;
3433
- name: string;
3434
- kind: string;
3435
- } & {
3436
- date?: string | null | undefined;
3437
- }) | ({
3438
- id: string;
3439
- url: string;
3440
- name: string;
3441
- kind: string;
3442
- size: string;
3443
- } & {
3444
- date?: string | null | undefined;
3445
- } & {
3446
- __TYPE__: "FileLink";
3447
- } & {
3448
- size?: string;
3449
- }) | ({
3450
- __TYPE__: "DocumentLink";
3451
- } & {
3452
- id: string;
3453
- }) | ({
3454
- __TYPE__: "ExternalLink";
3455
- } & {
3456
- url: string;
3457
- } & {
3458
- kind?: "web";
3459
- target?: string | null | undefined;
3460
- preview?: {
3461
- title?: string;
3462
- } | null | undefined;
3463
- });
3464
- start: number;
3465
- end: number;
3466
- type: "hyperlink";
3467
- } | {
3468
- data: string;
3469
- start: number;
3470
- end: number;
3471
- type: "label";
3472
- } | {
3473
- start: number;
3474
- end: number;
3475
- type: "strong" | "em" | "list-item";
3476
- })[];
3477
- };
3478
- } & {
3479
- label?: string;
3480
- direction?: string;
3481
- }))[];
3482
- } | {
3483
- __TYPE__: "SeparatorContent";
3484
- } | {
3485
- __TYPE__: "CompositeSliceContent";
3486
- nonRepeat: {
3487
- [x: string]: {
3488
- type: string;
3489
- __TYPE__: "EmptyContent";
3490
- } | {
3491
- __TYPE__: "BooleanContent";
3492
- value: boolean;
3493
- } | ({
3494
- embed_url: string;
3495
- type: string;
3496
- } & {
3497
- version?: string | number | null;
3498
- title?: string | null | undefined;
3499
- author_name?: string | null | undefined;
3500
- author_url?: string | null | undefined;
3501
- provider_name?: string | null | undefined;
3502
- provider_url?: string | null | undefined;
3503
- cache_age?: string | number | null;
3504
- thumbnail_url?: string | null | undefined;
3505
- thumbnail_width?: number | null | undefined;
3506
- thumbnail_height?: number | null | undefined;
3507
- html?: string | null | undefined;
3508
- } & {
3509
- __TYPE__: "EmbedContent";
3510
- all: unknown;
3511
- }) | {
3512
- type: "Color";
3513
- value: string;
3514
- __TYPE__: "FieldContent";
3515
- } | {
3516
- type: "Date";
3517
- value: string;
3518
- __TYPE__: "FieldContent";
3519
- } | {
3520
- type: "Number";
3521
- value: string;
3522
- __TYPE__: "FieldContent";
3523
- } | {
3524
- type: "Range";
3525
- value: string;
3526
- __TYPE__: "FieldContent";
3527
- } | {
3528
- type: "Select";
3529
- value: string;
3530
- __TYPE__: "FieldContent";
3531
- } | {
3532
- type: "Text";
3533
- value: string;
3534
- __TYPE__: "FieldContent";
3535
- } | {
3536
- type: "Timestamp";
3537
- value: string;
3538
- __TYPE__: "FieldContent";
3539
- } | ({
3540
- position: {
3541
- lat: number;
3542
- lng: number;
3543
- };
3544
- } & {
3545
- __TYPE__: "GeoPointContent";
3546
- }) | ({
3547
- origin: {
3548
- id: string;
3549
- url: string;
3550
- width: number;
3551
- height: number;
3552
- };
3553
- width: number;
3554
- height: number;
3555
- edit: {
3556
- zoom: number;
3557
- crop: {
3558
- x: number;
3559
- y: number;
3560
- };
3561
- background: string;
3562
- };
3563
- } & {
3564
- url?: string;
3565
- credits?: string | null;
3566
- alt?: string | null;
3567
- provider?: string | null | undefined;
3568
- } & {
3569
- thumbnails?: {
3570
- [x: string]: {
3571
- origin: {
3572
- id: string;
3573
- url: string;
3574
- width: number;
3575
- height: number;
3576
- };
3577
- width: number;
3578
- height: number;
3579
- edit: {
3580
- zoom: number;
3581
- crop: {
3582
- x: number;
3583
- y: number;
3584
- };
3585
- background: string;
3586
- };
3587
- } & {
3588
- url?: string;
3589
- credits?: string | null;
3590
- alt?: string | null;
3591
- provider?: string | null | undefined;
2934
+ y: number;
3592
2935
  };
2936
+ background: string;
3593
2937
  };
3594
2938
  } & {
3595
- __TYPE__: "ImageContent";
3596
- }) | {
3597
- __TYPE__: "IntegrationFieldsContent";
3598
- value: string;
3599
- } | {
3600
- __TYPE__: "LinkContent";
3601
- value: ({
2939
+ url?: string;
2940
+ credits?: string | null;
2941
+ alt?: string | null;
2942
+ provider?: string | null | undefined;
2943
+ } & {
2944
+ linkTo?: ({
3602
2945
  __TYPE__: "ImageLink";
3603
2946
  } & {
3604
2947
  id: string;
@@ -3636,171 +2979,104 @@ export declare const isWidgetContent: (u: unknown) => u is {
3636
2979
  preview?: {
3637
2980
  title?: string;
3638
2981
  } | null | undefined;
3639
- });
3640
- } | {
3641
- __TYPE__: "StructuredTextContent";
3642
- value: (({
3643
- type: "image";
3644
- data: {
3645
- origin: {
3646
- id: string;
3647
- url: string;
3648
- width: number;
3649
- height: number;
3650
- };
3651
- width: number;
3652
- height: number;
3653
- edit: {
3654
- zoom: number;
3655
- crop: {
3656
- x: number;
3657
- y: number;
3658
- };
3659
- background: string;
3660
- };
2982
+ }) | null | undefined;
2983
+ };
2984
+ } & {
2985
+ label?: string | null | undefined;
2986
+ direction?: string | null | undefined;
2987
+ }) | ({
2988
+ type: "embed";
2989
+ data: {
2990
+ embed_url: string;
2991
+ type: string;
2992
+ } & {
2993
+ version?: string | number | null;
2994
+ title?: string | null | undefined;
2995
+ author_name?: string | null | undefined;
2996
+ author_url?: string | null | undefined;
2997
+ provider_name?: string | null | undefined;
2998
+ provider_url?: string | null | undefined;
2999
+ cache_age?: string | number | null;
3000
+ thumbnail_url?: string | null | undefined;
3001
+ thumbnail_width?: number | null | undefined;
3002
+ thumbnail_height?: number | null | undefined;
3003
+ html?: string | null | undefined;
3004
+ } & {
3005
+ __TYPE__: "EmbedContent";
3006
+ all: unknown;
3007
+ };
3008
+ } & {
3009
+ label?: string | null | undefined;
3010
+ direction?: string | null | undefined;
3011
+ }) | ({
3012
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
3013
+ content: {
3014
+ text: string;
3015
+ } & {
3016
+ spans?: ({
3017
+ data: ({
3018
+ __TYPE__: "ImageLink";
3661
3019
  } & {
3662
- url?: string;
3663
- credits?: string | null;
3664
- alt?: string | null;
3665
- provider?: string | null | undefined;
3020
+ id: string;
3021
+ url: string;
3022
+ height: string;
3023
+ width: string;
3024
+ size: string;
3025
+ name: string;
3026
+ kind: string;
3666
3027
  } & {
3667
- linkTo?: ({
3668
- __TYPE__: "ImageLink";
3669
- } & {
3670
- id: string;
3671
- url: string;
3672
- height: string;
3673
- width: string;
3674
- size: string;
3675
- name: string;
3676
- kind: string;
3677
- } & {
3678
- date?: string | null | undefined;
3679
- }) | ({
3680
- id: string;
3681
- url: string;
3682
- name: string;
3683
- kind: string;
3684
- size: string;
3685
- } & {
3686
- date?: string | null | undefined;
3687
- } & {
3688
- __TYPE__: "FileLink";
3689
- } & {
3690
- size?: string;
3691
- }) | ({
3692
- __TYPE__: "DocumentLink";
3693
- } & {
3694
- id: string;
3695
- }) | ({
3696
- __TYPE__: "ExternalLink";
3697
- } & {
3698
- url: string;
3699
- } & {
3700
- kind?: "web";
3701
- target?: string | null | undefined;
3702
- preview?: {
3703
- title?: string;
3704
- } | null | undefined;
3705
- }) | null | undefined;
3706
- };
3707
- } & {
3708
- label?: string | null | undefined;
3709
- direction?: string | null | undefined;
3710
- }) | ({
3711
- type: "embed";
3712
- data: {
3713
- embed_url: string;
3714
- type: string;
3028
+ date?: string | null | undefined;
3029
+ }) | ({
3030
+ id: string;
3031
+ url: string;
3032
+ name: string;
3033
+ kind: string;
3034
+ size: string;
3715
3035
  } & {
3716
- version?: string | number | null;
3717
- title?: string | null | undefined;
3718
- author_name?: string | null | undefined;
3719
- author_url?: string | null | undefined;
3720
- provider_name?: string | null | undefined;
3721
- provider_url?: string | null | undefined;
3722
- cache_age?: string | number | null;
3723
- thumbnail_url?: string | null | undefined;
3724
- thumbnail_width?: number | null | undefined;
3725
- thumbnail_height?: number | null | undefined;
3726
- html?: string | null | undefined;
3036
+ date?: string | null | undefined;
3727
3037
  } & {
3728
- __TYPE__: "EmbedContent";
3729
- all: unknown;
3730
- };
3731
- } & {
3732
- label?: string | null | undefined;
3733
- direction?: string | null | undefined;
3734
- }) | ({
3735
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
3736
- content: {
3737
- text: string;
3038
+ __TYPE__: "FileLink";
3738
3039
  } & {
3739
- spans?: ({
3740
- data: ({
3741
- __TYPE__: "ImageLink";
3742
- } & {
3743
- id: string;
3744
- url: string;
3745
- height: string;
3746
- width: string;
3747
- size: string;
3748
- name: string;
3749
- kind: string;
3750
- } & {
3751
- date?: string | null | undefined;
3752
- }) | ({
3753
- id: string;
3754
- url: string;
3755
- name: string;
3756
- kind: string;
3757
- size: string;
3758
- } & {
3759
- date?: string | null | undefined;
3760
- } & {
3761
- __TYPE__: "FileLink";
3762
- } & {
3763
- size?: string;
3764
- }) | ({
3765
- __TYPE__: "DocumentLink";
3766
- } & {
3767
- id: string;
3768
- }) | ({
3769
- __TYPE__: "ExternalLink";
3770
- } & {
3771
- url: string;
3772
- } & {
3773
- kind?: "web";
3774
- target?: string | null | undefined;
3775
- preview?: {
3776
- title?: string;
3777
- } | null | undefined;
3778
- });
3779
- start: number;
3780
- end: number;
3781
- type: "hyperlink";
3782
- } | {
3783
- data: string;
3784
- start: number;
3785
- end: number;
3786
- type: "label";
3787
- } | {
3788
- start: number;
3789
- end: number;
3790
- type: "strong" | "em" | "list-item";
3791
- })[];
3792
- };
3793
- } & {
3794
- label?: string;
3795
- direction?: string;
3796
- }))[];
3797
- } | {
3798
- __TYPE__: "SeparatorContent";
3040
+ size?: string;
3041
+ }) | ({
3042
+ __TYPE__: "DocumentLink";
3043
+ } & {
3044
+ id: string;
3045
+ }) | ({
3046
+ __TYPE__: "ExternalLink";
3047
+ } & {
3048
+ url: string;
3049
+ } & {
3050
+ kind?: "web";
3051
+ target?: string | null | undefined;
3052
+ preview?: {
3053
+ title?: string;
3054
+ } | null | undefined;
3055
+ });
3056
+ start: number;
3057
+ end: number;
3058
+ type: "hyperlink";
3059
+ } | {
3060
+ data: string;
3061
+ start: number;
3062
+ end: number;
3063
+ type: "label";
3064
+ } | {
3065
+ start: number;
3066
+ end: number;
3067
+ type: "strong" | "em" | "list-item";
3068
+ })[];
3799
3069
  };
3800
- };
3801
- repeat: {
3802
- __TYPE__: "GroupItemContent";
3803
- value: [string, {
3070
+ } & {
3071
+ label?: string;
3072
+ direction?: string;
3073
+ }))[];
3074
+ } | {
3075
+ __TYPE__: "SeparatorContent";
3076
+ } | GroupContent | {
3077
+ __TYPE__: "CompositeSliceContent";
3078
+ nonRepeat: {
3079
+ [x: string]: {
3804
3080
  type: string;
3805
3081
  __TYPE__: "EmptyContent";
3806
3082
  } | {
@@ -4112,13 +3388,11 @@ export declare const isWidgetContent: (u: unknown) => u is {
4112
3388
  }))[];
4113
3389
  } | {
4114
3390
  __TYPE__: "SeparatorContent";
4115
- }][];
4116
- }[];
4117
- } | {
4118
- __TYPE__: "SharedSliceContent";
4119
- variation: string;
4120
- primary: {
4121
- [x: string]: {
3391
+ };
3392
+ };
3393
+ repeat: {
3394
+ __TYPE__: "GroupItemContent";
3395
+ value: [string, {
4122
3396
  type: string;
4123
3397
  __TYPE__: "EmptyContent";
4124
3398
  } | {
@@ -4430,11 +3704,13 @@ export declare const isWidgetContent: (u: unknown) => u is {
4430
3704
  }))[];
4431
3705
  } | {
4432
3706
  __TYPE__: "SeparatorContent";
4433
- } | GroupContent;
4434
- };
4435
- items: {
4436
- __TYPE__: "GroupItemContent";
4437
- value: [string, {
3707
+ } | GroupContent][];
3708
+ }[];
3709
+ } | {
3710
+ __TYPE__: "SharedSliceContent";
3711
+ variation: string;
3712
+ primary: {
3713
+ [x: string]: {
4438
3714
  type: string;
4439
3715
  __TYPE__: "EmptyContent";
4440
3716
  } | {
@@ -4746,11 +4022,9 @@ export declare const isWidgetContent: (u: unknown) => u is {
4746
4022
  }))[];
4747
4023
  } | {
4748
4024
  __TYPE__: "SeparatorContent";
4749
- }][];
4750
- }[];
4751
- } | {
4752
- __TYPE__: "GroupContentType";
4753
- value: {
4025
+ } | GroupContent;
4026
+ };
4027
+ items: {
4754
4028
  __TYPE__: "GroupItemContent";
4755
4029
  value: [string, {
4756
4030
  type: string;
@@ -5064,7 +4338,7 @@ export declare const isWidgetContent: (u: unknown) => u is {
5064
4338
  }))[];
5065
4339
  } | {
5066
4340
  __TYPE__: "SeparatorContent";
5067
- }][];
4341
+ } | GroupContent][];
5068
4342
  }[];
5069
4343
  };
5070
4344
  }[];
@@ -5157,302 +4431,79 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
5157
4431
  thumbnails?: {
5158
4432
  [x: string]: {
5159
4433
  origin: {
5160
- id: string;
5161
- url: string;
5162
- width: number;
5163
- height: number;
5164
- };
5165
- width: number;
5166
- height: number;
5167
- edit: {
5168
- zoom: number;
5169
- crop: {
5170
- x: number;
5171
- y: number;
5172
- };
5173
- background: string;
5174
- };
5175
- } & {
5176
- url?: string;
5177
- credits?: string | null;
5178
- alt?: string | null;
5179
- provider?: string | null | undefined;
5180
- };
5181
- };
5182
- } & {
5183
- __TYPE__: "ImageContent";
5184
- }> | import("fp-ts/lib/Either").Right<{
5185
- __TYPE__: "IntegrationFieldsContent";
5186
- value: string;
5187
- }> | import("fp-ts/lib/Either").Right<{
5188
- __TYPE__: "LinkContent";
5189
- value: ({
5190
- __TYPE__: "ImageLink";
5191
- } & {
5192
- id: string;
5193
- url: string;
5194
- height: string;
5195
- width: string;
5196
- size: string;
5197
- name: string;
5198
- kind: string;
5199
- } & {
5200
- date?: string | null | undefined;
5201
- }) | ({
5202
- id: string;
5203
- url: string;
5204
- name: string;
5205
- kind: string;
5206
- size: string;
5207
- } & {
5208
- date?: string | null | undefined;
5209
- } & {
5210
- __TYPE__: "FileLink";
5211
- } & {
5212
- size?: string;
5213
- }) | ({
5214
- __TYPE__: "DocumentLink";
5215
- } & {
5216
- id: string;
5217
- }) | ({
5218
- __TYPE__: "ExternalLink";
5219
- } & {
5220
- url: string;
5221
- } & {
5222
- kind?: "web";
5223
- target?: string | null | undefined;
5224
- preview?: {
5225
- title?: string;
5226
- } | null | undefined;
5227
- });
5228
- }> | import("fp-ts/lib/Either").Right<{
5229
- __TYPE__: "StructuredTextContent";
5230
- value: (({
5231
- type: "image";
5232
- data: {
5233
- origin: {
5234
- id: string;
5235
- url: string;
5236
- width: number;
5237
- height: number;
5238
- };
5239
- width: number;
5240
- height: number;
5241
- edit: {
5242
- zoom: number;
5243
- crop: {
5244
- x: number;
5245
- y: number;
5246
- };
5247
- background: string;
5248
- };
5249
- } & {
5250
- url?: string;
5251
- credits?: string | null;
5252
- alt?: string | null;
5253
- provider?: string | null | undefined;
5254
- } & {
5255
- linkTo?: ({
5256
- __TYPE__: "ImageLink";
5257
- } & {
5258
- id: string;
5259
- url: string;
5260
- height: string;
5261
- width: string;
5262
- size: string;
5263
- name: string;
5264
- kind: string;
5265
- } & {
5266
- date?: string | null | undefined;
5267
- }) | ({
5268
- id: string;
5269
- url: string;
5270
- name: string;
5271
- kind: string;
5272
- size: string;
5273
- } & {
5274
- date?: string | null | undefined;
5275
- } & {
5276
- __TYPE__: "FileLink";
5277
- } & {
5278
- size?: string;
5279
- }) | ({
5280
- __TYPE__: "DocumentLink";
5281
- } & {
5282
- id: string;
5283
- }) | ({
5284
- __TYPE__: "ExternalLink";
5285
- } & {
5286
- url: string;
5287
- } & {
5288
- kind?: "web";
5289
- target?: string | null | undefined;
5290
- preview?: {
5291
- title?: string;
5292
- } | null | undefined;
5293
- }) | null | undefined;
5294
- };
5295
- } & {
5296
- label?: string | null | undefined;
5297
- direction?: string | null | undefined;
5298
- }) | ({
5299
- type: "embed";
5300
- data: {
5301
- embed_url: string;
5302
- type: string;
5303
- } & {
5304
- version?: string | number | null;
5305
- title?: string | null | undefined;
5306
- author_name?: string | null | undefined;
5307
- author_url?: string | null | undefined;
5308
- provider_name?: string | null | undefined;
5309
- provider_url?: string | null | undefined;
5310
- cache_age?: string | number | null;
5311
- thumbnail_url?: string | null | undefined;
5312
- thumbnail_width?: number | null | undefined;
5313
- thumbnail_height?: number | null | undefined;
5314
- html?: string | null | undefined;
5315
- } & {
5316
- __TYPE__: "EmbedContent";
5317
- all: unknown;
5318
- };
5319
- } & {
5320
- label?: string | null | undefined;
5321
- direction?: string | null | undefined;
5322
- }) | ({
5323
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5324
- content: {
5325
- text: string;
5326
- } & {
5327
- spans?: ({
5328
- data: ({
5329
- __TYPE__: "ImageLink";
5330
- } & {
5331
- id: string;
5332
- url: string;
5333
- height: string;
5334
- width: string;
5335
- size: string;
5336
- name: string;
5337
- kind: string;
5338
- } & {
5339
- date?: string | null | undefined;
5340
- }) | ({
5341
- id: string;
5342
- url: string;
5343
- name: string;
5344
- kind: string;
5345
- size: string;
5346
- } & {
5347
- date?: string | null | undefined;
5348
- } & {
5349
- __TYPE__: "FileLink";
5350
- } & {
5351
- size?: string;
5352
- }) | ({
5353
- __TYPE__: "DocumentLink";
5354
- } & {
5355
- id: string;
5356
- }) | ({
5357
- __TYPE__: "ExternalLink";
5358
- } & {
5359
- url: string;
5360
- } & {
5361
- kind?: "web";
5362
- target?: string | null | undefined;
5363
- preview?: {
5364
- title?: string;
5365
- } | null | undefined;
5366
- });
5367
- start: number;
5368
- end: number;
5369
- type: "hyperlink";
5370
- } | {
5371
- data: string;
5372
- start: number;
5373
- end: number;
5374
- type: "label";
5375
- } | {
5376
- start: number;
5377
- end: number;
5378
- type: "strong" | "em" | "list-item";
5379
- })[];
4434
+ id: string;
4435
+ url: string;
4436
+ width: number;
4437
+ height: number;
4438
+ };
4439
+ width: number;
4440
+ height: number;
4441
+ edit: {
4442
+ zoom: number;
4443
+ crop: {
4444
+ x: number;
4445
+ y: number;
4446
+ };
4447
+ background: string;
4448
+ };
4449
+ } & {
4450
+ url?: string;
4451
+ credits?: string | null;
4452
+ alt?: string | null;
4453
+ provider?: string | null | undefined;
5380
4454
  };
5381
- } & {
5382
- label?: string;
5383
- direction?: string;
5384
- }))[];
4455
+ };
4456
+ } & {
4457
+ __TYPE__: "ImageContent";
5385
4458
  }> | import("fp-ts/lib/Either").Right<{
5386
- __TYPE__: "SeparatorContent";
5387
- }> | import("fp-ts/lib/Either").Right<GroupContent> | import("fp-ts/lib/Either").Right<{
5388
- __TYPE__: "UIDContent";
4459
+ __TYPE__: "IntegrationFieldsContent";
5389
4460
  value: string;
5390
4461
  }> | import("fp-ts/lib/Either").Right<{
5391
- __TYPE__: "SliceContentType";
5392
- value: {
5393
- key: string;
4462
+ __TYPE__: "LinkContent";
4463
+ value: ({
4464
+ __TYPE__: "ImageLink";
4465
+ } & {
4466
+ id: string;
4467
+ url: string;
4468
+ height: string;
4469
+ width: string;
4470
+ size: string;
5394
4471
  name: string;
5395
- maybeLabel: string | undefined;
5396
- widget: {
5397
- type: string;
5398
- __TYPE__: "EmptyContent";
5399
- } | {
5400
- __TYPE__: "BooleanContent";
5401
- value: boolean;
5402
- } | ({
5403
- embed_url: string;
5404
- type: string;
5405
- } & {
5406
- version?: string | number | null;
5407
- title?: string | null | undefined;
5408
- author_name?: string | null | undefined;
5409
- author_url?: string | null | undefined;
5410
- provider_name?: string | null | undefined;
5411
- provider_url?: string | null | undefined;
5412
- cache_age?: string | number | null;
5413
- thumbnail_url?: string | null | undefined;
5414
- thumbnail_width?: number | null | undefined;
5415
- thumbnail_height?: number | null | undefined;
5416
- html?: string | null | undefined;
5417
- } & {
5418
- __TYPE__: "EmbedContent";
5419
- all: unknown;
5420
- }) | {
5421
- type: "Color";
5422
- value: string;
5423
- __TYPE__: "FieldContent";
5424
- } | {
5425
- type: "Date";
5426
- value: string;
5427
- __TYPE__: "FieldContent";
5428
- } | {
5429
- type: "Number";
5430
- value: string;
5431
- __TYPE__: "FieldContent";
5432
- } | {
5433
- type: "Range";
5434
- value: string;
5435
- __TYPE__: "FieldContent";
5436
- } | {
5437
- type: "Select";
5438
- value: string;
5439
- __TYPE__: "FieldContent";
5440
- } | {
5441
- type: "Text";
5442
- value: string;
5443
- __TYPE__: "FieldContent";
5444
- } | {
5445
- type: "Timestamp";
5446
- value: string;
5447
- __TYPE__: "FieldContent";
5448
- } | ({
5449
- position: {
5450
- lat: number;
5451
- lng: number;
5452
- };
5453
- } & {
5454
- __TYPE__: "GeoPointContent";
5455
- }) | ({
4472
+ kind: string;
4473
+ } & {
4474
+ date?: string | null | undefined;
4475
+ }) | ({
4476
+ id: string;
4477
+ url: string;
4478
+ name: string;
4479
+ kind: string;
4480
+ size: string;
4481
+ } & {
4482
+ date?: string | null | undefined;
4483
+ } & {
4484
+ __TYPE__: "FileLink";
4485
+ } & {
4486
+ size?: string;
4487
+ }) | ({
4488
+ __TYPE__: "DocumentLink";
4489
+ } & {
4490
+ id: string;
4491
+ }) | ({
4492
+ __TYPE__: "ExternalLink";
4493
+ } & {
4494
+ url: string;
4495
+ } & {
4496
+ kind?: "web";
4497
+ target?: string | null | undefined;
4498
+ preview?: {
4499
+ title?: string;
4500
+ } | null | undefined;
4501
+ });
4502
+ }> | import("fp-ts/lib/Either").Right<{
4503
+ __TYPE__: "StructuredTextContent";
4504
+ value: (({
4505
+ type: "image";
4506
+ data: {
5456
4507
  origin: {
5457
4508
  id: string;
5458
4509
  url: string;
@@ -5475,39 +4526,7 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
5475
4526
  alt?: string | null;
5476
4527
  provider?: string | null | undefined;
5477
4528
  } & {
5478
- thumbnails?: {
5479
- [x: string]: {
5480
- origin: {
5481
- id: string;
5482
- url: string;
5483
- width: number;
5484
- height: number;
5485
- };
5486
- width: number;
5487
- height: number;
5488
- edit: {
5489
- zoom: number;
5490
- crop: {
5491
- x: number;
5492
- y: number;
5493
- };
5494
- background: string;
5495
- };
5496
- } & {
5497
- url?: string;
5498
- credits?: string | null;
5499
- alt?: string | null;
5500
- provider?: string | null | undefined;
5501
- };
5502
- };
5503
- } & {
5504
- __TYPE__: "ImageContent";
5505
- }) | {
5506
- __TYPE__: "IntegrationFieldsContent";
5507
- value: string;
5508
- } | {
5509
- __TYPE__: "LinkContent";
5510
- value: ({
4529
+ linkTo?: ({
5511
4530
  __TYPE__: "ImageLink";
5512
4531
  } & {
5513
4532
  id: string;
@@ -5545,229 +4564,193 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
5545
4564
  preview?: {
5546
4565
  title?: string;
5547
4566
  } | null | undefined;
5548
- });
5549
- } | {
5550
- __TYPE__: "StructuredTextContent";
5551
- value: (({
5552
- type: "image";
5553
- data: {
5554
- origin: {
5555
- id: string;
5556
- url: string;
5557
- width: number;
5558
- height: number;
5559
- };
5560
- width: number;
5561
- height: number;
5562
- edit: {
5563
- zoom: number;
5564
- crop: {
5565
- x: number;
5566
- y: number;
5567
- };
5568
- background: string;
5569
- };
5570
- } & {
5571
- url?: string;
5572
- credits?: string | null;
5573
- alt?: string | null;
5574
- provider?: string | null | undefined;
5575
- } & {
5576
- linkTo?: ({
5577
- __TYPE__: "ImageLink";
5578
- } & {
5579
- id: string;
5580
- url: string;
5581
- height: string;
5582
- width: string;
5583
- size: string;
5584
- name: string;
5585
- kind: string;
5586
- } & {
5587
- date?: string | null | undefined;
5588
- }) | ({
5589
- id: string;
5590
- url: string;
5591
- name: string;
5592
- kind: string;
5593
- size: string;
5594
- } & {
5595
- date?: string | null | undefined;
5596
- } & {
5597
- __TYPE__: "FileLink";
5598
- } & {
5599
- size?: string;
5600
- }) | ({
5601
- __TYPE__: "DocumentLink";
5602
- } & {
5603
- id: string;
5604
- }) | ({
5605
- __TYPE__: "ExternalLink";
5606
- } & {
5607
- url: string;
5608
- } & {
5609
- kind?: "web";
5610
- target?: string | null | undefined;
5611
- preview?: {
5612
- title?: string;
5613
- } | null | undefined;
5614
- }) | null | undefined;
5615
- };
5616
- } & {
5617
- label?: string | null | undefined;
5618
- direction?: string | null | undefined;
5619
- }) | ({
5620
- type: "embed";
5621
- data: {
5622
- embed_url: string;
5623
- type: string;
4567
+ }) | null | undefined;
4568
+ };
4569
+ } & {
4570
+ label?: string | null | undefined;
4571
+ direction?: string | null | undefined;
4572
+ }) | ({
4573
+ type: "embed";
4574
+ data: {
4575
+ embed_url: string;
4576
+ type: string;
4577
+ } & {
4578
+ version?: string | number | null;
4579
+ title?: string | null | undefined;
4580
+ author_name?: string | null | undefined;
4581
+ author_url?: string | null | undefined;
4582
+ provider_name?: string | null | undefined;
4583
+ provider_url?: string | null | undefined;
4584
+ cache_age?: string | number | null;
4585
+ thumbnail_url?: string | null | undefined;
4586
+ thumbnail_width?: number | null | undefined;
4587
+ thumbnail_height?: number | null | undefined;
4588
+ html?: string | null | undefined;
4589
+ } & {
4590
+ __TYPE__: "EmbedContent";
4591
+ all: unknown;
4592
+ };
4593
+ } & {
4594
+ label?: string | null | undefined;
4595
+ direction?: string | null | undefined;
4596
+ }) | ({
4597
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
4598
+ content: {
4599
+ text: string;
4600
+ } & {
4601
+ spans?: ({
4602
+ data: ({
4603
+ __TYPE__: "ImageLink";
5624
4604
  } & {
5625
- version?: string | number | null;
5626
- title?: string | null | undefined;
5627
- author_name?: string | null | undefined;
5628
- author_url?: string | null | undefined;
5629
- provider_name?: string | null | undefined;
5630
- provider_url?: string | null | undefined;
5631
- cache_age?: string | number | null;
5632
- thumbnail_url?: string | null | undefined;
5633
- thumbnail_width?: number | null | undefined;
5634
- thumbnail_height?: number | null | undefined;
5635
- html?: string | null | undefined;
4605
+ id: string;
4606
+ url: string;
4607
+ height: string;
4608
+ width: string;
4609
+ size: string;
4610
+ name: string;
4611
+ kind: string;
5636
4612
  } & {
5637
- __TYPE__: "EmbedContent";
5638
- all: unknown;
5639
- };
5640
- } & {
5641
- label?: string | null | undefined;
5642
- direction?: string | null | undefined;
5643
- }) | ({
5644
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5645
- content: {
5646
- text: string;
4613
+ date?: string | null | undefined;
4614
+ }) | ({
4615
+ id: string;
4616
+ url: string;
4617
+ name: string;
4618
+ kind: string;
4619
+ size: string;
5647
4620
  } & {
5648
- spans?: ({
5649
- data: ({
5650
- __TYPE__: "ImageLink";
5651
- } & {
5652
- id: string;
5653
- url: string;
5654
- height: string;
5655
- width: string;
5656
- size: string;
5657
- name: string;
5658
- kind: string;
5659
- } & {
5660
- date?: string | null | undefined;
5661
- }) | ({
5662
- id: string;
5663
- url: string;
5664
- name: string;
5665
- kind: string;
5666
- size: string;
5667
- } & {
5668
- date?: string | null | undefined;
5669
- } & {
5670
- __TYPE__: "FileLink";
5671
- } & {
5672
- size?: string;
5673
- }) | ({
5674
- __TYPE__: "DocumentLink";
5675
- } & {
5676
- id: string;
5677
- }) | ({
5678
- __TYPE__: "ExternalLink";
5679
- } & {
5680
- url: string;
5681
- } & {
5682
- kind?: "web";
5683
- target?: string | null | undefined;
5684
- preview?: {
5685
- title?: string;
5686
- } | null | undefined;
5687
- });
5688
- start: number;
5689
- end: number;
5690
- type: "hyperlink";
5691
- } | {
5692
- data: string;
5693
- start: number;
5694
- end: number;
5695
- type: "label";
5696
- } | {
5697
- start: number;
5698
- end: number;
5699
- type: "strong" | "em" | "list-item";
5700
- })[];
5701
- };
5702
- } & {
5703
- label?: string;
5704
- direction?: string;
5705
- }))[];
5706
- } | {
5707
- __TYPE__: "SeparatorContent";
5708
- } | {
5709
- __TYPE__: "CompositeSliceContent";
5710
- nonRepeat: {
5711
- [x: string]: {
5712
- type: string;
5713
- __TYPE__: "EmptyContent";
5714
- } | {
5715
- __TYPE__: "BooleanContent";
5716
- value: boolean;
5717
- } | ({
5718
- embed_url: string;
5719
- type: string;
4621
+ date?: string | null | undefined;
5720
4622
  } & {
5721
- version?: string | number | null;
5722
- title?: string | null | undefined;
5723
- author_name?: string | null | undefined;
5724
- author_url?: string | null | undefined;
5725
- provider_name?: string | null | undefined;
5726
- provider_url?: string | null | undefined;
5727
- cache_age?: string | number | null;
5728
- thumbnail_url?: string | null | undefined;
5729
- thumbnail_width?: number | null | undefined;
5730
- thumbnail_height?: number | null | undefined;
5731
- html?: string | null | undefined;
4623
+ __TYPE__: "FileLink";
5732
4624
  } & {
5733
- __TYPE__: "EmbedContent";
5734
- all: unknown;
5735
- }) | {
5736
- type: "Color";
5737
- value: string;
5738
- __TYPE__: "FieldContent";
5739
- } | {
5740
- type: "Date";
5741
- value: string;
5742
- __TYPE__: "FieldContent";
5743
- } | {
5744
- type: "Number";
5745
- value: string;
5746
- __TYPE__: "FieldContent";
5747
- } | {
5748
- type: "Range";
5749
- value: string;
5750
- __TYPE__: "FieldContent";
5751
- } | {
5752
- type: "Select";
5753
- value: string;
5754
- __TYPE__: "FieldContent";
5755
- } | {
5756
- type: "Text";
5757
- value: string;
5758
- __TYPE__: "FieldContent";
5759
- } | {
5760
- type: "Timestamp";
5761
- value: string;
5762
- __TYPE__: "FieldContent";
5763
- } | ({
5764
- position: {
5765
- lat: number;
5766
- lng: number;
5767
- };
4625
+ size?: string;
4626
+ }) | ({
4627
+ __TYPE__: "DocumentLink";
5768
4628
  } & {
5769
- __TYPE__: "GeoPointContent";
4629
+ id: string;
5770
4630
  }) | ({
4631
+ __TYPE__: "ExternalLink";
4632
+ } & {
4633
+ url: string;
4634
+ } & {
4635
+ kind?: "web";
4636
+ target?: string | null | undefined;
4637
+ preview?: {
4638
+ title?: string;
4639
+ } | null | undefined;
4640
+ });
4641
+ start: number;
4642
+ end: number;
4643
+ type: "hyperlink";
4644
+ } | {
4645
+ data: string;
4646
+ start: number;
4647
+ end: number;
4648
+ type: "label";
4649
+ } | {
4650
+ start: number;
4651
+ end: number;
4652
+ type: "strong" | "em" | "list-item";
4653
+ })[];
4654
+ };
4655
+ } & {
4656
+ label?: string;
4657
+ direction?: string;
4658
+ }))[];
4659
+ }> | import("fp-ts/lib/Either").Right<{
4660
+ __TYPE__: "SeparatorContent";
4661
+ }> | import("fp-ts/lib/Either").Right<GroupContent> | import("fp-ts/lib/Either").Right<{
4662
+ __TYPE__: "UIDContent";
4663
+ value: string;
4664
+ }> | import("fp-ts/lib/Either").Right<{
4665
+ __TYPE__: "SliceContentType";
4666
+ value: {
4667
+ key: string;
4668
+ name: string;
4669
+ maybeLabel: string | undefined;
4670
+ widget: {
4671
+ type: string;
4672
+ __TYPE__: "EmptyContent";
4673
+ } | {
4674
+ __TYPE__: "BooleanContent";
4675
+ value: boolean;
4676
+ } | ({
4677
+ embed_url: string;
4678
+ type: string;
4679
+ } & {
4680
+ version?: string | number | null;
4681
+ title?: string | null | undefined;
4682
+ author_name?: string | null | undefined;
4683
+ author_url?: string | null | undefined;
4684
+ provider_name?: string | null | undefined;
4685
+ provider_url?: string | null | undefined;
4686
+ cache_age?: string | number | null;
4687
+ thumbnail_url?: string | null | undefined;
4688
+ thumbnail_width?: number | null | undefined;
4689
+ thumbnail_height?: number | null | undefined;
4690
+ html?: string | null | undefined;
4691
+ } & {
4692
+ __TYPE__: "EmbedContent";
4693
+ all: unknown;
4694
+ }) | {
4695
+ type: "Color";
4696
+ value: string;
4697
+ __TYPE__: "FieldContent";
4698
+ } | {
4699
+ type: "Date";
4700
+ value: string;
4701
+ __TYPE__: "FieldContent";
4702
+ } | {
4703
+ type: "Number";
4704
+ value: string;
4705
+ __TYPE__: "FieldContent";
4706
+ } | {
4707
+ type: "Range";
4708
+ value: string;
4709
+ __TYPE__: "FieldContent";
4710
+ } | {
4711
+ type: "Select";
4712
+ value: string;
4713
+ __TYPE__: "FieldContent";
4714
+ } | {
4715
+ type: "Text";
4716
+ value: string;
4717
+ __TYPE__: "FieldContent";
4718
+ } | {
4719
+ type: "Timestamp";
4720
+ value: string;
4721
+ __TYPE__: "FieldContent";
4722
+ } | ({
4723
+ position: {
4724
+ lat: number;
4725
+ lng: number;
4726
+ };
4727
+ } & {
4728
+ __TYPE__: "GeoPointContent";
4729
+ }) | ({
4730
+ origin: {
4731
+ id: string;
4732
+ url: string;
4733
+ width: number;
4734
+ height: number;
4735
+ };
4736
+ width: number;
4737
+ height: number;
4738
+ edit: {
4739
+ zoom: number;
4740
+ crop: {
4741
+ x: number;
4742
+ y: number;
4743
+ };
4744
+ background: string;
4745
+ };
4746
+ } & {
4747
+ url?: string;
4748
+ credits?: string | null;
4749
+ alt?: string | null;
4750
+ provider?: string | null | undefined;
4751
+ } & {
4752
+ thumbnails?: {
4753
+ [x: string]: {
5771
4754
  origin: {
5772
4755
  id: string;
5773
4756
  url: string;
@@ -5789,242 +4772,217 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
5789
4772
  credits?: string | null;
5790
4773
  alt?: string | null;
5791
4774
  provider?: string | null | undefined;
5792
- } & {
5793
- thumbnails?: {
5794
- [x: string]: {
5795
- origin: {
5796
- id: string;
5797
- url: string;
5798
- width: number;
5799
- height: number;
5800
- };
5801
- width: number;
5802
- height: number;
5803
- edit: {
5804
- zoom: number;
5805
- crop: {
5806
- x: number;
5807
- y: number;
5808
- };
5809
- background: string;
5810
- };
5811
- } & {
5812
- url?: string;
5813
- credits?: string | null;
5814
- alt?: string | null;
5815
- provider?: string | null | undefined;
5816
- };
5817
- };
5818
- } & {
5819
- __TYPE__: "ImageContent";
5820
- }) | {
5821
- __TYPE__: "IntegrationFieldsContent";
5822
- value: string;
5823
- } | {
5824
- __TYPE__: "LinkContent";
5825
- value: ({
5826
- __TYPE__: "ImageLink";
5827
- } & {
5828
- id: string;
5829
- url: string;
5830
- height: string;
5831
- width: string;
5832
- size: string;
5833
- name: string;
5834
- kind: string;
5835
- } & {
5836
- date?: string | null | undefined;
5837
- }) | ({
5838
- id: string;
5839
- url: string;
5840
- name: string;
5841
- kind: string;
5842
- size: string;
5843
- } & {
5844
- date?: string | null | undefined;
5845
- } & {
5846
- __TYPE__: "FileLink";
5847
- } & {
5848
- size?: string;
5849
- }) | ({
5850
- __TYPE__: "DocumentLink";
5851
- } & {
4775
+ };
4776
+ };
4777
+ } & {
4778
+ __TYPE__: "ImageContent";
4779
+ }) | {
4780
+ __TYPE__: "IntegrationFieldsContent";
4781
+ value: string;
4782
+ } | {
4783
+ __TYPE__: "LinkContent";
4784
+ value: ({
4785
+ __TYPE__: "ImageLink";
4786
+ } & {
4787
+ id: string;
4788
+ url: string;
4789
+ height: string;
4790
+ width: string;
4791
+ size: string;
4792
+ name: string;
4793
+ kind: string;
4794
+ } & {
4795
+ date?: string | null | undefined;
4796
+ }) | ({
4797
+ id: string;
4798
+ url: string;
4799
+ name: string;
4800
+ kind: string;
4801
+ size: string;
4802
+ } & {
4803
+ date?: string | null | undefined;
4804
+ } & {
4805
+ __TYPE__: "FileLink";
4806
+ } & {
4807
+ size?: string;
4808
+ }) | ({
4809
+ __TYPE__: "DocumentLink";
4810
+ } & {
4811
+ id: string;
4812
+ }) | ({
4813
+ __TYPE__: "ExternalLink";
4814
+ } & {
4815
+ url: string;
4816
+ } & {
4817
+ kind?: "web";
4818
+ target?: string | null | undefined;
4819
+ preview?: {
4820
+ title?: string;
4821
+ } | null | undefined;
4822
+ });
4823
+ } | {
4824
+ __TYPE__: "StructuredTextContent";
4825
+ value: (({
4826
+ type: "image";
4827
+ data: {
4828
+ origin: {
5852
4829
  id: string;
5853
- }) | ({
5854
- __TYPE__: "ExternalLink";
5855
- } & {
5856
4830
  url: string;
5857
- } & {
5858
- kind?: "web";
5859
- target?: string | null | undefined;
5860
- preview?: {
5861
- title?: string;
5862
- } | null | undefined;
5863
- });
5864
- } | {
5865
- __TYPE__: "StructuredTextContent";
5866
- value: (({
5867
- type: "image";
5868
- data: {
5869
- origin: {
5870
- id: string;
5871
- url: string;
5872
- width: number;
5873
- height: number;
5874
- };
5875
- width: number;
5876
- height: number;
5877
- edit: {
5878
- zoom: number;
5879
- crop: {
5880
- x: number;
5881
- y: number;
5882
- };
5883
- background: string;
5884
- };
5885
- } & {
5886
- url?: string;
5887
- credits?: string | null;
5888
- alt?: string | null;
5889
- provider?: string | null | undefined;
5890
- } & {
5891
- linkTo?: ({
5892
- __TYPE__: "ImageLink";
5893
- } & {
5894
- id: string;
5895
- url: string;
5896
- height: string;
5897
- width: string;
5898
- size: string;
5899
- name: string;
5900
- kind: string;
5901
- } & {
5902
- date?: string | null | undefined;
5903
- }) | ({
5904
- id: string;
5905
- url: string;
5906
- name: string;
5907
- kind: string;
5908
- size: string;
5909
- } & {
5910
- date?: string | null | undefined;
5911
- } & {
5912
- __TYPE__: "FileLink";
5913
- } & {
5914
- size?: string;
5915
- }) | ({
5916
- __TYPE__: "DocumentLink";
5917
- } & {
5918
- id: string;
5919
- }) | ({
5920
- __TYPE__: "ExternalLink";
5921
- } & {
5922
- url: string;
5923
- } & {
5924
- kind?: "web";
5925
- target?: string | null | undefined;
5926
- preview?: {
5927
- title?: string;
5928
- } | null | undefined;
5929
- }) | null | undefined;
4831
+ width: number;
4832
+ height: number;
4833
+ };
4834
+ width: number;
4835
+ height: number;
4836
+ edit: {
4837
+ zoom: number;
4838
+ crop: {
4839
+ x: number;
4840
+ y: number;
5930
4841
  };
4842
+ background: string;
4843
+ };
4844
+ } & {
4845
+ url?: string;
4846
+ credits?: string | null;
4847
+ alt?: string | null;
4848
+ provider?: string | null | undefined;
4849
+ } & {
4850
+ linkTo?: ({
4851
+ __TYPE__: "ImageLink";
5931
4852
  } & {
5932
- label?: string | null | undefined;
5933
- direction?: string | null | undefined;
4853
+ id: string;
4854
+ url: string;
4855
+ height: string;
4856
+ width: string;
4857
+ size: string;
4858
+ name: string;
4859
+ kind: string;
4860
+ } & {
4861
+ date?: string | null | undefined;
5934
4862
  }) | ({
5935
- type: "embed";
5936
- data: {
5937
- embed_url: string;
5938
- type: string;
5939
- } & {
5940
- version?: string | number | null;
5941
- title?: string | null | undefined;
5942
- author_name?: string | null | undefined;
5943
- author_url?: string | null | undefined;
5944
- provider_name?: string | null | undefined;
5945
- provider_url?: string | null | undefined;
5946
- cache_age?: string | number | null;
5947
- thumbnail_url?: string | null | undefined;
5948
- thumbnail_width?: number | null | undefined;
5949
- thumbnail_height?: number | null | undefined;
5950
- html?: string | null | undefined;
5951
- } & {
5952
- __TYPE__: "EmbedContent";
5953
- all: unknown;
5954
- };
4863
+ id: string;
4864
+ url: string;
4865
+ name: string;
4866
+ kind: string;
4867
+ size: string;
5955
4868
  } & {
5956
- label?: string | null | undefined;
5957
- direction?: string | null | undefined;
4869
+ date?: string | null | undefined;
4870
+ } & {
4871
+ __TYPE__: "FileLink";
4872
+ } & {
4873
+ size?: string;
5958
4874
  }) | ({
5959
- type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
5960
- content: {
5961
- text: string;
5962
- } & {
5963
- spans?: ({
5964
- data: ({
5965
- __TYPE__: "ImageLink";
5966
- } & {
5967
- id: string;
5968
- url: string;
5969
- height: string;
5970
- width: string;
5971
- size: string;
5972
- name: string;
5973
- kind: string;
5974
- } & {
5975
- date?: string | null | undefined;
5976
- }) | ({
5977
- id: string;
5978
- url: string;
5979
- name: string;
5980
- kind: string;
5981
- size: string;
5982
- } & {
5983
- date?: string | null | undefined;
5984
- } & {
5985
- __TYPE__: "FileLink";
5986
- } & {
5987
- size?: string;
5988
- }) | ({
5989
- __TYPE__: "DocumentLink";
5990
- } & {
5991
- id: string;
5992
- }) | ({
5993
- __TYPE__: "ExternalLink";
5994
- } & {
5995
- url: string;
5996
- } & {
5997
- kind?: "web";
5998
- target?: string | null | undefined;
5999
- preview?: {
6000
- title?: string;
6001
- } | null | undefined;
6002
- });
6003
- start: number;
6004
- end: number;
6005
- type: "hyperlink";
6006
- } | {
6007
- data: string;
6008
- start: number;
6009
- end: number;
6010
- type: "label";
6011
- } | {
6012
- start: number;
6013
- end: number;
6014
- type: "strong" | "em" | "list-item";
6015
- })[];
6016
- };
4875
+ __TYPE__: "DocumentLink";
6017
4876
  } & {
6018
- label?: string;
6019
- direction?: string;
6020
- }))[];
6021
- } | {
6022
- __TYPE__: "SeparatorContent";
4877
+ id: string;
4878
+ }) | ({
4879
+ __TYPE__: "ExternalLink";
4880
+ } & {
4881
+ url: string;
4882
+ } & {
4883
+ kind?: "web";
4884
+ target?: string | null | undefined;
4885
+ preview?: {
4886
+ title?: string;
4887
+ } | null | undefined;
4888
+ }) | null | undefined;
6023
4889
  };
6024
- };
6025
- repeat: {
6026
- __TYPE__: "GroupItemContent";
6027
- value: [string, {
4890
+ } & {
4891
+ label?: string | null | undefined;
4892
+ direction?: string | null | undefined;
4893
+ }) | ({
4894
+ type: "embed";
4895
+ data: {
4896
+ embed_url: string;
4897
+ type: string;
4898
+ } & {
4899
+ version?: string | number | null;
4900
+ title?: string | null | undefined;
4901
+ author_name?: string | null | undefined;
4902
+ author_url?: string | null | undefined;
4903
+ provider_name?: string | null | undefined;
4904
+ provider_url?: string | null | undefined;
4905
+ cache_age?: string | number | null;
4906
+ thumbnail_url?: string | null | undefined;
4907
+ thumbnail_width?: number | null | undefined;
4908
+ thumbnail_height?: number | null | undefined;
4909
+ html?: string | null | undefined;
4910
+ } & {
4911
+ __TYPE__: "EmbedContent";
4912
+ all: unknown;
4913
+ };
4914
+ } & {
4915
+ label?: string | null | undefined;
4916
+ direction?: string | null | undefined;
4917
+ }) | ({
4918
+ type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
4919
+ content: {
4920
+ text: string;
4921
+ } & {
4922
+ spans?: ({
4923
+ data: ({
4924
+ __TYPE__: "ImageLink";
4925
+ } & {
4926
+ id: string;
4927
+ url: string;
4928
+ height: string;
4929
+ width: string;
4930
+ size: string;
4931
+ name: string;
4932
+ kind: string;
4933
+ } & {
4934
+ date?: string | null | undefined;
4935
+ }) | ({
4936
+ id: string;
4937
+ url: string;
4938
+ name: string;
4939
+ kind: string;
4940
+ size: string;
4941
+ } & {
4942
+ date?: string | null | undefined;
4943
+ } & {
4944
+ __TYPE__: "FileLink";
4945
+ } & {
4946
+ size?: string;
4947
+ }) | ({
4948
+ __TYPE__: "DocumentLink";
4949
+ } & {
4950
+ id: string;
4951
+ }) | ({
4952
+ __TYPE__: "ExternalLink";
4953
+ } & {
4954
+ url: string;
4955
+ } & {
4956
+ kind?: "web";
4957
+ target?: string | null | undefined;
4958
+ preview?: {
4959
+ title?: string;
4960
+ } | null | undefined;
4961
+ });
4962
+ start: number;
4963
+ end: number;
4964
+ type: "hyperlink";
4965
+ } | {
4966
+ data: string;
4967
+ start: number;
4968
+ end: number;
4969
+ type: "label";
4970
+ } | {
4971
+ start: number;
4972
+ end: number;
4973
+ type: "strong" | "em" | "list-item";
4974
+ })[];
4975
+ };
4976
+ } & {
4977
+ label?: string;
4978
+ direction?: string;
4979
+ }))[];
4980
+ } | {
4981
+ __TYPE__: "SeparatorContent";
4982
+ } | GroupContent | {
4983
+ __TYPE__: "CompositeSliceContent";
4984
+ nonRepeat: {
4985
+ [x: string]: {
6028
4986
  type: string;
6029
4987
  __TYPE__: "EmptyContent";
6030
4988
  } | {
@@ -6336,13 +5294,11 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
6336
5294
  }))[];
6337
5295
  } | {
6338
5296
  __TYPE__: "SeparatorContent";
6339
- }][];
6340
- }[];
6341
- } | {
6342
- __TYPE__: "SharedSliceContent";
6343
- variation: string;
6344
- primary: {
6345
- [x: string]: {
5297
+ };
5298
+ };
5299
+ repeat: {
5300
+ __TYPE__: "GroupItemContent";
5301
+ value: [string, {
6346
5302
  type: string;
6347
5303
  __TYPE__: "EmptyContent";
6348
5304
  } | {
@@ -6654,11 +5610,13 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
6654
5610
  }))[];
6655
5611
  } | {
6656
5612
  __TYPE__: "SeparatorContent";
6657
- } | GroupContent;
6658
- };
6659
- items: {
6660
- __TYPE__: "GroupItemContent";
6661
- value: [string, {
5613
+ } | GroupContent][];
5614
+ }[];
5615
+ } | {
5616
+ __TYPE__: "SharedSliceContent";
5617
+ variation: string;
5618
+ primary: {
5619
+ [x: string]: {
6662
5620
  type: string;
6663
5621
  __TYPE__: "EmptyContent";
6664
5622
  } | {
@@ -6970,11 +5928,9 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
6970
5928
  }))[];
6971
5929
  } | {
6972
5930
  __TYPE__: "SeparatorContent";
6973
- }][];
6974
- }[];
6975
- } | {
6976
- __TYPE__: "GroupContentType";
6977
- value: {
5931
+ } | GroupContent;
5932
+ };
5933
+ items: {
6978
5934
  __TYPE__: "GroupItemContent";
6979
5935
  value: [string, {
6980
5936
  type: string;
@@ -7288,7 +6244,7 @@ export declare const WidgetLegacy: (ctx: LegacyContentCtx) => {
7288
6244
  }))[];
7289
6245
  } | {
7290
6246
  __TYPE__: "SeparatorContent";
7291
- }][];
6247
+ } | GroupContent][];
7292
6248
  }[];
7293
6249
  };
7294
6250
  }[];