Skip to content

Commit b73df0b

Browse files
upgrade codemirror
1 parent df577d1 commit b73df0b

File tree

3 files changed

+157
-161
lines changed

3 files changed

+157
-161
lines changed

client/packages/lowcoder/package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
"types": "src/index.sdk.ts",
88
"dependencies": {
99
"@ant-design/icons": "^4.7.0",
10-
"@codemirror/autocomplete": "^0.20.3",
11-
"@codemirror/basic-setup": "^0.20.0",
12-
"@codemirror/lang-css": "0.20",
13-
"@codemirror/lang-html": "0.20",
14-
"@codemirror/lang-javascript": "^0.20.1",
15-
"@codemirror/lang-json": "0.20.0",
16-
"@codemirror/lang-sql": "^0.20.4",
10+
"@codemirror/autocomplete": "^6.11.1",
11+
"@codemirror/commands": "^6.3.2",
12+
"@codemirror/lang-css": "^6.2.1",
13+
"@codemirror/lang-html": "^6.4.7",
14+
"@codemirror/lang-javascript": "^6.2.1",
15+
"@codemirror/lang-json": "^6.0.1",
16+
"@codemirror/lang-sql": "^6.5.4",
17+
"@codemirror/search": "^6.5.5",
1718
"@dnd-kit/core": "^5.0.1",
1819
"@dnd-kit/modifiers": "^5.0.0",
1920
"@dnd-kit/sortable": "^6.0.0",

client/packages/lowcoder/src/comps/controls/codeControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { EditorState } from "@codemirror/basic-setup";
1+
import { EditorState } from "@codemirror/state";
22
import { isThemeColorKey } from "api/commonSettingApi";
33
import { CodeEditor } from "base/codeEditor";
44
import { Language } from "base/codeEditor/codeEditorTypes";

0 commit comments

Comments
 (0)