@prismicio/types-internal 3.4.0-alpha.9 → 3.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.
- package/lib/content/Document.d.ts +2958 -5496
- package/lib/content/Document.js +8 -0
- package/lib/content/fields/GroupContent.d.ts +1 -1
- package/lib/content/fields/GroupContent.js +15 -7
- package/lib/content/fields/WidgetContent.d.ts +3268 -5806
- package/lib/content/fields/nestable/NestableContent.d.ts +399 -822
- package/lib/content/fields/nestable/NestableContent.js +7 -8
- package/lib/content/fields/nestable/RepeatableContent.d.ts +2 -2
- package/lib/content/fields/nestable/RepeatableContent.js +5 -2
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +112 -0
- package/lib/content/fields/nestable/RichTextContent/Blocks.js +5 -5
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +310 -641
- package/lib/content/fields/nestable/RichTextContent/index.js +7 -11
- package/lib/content/fields/nestable/TableContent.d.ts +545 -1130
- package/lib/content/fields/nestable/TableContent.js +88 -21
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +701 -1547
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +140 -357
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +701 -1547
- package/lib/content/fields/slices/Slice/SharedSliceContent.js +12 -0
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +399 -822
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +392 -815
- package/lib/content/fields/slices/Slice/index.d.ts +1315 -2915
- package/lib/content/fields/slices/SliceItem.d.ts +1364 -2964
- package/lib/content/fields/slices/SlicesContent.d.ts +1861 -3976
- package/lib/customtypes/CustomType.d.ts +108 -0
- package/lib/customtypes/Section.d.ts +108 -0
- package/lib/customtypes/diff/SharedSlice.d.ts +48 -0
- package/lib/customtypes/diff/Variation.d.ts +48 -0
- package/lib/customtypes/widgets/Group.d.ts +36 -0
- package/lib/customtypes/widgets/Widget.d.ts +126 -0
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +6 -0
- package/lib/customtypes/widgets/nestable/NestableWidget.js +2 -0
- package/lib/customtypes/widgets/nestable/RichText.d.ts +0 -2
- package/lib/customtypes/widgets/nestable/RichText.js +0 -2
- package/lib/customtypes/widgets/nestable/Table.d.ts +6 -0
- package/lib/customtypes/widgets/nestable/Table.js +13 -1
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +12 -0
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +12 -0
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +48 -0
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +36 -0
- package/lib/customtypes/widgets/slices/Slices.d.ts +168 -0
- package/package.json +1 -1
- package/src/content/Document.ts +9 -0
- package/src/content/fields/GroupContent.ts +17 -11
- package/src/content/fields/nestable/NestableContent.ts +13 -9
- package/src/content/fields/nestable/RepeatableContent.ts +6 -2
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +238 -0
- package/src/content/fields/nestable/RichTextContent/index.ts +9 -13
- package/src/content/fields/nestable/TableContent.ts +115 -31
- package/src/content/fields/slices/Slice/SharedSliceContent.ts +13 -0
- package/src/customtypes/widgets/nestable/NestableWidget.ts +2 -0
- package/src/customtypes/widgets/nestable/RichText.ts +0 -2
- package/src/customtypes/widgets/nestable/Table.ts +13 -0
- package/lib/content/fields/nestable/RichTextContent/Block.d.ts +0 -1036
- package/lib/content/fields/nestable/RichTextContent/Block.js +0 -31
- package/lib/content/fields/nestable/RichTextContent/EmbedBlock.d.ts +0 -60
- package/lib/content/fields/nestable/RichTextContent/EmbedBlock.js +0 -53
- package/lib/content/fields/nestable/RichTextContent/ImageBlock.d.ts +0 -203
- package/lib/content/fields/nestable/RichTextContent/ImageBlock.js +0 -36
- package/lib/content/fields/nestable/RichTextContent/TableBlock.d.ts +0 -500
- package/lib/content/fields/nestable/RichTextContent/TableBlock.js +0 -21
- package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +0 -590
- package/lib/content/fields/nestable/RichTextContent/TextBlock.js +0 -80
- package/src/content/fields/nestable/RichTextContent/Block.ts +0 -35
- package/src/content/fields/nestable/RichTextContent/EmbedBlock.ts +0 -81
- package/src/content/fields/nestable/RichTextContent/ImageBlock.ts +0 -42
- package/src/content/fields/nestable/RichTextContent/TableBlock.ts +0 -36
- package/src/content/fields/nestable/RichTextContent/TextBlock.ts +0 -108
|
@@ -100,6 +100,12 @@ export declare const NestedGroupConfig: t.ExactC<t.PartialC<{
|
|
|
100
100
|
config: t.ExactC<t.PartialC<{
|
|
101
101
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
102
102
|
}>>;
|
|
103
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
104
|
+
type: t.LiteralC<"Table">;
|
|
105
|
+
}>, t.PartialC<{
|
|
106
|
+
config: t.ExactC<t.PartialC<{
|
|
107
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
108
|
+
}>>;
|
|
103
109
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
104
110
|
type: t.LiteralC<"Text">;
|
|
105
111
|
}>, t.PartialC<{
|
|
@@ -271,6 +277,12 @@ export declare const NestedGroup: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
271
277
|
config: t.ExactC<t.PartialC<{
|
|
272
278
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
273
279
|
}>>;
|
|
280
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
281
|
+
type: t.LiteralC<"Table">;
|
|
282
|
+
}>, t.PartialC<{
|
|
283
|
+
config: t.ExactC<t.PartialC<{
|
|
284
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
285
|
+
}>>;
|
|
274
286
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
275
287
|
type: t.LiteralC<"Text">;
|
|
276
288
|
}>, t.PartialC<{
|
|
@@ -437,6 +449,12 @@ export declare const GroupConfig: t.ExactC<t.PartialC<{
|
|
|
437
449
|
config: t.ExactC<t.PartialC<{
|
|
438
450
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
439
451
|
}>>;
|
|
452
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
453
|
+
type: t.LiteralC<"Table">;
|
|
454
|
+
}>, t.PartialC<{
|
|
455
|
+
config: t.ExactC<t.PartialC<{
|
|
456
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
457
|
+
}>>;
|
|
440
458
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
441
459
|
type: t.LiteralC<"Text">;
|
|
442
460
|
}>, t.PartialC<{
|
|
@@ -605,6 +623,12 @@ export declare const GroupConfig: t.ExactC<t.PartialC<{
|
|
|
605
623
|
config: t.ExactC<t.PartialC<{
|
|
606
624
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
607
625
|
}>>;
|
|
626
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
627
|
+
type: t.LiteralC<"Table">;
|
|
628
|
+
}>, t.PartialC<{
|
|
629
|
+
config: t.ExactC<t.PartialC<{
|
|
630
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
631
|
+
}>>;
|
|
608
632
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
609
633
|
type: t.LiteralC<"Text">;
|
|
610
634
|
}>, t.PartialC<{
|
|
@@ -778,6 +802,12 @@ export declare const Group: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
778
802
|
config: t.ExactC<t.PartialC<{
|
|
779
803
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
780
804
|
}>>;
|
|
805
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
806
|
+
type: t.LiteralC<"Table">;
|
|
807
|
+
}>, t.PartialC<{
|
|
808
|
+
config: t.ExactC<t.PartialC<{
|
|
809
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
810
|
+
}>>;
|
|
781
811
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
782
812
|
type: t.LiteralC<"Text">;
|
|
783
813
|
}>, t.PartialC<{
|
|
@@ -946,6 +976,12 @@ export declare const Group: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
946
976
|
config: t.ExactC<t.PartialC<{
|
|
947
977
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
948
978
|
}>>;
|
|
979
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
980
|
+
type: t.LiteralC<"Table">;
|
|
981
|
+
}>, t.PartialC<{
|
|
982
|
+
config: t.ExactC<t.PartialC<{
|
|
983
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
984
|
+
}>>;
|
|
949
985
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
950
986
|
type: t.LiteralC<"Text">;
|
|
951
987
|
}>, t.PartialC<{
|
|
@@ -107,6 +107,12 @@ export declare function widgetReader<T extends StaticSlices | DynamicSlices>(cod
|
|
|
107
107
|
config: t.ExactC<t.PartialC<{
|
|
108
108
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
109
109
|
}>>;
|
|
110
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
111
|
+
type: t.LiteralC<"Table">;
|
|
112
|
+
}>, t.PartialC<{
|
|
113
|
+
config: t.ExactC<t.PartialC<{
|
|
114
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
115
|
+
}>>;
|
|
110
116
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
111
117
|
type: t.LiteralC<"Text">;
|
|
112
118
|
}>, t.PartialC<{
|
|
@@ -275,6 +281,12 @@ export declare function widgetReader<T extends StaticSlices | DynamicSlices>(cod
|
|
|
275
281
|
config: t.ExactC<t.PartialC<{
|
|
276
282
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
277
283
|
}>>;
|
|
284
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
285
|
+
type: t.LiteralC<"Table">;
|
|
286
|
+
}>, t.PartialC<{
|
|
287
|
+
config: t.ExactC<t.PartialC<{
|
|
288
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
289
|
+
}>>;
|
|
278
290
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
279
291
|
type: t.LiteralC<"Text">;
|
|
280
292
|
}>, t.PartialC<{
|
|
@@ -443,6 +455,12 @@ export declare function widgetReader<T extends StaticSlices | DynamicSlices>(cod
|
|
|
443
455
|
config: t.ExactC<t.PartialC<{
|
|
444
456
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
445
457
|
}>>;
|
|
458
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
459
|
+
type: t.LiteralC<"Table">;
|
|
460
|
+
}>, t.PartialC<{
|
|
461
|
+
config: t.ExactC<t.PartialC<{
|
|
462
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
463
|
+
}>>;
|
|
446
464
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
447
465
|
type: t.LiteralC<"Text">;
|
|
448
466
|
}>, t.PartialC<{
|
|
@@ -616,6 +634,12 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
616
634
|
config: t.ExactC<t.PartialC<{
|
|
617
635
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
618
636
|
}>>;
|
|
637
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
638
|
+
type: t.LiteralC<"Table">;
|
|
639
|
+
}>, t.PartialC<{
|
|
640
|
+
config: t.ExactC<t.PartialC<{
|
|
641
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
642
|
+
}>>;
|
|
619
643
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
620
644
|
type: t.LiteralC<"Text">;
|
|
621
645
|
}>, t.PartialC<{
|
|
@@ -784,6 +808,12 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
784
808
|
config: t.ExactC<t.PartialC<{
|
|
785
809
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
786
810
|
}>>;
|
|
811
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
812
|
+
type: t.LiteralC<"Table">;
|
|
813
|
+
}>, t.PartialC<{
|
|
814
|
+
config: t.ExactC<t.PartialC<{
|
|
815
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
816
|
+
}>>;
|
|
787
817
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
788
818
|
type: t.LiteralC<"Text">;
|
|
789
819
|
}>, t.PartialC<{
|
|
@@ -952,6 +982,12 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
952
982
|
config: t.ExactC<t.PartialC<{
|
|
953
983
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
954
984
|
}>>;
|
|
985
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
986
|
+
type: t.LiteralC<"Table">;
|
|
987
|
+
}>, t.PartialC<{
|
|
988
|
+
config: t.ExactC<t.PartialC<{
|
|
989
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
990
|
+
}>>;
|
|
955
991
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
956
992
|
type: t.LiteralC<"Text">;
|
|
957
993
|
}>, t.PartialC<{
|
|
@@ -1173,6 +1209,12 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1173
1209
|
config?: {
|
|
1174
1210
|
label?: string | null | undefined;
|
|
1175
1211
|
};
|
|
1212
|
+
}) | ({
|
|
1213
|
+
type: "Table";
|
|
1214
|
+
} & {
|
|
1215
|
+
config?: {
|
|
1216
|
+
label?: string | null | undefined;
|
|
1217
|
+
};
|
|
1176
1218
|
}) | ({
|
|
1177
1219
|
type: "Text";
|
|
1178
1220
|
} & {
|
|
@@ -1342,6 +1384,12 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1342
1384
|
config?: {
|
|
1343
1385
|
label?: string | null | undefined;
|
|
1344
1386
|
};
|
|
1387
|
+
}) | ({
|
|
1388
|
+
type: "Table";
|
|
1389
|
+
} & {
|
|
1390
|
+
config?: {
|
|
1391
|
+
label?: string | null | undefined;
|
|
1392
|
+
};
|
|
1345
1393
|
}) | ({
|
|
1346
1394
|
type: "Text";
|
|
1347
1395
|
} & {
|
|
@@ -1512,6 +1560,12 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1512
1560
|
config?: {
|
|
1513
1561
|
label?: string | null | undefined;
|
|
1514
1562
|
};
|
|
1563
|
+
}) | ({
|
|
1564
|
+
type: "Table";
|
|
1565
|
+
} & {
|
|
1566
|
+
config?: {
|
|
1567
|
+
label?: string | null | undefined;
|
|
1568
|
+
};
|
|
1515
1569
|
}) | ({
|
|
1516
1570
|
type: "Text";
|
|
1517
1571
|
} & {
|
|
@@ -1674,6 +1728,12 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1674
1728
|
config?: {
|
|
1675
1729
|
label?: string | null | undefined;
|
|
1676
1730
|
};
|
|
1731
|
+
}) | ({
|
|
1732
|
+
type: "Table";
|
|
1733
|
+
} & {
|
|
1734
|
+
config?: {
|
|
1735
|
+
label?: string | null | undefined;
|
|
1736
|
+
};
|
|
1677
1737
|
}) | ({
|
|
1678
1738
|
type: "Text";
|
|
1679
1739
|
} & {
|
|
@@ -1852,6 +1912,12 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1852
1912
|
config?: {
|
|
1853
1913
|
label?: string | null | undefined;
|
|
1854
1914
|
};
|
|
1915
|
+
}) | ({
|
|
1916
|
+
type: "Table";
|
|
1917
|
+
} & {
|
|
1918
|
+
config?: {
|
|
1919
|
+
label?: string | null | undefined;
|
|
1920
|
+
};
|
|
1855
1921
|
}) | ({
|
|
1856
1922
|
type: "Text";
|
|
1857
1923
|
} & {
|
|
@@ -2021,6 +2087,12 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
2021
2087
|
config?: {
|
|
2022
2088
|
label?: string | null | undefined;
|
|
2023
2089
|
};
|
|
2090
|
+
}) | ({
|
|
2091
|
+
type: "Table";
|
|
2092
|
+
} & {
|
|
2093
|
+
config?: {
|
|
2094
|
+
label?: string | null | undefined;
|
|
2095
|
+
};
|
|
2024
2096
|
}) | ({
|
|
2025
2097
|
type: "Text";
|
|
2026
2098
|
} & {
|
|
@@ -2190,6 +2262,12 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
2190
2262
|
config?: {
|
|
2191
2263
|
label?: string | null | undefined;
|
|
2192
2264
|
};
|
|
2265
|
+
}) | ({
|
|
2266
|
+
type: "Table";
|
|
2267
|
+
} & {
|
|
2268
|
+
config?: {
|
|
2269
|
+
label?: string | null | undefined;
|
|
2270
|
+
};
|
|
2193
2271
|
}) | ({
|
|
2194
2272
|
type: "Text";
|
|
2195
2273
|
} & {
|
|
@@ -2358,6 +2436,12 @@ export declare const StaticWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
2358
2436
|
config?: {
|
|
2359
2437
|
label?: string | null | undefined;
|
|
2360
2438
|
};
|
|
2439
|
+
}) | ({
|
|
2440
|
+
type: "Table";
|
|
2441
|
+
} & {
|
|
2442
|
+
config?: {
|
|
2443
|
+
label?: string | null | undefined;
|
|
2444
|
+
};
|
|
2361
2445
|
}) | ({
|
|
2362
2446
|
type: "Text";
|
|
2363
2447
|
} & {
|
|
@@ -2495,6 +2579,12 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
|
|
|
2495
2579
|
config: t.ExactC<t.PartialC<{
|
|
2496
2580
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2497
2581
|
}>>;
|
|
2582
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2583
|
+
type: t.LiteralC<"Table">;
|
|
2584
|
+
}>, t.PartialC<{
|
|
2585
|
+
config: t.ExactC<t.PartialC<{
|
|
2586
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2587
|
+
}>>;
|
|
2498
2588
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2499
2589
|
type: t.LiteralC<"Text">;
|
|
2500
2590
|
}>, t.PartialC<{
|
|
@@ -2663,6 +2753,12 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
|
|
|
2663
2753
|
config: t.ExactC<t.PartialC<{
|
|
2664
2754
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2665
2755
|
}>>;
|
|
2756
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2757
|
+
type: t.LiteralC<"Table">;
|
|
2758
|
+
}>, t.PartialC<{
|
|
2759
|
+
config: t.ExactC<t.PartialC<{
|
|
2760
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2761
|
+
}>>;
|
|
2666
2762
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2667
2763
|
type: t.LiteralC<"Text">;
|
|
2668
2764
|
}>, t.PartialC<{
|
|
@@ -2831,6 +2927,12 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
|
|
|
2831
2927
|
config: t.ExactC<t.PartialC<{
|
|
2832
2928
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2833
2929
|
}>>;
|
|
2930
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2931
|
+
type: t.LiteralC<"Table">;
|
|
2932
|
+
}>, t.PartialC<{
|
|
2933
|
+
config: t.ExactC<t.PartialC<{
|
|
2934
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
2935
|
+
}>>;
|
|
2834
2936
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2835
2937
|
type: t.LiteralC<"Text">;
|
|
2836
2938
|
}>, t.PartialC<{
|
|
@@ -3052,6 +3154,12 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
|
|
|
3052
3154
|
config?: {
|
|
3053
3155
|
label?: string | null | undefined;
|
|
3054
3156
|
};
|
|
3157
|
+
}) | ({
|
|
3158
|
+
type: "Table";
|
|
3159
|
+
} & {
|
|
3160
|
+
config?: {
|
|
3161
|
+
label?: string | null | undefined;
|
|
3162
|
+
};
|
|
3055
3163
|
}) | ({
|
|
3056
3164
|
type: "Text";
|
|
3057
3165
|
} & {
|
|
@@ -3221,6 +3329,12 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
|
|
|
3221
3329
|
config?: {
|
|
3222
3330
|
label?: string | null | undefined;
|
|
3223
3331
|
};
|
|
3332
|
+
}) | ({
|
|
3333
|
+
type: "Table";
|
|
3334
|
+
} & {
|
|
3335
|
+
config?: {
|
|
3336
|
+
label?: string | null | undefined;
|
|
3337
|
+
};
|
|
3224
3338
|
}) | ({
|
|
3225
3339
|
type: "Text";
|
|
3226
3340
|
} & {
|
|
@@ -3391,6 +3505,12 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
|
|
|
3391
3505
|
config?: {
|
|
3392
3506
|
label?: string | null | undefined;
|
|
3393
3507
|
};
|
|
3508
|
+
}) | ({
|
|
3509
|
+
type: "Table";
|
|
3510
|
+
} & {
|
|
3511
|
+
config?: {
|
|
3512
|
+
label?: string | null | undefined;
|
|
3513
|
+
};
|
|
3394
3514
|
}) | ({
|
|
3395
3515
|
type: "Text";
|
|
3396
3516
|
} & {
|
|
@@ -3553,6 +3673,12 @@ export declare const DynamicWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<
|
|
|
3553
3673
|
config?: {
|
|
3554
3674
|
label?: string | null | undefined;
|
|
3555
3675
|
};
|
|
3676
|
+
}) | ({
|
|
3677
|
+
type: "Table";
|
|
3678
|
+
} & {
|
|
3679
|
+
config?: {
|
|
3680
|
+
label?: string | null | undefined;
|
|
3681
|
+
};
|
|
3556
3682
|
}) | ({
|
|
3557
3683
|
type: "Text";
|
|
3558
3684
|
} & {
|
|
@@ -96,6 +96,12 @@ export declare const NestableWidget: t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC
|
|
|
96
96
|
config: t.ExactC<t.PartialC<{
|
|
97
97
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
98
98
|
}>>;
|
|
99
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
100
|
+
type: t.LiteralC<"Table">;
|
|
101
|
+
}>, t.PartialC<{
|
|
102
|
+
config: t.ExactC<t.PartialC<{
|
|
103
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
104
|
+
}>>;
|
|
99
105
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
100
106
|
type: t.LiteralC<"Text">;
|
|
101
107
|
}>, t.PartialC<{
|
|
@@ -16,6 +16,7 @@ const Range_1 = require("./Range");
|
|
|
16
16
|
const RichText_1 = require("./RichText");
|
|
17
17
|
const Select_1 = require("./Select");
|
|
18
18
|
const Separator_1 = require("./Separator");
|
|
19
|
+
const Table_1 = require("./Table");
|
|
19
20
|
const Text_1 = require("./Text");
|
|
20
21
|
const Timestamp_1 = require("./Timestamp");
|
|
21
22
|
exports.NestableWidget = t.union([
|
|
@@ -29,6 +30,7 @@ exports.NestableWidget = t.union([
|
|
|
29
30
|
RichText_1.RichText,
|
|
30
31
|
Select_1.Select,
|
|
31
32
|
Separator_1.Separator,
|
|
33
|
+
Table_1.Table,
|
|
32
34
|
Text_1.Text,
|
|
33
35
|
Timestamp_1.Timestamp,
|
|
34
36
|
Link_1.Link,
|
|
@@ -19,7 +19,6 @@ export declare const RichTextNodeType: {
|
|
|
19
19
|
readonly list: "list-item";
|
|
20
20
|
readonly orderedList: "o-list-item";
|
|
21
21
|
readonly rtl: "rtl";
|
|
22
|
-
readonly table: "table";
|
|
23
22
|
};
|
|
24
23
|
export declare const RichTextNodeTypeCodec: t.KeyofC<{
|
|
25
24
|
heading1: null;
|
|
@@ -38,7 +37,6 @@ export declare const RichTextNodeTypeCodec: t.KeyofC<{
|
|
|
38
37
|
"list-item": null;
|
|
39
38
|
"o-list-item": null;
|
|
40
39
|
rtl: null;
|
|
41
|
-
table: null;
|
|
42
40
|
}>;
|
|
43
41
|
export declare const RichTextConfig: t.ExactC<t.PartialC<{
|
|
44
42
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
@@ -27,7 +27,6 @@ exports.RichTextNodeType = {
|
|
|
27
27
|
list: "list-item",
|
|
28
28
|
orderedList: "o-list-item",
|
|
29
29
|
rtl: "rtl",
|
|
30
|
-
table: "table",
|
|
31
30
|
};
|
|
32
31
|
exports.RichTextNodeTypeCodec = t.keyof({
|
|
33
32
|
[exports.RichTextNodeType.heading1]: null,
|
|
@@ -46,7 +45,6 @@ exports.RichTextNodeTypeCodec = t.keyof({
|
|
|
46
45
|
[exports.RichTextNodeType.list]: null,
|
|
47
46
|
[exports.RichTextNodeType.orderedList]: null,
|
|
48
47
|
[exports.RichTextNodeType.rtl]: null,
|
|
49
|
-
[exports.RichTextNodeType.table]: null,
|
|
50
48
|
});
|
|
51
49
|
const RichTextOptions = new t.Type("RichTextOptions", (u) => typeof u === "string", (u) => {
|
|
52
50
|
return (0, function_1.pipe)(t.union([t.string, t.null]).decode(u), fp_ts_1.either.map((s) => {
|
|
@@ -12,4 +12,10 @@ export declare const Table: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
12
12
|
}>>;
|
|
13
13
|
}>]>>;
|
|
14
14
|
export declare type Table = t.TypeOf<typeof Table>;
|
|
15
|
+
export declare const TableCell: {
|
|
16
|
+
type: "StructuredText";
|
|
17
|
+
config: {
|
|
18
|
+
multi: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
15
21
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Table = exports.TableFieldType = void 0;
|
|
3
|
+
exports.TableCell = exports.Table = exports.TableFieldType = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const t = (0, tslib_1.__importStar)(require("io-ts"));
|
|
6
6
|
const validators_1 = require("../../../validators");
|
|
7
|
+
const RichText_1 = require("./RichText");
|
|
7
8
|
exports.TableFieldType = "Table";
|
|
8
9
|
const TableConfig = t.exact(t.partial({
|
|
9
10
|
label: validators_1.StringOrNull,
|
|
@@ -16,3 +17,14 @@ exports.Table = t.exact(t.intersection([
|
|
|
16
17
|
config: TableConfig,
|
|
17
18
|
}),
|
|
18
19
|
]));
|
|
20
|
+
exports.TableCell = {
|
|
21
|
+
type: "StructuredText",
|
|
22
|
+
config: {
|
|
23
|
+
multi: [
|
|
24
|
+
RichText_1.RichTextNodeType.paragraph,
|
|
25
|
+
RichText_1.RichTextNodeType.strong,
|
|
26
|
+
RichText_1.RichTextNodeType.em,
|
|
27
|
+
RichText_1.RichTextNodeType.hyperlink,
|
|
28
|
+
].join(","),
|
|
29
|
+
},
|
|
30
|
+
};
|
|
@@ -109,6 +109,12 @@ export declare const CompositeSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
109
109
|
config: t.ExactC<t.PartialC<{
|
|
110
110
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
111
111
|
}>>;
|
|
112
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
113
|
+
type: t.LiteralC<"Table">;
|
|
114
|
+
}>, t.PartialC<{
|
|
115
|
+
config: t.ExactC<t.PartialC<{
|
|
116
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
117
|
+
}>>;
|
|
112
118
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
113
119
|
type: t.LiteralC<"Text">;
|
|
114
120
|
}>, t.PartialC<{
|
|
@@ -269,6 +275,12 @@ export declare const CompositeSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
269
275
|
config: t.ExactC<t.PartialC<{
|
|
270
276
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
271
277
|
}>>;
|
|
278
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
279
|
+
type: t.LiteralC<"Table">;
|
|
280
|
+
}>, t.PartialC<{
|
|
281
|
+
config: t.ExactC<t.PartialC<{
|
|
282
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
283
|
+
}>>;
|
|
272
284
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
273
285
|
type: t.LiteralC<"Text">;
|
|
274
286
|
}>, t.PartialC<{
|
|
@@ -97,6 +97,12 @@ export declare const LegacySlice: t.UnionC<[t.UnionC<[t.ExactC<t.IntersectionC<[
|
|
|
97
97
|
config: t.ExactC<t.PartialC<{
|
|
98
98
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
99
99
|
}>>;
|
|
100
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
101
|
+
type: t.LiteralC<"Table">;
|
|
102
|
+
}>, t.PartialC<{
|
|
103
|
+
config: t.ExactC<t.PartialC<{
|
|
104
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
105
|
+
}>>;
|
|
100
106
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
101
107
|
type: t.LiteralC<"Text">;
|
|
102
108
|
}>, t.PartialC<{
|
|
@@ -265,6 +271,12 @@ export declare const LegacySlice: t.UnionC<[t.UnionC<[t.ExactC<t.IntersectionC<[
|
|
|
265
271
|
config: t.ExactC<t.PartialC<{
|
|
266
272
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
267
273
|
}>>;
|
|
274
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
275
|
+
type: t.LiteralC<"Table">;
|
|
276
|
+
}>, t.PartialC<{
|
|
277
|
+
config: t.ExactC<t.PartialC<{
|
|
278
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
279
|
+
}>>;
|
|
268
280
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
269
281
|
type: t.LiteralC<"Text">;
|
|
270
282
|
}>, t.PartialC<{
|
|
@@ -107,6 +107,12 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
107
107
|
config: t.ExactC<t.PartialC<{
|
|
108
108
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
109
109
|
}>>;
|
|
110
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
111
|
+
type: t.LiteralC<"Table">;
|
|
112
|
+
}>, t.PartialC<{
|
|
113
|
+
config: t.ExactC<t.PartialC<{
|
|
114
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
115
|
+
}>>;
|
|
110
116
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
111
117
|
type: t.LiteralC<"Text">;
|
|
112
118
|
}>, t.PartialC<{
|
|
@@ -275,6 +281,12 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
275
281
|
config: t.ExactC<t.PartialC<{
|
|
276
282
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
277
283
|
}>>;
|
|
284
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
285
|
+
type: t.LiteralC<"Table">;
|
|
286
|
+
}>, t.PartialC<{
|
|
287
|
+
config: t.ExactC<t.PartialC<{
|
|
288
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
289
|
+
}>>;
|
|
278
290
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
279
291
|
type: t.LiteralC<"Text">;
|
|
280
292
|
}>, t.PartialC<{
|
|
@@ -443,6 +455,12 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
443
455
|
config: t.ExactC<t.PartialC<{
|
|
444
456
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
445
457
|
}>>;
|
|
458
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
459
|
+
type: t.LiteralC<"Table">;
|
|
460
|
+
}>, t.PartialC<{
|
|
461
|
+
config: t.ExactC<t.PartialC<{
|
|
462
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
463
|
+
}>>;
|
|
446
464
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
447
465
|
type: t.LiteralC<"Text">;
|
|
448
466
|
}>, t.PartialC<{
|
|
@@ -607,6 +625,12 @@ export declare const Variation: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
607
625
|
config: t.ExactC<t.PartialC<{
|
|
608
626
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
609
627
|
}>>;
|
|
628
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
629
|
+
type: t.LiteralC<"Table">;
|
|
630
|
+
}>, t.PartialC<{
|
|
631
|
+
config: t.ExactC<t.PartialC<{
|
|
632
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
633
|
+
}>>;
|
|
610
634
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
611
635
|
type: t.LiteralC<"Text">;
|
|
612
636
|
}>, t.PartialC<{
|
|
@@ -789,6 +813,12 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
789
813
|
config: t.ExactC<t.PartialC<{
|
|
790
814
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
791
815
|
}>>;
|
|
816
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
817
|
+
type: t.LiteralC<"Table">;
|
|
818
|
+
}>, t.PartialC<{
|
|
819
|
+
config: t.ExactC<t.PartialC<{
|
|
820
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
821
|
+
}>>;
|
|
792
822
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
793
823
|
type: t.LiteralC<"Text">;
|
|
794
824
|
}>, t.PartialC<{
|
|
@@ -957,6 +987,12 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
957
987
|
config: t.ExactC<t.PartialC<{
|
|
958
988
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
959
989
|
}>>;
|
|
990
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
991
|
+
type: t.LiteralC<"Table">;
|
|
992
|
+
}>, t.PartialC<{
|
|
993
|
+
config: t.ExactC<t.PartialC<{
|
|
994
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
995
|
+
}>>;
|
|
960
996
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
961
997
|
type: t.LiteralC<"Text">;
|
|
962
998
|
}>, t.PartialC<{
|
|
@@ -1125,6 +1161,12 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1125
1161
|
config: t.ExactC<t.PartialC<{
|
|
1126
1162
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1127
1163
|
}>>;
|
|
1164
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1165
|
+
type: t.LiteralC<"Table">;
|
|
1166
|
+
}>, t.PartialC<{
|
|
1167
|
+
config: t.ExactC<t.PartialC<{
|
|
1168
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1169
|
+
}>>;
|
|
1128
1170
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1129
1171
|
type: t.LiteralC<"Text">;
|
|
1130
1172
|
}>, t.PartialC<{
|
|
@@ -1289,6 +1331,12 @@ export declare const SharedSlice: t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
|
1289
1331
|
config: t.ExactC<t.PartialC<{
|
|
1290
1332
|
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1291
1333
|
}>>;
|
|
1334
|
+
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1335
|
+
type: t.LiteralC<"Table">;
|
|
1336
|
+
}>, t.PartialC<{
|
|
1337
|
+
config: t.ExactC<t.PartialC<{
|
|
1338
|
+
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
1339
|
+
}>>;
|
|
1292
1340
|
}>]>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1293
1341
|
type: t.LiteralC<"Text">;
|
|
1294
1342
|
}>, t.PartialC<{
|