@highlight-run/react
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -29,3 +29,3 @@ import React, { ErrorInfo } from 'react'; | ||
children?: React.ReactNode; | ||
/** If a Highlight report dialog should be rendered on error */ | ||
/** If a Highlight report dialog should be rendered on error. Defaults to true. */ | ||
showDialog?: boolean; | ||
@@ -32,0 +32,0 @@ /** A custom dialog that you can provide to be shown when the ErrorBoundary is shown. */ |
@@ -116,4 +116,4 @@ "use strict"; | ||
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2776429-QxjdLUI7Afb6/highlight-react/src/components/ReportDialog/styles.module.css.js | ||
var digest = "598b48618475a06c3d984004ac068c9b039d813cbe4650a7dcbc8e08f182d4a1"; | ||
// esbuild-css-modules-plugin-namespace:/tmp/tmp-1210339-lHNvble0W1ND/highlight-react/src/components/ReportDialog/styles.module.css.js | ||
var digest = "3450afe68e09c19c62da3175e7f6043236ca1b7e029886ddfaa4a760f975e778"; | ||
var css = `._container_18ep0_1 { | ||
@@ -580,3 +580,3 @@ --brand-color: #744ed4; | ||
} | ||
if (showDialog) { | ||
if (showDialog !== false) { | ||
this.setState(__spreadProps(__spreadValues({}, this.state), { showingDialog: true })); | ||
@@ -648,5 +648,3 @@ } | ||
if (!window.H) { | ||
console.warn("You need to install highlight.run as a npm dependency."); | ||
} else { | ||
window.H.consumeError( | ||
console.error( | ||
errorBoundaryError, | ||
@@ -653,0 +651,0 @@ `${componentName ? `ErrorBoundary ${componentName}` : "HighlightErrorBoundary"}` |
{ | ||
"name": "@highlight-run/react", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "The official Highlight SDK for React", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
53184
1658