ketcher-react 2.15.0-rc.4 → 2.16.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/Buttons/IconButton/IconButton.d.ts +1 -1
- package/dist/components/Buttons/IconButton/types.d.ts +2 -0
- package/dist/components/Icon/types.d.ts +2 -2
- package/dist/components/Icon/utils/iconNameToIcon.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +3048 -1867
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3048 -1867
- package/dist/index.modern.js.map +1 -1
- package/dist/script/editor/tool/paste.d.ts +2 -0
- package/dist/script/editor/tool/select.d.ts +3 -1
- package/dist/script/editor/tool/sgroup.d.ts +2 -1
- package/dist/script/editor/tool/template.d.ts +7 -12
- package/dist/script/editor/tool/templatePreview.d.ts +42 -0
- package/dist/script/ui/action/index.d.ts +6 -6
- package/dist/script/ui/action/tools.d.ts +6 -6
- package/dist/script/ui/component/cliparea/cliparea.d.ts +3 -2
- package/dist/script/ui/component/form/MeasureInput/measure-input.d.ts +2 -1
- package/dist/script/ui/component/form/Select/Select.d.ts +3 -1
- package/dist/script/ui/component/form/form/form.d.ts +3 -1
- package/dist/script/ui/data/convert/keynorm.d.ts +1 -0
- package/dist/script/ui/data/convert/structconv.d.ts +12 -0
- package/dist/script/ui/data/schema/struct-schema.d.ts +298 -180
- package/dist/script/ui/state/constants.d.ts +1 -0
- package/dist/script/ui/state/hotkeys.d.ts +3 -3
- package/dist/script/ui/state/hotkeys.test.d.ts +1 -0
- package/dist/script/ui/state/modal/atoms.d.ts +2 -2
- package/dist/script/ui/state/modal/form.d.ts +14 -5
- package/dist/script/ui/views/components/Dialog/Dialog.d.ts +1 -0
- package/dist/script/ui/views/components/StructEditor/InfoTooltip.d.ts +23 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.container.d.ts +2 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/Atom.d.ts +2 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/AtomElement/AtomElement.d.ts +4 -0
- package/dist/script/ui/views/modal/components/toolbox/Atom/helper.d.ts +6 -0
- package/dist/script/ui/views/modal/components/toolbox/Bond/Bond.d.ts +6 -3
- package/package.json +3 -3
|
@@ -23,14 +23,21 @@ export namespace formsState {
|
|
|
23
23
|
const valid: boolean;
|
|
24
24
|
namespace result {
|
|
25
25
|
const label: string;
|
|
26
|
-
const charge:
|
|
26
|
+
const charge: null;
|
|
27
27
|
const explicitValence: number;
|
|
28
28
|
const hCount: number;
|
|
29
29
|
const invRet: number;
|
|
30
|
-
const isotope:
|
|
30
|
+
const isotope: null;
|
|
31
31
|
const radical: number;
|
|
32
32
|
const ringBondCount: number;
|
|
33
33
|
const substitutionCount: number;
|
|
34
|
+
const aromaticity: null;
|
|
35
|
+
const implicitHCount: null;
|
|
36
|
+
const ringMembership: null;
|
|
37
|
+
const ringSize: null;
|
|
38
|
+
const connectivity: null;
|
|
39
|
+
const chirality: null;
|
|
40
|
+
const customQuery: null;
|
|
34
41
|
}
|
|
35
42
|
}
|
|
36
43
|
namespace attachmentPoints {
|
|
@@ -60,9 +67,11 @@ export namespace formsState {
|
|
|
60
67
|
const valid_3: boolean;
|
|
61
68
|
export { valid_3 as valid };
|
|
62
69
|
export namespace result_3 {
|
|
63
|
-
const type: string;
|
|
64
|
-
const topology: number;
|
|
65
|
-
const center: number;
|
|
70
|
+
export const type: string;
|
|
71
|
+
export const topology: number;
|
|
72
|
+
export const center: number;
|
|
73
|
+
const customQuery_1: null;
|
|
74
|
+
export { customQuery_1 as customQuery };
|
|
66
75
|
}
|
|
67
76
|
export { result_3 as result };
|
|
68
77
|
}
|
|
@@ -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
|
+
import { FC } from 'react';
|
|
17
|
+
import { Render } from 'ketcher-core';
|
|
18
|
+
interface InfoPanelProps {
|
|
19
|
+
render: Render;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
declare const _default: import("react-redux").ConnectedComponent<FC<InfoPanelProps>, import("react-redux").Omit<InfoPanelProps, "render">>;
|
|
23
|
+
export default _default;
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
/// <reference types="react" />
|
|
17
17
|
declare const AtomContainer: import("react-redux").ConnectedComponent<import("react").FC<import("./Atom").AtomProps & {
|
|
18
18
|
isMultipleAtoms?: boolean | undefined;
|
|
19
|
+
isRestoredModal: boolean;
|
|
19
20
|
}>, import("react-redux").Omit<import("./Atom").AtomProps & {
|
|
20
21
|
isMultipleAtoms?: boolean | undefined;
|
|
22
|
+
isRestoredModal: boolean;
|
|
21
23
|
}, "formState">>;
|
|
22
24
|
export default AtomContainer;
|
|
@@ -29,9 +29,11 @@ interface AtomProps extends BaseCallProps, BaseProps {
|
|
|
29
29
|
stereoParity: number;
|
|
30
30
|
substitutionCount: number;
|
|
31
31
|
unsaturatedAtom: boolean;
|
|
32
|
+
customQuery: string;
|
|
32
33
|
}
|
|
33
34
|
declare type Props = AtomProps & {
|
|
34
35
|
isMultipleAtoms?: boolean;
|
|
36
|
+
isRestoredModal: boolean;
|
|
35
37
|
};
|
|
36
38
|
declare const Atom: FC<Props>;
|
|
37
39
|
export type { AtomProps };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AtomType } from 'ketcher-core';
|
|
2
|
+
export declare function atomValid(label: string, isMultipleAtoms: boolean, atomType: AtomType, isCustomQuery: boolean): boolean | "";
|
|
3
|
+
export declare function AtomListValid(value: string, atomType: AtomType, isCustomQuery: boolean): boolean;
|
|
4
|
+
export declare function pseudoAtomValid(value: string, atomType: AtomType, isCustomQuery: boolean): boolean | "";
|
|
5
|
+
export declare function chargeValid(charge: any, isMultipleAtoms: boolean, isCustomQuery: boolean): boolean | null;
|
|
6
|
+
export declare function customQueryValid(value: string, isCustomQuery: boolean): boolean;
|
|
@@ -15,10 +15,13 @@
|
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
/// <reference types="react" />
|
|
17
17
|
import { BaseCallProps, BaseProps } from '../../../modal.types';
|
|
18
|
-
interface
|
|
19
|
-
center: number;
|
|
20
|
-
topology: number;
|
|
18
|
+
interface BondSettings {
|
|
21
19
|
type: string;
|
|
20
|
+
topology: number | null;
|
|
21
|
+
center: number | null;
|
|
22
|
+
customQuery: string;
|
|
23
|
+
}
|
|
24
|
+
interface BondProps extends BaseProps, BondSettings {
|
|
22
25
|
}
|
|
23
26
|
declare type Props = BondProps & BaseCallProps;
|
|
24
27
|
declare const Bond: (props: Props) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ketcher-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.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",
|
|
@@ -111,9 +111,9 @@
|
|
|
111
111
|
"autoprefixer": "^10.2.5",
|
|
112
112
|
"babel-jest": "^27.4.5",
|
|
113
113
|
"cross-env": "^7.0.3",
|
|
114
|
-
"eslint": "^8.
|
|
114
|
+
"eslint": "^8.49.0",
|
|
115
115
|
"eslint-plugin-jest": "^25.3.0",
|
|
116
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
116
|
+
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
117
117
|
"eslint-plugin-react": "^7.27.1",
|
|
118
118
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
119
119
|
"eslint-plugin-testing-library": "^5.0.1",
|