@cratis/event-models 0.325.0 → 0.325.2
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.
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CrashReportRequest } from './crashReport';
|
|
2
|
+
export type CrashReporter = (request: CrashReportRequest) => void;
|
|
3
|
+
export declare const CrashReporterProvider: import("react").Provider<CrashReporter | undefined>;
|
|
4
|
+
export declare const useCrashReporter: () => CrashReporter | undefined;
|
|
@@ -4,6 +4,7 @@ export interface CrashStrings {
|
|
|
4
4
|
title: string;
|
|
5
5
|
/** The line under the heading. */
|
|
6
6
|
lead: string;
|
|
7
|
+
leadReporting?: string;
|
|
7
8
|
/** The label of the line that names the surface. */
|
|
8
9
|
surface: string;
|
|
9
10
|
/** The label of the line that names the component that threw. */
|
|
@@ -69,6 +69,7 @@ export type CrashReportLinkBuilder = (request: CrashReportRequest) => string;
|
|
|
69
69
|
* @param builder Makes the address of a report.
|
|
70
70
|
*/
|
|
71
71
|
export declare function configureCrashReportLinks(builder: CrashReportLinkBuilder): void;
|
|
72
|
+
export declare function crashReportRequest(error: unknown, context: CrashContext, componentStack?: string | null): CrashReportRequest;
|
|
72
73
|
/**
|
|
73
74
|
* The address a report opens. The summary is always in it; the full detail is copied to the clipboard as well, because an address has to stay short.
|
|
74
75
|
*
|