@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.
Files changed (33) hide show
  1. package/lib/content/Document.d.ts +216 -0
  2. package/lib/content/fields/WidgetContent.d.ts +216 -0
  3. package/lib/content/fields/nestable/LinkContent.d.ts +48 -0
  4. package/lib/content/fields/nestable/LinkContent.js +6 -0
  5. package/lib/content/fields/nestable/NestableContent.d.ts +36 -0
  6. package/lib/content/fields/nestable/RepeatableContent.d.ts +12 -0
  7. package/lib/content/fields/nestable/RepeatableContent.js +1 -8
  8. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +72 -0
  9. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +12 -0
  10. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +72 -0
  11. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +36 -0
  12. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +36 -0
  13. package/lib/content/fields/slices/Slice/index.d.ts +120 -0
  14. package/lib/content/fields/slices/SliceItem.d.ts +120 -0
  15. package/lib/content/fields/slices/SlicesContent.d.ts +180 -0
  16. package/lib/customtypes/CustomType.d.ts +72 -0
  17. package/lib/customtypes/Section.d.ts +72 -0
  18. package/lib/customtypes/diff/SharedSlice.d.ts +32 -0
  19. package/lib/customtypes/diff/Variation.d.ts +32 -0
  20. package/lib/customtypes/widgets/Group.d.ts +24 -0
  21. package/lib/customtypes/widgets/Widget.d.ts +84 -0
  22. package/lib/customtypes/widgets/nestable/Link.d.ts +8 -0
  23. package/lib/customtypes/widgets/nestable/Link.js +4 -0
  24. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +4 -0
  25. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +8 -0
  26. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +8 -0
  27. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +32 -0
  28. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +24 -0
  29. package/lib/customtypes/widgets/slices/Slices.d.ts +112 -0
  30. package/package.json +1 -1
  31. package/src/content/fields/nestable/LinkContent.ts +6 -0
  32. package/src/content/fields/nestable/RepeatableContent.ts +1 -10
  33. package/src/customtypes/widgets/nestable/Link.ts +5 -0
@@ -54,6 +54,7 @@ export declare const ImageLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
54
54
  kind: t.LiteralC<"image">;
55
55
  }>>]>, t.ExactC<t.PartialC<{
56
56
  text: t.StringC;
57
+ variant: t.StringC;
57
58
  }>>]>]>;
58
59
  export declare type ImageLinkContent = t.TypeOf<typeof ImageLinkContent>;
59
60
  export declare const FileLinkType = "FileLink";
@@ -83,6 +84,7 @@ export declare const FileLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
83
84
  kind: t.LiteralC<"file">;
84
85
  }>>]>, t.ExactC<t.PartialC<{
85
86
  text: t.StringC;
87
+ variant: t.StringC;
86
88
  }>>]>]>;
87
89
  export declare type FileLinkContent = t.TypeOf<typeof FileLinkContent>;
88
90
  export declare const MediaLinkType = "MediaLink";
@@ -92,6 +94,7 @@ export declare const MediaLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
92
94
  kind: t.LiteralC<"media">;
93
95
  }>>, t.ExactC<t.PartialC<{
94
96
  text: t.StringC;
97
+ variant: t.StringC;
95
98
  }>>]>]>;
96
99
  export declare type MediaLinkContent = t.TypeOf<typeof MediaLinkContent>;
97
100
  export declare const DocumentLinkType = "DocumentLink";
@@ -109,6 +112,7 @@ export declare const DocumentLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
109
112
  kind: t.LiteralC<"document">;
110
113
  }>>]>, t.ExactC<t.PartialC<{
111
114
  text: t.StringC;
115
+ variant: t.StringC;
112
116
  }>>]>]>;
113
117
  export declare type DocumentLinkContent = t.TypeOf<typeof DocumentLinkContent>;
114
118
  export declare const ExternalLinkType = "ExternalLink";
@@ -142,6 +146,7 @@ export declare const ExternalLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
142
146
  kind: t.LiteralC<"web">;
143
147
  }>>]>, t.ExactC<t.PartialC<{
144
148
  text: t.StringC;
149
+ variant: t.StringC;
145
150
  }>>]>]>;
146
151
  export declare type ExternalLinkContent = t.TypeOf<typeof ExternalLinkContent>;
