@opengeoweb/core 12.10.0 → 12.12.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 +518 -354
- package/package.json +13 -10
- package/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +1 -0
- package/src/lib/components/ComponentsLookUp/componentsLookUp.stories.d.ts +1 -1
- package/src/lib/components/ConfigurableMapConnect/ConfigurableMapConnect.d.ts +1 -0
- package/src/lib/components/ConfigurableMapConnect/ConfigurableMapConnect.stories.d.ts +1 -1
- package/src/lib/components/EDR/EDRReduxStoreLayer.stories.d.ts +15 -0
- package/src/lib/components/EDR/TimeawareEDRLocation.stories.d.ts +11 -2
- package/src/lib/components/LanguageSelect/Languages.stories.d.ts +1 -1
- package/src/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.stories.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerManager.stories.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +1 -1
- package/src/lib/components/LayerManager/LayerManagerUtils.d.ts +0 -1
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectConnect.stories.d.ts +1 -1
- package/src/lib/components/LayerManager/OverlayersRow/OverlayersSelect.d.ts +11 -3
- package/src/lib/components/LayerManager/OverlayersRow/OverlayersSelectConnect.d.ts +4 -1
- package/src/lib/components/LocationSearch/LocationSearch.stories.d.ts +1 -1
- package/src/lib/components/LocationSearch/LocationSearchConnect.stories.d.ts +1 -1
- package/src/lib/components/LocationSearch/index.d.ts +1 -0
- package/src/lib/components/LocationSearch/types.d.ts +1 -0
- package/src/lib/components/MapViewConnect/OlMapViewConnect.d.ts +1 -0
- package/src/lib/components/SyncGroups/SimpleTimeSliderConnect.d.ts +5 -5
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/AutoUpdateButtonConnect.d.ts +4 -4
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/PlayButtonConnect.d.ts +3 -3
- package/src/lib/components/TimeSliderConnect/TimeSliderConnect.stories.d.ts +1 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderCurrentTimeBoxConnect.d.ts +2 -2
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTreeConnect.d.ts +4 -4
- package/src/lib/components/WMSLoader/WMSLoader.stories.d.ts +1 -1
- package/src/lib/index.d.ts +2 -0
- package/src/lib/utils/location-api/fakeApi.d.ts +13 -0
- package/src/lib/utils/storyUtils.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.12.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,22 +8,22 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "12.
|
|
11
|
+
"@opengeoweb/shared": "12.12.0",
|
|
12
12
|
"react-redux": "^9.2.0",
|
|
13
|
-
"@opengeoweb/store": "12.
|
|
14
|
-
"@opengeoweb/timeslider": "12.
|
|
13
|
+
"@opengeoweb/store": "12.12.0",
|
|
14
|
+
"@opengeoweb/timeslider": "12.12.0",
|
|
15
15
|
"@reduxjs/toolkit": "^2.6.1",
|
|
16
|
-
"@opengeoweb/webmap-react": "12.
|
|
17
|
-
"@opengeoweb/webmap": "12.
|
|
18
|
-
"@opengeoweb/theme": "12.
|
|
16
|
+
"@opengeoweb/webmap-react": "12.12.0",
|
|
17
|
+
"@opengeoweb/webmap": "12.12.0",
|
|
18
|
+
"@opengeoweb/theme": "12.12.0",
|
|
19
19
|
"axios": "^1.7.7",
|
|
20
|
-
"@opengeoweb/layer-select": "12.
|
|
20
|
+
"@opengeoweb/layer-select": "12.12.0",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
22
|
"ol": "^10.4.0",
|
|
23
23
|
"react-sortablejs": "^6.1.4",
|
|
24
24
|
"sortablejs": "^1.15.1",
|
|
25
25
|
"@mui/system": "^7.0.1",
|
|
26
|
-
"@opengeoweb/snackbar": "12.
|
|
26
|
+
"@opengeoweb/snackbar": "12.12.0",
|
|
27
27
|
"react-router-dom": "^6.21.0",
|
|
28
28
|
"react-draggable": "^4.4.6",
|
|
29
29
|
"i18next": "^25.0.1",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@mui/material": "^7.0.1",
|
|
33
33
|
"@sentry/react": "^8.34.0",
|
|
34
34
|
"@tanstack/react-query": "^5.69.2",
|
|
35
|
-
"@opengeoweb/api": "12.
|
|
35
|
+
"@opengeoweb/api": "12.12.0",
|
|
36
36
|
"@types/geojson": "^7946.0.14"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -40,6 +40,9 @@
|
|
|
40
40
|
"@emotion/react": "*",
|
|
41
41
|
"@emotion/styled": "*"
|
|
42
42
|
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"eslint-plugin-storybook": "9.0.17"
|
|
45
|
+
},
|
|
43
46
|
"module": "./index.esm.js",
|
|
44
47
|
"type": "module",
|
|
45
48
|
"main": "./index.esm.js",
|
|
@@ -20,6 +20,7 @@ export interface InitialMapProps {
|
|
|
20
20
|
mapControls?: React.ReactNode;
|
|
21
21
|
shouldDisplayDrawControls?: boolean;
|
|
22
22
|
displaySearchButtonInMap?: boolean;
|
|
23
|
+
displayDataExplorerButtonOnMap?: boolean;
|
|
23
24
|
}
|
|
24
25
|
export interface InitialTimeSeriesProps {
|
|
25
26
|
plotPreset: PlotPreset;
|
|
@@ -40,6 +40,7 @@ export interface ConfigurableMapConnectProps {
|
|
|
40
40
|
displayGetFeatureInfoButtonInMap?: boolean;
|
|
41
41
|
shouldDisplayDrawControls?: boolean;
|
|
42
42
|
displaySearchButtonInMap?: boolean;
|
|
43
|
+
displayDataExplorerButtonOnMap?: boolean;
|
|
43
44
|
children?: React.ReactNode;
|
|
44
45
|
mapControls?: React.ReactNode;
|
|
45
46
|
shouldDisablePrefetching?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { ConfigurableMapConnect } from './ConfigurableMapConnect';
|
|
4
4
|
declare const meta: Meta<typeof ConfigurableMapConnect>;
|
|
5
5
|
export default meta;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TimeAwareEDRLocationLayer } from '@opengeoweb/webmap-react';
|
|
3
|
+
import type { Meta } from '@storybook/react-webpack5';
|
|
4
|
+
declare const meta: Meta<typeof TimeAwareEDRLocationLayer>;
|
|
5
|
+
export default meta;
|
|
6
|
+
export declare const EDRReduxLayer: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
parameters: {
|
|
9
|
+
msw: {
|
|
10
|
+
handlers: {
|
|
11
|
+
locations: import("msw").HttpHandler[];
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
2
|
+
import type { Meta } from '@storybook/react-webpack5';
|
|
3
3
|
import { TimeAwareEDRLocationLayer } from '@opengeoweb/webmap-react';
|
|
4
4
|
declare const meta: Meta<typeof TimeAwareEDRLocationLayer>;
|
|
5
5
|
export default meta;
|
|
6
|
-
export declare const EDRLocationDefault:
|
|
6
|
+
export declare const EDRLocationDefault: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
parameters: {
|
|
9
|
+
msw: {
|
|
10
|
+
handlers: {
|
|
11
|
+
locations: import("msw").HttpHandler[];
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -61,6 +61,6 @@ interface LayerRowUnstyledProps {
|
|
|
61
61
|
collapsedColumns?: Record<string, boolean>;
|
|
62
62
|
}
|
|
63
63
|
declare const LayerRow: import("@emotion/styled").StyledComponent<LayerRowUnstyledProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
64
|
-
isEnabled?: boolean
|
|
64
|
+
isEnabled?: boolean;
|
|
65
65
|
}, {}, {}>;
|
|
66
66
|
export default LayerRow;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { LayerManagerConnect } from '.';
|
|
4
4
|
declare const meta: Meta<typeof LayerManagerConnect>;
|
|
5
5
|
export default meta;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { mapTypes } from '@opengeoweb/store';
|
|
3
2
|
import type { DimensionTooltipGenerator, SingleValueComponentProps } from './LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect';
|
|
4
3
|
import { Size, ToolbarButtonSettings } from './LayerManagerHeaderOptions';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import LayerManagerMapButtonConnect from '../LayerManagerMapButtonConnect';
|
|
3
3
|
declare const meta: Meta<typeof LayerManagerMapButtonConnect>;
|
|
4
4
|
export default meta;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
export interface OverLayer {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
2
5
|
interface OverlayersSelectProps {
|
|
3
|
-
|
|
4
|
-
|
|
6
|
+
mapId: string;
|
|
7
|
+
selectedOverlayer: OverLayer;
|
|
8
|
+
onChangeOverlayer: (mapId: string, selectedOverlayer: OverLayer) => void;
|
|
9
|
+
availableOverlayers?: {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
}[];
|
|
5
13
|
}
|
|
6
14
|
declare const OverlayersSelect: React.FC<OverlayersSelectProps>;
|
|
7
15
|
export default OverlayersSelect;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { StoryObj } from '@storybook/react/*';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: () => React.ReactElement
|
|
5
|
+
component: () => React.ReactElement;
|
|
6
6
|
parameters: {
|
|
7
7
|
docs: {
|
|
8
8
|
description: {
|
|
@@ -2,3 +2,4 @@ export { SearchControlButtonConnect } from './SearchControlButtonConnect';
|
|
|
2
2
|
export { LocationSearchConnect } from './LocationSearchConnect';
|
|
3
3
|
export { LocationSearch } from './LocationSearch';
|
|
4
4
|
export { MyMapLocation } from './MyMapLocation';
|
|
5
|
+
export * as LocationSearchTypes from './types';
|
|
@@ -9,11 +9,11 @@ interface SimpleTimeSliderConnectComponentProps {
|
|
|
9
9
|
}
|
|
10
10
|
export declare const SimpleTimeSliderConnect: import("react-redux").ConnectedComponent<React.FC<SimpleTimeSliderConnectComponentProps>, {
|
|
11
11
|
id: string;
|
|
12
|
-
timeValue?: string | null | undefined;
|
|
13
|
-
setTime?:
|
|
14
|
-
syncGroupAddSource?:
|
|
15
|
-
syncGroupRemoveSource?:
|
|
12
|
+
timeValue?: (string | null) | undefined;
|
|
13
|
+
setTime?: typeof genericActions.setTime | undefined;
|
|
14
|
+
syncGroupAddSource?: typeof genericActions.syncGroupAddSource | undefined;
|
|
15
|
+
syncGroupRemoveSource?: typeof genericActions.syncGroupRemoveSource | undefined;
|
|
16
16
|
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction> | null> | undefined;
|
|
17
|
-
store?: import("redux").Store
|
|
17
|
+
store?: import("redux").Store | undefined;
|
|
18
18
|
}>;
|
|
19
19
|
export {};
|
package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/AutoUpdateButtonConnect.d.ts
CHANGED
|
@@ -8,14 +8,14 @@ interface ConnectedAutoUpdateButtonProps {
|
|
|
8
8
|
export declare const AutoUpdateButtonConnect: import("react-redux").ConnectedComponent<import("react-redux").ConnectedComponent<({ mapId, isAutoUpdating, toggleAutoUpdate, }: ConnectedAutoUpdateButtonProps) => import("react/jsx-runtime").JSX.Element, {
|
|
9
9
|
mapId: string;
|
|
10
10
|
isAutoUpdating?: boolean | undefined;
|
|
11
|
-
toggleAutoUpdate?:
|
|
11
|
+
toggleAutoUpdate?: typeof mapActions.toggleAutoUpdate | undefined;
|
|
12
12
|
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction> | null> | undefined;
|
|
13
|
-
store?: import("redux").Store
|
|
13
|
+
store?: import("redux").Store | undefined;
|
|
14
14
|
}>, {
|
|
15
15
|
mapId: string;
|
|
16
16
|
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction> | null> | undefined;
|
|
17
|
-
store?: import("redux").Store
|
|
17
|
+
store?: import("redux").Store | undefined;
|
|
18
18
|
isAutoUpdating?: boolean | undefined;
|
|
19
|
-
toggleAutoUpdate?:
|
|
19
|
+
toggleAutoUpdate?: typeof mapActions.toggleAutoUpdate | undefined;
|
|
20
20
|
}>;
|
|
21
21
|
export {};
|
package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/PlayButtonConnect.d.ts
CHANGED
|
@@ -32,14 +32,14 @@ export declare const PlayButtonConnect: import("react-redux").ConnectedComponent
|
|
|
32
32
|
isAnimating?: boolean | undefined;
|
|
33
33
|
animationStartTime?: string | undefined;
|
|
34
34
|
animationEndTime?: string | undefined;
|
|
35
|
-
mapStartAnimation?:
|
|
36
|
-
mapStopAnimation?:
|
|
35
|
+
mapStartAnimation?: typeof mapActions.mapStartAnimation | undefined;
|
|
36
|
+
mapStopAnimation?: typeof mapActions.mapStopAnimation | undefined;
|
|
37
37
|
timeStep?: number | undefined;
|
|
38
38
|
linkedMapAnimationInfo?: {
|
|
39
39
|
isAnimating: boolean;
|
|
40
40
|
id: string;
|
|
41
41
|
} | undefined;
|
|
42
42
|
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction> | null> | undefined;
|
|
43
|
-
store?: import("redux").Store
|
|
43
|
+
store?: import("redux").Store | undefined;
|
|
44
44
|
}>;
|
|
45
45
|
export {};
|
|
@@ -22,8 +22,8 @@ export declare const TimeSliderCurrentTimeBoxConnect: import("react-redux").Conn
|
|
|
22
22
|
secondsPerPx?: number | undefined;
|
|
23
23
|
span?: number | undefined;
|
|
24
24
|
isAutoUpdating?: boolean | undefined;
|
|
25
|
-
setCenterTime?:
|
|
25
|
+
setCenterTime?: typeof mapActions.setTimeSliderCenterTime | undefined;
|
|
26
26
|
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction> | null> | undefined;
|
|
27
|
-
store?: import("redux").Store
|
|
27
|
+
store?: import("redux").Store | undefined;
|
|
28
28
|
}>;
|
|
29
29
|
export {};
|
|
@@ -14,11 +14,11 @@ declare const WMSLayerTreeConnect: import("react-redux").ConnectedComponent<Reac
|
|
|
14
14
|
service: serviceTypes.InitialService;
|
|
15
15
|
mapId: string;
|
|
16
16
|
layerType?: LayerType | undefined;
|
|
17
|
-
addLayer?:
|
|
18
|
-
setBaseLayers?:
|
|
19
|
-
addAvailableBaseLayer?:
|
|
17
|
+
addLayer?: typeof layerActions.addLayer | undefined;
|
|
18
|
+
setBaseLayers?: typeof layerActions.setBaseLayers | undefined;
|
|
19
|
+
addAvailableBaseLayer?: typeof layerActions.addAvailableBaseLayer | undefined;
|
|
20
20
|
loadedLayers?: layerTypes.Layer[] | undefined;
|
|
21
21
|
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction> | null> | undefined;
|
|
22
|
-
store?: import("redux").Store
|
|
22
|
+
store?: import("redux").Store | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
export default WMSLayerTreeConnect;
|
package/src/lib/index.d.ts
CHANGED
|
@@ -19,4 +19,6 @@ export * from './components/TimeSliderConnect';
|
|
|
19
19
|
export * from './components/LayerInfoConnect';
|
|
20
20
|
export * from './components/SentryRecordButton';
|
|
21
21
|
export * from './components/LanguageSelect';
|
|
22
|
+
export { useLocationDetail, useLocationList } from './utils/location-api/hooks';
|
|
23
|
+
export { fakeLocationDetailList, fakeLocationList, locationApiEndpoints, } from './utils/location-api/fakeApi';
|
|
22
24
|
export * as storyUtils from './utils/storyUtils';
|
|
@@ -10,6 +10,7 @@ export declare const fakeLocationDetailList: ({
|
|
|
10
10
|
lon: number;
|
|
11
11
|
lat: number;
|
|
12
12
|
geometry?: undefined;
|
|
13
|
+
bbox?: undefined;
|
|
13
14
|
} | {
|
|
14
15
|
lat: number;
|
|
15
16
|
lon: number;
|
|
@@ -24,6 +25,7 @@ export declare const fakeLocationDetailList: ({
|
|
|
24
25
|
};
|
|
25
26
|
properties?: undefined;
|
|
26
27
|
};
|
|
28
|
+
bbox?: undefined;
|
|
27
29
|
} | {
|
|
28
30
|
id: string;
|
|
29
31
|
name: string;
|
|
@@ -38,6 +40,7 @@ export declare const fakeLocationDetailList: ({
|
|
|
38
40
|
coordinates: number[][];
|
|
39
41
|
};
|
|
40
42
|
};
|
|
43
|
+
bbox?: undefined;
|
|
41
44
|
} | {
|
|
42
45
|
id: string;
|
|
43
46
|
name: string;
|
|
@@ -52,6 +55,7 @@ export declare const fakeLocationDetailList: ({
|
|
|
52
55
|
};
|
|
53
56
|
properties: {};
|
|
54
57
|
};
|
|
58
|
+
bbox?: undefined;
|
|
55
59
|
} | {
|
|
56
60
|
id: string;
|
|
57
61
|
name: string;
|
|
@@ -66,5 +70,14 @@ export declare const fakeLocationDetailList: ({
|
|
|
66
70
|
};
|
|
67
71
|
properties: {};
|
|
68
72
|
};
|
|
73
|
+
bbox?: undefined;
|
|
74
|
+
} | {
|
|
75
|
+
id: string;
|
|
76
|
+
name: string;
|
|
77
|
+
source: string;
|
|
78
|
+
lat: number;
|
|
79
|
+
lon: number;
|
|
80
|
+
bbox: number[];
|
|
81
|
+
geometry?: undefined;
|
|
69
82
|
})[];
|
|
70
83
|
export declare const locationApiEndpoints: import("msw").HttpHandler[];
|