ui: full-screen diagram preview that zooms around what is on screen, inert diagrams (#32591)
* ui: keep Pele diagrams inert
Pele turns a node with `click ... href` into a live link, where Mermaid's
strict security level left diagrams without links. Unwrap every link in
Pele's output, keeping its children, so the inline block, the live-preview
editor, the preview dialog and the downloaded svg stay inert. The Diagrams
story's flowchart now carries click directives and its play test checks
that no link or href is left.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: open diagrams full screen, zoom around what is on screen
The diagram preview dialog fills the window on every device. The preview
places the diagram from its top left corner, so a zoom keeps a screen point
fixed: the wheel and a trackpad pinch zoom around the pointer, the buttons
and +/- keys around the middle of the screen, wherever the diagram has been
panned to. Two-finger pinch, double-click and arrow keys work too. The
diagram opens fitted and keeps fitting until panned or zoomed; Reset view
fits it again.
Adds MermaidPreview and DialogMermaidPreview stories with play tests and a
unit test for the zoom math.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: add a diagrams trace to the demo fixtures
Assisted-by: Claude (Opus 5.5 Medium)