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.
@@ -1,187 +1,150 @@
1
- import { Prop, Watch, Component, Vue } from "vue-property-decorator";
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 { compact, merge } from "lodash";
5
- var __defProp = Object.defineProperty;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __decorateClass = (decorators, target, key, kind) => {
8
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
9
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
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
- __decorateClass([
74
- Prop({ type: Object, default: () => {
75
- } })
76
- ], CodeMirror.prototype, "theme", 2);
77
- __decorateClass([
78
- Prop({ type: Boolean, default: false })
79
- ], CodeMirror.prototype, "dark", 2);
80
- __decorateClass([
81
- Prop({ type: Object })
82
- ], CodeMirror.prototype, "phrases", 2);
83
- __decorateClass([
84
- Prop({ type: Array, default: () => [] })
85
- ], CodeMirror.prototype, "extensions", 2);
86
- __decorateClass([
87
- Prop({ type: Object })
88
- ], CodeMirror.prototype, "lang", 2);
89
- __decorateClass([
90
- Prop({ type: Array, default: () => [] })
91
- ], CodeMirror.prototype, "linter", 2);
92
- __decorateClass([
93
- Prop({ type: String, default: "" })
94
- ], CodeMirror.prototype, "value", 2);
95
- __decorateClass([
96
- Watch("value")
97
- ], CodeMirror.prototype, "onValueChanged", 1);
98
- __decorateClass([
99
- Watch("dark")
100
- ], CodeMirror.prototype, "onToggleDarkMode", 1);
101
- CodeMirror = __decorateClass([
102
- Component({ name: "CodeMirror" })
103
- ], CodeMirror);
104
- var render = function() {
105
- var _vm = this;
106
- var _h = _vm.$createElement;
107
- var _c = _vm._self._c || _h;
108
- return _c("div", { ref: "editor" }, [!_vm.$slots.default ? [_vm._t("default")] : _vm._e()], 2);
109
- };
110
- var staticRenderFns = [];
111
- function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
112
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
113
- if (render2) {
114
- options.render = render2;
115
- options.staticRenderFns = staticRenderFns2;
116
- options._compiled = true;
117
- }
118
- if (functionalTemplate) {
119
- options.functional = true;
120
- }
121
- if (scopeId) {
122
- options._scopeId = "data-v-" + scopeId;
123
- }
124
- var hook;
125
- if (moduleIdentifier) {
126
- hook = function(context) {
127
- context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
128
- if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
129
- context = __VUE_SSR_CONTEXT__;
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 (injectStyles) {
132
- injectStyles.call(this, context);
77
+ if (props.extensions) {
78
+ merge(ext, props.extensions);
133
79
  }
134
- if (context && context._registeredComponents) {
135
- context._registeredComponents.add(moduleIdentifier);
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
- export { component as default };
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(i,a){typeof exports=="object"&&typeof module<"u"?module.exports=a(require("vue-property-decorator"),require("@codemirror/state"),require("@codemirror/view"),require("lodash")):typeof define=="function"&&define.amd?define(["vue-property-decorator","@codemirror/state","@codemirror/view","lodash"],a):(i=typeof globalThis<"u"?globalThis:i||self,i.CodeMirror=a(i.vuePropertyDecorator,i.state,i.view,i.lodash))})(this,function(i,a,c,_){"use strict";var y=Object.defineProperty,$=Object.getOwnPropertyDescriptor,s=(e,t,h,f)=>{for(var o=f>1?void 0:f?$(t,h):t,p=e.length-1,u;p>=0;p--)(u=e[p])&&(o=(f?u(t,h,o):u(o))||o);return f&&o&&y(t,h,o),o};let r=class extends i.Vue{onValueChanged(){const e=this.editor.state.selection;this.editor.setState(a.EditorState.create({doc:this.value,extensions:this.extension,selection:e}))}onToggleDarkMode(){this.editor.setState(a.EditorState.create({doc:this.value,extensions:this.extension}))}get extension(){const e=_.compact([c.EditorView.updateListener.of(t=>this.$emit("update",t)),c.EditorView.theme(this.theme,{dark:this.dark}),this.phrases?a.EditorState.phrases.of(this.phrases):void 0,this.lang?this.lang:void 0]);return this.linter.length!==0&&_.merge(e,this.linter),this.extensions.length!==0&&_.merge(e,this.extensions),console.debug("[CodeMirror.vue] Loaded extensions:",e),e}mounted(){let e=this.value;!this.value&&this.$slots.default!==void 0&&(e=this.getChildrenTextContent(this.$slots.default)),this.editor=new c.EditorView({state:a.EditorState.create({doc:e,extensions:this.extension}),parent:this.$refs.editor,dispatch:t=>{this.editor.update([t]),!t.changes.empty&&this.$emit("input",this.editor.state.doc.toString())}})}beforeDestroy(){this.editor.destroy()}getChildrenTextContent(e){return e.map(t=>t.children?this.getChildrenTextContent(t.children):t.text||`
2
- `).join("")}};s([i.Prop({type:Object,default:()=>{}})],r.prototype,"theme",2),s([i.Prop({type:Boolean,default:!1})],r.prototype,"dark",2),s([i.Prop({type:Object})],r.prototype,"phrases",2),s([i.Prop({type:Array,default:()=>[]})],r.prototype,"extensions",2),s([i.Prop({type:Object})],r.prototype,"lang",2),s([i.Prop({type:Array,default:()=>[]})],r.prototype,"linter",2),s([i.Prop({type:String,default:""})],r.prototype,"value",2),s([i.Watch("value")],r.prototype,"onValueChanged",1),s([i.Watch("dark")],r.prototype,"onToggleDarkMode",1),r=s([i.Component({name:"CodeMirror"})],r);var S=function(){var e=this,t=e.$createElement,h=e._self._c||t;return h("div",{ref:"editor"},[e.$slots.default?e._e():[e._t("default")]],2)},x=[];function O(e,t,h,f,o,p,u,M){var n=typeof e=="function"?e.options:e;t&&(n.render=t,n.staticRenderFns=h,n._compiled=!0),f&&(n.functional=!0),p&&(n._scopeId="data-v-"+p);var l;if(u?(l=function(d){d=d||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!d&&typeof __VUE_SSR_CONTEXT__<"u"&&(d=__VUE_SSR_CONTEXT__),o&&o.call(this,d),d&&d._registeredComponents&&d._registeredComponents.add(u)},n._ssrRegister=l):o&&(l=M?function(){o.call(this,(n.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(n.functional){n._injectStyles=l;var w=n.render;n.render=function(V,g){return l.call(g),w(V,g)}}else{var C=n.beforeCreate;n.beforeCreate=C?[].concat(C,l):[l]}return{exports:e,options:n}}const m={};var T=O(r,S,x,!1,b,null,null,null);function b(e){for(let t in m)this[t]=m[t]}var E=function(){return T.exports}(),v=(()=>{const e=E;return e.install=t=>{t.component("CodeMirror",e)},e})(),j=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"}));return Object.entries(j).forEach(([e,t])=>{e!=="default"&&(v[e]=t)}),v});
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.0.6",
5
- "description": "CodeMirror6 Component for vue2",
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
- "lint:markup": "vue-tsc --noEmit",
61
- "prepare": "husky install"
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
- "@codemirror/basic-setup": "^0.19.1",
65
- "@codemirror/lang-markdown": "^0.19.6",
66
- "@codemirror/language": "^0.19.8",
67
- "@codemirror/lint": "^0.19.6",
68
- "@codemirror/view": "^0.19.47",
69
- "lodash": "^4.17.21",
70
- "vue": "^2.6.14",
71
- "vue-class-component": "^7.2.6",
72
- "vue-property-decorator": "^9.1.2"
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
- "@types/lodash": "^4.14.180",
76
- "@types/node": "^17.0.21",
77
- "@typescript-eslint/eslint-plugin": "^5.15.0",
78
- "@typescript-eslint/parser": "^5.15.0",
79
- "@vue/compiler-sfc": "^3.2.31",
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.11.0",
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.5.0",
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.6",
94
- "prettier": "^2.6.0",
95
- "prettier-plugin-jsdoc": "^0.3.31",
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": ">=3.3.1 <4.6.0",
100
- "vite": "^2.8.6",
101
- "vite-dts": "^1.0.4",
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.2"
116
+ "vue-tsc": "^0.33.9"
107
117
  },
108
118
  "husky": {
109
119
  "hooks": {