@prismicio/types-internal 2.7.0-alpha.2 → 2.7.0-alpha.4
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 +1783 -859
- package/lib/content/fields/WidgetContent.d.ts +1782 -858
- package/lib/content/fields/nestable/LinkContent.d.ts +207 -90
- package/lib/content/fields/nestable/LinkContent.js +93 -48
- package/lib/content/fields/nestable/NestableContent.d.ts +297 -143
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +546 -249
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +270 -130
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +594 -286
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +135 -65
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +594 -286
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +297 -143
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +297 -143
- package/lib/content/fields/slices/Slice/index.d.ts +1080 -520
- package/lib/content/fields/slices/SliceItem.d.ts +1080 -520
- package/lib/content/fields/slices/SlicesContent.d.ts +1485 -715
- package/lib/customtypes/CustomType.d.ts +180 -342
- package/lib/customtypes/Section.d.ts +180 -342
- package/lib/customtypes/diff/SharedSlice.d.ts +80 -152
- package/lib/customtypes/diff/Variation.d.ts +80 -152
- package/lib/customtypes/widgets/Group.d.ts +6 -60
- package/lib/customtypes/widgets/Widget.d.ts +129 -318
- package/lib/customtypes/widgets/nestable/Link.d.ts +2 -20
- package/lib/customtypes/widgets/nestable/Link.js +1 -2
- package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +1 -10
- package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +2 -20
- package/lib/customtypes/widgets/slices/LegacySlice.d.ts +2 -20
- package/lib/customtypes/widgets/slices/SharedSlice.d.ts +8 -80
- package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +33 -87
- package/lib/customtypes/widgets/slices/Slices.d.ts +172 -424
- package/package.json +1 -1
- package/src/content/fields/nestable/LinkContent.ts +118 -58
- package/src/customtypes/widgets/nestable/Link.ts +1 -2
- package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +0 -727
- package/lib/content/fields/nestable/RichTextContent/TextBlock.js +0 -80
- package/lib/customtypes/widgets/slices/SliceWidget.d.ts +0 -327
- package/lib/customtypes/widgets/slices/SliceWidget.js +0 -8
|
@@ -3,49 +3,56 @@ import type { LegacyContentCtx, WithTypes } from "../../LegacyContentCtx";
|
|
|
3
3
|
export declare const ImageLinkType = "ImageLink";
|
|
4
4
|
export declare const ImageLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
5
5
|
__TYPE__: t.LiteralC<"ImageLink">;
|
|
6
|
-
}>>, t.
|
|
6
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
7
|
+
kind: t.LiteralC<"image">;
|
|
8
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
7
9
|
id: t.StringC;
|
|
8
10
|
url: t.StringC;
|
|
9
11
|
height: t.StringC;
|
|
10
12
|
width: t.StringC;
|
|
11
13
|
size: t.StringC;
|
|
12
14
|
name: t.StringC;
|
|
13
|
-
kind: t.StringC;
|
|
14
15
|
}>, t.PartialC<{
|
|
15
16
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
16
17
|
text: t.StringC;
|
|
17
|
-
}>]
|
|
18
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
19
|
+
text: t.StringC;
|
|
20
|
+
}>>]>]>]>;
|
|
18
21
|
export declare type ImageLinkContent = t.TypeOf<typeof ImageLinkContent>;
|
|
19
22
|
export declare const FileLinkType = "FileLink";
|
|
20
|
-
export declare const FileLinkContent: t.IntersectionC<[t.ExactC<t.
|
|
23
|
+
export declare const FileLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
24
|
+
__TYPE__: t.LiteralC<"FileLink">;
|
|
25
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
26
|
+
kind: t.LiteralC<"file">;
|
|
27
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
21
28
|
id: t.StringC;
|
|
22
29
|
url: t.StringC;
|
|
23
30
|
name: t.StringC;
|
|
24
|
-
kind: t.StringC;
|
|
25
31
|
size: t.StringC;
|
|
26
32
|
}>, t.PartialC<{
|
|
27
33
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
28
34
|
text: t.StringC;
|
|
29
|
-
}>]>>, t.ExactC<t.
|
|
30
|
-
__TYPE__: t.LiteralC<"FileLink">;
|
|
31
|
-
}>, t.PartialC<{
|
|
32
|
-
size: t.StringC;
|
|
35
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
33
36
|
text: t.StringC;
|
|
34
|
-
}>]
|
|
37
|
+
}>>]>]>]>;
|
|
35
38
|
export declare type FileLinkContent = t.TypeOf<typeof FileLinkContent>;
|
|
36
39
|
export declare const DocumentLinkType = "DocumentLink";
|
|
37
40
|
export declare const DocumentLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
38
41
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
39
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
42
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
40
43
|
id: t.Type<string, string, unknown>;
|
|
41
44
|
}>, t.PartialC<{
|
|
45
|
+
kind: t.LiteralC<"document">;
|
|
46
|
+
text: t.StringC;
|
|
47
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
48
|
+
kind: t.LiteralC<"document">;
|
|
42
49
|
text: t.StringC;
|
|
43
|
-
}>]
|
|
50
|
+
}>>]>]>;
|
|
44
51
|
export declare type DocumentLinkContent = t.TypeOf<typeof DocumentLinkContent>;
|
|
45
52
|
export declare const ExternalLinkType = "ExternalLink";
|
|
46
53
|
export declare const ExternalLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
47
54
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
48
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
55
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
49
56
|
url: t.StringC;
|
|
50
57
|
}>, t.PartialC<{
|
|
51
58
|
kind: t.LiteralC<"web">;
|
|
@@ -56,47 +63,64 @@ export declare const ExternalLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
|
56
63
|
title?: string;
|
|
57
64
|
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
58
65
|
text: t.StringC;
|
|
59
|
-
}>]
|
|
66
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
67
|
+
kind: t.LiteralC<"web">;
|
|
68
|
+
text: t.StringC;
|
|
69
|
+
}>>]>]>;
|
|
60
70
|
export declare type ExternalLinkContent = t.TypeOf<typeof ExternalLinkContent>;
|
|
71
|
+
export declare const AnyLinkType = "AnyLink";
|
|
72
|
+
export declare const AnyLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
73
|
+
__TYPE__: t.LiteralC<"AnyLink">;
|
|
74
|
+
}>>, t.ExactC<t.TypeC<{
|
|
75
|
+
text: t.StringC;
|
|
76
|
+
}>>]>;
|
|
77
|
+
export declare type AnyLinkContent = t.TypeOf<typeof AnyLinkContent>;
|
|
61
78
|
export declare const LinkContentType = "LinkContent";
|
|
62
79
|
export declare const isLinkContent: (u: unknown) => u is {
|
|
63
80
|
__TYPE__: "LinkContent";
|
|
64
81
|
value: ({
|
|
65
82
|
__TYPE__: "ImageLink";
|
|
66
|
-
} & {
|
|
83
|
+
} & ({
|
|
84
|
+
kind: "image";
|
|
85
|
+
} & (({
|
|
67
86
|
id: string;
|
|
68
87
|
url: string;
|
|
69
88
|
height: string;
|
|
70
89
|
width: string;
|
|
71
90
|
size: string;
|
|
72
91
|
name: string;
|
|
73
|
-
kind: string;
|
|
74
92
|
} & {
|
|
75
93
|
date?: string | null | undefined;
|
|
76
94
|
text?: string;
|
|
77
|
-
}) |
|
|
95
|
+
}) | {
|
|
96
|
+
text: string;
|
|
97
|
+
}))) | ({
|
|
98
|
+
__TYPE__: "FileLink";
|
|
99
|
+
} & ({
|
|
100
|
+
kind: "file";
|
|
101
|
+
} & (({
|
|
78
102
|
id: string;
|
|
79
103
|
url: string;
|
|
80
104
|
name: string;
|
|
81
|
-
kind: string;
|
|
82
105
|
size: string;
|
|
83
106
|
} & {
|
|
84
107
|
date?: string | null | undefined;
|
|
85
108
|
text?: string;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
size?: string;
|
|
90
|
-
text?: string;
|
|
91
|
-
}) | ({
|
|
109
|
+
}) | {
|
|
110
|
+
text: string;
|
|
111
|
+
}))) | ({
|
|
92
112
|
__TYPE__: "DocumentLink";
|
|
93
|
-
} & {
|
|
113
|
+
} & (({
|
|
94
114
|
id: string;
|
|
95
115
|
} & {
|
|
116
|
+
kind?: "document";
|
|
96
117
|
text?: string;
|
|
97
|
-
}) |
|
|
118
|
+
}) | {
|
|
119
|
+
kind: "document";
|
|
120
|
+
text: string;
|
|
121
|
+
})) | ({
|
|
98
122
|
__TYPE__: "ExternalLink";
|
|
99
|
-
} & {
|
|
123
|
+
} & (({
|
|
100
124
|
url: string;
|
|
101
125
|
} & {
|
|
102
126
|
kind?: "web";
|
|
@@ -105,68 +129,92 @@ export declare const isLinkContent: (u: unknown) => u is {
|
|
|
105
129
|
title?: string;
|
|
106
130
|
} | null | undefined;
|
|
107
131
|
text?: string;
|
|
132
|
+
}) | {
|
|
133
|
+
kind: "web";
|
|
134
|
+
text: string;
|
|
135
|
+
})) | ({
|
|
136
|
+
__TYPE__: "AnyLink";
|
|
137
|
+
} & {
|
|
138
|
+
text: string;
|
|
108
139
|
});
|
|
109
140
|
};
|
|
110
141
|
export declare const LinkLegacy: t.UnionC<[t.Type<{
|
|
111
142
|
__TYPE__: "ImageLink";
|
|
112
|
-
} & {
|
|
143
|
+
} & ({
|
|
144
|
+
kind: "image";
|
|
145
|
+
} & (({
|
|
113
146
|
id: string;
|
|
114
147
|
url: string;
|
|
115
148
|
height: string;
|
|
116
149
|
width: string;
|
|
117
150
|
size: string;
|
|
118
151
|
name: string;
|
|
119
|
-
kind: string;
|
|
120
152
|
} & {
|
|
121
153
|
date?: string | null | undefined;
|
|
122
154
|
text?: string;
|
|
123
|
-
}
|
|
155
|
+
}) | {
|
|
156
|
+
text: string;
|
|
157
|
+
})), {
|
|
158
|
+
kind: "image";
|
|
159
|
+
} & (({
|
|
124
160
|
id: string;
|
|
125
161
|
url: string;
|
|
126
162
|
height: string;
|
|
127
163
|
width: string;
|
|
128
164
|
size: string;
|
|
129
165
|
name: string;
|
|
130
|
-
kind: string;
|
|
131
166
|
} & {
|
|
132
167
|
date?: string | null | undefined;
|
|
133
168
|
text?: string;
|
|
134
|
-
}
|
|
169
|
+
}) | {
|
|
170
|
+
text: string;
|
|
171
|
+
}), unknown>, t.Type<{
|
|
172
|
+
__TYPE__: "FileLink";
|
|
173
|
+
} & ({
|
|
174
|
+
kind: "file";
|
|
175
|
+
} & (({
|
|
135
176
|
id: string;
|
|
136
177
|
url: string;
|
|
137
178
|
name: string;
|
|
138
|
-
kind: string;
|
|
139
179
|
size: string;
|
|
140
180
|
} & {
|
|
141
181
|
date?: string | null | undefined;
|
|
142
182
|
text?: string;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}, {
|
|
183
|
+
}) | {
|
|
184
|
+
text: string;
|
|
185
|
+
})), {
|
|
186
|
+
kind: "file";
|
|
187
|
+
} & (({
|
|
149
188
|
id: string;
|
|
150
189
|
url: string;
|
|
151
190
|
name: string;
|
|
152
|
-
kind: string;
|
|
153
191
|
size: string;
|
|
154
192
|
} & {
|
|
155
193
|
date?: string | null | undefined;
|
|
156
194
|
text?: string;
|
|
157
|
-
}
|
|
195
|
+
}) | {
|
|
196
|
+
text: string;
|
|
197
|
+
}), unknown>, t.Type<{
|
|
158
198
|
__TYPE__: "DocumentLink";
|
|
159
|
-
} & {
|
|
199
|
+
} & (({
|
|
160
200
|
id: string;
|
|
161
201
|
} & {
|
|
202
|
+
kind?: "document";
|
|
162
203
|
text?: string;
|
|
163
|
-
}
|
|
204
|
+
}) | {
|
|
205
|
+
kind: "document";
|
|
206
|
+
text: string;
|
|
207
|
+
}), ({
|
|
164
208
|
id: string;
|
|
165
209
|
} & {
|
|
210
|
+
kind?: "document";
|
|
166
211
|
text?: string;
|
|
212
|
+
}) | {
|
|
213
|
+
kind: "document";
|
|
214
|
+
text: string;
|
|
167
215
|
}, unknown>, t.Type<{
|
|
168
216
|
__TYPE__: "ExternalLink";
|
|
169
|
-
} & {
|
|
217
|
+
} & (({
|
|
170
218
|
url: string;
|
|
171
219
|
} & {
|
|
172
220
|
kind?: "web";
|
|
@@ -175,7 +223,10 @@ export declare const LinkLegacy: t.UnionC<[t.Type<{
|
|
|
175
223
|
title?: string;
|
|
176
224
|
} | null | undefined;
|
|
177
225
|
text?: string;
|
|
178
|
-
}
|
|
226
|
+
}) | {
|
|
227
|
+
kind: "web";
|
|
228
|
+
text: string;
|
|
229
|
+
}), ({
|
|
179
230
|
url: string;
|
|
180
231
|
} & {
|
|
181
232
|
kind?: "web";
|
|
@@ -184,45 +235,61 @@ export declare const LinkLegacy: t.UnionC<[t.Type<{
|
|
|
184
235
|
title?: string;
|
|
185
236
|
} | null | undefined;
|
|
186
237
|
text?: string;
|
|
238
|
+
}) | {
|
|
239
|
+
kind: "web";
|
|
240
|
+
text: string;
|
|
241
|
+
}, unknown>, t.Type<{
|
|
242
|
+
__TYPE__: "AnyLink";
|
|
243
|
+
} & {
|
|
244
|
+
text: string;
|
|
245
|
+
}, {
|
|
246
|
+
text: string;
|
|
187
247
|
}, unknown>]>;
|
|
188
248
|
export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
189
249
|
__TYPE__: "LinkContent";
|
|
190
250
|
value: ({
|
|
191
251
|
__TYPE__: "ImageLink";
|
|
192
|
-
} & {
|
|
252
|
+
} & ({
|
|
253
|
+
kind: "image";
|
|
254
|
+
} & (({
|
|
193
255
|
id: string;
|
|
194
256
|
url: string;
|
|
195
257
|
height: string;
|
|
196
258
|
width: string;
|
|
197
259
|
size: string;
|
|
198
260
|
name: string;
|
|
199
|
-
kind: string;
|
|
200
261
|
} & {
|
|
201
262
|
date?: string | null | undefined;
|
|
202
263
|
text?: string;
|
|
203
|
-
}) |
|
|
264
|
+
}) | {
|
|
265
|
+
text: string;
|
|
266
|
+
}))) | ({
|
|
267
|
+
__TYPE__: "FileLink";
|
|
268
|
+
} & ({
|
|
269
|
+
kind: "file";
|
|
270
|
+
} & (({
|
|
204
271
|
id: string;
|
|
205
272
|
url: string;
|
|
206
273
|
name: string;
|
|
207
|
-
kind: string;
|
|
208
274
|
size: string;
|
|
209
275
|
} & {
|
|
210
276
|
date?: string | null | undefined;
|
|
211
277
|
text?: string;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
size?: string;
|
|
216
|
-
text?: string;
|
|
217
|
-
}) | ({
|
|
278
|
+
}) | {
|
|
279
|
+
text: string;
|
|
280
|
+
}))) | ({
|
|
218
281
|
__TYPE__: "DocumentLink";
|
|
219
|
-
} & {
|
|
282
|
+
} & (({
|
|
220
283
|
id: string;
|
|
221
284
|
} & {
|
|
285
|
+
kind?: "document";
|
|
222
286
|
text?: string;
|
|
223
|
-
}) |
|
|
287
|
+
}) | {
|
|
288
|
+
kind: "document";
|
|
289
|
+
text: string;
|
|
290
|
+
})) | ({
|
|
224
291
|
__TYPE__: "ExternalLink";
|
|
225
|
-
} & {
|
|
292
|
+
} & (({
|
|
226
293
|
url: string;
|
|
227
294
|
} & {
|
|
228
295
|
kind?: "web";
|
|
@@ -231,32 +298,49 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
231
298
|
title?: string;
|
|
232
299
|
} | null | undefined;
|
|
233
300
|
text?: string;
|
|
301
|
+
}) | {
|
|
302
|
+
kind: "web";
|
|
303
|
+
text: string;
|
|
304
|
+
})) | ({
|
|
305
|
+
__TYPE__: "AnyLink";
|
|
306
|
+
} & {
|
|
307
|
+
text: string;
|
|
234
308
|
});
|
|
235
309
|
}, WithTypes<({
|
|
310
|
+
kind: "image";
|
|
311
|
+
} & (({
|
|
236
312
|
id: string;
|
|
237
313
|
url: string;
|
|
238
314
|
height: string;
|
|
239
315
|
width: string;
|
|
240
316
|
size: string;
|
|
241
317
|
name: string;
|
|
242
|
-
kind: string;
|
|
243
318
|
} & {
|
|
244
319
|
date?: string | null | undefined;
|
|
245
320
|
text?: string;
|
|
246
|
-
}) |
|
|
321
|
+
}) | {
|
|
322
|
+
text: string;
|
|
323
|
+
})) | ({
|
|
324
|
+
kind: "file";
|
|
325
|
+
} & (({
|
|
247
326
|
id: string;
|
|
248
327
|
url: string;
|
|
249
328
|
name: string;
|
|
250
|
-
kind: string;
|
|
251
329
|
size: string;
|
|
252
330
|
} & {
|
|
253
331
|
date?: string | null | undefined;
|
|
254
332
|
text?: string;
|
|
255
|
-
}) |
|
|
333
|
+
}) | {
|
|
334
|
+
text: string;
|
|
335
|
+
})) | ({
|
|
256
336
|
id: string;
|
|
257
337
|
} & {
|
|
338
|
+
kind?: "document";
|
|
258
339
|
text?: string;
|
|
259
|
-
}) |
|
|
340
|
+
}) | {
|
|
341
|
+
kind: "document";
|
|
342
|
+
text: string;
|
|
343
|
+
} | ({
|
|
260
344
|
url: string;
|
|
261
345
|
} & {
|
|
262
346
|
kind?: "web";
|
|
@@ -265,43 +349,55 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
265
349
|
title?: string;
|
|
266
350
|
} | null | undefined;
|
|
267
351
|
text?: string;
|
|
268
|
-
})
|
|
352
|
+
}) | {
|
|
353
|
+
kind: "web";
|
|
354
|
+
text: string;
|
|
355
|
+
} | {
|
|
356
|
+
text: string;
|
|
357
|
+
}>, unknown>;
|
|
269
358
|
export declare const Link: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
270
359
|
__TYPE__: t.LiteralC<"ImageLink">;
|
|
271
|
-
}>>, t.
|
|
360
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
361
|
+
kind: t.LiteralC<"image">;
|
|
362
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
272
363
|
id: t.StringC;
|
|
273
364
|
url: t.StringC;
|
|
274
365
|
height: t.StringC;
|
|
275
366
|
width: t.StringC;
|
|
276
367
|
size: t.StringC;
|
|
277
368
|
name: t.StringC;
|
|
278
|
-
kind: t.StringC;
|
|
279
369
|
}>, t.PartialC<{
|
|
280
370
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
281
371
|
text: t.StringC;
|
|
282
|
-
}>]
|
|
372
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
373
|
+
text: t.StringC;
|
|
374
|
+
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
375
|
+
__TYPE__: t.LiteralC<"FileLink">;
|
|
376
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
377
|
+
kind: t.LiteralC<"file">;
|
|
378
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
283
379
|
id: t.StringC;
|
|
284
380
|
url: t.StringC;
|
|
285
381
|
name: t.StringC;
|
|
286
|
-
kind: t.StringC;
|
|
287
382
|
size: t.StringC;
|
|
288
383
|
}>, t.PartialC<{
|
|
289
384
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
290
385
|
text: t.StringC;
|
|
291
|
-
}>]>>, t.ExactC<t.
|
|
292
|
-
__TYPE__: t.LiteralC<"FileLink">;
|
|
293
|
-
}>, t.PartialC<{
|
|
294
|
-
size: t.StringC;
|
|
386
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
295
387
|
text: t.StringC;
|
|
296
|
-
}>]
|
|
388
|
+
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
297
389
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
298
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
390
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
299
391
|
id: t.Type<string, string, unknown>;
|
|
300
392
|
}>, t.PartialC<{
|
|
393
|
+
kind: t.LiteralC<"document">;
|
|
301
394
|
text: t.StringC;
|
|
302
|
-
}>]
|
|
395
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
396
|
+
kind: t.LiteralC<"document">;
|
|
397
|
+
text: t.StringC;
|
|
398
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
303
399
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
304
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
400
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
305
401
|
url: t.StringC;
|
|
306
402
|
}>, t.PartialC<{
|
|
307
403
|
kind: t.LiteralC<"web">;
|
|
@@ -312,45 +408,59 @@ export declare const Link: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
|
312
408
|
title?: string;
|
|
313
409
|
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
314
410
|
text: t.StringC;
|
|
315
|
-
}>]
|
|
411
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
412
|
+
kind: t.LiteralC<"web">;
|
|
413
|
+
text: t.StringC;
|
|
414
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
415
|
+
__TYPE__: t.LiteralC<"AnyLink">;
|
|
416
|
+
}>>, t.ExactC<t.TypeC<{
|
|
417
|
+
text: t.StringC;
|
|
418
|
+
}>>]>]>;
|
|
316
419
|
export declare const LinkContent: t.ExactC<t.TypeC<{
|
|
317
420
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
318
421
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
319
422
|
__TYPE__: t.LiteralC<"ImageLink">;
|
|
320
|
-
}>>, t.
|
|
423
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
424
|
+
kind: t.LiteralC<"image">;
|
|
425
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
321
426
|
id: t.StringC;
|
|
322
427
|
url: t.StringC;
|
|
323
428
|
height: t.StringC;
|
|
324
429
|
width: t.StringC;
|
|
325
430
|
size: t.StringC;
|
|
326
431
|
name: t.StringC;
|
|
327
|
-
kind: t.StringC;
|
|
328
432
|
}>, t.PartialC<{
|
|
329
433
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
330
434
|
text: t.StringC;
|
|
331
|
-
}>]
|
|
435
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
436
|
+
text: t.StringC;
|
|
437
|
+
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
438
|
+
__TYPE__: t.LiteralC<"FileLink">;
|
|
439
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
440
|
+
kind: t.LiteralC<"file">;
|
|
441
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
332
442
|
id: t.StringC;
|
|
333
443
|
url: t.StringC;
|
|
334
444
|
name: t.StringC;
|
|
335
|
-
kind: t.StringC;
|
|
336
445
|
size: t.StringC;
|
|
337
446
|
}>, t.PartialC<{
|
|
338
447
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
339
448
|
text: t.StringC;
|
|
340
|
-
}>]>>, t.ExactC<t.
|
|
341
|
-
__TYPE__: t.LiteralC<"FileLink">;
|
|
342
|
-
}>, t.PartialC<{
|
|
343
|
-
size: t.StringC;
|
|
449
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
344
450
|
text: t.StringC;
|
|
345
|
-
}>]
|
|
451
|
+
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
346
452
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
347
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
453
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
348
454
|
id: t.Type<string, string, unknown>;
|
|
349
455
|
}>, t.PartialC<{
|
|
456
|
+
kind: t.LiteralC<"document">;
|
|
457
|
+
text: t.StringC;
|
|
458
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
459
|
+
kind: t.LiteralC<"document">;
|
|
350
460
|
text: t.StringC;
|
|
351
|
-
}>]
|
|
461
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
352
462
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
353
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
463
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
354
464
|
url: t.StringC;
|
|
355
465
|
}>, t.PartialC<{
|
|
356
466
|
kind: t.LiteralC<"web">;
|
|
@@ -361,7 +471,14 @@ export declare const LinkContent: t.ExactC<t.TypeC<{
|
|
|
361
471
|
title?: string;
|
|
362
472
|
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
363
473
|
text: t.StringC;
|
|
364
|
-
}>]
|
|
474
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
475
|
+
kind: t.LiteralC<"web">;
|
|
476
|
+
text: t.StringC;
|
|
477
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
478
|
+
__TYPE__: t.LiteralC<"AnyLink">;
|
|
479
|
+
}>>, t.ExactC<t.TypeC<{
|
|
480
|
+
text: t.StringC;
|
|
481
|
+
}>>]>]>;
|
|
365
482
|
}>>;
|
|
366
483
|
export declare type LinkContent = t.TypeOf<typeof LinkContent>;
|
|
367
484
|
export declare type LinksTypes = LinkContent["__TYPE__"] | LinkContent["value"]["__TYPE__"];
|