@textbus/collaborate 4.0.0-alpha.6 → 4.0.0-alpha.60
Sign up to get free protection for your applications and to get access to all the features.
- package/bundles/collaborate-module.d.ts +10 -1
- package/bundles/collaborate.d.ts +55 -64
- package/bundles/index.esm.js +344 -317
- package/bundles/index.js +340 -313
- package/bundles/public-api.d.ts +1 -0
- package/bundles/user-activity.d.ts +23 -0
- package/package.json +7 -8
package/bundles/public-api.d.ts
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Observable } from '@tanbo/stream';
|
2
|
+
import { Selection, SelectionPaths } from '@textbus/core';
|
3
|
+
import { WebsocketProvider } from 'y-websocket';
|
4
|
+
export interface UserInfo {
|
5
|
+
username: string;
|
6
|
+
color: string;
|
7
|
+
id: string;
|
8
|
+
}
|
9
|
+
export interface ActivityInfo extends UserInfo {
|
10
|
+
selection: SelectionPaths;
|
11
|
+
}
|
12
|
+
export declare class UserActivity {
|
13
|
+
private websocketProvider;
|
14
|
+
private selection;
|
15
|
+
onStateChange: Observable<ActivityInfo[]>;
|
16
|
+
onUserChange: Observable<UserInfo[]>;
|
17
|
+
private stateChangeEvent;
|
18
|
+
private userChangeEvent;
|
19
|
+
private subscription;
|
20
|
+
constructor(websocketProvider: WebsocketProvider, selection: Selection);
|
21
|
+
init(userinfo: UserInfo): void;
|
22
|
+
destroy(): void;
|
23
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/collaborate",
|
3
|
-
"version": "4.0.0-alpha.
|
3
|
+
"version": "4.0.0-alpha.60",
|
4
4
|
"description": "Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.",
|
5
5
|
"main": "./bundles/index.js",
|
6
6
|
"module": "./bundles/index.esm.js",
|
@@ -25,12 +25,11 @@
|
|
25
25
|
"typescript editor"
|
26
26
|
],
|
27
27
|
"dependencies": {
|
28
|
-
"@tanbo/stream": "^1.2.
|
29
|
-
"@textbus/core": "^4.0.0-alpha.
|
30
|
-
"@viewfly/core": "^0.
|
31
|
-
"
|
32
|
-
"
|
33
|
-
"yjs": "^13.6.7"
|
28
|
+
"@tanbo/stream": "^1.2.4",
|
29
|
+
"@textbus/core": "^4.0.0-alpha.60",
|
30
|
+
"@viewfly/core": "^1.0.0-alpha.10",
|
31
|
+
"y-websocket": "^1.4.3",
|
32
|
+
"yjs": "^13.6.14"
|
34
33
|
},
|
35
34
|
"devDependencies": {
|
36
35
|
"@rollup/plugin-commonjs": "^23.0.2",
|
@@ -50,5 +49,5 @@
|
|
50
49
|
"bugs": {
|
51
50
|
"url": "https://github.com/textbus/textbus.git/issues"
|
52
51
|
},
|
53
|
-
"gitHead": "
|
52
|
+
"gitHead": "bae80846bc8c26754af661e35dea236db237aeeb"
|
54
53
|
}
|