@dao42/d42paas-front 0.7.21 → 0.7.22

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
@@ -45,6 +45,12 @@ interface TUserInfo {
45
45
  * the arguments of the Playground.
46
46
  */
47
47
  interface TConstructor {
48
+ debug?: boolean;
49
+
50
+ onError?: (error: any) => void;
51
+
52
+ onMessage?: (message: any) => void;
53
+
48
54
  serviceWorkerOrigin?: string;
49
55
 
50
56
  /**
@@ -109,11 +115,15 @@ interface TConstructor {
109
115
  * this argument is to ingnore replaying patterns.
110
116
  *
111
117
  */
112
- ignoreReplayers?: keyof D42_FrontType['CRDT'][];
118
+ ignoreReplayers?: string[];
113
119
 
114
120
  components?: UserComponent[];
115
121
 
116
- // render?: () => TComponentArgs[];
122
+ /**
123
+ * @deprecated to fix the issue of the playground.
124
+ *
125
+ * render?: () => TComponentArgs[]; keyof D42_FrontType['CRDT'][]
126
+ */
117
127
  }
118
128
 
119
129
  export interface UserComponent extends TComponentArgs {
@@ -148,6 +158,24 @@ export class DaoPaaS {
148
158
 
149
159
  get userList(): TUserInfo[];
150
160
 
161
+ /**
162
+ *
163
+ * Replaying method for global calling.
164
+ * @param {unFollowUser} args
165
+ *
166
+ */
167
+
168
+ unFollowUser(user: any, callback: () => void): void;
169
+
170
+ /**
171
+ *
172
+ * Replaying method for global calling.
173
+ * @param {followUser} args
174
+ *
175
+ */
176
+
177
+ followUser(user: any, callback: () => void): void;
178
+
151
179
  /**
152
180
  *
153
181
  * Replaying method for global calling.