@spotlightjs/overlay 1.7.0 → 1.8.1
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-1803d5bd.js +36500 -0
- package/dist/index-1803d5bd.js.map +1 -0
- package/dist/main-42304866.js +2782 -0
- package/dist/main-42304866.js.map +1 -0
- package/dist/sentry-spotlight.js +14 -36258
- package/dist/sentry-spotlight.js.map +1 -1
- package/dist/sentry-spotlight.umd.cjs +175 -163
- package/dist/sentry-spotlight.umd.cjs.map +1 -1
- package/dist/src/components/Tooltip.d.ts +1 -1
- package/dist/src/integrations/sentry/components/SpanResizer.d.ts +7 -0
- package/dist/src/integrations/sentry/components/developerInfo/EnvelopeDetails.d.ts +8 -0
- package/dist/src/integrations/sentry/components/developerInfo/EnvelopeList.d.ts +1 -0
- package/dist/src/integrations/sentry/components/developerInfo/JsonViewer.d.ts +10 -0
- package/dist/src/integrations/sentry/components/{EventBreadcrumbs.d.ts → events/EventBreadcrumbs.d.ts} +1 -1
- package/dist/src/integrations/sentry/components/{EventContexts.d.ts → events/EventContexts.d.ts} +1 -1
- package/dist/src/integrations/sentry/components/{Events → events/error}/Error.d.ts +1 -1
- package/dist/src/integrations/sentry/components/{Performance → performance}/QuerySummary.d.ts +1 -1
- package/dist/src/integrations/sentry/components/{SpanDetails.d.ts → traces/spans/SpanDetails.d.ts} +1 -1
- package/dist/src/integrations/sentry/components/{SpanItem.d.ts → traces/spans/SpanItem.d.ts} +4 -2
- package/dist/src/integrations/sentry/components/{SpanTree.d.ts → traces/spans/SpanTree.d.ts} +4 -2
- package/dist/src/integrations/sentry/data/sentryDataCache.d.ts +13 -1
- package/dist/src/integrations/sentry/data/useSentryEnvelopes.d.ts +4 -0
- package/dist/src/integrations/sentry/index.d.ts +3 -1
- package/dist/src/integrations/sentry/tabs/DeveloperInfo.d.ts +1 -0
- package/package.json +2 -1
- /package/dist/src/integrations/sentry/components/{Events → events}/Event.d.ts +0 -0
- /package/dist/src/integrations/sentry/components/{EventDetails.d.ts → events/EventDetails.d.ts} +0 -0
- /package/dist/src/integrations/sentry/components/{EventList.d.ts → events/EventList.d.ts} +0 -0
- /package/dist/src/integrations/sentry/components/{Events/Error → events/error}/Frame.d.ts +0 -0
- /package/dist/src/integrations/sentry/components/{Performance → performance}/PerformanceTabDetails.d.ts +0 -0
- /package/dist/src/integrations/sentry/components/{Performance → performance}/Queries.d.ts +0 -0
- /package/dist/src/integrations/sentry/components/{Performance → performance}/Resources.d.ts +0 -0
- /package/dist/src/integrations/sentry/components/{Performance/WebVitals → performance/webVitals}/PerformanceChart.d.ts +0 -0
- /package/dist/src/integrations/sentry/components/{Performance/WebVitals → performance/webVitals}/WebVitalsDetail.d.ts +0 -0
- /package/dist/src/integrations/sentry/components/{Performance/WebVitals → performance/webVitals}/index.d.ts +0 -0
- /package/dist/src/integrations/sentry/components/{TraceDetails.d.ts → traces/TraceDetails.d.ts} +0 -0
- /package/dist/src/integrations/sentry/components/{TraceList.d.ts → traces/TraceList.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
declare const Tooltip: ({ content, position, children, }: {
|
|
3
3
|
content: string | ReactNode;
|
|
4
|
-
position?: "
|
|
4
|
+
position?: "left" | "right" | "top" | "bottom" | undefined;
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default Tooltip;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type SpanResizerProps = {
|
|
2
|
+
handleResize: (e: MouseEvent) => void;
|
|
3
|
+
setIsResizing: (val: boolean) => void;
|
|
4
|
+
isResizing: boolean;
|
|
5
|
+
};
|
|
6
|
+
export default function SpanResizer({ handleResize, isResizing, setIsResizing, ...props }: SpanResizerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Envelope } from '@sentry/types';
|
|
2
|
+
import { RawEventContext } from '../../../../integrations/integration';
|
|
3
|
+
export default function EnvelopeDetails({ data }: {
|
|
4
|
+
data: {
|
|
5
|
+
envelope: Envelope;
|
|
6
|
+
rawEnvelope: RawEventContext;
|
|
7
|
+
};
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function EnvelopeList(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Envelope, EnvelopeItem } from '@sentry/types';
|
|
2
|
+
import { RawEventContext } from '../../../../integrations/integration';
|
|
3
|
+
export default function JsonViewer({ data, onUpdateData, editingEnabled, clipboardEnabled, displayDataTypes, quotesOnKeys, }: {
|
|
4
|
+
data: Envelope[0] | EnvelopeItem | RawEventContext;
|
|
5
|
+
onUpdateData?: (value: unknown) => void;
|
|
6
|
+
editingEnabled?: boolean;
|
|
7
|
+
clipboardEnabled?: boolean;
|
|
8
|
+
displayDataTypes?: boolean;
|
|
9
|
+
quotesOnKeys?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
package/dist/src/integrations/sentry/components/{SpanItem.d.ts → traces/spans/SpanItem.d.ts}
RENAMED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { Span, TraceContext } from '
|
|
2
|
-
declare const SpanItem: ({ span, startTimestamp, totalDuration, depth, traceContext, collapsible, }: {
|
|
1
|
+
import { Span, TraceContext } from '../../../types';
|
|
2
|
+
declare const SpanItem: ({ span, startTimestamp, totalDuration, depth, traceContext, collapsible, spanNodeWidth, setSpanNodeWidth, }: {
|
|
3
3
|
span: Span;
|
|
4
4
|
startTimestamp: number;
|
|
5
5
|
totalDuration: number;
|
|
6
6
|
depth?: number | undefined;
|
|
7
7
|
traceContext: TraceContext;
|
|
8
8
|
collapsible?: boolean | undefined;
|
|
9
|
+
spanNodeWidth: number;
|
|
10
|
+
setSpanNodeWidth?: ((val: number) => void) | undefined;
|
|
9
11
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export default SpanItem;
|
package/dist/src/integrations/sentry/components/{SpanTree.d.ts → traces/spans/SpanTree.d.ts}
RENAMED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { Span, TraceContext } from '
|
|
2
|
-
export default function SpanTree({ traceContext, tree, startTimestamp, totalDuration, depth, collapsible, }: {
|
|
1
|
+
import { Span, TraceContext } from '../../../types';
|
|
2
|
+
export default function SpanTree({ traceContext, tree, startTimestamp, totalDuration, depth, collapsible, spanNodeWidth, setSpanNodeWidth, }: {
|
|
3
3
|
traceContext: TraceContext;
|
|
4
4
|
tree: Span[];
|
|
5
5
|
startTimestamp: number;
|
|
6
6
|
totalDuration: number;
|
|
7
7
|
depth?: number;
|
|
8
8
|
collapsible?: boolean;
|
|
9
|
+
spanNodeWidth: number;
|
|
10
|
+
setSpanNodeWidth?: (val: number) => void;
|
|
9
11
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Envelope } from '@sentry/types';
|
|
2
|
+
import { RawEventContext } from '../../../integrations/integration';
|
|
2
3
|
import { Sdk, SentryEvent, Span, Trace } from '../types';
|
|
3
4
|
type OnlineSubscription = ['online', (status: boolean) => void];
|
|
4
5
|
type EventSubscription = ['event', (event: SentryEvent) => void];
|
|
@@ -13,18 +14,29 @@ declare class SentryDataCache {
|
|
|
13
14
|
[id: string]: Trace;
|
|
14
15
|
};
|
|
15
16
|
protected localTraceIds: Set<string>;
|
|
17
|
+
protected envelopes: {
|
|
18
|
+
envelope: Envelope;
|
|
19
|
+
rawEnvelope: RawEventContext;
|
|
20
|
+
}[];
|
|
16
21
|
protected subscribers: Map<string, Subscription>;
|
|
17
22
|
constructor(initial?: (SentryEvent & {
|
|
18
23
|
event_id?: string;
|
|
19
24
|
})[]);
|
|
20
25
|
inferSdkFromEvent(event: SentryEvent): Sdk;
|
|
21
|
-
pushEnvelope(envelope
|
|
26
|
+
pushEnvelope({ envelope, rawEnvelope }: {
|
|
27
|
+
envelope: Envelope;
|
|
28
|
+
rawEnvelope: RawEventContext;
|
|
29
|
+
}): void;
|
|
22
30
|
pushEvent(event: SentryEvent & {
|
|
23
31
|
event_id?: string;
|
|
24
32
|
}): void;
|
|
25
33
|
getEvents(): SentryEvent[];
|
|
26
34
|
getTraces(): Trace[];
|
|
27
35
|
getSdks(): Sdk[];
|
|
36
|
+
getEnvelopes(): {
|
|
37
|
+
envelope: Envelope;
|
|
38
|
+
rawEnvelope: RawEventContext;
|
|
39
|
+
}[];
|
|
28
40
|
getEventById(id: string): SentryEvent | undefined;
|
|
29
41
|
getTraceById(id: string): Trace;
|
|
30
42
|
getEventsByTrace(traceId: string, spanId?: string | null): SentryEvent[];
|
|
@@ -13,6 +13,7 @@ export default function sentryIntegration(options?: SentryIntegrationOptions): {
|
|
|
13
13
|
setup: ({ open }: import("../integration").SpotlightContext) => () => void;
|
|
14
14
|
processEvent: (event: RawEventContext) => {
|
|
15
15
|
event: Envelope;
|
|
16
|
+
rawEvent: RawEventContext;
|
|
16
17
|
};
|
|
17
18
|
tabs: () => ({
|
|
18
19
|
id: string;
|
|
@@ -38,7 +39,8 @@ export default function sentryIntegration(options?: SentryIntegrationOptions): {
|
|
|
38
39
|
})[];
|
|
39
40
|
reset: () => void;
|
|
40
41
|
};
|
|
41
|
-
export declare function processEnvelope(
|
|
42
|
+
export declare function processEnvelope(rawEvent: RawEventContext): {
|
|
42
43
|
event: Envelope;
|
|
44
|
+
rawEvent: RawEventContext;
|
|
43
45
|
};
|
|
44
46
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function DeveloperInfoTab(): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spotlightjs/overlay",
|
|
3
3
|
"description": "The overlay of Spotlight to add debug interface to your web app.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.8.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"beautify": "^0.0.8",
|
|
50
50
|
"react-diff-viewer-continued": "^3.4.0",
|
|
51
51
|
"@types/beautify": "^0.0.3",
|
|
52
|
+
"react-json-view": "^1.21.3",
|
|
52
53
|
"@spotlightjs/tsconfig": "1.0.0"
|
|
53
54
|
},
|
|
54
55
|
"volta": {
|
|
File without changes
|
/package/dist/src/integrations/sentry/components/{EventDetails.d.ts → events/EventDetails.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/src/integrations/sentry/components/{TraceDetails.d.ts → traces/TraceDetails.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|