@opengeoweb/workspace 9.31.0 → 9.32.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/index.esm.js +1225 -1433
- package/package.json +4 -3
- package/src/index.d.ts +1 -0
- package/src/lib/components/WorkspaceOptions/WorkspaceOptions.d.ts +1 -2
- package/src/lib/components/WorkspaceOptions/WorkspaceOptionsConnect.d.ts +1 -0
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.stories.d.ts +0 -2
- package/src/lib/components/WorkspacePresetsFormDialog/{WorkspaceSystemPresetsForm.d.ts → WorkspaceViewPresetsFormFields.d.ts} +3 -2
- package/src/lib/components/WorkspaceTab/WorkspaceTab.d.ts +1 -0
- package/src/lib/components/WorkspaceTab/WorkspaceTabConnect.d.ts +1 -0
- package/src/lib/components/WorkspaceTopBar/WorkspaceTopBar.d.ts +1 -0
- package/src/lib/store/viewPresets/types.d.ts +2 -1
- package/src/lib/store/workspace/types.d.ts +1 -1
- package/src/lib/store/workspaceList/listener.d.ts +0 -7
- package/src/lib/store/workspaceList/selectors.d.ts +2 -0
- package/src/lib/store/workspaceList/types.d.ts +2 -1
- package/src/lib/store/workspaceList/utils.d.ts +0 -2
- package/src/lib/utils/utils.d.ts +1 -0
- /package/src/lib/components/WorkspacePresetsFormDialog/{WorkspaceSystemPresetsForm.spec.d.ts → WorkspaceViewPresetsFormFields.spec.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/workspace",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.32.1",
|
|
4
4
|
"description": "GeoWeb Workspace library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@opengeoweb/sigmet-airmet": "*",
|
|
33
33
|
"@opengeoweb/warnings": "*",
|
|
34
34
|
"i18next": "^23.11.5",
|
|
35
|
-
"react-i18next": "^
|
|
35
|
+
"react-i18next": "^15.1.1",
|
|
36
36
|
"@mui/material": "^6.1.1",
|
|
37
37
|
"@opengeoweb/webmap-react": "*"
|
|
38
38
|
},
|
|
@@ -43,5 +43,6 @@
|
|
|
43
43
|
},
|
|
44
44
|
"module": "./index.esm.js",
|
|
45
45
|
"type": "module",
|
|
46
|
-
"main": "./index.esm.js"
|
|
46
|
+
"main": "./index.esm.js",
|
|
47
|
+
"types": "./index.esm.d.ts"
|
|
47
48
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { viewPresetActions } from './lib/store/viewPresets';
|
|
|
7
7
|
export * as selectors from './lib/store/workspace/selectors';
|
|
8
8
|
export { default as workspaceModuleConfig } from './lib/store/config';
|
|
9
9
|
export * from './lib/store/workspace/types';
|
|
10
|
+
export * from './lib/store/viewPresets/types';
|
|
10
11
|
export * from './lib/components/Providers';
|
|
11
12
|
export * from './lib/components/ComponentsLookUpWrapper';
|
|
12
13
|
export * from './lib/components/WorkspaceView';
|
|
@@ -7,10 +7,9 @@ export interface WorkspaceOptionsProps {
|
|
|
7
7
|
id?: string;
|
|
8
8
|
handleSave?: () => void;
|
|
9
9
|
handleSaveAs?: () => void;
|
|
10
|
-
handleSaveAll?: () => void;
|
|
11
10
|
handleEdit?: () => void;
|
|
12
11
|
handleDelete?: () => void;
|
|
13
|
-
|
|
12
|
+
handleSaveSystemPresetAs?: () => void;
|
|
14
13
|
handleResetWorkspace?: () => void;
|
|
15
14
|
hasChanges?: boolean;
|
|
16
15
|
isDisabled?: boolean;
|
package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.stories.d.ts
CHANGED
|
@@ -21,8 +21,6 @@ export declare const FormDialogLightDelete: {
|
|
|
21
21
|
};
|
|
22
22
|
export declare const FormDialogLightDuplicate: () => React.ReactElement;
|
|
23
23
|
export declare const FormDialogDarkDuplicate: () => React.ReactElement;
|
|
24
|
-
export declare const FormDialogSaveAllLight: () => React.ReactElement;
|
|
25
|
-
export declare const FormDialogSaveAllDark: () => React.ReactElement;
|
|
26
24
|
export declare const FormDialogSaveSystemPreset: {
|
|
27
25
|
(): React.ReactElement;
|
|
28
26
|
parameters: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WorkspaceDialogView } from '../../store/workspaceList/types';
|
|
3
|
-
declare const
|
|
3
|
+
declare const WorkspaceViewPresetsFormFields: React.FC<{
|
|
4
4
|
viewPresets: WorkspaceDialogView[];
|
|
5
5
|
isLoading?: boolean;
|
|
6
|
+
isAdmin?: boolean;
|
|
6
7
|
}>;
|
|
7
|
-
export default
|
|
8
|
+
export default WorkspaceViewPresetsFormFields;
|
|
@@ -17,7 +17,7 @@ export declare enum ViewPresetErrorComponent {
|
|
|
17
17
|
PRESET_LIST = "PRESET_LIST"
|
|
18
18
|
}
|
|
19
19
|
export declare enum ViewPresetErrorType {
|
|
20
|
-
AUTH = "AUTH"
|
|
20
|
+
AUTH = "AUTH",// Errors related to authentication and authorization
|
|
21
21
|
GENERIC = "GENERIC"
|
|
22
22
|
}
|
|
23
23
|
export type ViewPresetError = {
|
|
@@ -108,6 +108,7 @@ export interface OnSuccesViewPresetActionPayload extends ViewPresetAction {
|
|
|
108
108
|
viewPresetId: string;
|
|
109
109
|
action: PresetAction;
|
|
110
110
|
title: string;
|
|
111
|
+
componentType?: string;
|
|
111
112
|
}
|
|
112
113
|
export interface SelectViewPresetPayload extends ViewPresetAction {
|
|
113
114
|
viewPresetId: string;
|
|
@@ -66,9 +66,9 @@ export declare enum WorkspacePresetAction {
|
|
|
66
66
|
EDIT = "EDIT",
|
|
67
67
|
SAVE = "SAVE",
|
|
68
68
|
SAVE_AS = "SAVE_AS",
|
|
69
|
-
SAVE_ALL = "SAVE_ALL",
|
|
70
69
|
DUPLICATE = "DUPLICATE",
|
|
71
70
|
SAVE_SYSTEM_PRESET = "SAVE_SYSTEM_PRESET",
|
|
71
|
+
SAVE_SYSTEM_PRESET_AS = "SAVE_SYSTEM_PRESET_AS",
|
|
72
72
|
RESET = "RESET",
|
|
73
73
|
DELETE_SYSTEM_PRESET = "DELETE_SYSTEM_PRESET"
|
|
74
74
|
}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import { ToolkitStore } from '@reduxjs/toolkit/dist/configureStore';
|
|
2
1
|
import { WorkspacePresetFromBE } from '../workspace/types';
|
|
3
|
-
import { ViewPresetEntity } from '../viewPresets/types';
|
|
4
2
|
import { WorkspaceModuleStore } from '../types';
|
|
5
3
|
export declare const emptyWorkspaceBEData: Omit<WorkspacePresetFromBE, 'title'>;
|
|
6
|
-
export declare const saveAllViewPresets: (viewPresetEntity: ViewPresetEntity, workspaceTitle: string, store: ToolkitStore, emptyMapPresetTitle: string) => Promise<{
|
|
7
|
-
mosaicNodeId: string;
|
|
8
|
-
viewPresetId: string;
|
|
9
|
-
title?: string;
|
|
10
|
-
} | string>;
|
|
11
4
|
export declare const workspaceListListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WorkspaceModuleStore, import("@reduxjs/toolkit").ThunkDispatch<WorkspaceModuleStore, unknown, import("redux").AnyAction>, unknown>;
|
|
@@ -29,6 +29,7 @@ export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => fals
|
|
|
29
29
|
error: import("../viewPresets/types").ViewPresetError;
|
|
30
30
|
isFetching: boolean | undefined;
|
|
31
31
|
hasChanges: boolean | undefined;
|
|
32
|
+
scope: PresetScope;
|
|
32
33
|
}[] | undefined;
|
|
33
34
|
id?: string | undefined;
|
|
34
35
|
title?: string | undefined;
|
|
@@ -59,6 +60,7 @@ export declare const getWorkspaceActionDialogDetails: ((state: AppStore) => fals
|
|
|
59
60
|
error: import("../viewPresets/types").ViewPresetError;
|
|
60
61
|
isFetching: boolean | undefined;
|
|
61
62
|
hasChanges: boolean | undefined;
|
|
63
|
+
scope: PresetScope;
|
|
62
64
|
}[] | undefined;
|
|
63
65
|
id?: string | undefined;
|
|
64
66
|
title?: string | undefined;
|
|
@@ -2,7 +2,7 @@ import { EntityState } from '@reduxjs/toolkit';
|
|
|
2
2
|
import { WorkspacePresetListItem, WorkspacePresetAction, PresetScope, WorkspacePresetFromBE, WorkspaceViewsFromBE } from '../workspace/types';
|
|
3
3
|
import { ViewPresetError } from '../viewPresets/types';
|
|
4
4
|
export declare enum WorkspaceListErrorCategory {
|
|
5
|
-
AUTH = "AUTH"
|
|
5
|
+
AUTH = "AUTH",// Errors related to authentication and authorization
|
|
6
6
|
GENERIC = "GENERIC"
|
|
7
7
|
}
|
|
8
8
|
export declare enum WorkspaceListErrorType {
|
|
@@ -38,6 +38,7 @@ export type WorkspaceDialogView = {
|
|
|
38
38
|
title: string;
|
|
39
39
|
isSelected: boolean;
|
|
40
40
|
error?: ViewPresetError;
|
|
41
|
+
scope: PresetScope;
|
|
41
42
|
} & WorkspaceViewsFromBE;
|
|
42
43
|
export interface WorkspaceFormValues {
|
|
43
44
|
id?: string;
|
|
@@ -12,5 +12,3 @@ export declare function getEmptyMapWorkspace(t: TFunction): WorkspacePreset;
|
|
|
12
12
|
export declare const getEmptyWorkspacePreset: () => Omit<WorkspacePreset, 'title'>;
|
|
13
13
|
export declare const createCustomEmptyMapWorkspace: (emptyWorkspaceTitle: string, emptyMapWorkspaceTitle: string, customMapPreset?: MapPreset) => WorkspacePreset;
|
|
14
14
|
export declare const constructFilterParams: (filters: WorkspaceListFilter[], searchQuery: string) => FetchWorkspaceParams;
|
|
15
|
-
export declare const generateUID: () => string;
|
|
16
|
-
export declare const getGeneratedViewPresetTitle: (workspaceTitle: string, uid: string) => string;
|
package/src/lib/utils/utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { TFunction } from 'i18next';
|
|
2
2
|
export declare const getCleanSearchQuery: (searchQuery: string) => string;
|
|
3
3
|
export declare const getPresetTitle: (title: string, hasChanges: boolean, isNew: boolean, t: TFunction) => string;
|
|
4
|
+
export declare const setDocumentTitle: (workspaceTitle: string, appTitle?: string) => void;
|