ketcher-standalone 1.2.0 → 1.3.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.
- package/LICENSE +201 -0
- package/dist/index.js +108 -11214
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +88 -11198
- package/dist/index.modern.js.map +1 -1
- package/dist/infrastructure/services/struct/index.d.ts +2 -2
- package/dist/infrastructure/services/struct/indigoWorker.d.ts +16 -0
- package/dist/infrastructure/services/struct/indigoWorker.types.d.ts +9 -7
- package/dist/infrastructure/services/struct/{StandaloneStructService.d.ts → standaloneStructService.d.ts} +15 -0
- package/dist/infrastructure/services/struct/{StandaloneStructServiceProvider.d.ts → standaloneStructServiceProvider.d.ts} +0 -0
- package/package.json +10 -13
- package/dist/generated/libindigo.d.ts +0 -5
- package/dist/infrastructure/services/struct/IndigoWorker.d.ts +0 -1
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
import StandaloneStructService from './
|
|
17
|
-
import StandaloneStructServiceProvider from './
|
|
16
|
+
import StandaloneStructService from './standaloneStructService';
|
|
17
|
+
import StandaloneStructServiceProvider from './standaloneStructServiceProvider';
|
|
18
18
|
export { StandaloneStructService, StandaloneStructServiceProvider };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/****************************************************************************
|
|
2
|
+
* Copyright 2021 EPAM Systems
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
***************************************************************************/
|
|
16
|
+
export {};
|
|
@@ -34,6 +34,7 @@ export declare enum SupportedFormat {
|
|
|
34
34
|
CML = "cml",
|
|
35
35
|
InChI = "inchi",
|
|
36
36
|
InChIAuxInfo = "inchi-aux",
|
|
37
|
+
Ket = "ket",
|
|
37
38
|
CDXML = "cdxml"
|
|
38
39
|
}
|
|
39
40
|
export interface WithStruct {
|
|
@@ -55,25 +56,26 @@ export interface ConvertCommandData extends CommandData, WithStruct, WithFormat
|
|
|
55
56
|
}
|
|
56
57
|
export interface GenerateImageCommandData extends CommandData, WithStruct {
|
|
57
58
|
outputFormat: 'png' | 'svg';
|
|
59
|
+
backgroundColor?: string;
|
|
58
60
|
}
|
|
59
|
-
export interface LayoutCommandData extends CommandData, WithStruct {
|
|
61
|
+
export interface LayoutCommandData extends CommandData, WithStruct, WithFormat {
|
|
60
62
|
}
|
|
61
|
-
export interface CleanCommandData extends CommandData, WithStruct, WithSelection {
|
|
63
|
+
export interface CleanCommandData extends CommandData, WithStruct, WithSelection, WithFormat {
|
|
62
64
|
}
|
|
63
|
-
export interface AromatizeCommandData extends CommandData, WithStruct {
|
|
65
|
+
export interface AromatizeCommandData extends CommandData, WithStruct, WithFormat {
|
|
64
66
|
}
|
|
65
|
-
export interface DearomatizeCommandData extends CommandData, WithStruct {
|
|
67
|
+
export interface DearomatizeCommandData extends CommandData, WithStruct, WithFormat {
|
|
66
68
|
}
|
|
67
|
-
export interface CalculateCipCommandData extends CommandData, WithStruct {
|
|
69
|
+
export interface CalculateCipCommandData extends CommandData, WithStruct, WithFormat {
|
|
68
70
|
}
|
|
69
71
|
export interface CalculateCommandData extends CommandData, WithStruct, WithSelection {
|
|
70
72
|
properties: Array<string>;
|
|
71
73
|
}
|
|
72
|
-
export interface AutomapCommandData extends CommandData, WithStruct {
|
|
74
|
+
export interface AutomapCommandData extends CommandData, WithStruct, WithFormat {
|
|
73
75
|
mode: string;
|
|
74
76
|
}
|
|
75
77
|
export interface CommandOptions {
|
|
76
|
-
[key: string]: string | number | boolean;
|
|
78
|
+
[key: string]: string | number | boolean | undefined;
|
|
77
79
|
}
|
|
78
80
|
export interface OutputMessage<T> {
|
|
79
81
|
hasError?: boolean;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/****************************************************************************
|
|
2
|
+
* Copyright 2021 EPAM Systems
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
***************************************************************************/
|
|
1
16
|
import { AromatizeData, AromatizeResult, AutomapData, AutomapResult, CalculateCipData, CalculateCipResult, CalculateData, CalculateResult, CheckData, CheckResult, CleanData, CleanResult, ConvertData, ConvertResult, DearomatizeData, DearomatizeResult, GenerateImageOptions, InfoResult, LayoutData, LayoutResult, RecognizeResult, StructService, StructServiceOptions } from 'ketcher-core';
|
|
2
17
|
declare class IndigoService implements StructService {
|
|
3
18
|
private readonly defaultOptions;
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ketcher-standalone",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Web-based molecule sketcher",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "http://lifescience.opensource.epam.com/ketcher",
|
|
@@ -23,24 +23,24 @@
|
|
|
23
23
|
},
|
|
24
24
|
"main": "dist/index.js",
|
|
25
25
|
"module": "dist/index.modern.js",
|
|
26
|
+
"types": "dist/index.d.ts",
|
|
26
27
|
"source": "src/index.ts",
|
|
27
28
|
"engines": {
|
|
28
|
-
"node": ">=
|
|
29
|
+
"node": ">=14"
|
|
29
30
|
},
|
|
30
31
|
"scripts": {
|
|
31
32
|
"build": "cross-env NODE_ENV=production rollup -c -m true --silent",
|
|
32
33
|
"start": "cross-env NODE_ENV=development rollup -c -m true -w",
|
|
33
|
-
"test": "run-s
|
|
34
|
-
"test:build": "run-s build",
|
|
34
|
+
"test": "run-s prettier test:lint test:unit",
|
|
35
35
|
"test:lint": "eslint src --ext .ts,.tsx,.js,.jsx",
|
|
36
|
-
"test:unit": "
|
|
37
|
-
"test:watch": "react-scripts test --env=jsdom",
|
|
36
|
+
"test:unit": "jest --passWithNoTests",
|
|
38
37
|
"prettier": "prettier --check \"src/**/*.{js,jsx,json,ts,tsx}\"",
|
|
39
38
|
"prettier:write": "prettier --write \"src/**/*.{js,jsx,json,ts,tsx}\""
|
|
40
39
|
},
|
|
41
40
|
"dependencies": {
|
|
42
41
|
"@babel/runtime": "^7.12.5",
|
|
43
|
-
"ketcher
|
|
42
|
+
"indigo-ketcher": "1.6.1",
|
|
43
|
+
"ketcher-core": "workspace:*"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@babel/core": "^7.12.3",
|
|
@@ -51,14 +51,12 @@
|
|
|
51
51
|
"@babel/preset-typescript": "^7.12.1",
|
|
52
52
|
"@rollup/plugin-babel": "^5.2.1",
|
|
53
53
|
"@rollup/plugin-commonjs": "^16.0.0",
|
|
54
|
-
"@rollup/plugin-json": "^4.1.0",
|
|
55
54
|
"@rollup/plugin-node-resolve": "^10.0.0",
|
|
56
|
-
"@rollup/plugin-replace": "^2.3.4",
|
|
57
55
|
"@rollup/plugin-strip": "^2.0.0",
|
|
58
56
|
"@testing-library/jest-dom": "^4.2.4",
|
|
59
57
|
"@testing-library/react": "^9.5.0",
|
|
60
58
|
"@testing-library/user-event": "^7.2.1",
|
|
61
|
-
"@types/jest": "^
|
|
59
|
+
"@types/jest": "^26.0.24",
|
|
62
60
|
"@types/node": "^12.12.38",
|
|
63
61
|
"@typescript-eslint/eslint-plugin": "^4.0.0",
|
|
64
62
|
"@typescript-eslint/parser": "^4.0.0",
|
|
@@ -72,19 +70,18 @@
|
|
|
72
70
|
"eslint-plugin-promise": "^4.2.1",
|
|
73
71
|
"eslint-plugin-react-hooks": "^4.0.8",
|
|
74
72
|
"eslint-plugin-testing-library": "^3.9.0",
|
|
73
|
+
"jest": "26.6.0",
|
|
75
74
|
"npm-run-all": "^4.1.5",
|
|
76
75
|
"prettier": "^2.0.4",
|
|
77
|
-
"react-scripts": "^3.4.1",
|
|
78
76
|
"rollup": "^2.33.1",
|
|
79
77
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
80
78
|
"rollup-plugin-copy": "^3.3.0",
|
|
81
79
|
"rollup-plugin-delete": "^2.0.0",
|
|
82
80
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
83
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
84
81
|
"rollup-plugin-typescript2": "^0.29.0",
|
|
85
82
|
"rollup-plugin-visualizer": "^4.2.0",
|
|
86
83
|
"rollup-plugin-web-worker-loader": "^1.6.0",
|
|
87
|
-
"typescript": "^4.
|
|
84
|
+
"typescript": "^4.4.3"
|
|
88
85
|
},
|
|
89
86
|
"files": [
|
|
90
87
|
"dist"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|