nmrium 0.64.0 → 0.65.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 (444) hide show
  1. package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
  2. package/lib/component/1d/BrushTracker1D.js +13 -5
  3. package/lib/component/1d/BrushTracker1D.js.map +1 -1
  4. package/lib/component/1d/FloatPublicationString.js +1 -1
  5. package/lib/component/1d/FloatPublicationString.js.map +1 -1
  6. package/lib/component/1d/FloatingRanges.js +1 -1
  7. package/lib/component/1d/FloatingRanges.js.map +1 -1
  8. package/lib/component/1d/PredictionErrorsNotations.js +1 -1
  9. package/lib/component/1d/PredictionErrorsNotations.js.map +1 -1
  10. package/lib/component/1d/Viewer1D.js +1 -1
  11. package/lib/component/1d/Viewer1D.js.map +1 -1
  12. package/lib/component/1d/integral/IntegralResizable.d.ts +1 -1
  13. package/lib/component/1d/integral/IntegralResizable.d.ts.map +1 -1
  14. package/lib/component/1d/integral/IntegralsSeries.d.ts +1 -1
  15. package/lib/component/1d/integral/IntegralsSeries.d.ts.map +1 -1
  16. package/lib/component/1d/integral/IntegralsSeries.js.map +1 -1
  17. package/lib/component/1d/jCouplingGraph/JGraph.js.map +1 -1
  18. package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts +1 -1
  19. package/lib/component/1d/jCouplingGraph/JsCouplings.d.ts.map +1 -1
  20. package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts +1 -1
  21. package/lib/component/1d/multiplicityTree/MultiplicityTree.d.ts.map +1 -1
  22. package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
  23. package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts +1 -1
  24. package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts.map +1 -1
  25. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts.map +1 -1
  26. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +2 -4
  27. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
  28. package/lib/component/1d/peaks/Peaks.d.ts +1 -1
  29. package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
  30. package/lib/component/1d/peaks/usePeakShapesPath.d.ts +1 -1
  31. package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
  32. package/lib/component/1d/ranges/AssignmentLabel.d.ts +1 -1
  33. package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
  34. package/lib/component/1d/ranges/Atoms.d.ts +1 -1
  35. package/lib/component/1d/ranges/Atoms.d.ts.map +1 -1
  36. package/lib/component/1d/ranges/Range.d.ts +1 -1
  37. package/lib/component/1d/ranges/Range.d.ts.map +1 -1
  38. package/lib/component/1d/ranges/Ranges.d.ts.map +1 -1
  39. package/lib/component/1d/ranges/Ranges.js.map +1 -1
  40. package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
  41. package/lib/component/1d-2d/components/SpectrumInfoBlock.js +2 -4
  42. package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
  43. package/lib/component/1d-2d/tools/BrushXY.d.ts +10 -7
  44. package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
  45. package/lib/component/1d-2d/tools/BrushXY.js +177 -16
  46. package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
  47. package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
  48. package/lib/component/2d/BrushTracker2D.js +15 -4
  49. package/lib/component/2d/BrushTracker2D.js.map +1 -1
  50. package/lib/component/2d/Viewer2D.d.ts.map +1 -1
  51. package/lib/component/2d/Viewer2D.js +1 -1
  52. package/lib/component/2d/Viewer2D.js.map +1 -1
  53. package/lib/component/2d/utilities/extractSpectrumSignals.d.ts +1 -1
  54. package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.map +1 -1
  55. package/lib/component/2d/zones/Signal.d.ts +1 -1
  56. package/lib/component/2d/zones/Signal.d.ts.map +1 -1
  57. package/lib/component/2d/zones/SignalCrosshair.d.ts +1 -1
  58. package/lib/component/2d/zones/SignalCrosshair.d.ts.map +1 -1
  59. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  60. package/lib/component/2d/zones/Zone.d.ts +1 -1
  61. package/lib/component/2d/zones/Zone.d.ts.map +1 -1
  62. package/lib/component/2d/zones/Zone.js.map +1 -1
  63. package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
  64. package/lib/component/EventsTrackers/BrushTracker.d.ts +5 -0
  65. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  66. package/lib/component/EventsTrackers/BrushTracker.js +104 -29
  67. package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
  68. package/lib/component/SVGTable.d.ts.map +1 -1
  69. package/lib/component/SVGTable.js +1 -4
  70. package/lib/component/SVGTable.js.map +1 -1
  71. package/lib/component/assignment/utilities/getAssignments.d.ts.map +1 -1
  72. package/lib/component/elements/ArrowBox.d.ts +16 -0
  73. package/lib/component/elements/ArrowBox.d.ts.map +1 -0
  74. package/lib/component/elements/ArrowBox.js +55 -0
  75. package/lib/component/elements/ArrowBox.js.map +1 -0
  76. package/lib/component/elements/DraggableDialog.js +2 -0
  77. package/lib/component/elements/DraggableDialog.js.map +1 -1
  78. package/lib/component/elements/Input.d.ts.map +1 -1
  79. package/lib/component/elements/Input.js +2 -2
  80. package/lib/component/elements/Input.js.map +1 -1
  81. package/lib/component/elements/Input2.js +2 -2
  82. package/lib/component/elements/Input2.js.map +1 -1
  83. package/lib/component/elements/NextPrev.d.ts.map +1 -1
  84. package/lib/component/elements/NextPrev.js +2 -4
  85. package/lib/component/elements/NextPrev.js.map +1 -1
  86. package/lib/component/elements/NumberInput2.js +1 -1
  87. package/lib/component/elements/NumberInput2.js.map +1 -1
  88. package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts.map +1 -1
  89. package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +3 -1
  90. package/lib/component/elements/ReactTable/Elements/ReactTableRow.js.map +1 -1
  91. package/lib/component/elements/ReactTable/ReactTable.d.ts.map +1 -1
  92. package/lib/component/elements/ReactTable/ReactTable.js +6 -5
  93. package/lib/component/elements/ReactTable/ReactTable.js.map +1 -1
  94. package/lib/component/elements/Tab/Tabs.d.ts.map +1 -1
  95. package/lib/component/elements/Tab/Tabs.js +3 -1
  96. package/lib/component/elements/Tab/Tabs.js.map +1 -1
  97. package/lib/component/highlight/index.d.ts +2 -2
  98. package/lib/component/highlight/index.d.ts.map +1 -1
  99. package/lib/component/highlight/index.js +1 -1
  100. package/lib/component/highlight/index.js.map +1 -1
  101. package/lib/component/hooks/useCheckToolsVisibility.d.ts +1 -1
  102. package/lib/component/hooks/useCheckToolsVisibility.d.ts.map +1 -1
  103. package/lib/component/hooks/useCombinedRefs.d.ts +2 -2
  104. package/lib/component/hooks/useCombinedRefs.d.ts.map +1 -1
  105. package/lib/component/hooks/useCombinedRefs.js +2 -0
  106. package/lib/component/hooks/useCombinedRefs.js.map +1 -1
  107. package/lib/component/hooks/useDatumWithSpectraStatistics.d.ts +1 -1
  108. package/lib/component/hooks/useDatumWithSpectraStatistics.d.ts.map +1 -1
  109. package/lib/component/hooks/useFilter.d.ts +1 -1
  110. package/lib/component/hooks/useFilter.d.ts.map +1 -1
  111. package/lib/component/main/InnerNMRiumContents.d.ts.map +1 -1
  112. package/lib/component/main/InnerNMRiumContents.js +7 -6
  113. package/lib/component/main/InnerNMRiumContents.js.map +1 -1
  114. package/lib/component/modal/EditPeakShapeModal.d.ts +1 -1
  115. package/lib/component/modal/EditPeakShapeModal.d.ts.map +1 -1
  116. package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
  117. package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
  118. package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts +1 -1
  119. package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -1
  120. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
  121. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
  122. package/lib/component/modal/editRange/utils/couplingsToMultiplicity.d.ts +1 -1
  123. package/lib/component/modal/editRange/utils/couplingsToMultiplicity.d.ts.map +1 -1
  124. package/lib/component/modal/editRange/utils/mapCouplings.d.ts +1 -1
  125. package/lib/component/modal/editRange/utils/mapCouplings.d.ts.map +1 -1
  126. package/lib/component/modal/editRange/utils/mapRange.d.ts +1 -1
  127. package/lib/component/modal/editRange/utils/mapRange.d.ts.map +1 -1
  128. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js +3 -3
  129. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js.map +1 -1
  130. package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts +1 -1
  131. package/lib/component/panels/IntegralsPanel/IntegralPanel.d.ts.map +1 -1
  132. package/lib/component/panels/IntegralsPanel/IntegralPanel.js.map +1 -1
  133. package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts +1 -1
  134. package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts.map +1 -1
  135. package/lib/component/panels/IntegralsPanel/IntegralTable.js.map +1 -1
  136. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts +2 -2
  137. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts.map +1 -1
  138. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +10 -11
  139. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js.map +1 -1
  140. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
  141. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +19 -14
  142. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
  143. package/lib/component/panels/MoleculesPanel/Utilities.d.ts.map +1 -1
  144. package/lib/component/panels/PanelsBar.d.ts.map +1 -1
  145. package/lib/component/panels/PanelsBar.js +2 -4
  146. package/lib/component/panels/PanelsBar.js.map +1 -1
  147. package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts +1 -1
  148. package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts.map +1 -1
  149. package/lib/component/panels/PeaksPanel/PeaksPanel.js.map +1 -1
  150. package/lib/component/panels/PeaksPanel/PeaksTable.d.ts +1 -1
  151. package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
  152. package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
  153. package/lib/component/panels/RangesPanel/RangesHeader.d.ts +1 -1
  154. package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
  155. package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
  156. package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
  157. package/lib/component/panels/RangesPanel/RangesTable.d.ts +1 -1
  158. package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
  159. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +1 -1
  160. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
  161. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts +1 -1
  162. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.d.ts.map +1 -1
  163. package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts +1 -1
  164. package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts.map +1 -1
  165. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts +1 -1
  166. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts.map +1 -1
  167. package/lib/component/panels/ZonesPanel/ZonesTable.d.ts +1 -1
  168. package/lib/component/panels/ZonesPanel/ZonesTable.d.ts.map +1 -1
  169. package/lib/component/panels/ZonesPanel/hooks/useMapZones.d.ts +1 -1
  170. package/lib/component/panels/ZonesPanel/hooks/useMapZones.d.ts.map +1 -1
  171. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.d.ts.map +1 -1
  172. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +3 -3
  173. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
  174. package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts +1 -1
  175. package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts.map +1 -1
  176. package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js.map +1 -1
  177. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +2 -2
  178. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
  179. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts +1 -1
  180. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts.map +1 -1
  181. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
  182. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +2 -2
  183. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
  184. package/lib/component/panels/predictionPanel/PredictionPanel.d.ts.map +1 -1
  185. package/lib/component/panels/predictionPanel/PredictionPanel.js +25 -20
  186. package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
  187. package/lib/component/panels/spectrumSimulation/SpinSystemTable.js +2 -2
  188. package/lib/component/panels/spectrumSimulation/SpinSystemTable.js.map +1 -1
  189. package/lib/component/panels/spectrumSimulation/simulationValidation.d.ts +1 -1
  190. package/lib/component/panels/spectrumSimulation/simulationValidation.d.ts.map +1 -1
  191. package/lib/component/panels/spectrumSimulation/simulationValidation.js +4 -8
  192. package/lib/component/panels/spectrumSimulation/simulationValidation.js.map +1 -1
  193. package/lib/component/reducer/Reducer.d.ts +1 -1
  194. package/lib/component/reducer/Reducer.d.ts.map +1 -1
  195. package/lib/component/reducer/Reducer.js.map +1 -1
  196. package/lib/component/reducer/actions/AssignmentsActions.d.ts.map +1 -1
  197. package/lib/component/reducer/actions/AssignmentsActions.js.map +1 -1
  198. package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
  199. package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
  200. package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
  201. package/lib/component/reducer/actions/DomainActions.js +10 -5
  202. package/lib/component/reducer/actions/DomainActions.js.map +1 -1
  203. package/lib/component/reducer/actions/FiltersActions.d.ts +2 -2
  204. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  205. package/lib/component/reducer/actions/FiltersActions.js +22 -17
  206. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  207. package/lib/component/reducer/actions/IntegralsActions.d.ts +1 -1
  208. package/lib/component/reducer/actions/IntegralsActions.d.ts.map +1 -1
  209. package/lib/component/reducer/actions/IntegralsActions.js +1 -1
  210. package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
  211. package/lib/component/reducer/actions/LoadActions.d.ts.map +1 -1
  212. package/lib/component/reducer/actions/LoadActions.js +4 -2
  213. package/lib/component/reducer/actions/LoadActions.js.map +1 -1
  214. package/lib/component/reducer/actions/PeaksActions.d.ts +2 -1
  215. package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
  216. package/lib/component/reducer/actions/PeaksActions.js +1 -1
  217. package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
  218. package/lib/component/reducer/actions/RangesActions.d.ts +2 -2
  219. package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
  220. package/lib/component/reducer/actions/RangesActions.js +1 -1
  221. package/lib/component/reducer/actions/RangesActions.js.map +1 -1
  222. package/lib/component/reducer/actions/SpectraActions.d.ts +1 -1
  223. package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
  224. package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
  225. package/lib/component/reducer/actions/ToolsActions.d.ts +1 -1
  226. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  227. package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
  228. package/lib/component/reducer/actions/ZonesActions.d.ts +1 -1
  229. package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
  230. package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
  231. package/lib/component/reducer/helper/Zoom1DManager.d.ts +6 -1
  232. package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
  233. package/lib/component/reducer/helper/Zoom1DManager.js +44 -37
  234. package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
  235. package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.d.ts.map +1 -1
  236. package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js +1 -0
  237. package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js.map +1 -1
  238. package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +2 -2
  239. package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
  240. package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -1
  241. package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
  242. package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
  243. package/lib/component/toolbar/ToolTypes.d.ts +1 -1
  244. package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
  245. package/lib/data/PredictionManager.d.ts.map +1 -1
  246. package/lib/data/PredictionManager.js.map +1 -1
  247. package/lib/data/data1d/Spectrum1D/SumManager.d.ts +1 -1
  248. package/lib/data/data1d/Spectrum1D/SumManager.d.ts.map +1 -1
  249. package/lib/data/data1d/Spectrum1D/SumManager.js.map +1 -1
  250. package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts +1 -1
  251. package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts.map +1 -1
  252. package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts.map +1 -1
  253. package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts +2 -2
  254. package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts.map +1 -1
  255. package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.js.map +1 -1
  256. package/lib/data/data1d/Spectrum1D/isRangeAssigned.d.ts +1 -1
  257. package/lib/data/data1d/Spectrum1D/isRangeAssigned.d.ts.map +1 -1
  258. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +1 -1
  259. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts.map +1 -1
  260. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js.map +1 -1
  261. package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts +1 -1
  262. package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts.map +1 -1
  263. package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.js.map +1 -1
  264. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts +1 -1
  265. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts.map +1 -1
  266. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js.map +1 -1
  267. package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts +1 -1
  268. package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts.map +1 -1
  269. package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts.map +1 -1
  270. package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts +1 -1
  271. package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts.map +1 -1
  272. package/lib/data/data1d/Spectrum1D/ranges/createRange.js.map +1 -1
  273. package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts +30 -1
  274. package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts.map +1 -1
  275. package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +3 -3
  276. package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts.map +1 -1
  277. package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.js.map +1 -1
  278. package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts +1 -1
  279. package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts.map +1 -1
  280. package/lib/data/data1d/Spectrum1D/ranges/resizeRange.js.map +1 -1
  281. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.d.ts +1 -1
  282. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.d.ts.map +1 -1
  283. package/lib/data/data1d/database.d.ts.map +1 -1
  284. package/lib/data/data1d/database.js +1 -1
  285. package/lib/data/data1d/database.js.map +1 -1
  286. package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
  287. package/lib/data/data1d/multipleSpectraAnalysis.js +19 -12
  288. package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
  289. package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +1 -1
  290. package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts.map +1 -1
  291. package/lib/data/data2d/Spectrum2D/getMissingProjection.js.map +1 -1
  292. package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts +1 -1
  293. package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts.map +1 -1
  294. package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
  295. package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js.map +1 -1
  296. package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +1 -1
  297. package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
  298. package/lib/data/data2d/Spectrum2D/zones/initiateZones.js.map +1 -1
  299. package/lib/data/matrixGeneration.js +1 -1
  300. package/lib/data/matrixGeneration.js.map +1 -1
  301. package/lib/data/types/common/FilterEntry.d.ts +1 -1
  302. package/lib/data/types/common/FilterEntry.d.ts.map +1 -1
  303. package/lib/data/types/data1d/RangeDetectionResult.d.ts +1 -1
  304. package/lib/data/types/data1d/RangeDetectionResult.d.ts.map +1 -1
  305. package/lib/data/utilities/FindUtilities.d.ts +1 -1
  306. package/lib/data/utilities/FindUtilities.d.ts.map +1 -1
  307. package/lib/data/utilities/RangeUtilities.d.ts +1 -1
  308. package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
  309. package/lib/data/utilities/RangeUtilities.js.map +1 -1
  310. package/lib/data/utilities/ZoneUtilities.d.ts +1 -1
  311. package/lib/data/utilities/ZoneUtilities.d.ts.map +1 -1
  312. package/lib/versionInfo.js +1 -1
  313. package/package.json +37 -37
  314. package/src/component/1d/BrushTracker1D.tsx +31 -16
  315. package/src/component/1d/FloatPublicationString.tsx +2 -2
  316. package/src/component/1d/FloatingRanges.tsx +4 -4
  317. package/src/component/1d/PredictionErrorsNotations.tsx +2 -2
  318. package/src/component/1d/Viewer1D.tsx +1 -1
  319. package/src/component/1d/integral/IntegralResizable.tsx +1 -1
  320. package/src/component/1d/integral/IntegralsSeries.tsx +1 -1
  321. package/src/component/1d/jCouplingGraph/JGraph.tsx +1 -1
  322. package/src/component/1d/jCouplingGraph/JsCouplings.tsx +1 -1
  323. package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +2 -2
  324. package/src/component/1d/multiplicityTree/MultiplicityTrees.tsx +1 -1
  325. package/src/component/1d/multiplicityTree/generateTreeNodes.ts +1 -1
  326. package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +2 -6
  327. package/src/component/1d/peaks/Peaks.tsx +1 -1
  328. package/src/component/1d/peaks/usePeakShapesPath.ts +1 -1
  329. package/src/component/1d/ranges/AssignmentLabel.tsx +1 -1
  330. package/src/component/1d/ranges/Atoms.tsx +1 -1
  331. package/src/component/1d/ranges/Range.tsx +1 -1
  332. package/src/component/1d/ranges/Ranges.tsx +4 -1
  333. package/src/component/1d/tool/BaseLineZones.tsx +1 -1
  334. package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +1 -1
  335. package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +4 -6
  336. package/src/component/1d-2d/tools/BrushXY.tsx +319 -30
  337. package/src/component/2d/BrushTracker2D.tsx +18 -4
  338. package/src/component/2d/Viewer2D.tsx +6 -1
  339. package/src/component/2d/utilities/extractSpectrumSignals.ts +1 -1
  340. package/src/component/2d/zones/Signal.tsx +1 -1
  341. package/src/component/2d/zones/SignalCrosshair.tsx +1 -1
  342. package/src/component/2d/zones/SignalsGuideLines.tsx +3 -3
  343. package/src/component/2d/zones/Zone.tsx +2 -2
  344. package/src/component/2d/zones/Zones.tsx +1 -1
  345. package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +3 -3
  346. package/src/component/EventsTrackers/BrushTracker.tsx +123 -28
  347. package/src/component/SVGTable.tsx +4 -6
  348. package/src/component/assignment/utilities/getAssignments.ts +1 -1
  349. package/src/component/elements/ArrowBox.tsx +77 -0
  350. package/src/component/elements/DraggableDialog.tsx +2 -0
  351. package/src/component/elements/Input.tsx +3 -3
  352. package/src/component/elements/Input2.tsx +4 -4
  353. package/src/component/elements/NextPrev.tsx +2 -6
  354. package/src/component/elements/NumberInput2.tsx +1 -1
  355. package/src/component/elements/ReactTable/Elements/ReactTableRow.tsx +3 -1
  356. package/src/component/elements/ReactTable/ReactTable.tsx +6 -7
  357. package/src/component/elements/Tab/Tabs.tsx +3 -1
  358. package/src/component/highlight/index.tsx +5 -5
  359. package/src/component/hooks/useCheckToolsVisibility.ts +1 -1
  360. package/src/component/hooks/useCombinedRefs.ts +6 -4
  361. package/src/component/hooks/useDatumWithSpectraStatistics.ts +1 -1
  362. package/src/component/hooks/useFilter.ts +1 -1
  363. package/src/component/main/InnerNMRiumContents.tsx +7 -6
  364. package/src/component/modal/EditPeakShapeModal.tsx +7 -2
  365. package/src/component/modal/editRange/EditRangeModal.tsx +1 -1
  366. package/src/component/modal/editRange/forms/components/SignalsContent.tsx +1 -1
  367. package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +1 -1
  368. package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +1 -1
  369. package/src/component/modal/editRange/utils/couplingsToMultiplicity.ts +1 -1
  370. package/src/component/modal/editRange/utils/mapCouplings.ts +1 -1
  371. package/src/component/modal/editRange/utils/mapRange.ts +1 -1
  372. package/src/component/modal/editZone/EditZoneModal.tsx +1 -1
  373. package/src/component/modal/setting/settings-tabs/ToolsTabContent.tsx +3 -3
  374. package/src/component/panels/IntegralsPanel/IntegralPanel.tsx +1 -1
  375. package/src/component/panels/IntegralsPanel/IntegralTable.tsx +1 -1
  376. package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.tsx +21 -24
  377. package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +22 -17
  378. package/src/component/panels/MoleculesPanel/Utilities.ts +1 -1
  379. package/src/component/panels/PanelsBar.tsx +2 -6
  380. package/src/component/panels/PeaksPanel/PeaksPanel.tsx +1 -1
  381. package/src/component/panels/PeaksPanel/PeaksTable.tsx +1 -1
  382. package/src/component/panels/RangesPanel/RangesHeader.tsx +1 -1
  383. package/src/component/panels/RangesPanel/RangesPanel.tsx +1 -1
  384. package/src/component/panels/RangesPanel/RangesTable.tsx +1 -1
  385. package/src/component/panels/RangesPanel/RangesTableRow.tsx +1 -1
  386. package/src/component/panels/RangesPanel/TableColumns/SignalDeltaHzColumn.tsx +1 -1
  387. package/src/component/panels/RangesPanel/hooks/useMapRanges.ts +1 -1
  388. package/src/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.tsx +1 -1
  389. package/src/component/panels/ZonesPanel/ZonesTable.tsx +1 -1
  390. package/src/component/panels/ZonesPanel/hooks/useMapZones.ts +1 -1
  391. package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +14 -4
  392. package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +1 -1
  393. package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +1 -1
  394. package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +1 -1
  395. package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +3 -3
  396. package/src/component/panels/predictionPanel/PredictionPanel.tsx +64 -64
  397. package/src/component/panels/spectrumSimulation/SpinSystemTable.tsx +2 -2
  398. package/src/component/panels/spectrumSimulation/simulationValidation.ts +9 -13
  399. package/src/component/reducer/Reducer.ts +1 -1
  400. package/src/component/reducer/actions/AssignmentsActions.ts +2 -1
  401. package/src/component/reducer/actions/DatabaseActions.ts +2 -1
  402. package/src/component/reducer/actions/DomainActions.ts +11 -7
  403. package/src/component/reducer/actions/FiltersActions.ts +40 -36
  404. package/src/component/reducer/actions/IntegralsActions.ts +2 -2
  405. package/src/component/reducer/actions/LoadActions.ts +4 -2
  406. package/src/component/reducer/actions/PeaksActions.ts +5 -4
  407. package/src/component/reducer/actions/RangesActions.ts +4 -4
  408. package/src/component/reducer/actions/SpectraActions.ts +1 -1
  409. package/src/component/reducer/actions/ToolsActions.ts +1 -1
  410. package/src/component/reducer/actions/ZonesActions.ts +1 -1
  411. package/src/component/reducer/helper/Zoom1DManager.ts +67 -41
  412. package/src/component/reducer/helper/removeSpectrumRelatedObjectsById.ts +1 -0
  413. package/src/component/reducer/preferences/actions/matrixGeneration.ts +2 -2
  414. package/src/component/reducer/preferences/preferencesReducer.ts +2 -2
  415. package/src/component/toolbar/ToolTypes.ts +1 -1
  416. package/src/data/PredictionManager.ts +1 -2
  417. package/src/data/data1d/Spectrum1D/SumManager.ts +1 -1
  418. package/src/data/data1d/Spectrum1D/generateJGraphData.ts +1 -1
  419. package/src/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.ts +1 -1
  420. package/src/data/data1d/Spectrum1D/integrals/initiateIntegrals.ts +1 -1
  421. package/src/data/data1d/Spectrum1D/isRangeAssigned.ts +1 -1
  422. package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +1 -1
  423. package/src/data/data1d/Spectrum1D/peaks/initiatePeaks.ts +1 -1
  424. package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +1 -1
  425. package/src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts +1 -1
  426. package/src/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.ts +1 -1
  427. package/src/data/data1d/Spectrum1D/ranges/createRange.ts +1 -1
  428. package/src/data/data1d/Spectrum1D/ranges/initiateRanges.ts +1 -1
  429. package/src/data/data1d/Spectrum1D/ranges/resizeRange.ts +1 -1
  430. package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +1 -1
  431. package/src/data/data1d/database.ts +3 -2
  432. package/src/data/data1d/multipleSpectraAnalysis.ts +25 -18
  433. package/src/data/data2d/Spectrum2D/getMissingProjection.ts +1 -2
  434. package/src/data/data2d/Spectrum2D/zones/detectZones.ts +1 -1
  435. package/src/data/data2d/Spectrum2D/zones/detectZonesManual.ts +2 -2
  436. package/src/data/data2d/Spectrum2D/zones/initiateZones.ts +1 -1
  437. package/src/data/matrixGeneration.ts +1 -1
  438. package/src/data/types/common/FilterEntry.ts +1 -1
  439. package/src/data/types/data1d/RangeDetectionResult.ts +1 -1
  440. package/src/data/utilities/FindUtilities.ts +1 -1
  441. package/src/data/utilities/RangeUtilities.ts +1 -1
  442. package/src/data/utilities/ZoneUtilities.ts +1 -1
  443. package/src/index.tsx +3 -0
  444. package/src/versionInfo.ts +1 -1
