ketcher-react 2.16.0-rc.2 → 2.16.0-rc.4

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.
@@ -11,7 +11,7 @@ declare class ClipArea extends Component<any, any, any> {
11
11
  mouseup: (event: any) => void;
12
12
  mousedown: (event: any) => void;
13
13
  copy: (event: any) => void;
14
- cut: (event: any) => void;
14
+ cut: (event: any) => Promise<void>;
15
15
  paste: (event: any) => void;
16
16
  keydown: (event: any) => Promise<void>;
17
17
  } | undefined;
@@ -0,0 +1,7 @@
1
+ /**
2
+ *
3
+ * Legacy browser API doesn't support async operations, so it is not possible
4
+ * to call indigo, when copy/cut/paste
5
+ */
6
+ export function isClipboardAPIAvailable(): boolean;
7
+ export function notifyCopyCut(): void;
@@ -17,7 +17,10 @@ export declare function initKeydownListener(element: any): (dispatch: any, getSt
17
17
  export declare function initClipboard(dispatch: any): {
18
18
  formats: any[];
19
19
  focused(): boolean;
20
- onCut(): {} | null;
21
- onCopy(): {} | null;
22
- onPaste(data: any, isSmarts: boolean): void;
20
+ onLegacyCut(): {} | null;
21
+ onCut(): Promise<{} | null | undefined>;
22
+ onLegacyCopy(): {} | null;
23
+ onCopy(): Promise<{} | null | undefined>;
24
+ onPaste(data: any, isSmarts: boolean): Promise<void | undefined>;
25
+ onLegacyPaste(data: any, isSmarts: boolean): void;
23
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ketcher-react",
3
- "version": "2.16.0-rc.2",
3
+ "version": "2.16.0-rc.4",
4
4
  "description": "Web-based molecule sketcher",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "http://lifescience.opensource.epam.com/ketcher",