@univerjs-pro/collaboration 0.2.1 → 0.2.3
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.
|
@@ -2,12 +2,12 @@ import { ICellData, IObjectMatrixPrimitiveType, IRange, Nullable, RANGE_TYPE } f
|
|
|
2
2
|
|
|
3
3
|
export declare function toColumn(range: IRange): {
|
|
4
4
|
rangeType: RANGE_TYPE;
|
|
5
|
-
startColumn: number;
|
|
6
|
-
endColumn: number;
|
|
7
5
|
startAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType;
|
|
8
6
|
endAbsoluteRefType?: import('@univerjs/core').AbsoluteRefType;
|
|
9
7
|
startRow: number;
|
|
10
8
|
endRow: number;
|
|
9
|
+
startColumn: number;
|
|
10
|
+
endColumn: number;
|
|
11
11
|
};
|
|
12
12
|
export declare function moveRows(o: IObjectMatrixPrimitiveType<Nullable<ICellData>>, start: number, count: number, offset: number): void;
|
|
13
13
|
export declare function moveColumns(o: IObjectMatrixPrimitiveType<Nullable<ICellData>>, start: number, count: number, offset: number): void;
|
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, parseProtocolCommand, parseChangesetToProtocol, parseMutationToProtocol, parseProtocolChangeset, 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 IPseudoFetchMissingResultEvent, type IRejectedChangeset, type IRejectionEvent, type IRequestHostEvent, 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 IPseudoFetchMissingResultEvent, type IRejectedChangeset, type IRejectionEvent, type IRequestHostEvent, type ISubmitChangesetEvent, type ITerminateEvent, type IUpdateCursorEvent, type IUserJoinEvent, type IUserLeaveEvent, type IUserSelectionEvent, type IPermissionUpdateEvent, type IShouldCloseConnEvent, } 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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICollaMsgErrorEvent, ICollaMsgJoin, ICollaMsgLeave, ICommentUpdate, ILiveShareNewHost, ILiveShareOperation, ILiveShareRequestHost, ILiveShareTerminate, IChangeset as IProtocolChangeset, IUpdateCursor, UniverType } from '@univerjs/protocol';
|
|
1
|
+
import { ICollaMsgErrorEvent, ICollaMsgJoin, ICollaMsgLeave, ICommentUpdate, ILiveShareNewHost, ILiveShareOperation, ILiveShareRequestHost, ILiveShareTerminate, IChangeset as IProtocolChangeset, IShouldCloseConn, IUpdateCursor, IUpdatePermissionObj, UniverType } from '@univerjs/protocol';
|
|
2
2
|
import { IChangeset } from './changeset';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -88,7 +88,9 @@ export declare enum CollaborationEvent {
|
|
|
88
88
|
*/
|
|
89
89
|
MSG_FOR_ERROR = "error_msg",
|
|
90
90
|
PERMISSION_REJ = "permission_rej",
|
|
91
|
-
COMMENT_UPDATE = "comment_update"
|
|
91
|
+
COMMENT_UPDATE = "comment_update",
|
|
92
|
+
UPDATE_PERMISSION_OBJ = "update_permission_obj",
|
|
93
|
+
SHOULD_CLOSE_CONN = "should_close_conn"
|
|
92
94
|
}
|
|
93
95
|
/**
|
|
94
96
|
* Awaiting mutations were acknowledged by the server.
|
|
@@ -211,7 +213,15 @@ export interface ICommentUpdateEvent {
|
|
|
211
213
|
eventID: CollaborationEvent.COMMENT_UPDATE;
|
|
212
214
|
data: ICommentUpdate;
|
|
213
215
|
}
|
|
216
|
+
export interface IPermissionUpdateEvent {
|
|
217
|
+
eventID: CollaborationEvent.UPDATE_PERMISSION_OBJ;
|
|
218
|
+
data: IUpdatePermissionObj;
|
|
219
|
+
}
|
|
220
|
+
export interface IShouldCloseConnEvent {
|
|
221
|
+
eventID: CollaborationEvent.SHOULD_CLOSE_CONN;
|
|
222
|
+
data: IShouldCloseConn;
|
|
223
|
+
}
|
|
214
224
|
/**
|
|
215
225
|
* A union type of all possible collaboration events.
|
|
216
226
|
*/
|
|
217
|
-
export type ICollaborationEvent = IAcknowledgementEvent | INewChangesetsEvent | IRejectionEvent | ISubmitChangesetEvent | IPseudoFetchMissingResultEvent | IUserSelectionEvent | IFetchingMissEvent | IUpdateCursorEvent | IUserJoinEvent | IUserLeaveEvent | ICustomEvent | IRequestHostEvent | IFetchOperationsEvent | ITerminateEvent | INewHostEvent | IOperationEvent | IMsgErrEvent | ICommentUpdateEvent;
|
|
227
|
+
export type ICollaborationEvent = IAcknowledgementEvent | INewChangesetsEvent | IRejectionEvent | ISubmitChangesetEvent | IPseudoFetchMissingResultEvent | IUserSelectionEvent | IFetchingMissEvent | IUpdateCursorEvent | IUserJoinEvent | IUserLeaveEvent | ICustomEvent | IRequestHostEvent | IFetchOperationsEvent | ITerminateEvent | INewHostEvent | IOperationEvent | IMsgErrEvent | ICommentUpdateEvent | IPermissionUpdateEvent | IShouldCloseConnEvent;
|