@dao42/d42paas-front 0.7.35 → 0.7.39
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 +6068 -7866
- package/dist/DaoPaaS.umd.js +645 -1002
- package/dist/editor.d.ts +66 -18
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/editor.d.ts
CHANGED
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
10
10
|
*--------------------------------------------------------------------------------------------*/
|
|
11
|
+
|
|
12
|
+
export type componentType = 'Tree' | 'Editor' | 'Console' | 'Browser' | 'Shell';
|
|
13
|
+
|
|
11
14
|
export type Mode = 'tsdoc' | 'singleFile' | 'IDE';
|
|
12
15
|
|
|
13
16
|
export type PlaygroundStatus = 'EMPTY' | 'ACTIVE' | 'INACTIVE';
|
|
@@ -20,12 +23,15 @@ type MessageType = {
|
|
|
20
23
|
PlaygroundStatus?: PlaygroundStatus;
|
|
21
24
|
dockerStatus?: DockerStatus;
|
|
22
25
|
userList?: UserInfo[];
|
|
26
|
+
followingUser: UserInfo;
|
|
23
27
|
};
|
|
24
28
|
|
|
25
29
|
type ErrorType = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
message: {
|
|
31
|
+
content: string;
|
|
32
|
+
playgroundId: string;
|
|
33
|
+
timestamp: number;
|
|
34
|
+
};
|
|
29
35
|
};
|
|
30
36
|
|
|
31
37
|
/**
|
|
@@ -49,6 +55,56 @@ type ReplayType = {
|
|
|
49
55
|
timestamp: number;
|
|
50
56
|
};
|
|
51
57
|
|
|
58
|
+
type TreeProps = {
|
|
59
|
+
dropBgColor?: string;
|
|
60
|
+
dropTextColor?: string;
|
|
61
|
+
hoverBgColor?: string;
|
|
62
|
+
hoverTextColor?: string;
|
|
63
|
+
bgColor?: string;
|
|
64
|
+
fontColor?: string;
|
|
65
|
+
onClick?: (arg: { path: string; uri: string }) => void;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export type MenuTagProps = {
|
|
69
|
+
menuStyle?: {
|
|
70
|
+
backgroundColor?: string;
|
|
71
|
+
textColor?: string;
|
|
72
|
+
hoverBgColor?: string;
|
|
73
|
+
hoverTextColor?: string;
|
|
74
|
+
iconColor?: string;
|
|
75
|
+
hoverIconColor?: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export type EditorTheme = {
|
|
80
|
+
theme?: {
|
|
81
|
+
marginViewOverlays?: string;
|
|
82
|
+
lineNumbers?: string;
|
|
83
|
+
activeLineNumber?: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export type ShellProps = {
|
|
88
|
+
fontSize?: number;
|
|
89
|
+
fontFamily?: string;
|
|
90
|
+
lineHeight?: number;
|
|
91
|
+
cursorBlink?: boolean;
|
|
92
|
+
cursorWidth?: number;
|
|
93
|
+
cursorStyle?: string;
|
|
94
|
+
rightClickSelectsWord?: boolean;
|
|
95
|
+
theme?: {
|
|
96
|
+
background?: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export type OutputBrowserProp = {
|
|
101
|
+
url?: string;
|
|
102
|
+
showURL?: boolean;
|
|
103
|
+
freshIconColor?: string;
|
|
104
|
+
inputColor?: string;
|
|
105
|
+
openIconColor?: string;
|
|
106
|
+
};
|
|
107
|
+
|
|
52
108
|
/**
|
|
53
109
|
* Passing the values to init the playground.
|
|
54
110
|
*/
|
|
@@ -60,7 +116,7 @@ export interface Options {
|
|
|
60
116
|
* Error listener to the aplication.
|
|
61
117
|
* @param error
|
|
62
118
|
*/
|
|
63
|
-
onError?: (error:
|
|
119
|
+
onError?: (error: ErrorType) => void;
|
|
64
120
|
|
|
65
121
|
/**
|
|
66
122
|
*
|
|
@@ -144,7 +200,7 @@ export interface Options {
|
|
|
144
200
|
}
|
|
145
201
|
|
|
146
202
|
export interface UserComponent extends ComponentArgs {
|
|
147
|
-
item:
|
|
203
|
+
item: componentType;
|
|
148
204
|
}
|
|
149
205
|
|
|
150
206
|
/**
|
|
@@ -253,15 +309,7 @@ export class DaoPaaS {
|
|
|
253
309
|
* @param ComponentArgs
|
|
254
310
|
* CSS.Properties<string | number>
|
|
255
311
|
*/
|
|
256
|
-
Editor(
|
|
257
|
-
args:
|
|
258
|
-
| ComponentArgs
|
|
259
|
-
| {
|
|
260
|
-
containerStyle: any;
|
|
261
|
-
editorStyle: any;
|
|
262
|
-
menuStyle: any;
|
|
263
|
-
},
|
|
264
|
-
): void;
|
|
312
|
+
Editor(args: ComponentArgs & MenuTagProps & EditorTheme): void;
|
|
265
313
|
|
|
266
314
|
/**
|
|
267
315
|
*
|
|
@@ -277,7 +325,7 @@ export class DaoPaaS {
|
|
|
277
325
|
* @param ComponentArgs
|
|
278
326
|
*
|
|
279
327
|
*/
|
|
280
|
-
Tree(args: ComponentArgs): void;
|
|
328
|
+
Tree(args: ComponentArgs & TreeProps): void;
|
|
281
329
|
|
|
282
330
|
/**
|
|
283
331
|
*
|
|
@@ -285,7 +333,7 @@ export class DaoPaaS {
|
|
|
285
333
|
* @param ComponentArgs
|
|
286
334
|
*
|
|
287
335
|
*/
|
|
288
|
-
Shell(args: ComponentArgs): void;
|
|
336
|
+
Shell(args: ComponentArgs & ShellProps): void;
|
|
289
337
|
|
|
290
338
|
/**
|
|
291
339
|
*
|
|
@@ -293,7 +341,7 @@ export class DaoPaaS {
|
|
|
293
341
|
* @param ComponentArgs
|
|
294
342
|
*
|
|
295
343
|
*/
|
|
296
|
-
Browser(args: ComponentArgs): void;
|
|
344
|
+
Browser(args: ComponentArgs & OutputBrowserProp): void;
|
|
297
345
|
|
|
298
346
|
/**
|
|
299
347
|
*
|
|
@@ -301,5 +349,5 @@ export class DaoPaaS {
|
|
|
301
349
|
* @param ComponentArgs
|
|
302
350
|
*
|
|
303
351
|
*/
|
|
304
|
-
Console(args: ComponentArgs): void;
|
|
352
|
+
Console(args: ComponentArgs & ShellProps): void;
|
|
305
353
|
}
|