@codingame/monaco-editor-wrapper 3.9.0 → 3.9.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/dist/main.js CHANGED
@@ -3304,7 +3304,9 @@ addStyle("\n.monaco-hover-content h1, .monaco-hover-content h2, .monaco-hover-co
3304
3304
  function isPasteAction(handlerId, payload) {
3305
3305
  return handlerId === 'paste';
3306
3306
  }
3307
- function lockCodeWithoutDecoration(editor, decorations, allowChangeFromSources, errorMessage) {
3307
+ function lockCodeWithoutDecoration(editor, decorations) {
3308
+ let allowChangeFromSources = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
3309
+ let errorMessage = arguments.length > 3 ? arguments[3] : undefined;
3308
3310
  function displayLockedCodeError(position) {
3309
3311
  if (errorMessage == null) {
3310
3312
  return;
package/dist/tools.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as monaco from 'monaco-editor';
2
- export declare function lockCodeWithoutDecoration(editor: monaco.editor.IStandaloneCodeEditor, decorations: string[], allowChangeFromSources: string[], errorMessage?: string): () => void;
2
+ export declare function lockCodeWithoutDecoration(editor: monaco.editor.IStandaloneCodeEditor, decorations: string[], allowChangeFromSources?: string[], errorMessage?: string): () => void;
3
3
  export declare function hideCodeWithoutDecoration(editor: monaco.editor.IStandaloneCodeEditor, decorations: string[]): () => void;
4
4
  /**
5
5
  * Collapse everything between startToken and endToken
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-editor-wrapper",
3
- "version": "3.9.0",
3
+ "version": "3.9.2",
4
4
  "private": false,
5
5
  "description": "Enhanced Monaco editor with TextMate grammars and more",
6
6
  "scripts": {
@@ -80,7 +80,7 @@
80
80
  "@babel/runtime": "7.21.0",
81
81
  "@codingame/commitlint-config-codingame": "^1.0.5",
82
82
  "@codingame/eslint-config": "^1.1.6",
83
- "@codingame/semantic-release-rules": "^1.0.0",
83
+ "@codingame/semantic-release-config": "^1.2.0",
84
84
  "@codingame/tsconfig": "^1.1.1",
85
85
  "@commitlint/cli": "^17.4.4",
86
86
  "@rollup/plugin-alias": "4.0.3",