@opengeoweb/workspace 6.0.4 → 6.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/workspace",
3
- "version": "6.0.4",
3
+ "version": "6.1.1",
4
4
  "description": "GeoWeb Workspace library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,27 +14,28 @@
14
14
  "peerDependencies": {
15
15
  "@emotion/react": "11.11.1",
16
16
  "@mui/material": "5.12.0",
17
- "@mui/system": "5.14.5",
18
- "@opengeoweb/api": "6.0.4",
19
- "@opengeoweb/authentication": "6.0.4",
20
- "@opengeoweb/core": "6.0.4",
21
- "@opengeoweb/form-fields": "6.0.4",
22
- "@opengeoweb/shared": "6.0.4",
23
- "@opengeoweb/sigmet-airmet": "6.0.4",
24
- "@opengeoweb/store": "6.0.4",
25
- "@opengeoweb/taf": "6.0.4",
26
- "@opengeoweb/theme": "6.0.4",
27
- "@opengeoweb/timeseries": "6.0.4",
17
+ "@mui/system": "5.14.8",
18
+ "@opengeoweb/api": "6.1.1",
19
+ "@opengeoweb/authentication": "6.1.1",
20
+ "@opengeoweb/core": "6.1.1",
21
+ "@opengeoweb/form-fields": "6.1.1",
22
+ "@opengeoweb/shared": "6.1.1",
23
+ "@opengeoweb/sigmet-airmet": "6.1.1",
24
+ "@opengeoweb/store": "6.1.1",
25
+ "@opengeoweb/taf": "6.1.1",
26
+ "@opengeoweb/theme": "6.1.1",
27
+ "@opengeoweb/timeseries": "6.1.1",
28
+ "@opengeoweb/webmap": "6.1.1",
28
29
  "@redux-eggs/core": "2.2.0",
29
30
  "@redux-eggs/redux-toolkit": "2.2.0",
30
31
  "@redux-eggs/saga-extension": "2.2.0",
31
32
  "@reduxjs/toolkit": "1.9.5",
32
- "axios": "1.4.0",
33
+ "axios": "1.5.0",
33
34
  "immer": "9.0.21",
34
35
  "lodash": "4.17.21",
35
36
  "react": "18.2.0",
36
37
  "react-dnd-multi-backend": "6.0.2",
37
- "react-hook-form": "7.45.4",
38
+ "react-hook-form": "7.46.1",
38
39
  "react-mosaic-component": "5.3.0",
39
40
  "react-redux": "8.1.2",
40
41
  "react-window": "1.8.9",
@@ -19,5 +19,13 @@ export declare const DeleteDemoDarkTheme: {
19
19
  (): React.ReactElement;
20
20
  storyName: string;
21
21
  };
22
+ export declare const EditDemoLightTheme: {
23
+ (): React.ReactElement;
24
+ storyName: string;
25
+ };
26
+ export declare const EditDemoDarkTheme: {
27
+ (): React.ReactElement;
28
+ storyName: string;
29
+ };
22
30
  export declare const SaveAsWithError: () => React.ReactElement;
23
31
  export declare const DeleteWithError: () => React.ReactElement;
@@ -7,6 +7,7 @@ export declare const DIALOG_TITLE_DELETE = "Delete workspace";
7
7
  export declare const DIALOG_TITLE_DUPLICATE = "Duplicate";
8
8
  export declare const DIALOG_BUTTON_SAVE = "Save";
9
9
  export declare const DIALOG_BUTTON_DELETE = "Delete";
10
+ export declare const DIALOG_BUTTON_EDIT = "Edit (name and abstract)";
10
11
  export declare const getDialogTitle: (action: WorkspacePresetAction) => string;
11
12
  export declare const getConfirmLabel: (action: WorkspacePresetAction) => string;
12
13
  export interface WorkspacePresetsFormDialogProps {
@@ -55,7 +55,7 @@ export declare enum PresetAction {
55
55
  SAVE = "Save",
56
56
  SAVE_AS = "Save as",
57
57
  SHARE = "Share",
58
- RENAME = "Rename"
58
+ EDIT = "Edit"
59
59
  }
60
60
  interface ViewPresetAction {
61
61
  panelId: string;
@@ -4,6 +4,7 @@ import { FetchViewPresetsListParams } from '../viewPresetsList/types';
4
4
  export declare const MAPPRESET_ACTIVE_TITLE = "New map preset";
5
5
  export declare const MAPPRESET_DIALOG_TITLE_SAVE_AS = "Save map preset as";
6
6
  export declare const MAPPRESET_DIALOG_TITLE_DELETE = "Delete map preset";
7
+ export declare const MAPPRESET_DIALOG_TITLE_EDIT = "Edit map preset";
7
8
  export declare const getSnackbarMessage: (action: PresetAction, title: string) => string;
8
9
  export declare const getPresetsApi: () => PresetsApi;
9
10
  export declare const emptyMapViewPreset: {
@@ -142,7 +142,9 @@ export declare const getWorkspaceData: ((state: AppStore & import("@opengeoweb/s
142
142
  }> & {
143
143
  clearCache: () => void;
144
144
  };
145
- export declare const getViewPresetToSendToBackend: ((state: any, viewId: string) => {
145
+ export declare const getViewPresetToSendToBackend: ((state: AppStore & import("@opengeoweb/store").CoreAppStore, viewId: string | (string & {
146
+ sourceId: string;
147
+ })) => {
146
148
  id: string | undefined;
147
149
  scope: import("./types").PresetScope;
148
150
  title: string;
@@ -150,13 +152,6 @@ export declare const getViewPresetToSendToBackend: ((state: any, viewId: string)
150
152
  mapPreset: import("dist/libs/store/src/store/mapStore/types").MapPreset;
151
153
  syncGroupsIds: string[];
152
154
  };
153
- /**
154
- * Gets view from workspace state
155
- *
156
- * @param {object} store store: object - Store object
157
- * @param {string} viewId viewId: string - view id
158
- * @returns {object} returnType: WorkspaceViewType
159
- */
160
155
  componentType: "Map";
161
156
  keywords: string;
162
157
  }) & import("reselect").OutputSelectorFields<(args_0: WorkspaceViewType | undefined, args_1: import("dist/libs/store/src/store/mapStore/types").MapPreset, args_2: string[]) => {
@@ -167,13 +162,6 @@ export declare const getViewPresetToSendToBackend: ((state: any, viewId: string)
167
162
  mapPreset: import("dist/libs/store/src/store/mapStore/types").MapPreset;
168
163
  syncGroupsIds: string[];
169
164
  };
170
- /**
171
- * Gets view from workspace state
172
- *
173
- * @param {object} store store: object - Store object
174
- * @param {string} viewId viewId: string - view id
175
- * @returns {object} returnType: WorkspaceViewType
176
- */
177
165
  componentType: "Map";
178
166
  keywords: string;
179
167
  }, {
@@ -61,13 +61,14 @@ export type OpenWorkspaceActionDialogPayload = WorkspaceActionDialogType;
61
61
  export interface SubmitFormWorkspaceActionDialogPayload {
62
62
  presetAction: WorkspacePresetAction;
63
63
  presetId: string;
64
- data: WorkspacePreset;
64
+ data: WorkspacePreset | WorkspacePresetFromBE;
65
65
  }
66
66
  export interface OnSuccesWorkspacePresetActionPayload {
67
67
  workspaceId: string;
68
68
  action: WorkspacePresetAction;
69
69
  title: string;
70
70
  abstract?: string;
71
+ currentActiveWorkspaceId?: string;
71
72
  }
72
73
  export interface OnErrorWorkspacePresetActionPayload {
73
74
  error: WorkspaceListError;