@prismicio/types-internal 2.5.0-alpha.4 → 2.5.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.
- package/README.md +13 -41
- package/lib/_internal/utils.d.ts +2 -2
- package/lib/content/Document.d.ts +1375 -331
- package/lib/content/fields/GroupContent.d.ts +1 -1
- package/lib/content/fields/GroupContent.js +1 -4
- package/lib/content/fields/WidgetContent.d.ts +1375 -331
- package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +727 -0
- package/lib/content/fields/nestable/RichTextContent/TextBlock.js +80 -0
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +4 -4
- package/lib/content/fields/slices/Slice/CompositeSliceContent.js +1 -2
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +2158 -5
- package/lib/content/fields/slices/Slice/RepeatableContent.js +148 -6
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +4 -4
- package/lib/content/fields/slices/Slice/SharedSliceContent.js +1 -1
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +1049 -6
- package/lib/content/fields/slices/Slice/SimpleSliceContent.js +10 -7
- package/lib/content/fields/slices/Slice/index.d.ts +2279 -1552
- package/lib/content/fields/slices/Slice/index.js +1 -0
- package/lib/content/fields/slices/SliceItem.d.ts +949 -223
- package/lib/content/fields/slices/SlicesContent.d.ts +2088 -1044
- package/lib/customtypes/widgets/slices/SliceWidget.d.ts +327 -0
- package/lib/customtypes/widgets/slices/SliceWidget.js +8 -0
- package/lib/validators/function.js +1 -8
- package/package.json +1 -1
- package/src/_internal/utils.ts +2 -1
- package/src/content/fields/GroupContent.ts +1 -4
- package/src/content/fields/slices/Slice/CompositeSliceContent.ts +8 -4
- package/src/content/fields/slices/Slice/RepeatableContent.ts +242 -11
- package/src/content/fields/slices/Slice/SharedSliceContent.ts +7 -7
- package/src/content/fields/slices/Slice/SimpleSliceContent.ts +21 -17
- package/src/content/fields/slices/Slice/index.ts +1 -0
- package/src/content/fields/slices/SlicesContent.ts +2 -2
- package/src/validators/function.ts +1 -11
|
@@ -822,7 +822,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
822
822
|
}>>]>>;
|
|
823
823
|
repeat: t.ArrayC<t.ExactC<t.TypeC<{
|
|
824
824
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
825
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.
|
|
825
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
|
|
826
826
|
type: t.StringC;
|
|
827
827
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
828
828
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -1224,7 +1224,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1224
1224
|
}>]>>]>>;
|
|
1225
1225
|
}>>, t.ExactC<t.TypeC<{
|
|
1226
1226
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
1227
|
-
}>>]
|
|
1227
|
+
}>>]>]>>;
|
|
1228
1228
|
}>>>;
|
|
1229
1229
|
}>>, t.ExactC<t.TypeC<{
|
|
1230
1230
|
__TYPE__: t.LiteralC<"SharedSliceContent">;
|
|
@@ -1634,7 +1634,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1634
1634
|
}>>]>, t.Type<import("./fields").GroupContent, import("./fields").GroupContent, unknown>]>>;
|
|
1635
1635
|
items: t.ArrayC<t.ExactC<t.TypeC<{
|
|
1636
1636
|
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
1637
|
-
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.
|
|
1637
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
|
|
1638
1638
|
type: t.StringC;
|
|
1639
1639
|
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
1640
1640
|
}>>, t.ExactC<t.TypeC<{
|
|
@@ -2036,7 +2036,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2036
2036
|
}>]>>]>>;
|
|
2037
2037
|
}>>, t.ExactC<t.TypeC<{
|
|
2038
2038
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
2039
|
-
}>>]
|
|
2039
|
+
}>>]>]>>;
|
|
2040
2040
|
}>>>;
|
|
2041
2041
|
}>>, t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
2042
2042
|
type: t.StringC;
|
|
@@ -2440,7 +2440,415 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2440
2440
|
}>]>>]>>;
|
|
2441
2441
|
}>>, t.ExactC<t.TypeC<{
|
|
2442
2442
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
2443
|
-
}>>]>, t.
|
|
2443
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
2444
|
+
__TYPE__: t.LiteralC<"GroupContentType">;
|
|
2445
|
+
value: t.ArrayC<t.ExactC<t.TypeC<{
|
|
2446
|
+
__TYPE__: t.LiteralC<"GroupItemContent">;
|
|
2447
|
+
value: t.ArrayC<t.TupleC<[t.StringC, t.UnionC<[t.ExactC<t.TypeC<{
|
|
2448
|
+
type: t.StringC;
|
|
2449
|
+
__TYPE__: t.LiteralC<"EmptyContent">;
|
|
2450
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2451
|
+
__TYPE__: t.LiteralC<"BooleanContent">;
|
|
2452
|
+
value: t.BooleanC;
|
|
2453
|
+
}>>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2454
|
+
embed_url: t.StringC;
|
|
2455
|
+
type: t.StringC;
|
|
2456
|
+
}>, t.PartialC<{
|
|
2457
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
2458
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2459
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2460
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2461
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2462
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2463
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
2464
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2465
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
2466
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
2467
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2468
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
2469
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
2470
|
+
all: t.UnknownC;
|
|
2471
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
2472
|
+
type: t.LiteralC<"Text">;
|
|
2473
|
+
value: t.Type<string, string, unknown>;
|
|
2474
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
2475
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2476
|
+
type: t.LiteralC<"Timestamp">;
|
|
2477
|
+
value: t.Type<string, string, unknown>;
|
|
2478
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
2479
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2480
|
+
type: t.LiteralC<"Select">;
|
|
2481
|
+
value: t.Type<string, string, unknown>;
|
|
2482
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
2483
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2484
|
+
type: t.LiteralC<"Range">;
|
|
2485
|
+
value: t.Type<string, string, unknown>;
|
|
2486
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
2487
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2488
|
+
type: t.LiteralC<"Number">;
|
|
2489
|
+
value: t.Type<string, string, unknown>;
|
|
2490
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
2491
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2492
|
+
type: t.LiteralC<"Date">;
|
|
2493
|
+
value: t.Type<string, string, unknown>;
|
|
2494
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
2495
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2496
|
+
type: t.LiteralC<"Color">;
|
|
2497
|
+
value: t.Type<string, string, unknown>;
|
|
2498
|
+
__TYPE__: t.LiteralC<"FieldContent">;
|
|
2499
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2500
|
+
position: t.ExactC<t.TypeC<{
|
|
2501
|
+
lat: t.NumberC;
|
|
2502
|
+
lng: t.NumberC;
|
|
2503
|
+
}>>;
|
|
2504
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2505
|
+
__TYPE__: t.LiteralC<"GeoPointContent">;
|
|
2506
|
+
}>>]>, t.IntersectionC<[t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2507
|
+
origin: t.ExactC<t.TypeC<{
|
|
2508
|
+
id: t.StringC;
|
|
2509
|
+
url: t.StringC;
|
|
2510
|
+
width: t.NumberC;
|
|
2511
|
+
height: t.NumberC;
|
|
2512
|
+
}>>;
|
|
2513
|
+
width: t.NumberC;
|
|
2514
|
+
height: t.NumberC;
|
|
2515
|
+
edit: t.TypeC<{
|
|
2516
|
+
zoom: t.NumberC;
|
|
2517
|
+
crop: t.TypeC<{
|
|
2518
|
+
x: t.NumberC;
|
|
2519
|
+
y: t.NumberC;
|
|
2520
|
+
}>;
|
|
2521
|
+
background: t.StringC;
|
|
2522
|
+
}>;
|
|
2523
|
+
}>, t.PartialC<{
|
|
2524
|
+
url: t.StringC;
|
|
2525
|
+
credits: t.Type<string | null, string | null, unknown>;
|
|
2526
|
+
alt: t.Type<string | null, string | null, unknown>;
|
|
2527
|
+
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2528
|
+
}>]>>, t.PartialC<{
|
|
2529
|
+
thumbnails: t.RecordC<t.StringC, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2530
|
+
origin: t.ExactC<t.TypeC<{
|
|
2531
|
+
id: t.StringC;
|
|
2532
|
+
url: t.StringC;
|
|
2533
|
+
width: t.NumberC;
|
|
2534
|
+
height: t.NumberC;
|
|
2535
|
+
}>>;
|
|
2536
|
+
width: t.NumberC;
|
|
2537
|
+
height: t.NumberC;
|
|
2538
|
+
edit: t.TypeC<{
|
|
2539
|
+
zoom: t.NumberC;
|
|
2540
|
+
crop: t.TypeC<{
|
|
2541
|
+
x: t.NumberC;
|
|
2542
|
+
y: t.NumberC;
|
|
2543
|
+
}>;
|
|
2544
|
+
background: t.StringC;
|
|
2545
|
+
}>;
|
|
2546
|
+
}>, t.PartialC<{
|
|
2547
|
+
url: t.StringC;
|
|
2548
|
+
credits: t.Type<string | null, string | null, unknown>;
|
|
2549
|
+
alt: t.Type<string | null, string | null, unknown>;
|
|
2550
|
+
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2551
|
+
}>]>>>;
|
|
2552
|
+
}>]>, t.ExactC<t.TypeC<{
|
|
2553
|
+
__TYPE__: t.LiteralC<"ImageContent">;
|
|
2554
|
+
}>>]>, t.ExactC<t.TypeC<{
|
|
2555
|
+
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
2556
|
+
value: t.StringC;
|
|
2557
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2558
|
+
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2559
|
+
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2560
|
+
__TYPE__: t.LiteralC<"ImageLink">;
|
|
2561
|
+
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2562
|
+
id: t.StringC;
|
|
2563
|
+
url: t.StringC;
|
|
2564
|
+
height: t.StringC;
|
|
2565
|
+
width: t.StringC;
|
|
2566
|
+
size: t.StringC;
|
|
2567
|
+
name: t.StringC;
|
|
2568
|
+
kind: t.StringC;
|
|
2569
|
+
}>, t.PartialC<{
|
|
2570
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2571
|
+
}>]>>]>, t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2572
|
+
id: t.StringC;
|
|
2573
|
+
url: t.StringC;
|
|
2574
|
+
name: t.StringC;
|
|
2575
|
+
kind: t.StringC;
|
|
2576
|
+
size: t.StringC;
|
|
2577
|
+
}>, t.PartialC<{
|
|
2578
|
+
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2579
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2580
|
+
__TYPE__: t.LiteralC<"FileLink">;
|
|
2581
|
+
}>, t.PartialC<{
|
|
2582
|
+
size: t.StringC;
|
|
2583
|
+
}>]>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2584
|
+
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
2585
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2586
|
+
id: t.Type<string, string, unknown>;
|
|
2587
|
+
}>>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2588
|
+
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
2589
|
+
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2590
|
+
url: t.StringC;
|
|
2591
|
+
}>, t.PartialC<{
|
|
2592
|
+
kind: t.LiteralC<"web">;
|
|
2593
|
+
target: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2594
|
+
preview: t.UnionC<[t.Type<{
|
|
2595
|
+
title?: string;
|
|
2596
|
+
}, {
|
|
2597
|
+
title?: string;
|
|
2598
|
+
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
2599
|
+
}>]>>]>]>;
|
|
2600
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2601
|
+
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
2602
|
+
value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2603
|
+
type: t.LiteralC<"image">;
|
|
2604
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2605
|
+
origin: t.ExactC<t.TypeC<{
|
|
2606
|
+
id: t.StringC;
|
|
2607
|
+
url: t.StringC;
|
|
2608
|
+
width: t.NumberC;
|
|
2609
|
+
height: t.NumberC;
|
|
2610
|
+
}>>;
|
|
2611
|
+
width: t.NumberC;
|
|
2612
|
+
height: t.NumberC;
|
|
2613
|
+
edit: t.TypeC<{
|
|
2614
|
+
zoom: t.NumberC;
|
|
2615
|
+
crop: t.TypeC<{
|
|
2616
|
+
x: t.NumberC;
|
|
2617
|
+
y: t.NumberC;
|
|
2618
|
+
}>;
|
|
2619
|
+
background: t.StringC;
|
|
2620
|
+
}>;
|
|
2621
|
+
}>, t.PartialC<{
|
|
2622
|
+
url: t.StringC;
|
|
2623
|
+
credits: t.Type<string | null, string | null, unknown>;
|
|
2624
|
+
alt: t.Type<string | null, string | null, unknown>;
|
|
2625
|
+
provider: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2626
|
+
}>]>>, t.PartialC<{
|
|
2627
|
+
linkTo: t.UnionC<[t.Type<({
|
|
2628
|
+
__TYPE__: "ImageLink";
|
|
2629
|
+
} & {
|
|
2630
|
+
id: string;
|
|
2631
|
+
url: string;
|
|
2632
|
+
height: string;
|
|
2633
|
+
width: string;
|
|
2634
|
+
size: string;
|
|
2635
|
+
name: string;
|
|
2636
|
+
kind: string;
|
|
2637
|
+
} & {
|
|
2638
|
+
date?: string | null | undefined;
|
|
2639
|
+
}) | ({
|
|
2640
|
+
id: string;
|
|
2641
|
+
url: string;
|
|
2642
|
+
name: string;
|
|
2643
|
+
kind: string;
|
|
2644
|
+
size: string;
|
|
2645
|
+
} & {
|
|
2646
|
+
date?: string | null | undefined;
|
|
2647
|
+
} & {
|
|
2648
|
+
__TYPE__: "FileLink";
|
|
2649
|
+
} & {
|
|
2650
|
+
size?: string;
|
|
2651
|
+
}) | ({
|
|
2652
|
+
__TYPE__: "DocumentLink";
|
|
2653
|
+
} & {
|
|
2654
|
+
id: string;
|
|
2655
|
+
}) | ({
|
|
2656
|
+
__TYPE__: "ExternalLink";
|
|
2657
|
+
} & {
|
|
2658
|
+
url: string;
|
|
2659
|
+
} & {
|
|
2660
|
+
kind?: "web";
|
|
2661
|
+
target?: string | null | undefined;
|
|
2662
|
+
preview?: {
|
|
2663
|
+
title?: string;
|
|
2664
|
+
} | null | undefined;
|
|
2665
|
+
}), ({
|
|
2666
|
+
__TYPE__: "ImageLink";
|
|
2667
|
+
} & {
|
|
2668
|
+
id: string;
|
|
2669
|
+
url: string;
|
|
2670
|
+
height: string;
|
|
2671
|
+
width: string;
|
|
2672
|
+
size: string;
|
|
2673
|
+
name: string;
|
|
2674
|
+
kind: string;
|
|
2675
|
+
} & {
|
|
2676
|
+
date?: string | null | undefined;
|
|
2677
|
+
}) | ({
|
|
2678
|
+
id: string;
|
|
2679
|
+
url: string;
|
|
2680
|
+
name: string;
|
|
2681
|
+
kind: string;
|
|
2682
|
+
size: string;
|
|
2683
|
+
} & {
|
|
2684
|
+
date?: string | null | undefined;
|
|
2685
|
+
} & {
|
|
2686
|
+
__TYPE__: "FileLink";
|
|
2687
|
+
} & {
|
|
2688
|
+
size?: string;
|
|
2689
|
+
}) | ({
|
|
2690
|
+
__TYPE__: "DocumentLink";
|
|
2691
|
+
} & {
|
|
2692
|
+
id: string;
|
|
2693
|
+
}) | ({
|
|
2694
|
+
__TYPE__: "ExternalLink";
|
|
2695
|
+
} & {
|
|
2696
|
+
url: string;
|
|
2697
|
+
} & {
|
|
2698
|
+
kind?: "web";
|
|
2699
|
+
target?: string | null | undefined;
|
|
2700
|
+
preview?: {
|
|
2701
|
+
title?: string;
|
|
2702
|
+
} | null | undefined;
|
|
2703
|
+
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
2704
|
+
}>]>;
|
|
2705
|
+
}>, t.PartialC<{
|
|
2706
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2707
|
+
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2708
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2709
|
+
type: t.LiteralC<"embed">;
|
|
2710
|
+
data: t.IntersectionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2711
|
+
embed_url: t.StringC;
|
|
2712
|
+
type: t.StringC;
|
|
2713
|
+
}>, t.PartialC<{
|
|
2714
|
+
version: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
2715
|
+
title: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2716
|
+
author_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2717
|
+
author_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2718
|
+
provider_name: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2719
|
+
provider_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2720
|
+
cache_age: t.UnionC<[t.StringC, t.NumberC, t.NullC]>;
|
|
2721
|
+
thumbnail_url: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2722
|
+
thumbnail_width: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
2723
|
+
thumbnail_height: t.UnionC<[t.Type<number, number, unknown>, t.NullC, t.UndefinedC]>;
|
|
2724
|
+
html: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2725
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
2726
|
+
__TYPE__: t.LiteralC<"EmbedContent">;
|
|
2727
|
+
all: t.UnknownC;
|
|
2728
|
+
}>>]>;
|
|
2729
|
+
}>, t.PartialC<{
|
|
2730
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2731
|
+
direction: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2732
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2733
|
+
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>;
|
|
2734
|
+
content: t.IntersectionC<[t.TypeC<{
|
|
2735
|
+
text: t.StringC;
|
|
2736
|
+
}>, t.PartialC<{
|
|
2737
|
+
spans: t.Type<({
|
|
2738
|
+
data: ({
|
|
2739
|
+
__TYPE__: "ImageLink";
|
|
2740
|
+
} & {
|
|
2741
|
+
id: string;
|
|
2742
|
+
url: string;
|
|
2743
|
+
height: string;
|
|
2744
|
+
width: string;
|
|
2745
|
+
size: string;
|
|
2746
|
+
name: string;
|
|
2747
|
+
kind: string;
|
|
2748
|
+
} & {
|
|
2749
|
+
date?: string | null | undefined;
|
|
2750
|
+
}) | ({
|
|
2751
|
+
id: string;
|
|
2752
|
+
url: string;
|
|
2753
|
+
name: string;
|
|
2754
|
+
kind: string;
|
|
2755
|
+
size: string;
|
|
2756
|
+
} & {
|
|
2757
|
+
date?: string | null | undefined;
|
|
2758
|
+
} & {
|
|
2759
|
+
__TYPE__: "FileLink";
|
|
2760
|
+
} & {
|
|
2761
|
+
size?: string;
|
|
2762
|
+
}) | ({
|
|
2763
|
+
__TYPE__: "DocumentLink";
|
|
2764
|
+
} & {
|
|
2765
|
+
id: string;
|
|
2766
|
+
}) | ({
|
|
2767
|
+
__TYPE__: "ExternalLink";
|
|
2768
|
+
} & {
|
|
2769
|
+
url: string;
|
|
2770
|
+
} & {
|
|
2771
|
+
kind?: "web";
|
|
2772
|
+
target?: string | null | undefined;
|
|
2773
|
+
preview?: {
|
|
2774
|
+
title?: string;
|
|
2775
|
+
} | null | undefined;
|
|
2776
|
+
});
|
|
2777
|
+
start: number;
|
|
2778
|
+
end: number;
|
|
2779
|
+
type: "hyperlink";
|
|
2780
|
+
} | {
|
|
2781
|
+
data: string;
|
|
2782
|
+
start: number;
|
|
2783
|
+
end: number;
|
|
2784
|
+
type: "label";
|
|
2785
|
+
} | {
|
|
2786
|
+
start: number;
|
|
2787
|
+
end: number;
|
|
2788
|
+
type: "strong" | "em" | "list-item";
|
|
2789
|
+
})[], ({
|
|
2790
|
+
data: ({
|
|
2791
|
+
__TYPE__: "ImageLink";
|
|
2792
|
+
} & {
|
|
2793
|
+
id: string;
|
|
2794
|
+
url: string;
|
|
2795
|
+
height: string;
|
|
2796
|
+
width: string;
|
|
2797
|
+
size: string;
|
|
2798
|
+
name: string;
|
|
2799
|
+
kind: string;
|
|
2800
|
+
} & {
|
|
2801
|
+
date?: string | null | undefined;
|
|
2802
|
+
}) | ({
|
|
2803
|
+
id: string;
|
|
2804
|
+
url: string;
|
|
2805
|
+
name: string;
|
|
2806
|
+
kind: string;
|
|
2807
|
+
size: string;
|
|
2808
|
+
} & {
|
|
2809
|
+
date?: string | null | undefined;
|
|
2810
|
+
} & {
|
|
2811
|
+
__TYPE__: "FileLink";
|
|
2812
|
+
} & {
|
|
2813
|
+
size?: string;
|
|
2814
|
+
}) | ({
|
|
2815
|
+
__TYPE__: "DocumentLink";
|
|
2816
|
+
} & {
|
|
2817
|
+
id: string;
|
|
2818
|
+
}) | ({
|
|
2819
|
+
__TYPE__: "ExternalLink";
|
|
2820
|
+
} & {
|
|
2821
|
+
url: string;
|
|
2822
|
+
} & {
|
|
2823
|
+
kind?: "web";
|
|
2824
|
+
target?: string | null | undefined;
|
|
2825
|
+
preview?: {
|
|
2826
|
+
title?: string;
|
|
2827
|
+
} | null | undefined;
|
|
2828
|
+
});
|
|
2829
|
+
start: number;
|
|
2830
|
+
end: number;
|
|
2831
|
+
type: "hyperlink";
|
|
2832
|
+
} | {
|
|
2833
|
+
data: string;
|
|
2834
|
+
start: number;
|
|
2835
|
+
end: number;
|
|
2836
|
+
type: "label";
|
|
2837
|
+
} | {
|
|
2838
|
+
start: number;
|
|
2839
|
+
end: number;
|
|
2840
|
+
type: "strong" | "em" | "list-item";
|
|
2841
|
+
})[], unknown>;
|
|
2842
|
+
}>]>;
|
|
2843
|
+
}>, t.PartialC<{
|
|
2844
|
+
label: t.StringC;
|
|
2845
|
+
direction: t.StringC;
|
|
2846
|
+
}>]>>]>>;
|
|
2847
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2848
|
+
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
2849
|
+
}>>]>]>>;
|
|
2850
|
+
}>>>;
|
|
2851
|
+
}>>]>]>;
|
|
2444
2852
|
}>>;
|
|
2445
2853
|
}>]>>;
|
|
2446
2854
|
export declare type Document = t.TypeOf<typeof Document>;
|
|
@@ -3000,104 +3408,420 @@ export declare const DocumentLegacy: {
|
|
|
3000
3408
|
preview?: {
|
|
3001
3409
|
title?: string;
|
|
3002
3410
|
} | null | undefined;
|
|
3003
|
-
}) | null | undefined;
|
|
3004
|
-
};
|
|
3005
|
-
} & {
|
|
3006
|
-
label?: string | null | undefined;
|
|
3007
|
-
direction?: string | null | undefined;
|
|
3008
|
-
}) | ({
|
|
3009
|
-
type: "embed";
|
|
3010
|
-
data: {
|
|
3011
|
-
embed_url: string;
|
|
3012
|
-
type: string;
|
|
3013
|
-
} & {
|
|
3014
|
-
version?: string | number | null;
|
|
3015
|
-
title?: string | null | undefined;
|
|
3016
|
-
author_name?: string | null | undefined;
|
|
3017
|
-
author_url?: string | null | undefined;
|
|
3018
|
-
provider_name?: string | null | undefined;
|
|
3019
|
-
provider_url?: string | null | undefined;
|
|
3020
|
-
cache_age?: string | number | null;
|
|
3021
|
-
thumbnail_url?: string | null | undefined;
|
|
3022
|
-
thumbnail_width?: number | null | undefined;
|
|
3023
|
-
thumbnail_height?: number | null | undefined;
|
|
3024
|
-
html?: string | null | undefined;
|
|
3025
|
-
} & {
|
|
3026
|
-
__TYPE__: "EmbedContent";
|
|
3027
|
-
all: unknown;
|
|
3028
|
-
};
|
|
3029
|
-
} & {
|
|
3030
|
-
label?: string | null | undefined;
|
|
3031
|
-
direction?: string | null | undefined;
|
|
3032
|
-
}) | ({
|
|
3033
|
-
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
3034
|
-
content: {
|
|
3035
|
-
text: string;
|
|
3036
|
-
} & {
|
|
3037
|
-
spans?: ({
|
|
3038
|
-
data: ({
|
|
3039
|
-
__TYPE__: "ImageLink";
|
|
3040
|
-
} & {
|
|
3041
|
-
id: string;
|
|
3042
|
-
url: string;
|
|
3043
|
-
height: string;
|
|
3044
|
-
width: string;
|
|
3045
|
-
size: string;
|
|
3046
|
-
name: string;
|
|
3047
|
-
kind: string;
|
|
3048
|
-
} & {
|
|
3049
|
-
date?: string | null | undefined;
|
|
3050
|
-
}) | ({
|
|
3051
|
-
id: string;
|
|
3052
|
-
url: string;
|
|
3053
|
-
name: string;
|
|
3054
|
-
kind: string;
|
|
3055
|
-
size: string;
|
|
3056
|
-
} & {
|
|
3057
|
-
date?: string | null | undefined;
|
|
3411
|
+
}) | null | undefined;
|
|
3412
|
+
};
|
|
3413
|
+
} & {
|
|
3414
|
+
label?: string | null | undefined;
|
|
3415
|
+
direction?: string | null | undefined;
|
|
3416
|
+
}) | ({
|
|
3417
|
+
type: "embed";
|
|
3418
|
+
data: {
|
|
3419
|
+
embed_url: string;
|
|
3420
|
+
type: string;
|
|
3421
|
+
} & {
|
|
3422
|
+
version?: string | number | null;
|
|
3423
|
+
title?: string | null | undefined;
|
|
3424
|
+
author_name?: string | null | undefined;
|
|
3425
|
+
author_url?: string | null | undefined;
|
|
3426
|
+
provider_name?: string | null | undefined;
|
|
3427
|
+
provider_url?: string | null | undefined;
|
|
3428
|
+
cache_age?: string | number | null;
|
|
3429
|
+
thumbnail_url?: string | null | undefined;
|
|
3430
|
+
thumbnail_width?: number | null | undefined;
|
|
3431
|
+
thumbnail_height?: number | null | undefined;
|
|
3432
|
+
html?: string | null | undefined;
|
|
3433
|
+
} & {
|
|
3434
|
+
__TYPE__: "EmbedContent";
|
|
3435
|
+
all: unknown;
|
|
3436
|
+
};
|
|
3437
|
+
} & {
|
|
3438
|
+
label?: string | null | undefined;
|
|
3439
|
+
direction?: string | null | undefined;
|
|
3440
|
+
}) | ({
|
|
3441
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
3442
|
+
content: {
|
|
3443
|
+
text: string;
|
|
3444
|
+
} & {
|
|
3445
|
+
spans?: ({
|
|
3446
|
+
data: ({
|
|
3447
|
+
__TYPE__: "ImageLink";
|
|
3448
|
+
} & {
|
|
3449
|
+
id: string;
|
|
3450
|
+
url: string;
|
|
3451
|
+
height: string;
|
|
3452
|
+
width: string;
|
|
3453
|
+
size: string;
|
|
3454
|
+
name: string;
|
|
3455
|
+
kind: string;
|
|
3456
|
+
} & {
|
|
3457
|
+
date?: string | null | undefined;
|
|
3458
|
+
}) | ({
|
|
3459
|
+
id: string;
|
|
3460
|
+
url: string;
|
|
3461
|
+
name: string;
|
|
3462
|
+
kind: string;
|
|
3463
|
+
size: string;
|
|
3464
|
+
} & {
|
|
3465
|
+
date?: string | null | undefined;
|
|
3466
|
+
} & {
|
|
3467
|
+
__TYPE__: "FileLink";
|
|
3468
|
+
} & {
|
|
3469
|
+
size?: string;
|
|
3470
|
+
}) | ({
|
|
3471
|
+
__TYPE__: "DocumentLink";
|
|
3472
|
+
} & {
|
|
3473
|
+
id: string;
|
|
3474
|
+
}) | ({
|
|
3475
|
+
__TYPE__: "ExternalLink";
|
|
3476
|
+
} & {
|
|
3477
|
+
url: string;
|
|
3478
|
+
} & {
|
|
3479
|
+
kind?: "web";
|
|
3480
|
+
target?: string | null | undefined;
|
|
3481
|
+
preview?: {
|
|
3482
|
+
title?: string;
|
|
3483
|
+
} | null | undefined;
|
|
3484
|
+
});
|
|
3485
|
+
start: number;
|
|
3486
|
+
end: number;
|
|
3487
|
+
type: "hyperlink";
|
|
3488
|
+
} | {
|
|
3489
|
+
data: string;
|
|
3490
|
+
start: number;
|
|
3491
|
+
end: number;
|
|
3492
|
+
type: "label";
|
|
3493
|
+
} | {
|
|
3494
|
+
start: number;
|
|
3495
|
+
end: number;
|
|
3496
|
+
type: "strong" | "em" | "list-item";
|
|
3497
|
+
})[];
|
|
3498
|
+
};
|
|
3499
|
+
} & {
|
|
3500
|
+
label?: string;
|
|
3501
|
+
direction?: string;
|
|
3502
|
+
}))[];
|
|
3503
|
+
} | {
|
|
3504
|
+
__TYPE__: "SeparatorContent";
|
|
3505
|
+
} | {
|
|
3506
|
+
__TYPE__: "CompositeSliceContent";
|
|
3507
|
+
nonRepeat: {
|
|
3508
|
+
[x: string]: {
|
|
3509
|
+
type: string;
|
|
3510
|
+
__TYPE__: "EmptyContent";
|
|
3511
|
+
} | {
|
|
3512
|
+
__TYPE__: "BooleanContent";
|
|
3513
|
+
value: boolean;
|
|
3514
|
+
} | ({
|
|
3515
|
+
embed_url: string;
|
|
3516
|
+
type: string;
|
|
3517
|
+
} & {
|
|
3518
|
+
version?: string | number | null;
|
|
3519
|
+
title?: string | null | undefined;
|
|
3520
|
+
author_name?: string | null | undefined;
|
|
3521
|
+
author_url?: string | null | undefined;
|
|
3522
|
+
provider_name?: string | null | undefined;
|
|
3523
|
+
provider_url?: string | null | undefined;
|
|
3524
|
+
cache_age?: string | number | null;
|
|
3525
|
+
thumbnail_url?: string | null | undefined;
|
|
3526
|
+
thumbnail_width?: number | null | undefined;
|
|
3527
|
+
thumbnail_height?: number | null | undefined;
|
|
3528
|
+
html?: string | null | undefined;
|
|
3529
|
+
} & {
|
|
3530
|
+
__TYPE__: "EmbedContent";
|
|
3531
|
+
all: unknown;
|
|
3532
|
+
}) | {
|
|
3533
|
+
type: "Color";
|
|
3534
|
+
value: string;
|
|
3535
|
+
__TYPE__: "FieldContent";
|
|
3536
|
+
} | {
|
|
3537
|
+
type: "Date";
|
|
3538
|
+
value: string;
|
|
3539
|
+
__TYPE__: "FieldContent";
|
|
3540
|
+
} | {
|
|
3541
|
+
type: "Number";
|
|
3542
|
+
value: string;
|
|
3543
|
+
__TYPE__: "FieldContent";
|
|
3544
|
+
} | {
|
|
3545
|
+
type: "Range";
|
|
3546
|
+
value: string;
|
|
3547
|
+
__TYPE__: "FieldContent";
|
|
3548
|
+
} | {
|
|
3549
|
+
type: "Select";
|
|
3550
|
+
value: string;
|
|
3551
|
+
__TYPE__: "FieldContent";
|
|
3552
|
+
} | {
|
|
3553
|
+
type: "Text";
|
|
3554
|
+
value: string;
|
|
3555
|
+
__TYPE__: "FieldContent";
|
|
3556
|
+
} | {
|
|
3557
|
+
type: "Timestamp";
|
|
3558
|
+
value: string;
|
|
3559
|
+
__TYPE__: "FieldContent";
|
|
3560
|
+
} | ({
|
|
3561
|
+
position: {
|
|
3562
|
+
lat: number;
|
|
3563
|
+
lng: number;
|
|
3564
|
+
};
|
|
3565
|
+
} & {
|
|
3566
|
+
__TYPE__: "GeoPointContent";
|
|
3567
|
+
}) | ({
|
|
3568
|
+
origin: {
|
|
3569
|
+
id: string;
|
|
3570
|
+
url: string;
|
|
3571
|
+
width: number;
|
|
3572
|
+
height: number;
|
|
3573
|
+
};
|
|
3574
|
+
width: number;
|
|
3575
|
+
height: number;
|
|
3576
|
+
edit: {
|
|
3577
|
+
zoom: number;
|
|
3578
|
+
crop: {
|
|
3579
|
+
x: number;
|
|
3580
|
+
y: number;
|
|
3581
|
+
};
|
|
3582
|
+
background: string;
|
|
3583
|
+
};
|
|
3584
|
+
} & {
|
|
3585
|
+
url?: string;
|
|
3586
|
+
credits?: string | null;
|
|
3587
|
+
alt?: string | null;
|
|
3588
|
+
provider?: string | null | undefined;
|
|
3589
|
+
} & {
|
|
3590
|
+
thumbnails?: {
|
|
3591
|
+
[x: string]: {
|
|
3592
|
+
origin: {
|
|
3593
|
+
id: string;
|
|
3594
|
+
url: string;
|
|
3595
|
+
width: number;
|
|
3596
|
+
height: number;
|
|
3597
|
+
};
|
|
3598
|
+
width: number;
|
|
3599
|
+
height: number;
|
|
3600
|
+
edit: {
|
|
3601
|
+
zoom: number;
|
|
3602
|
+
crop: {
|
|
3603
|
+
x: number;
|
|
3604
|
+
y: number;
|
|
3605
|
+
};
|
|
3606
|
+
background: string;
|
|
3607
|
+
};
|
|
3608
|
+
} & {
|
|
3609
|
+
url?: string;
|
|
3610
|
+
credits?: string | null;
|
|
3611
|
+
alt?: string | null;
|
|
3612
|
+
provider?: string | null | undefined;
|
|
3613
|
+
};
|
|
3614
|
+
};
|
|
3615
|
+
} & {
|
|
3616
|
+
__TYPE__: "ImageContent";
|
|
3617
|
+
}) | {
|
|
3618
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
3619
|
+
value: string;
|
|
3620
|
+
} | {
|
|
3621
|
+
__TYPE__: "LinkContent";
|
|
3622
|
+
value: ({
|
|
3623
|
+
__TYPE__: "ImageLink";
|
|
3624
|
+
} & {
|
|
3625
|
+
id: string;
|
|
3626
|
+
url: string;
|
|
3627
|
+
height: string;
|
|
3628
|
+
width: string;
|
|
3629
|
+
size: string;
|
|
3630
|
+
name: string;
|
|
3631
|
+
kind: string;
|
|
3632
|
+
} & {
|
|
3633
|
+
date?: string | null | undefined;
|
|
3634
|
+
}) | ({
|
|
3635
|
+
id: string;
|
|
3636
|
+
url: string;
|
|
3637
|
+
name: string;
|
|
3638
|
+
kind: string;
|
|
3639
|
+
size: string;
|
|
3640
|
+
} & {
|
|
3641
|
+
date?: string | null | undefined;
|
|
3642
|
+
} & {
|
|
3643
|
+
__TYPE__: "FileLink";
|
|
3644
|
+
} & {
|
|
3645
|
+
size?: string;
|
|
3646
|
+
}) | ({
|
|
3647
|
+
__TYPE__: "DocumentLink";
|
|
3648
|
+
} & {
|
|
3649
|
+
id: string;
|
|
3650
|
+
}) | ({
|
|
3651
|
+
__TYPE__: "ExternalLink";
|
|
3652
|
+
} & {
|
|
3653
|
+
url: string;
|
|
3654
|
+
} & {
|
|
3655
|
+
kind?: "web";
|
|
3656
|
+
target?: string | null | undefined;
|
|
3657
|
+
preview?: {
|
|
3658
|
+
title?: string;
|
|
3659
|
+
} | null | undefined;
|
|
3660
|
+
});
|
|
3661
|
+
} | {
|
|
3662
|
+
__TYPE__: "StructuredTextContent";
|
|
3663
|
+
value: (({
|
|
3664
|
+
type: "image";
|
|
3665
|
+
data: {
|
|
3666
|
+
origin: {
|
|
3667
|
+
id: string;
|
|
3668
|
+
url: string;
|
|
3669
|
+
width: number;
|
|
3670
|
+
height: number;
|
|
3671
|
+
};
|
|
3672
|
+
width: number;
|
|
3673
|
+
height: number;
|
|
3674
|
+
edit: {
|
|
3675
|
+
zoom: number;
|
|
3676
|
+
crop: {
|
|
3677
|
+
x: number;
|
|
3678
|
+
y: number;
|
|
3679
|
+
};
|
|
3680
|
+
background: string;
|
|
3681
|
+
};
|
|
3058
3682
|
} & {
|
|
3059
|
-
|
|
3683
|
+
url?: string;
|
|
3684
|
+
credits?: string | null;
|
|
3685
|
+
alt?: string | null;
|
|
3686
|
+
provider?: string | null | undefined;
|
|
3060
3687
|
} & {
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3688
|
+
linkTo?: ({
|
|
3689
|
+
__TYPE__: "ImageLink";
|
|
3690
|
+
} & {
|
|
3691
|
+
id: string;
|
|
3692
|
+
url: string;
|
|
3693
|
+
height: string;
|
|
3694
|
+
width: string;
|
|
3695
|
+
size: string;
|
|
3696
|
+
name: string;
|
|
3697
|
+
kind: string;
|
|
3698
|
+
} & {
|
|
3699
|
+
date?: string | null | undefined;
|
|
3700
|
+
}) | ({
|
|
3701
|
+
id: string;
|
|
3702
|
+
url: string;
|
|
3703
|
+
name: string;
|
|
3704
|
+
kind: string;
|
|
3705
|
+
size: string;
|
|
3706
|
+
} & {
|
|
3707
|
+
date?: string | null | undefined;
|
|
3708
|
+
} & {
|
|
3709
|
+
__TYPE__: "FileLink";
|
|
3710
|
+
} & {
|
|
3711
|
+
size?: string;
|
|
3712
|
+
}) | ({
|
|
3713
|
+
__TYPE__: "DocumentLink";
|
|
3714
|
+
} & {
|
|
3715
|
+
id: string;
|
|
3716
|
+
}) | ({
|
|
3717
|
+
__TYPE__: "ExternalLink";
|
|
3718
|
+
} & {
|
|
3719
|
+
url: string;
|
|
3720
|
+
} & {
|
|
3721
|
+
kind?: "web";
|
|
3722
|
+
target?: string | null | undefined;
|
|
3723
|
+
preview?: {
|
|
3724
|
+
title?: string;
|
|
3725
|
+
} | null | undefined;
|
|
3726
|
+
}) | null | undefined;
|
|
3727
|
+
};
|
|
3728
|
+
} & {
|
|
3729
|
+
label?: string | null | undefined;
|
|
3730
|
+
direction?: string | null | undefined;
|
|
3731
|
+
}) | ({
|
|
3732
|
+
type: "embed";
|
|
3733
|
+
data: {
|
|
3734
|
+
embed_url: string;
|
|
3735
|
+
type: string;
|
|
3064
3736
|
} & {
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3737
|
+
version?: string | number | null;
|
|
3738
|
+
title?: string | null | undefined;
|
|
3739
|
+
author_name?: string | null | undefined;
|
|
3740
|
+
author_url?: string | null | undefined;
|
|
3741
|
+
provider_name?: string | null | undefined;
|
|
3742
|
+
provider_url?: string | null | undefined;
|
|
3743
|
+
cache_age?: string | number | null;
|
|
3744
|
+
thumbnail_url?: string | null | undefined;
|
|
3745
|
+
thumbnail_width?: number | null | undefined;
|
|
3746
|
+
thumbnail_height?: number | null | undefined;
|
|
3747
|
+
html?: string | null | undefined;
|
|
3068
3748
|
} & {
|
|
3069
|
-
|
|
3749
|
+
__TYPE__: "EmbedContent";
|
|
3750
|
+
all: unknown;
|
|
3751
|
+
};
|
|
3752
|
+
} & {
|
|
3753
|
+
label?: string | null | undefined;
|
|
3754
|
+
direction?: string | null | undefined;
|
|
3755
|
+
}) | ({
|
|
3756
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
3757
|
+
content: {
|
|
3758
|
+
text: string;
|
|
3070
3759
|
} & {
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3760
|
+
spans?: ({
|
|
3761
|
+
data: ({
|
|
3762
|
+
__TYPE__: "ImageLink";
|
|
3763
|
+
} & {
|
|
3764
|
+
id: string;
|
|
3765
|
+
url: string;
|
|
3766
|
+
height: string;
|
|
3767
|
+
width: string;
|
|
3768
|
+
size: string;
|
|
3769
|
+
name: string;
|
|
3770
|
+
kind: string;
|
|
3771
|
+
} & {
|
|
3772
|
+
date?: string | null | undefined;
|
|
3773
|
+
}) | ({
|
|
3774
|
+
id: string;
|
|
3775
|
+
url: string;
|
|
3776
|
+
name: string;
|
|
3777
|
+
kind: string;
|
|
3778
|
+
size: string;
|
|
3779
|
+
} & {
|
|
3780
|
+
date?: string | null | undefined;
|
|
3781
|
+
} & {
|
|
3782
|
+
__TYPE__: "FileLink";
|
|
3783
|
+
} & {
|
|
3784
|
+
size?: string;
|
|
3785
|
+
}) | ({
|
|
3786
|
+
__TYPE__: "DocumentLink";
|
|
3787
|
+
} & {
|
|
3788
|
+
id: string;
|
|
3789
|
+
}) | ({
|
|
3790
|
+
__TYPE__: "ExternalLink";
|
|
3791
|
+
} & {
|
|
3792
|
+
url: string;
|
|
3793
|
+
} & {
|
|
3794
|
+
kind?: "web";
|
|
3795
|
+
target?: string | null | undefined;
|
|
3796
|
+
preview?: {
|
|
3797
|
+
title?: string;
|
|
3798
|
+
} | null | undefined;
|
|
3799
|
+
});
|
|
3800
|
+
start: number;
|
|
3801
|
+
end: number;
|
|
3802
|
+
type: "hyperlink";
|
|
3803
|
+
} | {
|
|
3804
|
+
data: string;
|
|
3805
|
+
start: number;
|
|
3806
|
+
end: number;
|
|
3807
|
+
type: "label";
|
|
3808
|
+
} | {
|
|
3809
|
+
start: number;
|
|
3810
|
+
end: number;
|
|
3811
|
+
type: "strong" | "em" | "list-item";
|
|
3812
|
+
})[];
|
|
3813
|
+
};
|
|
3814
|
+
} & {
|
|
3815
|
+
label?: string;
|
|
3816
|
+
direction?: string;
|
|
3817
|
+
}))[];
|
|
3818
|
+
} | {
|
|
3819
|
+
__TYPE__: "SeparatorContent";
|
|
3090
3820
|
};
|
|
3091
|
-
}
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
} | {
|
|
3096
|
-
__TYPE__: "SeparatorContent";
|
|
3097
|
-
} | import("./fields").GroupContent | {
|
|
3098
|
-
__TYPE__: "CompositeSliceContent";
|
|
3099
|
-
nonRepeat: {
|
|
3100
|
-
[x: string]: {
|
|
3821
|
+
};
|
|
3822
|
+
repeat: {
|
|
3823
|
+
__TYPE__: "GroupItemContent";
|
|
3824
|
+
value: [string, {
|
|
3101
3825
|
type: string;
|
|
3102
3826
|
__TYPE__: "EmptyContent";
|
|
3103
3827
|
} | {
|
|
@@ -3409,11 +4133,13 @@ export declare const DocumentLegacy: {
|
|
|
3409
4133
|
}))[];
|
|
3410
4134
|
} | {
|
|
3411
4135
|
__TYPE__: "SeparatorContent";
|
|
3412
|
-
};
|
|
3413
|
-
};
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
4136
|
+
}][];
|
|
4137
|
+
}[];
|
|
4138
|
+
} | {
|
|
4139
|
+
__TYPE__: "SharedSliceContent";
|
|
4140
|
+
variation: string;
|
|
4141
|
+
primary: {
|
|
4142
|
+
[x: string]: {
|
|
3417
4143
|
type: string;
|
|
3418
4144
|
__TYPE__: "EmptyContent";
|
|
3419
4145
|
} | {
|
|
@@ -3725,13 +4451,11 @@ export declare const DocumentLegacy: {
|
|
|
3725
4451
|
}))[];
|
|
3726
4452
|
} | {
|
|
3727
4453
|
__TYPE__: "SeparatorContent";
|
|
3728
|
-
} | import("./fields").GroupContent
|
|
3729
|
-
}
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
primary: {
|
|
3734
|
-
[x: string]: {
|
|
4454
|
+
} | import("./fields").GroupContent;
|
|
4455
|
+
};
|
|
4456
|
+
items: {
|
|
4457
|
+
__TYPE__: "GroupItemContent";
|
|
4458
|
+
value: [string, {
|
|
3735
4459
|
type: string;
|
|
3736
4460
|
__TYPE__: "EmptyContent";
|
|
3737
4461
|
} | {
|
|
@@ -4043,9 +4767,11 @@ export declare const DocumentLegacy: {
|
|
|
4043
4767
|
}))[];
|
|
4044
4768
|
} | {
|
|
4045
4769
|
__TYPE__: "SeparatorContent";
|
|
4046
|
-
}
|
|
4047
|
-
};
|
|
4048
|
-
|
|
4770
|
+
}][];
|
|
4771
|
+
}[];
|
|
4772
|
+
} | {
|
|
4773
|
+
__TYPE__: "GroupContentType";
|
|
4774
|
+
value: {
|
|
4049
4775
|
__TYPE__: "GroupItemContent";
|
|
4050
4776
|
value: [string, {
|
|
4051
4777
|
type: string;
|
|
@@ -4359,7 +5085,7 @@ export declare const DocumentLegacy: {
|
|
|
4359
5085
|
}))[];
|
|
4360
5086
|
} | {
|
|
4361
5087
|
__TYPE__: "SeparatorContent";
|
|
4362
|
-
}
|
|
5088
|
+
}][];
|
|
4363
5089
|
}[];
|
|
4364
5090
|
};
|
|
4365
5091
|
}[];
|
|
@@ -4825,217 +5551,533 @@ export declare function migrateDocument(document: Document, customType: StaticCu
|
|
|
4825
5551
|
credits?: string | null;
|
|
4826
5552
|
alt?: string | null;
|
|
4827
5553
|
provider?: string | null | undefined;
|
|
4828
|
-
};
|
|
4829
|
-
};
|
|
4830
|
-
} & {
|
|
4831
|
-
__TYPE__: "ImageContent";
|
|
4832
|
-
}) | {
|
|
4833
|
-
__TYPE__: "IntegrationFieldsContent";
|
|
4834
|
-
value: string;
|
|
4835
|
-
} | {
|
|
4836
|
-
__TYPE__: "LinkContent";
|
|
4837
|
-
value: ({
|
|
4838
|
-
__TYPE__: "ImageLink";
|
|
4839
|
-
} & {
|
|
4840
|
-
id: string;
|
|
4841
|
-
url: string;
|
|
4842
|
-
height: string;
|
|
4843
|
-
width: string;
|
|
4844
|
-
size: string;
|
|
4845
|
-
name: string;
|
|
4846
|
-
kind: string;
|
|
4847
|
-
} & {
|
|
4848
|
-
date?: string | null | undefined;
|
|
4849
|
-
}) | ({
|
|
4850
|
-
id: string;
|
|
4851
|
-
url: string;
|
|
4852
|
-
name: string;
|
|
4853
|
-
kind: string;
|
|
4854
|
-
size: string;
|
|
4855
|
-
} & {
|
|
4856
|
-
date?: string | null | undefined;
|
|
4857
|
-
} & {
|
|
4858
|
-
__TYPE__: "FileLink";
|
|
4859
|
-
} & {
|
|
4860
|
-
size?: string;
|
|
4861
|
-
}) | ({
|
|
4862
|
-
__TYPE__: "DocumentLink";
|
|
4863
|
-
} & {
|
|
4864
|
-
id: string;
|
|
4865
|
-
}) | ({
|
|
4866
|
-
__TYPE__: "ExternalLink";
|
|
4867
|
-
} & {
|
|
4868
|
-
url: string;
|
|
4869
|
-
} & {
|
|
4870
|
-
kind?: "web";
|
|
4871
|
-
target?: string | null | undefined;
|
|
4872
|
-
preview?: {
|
|
4873
|
-
title?: string;
|
|
4874
|
-
} | null | undefined;
|
|
4875
|
-
});
|
|
4876
|
-
} | {
|
|
4877
|
-
__TYPE__: "StructuredTextContent";
|
|
4878
|
-
value: (({
|
|
4879
|
-
type: "image";
|
|
4880
|
-
data: {
|
|
4881
|
-
origin: {
|
|
5554
|
+
};
|
|
5555
|
+
};
|
|
5556
|
+
} & {
|
|
5557
|
+
__TYPE__: "ImageContent";
|
|
5558
|
+
}) | {
|
|
5559
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
5560
|
+
value: string;
|
|
5561
|
+
} | {
|
|
5562
|
+
__TYPE__: "LinkContent";
|
|
5563
|
+
value: ({
|
|
5564
|
+
__TYPE__: "ImageLink";
|
|
5565
|
+
} & {
|
|
5566
|
+
id: string;
|
|
5567
|
+
url: string;
|
|
5568
|
+
height: string;
|
|
5569
|
+
width: string;
|
|
5570
|
+
size: string;
|
|
5571
|
+
name: string;
|
|
5572
|
+
kind: string;
|
|
5573
|
+
} & {
|
|
5574
|
+
date?: string | null | undefined;
|
|
5575
|
+
}) | ({
|
|
5576
|
+
id: string;
|
|
5577
|
+
url: string;
|
|
5578
|
+
name: string;
|
|
5579
|
+
kind: string;
|
|
5580
|
+
size: string;
|
|
5581
|
+
} & {
|
|
5582
|
+
date?: string | null | undefined;
|
|
5583
|
+
} & {
|
|
5584
|
+
__TYPE__: "FileLink";
|
|
5585
|
+
} & {
|
|
5586
|
+
size?: string;
|
|
5587
|
+
}) | ({
|
|
5588
|
+
__TYPE__: "DocumentLink";
|
|
5589
|
+
} & {
|
|
5590
|
+
id: string;
|
|
5591
|
+
}) | ({
|
|
5592
|
+
__TYPE__: "ExternalLink";
|
|
5593
|
+
} & {
|
|
5594
|
+
url: string;
|
|
5595
|
+
} & {
|
|
5596
|
+
kind?: "web";
|
|
5597
|
+
target?: string | null | undefined;
|
|
5598
|
+
preview?: {
|
|
5599
|
+
title?: string;
|
|
5600
|
+
} | null | undefined;
|
|
5601
|
+
});
|
|
5602
|
+
} | {
|
|
5603
|
+
__TYPE__: "StructuredTextContent";
|
|
5604
|
+
value: (({
|
|
5605
|
+
type: "image";
|
|
5606
|
+
data: {
|
|
5607
|
+
origin: {
|
|
5608
|
+
id: string;
|
|
5609
|
+
url: string;
|
|
5610
|
+
width: number;
|
|
5611
|
+
height: number;
|
|
5612
|
+
};
|
|
5613
|
+
width: number;
|
|
5614
|
+
height: number;
|
|
5615
|
+
edit: {
|
|
5616
|
+
zoom: number;
|
|
5617
|
+
crop: {
|
|
5618
|
+
x: number;
|
|
5619
|
+
y: number;
|
|
5620
|
+
};
|
|
5621
|
+
background: string;
|
|
5622
|
+
};
|
|
5623
|
+
} & {
|
|
5624
|
+
url?: string;
|
|
5625
|
+
credits?: string | null;
|
|
5626
|
+
alt?: string | null;
|
|
5627
|
+
provider?: string | null | undefined;
|
|
5628
|
+
} & {
|
|
5629
|
+
linkTo?: ({
|
|
5630
|
+
__TYPE__: "ImageLink";
|
|
5631
|
+
} & {
|
|
5632
|
+
id: string;
|
|
5633
|
+
url: string;
|
|
5634
|
+
height: string;
|
|
5635
|
+
width: string;
|
|
5636
|
+
size: string;
|
|
5637
|
+
name: string;
|
|
5638
|
+
kind: string;
|
|
5639
|
+
} & {
|
|
5640
|
+
date?: string | null | undefined;
|
|
5641
|
+
}) | ({
|
|
5642
|
+
id: string;
|
|
5643
|
+
url: string;
|
|
5644
|
+
name: string;
|
|
5645
|
+
kind: string;
|
|
5646
|
+
size: string;
|
|
5647
|
+
} & {
|
|
5648
|
+
date?: string | null | undefined;
|
|
5649
|
+
} & {
|
|
5650
|
+
__TYPE__: "FileLink";
|
|
5651
|
+
} & {
|
|
5652
|
+
size?: string;
|
|
5653
|
+
}) | ({
|
|
5654
|
+
__TYPE__: "DocumentLink";
|
|
5655
|
+
} & {
|
|
5656
|
+
id: string;
|
|
5657
|
+
}) | ({
|
|
5658
|
+
__TYPE__: "ExternalLink";
|
|
5659
|
+
} & {
|
|
5660
|
+
url: string;
|
|
5661
|
+
} & {
|
|
5662
|
+
kind?: "web";
|
|
5663
|
+
target?: string | null | undefined;
|
|
5664
|
+
preview?: {
|
|
5665
|
+
title?: string;
|
|
5666
|
+
} | null | undefined;
|
|
5667
|
+
}) | null | undefined;
|
|
5668
|
+
};
|
|
5669
|
+
} & {
|
|
5670
|
+
label?: string | null | undefined;
|
|
5671
|
+
direction?: string | null | undefined;
|
|
5672
|
+
}) | ({
|
|
5673
|
+
type: "embed";
|
|
5674
|
+
data: {
|
|
5675
|
+
embed_url: string;
|
|
5676
|
+
type: string;
|
|
5677
|
+
} & {
|
|
5678
|
+
version?: string | number | null;
|
|
5679
|
+
title?: string | null | undefined;
|
|
5680
|
+
author_name?: string | null | undefined;
|
|
5681
|
+
author_url?: string | null | undefined;
|
|
5682
|
+
provider_name?: string | null | undefined;
|
|
5683
|
+
provider_url?: string | null | undefined;
|
|
5684
|
+
cache_age?: string | number | null;
|
|
5685
|
+
thumbnail_url?: string | null | undefined;
|
|
5686
|
+
thumbnail_width?: number | null | undefined;
|
|
5687
|
+
thumbnail_height?: number | null | undefined;
|
|
5688
|
+
html?: string | null | undefined;
|
|
5689
|
+
} & {
|
|
5690
|
+
__TYPE__: "EmbedContent";
|
|
5691
|
+
all: unknown;
|
|
5692
|
+
};
|
|
5693
|
+
} & {
|
|
5694
|
+
label?: string | null | undefined;
|
|
5695
|
+
direction?: string | null | undefined;
|
|
5696
|
+
}) | ({
|
|
5697
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
5698
|
+
content: {
|
|
5699
|
+
text: string;
|
|
5700
|
+
} & {
|
|
5701
|
+
spans?: ({
|
|
5702
|
+
data: ({
|
|
5703
|
+
__TYPE__: "ImageLink";
|
|
5704
|
+
} & {
|
|
5705
|
+
id: string;
|
|
5706
|
+
url: string;
|
|
5707
|
+
height: string;
|
|
5708
|
+
width: string;
|
|
5709
|
+
size: string;
|
|
5710
|
+
name: string;
|
|
5711
|
+
kind: string;
|
|
5712
|
+
} & {
|
|
5713
|
+
date?: string | null | undefined;
|
|
5714
|
+
}) | ({
|
|
5715
|
+
id: string;
|
|
5716
|
+
url: string;
|
|
5717
|
+
name: string;
|
|
5718
|
+
kind: string;
|
|
5719
|
+
size: string;
|
|
5720
|
+
} & {
|
|
5721
|
+
date?: string | null | undefined;
|
|
5722
|
+
} & {
|
|
5723
|
+
__TYPE__: "FileLink";
|
|
5724
|
+
} & {
|
|
5725
|
+
size?: string;
|
|
5726
|
+
}) | ({
|
|
5727
|
+
__TYPE__: "DocumentLink";
|
|
5728
|
+
} & {
|
|
5729
|
+
id: string;
|
|
5730
|
+
}) | ({
|
|
5731
|
+
__TYPE__: "ExternalLink";
|
|
5732
|
+
} & {
|
|
5733
|
+
url: string;
|
|
5734
|
+
} & {
|
|
5735
|
+
kind?: "web";
|
|
5736
|
+
target?: string | null | undefined;
|
|
5737
|
+
preview?: {
|
|
5738
|
+
title?: string;
|
|
5739
|
+
} | null | undefined;
|
|
5740
|
+
});
|
|
5741
|
+
start: number;
|
|
5742
|
+
end: number;
|
|
5743
|
+
type: "hyperlink";
|
|
5744
|
+
} | {
|
|
5745
|
+
data: string;
|
|
5746
|
+
start: number;
|
|
5747
|
+
end: number;
|
|
5748
|
+
type: "label";
|
|
5749
|
+
} | {
|
|
5750
|
+
start: number;
|
|
5751
|
+
end: number;
|
|
5752
|
+
type: "strong" | "em" | "list-item";
|
|
5753
|
+
})[];
|
|
5754
|
+
};
|
|
5755
|
+
} & {
|
|
5756
|
+
label?: string;
|
|
5757
|
+
direction?: string;
|
|
5758
|
+
}))[];
|
|
5759
|
+
} | {
|
|
5760
|
+
__TYPE__: "SeparatorContent";
|
|
5761
|
+
} | {
|
|
5762
|
+
__TYPE__: "CompositeSliceContent";
|
|
5763
|
+
nonRepeat: {
|
|
5764
|
+
[x: string]: {
|
|
5765
|
+
type: string;
|
|
5766
|
+
__TYPE__: "EmptyContent";
|
|
5767
|
+
} | {
|
|
5768
|
+
__TYPE__: "BooleanContent";
|
|
5769
|
+
value: boolean;
|
|
5770
|
+
} | ({
|
|
5771
|
+
embed_url: string;
|
|
5772
|
+
type: string;
|
|
5773
|
+
} & {
|
|
5774
|
+
version?: string | number | null;
|
|
5775
|
+
title?: string | null | undefined;
|
|
5776
|
+
author_name?: string | null | undefined;
|
|
5777
|
+
author_url?: string | null | undefined;
|
|
5778
|
+
provider_name?: string | null | undefined;
|
|
5779
|
+
provider_url?: string | null | undefined;
|
|
5780
|
+
cache_age?: string | number | null;
|
|
5781
|
+
thumbnail_url?: string | null | undefined;
|
|
5782
|
+
thumbnail_width?: number | null | undefined;
|
|
5783
|
+
thumbnail_height?: number | null | undefined;
|
|
5784
|
+
html?: string | null | undefined;
|
|
5785
|
+
} & {
|
|
5786
|
+
__TYPE__: "EmbedContent";
|
|
5787
|
+
all: unknown;
|
|
5788
|
+
}) | {
|
|
5789
|
+
type: "Color";
|
|
5790
|
+
value: string;
|
|
5791
|
+
__TYPE__: "FieldContent";
|
|
5792
|
+
} | {
|
|
5793
|
+
type: "Date";
|
|
5794
|
+
value: string;
|
|
5795
|
+
__TYPE__: "FieldContent";
|
|
5796
|
+
} | {
|
|
5797
|
+
type: "Number";
|
|
5798
|
+
value: string;
|
|
5799
|
+
__TYPE__: "FieldContent";
|
|
5800
|
+
} | {
|
|
5801
|
+
type: "Range";
|
|
5802
|
+
value: string;
|
|
5803
|
+
__TYPE__: "FieldContent";
|
|
5804
|
+
} | {
|
|
5805
|
+
type: "Select";
|
|
5806
|
+
value: string;
|
|
5807
|
+
__TYPE__: "FieldContent";
|
|
5808
|
+
} | {
|
|
5809
|
+
type: "Text";
|
|
5810
|
+
value: string;
|
|
5811
|
+
__TYPE__: "FieldContent";
|
|
5812
|
+
} | {
|
|
5813
|
+
type: "Timestamp";
|
|
5814
|
+
value: string;
|
|
5815
|
+
__TYPE__: "FieldContent";
|
|
5816
|
+
} | ({
|
|
5817
|
+
position: {
|
|
5818
|
+
lat: number;
|
|
5819
|
+
lng: number;
|
|
5820
|
+
};
|
|
5821
|
+
} & {
|
|
5822
|
+
__TYPE__: "GeoPointContent";
|
|
5823
|
+
}) | ({
|
|
5824
|
+
origin: {
|
|
5825
|
+
id: string;
|
|
5826
|
+
url: string;
|
|
5827
|
+
width: number;
|
|
5828
|
+
height: number;
|
|
5829
|
+
};
|
|
5830
|
+
width: number;
|
|
5831
|
+
height: number;
|
|
5832
|
+
edit: {
|
|
5833
|
+
zoom: number;
|
|
5834
|
+
crop: {
|
|
5835
|
+
x: number;
|
|
5836
|
+
y: number;
|
|
5837
|
+
};
|
|
5838
|
+
background: string;
|
|
5839
|
+
};
|
|
5840
|
+
} & {
|
|
5841
|
+
url?: string;
|
|
5842
|
+
credits?: string | null;
|
|
5843
|
+
alt?: string | null;
|
|
5844
|
+
provider?: string | null | undefined;
|
|
5845
|
+
} & {
|
|
5846
|
+
thumbnails?: {
|
|
5847
|
+
[x: string]: {
|
|
5848
|
+
origin: {
|
|
5849
|
+
id: string;
|
|
5850
|
+
url: string;
|
|
5851
|
+
width: number;
|
|
5852
|
+
height: number;
|
|
5853
|
+
};
|
|
5854
|
+
width: number;
|
|
5855
|
+
height: number;
|
|
5856
|
+
edit: {
|
|
5857
|
+
zoom: number;
|
|
5858
|
+
crop: {
|
|
5859
|
+
x: number;
|
|
5860
|
+
y: number;
|
|
5861
|
+
};
|
|
5862
|
+
background: string;
|
|
5863
|
+
};
|
|
5864
|
+
} & {
|
|
5865
|
+
url?: string;
|
|
5866
|
+
credits?: string | null;
|
|
5867
|
+
alt?: string | null;
|
|
5868
|
+
provider?: string | null | undefined;
|
|
5869
|
+
};
|
|
5870
|
+
};
|
|
5871
|
+
} & {
|
|
5872
|
+
__TYPE__: "ImageContent";
|
|
5873
|
+
}) | {
|
|
5874
|
+
__TYPE__: "IntegrationFieldsContent";
|
|
5875
|
+
value: string;
|
|
5876
|
+
} | {
|
|
5877
|
+
__TYPE__: "LinkContent";
|
|
5878
|
+
value: ({
|
|
5879
|
+
__TYPE__: "ImageLink";
|
|
5880
|
+
} & {
|
|
4882
5881
|
id: string;
|
|
4883
5882
|
url: string;
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
5883
|
+
height: string;
|
|
5884
|
+
width: string;
|
|
5885
|
+
size: string;
|
|
5886
|
+
name: string;
|
|
5887
|
+
kind: string;
|
|
5888
|
+
} & {
|
|
5889
|
+
date?: string | null | undefined;
|
|
5890
|
+
}) | ({
|
|
5891
|
+
id: string;
|
|
5892
|
+
url: string;
|
|
5893
|
+
name: string;
|
|
5894
|
+
kind: string;
|
|
5895
|
+
size: string;
|
|
5896
|
+
} & {
|
|
5897
|
+
date?: string | null | undefined;
|
|
5898
|
+
} & {
|
|
5899
|
+
__TYPE__: "FileLink";
|
|
5900
|
+
} & {
|
|
5901
|
+
size?: string;
|
|
5902
|
+
}) | ({
|
|
5903
|
+
__TYPE__: "DocumentLink";
|
|
5904
|
+
} & {
|
|
5905
|
+
id: string;
|
|
5906
|
+
}) | ({
|
|
5907
|
+
__TYPE__: "ExternalLink";
|
|
5908
|
+
} & {
|
|
5909
|
+
url: string;
|
|
5910
|
+
} & {
|
|
5911
|
+
kind?: "web";
|
|
5912
|
+
target?: string | null | undefined;
|
|
5913
|
+
preview?: {
|
|
5914
|
+
title?: string;
|
|
5915
|
+
} | null | undefined;
|
|
5916
|
+
});
|
|
5917
|
+
} | {
|
|
5918
|
+
__TYPE__: "StructuredTextContent";
|
|
5919
|
+
value: (({
|
|
5920
|
+
type: "image";
|
|
5921
|
+
data: {
|
|
5922
|
+
origin: {
|
|
5923
|
+
id: string;
|
|
5924
|
+
url: string;
|
|
5925
|
+
width: number;
|
|
5926
|
+
height: number;
|
|
5927
|
+
};
|
|
5928
|
+
width: number;
|
|
5929
|
+
height: number;
|
|
5930
|
+
edit: {
|
|
5931
|
+
zoom: number;
|
|
5932
|
+
crop: {
|
|
5933
|
+
x: number;
|
|
5934
|
+
y: number;
|
|
5935
|
+
};
|
|
5936
|
+
background: string;
|
|
5937
|
+
};
|
|
5938
|
+
} & {
|
|
5939
|
+
url?: string;
|
|
5940
|
+
credits?: string | null;
|
|
5941
|
+
alt?: string | null;
|
|
5942
|
+
provider?: string | null | undefined;
|
|
5943
|
+
} & {
|
|
5944
|
+
linkTo?: ({
|
|
5945
|
+
__TYPE__: "ImageLink";
|
|
5946
|
+
} & {
|
|
5947
|
+
id: string;
|
|
5948
|
+
url: string;
|
|
5949
|
+
height: string;
|
|
5950
|
+
width: string;
|
|
5951
|
+
size: string;
|
|
5952
|
+
name: string;
|
|
5953
|
+
kind: string;
|
|
5954
|
+
} & {
|
|
5955
|
+
date?: string | null | undefined;
|
|
5956
|
+
}) | ({
|
|
5957
|
+
id: string;
|
|
5958
|
+
url: string;
|
|
5959
|
+
name: string;
|
|
5960
|
+
kind: string;
|
|
5961
|
+
size: string;
|
|
5962
|
+
} & {
|
|
5963
|
+
date?: string | null | undefined;
|
|
5964
|
+
} & {
|
|
5965
|
+
__TYPE__: "FileLink";
|
|
5966
|
+
} & {
|
|
5967
|
+
size?: string;
|
|
5968
|
+
}) | ({
|
|
5969
|
+
__TYPE__: "DocumentLink";
|
|
5970
|
+
} & {
|
|
5971
|
+
id: string;
|
|
5972
|
+
}) | ({
|
|
5973
|
+
__TYPE__: "ExternalLink";
|
|
5974
|
+
} & {
|
|
5975
|
+
url: string;
|
|
5976
|
+
} & {
|
|
5977
|
+
kind?: "web";
|
|
5978
|
+
target?: string | null | undefined;
|
|
5979
|
+
preview?: {
|
|
5980
|
+
title?: string;
|
|
5981
|
+
} | null | undefined;
|
|
5982
|
+
}) | null | undefined;
|
|
4894
5983
|
};
|
|
4895
|
-
background: string;
|
|
4896
|
-
};
|
|
4897
|
-
} & {
|
|
4898
|
-
url?: string;
|
|
4899
|
-
credits?: string | null;
|
|
4900
|
-
alt?: string | null;
|
|
4901
|
-
provider?: string | null | undefined;
|
|
4902
|
-
} & {
|
|
4903
|
-
linkTo?: ({
|
|
4904
|
-
__TYPE__: "ImageLink";
|
|
4905
|
-
} & {
|
|
4906
|
-
id: string;
|
|
4907
|
-
url: string;
|
|
4908
|
-
height: string;
|
|
4909
|
-
width: string;
|
|
4910
|
-
size: string;
|
|
4911
|
-
name: string;
|
|
4912
|
-
kind: string;
|
|
4913
|
-
} & {
|
|
4914
|
-
date?: string | null | undefined;
|
|
4915
|
-
}) | ({
|
|
4916
|
-
id: string;
|
|
4917
|
-
url: string;
|
|
4918
|
-
name: string;
|
|
4919
|
-
kind: string;
|
|
4920
|
-
size: string;
|
|
4921
|
-
} & {
|
|
4922
|
-
date?: string | null | undefined;
|
|
4923
|
-
} & {
|
|
4924
|
-
__TYPE__: "FileLink";
|
|
4925
|
-
} & {
|
|
4926
|
-
size?: string;
|
|
4927
|
-
}) | ({
|
|
4928
|
-
__TYPE__: "DocumentLink";
|
|
4929
5984
|
} & {
|
|
4930
|
-
|
|
5985
|
+
label?: string | null | undefined;
|
|
5986
|
+
direction?: string | null | undefined;
|
|
4931
5987
|
}) | ({
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
kind?: "web";
|
|
4937
|
-
target?: string | null | undefined;
|
|
4938
|
-
preview?: {
|
|
4939
|
-
title?: string;
|
|
4940
|
-
} | null | undefined;
|
|
4941
|
-
}) | null | undefined;
|
|
4942
|
-
};
|
|
4943
|
-
} & {
|
|
4944
|
-
label?: string | null | undefined;
|
|
4945
|
-
direction?: string | null | undefined;
|
|
4946
|
-
}) | ({
|
|
4947
|
-
type: "embed";
|
|
4948
|
-
data: {
|
|
4949
|
-
embed_url: string;
|
|
4950
|
-
type: string;
|
|
4951
|
-
} & {
|
|
4952
|
-
version?: string | number | null;
|
|
4953
|
-
title?: string | null | undefined;
|
|
4954
|
-
author_name?: string | null | undefined;
|
|
4955
|
-
author_url?: string | null | undefined;
|
|
4956
|
-
provider_name?: string | null | undefined;
|
|
4957
|
-
provider_url?: string | null | undefined;
|
|
4958
|
-
cache_age?: string | number | null;
|
|
4959
|
-
thumbnail_url?: string | null | undefined;
|
|
4960
|
-
thumbnail_width?: number | null | undefined;
|
|
4961
|
-
thumbnail_height?: number | null | undefined;
|
|
4962
|
-
html?: string | null | undefined;
|
|
4963
|
-
} & {
|
|
4964
|
-
__TYPE__: "EmbedContent";
|
|
4965
|
-
all: unknown;
|
|
4966
|
-
};
|
|
4967
|
-
} & {
|
|
4968
|
-
label?: string | null | undefined;
|
|
4969
|
-
direction?: string | null | undefined;
|
|
4970
|
-
}) | ({
|
|
4971
|
-
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
4972
|
-
content: {
|
|
4973
|
-
text: string;
|
|
4974
|
-
} & {
|
|
4975
|
-
spans?: ({
|
|
4976
|
-
data: ({
|
|
4977
|
-
__TYPE__: "ImageLink";
|
|
4978
|
-
} & {
|
|
4979
|
-
id: string;
|
|
4980
|
-
url: string;
|
|
4981
|
-
height: string;
|
|
4982
|
-
width: string;
|
|
4983
|
-
size: string;
|
|
4984
|
-
name: string;
|
|
4985
|
-
kind: string;
|
|
4986
|
-
} & {
|
|
4987
|
-
date?: string | null | undefined;
|
|
4988
|
-
}) | ({
|
|
4989
|
-
id: string;
|
|
4990
|
-
url: string;
|
|
4991
|
-
name: string;
|
|
4992
|
-
kind: string;
|
|
4993
|
-
size: string;
|
|
4994
|
-
} & {
|
|
4995
|
-
date?: string | null | undefined;
|
|
4996
|
-
} & {
|
|
4997
|
-
__TYPE__: "FileLink";
|
|
4998
|
-
} & {
|
|
4999
|
-
size?: string;
|
|
5000
|
-
}) | ({
|
|
5001
|
-
__TYPE__: "DocumentLink";
|
|
5988
|
+
type: "embed";
|
|
5989
|
+
data: {
|
|
5990
|
+
embed_url: string;
|
|
5991
|
+
type: string;
|
|
5002
5992
|
} & {
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5993
|
+
version?: string | number | null;
|
|
5994
|
+
title?: string | null | undefined;
|
|
5995
|
+
author_name?: string | null | undefined;
|
|
5996
|
+
author_url?: string | null | undefined;
|
|
5997
|
+
provider_name?: string | null | undefined;
|
|
5998
|
+
provider_url?: string | null | undefined;
|
|
5999
|
+
cache_age?: string | number | null;
|
|
6000
|
+
thumbnail_url?: string | null | undefined;
|
|
6001
|
+
thumbnail_width?: number | null | undefined;
|
|
6002
|
+
thumbnail_height?: number | null | undefined;
|
|
6003
|
+
html?: string | null | undefined;
|
|
5006
6004
|
} & {
|
|
5007
|
-
|
|
6005
|
+
__TYPE__: "EmbedContent";
|
|
6006
|
+
all: unknown;
|
|
6007
|
+
};
|
|
6008
|
+
} & {
|
|
6009
|
+
label?: string | null | undefined;
|
|
6010
|
+
direction?: string | null | undefined;
|
|
6011
|
+
}) | ({
|
|
6012
|
+
type: "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
|
|
6013
|
+
content: {
|
|
6014
|
+
text: string;
|
|
5008
6015
|
} & {
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
6016
|
+
spans?: ({
|
|
6017
|
+
data: ({
|
|
6018
|
+
__TYPE__: "ImageLink";
|
|
6019
|
+
} & {
|
|
6020
|
+
id: string;
|
|
6021
|
+
url: string;
|
|
6022
|
+
height: string;
|
|
6023
|
+
width: string;
|
|
6024
|
+
size: string;
|
|
6025
|
+
name: string;
|
|
6026
|
+
kind: string;
|
|
6027
|
+
} & {
|
|
6028
|
+
date?: string | null | undefined;
|
|
6029
|
+
}) | ({
|
|
6030
|
+
id: string;
|
|
6031
|
+
url: string;
|
|
6032
|
+
name: string;
|
|
6033
|
+
kind: string;
|
|
6034
|
+
size: string;
|
|
6035
|
+
} & {
|
|
6036
|
+
date?: string | null | undefined;
|
|
6037
|
+
} & {
|
|
6038
|
+
__TYPE__: "FileLink";
|
|
6039
|
+
} & {
|
|
6040
|
+
size?: string;
|
|
6041
|
+
}) | ({
|
|
6042
|
+
__TYPE__: "DocumentLink";
|
|
6043
|
+
} & {
|
|
6044
|
+
id: string;
|
|
6045
|
+
}) | ({
|
|
6046
|
+
__TYPE__: "ExternalLink";
|
|
6047
|
+
} & {
|
|
6048
|
+
url: string;
|
|
6049
|
+
} & {
|
|
6050
|
+
kind?: "web";
|
|
6051
|
+
target?: string | null | undefined;
|
|
6052
|
+
preview?: {
|
|
6053
|
+
title?: string;
|
|
6054
|
+
} | null | undefined;
|
|
6055
|
+
});
|
|
6056
|
+
start: number;
|
|
6057
|
+
end: number;
|
|
6058
|
+
type: "hyperlink";
|
|
6059
|
+
} | {
|
|
6060
|
+
data: string;
|
|
6061
|
+
start: number;
|
|
6062
|
+
end: number;
|
|
6063
|
+
type: "label";
|
|
6064
|
+
} | {
|
|
6065
|
+
start: number;
|
|
6066
|
+
end: number;
|
|
6067
|
+
type: "strong" | "em" | "list-item";
|
|
6068
|
+
})[];
|
|
6069
|
+
};
|
|
6070
|
+
} & {
|
|
6071
|
+
label?: string;
|
|
6072
|
+
direction?: string;
|
|
6073
|
+
}))[];
|
|
6074
|
+
} | {
|
|
6075
|
+
__TYPE__: "SeparatorContent";
|
|
5028
6076
|
};
|
|
5029
|
-
}
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
} | {
|
|
5034
|
-
__TYPE__: "SeparatorContent";
|
|
5035
|
-
} | import("./fields").GroupContent | {
|
|
5036
|
-
__TYPE__: "CompositeSliceContent";
|
|
5037
|
-
nonRepeat: {
|
|
5038
|
-
[x: string]: {
|
|
6077
|
+
};
|
|
6078
|
+
repeat: {
|
|
6079
|
+
__TYPE__: "GroupItemContent";
|
|
6080
|
+
value: [string, {
|
|
5039
6081
|
type: string;
|
|
5040
6082
|
__TYPE__: "EmptyContent";
|
|
5041
6083
|
} | {
|
|
@@ -5347,11 +6389,13 @@ export declare function migrateDocument(document: Document, customType: StaticCu
|
|
|
5347
6389
|
}))[];
|
|
5348
6390
|
} | {
|
|
5349
6391
|
__TYPE__: "SeparatorContent";
|
|
5350
|
-
};
|
|
5351
|
-
};
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
6392
|
+
}][];
|
|
6393
|
+
}[];
|
|
6394
|
+
} | {
|
|
6395
|
+
__TYPE__: "SharedSliceContent";
|
|
6396
|
+
variation: string;
|
|
6397
|
+
primary: {
|
|
6398
|
+
[x: string]: {
|
|
5355
6399
|
type: string;
|
|
5356
6400
|
__TYPE__: "EmptyContent";
|
|
5357
6401
|
} | {
|
|
@@ -5663,13 +6707,11 @@ export declare function migrateDocument(document: Document, customType: StaticCu
|
|
|
5663
6707
|
}))[];
|
|
5664
6708
|
} | {
|
|
5665
6709
|
__TYPE__: "SeparatorContent";
|
|
5666
|
-
} | import("./fields").GroupContent
|
|
5667
|
-
}
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
primary: {
|
|
5672
|
-
[x: string]: {
|
|
6710
|
+
} | import("./fields").GroupContent;
|
|
6711
|
+
};
|
|
6712
|
+
items: {
|
|
6713
|
+
__TYPE__: "GroupItemContent";
|
|
6714
|
+
value: [string, {
|
|
5673
6715
|
type: string;
|
|
5674
6716
|
__TYPE__: "EmptyContent";
|
|
5675
6717
|
} | {
|
|
@@ -5981,9 +7023,11 @@ export declare function migrateDocument(document: Document, customType: StaticCu
|
|
|
5981
7023
|
}))[];
|
|
5982
7024
|
} | {
|
|
5983
7025
|
__TYPE__: "SeparatorContent";
|
|
5984
|
-
}
|
|
5985
|
-
};
|
|
5986
|
-
|
|
7026
|
+
}][];
|
|
7027
|
+
}[];
|
|
7028
|
+
} | {
|
|
7029
|
+
__TYPE__: "GroupContentType";
|
|
7030
|
+
value: {
|
|
5987
7031
|
__TYPE__: "GroupItemContent";
|
|
5988
7032
|
value: [string, {
|
|
5989
7033
|
type: string;
|
|
@@ -6297,7 +7341,7 @@ export declare function migrateDocument(document: Document, customType: StaticCu
|
|
|
6297
7341
|
}))[];
|
|
6298
7342
|
} | {
|
|
6299
7343
|
__TYPE__: "SeparatorContent";
|
|
6300
|
-
}
|
|
7344
|
+
}][];
|
|
6301
7345
|
}[];
|
|
6302
7346
|
};
|
|
6303
7347
|
}[];
|