@dao42/d42paas-front 0.7.51 → 0.7.52
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 +382 -354
- package/dist/DaoPaaS.umd.js +43 -39
- package/dist/editor.d.ts +42 -11
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/editor.d.ts
CHANGED
|
@@ -11,7 +11,13 @@ import { Extend } from 'schema-utils/declarations/validate';
|
|
|
11
11
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
12
12
|
*--------------------------------------------------------------------------------------------*/
|
|
13
13
|
|
|
14
|
-
export type ComponentType =
|
|
14
|
+
export type ComponentType =
|
|
15
|
+
| 'Page'
|
|
16
|
+
| 'Tree'
|
|
17
|
+
| 'Editor'
|
|
18
|
+
| 'Console'
|
|
19
|
+
| 'Browser'
|
|
20
|
+
| 'Shell';
|
|
15
21
|
|
|
16
22
|
export type Mode = 'tsdoc' | 'singleFile' | 'IDE';
|
|
17
23
|
|
|
@@ -77,7 +83,7 @@ interface UserInfo {
|
|
|
77
83
|
// timestamp: number;
|
|
78
84
|
// }
|
|
79
85
|
|
|
80
|
-
interface TreeProps {
|
|
86
|
+
export interface TreeProps {
|
|
81
87
|
/**
|
|
82
88
|
* The background color of the tree
|
|
83
89
|
*/
|
|
@@ -118,7 +124,7 @@ interface TreeProps {
|
|
|
118
124
|
onClick?: (arg: { path: string; uri: string }) => void;
|
|
119
125
|
}
|
|
120
126
|
|
|
121
|
-
interface MenuTagProps {
|
|
127
|
+
export interface MenuTagProps {
|
|
122
128
|
/**
|
|
123
129
|
* The style of the menu tag block
|
|
124
130
|
*/
|
|
@@ -152,6 +158,11 @@ interface MenuTagProps {
|
|
|
152
158
|
* The icon hover color
|
|
153
159
|
*/
|
|
154
160
|
hoverIconColor?: string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The menu tag height
|
|
164
|
+
*/
|
|
165
|
+
height?: string;
|
|
155
166
|
};
|
|
156
167
|
}
|
|
157
168
|
|
|
@@ -163,21 +174,41 @@ interface EditorProps extends MenuTagProps {
|
|
|
163
174
|
/**
|
|
164
175
|
* The color of the margin view overlay
|
|
165
176
|
*/
|
|
166
|
-
|
|
177
|
+
marginViewOverlaysBgColor?: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* The width of the margin view overlay
|
|
181
|
+
*/
|
|
182
|
+
marginViewOverlaysWidth?: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* The left position of the margin view overlay
|
|
186
|
+
*/
|
|
187
|
+
marginViewOverlaysLeft?: string;
|
|
167
188
|
|
|
168
189
|
/**
|
|
169
190
|
* The line number color
|
|
170
191
|
*/
|
|
171
|
-
|
|
192
|
+
lineNumbersColor?: string;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* The line number with
|
|
196
|
+
*/
|
|
197
|
+
lineNumbersWidth?: string;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* The line number left
|
|
201
|
+
*/
|
|
202
|
+
lineNumbersLeft?: string;
|
|
172
203
|
|
|
173
204
|
/**
|
|
174
205
|
* The active line number color
|
|
175
206
|
*/
|
|
176
|
-
|
|
207
|
+
activeLineNumberColor?: string;
|
|
177
208
|
};
|
|
178
209
|
}
|
|
179
210
|
|
|
180
|
-
interface ConsoleOrShellProps {
|
|
211
|
+
export interface ConsoleOrShellProps {
|
|
181
212
|
/**
|
|
182
213
|
* The font size of the shell
|
|
183
214
|
*/
|
|
@@ -224,7 +255,7 @@ interface ConsoleOrShellProps {
|
|
|
224
255
|
};
|
|
225
256
|
}
|
|
226
257
|
|
|
227
|
-
export interface
|
|
258
|
+
export interface BrowserProps {
|
|
228
259
|
/**
|
|
229
260
|
* The url of the browser
|
|
230
261
|
*/
|
|
@@ -257,7 +288,7 @@ export interface BrowserProp {
|
|
|
257
288
|
export type ComponentPropsType =
|
|
258
289
|
| EditorProps
|
|
259
290
|
| TreeProps
|
|
260
|
-
|
|
|
291
|
+
| BrowserProps
|
|
261
292
|
| ConsoleOrShellProps;
|
|
262
293
|
|
|
263
294
|
/**
|
|
@@ -560,7 +591,7 @@ export class DaoPaaS {
|
|
|
560
591
|
* Dao.Browser({
|
|
561
592
|
* container: '#browser',
|
|
562
593
|
* item: 'browser',
|
|
563
|
-
* props: {...
|
|
594
|
+
* props: {...BrowserProps}
|
|
564
595
|
* });
|
|
565
596
|
```
|
|
566
597
|
*
|
|
@@ -569,7 +600,7 @@ export class DaoPaaS {
|
|
|
569
600
|
* @param Component
|
|
570
601
|
*
|
|
571
602
|
*/
|
|
572
|
-
Browser(args: Component<
|
|
603
|
+
Browser(args: Component<BrowserProps>): void;
|
|
573
604
|
|
|
574
605
|
/**
|
|
575
606
|
*
|