@fileverse-dev/ddoc 2.3.0-rtc-patch-6 → 2.3.0-rtc-patch-8
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-hg7AuCL3.mjs → ccip-Bpix1pa5.mjs} +1 -1
- package/dist/{index-Bvk48XKE.mjs → index-DpZqG2yO.mjs} +13693 -13717
- package/dist/index.es.js +1 -1
- package/dist/package/sync-local/actions/index.d.ts +2 -0
- package/dist/package/sync-local/socketClient.d.ts +1 -1
- package/dist/package/sync-local/types/index.d.ts +2 -0
- package/dist/package/sync-local/useSyncMachine.d.ts +1 -1
- package/dist/package/types.d.ts +3 -1
- package/package.json +1 -1
- package/dist/package/sync-local/utils/fetchIpfsJsonContent.d.ts +0 -1
- package/dist/package/sync-local/utils/uploadFileToIPFS.d.ts +0 -3
package/dist/index.es.js
CHANGED
@@ -22,6 +22,8 @@ export declare const websocketInitializer: (context: SyncMachineContext, event:
|
|
22
22
|
isOwner: any;
|
23
23
|
isEns: any;
|
24
24
|
wsUrl: any;
|
25
|
+
onCollaborationCommit: (file: File) => Promise<string>;
|
26
|
+
onFetchCommitContent: (cid: string) => Promise<any>;
|
25
27
|
};
|
26
28
|
export declare const yjsUpdateHandler: (context: SyncMachineContext, event: SyncMachinEvent) => {
|
27
29
|
uncommittedUpdatesIdList?: undefined;
|
@@ -61,6 +61,8 @@ export interface SyncMachineContext {
|
|
61
61
|
errorMaxRetryCount: number;
|
62
62
|
errorMessage: string;
|
63
63
|
onCollaborationConnectCallback: (response: any) => void;
|
64
|
+
onCollaborationCommit: (file: File) => Promise<string>;
|
65
|
+
onFetchCommitContent: (cid: string) => Promise<any>;
|
64
66
|
}
|
65
67
|
export interface ErrorResponseMessage {
|
66
68
|
status: boolean;
|
package/dist/package/types.d.ts
CHANGED
@@ -155,6 +155,8 @@ export interface DdocProps extends CommentAccountProps {
|
|
155
155
|
*/
|
156
156
|
documentStyling?: DocumentStyling;
|
157
157
|
onCollaborationConnectCallback?: (response: any) => void;
|
158
|
+
onCollaborationCommit?: (file: File) => Promise<string>;
|
159
|
+
onFetchCommitContent?: (cid: string) => Promise<any>;
|
158
160
|
}
|
159
161
|
export interface IEditorSelectionData {
|
160
162
|
from: number;
|
@@ -195,7 +197,7 @@ export interface ICollaborationConfig {
|
|
195
197
|
contractAddress?: string;
|
196
198
|
ownerAddress?: string;
|
197
199
|
wsUrl: string;
|
198
|
-
|
200
|
+
roomInfo?: {
|
199
201
|
documentTitle: string;
|
200
202
|
portalAddress: string;
|
201
203
|
commentKey: string;
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
export declare function fetchIpfsJsonContent(cid: string): Promise<any>;
|