@scm-manager/scm-code-editor-plugin 4.0.0-20260224-132340 → 4.0.0-20260230-160625

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": "@scm-manager/scm-code-editor-plugin",
3
3
  "private": false,
4
- "version": "4.0.0-20260224-132340",
4
+ "version": "4.0.0-20260230-160625",
5
5
  "license": "AGPL-3.0-only",
6
6
  "main": "./src/main/js/index.tsx",
7
7
  "scripts": {
@@ -12,25 +12,24 @@
12
12
  "deploy": "plugin-scripts publish"
13
13
  },
14
14
  "dependencies": {
15
- "@scm-manager/ui-api": "4.0.0-REACT19-20251115-163310",
16
- "@scm-manager/ui-components": "4.0.0-REACT19-20251115-163310",
17
- "@scm-manager/ui-core": "4.0.0-REACT19-20251115-163310",
18
- "@scm-manager/ui-extensions": "4.0.0-REACT19-20251115-163310",
19
- "@scm-manager/ui-plugins": "4.0.0-REACT19-20251115-163310",
15
+ "@scm-manager/ui-api": "4.0.0-REACT19-20260213-175738",
16
+ "@scm-manager/ui-components": "4.0.0-REACT19-20260213-175738",
17
+ "@scm-manager/ui-core": "4.0.0-REACT19-20260213-175738",
18
+ "@scm-manager/ui-extensions": "4.0.0-REACT19-20260213-175738",
19
+ "@scm-manager/ui-plugins": "4.0.0-REACT19-20260213-175738",
20
20
  "@tanstack/react-query": "^5.90.6",
21
21
  "ace-builds": "^1.43.6",
22
- "classnames": "^2.3.1",
22
+ "classnames": "^2.3.4",
23
23
  "query-string": "6.14.1",
24
+ "raw-loader": "^4.0.2",
24
25
  "react": "^19.1.1",
25
26
  "react-ace": "^14.0.1",
26
27
  "react-dom": "^19.1.1",
27
28
  "react-hook-form": "^7.33.1",
28
29
  "react-i18next": "11",
29
30
  "react-query": "^3.25.1",
30
- "react-redux": "^5.0.7",
31
- "react-router": "^7.9.1",
32
- "react-router-dom": "^7.9.1",
33
- "redux": "^4.0.0",
31
+ "react-router": "^7.13.0",
32
+ "react-router-dom": "^7.13.0",
34
33
  "styled-components": "^6.1.19"
35
34
  },
36
35
  "babel": {
@@ -38,9 +37,6 @@
38
37
  "@scm-manager/babel-preset"
39
38
  ]
40
39
  },
41
- "jest": {
42
- "preset": "@scm-manager/jest-preset"
43
- },
44
40
  "prettier": "@scm-manager/prettier-config",
