nmrium 0.62.1 → 0.63.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/ApodizationLine.d.ts.map +1 -1
- package/lib/component/1d/ApodizationLine.js +46 -30
- package/lib/component/1d/ApodizationLine.js.map +1 -1
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +31 -10
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +8 -9
- package/lib/component/1d/FloatPublicationString.js.map +1 -1
- package/lib/component/1d/FloatingRanges.js +1 -1
- package/lib/component/1d/FloatingRanges.js.map +1 -1
- package/lib/component/1d/FooterBanner.js.map +1 -1
- package/lib/component/1d/SpectraLegends.js.map +1 -1
- package/lib/component/1d/Viewer1D.js +1 -1
- package/lib/component/1d/Viewer1D.js.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.d.ts.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +3 -2
- package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js.map +1 -1
- package/lib/component/1d/inset/SpectraInsets.d.ts +1 -1
- package/lib/component/1d/inset/SpectraInsets.d.ts.map +1 -1
- package/lib/component/1d/integral/IntegralsSeries.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraph.js.map +1 -1
- package/lib/component/1d/matrix/useMatrix.d.ts.map +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +1 -1
- package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts +1 -1
- package/lib/component/1d/multiplicityTree/generateTreeNodes.d.ts.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts +1 -0
- package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.js +6 -4
- package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
- package/lib/component/1d/ranges/Range.d.ts +2 -1
- package/lib/component/1d/ranges/Range.d.ts.map +1 -1
- package/lib/component/1d/ranges/Range.js +14 -6
- package/lib/component/1d/ranges/Range.js.map +1 -1
- package/lib/component/1d/ranges/Ranges.d.ts.map +1 -1
- package/lib/component/1d/ranges/Ranges.js +31 -8
- package/lib/component/1d/ranges/Ranges.js.map +1 -1
- package/lib/component/1d/ranges/RangesIntegrals.js.map +1 -1
- package/lib/component/1d/utilities/scale.js +1 -1
- package/lib/component/1d/utilities/scale.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts +0 -6
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.d.ts.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +3 -4
- package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js +7 -2
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/2d/1d-tracer/HorizontalSliceChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.d.ts +1 -1
- package/lib/component/2d/1d-tracer/Top1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/VerticalSliceChart.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.js +21 -4
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/SVGContent2D.d.ts +1 -1
- package/lib/component/2d/SVGContent2D.d.ts.map +1 -1
- package/lib/component/2d/SVGContent2D.js +2 -2
- package/lib/component/2d/SVGContent2D.js.map +1 -1
- package/lib/component/2d/fid/FidCanvas.js.map +1 -1
- package/lib/component/2d/ft/Contours.js.map +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts +1 -1
- package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
- package/lib/component/2d/useTracesSpectra.d.ts +7 -1
- package/lib/component/2d/useTracesSpectra.d.ts.map +1 -1
- package/lib/component/2d/useTracesSpectra.js +18 -14
- package/lib/component/2d/useTracesSpectra.js.map +1 -1
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts +14 -0
- package/lib/component/2d/utilities/extractSpectrumSignals.d.ts.map +1 -0
- package/lib/component/2d/utilities/extractSpectrumSignals.js +41 -0
- package/lib/component/2d/utilities/extractSpectrumSignals.js.map +1 -0
- package/lib/component/2d/zones/SignalsGuideLines.d.ts +2 -0
- package/lib/component/2d/zones/SignalsGuideLines.d.ts.map +1 -0
- package/lib/component/2d/zones/SignalsGuideLines.js +142 -0
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -0
- package/lib/component/2d/zones/Zone.d.ts.map +1 -1
- package/lib/component/2d/zones/Zone.js +17 -21
- package/lib/component/2d/zones/Zone.js.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.d.ts.map +1 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js +64 -1
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts +38 -3
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +136 -38
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/assignment/utilities/filterAssignedIDs.d.ts +3 -0
- package/lib/component/assignment/utilities/filterAssignedIDs.d.ts.map +1 -0
- package/lib/component/assignment/utilities/filterAssignedIDs.js +4 -0
- package/lib/component/assignment/utilities/filterAssignedIDs.js.map +1 -0
- package/lib/component/assignment/utilities/getAssignments.d.ts +1 -1
- package/lib/component/assignment/utilities/getAssignments.d.ts.map +1 -1
- package/lib/component/context/CoreContext.d.ts +4 -0
- package/lib/component/context/CoreContext.d.ts.map +1 -0
- package/lib/component/context/CoreContext.js +11 -0
- package/lib/component/context/CoreContext.js.map +1 -0
- package/lib/component/context/SortSpectraContext.d.ts +1 -1
- package/lib/component/context/SortSpectraContext.d.ts.map +1 -1
- package/lib/component/context/SortSpectraContext.js.map +1 -1
- package/lib/component/context/TopicMoleculeContext.js +2 -2
- package/lib/component/context/TopicMoleculeContext.js.map +1 -1
- package/lib/component/elements/ContainerQueryWrapper.d.ts.map +1 -1
- package/lib/component/elements/Footer.d.ts.map +1 -1
- package/lib/component/elements/MoleculeSelection.js +1 -1
- package/lib/component/elements/MoleculeSelection.js.map +1 -1
- package/lib/component/elements/ReactTable/BaseReactTable.d.ts.map +1 -1
- package/lib/component/elements/TabsProvider.d.ts +14 -0
- package/lib/component/elements/TabsProvider.d.ts.map +1 -0
- package/lib/component/elements/TabsProvider.js +22 -0
- package/lib/component/elements/TabsProvider.js.map +1 -0
- package/lib/component/elements/export/ExportContent.d.ts +1 -1
- package/lib/component/elements/export/ExportContent.d.ts.map +1 -1
- package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
- package/lib/component/elements/export/units.d.ts +1 -1
- package/lib/component/elements/export/units.d.ts.map +1 -1
- package/lib/component/elements/export/units.js +1 -1
- package/lib/component/elements/export/units.js.map +1 -1
- package/lib/component/elements/export/useExportConfigurer.d.ts +1 -1
- package/lib/component/elements/export/useExportConfigurer.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts +2 -2
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/exportOptionValidationSchema.js.map +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.d.ts +1 -1
- package/lib/component/elements/export/utilities/getExportOptions.d.ts.map +1 -1
- package/lib/component/elements/export/utilities/getSizeInPixel.d.ts +1 -1
- package/lib/component/elements/export/utilities/getSizeInPixel.d.ts.map +1 -1
- package/lib/component/elements/print/PrintContent.d.ts +1 -1
- package/lib/component/elements/print/PrintContent.d.ts.map +1 -1
- package/lib/component/elements/print/pageSize.d.ts +1 -1
- package/lib/component/elements/print/pageSize.d.ts.map +1 -1
- package/lib/component/header/Header.js +1 -1
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js +2 -3
- package/lib/component/header/SimpleBaseLineCorrectionOptionsPanel.js.map +1 -1
- package/lib/component/highlight/index.d.ts +1 -1
- package/lib/component/highlight/index.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectra.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectra.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrum.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrum.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumIntegralsViewState.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrumIntegralsViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrumPeaksViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumRangesViewState.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrumRangesViewState.d.ts.map +1 -1
- package/lib/component/hooks/useActiveSpectrumZonesViewState.d.ts +1 -1
- package/lib/component/hooks/useActiveSpectrumZonesViewState.d.ts.map +1 -1
- package/lib/component/hooks/useCanvasContext.d.ts +2 -0
- package/lib/component/hooks/useCanvasContext.d.ts.map +1 -0
- package/lib/component/hooks/useCanvasContext.js +13 -0
- package/lib/component/hooks/useCanvasContext.js.map +1 -0
- package/lib/component/hooks/useCheckPointsNumberInWindowArea.js.map +1 -1
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +6 -4
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/usePanelPreferences.d.ts +1 -1
- package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
- package/lib/component/hooks/usePanelPreferences.js.map +1 -1
- package/lib/component/hooks/usePeaksLabelSettings.d.ts +1 -1
- package/lib/component/hooks/usePeaksLabelSettings.d.ts.map +1 -1
- package/lib/component/hooks/useResizerStatus.d.ts +1 -1
- package/lib/component/hooks/useResizerStatus.d.ts.map +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts +1 -1
- package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
- package/lib/component/hooks/useSpectraPerNucleus.d.ts +1 -1
- package/lib/component/hooks/useSpectraPerNucleus.d.ts.map +1 -1
- package/lib/component/hooks/useSpectrum.d.ts +1 -2
- package/lib/component/hooks/useSpectrum.d.ts.map +1 -1
- package/lib/component/hooks/useSpectrum.js +2 -17
- package/lib/component/hooks/useSpectrum.js.map +1 -1
- package/lib/component/hooks/useSpectrumWithDataSource.d.ts +3 -0
- package/lib/component/hooks/useSpectrumWithDataSource.d.ts.map +1 -0
- package/lib/component/hooks/useSpectrumWithDataSource.js +22 -0
- package/lib/component/hooks/useSpectrumWithDataSource.js.map +1 -0
- package/lib/component/hooks/useTempSpectrum.d.ts +1 -2
- package/lib/component/hooks/useTempSpectrum.d.ts.map +1 -1
- package/lib/component/hooks/useTempSpectrum.js +2 -11
- package/lib/component/hooks/useTempSpectrum.js.map +1 -1
- package/lib/component/hooks/useToolsFunctions.js.map +1 -1
- package/lib/component/hooks/useWorkspaceAction.d.ts +1 -1
- package/lib/component/hooks/useWorkspaceAction.d.ts.map +1 -1
- package/lib/component/hooks/useWorkspaceAction.js.map +1 -1
- package/lib/component/hooks/useWorkspaceExportSettings.d.ts +1 -1
- package/lib/component/hooks/useWorkspaceExportSettings.d.ts.map +1 -1
- package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
- package/lib/component/loader/useLoadFiles.js +4 -2
- package/lib/component/loader/useLoadFiles.js.map +1 -1
- package/lib/component/main/InnerNMRium.d.ts +1 -1
- package/lib/component/main/InnerNMRium.d.ts.map +1 -1
- package/lib/component/main/InnerNMRium.js +15 -7
- package/lib/component/main/InnerNMRium.js.map +1 -1
- package/lib/component/main/NMRium.d.ts +2 -1
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRium.js.map +1 -1
- package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.js +7 -4
- package/lib/component/main/NMRiumStateProvider.js.map +1 -1
- package/lib/component/main/NMRiumViewerWrapper.d.ts.map +1 -1
- package/lib/component/main/NMRiumViewerWrapper.js +3 -2
- package/lib/component/main/NMRiumViewerWrapper.js.map +1 -1
- package/lib/component/main/index.d.ts +0 -1
- package/lib/component/main/index.d.ts.map +1 -1
- package/lib/component/main/index.js +0 -1
- package/lib/component/main/index.js.map +1 -1
- package/lib/component/main/types.d.ts +1 -1
- package/lib/component/main/types.d.ts.map +1 -1
- package/lib/component/modal/ExportAsJcampModal.d.ts +1 -1
- package/lib/component/modal/ExportAsJcampModal.d.ts.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +3 -2
- package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.d.ts.map +1 -1
- package/lib/component/modal/MoleculeStructureEditorModal.js +7 -5
- package/lib/component/modal/MoleculeStructureEditorModal.js.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.d.ts +1 -1
- package/lib/component/modal/MultipletAnalysisModal.d.ts.map +1 -1
- package/lib/component/modal/MultipletAnalysisModal.js.map +1 -1
- package/lib/component/modal/changeSum/ChangeSumModalContents.d.ts +1 -1
- package/lib/component/modal/changeSum/ChangeSumModalContents.d.ts.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.d.ts.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +16 -20
- package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/DeltaInput.js +3 -2
- package/lib/component/modal/editRange/forms/components/DeltaInput.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/InfoBlock.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/InfoBlock.js +2 -2
- package/lib/component/modal/editRange/forms/components/InfoBlock.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js +4 -2
- package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/SignalsContent.js +7 -10
- package/lib/component/modal/editRange/forms/components/SignalsContent.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js +2 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.js.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.d.ts.map +1 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js +3 -1
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
- package/lib/component/modal/setting/GeneralSettings.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts +1 -1
- package/lib/component/modal/setting/settings-tabs/DatabasesTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/DisplayTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.js +3 -1
- package/lib/component/modal/setting/settings-tabs/ExportTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js +1 -1
- package/lib/component/modal/setting/settings-tabs/ExternalAPIsTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/GeneralTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js +2 -2
- package/lib/component/modal/setting/settings-tabs/InfoBlockTabContent.js.map +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.d.ts.map +1 -1
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js +3 -2
- package/lib/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.js.map +1 -1
- package/lib/component/modal/setting/settingsValidation.js +1 -1
- package/lib/component/modal/setting/settingsValidation.js.map +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +2 -2
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.d.ts.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js +12 -17
- package/lib/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +4 -12
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +4 -3
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts +20 -7
- package/lib/component/panels/MoleculesPanel/Utilities.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/Utilities.js +35 -27
- package/lib/component/panels/MoleculesPanel/Utilities.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts +1 -10
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js +127 -137
- package/lib/component/panels/MoleculesPanel/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/Panels.d.ts +4 -1
- package/lib/component/panels/Panels.d.ts.map +1 -1
- package/lib/component/panels/Panels.js +35 -9
- package/lib/component/panels/Panels.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +2 -2
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.js +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPanelHeader.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/ColorIndicator.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/ShowHideSpectrumButton.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/ShowHideSpectrumButton.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/SpectrumName.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js +2 -2
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +6 -2
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/accordionItems.d.ts +1 -1
- package/lib/component/panels/accordionItems.d.ts.map +1 -1
- package/lib/component/panels/accordionItems.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +33 -15
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js +2 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.d.ts +2 -3
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js +6 -4
- package/lib/component/panels/databasePanel/DatabaseStructureSearchModal.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js +3 -2
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/extra/BasicPanelStyle.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js +2 -3
- package/lib/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +4 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/InnerFilterHeader.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +20 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts +3 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js +10 -4
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts +14 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js +0 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts +8 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
- package/lib/component/panels/hooks/useGetPanelOptions.d.ts +1 -1
- package/lib/component/panels/hooks/useGetPanelOptions.d.ts.map +1 -1
- package/lib/component/panels/hooks/useTogglePanel.d.ts +1 -1
- package/lib/component/panels/hooks/useTogglePanel.d.ts.map +1 -1
- package/lib/component/panels/hooks/useTogglePanel.js +4 -2
- package/lib/component/panels/hooks/useTogglePanel.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js +5 -3
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +8 -8
- package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +19 -17
- package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js +8 -7
- package/lib/component/panels/spectrumSimulation/SpectrumSimulation.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts +1 -1
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +4 -4
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/AssignmentsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.d.ts +2 -1
- package/lib/component/reducer/actions/DatabaseActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DatabaseActions.js +7 -1
- package/lib/component/reducer/actions/DatabaseActions.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts +1 -1
- package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +27 -5
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +134 -68
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +10 -4
- package/lib/component/reducer/actions/InsetActions.js.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.d.ts +1 -1
- package/lib/component/reducer/actions/IntegralsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/IntegralsActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts +1 -1
- package/lib/component/reducer/actions/LoadActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadActions.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +3 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +5 -5
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +10 -9
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +40 -34
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +1 -2
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts +1 -0
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +33 -19
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +8 -8
- package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +21 -19
- package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.d.ts +5 -3
- package/lib/component/reducer/helper/Zoom1DManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +9 -9
- package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.js +24 -23
- package/lib/component/reducer/helper/ZoomHistoryManager.js.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectra.d.ts +1 -1
- package/lib/component/reducer/helper/getActiveSpectra.d.ts.map +1 -1
- package/lib/component/reducer/helper/getActiveSpectrum.d.ts +1 -1
- package/lib/component/reducer/helper/getActiveSpectrum.d.ts.map +1 -1
- package/lib/component/reducer/helper/setIntegralsViewProperty.d.ts +1 -1
- package/lib/component/reducer/helper/setIntegralsViewProperty.d.ts.map +1 -1
- package/lib/component/reducer/helper/setRangesViewProperty.d.ts +1 -1
- package/lib/component/reducer/helper/setRangesViewProperty.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.d.ts.map +1 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.js +2 -1
- package/lib/component/reducer/preferences/actions/matrixGeneration.js.map +1 -1
- package/lib/component/reducer/preferences/actions/togglePanel.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +4 -0
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js +1 -1
- package/lib/component/reducer/preferences/preferencesReducer.js.map +1 -1
- package/lib/component/reducer/preferences/utilities/getActiveWorkspace.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/getActiveWorkspace.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/getPreferencesByWorkspace.js.map +1 -1
- package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/initWorkspace.js.map +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
- package/lib/component/reducer/preferences/utilities/mapWorkspaces.js.map +1 -1
- package/lib/component/toolbar/ToolBar.d.ts.map +1 -1
- package/lib/component/toolbar/ToolBar.js +16 -10
- package/lib/component/toolbar/ToolBar.js.map +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts +1 -1
- package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
- package/lib/component/useWatchForm.d.ts +8 -0
- package/lib/component/useWatchForm.d.ts.map +1 -0
- package/lib/component/useWatchForm.js +24 -0
- package/lib/component/useWatchForm.js.map +1 -0
- package/lib/component/utility/export.d.ts +1 -1
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js.map +1 -1
- package/lib/component/utility/getClosePeak.d.ts +1 -1
- package/lib/component/utility/getClosePeak.d.ts.map +1 -1
- package/lib/component/utility/getSpectraByNucleus.d.ts +1 -1
- package/lib/component/utility/getSpectraByNucleus.d.ts.map +1 -1
- package/lib/component/utility/getSpectraObjectPaths.d.ts +1 -1
- package/lib/component/utility/getSpectraObjectPaths.d.ts.map +1 -1
- package/lib/component/utility/stackOverlappingLabels.d.ts +17 -0
- package/lib/component/utility/stackOverlappingLabels.d.ts.map +1 -0
- package/lib/component/utility/stackOverlappingLabels.js +59 -0
- package/lib/component/utility/stackOverlappingLabels.js.map +1 -0
- package/lib/component/workspaces/assignment.d.ts +1 -1
- package/lib/component/workspaces/assignment.d.ts.map +1 -1
- package/lib/component/workspaces/basic.d.ts +1 -1
- package/lib/component/workspaces/basic.d.ts.map +1 -1
- package/lib/component/workspaces/embedded.d.ts +1 -1
- package/lib/component/workspaces/embedded.d.ts.map +1 -1
- package/lib/component/workspaces/exercise.d.ts +1 -1
- package/lib/component/workspaces/exercise.d.ts.map +1 -1
- package/lib/component/workspaces/exercise.js +1 -0
- package/lib/component/workspaces/exercise.js.map +1 -1
- package/lib/component/workspaces/index.d.ts +7 -7
- package/lib/component/workspaces/prediction.d.ts +1 -1
- package/lib/component/workspaces/prediction.d.ts.map +1 -1
- package/lib/component/workspaces/prediction.js +1 -0
- package/lib/component/workspaces/prediction.js.map +1 -1
- package/lib/component/workspaces/process1D.d.ts +1 -1
- package/lib/component/workspaces/process1D.d.ts.map +1 -1
- package/lib/component/workspaces/simulation.d.ts +1 -1
- package/lib/component/workspaces/simulation.d.ts.map +1 -1
- package/lib/component/workspaces/simulation.js +1 -0
- package/lib/component/workspaces/simulation.js.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
- package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
- package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
- package/lib/data/PredictionManager.d.ts +1 -1
- package/lib/data/PredictionManager.d.ts.map +1 -1
- package/lib/data/PredictionManager.js +11 -2
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/SpectraManager.d.ts +5 -3
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js +11 -8
- package/lib/data/SpectraManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/SumManager.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/SumManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/get1DColor.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/get1DDataXY.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/integrals/initiateIntegrals.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/isSpectrum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/initiatePeaks.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/autoRangesDetection.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/changeRangeSignal.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts +2 -39
- package/lib/data/data1d/Spectrum1D/ranges/createRange.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/createRange.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRange.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectRanges.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts +1 -31
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts +2 -39
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/initiateRanges.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts +2 -39
- package/lib/data/data1d/Spectrum1D/ranges/resizeRange.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resizeRange.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.d.ts +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js +21 -3
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.map +1 -1
- package/lib/data/data1d/database.js +1 -1
- package/lib/data/data1d/database.js.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.d.ts.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts +6 -2
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +12 -11
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.js +6 -2
- package/lib/data/data2d/Spectrum2D/get2DColor.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/getSlice.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts +4 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js +6 -0
- package/lib/data/data2d/Spectrum2D/isSpectrum2D.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/changeZoneSignal.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/getDetectionZones.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/zones/initiateZones.js.map +1 -1
- package/lib/data/molecules/Molecule.js +2 -2
- package/lib/data/molecules/Molecule.js.map +1 -1
- package/lib/data/molecules/MoleculeManager.d.ts +2 -2
- package/lib/data/molecules/MoleculeManager.d.ts.map +1 -1
- package/lib/data/molecules/MoleculeManager.js +7 -6
- package/lib/data/molecules/MoleculeManager.js.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
- package/lib/data/utilities/FindUtilities.d.ts +1 -1
- package/lib/data/utilities/FindUtilities.d.ts.map +1 -1
- package/lib/data/utilities/convertSpectraListToObject.d.ts +1 -1
- package/lib/data/utilities/convertSpectraListToObject.d.ts.map +1 -1
- package/lib/data/utilities/getCustomColor.d.ts +1 -1
- package/lib/data/utilities/getCustomColor.d.ts.map +1 -1
- package/lib/data/utilities/getCustomColor.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +32 -34
- package/src/component/1d/ApodizationLine.tsx +57 -32
- package/src/component/1d/BrushTracker1D.tsx +43 -7
- package/src/component/1d/ExclusionZonesAnnotations.tsx +1 -1
- package/src/component/1d/FloatPublicationString.tsx +11 -12
- package/src/component/1d/FloatingRanges.tsx +3 -3
- package/src/component/1d/FooterBanner.tsx +1 -1
- package/src/component/1d/LinesSeries.tsx +1 -1
- package/src/component/1d/SpectraLegends.tsx +3 -3
- package/src/component/1d/Viewer1D.tsx +1 -1
- package/src/component/1d/database/DatabaseSpectrum.tsx +4 -3
- package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +1 -1
- package/src/component/1d/inset/DraggableInset.tsx +5 -5
- package/src/component/1d/inset/SpectraInsets.tsx +1 -1
- package/src/component/1d/integral/IntegralsSeries.tsx +1 -1
- package/src/component/1d/jCouplingGraph/JGraph.tsx +1 -1
- package/src/component/1d/matrix/useMatrix.ts +1 -1
- package/src/component/1d/multiAnalysis/MultiAnalysisRanges.tsx +2 -2
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +1 -1
- package/src/component/1d/multiplicityTree/MultiplicityTrees.tsx +1 -1
- package/src/component/1d/multiplicityTree/generateTreeNodes.ts +1 -1
- package/src/component/1d/peaks/Peaks.tsx +1 -1
- package/src/component/1d/peaks/PeaksShapes.tsx +1 -1
- package/src/component/1d/peaks/usePeakShapesPath.ts +1 -1
- package/src/component/1d/ranges/AssignmentLabel.tsx +7 -4
- package/src/component/1d/ranges/Range.tsx +29 -11
- package/src/component/1d/ranges/Ranges.tsx +51 -13
- package/src/component/1d/ranges/RangesIntegrals.tsx +1 -1
- package/src/component/1d/tool/PeakPointer.tsx +1 -1
- package/src/component/1d/tool/XLabelPointer.tsx +1 -1
- package/src/component/1d/utilities/scale.ts +1 -1
- package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +2 -20
- package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +1 -1
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +1 -1
- package/src/component/1d-2d/tools/BrushXY.tsx +7 -2
- package/src/component/2d/1d-tracer/HorizontalSliceChart.tsx +1 -1
- package/src/component/2d/1d-tracer/Left1DChart.tsx +1 -1
- package/src/component/2d/1d-tracer/Top1DChart.tsx +1 -1
- package/src/component/2d/1d-tracer/VerticalSliceChart.tsx +1 -1
- package/src/component/2d/1d-tracer/phase-correction-traces/SpectrumPhaseTrace.tsx +1 -1
- package/src/component/2d/BrushTracker2D.tsx +27 -4
- package/src/component/2d/SVGContent2D.tsx +3 -4
- package/src/component/2d/SlicingView.tsx +1 -1
- package/src/component/2d/XAxis.tsx +1 -1
- package/src/component/2d/fid/FidCanvas.tsx +1 -1
- package/src/component/2d/fid/FidContainer.tsx +1 -1
- package/src/component/2d/ft/Contours.tsx +1 -1
- package/src/component/2d/ft/FTContainer.tsx +1 -1
- package/src/component/2d/useTracesSpectra.ts +35 -20
- package/src/component/2d/utilities/extractSpectrumSignals.ts +60 -0
- package/src/component/2d/zones/SignalsGuideLines.tsx +280 -0
- package/src/component/2d/zones/Zone.tsx +43 -63
- package/src/component/2d/zones/Zones.tsx +1 -1
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +89 -2
- package/src/component/EventsTrackers/BrushTracker.tsx +211 -64
- package/src/component/assignment/utilities/filterAssignedIDs.ts +8 -0
- package/src/component/assignment/utilities/getAssignments.ts +1 -1
- package/src/component/context/CoreContext.tsx +14 -0
- package/src/component/context/SortSpectraContext.tsx +1 -1
- package/src/component/context/TopicMoleculeContext.tsx +2 -2
- package/src/component/elements/MoleculeSelection.tsx +1 -1
- package/src/component/elements/TabsProvider.tsx +42 -0
- package/src/component/elements/export/ExportContent.tsx +1 -1
- package/src/component/elements/export/ExportManager.tsx +1 -1
- package/src/component/elements/export/ExportOptionsModal.tsx +2 -2
- package/src/component/elements/export/units.ts +2 -2
- package/src/component/elements/export/useExportConfigurer.tsx +1 -1
- package/src/component/elements/export/utilities/exportOptionValidationSchema.ts +6 -1
- package/src/component/elements/export/utilities/getExportOptions.ts +1 -1
- package/src/component/elements/export/utilities/getSizeInPixel.ts +1 -1
- package/src/component/elements/print/PrintContent.tsx +1 -1
- package/src/component/elements/print/pageSize.ts +1 -1
- package/src/component/header/Header.tsx +2 -2
- package/src/component/header/SimpleBaseLineCorrectionOptionsPanel.tsx +20 -21
- package/src/component/highlight/index.tsx +1 -1
- package/src/component/hooks/useActiveSpectrumIntegralsViewState.ts +1 -1
- package/src/component/hooks/useActiveSpectrumPeaksViewState.ts +1 -1
- package/src/component/hooks/useActiveSpectrumRangesViewState.ts +1 -1
- package/src/component/hooks/useActiveSpectrumZonesViewState.ts +1 -1
- package/src/component/hooks/useCanvasContext.ts +15 -0
- package/src/component/hooks/useCheckPointsNumberInWindowArea.ts +1 -1
- package/src/component/hooks/useExport.tsx +6 -4
- package/src/component/hooks/useFilter.ts +1 -1
- package/src/component/hooks/usePanelPreferences.ts +2 -2
- package/src/component/hooks/usePeaksLabelSettings.ts +1 -1
- package/src/component/hooks/useResizerStatus.ts +1 -1
- package/src/component/hooks/useSaveSettings.tsx +1 -1
- package/src/component/hooks/useSpectraPerNucleus.ts +1 -1
- package/src/component/hooks/useSpectrum.ts +2 -27
- package/src/component/hooks/useSpectrumWithDataSource.ts +36 -0
- package/src/component/hooks/useTempSpectrum.ts +2 -15
- package/src/component/hooks/useToolsFunctions.ts +1 -1
- package/src/component/hooks/useWorkspaceAction.ts +1 -1
- package/src/component/loader/useLoadFiles.ts +4 -2
- package/src/component/main/InnerNMRium.tsx +69 -56
- package/src/component/main/InnerNMRiumContents.tsx +1 -1
- package/src/component/main/NMRium.tsx +3 -1
- package/src/component/main/NMRiumStateProvider.tsx +8 -4
- package/src/component/main/NMRiumViewerWrapper.tsx +5 -1
- package/src/component/main/index.ts +0 -2
- package/src/component/main/types.ts +3 -3
- package/src/component/modal/ExportAsJcampModal.tsx +1 -1
- package/src/component/modal/LoadJCAMPModal.tsx +3 -2
- package/src/component/modal/MoleculeStructureEditorModal.tsx +13 -9
- package/src/component/modal/MultipletAnalysisModal.tsx +1 -1
- package/src/component/modal/changeSum/ChangeSumModalContents.tsx +1 -1
- package/src/component/modal/editRange/EditRangeModal.tsx +52 -58
- package/src/component/modal/editRange/forms/components/DeltaInput.tsx +3 -2
- package/src/component/modal/editRange/forms/components/InfoBlock.tsx +4 -2
- package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +4 -2
- package/src/component/modal/editRange/forms/components/SignalsContent.tsx +6 -15
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalJCouplingsTable.tsx +3 -1
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +5 -2
- package/src/component/modal/setting/GeneralSettings.tsx +1 -1
- package/src/component/modal/setting/WorkspaceItem.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/DatabasesTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/DisplayTabContent.tsx +3 -3
- package/src/component/modal/setting/settings-tabs/ExportTabContent.tsx +5 -11
- package/src/component/modal/setting/settings-tabs/ExternalAPIsTabContent.tsx +2 -2
- package/src/component/modal/setting/settings-tabs/GeneralTabContent.tsx +6 -3
- package/src/component/modal/setting/settings-tabs/InfoBlockTabContent.tsx +3 -3
- package/src/component/modal/setting/settings-tabs/NucleiTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/OnLoadProcessingTabContent.tsx +5 -4
- package/src/component/modal/setting/settings-tabs/SpectraColorsTabContent.tsx +1 -1
- package/src/component/modal/setting/settings-tabs/ToolsTabContent.tsx +1 -1
- package/src/component/modal/setting/settingsValidation.ts +2 -2
- package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +3 -3
- package/src/component/panels/IntegralsPanel/IntegralPanel.tsx +1 -1
- package/src/component/panels/MatrixGenerationPanel/MatrixGenerationPanel.tsx +15 -23
- package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +2 -26
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +5 -5
- package/src/component/panels/MoleculesPanel/Utilities.ts +63 -29
- package/src/component/panels/MoleculesPanel/useAtomAssignment.tsx +193 -194
- package/src/component/panels/Panels.tsx +72 -34
- package/src/component/panels/PanelsBar.tsx +1 -1
- package/src/component/panels/PeaksPanel/PeaksPanel.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesHeader.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesPanel.tsx +4 -1
- package/src/component/panels/RangesPanel/RangesTable.tsx +1 -1
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +4 -4
- package/src/component/panels/RangesPanel/TableColumns/RangeAssignmentColumn.tsx +1 -1
- package/src/component/panels/SpectraPanel/SpectraPanelHeader.tsx +5 -1
- package/src/component/panels/SpectraPanel/SpectraPreferences.tsx +1 -1
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +3 -3
- package/src/component/panels/SpectraPanel/SpectraTabs.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/ColorIndicator.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/ShowHideSpectrumButton.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/SpectraColumnsManager.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/SpectrumName.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +1 -1
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +1 -1
- package/src/component/panels/SummaryPanel/utilities/Utilities.ts +5 -1
- package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumns.tsx +2 -0
- package/src/component/panels/ZonesPanel/TableColumns/SignalDeltaColumn.tsx +1 -1
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.tsx +6 -0
- package/src/component/panels/ZonesPanel/ZonesPanel.tsx +1 -1
- package/src/component/panels/ZonesPanel/ZonesTable.tsx +1 -1
- package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +1 -1
- package/src/component/panels/accordionItems.tsx +1 -1
- package/src/component/panels/databasePanel/DatabasePanel.tsx +60 -22
- package/src/component/panels/databasePanel/DatabasePreferences.tsx +19 -0
- package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +2 -2
- package/src/component/panels/databasePanel/DatabaseStructureSearchModal.tsx +15 -10
- package/src/component/panels/databasePanel/DatabaseTable.tsx +4 -2
- package/src/component/panels/filtersPanel/Filters/BaseLineCorrectionOptionsPanel.tsx +20 -21
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +4 -1
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +32 -1
- package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +13 -5
- package/src/component/panels/filtersPanel/Filters/hooks/useBaselineCorrection.tsx +0 -1
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.tsx +1 -1
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +1 -1
- package/src/component/panels/hooks/useGetPanelOptions.ts +1 -1
- package/src/component/panels/hooks/useTogglePanel.ts +7 -4
- package/src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +2 -2
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/base/AnalysisColumnHeader.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/preferences/AnalysisTablePreferences.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/preferences/LegendsPreferences.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/preferences/index.tsx +9 -7
- package/src/component/panels/predictionPanel/PredictionOptionsPanel.tsx +1 -1
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +16 -15
- package/src/component/panels/predictionPanel/PredictionSimpleOptions.tsx +55 -41
- package/src/component/panels/spectrumSimulation/SpectrumSimulation.tsx +8 -7
- package/src/component/reducer/Reducer.ts +5 -5
- package/src/component/reducer/actions/AssignmentsActions.ts +1 -1
- package/src/component/reducer/actions/CorrelationsActions.ts +1 -1
- package/src/component/reducer/actions/DatabaseActions.ts +11 -2
- package/src/component/reducer/actions/DomainActions.ts +5 -5
- package/src/component/reducer/actions/FiltersActions.ts +207 -85
- package/src/component/reducer/actions/InsetActions.ts +13 -7
- package/src/component/reducer/actions/IntegralsActions.ts +1 -1
- package/src/component/reducer/actions/LoadActions.ts +6 -6
- package/src/component/reducer/actions/MoleculeActions.ts +6 -4
- package/src/component/reducer/actions/PeaksActions.ts +4 -4
- package/src/component/reducer/actions/PreferencesActions.ts +1 -1
- package/src/component/reducer/actions/RangesActions.ts +56 -49
- package/src/component/reducer/actions/SpectraActions.ts +7 -7
- package/src/component/reducer/actions/ToolsActions.ts +41 -20
- package/src/component/reducer/actions/ZonesActions.ts +34 -25
- package/src/component/reducer/helper/Zoom1DManager.ts +11 -15
- package/src/component/reducer/helper/ZoomHistoryManager.ts +29 -23
- package/src/component/reducer/helper/setIntegralsViewProperty.ts +1 -1
- package/src/component/reducer/helper/setRangesViewProperty.ts +1 -1
- package/src/component/reducer/preferences/actions/matrixGeneration.ts +3 -3
- package/src/component/reducer/preferences/actions/togglePanel.ts +1 -1
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +5 -1
- package/src/component/reducer/preferences/preferencesReducer.ts +4 -4
- package/src/component/reducer/preferences/utilities/getActiveWorkspace.ts +1 -1
- package/src/component/reducer/preferences/utilities/getPreferencesByWorkspace.ts +4 -1
- package/src/component/reducer/preferences/utilities/initWorkspace.ts +1 -1
- package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +1 -1
- package/src/component/toolbar/ToolBar.tsx +18 -10
- package/src/component/toolbar/ToolTypes.ts +1 -1
- package/src/component/useWatchForm.tsx +37 -0
- package/src/component/utility/export.ts +4 -1
- package/src/component/utility/getClosePeak.ts +1 -1
- package/src/component/utility/getSpectraByNucleus.ts +1 -1
- package/src/component/utility/getSpectraObjectPaths.ts +1 -1
- package/src/component/utility/stackOverlappingLabels.ts +92 -0
- package/src/component/workspaces/assignment.ts +1 -1
- package/src/component/workspaces/basic.ts +1 -1
- package/src/component/workspaces/embedded.ts +1 -1
- package/src/component/workspaces/exercise.ts +2 -1
- package/src/component/workspaces/prediction.ts +2 -1
- package/src/component/workspaces/process1D.ts +1 -1
- package/src/component/workspaces/simulation.ts +2 -1
- package/src/component/workspaces/workspaceDefaultProperties.ts +2 -1
- package/src/data/PredictionManager.ts +15 -3
- package/src/data/SpectraManager.ts +20 -14
- package/src/data/data1d/Spectrum1D/SumManager.ts +1 -1
- package/src/data/data1d/Spectrum1D/get1DColor.ts +1 -1
- package/src/data/data1d/Spectrum1D/get1DDataXY.ts +1 -1
- package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +4 -1
- package/src/data/data1d/Spectrum1D/integrals/changeIntegralsRelative.ts +1 -1
- package/src/data/data1d/Spectrum1D/integrals/initiateIntegrals.ts +1 -1
- package/src/data/data1d/Spectrum1D/isSpectrum1D.ts +1 -1
- package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +1 -1
- package/src/data/data1d/Spectrum1D/peaks/initiatePeaks.ts +1 -1
- package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/autoRangesDetection.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/changeRangeRelativeValue.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/changeRangeSignal.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/createRange.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/detectRange.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/detectRanges.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/initiateRanges.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/resizeRange.ts +1 -1
- package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +28 -4
- package/src/data/data1d/database.ts +1 -1
- package/src/data/data1d/multipleSpectraAnalysis.ts +6 -6
- package/src/data/data2d/Spectrum2D/contours.ts +20 -15
- package/src/data/data2d/Spectrum2D/get2DColor.ts +10 -3
- package/src/data/data2d/Spectrum2D/getSlice.ts +1 -1
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +4 -1
- package/src/data/data2d/Spectrum2D/isSpectrum2D.ts +9 -1
- package/src/data/data2d/Spectrum2D/zones/changeZoneSignal.ts +1 -1
- package/src/data/data2d/Spectrum2D/zones/getDetectionZones.ts +1 -1
- package/src/data/data2d/Spectrum2D/zones/initiateZones.ts +1 -1
- package/src/data/molecules/Molecule.ts +2 -2
- package/src/data/molecules/MoleculeManager.ts +7 -5
- package/src/data/parseMeta/linkMetaWithSpectra.ts +1 -1
- package/src/data/utilities/FindUtilities.ts +1 -1
- package/src/data/utilities/convertSpectraListToObject.ts +1 -1
- package/src/data/utilities/getCustomColor.ts +2 -2
- package/src/versionInfo.ts +1 -1
- package/lib/component/2d/zones/IndicationLines.d.ts +0 -7
- package/lib/component/2d/zones/IndicationLines.d.ts.map +0 -1
- package/lib/component/2d/zones/IndicationLines.js +0 -50
- package/lib/component/2d/zones/IndicationLines.js.map +0 -1
- package/lib/component/assignment/utilities/filterForIDsWithAssignment.d.ts +0 -3
- package/lib/component/assignment/utilities/filterForIDsWithAssignment.d.ts.map +0 -1
- package/lib/component/assignment/utilities/filterForIDsWithAssignment.js +0 -4
- package/lib/component/assignment/utilities/filterForIDsWithAssignment.js.map +0 -1
- package/src/component/2d/zones/IndicationLines.tsx +0 -94
- package/src/component/assignment/utilities/filterForIDsWithAssignment.ts +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useActiveSpectrumRangesViewState.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useActiveSpectrumRangesViewState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useActiveSpectrumRangesViewState.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useActiveSpectrumRangesViewState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAO7D,eAAO,MAAM,sBAAsB,EAAE,eAapC,CAAC;AAEF,wBAAgB,gCAAgC,oBAqB/C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ZonesViewState } from '
|
|
1
|
+
import type { ZonesViewState } from '@zakodium/nmrium-core';
|
|
2
2
|
export declare const defaultZonesViewState: ZonesViewState;
|
|
3
3
|
export declare function useActiveSpectrumZonesViewState(): ZonesViewState;
|
|
4
4
|
//# sourceMappingURL=useActiveSpectrumZonesViewState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useActiveSpectrumZonesViewState.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useActiveSpectrumZonesViewState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useActiveSpectrumZonesViewState.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useActiveSpectrumZonesViewState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAM5D,eAAO,MAAM,qBAAqB,EAAE,cAMnC,CAAC;AAEF,wBAAgB,+BAA+B,mBAe9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCanvasContext.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useCanvasContext.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,SAAS,SAAK,mCAY9C"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useRef } from 'react';
|
|
2
|
+
export function useCanvasContext(labelSize = 12) {
|
|
3
|
+
const contextRef = useRef(null);
|
|
4
|
+
if (!contextRef.current) {
|
|
5
|
+
const canvas = document.createElement('canvas');
|
|
6
|
+
contextRef.current = canvas.getContext('2d');
|
|
7
|
+
if (contextRef.current) {
|
|
8
|
+
contextRef.current.font = `${labelSize}px Arial`;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return contextRef.current;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=useCanvasContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCanvasContext.js","sourceRoot":"","sources":["../../../src/component/hooks/useCanvasContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,MAAM,UAAU,gBAAgB,CAAC,SAAS,GAAG,EAAE;IAC7C,MAAM,UAAU,GAAG,MAAM,CAAkC,IAAI,CAAC,CAAC;IAEjE,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QACxB,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAChD,UAAU,CAAC,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;YACvB,UAAU,CAAC,OAAO,CAAC,IAAI,GAAG,GAAG,SAAS,UAAU,CAAC;QACnD,CAAC;IACH,CAAC;IAED,OAAO,UAAU,CAAC,OAAO,CAAC;AAC5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCheckPointsNumberInWindowArea.js","sourceRoot":"","sources":["../../../src/component/hooks/useCheckPointsNumberInWindowArea.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCheckPointsNumberInWindowArea.js","sourceRoot":"","sources":["../../../src/component/hooks/useCheckPointsNumberInWindowArea.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC;AAEjC,MAAM,UAAU,gCAAgC;IAC9C,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IACnC,MAAM,EACJ,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,GACpB,GAAG,KAAK,CAAC;IAEV,IAAI,QAAQ,EAAE,CAAC;QACb,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,eAAe,CAC3C,QAAuB,CAAC,IAAI,CAAC,CAAC,EAC/B;YACE,IAAI;YACJ,EAAE;SACH,CACF,CAAC;QACF,OAAO,OAAO,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,OAAO,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExport.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useExport.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"useExport.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useExport.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAclE,UAAU,WAAW;IACnB,OAAO,EAAE,aAAa,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,SAAS;;2BA+BX,WAAW;EA4BxB;AAED,wBAAgB,iBAAiB;+CAImB,WAAW;sCAoCpB,WAAW;sCAqBX,WAAW;EAsCrD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
2
|
import { toJSON } from '../../data/SpectraManager.js';
|
|
3
3
|
import { useChartData } from '../context/ChartContext.js';
|
|
4
|
+
import { useCore } from '../context/CoreContext.js';
|
|
4
5
|
import { usePreferences } from '../context/PreferencesContext.js';
|
|
5
6
|
import { useToaster } from '../context/ToasterContext.js';
|
|
6
7
|
import { browserNotSupportedErrorToast, copyPNGToClipboard, exportAsJSON, exportAsPng, exportAsSVG, } from '../utility/export.js';
|
|
@@ -8,6 +9,7 @@ export function useExport() {
|
|
|
8
9
|
const toaster = useToaster();
|
|
9
10
|
const state = useChartData();
|
|
10
11
|
const preferencesState = usePreferences();
|
|
12
|
+
const core = useCore();
|
|
11
13
|
const saveAsJSONHandler = useCallback((spaceIndent = 0, isCompressed = true) => {
|
|
12
14
|
const hideLoading = toaster.showLoading({
|
|
13
15
|
message: 'Exporting as NMRium process in progress',
|
|
@@ -15,7 +17,7 @@ export function useExport() {
|
|
|
15
17
|
try {
|
|
16
18
|
void (async () => {
|
|
17
19
|
const fileName = state.data[0]?.info?.name;
|
|
18
|
-
const exportedData = toJSON(state, preferencesState, {
|
|
20
|
+
const exportedData = toJSON(core, state, preferencesState, {
|
|
19
21
|
exportTarget: 'nmrium',
|
|
20
22
|
view: true,
|
|
21
23
|
});
|
|
@@ -26,7 +28,7 @@ export function useExport() {
|
|
|
26
28
|
catch (error) {
|
|
27
29
|
reportError(error);
|
|
28
30
|
}
|
|
29
|
-
}, [preferencesState, state, toaster]);
|
|
31
|
+
}, [core, preferencesState, state, toaster]);
|
|
30
32
|
const saveHandler = useCallback((options) => {
|
|
31
33
|
async function handler() {
|
|
32
34
|
const { name, pretty, compressed, include } = options;
|
|
@@ -35,7 +37,7 @@ export function useExport() {
|
|
|
35
37
|
});
|
|
36
38
|
setTimeout(() => {
|
|
37
39
|
void (async () => {
|
|
38
|
-
const exportedData = toJSON(state, preferencesState, {
|
|
40
|
+
const exportedData = toJSON(core, state, preferencesState, {
|
|
39
41
|
...include,
|
|
40
42
|
exportTarget: 'nmrium',
|
|
41
43
|
});
|
|
@@ -46,7 +48,7 @@ export function useExport() {
|
|
|
46
48
|
}, 0);
|
|
47
49
|
}
|
|
48
50
|
void handler();
|
|
49
|
-
}, [preferencesState, state, toaster]);
|
|
51
|
+
}, [core, preferencesState, state, toaster]);
|
|
50
52
|
return {
|
|
51
53
|
saveAsJSONHandler,
|
|
52
54
|
saveHandler,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExport.js","sourceRoot":"","sources":["../../../src/component/hooks/useExport.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EACL,6BAA6B,EAC7B,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAS9B,MAAM,UAAU,SAAS;IACvB,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,MAAM,gBAAgB,GAAG,cAAc,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"useExport.js","sourceRoot":"","sources":["../../../src/component/hooks/useExport.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EACL,6BAA6B,EAC7B,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAS9B,MAAM,UAAU,SAAS;IACvB,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,MAAM,KAA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SpacePanelPreferences } from '
|
|
1
|
+
import type { MatrixGenerationOptions, MultipleSpectraAnalysisPreferences, PanelsPreferences, WorkSpacePanelPreferences } from '@zakodium/nmrium-core';
|
|
2
2
|
type Panel = 'spectra' | 'peaks' | 'integrals' | 'zones' | 'ranges' | 'database' | 'multipleSpectraAnalysis' | 'matrixGeneration' | 'prediction';
|
|
3
3
|
export declare function usePanelPreferences<T extends Panel>(panelKey: T, nucleus: string): T extends 'matrixGeneration' ? MatrixGenerationOptions : T extends 'multipleSpectraAnalysis' ? MultipleSpectraAnalysisPreferences : WorkSpacePanelPreferences[T];
|
|
4
4
|
export declare function usePanelPreferences<T extends 'database' | 'prediction'>(panelKey: T): WorkSpacePanelPreferences[T];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePanelPreferences.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/usePanelPreferences.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePanelPreferences.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/usePanelPreferences.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,kCAAkC,EAClC,iBAAiB,EAEjB,yBAAyB,EAC1B,MAAM,uBAAuB,CAAC;AAkB/B,KAAK,KAAK,GACN,SAAS,GACT,OAAO,GACP,WAAW,GACX,OAAO,GACP,QAAQ,GACR,UAAU,GACV,yBAAyB,GACzB,kBAAkB,GAClB,YAAY,CAAC;AA0FjB,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,KAAK,EACjD,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,MAAM,GACd,CAAC,SAAS,kBAAkB,GAC3B,uBAAuB,GACvB,CAAC,SAAS,yBAAyB,GACjC,kCAAkC,GAClC,yBAAyB,CAAC,CAAC,CAAC,CAAC;AACnC,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,UAAU,GAAG,YAAY,EACrE,QAAQ,EAAE,CAAC,GACV,yBAAyB,CAAC,CAAC,CAAC,CAAC;AAYhC,KAAK,iCAAiC,CAAC,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS,SAAS,GACzE,iBAAiB,CAAC,SAAS,CAAC,GAC5B,CAAC,SAAS,OAAO,GACf,iBAAiB,CAAC,OAAO,CAAC,GAC1B,CAAC,SAAS,WAAW,GACnB,iBAAiB,CAAC,WAAW,CAAC,GAC9B,CAAC,SAAS,OAAO,GACf,iBAAiB,CAAC,OAAO,CAAC,GAC1B,CAAC,SAAS,QAAQ,GAChB,iBAAiB,CAAC,QAAQ,CAAC,GAC3B,CAAC,SAAS,yBAAyB,GACjC,iBAAiB,CAAC,yBAAyB,CAAC,GAC5C,CAAC,SAAS,kBAAkB,GAC1B,iBAAiB,CAAC,kBAAkB,CAAC,GACrC,IAAI,CAAC;AAErB,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,KAAK,EACzD,QAAQ,EAAE,CAAC,EACX,MAAM,EAAE,MAAM,EAAE,GACf,iCAAiC,CAAC,CAAC,CAAC,CAiBtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePanelPreferences.js","sourceRoot":"","sources":["../../../src/component/hooks/usePanelPreferences.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePanelPreferences.js","sourceRoot":"","sources":["../../../src/component/hooks/usePanelPreferences.ts"],"names":[],"mappings":"AAOA,OAAO,GAAG,MAAM,eAAe,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,uCAAuC,EACvC,uBAAuB,EACvB,gCAAgC,GACjC,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA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,MAAgB;IAEhB,MAAM,EAAE,OAAO,EAAE,GAAG,cAAc,EAAE,CAAC;IACrC,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,6DAA6D;QAC7D,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI,EAAE,GAAG,eAAe,EAAE,GACrD,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAEzC,OAAO;YACL,MAAM,EAAE,MAAM,CAAC,WAAW,CACxB,MAAM,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC;gBAC3B,YAAY;gBACZ,mBAAmB,CAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,CAAC;aAC3D,CAAC,CACH;YACD,GAAG,eAAe;SACnB,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePeaksLabelSettings.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/usePeaksLabelSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"usePeaksLabelSettings.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/usePeaksLabelSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAQxD,wBAAgB,qBAAqB,eAIpC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { NMRiumToolBarPreferences } from '
|
|
1
|
+
import type { NMRiumToolBarPreferences } from '@zakodium/nmrium-core';
|
|
2
2
|
export declare function useResizerStatus(toolKey: keyof NMRiumToolBarPreferences): boolean;
|
|
3
3
|
//# sourceMappingURL=useResizerStatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResizerStatus.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useResizerStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useResizerStatus.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useResizerStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAKtE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,wBAAwB,WAMvE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Workspace } from '
|
|
1
|
+
import type { Workspace } from '@zakodium/nmrium-core';
|
|
2
2
|
export declare function useSaveSettings(): {
|
|
3
3
|
saveSettings: (values?: Partial<Workspace>) => void;
|
|
4
4
|
SaveSettingsModal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSaveSettings.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useSaveSettings.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useSaveSettings.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useSaveSettings.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAmDvD,wBAAgB,eAAe;4BAoBE,OAAO,CAAC,SAAS,CAAC;;EA6ClD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSpectraPerNucleus.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useSpectraPerNucleus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useSpectraPerNucleus.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useSpectraPerNucleus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAMtD,MAAM,CAAC,OAAO,UAAU,yBAAyB,eAkBhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSpectrum.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useSpectrum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSpectrum.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useSpectrum.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,YAAY,GAAE,GAAU,4CAG3D"}
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
2
|
-
import { useInsetOptions } from '../1d/inset/InsetProvider.js';
|
|
3
1
|
import { useChartData } from '../context/ChartContext.js';
|
|
4
|
-
import {
|
|
5
|
-
function getSpectrum(data, spectrumKey, defaultValue) {
|
|
6
|
-
return data.find((datum) => datum.id === spectrumKey) || defaultValue;
|
|
7
|
-
}
|
|
2
|
+
import { useSpectrumWithDataSource } from './useSpectrumWithDataSource.js';
|
|
8
3
|
export default function useSpectrum(defaultValue = null) {
|
|
9
4
|
const { data } = useChartData();
|
|
10
|
-
|
|
11
|
-
const inset = useInsetOptions();
|
|
12
|
-
return useMemo(() => {
|
|
13
|
-
if (inset) {
|
|
14
|
-
return getSpectrum(data, inset.spectrumKey, defaultValue);
|
|
15
|
-
}
|
|
16
|
-
if (data && activeSpectrum?.id && activeSpectrum?.selected) {
|
|
17
|
-
return getSpectrum(data, activeSpectrum.id, defaultValue);
|
|
18
|
-
}
|
|
19
|
-
return defaultValue;
|
|
20
|
-
}, [activeSpectrum, data, defaultValue, inset]);
|
|
5
|
+
return useSpectrumWithDataSource(data, defaultValue);
|
|
21
6
|
}
|
|
22
7
|
//# sourceMappingURL=useSpectrum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSpectrum.js","sourceRoot":"","sources":["../../../src/component/hooks/useSpectrum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSpectrum.js","sourceRoot":"","sources":["../../../src/component/hooks/useSpectrum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,eAAoB,IAAI;IAC1D,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,EAAE,CAAC;IAChC,OAAO,yBAAyB,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSpectrumWithDataSource.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useSpectrumWithDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAetD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,GAAG,EACf,YAAY,GAAE,GAAU,YAkBzB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import { useInsetOptions } from '../1d/inset/InsetProvider.js';
|
|
3
|
+
import { useActiveSpectrum } from './useActiveSpectrum.js';
|
|
4
|
+
function getSpectrum(data, spectrumKey, defaultValue) {
|
|
5
|
+
return data.find((datum) => datum.id === spectrumKey) || defaultValue;
|
|
6
|
+
}
|
|
7
|
+
export function useSpectrumWithDataSource(dataSource, defaultValue = null) {
|
|
8
|
+
const activeSpectrum = useActiveSpectrum();
|
|
9
|
+
const inset = useInsetOptions();
|
|
10
|
+
return useMemo(() => {
|
|
11
|
+
if (!dataSource)
|
|
12
|
+
return defaultValue;
|
|
13
|
+
if (inset) {
|
|
14
|
+
return getSpectrum(dataSource, inset.spectrumKey, defaultValue);
|
|
15
|
+
}
|
|
16
|
+
if (dataSource && activeSpectrum?.id && activeSpectrum?.selected) {
|
|
17
|
+
return getSpectrum(dataSource, activeSpectrum.id, defaultValue);
|
|
18
|
+
}
|
|
19
|
+
return defaultValue;
|
|
20
|
+
}, [activeSpectrum, dataSource, defaultValue, inset]);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=useSpectrumWithDataSource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSpectrumWithDataSource.js","sourceRoot":"","sources":["../../../src/component/hooks/useSpectrumWithDataSource.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,SAAS,WAAW,CAClB,IAAgB,EAChB,WAAmB,EACnB,YAAkB;IAElB,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,WAAW,CAAC,IAAI,YAAY,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,UAAe,EACf,eAAoB,IAAI;IAExB,MAAM,cAAc,GAAG,iBAAiB,EAAE,CAAC;IAC3C,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,OAAO,OAAO,CAAW,GAAG,EAAE;QAC5B,IAAI,CAAC,UAAU;YAAE,OAAO,YAAY,CAAC;QAErC,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,WAAW,CAAC,UAAU,EAAE,KAAK,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;QAClE,CAAC;QAED,IAAI,UAAU,IAAI,cAAc,EAAE,EAAE,IAAI,cAAc,EAAE,QAAQ,EAAE,CAAC;YACjE,OAAO,WAAW,CAAC,UAAU,EAAE,cAAc,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;QAClE,CAAC;QAED,OAAO,YAAY,CAAC;IACtB,CAAC,EAAE,CAAC,cAAc,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTempSpectrum.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useTempSpectrum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTempSpectrum.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useTempSpectrum.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,YAAY,GAAE,GAAU,4CAG/D"}
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
2
1
|
import { useChartData } from '../context/ChartContext.js';
|
|
3
|
-
import {
|
|
2
|
+
import { useSpectrumWithDataSource } from './useSpectrumWithDataSource.js';
|
|
4
3
|
export default function useTempSpectrum(defaultValue = null) {
|
|
5
4
|
const { tempData } = useChartData();
|
|
6
|
-
|
|
7
|
-
return useMemo(() => {
|
|
8
|
-
if (tempData && activeSpectrum?.id && activeSpectrum?.selected) {
|
|
9
|
-
const datum = tempData.find((datum) => datum.id === activeSpectrum.id) ||
|
|
10
|
-
defaultValue;
|
|
11
|
-
return datum;
|
|
12
|
-
}
|
|
13
|
-
return defaultValue;
|
|
14
|
-
}, [activeSpectrum, tempData, defaultValue]);
|
|
5
|
+
return useSpectrumWithDataSource(tempData, defaultValue);
|
|
15
6
|
}
|
|
16
7
|
//# sourceMappingURL=useTempSpectrum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTempSpectrum.js","sourceRoot":"","sources":["../../../src/component/hooks/useTempSpectrum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTempSpectrum.js","sourceRoot":"","sources":["../../../src/component/hooks/useTempSpectrum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,eAAoB,IAAI;IAC9D,MAAM,EAAE,QAAQ,EAAE,GAAG,YAAY,EAAE,CAAC;IACpC,OAAO,yBAAyB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AAC3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToolsFunctions.js","sourceRoot":"","sources":["../../../src/component/hooks/useToolsFunctions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useToolsFunctions.js","sourceRoot":"","sources":["../../../src/component/hooks/useToolsFunctions.ts"],"names":[],"mappings":"AACA,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,MAAM,CAAC,OAAO,UAAU,iBAAiB;IACvC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAE7B,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,GAAG,oBAAoB,EAAE,CAAC;IAC5D,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEtE,MAAM,sBAAsB,GAAG,MAAM,CAAoB,EAAE,MAA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AsB,CAAC,CAAC,mBAAmB,CAAC,CAAC;IAC/C,CAAC,EAAE,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAEpC,MAAM,6BAA6B,GAAG,WAAW,CAAC,GAAG,EAAE;QACrD,QAAQ,CAAC;YACP,IAAI,EAAE,4BAA4B;SACnC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO;QACL,kBAAkB;QAClB,iBAAiB;QACjB,4BAA4B;QAC5B,yBAAyB;QACzB,6BAA6B;QAC7B,mBAAmB;KACpB,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Workspace } from '
|
|
1
|
+
import type { Workspace } from '@zakodium/nmrium-core';
|
|
2
2
|
export declare function useWorkspaceAction(): {
|
|
3
3
|
addNewWorkspace: (workspaceName: string, data?: Omit<Workspace, "version" | "label">) => void;
|
|
4
4
|
removeWorkspace: (key: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWorkspaceAction.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useWorkspaceAction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useWorkspaceAction.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useWorkspaceAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAWvD,wBAAgB,kBAAkB;qCAqBf,MAAM,SACd,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC;2BA+Bf,MAAM;2BAmBN,OAAO,CAAC,SAAS,CAAC;oCArET,MAAM;EA+F9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWorkspaceAction.js","sourceRoot":"","sources":["../../../src/component/hooks/useWorkspaceAction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useWorkspaceAction.js","sourceRoot":"","sources":["../../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
1
|
-
export declare function useWorkspaceExportSettings(): import("
|
|
1
|
+
export declare function useWorkspaceExportSettings(): import("@zakodium/nmrium-core").ExportPreferences;
|
|
2
2
|
//# sourceMappingURL=useWorkspaceExportSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWorkspaceExportSettings.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useWorkspaceExportSettings.ts"],"names":[],"mappings":"AAGA,wBAAgB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"useWorkspaceExportSettings.d.ts","sourceRoot":"","sources":["../../../src/component/hooks/useWorkspaceExportSettings.ts"],"names":[],"mappings":"AAGA,wBAAgB,0BAA0B,sDAKzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLoadFiles.d.ts","sourceRoot":"","sources":["../../../src/component/loader/useLoadFiles.ts"],"names":[],"mappings":"AAYA,wBAAgB,YAAY,CAAC,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,
|
|
1
|
+
{"version":3,"file":"useLoadFiles.d.ts","sourceRoot":"","sources":["../../../src/component/loader/useLoadFiles.ts"],"names":[],"mappings":"AAYA,wBAAgB,YAAY,CAAC,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,WAW7D,IAAI,EAAE,UAyEjB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fileCollectionFromFileList } from 'filelist-utils';
|
|
2
|
-
import { read as readDropFiles } from 'nmr-load-save';
|
|
3
2
|
import { useCallback } from 'react';
|
|
4
3
|
import { isMetaFile, parseMetaFile } from '../../data/parseMeta/index.js';
|
|
4
|
+
import { useCore } from '../context/CoreContext.js';
|
|
5
5
|
import { useDispatch } from '../context/DispatchContext.js';
|
|
6
6
|
import { useLogger } from '../context/LoggerContext.js';
|
|
7
7
|
import { usePreferences } from '../context/PreferencesContext.js';
|
|
@@ -14,6 +14,7 @@ export function useLoadFiles(onOpenMetaInformation) {
|
|
|
14
14
|
const toaster = useToaster();
|
|
15
15
|
const { logger } = useLogger();
|
|
16
16
|
const experimentalFeatures = useCheckExperimentalFeature();
|
|
17
|
+
const core = useCore();
|
|
17
18
|
return useCallback((files) => {
|
|
18
19
|
dispatch({ type: 'SET_LOADING_FLAG', payload: { isLoading: true } });
|
|
19
20
|
async function loadFiles(files) {
|
|
@@ -31,7 +32,7 @@ export function useLoadFiles(onOpenMetaInformation) {
|
|
|
31
32
|
}
|
|
32
33
|
const { nmrLoaders: sourceSelector } = preferences.current;
|
|
33
34
|
const { onLoadProcessing, spectraColors } = workspacePreferences;
|
|
34
|
-
const { nmriumState, containsNmrium } = await
|
|
35
|
+
const { nmriumState, containsNmrium } = await core.read(fileCollection, {
|
|
35
36
|
sourceSelector,
|
|
36
37
|
logger: logger.child({ context: 'nmr-processing' }),
|
|
37
38
|
onLoadProcessing,
|
|
@@ -66,6 +67,7 @@ export function useLoadFiles(onOpenMetaInformation) {
|
|
|
66
67
|
dispatch({ type: 'SET_LOADING_FLAG', payload: { isLoading: false } });
|
|
67
68
|
});
|
|
68
69
|
}, [
|
|
70
|
+
core,
|
|
69
71
|
dispatch,
|
|
70
72
|
dispatchPreferences,
|
|
71
73
|
experimentalFeatures,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLoadFiles.js","sourceRoot":"","sources":["../../../src/component/loader/useLoadFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"useLoadFiles.js","sourceRoot":"","sources":["../../../src/component/loader/useLoadFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,OAAO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,EAAE;YACZ,QAAQ,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;IACP,CAAC,EACD;QACE,IAAI;QACJ,QAAQ;QACR,mBAAmB;QACnB,oBAAoB;QACpB,MAAM;QACN,qBAAqB;QACrB,WAAW;QACX,OAAO;QACP,oBAAoB;KACrB,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -4,6 +4,6 @@ import type { NMRiumRefAPI } from './NMRiumRefAPI.js';
|
|
|
4
4
|
type InnerNMRiumProps = Omit<NMRiumProps, 'onError'> & {
|
|
5
5
|
apiRef: ForwardedRef<NMRiumRefAPI>;
|
|
6
6
|
};
|
|
7
|
-
export declare function InnerNMRium(
|
|
7
|
+
export declare function InnerNMRium(props: InnerNMRiumProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=InnerNMRium.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InnerNMRium.d.ts","sourceRoot":"","sources":["../../../src/component/main/InnerNMRium.tsx"],"names":[],"mappings":"
|
|
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;AA4B1C,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,2CAwGlD"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import init from '@zakodium/nmrium-core-plugins';
|
|
3
|
+
import { useMemo, useEffect, useReducer, useRef } from 'react';
|
|
3
4
|
import { useFullscreen } from 'react-science/ui';
|
|
4
5
|
import { AssignmentProvider } from '../assignment/AssignmentProvider.js';
|
|
6
|
+
import { CoreProvider } from '../context/CoreContext.js';
|
|
5
7
|
import { GlobalProvider } from '../context/GlobalContext.js';
|
|
6
8
|
import { KeyModifiersProvider } from '../context/KeyModifierContext.js';
|
|
7
9
|
import { LoggerProvider } from '../context/LoggerContext.js';
|
|
@@ -17,12 +19,18 @@ import { defaultGetSpinner, SpinnerProvider, } from '../loader/SpinnerContext.js
|
|
|
17
19
|
import preferencesReducer, { initPreferencesState, preferencesInitialState, readSettings, } from '../reducer/preferences/preferencesReducer.js';
|
|
18
20
|
import { InnerNMRiumContents } from './InnerNMRiumContents.js';
|
|
19
21
|
import NMRiumStateProvider from './NMRiumStateProvider.js';
|
|
20
|
-
export function InnerNMRium(
|
|
22
|
+
export function InnerNMRium(props) {
|
|
23
|
+
const { data: nmriumData, workspace, customWorkspaces, preferences, getSpinner = defaultGetSpinner, onChange, emptyText, apiRef, core, } = props;
|
|
21
24
|
const rootRef = useRef(null);
|
|
22
25
|
const elementsWrapperRef = useRef(null);
|
|
23
26
|
const viewerRef = useRef(null);
|
|
24
27
|
const mainDivRef = useRef(null);
|
|
25
28
|
const { isFullScreen } = useFullscreen();
|
|
29
|
+
const finalCore = useMemo(() => {
|
|
30
|
+
if (!core)
|
|
31
|
+
return init();
|
|
32
|
+
return core;
|
|
33
|
+
}, [core]);
|
|
26
34
|
const [preferencesState, dispatchPreferences] = useReducer(preferencesReducer, preferencesInitialState, initPreferencesState);
|
|
27
35
|
useEffect(() => {
|
|
28
36
|
rootRef.current?.focus();
|
|
@@ -40,10 +48,10 @@ export function InnerNMRium({ data: nmriumData, workspace, customWorkspaces, pre
|
|
|
40
48
|
},
|
|
41
49
|
});
|
|
42
50
|
}, [customWorkspaces, preferences, workspace]);
|
|
43
|
-
return (_jsx("div", { ref: mainDivRef, style: { height: '100%', position: 'relative' }, translate: "no", children: _jsx(ExportManagerProvider, { children: _jsx(GlobalProvider, { value: {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
return (_jsx("div", { ref: mainDivRef, style: { height: '100%', position: 'relative' }, translate: "no", children: _jsx(CoreProvider, { value: finalCore, children: _jsx(ExportManagerProvider, { children: _jsx(GlobalProvider, { value: {
|
|
52
|
+
rootRef: rootRef.current,
|
|
53
|
+
elementsWrapperRef: elementsWrapperRef.current,
|
|
54
|
+
viewerRef: viewerRef.current,
|
|
55
|
+
}, children: _jsx(PreferencesProvider, { value: preferencesState, children: _jsx(LoggerProvider, { children: _jsx(KeyModifiersProvider, { children: _jsx(ToasterProvider, { children: _jsx(SortSpectraProvider, { children: _jsx(NMRiumStateProvider, { onChange: onChange, nmriumData: nmriumData, 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 }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }) }));
|
|
48
56
|
}
|
|
49
57
|
//# sourceMappingURL=InnerNMRium.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InnerNMRium.js","sourceRoot":"","sources":["../../../src/component/main/InnerNMRium.tsx"],"names":[],"mappings":";
|
|
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,OAAO,EAAE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EAAE,SAAS,YAC5B,KAAC,qBAAqB,cACpB,KAAC,cAAc,IACb,KAAK,EAAE;wBACL,OAAO,EAAE,OAAO,CAAC,OAAO;wBACxB,kBAAkB,EAAE,kBAAkB,CAAC,OAAO;wBAC9C,SAAS,EAAE,SAAS,CAAC,OAAO;qBAC7B,YAED,KAAC,mBAAmB,IAAC,KAAK,EAAE,gBAAgB,YAC1C,KAAC,cAAc,cACb,KAAC,oBAAoB,cACnB,KAAC,eAAe,cACd,KAAC,mBAAmB,cAClB,KAAC,mBAAmB,IAClB,QAAQ,EAAE,QAAQ,EAClB,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,4 +1,4 @@
|
|
|
1
|
-
import type { CustomWorkspaces, WorkspacePreferences as NMRiumPreferences } from '
|
|
1
|
+
import type { CustomWorkspaces, WorkspacePreferences as NMRiumPreferences, NMRiumCore } from '@zakodium/nmrium-core';
|
|
2
2
|
import type { ReactElement, ReactNode } from 'react';
|
|
3
3
|
import type { ErrorBoundaryPropsWithComponent } from 'react-error-boundary';
|
|
4
4
|
import type { NMRiumRefAPI } from './NMRiumRefAPI.js';
|
|
@@ -16,6 +16,7 @@ export interface NMRiumProps {
|
|
|
16
16
|
* Returns a custom spinner that will be rendered while loading data.
|
|
17
17
|
*/
|
|
18
18
|
getSpinner?: () => ReactElement;
|
|
19
|
+
core?: NMRiumCore;
|
|
19
20
|
}
|
|
20
21
|
export declare const NMRium: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<NMRiumProps & import("react").RefAttributes<NMRiumRefAPI>>>;
|
|
21
22
|
//# sourceMappingURL=NMRium.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NMRium.d.ts","sourceRoot":"","sources":["../../../src/component/main/NMRium.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,IAAI,iBAAiB,
|
|
1
|
+
{"version":3,"file":"NMRium.d.ts","sourceRoot":"","sources":["../../../src/component/main/NMRium.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,oBAAoB,IAAI,iBAAiB,EACzC,UAAU,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AAM5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE9E,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,+BAA+B,CAAC,SAAS,CAAC,CAAC;IACrD,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,YAAY,CAAC;IAChC,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAqBD,eAAO,MAAM,MAAM,2IAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NMRium.js","sourceRoot":"","sources":["../../../src/component/main/NMRium.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"NMRium.js","sourceRoot":"","sources":["../../../src/component/main/NMRium.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAoB/C,MAAM,UAAU,GAAG,UAAU,CAA4B,SAAS,MAAM,CACtE,KAAkB,EAClB,GAAG;IAEH,MAAM,EAAE,eAAe,GAAG,KAAK,EAAE,OAAO,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAElE,MAAM,WAAW,GAAG,KAAC,WAAW,OAAK,UAAU,EAAE,MAAM,EAAE,GAAG,GAAI,CAAC;IAEjE,MAAM,QAAQ,GAAG,eAAe,CAAC,CAAC,CAAC,CACjC,WAAW,CACZ,CAAC,CAAC,CAAC,CACF,KAAC,aAAa,IAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,YAC7D,WAAW,GACE,CACjB,CAAC;IAEF,OAAO,KAAC,UAAU,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,YAAG,QAAQ,GAAc,CAAC;AACvE,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NMRiumStateProvider.d.ts","sourceRoot":"","sources":["../../../src/component/main/NMRiumStateProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NMRiumStateProvider.d.ts","sourceRoot":"","sources":["../../../src/component/main/NMRiumStateProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBvC,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7D,UAAU,wBAAwB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAC;IACrC,UAAU,EAAE,UAAU,GAAG,SAAS,CAAC;CACpC;AAMD,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CA6H1E"}
|