@dao42/d42paas-front 0.5.23 → 0.5.28
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/DaoPaaS.es.js +323 -266
- package/dist/DaoPaaS.umd.js +458 -455
- package/dist/editor.d.ts +109 -18
- package/dist/style.css +1 -1
- package/package.json +4 -3
- package/dist/assets/css.worker.fcb4bd78.js +0 -62
- package/dist/assets/editor.worker.d0372abe.js +0 -4
- package/dist/assets/html.worker.446a9d97.js +0 -452
- package/dist/assets/json.worker.4dd01dd8.js +0 -35
- package/dist/assets/ts.worker.bb4527d0.js +0 -35320
package/dist/editor.d.ts
CHANGED
|
@@ -2,72 +2,92 @@
|
|
|
2
2
|
* Copyright (c) dao42. All rights reserved.
|
|
3
3
|
* Type definitions for @dao42/d42paas-front
|
|
4
4
|
* Released under the MIT license
|
|
5
|
-
*-----------------------------------------------------------*/
|
|
5
|
+
*-----------------------------------------------------------*/
|
|
6
|
+
|
|
7
|
+
// import React from 'react';
|
|
8
|
+
|
|
6
9
|
/*---------------------------------------------------------------------------------------------
|
|
7
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
11
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
9
12
|
*--------------------------------------------------------------------------------------------*/
|
|
13
|
+
// type TStyle = HTMLAttributes<T>.style?: React.CSSProperties | undefined;
|
|
14
|
+
// type TStyle = React.CSSProperties | undefined;
|
|
15
|
+
// import * as CSS from 'csstype';
|
|
10
16
|
|
|
11
17
|
export type T_PlaygroundStatus = 'EMPTY' | 'ACTIVE' | 'INACTIVE';
|
|
12
18
|
export type TReplay = 'stop' | 'disabled' | 'pause';
|
|
13
19
|
|
|
14
20
|
/**
|
|
15
|
-
*
|
|
16
|
-
* the arguments of the Playground
|
|
21
|
+
* the arguments of the Playground.
|
|
17
22
|
*/
|
|
18
23
|
interface TConstructor {
|
|
19
24
|
/**
|
|
20
|
-
*
|
|
25
|
+
*
|
|
26
|
+
* initing the playground ticket needed.
|
|
27
|
+
*
|
|
21
28
|
*/
|
|
22
29
|
ticket: string;
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
|
-
*
|
|
32
|
+
*
|
|
33
|
+
* to init the playground with this id.
|
|
34
|
+
*
|
|
26
35
|
*/
|
|
27
36
|
playgroundId: string;
|
|
28
37
|
|
|
29
38
|
/**
|
|
30
|
-
*
|
|
39
|
+
*
|
|
40
|
+
* userId for the playground.
|
|
41
|
+
*
|
|
31
42
|
*/
|
|
32
43
|
userId: string;
|
|
33
44
|
|
|
34
45
|
/**
|
|
35
|
-
*
|
|
46
|
+
*
|
|
47
|
+
* tenantId for the playground.
|
|
48
|
+
*
|
|
36
49
|
*/
|
|
37
50
|
tenantId: string;
|
|
38
51
|
|
|
39
52
|
/**
|
|
40
|
-
*
|
|
53
|
+
*
|
|
54
|
+
* username for the playground.
|
|
55
|
+
*
|
|
41
56
|
*/
|
|
42
57
|
username?: string;
|
|
43
58
|
|
|
44
59
|
/**
|
|
45
|
-
*
|
|
60
|
+
*
|
|
61
|
+
* avatar for the playground but not necessarily.
|
|
62
|
+
*
|
|
46
63
|
*/
|
|
47
64
|
avatar?: string;
|
|
48
65
|
|
|
49
66
|
/**
|
|
50
|
-
*
|
|
67
|
+
*
|
|
68
|
+
* avatarUrl for the playground but not necessarily.
|
|
69
|
+
*
|
|
51
70
|
*/
|
|
52
71
|
avatarUrl?: string;
|
|
53
|
-
|
|
54
72
|
}
|
|
55
73
|
|
|
56
74
|
/**
|
|
57
75
|
*
|
|
58
76
|
* @interface TComponentArgs
|
|
59
77
|
* @desc
|
|
78
|
+
*
|
|
60
79
|
*/
|
|
61
80
|
|
|
62
81
|
interface TComponentArgs {
|
|
63
|
-
|
|
64
82
|
/**
|
|
65
83
|
*
|
|
84
|
+
* the DOM for the component.
|
|
66
85
|
* @type {(string | HTMLElement | Element)}
|
|
67
86
|
* @memberof TComponentArgs
|
|
68
|
-
*
|
|
87
|
+
*
|
|
69
88
|
*/
|
|
70
89
|
container: string | HTMLElement | Element;
|
|
90
|
+
|
|
71
91
|
props?: any;
|
|
72
92
|
}
|
|
73
93
|
|
|
@@ -76,36 +96,107 @@ export class DaoPaaS {
|
|
|
76
96
|
|
|
77
97
|
get playgroundStatus(): T_PlaygroundStatus;
|
|
78
98
|
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* Replaying method for global calling.
|
|
102
|
+
* @param {TReplay} args
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
79
105
|
replay(args: TReplay): void;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* Recording method for global calling.
|
|
110
|
+
* @param {boolean} arg
|
|
111
|
+
*
|
|
112
|
+
*/
|
|
80
113
|
record(arg: boolean): void;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* Here you can switch language services by calling this method.
|
|
118
|
+
* @param {boolean} arg
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
81
121
|
switchLspServer(arg: boolean): void;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* Active the playground handler.
|
|
126
|
+
* @memberof DaoPaaS
|
|
127
|
+
*
|
|
128
|
+
*/
|
|
82
129
|
activePlayground(): void;
|
|
83
130
|
|
|
84
131
|
/**
|
|
85
132
|
*
|
|
133
|
+
* Run the playground handler.
|
|
134
|
+
* @memberof DaoPaaS
|
|
135
|
+
*
|
|
136
|
+
*/
|
|
137
|
+
runPlayground(): void;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* Stop the playground.
|
|
142
|
+
* @memberof DaoPaaS
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
145
|
+
stopPlayground(): void;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* Editor component.
|
|
86
150
|
* @memberof DaoPaaS
|
|
87
|
-
*
|
|
151
|
+
* CSS.Properties<string | number>
|
|
88
152
|
*/
|
|
89
|
-
Editor(
|
|
153
|
+
Editor(
|
|
154
|
+
args:
|
|
155
|
+
| TComponentArgs
|
|
156
|
+
| {
|
|
157
|
+
containerStyle: any;
|
|
158
|
+
editorStyle: any;
|
|
159
|
+
menuStyle: any;
|
|
160
|
+
},
|
|
161
|
+
): void;
|
|
90
162
|
|
|
91
163
|
/**
|
|
92
164
|
*
|
|
165
|
+
* Page component.
|
|
93
166
|
* @memberof DaoPaaS
|
|
94
|
-
*
|
|
167
|
+
*
|
|
95
168
|
*/
|
|
96
169
|
Page(args: TComponentArgs): void;
|
|
97
170
|
|
|
98
171
|
/**
|
|
99
172
|
*
|
|
173
|
+
* Tree component.
|
|
100
174
|
* @memberof DaoPaaS
|
|
101
|
-
*
|
|
175
|
+
*
|
|
102
176
|
*/
|
|
103
177
|
Tree(args: TComponentArgs): void;
|
|
104
178
|
|
|
105
179
|
/**
|
|
106
180
|
*
|
|
181
|
+
* Shell component.
|
|
107
182
|
* @memberof DaoPaaS
|
|
108
|
-
*
|
|
183
|
+
*
|
|
109
184
|
*/
|
|
110
185
|
Shell(args: TComponentArgs): void;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* Browser component.
|
|
190
|
+
* @memberof DaoPaaS
|
|
191
|
+
*
|
|
192
|
+
*/
|
|
193
|
+
Browser(args: TComponentArgs): void;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* Console component.
|
|
198
|
+
* @memberof DaoPaaS
|
|
199
|
+
*
|
|
200
|
+
*/
|
|
201
|
+
Console(args: TComponentArgs): void;
|
|
111
202
|
}
|