Skip to content

feat: update production - #312

Open
hamed-musallam wants to merge 19 commits into
mainfrom
development
Open

hamed-musallam wants to merge 19 commits into
mainfrom
development

Conversation

@hamed-musallam

Copy link
Copy Markdown
Collaborator

Add support for loading spectra directly from external repositories by passing a spectra=<source>:<id> query param (e.g. spectra=nmrxiv:s150),

Currently only supported nmrxiv as a source

Add support for loading spectra directly from external repositories by
passing a `spectra=<source>:<id>` query param (e.g. `spectra=nmrxiv:s150`),

Currently only supported `nmrxiv` as a source
Update NMRium core packages and related dependencies to support NMRium v2.6.0.
@hamed-musallam hamed-musallam changed the title feat: load spectra from external sources via spectra query param feat: update production Aug 27, 2026
vcnainala and others added 13 commits October 3, 2026 17:56
Allow embedding hosts to highlight a peak by id or nucleus+ppm over the
existing nmr-wrapper:action-request channel, without reloading spectrum state.
Avoid import() return types, fix import order, and stop updating refs during render.
…uest

feat: add highlightPeak action-request for host-driven peak highlighting
…tion-request"

This reverts commit 2193ddf, reversing
changes made to ffb97b5.
revert: remove highlightPeak bridge pending controllable NMRium API
chore: update eslint to version 10

chore: remove unused Babel

chore: block TypeScript 7 updates
… API

Add highlightPeak, highlightSignal and clearHighlight action requests on
top of NMRium's public highlight / onHighlightChange props instead of
aliasing its private highlight module.

highlightSignal resolves a 1D signal by id or nucleus + delta and also
highlights its parent range and the peaks inside that range. Host-driven
highlights use an UNKNOWN source so NMRium's Delete/Backspace handler
cannot delete the highlighted peak or signal.
Switch from the controlled highlight / onHighlightChange API (#4402) to
the additive highlightedIds prop from cheminfo/nmrium#4405. Host
highlights no longer touch NMRium's internal highlight state, so the
sourceData workaround and the permanent option are gone.

Drop the embedding settings from the QM demo fixture: they hide NMRium's
panels, which the demo and e2e tests rely on.
Per review, the wrapper no longer stores NMRium's state or resolves
peaks, ranges or signals. Hosts look up the ids in their own data and
send them; the wrapper forwards them to NMRium's highlightedIds prop.

Replace highlightPeak and highlightSignal with a single
highlight { ids: string[] } action and drop the automatic tab switch;
hosts send selectTab first. Invalid ids emit nmr-wrapper:error.
Firefox opens the QM fixture on the 13C tab and Chromium on 1H, so the
1H highlight tests found nothing to highlight in Firefox. Select 1H
first, and start the selectTab test on 1H so it switches tabs in every
browser.
feat: add highlight action-request that forwards ids to NMRium's highlightedIds

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants