New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@univerjs/core

Package Overview
Dependencies
Maintainers
0
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@univerjs/core - npm Package Compare versions

Comparing version 0.5.4-nightly.202501161606 to 0.5.4-nightly.202501170612

32

lib/types/facade/f-hooks.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc