nmrium 2.2.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/lib/component/1d/PredictionErrorsNotations.js +3 -3
  2. package/lib/component/1d/PredictionErrorsNotations.js.map +1 -1
  3. package/lib/component/1d/peaks/PeakEditionManager.d.ts +1 -1
  4. package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
  5. package/lib/component/1d/peaks/Peaks.js +2 -1
  6. package/lib/component/1d/peaks/Peaks.js.map +1 -1
  7. package/lib/component/1d/peaks/usePeakShapesPath.d.ts.map +1 -1
  8. package/lib/component/1d/peaks/usePeakShapesPath.js.map +1 -1
  9. package/lib/component/1d/ranges/AssignmentLabel.js +1 -1
  10. package/lib/component/1d/ranges/AssignmentLabel.js.map +1 -1
  11. package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.d.ts +9 -0
  12. package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.d.ts.map +1 -0
  13. package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.js +138 -0
  14. package/lib/component/1d/ranges/FloatingRangeTablePreferencesModal.js.map +1 -0
  15. package/lib/component/1d/ranges/FloatingRanges.d.ts.map +1 -0
  16. package/lib/component/1d/ranges/FloatingRanges.js +362 -0
  17. package/lib/component/1d/ranges/FloatingRanges.js.map +1 -0
  18. package/lib/component/1d/ranges/Ranges.js +2 -2
  19. package/lib/component/1d/ranges/Ranges.js.map +1 -1
  20. package/lib/component/1d-2d/FieldEdition.d.ts +2 -2
  21. package/lib/component/1d-2d/FieldEdition.d.ts.map +1 -1
  22. package/lib/component/1d-2d/FieldEdition.js +2 -2
  23. package/lib/component/1d-2d/FieldEdition.js.map +1 -1
  24. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +7 -7
  25. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js.map +1 -1
  26. package/lib/component/1d-2d/tools/BrushXY.js +6 -6
  27. package/lib/component/1d-2d/tools/BrushXY.js.map +1 -1
  28. package/lib/component/2d/1d-tracer/Left1DChart.d.ts.map +1 -1
  29. package/lib/component/2d/1d-tracer/Left1DChart.js +6 -2
  30. package/lib/component/2d/1d-tracer/Left1DChart.js.map +1 -1
  31. package/lib/component/2d/1d-tracer/Ranges1D.d.ts +9 -0
  32. package/lib/component/2d/1d-tracer/Ranges1D.d.ts.map +1 -0
  33. package/lib/component/2d/1d-tracer/Ranges1D.js +76 -0
  34. package/lib/component/2d/1d-tracer/Ranges1D.js.map +1 -0
  35. package/lib/component/2d/1d-tracer/Signals1D.d.ts +11 -0
  36. package/lib/component/2d/1d-tracer/Signals1D.d.ts.map +1 -0
  37. package/lib/component/2d/1d-tracer/Signals1D.js +90 -0
  38. package/lib/component/2d/1d-tracer/Signals1D.js.map +1 -0
  39. package/lib/component/2d/1d-tracer/Top1DChart.d.ts.map +1 -1
  40. package/lib/component/2d/1d-tracer/Top1DChart.js +6 -2
  41. package/lib/component/2d/1d-tracer/Top1DChart.js.map +1 -1
  42. package/lib/component/2d/ft/FTContainer.d.ts.map +1 -1
  43. package/lib/component/2d/ft/FTContainer.js.map +1 -1
  44. package/lib/component/2d/zones/SignalsGuideLines.js +1 -1
  45. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  46. package/lib/component/2d/zones/ZonesAssignmentsLabels.js +1 -1
  47. package/lib/component/2d/zones/ZonesAssignmentsLabels.js.map +1 -1
  48. package/lib/component/AnchorSVG.d.ts +37 -0
  49. package/lib/component/AnchorSVG.d.ts.map +1 -0
  50. package/lib/component/AnchorSVG.js +137 -0
  51. package/lib/component/AnchorSVG.js.map +1 -0
  52. package/lib/component/EventsTrackers/BrushTracker.d.ts.map +1 -1
  53. package/lib/component/EventsTrackers/BrushTracker.js +4 -0
  54. package/lib/component/EventsTrackers/BrushTracker.js.map +1 -1
  55. package/lib/component/SVGTable.d.ts +5 -3
  56. package/lib/component/SVGTable.d.ts.map +1 -1
  57. package/lib/component/SVGTable.js +16 -16
  58. package/lib/component/SVGTable.js.map +1 -1
  59. package/lib/component/context/KeyModifierContext.d.ts +1 -0
  60. package/lib/component/context/KeyModifierContext.d.ts.map +1 -1
  61. package/lib/component/context/KeyModifierContext.js +4 -0
  62. package/lib/component/context/KeyModifierContext.js.map +1 -1
  63. package/lib/component/context/LoggerContext.d.ts.map +1 -1
  64. package/lib/component/context/LoggerContext.js.map +1 -1
  65. package/lib/component/context/SortSpectraContext.d.ts.map +1 -1
  66. package/lib/component/context/SortSpectraContext.js.map +1 -1
  67. package/lib/component/elements/ActionsButtonsPopover.d.ts +2 -2
  68. package/lib/component/elements/ActionsButtonsPopover.d.ts.map +1 -1
  69. package/lib/component/elements/ActionsButtonsPopover.js +6 -9
  70. package/lib/component/elements/ActionsButtonsPopover.js.map +1 -1
  71. package/lib/component/elements/Button.d.ts.map +1 -1
  72. package/lib/component/elements/Button.js.map +1 -1
  73. package/lib/component/elements/DraggableDialog.d.ts.map +1 -1
  74. package/lib/component/elements/DraggableDialog.js +1 -2
  75. package/lib/component/elements/DraggableDialog.js.map +1 -1
  76. package/lib/component/elements/Sections.d.ts +3 -3
  77. package/lib/component/elements/Sections.d.ts.map +1 -1
  78. package/lib/component/elements/Sections.js +1 -1
  79. package/lib/component/elements/Sections.js.map +1 -1
  80. package/lib/component/elements/TabTitle.d.ts.map +1 -1
  81. package/lib/component/elements/TabTitle.js +2 -2
  82. package/lib/component/elements/TabTitle.js.map +1 -1
  83. package/lib/component/elements/ToolbarPopoverItem.d.ts +1 -0
  84. package/lib/component/elements/ToolbarPopoverItem.d.ts.map +1 -1
  85. package/lib/component/elements/ToolbarPopoverItem.js +10 -3
  86. package/lib/component/elements/ToolbarPopoverItem.js.map +1 -1
  87. package/lib/component/elements/dropDownButton/DropDownButton.d.ts.map +1 -1
  88. package/lib/component/elements/dropDownButton/DropDownButton.js +2 -2
  89. package/lib/component/elements/dropDownButton/DropDownButton.js.map +1 -1
  90. package/lib/component/elements/export/ExportOptionsModal.d.ts +1 -1
  91. package/lib/component/elements/export/ExportOptionsModal.d.ts.map +1 -1
  92. package/lib/component/elements/export/ExportOptionsModal.js +28 -110
  93. package/lib/component/elements/export/ExportOptionsModal.js.map +1 -1
  94. package/lib/component/elements/export/units.d.ts +0 -28
  95. package/lib/component/elements/export/units.d.ts.map +1 -1
  96. package/lib/component/elements/export/units.js +0 -5
  97. package/lib/component/elements/export/units.js.map +1 -1
  98. package/lib/component/elements/export/utilities/getExportOptions.d.ts.map +1 -1
  99. package/lib/component/elements/export/utilities/getExportOptions.js.map +1 -1
  100. package/lib/component/elements/print/pageSize.d.ts +1 -1
  101. package/lib/component/elements/print/pageSize.d.ts.map +1 -1
  102. package/lib/component/header/Header.d.ts.map +1 -1
  103. package/lib/component/header/Header.js +2 -4
  104. package/lib/component/header/Header.js.map +1 -1
  105. package/lib/component/hooks/useExport.d.ts.map +1 -1
  106. package/lib/component/hooks/useExport.js.map +1 -1
  107. package/lib/component/hooks/usePanelPreferences.d.ts +3 -3
  108. package/lib/component/hooks/usePanelPreferences.d.ts.map +1 -1
  109. package/lib/component/hooks/useSaveSettings.d.ts.map +1 -1
  110. package/lib/component/hooks/useSaveSettings.js +3 -6
  111. package/lib/component/hooks/useSaveSettings.js.map +1 -1
  112. package/lib/component/hooks/useTextMetrics.d.ts.map +1 -1
  113. package/lib/component/hooks/useTextMetrics.js +1 -0
  114. package/lib/component/hooks/useTextMetrics.js.map +1 -1
  115. package/lib/component/main/NMRiumViewer.js +1 -1
  116. package/lib/component/main/NMRiumViewer.js.map +1 -1
  117. package/lib/component/modal/EditPeakShapeModal.js +2 -2
  118. package/lib/component/modal/EditPeakShapeModal.js.map +1 -1
  119. package/lib/component/modal/PublicationStringModal.d.ts.map +1 -1
  120. package/lib/component/modal/PublicationStringModal.js +2 -6
  121. package/lib/component/modal/PublicationStringModal.js.map +1 -1
  122. package/lib/component/modal/SaveAsModal.d.ts +2 -2
  123. package/lib/component/modal/SaveAsModal.d.ts.map +1 -1
  124. package/lib/component/modal/SaveAsModal.js +40 -35
  125. package/lib/component/modal/SaveAsModal.js.map +1 -1
  126. package/lib/component/modal/aboutUs/AboutUsModal.d.ts.map +1 -1
  127. package/lib/component/modal/aboutUs/AboutUsModal.js +2 -4
  128. package/lib/component/modal/aboutUs/AboutUsModal.js.map +1 -1
  129. package/lib/component/modal/editRange/EditRangeModal.js +4 -3
  130. package/lib/component/modal/editRange/EditRangeModal.js.map +1 -1
  131. package/lib/component/modal/editRange/forms/components/NewSignalTab.d.ts.map +1 -1
  132. package/lib/component/modal/editRange/forms/components/NewSignalTab.js +39 -37
  133. package/lib/component/modal/editRange/forms/components/NewSignalTab.js.map +1 -1
  134. package/lib/component/modal/setting/tanstack_general_settings/errors/context.d.ts +29 -29
  135. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js +3 -3
  136. package/lib/component/modal/setting/tanstack_general_settings/errors/context.js.map +1 -1
  137. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.d.ts +29 -29
  138. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js +2 -2
  139. package/lib/component/modal/setting/tanstack_general_settings/errors/renderer.js.map +1 -1
  140. package/lib/component/modal/setting/tanstack_general_settings/general_settings.d.ts.map +1 -1
  141. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js +9 -12
  142. package/lib/component/modal/setting/tanstack_general_settings/general_settings.js.map +1 -1
  143. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.d.ts +29 -29
  144. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js +2 -2
  145. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.js.map +1 -1
  146. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_footer.d.ts +24 -24
  147. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.d.ts +29 -29
  148. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js +2 -2
  149. package/lib/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.js.map +1 -1
  150. package/lib/component/modal/setting/tanstack_general_settings/hooks/use_safe_workspace.d.ts +4 -4
  151. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.d.ts +29 -29
  152. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js +2 -2
  153. package/lib/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.js.map +1 -1
  154. package/lib/component/modal/setting/tanstack_general_settings/tabs/axis_tab.d.ts +24 -24
  155. package/lib/component/modal/setting/tanstack_general_settings/tabs/database_tab.d.ts +24 -24
  156. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.d.ts +24 -24
  157. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.d.ts +14 -14
  158. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js +2 -2
  159. package/lib/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.js.map +1 -1
  160. package/lib/component/modal/setting/tanstack_general_settings/tabs/external_api_tab.d.ts +24 -24
  161. package/lib/component/modal/setting/tanstack_general_settings/tabs/general_tab.d.ts +24 -24
  162. package/lib/component/modal/setting/tanstack_general_settings/tabs/import_filters_tab.d.ts +24 -24
  163. package/lib/component/modal/setting/tanstack_general_settings/tabs/nuclei_tab.d.ts +24 -24
  164. package/lib/component/modal/setting/tanstack_general_settings/tabs/panels_tab.d.ts +24 -24
  165. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_colors_tab.d.ts +24 -24
  166. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts +24 -24
  167. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.d.ts.map +1 -1
  168. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js +3 -2
  169. package/lib/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.js.map +1 -1
  170. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts +24 -24
  171. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.d.ts.map +1 -1
  172. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js +3 -2
  173. package/lib/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.js.map +1 -1
  174. package/lib/component/modal/setting/tanstack_general_settings/tabs/tools_tab.d.ts +24 -24
  175. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.d.ts.map +1 -1
  176. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js +30 -3
  177. package/lib/component/panels/MoleculesPanel/MoleculePanelHeader.js.map +1 -1
  178. package/lib/component/panels/PeaksPanel/PeaksPanel.d.ts.map +1 -1
  179. package/lib/component/panels/PeaksPanel/PeaksPanel.js +1 -9
  180. package/lib/component/panels/PeaksPanel/PeaksPanel.js.map +1 -1
  181. package/lib/component/panels/PeaksPanel/PeaksPreferences.js +18 -18
  182. package/lib/component/panels/PeaksPanel/PeaksPreferences.js.map +1 -1
  183. package/lib/component/panels/PeaksPanel/PeaksTable.d.ts.map +1 -1
  184. package/lib/component/panels/PeaksPanel/PeaksTable.js +17 -17
  185. package/lib/component/panels/PeaksPanel/PeaksTable.js.map +1 -1
  186. package/lib/component/panels/RangesPanel/RangesHeader.d.ts.map +1 -1
  187. package/lib/component/panels/RangesPanel/RangesHeader.js.map +1 -1
  188. package/lib/component/panels/RangesPanel/RangesPreferences.js +22 -22
  189. package/lib/component/panels/RangesPanel/RangesPreferences.js.map +1 -1
  190. package/lib/component/panels/RangesPanel/RangesTable.d.ts +2 -2
  191. package/lib/component/panels/RangesPanel/RangesTable.d.ts.map +1 -1
  192. package/lib/component/panels/RangesPanel/RangesTable.js +5 -4
  193. package/lib/component/panels/RangesPanel/RangesTable.js.map +1 -1
  194. package/lib/component/panels/RangesPanel/RangesTableRow.d.ts +2 -2
  195. package/lib/component/panels/RangesPanel/RangesTableRow.js +2 -2
  196. package/lib/component/panels/RangesPanel/RangesTableRow.js.map +1 -1
  197. package/lib/component/panels/SpectraPanel/SpectraTable.d.ts.map +1 -1
  198. package/lib/component/panels/SpectraPanel/SpectraTable.js +5 -1
  199. package/lib/component/panels/SpectraPanel/SpectraTable.js.map +1 -1
  200. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.d.ts.map +1 -1
  201. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js +7 -4
  202. package/lib/component/panels/SpectraPanel/base/RenderAsHTML.js.map +1 -1
  203. package/lib/component/panels/SpectraPanel/base/SpectrumName.d.ts.map +1 -1
  204. package/lib/component/panels/SpectraPanel/base/SpectrumName.js +5 -1
  205. package/lib/component/panels/SpectraPanel/base/SpectrumName.js.map +1 -1
  206. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.d.ts.map +1 -1
  207. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js +2 -2
  208. package/lib/component/panels/SpectraPanel/base/setting/SpectrumSetting.js.map +1 -1
  209. package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
  210. package/lib/component/panels/SummaryPanel/SummaryPanel.js +7 -0
  211. package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
  212. package/lib/component/panels/filtersPanel/FilterPanel.d.ts.map +1 -1
  213. package/lib/component/panels/filtersPanel/FilterPanel.js +5 -2
  214. package/lib/component/panels/filtersPanel/FilterPanel.js.map +1 -1
  215. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js +1 -1
  216. package/lib/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.js.map +1 -1
  217. package/lib/component/panels/filtersPanel/processings_sections_panel.d.ts +2 -0
  218. package/lib/component/panels/filtersPanel/processings_sections_panel.d.ts.map +1 -0
  219. package/lib/component/panels/filtersPanel/processings_sections_panel.js +144 -0
  220. package/lib/component/panels/filtersPanel/processings_sections_panel.js.map +1 -0
  221. package/lib/component/panels/hooks/useMoleculeAnnotationCore.d.ts +3 -2
  222. package/lib/component/panels/hooks/useMoleculeAnnotationCore.d.ts.map +1 -1
  223. package/lib/component/panels/hooks/useMoleculeAnnotationCore.js +14 -8
  224. package/lib/component/panels/hooks/useMoleculeAnnotationCore.js.map +1 -1
  225. package/lib/component/panels/informationPanel/MixedValuesBadge.d.ts.map +1 -1
  226. package/lib/component/panels/informationPanel/MixedValuesBadge.js +2 -2
  227. package/lib/component/panels/informationPanel/MixedValuesBadge.js.map +1 -1
  228. package/lib/component/panels/informationPanel/SpectraPicker.d.ts.map +1 -1
  229. package/lib/component/panels/informationPanel/SpectraPicker.js +2 -2
  230. package/lib/component/panels/informationPanel/SpectraPicker.js.map +1 -1
  231. package/lib/component/reducer/Reducer.d.ts.map +1 -1
  232. package/lib/component/reducer/Reducer.js +2 -0
  233. package/lib/component/reducer/Reducer.js.map +1 -1
  234. package/lib/component/reducer/actions/CorrelationsActions.js +1 -1
  235. package/lib/component/reducer/actions/CorrelationsActions.js.map +1 -1
  236. package/lib/component/reducer/actions/DomainActions.d.ts.map +1 -1
  237. package/lib/component/reducer/actions/DomainActions.js.map +1 -1
  238. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  239. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  240. package/lib/component/reducer/actions/LoadAction.d.ts.map +1 -1
  241. package/lib/component/reducer/actions/LoadAction.js.map +1 -1
  242. package/lib/component/reducer/actions/MoleculeActions.d.ts +9 -0
  243. package/lib/component/reducer/actions/MoleculeActions.d.ts.map +1 -1
  244. package/lib/component/reducer/actions/RangesActions.d.ts +11 -2
  245. package/lib/component/reducer/actions/RangesActions.d.ts.map +1 -1
  246. package/lib/component/reducer/actions/RangesActions.js +23 -5
  247. package/lib/component/reducer/actions/RangesActions.js.map +1 -1
  248. package/lib/component/reducer/actions/ToolsActions.d.ts.map +1 -1
  249. package/lib/component/reducer/actions/ToolsActions.js +5 -17
  250. package/lib/component/reducer/actions/ToolsActions.js.map +1 -1
  251. package/lib/component/reducer/helper/getTraceSpectrumID.d.ts +5 -0
  252. package/lib/component/reducer/helper/getTraceSpectrumID.d.ts.map +1 -0
  253. package/lib/component/reducer/helper/getTraceSpectrumID.js +14 -0
  254. package/lib/component/reducer/helper/getTraceSpectrumID.js.map +1 -0
  255. package/lib/component/reducer/helper/setRangesViewProperty.d.ts.map +1 -1
  256. package/lib/component/reducer/helper/setRangesViewProperty.js.map +1 -1
  257. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.d.ts.map +1 -1
  258. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js +35 -26
  259. package/lib/component/reducer/preferences/panelsPreferencesDefaultValues.js.map +1 -1
  260. package/lib/component/reducer/preferences/preferencesReducer.d.ts +2 -2
  261. package/lib/component/reducer/preferences/preferencesReducer.d.ts.map +1 -1
  262. package/lib/component/reducer/preferences/utilities/initWorkspace.d.ts +2 -2
  263. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts +2 -2
  264. package/lib/component/reducer/preferences/utilities/mapWorkspaces.d.ts.map +1 -1
  265. package/lib/component/toolbar/ToolTypes.d.ts +2 -2
  266. package/lib/component/toolbar/nmr_toolbar.d.ts.map +1 -1
  267. package/lib/component/toolbar/nmr_toolbar.js +3 -1
  268. package/lib/component/toolbar/nmr_toolbar.js.map +1 -1
  269. package/lib/component/utility/CoreSlot.d.ts +27 -0
  270. package/lib/component/utility/CoreSlot.d.ts.map +1 -0
  271. package/lib/component/utility/CoreSlot.js +56 -0
  272. package/lib/component/utility/CoreSlot.js.map +1 -0
  273. package/lib/component/utility/export.d.ts.map +1 -1
  274. package/lib/component/utility/export.js +1 -0
  275. package/lib/component/utility/export.js.map +1 -1
  276. package/lib/data/PredictionManager.js.map +1 -1
  277. package/lib/data/constants/signalsKinds.d.ts +1 -2
  278. package/lib/data/constants/signalsKinds.d.ts.map +1 -1
  279. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.d.ts.map +1 -1
  280. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js +1 -0
  281. package/lib/data/data1d/Spectrum1D/peaks/autoPeakPicking.js.map +1 -1
  282. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.d.ts.map +1 -1
  283. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js +35 -30
  284. package/lib/data/data1d/Spectrum1D/peaks/optimizePeaks.js.map +1 -1
  285. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.d.ts.map +1 -1
  286. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js +1 -0
  287. package/lib/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.js.map +1 -1
  288. package/lib/data/data1d/multipleSpectraAnalysis.d.ts +2 -2
  289. package/lib/data/matrixGeneration.d.ts.map +1 -1
  290. package/lib/data/matrixGeneration.js.map +1 -1
  291. package/lib/versionInfo.js +1 -1
  292. package/package.json +37 -37
  293. package/src/component/1d/PredictionErrorsNotations.tsx +5 -4
  294. package/src/component/1d/peaks/Peaks.tsx +5 -2
  295. package/src/component/1d/peaks/usePeakShapesPath.ts +0 -1
  296. package/src/component/1d/ranges/AssignmentLabel.tsx +1 -1
  297. package/src/component/1d/ranges/FloatingRangeTablePreferencesModal.tsx +238 -0
  298. package/src/component/1d/ranges/FloatingRanges.tsx +529 -0
  299. package/src/component/1d/ranges/Ranges.tsx +2 -2
  300. package/src/component/1d-2d/FieldEdition.tsx +4 -4
  301. package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +8 -8
  302. package/src/component/1d-2d/tools/BrushXY.tsx +8 -8
  303. package/src/component/2d/1d-tracer/Left1DChart.tsx +24 -1
  304. package/src/component/2d/1d-tracer/Ranges1D.tsx +134 -0
  305. package/src/component/2d/1d-tracer/Signals1D.tsx +145 -0
  306. package/src/component/2d/1d-tracer/Top1DChart.tsx +29 -2
  307. package/src/component/2d/ft/FTContainer.tsx +1 -0
  308. package/src/component/2d/zones/SignalsGuideLines.tsx +1 -1
  309. package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +1 -1
  310. package/src/component/AnchorSVG.tsx +370 -0
  311. package/src/component/EventsTrackers/BrushTracker.tsx +7 -2
  312. package/src/component/SVGTable.tsx +35 -33
  313. package/src/component/context/KeyModifierContext.tsx +6 -2
  314. package/src/component/context/LoggerContext.tsx +1 -7
  315. package/src/component/context/SortSpectraContext.tsx +1 -3
  316. package/src/component/elements/ActionsButtonsPopover.tsx +12 -14
  317. package/src/component/elements/Button.tsx +1 -6
  318. package/src/component/elements/DraggableDialog.tsx +1 -2
  319. package/src/component/elements/Sections.tsx +9 -7
  320. package/src/component/elements/TabTitle.tsx +7 -5
  321. package/src/component/elements/ToolbarPopoverItem.tsx +13 -2
  322. package/src/component/elements/dropDownButton/DropDownButton.tsx +7 -5
  323. package/src/component/elements/export/ExportOptionsModal.tsx +51 -280
  324. package/src/component/elements/export/units.ts +0 -6
  325. package/src/component/elements/export/utilities/getExportOptions.ts +1 -0
  326. package/src/component/elements/print/pageSize.ts +1 -1
  327. package/src/component/header/Header.tsx +2 -4
  328. package/src/component/hooks/useExport.tsx +1 -3
  329. package/src/component/hooks/usePanelPreferences.ts +4 -4
  330. package/src/component/hooks/useSaveSettings.tsx +4 -15
  331. package/src/component/hooks/useTextMetrics.ts +1 -0
  332. package/src/component/main/NMRiumViewer.tsx +1 -1
  333. package/src/component/modal/EditPeakShapeModal.tsx +2 -2
  334. package/src/component/modal/PublicationStringModal.tsx +5 -11
  335. package/src/component/modal/SaveAsModal.tsx +80 -82
  336. package/src/component/modal/aboutUs/AboutUsModal.tsx +5 -4
  337. package/src/component/modal/editRange/EditRangeModal.tsx +6 -4
  338. package/src/component/modal/editRange/forms/components/NewSignalTab.tsx +58 -58
  339. package/src/component/modal/setting/WorkspaceItem.tsx +2 -2
  340. package/src/component/modal/setting/tanstack_general_settings/errors/context.tsx +3 -3
  341. package/src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx +2 -2
  342. package/src/component/modal/setting/tanstack_general_settings/general_settings.tsx +23 -29
  343. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_body.tsx +2 -2
  344. package/src/component/modal/setting/tanstack_general_settings/general_settings_dialog_header.tsx +2 -2
  345. package/src/component/modal/setting/tanstack_general_settings/tabs/auto_processing_tab.tsx +2 -2
  346. package/src/component/modal/setting/tanstack_general_settings/tabs/export_tab.fields.tsx +2 -2
  347. package/src/component/modal/setting/tanstack_general_settings/tabs/spectra_label_tab.tsx +3 -2
  348. package/src/component/modal/setting/tanstack_general_settings/tabs/title_block_tab.tsx +3 -2
  349. package/src/component/panels/MoleculesPanel/MoleculePanelHeader.tsx +41 -8
  350. package/src/component/panels/PeaksPanel/PeaksPanel.tsx +1 -8
  351. package/src/component/panels/PeaksPanel/PeaksPreferences.tsx +18 -18
  352. package/src/component/panels/PeaksPanel/PeaksTable.tsx +19 -17
  353. package/src/component/panels/RangesPanel/RangesHeader.tsx +1 -2
  354. package/src/component/panels/RangesPanel/RangesPanel.tsx +2 -2
  355. package/src/component/panels/RangesPanel/RangesPreferences.tsx +22 -22
  356. package/src/component/panels/RangesPanel/RangesTable.tsx +19 -17
  357. package/src/component/panels/RangesPanel/RangesTableRow.tsx +25 -25
  358. package/src/component/panels/SpectraPanel/SpectraTable.tsx +12 -1
  359. package/src/component/panels/SpectraPanel/base/RenderAsHTML.tsx +22 -4
  360. package/src/component/panels/SpectraPanel/base/SpectrumName.tsx +15 -6
  361. package/src/component/panels/SpectraPanel/base/setting/SpectrumSetting.tsx +3 -2
  362. package/src/component/panels/SummaryPanel/SummaryPanel.tsx +14 -16
  363. package/src/component/panels/filtersPanel/FilterPanel.tsx +10 -0
  364. package/src/component/panels/filtersPanel/Filters/base/BaseApodizationOptions.tsx +1 -0
  365. package/src/component/panels/filtersPanel/processings_sections_panel.tsx +324 -0
  366. package/src/component/panels/hooks/useMoleculeAnnotationCore.ts +17 -9
  367. package/src/component/panels/informationPanel/MixedValuesBadge.tsx +3 -2
  368. package/src/component/panels/informationPanel/SpectraPicker.tsx +12 -4
  369. package/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx +2 -2
  370. package/src/component/reducer/Reducer.ts +2 -0
  371. package/src/component/reducer/actions/CorrelationsActions.ts +1 -1
  372. package/src/component/reducer/actions/DomainActions.ts +1 -4
  373. package/src/component/reducer/actions/FiltersActions.ts +1 -2
  374. package/src/component/reducer/actions/LoadAction.ts +1 -3
  375. package/src/component/reducer/actions/RangesActions.ts +39 -5
  376. package/src/component/reducer/actions/ToolsActions.ts +5 -21
  377. package/src/component/reducer/helper/getTraceSpectrumID.tsx +25 -0
  378. package/src/component/reducer/helper/setRangesViewProperty.ts +1 -2
  379. package/src/component/reducer/preferences/panelsPreferencesDefaultValues.ts +32 -19
  380. package/src/component/reducer/preferences/preferencesReducer.ts +2 -2
  381. package/src/component/reducer/preferences/utilities/initWorkspace.ts +2 -2
  382. package/src/component/reducer/preferences/utilities/mapWorkspaces.ts +2 -2
  383. package/src/component/toolbar/ToolTypes.ts +2 -2
  384. package/src/component/toolbar/nmr_toolbar.tsx +3 -2
  385. package/src/component/utility/CoreSlot.tsx +126 -0
  386. package/src/component/utility/export.ts +1 -0
  387. package/src/data/PredictionManager.ts +4 -6
  388. package/src/data/constants/signalsKinds.ts +1 -1
  389. package/src/data/data1d/Spectrum1D/peaks/autoPeakPicking.ts +1 -0
  390. package/src/data/data1d/Spectrum1D/peaks/optimizePeaks.ts +35 -30
  391. package/src/data/data1d/Spectrum1D/ranges/detectSignalsByMultipletAnalysis.ts +1 -0
  392. package/src/data/data1d/multipleSpectraAnalysis.ts +2 -2
  393. package/src/data/matrixGeneration.ts +1 -5
  394. package/src/versionInfo.ts +1 -1
  395. package/lib/component/1d/FloatingRanges.d.ts.map +0 -1
  396. package/lib/component/1d/FloatingRanges.js +0 -263
  397. package/lib/component/1d/FloatingRanges.js.map +0 -1
  398. package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts +0 -17
  399. package/lib/component/elements/export/utilities/exportOptionValidationSchema.d.ts.map +0 -1
  400. package/lib/component/elements/export/utilities/exportOptionValidationSchema.js +0 -79
  401. package/lib/component/elements/export/utilities/exportOptionValidationSchema.js.map +0 -1
  402. package/lib/component/elements/export/utilities/getModes.d.ts +0 -4
  403. package/lib/component/elements/export/utilities/getModes.d.ts.map +0 -1
  404. package/lib/component/elements/export/utilities/getModes.js +0 -11
  405. package/lib/component/elements/export/utilities/getModes.js.map +0 -1
  406. package/lib/component/utility/renderCoreSlot.d.ts +0 -11
  407. package/lib/component/utility/renderCoreSlot.d.ts.map +0 -1
  408. package/lib/component/utility/renderCoreSlot.js +0 -13
  409. package/lib/component/utility/renderCoreSlot.js.map +0 -1
  410. package/src/component/1d/FloatingRanges.tsx +0 -378
  411. package/src/component/elements/export/utilities/exportOptionValidationSchema.ts +0 -106
  412. package/src/component/elements/export/utilities/getModes.ts +0 -14
  413. package/src/component/utility/renderCoreSlot.tsx +0 -21
  414. /package/lib/component/1d/{FloatingRanges.d.ts → ranges/FloatingRanges.d.ts} +0 -0
