@opengeoweb/core 12.1.1 → 12.2.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 (23) hide show
  1. package/index.esm.js +347 -293
  2. package/package.json +12 -12
  3. package/src/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.stories.d.ts +7 -0
  4. package/src/lib/components/{Search/SearchDialog.d.ts → LocationSearch/LocationSearch.d.ts} +2 -2
  5. package/src/lib/components/LocationSearch/LocationSearch.stories.d.ts +7 -0
  6. package/src/lib/components/LocationSearch/LocationSearchConnect.d.ts +5 -0
  7. package/src/lib/components/LocationSearch/LocationSearchConnect.stories.d.ts +16 -0
  8. package/src/lib/components/{Search → LocationSearch}/index.d.ts +2 -2
  9. package/src/lib/components/MapViewConnect/OlMapViewConnect.d.ts +15 -6
  10. package/src/lib/components/WMSLoader/WMSLoader.stories.d.ts +5 -0
  11. package/src/lib/index.d.ts +1 -1
  12. package/src/lib/utils/jsonPresetFilter.d.ts +3 -1
  13. package/src/lib/utils/location-api/api.d.ts +1 -1
  14. package/src/lib/utils/location-api/hooks.d.ts +1 -1
  15. package/src/lib/components/Search/SearchDialog.stories.d.ts +0 -7
  16. package/src/lib/components/Search/SearchDialogConnect.d.ts +0 -5
  17. package/src/lib/components/Search/SearchDialogConnect.stories.d.ts +0 -11
  18. /package/src/lib/components/{Search/MyMapLocation.spec.d.ts → LocationSearch/LocationSearchConnect.spec.d.ts} +0 -0
  19. /package/src/lib/components/{Search → LocationSearch}/MyMapLocation.d.ts +0 -0
  20. /package/src/lib/components/{Search/SearchDialogConnect.spec.d.ts → LocationSearch/MyMapLocation.spec.d.ts} +0 -0
  21. /package/src/lib/components/{Search → LocationSearch}/SearchControlButtonConnect.d.ts +0 -0
  22. /package/src/lib/components/{Search → LocationSearch}/types.d.ts +0 -0
  23. /package/src/lib/components/{Search → LocationSearch}/utils.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "12.1.1",
3
+ "version": "12.2.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.1.1",
11
+ "@opengeoweb/shared": "12.2.0",
12
12
  "react-redux": "^8.1.3",
13
- "@opengeoweb/store": "12.1.1",
14
- "@opengeoweb/timeslider": "12.1.1",
13
+ "@opengeoweb/store": "12.2.0",
14
+ "@opengeoweb/timeslider": "12.2.0",
15
15
  "@reduxjs/toolkit": "^1.9.7",
16
- "@opengeoweb/webmap-react": "12.1.1",
17
- "@opengeoweb/webmap": "12.1.1",
18
- "@opengeoweb/theme": "12.1.1",
16
+ "@opengeoweb/webmap-react": "12.2.0",
17
+ "@opengeoweb/webmap": "12.2.0",
18
+ "@opengeoweb/theme": "12.2.0",
19
19
  "axios": "^1.7.7",
20
- "@opengeoweb/layer-select": "12.1.1",
20
+ "@opengeoweb/layer-select": "12.2.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": "^6.1.1",
26
- "@opengeoweb/snackbar": "12.1.1",
26
+ "@opengeoweb/snackbar": "12.2.0",
27
27
  "react-router-dom": "^6.21.0",
28
28
  "react-draggable": "^4.4.6",
29
29
  "i18next": "^23.11.5",
@@ -31,9 +31,9 @@
31
31
  "dompurify": "^3.0.6",
32
32
  "@mui/material": "^6.1.1",
33
33
  "@sentry/react": "^8.34.0",
