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.
Files changed (237) hide show
  1. package/dist/Editor.d.ts +2 -3
  2. package/dist/components/FloatingTools/FloatingTools.d.ts +1 -1
  3. package/dist/components/FullscreenButton/FullscreenButton.d.ts +1 -1
  4. package/dist/components/FullscreenButton/index.d.ts +1 -1
  5. package/dist/components/Layout/Layout.d.ts +19 -1
  6. package/dist/components/Layout/index.d.ts +1 -1
  7. package/dist/components/LayoutModeButton/LayoutModeButton.d.ts +1 -1
  8. package/dist/components/LayoutModeButton/index.d.ts +1 -1
  9. package/dist/components/LeftMenuComponent/LeftMenuComponent.d.ts +1 -1
  10. package/dist/components/LeftMenuComponent/index.d.ts +1 -1
  11. package/dist/components/SequenceSyncEditModeButton/SequenceSyncEditModeButton.d.ts +1 -1
  12. package/dist/components/SequenceSyncEditModeButton/index.d.ts +1 -1
  13. package/dist/components/SequenceTypeGroupButton/SequenceTypeGroupButton.d.ts +1 -1
  14. package/dist/components/SequenceTypeGroupButton/index.d.ts +1 -1
  15. package/dist/components/TopMenuComponent/TopMenuComponent.d.ts +1 -1
  16. package/dist/components/TopMenuComponent/index.d.ts +1 -1
  17. package/dist/components/TopMenuComponent/menuItemHandlers.d.ts +24 -0
  18. package/dist/components/ZoomControls/ZoomControls.d.ts +1 -1
  19. package/dist/components/ZoomControls/ZoomInput.d.ts +1 -1
  20. package/dist/components/ZoomControls/helpers.d.ts +3 -0
  21. package/dist/components/ZoomControls/styles.d.ts +2 -2
  22. package/dist/components/contextMenu/ContextMenu.d.ts +3 -2
  23. package/dist/components/contextMenu/useMonomerCreationMenu.d.ts +1 -1
  24. package/dist/components/macromoleculeProperties/CalculateMacromoleculePropertiesButton.d.ts +1 -1
  25. package/dist/components/macromoleculeProperties/MacromoleculePropertiesWindow.d.ts +1 -1
  26. package/dist/components/macromoleculeProperties/index.d.ts +1 -1
  27. package/dist/components/menu/Menu.d.ts +1 -1
  28. package/dist/components/menu/index.d.ts +1 -1
  29. package/dist/components/menu/menuItem/MenuItem.d.ts +1 -1
  30. package/dist/components/menu/menuItem/index.d.ts +1 -1
  31. package/dist/components/menu/menuItem/styles.d.ts +1 -1
  32. package/dist/components/menu/styles.d.ts +1 -1
  33. package/dist/components/menu/subMenu/SubMenu.d.ts +1 -1
  34. package/dist/components/menu/subMenu/index.d.ts +1 -1
  35. package/dist/components/menu/subMenu/styles.d.ts +1 -1
  36. package/dist/components/menu/subMenu/types.d.ts +1 -1
  37. package/dist/components/menu/types.d.ts +1 -1
  38. package/dist/components/modal/About/About.d.ts +1 -1
  39. package/dist/components/modal/ConfirmationDialog/ConfirmationDialog.d.ts +1 -1
  40. package/dist/components/modal/Delete/index.d.ts +1 -1
  41. package/dist/components/modal/Delete/styledComponents.d.ts +1 -1
  42. package/dist/components/modal/Open/AnalyzingFile/LoadingCircles/index.d.ts +1 -1
  43. package/dist/components/modal/Open/AnalyzingFile/index.d.ts +1 -1
  44. package/dist/components/modal/Open/Open.styles.d.ts +1 -1
  45. package/dist/components/modal/Open/OpenOptions/FileDrop/FileDrop.d.ts +1 -1
  46. package/dist/components/modal/Open/OpenOptions/FileDrop/index.d.ts +1 -1
  47. package/dist/components/modal/Open/OpenOptions/index.d.ts +1 -1
  48. package/dist/components/modal/Open/ViewSwitcher/ViewSwitcher.d.ts +1 -1
  49. package/dist/components/modal/Open/ViewSwitcher/index.d.ts +1 -1
  50. package/dist/components/modal/Open/fileOpener.d.ts +1 -1
  51. package/dist/components/modal/Open/index.d.ts +1 -1
  52. package/dist/components/modal/Settings/Settings.styles.d.ts +11 -29
  53. package/dist/components/modal/Settings/{SettingsField.d.ts → SettingsFieldControl.d.ts} +6 -14
  54. package/dist/components/modal/Settings/{Settings.d.ts → SettingsPanelAdapter.d.ts} +8 -2
  55. package/dist/components/modal/Settings/index.d.ts +2 -2
  56. package/dist/components/modal/Settings/settingsFields.d.ts +63 -0
  57. package/dist/components/modal/UpdateSequenceInRNABuilder/index.d.ts +1 -1
  58. package/dist/components/modal/modalContainer/index.d.ts +1 -1
  59. package/dist/components/modal/modalContainer/modalComponentList.d.ts +10 -10
  60. package/dist/components/modal/modalContainer/types.d.ts +1 -2
  61. package/dist/components/modal/monomerConnection/MonomerConnections.d.ts +3 -3
  62. package/dist/components/modal/save/Save.d.ts +1 -1
  63. package/dist/components/modal/save/Save.styles.d.ts +1 -1
  64. package/dist/components/modal/save/index.d.ts +1 -1
  65. package/dist/components/monomerLibrary/MonomerLibrary.d.ts +1 -1
  66. package/dist/components/monomerLibrary/MonomerLibraryContextMenu.utils.d.ts +32 -0
  67. package/dist/components/monomerLibrary/RnaBuilder/RnaBuilder.d.ts +1 -1
  68. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditor.d.ts +1 -1
  69. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorCollapsed/RnaEditorCollapsed.d.ts +1 -1
  70. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorCollapsed/index.d.ts +1 -1
  71. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorCollapsed/styles.d.ts +1 -1
  72. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorCollapsed/types.d.ts +1 -1
  73. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/GroupBlock.d.ts +1 -1
  74. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/GroupBlockCompact.d.ts +1 -1
  75. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/GroupBlockWide.d.ts +2 -2
  76. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/index.d.ts +1 -1
  77. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/styles.d.ts +1 -1
  78. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/types.d.ts +2 -2
  79. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/GroupBlock/utils.d.ts +1 -1
  80. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/RnaEditorExpanded.d.ts +2 -2
  81. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/helpers/resetRnaBuilder.d.ts +1 -1
  82. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/index.d.ts +1 -1
  83. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/styles.d.ts +1 -1
  84. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/index.d.ts +1 -1
  85. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/styles.d.ts +1 -1
  86. package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/PresetPhosphateFilterPopup.d.ts +1 -1
  87. package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/RnaElements.d.ts +1 -1
  88. package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/RnaElementsTabsView.d.ts +1 -1
  89. package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/Summary/Summary.d.ts +1 -1
  90. package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/Summary/index.d.ts +1 -1
  91. package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/Summary/styles.d.ts +1 -1
  92. package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/Summary/types.d.ts +1 -1
  93. package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/groupNameToTabLabelKey.d.ts +1 -1
  94. package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/hooks/useGroupsData.d.ts +2 -2
  95. package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/index.d.ts +1 -1
  96. package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/styles.d.ts +4 -4
  97. package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/types.d.ts +1 -1
  98. package/dist/components/monomerLibrary/RnaBuilder/index.d.ts +1 -1
  99. package/dist/components/monomerLibrary/RnaBuilder/styles.d.ts +1 -1
  100. package/dist/components/monomerLibrary/RnaBuilder/types.d.ts +1 -1
  101. package/dist/components/monomerLibrary/RnaPresetGroup/RnaPresetGroup.d.ts +1 -1
  102. package/dist/components/monomerLibrary/RnaPresetItem/RnaPresetItem.d.ts +1 -1
  103. package/dist/components/monomerLibrary/RnaPresetItem/index.d.ts +1 -1
  104. package/dist/components/monomerLibrary/RnaPresetItem/types.d.ts +1 -1
  105. package/dist/components/monomerLibrary/index.d.ts +1 -1
  106. package/dist/components/monomerLibrary/monomerLibraryGroup/index.d.ts +1 -1
  107. package/dist/components/monomerLibrary/monomerLibraryGroup/types.d.ts +1 -1
  108. package/dist/components/monomerLibrary/monomerLibraryItem/index.d.ts +1 -1
  109. package/dist/components/monomerLibrary/monomerLibraryItem/types.d.ts +1 -1
  110. package/dist/components/monomerLibrary/monomerLibraryList/MonomerList.d.ts +1 -1
  111. package/dist/components/monomerLibrary/monomerLibraryList/index.d.ts +1 -1
  112. package/dist/components/monomerLibrary/monomerLibraryList/styles.d.ts +1 -1
  113. package/dist/components/monomerLibrary/monomerLibraryList/types.d.ts +2 -2
  114. package/dist/components/monomerLibrary/styles.d.ts +3 -1
  115. package/dist/components/monomerLibrary/tabsContent.d.ts +1 -1
  116. package/dist/components/preview/Preview.d.ts +1 -1
  117. package/dist/components/preview/components/BondAttachmentPoints/BondAttachmentPoints.d.ts +1 -1
  118. package/dist/components/preview/components/MonomerPreview/MonomerPreview.d.ts +1 -1
  119. package/dist/components/preview/components/PresetPreview/PresetPreview.styles.d.ts +1 -1
  120. package/dist/components/preview/helpers.d.ts +1 -1
  121. package/dist/components/preview/hooks/useIDTAliasesTextForPreset.d.ts +1 -1
  122. package/dist/components/shared/Tabs/Tabs.d.ts +1 -1
  123. package/dist/components/shared/Tabs/Tabs.styles.d.ts +3 -3
  124. package/dist/components/shared/Tabs/index.d.ts +1 -1
  125. package/dist/components/shared/TextArea/TextArea.d.ts +1 -1
  126. package/dist/components/shared/TextArea/index.d.ts +1 -1
  127. package/dist/components/shared/actionButton/ActionButton.d.ts +1 -1
  128. package/dist/components/shared/dropDown/dropDown.d.ts +1 -1
  129. package/dist/components/shared/dropDown/index.d.ts +1 -1
  130. package/dist/components/shared/dropDown/styledIcons.d.ts +1 -1
  131. package/dist/components/shared/icon/icon.d.ts +1 -1
  132. package/dist/components/shared/modal/Modal.d.ts +11 -1
  133. package/dist/components/shared/monomerOnCanvas/Chem.d.ts +1 -1
  134. package/dist/components/shared/monomerOnCanvas/Nucleotide.d.ts +1 -1
  135. package/dist/components/shared/monomerOnCanvas/Peptide.d.ts +1 -1
  136. package/dist/components/shared/monomerOnCanvas/Phosphate.d.ts +1 -1
  137. package/dist/components/shared/monomerOnCanvas/RNABase.d.ts +1 -1
  138. package/dist/components/shared/monomerOnCanvas/SequenceStartArrow.d.ts +1 -1
  139. package/dist/components/shared/monomerOnCanvas/Sugar.d.ts +1 -1
  140. package/dist/components/shared/monomerOnCanvas/UnresolvedMonomer.d.ts +1 -1
  141. package/dist/components/shared/textInputField/TextInputField.d.ts +1 -1
  142. package/dist/components/shared/textInputField/index.d.ts +1 -1
  143. package/dist/constants.d.ts +1 -1
  144. package/dist/contexts/index.d.ts +3 -4
  145. package/dist/contexts/menuContext.d.ts +1 -1
  146. package/dist/helpers/formats/formatProperties.d.ts +1 -1
  147. package/dist/helpers/formats/index.d.ts +1 -1
  148. package/dist/helpers/formats/supportedFormatProperties.d.ts +2 -2
  149. package/dist/helpers/getPreset.d.ts +1 -1
  150. package/dist/helpers/index.d.ts +1 -1
  151. package/dist/helpers/rnaValidations.d.ts +1 -1
  152. package/dist/hooks/index.d.ts +1 -1
  153. package/dist/hooks/stateHooks.d.ts +2 -2
  154. package/dist/hooks/useDebouncedShowPreview.d.ts +2 -2
  155. package/dist/hooks/useMenuContext.d.ts +1 -1
  156. package/dist/i18n/localeResources.generated.d.ts +252 -225
  157. package/dist/index.css +2 -2
  158. package/dist/index.d.ts +1 -1
  159. package/dist/index.js +13674 -16124
  160. package/dist/index.modern.js +13643 -16094
  161. package/dist/setupTests.d.ts +1 -1
  162. package/dist/state/common/editorSlice.d.ts +7 -7
  163. package/dist/state/common/index.d.ts +1 -1
  164. package/dist/state/index.d.ts +2 -2
  165. package/dist/state/library/index.d.ts +1 -1
  166. package/dist/state/library/librarySlice.d.ts +5 -5
  167. package/dist/state/modal/index.d.ts +1 -1
  168. package/dist/state/modal/modalSlice.d.ts +4 -3
  169. package/dist/state/rna-builder/index.d.ts +1 -1
  170. package/dist/state/rna-builder/rnaBuilderSlice.d.ts +17 -14
  171. package/dist/state/store.d.ts +1 -1
  172. package/dist/testUtils/storeProviders.d.ts +3 -0
  173. package/dist/testUtils/themeProvider.d.ts +1 -0
  174. package/dist/theming/defaultTheme/defaultTheme.d.ts +1 -1
  175. package/dist/theming/defaultTheme/index.d.ts +1 -1
  176. package/dist/theming/defaultTheme/theme.types.d.ts +1 -1
  177. package/dist/theming/globalStyles/getGlobalStyles.d.ts +1 -1
  178. package/dist/theming/globalStyles/index.d.ts +1 -1
  179. package/dist/theming/mixins/index.d.ts +1 -1
  180. package/dist/theming/mixins/mixins.d.ts +2 -2
  181. package/package.json +22 -39
  182. package/dist/components/FullscreenButton/FullscreenButton.test.d.ts +0 -1
  183. package/dist/components/Layout/Layout.test.d.ts +0 -16
  184. package/dist/components/Ruler/RulerArea.test.d.ts +0 -1
  185. package/dist/components/SequenceSyncEditModeButton/SequenceSyncEditModeButton.test.d.ts +0 -16
  186. package/dist/components/contextMenu/RNAContextMenu.test.d.ts +0 -16
  187. package/dist/components/contextMenu/SelectedMonomersContextMenu/helpers.test.d.ts +0 -1
  188. package/dist/components/contextMenu/SequenceItemContextMenu/SequenceItemContextMenu.test.d.ts +0 -16
  189. package/dist/components/contextMenu/SequenceItemContextMenu/helpers.test.d.ts +0 -1
  190. package/dist/components/contextMenu/monomerCreation.helpers.test.d.ts +0 -1
  191. package/dist/components/contextMenu/useMonomerCreationMenu.test.d.ts +0 -1
  192. package/dist/components/menu/Menu.test.d.ts +0 -1
  193. package/dist/components/menu/menuItem/MenuItem.test.d.ts +0 -1
  194. package/dist/components/menu/subMenu/SubMenu.test.d.ts +0 -1
  195. package/dist/components/modal/Delete/Delete.test.d.ts +0 -16
  196. package/dist/components/modal/Open/AnalyzingFile/AnalyzingFile.test.d.ts +0 -1
  197. package/dist/components/modal/Open/AnalyzingFile/LoadingCircles/LoadingCircles.test.d.ts +0 -1
  198. package/dist/components/modal/Open/Open.test.d.ts +0 -16
  199. package/dist/components/modal/Open/OpenOptions/FileDrop/FileDrop.test.d.ts +0 -1
  200. package/dist/components/modal/Open/OpenOptions/OpenOptions.test.d.ts +0 -1
  201. package/dist/components/modal/Settings/SettingsAccordion.d.ts +0 -24
  202. package/dist/components/modal/Settings/SettingsAccordion.styles.d.ts +0 -27
  203. package/dist/components/modal/Settings/SettingsFields.d.ts +0 -24
  204. package/dist/components/modal/Settings/fieldGroups.d.ts +0 -46
  205. package/dist/components/modal/UpdateSequenceInRNABuilder/UpdateSequenceInRNABuilder.test.d.ts +0 -16
  206. package/dist/components/modal/monomerConnection/MonomerConnections.test.d.ts +0 -1
  207. package/dist/components/modal/save/Save.test.d.ts +0 -16
  208. package/dist/components/monomerLibrary/MonomerLibraryContextMenu.test.d.ts +0 -1
  209. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/RnaEditorExpanded.test.d.ts +0 -1
  210. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/helpers/sequenceEdit.test.d.ts +0 -1
  211. package/dist/components/monomerLibrary/RnaBuilder/RnaEditor/RnaEditorExpanded/helpers/updateSequenceConfirmation.test.d.ts +0 -1
  212. package/dist/components/monomerLibrary/RnaBuilder/RnaElementsView/RnaElementsTabsView.test.d.ts +0 -1
  213. package/dist/components/monomerLibrary/RnaPresetItem/RnaPresetItem.test.d.ts +0 -1
  214. package/dist/components/monomerLibrary/monomerLibraryGroup/MonomerGroup.test.d.ts +0 -16
  215. package/dist/components/monomerLibrary/monomerLibraryItem/MonomerItem.test.d.ts +0 -1
  216. package/dist/components/monomerLibrary/monomerLibraryItem/hooks/useDisabledForSequenceMode.test.d.ts +0 -1
  217. package/dist/components/monomerLibrary/monomerLibraryList/MonomerList.test.d.ts +0 -16
  218. package/dist/components/preview/Preview.component.test.d.ts +0 -1
  219. package/dist/components/preview/Preview.test.d.ts +0 -1
  220. package/dist/components/preview/components/PresetPreview/PresetPreview.test.d.ts +0 -1
  221. package/dist/components/shared/actionButton/ActionButton.test.d.ts +0 -16
  222. package/dist/components/shared/dropDown/dropDown.test.d.ts +0 -16
  223. package/dist/components/shared/modal/Modal.test.d.ts +0 -16
  224. package/dist/helpers/countNucleoelents.test.d.ts +0 -1
  225. package/dist/helpers/getMonomerName.test.d.ts +0 -1
  226. package/dist/helpers/getPresets.test.d.ts +0 -16
  227. package/dist/helpers/rnaValidations.test.d.ts +0 -1
  228. package/dist/helpers/sequenceTypeStorage.test.d.ts +0 -1
  229. package/dist/hooks/useSetRnaPresets.test.d.ts +0 -1
  230. package/dist/index.css.map +0 -1
  231. package/dist/index.js.map +0 -1
  232. package/dist/index.modern.js.map +0 -1
  233. package/dist/state/library/librarySlice.test.d.ts +0 -16
  234. package/dist/state/rna-builder/rnaBuilderSlice.test.d.ts +0 -16
  235. package/dist/styledComponents.test.d.ts +0 -1
  236. package/dist/testMocks/ketcher-react.d.ts +0 -61
  237. package/dist/testMocks/react-contexify.d.ts +0 -14
