@opengeoweb/workspace 12.9.1 → 12.10.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
|
@@ -2316,7 +2316,8 @@ var emptyViewPreset = function emptyViewPreset(componentType) {
|
|
|
2316
2316
|
ModelRunInterval: undefined,
|
|
2317
2317
|
HarmonieTempAndPrecipPreset: undefined,
|
|
2318
2318
|
TimeSlider: undefined,
|
|
2319
|
-
WarningList: undefined
|
|
2319
|
+
WarningList: undefined,
|
|
2320
|
+
MaritimeWarnings: undefined
|
|
2320
2321
|
};
|
|
2321
2322
|
return {
|
|
2322
2323
|
componentType: actualComponentType,
|
|
@@ -9128,35 +9129,6 @@ var useCreateWorkspacePreset = function useCreateWorkspacePreset() {
|
|
|
9128
9129
|
}
|
|
9129
9130
|
});
|
|
9130
9131
|
};
|
|
9131
|
-
var useUpdateWorkspacePreset = function useUpdateWorkspacePreset() {
|
|
9132
|
-
var _useAuthenticationCon3 = useAuthenticationContext(),
|
|
9133
|
-
auth = _useAuthenticationCon3.auth;
|
|
9134
|
-
var dispatch = useDispatch();
|
|
9135
|
-
var _useWorkspaceTranslat3 = useWorkspaceTranslation(),
|
|
9136
|
-
t = _useWorkspaceTranslat3.t;
|
|
9137
|
-
return useMutation({
|
|
9138
|
-
mutationFn: function mutationFn(_ref3) {
|
|
9139
|
-
var id = _ref3.id,
|
|
9140
|
-
data = _ref3.data;
|
|
9141
|
-
if (!auth) {
|
|
9142
|
-
throw new Error('Authentication context not found');
|
|
9143
|
-
}
|
|
9144
|
-
return updateWorkspace(id, data, auth);
|
|
9145
|
-
},
|
|
9146
|
-
onSuccess: function onSuccess(data, variables) {
|
|
9147
|
-
var scope = variables.data.scope || 'user';
|
|
9148
|
-
dispatch(workspaceListActions.onSuccessWorkspacePresetAction({
|
|
9149
|
-
workspaceId: variables.id,
|
|
9150
|
-
action: variables.action || WorkspacePresetAction.SAVE,
|
|
9151
|
-
title: variables.data.title,
|
|
9152
|
-
scope: scope
|
|
9153
|
-
}));
|
|
9154
|
-
},
|
|
9155
|
-
onError: function onError(error) {
|
|
9156
|
-
onWorkspaceApiError(dispatch, error, t);
|
|
9157
|
-
}
|
|
9158
|
-
});
|
|
9159
|
-
};
|
|
9160
9132
|
|
|
9161
9133
|
var WorkspaceTabConnect = function WorkspaceTabConnect(_ref) {
|
|
9162
9134
|
var workspaceId = _ref.workspaceId,
|
|
@@ -9170,8 +9142,6 @@ var WorkspaceTabConnect = function WorkspaceTabConnect(_ref) {
|
|
|
9170
9142
|
deleteWorkspace = _useDeleteWorkspacePr.mutate;
|
|
9171
9143
|
var _useCreateWorkspacePr = useCreateWorkspacePreset(),
|
|
9172
9144
|
createWorkspace = _useCreateWorkspacePr.mutate;
|
|
9173
|
-
var _useUpdateWorkspacePr = useUpdateWorkspacePreset(),
|
|
9174
|
-
updateWorkspace = _useUpdateWorkspacePr.mutate;
|
|
9175
9145
|
var title = useSelector(function (store) {
|
|
9176
9146
|
return getSelectedWorkspaceTitle(store);
|
|
9177
9147
|
});
|
|
@@ -9188,13 +9158,13 @@ var WorkspaceTabConnect = function WorkspaceTabConnect(_ref) {
|
|
|
9188
9158
|
while (1) switch (_context.prev = _context.next) {
|
|
9189
9159
|
case 0:
|
|
9190
9160
|
_context.t0 = presetAction;
|
|
9191
|
-
_context.next = _context.t0 === WorkspacePresetAction.DELETE ? 3 : _context.t0 === WorkspacePresetAction.DELETE_SYSTEM_PRESET ? 3 : _context.t0 === WorkspacePresetAction.DUPLICATE ? 5 :
|
|
9161
|
+
_context.next = _context.t0 === WorkspacePresetAction.DELETE ? 3 : _context.t0 === WorkspacePresetAction.DELETE_SYSTEM_PRESET ? 3 : _context.t0 === WorkspacePresetAction.DUPLICATE ? 5 : 15;
|
|
9192
9162
|
break;
|
|
9193
9163
|
case 3:
|
|
9194
9164
|
deleteWorkspace({
|
|
9195
9165
|
id: presetId
|
|
9196
9166
|
});
|
|
9197
|
-
return _context.abrupt("break",
|
|
9167
|
+
return _context.abrupt("break", 16);
|
|
9198
9168
|
case 5:
|
|
9199
9169
|
if (!presetId) {
|
|
9200
9170
|
_context.next = 11;
|
|
@@ -9214,15 +9184,8 @@ var WorkspaceTabConnect = function WorkspaceTabConnect(_ref) {
|
|
|
9214
9184
|
data: Object.assign({}, oldWorkspace, data),
|
|
9215
9185
|
action: presetAction
|
|
9216
9186
|
});
|
|
9217
|
-
return _context.abrupt("break",
|
|
9187
|
+
return _context.abrupt("break", 16);
|
|
9218
9188
|
case 15:
|
|
9219
|
-
updateWorkspace({
|
|
9220
|
-
id: presetId,
|
|
9221
|
-
data: data,
|
|
9222
|
-
action: presetAction
|
|
9223
|
-
});
|
|
9224
|
-
return _context.abrupt("break", 18);
|
|
9225
|
-
case 17:
|
|
9226
9189
|
dispatch(workspaceListActions.submitFormWorkspaceActionDialogOptions({
|
|
9227
9190
|
presetAction: presetAction,
|
|
9228
9191
|
presetId: presetId,
|
|
@@ -9230,7 +9193,7 @@ var WorkspaceTabConnect = function WorkspaceTabConnect(_ref) {
|
|
|
9230
9193
|
emptyMapPresetTitle: t('workspace-mappreset-new'),
|
|
9231
9194
|
emptyWorkspacePresetTitle: t('workspace-new')
|
|
9232
9195
|
}));
|
|
9233
|
-
case
|
|
9196
|
+
case 16:
|
|
9234
9197
|
case "end":
|
|
9235
9198
|
return _context.stop();
|
|
9236
9199
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/workspace",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.10.0",
|
|
4
4
|
"description": "GeoWeb Workspace library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,30 +9,30 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"react-redux": "^9.2.0",
|
|
12
|
-
"@opengeoweb/shared": "12.
|
|
13
|
-
"@opengeoweb/store": "12.
|
|
14
|
-
"@opengeoweb/api": "12.
|
|
12
|
+
"@opengeoweb/shared": "12.10.0",
|
|
13
|
+
"@opengeoweb/store": "12.10.0",
|
|
14
|
+
"@opengeoweb/api": "12.10.0",
|
|
15
15
|
"react-hook-form": "^7.50.1",
|
|
16
|
-
"@opengeoweb/theme": "12.
|
|
16
|
+
"@opengeoweb/theme": "12.10.0",
|
|
17
17
|
"@reduxjs/toolkit": "^2.6.1",
|
|
18
|
-
"@opengeoweb/snackbar": "12.
|
|
18
|
+
"@opengeoweb/snackbar": "12.10.0",
|
|
19
19
|
"react-window": "^1.8.10",
|
|
20
20
|
"lodash": "^4.17.21",
|
|
21
21
|
"axios": "^1.7.7",
|
|
22
22
|
"react-virtualized-auto-sizer": "^1.0.21",
|
|
23
23
|
"react-mosaic-component": "^6.1.0",
|
|
24
|
-
"@opengeoweb/form-fields": "12.
|
|
25
|
-
"@opengeoweb/timeseries": "12.
|
|
26
|
-
"@opengeoweb/authentication": "12.
|
|
27
|
-
"@opengeoweb/core": "12.
|
|
28
|
-
"@opengeoweb/taf": "12.
|
|
29
|
-
"@opengeoweb/sigmet-airmet": "12.
|
|
30
|
-
"@opengeoweb/warnings": "12.
|
|
31
|
-
"@opengeoweb/spaceweather": "12.
|
|
24
|
+
"@opengeoweb/form-fields": "12.10.0",
|
|
25
|
+
"@opengeoweb/timeseries": "12.10.0",
|
|
26
|
+
"@opengeoweb/authentication": "12.10.0",
|
|
27
|
+
"@opengeoweb/core": "12.10.0",
|
|
28
|
+
"@opengeoweb/taf": "12.10.0",
|
|
29
|
+
"@opengeoweb/sigmet-airmet": "12.10.0",
|
|
30
|
+
"@opengeoweb/warnings": "12.10.0",
|
|
31
|
+
"@opengeoweb/spaceweather": "12.10.0",
|
|
32
32
|
"i18next": "^25.0.1",
|
|
33
33
|
"react-i18next": "^15.1.1",
|
|
34
34
|
"@mui/material": "^7.0.1",
|
|
35
|
-
"@opengeoweb/webmap-react": "12.
|
|
35
|
+
"@opengeoweb/webmap-react": "12.10.0",
|
|
36
36
|
"@tanstack/react-query": "^5.69.2"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -20,4 +20,5 @@ export declare const ActionsExample: Story;
|
|
|
20
20
|
export declare const ErrorExample: Story;
|
|
21
21
|
export declare const MapWithTimeslider: Story;
|
|
22
22
|
export declare const WarningList: Story;
|
|
23
|
+
export declare const MaritimeWarnings: Story;
|
|
23
24
|
export declare const SpaceweatherModule: Story;
|