@equinor/echo-framework 0.11.0-rc11 → 0.11.0-rc13
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/components/homePage/HomePage.d.ts +1 -0
- package/dist/components/panel/corePanelLeft.d.ts +1 -4
- package/dist/components/panel/corePanelRight.d.ts +1 -4
- package/dist/coreApplication/EchoBarComponent.d.ts +0 -8
- package/dist/coreApplication/{EchoUserInterfaceContextProvider.d.ts → EchoUserInterfaceStore.d.ts} +4 -8
- package/dist/coreApplication/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +30 -3
- package/dist/types/legend.d.ts +1 -0
- package/dist/utils/legendUtils.d.ts +7 -4
- package/package.json +124 -123
package/dist/types/legend.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export declare enum LegendType {
|
|
|
38
38
|
CPCLStatus = "CPCLStatus",
|
|
39
39
|
Notifications = "Notifications",
|
|
40
40
|
WorkOrders = "WorkOrders",
|
|
41
|
+
WorkOrderRevision = "WorkOrderRevision",
|
|
41
42
|
ValvePosition = "ValvePosition",
|
|
42
43
|
MeasuringPosition = "MeasuringPosition",
|
|
43
44
|
WorkPermit = "WorkPermit"
|
|
@@ -6,10 +6,13 @@ import { LegendStatus, LegendType } from '../types/legend';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function getLegendStatusColor(tagStatus?: LegendStatus | string): string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @param legendType {LegendType}
|
|
11
|
-
* @param status {string} the status to be matched with the given legendType
|
|
12
|
-
* @returns {string | LegendStatus}
|
|
9
|
+
* @deprecated use toLegendStatusOrString instead
|
|
13
10
|
*/
|
|
14
11
|
export declare function legendTypeToLegendStatus(legendType: LegendType, status: string): string | LegendStatus;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the matching legend status for a given string, otherwise return original string.
|
|
14
|
+
* @param status {string} the status to be matched with LegendStatus
|
|
15
|
+
* @returns {LegendStatus | string}
|
|
16
|
+
*/
|
|
17
|
+
export declare function toLegendStatusOrString(status: string): LegendStatus | string;
|
|
15
18
|
export declare function valueToEnum(value: string | undefined | null, enumType: typeof LegendStatus): LegendStatus;
|
package/package.json
CHANGED
|
@@ -1,123 +1,124 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.11.0-
|
|
4
|
-
"description": "Modules and components for EchoWeb, utilizing EchoCore",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"source": "src/index.ts",
|
|
8
|
-
"repository": "https://github.com/equinor/EchoFramework.git",
|
|
9
|
-
"author": "Echo Core",
|
|
10
|
-
"license": "MIT",
|
|
11
|
-
"private": false,
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "rollup -c",
|
|
14
|
-
"build-cli": "npm --prefix ../EchoCli run build",
|
|
15
|
-
"prebuild-cli": "npm --prefix ../EchoClient run build -- --env=cli=true",
|
|
16
|
-
"cli-publish": "npm run build-cli",
|
|
17
|
-
"postcli-publish": "npm --prefix ../EchoCli run echo-publish",
|
|
18
|
-
"cli-next": "npm run build-cli",
|
|
19
|
-
"postcli-next": "npm --prefix ../EchoCli run echo-publish-next",
|
|
20
|
-
"start": "rollup -c -w ",
|
|
21
|
-
"publish-pk": "npm publish --access public",
|
|
22
|
-
"echo-publish": "npm publish --access public",
|
|
23
|
-
"echo-publish-beta": "npm publish --access public --tag beta",
|
|
24
|
-
"echo-publish-next": "npm publish --access public --tag next",
|
|
25
|
-
"echo-test": "jest",
|
|
26
|
-
"lint": "eslint --ext .js,.jsx,.ts,.tsx src --color",
|
|
27
|
-
"test-wo-install": "jest --watchAll",
|
|
28
|
-
"test": "npm ci & jest --watchAll",
|
|
29
|
-
"test-coverage": "npm ci & jest --coverage --watchAll",
|
|
30
|
-
"patch": "npm version patch",
|
|
31
|
-
"major": "npm version major",
|
|
32
|
-
"minor": "npm version minor",
|
|
33
|
-
"echo-update": "echo-update",
|
|
34
|
-
"echo-update-all": "echo-update -a",
|
|
35
|
-
"yalc-purge": "rmdir \"%APPDATA%/../Local/Yalc/packages/@equinor/echo-framework\" /q /s",
|
|
36
|
-
"re-yalc": "npm run build && yalc push --sig"
|
|
37
|
-
},
|
|
38
|
-
"peerDependencies": {
|
|
39
|
-
"@equinor/echo-base": ">=0.6.12 < 0.7.0",
|
|
40
|
-
"@equinor/echo-components": ">=0.5.0 < 0.6.0",
|
|
41
|
-
"@equinor/echo-core": ">=0.6.20 < 0.8.0",
|
|
42
|
-
"@equinor/echo-search": ">=0.13.2 < 0.14.0",
|
|
43
|
-
"@equinor/echo-utils": ">=0.2.12 < 0.3.0",
|
|
44
|
-
"@equinor/eds-core-react": "^0.25.0",
|
|
45
|
-
"react": "^17.0.2",
|
|
46
|
-
"react-dom": "^17.0.2",
|
|
47
|
-
"react-router-dom": "^5.3.4",
|
|
48
|
-
"styled-components": "^5.3.6"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@babel/core": "^7.20.12",
|
|
52
|
-
"@babel/preset-env": "^7.20.2",
|
|
53
|
-
"@babel/preset-react": "^7.18.6",
|
|
54
|
-
"@equinor/echo-base": "^0.6.22",
|
|
55
|
-
"@equinor/echo-components": "^0.5.19",
|
|
56
|
-
"@equinor/echo-core": "^0.7.3",
|
|
57
|
-
"@equinor/echo-scripts": "^0.1.5",
|
|
58
|
-
"@equinor/echo-search": "^0.13.11",
|
|
59
|
-
"@equinor/echo-update": "^1.3.1",
|
|
60
|
-
"@equinor/echo-utils": "^0.2.12",
|
|
61
|
-
"@equinor/eds-core-react": "^0.25.0",
|
|
62
|
-
"@modular-css/rollup": "^28.3.2",
|
|
63
|
-
"@rollup/plugin-babel": "^5.3.1",
|
|
64
|
-
"@rollup/plugin-commonjs": "^22.0.2",
|
|
65
|
-
"@rollup/plugin-image": "^2.1.1",
|
|
66
|
-
"@rollup/plugin-json": "^4.1.0",
|
|
67
|
-
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
68
|
-
"@rollup/plugin-typescript": "^8.5.0",
|
|
69
|
-
"@rollup/plugin-url": "^7.0.0",
|
|
70
|
-
"@svgr/rollup": "^6.5.1",
|
|
71
|
-
"@testing-library/react-hooks": "^8.0.1",
|
|
72
|
-
"@types/jest": "^29.4.0",
|
|
73
|
-
"@types/node": "^18.11.18",
|
|
74
|
-
"@types/react": "^17.0.53",
|
|
75
|
-
"@types/react-dom": "^17.0.18",
|
|
76
|
-
"@types/react-router-dom": "^5.3.3",
|
|
77
|
-
"@types/styled-components": "5.1.26",
|
|
78
|
-
"@typescript-eslint/eslint-plugin": "^5.49.0",
|
|
79
|
-
"@typescript-eslint/parser": "^5.49.0",
|
|
80
|
-
"@wessberg/rollup-plugin-ts": "^2.0.4",
|
|
81
|
-
"autoprefixer": "^10.4.13",
|
|
82
|
-
"babel-jest": "^29.4.0",
|
|
83
|
-
"eslint": "^8.32.0",
|
|
84
|
-
"eslint-config-prettier": "^8.6.0",
|
|
85
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
86
|
-
"eslint-plugin-react": "^7.32.1",
|
|
87
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
88
|
-
"jest": "^29.4.0",
|
|
89
|
-
"jest-environment-jsdom": "^29.4.0",
|
|
90
|
-
"jest-expo": "^47.0.1",
|
|
91
|
-
"postcss": "^8.4.21",
|
|
92
|
-
"postcss-assets": "^6.0.0",
|
|
93
|
-
"postcss-modules": "^4.3.1",
|
|
94
|
-
"prettier": "^2.8.3",
|
|
95
|
-
"react": "^17.0.2",
|
|
96
|
-
"react-dom": "^17.0.2",
|
|
97
|
-
"react-router-dom": "^5.3.4",
|
|
98
|
-
"rollup": "^2.79.1",
|
|
99
|
-
"rollup-plugin-delete": "^2.0.0",
|
|
100
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
101
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
102
|
-
"rollup-plugin-tslib-resolve-id": "^0.0.0",
|
|
103
|
-
"rollup-plugin-typescript-paths": "^1.4.0",
|
|
104
|
-
"rollup-plugin-typescript2": "^0.34.1",
|
|
105
|
-
"styled-components": "^5.3.6",
|
|
106
|
-
"ts-jest": "^29.0.5",
|
|
107
|
-
"tslib": "^2.4.1",
|
|
108
|
-
"typescript": "=4.9.4"
|
|
109
|
-
},
|
|
110
|
-
"compilerOptions": {
|
|
111
|
-
"declaration": true
|
|
112
|
-
},
|
|
113
|
-
"files": [
|
|
114
|
-
"dist/"
|
|
115
|
-
],
|
|
116
|
-
"engines": {
|
|
117
|
-
"node": ">=16.8.0",
|
|
118
|
-
"npm": ">=7.0.0"
|
|
119
|
-
},
|
|
120
|
-
"dependencies": {
|
|
121
|
-
"@microsoft/signalr": "^6.0.13"
|
|
122
|
-
|
|
123
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@equinor/echo-framework",
|
|
3
|
+
"version": "0.11.0-rc13",
|
|
4
|
+
"description": "Modules and components for EchoWeb, utilizing EchoCore",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"source": "src/index.ts",
|
|
8
|
+
"repository": "https://github.com/equinor/EchoFramework.git",
|
|
9
|
+
"author": "Echo Core",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"private": false,
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "rollup -c",
|
|
14
|
+
"build-cli": "npm --prefix ../EchoCli run build",
|
|
15
|
+
"prebuild-cli": "npm --prefix ../EchoClient run build -- --env=cli=true",
|
|
16
|
+
"cli-publish": "npm run build-cli",
|
|
17
|
+
"postcli-publish": "npm --prefix ../EchoCli run echo-publish",
|
|
18
|
+
"cli-next": "npm run build-cli",
|
|
19
|
+
"postcli-next": "npm --prefix ../EchoCli run echo-publish-next",
|
|
20
|
+
"start": "rollup -c -w ",
|
|
21
|
+
"publish-pk": "npm publish --access public",
|
|
22
|
+
"echo-publish": "npm publish --access public",
|
|
23
|
+
"echo-publish-beta": "npm publish --access public --tag beta",
|
|
24
|
+
"echo-publish-next": "npm publish --access public --tag next",
|
|
25
|
+
"echo-test": "jest",
|
|
26
|
+
"lint": "eslint --ext .js,.jsx,.ts,.tsx src --color",
|
|
27
|
+
"test-wo-install": "jest --watchAll",
|
|
28
|
+
"test": "npm ci & jest --watchAll",
|
|
29
|
+
"test-coverage": "npm ci & jest --coverage --watchAll",
|
|
30
|
+
"patch": "npm version patch",
|
|
31
|
+
"major": "npm version major",
|
|
32
|
+
"minor": "npm version minor",
|
|
33
|
+
"echo-update": "echo-update",
|
|
34
|
+
"echo-update-all": "echo-update -a",
|
|
35
|
+
"yalc-purge": "rmdir \"%APPDATA%/../Local/Yalc/packages/@equinor/echo-framework\" /q /s",
|
|
36
|
+
"re-yalc": "npm run build && yalc push --sig"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@equinor/echo-base": ">=0.6.12 < 0.7.0",
|
|
40
|
+
"@equinor/echo-components": ">=0.5.0 < 0.6.0",
|
|
41
|
+
"@equinor/echo-core": ">=0.6.20 < 0.8.0",
|
|
42
|
+
"@equinor/echo-search": ">=0.13.2 < 0.14.0",
|
|
43
|
+
"@equinor/echo-utils": ">=0.2.12 < 0.3.0",
|
|
44
|
+
"@equinor/eds-core-react": "^0.25.0",
|
|
45
|
+
"react": "^17.0.2",
|
|
46
|
+
"react-dom": "^17.0.2",
|
|
47
|
+
"react-router-dom": "^5.3.4",
|
|
48
|
+
"styled-components": "^5.3.6"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@babel/core": "^7.20.12",
|
|
52
|
+
"@babel/preset-env": "^7.20.2",
|
|
53
|
+
"@babel/preset-react": "^7.18.6",
|
|
54
|
+
"@equinor/echo-base": "^0.6.22",
|
|
55
|
+
"@equinor/echo-components": "^0.5.19",
|
|
56
|
+
"@equinor/echo-core": "^0.7.3",
|
|
57
|
+
"@equinor/echo-scripts": "^0.1.5",
|
|
58
|
+
"@equinor/echo-search": "^0.13.11",
|
|
59
|
+
"@equinor/echo-update": "^1.3.1",
|
|
60
|
+
"@equinor/echo-utils": "^0.2.12",
|
|
61
|
+
"@equinor/eds-core-react": "^0.25.0",
|
|
62
|
+
"@modular-css/rollup": "^28.3.2",
|
|
63
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
64
|
+
"@rollup/plugin-commonjs": "^22.0.2",
|
|
65
|
+
"@rollup/plugin-image": "^2.1.1",
|
|
66
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
67
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
68
|
+
"@rollup/plugin-typescript": "^8.5.0",
|
|
69
|
+
"@rollup/plugin-url": "^7.0.0",
|
|
70
|
+
"@svgr/rollup": "^6.5.1",
|
|
71
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
72
|
+
"@types/jest": "^29.4.0",
|
|
73
|
+
"@types/node": "^18.11.18",
|
|
74
|
+
"@types/react": "^17.0.53",
|
|
75
|
+
"@types/react-dom": "^17.0.18",
|
|
76
|
+
"@types/react-router-dom": "^5.3.3",
|
|
77
|
+
"@types/styled-components": "5.1.26",
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "^5.49.0",
|
|
79
|
+
"@typescript-eslint/parser": "^5.49.0",
|
|
80
|
+
"@wessberg/rollup-plugin-ts": "^2.0.4",
|
|
81
|
+
"autoprefixer": "^10.4.13",
|
|
82
|
+
"babel-jest": "^29.4.0",
|
|
83
|
+
"eslint": "^8.32.0",
|
|
84
|
+
"eslint-config-prettier": "^8.6.0",
|
|
85
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
86
|
+
"eslint-plugin-react": "^7.32.1",
|
|
87
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
88
|
+
"jest": "^29.4.0",
|
|
89
|
+
"jest-environment-jsdom": "^29.4.0",
|
|
90
|
+
"jest-expo": "^47.0.1",
|
|
91
|
+
"postcss": "^8.4.21",
|
|
92
|
+
"postcss-assets": "^6.0.0",
|
|
93
|
+
"postcss-modules": "^4.3.1",
|
|
94
|
+
"prettier": "^2.8.3",
|
|
95
|
+
"react": "^17.0.2",
|
|
96
|
+
"react-dom": "^17.0.2",
|
|
97
|
+
"react-router-dom": "^5.3.4",
|
|
98
|
+
"rollup": "^2.79.1",
|
|
99
|
+
"rollup-plugin-delete": "^2.0.0",
|
|
100
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
101
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
102
|
+
"rollup-plugin-tslib-resolve-id": "^0.0.0",
|
|
103
|
+
"rollup-plugin-typescript-paths": "^1.4.0",
|
|
104
|
+
"rollup-plugin-typescript2": "^0.34.1",
|
|
105
|
+
"styled-components": "^5.3.6",
|
|
106
|
+
"ts-jest": "^29.0.5",
|
|
107
|
+
"tslib": "^2.4.1",
|
|
108
|
+
"typescript": "=4.9.4"
|
|
109
|
+
},
|
|
110
|
+
"compilerOptions": {
|
|
111
|
+
"declaration": true
|
|
112
|
+
},
|
|
113
|
+
"files": [
|
|
114
|
+
"dist/"
|
|
115
|
+
],
|
|
116
|
+
"engines": {
|
|
117
|
+
"node": ">=16.8.0",
|
|
118
|
+
"npm": ">=7.0.0"
|
|
119
|
+
},
|
|
120
|
+
"dependencies": {
|
|
121
|
+
"@microsoft/signalr": "^6.0.13",
|
|
122
|
+
"zustand": "^4.3.2"
|
|
123
|
+
}
|
|
124
|
+
}
|