@opengeoweb/workspace 4.22.1 → 5.0.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.js +401 -158
- package/package.json +10 -9
- package/src/lib/Workspace.stories.d.ts +1 -0
- package/src/lib/components/Providers/Providers.d.ts +13 -0
- package/src/lib/components/WorkspaceOptions/WorkspaceOptions.d.ts +1 -0
- package/src/lib/components/WorkspacePresetsFormDialog/WorkspacePresetsFormDialog.d.ts +1 -0
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectList.d.ts +1 -0
- package/src/lib/components/WorkspaceSelectList/WorkspaceSelectListRow.d.ts +2 -1
- package/src/lib/store/viewPresets/reducer.d.ts +2 -2
- package/src/lib/store/viewPresets/selectors.d.ts +1 -1
- package/src/lib/store/viewPresetsList/selectors.d.ts +1 -1
- package/src/lib/store/workspace/reducer.d.ts +14 -13
- package/src/lib/store/workspace/selectors.d.ts +156 -126
- package/src/lib/store/workspace/types.d.ts +2 -0
- package/src/lib/store/workspace/utils.d.ts +2 -2
- package/src/lib/store/workspaceList/sagas.d.ts +12 -6
- package/src/lib/store/workspaceList/types.d.ts +2 -0
- package/src/lib/store/workspaceList/utils.d.ts +2 -0
- package/src/lib/storyUtils/StoryWrapper.d.ts +2 -1
- package/src/lib/utils/fakeApi.d.ts +0 -1
- package/src/lib/utils/routes.d.ts +1 -1
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
2
|
import { workspaceListActions } from './reducer';
|
|
3
|
+
import { ViewPresetEntity } from '../viewPresets/types';
|
|
3
4
|
export declare const emptyWorkspaceBEData: {
|
|
4
5
|
views: {
|
|
5
6
|
mosaicNodeId: string;
|
|
6
7
|
viewPresetId: string;
|
|
7
8
|
}[];
|
|
8
|
-
id?: string;
|
|
9
|
+
id?: string | undefined;
|
|
9
10
|
title: string;
|
|
10
|
-
syncGroups?: import("../workspace/types").WorkspaceSyncGroup[];
|
|
11
|
-
viewType?: import("../workspace/types").ViewType;
|
|
11
|
+
syncGroups?: import("../workspace/types").WorkspaceSyncGroup[] | undefined;
|
|
12
|
+
viewType?: import("../workspace/types").ViewType | undefined;
|
|
12
13
|
mosaicNode: import("react-mosaic-component").MosaicNode<string>;
|
|
13
|
-
minimumPaneSizePercentage?: number;
|
|
14
|
-
scope?: import("../workspace/types").PresetScope;
|
|
15
|
-
abstract?: string;
|
|
14
|
+
minimumPaneSizePercentage?: number | undefined;
|
|
15
|
+
scope?: import("../workspace/types").PresetScope | undefined;
|
|
16
|
+
abstract?: string | undefined;
|
|
16
17
|
};
|
|
17
18
|
export declare function fetchWorkspaceListSaga({ payload: workspaceFilterParams, }: ReturnType<typeof workspaceListActions.fetchWorkspaceList>): SagaIterator;
|
|
18
19
|
export declare function onSuccessWorkspacePresetsActionSaga({ payload, }: ReturnType<typeof workspaceListActions.onSuccessWorkspacePresetAction>): SagaIterator;
|
|
20
|
+
export declare function saveAllViewPresetSaga(viewPresetEntity: ViewPresetEntity, workspaceTitle: string): SagaIterator<{
|
|
21
|
+
mosaicNodeId: string;
|
|
22
|
+
viewPresetId: string;
|
|
23
|
+
title: string;
|
|
24
|
+
} | string>;
|
|
19
25
|
export declare function submitFormWorkspaceDialogSaga({ payload, }: ReturnType<typeof workspaceListActions.submitFormWorkspaceActionDialogOptions>): SagaIterator;
|
|
20
26
|
export declare function rootSaga(): SagaIterator;
|
|
21
27
|
export default rootSaga;
|
|
@@ -23,6 +23,7 @@ export declare type WorkspacePresetFormValues = {
|
|
|
23
23
|
title?: string;
|
|
24
24
|
abstract?: string;
|
|
25
25
|
scope?: PresetScope;
|
|
26
|
+
id?: string;
|
|
26
27
|
} | WorkspacePresetFromBE;
|
|
27
28
|
export interface WorkspaceActionDialogType {
|
|
28
29
|
action: WorkspacePresetAction;
|
|
@@ -66,6 +67,7 @@ export interface OnSuccesWorkspacePresetActionPayload {
|
|
|
66
67
|
workspaceId: string;
|
|
67
68
|
action: WorkspacePresetAction;
|
|
68
69
|
title: string;
|
|
70
|
+
abstract?: string;
|
|
69
71
|
}
|
|
70
72
|
export interface OnErrorWorkspacePresetActionPayload {
|
|
71
73
|
error: WorkspaceListError;
|
|
@@ -4,3 +4,5 @@ export declare const getSnackbarMessage: (action: WorkspacePresetAction, title:
|
|
|
4
4
|
export declare const emptyMapWorkspace: WorkspacePreset;
|
|
5
5
|
export declare const getCleanSearchQuery: (searchQuery: string) => string;
|
|
6
6
|
export declare const constructFilterParams: (filters: WorkspaceListFilter[], searchQuery: string) => FetchWorkspaceParams;
|
|
7
|
+
export declare const generateUID: () => string;
|
|
8
|
+
export declare const getGeneratedViewPresetTitle: (workspaceTitle: string, uid: string) => string;
|
|
@@ -5,6 +5,7 @@ interface StoryWrapperProps {
|
|
|
5
5
|
isSnapshot?: boolean;
|
|
6
6
|
createApi?: () => void;
|
|
7
7
|
workspaceId?: string;
|
|
8
|
+
isLoggedIn?: boolean;
|
|
8
9
|
}
|
|
9
|
-
export declare const StoryWrapper: ({ theme, isSnapshot, createApi, workspaceId, }: StoryWrapperProps) => React.ReactElement;
|
|
10
|
+
export declare const StoryWrapper: ({ theme, isSnapshot, createApi, workspaceId, isLoggedIn, }: StoryWrapperProps) => React.ReactElement;
|
|
10
11
|
export {};
|
|
@@ -8,4 +8,3 @@ export declare const extractViewPresetFromJSON: (viewPresetId: string) => ViewPr
|
|
|
8
8
|
export declare const filterWorkspacePresetList: (params: FetchWorkspaceParams) => WorkspacePresetListItem[];
|
|
9
9
|
export declare const sortViewPresets: (viewPresets: ViewPresetListItem[]) => ViewPresetListItem[];
|
|
10
10
|
export declare const createApi: () => PresetsApi;
|
|
11
|
-
export declare const createApiWithoutSave: () => PresetsApi;
|
|
@@ -4,5 +4,5 @@ declare type WorkspaceRoutes = {
|
|
|
4
4
|
workspaceDetail: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const routes: WorkspaceRoutes;
|
|
7
|
-
export declare const getWorkspaceRouteUrl: (workspaceId?: string) => string;
|
|
7
|
+
export declare const getWorkspaceRouteUrl: (workspaceId?: string | undefined) => string;
|
|
8
8
|
export {};
|