@equinor/echo-framework 0.9.9 → 0.9.12
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/appLinks/applinkUtils.d.ts +2 -0
- package/dist/components/appLinks/applinkUtils.test.d.ts +1 -0
- package/dist/components/containers/layouts.d.ts +5 -3
- package/dist/components/panel/corePanelLeft.d.ts +1 -4
- package/dist/components/panel/corePanelRight.d.ts +1 -4
- package/dist/components/router/echoRoute.d.ts +2 -2
- package/dist/components/router/index.d.ts +1 -0
- package/dist/components/router/useLayout.d.ts +3 -0
- package/dist/coreApplication/EchoContent.d.ts +1 -0
- package/dist/coreApplication/index.d.ts +0 -1
- package/dist/hooks/hookLibrary.d.ts +2 -13
- package/dist/hooks/index.d.ts +0 -2
- package/dist/index.d.ts +1 -14
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +1 -2
- package/dist/node_modules/@microsoft/signalr/dist/esm/Utils.js +1 -1
- package/dist/src/components/appLinks/AppLinks.js +4 -1
- package/dist/src/components/appLinks/applinkUtils.js +19 -0
- package/dist/src/components/containers/layout.module.css.js +2 -6
- package/dist/src/components/containers/layouts.js +36 -67
- package/dist/src/components/contextualAppLinks/externalLinkButtons/externalLinkToTr2000.js +0 -2
- package/dist/src/components/footer/footer.module.css.js +1 -1
- package/dist/src/components/panel/corePanelLeft.js +2 -5
- package/dist/src/components/panel/corePanelLeft.module.css.js +1 -1
- package/dist/src/components/panel/corePanelRight.js +2 -5
- package/dist/src/components/panel/corePanelRight.module.css.js +1 -1
- package/dist/src/components/router/echoRoute.js +3 -9
- package/dist/src/components/router/routes.js +4 -1
- package/dist/src/components/router/useLayout.js +32 -0
- package/dist/src/coreApplication/EchoContent.js +2 -21
- package/dist/src/globalStyles.css.js +1 -1
- package/dist/src/hooks/hookLibrary.js +0 -17
- package/dist/src/hooks/index.js +0 -6
- package/dist/src/index.js +81 -49
- package/dist/src/types/legend.js +1 -0
- package/dist/src/utils/legendUtils.js +1 -1
- package/dist/types/hookLibrary.d.ts +0 -5
- package/dist/types/legend.d.ts +2 -1
- package/package.json +37 -37
- package/dist/_virtual/index.js +0 -9
- package/dist/coreApplication/EchoBarComponent.d.ts +0 -12
- package/dist/hooks/useIsCompactLayout.d.ts +0 -5
- package/dist/hooks/useScreenOrientation.d.ts +0 -5
- package/dist/hooks/useScreenValues.d.ts +0 -17
- package/dist/hooks/useWindowSize.d.ts +0 -9
- package/dist/node_modules/classnames/index.js +0 -67
- package/dist/src/coreApplication/EchoBarComponent.js +0 -182
- package/dist/src/coreApplication/EchoContent.module.css.js +0 -17
- package/dist/src/hooks/useIsCompactLayout.js +0 -50
- package/dist/src/hooks/useScreenOrientation.js +0 -62
- package/dist/src/hooks/useScreenValues.js +0 -48
- package/dist/src/hooks/useWindowSize.js +0 -62
- package/dist/src/index2.js +0 -212
|
@@ -25,8 +25,6 @@ exports.RegisteredHookName = void 0;
|
|
|
25
25
|
RegisteredHookName["useIsContextMenuInfoLoading"] = "useIsContextMenuInfoLoading";
|
|
26
26
|
RegisteredHookName["useSetActiveCommPackNo"] = "useSetActiveCommPackNo";
|
|
27
27
|
RegisteredHookName["useSetActiveMcPackNo"] = "useSetActiveMcPackNo";
|
|
28
|
-
RegisteredHookName["useDeviceOrientation"] = "useDeviceOrientation";
|
|
29
|
-
RegisteredHookName["useInternalLinkToScan"] = "useInternalLinkToScan";
|
|
30
28
|
})(exports.RegisteredHookName || (exports.RegisteredHookName = {}));
|
|
31
29
|
|
|
32
30
|
var HookLibrary = Object.freeze({
|
|
@@ -83,21 +81,6 @@ var HookLibrary = Object.freeze({
|
|
|
83
81
|
*/
|
|
84
82
|
useSetActiveMcPackNo: function useSetActiveMcPackNo() {
|
|
85
83
|
return EchoCore__default["default"].echoHookRegistry.getHookByName(exports.RegisteredHookName.useSetActiveMcPackNo)();
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Hook for detecting device orientation from native devices.
|
|
90
|
-
* @returns {DeviceOrientation}
|
|
91
|
-
*/
|
|
92
|
-
useDeviceOrientation: function useDeviceOrientation() {
|
|
93
|
-
return EchoCore__default["default"].echoHookRegistry.getHookByName(exports.RegisteredHookName.useDeviceOrientation)();
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Hook for opening camera.
|
|
98
|
-
*/
|
|
99
|
-
useInternalLinkToScan: function useInternalLinkToScan() {
|
|
100
|
-
return EchoCore__default["default"].echoHookRegistry.getHookByName(exports.RegisteredHookName.useInternalLinkToScan)();
|
|
101
84
|
}
|
|
102
85
|
});
|
|
103
86
|
exports.HookLibrary = HookLibrary;
|
package/dist/src/hooks/index.js
CHANGED
|
@@ -6,13 +6,7 @@ Object.defineProperty(exports, '__esModule', {
|
|
|
6
6
|
|
|
7
7
|
var useEchoHistory = require('./useEchoHistory.js');
|
|
8
8
|
|
|
9
|
-
var useScreenOrientation = require('./useScreenOrientation.js');
|
|
10
|
-
|
|
11
|
-
var useScreenValues = require('./useScreenValues.js');
|
|
12
|
-
|
|
13
9
|
var useTagDetails = require('./useTagDetails.js');
|
|
14
10
|
|
|
15
11
|
exports.useEchoHistory = useEchoHistory.useEchoHistory;
|
|
16
|
-
exports.useScreenOrientation = useScreenOrientation.useScreenOrientation;
|
|
17
|
-
exports.useScreenValues = useScreenValues.useScreenValues;
|
|
18
12
|
exports.useTagDetails = useTagDetails.useTagDetails;
|
package/dist/src/index.js
CHANGED
|
@@ -4,25 +4,21 @@ Object.defineProperty(exports, '__esModule', {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
require('./globalStyles.css.js');
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var index$1 = require('./hooks/index.js');
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var hookLibrary = require('./hooks/hookLibrary.js');
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var apiPlantinfo = require('./services/api/api-plantinfo.js');
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var apiTagDetails = require('./services/api/api-tag-details.js');
|
|
16
16
|
|
|
17
17
|
var componentRegistry = require('./services/componentRegistry/componentRegistry.js');
|
|
18
18
|
|
|
19
|
-
var legend = require('./types/legend.js');
|
|
20
|
-
|
|
21
|
-
var pingableSources = require('./types/pingableSources.js');
|
|
22
|
-
|
|
23
19
|
var legendUtils = require('./utils/legendUtils.js');
|
|
24
20
|
|
|
25
|
-
var
|
|
21
|
+
var navigationUtils = require('./utils/navigationUtils.js');
|
|
26
22
|
|
|
27
23
|
var AppLinks = require('./components/appLinks/AppLinks.js');
|
|
28
24
|
|
|
@@ -46,6 +42,8 @@ var externalLinkToStid = require('./components/contextualAppLinks/externalLinkBu
|
|
|
46
42
|
|
|
47
43
|
var externalLinkToTr2000 = require('./components/contextualAppLinks/externalLinkButtons/externalLinkToTr2000.js');
|
|
48
44
|
|
|
45
|
+
var index = require('./components/contextualAppLinks/index.js');
|
|
46
|
+
|
|
49
47
|
var echoLogo = require('./components/echoLogo/echoLogo.js');
|
|
50
48
|
|
|
51
49
|
var errorBoundary = require('./components/errorBoundary/errorBoundary.js');
|
|
@@ -58,8 +56,24 @@ var lazyLoadedAppWrapper = require('./components/lazyLoading/lazyLoadedAppWrappe
|
|
|
58
56
|
|
|
59
57
|
var mediator = require('./components/mediator/mediator.js');
|
|
60
58
|
|
|
59
|
+
require('@equinor/echo-components');
|
|
60
|
+
|
|
61
|
+
require('@equinor/eds-core-react');
|
|
62
|
+
|
|
63
|
+
require('react');
|
|
64
|
+
|
|
65
|
+
var themeConst = require('./theme/themeConst.js');
|
|
66
|
+
|
|
67
|
+
require('./components/pageMenu/accordionItem.module.css.js');
|
|
68
|
+
|
|
61
69
|
var pageMenu = require('./components/pageMenu/pageMenu.js');
|
|
62
70
|
|
|
71
|
+
require('./components/pageMenu/pageMenuDrawerItem.module.css.js');
|
|
72
|
+
|
|
73
|
+
require('./components/panel/corePanelLeft.js');
|
|
74
|
+
|
|
75
|
+
require('./components/panel/corePanelRight.js');
|
|
76
|
+
|
|
63
77
|
var panelButton = require('./components/panelButton/panelButton.js');
|
|
64
78
|
|
|
65
79
|
var plantSelector = require('./components/plantSelector/plantSelector.js');
|
|
@@ -74,14 +88,18 @@ var echoRouter = require('./components/router/echoRouter.js');
|
|
|
74
88
|
|
|
75
89
|
var routes = require('./components/router/routes.js');
|
|
76
90
|
|
|
91
|
+
var useLayout = require('./components/router/useLayout.js');
|
|
92
|
+
|
|
93
|
+
require('@equinor/echo-core');
|
|
94
|
+
|
|
95
|
+
require('./components/searchMenu/searchMenu.module.css.js');
|
|
96
|
+
|
|
77
97
|
var tagNumber = require('./components/tagNumber/tagNumber.js');
|
|
78
98
|
|
|
79
99
|
var toaster = require('./components/toaster/toaster.js');
|
|
80
100
|
|
|
81
101
|
var toasters = require('./components/toaster/toasters.js');
|
|
82
102
|
|
|
83
|
-
var EchoBarComponent = require('./coreApplication/EchoBarComponent.js');
|
|
84
|
-
|
|
85
103
|
var EchoContent = require('./coreApplication/EchoContent.js');
|
|
86
104
|
|
|
87
105
|
var EchoContentPanels = require('./coreApplication/EchoContentPanels.js');
|
|
@@ -90,58 +108,58 @@ var EchoEventHandler = require('./coreApplication/EchoEventHandler.js');
|
|
|
90
108
|
|
|
91
109
|
var toastActions = require('./services/eventHubActions/toastActions.js');
|
|
92
110
|
|
|
93
|
-
var themeConst = require('./theme/themeConst.js');
|
|
94
|
-
|
|
95
111
|
var extensions = require('./types/extensions.js');
|
|
96
112
|
|
|
97
|
-
var
|
|
113
|
+
var legend = require('./types/legend.js');
|
|
114
|
+
|
|
115
|
+
var pingableSources = require('./types/pingableSources.js');
|
|
98
116
|
|
|
99
117
|
var plantInfo = require('./utils/plantInfo.js');
|
|
100
118
|
|
|
101
119
|
var startup = require('./utils/startup.js');
|
|
102
120
|
|
|
103
|
-
|
|
104
|
-
|
|
121
|
+
var registerEchopediaComponent = componentRegistry.componentRegistry.registerComponent;
|
|
122
|
+
var EchoFramework = Object.freeze({
|
|
123
|
+
Utils: Object.freeze({
|
|
124
|
+
Navigation: Object.freeze({
|
|
125
|
+
goToExternalLink: navigationUtils.goToExternalLink
|
|
126
|
+
}),
|
|
127
|
+
Color: Object.freeze({
|
|
128
|
+
getLegendStatusColor: legendUtils.getLegendStatusColor
|
|
129
|
+
})
|
|
130
|
+
}),
|
|
131
|
+
Hooks: Object.freeze(Object.assign(Object.assign({}, hookLibrary.HookLibrary), index$1)),
|
|
132
|
+
EchopediaComponentLibrary: Object.freeze({
|
|
133
|
+
getTagItem: componentRegistry.componentRegistry.getTagItem
|
|
134
|
+
}),
|
|
135
|
+
APIs: Object.freeze({
|
|
136
|
+
getPlantsInfo: apiPlantinfo.getPlantsInfo,
|
|
137
|
+
getTagDetails: apiTagDetails.getTagDetails
|
|
138
|
+
})
|
|
139
|
+
});
|
|
105
140
|
Object.defineProperty(exports, 'RegisteredHookName', {
|
|
106
141
|
enumerable: true,
|
|
107
142
|
get: function get() {
|
|
108
143
|
return hookLibrary.RegisteredHookName;
|
|
109
144
|
}
|
|
110
145
|
});
|
|
111
|
-
exports.useIsCompactLayout = useIsCompactLayout.useIsCompactLayout;
|
|
112
|
-
exports.useScreenOrientation = useScreenOrientation.useScreenOrientation;
|
|
113
|
-
exports.useScreenValues = useScreenValues.useScreenValues;
|
|
114
146
|
Object.defineProperty(exports, 'RegisteredComponentName', {
|
|
115
147
|
enumerable: true,
|
|
116
148
|
get: function get() {
|
|
117
149
|
return componentRegistry.RegisteredComponentName;
|
|
118
150
|
}
|
|
119
151
|
});
|
|
120
|
-
Object.defineProperty(exports, 'LegendStatus', {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
get: function get() {
|
|
123
|
-
return legend.LegendStatus;
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
Object.defineProperty(exports, 'LegendType', {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
get: function get() {
|
|
129
|
-
return legend.LegendType;
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
Object.defineProperty(exports, 'PingableSources', {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function get() {
|
|
135
|
-
return pingableSources.PingableSources;
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
152
|
exports.getLegendStatusColor = legendUtils.getLegendStatusColor;
|
|
139
153
|
exports.legendTypeToLegendStatus = legendUtils.legendTypeToLegendStatus;
|
|
140
154
|
exports.valueToEnum = legendUtils.valueToEnum;
|
|
141
|
-
exports.
|
|
155
|
+
exports.goToExternalLink = navigationUtils.goToExternalLink;
|
|
142
156
|
exports.AppLinks = AppLinks.AppLinks;
|
|
143
157
|
exports.LinkButton = linkButton.LinkButton;
|
|
144
|
-
exports.
|
|
158
|
+
exports.CameraLayout = layouts.CameraLayout;
|
|
159
|
+
exports.ColorLayout = layouts.ColorLayout;
|
|
160
|
+
exports.DefaultLayout = layouts.DefaultLayout;
|
|
161
|
+
exports.MainLayout = layouts.MainLayout;
|
|
162
|
+
exports.PdfViewerNative = layouts.PdfViewerNative;
|
|
145
163
|
exports.ExternalLinkToCommApp = externalLinkToCommApp.ExternalLinkToCommApp;
|
|
146
164
|
exports.ExternalLinkToMcApp = externalLinkToMcApp.ExternalLinkToMcApp;
|
|
147
165
|
exports.ExternalLinkToProCoSys = externalLinkToProCoSys.ExternalLinkToProCoSys;
|
|
@@ -150,6 +168,7 @@ exports.ExternalLinkToSap = externalLinkToSap.ExternalLinkToSap;
|
|
|
150
168
|
exports.ExternalLinkToSemiDoc = externalLinkToSemiDoc.ExternalLinkToSemiDoc;
|
|
151
169
|
exports.ExternalLinkToStid = externalLinkToStid.ExternalLinkToStid;
|
|
152
170
|
exports.ExternalLinkToTr2000 = externalLinkToTr2000.ExternalLinkToTr2000;
|
|
171
|
+
exports.ContextualAppLinks = index.ContextualAppLinks;
|
|
153
172
|
exports.EchoLogo = echoLogo.EchoLogo;
|
|
154
173
|
exports.ErrorBoundary = errorBoundary.ErrorBoundary;
|
|
155
174
|
exports.ExternalLinkButton = externalLinkButton.ExternalLinkButton;
|
|
@@ -168,6 +187,7 @@ Object.defineProperty(exports, 'FooterType', {
|
|
|
168
187
|
});
|
|
169
188
|
exports.LazyLoadedAppWrapper = lazyLoadedAppWrapper.LazyLoadedAppWrapper;
|
|
170
189
|
exports.Mediator = mediator.Mediator;
|
|
190
|
+
exports.themeConst = themeConst.themeConst;
|
|
171
191
|
exports.PageMenu = pageMenu.PageMenu;
|
|
172
192
|
Object.defineProperty(exports, 'Variants', {
|
|
173
193
|
enumerable: true,
|
|
@@ -182,29 +202,39 @@ exports.RealTimePopoverButton = RealTimePopoverButton.RealTimePopoverButton;
|
|
|
182
202
|
exports.EchoRoute = echoRoute.EchoRoute;
|
|
183
203
|
exports.EchoRouter = echoRouter.EchoRouter;
|
|
184
204
|
exports.EchoRoutes = routes.EchoRoutes;
|
|
205
|
+
exports.useLayout = useLayout.useLayout;
|
|
185
206
|
exports.TagNumber = tagNumber.TagNumber;
|
|
186
207
|
exports.Toaster = toaster.Toaster;
|
|
187
208
|
exports.Toasters = toasters.Toasters;
|
|
188
|
-
Object.defineProperty(exports, 'BarButtonVariants', {
|
|
189
|
-
enumerable: true,
|
|
190
|
-
get: function get() {
|
|
191
|
-
return EchoBarComponent.BarButtonVariants;
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
exports.EchoBarComponent = EchoBarComponent.EchoBarComponent;
|
|
195
209
|
exports.EchoContent = EchoContent.EchoContent;
|
|
196
210
|
exports.mainMenu = EchoContentPanels.mainMenu;
|
|
197
211
|
exports.searchPanel = EchoContentPanels.searchPanel;
|
|
198
212
|
exports.EchoEventHandler = EchoEventHandler.EchoEventHandler;
|
|
199
213
|
exports.displayToast = toastActions.displayToast;
|
|
200
|
-
exports.themeConst = themeConst.themeConst;
|
|
201
214
|
Object.defineProperty(exports, 'ExtendableComponentName', {
|
|
202
215
|
enumerable: true,
|
|
203
216
|
get: function get() {
|
|
204
217
|
return extensions.ExtendableComponentName;
|
|
205
218
|
}
|
|
206
219
|
});
|
|
207
|
-
exports
|
|
220
|
+
Object.defineProperty(exports, 'LegendStatus', {
|
|
221
|
+
enumerable: true,
|
|
222
|
+
get: function get() {
|
|
223
|
+
return legend.LegendStatus;
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
Object.defineProperty(exports, 'LegendType', {
|
|
227
|
+
enumerable: true,
|
|
228
|
+
get: function get() {
|
|
229
|
+
return legend.LegendType;
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
Object.defineProperty(exports, 'PingableSources', {
|
|
233
|
+
enumerable: true,
|
|
234
|
+
get: function get() {
|
|
235
|
+
return pingableSources.PingableSources;
|
|
236
|
+
}
|
|
237
|
+
});
|
|
208
238
|
exports.check3dAccessForInstCodeOrPlantCode = plantInfo.check3dAccessForInstCodeOrPlantCode;
|
|
209
239
|
exports.check3dPermissionForPlantCode = plantInfo.check3dPermissionForPlantCode;
|
|
210
240
|
exports.check3dPermissionOnInstallation = plantInfo.check3dPermissionOnInstallation;
|
|
@@ -218,3 +248,5 @@ exports.getPlantCodesOnInstallation = plantInfo.getPlantCodesOnInstallation;
|
|
|
218
248
|
exports.getPlantsOnInstallation = plantInfo.getPlantsOnInstallation;
|
|
219
249
|
exports.setPlantInfo = plantInfo.setPlantInfo;
|
|
220
250
|
exports.startup = startup.startup;
|
|
251
|
+
exports["default"] = EchoFramework;
|
|
252
|
+
exports.registerEchopediaComponent = registerEchopediaComponent;
|
package/dist/src/types/legend.js
CHANGED
|
@@ -54,4 +54,5 @@ exports.LegendType = void 0;
|
|
|
54
54
|
LegendType["WorkOrders"] = "WorkOrders";
|
|
55
55
|
LegendType["ValvePosition"] = "ValvePosition";
|
|
56
56
|
LegendType["MeasuringPosition"] = "MeasuringPosition";
|
|
57
|
+
LegendType["WorkPermit"] = "WorkPermit";
|
|
57
58
|
})(exports.LegendType || (exports.LegendType = {}));
|
|
@@ -139,7 +139,7 @@ function getLegendStatusColor() {
|
|
|
139
139
|
function legendTypeToLegendStatus(legendType, status) {
|
|
140
140
|
if (!status) return legend.LegendStatus.Unknown;
|
|
141
141
|
|
|
142
|
-
if (legendType === legend.LegendType.CommPk || legendType === legend.LegendType.CommPkStatus || legendType === legend.LegendType.Notifications || legendType === legend.LegendType.WorkOrders || legendType === legend.LegendType.ValvePosition || legendType === legend.LegendType.MeasuringPosition) {
|
|
142
|
+
if (legendType === legend.LegendType.CommPk || legendType === legend.LegendType.CommPkStatus || legendType === legend.LegendType.Notifications || legendType === legend.LegendType.WorkOrders || legendType === legend.LegendType.ValvePosition || legendType === legend.LegendType.MeasuringPosition || legendType === legend.LegendType.WorkPermit) {
|
|
143
143
|
return status;
|
|
144
144
|
} else {
|
|
145
145
|
return valueToEnum(status, legend.LegendStatus);
|
|
@@ -2,8 +2,3 @@ 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
|
-
}
|
|
9
|
-
export declare type ScreenOrientation = 'landscape' | 'portrait' | undefined;
|
package/dist/types/legend.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.12",
|
|
4
4
|
"description": "Modules and components for EchoWeb, utilizing EchoCore",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,73 +34,73 @@
|
|
|
34
34
|
"echo-update-all": "echo-update -a"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@equinor/echo-base": "
|
|
38
|
-
"@equinor/echo-components": "
|
|
39
|
-
"@equinor/echo-core": "
|
|
40
|
-
"@equinor/echo-search": "
|
|
41
|
-
"@equinor/echo-utils": "
|
|
42
|
-
"@equinor/eds-core-react": "
|
|
37
|
+
"@equinor/echo-base": ">=0.6.12 < 0.7.0",
|
|
38
|
+
"@equinor/echo-components": ">=0.4.0 < 0.5.0",
|
|
39
|
+
"@equinor/echo-core": ">=0.6.19 < 0.7.0",
|
|
40
|
+
"@equinor/echo-search": ">=0.13.1 < 0.14.0",
|
|
41
|
+
"@equinor/echo-utils": ">=0.2.11 < 0.3.0",
|
|
42
|
+
"@equinor/eds-core-react": ">= 0.19.0 < 0.20.0",
|
|
43
43
|
"react": "^17.0.2",
|
|
44
44
|
"react-dom": "^17.0.2",
|
|
45
45
|
"react-router-dom": "^5.3.3",
|
|
46
46
|
"styled-components": "^5.3.5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@babel/core": "^7.18.
|
|
50
|
-
"@babel/preset-env": "^7.18.
|
|
51
|
-
"@babel/preset-react": "^7.
|
|
52
|
-
"@equinor/echo-base": "^0.6.
|
|
49
|
+
"@babel/core": "^7.18.10",
|
|
50
|
+
"@babel/preset-env": "^7.18.10",
|
|
51
|
+
"@babel/preset-react": "^7.18.6",
|
|
52
|
+
"@equinor/echo-base": "^0.6.12",
|
|
53
53
|
"@equinor/echo-components": "^0.4.0",
|
|
54
|
-
"@equinor/echo-core": "^0.6.
|
|
54
|
+
"@equinor/echo-core": "^0.6.19",
|
|
55
55
|
"@equinor/echo-scripts": "^0.1.5",
|
|
56
|
-
"@equinor/echo-search": "^0.
|
|
56
|
+
"@equinor/echo-search": "^0.13.1",
|
|
57
57
|
"@equinor/echo-update": "^1.3.0",
|
|
58
58
|
"@equinor/echo-utils": "^0.2.11",
|
|
59
59
|
"@equinor/eds-core-react": "^0.19.0",
|
|
60
|
-
"@modular-css/rollup": "^28.
|
|
60
|
+
"@modular-css/rollup": "^28.2.2",
|
|
61
61
|
"@rollup/plugin-babel": "^5.3.1",
|
|
62
|
-
"@rollup/plugin-commonjs": "^22.0.
|
|
62
|
+
"@rollup/plugin-commonjs": "^22.0.2",
|
|
63
63
|
"@rollup/plugin-image": "^2.1.1",
|
|
64
64
|
"@rollup/plugin-json": "^4.1.0",
|
|
65
65
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
66
|
-
"@rollup/plugin-typescript": "^8.3.
|
|
66
|
+
"@rollup/plugin-typescript": "^8.3.4",
|
|
67
67
|
"@rollup/plugin-url": "^7.0.0",
|
|
68
|
-
"@svgr/rollup": "^6.
|
|
69
|
-
"@testing-library/react-hooks": "^8.0.
|
|
70
|
-
"@types/jest": "^28.1.
|
|
71
|
-
"@types/node": "^
|
|
72
|
-
"@types/react": "^17.0.
|
|
68
|
+
"@svgr/rollup": "^6.3.1",
|
|
69
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
70
|
+
"@types/jest": "^28.1.6",
|
|
71
|
+
"@types/node": "^18.6.5",
|
|
72
|
+
"@types/react": "^17.0.48",
|
|
73
73
|
"@types/react-dom": "^17.0.17",
|
|
74
74
|
"@types/react-router-dom": "^5.3.3",
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
76
|
-
"@typescript-eslint/parser": "^5.
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^5.33.0",
|
|
76
|
+
"@typescript-eslint/parser": "^5.33.0",
|
|
77
77
|
"@wessberg/rollup-plugin-ts": "^2.0.4",
|
|
78
|
-
"autoprefixer": "^10.4.
|
|
79
|
-
"babel-jest": "^28.1.
|
|
80
|
-
"eslint": "^8.
|
|
78
|
+
"autoprefixer": "^10.4.8",
|
|
79
|
+
"babel-jest": "^28.1.3",
|
|
80
|
+
"eslint": "^8.21.0",
|
|
81
81
|
"eslint-config-prettier": "^8.5.0",
|
|
82
|
-
"eslint-plugin-prettier": "^4.
|
|
83
|
-
"eslint-plugin-react": "^7.30.
|
|
82
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
83
|
+
"eslint-plugin-react": "^7.30.1",
|
|
84
84
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
85
|
-
"jest": "^28.1.
|
|
86
|
-
"jest-environment-jsdom": "^28.1.
|
|
87
|
-
"jest-expo": "^
|
|
88
|
-
"postcss": "^8.4.
|
|
85
|
+
"jest": "^28.1.3",
|
|
86
|
+
"jest-environment-jsdom": "^28.1.3",
|
|
87
|
+
"jest-expo": "^46.0.1",
|
|
88
|
+
"postcss": "^8.4.16",
|
|
89
89
|
"postcss-assets": "^6.0.0",
|
|
90
90
|
"postcss-modules": "^4.3.1",
|
|
91
|
-
"prettier": "^2.7.
|
|
91
|
+
"prettier": "^2.7.1",
|
|
92
92
|
"react": "^17.0.2",
|
|
93
93
|
"react-dom": "^17.0.2",
|
|
94
94
|
"react-router-dom": "^5.3.3",
|
|
95
|
-
"rollup": "^2.
|
|
95
|
+
"rollup": "^2.77.2",
|
|
96
96
|
"rollup-plugin-delete": "^2.0.0",
|
|
97
97
|
"rollup-plugin-postcss": "^4.0.2",
|
|
98
98
|
"rollup-plugin-typescript-paths": "^1.3.1",
|
|
99
99
|
"rollup-plugin-typescript2": "^0.32.1",
|
|
100
100
|
"styled-components": "^5.3.5",
|
|
101
|
-
"ts-jest": "^28.0.
|
|
101
|
+
"ts-jest": "^28.0.7",
|
|
102
102
|
"tslib": "^2.4.0",
|
|
103
|
-
"typescript": "4.7.
|
|
103
|
+
"typescript": "=4.7.4"
|
|
104
104
|
},
|
|
105
105
|
"compilerOptions": {
|
|
106
106
|
"declaration": true
|
|
@@ -113,6 +113,6 @@
|
|
|
113
113
|
"npm": ">=7.0.0"
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
116
|
-
"@microsoft/signalr": "^6.0.
|
|
116
|
+
"@microsoft/signalr": "^6.0.8"
|
|
117
117
|
}
|
|
118
118
|
}
|
package/dist/_virtual/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare enum BarButtonVariants {
|
|
3
|
-
Home = "home",
|
|
4
|
-
Search = "search",
|
|
5
|
-
Camera = "camera",
|
|
6
|
-
Menu = "menu"
|
|
7
|
-
}
|
|
8
|
-
interface EchoBottomBarProps {
|
|
9
|
-
isBottomBarVisible: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const EchoBarComponent: React.FC<EchoBottomBarProps>;
|
|
12
|
-
export default EchoBarComponent;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DeviceOrientation, ScreenOrientation } from '../types/hookLibrary';
|
|
2
|
-
/**
|
|
3
|
-
* Provides screen values for current screen.
|
|
4
|
-
*
|
|
5
|
-
* @returns {Object} response
|
|
6
|
-
* @returns {boolean} response.isWeb If Echo is used on web or on the device.
|
|
7
|
-
* @returns {DeviceOrientation} response.screenOrientationDevice
|
|
8
|
-
* @returns {ScreenOrientation} response.screenOrientationWeb
|
|
9
|
-
*/
|
|
10
|
-
declare type DeviceValues = {
|
|
11
|
-
isWeb: boolean;
|
|
12
|
-
isScreenMobileSize: boolean;
|
|
13
|
-
screenOrientationDevice: DeviceOrientation;
|
|
14
|
-
screenOrientationWeb: ScreenOrientation;
|
|
15
|
-
};
|
|
16
|
-
export declare function useScreenValues(): DeviceValues;
|
|
17
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get the current size of the browser window.
|
|
3
|
-
* @returns {width?: number; height?: number} Width and height of the current browser window size.
|
|
4
|
-
* Returns undefined if there is no window object (for example: executed on server side)
|
|
5
|
-
*/
|
|
6
|
-
export declare function useWindowSize(): {
|
|
7
|
-
width?: number;
|
|
8
|
-
height?: number;
|
|
9
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, '__esModule', {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
var index = require('../../_virtual/index.js');
|
|
10
|
-
/*!
|
|
11
|
-
Copyright (c) 2018 Jed Watson.
|
|
12
|
-
Licensed under the MIT License (MIT), see
|
|
13
|
-
http://jedwatson.github.io/classnames
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
(function (module) {
|
|
18
|
-
/* global define */
|
|
19
|
-
(function () {
|
|
20
|
-
var hasOwn = {}.hasOwnProperty;
|
|
21
|
-
|
|
22
|
-
function classNames() {
|
|
23
|
-
var classes = [];
|
|
24
|
-
|
|
25
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
26
|
-
var arg = arguments[i];
|
|
27
|
-
if (!arg) continue;
|
|
28
|
-
|
|
29
|
-
var argType = _typeof(arg);
|
|
30
|
-
|
|
31
|
-
if (argType === 'string' || argType === 'number') {
|
|
32
|
-
classes.push(arg);
|
|
33
|
-
} else if (Array.isArray(arg)) {
|
|
34
|
-
if (arg.length) {
|
|
35
|
-
var inner = classNames.apply(null, arg);
|
|
36
|
-
|
|
37
|
-
if (inner) {
|
|
38
|
-
classes.push(inner);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
} else if (argType === 'object') {
|
|
42
|
-
if (arg.toString === Object.prototype.toString) {
|
|
43
|
-
for (var key in arg) {
|
|
44
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
45
|
-
classes.push(key);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
} else {
|
|
49
|
-
classes.push(arg.toString());
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return classes.join(' ');
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
if (module.exports) {
|
|
58
|
-
classNames["default"] = classNames;
|
|
59
|
-
module.exports = classNames;
|
|
60
|
-
} else {
|
|
61
|
-
window.classNames = classNames;
|
|
62
|
-
}
|
|
63
|
-
})();
|
|
64
|
-
})(index.classnames);
|
|
65
|
-
|
|
66
|
-
var classNames = index.classnames.exports;
|
|
67
|
-
exports["default"] = classNames;
|