nmrium 1.3.0 → 1.5.0

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 (1187) hide show
  1. package/lib/component/1d/BrushTracker1D.d.ts +2 -3
  2. package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
  3. package/lib/component/1d/BrushTracker1D.js +2 -3
  4. package/lib/component/1d/BrushTracker1D.js.map +1 -1
  5. package/lib/component/1d/ExclusionZoneAnnotation.js +3 -3
  6. package/lib/component/1d/ExclusionZoneAnnotation.js.map +1 -1
  7. package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
  8. package/lib/component/1d/FloatPublicationString.js +9 -16
  9. package/lib/component/1d/FloatPublicationString.js.map +1 -1
  10. package/lib/component/1d/FloatingRanges.d.ts.map +1 -1
  11. package/lib/component/1d/FloatingRanges.js +3 -6
  12. package/lib/component/1d/FloatingRanges.js.map +1 -1
  13. package/lib/component/1d/FooterBanner.js.map +1 -1
  14. package/lib/component/1d/Line.js +2 -2
  15. package/lib/component/1d/Line.js.map +1 -1
  16. package/lib/component/1d/PredictionErrorsNotations.js +2 -2
  17. package/lib/component/1d/PredictionErrorsNotations.js.map +1 -1
  18. package/lib/component/1d/SimilarityTree.js +1 -1
  19. package/lib/component/1d/SimilarityTree.js.map +1 -1
  20. package/lib/component/1d/XAxis1D.js +3 -3
  21. package/lib/component/1d/XAxis1D.js.map +1 -1
  22. package/lib/component/1d/database/DatabaseElements.d.ts.map +1 -1
  23. package/lib/component/1d/database/DatabaseElements.js +2 -2
  24. package/lib/component/1d/database/DatabaseElements.js.map +1 -1
  25. package/lib/component/1d/database/DatabaseSpectrum.d.ts.map +1 -1
  26. package/lib/component/1d/database/DatabaseSpectrum.js +3 -3
  27. package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
  28. package/lib/component/1d/database/ResurrectedDatabaseRanges.d.ts.map +1 -1
  29. package/lib/component/1d/database/ResurrectedDatabaseRanges.js +3 -3
  30. package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
  31. package/lib/component/1d/inset/DraggableInset.d.ts.map +1 -1
  32. package/lib/component/1d/inset/DraggableInset.js +116 -67
  33. package/lib/component/1d/inset/DraggableInset.js.map +1 -1
  34. package/lib/component/1d/inset/InsetViewerRoot.d.ts +2 -3
  35. package/lib/component/1d/inset/InsetViewerRoot.d.ts.map +1 -1
  36. package/lib/component/1d/inset/InsetViewerRoot.js.map +1 -1
  37. package/lib/component/1d/integral/IntegralResizable.js +2 -2
  38. package/lib/component/1d/integral/IntegralResizable.js.map +1 -1
  39. package/lib/component/1d/jCouplingGraph/JGraph.js +1 -1
  40. package/lib/component/1d/jCouplingGraph/JGraph.js.map +1 -1
  41. package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts +1 -1
  42. package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts.map +1 -1
  43. package/lib/component/1d/matrix/Boxplot.d.ts.map +1 -1
  44. package/lib/component/1d/matrix/Boxplot.js +3 -2
  45. package/lib/component/1d/matrix/Boxplot.js.map +1 -1
  46. package/lib/component/1d/matrix/Stocsy.d.ts.map +1 -1
  47. package/lib/component/1d/matrix/Stocsy.js +5 -3
  48. package/lib/component/1d/matrix/Stocsy.js.map +1 -1
  49. package/lib/component/1d/multiAnalysis/AnalysisRange.js.map +1 -1
  50. package/lib/component/1d/multiplicityTree/MultiplicityTree.js +2 -2
  51. package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
  52. package/lib/component/1d/peaks/PeakAnnotations.d.ts.map +1 -1
  53. package/lib/component/1d/peaks/PeakAnnotations.js +99 -3
  54. package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
  55. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts.map +1 -1
  56. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +4 -8
  57. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
  58. package/lib/component/1d/peaks/PeakEditionManager.d.ts +2 -4
  59. package/lib/component/1d/peaks/PeakEditionManager.d.ts.map +1 -1
  60. package/lib/component/1d/peaks/PeakEditionManager.js +3 -0
  61. package/lib/component/1d/peaks/PeakEditionManager.js.map +1 -1
  62. package/lib/component/1d/peaks/Peaks.d.ts +4 -2
  63. package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
  64. package/lib/component/1d/peaks/Peaks.js +26 -22
  65. package/lib/component/1d/peaks/Peaks.js.map +1 -1
  66. package/lib/component/1d/ranges/Atoms.d.ts.map +1 -1
  67. package/lib/component/1d/ranges/Atoms.js +5 -1
  68. package/lib/component/1d/ranges/Atoms.js.map +1 -1
  69. package/lib/component/1d/ranges/Range.d.ts.map +1 -1
  70. package/lib/component/1d/ranges/Range.js +3 -3
  71. package/lib/component/1d/ranges/Range.js.map +1 -1
  72. package/lib/component/1d/ranges/Ranges.d.ts.map +1 -1
  73. package/lib/component/1d/ranges/Ranges.js +7 -8
  74. package/lib/component/1d/ranges/Ranges.js.map +1 -1
  75. package/lib/component/1d/tool/BaseLineZones.js.map +1 -1
  76. package/lib/component/1d/tool/PeakPointer.d.ts.map +1 -1
  77. package/lib/component/1d/tool/PeakPointer.js +8 -7
  78. package/lib/component/1d/tool/PeakPointer.js.map +1 -1
  79. package/lib/component/1d/utilities/intersectionResolver.d.ts +4 -4
  80. package/lib/component/1d/utilities/intersectionResolver.d.ts.map +1 -1
  81. package/lib/component/1d/utilities/intersectionResolver.js.map +1 -1
  82. package/lib/component/1d/utilities/scale.js +1 -1
  83. package/lib/component/1d/utilities/scale.js.map +1 -1
  84. package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
  85. package/lib/component/1d-2d/FieldEdition.js +2 -10
  86. package/lib/component/1d-2d/FieldEdition.js.map +1 -1
  87. package/lib/component/1d-2d/components/ClipPathContainer.d.ts +2 -3
  88. package/lib/component/1d-2d/components/ClipPathContainer.d.ts.map +1 -1
  89. package/lib/component/1d-2d/components/ClipPathContainer.js.map +1 -1
  90. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts.map +1 -1
  91. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +1 -5
  92. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
  93. package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js +1 -1
  94. package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js.map +1 -1
  95. package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
  96. package/lib/component/1d-2d/components/SpectrumInfoBlock.js +4 -6
  97. package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
  98. package/lib/component/1d-2d/tools/CrossLinePointer.d.ts.map +1 -1
  99. package/lib/component/1d-2d/tools/CrossLinePointer.js +0 -1
  100. package/lib/component/1d-2d/tools/CrossLinePointer.js.map +1 -1
  101. package/lib/component/2d/1d-tracer/Left1DChart.js +2 -2
  102. package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
  103. package/lib/component/2d/1d-tracer/Top1DChart.js +2 -2
  104. package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
  105. package/lib/component/2d/1d-tracer/VerticalSliceChart.js.map +1 -1
  106. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.d.ts.map +1 -1
  107. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.js +2 -2
  108. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.js.map +1 -1
  109. package/lib/component/2d/BrushTracker2D.d.ts +2 -3
  110. package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
  111. package/lib/component/2d/BrushTracker2D.js.map +1 -1
  112. package/lib/component/2d/FooterBanner.d.ts +8 -5
  113. package/lib/component/2d/FooterBanner.d.ts.map +1 -1
  114. package/lib/component/2d/FooterBanner.js +3 -3
  115. package/lib/component/2d/FooterBanner.js.map +1 -1
  116. package/lib/component/2d/SignalDeltaLine.d.ts +1 -1
  117. package/lib/component/2d/SignalDeltaLine.d.ts.map +1 -1
  118. package/lib/component/2d/SignalDeltaLine.js +5 -2
  119. package/lib/component/2d/SignalDeltaLine.js.map +1 -1
  120. package/lib/component/2d/tools/XYLabelPointer.d.ts +8 -5
  121. package/lib/component/2d/tools/XYLabelPointer.d.ts.map +1 -1
  122. package/lib/component/2d/tools/XYLabelPointer.js +4 -4
  123. package/lib/component/2d/tools/XYLabelPointer.js.map +1 -1
  124. package/lib/component/2d/utilities/DimensionLayout.d.ts +8 -7
  125. package/lib/component/2d/utilities/DimensionLayout.d.ts.map +1 -1
  126. package/lib/component/2d/utilities/DimensionLayout.js +4 -4
  127. package/lib/component/2d/utilities/DimensionLayout.js.map +1 -1
  128. package/lib/component/2d/utilities/extractSpectrumSignals.d.ts +2 -0
  129. package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.map +1 -1
  130. package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -1
  131. package/lib/component/2d/utilities/scale.d.ts.map +1 -1
  132. package/lib/component/2d/utilities/scale.js +5 -3
  133. package/lib/component/2d/utilities/scale.js.map +1 -1
  134. package/lib/component/2d/zones/Signal.d.ts.map +1 -1
  135. package/lib/component/2d/zones/Signal.js +7 -8
  136. package/lib/component/2d/zones/Signal.js.map +1 -1
  137. package/lib/component/2d/zones/SignalCrosshair.d.ts +2 -2
  138. package/lib/component/2d/zones/SignalCrosshair.d.ts.map +1 -1
  139. package/lib/component/2d/zones/SignalCrosshair.js +1 -2
  140. package/lib/component/2d/zones/SignalCrosshair.js.map +1 -1
  141. package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -1
  142. package/lib/component/2d/zones/SignalsGuideLines.js +32 -18
  143. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  144. package/lib/component/2d/zones/Zone.d.ts.map +1 -1
  145. package/lib/component/2d/zones/Zone.js +12 -11
  146. package/lib/component/2d/zones/Zone.js.map +1 -1
  147. package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts.map +1 -1
  148. package/lib/component/2d/zones/ZonesAssignmentsLabels.js +3 -2
  149. package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
  150. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  151. package/lib/component/EventsTrackers/BrushTracker.js +5 -3
  152. package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
  153. package/lib/component/EventsTrackers/KeysListenerTracker.js +11 -11
  154. package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
  155. package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
  156. package/lib/component/SVGTable.js.map +1 -1
  157. package/lib/component/assignment/AssignmentsContext.d.ts +1 -0
  158. package/lib/component/assignment/AssignmentsContext.d.ts.map +1 -1
  159. package/lib/component/assignment/AssignmentsContext.js +1 -0
  160. package/lib/component/assignment/AssignmentsContext.js.map +1 -1
  161. package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
  162. package/lib/component/context/FilterSyncOptionsContext.d.ts.map +1 -1
  163. package/lib/component/context/FilterSyncOptionsContext.js.map +1 -1
  164. package/lib/component/context/LoggerContext.d.ts.map +1 -1
  165. package/lib/component/context/LoggerContext.js.map +1 -1
  166. package/lib/component/context/PreferencesContext.d.ts +5 -1
  167. package/lib/component/context/PreferencesContext.d.ts.map +1 -1
  168. package/lib/component/context/PreferencesContext.js +3 -3
  169. package/lib/component/context/PreferencesContext.js.map +1 -1
  170. package/lib/component/context/ScaleContext.d.ts +3 -4
  171. package/lib/component/context/ScaleContext.d.ts.map +1 -1
  172. package/lib/component/context/ScaleContext.js.map +1 -1
  173. package/lib/component/context/SortSpectraContext.js +1 -1
  174. package/lib/component/context/SortSpectraContext.js.map +1 -1
  175. package/lib/component/elements/ActionsButtonsPopover.d.ts +8 -1
  176. package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
  177. package/lib/component/elements/ActionsButtonsPopover.js +29 -2
  178. package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
  179. package/lib/component/elements/Alert.js.map +1 -1
  180. package/lib/component/elements/Button.js.map +1 -1
  181. package/lib/component/elements/ContextMenuBluePrint.js.map +1 -1
  182. package/lib/component/elements/D3Axis.js.map +1 -1
  183. package/lib/component/elements/DialogManager.d.ts +3 -4
  184. package/lib/component/elements/DialogManager.d.ts.map +1 -1
  185. package/lib/component/elements/DialogManager.js.map +1 -1
  186. package/lib/component/elements/DraggableDialog.js +0 -2
  187. package/lib/component/elements/DraggableDialog.js.map +1 -1
  188. package/lib/component/elements/EditableColumn.d.ts.map +1 -1
  189. package/lib/component/elements/EditableColumn.js +2 -0
  190. package/lib/component/elements/EditableColumn.js.map +1 -1
  191. package/lib/component/elements/Input.js.map +1 -1
  192. package/lib/component/elements/Input2.d.ts +2 -1
  193. package/lib/component/elements/Input2.d.ts.map +1 -1
  194. package/lib/component/elements/Input2.js.map +1 -1
  195. package/lib/component/elements/InputRange.js.map +1 -1
  196. package/lib/component/elements/MoleculeSelection.js.map +1 -1
  197. package/lib/component/elements/NextPrev.d.ts +0 -1
  198. package/lib/component/elements/NextPrev.d.ts.map +1 -1
  199. package/lib/component/elements/NextPrev.js +5 -21
  200. package/lib/component/elements/NextPrev.js.map +1 -1
  201. package/lib/component/elements/NumberInput2.js.map +1 -1
  202. package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts.map +1 -1
  203. package/lib/component/elements/ReactTable/Elements/EmptyDataRow.js.map +1 -1
  204. package/lib/component/elements/ReactTable/Elements/ReactTableHeader.js.map +1 -1
  205. package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +1 -1
  206. package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts.map +1 -1
  207. package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +2 -3
  208. package/lib/component/elements/ReactTable/Elements/ReactTableRow.js.map +1 -1
  209. package/lib/component/elements/ReactTable/ReactTable.d.ts +4 -4
  210. package/lib/component/elements/ReactTable/ReactTable.d.ts.map +1 -1
  211. package/lib/component/elements/ReactTable/ReactTable.js +3 -5
  212. package/lib/component/elements/ReactTable/ReactTable.js.map +1 -1
  213. package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts.map +1 -1
  214. package/lib/component/elements/ReactTable/utility/addCustomColumn.js +2 -2
  215. package/lib/component/elements/ReactTable/utility/addCustomColumn.js.map +1 -1
  216. package/lib/component/elements/ReactTable/utility/useRowSpan.d.ts +2 -1
  217. package/lib/component/elements/ReactTable/utility/useRowSpan.d.ts.map +1 -1
  218. package/lib/component/elements/ReactTable/utility/useRowSpan.js +5 -1
  219. package/lib/component/elements/ReactTable/utility/useRowSpan.js.map +1 -1
  220. package/lib/component/elements/ReadOnly.js.map +1 -1
  221. package/lib/component/elements/SVGButton.d.ts +2 -2
  222. package/lib/component/elements/SVGButton.d.ts.map +1 -1
  223. package/lib/component/elements/SVGButton.js +2 -1
  224. package/lib/component/elements/SVGButton.js.map +1 -1
  225. package/lib/component/elements/Sections.d.ts.map +1 -1
  226. package/lib/component/elements/Sections.js +1 -2
  227. package/lib/component/elements/Sections.js.map +1 -1
  228. package/lib/component/elements/Select.d.ts +6 -6
  229. package/lib/component/elements/Select.d.ts.map +1 -1
  230. package/lib/component/elements/Select.js +5 -4
  231. package/lib/component/elements/Select.js.map +1 -1
  232. package/lib/component/elements/Select2.d.ts.map +1 -1
  233. package/lib/component/elements/Select2.js.map +1 -1
  234. package/lib/component/elements/Tab/Tab.js.map +1 -1
  235. package/lib/component/elements/Tab/Tabs.d.ts +2 -5
  236. package/lib/component/elements/Tab/Tabs.d.ts.map +1 -1
  237. package/lib/component/elements/Tab/Tabs.js +3 -8
  238. package/lib/component/elements/Tab/Tabs.js.map +1 -1
  239. package/lib/component/elements/TabTitle.js.map +1 -1
  240. package/lib/component/elements/TabsProvider.js.map +1 -1
  241. package/lib/component/elements/ToolbarPopoverItem.d.ts +4 -3
  242. package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
  243. package/lib/component/elements/ToolbarPopoverItem.js +13 -5
  244. package/lib/component/elements/ToolbarPopoverItem.js.map +1 -1
  245. package/lib/component/elements/draggable/useDraggable.d.ts +2 -1
  246. package/lib/component/elements/draggable/useDraggable.d.ts.map +1 -1
  247. package/lib/component/elements/draggable/useDraggable.js +2 -2
  248. package/lib/component/elements/draggable/useDraggable.js.map +1 -1
  249. package/lib/component/elements/dropDownButton/DropDownButton.d.ts +2 -6
  250. package/lib/component/elements/dropDownButton/DropDownButton.d.ts.map +1 -1
  251. package/lib/component/elements/dropDownButton/DropDownButton.js +4 -4
  252. package/lib/component/elements/dropDownButton/DropDownButton.js.map +1 -1
  253. package/lib/component/elements/dropDownButton/DropDownList.d.ts +3 -3
  254. package/lib/component/elements/dropDownButton/DropDownList.d.ts.map +1 -1
  255. package/lib/component/elements/dropDownButton/DropDownList.js +3 -3
  256. package/lib/component/elements/dropDownButton/DropDownList.js.map +1 -1
  257. package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
  258. package/lib/component/elements/export/ExportManager.js +2 -2
  259. package/lib/component/elements/export/ExportManager.js.map +1 -1
  260. package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
  261. package/lib/component/elements/export/units.d.ts.map +1 -1
  262. package/lib/component/elements/export/units.js.map +1 -1
  263. package/lib/component/elements/export/useExportConfigurer.d.ts +2 -2
  264. package/lib/component/elements/export/useExportConfigurer.d.ts.map +1 -1
  265. package/lib/component/elements/export/useExportConfigurer.js.map +1 -1
  266. package/lib/component/elements/pdnd.cjs +3 -1
  267. package/lib/component/elements/pdnd.cjs.map +1 -1
  268. package/lib/component/elements/pdnd.d.cts.map +1 -1
  269. package/lib/component/elements/print/PrintContent.js.map +1 -1
  270. package/lib/component/header/AutoPeakPickingOptionPanel.d.ts.map +1 -1
  271. package/lib/component/header/AutoPeakPickingOptionPanel.js +2 -2
  272. package/lib/component/header/AutoPeakPickingOptionPanel.js.map +1 -1
  273. package/lib/component/header/Header.js.map +1 -1
  274. package/lib/component/header/RangesPickingOptionPanel.js.map +1 -1
  275. package/lib/component/header/Zones2DOptionPanel.js.map +1 -1
  276. package/lib/component/highlight/index.d.ts +2 -18
  277. package/lib/component/highlight/index.d.ts.map +1 -1
  278. package/lib/component/highlight/index.js +1 -18
  279. package/lib/component/highlight/index.js.map +1 -1
  280. package/lib/component/hooks/useActiveNucleusTab.d.ts +2 -0
  281. package/lib/component/hooks/useActiveNucleusTab.d.ts.map +1 -0
  282. package/lib/component/hooks/useActiveNucleusTab.js +6 -0
  283. package/lib/component/hooks/useActiveNucleusTab.js.map +1 -0
  284. package/lib/component/hooks/useActiveSpectrumRangesViewState.d.ts +1 -1
  285. package/lib/component/hooks/useActiveSpectrumRangesViewState.d.ts.map +1 -1
  286. package/lib/component/hooks/useActiveSpectrumRangesViewState.js +20 -16
  287. package/lib/component/hooks/useActiveSpectrumRangesViewState.js.map +1 -1
  288. package/lib/component/hooks/useActiveSpectrumZonesViewState.d.ts.map +1 -1
  289. package/lib/component/hooks/useCheckToolsVisibility.d.ts +2 -2
  290. package/lib/component/hooks/useCheckToolsVisibility.d.ts.map +1 -1
  291. package/lib/component/hooks/useCheckToolsVisibility.js +2 -1
  292. package/lib/component/hooks/useCheckToolsVisibility.js.map +1 -1
  293. package/lib/component/hooks/useCombinedRefs.js +1 -1
  294. package/lib/component/hooks/useCombinedRefs.js.map +1 -1
  295. package/lib/component/hooks/useDialogToggle.d.ts +1 -1
  296. package/lib/component/hooks/useDialogToggle.d.ts.map +1 -1
  297. package/lib/component/hooks/useDialogToggle.js +2 -7
  298. package/lib/component/hooks/useDialogToggle.js.map +1 -1
  299. package/lib/component/hooks/useFormatNumberByNucleus.d.ts.map +1 -1
  300. package/lib/component/hooks/useFormatNumberByNucleus.js +1 -1
  301. package/lib/component/hooks/useFormatNumberByNucleus.js.map +1 -1
  302. package/lib/component/hooks/useResizerStatus.d.ts +2 -2
  303. package/lib/component/hooks/useResizerStatus.d.ts.map +1 -1
  304. package/lib/component/hooks/useResizerStatus.js.map +1 -1
  305. package/lib/component/hooks/useSVGUnitConverter.js.map +1 -1
  306. package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
  307. package/lib/component/hooks/useSaveSettings.js +1 -9
  308. package/lib/component/hooks/useSaveSettings.js.map +1 -1
  309. package/lib/component/hooks/useTableSortBy.d.ts.map +1 -1
  310. package/lib/component/hooks/useTableSortBy.js +10 -16
  311. package/lib/component/hooks/useTableSortBy.js.map +1 -1
  312. package/lib/component/hooks/useTextMetrics.d.ts +4 -0
  313. package/lib/component/hooks/useTextMetrics.d.ts.map +1 -0
  314. package/lib/component/hooks/useTextMetrics.js +21 -0
  315. package/lib/component/hooks/useTextMetrics.js.map +1 -0
  316. package/lib/component/hooks/useToggleSpectraVisibility.d.ts.map +1 -1
  317. package/lib/component/hooks/useToggleSpectraVisibility.js +2 -2
  318. package/lib/component/hooks/useToggleSpectraVisibility.js.map +1 -1
  319. package/lib/component/hooks/useToolsFunctions.d.ts +2 -1
  320. package/lib/component/hooks/useToolsFunctions.d.ts.map +1 -1
  321. package/lib/component/hooks/useToolsFunctions.js.map +1 -1
  322. package/lib/component/hooks/useTriggerNewAssignmentLabel.d.ts.map +1 -1
  323. package/lib/component/hooks/useTriggerNewAssignmentLabel.js.map +1 -1
  324. package/lib/component/hooks/useXScale.d.ts +1 -1
  325. package/lib/component/hooks/useXScale.d.ts.map +1 -1
  326. package/lib/component/hooks/useXYReduce.d.ts +2 -6
  327. package/lib/component/hooks/useXYReduce.d.ts.map +1 -1
  328. package/lib/component/hooks/useXYReduce.js +1 -6
  329. package/lib/component/hooks/useXYReduce.js.map +1 -1
  330. package/lib/component/main/NMRiumViewer.js.map +1 -1
  331. package/lib/component/modal/EditPeakShapeModal.js +2 -2
  332. package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
  333. package/lib/component/modal/ExportAsJcampModal.js.map +1 -1
  334. package/lib/component/modal/ImportPublicationStringModal.js +1 -1
  335. package/lib/component/modal/ImportPublicationStringModal.js.map +1 -1
  336. package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
  337. package/lib/component/modal/LogsHistoryModal.d.ts.map +1 -1
  338. package/lib/component/modal/LogsHistoryModal.js +1 -1
  339. package/lib/component/modal/LogsHistoryModal.js.map +1 -1
  340. package/lib/component/modal/MultipletAnalysisModal.js +2 -0
  341. package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
  342. package/lib/component/modal/PredictSpectraModal.js.map +1 -1
  343. package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
  344. package/lib/component/modal/PublicationStringModal.js +58 -23
  345. package/lib/component/modal/PublicationStringModal.js.map +1 -1
  346. package/lib/component/modal/SaveAsModal.js +3 -4
  347. package/lib/component/modal/SaveAsModal.js.map +1 -1
  348. package/lib/component/modal/aboutUs/AboutUsModal.d.ts.map +1 -1
  349. package/lib/component/modal/aboutUs/AboutUsModal.js +5 -11
  350. package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
  351. package/lib/component/modal/changeSum/ChangeSumModalContents.d.ts.map +1 -1
  352. package/lib/component/modal/changeSum/ChangeSumModalContents.js +2 -0
  353. package/lib/component/modal/changeSum/ChangeSumModalContents.js.map +1 -1
  354. package/lib/component/modal/changeSum/SelectMolecule.d.ts.map +1 -1
  355. package/lib/component/modal/changeSum/SelectMolecule.js +2 -0
  356. package/lib/component/modal/changeSum/SelectMolecule.js.map +1 -1
  357. package/lib/component/modal/editRange/EditRangeModal.d.ts.map +1 -1
  358. package/lib/component/modal/editRange/EditRangeModal.js +2 -2
  359. package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
  360. package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts +2 -1
  361. package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
  362. package/lib/component/modal/editRange/forms/components/DeltaInput.js.map +1 -1
  363. package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
  364. package/lib/component/modal/editRange/forms/components/NewSignalTab.js +2 -2
  365. package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
  366. package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -1
  367. package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
  368. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.d.ts.map +1 -1
  369. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +1 -1
  370. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
  371. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
  372. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
  373. package/lib/component/modal/editZone/EditZoneModal.d.ts +5 -0
  374. package/lib/component/modal/editZone/EditZoneModal.d.ts.map +1 -1
  375. package/lib/component/modal/editZone/EditZoneModal.js.map +1 -1
  376. package/lib/component/modal/editZone/SignalsForm.d.ts.map +1 -1
  377. package/lib/component/modal/editZone/SignalsForm.js +6 -2
  378. package/lib/component/modal/editZone/SignalsForm.js.map +1 -1
  379. package/lib/component/modal/metaImportation/MetaImportationModal.js +1 -0
  380. package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
  381. package/lib/component/modal/setting/GeneralSettings.d.ts.map +1 -1
  382. package/lib/component/modal/setting/GeneralSettings.js +15 -6
  383. package/lib/component/modal/setting/GeneralSettings.js.map +1 -1
  384. package/lib/component/modal/setting/WorkspaceItem.js.map +1 -1
  385. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts.map +1 -1
  386. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +2 -1
  387. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js.map +1 -1
  388. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.d.ts.map +1 -1
  389. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +19 -10
  390. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
  391. package/lib/component/modal/setting/settings-tabs/ExportTabContent.js.map +1 -1
  392. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.d.ts.map +1 -1
  393. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js +2 -1
  394. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js.map +1 -1
  395. package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.d.ts.map +1 -1
  396. package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js.map +1 -1
  397. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts.map +1 -1
  398. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +2 -1
  399. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +1 -1
  400. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.d.ts +1 -2
  401. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.d.ts.map +1 -1
  402. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js +3 -3
  403. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js.map +1 -1
  404. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts.map +1 -1
  405. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +2 -1
  406. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +1 -1
  407. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.d.ts.map +1 -1
  408. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js +5 -5
  409. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js.map +1 -1
  410. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.d.ts +1 -2
  411. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.d.ts.map +1 -1
  412. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js +1 -2
  413. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js.map +1 -1
  414. package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts.map +1 -1
  415. package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js.map +1 -1
  416. package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +1 -1
  417. package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js.map +1 -1
  418. package/lib/component/panels/IntegralsPanel/IntegralPanel.js.map +1 -1
  419. package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts.map +1 -1
  420. package/lib/component/panels/IntegralsPanel/IntegralTable.js +4 -3
  421. package/lib/component/panels/IntegralsPanel/IntegralTable.js.map +1 -1
  422. package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js.map +1 -1
  423. package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.d.ts.map +1 -1
  424. package/lib/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.js.map +1 -1
  425. package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js.map +1 -1
  426. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts.map +1 -1
  427. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +4 -2
  428. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js.map +1 -1
  429. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js.map +1 -1
  430. package/lib/component/panels/MoleculesPanel/MoleculeHeader.js.map +1 -1
  431. package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts.map +1 -1
  432. package/lib/component/panels/MoleculesPanel/MoleculePanel.js +2 -0
  433. package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
  434. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
  435. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +34 -7
  436. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
  437. package/lib/component/panels/MoleculesPanel/Utilities.d.ts.map +1 -1
  438. package/lib/component/panels/MoleculesPanel/Utilities.js +8 -2
  439. package/lib/component/panels/MoleculesPanel/Utilities.js.map +1 -1
  440. package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts.map +1 -1
  441. package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +3 -6
  442. package/lib/component/panels/MoleculesPanel/useAtomAssignment.js.map +1 -1
  443. package/lib/component/panels/Panels.d.ts +2 -3
  444. package/lib/component/panels/Panels.d.ts.map +1 -1
  445. package/lib/component/panels/Panels.js +1 -1
  446. package/lib/component/panels/Panels.js.map +1 -1
  447. package/lib/component/panels/PanelsBar.js.map +1 -1
  448. package/lib/component/panels/PeaksPanel/PeaksPanel.js +4 -4
  449. package/lib/component/panels/PeaksPanel/PeaksPanel.js.map +1 -1
  450. package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
  451. package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
  452. package/lib/component/panels/PeaksPanel/PeaksTable.js +2 -1
  453. package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
  454. package/lib/component/panels/RangesPanel/RangesHeader.js +2 -2
  455. package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
  456. package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
  457. package/lib/component/panels/RangesPanel/RangesPreferences.js.map +1 -1
  458. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
  459. package/lib/component/panels/RangesPanel/RangesTableRow.js +4 -4
  460. package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
  461. package/lib/component/panels/RangesPanel/TableColumns/CouplingColumn.js.map +1 -1
  462. package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.js.map +1 -1
  463. package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.d.ts.map +1 -1
  464. package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js +1 -2
  465. package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.js.map +1 -1
  466. package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js.map +1 -1
  467. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
  468. package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.d.ts.map +1 -1
  469. package/lib/component/panels/RangesPanel/hooks/useEditRangeModal.js.map +1 -1
  470. package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts.map +1 -1
  471. package/lib/component/panels/RangesPanel/hooks/useMapRanges.js.map +1 -1
  472. package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js +1 -1
  473. package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js.map +1 -1
  474. package/lib/component/panels/SpectraPanel/SpectraPreferences.d.ts +1 -1
  475. package/lib/component/panels/SpectraPanel/SpectraPreferences.d.ts.map +1 -1
  476. package/lib/component/panels/SpectraPanel/SpectraPreferences.js +3 -3
  477. package/lib/component/panels/SpectraPanel/SpectraPreferences.js.map +1 -1
  478. package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
  479. package/lib/component/panels/SpectraPanel/SpectraTable.js +16 -17
  480. package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
  481. package/lib/component/panels/SpectraPanel/SpectraTabs.d.ts.map +1 -1
  482. package/lib/component/panels/SpectraPanel/SpectraTabs.js +1 -3
  483. package/lib/component/panels/SpectraPanel/SpectraTabs.js.map +1 -1
  484. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
  485. package/lib/component/panels/SpectraPanel/base/ShowHideSpectrumButton.js.map +1 -1
  486. package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.d.ts.map +1 -1
  487. package/lib/component/panels/SpectraPanel/base/SpectraColumnsManager.js.map +1 -1
  488. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
  489. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
  490. package/lib/component/panels/SpectraPanel/base/setting/processSnapPlot.js.map +1 -1
  491. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts +3 -2
  492. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts.map +1 -1
  493. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +2 -1
  494. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js.map +1 -1
  495. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts +9 -6
  496. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts.map +1 -1
  497. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +10 -11
  498. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js.map +1 -1
  499. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts +18 -10
  500. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts.map +1 -1
  501. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +2 -2
  502. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js.map +1 -1
  503. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +3 -2
  504. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts.map +1 -1
  505. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +10 -11
  506. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js.map +1 -1
  507. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js.map +1 -1
  508. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.d.ts.map +1 -1
  509. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +2 -5
  510. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js.map +1 -1
  511. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js.map +1 -1
  512. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.d.ts.map +1 -1
  513. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +2 -2
  514. package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
  515. package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
  516. package/lib/component/panels/SummaryPanel/SummaryPanel.js +8 -9
  517. package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
  518. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
  519. package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
  520. package/lib/component/panels/ZonesPanel/TableColumns/ActionsColumn.js.map +1 -1
  521. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
  522. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js.map +1 -1
  523. package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
  524. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js.map +1 -1
  525. package/lib/component/panels/ZonesPanel/ZonesPanel.d.ts.map +1 -1
  526. package/lib/component/panels/ZonesPanel/ZonesPanel.js +4 -5
  527. package/lib/component/panels/ZonesPanel/ZonesPanel.js.map +1 -1
  528. package/lib/component/panels/ZonesPanel/ZonesPreferences.js.map +1 -1
  529. package/lib/component/panels/ZonesPanel/ZonesTable.js.map +1 -1
  530. package/lib/component/panels/ZonesPanel/ZonesTableRow.js.map +1 -1
  531. package/lib/component/panels/ZonesPanel/hooks/useMapZones.d.ts.map +1 -1
  532. package/lib/component/panels/ZonesPanel/hooks/useMapZones.js.map +1 -1
  533. package/lib/component/panels/accordionItems.d.ts.map +1 -1
  534. package/lib/component/panels/accordionItems.js +1 -2
  535. package/lib/component/panels/accordionItems.js.map +1 -1
  536. package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
  537. package/lib/component/panels/databasePanel/DatabasePanel.js +4 -1
  538. package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
  539. package/lib/component/panels/databasePanel/DatabasePreferences.js.map +1 -1
  540. package/lib/component/panels/databasePanel/DatabaseSearchOptions.js.map +1 -1
  541. package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
  542. package/lib/component/panels/databasePanel/DatabaseTable.js +6 -4
  543. package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
  544. package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +1 -1
  545. package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts.map +1 -1
  546. package/lib/component/panels/extra/utilities/MultiplicityUtilities.js.map +1 -1
  547. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js.map +1 -1
  548. package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.d.ts.map +1 -1
  549. package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.js.map +1 -1
  550. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
  551. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
  552. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +3 -1
  553. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
  554. package/lib/component/panels/filtersPanel/Filters/PhaseCorrectionOptionsPanel.js.map +1 -1
  555. package/lib/component/panels/filtersPanel/Filters/PhaseCorrectionTwoDimensionsOptionsPanel.js.map +1 -1
  556. package/lib/component/panels/filtersPanel/Filters/ShiftOptionsPanel.js.map +1 -1
  557. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +1 -1
  558. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
  559. package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js.map +1 -1
  560. package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js.map +1 -1
  561. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
  562. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js.map +1 -1
  563. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.d.ts.map +1 -1
  564. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js +10 -10
  565. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js.map +1 -1
  566. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts.map +1 -1
  567. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js +7 -5
  568. package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
  569. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts +6 -6
  570. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
  571. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +4 -3
  572. package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
  573. package/lib/component/panels/filtersPanel/Filters/index.d.ts +2 -26
  574. package/lib/component/panels/filtersPanel/Filters/index.d.ts.map +1 -1
  575. package/lib/component/panels/filtersPanel/Filters/index.js +1 -0
  576. package/lib/component/panels/filtersPanel/Filters/index.js.map +1 -1
  577. package/lib/component/panels/informationPanel/InformationEditionModal.d.ts.map +1 -1
  578. package/lib/component/panels/informationPanel/InformationEditionModal.js.map +1 -1
  579. package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js.map +1 -1
  580. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts.map +1 -1
  581. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js +3 -2
  582. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
  583. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js.map +1 -1
  584. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.d.ts.map +1 -1
  585. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js +9 -6
  586. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js.map +1 -1
  587. package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.d.ts.map +1 -1
  588. package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js.map +1 -1
  589. package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.d.ts.map +1 -1
  590. package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.js +1 -1
  591. package/lib/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.js.map +1 -1
  592. package/lib/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.d.ts.map +1 -1
  593. package/lib/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.js +2 -0
  594. package/lib/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.js.map +1 -1
  595. package/lib/component/panels/multipleAnalysisPanel/preferences/index.d.ts.map +1 -1
  596. package/lib/component/panels/multipleAnalysisPanel/preferences/index.js +3 -1
  597. package/lib/component/panels/multipleAnalysisPanel/preferences/index.js.map +1 -1
  598. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js.map +1 -1
  599. package/lib/component/panels/predictionPanel/PredictionPreferences.js.map +1 -1
  600. package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js.map +1 -1
  601. package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js.map +1 -1
  602. package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js.map +1 -1
  603. package/lib/component/panels/spectrumSimulation/SpinSystemTable.d.ts.map +1 -1
  604. package/lib/component/panels/spectrumSimulation/SpinSystemTable.js.map +1 -1
  605. package/lib/component/reducer/Reducer.d.ts.map +1 -1
  606. package/lib/component/reducer/Reducer.js +11 -10
  607. package/lib/component/reducer/Reducer.js.map +1 -1
  608. package/lib/component/reducer/actions/DomainActions.d.ts +7 -6
  609. package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
  610. package/lib/component/reducer/actions/DomainActions.js +19 -19
  611. package/lib/component/reducer/actions/DomainActions.js.map +1 -1
  612. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  613. package/lib/component/reducer/actions/FiltersActions.js +12 -11
  614. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  615. package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
  616. package/lib/component/reducer/actions/InsetActions.js +12 -11
  617. package/lib/component/reducer/actions/InsetActions.js.map +1 -1
  618. package/lib/component/reducer/actions/IntegralsActions.d.ts.map +1 -1
  619. package/lib/component/reducer/actions/IntegralsActions.js +3 -3
  620. package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
  621. package/lib/component/reducer/actions/LoadActions.d.ts.map +1 -1
  622. package/lib/component/reducer/actions/LoadActions.js +3 -0
  623. package/lib/component/reducer/actions/LoadActions.js.map +1 -1
  624. package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
  625. package/lib/component/reducer/actions/MoleculeActions.js +2 -1
  626. package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
  627. package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
  628. package/lib/component/reducer/actions/PeaksActions.js +5 -4
  629. package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
  630. package/lib/component/reducer/actions/PreferencesActions.js +1 -1
  631. package/lib/component/reducer/actions/PreferencesActions.js.map +1 -1
  632. package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
  633. package/lib/component/reducer/actions/RangesActions.js +2 -2
  634. package/lib/component/reducer/actions/RangesActions.js.map +1 -1
  635. package/lib/component/reducer/actions/SpectraActions.d.ts +1 -1
  636. package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
  637. package/lib/component/reducer/actions/SpectraActions.js +13 -6
  638. package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
  639. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  640. package/lib/component/reducer/actions/ToolsActions.js +13 -24
  641. package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
  642. package/lib/component/reducer/actions/utilities/deepReplaceDiaIDs.d.ts +1 -1
  643. package/lib/component/reducer/actions/utilities/deepReplaceDiaIDs.d.ts.map +1 -1
  644. package/lib/component/reducer/actions/utilities/deepReplaceDiaIDs.js.map +1 -1
  645. package/lib/component/reducer/helper/Zoom1DManager.d.ts +2 -8
  646. package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
  647. package/lib/component/reducer/helper/Zoom1DManager.js +0 -6
  648. package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
  649. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
  650. package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
  651. package/lib/component/reducer/helper/get2DRange.d.ts.map +1 -1
  652. package/lib/component/reducer/helper/get2DRange.js.map +1 -1
  653. package/lib/component/reducer/helper/getActiveSpectraAsObject.js.map +1 -1
  654. package/lib/component/reducer/helper/getRange.d.ts.map +1 -1
  655. package/lib/component/reducer/helper/getRange.js.map +1 -1
  656. package/lib/component/reducer/helper/getSpectrum.d.ts +6 -3
  657. package/lib/component/reducer/helper/getSpectrum.d.ts.map +1 -1
  658. package/lib/component/reducer/helper/getSpectrum.js +1 -0
  659. package/lib/component/reducer/helper/getSpectrum.js.map +1 -1
  660. package/lib/component/reducer/helper/setRangesViewProperty.d.ts.map +1 -1
  661. package/lib/component/reducer/helper/setRangesViewProperty.js +5 -5
  662. package/lib/component/reducer/helper/setRangesViewProperty.js.map +1 -1
  663. package/lib/component/reducer/preferences/actions/changeExportAcsSettings.d.ts +4 -0
  664. package/lib/component/reducer/preferences/actions/changeExportAcsSettings.d.ts.map +1 -0
  665. package/lib/component/reducer/preferences/actions/changeExportAcsSettings.js +10 -0
  666. package/lib/component/reducer/preferences/actions/changeExportAcsSettings.js.map +1 -0
  667. package/lib/component/reducer/preferences/actions/initPreferences.d.ts.map +1 -1
  668. package/lib/component/reducer/preferences/actions/initPreferences.js.map +1 -1
  669. package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +1 -1
  670. package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
  671. package/lib/component/reducer/preferences/actions/matrixGeneration.js +1 -1
  672. package/lib/component/reducer/preferences/actions/matrixGeneration.js.map +1 -1
  673. package/lib/component/reducer/preferences/actions/setPanelsPreferences.d.ts +2 -2
  674. package/lib/component/reducer/preferences/actions/setPanelsPreferences.d.ts.map +1 -1
  675. package/lib/component/reducer/preferences/actions/setPanelsPreferences.js.map +1 -1
  676. package/lib/component/reducer/preferences/actions/setPreferences.d.ts.map +1 -1
  677. package/lib/component/reducer/preferences/actions/setPreferences.js.map +1 -1
  678. package/lib/component/reducer/preferences/actions/setWorkspace.js.map +1 -1
  679. package/lib/component/reducer/preferences/actions/togglePanel.d.ts.map +1 -1
  680. package/lib/component/reducer/preferences/actions/togglePanel.js +6 -6
  681. package/lib/component/reducer/preferences/actions/togglePanel.js.map +1 -1
  682. package/lib/component/reducer/preferences/preferencesReducer.d.ts +11 -8
  683. package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
  684. package/lib/component/reducer/preferences/preferencesReducer.js +3 -0
  685. package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
  686. package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +2 -1
  687. package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts.map +1 -1
  688. package/lib/component/reducer/preferences/utilities/initWorkspace.js.map +1 -1
  689. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +2 -2
  690. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
  691. package/lib/component/reducer/preferences/utilities/mapWorkspaces.js.map +1 -1
  692. package/lib/component/toolbar/ToolBar.js +2 -2
  693. package/lib/component/toolbar/ToolBar.js.map +1 -1
  694. package/lib/component/toolbar/ToolTypes.d.ts +7 -2
  695. package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
  696. package/lib/component/toolbar/ToolTypes.js +0 -42
  697. package/lib/component/toolbar/ToolTypes.js.map +1 -1
  698. package/lib/component/toolbar/toolbarMenu.d.ts.map +1 -1
  699. package/lib/component/toolbar/toolbarMenu.js +25 -17
  700. package/lib/component/toolbar/toolbarMenu.js.map +1 -1
  701. package/lib/component/utility/Events.d.ts.map +1 -1
  702. package/lib/component/utility/Events.js.map +1 -1
  703. package/lib/component/utility/LocalStorage.d.ts.map +1 -1
  704. package/lib/component/utility/LocalStorage.js.map +1 -1
  705. package/lib/component/utility/export.d.ts +1 -1
  706. package/lib/component/utility/export.d.ts.map +1 -1
  707. package/lib/component/utility/export.js +8 -8
  708. package/lib/component/utility/export.js.map +1 -1
  709. package/lib/component/utility/extractChemicalElement.js +1 -1
  710. package/lib/component/utility/extractChemicalElement.js.map +1 -1
  711. package/lib/component/utility/formatNumber.d.ts +1 -1
  712. package/lib/component/utility/formatNumber.d.ts.map +1 -1
  713. package/lib/component/utility/forwardRef.d.ts +3 -0
  714. package/lib/component/utility/forwardRef.d.ts.map +1 -0
  715. package/lib/component/utility/forwardRef.js +6 -0
  716. package/lib/component/utility/forwardRef.js.map +1 -0
  717. package/lib/component/utility/getSpectraObjectPaths.d.ts +1 -1
  718. package/lib/component/utility/getSpectraObjectPaths.js.map +1 -1
  719. package/lib/component/utility/getUniqueNuclei.js.map +1 -1
  720. package/lib/component/utility/groupByInfoKey.d.ts +4 -0
  721. package/lib/component/utility/groupByInfoKey.d.ts.map +1 -0
  722. package/lib/component/utility/{GroupByInfoKey.js → groupByInfoKey.js} +8 -6
  723. package/lib/component/utility/groupByInfoKey.js.map +1 -0
  724. package/lib/component/utility/isHomoNuclear.d.ts +2 -0
  725. package/lib/component/utility/isHomoNuclear.d.ts.map +1 -0
  726. package/lib/component/utility/isHomoNuclear.js +11 -0
  727. package/lib/component/utility/isHomoNuclear.js.map +1 -0
  728. package/lib/component/utility/nucleusToString.d.ts.map +1 -1
  729. package/lib/component/utility/nucleusToString.js.map +1 -1
  730. package/lib/component/utility/stackOverlappingLabels.js.map +1 -1
  731. package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
  732. package/lib/component/workspaces/workspaceDefaultProperties.js +16 -0
  733. package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
  734. package/lib/data/PredictionManager.d.ts +1 -1
  735. package/lib/data/PredictionManager.d.ts.map +1 -1
  736. package/lib/data/PredictionManager.js +3 -2
  737. package/lib/data/PredictionManager.js.map +1 -1
  738. package/lib/data/SpectraManager.d.ts +2 -7
  739. package/lib/data/SpectraManager.d.ts.map +1 -1
  740. package/lib/data/SpectraManager.js +11 -11
  741. package/lib/data/SpectraManager.js.map +1 -1
  742. package/lib/data/constants/References.d.ts +4 -1
  743. package/lib/data/constants/References.d.ts.map +1 -1
  744. package/lib/data/constants/References.js +24 -22
  745. package/lib/data/constants/References.js.map +1 -1
  746. package/lib/data/data1d/Spectrum1D/generateJGraphData.js +2 -1
  747. package/lib/data/data1d/Spectrum1D/generateJGraphData.js.map +1 -1
  748. package/lib/data/data1d/Spectrum1D/get1DColor.d.ts.map +1 -1
  749. package/lib/data/data1d/Spectrum1D/get1DColor.js +2 -2
  750. package/lib/data/data1d/Spectrum1D/get1DColor.js.map +1 -1
  751. package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts.map +1 -1
  752. package/lib/data/data1d/Spectrum1D/getReferenceShift.js +3 -3
  753. package/lib/data/data1d/Spectrum1D/getReferenceShift.js.map +1 -1
  754. package/lib/data/data1d/Spectrum1D/isRangeAssigned.d.ts +4 -0
  755. package/lib/data/data1d/Spectrum1D/isRangeAssigned.d.ts.map +1 -1
  756. package/lib/data/data1d/Spectrum1D/isRangeAssigned.js +1 -1
  757. package/lib/data/data1d/Spectrum1D/isRangeAssigned.js.map +1 -1
  758. package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +3 -3
  759. package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts.map +1 -1
  760. package/lib/data/data1d/Spectrum1D/isSpectrum1D.js +1 -1
  761. package/lib/data/data1d/Spectrum1D/isSpectrum1D.js.map +1 -1
  762. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts.map +1 -1
  763. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js.map +1 -1
  764. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js.map +1 -1
  765. package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts.map +1 -1
  766. package/lib/data/data1d/Spectrum1D/ranges/createRange.js +1 -0
  767. package/lib/data/data1d/Spectrum1D/ranges/createRange.js.map +1 -1
  768. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js.map +1 -1
  769. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.d.ts.map +1 -1
  770. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js +2 -0
  771. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.map +1 -1
  772. package/lib/data/data1d/database.js.map +1 -1
  773. package/lib/data/data1d/multipleSpectraAnalysis.d.ts +9 -15
  774. package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
  775. package/lib/data/data1d/multipleSpectraAnalysis.js +30 -19
  776. package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
  777. package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
  778. package/lib/data/data2d/Spectrum2D/contours.js +2 -0
  779. package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
  780. package/lib/data/data2d/Spectrum2D/get2DColor.d.ts.map +1 -1
  781. package/lib/data/data2d/Spectrum2D/get2DColor.js +2 -2
  782. package/lib/data/data2d/Spectrum2D/get2DColor.js.map +1 -1
  783. package/lib/data/data2d/Spectrum2D/getMissingProjection.js.map +1 -1
  784. package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
  785. package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +1 -1
  786. package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +1 -1
  787. package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +1 -1
  788. package/lib/data/data2d/Spectrum2D/isSpectrum2D.js.map +1 -1
  789. package/lib/data/data2d/Spectrum2D/zones/detectZones.d.ts.map +1 -1
  790. package/lib/data/data2d/Spectrum2D/zones/detectZones.js.map +1 -1
  791. package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
  792. package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.js.map +1 -1
  793. package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.js.map +1 -1
  794. package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
  795. package/lib/data/getFilterLabel.js +8 -2
  796. package/lib/data/getFilterLabel.js.map +1 -1
  797. package/lib/data/initiateFilters.d.ts +1 -2
  798. package/lib/data/initiateFilters.d.ts.map +1 -1
  799. package/lib/data/initiateFilters.js.map +1 -1
  800. package/lib/data/matrixGeneration.js.map +1 -1
  801. package/lib/data/molecules/MoleculeManager.d.ts +6 -0
  802. package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
  803. package/lib/data/molecules/MoleculeManager.js +6 -0
  804. package/lib/data/molecules/MoleculeManager.js.map +1 -1
  805. package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
  806. package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
  807. package/lib/data/parseMeta/mapErrors.d.ts +1 -1
  808. package/lib/data/parseMeta/mapErrors.d.ts.map +1 -1
  809. package/lib/data/parseMeta/mapErrors.js.map +1 -1
  810. package/lib/data/types/data1d/index.js +1 -1
  811. package/lib/data/types/data1d/index.js.map +1 -1
  812. package/lib/data/utilities/FindUtilities.d.ts.map +1 -1
  813. package/lib/data/utilities/FindUtilities.js +5 -0
  814. package/lib/data/utilities/FindUtilities.js.map +1 -1
  815. package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
  816. package/lib/data/utilities/RangeUtilities.js.map +1 -1
  817. package/lib/data/utilities/ZoneUtilities.d.ts +1 -1
  818. package/lib/data/utilities/ZoneUtilities.d.ts.map +1 -1
  819. package/lib/data/utilities/ZoneUtilities.js.map +1 -1
  820. package/lib/data/utilities/convertSpectraListToObject.d.ts.map +1 -1
  821. package/lib/data/utilities/convertSpectraListToObject.js.map +1 -1
  822. package/lib/data/utilities/getAtom.js +1 -1
  823. package/lib/data/utilities/getAtom.js.map +1 -1
  824. package/lib/data/utilities/getAtomsFromMF.js.map +1 -1
  825. package/lib/data/utilities/removeByPaths.js.map +1 -1
  826. package/lib/utils/clipboard/clipboardComponents.d.ts.map +1 -1
  827. package/lib/utils/clipboard/clipboardComponents.js +12 -4
  828. package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
  829. package/lib/utils/clipboard/clipboardHooks.d.ts.map +1 -1
  830. package/lib/utils/clipboard/clipboardHooks.js +2 -0
  831. package/lib/utils/clipboard/clipboardHooks.js.map +1 -1
  832. package/lib/versionInfo.js +1 -1
  833. package/package.json +62 -53
  834. package/src/component/1d/BrushTracker1D.tsx +8 -8
  835. package/src/component/1d/ExclusionZoneAnnotation.tsx +3 -3
  836. package/src/component/1d/FloatPublicationString.tsx +14 -18
  837. package/src/component/1d/FloatingRanges.tsx +4 -10
  838. package/src/component/1d/FooterBanner.tsx +2 -2
  839. package/src/component/1d/Line.tsx +2 -2
  840. package/src/component/1d/PredictionErrorsNotations.tsx +2 -2
  841. package/src/component/1d/SimilarityTree.tsx +2 -2
  842. package/src/component/1d/XAxis1D.tsx +3 -3
  843. package/src/component/1d/database/DatabaseElements.tsx +2 -5
  844. package/src/component/1d/database/DatabaseSpectrum.tsx +3 -6
  845. package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +3 -6
  846. package/src/component/1d/inset/DraggableInset.tsx +155 -72
  847. package/src/component/1d/inset/InsetViewerRoot.tsx +2 -1
  848. package/src/component/1d/integral/IntegralResizable.tsx +3 -3
  849. package/src/component/1d/jCouplingGraph/JGraph.tsx +1 -1
  850. package/src/component/1d/jCouplingGraph/JGraphContext.tsx +1 -1
  851. package/src/component/1d/jCouplingGraph/JGraphVerticalAxis.tsx +1 -1
  852. package/src/component/1d/matrix/Boxplot.tsx +10 -9
  853. package/src/component/1d/matrix/Stocsy.tsx +11 -8
  854. package/src/component/1d/multiAnalysis/AnalysisRange.tsx +1 -1
  855. package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +2 -2
  856. package/src/component/1d/peaks/PeakAnnotations.tsx +147 -22
  857. package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +7 -10
  858. package/src/component/1d/peaks/PeakEditionManager.tsx +12 -6
  859. package/src/component/1d/peaks/Peaks.tsx +42 -36
  860. package/src/component/1d/ranges/Atoms.tsx +5 -1
  861. package/src/component/1d/ranges/Range.tsx +4 -3
  862. package/src/component/1d/ranges/Ranges.tsx +13 -14
  863. package/src/component/1d/tool/BaseLineZones.tsx +1 -1
  864. package/src/component/1d/tool/PeakPointer.tsx +8 -7
  865. package/src/component/1d/utilities/intersectionResolver.ts +11 -11
  866. package/src/component/1d/utilities/scale.ts +1 -1
  867. package/src/component/1d-2d/FieldEdition.tsx +7 -11
  868. package/src/component/1d-2d/components/ClipPathContainer.tsx +3 -1
  869. package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +2 -5
  870. package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +1 -1
  871. package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +5 -6
  872. package/src/component/1d-2d/tools/CrossLinePointer.tsx +0 -1
  873. package/src/component/2d/1d-tracer/Left1DChart.tsx +2 -2
  874. package/src/component/2d/1d-tracer/Top1DChart.tsx +2 -2
  875. package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +1 -1
  876. package/src/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.tsx +2 -5
  877. package/src/component/2d/BrushTracker2D.tsx +3 -2
  878. package/src/component/2d/FooterBanner.tsx +12 -6
  879. package/src/component/2d/SignalDeltaLine.tsx +5 -4
  880. package/src/component/2d/tools/XYLabelPointer.tsx +11 -5
  881. package/src/component/2d/utilities/DimensionLayout.ts +14 -14
  882. package/src/component/2d/utilities/extractSpectrumSignals.ts +2 -0
  883. package/src/component/2d/utilities/scale.ts +8 -4
  884. package/src/component/2d/zones/Signal.tsx +16 -21
  885. package/src/component/2d/zones/SignalCrosshair.tsx +1 -3
  886. package/src/component/2d/zones/SignalsGuideLines.tsx +72 -26
  887. package/src/component/2d/zones/Zone.tsx +23 -18
  888. package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +5 -6
  889. package/src/component/EventsTrackers/BrushTracker.tsx +6 -6
  890. package/src/component/EventsTrackers/KeysListenerTracker.tsx +15 -15
  891. package/src/component/EventsTrackers/MouseTracker.tsx +2 -2
  892. package/src/component/SVGTable.tsx +3 -3
  893. package/src/component/assignment/AssignmentsContext.ts +2 -0
  894. package/src/component/assignment/utilities/getAssignments.ts +1 -1
  895. package/src/component/context/FilterSyncOptionsContext.tsx +2 -2
  896. package/src/component/context/LoggerContext.tsx +2 -2
  897. package/src/component/context/PreferencesContext.tsx +9 -4
  898. package/src/component/context/ScaleContext.tsx +3 -2
  899. package/src/component/context/SortSpectraContext.tsx +2 -2
  900. package/src/component/elements/ActionsButtonsPopover.tsx +64 -4
  901. package/src/component/elements/Alert.tsx +1 -1
  902. package/src/component/elements/Button.tsx +1 -1
  903. package/src/component/elements/ContextMenuBluePrint.tsx +2 -2
  904. package/src/component/elements/D3Axis.tsx +1 -1
  905. package/src/component/elements/DialogManager.tsx +3 -2
  906. package/src/component/elements/DraggableDialog.tsx +0 -2
  907. package/src/component/elements/EditableColumn.tsx +3 -1
  908. package/src/component/elements/Input.tsx +2 -2
  909. package/src/component/elements/Input2.tsx +8 -14
  910. package/src/component/elements/InputRange.tsx +3 -3
  911. package/src/component/elements/MoleculeSelection.tsx +1 -1
  912. package/src/component/elements/NextPrev.tsx +5 -29
  913. package/src/component/elements/NumberInput2.tsx +2 -2
  914. package/src/component/elements/ReactTable/Elements/EmptyDataRow.tsx +1 -1
  915. package/src/component/elements/ReactTable/Elements/ReactTableHeader.tsx +2 -2
  916. package/src/component/elements/ReactTable/Elements/ReactTableRow.tsx +4 -7
  917. package/src/component/elements/ReactTable/ReactTable.tsx +11 -14
  918. package/src/component/elements/ReactTable/utility/addCustomColumn.tsx +4 -3
  919. package/src/component/elements/ReactTable/utility/useRowSpan.ts +15 -9
  920. package/src/component/elements/ReadOnly.tsx +1 -1
  921. package/src/component/elements/SVGButton.tsx +11 -9
  922. package/src/component/elements/Sections.tsx +2 -4
  923. package/src/component/elements/Select.tsx +17 -18
  924. package/src/component/elements/Select2.tsx +1 -1
  925. package/src/component/elements/Tab/Tab.tsx +3 -3
  926. package/src/component/elements/Tab/Tabs.tsx +6 -9
  927. package/src/component/elements/TabTitle.tsx +1 -1
  928. package/src/component/elements/TabsProvider.tsx +1 -1
  929. package/src/component/elements/ToolbarPopoverItem.tsx +44 -9
  930. package/src/component/elements/draggable/useDraggable.ts +9 -9
  931. package/src/component/elements/dropDownButton/DropDownButton.tsx +6 -16
  932. package/src/component/elements/dropDownButton/DropDownList.tsx +5 -15
  933. package/src/component/elements/export/ExportManager.tsx +6 -3
  934. package/src/component/elements/export/ExportOptionsModal.tsx +2 -2
  935. package/src/component/elements/export/units.ts +1 -1
  936. package/src/component/elements/export/useExportConfigurer.tsx +3 -3
  937. package/src/component/elements/pdnd.cts +3 -1
  938. package/src/component/elements/print/PrintContent.tsx +1 -1
  939. package/src/component/header/AutoPeakPickingOptionPanel.tsx +3 -2
  940. package/src/component/header/Header.tsx +1 -1
  941. package/src/component/header/RangesPickingOptionPanel.tsx +1 -1
  942. package/src/component/header/Zones2DOptionPanel.tsx +2 -2
  943. package/src/component/highlight/index.tsx +18 -22
  944. package/src/component/hooks/useActiveNucleusTab.ts +10 -0
  945. package/src/component/hooks/useActiveSpectrumRangesViewState.ts +24 -16
  946. package/src/component/hooks/useActiveSpectrumZonesViewState.ts +1 -1
  947. package/src/component/hooks/useCheckToolsVisibility.ts +7 -4
  948. package/src/component/hooks/useCombinedRefs.ts +1 -1
  949. package/src/component/hooks/useDialogToggle.ts +10 -8
  950. package/src/component/hooks/useFormatNumberByNucleus.ts +4 -3
  951. package/src/component/hooks/useIntegralPath.ts +1 -1
  952. package/src/component/hooks/useResizerStatus.ts +2 -3
  953. package/src/component/hooks/useSVGUnitConverter.ts +1 -1
  954. package/src/component/hooks/useSaveSettings.tsx +3 -11
  955. package/src/component/hooks/useTableSortBy.tsx +15 -22
  956. package/src/component/hooks/useTextMetrics.ts +27 -0
  957. package/src/component/hooks/useToggleSpectraVisibility.tsx +3 -7
  958. package/src/component/hooks/useToolsFunctions.ts +2 -2
  959. package/src/component/hooks/useTriggerNewAssignmentLabel.ts +1 -1
  960. package/src/component/hooks/useXScale.ts +1 -1
  961. package/src/component/hooks/useXYReduce.ts +3 -9
  962. package/src/component/main/NMRiumViewer.tsx +1 -1
  963. package/src/component/modal/EditPeakShapeModal.tsx +4 -8
  964. package/src/component/modal/ExportAsJcampModal.tsx +1 -1
  965. package/src/component/modal/ImportPublicationStringModal.tsx +10 -6
  966. package/src/component/modal/LoadJCAMPModal.tsx +1 -1
  967. package/src/component/modal/LogsHistoryModal.tsx +6 -5
  968. package/src/component/modal/MultipletAnalysisModal.tsx +3 -1
  969. package/src/component/modal/PredictSpectraModal.tsx +1 -1
  970. package/src/component/modal/PublicationStringModal.tsx +82 -42
  971. package/src/component/modal/SaveAsModal.tsx +8 -8
  972. package/src/component/modal/aboutUs/AboutUsModal.tsx +8 -21
  973. package/src/component/modal/changeSum/ChangeSumModalContents.tsx +4 -2
  974. package/src/component/modal/changeSum/SelectMolecule.tsx +3 -1
  975. package/src/component/modal/editRange/EditRangeModal.tsx +5 -8
  976. package/src/component/modal/editRange/forms/components/DeltaInput.tsx +3 -2
  977. package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +4 -9
  978. package/src/component/modal/editRange/forms/components/SignalsContent.tsx +5 -4
  979. package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +17 -14
  980. package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +17 -14
  981. package/src/component/modal/editZone/EditZoneModal.tsx +3 -3
  982. package/src/component/modal/editZone/SignalsForm.tsx +26 -9
  983. package/src/component/modal/metaImportation/MetaImportationModal.tsx +8 -7
  984. package/src/component/modal/setting/GeneralSettings.tsx +51 -33
  985. package/src/component/modal/setting/WorkspaceItem.tsx +3 -3
  986. package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +19 -9
  987. package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +25 -17
  988. package/src/component/modal/setting/settings-tabs/ExportTabContent.tsx +1 -1
  989. package/src/component/modal/setting/settings-tabs/ExternalAPIsTabContent.tsx +18 -9
  990. package/src/component/modal/setting/settings-tabs/ImportationFiltersTabContent.tsx +3 -2
  991. package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +21 -10
  992. package/src/component/modal/setting/settings-tabs/NucleiTabContent.tsx +20 -13
  993. package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +13 -3
  994. package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +21 -12
  995. package/src/component/modal/setting/settings-tabs/ToolsTabContent.tsx +7 -8
  996. package/src/component/panels/AutomaticAssignment/AutomaticAssignmentTable.tsx +4 -3
  997. package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +1 -1
  998. package/src/component/panels/IntegralsPanel/IntegralPanel.tsx +2 -2
  999. package/src/component/panels/IntegralsPanel/IntegralTable.tsx +17 -13
  1000. package/src/component/panels/IntegralsPanel/IntegralsPreferences.tsx +2 -2
  1001. package/src/component/panels/MatrixGenerationPanel/ExclusionsZonesTable.tsx +8 -7
  1002. package/src/component/panels/MatrixGenerationPanel/FiltersOptions.tsx +7 -7
  1003. package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.tsx +17 -4
  1004. package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.tsx +11 -2
  1005. package/src/component/panels/MoleculesPanel/MoleculeHeader.tsx +2 -2
  1006. package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +4 -2
  1007. package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +46 -21
  1008. package/src/component/panels/MoleculesPanel/Utilities.ts +10 -5
  1009. package/src/component/panels/MoleculesPanel/useAtomAssignment.tsx +5 -12
  1010. package/src/component/panels/Panels.tsx +5 -2
  1011. package/src/component/panels/PanelsBar.tsx +3 -3
  1012. package/src/component/panels/PeaksPanel/PeaksPanel.tsx +14 -14
  1013. package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +2 -2
  1014. package/src/component/panels/PeaksPanel/PeaksTable.tsx +15 -13
  1015. package/src/component/panels/RangesPanel/RangesHeader.tsx +3 -3
  1016. package/src/component/panels/RangesPanel/RangesPanel.tsx +2 -2
  1017. package/src/component/panels/RangesPanel/RangesPreferences.tsx +2 -2
  1018. package/src/component/panels/RangesPanel/RangesTableRow.tsx +6 -10
  1019. package/src/component/panels/RangesPanel/TableColumns/CouplingColumn.tsx +1 -1
  1020. package/src/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.tsx +1 -1
  1021. package/src/component/panels/RangesPanel/TableColumns/RangeAssignmentsColumn.tsx +1 -2
  1022. package/src/component/panels/RangesPanel/TableColumns/RelativeColumn.tsx +1 -1
  1023. package/src/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.tsx +1 -1
  1024. package/src/component/panels/RangesPanel/hooks/useEditRangeModal.tsx +3 -3
  1025. package/src/component/panels/RangesPanel/hooks/useMapRanges.ts +1 -1
  1026. package/src/component/panels/SpectraPanel/SpectraPanelHeader.tsx +3 -3
  1027. package/src/component/panels/SpectraPanel/SpectraPreferences.tsx +12 -11
  1028. package/src/component/panels/SpectraPanel/SpectraTable.tsx +27 -26
  1029. package/src/component/panels/SpectraPanel/SpectraTabs.tsx +4 -5
  1030. package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +1 -1
  1031. package/src/component/panels/SpectraPanel/base/ShowHideSpectrumButton.tsx +1 -1
  1032. package/src/component/panels/SpectraPanel/base/SpectraColumnsManager.tsx +6 -5
  1033. package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +1 -1
  1034. package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +1 -1
  1035. package/src/component/panels/SpectraPanel/base/setting/processSnapPlot.ts +2 -2
  1036. package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.tsx +26 -16
  1037. package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.tsx +35 -23
  1038. package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.tsx +32 -13
  1039. package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.tsx +41 -31
  1040. package/src/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.tsx +1 -1
  1041. package/src/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.tsx +3 -6
  1042. package/src/component/panels/SummaryPanel/SetMolecularFormulaModal.tsx +5 -5
  1043. package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +4 -3
  1044. package/src/component/panels/SummaryPanel/SummaryPanel.tsx +16 -20
  1045. package/src/component/panels/SummaryPanel/utilities/Utilities.ts +17 -9
  1046. package/src/component/panels/ZonesPanel/TableColumns/ActionsColumn.tsx +1 -1
  1047. package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.tsx +1 -2
  1048. package/src/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.tsx +2 -2
  1049. package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.tsx +1 -1
  1050. package/src/component/panels/ZonesPanel/ZonesPanel.tsx +30 -22
  1051. package/src/component/panels/ZonesPanel/ZonesPreferences.tsx +2 -2
  1052. package/src/component/panels/ZonesPanel/ZonesTable.tsx +1 -1
  1053. package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +1 -1
  1054. package/src/component/panels/ZonesPanel/hooks/useMapZones.ts +2 -1
  1055. package/src/component/panels/accordionItems.tsx +1 -2
  1056. package/src/component/panels/databasePanel/DatabasePanel.tsx +17 -9
  1057. package/src/component/panels/databasePanel/DatabasePreferences.tsx +2 -2
  1058. package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +2 -2
  1059. package/src/component/panels/databasePanel/DatabaseTable.tsx +16 -10
  1060. package/src/component/panels/extra/utilities/MultiplicityUtilities.ts +2 -2
  1061. package/src/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.tsx +2 -2
  1062. package/src/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.tsx +9 -8
  1063. package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +15 -10
  1064. package/src/component/panels/filtersPanel/Filters/PhaseCorrectionOptionsPanel.tsx +2 -2
  1065. package/src/component/panels/filtersPanel/Filters/PhaseCorrectionTwoDimensionsOptionsPanel.tsx +2 -2
  1066. package/src/component/panels/filtersPanel/Filters/ShiftOptionsPanel.tsx +3 -3
  1067. package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +4 -4
  1068. package/src/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.tsx +2 -2
  1069. package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +1 -1
  1070. package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +4 -4
  1071. package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.tsx +17 -17
  1072. package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +17 -15
  1073. package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +7 -9
  1074. package/src/component/panels/filtersPanel/Filters/index.tsx +3 -1
  1075. package/src/component/panels/informationPanel/InformationEditionModal.tsx +12 -9
  1076. package/src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx +6 -6
  1077. package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +7 -6
  1078. package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.tsx +2 -2
  1079. package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.tsx +19 -12
  1080. package/src/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.tsx +9 -8
  1081. package/src/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.tsx +10 -7
  1082. package/src/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.tsx +2 -0
  1083. package/src/component/panels/multipleAnalysisPanel/preferences/index.tsx +6 -4
  1084. package/src/component/panels/predictionPanel/PredictionOptionsPanel.tsx +1 -1
  1085. package/src/component/panels/predictionPanel/PredictionPreferences.tsx +2 -2
  1086. package/src/component/panels/predictionPanel/PredictionSimpleOptions.tsx +1 -1
  1087. package/src/component/panels/spectrumSimulation/SpectrumSimulation.tsx +2 -2
  1088. package/src/component/panels/spectrumSimulation/SpectrumSimulationPreferences.tsx +1 -1
  1089. package/src/component/panels/spectrumSimulation/SpinSystemTable.tsx +6 -3
  1090. package/src/component/reducer/Reducer.ts +13 -12
  1091. package/src/component/reducer/actions/DomainActions.ts +45 -37
  1092. package/src/component/reducer/actions/FiltersActions.ts +30 -23
  1093. package/src/component/reducer/actions/InsetActions.ts +13 -16
  1094. package/src/component/reducer/actions/IntegralsActions.ts +6 -5
  1095. package/src/component/reducer/actions/LoadActions.ts +5 -2
  1096. package/src/component/reducer/actions/MoleculeActions.ts +3 -1
  1097. package/src/component/reducer/actions/PeaksActions.ts +12 -4
  1098. package/src/component/reducer/actions/PreferencesActions.ts +2 -2
  1099. package/src/component/reducer/actions/RangesActions.ts +15 -9
  1100. package/src/component/reducer/actions/SpectraActions.ts +16 -12
  1101. package/src/component/reducer/actions/ToolsActions.ts +30 -39
  1102. package/src/component/reducer/actions/utilities/deepReplaceDiaIDs.ts +1 -1
  1103. package/src/component/reducer/helper/Zoom1DManager.ts +3 -10
  1104. package/src/component/reducer/helper/ZoomHistoryManager.ts +5 -5
  1105. package/src/component/reducer/helper/get2DRange.ts +1 -1
  1106. package/src/component/reducer/helper/getActiveSpectraAsObject.ts +1 -1
  1107. package/src/component/reducer/helper/getRange.ts +1 -1
  1108. package/src/component/reducer/helper/getSpectrum.ts +17 -4
  1109. package/src/component/reducer/helper/setRangesViewProperty.ts +8 -5
  1110. package/src/component/reducer/preferences/actions/changeExportAcsSettings.ts +19 -0
  1111. package/src/component/reducer/preferences/actions/initPreferences.ts +3 -3
  1112. package/src/component/reducer/preferences/actions/matrixGeneration.ts +7 -4
  1113. package/src/component/reducer/preferences/actions/setPanelsPreferences.ts +9 -3
  1114. package/src/component/reducer/preferences/actions/setPreferences.ts +1 -1
  1115. package/src/component/reducer/preferences/actions/setWorkspace.ts +1 -1
  1116. package/src/component/reducer/preferences/actions/togglePanel.ts +10 -7
  1117. package/src/component/reducer/preferences/preferencesReducer.ts +24 -14
  1118. package/src/component/reducer/preferences/utilities/initWorkspace.ts +2 -1
  1119. package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +6 -2
  1120. package/src/component/toolbar/ToolBar.tsx +7 -7
  1121. package/src/component/toolbar/ToolTypes.ts +9 -51
  1122. package/src/component/toolbar/toolbarMenu.tsx +25 -17
  1123. package/src/component/utility/Events.tsx +6 -6
  1124. package/src/component/utility/LocalStorage.ts +5 -5
  1125. package/src/component/utility/export.ts +14 -13
  1126. package/src/component/utility/extractChemicalElement.ts +1 -1
  1127. package/src/component/utility/forwardRef.ts +10 -0
  1128. package/src/component/utility/getSpectraObjectPaths.ts +1 -1
  1129. package/src/component/utility/getUniqueNuclei.ts +1 -1
  1130. package/src/component/utility/groupByInfoKey.ts +34 -0
  1131. package/src/component/utility/isHomoNuclear.ts +11 -0
  1132. package/src/component/utility/nucleusToString.ts +1 -1
  1133. package/src/component/utility/stackOverlappingLabels.ts +1 -1
  1134. package/src/component/workspaces/workspaceDefaultProperties.ts +16 -0
  1135. package/src/data/PredictionManager.ts +16 -14
  1136. package/src/data/SpectraManager.ts +20 -15
  1137. package/src/data/constants/References.ts +26 -25
  1138. package/src/data/data1d/Spectrum1D/generateJGraphData.ts +2 -3
  1139. package/src/data/data1d/Spectrum1D/get1DColor.ts +7 -3
  1140. package/src/data/data1d/Spectrum1D/getReferenceShift.ts +8 -4
  1141. package/src/data/data1d/Spectrum1D/isRangeAssigned.ts +2 -2
  1142. package/src/data/data1d/Spectrum1D/isSpectrum1D.ts +10 -4
  1143. package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +1 -1
  1144. package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +1 -1
  1145. package/src/data/data1d/Spectrum1D/ranges/createRange.ts +1 -0
  1146. package/src/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.ts +1 -1
  1147. package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +2 -0
  1148. package/src/data/data1d/database.ts +2 -2
  1149. package/src/data/data1d/multipleSpectraAnalysis.ts +57 -29
  1150. package/src/data/data2d/Spectrum2D/contours.ts +3 -1
  1151. package/src/data/data2d/Spectrum2D/get2DColor.ts +8 -4
  1152. package/src/data/data2d/Spectrum2D/getMissingProjection.ts +1 -1
  1153. package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +1 -1
  1154. package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +4 -2
  1155. package/src/data/data2d/Spectrum2D/zones/detectZones.ts +4 -1
  1156. package/src/data/data2d/Spectrum2D/zones/detectZonesManual.ts +4 -2
  1157. package/src/data/data2d/Spectrum2D/zones/getDetectionZones.ts +2 -2
  1158. package/src/data/getFilterLabel.ts +10 -2
  1159. package/src/data/initiateFilters.ts +1 -5
  1160. package/src/data/matrixGeneration.ts +1 -1
  1161. package/src/data/molecules/MoleculeManager.ts +6 -0
  1162. package/src/data/parseMeta/linkMetaWithSpectra.ts +3 -3
  1163. package/src/data/parseMeta/mapErrors.ts +1 -1
  1164. package/src/data/utilities/FindUtilities.ts +5 -0
  1165. package/src/data/utilities/RangeUtilities.ts +1 -1
  1166. package/src/data/utilities/ZoneUtilities.ts +5 -5
  1167. package/src/data/utilities/convertSpectraListToObject.ts +2 -2
  1168. package/src/data/utilities/getAtom.ts +1 -1
  1169. package/src/data/utilities/getAtomsFromMF.ts +1 -1
  1170. package/src/data/utilities/removeByPaths.ts +2 -2
  1171. package/src/utils/clipboard/clipboardComponents.tsx +15 -5
  1172. package/src/utils/clipboard/clipboardHooks.ts +5 -3
  1173. package/src/versionInfo.ts +1 -1
  1174. package/lib/component/hooks/useCanvasContext.d.ts +0 -2
  1175. package/lib/component/hooks/useCanvasContext.d.ts.map +0 -1
  1176. package/lib/component/hooks/useCanvasContext.js +0 -13
  1177. package/lib/component/hooks/useCanvasContext.js.map +0 -1
  1178. package/lib/component/utility/GroupByInfoKey.d.ts +0 -2
  1179. package/lib/component/utility/GroupByInfoKey.d.ts.map +0 -1
  1180. package/lib/component/utility/GroupByInfoKey.js.map +0 -1
  1181. package/lib/component/utility/assert.d.ts +0 -2
  1182. package/lib/component/utility/assert.d.ts.map +0 -1
  1183. package/lib/component/utility/assert.js +0 -6
  1184. package/lib/component/utility/assert.js.map +0 -1
  1185. package/src/component/hooks/useCanvasContext.ts +0 -15
  1186. package/src/component/utility/GroupByInfoKey.ts +0 -29
  1187. package/src/component/utility/assert.ts +0 -5
