@spotlightjs/overlay 2.2.0 → 2.3.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.
- package/dist/{index-2dea620f.js → index-b149f078.js} +12543 -12927
- package/dist/index-b149f078.js.map +1 -0
- package/dist/{main-d5f617e5.js → main-7291faaa.js} +708 -708
- package/dist/{main-d5f617e5.js.map → main-7291faaa.js.map} +1 -1
- package/dist/sentry-spotlight.iife.js +354 -0
- package/dist/sentry-spotlight.iife.js.map +1 -0
- package/dist/sentry-spotlight.js +20 -19
- package/dist/sentry-spotlight.js.map +1 -1
- package/dist/src/App.d.ts +1 -1
- package/dist/src/components/Debugger.d.ts +2 -2
- package/dist/src/components/Overview.d.ts +2 -2
- package/dist/src/index.d.ts +1 -1
- package/dist/src/integrations/console/console-tab.d.ts +1 -1
- package/dist/src/integrations/sentry/components/HiddenItemsButton.d.ts +1 -1
- package/dist/src/integrations/sentry/components/developerInfo/EnvelopeDetails.d.ts +2 -2
- package/dist/src/integrations/sentry/components/events/Event.d.ts +1 -1
- package/dist/src/integrations/sentry/components/events/error/Error.d.ts +2 -2
- package/dist/src/integrations/sentry/components/performance/webVitals/PerformanceChart.d.ts +1 -1
- package/dist/src/integrations/sentry/components/performance/webVitals/index.d.ts +1 -3
- package/dist/src/integrations/sentry/components/traces/TraceIcon.d.ts +1 -1
- package/dist/src/integrations/sentry/components/traces/spans/SpanItem.d.ts +1 -1
- package/dist/src/integrations/sentry/components/traces/traceInfo/TraceGeneralInfo.d.ts +1 -1
- package/dist/src/integrations/sentry/components/traces/traceInfo/TraceTags.d.ts +1 -1
- package/dist/src/integrations/sentry/components/traces/traceInfo/index.d.ts +1 -1
- package/dist/src/sidecar.d.ts +2 -2
- package/dist/src/ui/Chart/RingChart/RingChart.d.ts +2 -2
- package/dist/src/ui/Tooltip/Tooltip.d.ts +1 -1
- package/package.json +2 -2
- package/dist/index-2dea620f.js.map +0 -1
- package/dist/sentry-spotlight.umd.cjs +0 -354
- package/dist/sentry-spotlight.umd.cjs.map +0 -1
package/dist/sentry-spotlight.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as o, D as t, a as e, b as n, R as i, d as E, h as r, m as l, n as p, l as S, o as D, e as R, i as T, j as g, k as h, f as N, s as _, t as c, v as A } from "./index-b149f078.js";
|
|
2
|
+
window.Spotlight && Spotlight.init();
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
o as CONTEXT_LINES_ENDPOINT,
|
|
5
|
+
t as DEFAULT_ANCHOR,
|
|
6
|
+
e as DEFAULT_EXPERIMENTS,
|
|
6
7
|
n as DEFAULT_SIDECAR_URL,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
i as React,
|
|
9
|
+
E as ReactDOM,
|
|
10
|
+
r as closeSpotlight,
|
|
11
|
+
l as console,
|
|
12
|
+
p as hydrationError,
|
|
13
|
+
S as init,
|
|
14
|
+
D as off,
|
|
15
|
+
R as on,
|
|
16
|
+
T as onClose,
|
|
17
|
+
g as onOpen,
|
|
18
|
+
h as onSevereEvent,
|
|
19
|
+
N as openSpotlight,
|
|
20
|
+
_ as sentry,
|
|
21
|
+
c as trigger,
|
|
22
|
+
A as viteInspect
|
|
22
23
|
};
|
|
23
24
|
//# sourceMappingURL=sentry-spotlight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentry-spotlight.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sentry-spotlight.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/src/App.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SpotlightOverlayOptions } from './types';
|
|
1
|
+
import type { SpotlightOverlayOptions } from './types';
|
|
2
2
|
type AppProps = Omit<SpotlightOverlayOptions, 'debug' | 'injectImmediately'> & Required<Pick<SpotlightOverlayOptions, 'sidecarUrl'>>;
|
|
3
3
|
export default function App({ openOnInit, showTriggerButton, integrations, sidecarUrl, anchor, fullPage, showClearEventsButton, }: AppProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Integration, IntegrationData } from '../integrations/integration';
|
|
2
|
-
import { NotificationCount } from '../types';
|
|
1
|
+
import type { Integration, IntegrationData } from '../integrations/integration';
|
|
2
|
+
import type { NotificationCount } from '../types';
|
|
3
3
|
export default function Debugger({ integrations, isOpen, setOpen, integrationData, isOnline, setTriggerButtonCount: setNotificationCount, fullPage, showClearEventsButton, }: {
|
|
4
4
|
integrations: Integration[];
|
|
5
5
|
isOpen: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Integration, IntegrationData } from '../integrations/integration';
|
|
2
|
-
import { NotificationCount } from '../types';
|
|
1
|
+
import type { Integration, IntegrationData } from '../integrations/integration';
|
|
2
|
+
import type { NotificationCount } from '../types';
|
|
3
3
|
export default function Overview({ integrations, integrationData, setTriggerButtonCount, setOpen, }: {
|
|
4
4
|
integrations: Integration[];
|
|
5
5
|
integrationData: IntegrationData<unknown>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { CONTEXT_LINES_ENDPOINT } from '@spotlightjs/sidecar/constants';
|
|
|
2
2
|
import { DEFAULT_ANCHOR, DEFAULT_EXPERIMENTS, DEFAULT_SIDECAR_URL } from './constants.ts';
|
|
3
3
|
import { off, on, trigger } from './lib/eventTarget.ts';
|
|
4
4
|
import { React, ReactDOM } from './react-instance.tsx';
|
|
5
|
-
import { SpotlightOverlayOptions } from './types.ts';
|
|
5
|
+
import type { SpotlightOverlayOptions } from './types.ts';
|
|
6
6
|
export { default as console } from './integrations/console/index.ts';
|
|
7
7
|
export { default as hydrationError } from './integrations/hydration-error/index.ts';
|
|
8
8
|
export { default as sentry } from './integrations/sentry/index.ts';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
2
|
export default function HiddenItemsButton({ itemCount, ...props }: Omit<ComponentProps<'button'>, 'className' | 'children'> & {
|
|
3
3
|
itemCount: number;
|
|
4
4
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Envelope } from '@sentry/types';
|
|
2
|
-
import { RawEventContext } from '../../../../integrations/integration';
|
|
1
|
+
import type { Envelope } from '@sentry/types';
|
|
2
|
+
import type { RawEventContext } from '../../../../integrations/integration';
|
|
3
3
|
export default function EnvelopeDetails({ data }: {
|
|
4
4
|
data: {
|
|
5
5
|
envelope: Envelope;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SentryErrorEvent } from '../../../types';
|
|
1
|
+
import type { SentryErrorEvent } from '../../../types';
|
|
2
2
|
export declare function ErrorTitle({ event }: {
|
|
3
3
|
event: SentryErrorEvent;
|
|
4
4
|
}): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare function ErrorSummary({ event }: {
|
|
6
6
|
event: SentryErrorEvent;
|
|
7
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare function
|
|
8
|
+
export declare function ErrorItem({ event }: {
|
|
9
9
|
event: SentryErrorEvent;
|
|
10
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MetricScoreProps, MetricWeightsProps } from '../../../../../integrations/sentry/types';
|
|
1
|
+
import type { MetricScoreProps, MetricWeightsProps } from '../../../../../integrations/sentry/types';
|
|
2
2
|
type PerformanceChartProps = {
|
|
3
3
|
metricScore: MetricScoreProps;
|
|
4
4
|
metricWeights: MetricWeightsProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Span, TraceContext } from '../../../types';
|
|
1
|
+
import type { Span, TraceContext } from '../../../types';
|
|
2
2
|
declare const SpanItem: ({ span, startTimestamp, totalDuration, depth, traceContext, totalTransactions, spanNodeWidth, setSpanNodeWidth, query, }: {
|
|
3
3
|
span: Span;
|
|
4
4
|
startTimestamp: number;
|
package/dist/src/sidecar.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Integration, IntegrationData } from './integrations/integration';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { Integration, IntegrationData } from './integrations/integration';
|
|
3
3
|
export declare function connectToSidecar(sidecarUrl: string, contentTypeToIntegrations: Map<string, Integration<unknown>[]>, setIntegrationData: React.Dispatch<React.SetStateAction<IntegrationData<unknown>>>, setOnline: React.Dispatch<React.SetStateAction<boolean>>): () => void;
|
|
@@ -10,7 +10,7 @@ export type RingChartProps = React.HTMLAttributes<SVGSVGElement> & {
|
|
|
10
10
|
*/
|
|
11
11
|
barWidth?: number;
|
|
12
12
|
onHoverActions?: (() => void)[];
|
|
13
|
-
|
|
13
|
+
onBlur?: () => void;
|
|
14
14
|
/**
|
|
15
15
|
* Endcaps on the progress bar
|
|
16
16
|
*/
|
|
@@ -24,5 +24,5 @@ export type RingChartProps = React.HTMLAttributes<SVGSVGElement> & {
|
|
|
24
24
|
x?: number;
|
|
25
25
|
y?: number;
|
|
26
26
|
};
|
|
27
|
-
declare function RingChart({ values, maxValues, size, barWidth, text, textCss, segmentColors, backgroundColors, progressEndcaps, onHoverActions,
|
|
27
|
+
declare function RingChart({ values, maxValues, size, barWidth, text, textCss, segmentColors, backgroundColors, progressEndcaps, onHoverActions, onBlur, ...p }: RingChartProps): import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
export default RingChart;
|
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": "2.
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@types/beautify": "^0.0.3",
|
|
52
52
|
"react-json-view": "^1.21.3",
|
|
53
53
|
"@spotlightjs/tsconfig": "1.0.0",
|
|
54
|
-
"@spotlightjs/sidecar": "1.
|
|
54
|
+
"@spotlightjs/sidecar": "1.7.0"
|
|
55
55
|
},
|
|
56
56
|
"volta": {
|
|
57
57
|
"extends": "../../package.json"
|