@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
|
@@ -120,40 +120,47 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
120
120
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
121
121
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
122
122
|
__TYPE__: t.LiteralC<"ImageLink">;
|
|
123
|
-
}>>, t.
|
|
123
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
124
|
+
kind: t.LiteralC<"image">;
|
|
125
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
124
126
|
id: t.StringC;
|
|
125
127
|
url: t.StringC;
|
|
126
128
|
height: t.StringC;
|
|
127
129
|
width: t.StringC;
|
|
128
130
|
size: t.StringC;
|
|
129
131
|
name: t.StringC;
|
|
130
|
-
kind: t.StringC;
|
|
131
132
|
}>, t.PartialC<{
|
|
132
133
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
133
134
|
text: t.StringC;
|
|
134
|
-
}>]
|
|
135
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
136
|
+
text: t.StringC;
|
|
137
|
+
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
138
|
+
__TYPE__: t.LiteralC<"FileLink">;
|
|
139
|
+
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
140
|
+
kind: t.LiteralC<"file">;
|
|
141
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
135
142
|
id: t.StringC;
|
|
136
143
|
url: t.StringC;
|
|
137
144
|
name: t.StringC;
|
|
138
|
-
kind: t.StringC;
|
|
139
145
|
size: t.StringC;
|
|
140
146
|
}>, t.PartialC<{
|
|
141
147
|
date: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
|
|
142
148
|
text: t.StringC;
|
|
143
|
-
}>]>>, t.ExactC<t.
|
|
144
|
-
__TYPE__: t.LiteralC<"FileLink">;
|
|
145
|
-
}>, t.PartialC<{
|
|
146
|
-
size: t.StringC;
|
|
149
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
147
150
|
text: t.StringC;
|
|
148
|
-
}>]
|
|
151
|
+
}>>]>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
149
152
|
__TYPE__: t.LiteralC<"DocumentLink">;
|
|
150
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
153
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
151
154
|
id: t.Type<string, string, unknown>;
|
|
152
155
|
}>, t.PartialC<{
|
|
156
|
+
kind: t.LiteralC<"document">;
|
|
153
157
|
text: t.StringC;
|
|
154
|
-
}>]
|
|
158
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
159
|
+
kind: t.LiteralC<"document">;
|
|
160
|
+
text: t.StringC;
|
|
161
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
155
162
|
__TYPE__: t.LiteralC<"ExternalLink">;
|
|
156
|
-
}>>, t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
163
|
+
}>>, t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
157
164
|
url: t.StringC;
|
|
158
165
|
}>, t.PartialC<{
|
|
159
166
|
kind: t.LiteralC<"web">;
|
|
@@ -164,7 +171,14 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
164
171
|
title?: string;
|
|
165
172
|
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
166
173
|
text: t.StringC;
|
|
167
|
-
}>]
|
|
174
|
+
}>]>>, t.ExactC<t.TypeC<{
|
|
175
|
+
kind: t.LiteralC<"web">;
|
|
176
|
+
text: t.StringC;
|
|
177
|
+
}>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
178
|
+
__TYPE__: t.LiteralC<"AnyLink">;
|
|
179
|
+
}>>, t.ExactC<t.TypeC<{
|
|
180
|
+
text: t.StringC;
|
|
181
|
+
}>>]>]>;
|
|
168
182
|
}>>, t.ExactC<t.TypeC<{
|
|
169
183
|
__TYPE__: t.LiteralC<"StructuredTextContent">;
|
|
170
184
|
value: t.ArrayC<t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
|
|
@@ -194,40 +208,47 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
194
208
|
}>]>>, t.PartialC<{
|
|
195
209
|
linkTo: t.UnionC<[t.Type<({
|
|
196
210
|
__TYPE__: "ImageLink";
|
|
197
|
-
} & {
|
|
211
|
+
} & ({
|
|
212
|
+
kind: "image";
|
|
213
|
+
} & (({
|
|
198
214
|
id: string;
|
|
199
215
|
url: string;
|
|
200
216
|
height: string;
|
|
201
217
|
width: string;
|
|
202
218
|
size: string;
|
|
203
219
|
name: string;
|
|
204
|
-
kind: string;
|
|
205
220
|
} & {
|
|
206
221
|
date?: string | null | undefined;
|
|
207
222
|
text?: string;
|
|
208
|
-
}) |
|
|
223
|
+
}) | {
|
|
224
|
+
text: string;
|
|
225
|
+
}))) | ({
|
|
226
|
+
__TYPE__: "FileLink";
|
|
227
|
+
} & ({
|
|
228
|
+
kind: "file";
|
|
229
|
+
} & (({
|
|
209
230
|
id: string;
|
|
210
231
|
url: string;
|
|
211
232
|
name: string;
|
|
212
|
-
kind: string;
|
|
213
233
|
size: string;
|
|
214
234
|
} & {
|
|
215
235
|
date?: string | null | undefined;
|
|
216
236
|
text?: string;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
}
|
|
220
|
-
size?: string;
|
|
221
|
-
text?: string;
|
|
222
|
-
}) | ({
|
|
237
|
+
}) | {
|
|
238
|
+
text: string;
|
|
239
|
+
}))) | ({
|
|
223
240
|
__TYPE__: "DocumentLink";
|
|
224
|
-
} & {
|
|
241
|
+
} & (({
|
|
225
242
|
id: string;
|
|
226
243
|
} & {
|
|
244
|
+
kind?: "document";
|
|
227
245
|
text?: string;
|
|
228
|
-
}) |
|
|
246
|
+
}) | {
|
|
247
|
+
kind: "document";
|
|
248
|
+
text: string;
|
|
249
|
+
})) | ({
|
|
229
250
|
__TYPE__: "ExternalLink";
|
|
230
|
-
} & {
|
|
251
|
+
} & (({
|
|
231
252
|
url: string;
|
|
232
253
|
} & {
|
|
233
254
|
kind?: "web";
|
|
@@ -236,42 +257,56 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
236
257
|
title?: string;
|
|
237
258
|
} | null | undefined;
|
|
238
259
|
text?: string;
|
|
260
|
+
}) | {
|
|
261
|
+
kind: "web";
|
|
262
|
+
text: string;
|
|
263
|
+
})) | ({
|
|
264
|
+
__TYPE__: "AnyLink";
|
|
265
|
+
} & {
|
|
266
|
+
text: string;
|
|
239
267
|
}), ({
|
|
240
268
|
__TYPE__: "ImageLink";
|
|
241
|
-
} & {
|
|
269
|
+
} & ({
|
|
270
|
+
kind: "image";
|
|
271
|
+
} & (({
|
|
242
272
|
id: string;
|
|
243
273
|
url: string;
|
|
244
274
|
height: string;
|
|
245
275
|
width: string;
|
|
246
276
|
size: string;
|
|
247
277
|
name: string;
|
|
248
|
-
kind: string;
|
|
249
278
|
} & {
|
|
250
279
|
date?: string | null | undefined;
|
|
251
280
|
text?: string;
|
|
252
|
-
}) |
|
|
281
|
+
}) | {
|
|
282
|
+
text: string;
|
|
283
|
+
}))) | ({
|
|
284
|
+
__TYPE__: "FileLink";
|
|
285
|
+
} & ({
|
|
286
|
+
kind: "file";
|
|
287
|
+
} & (({
|
|
253
288
|
id: string;
|
|
254
289
|
url: string;
|
|
255
290
|
name: string;
|
|
256
|
-
kind: string;
|
|
257
291
|
size: string;
|
|
258
292
|
} & {
|
|
259
293
|
date?: string | null | undefined;
|
|
260
294
|
text?: string;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
-
size?: string;
|
|
265
|
-
text?: string;
|
|
266
|
-
}) | ({
|
|
295
|
+
}) | {
|
|
296
|
+
text: string;
|
|
297
|
+
}))) | ({
|
|
267
298
|
__TYPE__: "DocumentLink";
|
|
268
|
-
} & {
|
|
299
|
+
} & (({
|
|
269
300
|
id: string;
|
|
270
301
|
} & {
|
|
302
|
+
kind?: "document";
|
|
271
303
|
text?: string;
|
|
272
|
-
}) |
|
|
304
|
+
}) | {
|
|
305
|
+
kind: "document";
|
|
306
|
+
text: string;
|
|
307
|
+
})) | ({
|
|
273
308
|
__TYPE__: "ExternalLink";
|
|
274
|
-
} & {
|
|
309
|
+
} & (({
|
|
275
310
|
url: string;
|
|
276
311
|
} & {
|
|
277
312
|
kind?: "web";
|
|
@@ -280,6 +315,13 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
280
315
|
title?: string;
|
|
281
316
|
} | null | undefined;
|
|
282
317
|
text?: string;
|
|
318
|
+
}) | {
|
|
319
|
+
kind: "web";
|
|
320
|
+
text: string;
|
|
321
|
+
})) | ({
|
|
322
|
+
__TYPE__: "AnyLink";
|
|
323
|
+
} & {
|
|
324
|
+
text: string;
|
|
283
325
|
}), unknown>, t.NullC, t.UndefinedC]>;
|
|
284
326
|
}>]>;
|
|
285
327
|
}>, t.PartialC<{
|
|
@@ -317,40 +359,47 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
317
359
|
spans: t.Type<({
|
|
318
360
|
data: ({
|
|
319
361
|
__TYPE__: "ImageLink";
|
|
320
|
-
} & {
|
|
362
|
+
} & ({
|
|
363
|
+
kind: "image";
|
|
364
|
+
} & (({
|
|
321
365
|
id: string;
|
|
322
366
|
url: string;
|
|
323
367
|
height: string;
|
|
324
368
|
width: string;
|
|
325
369
|
size: string;
|
|
326
370
|
name: string;
|
|
327
|
-
kind: string;
|
|
328
371
|
} & {
|
|
329
372
|
date?: string | null | undefined;
|
|
330
373
|
text?: string;
|
|
331
|
-
}) |
|
|
374
|
+
}) | {
|
|
375
|
+
text: string;
|
|
376
|
+
}))) | ({
|
|
377
|
+
__TYPE__: "FileLink";
|
|
378
|
+
} & ({
|
|
379
|
+
kind: "file";
|
|
380
|
+
} & (({
|
|
332
381
|
id: string;
|
|
333
382
|
url: string;
|
|
334
383
|
name: string;
|
|
335
|
-
kind: string;
|
|
336
384
|
size: string;
|
|
337
385
|
} & {
|
|
338
386
|
date?: string | null | undefined;
|
|
339
387
|
text?: string;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
size?: string;
|
|
344
|
-
text?: string;
|
|
345
|
-
}) | ({
|
|
388
|
+
}) | {
|
|
389
|
+
text: string;
|
|
390
|
+
}))) | ({
|
|
346
391
|
__TYPE__: "DocumentLink";
|
|
347
|
-
} & {
|
|
392
|
+
} & (({
|
|
348
393
|
id: string;
|
|
349
394
|
} & {
|
|
395
|
+
kind?: "document";
|
|
350
396
|
text?: string;
|
|
351
|
-
}) |
|
|
397
|
+
}) | {
|
|
398
|
+
kind: "document";
|
|
399
|
+
text: string;
|
|
400
|
+
})) | ({
|
|
352
401
|
__TYPE__: "ExternalLink";
|
|
353
|
-
} & {
|
|
402
|
+
} & (({
|
|
354
403
|
url: string;
|
|
355
404
|
} & {
|
|
356
405
|
kind?: "web";
|
|
@@ -359,6 +408,13 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
359
408
|
title?: string;
|
|
360
409
|
} | null | undefined;
|
|
361
410
|
text?: string;
|
|
411
|
+
}) | {
|
|
412
|
+
kind: "web";
|
|
413
|
+
text: string;
|
|
414
|
+
})) | ({
|
|
415
|
+
__TYPE__: "AnyLink";
|
|
416
|
+
} & {
|
|
417
|
+
text: string;
|
|
362
418
|
});
|
|
363
419
|
start: number;
|
|
364
420
|
end: number;
|
|
@@ -375,40 +431,47 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
375
431
|
})[], ({
|
|
376
432
|
data: ({
|
|
377
433
|
__TYPE__: "ImageLink";
|
|
378
|
-
} & {
|
|
434
|
+
} & ({
|
|
435
|
+
kind: "image";
|
|
436
|
+
} & (({
|
|
379
437
|
id: string;
|
|
380
438
|
url: string;
|
|
381
439
|
height: string;
|
|
382
440
|
width: string;
|
|
383
441
|
size: string;
|
|
384
442
|
name: string;
|
|
385
|
-
kind: string;
|
|
386
443
|
} & {
|
|
387
444
|
date?: string | null | undefined;
|
|
388
445
|
text?: string;
|
|
389
|
-
}) |
|
|
446
|
+
}) | {
|
|
447
|
+
text: string;
|
|
448
|
+
}))) | ({
|
|
449
|
+
__TYPE__: "FileLink";
|
|
450
|
+
} & ({
|
|
451
|
+
kind: "file";
|
|
452
|
+
} & (({
|
|
390
453
|
id: string;
|
|
391
454
|
url: string;
|
|
392
455
|
name: string;
|
|
393
|
-
kind: string;
|
|
394
456
|
size: string;
|
|
395
457
|
} & {
|
|
396
458
|
date?: string | null | undefined;
|
|
397
459
|
text?: string;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
}
|
|
401
|
-
size?: string;
|
|
402
|
-
text?: string;
|
|
403
|
-
}) | ({
|
|
460
|
+
}) | {
|
|
461
|
+
text: string;
|
|
462
|
+
}))) | ({
|
|
404
463
|
__TYPE__: "DocumentLink";
|
|
405
|
-
} & {
|
|
464
|
+
} & (({
|
|
406
465
|
id: string;
|
|
407
466
|
} & {
|
|
467
|
+
kind?: "document";
|
|
408
468
|
text?: string;
|
|
409
|
-
}) |
|
|
469
|
+
}) | {
|
|
470
|
+
kind: "document";
|
|
471
|
+
text: string;
|
|
472
|
+
})) | ({
|
|
410
473
|
__TYPE__: "ExternalLink";
|
|
411
|
-
} & {
|
|
474
|
+
} & (({
|
|
412
475
|
url: string;
|
|
413
476
|
} & {
|
|
414
477
|
kind?: "web";
|
|
@@ -417,6 +480,13 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
417
480
|
title?: string;
|
|
418
481
|
} | null | undefined;
|
|
419
482
|
text?: string;
|
|
483
|
+
}) | {
|
|
484
|
+
kind: "web";
|
|
485
|
+
text: string;
|
|
486
|
+
})) | ({
|
|
487
|
+
__TYPE__: "AnyLink";
|
|
488
|
+
} & {
|
|
489
|
+
text: string;
|
|
420
490
|
});
|
|
421
491
|
start: number;
|
|
422
492
|
end: number;
|