ketcher-react 2.7.0-rc1 → 2.7.1
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/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +3644 -19273
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3677 -19303
- package/dist/index.modern.js.map +1 -1
- package/dist/script/editor/Editor.d.ts +7 -1
- package/dist/script/editor/tool/sgroup.d.ts +1 -1
- package/dist/script/ui/component/structrender.d.ts +1 -1
- package/dist/script/ui/data/schema/sdata-schema.d.ts +1 -1
- package/dist/script/ui/dialog/template/TemplateDialog.d.ts +1 -1
- package/dist/script/ui/dialog/template/useSaltsAndSolvets.d.ts +2 -0
- package/dist/script/ui/state/editor/index.d.ts +1 -1
- package/dist/script/ui/state/functionalGroups/index.d.ts +1 -1
- package/dist/script/ui/state/handleHotkeysOverAtom.d.ts +7 -0
- package/dist/script/ui/state/modal/sdata.d.ts +1 -1
- package/dist/script/ui/state/saltsAndSolvents/index.d.ts +1 -1
- package/dist/script/ui/utils/index.d.ts +3 -2
- package/dist/script/ui/utils/renderStruct.d.ts +9 -0
- package/dist/script/ui/views/components/StructEditor/InfoPanel.d.ts +28 -1
- package/dist/script/ui/views/modal/components/process/Analyse/Analyse.d.ts +1 -1
- package/package.json +2 -1
|
@@ -33,6 +33,10 @@ declare class Editor implements KetcherEditor {
|
|
|
33
33
|
errorHandler: ((message: string) => void) | null;
|
|
34
34
|
highlights: Highlighter;
|
|
35
35
|
hoverIcon: any;
|
|
36
|
+
lastCursorPosition: {
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
};
|
|
36
40
|
event: {
|
|
37
41
|
message: Subscription;
|
|
38
42
|
elementEdit: PipelineSubscription;
|
|
@@ -57,6 +61,8 @@ declare class Editor implements KetcherEditor {
|
|
|
57
61
|
isDitrty(): boolean;
|
|
58
62
|
setOrigin(): void;
|
|
59
63
|
tool(name?: any, opts?: any): any;
|
|
64
|
+
updateHoverIconPosition(): void;
|
|
65
|
+
createHoverIcon(): void;
|
|
60
66
|
clear(): void;
|
|
61
67
|
renderAndRecoordinateStruct(struct: Struct): Struct;
|
|
62
68
|
struct(value?: Struct): Struct;
|
|
@@ -66,7 +72,7 @@ declare class Editor implements KetcherEditor {
|
|
|
66
72
|
zoom(value?: any): any;
|
|
67
73
|
selection(ci?: any): Selection | null;
|
|
68
74
|
hover(ci: any, newTool?: any, event?: PointerEvent): void;
|
|
69
|
-
update(action: Action | true, ignoreHistory?:
|
|
75
|
+
update(action: Action | true, ignoreHistory?: boolean): void;
|
|
70
76
|
historySize(): {
|
|
71
77
|
undo: any;
|
|
72
78
|
redo: number;
|
|
@@ -26,6 +26,6 @@ declare class SGroupTool {
|
|
|
26
26
|
mouseleave(event: any): void;
|
|
27
27
|
mouseup(event: any): void;
|
|
28
28
|
cancel(): void;
|
|
29
|
+
static sgroupDialog(editor: any, id: any, defaultType: any): void;
|
|
29
30
|
}
|
|
30
|
-
export declare function sgroupDialog(editor: any, id: any, defaultType: any): void;
|
|
31
31
|
export default SGroupTool;
|
|
@@ -24,7 +24,7 @@ interface StructRenderProps {
|
|
|
24
24
|
declare class StructRender extends Component<StructRenderProps> {
|
|
25
25
|
tagRef: React.RefObject<HTMLElement>;
|
|
26
26
|
constructor(props: any);
|
|
27
|
-
shouldComponentUpdate(previousProps: any):
|
|
27
|
+
shouldComponentUpdate(previousProps: any): boolean;
|
|
28
28
|
update(): void;
|
|
29
29
|
componentDidMount(): void;
|
|
30
30
|
componentDidUpdate(): void;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @param fieldName? { string }
|
|
8
8
|
* @returns { string }
|
|
9
9
|
*/
|
|
10
|
-
export function getSdataDefault(context: any, fieldName: any): string;
|
|
10
|
+
export function getSdataDefault(schema: {} | undefined, context: any, fieldName: any): string;
|
|
11
11
|
export namespace sdataCustomSchema {
|
|
12
12
|
const key: string;
|
|
13
13
|
const type: string;
|
|
@@ -21,5 +21,5 @@ interface FGState {
|
|
|
21
21
|
}
|
|
22
22
|
declare const functionalGroupsReducer: (state: FGState | undefined, { type, payload }: AnyAction) => any;
|
|
23
23
|
export declare function highlightFG(dispatch: any, group: any): void;
|
|
24
|
-
export declare function initFGTemplates(
|
|
24
|
+
export declare function initFGTemplates(): (dispatch: any) => Promise<void>;
|
|
25
25
|
export default functionalGroupsReducer;
|
|
@@ -19,5 +19,5 @@ interface SaltsAndSolventsState {
|
|
|
19
19
|
mode: string;
|
|
20
20
|
}
|
|
21
21
|
declare const saltsAndSolventsReducer: (state: SaltsAndSolventsState | undefined, { type, payload }: AnyAction) => any;
|
|
22
|
-
export declare function initSaltsAndSolventsTemplates(
|
|
22
|
+
export declare function initSaltsAndSolventsTemplates(): (dispatch: any, getState: any) => Promise<void>;
|
|
23
23
|
export default saltsAndSolventsReducer;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Option } from '../component/form/Select';
|
|
2
2
|
export declare function greekify(str: string): string;
|
|
3
|
-
export declare function filterLib(lib: any, filter:
|
|
3
|
+
export declare function filterLib(lib: any, filter: string): {};
|
|
4
4
|
export declare function filterFGLib(lib: any, filter: any): {};
|
|
5
|
-
export { fileOpener } from './fileOpener';
|
|
6
5
|
export declare const getSelectOptionsFromSchema: (schema: any) => Array<Option>;
|
|
6
|
+
export { RenderStruct } from './renderStruct';
|
|
7
|
+
export { fileOpener } from './fileOpener';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Struct } from 'ketcher-core';
|
|
2
|
+
export declare class RenderStruct {
|
|
3
|
+
/**
|
|
4
|
+
* for S-Groups we want to show expanded structure
|
|
5
|
+
* without brackets
|
|
6
|
+
*/
|
|
7
|
+
static prepareStruct(struct: Struct): Struct;
|
|
8
|
+
static render(el: HTMLElement | null, struct: Struct | null, options?: any): void;
|
|
9
|
+
}
|
|
@@ -1,2 +1,29 @@
|
|
|
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
|
+
import { FC } from 'react';
|
|
17
|
+
import { Render, Struct, SGroup } from 'ketcher-core';
|
|
18
|
+
interface InfoPanelProps {
|
|
19
|
+
clientX: number;
|
|
20
|
+
clientY: number;
|
|
21
|
+
render: Render;
|
|
22
|
+
groupStruct: Struct;
|
|
23
|
+
sGroup: SGroup;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
declare const _default: import("react-redux").ConnectedComponent<FC<InfoPanelProps>, import("react-redux").Omit<InfoPanelProps & {
|
|
27
|
+
children?: import("react").ReactNode;
|
|
28
|
+
}, "render" | "clientX" | "clientY" | "groupStruct" | "sGroup">>;
|
|
2
29
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default Analyse;
|
|
2
|
-
declare const Analyse: import("react-redux").ConnectedComponent<typeof AnalyseDialog, import("react-redux").Omit<any, "values" | "
|
|
2
|
+
declare const Analyse: import("react-redux").ConnectedComponent<typeof AnalyseDialog, import("react-redux").Omit<any, "values" | "onAnalyse" | "round" | "loading" | "onChangeRound">>;
|
|
3
3
|
declare class AnalyseDialog extends Component<any, any, any> {
|
|
4
4
|
static contextType: import("react").Context<import("../../../../../../../contexts").IErrorsContext>;
|
|
5
5
|
constructor(props: any);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ketcher-react",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "Web-based molecule sketcher",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "http://lifescience.opensource.epam.com/ketcher",
|
|
@@ -125,6 +125,7 @@
|
|
|
125
125
|
"rollup-plugin-delete": "^2.0.0",
|
|
126
126
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
127
127
|
"rollup-plugin-postcss": "^4.0.2",
|
|
128
|
+
"rollup-plugin-string": "^3.0.0",
|
|
128
129
|
"rollup-plugin-typescript2": "^0.31.1",
|
|
129
130
|
"rollup-plugin-visualizer": "^5.5.2",
|
|
130
131
|
"stylelint": "13.13.1",
|