@univerjs-pro/collaboration-client 0.2.4-alpha.0 → 0.2.5
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 +4 -0
- package/lib/types/models/cursor.d.ts +3 -1
- package/lib/types/services/local-cache/local-cache.service.d.ts +1 -1
- package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +1 -0
- package/lib/umd/index.js +1 -1
- package/package.json +27 -27
package/lib/types/index.d.ts
CHANGED
@@ -13,4 +13,8 @@ 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 { SnapshotServerOverHTTPService } from './services/snapshot-server/snapshot-server.service';
|
16
17
|
export { CommentService } from './services/comment/comment.service';
|
18
|
+
export { SheetCollaborationEntity } from './controllers/collaboration/collaboration.controller';
|
19
|
+
export { SheetCollabCursorShape, type ISheetCollabCursorShapeProps } from './views/shapes/sheet-collab-cursor.shape';
|
20
|
+
export { ImageIoService } from './services/image-remote/image-io.service';
|
@@ -5,7 +5,7 @@ import { ITextRangeWithStyle } from '@univerjs/engine-render';
|
|
5
5
|
* The data structure to store collab cursor info of sheet.
|
6
6
|
*/
|
7
7
|
export interface ISheetCollabCursor {
|
8
|
-
/**
|
8
|
+
/** Stroke color of this collab cursor */
|
9
9
|
color: string;
|
10
10
|
/** Position of this cursor */
|
11
11
|
range: IRange;
|
@@ -15,6 +15,8 @@ export interface ISheetCollabCursor {
|
|
15
15
|
selection: string;
|
16
16
|
/** Worksheet ID */
|
17
17
|
sheetID: string;
|
18
|
+
/** Background color of this collab cursor */
|
19
|
+
backgroundColor?: string;
|
18
20
|
}
|
19
21
|
/**
|
20
22
|
* The data structure to store collab cursor info of doc.
|
@@ -32,7 +32,7 @@ export declare class LocalCacheService extends Disposable {
|
|
32
32
|
private _scheduleSaving;
|
33
33
|
private _getSaveTimeout;
|
34
34
|
private _saveCache;
|
35
|
-
|
35
|
+
exhaustSavingTask(): Promise<void>;
|
36
36
|
private _setupBeforeClosingHandler;
|
37
37
|
}
|
38
38
|
export declare function getLocalCacheKey(unitID: string): string;
|
@@ -16,6 +16,7 @@ export declare class SheetCollabCursorShape<T extends ISheetCollabCursorShapePro
|
|
16
16
|
private _range;
|
17
17
|
private _name;
|
18
18
|
private _labelPosition;
|
19
|
+
private _backgroundColor?;
|
19
20
|
constructor(key?: string, props?: T);
|
20
21
|
setShapeProps(props: Partial<ISheetCollabCursorShapeProps>): void;
|
21
22
|
onMouseMove(position: {
|