ketcher-react 2.17.0-rc.3 → 2.18.0-rc.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.
@@ -75,8 +75,8 @@ declare class Editor implements KetcherEditor {
75
75
  setOrigin(): void;
76
76
  tool(name?: any, opts?: any): Tool | null;
77
77
  clear(): void;
78
- renderAndRecoordinateStruct(struct: Struct): Struct;
79
- struct(value?: Struct): Struct;
78
+ renderAndRecoordinateStruct(struct: Struct, needToCenterStruct?: boolean): Struct;
79
+ struct(value?: Struct, needToCenterStruct?: boolean): Struct;
80
80
  structToAddFragment(value: Struct): Struct;
81
81
  setOptions(opts: string): false | import("ketcher-core/dist/application/render/render.types").RenderOptions;
82
82
  options(value?: any): import("ketcher-core/dist/application/render/render.types").RenderOptions;
@@ -0,0 +1,5 @@
1
+ import { Editor } from '../../Editor';
2
+ declare const isMacroMolecule: (editor: Editor, id: number) => boolean;
3
+ declare const isMergingToMacroMolecule: (editor: Editor, dragCtx: any) => boolean;
4
+ declare const isBondingWithMacroMolecule: (editor: Editor, event: MouseEvent) => boolean | undefined;
5
+ export { isBondingWithMacroMolecule, isMacroMolecule, isMergingToMacroMolecule, };
@@ -26,7 +26,7 @@ declare class SelectTool implements Tool {
26
26
  readonly isMoving = false;
27
27
  constructor(editor: Editor, mode: SelectMode);
28
28
  isSelectionRunning(): boolean;
29
- mousedown(event: any): boolean;
29
+ mousedown(event: any): true | undefined;
30
30
  mousemove(event: any): boolean;
31
31
  mouseup(event: any): void;
32
32
  dblclick(event: any): true | undefined;
@@ -488,6 +488,14 @@ 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
500
  shortcut: string;
493
501
  title: string;
@@ -1,125 +1,89 @@
1
1
  export default config;
2
- declare namespace config {
3
- namespace layout {
4
- const shortcut: string;
5
- const title: string;
6
- namespace action {
7
- const thunk: (dispatch: any, getState: any) => void;
8
- }
9
- function disabled(editor: any, server: any, options: any): boolean;
10
- function hidden(options: any): boolean;
11
- }
12
- namespace clean {
13
- const shortcut_1: string;
14
- export { shortcut_1 as shortcut };
15
- const title_1: string;
16
- export { title_1 as title };
17
- export namespace action_1 {
18
- const thunk_1: (dispatch: any, getState: any) => void;
19
- export { thunk_1 as thunk };
20
- }
21
- export { action_1 as action };
22
- export function disabled_1(editor: any, server: any, options: any): boolean;
23
- export { disabled_1 as disabled };
24
- export function hidden_1(options: any): boolean;
25
- export { hidden_1 as hidden };
26
- }
27
- namespace arom {
28
- const shortcut_2: string;
29
- export { shortcut_2 as shortcut };
30
- const title_2: string;
31
- export { title_2 as title };
32
- export namespace action_2 {
33
- const thunk_2: (dispatch: any, getState: any) => void;
34
- export { thunk_2 as thunk };
35
- }
36
- export { action_2 as action };
37
- export function disabled_2(editor: any, server: any, options: any): boolean;
38
- export { disabled_2 as disabled };
39
- export function hidden_2(options: any): boolean;
40
- export { hidden_2 as hidden };
41
- }
42
- namespace dearom {
43
- const shortcut_3: string;
44
- export { shortcut_3 as shortcut };
45
- const title_3: string;
46
- export { title_3 as title };
47
- export namespace action_3 {
48
- const thunk_3: (dispatch: any, getState: any) => void;
49
- export { thunk_3 as thunk };
50
- }
51
- export { action_3 as action };
52
- export function disabled_3(editor: any, server: any, options: any): boolean;
53
- export { disabled_3 as disabled };
54
- export function hidden_3(options: any): boolean;
55
- export { hidden_3 as hidden };
56
- }
57
- namespace cip {
58
- const shortcut_4: string;
59
- export { shortcut_4 as shortcut };
60
- const title_4: string;
61
- export { title_4 as title };
62
- export namespace action_4 {
63
- const thunk_4: (dispatch: any, getState: any) => void;
64
- export { thunk_4 as thunk };
65
- }
66
- export { action_4 as action };
67
- export function disabled_4(editor: any, server: any, options: any): boolean;
68
- export { disabled_4 as disabled };
69
- export function hidden_4(options: any): boolean;
70
- export { hidden_4 as hidden };
71
- }
72
- namespace check {
73
- const shortcut_5: string;
74
- export { shortcut_5 as shortcut };
75
- const title_5: string;
76
- export { title_5 as title };
77
- export namespace action_5 {
78
- const dialog: string;
79
- }
80
- export { action_5 as action };
81
- export function disabled_5(editor: any, server: any, options: any): boolean;
82
- export { disabled_5 as disabled };
83
- export function hidden_5(options: any): boolean;
84
- export { hidden_5 as hidden };
85
- }
86
- namespace analyse {
87
- const shortcut_6: string;
88
- export { shortcut_6 as shortcut };
89
- const title_6: string;
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
+ };
@@ -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.17.0-rc.3",
3
+ "version": "2.18.0-rc.2",
4
4
  "description": "Web-based molecule sketcher",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "http://lifescience.opensource.epam.com/ketcher",
@@ -1,7 +0,0 @@
1
- export function isControlKey(event: any): any;
2
- export default keyNorm;
3
- declare function keyNorm(obj: any, ...args: any[]): any;
4
- declare namespace keyNorm {
5
- export { lookup };
6
- }
7
- declare function lookup(map: any, event: any): any;