vue-codemirror6 0.1.0 → 0.1.4
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 +91 -96
- package/dist/components/CodeMirror.vue.d.ts +102 -38
- package/dist/components/CodeMirror.vue.d.ts.map +1 -1
- package/dist/index.d.ts +13 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/interfaces/CodeMirrorEmitsInterface.d.ts +9 -0
- package/dist/interfaces/CodeMirrorEmitsInterface.d.ts.map +1 -0
- package/dist/vue-codemirror6.es.js +135 -127
- package/dist/vue-codemirror6.umd.js +8 -3
- package/package.json +43 -31
- package/src/components/CodeMirror.vue +221 -185
- package/dist/index.esm.d.ts +0 -6
- package/dist/index.esm.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -3,20 +3,22 @@
|
|
|
3
3
|
[](https://www.jsdelivr.com/package/npm/vue-codemirror6)
|
|
4
4
|
[](https://www.npmjs.com/package/vue-codemirror6)
|
|
5
5
|
[](https://uiwjs.github.io/npm-unpkg/#/pkg/vue-codemirror6/file/README.md)
|
|
6
|
-
[](https://www.npmjs.com/package
|
|
6
|
+
[](https://www.npmjs.com/package/vue-codemirror6)
|
|
7
7
|
[](https://gitpod.io/#https://github.com/logue/vue-codemirror6)
|
|
8
8
|
|
|
9
9
|
A component for using [CodeMirror6](https://codemirror.net/6/) with Vue. Unrelated to [surmon-china's vue-codemirror](https://github.com/surmon-china/vue-codemirror), it is for CodeMirror6.
|
|
10
10
|
|
|
11
|
+
If you are using Vue2, please use `0.1.x`. (The component itself supports both, but the script generated by vue-demi can only output one)
|
|
12
|
+
|
|
11
13
|
## Usage
|
|
12
14
|
|
|
13
15
|
This component can handle bidirectional binding by `v-model` like a general Vue component.
|
|
16
|
+
When using with Vue2, [@vue/composition-api](https://www.npmjs.com/package/@vue/composition-api) is required separately.
|
|
14
17
|
|
|
15
18
|
### Props
|
|
16
19
|
|
|
17
20
|
| Props | Type | Information |
|
|
18
21
|
| ---------- | --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
19
|
-
| value | string? | Initial text value. |
|
|
20
22
|
| dark | boolean | Toggle Darkmode. If you use Vuetify, I recommend that you enter `$vuetify.theme.dark`. |
|
|
21
23
|
| 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
24
|
| readonly | boolean | Makes the cursor visible or you can drag the text but not edit the value. |
|
|
@@ -28,14 +30,7 @@ This component can handle bidirectional binding by `v-model` like a general Vue
|
|
|
28
30
|
|
|
29
31
|
Notice: `lang` and `linter` can also be set together in `extensions`. This is defined for usability compatibility with past CodeMirrors.
|
|
30
32
|
|
|
31
|
-
###
|
|
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
|
|
33
|
+
### Supported Languages
|
|
39
34
|
|
|
40
35
|
- [`@codemirror/lang-cpp`](https://www.npmjs.com/package/@codemirror/lang-cpp)
|
|
41
36
|
- [`@codemirror/lang-html`](https://www.npmjs.com/package/@codemirror/lang-html)
|
|
@@ -65,18 +60,18 @@ Mark up as follows to make it work at a minimum.
|
|
|
65
60
|
</template>
|
|
66
61
|
|
|
67
62
|
<script>
|
|
68
|
-
import
|
|
63
|
+
import { ref, defineComponent } from 'vue';
|
|
69
64
|
|
|
70
|
-
import CodeMirror from '
|
|
65
|
+
import CodeMirror from 'vue-codemirror6';
|
|
71
66
|
|
|
72
|
-
export default
|
|
67
|
+
export default defineComponent({
|
|
73
68
|
components: {
|
|
74
69
|
CodeMirror,
|
|
75
70
|
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
};
|
|
71
|
+
setup() {
|
|
72
|
+
const value = ref('Cozy lummox gives smart squid who asks for job pen.');
|
|
73
|
+
|
|
74
|
+
return { value };
|
|
80
75
|
},
|
|
81
76
|
});
|
|
82
77
|
</script>
|
|
@@ -84,7 +79,7 @@ export default Vue.extend({
|
|
|
84
79
|
|
|
85
80
|
### Example using Slots
|
|
86
81
|
|
|
87
|
-
The contents of the slot will overwrite the existing `
|
|
82
|
+
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
83
|
|
|
89
84
|
Also, insert a `<pre>` tag to prevent the text in the slot from being automatically formatted.
|
|
90
85
|
|
|
@@ -100,18 +95,19 @@ Also, insert a `<pre>` tag to prevent the text in the slot from being automatica
|
|
|
100
95
|
</template>
|
|
101
96
|
|
|
102
97
|
<script>
|
|
103
|
-
import {
|
|
98
|
+
import { ref, defineComponent } from 'vue';
|
|
104
99
|
|
|
105
100
|
import { json } from '@codemirror/lang-json';
|
|
106
101
|
|
|
107
|
-
|
|
102
|
+
import CodeMirror from 'vue-codemirror6';
|
|
103
|
+
|
|
104
|
+
export default defineComponent({
|
|
108
105
|
components: {
|
|
109
106
|
CodeMirror,
|
|
110
107
|
},
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
};
|
|
108
|
+
setup() {
|
|
109
|
+
const lang = ref(json());
|
|
110
|
+
return { lang };
|
|
115
111
|
},
|
|
116
112
|
});
|
|
117
113
|
</script>
|
|
@@ -129,12 +125,11 @@ When using as a Markdown editor on [Vuetify](https://vuetifyjs.com/).
|
|
|
129
125
|
:phrases="phreses"
|
|
130
126
|
:extensions="extensions"
|
|
131
127
|
:dark="$vuetify.theme.dark"
|
|
132
|
-
@update="onCmUpdate"
|
|
133
128
|
/>
|
|
134
129
|
</template>
|
|
135
130
|
|
|
136
131
|
<script lang="ts">
|
|
137
|
-
import {
|
|
132
|
+
import { ref, type Ref, defineComponent } from 'vue';
|
|
138
133
|
|
|
139
134
|
// Load component
|
|
140
135
|
import CodeMirror from 'vue-codemirror6';
|
|
@@ -146,76 +141,76 @@ import { basicSetup } from '@codemirror/basic-setup';
|
|
|
146
141
|
import type { Extension } from '@codemirror/state';
|
|
147
142
|
import type { ViewUpdate } from '@codemirror/view';
|
|
148
143
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
}
|
|
144
|
+
export default defineComponent({
|
|
145
|
+
components: {
|
|
146
|
+
CodeMirror,
|
|
147
|
+
},
|
|
148
|
+
setup() {
|
|
149
|
+
/** text */
|
|
150
|
+
const value: Ref<string> = ref('');
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* CodeMirror Language
|
|
154
|
+
*
|
|
155
|
+
* @see {@link https://codemirror.net/6/docs/ref/#language | @codemirror/language}
|
|
156
|
+
*/
|
|
157
|
+
const lang: Ref<LanguageSupport> = ref(markdown());
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Internationalization Config.
|
|
161
|
+
* In this example, the display language to Japanese.
|
|
162
|
+
*
|
|
163
|
+
* @see {@link https://codemirror.net/6/examples/translate/ | Example: Internationalization}
|
|
164
|
+
*/
|
|
165
|
+
const phrases: Ref<Record<string, string>> = ref({
|
|
166
|
+
// @codemirror/view
|
|
167
|
+
'Control character': '制御文字',
|
|
168
|
+
// @codemirror/fold
|
|
169
|
+
'Folded lines': '折り畳まれた行',
|
|
170
|
+
'Unfolded lines': '折り畳める行',
|
|
171
|
+
to: '行き先',
|
|
172
|
+
'folded code': '折り畳まれたコード',
|
|
173
|
+
unfold: '折り畳む解除',
|
|
174
|
+
'Fold line': '行を折り畳む',
|
|
175
|
+
'Unfold line': '行の折り畳む解除',
|
|
176
|
+
// @codemirror/search
|
|
177
|
+
'Go to line': '行き先の行',
|
|
178
|
+
go: 'OK',
|
|
179
|
+
Find: '検索',
|
|
180
|
+
Replace: '置き換え',
|
|
181
|
+
next: '▼',
|
|
182
|
+
previous: '▲',
|
|
183
|
+
all: 'すべて',
|
|
184
|
+
'match case': '一致条件',
|
|
185
|
+
regexp: '正規表現',
|
|
186
|
+
replace: '置き換え',
|
|
187
|
+
'replace all': 'すべてを置き換え',
|
|
188
|
+
close: '閉じる',
|
|
189
|
+
'current match': '現在の一致',
|
|
190
|
+
'on line': 'した行',
|
|
191
|
+
// @codemirror/lint
|
|
192
|
+
Diagnostics: 'エラー',
|
|
193
|
+
'No diagnostics': 'エラーなし',
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* CodeMirror Extensions
|
|
198
|
+
*
|
|
199
|
+
* @see {@link:https://codemirror.net/6/docs/ref/#state.Extension | Extending Editor State}
|
|
200
|
+
*/
|
|
201
|
+
const extensions: Ref<Extension[]> = ref([
|
|
202
|
+
/** @see {@link:https://codemirror.net/6/docs/ref/#basic-setup | basic-setup} */
|
|
203
|
+
basicSetup,
|
|
204
|
+
]);
|
|
205
|
+
|
|
206
|
+
return {
|
|
207
|
+
value,
|
|
208
|
+
lang,
|
|
209
|
+
phrases,
|
|
210
|
+
extensions,
|
|
211
|
+
};
|
|
212
|
+
},
|
|
213
|
+
});
|
|
219
214
|
</script>
|
|
220
215
|
```
|
|
221
216
|
|
|
@@ -1,75 +1,139 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Ref, PropType, SetupContext } from 'vue-demi';
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
7
|
+
context: SetupContext<{}>;
|
|
8
|
+
editor: Ref<Element | undefined>;
|
|
9
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
10
|
+
/** Model value */
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
10
15
|
/**
|
|
11
16
|
* Theme
|
|
12
17
|
*
|
|
13
18
|
* @see {@link https://codemirror.net/6/examples/styling/ | Example: Styling}
|
|
14
19
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
theme: {
|
|
21
|
+
type: PropType<{
|
|
22
|
+
[selector: string]: StyleSpec;
|
|
23
|
+
}>;
|
|
24
|
+
default: undefined;
|
|
17
25
|
};
|
|
18
26
|
/** Dark Mode */
|
|
19
|
-
|
|
27
|
+
dark: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
20
31
|
/**
|
|
21
32
|
* Readonly
|
|
22
33
|
*
|
|
23
34
|
* @see {@link https://codemirror.net/6/docs/ref/#state.EditorState%5EreadOnly | readOnly}
|
|
24
35
|
*/
|
|
25
|
-
readonly
|
|
36
|
+
readonly: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
26
40
|
/**
|
|
27
41
|
* Editable
|
|
28
42
|
*
|
|
29
43
|
* @see {@link https://codemirror.net/6/docs/ref/#view.EditorView%5Eeditable | editable}
|
|
30
44
|
*/
|
|
31
|
-
|
|
45
|
+
editable: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
32
49
|
/**
|
|
33
|
-
*
|
|
50
|
+
* Additional Extension
|
|
34
51
|
*
|
|
35
|
-
* @see {@link https://codemirror.net/6/
|
|
52
|
+
* @see {@link https://codemirror.net/6/docs/ref/#state.Extension | Extending Editor State}
|
|
36
53
|
*/
|
|
37
|
-
|
|
54
|
+
extensions: {
|
|
55
|
+
type: PropType<Extension[]>;
|
|
56
|
+
default: undefined;
|
|
57
|
+
};
|
|
38
58
|
/**
|
|
39
|
-
*
|
|
59
|
+
* Language Phreses
|
|
40
60
|
*
|
|
41
|
-
* @see {@link https://codemirror.net/6/
|
|
61
|
+
* @see {@link https://codemirror.net/6/examples/translate/ | Example: Internationalization}
|
|
42
62
|
*/
|
|
43
|
-
|
|
63
|
+
phrases: {
|
|
64
|
+
type: PropType<Record<string, string>>;
|
|
65
|
+
default: undefined;
|
|
66
|
+
};
|
|
44
67
|
/**
|
|
45
68
|
* CodeMirror Language
|
|
46
69
|
*
|
|
47
70
|
* @see {@link https://codemirror.net/6/docs/ref/#language | @codemirror/language}
|
|
48
71
|
*/
|
|
49
|
-
|
|
72
|
+
lang: {
|
|
73
|
+
type: PropType<LanguageSupport>;
|
|
74
|
+
default: undefined;
|
|
75
|
+
};
|
|
50
76
|
/**
|
|
51
77
|
* CodeMirror Linter
|
|
52
78
|
*
|
|
53
79
|
* @see {@link https://codemirror.net/6/docs/ref/#lint | @codemirror/lint}
|
|
54
80
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
81
|
+
linter: {
|
|
82
|
+
type: PropType<Diagnostic[]>;
|
|
83
|
+
default: undefined;
|
|
84
|
+
};
|
|
85
|
+
}, {
|
|
86
|
+
modelValue: string;
|
|
87
|
+
theme: {
|
|
88
|
+
[selector: string]: StyleSpec;
|
|
89
|
+
};
|
|
90
|
+
dark: boolean;
|
|
91
|
+
readonly: boolean;
|
|
92
|
+
editable: boolean;
|
|
93
|
+
extensions: Extension[];
|
|
94
|
+
phrases: Record<string, string>;
|
|
95
|
+
lang: LanguageSupport;
|
|
96
|
+
linter: Diagnostic[];
|
|
97
|
+
} & {}> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
98
|
+
modelValue: string;
|
|
99
|
+
theme: {
|
|
100
|
+
[selector: string]: StyleSpec;
|
|
101
|
+
};
|
|
102
|
+
dark: boolean;
|
|
103
|
+
readonly: boolean;
|
|
104
|
+
editable: boolean;
|
|
105
|
+
extensions: Extension[];
|
|
106
|
+
phrases: Record<string, string>;
|
|
107
|
+
lang: LanguageSupport;
|
|
108
|
+
linter: Diagnostic[];
|
|
109
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
110
|
+
context: SetupContext<{}>;
|
|
111
|
+
editor: Ref<Element | undefined>;
|
|
112
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
113
|
+
modelValue: string;
|
|
114
|
+
theme: {
|
|
115
|
+
[selector: string]: StyleSpec;
|
|
116
|
+
};
|
|
117
|
+
dark: boolean;
|
|
118
|
+
readonly: boolean;
|
|
119
|
+
editable: boolean;
|
|
120
|
+
extensions: Extension[];
|
|
121
|
+
phrases: Record<string, string>;
|
|
122
|
+
lang: LanguageSupport;
|
|
123
|
+
linter: Diagnostic[];
|
|
124
|
+
} & {}, {
|
|
125
|
+
modelValue: string;
|
|
126
|
+
theme: {
|
|
127
|
+
[selector: string]: StyleSpec;
|
|
128
|
+
};
|
|
129
|
+
dark: boolean;
|
|
130
|
+
readonly: boolean;
|
|
131
|
+
editable: boolean;
|
|
132
|
+
extensions: Extension[];
|
|
133
|
+
phrases: Record<string, string>;
|
|
134
|
+
lang: LanguageSupport;
|
|
135
|
+
linter: Diagnostic[];
|
|
136
|
+
}, true>);
|
|
137
|
+
/** CodeMirror Component */
|
|
138
|
+
export default _default;
|
|
75
139
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"CodeMirror.vue.d.ts","sourceRoot":"","sources":["../../src/components/CodeMirror.vue.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAe,GAAG,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIzE,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;;;;;IAavC,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,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
*/
|
|
9
|
+
import CodeMirror from './components/CodeMirror.vue';
|
|
10
|
+
import { App } from 'vue-demi';
|
|
11
|
+
declare const installCodeMirror: (app: App) => void;
|
|
12
|
+
export { CodeMirror, installCodeMirror as install };
|
|
13
|
+
export default CodeMirror;
|
|
4
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,UAAU,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAW,GAAG,EAAE,MAAM,UAAU,CAAC;AAIxC,QAAA,MAAM,iBAAiB,QAAS,GAAG,SAElC,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,iBAAiB,IAAI,OAAO,EAAE,CAAC;AACpD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ViewUpdate } from '@codemirror/view';
|
|
2
|
+
/** Emit Interface */
|
|
3
|
+
export default interface CodeMirrorEmitsInterface {
|
|
4
|
+
/** Model Update */
|
|
5
|
+
(e: 'update:modelValue', value: string): void;
|
|
6
|
+
/** CodeMirror ViewUpdate */
|
|
7
|
+
(e: 'update', value: ViewUpdate): void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=CodeMirrorEmitsInterface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeMirrorEmitsInterface.d.ts","sourceRoot":"","sources":["../../src/interfaces/CodeMirrorEmitsInterface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,qBAAqB;AACrB,MAAM,CAAC,OAAO,WAAW,wBAAwB;IAC/C,mBAAmB;IACnB,CAAC,CAAC,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9C,4BAA4B;IAC5B,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;CACxC"}
|