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.
@@ -0,0 +1,3 @@
1
+ export declare const TOOLTIP_DELAY = 300;
2
+ export declare function showTooltip(editor: any, infoPanelData: any): void;
3
+ export declare function showFunctionalGroupsTooltip(editor: any): void;
@@ -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 function highlightFG(dispatch: any, group: any): void;
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';
@@ -38,6 +38,7 @@ interface DialogProps {
38
38
  interface DialogCallProps {
39
39
  result?: () => any;
40
40
  valid?: () => boolean;
41
+ children: React.ReactNode;
41
42
  }
42
43
  declare type Props = DialogProps & DialogCallProps;
43
44
  declare const Dialog: FC<Props>;
@@ -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": "workspace:*",
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",