@opengeoweb/core 12.5.0 → 12.7.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.
Files changed (33) hide show
  1. package/index.esm.js +2679 -3275
  2. package/package.json +10 -10
  3. package/src/lib/components/ComponentsLookUp/componentsLookUp.d.ts +1 -2
  4. package/src/lib/components/ConfigurableMapConnect/ConfigurableMapConnect.d.ts +0 -1
  5. package/src/lib/components/EDR/TimeawareEDRLocation.stories.d.ts +6 -0
  6. package/src/lib/components/FeatureInfo/utils.d.ts +2 -3
  7. package/src/lib/components/MapViewConnect/MapViewConnect.DoubleMap.stories.d.ts +1 -1
  8. package/src/lib/components/MapViewConnect/MapViewConnect.Errors.stories.d.ts +1 -1
  9. package/src/lib/components/MapViewConnect/MapViewConnect.InitialBBoxAndWithout.stories.d.ts +1 -1
  10. package/src/lib/components/MapViewConnect/MapViewConnect.LayerActions.stories.d.ts +1 -1
  11. package/src/lib/components/MapViewConnect/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +1 -1
  12. package/src/lib/components/MapViewConnect/MapViewConnect.MapPin.stories.d.ts +1 -1
  13. package/src/lib/components/MapViewConnect/MapViewConnect.MultiMapLayerManager.stories.d.ts +1 -1
  14. package/src/lib/components/MapViewConnect/MapViewConnect.SelectorTest.stories.d.ts +2 -2
  15. package/src/lib/components/MapViewConnect/MapViewConnect.SetBaseLayers.stories.d.ts +1 -1
  16. package/src/lib/components/MapViewConnect/MapViewConnect.ToggleControls.stories.d.ts +1 -1
  17. package/src/lib/components/MapViewConnect/OlMapViewConnect.d.ts +10 -1
  18. package/src/lib/components/MapViewConnect/index.d.ts +0 -1
  19. package/src/lib/index.d.ts +1 -1
  20. package/src/lib/utils/storyUtils.d.ts +33 -0
  21. package/src/lib/components/FeatureInfo/utils.spec.d.ts +0 -1
  22. package/src/lib/components/MapControlsConnect/ZoomControlsConnect.d.ts +0 -6
  23. package/src/lib/components/MapControlsConnect/ZoomControlsConnect.spec.d.ts +0 -1
  24. package/src/lib/components/MapControlsConnect/index.d.ts +0 -1
  25. package/src/lib/components/MapViewConnect/MapViewConnect.FeatureLayers.stories.d.ts +0 -8
  26. package/src/lib/components/MapViewConnect/MapViewConnect.MapModuleOverDefaultMap.stories.d.ts +0 -8
  27. package/src/lib/components/MapViewConnect/MapViewConnect.d.ts +0 -41
  28. package/src/lib/components/MapViewConnect/MapViewConnect.spec.d.ts +0 -1
  29. package/src/lib/components/MapViewConnect/types.d.ts +0 -8
  30. package/src/lib/components/MapViewConnect/useKeyboardZoomAndPan.d.ts +0 -3
  31. package/src/lib/components/MapViewConnect/useKeyboardZoomAndPan.spec.d.ts +0 -1
  32. package/src/lib/components/MapViewConnect/useTouchZoomPan.d.ts +0 -1
  33. package/src/lib/components/MapViewConnect/useTouchZoomPan.spec.d.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "12.5.0",
3
+ "version": "12.7.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.5.0",
11
+ "@opengeoweb/shared": "12.7.0",
12
12
  "react-redux": "^9.2.0",
13
- "@opengeoweb/store": "12.5.0",
14
- "@opengeoweb/timeslider": "12.5.0",
13
+ "@opengeoweb/store": "12.7.0",
14
+ "@opengeoweb/timeslider": "12.7.0",
15
15
  "@reduxjs/toolkit": "^2.6.1",
