@blinkk/editor
Version:
Structured content editor with live previews.
59 lines (58 loc) • 1.78 kB
TypeScript
/**
* Custom event name for loading a file in the editor.
*
* Expects a {@link FileData} as the event details.
*/
export declare const EVENT_FILE_LOAD = "live.file.load";
/**
* Custom event name for finished a file load in the editor.
*/
export declare const EVENT_FILE_LOAD_COMPLETE = "live.file.load.complete";
/**
* Custom event name for adding a notification.
*
* Expects a {@link EditorNotification} as the event details.
*/
export declare const EVENT_NOTIFICATION_ADD = "live.notification.add";
/**
* Custom event name for marking a notification as read.
*
* Expects a {@link EditorNotification} as the event details.
*/
export declare const EVENT_NOTIFICATION_READ = "live.notification.read";
/**
* Custom event name for opening a notification.
*
* Expects a {@link EditorNotification} as the event details.
*/
export declare const EVENT_NOTIFICATION_SHOW = "live.notification.show";
/**
* Custom event name for after updating the project type for the editor.
*/
export declare const EVENT_PROJECT_TYPE_UPDATE = "live.projectType.update";
/**
* Custom event name for triggering a render.
*/
export declare const EVENT_RENDER = "live.render";
/**
* Custom event after a render completes.
*/
export declare const EVENT_RENDER_COMPLETE = "live.render.complete";
/**
* Custom event to save the current data.
*
* This is triggered when the user uses cmd+s.
*/
export declare const EVENT_SAVE = "live.save";
/**
* Custom event name for opening a toast.
*
* Expects a {@link ToastConfig} as the event details.
*/
export declare const EVENT_TOAST_SHOW = "live.toast.show";
/**
* Custom event for loading a workspace.
*
* Expects a {@link WorkspaceData} as the event details.
*/
export declare const EVENT_WORKSPACE_LOAD = "live.workspace.load";