@univerjs-pro/collaboration-client 0.1.10 → 0.1.12
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/controllers/collab-cursor/collab-cursor.controller.d.ts +4 -4
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +7 -7
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-render.controller.d.ts +3 -3
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +7 -7
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +3 -3
- package/lib/types/controllers/collab-status/collab-status.controller.d.ts +9 -7
- package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +1 -1
- package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +6 -6
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +8 -8
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +14 -14
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +2 -2
- package/lib/types/controllers/data-loader/data-loader.controller.d.ts +5 -5
- package/lib/types/index.d.ts +7 -1
- package/lib/types/models/cursor.d.ts +1 -1
- package/lib/types/plugin.d.ts +6 -2
- package/lib/types/services/auth-server/auth-server.service.d.ts +1 -1
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +6 -6
- package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +1 -1
- package/lib/types/services/local-cache/local-cache.service.d.ts +3 -3
- package/lib/types/services/member/member.service.d.ts +1 -1
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +1 -1
- package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +1 -1
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +2 -2
- package/lib/types/services/socket/collaboration-socket.service.d.ts +4 -4
- package/lib/types/services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service.d.ts +2 -2
- package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +1 -1
- package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +1 -1
- package/lib/types/services/url/web-url.service.d.ts +2 -2
- package/lib/types/views/components/CollabStatus.d.ts +1 -4
- package/lib/types/views/components/CollabStatus.stories.d.ts +2 -2
- package/lib/types/views/shapes/doc-collab-cursor.d.ts +1 -1
- package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +32 -32
@@ -1,8 +1,8 @@
|
|
1
|
-
import { CollaborationSessionService } from '../../services/collaboration-session/collaboration-session.service';
|
2
|
-
import { IDocCollabCursor, ISheetCollabCursor } from '../../models/cursor';
|
3
|
-
import { Observable } from 'rxjs';
|
4
|
-
import { Injector } from '@wendellhu/redi';
|
5
1
|
import { IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
2
|
+
import { Injector } from '@wendellhu/redi';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import { IDocCollabCursor, ISheetCollabCursor } from '../../models/cursor';
|
5
|
+
import { CollaborationSessionService } from '../../services/collaboration-session/collaboration-session.service';
|
6
6
|
|
7
7
|
/**
|
8
8
|
* This controller adds collaboration cursors to Univer. It works with `CollabCursorRenderController`.
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { DocSyncEditingCollabCursorService } from '../../services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service';
|
2
|
-
import { MemberService } from '../../services/member/member.service';
|
3
|
-
import { ColorAssignService } from '../../services/color-assign/color-assign.service';
|
4
|
-
import { CollaborationSession } from '../../services/collaboration-session/collaboration-session.service';
|
5
|
-
import { IDocCollabCursor } from '../../models/cursor';
|
6
|
-
import { Injector } from '@wendellhu/redi';
|
7
|
-
import { ICollaborationUser, ITransformService } from '@univerjs-pro/collaboration';
|
8
1
|
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
2
|
+
import { ICollaborationUser, ITransformService } from '@univerjs-pro/collaboration';
|
3
|
+
import { Injector } from '@wendellhu/redi';
|
4
|
+
import { IDocCollabCursor } from '../../models/cursor';
|
5
|
+
import { CollaborationSession } from '../../services/collaboration-session/collaboration-session.service';
|
6
|
+
import { ColorAssignService } from '../../services/color-assign/color-assign.service';
|
7
|
+
import { MemberService } from '../../services/member/member.service';
|
8
|
+
import { DocSyncEditingCollabCursorService } from '../../services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service';
|
9
9
|
|
10
10
|
/**
|
11
11
|
* Each univer document instance would map to an `CollabCursorEntity` to handle collaborated editing events.
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { CollabCursorController } from './collab-cursor.controller';
|
2
|
-
import { DocSkeletonManagerService } from '@univerjs/docs';
|
3
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
4
1
|
import { IUniverInstanceService, RxDisposable, ThemeService } from '@univerjs/core';
|
2
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
3
|
+
import { DocSkeletonManagerService } from '@univerjs/docs';
|
4
|
+
import { CollabCursorController } from './collab-cursor.controller';
|
5
5
|
|
6
6
|
/**
|
7
7
|
* This controller works with `CollabCursorController` to render doc collaboration cursors.
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { MemberService } from '../../services/member/member.service';
|
2
|
-
import { ColorAssignService } from '../../services/color-assign/color-assign.service';
|
3
|
-
import { CollaborationSession } from '../../services/collaboration-session/collaboration-session.service';
|
4
|
-
import { ISheetCollabCursor } from '../../models/cursor';
|
5
|
-
import { Injector } from '@wendellhu/redi';
|
6
|
-
import { ICollaborationUser } from '@univerjs-pro/collaboration';
|
7
|
-
import { RefRangeService } from '@univerjs/sheets';
|
8
1
|
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
2
|
+
import { RefRangeService } from '@univerjs/sheets';
|
3
|
+
import { ICollaborationUser } from '@univerjs-pro/collaboration';
|
4
|
+
import { Injector } from '@wendellhu/redi';
|
5
|
+
import { ISheetCollabCursor } from '../../models/cursor';
|
6
|
+
import { CollaborationSession } from '../../services/collaboration-session/collaboration-session.service';
|
7
|
+
import { ColorAssignService } from '../../services/color-assign/color-assign.service';
|
8
|
+
import { MemberService } from '../../services/member/member.service';
|
9
9
|
|
10
10
|
/**
|
11
11
|
* Each univer document instance would map to an `CollabCursorEntity` to handle collaborated editing events.
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { CollabCursorController } from './collab-cursor.controller';
|
2
|
-
import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
3
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
4
1
|
import { IUniverInstanceService, RxDisposable, ThemeService } from '@univerjs/core';
|
2
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
3
|
+
import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
4
|
+
import { CollabCursorController } from './collab-cursor.controller';
|
5
5
|
|
6
6
|
/**
|
7
7
|
* This controller works with `CollabCursorController` to render sheet collaboration cursors.
|
@@ -1,18 +1,20 @@
|
|
1
|
-
import { CollaborationController } from '../collaboration/collaboration.controller';
|
2
|
-
import { Injector } from '@wendellhu/redi';
|
3
|
-
import { IDesktopUIController } from '@univerjs/ui';
|
4
1
|
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
2
|
+
import { IUIPartsService } from '@univerjs/ui';
|
3
|
+
import { Injector } from '@wendellhu/redi';
|
4
|
+
import { BehaviorSubject } from 'rxjs';
|
5
|
+
import { CollaborationController } from '../collaboration/collaboration.controller';
|
6
|
+
import { CollaborationStatus } from '../collaboration/collaboration-state';
|
5
7
|
|
6
8
|
/**
|
7
9
|
* This controller is responsible for monitoring the collaboration status of the currently focused unit.
|
8
10
|
*/
|
9
11
|
export declare class DesktopCollaborationStatusDisplayController extends Disposable {
|
10
|
-
private readonly _uiController;
|
11
12
|
private readonly _univerInstanceService;
|
13
|
+
private readonly _uiPartsService;
|
12
14
|
private readonly _injector;
|
13
15
|
private readonly _collaborationController;
|
14
|
-
|
15
|
-
constructor(
|
16
|
-
|
16
|
+
protected readonly _status$: BehaviorSubject<CollaborationStatus>;
|
17
|
+
constructor(_univerInstanceService: IUniverInstanceService, _uiPartsService: IUIPartsService, _injector: Injector, _collaborationController: CollaborationController);
|
18
|
+
protected _initStatusComponent(): void;
|
17
19
|
private _initStatusListener;
|
18
20
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ITextSelectionInnerParam } from '@univerjs/engine-render';
|
2
1
|
import { Nullable } from '@univerjs/core';
|
2
|
+
import { ITextSelectionInnerParam } from '@univerjs/engine-render';
|
3
3
|
|
4
4
|
export declare class TextSelectionRenderManager {
|
5
5
|
private readonly _textSelectionInner$;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { ICollaborationSocket, ICollaborationSocketService } from '../../../services/socket/collaboration-socket.service';
|
2
|
-
import { Subject } from 'rxjs';
|
3
|
-
import { IDisposable } from '@wendellhu/redi';
|
4
|
-
import { ICombResponseEvent } from '@univerjs-pro/collaboration';
|
5
|
-
import { IBeforeCloseService, IMessageService, INotificationService } from '@univerjs/ui';
|
6
|
-
import { IMessageMethodOptions, IMessageProps } from '@univerjs/design';
|
7
1
|
import { ILocalStorageService, Nullable, ILogService } from '@univerjs/core';
|
2
|
+
import { IMessageMethodOptions, IMessageProps } from '@univerjs/design';
|
3
|
+
import { IBeforeCloseService, IMessageService, INotificationService } from '@univerjs/ui';
|
4
|
+
import { ICombResponseEvent } from '@univerjs-pro/collaboration';
|
5
|
+
import { IDisposable } from '@wendellhu/redi';
|
6
|
+
import { Subject } from 'rxjs';
|
7
|
+
import { ICollaborationSocket, ICollaborationSocketService } from '../../../services/socket/collaboration-socket.service';
|
8
8
|
|
9
9
|
/**
|
10
10
|
* The handler object for a mocked socket connection. You can terminate, send messages / error through this object.
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { ICollabEditingCursor } from '../../services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service';
|
2
|
-
import { ICollaborativeUndoRedoService } from '../../services/undoredo/collaborative-undoredo.service';
|
3
|
-
import { MemberService } from '../../services/member/member.service';
|
4
|
-
import { LocalCacheService } from '../../services/local-cache/local-cache.service';
|
5
|
-
import { Injector } from '@wendellhu/redi';
|
6
|
-
import { UniverType } from '@univerjs/protocol';
|
7
|
-
import { IAcknowledgedChangeset, IChangeset, ITransformService, RevisionService } from '@univerjs-pro/collaboration';
|
8
|
-
import { INotificationService } from '@univerjs/ui';
|
9
1
|
import { IMutationInfo, Nullable, ICommandService, IConfigService, ILogService, IUniverInstanceService, LocaleService, UniverPermissionService } from '@univerjs/core';
|
2
|
+
import { INotificationService } from '@univerjs/ui';
|
3
|
+
import { IAcknowledgedChangeset, IChangeset, ITransformService, RevisionService } from '@univerjs-pro/collaboration';
|
4
|
+
import { UniverType } from '@univerjs/protocol';
|
5
|
+
import { Injector } from '@wendellhu/redi';
|
6
|
+
import { LocalCacheService } from '../../services/local-cache/local-cache.service';
|
7
|
+
import { MemberService } from '../../services/member/member.service';
|
8
|
+
import { ICollaborativeUndoRedoService } from '../../services/undoredo/collaborative-undoredo.service';
|
9
|
+
import { ICollabEditingCursor } from '../../services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service';
|
10
10
|
|
11
11
|
/**
|
12
12
|
* Determines how often should we send changesets.
|
@@ -1,18 +1,18 @@
|
|
1
|
-
import { CollaborationState, ICollaborationStateHandler, CollaborationStatus } from './collaboration-state';
|
2
|
-
import { SheetTransformSelectionsService } from '../../services/range-selection/sheet-transform-selections.service';
|
3
|
-
import { DocSyncEditingCollabCursorService } from '../../services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service';
|
4
|
-
import { DocTransformSelectionsService } from '../../services/text-selection/doc-transform-selections.service';
|
5
|
-
import { DocTransformIMECacheService } from '../../services/ime-cache-transform/doc-transform-ime-cache.service';
|
6
|
-
import { ISingleActiveUnitService } from '../../services/single-active-unit/single-active-unit.service';
|
7
|
-
import { LocalCacheService } from '../../services/local-cache/local-cache.service';
|
8
|
-
import { CollaborationSession, CollaborationSessionService } from '../../services/collaboration-session/collaboration-session.service';
|
9
|
-
import { DocStateChangeManagerService } from '@univerjs/docs';
|
10
|
-
import { Observable, BehaviorSubject } from 'rxjs';
|
11
|
-
import { IDisposable, Injector } from '@wendellhu/redi';
|
12
|
-
import { UniverType } from '@univerjs/protocol';
|
13
|
-
import { CompressMutationService, RevisionService } from '@univerjs-pro/collaboration';
|
14
|
-
import { IMessageService } from '@univerjs/ui';
|
15
1
|
import { IMutationInfo, Nullable, ICommandService, ILogService, IUniverInstanceService, LocaleService, RxDisposable, UniverPermissionService } from '@univerjs/core';
|
2
|
+
import { IMessageService } from '@univerjs/ui';
|
3
|
+
import { CompressMutationService, RevisionService } from '@univerjs-pro/collaboration';
|
4
|
+
import { UniverType } from '@univerjs/protocol';
|
5
|
+
import { IDisposable, Injector } from '@wendellhu/redi';
|
6
|
+
import { Observable, BehaviorSubject } from 'rxjs';
|
7
|
+
import { DocStateChangeManagerService } from '@univerjs/docs';
|
8
|
+
import { CollaborationSession, CollaborationSessionService } from '../../services/collaboration-session/collaboration-session.service';
|
9
|
+
import { LocalCacheService } from '../../services/local-cache/local-cache.service';
|
10
|
+
import { ISingleActiveUnitService } from '../../services/single-active-unit/single-active-unit.service';
|
11
|
+
import { DocTransformIMECacheService } from '../../services/ime-cache-transform/doc-transform-ime-cache.service';
|
12
|
+
import { DocTransformSelectionsService } from '../../services/text-selection/doc-transform-selections.service';
|
13
|
+
import { DocSyncEditingCollabCursorService } from '../../services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service';
|
14
|
+
import { SheetTransformSelectionsService } from '../../services/range-selection/sheet-transform-selections.service';
|
15
|
+
import { CollaborationState, ICollaborationStateHandler, CollaborationStatus } from './collaboration-state';
|
16
16
|
|
17
17
|
export declare class CollaborationController extends RxDisposable {
|
18
18
|
private readonly _injector;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { MemberService } from '../../../services/member/member.service';
|
2
|
-
import { IChangeset, RevisionService } from '@univerjs-pro/collaboration';
|
3
1
|
import { IMutationInfo, IUniverInstanceService } from '@univerjs/core';
|
2
|
+
import { IChangeset, RevisionService } from '@univerjs-pro/collaboration';
|
3
|
+
import { MemberService } from '../../../services/member/member.service';
|
4
4
|
|
5
5
|
export interface IAssembledChangeset {
|
6
6
|
changeset: IChangeset;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { IURLService } from '../../services/url/url.service';
|
2
|
-
import { LocalCacheService } from '../../services/local-cache/local-cache.service';
|
3
|
-
import { SnapshotService } from '@univerjs-pro/collaboration';
|
4
|
-
import { IRemoteInstanceService } from '@univerjs/rpc';
|
5
1
|
import { ICommandService, ILogService, RxDisposable } from '@univerjs/core';
|
2
|
+
import { IRemoteInstanceService } from '@univerjs/rpc';
|
3
|
+
import { SnapshotService } from '@univerjs-pro/collaboration';
|
4
|
+
import { LocalCacheService } from '../../services/local-cache/local-cache.service';
|
5
|
+
import { IURLService } from '../../services/url/url.service';
|
6
6
|
|
7
7
|
/**
|
8
|
-
* This controller loads data
|
8
|
+
* This controller loads data when URL changes.
|
9
9
|
*/
|
10
10
|
export declare class DataLoaderController extends RxDisposable {
|
11
11
|
private _urlService;
|
package/lib/types/index.d.ts
CHANGED
@@ -1,11 +1,17 @@
|
|
1
1
|
export { CollaborationController } from './controllers/collaboration/collaboration.controller';
|
2
|
-
export { SEND_CHANGESET_TIMEOUT_KEY } from './controllers/collaboration/collaboration-state';
|
2
|
+
export { SEND_CHANGESET_TIMEOUT_KEY, CollaborationStatus, } from './controllers/collaboration/collaboration-state';
|
3
3
|
export { CollaborationClientPlugin, type ICollaborationClientPluginConfig } from './plugin';
|
4
4
|
export { COLLAB_WEB_SOCKET_URL_KEY, CollaborationSession, CollaborationSessionService, HEARTBEAT_INTERVAL_KEY, HEARTBEAT_TIMEOUT_KEY, SessionStatus, } from './services/collaboration-session/collaboration-session.service';
|
5
5
|
export { LOCAL_CACHE_INTERVAL_KEY } from './services/local-cache/local-cache.service';
|
6
6
|
export { SNAPSHOT_SERVER_URL_KEY } from './services/snapshot-server/snapshot-server.service';
|
7
7
|
export type { ICollaborationSocket } from './services/socket/collaboration-socket.service';
|
8
8
|
export { COLLAB_SUBMIT_CHANGESET_URL_KEY, CollaborationSocketService, ICollaborationSocketService, } from './services/socket/collaboration-socket.service';
|
9
|
+
export { LocalCacheService } from './services/local-cache/local-cache.service';
|
10
|
+
export { IURLService } from './services/url/url.service';
|
11
|
+
export { WebURLService } from './services/url/web-url.service';
|
12
|
+
export { DataLoaderController } from './controllers/data-loader/data-loader.controller';
|
13
|
+
export { DesktopCollaborationStatusDisplayController } from './controllers/collab-status/collab-status.controller';
|
9
14
|
export { LOGIN_URL_KEY } from './services/auth-server/auth-server.service';
|
10
15
|
export { deserializeToCombResponse, serializeCombRequest } from './services/socket/serialize';
|
16
|
+
export { CollaborationStatusDisplay } from './views/components/CollabStatus';
|
11
17
|
export { enUS, zhCN } from './locale';
|
package/lib/types/plugin.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { DependencyOverride, LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
|
2
2
|
import { Ctor, Injector } from '@wendellhu/redi';
|
3
|
-
import {
|
3
|
+
import { ICollaborationSocketService } from './services/socket/collaboration-socket.service';
|
4
4
|
|
5
5
|
export interface ICollaborationClientPluginConfig {
|
6
6
|
socketService?: Ctor<ICollaborationSocketService>;
|
@@ -8,6 +8,10 @@ export interface ICollaborationClientPluginConfig {
|
|
8
8
|
enableSingleActiveInstanceLock?: boolean;
|
9
9
|
collaborationUniverTypes?: UniverInstanceType[];
|
10
10
|
enableAuthServer?: boolean;
|
11
|
+
/**
|
12
|
+
* Override internal modules with custom implementations.
|
13
|
+
*/
|
14
|
+
override?: DependencyOverride;
|
11
15
|
}
|
12
16
|
export declare class CollaborationClientPlugin extends Plugin {
|
13
17
|
private readonly _config;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { ICollaborationSocket, ICollaborationSocketService } from '../socket/collaboration-socket.service';
|
2
|
-
import { MemberService } from '../member/member.service';
|
3
|
-
import { Observable } from 'rxjs';
|
4
|
-
import { IDisposable, Injector } from '@wendellhu/redi';
|
5
|
-
import { ICollaborationEvent } from '@univerjs-pro/collaboration';
|
6
|
-
import { IBeforeCloseService, IMessageService } from '@univerjs/ui';
|
7
1
|
import { Nullable, Disposable, IConfigService, ILogService, LocaleService, RxDisposable } from '@univerjs/core';
|
2
|
+
import { IBeforeCloseService, IMessageService } from '@univerjs/ui';
|
3
|
+
import { ICollaborationEvent } from '@univerjs-pro/collaboration';
|
4
|
+
import { IDisposable, Injector } from '@wendellhu/redi';
|
5
|
+
import { Observable } from 'rxjs';
|
6
|
+
import { MemberService } from '../member/member.service';
|
7
|
+
import { ICollaborationSocket, ICollaborationSocketService } from '../socket/collaboration-socket.service';
|
8
8
|
|
9
9
|
export declare enum SessionStatus {
|
10
10
|
IDLE = 0,
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { UniverType } from '@univerjs/protocol';
|
2
|
-
import { IChangeset, RevisionService } from '@univerjs-pro/collaboration';
|
3
|
-
import { IBeforeCloseService } from '@univerjs/ui';
|
4
1
|
import { IMutationInfo, Nullable, Disposable, IConfigService, ILocalStorageService, LocaleService } from '@univerjs/core';
|
2
|
+
import { IBeforeCloseService } from '@univerjs/ui';
|
3
|
+
import { IChangeset, RevisionService } from '@univerjs-pro/collaboration';
|
4
|
+
import { UniverType } from '@univerjs/protocol';
|
5
5
|
|
6
6
|
export interface IUnitCacheData {
|
7
7
|
unitID: string;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { IFetchMissingChangesetsRequest, IFetchMissingChangesetsResponse, IGetResourcesRequest, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevRequest, IGetUnitOnRevResponse, ISaveChangesetResponse, ISaveSheetBlockResponse, ISaveSnapshotResponse } from '@univerjs/protocol';
|
2
|
-
import { HTTPService } from '@univerjs/network';
|
3
1
|
import { ILogContext, ISnapshotServerService, IConfigService } from '@univerjs/core';
|
2
|
+
import { HTTPService } from '@univerjs/network';
|
3
|
+
import { IFetchMissingChangesetsRequest, IFetchMissingChangesetsResponse, IGetResourcesRequest, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevRequest, IGetUnitOnRevResponse, ISaveChangesetResponse, ISaveSheetBlockResponse, ISaveSnapshotResponse } from '@univerjs/protocol';
|
4
4
|
|
5
5
|
/**
|
6
6
|
* The config key to determined the URL provided by the snapshot server
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { Observable } from 'rxjs';
|
2
|
-
import { IChangeset } from '@univerjs/protocol';
|
3
|
-
import { ICombRequestEvent, ICombResponseEvent, IFetchingMissEvent, ISubmitChangesetEvent } from '@univerjs-pro/collaboration';
|
4
|
-
import { ISocket, HTTPService, WebSocketService } from '@univerjs/network';
|
5
1
|
import { Nullable, IConfigService, ILogService, ISnapshotServerService } from '@univerjs/core';
|
2
|
+
import { ISocket, HTTPService, WebSocketService } from '@univerjs/network';
|
3
|
+
import { ICombRequestEvent, ICombResponseEvent, IFetchingMissEvent, ISubmitChangesetEvent } from '@univerjs-pro/collaboration';
|
4
|
+
import { IChangeset } from '@univerjs/protocol';
|
5
|
+
import { Observable } from 'rxjs';
|
6
6
|
|
7
7
|
export interface ICollaborationSocket extends Pick<ISocket, 'open$' | 'error$' | 'close$'> {
|
8
8
|
memberID: string;
|
package/lib/types/services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { ITextRangeWithStyle } from '@univerjs/engine-render';
|
2
|
-
import { Nullable, RxDisposable } from '@univerjs/core';
|
3
1
|
import { IUpdateCursor } from '@univerjs/protocol';
|
2
|
+
import { Nullable, RxDisposable } from '@univerjs/core';
|
3
|
+
import { ITextRangeWithStyle } from '@univerjs/engine-render';
|
4
4
|
|
5
5
|
export interface ICollabEditingCursor {
|
6
6
|
unitID: string;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { IChangeset, ITransformService } from '@univerjs-pro/collaboration';
|
2
1
|
import { IUndoRedoService, ICommandService, IContextService, ILogService, IUniverInstanceService, LocalUndoRedoService } from '@univerjs/core';
|
2
|
+
import { IChangeset, ITransformService } from '@univerjs-pro/collaboration';
|
3
3
|
|
4
4
|
/**
|
5
5
|
* `LocalUndoRedoService` cannot transform mutations in the undo redo stack under collaboration conditions.
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { IURLService } from './url.service';
|
2
|
-
import { Observable } from 'rxjs';
|
3
1
|
import { RxDisposable } from '@univerjs/core';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import { IURLService } from './url.service';
|
4
4
|
|
5
5
|
export declare class WebURLService extends RxDisposable implements IURLService {
|
6
6
|
readonly urlChange$: Observable<void>;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { CollaborationStatus } from '../../controllers/collaboration/collaboration-state';
|
2
1
|
import { Observable } from 'rxjs';
|
2
|
+
import { CollaborationStatus } from '../../controllers/collaboration/collaboration-state';
|
3
3
|
|
4
4
|
export interface IOnlineStatusProps {
|
5
5
|
/** The collaboration state of the currently focused unit. */
|
@@ -7,8 +7,5 @@ export interface IOnlineStatusProps {
|
|
7
7
|
}
|
8
8
|
/**
|
9
9
|
* A component to display collaboration status to users.
|
10
|
-
*
|
11
|
-
* @param props
|
12
|
-
* @returns
|
13
10
|
*/
|
14
11
|
export declare function CollaborationStatusDisplay(props: Readonly<IOnlineStatusProps>): JSX.Element;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { CollaborationStatusDisplay } from './CollabStatus';
|
2
|
-
import { default as React } from 'react';
|
3
1
|
import { Meta } from '@storybook/react';
|
2
|
+
import { default as React } from 'react';
|
3
|
+
import { CollaborationStatusDisplay } from './CollabStatus';
|
4
4
|
|
5
5
|
declare const meta: Meta<typeof CollaborationStatusDisplay>;
|
6
6
|
export default meta;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ISheetCollabCursor } from '../../models/cursor';
|
2
1
|
import { IMouseEvent, IPointerEvent, IShapeProps, Shape } from '@univerjs/engine-render';
|
2
|
+
import { ISheetCollabCursor } from '../../models/cursor';
|
3
3
|
|
4
4
|
export declare const SHEET_COLLAB_CURSOR_ZINDEX = 1;
|
5
5
|
export declare const SHEET_COLLAB_CURSOR_BORDER_WIDTH = 1.5;
|