vue-codemirror6 0.0.6 → 0.3.1
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 +181 -85
- package/dist/components/CodeMirror.vue.d.ts +145 -32
- package/dist/components/CodeMirror.vue.d.ts.map +1 -1
- package/dist/index.d.ts +12 -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/interfaces/CodeMirrorPropsInterface.d.ts +56 -0
- package/dist/interfaces/CodeMirrorPropsInterface.d.ts.map +1 -0
- package/dist/vue-codemirror6.es.js +140 -177
- package/dist/vue-codemirror6.umd.js +8 -2
- package/package.json +39 -29
- package/src/components/CodeMirror.vue +221 -168
- package/dist/index.esm.d.ts +0 -6
- package/dist/index.esm.d.ts.map +0 -1
|
@@ -1,187 +1,150 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, onUnmounted, install } from "vue-demi";
|
|
2
2
|
import { EditorState } from "@codemirror/state";
|
|
3
3
|
import { EditorView } from "@codemirror/view";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (decorator = decorators[i])
|
|
11
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12
|
-
if (kind && result)
|
|
13
|
-
__defProp(target, key, result);
|
|
14
|
-
return result;
|
|
15
|
-
};
|
|
16
|
-
let CodeMirror = class extends Vue {
|
|
17
|
-
onValueChanged() {
|
|
18
|
-
const previous = this.editor.state.selection;
|
|
19
|
-
this.editor.setState(EditorState.create({
|
|
20
|
-
doc: this.value,
|
|
21
|
-
extensions: this.extension,
|
|
22
|
-
selection: previous
|
|
23
|
-
}));
|
|
24
|
-
}
|
|
25
|
-
onToggleDarkMode() {
|
|
26
|
-
this.editor.setState(EditorState.create({
|
|
27
|
-
doc: this.value,
|
|
28
|
-
extensions: this.extension
|
|
29
|
-
}));
|
|
30
|
-
}
|
|
31
|
-
get extension() {
|
|
32
|
-
const ext = compact([
|
|
33
|
-
EditorView.updateListener.of((update) => this.$emit("update", update)),
|
|
34
|
-
EditorView.theme(this.theme, { dark: this.dark }),
|
|
35
|
-
this.phrases ? EditorState.phrases.of(this.phrases) : void 0,
|
|
36
|
-
this.lang ? this.lang : void 0
|
|
37
|
-
]);
|
|
38
|
-
if (this.linter.length !== 0) {
|
|
39
|
-
merge(ext, this.linter);
|
|
40
|
-
}
|
|
41
|
-
if (this.extensions.length !== 0) {
|
|
42
|
-
merge(ext, this.extensions);
|
|
43
|
-
}
|
|
44
|
-
console.debug("[CodeMirror.vue] Loaded extensions:", ext);
|
|
45
|
-
return ext;
|
|
46
|
-
}
|
|
47
|
-
mounted() {
|
|
48
|
-
let value = this.value;
|
|
49
|
-
if (!this.value && this.$slots.default !== void 0) {
|
|
50
|
-
value = this.getChildrenTextContent(this.$slots.default);
|
|
51
|
-
}
|
|
52
|
-
this.editor = new EditorView({
|
|
53
|
-
state: EditorState.create({
|
|
54
|
-
doc: value,
|
|
55
|
-
extensions: this.extension
|
|
56
|
-
}),
|
|
57
|
-
parent: this.$refs.editor,
|
|
58
|
-
dispatch: (tr) => {
|
|
59
|
-
this.editor.update([tr]);
|
|
60
|
-
if (tr.changes.empty)
|
|
61
|
-
return;
|
|
62
|
-
this.$emit("input", this.editor.state.doc.toString());
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
beforeDestroy() {
|
|
67
|
-
this.editor.destroy();
|
|
68
|
-
}
|
|
69
|
-
getChildrenTextContent(children) {
|
|
70
|
-
return children.map((node) => node.children ? this.getChildrenTextContent(node.children) : node.text || "\n").join("");
|
|
4
|
+
import { merge, compact } from "lodash";
|
|
5
|
+
import { openBlock, createElementBlock, withDirectives, createElementVNode, renderSlot, vShow } from "vue";
|
|
6
|
+
var _export_sfc = (sfc, props) => {
|
|
7
|
+
const target = sfc.__vccOpts || sfc;
|
|
8
|
+
for (const [key, val] of props) {
|
|
9
|
+
target[key] = val;
|
|
71
10
|
}
|
|
11
|
+
return target;
|
|
72
12
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
13
|
+
const _sfc_main = defineComponent({
|
|
14
|
+
name: "CodeMirror",
|
|
15
|
+
model: {
|
|
16
|
+
prop: "modelValue",
|
|
17
|
+
event: "update:modelValue"
|
|
18
|
+
},
|
|
19
|
+
props: {
|
|
20
|
+
modelValue: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: ""
|
|
23
|
+
},
|
|
24
|
+
theme: {
|
|
25
|
+
type: Object,
|
|
26
|
+
default: void 0
|
|
27
|
+
},
|
|
28
|
+
dark: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false
|
|
31
|
+
},
|
|
32
|
+
readonly: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
editable: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: true
|
|
39
|
+
},
|
|
40
|
+
extensions: {
|
|
41
|
+
type: Array,
|
|
42
|
+
default: void 0
|
|
43
|
+
},
|
|
44
|
+
phrases: {
|
|
45
|
+
type: Object,
|
|
46
|
+
default: void 0
|
|
47
|
+
},
|
|
48
|
+
lang: {
|
|
49
|
+
type: Object,
|
|
50
|
+
default: void 0
|
|
51
|
+
},
|
|
52
|
+
linter: {
|
|
53
|
+
type: Array,
|
|
54
|
+
default: void 0
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
emits: ["update:modelValue", "update"],
|
|
58
|
+
setup(props, context) {
|
|
59
|
+
const editor = ref();
|
|
60
|
+
const modelValue = ref(props.modelValue);
|
|
61
|
+
const dark = ref(props.dark);
|
|
62
|
+
const emit = context.emit;
|
|
63
|
+
const extensions = computed(() => {
|
|
64
|
+
const ext = [
|
|
65
|
+
EditorView.updateListener.of((update) => {
|
|
66
|
+
emit("update", update);
|
|
67
|
+
}),
|
|
68
|
+
EditorView.theme(props.theme || {}, { dark: dark.value }),
|
|
69
|
+
props.phrases ? EditorState.phrases.of(props.phrases) : void 0,
|
|
70
|
+
props.lang,
|
|
71
|
+
props.readonly ? EditorState.readOnly.of(props.readonly) : void 0,
|
|
72
|
+
props.editable ? EditorView.editable.of(props.editable) : void 0
|
|
73
|
+
];
|
|
74
|
+
if (props.linter) {
|
|
75
|
+
merge(ext, props.linter);
|
|
130
76
|
}
|
|
131
|
-
if (
|
|
132
|
-
|
|
77
|
+
if (props.extensions) {
|
|
78
|
+
merge(ext, props.extensions);
|
|
133
79
|
}
|
|
134
|
-
|
|
135
|
-
|
|
80
|
+
return compact(ext);
|
|
81
|
+
});
|
|
82
|
+
let view;
|
|
83
|
+
watch(modelValue, (current) => {
|
|
84
|
+
if (view.composing) {
|
|
85
|
+
return;
|
|
136
86
|
}
|
|
87
|
+
const previous = view.state.selection;
|
|
88
|
+
view.setState(EditorState.create({
|
|
89
|
+
doc: current,
|
|
90
|
+
extensions: extensions.value,
|
|
91
|
+
selection: previous
|
|
92
|
+
}));
|
|
93
|
+
});
|
|
94
|
+
watch(dark, () => {
|
|
95
|
+
view.setState(EditorState.create({
|
|
96
|
+
doc: modelValue.value,
|
|
97
|
+
extensions: extensions.value
|
|
98
|
+
}));
|
|
99
|
+
});
|
|
100
|
+
onMounted(() => {
|
|
101
|
+
const value = !modelValue.value && editor.value ? editor.value.childNodes[0].innerText : modelValue.value;
|
|
102
|
+
view = new EditorView({
|
|
103
|
+
state: EditorState.create({
|
|
104
|
+
doc: value,
|
|
105
|
+
extensions: extensions.value
|
|
106
|
+
}),
|
|
107
|
+
parent: editor.value,
|
|
108
|
+
dispatch: (tr) => {
|
|
109
|
+
view.update([tr]);
|
|
110
|
+
if (tr.changes.empty)
|
|
111
|
+
return;
|
|
112
|
+
modelValue.value = view.state.doc.toString();
|
|
113
|
+
emit("update:modelValue", modelValue.value);
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
onUnmounted(() => view.destroy());
|
|
118
|
+
return {
|
|
119
|
+
context,
|
|
120
|
+
editor
|
|
137
121
|
};
|
|
138
|
-
options._ssrRegister = hook;
|
|
139
|
-
} else if (injectStyles) {
|
|
140
|
-
hook = shadowMode ? function() {
|
|
141
|
-
injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
|
|
142
|
-
} : injectStyles;
|
|
143
|
-
}
|
|
144
|
-
if (hook) {
|
|
145
|
-
if (options.functional) {
|
|
146
|
-
options._injectStyles = hook;
|
|
147
|
-
var originalRender = options.render;
|
|
148
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
149
|
-
hook.call(context);
|
|
150
|
-
return originalRender(h, context);
|
|
151
|
-
};
|
|
152
|
-
} else {
|
|
153
|
-
var existing = options.beforeCreate;
|
|
154
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
return {
|
|
158
|
-
exports: scriptExports,
|
|
159
|
-
options
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
const __cssModules = {};
|
|
163
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(CodeMirror, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
|
|
164
|
-
function __vue2_injectStyles(context) {
|
|
165
|
-
for (let o in __cssModules) {
|
|
166
|
-
this[o] = __cssModules[o];
|
|
167
122
|
}
|
|
168
|
-
}
|
|
169
|
-
var component$1 = /* @__PURE__ */ function() {
|
|
170
|
-
return __component__.exports;
|
|
171
|
-
}();
|
|
172
|
-
var component = /* @__PURE__ */ (() => {
|
|
173
|
-
const installable = component$1;
|
|
174
|
-
installable.install = (Vue2) => {
|
|
175
|
-
Vue2.component("CodeMirror", installable);
|
|
176
|
-
};
|
|
177
|
-
return installable;
|
|
178
|
-
})();
|
|
179
|
-
var namedExports = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
180
|
-
__proto__: null,
|
|
181
|
-
"default": component
|
|
182
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
183
|
-
Object.entries(namedExports).forEach(([exportName, exported]) => {
|
|
184
|
-
if (exportName !== "default")
|
|
185
|
-
component[exportName] = exported;
|
|
186
123
|
});
|
|
187
|
-
|
|
124
|
+
const _hoisted_1 = {
|
|
125
|
+
ref: "editor",
|
|
126
|
+
class: "vue-codemirror"
|
|
127
|
+
};
|
|
128
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
129
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
130
|
+
withDirectives(createElementVNode("aside", null, [
|
|
131
|
+
renderSlot(_ctx.$slots, "default")
|
|
132
|
+
], 512), [
|
|
133
|
+
[vShow, !_ctx.context.slots.default]
|
|
134
|
+
])
|
|
135
|
+
], 512);
|
|
136
|
+
}
|
|
137
|
+
var CodeMirror = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
138
|
+
/**
|
|
139
|
+
* Vue CodeMirror6 Component
|
|
140
|
+
*
|
|
141
|
+
* @license MIT
|
|
142
|
+
* @author Logue {@link logue@hotmail.co.jp}
|
|
143
|
+
* @copyright 2022 Masashi Yoshikawa {@link https://logue.dev/} All rights reserved.
|
|
144
|
+
* @see {@link https://github.com/logue/vue-codemirror6}
|
|
145
|
+
*/
|
|
146
|
+
install();
|
|
147
|
+
const installCodeMirror = (app) => {
|
|
148
|
+
app.component("CodeMirror", CodeMirror);
|
|
149
|
+
};
|
|
150
|
+
export { CodeMirror, installCodeMirror as install };
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
|
|
1
|
+
(function(o,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue-demi"),require("@codemirror/state"),require("@codemirror/view"),require("lodash"),require("vue")):typeof define=="function"&&define.amd?define(["exports","vue-demi","@codemirror/state","@codemirror/view","lodash","vue"],t):(o=typeof globalThis<"u"?globalThis:o||self,t(o.CodeMirror={},o.VueDemi,o.state,o.view,o.lodash,o.Vue))})(this,function(o,t,s,f,m,i){"use strict";var h=(e,u)=>{const d=e.__vccOpts||e;for(const[r,c]of u)d[r]=c;return d};const V=t.defineComponent({name:"CodeMirror",model:{prop:"modelValue",event:"update:modelValue"},props:{modelValue:{type:String,default:""},theme:{type:Object,default:void 0},dark:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},extensions:{type:Array,default:void 0},phrases:{type:Object,default:void 0},lang:{type:Object,default:void 0},linter:{type:Array,default:void 0}},emits:["update:modelValue","update"],setup(e,u){const d=t.ref(),r=t.ref(e.modelValue),c=t.ref(e.dark),v=u.emit,p=t.computed(()=>{const a=[f.EditorView.updateListener.of(l=>{v("update",l)}),f.EditorView.theme(e.theme||{},{dark:c.value}),e.phrases?s.EditorState.phrases.of(e.phrases):void 0,e.lang,e.readonly?s.EditorState.readOnly.of(e.readonly):void 0,e.editable?f.EditorView.editable.of(e.editable):void 0];return e.linter&&m.merge(a,e.linter),e.extensions&&m.merge(a,e.extensions),m.compact(a)});let n;return t.watch(r,a=>{if(n.composing)return;const l=n.state.selection;n.setState(s.EditorState.create({doc:a,extensions:p.value,selection:l}))}),t.watch(c,()=>{n.setState(s.EditorState.create({doc:r.value,extensions:p.value}))}),t.onMounted(()=>{const a=!r.value&&d.value?d.value.childNodes[0].innerText:r.value;n=new f.EditorView({state:s.EditorState.create({doc:a,extensions:p.value}),parent:d.value,dispatch:l=>{n.update([l]),!l.changes.empty&&(r.value=n.state.doc.toString(),v("update:modelValue",r.value))}})}),t.onUnmounted(()=>n.destroy()),{context:u,editor:d}}}),S={ref:"editor",class:"vue-codemirror"};function _(e,u,d,r,c,v){return i.openBlock(),i.createElementBlock("div",S,[i.withDirectives(i.createElementVNode("aside",null,[i.renderSlot(e.$slots,"default")],512),[[i.vShow,!e.context.slots.default]])],512)}var y=h(V,[["render",_]]);/**
|
|
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
|
+
*/t.install();const E=e=>{e.component("CodeMirror",y)};o.CodeMirror=y,o.install=E,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "vue-codemirror6",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"description": "CodeMirror6 Component for
|
|
4
|
+
"version": "0.3.1",
|
|
5
|
+
"description": "CodeMirror6 Component for vue3",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vuejs",
|
|
8
8
|
"vue",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"code-editor",
|
|
12
12
|
"text-editor",
|
|
13
13
|
"vue2",
|
|
14
|
+
"vue3",
|
|
14
15
|
"web-editor",
|
|
15
16
|
"vue-plugin",
|
|
16
17
|
"vue-component",
|
|
@@ -54,35 +55,45 @@
|
|
|
54
55
|
"sideEffects": false,
|
|
55
56
|
"scripts": {
|
|
56
57
|
"dev": "vite",
|
|
58
|
+
"clean": "rimraf node_modules/.vite",
|
|
57
59
|
"build": "vite build & vue-tsc",
|
|
58
60
|
"build:clean": "rimraf dist",
|
|
59
61
|
"lint": "eslint . --fix --cache --cache-location ./node_modules/.vite/vite-plugin-eslint && prettier . --write",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
+
"switch:2": "vue-demi-switch 2 & npx vue-demi-fix & rimraf node_modules/.vite",
|
|
63
|
+
"switch:3": "vue-demi-switch 3 & npx vue-demi-fix & rimraf node_modules/.vite",
|
|
64
|
+
"prepare": "husky install",
|
|
65
|
+
"postinstall": "npx vue-demi-fix"
|
|
62
66
|
},
|
|
63
67
|
"dependencies": {
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"@
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"vue-
|
|
72
|
-
|
|
68
|
+
"vue-demi": "latest"
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"@vue/composition-api": "^1.4.9",
|
|
72
|
+
"vue": "^2.6.14 || ^3.2.31"
|
|
73
|
+
},
|
|
74
|
+
"peerDependenciesMeta": {
|
|
75
|
+
"@vue/composition-api": {
|
|
76
|
+
"optional": true
|
|
77
|
+
}
|
|
73
78
|
},
|
|
74
79
|
"devDependencies": {
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
+
"@codemirror/basic-setup": "^0.19.3",
|
|
81
|
+
"@codemirror/lang-markdown": "^0.19.6",
|
|
82
|
+
"@codemirror/language": "^0.19.10",
|
|
83
|
+
"@codemirror/lint": "^0.19.6",
|
|
84
|
+
"@codemirror/view": "^0.19.48",
|
|
85
|
+
"@modyqyw/vite-plugin-eslint": "^1.2.0",
|
|
86
|
+
"@types/lodash": "^4.14.181",
|
|
87
|
+
"@types/node": "^17.0.23",
|
|
88
|
+
"@typescript-eslint/eslint-plugin": "^5.17.0",
|
|
89
|
+
"@typescript-eslint/parser": "^5.17.0",
|
|
90
|
+
"@vitejs/plugin-vue": "^2.3.1",
|
|
80
91
|
"@vue/eslint-config-typescript": "^10.0.0",
|
|
81
|
-
"eslint": "^8.
|
|
92
|
+
"eslint": "^8.12.0",
|
|
82
93
|
"eslint-config-google": "^0.14.0",
|
|
83
94
|
"eslint-config-prettier": "^8.5.0",
|
|
84
95
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
85
|
-
"eslint-import-resolver-typescript": "^2.
|
|
96
|
+
"eslint-import-resolver-typescript": "^2.7.0",
|
|
86
97
|
"eslint-plugin-import": "^2.25.4",
|
|
87
98
|
"eslint-plugin-prettier": "^4.0.0",
|
|
88
99
|
"eslint-plugin-prettier-vue": "^3.1.0",
|
|
@@ -90,20 +101,19 @@
|
|
|
90
101
|
"eslint-plugin-vue": "^8.5.0",
|
|
91
102
|
"eslint-plugin-vuejs-accessibility": "^1.1.1",
|
|
92
103
|
"husky": "^7.0.4",
|
|
93
|
-
"lint-staged": "^12.3.
|
|
94
|
-
"
|
|
95
|
-
"prettier
|
|
104
|
+
"lint-staged": "^12.3.7",
|
|
105
|
+
"lodash": "^4.17.21",
|
|
106
|
+
"prettier": "^2.6.2",
|
|
107
|
+
"prettier-plugin-jsdoc": "^0.3.36",
|
|
96
108
|
"prettier-plugin-md-nocjsp": "^1.2.0",
|
|
97
109
|
"prettier-plugin-sort-imports": "^1.6.0",
|
|
98
110
|
"rimraf": "^3.0.2",
|
|
99
|
-
"typescript": "
|
|
100
|
-
"vite": "^2.
|
|
101
|
-
"
|
|
102
|
-
"vite-plugin-eslint": "^1.3.0",
|
|
103
|
-
"vite-plugin-vue2": "^1.9.3",
|
|
111
|
+
"typescript": "^4.6.3",
|
|
112
|
+
"vite": "^2.9.1",
|
|
113
|
+
"vue": "^3.2.31",
|
|
104
114
|
"vue-eslint-parser": "^8.3.0",
|
|
105
115
|
"vue-template-compiler": "^2.6.14",
|
|
106
|
-
"vue-tsc": "^0.33.
|
|
116
|
+
"vue-tsc": "^0.33.9"
|
|
107
117
|
},
|
|
108
118
|
"husky": {
|
|
109
119
|
"hooks": {
|