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.
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +9 -0
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.test.d.ts +16 -0
- package/dist/constants.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +467 -239
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +469 -242
- package/dist/index.modern.js.map +1 -1
- package/dist/script/ui/state/constants.d.ts +1 -0
- package/dist/script/ui/state/modal/atoms.d.ts +2 -2
- package/dist/script/ui/state/templates/init-lib.d.ts +25 -5
- package/dist/script/ui/utils/optionsManager.d.ts +10 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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:
|
|
21
|
+
lib: SdfItem[];
|
|
5
22
|
};
|
|
6
|
-
}
|
|
7
|
-
export
|
|
8
|
-
export function
|
|
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 {};
|