147
152
  export declare const AnyLinkType = "AnyLink";
@@ -151,6 +156,7 @@ export declare const AnyLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
151
156
  kind: t.LiteralC<"any">;
152
157
  }>, t.PartialC<{
153
158
  text: t.StringC;
159
+ variant: t.StringC;
154
160
  }>]>>]>;
155
161
  export declare type AnyLinkContent = t.TypeOf<typeof AnyLinkContent>;
156
162
  export declare const LinkContentType = "LinkContent";
@@ -174,6 +180,7 @@ export declare const isLinkContent: (u: unknown) => u is {
174
180
  kind: "image";
175
181
  }) & {
176
182
  text?: string;
183
+ variant?: string;
177
184
  })) | ({
178
185
  __TYPE__: "FileLink";
179
186
  } & ((({
@@ -188,12 +195,14 @@ export declare const isLinkContent: (u: unknown) => u is {
188
195
  kind: "file";
189
196
  }) & {
190
197
  text?: string;
198
+ variant?: string;
191
199
  })) | ({
192
200
  __TYPE__: "MediaLink";
193
201
  } & {
194
202
  kind: "media";
195
203
  } & {
196
204
  text?: string;
205
+ variant?: string;
197
206
  }) | ({
198
207
  __TYPE__: "DocumentLink";
199
208
  } & (({
@@ -202,6 +211,7 @@ export declare const isLinkContent: (u: unknown) => u is {
202
211
  kind: "document";
203
212
  }) & {
204
213
  text?: string;
214
+ variant?: string;
205
215
  })) | ({
206
216
  __TYPE__: "ExternalLink";
207
217
  } & ((({
@@ -216,12 +226,14 @@ export declare const isLinkContent: (u: unknown) => u is {
216
226
  kind: "web";
217
227
  }) & {
218
228
  text?: string;
229
+ variant?: string;
219
230
  })) | ({
220
231
  __TYPE__: "AnyLink";
221
232
  } & {
222
233
  kind: "any";
223
234
  } & {
224
235
  text?: string;
236
+ variant?: string;
225
237
  });
226
238
  };
227
239
  export declare const LinkLegacy: t.IntersectionC<[t.ExactC<t.TypeC<{
@@ -242,6 +254,7 @@ export declare const LinkLegacy: t.IntersectionC<[t.ExactC<t.TypeC<{
242
254
  kind: "image";
243
255
  }) & {
244
256
  text?: string;
257
+ variant?: string;
245
258
  }), (({
246
259
  kind: "image";
247
260
  id: string;
@@ -256,6 +269,7 @@ export declare const LinkLegacy: t.IntersectionC<[t.ExactC<t.TypeC<{
256
269
  kind: "image";
257
270
  }) & {
258
271
  text?: string;
272
+ variant?: string;
259
273
  }, unknown>, t.Type<{
260
274
  __TYPE__: "FileLink";
261
275
  } & ((({
@@ -270,6 +284,7 @@ export declare const LinkLegacy: t.IntersectionC<[t.ExactC<t.TypeC<{
270
284
  kind: "file";
271
285
  }) & {
272
286
  text?: string;
287
+ variant?: string;
273
288
  }), (({
274
289
  kind: "file";
275
290
  id: string;
@@ -282,6 +297,7 @@ export declare const LinkLegacy: t.IntersectionC<[t.ExactC<t.TypeC<{
282
297
  kind: "file";
283
298
  }) & {
284
299
  text?: string;
300
+ variant?: string;
285
301
  }, unknown>, t.Type<{
286
302
  __TYPE__: "DocumentLink";
287
303
  } & (({
@@ -290,12 +306,14 @@ export declare const LinkLegacy: t.IntersectionC<[t.ExactC<t.TypeC<{
290
306
  kind: "document";
291
307
  }) & {
292
308
  text?: string;
309
+ variant?: string;
293
310
  }), ({
294
311
  id: string;
295
312
  } | {
296
313
  kind: "document";
297
314
  }) & {
298
315
  text?: string;
316
+ variant?: string;
299
317
  }, unknown>, t.Type<{
300
318
  __TYPE__: "ExternalLink";
301
319
  } & ((({
@@ -310,6 +328,7 @@ export declare const LinkLegacy: t.IntersectionC<[t.ExactC<t.TypeC<{
310
328
  kind: "web";
311
329
  }) & {
312
330
  text?: string;
331
+ variant?: string;
313
332
  }), (({
314
333
  url: string;
315
334
  } & {
@@ -322,26 +341,31 @@ export declare const LinkLegacy: t.IntersectionC<[t.ExactC<t.TypeC<{
322
341
  kind: "web";
323
342
  }) & {
324
343
  text?: string;
344
+ variant?: string;
325
345
  }, unknown>, t.Type<{
326
346
  __TYPE__: "MediaLink";
327
347
  } & {
328
348
  kind: "media";
329
349
  } & {
330
350
  text?: string;
351
+ variant?: string;
331
352
  }, {
332
353
  kind: "media";
333
354
  } & {
334
355
  text?: string;
356
+ variant?: string;
335
357
  }, unknown>, t.Type<{
336
358
  __TYPE__: "AnyLink";
337
359
  } & {
338
360
  kind: "any";
339
361
  } & {
340
362
  text?: string;
363
+ variant?: string;
341
364
  }, {
342
365
  kind: "any";
343
366
  } & {
344
367
  text?: string;
368
+ variant?: string;
345
369
  }, unknown>]>]>;
346
370
  export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
347
371
  key: string;
@@ -363,6 +387,7 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
363
387
  kind: "image";
364
388
  }) & {
365
389
  text?: string;
390
+ variant?: string;
366
391
  })) | ({
367
392
  __TYPE__: "FileLink";
368
393
  } & ((({
@@ -377,12 +402,14 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
377
402
  kind: "file";
378
403
  }) & {
379
404
  text?: string;
405
+ variant?: string;
380
406
  })) | ({
381
407
  __TYPE__: "MediaLink";
382
408
  } & {
383
409
  kind: "media";
384
410
  } & {
385
411
  text?: string;
412
+ variant?: string;
386
413
  }) | ({
387
414
  __TYPE__: "DocumentLink";
388
415
  } & (({
@@ -391,6 +418,7 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
391
418
  kind: "document";
392
419
  }) & {
393
420
  text?: string;
421
+ variant?: string;
394
422
  })) | ({
395
423
  __TYPE__: "ExternalLink";
396
424
  } & ((({
@@ -405,12 +433,14 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
405
433
  kind: "web";
406
434
  }) & {
407
435
  text?: string;
436
+ variant?: string;
408
437
  })) | ({
409
438
  __TYPE__: "AnyLink";
410
439
  } & {
411
440
  kind: "any";
412
441
  } & {
413
442
  text?: string;
443
+ variant?: string;
414
444
  });
415
445
  }, WithTypes<{
416
446
  key: string;
@@ -428,6 +458,7 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
428
458
  kind: "image";
429
459
  }) & {
430
460
  text?: string;
461
+ variant?: string;
431
462
  }) | ((({
432
463
  kind: "file";
433
464
  id: string;
@@ -440,16 +471,19 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
440
471
  kind: "file";
441
472
  }) & {
442
473
  text?: string;
474
+ variant?: string;
443
475
  }) | ({
444
476
  kind: "media";
445
477
  } & {
446
478
  text?: string;
479
+ variant?: string;
447
480
  }) | (({
448
481
  id: string;
449
482
  } | {
450
483
  kind: "document";
451
484
  }) & {
452
485
  text?: string;
486
+ variant?: string;
453
487
  }) | ((({
454
488
  url: string;
455
489
  } & {
@@ -462,10 +496,12 @@ export declare const LinkContentLegacy: (ctx: LegacyContentCtx) => t.Type<{
462
496
  kind: "web";
463
497
  }) & {
464
498
  text?: string;
499
+ variant?: string;
465
500
  }) | ({
466
501
  kind: "any";
467
502
  } & {
468
503
  text?: string;
504
+ variant?: string;
469
505
  }))>, unknown>;
470
506
  export declare const Link: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
471
507
  __TYPE__: t.LiteralC<"ImageLink">;
@@ -483,6 +519,7 @@ export declare const Link: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
483
519
  kind: t.LiteralC<"image">;
484
520
  }>>]>, t.ExactC<t.PartialC<{
485
521
  text: t.StringC;
522
+ variant: t.StringC;
486
523
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
487
524
  __TYPE__: t.LiteralC<"FileLink">;
488
525
  }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
@@ -497,6 +534,7 @@ export declare const Link: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
497
534
  kind: t.LiteralC<"file">;
498
535
  }>>]>, t.ExactC<t.PartialC<{
499
536
  text: t.StringC;
537
+ variant: t.StringC;
500
538
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
501
539
  __TYPE__: t.LiteralC<"DocumentLink">;
502
540
  }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
@@ -505,6 +543,7 @@ export declare const Link: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
505
543
  kind: t.LiteralC<"document">;
506
544
  }>>]>, t.ExactC<t.PartialC<{
507
545
  text: t.StringC;
546
+ variant: t.StringC;
508
547
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
509
548
  __TYPE__: t.LiteralC<"ExternalLink">;
510
549
  }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
@@ -521,18 +560,21 @@ export declare const Link: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
521
560
  kind: t.LiteralC<"web">;
522
561
  }>>]>, t.ExactC<t.PartialC<{
523
562
  text: t.StringC;
563
+ variant: t.StringC;
524
564
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
525
565
  __TYPE__: t.LiteralC<"MediaLink">;
526
566
  }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
527
567
  kind: t.LiteralC<"media">;
528
568
  }>>, t.ExactC<t.PartialC<{
529
569
  text: t.StringC;
570
+ variant: t.StringC;
530
571
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
531
572
  __TYPE__: t.LiteralC<"AnyLink">;
532
573
  }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
533
574
  kind: t.LiteralC<"any">;
534
575
  }>, t.PartialC<{
535
576
  text: t.StringC;
577
+ variant: t.StringC;
536
578
  }>]>>]>]>;
537
579
  export declare const LinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
538
580
  key: t.Type<string, string, unknown>;
@@ -554,6 +596,7 @@ export declare const LinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
554
596
  kind: t.LiteralC<"image">;
555
597
  }>>]>, t.ExactC<t.PartialC<{
556
598
  text: t.StringC;
599
+ variant: t.StringC;
557
600
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
558
601
  __TYPE__: t.LiteralC<"FileLink">;
559
602
  }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
@@ -568,6 +611,7 @@ export declare const LinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
568
611
  kind: t.LiteralC<"file">;
569
612
  }>>]>, t.ExactC<t.PartialC<{
570
613
  text: t.StringC;
614
+ variant: t.StringC;
571
615
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
572
616
  __TYPE__: t.LiteralC<"DocumentLink">;
573
617
  }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
