@opengeoweb/workspace 9.5.0 → 9.6.0
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/index.esm.js
CHANGED
|
@@ -7214,8 +7214,7 @@ var WorkspaceMenuButton = function WorkspaceMenuButton(_ref) {
|
|
|
7214
7214
|
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
7215
7215
|
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
7216
7216
|
* */
|
|
7217
|
-
var WorkspaceMenuButtonConnect = function WorkspaceMenuButtonConnect(
|
|
7218
|
-
var workspaceId = _ref.workspaceId;
|
|
7217
|
+
var WorkspaceMenuButtonConnect = function WorkspaceMenuButtonConnect() {
|
|
7219
7218
|
var dispatch = useDispatch();
|
|
7220
7219
|
var setListDialogOpen = React__default.useCallback(function (isListDialogOpen) {
|
|
7221
7220
|
dispatch(workspaceListActions.toggleWorkspaceDialog({
|
|
@@ -7225,13 +7224,6 @@ var WorkspaceMenuButtonConnect = function WorkspaceMenuButtonConnect(_ref) {
|
|
|
7225
7224
|
var isWorkspaceListDialogOpen = useSelector(function (store) {
|
|
7226
7225
|
return getIsWorkspaceListDialogOpen(store);
|
|
7227
7226
|
});
|
|
7228
|
-
React__default.useEffect(function () {
|
|
7229
|
-
// open workspaceDialog on mount if needed
|
|
7230
|
-
if (workspaceId === undefined || workspaceId === 'emptyMap' || workspaceId === '') {
|
|
7231
|
-
setListDialogOpen(true);
|
|
7232
|
-
}
|
|
7233
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7234
|
-
}, [setListDialogOpen]);
|
|
7235
7227
|
return /*#__PURE__*/React__default.createElement(WorkspaceMenuButton, {
|
|
7236
7228
|
showMenu: isWorkspaceListDialogOpen,
|
|
7237
7229
|
onToggleDialog: setListDialogOpen
|
|
@@ -7363,9 +7355,7 @@ var WorkspaceTab = function WorkspaceTab(_ref) {
|
|
|
7363
7355
|
alignItems: 'center'
|
|
7364
7356
|
},
|
|
7365
7357
|
"data-testid": "workspaceTab"
|
|
7366
|
-
}, /*#__PURE__*/React.createElement(WorkspaceMenuButtonConnect, {
|
|
7367
|
-
workspaceId: workspaceId
|
|
7368
|
-
}), /*#__PURE__*/React.createElement(WorkspaceOptionsConnect, {
|
|
7358
|
+
}, /*#__PURE__*/React.createElement(WorkspaceMenuButtonConnect, null), /*#__PURE__*/React.createElement(WorkspaceOptionsConnect, {
|
|
7369
7359
|
title: title,
|
|
7370
7360
|
activeTab: activeTab,
|
|
7371
7361
|
workspaceId: workspaceId
|
package/package.json
CHANGED
|
@@ -1,12 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/workspace",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.6.0",
|
|
4
4
|
"description": "GeoWeb Workspace library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"react-redux": "^8.1.3",
|
|
12
|
+
"@opengeoweb/shared": "*",
|
|
13
|
+
"@mui/material": "5.12.0",
|
|
14
|
+
"@opengeoweb/form-fields": "*",
|
|
15
|
+
"@opengeoweb/store": "*",
|
|
16
|
+
"@opengeoweb/api": "*",
|
|
17
|
+
"react-hook-form": "7.47.0",
|
|
18
|
+
"@opengeoweb/core": "*",
|
|
19
|
+
"@opengeoweb/theme": "*",
|
|
20
|
+
"@reduxjs/toolkit": "^1.9.7",
|
|
21
|
+
"@opengeoweb/timeseries": "*",
|
|
22
|
+
"@opengeoweb/authentication": "*",
|
|
23
|
+
"@opengeoweb/snackbar": "*",
|
|
24
|
+
"react-window": "^1.8.10",
|
|
25
|
+
"@mui/system": "^5.15.1",
|
|
26
|
+
"redux-saga": "^1.2.3",
|
|
27
|
+
"react-mosaic-component": "^6.1.0",
|
|
28
|
+
"lodash": "^4.17.21",
|
|
29
|
+
"@emotion/react": "^11.11.1",
|
|
30
|
+
"@redux-eggs/core": "^2.2.0",
|
|
31
|
+
"@redux-eggs/redux-toolkit": "^2.2.0",
|
|
32
|
+
"@redux-eggs/saga-extension": "^2.2.0",
|
|
33
|
+
"immer": "^9.0.21",
|
|
34
|
+
"axios": "1.5.0",
|
|
35
|
+
"@opengeoweb/taf": "*",
|
|
36
|
+
"@opengeoweb/sigmet-airmet": "*",
|
|
37
|
+
"@opengeoweb/warnings": "*"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"react": "18"
|
|
41
|
+
},
|
|
10
42
|
"module": "./index.esm.js",
|
|
11
43
|
"type": "module",
|
|
12
44
|
"main": "./index.esm.js"
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { Theme } from '@mui/material';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
interface WorkspaceAppProps {
|
|
4
|
+
isSnapshot?: boolean;
|
|
5
|
+
workspaceId?: string;
|
|
6
|
+
shouldShowListOnOpen?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const WorkspaceApp: ({ isSnapshot, workspaceId, shouldShowListOnOpen, }: WorkspaceAppProps) => React.ReactElement;
|
|
3
9
|
interface StoryWrapperProps {
|
|
4
10
|
theme?: Theme;
|
|
5
11
|
isSnapshot?: boolean;
|
|
6
12
|
createApi?: () => void;
|
|
7
13
|
workspaceId?: string;
|
|
8
14
|
isLoggedIn?: boolean;
|
|
15
|
+
shouldShowListOnOpen?: boolean;
|
|
9
16
|
}
|
|
10
|
-
export declare const StoryWrapper: ({ theme, isSnapshot, createApi, workspaceId, isLoggedIn, }: StoryWrapperProps) => React.ReactElement;
|
|
17
|
+
export declare const StoryWrapper: ({ theme, isSnapshot, createApi, workspaceId, isLoggedIn, shouldShowListOnOpen, }: StoryWrapperProps) => React.ReactElement;
|
|
11
18
|
export {};
|