@blinkk/editor
Version:
Structured content editor with live previews.
62 lines • 2.09 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EVENT_WORKSPACE_LOAD = exports.EVENT_TOAST_SHOW = exports.EVENT_SAVE = exports.EVENT_RENDER_COMPLETE = exports.EVENT_RENDER = exports.EVENT_PROJECT_TYPE_UPDATE = exports.EVENT_NOTIFICATION_SHOW = exports.EVENT_NOTIFICATION_READ = exports.EVENT_NOTIFICATION_ADD = exports.EVENT_FILE_LOAD_COMPLETE = exports.EVENT_FILE_LOAD = void 0;
/**
* Custom event name for loading a file in the editor.
*
* Expects a {@link FileData} as the event details.
*/
exports.EVENT_FILE_LOAD = 'live.file.load';
/**
* Custom event name for finished a file load in the editor.
*/
exports.EVENT_FILE_LOAD_COMPLETE = 'live.file.load.complete';
/**
* Custom event name for adding a notification.
*
* Expects a {@link EditorNotification} as the event details.
*/
exports.EVENT_NOTIFICATION_ADD = 'live.notification.add';
/**
* Custom event name for marking a notification as read.
*
* Expects a {@link EditorNotification} as the event details.
*/
exports.EVENT_NOTIFICATION_READ = 'live.notification.read';
/**
* Custom event name for opening a notification.
*
* Expects a {@link EditorNotification} as the event details.
*/
exports.EVENT_NOTIFICATION_SHOW = 'live.notification.show';
/**
* Custom event name for after updating the project type for the editor.
*/
exports.EVENT_PROJECT_TYPE_UPDATE = 'live.projectType.update';
/**
* Custom event name for triggering a render.
*/
exports.EVENT_RENDER = 'live.render';
/**
* Custom event after a render completes.
*/
exports.EVENT_RENDER_COMPLETE = 'live.render.complete';
/**
* Custom event to save the current data.
*
* This is triggered when the user uses cmd+s.
*/
exports.EVENT_SAVE = 'live.save';
/**
* Custom event name for opening a toast.
*
* Expects a {@link ToastConfig} as the event details.
*/
exports.EVENT_TOAST_SHOW = 'live.toast.show';
/**
* Custom event for loading a workspace.
*
* Expects a {@link WorkspaceData} as the event details.
*/
exports.EVENT_WORKSPACE_LOAD = 'live.workspace.load';
//# sourceMappingURL=events.js.map