@fileverse-dev/ddoc 3.0.39-toast-5 → 3.0.39-toast-7

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-TPQWLHRs.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-dlGpn7Go.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
@@ -0,0 +1 @@
1
+ export declare const useRtcWebsocketDisconnector: (syncState: any, enableCollaboration: boolean | undefined) => void;
@@ -113,25 +113,6 @@ export declare const disconnectedStateHandler: () => {
113
113
  uncommittedUpdatesIdList: never[];
114
114
  updateQueue: never[];
115
115
  };
116
- export declare const handleDisconnectionDueToError: (_context: SyncMachineContext, _event: SyncMachinEvent) => {
117
- socketClient: null;
118
- roomId: string;
119
- roomMembers: never[];
120
- isConnected: boolean;
121
- awareness: null;
122
- _awarenessUpdateHandler: null;
123
- roomKey: string;
124
- wsUrl: string;
125
- uncommittedUpdatesIdList: never[];
126
- updateQueue: never[];
127
- isOwner: boolean;
128
- isReady: boolean;
129
- isNewDoc: boolean;
130
- contentTobeAppliedQueue: never[];
131
- initialUpdate: null;
132
- errorCount: number;
133
- errorMessage: string;
134
- };
135
116
  export declare const terminateSessionHandler: (context: SyncMachineContext) => {
136
117
  socketClient: null;
137
118
  roomId: string;
@@ -25,5 +25,15 @@ export declare const useSyncMachine: (config: Partial<SyncMachineContext>) => {
25
25
  terminateSession: () => void;
26
26
  awareness: any;
27
27
  hasCollabContentInitialised: boolean;
28
+ state: import('xstate').State<SyncMachineContext, {
29
+ type: string;
30
+ data: any;
31
+ }, any, {
32
+ value: any;
33
+ context: SyncMachineContext;
34
+ }, import('xstate').ResolveTypegenMeta<import('xstate').TypegenDisabled, {
35
+ type: string;
36
+ data: any;
37
+ }, import('xstate').BaseActionObject, import('xstate').ServiceMap>>;
28
38
  };
29
39
  export {};