@spotlightjs/overlay 0.0.17 → 0.0.18
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/index.d.ts +11 -1
- package/dist/integrations/sentry/components/Time.d.ts +1 -0
- package/dist/integrations/sentry/index.d.ts +5 -1
- package/dist/integrations/sentry/sentry-integration.d.ts +12 -0
- package/dist/integrations/sentry/types.d.ts +9 -9
- package/dist/sentry-spotlight.js +3516 -3476
- package/dist/sentry-spotlight.umd.cjs +75 -75
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,17 @@ export declare function closeSpotlight(): Promise<void>;
|
|
|
15
15
|
* Invokes the passed in callback when the Spotlight debugger Window is closed
|
|
16
16
|
*/
|
|
17
17
|
export declare function onClose(cb: () => void): Promise<void>;
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Invokes the passed in callback when the Spotlight debugger Window is opened
|
|
20
|
+
*/
|
|
21
|
+
export declare function onOpen(cb: () => void): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Register a callback that is invoked when a severe event is processed
|
|
24
|
+
* by a Spotlight integration.
|
|
25
|
+
* A count of the number of collected severe events is passed to the callback.
|
|
26
|
+
*/
|
|
27
|
+
export declare function onSevereEvent(cb: (count: number) => void): Promise<void>;
|
|
28
|
+
export declare function init({ fullScreen, showTriggerButton, defaultEventId, injectImmediately, sidecar, anchor, debug, integrations, }?: {
|
|
19
29
|
integrations?: Integration[];
|
|
20
30
|
fullScreen?: boolean;
|
|
21
31
|
defaultEventId?: string;
|
|
@@ -2,7 +2,10 @@ import type { Envelope } from '@sentry/types';
|
|
|
2
2
|
import type { RawEventContext, Severity } from '../integration';
|
|
3
3
|
import ErrorsTab from './tabs/ErrorsTab';
|
|
4
4
|
import SdksTab from './tabs/SdksTab';
|
|
5
|
-
|
|
5
|
+
type SentryIntegrationOptions = {
|
|
6
|
+
sidecarUrl?: string;
|
|
7
|
+
};
|
|
8
|
+
export default function sentryIntegration(options?: SentryIntegrationOptions): {
|
|
6
9
|
name: string;
|
|
7
10
|
forwardedContentType: string[];
|
|
8
11
|
setup: () => void;
|
|
@@ -26,3 +29,4 @@ export declare function processEnvelope({ data }: RawEventContext): {
|
|
|
26
29
|
event: Envelope;
|
|
27
30
|
severity: Severity;
|
|
28
31
|
};
|
|
32
|
+
export {};
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { EventProcessor, Hub, Integration } from '@sentry/types';
|
|
2
|
+
type SpotlightBrowserIntegationOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* The URL of the Sidecar instance to connect and forward events to.
|
|
5
|
+
* If not set, Spotlight will try to connect to the Sidecar running on localhost:8969.
|
|
6
|
+
*
|
|
7
|
+
* @default "http://localhost:8969/stream"
|
|
8
|
+
*/
|
|
9
|
+
sidecarUrl?: string;
|
|
10
|
+
};
|
|
2
11
|
export declare class Spotlight implements Integration {
|
|
3
12
|
name: string;
|
|
13
|
+
private _sidecarUrl;
|
|
14
|
+
constructor(options?: SpotlightBrowserIntegationOptions);
|
|
4
15
|
setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
|
|
5
16
|
}
|
|
17
|
+
export {};
|
|
@@ -29,18 +29,18 @@ export type EventException = {
|
|
|
29
29
|
values: undefined;
|
|
30
30
|
value: EventExceptionValue;
|
|
31
31
|
};
|
|
32
|
-
export type
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
type: string | 'default';
|
|
38
|
-
}[];
|
|
32
|
+
export type Breadcrumb = {
|
|
33
|
+
message: string;
|
|
34
|
+
category: string;
|
|
35
|
+
timestamp: string;
|
|
36
|
+
type: string | 'default';
|
|
39
37
|
};
|
|
40
38
|
type CommonEventAttrs = {
|
|
41
39
|
event_id: string;
|
|
42
40
|
timestamp: number;
|
|
43
|
-
breadcrumbs?:
|
|
41
|
+
breadcrumbs?: Breadcrumb[] | {
|
|
42
|
+
values: Breadcrumb[];
|
|
43
|
+
};
|
|
44
44
|
transaction?: string;
|
|
45
45
|
environment?: string;
|
|
46
46
|
platform?: string;
|
|
@@ -81,7 +81,7 @@ export type Span = {
|
|
|
81
81
|
trace_id: string;
|
|
82
82
|
span_id: string;
|
|
83
83
|
parent_span_id?: string | null;
|
|
84
|
-
op
|
|
84
|
+
op?: string | null;
|
|
85
85
|
description?: string | null;
|
|
86
86
|
start_timestamp: number;
|
|
87
87
|
tags?: Tags | null;
|