@@ -1,9 +1,9 @@
1
1
  import { Button, DialogFooter } from '@blueprintjs/core';
2
2
  import styled from '@emotion/styled';
3
3
  import { yupResolver } from '@hookform/resolvers/yup';
4
+ import type { Jcoupling, Range, Signal1D } from '@zakodium/nmr-types';
4
5
  import type { Spectrum1D } from '@zakodium/nmrium-core';
5
6
  import { splitPatterns } from 'nmr-processing';
6
- import type { Jcoupling, Range, Signal1D } from 'nmr-processing';
7
7
  import { useCallback, useMemo, useRef } from 'react';
8
8
  import { FormProvider, useForm } from 'react-hook-form';
9
9
  import { FaSearchPlus } from 'react-icons/fa';
@@ -1,5 +1,5 @@
1
1
  import { Tab, Tabs } from '@blueprintjs/core';
2
- import type { Range } from 'nmr-processing';
2
+ import type { Range } from '@zakodium/nmr-types';
3
3
  import {
4
4
  createContext,
5
5
  memo,
@@ -1,6 +1,6 @@
1
1
  import { Button, Callout, Classes } from '@blueprintjs/core';
2
+ import type { Jcoupling, Peak1D } from '@zakodium/nmr-types';
2
3
  import dlv from 'dlv';
3
- import type { Jcoupling, Peak1D } from 'nmr-processing';
4
4
  import type { CSSProperties } from 'react';
5
5
  import { useCallback, useMemo, useRef } from 'react';
6
6
  import { useFormContext, useWatch } from 'react-hook-form';
@@ -1,7 +1,7 @@
1
1
  import { Button, Classes } from '@blueprintjs/core';
2
+ import type { Peak1D } from '@zakodium/nmr-types';
2
3
  import type { Spectrum1D } from '@zakodium/nmrium-core';
3
4
  import { xFindClosestIndex } from 'ml-spectra-processing';
4
- import type { Peak1D } from 'nmr-processing';
5
5
  import { getShiftX } from 'nmr-processing';
6
6
  import type { CSSProperties } from 'react';
7
7
  import { useCallback, useMemo, useRef } from 'react';
@@ -1,4 +1,4 @@
1
- import type { Jcoupling } from 'nmr-processing';
1
+ import type { Jcoupling } from '@zakodium/nmr-types';
2
2
 
3
3
  export function couplingsToMultiplicity(couplings: Jcoupling[]) {
4
4
  return couplings.map(({ multiplicity }) => multiplicity).join('');
@@ -1,4 +1,4 @@
1
- import type { Jcoupling } from 'nmr-processing';
1
+ import type { Jcoupling } from '@zakodium/nmr-types';
2
2
 
3
3
  import { hasCouplingConstant } from '../../../panels/extra/utilities/MultiplicityUtilities.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import type { Range } from 'nmr-processing';
1
+ import type { Range } from '@zakodium/nmr-types';
2
2
 
3
3
  import { couplingsToMultiplicity } from './couplingsToMultiplicity.js';
4
4
  import { mapCouplings } from './mapCouplings.js';
@@ -1,7 +1,7 @@
1
1
  import { Button, DialogFooter } from '@blueprintjs/core';
2
2
  import { yupResolver } from '@hookform/resolvers/yup';
3
+ import type { Signal2D } from '@zakodium/nmr-types';
3
4
  import type { FromTo } from 'cheminfo-types';
4
- import type { Signal2D } from 'nmr-processing';
5
5
  import { FormProvider, useForm } from 'react-hook-form';
6
6
  import { FaSearchPlus } from 'react-icons/fa';
7
7
  import * as Yup from 'yup';
@@ -64,15 +64,15 @@ const LIST: ListItem[] = [
64
64
  name: 'slicing',
65
65
  },
66
66
  {
67
- label: 'Apodization',
67
+ label: 'Apodization / Window functions',
68
68
  name: 'apodization',
69
69
  },
70
70
  {
71
- label: 'Apodization dimension one',
71
+ label: 'Apodization / Window functions dimension one',
72
72
  name: 'apodizationDimension1',
73
73
  },
74
74
  {
75
- label: 'Apodization dimension two',
75
+ label: 'Apodization / Window functions dimension two',
76
76
  name: 'apodizationDimension2',
77
77
  },
78
78
  {
@@ -1,6 +1,6 @@
1
+ import type { Info1D, Integrals } from '@zakodium/nmr-types';
1
2
  import type { Spectrum1D } from '@zakodium/nmrium-core';
2
3
  import { SvgNmrIntegrate } from 'cheminfo-font';
3
- import type { Info1D, Integrals } from 'nmr-processing';
4
4
  import { memo, useCallback, useMemo, useRef, useState } from 'react';
5
5
  import { ImLink } from 'react-icons/im';
6
6
 
@@ -1,5 +1,5 @@
1
+ import type { Info1D, Integral } from '@zakodium/nmr-types';
1
2
  import dlv from 'dlv';
2
- import type { Info1D, Integral } from 'nmr-processing';
3
3
  import { checkIntegralKind } from 'nmr-processing';
4
4
  import { memo, useCallback, useMemo } from 'react';
5
5
  import { FaRegTrashAlt } from 'react-icons/fa';
@@ -1,7 +1,7 @@
1
1
  import styled from '@emotion/styled';
2
2
  import { yupResolver } from '@hookform/resolvers/yup';
3
+ import type { MatrixOptions } from '@zakodium/nmr-types';
3
4
  import { SvgNmrMultipleAnalysis } from 'cheminfo-font';
4
- import type { MatrixOptions } from 'nmr-processing';
5
5
  import { Filters1D } from 'nmr-processing';
6
6
  import { useCallback, useMemo } from 'react';
7
7
  import { FormProvider, useForm } from 'react-hook-form';
@@ -58,18 +58,17 @@ const labelStyle: LabelStyle = {
58
58
 
59
59
  export const DEFAULT_MATRIX_FILTERS: MatrixFilter[] = getMatrixFilters();
60
60
 
61
- const DEFAULT_MATRIX_OPTIONS = getMatrixGenerationDefaultOptions();
62
-
63
61
  function getMatrixOptions(
64
- options: MatrixOptions,
62
+ options: MatrixOptions<object>,
65
63
  range: { from: number; to: number },
66
- ): MatrixOptions {
64
+ ): MatrixOptions<object> {
67
65
  const {
68
66
  range: { from, to },
69
67
  ...other
70
68
  } = options;
69
+ const { matrixOptions } = getMatrixGenerationDefaultOptions();
71
70
  return {
72
- ...DEFAULT_MATRIX_OPTIONS.matrixOptions,
71
+ ...matrixOptions,
73
72
  range: {
74
73
  from: from === to ? range.from : from,
75
74
  to: from === to ? range.to : to,
@@ -83,7 +82,7 @@ export const GroupPanelStyle: GroupPaneStyle = {
83
82
  header: { color: 'black', fontWeight: 'bolder' },
84
83
  };
85
84
 
86
- export function useHasSignalProcessingFilter(): MatrixOptions | null {
85
+ export function useHasSignalProcessingFilter(): MatrixOptions<object> | null {
87
86
  const spectra = useSpectraByActiveNucleus();
88
87
 
89
88
  if (!spectra) return null;
@@ -124,13 +123,20 @@ function InnerMatrixGenerationPanel() {
124
123
  activeTab,
125
124
  );
126
125
 
127
- const matrixOptions = getMatrixOptions(nucleusMatrixOptions.matrixOptions, {
128
- from: originDomain.xDomain[0],
129
- to: originDomain.xDomain[1],
130
- });
126
+ const matrixOptions = useMemo(
127
+ () =>
128
+ getMatrixOptions(nucleusMatrixOptions.matrixOptions, {
129
+ from: originDomain.xDomain[0],
130
+ to: originDomain.xDomain[1],
131
+ }),
132
+ [nucleusMatrixOptions.matrixOptions, originDomain.xDomain],
133
+ );
131
134
 
132
135
  function handleSave(options) {
133
- dispatch({ type: 'APPLY_SIGNAL_PROCESSING_FILTER', payload: { options } });
136
+ dispatch({
137
+ type: 'APPLY_SIGNAL_PROCESSING_FILTER',
138
+ payload: { options: structuredClone(options) },
139
+ });
134
140
  }
135
141
 
136
142
  const handleOnChange = useCallback(
@@ -164,25 +170,16 @@ function InnerMatrixGenerationPanel() {
164
170
  }
165
171
 
166
172
  const { showStocsy, showBoxPlot } =
167
- nucleusMatrixOptions || DEFAULT_MATRIX_OPTIONS;
173
+ nucleusMatrixOptions || getMatrixGenerationDefaultOptions();
168
174
  const methods = useForm({
169
175
  defaultValues: matrixOptions,
170
176
  resolver: yupResolver(schema),
171
177
  });
172
178
  const { handleSubmit, reset, control } = methods;
173
179
 
174
- const memoizedInitialValues = useMemo(
175
- () =>
176
- getMatrixOptions(nucleusMatrixOptions.matrixOptions, {
177
- from: originDomain.xDomain[0],
178
- to: originDomain.xDomain[1],
179
- }),
180
- [nucleusMatrixOptions.matrixOptions, originDomain.xDomain],
181
- );
182
-
183
180
  useWatchForm({
184
181
  reset,
185
- initialValues: memoizedInitialValues,
182
+ initialValues: matrixOptions,
186
183
  control,
187
184
  onChange: (values) => {
188
185
  handleOnChange(values);
@@ -336,7 +333,7 @@ function ExclusionZonesGroupHeaderContent() {
336
333
  interface FooterActionsButtonsProps {
337
334
  onClickApply: () => void;
338
335
  onClickRemove: () => void;
339
- matrixOptions: MatrixOptions;
336
+ matrixOptions: MatrixOptions<object>;
340
337
  }
341
338
 
342
339
  function FooterActionsButtons(props: FooterActionsButtonsProps) {
@@ -47,6 +47,13 @@ const styles: Record<'atomLabel', CSSProperties> = {
47
47
  };
48
48
 
49
49
  const MOL_EXPORT_MENU: ToolbarPopoverMenuItem[] = [
50
+ {
51
+ icon: <FaCopy />,
52
+ text: 'Copy as SMILES',
53
+ data: {
54
+ id: 'smiles',
55
+ },
56
+ },
50
57
  {
51
58
  icon: <FaCopy />,
52
59
  text: 'Copy as molfile V3',
@@ -141,11 +148,11 @@ export default function MoleculePanelHeader(props: MoleculePanelHeaderProps) {
141
148
  text,
142
149
  } = useClipboard();
143
150
 
144
- const saveAsMolHandler = useCallback(
145
- (molfile) => {
146
- void rawWriteWithType(molfile).then(() => {
151
+ const copyHandler = useCallback(
152
+ (value, title) => {
153
+ void rawWriteWithType(value).then(() => {
147
154
  toaster.show({
148
- message: 'MOLFile copied to clipboard',
155
+ message: `${title} copied to clipboard`,
149
156
  intent: 'success',
150
157
  });
151
158
  });
@@ -155,16 +162,20 @@ export default function MoleculePanelHeader(props: MoleculePanelHeaderProps) {
155
162
 
156
163
  const exportHandler = useCallback(
157
164
  (selected) => {
158
- const molecule = molecules?.[currentIndex];
165
+ const m = molecules?.[currentIndex];
166
+ const molecule = Molecule.fromMolfile(m.molfile);
167
+
159
168
  if (molecule) {
160
169
  switch (selected?.id) {
170
+ case 'smiles':
171
+ copyHandler(molecule.toSmiles(), 'SMILES');
172
+
173
+ break;
161
174
  case 'molfileV3':
162
- saveAsMolHandler(molecule.molfile);
175
+ copyHandler(m.molfile, 'MOLFile');
163
176
  break;
164
177
  case 'molfileV2': {
165
- saveAsMolHandler(
166
- Molecule.fromMolfile(molecule.molfile).toMolfile(),
167
- );
178
+ copyHandler(molecule.toMolfile(), 'MOLFile');
168
179
 
169
180
  break;
170
181
  }
@@ -179,13 +190,7 @@ export default function MoleculePanelHeader(props: MoleculePanelHeaderProps) {
179
190
  }
180
191
  }
181
192
  },
182
- [
183
- currentIndex,
184
- molecules,
185
- saveAsMolHandler,
186
- saveAsPNGHandler,
187
- saveAsSVGHandler,
188
- ],
193
+ [molecules, currentIndex, copyHandler, saveAsPNGHandler, saveAsSVGHandler],
189
194
  );
190
195
 
191
196
  function handlePasteMolfileAction() {
@@ -267,7 +272,7 @@ export default function MoleculePanelHeader(props: MoleculePanelHeaderProps) {
267
272
  />
268
273
  )}
269
274
  <Toolbar.Item
270
- tooltip="Paste molfile"
275
+ tooltip="Paste SMILES or molfile"
271
276
  icon={<FaPaste />}
272
277
  onClick={handlePasteMolfileAction}
273
278
  />
@@ -1,5 +1,5 @@
1
+ import type { Range, Zone } from '@zakodium/nmr-types';
1
2
  import type { Spectrum } from '@zakodium/nmrium-core';
2
- import type { Range, Zone } from 'nmr-processing';
3
3
  import type { DiaIDAndInfo } from 'openchemlib-utils';
4
4
 
5
5
  import { isSpectrum1D } from '../../../data/data1d/Spectrum1D/isSpectrum1D.js';
@@ -1,8 +1,8 @@
1
1
  import { ButtonGroup, Colors } from '@blueprintjs/core';
2
2
  import styled from '@emotion/styled';
3
3
  import type { NMRiumPanelPreferences } from '@zakodium/nmrium-core';
4
+ import { useResizeObserver } from 'react-d3-utils';
4
5
  import { ActivityBarItem, Toolbar } from 'react-science/ui';
5
- import useResizeObserver from 'use-resize-observer';
6
6
 
7
7
  import { usePreferences } from '../context/PreferencesContext.js';
8
8
  import type { ToolbarPopoverMenuItem } from '../elements/ToolbarPopoverItem.js';
@@ -47,11 +47,7 @@ export function PanelsBar({ itemHeight = 44 }) {
47
47
  const {
48
48
  display: { general = {} },
49
49
  } = current;
50
- const {
51
- ref,
52
- height,
53
- // @ts-expect-error Module is not published correctly.
54
- } = useResizeObserver();
50
+ const [ref, { height } = { height: 0 }] = useResizeObserver();
55
51
  const getPanelPreferences = useGetPanelOptions();
56
52
 
57
53
  const sliceIndex = Math.floor((height - itemHeight) / itemHeight);
@@ -1,6 +1,6 @@
1
+ import type { Info1D, Peak1D, Peaks } from '@zakodium/nmr-types';
1
2
  import type { PeaksViewState, Spectrum1D } from '@zakodium/nmrium-core';
2
3
  import { SvgNmrFt, SvgNmrPeaks, SvgNmrPeaksTopLabels } from 'cheminfo-font';
3
- import type { Info1D, Peak1D, Peaks } from 'nmr-processing';
4
4
  import { memo, useCallback, useMemo, useRef, useState } from 'react';
5
5
  import { FaThinkPeaks } from 'react-icons/fa';
6
6
 
@@ -1,5 +1,5 @@
1
+ import type { Info1D, Peak1D } from '@zakodium/nmr-types';
1
2
  import dlv from 'dlv';
2
- import type { Info1D, Peak1D } from 'nmr-processing';
3
3
  import { memo, useCallback, useMemo, useState } from 'react';
4
4
  import { FaEdit, FaRegTrashAlt } from 'react-icons/fa';
5
5
 
@@ -1,3 +1,4 @@
1
+ import type { Info1D, Ranges } from '@zakodium/nmr-types';
1
2
  import type { RangesViewState } from '@zakodium/nmrium-core';
2
3
  import {
3
4
  SvgNmrIntegrate,
@@ -5,7 +6,6 @@ import {
5
6
  SvgNmrPeaksTopLabels,
6
7
  } from 'cheminfo-font';
7
8
  import fileSaver from 'file-saver';
8
- import type { Info1D, Ranges } from 'nmr-processing';
9
9
  import { rangesToTSV } from 'nmr-processing';
10
10
  import {
11
11
  FaChartBar,
@@ -1,10 +1,10 @@
1
+ import type { Info1D, Ranges } from '@zakodium/nmr-types';
1
2
  import type {
2
3
  Spectrum1D,
3
4
  WorkSpacePanelPreferences,
4
5
  } from '@zakodium/nmrium-core';
5
6
  import type { NmrData1D } from 'cheminfo-types';
6
7
  import { xGetFromToIndex } from 'ml-spectra-processing';
7
- import type { Info1D, Ranges } from 'nmr-processing';
8
8
  import { memo, useCallback, useMemo, useRef, useState } from 'react';
9
9
  import { FaCopy } from 'react-icons/fa';
10
10
 
@@ -1,6 +1,6 @@
1
1
  import styled from '@emotion/styled';
2
+ import type { Info1D } from '@zakodium/nmr-types';
2
3
  import type { WorkSpacePanelPreferences } from '@zakodium/nmrium-core';
3
- import type { Info1D } from 'nmr-processing';
4
4
  import { FaLink } from 'react-icons/fa';
5
5
 
6
6
  import { withDialog } from '../../elements/DialogManager.js';
@@ -1,5 +1,5 @@
1
+ import type { Info1D } from '@zakodium/nmr-types';
1
2
  import type { WorkSpacePanelPreferences } from '@zakodium/nmrium-core';
2
- import type { Info1D } from 'nmr-processing';
3
3
  import type { CSSProperties, MouseEvent } from 'react';
4
4
  import { useCallback, useMemo } from 'react';
5
5
 
@@ -1,4 +1,4 @@
1
- import type { Info1D } from 'nmr-processing';
1
+ import type { Info1D } from '@zakodium/nmr-types';
2
2
  import { checkMultiplicity } from 'nmr-processing';
3
3
 
4
4
  import { formatNumber } from '../../../utility/formatNumber.js';
@@ -1,4 +1,4 @@
1
- import type { Range } from 'nmr-processing';
1
+ import type { Range } from '@zakodium/nmr-types';
2
2
  import { useMemo } from 'react';
3
3
 
4
4
  export interface RangeData extends Range {
@@ -1,6 +1,6 @@
1
1
  import styled from '@emotion/styled';
2
+ import type { Signal2D } from '@zakodium/nmr-types';
2
3
  import type { FromTo } from 'cheminfo-types';
3
- import type { Signal2D } from 'nmr-processing';
4
4
  import { useCallback, useEffect, useState } from 'react';
5
5
 
6
6
  import DefaultPathLengths from '../../../../../data/constants/DefaultPathLengths.js';
@@ -1,9 +1,9 @@
1
1
  import styled from '@emotion/styled';
2
+ import type { Info2D } from '@zakodium/nmr-types';
2
3
  import type {
3
4
  Zones1DNucleusPreferences,
4
5
  Zones2DNucleusPreferences,
5
6
  } from '@zakodium/nmrium-core';
6
- import type { Info2D } from 'nmr-processing';
7
7
  import type { ReactNode } from 'react';
8
8
  import { FaLink } from 'react-icons/fa';
9
9
 
@@ -1,4 +1,4 @@
1
- import type { Zone } from 'nmr-processing';
1
+ import type { Zone } from '@zakodium/nmr-types';
2
2
  import { useMemo } from 'react';
3
3
 
4
4
  export interface ZoneData extends Zone {
@@ -1,5 +1,5 @@
1
1
  import { Switch } from '@blueprintjs/core';
2
- import type { Apodization1DOptions } from 'nmr-processing';
2
+ import type { Apodization1DOptions } from '@zakodium/nmr-types';
3
3
  import type { ReactNode } from 'react';
4
4
  import { FormProvider, useFormContext } from 'react-hook-form';
5
5
  import * as Yup from 'yup';
@@ -11,10 +11,10 @@ import { ReadOnly } from '../../../../elements/ReadOnly.js';
11
11
  import { Sections } from '../../../../elements/Sections.js';
12
12
  import { FilterActionButtons } from '../FilterActionButtons.js';
13
13
  import { HeaderContainer, StickyHeader } from '../InnerFilterHeader.js';
14
- import { useApodization } from '../hooks/useApodization.js';
15
14
  import type { ApodizationFilterEntry } from '../hooks/useApodization.js';
16
- import { formLabelStyle } from '../index.js';
15
+ import { useApodization } from '../hooks/useApodization.js';
17
16
  import type { BaseFilterOptionsPanelProps } from '../index.js';
17
+ import { formLabelStyle } from '../index.js';
18
18
 
19
19
  const advanceValidationSchema = Yup.object().shape({
20
20
  options: Yup.object().shape({
@@ -137,6 +137,7 @@ export function BaseApodizationOptions(
137
137
 
138
138
  interface SectionOptions {
139
139
  onChange: () => void;
140
+ setFocus?: boolean;
140
141
  }
141
142
 
142
143
  function ExponentialSectionOptionsSection(options: SectionOptions) {
@@ -149,6 +150,7 @@ function ExponentialSectionOptionsSection(options: SectionOptions) {
149
150
  algorithm="exponential"
150
151
  algorithmTitle="Exponential"
151
152
  onChange={onChange}
153
+ autoFocus
152
154
  >
153
155
  <Label
154
156
  title="Line broadening:"
@@ -304,10 +306,17 @@ interface OptionsSectionProps extends SectionOptions {
304
306
  algorithm: keyof Apodization1DOptions;
305
307
  algorithmTitle: string;
306
308
  children: ReactNode;
309
+ autoFocus?: boolean;
307
310
  }
308
311
 
309
312
  function OptionsSection(options: OptionsSectionProps) {
310
- const { onChange, algorithm, algorithmTitle, children } = options;
313
+ const {
314
+ onChange,
315
+ algorithm,
316
+ algorithmTitle,
317
+ children,
318
+ autoFocus = false,
319
+ } = options;
311
320
 
312
321
  const { setValue, watch } = useFormContext();
313
322
  const isApplyChecked = watch(`options.${algorithm}.apply`) || false;
@@ -330,6 +339,7 @@ function OptionsSection(options: OptionsSectionProps) {
330
339
  innerLabel="Off"
331
340
  checked={isApplyChecked}
332
341
  onChange={handleToggleApply}
342
+ autoFocus={autoFocus}
333
343
  />
334
344
  }
335
345
  headerStyle={{ backgroundColor: 'white' }}
@@ -1,7 +1,7 @@
1
1
  import { yupResolver } from '@hookform/resolvers/yup';
2
+ import type { Apodization1DOptions } from '@zakodium/nmr-types';
2
3
  import lodashMerge from 'lodash/merge.js';
3
4
  import { default1DApodization } from 'nmr-processing';
4
- import type { Apodization1DOptions } from 'nmr-processing';
5
5
  import { useCallback, useEffect, useRef } from 'react';
6
6
  import { useForm } from 'react-hook-form';
7
7
  import * as Yup from 'yup';
@@ -1,5 +1,5 @@
1
1
  import { yupResolver } from '@hookform/resolvers/yup';
2
- import type { BaselineCorrectionOptions } from 'nmr-processing';
2
+ import type { BaselineCorrectionOptions } from '@zakodium/nmr-types';
3
3
  import { useCallback, useEffect, useRef } from 'react';
4
4
  import { useForm } from 'react-hook-form';
5
5
  import { useSelect } from 'react-science/ui';
@@ -1,7 +1,7 @@
1
+ import type { Filter2DEntry } from '@zakodium/nmr-types';
1
2
  import type { Spectrum2D } from '@zakodium/nmrium-core';
2
3
  import type { NmrData2DFt } from 'cheminfo-types';
3
4
  import debounce from 'lodash/debounce.js';
4
- import type { Filter2DEntry } from 'nmr-processing';
5
5
  import { useCallback, useEffect, useRef, useState } from 'react';
6
6
  import { useSelect } from 'react-science/ui';
7
7
 
@@ -1,10 +1,10 @@
1
+ import type { ZeroFillingOptions as BaseZeroFillingOptions } from '@zakodium/nmr-types';
1
2
  import type { NmrData2DFid } from 'cheminfo-types';
2
- import type { ZeroFillingOptions as BaseZeroFillingOptions } from 'nmr-processing';
3
3
  import { useCallback, useEffect, useRef } from 'react';
4
4
  import { useForm } from 'react-hook-form';
5
5
 
6
- import { isSpectrum1D } from '../../../../../data/data1d/Spectrum1D/isSpectrum1D.js';
7
- import { isSpectrum2D } from '../../../../../data/data2d/Spectrum2D/isSpectrum2D.js';
6
+ import { isSpectrum1D } from '../../../../../data/data1d/Spectrum1D/index.js';
7
+ import { isSpectrum2D } from '../../../../../data/data2d/Spectrum2D/index.js';
8
8
  import type { ExtractFilterEntry } from '../../../../../data/types/common/ExtractFilterEntry.js';
9
9
  import generateNumbersPowerOfX from '../../../../../data/utilities/generateNumbersPowerOfX.js';
10
10
  import { useDispatch } from '../../../../context/DispatchContext.js';