@prismicio/types-internal 3.7.0 → 3.8.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 +114 -42
- package/lib/content/fields/RepeatableContent.d.ts +45 -47
- package/lib/content/fields/WidgetContent.d.ts +114 -42
- package/lib/content/fields/nestable/LinkContent.js +4 -16
- package/lib/content/fields/nestable/NestableContent.d.ts +19 -7
- package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +192 -55
- package/lib/content/fields/nestable/RichTextContent/TextBlock.js +10 -10
- package/lib/content/fields/nestable/TableContent.d.ts +25 -9
- package/lib/content/fields/nestable/TableContent.js +8 -8
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +38 -14
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +7 -3
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +38 -14
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +19 -7
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +19 -7
- package/lib/content/fields/slices/Slice/index.d.ts +65 -25
- package/lib/content/fields/slices/SliceItem.d.ts +65 -25
- package/lib/content/fields/slices/SlicesContent.d.ts +95 -35
- package/lib/content/utils.d.ts +4 -0
- package/lib/content/utils.js +16 -1
- package/lib/customtypes/widgets/slices/SliceWidget.d.ts +327 -0
- package/lib/customtypes/widgets/slices/SliceWidget.js +8 -0
- package/package.json +1 -1
- package/src/content/fields/nestable/LinkContent.ts +1 -20
- package/src/content/fields/nestable/TableContent.ts +37 -29
- package/src/content/utils.ts +20 -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
|
@@ -11,7 +11,7 @@ const RichTextContent_1 = require("./RichTextContent");
|
|
|
11
11
|
exports.TableContentType = "TableContent";
|
|
12
12
|
const isTableContent = (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.TableContentType;
|
|
13
13
|
exports.isTableContent = isTableContent;
|
|
14
|
-
const TableCell = t.intersection([
|
|
14
|
+
const TableCell = (0, utils_1.withKey)(t.intersection([
|
|
15
15
|
t.strict({
|
|
16
16
|
type: t.union([t.literal("tableHeader"), t.literal("tableCell")]),
|
|
17
17
|
content: RichTextContent_1.RichTextContent,
|
|
@@ -19,17 +19,17 @@ const TableCell = t.intersection([
|
|
|
19
19
|
t.exact(t.partial({
|
|
20
20
|
columnWidth: t.number,
|
|
21
21
|
})),
|
|
22
|
-
]);
|
|
23
|
-
const TableRow = t.strict({
|
|
22
|
+
]));
|
|
23
|
+
const TableRow = (0, utils_1.withKey)(t.strict({
|
|
24
24
|
type: t.literal("tableRow"),
|
|
25
25
|
content: t.array(TableCell),
|
|
26
|
-
});
|
|
26
|
+
}));
|
|
27
27
|
exports.TableContent = t.strict({
|
|
28
28
|
__TYPE__: t.literal(exports.TableContentType),
|
|
29
29
|
content: t.array(TableRow),
|
|
30
30
|
});
|
|
31
31
|
// Legacy.
|
|
32
|
-
const TableCellLegacy = t.intersection([
|
|
32
|
+
const TableCellLegacy = (0, utils_1.withKey)(t.intersection([
|
|
33
33
|
t.strict({
|
|
34
34
|
type: t.union([t.literal("tableHeader"), t.literal("tableCell")]),
|
|
35
35
|
content: RichTextContent_1.RichTextLegacyContent,
|
|
@@ -37,11 +37,11 @@ const TableCellLegacy = t.intersection([
|
|
|
37
37
|
t.exact(t.partial({
|
|
38
38
|
columnWidth: t.number,
|
|
39
39
|
})),
|
|
40
|
-
]);
|
|
41
|
-
const TableRowLegacy = t.strict({
|
|
40
|
+
]));
|
|
41
|
+
const TableRowLegacy = (0, utils_1.withKey)(t.strict({
|
|
42
42
|
type: t.literal("tableRow"),
|
|
43
43
|
content: t.array(TableCellLegacy),
|
|
44
|
-
});
|
|
44
|
+
}));
|
|
45
45
|
const TableLegacyContent = t.strict({
|
|
46
46
|
content: t.array(TableRowLegacy),
|
|
47
47
|
});
|
|
@@ -430,9 +430,13 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
430
430
|
__TYPE__: "SeparatorContent";
|
|
431
431
|
} | {
|
|
432
432
|
__TYPE__: "TableContent";
|
|
433
|
-
content: {
|
|
433
|
+
content: ({
|
|
434
|
+
key: string;
|
|
435
|
+
} & {
|
|
434
436
|
type: "tableRow";
|
|
435
437
|
content: ({
|
|
438
|
+
key: string;
|
|
439
|
+
} & {
|
|
436
440
|
type: "tableHeader" | "tableCell";
|
|
437
441
|
content: {
|
|
438
442
|
__TYPE__: "StructuredTextContent";
|
|
@@ -591,7 +595,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
591
595
|
} & {
|
|
592
596
|
columnWidth?: number;
|
|
593
597
|
})[];
|
|
594
|
-
}[];
|
|
598
|
+
})[];
|
|
595
599
|
};
|
|
596
600
|
};
|
|
597
601
|
repeat: {
|
|
@@ -1019,9 +1023,13 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
1019
1023
|
__TYPE__: "SeparatorContent";
|
|
1020
1024
|
} | {
|
|
1021
1025
|
__TYPE__: "TableContent";
|
|
1022
|
-
content: {
|
|
1026
|
+
content: ({
|
|
1027
|
+
key: string;
|
|
1028
|
+
} & {
|
|
1023
1029
|
type: "tableRow";
|
|
1024
1030
|
content: ({
|
|
1031
|
+
key: string;
|
|
1032
|
+
} & {
|
|
1025
1033
|
type: "tableHeader" | "tableCell";
|
|
1026
1034
|
content: {
|
|
1027
1035
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1180,7 +1188,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
1180
1188
|
} & {
|
|
1181
1189
|
columnWidth?: number;
|
|
1182
1190
|
})[];
|
|
1183
|
-
}[];
|
|
1191
|
+
})[];
|
|
1184
1192
|
}][];
|
|
1185
1193
|
}[];
|
|
1186
1194
|
};
|
|
@@ -1610,9 +1618,13 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1610
1618
|
__TYPE__: "SeparatorContent";
|
|
1611
1619
|
} | {
|
|
1612
1620
|
__TYPE__: "TableContent";
|
|
1613
|
-
content: {
|
|
1621
|
+
content: ({
|
|
1622
|
+
key: string;
|
|
1623
|
+
} & {
|
|
1614
1624
|
type: "tableRow";
|
|
1615
1625
|
content: ({
|
|
1626
|
+
key: string;
|
|
1627
|
+
} & {
|
|
1616
1628
|
type: "tableHeader" | "tableCell";
|
|
1617
1629
|
content: {
|
|
1618
1630
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1771,7 +1783,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1771
1783
|
} & {
|
|
1772
1784
|
columnWidth?: number;
|
|
1773
1785
|
})[];
|
|
1774
|
-
}[];
|
|
1786
|
+
})[];
|
|
1775
1787
|
};
|
|
1776
1788
|
};
|
|
1777
1789
|
repeat: {
|
|
@@ -2199,9 +2211,13 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2199
2211
|
__TYPE__: "SeparatorContent";
|
|
2200
2212
|
} | {
|
|
2201
2213
|
__TYPE__: "TableContent";
|
|
2202
|
-
content: {
|
|
2214
|
+
content: ({
|
|
2215
|
+
key: string;
|
|
2216
|
+
} & {
|
|
2203
2217
|
type: "tableRow";
|
|
2204
2218
|
content: ({
|
|
2219
|
+
key: string;
|
|
2220
|
+
} & {
|
|
2205
2221
|
type: "tableHeader" | "tableCell";
|
|
2206
2222
|
content: {
|
|
2207
2223
|
__TYPE__: "StructuredTextContent";
|
|
@@ -2360,7 +2376,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2360
2376
|
} & {
|
|
2361
2377
|
columnWidth?: number;
|
|
2362
2378
|
})[];
|
|
2363
|
-
}[];
|
|
2379
|
+
})[];
|
|
2364
2380
|
}][];
|
|
2365
2381
|
}[];
|
|
2366
2382
|
}, WithTypes<{
|
|
@@ -2801,9 +2817,13 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2801
2817
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
2802
2818
|
}>>, t.ExactC<t.TypeC<{
|
|
2803
2819
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
2804
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
2820
|
+
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2821
|
+
key: t.Type<string, string, unknown>;
|
|
2822
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2805
2823
|
type: t.LiteralC<"tableRow">;
|
|
2806
2824
|
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2825
|
+
key: t.Type<string, string, unknown>;
|
|
2826
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2807
2827
|
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
2808
2828
|
content: t.ExactC<t.TypeC<{
|
|
2809
2829
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -3047,8 +3067,8 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
3047
3067
|
}>>;
|
|
3048
3068
|
}>>, t.ExactC<t.PartialC<{
|
|
3049
3069
|
columnWidth: t.NumberC;
|
|
3050
|
-
}>>]>>;
|
|
3051
|
-
}
|
|
3070
|
+
}>>]>]>>;
|
|
3071
|
+
}>>]>>;
|
|
3052
3072
|
}>>, t.ExactC<t.TypeC<{
|
|
3053
3073
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
3054
3074
|
type: t.LiteralC<"Link">;
|
|
@@ -3563,9 +3583,13 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
3563
3583
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
3564
3584
|
}>>, t.ExactC<t.TypeC<{
|
|
3565
3585
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
3566
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
3586
|
+
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3587
|
+
key: t.Type<string, string, unknown>;
|
|
3588
|
+
}>>, t.ExactC<t.TypeC<{
|
|
3567
3589
|
type: t.LiteralC<"tableRow">;
|
|
3568
3590
|
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3591
|
+
key: t.Type<string, string, unknown>;
|
|
3592
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3569
3593
|
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
3570
3594
|
content: t.ExactC<t.TypeC<{
|
|
3571
3595
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -3809,8 +3833,8 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
3809
3833
|
}>>;
|
|
3810
3834
|
}>>, t.ExactC<t.PartialC<{
|
|
3811
3835
|
columnWidth: t.NumberC;
|
|
3812
|
-
}>>]>>;
|
|
3813
|
-
}
|
|
3836
|
+
}>>]>]>>;
|
|
3837
|
+
}>>]>>;
|
|
3814
3838
|
}>>, t.ExactC<t.TypeC<{
|
|
3815
3839
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
3816
3840
|
type: t.LiteralC<"Link">;
|
|
@@ -436,9 +436,13 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
436
436
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
437
437
|
}>>, t.ExactC<t.TypeC<{
|
|
438
438
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
439
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
439
|
+
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
440
|
+
key: t.Type<string, string, unknown>;
|
|
441
|
+
}>>, t.ExactC<t.TypeC<{
|
|
440
442
|
type: t.LiteralC<"tableRow">;
|
|
441
443
|
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
444
|
+
key: t.Type<string, string, unknown>;
|
|
445
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
442
446
|
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
443
447
|
content: t.ExactC<t.TypeC<{
|
|
444
448
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -682,8 +686,8 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
682
686
|
}>>;
|
|
683
687
|
}>>, t.ExactC<t.PartialC<{
|
|
684
688
|
columnWidth: t.NumberC;
|
|
685
|
-
}>>]>>;
|
|
686
|
-
}
|
|
689
|
+
}>>]>]>>;
|
|
690
|
+
}>>]>>;
|
|
687
691
|
}>>, t.ExactC<t.TypeC<{
|
|
688
692
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
689
693
|
type: t.LiteralC<"Link">;
|
|
@@ -431,9 +431,13 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
|
|
|
431
431
|
__TYPE__: "SeparatorContent";
|
|
432
432
|
} | {
|
|
433
433
|
__TYPE__: "TableContent";
|
|
434
|
-
content: {
|
|
434
|
+
content: ({
|
|
435
|
+
key: string;
|
|
436
|
+
} & {
|
|
435
437
|
type: "tableRow";
|
|
436
438
|
content: ({
|
|
439
|
+
key: string;
|
|
440
|
+
} & {
|
|
437
441
|
type: "tableHeader" | "tableCell";
|
|
438
442
|
content: {
|
|
439
443
|
__TYPE__: "StructuredTextContent";
|
|
@@ -592,7 +596,7 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
|
|
|
592
596
|
} & {
|
|
593
597
|
columnWidth?: number;
|
|
594
598
|
})[];
|
|
595
|
-
}[];
|
|
599
|
+
})[];
|
|
596
600
|
};
|
|
597
601
|
};
|
|
598
602
|
items: {
|
|
@@ -1020,9 +1024,13 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
|
|
|
1020
1024
|
__TYPE__: "SeparatorContent";
|
|
1021
1025
|
} | {
|
|
1022
1026
|
__TYPE__: "TableContent";
|
|
1023
|
-
content: {
|
|
1027
|
+
content: ({
|
|
1028
|
+
key: string;
|
|
1029
|
+
} & {
|
|
1024
1030
|
type: "tableRow";
|
|
1025
1031
|
content: ({
|
|
1032
|
+
key: string;
|
|
1033
|
+
} & {
|
|
1026
1034
|
type: "tableHeader" | "tableCell";
|
|
1027
1035
|
content: {
|
|
1028
1036
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1181,7 +1189,7 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
|
|
|
1181
1189
|
} & {
|
|
1182
1190
|
columnWidth?: number;
|
|
1183
1191
|
})[];
|
|
1184
|
-
}[];
|
|
1192
|
+
})[];
|
|
1185
1193
|
}][];
|
|
1186
1194
|
}[];
|
|
1187
1195
|
};
|
|
@@ -1612,9 +1620,13 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1612
1620
|
__TYPE__: "SeparatorContent";
|
|
1613
1621
|
} | {
|
|
1614
1622
|
__TYPE__: "TableContent";
|
|
1615
|
-
content: {
|
|
1623
|
+
content: ({
|
|
1624
|
+
key: string;
|
|
1625
|
+
} & {
|
|
1616
1626
|
type: "tableRow";
|
|
1617
1627
|
content: ({
|
|
1628
|
+
key: string;
|
|
1629
|
+
} & {
|
|
1618
1630
|
type: "tableHeader" | "tableCell";
|
|
1619
1631
|
content: {
|
|
1620
1632
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1773,7 +1785,7 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1773
1785
|
} & {
|
|
1774
1786
|
columnWidth?: number;
|
|
1775
1787
|
})[];
|
|
1776
|
-
}[];
|
|
1788
|
+
})[];
|
|
1777
1789
|
};
|
|
1778
1790
|
};
|
|
1779
1791
|
items: {
|
|
@@ -2201,9 +2213,13 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2201
2213
|
__TYPE__: "SeparatorContent";
|
|
2202
2214
|
} | {
|
|
2203
2215
|
__TYPE__: "TableContent";
|
|
2204
|
-
content: {
|
|
2216
|
+
content: ({
|
|
2217
|
+
key: string;
|
|
2218
|
+
} & {
|
|
2205
2219
|
type: "tableRow";
|
|
2206
2220
|
content: ({
|
|
2221
|
+
key: string;
|
|
2222
|
+
} & {
|
|
2207
2223
|
type: "tableHeader" | "tableCell";
|
|
2208
2224
|
content: {
|
|
2209
2225
|
__TYPE__: "StructuredTextContent";
|
|
@@ -2362,7 +2378,7 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2362
2378
|
} & {
|
|
2363
2379
|
columnWidth?: number;
|
|
2364
2380
|
})[];
|
|
2365
|
-
}[];
|
|
2381
|
+
})[];
|
|
2366
2382
|
}][];
|
|
2367
2383
|
}[];
|
|
2368
2384
|
}, WithTypes<{
|
|
@@ -2805,9 +2821,13 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
2805
2821
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
2806
2822
|
}>>, t.ExactC<t.TypeC<{
|
|
2807
2823
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
2808
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
2824
|
+
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2825
|
+
key: t.Type<string, string, unknown>;
|
|
2826
|
+
}>>, t.ExactC<t.TypeC<{
|
|
2809
2827
|
type: t.LiteralC<"tableRow">;
|
|
2810
2828
|
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2829
|
+
key: t.Type<string, string, unknown>;
|
|
2830
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2811
2831
|
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
2812
2832
|
content: t.ExactC<t.TypeC<{
|
|
2813
2833
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -3051,8 +3071,8 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
3051
3071
|
}>>;
|
|
3052
3072
|
}>>, t.ExactC<t.PartialC<{
|
|
3053
3073
|
columnWidth: t.NumberC;
|
|
3054
|
-
}>>]>>;
|
|
3055
|
-
}
|
|
3074
|
+
}>>]>]>>;
|
|
3075
|
+
}>>]>>;
|
|
3056
3076
|
}>>, t.ExactC<t.TypeC<{
|
|
3057
3077
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
3058
3078
|
type: t.LiteralC<"Link">;
|
|
@@ -3567,9 +3587,13 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
3567
3587
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
3568
3588
|
}>>, t.ExactC<t.TypeC<{
|
|
3569
3589
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
3570
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
3590
|
+
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3591
|
+
key: t.Type<string, string, unknown>;
|
|
3592
|
+
}>>, t.ExactC<t.TypeC<{
|
|
3571
3593
|
type: t.LiteralC<"tableRow">;
|
|
3572
3594
|
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3595
|
+
key: t.Type<string, string, unknown>;
|
|
3596
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3573
3597
|
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
3574
3598
|
content: t.ExactC<t.TypeC<{
|
|
3575
3599
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -3813,8 +3837,8 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
3813
3837
|
}>>;
|
|
3814
3838
|
}>>, t.ExactC<t.PartialC<{
|
|
3815
3839
|
columnWidth: t.NumberC;
|
|
3816
|
-
}>>]>>;
|
|
3817
|
-
}
|
|
3840
|
+
}>>]>]>>;
|
|
3841
|
+
}>>]>>;
|
|
3818
3842
|
}>>, t.ExactC<t.TypeC<{
|
|
3819
3843
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
3820
3844
|
type: t.LiteralC<"Link">;
|
|
@@ -434,9 +434,13 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
434
434
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
435
435
|
}>>, t.ExactC<t.TypeC<{
|
|
436
436
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
437
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
437
|
+
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
438
|
+
key: t.Type<string, string, unknown>;
|
|
439
|
+
}>>, t.ExactC<t.TypeC<{
|
|
438
440
|
type: t.LiteralC<"tableRow">;
|
|
439
441
|
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
442
|
+
key: t.Type<string, string, unknown>;
|
|
443
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
440
444
|
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
441
445
|
content: t.ExactC<t.TypeC<{
|
|
442
446
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -680,8 +684,8 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
680
684
|
}>>;
|
|
681
685
|
}>>, t.ExactC<t.PartialC<{
|
|
682
686
|
columnWidth: t.NumberC;
|
|
683
|
-
}>>]>>;
|
|
684
|
-
}
|
|
687
|
+
}>>]>]>>;
|
|
688
|
+
}>>]>>;
|
|
685
689
|
}>>, t.ExactC<t.TypeC<{
|
|
686
690
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
687
691
|
type: t.LiteralC<"Link">;
|
|
@@ -1188,9 +1192,13 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
1188
1192
|
__TYPE__: "SeparatorContent";
|
|
1189
1193
|
} | {
|
|
1190
1194
|
__TYPE__: "TableContent";
|
|
1191
|
-
content: {
|
|
1195
|
+
content: ({
|
|
1196
|
+
key: string;
|
|
1197
|
+
} & {
|
|
1192
1198
|
type: "tableRow";
|
|
1193
1199
|
content: ({
|
|
1200
|
+
key: string;
|
|
1201
|
+
} & {
|
|
1194
1202
|
type: "tableHeader" | "tableCell";
|
|
1195
1203
|
content: {
|
|
1196
1204
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1349,7 +1357,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
1349
1357
|
} & {
|
|
1350
1358
|
columnWidth?: number;
|
|
1351
1359
|
})[];
|
|
1352
|
-
}[];
|
|
1360
|
+
})[];
|
|
1353
1361
|
};
|
|
1354
1362
|
export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
1355
1363
|
decode: ((value: unknown) => import("fp-ts/lib/Either").Left<t.Errors> | import("fp-ts/lib/Either").Right<{
|
|
@@ -1775,9 +1783,13 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1775
1783
|
__TYPE__: "SeparatorContent";
|
|
1776
1784
|
}> | import("fp-ts/lib/Either").Right<{
|
|
1777
1785
|
__TYPE__: "TableContent";
|
|
1778
|
-
content: {
|
|
1786
|
+
content: ({
|
|
1787
|
+
key: string;
|
|
1788
|
+
} & {
|
|
1779
1789
|
type: "tableRow";
|
|
1780
1790
|
content: ({
|
|
1791
|
+
key: string;
|
|
1792
|
+
} & {
|
|
1781
1793
|
type: "tableHeader" | "tableCell";
|
|
1782
1794
|
content: {
|
|
1783
1795
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1936,7 +1948,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1936
1948
|
} & {
|
|
1937
1949
|
columnWidth?: number;
|
|
1938
1950
|
})[];
|
|
1939
|
-
}[];
|
|
1951
|
+
})[];
|
|
1940
1952
|
}> | undefined) | ((i: unknown) => t.Validation<GroupContent>);
|
|
1941
1953
|
encode: (value: SimpleSliceContent) => import("../../../LegacyContentCtx").WithTypes<unknown> | undefined;
|
|
1942
1954
|
};
|
|
@@ -431,9 +431,13 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
431
431
|
__TYPE__: t.LiteralC<"SeparatorContent">;
|
|
432
432
|
}>>, t.ExactC<t.TypeC<{
|
|
433
433
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
434
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
434
|
+
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
435
|
+
key: t.Type<string, string, unknown>;
|
|
436
|
+
}>>, t.ExactC<t.TypeC<{
|
|
435
437
|
type: t.LiteralC<"tableRow">;
|
|
436
438
|
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
439
|
+
key: t.Type<string, string, unknown>;
|
|
440
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
437
441
|
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
438
442
|
content: t.ExactC<t.TypeC<{
|
|
439
443
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -677,8 +681,8 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
677
681
|
}>>;
|
|
678
682
|
}>>, t.ExactC<t.PartialC<{
|
|
679
683
|
columnWidth: t.NumberC;
|
|
680
|
-
}>>]>>;
|
|
681
|
-
}
|
|
684
|
+
}>>]>]>>;
|
|
685
|
+
}>>]>>;
|
|
682
686
|
}>>, t.ExactC<t.TypeC<{
|
|
683
687
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
684
688
|
type: t.LiteralC<"Link">;
|
|
@@ -1187,9 +1191,13 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1187
1191
|
__TYPE__: "SeparatorContent";
|
|
1188
1192
|
}> | import("fp-ts/lib/Either").Right<{
|
|
1189
1193
|
__TYPE__: "TableContent";
|
|
1190
|
-
content: {
|
|
1194
|
+
content: ({
|
|
1195
|
+
key: string;
|
|
1196
|
+
} & {
|
|
1191
1197
|
type: "tableRow";
|
|
1192
1198
|
content: ({
|
|
1199
|
+
key: string;
|
|
1200
|
+
} & {
|
|
1193
1201
|
type: "tableHeader" | "tableCell";
|
|
1194
1202
|
content: {
|
|
1195
1203
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1348,7 +1356,7 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1348
1356
|
} & {
|
|
1349
1357
|
columnWidth?: number;
|
|
1350
1358
|
})[];
|
|
1351
|
-
}[];
|
|
1359
|
+
})[];
|
|
1352
1360
|
}> | t.Validation<GroupContent> | undefined;
|
|
1353
1361
|
encode(value: SlicePrimaryContent): import("../../../LegacyContentCtx").WithTypes<unknown> | undefined;
|
|
1354
1362
|
};
|
|
@@ -1775,9 +1783,13 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
1775
1783
|
__TYPE__: "SeparatorContent";
|
|
1776
1784
|
} | {
|
|
1777
1785
|
__TYPE__: "TableContent";
|
|
1778
|
-
content: {
|
|
1786
|
+
content: ({
|
|
1787
|
+
key: string;
|
|
1788
|
+
} & {
|
|
1779
1789
|
type: "tableRow";
|
|
1780
1790
|
content: ({
|
|
1791
|
+
key: string;
|
|
1792
|
+
} & {
|
|
1781
1793
|
type: "tableHeader" | "tableCell";
|
|
1782
1794
|
content: {
|
|
1783
1795
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1936,5 +1948,5 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
1936
1948
|
} & {
|
|
1937
1949
|
columnWidth?: number;
|
|
1938
1950
|
})[];
|
|
1939
|
-
}[];
|
|
1951
|
+
})[];
|
|
1940
1952
|
};
|