ketcher-react 3.6.0-rc.2 → 3.7.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/cjs/components/Icon/Icon.d.ts +1 -1
- package/dist/cjs/components/Icon/types.d.ts +3 -0
- package/dist/cjs/components/Icon/utils/iconNameToIcon.d.ts +6 -0
- package/dist/cjs/components/StructRender/StructRender.d.ts +1 -1
- package/dist/cjs/components/StructRender/types.d.ts +1 -0
- package/dist/cjs/constants.d.ts +2 -2
- package/dist/cjs/index.css +1 -1
- package/dist/cjs/index.css.map +1 -1
- package/dist/cjs/index.js +2758 -1539
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/{index.modern-a5b55abb.js → index.modern-c52e0e6a.js} +1374 -232
- package/dist/cjs/index.modern-c52e0e6a.js.map +1 -0
- package/dist/cjs/script/editor/Editor.d.ts +17 -1
- package/dist/cjs/script/editor/tool/create-monomer.d.ts +9 -0
- package/dist/cjs/script/index.d.ts +2 -0
- package/dist/cjs/script/ui/action/atoms.d.ts +23 -22
- package/dist/cjs/script/ui/action/tools.d.ts +8 -0
- package/dist/cjs/script/ui/component/form/Select/Select.d.ts +5 -1
- package/dist/cjs/script/ui/component/form/buttonlist.d.ts +2 -1
- package/dist/cjs/script/ui/state/editor/actions/monomerCreation.d.ts +15 -0
- package/dist/cjs/script/ui/state/editor/middlewares/monomerCreation.d.ts +3 -0
- package/dist/cjs/script/ui/state/editor/selectors/index.d.ts +2 -0
- package/dist/cjs/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.constants.d.ts +5 -0
- package/dist/cjs/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.d.ts +2 -0
- package/dist/cjs/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.types.d.ts +54 -0
- package/dist/cjs/script/ui/views/components/MonomerCreationWizard/components/AttributeField/AttributeField.d.ts +9 -0
- package/dist/cjs/script/ui/views/components/MonomerCreationWizard/components/NaturalAnalogueChip/NaturalAnalogueChip.d.ts +7 -0
- package/dist/cjs/script/ui/views/components/MonomerCreationWizard/components/NaturalAnaloguePicker/NaturalAnaloguePicker.d.ts +12 -0
- package/dist/cjs/script/ui/views/components/MonomerCreationWizard/components/Notification/Notification.d.ts +10 -0
- package/dist/cjs/script/ui/views/modal/components/process/Analyse/components/FrozenInput/FrozenInput.d.ts +2 -1
- package/dist/cjs/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +4 -3
- package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalStyle.d.ts +2 -2
- package/dist/cjs/script/ui/views/toolbars/toolbar.types.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/types.d.ts +3 -0
- package/dist/components/Icon/utils/iconNameToIcon.d.ts +6 -0
- package/dist/components/StructRender/StructRender.d.ts +1 -1
- package/dist/components/StructRender/types.d.ts +1 -0
- package/dist/constants.d.ts +2 -2
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +2750 -1538
- package/dist/index.js.map +1 -1
- package/dist/{index.modern-9577acbd.js → index.modern-43985e95.js} +1357 -233
- package/dist/index.modern-43985e95.js.map +1 -0
- package/dist/script/editor/Editor.d.ts +17 -1
- package/dist/script/editor/tool/create-monomer.d.ts +9 -0
- package/dist/script/index.d.ts +2 -0
- package/dist/script/ui/action/atoms.d.ts +23 -22
- package/dist/script/ui/action/tools.d.ts +8 -0
- package/dist/script/ui/component/form/Select/Select.d.ts +5 -1
- package/dist/script/ui/component/form/buttonlist.d.ts +2 -1
- package/dist/script/ui/state/editor/actions/monomerCreation.d.ts +15 -0
- package/dist/script/ui/state/editor/middlewares/monomerCreation.d.ts +3 -0
- package/dist/script/ui/state/editor/selectors/index.d.ts +2 -0
- package/dist/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.constants.d.ts +5 -0
- package/dist/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.d.ts +2 -0
- package/dist/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.types.d.ts +54 -0
- package/dist/script/ui/views/components/MonomerCreationWizard/components/AttributeField/AttributeField.d.ts +9 -0
- package/dist/script/ui/views/components/MonomerCreationWizard/components/NaturalAnalogueChip/NaturalAnalogueChip.d.ts +7 -0
- package/dist/script/ui/views/components/MonomerCreationWizard/components/NaturalAnaloguePicker/NaturalAnaloguePicker.d.ts +12 -0
- package/dist/script/ui/views/components/MonomerCreationWizard/components/Notification/Notification.d.ts +10 -0
- package/dist/script/ui/views/modal/components/process/Analyse/components/FrozenInput/FrozenInput.d.ts +2 -1
- package/dist/script/ui/views/toolbars/ArrowScroll/ArrowScroll.d.ts +4 -3
- package/dist/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalStyle.d.ts +2 -2
- package/dist/script/ui/views/toolbars/toolbar.types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/index.modern-a5b55abb.js.map +0 -1
- package/dist/index.modern-9577acbd.js.map +0 -1
|
@@ -30,6 +30,10 @@ export interface Selection {
|
|
|
30
30
|
rgroupAttachmentPoints?: Array<number>;
|
|
31
31
|
[MULTITAIL_ARROW_KEY]?: Array<number>;
|
|
32
32
|
}
|
|
33
|
+
export declare type MonomerCreationState = {
|
|
34
|
+
originalStruct: Struct;
|
|
35
|
+
attachmentAtomIdToLeavingAtomId: Map<number, number>;
|
|
36
|
+
} | null;
|
|
33
37
|
declare class Editor implements KetcherEditor {
|
|
34
38
|
#private;
|
|
35
39
|
ketcherId: string;
|
|
@@ -71,6 +75,7 @@ declare class Editor implements KetcherEditor {
|
|
|
71
75
|
cursor: Subscription;
|
|
72
76
|
updateFloatingTools: Subscription<FloatingToolsParams>;
|
|
73
77
|
};
|
|
78
|
+
private _monomerCreationState;
|
|
74
79
|
serverSettings: {};
|
|
75
80
|
lastEvent: any;
|
|
76
81
|
macromoleculeConvertionError: string | null | undefined;
|
|
@@ -93,6 +98,17 @@ declare class Editor implements KetcherEditor {
|
|
|
93
98
|
centerViewportAccordingToStruct(struct?: Struct): void;
|
|
94
99
|
positionStruct(x: number, y: number): void;
|
|
95
100
|
zoomAccordingContent(struct: Struct): boolean;
|
|
101
|
+
get monomerCreationState(): MonomerCreationState;
|
|
102
|
+
get isMonomerCreationWizardActive(): boolean;
|
|
103
|
+
private singleBondsToOutsideOfSelection;
|
|
104
|
+
get isMonomerCreationWizardEnabled(): boolean;
|
|
105
|
+
static isSelectionContinuous(selection: Selection, struct: Struct): boolean;
|
|
106
|
+
private originalSelection;
|
|
107
|
+
private atomIdsMap;
|
|
108
|
+
private selectionBBox;
|
|
109
|
+
openMonomerCreationWizard(): void;
|
|
110
|
+
closeMonomerCreationWizard(): void;
|
|
111
|
+
saveNewMonomer(data: any): void;
|
|
96
112
|
selection(ci?: any): Selection | null;
|
|
97
113
|
hover(ci: {
|
|
98
114
|
id: number;
|
|
@@ -115,7 +131,7 @@ declare class Editor implements KetcherEditor {
|
|
|
115
131
|
atoms: Map<any, any>;
|
|
116
132
|
atomToFunctionalGroup: Map<any, any>;
|
|
117
133
|
};
|
|
118
|
-
explicitSelected(): any;
|
|
134
|
+
explicitSelected(autoSelectBonds?: boolean): any;
|
|
119
135
|
structSelected(): Struct;
|
|
120
136
|
alignDescriptors(): void;
|
|
121
137
|
setMacromoleculeConvertionError(errorMessage: string): void;
|
|
@@ -38,3 +38,5 @@ declare function buildKetcherAsync({ element, appRoot, staticResourcesUrl, struc
|
|
|
38
38
|
setServer: (structService: import("ketcher-core").StructService) => void;
|
|
39
39
|
}>;
|
|
40
40
|
export default buildKetcherAsync;
|
|
41
|
+
export * from './ui/views/toolbars/ArrowScroll';
|
|
42
|
+
export * from './ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalStyle';
|
|
@@ -14,27 +14,28 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
export const basicAtoms: string[];
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
17
|
+
export const atomCuts: {
|
|
18
|
+
H: string;
|
|
19
|
+
C: string;
|
|
20
|
+
N: string;
|
|
21
|
+
O: string;
|
|
22
|
+
S: string;
|
|
23
|
+
P: string;
|
|
24
|
+
F: string;
|
|
25
|
+
Cl: string;
|
|
26
|
+
Br: string;
|
|
27
|
+
I: string;
|
|
28
|
+
A: string;
|
|
29
|
+
Q: string;
|
|
30
|
+
R: string;
|
|
31
|
+
K: string;
|
|
32
|
+
M: string;
|
|
33
|
+
Si: string;
|
|
34
|
+
Na: string;
|
|
35
|
+
X: string;
|
|
36
|
+
D: string;
|
|
37
|
+
B: string;
|
|
38
|
+
'*': string;
|
|
39
|
+
};
|
|
39
40
|
declare const _default: {};
|
|
40
41
|
export default _default;
|
|
@@ -320,6 +320,14 @@ declare const _default: {
|
|
|
320
320
|
};
|
|
321
321
|
hidden: (options: any) => boolean;
|
|
322
322
|
};
|
|
323
|
+
"create-monomer": {
|
|
324
|
+
shortcut: string;
|
|
325
|
+
title: string;
|
|
326
|
+
action: {
|
|
327
|
+
tool: string;
|
|
328
|
+
};
|
|
329
|
+
disabled: (editor: any) => boolean;
|
|
330
|
+
};
|
|
323
331
|
shapes: {
|
|
324
332
|
hidden: (options: any) => boolean;
|
|
325
333
|
};
|
|
@@ -13,9 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
import { ReactNode } from 'react';
|
|
16
17
|
export interface Option {
|
|
17
18
|
value: string;
|
|
18
19
|
label: string;
|
|
20
|
+
children?: ReactNode;
|
|
19
21
|
}
|
|
20
22
|
interface Props {
|
|
21
23
|
options: Array<Option>;
|
|
@@ -26,7 +28,9 @@ interface Props {
|
|
|
26
28
|
disabled?: boolean;
|
|
27
29
|
formName?: string;
|
|
28
30
|
name?: string;
|
|
31
|
+
placeholder?: string;
|
|
29
32
|
'data-testid'?: string;
|
|
33
|
+
error?: boolean;
|
|
30
34
|
}
|
|
31
|
-
declare const Select: ({ className, value, onChange, multiple, disabled, options, formName, name, "data-testid": testId, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare const Select: ({ className, value, onChange, multiple, disabled, options, formName, name, placeholder, "data-testid": testId, error, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
32
36
|
export default Select;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export default ButtonList;
|
|
2
|
-
declare function ButtonList({ value, onChange, schema, disabledIds, multiple, classes, }: {
|
|
2
|
+
declare function ButtonList({ value, onChange, schema, disabledIds, multiple, classes, testId, }: {
|
|
3
3
|
value: any;
|
|
4
4
|
onChange: any;
|
|
5
5
|
schema: any;
|
|
6
6
|
disabledIds: any;
|
|
7
7
|
multiple: any;
|
|
8
8
|
classes: any;
|
|
9
|
+
testId: any;
|
|
9
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const MonomerCreationActions: {
|
|
2
|
+
readonly OpenWizard: "MonomerCreation/OpenWizard";
|
|
3
|
+
readonly CloseWizard: "MonomerCreation/CloseWizard";
|
|
4
|
+
readonly SubmitMonomer: "MonomerCreation/SubmitMonomer";
|
|
5
|
+
};
|
|
6
|
+
export declare const openMonomerCreationWizard: () => {
|
|
7
|
+
type: "MonomerCreation/OpenWizard";
|
|
8
|
+
};
|
|
9
|
+
export declare const closeMonomerCreationWizard: () => {
|
|
10
|
+
type: "MonomerCreation/CloseWizard";
|
|
11
|
+
};
|
|
12
|
+
export declare const submitMonomerCreation: (payload: any) => {
|
|
13
|
+
type: "MonomerCreation/SubmitMonomer";
|
|
14
|
+
payload: any;
|
|
15
|
+
};
|
|
@@ -13,4 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
import type { MonomerCreationState } from '../../../../editor/Editor';
|
|
16
17
|
export declare const editorOptionsSelector: (state: any) => any;
|
|
18
|
+
export declare const editorMonomerCreationStateSelector: (state: any) => MonomerCreationState;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MonomerTypeSelectItem, WizardNotificationMessageMap, WizardNotificationTypeMap } from './MonomerCreationWizard.types';
|
|
2
|
+
export declare const MonomerTypeSelectConfig: MonomerTypeSelectItem[];
|
|
3
|
+
export declare const NotificationMessages: WizardNotificationMessageMap;
|
|
4
|
+
export declare const NotificationTypes: WizardNotificationTypeMap;
|
|
5
|
+
export declare const MonomerCreationExternalNotificationAction = "MonomerCreationExternalNotification";
|
package/dist/cjs/script/ui/views/components/MonomerCreationWizard/MonomerCreationWizard.types.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { KetMonomerClass } from 'application/formatters';
|
|
2
|
+
import { IconName } from 'components';
|
|
3
|
+
export declare type MonomerTypeSelectItem = {
|
|
4
|
+
value: KetMonomerClass;
|
|
5
|
+
label: string;
|
|
6
|
+
iconName: IconName;
|
|
7
|
+
};
|
|
8
|
+
export declare type WizardFormFieldId = 'type' | 'symbol' | 'name' | 'naturalAnalogue';
|
|
9
|
+
export declare type StringWizardFormFieldId = Exclude<WizardFormFieldId, 'type'>;
|
|
10
|
+
export declare type WizardValues = {
|
|
11
|
+
type: KetMonomerClass | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
[key in StringWizardFormFieldId]: string;
|
|
14
|
+
};
|
|
15
|
+
export declare type WizardNotificationType = 'info' | 'error';
|
|
16
|
+
export declare type WizardNotificationId = 'defaultAttachmentPoints' | 'emptyMandatoryFields' | 'invalidSymbol' | 'symbolExists' | 'editingIsNotAllowed';
|
|
17
|
+
export declare type WizardNotificationTypeMap = Record<WizardNotificationId, WizardNotificationType>;
|
|
18
|
+
export declare type WizardNotificationMessageMap = Record<WizardNotificationId, string>;
|
|
19
|
+
export declare type WizardNotification = {
|
|
20
|
+
type: WizardNotificationType;
|
|
21
|
+
message: string;
|
|
22
|
+
};
|
|
23
|
+
export declare type WizardErrors = Partial<Record<WizardFormFieldId, boolean>>;
|
|
24
|
+
export declare type WizardNotifications = Map<WizardNotificationId, WizardNotification>;
|
|
25
|
+
export declare type WizardState = {
|
|
26
|
+
values: WizardValues;
|
|
27
|
+
errors: WizardErrors;
|
|
28
|
+
notifications: WizardNotifications;
|
|
29
|
+
};
|
|
30
|
+
export declare type WizardAction = {
|
|
31
|
+
type: 'SetFieldValue';
|
|
32
|
+
fieldId: 'type';
|
|
33
|
+
value: KetMonomerClass;
|
|
34
|
+
} | {
|
|
35
|
+
type: 'SetFieldValue';
|
|
36
|
+
fieldId: StringWizardFormFieldId;
|
|
37
|
+
value: string;
|
|
38
|
+
} | {
|
|
39
|
+
type: 'SetErrors';
|
|
40
|
+
errors: WizardErrors;
|
|
41
|
+
} | {
|
|
42
|
+
type: 'SetNotifications';
|
|
43
|
+
notifications: WizardNotifications;
|
|
44
|
+
} | {
|
|
45
|
+
type: 'AddNotification';
|
|
46
|
+
id: WizardNotificationId;
|
|
47
|
+
} | {
|
|
48
|
+
type: 'RemoveNotification';
|
|
49
|
+
id: WizardNotificationId;
|
|
50
|
+
} | {
|
|
51
|
+
type: 'ResetWizard';
|
|
52
|
+
} | {
|
|
53
|
+
type: 'ResetErrors';
|
|
54
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare type Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
control: ReactNode;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const AttributeField: ({ title, control, required, disabled }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default AttributeField;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { KetMonomerClass } from 'ketcher-core';
|
|
3
|
+
interface ChipGridSelectProps {
|
|
4
|
+
monomerType: KetMonomerClass | undefined;
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const isNaturalAnalogueRequired: (monomerType: KetMonomerClass | undefined) => boolean;
|
|
11
|
+
declare const NaturalAnaloguePicker: FC<ChipGridSelectProps>;
|
|
12
|
+
export default NaturalAnaloguePicker;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WizardAction, WizardNotificationId, WizardNotificationType } from '../../MonomerCreationWizard.types';
|
|
2
|
+
import { Dispatch } from 'react';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
id: WizardNotificationId;
|
|
5
|
+
type: WizardNotificationType;
|
|
6
|
+
message: string;
|
|
7
|
+
wizardStateDispatch: Dispatch<WizardAction>;
|
|
8
|
+
};
|
|
9
|
+
declare const Notification: ({ id, type, message, wizardStateDispatch }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default Notification;
|
|
@@ -14,6 +14,7 @@ export default FrozenInput;
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
***************************************************************************/
|
|
17
|
-
declare function FrozenInput({ value }: {
|
|
17
|
+
declare function FrozenInput({ value, "data-testid": dataTestId }: {
|
|
18
18
|
value: any;
|
|
19
|
+
"data-testid": any;
|
|
19
20
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
interface ArrowScrollProps {
|
|
17
17
|
startInView: boolean;
|
|
18
18
|
endInView: boolean;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
scrollForward: any;
|
|
20
|
+
scrollBack: any;
|
|
21
|
+
isLeftRight?: boolean;
|
|
21
22
|
}
|
|
22
|
-
declare const ArrowScroll: ({ startInView, endInView,
|
|
23
|
+
declare const ArrowScroll: ({ startInView, endInView, scrollForward, scrollBack, isLeftRight, }: ArrowScrollProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
export { ArrowScroll };
|
package/dist/cjs/script/ui/views/toolbars/ToolbarGroupItem/ToolbarMultiToolItem/usePortalStyle.d.ts
CHANGED
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import { CSSProperties, RefObject } from 'react';
|
|
17
|
-
declare type HookParams = [RefObject<HTMLDivElement>, boolean];
|
|
18
|
-
declare function usePortalStyle([ref, isOpen]: HookParams): [CSSProperties];
|
|
17
|
+
declare type HookParams = [RefObject<HTMLDivElement>, boolean, boolean?, string?];
|
|
18
|
+
declare function usePortalStyle([ref, isOpen, isTop, rootElementSelector,]: HookParams): [CSSProperties];
|
|
19
19
|
export { usePortalStyle };
|
|
@@ -20,7 +20,7 @@ declare type BottomGroup = 'template-common' | 'template-lib';
|
|
|
20
20
|
declare type RightGroup = 'atom' | 'period-table';
|
|
21
21
|
declare type ToolbarGroupVariant = TopGroup | LeftGroup | BottomGroup | RightGroup;
|
|
22
22
|
declare type TopToolbarItemVariant = 'clear' | 'open' | 'save' | 'undo' | 'redo' | 'cut' | 'copies' | 'copy' | 'copy-image' | 'copy-mol' | 'copy-ket' | 'paste' | 'zoom-in' | 'zoom-out' | 'zoom-list' | 'layout' | 'clean' | 'arom' | 'dearom' | 'cip' | 'check' | 'analyse' | 'recognize' | 'miew' | 'settings' | 'help' | 'about';
|
|
23
|
-
declare type LeftToolbarItemVariant = 'hand' | 'select' | 'select-lasso' | 'select-rectangle' | 'select-fragment' | 'erase' | 'bonds' | 'bond-common' | 'bond-single' | 'bond-double' | 'bond-triple' | 'bond-dative' | 'bond-stereo' | 'bond-up' | 'bond-down' | 'bond-updown' | 'bond-crossed' | 'bond-query' | 'bond-special' | 'bond-any' | 'bond-hydrogen' | 'bond-aromatic' | 'bond-singledouble' | 'bond-singlearomatic' | 'bond-doublearomatic' | 'chain' | 'charge-plus' | 'charge-minus' | 'sgroup' | 'reaction-plus' | 'arrows' | 'reaction-arrow-open-angle' | 'reaction-arrow-filled-triangle' | 'reaction-arrow-filled-bow' | 'reaction-arrow-dashed-open-angle' | 'reaction-arrow-failed' | 'reaction-arrow-retrosynthetic' | 'reaction-arrow-both-ends-filled-triangle' | 'reaction-arrow-equilibrium-filled-half-bow' | 'reaction-arrow-equilibrium-filled-triangle' | 'reaction-arrow-equilibrium-open-angle' | 'reaction-arrow-unbalanced-equilibrium-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-open-half-angle' | 'reaction-arrow-unbalanced-equilibrium-large-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-filled-half-triangle' | 'reaction-arrow-elliptical-arc-arrow-filled-bow' | 'reaction-arrow-elliptical-arc-arrow-filled-triangle' | 'reaction-arrow-elliptical-arc-arrow-open-angle' | 'reaction-arrow-elliptical-arc-arrow-open-half-angle' | typeof MULTITAIL_ARROW_TOOL_NAME | 'reaction-mapping-tools' | 'reaction-automap' | 'reaction-map' | 'reaction-unmap' | 'rgroup' | 'rgroup-label' | 'rgroup-fragment' | 'rgroup-attpoints' | 'shapes' | 'shape-ellipse' | 'shape-rectangle' | 'shape-line' | 'text' | typeof IMAGE_KEY;
|
|
23
|
+
declare type LeftToolbarItemVariant = 'hand' | 'select' | 'select-lasso' | 'select-rectangle' | 'select-fragment' | 'erase' | 'bonds' | 'bond-common' | 'bond-single' | 'bond-double' | 'bond-triple' | 'bond-dative' | 'bond-stereo' | 'bond-up' | 'bond-down' | 'bond-updown' | 'bond-crossed' | 'bond-query' | 'bond-special' | 'bond-any' | 'bond-hydrogen' | 'bond-aromatic' | 'bond-singledouble' | 'bond-singlearomatic' | 'bond-doublearomatic' | 'chain' | 'charge-plus' | 'charge-minus' | 'sgroup' | 'reaction-plus' | 'arrows' | 'reaction-arrow-open-angle' | 'reaction-arrow-filled-triangle' | 'reaction-arrow-filled-bow' | 'reaction-arrow-dashed-open-angle' | 'reaction-arrow-failed' | 'reaction-arrow-retrosynthetic' | 'reaction-arrow-both-ends-filled-triangle' | 'reaction-arrow-equilibrium-filled-half-bow' | 'reaction-arrow-equilibrium-filled-triangle' | 'reaction-arrow-equilibrium-open-angle' | 'reaction-arrow-unbalanced-equilibrium-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-open-half-angle' | 'reaction-arrow-unbalanced-equilibrium-large-filled-half-bow' | 'reaction-arrow-unbalanced-equilibrium-filled-half-triangle' | 'reaction-arrow-elliptical-arc-arrow-filled-bow' | 'reaction-arrow-elliptical-arc-arrow-filled-triangle' | 'reaction-arrow-elliptical-arc-arrow-open-angle' | 'reaction-arrow-elliptical-arc-arrow-open-half-angle' | typeof MULTITAIL_ARROW_TOOL_NAME | 'reaction-mapping-tools' | 'reaction-automap' | 'reaction-map' | 'reaction-unmap' | 'rgroup' | 'rgroup-label' | 'rgroup-fragment' | 'rgroup-attpoints' | 'create-monomer' | 'shapes' | 'shape-ellipse' | 'shape-rectangle' | 'shape-line' | 'text' | typeof IMAGE_KEY;
|
|
24
24
|
declare type BottomToolbarItemVariant = 'template-common' | 'template-lib' | 'enhanced-stereo' | 'fullscreen';
|
|
25
25
|
declare type RightToolbarItemVariant = 'atom' | 'freq-atoms' | 'period-table' | 'extended-table' | 'any-atom';
|
|
26
26
|
declare type FloatingToolItemVariant = 'transform-flip-h' | 'transform-flip-v' | 'erase';
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import { IIconProps } from './types';
|
|
17
|
-
declare const Icon: ({ name, className, title, onClick, dataTestId }: IIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const Icon: ({ name, className, title, onClick, onMouseOver, onMouseOut, onDoubleClick, dataTestId, }: IIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export default Icon;
|
|
@@ -24,5 +24,8 @@ export interface IIconProps {
|
|
|
24
24
|
className?: string;
|
|
25
25
|
title?: string;
|
|
26
26
|
onClick?: (e: MouseEvent) => void;
|
|
27
|
+
onMouseOver?: (e: MouseEvent) => void;
|
|
28
|
+
onMouseOut?: (e: MouseEvent) => void;
|
|
29
|
+
onDoubleClick?: (e: MouseEvent) => void;
|
|
27
30
|
dataTestId?: string;
|
|
28
31
|
}
|
|
@@ -228,6 +228,8 @@ export declare const iconNameToIcon: {
|
|
|
228
228
|
readonly phosphate: ReactComponent;
|
|
229
229
|
readonly preset: ReactComponent;
|
|
230
230
|
readonly nucleotide: ReactComponent;
|
|
231
|
+
readonly peptide: ReactComponent;
|
|
232
|
+
readonly chem: ReactComponent;
|
|
231
233
|
readonly 'edit-filled': ReactComponent;
|
|
232
234
|
readonly 'vertical-dots': ReactComponent;
|
|
233
235
|
readonly expand: ReactComponent;
|
|
@@ -243,4 +245,8 @@ export declare const iconNameToIcon: {
|
|
|
243
245
|
readonly antisenseStrand: ReactComponent;
|
|
244
246
|
readonly antisenseRnaStrand: ReactComponent;
|
|
245
247
|
readonly antisenseDnaStrand: ReactComponent;
|
|
248
|
+
readonly 'monomer-autochain': ReactComponent;
|
|
249
|
+
readonly "create-monomer": ReactComponent;
|
|
250
|
+
readonly checkFilled: ReactComponent;
|
|
251
|
+
readonly warningFilled: ReactComponent;
|
|
246
252
|
};
|
|
@@ -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, fullsize, update, }: IStructRenderProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const StructRender: ({ struct, options, className, fullsize, update, testId, }: IStructRenderProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export default StructRender;
|
package/dist/constants.d.ts
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
import { KETCHER_MACROMOLECULES_ROOT_NODE_SELECTOR, EditorClassName } from 'ketcher-core';
|
|
16
17
|
export declare const ketcherInitEventName: (ketcherId?: string) => string;
|
|
17
18
|
export declare const MODES: {
|
|
18
19
|
FG: string;
|
|
@@ -23,8 +24,7 @@ export declare const STRUCT_TYPE: {
|
|
|
23
24
|
};
|
|
24
25
|
export declare const KETCHER_ROOT_NODE_CLASS_NAME = "Ketcher-root";
|
|
25
26
|
export declare const KETCHER_ROOT_NODE_CSS_SELECTOR: string;
|
|
26
|
-
export
|
|
27
|
-
export declare const KETCHER_MACROMOLECULES_ROOT_NODE_SELECTOR: string;
|
|
27
|
+
export { EditorClassName, KETCHER_MACROMOLECULES_ROOT_NODE_SELECTOR };
|
|
28
28
|
export declare const STRUCT_SERVICE_NO_RENDER_INITIALIZED_EVENT = "struct-service-no-render-initialized";
|
|
29
29
|
export declare const STRUCT_SERVICE_INITIALIZED_EVENT = "struct-service-initialized";
|
|
30
30
|
export declare const ACS_STYLE_DEFAULT_SETTINGS: {
|