@prismicio/types-internal 3.9.0 → 3.10.0-alpha.1

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 (31) hide show
  1. package/lib/_internal/utils.d.ts +6 -1
  2. package/lib/content/Document.d.ts +1 -1
  3. package/lib/customtypes/CustomType.d.ts +402 -162
  4. package/lib/customtypes/CustomType.js +16 -1
  5. package/lib/customtypes/Section.d.ts +403 -162
  6. package/lib/customtypes/Section.js +40 -1
  7. package/lib/customtypes/diff/SharedSlice.d.ts +168 -64
  8. package/lib/customtypes/diff/Variation.d.ts +168 -64
  9. package/lib/customtypes/widgets/Group.d.ts +258 -90
  10. package/lib/customtypes/widgets/Group.js +62 -1
  11. package/lib/customtypes/widgets/Widget.d.ts +621 -231
  12. package/lib/customtypes/widgets/nestable/Link.d.ts +82 -30
  13. package/lib/customtypes/widgets/nestable/Link.js +43 -19
  14. package/lib/customtypes/widgets/nestable/NestableWidget.d.ts +41 -15
  15. package/lib/customtypes/widgets/slices/CompositeSlice.d.ts +89 -30
  16. package/lib/customtypes/widgets/slices/CompositeSlice.js +26 -1
  17. package/lib/customtypes/widgets/slices/LegacySlice.d.ts +82 -30
  18. package/lib/customtypes/widgets/slices/SharedSlice.d.ts +341 -120
  19. package/lib/customtypes/widgets/slices/SharedSlice.js +59 -1
  20. package/lib/customtypes/widgets/slices/SlicePrimaryWidget.d.ts +186 -69
  21. package/lib/customtypes/widgets/slices/Slices.d.ts +836 -308
  22. package/lib/customtypes/widgets/slices/Slices.js +61 -1
  23. package/package.json +1 -1
  24. package/src/_internal/utils.ts +4 -0
  25. package/src/customtypes/CustomType.ts +30 -1
  26. package/src/customtypes/Section.ts +53 -0
  27. package/src/customtypes/widgets/Group.ts +75 -0
  28. package/src/customtypes/widgets/nestable/Link.ts +85 -24
  29. package/src/customtypes/widgets/slices/CompositeSlice.ts +38 -0
  30. package/src/customtypes/widgets/slices/SharedSlice.ts +71 -0
  31. package/src/customtypes/widgets/slices/Slices.ts +69 -2
