@opengeoweb/core 9.30.0 → 9.32.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/core",
3
- "version": "9.30.0",
3
+ "version": "9.32.0",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -16,7 +16,7 @@
16
16
  "@opengeoweb/webmap-react": "*",
17
17
  "@opengeoweb/webmap": "*",
18
18
  "@opengeoweb/theme": "*",
19
- "axios": "1.5.0",
19
+ "axios": "^1.7.7",
20
20
  "@opengeoweb/layer-select": "*",
21
21
  "lodash": "^4.17.21",
22
22
  "react-sortablejs": "^6.1.4",
@@ -26,7 +26,7 @@
26
26
  "react-router-dom": "^6.21.0",
27
27
  "react-draggable": "^4.4.6",
28
28
  "i18next": "^23.11.5",
29
- "react-i18next": "^14.1.2",
29
+ "react-i18next": "^15.1.1",
30
30
  "dompurify": "^3.0.6",
31
31
  "@mui/material": "^6.1.1",
32
32
  "@sentry/react": "^8.34.0"
@@ -38,5 +38,6 @@
38
38
  },
39
39
  "module": "./index.esm.js",
40
40
  "type": "module",
41
- "main": "./index.esm.js"
41
+ "main": "./index.esm.js",
42
+ "types": "./index.esm.d.ts"
42
43
  }
@@ -1,8 +1,11 @@
1
1
  import * as React from 'react';
2
- interface LanguageSelectProps {
3
- onChangeLanguage: (currentLang: string) => void;
4
- currentLang?: string;
5
- defaultLang?: string;
6
- }
7
- declare const LanguageSelect: React.FC<LanguageSelectProps>;
2
+ export declare const languages: {
3
+ language: string;
4
+ code: string;
5
+ flag: React.ReactElement;
6
+ }[];
7
+ declare const LanguageSelect: React.FC<{
8
+ onChangeLanguage: (currentLanguage: string) => void;
9
+ isOpen?: boolean;
10
+ }>;
8
11
  export default LanguageSelect;
@@ -7,5 +7,27 @@ export declare const Languages: {
7
7
  (): React.ReactElement;
8
8
  parameters: {
9
9
  layout: string;
10
+ zeplinLink: {
11
+ name: string;
12
+ link: string;
13
+ }[];
10
14
  };
11
15
  };
16
+ export declare const LanguagesDark: {
17
+ (): React.ReactElement;
18
+ parameters: {
19
+ layout: string;
20
+ zeplinLink: {
21
+ name: string;
22
+ link: string;
23
+ }[];
24
+ };
25
+ };
26
+ export declare const LanguagesSnaphot: {
27
+ (): React.ReactElement;
28
+ tags: string[];
29
+ };
30
+ export declare const LanguagesSnapshotDark: {
31
+ (): React.ReactElement;
32
+ tags: string[];
33
+ };
@@ -0,0 +1 @@
1
+ export { default as LanguageSelect } from './LanguageSelect';
@@ -1,13 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import { mapTypes, layerTypes } from '@opengeoweb/store';
3
3
  import { ElementType, FC } from 'react';
4
+ import { TFunction } from 'i18next';
4
5
  import type { DimensionNameMappings, DimensionValueMappings } from '../../../LayerManagerUtils';
5
6
  export interface SingleValueComponentProps extends mapTypes.Dimension {
6
7
  position: 'dimension' | 'value';
7
8
  nameMappings?: DimensionNameMappings;
8
9
  valueMappings?: DimensionValueMappings;
9
10
  }