@@ -238,7 +238,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
238
238
  stroke?: string | undefined;
239
239
  strokeOpacity?: string | undefined;
240
240
  strokeWidth?: string | undefined;
241
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
241
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
242
242
  };
243
243
  };
244
244
  secondary: {
@@ -247,7 +247,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
247
247
  stroke?: string | undefined;
248
248
  strokeOpacity?: string | undefined;
249
249
  strokeWidth?: string | undefined;
250
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
250
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
251
251
  };
252
252
  };
253
253
  };
@@ -258,7 +258,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
258
258
  stroke?: string | undefined;
259
259
  strokeOpacity?: string | undefined;
260
260
  strokeWidth?: string | undefined;
261
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
261
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
262
262
  };
263
263
  };
264
264
  secondary: {
@@ -267,12 +267,12 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
267
267
  stroke?: string | undefined;
268
268
  strokeOpacity?: string | undefined;
269
269
  strokeWidth?: string | undefined;
270
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
270
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
271
271
  };
272
272
  };
273
273
  };
274
274
  } | undefined;
275
- }, any, any, import("@tanstack/react-form").FormAsyncValidateOrFn<{
275
+ }, any, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
276
276
  display: {
277
277
  general?: {
278
278
  experimentalFeatures?: {
@@ -511,7 +511,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
511
511
  stroke?: string | undefined;
512
512
  strokeOpacity?: string | undefined;
513
513
  strokeWidth?: string | undefined;
514
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
514
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
515
515
  };
516
516
  };
517
517
  secondary: {
@@ -520,7 +520,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
520
520
  stroke?: string | undefined;
521
521
  strokeOpacity?: string | undefined;
522
522
  strokeWidth?: string | undefined;
523
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
523
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
524
524
  };
525
525
  };
