@giteeteam/apps-manifest 0.1.4 → 0.2.1
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/README.md +1 -1
- package/lib/types.d.ts +7 -7
- package/package.json +8 -9
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
# Apps Manifest
|
|
1
|
+
# Apps Manifest
|
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type TriggerEvent = string;
|
|
2
2
|
export interface IManifestResource {
|
|
3
3
|
key: string;
|
|
4
4
|
path: string;
|
|
@@ -10,7 +10,7 @@ export interface IManifestApp {
|
|
|
10
10
|
description?: string;
|
|
11
11
|
version?: string;
|
|
12
12
|
}
|
|
13
|
-
export
|
|
13
|
+
export type LoadType = 'micro' | 'iframe' | 'remoteJs' | 'redirect' | 'uikit';
|
|
14
14
|
export interface IManifestModule {
|
|
15
15
|
key: string;
|
|
16
16
|
loadType?: LoadType;
|
|
@@ -54,7 +54,7 @@ export interface IManifestCustomFieldType {
|
|
|
54
54
|
resource: string;
|
|
55
55
|
description?: string;
|
|
56
56
|
}
|
|
57
|
-
export
|
|
57
|
+
export type TManifestModules = {
|
|
58
58
|
[k in string]?: IManifestModule[];
|
|
59
59
|
} & {
|
|
60
60
|
function?: IManifestFunction[];
|
|
@@ -64,10 +64,10 @@ export declare type TManifestModules = {
|
|
|
64
64
|
customFieldType?: IManifestCustomFieldType[];
|
|
65
65
|
customItemType?: any[];
|
|
66
66
|
};
|
|
67
|
-
export
|
|
68
|
-
export
|
|
69
|
-
export
|
|
70
|
-
export
|
|
67
|
+
export type TManifestLanguage = 'en-US' | 'zh-CN';
|
|
68
|
+
export type TManifestLocalesItem = Record<string, string>;
|
|
69
|
+
export type TManifestLocalesItems = Record<string, TManifestLocalesItem>;
|
|
70
|
+
export type TManifestLocales = Record<TManifestLanguage, TManifestLocalesItems>;
|
|
71
71
|
export interface IManifest {
|
|
72
72
|
app: IManifestApp;
|
|
73
73
|
modules: TManifestModules;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@giteeteam/apps-manifest",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Giteeteam Apps Manifest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -13,26 +13,25 @@
|
|
|
13
13
|
"lib"
|
|
14
14
|
],
|
|
15
15
|
"bugs": {
|
|
16
|
-
"url": "https://github.com/moriahq/
|
|
16
|
+
"url": "https://github.com/moriahq/proxima/issues"
|
|
17
17
|
},
|
|
18
|
-
"homepage": "https://github.com/moriahq/
|
|
18
|
+
"homepage": "https://github.com/moriahq/proxima/tree/develop/giteeteam/packages/giteeteam/packages/apps-manifest",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/moriahq/
|
|
21
|
+
"url": "git+https://github.com/moriahq/proxima.git"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"dev": "tsc -w",
|
|
25
|
-
"build": "
|
|
26
|
-
"prepare": "
|
|
25
|
+
"build": "rm -rf lib && tsc",
|
|
26
|
+
"prepare": "pnpm run build",
|
|
27
|
+
"prepublish": "pnpm run build"
|
|
27
28
|
},
|
|
28
29
|
"publishConfig": {
|
|
29
|
-
"allowBranch": "master",
|
|
30
30
|
"conventionalCommits": true,
|
|
31
31
|
"access": "public",
|
|
32
32
|
"registry": "https://registry.npmjs.org/"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"yaml": "^2.1.1"
|
|
36
|
-
}
|
|
37
|
-
"gitHead": "bcee13307660e408ddfbfcc5924931bf56b577bc"
|
|
36
|
+
}
|
|
38
37
|
}
|