ketcher-react 2.14.0-rc.5 → 2.15.0-rc.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.
@@ -18,4 +18,5 @@ export declare const supportedSGroupTypes: {
18
18
  readonly SRU: "SRU";
19
19
  readonly SUP: "SUP";
20
20
  readonly DAT: "DAT";
21
+ readonly GEN: "GEN";
21
22
  };
@@ -1,7 +1,7 @@
1
- import { Atom } from 'ketcher-core';
1
+ import { Atom, AtomPropertiesInContextMenu } from 'ketcher-core';
2
2
  export declare function isAtomsArray(selectedElements: Atom | Atom[]): boolean;
3
3
  export declare function updateSelectedAtoms({ atoms, changeAtomPromise, editor, }: {
4
4
  atoms: number[];
5
5
  editor: any;
6
- changeAtomPromise: Promise<Atom>;
6
+ changeAtomPromise: Promise<Atom> | PromiseLike<AtomPropertiesInContextMenu>;
7
7
  }): void;
@@ -1,8 +1,28 @@
1
- export function initLib(lib: any): {
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 { SdfItem } from 'ketcher-core';
17
+ import { AnyAction, Dispatch } from 'redux';
18
+ interface TemplateLibrary {
2
19
  type: string;
3
20
  data: {
4
- lib: any;
21
+ lib: SdfItem[];
5
22
  };
6
- };
7
- export default function initTmplLib(dispatch: any, baseUrl: any, cacheEl: any): Promise<void>;
8
- export function prefetchStatic(url: any): Promise<string>;
23
+ }
24
+ export declare function initLib(lib: SdfItem[]): TemplateLibrary;
25
+ export default function initTmplLib(dispatch: Dispatch<AnyAction>, baseUrl: string, cacheEl: Element): Promise<void>;
26
+ export declare function reinitializeTemplateLibrary(): void;
27
+ export declare function prefetchStatic(url: string): Promise<string>;
28
+ export {};
@@ -0,0 +1,10 @@
1
+ interface SavedOptions {
2
+ ignoreChiralFlag?: boolean;
3
+ }
4
+ export declare class OptionsManager {
5
+ static getOptions(): SavedOptions;
6
+ static saveSettings(settings: SavedOptions): void;
7
+ static get ignoreChiralFlag(): boolean | undefined;
8
+ static set ignoreChiralFlag(ignoreChiralFlag: boolean | undefined);
9
+ }
10
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ketcher-react",
3
- "version": "2.14.0-rc.5",
3
+ "version": "2.15.0-rc.2",
4
4
  "description": "Web-based molecule sketcher",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "http://lifescience.opensource.epam.com/ketcher",