526
526
  };
@@ -531,7 +531,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
531
531
  stroke?: string | undefined;
532
532
  strokeOpacity?: string | undefined;
533
533
  strokeWidth?: string | undefined;
534
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
534
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
535
535
  };
536
536
  };
537
537
  secondary: {
@@ -540,12 +540,12 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
540
540
  stroke?: string | undefined;
541
541
  strokeOpacity?: string | undefined;
542
542
  strokeWidth?: string | undefined;
543
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
543
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
544
544
  };
545
545
  };
546
546
  };
547
547
  } | undefined;
548
- }> | undefined, any, import("@tanstack/react-form").FormAsyncValidateOrFn<{
548
+ }> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
549
549
  display: {
550
550
  general?: {
551
551
  experimentalFeatures?: {
@@ -784,7 +784,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
784
784
  stroke?: string | undefined;
785
785
  strokeOpacity?: string | undefined;
786
786
  strokeWidth?: string | undefined;
787
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
787
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
788
788
  };
789
789
  };
790
790
  secondary: {
@@ -793,7 +793,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
793
793
  stroke?: string | undefined;
794
794
  strokeOpacity?: string | undefined;
795
795
  strokeWidth?: string | undefined;
796
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
796
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
797
797
  };
798
798
  };
799
799
  };
