@prismicio/types-internal 3.6.0 → 3.7.0-alpha.1
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 +72 -36
- package/lib/content/fields/WidgetContent.d.ts +72 -36
- package/lib/content/fields/nestable/NestableContent.d.ts +12 -6
- package/lib/content/fields/nestable/RichTextContent/Block.d.ts +1036 -0
- package/lib/content/fields/nestable/RichTextContent/Block.js +31 -0
- package/lib/content/fields/nestable/RichTextContent/EmbedBlock.d.ts +60 -0
- package/lib/content/fields/nestable/RichTextContent/EmbedBlock.js +53 -0
- package/lib/content/fields/nestable/RichTextContent/ImageBlock.d.ts +203 -0
- package/lib/content/fields/nestable/RichTextContent/ImageBlock.js +36 -0
- package/lib/content/fields/nestable/RichTextContent/TableBlock.d.ts +500 -0
- package/lib/content/fields/nestable/RichTextContent/TableBlock.js +21 -0
- package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +590 -0
- package/lib/content/fields/nestable/RichTextContent/TextBlock.js +80 -0
- package/lib/content/fields/nestable/TableContent.d.ts +16 -8
- package/lib/content/fields/nestable/TableContent.js +18 -8
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +24 -12
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +4 -2
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +24 -12
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +12 -6
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +12 -6
- package/lib/content/fields/slices/Slice/index.d.ts +40 -20
- package/lib/content/fields/slices/SliceItem.d.ts +40 -20
- package/lib/content/fields/slices/SlicesContent.d.ts +60 -30
- package/package.json +1 -1
- package/src/content/fields/nestable/TableContent.ts +22 -8
|
@@ -7,7 +7,7 @@ export declare const isTableContent: (u: unknown) => u is {
|
|
|
7
7
|
__TYPE__: "TableContent";
|
|
8
8
|
content: {
|
|
9
9
|
type: "tableRow";
|
|
10
|
-
content: {
|
|
10
|
+
content: ({
|
|
11
11
|
type: "tableHeader" | "tableCell";
|
|
12
12
|
content: {
|
|
13
13
|
__TYPE__: "StructuredTextContent";
|
|
@@ -163,14 +163,16 @@ export declare const isTableContent: (u: unknown) => u is {
|
|
|
163
163
|
direction?: string;
|
|
164
164
|
}))[];
|
|
165
165
|
};
|
|
166
|
-
}
|
|
166
|
+
} & {
|
|
167
|
+
columnWidth?: number;
|
|
168
|
+
})[];
|
|
167
169
|
}[];
|
|
168
170
|
};
|
|
169
171
|
export declare const TableContent: t.ExactC<t.TypeC<{
|
|
170
172
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
171
173
|
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
172
174
|
type: t.LiteralC<"tableRow">;
|
|
173
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
175
|
+
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
174
176
|
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
175
177
|
content: t.ExactC<t.TypeC<{
|
|
176
178
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -412,7 +414,9 @@ export declare const TableContent: t.ExactC<t.TypeC<{
|
|
|
412
414
|
direction: t.StringC;
|
|
413
415
|
}>]>>]>>;
|
|
414
416
|
}>>;
|
|
415
|
-
}
|
|
417
|
+
}>>, t.ExactC<t.PartialC<{
|
|
418
|
+
columnWidth: t.NumberC;
|
|
419
|
+
}>>]>>;
|
|
416
420
|
}>>>;
|
|
417
421
|
}>>;
|
|
418
422
|
export declare type TableContent = t.TypeOf<typeof TableContent>;
|
|
@@ -420,7 +424,7 @@ export declare const TableLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
420
424
|
__TYPE__: "TableContent";
|
|
421
425
|
content: {
|
|
422
426
|
type: "tableRow";
|
|
423
|
-
content: {
|
|
427
|
+
content: ({
|
|
424
428
|
type: "tableHeader" | "tableCell";
|
|
425
429
|
content: {
|
|
426
430
|
__TYPE__: "StructuredTextContent";
|
|
@@ -576,12 +580,14 @@ export declare const TableLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
576
580
|
direction?: string;
|
|
577
581
|
}))[];
|
|
578
582
|
};
|
|
579
|
-
}
|
|
583
|
+
} & {
|
|
584
|
+
columnWidth?: number;
|
|
585
|
+
})[];
|
|
580
586
|
}[];
|
|
581
587
|
}, WithTypes<{
|
|
582
588
|
content: {
|
|
583
589
|
type: "tableRow";
|
|
584
|
-
content: {
|
|
590
|
+
content: ({
|
|
585
591
|
type: "tableHeader" | "tableCell";
|
|
586
592
|
content: (({
|
|
587
593
|
type: "image";
|
|
@@ -734,7 +740,9 @@ export declare const TableLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
734
740
|
label?: string;
|
|
735
741
|
direction?: string;
|
|
736
742
|
}))[];
|
|
737
|
-
}
|
|
743
|
+
} & {
|
|
744
|
+
columnWidth?: number;
|
|
745
|
+
})[];
|
|
738
746
|
}[];
|
|
739
747
|
}>, unknown>;
|
|
740
748
|
export declare function traverseTableContent({ path, key, apiId, model, content, }: {
|
|
@@ -11,10 +11,15 @@ 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.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
const TableCell = t.intersection([
|
|
15
|
+
t.strict({
|
|
16
|
+
type: t.union([t.literal("tableHeader"), t.literal("tableCell")]),
|
|
17
|
+
content: RichTextContent_1.RichTextContent,
|
|
18
|
+
}),
|
|
19
|
+
t.exact(t.partial({
|
|
20
|
+
columnWidth: t.number,
|
|
21
|
+
})),
|
|
22
|
+
]);
|
|
18
23
|
const TableRow = t.strict({
|
|
19
24
|
type: t.literal("tableRow"),
|
|
20
25
|
content: t.array(TableCell),
|
|
@@ -24,10 +29,15 @@ exports.TableContent = t.strict({
|
|
|
24
29
|
content: t.array(TableRow),
|
|
25
30
|
});
|
|
26
31
|
// Legacy.
|
|
27
|
-
const TableCellLegacy = t.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
const TableCellLegacy = t.intersection([
|
|
33
|
+
t.strict({
|
|
34
|
+
type: t.union([t.literal("tableHeader"), t.literal("tableCell")]),
|
|
35
|
+
content: RichTextContent_1.RichTextLegacyContent,
|
|
36
|
+
}),
|
|
37
|
+
t.exact(t.partial({
|
|
38
|
+
columnWidth: t.number,
|
|
39
|
+
})),
|
|
40
|
+
]);
|
|
31
41
|
const TableRowLegacy = t.strict({
|
|
32
42
|
type: t.literal("tableRow"),
|
|
33
43
|
content: t.array(TableCellLegacy),
|
|
@@ -432,7 +432,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
432
432
|
__TYPE__: "TableContent";
|
|
433
433
|
content: {
|
|
434
434
|
type: "tableRow";
|
|
435
|
-
content: {
|
|
435
|
+
content: ({
|
|
436
436
|
type: "tableHeader" | "tableCell";
|
|
437
437
|
content: {
|
|
438
438
|
__TYPE__: "StructuredTextContent";
|
|
@@ -588,7 +588,9 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
588
588
|
direction?: string;
|
|
589
589
|
}))[];
|
|
590
590
|
};
|
|
591
|
-
}
|
|
591
|
+
} & {
|
|
592
|
+
columnWidth?: number;
|
|
593
|
+
})[];
|
|
592
594
|
}[];
|
|
593
595
|
};
|
|
594
596
|
};
|
|
@@ -1019,7 +1021,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
1019
1021
|
__TYPE__: "TableContent";
|
|
1020
1022
|
content: {
|
|
1021
1023
|
type: "tableRow";
|
|
1022
|
-
content: {
|
|
1024
|
+
content: ({
|
|
1023
1025
|
type: "tableHeader" | "tableCell";
|
|
1024
1026
|
content: {
|
|
1025
1027
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1175,7 +1177,9 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
1175
1177
|
direction?: string;
|
|
1176
1178
|
}))[];
|
|
1177
1179
|
};
|
|
1178
|
-
}
|
|
1180
|
+
} & {
|
|
1181
|
+
columnWidth?: number;
|
|
1182
|
+
})[];
|
|
1179
1183
|
}[];
|
|
1180
1184
|
}][];
|
|
1181
1185
|
}[];
|
|
@@ -1608,7 +1612,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1608
1612
|
__TYPE__: "TableContent";
|
|
1609
1613
|
content: {
|
|
1610
1614
|
type: "tableRow";
|
|
1611
|
-
content: {
|
|
1615
|
+
content: ({
|
|
1612
1616
|
type: "tableHeader" | "tableCell";
|
|
1613
1617
|
content: {
|
|
1614
1618
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1764,7 +1768,9 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1764
1768
|
direction?: string;
|
|
1765
1769
|
}))[];
|
|
1766
1770
|
};
|
|
1767
|
-
}
|
|
1771
|
+
} & {
|
|
1772
|
+
columnWidth?: number;
|
|
1773
|
+
})[];
|
|
1768
1774
|
}[];
|
|
1769
1775
|
};
|
|
1770
1776
|
};
|
|
@@ -2195,7 +2201,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2195
2201
|
__TYPE__: "TableContent";
|
|
2196
2202
|
content: {
|
|
2197
2203
|
type: "tableRow";
|
|
2198
|
-
content: {
|
|
2204
|
+
content: ({
|
|
2199
2205
|
type: "tableHeader" | "tableCell";
|
|
2200
2206
|
content: {
|
|
2201
2207
|
__TYPE__: "StructuredTextContent";
|
|
@@ -2351,7 +2357,9 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2351
2357
|
direction?: string;
|
|
2352
2358
|
}))[];
|
|
2353
2359
|
};
|
|
2354
|
-
}
|
|
2360
|
+
} & {
|
|
2361
|
+
columnWidth?: number;
|
|
2362
|
+
})[];
|
|
2355
2363
|
}[];
|
|
2356
2364
|
}][];
|
|
2357
2365
|
}[];
|
|
@@ -2795,7 +2803,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2795
2803
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
2796
2804
|
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
2797
2805
|
type: t.LiteralC<"tableRow">;
|
|
2798
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
2806
|
+
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2799
2807
|
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
2800
2808
|
content: t.ExactC<t.TypeC<{
|
|
2801
2809
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -3037,7 +3045,9 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
3037
3045
|
direction: t.StringC;
|
|
3038
3046
|
}>]>>]>>;
|
|
3039
3047
|
}>>;
|
|
3040
|
-
}
|
|
3048
|
+
}>>, t.ExactC<t.PartialC<{
|
|
3049
|
+
columnWidth: t.NumberC;
|
|
3050
|
+
}>>]>>;
|
|
3041
3051
|
}>>>;
|
|
3042
3052
|
}>>, t.ExactC<t.TypeC<{
|
|
3043
3053
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
@@ -3555,7 +3565,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
3555
3565
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
3556
3566
|
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
3557
3567
|
type: t.LiteralC<"tableRow">;
|
|
3558
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
3568
|
+
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3559
3569
|
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
3560
3570
|
content: t.ExactC<t.TypeC<{
|
|
3561
3571
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -3797,7 +3807,9 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
3797
3807
|
direction: t.StringC;
|
|
3798
3808
|
}>]>>]>>;
|
|
3799
3809
|
}>>;
|
|
3800
|
-
}
|
|
3810
|
+
}>>, t.ExactC<t.PartialC<{
|
|
3811
|
+
columnWidth: t.NumberC;
|
|
3812
|
+
}>>]>>;
|
|
3801
3813
|
}>>>;
|
|
3802
3814
|
}>>, t.ExactC<t.TypeC<{
|
|
3803
3815
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
@@ -438,7 +438,7 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
438
438
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
439
439
|
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
440
440
|
type: t.LiteralC<"tableRow">;
|
|
441
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
441
|
+
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
442
442
|
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
443
443
|
content: t.ExactC<t.TypeC<{
|
|
444
444
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -680,7 +680,9 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
680
680
|
direction: t.StringC;
|
|
681
681
|
}>]>>]>>;
|
|
682
682
|
}>>;
|
|
683
|
-
}
|
|
683
|
+
}>>, t.ExactC<t.PartialC<{
|
|
684
|
+
columnWidth: t.NumberC;
|
|
685
|
+
}>>]>>;
|
|
684
686
|
}>>>;
|
|
685
687
|
}>>, t.ExactC<t.TypeC<{
|
|
686
688
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
@@ -433,7 +433,7 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
|
|
|
433
433
|
__TYPE__: "TableContent";
|
|
434
434
|
content: {
|
|
435
435
|
type: "tableRow";
|
|
436
|
-
content: {
|
|
436
|
+
content: ({
|
|
437
437
|
type: "tableHeader" | "tableCell";
|
|
438
438
|
content: {
|
|
439
439
|
__TYPE__: "StructuredTextContent";
|
|
@@ -589,7 +589,9 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
|
|
|
589
589
|
direction?: string;
|
|
590
590
|
}))[];
|
|
591
591
|
};
|
|
592
|
-
}
|
|
592
|
+
} & {
|
|
593
|
+
columnWidth?: number;
|
|
594
|
+
})[];
|
|
593
595
|
}[];
|
|
594
596
|
};
|
|
595
597
|
};
|
|
@@ -1020,7 +1022,7 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
|
|
|
1020
1022
|
__TYPE__: "TableContent";
|
|
1021
1023
|
content: {
|
|
1022
1024
|
type: "tableRow";
|
|
1023
|
-
content: {
|
|
1025
|
+
content: ({
|
|
1024
1026
|
type: "tableHeader" | "tableCell";
|
|
1025
1027
|
content: {
|
|
1026
1028
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1176,7 +1178,9 @@ export declare const isSharedSliceContent: (u: unknown) => u is {
|
|
|
1176
1178
|
direction?: string;
|
|
1177
1179
|
}))[];
|
|
1178
1180
|
};
|
|
1179
|
-
}
|
|
1181
|
+
} & {
|
|
1182
|
+
columnWidth?: number;
|
|
1183
|
+
})[];
|
|
1180
1184
|
}[];
|
|
1181
1185
|
}][];
|
|
1182
1186
|
}[];
|
|
@@ -1610,7 +1614,7 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1610
1614
|
__TYPE__: "TableContent";
|
|
1611
1615
|
content: {
|
|
1612
1616
|
type: "tableRow";
|
|
1613
|
-
content: {
|
|
1617
|
+
content: ({
|
|
1614
1618
|
type: "tableHeader" | "tableCell";
|
|
1615
1619
|
content: {
|
|
1616
1620
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1766,7 +1770,9 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1766
1770
|
direction?: string;
|
|
1767
1771
|
}))[];
|
|
1768
1772
|
};
|
|
1769
|
-
}
|
|
1773
|
+
} & {
|
|
1774
|
+
columnWidth?: number;
|
|
1775
|
+
})[];
|
|
1770
1776
|
}[];
|
|
1771
1777
|
};
|
|
1772
1778
|
};
|
|
@@ -2197,7 +2203,7 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2197
2203
|
__TYPE__: "TableContent";
|
|
2198
2204
|
content: {
|
|
2199
2205
|
type: "tableRow";
|
|
2200
|
-
content: {
|
|
2206
|
+
content: ({
|
|
2201
2207
|
type: "tableHeader" | "tableCell";
|
|
2202
2208
|
content: {
|
|
2203
2209
|
__TYPE__: "StructuredTextContent";
|
|
@@ -2353,7 +2359,9 @@ export declare const SharedSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
2353
2359
|
direction?: string;
|
|
2354
2360
|
}))[];
|
|
2355
2361
|
};
|
|
2356
|
-
}
|
|
2362
|
+
} & {
|
|
2363
|
+
columnWidth?: number;
|
|
2364
|
+
})[];
|
|
2357
2365
|
}[];
|
|
2358
2366
|
}][];
|
|
2359
2367
|
}[];
|
|
@@ -2799,7 +2807,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
2799
2807
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
2800
2808
|
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
2801
2809
|
type: t.LiteralC<"tableRow">;
|
|
2802
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
2810
|
+
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2803
2811
|
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
2804
2812
|
content: t.ExactC<t.TypeC<{
|
|
2805
2813
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -3041,7 +3049,9 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
3041
3049
|
direction: t.StringC;
|
|
3042
3050
|
}>]>>]>>;
|
|
3043
3051
|
}>>;
|
|
3044
|
-
}
|
|
3052
|
+
}>>, t.ExactC<t.PartialC<{
|
|
3053
|
+
columnWidth: t.NumberC;
|
|
3054
|
+
}>>]>>;
|
|
3045
3055
|
}>>>;
|
|
3046
3056
|
}>>, t.ExactC<t.TypeC<{
|
|
3047
3057
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
@@ -3559,7 +3569,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
3559
3569
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
3560
3570
|
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
3561
3571
|
type: t.LiteralC<"tableRow">;
|
|
3562
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
3572
|
+
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3563
3573
|
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
3564
3574
|
content: t.ExactC<t.TypeC<{
|
|
3565
3575
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -3801,7 +3811,9 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
3801
3811
|
direction: t.StringC;
|
|
3802
3812
|
}>]>>]>>;
|
|
3803
3813
|
}>>;
|
|
3804
|
-
}
|
|
3814
|
+
}>>, t.ExactC<t.PartialC<{
|
|
3815
|
+
columnWidth: t.NumberC;
|
|
3816
|
+
}>>]>>;
|
|
3805
3817
|
}>>>;
|
|
3806
3818
|
}>>, t.ExactC<t.TypeC<{
|
|
3807
3819
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
@@ -436,7 +436,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
436
436
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
437
437
|
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
438
438
|
type: t.LiteralC<"tableRow">;
|
|
439
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
439
|
+
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
440
440
|
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
441
441
|
content: t.ExactC<t.TypeC<{
|
|
442
442
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -678,7 +678,9 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
678
678
|
direction: t.StringC;
|
|
679
679
|
}>]>>]>>;
|
|
680
680
|
}>>;
|
|
681
|
-
}
|
|
681
|
+
}>>, t.ExactC<t.PartialC<{
|
|
682
|
+
columnWidth: t.NumberC;
|
|
683
|
+
}>>]>>;
|
|
682
684
|
}>>>;
|
|
683
685
|
}>>, t.ExactC<t.TypeC<{
|
|
684
686
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
@@ -1188,7 +1190,7 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
1188
1190
|
__TYPE__: "TableContent";
|
|
1189
1191
|
content: {
|
|
1190
1192
|
type: "tableRow";
|
|
1191
|
-
content: {
|
|
1193
|
+
content: ({
|
|
1192
1194
|
type: "tableHeader" | "tableCell";
|
|
1193
1195
|
content: {
|
|
1194
1196
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1344,7 +1346,9 @@ export declare const isSimpleSliceContent: (u: unknown) => u is {
|
|
|
1344
1346
|
direction?: string;
|
|
1345
1347
|
}))[];
|
|
1346
1348
|
};
|
|
1347
|
-
}
|
|
1349
|
+
} & {
|
|
1350
|
+
columnWidth?: number;
|
|
1351
|
+
})[];
|
|
1348
1352
|
}[];
|
|
1349
1353
|
};
|
|
1350
1354
|
export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
@@ -1773,7 +1777,7 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1773
1777
|
__TYPE__: "TableContent";
|
|
1774
1778
|
content: {
|
|
1775
1779
|
type: "tableRow";
|
|
1776
|
-
content: {
|
|
1780
|
+
content: ({
|
|
1777
1781
|
type: "tableHeader" | "tableCell";
|
|
1778
1782
|
content: {
|
|
1779
1783
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1929,7 +1933,9 @@ export declare const SimpleSliceLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1929
1933
|
direction?: string;
|
|
1930
1934
|
}))[];
|
|
1931
1935
|
};
|
|
1932
|
-
}
|
|
1936
|
+
} & {
|
|
1937
|
+
columnWidth?: number;
|
|
1938
|
+
})[];
|
|
1933
1939
|
}[];
|
|
1934
1940
|
}> | undefined) | ((i: unknown) => t.Validation<GroupContent>);
|
|
1935
1941
|
encode: (value: SimpleSliceContent) => import("../../../LegacyContentCtx").WithTypes<unknown> | undefined;
|
|
@@ -433,7 +433,7 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
433
433
|
__TYPE__: t.LiteralC<"TableContent">;
|
|
434
434
|
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
435
435
|
type: t.LiteralC<"tableRow">;
|
|
436
|
-
content: t.ArrayC<t.ExactC<t.TypeC<{
|
|
436
|
+
content: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
437
437
|
type: t.UnionC<[t.LiteralC<"tableHeader">, t.LiteralC<"tableCell">]>;
|
|
438
438
|
content: t.ExactC<t.TypeC<{
|
|
439
439
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -675,7 +675,9 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
675
675
|
direction: t.StringC;
|
|
676
676
|
}>]>>]>>;
|
|
677
677
|
}>>;
|
|
678
|
-
}
|
|
678
|
+
}>>, t.ExactC<t.PartialC<{
|
|
679
|
+
columnWidth: t.NumberC;
|
|
680
|
+
}>>]>>;
|
|
679
681
|
}>>>;
|
|
680
682
|
}>>, t.ExactC<t.TypeC<{
|
|
681
683
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
@@ -1187,7 +1189,7 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1187
1189
|
__TYPE__: "TableContent";
|
|
1188
1190
|
content: {
|
|
1189
1191
|
type: "tableRow";
|
|
1190
|
-
content: {
|
|
1192
|
+
content: ({
|
|
1191
1193
|
type: "tableHeader" | "tableCell";
|
|
1192
1194
|
content: {
|
|
1193
1195
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1343,7 +1345,9 @@ export declare const SlicePrimaryLegacy: (ctx: LegacyContentCtx) => {
|
|
|
1343
1345
|
direction?: string;
|
|
1344
1346
|
}))[];
|
|
1345
1347
|
};
|
|
1346
|
-
}
|
|
1348
|
+
} & {
|
|
1349
|
+
columnWidth?: number;
|
|
1350
|
+
})[];
|
|
1347
1351
|
}[];
|
|
1348
1352
|
}> | t.Validation<GroupContent> | undefined;
|
|
1349
1353
|
encode(value: SlicePrimaryContent): import("../../../LegacyContentCtx").WithTypes<unknown> | undefined;
|
|
@@ -1773,7 +1777,7 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
1773
1777
|
__TYPE__: "TableContent";
|
|
1774
1778
|
content: {
|
|
1775
1779
|
type: "tableRow";
|
|
1776
|
-
content: {
|
|
1780
|
+
content: ({
|
|
1777
1781
|
type: "tableHeader" | "tableCell";
|
|
1778
1782
|
content: {
|
|
1779
1783
|
__TYPE__: "StructuredTextContent";
|
|
@@ -1929,6 +1933,8 @@ export declare const isSlicePrimaryContent: (u: unknown) => u is {
|
|
|
1929
1933
|
direction?: string;
|
|
1930
1934
|
}))[];
|
|
1931
1935
|
};
|
|
1932
|
-
}
|
|
1936
|
+
} & {
|
|
1937
|
+
columnWidth?: number;
|
|
1938
|
+
})[];
|
|
1933
1939
|
}[];
|
|
1934
1940
|
};
|