Skip to content

Commit 8e0d0ce

Browse files
committed
Added the ability to specify keymaps as props.
A solution to the problem where the keymap specification conflicts with the tab key processing. Update dependencies.
1 parent dc35928 commit 8e0d0ce

File tree

4 files changed

+648
-348
lines changed

4 files changed

+648
-348
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ This component can handle bidirectional binding by `v-model` like a general Vue
5656
| gutterConfig | Object | see <https://codemirror.net/docs/ref/#lint.lintGutter^config> |
5757
| tag | string | HTML tags used in the component. (Default is `div` tag.) |
5858
| scrollIntoView | boolean | Allows an external update to scroll the form. (Default is `true`) |
59+
| keymap | KeyBinding[] | Key bindings associate key names with command-style functions. See <https://codemirror.net/docs/ref/#view.KeyBinding> |
5960

6061
⚠ Notice: `lang` and `linter` can also be set together in `extensions`. These are separated for compatibility with previous versions of CodeMirror settings and for typing props.
6162

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
33
"name": "vue-codemirror6",
4-
"version": "1.3.17",
4+
"version": "1.3.18",
55
"license": "MIT",
66
"description": "CodeMirror6 Component for vue2 and vue3.",
77
"keywords": [
@@ -56,7 +56,7 @@
5656
"engines": {
5757
"pnpm": ">=10.3.0"
5858
},
59-
"packageManager": "pnpm@10.11.0",
59+
"packageManager": "pnpm@10.12.1",
6060
"sideEffects": false,
6161
"scripts": {
6262
"dev": "vite",
@@ -75,7 +75,7 @@
7575
"dependencies": {
7676
"@codemirror/autocomplete": "^6.18.6",
7777
"@codemirror/commands": "^6.8.1",
78-
"@codemirror/language": "^6.11.0",
78+
"@codemirror/language": "^6.11.1",
7979
"@codemirror/lint": "^6.8.5",
8080
"@codemirror/search": "^6.5.11",
8181
"@codemirror/state": "^6.5.2",
@@ -93,7 +93,7 @@
9393
"@codemirror/lang-markdown": "^6.3.2",
9494
"@codemirror/lang-vue": "^0.1.3",
9595
"@tsconfig/node-lts": "^22.0.1",
96-
"@types/node": "^22.15.29",
96+
"@types/node": "^22.15.30",
9797
"@vitejs/plugin-vue": "^5.2.4",
9898
"@vue/compiler-sfc": "^3.5.16",
9999
"@vue/eslint-config-prettier": "^10.2.0",
@@ -104,23 +104,23 @@
104104
"bootstrap": "^5.3.6",
105105
"eslint": "^9.28.0",
106106
"eslint-import-resolver-custom-alias": "^1.3.2",
107-
"eslint-import-resolver-typescript": "^4.4.2",
107+
"eslint-import-resolver-typescript": "^4.4.3",
108108
"eslint-linter-browserify": "^9.28.0",
109109
"eslint-plugin-import": "^2.31.0",
110110
"eslint-plugin-playwright": "^2.2.0",
111-
"eslint-plugin-vue": "^10.1.0",
111+
"eslint-plugin-vue": "^10.2.0",
112112
"eslint-plugin-vuejs-accessibility": "^2.4.1",
113113
"husky": "^9.1.7",
114114
"jiti": "^2.4.2",
115115
"lint-staged": "^16.1.0",
116116
"npm-run-all2": "^8.0.4",
117117
"prettier": "^3.5.3",
118118
"rimraf": "^6.0.1",
119-
"rollup-plugin-visualizer": "^6.0.1",
120-
"sass": "^1.89.1",
119+
"rollup-plugin-visualizer": "^6.0.3",
120+
"sass-embedded": "^1.89.1",
121121
"supports-color": "^10.0.0",
122122
"typescript": "^5.8.3",
123-
"typescript-eslint": "^8.33.0",
123+
"typescript-eslint": "^8.33.1",
124124
"vite": "^6.3.5",
125125
"vite-plugin-banner": "^0.8.1",
126126
"vite-plugin-checker": "^0.9.3",

0 commit comments

Comments
 (0)