@@ -576,6 +620,7 @@ export declare const LinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
576
620
  kind: t.LiteralC<"document">;
577
621
  }>>]>, t.ExactC<t.PartialC<{
578
622
  text: t.StringC;
623
+ variant: t.StringC;
579
624
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
580
625
  __TYPE__: t.LiteralC<"ExternalLink">;
581
626
  }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
@@ -592,18 +637,21 @@ export declare const LinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
592
637
  kind: t.LiteralC<"web">;
593
638
  }>>]>, t.ExactC<t.PartialC<{
594
639
  text: t.StringC;
640
+ variant: t.StringC;
595
641
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
596
642
  __TYPE__: t.LiteralC<"MediaLink">;
597
643
  }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
598
644
  kind: t.LiteralC<"media">;
599
645
  }>>, t.ExactC<t.PartialC<{
600
646
  text: t.StringC;
647
+ variant: t.StringC;
601
648
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
602
649
  __TYPE__: t.LiteralC<"AnyLink">;
603
650
  }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
604
651
  kind: t.LiteralC<"any">;
605
652
  }>, t.PartialC<{
606
653
  text: t.StringC;
654
+ variant: t.StringC;
607
655
  }>]>>]>]>;
608
656
  }>>]>;
609
657
  export declare type LinkContent = t.TypeOf<typeof LinkContent>;
