@opengeoweb/shared 2.0.1 → 2.1.3

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,2 +1,9 @@
1
1
  import * as React from 'react';
2
- export declare const AlertBanners: () => React.ReactElement;
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const AlertBanners: {
7
+ (): React.ReactElement;
8
+ storyName: string;
9
+ };
@@ -1,2 +1,6 @@
1
1
  import * as React from 'react';
2
- export declare const ConfirmationDialog: () => React.ReactElement;
2
+ export declare const ConfirmationDialogExample: () => React.ReactElement;
3
+ export declare const ConfirmationDialogSnapshot: {
4
+ (): React.ReactElement;
5
+ storyName: string;
6
+ };
@@ -1,18 +1,9 @@
1
1
  import * as React from 'react';
2
- import { Mark } from '@material-ui/core';
2
+ import { SliderProps } from '@material-ui/core';
3
3
  export declare const sliderStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"sliderHeader">;
4
- interface CustomSliderProps {
5
- value: number;
6
- onChange: (event: any, newValue: number) => void;
7
- onKeyDown?: (event: any) => void;
8
- dataTestId?: string;
9
- orientation?: 'horizontal' | 'vertical';
10
- max?: number;
11
- min?: number;
12
- step?: number;
13
- marks?: Mark[];
14
- disabled?: boolean;
15
- ThumbComponent?: React.ElementType<React.HTMLAttributes<HTMLSpanElement>>;
4
+ interface CustomSliderProps extends Omit<SliderProps, 'onChange'> {
5
+ onChange: (event: React.ChangeEvent<HTMLSpanElement>, newValue: number) => void;
6
+ shouldAutoFocus?: boolean;
16
7
  }
17
8
  export declare const CustomSlider: React.FC<CustomSliderProps>;
18
9
  export default CustomSlider;
@@ -1,2 +1,14 @@
1
1
  import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
2
6
  export declare const CustomSliderComponent: () => React.ReactElement;
7
+ export declare const CustomSliderLightTheme: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
11
+ export declare const CustomSliderDarkTheme: {
12
+ (): React.ReactElement;
13
+ storyName: string;
14
+ };
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ export declare const Z_INDEX_TOP = 600;
3
+ export declare const Z_INDEX_BOTTOM = 550;
4
+ interface DraggableDialogProps {
5
+ handleClose: () => void;
6
+ title: string;
7
+ children?: React.ReactNode;
8
+ dialogStyling?: {
9
+ dialogWidth?: string;
10
+ dialogMaxHeight?: string;
11
+ dialogTop?: string;
12
+ };
13
+ zIndex?: number;
14
+ }
15
+ declare const DraggableDialog: React.FC<DraggableDialogProps>;
16
+ export default DraggableDialog;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const DraggableDialogOldTheme: () => React.ReactElement;
@@ -0,0 +1 @@
1
+ export { default as DraggableDialog, Z_INDEX_TOP, Z_INDEX_BOTTOM, } from './DraggableDialog';
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ interface ErrorBoundaryProps {
3
+ children: React.ReactNode;
4
+ onError?: (error: Error, errorInfo: React.ErrorInfo) => void;
5
+ }
6
+ interface ErrorBoundaryState {
7
+ error?: Error;
8
+ errorInfo?: React.ErrorInfo;
9
+ }
10
+ /**
11
+ * ErrorBoundary
12
+ * Wrap this component around parts of your application. It will catch any uncaught errors and display an alert, and allows you to continue using the rest of your application.
13
+ *
14
+ * @example
15
+ * ``` <ErrorBoundary><ExampleComponent /></ErrorBoundary> ```
16
+ */
17
+ export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
18
+ static defaultProps: {
19
+ onError: () => void;
20
+ };
21
+ private constructor();
22
+ static getDerivedStateFromError(error: Error): ErrorBoundaryState;
23
+ componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
24
+ render(): React.ReactNode;
25
+ }
26
+ export default ErrorBoundary;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export declare const ErrorBoundaryDemo: {
3
+ (): React.ReactElement;
4
+ storyName: string;
5
+ };
@@ -0,0 +1 @@
1
+ export { ErrorBoundary } from './ErrorBoundary';
@@ -1,2 +1,9 @@
1
1
  import React from 'react';
2
- export declare const StatusTags: () => React.ReactElement;
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const StatusTags: {
7
+ (): React.ReactElement;
8
+ storyName: string;
9
+ };
@@ -5,3 +5,11 @@ declare const _default: {
5
5
  export default _default;
6
6
  export declare const ThemeLight: () => React.ReactElement;
7
7
  export declare const ThemeDark: () => React.ReactElement;
8
+ export declare const ThemeLightSnapShot: {
9
+ (): React.ReactElement;
10
+ storyName: string;
11
+ };
12
+ export declare const ThemeDarkSnapShot: {
13
+ (): React.ReactElement;
14
+ storyName: string;
15
+ };
@@ -5,3 +5,11 @@ declare const _default: {
5
5
  export default _default;
6
6
  export declare const ThemeLight: () => React.ReactElement;
7
7
  export declare const ThemeDark: () => React.ReactElement;
8
+ export declare const ThemeLightSnapShot: {
9
+ (): React.ReactElement;
10
+ storyName: string;
11
+ };
12
+ export declare const ThemeDarkSnapShot: {
13
+ (): React.ReactElement;
14
+ storyName: string;
15
+ };
@@ -1,8 +1,6 @@
1
- export * from './AlertBanner/AlertBanner.stories';
2
- export * from './StatusTag/StatusTag.stories';
3
1
  export * from './AppHeader/AppHeader.stories';
4
2
  export * from './ConfirmationDialog/ConfirmationDialog.stories';
5
- export * from './CustomSlider/CustomSlider.stories';
3
+ export * from './ErrorBoundary/ErrorBoundary.stories';
6
4
  declare const _default: {
7
5
  title: string;
8
6
  };
@@ -4,6 +4,8 @@ export * from './AlertBanner';
4
4
  export * from './AppLayout';
5
5
  export * from './AppHeader';
6
6
  export * from './DraggableResizable';
7
+ export * from './ErrorBoundary';
7
8
  export * from './UserMenu';
8
9
  export * from './ToolContainer';
9
10
  export * from './CustomSlider';
11
+ export * from './DraggableDialog';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/shared",
3
- "version": "2.0.1",
3
+ "version": "2.1.3",
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,18 +14,18 @@
14
14
  "peerDependencies": {
15
15
  "react": "16.14.0",
16
16
  "@material-ui/lab": "^4.0.0-alpha.56",
17
- "@opengeoweb/theme": "2.0.1",
17
+ "@opengeoweb/theme": "2.1.3",
18
18
  "@material-ui/core": "^4.11.0",
19
19
  "@material-ui/icons": "^4.9.1",
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.0.1",
23
+ "@opengeoweb/form-fields": "2.1.3",
24
24
  "react-hook-form": "^6.12.1",
25
- "@material-ui/pickers": "^3.2.10",
26
- "@date-io/moment": "^1.3.13",
27
25
  "moment": "^2.29.0",
26
+ "@material-ui/pickers": "^3.2.10",
28
27
  "moment-timezone": "^0.5.31",
28
+ "@date-io/moment": "^1.3.13",
29
29
  "axios": "^0.21.4"
30
30
  }
31
31
  }