@@ -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
- * http://www.apache.org/licenses/LICENSE-2.0
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 'state';
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 selectIsSequenceEditInRNABuilderMode: (state: RootState) => boolean;
66
- export declare const selectIsSequenceMode: (state: RootState) => boolean;
67
- export declare const selectIsSequenceSyncEditMode: (state: RootState) => boolean;
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 selectIsContextMenuActive: (state: RootState) => boolean;
72
- export declare const selectIsDragging: (state: RootState) => boolean;
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
- * http://www.apache.org/licenses/LICENSE-2.0
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
- * http://www.apache.org/licenses/LICENSE-2.0
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 'state/types';
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
- * http://www.apache.org/licenses/LICENSE-2.0
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
- * http://www.apache.org/licenses/LICENSE-2.0
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 'src/constants';
21
- import { RootState } from 'state';
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
- * http://www.apache.org/licenses/LICENSE-2.0
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 'state';
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 selectModalIsOpen: (state: RootState) => boolean;
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
- * http://www.apache.org/licenses/LICENSE-2.0
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
- * http://www.apache.org/licenses/LICENSE-2.0
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 'state';
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 'src/constants';
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 selectIsSequenceFirstsOnlyNucleotidesSelected: (state: RootState) => boolean;
100
- export declare const selectIsBaseModificationBlocked: (state: RootState) => boolean;
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 selectIsPresetReadyToSave: (preset: IRnaPreset) => boolean;
104
- export declare const selectIsEditMode: (state: RootState) => boolean;
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 selectIsActivePresetNewAndEmpty: (state: RootState) => boolean;
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 {};
@@ -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
- * http://www.apache.org/licenses/LICENSE-2.0
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
- * http://www.apache.org/licenses/LICENSE-2.0
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
- * http://www.apache.org/licenses/LICENSE-2.0
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
- * http://www.apache.org/licenses/LICENSE-2.0
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
- * http://www.apache.org/licenses/LICENSE-2.0
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
- * http://www.apache.org/licenses/LICENSE-2.0
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
- * http://www.apache.org/licenses/LICENSE-2.0
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
- * http://www.apache.org/licenses/LICENSE-2.0
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 'theming/defaultTheme';
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.21.0",
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 rollup -c rollup.config.mjs -m true",
37
- "start": "cross-env NODE_ENV=development rollup -c rollup.config.mjs -m true -w",
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": "jest --passWithNoTests",
44
- "test:unit:update": "jest -u",
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
- "@rollup/plugin-babel": "^6.1.0",
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
- "identity-obj-proxy": "^3.0.0",
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
- "rollup": "^2.80.0",
119
- "rollup-plugin-cleanup": "^3.2.1",
120
- "rollup-plugin-delete": "^2.0.0",
121
- "rollup-plugin-peer-deps-external": "^2.2.4",
122
- "rollup-plugin-postcss": "^4.0.2",
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,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,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,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 {};