Skip to content

Commit

Permalink
build: v1.3.4 release (^.^)YYa!!
Browse files Browse the repository at this point in the history
  • Loading branch information
yangfuhai committed Jan 2, 2025
1 parent 79aa8bf commit eae15b0
Show file tree
Hide file tree
Showing 6 changed files with 7,263 additions and 7,181 deletions.
345 changes: 174 additions & 171 deletions dist/index.cjs

Large diffs are not rendered by default.

17 changes: 5 additions & 12 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Transaction } from '@tiptap/pm/state';

declare class AbstractMenuButton extends HTMLElement implements AiEditorEventListener {
template: string;
editor?: Editor;
editor?: InnerEditor;
options?: AiEditorOptions;
protected constructor();
protected registerClickListener(): void;
Expand Down Expand Up @@ -120,6 +120,7 @@ export declare type AiEditorOptions = {
onBlur?: (editor: AiEditor) => void;
onDestroy?: (editor: AiEditor) => void;
onSave?: (editor: AiEditor) => boolean;
onFullscreen?: (isFullscreen: boolean) => void;
toolbarKeys?: (string | CustomMenu | MenuGroup)[];
toolbarExcludeKeys?: DefaultToolbarKey[];
toolbarSize?: 'small' | 'medium' | 'large';
Expand All @@ -142,8 +143,8 @@ export declare type AiEditorOptions = {
bubbleMenuItems?: (string | BubbleMenuItem)[];
};
container?: {
defaultTypeName?: string;
typeItems?: ContainerTypeItem[];
defaultType?: string;
typeItems?: string[];
};
uploader?: Uploader;
image?: {
Expand Down Expand Up @@ -224,7 +225,7 @@ export declare interface AiMenu {
prompt?: string;
text?: "selected" | "focusBefore";
model?: string;
onClick?: (event: MouseEvent) => void;
onClick?: (event: MouseEvent, editor: AiEditor) => void;
children?: AiMenu[];
}

Expand Down Expand Up @@ -290,14 +291,6 @@ export declare type BubbleMenuItem = {
onClick?: (editor: AiEditor, tippyInstance: Instance, parentEle: HTMLElement, holder: any) => void;
};

declare interface ContainerTypeItem {
name: string;
lightBgColor: string;
lightBorderColor: string;
darkBgColor: string;
darkBorderColor: string;
}

export declare class CustomAiModel extends AiModel {
constructor(editor: InnerEditor, globalConfig: AiGlobalConfig);
createAiClient(url: string, listener: AiMessageListener): AiClient;
Expand Down
Loading

0 comments on commit eae15b0

Please sign in to comment.