@spotlightjs/overlay 0.0.19 → 0.0.20

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 CHANGED
@@ -1,12 +1,4 @@
1
- import { type Anchor } from './components/Trigger';
2
- import type { Integration } from './integrations/integration';
3
- type AppProps = {
4
- fullScreen?: boolean;
5
- showTriggerButton?: boolean;
6
- defaultEventId?: string;
7
- integrations?: Integration[];
8
- sidecar: string;
9
- anchor?: Anchor;
10
- };
11
- export default function App({ fullScreen, showTriggerButton, defaultEventId, integrations, sidecar, anchor, }: AppProps): import("react/jsx-runtime").JSX.Element;
1
+ import { SpotlightOverlayOptions } from './types';
2
+ type AppProps = Omit<SpotlightOverlayOptions, 'debug' | 'injectImmediately'> & Required<Pick<SpotlightOverlayOptions, 'sidecarUrl'>>;
3
+ export default function App({ openOnInit, showTriggerButton, defaultEventId, integrations, sidecarUrl, anchor, }: AppProps): import("react/jsx-runtime").JSX.Element;
12
4
  export {};
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { type Anchor } from './components/Trigger.tsx';
2
- import type { Integration } from './integrations/integration.ts';
1
+ import { SpotlightOverlayOptions } from './types.ts';
3
2
  export { default as console } from './integrations/console/index.ts';
4
3
  export { default as sentry } from './integrations/sentry/index.ts';
5
4
  export { default as viteInspect } from './integrations/vite-inspect/index.ts';
@@ -25,14 +24,4 @@ export declare function onOpen(cb: () => void): Promise<void>;
25
24
  * A count of the number of collected severe events is passed to the callback.
26
25
  */
27
26
  export declare function onSevereEvent(cb: (count: number) => void): Promise<void>;
28
- export declare function init({ fullScreen, showTriggerButton, defaultEventId, injectImmediately, sidecar, anchor, debug, integrations, }?: {
29
- integrations?: Integration[];
30
- fullScreen?: boolean;
31
- defaultEventId?: string;
32
- sidecarUrl?: string;
33
- showTriggerButton?: boolean;
34
- injectImmediately?: boolean;
35
- sidecar?: string;
36
- anchor?: Anchor;
37
- debug?: boolean;
38
- }): Promise<void>;
27
+ export declare function init({ openOnInit, showTriggerButton, defaultEventId, injectImmediately, sidecarUrl, anchor, debug, integrations, }?: SpotlightOverlayOptions): Promise<void>;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { type ComponentType } from 'react';
2
2
  export type Integration<T = any> = {
3
3
  /**
4
4
  * Name of the integration
@@ -53,7 +53,7 @@ export type IntegrationTab<T> = {
53
53
  /**
54
54
  * JSX content of the tab. Go crazy, this is all yours!
55
55
  */
56
- content?: React.ComponentType<{
56
+ content?: ComponentType<{
57
57
  processedEvents: T[];
58
58
  }>;
59
59
  onSelect?: () => void;
@@ -5,6 +5,6 @@ export declare function ErrorTitle({ event }: {
5
5
  export declare function ErrorSummary({ event }: {
6
6
  event: SentryErrorEvent;
7
7
  }): import("react/jsx-runtime").JSX.Element;
8
- export default function Error({ event }: {
8
+ export declare function Error({ event }: {
9
9
  event: SentryErrorEvent;
10
10
  }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { SentryErrorEvent, SentryEvent } from '../../types';
2
+ export declare function EventTitle({ event }: {
3
+ event: SentryErrorEvent | SentryEvent;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export declare function EventSummary({ event }: {
6
+ event: SentryErrorEvent | SentryEvent;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ export default function Event({ event }: {
9
+ event: SentryErrorEvent | SentryEvent;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -38,6 +38,7 @@ export type Breadcrumb = {
38
38
  type CommonEventAttrs = {
39
39
  event_id: string;
40
40
  timestamp: number;
41
+ message?: string;
41
42
  breadcrumbs?: Breadcrumb[] | {
42
43
  values: Breadcrumb[];
43
44
  };