build: 提交 dist 构建产物(v0.4.3 完整 5 格式 + sourcemap + 类型声明)
CI / test-parser (push) Successful in 9m25s
CI / test-core (push) Successful in 9m33s
CI / test-rest (push) Successful in 9m27s
CI / e2e (push) Successful in 9m43s
CI / verify (18.x) (push) Successful in 9m52s
CI / verify (20.x) (push) Successful in 9m52s
CI / verify (24.x) (push) Successful in 9m45s

This commit is contained in:
2026-08-20 20:43:07 +08:00
parent d6a618af5d
commit 67f234676c
8 changed files with 831 additions and 362 deletions
+14 -1
View File
@@ -19,6 +19,8 @@ interface EditorLike {
_pushHistory?: () => void;
_render?: () => void;
_updateWordCount?: () => void;
/** 程序化编辑统一刷新管线(渲染+行号+字数+大纲+事件+钩子) */
_afterProgrammaticEdit?: (oldValue: string) => void;
insert?: (text: string, opts?: {
replace?: boolean;
}) => unknown;
@@ -359,6 +361,7 @@ declare class MarkdownEditor {
_i18nCtx: InstanceI18n;
_floatingToolbar: HTMLElement | null;
_floatingEnabled: boolean;
_floatMirror: HTMLElement | null;
_wrapSelection: (before: string, after: string) => void;
_toggleLinePrefix: (prefix: string) => void;
_insertBlock: (text: string) => void;
@@ -371,6 +374,10 @@ declare class MarkdownEditor {
isFloatingToolbar: () => boolean;
_buildFloatingToolbar: () => void;
_hideFloatingToolbar: () => void;
_measureSelectionAnchor: () => {
x: number;
y: number;
} | null;
registerContextMenu: (items: any[]) => this;
_bindContextMenu: () => void;
_showContextMenu: (e: MouseEvent) => void;
@@ -399,6 +406,12 @@ declare class MarkdownEditor {
_handleBracketAutoClose(e: KeyboardEvent): void;
_bindDragDrop(): void;
_scheduleHistory(): void;
/**
* 程序化编辑路径(命令 / 快捷键 / 插件 / API 直改 textarea)的统一刷新管线。
* 此前 8 条路径的 预览/行号/字数/大纲 刷新与事件发射参差不齐,
* 现统一为:渲染 + 行号 + 字数 + 大纲 + input/change 事件 + 回调 + before/afterChange 钩子。
*/
_afterProgrammaticEdit(oldValue: string): void;
_pushHistory(): void;
undo(): this;
redo(): this;
@@ -585,7 +598,7 @@ declare const animationUtils: {
destroy(): void;
};
declare const VERSION = "0.4.2";
declare const VERSION = "0.4.3";
declare function create(container: string | HTMLElement, options?: EditorOptions): MarkdownEditor;
declare function use(plugin: string | any, options?: any): typeof api;
declare function on(name: string, fn: (editor: MarkdownEditor) => void): () => void;