@univerjs-pro/collaboration-client 0.1.17 → 0.2.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.
@@ -13,3 +13,4 @@ export { DesktopCollaborationStatusDisplayController } from './controllers/colla
13
13
  export { AUTHZ_URL_KEY, AuthzIoHttpService } from './services/auth-server/authz-io-http.service';
14
14
  export { deserializeToCombResponse, serializeCombRequest } from './services/socket/serialize';
15
15
  export { CollaborationStatusDisplay } from './views/components/CollabStatus';
16
+ export { CommentService } from './services/comment/comment.service';
@@ -5,6 +5,7 @@ import { IDisposable, Injector } from '@wendellhu/redi';
5
5
  import { Observable } from 'rxjs';
6
6
  import { MemberService } from '../member/member.service';
7
7
  import { ICollaborationSocket, ICollaborationSocketService } from '../socket/collaboration-socket.service';
8
+ import { CommentService } from '../comment/comment.service';
8
9
 
9
10
  export declare enum SessionStatus {
10
11
  IDLE = 0,
@@ -25,6 +26,7 @@ export declare class CollaborationSession extends RxDisposable implements IDispo
25
26
  private readonly _configService;
26
27
  private readonly _localeService;
27
28
  private readonly _memberService;
29
+ private readonly _commentService;
28
30
  private readonly _sessionStatus$;
29
31
  readonly sessionStatus$: Observable<SessionStatus>;
30
32
  get sessionStatus(): SessionStatus;
@@ -32,7 +34,7 @@ export declare class CollaborationSession extends RxDisposable implements IDispo
32
34
  readonly event$: Observable<ICollaborationEvent>;
33
35
  private _socket;
34
36
  private _socketMessageSubscription;
35
- constructor(_unitID: string, socket$: Observable<Nullable<ICollaborationSocket>>, _logService: ILogService, _beforeCloseService: IBeforeCloseService, _messageService: IMessageService, _configService: IConfigService, _localeService: LocaleService, _memberService: MemberService);
37
+ constructor(_unitID: string, socket$: Observable<Nullable<ICollaborationSocket>>, _logService: ILogService, _beforeCloseService: IBeforeCloseService, _messageService: IMessageService, _configService: IConfigService, _localeService: LocaleService, _memberService: MemberService, _commentService: CommentService);
36
38
  getMemberID(): string | null;
37
39
  dispose(): void;
38
40
  private _onCombEvent;
@@ -0,0 +1,7 @@
1
+ import { ICommentUpdate } from '@univerjs/protocol';
2
+
3
+ export declare class CommentService {
4
+ private readonly _commentUpdate$;
5
+ readonly commentUpdate$: import('rxjs').Observable<ICommentUpdate>;
6
+ onCommentUpdate(data: ICommentUpdate): void;
7
+ }