@fileverse-dev/ddoc 2.3.0-rtc-patch-28 → 2.3.0-rtc-patch-29

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-C4ip3bN4.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-CT3AMJnE.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
@@ -139,3 +139,6 @@ export declare const terminateSessionHandler: (context: SyncMachineContext) => {
139
139
  errorCount: number;
140
140
  errorMessage: string;
141
141
  };
142
+ export declare const setDocumentDecryptionStateHandler: (_: SyncMachineContext, event: SyncMachinEvent) => {
143
+ initalDocumentDecryptionState: any;
144
+ };
@@ -9,7 +9,7 @@ export declare const syncMachineServices: {
9
9
  queueOffset: number;
10
10
  } | undefined>;
11
11
  processCommit: (context: SyncMachineContext) => (send: Sender<SyncMachinEvent>) => Promise<void>;
12
- syncLatestCommitFromIpfs: (context: SyncMachineContext) => () => Promise<{
12
+ syncLatestCommitFromIpfs: (context: SyncMachineContext) => (send: Sender<SyncMachinEvent>) => Promise<{
13
13
  ids: string[];
14
14
  unbroadcastedUpdate: string | null;
15
15
  }>;
@@ -60,6 +60,7 @@ export interface SyncMachineContext {
60
60
  errorCount: number;
61
61
  errorMaxRetryCount: number;
62
62
  errorMessage: string;
63
+ initalDocumentDecryptionState: 'done' | 'pending';
63
64
  onCollaborationConnectCallback: (response: any) => void;
64
65
  onCollaborationCommit: (file: File) => Promise<string>;
65
66
  onFetchCommitContent: (cid: string) => Promise<any>;
@@ -26,5 +26,6 @@ export declare const useSyncMachine: (config: Partial<SyncMachineContext>) => {
26
26
  error: any;
27
27
  terminateSession: () => void;
28
28
  awareness: any;
29
+ hasCollabContentInitialised: boolean;
29
30
  };
30
31
  export {};
@@ -160,6 +160,7 @@ export interface DdocProps extends CommentAccountProps {
160
160
  onCollabSessionTermination?: () => void;
161
161
  onUnMergedUpdates?: (state: boolean) => void;
162
162
  onCollabError?: (error: any) => void;
163
+ isExistingCollabSession?: boolean;
163
164
  }
164
165
  export interface IEditorSelectionData {
165
166
  from: number;
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-28",
5
+ "version": "2.3.0-rtc-patch-29",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {