@spotlightjs/overlay 1.0.0 → 1.1.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/sentry-spotlight.js +3932 -3884
- package/dist/sentry-spotlight.js.map +1 -1
- package/dist/sentry-spotlight.umd.cjs +73 -73
- package/dist/sentry-spotlight.umd.cjs.map +1 -1
- package/dist/src/App.d.ts +1 -1
- package/dist/src/components/Debugger.d.ts +2 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/integrations/sentry/components/SpanItem.d.ts +9 -0
- package/dist/src/types.d.ts +6 -0
- package/package.json +1 -1
package/dist/src/App.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SpotlightOverlayOptions } from './types';
|
|
2
2
|
type AppProps = Omit<SpotlightOverlayOptions, 'debug' | 'injectImmediately'> & Required<Pick<SpotlightOverlayOptions, 'sidecarUrl'>>;
|
|
3
|
-
export default function App({ openOnInit, showTriggerButton, integrations, sidecarUrl, anchor, }: AppProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default function App({ openOnInit, showTriggerButton, integrations, sidecarUrl, anchor, fullPage, }: AppProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Integration, IntegrationData } from '../integrations/integration';
|
|
2
2
|
import { NotificationCount } from '../types';
|
|
3
|
-
export default function Debugger({ integrations, isOpen, setOpen, integrationData, isOnline, setTriggerButtonCount: setNotificationCount, }: {
|
|
3
|
+
export default function Debugger({ integrations, isOpen, setOpen, integrationData, isOnline, setTriggerButtonCount: setNotificationCount, fullPage, }: {
|
|
4
4
|
integrations: Integration[];
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
setOpen: (value: boolean) => void;
|
|
7
7
|
integrationData: IntegrationData<unknown>;
|
|
8
8
|
isOnline: boolean;
|
|
9
9
|
setTriggerButtonCount: (count: NotificationCount) => void;
|
|
10
|
+
fullPage: boolean;
|
|
10
11
|
}): import("react/jsx-runtime").JSX.Element;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -33,4 +33,4 @@ export declare function onSevereEvent(cb: (count: number) => void): Promise<void
|
|
|
33
33
|
* e.g. trigger("sentry.showError", {eventId});
|
|
34
34
|
*/
|
|
35
35
|
export declare function trigger(eventName: string, payload: unknown): Promise<void>;
|
|
36
|
-
export declare function init({ openOnInit, showTriggerButton, injectImmediately, sidecarUrl, anchor, debug, integrations, experiments, }?: SpotlightOverlayOptions): Promise<void>;
|
|
36
|
+
export declare function init({ openOnInit, showTriggerButton, injectImmediately, sidecarUrl, anchor, debug, integrations, experiments, fullPage, }?: SpotlightOverlayOptions): Promise<void>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Span, TraceContext } from '../types';
|
|
2
|
+
declare const SpanItem: ({ span, startTimestamp, totalDuration, depth, traceContext, }: {
|
|
3
|
+
span: Span;
|
|
4
|
+
startTimestamp: number;
|
|
5
|
+
totalDuration: number;
|
|
6
|
+
depth?: number | undefined;
|
|
7
|
+
traceContext: TraceContext;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default SpanItem;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -70,6 +70,12 @@ export type SpotlightOverlayOptions = {
|
|
|
70
70
|
* Experimental configuration.
|
|
71
71
|
*/
|
|
72
72
|
experiments?: ExperimentsConfig;
|
|
73
|
+
/**
|
|
74
|
+
* If set to `true`, the Spotlight overlay will be rendered in full page mode.
|
|
75
|
+
* It can't be closed nor minimized.
|
|
76
|
+
* This is useful for replaceing error page or in when directly rendered as an html page
|
|
77
|
+
*/
|
|
78
|
+
fullPage?: boolean;
|
|
73
79
|
};
|
|
74
80
|
export type NotificationCount = {
|
|
75
81
|
/**
|