@sheetxl/scripting-react 0.7.28-beta.4 → 0.8.0-beta.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/scripting-react",
3
3
  "description": "Scripting React - Monaco based script editor and scripting UI for SheetXL.",
4
- "version": "0.7.28-beta.4",
4
+ "version": "0.8.0-beta.2",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -41,11 +41,11 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "@monaco-editor/react": "^4.7.0",
44
- "@sheetxl/react": "^0.7.28-beta.4",
45
- "@sheetxl/scripting": "^0.7.28-beta.4",
46
- "@sheetxl/sdk": "^0.7.28-beta.4",
47
- "@sheetxl/utils": "^0.7.28-beta.4",
48
- "@sheetxl/utils-react": "^0.7.28-beta.4",
44
+ "@sheetxl/react": "^0.8.0-beta.2",
45
+ "@sheetxl/scripting": "^0.8.0-beta.2",
46
+ "@sheetxl/sdk": "^0.8.0-beta.2",
47
+ "@sheetxl/utils": "^0.8.0-beta.2",
48
+ "@sheetxl/utils-react": "^0.8.0-beta.2",
49
49
  "clsx": "^2.1.1",
50
50
  "monaco-editor-auto-typings": "^0.4.6",
51
51
  "path-browserify": "^1.0.1",
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "reason.noChangesToSave": "Keine Änderungen zum Speichern",
3
+ "reason.scriptsReadOnly": "Skripte können nicht geändert werden, solange die Arbeitsmappenstruktur geschützt ist.",
3
4
  "scriptEditor.glyph.autoRun": "Automatisch ausführen",
4
5
  "scriptEditor.glyph.formula": "Formel",
5
6
  "scriptEditor.glyph.macro": "Makro",
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "reason.noChangesToSave": "No changes to save",
3
+ "reason.scriptsReadOnly": "Scripts can't be changed while the workbook structure is protected.",
3
4
  "scriptEditor.glyph.autoRun": "Auto Run",
4
5
  "scriptEditor.glyph.formula": "Formula",
5
6
  "scriptEditor.glyph.macro": "Macro",
6
7
  "scriptEditor.loading": "Loading...",
8
+ "scriptEditor.retry": "Retry",
7
9
  "scriptEditor.saving": "Saving Scripts..."
8
10
  }
@@ -3,6 +3,8 @@ import { IScriptEditorElement } from './ScriptEditor';
3
3
  export interface ContributeScriptEditorCommandsOptions {
4
4
  /** Whether the editor has unsaved changes — gates `saveScripts`. */
5
5
  isDirty?: boolean;
6
+ /** Whether the scripts refuse changes — disables `insertScript` and `saveScripts`. */
7
+ readOnly?: boolean;
6
8
  }
7
9
  /**
8
10
  * Contribute the script-editor commands (help / command palette / insert-snippet / save) into a