@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/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-Bvk48XKE.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-DpZqG2yO.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
@@ -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;
@@ -8,7 +8,7 @@ interface ISocketClientConfig {
8
8
  contractAddress?: string;
9
9
  ownerAddress?: string;
10
10
  onCollaborationConnectCallback: (response: any) => void;
11
- extraInfo?: {
11
+ roomInfo?: {
12
12
  documentTitle: string;
13
13
  portalAddress: string;
14
14
  commentKey: string;
@@ -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;
@@ -10,7 +10,7 @@ interface IConnectConf {
10
10
  ownerAddress?: string;
11
11
  isEns?: boolean;
12
12
  wsUrl: string;
13
- extraInfo?: {
13
+ roomInfo?: {
14
14
  documentTitle: string;
15
15
  portalAddress: string;
16
16
  commentKey: string;
@@ -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
- extraInfo?: {
200
+ roomInfo?: {
199
201
  documentTitle: string;
200
202
  portalAddress: string;
201
203
  commentKey: string;
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-6",
5
+ "version": "2.3.0-rtc-patch-8",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -1 +0,0 @@
1
- export declare function fetchIpfsJsonContent(cid: string): Promise<any>;
@@ -1,3 +0,0 @@
1
- import { IpfsUploadResponse } from '../types';
2
-
3
- export declare const uploadFileToIPFS: (file: File) => Promise<IpfsUploadResponse>;