ketcher-react 2.8.0-rc.3 → 2.8.0-rc.3-dev.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.
- package/dist/index.js +239 -167
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +232 -161
- package/dist/index.modern.js.map +1 -1
- package/dist/script/editor/utils/functionalGroupsTooltip.d.ts +3 -0
- package/dist/script/ui/dialog/template/TemplateDialog.d.ts +2 -1
- package/dist/script/ui/state/functionalGroups/index.d.ts +1 -1
- package/dist/script/ui/utils/index.d.ts +8 -0
- package/dist/script/ui/views/components/Dialog/Dialog.d.ts +1 -0
- package/dist/script/ui/views/components/StructEditor/InfoPanel.d.ts +2 -2
- package/package.json +2 -2
|
@@ -22,6 +22,7 @@ interface TemplateLibProps {
|
|
|
22
22
|
selected: Template | null;
|
|
23
23
|
mode: string;
|
|
24
24
|
tab: number;
|
|
25
|
+
initialTab: number;
|
|
25
26
|
saltsAndSolvents: Template[];
|
|
26
27
|
renderOptions?: any;
|
|
27
28
|
}
|
|
@@ -39,5 +40,5 @@ interface TemplateLibCallProps {
|
|
|
39
40
|
declare type Props = TemplateLibProps & TemplateLibCallProps;
|
|
40
41
|
declare const _default: import("react-redux").ConnectedComponent<FC<Props>, import("react-redux").Omit<TemplateLibProps & TemplateLibCallProps & {
|
|
41
42
|
children?: import("react").ReactNode;
|
|
42
|
-
}, "onFilter" | "onTabChange" | "onSelect" | "onChangeGroup" | "onAttach" | "onCancel" | "onDelete" | "renderOptions" | "functionalGroups" | "saltsAndSolvents"> & TemplateLibProps & TemplateLibCallProps>;
|
|
43
|
+
}, "onFilter" | "onTabChange" | "onSelect" | "onChangeGroup" | "onAttach" | "onCancel" | "onDelete" | "initialTab" | "renderOptions" | "functionalGroups" | "saltsAndSolvents"> & TemplateLibProps & TemplateLibCallProps>;
|
|
43
44
|
export default _default;
|
|
@@ -20,6 +20,6 @@ interface FGState {
|
|
|
20
20
|
mode: string;
|
|
21
21
|
}
|
|
22
22
|
declare const functionalGroupsReducer: (state: FGState | undefined, { type, payload }: AnyAction) => any;
|
|
23
|
-
export declare
|
|
23
|
+
export declare const highlightFG: (...args: any[]) => void;
|
|
24
24
|
export declare function initFGTemplates(): (dispatch: any) => Promise<void>;
|
|
25
25
|
export default functionalGroupsReducer;
|
|
@@ -3,5 +3,13 @@ export declare function greekify(str: string): string;
|
|
|
3
3
|
export declare function filterLib(lib: any, filter: string): {};
|
|
4
4
|
export declare function filterFGLib(lib: any, filter: any): {};
|
|
5
5
|
export declare const getSelectOptionsFromSchema: (schema: any) => Array<Option>;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a function, which is not called if the current argument is the same as the last one
|
|
8
|
+
* @param func function to be debounced
|
|
9
|
+
* @param delay delay in ms
|
|
10
|
+
* @param skipArguments indexes in arguments array to skip for comparison
|
|
11
|
+
* @returns debounced function, which is not called with previous argument
|
|
12
|
+
*/
|
|
13
|
+
export declare function memoizedDebounce(func: any, delay?: number, skipArguments?: number[]): (...args: any[]) => void;
|
|
6
14
|
export { RenderStruct } from './renderStruct';
|
|
7
15
|
export { fileOpener } from './fileOpener';
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
import { FC } from 'react';
|
|
17
17
|
import { Render, Struct, SGroup } from 'ketcher-core';
|
|
18
18
|
interface InfoPanelProps {
|
|
19
|
-
clientX: number;
|
|
20
|
-
clientY: number;
|
|
19
|
+
clientX: number | undefined;
|
|
20
|
+
clientY: number | undefined;
|
|
21
21
|
render: Render;
|
|
22
22
|
groupStruct: Struct;
|
|
23
23
|
sGroup: SGroup;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ketcher-react",
|
|
3
|
-
"version": "2.8.0-rc.3",
|
|
3
|
+
"version": "2.8.0-rc.3-dev.2",
|
|
4
4
|
"description": "Web-based molecule sketcher",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "http://lifescience.opensource.epam.com/ketcher",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"font-face-observer": "^1.0.0",
|
|
59
59
|
"hoist-non-react-statics": "^3.3.2",
|
|
60
60
|
"intersection-observer": "^0.12.0",
|
|
61
|
-
"ketcher-core": "
|
|
61
|
+
"ketcher-core": "2.8.0-rc.3-dev.1",
|
|
62
62
|
"lodash": "^4.17.21",
|
|
63
63
|
"miew-react": "^1.0.0",
|
|
64
64
|
"react-colorful": "^5.4.0",
|