@opengeoweb/workspace 12.6.0 → 12.8.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 +138 -53
- package/package.json +16 -16
- package/src/lib/api/viewpresets-api/api.d.ts +1 -0
- package/src/lib/api/viewpresets-api/fakeApi.d.ts +1 -0
- package/src/lib/api/viewpresets-api/hooks.d.ts +7 -0
- package/src/lib/components/ViewPresetMenu/ViewPresetsError.stories.d.ts +7 -0
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialog.d.ts +3 -0
- package/src/lib/components/ViewPresetsFormDialog/ViewPresetsFormDialog.stories.d.ts +11 -1
- package/src/lib/components/WorkspaceView/WorkspaceControls.d.ts +1 -0
- package/src/lib/store/viewPresetsList/selectors.d.ts +1 -1
- package/src/lib/store/workspace/selectors.d.ts +36 -496
- package/src/lib/store/workspace/types.d.ts +0 -1
- package/src/lib/store/workspaceList/selectors.d.ts +3 -2
- package/src/lib/utils/api.d.ts +0 -1
- /package/{index.esm.d.ts → index.d.ts} +0 -0
|
@@ -125,7 +125,6 @@ export interface WorkspaceComponentLookupPayload {
|
|
|
125
125
|
id: string;
|
|
126
126
|
title?: string;
|
|
127
127
|
initialProps: unknown;
|
|
128
|
-
connectedMap?: string;
|
|
129
128
|
}
|
|
130
129
|
export type WorkspaceLookupFunctionType = (payload: WorkspaceComponentLookupPayload) => React.ReactElement;
|
|
131
130
|
export interface ViewPresetListItem {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { SystemScope } from '@opengeoweb/shared';
|
|
2
2
|
import { AppStore } from '../types';
|
|
3
3
|
import { ViewPresetState } from '../viewPresets/types';
|
|
4
|
-
import { WorkspaceState } from '../workspace/types';
|
|
4
|
+
import { WorkspacePresetListItem, WorkspaceState } from '../workspace/types';
|
|
5
5
|
import { WorkspaceListState } from './types';
|
|
6
6
|
export declare const getWorkspaceListStore: (store: AppStore) => WorkspaceListState;
|
|
7
|
-
export declare const getWorkspaceList: (state: AppStore) =>
|
|
7
|
+
export declare const getWorkspaceList: (state: AppStore) => WorkspacePresetListItem[];
|
|
8
|
+
export declare const getWorkspacePresetFromList: (store: AppStore, id: string) => WorkspacePresetListItem;
|
|
8
9
|
export declare const getIsWorkspaceListFetching: ((state: AppStore) => boolean) & {
|
|
9
10
|
clearCache: () => void;
|
|
10
11
|
resultsCount: () => number;
|
package/src/lib/utils/api.d.ts
CHANGED
|
@@ -22,6 +22,5 @@ export interface PresetsApi {
|
|
|
22
22
|
}>;
|
|
23
23
|
saveViewPreset: (viewPresetId: string, data: ViewPreset) => Promise<void>;
|
|
24
24
|
saveViewPresetAs: (data: ViewPreset) => Promise<string>;
|
|
25
|
-
deleteViewPreset: (viewPresetId: string) => Promise<void>;
|
|
26
25
|
}
|
|
27
26
|
export declare const createApi: (props: CreateApiProps) => PresetsApi;
|
|
File without changes
|