@prismicio/types-internal 3.2.0-alpha.3 → 3.3.0-alpha.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 +216 -0
- package/lib/content/fields/WidgetContent.d.ts +216 -0
- package/lib/content/fields/nestable/LinkContent.d.ts +48 -0
- package/lib/content/fields/nestable/LinkContent.js +6 -0
- package/lib/content/fields/nestable/NestableContent.d.ts +36 -0
- package/lib/content/fields/nestable/RepeatableContent.d.ts +12 -0
- package/lib/content/fields/nestable/RepeatableContent.js +1 -8
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +72 -0
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +12 -0
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +72 -0
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +36 -0
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +36 -0
- package/lib/content/fields/slices/Slice/index.d.ts +120 -0
- package/lib/content/fields/slices/SliceItem.d.ts +120 -0
- package/lib/content/fields/slices/SlicesContent.d.ts +180 -0
- package/lib/customtypes/CustomType.d.ts +72 -0
- package/lib/customtypes/Section.d.ts +72 -0
- package/lib/customtypes/diff/SharedSlice.d.ts +32 -0
- package/lib/customtypes/diff/Variation.d.ts +32 -0
- package/lib/customtypes/widgets/Group.d.ts +24 -0
- package/lib/customtypes/widgets/Widget.d.ts +84 -0
- package/lib/customtypes/widgets/nestable/Link.d.ts +8 -0
- package/lib/customtypes/widgets/nestable/Link.js +4 -0
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +4 -0
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +8 -0
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +8 -0
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +32 -0
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +24 -0
- package/lib/customtypes/widgets/slices/Slices.d.ts +112 -0
- package/package.json +1 -1
- package/src/content/fields/nestable/LinkContent.ts +6 -0
- package/src/content/fields/nestable/RepeatableContent.ts +1 -10
- package/src/customtypes/widgets/nestable/Link.ts +5 -0
|
@@ -25,6 +25,7 @@ export declare const RepeatableContent: t.ExactC<t.TypeC<{
|
|
|
25
25
|
kind: t.LiteralC<"image">;
|
|
26
26
|
}>>]>, t.ExactC<t.PartialC<{
|
|
27
27
|
text: t.StringC;
|
|
28
|
+
variant: t.StringC;
|
|
28
29
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
29
30
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
30
31
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -39,6 +40,7 @@ export declare const RepeatableContent: t.ExactC<t.TypeC<{
|
|
|
39
40
|
kind: t.LiteralC<"file">;
|
|
40
41
|
}>>]>, t.ExactC<t.PartialC<{
|
|
41
42
|
text: t.StringC;
|
|
43
|
+
variant: t.StringC;
|
|
42
44
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
43
45
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
44
46
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
@@ -47,6 +49,7 @@ export declare const RepeatableContent: t.ExactC<t.TypeC<{
|
|
|
47
49
|
kind: t.LiteralC<"document">;
|
|
48
50
|
}>>]>, t.ExactC<t.PartialC<{
|
|
49
51
|
text: t.StringC;
|
|
52
|
+
variant: t.StringC;
|
|
50
53
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
51
54
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
52
55
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -63,18 +66,21 @@ export declare const RepeatableContent: t.ExactC<t.TypeC<{
|
|
|
63
66
|
kind: t.LiteralC<"web">;
|
|
64
67
|
}>>]>, t.ExactC<t.PartialC<{
|
|
65
68
|
text: t.StringC;
|
|
69
|
+
variant: t.StringC;
|
|
66
70
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
67
71
|
__TYPE__: t.LiteralC<"MediaLink">;
|
|
68
72
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
69
73
|
kind: t.LiteralC<"media">;
|
|
70
74
|
}>>, t.ExactC<t.PartialC<{
|
|
71
75
|
text: t.StringC;
|
|
76
|
+
variant: t.StringC;
|
|
72
77
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
73
78
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
74
79
|
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
75
80
|
kind: t.LiteralC<"any">;
|
|
76
81
|
}>, t.PartialC<{
|
|
77
82
|
text: t.StringC;
|
|
83
|
+
variant: t.StringC;
|
|
78
84
|
}>]>>]>]>;
|
|
79
85
|
}>>]>>;
|
|
80
86
|
}>>;
|
|
@@ -102,6 +108,7 @@ export declare const isRepeatableContent: t.Is<{
|
|
|
102
108
|
kind: "image";
|
|
103
109
|
}) & {
|
|
104
110
|
text?: string;
|
|
111
|
+
variant?: string;
|
|
105
112
|
})) | ({
|
|
106
113
|
__TYPE__: "FileLink";
|
|
107
114
|
} & ((({
|
|
@@ -116,12 +123,14 @@ export declare const isRepeatableContent: t.Is<{
|
|
|
116
123
|
kind: "file";
|
|
117
124
|
}) & {
|
|
118
125
|
text?: string;
|
|
126
|
+
variant?: string;
|
|
119
127
|
})) | ({
|
|
120
128
|
__TYPE__: "MediaLink";
|
|
121
129
|
} & {
|
|
122
130
|
kind: "media";
|
|
123
131
|
} & {
|
|
124
132
|
text?: string;
|
|
133
|
+
variant?: string;
|
|
125
134
|
}) | ({
|
|
126
135
|
__TYPE__: "DocumentLink";
|
|
127
136
|
} & (({
|
|
@@ -130,6 +139,7 @@ export declare const isRepeatableContent: t.Is<{
|
|
|
130
139
|
kind: "document";
|
|
131
140
|
}) & {
|
|
132
141
|
text?: string;
|
|
142
|
+
variant?: string;
|
|
133
143
|
})) | ({
|
|
134
144
|
__TYPE__: "ExternalLink";
|
|
135
145
|
} & ((({
|
|
@@ -144,12 +154,14 @@ export declare const isRepeatableContent: t.Is<{
|
|
|
144
154
|
kind: "web";
|
|
145
155
|
}) & {
|
|
146
156
|
text?: string;
|
|
157
|
+
variant?: string;
|
|
147
158
|
})) | ({
|
|
148
159
|
__TYPE__: "AnyLink";
|
|
149
160
|
} & {
|
|
150
161
|
kind: "any";
|
|
151
162
|
} & {
|
|
152
163
|
text?: string;
|
|
164
|
+
variant?: string;
|
|
153
165
|
});
|
|
154
166
|
})[];
|
|
155
167
|
}>;
|
|
@@ -62,18 +62,11 @@ function traverseRepeatableContent({ path, key, apiId, model, content, }) {
|
|
|
62
62
|
const itemPath = path.concat([
|
|
63
63
|
{ key: index.toString(), type: "Widget" },
|
|
64
64
|
]);
|
|
65
|
-
// Content inside repeatable can't be repeatable.
|
|
66
|
-
const newModel = (model === null || model === void 0 ? void 0 : model.type) === "Link" && model.config
|
|
67
|
-
? {
|
|
68
|
-
...model,
|
|
69
|
-
config: { ...model.config, repeat: false },
|
|
70
|
-
}
|
|
71
|
-
: model;
|
|
72
65
|
const transformedField = transform({
|
|
73
66
|
path: itemPath,
|
|
74
67
|
key: key,
|
|
75
68
|
apiId: apiId,
|
|
76
|
-
model:
|
|
69
|
+
model: model,
|
|
77
70
|
content: fieldContent,
|
|
78
71
|
});
|
|
79
72
|
// Can happen if the transform function returns undefined to filter out a field
|
|
@@ -139,6 +139,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
139
139
|
kind: "image";
|
|
140
140
|
}) & {
|
|
141
141
|
text?: string;
|
|
142
|
+
variant?: string;
|
|
142
143
|
})) | ({
|
|
143
144
|
__TYPE__: "FileLink";
|
|
144
145
|
} & ((({
|
|
@@ -153,12 +154,14 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
153
154
|
kind: "file";
|
|
154
155
|
}) & {
|
|
155
156
|
text?: string;
|
|
157
|
+
variant?: string;
|
|
156
158
|
})) | ({
|
|
157
159
|
__TYPE__: "MediaLink";
|
|
158
160
|
} & {
|
|
159
161
|
kind: "media";
|
|
160
162
|
} & {
|
|
161
163
|
text?: string;
|
|
164
|
+
variant?: string;
|
|
162
165
|
}) | ({
|
|
163
166
|
__TYPE__: "DocumentLink";
|
|
164
167
|
} & (({
|
|
@@ -167,6 +170,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
167
170
|
kind: "document";
|
|
168
171
|
}) & {
|
|
169
172
|
text?: string;
|
|
173
|
+
variant?: string;
|
|
170
174
|
})) | ({
|
|
171
175
|
__TYPE__: "ExternalLink";
|
|
172
176
|
} & ((({
|
|
@@ -181,12 +185,14 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
181
185
|
kind: "web";
|
|
182
186
|
}) & {
|
|
183
187
|
text?: string;
|
|
188
|
+
variant?: string;
|
|
184
189
|
})) | ({
|
|
185
190
|
__TYPE__: "AnyLink";
|
|
186
191
|
} & {
|
|
187
192
|
kind: "any";
|
|
188
193
|
} & {
|
|
189
194
|
text?: string;
|
|
195
|
+
variant?: string;
|
|
190
196
|
});
|
|
191
197
|
}) | {
|
|
192
198
|
__TYPE__: "RepeatableContent";
|
|
@@ -211,6 +217,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
211
217
|
kind: "image";
|
|
212
218
|
}) & {
|
|
213
219
|
text?: string;
|
|
220
|
+
variant?: string;
|
|
214
221
|
})) | ({
|
|
215
222
|
__TYPE__: "FileLink";
|
|
216
223
|
} & ((({
|
|
@@ -225,12 +232,14 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
225
232
|
kind: "file";
|
|
226
233
|
}) & {
|
|
227
234
|
text?: string;
|
|
235
|
+
variant?: string;
|
|
228
236
|
})) | ({
|
|
229
237
|
__TYPE__: "MediaLink";
|
|
230
238
|
} & {
|
|
231
239
|
kind: "media";
|
|
232
240
|
} & {
|
|
233
241
|
text?: string;
|
|
242
|
+
variant?: string;
|
|
234
243
|
}) | ({
|
|
235
244
|
__TYPE__: "DocumentLink";
|
|
236
245
|
} & (({
|
|
@@ -239,6 +248,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
239
248
|
kind: "document";
|
|
240
249
|
}) & {
|
|
241
250
|
text?: string;
|
|
251
|
+
variant?: string;
|
|
242
252
|
})) | ({
|
|
243
253
|
__TYPE__: "ExternalLink";
|
|
244
254
|
} & ((({
|
|
@@ -253,12 +263,14 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
253
263
|
kind: "web";
|
|
254
264
|
}) & {
|
|
255
265
|
text?: string;
|
|
266
|
+
variant?: string;
|
|
256
267
|
})) | ({
|
|
257
268
|
__TYPE__: "AnyLink";
|
|
258
269
|
} & {
|
|
259
270
|
kind: "any";
|
|
260
271
|
} & {
|
|
261
272
|
text?: string;
|
|
273
|
+
variant?: string;
|
|
262
274
|
});
|
|
263
275
|
})[];
|
|
264
276
|
} | {
|
|
@@ -552,6 +564,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
552
564
|
kind: "image";
|
|
553
565
|
}) & {
|
|
554
566
|
text?: string;
|
|
567
|
+
variant?: string;
|
|
555
568
|
})) | ({
|
|
556
569
|
__TYPE__: "FileLink";
|
|
557
570
|
} & ((({
|
|
@@ -566,12 +579,14 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
566
579
|
kind: "file";
|
|
567
580
|
}) & {
|
|
568
581
|
text?: string;
|
|
582
|
+
variant?: string;
|
|
569
583
|
})) | ({
|
|
570
584
|
__TYPE__: "MediaLink";
|
|
571
585
|
} & {
|
|
572
586
|
kind: "media";
|
|
573
587
|
} & {
|
|
574
588
|
text?: string;
|
|
589
|
+
variant?: string;
|
|
575
590
|
}) | ({
|
|
576
591
|
__TYPE__: "DocumentLink";
|
|
577
592
|
} & (({
|
|
@@ -580,6 +595,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
580
595
|
kind: "document";
|
|
581
596
|
}) & {
|
|
582
597
|
text?: string;
|
|
598
|
+
variant?: string;
|
|
583
599
|
})) | ({
|
|
584
600
|
__TYPE__: "ExternalLink";
|
|
585
601
|
} & ((({
|
|
@@ -594,12 +610,14 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
594
610
|
kind: "web";
|
|
595
611
|
}) & {
|
|
596
612
|
text?: string;
|
|
613
|
+
variant?: string;
|
|
597
614
|
})) | ({
|
|
598
615
|
__TYPE__: "AnyLink";
|
|
599
616
|
} & {
|
|
600
617
|
kind: "any";
|
|
601
618
|
} & {
|
|
602
619
|
text?: string;
|
|
620
|
+
variant?: string;
|
|
603
621
|
});
|
|
604
622
|
}) | {
|
|
605
623
|
__TYPE__: "RepeatableContent";
|
|
@@ -624,6 +642,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
624
642
|
kind: "image";
|
|
625
643
|
}) & {
|
|
626
644
|
text?: string;
|
|
645
|
+
variant?: string;
|
|
627
646
|
})) | ({
|
|
628
647
|
__TYPE__: "FileLink";
|
|
629
648
|
} & ((({
|
|
@@ -638,12 +657,14 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
638
657
|
kind: "file";
|
|
639
658
|
}) & {
|
|
640
659
|
text?: string;
|
|
660
|
+
variant?: string;
|
|
641
661
|
})) | ({
|
|
642
662
|
__TYPE__: "MediaLink";
|
|
643
663
|
} & {
|
|
644
664
|
kind: "media";
|
|
645
665
|
} & {
|
|
646
666
|
text?: string;
|
|
667
|
+
variant?: string;
|
|
647
668
|
}) | ({
|
|
648
669
|
__TYPE__: "DocumentLink";
|
|
649
670
|
} & (({
|
|
@@ -652,6 +673,7 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
652
673
|
kind: "document";
|
|
653
674
|
}) & {
|
|
654
675
|
text?: string;
|
|
676
|
+
variant?: string;
|
|
655
677
|
})) | ({
|
|
656
678
|
__TYPE__: "ExternalLink";
|
|
657
679
|
} & ((({
|
|
@@ -666,12 +688,14 @@ export declare const isCompositeSliceContent: (u: unknown) => u is {
|
|
|
666
688
|
kind: "web";
|
|
667
689
|
}) & {
|
|
668
690
|
text?: string;
|
|
691
|
+
variant?: string;
|
|
669
692
|
})) | ({
|
|
670
693
|
__TYPE__: "AnyLink";
|
|
671
694
|
} & {
|
|
672
695
|
kind: "any";
|
|
673
696
|
} & {
|
|
674
697
|
text?: string;
|
|
698
|
+
variant?: string;
|
|
675
699
|
});
|
|
676
700
|
})[];
|
|
677
701
|
} | import("../../GroupContent").GroupContent | {
|
|
@@ -967,6 +991,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
967
991
|
kind: "image";
|
|
968
992
|
}) & {
|
|
969
993
|
text?: string;
|
|
994
|
+
variant?: string;
|
|
970
995
|
})) | ({
|
|
971
996
|
__TYPE__: "FileLink";
|
|
972
997
|
} & ((({
|
|
@@ -981,12 +1006,14 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
981
1006
|
kind: "file";
|
|
982
1007
|
}) & {
|
|
983
1008
|
text?: string;
|
|
1009
|
+
variant?: string;
|
|
984
1010
|
})) | ({
|
|
985
1011
|
__TYPE__: "MediaLink";
|
|
986
1012
|
} & {
|
|
987
1013
|
kind: "media";
|
|
988
1014
|
} & {
|
|
989
1015
|
text?: string;
|
|
1016
|
+
variant?: string;
|
|
990
1017
|
}) | ({
|
|
991
1018
|
__TYPE__: "DocumentLink";
|
|
992
1019
|
} & (({
|
|
@@ -995,6 +1022,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
995
1022
|
kind: "document";
|
|
996
1023
|
}) & {
|
|
997
1024
|
text?: string;
|
|
1025
|
+
variant?: string;
|
|
998
1026
|
})) | ({
|
|
999
1027
|
__TYPE__: "ExternalLink";
|
|
1000
1028
|
} & ((({
|
|
@@ -1009,12 +1037,14 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1009
1037
|
kind: "web";
|
|
1010
1038
|
}) & {
|
|
1011
1039
|
text?: string;
|
|
1040
|
+
variant?: string;
|
|
1012
1041
|
})) | ({
|
|
1013
1042
|
__TYPE__: "AnyLink";
|
|
1014
1043
|
} & {
|
|
1015
1044
|
kind: "any";
|
|
1016
1045
|
} & {
|
|
1017
1046
|
text?: string;
|
|
1047
|
+
variant?: string;
|
|
1018
1048
|
});
|
|
1019
1049
|
}) | {
|
|
1020
1050
|
__TYPE__: "RepeatableContent";
|
|
@@ -1039,6 +1069,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1039
1069
|
kind: "image";
|
|
1040
1070
|
}) & {
|
|
1041
1071
|
text?: string;
|
|
1072
|
+
variant?: string;
|
|
1042
1073
|
})) | ({
|
|
1043
1074
|
__TYPE__: "FileLink";
|
|
1044
1075
|
} & ((({
|
|
@@ -1053,12 +1084,14 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1053
1084
|
kind: "file";
|
|
1054
1085
|
}) & {
|
|
1055
1086
|
text?: string;
|
|
1087
|
+
variant?: string;
|
|
1056
1088
|
})) | ({
|
|
1057
1089
|
__TYPE__: "MediaLink";
|
|
1058
1090
|
} & {
|
|
1059
1091
|
kind: "media";
|
|
1060
1092
|
} & {
|
|
1061
1093
|
text?: string;
|
|
1094
|
+
variant?: string;
|
|
1062
1095
|
}) | ({
|
|
1063
1096
|
__TYPE__: "DocumentLink";
|
|
1064
1097
|
} & (({
|
|
@@ -1067,6 +1100,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1067
1100
|
kind: "document";
|
|
1068
1101
|
}) & {
|
|
1069
1102
|
text?: string;
|
|
1103
|
+
variant?: string;
|
|
1070
1104
|
})) | ({
|
|
1071
1105
|
__TYPE__: "ExternalLink";
|
|
1072
1106
|
} & ((({
|
|
@@ -1081,12 +1115,14 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1081
1115
|
kind: "web";
|
|
1082
1116
|
}) & {
|
|
1083
1117
|
text?: string;
|
|
1118
|
+
variant?: string;
|
|
1084
1119
|
})) | ({
|
|
1085
1120
|
__TYPE__: "AnyLink";
|
|
1086
1121
|
} & {
|
|
1087
1122
|
kind: "any";
|
|
1088
1123
|
} & {
|
|
1089
1124
|
text?: string;
|
|
1125
|
+
variant?: string;
|
|
1090
1126
|
});
|
|
1091
1127
|
})[];
|
|
1092
1128
|
} | {
|
|
@@ -1380,6 +1416,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1380
1416
|
kind: "image";
|
|
1381
1417
|
}) & {
|
|
1382
1418
|
text?: string;
|
|
1419
|
+
variant?: string;
|
|
1383
1420
|
})) | ({
|
|
1384
1421
|
__TYPE__: "FileLink";
|
|
1385
1422
|
} & ((({
|
|
@@ -1394,12 +1431,14 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1394
1431
|
kind: "file";
|
|
1395
1432
|
}) & {
|
|
1396
1433
|
text?: string;
|
|
1434
|
+
variant?: string;
|
|
1397
1435
|
})) | ({
|
|
1398
1436
|
__TYPE__: "MediaLink";
|
|
1399
1437
|
} & {
|
|
1400
1438
|
kind: "media";
|
|
1401
1439
|
} & {
|
|
1402
1440
|
text?: string;
|
|
1441
|
+
variant?: string;
|
|
1403
1442
|
}) | ({
|
|
1404
1443
|
__TYPE__: "DocumentLink";
|
|
1405
1444
|
} & (({
|
|
@@ -1408,6 +1447,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1408
1447
|
kind: "document";
|
|
1409
1448
|
}) & {
|
|
1410
1449
|
text?: string;
|
|
1450
|
+
variant?: string;
|
|
1411
1451
|
})) | ({
|
|
1412
1452
|
__TYPE__: "ExternalLink";
|
|
1413
1453
|
} & ((({
|
|
@@ -1422,12 +1462,14 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1422
1462
|
kind: "web";
|
|
1423
1463
|
}) & {
|
|
1424
1464
|
text?: string;
|
|
1465
|
+
variant?: string;
|
|
1425
1466
|
})) | ({
|
|
1426
1467
|
__TYPE__: "AnyLink";
|
|
1427
1468
|
} & {
|
|
1428
1469
|
kind: "any";
|
|
1429
1470
|
} & {
|
|
1430
1471
|
text?: string;
|
|
1472
|
+
variant?: string;
|
|
1431
1473
|
});
|
|
1432
1474
|
}) | {
|
|
1433
1475
|
__TYPE__: "RepeatableContent";
|
|
@@ -1452,6 +1494,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1452
1494
|
kind: "image";
|
|
1453
1495
|
}) & {
|
|
1454
1496
|
text?: string;
|
|
1497
|
+
variant?: string;
|
|
1455
1498
|
})) | ({
|
|
1456
1499
|
__TYPE__: "FileLink";
|
|
1457
1500
|
} & ((({
|
|
@@ -1466,12 +1509,14 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1466
1509
|
kind: "file";
|
|
1467
1510
|
}) & {
|
|
1468
1511
|
text?: string;
|
|
1512
|
+
variant?: string;
|
|
1469
1513
|
})) | ({
|
|
1470
1514
|
__TYPE__: "MediaLink";
|
|
1471
1515
|
} & {
|
|
1472
1516
|
kind: "media";
|
|
1473
1517
|
} & {
|
|
1474
1518
|
text?: string;
|
|
1519
|
+
variant?: string;
|
|
1475
1520
|
}) | ({
|
|
1476
1521
|
__TYPE__: "DocumentLink";
|
|
1477
1522
|
} & (({
|
|
@@ -1480,6 +1525,7 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1480
1525
|
kind: "document";
|
|
1481
1526
|
}) & {
|
|
1482
1527
|
text?: string;
|
|
1528
|
+
variant?: string;
|
|
1483
1529
|
})) | ({
|
|
1484
1530
|
__TYPE__: "ExternalLink";
|
|
1485
1531
|
} & ((({
|
|
@@ -1494,12 +1540,14 @@ export declare const CompositeSliceLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
1494
1540
|
kind: "web";
|
|
1495
1541
|
}) & {
|
|
1496
1542
|
text?: string;
|
|
1543
|
+
variant?: string;
|
|
1497
1544
|
})) | ({
|
|
1498
1545
|
__TYPE__: "AnyLink";
|
|
1499
1546
|
} & {
|
|
1500
1547
|
kind: "any";
|
|
1501
1548
|
} & {
|
|
1502
1549
|
text?: string;
|
|
1550
|
+
variant?: string;
|
|
1503
1551
|
});
|
|
1504
1552
|
})[];
|
|
1505
1553
|
} | import("../../GroupContent").GroupContent | {
|
|
@@ -1797,6 +1845,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1797
1845
|
kind: t.LiteralC<"image">;
|
|
1798
1846
|
}>>]>, t.ExactC<t.PartialC<{
|
|
1799
1847
|
text: t.StringC;
|
|
1848
|
+
variant: t.StringC;
|
|
1800
1849
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1801
1850
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
1802
1851
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -1811,6 +1860,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1811
1860
|
kind: t.LiteralC<"file">;
|
|
1812
1861
|
}>>]>, t.ExactC<t.PartialC<{
|
|
1813
1862
|
text: t.StringC;
|
|
1863
|
+
variant: t.StringC;
|
|
1814
1864
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1815
1865
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
1816
1866
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
@@ -1819,6 +1869,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1819
1869
|
kind: t.LiteralC<"document">;
|
|
1820
1870
|
}>>]>, t.ExactC<t.PartialC<{
|
|
1821
1871
|
text: t.StringC;
|
|
1872
|
+
variant: t.StringC;
|
|
1822
1873
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1823
1874
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
1824
1875
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -1835,18 +1886,21 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1835
1886
|
kind: t.LiteralC<"web">;
|
|
1836
1887
|
}>>]>, t.ExactC<t.PartialC<{
|
|
1837
1888
|
text: t.StringC;
|
|
1889
|
+
variant: t.StringC;
|
|
1838
1890
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1839
1891
|
__TYPE__: t.LiteralC<"MediaLink">;
|
|
1840
1892
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1841
1893
|
kind: t.LiteralC<"media">;
|
|
1842
1894
|
}>>, t.ExactC<t.PartialC<{
|
|
1843
1895
|
text: t.StringC;
|
|
1896
|
+
variant: t.StringC;
|
|
1844
1897
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1845
1898
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
1846
1899
|
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
1847
1900
|
kind: t.LiteralC<"any">;
|
|
1848
1901
|
}>, t.PartialC<{
|
|
1849
1902
|
text: t.StringC;
|
|
1903
|
+
variant: t.StringC;
|
|
1850
1904
|
}>]>>]>]>;
|
|
1851
1905
|
}>>]>, t.ExactC<t.TypeC<{
|
|
1852
1906
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -2112,6 +2166,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2112
2166
|
kind: t.LiteralC<"image">;
|
|
2113
2167
|
}>>]>, t.ExactC<t.PartialC<{
|
|
2114
2168
|
text: t.StringC;
|
|
2169
|
+
variant: t.StringC;
|
|
2115
2170
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2116
2171
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
2117
2172
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -2126,6 +2181,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2126
2181
|
kind: t.LiteralC<"file">;
|
|
2127
2182
|
}>>]>, t.ExactC<t.PartialC<{
|
|
2128
2183
|
text: t.StringC;
|
|
2184
|
+
variant: t.StringC;
|
|
2129
2185
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2130
2186
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
2131
2187
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
@@ -2134,6 +2190,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2134
2190
|
kind: t.LiteralC<"document">;
|
|
2135
2191
|
}>>]>, t.ExactC<t.PartialC<{
|
|
2136
2192
|
text: t.StringC;
|
|
2193
|
+
variant: t.StringC;
|
|
2137
2194
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2138
2195
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
2139
2196
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -2150,18 +2207,21 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2150
2207
|
kind: t.LiteralC<"web">;
|
|
2151
2208
|
}>>]>, t.ExactC<t.PartialC<{
|
|
2152
2209
|
text: t.StringC;
|
|
2210
|
+
variant: t.StringC;
|
|
2153
2211
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2154
2212
|
__TYPE__: t.LiteralC<"MediaLink">;
|
|
2155
2213
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2156
2214
|
kind: t.LiteralC<"media">;
|
|
2157
2215
|
}>>, t.ExactC<t.PartialC<{
|
|
2158
2216
|
text: t.StringC;
|
|
2217
|
+
variant: t.StringC;
|
|
2159
2218
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2160
2219
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
2161
2220
|
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2162
2221
|
kind: t.LiteralC<"any">;
|
|
2163
2222
|
}>, t.PartialC<{
|
|
2164
2223
|
text: t.StringC;
|
|
2224
|
+
variant: t.StringC;
|
|
2165
2225
|
}>]>>]>]>;
|
|
2166
2226
|
}>>]>>;
|
|
2167
2227
|
}>>]>>;
|
|
@@ -2297,6 +2357,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2297
2357
|
kind: t.LiteralC<"image">;
|
|
2298
2358
|
}>>]>, t.ExactC<t.PartialC<{
|
|
2299
2359
|
text: t.StringC;
|
|
2360
|
+
variant: t.StringC;
|
|
2300
2361
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2301
2362
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
2302
2363
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -2311,6 +2372,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2311
2372
|
kind: t.LiteralC<"file">;
|
|
2312
2373
|
}>>]>, t.ExactC<t.PartialC<{
|
|
2313
2374
|
text: t.StringC;
|
|
2375
|
+
variant: t.StringC;
|
|
2314
2376
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2315
2377
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
2316
2378
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
@@ -2319,6 +2381,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2319
2381
|
kind: t.LiteralC<"document">;
|
|
2320
2382
|
}>>]>, t.ExactC<t.PartialC<{
|
|
2321
2383
|
text: t.StringC;
|
|
2384
|
+
variant: t.StringC;
|
|
2322
2385
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2323
2386
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
2324
2387
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -2335,18 +2398,21 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2335
2398
|
kind: t.LiteralC<"web">;
|
|
2336
2399
|
}>>]>, t.ExactC<t.PartialC<{
|
|
2337
2400
|
text: t.StringC;
|
|
2401
|
+
variant: t.StringC;
|
|
2338
2402
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2339
2403
|
__TYPE__: t.LiteralC<"MediaLink">;
|
|
2340
2404
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2341
2405
|
kind: t.LiteralC<"media">;
|
|
2342
2406
|
}>>, t.ExactC<t.PartialC<{
|
|
2343
2407
|
text: t.StringC;
|
|
2408
|
+
variant: t.StringC;
|
|
2344
2409
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2345
2410
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
2346
2411
|
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2347
2412
|
kind: t.LiteralC<"any">;
|
|
2348
2413
|
}>, t.PartialC<{
|
|
2349
2414
|
text: t.StringC;
|
|
2415
|
+
variant: t.StringC;
|
|
2350
2416
|
}>]>>]>]>;
|
|
2351
2417
|
}>>]>, t.ExactC<t.TypeC<{
|
|
2352
2418
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
@@ -2612,6 +2678,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2612
2678
|
kind: t.LiteralC<"image">;
|
|
2613
2679
|
}>>]>, t.ExactC<t.PartialC<{
|
|
2614
2680
|
text: t.StringC;
|
|
2681
|
+
variant: t.StringC;
|
|
2615
2682
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2616
2683
|
__TYPE__: t.LiteralC<"FileLink">;
|
|
2617
2684
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -2626,6 +2693,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2626
2693
|
kind: t.LiteralC<"file">;
|
|
2627
2694
|
}>>]>, t.ExactC<t.PartialC<{
|
|
2628
2695
|
text: t.StringC;
|
|
2696
|
+
variant: t.StringC;
|
|
2629
2697
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2630
2698
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
2631
2699
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
@@ -2634,6 +2702,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2634
2702
|
kind: t.LiteralC<"document">;
|
|
2635
2703
|
}>>]>, t.ExactC<t.PartialC<{
|
|
2636
2704
|
text: t.StringC;
|
|
2705
|
+
variant: t.StringC;
|
|
2637
2706
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2638
2707
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
2639
2708
|
}>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -2650,18 +2719,21 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2650
2719
|
kind: t.LiteralC<"web">;
|
|
2651
2720
|
}>>]>, t.ExactC<t.PartialC<{
|
|
2652
2721
|
text: t.StringC;
|
|
2722
|
+
variant: t.StringC;
|
|
2653
2723
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2654
2724
|
__TYPE__: t.LiteralC<"MediaLink">;
|
|
2655
2725
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2656
2726
|
kind: t.LiteralC<"media">;
|
|
2657
2727
|
}>>, t.ExactC<t.PartialC<{
|
|
2658
2728
|
text: t.StringC;
|
|
2729
|
+
variant: t.StringC;
|
|
2659
2730
|
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2660
2731
|
__TYPE__: t.LiteralC<"AnyLink">;
|
|
2661
2732
|
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
2662
2733
|
kind: t.LiteralC<"any">;
|
|
2663
2734
|
}>, t.PartialC<{
|
|
2664
2735
|
text: t.StringC;
|
|
2736
|
+
variant: t.StringC;
|
|
2665
2737
|
}>]>>]>]>;
|
|
2666
2738
|
}>>]>>;
|
|
2667
2739
|
}>>]>, t.Type<import("../../GroupContent").GroupContent, import("../../GroupContent").GroupContent, unknown>]>]>>;
|