@adecore/editor-react 0.60.0 → 0.62.0
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/dist/language-ids.js +13 -2
- package/package.json +6 -6
- package/src/language-ids.ts +13 -2
package/dist/language-ids.js
CHANGED
|
@@ -18,7 +18,13 @@ const LSP_IDS = {
|
|
|
18
18
|
docker: 'dockerfile',
|
|
19
19
|
twig: 'twig',
|
|
20
20
|
sql: 'sql',
|
|
21
|
-
rust: 'rust'
|
|
21
|
+
rust: 'rust',
|
|
22
|
+
markdown: 'markdown',
|
|
23
|
+
toml: 'toml',
|
|
24
|
+
lua: 'lua',
|
|
25
|
+
go: 'go',
|
|
26
|
+
swift: 'swift',
|
|
27
|
+
zig: 'zig'
|
|
22
28
|
};
|
|
23
29
|
/* The LSP language id of a file, or null when no language server here knows its language. */
|
|
24
30
|
export function lspLanguageIdOf(language) {
|
|
@@ -50,7 +56,12 @@ const PATH_IDS = {
|
|
|
50
56
|
md: 'markdown',
|
|
51
57
|
twig: 'twig',
|
|
52
58
|
sql: 'sql',
|
|
53
|
-
rs: 'rust'
|
|
59
|
+
rs: 'rust',
|
|
60
|
+
toml: 'toml',
|
|
61
|
+
lua: 'lua',
|
|
62
|
+
go: 'go',
|
|
63
|
+
swift: 'swift',
|
|
64
|
+
zig: 'zig'
|
|
54
65
|
};
|
|
55
66
|
/* The highlighter id for the code of a file we only know by its path, such as a place another file refers to. */
|
|
56
67
|
export function shikiLanguageOfPath(path) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/editor-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.62.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Language-enabled editors, feature coordination and React popups over injected language services.",
|
|
6
6
|
"license": "FSL-1.1-MIT",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"test": "bun test --conditions=source"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@adecore/editor": "0.
|
|
66
|
-
"@adecore/lsp": "0.
|
|
67
|
-
"@adecore/merge": "0.
|
|
65
|
+
"@adecore/editor": "0.62.0",
|
|
66
|
+
"@adecore/lsp": "0.62.0",
|
|
67
|
+
"@adecore/merge": "0.62.0",
|
|
68
68
|
"emmet": "^2.4.11",
|
|
69
69
|
"lucide-react": "^1.65.0",
|
|
70
70
|
"react-markdown": "^10.1.0",
|
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
"zustand": "^5.0.16"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@adecore/ui": "^0.
|
|
76
|
+
"@adecore/ui": "^0.62.0",
|
|
77
77
|
"i18next": "^26.5.12",
|
|
78
78
|
"react": "^19.3.1",
|
|
79
79
|
"react-dom": "^19.3.1",
|
|
80
80
|
"react-i18next": "^17.1.9"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@adecore/ui": "0.
|
|
83
|
+
"@adecore/ui": "0.62.0",
|
|
84
84
|
"@types/bun": "^1.4.4",
|
|
85
85
|
"@types/react": "^19.3.0",
|
|
86
86
|
"@types/react-dom": "^19.3.0",
|
package/src/language-ids.ts
CHANGED
|
@@ -18,7 +18,13 @@ const LSP_IDS: Record<string, string> = {
|
|
|
18
18
|
docker: 'dockerfile',
|
|
19
19
|
twig: 'twig',
|
|
20
20
|
sql: 'sql',
|
|
21
|
-
rust: 'rust'
|
|
21
|
+
rust: 'rust',
|
|
22
|
+
markdown: 'markdown',
|
|
23
|
+
toml: 'toml',
|
|
24
|
+
lua: 'lua',
|
|
25
|
+
go: 'go',
|
|
26
|
+
swift: 'swift',
|
|
27
|
+
zig: 'zig'
|
|
22
28
|
};
|
|
23
29
|
|
|
24
30
|
/* The LSP language id of a file, or null when no language server here knows its language. */
|
|
@@ -51,7 +57,12 @@ const PATH_IDS: Record<string, string> = {
|
|
|
51
57
|
md: 'markdown',
|
|
52
58
|
twig: 'twig',
|
|
53
59
|
sql: 'sql',
|
|
54
|
-
rs: 'rust'
|
|
60
|
+
rs: 'rust',
|
|
61
|
+
toml: 'toml',
|
|
62
|
+
lua: 'lua',
|
|
63
|
+
go: 'go',
|
|
64
|
+
swift: 'swift',
|
|
65
|
+
zig: 'zig'
|
|
55
66
|
};
|
|
56
67
|
|
|
57
68
|
/* The highlighter id for the code of a file we only know by its path, such as a place another file refers to. */
|