@hocuspocus/extension-logger 2.15.1 → 2.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -147,7 +147,7 @@ export declare class TiptapCollabProvider extends HocuspocusProvider {
|
|
|
147
147
|
* @param options A set of options that control how the comment is deleted
|
|
148
148
|
* @returns The updated thread or null if the thread or comment is not found
|
|
149
149
|
*/
|
|
150
|
-
deleteComment(threadId: TCollabThread['id'], commentId: TCollabComment['id'], options
|
|
150
|
+
deleteComment(threadId: TCollabThread['id'], commentId: TCollabComment['id'], options?: DeleteCommentOptions): TCollabThread | null | undefined;
|
|
151
151
|
/**
|
|
152
152
|
* Start watching threads for changes
|
|
153
153
|
* @param callback The callback function to be called when a thread changes
|
|
@@ -50,10 +50,11 @@ export interface Extension {
|
|
|
50
50
|
onAwarenessUpdate?(data: onAwarenessUpdatePayload): Promise<any>;
|
|
51
51
|
onRequest?(data: onRequestPayload): Promise<any>;
|
|
52
52
|
onDisconnect?(data: onDisconnectPayload): Promise<any>;
|
|
53
|
+
beforeUnloadDocument?(data: beforeUnloadDocumentPayload): Promise<any>;
|
|
53
54
|
afterUnloadDocument?(data: afterUnloadDocumentPayload): Promise<any>;
|
|
54
55
|
onDestroy?(data: onDestroyPayload): Promise<any>;
|
|
55
56
|
}
|
|
56
|
-
export type HookName = 'onConfigure' | 'onListen' | 'onUpgrade' | 'onConnect' | 'connected' | 'onAuthenticate' | 'onCreateDocument' | 'onLoadDocument' | 'afterLoadDocument' | 'beforeHandleMessage' | 'beforeBroadcastStateless' | 'onStateless' | 'onChange' | 'onStoreDocument' | 'afterStoreDocument' | 'onAwarenessUpdate' | 'onRequest' | 'onDisconnect' | 'afterUnloadDocument' | 'onDestroy';
|
|
57
|
+
export type HookName = 'onConfigure' | 'onListen' | 'onUpgrade' | 'onConnect' | 'connected' | 'onAuthenticate' | 'onCreateDocument' | 'onLoadDocument' | 'afterLoadDocument' | 'beforeHandleMessage' | 'beforeBroadcastStateless' | 'onStateless' | 'onChange' | 'onStoreDocument' | 'afterStoreDocument' | 'onAwarenessUpdate' | 'onRequest' | 'onDisconnect' | 'beforeUnloadDocument' | 'afterUnloadDocument' | 'onDestroy';
|
|
57
58
|
export type HookPayloadByName = {
|
|
58
59
|
onConfigure: onConfigurePayload;
|
|
59
60
|
onListen: onListenPayload;
|
|
@@ -74,6 +75,7 @@ export type HookPayloadByName = {
|
|
|
74
75
|
onRequest: onRequestPayload;
|
|
75
76
|
onDisconnect: onDisconnectPayload;
|
|
76
77
|
afterUnloadDocument: afterUnloadDocumentPayload;
|
|
78
|
+
beforeUnloadDocument: beforeUnloadDocumentPayload;
|
|
77
79
|
onDestroy: onDestroyPayload;
|
|
78
80
|
};
|
|
79
81
|
export interface Configuration extends Extension {
|
|
@@ -310,6 +312,10 @@ export interface afterUnloadDocumentPayload {
|
|
|
310
312
|
instance: Hocuspocus;
|
|
311
313
|
documentName: string;
|
|
312
314
|
}
|
|
315
|
+
export interface beforeUnloadDocumentPayload {
|
|
316
|
+
instance: Hocuspocus;
|
|
317
|
+
documentName: string;
|
|
318
|
+
}
|
|
313
319
|
export interface DirectConnection {
|
|
314
320
|
transact(transaction: (document: Document) => void): Promise<void>;
|
|
315
321
|
disconnect(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hocuspocus/extension-logger",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.3",
|
|
4
4
|
"description": "hocuspocus logging extension",
|
|
5
5
|
"homepage": "https://hocuspocus.dev",
|
|
6
6
|
"keywords": [
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@hocuspocus/server": "^2.15.
|
|
32
|
+
"@hocuspocus/server": "^2.15.3"
|
|
33
33
|
},
|
|
34
34
|
"gitHead": "b3454a4ca289a84ddfb7fa5607a2d4b8d5c37e9d"
|
|
35
35
|
}
|