16
- "@opengeoweb/webmap-react": "12.5.0",
17
- "@opengeoweb/webmap": "12.5.0",
18
- "@opengeoweb/theme": "12.5.0",
16
+ "@opengeoweb/webmap-react": "12.7.0",
17
+ "@opengeoweb/webmap": "12.7.0",
18
+ "@opengeoweb/theme": "12.7.0",
19
19
  "axios": "^1.7.7",
20
- "@opengeoweb/layer-select": "12.5.0",
20
+ "@opengeoweb/layer-select": "12.7.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.5.0",
26
+ "@opengeoweb/snackbar": "12.7.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.5.0"
35
+ "@opengeoweb/api": "12.7.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "react": "18",
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { mapTypes } from '@opengeoweb/store';
3
- import { PlotPreset, TimeSeriesPresetLocation, TimeSeriesService } from '@opengeoweb/shared';
3
+ import { PlotPreset, TimeSeriesService } from '@opengeoweb/shared';
4
4
  import { InitialHarmTempAndPrecipProps } from '../MultiMapViewConnect/HarmoniePresets';
5
5
  import { ModelRunIntervalProps } from '../MultiMapViewConnect/ModelRunInterval';
6
6
  interface InitialMultiMapProps {
@@ -24,7 +24,6 @@ export interface InitialMapProps {
24
24
  export interface InitialTimeSeriesProps {
25
25
  plotPreset: PlotPreset;
26
26
  services: TimeSeriesService[];
27
- predefinedLocations?: TimeSeriesPresetLocation[];
28
27
  hideLocationMarkers?: boolean;
29
28
  }
30
29
  export type InitialProps = InitialMapProps | InitialMultiMapProps | InitialHarmTempAndPrecipProps | ModelRunIntervalProps | mapTypes.MapPresetInitialProps | InitialSliderProps | InitialTimeSeriesProps | Record<string, unknown>;
@@ -43,6 +43,5 @@ export interface ConfigurableMapConnectProps {
43
43
  children?: React.ReactNode;
44
44
  mapControls?: React.ReactNode;
45
45
  shouldDisablePrefetching?: boolean;
46
- useOl?: boolean;
47
46
  }
48
47
  export declare const ConfigurableMapConnect: React.FC<ConfigurableMapConnectProps>;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import type { Meta } from '@storybook/react';
3
+ import { TimeAwareEDRLocationLayer } from '@opengeoweb/webmap-react';
4
+ declare const meta: Meta<typeof TimeAwareEDRLocationLayer>;
5
+ export default meta;
6
+ export declare const EDRLocationDefault: () => React.ReactElement;
@@ -1,5 +1,4 @@
1
1
  import { layerTypes } from '@opengeoweb/store';
2
- import { IWMJSMap } from '@opengeoweb/webmap';
3
2
  import { MapLocation } from '@opengeoweb/webmap-react';
4
3
  export interface GFIResult {
5
4
  data: string;
@@ -10,11 +9,11 @@ export interface GFILayer {
10
9
  url: string;
11
10
  title: string;
12
11
  }
13
- export declare const getFeatureInfoUrl: (layer: layerTypes.Layer, wmjsMap: IWMJSMap | undefined, mapPinLocation: MapLocation | null) => string | undefined;
12
+ export declare const getFeatureInfoUrl: (layer: layerTypes.Layer, mapPinLocation: MapLocation | null) => string | undefined;
14
13
  /**
15
14
  * Make a list of GFI Layers to display.
16
15
  * @param layers
17
16
  * @param mapId
18
17
  * @returns
19
18
  */
20
- export declare const getLayersToUpdate: (mapPinLocation: MapLocation | null, layers: layerTypes.Layer[], mapId: string) => GFILayer[];
19
+ export declare const getLayersToUpdate: (mapPinLocation: MapLocation | null, layers: layerTypes.Layer[]) => GFILayer[];
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
4
+ component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
5
5
  tags: string[];
6
6
  };
7
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
4
+ component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
5
5
  tags: string[];
6
6
  };
7
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
4
+ component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
5
5
  tags: string[];
6
6
  };
7
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
4
+ component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
5
5
  tags: string[];
6
6
  };
