chore: update dependencies

This commit is contained in:
Michael Yang 2024-10-24 10:10:37 +08:00
parent 26f6bd60a9
commit f0d3f6bb74
5 changed files with 6300 additions and 6328 deletions

320
dist/index.cjs vendored

File diff suppressed because one or more lines are too long

11
dist/index.d.ts vendored
View File

@ -10,7 +10,7 @@ import { JSONContent } from '@tiptap/core';
import { SingleCommands } from '@tiptap/core';
import { Transaction } from '@tiptap/pm/state';
declare class AbstractMenuButton extends HTMLElement implements AiEditorEvent {
declare class AbstractMenuButton extends HTMLElement implements AiEditorEventListener {
template: string;
editor?: Editor;
options?: AiEditorOptions;
@ -49,7 +49,7 @@ export declare class AiEditor {
mainEl: HTMLDivElement;
footer: Footer;
options: AiEditorOptions;
eventComponents: AiEditorEvent[];
eventComponents: AiEditorEventListener[];
constructor(_: AiEditorOptions);
private initI18nAndInnerEditor;
protected initInnerEditor(): void;
@ -87,7 +87,7 @@ export declare class AiEditor {
isDestroyed(): boolean;
}
export declare interface AiEditorEvent {
export declare interface AiEditorEventListener {
onCreate: (props: EditorEvents['create'], options: AiEditorOptions) => void;
onTransaction: (props: EditorEvents['transaction']) => void;
onEditableChange: (editable: boolean) => void;
@ -115,6 +115,7 @@ export declare type AiEditorOptions = {
onSave?: (editor: AiEditor) => boolean;
toolbarKeys?: (string | CustomMenu | MenuGroup)[];
toolbarExcludeKeys?: DefaultToolbarKey[];
toolbarSize?: 'small' | 'medium' | 'large';
draggable?: boolean;
htmlPasteConfig?: HtmlPasteConfig;
codeBlock?: {
@ -306,7 +307,7 @@ declare type DefaultToolbarKey = (typeof defaultToolbarKeys)[number];
declare const defaultToolbarKeys: string[];
declare class Footer extends HTMLElement implements AiEditorEvent {
declare class Footer extends HTMLElement implements AiEditorEventListener {
count: number;
draggable: boolean;
constructor();
@ -317,7 +318,7 @@ declare class Footer extends HTMLElement implements AiEditorEvent {
onEditableChange(editable: boolean): void;
}
declare class Header extends HTMLElement implements AiEditorEvent {
declare class Header extends HTMLElement implements AiEditorEventListener {
menuButtons: AbstractMenuButton[];
constructor();
connectedCallback(): void;

12294
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/style.css vendored

File diff suppressed because one or more lines are too long

View File

@ -73,7 +73,6 @@
"lowlight": "^3.1.0",
"markdown-it": "^14.1.0",
"markdown-it-container": "^4.0.0",
"node-html-parser": "^6.1.13",
"tippy.js": "^6.3.7",
"turndown": "^7.2.0"
},