@codingame/monaco-editor-wrapper 2.1.1 → 2.1.2

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/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 - CodinGame
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -56,10 +56,10 @@ Instead of using `monaco.editor.create`, you should use the `createEditor` expos
56
56
  By default, monaco-editor contains worker to achieve IntelliSense in CSS, SCSS, JavaScript, TypeScript, JSON and HTML.
57
57
 
58
58
  To enable them, import the following files:
59
- - JSON: `import '@codingame/monaco-editor-wrapper/dist/jsonContribution'`
60
- - JavaScript/TypeScript: `import '@codingame/monaco-editor-wrapper/dist/typescriptContribution'`
61
- - CSS/SCSS: `import '@codingame/monaco-editor-wrapper/dist/cssContribution'`
62
- - HTML: `import '@codingame/monaco-editor-wrapper/dist/htmlContribution'`
59
+ - JSON: `import '@codingame/monaco-editor-wrapper/features/jsonContribution'`
60
+ - JavaScript/TypeScript: `import '@codingame/monaco-editor-wrapper/features/typescriptContribution'`
61
+ - CSS/SCSS: `import '@codingame/monaco-editor-wrapper/features/cssContribution'`
62
+ - HTML: `import '@codingame/monaco-editor-wrapper/features/htmlContribution'`
63
63
 
64
64
  #### Additional apis
65
65
 
@@ -79,4 +79,5 @@ This library exposed some functions to manage the user global configuration:
79
79
  - `updateUserConfiguration` Update the user configuration, overrides the default configuration, uses the same syntax as VS Code configuration
80
80
  - `getConfiguration` allows to get a given configuration key in a given language
81
81
  - `onConfigurationChanged` listen to configuration change
82
- - `updateEditorKeybindings` allows to update the editor keybindings with the same syntax as in VS Code, or enabled Emacs/Vim keybindings
82
+ - `updateKeybindings` allows to update the editor keybindings with the same syntax as in VS Code
83
+ - `updateEditorKeybindingsMode` switch between `vim`, `emacs` or `classic` keybindings
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-editor-wrapper",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "private": false,
5
5
  "description": "Enhanced Monaco editor with TextMate grammars and more",
6
6
  "scripts": {