@nuxtjs/mdc 0.8.0 → 0.8.2

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 (45) hide show
  1. package/README.md +3 -3
  2. package/dist/config.d.mts +6 -5
  3. package/dist/config.d.ts +6 -5
  4. package/dist/config.mjs +7 -5
  5. package/dist/module.d.mts +502 -3
  6. package/dist/module.d.ts +502 -3
  7. package/dist/module.json +2 -2
  8. package/dist/module.mjs +5 -2
  9. package/dist/runtime/components/MDC.vue +1 -1
  10. package/dist/runtime/components/MDCRenderer.vue.d.ts +0 -1
  11. package/dist/runtime/components/prose/ProseH1.vue +1 -1
  12. package/dist/runtime/components/prose/ProseH2.vue +1 -1
  13. package/dist/runtime/components/prose/ProseH3.vue +1 -1
  14. package/dist/runtime/components/prose/ProseH4.vue +1 -1
  15. package/dist/runtime/components/prose/ProseH5.vue +1 -1
  16. package/dist/runtime/components/prose/ProseH6.vue +1 -1
  17. package/dist/runtime/highlighter/rehype-nuxt.d.ts +1 -1
  18. package/dist/runtime/highlighter/rehype.d.ts +1 -5
  19. package/dist/runtime/highlighter/shiki.d.ts +1 -2
  20. package/dist/runtime/parser/compiler.d.ts +1 -1
  21. package/dist/runtime/parser/index.d.ts +1 -1
  22. package/dist/runtime/parser/options.d.ts +1 -1
  23. package/dist/runtime/parser/toc.d.ts +1 -1
  24. package/dist/runtime/parser/utils/plugins.d.ts +1 -1
  25. package/dist/runtime/utils/ast.d.ts +1 -1
  26. package/dist/runtime/utils/node.d.ts +1 -1
  27. package/dist/types.d.mts +7 -82
  28. package/dist/types.d.ts +7 -82
  29. package/package.json +15 -13
  30. package/dist/runtime/highlighter/types.d.ts +0 -14
  31. package/dist/runtime/highlighter/types.js +0 -0
  32. package/dist/runtime/types/config.d.ts +0 -44
  33. package/dist/runtime/types/config.js +0 -0
  34. package/dist/runtime/types/hast.d.ts +0 -255
  35. package/dist/runtime/types/hast.js +0 -0
  36. package/dist/runtime/types/index.d.ts +0 -3
  37. package/dist/runtime/types/index.js +0 -3
  38. package/dist/runtime/types/parser.d.ts +0 -41
  39. package/dist/runtime/types/parser.js +0 -0
  40. package/dist/runtime/types/toc.d.ts +0 -12
  41. package/dist/runtime/types/toc.js +0 -0
  42. package/dist/runtime/types/tree.d.ts +0 -23
  43. package/dist/runtime/types/tree.js +0 -0
  44. package/dist/runtime/types/unist.d.ts +0 -107
  45. package/dist/runtime/types/unist.js +0 -0
@@ -1,23 +0,0 @@
1
- export type MDCText = {
2
- type: 'text';
3
- value: string;
4
- };
5
- export type MDCComment = {
6
- type: 'comment';
7
- value: string;
8
- };
9
- export type MDCElement = {
10
- type: 'element';
11
- tag: string;
12
- props: Record<string, any> | undefined;
13
- children: Array<MDCElement | MDCText | MDCComment>;
14
- };
15
- export type MDCNode = MDCElement | MDCText | MDCComment;
16
- export type MDCRoot = {
17
- type: 'root';
18
- children: Array<MDCNode>;
19
- };
20
- export interface MDCData extends Record<string, any> {
21
- title: string;
22
- description: string;
23
- }
File without changes
@@ -1,107 +0,0 @@
1
- /**
2
- * Info associated with nodes by the ecosystem.
3
- *
4
- * This space is guaranteed to never be specified by unist or specifications
5
- * implementing unist.
6
- * But you can use it in utilities and plugins to store data.
7
- *
8
- * This type can be augmented to register custom data.
9
- * For example:
10
- *
11
- * ```ts
12
- * declare module 'unist' {
13
- * interface Data {
14
- * // `someNode.data.myId` is typed as `number | undefined`
15
- * myId?: number | undefined
16
- * }
17
- * }
18
- * ```
19
- */
20
- export interface Data {
21
- }
22
- /**
23
- * One place in a source file.
24
- */
25
- export interface Point {
26
- /**
27
- * Line in a source file (1-indexed integer).
28
- */
29
- line: number;
30
- /**
31
- * Column in a source file (1-indexed integer).
32
- */
33
- column: number;
34
- /**
35
- * Character in a source file (0-indexed integer).
36
- */
37
- offset?: number | undefined;
38
- }
39
- /**
40
- * Position of a node in a source document.
41
- *
42
- * A position is a range between two points.
43
- */
44
- export interface Position {
45
- /**
46
- * Place of the first character of the parsed source region.
47
- */
48
- start: Point;
49
- /**
50
- * Place of the first character after the parsed source region.
51
- */
52
- end: Point;
53
- }
54
- /**
55
- * Abstract unist node that contains the smallest possible value.
56
- *
57
- * This interface is supposed to be extended.
58
- *
59
- * For example, in HTML, a `text` node is a leaf that contains text.
60
- */
61
- export interface Literal extends Node {
62
- /**
63
- * Plain value.
64
- */
65
- value: unknown;
66
- }
67
- /**
68
- * Abstract unist node.
69
- *
70
- * The syntactic unit in unist syntax trees are called nodes.
71
- *
72
- * This interface is supposed to be extended.
73
- * If you can use {@link Literal} or {@link Parent}, you should.
74
- * But for example in markdown, a `thematicBreak` (`***`), is neither literal
75
- * nor parent, but still a node.
76
- */
77
- export interface Node {
78
- /**
79
- * Node type.
80
- */
81
- type: string;
82
- /**
83
- * Info from the ecosystem.
84
- */
85
- data?: Data | undefined;
86
- /**
87
- * Position of a node in a source document.
88
- *
89
- * Nodes that are generated (not in the original source document) must not
90
- * have a position.
91
- */
92
- position?: Position | undefined;
93
- }
94
- /**
95
- * Abstract unist node that contains other nodes (*children*).
96
- *
97
- * This interface is supposed to be extended.
98
- *
99
- * For example, in XML, an element is a parent of different things, such as
100
- * comments, text, and further elements.
101
- */
102
- export interface Parent extends Node {
103
- /**
104
- * List of children.
105
- */
106
- children: Node[];
107
- }
File without changes