@prismicio/types-internal 2.7.0-alpha.2 → 2.7.0-alpha.3

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 (38) hide show
  1. package/lib/content/Document.d.ts +13 -409
  2. package/lib/content/fields/WidgetContent.d.ts +12 -408
  3. package/lib/content/fields/nestable/LinkContent.d.ts +8 -54
  4. package/lib/content/fields/nestable/LinkContent.js +1 -10
  5. package/lib/content/fields/nestable/NestableContent.d.ts +2 -68
  6. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +6 -129
  7. package/lib/content/fields/nestable/RichTextContent/index.d.ts +0 -60
  8. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +4 -136
  9. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +2 -32
  10. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +4 -136
  11. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +2 -68
  12. package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +2 -68
  13. package/lib/content/fields/slices/Slice/index.d.ts +10 -250
  14. package/lib/content/fields/slices/SliceItem.d.ts +10 -250
  15. package/lib/content/fields/slices/SlicesContent.d.ts +10 -340
  16. package/lib/customtypes/CustomType.d.ts +484 -344
  17. package/lib/customtypes/Section.d.ts +484 -344
  18. package/lib/customtypes/diff/SharedSlice.d.ts +232 -152
  19. package/lib/customtypes/diff/Variation.d.ts +232 -152
  20. package/lib/customtypes/widgets/Group.d.ts +315 -72
  21. package/lib/customtypes/widgets/Group.js +43 -5
  22. package/lib/customtypes/widgets/Widget.d.ts +520 -330
  23. package/lib/customtypes/widgets/nestable/Link.d.ts +0 -20
  24. package/lib/customtypes/widgets/nestable/Link.js +0 -2
  25. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +0 -10
  26. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +0 -20
  27. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +42 -22
  28. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +168 -88
  29. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +191 -91
  30. package/lib/customtypes/widgets/slices/Slices.d.ts +523 -443
  31. package/package.json +1 -1
  32. package/src/content/fields/nestable/LinkContent.ts +1 -12
  33. package/src/customtypes/widgets/Group.ts +52 -6
  34. package/src/customtypes/widgets/nestable/Link.ts +0 -2
  35. package/lib/content/fields/nestable/RichTextContent/TextBlock.d.ts +0 -727
  36. package/lib/content/fields/nestable/RichTextContent/TextBlock.js +0 -80
  37. package/lib/customtypes/widgets/slices/SliceWidget.d.ts +0 -327
  38. package/lib/customtypes/widgets/slices/SliceWidget.js +0 -8