@@ -129,29 +129,55 @@ export declare const SlicePrimaryWidget: t.UnionC<[t.UnionC<[t.ExactC<t.Intersec
129
129
  useAsTitle: t.BooleanC;
130
130
  placeholder: t.StringC;
131
131
  select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
132
- customtypes: t.Type<readonly (string | ({
132
+ customtypes: t.Type<readonly (string | {
133
133
  id: string;
134
- } & {
135
- fields?: readonly (string | {
134
+ fields: readonly (string | {
135
+ id: string;
136
+ customtypes: readonly (string | {
137
+ id: string;
138
+ fields: readonly (string | {
139
+ id: string;
140
+ fields: readonly string[];
141
+ })[];
142
+ })[];
143
+ } | {
136
144
  id: string;
137
- customtypes: readonly (string | ({
145
+ fields: readonly (string | {
138
146
  id: string;
139
- } & {
140
- fields?: readonly string[];
141
- }))[];
147
+ customtypes: readonly (string | {
148
+ id: string;
149
+ fields: readonly (string | {
150
+ id: string;
151
+ fields: readonly string[];
152
+ })[];
153
+ })[];
154
+ })[];
142
155
  })[];
143
- }))[], readonly (string | ({
156
+ })[], readonly (string | {
144
157
  id: string;
145
- } & {
146
- fields?: readonly (string | {
158
+ fields: readonly (string | {
159
+ id: string;
160
+ customtypes: readonly (string | {
161
+ id: string;
162
+ fields: readonly (string | {
163
+ id: string;
164
+ fields: readonly string[];
165
+ })[];
166
+ })[];
167
+ } | {
147
168
  id: string;
148
- customtypes: readonly (string | ({
169
+ fields: readonly (string | {
149
170
  id: string;
150
- } & {
151
- fields?: readonly string[];
152
- }))[];
171
+ customtypes: readonly (string | {
172
+ id: string;
173
+ fields: readonly (string | {
174
+ id: string;
175
+ fields: readonly string[];
176
+ })[];
177
+ })[];
178
+ })[];
153
179
  })[];
154
- }))[], unknown>;
180
+ })[], unknown>;
155
181
  masks: t.Type<readonly string[], object, unknown>;
156
182
  tags: t.Type<readonly string[], object, unknown>;
157
183
  allowTargetBlank: t.BooleanC;
@@ -325,29 +351,55 @@ export declare const SlicePrimaryWidget: t.UnionC<[t.UnionC<[t.ExactC<t.Intersec
325
351
  useAsTitle: t.BooleanC;
326
352
  placeholder: t.StringC;
327
353
  select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
328
- customtypes: t.Type<readonly (string | ({
354
+ customtypes: t.Type<readonly (string | {
329
355
  id: string;
330
- } & {
331
- fields?: readonly (string | {
356
+ fields: readonly (string | {
332
357
  id: string;
333
- customtypes: readonly (string | ({
358
+ customtypes: readonly (string | {
334
359
  id: string;
335
- } & {
336
- fields?: readonly string[];
337
- }))[];
360
+ fields: readonly (string | {
361
+ id: string;
362
+ fields: readonly string[];
363
+ })[];
364
+ })[];
365
+ } | {
366
+ id: string;
367
+ fields: readonly (string | {
368
+ id: string;
369
+ customtypes: readonly (string | {
370
+ id: string;
371
+ fields: readonly (string | {
372
+ id: string;
373
+ fields: readonly string[];
374
+ })[];
375
+ })[];
376
+ })[];
338
377
  })[];
339
- }))[], readonly (string | ({
378
+ })[], readonly (string | {
340
379
  id: string;
341
- } & {
342
- fields?: readonly (string | {
380
+ fields: readonly (string | {
343
381
  id: string;
344
- customtypes: readonly (string | ({
382
+ customtypes: readonly (string | {
345
383
  id: string;
346
- } & {
347
- fields?: readonly string[];
348
- }))[];
384
+ fields: readonly (string | {
385
+ id: string;
386
+ fields: readonly string[];
387
+ })[];
388
+ })[];
389
+ } | {
390
+ id: string;
391
+ fields: readonly (string | {
392
+ id: string;
393
+ customtypes: readonly (string | {
394
+ id: string;
395
+ fields: readonly (string | {
396
+ id: string;
397
+ fields: readonly string[];
398
+ })[];
399
+ })[];
400
+ })[];
349
401
  })[];
350
- }))[], unknown>;
402
+ })[], unknown>;
351
403
  masks: t.Type<readonly string[], object, unknown>;
352
404
  tags: t.Type<readonly string[], object, unknown>;
353
405
  allowTargetBlank: t.BooleanC;
@@ -521,29 +573,55 @@ export declare const SlicePrimaryWidget: t.UnionC<[t.UnionC<[t.ExactC<t.Intersec
521
573
  useAsTitle: t.BooleanC;
522
574
  placeholder: t.StringC;
523
575
  select: t.UnionC<[t.LiteralC<"media">, t.LiteralC<"document">, t.LiteralC<"web">, t.NullC]>;
524
- customtypes: t.Type<readonly (string | ({
576
+ customtypes: t.Type<readonly (string | {
525
577
  id: string;
526
- } & {
527
- fields?: readonly (string | {
578
+ fields: readonly (string | {
528
579
  id: string;
529
- customtypes: readonly (string | ({
580
+ customtypes: readonly (string | {
530
581
  id: string;
531
- } & {
532
- fields?: readonly string[];
533
- }))[];
582
+ fields: readonly (string | {
583
+ id: string;
584
+ fields: readonly string[];
585
+ })[];
586
+ })[];
587
+ } | {
588
+ id: string;
589
+ fields: readonly (string | {
590
+ id: string;
591
+ customtypes: readonly (string | {
592
+ id: string;
593
+ fields: readonly (string | {
594
+ id: string;
595
+ fields: readonly string[];
596
+ })[];
597
+ })[];
598
+ })[];
534
599
  })[];
535
- }))[], readonly (string | ({
600
+ })[], readonly (string | {
536
601
  id: string;
537
- } & {
538
- fields?: readonly (string | {
602
+ fields: readonly (string | {
539
603
  id: string;
540
- customtypes: readonly (string | ({
604
+ customtypes: readonly (string | {
541
605
  id: string;
542
- } & {
543
- fields?: readonly string[];
544
- }))[];
606
+ fields: readonly (string | {
607
+ id: string;
608
+ fields: readonly string[];
609
+ })[];
610
+ })[];
611
+ } | {
612
+ id: string;
613
+ fields: readonly (string | {
614
+ id: string;
615
+ customtypes: readonly (string | {
616
+ id: string;
617
+ fields: readonly (string | {
618
+ id: string;
619
+ fields: readonly string[];
620
+ })[];
621
+ })[];
622
+ })[];
545
623
  })[];
546
- }))[], unknown>;
624
+ })[], unknown>;
547
625
  masks: t.Type<readonly string[], object, unknown>;
548
626
  tags: t.Type<readonly string[], object, unknown>;
549
627
  allowTargetBlank: t.BooleanC;
@@ -663,18 +741,31 @@ export declare const isSlicePrimaryWidget: (u: unknown) => u is ({
663
741
  useAsTitle?: boolean;
664
742
  placeholder?: string;
665
743
  select?: "media" | "document" | "web" | null;
666
- customtypes?: readonly (string | ({
744
+ customtypes?: readonly (string | {
667
745
  id: string;
668
- } & {
669
- fields?: readonly (string | {
746
+ fields: readonly (string | {
747
+ id: string;
748
+ customtypes: readonly (string | {
749
+ id: string;
750
+ fields: readonly (string | {
751
+ id: string;
752
+ fields: readonly string[];
753
+ })[];
754
+ })[];
755
+ } | {
670
756
  id: string;
671
- customtypes: readonly (string | ({
757
+ fields: readonly (string | {
672
758
  id: string;
673
- } & {
674
- fields?: readonly string[];
675
- }))[];
759
+ customtypes: readonly (string | {
760
+ id: string;
761
+ fields: readonly (string | {
762
+ id: string;
763
+ fields: readonly string[];
764
+ })[];
765
+ })[];
766
+ })[];
676
767
  })[];
677
- }))[];
768
+ })[];
678
769
  masks?: readonly string[];
679
770
  tags?: readonly string[];
680
771
  allowTargetBlank?: boolean;
@@ -849,18 +940,31 @@ export declare const isSlicePrimaryWidget: (u: unknown) => u is ({
849
940
  useAsTitle?: boolean;
850
941
  placeholder?: string;
851
942
  select?: "media" | "document" | "web" | null;
852
- customtypes?: readonly (string | ({
943
+ customtypes?: readonly (string | {
853
944
  id: string;
854
- } & {
855
- fields?: readonly (string | {
945
+ fields: readonly (string | {
946
+ id: string;
947
+ customtypes: readonly (string | {
948
+ id: string;
949
+ fields: readonly (string | {
950
+ id: string;
951
+ fields: readonly string[];
952
+ })[];
953
+ })[];
954
+ } | {
856
955
  id: string;
857
- customtypes: readonly (string | ({
956
+ fields: readonly (string | {
858
957
  id: string;
859
- } & {
860
- fields?: readonly string[];
861
- }))[];
958
+ customtypes: readonly (string | {
959
+ id: string;
960
+ fields: readonly (string | {
961
+ id: string;
962
+ fields: readonly string[];
963
+ })[];
964
+ })[];
965
+ })[];
862
966
  })[];
863
- }))[];
967
+ })[];
864
968
  masks?: readonly string[];
865
969
  tags?: readonly string[];
866
970
  allowTargetBlank?: boolean;
@@ -1035,18 +1139,31 @@ export declare const isSlicePrimaryWidget: (u: unknown) => u is ({
1035
1139
  useAsTitle?: boolean;
1036
1140
  placeholder?: string;
1037
1141
  select?: "media" | "document" | "web" | null;
1038
- customtypes?: readonly (string | ({
1142
+ customtypes?: readonly (string | {
1039
1143
  id: string;
1040
- } & {
1041
- fields?: readonly (string | {
1144
+ fields: readonly (string | {
1042
1145
  id: string;
1043
- customtypes: readonly (string | ({
1146
+ customtypes: readonly (string | {
1044
1147
  id: string;
1045
- } & {
1046
- fields?: readonly string[];
1047
- }))[];
1148
+ fields: readonly (string | {
1149
+ id: string;
1150
+ fields: readonly string[];
1151
+ })[];
1152
+ })[];
1153
+ } | {
1154
+ id: string;
1155
+ fields: readonly (string | {
1156
+ id: string;
1157
+ customtypes: readonly (string | {
1158
+ id: string;
1159
+ fields: readonly (string | {
1160
+ id: string;
1161
+ fields: readonly string[];
1162
+ })[];
1163
+ })[];
1164
+ })[];
1048
1165
  })[];
1049
- }))[];
1166
+ })[];
1050
1167
  masks?: readonly string[];
1051
1168
  tags?: readonly string[];
1052
1169
  allowTargetBlank?: boolean;