release: v0.4.4 — 升级 MetonaEditor 0.2.4 & MetonaToast 0.2.1

依赖升级:
- @metona-team/metona-editor: 0.1.14 → 0.2.4
- @metona-team/metona-toast: 0.1.2 → 0.2.1(精确版本)

Editor.tsx 适配 v0.2.4:
- 移除 ExtendedEditorOptions 类型 hack(lineNumbers/autoBrackets 已原生支持)
- 本地声明 EditMode/ThemeName 类型(v0.2.4 不再命名导出)
- 适配 onModeChange 签名 (mode: EditMode → mode: string)
- 适配 onLinkClick 签名 ({href}) → (href, text, editor)
- 新增 syncScroll: true 同步滚动
- 新增 wordWrap: true 自动换行
- 新增 outline: false(保留自研 OutlinePanel)
- 新增 historyLimit: 100 / historyDebounce: 400
- 新增 shortcutHelp 预设插件(按 ? 弹出快捷键面板)
- 新增 onLinkClick 回调(通过 openExternal 安全打开链接)
- 新增 onFocus / onBlur 回调(预留扩展点)

toast.ts 适配 v0.2.1:
- 安装 keyboard 插件(ESC 关闭所有 Toast)
- 安装 accessibility 插件(屏幕阅读器朗读)
- 新增 width: 360 配置
This commit is contained in:
thzxx
2026-07-25 16:23:59 +08:00
parent 8bbbb7ff70
commit 2e7baa1073
8 changed files with 531 additions and 940 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "marklite",
"version": "0.4.3",
"version": "0.4.4",
"description": "Lightweight Markdown Editor for Windows",
"main": "./dist/main/index.js",
"scripts": {
@@ -28,8 +28,8 @@
"author": "MarkLite",
"license": "MIT",
"dependencies": {
"@metona-team/metona-editor": "0.1.14",
"@metona-team/metona-toast": "^0.1.2",
"@metona-team/metona-editor": "0.2.4",
"@metona-team/metona-toast": "0.2.1",
"dexie": "^4.0.11",
"nanoid": "^5.1.5",
"react": "^18.3.1",