@prismicio/types-internal 2.2.0-traverse.alpha-8 → 2.2.0-traverse.alpha-9
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 +96 -32
- package/lib/content/fields/GroupContent.d.ts +21 -7
- package/lib/content/fields/WidgetContent.d.ts +96 -32
- package/lib/content/fields/nestable/NestableContent.d.ts +12 -4
- package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +30 -12
- package/lib/content/fields/nestable/RichTextContent/Blocks.js +11 -2
- package/lib/content/fields/nestable/RichTextContent/index.d.ts +15 -5
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +24 -8
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +9 -3
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +24 -8
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +24 -8
- package/lib/content/fields/slices/Slice/index.d.ts +54 -18
- package/lib/content/fields/slices/SliceItem.d.ts +54 -18
- package/lib/content/fields/slices/SlicesContent.d.ts +72 -24
- package/package.json +1 -1
- package/src/content/fields/nestable/RichTextContent/Blocks.ts +15 -3
|
@@ -327,7 +327,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
327
327
|
preview?: {
|
|
328
328
|
title?: string;
|
|
329
329
|
} | null | undefined;
|
|
330
|
-
})
|
|
330
|
+
}) | {
|
|
331
|
+
label: string;
|
|
332
|
+
};
|
|
331
333
|
} & {
|
|
332
334
|
start: number;
|
|
333
335
|
end: number;
|
|
@@ -371,7 +373,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
371
373
|
preview?: {
|
|
372
374
|
title?: string;
|
|
373
375
|
} | null | undefined;
|
|
374
|
-
})
|
|
376
|
+
}) | {
|
|
377
|
+
label: string;
|
|
378
|
+
};
|
|
375
379
|
} & {
|
|
376
380
|
start: number;
|
|
377
381
|
end: number;
|
|
@@ -705,7 +709,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
705
709
|
preview?: {
|
|
706
710
|
title?: string;
|
|
707
711
|
} | null | undefined;
|
|
708
|
-
})
|
|
712
|
+
}) | {
|
|
713
|
+
label: string;
|
|
714
|
+
};
|
|
709
715
|
} & {
|
|
710
716
|
start: number;
|
|
711
717
|
end: number;
|
|
@@ -749,7 +755,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
749
755
|
preview?: {
|
|
750
756
|
title?: string;
|
|
751
757
|
} | null | undefined;
|
|
752
|
-
})
|
|
758
|
+
}) | {
|
|
759
|
+
label: string;
|
|
760
|
+
};
|
|
753
761
|
} & {
|
|
754
762
|
start: number;
|
|
755
763
|
end: number;
|
|
@@ -1092,7 +1100,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1092
1100
|
preview?: {
|
|
1093
1101
|
title?: string;
|
|
1094
1102
|
} | null | undefined;
|
|
1095
|
-
})
|
|
1103
|
+
}) | {
|
|
1104
|
+
label: string;
|
|
1105
|
+
};
|
|
1096
1106
|
} & {
|
|
1097
1107
|
start: number;
|
|
1098
1108
|
end: number;
|
|
@@ -1136,7 +1146,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1136
1146
|
preview?: {
|
|
1137
1147
|
title?: string;
|
|
1138
1148
|
} | null | undefined;
|
|
1139
|
-
})
|
|
1149
|
+
}) | {
|
|
1150
|
+
label: string;
|
|
1151
|
+
};
|
|
1140
1152
|
} & {
|
|
1141
1153
|
start: number;
|
|
1142
1154
|
end: number;
|
|
@@ -1471,7 +1483,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1471
1483
|
preview?: {
|
|
1472
1484
|
title?: string;
|
|
1473
1485
|
} | null | undefined;
|
|
1474
|
-
})
|
|
1486
|
+
}) | {
|
|
1487
|
+
label: string;
|
|
1488
|
+
};
|
|
1475
1489
|
} & {
|
|
1476
1490
|
start: number;
|
|
1477
1491
|
end: number;
|
|
@@ -1515,7 +1529,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1515
1529
|
preview?: {
|
|
1516
1530
|
title?: string;
|
|
1517
1531
|
} | null | undefined;
|
|
1518
|
-
})
|
|
1532
|
+
}) | {
|
|
1533
|
+
label: string;
|
|
1534
|
+
};
|
|
1519
1535
|
} & {
|
|
1520
1536
|
start: number;
|
|
1521
1537
|
end: number;
|
|
@@ -1852,7 +1868,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1852
1868
|
preview?: {
|
|
1853
1869
|
title?: string;
|
|
1854
1870
|
} | null | undefined;
|
|
1855
|
-
})
|
|
1871
|
+
}) | {
|
|
1872
|
+
label: string;
|
|
1873
|
+
};
|
|
1856
1874
|
} & {
|
|
1857
1875
|
start: number;
|
|
1858
1876
|
end: number;
|
|
@@ -1896,7 +1914,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1896
1914
|
preview?: {
|
|
1897
1915
|
title?: string;
|
|
1898
1916
|
} | null | undefined;
|
|
1899
|
-
})
|
|
1917
|
+
}) | {
|
|
1918
|
+
label: string;
|
|
1919
|
+
};
|
|
1900
1920
|
} & {
|
|
1901
1921
|
start: number;
|
|
1902
1922
|
end: number;
|
|
@@ -2231,7 +2251,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2231
2251
|
preview?: {
|
|
2232
2252
|
title?: string;
|
|
2233
2253
|
} | null | undefined;
|
|
2234
|
-
})
|
|
2254
|
+
}) | {
|
|
2255
|
+
label: string;
|
|
2256
|
+
};
|
|
2235
2257
|
} & {
|
|
2236
2258
|
start: number;
|
|
2237
2259
|
end: number;
|
|
@@ -2275,7 +2297,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2275
2297
|
preview?: {
|
|
2276
2298
|
title?: string;
|
|
2277
2299
|
} | null | undefined;
|
|
2278
|
-
})
|
|
2300
|
+
}) | {
|
|
2301
|
+
label: string;
|
|
2302
|
+
};
|
|
2279
2303
|
} & {
|
|
2280
2304
|
start: number;
|
|
2281
2305
|
end: number;
|
|
@@ -2609,7 +2633,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2609
2633
|
preview?: {
|
|
2610
2634
|
title?: string;
|
|
2611
2635
|
} | null | undefined;
|
|
2612
|
-
})
|
|
2636
|
+
}) | {
|
|
2637
|
+
label: string;
|
|
2638
|
+
};
|
|
2613
2639
|
} & {
|
|
2614
2640
|
start: number;
|
|
2615
2641
|
end: number;
|
|
@@ -2653,7 +2679,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2653
2679
|
preview?: {
|
|
2654
2680
|
title?: string;
|
|
2655
2681
|
} | null | undefined;
|
|
2656
|
-
})
|
|
2682
|
+
}) | {
|
|
2683
|
+
label: string;
|
|
2684
|
+
};
|
|
2657
2685
|
} & {
|
|
2658
2686
|
start: number;
|
|
2659
2687
|
end: number;
|
|
@@ -2989,7 +3017,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2989
3017
|
preview?: {
|
|
2990
3018
|
title?: string;
|
|
2991
3019
|
} | null | undefined;
|
|
2992
|
-
})
|
|
3020
|
+
}) | {
|
|
3021
|
+
label: string;
|
|
3022
|
+
};
|
|
2993
3023
|
} & {
|
|
2994
3024
|
start: number;
|
|
2995
3025
|
end: number;
|
|
@@ -3033,7 +3063,9 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
3033
3063
|
preview?: {
|
|
3034
3064
|
title?: string;
|
|
3035
3065
|
} | null | undefined;
|
|
3036
|
-
})
|
|
3066
|
+
}) | {
|
|
3067
|
+
label: string;
|
|
3068
|
+
};
|
|
3037
3069
|
} & {
|
|
3038
3070
|
start: number;
|
|
3039
3071
|
end: number;
|
|
@@ -3360,7 +3392,9 @@ export declare const DocumentLegacy: {
|
|
|
3360
3392
|
preview?: {
|
|
3361
3393
|
title?: string;
|
|
3362
3394
|
} | null | undefined;
|
|
3363
|
-
})
|
|
3395
|
+
}) | {
|
|
3396
|
+
label: string;
|
|
3397
|
+
};
|
|
3364
3398
|
} & {
|
|
3365
3399
|
start: number;
|
|
3366
3400
|
end: number;
|
|
@@ -3668,7 +3702,9 @@ export declare const DocumentLegacy: {
|
|
|
3668
3702
|
preview?: {
|
|
3669
3703
|
title?: string;
|
|
3670
3704
|
} | null | undefined;
|
|
3671
|
-
})
|
|
3705
|
+
}) | {
|
|
3706
|
+
label: string;
|
|
3707
|
+
};
|
|
3672
3708
|
} & {
|
|
3673
3709
|
start: number;
|
|
3674
3710
|
end: number;
|
|
@@ -3983,7 +4019,9 @@ export declare const DocumentLegacy: {
|
|
|
3983
4019
|
preview?: {
|
|
3984
4020
|
title?: string;
|
|
3985
4021
|
} | null | undefined;
|
|
3986
|
-
})
|
|
4022
|
+
}) | {
|
|
4023
|
+
label: string;
|
|
4024
|
+
};
|
|
3987
4025
|
} & {
|
|
3988
4026
|
start: number;
|
|
3989
4027
|
end: number;
|
|
@@ -4291,7 +4329,9 @@ export declare const DocumentLegacy: {
|
|
|
4291
4329
|
preview?: {
|
|
4292
4330
|
title?: string;
|
|
4293
4331
|
} | null | undefined;
|
|
4294
|
-
})
|
|
4332
|
+
}) | {
|
|
4333
|
+
label: string;
|
|
4334
|
+
};
|
|
4295
4335
|
} & {
|
|
4296
4336
|
start: number;
|
|
4297
4337
|
end: number;
|
|
@@ -4600,7 +4640,9 @@ export declare const DocumentLegacy: {
|
|
|
4600
4640
|
preview?: {
|
|
4601
4641
|
title?: string;
|
|
4602
4642
|
} | null | undefined;
|
|
4603
|
-
})
|
|
4643
|
+
}) | {
|
|
4644
|
+
label: string;
|
|
4645
|
+
};
|
|
4604
4646
|
} & {
|
|
4605
4647
|
start: number;
|
|
4606
4648
|
end: number;
|
|
@@ -4908,7 +4950,9 @@ export declare const DocumentLegacy: {
|
|
|
4908
4950
|
preview?: {
|
|
4909
4951
|
title?: string;
|
|
4910
4952
|
} | null | undefined;
|
|
4911
|
-
})
|
|
4953
|
+
}) | {
|
|
4954
|
+
label: string;
|
|
4955
|
+
};
|
|
4912
4956
|
} & {
|
|
4913
4957
|
start: number;
|
|
4914
4958
|
end: number;
|
|
@@ -5218,7 +5262,9 @@ export declare const DocumentLegacy: {
|
|
|
5218
5262
|
preview?: {
|
|
5219
5263
|
title?: string;
|
|
5220
5264
|
} | null | undefined;
|
|
5221
|
-
})
|
|
5265
|
+
}) | {
|
|
5266
|
+
label: string;
|
|
5267
|
+
};
|
|
5222
5268
|
} & {
|
|
5223
5269
|
start: number;
|
|
5224
5270
|
end: number;
|
|
@@ -5526,7 +5572,9 @@ export declare const DocumentLegacy: {
|
|
|
5526
5572
|
preview?: {
|
|
5527
5573
|
title?: string;
|
|
5528
5574
|
} | null | undefined;
|
|
5529
|
-
})
|
|
5575
|
+
}) | {
|
|
5576
|
+
label: string;
|
|
5577
|
+
};
|
|
5530
5578
|
} & {
|
|
5531
5579
|
start: number;
|
|
5532
5580
|
end: number;
|
|
@@ -5864,7 +5912,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
|
|
|
5864
5912
|
preview?: {
|
|
5865
5913
|
title?: string;
|
|
5866
5914
|
} | null | undefined;
|
|
5867
|
-
})
|
|
5915
|
+
}) | {
|
|
5916
|
+
label: string;
|
|
5917
|
+
};
|
|
5868
5918
|
} & {
|
|
5869
5919
|
start: number;
|
|
5870
5920
|
end: number;
|
|
@@ -6172,7 +6222,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
|
|
|
6172
6222
|
preview?: {
|
|
6173
6223
|
title?: string;
|
|
6174
6224
|
} | null | undefined;
|
|
6175
|
-
})
|
|
6225
|
+
}) | {
|
|
6226
|
+
label: string;
|
|
6227
|
+
};
|
|
6176
6228
|
} & {
|
|
6177
6229
|
start: number;
|
|
6178
6230
|
end: number;
|
|
@@ -6487,7 +6539,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
|
|
|
6487
6539
|
preview?: {
|
|
6488
6540
|
title?: string;
|
|
6489
6541
|
} | null | undefined;
|
|
6490
|
-
})
|
|
6542
|
+
}) | {
|
|
6543
|
+
label: string;
|
|
6544
|
+
};
|
|
6491
6545
|
} & {
|
|
6492
6546
|
start: number;
|
|
6493
6547
|
end: number;
|
|
@@ -6795,7 +6849,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
|
|
|
6795
6849
|
preview?: {
|
|
6796
6850
|
title?: string;
|
|
6797
6851
|
} | null | undefined;
|
|
6798
|
-
})
|
|
6852
|
+
}) | {
|
|
6853
|
+
label: string;
|
|
6854
|
+
};
|
|
6799
6855
|
} & {
|
|
6800
6856
|
start: number;
|
|
6801
6857
|
end: number;
|
|
@@ -7104,7 +7160,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
|
|
|
7104
7160
|
preview?: {
|
|
7105
7161
|
title?: string;
|
|
7106
7162
|
} | null | undefined;
|
|
7107
|
-
})
|
|
7163
|
+
}) | {
|
|
7164
|
+
label: string;
|
|
7165
|
+
};
|
|
7108
7166
|
} & {
|
|
7109
7167
|
start: number;
|
|
7110
7168
|
end: number;
|
|
@@ -7412,7 +7470,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
|
|
|
7412
7470
|
preview?: {
|
|
7413
7471
|
title?: string;
|
|
7414
7472
|
} | null | undefined;
|
|
7415
|
-
})
|
|
7473
|
+
}) | {
|
|
7474
|
+
label: string;
|
|
7475
|
+
};
|
|
7416
7476
|
} & {
|
|
7417
7477
|
start: number;
|
|
7418
7478
|
end: number;
|
|
@@ -7722,7 +7782,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
|
|
|
7722
7782
|
preview?: {
|
|
7723
7783
|
title?: string;
|
|
7724
7784
|
} | null | undefined;
|
|
7725
|
-
})
|
|
7785
|
+
}) | {
|
|
7786
|
+
label: string;
|
|
7787
|
+
};
|
|
7726
7788
|
} & {
|
|
7727
7789
|
start: number;
|
|
7728
7790
|
end: number;
|
|
@@ -8030,7 +8092,9 @@ export declare function migrateDocument(document: Document, customType: StaticCu
|
|
|
8030
8092
|
preview?: {
|
|
8031
8093
|
title?: string;
|
|
8032
8094
|
} | null | undefined;
|
|
8033
|
-
})
|
|
8095
|
+
}) | {
|
|
8096
|
+
label: string;
|
|
8097
|
+
};
|
|
8034
8098
|
} & {
|
|
8035
8099
|
start: number;
|
|
8036
8100
|
end: number;
|
|
@@ -324,7 +324,9 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
|
|
|
324
324
|
preview?: {
|
|
325
325
|
title?: string;
|
|
326
326
|
} | null | undefined;
|
|
327
|
-
})
|
|
327
|
+
}) | {
|
|
328
|
+
label: string;
|
|
329
|
+
};
|
|
328
330
|
} & {
|
|
329
331
|
start: number;
|
|
330
332
|
end: number;
|
|
@@ -368,7 +370,9 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
|
|
|
368
370
|
preview?: {
|
|
369
371
|
title?: string;
|
|
370
372
|
} | null | undefined;
|
|
371
|
-
})
|
|
373
|
+
}) | {
|
|
374
|
+
label: string;
|
|
375
|
+
};
|
|
372
376
|
} & {
|
|
373
377
|
start: number;
|
|
374
378
|
end: number;
|
|
@@ -679,7 +683,9 @@ export declare const GroupItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
679
683
|
preview?: {
|
|
680
684
|
title?: string;
|
|
681
685
|
} | null | undefined;
|
|
682
|
-
})
|
|
686
|
+
}) | {
|
|
687
|
+
label: string;
|
|
688
|
+
};
|
|
683
689
|
} & {
|
|
684
690
|
start: number;
|
|
685
691
|
end: number;
|
|
@@ -992,7 +998,9 @@ export declare const GroupLegacy: (ctx: LegacyContentCtx) => t.Type<{
|
|
|
992
998
|
preview?: {
|
|
993
999
|
title?: string;
|
|
994
1000
|
} | null | undefined;
|
|
995
|
-
})
|
|
1001
|
+
}) | {
|
|
1002
|
+
label: string;
|
|
1003
|
+
};
|
|
996
1004
|
} & {
|
|
997
1005
|
start: number;
|
|
998
1006
|
end: number;
|
|
@@ -1304,7 +1312,9 @@ export declare const isGroupContent: (u: unknown) => u is {
|
|
|
1304
1312
|
preview?: {
|
|
1305
1313
|
title?: string;
|
|
1306
1314
|
} | null | undefined;
|
|
1307
|
-
})
|
|
1315
|
+
}) | {
|
|
1316
|
+
label: string;
|
|
1317
|
+
};
|
|
1308
1318
|
} & {
|
|
1309
1319
|
start: number;
|
|
1310
1320
|
end: number;
|
|
@@ -1643,7 +1653,9 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
|
|
|
1643
1653
|
preview?: {
|
|
1644
1654
|
title?: string;
|
|
1645
1655
|
} | null | undefined;
|
|
1646
|
-
})
|
|
1656
|
+
}) | {
|
|
1657
|
+
label: string;
|
|
1658
|
+
};
|
|
1647
1659
|
} & {
|
|
1648
1660
|
start: number;
|
|
1649
1661
|
end: number;
|
|
@@ -1687,7 +1699,9 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
|
|
|
1687
1699
|
preview?: {
|
|
1688
1700
|
title?: string;
|
|
1689
1701
|
} | null | undefined;
|
|
1690
|
-
})
|
|
1702
|
+
}) | {
|
|
1703
|
+
label: string;
|
|
1704
|
+
};
|
|
1691
1705
|
} & {
|
|
1692
1706
|
start: number;
|
|
1693
1707
|
end: number;
|