@medplum/react 2.2.7 → 2.2.10
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/dist/cjs/index.cjs +4 -4
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +5 -2
- package/dist/esm/index.d.ts +5 -2
- package/dist/esm/index.mjs +5 -5
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +20 -20
package/dist/cjs/index.d.ts
CHANGED
|
@@ -514,7 +514,9 @@ export declare interface EncounterTimelineProps {
|
|
|
514
514
|
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
515
515
|
state: ErrorBoundaryState;
|
|
516
516
|
constructor(props: ErrorBoundaryProps);
|
|
517
|
-
static getDerivedStateFromError(error:
|
|
517
|
+
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
518
|
+
componentDidUpdate(_prevProps: Readonly<ErrorBoundaryProps>, _prevState: Readonly<ErrorBoundaryState>): void;
|
|
519
|
+
shouldComponentUpdate(nextProps: Readonly<ErrorBoundaryProps>, nextState: Readonly<ErrorBoundaryState>): boolean;
|
|
518
520
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
519
521
|
render(): ReactNode;
|
|
520
522
|
}
|
|
@@ -524,7 +526,8 @@ export declare interface ErrorBoundaryProps {
|
|
|
524
526
|
}
|
|
525
527
|
|
|
526
528
|
export declare interface ErrorBoundaryState {
|
|
527
|
-
error?:
|
|
529
|
+
error?: Error;
|
|
530
|
+
lastLocation: string;
|
|
528
531
|
}
|
|
529
532
|
|
|
530
533
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -514,7 +514,9 @@ export declare interface EncounterTimelineProps {
|
|
|
514
514
|
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
515
515
|
state: ErrorBoundaryState;
|
|
516
516
|
constructor(props: ErrorBoundaryProps);
|
|
517
|
-
static getDerivedStateFromError(error:
|
|
517
|
+
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
518
|
+
componentDidUpdate(_prevProps: Readonly<ErrorBoundaryProps>, _prevState: Readonly<ErrorBoundaryState>): void;
|
|
519
|
+
shouldComponentUpdate(nextProps: Readonly<ErrorBoundaryProps>, nextState: Readonly<ErrorBoundaryState>): boolean;
|
|
518
520
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
519
521
|
render(): ReactNode;
|
|
520
522
|
}
|
|
@@ -524,7 +526,8 @@ export declare interface ErrorBoundaryProps {
|
|
|
524
526
|
}
|
|
525
527
|
|
|
526
528
|
export declare interface ErrorBoundaryState {
|
|
527
|
-
error?:
|
|
529
|
+
error?: Error;
|
|
530
|
+
lastLocation: string;
|
|
528
531
|
}
|
|
529
532
|
|
|
530
533
|
/**
|