@@ -804,7 +804,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
804
804
  stroke?: string | undefined;
805
805
  strokeOpacity?: string | undefined;
806
806
  strokeWidth?: string | undefined;
807
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
807
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
808
808
  };
809
809
  };
810
810
  secondary: {
@@ -813,12 +813,12 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
813
813
  stroke?: string | undefined;
814
814
  strokeOpacity?: string | undefined;
815
815
  strokeWidth?: string | undefined;
816
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
816
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
817
817
  };
818
818
  };
819
819
  };
820
820
  } | undefined;
821
- }> | undefined, any, import("@tanstack/react-form").FormAsyncValidateOrFn<{
821
+ }> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
822
822
  display: {
823
823
  general?: {
824
824
  experimentalFeatures?: {
@@ -1057,7 +1057,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
1057
1057
  stroke?: string | undefined;
1058
1058
  strokeOpacity?: string | undefined;
1059
1059
  strokeWidth?: string | undefined;
1060
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
1060
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
1061
1061
  };
1062
1062
  };
1063
1063
  secondary: {
@@ -1066,7 +1066,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
1066
1066
  stroke?: string | undefined;
1067
1067
  strokeOpacity?: string | undefined;
1068
1068
  strokeWidth?: string | undefined;
1069
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
1069
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
1070
1070
  };
1071
1071
  };
