@spotlightjs/overlay 2.6.0 → 2.7.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/App.d.ts +2 -1
- package/dist/components/CardList.d.ts +1 -0
- package/dist/components/CopyToClipboard.d.ts +3 -0
- package/dist/components/Debugger.d.ts +3 -2
- package/dist/{integrations/sentry/components/developerInfo → components}/JsonViewer.d.ts +4 -4
- package/dist/components/OpenInEditor.d.ts +3 -0
- package/dist/components/Overview.d.ts +3 -2
- package/dist/components/Tabs.d.ts +2 -1
- package/dist/components/Time.d.ts +0 -1
- package/dist/components/TimeSince.d.ts +0 -1
- package/dist/components/Trigger.d.ts +2 -1
- package/dist/constants.d.ts +2 -1
- package/dist/index.d.ts +4 -3
- package/dist/integrations/console/console-tab.d.ts +2 -1
- package/dist/integrations/console/index.d.ts +4 -3
- package/dist/integrations/hydration-error/index.d.ts +2 -1
- package/dist/integrations/integration.d.ts +4 -2
- package/dist/integrations/sentry/components/DateTime.d.ts +0 -1
- package/dist/integrations/sentry/components/HiddenItemsButton.d.ts +2 -1
- package/dist/integrations/sentry/components/PlatformIcon.d.ts +1 -0
- package/dist/integrations/sentry/components/developerInfo/EnvelopeDetails.d.ts +3 -2
- package/dist/integrations/sentry/components/events/Event.d.ts +2 -1
- package/dist/integrations/sentry/components/events/EventBreadcrumbs.d.ts +1 -0
- package/dist/integrations/sentry/components/events/EventContexts.d.ts +1 -0
- package/dist/integrations/sentry/components/events/EventList.d.ts +3 -1
- package/dist/integrations/sentry/components/events/error/Error.d.ts +2 -1
- package/dist/integrations/sentry/components/events/error/Frame.d.ts +1 -0
- package/dist/integrations/sentry/components/performance/webVitals/PerformanceChart.d.ts +2 -1
- package/dist/integrations/sentry/components/traces/TraceDetails/components/TraceContext.d.ts +5 -0
- package/dist/integrations/sentry/components/traces/TraceDetails/components/TraceDetailHeader.d.ts +7 -0
- package/dist/integrations/sentry/components/traces/TraceDetails/components/TraceTreeview.d.ts +6 -0
- package/dist/integrations/sentry/components/traces/TraceIcon.d.ts +2 -1
- package/dist/integrations/sentry/components/traces/spans/SpanDetails.d.ts +1 -0
- package/dist/integrations/sentry/components/traces/spans/SpanItem.d.ts +6 -5
- package/dist/integrations/sentry/components/traces/spans/SpanTree.d.ts +1 -0
- package/dist/integrations/sentry/constants.d.ts +1 -0
- package/dist/integrations/sentry/data/sentryDataCache.d.ts +2 -1
- package/dist/integrations/sentry/data/sentryEventsContext.d.ts +3 -3
- package/dist/integrations/sentry/data/useSentryEnvelopes.d.ts +2 -2
- package/dist/integrations/sentry/data/useSentryEvents.d.ts +1 -1
- package/dist/integrations/sentry/data/useSentrySdks.d.ts +1 -1
- package/dist/integrations/sentry/data/useSentrySpans.d.ts +1 -0
- package/dist/integrations/sentry/data/useSentryTraces.d.ts +1 -1
- package/dist/integrations/sentry/hooks/useMouseTracking.d.ts +159 -160
- package/dist/integrations/sentry/index.d.ts +7 -7
- package/dist/integrations/sentry/sentry-integration.d.ts +3 -2
- package/dist/integrations/sentry/types.d.ts +4 -3
- package/dist/integrations/sentry/utils/traces.d.ts +1 -0
- package/dist/integrations/sentry/utils/webVitals.d.ts +2 -1
- package/dist/integrations/vite-inspect/index.d.ts +2 -1
- package/dist/lib/useSpotlightContext.d.ts +10 -3
- package/dist/react-instance.d.ts +3 -2
- package/dist/sentry-spotlight.iife.js +129 -128
- package/dist/sentry-spotlight.iife.js.map +1 -1
- package/dist/sentry-spotlight.js +29593 -23
- package/dist/sentry-spotlight.js.map +1 -1
- package/dist/sidecar.d.ts +2 -1
- package/dist/types.d.ts +2 -1
- package/dist/ui/Badge/Badge.d.ts +2 -1
- package/dist/ui/Chart/RingChart/RingChart.d.ts +0 -1
- package/dist/ui/SidePanel/SidePanel.d.ts +2 -1
- package/dist/ui/Tooltip/Tooltip.d.ts +2 -1
- package/dist/utils/remvoveURLSuffix.d.ts +1 -0
- package/package.json +28 -28
- package/dist/index-1149361f.js +0 -27326
- package/dist/index-1149361f.js.map +0 -1
- package/dist/integrations/sentry/components/traces/TraceDetails.d.ts +0 -1
- package/dist/integrations/sentry/components/traces/traceDetail/TraceDetailHeader.d.ts +0 -4
- package/dist/integrations/sentry/components/traces/traceInfo/TraceGeneralInfo.d.ts +0 -6
- package/dist/integrations/sentry/components/traces/traceInfo/TraceTags.d.ts +0 -6
- package/dist/integrations/sentry/components/traces/traceInfo/index.d.ts +0 -6
- package/dist/main-75aabe1c.js +0 -2784
- package/dist/main-75aabe1c.js.map +0 -1
- /package/dist/integrations/sentry/components/traces/{traceDetail → TraceDetails}/index.d.ts +0 -0
package/dist/App.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SpotlightOverlayOptions } from './types';
|
|
2
|
+
|
|
2
3
|
type AppProps = Omit<SpotlightOverlayOptions, 'debug' | 'injectImmediately'> & Required<Pick<SpotlightOverlayOptions, 'sidecarUrl'>>;
|
|
3
4
|
export default function App({ openOnInit, showTriggerButton, integrations, sidecarUrl, anchor, fullPage, showClearEventsButton, initialEvents, }: AppProps): import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Integration, IntegrationData } from '../integrations/integration';
|
|
2
|
+
import { NotificationCount } from '../types';
|
|
3
|
+
|
|
3
4
|
export default function Debugger({ integrations, isOpen, setOpen, integrationData, isOnline, setTriggerButtonCount: setNotificationCount, fullPage, showClearEventsButton, }: {
|
|
4
5
|
integrations: Integration[];
|
|
5
6
|
isOpen: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default function JsonViewer({ data, onUpdateData, editingEnabled, clipboardEnabled, displayDataTypes, quotesOnKeys, }: {
|
|
4
|
-
data: Envelope[0] | EnvelopeItem | RawEventContext;
|
|
1
|
+
export default function JsonViewer({ data, onUpdateData, editingEnabled, clipboardEnabled, displayDataTypes, quotesOnKeys, name, collapseStringsAfterLength, }: {
|
|
2
|
+
data: object;
|
|
5
3
|
onUpdateData?: (value: unknown) => void;
|
|
6
4
|
editingEnabled?: boolean;
|
|
7
5
|
clipboardEnabled?: boolean;
|
|
8
6
|
displayDataTypes?: boolean;
|
|
9
7
|
quotesOnKeys?: boolean;
|
|
8
|
+
name?: string | null | false;
|
|
9
|
+
collapseStringsAfterLength?: number;
|
|
10
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Integration, IntegrationData } from '../integrations/integration';
|
|
2
|
+
import { NotificationCount } from '../types';
|
|
3
|
+
|
|
3
4
|
export default function Overview({ integrations, integrationData, setTriggerButtonCount, setOpen, }: {
|
|
4
5
|
integrations: Integration[];
|
|
5
6
|
integrationData: IntegrationData<unknown>;
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare const DEFAULT_SIDECAR_URL = "http://localhost:8969
|
|
1
|
+
export declare const DEFAULT_SIDECAR_URL = "http://localhost:8969";
|
|
2
|
+
export declare const DEFAULT_SIDECAR_STREAM_URL: string;
|
|
2
3
|
export declare const DEFAULT_EXPERIMENTS: {
|
|
3
4
|
'sentry:focus-local-events': boolean;
|
|
4
5
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { CONTEXT_LINES_ENDPOINT } from '@spotlightjs/sidecar/constants';
|
|
2
|
-
import { DEFAULT_ANCHOR, DEFAULT_EXPERIMENTS,
|
|
2
|
+
import { DEFAULT_ANCHOR, DEFAULT_EXPERIMENTS, DEFAULT_SIDECAR_STREAM_URL } from './constants';
|
|
3
3
|
import { off, on, trigger } from './lib/eventTarget';
|
|
4
4
|
import { React, ReactDOM } from './react-instance';
|
|
5
|
-
import
|
|
5
|
+
import { SpotlightOverlayOptions } from './types';
|
|
6
|
+
|
|
6
7
|
export { default as console } from './integrations/console/index';
|
|
7
8
|
export { default as hydrationError } from './integrations/hydration-error/index';
|
|
8
9
|
export { default as sentry } from './integrations/sentry/index';
|
|
9
10
|
export { default as viteInspect } from './integrations/vite-inspect/index';
|
|
10
11
|
export type { SpotlightOverlayOptions, WindowWithSpotlight } from './types';
|
|
11
|
-
export { CONTEXT_LINES_ENDPOINT, DEFAULT_ANCHOR, DEFAULT_EXPERIMENTS, DEFAULT_SIDECAR_URL,
|
|
12
|
+
export { CONTEXT_LINES_ENDPOINT, DEFAULT_ANCHOR, DEFAULT_EXPERIMENTS, DEFAULT_SIDECAR_STREAM_URL as DEFAULT_SIDECAR_URL, off, on, React, ReactDOM, trigger, };
|
|
12
13
|
/**
|
|
13
14
|
* Open the Spotlight debugger Window
|
|
14
15
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import ConsoleTab from './console-tab';
|
|
2
|
-
import
|
|
1
|
+
import { default as ConsoleTab } from './console-tab';
|
|
2
|
+
import { ConsoleMessage } from './types';
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* This integration is meant to run on the same page where
|
|
5
6
|
* the Spotlight UI is running. For standalone UI cases such
|
|
@@ -21,7 +22,7 @@ export default function consoleIntegration(): {
|
|
|
21
22
|
content: typeof ConsoleTab;
|
|
22
23
|
}[];
|
|
23
24
|
setup: () => void;
|
|
24
|
-
processEvent({ data }: import(
|
|
25
|
+
processEvent({ data }: import('../integration').RawEventContext): {
|
|
25
26
|
event: ConsoleMessage;
|
|
26
27
|
};
|
|
27
28
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { ExperimentsConfig, NotificationCount } from '../types';
|
|
3
|
+
|
|
3
4
|
export type SpotlightContext = {
|
|
4
5
|
open: (path: string | undefined) => void;
|
|
5
6
|
close: () => void;
|
|
6
7
|
experiments: ExperimentsConfig;
|
|
8
|
+
sidecarUrl: string;
|
|
7
9
|
};
|
|
8
10
|
export type Integration<T = any> = {
|
|
9
11
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
|
|
2
3
|
export default function HiddenItemsButton({ itemCount, ...props }: Omit<ComponentProps<'button'>, 'className' | 'children'> & {
|
|
3
4
|
itemCount: number;
|
|
4
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SentryEvent } from '../types';
|
|
2
2
|
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
|
|
3
4
|
type Platform = 'python' | 'javascript' | 'node' | 'ruby' | 'csharp' | string;
|
|
4
5
|
export default function PlatformIcon({ platform, event, size, width, height, title, ...props }: ComponentPropsWithoutRef<'svg'> & {
|
|
5
6
|
size?: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Envelope } from '@sentry/types';
|
|
2
|
+
import { RawEventContext } from '../../../integration';
|
|
3
|
+
|
|
3
4
|
export default function EnvelopeDetails({ data }: {
|
|
4
5
|
data: {
|
|
5
6
|
envelope: Envelope;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MetricScoreProps, MetricWeightsProps } from '../../../types';
|
|
2
|
+
|
|
2
3
|
type PerformanceChartProps = {
|
|
3
4
|
metricScore: MetricScoreProps;
|
|
4
5
|
metricWeights: MetricWeightsProps;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Span, TraceContext } from '../../../types';
|
|
2
|
+
|
|
2
3
|
declare const SpanItem: ({ span, startTimestamp, totalDuration, depth, traceContext, totalTransactions, spanNodeWidth, setSpanNodeWidth, query, }: {
|
|
3
4
|
span: Span;
|
|
4
5
|
startTimestamp: number;
|
|
5
6
|
totalDuration: number;
|
|
6
|
-
depth?: number
|
|
7
|
+
depth?: number;
|
|
7
8
|
traceContext: TraceContext;
|
|
8
|
-
totalTransactions?: number
|
|
9
|
+
totalTransactions?: number;
|
|
9
10
|
spanNodeWidth: number;
|
|
10
|
-
setSpanNodeWidth?: (
|
|
11
|
-
query?: string
|
|
11
|
+
setSpanNodeWidth?: (val: number) => void;
|
|
12
|
+
query?: string;
|
|
12
13
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export default SpanItem;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Envelope } from '@sentry/types';
|
|
2
|
-
import { RawEventContext } from '
|
|
2
|
+
import { RawEventContext } from '../../integration';
|
|
3
3
|
import { Sdk, SentryErrorEvent, SentryEvent, Span, Trace } from '../types';
|
|
4
|
+
|
|
4
5
|
type OnlineSubscription = ['online', (status: boolean) => void];
|
|
5
6
|
type EventSubscription = ['event', (event: SentryEvent) => void];
|
|
6
7
|
type TraceSubscription = ['trace', (trace: Trace) => void];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { ReactNode, default as React } from 'react';
|
|
2
|
+
import { SentryEvent } from '../types';
|
|
3
|
+
|
|
4
4
|
interface SetEventsAction {
|
|
5
5
|
e: SentryEvent | SentryEvent[];
|
|
6
6
|
action: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useSentryEvents: () => import(
|
|
1
|
+
export declare const useSentryEvents: (traceId?: string) => import('../types').SentryEvent[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useSentrySdks: () => import(
|
|
1
|
+
export declare const useSentrySdks: () => import('../types').Sdk[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useSentryTraces: () => import(
|
|
1
|
+
export declare const useSentryTraces: () => import('../types').Trace[];
|