@prismicio/types-internal 2.2.0-traverse.alpha-9 → 2.2.0-traverse.alpha-11

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 (32) hide show
  1. package/lib/content/Document.d.ts +384 -192
  2. package/lib/content/fields/GroupContent.d.ts +84 -42
  3. package/lib/content/fields/WidgetContent.d.ts +384 -192
  4. package/lib/content/fields/nestable/NestableContent.d.ts +48 -24
  5. package/lib/content/fields/nestable/RichTextContent/Blocks.d.ts +117 -105
  6. package/lib/content/fields/nestable/RichTextContent/Blocks.js +23 -18
  7. package/lib/content/fields/nestable/RichTextContent/index.d.ts +60 -30
  8. package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +96 -48
  9. package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +36 -18
  10. package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +96 -48
  11. package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +96 -48
  12. package/lib/content/fields/slices/Slice/index.d.ts +216 -108
  13. package/lib/content/fields/slices/SliceItem.d.ts +216 -108
  14. package/lib/content/fields/slices/SlicesContent.d.ts +288 -144
  15. package/lib/import/converters/fields/nestable/RichText/textBlock.js +29 -16
  16. package/lib/import/validators/fields/nestable/ImportRichText/blocks/ImportTextBlock.d.ts +9 -1
  17. package/lib/import/validators/fields/nestable/ImportRichText/blocks/Span.d.ts +18 -4
  18. package/lib/import/validators/fields/nestable/ImportRichText/blocks/Span.js +9 -2
  19. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/LabelSpan.d.ts +12 -0
  20. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/LabelSpan.js +16 -0
  21. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/TextSpan.d.ts +0 -2
  22. package/lib/import/validators/fields/nestable/ImportRichText/blocks/spans/TextSpan.js +0 -2
  23. package/package.json +1 -1
  24. package/src/content/fields/nestable/RichTextContent/Blocks.ts +26 -25
  25. package/src/import/converters/fields/nestable/RichText/textBlock.ts +30 -16
  26. package/src/import/validators/fields/nestable/ImportRichText/blocks/Span.ts +9 -5
  27. package/src/import/validators/fields/nestable/ImportRichText/blocks/spans/LabelSpan.ts +19 -0
  28. package/src/import/validators/fields/nestable/ImportRichText/blocks/spans/TextSpan.ts +0 -2
  29. package/lib/import/converters/fields/nestable/GeooPoint.d.ts +0 -3
  30. package/lib/import/converters/fields/nestable/GeooPoint.js +0 -15
  31. package/lib/import/converters/fields/nestable/RichText.d.ts +0 -4
  32. package/lib/import/converters/fields/nestable/RichText.js +0 -55
@@ -286,7 +286,7 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
286
286
  text: t.StringC;
287
287
  }>, t.PartialC<{
288
288
  spans: t.Type<({
289
- data?: ({
289
+ data: ({
290
290
  __TYPE__: "ImageLink";
291
291
  } & {
292
292
  id: string;
@@ -324,15 +324,21 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
324
324
  preview?: {
325
325
  title?: string;
326
326
  } | null | undefined;
327
- }) | {
328
- label: string;
329
- };
330
- } & {
327
+ });
328
+ start: number;
329
+ end: number;
330
+ type: "hyperlink";
331
+ } | {
332
+ data: string;
333
+ start: number;
334
+ end: number;
335
+ type: "label";
336
+ } | {
331
337
  start: number;
332
338
  end: number;
333
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
339
+ type: "strong" | "em";
334
340
  })[], ({
335
- data?: ({
341
+ data: ({
336
342
  __TYPE__: "ImageLink";
337
343
  } & {
338
344
  id: string;
@@ -370,13 +376,19 @@ export declare const GroupItemContent: t.ExactC<t.TypeC<{
370
376
  preview?: {
371
377
  title?: string;
372
378
  } | null | undefined;
373
- }) | {
374
- label: string;
375
- };
376
- } & {
379
+ });
380
+ start: number;
381
+ end: number;
382
+ type: "hyperlink";
383
+ } | {
384
+ data: string;
377
385
  start: number;
378
386
  end: number;
379
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
387
+ type: "label";
388
+ } | {
389
+ start: number;
390
+ end: number;
391
+ type: "strong" | "em";
380
392
  })[], unknown>;
381
393
  }>]>;
