@codingame/monaco-editor-wrapper 3.5.1 → 3.5.3

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/index.d.ts CHANGED
@@ -4,5 +4,6 @@ import { defineVSCodeTheme } from './theme';
4
4
  import { updateUserConfiguration, registerConfigurations, registerDefaultConfigurations, onConfigurationChanged, getConfiguration } from './configuration';
5
5
  import { getMonacoLanguage, loadLanguage } from './languages';
6
6
  import { updateKeybindings, updateEditorKeybindingsMode } from './keybindings';
7
+ import './style';
7
8
  export * from './tools';
8
9
  export { monaco, createEditor, defineVSCodeTheme, registerConfigurations, registerDefaultConfigurations, updateUserConfiguration, getConfiguration, onConfigurationChanged, updateEditorKeybindingsMode, updateKeybindings, getMonacoLanguage, registerTextModelContentProvider, registerEditorOpenHandler, loadLanguage };
package/dist/main.js CHANGED
@@ -2763,7 +2763,7 @@ const customAliases = {
2763
2763
  r: ['datascience-r'],
2764
2764
  vb: ['vb.net'],
2765
2765
  javascriptreact: ['react'],
2766
- javascript: ['vue', 'node'],
2766
+ javascript: ['node'],
2767
2767
  typescript: ['angular'],
2768
2768
  sql: ['mysql'],
2769
2769
  postgres: ['postgresql', 'postgres', 'pg', 'postgre']
@@ -3178,6 +3178,13 @@ function updateEditorKeybindingsMode(editor) {
3178
3178
  }
3179
3179
  }
3180
3180
 
3181
+ function addStyle(styleString) {
3182
+ const style = document.createElement('style');
3183
+ style.textContent = styleString;
3184
+ document.head.append(style);
3185
+ }
3186
+ addStyle("\n.monaco-hover-content h1, .monaco-hover-content h2, .monaco-hover-content h3, .monaco-hover-content h4, .monaco-hover-content h5, .monaco-hover-content h6 {\n all: revert;\n}\n");
3187
+
3181
3188
  function isPasteAction(handlerId, payload) {
3182
3189
  return handlerId === 'paste';
3183
3190
  }
@@ -0,0 +1 @@
1
+ export declare function addStyle(styleString: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-editor-wrapper",
3
- "version": "3.5.1",
3
+ "version": "3.5.3",
4
4
  "private": false,
5
5
  "description": "Enhanced Monaco editor with TextMate grammars and more",
6
6
  "scripts": {
@@ -78,8 +78,11 @@
78
78
  "@babel/preset-env": "7.19.4",
79
79
  "@babel/preset-typescript": "7.18.6",
80
80
  "@babel/runtime": "7.19.4",
81
+ "@codingame/commitlint-config-codingame": "^1.0.3",
81
82
  "@codingame/eslint-config": "^1.1.6",
83
+ "@codingame/semantic-release-rules": "^1.0.0",
82
84
  "@codingame/tsconfig": "^1.1.1",
85
+ "@commitlint/cli": "^17.3.0",
83
86
  "@rollup/plugin-alias": "4.0.0",
84
87
  "@rollup/plugin-babel": "6.0.0",
85
88
  "@rollup/plugin-commonjs": "23.0.0",