@opengeoweb/shared 2.14.0 → 4.0.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/index.esm.js +306 -303
- package/index.umd.js +291 -315
- package/lib/components/AppHeader/AppHeader.stories.d.ts +12 -1
- package/lib/components/Avatar/Avatar.d.ts +7 -0
- package/lib/components/Avatar/Avatar.stories.d.ts +13 -0
- package/lib/components/Avatar/index.d.ts +1 -0
- package/lib/components/CustomSlider/CustomSlider.d.ts +6 -1
- package/lib/components/CustomSlider/CustomSlider.stories.d.ts +0 -1
- package/lib/components/CustomSlider/index.d.ts +1 -1
- package/lib/components/ErrorBoundary/ErrorBoundary.stories.d.ts +0 -1
- package/lib/components/ManagerButton/ManagerButton.d.ts +1 -7
- package/lib/components/components.stories.d.ts +0 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/utils/axiosErrorUtils/axiosErrorUtils.d.ts +4 -0
- package/package.json +3 -4
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const AppHeaderDark: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const AppHeaderLight: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const AvatarLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const AvatarDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Avatar } from './Avatar';
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SliderProps } from '@mui/material';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const sliderHeaderStyle: {
|
|
4
|
+
fontFamily: string;
|
|
5
|
+
fontSize: number;
|
|
6
|
+
color: string;
|
|
7
|
+
padding: string;
|
|
8
|
+
};
|
|
4
9
|
interface CustomSliderProps extends Omit<SliderProps, 'onChange'> {
|
|
5
10
|
onChange: (event: Event, newValue: number) => void;
|
|
6
11
|
shouldAutoFocus?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CustomSlider,
|
|
1
|
+
export { CustomSlider, sliderHeaderStyle } from './CustomSlider';
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IconButtonProps } from '@mui/material';
|
|
3
|
-
export interface
|
|
4
|
-
isActive?: boolean;
|
|
5
|
-
isEnabled?: boolean;
|
|
6
|
-
isAccessible?: boolean;
|
|
7
|
-
}
|
|
8
|
-
interface ManagerButtonProps extends IconButtonProps {
|
|
3
|
+
export interface ManagerButtonProps extends IconButtonProps {
|
|
9
4
|
tooltipTitle: string;
|
|
10
5
|
onClick?: (event: React.MouseEvent) => void;
|
|
11
6
|
isActive?: boolean;
|
|
@@ -15,4 +10,3 @@ interface ManagerButtonProps extends IconButtonProps {
|
|
|
15
10
|
isAccessible?: boolean;
|
|
16
11
|
}
|
|
17
12
|
export declare const ManagerButton: React.FC<ManagerButtonProps>;
|
|
18
|
-
export {};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { AxiosError } from 'axios';
|
|
2
|
+
export declare const DEFAULT_ERROR_MESSAGE = "An error has occurred";
|
|
2
3
|
export declare const isAxiosError: (error: AxiosError | Error) => error is AxiosError<any, any>;
|
|
3
4
|
export declare const getAxiosErrorMessage: (error: AxiosError) => string;
|
|
5
|
+
export declare const getErrorMessage: (error: Error | AxiosError) => string;
|
|
6
|
+
export declare const getAxiosWarningMessage: (error: AxiosError) => string;
|
|
7
|
+
export declare const getWarningMessage: (error: AxiosError | Error) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/shared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.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": {
|
|
@@ -14,12 +14,11 @@
|
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^17.0.2",
|
|
16
16
|
"@mui/material": "^5.2.8",
|
|
17
|
-
"@opengeoweb/theme": "
|
|
18
|
-
"@mui/styles": "^5.2.3",
|
|
17
|
+
"@opengeoweb/theme": "4.0.0",
|
|
19
18
|
"react-draggable": "^4.4.3",
|
|
20
19
|
"re-resizable": "^6.9.0",
|
|
21
20
|
"lodash": "^4.17.20",
|
|
22
|
-
"@opengeoweb/form-fields": "
|
|
21
|
+
"@opengeoweb/form-fields": "4.0.0",
|
|
23
22
|
"react-hook-form": "^6.12.1",
|
|
24
23
|
"moment": "^2.29.0",
|
|
25
24
|
"moment-timezone": "^0.5.31",
|