@dao42/d42paas-front 0.7.35 → 0.7.36
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 +515 -100
- package/dist/DaoPaaS.umd.js +644 -536
- package/dist/editor.d.ts +58 -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';
|
|
@@ -23,9 +26,11 @@ type MessageType = {
|
|
|
23
26
|
};
|
|
24
27
|
|
|
25
28
|
type ErrorType = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
message: {
|
|
30
|
+
content: string;
|
|
31
|
+
playgroundId: string;
|
|
32
|
+
timestamp: number;
|
|
33
|
+
};
|
|
29
34
|
};
|
|
30
35
|
|
|
31
36
|
/**
|
|
@@ -49,6 +54,49 @@ type ReplayType = {
|
|
|
49
54
|
timestamp: number;
|
|
50
55
|
};
|
|
51
56
|
|
|
57
|
+
type TreeProps = {
|
|
58
|
+
dropBgColor?: string;
|
|
59
|
+
dropTextColor?: string;
|
|
60
|
+
hoverBgColor?: string;
|
|
61
|
+
hoverTextColor?: string;
|
|
62
|
+
bgColor?: string;
|
|
63
|
+
fontColor?: string;
|
|
64
|
+
onClick?: (arg: { path: string; uri: string }) => void;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export type MenuTagProps = {
|
|
68
|
+
menuStyle?: {
|
|
69
|
+
backgroundColor?: string;
|
|
70
|
+
textColor?: string;
|
|
71
|
+
hoverBgColor?: string;
|
|
72
|
+
hoverTextColor?: string;
|
|
73
|
+
iconColor?: string;
|
|
74
|
+
hoverIconColor?: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
export type ShellProps = {
|
|
80
|
+
fontSize?: number;
|
|
81
|
+
fontFamily?: string;
|
|
82
|
+
lineHeight?: number;
|
|
83
|
+
cursorBlink?: boolean;
|
|
84
|
+
cursorWidth?: number;
|
|
85
|
+
cursorStyle?: string;
|
|
86
|
+
rightClickSelectsWord?: boolean;
|
|
87
|
+
theme?: {
|
|
88
|
+
background?: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export type OutputBrowserProp = {
|
|
93
|
+
url?: string;
|
|
94
|
+
showURL?: boolean;
|
|
95
|
+
freshIconColor?: string;
|
|
96
|
+
inputColor?: string;
|
|
97
|
+
openIconColor?: string;
|
|
98
|
+
};
|
|
99
|
+
|
|
52
100
|
/**
|
|
53
101
|
* Passing the values to init the playground.
|
|
54
102
|
*/
|
|
@@ -60,7 +108,7 @@ export interface Options {
|
|
|
60
108
|
* Error listener to the aplication.
|
|
61
109
|
* @param error
|
|
62
110
|
*/
|
|
63
|
-
onError?: (error:
|
|
111
|
+
onError?: (error: ErrorType) => void;
|
|
64
112
|
|
|
65
113
|
/**
|
|
66
114
|
*
|
|
@@ -144,7 +192,7 @@ export interface Options {
|
|
|
144
192
|
}
|
|
145
193
|
|
|
146
194
|
export interface UserComponent extends ComponentArgs {
|
|
147
|
-
item:
|
|
195
|
+
item: componentType;
|
|
148
196
|
}
|
|
149
197
|
|
|
150
198
|
/**
|
|
@@ -253,15 +301,7 @@ export class DaoPaaS {
|
|
|
253
301
|
* @param ComponentArgs
|
|
254
302
|
* CSS.Properties<string | number>
|
|
255
303
|
*/
|
|
256
|
-
Editor(
|
|
257
|
-
args:
|
|
258
|
-
| ComponentArgs
|
|
259
|
-
| {
|
|
260
|
-
containerStyle: any;
|
|
261
|
-
editorStyle: any;
|
|
262
|
-
menuStyle: any;
|
|
263
|
-
},
|
|
264
|
-
): void;
|
|
304
|
+
Editor(args: ComponentArgs & MenuTagProps): void;
|
|
265
305
|
|
|
266
306
|
/**
|
|
267
307
|
*
|
|
@@ -277,7 +317,7 @@ export class DaoPaaS {
|
|
|
277
317
|
* @param ComponentArgs
|
|
278
318
|
*
|
|
279
319
|
*/
|
|
280
|
-
Tree(args: ComponentArgs): void;
|
|
320
|
+
Tree(args: ComponentArgs & TreeProps): void;
|
|
281
321
|
|
|
282
322
|
/**
|
|
283
323
|
*
|
|
@@ -285,7 +325,7 @@ export class DaoPaaS {
|
|
|
285
325
|
* @param ComponentArgs
|
|
286
326
|
*
|
|
287
327
|
*/
|
|
288
|
-
Shell(args: ComponentArgs): void;
|
|
328
|
+
Shell(args: ComponentArgs & ShellProps): void;
|
|
289
329
|
|
|
290
330
|
/**
|
|
291
331
|
*
|
|
@@ -293,7 +333,7 @@ export class DaoPaaS {
|
|
|
293
333
|
* @param ComponentArgs
|
|
294
334
|
*
|
|
295
335
|
*/
|
|
296
|
-
Browser(args: ComponentArgs): void;
|
|
336
|
+
Browser(args: ComponentArgs & OutputBrowserProp): void;
|
|
297
337
|
|
|
298
338
|
/**
|
|
299
339
|
*
|
|
@@ -301,5 +341,5 @@ export class DaoPaaS {
|
|
|
301
341
|
* @param ComponentArgs
|
|
302
342
|
*
|
|
303
343
|
*/
|
|
304
|
-
Console(args: ComponentArgs): void;
|
|
344
|
+
Console(args: ComponentArgs & ShellProps): void;
|
|
305
345
|
}
|