nmrium 2.0.0 → 2.1.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 (1140) hide show
  1. package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
  2. package/lib/component/1d/BrushTracker1D.js +17 -10
  3. package/lib/component/1d/BrushTracker1D.js.map +1 -1
  4. package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
  5. package/lib/component/1d/FloatPublicationString.js +39 -27
  6. package/lib/component/1d/FloatPublicationString.js.map +1 -1
  7. package/lib/component/1d/HorizontalAxis1D.d.ts +2 -0
  8. package/lib/component/1d/HorizontalAxis1D.d.ts.map +1 -0
  9. package/lib/component/1d/HorizontalAxis1D.js +30 -0
  10. package/lib/component/1d/HorizontalAxis1D.js.map +1 -0
  11. package/lib/component/1d/Line.js +1 -1
  12. package/lib/component/1d/Line.js.map +1 -1
  13. package/lib/component/1d/LinesSeries.d.ts.map +1 -1
  14. package/lib/component/1d/LinesSeries.js +2 -10
  15. package/lib/component/1d/LinesSeries.js.map +1 -1
  16. package/lib/component/1d/SVGContent1D.d.ts.map +1 -1
  17. package/lib/component/1d/SVGContent1D.js +2 -3
  18. package/lib/component/1d/SVGContent1D.js.map +1 -1
  19. package/lib/component/1d/Viewer1D.d.ts.map +1 -1
  20. package/lib/component/1d/Viewer1D.js +2 -1
  21. package/lib/component/1d/Viewer1D.js.map +1 -1
  22. package/lib/component/1d/baseline/BaselinePreview.d.ts +2 -0
  23. package/lib/component/1d/baseline/BaselinePreview.d.ts.map +1 -0
  24. package/lib/component/1d/baseline/BaselinePreview.js +146 -0
  25. package/lib/component/1d/baseline/BaselinePreview.js.map +1 -0
  26. package/lib/component/1d/baseline/getMedianWindow.d.ts +3 -0
  27. package/lib/component/1d/baseline/getMedianWindow.d.ts.map +1 -0
  28. package/lib/component/1d/baseline/getMedianWindow.js +5 -0
  29. package/lib/component/1d/baseline/getMedianWindow.js.map +1 -0
  30. package/lib/component/1d/baseline/getMedianY.d.ts +3 -0
  31. package/lib/component/1d/baseline/getMedianY.d.ts.map +1 -0
  32. package/lib/component/1d/baseline/getMedianY.js +13 -0
  33. package/lib/component/1d/baseline/getMedianY.js.map +1 -0
  34. package/lib/component/1d/database/DatabaseElements.d.ts.map +1 -1
  35. package/lib/component/1d/database/DatabaseElements.js +4 -4
  36. package/lib/component/1d/database/DatabaseElements.js.map +1 -1
  37. package/lib/component/1d/database/DatabaseSpectrum.d.ts.map +1 -1
  38. package/lib/component/1d/database/DatabaseSpectrum.js +5 -2
  39. package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
  40. package/lib/component/1d/database/ResurrectedDatabaseRanges.d.ts.map +1 -1
  41. package/lib/component/1d/database/ResurrectedDatabaseRanges.js +4 -5
  42. package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
  43. package/lib/component/1d/integral/IntegralsSeries.js.map +1 -1
  44. package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js +1 -1
  45. package/lib/component/1d/jCouplingGraph/JGraphVerticalAxis.js.map +1 -1
  46. package/lib/component/1d/multiplicityTree/MultiplicityTree.js +6 -5
  47. package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
  48. package/lib/component/1d/peaks/PeakAnnotations.js +1 -1
  49. package/lib/component/1d/peaks/PeakAnnotations.js.map +1 -1
  50. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.d.ts.map +1 -1
  51. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js +2 -2
  52. package/lib/component/1d/peaks/PeakAnnotationsSpreadMode.js.map +1 -1
  53. package/lib/component/1d/peaks/PeakEditionManager.d.ts.map +1 -1
  54. package/lib/component/1d/peaks/PeakEditionManager.js +1 -1
  55. package/lib/component/1d/peaks/PeakEditionManager.js.map +1 -1
  56. package/lib/component/1d/peaks/usePeakShapesPath.js +1 -1
  57. package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
  58. package/lib/component/1d/ranges/Range.js +3 -3
  59. package/lib/component/1d/ranges/Range.js.map +1 -1
  60. package/lib/component/1d/ranges/Ranges.js +2 -2
  61. package/lib/component/1d/ranges/Ranges.js.map +1 -1
  62. package/lib/component/1d/tool/BaseLine.js +1 -1
  63. package/lib/component/1d/tool/PeakPointer.d.ts.map +1 -1
  64. package/lib/component/1d/tool/PeakPointer.js +2 -1
  65. package/lib/component/1d/tool/PeakPointer.js.map +1 -1
  66. package/lib/component/1d/utilities/scale.d.ts +5 -4
  67. package/lib/component/1d/utilities/scale.d.ts.map +1 -1
  68. package/lib/component/1d/utilities/scale.js +13 -6
  69. package/lib/component/1d/utilities/scale.js.map +1 -1
  70. package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
  71. package/lib/component/1d-2d/FieldEdition.js.map +1 -1
  72. package/lib/component/1d-2d/components/axis_unit_picker.d.ts +11 -0
  73. package/lib/component/1d-2d/components/axis_unit_picker.d.ts.map +1 -0
  74. package/lib/component/1d-2d/components/axis_unit_picker.js +26 -0
  75. package/lib/component/1d-2d/components/axis_unit_picker.js.map +1 -0
  76. package/lib/component/1d-2d/tools/BrushXY.js +6 -6
  77. package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
  78. package/lib/component/2d/1d-tracer/VerticalSliceChart.js +1 -1
  79. package/lib/component/2d/1d-tracer/VerticalSliceChart.js.map +1 -1
  80. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.d.ts +2 -2
  81. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.d.ts.map +1 -1
  82. package/lib/component/2d/{XAxis.d.ts → DirectAxis2D.d.ts} +4 -4
  83. package/lib/component/2d/DirectAxis2D.d.ts.map +1 -0
  84. package/lib/component/2d/DirectAxis2D.js +42 -0
  85. package/lib/component/2d/DirectAxis2D.js.map +1 -0
  86. package/lib/component/2d/IndirectAxis2D.d.ts +12 -0
  87. package/lib/component/2d/IndirectAxis2D.d.ts.map +1 -0
  88. package/lib/component/2d/IndirectAxis2D.js +52 -0
  89. package/lib/component/2d/IndirectAxis2D.js.map +1 -0
  90. package/lib/component/2d/SVGContent2D.js +3 -3
  91. package/lib/component/2d/SVGContent2D.js.map +1 -1
  92. package/lib/component/2d/fid/FidCanvas.js.map +1 -1
  93. package/lib/component/2d/utilities/extractSpectrumSignals.js +2 -2
  94. package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -1
  95. package/lib/component/2d/utilities/scale.d.ts +10 -2
  96. package/lib/component/2d/utilities/scale.d.ts.map +1 -1
  97. package/lib/component/2d/utilities/scale.js +6 -4
  98. package/lib/component/2d/utilities/scale.js.map +1 -1
  99. package/lib/component/2d/zones/Signal.d.ts +2 -2
  100. package/lib/component/2d/zones/Signal.d.ts.map +1 -1
  101. package/lib/component/2d/zones/Signal.js +7 -9
  102. package/lib/component/2d/zones/Signal.js.map +1 -1
  103. package/lib/component/2d/zones/SignalCrosshair.d.ts +1 -1
  104. package/lib/component/2d/zones/SignalCrosshair.d.ts.map +1 -1
  105. package/lib/component/2d/zones/SignalCrosshair.js +3 -2
  106. package/lib/component/2d/zones/SignalCrosshair.js.map +1 -1
  107. package/lib/component/2d/zones/SignalsGuideLines.js +2 -2
  108. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  109. package/lib/component/2d/zones/Zone.d.ts +1 -1
  110. package/lib/component/2d/zones/Zone.d.ts.map +1 -1
  111. package/lib/component/2d/zones/Zone.js +3 -4
  112. package/lib/component/2d/zones/Zone.js.map +1 -1
  113. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  114. package/lib/component/EventsTrackers/BrushTracker.js +6 -6
  115. package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
  116. package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
  117. package/lib/component/EventsTrackers/KeysListenerTracker.js +109 -123
  118. package/lib/component/EventsTrackers/KeysListenerTracker.js.map +1 -1
  119. package/lib/component/EventsTrackers/MouseTracker.d.ts +1 -1
  120. package/lib/component/EventsTrackers/MouseTracker.d.ts.map +1 -1
  121. package/lib/component/EventsTrackers/MouseTracker.js +9 -8
  122. package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
  123. package/lib/component/SVGTable.d.ts +3 -2
  124. package/lib/component/SVGTable.d.ts.map +1 -1
  125. package/lib/component/SVGTable.js +2 -4
  126. package/lib/component/SVGTable.js.map +1 -1
  127. package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
  128. package/lib/component/context/DispatchContext.d.ts +2 -1
  129. package/lib/component/context/DispatchContext.d.ts.map +1 -1
  130. package/lib/component/context/DispatchContext.js.map +1 -1
  131. package/lib/component/context/FilterSyncOptionsContext.d.ts +4 -3
  132. package/lib/component/context/FilterSyncOptionsContext.d.ts.map +1 -1
  133. package/lib/component/context/FilterSyncOptionsContext.js +34 -8
  134. package/lib/component/context/FilterSyncOptionsContext.js.map +1 -1
  135. package/lib/component/context/ScaleContext.d.ts +5 -1
  136. package/lib/component/context/ScaleContext.d.ts.map +1 -1
  137. package/lib/component/context/ScaleContext.js +5 -4
  138. package/lib/component/context/ScaleContext.js.map +1 -1
  139. package/lib/component/context/SortSpectraContext.js +1 -1
  140. package/lib/component/context/SortSpectraContext.js.map +1 -1
  141. package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
  142. package/lib/component/elements/ActionsButtonsPopover.js +1 -1
  143. package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
  144. package/lib/component/elements/Alert.d.ts.map +1 -1
  145. package/lib/component/elements/Alert.js.map +1 -1
  146. package/lib/component/elements/Anchor.d.ts +43 -0
  147. package/lib/component/elements/Anchor.d.ts.map +1 -0
  148. package/lib/component/elements/Anchor.js +151 -0
  149. package/lib/component/elements/Anchor.js.map +1 -0
  150. package/lib/component/elements/Button.d.ts.map +1 -1
  151. package/lib/component/elements/Button.js.map +1 -1
  152. package/lib/component/elements/ColumnWrapper.d.ts +2 -1
  153. package/lib/component/elements/ColumnWrapper.d.ts.map +1 -1
  154. package/lib/component/elements/ColumnWrapper.js.map +1 -1
  155. package/lib/component/elements/ContextMenuBluePrint.js +2 -2
  156. package/lib/component/elements/ContextMenuBluePrint.js.map +1 -1
  157. package/lib/component/elements/D3Axis.d.ts +5 -2
  158. package/lib/component/elements/D3Axis.d.ts.map +1 -1
  159. package/lib/component/elements/D3Axis.js +61 -18
  160. package/lib/component/elements/D3Axis.js.map +1 -1
  161. package/lib/component/elements/DialogManager.d.ts +1 -1
  162. package/lib/component/elements/DialogManager.d.ts.map +1 -1
  163. package/lib/component/elements/DialogManager.js.map +1 -1
  164. package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
  165. package/lib/component/elements/DraggableDialog.js.map +1 -1
  166. package/lib/component/elements/EditableColumn.d.ts +9 -5
  167. package/lib/component/elements/EditableColumn.d.ts.map +1 -1
  168. package/lib/component/elements/EditableColumn.js +7 -7
  169. package/lib/component/elements/EditableColumn.js.map +1 -1
  170. package/lib/component/elements/Input.d.ts +2 -2
  171. package/lib/component/elements/Input.d.ts.map +1 -1
  172. package/lib/component/elements/Input.js.map +1 -1
  173. package/lib/component/elements/InputRange.d.ts.map +1 -1
  174. package/lib/component/elements/InputRange.js.map +1 -1
  175. package/lib/component/elements/Label.d.ts +1 -2
  176. package/lib/component/elements/Label.d.ts.map +1 -1
  177. package/lib/component/elements/MoleculeSelection.js.map +1 -1
  178. package/lib/component/elements/NumberInput2.d.ts +2 -1
  179. package/lib/component/elements/NumberInput2.d.ts.map +1 -1
  180. package/lib/component/elements/NumberInput2Controller.d.ts +1 -2
  181. package/lib/component/elements/NumberInput2Controller.d.ts.map +1 -1
  182. package/lib/component/elements/NumberInputField.d.ts +9 -0
  183. package/lib/component/elements/NumberInputField.d.ts.map +1 -0
  184. package/lib/component/elements/NumberInputField.js +8 -0
  185. package/lib/component/elements/NumberInputField.js.map +1 -0
  186. package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts +6 -1
  187. package/lib/component/elements/ReactTable/Elements/EmptyDataRow.d.ts.map +1 -1
  188. package/lib/component/elements/ReactTable/Elements/EmptyDataRow.js +2 -2
  189. package/lib/component/elements/ReactTable/Elements/EmptyDataRow.js.map +1 -1
  190. package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts +5 -5
  191. package/lib/component/elements/ReactTable/Elements/ReactTableRow.d.ts.map +1 -1
  192. package/lib/component/elements/ReactTable/Elements/ReactTableRow.js +5 -5
  193. package/lib/component/elements/ReactTable/Elements/ReactTableRow.js.map +1 -1
  194. package/lib/component/elements/ReactTable/ReactTable.d.ts +15 -9
  195. package/lib/component/elements/ReactTable/ReactTable.d.ts.map +1 -1
  196. package/lib/component/elements/ReactTable/ReactTable.js +8 -4
  197. package/lib/component/elements/ReactTable/ReactTable.js.map +1 -1
  198. package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts +2 -1
  199. package/lib/component/elements/ReactTable/utility/addCustomColumn.d.ts.map +1 -1
  200. package/lib/component/elements/ReadOnly.d.ts +2 -2
  201. package/lib/component/elements/ReadOnly.d.ts.map +1 -1
  202. package/lib/component/elements/ReadOnly.js.map +1 -1
  203. package/lib/component/elements/Sections.js +1 -1
  204. package/lib/component/elements/Sections.js.map +1 -1
  205. package/lib/component/elements/Tab/DeleteButton.d.ts +2 -2
  206. package/lib/component/elements/Tab/DeleteButton.d.ts.map +1 -1
  207. package/lib/component/elements/TabTitle.d.ts.map +1 -1
  208. package/lib/component/elements/TabTitle.js.map +1 -1
  209. package/lib/component/elements/dropDownButton/DropDownButton.js.map +1 -1
  210. package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
  211. package/lib/component/elements/export/ExportContent.js +13 -27
  212. package/lib/component/elements/export/ExportContent.js.map +1 -1
  213. package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
  214. package/lib/component/elements/export/units.d.ts +1 -1
  215. package/lib/component/elements/export/units.d.ts.map +1 -1
  216. package/lib/component/elements/export/units.js.map +1 -1
  217. package/lib/component/elements/export/useExportConfigurer.d.ts +1 -1
  218. package/lib/component/elements/export/useExportConfigurer.d.ts.map +1 -1
  219. package/lib/component/elements/export/useExportConfigurer.js.map +1 -1
  220. package/lib/component/elements/resizer/SVGResizer.d.ts +2 -1
  221. package/lib/component/elements/resizer/SVGResizer.d.ts.map +1 -1
  222. package/lib/component/header/Header.js +2 -2
  223. package/lib/component/header/Header.js.map +1 -1
  224. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.d.ts.map +1 -1
  225. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js +43 -24
  226. package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js.map +1 -1
  227. package/lib/component/highlight/index.d.ts +59 -19
  228. package/lib/component/highlight/index.d.ts.map +1 -1
  229. package/lib/component/highlight/index.js +6 -4
  230. package/lib/component/highlight/index.js.map +1 -1
  231. package/lib/component/hooks/use2DReducer.d.ts.map +1 -1
  232. package/lib/component/hooks/use2DReducer.js.map +1 -1
  233. package/lib/component/hooks/useCheckToolsVisibility.js.map +1 -1
  234. package/lib/component/hooks/useCombinedRefs.d.ts.map +1 -1
  235. package/lib/component/hooks/useCombinedRefs.js +1 -0
  236. package/lib/component/hooks/useCombinedRefs.js.map +1 -1
  237. package/lib/component/hooks/useFilter.d.ts.map +1 -1
  238. package/lib/component/hooks/useFilter.js.map +1 -1
  239. package/lib/component/hooks/useSVGUnitConverter.js.map +1 -1
  240. package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
  241. package/lib/component/hooks/useSaveSettings.js +3 -3
  242. package/lib/component/hooks/useSaveSettings.js.map +1 -1
  243. package/lib/component/hooks/useTableSortBy.d.ts +5 -4
  244. package/lib/component/hooks/useTableSortBy.d.ts.map +1 -1
  245. package/lib/component/hooks/useTableSortBy.js +3 -3
  246. package/lib/component/hooks/useTableSortBy.js.map +1 -1
  247. package/lib/component/hooks/useTriggerNewAssignmentLabel.d.ts +1 -1
  248. package/lib/component/hooks/useTriggerNewAssignmentLabel.d.ts.map +1 -1
  249. package/lib/component/hooks/useTriggerNewAssignmentLabel.js.map +1 -1
  250. package/lib/component/hooks/use_axis_unit.d.ts +24 -0
  251. package/lib/component/hooks/use_axis_unit.d.ts.map +1 -0
  252. package/lib/component/hooks/use_axis_unit.js +255 -0
  253. package/lib/component/hooks/use_axis_unit.js.map +1 -0
  254. package/lib/component/hooks/use_gridlines_config.d.ts +3 -0
  255. package/lib/component/hooks/use_gridlines_config.d.ts.map +1 -0
  256. package/lib/component/hooks/use_gridlines_config.js +15 -0
  257. package/lib/component/hooks/use_gridlines_config.js.map +1 -0
  258. package/lib/component/hooks/use_ticks_config.d.ts +5 -0
  259. package/lib/component/hooks/use_ticks_config.d.ts.map +1 -0
  260. package/lib/component/hooks/use_ticks_config.js +13 -0
  261. package/lib/component/hooks/use_ticks_config.js.map +1 -0
  262. package/lib/component/hooks/use_visible_spectra_1d.d.ts +3 -0
  263. package/lib/component/hooks/use_visible_spectra_1d.d.ts.map +1 -0
  264. package/lib/component/hooks/use_visible_spectra_1d.js +12 -0
  265. package/lib/component/hooks/use_visible_spectra_1d.js.map +1 -0
  266. package/lib/component/loader/useLoadFiles.d.ts +2 -1
  267. package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
  268. package/lib/component/loader/useLoadFiles.js +15 -10
  269. package/lib/component/loader/useLoadFiles.js.map +1 -1
  270. package/lib/component/main/InnerNMRium.d.ts.map +1 -1
  271. package/lib/component/main/InnerNMRium.js +3 -3
  272. package/lib/component/main/InnerNMRium.js.map +1 -1
  273. package/lib/component/main/NMRiumRefAPI.d.ts +2 -0
  274. package/lib/component/main/NMRiumRefAPI.d.ts.map +1 -1
  275. package/lib/component/main/NMRiumRefAPI.js +1 -0
  276. package/lib/component/main/NMRiumRefAPI.js.map +1 -1
  277. package/lib/component/main/NMRiumStateProvider.d.ts +1 -0
  278. package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
  279. package/lib/component/main/NMRiumStateProvider.js +11 -4
  280. package/lib/component/main/NMRiumStateProvider.js.map +1 -1
  281. package/lib/component/main/NMRiumViewer.js.map +1 -1
  282. package/lib/component/modal/MultipletAnalysisModal.d.ts +2 -2
  283. package/lib/component/modal/MultipletAnalysisModal.d.ts.map +1 -1
  284. package/lib/component/modal/MultipletAnalysisModal.js +1 -3
  285. package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
  286. package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
  287. package/lib/component/modal/PublicationStringModal.js +4 -0
  288. package/lib/component/modal/PublicationStringModal.js.map +1 -1
  289. package/lib/component/modal/SaveAsModal.d.ts +0 -2
  290. package/lib/component/modal/SaveAsModal.d.ts.map +1 -1
  291. package/lib/component/modal/SaveAsModal.js +1 -1
  292. package/lib/component/modal/SaveAsModal.js.map +1 -1
  293. package/lib/component/modal/changeSum/SelectMolecule.js.map +1 -1
  294. package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts +2 -1
  295. package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
  296. package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
  297. package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
  298. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
  299. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
  300. package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
  301. package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
  302. package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.d.ts +4 -1
  303. package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.d.ts.map +1 -1
  304. package/lib/component/modal/metaImportation/utils/mapColumnToSelectItems.js.map +1 -1
  305. package/lib/component/modal/setting/WorkspaceItem.js +6 -6
  306. package/lib/component/modal/setting/WorkspaceItem.js.map +1 -1
  307. package/lib/component/modal/setting/general_settings.d.ts +2 -8
  308. package/lib/component/modal/setting/general_settings.d.ts.map +1 -1
  309. package/lib/component/modal/setting/general_settings.js +5 -228
  310. package/lib/component/modal/setting/general_settings.js.map +1 -1
  311. package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +2179 -0
  312. package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts.map +1 -0
  313. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +52 -0
  314. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js.map +1 -0
  315. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +2168 -0
  316. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -0
  317. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js +29 -0
  318. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js.map +1 -0
  319. package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -1
  320. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js +24 -22
  321. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js.map +1 -1
  322. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +1013 -199
  323. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts.map +1 -1
  324. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +5 -2
  325. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -1
  326. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +396 -198
  327. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
  328. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js +2 -8
  329. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js.map +1 -1
  330. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +396 -198
  331. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts.map +1 -1
  332. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +23 -45
  333. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -1
  334. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +63 -253
  335. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts.map +1 -1
  336. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js +2 -8
  337. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.js.map +1 -1
  338. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +396 -198
  339. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts.map +1 -1
  340. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js +21 -17
  341. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js.map +1 -1
  342. package/lib/component/modal/setting/tanstack_general_settings/{general_settings_dialog_header_actions_buttons.d.ts → tabs/axis_tab.d.ts} +403 -205
  343. package/lib/component/modal/setting/tanstack_general_settings/{general_settings_dialog_header_actions_buttons.d.ts.map → tabs/axis_tab.d.ts.map} +1 -1
  344. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.js +43 -0
  345. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.js.map +1 -0
  346. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +396 -198
  347. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -1
  348. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +10 -9
  349. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -1
  350. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +396 -198
  351. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts.map +1 -1
  352. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +396 -198
  353. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -1
  354. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +7 -9
  355. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -1
  356. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +396 -198
  357. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts.map +1 -1
  358. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js +2 -2
  359. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.js.map +1 -1
  360. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +396 -198
  361. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts.map +1 -1
  362. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +396 -198
  363. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts.map +1 -1
  364. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js +10 -8
  365. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.js.map +1 -1
  366. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +396 -198
  367. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts.map +1 -1
  368. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +396 -198
  369. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts.map +1 -1
  370. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +15 -18
  371. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -1
  372. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +396 -198
  373. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
  374. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +10 -10
  375. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -1
  376. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +396 -198
  377. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts.map +1 -1
  378. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_actions.d.ts +7 -0
  379. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_actions.d.ts.map +1 -0
  380. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_actions.js +16 -0
  381. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_actions.js.map +1 -0
  382. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.d.ts +16 -0
  383. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.d.ts.map +1 -0
  384. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.js +26 -0
  385. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.js.map +1 -0
  386. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.d.ts +14 -0
  387. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.d.ts.map +1 -0
  388. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.js +18 -0
  389. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.js.map +1 -0
  390. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_input.d.ts +36 -0
  391. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_input.d.ts.map +1 -0
  392. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_input.js +64 -0
  393. package/lib/component/modal/setting/tanstack_general_settings/ui/cell_input.js.map +1 -0
  394. package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts +1 -54
  395. package/lib/component/modal/setting/tanstack_general_settings/ui/table.d.ts.map +1 -1
  396. package/lib/component/modal/setting/tanstack_general_settings/ui/table.js +2 -79
  397. package/lib/component/modal/setting/tanstack_general_settings/ui/table.js.map +1 -1
  398. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +37 -33
  399. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts.map +1 -1
  400. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js +2 -52
  401. package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.js.map +1 -1
  402. package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.d.ts +95 -0
  403. package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.d.ts.map +1 -0
  404. package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.js +19 -0
  405. package/lib/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.js.map +1 -0
  406. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +18 -4
  407. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts.map +1 -1
  408. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js +4 -0
  409. package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.js.map +1 -1
  410. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +99 -37
  411. package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts.map +1 -1
  412. package/lib/component/modal/setting/tanstack_general_settings/validation.js +3 -2
  413. package/lib/component/modal/setting/tanstack_general_settings/validation.js.map +1 -1
  414. package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.d.ts +3 -0
  415. package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.d.ts.map +1 -0
  416. package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.js +96 -0
  417. package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.js.map +1 -0
  418. package/lib/component/modal/setting/tanstack_general_settings/workspaces/picker.d.ts +3 -0
  419. package/lib/component/modal/setting/tanstack_general_settings/workspaces/picker.d.ts.map +1 -0
  420. package/lib/component/modal/setting/tanstack_general_settings/workspaces/picker.js +55 -0
  421. package/lib/component/modal/setting/tanstack_general_settings/workspaces/picker.js.map +1 -0
  422. package/lib/component/modal/setting/tanstack_general_settings/workspaces/props.d.ts +7 -0
  423. package/lib/component/modal/setting/tanstack_general_settings/workspaces/props.d.ts.map +1 -0
  424. package/lib/component/modal/setting/tanstack_general_settings/workspaces/props.js +2 -0
  425. package/lib/component/modal/setting/tanstack_general_settings/workspaces/props.js.map +1 -0
  426. package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.d.ts.map +1 -1
  427. package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js +3 -3
  428. package/lib/component/panels/AutomaticAssignment/AutomaticAssignmentTable.js.map +1 -1
  429. package/lib/component/panels/IntegralsPanel/IntegralTable.d.ts.map +1 -1
  430. package/lib/component/panels/IntegralsPanel/IntegralTable.js +6 -7
  431. package/lib/component/panels/IntegralsPanel/IntegralTable.js.map +1 -1
  432. package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts.map +1 -1
  433. package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +2 -3
  434. package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js.map +1 -1
  435. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.d.ts.map +1 -1
  436. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js +2 -1
  437. package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.js.map +1 -1
  438. package/lib/component/panels/MoleculesPanel/MoleculeHeader.d.ts.map +1 -1
  439. package/lib/component/panels/MoleculesPanel/MoleculeHeader.js +5 -5
  440. package/lib/component/panels/MoleculesPanel/MoleculeHeader.js.map +1 -1
  441. package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts.map +1 -1
  442. package/lib/component/panels/MoleculesPanel/MoleculePanel.js +1 -1
  443. package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
  444. package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts +1 -1
  445. package/lib/component/panels/MoleculesPanel/MoleculeStructure.d.ts.map +1 -1
  446. package/lib/component/panels/MoleculesPanel/MoleculeStructure.js +9 -4
  447. package/lib/component/panels/MoleculesPanel/MoleculeStructure.js.map +1 -1
  448. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.d.ts.map +1 -1
  449. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +24 -20
  450. package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
  451. package/lib/component/panels/MoleculesPanel/utilities/extractFromAtom.d.ts +3 -3
  452. package/lib/component/panels/MoleculesPanel/utilities/extractFromAtom.js +3 -3
  453. package/lib/component/panels/Panels.d.ts.map +1 -1
  454. package/lib/component/panels/Panels.js.map +1 -1
  455. package/lib/component/panels/PanelsBar.d.ts.map +1 -1
  456. package/lib/component/panels/PanelsBar.js.map +1 -1
  457. package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts +2 -1
  458. package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts.map +1 -1
  459. package/lib/component/panels/PeaksPanel/PeaksPreferences.js +2 -3
  460. package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
  461. package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
  462. package/lib/component/panels/PeaksPanel/PeaksTable.js +3 -3
  463. package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
  464. package/lib/component/panels/RangesPanel/RangesPanel.d.ts +7 -0
  465. package/lib/component/panels/RangesPanel/RangesPanel.d.ts.map +1 -1
  466. package/lib/component/panels/RangesPanel/RangesPanel.js +6 -5
  467. package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
  468. package/lib/component/panels/RangesPanel/RangesPreferences.d.ts +2 -1
  469. package/lib/component/panels/RangesPanel/RangesPreferences.d.ts.map +1 -1
  470. package/lib/component/panels/RangesPanel/RangesPreferences.js +2 -3
  471. package/lib/component/panels/RangesPanel/RangesPreferences.js.map +1 -1
  472. package/lib/component/panels/RangesPanel/RangesTable.d.ts +4 -3
  473. package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
  474. package/lib/component/panels/RangesPanel/RangesTable.js +2 -3
  475. package/lib/component/panels/RangesPanel/RangesTable.js.map +1 -1
  476. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +5 -5
  477. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
  478. package/lib/component/panels/RangesPanel/RangesTableRow.js +8 -3
  479. package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
  480. package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.d.ts +1 -2
  481. package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.d.ts.map +1 -1
  482. package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js +4 -4
  483. package/lib/component/panels/RangesPanel/TableColumns/RelativeColumn.js.map +1 -1
  484. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +1 -1
  485. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
  486. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js +8 -7
  487. package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -1
  488. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.d.ts +1 -2
  489. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.d.ts.map +1 -1
  490. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js +7 -5
  491. package/lib/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
  492. package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts +11 -4
  493. package/lib/component/panels/RangesPanel/hooks/useMapRanges.d.ts.map +1 -1
  494. package/lib/component/panels/RangesPanel/hooks/useMapRanges.js +2 -4
  495. package/lib/component/panels/RangesPanel/hooks/useMapRanges.js.map +1 -1
  496. package/lib/component/panels/SpectraPanel/SpectraTable.d.ts +2 -1
  497. package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
  498. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts +1 -1
  499. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts.map +1 -1
  500. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js +5 -9
  501. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
  502. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts +1 -1
  503. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
  504. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +3 -3
  505. package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
  506. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts +1 -1
  507. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
  508. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +3 -3
  509. package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
  510. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts.map +1 -1
  511. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js.map +1 -1
  512. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts.map +1 -1
  513. package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js.map +1 -1
  514. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts +4 -7
  515. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.d.ts.map +1 -1
  516. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +1 -1
  517. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js.map +1 -1
  518. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts +18 -12
  519. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts.map +1 -1
  520. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +9 -12
  521. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js.map +1 -1
  522. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js +2 -2
  523. package/lib/component/panels/SummaryPanel/SetMolecularFormulaModal.js.map +1 -1
  524. package/lib/component/panels/SummaryPanel/SummaryPanel.js +1 -1
  525. package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
  526. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +1 -1
  527. package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
  528. package/lib/component/panels/SummaryPanel/utilities/Utilities.js +1 -1
  529. package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
  530. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts +1 -1
  531. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.d.ts.map +1 -1
  532. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +2 -1
  533. package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js.map +1 -1
  534. package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts +2 -2
  535. package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.d.ts.map +1 -1
  536. package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js +6 -8
  537. package/lib/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.js.map +1 -1
  538. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.d.ts +1 -1
  539. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.d.ts.map +1 -1
  540. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js +4 -3
  541. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js.map +1 -1
  542. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +1 -1
  543. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +2 -0
  544. package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js.map +1 -1
  545. package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts +1 -1
  546. package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts.map +1 -1
  547. package/lib/component/panels/ZonesPanel/ZonesPreferences.js +2 -3
  548. package/lib/component/panels/ZonesPanel/ZonesPreferences.js.map +1 -1
  549. package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +5 -4
  550. package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts.map +1 -1
  551. package/lib/component/panels/ZonesPanel/ZonesTableRow.js +2 -2
  552. package/lib/component/panels/ZonesPanel/ZonesTableRow.js.map +1 -1
  553. package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
  554. package/lib/component/panels/databasePanel/DatabasePanel.js +56 -56
  555. package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
  556. package/lib/component/panels/databasePanel/DatabasePreferences.d.ts +2 -1
  557. package/lib/component/panels/databasePanel/DatabasePreferences.d.ts.map +1 -1
  558. package/lib/component/panels/databasePanel/DatabasePreferences.js +2 -3
  559. package/lib/component/panels/databasePanel/DatabasePreferences.js.map +1 -1
  560. package/lib/component/panels/databasePanel/DatabaseTable.d.ts +1 -1
  561. package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
  562. package/lib/component/panels/databasePanel/DatabaseTable.js +22 -3
  563. package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
  564. package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts +2 -2
  565. package/lib/component/panels/extra/utilities/MultiplicityUtilities.d.ts.map +1 -1
  566. package/lib/component/panels/extra/utilities/MultiplicityUtilities.js +6 -4
  567. package/lib/component/panels/extra/utilities/MultiplicityUtilities.js.map +1 -1
  568. package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts +3 -3
  569. package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts.map +1 -1
  570. package/lib/component/panels/extra/utilities/settingImperativeHandle.js.map +1 -1
  571. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.d.ts.map +1 -1
  572. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js +61 -19
  573. package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js.map +1 -1
  574. package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.d.ts.map +1 -1
  575. package/lib/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.js.map +1 -1
  576. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
  577. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +1 -1
  578. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
  579. package/lib/component/panels/filtersPanel/Filters/PhaseCorrectionOptionsPanel.js.map +1 -1
  580. package/lib/component/panels/filtersPanel/Filters/PhaseCorrectionTwoDimensionsOptionsPanel.js.map +1 -1
  581. package/lib/component/panels/filtersPanel/Filters/ShiftOptionsPanel.d.ts.map +1 -1
  582. package/lib/component/panels/filtersPanel/Filters/ShiftOptionsPanel.js.map +1 -1
  583. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
  584. package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.d.ts.map +1 -1
  585. package/lib/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.js.map +1 -1
  586. package/lib/component/panels/filtersPanel/Filters/base/baselineCorrectionFields.d.ts +49 -0
  587. package/lib/component/panels/filtersPanel/Filters/base/baselineCorrectionFields.d.ts.map +1 -0
  588. package/lib/component/panels/filtersPanel/Filters/base/baselineCorrectionFields.js +2 -0
  589. package/lib/component/panels/filtersPanel/Filters/base/baselineCorrectionFields.js.map +1 -0
  590. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +128 -48
  591. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
  592. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js +106 -41
  593. package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js.map +1 -1
  594. package/lib/component/panels/header/DefaultPanelHeader.js +1 -3
  595. package/lib/component/panels/header/DefaultPanelHeader.js.map +1 -1
  596. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts.map +1 -1
  597. package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
  598. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.d.ts +1 -1
  599. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.d.ts.map +1 -1
  600. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js +2 -1
  601. package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js.map +1 -1
  602. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisCell.d.ts +3 -3
  603. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisCell.d.ts.map +1 -1
  604. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisCell.js +2 -2
  605. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisCell.js.map +1 -1
  606. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.d.ts +4 -3
  607. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.d.ts.map +1 -1
  608. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js +2 -2
  609. package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js.map +1 -1
  610. package/lib/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.js.map +1 -1
  611. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts +2 -1
  612. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts.map +1 -1
  613. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js +2 -3
  614. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js.map +1 -1
  615. package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts +2 -1
  616. package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts.map +1 -1
  617. package/lib/component/panels/predictionPanel/PredictionPreferences.js +2 -3
  618. package/lib/component/panels/predictionPanel/PredictionPreferences.js.map +1 -1
  619. package/lib/component/reducer/Reducer.d.ts.map +1 -1
  620. package/lib/component/reducer/Reducer.js +13 -8
  621. package/lib/component/reducer/Reducer.js.map +1 -1
  622. package/lib/component/reducer/actions/CorrelationsActions.js +1 -1
  623. package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
  624. package/lib/component/reducer/actions/DatabaseActions.d.ts +8 -11
  625. package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
  626. package/lib/component/reducer/actions/DatabaseActions.js +87 -51
  627. package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
  628. package/lib/component/reducer/actions/DomainActions.js.map +1 -1
  629. package/lib/component/reducer/actions/FiltersActions.d.ts +4 -3
  630. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  631. package/lib/component/reducer/actions/FiltersActions.js +66 -68
  632. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  633. package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
  634. package/lib/component/reducer/actions/InsetActions.js +8 -8
  635. package/lib/component/reducer/actions/InsetActions.js.map +1 -1
  636. package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
  637. package/lib/component/reducer/actions/LoadAction.js +21 -2
  638. package/lib/component/reducer/actions/LoadAction.js.map +1 -1
  639. package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
  640. package/lib/component/reducer/actions/MoleculeActions.js +9 -6
  641. package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
  642. package/lib/component/reducer/actions/PeaksActions.js +1 -2
  643. package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
  644. package/lib/component/reducer/actions/PreferencesActions.d.ts +1 -1
  645. package/lib/component/reducer/actions/RangesActions.d.ts +3 -3
  646. package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
  647. package/lib/component/reducer/actions/RangesActions.js +6 -3
  648. package/lib/component/reducer/actions/RangesActions.js.map +1 -1
  649. package/lib/component/reducer/actions/SpectraActions.d.ts +2 -1
  650. package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
  651. package/lib/component/reducer/actions/SpectraActions.js +26 -15
  652. package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
  653. package/lib/component/reducer/actions/ToolsActions.d.ts +2 -14
  654. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  655. package/lib/component/reducer/actions/ToolsActions.js +5 -35
  656. package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
  657. package/lib/component/reducer/actions/unit_actions.d.ts +28 -0
  658. package/lib/component/reducer/actions/unit_actions.d.ts.map +1 -0
  659. package/lib/component/reducer/actions/unit_actions.js +58 -0
  660. package/lib/component/reducer/actions/unit_actions.js.map +1 -0
  661. package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
  662. package/lib/component/reducer/helper/Zoom1DManager.js +2 -2
  663. package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
  664. package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
  665. package/lib/component/reducer/helper/ZoomHistoryManager.js +1 -2
  666. package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
  667. package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js +1 -1
  668. package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js.map +1 -1
  669. package/lib/component/reducer/preferences/actions/addWorkspace.js.map +1 -1
  670. package/lib/component/reducer/preferences/actions/analyzeSpectra.js.map +1 -1
  671. package/lib/component/reducer/preferences/actions/setWorkspace.js.map +1 -1
  672. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +1 -1
  673. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
  674. package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts +3 -2
  675. package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts.map +1 -1
  676. package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js +3 -2
  677. package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js.map +1 -1
  678. package/lib/component/utility/Evaluate.d.ts +1 -1
  679. package/lib/component/utility/Evaluate.d.ts.map +1 -1
  680. package/lib/component/utility/Evaluate.js.map +1 -1
  681. package/lib/component/utility/LocalStorage.d.ts +3 -3
  682. package/lib/component/utility/LocalStorage.d.ts.map +1 -1
  683. package/lib/component/utility/LocalStorage.js.map +1 -1
  684. package/lib/component/utility/convertPathArrayToString.d.ts +1 -1
  685. package/lib/component/utility/convertPathArrayToString.d.ts.map +1 -1
  686. package/lib/component/utility/convertPathArrayToString.js.map +1 -1
  687. package/lib/component/utility/export.d.ts +3 -3
  688. package/lib/component/utility/export.d.ts.map +1 -1
  689. package/lib/component/utility/export.js +5 -6
  690. package/lib/component/utility/export.js.map +1 -1
  691. package/lib/component/utility/merge_replace_array.d.ts +8 -0
  692. package/lib/component/utility/merge_replace_array.d.ts.map +1 -0
  693. package/lib/component/utility/merge_replace_array.js +14 -0
  694. package/lib/component/utility/merge_replace_array.js.map +1 -0
  695. package/lib/component/utility/nucleusToString.d.ts +1 -1
  696. package/lib/component/utility/nucleusToString.d.ts.map +1 -1
  697. package/lib/component/utility/nucleusToString.js.map +1 -1
  698. package/lib/component/utility/replaceNucleiObjectKeys.js.map +1 -1
  699. package/lib/component/utility/stackOverlappingLabels.d.ts +5 -0
  700. package/lib/component/utility/stackOverlappingLabels.d.ts.map +1 -1
  701. package/lib/component/utility/stackOverlappingLabels.js +18 -6
  702. package/lib/component/utility/stackOverlappingLabels.js.map +1 -1
  703. package/lib/component/workspaces/exercise.d.ts.map +1 -1
  704. package/lib/component/workspaces/exercise.js +8 -0
  705. package/lib/component/workspaces/exercise.js.map +1 -1
  706. package/lib/component/workspaces/index.d.ts +7 -7
  707. package/lib/component/workspaces/index.d.ts.map +1 -1
  708. package/lib/component/workspaces/index.js.map +1 -1
  709. package/lib/component/workspaces/prediction.d.ts.map +1 -1
  710. package/lib/component/workspaces/prediction.js +8 -0
  711. package/lib/component/workspaces/prediction.js.map +1 -1
  712. package/lib/component/workspaces/simulation.d.ts.map +1 -1
  713. package/lib/component/workspaces/simulation.js +8 -0
  714. package/lib/component/workspaces/simulation.js.map +1 -1
  715. package/lib/component/workspaces/workspaceDefaultProperties.d.ts +3 -1
  716. package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
  717. package/lib/component/workspaces/workspaceDefaultProperties.js +53 -0
  718. package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
  719. package/lib/data/PredictionManager.d.ts.map +1 -1
  720. package/lib/data/PredictionManager.js +9 -2
  721. package/lib/data/PredictionManager.js.map +1 -1
  722. package/lib/data/SpectraManager.d.ts +1 -2
  723. package/lib/data/SpectraManager.d.ts.map +1 -1
  724. package/lib/data/SpectraManager.js +3 -36
  725. package/lib/data/SpectraManager.js.map +1 -1
  726. package/lib/data/data1d/Spectrum1D/get1DColor.d.ts +2 -2
  727. package/lib/data/data1d/Spectrum1D/get1DColor.d.ts.map +1 -1
  728. package/lib/data/data1d/Spectrum1D/get1DColor.js +6 -7
  729. package/lib/data/data1d/Spectrum1D/get1DColor.js.map +1 -1
  730. package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts +0 -5
  731. package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts.map +1 -1
  732. package/lib/data/data1d/Spectrum1D/get1DDataXY.js +0 -5
  733. package/lib/data/data1d/Spectrum1D/get1DDataXY.js.map +1 -1
  734. package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts +4 -9
  735. package/lib/data/data1d/Spectrum1D/getReferenceShift.d.ts.map +1 -1
  736. package/lib/data/data1d/Spectrum1D/getReferenceShift.js +3 -9
  737. package/lib/data/data1d/Spectrum1D/getReferenceShift.js.map +1 -1
  738. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +11 -2
  739. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts.map +1 -1
  740. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +2 -2
  741. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js.map +1 -1
  742. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts.map +1 -1
  743. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js.map +1 -1
  744. package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts +2 -2
  745. package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.js +2 -2
  746. package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts +4 -2
  747. package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts.map +1 -1
  748. package/lib/data/data1d/Spectrum1D/ranges/detectSignals.js +1 -1
  749. package/lib/data/data1d/Spectrum1D/ranges/detectSignals.js.map +1 -1
  750. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.d.ts +7 -1
  751. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.d.ts.map +1 -1
  752. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js +1 -1
  753. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js.map +1 -1
  754. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.d.ts.map +1 -1
  755. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js +4 -2
  756. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.map +1 -1
  757. package/lib/data/data1d/database.js.map +1 -1
  758. package/lib/data/data1d/multipleSpectraAnalysis.d.ts +7 -1
  759. package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
  760. package/lib/data/data1d/multipleSpectraAnalysis.js +3 -3
  761. package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
  762. package/lib/data/data2d/Spectrum2D/contours.d.ts +4 -3
  763. package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
  764. package/lib/data/data2d/Spectrum2D/contours.js +8 -4
  765. package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
  766. package/lib/data/data2d/Spectrum2D/get2DColor.d.ts +2 -2
  767. package/lib/data/data2d/Spectrum2D/get2DColor.d.ts.map +1 -1
  768. package/lib/data/data2d/Spectrum2D/get2DColor.js +8 -9
  769. package/lib/data/data2d/Spectrum2D/get2DColor.js.map +1 -1
  770. package/lib/data/data2d/Spectrum2D/getMissingProjection.js +2 -2
  771. package/lib/data/data2d/Spectrum2D/getMissingProjection.js.map +1 -1
  772. package/lib/data/data2d/Spectrum2D/getSlice.d.ts +6 -4
  773. package/lib/data/data2d/Spectrum2D/getSlice.d.ts.map +1 -1
  774. package/lib/data/data2d/Spectrum2D/getSlice.js.map +1 -1
  775. package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
  776. package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js +1 -1
  777. package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.js.map +1 -1
  778. package/lib/data/molecules/Molecule.js +2 -2
  779. package/lib/data/molecules/Molecule.js.map +1 -1
  780. package/lib/data/parseMeta/linkMetaWithSpectra.d.ts +1 -1
  781. package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
  782. package/lib/data/parseMeta/linkMetaWithSpectra.js +2 -2
  783. package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
  784. package/lib/data/utilities/RangeUtilities.d.ts +0 -8
  785. package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
  786. package/lib/data/utilities/RangeUtilities.js.map +1 -1
  787. package/lib/data/utilities/checkModifierKeyActivated.d.ts +1 -1
  788. package/lib/data/utilities/checkModifierKeyActivated.d.ts.map +1 -1
  789. package/lib/data/utilities/checkModifierKeyActivated.js.map +1 -1
  790. package/lib/data/utilities/isNumber.d.ts +1 -1
  791. package/lib/data/utilities/isNumber.d.ts.map +1 -1
  792. package/lib/data/utilities/isNumber.js.map +1 -1
  793. package/lib/versionInfo.js +1 -1
  794. package/package.json +48 -48
  795. package/src/component/1d/BrushTracker1D.tsx +18 -12
  796. package/src/component/1d/FloatPublicationString.tsx +52 -34
  797. package/src/component/1d/HorizontalAxis1D.tsx +69 -0
  798. package/src/component/1d/Line.tsx +1 -1
  799. package/src/component/1d/LinesSeries.tsx +2 -17
  800. package/src/component/1d/SVGContent1D.tsx +2 -4
  801. package/src/component/1d/Viewer1D.tsx +2 -0
  802. package/src/component/1d/baseline/BaselinePreview.tsx +242 -0
  803. package/src/component/1d/baseline/getMedianWindow.ts +6 -0
  804. package/src/component/1d/baseline/getMedianY.ts +15 -0
  805. package/src/component/1d/database/DatabaseElements.tsx +9 -4
  806. package/src/component/1d/database/DatabaseSpectrum.tsx +8 -2
  807. package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +8 -2
  808. package/src/component/1d/integral/IntegralsSeries.tsx +1 -1
  809. package/src/component/1d/jCouplingGraph/JGraphVerticalAxis.tsx +1 -1
  810. package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +6 -5
  811. package/src/component/1d/peaks/PeakAnnotations.tsx +1 -1
  812. package/src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx +3 -0
  813. package/src/component/1d/peaks/PeakEditionManager.tsx +2 -5
  814. package/src/component/1d/peaks/usePeakShapesPath.ts +1 -1
  815. package/src/component/1d/ranges/Range.tsx +3 -3
  816. package/src/component/1d/ranges/Ranges.tsx +2 -2
  817. package/src/component/1d/tool/BaseLine.tsx +1 -1
  818. package/src/component/1d/tool/PeakPointer.tsx +3 -1
  819. package/src/component/1d/utilities/scale.ts +20 -13
  820. package/src/component/1d-2d/FieldEdition.tsx +2 -2
  821. package/src/component/1d-2d/components/axis_unit_picker.tsx +53 -0
  822. package/src/component/1d-2d/tools/BrushXY.tsx +6 -6
  823. package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +1 -1
  824. package/src/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.tsx +2 -2
  825. package/src/component/2d/DirectAxis2D.tsx +104 -0
  826. package/src/component/2d/IndirectAxis2D.tsx +139 -0
  827. package/src/component/2d/SVGContent2D.tsx +4 -4
  828. package/src/component/2d/fid/FidCanvas.tsx +2 -2
  829. package/src/component/2d/utilities/extractSpectrumSignals.ts +2 -2
  830. package/src/component/2d/utilities/scale.ts +26 -6
  831. package/src/component/2d/zones/Signal.tsx +8 -12
  832. package/src/component/2d/zones/SignalCrosshair.tsx +3 -2
  833. package/src/component/2d/zones/SignalsGuideLines.tsx +2 -2
  834. package/src/component/2d/zones/Zone.tsx +4 -4
  835. package/src/component/EventsTrackers/BrushTracker.tsx +15 -7
  836. package/src/component/EventsTrackers/KeysListenerTracker.tsx +115 -128
  837. package/src/component/EventsTrackers/MouseTracker.tsx +10 -14
  838. package/src/component/SVGTable.tsx +5 -5
  839. package/src/component/assignment/utilities/getAssignments.ts +1 -1
  840. package/src/component/context/DispatchContext.tsx +3 -1
  841. package/src/component/context/FilterSyncOptionsContext.tsx +62 -20
  842. package/src/component/context/ScaleContext.tsx +17 -15
  843. package/src/component/context/SortSpectraContext.tsx +1 -1
  844. package/src/component/elements/ActionsButtonsPopover.tsx +3 -4
  845. package/src/component/elements/Alert.tsx +2 -2
  846. package/src/component/elements/Anchor.tsx +361 -0
  847. package/src/component/elements/Button.tsx +2 -1
  848. package/src/component/elements/ColumnWrapper.tsx +3 -1
  849. package/src/component/elements/ContextMenuBluePrint.tsx +2 -2
  850. package/src/component/elements/D3Axis.tsx +118 -47
  851. package/src/component/elements/DialogManager.tsx +1 -1
  852. package/src/component/elements/DraggableDialog.tsx +3 -3
  853. package/src/component/elements/EditableColumn.tsx +22 -16
  854. package/src/component/elements/Input.tsx +3 -2
  855. package/src/component/elements/InputRange.tsx +3 -3
  856. package/src/component/elements/Label.tsx +1 -1
  857. package/src/component/elements/MoleculeSelection.tsx +1 -1
  858. package/src/component/elements/NumberInput2.tsx +2 -2
  859. package/src/component/elements/NumberInput2Controller.tsx +1 -1
  860. package/src/component/elements/NumberInputField.tsx +23 -0
  861. package/src/component/elements/ReactTable/Elements/EmptyDataRow.tsx +8 -3
  862. package/src/component/elements/ReactTable/Elements/ReactTableRow.tsx +23 -11
  863. package/src/component/elements/ReactTable/ReactTable.tsx +44 -14
  864. package/src/component/elements/ReactTable/utility/addCustomColumn.tsx +2 -2
  865. package/src/component/elements/ReadOnly.tsx +3 -3
  866. package/src/component/elements/Sections.tsx +2 -2
  867. package/src/component/elements/Tab/DeleteButton.tsx +2 -2
  868. package/src/component/elements/TabTitle.tsx +2 -2
  869. package/src/component/elements/dropDownButton/DropDownButton.tsx +1 -1
  870. package/src/component/elements/export/ExportContent.tsx +12 -32
  871. package/src/component/elements/export/ExportOptionsModal.tsx +1 -1
  872. package/src/component/elements/export/units.ts +1 -1
  873. package/src/component/elements/export/useExportConfigurer.tsx +1 -1
  874. package/src/component/elements/resizer/SVGResizer.tsx +3 -3
  875. package/src/component/header/Header.tsx +2 -2
  876. package/src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx +144 -84
  877. package/src/component/highlight/index.tsx +57 -38
  878. package/src/component/hooks/use2DReducer.tsx +2 -2
  879. package/src/component/hooks/useCheckToolsVisibility.ts +1 -1
  880. package/src/component/hooks/useCombinedRefs.ts +1 -0
  881. package/src/component/hooks/useFilter.ts +1 -2
  882. package/src/component/hooks/useSVGUnitConverter.ts +1 -1
  883. package/src/component/hooks/useSaveSettings.tsx +8 -5
  884. package/src/component/hooks/useTableSortBy.tsx +12 -8
  885. package/src/component/hooks/useTriggerNewAssignmentLabel.ts +1 -1
  886. package/src/component/hooks/use_axis_unit.ts +329 -0
  887. package/src/component/hooks/use_gridlines_config.ts +18 -0
  888. package/src/component/hooks/use_ticks_config.ts +15 -0
  889. package/src/component/hooks/use_visible_spectra_1d.ts +21 -0
  890. package/src/component/loader/useLoadFiles.ts +24 -18
  891. package/src/component/main/InnerNMRium.tsx +3 -2
  892. package/src/component/main/NMRiumRefAPI.ts +4 -0
  893. package/src/component/main/NMRiumStateProvider.tsx +13 -3
  894. package/src/component/main/NMRiumViewer.tsx +1 -1
  895. package/src/component/modal/MultipletAnalysisModal.tsx +2 -2
  896. package/src/component/modal/PublicationStringModal.tsx +10 -1
  897. package/src/component/modal/SaveAsModal.tsx +1 -1
  898. package/src/component/modal/changeSum/SelectMolecule.tsx +1 -1
  899. package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +3 -2
  900. package/src/component/modal/editRange/forms/components/SignalsContent.tsx +3 -3
  901. package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +4 -4
  902. package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +7 -3
  903. package/src/component/modal/metaImportation/MetaImportationModal.tsx +2 -2
  904. package/src/component/modal/metaImportation/utils/mapColumnToSelectItems.ts +1 -1
  905. package/src/component/modal/setting/WorkspaceItem.tsx +7 -7
  906. package/src/component/modal/setting/general_settings.tsx +12 -503
  907. package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +94 -0
  908. package/src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx +56 -0
  909. package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +37 -30
  910. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +11 -1
  911. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.tsx +15 -20
  912. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +41 -82
  913. package/src/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.ts +3 -9
  914. package/src/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.tsx +36 -42
  915. package/src/component/modal/setting/tanstack_general_settings/tabs/axis_tab.tsx +116 -0
  916. package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +10 -33
  917. package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +7 -34
  918. package/src/component/modal/setting/tanstack_general_settings/tabs/general_tab.tsx +9 -3
  919. package/src/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.tsx +10 -50
  920. package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +15 -69
  921. package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +11 -41
  922. package/src/component/modal/setting/tanstack_general_settings/ui/cell_actions.tsx +18 -0
  923. package/src/component/modal/setting/tanstack_general_settings/ui/cell_checkbox.tsx +45 -0
  924. package/src/component/modal/setting/tanstack_general_settings/ui/cell_color_picker.tsx +42 -0
  925. package/src/component/modal/setting/tanstack_general_settings/ui/cell_input.tsx +127 -0
  926. package/src/component/modal/setting/tanstack_general_settings/ui/table.tsx +3 -95
  927. package/src/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.ts +2 -54
  928. package/src/component/modal/setting/tanstack_general_settings/validation/axis_tab_validation.ts +24 -0
  929. package/src/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.ts +4 -0
  930. package/src/component/modal/setting/tanstack_general_settings/validation.ts +3 -2
  931. package/src/component/modal/setting/tanstack_general_settings/workspaces/actions.tsx +173 -0
  932. package/src/component/modal/setting/tanstack_general_settings/workspaces/picker.tsx +91 -0
  933. package/src/component/modal/setting/tanstack_general_settings/workspaces/props.ts +8 -0
  934. package/src/component/panels/AutomaticAssignment/AutomaticAssignmentTable.tsx +4 -3
  935. package/src/component/panels/IntegralsPanel/IntegralTable.tsx +11 -10
  936. package/src/component/panels/IntegralsPanel/IntegralsPreferences.tsx +63 -60
  937. package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanelHeader.tsx +6 -1
  938. package/src/component/panels/MoleculesPanel/MoleculeHeader.tsx +7 -6
  939. package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +1 -0
  940. package/src/component/panels/MoleculesPanel/MoleculeStructure.tsx +10 -5
  941. package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +38 -33
  942. package/src/component/panels/MoleculesPanel/utilities/extractFromAtom.ts +3 -3
  943. package/src/component/panels/Panels.tsx +2 -1
  944. package/src/component/panels/PanelsBar.tsx +4 -3
  945. package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +34 -33
  946. package/src/component/panels/PeaksPanel/PeaksTable.tsx +9 -8
  947. package/src/component/panels/RangesPanel/RangesPanel.tsx +19 -16
  948. package/src/component/panels/RangesPanel/RangesPreferences.tsx +47 -46
  949. package/src/component/panels/RangesPanel/RangesTable.tsx +5 -5
  950. package/src/component/panels/RangesPanel/RangesTableRow.tsx +19 -15
  951. package/src/component/panels/RangesPanel/TableColumns/RelativeColumn.tsx +4 -10
  952. package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +9 -9
  953. package/src/component/panels/RangesPanel/TableColumns/SignalDeltaColumn.tsx +8 -11
  954. package/src/component/panels/RangesPanel/hooks/useMapRanges.ts +16 -7
  955. package/src/component/panels/SpectraPanel/SpectraTable.tsx +2 -2
  956. package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +7 -10
  957. package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +3 -6
  958. package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +4 -7
  959. package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.tsx +5 -4
  960. package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.tsx +3 -2
  961. package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.tsx +4 -11
  962. package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.tsx +32 -27
  963. package/src/component/panels/SummaryPanel/SetMolecularFormulaModal.tsx +15 -7
  964. package/src/component/panels/SummaryPanel/SummaryPanel.tsx +1 -1
  965. package/src/component/panels/SummaryPanel/utilities/Utilities.ts +1 -1
  966. package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.tsx +4 -7
  967. package/src/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.tsx +6 -9
  968. package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.tsx +6 -5
  969. package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.tsx +5 -1
  970. package/src/component/panels/ZonesPanel/ZonesPreferences.tsx +57 -57
  971. package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +11 -12
  972. package/src/component/panels/databasePanel/DatabasePanel.tsx +72 -66
  973. package/src/component/panels/databasePanel/DatabasePreferences.tsx +114 -113
  974. package/src/component/panels/databasePanel/DatabaseTable.tsx +34 -3
  975. package/src/component/panels/extra/utilities/MultiplicityUtilities.ts +9 -6
  976. package/src/component/panels/extra/utilities/settingImperativeHandle.ts +3 -3
  977. package/src/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.tsx +328 -81
  978. package/src/component/panels/filtersPanel/Filters/ExclusionZonesOptionsPanel.tsx +4 -3
  979. package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +4 -6
  980. package/src/component/panels/filtersPanel/Filters/PhaseCorrectionOptionsPanel.tsx +3 -3
  981. package/src/component/panels/filtersPanel/Filters/PhaseCorrectionTwoDimensionsOptionsPanel.tsx +3 -3
  982. package/src/component/panels/filtersPanel/Filters/ShiftOptionsPanel.tsx +3 -2
  983. package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +4 -4
  984. package/src/component/panels/filtersPanel/Filters/base/BaseZeroFillingOptions.tsx +3 -2
  985. package/src/component/panels/filtersPanel/Filters/base/baselineCorrectionFields.ts +55 -0
  986. package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +148 -69
  987. package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +2 -1
  988. package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.tsx +18 -12
  989. package/src/component/panels/multipleAnalysisPanel/base/AnalysisCell.tsx +3 -4
  990. package/src/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.tsx +5 -10
  991. package/src/component/panels/multipleAnalysisPanel/preferences/MultipleAnalysisCodeEditor.tsx +1 -1
  992. package/src/component/panels/predictionPanel/PredictionOptionsPanel.tsx +138 -109
  993. package/src/component/panels/predictionPanel/PredictionPreferences.tsx +34 -34
  994. package/src/component/reducer/Reducer.ts +22 -10
  995. package/src/component/reducer/actions/CorrelationsActions.ts +1 -1
  996. package/src/component/reducer/actions/DatabaseActions.ts +131 -81
  997. package/src/component/reducer/actions/DomainActions.ts +4 -4
  998. package/src/component/reducer/actions/FiltersActions.ts +85 -96
  999. package/src/component/reducer/actions/InsetActions.ts +8 -5
  1000. package/src/component/reducer/actions/LoadAction.ts +25 -1
  1001. package/src/component/reducer/actions/MoleculeActions.ts +9 -6
  1002. package/src/component/reducer/actions/PeaksActions.ts +1 -1
  1003. package/src/component/reducer/actions/PreferencesActions.ts +1 -1
  1004. package/src/component/reducer/actions/RangesActions.ts +9 -6
  1005. package/src/component/reducer/actions/SpectraActions.ts +42 -16
  1006. package/src/component/reducer/actions/ToolsActions.ts +4 -74
  1007. package/src/component/reducer/actions/unit_actions.ts +138 -0
  1008. package/src/component/reducer/helper/Zoom1DManager.ts +2 -1
  1009. package/src/component/reducer/helper/ZoomHistoryManager.ts +1 -2
  1010. package/src/component/reducer/helper/removeSpectrumRelatedObjectsById.ts +1 -1
  1011. package/src/component/reducer/preferences/actions/addWorkspace.ts +1 -1
  1012. package/src/component/reducer/preferences/actions/analyzeSpectra.ts +1 -1
  1013. package/src/component/reducer/preferences/actions/setWorkspace.ts +1 -1
  1014. package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +1 -1
  1015. package/src/component/reducer/preferences/utilities/getPreferencesByWorkspace.ts +8 -8
  1016. package/src/component/utility/Evaluate.ts +1 -1
  1017. package/src/component/utility/LocalStorage.ts +6 -3
  1018. package/src/component/utility/convertPathArrayToString.ts +1 -1
  1019. package/src/component/utility/export.ts +13 -12
  1020. package/src/component/utility/merge_replace_array.ts +12 -0
  1021. package/src/component/utility/nucleusToString.ts +1 -1
  1022. package/src/component/utility/replaceNucleiObjectKeys.ts +1 -1
  1023. package/src/component/utility/stackOverlappingLabels.ts +27 -9
  1024. package/src/component/workspaces/exercise.ts +8 -0
  1025. package/src/component/workspaces/index.ts +1 -1
  1026. package/src/component/workspaces/prediction.ts +8 -0
  1027. package/src/component/workspaces/simulation.ts +8 -0
  1028. package/src/component/workspaces/workspaceDefaultProperties.ts +64 -14
  1029. package/src/data/PredictionManager.ts +29 -7
  1030. package/src/data/SpectraManager.ts +3 -44
  1031. package/src/data/data1d/Spectrum1D/get1DColor.ts +12 -14
  1032. package/src/data/data1d/Spectrum1D/get1DDataXY.ts +0 -7
  1033. package/src/data/data1d/Spectrum1D/getReferenceShift.ts +5 -10
  1034. package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +17 -6
  1035. package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +3 -7
  1036. package/src/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.ts +2 -2
  1037. package/src/data/data1d/Spectrum1D/ranges/detectSignals.ts +11 -8
  1038. package/src/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.ts +9 -3
  1039. package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +4 -0
  1040. package/src/data/data1d/database.ts +1 -1
  1041. package/src/data/data1d/multipleSpectraAnalysis.ts +20 -7
  1042. package/src/data/data2d/Spectrum2D/contours.ts +14 -9
  1043. package/src/data/data2d/Spectrum2D/get2DColor.ts +10 -15
  1044. package/src/data/data2d/Spectrum2D/getMissingProjection.ts +2 -2
  1045. package/src/data/data2d/Spectrum2D/getSlice.ts +6 -5
  1046. package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +1 -1
  1047. package/src/data/data2d/Spectrum2D/zones/changeZoneSignal.ts +2 -2
  1048. package/src/data/molecules/Molecule.ts +2 -2
  1049. package/src/data/parseMeta/linkMetaWithSpectra.ts +4 -4
  1050. package/src/data/utilities/RangeUtilities.ts +1 -9
  1051. package/src/data/utilities/checkModifierKeyActivated.ts +1 -1
  1052. package/src/data/utilities/isNumber.ts +1 -1
  1053. package/src/versionInfo.ts +1 -1
  1054. package/lib/component/1d/XAxis1D.d.ts +0 -6
  1055. package/lib/component/1d/XAxis1D.d.ts.map +0 -1
  1056. package/lib/component/1d/XAxis1D.js +0 -24
  1057. package/lib/component/1d/XAxis1D.js.map +0 -1
  1058. package/lib/component/1d/tool/BaseLineZones.d.ts +0 -3
  1059. package/lib/component/1d/tool/BaseLineZones.d.ts.map +0 -1
  1060. package/lib/component/1d/tool/BaseLineZones.js +0 -41
  1061. package/lib/component/1d/tool/BaseLineZones.js.map +0 -1
  1062. package/lib/component/2d/XAxis.d.ts.map +0 -1
  1063. package/lib/component/2d/XAxis.js +0 -22
  1064. package/lib/component/2d/XAxis.js.map +0 -1
  1065. package/lib/component/2d/YAxis.d.ts +0 -12
  1066. package/lib/component/2d/YAxis.d.ts.map +0 -1
  1067. package/lib/component/2d/YAxis.js +0 -27
  1068. package/lib/component/2d/YAxis.js.map +0 -1
  1069. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts +0 -9
  1070. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts.map +0 -1
  1071. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js +0 -118
  1072. package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.js.map +0 -1
  1073. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.d.ts +0 -3
  1074. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.d.ts.map +0 -1
  1075. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +0 -153
  1076. package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +0 -1
  1077. package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts +0 -2
  1078. package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts.map +0 -1
  1079. package/lib/component/modal/setting/settings-tabs/ExportTabContent.js +0 -73
  1080. package/lib/component/modal/setting/settings-tabs/ExportTabContent.js.map +0 -1
  1081. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.d.ts +0 -2
  1082. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.d.ts.map +0 -1
  1083. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js +0 -89
  1084. package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js.map +0 -1
  1085. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts +0 -3
  1086. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts.map +0 -1
  1087. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +0 -46
  1088. package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js.map +0 -1
  1089. package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.d.ts +0 -3
  1090. package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.d.ts.map +0 -1
  1091. package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js +0 -103
  1092. package/lib/component/modal/setting/settings-tabs/ImportationFiltersTabContent.js.map +0 -1
  1093. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts +0 -3
  1094. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.d.ts.map +0 -1
  1095. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +0 -99
  1096. package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +0 -1
  1097. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.d.ts +0 -2
  1098. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.d.ts.map +0 -1
  1099. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js +0 -106
  1100. package/lib/component/modal/setting/settings-tabs/NucleiTabContent.js.map +0 -1
  1101. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts +0 -3
  1102. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts.map +0 -1
  1103. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +0 -52
  1104. package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +0 -1
  1105. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.d.ts +0 -3
  1106. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.d.ts.map +0 -1
  1107. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js +0 -138
  1108. package/lib/component/modal/setting/settings-tabs/SpectraColorsTabContent.js.map +0 -1
  1109. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.d.ts +0 -2
  1110. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.d.ts.map +0 -1
  1111. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js +0 -149
  1112. package/lib/component/modal/setting/settings-tabs/ToolsTabContent.js.map +0 -1
  1113. package/lib/component/modal/setting/settingsValidation.d.ts +0 -2
  1114. package/lib/component/modal/setting/settingsValidation.d.ts.map +0 -1
  1115. package/lib/component/modal/setting/settingsValidation.js +0 -70
  1116. package/lib/component/modal/setting/settingsValidation.js.map +0 -1
  1117. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js +0 -110
  1118. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.js.map +0 -1
  1119. package/lib/data/types/common/Keys.d.ts +0 -4
  1120. package/lib/data/types/common/Keys.d.ts.map +0 -1
  1121. package/lib/data/types/common/Keys.js +0 -2
  1122. package/lib/data/types/common/Keys.js.map +0 -1
  1123. package/src/component/1d/XAxis1D.tsx +0 -54
  1124. package/src/component/1d/tool/BaseLineZones.tsx +0 -83
  1125. package/src/component/2d/XAxis.tsx +0 -58
  1126. package/src/component/2d/YAxis.tsx +0 -79
  1127. package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +0 -278
  1128. package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +0 -221
  1129. package/src/component/modal/setting/settings-tabs/ExportTabContent.tsx +0 -252
  1130. package/src/component/modal/setting/settings-tabs/ExternalAPIsTabContent.tsx +0 -193
  1131. package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +0 -152
  1132. package/src/component/modal/setting/settings-tabs/ImportationFiltersTabContent.tsx +0 -173
  1133. package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +0 -224
  1134. package/src/component/modal/setting/settings-tabs/NucleiTabContent.tsx +0 -230
  1135. package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +0 -113
  1136. package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +0 -308
  1137. package/src/component/modal/setting/settings-tabs/ToolsTabContent.tsx +0 -181
  1138. package/src/component/modal/setting/settingsValidation.ts +0 -92
  1139. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header_actions_buttons.tsx +0 -199
  1140. package/src/data/types/common/Keys.ts +0 -11
