@equinor/echo-framework 0.9.4 → 0.9.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.
Files changed (47) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +6 -6
  3. package/dist/{063009f06499d102.svg → 47deeba42768c5d1.svg} +8 -8
  4. package/dist/_virtual/index.js +9 -0
  5. package/dist/components/containers/layouts.d.ts +3 -5
  6. package/dist/components/panel/corePanelLeft.d.ts +4 -1
  7. package/dist/components/panel/corePanelRight.d.ts +4 -1
  8. package/dist/components/router/echoRoute.d.ts +2 -2
  9. package/dist/components/router/index.d.ts +0 -1
  10. package/dist/coreApplication/EchoBarComponent.d.ts +12 -0
  11. package/dist/coreApplication/index.d.ts +1 -0
  12. package/dist/hooks/hookLibrary.d.ts +13 -2
  13. package/dist/hooks/index.d.ts +2 -0
  14. package/dist/hooks/useIsCompactLayout.d.ts +5 -0
  15. package/dist/hooks/useScreenOrientation.d.ts +5 -0
  16. package/dist/hooks/useScreenValues.d.ts +17 -0
  17. package/dist/hooks/useWindowSize.d.ts +9 -0
  18. package/dist/index.d.ts +14 -1
  19. package/dist/node_modules/classnames/index.js +67 -0
  20. package/dist/src/components/containers/layout.module.css.js +6 -2
  21. package/dist/src/components/containers/layouts.js +67 -36
  22. package/dist/src/components/contextualAppLinks/externalLinkButtons/externalLinkToTr2000.js +2 -0
  23. package/dist/src/components/footer/footer.module.css.js +1 -1
  24. package/dist/src/components/panel/corePanelLeft.js +5 -2
  25. package/dist/src/components/panel/corePanelLeft.module.css.js +1 -1
  26. package/dist/src/components/panel/corePanelRight.js +5 -2
  27. package/dist/src/components/panel/corePanelRight.module.css.js +1 -1
  28. package/dist/src/components/router/echoRoute.js +9 -3
  29. package/dist/src/components/router/routes.js +1 -4
  30. package/dist/src/coreApplication/EchoBarComponent.js +182 -0
  31. package/dist/src/coreApplication/EchoContent.js +21 -1
  32. package/dist/src/coreApplication/EchoContent.module.css.js +17 -0
  33. package/dist/src/globalStyles.css.js +1 -1
  34. package/dist/src/hooks/hookLibrary.js +17 -0
  35. package/dist/src/hooks/index.js +6 -0
  36. package/dist/src/hooks/useIsCompactLayout.js +47 -0
  37. package/dist/src/hooks/useScreenOrientation.js +62 -0
  38. package/dist/src/hooks/useScreenValues.js +48 -0
  39. package/dist/src/hooks/useWindowSize.js +62 -0
  40. package/dist/src/icons/common/SemiIcon.svg.js +1 -1
  41. package/dist/src/icons/equinor-logo.js +9 -9
  42. package/dist/src/index.js +19 -8
  43. package/dist/src/index2.js +37 -26
  44. package/dist/types/hookLibrary.d.ts +5 -0
  45. package/package.json +118 -118
  46. package/dist/components/router/useLayout.d.ts +0 -3
  47. package/dist/src/components/router/useLayout.js +0 -32
