Update integrated mermaid-js version from 11.16.0 to 12.4.1

Hello!

I do a lot of planning and documentation in the rich text documents and one issue I encounter is that I’m constantly stepping out of Fibery to render more complex graphs due to the lack of elk layout support. Version 12+ ships elk as the default renderer and perhaps that’s why it hasn’t been updated to the latest package?

If possible I’d also love to see:

  • A small delay and debounce added while editing the graph code
  • The previous render be retained until a new render succeeds

Both of these additional requests are aimed at reducing the visual thrashing while editing the graph code, but may also help to prevent a weird error state the mermaid graph functionality can get into where a page/app reload is required.

Thank you for your time and keep up the great work!

Matt