nmrium 2.8.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/1d/BrushTracker1D.d.ts.map +1 -1
- package/lib/component/1d/BrushTracker1D.js +138 -133
- package/lib/component/1d/BrushTracker1D.js.map +1 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js +1 -1
- package/lib/component/1d/ExclusionZoneAnnotation.js.map +1 -1
- package/lib/component/1d/ExclusionZonesAnnotations.js.map +1 -1
- package/lib/component/1d/FloatPublicationString.d.ts.map +1 -1
- package/lib/component/1d/FloatPublicationString.js +20 -21
- package/lib/component/1d/FloatPublicationString.js.map +1 -1
- package/lib/component/1d/FooterBanner.js +2 -2
- package/lib/component/1d/FooterBanner.js.map +1 -1
- package/lib/component/1d/Line.js +1 -1
- package/lib/component/1d/Line.js.map +1 -1
- package/lib/component/1d/SVGContent1D.js +3 -3
- package/lib/component/1d/SVGContent1D.js.map +1 -1
- package/lib/component/1d/SimilarityTree.js +2 -2
- package/lib/component/1d/SimilarityTree.js.map +1 -1
- package/lib/component/1d/SpectraLegends.d.ts +1 -2
- package/lib/component/1d/SpectraLegends.d.ts.map +1 -1
- package/lib/component/1d/SpectraLegends.js +3 -4
- package/lib/component/1d/SpectraLegends.js.map +1 -1
- package/lib/component/1d/baseline/BaselinePreview.js +4 -4
- package/lib/component/1d/baseline/BaselinePreview.js.map +1 -1
- package/lib/component/1d/database/DatabaseElements.d.ts +1 -2
- package/lib/component/1d/database/DatabaseElements.d.ts.map +1 -1
- package/lib/component/1d/database/DatabaseElements.js +1 -2
- package/lib/component/1d/database/DatabaseElements.js.map +1 -1
- package/lib/component/1d/database/DatabaseSpectrum.js +3 -3
- package/lib/component/1d/database/DatabaseSpectrum.js.map +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js +1 -1
- package/lib/component/1d/database/ResurrectedDatabaseRanges.js.map +1 -1
- package/lib/component/1d/inset/DraggableInset.d.ts +1 -1
- package/lib/component/1d/inset/DraggableInset.d.ts.map +1 -1
- package/lib/component/1d/inset/DraggableInset.js +4 -4
- package/lib/component/1d/inset/DraggableInset.js.map +1 -1
- package/lib/component/1d/inset/InsetProvider.d.ts +1 -1
- package/lib/component/1d/inset/InsetProvider.d.ts.map +1 -1
- package/lib/component/1d/inset/InsetProvider.js +4 -4
- package/lib/component/1d/inset/InsetProvider.js.map +1 -1
- package/lib/component/1d/inset/InsetViewerRoot.js +3 -3
- package/lib/component/1d/inset/InsetViewerRoot.js.map +1 -1
- package/lib/component/1d/inset/SpectraInsets.d.ts +0 -23
- package/lib/component/1d/inset/SpectraInsets.d.ts.map +1 -1
- package/lib/component/1d/inset/SpectraInsets.js +1 -1
- package/lib/component/1d/inset/SpectraInsets.js.map +1 -1
- package/lib/component/1d/integral/IntegralsSeries.js +1 -1
- package/lib/component/1d/integral/IntegralsSeries.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraph.js +2 -2
- package/lib/component/1d/jCouplingGraph/JGraph.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphContext.d.ts.map +1 -1
- package/lib/component/1d/jCouplingGraph/JGraphContext.js +3 -4
- package/lib/component/1d/jCouplingGraph/JGraphContext.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.d.ts.map +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js +1 -4
- package/lib/component/1d/jCouplingGraph/JsCouplingLinks.js.map +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.js +1 -1
- package/lib/component/1d/jCouplingGraph/JsCouplings.js.map +1 -1
- package/lib/component/1d/matrix/Stocsy.js +1 -2
- package/lib/component/1d/matrix/Stocsy.js.map +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js +1 -1
- package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeakEditionManager.js +6 -7
- package/lib/component/1d/peaks/PeakEditionManager.js.map +1 -1
- package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
- package/lib/component/1d/peaks/Peaks.js +12 -15
- package/lib/component/1d/peaks/Peaks.js.map +1 -1
- package/lib/component/1d/peaks/PeaksShapes.d.ts +1 -2
- package/lib/component/1d/peaks/PeaksShapes.d.ts.map +1 -1
- package/lib/component/1d/peaks/PeaksShapes.js +31 -17
- package/lib/component/1d/peaks/PeaksShapes.js.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts +1 -2
- package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
- package/lib/component/1d/peaks/usePeakShapesPath.js +2 -3
- package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
- package/lib/component/1d/plugin_chart_brush_tracker.js +1 -1
- package/lib/component/1d/plugin_chart_brush_tracker.js.map +1 -1
- package/lib/component/1d/plugin_svg_chart.d.ts +1 -1
- package/lib/component/1d/plugin_svg_chart.d.ts.map +1 -1
- package/lib/component/1d/plugin_svg_chart.js +16 -11
- package/lib/component/1d/plugin_svg_chart.js.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.d.ts.map +1 -1
- package/lib/component/1d/ranges/AssignmentLabel.js +4 -3
- package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
- package/lib/component/1d/ranges/Atoms.js +18 -17
- package/lib/component/1d/ranges/Atoms.js.map +1 -1
- package/lib/component/1d/ranges/FloatingRanges.d.ts.map +1 -1
- package/lib/component/1d/ranges/FloatingRanges.js +12 -14
- package/lib/component/1d/ranges/FloatingRanges.js.map +1 -1
- package/lib/component/1d/ranges/RangesIntegrals.d.ts +1 -2
- package/lib/component/1d/ranges/RangesIntegrals.d.ts.map +1 -1
- package/lib/component/1d/ranges/RangesIntegrals.js +2 -3
- package/lib/component/1d/ranges/RangesIntegrals.js.map +1 -1
- package/lib/component/1d/tool/BaseLine.d.ts +1 -2
- package/lib/component/1d/tool/BaseLine.d.ts.map +1 -1
- package/lib/component/1d/tool/BaseLine.js +2 -3
- package/lib/component/1d/tool/BaseLine.js.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.d.ts.map +1 -1
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js +3 -3
- package/lib/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.js.map +1 -1
- package/lib/component/1d-2d/components/RangeIndicator.d.ts +2 -1
- package/lib/component/1d-2d/components/RangeIndicator.d.ts.map +1 -1
- package/lib/component/1d-2d/components/RangeIndicator.js +2 -2
- package/lib/component/1d-2d/components/RangeIndicator.js.map +1 -1
- package/lib/component/1d-2d/components/SVGRootContainer.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SVGRootContainer.js +2 -2
- package/lib/component/1d-2d/components/SVGRootContainer.js.map +1 -1
- package/lib/component/1d-2d/components/Signals1D.js.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts +1 -2
- package/lib/component/1d-2d/components/SpectrumInfoBlock.d.ts.map +1 -1
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js +17 -16
- package/lib/component/1d-2d/components/SpectrumInfoBlock.js.map +1 -1
- package/lib/component/1d-2d/tools/BrushXY.js +2 -2
- package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
- package/lib/component/1d-2d/tools/CursorToolIcon.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/CursorToolIcon.js +21 -6
- package/lib/component/1d-2d/tools/CursorToolIcon.js.map +1 -1
- package/lib/component/1d-2d/tools/DistanceLine.d.ts.map +1 -1
- package/lib/component/1d-2d/tools/DistanceLine.js +2 -4
- package/lib/component/1d-2d/tools/DistanceLine.js.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.js +1 -1
- package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/Ranges1D.d.ts +0 -1
- package/lib/component/2d/1d-tracer/Ranges1D.d.ts.map +1 -1
- package/lib/component/2d/1d-tracer/Ranges1D.js.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/Top1DChart.js +5 -5
- package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
- package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.js.map +1 -1
- package/lib/component/2d/BrushTracker2D.d.ts.map +1 -1
- package/lib/component/2d/BrushTracker2D.js +1 -1
- package/lib/component/2d/BrushTracker2D.js.map +1 -1
- package/lib/component/2d/FooterBanner.d.ts.map +1 -1
- package/lib/component/2d/FooterBanner.js +1 -1
- package/lib/component/2d/FooterBanner.js.map +1 -1
- package/lib/component/2d/IndirectAxis2D.js +1 -1
- package/lib/component/2d/IndirectAxis2D.js.map +1 -1
- package/lib/component/2d/SlicingView.js +2 -2
- package/lib/component/2d/SlicingView.js.map +1 -1
- package/lib/component/2d/Viewer2D.js +1 -1
- package/lib/component/2d/Viewer2D.js.map +1 -1
- package/lib/component/2d/tools/PivotIndicator.d.ts.map +1 -1
- package/lib/component/2d/tools/PivotIndicator.js +1 -1
- package/lib/component/2d/tools/PivotIndicator.js.map +1 -1
- package/lib/component/2d/utilities/scale.js +1 -1
- package/lib/component/2d/zones/SignalsGuideLines.js +6 -6
- package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
- package/lib/component/2d/zones/Zone.js +4 -4
- 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 +21 -17
- package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/BrushTracker.js +10 -10
- package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.d.ts +1 -1
- package/lib/component/EventsTrackers/KeysListenerTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.d.ts.map +1 -1
- package/lib/component/EventsTrackers/MouseTracker.js +5 -6
- package/lib/component/EventsTrackers/MouseTracker.js.map +1 -1
- package/lib/component/EventsTrackers/brush_tracker.types.d.ts +12 -4
- package/lib/component/EventsTrackers/brush_tracker.types.d.ts.map +1 -1
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts +1 -1
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.d.ts.map +1 -1
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.js +3 -4
- package/lib/component/EventsTrackers/brush_tracker_events_listeners.js.map +1 -1
- package/lib/component/SVGTable.d.ts.map +1 -1
- package/lib/component/SVGTable.js +4 -4
- package/lib/component/SVGTable.js.map +1 -1
- package/lib/component/assignment/AssignmentProvider.d.ts.map +1 -1
- package/lib/component/assignment/AssignmentProvider.js +3 -5
- package/lib/component/assignment/AssignmentProvider.js.map +1 -1
- package/lib/component/assignment/AssignmentsContext.d.ts +3 -3
- package/lib/component/assignment/AssignmentsContext.d.ts.map +1 -1
- package/lib/component/assignment/AssignmentsContext.js +3 -3
- package/lib/component/assignment/AssignmentsContext.js.map +1 -1
- package/lib/component/assignment/utilities/getAssignments.js +4 -10
- package/lib/component/assignment/utilities/getAssignments.js.map +1 -1
- package/lib/component/context/ChartContext.d.ts +1 -1
- package/lib/component/context/ChartContext.d.ts.map +1 -1
- package/lib/component/context/ChartContext.js +3 -4
- package/lib/component/context/ChartContext.js.map +1 -1
- package/lib/component/context/CoreContext.d.ts +1 -1
- package/lib/component/context/CoreContext.d.ts.map +1 -1
- package/lib/component/context/CoreContext.js +3 -4
- package/lib/component/context/CoreContext.js.map +1 -1
- package/lib/component/context/DispatchContext.d.ts +1 -1
- package/lib/component/context/DispatchContext.d.ts.map +1 -1
- package/lib/component/context/DispatchContext.js +3 -4
- package/lib/component/context/DispatchContext.js.map +1 -1
- package/lib/component/context/FilterSyncOptionsContext.js +3 -3
- package/lib/component/context/FilterSyncOptionsContext.js.map +1 -1
- package/lib/component/context/GlobalContext.d.ts +1 -1
- package/lib/component/context/GlobalContext.d.ts.map +1 -1
- package/lib/component/context/GlobalContext.js +3 -4
- package/lib/component/context/GlobalContext.js.map +1 -1
- package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
- package/lib/component/context/KeyModifierContext.js +3 -3
- package/lib/component/context/KeyModifierContext.js.map +1 -1
- package/lib/component/context/LoaderContext.d.ts +1 -1
- package/lib/component/context/LoaderContext.d.ts.map +1 -1
- package/lib/component/context/LoaderContext.js +4 -7
- package/lib/component/context/LoaderContext.js.map +1 -1
- package/lib/component/context/LoggerContext.js +4 -4
- package/lib/component/context/LoggerContext.js.map +1 -1
- package/lib/component/context/PreferencesContext.d.ts +1 -1
- package/lib/component/context/PreferencesContext.d.ts.map +1 -1
- package/lib/component/context/PreferencesContext.js +4 -5
- package/lib/component/context/PreferencesContext.js.map +1 -1
- package/lib/component/context/ScaleContext.d.ts +1 -1
- package/lib/component/context/ScaleContext.d.ts.map +1 -1
- package/lib/component/context/ScaleContext.js +3 -3
- package/lib/component/context/ScaleContext.js.map +1 -1
- package/lib/component/context/ShareDataContext.d.ts.map +1 -1
- package/lib/component/context/ShareDataContext.js +3 -3
- package/lib/component/context/ShareDataContext.js.map +1 -1
- package/lib/component/context/SortSpectraContext.d.ts.map +1 -1
- package/lib/component/context/SortSpectraContext.js +7 -8
- package/lib/component/context/SortSpectraContext.js.map +1 -1
- package/lib/component/context/ToasterContext.d.ts.map +1 -1
- package/lib/component/context/ToasterContext.js +3 -3
- package/lib/component/context/ToasterContext.js.map +1 -1
- package/lib/component/context/TopicMoleculeContext.js +3 -3
- package/lib/component/context/TopicMoleculeContext.js.map +1 -1
- package/lib/component/context/processings_mutations_context.api.d.ts +3 -2
- package/lib/component/context/processings_mutations_context.api.d.ts.map +1 -1
- package/lib/component/context/processings_mutations_context.api.js +86 -16
- package/lib/component/context/processings_mutations_context.api.js.map +1 -1
- package/lib/component/context/processings_mutations_context.js +3 -3
- package/lib/component/context/processings_mutations_context.js.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
- package/lib/component/elements/ActionsButtonsPopover.js +13 -13
- package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
- package/lib/component/elements/Alert.d.ts.map +1 -1
- package/lib/component/elements/Alert.js +6 -4
- package/lib/component/elements/Alert.js.map +1 -1
- package/lib/component/elements/Anchor.d.ts +36 -12
- package/lib/component/elements/Anchor.d.ts.map +1 -1
- package/lib/component/elements/Anchor.js.map +1 -1
- package/lib/component/elements/Button.js +1 -1
- package/lib/component/elements/Button.js.map +1 -1
- package/lib/component/elements/D3Axis.d.ts +3 -2
- package/lib/component/elements/D3Axis.d.ts.map +1 -1
- package/lib/component/elements/D3Axis.js +3 -4
- package/lib/component/elements/D3Axis.js.map +1 -1
- package/lib/component/elements/DialogManager.d.ts +3 -1
- package/lib/component/elements/DialogManager.d.ts.map +1 -1
- package/lib/component/elements/DialogManager.js +5 -5
- package/lib/component/elements/DialogManager.js.map +1 -1
- package/lib/component/elements/DraggableDialog.js +11 -11
- package/lib/component/elements/DraggableDialog.js.map +1 -1
- package/lib/component/elements/EditableColumn.d.ts +8 -3
- package/lib/component/elements/EditableColumn.d.ts.map +1 -1
- package/lib/component/elements/EditableColumn.js +40 -28
- package/lib/component/elements/EditableColumn.js.map +1 -1
- package/lib/component/elements/Footer.d.ts +9 -3
- package/lib/component/elements/Footer.d.ts.map +1 -1
- package/lib/component/elements/Footer.js.map +1 -1
- package/lib/component/elements/Input.d.ts +4 -3
- package/lib/component/elements/Input.d.ts.map +1 -1
- package/lib/component/elements/Input.js +9 -10
- package/lib/component/elements/Input.js.map +1 -1
- package/lib/component/elements/Input2.d.ts +4 -3
- package/lib/component/elements/Input2.d.ts.map +1 -1
- package/lib/component/elements/Input2.js +7 -9
- package/lib/component/elements/Input2.js.map +1 -1
- package/lib/component/elements/InputRange.d.ts +4 -3
- package/lib/component/elements/InputRange.d.ts.map +1 -1
- package/lib/component/elements/InputRange.js +10 -10
- package/lib/component/elements/InputRange.js.map +1 -1
- package/lib/component/elements/IsotopesViewer.js +1 -1
- package/lib/component/elements/IsotopesViewer.js.map +1 -1
- package/lib/component/elements/NumberInput2.d.ts +4 -3
- package/lib/component/elements/NumberInput2.d.ts.map +1 -1
- package/lib/component/elements/NumberInput2.js +5 -7
- package/lib/component/elements/NumberInput2.js.map +1 -1
- package/lib/component/elements/NumberInput2Controller.d.ts.map +1 -1
- package/lib/component/elements/NumberInput2Controller.js +17 -9
- package/lib/component/elements/NumberInput2Controller.js.map +1 -1
- package/lib/component/elements/ResizerWithScale.js +1 -1
- package/lib/component/elements/ResizerWithScale.js.map +1 -1
- package/lib/component/elements/SVGGroup.d.ts.map +1 -1
- package/lib/component/elements/SVGGroup.js +16 -15
- package/lib/component/elements/SVGGroup.js.map +1 -1
- package/lib/component/elements/Scroller.d.ts.map +1 -1
- package/lib/component/elements/Scroller.js +3 -4
- package/lib/component/elements/Scroller.js.map +1 -1
- package/lib/component/elements/Sections.js +3 -3
- package/lib/component/elements/Sections.js.map +1 -1
- package/lib/component/elements/Select.d.ts +4 -3
- package/lib/component/elements/Select.d.ts.map +1 -1
- package/lib/component/elements/Select.js +3 -5
- package/lib/component/elements/Select.js.map +1 -1
- package/lib/component/elements/Select2.d.ts +3 -5
- package/lib/component/elements/Select2.d.ts.map +1 -1
- package/lib/component/elements/Select2.js +3 -4
- package/lib/component/elements/Select2.js.map +1 -1
- package/lib/component/elements/Tab/Tab.d.ts.map +1 -1
- package/lib/component/elements/Tab/Tab.js +2 -2
- package/lib/component/elements/Tab/Tab.js.map +1 -1
- package/lib/component/elements/Tab/Tabs.d.ts.map +1 -1
- package/lib/component/elements/Tab/Tabs.js +0 -2
- package/lib/component/elements/Tab/Tabs.js.map +1 -1
- package/lib/component/elements/TabsProvider.d.ts.map +1 -1
- package/lib/component/elements/TabsProvider.js +3 -3
- package/lib/component/elements/TabsProvider.js.map +1 -1
- package/lib/component/elements/custom-color-picker.d.ts +3 -0
- package/lib/component/elements/custom-color-picker.d.ts.map +1 -0
- package/lib/component/elements/custom-color-picker.js +158 -0
- package/lib/component/elements/custom-color-picker.js.map +1 -0
- package/lib/component/elements/draggable/useDraggable.js +4 -4
- package/lib/component/elements/draggable/useDraggable.js.map +1 -1
- package/lib/component/elements/export/ExportManager.d.ts +1 -1
- package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
- package/lib/component/elements/export/ExportManager.js +5 -5
- package/lib/component/elements/export/ExportManager.js.map +1 -1
- package/lib/component/elements/export/ExportSettingsProvider.d.ts.map +1 -1
- package/lib/component/elements/export/ExportSettingsProvider.js +3 -3
- package/lib/component/elements/export/ExportSettingsProvider.js.map +1 -1
- package/lib/component/elements/export/RenderDetector.d.ts.map +1 -1
- package/lib/component/elements/export/RenderDetector.js +1 -0
- package/lib/component/elements/export/RenderDetector.js.map +1 -1
- package/lib/component/elements/print/PrintContent.js +3 -2
- package/lib/component/elements/print/PrintContent.js.map +1 -1
- package/lib/component/elements/print/PrintProvider.d.ts.map +1 -1
- package/lib/component/elements/print/PrintProvider.js +6 -6
- package/lib/component/elements/print/PrintProvider.js.map +1 -1
- package/lib/component/elements/resizer/SVGResizer.d.ts.map +1 -1
- package/lib/component/elements/resizer/SVGResizer.js +0 -1
- package/lib/component/elements/resizer/SVGResizer.js.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_context.d.ts +1 -1
- package/lib/component/elements/tanstack_table/elements/table_context.d.ts.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_context.js +3 -4
- package/lib/component/elements/tanstack_table/elements/table_context.js.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_header.d.ts +1 -0
- package/lib/component/elements/tanstack_table/elements/table_header.d.ts.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_header.js +2 -2
- package/lib/component/elements/tanstack_table/elements/table_header.js.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_row.d.ts +2 -2
- package/lib/component/elements/tanstack_table/elements/table_row.d.ts.map +1 -1
- package/lib/component/elements/tanstack_table/elements/table_row.js +41 -21
- package/lib/component/elements/tanstack_table/elements/table_row.js.map +1 -1
- package/lib/component/elements/tanstack_table/elements/useRowReorder.d.ts +10 -0
- package/lib/component/elements/tanstack_table/elements/useRowReorder.d.ts.map +1 -0
- package/lib/component/elements/tanstack_table/elements/useRowReorder.js +87 -0
- package/lib/component/elements/tanstack_table/elements/useRowReorder.js.map +1 -0
- package/lib/component/elements/tanstack_table/table.d.ts +6 -5
- package/lib/component/elements/tanstack_table/table.d.ts.map +1 -1
- package/lib/component/elements/tanstack_table/table.js +11 -9
- package/lib/component/elements/tanstack_table/table.js.map +1 -1
- package/lib/component/elements/tanstack_table/types.d.ts +3 -0
- package/lib/component/elements/tanstack_table/types.d.ts.map +1 -1
- package/lib/component/elements/utilities/transferStyles.d.ts.map +1 -1
- package/lib/component/elements/utilities/transferStyles.js +1 -3
- package/lib/component/elements/utilities/transferStyles.js.map +1 -1
- package/lib/component/header/Header.d.ts.map +1 -1
- package/lib/component/header/Header.js +4 -4
- package/lib/component/header/Header.js.map +1 -1
- package/lib/component/highlight/index.d.ts +6 -3
- package/lib/component/highlight/index.d.ts.map +1 -1
- package/lib/component/highlight/index.js +12 -9
- package/lib/component/highlight/index.js.map +1 -1
- package/lib/component/hooks/reduce2DSpectrum.js +3 -3
- package/lib/component/hooks/reduce2DSpectrum.js.map +1 -1
- package/lib/component/hooks/useCombinedRefs.d.ts +2 -2
- package/lib/component/hooks/useCombinedRefs.d.ts.map +1 -1
- package/lib/component/hooks/useCombinedRefs.js +1 -4
- package/lib/component/hooks/useCombinedRefs.js.map +1 -1
- package/lib/component/hooks/useDialogToggle.js +1 -1
- package/lib/component/hooks/useDialogToggle.js.map +1 -1
- package/lib/component/hooks/useExport.d.ts.map +1 -1
- package/lib/component/hooks/useExport.js +4 -6
- package/lib/component/hooks/useExport.js.map +1 -1
- package/lib/component/hooks/useSaveSettings.js +1 -1
- package/lib/component/hooks/useSaveSettings.js.map +1 -1
- package/lib/component/hooks/useSelectedSpectra.d.ts.map +1 -1
- package/lib/component/hooks/useSelectedSpectra.js +1 -1
- package/lib/component/hooks/useSelectedSpectra.js.map +1 -1
- package/lib/component/hooks/useTableSortBy.d.ts.map +1 -1
- package/lib/component/hooks/useTableSortBy.js +1 -1
- package/lib/component/hooks/useTableSortBy.js.map +1 -1
- package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
- package/lib/component/hooks/useTextMetrics.js +1 -0
- package/lib/component/hooks/useTextMetrics.js.map +1 -1
- package/lib/component/hooks/use_axis_unit.d.ts +3 -3
- package/lib/component/hooks/use_gridlines_config.d.ts.map +1 -1
- package/lib/component/hooks/use_gridlines_config.js +2 -4
- package/lib/component/hooks/use_gridlines_config.js.map +1 -1
- package/lib/component/loader/DropZone.js +2 -2
- package/lib/component/loader/DropZone.js.map +1 -1
- package/lib/component/loader/Spinner.js +3 -3
- package/lib/component/loader/Spinner.js.map +1 -1
- package/lib/component/loader/SpinnerContext.d.ts +1 -2
- package/lib/component/loader/SpinnerContext.d.ts.map +1 -1
- package/lib/component/loader/SpinnerContext.js +1 -2
- package/lib/component/loader/SpinnerContext.js.map +1 -1
- package/lib/component/loader/useLoadFiles.d.ts.map +1 -1
- package/lib/component/loader/useLoadFiles.js +7 -9
- package/lib/component/loader/useLoadFiles.js.map +1 -1
- package/lib/component/main/InnerNMRium.d.ts +2 -2
- package/lib/component/main/InnerNMRium.d.ts.map +1 -1
- package/lib/component/main/InnerNMRium.js +15 -11
- package/lib/component/main/InnerNMRium.js.map +1 -1
- package/lib/component/main/InnerNMRiumContents.d.ts +6 -6
- package/lib/component/main/InnerNMRiumContents.d.ts.map +1 -1
- package/lib/component/main/NMRium.d.ts +10 -2
- package/lib/component/main/NMRium.d.ts.map +1 -1
- package/lib/component/main/NMRium.js +4 -4
- package/lib/component/main/NMRium.js.map +1 -1
- package/lib/component/main/NMRiumRefAPI.d.ts +2 -2
- package/lib/component/main/NMRiumRefAPI.d.ts.map +1 -1
- package/lib/component/main/NMRiumRefAPI.js.map +1 -1
- package/lib/component/main/NMRiumStateProvider.d.ts.map +1 -1
- package/lib/component/main/NMRiumStateProvider.js +7 -5
- package/lib/component/main/NMRiumStateProvider.js.map +1 -1
- package/lib/component/main/NMRiumViewer.d.ts +1 -1
- package/lib/component/main/NMRiumViewer.d.ts.map +1 -1
- package/lib/component/main/NMRiumViewer.js +2 -1
- package/lib/component/main/NMRiumViewer.js.map +1 -1
- package/lib/component/main/NMRiumViewerWrapper.d.ts +1 -1
- package/lib/component/main/NMRiumViewerWrapper.d.ts.map +1 -1
- package/lib/component/main/types.d.ts +2 -2
- package/lib/component/main/types.d.ts.map +1 -1
- package/lib/component/modal/AboutPredictionModal.d.ts +1 -2
- package/lib/component/modal/AboutPredictionModal.d.ts.map +1 -1
- package/lib/component/modal/AboutPredictionModal.js +1 -2
- package/lib/component/modal/AboutPredictionModal.js.map +1 -1
- package/lib/component/modal/AboutSpectrumSimulationModal.d.ts +1 -2
- package/lib/component/modal/AboutSpectrumSimulationModal.d.ts.map +1 -1
- package/lib/component/modal/AboutSpectrumSimulationModal.js +1 -2
- package/lib/component/modal/AboutSpectrumSimulationModal.js.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.d.ts.map +1 -1
- package/lib/component/modal/ImportPublicationStringModal.js +5 -0
- package/lib/component/modal/ImportPublicationStringModal.js.map +1 -1
- package/lib/component/modal/LoadJCAMPModal.js +1 -1
- package/lib/component/modal/LoadJCAMPModal.js.map +1 -1
- package/lib/component/modal/LogsHistoryModal.d.ts.map +1 -1
- package/lib/component/modal/LogsHistoryModal.js +2 -2
- package/lib/component/modal/LogsHistoryModal.js.map +1 -1
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js +1 -1
- package/lib/component/modal/MoleculeAutoLabelsDatabaseModal.js.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.d.ts +1 -2
- package/lib/component/modal/aboutUs/AboutUsModal.d.ts.map +1 -1
- package/lib/component/modal/aboutUs/AboutUsModal.js +1 -2
- package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
- package/lib/component/modal/changeSum/SelectMolecule.js +2 -2
- package/lib/component/modal/changeSum/SelectMolecule.js.map +1 -1
- package/lib/component/modal/editRange/EditRangeModal.js +4 -7
- package/lib/component/modal/editRange/EditRangeModal.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 +4 -4
- package/lib/component/modal/editRange/forms/components/SignalsContent.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 +2 -6
- package/lib/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.js.map +1 -1
- package/lib/component/modal/editZone/SignalsForm.js +2 -2
- package/lib/component/modal/editZone/SignalsForm.js.map +1 -1
- package/lib/component/modal/metaImportation/MetaImportationModal.js +2 -5
- package/lib/component/modal/metaImportation/MetaImportationModal.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +81 -81
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +3 -3
- package/lib/component/modal/setting/tanstack_general_settings/errors/context.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +81 -81
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +81 -81
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +56 -55
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js +2 -3
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +9 -9
- package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js +5 -2
- package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +3 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js +5 -2
- package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js +2 -4
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js +2 -3
- package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +2 -3
- package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +54 -54
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/ui/table_section.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/auto_processing_tab_validation.d.ts +28 -28
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts +13 -11
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js +9 -4
- package/lib/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/general_tab_validation.d.ts +6 -6
- package/lib/component/modal/setting/tanstack_general_settings/validation/import_filters_tab_validation.d.ts +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.d.ts.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.js.map +1 -1
- package/lib/component/modal/setting/tanstack_general_settings/validation.d.ts +27 -27
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.js +2 -2
- package/lib/component/modal/setting/tanstack_general_settings/workspaces/actions.js.map +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.d.ts +1 -2
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.d.ts.map +1 -1
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js +1 -2
- package/lib/component/panels/AutomaticAssignment/AutomaticAssignment.js.map +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js +1 -1
- package/lib/component/panels/AutomaticAssignment/useAutoAssignments.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js +6 -6
- package/lib/component/panels/IntegralsPanel/IntegralPanel.js.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts +5 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.d.ts.map +1 -1
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js +4 -3
- package/lib/component/panels/IntegralsPanel/IntegralsPreferences.js.map +1 -1
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js +6 -6
- package/lib/component/panels/MatrixGenerationPanel/FiltersOptions.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js +0 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +1 -1
- package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js +11 -14
- package/lib/component/panels/MoleculesPanel/hooks/useAtomAssignment.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.d.ts +1 -0
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js +30 -6
- package/lib/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.d.ts +2 -2
- package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.js.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts +2 -2
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.d.ts.map +1 -1
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js +2 -2
- package/lib/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.js.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts +5 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.d.ts.map +1 -1
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js +4 -3
- package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
- package/lib/component/panels/PeaksPanel/peaksToTSV.js +1 -4
- package/lib/component/panels/PeaksPanel/peaksToTSV.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPanel.js +2 -2
- package/lib/component/panels/RangesPanel/RangesPanel.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.d.ts +6 -2
- package/lib/component/panels/RangesPanel/RangesPreferences.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesPreferences.js +4 -3
- package/lib/component/panels/RangesPanel/RangesPreferences.js.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js +1 -1
- package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts +0 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts +0 -3
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.d.ts.map +1 -1
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js +33 -2
- package/lib/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.d.ts +7 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraPreferences.js +6 -5
- package/lib/component/panels/SpectraPanel/SpectraPreferences.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTable.js +19 -12
- package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTabs.js +1 -1
- package/lib/component/panels/SpectraPanel/SpectraTabs.js.map +1 -1
- package/lib/component/panels/SpectraPanel/SpectrumListPanel.js +1 -1
- package/lib/component/panels/SpectraPanel/SpectrumListPanel.js.map +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/setting/Spectrum1DHistogram.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.js +15 -7
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js +10 -7
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.js +12 -8
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.js.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.d.ts.map +1 -1
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js +18 -19
- package/lib/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js +9 -11
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js +22 -19
- package/lib/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.js.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js +6 -7
- package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js +2 -2
- package/lib/component/panels/SummaryPanel/SetShiftTolerancesModal.js.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/SummaryPanel.js +10 -13
- package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.d.ts.map +1 -1
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js +8 -10
- package/lib/component/panels/SummaryPanel/utilities/Utilities.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js +3 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPanel.js +8 -9
- package/lib/component/panels/ZonesPanel/ZonesPanel.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts +5 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js +4 -3
- package/lib/component/panels/ZonesPanel/ZonesPreferences.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTable.js +3 -3
- package/lib/component/panels/ZonesPanel/ZonesTable.js.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts +2 -2
- package/lib/component/panels/ZonesPanel/ZonesTableRow.d.ts.map +1 -1
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js +4 -5
- package/lib/component/panels/ZonesPanel/ZonesTableRow.js.map +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.js +1 -1
- package/lib/component/panels/ZonesPanel/hooks/useMapZones.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseInfo.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseInfo.js +2 -0
- package/lib/component/panels/databasePanel/DatabaseInfo.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePanel.js +5 -4
- package/lib/component/panels/databasePanel/DatabasePanel.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts +6 -2
- package/lib/component/panels/databasePanel/DatabasePreferences.d.ts.map +1 -1
- package/lib/component/panels/databasePanel/DatabasePreferences.js +4 -3
- package/lib/component/panels/databasePanel/DatabasePreferences.js.map +1 -1
- package/lib/component/panels/databasePanel/DatabaseSearchOptions.d.ts.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/DatabaseTable.js +1 -1
- package/lib/component/panels/databasePanel/DatabaseTable.js.map +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.d.ts.map +1 -1
- package/lib/component/panels/extra/utilities/settingImperativeHandle.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts +1 -1
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +3 -3
- package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +12 -12
- package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js +1 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/useApodization.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.d.ts +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js +2 -4
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts +2 -2
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js +4 -7
- package/lib/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.js.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js +3 -5
- package/lib/component/panels/filtersPanel/Filters/hooks/useZeroFilling.js.map +1 -1
- package/lib/component/panels/filtersPanel/processings/processing_item.js +1 -1
- package/lib/component/panels/filtersPanel/processings/processing_item.js.map +1 -1
- package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts +2 -6
- package/lib/component/panels/filtersPanel/processings/use_live_edit.d.ts.map +1 -1
- package/lib/component/panels/filtersPanel/processings/use_live_edit.js +9 -9
- package/lib/component/panels/filtersPanel/processings/use_live_edit.js.map +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.d.ts.map +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.js +1 -1
- package/lib/component/panels/header/DefaultPanelHeader.js.map +1 -1
- package/lib/component/panels/hooks/useGetPanelOptions.js +5 -5
- package/lib/component/panels/hooks/useGetPanelOptions.js.map +1 -1
- package/lib/component/panels/informationPanel/SpectraPicker.js +1 -1
- package/lib/component/panels/informationPanel/SpectraPicker.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js +22 -17
- package/lib/component/panels/multipleAnalysisPanel/AnalysisChart.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js +1 -1
- package/lib/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.js.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.d.ts +5 -2
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.d.ts.map +1 -1
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js +4 -5
- package/lib/component/panels/multipleAnalysisPanel/preferences/index.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts +4 -2
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js +4 -8
- package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPanel.js +5 -5
- package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts +6 -2
- package/lib/component/panels/predictionPanel/PredictionPreferences.d.ts.map +1 -1
- package/lib/component/panels/predictionPanel/PredictionPreferences.js +4 -3
- package/lib/component/panels/predictionPanel/PredictionPreferences.js.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.d.ts +5 -2
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.d.ts.map +1 -1
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js +2 -3
- package/lib/component/panels/spectrumSimulation/SpectrumSimulationPreferences.js.map +1 -1
- package/lib/component/reducer/IgnoreActions.d.ts +1 -2
- package/lib/component/reducer/IgnoreActions.d.ts.map +1 -1
- package/lib/component/reducer/IgnoreActions.js +2 -5
- package/lib/component/reducer/IgnoreActions.js.map +1 -1
- package/lib/component/reducer/Reducer.d.ts +6 -7
- package/lib/component/reducer/Reducer.d.ts.map +1 -1
- package/lib/component/reducer/Reducer.js +3 -1
- package/lib/component/reducer/Reducer.js.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.d.ts +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/CorrelationsActions.js +15 -34
- package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
- package/lib/component/reducer/actions/DomainActions.js +4 -4
- package/lib/component/reducer/actions/DomainActions.js.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.d.ts +43 -43
- package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/FiltersActions.js +48 -52
- package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
- package/lib/component/reducer/actions/InsetActions.d.ts +1 -2
- package/lib/component/reducer/actions/InsetActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/InsetActions.js +5 -6
- package/lib/component/reducer/actions/InsetActions.js.map +1 -1
- package/lib/component/reducer/actions/LoadAction.d.ts +1 -1
- package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
- package/lib/component/reducer/actions/LoadAction.js +37 -71
- package/lib/component/reducer/actions/LoadAction.js.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.d.ts +13 -13
- package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/MoleculeActions.js +14 -18
- package/lib/component/reducer/actions/MoleculeActions.js.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.d.ts +11 -11
- package/lib/component/reducer/actions/PeaksActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PeaksActions.js +12 -14
- package/lib/component/reducer/actions/PeaksActions.js.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.d.ts +4 -4
- package/lib/component/reducer/actions/PreferencesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/PreferencesActions.js +4 -5
- package/lib/component/reducer/actions/PreferencesActions.js.map +1 -1
- package/lib/component/reducer/actions/RangesActions.d.ts +1 -0
- package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/RangesActions.js +36 -12
- package/lib/component/reducer/actions/RangesActions.js.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.d.ts +20 -16
- package/lib/component/reducer/actions/SpectraActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/SpectraActions.js +35 -30
- package/lib/component/reducer/actions/SpectraActions.js.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.d.ts +18 -18
- package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ToolsActions.js +18 -19
- package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.d.ts +4 -4
- package/lib/component/reducer/actions/ZonesActions.d.ts.map +1 -1
- package/lib/component/reducer/actions/ZonesActions.js +26 -26
- package/lib/component/reducer/actions/ZonesActions.js.map +1 -1
- package/lib/component/reducer/actions/processings_actions.d.ts +1 -0
- package/lib/component/reducer/actions/processings_actions.d.ts.map +1 -1
- package/lib/component/reducer/actions/processings_actions.js +10 -8
- package/lib/component/reducer/actions/processings_actions.js.map +1 -1
- package/lib/component/reducer/helper/Zoom1DManager.js +2 -2
- package/lib/component/reducer/helper/Zoom1DManager.js.map +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts +1 -1
- package/lib/component/reducer/helper/ZoomHistoryManager.d.ts.map +1 -1
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js +1 -1
- package/lib/component/reducer/helper/removeSpectrumRelatedObjectsById.js.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +3 -5
- package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
- package/lib/component/useWatchForm.d.ts.map +1 -1
- package/lib/component/useWatchForm.js +0 -1
- package/lib/component/useWatchForm.js.map +1 -1
- package/lib/component/utility/Events.d.ts +4 -4
- package/lib/component/utility/Events.d.ts.map +1 -1
- package/lib/component/utility/Events.js +0 -1
- package/lib/component/utility/Events.js.map +1 -1
- package/lib/component/utility/core_slots/core_operator_chart_mouse_icon.d.ts +9 -0
- package/lib/component/utility/core_slots/core_operator_chart_mouse_icon.d.ts.map +1 -0
- package/lib/component/utility/core_slots/core_operator_chart_mouse_icon.js +14 -0
- package/lib/component/utility/core_slots/core_operator_chart_mouse_icon.js.map +1 -0
- package/lib/component/utility/core_slots/core_operator_expanded.d.ts +1 -1
- package/lib/component/utility/core_slots/core_operator_expanded.d.ts.map +1 -1
- package/lib/component/utility/core_slots/core_slot.d.ts +1 -1
- package/lib/component/utility/core_slots/core_slot.d.ts.map +1 -1
- package/lib/component/utility/export.d.ts.map +1 -1
- package/lib/component/utility/export.js +15 -18
- package/lib/component/utility/export.js.map +1 -1
- package/lib/component/utility/filterDatabaseInfoEntry.js +1 -1
- package/lib/component/utility/filterDatabaseInfoEntry.js.map +1 -1
- package/lib/data/PredictionManager.js +7 -8
- package/lib/data/PredictionManager.js.map +1 -1
- package/lib/data/SpectraManager.d.ts +3 -1
- package/lib/data/SpectraManager.d.ts.map +1 -1
- package/lib/data/SpectraManager.js +1 -1
- package/lib/data/SpectraManager.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.js +7 -4
- package/lib/data/data1d/Spectrum1D/convertDataToFloat64Array.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js +9 -9
- package/lib/data/data1d/Spectrum1D/generateJGraphData.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js +2 -0
- package/lib/data/data1d/Spectrum1D/initiateDatum1D.js.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts +1 -0
- package/lib/data/data1d/Spectrum1D/ranges/detectSignals.d.ts.map +1 -1
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js +2 -2
- package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.map +1 -1
- package/lib/data/data1d/database.js +3 -3
- package/lib/data/data1d/database.js.map +1 -1
- package/lib/data/data1d/multipleSpectraAnalysis.js +7 -7
- package/lib/data/data1d/multipleSpectraAnalysis.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/contours.js +6 -5
- package/lib/data/data2d/Spectrum2D/contours.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js +2 -2
- package/lib/data/data2d/Spectrum2D/findBestMinContour/evaluation.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js +1 -2
- package/lib/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js +2 -2
- package/lib/data/data2d/Spectrum2D/findBestMinContour/math.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/get2DColor.js +5 -5
- package/lib/data/data2d/Spectrum2D/get2DColor.js.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.d.ts.map +1 -1
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js +2 -0
- package/lib/data/data2d/Spectrum2D/initiateDatum2D.js.map +1 -1
- package/lib/data/matrixGeneration.d.ts.map +1 -1
- package/lib/data/matrixGeneration.js +3 -6
- package/lib/data/matrixGeneration.js.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.d.ts.map +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.js +1 -1
- package/lib/data/parseMeta/linkMetaWithSpectra.js.map +1 -1
- package/lib/data/utilities/RangeUtilities.d.ts +1 -1
- package/lib/data/utilities/RangeUtilities.d.ts.map +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts +1 -1
- package/lib/data/utilities/ZoneUtilities.d.ts.map +1 -1
- package/lib/data/utilities/ZoneUtilities.js +7 -31
- package/lib/data/utilities/ZoneUtilities.js.map +1 -1
- package/lib/data/utilities/generateNumbersPowerOfX.js +1 -1
- package/lib/data/utilities/generateNumbersPowerOfX.js.map +1 -1
- package/lib/utils/clipboard/clipboardComponents.js.map +1 -1
- package/lib/versionInfo.js +1 -1
- package/package.json +51 -51
- package/src/component/1d/BrushTracker1D.tsx +153 -151
- package/src/component/1d/ExclusionZoneAnnotation.tsx +1 -1
- package/src/component/1d/ExclusionZonesAnnotations.tsx +2 -2
- package/src/component/1d/FloatPublicationString.tsx +34 -30
- package/src/component/1d/FooterBanner.tsx +4 -4
- package/src/component/1d/Line.tsx +1 -1
- package/src/component/1d/SVGContent1D.tsx +3 -3
- package/src/component/1d/SimilarityTree.tsx +2 -2
- package/src/component/1d/SpectraLegends.tsx +6 -7
- package/src/component/1d/baseline/BaselinePreview.tsx +5 -5
- package/src/component/1d/database/DatabaseElements.tsx +1 -3
- package/src/component/1d/database/DatabaseSpectrum.tsx +3 -3
- package/src/component/1d/database/ResurrectedDatabaseRanges.tsx +2 -2
- package/src/component/1d/inset/DraggableInset.tsx +6 -5
- package/src/component/1d/inset/InsetProvider.tsx +5 -8
- package/src/component/1d/inset/InsetViewerRoot.tsx +4 -4
- package/src/component/1d/inset/SpectraInsets.tsx +1 -32
- package/src/component/1d/integral/IntegralsSeries.tsx +1 -1
- package/src/component/1d/jCouplingGraph/JGraph.tsx +3 -3
- package/src/component/1d/jCouplingGraph/JGraphContext.tsx +3 -5
- package/src/component/1d/jCouplingGraph/JsCouplingLinks.tsx +4 -5
- package/src/component/1d/jCouplingGraph/JsCouplings.tsx +1 -1
- package/src/component/1d/matrix/Stocsy.tsx +1 -2
- package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +2 -1
- package/src/component/1d/peaks/PeakEditionManager.tsx +7 -14
- package/src/component/1d/peaks/Peaks.tsx +14 -32
- package/src/component/1d/peaks/PeaksShapes.tsx +62 -40
- package/src/component/1d/peaks/usePeakShapesPath.ts +2 -4
- package/src/component/1d/plugin_chart_brush_tracker.tsx +1 -1
- package/src/component/1d/plugin_svg_chart.tsx +26 -15
- package/src/component/1d/ranges/AssignmentLabel.tsx +4 -3
- package/src/component/1d/ranges/Atoms.tsx +19 -19
- package/src/component/1d/ranges/FloatingRanges.tsx +12 -13
- package/src/component/1d/ranges/RangesIntegrals.tsx +7 -10
- package/src/component/1d/tool/BaseLine.tsx +4 -4
- package/src/component/1d-2d/components/FloatMoleculeStructures/FloatMolecules.tsx +3 -10
- package/src/component/1d-2d/components/RangeIndicator.tsx +4 -3
- package/src/component/1d-2d/components/SVGRootContainer.tsx +2 -6
- package/src/component/1d-2d/components/Signals1D.tsx +3 -3
- package/src/component/1d-2d/components/SpectrumInfoBlock.tsx +32 -24
- package/src/component/1d-2d/tools/BrushXY.tsx +2 -2
- package/src/component/1d-2d/tools/CursorToolIcon.tsx +36 -16
- package/src/component/1d-2d/tools/DistanceLine.tsx +2 -4
- package/src/component/2d/1d-tracer/Left1DChart.tsx +1 -5
- package/src/component/2d/1d-tracer/Ranges1D.tsx +0 -1
- package/src/component/2d/1d-tracer/Top1DChart.tsx +6 -9
- package/src/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.tsx +4 -2
- package/src/component/2d/BrushTracker2D.tsx +2 -1
- package/src/component/2d/FooterBanner.tsx +3 -2
- package/src/component/2d/IndirectAxis2D.tsx +1 -1
- package/src/component/2d/SlicingView.tsx +2 -2
- package/src/component/2d/Viewer2D.tsx +2 -2
- package/src/component/2d/tools/PivotIndicator.tsx +1 -3
- package/src/component/2d/utilities/scale.ts +1 -1
- package/src/component/2d/zones/SignalsGuideLines.tsx +6 -6
- package/src/component/2d/zones/Zone.tsx +4 -4
- package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +30 -19
- package/src/component/EventsTrackers/BrushTracker.tsx +15 -18
- package/src/component/EventsTrackers/KeysListenerTracker.tsx +1 -1
- package/src/component/EventsTrackers/MouseTracker.tsx +6 -7
- package/src/component/EventsTrackers/brush_tracker.types.ts +12 -4
- package/src/component/EventsTrackers/brush_tracker_events_listeners.ts +3 -6
- package/src/component/SVGTable.tsx +6 -5
- package/src/component/assignment/AssignmentProvider.tsx +5 -11
- package/src/component/assignment/AssignmentsContext.ts +7 -4
- package/src/component/assignment/utilities/getAssignments.ts +4 -9
- package/src/component/context/ChartContext.tsx +3 -4
- package/src/component/context/CoreContext.tsx +4 -4
- package/src/component/context/DispatchContext.tsx +3 -5
- package/src/component/context/FilterSyncOptionsContext.tsx +4 -4
- package/src/component/context/GlobalContext.tsx +3 -5
- package/src/component/context/KeyModifierContext.tsx +3 -7
- package/src/component/context/LoaderContext.tsx +4 -9
- package/src/component/context/LoggerContext.tsx +5 -5
- package/src/component/context/PreferencesContext.tsx +6 -5
- package/src/component/context/ScaleContext.tsx +5 -6
- package/src/component/context/ShareDataContext.tsx +3 -7
- package/src/component/context/SortSpectraContext.tsx +7 -20
- package/src/component/context/ToasterContext.tsx +3 -5
- package/src/component/context/TopicMoleculeContext.tsx +4 -4
- package/src/component/context/processings_mutations_context.api.ts +122 -21
- package/src/component/context/processings_mutations_context.tsx +4 -4
- package/src/component/elements/ActionsButtonsPopover.tsx +14 -13
- package/src/component/elements/Alert.tsx +4 -5
- package/src/component/elements/Anchor.tsx +43 -14
- package/src/component/elements/Button.tsx +1 -1
- package/src/component/elements/D3Axis.tsx +65 -66
- package/src/component/elements/DialogManager.tsx +10 -10
- package/src/component/elements/DraggableDialog.tsx +13 -14
- package/src/component/elements/EditableColumn.tsx +99 -70
- package/src/component/elements/Footer.tsx +9 -3
- package/src/component/elements/Input.tsx +101 -107
- package/src/component/elements/Input2.tsx +17 -21
- package/src/component/elements/InputRange.tsx +11 -11
- package/src/component/elements/IsotopesViewer.tsx +1 -1
- package/src/component/elements/NumberInput2.tsx +9 -18
- package/src/component/elements/NumberInput2Controller.tsx +23 -10
- package/src/component/elements/ResizerWithScale.tsx +1 -1
- package/src/component/elements/SVGGroup.tsx +18 -15
- package/src/component/elements/Scroller.tsx +3 -5
- package/src/component/elements/Sections.tsx +4 -4
- package/src/component/elements/Select.tsx +5 -10
- package/src/component/elements/Select2.tsx +5 -10
- package/src/component/elements/Tab/Tab.tsx +2 -2
- package/src/component/elements/Tab/Tabs.tsx +0 -2
- package/src/component/elements/TabsProvider.tsx +3 -5
- package/src/component/elements/custom-color-picker.tsx +230 -0
- package/src/component/elements/draggable/useDraggable.ts +4 -4
- package/src/component/elements/export/ExportManager.tsx +6 -10
- package/src/component/elements/export/ExportSettingsProvider.tsx +3 -5
- package/src/component/elements/export/RenderDetector.tsx +1 -0
- package/src/component/elements/print/PrintContent.tsx +3 -2
- package/src/component/elements/print/PrintProvider.tsx +6 -8
- package/src/component/elements/resizer/SVGResizer.tsx +0 -1
- package/src/component/elements/tanstack_table/elements/table_context.ts +4 -5
- package/src/component/elements/tanstack_table/elements/table_header.tsx +3 -1
- package/src/component/elements/tanstack_table/elements/table_row.tsx +44 -4
- package/src/component/elements/tanstack_table/elements/useRowReorder.ts +130 -0
- package/src/component/elements/tanstack_table/table.tsx +21 -11
- package/src/component/elements/tanstack_table/types.ts +9 -0
- package/src/component/elements/utilities/transferStyles.ts +1 -3
- package/src/component/header/Header.tsx +6 -5
- package/src/component/highlight/index.tsx +24 -16
- package/src/component/hooks/reduce2DSpectrum.ts +3 -3
- package/src/component/hooks/useCombinedRefs.ts +3 -6
- package/src/component/hooks/useDialogToggle.ts +1 -1
- package/src/component/hooks/useExport.tsx +4 -6
- package/src/component/hooks/useSaveSettings.tsx +1 -1
- package/src/component/hooks/useSelectedSpectra.ts +1 -2
- package/src/component/hooks/useTableSortBy.tsx +2 -1
- package/src/component/hooks/useTextMetrics.ts +1 -0
- package/src/component/hooks/use_gridlines_config.ts +2 -4
- package/src/component/loader/DropZone.tsx +3 -3
- package/src/component/loader/Spinner.tsx +3 -3
- package/src/component/loader/SpinnerContext.tsx +1 -3
- package/src/component/loader/useLoadFiles.ts +8 -9
- package/src/component/main/InnerNMRium.tsx +30 -25
- package/src/component/main/InnerNMRiumContents.tsx +6 -6
- package/src/component/main/NMRium.tsx +12 -8
- package/src/component/main/NMRiumRefAPI.ts +3 -3
- package/src/component/main/NMRiumStateProvider.tsx +10 -8
- package/src/component/main/NMRiumViewer.tsx +4 -2
- package/src/component/main/NMRiumViewerWrapper.tsx +1 -1
- package/src/component/main/types.ts +3 -3
- package/src/component/modal/AboutPredictionModal.tsx +1 -3
- package/src/component/modal/AboutSpectrumSimulationModal.tsx +1 -3
- package/src/component/modal/ImportPublicationStringModal.tsx +7 -0
- package/src/component/modal/LoadJCAMPModal.tsx +1 -1
- package/src/component/modal/LogsHistoryModal.tsx +4 -2
- package/src/component/modal/MoleculeAutoLabelsDatabaseModal.tsx +1 -1
- package/src/component/modal/MultipletAnalysisModal.tsx +1 -1
- package/src/component/modal/PublicationStringModal.tsx +1 -1
- package/src/component/modal/aboutUs/AboutUsModal.tsx +1 -3
- package/src/component/modal/changeSum/SelectMolecule.tsx +2 -2
- package/src/component/modal/editRange/EditRangeModal.tsx +8 -7
- package/src/component/modal/editRange/forms/components/SignalsContent.tsx +4 -8
- package/src/component/modal/editRange/forms/components/signal-tabs/SignalPeaksTable.tsx +3 -13
- package/src/component/modal/editZone/SignalsForm.tsx +2 -2
- package/src/component/modal/metaImportation/MetaImportationModal.tsx +3 -6
- package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +4 -4
- package/src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx +1 -0
- package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.tsx +2 -3
- package/src/component/modal/setting/tanstack_general_settings/tabs/database_tab.tsx +5 -2
- package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +3 -1
- package/src/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.tsx +5 -2
- package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.tsx +2 -4
- package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.tsx +2 -3
- package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +2 -3
- package/src/component/modal/setting/tanstack_general_settings/ui/table_section.tsx +2 -2
- package/src/component/modal/setting/tanstack_general_settings/validation/export_tab_validation.ts +9 -4
- package/src/component/modal/setting/tanstack_general_settings/validation/panels_tab_validation.ts +2 -5
- package/src/component/modal/setting/tanstack_general_settings/workspaces/actions.tsx +7 -9
- package/src/component/panels/AutomaticAssignment/AutomaticAssignment.tsx +1 -3
- package/src/component/panels/AutomaticAssignment/useAutoAssignments.ts +1 -1
- package/src/component/panels/IntegralsPanel/IntegralPanel.tsx +6 -6
- package/src/component/panels/IntegralsPanel/IntegralsPreferences.tsx +67 -64
- package/src/component/panels/MatrixGenerationPanel/FiltersOptions.tsx +7 -7
- package/src/component/panels/MoleculesPanel/MoleculePanel.tsx +0 -1
- package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +1 -1
- package/src/component/panels/MoleculesPanel/hooks/useAtomAssignment.tsx +15 -14
- package/src/component/panels/MoleculesPanel/hooks/useExtractAtomAssignmentLabel.ts +40 -8
- package/src/component/panels/MoleculesPanel/utilities/getCurrentDiaIDsToHighlight.ts +4 -2
- package/src/component/panels/MoleculesPanel/utilities/getHighlightsOnHover.ts +4 -4
- package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +86 -82
- package/src/component/panels/PeaksPanel/peaksToTSV.ts +4 -4
- package/src/component/panels/RangesPanel/RangesPanel.tsx +2 -2
- package/src/component/panels/RangesPanel/RangesPreferences.tsx +52 -46
- package/src/component/panels/RangesPanel/RangesTableRow.tsx +1 -6
- package/src/component/panels/RangesPanel/TableColumns/ActionsColumn.tsx +0 -1
- package/src/component/panels/RangesPanel/TableColumns/SignalAssignmentColumn.tsx +53 -7
- package/src/component/panels/SpectraPanel/SpectraPreferences.tsx +11 -11
- package/src/component/panels/SpectraPanel/SpectraTable.tsx +22 -14
- package/src/component/panels/SpectraPanel/SpectraTabs.tsx +2 -2
- package/src/component/panels/SpectraPanel/SpectrumListPanel.tsx +1 -1
- package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +3 -2
- package/src/component/panels/SpectraPanel/base/setting/Spectrum1DHistogram.tsx +46 -27
- package/src/component/panels/SpectraPanel/base/setting/Spectrum1DSetting.tsx +12 -10
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DHistogram.tsx +38 -29
- package/src/component/panels/SpectraPanel/base/setting/Spectrum2DSetting.tsx +54 -59
- package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnField.tsx +9 -11
- package/src/component/panels/SummaryPanel/CorrelationTable/AdditionalColumnHeader.tsx +24 -22
- package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTableRow.tsx +8 -12
- package/src/component/panels/SummaryPanel/Overview.tsx +1 -1
- package/src/component/panels/SummaryPanel/SetShiftTolerancesModal.tsx +2 -2
- package/src/component/panels/SummaryPanel/SummaryPanel.tsx +5 -9
- package/src/component/panels/SummaryPanel/utilities/Utilities.ts +4 -8
- package/src/component/panels/ZonesPanel/TableColumns/SignalAssignmentsColumn.tsx +1 -1
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentLabelColumn.tsx +4 -1
- package/src/component/panels/ZonesPanel/ZonesPanel.tsx +7 -9
- package/src/component/panels/ZonesPanel/ZonesPreferences.tsx +62 -58
- package/src/component/panels/ZonesPanel/ZonesTable.tsx +8 -16
- package/src/component/panels/ZonesPanel/ZonesTableRow.tsx +5 -25
- package/src/component/panels/ZonesPanel/hooks/useMapZones.ts +1 -1
- package/src/component/panels/databasePanel/DatabaseInfo.tsx +2 -0
- package/src/component/panels/databasePanel/DatabasePanel.tsx +9 -6
- package/src/component/panels/databasePanel/DatabasePreferences.tsx +118 -114
- package/src/component/panels/databasePanel/DatabaseSearchOptions.tsx +3 -4
- package/src/component/panels/databasePanel/DatabaseTable.tsx +1 -1
- package/src/component/panels/extra/utilities/settingImperativeHandle.ts +1 -1
- package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +3 -3
- package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +15 -15
- package/src/component/panels/filtersPanel/Filters/hooks/useApodization.tsx +1 -4
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrection.tsx +2 -4
- package/src/component/panels/filtersPanel/Filters/hooks/usePhaseCorrectionTwoDimensions.tsx +5 -8
- package/src/component/panels/filtersPanel/Filters/hooks/useZeroFilling.tsx +4 -6
- package/src/component/panels/filtersPanel/processings/processing_item.tsx +1 -1
- package/src/component/panels/filtersPanel/processings/use_live_edit.ts +9 -17
- package/src/component/panels/header/DefaultPanelHeader.tsx +4 -3
- package/src/component/panels/hooks/useGetPanelOptions.ts +6 -6
- package/src/component/panels/informationPanel/SpectraPicker.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +29 -26
- package/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisTable.tsx +1 -1
- package/src/component/panels/multipleAnalysisPanel/preferences/index.tsx +12 -10
- package/src/component/panels/predictionPanel/PredictionOptionsPanel.tsx +113 -142
- package/src/component/panels/predictionPanel/PredictionPanel.tsx +5 -5
- package/src/component/panels/predictionPanel/PredictionPreferences.tsx +42 -36
- package/src/component/panels/spectrumSimulation/SpectrumSimulationPreferences.tsx +7 -6
- package/src/component/reducer/IgnoreActions.ts +2 -5
- package/src/component/reducer/Reducer.ts +10 -5
- package/src/component/reducer/actions/CorrelationsActions.ts +18 -34
- package/src/component/reducer/actions/DomainActions.ts +4 -4
- package/src/component/reducer/actions/FiltersActions.ts +75 -109
- package/src/component/reducer/actions/InsetActions.ts +8 -10
- package/src/component/reducer/actions/LoadAction.ts +50 -91
- package/src/component/reducer/actions/MoleculeActions.ts +24 -33
- package/src/component/reducer/actions/PeaksActions.ts +20 -26
- package/src/component/reducer/actions/PreferencesActions.ts +4 -10
- package/src/component/reducer/actions/RangesActions.ts +81 -21
- package/src/component/reducer/actions/SpectraActions.ts +52 -47
- package/src/component/reducer/actions/ToolsActions.ts +35 -38
- package/src/component/reducer/actions/ZonesActions.ts +36 -30
- package/src/component/reducer/actions/processings_actions.ts +11 -8
- package/src/component/reducer/helper/Zoom1DManager.ts +2 -2
- package/src/component/reducer/helper/ZoomHistoryManager.ts +1 -1
- package/src/component/reducer/helper/removeSpectrumRelatedObjectsById.ts +1 -1
- package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +5 -8
- package/src/component/useWatchForm.tsx +0 -1
- package/src/component/utility/Events.tsx +1 -3
- package/src/component/utility/core_slots/core_operator_chart_mouse_icon.tsx +32 -0
- package/src/component/utility/export.ts +17 -20
- package/src/component/utility/filterDatabaseInfoEntry.ts +1 -1
- package/src/data/PredictionManager.ts +7 -12
- package/src/data/SpectraManager.ts +4 -2
- package/src/data/data1d/Spectrum1D/convertDataToFloat64Array.ts +7 -4
- package/src/data/data1d/Spectrum1D/generateJGraphData.ts +8 -9
- package/src/data/data1d/Spectrum1D/initiateDatum1D.ts +3 -0
- package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +2 -2
- package/src/data/data1d/database.ts +3 -3
- package/src/data/data1d/multipleSpectraAnalysis.ts +7 -7
- package/src/data/data2d/Spectrum2D/contours.ts +22 -22
- package/src/data/data2d/Spectrum2D/findBestMinContour/estimateNoiseLevel.ts +1 -1
- package/src/data/data2d/Spectrum2D/findBestMinContour/evaluation.ts +3 -2
- package/src/data/data2d/Spectrum2D/findBestMinContour/findAutomaticContourLevels.ts +1 -2
- package/src/data/data2d/Spectrum2D/findBestMinContour/math.ts +2 -2
- package/src/data/data2d/Spectrum2D/get2DColor.ts +5 -5
- package/src/data/data2d/Spectrum2D/initiateDatum2D.ts +4 -0
- package/src/data/matrixGeneration.ts +3 -6
- package/src/data/parseMeta/linkMetaWithSpectra.ts +1 -3
- package/src/data/utilities/RangeUtilities.ts +3 -3
- package/src/data/utilities/ZoneUtilities.ts +8 -34
- package/src/data/utilities/generateNumbersPowerOfX.ts +2 -2
- package/src/utils/clipboard/clipboardComponents.tsx +5 -5
- package/src/versionInfo.ts +1 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts +0 -9
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.d.ts.map +0 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js +0 -80
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.js.map +0 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts +0 -7
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.d.ts.map +0 -1
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js +0 -7
- package/lib/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.js.map +0 -1
- package/lib/component/utility/colorToHexWithAlpha.d.ts +0 -10
- package/lib/component/utility/colorToHexWithAlpha.d.ts.map +0 -1
- package/lib/component/utility/colorToHexWithAlpha.js +0 -5
- package/lib/component/utility/colorToHexWithAlpha.js.map +0 -1
- package/lib/component/utility/forwardRef.d.ts +0 -3
- package/lib/component/utility/forwardRef.d.ts.map +0 -1
- package/lib/component/utility/forwardRef.js +0 -6
- package/lib/component/utility/forwardRef.js.map +0 -1
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumn.tsx +0 -130
- package/src/component/panels/ZonesPanel/TableColumns/ZoneAssignmentsColumns.tsx +0 -32
- package/src/component/utility/colorToHexWithAlpha.ts +0 -7
- package/src/component/utility/forwardRef.ts +0 -10
|
@@ -65,9 +65,13 @@ export interface DetectBrushingResult extends BrushCoordination {
|
|
|
65
65
|
yThreshold: number;
|
|
66
66
|
}
|
|
67
67
|
interface DetectBrushingThreshold {
|
|
68
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* Width in pixels.
|
|
70
|
+
*/
|
|
69
71
|
width: number;
|
|
70
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* Height in pixels.
|
|
74
|
+
*/
|
|
71
75
|
height: number;
|
|
72
76
|
/**
|
|
73
77
|
* Threshold as a percentage of width and height (value between 0 and 1).
|
|
@@ -77,9 +81,13 @@ interface DetectBrushingThreshold {
|
|
|
77
81
|
thresholdFormat: 'relative';
|
|
78
82
|
}
|
|
79
83
|
interface DetectBrushingThresholdSize {
|
|
80
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* Width in pixels.
|
|
86
|
+
*/
|
|
81
87
|
width: number;
|
|
82
|
-
/**
|
|
88
|
+
/**
|
|
89
|
+
* Height in pixels.
|
|
90
|
+
*/
|
|
83
91
|
height: number;
|
|
84
92
|
/**
|
|
85
93
|
* Threshold size in pixels.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brush_tracker.types.d.ts","sourceRoot":"","sources":["../../../src/component/EventsTrackers/brush_tracker.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,KAAK,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,IAAI,CAAC,SAAS,GAAG,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC;AAC9E,KAAK,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,UAAU,CAAC;AAErD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB,EAAE,iBAAiB;IAC5E,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,CAAC;IACf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,UAAU,CAAC;CAC7B;AAED,UAAU,2BAA2B;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,KAAK,2BAA2B,GAAG,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from 'eventemitter3';
|
|
2
2
|
export type BrushTrackerEventEmitterSupportedEvents = 'click' | 'click-double' | 'zoom' | 'brush' | 'brush-end';
|
|
3
3
|
export type BrushTrackerEventEmitter = EventEmitter<BrushTrackerEventEmitterSupportedEvents>;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const BrushTrackerEventEmitterContext: import("react").Context<BrushTrackerEventEmitter | null>;
|
|
5
5
|
export declare function useBrushTrackerEventEmitter(): BrushTrackerEventEmitter;
|
|
6
6
|
export declare function useInitBrushTrackerEventEmitter(): EventEmitter<BrushTrackerEventEmitterSupportedEvents, any>;
|
|
7
7
|
//# sourceMappingURL=brush_tracker_events_listeners.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brush_tracker_events_listeners.d.ts","sourceRoot":"","sources":["../../../src/component/EventsTrackers/brush_tracker_events_listeners.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,MAAM,uCAAuC,GACjD,OAAO,GAAG,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC;AAC5D,MAAM,MAAM,wBAAwB,GAClC,YAAY,CAAC,uCAAuC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"brush_tracker_events_listeners.d.ts","sourceRoot":"","sources":["../../../src/component/EventsTrackers/brush_tracker_events_listeners.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,MAAM,uCAAuC,GACjD,OAAO,GAAG,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC;AAC5D,MAAM,MAAM,wBAAwB,GAClC,YAAY,CAAC,uCAAuC,CAAC,CAAC;AAExD,eAAO,MAAM,+BAA+B,0DACU,CAAC;AAEvD,wBAAgB,2BAA2B,6BAQ1C;AAED,wBAAgB,+BAA+B,+DAM9C"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { assert } from '@zakodium/utils';
|
|
2
2
|
import { EventEmitter } from 'eventemitter3';
|
|
3
|
-
import { createContext,
|
|
4
|
-
const BrushTrackerEventEmitterContext = createContext(null);
|
|
5
|
-
export const BrushTrackerEventEmitterProvider = BrushTrackerEventEmitterContext.Provider;
|
|
3
|
+
import { createContext, use, useState } from 'react';
|
|
4
|
+
export const BrushTrackerEventEmitterContext = createContext(null);
|
|
6
5
|
export function useBrushTrackerEventEmitter() {
|
|
7
|
-
const context =
|
|
6
|
+
const context = use(BrushTrackerEventEmitterContext);
|
|
8
7
|
assert(context, 'useBrushTrackerEventEmitter hook must be use within a BrushTrackerEventEmitterProvider tree');
|
|
9
8
|
return context;
|
|
10
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brush_tracker_events_listeners.js","sourceRoot":"","sources":["../../../src/component/EventsTrackers/brush_tracker_events_listeners.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"brush_tracker_events_listeners.js","sourceRoot":"","sources":["../../../src/component/EventsTrackers/brush_tracker_events_listeners.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,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CAAC;AAEF,UAAU,SAAS;IACjB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AACD,UAAU,kBAAkB,CAAC,CAAC,CAAE,SAAQ,SAAS;IAC/C,MAAM,EAAE,MAAM,GAAG,YAAY,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC,CAAC;IAC1B,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC,cAAc,CAAC,EAAE,YAAY,CAAC;CAC/B;AACD,UAAU,iBAAiB,CAAC,CAAC,CAAE,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC1D,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,kBAAkB,CAAC,CAAC,CAAE,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC3D,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,GAAG,MAAM,CAAC;CAC9D;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,iBAAiB,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC;AA8F7E,UAAU,aAAa,CAAC,CAAC;IACvB,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,CAAC,EAAE,CAAC;CACX;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,+BAmFlD"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { createContext, isValidElement,
|
|
2
|
+
import { createContext, isValidElement, use, useMemo } from 'react';
|
|
3
3
|
function isAccessorKeyColumn(column) {
|
|
4
4
|
return 'accessorKey' in column;
|
|
5
5
|
}
|
|
6
6
|
const SVGTableContext = createContext(null);
|
|
7
7
|
function useSVGTable() {
|
|
8
|
-
return
|
|
8
|
+
return use(SVGTableContext);
|
|
9
9
|
}
|
|
10
10
|
function mapColumns(columns) {
|
|
11
11
|
let x = 0;
|
|
@@ -20,7 +20,7 @@ function mapColumns(columns) {
|
|
|
20
20
|
}
|
|
21
21
|
function formatKey(options) {
|
|
22
22
|
const { index, columnKey, groupKey } = options;
|
|
23
|
-
return `GroupKey[${groupKey
|
|
23
|
+
return `GroupKey[${groupKey}]-ColumnKey[${columnKey}]-RowIndex[${index}]`;
|
|
24
24
|
}
|
|
25
25
|
function mapRowsSpan(data, columns) {
|
|
26
26
|
const rowSpanMap = new Map();
|
|
@@ -70,7 +70,7 @@ export function SVGTable(props) {
|
|
|
70
70
|
const { rowSpanMap, skipColumns } = useMemo(() => {
|
|
71
71
|
return mapRowsSpan(data, columns);
|
|
72
72
|
}, [columns, data]);
|
|
73
|
-
return (_jsx(SVGTableContext
|
|
73
|
+
return (_jsx(SVGTableContext, { value: tableOptions, children: _jsxs("svg", { width: width, height: rowHeight * (data.length + 1), viewBox: `0 0 ${width} ${rowHeight * (data.length + 1)}`, textAnchor: "middle", children: [columns.map((col) => {
|
|
74
74
|
const { header, headerBoxProps, headerTextProps, _columnOptions: { key }, } = col;
|
|
75
75
|
return (_jsx(Column, { value: header, cellTextProps: headerTextProps, column: col, rowSpan: 1, cellBoxProps: headerBoxProps }, key));
|
|
76
76
|
}), data.map((row, index) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SVGTable.js","sourceRoot":"","sources":["../../src/component/SVGTable.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"SVGTable.js","sourceRoot":"","sources":["../../src/component/SVGTable.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EA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AAC,CAAC,CAAC,CACvB,KAAK,CACN,CAAC,CAAC,CAAC,CACF,eACE,CAAC,EAAE,KAAK,GAAG,CAAC,EACZ,CAAC,EAAE,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,EAC5B,QAAQ,EAAC,IAAI,EACb,gBAAgB,EAAC,QAAQ,KACrB,aAAa,YAEhB,KAAK,GACD,CACR,IACC,CACL,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssignmentProvider.d.ts","sourceRoot":"","sources":["../../../src/component/assignment/AssignmentProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAcvC,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,+
|
|
1
|
+
{"version":3,"file":"AssignmentProvider.d.ts","sourceRoot":"","sources":["../../../src/component/assignment/AssignmentProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAcvC,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,+BA4ChE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo, useState } from 'react';
|
|
3
3
|
import { useChartData } from '../context/ChartContext.js';
|
|
4
|
-
import {
|
|
4
|
+
import { AssignmentContext, assignmentStatus } from './AssignmentsContext.js';
|
|
5
5
|
import { getAssignments } from './utilities/getAssignments.js';
|
|
6
6
|
export function AssignmentProvider(props) {
|
|
7
7
|
const { children } = props;
|
|
@@ -12,9 +12,7 @@ export function AssignmentProvider(props) {
|
|
|
12
12
|
const { id, axis, spectrumId } = options;
|
|
13
13
|
setState((prevState) => ({
|
|
14
14
|
...prevState,
|
|
15
|
-
activated: !prevState.activated
|
|
16
|
-
? { id, axis: axis || null, spectrumId }
|
|
17
|
-
: null,
|
|
15
|
+
activated: !prevState.activated ? { id, axis, spectrumId } : null,
|
|
18
16
|
}));
|
|
19
17
|
};
|
|
20
18
|
const highlight = (options) => {
|
|
@@ -42,6 +40,6 @@ export function AssignmentProvider(props) {
|
|
|
42
40
|
activate,
|
|
43
41
|
};
|
|
44
42
|
}, [activated, highlighted, spectra]);
|
|
45
|
-
return
|
|
43
|
+
return _jsx(AssignmentContext, { value: memoState, children: children });
|
|
46
44
|
}
|
|
47
45
|
//# sourceMappingURL=AssignmentProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssignmentProvider.js","sourceRoot":"","sources":["../../../src/component/assignment/AssignmentProvider.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAQ1D,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAM/D,MAAM,UAAU,kBAAkB,CAAC,KAA8B;IAC/D,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,YAAY,EAAE,CAAC;IACzC,MAAM,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,QAAQ,CAAC,GAC1C,QAAQ,CAAmB,gBAAgB,CAAC,CAAC;IAE/C,MAAM,SAAS,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"AssignmentProvider.js","sourceRoot":"","sources":["../../../src/component/assignment/AssignmentProvider.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE1C,OAA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S;gBACZ,WAAW,EAAE,IAAI;aAClB,CAAC,CAAC,CAAC;QACN,CAAC,CAAC;QAEF,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO;YACL,IAAI,EAAE,WAAW;YACjB,SAAS;YACT,WAAW;YACX,SAAS;YACT,cAAc;YACd,QAAQ;SACT,CAAC;IACJ,CAAC,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;IAEtC,OAAO,KAAC,iBAAiB,IAAC,KAAK,EAAE,SAAS,YAAG,QAAQ,GAAqB,CAAC;AAC7E,CAAC"}
|
|
@@ -37,7 +37,7 @@ export interface AssignmentStatus {
|
|
|
37
37
|
}) | null;
|
|
38
38
|
highlighted: AssignmentItem | null;
|
|
39
39
|
}
|
|
40
|
-
export interface
|
|
40
|
+
export interface AssignmentContextValue extends AssignmentStatus {
|
|
41
41
|
data: Assignments;
|
|
42
42
|
activate: (options: ActivateAssignmentOptions) => void;
|
|
43
43
|
highlight: (options: HighlightAssignmentOptions) => void;
|
|
@@ -61,9 +61,9 @@ export interface AssignmentsData extends AssignmentStatus {
|
|
|
61
61
|
highlight: (axis?: Axis) => void;
|
|
62
62
|
clearHighlight: () => void;
|
|
63
63
|
}
|
|
64
|
-
export declare const
|
|
64
|
+
export declare const AssignmentContext: import("react").Context<AssignmentContextValue | null>;
|
|
65
65
|
export declare const assignmentAxes: Axis[];
|
|
66
|
-
export declare function useAssignmentContext():
|
|
66
|
+
export declare function useAssignmentContext(): AssignmentContextValue;
|
|
67
67
|
export declare function useAssignment(id: string, spectrumId?: string): AssignmentsData;
|
|
68
68
|
export {};
|
|
69
69
|
//# sourceMappingURL=AssignmentsContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssignmentsContext.d.ts","sourceRoot":"","sources":["../../../src/component/assignment/AssignmentsContext.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,CAAC;AAC7B;;;;;;;;;GASG;AACH,KAAK,UAAU,GAAG,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;AACzC;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAErD,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AACD,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,gBAAgB,EAAE,gBAG9B,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,CAAC,cAAc,GAAG;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;IAC7D,WAAW,EAAE,cAAc,GAAG,IAAI,CAAC;CACpC;
|
|
1
|
+
{"version":3,"file":"AssignmentsContext.d.ts","sourceRoot":"","sources":["../../../src/component/assignment/AssignmentsContext.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,CAAC;AAC7B;;;;;;;;;GASG;AACH,KAAK,UAAU,GAAG,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;AACzC;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAErD,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,C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12 @@
|
|
|
1
|
-
import { createContext,
|
|
1
|
+
import { createContext, use } from 'react';
|
|
2
2
|
export const assignmentStatus = {
|
|
3
3
|
activated: null,
|
|
4
4
|
highlighted: null,
|
|
5
5
|
};
|
|
6
|
-
export const
|
|
6
|
+
export const AssignmentContext = createContext(null);
|
|
7
7
|
export const assignmentAxes = ['x', 'y'];
|
|
8
8
|
export function useAssignmentContext() {
|
|
9
|
-
const context =
|
|
9
|
+
const context = use(AssignmentContext);
|
|
10
10
|
if (!context) {
|
|
11
11
|
throw new Error('Assignment context was not found');
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssignmentsContext.js","sourceRoot":"","sources":["../../../src/component/assignment/AssignmentsContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"AssignmentsContext.js","sourceRoot":"","sources":["../../../src/component/assignment/AssignmentsContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAqC3C,MAAM,CAAC,MAAM,gBAAgB,GAAqB;IAChD,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;CAClB,CAAC;AAiCF,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAC5C,IAAI,CACL,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAEjD,MAAM,UAAU,oBAAoB;IAClC,MAAM,OAAO,GAAG,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAEvC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACtD,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,aAAa,CAC3B,EAAU,EACV,UAAmB;IAEnB,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,GACzE,oBAAoB,EAAE,CAAC;IAEzB,MAAM,QAAQ,GAAG,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC;IACtC,MAAM,aAAa,GAAG,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC;IAC7C,MAAM,cAAc,GAAG,IAAI,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;IAExC,SAAS,kBAAkB,CAAC,IAAU;QACpC,IAAI,EAAE,EAAE,CAAC;YACP,QAAQ,CAAC;gBACP,UAAU;gBACV,EAAE;gBACF,IAAI;aACL,CAAC,CAAC;YACH,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED,SAAS,mBAAmB,CAAC,IAAW;QACtC,IAAI,EAAE,EAAE,CAAC;YACP,SAAS,CAAC;gBACR,EAAE;gBACF,IAAI;aACL,CAAC,CAAC;YAEH,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO;QACL,QAAQ;QACR,aAAa;QACb,cAAc;QACd,SAAS;QACT,WAAW;QACX,QAAQ,EAAE,kBAAkB;QAC5B,SAAS,EAAE,mBAAmB;QAC9B,cAAc;KACf,CAAC;AACJ,CAAC"}
|
|
@@ -25,16 +25,10 @@ function setRangesAssignments(assignments, ranges) {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
function setZonesAssignments(assignments, zones) {
|
|
28
|
-
const diaIDRecords = zones.values.flatMap(({
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}));
|
|
33
|
-
return [
|
|
34
|
-
{ id, diaIDs: { x: x.diaIDs || [], y: y.diaIDs || [] } },
|
|
35
|
-
...diaIDRecords,
|
|
36
|
-
];
|
|
37
|
-
});
|
|
28
|
+
const diaIDRecords = zones.values.flatMap(({ signals }) => signals.map((signal) => ({
|
|
29
|
+
id: signal.id,
|
|
30
|
+
diaIDs: { x: signal.x.diaIDs || [], y: signal.y.diaIDs || [] },
|
|
31
|
+
})));
|
|
38
32
|
for (const { id, diaIDs } of diaIDRecords) {
|
|
39
33
|
for (const axis of ['x', 'y']) {
|
|
40
34
|
for (const diaID of diaIDs[axis]) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAssignments.js","sourceRoot":"","sources":["../../../../src/component/assignment/utilities/getAssignments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD,MAAM,UAAU,cAAc,CAAC,OAAmB;IAChD,MAAM,WAAW,GAAgB,EAAE,CAAC;IAEpC,KAAK,MAAM,QAAQ,IAAI,OAAO,EAAE,CAAC;QAC/B,IAAI,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC3B,oBAAoB,CAAC,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC;aAAM,CAAC;YACN,mBAAmB,CAAC,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAS,oBAAoB,CAAC,WAAwB,EAAE,MAAc;IACpE,MAAM,YAAY,GAA4C,EAAE,CAAC;IACjE,KAAK,MAAM,EAAE,OAAO,EAAE,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QACxC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC7B,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC,CAAC;QACpE,CAAC;IACH,CAAC;IACD,KAAK,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,YAAY,EAAE,CAAC;QAC1C,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,aAAa,CAAC,WAAW,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;AACH,CAAC;AACD,SAAS,mBAAmB,CAAC,WAAwB,EAAE,KAAY;IACjE,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"getAssignments.js","sourceRoot":"","sources":["../../../../src/component/assignment/utilities/getAssignments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD,MAAM,UAAU,cAAc,CAAC,OAAmB;IAChD,MAAM,WAAW,GAAgB,EAAE,CAAC;IAEpC,KAAK,MAAM,QAAQ,IAAI,OAAO,EAAE,CAAC;QAC/B,IAAI,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC3B,oBAAoB,CAAC,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC;aAAM,CAAC;YACN,mBAAmB,CAAC,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAS,oBAAoB,CAAC,WAAwB,EAAE,MAAc;IACpE,MAAM,YAAY,GAA4C,EAAE,CAAC;IACjE,KAAK,MAAM,EAAE,OAAO,EAAE,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QACxC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC7B,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC,CAAC;QACpE,CAAC;IACH,CAAC;IACD,KAAK,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,YAAY,EAAE,CAAC;QAC1C,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,aAAa,CAA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AC,KAAK,CAAC,CAAC,CAAC,qBAAqB;IAC1D,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { State } from '../reducer/Reducer.js';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ChartDataContext: import("react").Context<State>;
|
|
3
3
|
export declare function useChartData(): State;
|
|
4
4
|
//# sourceMappingURL=ChartContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartContext.d.ts","sourceRoot":"","sources":["../../../src/component/context/ChartContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"ChartContext.d.ts","sourceRoot":"","sources":["../../../src/component/context/ChartContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,eAAO,MAAM,gBAAgB,gCAAqC,CAAC;AAEnE,wBAAgB,YAAY,UAiB3B"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { produce } from 'immer';
|
|
2
|
-
import { createContext,
|
|
2
|
+
import { createContext, use } from 'react';
|
|
3
3
|
import { useViewportSize } from '../hooks/useViewportSize.js';
|
|
4
4
|
import { initialState } from '../reducer/Reducer.js';
|
|
5
|
-
const
|
|
6
|
-
export const ChartDataProvider = ChartContext.Provider;
|
|
5
|
+
export const ChartDataContext = createContext(initialState);
|
|
7
6
|
export function useChartData() {
|
|
8
|
-
const data =
|
|
7
|
+
const data = use(ChartDataContext);
|
|
9
8
|
const viewportSize = useViewportSize();
|
|
10
9
|
if (!viewportSize)
|
|
11
10
|
return data;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartContext.js","sourceRoot":"","sources":["../../../src/component/context/ChartContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"ChartContext.js","sourceRoot":"","sources":["../../../src/component/context/ChartContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAQ,YAAY,CAAC,CAAC;AAEnE,MAAM,UAAU,YAAY;IAC1B,MAAM,IAAI,GAAG,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAEnC,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,IAAI,CAAC,YAAY;QAAE,OAAO,IAAI,CAAC;IAE/B,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,YAAY,CAAC;IACjE,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE;QAC1C,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QACpB,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QACtB,KAAK,CAAC,MAAM,GAAG,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC;QACzC,KAAK,CAAC,OAAO,GAAG,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { NMRiumCore } from '@zakodium/nmrium-core';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const CoreContext: import("react").Context<NMRiumCore | null>;
|
|
3
3
|
export declare function useCore(): NMRiumCore;
|
|
4
4
|
//# sourceMappingURL=CoreContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreContext.d.ts","sourceRoot":"","sources":["../../../src/component/context/CoreContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"CoreContext.d.ts","sourceRoot":"","sources":["../../../src/component/context/CoreContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGxD,eAAO,MAAM,WAAW,4CAAyC,CAAC;AAElE,wBAAgB,OAAO,eAQtB"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { createContext,
|
|
2
|
-
const CoreContext = createContext(null);
|
|
3
|
-
export const CoreProvider = CoreContext.Provider;
|
|
1
|
+
import { createContext, use } from 'react';
|
|
2
|
+
export const CoreContext = createContext(null);
|
|
4
3
|
export function useCore() {
|
|
5
|
-
const core =
|
|
4
|
+
const core = use(CoreContext);
|
|
6
5
|
if (!core) {
|
|
7
6
|
throw new Error('useCore must be used within a CoreProvider');
|
|
8
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreContext.js","sourceRoot":"","sources":["../../../src/component/context/CoreContext.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"CoreContext.js","sourceRoot":"","sources":["../../../src/component/context/CoreContext.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAoB,IAAI,CAAC,CAAC;AAElE,MAAM,UAAU,OAAO;IACrB,MAAM,IAAI,GAAG,GAAG,CAAC,WAAW,CAAC,CAAC;IAE9B,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -21,7 +21,7 @@ export type Action = ToolsActions | SpectrumActions | LoadAction | IntegralsActi
|
|
|
21
21
|
randomNumber: number;
|
|
22
22
|
}> | InsetsActions | UnitActions | ProcessingsActions;
|
|
23
23
|
type Dispatch = (action: Action) => void;
|
|
24
|
-
export declare const
|
|
24
|
+
export declare const DispatchContext: import("react").Context<Dispatch>;
|
|
25
25
|
export declare function useDispatch(): Dispatch;
|
|
26
26
|
export {};
|
|
27
27
|
//# sourceMappingURL=DispatchContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DispatchContext.d.ts","sourceRoot":"","sources":["../../../src/component/context/DispatchContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,MAAM,MAAM,MAAM,GACd,YAAY,GACZ,eAAe,GACf,UAAU,GACV,gBAAgB,GAChB,aAAa,GACb,eAAe,GACf,iBAAiB,GACjB,kBAAkB,GAClB,aAAa,GACb,kBAAkB,GAClB,YAAY,GACZ,eAAe,GACf,YAAY,GACZ,cAAc,GACd,mBAAmB,GACnB,UAAU,CAAC,mBAAmB,CAAC,GAC/B,UAAU,CAAC,oBAAoB,EAAE;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC,GAC1D,aAAa,GACb,WAAW,GACX,kBAAkB,CAAC;AAIvB,KAAK,QAAQ,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"DispatchContext.d.ts","sourceRoot":"","sources":["../../../src/component/context/DispatchContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sC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E,wBAAgB,WAAW,IAAI,QAAQ,CAEtC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { createContext,
|
|
2
|
-
const
|
|
3
|
-
export const DispatchProvider = dispatchContext.Provider;
|
|
1
|
+
import { createContext, use } from 'react';
|
|
2
|
+
export const DispatchContext = createContext(() => null);
|
|
4
3
|
export function useDispatch() {
|
|
5
|
-
return
|
|
4
|
+
return use(DispatchContext);
|
|
6
5
|
}
|
|
7
6
|
//# sourceMappingURL=DispatchContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DispatchContext.js","sourceRoot":"","sources":["../../../src/component/context/DispatchContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"DispatchContext.js","sourceRoot":"","sources":["../../../src/component/context/DispatchContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAgD3C,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAW,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AAEnE,MAAM,UAAU,WAAW;IACzB,OAAO,GAAG,CAAC,eAAe,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { isSpectrum1D } from '@zakodium/nmrium-core';
|
|
3
3
|
import { getBaselineAnchors } from 'nmr-processing';
|
|
4
|
-
import { createContext,
|
|
4
|
+
import { createContext, use, useCallback, useEffect, useMemo, useRef, useState, } from 'react';
|
|
5
5
|
import { useFilter } from "../hooks/useFilter.js";
|
|
6
6
|
import useTempSpectrum from "../hooks/useTempSpectrum.js";
|
|
7
7
|
import { useChartData } from "./ChartContext.js";
|
|
@@ -11,7 +11,7 @@ function getAnchors(filterValue, spectrum) {
|
|
|
11
11
|
return Array.from(xValues);
|
|
12
12
|
}
|
|
13
13
|
export function useFilterSyncOptions() {
|
|
14
|
-
const context =
|
|
14
|
+
const context = use(FilterSyncOptionsContext);
|
|
15
15
|
if (!context) {
|
|
16
16
|
throw new Error('Filter sync options context must be used within a FilterSyncOptionsProvider');
|
|
17
17
|
}
|
|
@@ -77,6 +77,6 @@ export function FilterSyncOptionsProvider({ children, }) {
|
|
|
77
77
|
sharedFilterOptions,
|
|
78
78
|
updateFilterOptions,
|
|
79
79
|
}), [sharedFilterOptions, updateFilterOptions]);
|
|
80
|
-
return (_jsx(FilterSyncOptionsContext
|
|
80
|
+
return (_jsx(FilterSyncOptionsContext, { value: state, children: children }));
|
|
81
81
|
}
|
|
82
82
|
//# sourceMappingURL=FilterSyncOptionsContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterSyncOptionsContext.js","sourceRoot":"","sources":["../../../src/component/context/FilterSyncOptionsContext.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,OAAO,EACL,aAAa,EACb,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"FilterSyncOptionsContext.js","sourceRoot":"","sources":["../../../src/component/context/FilterSyncOptionsContext.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,OAAO,EACL,aAAa,EACb,GAAG,EACH,WAAW,EACX,SAAS,EACT,OAAO,EACP,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAoB,CAAC;AASlD,MAAM,wBAAwB,GAC5B,aAAa,CAAyC,IAAI,CAAC,CAAC;AA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MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;YACrE,OAAO,EAAE,GAAG,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QACvC,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,oBAAoB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE7C,MAAM,mBAAmB,GAAG,WAAW,CACrC,CAAC,OAA0C,EAAE,EAAE;QAC7C,sBAAsB,CAAC,CAAC,IAAS,EAAE,EAAE;YACnC,MAAM,IAAI,GAAG,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;YACrE,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC,EACD,EAAE,CACH,CAAC;IAEF,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CAAC,CAAC;QACL,mBAAmB;QACnB,mBAAmB;KACpB,CAAC,EACF,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAC3C,CAAC;IAEF,OAAO,CACL,KAAC,wBAAwB,IAAC,KAAK,EAAE,KAAK,YACnC,QAAQ,GACgB,CAC5B,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalContext.d.ts","sourceRoot":"","sources":["../../../src/component/context/GlobalContext.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GlobalContext.d.ts","sourceRoot":"","sources":["../../../src/component/context/GlobalContext.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;aACf,cAAc,GAAG,IAAI;wBACV,cAAc,GAAG,IAAI;eAC9B,cAAc,GAAG,IAAI;EAC8B,CAAC;AAEjE,wBAAgB,SAAS;aALd,cAAc,GAAG,IAAI;wBACV,cAAc,GAAG,IAAI;eAC9B,cAAc,GAAG,IAAI;EAWjC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { createContext,
|
|
1
|
+
import { createContext, use } from 'react';
|
|
2
2
|
import { useInsetViewerRootRef } from '../1d/inset/InsetViewerRoot.js';
|
|
3
|
-
const GlobalContext = createContext({ rootRef: null, elementsWrapperRef: null, viewerRef: null });
|
|
4
|
-
export const GlobalProvider = GlobalContext.Provider;
|
|
3
|
+
export const GlobalContext = createContext({ rootRef: null, elementsWrapperRef: null, viewerRef: null });
|
|
5
4
|
export function useGlobal() {
|
|
6
5
|
const insetViewerRootRef = useInsetViewerRootRef();
|
|
7
|
-
const context =
|
|
6
|
+
const context = use(GlobalContext);
|
|
8
7
|
if (!insetViewerRootRef)
|
|
9
8
|
return context;
|
|
10
9
|
const { viewerRef, ...otherRef } = context;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalContext.js","sourceRoot":"","sources":["../../../src/component/context/GlobalContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"GlobalContext.js","sourceRoot":"","sources":["../../../src/component/context/GlobalContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAIvC,EAAE,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AAEjE,MAAM,UAAU,SAAS;IACvB,MAAM,kBAAkB,GAAG,qBAAqB,EAAE,CAAC;IACnD,MAAM,OAAO,GAAG,GAAG,CAAC,aAAa,CAAC,CAAC;IAEnC,IAAI,CAAC,kBAAkB;QAAE,OAAO,OAAO,CAAC;IAExC,MAAM,EAAE,SAAS,EAAE,GAAG,QAAQ,EAAE,GAAG,OAAO,CAAC;IAC3C,OAAO,EAAE,SAAS,EAAE,kBAAkB,IAAI,SAAS,EAAE,GAAG,QAAQ,EAAE,CAAC;AACrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyModifierContext.d.ts","sourceRoot":"","sources":["../../../src/component/context/KeyModifierContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAYvC,UAAU,YAAY;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;CACjB;AAMD,KAAK,YAAY,GAAG,SAAS,OAAO,UAAU,OAAO,SAAS,OAAO,GAAG,CAAC;AAEzE,UAAU,iBAAkB,SAAQ,YAAY;IAC9C,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAClC,SAAS,EAAE,OAAO,CAAC;CACpB;AAcD,wBAAgB,eAAe,sBAO9B;AAED,UAAU,wBAAwB;IAChC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAID,MAAM,MAAM,iBAAiB,GAAG,MAAM,CACpC,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,EAC7C,OAAO,CACR,CAAC;AAEF,wBAAgB,YAAY,CAAC,SAAS,EAAE,iBAAiB,GAAG,YAAY,CAOvE;AAOD,wBAAgB,eAAe,CAAC,KAAK,EAAE,iBAAiB,qTAEvD;AAOD,wBAAgB,wBAAwB,YAGvC;AAED,wBAAgB,kBAAkB,gBAQlB,YAAY,aAK3B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE,wBAAwB,+
|
|
1
|
+
{"version":3,"file":"KeyModifierContext.d.ts","sourceRoot":"","sources":["../../../src/component/context/KeyModifierContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAYvC,UAAU,YAAY;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;CACjB;AAMD,KAAK,YAAY,GAAG,SAAS,OAAO,UAAU,OAAO,SAAS,OAAO,GAAG,CAAC;AAEzE,UAAU,iBAAkB,SAAQ,YAAY;IAC9C,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAClC,SAAS,EAAE,OAAO,CAAC;CACpB;AAcD,wBAAgB,eAAe,sBAO9B;AAED,UAAU,wBAAwB;IAChC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAID,MAAM,MAAM,iBAAiB,GAAG,MAAM,CACpC,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,EAC7C,OAAO,CACR,CAAC;AAEF,wBAAgB,YAAY,CAAC,SAAS,EAAE,iBAAiB,GAAG,YAAY,CAOvE;AAOD,wBAAgB,eAAe,CAAC,KAAK,EAAE,iBAAiB,qTAEvD;AAOD,wBAAgB,wBAAwB,YAGvC;AAED,wBAAgB,kBAAkB,gBAQlB,YAAY,aAK3B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE,wBAAwB,+BAqC1E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createContext,
|
|
2
|
+
import { createContext, use, useCallback, useEffect, useMemo, useState, } from 'react';
|
|
3
3
|
import { usePreferences } from './PreferencesContext.js';
|
|
4
4
|
const PRIMARY_MODIFIERS = ['shiftKey'];
|
|
5
5
|
const defaultKeyModifiersState = {
|
|
@@ -11,7 +11,7 @@ const defaultKeyModifiersState = {
|
|
|
11
11
|
};
|
|
12
12
|
const KeyModifierContext = createContext(defaultKeyModifiersState);
|
|
13
13
|
export function useKeyModifiers() {
|
|
14
|
-
const context =
|
|
14
|
+
const context = use(KeyModifierContext);
|
|
15
15
|
if (!context) {
|
|
16
16
|
throw new Error('key modifiers context was not found');
|
|
17
17
|
}
|
|
@@ -71,6 +71,6 @@ export function KeyModifiersProvider({ children }) {
|
|
|
71
71
|
modifiersKey: toModifiersKey(modifiers),
|
|
72
72
|
};
|
|
73
73
|
}, [invert, modifiers]);
|
|
74
|
-
return
|
|
74
|
+
return _jsx(KeyModifierContext, { value: state, children: children });
|
|
75
75
|
}
|
|
76
76
|
//# sourceMappingURL=KeyModifierContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyModifierContext.js","sourceRoot":"","sources":["../../../src/component/context/KeyModifierContext.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,aAAa,EACb,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"KeyModifierContext.js","sourceRoot":"","sources":["../../../src/component/context/KeyModifierContext.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,aAAa,EACb,GAAG,EACH,WAAW,EACX,SAAS,EACT,OAAO,EACP,QAAQ,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAUzD,MAAM,iBAAiB,GAAmB,CAAC,UAAU,CAAC,CAAC;AASvD,MAAM,wBAAwB,GAAsB;IAClD,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,IAAI;IAClB,SAAS,EAAE,KAAK;CACjB,CAAC;AAEF,MAAM,kBAAkB,GAAG,aAAa,CACtC,wBAAwB,CACzB,CAAC;AAEF,MAAM,UAAU,eAAe;IAC7B,MAAM,OAAO,GAAG,GAAG,CAAC,kBAAkB,CAAC,CAAC;IACxC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;IACzD,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAMD,MAAM,KAAK,GAAG,UAAU,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAO7E,MAAM,UAAU,YAAY,CAAC,SAA4B;IACvD,MAAM,E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derContext.d.ts","sourceRoot":"","sources":["../../../src/component/context/LoaderContext.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LoaderContext.d.ts","sourceRoot":"","sources":["../../../src/component/context/LoaderContext.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,gCAAuB,IAAI,CAAO,CAAC;AAE7D,wBAAgB,SAAS,UAFwB,IAAI,CAIpD"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
const LoaderContext = createContext(defaultLoader);
|
|
6
|
-
export const LoaderProvider = LoaderContext.Provider;
|
|
1
|
+
import { noop } from '@zakodium/utils';
|
|
2
|
+
import { createContext, use } from 'react';
|
|
3
|
+
export const LoaderContext = createContext(noop);
|
|
7
4
|
export function useLoader() {
|
|
8
|
-
return
|
|
5
|
+
return use(LoaderContext);
|
|
9
6
|
}
|
|
10
7
|
//# sourceMappingURL=LoaderContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderContext.js","sourceRoot":"","sources":["../../../src/component/context/LoaderContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"LoaderContext.js","sourceRoot":"","sources":["../../../src/component/context/LoaderContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAa,IAAI,CAAC,CAAC;AAE7D,MAAM,UAAU,SAAS;IACvB,OAAO,GAAG,CAAC,aAAa,CAAC,CAAC;AAC5B,CAAC"}
|