45
41
  "eslintConfig": {
46
42
  "extends": "@scm-manager/eslint-config"
@@ -48,26 +44,16 @@
48
44
  "devDependencies": {
49
45
  "@scm-manager/babel-preset": "^2.13.1",
50
46
  "@scm-manager/eslint-config": "^2.18.2",
51
- "@scm-manager/jest-preset": "^2.13.0",
52
47
  "@scm-manager/plugin-scripts": "^1.6.1",
53
48
  "@scm-manager/prettier-config": "^2.12.0",
54
49
  "@scm-manager/tsconfig": "^2.13.0",
55
- "@scm-manager/ui-scripts": "^2.32.2",
56
- "@scm-manager/ui-tests": "3.0.0",
57
- "@scm-manager/ui-types": "4.0.0-REACT19-20251115-163310",
58
- "@types/classnames": "^2.3.1",
59
- "@types/enzyme": "^3.10.3",
60
- "@types/fetch-mock": "^7.3.1",
50
+ "@scm-manager/ui-types": "4.0.0-REACT19-20260213-175738",
51
+ "@types/classnames": "^2.3.4",
61
52
  "@types/i18next": "^13.0.0",
62
- "@types/jest": "^24.0.19",
63
- "@types/query-string": "5",
53
+ "@types/query-string": "6",
64
54
  "@types/react": "^19.1.1",
65
- "@types/react-redux": "5.0.7",
66
- "@types/react-router-dom": "^5.3.3",
67
- "@types/styled-components": "^5.1.25",
68
- "@vitest/coverage-v8": "^3.2.4",
69
- "jest": "^24.9.0",
70
- "vitest": "^3.2.4"
55
+ "@vitest/coverage-v8": "^4.0.18",
56
+ "vitest": "^4.0.18"
71
57
  },
72
58
  "publishConfig": {
73
59
  "access": "public"
@@ -22,6 +22,9 @@ import AceEditor from "react-ace";
22
22
  import "./EditorTheme.js";
23
23
  import findLanguage from "./findLanguage";
24
24
  import styled from "styled-components";
25
+ import {registerTheme} from "./EditorTheme";
26
+ import * as ace from "ace-builds";
27
+ import {Ace} from "ace-builds";
25
28
 
26
29
  const defaultLanguage = "text";
27
30
 
@@ -118,6 +121,10 @@ class CodeEditor extends Component<Props, State> {
118
121
  <StyledAceEditor
119
122
  className={`is-family-monospace ${className}`}
120
123
  mode={language}
124
+ onLoad={(editor) => {
125
+ registerTheme(ace);
126
+ editor.setTheme("ace/theme/scm-manager");
127
+ }}
121
128
  theme="scm-manager"
122
129
  onChange={onChange}
123
130
  name="UNIQUE_ID_OF_DIV"
@@ -14,64 +14,64 @@
14
14
  * along with this program. If not, see https://www.gnu.org/licenses/.
15
15
  */
16
16
 
17
- .scm-manager {
17
+ .ace-scm-manager {
18
18
  font-family: monospace !important;
19
19
  font-size: 14px !important;
20
20
  line-height: 21px !important;
21
21
  font-weight: 400;
22
22
  }
23
23
 
24
- .scm-manager .ace_placeholder {
24
+ .ace-scm-manager .ace_placeholder {
25
25
  font-family: inherit;
26
26
  transform: scale(1);
27
27
  }
28
28
 
29
- .scm-manager .ace_marker-layer .ace_selection {
29
+ .ace-scm-manager .ace_marker-layer .ace_selection {
30
30
  background: var(--sh-selected-color);
31
31
  }
32
32
 
33
- .scm-manager .ace_meta,
34
- .scm-manager .ace_meta.ace_tag,
35
- .scm-manager .ace_comment {
33
+ .ace-scm-manager .ace_meta,
34
+ .ace-scm-manager .ace_meta.ace_tag,
35
+ .ace-scm-manager .ace_comment {
36
36
  color: var(--sh-comment-color);
37
37
  }
38
38
 
39
- .scm-manager .ace_constant.ace_character,
40
- .scm-manager .ace_entity.ace_other.ace_attribute-name,
41
- .scm-manager .ace_string {
39
+ .ace-scm-manager .ace_constant.ace_character,
40
+ .ace-scm-manager .ace_entity.ace_other.ace_attribute-name,
41
+ .ace-scm-manager .ace_string {
42
42
  color: var(--sh-selector-color);
43
43
  }
44
44
 
45
- .scm-manager .ace_keyword.ace_operator {
45
+ .ace-scm-manager .ace_keyword.ace_operator {
46
46
  color: var(--sh-operator-color);
47
47
  }
48
48
 
49
- .scm-manager .ace_variable,
50
- .scm-manager .ace_keyword {
49
+ .ace-scm-manager .ace_variable,
50
+ .ace-scm-manager .ace_keyword {
51
51
  color: var(--sh-keyword-color);
52
52
  }
53
53
 
54
- .scm-manager .ace_entity.ace_name.ace_function,
55
- .scm-manager .ace_support.ace_function {
54
+ .ace-scm-manager .ace_entity.ace_name.ace_function,
55
+ .ace-scm-manager .ace_support.ace_function {
56
56
  color: var(--sh-function-color);
57
57
  }
58
58
 
59
- .scm-manager .ace_variable,
60
- .scm-manager .ace_string.ace_regexp {
59
+ .ace-scm-manager .ace_variable,
60
+ .ace-scm-manager .ace_string.ace_regexp {
61
61
  color: var(--sh-variable-color);
62
62
  }
63
63
 
64
- .scm-manager .ace_constant.ace_other,
65
- .scm-manager .ace_invalid.ace_deprecated, /* ? */
66
- .scm-manager .ace_entity.ace_name.ace_tag,
67
- .scm-manager .ace_constant.ace_numeric {
64
+ .ace-scm-manager .ace_constant.ace_other,
65
+ .ace-scm-manager .ace_invalid.ace_deprecated,
66
+ .ace-scm-manager .ace_entity.ace_name.ace_tag,
67
+ .ace-scm-manager .ace_constant.ace_numeric {
68
68
  color: var(--sh-property-color);
69
69
  }
70
70
 
71
- .scm-manager .ace_constant.ace_language {
71
+ .ace-scm-manager .ace_constant.ace_language {
72
72
  color: var(--sh-function-color);
73
73
  }
74
74
 
75
- .scm-manager .ace_indent-guide {
75
+ .ace-scm-manager .ace_indent-guide {
76
76
  border-right: 1px solid var(--scm-border-color);
77
77
  }
@@ -16,25 +16,19 @@
16
16
 
17
17
  // @ts-nocheck
18
18
  // copy of ace/theme/arduino-tomorrow
19
- import ace from "ace-builds/src-noconflict/ace";
20
19
  import css from '!!raw-loader!./EditorTheme.css';
21
20
 
22
- ace.define(
23
- "ace/theme/scm-manager",
24
- ["require", "exports", "module", "ace/lib/dom"],
25
- function (require, exports, module) {
26
- exports.isDark = false;
27
- exports.cssClass = "scm-manager";
28
- exports.cssText = css;
29
-
30
- var dom = require("../lib/dom");
31
- dom.importCssString(exports.cssText, exports.cssClass);
32
- },
33
- );
34
- (function () {
35
- ace.require(["ace/theme/scm-manager"], function (m) {
36
- if (typeof module == "object" && typeof exports == "object" && module) {
37
- module.exports = m;
21
+ export function registerTheme(ace) {
22
+ ace.define(
23
+ "ace/theme/scm-manager",
24
+ ["require", "exports", "module", "ace/lib/dom"],
25
+ function (require, exports, module) {
26
+ exports.isDark = false;
27
+ exports.cssClass = "ace-scm-manager";
28
+ exports.cssText = css;
29
+ var dom = require("ace/lib/dom");
30
+ dom.importCssString(exports.cssText, exports.cssClass);
38
31
  }
39
- });
40
- })();
32
+ );
33
+ ace.require("ace/theme/scm-manager");
34
+ }