@fileverse-dev/ddoc 2.3.0-rtc-patch-2 → 2.3.0-rtc-patch-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.
- package/dist/{ccip-CBrV9CCB.mjs → ccip-mgqLOHzV.mjs} +1 -1
- package/dist/{index-CjlFbMdx.mjs → index-4USFk2FD.mjs} +820 -811
- package/dist/index.es.js +1 -1
- package/dist/package/sync-local/actions/index.d.ts +12 -2
- package/dist/package/sync-local/socketClient.d.ts +0 -1
- package/dist/package/sync-local/types/index.d.ts +0 -2
- package/dist/package/sync-local/useSyncMachine.d.ts +2 -1
- package/dist/package/types.d.ts +2 -0
- package/package.json +4 -3
package/dist/index.es.js
CHANGED
@@ -14,14 +14,14 @@ export declare const initAwarenessHandler: (context: SyncMachineContext) => {
|
|
14
14
|
export declare const updateConnectionStateHandler: (context: SyncMachineContext) => {
|
15
15
|
isConnected: boolean;
|
16
16
|
};
|
17
|
-
export declare const websocketInitializer: (
|
17
|
+
export declare const websocketInitializer: (_context: SyncMachineContext, event: SyncMachinEvent) => {
|
18
18
|
socketClient: SocketClient;
|
19
|
-
username: any;
|
20
19
|
initialUpdate: any;
|
21
20
|
roomKey: any;
|
22
21
|
roomId: any;
|
23
22
|
isOwner: any;
|
24
23
|
isEns: any;
|
24
|
+
wsUrl: any;
|
25
25
|
};
|
26
26
|
export declare const yjsUpdateHandler: (context: SyncMachineContext, event: SyncMachinEvent) => {
|
27
27
|
uncommittedUpdatesIdList?: undefined;
|
@@ -118,10 +118,20 @@ export declare const handleDisconnectionDueToError: (context: SyncMachineContext
|
|
118
118
|
};
|
119
119
|
export declare const terminateSessionHandler: (context: SyncMachineContext) => {
|
120
120
|
socketClient: null;
|
121
|
+
roomId: string;
|
121
122
|
roomMembers: never[];
|
122
123
|
isConnected: boolean;
|
123
124
|
awareness: null;
|
124
125
|
_awarenessUpdateHandler: null;
|
126
|
+
roomKey: string;
|
127
|
+
wsUrl: string;
|
125
128
|
uncommittedUpdatesIdList: never[];
|
126
129
|
updateQueue: never[];
|
130
|
+
isOwner: boolean;
|
131
|
+
isReady: boolean;
|
132
|
+
isNewDoc: boolean;
|
133
|
+
contentTobeAppliedQueue: never[];
|
134
|
+
initialUpdate: null;
|
135
|
+
errorCount: number;
|
136
|
+
errorMessage: string;
|
127
137
|
};
|
@@ -125,7 +125,6 @@ export interface ISocketInitConfig {
|
|
125
125
|
onError: (err: string) => void;
|
126
126
|
onWsEvent: EventHandler;
|
127
127
|
roomId: string;
|
128
|
-
username: string;
|
129
128
|
}
|
130
129
|
export declare enum SocketStatusEnum {
|
131
130
|
CLOSED = "CLOSED",
|
@@ -153,7 +152,6 @@ export interface IpfsUploadResponse {
|
|
153
152
|
mimetype: string;
|
154
153
|
}
|
155
154
|
export interface IAuthArgs {
|
156
|
-
username: string;
|
157
155
|
collaborationToken: string;
|
158
156
|
documentId: string;
|
159
157
|
ownerToken?: string;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SyncMachineContext } from '.';
|
2
2
|
|
3
3
|
interface IConnectConf {
|
4
|
-
username
|
4
|
+
username?: string;
|
5
5
|
roomKey: string;
|
6
6
|
roomId: string;
|
7
7
|
isOwner: boolean;
|
@@ -9,6 +9,7 @@ interface IConnectConf {
|
|
9
9
|
contractAddress?: string;
|
10
10
|
ownerAddress?: string;
|
11
11
|
isEns?: boolean;
|
12
|
+
wsUrl: string;
|
12
13
|
}
|
13
14
|
export declare const useSyncMachine: (config: Partial<SyncMachineContext>) => {
|
14
15
|
machine: (import('xstate').State<SyncMachineContext, {
|
package/dist/package/types.d.ts
CHANGED
@@ -7,6 +7,7 @@ import { IComment } from './extensions/comment';
|
|
7
7
|
|
8
8
|
export declare const DdocEditorProps: EditorProps;
|
9
9
|
export interface IDocCollabUsers {
|
10
|
+
clientId: number;
|
10
11
|
name: string;
|
11
12
|
isEns: string;
|
12
13
|
color: string;
|
@@ -155,6 +156,7 @@ export interface DdocProps extends CommentAccountProps {
|
|
155
156
|
ownerEdSecret?: string;
|
156
157
|
contractAddress?: string;
|
157
158
|
ownerAddress?: string;
|
159
|
+
wsUrl: string;
|
158
160
|
};
|
159
161
|
/**
|
160
162
|
* Document styling configuration
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@fileverse-dev/ddoc",
|
3
3
|
"private": false,
|
4
4
|
"description": "DDoc",
|
5
|
-
"version": "2.3.0-rtc-patch-
|
5
|
+
"version": "2.3.0-rtc-patch-4",
|
6
6
|
"main": "dist/index.es.js",
|
7
7
|
"module": "dist/index.es.js",
|
8
8
|
"exports": {
|
@@ -24,7 +24,8 @@
|
|
24
24
|
"build": "tsc && vite build",
|
25
25
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
|
26
26
|
"preview": "vite preview",
|
27
|
-
"prepare": "husky install"
|
27
|
+
"prepare": "husky install",
|
28
|
+
"build:watch": "vite build --watch"
|
28
29
|
},
|
29
30
|
"lint-staged": {
|
30
31
|
"**/*.{js,jsx,ts,tsx}": [
|
@@ -39,7 +40,7 @@
|
|
39
40
|
"@_ueberdosis/prosemirror-tables": "^1.1.3",
|
40
41
|
"@aarkue/tiptap-math-extension": "^1.3.3",
|
41
42
|
"@fileverse-dev/md2slides": "^0.0.8",
|
42
|
-
"@fileverse/crypto": "^0.0.
|
43
|
+
"@fileverse/crypto": "^0.0.13",
|
43
44
|
"@fileverse/ui": "^4.1.7-patch-21",
|
44
45
|
"@noble/ciphers": "^1.3.0",
|
45
46
|
"@noble/curves": "^1.9.7",
|