@@ -0,0 +1,255 @@
1
+ import { axisUnits1DFid, axisUnits1DFt, axisUnits2DFid, axisUnits2DFt, defaultAxisUnit1DFid, defaultAxisUnit1DFt, defaultAxisUnit2DFid, defaultAxisUnit2DFt, } from '@zakodium/nmrium-core';
2
+ import { scaleLinear } from 'd3-scale';
3
+ import { useCallback, useMemo } from 'react';
4
+ import { assert, assertUnreachable } from 'react-science/ui';
5
+ import { match } from 'ts-pattern';
6
+ import { isSpectrum2D } from "../../data/data2d/Spectrum2D/index.js";
7
+ import { useScale2DX, useScale2DY } from "../2d/utilities/scale.js";
8
+ import { useChartData } from "../context/ChartContext.js";
9
+ import { useDispatch } from "../context/DispatchContext.js";
10
+ import { useScaleChecked } from "../context/ScaleContext.js";
11
+ import { useActiveNucleusTab } from "./useActiveNucleusTab.js";
12
+ import { useActiveSpectra } from "./useActiveSpectra.js";
13
+ import useSpectrum from "./useSpectrum.js";
14
+ import { useVisibleSpectra1D } from "./use_visible_spectra_1d.js";
15
+ export const axisUnitToLabel = {
16
+ s: 'time [s]',
17
+ hz: 'frequency [Hz]',
18
+ ppm: 'δ [ppm]',
19
+ pt: 'index [pt]',
20
+ };
21
+ function assertIn(value, values) {
22
+ if (values.includes(value))
23
+ return;
24
+ throw new Error(`Value ${String(value)} is not in [${values.join(',')}]`);
25
+ }
26
+ export function useHorizontalAxisUnit() {
27
+ const { originDomain: { xDomain: originXDomain }, } = useChartData();
28
+ const spectra = useVisibleSpectra1D();
29
+ const activeSpectra = useActiveSpectra();
30
+ const firstActiveSpectrum = useMemo(() => {
31
+ const firstSelected = activeSpectra?.find((s) => s.selected);
32
+ return firstSelected
33
+ ? spectra.find((s) => s.id === firstSelected.id)
34
+ : spectra[0];
35
+ }, [activeSpectra, spectra]);
36
+ const { scaleX } = useScaleChecked();
37
+ const { nucleus, nucleusUnits } = useAxisUnit1D();
38
+ const dispatch = useDispatch();
39
+ const mode = firstActiveSpectrum?.info.isFt
40
+ ? 'ft'
41
+ : 'fid';
42
+ const unit = nucleusUnits.horizontal[mode];
43
+ const allowedUnits = mode === 'ft' ? axisUnits1DFt : axisUnits1DFid;
44
+ const domain = useMemo(() => {
45
+ function getPtDomain() {
46
+ const maxPt = firstActiveSpectrum?.data.x.length ?? 0;
47
+ const ppmToPoint = scaleLinear(originXDomain, [0, maxPt]);
48
+ return scaleX()
49
+ .domain()
50
+ .map((v) => ppmToPoint(v));
51
+ }
52
+ return match(mode)
53
+ .with('fid', () => match(unit)
54
+ .with('s', () => undefined)
55
+ .with('pt', getPtDomain)
56
+ .with('hz', 'ppm', (unit) => {
57
+ assertUnreachable(unit);
58
+ })
59
+ .exhaustive())
60
+ .with('ft', () => match(unit)
61
+ .with('ppm', () => undefined)
62
+ .with('pt', getPtDomain)
63
+ .with('hz', () => {
64
+ if (!firstActiveSpectrum)
65
+ return undefined;
66
+ const scale = scaleX();
67
+ return scale
68
+ .domain()
69
+ .map((v) => v * firstActiveSpectrum.info.originFrequency);
70
+ })
71
+ .with('s', (unit) => {
72
+ assertUnreachable(unit);
73
+ })
74
+ .exhaustive())
75
+ .exhaustive();
76
+ }, [firstActiveSpectrum, mode, originXDomain, scaleX, unit]);
77
+ const setUnit = useCallback((unit) => {
78
+ match(mode)
79
+ .with('fid', (mode) => {
80
+ assertIn(unit, axisUnits1DFid);
81
+ return dispatch({
82
+ type: 'SET_AXIS_UNIT_1D_HORIZONTAL',
83
+ payload: { nucleus, mode, unit },
84
+ });
85
+ })
86
+ .with('ft', (mode) => {
87
+ assertIn(unit, axisUnits1DFt);
88
+ return dispatch({
89
+ type: 'SET_AXIS_UNIT_1D_HORIZONTAL',
90
+ payload: { nucleus, mode, unit },
91
+ });
92
+ })
93
+ .exhaustive();
94
+ }, [dispatch, mode, nucleus]);
95
+ return { mode, unit, allowedUnits, setUnit, domain };
96
+ }
97
+ export function useDirectAxisUnit() {
98
+ const { originDomain: { xDomain: originXDomain }, } = useChartData();
99
+ const { nucleus, units } = useAxisUnit2D();
100
+ const spectrum = useSpectrum();
101
+ const dispatch = useDispatch();
102
+ const scaleX = useScale2DX();
103
+ return useMemo(() => {
104
+ if (!spectrum)
105
+ return;
106
+ if (!isSpectrum2D(spectrum))
107
+ return;
108
+ const mode = spectrum.info.isFt || spectrum.info.isFtDimensionOne ? 'ft' : 'fid';
109
+ const unit = units.direct[mode];
110
+ const allowedUnits = mode === 'ft' ? axisUnits2DFt : axisUnits2DFid;
111
+ // spectrum.info.spectrumSize = [nbColumns, nbRows];
112
+ // in nmrium-core formatSpectrum2D
113
+ const directAxisIndex = 0;
114
+ function getPtDomain() {
115
+ assert(isSpectrum2D(spectrum));
116
+ const originPtDomain = [0, spectrum.info.spectrumSize[directAxisIndex]];
117
+ const ppmToPoint = scaleLinear(originXDomain, originPtDomain);
118
+ return scaleX.domain().map((v) => ppmToPoint(v));
119
+ }
120
+ const domain = match(mode)
121
+ .with('fid', () => match(unit)
122
+ .with('s', () => undefined)
123
+ .with('pt', getPtDomain)
124
+ .with('hz', 'ppm', (unit) => {
125
+ assertUnreachable(unit);
126
+ })
127
+ .exhaustive())
128
+ .with('ft', () => match(unit)
129
+ .with('ppm', () => undefined)
130
+ .with('pt', getPtDomain)
131
+ .with('hz', () => {
132
+ const frequency = spectrum.info.originFrequency[directAxisIndex];
133
+ return scaleX.domain().map((v) => v * frequency);
134
+ })
135
+ .with('s', (unit) => {
136
+ assertUnreachable(unit);
137
+ })
138
+ .exhaustive())
139
+ .exhaustive();
140
+ function setUnit(unit) {
141
+ match(mode)
142
+ .with('fid', (mode) => {
143
+ assertIn(unit, axisUnits2DFid);
144
+ return dispatch({
145
+ type: 'SET_AXIS_UNIT_2D_DIRECT',
146
+ payload: { nucleus, mode, unit },
147
+ });
148
+ })
149
+ .with('ft', (mode) => {
150
+ assertIn(unit, axisUnits2DFt);
151
+ return dispatch({
152
+ type: 'SET_AXIS_UNIT_2D_DIRECT',
153
+ payload: { nucleus, mode, unit },
154
+ });
155
+ })
156
+ .exhaustive();
157
+ }
158
+ return { mode, unit, allowedUnits, setUnit, domain };
159
+ }, [dispatch, nucleus, originXDomain, scaleX, spectrum, units.direct]);
160
+ }
161
+ export function useIndirectAxisUnit() {
162
+ const { originDomain: { yDomain: originYDomain }, } = useChartData();
163
+ const { nucleus, units } = useAxisUnit2D();
164
+ const spectrum = useSpectrum();
165
+ const dispatch = useDispatch();
166
+ const scaleY = useScale2DY();
167
+ return useMemo(() => {
168
+ if (!spectrum)
169
+ return;
170
+ if (!isSpectrum2D(spectrum))
171
+ return;
172
+ const mode = spectrum.info.isFt
173
+ ? 'ft'
174
+ : 'fid';
175
+ const unit = units.indirect[mode];
176
+ const allowedUnits = mode === 'ft' ? axisUnits2DFt : axisUnits2DFid;
177
+ // spectrum.info.spectrumSize = [nbColumns, nbRows];
178
+ // in nmrium-core formatSpectrum2D
179
+ const indirectAxisIndex = 1;
180
+ function getPtDomain() {
181
+ assert(isSpectrum2D(spectrum));
182
+ const originPtDomain = [0, spectrum.info.spectrumSize[indirectAxisIndex]];
183
+ const ppmToPoint = scaleLinear(originYDomain, originPtDomain);
184
+ return scaleY.domain().map((v) => ppmToPoint(v));
185
+ }
186
+ const domain = match(mode)
187
+ .with('fid', () => match(unit)
188
+ .with('s', () => undefined)
189
+ .with('pt', getPtDomain)
190
+ .with('hz', 'ppm', (unit) => {
191
+ assertUnreachable(unit);
192
+ })
193
+ .exhaustive())
194
+ .with('ft', () => match(unit)
195
+ .with('ppm', () => undefined)
196
+ .with('pt', getPtDomain)
197
+ .with('hz', () => {
198
+ const frequency = spectrum.info.originFrequency[indirectAxisIndex];
199
+ return scaleY.domain().map((v) => v * frequency);
200
+ })
201
+ .with('s', (unit) => {
202
+ assertUnreachable(unit);
203
+ })
204
+ .exhaustive())
205
+ .exhaustive();
206
+ function setUnit(unit) {
207
+ match(mode)
208
+ .with('fid', (mode) => {
209
+ assertIn(unit, axisUnits2DFid);
210
+ return dispatch({
211
+ type: 'SET_AXIS_UNIT_2D_INDIRECT',
212
+ payload: { nucleus, mode, unit },
213
+ });
214
+ })
215
+ .with('ft', (mode) => {
216
+ assertIn(unit, axisUnits2DFt);
217
+ return dispatch({
218
+ type: 'SET_AXIS_UNIT_2D_INDIRECT',
219
+ payload: { nucleus, mode, unit },
220
+ });
221
+ })
222
+ .exhaustive();
223
+ }
224
+ return { mode, unit, allowedUnits, setUnit, domain };
225
+ }, [dispatch, nucleus, originYDomain, scaleY, spectrum, units.indirect]);
226
+ }
227
+ const defaultUnit1D = {
228
+ horizontal: {
229
+ fid: defaultAxisUnit1DFid,
230
+ ft: defaultAxisUnit1DFt,
231
+ },
232
+ };
233
+ function useAxisUnit1D() {
234
+ const nucleus = useActiveNucleusTab();
235
+ const { view } = useChartData();
236
+ const nucleusUnits = view.units1D[nucleus] ?? defaultUnit1D;
237
+ return { nucleus, nucleusUnits };
238
+ }
239
+ const defaultUnit2D = {
240
+ direct: {
241
+ fid: defaultAxisUnit2DFid,
242
+ ft: defaultAxisUnit2DFt,
243
+ },
244
+ indirect: {
245
+ fid: defaultAxisUnit2DFid,
246
+ ft: defaultAxisUnit2DFt,
247
+ },
248
+ };
249
+ function useAxisUnit2D() {
250
+ const nucleus = useActiveNucleusTab();
251
+ const { view } = useChartData();
252
+ const units = view.units2D[nucleus] ?? defaultUnit2D;
253
+ return { nucleus, units };
254
+ }
255
+ //# sourceMappingURL=use_axis_unit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use_axis_unit.js","sourceRoot":"","sources":["../../../src/component/hooks/use_axis_unit.ts"],"names":[],"mappings":"AASA,OAAO,EACL,cAAc,EACd,aAAa,EACb,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA6B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA6B,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB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IACpB,MAAM,OAAO,GAAG,mBAAmB,EAAE,CAAC;IACtC,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,EAAE,CAAC;IAEhC,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,aAAa,CAAC;IAE5D,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;AACnC,CAAC;AAED,MAAM,aAAa,GAAkB;IACnC,MAAM,EAAE;QACN,GAAG,EAAE,oBAAoB;QACzB,EAAE,EAAE,mBAAmB;KACxB;IACD,QAAQ,EAAE;QACR,GAAG,EAAE,oBAAoB;QACzB,EAAE,EAAE,mBAAmB;KACxB;CACF,CAAC;AAEF,SAAS,aAAa;IACpB,MAAM,OAAO,GAAG,mBAAmB,EAAE,CAAC;IACtC,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,EAAE,CAAC;IAEhC,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,aAAa,CAAC;IAErD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAC5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function useGridline1DConfig(): import("@zakodium/nmrium-core").AxisPreferencesGridlines;
2
+ export declare function useGridline2DConfig(): import("@zakodium/nmrium-core").AxisPreferencesGridlines;
3
+ //# sourceMappingURL=use_gridlines_config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use_gridlines_config.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/use_gridlines_config.ts"],"names":[],"mappings":"AAGA,wBAAgB,mBAAmB,6DAMlC;AAED,wBAAgB,mBAAmB,6DAMlC"}
@@ -0,0 +1,15 @@
1
+ import { usePreferences } from "../context/PreferencesContext.js";
2
+ import { workspaceDefaultProperties } from "../workspaces/workspaceDefaultProperties.js";
3
+ export function useGridline1DConfig() {
4
+ const preferences = usePreferences();
5
+ const { current } = preferences;
6
+ const axis = current.axis ?? workspaceDefaultProperties.axis;
7
+ return axis.gridlines1D;
8
+ }
9
+ export function useGridline2DConfig() {
10
+ const preferences = usePreferences();
11
+ const { current } = preferences;
12
+ const axis = current.axis ?? workspaceDefaultProperties.axis;
13
+ return axis.gridlines2D;
14
+ }
15
+ //# sourceMappingURL=use_gridlines_config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use_gridlines_config.js","sourceRoot":"","sources":["../../../src/component/hooks/use_gridlines_config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAmC,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAEzF,MAAM,UAAU,mBAAmB;IACjC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC;IAChC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,0BAA0B,CAAC,IAAI,CAAC;IAE7D,OAAO,IAAI,CAAC,WAAW,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,mBAAmB;IACjC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC;IAChC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,0BAA0B,CAAC,IAAI,CAAC;IAE7D,OAAO,IAAI,CAAC,WAAW,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare function useTicksConfig(): {
2
+ textStyle: import("@zakodium/nmrium-core").TextStyle;
3
+ isSecondaryEnabled: boolean;
4
+ };
5
+ //# sourceMappingURL=use_ticks_config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use_ticks_config.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/use_ticks_config.ts"],"names":[],"mappings":"AAGA,wBAAgB,cAAc;;;EAW7B"}
@@ -0,0 +1,13 @@
1
+ import { usePreferences } from "../context/PreferencesContext.js";
2
+ import { workspaceDefaultProperties } from "../workspaces/workspaceDefaultProperties.js";
3
+ export function useTicksConfig() {
4
+ const { current } = usePreferences();
5
+ const axis = current.axis ?? workspaceDefaultProperties.axis;
6
+ const { textStyle } = axis.primaryTicks;
7
+ const { enabled } = axis.secondaryTicks;
8
+ return {
9
+ textStyle,
10
+ isSecondaryEnabled: enabled,
11
+ };
12
+ }
13
+ //# sourceMappingURL=use_ticks_config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use_ticks_config.js","sourceRoot":"","sources":["../../../src/component/hooks/use_ticks_config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAmC,CAAC;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAEzF,MAAM,UAAU,cAAc;IAC5B,MAAM,EAAE,OAAO,EAAE,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,0BAA0B,CAAC,IAAI,CAAC;IAE7D,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC;IACxC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,cAAc,CAAC;IAExC,OAAO;QACL,SAAS;QACT,kBAAkB,EAAE,OAAO;KAC5B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Spectrum1D } from '@zakodium/nmrium-core';
2
+ export declare function useVisibleSpectra1D(): Spectrum1D[];
3
+ //# sourceMappingURL=use_visible_spectra_1d.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use_visible_spectra_1d.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/use_visible_spectra_1d.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAMxD,wBAAgB,mBAAmB,iBAclC"}
@@ -0,0 +1,12 @@
1
+ import { isSpectrum1D } from "../../data/data1d/Spectrum1D/index.js";
2
+ import { useInsetOptions } from "../1d/inset/InsetProvider.js";
3
+ import { useChartData } from "../context/ChartContext.js";
4
+ export function useVisibleSpectra1D() {
5
+ const { xDomains, data } = useChartData();
6
+ const inset = useInsetOptions();
7
+ if (inset) {
8
+ return data?.filter((d) => isSpectrum1D(d) && d.id === inset.spectrumKey);
9
+ }
10
+ return data?.filter((d) => isSpectrum1D(d) && d.display.isVisible && xDomains[d.id]);
11
+ }
12
+ //# sourceMappingURL=use_visible_spectra_1d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use_visible_spectra_1d.js","sourceRoot":"","sources":["../../../src/component/hooks/use_visible_spectra_1d.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA+B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA6B,CAAC;AAE3D,MAAM,UAAU,mBAAmB;IACjC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,YAAY,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,IAAI,EAAE,MAAM,CACjB,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,WAAW,CACrC,CAAC;IACpB,CAAC;IAED,OAAO,IAAI,EAAE,MAAM,CACjB,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,SAAS,IAAI,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAChD,CAAC;AACpB,CAAC"}
@@ -1,2 +1,3 @@
1
- export declare function useLoadFiles(onOpenMetaInformation?: (file: File) => void): (files: File[]) => void;
1
+ import { FileCollection } from 'file-collection';
2
+ export declare function useLoadFiles(onOpenMetaInformation?: (file: File) => void): (files: File[] | FileCollection) => void;
2
3
  //# sourceMappingURL=useLoadFiles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLoadFiles.d.ts","sourceRoot":"","sources":["../../../src/component/loader/useLoadFiles.ts"],"names":[],"mappings":"AAgBA,wBAAgB,YAAY,CAAC,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,WAgH7D,IAAI,EAAE,UAcjB"}
