ketcher-react 2.18.0-rc.1 → 2.18.0-rc.3
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/components/Icon/utils/iconNameToIcon.d.ts +1 -0
- package/dist/components/StructRender/types.d.ts +6 -4
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +1416 -1156
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1414 -1155
- package/dist/index.modern.js.map +1 -1
- package/dist/script/ui/action/index.d.ts +9 -1
- package/dist/script/ui/action/server.d.ts +88 -124
- package/dist/script/ui/state/editor/selectors/index.d.ts +16 -0
- package/dist/script/ui/state/server/selectors/index.d.ts +16 -0
- package/dist/script/ui/state/shared.d.ts +1 -0
- package/dist/script/ui/utils/fileOpener.d.ts +0 -15
- package/dist/script/ui/views/modal/components/document/Open/components/CDXStructuresViewer/CDXStructuresViewer.d.ts +23 -0
- package/dist/script/ui/views/modal/components/document/Open/components/CDXStructuresViewer/index.d.ts +2 -0
- package/dist/script/ui/views/modal/components/document/Open/components/ViewSwitcher.d.ts +3 -1
- package/dist/script/ui/views/toolbars/TopToolbar/ExternalFuncControls.d.ts +2 -1
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.container.d.ts +1 -1
- package/dist/script/ui/views/toolbars/TopToolbar/TopToolbar.d.ts +2 -1
- package/package.json +2 -1
- package/dist/script/ui/views/toolbars/shortcutStr.d.ts +0 -1
|
@@ -488,8 +488,16 @@ declare const config: {
|
|
|
488
488
|
};
|
|
489
489
|
hidden: (options: any) => boolean;
|
|
490
490
|
};
|
|
491
|
+
'explicit-hydrogens': {
|
|
492
|
+
title: string;
|
|
493
|
+
action: {
|
|
494
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
495
|
+
};
|
|
496
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
497
|
+
hidden: (options: any) => boolean;
|
|
498
|
+
};
|
|
491
499
|
clear: {
|
|
492
|
-
shortcut: string;
|
|
500
|
+
shortcut: string[];
|
|
493
501
|
title: string;
|
|
494
502
|
action: {
|
|
495
503
|
thunk: (dispatch: any, getState: any) => void;
|
|
@@ -1,125 +1,89 @@
|
|
|
1
1
|
export default config;
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
export { title_6 as title };
|
|
91
|
-
export namespace action_6 {
|
|
92
|
-
const dialog_1: string;
|
|
93
|
-
export { dialog_1 as dialog };
|
|
94
|
-
}
|
|
95
|
-
export { action_6 as action };
|
|
96
|
-
export function disabled_6(editor: any, server: any, options: any): boolean;
|
|
97
|
-
export { disabled_6 as disabled };
|
|
98
|
-
export function hidden_6(options: any): boolean;
|
|
99
|
-
export { hidden_6 as hidden };
|
|
100
|
-
}
|
|
101
|
-
namespace recognize {
|
|
102
|
-
const title_7: string;
|
|
103
|
-
export { title_7 as title };
|
|
104
|
-
export namespace action_7 {
|
|
105
|
-
const dialog_2: string;
|
|
106
|
-
export { dialog_2 as dialog };
|
|
107
|
-
}
|
|
108
|
-
export { action_7 as action };
|
|
109
|
-
export function disabled_7(editor: any, server: any, options: any): boolean;
|
|
110
|
-
export { disabled_7 as disabled };
|
|
111
|
-
export function hidden_7(options: any): boolean;
|
|
112
|
-
export { hidden_7 as hidden };
|
|
113
|
-
}
|
|
114
|
-
namespace miew {
|
|
115
|
-
const title_8: string;
|
|
116
|
-
export { title_8 as title };
|
|
117
|
-
export namespace action_8 {
|
|
118
|
-
const dialog_3: string;
|
|
119
|
-
export { dialog_3 as dialog };
|
|
120
|
-
}
|
|
121
|
-
export { action_8 as action };
|
|
122
|
-
export function hidden_8(options: any): boolean;
|
|
123
|
-
export { hidden_8 as hidden };
|
|
124
|
-
}
|
|
125
|
-
}
|
|
2
|
+
declare const config: {
|
|
3
|
+
layout: {
|
|
4
|
+
shortcut: string;
|
|
5
|
+
title: string;
|
|
6
|
+
action: {
|
|
7
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
8
|
+
};
|
|
9
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
10
|
+
hidden: (options: any) => boolean;
|
|
11
|
+
};
|
|
12
|
+
clean: {
|
|
13
|
+
shortcut: string;
|
|
14
|
+
title: string;
|
|
15
|
+
action: {
|
|
16
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
17
|
+
};
|
|
18
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
19
|
+
hidden: (options: any) => boolean;
|
|
20
|
+
};
|
|
21
|
+
arom: {
|
|
22
|
+
shortcut: string;
|
|
23
|
+
title: string;
|
|
24
|
+
action: {
|
|
25
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
26
|
+
};
|
|
27
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
28
|
+
hidden: (options: any) => boolean;
|
|
29
|
+
};
|
|
30
|
+
dearom: {
|
|
31
|
+
shortcut: string;
|
|
32
|
+
title: string;
|
|
33
|
+
action: {
|
|
34
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
35
|
+
};
|
|
36
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
37
|
+
hidden: (options: any) => boolean;
|
|
38
|
+
};
|
|
39
|
+
cip: {
|
|
40
|
+
shortcut: string;
|
|
41
|
+
title: string;
|
|
42
|
+
action: {
|
|
43
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
44
|
+
};
|
|
45
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
46
|
+
hidden: (options: any) => boolean;
|
|
47
|
+
};
|
|
48
|
+
check: {
|
|
49
|
+
shortcut: string;
|
|
50
|
+
title: string;
|
|
51
|
+
action: {
|
|
52
|
+
dialog: string;
|
|
53
|
+
};
|
|
54
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
55
|
+
hidden: (options: any) => boolean;
|
|
56
|
+
};
|
|
57
|
+
analyse: {
|
|
58
|
+
shortcut: string;
|
|
59
|
+
title: string;
|
|
60
|
+
action: {
|
|
61
|
+
dialog: string;
|
|
62
|
+
};
|
|
63
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
64
|
+
hidden: (options: any) => boolean;
|
|
65
|
+
};
|
|
66
|
+
recognize: {
|
|
67
|
+
title: string;
|
|
68
|
+
action: {
|
|
69
|
+
dialog: string;
|
|
70
|
+
};
|
|
71
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
72
|
+
hidden: (options: any) => boolean;
|
|
73
|
+
};
|
|
74
|
+
miew: {
|
|
75
|
+
title: string;
|
|
76
|
+
action: {
|
|
77
|
+
dialog: string;
|
|
78
|
+
};
|
|
79
|
+
hidden: (options: any) => boolean;
|
|
80
|
+
};
|
|
81
|
+
'explicit-hydrogens': {
|
|
82
|
+
title: string;
|
|
83
|
+
action: {
|
|
84
|
+
thunk: (dispatch: any, getState: any) => void;
|
|
85
|
+
};
|
|
86
|
+
disabled: (editor: any, server: any, options: any) => boolean;
|
|
87
|
+
hidden: (options: any) => boolean;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
@@ -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 declare const editorOptionsSelector: (state: any) => any;
|
|
@@ -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 declare const serverSelector: (state: any) => any;
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { Struct } from 'ketcher-core';
|
|
17
17
|
export declare function onAction(action: any): any;
|
|
18
18
|
export declare function loadStruct(struct: any): (_dispatch: any, getState: any) => void;
|
|
19
|
+
export declare function parseStruct(struct: string | Struct, server: any, options?: any): Promise<Struct>;
|
|
19
20
|
export declare function removeStructAction(): {
|
|
20
21
|
type: string;
|
|
21
22
|
action?: Record<string, unknown>;
|
|
@@ -1,16 +1 @@
|
|
|
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
1
|
export function fileOpener(server: any): Promise<any>;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 declare type CDXStructuresViewerProps = {
|
|
17
|
+
structList?: string[];
|
|
18
|
+
inputHandler: (str: string) => void;
|
|
19
|
+
structStr: string;
|
|
20
|
+
fileName: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const CDXStructuresViewer: ({ structList, inputHandler, fileName, }: CDXStructuresViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default CDXStructuresViewer;
|
|
@@ -17,15 +17,17 @@ import { FC } from 'react';
|
|
|
17
17
|
import { AnalyzingFileProps } from './AnalyzingFile';
|
|
18
18
|
import { OpenOptionsProps } from './OpenOptions';
|
|
19
19
|
import { TextEditorProps } from './TextEditor';
|
|
20
|
+
import { CDXStructuresViewerProps } from './CDXStructuresViewer/CDXStructuresViewer';
|
|
20
21
|
declare type ViewStates = {
|
|
21
22
|
idle: string;
|
|
22
23
|
textEditor: string;
|
|
23
24
|
imageRec: string;
|
|
25
|
+
presentationViewer: string;
|
|
24
26
|
};
|
|
25
27
|
declare type SwitchProps = {
|
|
26
28
|
currentState: string;
|
|
27
29
|
states: ViewStates;
|
|
28
30
|
isAnalyzingFile: boolean;
|
|
29
|
-
} & OpenOptionsProps & TextEditorProps & AnalyzingFileProps;
|
|
31
|
+
} & OpenOptionsProps & TextEditorProps & AnalyzingFileProps & CDXStructuresViewerProps;
|
|
30
32
|
export declare const ViewSwitcher: FC<SwitchProps>;
|
|
31
33
|
export {};
|
|
@@ -23,6 +23,7 @@ interface ExternalFuncProps {
|
|
|
23
23
|
onCheck: () => void;
|
|
24
24
|
onAnalyse: () => void;
|
|
25
25
|
onMiew: () => void;
|
|
26
|
+
onToggleExplicitHydrogens: () => void;
|
|
26
27
|
disabledButtons: string[];
|
|
27
28
|
hiddenButtons: string[];
|
|
28
29
|
indigoVerification: boolean;
|
|
@@ -30,5 +31,5 @@ interface ExternalFuncProps {
|
|
|
30
31
|
[key in string]: string;
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
|
-
export declare const ExternalFuncControls: ({ isCollapsed, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse, onMiew, disabledButtons, indigoVerification, hiddenButtons, shortcuts, }: ExternalFuncProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare const ExternalFuncControls: ({ isCollapsed, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse, onMiew, onToggleExplicitHydrogens, disabledButtons, indigoVerification, hiddenButtons, shortcuts, }: ExternalFuncProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
35
|
export {};
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
declare const TopToolbarContainer: import("react-redux").ConnectedComponent<({ className, disabledButtons, indigoVerification, hiddenButtons, shortcuts, onClear, onFileOpen, onSave, onUndo, onRedo, onCopy, onCopyMol, onCopyKet, onCopyImage, onCut, onPaste, currentZoom, onZoom, onZoomIn, onZoomOut, onSettingsOpen, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse, onMiew, onFullscreen, onAbout, onHelp, togglerComponent, }: import("./TopToolbar").PanelProps) => import("react/jsx-runtime").JSX.Element, import("react-redux").Omit<import("./TopToolbar").PanelProps, "disabledButtons" | "indigoVerification" | "hiddenButtons" | "shortcuts" | "onClear" | "onFileOpen" | "onSave" | "onUndo" | "onRedo" | "onCopy" | "onCopyMol" | "onCopyKet" | "onCopyImage" | "onCut" | "onPaste" | "currentZoom" | "onZoom" | "onZoomIn" | "onZoomOut" | "onSettingsOpen" | "onLayout" | "onClean" | "onAromatize" | "onDearomatize" | "onCalculate" | "onCheck" | "onAnalyse" | "onMiew" | "onFullscreen" | "onAbout" | "onHelp">>;
|
|
16
|
+
declare const TopToolbarContainer: import("react-redux").ConnectedComponent<({ className, disabledButtons, indigoVerification, hiddenButtons, shortcuts, onClear, onFileOpen, onSave, onUndo, onRedo, onCopy, onCopyMol, onCopyKet, onCopyImage, onCut, onPaste, currentZoom, onZoom, onZoomIn, onZoomOut, onSettingsOpen, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse, onMiew, onToggleExplicitHydrogens, onFullscreen, onAbout, onHelp, togglerComponent, }: import("./TopToolbar").PanelProps) => import("react/jsx-runtime").JSX.Element, import("react-redux").Omit<import("./TopToolbar").PanelProps, "disabledButtons" | "indigoVerification" | "hiddenButtons" | "shortcuts" | "onClear" | "onFileOpen" | "onSave" | "onUndo" | "onRedo" | "onCopy" | "onCopyMol" | "onCopyKet" | "onCopyImage" | "onCut" | "onPaste" | "currentZoom" | "onZoom" | "onZoomIn" | "onZoomOut" | "onSettingsOpen" | "onLayout" | "onClean" | "onAromatize" | "onDearomatize" | "onCalculate" | "onCheck" | "onAnalyse" | "onMiew" | "onToggleExplicitHydrogens" | "onFullscreen" | "onAbout" | "onHelp">>;
|
|
17
17
|
export { TopToolbarContainer };
|
|
@@ -47,10 +47,11 @@ export interface PanelProps {
|
|
|
47
47
|
onCheck: VoidFunction;
|
|
48
48
|
onAnalyse: VoidFunction;
|
|
49
49
|
onMiew: VoidFunction;
|
|
50
|
+
onToggleExplicitHydrogens: VoidFunction;
|
|
50
51
|
onFullscreen: VoidFunction;
|
|
51
52
|
onAbout: VoidFunction;
|
|
52
53
|
onHelp: VoidFunction;
|
|
53
54
|
togglerComponent?: JSX.Element;
|
|
54
55
|
}
|
|
55
|
-
export declare const TopToolbar: ({ className, disabledButtons, indigoVerification, hiddenButtons, shortcuts, onClear, onFileOpen, onSave, onUndo, onRedo, onCopy, onCopyMol, onCopyKet, onCopyImage, onCut, onPaste, currentZoom, onZoom, onZoomIn, onZoomOut, onSettingsOpen, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse, onMiew, onFullscreen, onAbout, onHelp, togglerComponent, }: PanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export declare const TopToolbar: ({ className, disabledButtons, indigoVerification, hiddenButtons, shortcuts, onClear, onFileOpen, onSave, onUndo, onRedo, onCopy, onCopyMol, onCopyKet, onCopyImage, onCut, onPaste, currentZoom, onZoom, onZoomIn, onZoomOut, onSettingsOpen, onLayout, onClean, onAromatize, onDearomatize, onCalculate, onCheck, onAnalyse, onMiew, onToggleExplicitHydrogens, onFullscreen, onAbout, onHelp, togglerComponent, }: PanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
57
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ketcher-react",
|
|
3
|
-
"version": "2.18.0-rc.
|
|
3
|
+
"version": "2.18.0-rc.3",
|
|
4
4
|
"description": "Web-based molecule sketcher",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "http://lifescience.opensource.epam.com/ketcher",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"@emotion/styled": "^11.6.0",
|
|
54
54
|
"@mui/material": "^5.2.4",
|
|
55
55
|
"ajv": "^8.10.0",
|
|
56
|
+
"cfb": "^1.2.2",
|
|
56
57
|
"clsx": "^1.1.1",
|
|
57
58
|
"draft-js": "^0.11.7",
|
|
58
59
|
"draft-js-custom-styles": "^2.1.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function shortcutStr(shortcut?: string | string[]): string;
|