@@ -89,6 +89,7 @@ const imageLinkLegacyCodec = t.intersection([
89
89
  ]),
90
90
  t.exact(t.partial({
91
91
  text: t.string,
92
+ variant: t.string,
92
93
  })),
93
94
  ]);
94
95
  const ImageLinkLegacy = new t.Type("ImageLink", (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.ImageLinkType, (image) => {
@@ -148,6 +149,7 @@ const fileLinkLegacyCodec = t.intersection([
148
149
  ]),
149
150
  t.exact(t.partial({
150
151
  text: t.string,
152
+ variant: t.string,
151
153
  })),
152
154
  ]);
153
155
  const FileLinkLegacy = new t.Type("FileLink", (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.FileLinkType, (file) => {
@@ -174,6 +176,7 @@ const mediaLinkLegacyCodec = t.intersection([
174
176
  }),
175
177
  t.exact(t.partial({
176
178
  text: t.string,
179
+ variant: t.string,
177
180
  })),
178
181
  ]);
179
182
  const MediaLinkLegacy = new t.Type("MediaLink", (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.MediaLinkType, (mediaLink) => {
@@ -222,6 +225,7 @@ const documentLinkLegacyCodec = t.intersection([
222
225
  ]),
223
226
  t.exact(t.partial({
224
227
  text: t.string,
228
+ variant: t.string,
225
229
  })),
226
230
  ]);
227
231
  const DocumentLinkLegacy = new t.Type("DocumentLink", (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.DocumentLinkType, (file) => {
@@ -279,6 +283,7 @@ const externalLinkLegacyCodec = t.intersection([
279
283
  ]),
280
284
  t.exact(t.partial({
281
285
  text: t.string,
286
+ variant: t.string,
282
287
  })),
283
288
  ]);
284
289
  const ExternalLinkLegacy = new t.Type("ExternalLink", (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.ExternalLinkType, (file) => {
@@ -305,6 +310,7 @@ const anyLinkLegacyCodec = t.exact(t.intersection([
305
310
  }),
306
311
  t.partial({
307
312
  text: t.string,
313
+ variant: t.string,
308
314
  }),
309
315
  ]));
310
316
  const AnyLinkLegacy = new t.Type("AnyLink", (u) => (0, utils_1.hasContentType)(u) && u.__TYPE__ === exports.AnyLinkType, (anyLink) => {
@@ -131,6 +131,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
131
131
  kind: t.LiteralC<"image">;
132
132
  }>>]>, t.ExactC<t.PartialC<{
133
133
  text: t.StringC;
134
+ variant: t.StringC;
134
135
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
135
136
  __TYPE__: t.LiteralC<"FileLink">;
136
137
  }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
@@ -145,6 +146,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
145
146
  kind: t.LiteralC<"file">;
146
147
  }>>]>, t.ExactC<t.PartialC<{
147
148
  text: t.StringC;
149
+ variant: t.StringC;
148
150
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
149
151
  __TYPE__: t.LiteralC<"DocumentLink">;
150
152
  }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
@@ -153,6 +155,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
153
155
  kind: t.LiteralC<"document">;
154
156
  }>>]>, t.ExactC<t.PartialC<{
155
157
  text: t.StringC;
158
+ variant: t.StringC;
156
159
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
157
160
  __TYPE__: t.LiteralC<"ExternalLink">;
158
161
  }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
@@ -169,18 +172,21 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
169
172
  kind: t.LiteralC<"web">;
170
173
  }>>]>, t.ExactC<t.PartialC<{
171
174
  text: t.StringC;
175
+ variant: t.StringC;
172
176
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
173
177
  __TYPE__: t.LiteralC<"MediaLink">;
174
178
  }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