1
+ {"version":3,"file":"useLoadFiles.d.ts","sourceRoot":"","sources":["../../../src/component/loader/useLoadFiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAcjD,wBAAgB,YAAY,CAAC,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,WAsH7D,IAAI,EAAE,GAAG,cAAc,UAclC"}
@@ -50,33 +50,38 @@ export function useLoadFiles(onOpenMetaInformation) {
50
50
  resetSourceObject,
51
51
  });
52
52
  }, [core, dispatchPayload]);
53
- const currentPreferences = preferences.current;
54
53
  const loadUserFiles = useCallback(async (files) => {
55
- if (onOpenMetaInformation && files.length === 1 && isMetaFile(files[0])) {
54
+ if (onOpenMetaInformation &&
55
+ Array.isArray(files) &&
56
+ files.length === 1 &&
57
+ isMetaFile(files[0])) {
56
58
  onOpenMetaInformation(files[0]);
57
59
  return;
58
60
  }
59
- const { onLoadProcessing } = workspacePreferences;
60
- const { nmrLoaders: selector } = currentPreferences;
61
+ const { onLoadProcessing, nmrLoaders: selector } = workspacePreferences;
61
62
  const parsingOptions = {
62
63
  selector,
63
64
  logger: logger.child({ context: 'nmr-processing' }),
64
65
  onLoadProcessing,
65
66
  experimentalFeatures,
66
67
  };
67
- const groupedFiles = await groupFiles(files);
68
- const { nmriumArchiveFiles, fileCollection, metaFile } = groupedFiles;
69
- if (nmriumArchiveFiles.length > 0) {
70
- await Promise.all(nmriumArchiveFiles.map((file) => loadNmriumArchives(file, parsingOptions)));
68
+ if (Array.isArray(files)) {
69
+ const groupedFiles = await groupFiles(files);
70
+ const { nmriumArchiveFiles, fileCollection, metaFile } = groupedFiles;
71
+ if (nmriumArchiveFiles.length > 0) {
72
+ await Promise.all(nmriumArchiveFiles.map((file) => loadNmriumArchives(file, parsingOptions)));
73
+ }
74
+ await loadFileCollection(fileCollection, metaFile, parsingOptions);
75
+ }
76
+ else {
77
+ await loadFileCollection(files, undefined, parsingOptions);
71
78
  }
72
- await loadFileCollection(fileCollection, metaFile, parsingOptions);
73
79
  }, [
74
80
  experimentalFeatures,
75
81
  loadFileCollection,
76
82
  loadNmriumArchives,
77
83
  logger,
78
84
  onOpenMetaInformation,
79
- currentPreferences,
80
85
  workspacePreferences,
81
86
  ]);
82
87
  return useCallback((files) => {
@@ -1 +1 @@
1
- {"version":3,"file":"useLoadFiles.js","sourceRoot":"","sources":["../../../src/component/loader/useLoadFiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,2BAA2B,MAAM,yCAAyC,CAAC;AAIlF,MAAM,UAAU,YAAY,CAAC,qBAA4C;IACvE,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,EAAE,oBAAoB,EAAE,GACpE,WAAW,CAAC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ACpC,CAAC;AAEF,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA6GlD"}
1
+ {"version":3,"file":"InnerNMRium.d.ts","sourceRoot":"","sources":["../../../src/component/main/InnerNMRium.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AA6B1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,KAAK,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IACrD,MAAM,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;CACpC,CAAC;AAEF,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA8GlD"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import init from '@zakodium/nmrium-core-plugins';
3
- import { useEffect, useMemo, useReducer, useRef } from 'react';
3
+ import { useCallback, useEffect, useMemo, useReducer, useRef } from 'react';
4
4
  import { useFullscreen } from 'react-science/ui';
5
5
  import { AssignmentProvider } from '../assignment/AssignmentProvider.js';
6
6
  import { CoreProvider } from '../context/CoreContext.js';
@@ -38,7 +38,7 @@ export function InnerNMRium(props) {
38
38
  useEffect(() => {
39
39
  rootRef.current?.focus();
40
40
  }, [isFullScreen]);
41
- useEffect(() => {
41
+ const refreshPreferences = useCallback(() => {
42
42
  const settings = readSettings();
43
43
  dispatchPreferences({
44
44
  type: 'INIT_PREFERENCES',
@@ -54,6 +54,6 @@ export function InnerNMRium(props) {
54
54
  rootRef: rootRef.current,
55
55
  elementsWrapperRef: elementsWrapperRef.current,
56
56
  viewerRef: viewerRef.current,
57
- }, children: _jsx(PreferencesProvider, { value: preferencesProviderValue, children: _jsx(LoggerProvider, { children: _jsx(KeyModifiersProvider, { children: _jsx(ToasterProvider, { children: _jsx(SortSpectraProvider, { children: _jsx(NMRiumStateProvider, { onChange: onChange, state: state, aggregator: aggregator, children: _jsx(TopicMoleculeProvider, { children: _jsx(DialogProvider, { children: _jsx(AlertProvider, { children: _jsx(HighlightProvider, { children: _jsx(AssignmentProvider, { children: _jsx(SpinnerProvider, { value: getSpinner, children: _jsx(InnerNMRiumContents, { emptyText: emptyText, mainDivRef: mainDivRef, elementsWrapperRef: elementsWrapperRef, rootRef: rootRef, viewerRef: viewerRef, apiRef: apiRef }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }));
57
+ }, children: _jsx(PreferencesProvider, { value: preferencesProviderValue, children: _jsx(LoggerProvider, { children: _jsx(KeyModifiersProvider, { children: _jsx(ToasterProvider, { children: _jsx(SortSpectraProvider, { children: _jsx(NMRiumStateProvider, { onChange: onChange, state: state, aggregator: aggregator, refreshPreferences: refreshPreferences, children: _jsx(TopicMoleculeProvider, { children: _jsx(DialogProvider, { children: _jsx(AlertProvider, { children: _jsx(HighlightProvider, { children: _jsx(AssignmentProvider, { children: _jsx(SpinnerProvider, { value: getSpinner, children: _jsx(InnerNMRiumContents, { emptyText: emptyText, mainDivRef: mainDivRef, elementsWrapperRef: elementsWrapperRef, rootRef: rootRef, viewerRef: viewerRef, apiRef: apiRef }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }));
58
58
  }
59
59
  //# sourceMappingURL=InnerNMRium.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InnerNMRium.js","sourceRoot":"","sources":["../../../src/component/main/InnerNMRium.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,+BAA+B,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OA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O,EAAE,OAAO,CAAC,OAAO;wBACxB,kBAAkB,EAAE,kBAAkB,CAAC,OAAO;wBAC9C,SAAS,EAAE,SAAS,CAAC,OAAO;qBAC7B,YAED,KAAC,mBAAmB,IAAC,KAAK,EAAE,wBAAwB,YAClD,KAAC,cAAc,cACb,KAAC,oBAAoB,cACnB,KAAC,eAAe,cACd,KAAC,mBAAmB,cAClB,KAAC,mBAAmB,IAClB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,YAEtB,KAAC,qBAAqB,cACpB,KAAC,cAAc,cACb,KAAC,aAAa,cACZ,KAAC,iBAAiB,cAChB,KAAC,kBAAkB,cACjB,KAAC,eAAe,IAAC,KAAK,EAAE,UAAU,YAChC,KAAC,mBAAmB,IAClB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,GACd,GACc,GACC,GACH,GACN,GACD,GACK,GACJ,GACF,GACN,GACG,GACR,GACG,GACP,GACK,GACX,GACX,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"InnerNMRium.js","sourceRoot":"","sources":["../../../src/component/main/InnerNMRium.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,+BAA+B,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAC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,SAAS,EAAE,SAAS,CAAC,OAAO;qBAC7B,YAED,KAAC,mBAAmB,IAAC,KAAK,EAAE,wBAAwB,YAClD,KAAC,cAAc,cACb,KAAC,oBAAoB,cACnB,KAAC,eAAe,cACd,KAAC,mBAAmB,cAClB,KAAC,mBAAmB,IAClB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,kBAAkB,YAEtC,KAAC,qBAAqB,cACpB,KAAC,cAAc,cACb,KAAC,aAAa,cACZ,KAAC,iBAAiB,cAChB,KAAC,kBAAkB,cACjB,KAAC,eAAe,IAAC,KAAK,EAAE,UAAU,YAChC,KAAC,mBAAmB,IAClB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,GACd,GACc,GACC,GACH,GACN,GACD,GACK,GACJ,GACF,GACN,GACG,GACR,GACG,GACP,GACK,GACX,GACX,CACP,CAAC;AACJ,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { FileCollection } from 'file-collection';
1
2
  import type { ForwardedRef, RefObject } from 'react';
2
3
  import type { SaveIncludeOptions } from '../hooks/useExport.tsx';
3
4
  import type { BlobObject } from '../utility/export.js';
@@ -5,6 +6,7 @@ export interface NMRiumRefAPI {
5
6
  getSpectraViewerAsBlob: () => BlobObject | null;
6
7
  getNMRiumFile: (option: SaveIncludeOptions) => Promise<Blob>;
7
8
  loadFiles: (files: File[]) => void;
9
+ loadFileCollection: (fileCollection: FileCollection) => void;
8
10
  }
9
11
  export declare function useNMRiumRefAPI(ref: ForwardedRef<NMRiumRefAPI>, rootRef: RefObject<HTMLDivElement>): void;
10
12
  //# sourceMappingURL=NMRiumRefAPI.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NMRiumRefAPI.d.ts","sourceRoot":"","sources":["../../../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EAAE,YAAY,CAAC,YAAY,CAAC,EAC/B,OAAO,EAAE,SAAS,CAAC,cAAc,CAAC,QAoBnC"}
@@ -12,6 +12,7 @@ export function useNMRiumRefAPI(ref, rootRef) {
12
12
  : null;
13
13
  },
14
14
  loadFiles,
15
+ loadFileCollection: (fileCollection) => loadFiles(fileCollection),
15
16
  getNMRiumFile: (options) => createNmriumZip(options),
16
17
  }), [loadFiles, rootRef, createNmriumZip]);
17
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NMRiumRefAPI.js","sourceRoot":"","sources":["../../../src/component/main/NMRiumRefAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAQ/C,MAAM,UAAU,eAAe,CAC7B,GAA+B,EAC/B,OAAkC;IAElC,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,eAAe,GAAG,kBAAkB,EAAE,CAAC;IAE7C,mBAAmB,CACjB,GAAG,EACH,GAAG,EAAE,CAAC,CAAC;QACL,sBAAsB,EAAE,GAAG,EAAE;YAC3B,OAAO,OAAO,CAAC,OAAO;gBACpB,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;gBACrD,CAAC,CAAC,IAAI,CAAC;QACX,CAAC;QACD,SAAS;QACT,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC;KACrD,CAAC,EACF,CAAC,SAAS,EAAE,OAAO,EAAE,eAAe,CAAC,CACtC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"NMRiumRefAPI.js","sourceRoot":"","sources":["../../../src/component/main/NMRiumRefAPI.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAS/C,MAAM,UAAU,eAAe,CAC7B,GAA+B,EAC/B,OAAkC;IAElC,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,eAAe,GAAG,kBAAkB,EAAE,CAAC;IAE7C,mBAAmB,CACjB,GAAG,EACH,GAAG,EAAE,CAAC,CAAC;QACL,sBAAsB,EAAE,GAAG,EAAE;YAC3B,OAAO,OAAO,CAAC,OAAO;gBACpB,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;gBACrD,CAAC,CAAC,IAAI,CAAC;QACX,CAAC;QACD,SAAS;QACT,kBAAkB,EAAE,CAAC,cAA8B,EAAE,EAAE,CACrD,SAAS,CAAC,cAAc,CAAC;QAC3B,aAAa,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC;KACrD,CAAC,EACF,CAAC,SAAS,EAAE,OAAO,EAAE,eAAe,CAAC,CACtC,CAAC;AACJ,CAAC"}
@@ -7,6 +7,7 @@ interface NMRiumStateProviderProps {
7
7
  onChange: NMRiumChangeCb | undefined;
8
8
  state: Partial<NmriumState> | undefined;
9
9
  aggregator: FileCollection | undefined;
10
+ refreshPreferences: () => void;
10
11
  }
11
12
  export default function NMRiumStateProvider(props: NMRiumStateProviderProps): import("react/jsx-runtime").JSX.Element;
12
13
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"NMRiumStateProvider.d.ts","sourceRoot":"","sources":["../../../src/component/main/NMRiumStateProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,UAAU,wBAAwB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAC;IACrC,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;IACxC,UAAU,EAAE,cAAc,GAAG,SAAS,CAAC;CACxC;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CAgK1E"}
1
+ {"version":3,"file":"NMRiumStateProvider.d.ts","sourceRoot":"","sources":["../../../src/component/main/NMRiumStateProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,UAAU,wBAAwB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAC;IACrC,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;IACxC,UAAU,EAAE,cAAc,GAAG,SAAS,CAAC;IACvC,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CAyK1E"}
@@ -12,11 +12,18 @@ import { sortSpectra, useSortSpectra } from '../context/SortSpectraContext.js';
12
12
  import checkActionType from '../reducer/IgnoreActions.js';
13
13
  import { initState, initialState, spectrumReducer, } from '../reducer/Reducer.js';
14
14
  export default function NMRiumStateProvider(props) {
15
- const { children, onChange, state: externalState, aggregator: externalAggregator, } = props;
15
+ const { children, onChange, state: externalState, aggregator: externalAggregator, refreshPreferences, } = props;
16
16
  const core = useCore();
17
17
  const { logger } = useLogger();
18
18
  const preferencesState = usePreferences();
19
19
  const { dispatch: dispatchPreferences } = preferencesState;
20
+ /**
21
+ * The preference refresh is done here to ensure it is done before the state loading,
22
+ * because state loading can dispatch preferences.
23
+ */
24
+ useEffect(() => {
25
+ refreshPreferences();
26
+ }, [refreshPreferences]);
20
27
  const [state, dispatchRaw] = useReducer(spectrumReducer, initialState, initState);
21
28
  const dispatch = useCallback((action) => {
22
29
  logger.trace({ action }, `Dispatch main reducer action: ${action.type}`);
@@ -107,10 +114,10 @@ export default function NMRiumStateProvider(props) {
107
114
  const { sortOptions } = useSortSpectra();
108
115
  const spectra = useMemo(() => {
109
116
  if (sortOptions) {
110
- return sortSpectra(state.data, sortOptions);
117
+ return sortSpectra(spectraData, sortOptions);
111
118
  }
112
- return state.data;
113
- }, [sortOptions, state.data]);
119
+ return spectraData;
120
+ }, [sortOptions, spectraData]);
114
121
  const updatedState = useMemo(() => {
115
122
  return produce(state, (draft) => {
116
123
  draft.data = spectra;
@@ -1 +1 @@
1
- {"version":3,"file":"NMRiumStateProvider.js","sourceRoot":"","sources":["../../../src/component/main/NMRiumStateProvider.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAA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