34
- "@opengeoweb/authentication": "12.1.1",
35
- "@tanstack/react-query": "^5.62.7",
36
- "@opengeoweb/api": "12.1.1"
34
+ "@opengeoweb/authentication": "12.2.0",
35
+ "@tanstack/react-query": "^5.69.2",
36
+ "@opengeoweb/api": "12.2.0"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": "18",
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import AddLayersPopup from './AddLayersPopup';
3
+ declare const meta: Meta<typeof AddLayersPopup>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AddLayersPopup>;
6
+ export declare const Component: Story;
7
+ export declare const ComponentDark: Story;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { LocationDetail } from './types';
3
- export interface SearchDialogProps {
3
+ export interface LocationSearchProps {
4
4
  isOpen: boolean;
5
5
  mapId?: string;
6
6
  onSelectLocation?: (location?: LocationDetail) => void;
7
7
  onUpdateMyLocation?: (location?: LocationDetail) => void;
8
8
  isMyLocationSelected?: boolean;
9
9
  }
10
- export declare const SearchDialog: React.FC<SearchDialogProps>;
10
+ export declare const LocationSearch: React.FC<LocationSearchProps>;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { LocationSearch } from './LocationSearch';
3
+ declare const meta: Meta<typeof LocationSearch>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof LocationSearch>;
6
+ export declare const LocationSearchLight: Story;
7
+ export declare const LocationSearchDark: Story;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface LocationSearchConnectProps {
3
+ mapId?: string;
4
+ }
5
+ export declare const LocationSearchConnect: React.FC<LocationSearchConnectProps>;
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { StoryObj } from '@storybook/react/*';
3
+ declare const _default: {
4
+ title: string;
5
+ component: () => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ component: string;
10
+ };
11
+ };
12
+ };
13
+ };
14
+ export default _default;
15
+ export declare const LocationSearchConnectLight: StoryObj;
16
+ export declare const LocationSearchConnectDark: StoryObj;
@@ -1,4 +1,4 @@
1
1
  export { SearchControlButtonConnect } from './SearchControlButtonConnect';
2
- export { SearchDialogConnect } from './SearchDialogConnect';
3
- export { SearchDialog } from './SearchDialog';
2
+ export { LocationSearchConnect } from './LocationSearchConnect';
3
+ export { LocationSearch } from './LocationSearch';
4
4
  export { MyMapLocation } from './MyMapLocation';
@@ -1,5 +1,18 @@
1
1
  import * as React from 'react';
2
- import { MapViewConnectProps } from './MapViewConnect';
2
+ import { Bbox, TileServerSettings } from '@opengeoweb/webmap';
3
+ import { MapControlsProps } from './MapViewConnect';
4
+ export interface OlMapViewConnectProps {
5
+ mapId: string;
6
+ children?: React.ReactNode;
7
+ controls?: MapControlsProps;
8
+ initialBbox?: Bbox;
9
+ holdShiftToScroll?: boolean;
10
+ displayTimeInMap?: boolean;
11
+ showScaleBar?: boolean;
12
+ shouldAutoFetch?: number | boolean;
13
+ shouldDisablePrefetching?: boolean;
14
+ tileServerSettings?: TileServerSettings;
15
+ }
3
16
  /**
4
17
  * Connected component used to display the map and selected layers.
5
18
  * Includes options to disable the map controls and legend.
@@ -7,10 +20,6 @@ import { MapViewConnectProps } from './MapViewConnect';
7
20
  * Expects the following props:
8
21
  * @param {string} mapId mapId: string - Id of the map
9
22
  * @param {object} [controls.zoomControls] **optional** controls: object - toggle the map controls, zoomControls defaults to true
10
- * @param {boolean} [displayTimeInMap] **optional** displayTimeInMap: boolean, toggles the mapTime, defaults to true
11
- * @param {boolean} [showScaleBar] **optional** showScaleBar: boolean, toggles the scaleBar, defaults to true
12
- * @example
13
- * ```<MapViewConnect mapId={mapId} controls={{ zoomControls: false }} displayTimeInMap={false} showScaleBar={false}/>```
14
23
  */