1072
1072
  };
@@ -1077,7 +1077,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
1077
1077
  stroke?: string | undefined;
1078
1078
  strokeOpacity?: string | undefined;
1079
1079
  strokeWidth?: string | undefined;
1080
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
1080
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
1081
1081
  };
1082
1082
  };
1083
1083
  secondary: {
@@ -1086,7 +1086,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
1086
1086
  stroke?: string | undefined;
1087
1087
  strokeOpacity?: string | undefined;
1088
1088
  strokeWidth?: string | undefined;
1089
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
1089
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
1090
1090
  };
1091
1091
  };
1092
1092
  };
@@ -1739,7 +1739,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
1739
1739
  }>>;
1740
1740
  }, import("zod/v4/core").$strip>>;
1741
1741
  }, import("zod/v4/core").$strip>;
1742
- }, import("zod/v4/core").$strip>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
1742
+ }, import("zod/v4/core").$strip>, import("@tanstack/form-core").FormAsyncValidateOrFn<{
1743
1743
  display: {
1744
1744
  general?: {
1745
1745
  experimentalFeatures?: {
@@ -1978,7 +1978,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
1978
1978
  stroke?: string | undefined;
1979
1979
  strokeOpacity?: string | undefined;
1980
1980
  strokeWidth?: string | undefined;
1981
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
1981
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
1982
1982
  };
1983
1983
  };
1984
1984
  secondary: {
@@ -1987,7 +1987,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
1987
1987
  stroke?: string | undefined;
1988
1988
  strokeOpacity?: string | undefined;
1989
1989
  strokeWidth?: string | undefined;
1990
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
1990
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
1991
1991
  };
1992
1992
  };
1993
1993
  };
