openchemlib 8.19.0 → 8.20.0

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.
@@ -19,7 +19,7 @@ class EditorDialog {
19
19
  }
20
20
 
21
21
  add(component, x, y, x2, y2) {
22
- this.elements.push({ component: component.getJsComponent(), x, y, x2, y2 });
22
+ this.elements.push({ component, x, y, x2, y2 });
23
23
  }
24
24
 
25
25
  createTextField(width, height) {
@@ -127,6 +127,8 @@ function getKeyFromEvent(ev, JavaEditorArea) {
127
127
  return JavaEditorArea.KEY_HELP;
128
128
  case 'Escape':
129
129
  return JavaEditorArea.KEY_ESCAPE;
130
+ case 'Enter':
131
+ return JavaEditorArea.KEY_ENTER;
130
132
  default:
131
133
  if (ev.key.length === 1) {
132
134
  return ev.key.codePointAt(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openchemlib",
3
- "version": "8.19.0",
3
+ "version": "8.20.0",
4
4
  "description": "Manipulate molecules",
5
5
  "keywords": [
6
6
  "chemistry",
@@ -20,12 +20,13 @@
20
20
  "build-debug-core": "npm run build:pretty -- -m core --verbose",
21
21
  "build-debug-full": "npm run build:pretty -- -m full --verbose",
22
22
  "build-debug-minimal": "npm run build:pretty -- -m minimal --verbose",
23
- "build-esm": "npm run build-full-pretty && npm run build-esm-bundle-export",
24
- "build-esm-bundle": "esbuild full.pretty.js --bundle --sourcemap --format=esm --outfile=distesm/full.pretty.js",
23
+ "build-esm": "npm run build-full && npm run build-esm-bundle-export",
24
+ "build-esm-bundle": "esbuild full.js --bundle --sourcemap --format=esm --outfile=distesm/full.js",
25
25
  "build-esm-bundle-export": "npm run build-esm-bundle && node scripts/build_esm_bundle_types.js",
26
26
  "build-esm-bundle-types": "node scripts/esm_bundle_types.js",
27
27
  "build-esm-bundle-watch": "npm run build-esm-bundle -- --watch",
28
28
  "build-help": "node scripts/build_help.mjs",
29
+ "build-full": "npm run build:min -- -m full",
29
30
  "build-full-pretty": "npm run build:pretty -- -m full",
30
31
  "build-minimal": "npm run build:min -- -m minimal",
31
32
  "eslint": "eslint .",
@@ -77,26 +78,26 @@
77
78
  },
78
79
  "homepage": "https://github.com/cheminfo/openchemlib-js",
79
80
  "devDependencies": {
80
- "@types/node": "^22.13.1",
81
- "autoprefixer": "^10.4.20",
81
+ "@types/node": "^22.14.0",
82
+ "autoprefixer": "^10.4.21",
82
83
  "benchmark": "^2.1.4",
83
- "esbuild": "^0.24.2",
84
- "eslint": "^9.19.0",
85
- "eslint-config-cheminfo-typescript": "^17.0.0",
86
- "fast-png": "^6.2.0",
87
- "globals": "^15.14.0",
84
+ "esbuild": "^0.25.2",
85
+ "eslint": "^9.24.0",
86
+ "eslint-config-cheminfo-typescript": "^18.0.0",
87
+ "fast-png": "^6.3.0",
88
+ "globals": "^16.0.0",
88
89
  "gwt-api-exporter": "^2.0.0",
89
90
  "image-js": "0.0.0-next-692b15513a",
90
- "openchemlib-utils": "^6.5.2",
91
- "postcss": "^8.5.1",
92
- "prettier": "^3.4.2",
91
+ "openchemlib-utils": "^6.7.0",
92
+ "postcss": "^8.5.3",
93
+ "prettier": "^3.5.3",
93
94
  "tailwindcss": "^3.4.13",
94
- "typescript": "^5.7.3",
95
- "vite": "^6.0.11",
96
- "vitest": "^3.0.5",
95
+ "typescript": "^5.8.3",
96
+ "vite": "^6.2.6",
97
+ "vitest": "^3.1.1",
97
98
  "yargs": "^17.7.2"
98
99
  },
99
100
  "volta": {
100
- "node": "22.13.1"
101
+ "node": "22.14.0"
101
102
  }
102
103
  }