@dao42/d42paas-front 0.7.50 → 0.7.53

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/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 = 'Tree' | 'Editor' | 'Console' | 'Browser' | 'Shell';
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
 
@@ -25,6 +31,7 @@ interface MessageType {
25
31
  dockerStatus?: DockerStatus;
26
32
  userList?: UserInfo[];
27
33
  followingUser?: UserInfo;
34
+ usersFollowYou?: UserInfo[];
28
35
  }
29
36
 
30
37
  interface ErrorType {
@@ -77,7 +84,7 @@ interface UserInfo {
77
84
  // timestamp: number;
78
85
  // }
79
86
 
80
- interface TreeProps {
87
+ export interface TreeProps {
81
88
  /**
82
89
  * The background color of the tree
83
90
  */
@@ -118,7 +125,7 @@ interface TreeProps {
118
125
  onClick?: (arg: { path: string; uri: string }) => void;
119
126
  }
120
127
 
121
- interface MenuTagProps {
128
+ export interface MenuTagProps {
122
129
  /**
123
130
  * The style of the menu tag block
124
131
  */
@@ -152,6 +159,11 @@ interface MenuTagProps {
152
159
  * The icon hover color
153
160
  */
154
161
  hoverIconColor?: string;
162
+
163
+ /**
164
+ * The menu tag height
165
+ */
166
+ height?: string;
155
167
  };
156
168
  }
157
169
 
@@ -163,21 +175,41 @@ interface EditorProps extends MenuTagProps {
163
175
  /**
164
176
  * The color of the margin view overlay
165
177
  */
166
- marginViewOverlays?: string;
178
+ marginViewOverlaysBgColor?: string;
179
+
180
+ /**
181
+ * The width of the margin view overlay
182
+ */
183
+ marginViewOverlaysWidth?: string;
184
+
185
+ /**
186
+ * The left position of the margin view overlay
187
+ */
188
+ marginViewOverlaysLeft?: string;
167
189
 
168
190
  /**
169
191
  * The line number color
170
192
  */
171
- lineNumbers?: string;
193
+ lineNumbersColor?: string;
194
+
195
+ /**
196
+ * The line number with
197
+ */
198
+ lineNumbersWidth?: string;
199
+
200
+ /**
201
+ * The line number left
202
+ */
203
+ lineNumbersLeft?: string;
172
204
 
173
205
  /**
174
206
  * The active line number color
175
207
  */
176
- activeLineNumber?: string;
208
+ activeLineNumberColor?: string;
177
209
  };
178
210
  }
179
211
 
180
- interface ConsoleOrShellProps {
212
+ export interface ConsoleOrShellProps {
181
213
  /**
182
214
  * The font size of the shell
183
215
  */
@@ -224,7 +256,7 @@ interface ConsoleOrShellProps {
224
256
  };
225
257
  }
226
258
 
227
- export interface BrowserProp {
259
+ export interface BrowserProps {
228
260
  /**
229
261
  * The url of the browser
230
262
  */
@@ -257,7 +289,7 @@ export interface BrowserProp {
257
289
  export type ComponentPropsType =
258
290
  | EditorProps
259
291
  | TreeProps
260
- | BrowserProp
292
+ | BrowserProps
261
293
  | ConsoleOrShellProps;
262
294
 
263
295
  /**
@@ -560,7 +592,7 @@ export class DaoPaaS {
560
592
  * Dao.Browser({
561
593
  * container: '#browser',
562
594
  * item: 'browser',
563
- * props: {...BrowserProp}
595
+ * props: {...BrowserProps}
564
596
  * });
565
597
  ```
566
598
  *
@@ -569,7 +601,7 @@ export class DaoPaaS {
569
601
  * @param Component
570
602
  *
571
603
  */
572
- Browser(args: Component<BrowserProp>): void;
604
+ Browser(args: Component<BrowserProps>): void;
573
605
 
574
606
  /**
575
607
  *