2022-04-21 19:57:45 +08:00
|
|
|
import type { ParseTree } from "@silverbulletmd/common/tree";
|
2022-04-20 16:56:43 +08:00
|
|
|
|
2022-05-17 21:54:55 +08:00
|
|
|
export type AppEvent = "page:click" | "page:complete" | "page:load";
|
2022-03-20 16:56:28 +08:00
|
|
|
|
|
|
|
export type ClickEvent = {
|
2022-03-28 21:25:05 +08:00
|
|
|
page: string;
|
2022-03-20 16:56:28 +08:00
|
|
|
pos: number;
|
|
|
|
metaKey: boolean;
|
|
|
|
ctrlKey: boolean;
|
|
|
|
altKey: boolean;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type IndexEvent = {
|
|
|
|
name: string;
|
|
|
|
text: string;
|
|
|
|
};
|
2022-04-20 16:56:43 +08:00
|
|
|
|
|
|
|
export type IndexTreeEvent = {
|
|
|
|
name: string;
|
|
|
|
tree: ParseTree;
|
|
|
|
};
|