@univerjs-pro/collaboration 0.4.0 → 0.4.1-experimental.20241023-bbb123f
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/models/collaboration-events.d.ts +9 -0
- package/lib/umd/index.js +1 -1
- package/package.json +17 -29
package/lib/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { SheetTransformController } from './controllers/sheet-transform/sheet-transform.controller';
|
|
2
2
|
export { DocTransformController } from './controllers/doc-transform/doc-transform.controller';
|
|
3
3
|
export { type IChangeset, parseChangesetToProtocol, parseMutationToProtocol, parseProtocolChangeset, parseProtocolCommand, parseProtocolMutation, } from './models/changeset';
|
|
4
|
-
export { CollaborationEvent, type IAcknowledgedChangeset, type IAcknowledgementEvent, type ICollaborationEvent, type ICollaborationUser, type IFetchingMissEvent, type IFetchOperationsEvent, type INewChangesetsEvent, type INewHostEvent, type IOperationEvent, type IPermissionUpdateEvent, type IPseudoFetchMissingResultEvent, type IRejectedChangeset, type IRejectionEvent, type IRequestHostEvent, type IShouldCloseConnEvent, type ISubmitChangesetEvent, type ITerminateEvent, type IUpdateCursorEvent, type IUserJoinEvent, type IUserLeaveEvent, type IUserSelectionEvent, } from './models/collaboration-events';
|
|
4
|
+
export { CollaborationEvent, type IAcknowledgedChangeset, type IAcknowledgementEvent, type ICollaborationEvent, type ICollaborationUser, type IFetchingMissEvent, type IFetchOperationsEvent, type INewChangesetsEvent, type INewHostEvent, type IOperationEvent, type IPermissionUpdateEvent, type IPseudoFetchMissingResultEvent, type IRejectedChangeset, type IRejectionEvent, type IRequestHostEvent, type IRetryEvent, type IShouldCloseConnEvent, type ISubmitChangesetEvent, type ITerminateEvent, type IUpdateCursorEvent, type IUserJoinEvent, type IUserLeaveEvent, type IUserSelectionEvent, } from './models/collaboration-events';
|
|
5
5
|
export { type ICombRequestEvent, type ICombResponseEvent, type IHeartbeatRequestEvent, type IHeartbeatResponseEvent, type IHelloRequestEvent, type IHelloResponseEvent, type IIngestQuestEvent, type IJoinRequestEvent, type IJoinResponseEvent, type ILeaveRequestEvent, type IRecvResponseEvent, } from './models/socket-events';
|
|
6
6
|
export { UniverCollaborationPlugin } from './plugin';
|
|
7
7
|
export { CompressMutationService } from './services/compress-mutation/compress-mutation-service';
|
|
@@ -29,6 +29,11 @@ export declare enum CollaborationEvent {
|
|
|
29
29
|
* the changeset should be rejected.
|
|
30
30
|
*/
|
|
31
31
|
CHANGESET_REJ = "changeset_rej",
|
|
32
|
+
/**
|
|
33
|
+
* The submitted changeset could not be acknowledged by unexpected server error, so
|
|
34
|
+
* the changeset should be resent.
|
|
35
|
+
*/
|
|
36
|
+
CHANGESET_SHOULD_RETRY = "changeset_should_retry",
|
|
32
37
|
/**
|
|
33
38
|
* When a changeset sent by the client is acknowledged by the server,
|
|
34
39
|
* the server should broadcast this changeset to other clients.
|
|
@@ -151,6 +156,10 @@ export interface IRejectionEvent {
|
|
|
151
156
|
changeset: IRejectedChangeset;
|
|
152
157
|
};
|
|
153
158
|
}
|
|
159
|
+
export interface IRetryEvent {
|
|
160
|
+
eventID: CollaborationEvent.CHANGESET_SHOULD_RETRY;
|
|
161
|
+
data: IChangeset;
|
|
162
|
+
}
|
|
154
163
|
export interface ICollaborationUser {
|
|
155
164
|
userID: string;
|
|
156
165
|
memberID: string;
|