@dao42/d42paas-front 0.7.33 → 0.7.34

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/README.md ADDED
@@ -0,0 +1,47 @@
1
+
2
+ # PaaS SDK
3
+ <!-- ## 使用示例 -->
4
+ ## Install
5
+
6
+ ```sh
7
+ npm install @dao42/d42paas-front@latest
8
+ ```
9
+ ## Usage
10
+ ```js
11
+
12
+ import DaoPaaS from '@dao42/d42paas-front';
13
+
14
+ let options = {
15
+ debug: true,
16
+ playgroundId: '364948495318253568',
17
+ tenantId: '1',
18
+ ticket: 'MXwzNjQ5NDg0OTUzMTgyNTM1Njh8MXxudWxsfDE4OTU2NTMzODMwMDA=',
19
+ userId: '1',
20
+ serviceWorkerOrigin: 'https://develop.1024paas.com',
21
+ components: [
22
+ {
23
+ container: '.Tree',
24
+ item: 'Tree',
25
+ },
26
+ {
27
+ container: '.Editor',
28
+ item: 'Editor',
29
+ },
30
+ {
31
+ container: '.Shell',
32
+ item: 'Shell',
33
+ },
34
+ ],
35
+ onMessage: (message) => {},
36
+ onError: (error) => {},
37
+ };
38
+
39
+ let Dao = new DaoPaaS(options);
40
+
41
+ ```
42
+
43
+ ## JS API
44
+
45
+ ### DaoPaaS(options)
46
+
47
+ If a string is provided, it is treated as a shortcut for [`options`](https://develop.1024paas.com/tsdoc/interfaces/Options.html).
package/dist/editor.d.ts CHANGED
@@ -184,7 +184,7 @@ export class DaoPaaS {
184
184
  *
185
185
  */
186
186
 
187
- unFollowUser(user: UserInfo, callback: () => void): void;
187
+ unFollowUser(user: UserInfo, callback: (userInfo: UserInfo) => void): void;
188
188
 
189
189
  /**
190
190
  *
@@ -192,7 +192,7 @@ export class DaoPaaS {
192
192
  * @param {followUser} args
193
193
  *
194
194
  */
195
- followUser(user: UserInfo, callback: () => void): void;
195
+ followUser(userId: string, callback: (userInfo: UserInfo) => void): void;
196
196
 
197
197
  /**
198
198
  *