@@ -40,7 +40,6 @@ export declare const isRichTextContent: (u: unknown) => u is {
40
40
  kind: string;
41
41
  } & {
42
42
  date?: string | null | undefined;
43
- text?: string;
44
43
  }) | ({
45
44
  id: string;
46
45
  url: string;
@@ -49,18 +48,14 @@ export declare const isRichTextContent: (u: unknown) => u is {
49
48
  size: string;
50
49
  } & {
51
50
  date?: string | null | undefined;
52
- text?: string;
53
51
  } & {
54
52
  __TYPE__: "FileLink";
55
53
  } & {
56
54
  size?: string;
57
- text?: string;
58
55
  }) | ({
59
56
  __TYPE__: "DocumentLink";
60
57
  } & {
61
58
  id: string;
62
- } & {
63
- text?: string;
64
59
  }) | ({
65
60
  __TYPE__: "ExternalLink";
66
61
  } & {
@@ -71,7 +66,6 @@ export declare const isRichTextContent: (u: unknown) => u is {
71
66
  preview?: {
72
67
  title?: string;
73
68
  } | null | undefined;
74
- text?: string;
75
69
  }) | null | undefined;
76
70
  };
77
71
  } & {
@@ -119,7 +113,6 @@ export declare const isRichTextContent: (u: unknown) => u is {
119
113
  kind: string;
120
114
  } & {
121
115
  date?: string | null | undefined;
122
- text?: string;
123
116
  }) | ({
124
117
  id: string;
125
118
  url: string;
@@ -128,18 +121,14 @@ export declare const isRichTextContent: (u: unknown) => u is {
128
121
  size: string;
129
122
  } & {
130
123
  date?: string | null | undefined;
131
- text?: string;
132
124
  } & {
133
125
  __TYPE__: "FileLink";
134
126
  } & {
135
127
  size?: string;
136
- text?: string;
137
128
  }) | ({
138
129
  __TYPE__: "DocumentLink";
139
130
  } & {
140
131
  id: string;
141
- } & {
142
- text?: string;
143
132
  }) | ({
144
133
  __TYPE__: "ExternalLink";
145
134
  } & {
@@ -150,7 +139,6 @@ export declare const isRichTextContent: (u: unknown) => u is {
150
139
  preview?: {
151
140
  title?: string;
152
141
  } | null | undefined;
153
- text?: string;
154
142
  });
155
143
  start: number;
156
144
  end: number;
@@ -210,7 +198,6 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
210
198
  kind: string;
211
199
  } & {
212
200
  date?: string | null | undefined;
213
- text?: string;
214
201
  }) | ({
215
202
  id: string;
216
203
  url: string;
@@ -219,18 +206,14 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
219
206
  size: string;
220
207
  } & {
221
208
  date?: string | null | undefined;
222
- text?: string;
223
209
  } & {
224
210
  __TYPE__: "FileLink";
225
211
  } & {
226
212
  size?: string;
227
- text?: string;
228
213
  }) | ({
229
214
  __TYPE__: "DocumentLink";
230
215
  } & {
231
216
  id: string;
232
- } & {
233
- text?: string;
234
217
  }) | ({
235
218
  __TYPE__: "ExternalLink";
236
219
  } & {
@@ -241,7 +224,6 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
241
224
  preview?: {
242
225
  title?: string;
243
226
  } | null | undefined;
244
- text?: string;
245
227
  }), ({
246
228
  __TYPE__: "ImageLink";
247
229
  } & {
@@ -254,7 +236,6 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
254
236
  kind: string;
255
237
  } & {
256
238
  date?: string | null | undefined;
257
- text?: string;
258
239
  }) | ({
259
240
  id: string;
260
241
  url: string;
@@ -263,18 +244,14 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
263
244
  size: string;
264
245
  } & {
265
246
  date?: string | null | undefined;
266
- text?: string;
267
247
  } & {
268
248
  __TYPE__: "FileLink";
269
249
  } & {
270
250
  size?: string;
271
- text?: string;
272
251
  }) | ({
273
252
  __TYPE__: "DocumentLink";
274
253
  } & {
275
254
  id: string;
276
- } & {
277
- text?: string;
278
255
  }) | ({
279
256
  __TYPE__: "ExternalLink";
280
257
  } & {
@@ -285,7 +262,6 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
285
262
  preview?: {
286
263
  title?: string;
287
264
  } | null | undefined;
288
- text?: string;
289
265
  }), unknown>, t.NullC, t.UndefinedC]>;
290
266
  }>]>;
291
267
  }>, t.PartialC<{
@@ -333,7 +309,6 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
333
309
  kind: string;
334
310
  } & {
335
311
  date?: string | null | undefined;
336
- text?: string;
337
312
  }) | ({
338
313
  id: string;
339
314
  url: string;
@@ -342,18 +317,14 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
342
317
  size: string;
343
318
  } & {
344
319
  date?: string | null | undefined;
345
- text?: string;
346
320
  } & {
347
321
  __TYPE__: "FileLink";
348
322
  } & {
349
323
  size?: string;
350
- text?: string;
351
324
  }) | ({
352
325
  __TYPE__: "DocumentLink";
353
326
  } & {
354
327
  id: string;
355
- } & {
356
- text?: string;
357
328
  }) | ({
358
329
  __TYPE__: "ExternalLink";
359
330
  } & {
@@ -364,7 +335,6 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
364
335
  preview?: {
365
336
  title?: string;
366
337
  } | null | undefined;
367
- text?: string;
368
338
  });
369
339
  start: number;
370
340
  end: number;
@@ -391,7 +361,6 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
391
361
  kind: string;
