@nuxtjs/mdc 0.18.2 → 0.18.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 (39) hide show
  1. package/README.md +5 -3
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +2 -2
  4. package/dist/runtime/components/MDC.d.vue.ts +141 -0
  5. package/dist/runtime/components/MDC.vue.d.ts +9 -9
  6. package/dist/runtime/components/MDCCached.d.vue.ts +156 -0
  7. package/dist/runtime/components/MDCCached.vue.d.ts +9 -9
  8. package/dist/runtime/components/MDCRenderer.d.vue.ts +124 -0
  9. package/dist/runtime/components/MDCRenderer.vue.d.ts +7 -7
  10. package/dist/runtime/components/MDCSlot.d.vue.ts +57 -0
  11. package/dist/runtime/components/MDCSlot.vue.d.ts +3 -3
  12. package/dist/runtime/components/prose/ProseA.d.vue.ts +37 -0
  13. package/dist/runtime/components/prose/ProseBlockquote.d.vue.ts +13 -0
  14. package/dist/runtime/components/prose/ProseCode.d.vue.ts +13 -0
  15. package/dist/runtime/components/prose/ProseEm.d.vue.ts +13 -0
  16. package/dist/runtime/components/prose/ProseH1.d.vue.ts +18 -0
  17. package/dist/runtime/components/prose/ProseH2.d.vue.ts +18 -0
  18. package/dist/runtime/components/prose/ProseH3.d.vue.ts +18 -0
  19. package/dist/runtime/components/prose/ProseH4.d.vue.ts +18 -0
  20. package/dist/runtime/components/prose/ProseH5.d.vue.ts +18 -0
  21. package/dist/runtime/components/prose/ProseH6.d.vue.ts +18 -0
  22. package/dist/runtime/components/prose/ProseHr.d.vue.ts +3 -0
  23. package/dist/runtime/components/prose/ProseImg.d.vue.ts +42 -0
  24. package/dist/runtime/components/prose/ProseImg.vue.d.ts +4 -4
  25. package/dist/runtime/components/prose/ProseLi.d.vue.ts +13 -0
  26. package/dist/runtime/components/prose/ProseOl.d.vue.ts +13 -0
  27. package/dist/runtime/components/prose/ProseP.d.vue.ts +13 -0
  28. package/dist/runtime/components/prose/ProsePre.d.vue.ts +70 -0
  29. package/dist/runtime/components/prose/ProseScript.d.vue.ts +15 -0
  30. package/dist/runtime/components/prose/ProseStrong.d.vue.ts +13 -0
  31. package/dist/runtime/components/prose/ProseTable.d.vue.ts +13 -0
  32. package/dist/runtime/components/prose/ProseTbody.d.vue.ts +13 -0
  33. package/dist/runtime/components/prose/ProseTd.d.vue.ts +13 -0
  34. package/dist/runtime/components/prose/ProseTh.d.vue.ts +13 -0
  35. package/dist/runtime/components/prose/ProseThead.d.vue.ts +13 -0
  36. package/dist/runtime/components/prose/ProseTr.d.vue.ts +13 -0
  37. package/dist/runtime/components/prose/ProseUl.d.vue.ts +13 -0
  38. package/dist/runtime/stringify/mdc-remark.js +1 -1
  39. package/package.json +16 -16
package/README.md CHANGED
@@ -488,9 +488,11 @@ You can dive into this module online using StackBlitz:
488
488
 
489
489
  Or locally:
490
490
 
491
- 1. Clone this repository
492
- 2. Install dependencies using `pnpm install`
493
- 3. Start the development server using `pnpm dev`
491
+ - Clone this repository
492
+ - Install dependencies using `pnpm install`
493
+ - Prepare using pnpm `dev:prepare`
494
+ - Start the development server using `pnpm dev`
495
+ - Test using `pnpm test`
494
496
 
495
497
  ## License
496
498
 
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxtjs/mdc",
3
3
  "configKey": "mdc",
4
- "version": "0.18.2",
4
+ "version": "0.18.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -227,7 +227,7 @@ const DefaultHighlightLangs = [
227
227
  "mdc",
228
228
  "yaml"
229
229
  ];
