@liveblocks/core
Advanced tools
Comparing version 0.19.3-beta1 to 0.19.3-beta2
@@ -735,6 +735,9 @@ /** | ||
} | ||
interface HistoryEvent { | ||
declare type HistoryEvent = { | ||
canUndo: boolean; | ||
canRedo: boolean; | ||
} | ||
}; | ||
declare type PendingHasModificationsEvent = { | ||
hasPendingStorageModifications: boolean; | ||
}; | ||
declare type BroadcastOptions = { | ||
@@ -856,5 +859,15 @@ /** | ||
* }); | ||
*/ | ||
(type: "history", listener: Callback<HistoryEvent>): () => void; | ||
/** | ||
* Subscribe to pending storage modifications updates. | ||
* | ||
* @returns Unsubscribe function. | ||
* | ||
* @example | ||
* room.subscribe("pending-storage-modifications", ({ hasPendingStorageModifications }) => { | ||
* // Do something | ||
* }); | ||
*/ | ||
(type: "history", listener: Callback<HistoryEvent>): () => void; | ||
(type: "pending-storage-modifications", listener: Callback<PendingHasModificationsEvent>): () => void; | ||
}; | ||
@@ -861,0 +874,0 @@ /** |
{ | ||
"name": "@liveblocks/core", | ||
"version": "0.19.3-beta1", | ||
"version": "0.19.3-beta2", | ||
"description": "Shared code and foundational internals for Liveblocks", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
187520
5778
2