@@ -10,8 +10,9 @@ import {
10
10
  spectrum1DToJCAMPDX,
11
11
  } from '@zakodium/nmrium-core-plugins';
12
12
  import { BlobWriter, TextReader, ZipWriter } from '@zip.js/zip.js';
13
- import fileSaver from 'file-saver';
13
+ import saveAs from 'file-saver';
14
14
  import * as OCL from 'openchemlib';
15
+ import { assert } from 'react-science/ui';
15
16
 
16
17
  import type { State } from '../component/reducer/Reducer.js';
17
18
 
@@ -19,34 +20,34 @@ import { initiateDatum1D, isSpectrum1D } from './data1d/Spectrum1D/index.js';
19
20
  import { initiateDatum2D } from './data2d/Spectrum2D/index.js';
20
21
  import * as Molecule from './molecules/Molecule.js';
21
22
 
22
- export enum DataExportOptions {
23
- ROW_DATA = 'ROW_DATA',
24
- DATA_SOURCE = 'DATA_SOURCE',
25
- NO_DATA = 'NO_DATA',
26
- }
27
-
28
- type DataExportOptionsType = keyof typeof DataExportOptions;
23
+ type DataExportOptions = 'ROW_DATA' | 'DATA_SOURCE' | 'NO_DATA';
29
24
 
30
25
  type ExportTarget = 'nmrium' | 'onChange';
31
26
 
32
27
  export interface ExportOptions {
33
- dataType?: DataExportOptionsType;
28
+ dataType?: DataExportOptions;
34
29
  view?: boolean;
35
30
  settings?: boolean;
36
31
  serialize?: boolean;
37
32
  exportTarget?: ExportTarget;
38
33
  }
39
34
 
40
- function getData(datum, usedColors) {
35
+ function getData(datum: any, usedColors: any) {
41
36
  const dimension = datum.info.dimension;
42
37
  if (dimension === 1) {
43
38
  return initiateDatum1D(datum, { usedColors });
44
- } else if (dimension === 2) {
39
+ } else {
40
+ assert(dimension === 2);
45
41
  return initiateDatum2D(datum, { usedColors });
46
42
  }
47
43
  }
48
44
 
49
- export function addJcamp(output, jcamp, options, usedColors) {
45
+ export function addJcamp(
46
+ output: any,
47
+ jcamp: any,
48
+ options: any,
49
+ usedColors: any,
50
+ ) {
50
51
  options = options || {};
51
52
  const name = options?.info?.name;
52
53
  const { spectra: spectraIn } = processJCAMPDX(jcamp, {
@@ -173,7 +174,7 @@ export function exportAsJcamp(
173
174
  }
174
175
 
175
176
  const blob = new Blob([jcamp], { type: 'text/plain' });
176
- fileSaver.saveAs(blob, `${spectrum.info.name}.jdx`);
177
+ saveAs(blob, `${spectrum.info.name}.jdx`);
177
178
  }
178
179
 
179
180
  interface ExportForCTOptions {
@@ -210,9 +211,13 @@ export async function exportForCT(options: ExportForCTOptions) {
210
211
  const { molfile } = molecules[0];
211
212
  const molecule = OCL.Molecule.fromMolfile(molfile);
212
213
  const molFileName = molecule.getMolecularFormula().formula;
214
+ const ctMolfile = molecule.toMolfile({
215
+ includeCustomAtomLabelsAsALines: true,
216
+ customLabelPosition: 'normal',
217
+ });
213
218
 
214
- await zip.add(`${molFileName}.mol`, new TextReader(molecule.toMolfile()));
219
+ await zip.add(`${molFileName}.mol`, new TextReader(ctMolfile));
215
220
 
216
221
  const blob = await zip.close();
217
- fileSaver.saveAs(blob, `${name}.zip`);
222
+ saveAs(blob, `${name}.zip`);
218
223
  }
@@ -7,30 +7,30 @@ interface ReferenceInfo {
7
7
 
8
8
  type OneHReferences = 'tms' | 'tsp' | 'glucose';
9
9
 
10
- export const REFERENCES:
11
- | Record<'1H', Record<OneHReferences, ReferenceInfo>>
12
- | Record<'13C', any> = {
13
- '1H': {
14
- tms: {
15
- from: -0.1,
16
- to: 0.1,
17
- nbPeaks: 1,
18
- delta: 0,
19
- },
20
- tsp: {
21
- from: -0.1,
22
- to: 0.1,
23
- nbPeaks: 1,
24
- delta: 0,
25
- },
26
- glucose: {
27
- from: 5.18,
28
- to: 5.28,
29
- nbPeaks: 2,
30
- delta: 5.23,
31
- },
10
+ const references1H: Record<OneHReferences, ReferenceInfo> = {
11
+ tms: {
12
+ from: -0.1,
13
+ to: 0.1,
14
+ nbPeaks: 1,
15
+ delta: 0,
32
16
  },
33
- '13C': {},
17
+ tsp: {
18
+ from: -0.1,
19
+ to: 0.1,
20
+ nbPeaks: 1,
21
+ delta: 0,
22
+ },
23
+ glucose: {
24
+ from: 5.18,
25
+ to: 5.28,
26
+ nbPeaks: 2,
27
+ delta: 5.23,
28
+ },
29
+ };
30
+
31
+ export const REFERENCES = {
32
+ '1H': references1H,
33
+ '13C': {} as any,
34
34
  };
35
35
 
36
36
  interface GetRangeOptions {
@@ -41,11 +41,12 @@ interface GetRangeOptions {
41
41
  export function getRange(options: GetRangeOptions = {}): ReferenceInfo {
42
42
  const { nucleus = '1H', reference = 'tms' } = options;
43
43
 
44
- if (!REFERENCES[nucleus]) {
44
+ const nucleusReferences = (REFERENCES as any)[nucleus];
45
+ if (!nucleusReferences) {
45
46
  throw new Error(`Nucleus not found: ${nucleus}`);
46
47
  }
47
48
 
48
- const info = REFERENCES[nucleus][reference.toLowerCase()];
49
+ const info = nucleusReferences[reference.toLowerCase()];
49
50
 
50
51
  if (!info) {
51
52
  throw new Error(`Reference not found: ${reference}`);
@@ -77,9 +77,8 @@ function initLink(coupling: Coupling): CouplingLink {
77
77
  }
78
78
 
79
79
  function createLinks(ranges: Range[], jGraphTolerance = 0) {
80
- const couplings = getCouplings(ranges).sort(
81
- (a, b) => a.coupling - b.coupling,
82
- );
80
+ const couplings = getCouplings(ranges);
81
+ couplings.sort((a, b) => a.coupling - b.coupling);
83
82
 
84
83
  if (!couplings || couplings.length === 0) return [];
85
84
 
@@ -24,10 +24,14 @@ function isRandomColorGeneration(
24
24
  }
25
25
 
26
26
  export function get1DColor(
27
- spectrum,
27
+ spectrum: any,
28
28
  options: ColorOptions | RandomColorOptions,
29
29
  ) {
30
- const { regenerate = false, usedColors = {}, colors } = options;
30
+ const {
31
+ regenerate = false,
32
+ usedColors = {} as Partial<UsedColors>,
33
+ colors,
34
+ } = options;
31
35
  let color = 'black';
32
36
 
33
37
  if (!spectrum?.display?.color || regenerate) {
@@ -37,7 +41,7 @@ export function get1DColor(
37
41
  if (customColor && !isRandom) {
38
42
  color = customColor;
39
43
  } else {
40
- color = generateColor({ usedColors: usedColors?.['1d'] || [] });
44
+ color = generateColor({ usedColors: usedColors['1d'] || [] });
41
45
  }
42
46
  } else {
43
47
  color = spectrum.display.color;
@@ -27,7 +27,10 @@ interface GetReferenceShiftOptions extends CalibrateOptions {
27
27
  * @param {number} [options.targetX]
28
28
  * @param {string} [options.reference]
29
29
  */
30
- export function getReferenceShift(datum1D, options: GetReferenceShiftOptions) {
30
+ export function getReferenceShift(
31
+ datum1D: any,
32
+ options: GetReferenceShiftOptions,
33
+ ) {
31
34
  const { reference } = options;
32
35
  let { from, to, nbPeaks, targetX } = options;
33
36
  if (reference) {
@@ -83,9 +86,10 @@ function xyCalibrate(
83
86
  y: data.y.slice(fromIndex, toIndex) as number[],
84
87
  };
85
88
 
86
- const peaks = gsd(sliceddata, gsdOptions)
87
- .sort((a, b) => b.y - a.y)
88
- .slice(0, nbPeaks);
89
+ const allPeaks = gsd(sliceddata, gsdOptions);
90
+ allPeaks.sort((a, b) => b.y - a.y);
91
+
92
+ const peaks = allPeaks.slice(0, nbPeaks);
89
93
 
90
94
  if (peaks.length === 0) return 0;
91
95
 
@@ -1,6 +1,6 @@
1
- import type { Range, Signal1D } from '@zakodium/nmr-types';
1
+ import type { Range } from '@zakodium/nmr-types';
2
2
 
3
- function isAssigned(object: Range | Signal1D) {
3
+ export function isAssigned(object: { nbAtoms?: number; diaIDs?: string[] }) {
4
4
  return (
5
5
  (object?.nbAtoms && object.nbAtoms > 0) ||
6
6
  (object?.diaIDs && object.diaIDs.length > 0)
@@ -1,13 +1,19 @@
1
1
  import type { Spectrum1D, Spectrum } from '@zakodium/nmrium-core';
2
2
 
3
- export function isSpectrum1D(spectrum: Spectrum): spectrum is Spectrum1D {
4
- return spectrum && spectrum.info.dimension === 1;
3
+ export function isSpectrum1D(
4
+ spectrum: Spectrum | undefined,
5
+ ): spectrum is Spectrum1D {
6
+ return spectrum?.info.dimension === 1;
5
7
  }
6
8
 
7
- export function isFid1DSpectrum(spectrum: Spectrum): spectrum is Spectrum1D {
9
+ export function isFid1DSpectrum(
10
+ spectrum: Spectrum | undefined,
11
+ ): spectrum is Spectrum1D {
8
12
  return isSpectrum1D(spectrum) && spectrum.info.isFid;
9
13
  }
10
14
 
11
- export function isFt1DSpectrum(spectrum: Spectrum): spectrum is Spectrum1D {
15
+ export function isFt1DSpectrum(
16
+ spectrum: Spectrum | undefined,
17
+ ): spectrum is Spectrum1D {
12
18
  return isSpectrum1D(spectrum) && spectrum.info.isFt;
13
19
  }
@@ -3,7 +3,7 @@ import type { Spectrum1D } from '@zakodium/nmrium-core';
3
3
  import median from 'ml-array-median';
4
4
  import { mapPeaks, xyAutoPeaksPicking } from 'nmr-processing';
5
5
 
6
- export function autoPeakPicking(spectrum: Spectrum1D, options) {
6
+ export function autoPeakPicking(spectrum: Spectrum1D, options: any) {
7
7
  const {
8
8
  minMaxRatio,
9
9
  maxNumberOfPeaks,
@@ -21,7 +21,7 @@ export function optimizePeaks(
21
21
  const ToIndex = xFindClosestIndex(x, to);
22
22
 
23
23
  // create deleted peaks object where the key is the id of the peaks that we need to remove
24
- const ids = {};
24
+ const ids: Record<string, Peak1D> = {};
25
25
  for (const peak of peaks) {
26
26
  ids[peak.id] = peak;
27
27
  }
@@ -64,5 +64,6 @@ export function createRange(
64
64
  } catch (error) {
65
65
  reportError(error);
66
66
  logger?.error('Could not calculate the multiplicity');
67
+ return undefined;
67
68
  }
68
69
  }
@@ -59,7 +59,7 @@ export function detectSignalsByMultipletAnalysis(
59
59
  { shape: { kind: 'pseudoVoigt' }, optimization: { kind: 'lm' } },
60
60
  );
61
61
 
62
- const log = logs.find((l) => l.message === 'optimization successful');
62
+ const log = logs.find((l: any) => l.message === 'optimization successful');
63
63
 
64
64
  if (log) {
65
65
  const { error } = log;
@@ -67,6 +67,7 @@ function resurrectSpectrumFromRanges(
67
67
  return datum;
68
68
  } catch (error) {
69
69
  reportError(error);
70
+ return undefined;
70
71
  }
71
72
  }
72
73
 
@@ -126,6 +127,7 @@ function resurrectSpectrumFromSignals(
126
127
  return datum;
127
128
  } catch (error) {
128
129
  reportError(error);
130
+ return undefined;
129
131
  }
130
132
  }
131
133
 
@@ -100,10 +100,10 @@ function processSearchByStructure(
100
100
 
101
101
  // todo: idCode may be null and the current version of search requires a string or molecule. `|| ''` will become useless in next release of openchemlib-util
102
102
  const result = moleculesDB.search(idCode || '');
103
- return result.map((entry) => entry.data);
103
+ return result.map((entry: any) => entry.data);
104
104
  }
105
105
 
106
- function prepareGetSolvents(data) {
106
+ function prepareGetSolvents(data: any) {
107
107
  const result: string[] = [];
108
108
  const map = new Map();
109
109
  for (const item of data) {
@@ -30,7 +30,7 @@ interface AnalysisRow extends RangeDetectionResult {
30
30
 
31
31
  export interface SpectraAnalysisData {
32
32
  options: AnalysisOptions;
33
- values: AnalysisRow[];
33
+ values: Array<Record<string, AnalyzeSpectraCalculateResult>>;
34
34
  }
35
35
 
36
36
  function addColumnKey(
@@ -49,7 +49,7 @@ function addColumnKey(
49
49
 
50
50
  function getSpectraAnalysis(
51
51
  spectra: Spectrum[],
52
- options,
52
+ options: any,
53
53
  ): { values: AnalysisRow[]; sum: number } {
54
54
  const { from, to, nucleus } = options;
55
55
  const result: { values: AnalysisRow[]; sum: number } = {
@@ -117,7 +117,7 @@ export function changeColumnValueKey(
117
117
 
118
118
  export function analyzeSpectra(
119
119
  spectraAnalysis: PanelsPreferences['multipleSpectraAnalysis'],
120
- options,
120
+ options: any,
121
121
  ) {
122
122
  const { from, to, nucleus, columnKey = null } = options;
123
123
  init(spectraAnalysis, nucleus);
@@ -135,13 +135,28 @@ export function analyzeSpectra(
135
135
  );
136
136
  }
137
137
 
138
+ interface ColumnData {
139
+ colKey: string;
140
+ analysisRow: AnalysisRow;
141
+ relative: number;
142
+ }
143
+
144
+ type ColumnsData = Record<string, ColumnData>;
145
+
146
+ interface AnalyzeSpectraCalculateResult {
147
+ SID: string;
148
+ id: string;
149
+ colKey: string;
150
+ value: number;
151
+ }
152
+
138
153
  export function generateAnalyzeSpectra(
139
154
  multipleSpectraAnalysis: MultipleSpectraAnalysisPreferences,
140
155
  spectra: Spectrum1D[],
141
156
  nucleus: string,
142
- ) {
143
- const data: any = {};
144
- const { sum, columns, code } = multipleSpectraAnalysis.analysisOptions;
157
+ ): SpectraAnalysisData {
158
+ const data: Record<string, ColumnsData> = {};
159
+ const { sum, columns } = multipleSpectraAnalysis.analysisOptions;
145
160
 
146
161
  for (const columnKey in columns) {
147
162
  const { from, to } = columns[columnKey];
@@ -154,43 +169,56 @@ export function generateAnalyzeSpectra(
154
169
 
155
170
  for (const spectrum of result) {
156
171
  const factor = spectraSum > 0 ? sum / spectraSum : 0;
157
-
158
- data[spectrum.SID] = {
159
- ...data[spectrum.SID],
160
- [columnKey]: {
161
- colKey: columnKey,
162
- ...spectrum,
163
- relative: Math.abs(spectrum.absolute) * factor,
164
- },
172
+ const item: ColumnData = {
173
+ colKey: columnKey,
174
+ analysisRow: spectrum,
175
+ relative: Math.abs(spectrum.absolute) * factor,
165
176
  };
177
+ if (!data[spectrum.SID]) {
178
+ data[spectrum.SID] = {
179
+ [columnKey]: item,
180
+ };
181
+ } else {
182
+ data[spectrum.SID][columnKey] = item;
183
+ }
166
184
  }
167
185
  }
168
186
 
169
- const newData = Object.fromEntries(
170
- Object.entries(data).map((spectra: any) => {
187
+ const newData: Record<
188
+ string,
189
+ Record<string, AnalyzeSpectraCalculateResult>
190
+ > = Object.fromEntries(
191
+ Object.entries(data).map(([entryKey, entryValue]) => {
171
192
  const result = Object.fromEntries(
172
193
  Object.keys(columns).map((key) => {
173
194
  const isFormula = columns[key].type === ANALYSIS_COLUMN_TYPES.FORMULA;
195
+ const valueKey = columns[key].valueKey;
196
+ const { SID, id } = entryValue[key].analysisRow;
174
197
  if (isFormula) {
175
- const { SID, id } = spectra[1][key];
176
198
  return [
177
199
  key,
178
200
  {
179
201
  SID,
180
202
  id,
181
203
  colKey: key,
182
- value: calculate(key, columns, data[spectra[0]]),
204
+ value: calculate(key, columns, data[entryKey]),
183
205
  },
184
- ];
206
+ ] as const;
185
207
  }
186
- return [key, { ...spectra[1][key], colKey: key }];
208
+
209
+ const value = (entryValue[key].analysisRow as any)[valueKey];
210
+ return [key, { id, SID, colKey: key, value }] as const;
187
211
  }),
188
212
  );
189
- return [spectra[0], result];
213
+ return [entryKey, result];
190
214
  }),
191
215
  );
192
216
 
193
- return { values: Object.values(newData), options: { columns, code } };
217
+ return {
218
+ values: Object.values(newData),
219
+ // The function is not changing the options, so there is no reason to return them with it.
220
+ options: multipleSpectraAnalysis.analysisOptions,
221
+ };
194
222
  }
195
223
 
196
224
  export function deleteSpectraAnalysis(
@@ -212,15 +240,15 @@ export function deleteSpectraAnalysis(
212
240
  function calculate(
213
241
  columnKey: string,
214
242
  columns: SpectraAnalysisColumns,
215
- data: AnalysisRow,
243
+ data: ColumnsData,
216
244
  visited = new Set<string>(),
217
- ) {
245
+ ): number {
218
246
  if (visited.has(columnKey)) {
219
247
  return 0;
220
248
  }
221
249
  visited.add(columnKey);
222
250
 
223
- const { formula = '' } = columns[columnKey];
251
+ const { formula } = columns[columnKey];
224
252
  const variables: string[] = Object.keys(columns);
225
253
 
226
254
  const params = variables.map((key) => {
@@ -233,7 +261,7 @@ function calculate(
233
261
  return calculate(key, columns, data, new Set(visited));
234
262
  }
235
263
 
236
- return data[key][valueKey];
264
+ return (data[key].analysisRow as any)[valueKey];
237
265
  });
238
266
 
239
267
  let result;
@@ -277,7 +305,7 @@ export function getDataAsString(
277
305
 
278
306
  let result = `${columnsLabels.join('\t')}\n`;
279
307
 
280
- for (const spectrumAnalysis of Object.values(values)) {
308
+ for (const spectrumAnalysis of values) {
281
309
  const spectrum = spectraData[spectrumAnalysis[letters[0]].SID];
282
310
  const cellsValues: string[] = [];
283
311
 
@@ -292,8 +320,8 @@ export function getDataAsString(
292
320
 
293
321
  // listed the spectra analysis cell values
294
322
  for (const letter of letters) {
295
- const value = spectrumAnalysis[letter][columns[letter].valueKey];
296
- cellsValues.push(value);
323
+ const value = spectrumAnalysis[letter].value;
324
+ cellsValues.push(String(value));
297
325
  }
298
326
  result += `${cellsValues.join('\t')}\n`;
299
327
  }
@@ -50,6 +50,7 @@ interface ReturnContoursManager {
50
50
  function getDefaultContoursLevel(spectrum: Spectrum2D, quadrant = 'rr') {
51
51
  const { data, info } = spectrum;
52
52
 
53
+ // @ts-expect-error type of NmrData2D should have a discriminator field to separate fid and ft
53
54
  const quadrantData = data[quadrant];
54
55
 
55
56
  //@ts-expect-error will be included in nexts versions
@@ -84,7 +85,7 @@ function getDefaultContoursLevel(spectrum: Spectrum2D, quadrant = 'rr') {
84
85
  function contoursManager(spectrum: Spectrum2D): ReturnContoursManager {
85
86
  const contourOptions = { ...spectrum.display.contourOptions };
86
87
 
87
- const wheel = (value, options) =>
88
+ const wheel = (value: any, options: any) =>
88
89
  prepareWheel(value, { ...options, contourOptions });
89
90
  const getLevel = () => contourOptions;
90
91
  const checkLevel = () => prepareCheckLevel(contourOptions);
@@ -194,6 +195,7 @@ function drawContours(
194
195
  negative,
195
196
  boundary: contourLevels,
196
197
  nbLevels: numberOfLayers,
198
+ // @ts-expect-error type of NmrData2D should have a discriminator field to separate fid and ft
197
199
  data: spectrum.data[quadrant],
198
200
  });
199
201
  }
@@ -27,10 +27,14 @@ function isRandomColorGeneration(
27
27
  }
28
28
 
29
29
  export function get2DColor(
30
- spectrum,
30
+ spectrum: any,
31
31
  options: ColorOptions | RandomColorOptions,
32
32
  ): Color2D {
33
- const { regenerate = false, usedColors = {}, colors } = options;
33
+ const {
34
+ regenerate = false,
35
+ usedColors = {} as Partial<UsedColors>,
36
+ colors,
37
+ } = options;
34
38
 
35
39
  let color: Partial<Color2D> = {};
36
40
  if (
@@ -41,7 +45,7 @@ export function get2DColor(
41
45
  const isRandom = isRandomColorGeneration(options) && options.random;
42
46
  const customColor =
43
47
  getCustomColor(spectrum, colors) ||
44
- ((color2D?.[spectrum.info.experiment] as Color2D | undefined) ?? null);
48
+ ((color2D as any)?.[spectrum.info.experiment] ?? null);
45
49
 
46
50
  if (customColor && !isRandom) {
47
51
  color = customColor;
@@ -57,7 +61,7 @@ export function get2DColor(
57
61
  spectrum?.display || {};
58
62
  color = { positiveColor, negativeColor };
59
63
  }
60
- if (usedColors['2d']) {
64
+ if (usedColors['2d'] && color.positiveColor) {
61
65
  usedColors['2d'].push(color.positiveColor);
62
66
  }
63
67
 
@@ -57,7 +57,7 @@ export function getMissingProjection(
57
57
  return initiateDatum1D({ info, data }, { usedColors });
58
58
  }
59
59
 
60
- function getInfo(info, index) {
60
+ function getInfo(info: any, index: any) {
61
61
  const newInfo: any = {};
62
62
  for (const key in info) {
63
63
  newInfo[key] = Array.isArray(info[key]) ? info[key][index] : info[key];
@@ -88,7 +88,7 @@ export function initiateDatum2D(
88
88
  return datum;
89
89
  }
90
90
 
91
- function getData(datum, options) {
91
+ function getData(datum: any, options: any) {
92
92
  if (datum.info.isFid) {
93
93
  const { re = defaultMinMax, im = defaultMinMax } = options.data;
94
94
  return { re, im };
@@ -1,8 +1,10 @@
1
1
  import type { Spectrum2D, Spectrum } from '@zakodium/nmrium-core';
2
2
  import type { NmrData2D, NmrData2DFid, NmrData2DFt } from 'cheminfo-types';
3
3
 
4
- export function isSpectrum2D(spectrum: Spectrum): spectrum is Spectrum2D {
5
- return spectrum && spectrum.info.dimension === 2;
4
+ export function isSpectrum2D(
5
+ spectrum: Spectrum | undefined,
6
+ ): spectrum is Spectrum2D {
7
+ return spectrum?.info.dimension === 2;
6
8
  }
7
9
 
8
10
  function isQuadrantsData(data: NmrData2D): data is NmrData2DFt {
@@ -4,7 +4,10 @@ import { mapZones } from 'nmr-processing';
4
4
  import type { DetectionZonesOptions } from './getDetectionZones.js';
5
5
  import { getDetectionZones } from './getDetectionZones.js';
6
6
 
7
- export function detectZones(datum, options: DetectionZonesOptions): Zone[] {
7
+ export function detectZones(
8
+ datum: any,
9
+ options: DetectionZonesOptions,
10
+ ): Zone[] {
8
11
  const zones = getDetectionZones(datum, options);
9
12
 
10
13
  return mapZones(zones as Zone[], datum);
@@ -16,9 +16,11 @@ import { getDetectionZones } from './getDetectionZones.js';
16
16
  * @param {number} options.thresholdFactor
17
17
  * @param {boolean} options.convolutionByFFT
18
18
  */
19
- export function detectZonesManual(datum, options: DetectionZonesOptions) {
19
+ export function detectZonesManual(datum: any, options: DetectionZonesOptions) {
20
20
  const { spectralWidth, originFrequency } = datum.info;
21
- options.tolerances = spectralWidth.map((sw, i) => sw * originFrequency[i]);
21
+ options.tolerances = spectralWidth.map(
22
+ (sw: any, i: any) => sw * originFrequency[i],
23
+ );
22
24
  const zones = getDetectionZones(datum, options);
23
25
  let { fromX, fromY, toX, toY } = options.selectedZone;
24
26
  if (fromX > toX) [fromX, toX] = [toX, fromX];
@@ -45,7 +45,7 @@ export function getDetectionZones(
45
45
  });
46
46
  }
47
47
 
48
- function autoZonesDetection(data, options) {
48
+ function autoZonesDetection(data: any, options: any) {
49
49
  const {
50
50
  clean,
51
51
  tolerances,
@@ -72,7 +72,7 @@ function autoZonesDetection(data, options) {
72
72
  return zones;
73
73
  }
74
74
 
75
- function getSubMatrix(datum, selectedZone) {
75
+ function getSubMatrix(datum: any, selectedZone: any) {
76
76
  const { fromX, toX, fromY, toY } = selectedZone;
77
77
  const data = datum.data.rr;
78
78
  const xStep = (data.maxX - data.minX) / (data.z[0].length - 1);
@@ -3,11 +3,19 @@ import { Filters1D, Filters2D } from 'nmr-processing';
3
3
  import type { FilterEntry } from './types/common/FilterEntry.js';
4
4
 
5
5
  export function getFilterLabel(name: FilterEntry['name']): string {
6
- if (name in Filters1D) {
6
+ if (isFilter1DName(name)) {
7
7
  return Filters1D[name].label;
8
8
  }
9
- if (name in Filters2D) {
9
+ if (isFilter2DName(name)) {
10
10
  return Filters2D[name].label;
11
11
  }
12
12
  return '';
13
13
  }
14
+
15
+ function isFilter1DName(name: string): name is keyof typeof Filters1D {
16
+ return name in Filters1D;
17
+ }
18
+
19
+ function isFilter2DName(name: string): name is keyof typeof Filters2D {
20
+ return name in Filters2D;
21
+ }
@@ -1,8 +1,4 @@
1
- import type { Filter1D, Filter2D } from 'nmr-processing';
2
-
3
- export function initiateFilters(
4
- inputFilters: Filter1D[] | Filter2D[] | undefined,
5
- ) {
1
+ export function initiateFilters(inputFilters: any): any {
6
2
  if (!inputFilters || !Array.isArray(inputFilters)) return [];
7
3
 
8
4
  return inputFilters.map((filter) => ({