@dao42/d42paas-front 0.5.4 → 0.5.5
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 +79 -6
- package/package.json +2 -2
package/dist/editor.d.ts
CHANGED
|
@@ -1,22 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/*!-----------------------------------------------------------
|
|
2
|
+
* Copyright (c) dao42. All rights reserved.
|
|
3
|
+
* Type definitions for @dao42/d42paas-front
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
*-----------------------------------------------------------*/
|
|
6
|
+
/*---------------------------------------------------------------------------------------------
|
|
7
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
8
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
9
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
10
|
|
|
6
11
|
export type T_PlaygroundStatus = 'EMPTY' | 'ACTIVE' | 'INACTIVE';
|
|
12
|
+
export type TReplay = 'stop' | 'disabled' | 'pause';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* the arguments of the Playground
|
|
17
|
+
*/
|
|
7
18
|
interface TConstructor {
|
|
19
|
+
/**
|
|
20
|
+
* initing the playground ticket needed
|
|
21
|
+
*/
|
|
8
22
|
ticket: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* to init the playground with this id
|
|
26
|
+
*/
|
|
9
27
|
playgroundId: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* userId for the playground
|
|
31
|
+
*/
|
|
10
32
|
userId: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* tenantId for the playground
|
|
36
|
+
*/
|
|
11
37
|
tenantId: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* username for the playground
|
|
41
|
+
*/
|
|
12
42
|
username?: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* avatar for the playground but not necessarily
|
|
46
|
+
*/
|
|
13
47
|
avatar?: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* avatarUrl for the playground but not necessarily
|
|
51
|
+
*/
|
|
14
52
|
avatarUrl?: string;
|
|
53
|
+
|
|
15
54
|
}
|
|
16
55
|
|
|
17
|
-
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @interface TComponentArgs
|
|
59
|
+
* @desc
|
|
60
|
+
*/
|
|
18
61
|
|
|
19
62
|
interface TComponentArgs {
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {(string | HTMLElement | Element)}
|
|
67
|
+
* @memberof TComponentArgs
|
|
68
|
+
* @desc the DOM for the component
|
|
69
|
+
*/
|
|
20
70
|
container: string | HTMLElement | Element;
|
|
21
71
|
props?: any;
|
|
22
72
|
}
|
|
@@ -30,9 +80,32 @@ export class DaoPaaS {
|
|
|
30
80
|
record(arg: boolean): void;
|
|
31
81
|
switchLspServer(arg: boolean): void;
|
|
32
82
|
activePlayground(): void;
|
|
33
|
-
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @memberof DaoPaaS
|
|
87
|
+
* Editor component
|
|
88
|
+
*/
|
|
34
89
|
Editor(args: TComponentArgs): void;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @memberof DaoPaaS
|
|
94
|
+
* Page component
|
|
95
|
+
*/
|
|
35
96
|
Page(args: TComponentArgs): void;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @memberof DaoPaaS
|
|
101
|
+
* Tree component
|
|
102
|
+
*/
|
|
36
103
|
Tree(args: TComponentArgs): void;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @memberof DaoPaaS
|
|
108
|
+
* Shell component
|
|
109
|
+
*/
|
|
37
110
|
Shell(args: TComponentArgs): void;
|
|
38
111
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dao42/d42paas-front",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "eric183 <kk297466058@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/dao42/d42paas_frontend#readme",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dev": "cross-env TS_NODE_PROJECT=\"tsconfig.dev.json\" webpack serve --open --config ./config/webpack.dev.config.ts",
|
|
32
32
|
"analyse": "cross-env NODE_ENV=production TS_NODE_PROJECT=\"tsconfig.json\" webpack --config ./config/webpack.analytics.config.js",
|
|
33
33
|
"vite:dev": "NODE_ENV=development vite serve --host --config ./config/vite.config.ts",
|
|
34
|
-
"vite": "NODE_ENV=production vite build --config ./config/vite.config.ts && yarn run copyTS && yarn patch
|
|
34
|
+
"vite": "NODE_ENV=production vite build --config ./config/vite.config.ts && yarn run copyTS && yarn patch",
|
|
35
35
|
"fix": "eslint --fix --ext .jsx src/**",
|
|
36
36
|
"copyTS": "shx cp ./src/types/editor.d.ts ./dist",
|
|
37
37
|
"np": "npm publish --access-public",
|