@@ -1998,7 +1998,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
1998
1998
  stroke?: string | undefined;
1999
1999
  strokeOpacity?: string | undefined;
2000
2000
  strokeWidth?: string | undefined;
2001
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
2001
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
2002
2002
  };
2003
2003
  };
2004
2004
  secondary: {
@@ -2007,12 +2007,12 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
2007
2007
  stroke?: string | undefined;
2008
2008
  strokeOpacity?: string | undefined;
2009
2009
  strokeWidth?: string | undefined;
2010
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
2010
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
2011
2011
  };
2012
2012
  };
2013
2013
  };
2014
2014
  } | undefined;
2015
- }> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
2015
+ }> | undefined, import("@tanstack/form-core").FormAsyncValidateOrFn<{
2016
2016
  display: {
2017
2017
  general?: {
2018
2018
  experimentalFeatures?: {
@@ -2251,7 +2251,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
2251
2251
  stroke?: string | undefined;
2252
2252
  strokeOpacity?: string | undefined;
2253
2253
  strokeWidth?: string | undefined;
2254
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
2254
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
2255
2255
  };
2256
2256
  };
2257
2257
  secondary: {
@@ -2260,7 +2260,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
2260
2260
  stroke?: string | undefined;
2261
2261
  strokeOpacity?: string | undefined;
2262
2262
  strokeWidth?: string | undefined;
2263
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
2263
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
2264
2264
  };
2265
2265
  };
2266
2266
  };
@@ -2271,7 +2271,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
2271
2271
  stroke?: string | undefined;
2272
2272
  strokeOpacity?: string | undefined;
2273
2273
  strokeWidth?: string | undefined;
2274
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
2274
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
2275
2275
  };
2276
2276
  };
2277
2277
  secondary: {
@@ -2280,7 +2280,7 @@ export declare const GeneralSettingsErrorRenderer: import("react").FunctionCompo
2280
2280
  stroke?: string | undefined;
2281
2281
  strokeOpacity?: string | undefined;
2282
2282
  strokeWidth?: string | undefined;
2283
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
2283
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
2284
2284
  };
2285
2285
  };
2286
2286
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Callout, Collapse } from '@blueprintjs/core';
3
3
  import styled from '@emotion/styled';
4
- import { useStore } from '@tanstack/react-form';
4
+ import { useSelector } from '@tanstack/react-store';
5
5
  import { Button, withForm } from 'react-science/ui';
6
6
  import { defaultGeneralSettingsFormValues, workspaceValidation, } from "../validation.js";
7
7
  import { useErrors } from "./context.js";
