@opengeoweb/core 9.16.0 → 9.18.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.16.0",
3
+ "version": "9.18.0",
4
4
  "description": "GeoWeb Core library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -28,7 +28,8 @@
28
28
  "react-draggable": "^4.4.6",
29
29
  "i18next": "^23.7.11",
30
30
  "react-i18next": "^13.5.0",
31
- "dompurify": "^3.0.6"
31
+ "dompurify": "^3.0.6",
32
+ "@sentry/react": "^7.109.0"
32
33
  },
33
34
  "peerDependencies": {
34
35
  "react": "18"
package/src/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import coreTranslations from '../locales/core.json';
2
2
  export * from './lib';
3
+ export { translateKeyOutsideComponents, CORE_NAMESPACE, } from './lib/utils/i18n';
3
4
  export { coreTranslations };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import '../../utils/languagesService';
2
+ import './languagesService';
3
3
  declare const _default: {
4
4
  title: string;
5
5
  };
@@ -0,0 +1,9 @@
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;
@@ -7,6 +7,5 @@ interface DragHandleProps {
7
7
  icon?: ReactNode;
8
8
  tooltipTitle?: string;
9
9
  }
10
- export declare const TOOLTIP_TITLE = "Drag";
11
10
  declare const DragHandle: React.FC<DragHandleProps>;
12
11
  export default DragHandle;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Theme } from '@mui/material';
3
+ import { ThemeProviderProps } from '@opengeoweb/theme';
3
4
  import { Store } from '@reduxjs/toolkit';
4
5
  interface CoreThemeProviderProps {
5
6
  children?: React.ReactNode;
@@ -11,6 +12,7 @@ interface CoreThemeProviderProps {
11
12
  * @returns
12
13
  */
13
14
  export declare const CoreThemeProvider: React.FC<CoreThemeProviderProps>;
15
+ export declare const ThemeWrapperWithModules: React.FC<ThemeProviderProps>;
14
16
  interface CoreThemeStoreProviderProps extends CoreThemeProviderProps {
15
17
  store: Store;
16
18
  }
@@ -1,6 +1,10 @@
1
1
  import React from 'react';
2
2
  export interface MyMapLocationProps {
3
3
  mapId: string | undefined;
4
+ isLoading: boolean;
5
+ hasFailed: boolean;
6
+ setIsLoading: (value: boolean) => void;
7
+ setHasFailed: (value: boolean) => void;
4
8
  }
5
9
  export declare const MY_LOCATION = "MyLocation";
6
10
  export declare const MyMapLocation: React.FC<MyMapLocationProps>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SentryRecordButton: React.FC;
3
+ export default SentryRecordButton;
@@ -0,0 +1 @@
1
+ export { default as SentryRecordButton } from './SentryRecordButton';
@@ -18,3 +18,4 @@ export * from './components/RouterWrapper';
18
18
  export * from './components/Search';
19
19
  export * from './components/TimeSliderConnect';
20
20
  export * from './components/LayerInfoConnect';
21
+ export * from './components/SentryRecordButton';
@@ -1,2 +1,6 @@
1
+ import i18n from 'i18next';
2
+ import { UseTranslationResponse } from 'react-i18next';
1
3
  export declare const CORE_NAMESPACE = "core";
2
4
  export declare const initCoreReactI18n: () => void;
5
+ export declare const translateKeyOutsideComponents: (key: string, params?: Record<string, string | number> | undefined) => string;
6
+ export declare const useCoreTranslation: () => UseTranslationResponse<typeof CORE_NAMESPACE, typeof i18n>;
@@ -1,33 +0,0 @@
1
- import i18n from 'i18next';
2
- export declare const outsideComponentTranslations: {
3
- greeting: string;
4
- greetingWithName: string;
5
- delete: string;
6
- deleteOK: string;
7
- restore: string;
8
- } | {
9
- greeting: string;
10
- greetingWithName: string;
11
- delete: string;
12
- deleteOK: string;
13
- restore: string;
14
- } | {
15
- greeting: string;
16
- greetingWithName: string;
17
- delete: string;
18
- deleteOK: string;
19
- restore: string;
20
- } | {
21
- greeting: string;
22
- greetingWithName: string;
23
- delete: string;
24
- deleteOK: string;
25
- restore: string;
26
- };
27
- interface Languages {
28
- language: string;
29
- code: string;
30
- flag: string;
31
- }
32
- export declare const languages: Languages[];
33
- export default i18n;