@spotlightjs/overlay 2.5.1 → 2.6.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.d.ts CHANGED
@@ -35,4 +35,4 @@ export declare function onOpen(cb: EventListener): Promise<void>;
35
35
  * A count of the number of collected severe events is passed to the callback.
36
36
  */
37
37
  export declare function onSevereEvent(cb: (count: number) => void): Promise<void>;
38
- export declare function init({ openOnInit, showTriggerButton, injectImmediately, sidecarUrl, anchor, debug, integrations, experiments, fullPage, showClearEventsButton, initialEvents, }?: SpotlightOverlayOptions): Promise<void>;
38
+ export declare function init(options?: SpotlightOverlayOptions): Promise<void>;
@@ -1,5 +1,12 @@
1
1
  import ConsoleTab from './console-tab';
2
- import { ConsoleMessage } from './types';
2
+ import type { ConsoleMessage } from './types';
3
+ /**
4
+ * This integration is meant to run on the same page where
5
+ * the Spotlight UI is running. For standalone UI cases such
6
+ * as the Electron app, we should publish a separate version
7
+ * that takes in the sidecar URL.
8
+ * @returns Integration Console integration for Spotlight
9
+ */
3
10
  export default function consoleIntegration(): {
4
11
  name: string;
5
12
  forwardedContentType: string[];
@@ -4,7 +4,7 @@ import type { Client, Event } from '@sentry/types';
4
4
  * This integration does the following:
5
5
  *
6
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
7
+ * - Forward Sentry events sent from the browser SDK to the Spotlight instance running on
8
8
  * the same page via the "direct message" method (w/o a need for the sidecar)
9
9
  *
10
10
  * @returns Sentry integration for Spotlight.
@@ -1,3 +1,4 @@
1
+ export declare const SPOTLIGHT_PREFIX = "\uD83D\uDD0E [Spotlight]";
1
2
  export declare function activateLogger(): void;
2
3
  export declare function deactivateLogger(): void;
3
4
  export declare function log(...args: unknown[]): void;