175
179
  kind: t.LiteralC<"media">;
176
180
  }>>, t.ExactC<t.PartialC<{
177
181
  text: t.StringC;
182
+ variant: t.StringC;
178
183
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
179
184
  __TYPE__: t.LiteralC<"AnyLink">;
180
185
  }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
181
186
  kind: t.LiteralC<"any">;
182
187
  }>, t.PartialC<{
183
188
  text: t.StringC;
189
+ variant: t.StringC;
184
190
  }>]>>]>]>;
185
191
  }>>]>, t.ExactC<t.TypeC<{
186
192
  __TYPE__: t.LiteralC<"StructuredTextContent">;
@@ -446,6 +452,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
446
452
  kind: t.LiteralC<"image">;
447
453
  }>>]>, t.ExactC<t.PartialC<{
448
454
  text: t.StringC;
455
+ variant: t.StringC;
449
456
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
450
457
  __TYPE__: t.LiteralC<"FileLink">;
451
458
  }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
@@ -460,6 +467,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
460
467
  kind: t.LiteralC<"file">;
461
468
  }>>]>, t.ExactC<t.PartialC<{
462
469
  text: t.StringC;
470
+ variant: t.StringC;
463
471
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
464
472
  __TYPE__: t.LiteralC<"DocumentLink">;
465
473
  }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.TypeC<{
@@ -468,6 +476,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
468
476
  kind: t.LiteralC<"document">;
469
477
  }>>]>, t.ExactC<t.PartialC<{
470
478
  text: t.StringC;
479
+ variant: t.StringC;
471
480
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
472
481
  __TYPE__: t.LiteralC<"ExternalLink">;
473
482
  }>>, t.IntersectionC<[t.UnionC<[t.ExactC<t.IntersectionC<[t.TypeC<{
@@ -484,18 +493,21 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
484
493
  kind: t.LiteralC<"web">;
485
494
  }>>]>, t.ExactC<t.PartialC<{
486
495
  text: t.StringC;
496
+ variant: t.StringC;
487
497
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
488
498
  __TYPE__: t.LiteralC<"MediaLink">;
489
499
  }>>, t.IntersectionC<[t.ExactC<t.TypeC<{
490
500
  kind: t.LiteralC<"media">;
491
501
  }>>, t.ExactC<t.PartialC<{
492
502
  text: t.StringC;
503
+ variant: t.StringC;
493
504
  }>>]>]>, t.IntersectionC<[t.ExactC<t.TypeC<{
494
505
  __TYPE__: t.LiteralC<"AnyLink">;
495
506
  }>>, t.ExactC<t.IntersectionC<[t.TypeC<{
496
507
  kind: t.LiteralC<"any">;
497
508
  }>, t.PartialC<{
498
509
  text: t.StringC;
510
+ variant: t.StringC;
499
511
  }>]>>]>]>;
