@hocuspocus/extension-sqlite 2.12.1-rc.0 → 2.12.2
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.
|
@@ -93,7 +93,7 @@ export declare class Redis implements Extension {
|
|
|
93
93
|
/**
|
|
94
94
|
* Release the Redis lock, so other instances can store documents.
|
|
95
95
|
*/
|
|
96
|
-
afterStoreDocument({ documentName }: afterStoreDocumentPayload): Promise<void>;
|
|
96
|
+
afterStoreDocument({ documentName, socketId }: afterStoreDocumentPayload): Promise<void>;
|
|
97
97
|
/**
|
|
98
98
|
* Handle awareness update messages received directly by this Hocuspocus instance.
|
|
99
99
|
*/
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { AbstractType, YArrayEvent } from 'yjs';
|
|
2
|
+
import * as Y from 'yjs';
|
|
2
3
|
import { HocuspocusProvider, HocuspocusProviderConfiguration } from './HocuspocusProvider.js';
|
|
3
4
|
import { TiptapCollabProviderWebsocket } from './TiptapCollabProviderWebsocket.js';
|
|
4
5
|
import type { TCollabComment, TCollabThread, THistoryVersion } from './types.js';
|
|
5
|
-
export type TiptapCollabProviderConfiguration = Required<Pick<HocuspocusProviderConfiguration, 'name'>> & Partial<HocuspocusProviderConfiguration> & (Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'websocketProvider'>> | Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'appId'>> | Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'baseUrl'>>)
|
|
6
|
+
export type TiptapCollabProviderConfiguration = Required<Pick<HocuspocusProviderConfiguration, 'name'>> & Partial<HocuspocusProviderConfiguration> & (Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'websocketProvider'>> | Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'appId'>> | Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'baseUrl'>>) & Pick<AdditionalTiptapCollabProviderConfiguration, 'user'>;
|
|
6
7
|
export interface AdditionalTiptapCollabProviderConfiguration {
|
|
7
8
|
/**
|
|
8
9
|
* A Hocuspocus Cloud App ID, get one here: https://cloud.tiptap.dev
|
|
@@ -13,9 +14,11 @@ export interface AdditionalTiptapCollabProviderConfiguration {
|
|
|
13
14
|
*/
|
|
14
15
|
baseUrl?: string;
|
|
15
16
|
websocketProvider?: TiptapCollabProviderWebsocket;
|
|
17
|
+
user?: string;
|
|
16
18
|
}
|
|
17
19
|
export declare class TiptapCollabProvider extends HocuspocusProvider {
|
|
18
20
|
tiptapCollabConfigurationPrefix: string;
|
|
21
|
+
userData?: Y.PermanentUserData;
|
|
19
22
|
constructor(configuration: TiptapCollabProviderConfiguration);
|
|
20
23
|
/**
|
|
21
24
|
* note: this will only work if your server loaded @hocuspocus-pro/extension-history, or if you are on a Tiptap business plan.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hocuspocus/extension-sqlite",
|
|
3
3
|
"description": "a generic Hocuspocus persistence driver for the sqlite",
|
|
4
|
-
"version": "2.12.
|
|
4
|
+
"version": "2.12.2",
|
|
5
5
|
"homepage": "https://hocuspocus.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"hocuspocus",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@hocuspocus/extension-database": "^2.12.
|
|
30
|
+
"@hocuspocus/extension-database": "^2.12.2",
|
|
31
31
|
"kleur": "^4.1.4",
|
|
32
32
|
"sqlite3": "^5.0.11"
|
|
33
33
|
},
|