v3.11.0

p-e-w/hereticv3.11.0Apr 9, 2025by Vanessa219

AI Summary

This release introduces new callbacks for upload cancellation and selection, along with an upgrade to Mermaid 11.6.0. It also addresses several UI alignment and interaction bugs to improve the overall editing experience.

Key Highlights

  • Added `options.upload.cancel` and `unSelect` callbacks
  • Upgraded Mermaid to version 11.6.0
  • Fixed code line number alignment issues
  • Fixed copy button interaction to prevent expanding the editor area

Breaking Changes

  • Initialization behavior changed: calling `destroy` immediately after initialization no longer triggers the `after` callback.

New Features

  • Added `options.upload.cancel` callback
  • Added `unSelect` callback

Full Release Notes

* [添加 `options.upload.cancel` 回调](https://github.com/Vanessa219/vditor/issues/1791) `引入特性`
* [修复代码行号对不齐](https://github.com/Vanessa219/vditor/issues/1786) `修复缺陷`
* [mermaid 升级至 11.6.0](https://github.com/Vanessa219/vditor/issues/1140) `开发重构`
* [初始化后立即 `destroy` 不再进行 `after` 的回调](https://github.com/Vanessa219/vditor/issues/1790) `改进功能`
* [点击复制按钮不展开编辑区域](https://github.com/Vanessa219/vditor/issues/1768) `改进功能`
* [添加 `unSelect` 回调](https://github.com/Vanessa219/vditor/pull/1775) `改进功能`