wacomm 1.78.0 → 1.79.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,19 +1,6 @@
1
- import { default as React, ReactNode } from 'react';
2
- interface Props {
1
+ import { ReactNode } from 'react';
2
+ declare const ErrorBoundary: ({ children, fallback }: {
3
3
  children: ReactNode;
4
4
  fallback?: ReactNode;
5
- }
6
- interface State {
7
- hasError: boolean;
8
- error: Error | null;
9
- }
10
- export default class ErrorBoundary extends React.Component<Props, State> {
11
- constructor(props: Props);
12
- static getDerivedStateFromError(error: Error): {
13
- hasError: boolean;
14
- error: Error;
15
- };
16
- componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
17
- render(): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
18
- }
19
- export {};
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default ErrorBoundary;
@@ -1,5 +1,6 @@
1
+ import { ReactNode } from 'react';
1
2
  interface ErrorMessageProps {
2
- label?: string;
3
+ label?: string | ReactNode;
3
4
  }
4
5
  declare function ErrorMessage({ label }: ErrorMessageProps): import("react/jsx-runtime").JSX.Element;
5
6
  export default ErrorMessage;
@@ -0,0 +1,7 @@
1
+ interface LazyErrorBoundaryProps {
2
+ children: React.ReactNode;
3
+ lazyFallback?: React.ReactNode;
4
+ errorFallback?: React.ReactNode;
5
+ }
6
+ declare function LazyErrorBoundary({ children, lazyFallback, errorFallback }: LazyErrorBoundaryProps): import("react/jsx-runtime").JSX.Element;
7
+ export default LazyErrorBoundary;
@@ -1,3 +1,4 @@
1
1
  export { default as ErrorBoundary } from './ErrorBoundary';
2
2
  export { default as ErrorMessage } from './ErrorMessage';
3
3
  export { default as NotFound } from './NotFound';
4
+ export { default as LazyErrorBoundary } from './LazyErrorBoundary';