@opengeoweb/shared 2.1.3 → 2.2.1

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.
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import { Color } from '@material-ui/lab';
2
+ import { AlertColor } from '@mui/material';
3
3
  interface AlertBannerProps {
4
4
  title: string;
5
- severity?: Color;
5
+ severity?: AlertColor;
6
6
  info?: string | React.ReactElement;
7
7
  dataTestId?: string;
8
8
  }
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import { SliderProps } from '@material-ui/core';
3
- export declare const sliderStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"sliderHeader">;
2
+ import { SliderProps } from '@mui/material';
3
+ export declare const sliderStyles: (props?: any) => import("@mui/styles/withStyles").ClassNameMap<"sliderHeader">;
4
4
  interface CustomSliderProps extends Omit<SliderProps, 'onChange'> {
5
- onChange: (event: React.ChangeEvent<HTMLSpanElement>, newValue: number) => void;
5
+ onChange: (event: Event, newValue: number) => void;
6
6
  shouldAutoFocus?: boolean;
7
7
  }
8
8
  export declare const CustomSlider: React.FC<CustomSliderProps>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { PaperProps } from '@material-ui/core';
2
+ import { PaperProps } from '@mui/material';
3
3
  export declare type HeaderSize = 'xxs' | 'xs' | 'small' | 'medium' | 'large';
4
4
  export interface ToolHeaderProps {
5
5
  title?: string;
@@ -1,3 +1,3 @@
1
1
  import { AxiosError } from 'axios';
2
- export declare const isAxiosError: (error: AxiosError | Error) => error is AxiosError<any>;
2
+ export declare const isAxiosError: (error: AxiosError | Error) => error is AxiosError<any, any>;
3
3
  export declare const getAxiosErrorMessage: (error: AxiosError) => string;
package/package.json CHANGED
@@ -1,31 +1,30 @@
1
1
  {
2
2
  "name": "@opengeoweb/shared",
3
- "version": "2.1.3",
3
+ "version": "2.2.1",
4
4
  "description": "GeoWeb shared library with shared components and utils for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git@gitlab.com:opengeoweb/opengeoweb.git"
9
9
  },
10
- "main": "./shared.umd.js",
11
- "module": "./shared.esm.js",
10
+ "main": "./index.umd.js",
11
+ "module": "./index.esm.js",
12
12
  "typings": "./index.d.ts",
13
13
  "dependencies": {},
14
14
  "peerDependencies": {
15
- "react": "16.14.0",
16
- "@material-ui/lab": "^4.0.0-alpha.56",
17
- "@opengeoweb/theme": "2.1.3",
18
- "@material-ui/core": "^4.11.0",
19
- "@material-ui/icons": "^4.9.1",
15
+ "react": "^17.0.2",
16
+ "@mui/material": "^5.2.8",
17
+ "@opengeoweb/theme": "2.2.1",
18
+ "@mui/styles": "^5.2.3",
19
+ "@mui/icons-material": "^5.2.5",
20
20
  "react-draggable": "^4.4.3",
21
21
  "re-resizable": "^6.9.0",
22
22
  "lodash": "^4.17.20",
23
- "@opengeoweb/form-fields": "2.1.3",
23
+ "@opengeoweb/form-fields": "2.2.1",
24
24
  "react-hook-form": "^6.12.1",
25
25
  "moment": "^2.29.0",
26
- "@material-ui/pickers": "^3.2.10",
27
26
  "moment-timezone": "^0.5.31",
28
- "@date-io/moment": "^1.3.13",
29
- "axios": "^0.21.4"
27
+ "@mui/lab": "^5.0.0-alpha.64",
28
+ "axios": "^0.25.0"
30
29
  }
31
30
  }