vue-codemirror6 0.1.0 → 0.3.0

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/README.md CHANGED
@@ -16,7 +16,6 @@ This component can handle bidirectional binding by `v-model` like a general Vue
16
16
 
17
17
  | Props | Type | Information |
18
18
  | ---------- | --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
19
- | value | string? | Initial text value. |
20
19
  | dark | boolean | Toggle Darkmode. If you use Vuetify, I recommend that you enter `$vuetify.theme.dark`. |
21
20
  | theme | { [selector: string]: StyleSpec } | Specify the theme. For example, if you use [@codemirror/theme-one-dark](https://github.com/codemirror/theme-one-dark), import `oneDark` and put it in this prop. |
22
21
  | readonly | boolean | Makes the cursor visible or you can drag the text but not edit the value. |
@@ -28,14 +27,7 @@ This component can handle bidirectional binding by `v-model` like a general Vue
28
27
 
29
28
  Notice: `lang` and `linter` can also be set together in `extensions`. This is defined for usability compatibility with past CodeMirrors.
30
29
 
31
- ### Events
32
-
33
- | name | Information |
34
- | ------ | ------------------------------------------------------------------------------------- |
35
- | input | When value changed. |
36
- | update | CodeMirror ViewUpdate event. see <https://codemirror.net/6/docs/ref/#view.ViewUpdate> |
37
-
38
- ### Support Languages
30
+ ### Supported Languages
39
31
 
40
32
  - [`@codemirror/lang-cpp`](https://www.npmjs.com/package/@codemirror/lang-cpp)
41
33
  - [`@codemirror/lang-html`](https://www.npmjs.com/package/@codemirror/lang-html)
@@ -65,18 +57,24 @@ Mark up as follows to make it work at a minimum.
65
57
  </template>
66
58
 
67
59
  <script>
68
- import Vue from 'vue';
60
+ import { ref, defineComponent } from 'vue';
69
61
 
70
62
  import CodeMirror from '@/components/CodeMirror.vue';
71
63
 
72
- export default Vue.extend({
64
+ export default defineComponent({
73
65
  components: {
74
66
  CodeMirror,
75
67
  },
76
- data() {
77
- return {
78
- value: 'The quick brown fox jumps over the lazy dog.',
79
- };
68
+ setup() {
69
+ const value = ref(
70
+ `# The quick brown fox jumps over the lazy dog.
71
+
72
+ [Lorem ipsum](https://www.lipsum.com/) dolor sit amet, **consectetur** adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
73
+ Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
74
+ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
75
+ Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`
76
+ );
77
+ return { value };
80
78
  },
81
79
  });
82
80
  </script>
@@ -84,7 +82,7 @@ export default Vue.extend({
84
82
 
85
83
  ### Example using Slots
86
84
 
87
- The contents of the slot will overwrite the existing `value`. For this reason, it is recommended to use it when simply displaying with a `readonly` prop without using `v-model` or `value`.
85
+ The contents of the slot will overwrite the existing `v-model`. For this reason, it is recommended to use it when simply displaying with a `readonly` prop without using `v-model`.
88
86
 
89
87
  Also, insert a `<pre>` tag to prevent the text in the slot from being automatically formatted.
90
88
 
@@ -100,18 +98,19 @@ Also, insert a `<pre>` tag to prevent the text in the slot from being automatica
100
98
  </template>
101
99
 
102
100
  <script>
103
- import { Component, Vue } from 'vue-property-decorator';
101
+ import { ref, defineComponent } from 'vue';
104
102
 
105
103
  import { json } from '@codemirror/lang-json';
106
104
 
107
- export default Vue.extend({
105
+ import CodeMirror from '@/components/CodeMirror.vue';
106
+
107
+ export default defineComponent({
108
108
  components: {
109
109
  CodeMirror,
110
110
  },
111
- data() {
112
- return {
113
- lang: json(),
114
- };
111
+ setup() {
112
+ const lang = ref(json());
113
+ return { lang };
115
114
  },
116
115
  });
117
116
  </script>
@@ -129,12 +128,11 @@ When using as a Markdown editor on [Vuetify](https://vuetifyjs.com/).
129
128
  :phrases="phreses"
130
129
  :extensions="extensions"
131
130
  :dark="$vuetify.theme.dark"
132
- @update="onCmUpdate"
133
131
  />
134
132
  </template>
135
133
 
136
134
  <script lang="ts">
137
- import { Component, Vue } from 'vue-property-decorator';
135
+ import { ref, type Ref, defineComponent } from 'vue';
138
136
 
139
137
  // Load component
140
138
  import CodeMirror from 'vue-codemirror6';
@@ -146,76 +144,76 @@ import { basicSetup } from '@codemirror/basic-setup';
146
144
  import type { Extension } from '@codemirror/state';
147
145
  import type { ViewUpdate } from '@codemirror/view';
148
146
 
149
- @Component({ components: { CodeMirror } })
150
- export default class Home extends Vue {
151
- /** text */
152
- value: string;
153
-
154
- /**
155
- * CodeMirror Language
156
- *
157
- * @see {@link https://codemirror.net/6/docs/ref/#language | @codemirror/language}
158
- */
159
- lang: LanguageSupport = markdown();
160
-
161
- /**
162
- * Internationalization Config.
163
- * In this example, the display language to Japanese.
164
- *
165
- * @see {@link https://codemirror.net/6/examples/translate/ | Example: Internationalization}
166
- */
167
- phrases: Record<string, string> = {
168
- // @codemirror/view
169
- 'Control character': '制御文字',
170
- // @codemirror/fold
171
- 'Folded lines': '折り畳まれた行',
172
- 'Unfolded lines': '折り畳める行',
173
- to: '行き先',
174
- 'folded code': '折り畳まれたコード',
175
- unfold: '折り畳む解除',
176
- 'Fold line': '行を折り畳む',
177
- 'Unfold line': '行の折り畳む解除',
178
- // @codemirror/search
179
- 'Go to line': '行き先の行',
180
- go: 'OK',
181
- Find: '検索',
182
- Replace: '置き換え',
183
- next: '▼',
184
- previous: '▲',
185
- all: 'すべて',
186
- 'match case': '一致条件',
187
- regexp: '正規表現',
188
- replace: '置き換え',
189
- 'replace all': 'すべてを置き換え',
190
- close: '閉じる',
191
- 'current match': '現在の一致',
192
- 'on line': 'した行',
193
- // @codemirror/lint
194
- Diagnostics: 'エラー',
195
- 'No diagnostics': 'エラーなし',
196
- };
197
-
198
- /**
199
- * CodeMirror Extensions
200
- *
201
- * @see {@link:https://codemirror.net/6/docs/ref/#state.Extension | Extending Editor State}
202
- */
203
- extensions: Extension[] = [
204
- /** @see {@link:https://codemirror.net/6/docs/ref/#basic-setup | basic-setup} */
205
- basicSetup,
206
- ];
207
-
208
- /**
209
- * CodeMirror Hook View update event
210
- *
211
- * @param update - View Update
212
- *
213
- * @see {@link https://codemirror.net/6/docs/ref/#view.ViewUpdate|class ViewUpdate}
214
- */
215
- onCmUpdate(update: ViewUpdate) {
216
- console.log(update);
217
- }
218
- }
147
+ export default defineComponent({
148
+ components: {
149
+ CodeMirror,
150
+ },
151
+ setup() {
152
+ /** text */
153
+ const value: Ref<string> = ref('');
154
+
155
+ /**
156
+ * CodeMirror Language
157
+ *
158
+ * @see {@link https://codemirror.net/6/docs/ref/#language | @codemirror/language}
159
+ */
160
+ const lang: Ref<LanguageSupport> = ref(markdown());
161
+
162
+ /**
163
+ * Internationalization Config.
164
+ * In this example, the display language to Japanese.
165
+ *
166
+ * @see {@link https://codemirror.net/6/examples/translate/ | Example: Internationalization}
167
+ */
168
+ const phrases: Ref<Record<string, string>> = ref({
169
+ // @codemirror/view
170
+ 'Control character': '制御文字',
171
+ // @codemirror/fold
172
+ 'Folded lines': '折り畳まれた行',
173
+ 'Unfolded lines': '折り畳める行',
174
+ to: '行き先',
175
+ 'folded code': '折り畳まれたコード',
176
+ unfold: '折り畳む解除',
177
+ 'Fold line': '行を折り畳む',
178
+ 'Unfold line': '行の折り畳む解除',
179
+ // @codemirror/search
180
+ 'Go to line': '行き先の行',
181
+ go: 'OK',
182
+ Find: '検索',
183
+ Replace: '置き換え',
184
+ next: '▼',
185
+ previous: '▲',
186
+ all: 'すべて',
187
+ 'match case': '一致条件',
188
+ regexp: '正規表現',
189
+ replace: '置き換え',
190
+ 'replace all': 'すべてを置き換え',
191
+ close: '閉じる',
192
+ 'current match': '現在の一致',
193
+ 'on line': 'した行',
194
+ // @codemirror/lint
195
+ Diagnostics: 'エラー',
196
+ 'No diagnostics': 'エラーなし',
197
+ });
198
+
199
+ /**
200
+ * CodeMirror Extensions
201
+ *
202
+ * @see {@link:https://codemirror.net/6/docs/ref/#state.Extension | Extending Editor State}
203
+ */
204
+ const extensions: Ref<Extension[]> = ref([
205
+ /** @see {@link:https://codemirror.net/6/docs/ref/#basic-setup | basic-setup} */
206
+ basicSetup,
207
+ ]);
208
+
209
+ return {
210
+ value,
211
+ lang,
212
+ phrases,
213
+ extensions,
214
+ };
215
+ },
216
+ });
219
217
  </script>
220
218
  ```
221
219
 
@@ -1,75 +1,176 @@
1
- import { Vue } from 'vue-property-decorator';
1
+ import { type Ref, type PropType, type SetupContext, EmitsOptions } from 'vue-demi';
2
2
  import { type Extension } from '@codemirror/state';
3
3
  import type { LanguageSupport } from '@codemirror/language';
4
4
  import type { Diagnostic } from '@codemirror/lint';
5
5
  import type { StyleSpec } from 'style-mod';
6
- /** CodeMirror Component */
7
- export default class CodeMirror extends Vue {
8
- /** Editor */
9
- private editor;
6
+ declare const _default: import("vue-demi").DefineComponent<{
7
+ /** Model value */
8
+ modelValue: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
10
12
  /**
11
13
  * Theme
12
14
  *
13
15
  * @see {@link https://codemirror.net/6/examples/styling/ | Example: Styling}
14
16
  */
15
- readonly theme: {
16
- [selector: string]: StyleSpec;
17
+ theme: {
18
+ type: PropType<{
19
+ [selector: string]: StyleSpec;
20
+ }>;
21
+ default: undefined;
17
22
  };
18
23
  /** Dark Mode */
19
- readonly dark: boolean;
24
+ dark: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
20
28
  /**
21
29
  * Readonly
22
30
  *
23
31
  * @see {@link https://codemirror.net/6/docs/ref/#state.EditorState%5EreadOnly | readOnly}
24
32
  */
25
- readonly readonly: boolean;
33
+ readonly: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
26
37
  /**
27
38
  * Editable
28
39
  *
29
40
  * @see {@link https://codemirror.net/6/docs/ref/#view.EditorView%5Eeditable | editable}
30
41
  */
31
- readonly editable: boolean;
42
+ editable: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ /**
47
+ * Additional Extension
48
+ *
49
+ * @see {@link https://codemirror.net/6/docs/ref/#state.Extension | Extending Editor State}
50
+ */
51
+ extensions: {
52
+ type: PropType<Extension[]>;
53
+ default: undefined;
54
+ };
32
55
  /**
33
56
  * Language Phreses
34
57
  *
35
58
  * @see {@link https://codemirror.net/6/examples/translate/ | Example: Internationalization}
36
59
  */
37
- readonly phrases: Record<string, string>;
60
+ phrases: {
61
+ type: PropType<Record<string, string>>;
62
+ default: undefined;
63
+ };
64
+ /**
65
+ * CodeMirror Language
66
+ *
67
+ * @see {@link https://codemirror.net/6/docs/ref/#language | @codemirror/language}
68
+ */
69
+ lang: {
70
+ type: PropType<LanguageSupport>;
71
+ default: undefined;
72
+ };
73
+ /**
74
+ * CodeMirror Linter
75
+ *
76
+ * @see {@link https://codemirror.net/6/docs/ref/#lint | @codemirror/lint}
77
+ */
78
+ linter: {
79
+ type: PropType<Diagnostic[]>;
80
+ default: undefined;
81
+ };
82
+ }, {
83
+ context: SetupContext<EmitsOptions>;
84
+ editor: Ref<Element | undefined>;
85
+ }, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, EmitsOptions, "update:modelValue" | "update", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
86
+ /** Model value */
87
+ modelValue: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ /**
92
+ * Theme
93
+ *
94
+ * @see {@link https://codemirror.net/6/examples/styling/ | Example: Styling}
95
+ */
96
+ theme: {
97
+ type: PropType<{
98
+ [selector: string]: StyleSpec;
99
+ }>;
100
+ default: undefined;
101
+ };
102
+ /** Dark Mode */
103
+ dark: {
104
+ type: BooleanConstructor;
105
+ default: boolean;
106
+ };
107
+ /**
108
+ * Readonly
109
+ *
110
+ * @see {@link https://codemirror.net/6/docs/ref/#state.EditorState%5EreadOnly | readOnly}
111
+ */
112
+ readonly: {
113
+ type: BooleanConstructor;
114
+ default: boolean;
115
+ };
116
+ /**
117
+ * Editable
118
+ *
119
+ * @see {@link https://codemirror.net/6/docs/ref/#view.EditorView%5Eeditable | editable}
120
+ */
121
+ editable: {
122
+ type: BooleanConstructor;
123
+ default: boolean;
124
+ };
38
125
  /**
39
126
  * Additional Extension
40
127
  *
41
128
  * @see {@link https://codemirror.net/6/docs/ref/#state.Extension | Extending Editor State}
42
129
  */
43
- readonly extensions: Extension[];
130
+ extensions: {
131
+ type: PropType<Extension[]>;
132
+ default: undefined;
133
+ };
134
+ /**
135
+ * Language Phreses
136
+ *
137
+ * @see {@link https://codemirror.net/6/examples/translate/ | Example: Internationalization}
138
+ */
139
+ phrases: {
140
+ type: PropType<Record<string, string>>;
141
+ default: undefined;
142
+ };
44
143
  /**
45
144
  * CodeMirror Language
46
145
  *
47
146
  * @see {@link https://codemirror.net/6/docs/ref/#language | @codemirror/language}
48
147
  */
49
- readonly lang: LanguageSupport;
148
+ lang: {
149
+ type: PropType<LanguageSupport>;
150
+ default: undefined;
151
+ };
50
152
  /**
51
153
  * CodeMirror Linter
52
154
  *
53
155
  * @see {@link https://codemirror.net/6/docs/ref/#lint | @codemirror/lint}
54
156
  */
55
- readonly linter: Diagnostic[];
56
- /** Input */
57
- readonly value: string;
58
- /**
59
- * Input value changed
60
- *
61
- * @see {@link https://codemirror.net/6/docs/migration/#making-changes | Making Changes}
62
- */
63
- onValueChanged(): void;
64
- /** Toggle Dark mode */
65
- onToggleDarkMode(): void;
66
- /** CodeMirror Extension */
67
- get extension(): Extension[];
68
- /** When loaded */
69
- mounted(): void;
70
- /** Destroy */
71
- beforeDestroy(): void;
72
- /** Vue node to plain text */
73
- private getChildrenTextContent;
74
- }
157
+ linter: {
158
+ type: PropType<Diagnostic[]>;
159
+ default: undefined;
160
+ };
161
+ }>>, {
162
+ modelValue: string;
163
+ theme: {
164
+ [selector: string]: StyleSpec;
165
+ };
166
+ dark: boolean;
167
+ readonly: boolean;
168
+ editable: boolean;
169
+ extensions: Extension[];
170
+ phrases: Record<string, string>;
171
+ lang: LanguageSupport;
172
+ linter: Diagnostic[];
173
+ }>;
174
+ /** CodeMirror Component */
175
+ export default _default;
75
176
  //# sourceMappingURL=CodeMirror.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CodeMirror.vue.d.ts","sourceRoot":"","sources":["../../src/components/CodeMirror.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,GAAG,EAAS,MAAM,wBAAwB,CAAC;AAGrE,OAAO,EAEL,KAAK,SAAS,EAEf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAK3C,2BAA2B;AAC3B,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,GAAG;IACzC,aAAa;IACb,OAAO,CAAC,MAAM,CAAc;IAE5B;;;;OAIG;IAEH,QAAQ,CAAC,KAAK,EAAG;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IAEnD,gBAAgB;IAEhB,QAAQ,CAAC,IAAI,EAAG,OAAO,CAAC;IAExB;;;;OAIG;IAEH,QAAQ,CAAC,QAAQ,EAAG,OAAO,CAAC;IAE5B;;;;OAIG;IAEH,QAAQ,CAAC,QAAQ,EAAG,OAAO,CAAC;IAE5B;;;;OAIG;IAEH,QAAQ,CAAC,OAAO,EAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE1C;;;;OAIG;IAEH,QAAQ,CAAC,UAAU,EAAG,SAAS,EAAE,CAAC;IAElC;;;;OAIG;IAEH,QAAQ,CAAC,IAAI,EAAG,eAAe,CAAC;IAEhC;;;;OAIG;IAEH,QAAQ,CAAC,MAAM,EAAG,UAAU,EAAE,CAAC;IAE/B,YAAY;IAEZ,QAAQ,CAAC,KAAK,EAAG,MAAM,CAAC;IAExB;;;;OAIG;IAEH,cAAc;IAgBd,uBAAuB;IAEvB,gBAAgB;IAShB,2BAA2B;IAC3B,IAAI,SAAS,IAAI,SAAS,EAAE,CAgC3B;IAED,kBAAkB;IAClB,OAAO;IAyBP,cAAc;IACd,aAAa;IAIb,6BAA6B;IAC7B,OAAO,CAAC,sBAAsB;CAS/B"}
1
+ {"version":3,"file":"CodeMirror.vue.d.ts","sourceRoot":"","sources":["../../src/components/CodeMirror.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,GAAG,EAER,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,YAAY,EACb,MAAM,UAAU,CAAC;AAKlB,OAAO,EAEL,KAAK,SAAS,EAEf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;;IAcvC,kBAAkB;;;;;IAKlB;;;;OAIG;;;;;;;IAKH,gBAAgB;;;;;IAKhB;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;;;;;IApEH,kBAAkB;;;;;IAKlB;;;;OAIG;;;;;;;IAKH,gBAAgB;;;;;IAKhB;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;;;;;;;;;;;;;;AA/EP,2BAA2B;AAC3B,wBA+MG"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,107 @@
1
+ /**
2
+ * Vue CodeMirror6 Component
3
+ *
4
+ * @license MIT
5
+ * @author Logue {@link logue@hotmail.co.jp}
6
+ * @copyright 2022 Masashi Yoshikawa {@link https://logue.dev/} All rights reserved.
7
+ * @see {@link https://github.com/logue/vue-codemirror6}
8
+ */
1
9
  import * as namedExports from './index.esm';
2
- declare const _default: typeof import("./components/CodeMirror.vue").default & import("vue").PluginObject<any> & typeof namedExports;
10
+ declare const _default: (import("vue").DefineComponent<{
11
+ modelValue: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ theme: {
16
+ type: import("vue").PropType<{
17
+ [selector: string]: import("style-mod").StyleSpec;
18
+ }>;
19
+ default: undefined;
20
+ };
21
+ dark: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ readonly: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ editable: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ extensions: {
34
+ type: import("vue").PropType<import("@codemirror/state").Extension[]>;
35
+ default: undefined;
36
+ };
37
+ phrases: {
38
+ type: import("vue").PropType<Record<string, string>>;
39
+ default: undefined;
40
+ };
41
+ lang: {
42
+ type: import("vue").PropType<import("@codemirror/language").LanguageSupport>;
43
+ default: undefined;
44
+ };
45
+ linter: {
46
+ type: import("vue").PropType<import("@codemirror/lint").Diagnostic[]>;
47
+ default: undefined;
48
+ };
49
+ }, {
50
+ context: import("vue").SetupContext<import("vue").EmitsOptions>;
51
+ editor: import("vue").Ref<Element | undefined>;
52
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "update:modelValue" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
53
+ modelValue: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ theme: {
58
+ type: import("vue").PropType<{
59
+ [selector: string]: import("style-mod").StyleSpec;
60
+ }>;
61
+ default: undefined;
62
+ };
63
+ dark: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ readonly: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ editable: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ extensions: {
76
+ type: import("vue").PropType<import("@codemirror/state").Extension[]>;
77
+ default: undefined;
78
+ };
79
+ phrases: {
80
+ type: import("vue").PropType<Record<string, string>>;
81
+ default: undefined;
82
+ };
83
+ lang: {
84
+ type: import("vue").PropType<import("@codemirror/language").LanguageSupport>;
85
+ default: undefined;
86
+ };
87
+ linter: {
88
+ type: import("vue").PropType<import("@codemirror/lint").Diagnostic[]>;
89
+ default: undefined;
90
+ };
91
+ }>>, {
92
+ modelValue: string;
93
+ theme: {
94
+ [selector: string]: import("style-mod").StyleSpec;
95
+ };
96
+ dark: boolean;
97
+ readonly: boolean;
98
+ editable: boolean;
99
+ extensions: import("@codemirror/state").Extension[];
100
+ phrases: Record<string, string>;
101
+ lang: import("@codemirror/language").LanguageSupport;
102
+ linter: import("@codemirror/lint").Diagnostic[];
103
+ }> | {
104
+ install: (app: any) => void;
105
+ }) & typeof namedExports;
3
106
  export default _default;
4
107
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAkB,KAAK,YAAY,MAAM,aAAa,CAAC;;AASvD,wBAC0C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAkB,KAAK,YAAY,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASvD,wBAC0C"}