@univerjs/core
Advanced tools
Comparing version 0.5.4-nightly.202501161606 to 0.5.4-nightly.202501170612
@@ -10,49 +10,33 @@ import { IDisposable, Injector } from '../common/di'; | ||
/** | ||
* The onStarting event is fired when lifecycle stage is Starting. | ||
* @param callback Callback function that will be called when the event is fired | ||
* @returns A disposable object that can be used to unsubscribe from the event | ||
* @deprecated use `univerAPI.addEvent(univerAPI.Event.LifecycleChanged)` as instead | ||
*/ | ||
onStarting(callback: () => void): IDisposable; | ||
/** | ||
* The onReady event is fired when lifecycle stage is Ready. | ||
* @param callback Callback function that will be called when the event is fired | ||
* @returns A disposable object that can be used to unsubscribe from the event | ||
* @deprecated use `univerAPI.addEvent(univerAPI.Event.LifecycleChanged)` as instead | ||
*/ | ||
onReady(callback: () => void): IDisposable; | ||
/** | ||
* The onRendered event is fired when lifecycle stage is Rendered. | ||
* @param callback Callback function that will be called when the event is fired | ||
* @returns A disposable object that can be used to unsubscribe from the event | ||
* @deprecated use `univerAPI.addEvent(univerAPI.Event.LifecycleChanged, () => {})` as instead | ||
*/ | ||
onRendered(callback: () => void): IDisposable; | ||
/** | ||
* The onSteady event is fired when lifecycle stage is Steady. | ||
* @param callback Callback function that will be called when the event is fired | ||
* @returns A disposable object that can be used to unsubscribe from the event | ||
* @deprecated use `univerAPI.addEvent(univerAPI.Event.LifecycleChanged, () => {})` as instead | ||
*/ | ||
onSteady(callback: () => void): IDisposable; | ||
/** | ||
* Hook that fires before an undo operation is executed. | ||
* @param callback Function to be called when the event is triggered | ||
* @returns A disposable object that can be used to unsubscribe from the event | ||
* @deprecated use `univerAPI.addEvent(univerAPI.Event.BeforeUndo, () => {})` as instead | ||
*/ | ||
onBeforeUndo(callback: (action: IUndoRedoItem) => void): IDisposable; | ||
/** | ||
* Hook that fires after an undo operation is executed. | ||
* @param callback Function to be called when the event is triggered | ||
* @returns A disposable object that can be used to unsubscribe from the event | ||
* @deprecated use `univerAPI.addEvent(univerAPI.Event.Undo, () => {})` as instead | ||
*/ | ||
onUndo(callback: (action: IUndoRedoItem) => void): IDisposable; | ||
/** | ||
* Hook that fires before a redo operation is executed. | ||
* @param callback Function to be called when the event is triggered | ||
* @returns A disposable object that can be used to unsubscribe from the event | ||
* @deprecated use `univerAPI.addEvent(univerAPI.Event.BeforeRedo, () => {})` as instead | ||
*/ | ||
onBeforeRedo(callback: (action: IUndoRedoItem) => void): IDisposable; | ||
/** | ||
* Hook that fires after a redo operation is executed. | ||
* @param callback Function to be called when the event is triggered | ||
* @returns A disposable object that can be used to unsubscribe from the event | ||
* @deprecated use `univerAPI.addEvent(univerAPI.Event.Redo, () => {})` as instead | ||
*/ | ||
onRedo(callback: (action: IUndoRedoItem) => void): IDisposable; | ||
} |
{ | ||
"name": "@univerjs/core", | ||
"version": "0.5.4-nightly.202501161606", | ||
"version": "0.5.4-nightly.202501170612", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Core library for Univer.", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1892991
34271