500
512
  }>>]>>;
501
513
  }>>]>;
@@ -634,6 +646,7 @@ export declare const isNestableContent: (u: unknown) => u is {
634
646
  kind: "image";
635
647
  }) & {
636
648
  text?: string;
649
+ variant?: string;
637
650
  })) | ({
638
651
  __TYPE__: "FileLink";
639
652
  } & ((({
@@ -648,12 +661,14 @@ export declare const isNestableContent: (u: unknown) => u is {
648
661
  kind: "file";
649
662
  }) & {
650
663
  text?: string;
664
+ variant?: string;
651
665
  })) | ({
652
666
  __TYPE__: "MediaLink";
653
667
  } & {
654
668
  kind: "media";
655
669
  } & {
656
670
  text?: string;
671
+ variant?: string;
657
672
  }) | ({
658
673
  __TYPE__: "DocumentLink";
659
674
  } & (({
@@ -662,6 +677,7 @@ export declare const isNestableContent: (u: unknown) => u is {
662
677
  kind: "document";
663
678
  }) & {
664
679
  text?: string;
680
+ variant?: string;
665
681
  })) | ({
666
682
  __TYPE__: "ExternalLink";
667
683
  } & ((({
@@ -676,12 +692,14 @@ export declare const isNestableContent: (u: unknown) => u is {
676
692
  kind: "web";
677
693
  }) & {
678
694
  text?: string;
695
+ variant?: string;
679
696
  })) | ({
680
697
  __TYPE__: "AnyLink";
681
698
  } & {
682
699
  kind: "any";
683
700
  } & {
684
701
  text?: string;
702
+ variant?: string;
685
703
  });
686
704
  }) | {
687
705
  __TYPE__: "RepeatableContent";
@@ -706,6 +724,7 @@ export declare const isNestableContent: (u: unknown) => u is {
706
724
  kind: "image";
707
725
  }) & {
708
726
  text?: string;
727
+ variant?: string;
709
728
  })) | ({
710
729
  __TYPE__: "FileLink";
711
730
  } & ((({
@@ -720,12 +739,14 @@ export declare const isNestableContent: (u: unknown) => u is {
720
739
  kind: "file";
721
740
  }) & {
722
741
  text?: string;
742
+ variant?: string;
723
743
  })) | ({
724
744
  __TYPE__: "MediaLink";
725
745
  } & {
726
746
  kind: "media";
727
747
  } & {
728
748
  text?: string;
749
+ variant?: string;
729
750
  }) | ({
730
751
  __TYPE__: "DocumentLink";
731
752
  } & (({
@@ -734,6 +755,7 @@ export declare const isNestableContent: (u: unknown) => u is {
734
755
  kind: "document";
735
756
  }) & {
736
757
  text?: string;
758
+ variant?: string;
737
759
  })) | ({
738
760
  __TYPE__: "ExternalLink";
739
761
  } & ((({
@@ -748,12 +770,14 @@ export declare const isNestableContent: (u: unknown) => u is {
748
770
  kind: "web";
749
771
  }) & {
750
772
  text?: string;
773
+ variant?: string;
751
774
  })) | ({
752
775
  __TYPE__: "AnyLink";
753
776
  } & {
754
777
  kind: "any";
755
778
  } & {
756
779
  text?: string;
780
+ variant?: string;
757
781
  });
758
782
  })[];
759
783
  } | {
@@ -1045,6 +1069,7 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
1045
1069
  kind: "image";
1046
1070
  }) & {
1047
1071
  text?: string;
1072
+ variant?: string;
1048
1073
  })) | ({
1049
1074
  __TYPE__: "FileLink";
1050
1075
  } & ((({
@@ -1059,12 +1084,14 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
1059
1084
  kind: "file";
1060
1085
  }) & {
1061
1086
  text?: string;
1087
+ variant?: string;
1062
1088
  })) | ({
1063
1089
  __TYPE__: "MediaLink";
1064
1090
  } & {
1065
1091
  kind: "media";
1066
1092
  } & {
1067
1093
  text?: string;
1094
+ variant?: string;
1068
1095
  }) | ({
1069
1096
  __TYPE__: "DocumentLink";
1070
1097
  } & (({
@@ -1073,6 +1100,7 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
1073
1100
  kind: "document";
1074
1101
  }) & {
1075
1102
  text?: string;
1103
+ variant?: string;
1076
1104
  })) | ({
1077
1105
  __TYPE__: "ExternalLink";
1078
1106
  } & ((({
@@ -1087,12 +1115,14 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
1087
1115
  kind: "web";
1088
1116
  }) & {
1089
1117
  text?: string;
1118
+ variant?: string;
1090
1119
  })) | ({
1091
1120
  __TYPE__: "AnyLink";
1092
1121
  } & {
1093
1122
  kind: "any";
1094
1123
  } & {
1095
1124
  text?: string;
1125
+ variant?: string;
1096
1126
  });
1097
1127
  }> | import("fp-ts/lib/Either").Right<{
1098
1128
  __TYPE__: "RepeatableContent";
@@ -1117,6 +1147,7 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
1117
1147
  kind: "image";
1118
1148
  }) & {
1119
1149
  text?: string;
1150
+ variant?: string;
1120
1151
  })) | ({
1121
1152
  __TYPE__: "FileLink";
1122
1153
  } & ((({
@@ -1131,12 +1162,14 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
1131
1162
  kind: "file";
1132
1163
  }) & {
1133
1164
  text?: string;
1165
+ variant?: string;
1134
1166
  })) | ({
1135
1167
  __TYPE__: "MediaLink";
1136
1168
  } & {
1137
1169
  kind: "media";
1138
1170
  } & {
1139
1171
  text?: string;
1172
+ variant?: string;
1140
1173
  }) | ({
1141
1174
  __TYPE__: "DocumentLink";
1142
1175
  } & (({
@@ -1145,6 +1178,7 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
1145
1178
  kind: "document";
1146
1179
  }) & {
1147
1180
  text?: string;
1181
+ variant?: string;
1148
1182
  })) | ({
1149
1183
  __TYPE__: "ExternalLink";
1150
1184
  } & ((({
@@ -1159,12 +1193,14 @@ export declare const NestableLegacy: (ctx: LegacyContentCtx) => {
1159
1193
  kind: "web";
1160
1194
  }) & {
1161
1195
  text?: string;
1196
+ variant?: string;
1162
1197
  })) | ({
1163
1198
  __TYPE__: "AnyLink";
1164
1199
  } & {
1165
1200
  kind: "any";
1166
1201
  } & {
1167
1202
  text?: string;
1203
+ variant?: string;
1168
1204
  });
1169
1205
  })[];
1170
1206
  }> | import("fp-ts/lib/Either").Right<{