ketcher-react 2.24.0 → 2.25.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/Icon/utils/iconNameToIcon.d.ts +2 -0
- package/dist/components/MonomerPreview/AmbiguousMonomerPreview/AmbiguousMonomerPreview.d.ts +9 -0
- package/dist/components/MonomerPreview/AmbiguousMonomerPreview/AmbiguousMonomerPreview.styles.d.ts +29 -0
- package/dist/components/MonomerPreview/AmbiguousMonomerPreview/index.d.ts +3 -0
- package/dist/components/MonomerPreview/AmbiguousMonomerPreview/types.d.ts +46 -0
- package/dist/components/MonomerPreview/calculatePreviewPosition.d.ts +28 -0
- package/dist/components/MonomerPreview/constants.d.ts +9 -0
- package/dist/components/MonomerPreview/index.d.ts +3 -0
- package/dist/components/StructRender/StructRender.d.ts +1 -1
- package/dist/components/StructRender/styles.d.ts +2 -0
- package/dist/components/StructRender/types.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +3751 -3036
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3740 -3038
- package/dist/index.modern.js.map +1 -1
- package/dist/script/builders/ketcher/ButtonName.d.ts +2 -1
- package/dist/script/editor/Editor.d.ts +7 -6
- package/dist/script/editor/shared/closest.types.d.ts +2 -2
- package/dist/script/editor/tool/arrow/arrow.types.d.ts +19 -0
- package/dist/script/editor/tool/arrow/arrowTool.d.ts +9 -0
- package/dist/script/editor/tool/arrow/commonArrow.d.ts +17 -0
- package/dist/script/editor/tool/arrow/multitailArrowAdd.d.ts +14 -0
- package/dist/script/editor/tool/arrow/multitailArrowMoveTool.d.ts +12 -0
- package/dist/script/editor/tool/arrow/reactionArrowAdd.d.ts +20 -0
- package/dist/script/editor/tool/arrow/reactionArrowMoveTool.d.ts +12 -0
- package/dist/script/editor/tool/helper/lasso.d.ts +3 -0
- package/dist/script/editor/tool/helper/locate.d.ts +2 -0
- package/dist/script/editor/tool/select.d.ts +5 -4
- package/dist/script/editor/utils/getItemCursor.d.ts +3 -0
- package/dist/script/ui/action/index.d.ts +16 -0
- package/dist/script/ui/action/tools.d.ts +16 -0
- package/dist/script/ui/component/form/MeasureInput/measure-input.d.ts +4 -1
- package/dist/script/ui/component/form/form/form.d.ts +3 -1
- package/dist/script/ui/data/schema/options-schema.d.ts +10 -0
- package/dist/script/ui/views/components/ContextMenu/ContextMenuTrigger.d.ts +2 -2
- package/dist/script/ui/views/components/ContextMenu/ContextMenuTrigger.utils.d.ts +4 -4
- package/dist/script/ui/views/components/ContextMenu/contextMenu.types.d.ts +37 -11
- package/dist/script/ui/views/components/ContextMenu/hooks/useAddAttachmentPoint.d.ts +3 -2
- package/dist/script/ui/views/components/ContextMenu/hooks/useAtomEdit.d.ts +3 -2
- package/dist/script/ui/views/components/ContextMenu/hooks/useAtomStereo.d.ts +3 -2
- package/dist/script/ui/views/components/ContextMenu/hooks/useBondEdit.d.ts +3 -2
- package/dist/script/ui/views/components/ContextMenu/hooks/useBondSGroupAttach.d.ts +3 -2
- package/dist/script/ui/views/components/ContextMenu/hooks/useBondSGroupEdit.d.ts +3 -2
- package/dist/script/ui/views/components/ContextMenu/hooks/useBondTypeChange.d.ts +3 -2
- package/dist/script/ui/views/components/ContextMenu/hooks/useDelete.d.ts +3 -2
- package/dist/script/ui/views/components/ContextMenu/hooks/useFunctionalGroupEoc.d.ts +3 -2
- package/dist/script/ui/views/components/ContextMenu/hooks/useFunctionalGroupRemove.d.ts +3 -2
- package/dist/script/ui/views/components/ContextMenu/hooks/useMultitailArrowTails.d.ts +11 -0
- package/dist/script/ui/views/components/ContextMenu/hooks/useRGroupAttachmentPointEdit.d.ts +3 -2
- package/dist/script/ui/views/components/ContextMenu/hooks/useRGroupAttachmentPointRemove.d.ts +3 -2
- package/dist/script/ui/views/components/ContextMenu/hooks/useRemoveAttachmentPoint.d.ts +3 -2
- package/dist/script/ui/views/components/ContextMenu/menuItems/AtomMenuItems.d.ts +2 -2
- package/dist/script/ui/views/components/ContextMenu/menuItems/BondMenuItems.d.ts +2 -2
- package/dist/script/ui/views/components/ContextMenu/menuItems/FunctionalGroupMenuItems.d.ts +2 -2
- package/dist/script/ui/views/components/ContextMenu/menuItems/MultitailArrowMenuItems.d.ts +2 -0
- package/dist/script/ui/views/components/ContextMenu/menuItems/RGroupAttachmentPointMenuItems.d.ts +2 -2
- package/dist/script/ui/views/components/ContextMenu/menuItems/SelectionMenuItems.d.ts +2 -2
- package/dist/script/ui/views/toolbars/toolbar.types.d.ts +2 -2
- package/package.json +1 -1
- package/dist/script/editor/tool/reactionarrow.d.ts +0 -31
|
@@ -130,6 +130,7 @@ export declare const iconNameToIcon: {
|
|
|
130
130
|
readonly 'reaction-arrow-filled-bow': ReactComponent;
|
|
131
131
|
readonly 'reaction-arrow-dashed-open-angle': ReactComponent;
|
|
132
132
|
readonly 'reaction-arrow-failed': ReactComponent;
|
|
133
|
+
readonly 'reaction-arrow-retrosynthetic': ReactComponent;
|
|
133
134
|
readonly 'reaction-arrow-both-ends-filled-triangle': ReactComponent;
|
|
134
135
|
readonly 'reaction-arrow-equilibrium-filled-half-bow': ReactComponent;
|
|
135
136
|
readonly 'reaction-arrow-equilibrium-filled-triangle': ReactComponent;
|
|
@@ -138,6 +139,7 @@ export declare const iconNameToIcon: {
|
|
|
138
139
|
readonly 'reaction-arrow-unbalanced-equilibrium-open-half-angle': ReactComponent;
|
|
139
140
|
readonly 'reaction-arrow-unbalanced-equilibrium-large-filled-half-bow': ReactComponent;
|
|
140
141
|
readonly 'reaction-arrow-unbalanced-equilibrium-filled-half-triangle': ReactComponent;
|
|
142
|
+
readonly "reaction-arrow-multitail": ReactComponent;
|
|
141
143
|
readonly 'reaction-automap': ReactComponent;
|
|
142
144
|
readonly 'reaction-map': ReactComponent;
|
|
143
145
|
readonly 'reaction-plus': ReactComponent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AmbiguousMonomerPreviewState } from './types';
|
|
2
|
+
interface Props {
|
|
3
|
+
className?: string;
|
|
4
|
+
preview: AmbiguousMonomerPreviewState;
|
|
5
|
+
}
|
|
6
|
+
export declare const AmbiguousMonomerPreview: import("@emotion/styled").StyledComponent<Props & {
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
}, {}, {}>;
|
|
9
|
+
export {};
|
package/dist/components/MonomerPreview/AmbiguousMonomerPreview/AmbiguousMonomerPreview.styles.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const Header: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const Content: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
|
+
export declare const ContentLine: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
|
+
interface RatioBarProps {
|
|
19
|
+
ratio: number;
|
|
20
|
+
}
|
|
21
|
+
export declare const RatioBar: import("@emotion/styled").StyledComponent<{
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
24
|
+
} & RatioBarProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
25
|
+
export declare const MonomerName: import("@emotion/styled").StyledComponent<{
|
|
26
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
27
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
28
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { AmbiguousMonomerType, AttachmentPointsToBonds, IKetIdtAliases, MonomerItemType, PolymerBond } from 'ketcher-core';
|
|
2
|
+
export declare enum PreviewType {
|
|
3
|
+
Monomer = "monomer",
|
|
4
|
+
Preset = "preset",
|
|
5
|
+
Bond = "bond",
|
|
6
|
+
AmbiguousMonomer = "ambiguousMonomer"
|
|
7
|
+
}
|
|
8
|
+
export interface PreviewStyle {
|
|
9
|
+
readonly top?: string;
|
|
10
|
+
readonly left?: string;
|
|
11
|
+
readonly right?: string;
|
|
12
|
+
readonly transform?: string;
|
|
13
|
+
}
|
|
14
|
+
interface BasePreviewState {
|
|
15
|
+
readonly type: PreviewType;
|
|
16
|
+
readonly style?: PreviewStyle;
|
|
17
|
+
}
|
|
18
|
+
export interface MonomerPreviewState extends BasePreviewState {
|
|
19
|
+
readonly type: PreviewType.Monomer;
|
|
20
|
+
readonly monomer: MonomerItemType | undefined;
|
|
21
|
+
readonly attachmentPointsToBonds?: AttachmentPointsToBonds;
|
|
22
|
+
}
|
|
23
|
+
export declare enum PresetPosition {
|
|
24
|
+
Library = "library",
|
|
25
|
+
ChainStart = "chainStart",
|
|
26
|
+
ChainMiddle = "chainMiddle",
|
|
27
|
+
ChainEnd = "chainEnd"
|
|
28
|
+
}
|
|
29
|
+
export interface PresetPreviewState extends BasePreviewState {
|
|
30
|
+
readonly type: PreviewType.Preset;
|
|
31
|
+
readonly monomers: ReadonlyArray<MonomerItemType | undefined>;
|
|
32
|
+
readonly position: PresetPosition;
|
|
33
|
+
readonly name?: string;
|
|
34
|
+
readonly idtAliases?: IKetIdtAliases;
|
|
35
|
+
}
|
|
36
|
+
export interface BondPreviewState extends BasePreviewState {
|
|
37
|
+
readonly type: PreviewType.Bond;
|
|
38
|
+
readonly polymerBond: PolymerBond;
|
|
39
|
+
}
|
|
40
|
+
export interface AmbiguousMonomerPreviewState extends BasePreviewState {
|
|
41
|
+
readonly type: PreviewType.AmbiguousMonomer;
|
|
42
|
+
readonly monomer: AmbiguousMonomerType;
|
|
43
|
+
readonly presetMonomers?: ReadonlyArray<MonomerItemType | undefined>;
|
|
44
|
+
}
|
|
45
|
+
export declare type EditorStatePreview = MonomerPreviewState | PresetPreviewState | BondPreviewState | AmbiguousMonomerPreviewState;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { AmbiguousMonomerType, PolymerBond } from 'ketcher-core';
|
|
17
|
+
import { PreviewStyle } from './AmbiguousMonomerPreview/types';
|
|
18
|
+
export declare const calculateMonomerPreviewTop: (target?: CalculatePreviewTopPayload) => string;
|
|
19
|
+
export declare const calculateNucleoElementPreviewTop: (target?: CalculatePreviewTopPayload) => string;
|
|
20
|
+
declare type CalculatePreviewTopPayload = {
|
|
21
|
+
left: number;
|
|
22
|
+
top: number;
|
|
23
|
+
bottom: number;
|
|
24
|
+
};
|
|
25
|
+
export declare const calculateAmbiguousMonomerPreviewTop: (monomer: AmbiguousMonomerType) => (target?: CalculatePreviewTopPayload) => string;
|
|
26
|
+
export declare function calculateAmbiguousMonomerPreviewLeft(initialLeft: number): number;
|
|
27
|
+
export declare const calculateBondPreviewPosition: (bond: PolymerBond, bondCoordinates: DOMRect) => PreviewStyle;
|
|
28
|
+
export {};
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import { IStructRenderProps } from './types';
|
|
17
|
-
declare const StructRender: ({ struct, options, className, update, }: IStructRenderProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const StructRender: ({ struct, options, className, fullsize, update, }: IStructRenderProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export default StructRender;
|
|
@@ -17,4 +17,6 @@
|
|
|
17
17
|
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
18
18
|
theme?: import("@emotion/react").Theme | undefined;
|
|
19
19
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
20
|
+
} & {
|
|
21
|
+
fullsize?: boolean | undefined;
|
|
20
22
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|