ketcher-macromolecules 2.22.0-rc.1-dev.1 → 2.22.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/LeftMenuComponent/LeftMenuComponent.d.ts +16 -0
- package/dist/components/LeftMenuComponent/index.d.ts +16 -0
- package/dist/components/TopMenuComponent/TopMenuComponent.d.ts +16 -0
- package/dist/components/TopMenuComponent/index.d.ts +16 -0
- package/dist/components/ZoomControls/ZoomControls.d.ts +16 -0
- package/dist/components/ZoomControls/ZoomInput.d.ts +23 -0
- package/dist/components/ZoomControls/helpers.d.ts +14 -0
- package/dist/components/ZoomControls/styles.d.ts +34 -0
- package/dist/components/menu/Menu.d.ts +2 -2
- package/dist/components/menu/styles.d.ts +9 -1
- package/dist/components/menu/types.d.ts +2 -0
- package/dist/components/modal/save/Save.styles.d.ts +4 -0
- package/dist/components/monomerLibrary/MonomerLibrary.d.ts +4 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/helpers/index.d.ts +2 -0
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/helpers/resetRnaBuilder.d.ts +4 -0
- package/dist/components/monomerLibrary/RnaBuilder/types.d.ts +2 -1
- package/dist/components/monomerLibrary/RnaPresetItem/RnaPresetItem.d.ts +2 -2
- package/dist/components/monomerLibrary/RnaPresetItem/types.d.ts +8 -6
- package/dist/components/shared/IDTAliases/index.d.ts +6 -0
- package/dist/components/shared/IDTAliases/styles.d.ts +5 -0
- package/dist/components/shared/MonomerWithIDTAliasesPreview/index.d.ts +5 -0
- package/dist/components/shared/MonomerWithIDTAliasesPreview/styles.d.ts +12 -0
- package/dist/components/shared/MonomerWithIDTAliasesPreview/types.d.ts +18 -0
- package/dist/components/shared/PresetPreview/index.d.ts +5 -0
- package/dist/components/shared/{NucleotidePreview → PresetPreview}/styles.d.ts +6 -6
- package/dist/components/shared/dropDown/dropDown.d.ts +2 -1
- package/dist/helpers/calculatePreviewTop.d.ts +2 -0
- package/dist/helpers/formats/formatProperties.d.ts +1 -1
- package/dist/helpers/formats/supportedFormatProperties.d.ts +2 -1
- package/dist/helpers/getPreset.d.ts +6 -0
- package/dist/helpers/index.d.ts +2 -2
- package/dist/helpers/manipulateCachedRnaPresets.d.ts +2 -2
- package/dist/index.js +1589 -917
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1592 -920
- package/dist/index.modern.js.map +1 -1
- package/dist/state/common/editorSlice.d.ts +9 -1
- package/dist/state/rna-builder/rnaBuilderSlice.d.ts +14 -2
- package/dist/state/rna-builder/rnaBuilderSlice.helper.d.ts +2 -0
- package/dist/styledComponents.d.ts +4 -0
- package/package.json +1 -1
- package/dist/components/shared/NucleotidePreview/index.d.ts +0 -5
- package/dist/helpers/calculatePreviewPosition.d.ts +0 -2
- package/dist/helpers/getDefaultPreset.d.ts +0 -3
- /package/dist/helpers/{getDefaultPresets.test.d.ts → getPresets.test.d.ts} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export declare function LeftMenuComponent(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export * from './LeftMenuComponent';
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export declare function TopMenuComponent(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export * from './TopMenuComponent';
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export declare const ZoomControls: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -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 { RefObject } from 'react';
|
|
17
|
+
interface ZoomInputProps {
|
|
18
|
+
onZoomSubmit: () => void;
|
|
19
|
+
currentZoom: number;
|
|
20
|
+
inputRef: RefObject<HTMLInputElement>;
|
|
21
|
+
}
|
|
22
|
+
export declare const ZoomInput: ({ onZoomSubmit, currentZoom, inputRef, }: ZoomInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const shortcuts: {
|
|
2
|
+
exit: string;
|
|
3
|
+
undo: string;
|
|
4
|
+
redo: string;
|
|
5
|
+
erase: string;
|
|
6
|
+
clear: string;
|
|
7
|
+
'zoom-plus': string;
|
|
8
|
+
'zoom-minus': string;
|
|
9
|
+
'zoom-reset': string;
|
|
10
|
+
'select-all': string;
|
|
11
|
+
};
|
|
12
|
+
export declare const getIntegerFromString: (zoomInput: string | undefined) => number;
|
|
13
|
+
export declare const getValidZoom: (zoom: number, currentZoom: number) => number;
|
|
14
|
+
export declare const updateInputString: (zoom: number, inputElement: HTMLInputElement | null) => void;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ElementAndDropdown: 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 DropDownButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
8
|
+
}, "style" | "color" | "className" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & {
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
}, {}, {}>;
|
|
11
|
+
export declare const ZoomLabel: import("@emotion/styled").StyledComponent<{
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
14
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
15
|
+
export declare const Dropdown: import("@emotion/styled").StyledComponent<import("@mui/material").PopoverProps & {
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
}, {}, {}>;
|
|
18
|
+
export declare const DropDownContent: import("@emotion/styled").StyledComponent<{
|
|
19
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
21
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
22
|
+
export declare const ZoomControlButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
23
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
24
|
+
}, "style" | "color" | "className" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & {
|
|
25
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
26
|
+
}, {}, {}>;
|
|
27
|
+
export declare const ShortcutLabel: import("@emotion/styled").StyledComponent<{
|
|
28
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
30
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
31
|
+
export declare const StyledInput: import("@emotion/styled").StyledComponent<{
|
|
32
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
33
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
34
|
+
}, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
@@ -17,8 +17,8 @@ import React from 'react';
|
|
|
17
17
|
import { MenuContext } from '../../contexts';
|
|
18
18
|
import { GroupProps, MenuProps } from './types';
|
|
19
19
|
declare const Menu: {
|
|
20
|
-
({ children, onItemClick, activeMenuItems, testId, }: React.PropsWithChildren<MenuProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
21
|
-
Group: ({ children, divider, }: React.PropsWithChildren<GroupProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
|
+
({ children, onItemClick, activeMenuItems, testId, isHorizontal, }: React.PropsWithChildren<MenuProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
21
|
+
Group: ({ children, divider, isHorizontal, }: React.PropsWithChildren<GroupProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
22
22
|
Item: ({ itemId, title, disabled, testId, onClick, }: {
|
|
23
23
|
itemId: "α" | "β" | "γ" | "δ" | "ε" | "ζ" | "η" | "θ" | "ι" | "κ" | "λ" | "μ" | "ν" | "ξ" | "ο" | "π" | "ρ" | "σ" | "τ" | "υ" | "φ" | "χ" | "ψ" | "ω" | "Å" | "°" | "ħ" | "±" | "‰" | "√" | "←" | "→" | "←/" | "/→" | "↔" | "∏" | "∑" | "∞" | "∂" | "∆" | "∫" | "≈" | "=/" | "≤" | "≥" | "℉" | "℃" | "about" | "analyse" | "any-atom" | "arom" | "arrow-upward" | "bond-any" | "bond-aromatic" | "bond-crossed" | "bond-hydrogen" | "bond-dative" | "bond-double" | "bond-doublearomatic" | "bond-down" | "bond-single" | "bond-singlearomatic" | "bond-singledouble" | "bond-triple" | "bond-up" | "bond-updown" | "capital-t" | "chain" | "charge-minus" | "charge-plus" | "check" | "check-mark" | "chiral-flag" | "cip" | "clean" | "copies" | "copy" | "copy-image" | "copy-mol" | "copy-ket" | "cut" | "dearom" | "delete" | "dropdown" | "enhanced-stereo" | "edit" | "elements-group" | "extended-table" | "erase" | "file-thumbnail" | "fullscreen-enter" | "fullscreen-exit" | "generic-groups" | "hand" | "compressedhand" | "help" | "history" | "image-frame" | "layout" | "logo" | "miew" | "macromolecules-mode" | "molecules-mode" | "clear" | "open" | "paste" | "period-table" | "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" | "reaction-arrow-open-angle" | "reaction-arrow-filled-triangle" | "reaction-arrow-filled-bow" | "reaction-arrow-dashed-open-angle" | "reaction-arrow-failed" | "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-automap" | "reaction-map" | "reaction-plus" | "reaction-unmap" | "recognize" | "redo" | "rgroup-attpoints" | "rgroup-fragment" | "rgroup-label" | "save" | "search" | "select-fragment" | "select-lasso" | "select-rectangle" | "settings" | "sgroup" | "template-0" | "template-1" | "template-2" | "template-3" | "template-4" | "template-5" | "template-6" | "template-7" | "template-dialog" | "template-lib" | "snake-mode" | "text" | "text-bold" | "text-italic" | "text-subscript" | "text-superscript" | "transform-flip-h" | "transform-flip-v" | "undo" | "zoom-in" | "zoom-out" | "zoom-reset" | "shape-ellipse" | "shape-rectangle" | "shape-polyline" | "shape-line" | "not-found" | "save-1" | "open-1" | "reset" | "close" | "general" | "general-white" | "stereo" | "stereo-white" | "atoms" | "atoms-white" | "bonds" | "bonds-white" | "server" | "server-white" | "3dviewer" | "3dviewer-white" | "debugging" | "debugging-white" | "dropdown-indicator" | "text-special-symbols" | "chevron" | "open-window-paste-icon" | "open-window-upload-icon" | "bracket" | "error" | "rap-left-link" | "rap-middle-link" | "rap-right-link" | "arrows-left" | "arrows-right" | "sugar" | "base" | "phosphate" | "preset" | "edit-filled" | "vertical-dots" | "expand" | "minimize-expansion" | "explicit-hydrogens" | "flex-layout-mode" | "snake-layout-mode" | "sequence-layout-mode";
|
|
24
24
|
title?: string | undefined;
|
|
@@ -17,12 +17,20 @@
|
|
|
17
17
|
export declare const MenuLayout: 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
|
+
isHorizontal?: boolean | undefined;
|
|
20
22
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
21
23
|
export declare const Divider: import("@emotion/styled").StyledComponent<{
|
|
22
24
|
theme?: import("@emotion/react").Theme | undefined;
|
|
23
25
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
24
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<
|
|
26
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, {}>;
|
|
27
|
+
export declare const VerticalDivider: import("@emotion/styled").StyledComponent<{
|
|
28
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
30
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, {}>;
|
|
25
31
|
export declare const StyledGroup: import("@emotion/styled").StyledComponent<{
|
|
26
32
|
theme?: import("@emotion/react").Theme | undefined;
|
|
27
33
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
34
|
+
} & {
|
|
35
|
+
isHorizontal?: boolean | undefined;
|
|
28
36
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -15,9 +15,11 @@
|
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
export interface GroupProps {
|
|
17
17
|
divider?: boolean;
|
|
18
|
+
isHorizontal?: boolean;
|
|
18
19
|
}
|
|
19
20
|
export declare type MenuProps = {
|
|
20
21
|
onItemClick: (itemKey: string) => void;
|
|
21
22
|
activeMenuItems?: string[];
|
|
22
23
|
testId?: string;
|
|
24
|
+
isHorizontal?: boolean;
|
|
23
25
|
};
|
|
@@ -17,3 +17,7 @@ export declare const Loader: import("@emotion/styled").StyledComponent<{
|
|
|
17
17
|
theme?: import("@emotion/react").Theme | undefined;
|
|
18
18
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
19
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
|
+
export declare const SvgPreview: import("@emotion/styled").StyledComponent<{
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
23
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -14,5 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import React from 'react';
|
|
17
|
-
declare
|
|
17
|
+
declare type MonomerLibraryProps = {
|
|
18
|
+
isSequenceEditInRNABuilderMode?: boolean;
|
|
19
|
+
};
|
|
20
|
+
declare const MonomerLibrary: React.MemoExoticComponent<(props: MonomerLibraryProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
18
21
|
export { MonomerLibrary };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AnyAction, Dispatch } from 'redux';
|
|
2
|
+
import { CoreEditor } from 'ketcher-core';
|
|
3
|
+
export declare const resetRnaBuilder: (dispatch: Dispatch<AnyAction>) => void;
|
|
4
|
+
export declare const resetRnaBuilderAfterSequenceUpdate: (dispatch: Dispatch<AnyAction>, editor: CoreEditor) => void;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
import { MonomerItemType } from 'ketcher-core';
|
|
16
|
+
import { IKetIdtAliases, MonomerItemType } from 'ketcher-core';
|
|
17
17
|
export interface IExpandIconProps {
|
|
18
18
|
expanded: boolean;
|
|
19
19
|
}
|
|
@@ -25,5 +25,6 @@ export interface IRnaPreset {
|
|
|
25
25
|
phosphate?: MonomerItemType;
|
|
26
26
|
default?: boolean;
|
|
27
27
|
favorite?: boolean;
|
|
28
|
+
readonly idtAliases?: IKetIdtAliases;
|
|
28
29
|
editedName?: boolean;
|
|
29
30
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const RnaPresetItem: ({ preset, isSelected, onClick, onContextMenu, }:
|
|
1
|
+
import { IRNAPresetItemProps } from './types';
|
|
2
|
+
declare const RnaPresetItem: ({ preset, isSelected, onClick, onContextMenu, onMouseLeave, onMouseMove, }: IRNAPresetItemProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { RnaPresetItem };
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
+
import React from 'react';
|
|
16
17
|
import { IRnaPreset } from '../RnaBuilder/types';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
export interface IRNAPresetItemProps {
|
|
19
|
+
readonly isSelected: boolean;
|
|
20
|
+
readonly onClick: VoidFunction;
|
|
21
|
+
readonly onContextMenu: React.MouseEventHandler;
|
|
22
|
+
readonly onMouseLeave: React.MouseEventHandler;
|
|
23
|
+
readonly onMouseMove: React.MouseEventHandler;
|
|
24
|
+
readonly preset: IRnaPreset;
|
|
23
25
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const IDTAliasesContainer: 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<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MonomerWithIDTAliasesPreviewProps } from './types';
|
|
2
|
+
declare const MonomerWithIDTAliasesStyledPreview: import("@emotion/styled").StyledComponent<MonomerWithIDTAliasesPreviewProps & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
}, {}, {}>;
|
|
5
|
+
export default MonomerWithIDTAliasesStyledPreview;
|
|
@@ -0,0 +1,12 @@
|
|
|
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 MonomerName: 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<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
10
|
+
export declare const StyledStructRender: import("@emotion/styled").StyledComponent<import("ketcher-react/dist/components/StructRender/types").IStructRenderProps & {
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
export interface MonomerWithIDTAliasesPreviewProps {
|
|
17
|
+
readonly className: string;
|
|
18
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const PresetContainer: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const PresetMonomerRow: import("@emotion/styled").StyledComponent<{
|
|
7
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
8
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
9
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const PresetMonomerLabel: import("@emotion/styled").StyledComponent<{
|
|
11
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
12
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
13
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const PresetMonomerName: import("@emotion/styled").StyledComponent<{
|
|
15
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
16
16
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
17
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const PresetName: import("@emotion/styled").StyledComponent<{
|
|
19
19
|
theme?: import("@emotion/react").Theme | undefined;
|
|
20
20
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
21
21
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const PresetIcon: import("@emotion/styled").StyledComponent<import("ketcher-react/dist/components/Icon/types").IIconProps & {
|
|
23
23
|
theme?: import("@emotion/react").Theme | undefined;
|
|
24
24
|
}, {}, {}>;
|
|
@@ -26,5 +26,6 @@ export declare type DropDownProps = {
|
|
|
26
26
|
customStylesForExpanded?: CSSProperties;
|
|
27
27
|
label?: string;
|
|
28
28
|
testId?: string;
|
|
29
|
+
disabled?: boolean;
|
|
29
30
|
};
|
|
30
|
-
export declare const DropDown: ({ options, currentSelection, selectionHandler, className, label, testId, customStylesForExpanded, }: DropDownProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare const DropDown: ({ options, currentSelection, selectionHandler, className, label, testId, customStylesForExpanded, disabled, }: DropDownProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import { SupportedFormatProperties } from './supportedFormatProperties';
|
|
17
|
-
export declare type SupportedFormats = 'mol' | 'ket' | 'fasta' | 'sequence' | 'idt';
|
|
17
|
+
export declare type SupportedFormats = 'mol' | 'ket' | 'fasta' | 'sequence' | 'idt' | 'svg';
|
|
18
18
|
export declare const getPropertiesByFormat: (format: SupportedFormats) => SupportedFormatProperties;
|
|
@@ -19,7 +19,8 @@ export declare enum ChemicalMimeType {
|
|
|
19
19
|
Helm = "chemical/x-helm",
|
|
20
20
|
Fasta = "chemical/x-fasta",
|
|
21
21
|
Sequence = "chemical/x-sequence",
|
|
22
|
-
Idt = "chemical/x-idt"
|
|
22
|
+
Idt = "chemical/x-idt",
|
|
23
|
+
Svg = "image/svg+xml"
|
|
23
24
|
}
|
|
24
25
|
interface SupportedFormatPropertiesOptions {
|
|
25
26
|
'molfile-saving-mode'?: '3000';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IRnaPreset } from "../components/monomerLibrary/RnaBuilder/types";
|
|
2
|
+
import { IKetMonomerGroupTemplate, MonomerItemType, IRnaLabeledPreset } from 'ketcher-core';
|
|
3
|
+
interface RnaPresetsTemplatesType extends Pick<IKetMonomerGroupTemplate, 'templates' | 'idtAliases'>, Pick<IRnaLabeledPreset, 'default' | 'favorite' | 'name'> {
|
|
4
|
+
}
|
|
5
|
+
export declare const getPresets: (monomers: ReadonlyArray<MonomerItemType>, rnaPresetsTemplates: ReadonlyArray<RnaPresetsTemplatesType>, isDefault?: boolean) => IRnaPreset[];
|
|
6
|
+
export {};
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
export {};
|
|
17
17
|
export * from './emptyFunction';
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
18
|
+
export * from './calculatePreviewTop';
|
|
19
|
+
export * from './getPreset';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IRnaLabeledPreset
|
|
1
|
+
import { IRnaLabeledPreset } from 'ketcher-core';
|
|
2
2
|
export declare const getCachedCustomRnaPresets: () => IRnaLabeledPreset[] | undefined;
|
|
3
|
-
export declare const setCachedCustomRnaPreset: (preset:
|
|
3
|
+
export declare const setCachedCustomRnaPreset: (preset: IRnaLabeledPreset) => void;
|
|
4
4
|
export declare const deleteCachedCustomRnaPreset: (presetName?: string) => void;
|
|
5
5
|
export declare const toggleCachedCustomRnaPresetFavorites: (presetName?: string) => void;
|