230
- const module = defineNuxtModule({
230
+ const module$1 = defineNuxtModule({
231
231
  meta: {
232
232
  name: "@nuxtjs/mdc",
233
233
  configKey: "mdc"
@@ -430,4 +430,4 @@ function resolveOptions(options) {
430
430
  }
431
431
  }
432
432
 
433
- export { DefaultHighlightLangs, module as default };
433
+ export { DefaultHighlightLangs, module$1 as default };
@@ -0,0 +1,141 @@
1
+ import type { PropType } from 'vue';
2
+ import type { MDCParseOptions } from '@nuxtjs/mdc';
3
+ declare var __VLS_1: {
4
+ data: any;
5
+ body: any;
6
+ toc: any;
7
+ excerpt: any;
8
+ error: import("nuxt/app").NuxtError<unknown> | undefined;
9
+ };
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_1) => any;
12
+ };
13
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
14
+ tag: {
15
+ type: (BooleanConstructor | StringConstructor)[];
16
+ default: string;
17
+ };
18
+ /**
19
+ * Raw markdown string or parsed markdown object from `parseMarkdown`
20
+ */
21
+ value: {
22
+ type: (ObjectConstructor | StringConstructor)[];
23
+ required: true;
24
+ };
25
+ /**
26
+ * Render only the excerpt
27
+ */
28
+ excerpt: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ /**
33
+ * Options for `parseMarkdown`
34
+ */
35
+ parserOptions: {
36
+ type: PropType<MDCParseOptions>;
37
+ default: () => {};
38
+ };
39
+ /**
40
+ * Class to be applied to the root element
41
+ */
42
+ class: {
43
+ type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
44
+ default: string;
45
+ };
46
+ /**
47
+ * Tags to unwrap separated by spaces
48
+ * Example: 'ul li'
49
+ */
50
+ unwrap: {
51
+ type: (BooleanConstructor | StringConstructor)[];
52
+ default: boolean;
53
+ };
54
+ /**
55
+ * Async Data Unique Key
56
+ * @default `hash(props.value)`
57
+ */
58
+ cacheKey: {
59
+ type: StringConstructor;
60
+ default: undefined;
61
+ };
62
+ /**
63
+ * Partial parsing (if partial is `true`, title and toc generation will not be generated)
64
+ */
65
+ partial: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
70
+ tag: {
71
+ type: (BooleanConstructor | StringConstructor)[];
72
+ default: string;
73
+ };
74
+ /**
75
+ * Raw markdown string or parsed markdown object from `parseMarkdown`
76
+ */
77
+ value: {
78
+ type: (ObjectConstructor | StringConstructor)[];
79
+ required: true;
80
+ };
81
+ /**
82
+ * Render only the excerpt
83
+ */
84
+ excerpt: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ /**
89
+ * Options for `parseMarkdown`
90
+ */
91
+ parserOptions: {
92
+ type: PropType<MDCParseOptions>;
93
+ default: () => {};
94
+ };
95
+ /**
96
+ * Class to be applied to the root element
97
+ */
98
+ class: {
99
+ type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
100
+ default: string;
101
+ };
102
+ /**
103
+ * Tags to unwrap separated by spaces
104
+ * Example: 'ul li'
105
+ */
106
+ unwrap: {
107
+ type: (BooleanConstructor | StringConstructor)[];
108
+ default: boolean;
109
+ };
110
+ /**
111
+ * Async Data Unique Key
112
+ * @default `hash(props.value)`
113
+ */
114
+ cacheKey: {
115
+ type: StringConstructor;
116
+ default: undefined;
117
+ };
118
+ /**
119
+ * Partial parsing (if partial is `true`, title and toc generation will not be generated)
120
+ */
121
+ partial: {
122
+ type: BooleanConstructor;
123
+ default: boolean;
124
+ };
125
+ }>> & Readonly<{}>, {
126
+ tag: string | boolean;
127
+ excerpt: boolean;
128
+ parserOptions: MDCParseOptions;
129
+ class: string | Record<string, any> | unknown[];
130
+ unwrap: string | boolean;
131
+ cacheKey: string;
132
+ partial: boolean;
133
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
134
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
135
+ declare const _default: typeof __VLS_export;
136
+ export default _default;
137
+ type __VLS_WithSlots<T, S> = T & {
138
+ new (): {
139
+ $slots: S;
140
+ };
141
+ };
@@ -12,14 +12,14 @@ type __VLS_Slots = {} & {
12
12
  };
13
13
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
14
14
  tag: {
15
- type: (StringConstructor | BooleanConstructor)[];
15
+ type: (BooleanConstructor | StringConstructor)[];
16
16
  default: string;
17
17
  };
18
18
  /**
19
19
  * Raw markdown string or parsed markdown object from `parseMarkdown`
20
20
  */
21
21
  value: {
22
- type: (StringConstructor | ObjectConstructor)[];
22
+ type: (ObjectConstructor | StringConstructor)[];
23
23
  required: true;
24
24
  };
25
25
  /**
@@ -40,7 +40,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
40
40
  * Class to be applied to the root element
41
41
  */
42
42
  class: {
43
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
43
+ type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
44
44
  default: string;
45
45
  };
46
46
  /**
@@ -48,7 +48,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
48
48
  * Example: 'ul li'
49
49
  */
50
50
  unwrap: {
51
- type: (StringConstructor | BooleanConstructor)[];
51
+ type: (BooleanConstructor | StringConstructor)[];
52
52
  default: boolean;
53
53
  };
54
54
  /**
@@ -68,14 +68,14 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
68
68
  };
69
69
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
70
70
  tag: {
71
- type: (StringConstructor | BooleanConstructor)[];
71
+ type: (BooleanConstructor | StringConstructor)[];
72
72
  default: string;
73
73
  };
74
74
  /**
75
75
  * Raw markdown string or parsed markdown object from `parseMarkdown`
76
76
  */
77
77
  value: {
78
- type: (StringConstructor | ObjectConstructor)[];
78
+ type: (ObjectConstructor | StringConstructor)[];
79
79
  required: true;
80
80
  };
81
81
  /**
@@ -96,7 +96,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
96
96
  * Class to be applied to the root element
97
97
  */
98
98
  class: {
99
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
99
+ type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
100
100
  default: string;
101
101
  };
102
102
  /**
@@ -104,7 +104,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
104
104
  * Example: 'ul li'
105
105
  */
106
106
  unwrap: {
107
- type: (StringConstructor | BooleanConstructor)[];
107
+ type: (BooleanConstructor | StringConstructor)[];
108
108
  default: boolean;
109
109
  };
110
110
  /**
@@ -126,7 +126,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
126
126
  tag: string | boolean;
127
127
  excerpt: boolean;
128
128
  parserOptions: MDCParseOptions;
129
- class: string | unknown[] | Record<string, any>;
129
+ class: string | Record<string, any> | unknown[];
130
130
  unwrap: string | boolean;
131
131
  cacheKey: string;
132
132
  partial: boolean;
@@ -0,0 +1,156 @@
1
+ import type { PropType, DefineComponent } from 'vue';
2
+ import type { MDCParseOptions } from '@nuxtjs/mdc';
3
+ declare var __VLS_1: {
4
+ data: any;
5
+ body: any;
6
+ toc: any;
7
+ excerpt: any;
8
+ error: import("nuxt/app").NuxtError<unknown> | undefined;
9
+ };
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_1) => any;
12
+ };
13
+ declare const __VLS_base: DefineComponent<import("vue").ExtractPropTypes<{
14
+ tag: {
15
+ type: (BooleanConstructor | StringConstructor)[];
16
+ default: string;
17
+ };
18
+ /**
19
+ * Raw markdown string or parsed markdown object from `parseMarkdown`
20
+ */
21
+ value: {
22
+ type: (ObjectConstructor | StringConstructor)[];
23
+ required: true;
24
+ };
25
+ /**
26
+ * Render only the excerpt
27
+ */
28
+ excerpt: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ /**
33
+ * Options for `parseMarkdown`
34
+ */
35
+ parserOptions: {
36
+ type: PropType<MDCParseOptions>;
37
+ default: () => {};
38
+ };
39
+ /**
40
+ * Class to be applied to the root element
41
+ */
42
+ class: {
43
+ type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
44
+ default: string;
45
+ };
46
+ /**
47
+ * Tags to unwrap separated by spaces
48
+ * Example: 'ul li'
49
+ */
50
+ unwrap: {
51
+ type: (BooleanConstructor | StringConstructor)[];
52
+ default: boolean;
53
+ };
54
+ /**
55
+ * Async Data Unique Key
56
+ * @default `hash(props.value)`
57
+ */
58
+ cacheKey: {
59
+ type: StringConstructor;
60
+ default: undefined;
61
+ };
62
+ /**
63
+ * Partial parsing (if partial is `true`, title and toc generation will not be generated)
64
+ */
65
+ partial: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ /**
70
+ * The map of custom components to use for rendering.
71
+ */
72
+ components: {
73
+ type: PropType<Record<string, string | DefineComponent<any, any, any>>>;
74
+ default: () => {};
75
+ };
76
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
77
+ tag: {
78
+ type: (BooleanConstructor | StringConstructor)[];
79
+ default: string;
80
+ };
81
+ /**
82
+ * Raw markdown string or parsed markdown object from `parseMarkdown`
83
+ */
84
+ value: {
85
+ type: (ObjectConstructor | StringConstructor)[];
86
+ required: true;
87
+ };
88
+ /**
89
+ * Render only the excerpt
90
+ */
91
+ excerpt: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
95
+ /**
96
+ * Options for `parseMarkdown`
97
+ */
98
+ parserOptions: {
99
+ type: PropType<MDCParseOptions>;
100
+ default: () => {};
101
+ };
102
+ /**
103
+ * Class to be applied to the root element
104
+ */
105
+ class: {
106
+ type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
107
+ default: string;
108
+ };
109
+ /**
110
+ * Tags to unwrap separated by spaces
111
+ * Example: 'ul li'
112
+ */
113
+ unwrap: {
114
+ type: (BooleanConstructor | StringConstructor)[];
115
+ default: boolean;
116
+ };
117
+ /**
118
+ * Async Data Unique Key
119
+ * @default `hash(props.value)`
120
+ */
121
+ cacheKey: {
122
+ type: StringConstructor;
123
+ default: undefined;
124
+ };
125
+ /**
126
+ * Partial parsing (if partial is `true`, title and toc generation will not be generated)
127
+ */
128
+ partial: {
129
+ type: BooleanConstructor;
130
+ default: boolean;
131
+ };
132
+ /**
133
+ * The map of custom components to use for rendering.
134
+ */
135
+ components: {
136
+ type: PropType<Record<string, string | DefineComponent<any, any, any>>>;
137
+ default: () => {};
138
+ };
139
+ }>> & Readonly<{}>, {
140
+ tag: string | boolean;
141
+ excerpt: boolean;
142
+ parserOptions: MDCParseOptions;
143
+ class: string | Record<string, any> | unknown[];
144
+ unwrap: string | boolean;
145
+ cacheKey: string;
146
+ partial: boolean;
147
+ components: Record<string, string | DefineComponent<any, any, any>>;
148
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
149
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
150
+ declare const _default: typeof __VLS_export;
151
+ export default _default;
152
+ type __VLS_WithSlots<T, S> = T & {
153
+ new (): {
154
+ $slots: S;
155
+ };
156
+ };
@@ -12,14 +12,14 @@ type __VLS_Slots = {} & {
12
12
  };
13
13
  declare const __VLS_base: DefineComponent<import("vue").ExtractPropTypes<{
14
14
  tag: {
15
- type: (StringConstructor | BooleanConstructor)[];
15
+ type: (BooleanConstructor | StringConstructor)[];
16
16
  default: string;
17
17
  };
18
18
  /**
19
19
  * Raw markdown string or parsed markdown object from `parseMarkdown`
20
20
  */
21
21
  value: {
22
- type: (StringConstructor | ObjectConstructor)[];
22
+ type: (ObjectConstructor | StringConstructor)[];
23
23
  required: true;
24
24
  };
25
25
  /**
@@ -40,7 +40,7 @@ declare const __VLS_base: DefineComponent<import("vue").ExtractPropTypes<{
40
40
  * Class to be applied to the root element
41
41
  */
42
42
  class: {
43
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
43
+ type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
44
44
  default: string;
45
45
  };
46
46
  /**
@@ -48,7 +48,7 @@ declare const __VLS_base: DefineComponent<import("vue").ExtractPropTypes<{
48
48
  * Example: 'ul li'
49
49
  */
50
50
  unwrap: {
51
- type: (StringConstructor | BooleanConstructor)[];
51
+ type: (BooleanConstructor | StringConstructor)[];
52
52
  default: boolean;
53
53
  };
54
54
  /**
@@ -75,14 +75,14 @@ declare const __VLS_base: DefineComponent<import("vue").ExtractPropTypes<{
75
75
  };
76
76
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
77
77
  tag: {
78
- type: (StringConstructor | BooleanConstructor)[];
78
+ type: (BooleanConstructor | StringConstructor)[];
79
79
  default: string;
80
80
  };
81
81
  /**
82
82
  * Raw markdown string or parsed markdown object from `parseMarkdown`
83
83
  */
84
84
  value: {
85
- type: (StringConstructor | ObjectConstructor)[];
85
+ type: (ObjectConstructor | StringConstructor)[];
86
86
  required: true;
87
87
  };
88
88
  /**
@@ -103,7 +103,7 @@ declare const __VLS_base: DefineComponent<import("vue").ExtractPropTypes<{
103
103
  * Class to be applied to the root element
104
104
  */
105
105
  class: {
106
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
106
+ type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
107
107
  default: string;
108
108
  };
109
109
  /**
@@ -111,7 +111,7 @@ declare const __VLS_base: DefineComponent<import("vue").ExtractPropTypes<{
111
111
  * Example: 'ul li'
112
112
  */
113
113
  unwrap: {
114
- type: (StringConstructor | BooleanConstructor)[];
114
+ type: (BooleanConstructor | StringConstructor)[];
115
115
  default: boolean;
116
116
  };
117
117
  /**
@@ -140,7 +140,7 @@ declare const __VLS_base: DefineComponent<import("vue").ExtractPropTypes<{
140
140
  tag: string | boolean;
141
141
  excerpt: boolean;
142
142
  parserOptions: MDCParseOptions;
143
- class: string | unknown[] | Record<string, any>;
143
+ class: string | Record<string, any> | unknown[];
144
144
  unwrap: string | boolean;
145
145
  cacheKey: string;
146
146
  partial: boolean;
@@ -0,0 +1,124 @@
1
+ import type { PropType, DefineComponent } from 'vue';
2
+ import type { MDCRoot } from '@nuxtjs/mdc';
3
+ declare const __VLS_export: DefineComponent<import("vue").ExtractPropTypes<{
4
+ /**
5
+ * Content to render
6
+ */
7
+ body: {
8
+ type: PropType<MDCRoot>;
9
+ required: true;
10
+ };
11
+ /**
12
+ * Document meta data
13
+ */
14
+ data: {
15
+ type: ObjectConstructor;
16
+ default: () => {};
17
+ };
18
+ /**
19
+ * Class(es) to bind to the component
20
+ */
21
+ class: {
22
+ type: (ObjectConstructor | StringConstructor)[];
23
+ default: undefined;
24
+ };
25
+ /**
26
+ * Root tag to use for rendering
27
+ */
28
+ tag: {
29
+ type: (BooleanConstructor | StringConstructor)[];
30
+ default: undefined;
31
+ };
32
+ /**
33
+ * Whether or not to render Prose components instead of HTML tags
34
+ */
35
+ prose: {
36
+ type: BooleanConstructor;
37
+ default: undefined;
38
+ };
39
+ /**
40
+ * The map of custom components to use for rendering.
41
+ */
42
+ components: {
43
+ type: PropType<Record<string, string | DefineComponent<any, any, any>>>;
44
+ default: () => {};
45
+ };
46
+ /**
47
+ * Tags to unwrap separated by spaces
48
+ * Example: 'ul li'
49
+ */
50
+ unwrap: {
51
+ type: (BooleanConstructor | StringConstructor)[];
52
+ default: boolean;
53
+ };
54
+ }>, {
55
+ tags: import("vue").ComputedRef<any>;
56
+ contentKey: import("vue").ComputedRef<string>;
57
+ route: any;
58
+ runtimeData: {
59
+ [x: string]: any;
60
+ };
61
+ updateRuntimeData: (code: string, value: any) => {
62
+ [x: string]: any;
63
+ };
64
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
65
+ /**
66
+ * Content to render
67
+ */
68
+ body: {
69
+ type: PropType<MDCRoot>;
70
+ required: true;
71
+ };
72
+ /**
73
+ * Document meta data
74
+ */
75
+ data: {
76
+ type: ObjectConstructor;
77
+ default: () => {};
78
+ };
79
+ /**
80
+ * Class(es) to bind to the component
81
+ */
82
+ class: {
83
+ type: (ObjectConstructor | StringConstructor)[];
84
+ default: undefined;
85
+ };
86
+ /**
87
+ * Root tag to use for rendering
88
+ */
89
+ tag: {
90
+ type: (BooleanConstructor | StringConstructor)[];
91
+ default: undefined;
92
+ };
93
+ /**
94
+ * Whether or not to render Prose components instead of HTML tags
95
+ */
96
+ prose: {
97
+ type: BooleanConstructor;
98
+ default: undefined;
99
+ };
100
+ /**
101
+ * The map of custom components to use for rendering.
102
+ */
103
+ components: {
104
+ type: PropType<Record<string, string | DefineComponent<any, any, any>>>;
105
+ default: () => {};
106
+ };
107
+ /**
108
+ * Tags to unwrap separated by spaces
109
+ * Example: 'ul li'
110
+ */
111
+ unwrap: {
112
+ type: (BooleanConstructor | StringConstructor)[];
113
+ default: boolean;
114
+ };
115
+ }>> & Readonly<{}>, {
116
+ data: Record<string, any>;
117
+ tag: string | boolean;
118
+ class: string | Record<string, any>;
119
+ unwrap: string | boolean;
120
+ components: Record<string, string | DefineComponent<any, any, any>>;
121
+ prose: boolean;
122
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
123
+ declare const _default: typeof __VLS_export;
124
+ export default _default;
@@ -19,14 +19,14 @@ declare const __VLS_export: DefineComponent<import("vue").ExtractPropTypes<{
19
19
  * Class(es) to bind to the component
20
20
  */
21
21
  class: {
22
- type: (StringConstructor | ObjectConstructor)[];
22
+ type: (ObjectConstructor | StringConstructor)[];
23
23
  default: undefined;
24
24
  };
25
25
  /**
26
26
  * Root tag to use for rendering
27
27
  */
28
28
  tag: {
29
- type: (StringConstructor | BooleanConstructor)[];
29
+ type: (BooleanConstructor | StringConstructor)[];
30
30
  default: undefined;
31
31
  };
32
32
  /**
@@ -48,7 +48,7 @@ declare const __VLS_export: DefineComponent<import("vue").ExtractPropTypes<{
48
48
  * Example: 'ul li'
49
49
  */
50
50
  unwrap: {
51
- type: (StringConstructor | BooleanConstructor)[];
51
+ type: (BooleanConstructor | StringConstructor)[];
52
52
  default: boolean;
53
53
  };
54
54
  }>, {
@@ -80,14 +80,14 @@ declare const __VLS_export: DefineComponent<import("vue").ExtractPropTypes<{
80
80
  * Class(es) to bind to the component
81
81
  */
82
82
  class: {
83
- type: (StringConstructor | ObjectConstructor)[];
83
+ type: (ObjectConstructor | StringConstructor)[];
84
84
  default: undefined;
85
85
  };
86
86
  /**
87
87
  * Root tag to use for rendering
88
88
  */
89
89
  tag: {
90
- type: (StringConstructor | BooleanConstructor)[];
90
+ type: (BooleanConstructor | StringConstructor)[];
91
91
  default: undefined;
92
92
  };
93
93
  /**
@@ -109,14 +109,14 @@ declare const __VLS_export: DefineComponent<import("vue").ExtractPropTypes<{
109
109
  * Example: 'ul li'
110
110
  */
111
111
  unwrap: {
112
- type: (StringConstructor | BooleanConstructor)[];
112
+ type: (BooleanConstructor | StringConstructor)[];
113
113
  default: boolean;
114
114
  };
115
115
  }>> & Readonly<{}>, {
116
+ data: Record<string, any>;
116
117
  tag: string | boolean;
117
118
  class: string | Record<string, any>;
118
119
  unwrap: string | boolean;
119
- data: Record<string, any>;
120
120
  components: Record<string, string | DefineComponent<any, any, any>>;
121
121
  prose: boolean;
122
122
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;