ketcher-macromolecules 3.21.0 → 3.23.0-dev.1
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/Editor.d.ts +2 -3
- package/dist/components/FloatingTools/FloatingTools.d.ts +1 -1
- package/dist/components/FullscreenButton/FullscreenButton.d.ts +1 -1
- package/dist/components/FullscreenButton/index.d.ts +1 -1
- package/dist/components/Layout/Layout.d.ts +19 -1
- package/dist/components/Layout/index.d.ts +1 -1
- package/dist/components/LayoutModeButton/LayoutModeButton.d.ts +1 -1
- package/dist/components/LayoutModeButton/index.d.ts +1 -1
- package/dist/components/LeftMenuComponent/LeftMenuComponent.d.ts +1 -1
- package/dist/components/LeftMenuComponent/index.d.ts +1 -1
- package/dist/components/SequenceSyncEditModeButton/SequenceSyncEditModeButton.d.ts +1 -1
- package/dist/components/SequenceSyncEditModeButton/index.d.ts +1 -1
- package/dist/components/SequenceTypeGroupButton/SequenceTypeGroupButton.d.ts +1 -1
- package/dist/components/SequenceTypeGroupButton/index.d.ts +1 -1
- package/dist/components/TopMenuComponent/TopMenuComponent.d.ts +1 -1
- package/dist/components/TopMenuComponent/index.d.ts +1 -1
- package/dist/components/TopMenuComponent/menuItemHandlers.d.ts +24 -0
- package/dist/components/ZoomControls/ZoomControls.d.ts +1 -1
- package/dist/components/ZoomControls/ZoomInput.d.ts +1 -1
- package/dist/components/ZoomControls/helpers.d.ts +3 -0
- package/dist/components/ZoomControls/styles.d.ts +2 -2
- package/dist/components/contextMenu/ContextMenu.d.ts +3 -2
- package/dist/components/contextMenu/useMonomerCreationMenu.d.ts +1 -1
- package/dist/components/macromoleculeProperties/CalculateMacromoleculePropertiesButton.d.ts +1 -1
- package/dist/components/macromoleculeProperties/MacromoleculePropertiesWindow.d.ts +1 -1
- package/dist/components/macromoleculeProperties/index.d.ts +1 -1
- package/dist/components/menu/Menu.d.ts +1 -1
- package/dist/components/menu/index.d.ts +1 -1
- package/dist/components/menu/menuItem/MenuItem.d.ts +1 -1
- package/dist/components/menu/menuItem/index.d.ts +1 -1
- package/dist/components/menu/menuItem/styles.d.ts +1 -1
- package/dist/components/menu/styles.d.ts +1 -1
- package/dist/components/menu/subMenu/SubMenu.d.ts +1 -1
- package/dist/components/menu/subMenu/index.d.ts +1 -1
- package/dist/components/menu/subMenu/styles.d.ts +1 -1
- package/dist/components/menu/subMenu/types.d.ts +1 -1
- package/dist/components/menu/types.d.ts +1 -1
- package/dist/components/modal/About/About.d.ts +1 -1
- package/dist/components/modal/ConfirmationDialog/ConfirmationDialog.d.ts +1 -1
- package/dist/components/modal/Delete/index.d.ts +1 -1
- package/dist/components/modal/Delete/styledComponents.d.ts +1 -1
- package/dist/components/modal/Open/AnalyzingFile/LoadingCircles/index.d.ts +1 -1
- package/dist/components/modal/Open/AnalyzingFile/index.d.ts +1 -1
- package/dist/components/modal/Open/Open.styles.d.ts +1 -1
- package/dist/components/modal/Open/OpenOptions/FileDrop/FileDrop.d.ts +1 -1
- package/dist/components/modal/Open/OpenOptions/FileDrop/index.d.ts +1 -1
- package/dist/components/modal/Open/OpenOptions/index.d.ts +1 -1
- package/dist/components/modal/Open/ViewSwitcher/ViewSwitcher.d.ts +1 -1
- package/dist/components/modal/Open/ViewSwitcher/index.d.ts +1 -1
- package/dist/components/modal/Open/fileOpener.d.ts +1 -1
- package/dist/components/modal/Open/index.d.ts +1 -1
- package/dist/components/modal/Settings/Settings.styles.d.ts +11 -29
- package/dist/components/modal/Settings/{SettingsField.d.ts → SettingsFieldControl.d.ts} +6 -14
- package/dist/components/modal/Settings/{Settings.d.ts → SettingsPanelAdapter.d.ts} +8 -2
- package/dist/components/modal/Settings/index.d.ts +2 -2
- package/dist/components/modal/Settings/settingsFields.d.ts +63 -0
- package/dist/components/modal/UpdateSequenceInRNABuilder/index.d.ts +1 -1
- package/dist/components/modal/modalContainer/index.d.ts +1 -1
- package/dist/components/modal/modalContainer/modalComponentList.d.ts +10 -10
- package/dist/components/modal/modalContainer/types.d.ts +1 -2
- package/dist/components/modal/monomerConnection/MonomerConnections.d.ts +3 -3
- package/dist/components/modal/save/Save.d.ts +1 -1
- package/dist/components/modal/save/Save.styles.d.ts +1 -1
- package/dist/components/modal/save/index.d.ts +1 -1
- package/dist/components/monomerLibrary/MonomerLibrary.d.ts +1 -1
- package/dist/components/monomerLibrary/MonomerLibraryContextMenu.utils.d.ts +32 -0
- package/dist/components/monomerLibrary/RnaBuilder/RnaBuilder.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditor.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorCollapsed/RnaEditorCollapsed.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorCollapsed/index.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorCollapsed/styles.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorCollapsed/types.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/GroupBlock.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/GroupBlockCompact.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/GroupBlockWide.d.ts +2 -2
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/index.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/styles.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/types.d.ts +2 -2
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/utils.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/RnaEditorExpanded.d.ts +2 -2
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/helpers/resetRnaBuilder.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/index.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/styles.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/index.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/styles.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/PresetPhosphateFilterPopup.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/RnaElements.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/RnaElementsTabsView.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/Summary/Summary.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/Summary/index.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/Summary/styles.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/Summary/types.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/groupNameToTabLabelKey.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/hooks/useGroupsData.d.ts +2 -2
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/index.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/styles.d.ts +4 -4
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/types.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/index.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/styles.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaBuilder/types.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaPresetGroup/RnaPresetGroup.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaPresetItem/RnaPresetItem.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaPresetItem/index.d.ts +1 -1
- package/dist/components/monomerLibrary/RnaPresetItem/types.d.ts +1 -1
- package/dist/components/monomerLibrary/index.d.ts +1 -1
- package/dist/components/monomerLibrary/monomerLibraryGroup/index.d.ts +1 -1
- package/dist/components/monomerLibrary/monomerLibraryGroup/types.d.ts +1 -1
- package/dist/components/monomerLibrary/monomerLibraryItem/index.d.ts +1 -1
- package/dist/components/monomerLibrary/monomerLibraryItem/types.d.ts +1 -1
- package/dist/components/monomerLibrary/monomerLibraryList/MonomerList.d.ts +1 -1
- package/dist/components/monomerLibrary/monomerLibraryList/index.d.ts +1 -1
- package/dist/components/monomerLibrary/monomerLibraryList/styles.d.ts +1 -1
- package/dist/components/monomerLibrary/monomerLibraryList/types.d.ts +2 -2
- package/dist/components/monomerLibrary/styles.d.ts +3 -1
- package/dist/components/monomerLibrary/tabsContent.d.ts +1 -1
- package/dist/components/preview/Preview.d.ts +1 -1
- package/dist/components/preview/components/BondAttachmentPoints/BondAttachmentPoints.d.ts +1 -1
- package/dist/components/preview/components/MonomerPreview/MonomerPreview.d.ts +1 -1
- package/dist/components/preview/components/PresetPreview/PresetPreview.styles.d.ts +1 -1
- package/dist/components/preview/helpers.d.ts +1 -1
- package/dist/components/preview/hooks/useIDTAliasesTextForPreset.d.ts +1 -1
- package/dist/components/shared/Tabs/Tabs.d.ts +1 -1
- package/dist/components/shared/Tabs/Tabs.styles.d.ts +3 -3
- package/dist/components/shared/Tabs/index.d.ts +1 -1
- package/dist/components/shared/TextArea/TextArea.d.ts +1 -1
- package/dist/components/shared/TextArea/index.d.ts +1 -1
- package/dist/components/shared/actionButton/ActionButton.d.ts +1 -1
- package/dist/components/shared/dropDown/dropDown.d.ts +1 -1
- package/dist/components/shared/dropDown/index.d.ts +1 -1
- package/dist/components/shared/dropDown/styledIcons.d.ts +1 -1
- package/dist/components/shared/icon/icon.d.ts +1 -1
- package/dist/components/shared/modal/Modal.d.ts +11 -1
- package/dist/components/shared/monomerOnCanvas/Chem.d.ts +1 -1
- package/dist/components/shared/monomerOnCanvas/Nucleotide.d.ts +1 -1
- package/dist/components/shared/monomerOnCanvas/Peptide.d.ts +1 -1
- package/dist/components/shared/monomerOnCanvas/Phosphate.d.ts +1 -1
- package/dist/components/shared/monomerOnCanvas/RNABase.d.ts +1 -1
- package/dist/components/shared/monomerOnCanvas/SequenceStartArrow.d.ts +1 -1
- package/dist/components/shared/monomerOnCanvas/Sugar.d.ts +1 -1
- package/dist/components/shared/monomerOnCanvas/UnresolvedMonomer.d.ts +1 -1
- package/dist/components/shared/textInputField/TextInputField.d.ts +1 -1
- package/dist/components/shared/textInputField/index.d.ts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/contexts/index.d.ts +3 -4
- package/dist/contexts/menuContext.d.ts +1 -1
- package/dist/helpers/formats/formatProperties.d.ts +1 -1
- package/dist/helpers/formats/index.d.ts +1 -1
- package/dist/helpers/formats/supportedFormatProperties.d.ts +2 -2
- package/dist/helpers/getPreset.d.ts +1 -1
- package/dist/helpers/index.d.ts +1 -1
- package/dist/helpers/rnaValidations.d.ts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/stateHooks.d.ts +2 -2
- package/dist/hooks/useDebouncedShowPreview.d.ts +2 -2
- package/dist/hooks/useMenuContext.d.ts +1 -1
- package/dist/i18n/localeResources.generated.d.ts +252 -225
- package/dist/index.css +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13674 -16124
- package/dist/index.modern.js +13643 -16094
- package/dist/setupTests.d.ts +1 -1
- package/dist/state/common/editorSlice.d.ts +7 -7
- package/dist/state/common/index.d.ts +1 -1
- package/dist/state/index.d.ts +2 -2
- package/dist/state/library/index.d.ts +1 -1
- package/dist/state/library/librarySlice.d.ts +5 -5
- package/dist/state/modal/index.d.ts +1 -1
- package/dist/state/modal/modalSlice.d.ts +4 -3
- package/dist/state/rna-builder/index.d.ts +1 -1
- package/dist/state/rna-builder/rnaBuilderSlice.d.ts +17 -14
- package/dist/state/store.d.ts +1 -1
- package/dist/testUtils/storeProviders.d.ts +3 -0
- package/dist/testUtils/themeProvider.d.ts +1 -0
- package/dist/theming/defaultTheme/defaultTheme.d.ts +1 -1
- package/dist/theming/defaultTheme/index.d.ts +1 -1
- package/dist/theming/defaultTheme/theme.types.d.ts +1 -1
- package/dist/theming/globalStyles/getGlobalStyles.d.ts +1 -1
- package/dist/theming/globalStyles/index.d.ts +1 -1
- package/dist/theming/mixins/index.d.ts +1 -1
- package/dist/theming/mixins/mixins.d.ts +2 -2
- package/package.json +22 -39
- package/dist/components/FullscreenButton/FullscreenButton.test.d.ts +0 -1
- package/dist/components/Layout/Layout.test.d.ts +0 -16
- package/dist/components/Ruler/RulerArea.test.d.ts +0 -1
- package/dist/components/SequenceSyncEditModeButton/SequenceSyncEditModeButton.test.d.ts +0 -16
- package/dist/components/contextMenu/RNAContextMenu.test.d.ts +0 -16
- package/dist/components/contextMenu/SelectedMonomersContextMenu/helpers.test.d.ts +0 -1
- package/dist/components/contextMenu/SequenceItemContextMenu/SequenceItemContextMenu.test.d.ts +0 -16
- package/dist/components/contextMenu/SequenceItemContextMenu/helpers.test.d.ts +0 -1
- package/dist/components/contextMenu/monomerCreation.helpers.test.d.ts +0 -1
- package/dist/components/contextMenu/useMonomerCreationMenu.test.d.ts +0 -1
- package/dist/components/menu/Menu.test.d.ts +0 -1
- package/dist/components/menu/menuItem/MenuItem.test.d.ts +0 -1
- package/dist/components/menu/subMenu/SubMenu.test.d.ts +0 -1
- package/dist/components/modal/Delete/Delete.test.d.ts +0 -16
- package/dist/components/modal/Open/AnalyzingFile/AnalyzingFile.test.d.ts +0 -1
- package/dist/components/modal/Open/AnalyzingFile/LoadingCircles/LoadingCircles.test.d.ts +0 -1
- package/dist/components/modal/Open/Open.test.d.ts +0 -16
- package/dist/components/modal/Open/OpenOptions/FileDrop/FileDrop.test.d.ts +0 -1
- package/dist/components/modal/Open/OpenOptions/OpenOptions.test.d.ts +0 -1
- package/dist/components/modal/Settings/SettingsAccordion.d.ts +0 -24
- package/dist/components/modal/Settings/SettingsAccordion.styles.d.ts +0 -27
- package/dist/components/modal/Settings/SettingsFields.d.ts +0 -24
- package/dist/components/modal/Settings/fieldGroups.d.ts +0 -46
- package/dist/components/modal/UpdateSequenceInRNABuilder/UpdateSequenceInRNABuilder.test.d.ts +0 -16
- package/dist/components/modal/monomerConnection/MonomerConnections.test.d.ts +0 -1
- package/dist/components/modal/save/Save.test.d.ts +0 -16
- package/dist/components/monomerLibrary/MonomerLibraryContextMenu.test.d.ts +0 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/RnaEditorExpanded.test.d.ts +0 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/helpers/sequenceEdit.test.d.ts +0 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/helpers/updateSequenceConfirmation.test.d.ts +0 -1
- package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/RnaElementsTabsView.test.d.ts +0 -1
- package/dist/components/monomerLibrary/RnaPresetItem/RnaPresetItem.test.d.ts +0 -1
- package/dist/components/monomerLibrary/monomerLibraryGroup/MonomerGroup.test.d.ts +0 -16
- package/dist/components/monomerLibrary/monomerLibraryItem/MonomerItem.test.d.ts +0 -1
- package/dist/components/monomerLibrary/monomerLibraryItem/hooks/useDisabledForSequenceMode.test.d.ts +0 -1
- package/dist/components/monomerLibrary/monomerLibraryList/MonomerList.test.d.ts +0 -16
- package/dist/components/preview/Preview.component.test.d.ts +0 -1
- package/dist/components/preview/Preview.test.d.ts +0 -1
- package/dist/components/preview/components/PresetPreview/PresetPreview.test.d.ts +0 -1
- package/dist/components/shared/actionButton/ActionButton.test.d.ts +0 -16
- package/dist/components/shared/dropDown/dropDown.test.d.ts +0 -16
- package/dist/components/shared/modal/Modal.test.d.ts +0 -16
- package/dist/helpers/countNucleoelents.test.d.ts +0 -1
- package/dist/helpers/getMonomerName.test.d.ts +0 -1
- package/dist/helpers/getPresets.test.d.ts +0 -16
- package/dist/helpers/rnaValidations.test.d.ts +0 -1
- package/dist/helpers/sequenceTypeStorage.test.d.ts +0 -1
- package/dist/hooks/useSetRnaPresets.test.d.ts +0 -1
- package/dist/index.css.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.modern.js.map +0 -1
- package/dist/state/library/librarySlice.test.d.ts +0 -16
- package/dist/state/rna-builder/rnaBuilderSlice.test.d.ts +0 -16
- package/dist/styledComponents.test.d.ts +0 -1
- package/dist/testMocks/ketcher-react.d.ts +0 -61
- package/dist/testMocks/react-contexify.d.ts +0 -14
package/dist/setupTests.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|
|
1
|
+
import '@testing-library/jest-dom/vitest';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import { Slice } from '@reduxjs/toolkit';
|
|
17
17
|
import { CoreEditor, type LayoutMode, type EditorLineLength, type SingleChainMacromoleculeProperties } from 'ketcher-core';
|
|
18
|
-
import { EditorStatePreview, RootState } from '
|
|
18
|
+
import { EditorStatePreview, RootState } from '..';
|
|
19
19
|
import { PresetPosition } from 'ketcher-react';
|
|
20
20
|
export declare enum MolarMeasurementUnit {
|
|
21
21
|
nanoMol = "nM",
|
|
@@ -62,14 +62,14 @@ export declare const selectEditorPosition: (state: RootState) => PresetPosition
|
|
|
62
62
|
export declare const selectKetcherId: (state: RootState) => string;
|
|
63
63
|
export declare const selectEditor: (state: RootState) => CoreEditor | undefined;
|
|
64
64
|
export declare const selectMonomerLibraryLoadError: (state: RootState) => string | null;
|
|
65
|
-
export declare const
|
|
66
|
-
export declare const
|
|
67
|
-
export declare const
|
|
65
|
+
export declare const isRnaBuilderSequenceEditMode: (state: RootState) => boolean;
|
|
66
|
+
export declare const isSequenceModeEnabled: (state: RootState) => boolean;
|
|
67
|
+
export declare const isSequenceSyncEditModeEnabled: (state: RootState) => boolean;
|
|
68
68
|
export declare const selectEditorLayoutMode: (state: RootState) => LayoutMode;
|
|
69
69
|
export declare const selectIsHandToolSelected: (state: RootState) => any;
|
|
70
70
|
export declare const hasAntisenseChains: (state: RootState) => CoreEditor;
|
|
71
|
-
export declare const
|
|
72
|
-
export declare const
|
|
71
|
+
export declare const isContextMenuActivated: (state: RootState) => boolean;
|
|
72
|
+
export declare const isEditorDragging: (state: RootState) => boolean;
|
|
73
73
|
export declare const selectIsMacromoleculesPropertiesWindowOpened: (state: RootState) => any;
|
|
74
74
|
export declare const selectMacromoleculesProperties: (state: RootState) => any;
|
|
75
75
|
export declare const selectUnipositiveIonsMeasurementUnit: (state: RootState) => any;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
package/dist/state/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
export * from './store';
|
|
17
|
-
export * from '
|
|
17
|
+
export * from './types';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import { Slice } from '@reduxjs/toolkit';
|
|
17
|
-
import { Group } from 'components/monomerLibrary/monomerLibraryList/types';
|
|
18
|
-
import { IRnaPreset } from 'components/monomerLibrary/RnaBuilder/types';
|
|
17
|
+
import { Group } from '../../components/monomerLibrary/monomerLibraryList/types';
|
|
18
|
+
import { IRnaPreset } from '../../components/monomerLibrary/RnaBuilder/types';
|
|
19
19
|
import { MonomerItemType, MonomerOrAmbiguousType, MonomerGroups, AmbiguousMonomerType, IKetMonomerGroupTemplate } from 'ketcher-core';
|
|
20
|
-
import { LibraryNameType } from '
|
|
21
|
-
import { RootState } from '
|
|
20
|
+
import { LibraryNameType } from '../../constants';
|
|
21
|
+
import { RootState } from '..';
|
|
22
22
|
interface LibraryState {
|
|
23
23
|
monomers: Group[];
|
|
24
24
|
defaultRnaPresets: IKetMonomerGroupTemplate[];
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { AdditionalModalProps } from 'components/modal/modalContainer/types';
|
|
3
|
-
import { RootState } from '
|
|
2
|
+
import { AdditionalModalProps } from '../../components/modal/modalContainer/types';
|
|
3
|
+
import { RootState } from '..';
|
|
4
4
|
interface ModalState {
|
|
5
5
|
name: string | null;
|
|
6
6
|
isOpen: boolean;
|
|
@@ -32,7 +32,8 @@ export declare const openModal: import("@reduxjs/toolkit").ActionCreatorWithPayl
|
|
|
32
32
|
errorTitle: string;
|
|
33
33
|
}, "modal/openErrorModal">, closeErrorModal: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"modal/closeErrorModal">;
|
|
34
34
|
export declare const selectModalName: (state: RootState) => string | null;
|
|
35
|
-
export declare const
|
|
35
|
+
export declare const isModalOpened: (state: RootState) => boolean;
|
|
36
|
+
export declare const selectIsSettingsPanelOpen: (state: RootState) => boolean;
|
|
36
37
|
export declare const selectAdditionalProps: (state: RootState) => AdditionalModalProps | null;
|
|
37
38
|
export declare const selectErrorTooltips: (state: RootState) => string[];
|
|
38
39
|
export declare const selectErrorModalText: (state: RootState) => string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
16
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
17
|
-
import { IRnaPreset } from 'components/monomerLibrary/RnaBuilder/types';
|
|
18
|
-
import { RootState } from '
|
|
17
|
+
import { IRnaPreset } from '../../components/monomerLibrary/RnaBuilder/types';
|
|
18
|
+
import { RootState } from '..';
|
|
19
19
|
import { LabeledNodesWithPositionInSequence, MonomerOrAmbiguousType, RnaPhosphatePosition } from 'ketcher-core';
|
|
20
|
-
import { MonomerGroups } from '
|
|
20
|
+
import { MonomerGroups } from '../../constants';
|
|
21
21
|
export declare enum RnaBuilderPresetsItem {
|
|
22
22
|
Presets = "Presets"
|
|
23
23
|
}
|
|
@@ -52,6 +52,7 @@ interface IRnaBuilderState {
|
|
|
52
52
|
invalidPresetNameError: string;
|
|
53
53
|
activePresetForContextMenu: IRnaPreset | null;
|
|
54
54
|
presetPhosphateFilter: PresetPhosphateFilter;
|
|
55
|
+
presetBeforeDuplicate: IRnaPreset | null;
|
|
55
56
|
}
|
|
56
57
|
export declare const monomerGroupToPresetGroup: {
|
|
57
58
|
Bases: string;
|
|
@@ -61,6 +62,7 @@ export declare const monomerGroupToPresetGroup: {
|
|
|
61
62
|
export declare const rnaBuilderSlice: import("@reduxjs/toolkit").Slice<IRnaBuilderState, {
|
|
62
63
|
createNewPreset: (state: import("immer").WritableDraft<IRnaBuilderState>) => void;
|
|
63
64
|
setActivePreset: (state: import("immer").WritableDraft<IRnaBuilderState>, action: PayloadAction<IRnaPreset>) => void;
|
|
65
|
+
startPresetDuplication: (state: import("immer").WritableDraft<IRnaBuilderState>, action: PayloadAction<IRnaPreset>) => void;
|
|
64
66
|
setSequenceSelection: (state: RootState, action: PayloadAction<LabeledNodesWithPositionInSequence[]>) => void;
|
|
65
67
|
setSequenceSelectionName: (state: import("immer").WritableDraft<IRnaBuilderState>, action: PayloadAction<string>) => void;
|
|
66
68
|
setIsSequenceFirstsOnlyNucleoelementsSelected: (state: import("immer").WritableDraft<IRnaBuilderState>, action: PayloadAction<boolean>) => void;
|
|
@@ -94,19 +96,20 @@ export declare const selectRnaBuilderSlice: (state: RootState) => IRnaBuilderSta
|
|
|
94
96
|
export declare const selectActiveRnaBuilderItem: (state: RootState) => RnaBuilderItem;
|
|
95
97
|
export declare const selectGroupItemValidations: (state: RootState) => RnaBuilderItem;
|
|
96
98
|
export declare const selectActivePreset: (state: RootState) => IRnaPreset;
|
|
99
|
+
export declare const selectPresetBeforeDuplicate: (state: RootState) => IRnaPreset | null;
|
|
97
100
|
export declare const selectSequenceSelection: (state: RootState) => LabeledNodesWithPositionInSequence[];
|
|
98
101
|
export declare const selectSequenceSelectionName: (state: RootState) => string;
|
|
99
|
-
export declare const
|
|
100
|
-
export declare const
|
|
102
|
+
export declare const hasOnlyFirstNucleotidesSelected: (state: RootState) => boolean;
|
|
103
|
+
export declare const isRnaBaseModificationBlocked: (state: RootState) => boolean;
|
|
101
104
|
export declare const selectCurrentMonomerGroup: (preset: IRnaPreset, groupName: MonomerGroups | string) => any;
|
|
102
105
|
export declare const selectActivePresetMonomerGroup: (state: RootState) => any;
|
|
103
|
-
export declare const
|
|
104
|
-
export declare const
|
|
106
|
+
export declare const isRnaPresetReadyToSave: (preset: IRnaPreset) => boolean;
|
|
107
|
+
export declare const isRnaBuilderEditMode: (state: RootState) => boolean;
|
|
105
108
|
export declare const selectPresetFullName: (preset: IRnaPreset) => string;
|
|
106
109
|
export declare const selectUniqueNameError: (state: RootState) => any;
|
|
107
110
|
export declare const selectInvalidPresetError: (state: RootState) => any;
|
|
108
111
|
export declare const selectInvalidPresetNameError: (state: RootState) => any;
|
|
109
|
-
export declare const
|
|
112
|
+
export declare const isActiveRnaPresetNewAndEmpty: (state: RootState) => boolean;
|
|
110
113
|
export declare const selectActivePresetForContextMenu: (state: RootState) => any;
|
|
111
114
|
export declare const selectPresetPhosphateFilter: (state: RootState) => PresetPhosphateFilter;
|
|
112
115
|
export declare const selectPresetsInFavorites: (items: IRnaPreset[]) => IRnaPreset[];
|
|
@@ -137,8 +140,8 @@ export declare const selectAllPresets: ((state: any) => (IRnaPreset & {
|
|
|
137
140
|
dependencyRecomputations: () => number;
|
|
138
141
|
resetDependencyRecomputations: () => void;
|
|
139
142
|
} & {
|
|
140
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
141
143
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
144
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
142
145
|
};
|
|
143
146
|
export declare const selectFilteredPresets: ((state: any) => (IRnaPreset & {
|
|
144
147
|
favorite?: boolean;
|
|
@@ -190,8 +193,8 @@ export declare const selectFilteredPresets: ((state: any) => (IRnaPreset & {
|
|
|
190
193
|
dependencyRecomputations: () => number;
|
|
191
194
|
resetDependencyRecomputations: () => void;
|
|
192
195
|
} & {
|
|
193
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
194
196
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
197
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
195
198
|
}, (state: RootState) => string, ((state: any) => Map<string, string>) & {
|
|
196
199
|
clearCache: () => void;
|
|
197
200
|
resultsCount: () => number;
|
|
@@ -210,16 +213,16 @@ export declare const selectFilteredPresets: ((state: any) => (IRnaPreset & {
|
|
|
210
213
|
dependencyRecomputations: () => number;
|
|
211
214
|
resetDependencyRecomputations: () => void;
|
|
212
215
|
} & {
|
|
213
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
214
216
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
217
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
215
218
|
}, (state: RootState) => PresetPhosphateFilter];
|
|
216
219
|
recomputations: () => number;
|
|
217
220
|
resetRecomputations: () => void;
|
|
218
221
|
dependencyRecomputations: () => number;
|
|
219
222
|
resetDependencyRecomputations: () => void;
|
|
220
223
|
} & {
|
|
221
|
-
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
222
224
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
225
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
223
226
|
};
|
|
224
227
|
export declare const setActivePreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<IRnaPreset, "rna-builder/setActivePreset">, setSequenceSelection: import("@reduxjs/toolkit").ActionCreatorWithPayload<LabeledNodesWithPositionInSequence[], "rna-builder/setSequenceSelection">, setSequenceSelectionName: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "rna-builder/setSequenceSelectionName">, setIsSequenceFirstsOnlyNucleoelementsSelected: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "rna-builder/setIsSequenceFirstsOnlyNucleoelementsSelected">, setActivePresetName: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "rna-builder/setActivePresetName">, setActiveRnaBuilderItem: import("@reduxjs/toolkit").ActionCreatorWithPayload<RnaBuilderItem | null, "rna-builder/setActiveRnaBuilderItem">, setActiveMonomerKey: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "rna-builder/setActiveMonomerKey">, recalculateRnaBuilderValidations: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
225
228
|
rnaPreset: IRnaPreset;
|
|
@@ -228,6 +231,6 @@ export declare const setActivePreset: import("@reduxjs/toolkit").ActionCreatorWi
|
|
|
228
231
|
}, "rna-builder/recalculateRnaBuilderValidations">, setActivePresetMonomerGroup: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
229
232
|
groupName: MonomerGroups;
|
|
230
233
|
groupItem: MonomerOrAmbiguousType;
|
|
231
|
-
} | null, "rna-builder/setActivePresetMonomerGroup">, savePreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<IRnaPreset, "rna-builder/savePreset">, deletePreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<IRnaPreset, "rna-builder/deletePreset">, createNewPreset: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"rna-builder/createNewPreset">, setIsEditMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "rna-builder/setIsEditMode">, setUniqueNameError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "rna-builder/setUniqueNameError">, setInvalidPresetError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "rna-builder/setInvalidPresetError">, setInvalidPresetNameError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "rna-builder/setInvalidPresetNameError">, setDefaultPresets: import("@reduxjs/toolkit").ActionCreatorWithPayload<IRnaPreset[], "rna-builder/setDefaultPresets">, setCustomPresets: import("@reduxjs/toolkit").ActionCreatorWithPayload<IRnaPreset[], "rna-builder/setCustomPresets">, setActivePresetForContextMenu: import("@reduxjs/toolkit").ActionCreatorWithPayload<IRnaPreset, "rna-builder/setActivePresetForContextMenu">, setPresetPhosphateFilter: import("@reduxjs/toolkit").ActionCreatorWithPayload<PresetPhosphateFilter, "rna-builder/setPresetPhosphateFilter">, togglePresetFavorites: import("@reduxjs/toolkit").ActionCreatorWithPayload<IRnaPreset, "rna-builder/togglePresetFavorites">, setFavoritePresetsFromLocalStorage: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"rna-builder/setFavoritePresetsFromLocalStorage">, clearFavorites: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"rna-builder/clearFavorites">;
|
|
234
|
+
} | null, "rna-builder/setActivePresetMonomerGroup">, savePreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<IRnaPreset, "rna-builder/savePreset">, deletePreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<IRnaPreset, "rna-builder/deletePreset">, createNewPreset: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"rna-builder/createNewPreset">, startPresetDuplication: import("@reduxjs/toolkit").ActionCreatorWithPayload<IRnaPreset, "rna-builder/startPresetDuplication">, setIsEditMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "rna-builder/setIsEditMode">, setUniqueNameError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "rna-builder/setUniqueNameError">, setInvalidPresetError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "rna-builder/setInvalidPresetError">, setInvalidPresetNameError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "rna-builder/setInvalidPresetNameError">, setDefaultPresets: import("@reduxjs/toolkit").ActionCreatorWithPayload<IRnaPreset[], "rna-builder/setDefaultPresets">, setCustomPresets: import("@reduxjs/toolkit").ActionCreatorWithPayload<IRnaPreset[], "rna-builder/setCustomPresets">, setActivePresetForContextMenu: import("@reduxjs/toolkit").ActionCreatorWithPayload<IRnaPreset, "rna-builder/setActivePresetForContextMenu">, setPresetPhosphateFilter: import("@reduxjs/toolkit").ActionCreatorWithPayload<PresetPhosphateFilter, "rna-builder/setPresetPhosphateFilter">, togglePresetFavorites: import("@reduxjs/toolkit").ActionCreatorWithPayload<IRnaPreset, "rna-builder/togglePresetFavorites">, setFavoritePresetsFromLocalStorage: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"rna-builder/setFavoritePresetsFromLocalStorage">, clearFavorites: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"rna-builder/clearFavorites">;
|
|
232
235
|
export declare const rnaBuilderReducer: import("redux").Reducer<IRnaBuilderState>;
|
|
233
236
|
export {};
|
package/dist/state/store.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type RootState } from '../state';
|
|
2
|
+
export declare function withStoreProvider(component: JSX.Element, initialState?: RootState): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function withThemeAndStoreProvider(component: JSX.Element, initialState?: RootState): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function withThemeProvider(component: JSX.Element): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
9
|
*
|
|
10
10
|
* Unless required by applicable law or agreed to in writing, software
|
|
11
11
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
***************************************************************************/
|
|
16
|
-
import { ThemeType } from '
|
|
16
|
+
import { ThemeType } from '../defaultTheme';
|
|
17
17
|
export declare const scrollbarThin: ({ ketcher: theme }: ThemeType) => import("@emotion/utils").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ketcher-macromolecules",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.23.0-dev.1",
|
|
4
4
|
"description": "Web-based molecule sketcher",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://lifescience.opensource.epam.com/ketcher/",
|
|
@@ -30,18 +30,21 @@
|
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"i18n:generate": "node scripts/generate-locale-resources.mjs",
|
|
33
|
-
"prebuild": "npm run i18n:generate",
|
|
33
|
+
"prebuild": "npm run i18n:generate && shx rm -rf dist",
|
|
34
34
|
"prestart": "npm run i18n:generate",
|
|
35
35
|
"pretest": "npm run i18n:generate",
|
|
36
|
-
"build": "cross-env NODE_ENV=production
|
|
37
|
-
"start": "
|
|
36
|
+
"build": "cross-env NODE_ENV=production vite build && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json --inputglob \"d.{mts,cts,ts,tsx}\"",
|
|
37
|
+
"start": "run-p --print-label start:vite start:typecheck",
|
|
38
|
+
"start:vite": "cross-env NODE_ENV=development vite build --watch",
|
|
39
|
+
"start:typecheck": "tsc --watch --noEmit",
|
|
38
40
|
"test": "run-s test:prettier test:stylelint test:eslint:quiet test:types test:unit",
|
|
39
41
|
"test:eslint": "eslint .",
|
|
40
42
|
"test:eslint:quiet": "npm run test:eslint -- --quiet",
|
|
41
43
|
"test:eslint:fix": "npm run test:eslint -- --fix",
|
|
42
44
|
"test:types": "tsc --noEmit",
|
|
43
|
-
"test:unit": "
|
|
44
|
-
"test:unit:update": "
|
|
45
|
+
"test:unit": "vitest run",
|
|
46
|
+
"test:unit:update": "vitest run -u",
|
|
47
|
+
"test:related": "vitest related --passWithNoTests",
|
|
45
48
|
"test:prettier": "prettier --check \"./**/*.{js,jsx,json,ts,tsx}\"",
|
|
46
49
|
"test:stylelint": "stylelint \"./**/*.{css,less}\" --allow-empty-input",
|
|
47
50
|
"prettier:write": "prettier --write \"./**/*.{js,jsx,json,ts,tsx}\"",
|
|
@@ -52,7 +55,6 @@
|
|
|
52
55
|
"react-dom": "^18.2.0 || ^19.0.0"
|
|
53
56
|
},
|
|
54
57
|
"dependencies": {
|
|
55
|
-
"@babel/runtime": "^7.26.10",
|
|
56
58
|
"@emotion/react": "^11.7.1",
|
|
57
59
|
"@emotion/styled": "^11.14.1",
|
|
58
60
|
"@mui/material": "^5.18.0",
|
|
@@ -72,75 +74,56 @@
|
|
|
72
74
|
"redux-saga": "^1.1.3"
|
|
73
75
|
},
|
|
74
76
|
"devDependencies": {
|
|
75
|
-
"@babel/core": "8.0.1",
|
|
76
|
-
"@babel/plugin-transform-runtime": "8.0.1",
|
|
77
|
-
"@babel/preset-env": "8.0.2",
|
|
78
|
-
"@babel/preset-react": "^8.0.1",
|
|
79
|
-
"@babel/preset-typescript": "8.0.1",
|
|
80
|
-
"@emotion/babel-plugin": "^11.7.2",
|
|
81
77
|
"@emotion/core": "^11.0.0",
|
|
82
|
-
"@
|
|
83
|
-
"@rollup/plugin-commonjs": "^16.0.0",
|
|
84
|
-
"@rollup/plugin-json": "^4.1.0",
|
|
85
|
-
"@rollup/plugin-node-resolve": "^10.0.0",
|
|
86
|
-
"@rollup/plugin-replace": "^2.3.4",
|
|
78
|
+
"@rolldown/plugin-emotion": "^0.2.0",
|
|
87
79
|
"@rollup/plugin-strip": "^2.0.0",
|
|
88
|
-
"@svgr/rollup": "^8.1.0",
|
|
89
80
|
"@testing-library/dom": "^10.4.0",
|
|
90
81
|
"@testing-library/jest-dom": "^7.0.1",
|
|
91
82
|
"@testing-library/react": "^16.3.0",
|
|
92
83
|
"@testing-library/user-event": "^14.4.3",
|
|
93
84
|
"@types/d3": "^7.4.3",
|
|
94
|
-
"@types/jest": "^29.5.14",
|
|
95
85
|
"@types/lodash": "^4.14.178",
|
|
96
86
|
"@types/node": "^16.11.12",
|
|
97
87
|
"@types/react": "^19.1.8",
|
|
98
88
|
"@types/react-dom": "^19.1.6",
|
|
99
|
-
"@zerollup/ts-transform-paths": "^1.7.18",
|
|
100
89
|
"autoprefixer": "^10.5.4",
|
|
101
|
-
"babel-jest": "^30.3.0",
|
|
102
90
|
"cross-env": "^7.0.3",
|
|
103
91
|
"dotenv": "^10.0.0",
|
|
104
92
|
"eslint": "10.9.0",
|
|
105
|
-
"eslint-plugin-jest": "^29.16.0",
|
|
106
93
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
107
94
|
"eslint-plugin-react": "^7.27.1",
|
|
108
95
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
109
96
|
"eslint-plugin-react-you-might-not-need-an-effect": "^1.0.1",
|
|
110
97
|
"eslint-plugin-testing-library": "^7.0.0",
|
|
98
|
+
"happy-dom": "^21.0.4",
|
|
111
99
|
"i18next": "^26.4.1",
|
|
112
|
-
"
|
|
113
|
-
"jest": "^30.3.0",
|
|
114
|
-
"jest-environment-jsdom": "^30.4.1",
|
|
115
|
-
"less": "^3.12.2",
|
|
100
|
+
"less": "^4.2.0",
|
|
116
101
|
"npm-run-all2": "^9.0.3",
|
|
117
102
|
"prettier": "^3.9.6",
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"rollup-plugin-tsconfig-paths": "^1.5.2",
|
|
124
|
-
"rollup-plugin-typescript2": "^0.37.0",
|
|
125
|
-
"rollup-plugin-visualizer": "^5.5.2",
|
|
126
|
-
"ts-jest": "^29.4.11",
|
|
127
|
-
"typescript": "^6.0.3"
|
|
103
|
+
"tsc-alias": "^1.8.17",
|
|
104
|
+
"typescript": "^6.0.3",
|
|
105
|
+
"vite": "^8.3.8",
|
|
106
|
+
"vite-plugin-svgr": "^4.5.0",
|
|
107
|
+
"vitest": "^5.0.3"
|
|
128
108
|
},
|
|
129
109
|
"files": [
|
|
130
110
|
"dist"
|
|
131
111
|
],
|
|
132
112
|
"exports": {
|
|
133
113
|
".": {
|
|
114
|
+
"types": "./dist/index.d.ts",
|
|
134
115
|
"import": "./dist/index.modern.js",
|
|
135
116
|
"require": "./dist/index.js"
|
|
136
117
|
},
|
|
137
118
|
"./dist/index.css": {
|
|
138
119
|
"import": "./dist/index.css",
|
|
139
120
|
"require": "./dist/index.css"
|
|
140
|
-
}
|
|
121
|
+
},
|
|
122
|
+
"./package.json": "./package.json"
|
|
141
123
|
},
|
|
142
124
|
"sideEffects": [
|
|
143
125
|
"*.css",
|
|
144
|
-
"dist/index.css"
|
|
126
|
+
"dist/index.css",
|
|
127
|
+
"src/i18n/registerNamespaces.ts"
|
|
145
128
|
]
|
|
146
129
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
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,16 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/components/contextMenu/SequenceItemContextMenu/SequenceItemContextMenu.test.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|