@spotlightjs/overlay 2.4.0-next.3 → 2.4.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/{src/App.d.ts → App.d.ts} +1 -1
- package/dist/{src/components → components}/Debugger.d.ts +1 -2
- package/dist/{index-f526f404.js → index-4cc92fd8.js} +3470 -3434
- package/dist/index-4cc92fd8.js.map +1 -0
- package/dist/{src/index.d.ts → index.d.ts} +14 -10
- package/dist/{src/integrations → integrations}/integration.d.ts +4 -5
- package/dist/{src/integrations → integrations}/sentry/data/sentryDataCache.d.ts +1 -1
- package/dist/integrations/sentry/sentry-integration.d.ts +18 -0
- package/dist/lib/db.d.ts +8 -0
- package/dist/{main-9dde9a86.js → main-edd185de.js} +2 -2
- package/dist/{main-9dde9a86.js.map → main-edd185de.js.map} +1 -1
- package/dist/sentry-spotlight.d.ts +1 -1
- package/dist/sentry-spotlight.iife.js +82 -82
- package/dist/sentry-spotlight.iife.js.map +1 -1
- package/dist/sentry-spotlight.js +8 -7
- package/dist/sidecar.d.ts +2 -0
- package/dist/{src/types.d.ts → types.d.ts} +0 -7
- package/package.json +1 -1
- package/dist/index-f526f404.js.map +0 -1
- package/dist/src/integrations/sentry/sentry-integration.d.ts +0 -30
- package/dist/src/sidecar.d.ts +0 -3
- /package/dist/{src/components → components}/CardList.d.ts +0 -0
- /package/dist/{src/components → components}/Overview.d.ts +0 -0
- /package/dist/{src/components → components}/Tabs.d.ts +0 -0
- /package/dist/{src/components → components}/Time.d.ts +0 -0
- /package/dist/{src/components → components}/TimeSince.d.ts +0 -0
- /package/dist/{src/components → components}/Trigger.d.ts +0 -0
- /package/dist/{src/constants.d.ts → constants.d.ts} +0 -0
- /package/dist/{src/integrations → integrations}/console/console-tab.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/console/index.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/console/types.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/hydration-error/HydrationErrorDisplay.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/hydration-error/index.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/DateTime.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/HiddenItemsButton.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/PlatformIcon.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/SdkList.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/SpanResizer.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/Tags.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/developerInfo/EnvelopeDetails.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/developerInfo/EnvelopeList.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/developerInfo/JsonViewer.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/events/Event.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/events/EventBreadcrumbs.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/events/EventContexts.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/events/EventDetails.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/events/EventList.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/events/error/Error.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/events/error/Frame.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/performance/PerformanceTabDetails.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/performance/Queries.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/performance/QuerySummary.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/performance/Resources.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/performance/webVitals/PerformanceChart.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/performance/webVitals/WebVitalsDetail.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/performance/webVitals/index.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/traces/TraceDetails.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/traces/TraceIcon.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/traces/TraceList.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/traces/spans/SpanDetails.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/traces/spans/SpanItem.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/traces/spans/SpanTree.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/traces/traceDetail/TraceDetailHeader.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/traces/traceDetail/index.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/traces/traceInfo/TraceGeneralInfo.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/traces/traceInfo/TraceTags.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/components/traces/traceInfo/index.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/constants.d.ts +0 -0
- /package/dist/{test/integrations/sentry/data/sentryDataCache.test.d.ts → integrations/sentry/data/sentryDataCache.spec.d.ts} +0 -0
- /package/dist/{src/integrations → integrations}/sentry/data/sentryEventsContext.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/data/useSentryEnvelopes.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/data/useSentryEvents.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/data/useSentryHelpers.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/data/useSentrySdks.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/data/useSentrySpans.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/data/useSentryTraces.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/hooks/useDebounce.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/hooks/useMouseTracking.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/index.d.ts +0 -0
- /package/dist/{test/integrations/sentry/index.test.d.ts → integrations/sentry/index.spec.d.ts} +0 -0
- /package/dist/{src/integrations → integrations}/sentry/tabs/DeveloperInfo.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/tabs/ErrorsTab.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/tabs/PerformanceTab.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/tabs/SdksTab.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/tabs/TracesTab.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/types.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/utils/bytes.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/utils/duration.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/utils/fetch.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/utils/sdkToPlatform.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/sentry/utils/traces.d.ts +0 -0
- /package/dist/{test/integrations/sentry/utils/traces.test.d.ts → integrations/sentry/utils/traces.spec.d.ts} +0 -0
- /package/dist/{src/integrations → integrations}/sentry/utils/webVitals.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/vite-inspect/index.d.ts +0 -0
- /package/dist/{src/integrations → integrations}/vite-inspect/vite-inspect.d.ts +0 -0
- /package/dist/{src/lib → lib}/classNames.d.ts +0 -0
- /package/dist/{src/lib → lib}/eventTarget.d.ts +0 -0
- /package/dist/{src/lib → lib}/logger.d.ts +0 -0
- /package/dist/{src/lib → lib}/useKeyPress.d.ts +0 -0
- /package/dist/{src/lib → lib}/useSpotlightContext.d.ts +0 -0
- /package/dist/{src/lib → lib}/uuid.d.ts +0 -0
- /package/dist/{src/react-instance.d.ts → react-instance.d.ts} +0 -0
- /package/dist/{src/ui → ui}/Badge/Badge.d.ts +0 -0
- /package/dist/{src/ui → ui}/Badge/index.d.ts +0 -0
- /package/dist/{src/ui → ui}/Breadcrumbs/Breadcrumbs.d.ts +0 -0
- /package/dist/{src/ui → ui}/Breadcrumbs/index.d.ts +0 -0
- /package/dist/{src/ui → ui}/Chart/RingChart/RingChart.d.ts +0 -0
- /package/dist/{src/ui → ui}/Chart/RingChart/index.d.ts +0 -0
- /package/dist/{src/ui → ui}/Chart/index.d.ts +0 -0
- /package/dist/{src/ui → ui}/SidePanel/SidePanel.d.ts +0 -0
- /package/dist/{src/ui → ui}/SidePanel/index.d.ts +0 -0
- /package/dist/{src/ui → ui}/Tag/Tag.d.ts +0 -0
- /package/dist/{src/ui → ui}/Tag/index.d.ts +0 -0
- /package/dist/{src/ui → ui}/Tooltip/Tooltip.d.ts +0 -0
- /package/dist/{src/ui → ui}/Tooltip/index.d.ts +0 -0
- /package/dist/{src/utils → utils}/values.d.ts +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { CONTEXT_LINES_ENDPOINT } from '@spotlightjs/sidecar/constants';
|
|
2
|
-
import { DEFAULT_ANCHOR, DEFAULT_EXPERIMENTS, DEFAULT_SIDECAR_URL } from './constants
|
|
3
|
-
import { off, on, trigger } from './lib/eventTarget
|
|
4
|
-
import { React, ReactDOM } from './react-instance
|
|
5
|
-
import type { SpotlightOverlayOptions } from './types
|
|
6
|
-
export { default as console } from './integrations/console/index
|
|
7
|
-
export { default as hydrationError } from './integrations/hydration-error/index
|
|
8
|
-
export { default as sentry } from './integrations/sentry/index
|
|
9
|
-
export { default as viteInspect } from './integrations/vite-inspect/index
|
|
10
|
-
export type { SpotlightOverlayOptions, WindowWithSpotlight } from './types
|
|
2
|
+
import { DEFAULT_ANCHOR, DEFAULT_EXPERIMENTS, DEFAULT_SIDECAR_URL } from './constants';
|
|
3
|
+
import { off, on, trigger } from './lib/eventTarget';
|
|
4
|
+
import { React, ReactDOM } from './react-instance';
|
|
5
|
+
import type { SpotlightOverlayOptions } from './types';
|
|
6
|
+
export { default as console } from './integrations/console/index';
|
|
7
|
+
export { default as hydrationError } from './integrations/hydration-error/index';
|
|
8
|
+
export { default as sentry } from './integrations/sentry/index';
|
|
9
|
+
export { default as viteInspect } from './integrations/vite-inspect/index';
|
|
10
|
+
export type { SpotlightOverlayOptions, WindowWithSpotlight } from './types';
|
|
11
11
|
export { CONTEXT_LINES_ENDPOINT, DEFAULT_ANCHOR, DEFAULT_EXPERIMENTS, DEFAULT_SIDECAR_URL, React, ReactDOM, off, on, trigger, };
|
|
12
12
|
/**
|
|
13
13
|
* Open the Spotlight debugger Window
|
|
@@ -21,6 +21,10 @@ export declare function closeSpotlight(): Promise<void>;
|
|
|
21
21
|
* Invokes the passed in callback when the Spotlight debugger Window is closed
|
|
22
22
|
*/
|
|
23
23
|
export declare function onClose(cb: EventListener): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Send an event to spotlight without the sidecar
|
|
26
|
+
*/
|
|
27
|
+
export declare function sendEvent(contentType: string, data: string): Promise<void>;
|
|
24
28
|
/**
|
|
25
29
|
* Invokes the passed in callback when the Spotlight debugger Window is opened
|
|
26
30
|
*/
|
|
@@ -31,4 +35,4 @@ export declare function onOpen(cb: EventListener): Promise<void>;
|
|
|
31
35
|
* A count of the number of collected severe events is passed to the callback.
|
|
32
36
|
*/
|
|
33
37
|
export declare function onSevereEvent(cb: (count: number) => void): Promise<void>;
|
|
34
|
-
export declare function init({ openOnInit, showTriggerButton, injectImmediately, sidecarUrl, anchor, debug, integrations, experiments, fullPage, showClearEventsButton,
|
|
38
|
+
export declare function init({ openOnInit, showTriggerButton, injectImmediately, sidecarUrl, anchor, debug, integrations, experiments, fullPage, showClearEventsButton, }?: SpotlightOverlayOptions): Promise<void>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { type ExperimentsConfig, type NotificationCount } from '../types';
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { ExperimentsConfig, NotificationCount } from '../types';
|
|
4
3
|
export type SpotlightContext = {
|
|
5
4
|
open: (path: string | undefined) => void;
|
|
6
5
|
close: () => void;
|
|
@@ -95,8 +94,8 @@ export type RawEventContext = {
|
|
|
95
94
|
*
|
|
96
95
|
* Return the processed object or undefined if the event should be ignored.
|
|
97
96
|
*/
|
|
98
|
-
data: string |
|
|
97
|
+
data: string | Uint8Array;
|
|
99
98
|
};
|
|
100
99
|
type TeardownFunction = () => void | Promise<() => void>;
|
|
101
|
-
export declare function initIntegrations(integrations: Integration
|
|
100
|
+
export declare function initIntegrations(integrations: Integration[], context: SpotlightContext): Promise<[Integration[], TeardownFunction[]]>;
|
|
102
101
|
export {};
|
|
@@ -19,7 +19,7 @@ declare class SentryDataCache {
|
|
|
19
19
|
rawEnvelope: RawEventContext;
|
|
20
20
|
}[];
|
|
21
21
|
protected subscribers: Map<string, Subscription>;
|
|
22
|
-
protected contextLinesProvider: string
|
|
22
|
+
protected contextLinesProvider: string;
|
|
23
23
|
constructor(initial?: (SentryEvent & {
|
|
24
24
|
event_id?: string;
|
|
25
25
|
})[]);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Client, Event } from '@sentry/types';
|
|
2
|
+
/**
|
|
3
|
+
* A Sentry integration for Spotlight integration that the Overlay will inject automatically.
|
|
4
|
+
* This integration does the following:
|
|
5
|
+
*
|
|
6
|
+
* - Drop transactions created from interactions with the Spotlight UI
|
|
7
|
+
* - Forward Sentry events sent from the browser SDK to the Sidecar instance running on
|
|
8
|
+
* the same page via the "direct message" method (w/o a need for the sidecar)
|
|
9
|
+
*
|
|
10
|
+
* @returns Sentry integration for Spotlight.
|
|
11
|
+
*/
|
|
12
|
+
export declare const spotlightIntegration: () => {
|
|
13
|
+
name: string;
|
|
14
|
+
setupOnce: () => void;
|
|
15
|
+
setup: () => void;
|
|
16
|
+
processEvent: (event: Event) => Event | null;
|
|
17
|
+
afterAllSetup: (client: Client) => void;
|
|
18
|
+
};
|
package/dist/lib/db.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const MAX_AGE: number;
|
|
2
|
+
export declare const DB_NAME = "SentrySpotlight";
|
|
3
|
+
export declare const OBJECT_STORE_NAME = "events";
|
|
4
|
+
export declare const DB_VERSION = 2;
|
|
5
|
+
export declare function clearDBCache(): void;
|
|
6
|
+
export declare function add(value: unknown): Promise<unknown>;
|
|
7
|
+
export declare function getEntries(): Promise<unknown>;
|
|
8
|
+
export declare function reset(): Promise<unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as St, r as Ct, c as wt } from "./index-
|
|
1
|
+
import { g as St, r as Ct, c as wt } from "./index-4cc92fd8.js";
|
|
2
2
|
function At(rt, pt) {
|
|
3
3
|
for (var Ye = 0; Ye < pt.length; Ye++) {
|
|
4
4
|
const o = pt[Ye];
|
|
@@ -2779,4 +2779,4 @@ window.Spotlight && Spotlight.init();
|
|
|
2779
2779
|
export {
|
|
2780
2780
|
Ft as m
|
|
2781
2781
|
};
|
|
2782
|
-
//# sourceMappingURL=main-
|
|
2782
|
+
//# sourceMappingURL=main-edd185de.js.map
|