@equinor/echo-framework 0.9.2 → 0.9.3
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/LICENSE +21 -21
- package/README.md +6 -6
- package/dist/{063009f06499d102.svg → 47deeba42768c5d1.svg} +8 -8
- package/dist/_virtual/index.js +9 -0
- package/dist/components/containers/layouts.d.ts +3 -5
- package/dist/components/panel/corePanelLeft.d.ts +4 -1
- package/dist/components/panel/corePanelRight.d.ts +4 -1
- package/dist/components/router/echoRoute.d.ts +2 -2
- package/dist/components/router/index.d.ts +0 -1
- package/dist/coreApplication/EchoBarComponent.d.ts +12 -0
- package/dist/coreApplication/EchoContent.d.ts +1 -0
- package/dist/coreApplication/index.d.ts +1 -0
- package/dist/hooks/hookLibrary.d.ts +13 -2
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useScreenOrientation.d.ts +2 -0
- package/dist/index.d.ts +6 -1
- package/dist/node_modules/classnames/index.js +67 -0
- package/dist/src/components/containers/layout.module.css.js +6 -2
- package/dist/src/components/containers/layouts.js +72 -36
- package/dist/src/components/footer/footer.module.css.js +1 -1
- package/dist/src/components/panel/corePanelLeft.js +5 -2
- package/dist/src/components/panel/corePanelLeft.module.css.js +1 -1
- package/dist/src/components/panel/corePanelRight.js +5 -2
- package/dist/src/components/panel/corePanelRight.module.css.js +1 -1
- package/dist/src/components/router/echoRoute.js +9 -3
- package/dist/src/components/router/routes.js +2 -4
- package/dist/src/coreApplication/EchoBarComponent.js +201 -0
- package/dist/src/coreApplication/EchoContent.js +7 -2
- package/dist/src/coreApplication/EchoContent.module.css.js +17 -0
- package/dist/src/globalStyles.css.js +1 -1
- package/dist/src/hooks/hookLibrary.js +17 -0
- package/dist/src/hooks/index.js +3 -0
- package/dist/src/hooks/useScreenOrientation.js +58 -0
- package/dist/src/icons/common/SemiIcon.svg.js +1 -1
- package/dist/src/icons/equinor-logo.js +9 -9
- package/dist/src/index.js +13 -8
- package/dist/src/index2.js +37 -26
- package/dist/types/hookLibrary.d.ts +4 -0
- package/package.json +118 -118
- package/dist/components/router/useLayout.d.ts +0 -3
- package/dist/src/components/router/useLayout.js +0 -32
|
@@ -31,31 +31,31 @@ var FooterLogo = function FooterLogo() {
|
|
|
31
31
|
type: "text/css"
|
|
32
32
|
}, ".st0{fill:#FF1243;}"), /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
33
33
|
className: "st0",
|
|
34
|
-
d: "M3489.6,1124.6l82.9,47.8c4.9,2.8,7.9,8.1,7.9,13.8l-0.1,95.7c0,8.1-8.8,13.2-15.8,9.1l-82.9-47.8\
|
|
34
|
+
d: "M3489.6,1124.6l82.9,47.8c4.9,2.8,7.9,8.1,7.9,13.8l-0.1,95.7c0,8.1-8.8,13.2-15.8,9.1l-82.9-47.8\n\t\t\t\tc-4.9-2.8-7.8-8.1-7.8-13.8l0-95.7C3473.7,1125.6,3482.5,1120.5,3489.6,1124.6z M3556.2,1009.2l82.9,47.9c4.9,2.8,11,2.8,15.9,0\n\t\t\t\tl82.9-47.9c7-4.1,7-14.2,0-18.3l-82.9-47.9c-4.9-2.8-11-2.8-15.9,0l-82.9,47.9C3549.2,995,3549.2,1005.1,3556.2,1009.2z\n\t\t\t\tM3256,989.7l-186.5-107.9c-5.5-3.2-12.3-3.2-17.9,0l-186.5,107.9c-7.9,4.6-7.9,16,0,20.6l186.5,107.9c5.5,3.2,12.3,3.2,17.9,0\n\t\t\t\tl186.5-107.9C3263.9,1005.7,3263.9,994.3,3256,989.7z M3328.6,1122.3l-124.5,71.7c-3.7,2.1-6,6.1-6,10.3l0,143.7\n\t\t\t\tc0,6.1,6.8,9.9,12,6.9l124.5-71.7c3.7-2.1,5.8-6.1,5.8-10.3l0-143.7C3340.5,1123.1,3333.9,1119.3,3328.6,1122.3z M3943.2,22.5\n\t\t\t\tl-448.1,258.1c-13.3,7.6-21.5,21.8-21.4,37.1l0,517.1c0,21.9,24.3,35.7,43.3,24.7l448.1-258.1c13.3-7.6,21-21.8,20.9-37.1l0-517.1\n\t\t\t\tC3986,25.3,3962.2,11.6,3943.2,22.5z M2984.6,303l0,359.2c0,10.6,5.3,20.5,14.5,25.8l311.2,179.3c13.2,7.6,30-1.9,30.1-17.2\n\t\t\t\tl0-359.2c0-10.6-5.7-20.5-14.9-25.8l-311.2-179.3C3001.1,278.2,2984.6,287.8,2984.6,303z"
|
|
35
35
|
}), /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
36
36
|
className: "st0",
|
|
37
|
-
d: "M2645.9,1030c-3.3-8.2-10.3-11.2-18.1-6.6c-7.8,4.7-154.9,92.3-154.9,92.3v-80.7c0-9.1-5.8-12.4-14-9.1\
|
|
37
|
+
d: "M2645.9,1030c-3.3-8.2-10.3-11.2-18.1-6.6c-7.8,4.7-154.9,92.3-154.9,92.3v-80.7c0-9.1-5.8-12.4-14-9.1\n\t\t\t\t\t\tl-47.8,17.3c-6.6,2.5-9.1,7.4-9.1,14v355c0,7.4,4.9,12.4,12.4,12.4h46.1c7.4,0,12.4-4.9,12.4-12.4v-217.4\n\t\t\t\t\t\tc0,0,173.4-107,180.4-111.2c7-4.2,10.6-7.8,7.4-15.7C2657.3,1059.2,2645.9,1030,2645.9,1030"
|
|
38
38
|
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
39
39
|
className: "st0",
|
|
40
|
-
d: "M397.4,1201.3c0-98.9-67.6-182.1-180.4-182.1c-111.2,0-203.5,79.9-203.5,210.1\
|
|
40
|
+
d: "M397.4,1201.3c0-98.9-67.6-182.1-180.4-182.1c-111.2,0-203.5,79.9-203.5,210.1\n\t\t\t\t\t\tc0,118.6,77.4,205.1,207.6,205.1c59.3,0,118.6-20.6,163.1-60.1c5.8-4.9,5.8-11.5,1.6-17.3l-22.2-34.6c-4.1-6.6-10.7-7.4-17.3-2.5\n\t\t\t\t\t\tc-40.4,29.7-81.6,44.5-125.2,44.5c-83.2,0-128.5-54.4-134.3-122.8h298.4c7.6,0,12.2-5.5,12.2-12.2V1201.3z M91.8,1179.8\n\t\t\t\t\t\tc15.7-56.8,60.1-91.4,122.8-91.4c68.4,0,104.6,40.4,107.9,91.4H91.8z"
|
|
41
41
|
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
42
42
|
className: "st0",
|
|
43
|
-
d: "M799,1589.3h46.1c7.4,0,12.4-4.9,12.4-12.4v-542.1c0-9.1-5.8-12.4-14.8-9.1l-47,17.3\
|
|
43
|
+
d: "M799,1589.3h46.1c7.4,0,12.4-4.9,12.4-12.4v-542.1c0-9.1-5.8-12.4-14.8-9.1l-47,17.3\n\t\t\t\t\t\tc-6.6,2.5-9.1,7.4-9.1,14v17.3c-25.5-34.6-75.8-55.2-130.2-55.2c-107.9,0-201.8,80.7-201.8,207.6c0,112,72.5,207.6,197.7,207.6\n\t\t\t\t\t\tc56.8,0,111.2-25.5,134.3-54.4v196.9C786.7,1584.4,791.6,1589.3,799,1589.3 M657.3,1364.4c-70,0-130.2-47.8-130.2-138.4\n\t\t\t\t\t\tc0-90.6,60.1-137.6,130.2-137.6c73.3,0,130.2,47,130.2,137.6C787.5,1317.4,730.6,1364.4,657.3,1364.4"
|
|
44
44
|
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
45
45
|
className: "st0",
|
|
46
|
-
d: "M1092.2,1434.4c42.8,0,89.8-14,120.3-58.5v36.3c0,7.4,4.9,12.4,12.4,12.4h46.1c7.4,0,12.4-4.9,12.4-12.4\
|
|
46
|
+
d: "M1092.2,1434.4c42.8,0,89.8-14,120.3-58.5v36.3c0,7.4,4.9,12.4,12.4,12.4h46.1c7.4,0,12.4-4.9,12.4-12.4\n\t\t\t\t\t\tv-376.5c0-9.9-5.8-13.2-14-9.9l-47.8,17.3c-6.6,2.5-9.1,7.4-9.1,14v197.7c0,70-45.3,109.6-107.1,109.6\n\t\t\t\t\t\tc-61,0-102.2-38.7-102.2-109.6v-220c0-9.1-5.8-12.4-14-9.1l-47.8,17.3c-6.6,2.5-9.1,7.4-9.1,14v200.2\n\t\t\t\t\t\tC932.4,1374.3,1003.2,1434.4,1092.2,1434.4"
|
|
47
47
|
}), /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
48
48
|
className: "st0",
|
|
49
|
-
d: "M1379.7,983.8l50.3-16.5c8.2-2.5,11.5-6.6,11.5-14.8v-60.1c0-7.4-5.8-13.2-14.8-9.9l-49.4,18.1\
|
|
49
|
+
d: "M1379.7,983.8l50.3-16.5c8.2-2.5,11.5-6.6,11.5-14.8v-60.1c0-7.4-5.8-13.2-14.8-9.9l-49.4,18.1\n\t\t\t\t\t\t\tc-7.4,2.5-11.5,5.8-11.5,14v57.7C1365.7,981.3,1370.7,987.1,1379.7,983.8"
|
|
50
50
|
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
51
51
|
className: "st0",
|
|
52
|
-
d: "M1380.6,1424.5h46.1c7.4,0,12.4-4.9,12.4-12.4v-377.3c0-9.1-5.8-12.4-14-9.1l-47.8,17.3\
|
|
52
|
+
d: "M1380.6,1424.5h46.1c7.4,0,12.4-4.9,12.4-12.4v-377.3c0-9.1-5.8-12.4-14-9.1l-47.8,17.3\n\t\t\t\t\t\t\tc-6.6,2.5-9.1,7.4-9.1,14v355.1C1368.2,1419.6,1373.2,1424.5,1380.6,1424.5"
|
|
53
53
|
})), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
54
54
|
className: "st0",
|
|
55
|
-
d: "M1536.3,1424.5h46.1c7.4,0,12.4-4.9,12.4-12.4v-213.4c0-70,45.3-109.6,107.1-109.6\
|
|
55
|
+
d: "M1536.3,1424.5h46.1c7.4,0,12.4-4.9,12.4-12.4v-213.4c0-70,45.3-109.6,107.1-109.6\n\t\t\t\t\t\tc61,0,102.2,38.7,102.2,109.6v213.4c0,7.4,4.9,12.4,12.4,12.4h46.1c7.4,0,12.4-4.9,12.4-12.4v-215.9\n\t\t\t\t\t\tc0-117-70.9-177.1-159.8-177.1c-42.8,0-89.8,14-120.3,58.5v-42.8c0-9.1-5.8-12.4-14-9.1l-47.8,17.3c-6.6,2.5-9.1,7.4-9.1,14\n\t\t\t\t\t\tv355.1C1523.9,1419.6,1528.8,1424.5,1536.3,1424.5"
|
|
56
56
|
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
57
57
|
className: "st0",
|
|
58
|
-
d: "M2138.9,1019.2c-118.6,0-203.5,88.2-203.5,207.6c0,119.5,84.9,207.6,203.5,207.6\
|
|
58
|
+
d: "M2138.9,1019.2c-118.6,0-203.5,88.2-203.5,207.6c0,119.5,84.9,207.6,203.5,207.6\n\t\t\t\t\t\tc118.6,0,202.7-88.2,202.7-207.6C2341.6,1107.3,2257.5,1019.2,2138.9,1019.2 M2138.9,1365.2c-81.6,0-131-61-131-138.4\n\t\t\t\t\t\ts49.4-138.4,131-138.4c80.7,0,130.2,61,130.2,138.4S2219.6,1365.2,2138.9,1365.2"
|
|
59
59
|
})))));
|
|
60
60
|
};
|
|
61
61
|
|
package/dist/src/index.js
CHANGED
|
@@ -8,6 +8,8 @@ var index = require('./index2.js');
|
|
|
8
8
|
|
|
9
9
|
var hookLibrary = require('./hooks/hookLibrary.js');
|
|
10
10
|
|
|
11
|
+
var useScreenOrientation = require('./hooks/useScreenOrientation.js');
|
|
12
|
+
|
|
11
13
|
var componentRegistry = require('./services/componentRegistry/componentRegistry.js');
|
|
12
14
|
|
|
13
15
|
var legend = require('./types/legend.js');
|
|
@@ -68,14 +70,14 @@ var echoRouter = require('./components/router/echoRouter.js');
|
|
|
68
70
|
|
|
69
71
|
var routes = require('./components/router/routes.js');
|
|
70
72
|
|
|
71
|
-
var useLayout = require('./components/router/useLayout.js');
|
|
72
|
-
|
|
73
73
|
var tagNumber = require('./components/tagNumber/tagNumber.js');
|
|
74
74
|
|
|
75
75
|
var toaster = require('./components/toaster/toaster.js');
|
|
76
76
|
|
|
77
77
|
var toasters = require('./components/toaster/toasters.js');
|
|
78
78
|
|
|
79
|
+
var EchoBarComponent = require('./coreApplication/EchoBarComponent.js');
|
|
80
|
+
|
|
79
81
|
var EchoContent = require('./coreApplication/EchoContent.js');
|
|
80
82
|
|
|
81
83
|
var EchoContentPanels = require('./coreApplication/EchoContentPanels.js');
|
|
@@ -102,6 +104,7 @@ Object.defineProperty(exports, 'RegisteredHookName', {
|
|
|
102
104
|
return hookLibrary.RegisteredHookName;
|
|
103
105
|
}
|
|
104
106
|
});
|
|
107
|
+
exports.useScreenOrientation = useScreenOrientation.useScreenOrientation;
|
|
105
108
|
Object.defineProperty(exports, 'RegisteredComponentName', {
|
|
106
109
|
enumerable: true,
|
|
107
110
|
get: function get() {
|
|
@@ -132,11 +135,7 @@ exports.valueToEnum = legendUtils.valueToEnum;
|
|
|
132
135
|
exports.ContextualAppLinks = index$1.ContextualAppLinks;
|
|
133
136
|
exports.AppLinks = AppLinks.AppLinks;
|
|
134
137
|
exports.LinkButton = linkButton.LinkButton;
|
|
135
|
-
exports.
|
|
136
|
-
exports.ColorLayout = layouts.ColorLayout;
|
|
137
|
-
exports.DefaultLayout = layouts.DefaultLayout;
|
|
138
|
-
exports.MainLayout = layouts.MainLayout;
|
|
139
|
-
exports.PdfViewerNative = layouts.PdfViewerNative;
|
|
138
|
+
exports.Layout = layouts.Layout;
|
|
140
139
|
exports.ExternalLinkToCommApp = externalLinkToCommApp.ExternalLinkToCommApp;
|
|
141
140
|
exports.ExternalLinkToMcApp = externalLinkToMcApp.ExternalLinkToMcApp;
|
|
142
141
|
exports.ExternalLinkToProCoSys = externalLinkToProCoSys.ExternalLinkToProCoSys;
|
|
@@ -177,10 +176,16 @@ exports.RealTimePopoverButton = RealTimePopoverButton.RealTimePopoverButton;
|
|
|
177
176
|
exports.EchoRoute = echoRoute.EchoRoute;
|
|
178
177
|
exports.EchoRouter = echoRouter.EchoRouter;
|
|
179
178
|
exports.EchoRoutes = routes.EchoRoutes;
|
|
180
|
-
exports.useLayout = useLayout.useLayout;
|
|
181
179
|
exports.TagNumber = tagNumber.TagNumber;
|
|
182
180
|
exports.Toaster = toaster.Toaster;
|
|
183
181
|
exports.Toasters = toasters.Toasters;
|
|
182
|
+
Object.defineProperty(exports, 'BarButtonVariants', {
|
|
183
|
+
enumerable: true,
|
|
184
|
+
get: function get() {
|
|
185
|
+
return EchoBarComponent.BarButtonVariants;
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
exports.EchoBarComponent = EchoBarComponent.EchoBarComponent;
|
|
184
189
|
exports.EchoContent = EchoContent.EchoContent;
|
|
185
190
|
exports.mainMenu = EchoContentPanels.mainMenu;
|
|
186
191
|
exports.searchPanel = EchoContentPanels.searchPanel;
|
package/dist/src/index2.js
CHANGED
|
@@ -28,49 +28,57 @@ require('./components/appLinks/AppLinks.module.css.js');
|
|
|
28
28
|
|
|
29
29
|
require('@equinor/echo-components');
|
|
30
30
|
|
|
31
|
-
require('
|
|
31
|
+
require('../node_modules/classnames/index.js');
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var EchoBarComponent = require('./coreApplication/EchoBarComponent.js');
|
|
34
34
|
|
|
35
|
-
require('./
|
|
35
|
+
require('./components/panel/corePanelLeft.js');
|
|
36
36
|
|
|
37
|
-
require('./
|
|
37
|
+
require('./components/panel/corePanelRight.js');
|
|
38
38
|
|
|
39
|
-
require('
|
|
39
|
+
require('react-router-dom');
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
require('@equinor/eds-core-react');
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
require('./components/pageMenu/accordionItem.module.css.js');
|
|
44
44
|
|
|
45
|
-
require('./components/
|
|
45
|
+
require('./components/pageMenu/Navigation/applicationList.module.css.js');
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
require('./components/pageMenu/pageMenu.module.css.js');
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
require('./components/pageMenu/pageMenuDrawerItem.module.css.js');
|
|
50
50
|
|
|
51
|
-
require('@equinor/
|
|
51
|
+
require('@equinor/echo-base');
|
|
52
52
|
|
|
53
|
-
require('./components/
|
|
53
|
+
require('./components/pageMenu/settings/settings.module.css.js');
|
|
54
54
|
|
|
55
|
-
require('
|
|
55
|
+
require('./services/api/api-manager.js');
|
|
56
56
|
|
|
57
|
-
require('./components/pageMenu/
|
|
57
|
+
require('./components/pageMenu/version/version.module.css.js');
|
|
58
58
|
|
|
59
|
-
require('
|
|
59
|
+
require('./components/searchMenu/searchMenu.module.css.js');
|
|
60
60
|
|
|
61
|
-
require('./
|
|
61
|
+
require('./coreApplication/EchoEventHandler.module.css.js');
|
|
62
62
|
|
|
63
|
-
require('./components/
|
|
63
|
+
require('./components/containers/layout.module.css.js');
|
|
64
64
|
|
|
65
|
-
require('./components/
|
|
65
|
+
var externalLinkButton = require('./components/externalLinkButton/externalLinkButton.js');
|
|
66
66
|
|
|
67
|
-
require('./
|
|
67
|
+
require('./services/echopediaAnalyticsModule/echopediaAnalyticsModule.js');
|
|
68
68
|
|
|
69
|
-
require('
|
|
69
|
+
require('@equinor/echo-utils');
|
|
70
70
|
|
|
71
|
-
require('./
|
|
71
|
+
var pingableSources = require('./types/pingableSources.js');
|
|
72
72
|
|
|
73
|
-
require('./components/
|
|
73
|
+
var index = require('./components/contextualAppLinks/index.js');
|
|
74
|
+
|
|
75
|
+
require('./components/echoLogo/echoLogo.module.css.js');
|
|
76
|
+
|
|
77
|
+
var errorBoundary = require('./components/errorBoundary/errorBoundary.js');
|
|
78
|
+
|
|
79
|
+
var footer = require('./components/footer/footer.js');
|
|
80
|
+
|
|
81
|
+
require('./components/lazyLoading/appLoadingIndicator.module.css.js');
|
|
74
82
|
|
|
75
83
|
var panelButton = require('./components/panelButton/panelButton.js');
|
|
76
84
|
|
|
@@ -104,14 +112,10 @@ require('../node_modules/tiny-warning/dist/tiny-warning.esm.js');
|
|
|
104
112
|
|
|
105
113
|
require('../node_modules/tiny-invariant/dist/tiny-invariant.esm.js');
|
|
106
114
|
|
|
107
|
-
require('./components/searchMenu/searchMenu.module.css.js');
|
|
108
|
-
|
|
109
115
|
require('./components/tagNumber/tagNo.module.css.js');
|
|
110
116
|
|
|
111
117
|
require('./components/toaster/toaster.module.css.js');
|
|
112
118
|
|
|
113
|
-
require('./coreApplication/EchoEventHandler.module.css.js');
|
|
114
|
-
|
|
115
119
|
var extensions = require('./types/extensions.js');
|
|
116
120
|
|
|
117
121
|
var legend = require('./types/legend.js');
|
|
@@ -151,6 +155,13 @@ exports.getLegendStatusColor = legendUtils.getLegendStatusColor;
|
|
|
151
155
|
exports.legendTypeToLegendStatus = legendUtils.legendTypeToLegendStatus;
|
|
152
156
|
exports.valueToEnum = legendUtils.valueToEnum;
|
|
153
157
|
exports.goToExternalLink = navigationUtils.goToExternalLink;
|
|
158
|
+
Object.defineProperty(exports, 'BarButtonVariants', {
|
|
159
|
+
enumerable: true,
|
|
160
|
+
get: function get() {
|
|
161
|
+
return EchoBarComponent.BarButtonVariants;
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
exports.EchoBarComponent = EchoBarComponent.EchoBarComponent;
|
|
154
165
|
exports.ExternalLinkButton = externalLinkButton.ExternalLinkButton;
|
|
155
166
|
Object.defineProperty(exports, 'ExternalLinkButtonStyle', {
|
|
156
167
|
enumerable: true,
|
|
@@ -2,3 +2,7 @@ export declare type SetActiveTagNo = (tagNo: string, activeTagTab?: string, acti
|
|
|
2
2
|
export declare type TagData = [(tagNo: string, instCode: string) => void];
|
|
3
3
|
export declare type SetActiveCommPackNo = (commPackNo: string, activeCommPackProject: string, activeCommPackTab?: string, activeCommPackSubTab?: string) => void;
|
|
4
4
|
export declare type SetActiveMcPackNo = (mcPackNo: string, activeMcPackProject: string, activeMcPackTab?: string, activeMcPackSubTab?: string) => void;
|
|
5
|
+
export interface DeviceOrientation {
|
|
6
|
+
portrait: boolean;
|
|
7
|
+
landscape: boolean;
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.9.
|
|
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.
|
|
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.
|
|
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.3",
|
|
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,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;
|