ketcher-macromolecules 3.20.0-rc.3 → 3.21.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/Ruler/RulerArea.constants.d.ts +3 -0
- package/dist/components/contextMenu/ContextMenu.d.ts +3 -2
- package/dist/components/contextMenu/SelectedMonomersContextMenu/helpers.d.ts +6 -1
- package/dist/components/contextMenu/SequenceItemContextMenu/SequenceItemContextMenu.test.d.ts +16 -0
- package/dist/components/contextMenu/SequenceItemContextMenu/helpers.d.ts +2 -2
- package/dist/components/contextMenu/monomerCreation.helpers.d.ts +14 -0
- package/dist/components/contextMenu/monomerCreation.helpers.test.d.ts +1 -0
- package/dist/components/contextMenu/types.d.ts +1 -0
- package/dist/components/contextMenu/useMonomerCreationMenu.d.ts +7 -0
- package/dist/components/contextMenu/useMonomerCreationMenu.test.d.ts +1 -0
- package/dist/components/menu/constants.d.ts +7 -0
- package/dist/components/modal/Settings/Settings.styles.d.ts +4 -0
- package/dist/components/modal/Settings/SettingsField.d.ts +4 -3
- package/dist/components/modal/Settings/fieldGroups.d.ts +10 -2
- package/dist/components/monomerLibrary/MonomerLibraryContextMenu.d.ts +1 -0
- package/dist/components/monomerLibrary/MonomerLibraryContextMenu.test.d.ts +1 -0
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/utils.d.ts +7 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/helpers/index.d.ts +1 -0
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/helpers/sequenceEdit.d.ts +2 -0
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/helpers/updateSequenceConfirmation.d.ts +1 -0
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/helpers/updateSequenceConfirmation.test.d.ts +1 -0
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/Summary/Summary.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/Summary/types.d.ts +1 -0
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/groupNameToTabLabelKey.d.ts +28 -0
- package/dist/components/monomerLibrary/monomerLibraryItem/shared.d.ts +3 -2
- package/dist/components/monomerLibrary/tabsContent.d.ts +2 -1
- package/dist/components/preview/Preview.component.test.d.ts +1 -0
- package/dist/components/preview/Preview.d.ts +20 -0
- package/dist/components/preview/Preview.test.d.ts +1 -0
- package/dist/components/shared/TextArea/TextArea.d.ts +1 -2
- package/dist/helpers/countNucleoelents.d.ts +2 -0
- package/dist/helpers/countNucleoelents.test.d.ts +1 -0
- package/dist/helpers/getMonomerName.d.ts +2 -1
- package/dist/helpers/index.d.ts +0 -1
- package/dist/hooks/useSetRnaPresets.test.d.ts +1 -0
- package/dist/i18n/localeResources.generated.d.ts +686 -0
- package/dist/i18n/registerNamespaces.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1766 -799
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1772 -805
- package/dist/index.modern.js.map +1 -1
- package/dist/state/common/editorSlice.d.ts +2 -2
- package/dist/state/library/librarySlice.d.ts +1 -0
- package/dist/state/rna-builder/rnaBuilderSlice.d.ts +1 -0
- package/dist/state/rna-builder/rnaBuilderSlice.test.d.ts +16 -0
- package/dist/testMocks/ketcher-react.d.ts +1 -0
- package/package.json +9 -2
- package/dist/helpers/hydrateLeavingGroup.d.ts +0 -3
|
@@ -3,3 +3,6 @@ export declare const SequenceModeItemWidth = 20;
|
|
|
3
3
|
export declare const SequenceModeIndentWidth = 10;
|
|
4
4
|
export declare const SnakeModeStartOffset = 25;
|
|
5
5
|
export declare const SnakeModeItemWidth = 60;
|
|
6
|
+
export declare const RulerHandleOffsetX = -8;
|
|
7
|
+
export declare const RulerInputOffsetX = 10;
|
|
8
|
+
export declare const RulerInputWidth = 35;
|
|
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { ItemParams } from 'react-contexify';
|
|
3
3
|
import { BaseMonomer, BaseSequenceItemRenderer, DeprecatedFlexModeOrSnakeModePolymerBondRenderer } from 'ketcher-core';
|
|
4
4
|
import { CONTEXT_MENU_ID } from 'components/contextMenu/types';
|
|
5
|
-
interface MenuItem {
|
|
5
|
+
export interface MenuItem {
|
|
6
6
|
name: string;
|
|
7
7
|
title?: string;
|
|
8
8
|
separator?: boolean;
|
|
@@ -30,6 +30,7 @@ interface MenuProps {
|
|
|
30
30
|
id: CONTEXT_MENU_ID;
|
|
31
31
|
menuItems: MenuItem[];
|
|
32
32
|
handleMenuChange: (params: ItemParams) => void;
|
|
33
|
+
onVisibilityChange?: (visible: boolean) => void;
|
|
33
34
|
}
|
|
34
|
-
export declare const ContextMenu: ({ id, handleMenuChange, menuItems }: MenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
35
|
+
export declare const ContextMenu: ({ id, handleMenuChange, menuItems, onVisibilityChange, }: MenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
35
36
|
export {};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { AmbiguousMonomer, BaseMonomer, Peptide } from 'ketcher-core';
|
|
2
2
|
export declare const isSenseBase: (monomer: BaseMonomer | AmbiguousMonomer) => boolean;
|
|
3
|
+
export declare const isAntisenseOptionVisible: (selectedMonomers: BaseMonomer[]) => boolean;
|
|
4
|
+
/**
|
|
5
|
+
* The eligibility rules apply per chain: an ineligible chain in the selection
|
|
6
|
+
* does not block the antisense creation for the other chains (requirement 1.3
|
|
7
|
+
* of #5678), but one ineligible base still disables it for its own chain.
|
|
8
|
+
*/
|
|
3
9
|
export declare const isAntisenseCreationDisabled: (selectedMonomers: BaseMonomer[]) => boolean;
|
|
4
10
|
export declare const hasOnlyDeoxyriboseSugars: (selectedMonomers: BaseMonomer[]) => boolean;
|
|
5
11
|
export declare const hasOnlyRiboseSugars: (selectedMonomers: BaseMonomer[]) => boolean;
|
|
6
|
-
export declare const isAntisenseOptionVisible: (selectedMonomers: BaseMonomer[]) => boolean;
|
|
7
12
|
export declare const hasUnsplitNucleotide: (selectedMonomers: BaseMonomer[]) => boolean;
|
|
8
13
|
export declare const AMINO_ACID_MODIFICATION_MENU_ITEM_PREFIX = "aminoAcidModification-";
|
|
9
14
|
export declare const getModifyAminoAcidsMenuItems: (selectedMonomers: BaseMonomer[]) => {
|
|
@@ -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 {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
1
2
|
import { LabeledNodesWithPositionInSequence, NodesSelection, SequenceNode } from 'ketcher-core';
|
|
2
|
-
export declare const generateSequenceContextMenuProps: (selections
|
|
3
|
+
export declare const generateSequenceContextMenuProps: (selections: NodesSelection | undefined, t: TFunction) => {
|
|
3
4
|
title: string;
|
|
4
5
|
selectedSequenceLabeledNodes: LabeledNodesWithPositionInSequence[];
|
|
5
6
|
isSelectedOnlyNucleoelements: boolean;
|
|
6
7
|
isSelectedAtLeastOneNucleoelement: boolean;
|
|
7
8
|
isSequenceFirstsOnlyNucleoelementsSelected: boolean;
|
|
8
|
-
hasAntisense: boolean;
|
|
9
9
|
} | undefined;
|
|
10
10
|
export declare function isEstablishHydrogenBondDisabled(selections?: NodesSelection): boolean;
|
|
11
11
|
export declare function isNodeContainHydrogenBonds(node: SequenceNode | undefined): boolean | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseMonomer, type CoreEditor } from 'ketcher-core';
|
|
2
|
+
type DrawingEntitiesManager = CoreEditor['drawingEntitiesManager'];
|
|
3
|
+
export declare const isSameMonomer: (first: BaseMonomer, second: BaseMonomer) => boolean;
|
|
4
|
+
export declare const canCreateMonomer: (manager: DrawingEntitiesManager, monomers: BaseMonomer[]) => boolean;
|
|
5
|
+
export declare const getMonomerCreationMenuState: (manager: DrawingEntitiesManager, selectedMonomers: BaseMonomer[], isCompositeSymbol?: boolean) => {
|
|
6
|
+
monomer: BaseMonomer;
|
|
7
|
+
matchingMonomers: BaseMonomer[];
|
|
8
|
+
canCreate: boolean;
|
|
9
|
+
showEdit: boolean;
|
|
10
|
+
editDisabled: boolean;
|
|
11
|
+
editAllDisabled: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare const highlightMonomers: (monomers: BaseMonomer[]) => () => void;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare enum CONTEXT_MENU_ID {
|
|
2
2
|
FOR_RNA = "context-menu-for-RNA",
|
|
3
|
+
FOR_MONOMER_LIBRARY = "context-menu-for-monomer-library",
|
|
3
4
|
FOR_SEQUENCE = "context-menu-for-sequence",
|
|
4
5
|
FOR_POLYMER_BOND = "context-menu-for-polymer-bond",
|
|
5
6
|
FOR_SELECTED_MONOMERS = "context-menu-for-selected-monomers"
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseMonomer, CoreEditor } from 'ketcher-core';
|
|
2
|
+
import { MenuItem } from './ContextMenu';
|
|
3
|
+
export declare const useMonomerCreationMenu: (editor: CoreEditor | undefined, monomers: BaseMonomer[], isCompositeSymbol?: boolean) => {
|
|
4
|
+
menuItems: MenuItem[];
|
|
5
|
+
handleMenuChange: (id?: string) => boolean;
|
|
6
|
+
onVisibilityChange: (visible: boolean) => void;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,8 @@
|
|
|
1
1
|
export declare const SELECT_SUBMENU_ID = "select-submenu";
|
|
2
|
+
export declare const MACRO_SELECTION_TOOL_OPTIONS: {
|
|
3
|
+
readonly 'select-rectangle': "rectangle";
|
|
4
|
+
readonly 'select-lasso': "lasso";
|
|
5
|
+
readonly 'select-structure': "structure";
|
|
6
|
+
};
|
|
7
|
+
export type MacroSelectionTool = keyof typeof MACRO_SELECTION_TOOL_OPTIONS;
|
|
8
|
+
export declare const isMacroSelectionTool: (toolName: string | null) => toolName is MacroSelectionTool;
|
|
@@ -41,6 +41,10 @@ export declare const FieldsContainer: import("@emotion/styled").StyledComponent<
|
|
|
41
41
|
theme?: import("@emotion/react").Theme;
|
|
42
42
|
as?: React.ElementType;
|
|
43
43
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
44
|
+
export declare const FieldLabelContent: import("@emotion/styled").StyledComponent<{
|
|
45
|
+
theme?: import("@emotion/react").Theme;
|
|
46
|
+
as?: React.ElementType;
|
|
47
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
44
48
|
export declare const FieldWrapper: import("@emotion/styled").StyledComponent<{
|
|
45
49
|
theme?: import("@emotion/react").Theme;
|
|
46
50
|
as?: React.ElementType;
|
|
@@ -16,17 +16,18 @@
|
|
|
16
16
|
import type { SettingFieldValue } from './fieldGroups';
|
|
17
17
|
interface SettingsFieldProps {
|
|
18
18
|
name: string;
|
|
19
|
-
|
|
19
|
+
labelKey: string;
|
|
20
20
|
type: 'checkbox' | 'number' | 'text' | 'select' | 'color';
|
|
21
21
|
value: SettingFieldValue | undefined;
|
|
22
22
|
onChange: (value: SettingFieldValue) => void;
|
|
23
23
|
options?: Array<{
|
|
24
24
|
value: SettingFieldValue;
|
|
25
|
-
|
|
25
|
+
labelKey: string;
|
|
26
26
|
}>;
|
|
27
27
|
min?: number;
|
|
28
28
|
max?: number;
|
|
29
29
|
step?: number;
|
|
30
|
+
tooltipKey?: string;
|
|
30
31
|
}
|
|
31
|
-
export declare const SettingsField: ({ name,
|
|
32
|
+
export declare const SettingsField: ({ name, labelKey, type, value, onChange, options, min, max, step, tooltipKey, }: SettingsFieldProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
32
33
|
export {};
|
|
@@ -20,19 +20,27 @@ export type SettingFieldName = {
|
|
|
20
20
|
}[keyof SettingsFormValue];
|
|
21
21
|
export interface FieldGroup {
|
|
22
22
|
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* Frozen English literal, NOT a translation key - Playwright's
|
|
25
|
+
* settingsDialog/Constants.ts hardcodes `${title}-accordion` test ids
|
|
26
|
+
* (e.g. 'General-accordion'), so this value must never change. Use
|
|
27
|
+
* `titleKey` for the translated, user-visible group label.
|
|
28
|
+
*/
|
|
23
29
|
title: string;
|
|
30
|
+
titleKey: string;
|
|
24
31
|
fields: Array<SettingFieldName>;
|
|
25
32
|
}
|
|
26
33
|
export interface FieldDefinition {
|
|
27
|
-
|
|
34
|
+
labelKey: string;
|
|
28
35
|
type: 'checkbox' | 'number' | 'text' | 'select' | 'color';
|
|
29
36
|
options?: Array<{
|
|
30
37
|
value: SettingFieldValue;
|
|
31
|
-
|
|
38
|
+
labelKey: string;
|
|
32
39
|
}>;
|
|
33
40
|
min?: number;
|
|
34
41
|
max?: number;
|
|
35
42
|
step?: number;
|
|
43
|
+
tooltipKey?: string;
|
|
36
44
|
}
|
|
37
45
|
export declare const FIELD_GROUPS: FieldGroup[];
|
|
38
46
|
export declare const FIELD_DEFINITIONS: Record<string, FieldDefinition>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MonomerLibraryContextMenu: () => import("react").ReactPortal | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/utils.d.ts
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Values are macromoleculesDialogs translation-key suffixes, not display
|
|
18
|
+
* text - MonomerGroups itself must stay untranslated (its values are used
|
|
19
|
+
* as Redux state keys across state/library and state/rna-builder), so
|
|
20
|
+
* callers resolve these through t() rather than rendering them directly.
|
|
21
|
+
*/
|
|
22
|
+
export declare const groupNameToRnaEditorItemLabelKey: {
|
|
17
23
|
Sugars: string;
|
|
18
24
|
Bases: string;
|
|
19
25
|
Phosphates: string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { LabeledNodesWithPositionInSequence } from 'ketcher-core';
|
|
2
|
+
export declare const MULTIPLE_MONOMERS_LABEL = "[multiple]";
|
|
3
|
+
export declare const DISABLED_MONOMERS_LABEL = "[disabled]";
|
|
2
4
|
export declare const generateSequenceSelectionGroupNames: (labeledNucleotides?: LabeledNodesWithPositionInSequence[]) => {
|
|
3
5
|
Sugars: string;
|
|
4
6
|
Bases: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isUpdateSequenceConfirmationNeeded: (countOfNucleoelements: number, countOfMirroredNucleoelements: number) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import { ISummaryProps } from './types';
|
|
17
|
-
export declare const Summary: ({ groupName, quantity, expanded, iconName, }: ISummaryProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const Summary: ({ groupName, label, quantity, expanded, iconName, }: ISummaryProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -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
|
+
/**
|
|
17
|
+
* Values are macromoleculesDialogs translation-key suffixes, not display
|
|
18
|
+
* text - groupName doubles as a Redux state key (setActiveRnaBuilderItem,
|
|
19
|
+
* selectAmbiguousMonomersInCategory, data-testid suffixes), so callers
|
|
20
|
+
* resolve these through t() rather than rendering groupName directly.
|
|
21
|
+
*/
|
|
22
|
+
export declare const groupNameToTabLabelKey: {
|
|
23
|
+
Presets: string;
|
|
24
|
+
Sugars: string;
|
|
25
|
+
Bases: string;
|
|
26
|
+
Phosphates: string;
|
|
27
|
+
Nucleotides: string;
|
|
28
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
1
2
|
import { CoreEditor, IRnaPreset, MonomerOrAmbiguousType } from 'ketcher-core';
|
|
2
|
-
export declare const getAutochainErrorMessage: (editor: CoreEditor, libraryItem: MonomerOrAmbiguousType | IRnaPreset) => string;
|
|
3
|
-
export declare const cardMouseOverHandler: (editor: CoreEditor, libraryItem: MonomerOrAmbiguousType | IRnaPreset, setAutochainErrorMessage: (message: string) => void) => void;
|
|
3
|
+
export declare const getAutochainErrorMessage: (editor: CoreEditor, libraryItem: MonomerOrAmbiguousType | IRnaPreset, t: TFunction) => string;
|
|
4
|
+
export declare const cardMouseOverHandler: (editor: CoreEditor, libraryItem: MonomerOrAmbiguousType | IRnaPreset, setAutochainErrorMessage: (message: string) => void, t: TFunction) => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
1
2
|
import { IRnaPreset } from './RnaBuilder/types';
|
|
2
3
|
import { TabsData } from 'components/shared/Tabs';
|
|
3
|
-
export declare const tabsContent: (duplicatePreset: (preset?: IRnaPreset) => void, editPreset: (preset: IRnaPreset) => void) => TabsData;
|
|
4
|
+
export declare const tabsContent: (t: TFunction, duplicatePreset: (preset?: IRnaPreset) => void, editPreset: (preset: IRnaPreset) => void) => TabsData;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -14,3 +14,23 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
export declare const Preview: () => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
17
|
+
interface CalculatePreviewPositionParams {
|
|
18
|
+
targetTop: number;
|
|
19
|
+
targetBottom: number;
|
|
20
|
+
targetLeft: number;
|
|
21
|
+
targetWidth: number;
|
|
22
|
+
previewHeight: number;
|
|
23
|
+
previewWidth: number;
|
|
24
|
+
canvasWrapperTop: number;
|
|
25
|
+
canvasWrapperBottom: number;
|
|
26
|
+
canvasWrapperLeft: number;
|
|
27
|
+
canvasWrapperRight: number;
|
|
28
|
+
ketcherRootOffsetX: number;
|
|
29
|
+
ketcherRootOffsetY: number;
|
|
30
|
+
previewOffset: number;
|
|
31
|
+
}
|
|
32
|
+
export declare function calculatePreviewPosition({ targetTop, targetBottom, targetLeft, targetWidth, previewHeight, previewWidth, canvasWrapperTop, canvasWrapperBottom, canvasWrapperLeft, canvasWrapperRight, ketcherRootOffsetX, ketcherRootOffsetY, previewOffset, }: CalculatePreviewPositionParams): {
|
|
33
|
+
top: number;
|
|
34
|
+
left: number;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -17,8 +17,7 @@ export type TextEditorProps = {
|
|
|
17
17
|
value: string;
|
|
18
18
|
inputHandler?: (str: string) => void;
|
|
19
19
|
readonly?: boolean;
|
|
20
|
-
selectOnInit?: boolean;
|
|
21
20
|
className?: string;
|
|
22
21
|
testId?: string;
|
|
23
22
|
};
|
|
24
|
-
export declare const TextArea: (
|
|
23
|
+
export declare const TextArea: import("react").ForwardRefExoticComponent<TextEditorProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CoreEditor, LabeledNodesWithPositionInSequence } from 'ketcher-core';
|
|
1
2
|
export declare const getCountOfNucleoelements: <T extends {
|
|
2
3
|
[key: string]: unknown;
|
|
3
4
|
}>(selections: T[]) => number;
|
|
5
|
+
export declare const getCountOfMirroredNucleoelements: (editor: CoreEditor | undefined, sequenceSelection: LabeledNodesWithPositionInSequence[]) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
export {};
|
|
17
16
|
export * from './emptyFunction';
|
|
18
17
|
export * from './getPreset';
|
|
19
18
|
export * from './getConnectedAttachmentPoints';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|