7
7
  export default _default;
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { layerActions, layerTypes } from '@opengeoweb/store';
3
3
  declare const _default: {
4
4
  title: string;
5
- component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
5
+ component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
6
6
  tags: string[];
7
7
  };
8
8
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
4
+ component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
5
5
  tags: string[];
6
6
  };
7
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
4
+ component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
5
5
  tags: string[];
6
6
  };
7
7
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import { MapViewConnectProps } from './MapViewConnect';
2
+ import { OlMapViewConnectProps } from './OlMapViewConnect';
3
3
  declare const _default: {
4
4
  title: string;
5
- component: React.FC<MapViewConnectProps>;
5
+ component: React.FC<OlMapViewConnectProps>;
6
6
  tags: string[];
7
7
  };
8
8
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
4
+ component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
5
5
  tags: string[];
6
6
  };
7
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
4
+ component: React.FC<import("./OlMapViewConnect").OlMapViewConnectProps>;
5
5
  tags: string[];
6
6
  };
7
7
  export default _default;
@@ -1,7 +1,16 @@
1
1
  import * as React from 'react';
2
2
  import { Bbox, TileServerSettings } from '@opengeoweb/webmap';
3
3
  import { Source } from '@opengeoweb/shared';
4
- import { MapControlsProps } from './MapViewConnect';
4
+ export interface MapControlsProps {
5
+ mapControlsPositionTop?: number;
6
+ search?: boolean;
7
+ zoomControls?: boolean;
8
+ layerManagerAndLegend?: boolean;
9
+ multiLegend?: boolean;
10
+ dimensionSelect?: boolean;
11
+ getFeatureInfo?: boolean;
12
+ additionalMapControls?: React.ReactNode;
13
+ }
5
14
  export interface OlMapViewConnectProps {
6
15
  mapId: string;
7
16
  children?: React.ReactNode;
@@ -1,4 +1,3 @@
1
- export { default as MapViewConnect } from './MapViewConnect';
2
1
  export { default as OlMapViewConnect } from './OlMapViewConnect';
3
2
  export * from './olMapUtils';
4
3
  export * from './useGetOpenLayersView';
@@ -7,7 +7,6 @@ export * from './components/MultiMapViewConnect/MultiMapViewConnect';
7
7
  export * from './components/MultiMapViewConnect/HarmoniePresets';
8
8
  export * from './components/MapViewConnect';
9
9
  export { LegendConnect, LegendMapButtonConnect, } from './components/LegendConnect';
10
- export { ZoomControlConnect } from './components/MapControlsConnect';
11
10
  export { LayerManagerConnect, LayerManagerHeaderOptions, LayerManagerDescriptionRow, LayerManagerBaseLayerRow, LayerManagerLayerContainerRow, LayerManagerMapButtonConnect, LayerManager, useFetchServices, };
12
11
  export { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect, };
13
12
  export * as testLayers from './utils/testLayers';
@@ -20,3 +19,4 @@ export * from './components/TimeSliderConnect';
20
19
  export * from './components/LayerInfoConnect';
21
20
  export * from './components/SentryRecordButton';
22
21
  export * from './components/LanguageSelect';
22
+ export * as storyUtils from './utils/storyUtils';
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ import { layerTypes, mapTypes } from '@opengeoweb/store';
3
+ export declare const initialBbox: {
4
+ srs: string;
5
+ bbox: {
6
+ left: number;
7
+ bottom: number;
8
+ right: number;
9
+ top: number;
10
+ };
11
+ };
12
+ interface UseDefaultMapSettingsProps {
13
+ mapId?: string;
14
+ layers?: layerTypes.Layer[];
15
+ baseLayers?: layerTypes.Layer[];
16
+ bbox?: mapTypes.Bbox;
17
+ srs?: string;
18
+ shouldAutoUpdate?: boolean;
19
+ }
20
+ export declare const useDefaultMapSettings: (props?: UseDefaultMapSettingsProps) => void;
21
+ interface ExampleLayer {
22
+ title: string;
23
+ layers: layerTypes.Layer[];
24
+ }
25
+ interface ActionCardProps {
26
+ onClickBtn?: (action: ExampleLayer) => void;
27
+ name: string;
28
+ description: string;
29
+ exampleLayers?: ExampleLayer[];
30
+ children?: React.ReactNode;
31
+ }
32
+ export declare const ActionCard: React.FC<ActionCardProps>;
33
+ export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- interface ZoomControlConnectProps {
3
- mapId?: string;
4
- }
5
- declare const ZoomControlConnect: React.FC<ZoomControlConnectProps>;
6
- export default ZoomControlConnect;
@@ -1 +0,0 @@
1
- export { default as ZoomControlConnect } from './ZoomControlsConnect';
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
5
- tags: string[];
6
- };
7
- export default _default;
8
- export declare const FeatureLayers: () => React.ReactElement;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./MapViewConnect").MapViewConnectProps>;
5
- tags: string[];
6
- };
7
- export default _default;
8
- export declare const MapModuleOverDefaultMap: () => React.ReactElement;
@@ -1,41 +0,0 @@
1
- import * as React from 'react';
2
- import { Bbox } from '@opengeoweb/webmap';
3
- import { MapViewProps } from '@opengeoweb/webmap-react';
4
- import { Source } from '@opengeoweb/shared';
5
- export interface MapControlsProps {
6
- mapControlsPositionTop?: number;
7
- search?: boolean;
8
- zoomControls?: boolean;
9
- layerManagerAndLegend?: boolean;
10
- multiLegend?: boolean;
11
- dimensionSelect?: boolean;
12
- getFeatureInfo?: boolean;
13
- additionalMapControls?: React.ReactNode;
14
- }
15
- export interface MapViewConnectProps extends MapViewProps {
16
- mapId: string;
17
- displayTimeInMap?: boolean;
18
- controls?: MapControlsProps;
19
- showScaleBar?: boolean;
20
- children?: React.ReactNode;
21
- showLayerInfo?: boolean;
22
- passiveMap?: boolean;
23
- initialBbox?: Bbox;
24
- source?: Source;
25
- }
26
- export declare const ORIGIN_REACTMAPVIEWCONNECT_ONMAPCHANGEDIMENSION = "ORIGIN_REACTMAPVIEWCONNECT_ONMAPCHANGEDIMENSION";
27
- export declare const ORIGIN_REACTMAPVIEWCONNECT_ONUPDATELAYERINFO = "ORIGIN_REACTMAPVIEWCONNECT_ONUPDATELAYERINFO";
28
- /**
29
- * Connected component used to display the map and selected layers.
30
- * Includes options to disable the map controls and legend.
31
- *
32
- * Expects the following props:
33
- * @param {string} mapId mapId: string - Id of the map
34
- * @param {object} [controls.zoomControls] **optional** controls: object - toggle the map controls, zoomControls defaults to true
35
- * @param {boolean} [displayTimeInMap] **optional** displayTimeInMap: boolean, toggles the mapTime, defaults to true
36
- * @param {boolean} [showScaleBar] **optional** showScaleBar: boolean, toggles the scaleBar, defaults to true
37
- * @example
38
- * ```<MapViewConnect mapId={mapId} controls={{ zoomControls: false }} displayTimeInMap={false} showScaleBar={false}/>```
39
- */
40
- declare const MapViewConnect: React.FC<MapViewConnectProps>;
41
- export default MapViewConnect;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { ReactMapViewProps } from '@opengeoweb/webmap-react';
3
- export interface MapViewProps extends ReactMapViewProps {
4
- children?: React.ReactNode;
5
- controls?: {
6
- zoomControls?: boolean;
7
- };
8
- }
@@ -1,3 +0,0 @@
1
- export declare const isDialogOpen: (mapRef: HTMLElement | null) => boolean;
2
- export declare const isMapKeyboardControlsAllowed: (target: Element, mapRef: HTMLElement | null) => boolean;
3
- export declare const useKeyboardZoomAndPan: (mapIsActive: boolean, mapId: string, mapRef: HTMLElement | null) => void;
@@ -1 +0,0 @@
1
- export declare const useTouchZoomPan: (mapIsActive: boolean, mapId: string) => void;