@univerjs-pro/collaboration 0.20.1 → 0.21.0

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.
@@ -16,4 +16,4 @@ export { textDecoder, textEncoder } from './services/snapshot/snapshot-utils';
16
16
  export { ISnapshotServerService, SnapshotService } from './services/snapshot/snapshot.service';
17
17
  export { type IMutationTransformAlgorithm, ITransformService, TransformService, } from './services/transform/transform.service';
18
18
  export { type IFailureTransformChangesetsResult, type IFailureTransformMutationResult, type IFailureTransformMutationsResult, type IFailureTransformMutationsWithChangesetResult, isTransformChangesetsFailure, isTransformChangesetsSuccess, isTransformMutationFailure, isTransformMutationsFailure, isTransformMutationsSuccess, isTransformMutationSuccess, isTransformMutationsWithChangesetFailure, isTransformMutationsWithChangesetSuccess, type ISuccessTransformChangesetsResult, type ISuccessTransformMutationResult, type ISuccessTransformMutationsResult, type ISuccessTransformMutationsWithChangesetResult, type ITransformChangesetsResult, type ITransformMutationResult, type ITransformMutationsResult, type ITransformMutationsWithChangesetResult, } from './services/transform/types';
19
- export { b64DecodeUnicode, b64EncodeUnicode, type ILogContext, mapDocumentTypeToUniverType, measureAsyncOperation, measureSyncOperation, uuidv4 } from './utils';
19
+ export { b64DecodeUnicode, b64EncodeUnicode, type ILogContext, mapDocumentTypeToUniverInstanceType, measureAsyncOperation, measureSyncOperation, uuidv4 } from './utils';
@@ -1,12 +1,12 @@
1
- import type { ICommandInfo, IMutationInfo } from '@univerjs/core';
2
- import type { IChangeset as IProtocolChangeset, ICommand as IProtocolCommand, IMutation as IProtocolMutation, UniverType } from '@univerjs/protocol';
1
+ import type { ICommandInfo, IMutationInfo, UniverInstanceType } from '@univerjs/core';
2
+ import type { IChangeset as IProtocolChangeset, ICommand as IProtocolCommand, IMutation as IProtocolMutation } from '@univerjs/protocol';
3
3
  export interface IFetchMissingCSResult {
4
4
  changesets: IChangeset[];
5
5
  lastRevision?: number;
6
6
  }
7
7
  export interface IChangeset {
8
8
  unitID: string;
9
- type: UniverType;
9
+ type: UniverInstanceType;
10
10
  baseRev: number;
11
11
  revision: number;
12
12
  userID: string;
@@ -1,5 +1,5 @@
1
- import type { ICollaMsgErrorEvent, ICollaMsgJoin, ICollaMsgLeave, ICommentUpdate, ILiveShareNewHost, ILiveShareOperation, ILiveShareRequestHost, ILiveShareTerminate, IChangeset as IProtocolChangeset, IShouldCloseConn, IUpdateCursor, IUpdatePermissionObj, UniverType } from '@univerjs/protocol';
2
- import type { UniscriptRun as IUniscriptRun } from '@univerjs/protocol/ts/univer/colla_msg.ts';
1
+ import type { UniverInstanceType } from '@univerjs/core';
2
+ import type { ICollaMsgErrorEvent, ICollaMsgJoin, ICollaMsgLeave, ICommentUpdate, ILiveShareNewHost, ILiveShareOperation, ILiveShareRequestHost, ILiveShareTerminate, IChangeset as IProtocolChangeset, IShouldCloseConn, IUniscriptRun, IUpdateCursor, IUpdatePermissionObj } from '@univerjs/protocol';
3
3
  import type { IChangeset } from './changeset';
4
4
  /**
5
5
  * Types of all possible collaboration events.
@@ -117,7 +117,7 @@ export interface IFetchingMissEvent {
117
117
  eventID: CollaborationEvent.FETCH_MISSING;
118
118
  data: {
119
119
  unitID: string;
120
- unitType: UniverType;
120
+ unitType: UniverInstanceType;
121
121
  from: number;
122
122
  to: number;
123
123
  };
@@ -138,7 +138,7 @@ export interface ISubmitChangesetEvent {
138
138
  eventID: CollaborationEvent.SUBMIT_CHANGESET;
139
139
  data: {
140
140
  unitID: string;
141
- unitType: UniverType;
141
+ unitType: UniverInstanceType;
142
142
  memberID: string;
143
143
  changeset: IChangeset;
144
144
  };
@@ -1,7 +1,5 @@
1
- import type { ILogService } from '@univerjs/core';
2
- import { UniverInstanceType } from '@univerjs/core';
3
- import { UniverType } from '@univerjs/protocol';
4
- export declare function mapDocumentTypeToUniverType(documentType: UniverInstanceType): UniverType;
1
+ import type { ILogService, UniverInstanceType } from '@univerjs/core';
2
+ export declare function mapDocumentTypeToUniverInstanceType(documentType: UniverInstanceType): UniverInstanceType;
5
3
  /**
6
4
  * This name is not appropriate. It is actually gRPC metadata context container.
7
5
  */