382
394
  }>, t.PartialC<{
@@ -645,7 +657,7 @@ export declare const GroupItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
645
657
  text: string;
646
658
  } & {
647
659
  spans?: ({
648
- data?: ({
660
+ data: ({
649
661
  __TYPE__: "ImageLink";
650
662
  } & {
651
663
  id: string;
@@ -683,13 +695,19 @@ export declare const GroupItemLegacy: (ctx: LegacyContentCtx) => t.Type<{
683
695
  preview?: {
684
696
  title?: string;
685
697
  } | null | undefined;
686
- }) | {
687
- label: string;
688
- };
689
- } & {
698
+ });
690
699
  start: number;
691
700
  end: number;
692
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
701
+ type: "hyperlink";
702
+ } | {
703
+ data: string;
704
+ start: number;
705
+ end: number;
706
+ type: "label";
707
+ } | {
708
+ start: number;
709
+ end: number;
710
+ type: "strong" | "em";
693
711
  })[];
694
712
  };
695
713
  } & {
@@ -960,7 +978,7 @@ export declare const GroupLegacy: (ctx: LegacyContentCtx) => t.Type<{
960
978
  text: string;
961
979
  } & {
962
980
  spans?: ({
963
- data?: ({
981
+ data: ({
964
982
  __TYPE__: "ImageLink";
965
983
  } & {
966
984
  id: string;
@@ -998,13 +1016,19 @@ export declare const GroupLegacy: (ctx: LegacyContentCtx) => t.Type<{
998
1016
  preview?: {
999
1017
  title?: string;
1000
1018
  } | null | undefined;
1001
- }) | {
1002
- label: string;
1003
- };
1004
- } & {
1019
+ });
1005
1020
  start: number;
1006
1021
  end: number;
1007
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1022
+ type: "hyperlink";
1023
+ } | {
1024
+ data: string;
1025
+ start: number;
1026
+ end: number;
1027
+ type: "label";
1028
+ } | {
1029
+ start: number;
1030
+ end: number;
1031
+ type: "strong" | "em";
1008
1032
  })[];
1009
1033
  };
1010
1034
  } & {
@@ -1274,7 +1298,7 @@ export declare const isGroupContent: (u: unknown) => u is {
1274
1298
  text: string;
1275
1299
  } & {
1276
1300
  spans?: ({
1277
- data?: ({
1301
+ data: ({
1278
1302
  __TYPE__: "ImageLink";
1279
1303
  } & {
1280
1304
  id: string;
@@ -1312,13 +1336,19 @@ export declare const isGroupContent: (u: unknown) => u is {
1312
1336
  preview?: {
1313
1337
  title?: string;
1314
1338
  } | null | undefined;
1315
- }) | {
1316
- label: string;
1317
- };
1318
- } & {
1339
+ });
1319
1340
  start: number;
1320
1341
  end: number;
1321
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1342
+ type: "hyperlink";
1343
+ } | {
1344
+ data: string;
1345
+ start: number;
1346
+ end: number;
1347
+ type: "label";
1348
+ } | {
1349
+ start: number;
1350
+ end: number;
1351
+ type: "strong" | "em";
1322
1352
  })[];
1323
1353
  };
1324
1354
  } & {
@@ -1615,7 +1645,7 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
1615
1645
  text: t.StringC;
1616
1646
  }>, t.PartialC<{
1617
1647
  spans: t.Type<({
1618
- data?: ({
1648
+ data: ({
1619
1649
  __TYPE__: "ImageLink";
1620
1650
  } & {
1621
1651
  id: string;
@@ -1653,15 +1683,21 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
1653
1683
  preview?: {
1654
1684
  title?: string;
1655
1685
  } | null | undefined;
1656
- }) | {
1657
- label: string;
1658
- };
1659
- } & {
1686
+ });
1687
+ start: number;
1688
+ end: number;
1689
+ type: "hyperlink";
1690
+ } | {
1691
+ data: string;
1660
1692
  start: number;
1661
1693
  end: number;
1662
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1694
+ type: "label";
1695
+ } | {
1696
+ start: number;
1697
+ end: number;
1698
+ type: "strong" | "em";
1663
1699
  })[], ({
1664
- data?: ({
1700
+ data: ({
1665
1701
  __TYPE__: "ImageLink";
1666
1702
  } & {
1667
1703
  id: string;
@@ -1699,13 +1735,19 @@ export declare const GroupContent: t.ExactC<t.TypeC<{
1699
1735
  preview?: {
1700
1736
  title?: string;
1701
1737
  } | null | undefined;
1702
- }) | {
1703
- label: string;
1704
- };
1705
- } & {
1738
+ });
1739
+ start: number;
1740
+ end: number;
1741
+ type: "hyperlink";
1742
+ } | {
1743
+ data: string;
1744
+ start: number;
1745
+ end: number;
1746
+ type: "label";
1747
+ } | {
1706
1748
  start: number;
1707
1749
  end: number;
1708
- type: "image" | "label" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "embed" | "list-item" | "o-list-item" | "rtl";
1750
+ type: "strong" | "em";
1709
1751
  })[], unknown>;
1710
1752
  }>]>;
1711
1753
  }>, t.PartialC<{