@dao42/d42paas-front 0.7.17 → 0.7.24

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/dist/editor.d.ts CHANGED
@@ -18,7 +18,7 @@ export type TReplay = 'stop' | 'disabled' | 'pause';
18
18
  export type T_DockerStatus = 'RUNNING' | 'STOP';
19
19
 
20
20
  /**
21
- * UserInfo for caller.
21
+ * JS API
22
22
  */
23
23
  interface TUserInfo {
24
24
  playgroundId?: string;
@@ -31,20 +31,18 @@ interface TUserInfo {
31
31
  role?: string;
32
32
  avatar?: string;
33
33
  onlineCount?: number;
34
- // [x: string]:
35
- // | string
36
- // | number
37
- // | qs.ParsedQs
38
- // | string[]
39
- // | number[]
40
- // | qs.ParsedQs[];
41
- // [x: string]: string | qs.ParsedQs | string[] | qs.ParsedQs[];
42
34
  }
43
35
 
44
36
  /**
45
37
  * the arguments of the Playground.
46
38
  */
47
39
  interface TConstructor {
40
+ debug?: boolean;
41
+
42
+ onError?: (error: any) => void;
43
+
44
+ onMessage?: (message: any) => void;
45
+
48
46
  serviceWorkerOrigin?: string;
49
47
 
50
48
  /**
@@ -60,7 +58,7 @@ interface TConstructor {
60
58
  * init the playground with the env.
61
59
  *
62
60
  */
63
- env?: string;
61
+ paasDomain: string;
64
62
 
65
63
  /**
66
64
  *
@@ -109,11 +107,15 @@ interface TConstructor {
109
107
  * this argument is to ingnore replaying patterns.
110
108
  *
111
109
  */
112
- ignoreReplayers?: keyof D42_FrontType['CRDT'][];
110
+ ignoreReplayers?: string[];
113
111
 
114
112
  components?: UserComponent[];
115
113
 
116
- // render?: () => TComponentArgs[];
114
+ /**
115
+ * @deprecated to fix the issue of the playground.
116
+ *
117
+ * render?: () => TComponentArgs[]; keyof D42_FrontType['CRDT'][]
118
+ */
117
119
  }
118
120
 
119
121
  export interface UserComponent extends TComponentArgs {
@@ -148,6 +150,24 @@ export class DaoPaaS {
148
150
 
149
151
  get userList(): TUserInfo[];
150
152
 
153
+ /**
154
+ *
155
+ * Replaying method for global calling.
156
+ * @param {unFollowUser} args
157
+ *
158
+ */
159
+
160
+ unFollowUser(user: any, callback: () => void): void;
161
+
162
+ /**
163
+ *
164
+ * Replaying method for global calling.
165
+ * @param {followUser} args
166
+ *
167
+ */
168
+
169
+ followUser(user: any, callback: () => void): void;
170
+
151
171
  /**
152
172
  *
153
173
  * Replaying method for global calling.