diff --git a/static/vditor/dist/index.d.ts b/static/vditor/dist/index.d.ts deleted file mode 100644 index e0b3c56..0000000 --- a/static/vditor/dist/index.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -/// -import VditorMethod from "./method"; -declare class Vditor extends VditorMethod { - readonly version: string; - vditor: IVditor; - /** - * @param id 要挂载 Vditor 的元素或者元素 ID。 - * @param options Vditor 参数 - */ - constructor(id: string | HTMLElement, options?: IOptions); - /** 设置主题 */ - setTheme(theme: "dark" | "classic", contentTheme?: string, codeTheme?: string, contentThemePath?: string): void; - /** 获取 Markdown 内容 */ - getValue(): string; - /** 获取编辑器当前编辑模式 */ - getCurrentMode(): "wysiwyg" | "sv" | "ir"; - /** 聚焦到编辑器 */ - focus(): void; - /** 让编辑器失焦 */ - blur(): void; - /** 禁用编辑器 */ - disabled(): void; - /** 解除编辑器禁用 */ - enable(): void; - /** 返回选中的字符串 */ - getSelection(): string; - /** 设置预览区域内容 */ - renderPreview(value?: string): void; - /** 获取焦点位置 */ - getCursorPosition(): { - left: number; - top: number; - }; - /** 上传是否还在进行中 */ - isUploading(): boolean; - /** 清除缓存 */ - clearCache(): void; - /** 禁用缓存 */ - disabledCache(): void; - /** 启用缓存 */ - enableCache(): void; - /** HTML 转 md */ - html2md(value: string): string; - /** 获取 HTML */ - getHTML(): string; - /** 消息提示。time 为 0 将一直显示 */ - tip(text: string, time?: number): void; - /** 设置预览模式 */ - setPreviewMode(mode: "both" | "editor"): void; - /** 删除选中内容 */ - deleteValue(): void; - /** 更新选中内容 */ - updateValue(value: string): void; - /** 在焦点处插入内容,并默认进行 Markdown 渲染 */ - insertValue(value: string, render?: boolean): void; - /** 设置编辑器内容 */ - setValue(markdown: string, clearStack?: boolean): void; - /** 清空 undo & redo 栈 */ - clearStack(): void; - /** 销毁编辑器 */ - destroy(): void; -} -export default Vditor; diff --git a/static/vditor/dist/method.d.ts b/static/vditor/dist/method.d.ts deleted file mode 100644 index e3849e8..0000000 --- a/static/vditor/dist/method.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/// -declare class Vditor { - /** 为 element 中的代码块添加复制按钮 */ - static codeRender: (element: HTMLElement, lang?: "en_US" | "ja_JP" | "ko_KR" | "zh_CN") => void; - /** 对 graphviz 进行渲染 */ - static graphvizRender: (element: HTMLElement, cdn?: string) => void; - /** 为 element 中的代码块进行高亮渲染 */ - static highlightRender: (hljsOption?: IHljs, element?: HTMLElement | Document, cdn?: string) => void; - /** 对数学公式进行渲染 */ - static mathRender: (element: HTMLElement, options?: { - cdn?: string; - math?: IMath; - }) => void; - /** 转换 element 中 class 为 className 的元素为流程图/时序图/甘特图 */ - static mermaidRender: (element: HTMLElement, className?: string, cdn?: string) => void; - /** 图表渲染 */ - static chartRender: (element?: HTMLElement | Document, cdn?: string) => void; - /** 五线谱渲染 */ - static abcRender: (element?: HTMLElement | Document, cdn?: string) => void; - /** 脑图渲染 */ - static mindmapRender: (element?: HTMLElement | Document, cdn?: string) => void; - /** 大纲渲染 */ - static outlineRender: (contentElement: HTMLElement, targetElement: Element, vditor?: IVditor) => void; - /** 为[特定链接](https://github.com/Vanessa219/vditor/issues/7)分别渲染为视频、音频、嵌入的 iframe */ - static mediaRender: (element: HTMLElement) => void; - /** 对选中的文字进行阅读 */ - static speechRender: (element: HTMLElement, lang?: "en_US" | "ja_JP" | "ko_KR" | "zh_CN") => void; - /** 对图片进行懒加载 */ - static lazyLoadImageRender: (element?: HTMLElement | Document) => boolean; - /** Markdown 文本转换为 HTML,该方法需使用[异步编程](https://ld246.com/article/1546828434083?r=Vaness) */ - static md2html: (mdText: string, options?: IPreviewOptions) => Promise; - /** 页面 Markdown 文章渲染 */ - static preview: (previewElement: HTMLDivElement, markdown: string, options?: IPreviewOptions) => Promise; - /** 设置代码主题 */ - static setCodeTheme: (codeTheme: string, cdn?: string) => void; - /** 设置内容主题 */ - static setContentTheme: (contentTheme: string, path: string) => void; -} -export default Vditor; diff --git a/static/vditor/dist/ts/constants.d.ts b/static/vditor/dist/ts/constants.d.ts deleted file mode 100644 index 604a8c8..0000000 --- a/static/vditor/dist/ts/constants.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/// -declare const _VDITOR_VERSION: string; -export { _VDITOR_VERSION as VDITOR_VERSION }; -export declare abstract class Constants { - static readonly ZWSP: string; - static readonly MOBILE_WIDTH: number; - static readonly CLASS_MENU_DISABLED: string; - static readonly EDIT_TOOLBARS: string[]; - static readonly CODE_THEME: string[]; - static readonly CODE_LANGUAGES: string[]; - static readonly CDN: string; - static readonly MARKDOWN_OPTIONS: { - autoSpace: boolean; - chinesePunct: boolean; - codeBlockPreview: boolean; - fixTermTypo: boolean; - footnotes: boolean; - linkBase: string; - listStyle: boolean; - mark: boolean; - paragraphBeginningSpace: boolean; - sanitize: boolean; - toc: boolean; - }; - static readonly HLJS_OPTIONS: { - enable: boolean; - lineNumber: boolean; - style: string; - }; - static readonly MATH_OPTIONS: IMath; - static readonly THEME_OPTIONS: { - current: string; - list: { - "ant-design": string; - dark: string; - light: string; - wechat: string; - }; - path: string; - }; -} diff --git a/static/vditor/dist/ts/devtools/index.d.ts b/static/vditor/dist/ts/devtools/index.d.ts deleted file mode 100644 index 8326863..0000000 --- a/static/vditor/dist/ts/devtools/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// -export declare class DevTools { - element: HTMLDivElement; - private ASTChart; - constructor(); - renderEchart(vditor: IVditor): void; -} diff --git a/static/vditor/dist/ts/export/index.d.ts b/static/vditor/dist/ts/export/index.d.ts deleted file mode 100644 index 04454a8..0000000 --- a/static/vditor/dist/ts/export/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -export declare const download: (vditor: IVditor, content: string, filename: string) => void; -export declare const exportMarkdown: (vditor: IVditor) => void; -export declare const exportPDF: (vditor: IVditor) => void; -export declare const exportHTML: (vditor: IVditor) => void; diff --git a/static/vditor/dist/ts/hint/index.d.ts b/static/vditor/dist/ts/hint/index.d.ts deleted file mode 100644 index 86da891..0000000 --- a/static/vditor/dist/ts/hint/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -export declare class Hint { - timeId: number; - element: HTMLDivElement; - recentLanguage: string; - private splitChar; - private lastIndex; - constructor(hintExtends: IHintExtend[]); - render(vditor: IVditor): void; - genHTML(data: IHintData[], key: string, vditor: IVditor): void; - fillEmoji: (element: HTMLElement, vditor: IVditor) => void; - select(event: KeyboardEvent, vditor: IVditor): boolean; - private getKey; -} diff --git a/static/vditor/dist/ts/i18n/index.d.ts b/static/vditor/dist/ts/i18n/index.d.ts deleted file mode 100644 index d017bbf..0000000 --- a/static/vditor/dist/ts/i18n/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const i18n: II18n; diff --git a/static/vditor/dist/ts/ir/expandMarker.d.ts b/static/vditor/dist/ts/ir/expandMarker.d.ts deleted file mode 100644 index 727d9a6..0000000 --- a/static/vditor/dist/ts/ir/expandMarker.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const expandMarker: (range: Range, vditor: IVditor) => void; diff --git a/static/vditor/dist/ts/ir/highlightToolbarIR.d.ts b/static/vditor/dist/ts/ir/highlightToolbarIR.d.ts deleted file mode 100644 index e61daa2..0000000 --- a/static/vditor/dist/ts/ir/highlightToolbarIR.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const highlightToolbarIR: (vditor: IVditor) => void; diff --git a/static/vditor/dist/ts/ir/index.d.ts b/static/vditor/dist/ts/ir/index.d.ts deleted file mode 100644 index eb87809..0000000 --- a/static/vditor/dist/ts/ir/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// -declare class IR { - element: HTMLPreElement; - processTimeoutId: number; - hlToolbarTimeoutId: number; - composingLock: boolean; - preventInput: boolean; - constructor(vditor: IVditor); - private copy; - private bindEvent; -} -export { IR }; diff --git a/static/vditor/dist/ts/ir/input.d.ts b/static/vditor/dist/ts/ir/input.d.ts deleted file mode 100644 index 4cb97e3..0000000 --- a/static/vditor/dist/ts/ir/input.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const input: (vditor: IVditor, range: Range, ignoreSpace?: boolean, event?: InputEvent) => void; diff --git a/static/vditor/dist/ts/ir/process.d.ts b/static/vditor/dist/ts/ir/process.d.ts deleted file mode 100644 index 02e2f78..0000000 --- a/static/vditor/dist/ts/ir/process.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// -export declare const processHint: (vditor: IVditor) => void; -export declare const processAfterRender: (vditor: IVditor, options?: { - enableAddUndoStack: boolean; - enableHint: boolean; - enableInput: boolean; -}) => void; -export declare const processHeading: (vditor: IVditor, value: string) => void; -export declare const processToolbar: (vditor: IVditor, actionBtn: Element, prefix: string, suffix: string) => void; diff --git a/static/vditor/dist/ts/ir/processKeydown.d.ts b/static/vditor/dist/ts/ir/processKeydown.d.ts deleted file mode 100644 index ce7213c..0000000 --- a/static/vditor/dist/ts/ir/processKeydown.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const processKeydown: (vditor: IVditor, event: KeyboardEvent) => boolean; diff --git a/static/vditor/dist/ts/markdown/abcRender.d.ts b/static/vditor/dist/ts/markdown/abcRender.d.ts deleted file mode 100644 index 144f211..0000000 --- a/static/vditor/dist/ts/markdown/abcRender.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const abcRender: (element?: (HTMLElement | Document), cdn?: string) => void; diff --git a/static/vditor/dist/ts/markdown/anchorRender.d.ts b/static/vditor/dist/ts/markdown/anchorRender.d.ts deleted file mode 100644 index 4a88588..0000000 --- a/static/vditor/dist/ts/markdown/anchorRender.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const anchorRender: (type: number) => void; diff --git a/static/vditor/dist/ts/markdown/chartRender.d.ts b/static/vditor/dist/ts/markdown/chartRender.d.ts deleted file mode 100644 index 66d1349..0000000 --- a/static/vditor/dist/ts/markdown/chartRender.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const chartRender: (element?: (HTMLElement | Document), cdn?: string) => void; diff --git a/static/vditor/dist/ts/markdown/codeRender.d.ts b/static/vditor/dist/ts/markdown/codeRender.d.ts deleted file mode 100644 index 3f2473d..0000000 --- a/static/vditor/dist/ts/markdown/codeRender.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const codeRender: (element: HTMLElement, lang?: keyof II18n) => void; diff --git a/static/vditor/dist/ts/markdown/getHTML.d.ts b/static/vditor/dist/ts/markdown/getHTML.d.ts deleted file mode 100644 index 1177aea..0000000 --- a/static/vditor/dist/ts/markdown/getHTML.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const getHTML: (vditor: IVditor) => string; diff --git a/static/vditor/dist/ts/markdown/getMarkdown.d.ts b/static/vditor/dist/ts/markdown/getMarkdown.d.ts deleted file mode 100644 index 25e7d9a..0000000 --- a/static/vditor/dist/ts/markdown/getMarkdown.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const getMarkdown: (vditor: IVditor) => string; diff --git a/static/vditor/dist/ts/markdown/graphvizRender.d.ts b/static/vditor/dist/ts/markdown/graphvizRender.d.ts deleted file mode 100644 index 9a92dac..0000000 --- a/static/vditor/dist/ts/markdown/graphvizRender.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const graphvizRender: (element: HTMLElement, cdn?: string) => void; diff --git a/static/vditor/dist/ts/markdown/highlightRender.d.ts b/static/vditor/dist/ts/markdown/highlightRender.d.ts deleted file mode 100644 index e97b0a1..0000000 --- a/static/vditor/dist/ts/markdown/highlightRender.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const highlightRender: (hljsOption?: IHljs, element?: HTMLElement | Document, cdn?: string) => void; diff --git a/static/vditor/dist/ts/markdown/lazyLoadImageRender.d.ts b/static/vditor/dist/ts/markdown/lazyLoadImageRender.d.ts deleted file mode 100644 index 28cccac..0000000 --- a/static/vditor/dist/ts/markdown/lazyLoadImageRender.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -declare global { - interface Window { - vditorImageIntersectionObserver: IntersectionObserver; - } -} -export declare const lazyLoadImageRender: (element?: (HTMLElement | Document)) => boolean; diff --git a/static/vditor/dist/ts/markdown/mathRender.d.ts b/static/vditor/dist/ts/markdown/mathRender.d.ts deleted file mode 100644 index 6d992eb..0000000 --- a/static/vditor/dist/ts/markdown/mathRender.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/// -declare global { - interface Window { - MathJax: any; - } -} -export declare const mathRender: (element: HTMLElement, options?: { - cdn?: string; - math?: IMath; -}) => void; diff --git a/static/vditor/dist/ts/markdown/mediaRender.d.ts b/static/vditor/dist/ts/markdown/mediaRender.d.ts deleted file mode 100644 index 7751ab0..0000000 --- a/static/vditor/dist/ts/markdown/mediaRender.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const mediaRender: (element: HTMLElement) => void; diff --git a/static/vditor/dist/ts/markdown/mermaidRender.d.ts b/static/vditor/dist/ts/markdown/mermaidRender.d.ts deleted file mode 100644 index 9d10ea1..0000000 --- a/static/vditor/dist/ts/markdown/mermaidRender.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const mermaidRender: (element: HTMLElement, className?: string, cdn?: string) => void; diff --git a/static/vditor/dist/ts/markdown/mindmapRender.d.ts b/static/vditor/dist/ts/markdown/mindmapRender.d.ts deleted file mode 100644 index 4918f1b..0000000 --- a/static/vditor/dist/ts/markdown/mindmapRender.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const mindmapRender: (element?: (HTMLElement | Document), cdn?: string) => void; diff --git a/static/vditor/dist/ts/markdown/outlineRender.d.ts b/static/vditor/dist/ts/markdown/outlineRender.d.ts deleted file mode 100644 index 6cbd7e7..0000000 --- a/static/vditor/dist/ts/markdown/outlineRender.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const outlineRender: (contentElement: HTMLElement, targetElement: Element, vditor?: IVditor) => void; diff --git a/static/vditor/dist/ts/markdown/previewRender.d.ts b/static/vditor/dist/ts/markdown/previewRender.d.ts deleted file mode 100644 index b6cdea6..0000000 --- a/static/vditor/dist/ts/markdown/previewRender.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -export declare const md2html: (mdText: string, options?: IPreviewOptions) => Promise; -export declare const previewRender: (previewElement: HTMLDivElement, markdown: string, options?: IPreviewOptions) => Promise; diff --git a/static/vditor/dist/ts/markdown/setLute.d.ts b/static/vditor/dist/ts/markdown/setLute.d.ts deleted file mode 100644 index cf0dd59..0000000 --- a/static/vditor/dist/ts/markdown/setLute.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const setLute: (options: ILuteOptions) => Lute; diff --git a/static/vditor/dist/ts/markdown/speechRender.d.ts b/static/vditor/dist/ts/markdown/speechRender.d.ts deleted file mode 100644 index ff46028..0000000 --- a/static/vditor/dist/ts/markdown/speechRender.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// -declare global { - interface Window { - vditorSpeechRange: Range; - } -} -export declare const speechRender: (element: HTMLElement, lang?: keyof II18n) => void; diff --git a/static/vditor/dist/ts/outline/index.d.ts b/static/vditor/dist/ts/outline/index.d.ts deleted file mode 100644 index e4aae14..0000000 --- a/static/vditor/dist/ts/outline/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// -export declare class Outline { - element: HTMLElement; - constructor(outlineLabel: string); - render(vditor: IVditor): void; - toggle(vditor: IVditor, show?: boolean): void; -} diff --git a/static/vditor/dist/ts/preview/index.d.ts b/static/vditor/dist/ts/preview/index.d.ts deleted file mode 100644 index 224b844..0000000 --- a/static/vditor/dist/ts/preview/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// -export declare class Preview { - element: HTMLElement; - private mdTimeoutId; - constructor(vditor: IVditor); - render(vditor: IVditor, value?: string): void; - private afterRender; - private copyToX; -} diff --git a/static/vditor/dist/ts/resize/index.d.ts b/static/vditor/dist/ts/resize/index.d.ts deleted file mode 100644 index c629c04..0000000 --- a/static/vditor/dist/ts/resize/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -export declare class Resize { - element: HTMLElement; - constructor(vditor: IVditor); - private bindEvent; -} diff --git a/static/vditor/dist/ts/sv/index.d.ts b/static/vditor/dist/ts/sv/index.d.ts deleted file mode 100644 index 10565b3..0000000 --- a/static/vditor/dist/ts/sv/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// -declare class Editor { - element: HTMLPreElement; - composingLock: boolean; - processTimeoutId: number; - hlToolbarTimeoutId: number; - preventInput: boolean; - constructor(vditor: IVditor); - private copy; - private bindEvent; -} -export { Editor }; diff --git a/static/vditor/dist/ts/sv/inputEvent.d.ts b/static/vditor/dist/ts/sv/inputEvent.d.ts deleted file mode 100644 index 785051a..0000000 --- a/static/vditor/dist/ts/sv/inputEvent.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const inputEvent: (vditor: IVditor, event?: InputEvent) => void; diff --git a/static/vditor/dist/ts/sv/process.d.ts b/static/vditor/dist/ts/sv/process.d.ts deleted file mode 100644 index 29b0021..0000000 --- a/static/vditor/dist/ts/sv/process.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// -export declare const processPaste: (vditor: IVditor, text: string) => void; -export declare const getSideByType: (spanNode: Node, type: string, isPrevious?: boolean) => false | Element; -export declare const processSpinVditorSVDOM: (html: string, vditor: IVditor) => string; -export declare const processPreviousMarkers: (spanElement: HTMLElement) => string; -export declare const processAfterRender: (vditor: IVditor, options?: { - enableAddUndoStack: boolean; - enableHint: boolean; - enableInput: boolean; -}) => void; -export declare const processHeading: (vditor: IVditor, value: string) => void; -export declare const processToolbar: (vditor: IVditor, actionBtn: Element, prefix: string, suffix: string) => void; diff --git a/static/vditor/dist/ts/sv/processKeydown.d.ts b/static/vditor/dist/ts/sv/processKeydown.d.ts deleted file mode 100644 index ce7213c..0000000 --- a/static/vditor/dist/ts/sv/processKeydown.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const processKeydown: (vditor: IVditor, event: KeyboardEvent) => boolean; diff --git a/static/vditor/dist/ts/tip/index.d.ts b/static/vditor/dist/ts/tip/index.d.ts deleted file mode 100644 index c80815b..0000000 --- a/static/vditor/dist/ts/tip/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare class Tip { - element: HTMLElement; - constructor(); - show(text: string, time?: number): void; - hide(): void; -} diff --git a/static/vditor/dist/ts/toolbar/Both.d.ts b/static/vditor/dist/ts/toolbar/Both.d.ts deleted file mode 100644 index df608e4..0000000 --- a/static/vditor/dist/ts/toolbar/Both.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Both extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/Br.d.ts b/static/vditor/dist/ts/toolbar/Br.d.ts deleted file mode 100644 index da89b78..0000000 --- a/static/vditor/dist/ts/toolbar/Br.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare class Br { - element: HTMLElement; - constructor(); -} diff --git a/static/vditor/dist/ts/toolbar/CodeTheme.d.ts b/static/vditor/dist/ts/toolbar/CodeTheme.d.ts deleted file mode 100644 index e094d7c..0000000 --- a/static/vditor/dist/ts/toolbar/CodeTheme.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class CodeTheme extends MenuItem { - element: HTMLElement; - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/ContentTheme.d.ts b/static/vditor/dist/ts/toolbar/ContentTheme.d.ts deleted file mode 100644 index 1bb73c9..0000000 --- a/static/vditor/dist/ts/toolbar/ContentTheme.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class ContentTheme extends MenuItem { - element: HTMLElement; - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/Counter.d.ts b/static/vditor/dist/ts/toolbar/Counter.d.ts deleted file mode 100644 index 93cb213..0000000 --- a/static/vditor/dist/ts/toolbar/Counter.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -export declare class Counter { - element: HTMLElement; - constructor(vditor: IVditor); - render(vditor: IVditor, mdText: string): void; -} diff --git a/static/vditor/dist/ts/toolbar/Custom.d.ts b/static/vditor/dist/ts/toolbar/Custom.d.ts deleted file mode 100644 index f686d2e..0000000 --- a/static/vditor/dist/ts/toolbar/Custom.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Custom extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/Devtools.d.ts b/static/vditor/dist/ts/toolbar/Devtools.d.ts deleted file mode 100644 index c05d907..0000000 --- a/static/vditor/dist/ts/toolbar/Devtools.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Devtools extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/Divider.d.ts b/static/vditor/dist/ts/toolbar/Divider.d.ts deleted file mode 100644 index 1c7feca..0000000 --- a/static/vditor/dist/ts/toolbar/Divider.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare class Divider { - element: HTMLElement; - constructor(); -} diff --git a/static/vditor/dist/ts/toolbar/EditMode.d.ts b/static/vditor/dist/ts/toolbar/EditMode.d.ts deleted file mode 100644 index 2aa6f83..0000000 --- a/static/vditor/dist/ts/toolbar/EditMode.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare const setEditMode: (vditor: IVditor, type: string, event: Event | string) => void; -export declare class EditMode extends MenuItem { - element: HTMLElement; - constructor(vditor: IVditor, menuItem: IMenuItem); - _bindEvent(vditor: IVditor, panelElement: HTMLElement, menuItem: IMenuItem): void; -} diff --git a/static/vditor/dist/ts/toolbar/Emoji.d.ts b/static/vditor/dist/ts/toolbar/Emoji.d.ts deleted file mode 100644 index 0e472f7..0000000 --- a/static/vditor/dist/ts/toolbar/Emoji.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Emoji extends MenuItem { - element: HTMLElement; - constructor(vditor: IVditor, menuItem: IMenuItem); - _bindEvent(vditor: IVditor, panelElement: HTMLElement): void; -} diff --git a/static/vditor/dist/ts/toolbar/Export.d.ts b/static/vditor/dist/ts/toolbar/Export.d.ts deleted file mode 100644 index d9b66ce..0000000 --- a/static/vditor/dist/ts/toolbar/Export.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Export extends MenuItem { - element: HTMLElement; - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/Fullscreen.d.ts b/static/vditor/dist/ts/toolbar/Fullscreen.d.ts deleted file mode 100644 index 1641570..0000000 --- a/static/vditor/dist/ts/toolbar/Fullscreen.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Fullscreen extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); - _bindEvent(vditor: IVditor, menuItem: IMenuItem): void; -} diff --git a/static/vditor/dist/ts/toolbar/Headings.d.ts b/static/vditor/dist/ts/toolbar/Headings.d.ts deleted file mode 100644 index 266d4a5..0000000 --- a/static/vditor/dist/ts/toolbar/Headings.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Headings extends MenuItem { - element: HTMLElement; - constructor(vditor: IVditor, menuItem: IMenuItem); - _bindEvent(vditor: IVditor, panelElement: HTMLElement): void; -} diff --git a/static/vditor/dist/ts/toolbar/Help.d.ts b/static/vditor/dist/ts/toolbar/Help.d.ts deleted file mode 100644 index 4aeec70..0000000 --- a/static/vditor/dist/ts/toolbar/Help.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Help extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/Indent.d.ts b/static/vditor/dist/ts/toolbar/Indent.d.ts deleted file mode 100644 index ca58c4b..0000000 --- a/static/vditor/dist/ts/toolbar/Indent.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Indent extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/Info.d.ts b/static/vditor/dist/ts/toolbar/Info.d.ts deleted file mode 100644 index d9c68f1..0000000 --- a/static/vditor/dist/ts/toolbar/Info.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Info extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/InsertAfter.d.ts b/static/vditor/dist/ts/toolbar/InsertAfter.d.ts deleted file mode 100644 index 28742a0..0000000 --- a/static/vditor/dist/ts/toolbar/InsertAfter.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class InsertAfter extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/InsertBefore.d.ts b/static/vditor/dist/ts/toolbar/InsertBefore.d.ts deleted file mode 100644 index f0d33df..0000000 --- a/static/vditor/dist/ts/toolbar/InsertBefore.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class InsertBefore extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/MenuItem.d.ts b/static/vditor/dist/ts/toolbar/MenuItem.d.ts deleted file mode 100644 index b881422..0000000 --- a/static/vditor/dist/ts/toolbar/MenuItem.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -export declare class MenuItem { - element: HTMLElement; - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/Outdent.d.ts b/static/vditor/dist/ts/toolbar/Outdent.d.ts deleted file mode 100644 index 85fc1a8..0000000 --- a/static/vditor/dist/ts/toolbar/Outdent.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Outdent extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/Outline.d.ts b/static/vditor/dist/ts/toolbar/Outline.d.ts deleted file mode 100644 index b1adea7..0000000 --- a/static/vditor/dist/ts/toolbar/Outline.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Outline extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/Preview.d.ts b/static/vditor/dist/ts/toolbar/Preview.d.ts deleted file mode 100644 index 9d87592..0000000 --- a/static/vditor/dist/ts/toolbar/Preview.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Preview extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); - _bindEvent(vditor: IVditor): void; -} diff --git a/static/vditor/dist/ts/toolbar/Record.d.ts b/static/vditor/dist/ts/toolbar/Record.d.ts deleted file mode 100644 index c73535c..0000000 --- a/static/vditor/dist/ts/toolbar/Record.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Record extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); - _bindEvent(vditor: IVditor): void; -} diff --git a/static/vditor/dist/ts/toolbar/Redo.d.ts b/static/vditor/dist/ts/toolbar/Redo.d.ts deleted file mode 100644 index 232130e..0000000 --- a/static/vditor/dist/ts/toolbar/Redo.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Redo extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/Undo.d.ts b/static/vditor/dist/ts/toolbar/Undo.d.ts deleted file mode 100644 index c0d6076..0000000 --- a/static/vditor/dist/ts/toolbar/Undo.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Undo extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); -} diff --git a/static/vditor/dist/ts/toolbar/Upload.d.ts b/static/vditor/dist/ts/toolbar/Upload.d.ts deleted file mode 100644 index 857b7ed..0000000 --- a/static/vditor/dist/ts/toolbar/Upload.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -import { MenuItem } from "./MenuItem"; -export declare class Upload extends MenuItem { - constructor(vditor: IVditor, menuItem: IMenuItem); - _bindEvent(vditor: IVditor): void; -} diff --git a/static/vditor/dist/ts/toolbar/index.d.ts b/static/vditor/dist/ts/toolbar/index.d.ts deleted file mode 100644 index 197b176..0000000 --- a/static/vditor/dist/ts/toolbar/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// -export declare class Toolbar { - elements: { - [key: string]: HTMLElement; - }; - element: HTMLElement; - constructor(vditor: IVditor); - private genItem; -} diff --git a/static/vditor/dist/ts/toolbar/setToolbar.d.ts b/static/vditor/dist/ts/toolbar/setToolbar.d.ts deleted file mode 100644 index 8d974e6..0000000 --- a/static/vditor/dist/ts/toolbar/setToolbar.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/// -export declare const removeCurrentToolbar: (toolbar: { - [key: string]: HTMLElement; -}, names: string[]) => void; -export declare const setCurrentToolbar: (toolbar: { - [key: string]: HTMLElement; -}, names: string[]) => void; -export declare const enableToolbar: (toolbar: { - [key: string]: HTMLElement; -}, names: string[]) => void; -export declare const disableToolbar: (toolbar: { - [key: string]: HTMLElement; -}, names: string[]) => void; -export declare const hideToolbar: (toolbar: { - [key: string]: HTMLElement; -}, names: string[]) => void; -export declare const showToolbar: (toolbar: { - [key: string]: HTMLElement; -}, names: string[]) => void; -export declare const hidePanel: (vditor: IVditor, panels: string[], exceptElement?: HTMLElement) => void; -export declare const toggleSubMenu: (vditor: IVditor, panelElement: HTMLElement, actionBtn: Element, level: number) => void; diff --git a/static/vditor/dist/ts/ui/initUI.d.ts b/static/vditor/dist/ts/ui/initUI.d.ts deleted file mode 100644 index 262ece3..0000000 --- a/static/vditor/dist/ts/ui/initUI.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// -declare global { - interface Window { - visualViewport: HTMLElement; - } -} -export declare const initUI: (vditor: IVditor) => void; -export declare const setPadding: (vditor: IVditor) => void; -export declare const setTypewriterPosition: (vditor: IVditor) => void; diff --git a/static/vditor/dist/ts/ui/setCodeTheme.d.ts b/static/vditor/dist/ts/ui/setCodeTheme.d.ts deleted file mode 100644 index 08e7226..0000000 --- a/static/vditor/dist/ts/ui/setCodeTheme.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const setCodeTheme: (codeTheme: string, cdn?: string) => void; diff --git a/static/vditor/dist/ts/ui/setContentTheme.d.ts b/static/vditor/dist/ts/ui/setContentTheme.d.ts deleted file mode 100644 index ef79887..0000000 --- a/static/vditor/dist/ts/ui/setContentTheme.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const setContentTheme: (contentTheme: string, path: string) => void; diff --git a/static/vditor/dist/ts/ui/setPreviewMode.d.ts b/static/vditor/dist/ts/ui/setPreviewMode.d.ts deleted file mode 100644 index 9c8375a..0000000 --- a/static/vditor/dist/ts/ui/setPreviewMode.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const setPreviewMode: (mode: "both" | "editor", vditor: IVditor) => void; diff --git a/static/vditor/dist/ts/ui/setTheme.d.ts b/static/vditor/dist/ts/ui/setTheme.d.ts deleted file mode 100644 index a7daf8d..0000000 --- a/static/vditor/dist/ts/ui/setTheme.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const setTheme: (vditor: IVditor) => void; diff --git a/static/vditor/dist/ts/undo/index.d.ts b/static/vditor/dist/ts/undo/index.d.ts deleted file mode 100644 index 3d5c428..0000000 --- a/static/vditor/dist/ts/undo/index.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/// -declare class Undo { - private stackSize; - private dmp; - private wysiwyg; - private ir; - private sv; - constructor(); - clearStack(vditor: IVditor): void; - resetIcon(vditor: IVditor): void; - undo(vditor: IVditor): void; - redo(vditor: IVditor): void; - recordFirstPosition(vditor: IVditor, event: KeyboardEvent): void; - addToUndoStack(vditor: IVditor): void; - private renderDiff; - private resetStack; - private addCaret; -} -export { Undo }; diff --git a/static/vditor/dist/ts/upload/getElement.d.ts b/static/vditor/dist/ts/upload/getElement.d.ts deleted file mode 100644 index 77f8108..0000000 --- a/static/vditor/dist/ts/upload/getElement.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const getElement: (vditor: IVditor) => HTMLPreElement; diff --git a/static/vditor/dist/ts/upload/index.d.ts b/static/vditor/dist/ts/upload/index.d.ts deleted file mode 100644 index 29d5832..0000000 --- a/static/vditor/dist/ts/upload/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// -declare class Upload { - element: HTMLElement; - isUploading: boolean; - range: Range; - constructor(); -} -declare const uploadFiles: (vditor: IVditor, files: FileList | DataTransferItemList | File[], element?: HTMLInputElement) => void; -export { Upload, uploadFiles }; diff --git a/static/vditor/dist/ts/upload/setHeaders.d.ts b/static/vditor/dist/ts/upload/setHeaders.d.ts deleted file mode 100644 index cc31538..0000000 --- a/static/vditor/dist/ts/upload/setHeaders.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const setHeaders: (vditor: IVditor, xhr: XMLHttpRequest) => void; diff --git a/static/vditor/dist/ts/util/Options.d.ts b/static/vditor/dist/ts/util/Options.d.ts deleted file mode 100644 index 4595b39..0000000 --- a/static/vditor/dist/ts/util/Options.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// -export declare class Options { - options: IOptions; - private defaultOptions; - constructor(options: IOptions); - merge(): IOptions; - private mergeToolbar; -} diff --git a/static/vditor/dist/ts/util/RecordMedia.d.ts b/static/vditor/dist/ts/util/RecordMedia.d.ts deleted file mode 100644 index a7902be..0000000 --- a/static/vditor/dist/ts/util/RecordMedia.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export declare class RecordMedia { - SAMPLE_RATE: number; - DEFAULT_SAMPLE_RATE: number; - isRecording: boolean; - readyFlag: boolean; - leftChannel: Float32List[]; - rightChannel: Float32List[]; - recordingLength: number; - recorder: ScriptProcessorNode; - constructor(e: MediaStream); - cloneChannelData(leftChannelData: Float32List, rightChannelData: Float32List): void; - startRecordingNewWavFile(): void; - stopRecording(): void; - buildWavFileBlob(): Blob; - private downSampleBuffer; - private mergeBuffers; - private writeUTFBytes; -} diff --git a/static/vditor/dist/ts/util/addScript.d.ts b/static/vditor/dist/ts/util/addScript.d.ts deleted file mode 100644 index 824ae94..0000000 --- a/static/vditor/dist/ts/util/addScript.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const addScriptSync: (path: string, id: string) => boolean; -export declare const addScript: (path: string, id: string) => Promise; diff --git a/static/vditor/dist/ts/util/addStyle.d.ts b/static/vditor/dist/ts/util/addStyle.d.ts deleted file mode 100644 index 04eb2ab..0000000 --- a/static/vditor/dist/ts/util/addStyle.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const addStyle: (url: string, id: string) => void; diff --git a/static/vditor/dist/ts/util/code160to32.d.ts b/static/vditor/dist/ts/util/code160to32.d.ts deleted file mode 100644 index a7c0c62..0000000 --- a/static/vditor/dist/ts/util/code160to32.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const code160to32: (text: string) => string; diff --git a/static/vditor/dist/ts/util/compatibility.d.ts b/static/vditor/dist/ts/util/compatibility.d.ts deleted file mode 100644 index 9b25468..0000000 --- a/static/vditor/dist/ts/util/compatibility.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare const isSafari: () => boolean; -export declare const isFirefox: () => boolean; -export declare const accessLocalStorage: () => boolean; -export declare const getEventName: () => "click" | "touchstart"; -export declare const isCtrl: (event: KeyboardEvent) => boolean; -export declare const updateHotkeyTip: (hotkey: string) => string; -export declare const isChrome: () => boolean; diff --git a/static/vditor/dist/ts/util/editorCommonEvent.d.ts b/static/vditor/dist/ts/util/editorCommonEvent.d.ts deleted file mode 100644 index 64ace96..0000000 --- a/static/vditor/dist/ts/util/editorCommonEvent.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// -export declare const focusEvent: (vditor: IVditor, editorElement: HTMLElement) => void; -export declare const blurEvent: (vditor: IVditor, editorElement: HTMLElement) => void; -export declare const dropEvent: (vditor: IVditor, editorElement: HTMLElement) => void; -export declare const copyEvent: (vditor: IVditor, editorElement: HTMLElement, copy: (event: ClipboardEvent, vditor: IVditor) => void) => void; -export declare const cutEvent: (vditor: IVditor, editorElement: HTMLElement, copy: (event: ClipboardEvent, vditor: IVditor) => void) => void; -export declare const scrollCenter: (vditor: IVditor) => void; -export declare const hotkeyEvent: (vditor: IVditor, editorElement: HTMLElement) => void; -export declare const selectEvent: (vditor: IVditor, editorElement: HTMLElement) => void; diff --git a/static/vditor/dist/ts/util/fixBrowserBehavior.d.ts b/static/vditor/dist/ts/util/fixBrowserBehavior.d.ts deleted file mode 100644 index 47823cf..0000000 --- a/static/vditor/dist/ts/util/fixBrowserBehavior.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/// -export declare const fixGSKeyBackspace: (event: KeyboardEvent, vditor: IVditor, startContainer: Node) => boolean; -export declare const fixCJKPosition: (range: Range, vditor: IVditor, event: KeyboardEvent) => void; -export declare const fixCursorDownInlineMath: (range: Range, key: string) => void; -export declare const insertEmptyBlock: (vditor: IVditor, position: InsertPosition) => void; -export declare const isFirstCell: (cellElement: HTMLElement) => false | HTMLTableElement; -export declare const isLastCell: (cellElement: HTMLElement) => false | HTMLTableElement; -export declare const insertAfterBlock: (vditor: IVditor, event: KeyboardEvent, range: Range, element: HTMLElement, blockElement: HTMLElement) => boolean; -export declare const insertBeforeBlock: (vditor: IVditor, event: KeyboardEvent, range: Range, element: HTMLElement, blockElement: HTMLElement) => boolean; -export declare const listToggle: (vditor: IVditor, range: Range, type: string, cancel?: boolean) => void; -export declare const listIndent: (vditor: IVditor, liElement: HTMLElement, range: Range) => void; -export declare const listOutdent: (vditor: IVditor, liElement: HTMLElement, range: Range, topListElement: HTMLElement) => void; -export declare const setTableAlign: (tableElement: HTMLTableElement, type: string) => void; -export declare const isHrMD: (text: string) => boolean; -export declare const isHeadingMD: (text: string) => boolean; -export declare const isToC: (text: string) => boolean; -export declare const renderToc: (vditor: IVditor) => void; -export declare const execAfterRender: (vditor: IVditor, options?: { - enableAddUndoStack: boolean; - enableHint: boolean; - enableInput: boolean; -}) => void; -export declare const fixList: (range: Range, vditor: IVditor, pElement: HTMLElement | false, event: KeyboardEvent) => boolean; -export declare const fixTab: (vditor: IVditor, range: Range, event: KeyboardEvent) => boolean; -export declare const fixMarkdown: (event: KeyboardEvent, vditor: IVditor, pElement: HTMLElement | false, range: Range) => boolean; -export declare const insertRow: (vditor: IVditor, range: Range, cellElement: HTMLElement) => void; -export declare const insertColumn: (vditor: IVditor, tableElement: HTMLTableElement, cellElement: HTMLElement) => void; -export declare const deleteRow: (vditor: IVditor, range: Range, cellElement: HTMLElement) => void; -export declare const deleteColumn: (vditor: IVditor, range: Range, tableElement: HTMLTableElement, cellElement: HTMLElement) => void; -export declare const fixTable: (vditor: IVditor, event: KeyboardEvent, range: Range) => boolean; -export declare const fixCodeBlock: (vditor: IVditor, event: KeyboardEvent, codeRenderElement: HTMLElement, range: Range) => boolean; -export declare const fixBlockquote: (vditor: IVditor, range: Range, event: KeyboardEvent, pElement: HTMLElement | false) => boolean; -export declare const fixTask: (vditor: IVditor, range: Range, event: KeyboardEvent) => boolean; -export declare const fixDelete: (vditor: IVditor, range: Range, event: KeyboardEvent, pElement: HTMLElement | false) => boolean; -export declare const fixHR: (range: Range) => void; -export declare const fixFirefoxArrowUpTable: (event: KeyboardEvent, blockElement: false | HTMLElement, range: Range) => boolean; -export declare const paste: (vditor: IVditor, event: ClipboardEvent & { - target: HTMLElement; -}, callback: { - pasteCode(code: string): void; -}) => void; diff --git a/static/vditor/dist/ts/util/getSelectText.d.ts b/static/vditor/dist/ts/util/getSelectText.d.ts deleted file mode 100644 index 86a057d..0000000 --- a/static/vditor/dist/ts/util/getSelectText.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const getSelectText: (editor: HTMLElement, range?: Range) => string; diff --git a/static/vditor/dist/ts/util/hasClosest.d.ts b/static/vditor/dist/ts/util/hasClosest.d.ts deleted file mode 100644 index 0f183cd..0000000 --- a/static/vditor/dist/ts/util/hasClosest.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare const hasTopClosestByClassName: (element: Node, className: string) => false | HTMLElement; -export declare const hasTopClosestByAttribute: (element: Node, attr: string, value: string) => false | HTMLElement; -export declare const hasTopClosestByTag: (element: Node, nodeName: string) => false | HTMLElement; -export declare const getTopList: (element: Node) => false | HTMLElement; -export declare const hasClosestByAttribute: (element: Node, attr: string, value: string) => false | HTMLElement; -export declare const hasClosestBlock: (element: Node) => false | HTMLElement; -export declare const hasClosestByMatchTag: (element: Node, nodeName: string) => false | HTMLElement; -export declare const hasClosestByClassName: (element: Node, className: string) => false | HTMLElement; -export declare const getLastNode: (node: Node) => Node; diff --git a/static/vditor/dist/ts/util/hasClosestByHeadings.d.ts b/static/vditor/dist/ts/util/hasClosestByHeadings.d.ts deleted file mode 100644 index c93a0a4..0000000 --- a/static/vditor/dist/ts/util/hasClosestByHeadings.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const hasClosestByTag: (element: Node, nodeName: string) => false | HTMLElement; -export declare const hasClosestByHeadings: (element: Node) => false | HTMLElement; diff --git a/static/vditor/dist/ts/util/highlightToolbar.d.ts b/static/vditor/dist/ts/util/highlightToolbar.d.ts deleted file mode 100644 index bc278ec..0000000 --- a/static/vditor/dist/ts/util/highlightToolbar.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const highlightToolbar: (vditor: IVditor) => void; diff --git a/static/vditor/dist/ts/util/hotKey.d.ts b/static/vditor/dist/ts/util/hotKey.d.ts deleted file mode 100644 index ce936b8..0000000 --- a/static/vditor/dist/ts/util/hotKey.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const matchHotKey: (hotKey: string, event: KeyboardEvent) => boolean; diff --git a/static/vditor/dist/ts/util/log.d.ts b/static/vditor/dist/ts/util/log.d.ts deleted file mode 100644 index 97c903a..0000000 --- a/static/vditor/dist/ts/util/log.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const log: (method: string, content: string, type: string, print: boolean) => void; diff --git a/static/vditor/dist/ts/util/merge.d.ts b/static/vditor/dist/ts/util/merge.d.ts deleted file mode 100644 index e3c4ca5..0000000 --- a/static/vditor/dist/ts/util/merge.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const merge: (...options: any[]) => any; diff --git a/static/vditor/dist/ts/util/processCode.d.ts b/static/vditor/dist/ts/util/processCode.d.ts deleted file mode 100644 index 3ecd970..0000000 --- a/static/vditor/dist/ts/util/processCode.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -export declare const processPasteCode: (html: string, text: string, type?: string) => string | false; -export declare const processCodeRender: (previewPanel: HTMLElement, vditor: IVditor) => void; diff --git a/static/vditor/dist/ts/util/selection.d.ts b/static/vditor/dist/ts/util/selection.d.ts deleted file mode 100644 index 24e40da..0000000 --- a/static/vditor/dist/ts/util/selection.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -export declare const getEditorRange: (element: HTMLElement) => Range; -export declare const getCursorPosition: (editor: HTMLElement) => { - left: number; - top: number; -}; -export declare const selectIsEditor: (editor: HTMLElement, range?: Range) => boolean; -export declare const setSelectionFocus: (range: Range) => void; -export declare const getSelectPosition: (selectElement: HTMLElement, editorElement: HTMLElement, range?: Range) => { - end: number; - start: number; -}; -export declare const setSelectionByPosition: (start: number, end: number, editor: HTMLElement) => Range; -export declare const setRangeByWbr: (element: HTMLElement, range: Range) => void; -export declare const insertHTML: (html: string, vditor: IVditor) => void; diff --git a/static/vditor/dist/ts/wysiwyg/afterRenderEvent.d.ts b/static/vditor/dist/ts/wysiwyg/afterRenderEvent.d.ts deleted file mode 100644 index 24ef10c..0000000 --- a/static/vditor/dist/ts/wysiwyg/afterRenderEvent.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -export declare const afterRenderEvent: (vditor: IVditor, options?: { - enableAddUndoStack: boolean; - enableHint: boolean; - enableInput: boolean; -}) => void; diff --git a/static/vditor/dist/ts/wysiwyg/highlightToolbarWYSIWYG.d.ts b/static/vditor/dist/ts/wysiwyg/highlightToolbarWYSIWYG.d.ts deleted file mode 100644 index 6aad8b7..0000000 --- a/static/vditor/dist/ts/wysiwyg/highlightToolbarWYSIWYG.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -export declare const highlightToolbarWYSIWYG: (vditor: IVditor) => void; -export declare const genLinkRefPopover: (vditor: IVditor, linkRefElement: HTMLElement) => void; -export declare const genAPopover: (vditor: IVditor, aElement: HTMLElement) => void; -export declare const genImagePopover: (event: Event, vditor: IVditor) => void; diff --git a/static/vditor/dist/ts/wysiwyg/index.d.ts b/static/vditor/dist/ts/wysiwyg/index.d.ts deleted file mode 100644 index 8c2bd86..0000000 --- a/static/vditor/dist/ts/wysiwyg/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -declare class WYSIWYG { - element: HTMLPreElement; - popover: HTMLDivElement; - afterRenderTimeoutId: number; - hlToolbarTimeoutId: number; - preventInput: boolean; - composingLock: boolean; - constructor(vditor: IVditor); - private copy; - private bindEvent; -} -export { WYSIWYG }; diff --git a/static/vditor/dist/ts/wysiwyg/inlineTag.d.ts b/static/vditor/dist/ts/wysiwyg/inlineTag.d.ts deleted file mode 100644 index acd1fb5..0000000 --- a/static/vditor/dist/ts/wysiwyg/inlineTag.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/// -export declare const previoueIsEmptyA: (node: Node) => false | HTMLElement; -export declare const nextIsCode: (range: Range) => boolean; -export declare const getNextHTML: (node: Node) => string; -export declare const getPreviousHTML: (node: Node) => string; -export declare const getRenderElementNextNode: (blockCodeElement: HTMLElement) => ChildNode; -export declare const splitElement: (range: Range) => { - afterHTML: string; - beforeHTML: string; -}; -export declare const modifyPre: (vditor: IVditor, range: Range) => void; diff --git a/static/vditor/dist/ts/wysiwyg/input.d.ts b/static/vditor/dist/ts/wysiwyg/input.d.ts deleted file mode 100644 index 30d5476..0000000 --- a/static/vditor/dist/ts/wysiwyg/input.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const input: (vditor: IVditor, range: Range, event?: InputEvent) => void; diff --git a/static/vditor/dist/ts/wysiwyg/processKeydown.d.ts b/static/vditor/dist/ts/wysiwyg/processKeydown.d.ts deleted file mode 100644 index 8ce85da..0000000 --- a/static/vditor/dist/ts/wysiwyg/processKeydown.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -export declare const processKeydown: (vditor: IVditor, event: KeyboardEvent) => boolean; -export declare const removeBlockElement: (vditor: IVditor, event: KeyboardEvent) => boolean; diff --git a/static/vditor/dist/ts/wysiwyg/renderDomByMd.d.ts b/static/vditor/dist/ts/wysiwyg/renderDomByMd.d.ts deleted file mode 100644 index da0f433..0000000 --- a/static/vditor/dist/ts/wysiwyg/renderDomByMd.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -export declare const renderDomByMd: (vditor: IVditor, md: string, options?: { - enableAddUndoStack: boolean; - enableHint: boolean; - enableInput: boolean; -}) => void; diff --git a/static/vditor/dist/ts/wysiwyg/setHeading.d.ts b/static/vditor/dist/ts/wysiwyg/setHeading.d.ts deleted file mode 100644 index fd0bea7..0000000 --- a/static/vditor/dist/ts/wysiwyg/setHeading.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -export declare const setHeading: (vditor: IVditor, tagName: string) => void; -export declare const removeHeading: (vditor: IVditor) => void; diff --git a/static/vditor/dist/ts/wysiwyg/showCode.d.ts b/static/vditor/dist/ts/wysiwyg/showCode.d.ts deleted file mode 100644 index ab9ed60..0000000 --- a/static/vditor/dist/ts/wysiwyg/showCode.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const showCode: (previewElement: HTMLElement, vditor: IVditor, first?: boolean) => void; diff --git a/static/vditor/dist/ts/wysiwyg/toolbarEvent.d.ts b/static/vditor/dist/ts/wysiwyg/toolbarEvent.d.ts deleted file mode 100644 index dca0914..0000000 --- a/static/vditor/dist/ts/wysiwyg/toolbarEvent.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare const toolbarEvent: (vditor: IVditor, actionBtn: Element, event: Event) => void;