15
- declare const OlMapViewConnect: React.FC<MapViewConnectProps>;
24
+ declare const OlMapViewConnect: React.FC<OlMapViewConnectProps>;
16
25
  export default OlMapViewConnect;
@@ -1,7 +1,12 @@
1
1
  import * as React from 'react';
2
+ import type { StoryObj } from '@storybook/react';
3
+ import WMSLoader from './WMSLoader';
2
4
  declare const _default: {
3
5
  title: string;
4
6
  tags: string[];
5
7
  };
6
8
  export default _default;
9
+ type Story = StoryObj<typeof WMSLoader>;
7
10
  export declare const DemoWMSLoad: React.FC;
11
+ export declare const WMSLoaderLight: Story;
12
+ export declare const WMSLoaderDark: Story;
@@ -15,7 +15,7 @@ export * from './utils/jsonPresetFilter';
15
15
  export * as defaultConfigurations from './utils/defaultConfigurations';
16
16
  export * from './components/Providers/Providers';
17
17
  export * from './components/RouterWrapper';
18
- export * from './components/Search';
18
+ export * from './components/LocationSearch';
19
19
  export * from './components/TimeSliderConnect';
20
20
  export * from './components/LayerInfoConnect';
21
21
  export * from './components/SentryRecordButton';
@@ -1,9 +1,10 @@
1
- import { TimeSeriesService } from '@opengeoweb/shared';
1
+ import { SoundingsCollection, TimeSeriesService } from '@opengeoweb/shared';
2
2
  import { filterLayers, layerTypes, MapPreset, serviceTypes } from '@opengeoweb/store';
3
3
  interface FilteredMapPresets extends filterLayers.FilteredLayerList {
4
4
  services?: serviceTypes.InitialService[];
5
5
  baseServices?: serviceTypes.InitialService[];
6
6
  timeSeriesServices?: TimeSeriesService[];
7
+ soundingsCollections?: SoundingsCollection[];
7
8
  defaultMapSettings?: MapPreset;
8
9
  }
9
10
  export interface InitialAppPresetProps {
@@ -12,6 +13,7 @@ export interface InitialAppPresetProps {
12
13
  presetName?: string;
13
14
  services?: serviceTypes.InitialService[];
14
15
  timeSeriesServices?: TimeSeriesService[];
16
+ soundingsCollections?: SoundingsCollection[];
15
17
  baseServices?: serviceTypes.InitialService[];
16
18
  layers?: layerTypes.Layer[];
17
19
  baseLayers?: layerTypes.Layer[];
@@ -1,3 +1,3 @@
1
- import { LocationListResult, LocationDetail } from '../../components/Search/types';
1
+ import { LocationListResult, LocationDetail } from '../../components/LocationSearch/types';
2
2
  export declare const getLocationList: (search: string) => Promise<LocationListResult[]>;
3
3
  export declare const getLocationDetail: (id: string, source: string) => Promise<LocationDetail>;
@@ -1,4 +1,4 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
- import { LocationDetail, LocationListResult } from '../../components/Search/types';
2
+ import { LocationDetail, LocationListResult } from '../../components/LocationSearch/types';
3
3
  export declare const useLocationList: (search: string) => UseQueryResult<LocationListResult[]>;
4
4
  export declare const useLocationDetail: (id?: string, source?: string) => UseQueryResult<LocationDetail>;
@@ -1,7 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { SearchDialog } from './SearchDialog';
3
- declare const meta: Meta<typeof SearchDialog>;
4
- export default meta;
5
- type Story = StoryObj<typeof SearchDialog>;
6
- export declare const SearchDialogLight: Story;
7
- export declare const SearchDialogDark: Story;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export interface SearchDialogConnectProps {
3
- mapId?: string;
4
- }
5
- export declare const SearchDialogConnect: React.FC<SearchDialogConnectProps>;
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- tags: string[];
5
- };
6
- export default _default;
7
- export declare const SearchDialogConnectLight: () => React.ReactElement;
8
- export declare const SearchDialogConnectDark: {
9
- (): React.ReactElement;
10
- tags: string[];
11
- };