@sonic-equipment/ui 233.0.0 → 234.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.
@@ -11,4 +11,6 @@ export interface ErrorBoundaryProps {
11
11
  onReset?: () => void;
12
12
  showErrorDetails?: boolean;
13
13
  }
14
- export declare function ErrorBoundary({ children, ...props }: ErrorBoundaryProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function ErrorBoundary({ children, persistError, ...props }: ErrorBoundaryProps & {
15
+ persistError?: boolean;
16
+ }): ReactNode;
@@ -115,8 +115,8 @@ Object.defineProperty(InternalErrorBoundary, "displayName", {
115
115
  writable: true,
116
116
  value: 'SonicErrorBoundary'
117
117
  });
118
- function ErrorBoundary({ children, ...props }) {
119
- return (jsx(InternalErrorBoundary, { ...props, children: props.ignoreGlobalUnhandledErrors ? (children) : (jsx(GlobalUnhandledErrorHandler, { context: props.context, children: children })) }));
118
+ function ErrorBoundary({ children, persistError = false, ...props }) {
119
+ return (jsx(InternalErrorBoundary, { ...props, children: props.ignoreGlobalUnhandledErrors ? (children) : (jsx(GlobalUnhandledErrorHandler, { context: props.context, children: children })) }, persistError ? undefined : Math.random().toString()));
120
120
  }
121
121
 
122
122
  export { ErrorBoundary };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "233.0.0",
3
+ "version": "234.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {