@opengeoweb/shared 9.32.1 → 9.34.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/shared",
3
- "version": "9.32.1",
3
+ "version": "9.34.0",
4
4
  "description": "GeoWeb shared library with shared components and utils for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
2
  import { ThemeProviderProps } from '@opengeoweb/theme';
3
+ interface SharedTranslationWrapperProps {
4
+ children?: React.ReactNode;
5
+ }
3
6
  interface SharedStoryWrapperProps {
4
7
  children: React.ReactNode;
5
8
  theme?: 'light' | 'dark';
@@ -11,4 +14,5 @@ interface SharedStoryWrapperProps {
11
14
  */
12
15
  export declare const SharedThemeProvider: React.FC<ThemeProviderProps>;
13
16
  export declare const SharedStoryWrapper: React.FC<SharedStoryWrapperProps>;
17
+ export declare const SharedI18nProvider: React.FC<SharedTranslationWrapperProps>;
14
18
  export {};
@@ -1,6 +1,6 @@
1
1
  import { AxiosError } from 'axios';
2
2
  export declare const DEFAULT_ERROR_MESSAGE = "An error has occurred";
3
- export declare const isAxiosError: (error: AxiosError | Error) => error is AxiosError<unknown, any>;
3
+ export declare const isAxiosError: (error: AxiosError | Error) => error is AxiosError;
4
4
  export declare const isAxiosAuthError: (error: AxiosError | Error) => boolean;
5
5
  export declare const getAxiosErrorMessage: (error: AxiosError) => string;
6
6
  export declare const getErrorMessage: (error: Error | AxiosError) => string;