package/package.json CHANGED
@@ -1,118 +1,118 @@
1
- {
2
- "name": "@equinor/echo-framework",
3
- "version": "0.9.4",
4
- "description": "Modules and components for EchoWeb, utilizing EchoCore",
5
- "main": "dist/src/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
- },
36
- "peerDependencies": {
37
- "@equinor/echo-base": "^0.6.8",
38
- "@equinor/echo-components": "^0.4.0",
39
- "@equinor/echo-core": "^0.6.15",
40
- "@equinor/echo-search": "^0.12.4",
41
- "@equinor/echo-utils": "^0.2.11",
42
- "@equinor/eds-core-react": "^0.19.0",
43
- "react": "^17.0.2",
44
- "react-dom": "^17.0.2",
45
- "react-router-dom": "^5.3.3",
46
- "styled-components": "^5.3.5"
47
- },
48
- "devDependencies": {
49
- "@babel/core": "^7.18.5",
50
- "@babel/preset-env": "^7.18.2",
51
- "@babel/preset-react": "^7.17.12",
52
- "@equinor/echo-base": "^0.6.8",
53
- "@equinor/echo-components": "^0.4.0",
54
- "@equinor/echo-core": "^0.6.15",
55
- "@equinor/echo-scripts": "^0.1.5",
56
- "@equinor/echo-search": "^0.12.4",
57
- "@equinor/echo-update": "^1.3.0",
58
- "@equinor/echo-utils": "^0.2.11",
59
- "@equinor/eds-core-react": "^0.19.0",
60
- "@modular-css/rollup": "^28.1.3",
61
- "@rollup/plugin-babel": "^5.3.1",
62
- "@rollup/plugin-commonjs": "^22.0.0",
63
- "@rollup/plugin-image": "^2.1.1",
64
- "@rollup/plugin-json": "^4.1.0",
65
- "@rollup/plugin-node-resolve": "^13.3.0",
66
- "@rollup/plugin-typescript": "^8.3.3",
67
- "@rollup/plugin-url": "^7.0.0",
68
- "@svgr/rollup": "^6.2.1",
69
- "@testing-library/react-hooks": "^8.0.0",
70
- "@types/jest": "^28.1.1",
71
- "@types/node": "^17.0.43",
72
- "@types/react": "^17.0.45",
73
- "@types/react-dom": "^17.0.17",
74
- "@types/react-router-dom": "^5.3.3",
75
- "@typescript-eslint/eslint-plugin": "^5.28.0",
76
- "@typescript-eslint/parser": "^5.28.0",
77
- "@wessberg/rollup-plugin-ts": "^2.0.4",
78
- "autoprefixer": "^10.4.7",
79
- "babel-jest": "^28.1.1",
80
- "eslint": "^8.17.0",
81
- "eslint-config-prettier": "^8.5.0",
82
- "eslint-plugin-prettier": "^4.0.0",
83
- "eslint-plugin-react": "^7.30.0",
84
- "eslint-plugin-react-hooks": "^4.6.0",
85
- "jest": "^28.1.1",
86
- "jest-environment-jsdom": "^28.1.1",
87
- "jest-expo": "^45.0.1",
88
- "postcss": "^8.4.14",
89
- "postcss-assets": "^6.0.0",
90
- "postcss-modules": "^4.3.1",
91
- "prettier": "^2.7.0",
92
- "react": "^17.0.2",
93
- "react-dom": "^17.0.2",
94
- "react-router-dom": "^5.3.3",
95
- "rollup": "^2.75.6",
96
- "rollup-plugin-delete": "^2.0.0",
97
- "rollup-plugin-postcss": "^4.0.2",
98
- "rollup-plugin-typescript-paths": "^1.3.1",
99
- "rollup-plugin-typescript2": "^0.32.1",
100
- "styled-components": "^5.3.5",
101
- "ts-jest": "^28.0.5",
102
- "tslib": "^2.4.0",
103
- "typescript": "4.7.3"
104
- },
105
- "compilerOptions": {
106
- "declaration": true
107
- },
108
- "files": [
109
- "dist/"
110
- ],
111
- "engines": {
112
- "node": ">=16.8.0",
113
- "npm": ">=7.0.0"
114
- },
115
- "dependencies": {
116
- "@microsoft/signalr": "^6.0.6"
117
- }
118
- }
1
+ {
2
+ "name": "@equinor/echo-framework",
3
+ "version": "0.9.5",
4
+ "description": "Modules and components for EchoWeb, utilizing EchoCore",
5
+ "main": "dist/src/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
+ },
36
+ "peerDependencies": {
37
+ "@equinor/echo-base": "^0.6.8",
38
+ "@equinor/echo-components": "^0.4.0",
39
+ "@equinor/echo-core": "^0.6.12",
40
+ "@equinor/echo-search": "^0.12.4",
41
+ "@equinor/echo-utils": "^0.2.11",
42
+ "@equinor/eds-core-react": "^0.19.0",
43
+ "react": "^17.0.2",
44
+ "react-dom": "^17.0.2",
45
+ "react-router-dom": "^5.3.3",
46
+ "styled-components": "^5.3.5"
47
+ },
48
+ "devDependencies": {
49
+ "@babel/core": "^7.18.5",
50
+ "@babel/preset-env": "^7.18.2",
51
+ "@babel/preset-react": "^7.17.12",
52
+ "@equinor/echo-base": "^0.6.8",
53
+ "@equinor/echo-components": "^0.4.0",
54
+ "@equinor/echo-core": "^0.6.12",
55
+ "@equinor/echo-scripts": "^0.1.5",
56
+ "@equinor/echo-search": "^0.12.4",
57
+ "@equinor/echo-update": "^1.3.0",
58
+ "@equinor/echo-utils": "^0.2.11",
59
+ "@equinor/eds-core-react": "^0.19.0",
60
+ "@modular-css/rollup": "^28.1.3",
61
+ "@rollup/plugin-babel": "^5.3.1",
62
+ "@rollup/plugin-commonjs": "^22.0.0",
63
+ "@rollup/plugin-image": "^2.1.1",
64
+ "@rollup/plugin-json": "^4.1.0",
65
+ "@rollup/plugin-node-resolve": "^13.3.0",
66
+ "@rollup/plugin-typescript": "^8.3.3",
67
+ "@rollup/plugin-url": "^7.0.0",
68
+ "@svgr/rollup": "^6.2.1",
69
+ "@testing-library/react-hooks": "^8.0.0",
70
+ "@types/jest": "^28.1.1",
71
+ "@types/node": "^17.0.43",
72
+ "@types/react": "^17.0.45",
73
+ "@types/react-dom": "^17.0.17",
74
+ "@types/react-router-dom": "^5.3.3",
75
+ "@typescript-eslint/eslint-plugin": "^5.28.0",
76
+ "@typescript-eslint/parser": "^5.28.0",
77
+ "@wessberg/rollup-plugin-ts": "^2.0.4",
78
+ "autoprefixer": "^10.4.7",
79
+ "babel-jest": "^28.1.1",
80
+ "eslint": "^8.17.0",
81
+ "eslint-config-prettier": "^8.5.0",
82
+ "eslint-plugin-prettier": "^4.0.0",
83
+ "eslint-plugin-react": "^7.30.0",
84
+ "eslint-plugin-react-hooks": "^4.6.0",
85
+ "jest": "^28.1.1",
86
+ "jest-environment-jsdom": "^28.1.1",
87
+ "jest-expo": "^45.0.1",
88
+ "postcss": "^8.4.14",
89
+ "postcss-assets": "^6.0.0",
90
+ "postcss-modules": "^4.3.1",
91
+ "prettier": "^2.7.0",
92
+ "react": "^17.0.2",
93
+ "react-dom": "^17.0.2",
94
+ "react-router-dom": "^5.3.3",
95
+ "rollup": "^2.75.6",
96
+ "rollup-plugin-delete": "^2.0.0",
97
+ "rollup-plugin-postcss": "^4.0.2",
98
+ "rollup-plugin-typescript-paths": "^1.3.1",
99
+ "rollup-plugin-typescript2": "^0.32.1",
100
+ "styled-components": "^5.3.5",
101
+ "ts-jest": "^28.0.5",
102
+ "tslib": "^2.4.0",
103
+ "typescript": "4.7.3"
104
+ },
105
+ "compilerOptions": {
106
+ "declaration": true
107
+ },
108
+ "files": [
109
+ "dist/"
110
+ ],
111
+ "engines": {
112
+ "node": ">=16.8.0",
113
+ "npm": ">=7.0.0"
114
+ },
115
+ "dependencies": {
116
+ "@microsoft/signalr": "^6.0.6"
117
+ }
118
+ }
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { LayoutProps } from '../containers/layouts';
3
- export declare function useLayout(): (layoutKey?: string) => React.FC<LayoutProps>;
@@ -1,32 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', {
4
- value: true
5
- });
6
-
7
- var React = require('react');
8
-
9
- var layouts$1 = require('../containers/layouts.js');
10
-
11
- var layouts = {
12
- main: layouts$1.MainLayout,
13
- app: layouts$1.MainLayout,
14
- camera: layouts$1.CameraLayout,
15
- nativePdf: layouts$1.PdfViewerNative,
16
- colorLayout: layouts$1.ColorLayout
17
- };
18
-
19
- function useLayout() {
20
- var getLayout = React.useCallback(function (layoutKey) {
21
- var Layout = layoutKey && layouts["".concat(layoutKey)];
22
-
23
- if (Layout) {
24
- return Layout;
25
- }
26
-
27
- return layouts$1.DefaultLayout;
28
- }, []);
29
- return getLayout;
30
- }
31
-
32
- exports.useLayout = useLayout;