@hocuspocus/extension-sqlite 2.2.1 → 2.2.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.
|
@@ -72,6 +72,17 @@ export declare class HocuspocusProvider extends EventEmitter {
|
|
|
72
72
|
intervals: any;
|
|
73
73
|
isConnected: boolean;
|
|
74
74
|
constructor(configuration: HocuspocusProviderConfiguration);
|
|
75
|
+
boundBroadcastChannelSubscriber: (data: ArrayBuffer) => void;
|
|
76
|
+
boundBeforeUnload: () => void;
|
|
77
|
+
boundOnOpen: (event: Event) => Promise<void>;
|
|
78
|
+
boundOnMessage: (event: MessageEvent) => void;
|
|
79
|
+
boundOnClose: (event: CloseEvent) => void;
|
|
80
|
+
boundOnStatus: ({ status }: onStatusParameters) => void;
|
|
81
|
+
forwardConnect: (e: any) => this;
|
|
82
|
+
forwardOpen: (e: any) => this;
|
|
83
|
+
forwardClose: (e: any) => this;
|
|
84
|
+
forwardDisconnect: (e: any) => this;
|
|
85
|
+
forwardDestroy: (e: any) => this;
|
|
75
86
|
onStatus({ status }: onStatusParameters): void;
|
|
76
87
|
setConfiguration(configuration?: Partial<HocuspocusProviderConfiguration>): void;
|
|
77
88
|
get document(): Y.Doc;
|
|
@@ -79,7 +90,6 @@ export declare class HocuspocusProvider extends EventEmitter {
|
|
|
79
90
|
get hasUnsyncedChanges(): boolean;
|
|
80
91
|
updateUnsyncedChanges(unsyncedChanges?: number): void;
|
|
81
92
|
forceSync(): void;
|
|
82
|
-
boundBeforeUnload: () => void;
|
|
83
93
|
beforeUnload(): void;
|
|
84
94
|
registerEventListeners(): void;
|
|
85
95
|
sendStateless(payload: string): void;
|
|
@@ -101,7 +111,6 @@ export declare class HocuspocusProvider extends EventEmitter {
|
|
|
101
111
|
permissionDeniedHandler(reason: string): void;
|
|
102
112
|
authenticatedHandler(scope: string): void;
|
|
103
113
|
get broadcastChannel(): string;
|
|
104
|
-
boundBroadcastChannelSubscriber: (data: ArrayBuffer) => void;
|
|
105
114
|
broadcastChannelSubscriber(data: ArrayBuffer): void;
|
|
106
115
|
subscribeToBroadcastChannel(): void;
|
|
107
116
|
disconnectBroadcastChannel(): void;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { HocuspocusProvider, HocuspocusProviderConfiguration } from './HocuspocusProvider.js';
|
|
2
|
-
|
|
2
|
+
import { TiptapCollabProviderWebsocket } from './TiptapCollabProviderWebsocket.js';
|
|
3
|
+
export type TiptapCollabProviderConfiguration = Required<Pick<HocuspocusProviderConfiguration, 'name'>> & Partial<HocuspocusProviderConfiguration> & (Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'websocketProvider'>> | Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'appId'>>);
|
|
3
4
|
export interface AdditionalTiptapCollabProviderConfiguration {
|
|
4
5
|
/**
|
|
5
6
|
* A Hocuspocus Cloud App ID, get one here: https://collab.tiptap.dev
|
|
6
7
|
*/
|
|
7
|
-
appId
|
|
8
|
+
appId?: string;
|
|
9
|
+
websocketProvider?: TiptapCollabProviderWebsocket;
|
|
8
10
|
}
|
|
9
11
|
export declare class TiptapCollabProvider extends HocuspocusProvider {
|
|
10
12
|
constructor(configuration: TiptapCollabProviderConfiguration);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Document from './Document.js';
|
|
2
2
|
import type { Hocuspocus } from './Hocuspocus.js';
|
|
3
|
-
import type { DirectConnection as DirectConnectionInterface } from './types';
|
|
3
|
+
import type { DirectConnection as DirectConnectionInterface } from './types.js';
|
|
4
4
|
export declare class DirectConnection implements DirectConnectionInterface {
|
|
5
5
|
document: Document | null;
|
|
6
6
|
instance: Hocuspocus;
|
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.2.
|
|
4
|
+
"version": "2.2.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.2.
|
|
30
|
+
"@hocuspocus/extension-database": "^2.2.2",
|
|
31
31
|
"kleur": "^4.1.4",
|
|
32
32
|
"sqlite3": "^5.0.11"
|
|
33
33
|
},
|