392
362
  } & {
393
363
  date?: string | null | undefined;
394
- text?: string;
395
364
  }) | ({
396
365
  id: string;
397
366
  url: string;
@@ -400,18 +369,14 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
400
369
  size: string;
401
370
  } & {
402
371
  date?: string | null | undefined;
403
- text?: string;
404
372
  } & {
405
373
  __TYPE__: "FileLink";
406
374
  } & {
407
375
  size?: string;
408
- text?: string;
409
376
  }) | ({
410
377
  __TYPE__: "DocumentLink";
411
378
  } & {
412
379
  id: string;
413
- } & {
414
- text?: string;
415
380
  }) | ({
416
381
  __TYPE__: "ExternalLink";
417
382
  } & {
@@ -422,7 +387,6 @@ export declare const RichTextContent: t.ExactC<t.TypeC<{
422
387
  preview?: {
423
388
  title?: string;
424
389
  } | null | undefined;
425
- text?: string;
426
390
  });
427
391
  start: number;
428
392
  end: number;
@@ -484,7 +448,6 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
484
448
  kind: string;
485
449
  } & {
486
450
  date?: string | null | undefined;
487
- text?: string;
488
451
  }) | ({
489
452
  id: string;
490
453
  url: string;
@@ -493,18 +456,14 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
493
456
  size: string;
494
457
  } & {
495
458
  date?: string | null | undefined;
496
- text?: string;
497
459
  } & {
498
460
  __TYPE__: "FileLink";
499
461
  } & {
500
462
  size?: string;
501
- text?: string;
502
463
  }) | ({
503
464
  __TYPE__: "DocumentLink";
504
465
  } & {
505
466
  id: string;
506
- } & {
507
- text?: string;
508
467
  }) | ({
509
468
  __TYPE__: "ExternalLink";
510
469
  } & {
@@ -515,7 +474,6 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
515
474
  preview?: {
516
475
  title?: string;
517
476
  } | null | undefined;
518
- text?: string;
519
477
  }) | null | undefined;
520
478
  };
521
479
  } & {
@@ -563,7 +521,6 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
563
521
  kind: string;
564
522
  } & {
565
523
  date?: string | null | undefined;
566
- text?: string;
567
524
  }) | ({
568
525
  id: string;
569
526
  url: string;
@@ -572,18 +529,14 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
572
529
  size: string;
573
530
  } & {
574
531
  date?: string | null | undefined;
575
- text?: string;
576
532
  } & {
577
533
  __TYPE__: "FileLink";
578
534
  } & {
579
535
  size?: string;
580
- text?: string;
581
536
  }) | ({
582
537
  __TYPE__: "DocumentLink";
583
538
  } & {
584
539
  id: string;
585
- } & {
586
- text?: string;
587
540
  }) | ({
588
541
  __TYPE__: "ExternalLink";
589
542
  } & {
@@ -594,7 +547,6 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
594
547
  preview?: {
595
548
  title?: string;
596
549
  } | null | undefined;
597
- text?: string;
598
550
  });
599
551
  start: number;
600
552
  end: number;
@@ -651,7 +603,6 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
651
603
  kind: string;
652
604
  } & {
653
605
  date?: string | null | undefined;
654
- text?: string;
655
606
  }) | ({
656
607
  id: string;
657
608
  url: string;
@@ -660,18 +611,14 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
660
611
  size: string;
661
612
  } & {
662
613
  date?: string | null | undefined;
663
- text?: string;
664
614
  } & {
665
615
  __TYPE__: "FileLink";
666
616
  } & {
667
617
  size?: string;
668
- text?: string;
669
618
  }) | ({
670
619
  __TYPE__: "DocumentLink";
671
620
  } & {
672
621
  id: string;
673
- } & {
674
- text?: string;
675
622
  }) | ({
676
623
  __TYPE__: "ExternalLink";
677
624
  } & {
@@ -682,7 +629,6 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
682
629
  preview?: {
683
630
  title?: string;
684
631
  } | null | undefined;
685
- text?: string;
686
632
  }) | null | undefined;
687
633
  };
688
634
  } & {
@@ -730,7 +676,6 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
730
676
  kind: string;
731
677
  } & {
732
678
  date?: string | null | undefined;
733
- text?: string;
734
679
  }) | ({
735
680
  id: string;
736
681
  url: string;
@@ -739,18 +684,14 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
739
684
  size: string;
740
685
  } & {
741
686
  date?: string | null | undefined;
742
- text?: string;
743
687
  } & {
744
688
  __TYPE__: "FileLink";
745
689
  } & {
746
690
  size?: string;
747
- text?: string;
748
691
  }) | ({
749
692
  __TYPE__: "DocumentLink";
750
693
  } & {
751
694
  id: string;
752
- } & {
753
- text?: string;
754
695
  }) | ({
755
696
  __TYPE__: "ExternalLink";
756
697
  } & {
@@ -761,7 +702,6 @@ export declare const RichTextLegacy: (ctx: LegacyContentCtx) => t.Type<{
761
702
  preview?: {
762
703
  title?: string;
763
704
  } | null | undefined;
764
- text?: string;
765
705
  });
766
706
  start: number;
767
707
  end: number;