@@ -10,7 +10,7 @@ export const GeneralSettingsErrorRenderer = withForm({
10
10
  validators: { onDynamic: workspaceValidation },
11
11
  render: function GeneralSettingsErrorRenderer({ form }) {
12
12
  const { isOpen, setIsOpen } = useErrors();
13
- const errors = useStore(form.store, (state) => {
13
+ const errors = useSelector(form.store, (state) => {
14
14
  return Object.values(state.errorMap.onDynamic ?? {}).flat();
15
15
  });
16
16
  return (_jsx(Collapse, { isOpen: isOpen, keepChildrenMounted: true, children: _jsxs(Callout, { title: "Errors in the form", intent: "danger", children: [_jsx(CloseButton, { icon: "cross", variant: "minimal", onClick: () => setIsOpen(false) }), _jsx("ul", { children: errors.map((error, index) => {
@@ -1 +1 @@
1
- {"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EACL,gCAAgC,EAChC,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAe,CAAC;AAE1C,MAAM,CAAC,MAAM,4BAA4B,GAAG,QAAQ,CAAC;IACnD,aAAa,EAAE,gCAAgC;IAC/C,UAAU,EAAE,EAAE,SAAS,EAAE,mBAAmB,EAAE;IAC9C,MAAM,EAAE,SAAS,4BAA4B,CAAC,EAAE,IAAI,EAAE;QACpD,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,CAAC;QAC1C,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE;YAC5C,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC9D,CAAC,CAAC,CAAC;QAEH,OAAO,CACL,KAAC,QAAQ,IAAC,MAAM,EAAE,MAAM,EAAE,mBAAmB,kBAC3C,MAAC,OAAO,IAAC,KAAK,EAAC,oBAAoB,EAAC,MAAM,EAAC,QAAQ,aACjD,KAAC,WAAW,IACV,IAAI,EAAC,OAAO,EACZ,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,GAC/B,EAEF,uBACG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;4BAC3B,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI;gCACrB,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CACb,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACnD;iCACA,IAAI,CAAC,GAAG,CAAC,CAAC;4BAEb,OAAO,CACL,yBACG,IAAI,QAAI,KAAK,CAAC,OAAO,KADf,GAAG,IAAI,IAAI,KAAK,EAAE,CAEtB,CACN,CAAC;wBACJ,CAAC,CAAC,GACC,IACG,GACD,CACZ,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;;;CAIjC,CAAC"}
1
+ {"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../../../../../src/component/modal/setting/tanstack_general_settings/errors/renderer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EACL,gCAAgC,EAChC,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAe,CAAC;AAE1C,MAAM,CAAC,MAAM,4BAA4B,GAAG,QAAQ,CAAC;IACnD,aAAa,EAAE,gCAAgC;IAC/C,UAAU,EAAE,EAAE,SAAS,EAAE,mBAAmB,EAAE;IAC9C,MAAM,EAAE,SAAS,4BAA4B,CAAC,EAAE,IAAI,EAAE;QACpD,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,CAAC;QAC1C,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE;YAC/C,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC9D,CAAC,CAAC,CAAC;QAEH,OAAO,CACL,KAAC,QAAQ,IAAC,MAAM,EAAE,MAAM,EAAE,mBAAmB,kBAC3C,MAAC,OAAO,IAAC,KAAK,EAAC,oBAAoB,EAAC,MAAM,EAAC,QAAQ,aACjD,KAAC,WAAW,IACV,IAAI,EAAC,OAAO,EACZ,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,GAC/B,EAEF,uBACG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;4BAC3B,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI;gCACrB,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CACb,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACnD;iCACA,IAAI,CAAC,GAAG,CAAC,CAAC;4BAEb,OAAO,CACL,yBACG,IAAI,QAAI,KAAK,CAAC,OAAO,KADf,GAAG,IAAI,IAAI,KAAK,EAAE,CAEtB,CACN,CAAC;wBACJ,CAAC,CAAC,GACC,IACG,GACD,CACZ,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;;;CAIjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"general_settings.d.ts","sourceRoot":"","sources":["../../../../../src/component/modal/setting/tanstack_general_settings/general_settings.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAkBvD,UAAU,0BAA0B;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAiBD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,+BAUtE"}
1
+ {"version":3,"file":"general_settings.d.ts","sourceRoot":"","sources":["../../../../../src/component/modal/setting/tanstack_general_settings/general_settings.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAmBvD,UAAU,0BAA0B;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAiBD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,+BAUtE"}
@@ -3,8 +3,9 @@ import { Dialog as BPDialog } from '@blueprintjs/core';
3
3
  import styled from '@emotion/styled';
4
4
  import { revalidateLogic } from '@tanstack/react-form';
5
5
  import { ErrorBoundary } from 'react-error-boundary';
6
- import { Form, assert, useForm } from 'react-science/ui';
6
+ import { AppForm, useForm } from 'react-science/ui';
7
7
  import { match } from 'ts-pattern';
8
+ import { z } from 'zod';
8
9
  import { usePreferences } from '../../../context/PreferencesContext.js';
9
10
  import ErrorOverlay from "../../../main/ErrorOverlay.js";
10
11
  import { GeneralSettingsErrorsOpenProvider } from "./errors/context.js";
@@ -31,6 +32,8 @@ export function GeneralSettingsDialog(props) {
31
32
  const { isOpen, close } = props;
32
33
  return (_jsx(Dialog, { isOpen: isOpen, onClose: close, title: "General settings", icon: "cog", children: _jsx(ErrorBoundary, { FallbackComponent: ErrorOverlay, children: _jsx(GeneralSettings, { ...props }) }) }));
33
34
  }
35
+ const metaSchema = z.enum(['apply', 'save']);
36
+ const onSubmitMeta = 'apply';
34
37
  function GeneralSettings(props) {
35
38
  const { close, height, onSave } = props;
36
39
  const { current: currentWorkspace, dispatch } = usePreferences();
@@ -41,10 +44,11 @@ function GeneralSettings(props) {
41
44
  },
42
45
  validationLogic: revalidateLogic({ mode: 'change' }),
43
46
  defaultValues,
44
- // We don't want onSubmitMeta to be inferred as sting.
45
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
46
- onSubmitMeta: 'apply',
47
+ onSubmitMeta,
47
48
  onSubmit: ({ value, meta }) => {
49
+ meta = metaSchema.parse(meta, {
50
+ error: () => 'Submit event must be attached to a submitter with "data-action" attribute with "apply" or "save" value',
51
+ });
48
52
  const mergedValues = formValueToWorkspace(value, currentWorkspace);
49
53
  match(meta)
50
54
  .with('apply', () => {
@@ -60,14 +64,7 @@ function GeneralSettings(props) {
60
64
  close();
61
65
  },
62
66
  });
63
- return (_jsx(form.AppForm, { children: _jsxs(Form, { layout: "inline", noValidate: true, onSubmit: (event) => {
64
- event.preventDefault();
65
- const nativeEvent = event.nativeEvent;
66
- const submitter = nativeEvent.submitter;
67
- assert(submitter, 'form event should have a submitter');
68
- const action = submitter.dataset.action;
69
- void form.handleSubmit(action);
70
- }, children: [_jsx(PreventImplicitSubmit, {}), _jsxs(GeneralSettingsErrorsOpenProvider, { form: form, children: [_jsx(GeneralSettingsDialogHeader, { form: form }), _jsx(GeneralSettingsDialogBody, { form: form, height: height }), _jsx(GeneralSettingsDialogFooter, { form: form, onCancel: close })] })] }) }));
67
+ return (_jsxs(AppForm, { form: form, layout: "inline", onSubmitMeta: (event) => event.nativeEvent.submitter?.dataset.action, children: [_jsx(PreventImplicitSubmit, {}), _jsxs(GeneralSettingsErrorsOpenProvider, { form: form, children: [_jsx(GeneralSettingsDialogHeader, { form: form }), _jsx(GeneralSettingsDialogBody, { form: form, height: height }), _jsx(GeneralSettingsDialogFooter, { form: form, onCancel: close })] })] }));
71
68
  }
72
69
  const InvisibleButton = styled.button `
73
70
  display: none;
@@ -1 +1 @@
1
- {"version":3,"file":"general_settings.js","sourceRoot":"","sources":["../../../../../src/component/modal/setting/tanstack_general_settings/general_settings.tsx"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"general_settings.js","sourceRoot":"","sources":["../../../../../src/component/modal/setting/tanstack_general_settings/general_settings.tsx"],"names":[],"mappings":"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"}
@@ -240,7 +240,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
240
240
  stroke?: string | undefined;
241
241
  strokeOpacity?: string | undefined;
242
242
  strokeWidth?: string | undefined;
243
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
243
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
244
244
  };
245
245
  };
246
246
  secondary: {
@@ -249,7 +249,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
249
249
  stroke?: string | undefined;
250
250
  strokeOpacity?: string | undefined;
251
251
  strokeWidth?: string | undefined;
252
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
252
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
253
253
  };
254
254
  };
255
255
  };
@@ -260,7 +260,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
260
260
  stroke?: string | undefined;
261
261
  strokeOpacity?: string | undefined;
262
262
  strokeWidth?: string | undefined;
263
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
263
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
264
264
  };
265
265
  };
266
266
  secondary: {
@@ -269,12 +269,12 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
269
269
  stroke?: string | undefined;
270
270
  strokeOpacity?: string | undefined;
271
271
  strokeWidth?: string | undefined;
272
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
272
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
273
273
  };
274
274
  };
275
275
  };
276
276
  } | undefined;
277
- }, any, any, import("@tanstack/react-form").FormAsyncValidateOrFn<{
277
+ }, any, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
278
278
  display: {
279
279
  general?: {
280
280
  experimentalFeatures?: {
@@ -513,7 +513,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
513
513
  stroke?: string | undefined;
514
514
  strokeOpacity?: string | undefined;
515
515
  strokeWidth?: string | undefined;
516
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
516
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
517
517
  };
518
518
  };
519
519
  secondary: {
@@ -522,7 +522,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
522
522
  stroke?: string | undefined;
523
523
  strokeOpacity?: string | undefined;
524
524
  strokeWidth?: string | undefined;
525
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
525
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
526
526
  };
527
527
  };
528
528
  };
@@ -533,7 +533,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
533
533
  stroke?: string | undefined;
534
534
  strokeOpacity?: string | undefined;
535
535
  strokeWidth?: string | undefined;
536
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
536
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
537
537
  };
538
538
  };
539
539
  secondary: {
@@ -542,12 +542,12 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
542
542
  stroke?: string | undefined;
543
543
  strokeOpacity?: string | undefined;
544
544
  strokeWidth?: string | undefined;
545
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
545
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
546
546
  };
547
547
  };
548
548
  };
549
549
  } | undefined;
550
- }> | undefined, any, import("@tanstack/react-form").FormAsyncValidateOrFn<{
550
+ }> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
551
551
  display: {
552
552
  general?: {
553
553
  experimentalFeatures?: {
@@ -786,7 +786,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
786
786
  stroke?: string | undefined;
787
787
  strokeOpacity?: string | undefined;
788
788
  strokeWidth?: string | undefined;
789
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
789
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
790
790
  };
791
791
  };
792
792
  secondary: {
@@ -795,7 +795,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
795
795
  stroke?: string | undefined;
796
796
  strokeOpacity?: string | undefined;
797
797
  strokeWidth?: string | undefined;
798
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
798
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
799
799
  };
800
800
  };
801
801
  };
@@ -806,7 +806,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
806
806
  stroke?: string | undefined;
807
807
  strokeOpacity?: string | undefined;
808
808
  strokeWidth?: string | undefined;
809
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
809
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
810
810
  };
811
811
  };
812
812
  secondary: {
@@ -815,12 +815,12 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
815
815
  stroke?: string | undefined;
816
816
  strokeOpacity?: string | undefined;
817
817
  strokeWidth?: string | undefined;
818
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
818
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
819
819
  };
820
820
  };
821
821
  };
822
822
  } | undefined;
823
- }> | undefined, any, import("@tanstack/react-form").FormAsyncValidateOrFn<{
823
+ }> | undefined, any, import("@tanstack/form-core").FormAsyncValidateOrFn<{
824
824
  display: {
825
825
  general?: {
826
826
  experimentalFeatures?: {
@@ -1059,7 +1059,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
1059
1059
  stroke?: string | undefined;
1060
1060
  strokeOpacity?: string | undefined;
1061
1061
  strokeWidth?: string | undefined;
1062
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
1062
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
1063
1063
  };
1064
1064
  };
1065
1065
  secondary: {
@@ -1068,7 +1068,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
1068
1068
  stroke?: string | undefined;
1069
1069
  strokeOpacity?: string | undefined;
1070
1070
  strokeWidth?: string | undefined;
1071
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
1071
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
1072
1072
  };
1073
1073
  };
1074
1074
  };
@@ -1079,7 +1079,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
1079
1079
  stroke?: string | undefined;
1080
1080
  strokeOpacity?: string | undefined;
1081
1081
  strokeWidth?: string | undefined;
1082
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
1082
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
1083
1083
  };
1084
1084
  };
1085
1085
  secondary: {
@@ -1088,7 +1088,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
1088
1088
  stroke?: string | undefined;
1089
1089
  strokeOpacity?: string | undefined;
1090
1090
  strokeWidth?: string | undefined;
1091
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
1091
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
1092
1092
  };
1093
1093
  };
1094
1094
  };
@@ -1741,7 +1741,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
1741
1741
  }>>;
1742
1742
  }, import("zod/v4/core").$strip>>;
1743
1743
  }, import("zod/v4/core").$strip>;
1744
- }, import("zod/v4/core").$strip>, import("@tanstack/react-form").FormAsyncValidateOrFn<{
1744
+ }, import("zod/v4/core").$strip>, import("@tanstack/form-core").FormAsyncValidateOrFn<{
1745
1745
  display: {
1746
1746
  general?: {
1747
1747
  experimentalFeatures?: {
@@ -1980,7 +1980,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
1980
1980
  stroke?: string | undefined;
1981
1981
  strokeOpacity?: string | undefined;
1982
1982
  strokeWidth?: string | undefined;
1983
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
1983
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
1984
1984
  };
1985
1985
  };
1986
1986
  secondary: {
@@ -1989,7 +1989,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
1989
1989
  stroke?: string | undefined;
1990
1990
  strokeOpacity?: string | undefined;
1991
1991
  strokeWidth?: string | undefined;
1992
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
1992
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
1993
1993
  };
1994
1994
  };
1995
1995
  };
@@ -2000,7 +2000,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
2000
2000
  stroke?: string | undefined;
2001
2001
  strokeOpacity?: string | undefined;
2002
2002
  strokeWidth?: string | undefined;
2003
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
2003
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
2004
2004
  };
2005
2005
  };
2006
2006
  secondary: {
@@ -2009,12 +2009,12 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
2009
2009
  stroke?: string | undefined;
2010
2010
  strokeOpacity?: string | undefined;
2011
2011
  strokeWidth?: string | undefined;
2012
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
2012
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
2013
2013
  };
2014
2014
  };
2015
2015
  };
2016
2016
  } | undefined;
2017
- }> | undefined, import("@tanstack/react-form").FormAsyncValidateOrFn<{
2017
+ }> | undefined, import("@tanstack/form-core").FormAsyncValidateOrFn<{
2018
2018
  display: {
2019
2019
  general?: {
2020
2020
  experimentalFeatures?: {
@@ -2253,7 +2253,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
2253
2253
  stroke?: string | undefined;
2254
2254
  strokeOpacity?: string | undefined;
2255
2255
  strokeWidth?: string | undefined;
2256
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
2256
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
2257
2257
  };
2258
2258
  };
2259
2259
  secondary: {
@@ -2262,7 +2262,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
2262
2262
  stroke?: string | undefined;
2263
2263
  strokeOpacity?: string | undefined;
2264
2264
  strokeWidth?: string | undefined;
2265
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
2265
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
2266
2266
  };
2267
2267
  };
2268
2268
  };
@@ -2273,7 +2273,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
2273
2273
  stroke?: string | undefined;
2274
2274
  strokeOpacity?: string | undefined;
2275
2275
  strokeWidth?: string | undefined;
2276
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
2276
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
2277
2277
  };
2278
2278
  };
2279
2279
  secondary: {
@@ -2282,7 +2282,7 @@ export declare const GeneralSettingsDialogBody: import("react").FunctionComponen
2282
2282
  stroke?: string | undefined;
2283
2283
  strokeOpacity?: string | undefined;
2284
2284
  strokeWidth?: string | undefined;
2285
- strokeDasharray?: "dashed" | "dotted" | "solid" | "dashed-dot" | undefined;
2285
+ strokeDasharray?: "solid" | "dashed" | "dotted" | "dashed-dot" | undefined;
2286
2286
  };
2287
2287
  };
2288
2288
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Classes, Tab, Tabs as BPTabs } from '@blueprintjs/core';
3
3
  import styled from '@emotion/styled';
4
- import { useStore } from '@tanstack/react-form';
4
+ import { useSelector } from '@tanstack/react-store';
5
5
  import { withForm } from 'react-science/ui';
6
6
  import { StyledDialogBody } from '../../../elements/StyledDialogBody.js';
7
7
  import { GeneralSettingsErrorRenderer } from "./errors/renderer.js";
@@ -47,7 +47,7 @@ export const GeneralSettingsDialogBody = withForm({
47
47
  height: undefined,
48
48
  },
49
49
  render: function GeneralSettingsDialogBody({ height, form }) {
50
- const isExperimentalEnabled = useStore(form.store, (state) => state.values.display.general?.experimentalFeatures?.display ?? false);
50
+ const isExperimentalEnabled = useSelector(form.store, (state) => state.values.display.general?.experimentalFeatures?.display ?? false);
51
51
  return (_jsxs(StyledDialogBody, { children: [_jsx(Div, { height: height, children: _jsxs(Tabs, { vertical: true, children: [_jsx(Tab, { title: "General", id: "general", panel: _jsx(GeneralTab, { form: form }) }), _jsx(Tab, { title: "Axes", id: "axis", panel: _jsx(AxisTab, { form: form }) }), _jsx(Tab, { title: "Nuclei", id: "nuclei", panel: _jsx(NucleiTab, { form: form }) }), _jsx(Tab, { id: "panels", title: "Panels", panel: _jsx(PanelsTab, { form: form }) }), _jsx(Tab, { id: "tools", title: "Tools", panel: _jsx(ToolsTab, { form: form }) }), _jsx(Tab, { title: "Databases", id: "databases", panel: _jsx(DatabaseTab, { form: form }) }), _jsx(Tab, { id: "import-filters", title: "Import filters", panel: _jsx(ImportFiltersTab, { form: form }) }), _jsx(Tab, { id: "title-block", title: "Title block", panel: _jsx(TitleBlockTab, { form: form }) }), _jsx(Tab, { title: "Auto processing", id: "on-load-processing", panel: _jsx(AutoProcessingTab, { form: form }) }), _jsx(Tab, { title: "Spectra colors", id: "spectra-colors", panel: _jsx(SpectraColorsTab, { form: form }) }), _jsx(Tab, { title: "Spectra label", id: "spectra-label", panel: _jsx(SpectraLabelTab, { form: form }) }), isExperimentalEnabled && (_jsx(Tab, { id: "external-apis", title: "External APIs", panel: _jsx(ExternalApiTab, { form: form }) })), _jsx(Tab, { id: "export", title: "Export", panel: _jsx(ExportTab, { form: form }) })] }) }), _jsx(GeneralSettingsErrorRenderer, { form: form })] }));
52
52
  },
53
53
  });