@spotlightjs/overlay 1.0.1 → 1.2.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 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;
@@ -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>;
@@ -1,6 +1,6 @@
1
1
  import { SentryEvent } from '../types';
2
2
  import { ComponentPropsWithoutRef } from 'react';
3
- type Platform = 'python' | 'javascript' | 'node' | 'ruby' | string;
3
+ type Platform = 'python' | 'javascript' | 'node' | 'ruby' | 'csharp' | string;
4
4
  export default function PlatformIcon({ platform, event, size, ...props }: ComponentPropsWithoutRef<'svg'> & {
5
5
  size?: number;
6
6
  platform?: Platform;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Normalizes SDK name to a platform. Can be as specific or unspecific as we support different platforms and SDKs.
3
3
  */
4
- export declare function sdkToPlatform(name: string): "javascript.astro" | "javascript" | "python" | "php" | "ruby" | "unknown";
4
+ export declare function sdkToPlatform(name: string): "javascript.astro" | "javascript" | "python" | "php" | "ruby" | "dotnet" | "unknown";
@@ -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
  /**
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": "1.0.1",
4
+ "version": "1.2.0",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "files": [