ketcher-react 2.18.0-rc.2 → 2.18.0-rc.3

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.
@@ -497,7 +497,7 @@ declare const config: {
497
497
  hidden: (options: any) => boolean;
498
498
  };
499
499
  clear: {
500
- shortcut: string;
500
+ shortcut: string[];
501
501
  title: string;
502
502
  action: {
503
503
  thunk: (dispatch: any, getState: any) => void;
@@ -0,0 +1,16 @@
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
+ export declare const editorOptionsSelector: (state: any) => any;
@@ -0,0 +1,16 @@
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
+ export declare const serverSelector: (state: any) => any;
@@ -16,6 +16,7 @@
16
16
  import { Struct } from 'ketcher-core';
17
17
  export declare function onAction(action: any): any;
18
18
  export declare function loadStruct(struct: any): (_dispatch: any, getState: any) => void;
19
+ export declare function parseStruct(struct: string | Struct, server: any, options?: any): Promise<Struct>;
19
20
  export declare function removeStructAction(): {
20
21
  type: string;
21
22
  action?: Record<string, unknown>;
@@ -1,16 +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
1
  export function fileOpener(server: any): Promise<any>;
@@ -0,0 +1,23 @@
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
+ export declare type CDXStructuresViewerProps = {
17
+ structList?: string[];
18
+ inputHandler: (str: string) => void;
19
+ structStr: string;
20
+ fileName: string;
21
+ };
22
+ export declare const CDXStructuresViewer: ({ structList, inputHandler, fileName, }: CDXStructuresViewerProps) => import("react/jsx-runtime").JSX.Element;
23
+ export default CDXStructuresViewer;
@@ -0,0 +1,2 @@
1
+ import CDXStructuresViewer from './CDXStructuresViewer';
2
+ export default CDXStructuresViewer;
@@ -17,15 +17,17 @@ import { FC } from 'react';
17
17
  import { AnalyzingFileProps } from './AnalyzingFile';
18
18
  import { OpenOptionsProps } from './OpenOptions';
19
19
  import { TextEditorProps } from './TextEditor';
20
+ import { CDXStructuresViewerProps } from './CDXStructuresViewer/CDXStructuresViewer';
20
21
  declare type ViewStates = {
21
22
  idle: string;
22
23
  textEditor: string;
23
24
  imageRec: string;
25
+ presentationViewer: string;
24
26
  };
25
27
  declare type SwitchProps = {
26
28
  currentState: string;
27
29
  states: ViewStates;
28
30
  isAnalyzingFile: boolean;
29
- } & OpenOptionsProps & TextEditorProps & AnalyzingFileProps;
31
+ } & OpenOptionsProps & TextEditorProps & AnalyzingFileProps & CDXStructuresViewerProps;
30
32
  export declare const ViewSwitcher: FC<SwitchProps>;
31
33
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ketcher-react",
3
- "version": "2.18.0-rc.2",
3
+ "version": "2.18.0-rc.3",
4
4
  "description": "Web-based molecule sketcher",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "http://lifescience.opensource.epam.com/ketcher",
@@ -53,6 +53,7 @@
53
53
  "@emotion/styled": "^11.6.0",
54
54
  "@mui/material": "^5.2.4",
55
55
  "ajv": "^8.10.0",
56
+ "cfb": "^1.2.2",
56
57
  "clsx": "^1.1.1",
57
58
  "draft-js": "^0.11.7",
58
59
  "draft-js-custom-styles": "^2.1.1",
@@ -1 +0,0 @@
1
- export declare function shortcutStr(shortcut?: string | string[]): string;