@scalar/use-codemirror 0.11.70 → 0.11.71
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @scalar/use-codemirror
|
|
2
2
|
|
|
3
|
+
## 0.11.71
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7dc4415: feat: adds code mirror history commands
|
|
8
|
+
- Updated dependencies [f61e986]
|
|
9
|
+
- Updated dependencies [c9a8fd8]
|
|
10
|
+
- Updated dependencies [8d9a2c0]
|
|
11
|
+
- Updated dependencies [bd70ab6]
|
|
12
|
+
- Updated dependencies [e55bfd2]
|
|
13
|
+
- @scalar/components@0.13.26
|
|
14
|
+
|
|
3
15
|
## 0.11.70
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCodeMirror.d.ts","sourceRoot":"","sources":["../../src/hooks/useCodeMirror.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,SAAS,EAAe,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EACL,UAAU,EAMX,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"useCodeMirror.d.ts","sourceRoot":"","sources":["../../src/hooks/useCodeMirror.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,SAAS,EAAe,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EACL,UAAU,EAMX,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,GAAG,EAA6D,MAAM,KAAK,CAAA;AAGhH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAGlD,KAAK,cAAc,GAAG;IACpB,yCAAyC;IACzC,aAAa,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACzC,mDA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,EAAE,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC7C,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAC/B,CAAC,GACF,CAAC,cAAc,GAAG;IAChB,QAAQ,EAAE,gBAAgB,CAAC,SAAS,GAAG,IAAI,CAAC,CAAA;IAC5C,OAAO,CAAC,EAAE,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC9C,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAC/B,CAAC,CAAA;AAsBN,sCAAsC;AACtC,eAAO,MAAM,aAAa,WAChB,uBAAuB,KAC9B;IACD,oBAAoB,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAChD,UAAU,EAAE,GAAG,CAAC,UAAU,GAAG,IAAI,CAAC,CAAA;CAkInC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { autocompletion, completionKeymap, closeBrackets, closeBracketsKeymap } from '@codemirror/autocomplete';
|
|
2
|
-
import { indentWithTab, insertNewline } from '@codemirror/commands';
|
|
2
|
+
import { history, historyKeymap, indentWithTab, insertNewline } from '@codemirror/commands';
|
|
3
3
|
import { css } from '@codemirror/lang-css';
|
|
4
4
|
import { html } from '@codemirror/lang-html';
|
|
5
5
|
import { json } from '@codemirror/lang-json';
|
|
@@ -142,6 +142,8 @@ const languageExtensions = {
|
|
|
142
142
|
function getCodeMirrorExtensions({ onChange, onBlur, onFocus, provider, language, classes = [], readOnly = false, lineNumbers: lineNumbers$1 = false, withVariables = false, forceFoldGutter = false, disableEnter = false, disableCloseBrackets = false, disableTabIndent = false, withoutTheme = false, lint = false, additionalExtensions = [], placeholder: placeholder$1, }) {
|
|
143
143
|
const extensions = [
|
|
144
144
|
highlightSpecialChars(),
|
|
145
|
+
history(),
|
|
146
|
+
keymap.of(historyKeymap),
|
|
145
147
|
syntaxHighlighting(defaultHighlightStyle, { fallback: true }),
|
|
146
148
|
EditorView.theme({
|
|
147
149
|
'.cm-line': {
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"vue",
|
|
17
17
|
"vue3"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.11.
|
|
19
|
+
"version": "0.11.71",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=18"
|
|
22
22
|
},
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"codemirror": "^6.0.0",
|
|
64
64
|
"style-mod": "^4.1.2",
|
|
65
65
|
"vue": "^3.5.12",
|
|
66
|
-
"@scalar/components": "0.13.
|
|
66
|
+
"@scalar/components": "0.13.26"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"vite": "^5.4.10",
|
|
72
72
|
"vitest": "^1.6.0",
|
|
73
73
|
"vue": "^3.5.12",
|
|
74
|
-
"@scalar/build-tooling": "0.1.
|
|
75
|
-
"@scalar/themes": "0.9.
|
|
74
|
+
"@scalar/build-tooling": "0.1.15",
|
|
75
|
+
"@scalar/themes": "0.9.69"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"build": "scalar-build-rollup",
|