10
- export type DimensionTooltipGenerator = (selectedDimension: mapTypes.Dimension, isValue?: boolean) => string;
11
+ export type DimensionTooltipGenerator = (t: TFunction, selectedDimension: mapTypes.Dimension, isValue?: boolean) => string;
11
12
  export interface DimensionSelectProps {
12
13
  layerDimensions?: mapTypes.Dimension[];
13
14
  onLayerChangeDimension: (dimensionName: string, dimensionValue: string, origin?: layerTypes.LayerActionOrigin.layerManager) => void;
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  export interface DimensionSelectSliderConnectProps {
3
3
  layerId: string;
4
+ mapId: string;
4
5
  dimensionName: string;
5
6
  handleDimensionValueChanged: (layerId: string, dimensionName: string, dimensionValue: string) => void;
6
7
  handleSyncChanged: (layerId: string, dimensionName: string, dimensionValue: string, synced: boolean) => void;
@@ -19,3 +19,4 @@ export * from './components/Search';
19
19
  export * from './components/TimeSliderConnect';
20
20
  export * from './components/LayerInfoConnect';
21
21
  export * from './components/SentryRecordButton';
22
+ export * from './components/LanguageSelect';
@@ -4,3 +4,4 @@ export declare const CORE_NAMESPACE = "core";
4
4
  export declare const initCoreReactI18n: () => void;
5
5
  export declare const translateKeyOutsideComponents: (key: string, params?: Record<string, string | number> | undefined) => string;
6
6
  export declare const useCoreTranslation: () => UseTranslationResponse<typeof CORE_NAMESPACE, typeof i18n>;
7
+ export { i18n };
@@ -4,7 +4,7 @@ interface FilteredMapPresets extends filterLayers.FilteredLayerList {
4
4
  services?: serviceTypes.InitialService[];
5
5
  baseServices?: serviceTypes.InitialService[];
6
6
  timeSeriesServices?: TimeSeriesService[];
7
- initialViewMapPreset?: MapPreset;
7
+ defaultMapSettings?: MapPreset;
8
8
  }
9
9
  export interface InitialAppPresetProps {
10
10
  presetType?: string;
@@ -15,7 +15,7 @@ export interface InitialAppPresetProps {
15
15
  baseServices?: serviceTypes.InitialService[];
16
16
  layers?: layerTypes.Layer[];
17
17
  baseLayers?: layerTypes.Layer[];
18
- initialViewMapPreset?: MapPreset;
18
+ defaultMapSettings?: MapPreset;
19
19
  }
20
20
  export interface InitialAppPreset {
21
21
  preset: InitialAppPresetProps;
@@ -1,3 +1,6 @@
1
- import { WebMapStateModuleState } from '@opengeoweb/store';
1
+ import { snackbarTypes } from '@opengeoweb/snackbar';
2
+ import { WebMapStateModuleState, syncGroupsTypes, uiTypes } from '@opengeoweb/store';
3
+ import { Store } from '@reduxjs/toolkit';
2
4
  export declare const mockStateMapWithDimensions: (layer: import("dist/libs/store/src/store/mapStore/types").Layer, mapId: string) => WebMapStateModuleState;
3
5
  export declare const mockStateMapWithDimensionsWithoutLayers: (mapId: string) => WebMapStateModuleState;
6
+ export declare const createMockStore: (mockState: WebMapStateModuleState & snackbarTypes.SnackbarModuleStore & syncGroupsTypes.SynchronizationGroupModuleState & uiTypes.UIModuleState) => Store;
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import './languagesService';
3
- declare const _default: {
4
- title: string;
5
- };
6
- export default _default;
7
- export declare const DemoLanguages: {
8
- (): React.ReactElement;
9
- parameters: {
10
- layout: string;
11
- };
12
- };
@@ -1,31 +0,0 @@
1
- declare const translations: {
2
- en: {
3
- greeting: string;
4
- greetingWithName: string;
5
- delete: string;
6
- deleteOK: string;
7
- restore: string;
8
- };
9
- nl: {
10
- greeting: string;
11
- greetingWithName: string;
12
- delete: string;
13
- deleteOK: string;
14
- restore: string;
15
- };
16
- fi: {
17
- greeting: string;
18
- greetingWithName: string;
19
- delete: string;
20
- deleteOK: string;
21
- restore: string;
22
- };
23
- no: {
24
- greeting: string;
25
- greetingWithName: string;
26
- delete: string;
27
- deleteOK: string;
28
- restore: string;
29
- };
30
- };
31
- export default translations;
@@ -1,9 +0,0 @@
1
- import i18n from 'i18next';
2
- export declare const translateKeyOutsideComponents: (key: string, params?: Record<string, string | number> | undefined) => string;
3
- interface Languages {
4
- language: string;
5
- code: string;
6
- flag: string;
7
- }
8
- export declare const languages: Languages[];
9
- export default i18n;