Custom template slash commands

This commit is contained in:
Zef Hemel
2023-11-06 09:14:16 +01:00
parent 0e2a802bbd
commit 1afac0274e
16 changed files with 214 additions and 79 deletions
+7
View File
@@ -6,6 +6,7 @@ export type AppEvent =
| "page:click"
| "editor:complete"
| "minieditor:complete"
| "slash:complete"
| "page:load"
| "editor:init"
| "editor:pageLoaded" // args: pageName, previousPage, isSynced
@@ -51,6 +52,12 @@ export type CompleteEvent = {
parentNodes: string[];
};
export type SlashCompletion = {
label: string;
detail?: string;
invoke: string;
} & Record<string, any>;
export type WidgetContent = {
html?: string;
script?: string;