Massive restructure of plugin API

This commit is contained in:
Zef Hemel
2022-10-14 15:11:33 +02:00
parent 982623fc38
commit 7d28b53b75
70 changed files with 826 additions and 969 deletions
+32
View File
@@ -0,0 +1,32 @@
import type { ParseTree } from "./lib/tree.ts";
import { ParsedQuery } from "./lib/query.ts";
export type AppEvent =
| "page:click"
| "page:complete"
| "page:load"
| "editor:init"
| "plugs:loaded";
export type QueryProviderEvent = {
query: ParsedQuery;
pageName: string;
};
export type ClickEvent = {
page: string;
pos: number;
metaKey: boolean;
ctrlKey: boolean;
altKey: boolean;
};
export type IndexEvent = {
name: string;
text: string;
};
export type IndexTreeEvent = {
name: string;
tree: ParseTree;
};