@hocuspocus/extension-database 2.0.3 → 2.0.4
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.
|
@@ -2,6 +2,12 @@ export interface CloseEvent {
|
|
|
2
2
|
code: number;
|
|
3
3
|
reason: string;
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* The server is terminating the connection because a data frame was received
|
|
7
|
+
* that is too large.
|
|
8
|
+
* See: https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/code
|
|
9
|
+
*/
|
|
10
|
+
export declare const MessageTooBig: CloseEvent;
|
|
5
11
|
/**
|
|
6
12
|
* The server successfully processed the request, asks that the requester reset
|
|
7
13
|
* its document view, and is not returning any content.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CompleteHocuspocusProviderWebsocketConfiguration, HocuspocusProviderWebsocket } from './HocuspocusProviderWebsocket';
|
|
2
|
+
export type TiptapCollabProviderWebsocketConfiguration = Partial<CompleteHocuspocusProviderWebsocketConfiguration> & AdditionalTiptapCollabProviderWebsocketConfiguration;
|
|
3
|
+
export interface AdditionalTiptapCollabProviderWebsocketConfiguration {
|
|
4
|
+
/**
|
|
5
|
+
* A Hocuspocus Cloud App ID, get one here: https://collab.tiptap.dev
|
|
6
|
+
*/
|
|
7
|
+
appId: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class TiptapCollabProviderWebsocket extends HocuspocusProviderWebsocket {
|
|
10
|
+
constructor(configuration: TiptapCollabProviderWebsocketConfiguration);
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hocuspocus/extension-database",
|
|
3
3
|
"description": "a generic Hocuspocus persistence driver for the database",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.4",
|
|
5
5
|
"homepage": "https://hocuspocus.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"hocuspocus",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@hocuspocus/server": "^2.0.
|
|
29
|
+
"@hocuspocus/server": "^2.0.4"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"yjs": "^13.5.29"
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HocuspocusProvider, HocuspocusProviderConfiguration } from './HocuspocusProvider';
|
|
2
|
-
import { HocuspocusProviderWebsocketConfiguration } from './HocuspocusProviderWebsocket';
|
|
3
|
-
export type HocuspocusCloudProviderConfiguration = Required<Pick<HocuspocusProviderConfiguration, 'name'>> & Partial<HocuspocusProviderConfiguration> & Partial<Pick<HocuspocusProviderWebsocketConfiguration, 'url'>> & AdditionalHocuspocusCloudProviderConfiguration;
|
|
4
|
-
export interface AdditionalHocuspocusCloudProviderConfiguration {
|
|
5
|
-
/**
|
|
6
|
-
* A Hocuspocus Cloud key, get one here: https://hocuspocus.cloud/
|
|
7
|
-
*/
|
|
8
|
-
key: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class HocuspocusCloudProvider extends HocuspocusProvider {
|
|
11
|
-
constructor(configuration: HocuspocusCloudProviderConfiguration);
|
|
12
|
-
}
|