@spotlightjs/overlay 1.5.0 → 1.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.
@@ -1,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import { Integration, IntegrationData } from '../integrations/integration';
2
3
  import { NotificationCount } from '../types';
3
- export default function Debugger({ integrations, isOpen, setOpen, integrationData, isOnline, setTriggerButtonCount: setNotificationCount, fullPage, }: {
4
+ export default function Debugger({ integrations, isOpen, setOpen, integrationData, isOnline, setTriggerButtonCount: setNotificationCount, fullPage, setReloadSpotlight, }: {
4
5
  integrations: Integration[];
5
6
  isOpen: boolean;
6
7
  setOpen: (value: boolean) => void;
@@ -8,4 +9,5 @@ export default function Debugger({ integrations, isOpen, setOpen, integrationDat
8
9
  isOnline: boolean;
9
10
  setTriggerButtonCount: (count: NotificationCount) => void;
10
11
  fullPage: boolean;
12
+ setReloadSpotlight: React.Dispatch<React.SetStateAction<number>>;
11
13
  }): import("react/jsx-runtime").JSX.Element;
@@ -29,6 +29,7 @@ declare class SentryDataCache {
29
29
  getTraceById(id: string): Trace;
30
30
  getEventsByTrace(traceId: string, spanId?: string | null): SentryEvent[];
31
31
  getSpanById(traceId: string, spanId: string): Span | undefined;
32
+ resetData(): void;
32
33
  subscribe(...args: Subscription): () => void;
33
34
  /**
34
35
  * Mark a traceId as being seen in the local session.
@@ -1,7 +1,16 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import React from 'react';
3
3
  import { SentryEvent } from '../types';
4
- export declare const SentryEventsContext: React.Context<SentryEvent[]>;
4
+ interface SetEventsAction {
5
+ e: SentryEvent | SentryEvent[];
6
+ action: string;
7
+ }
8
+ interface SentryEventsContextProps {
9
+ events: SentryEvent[];
10
+ setEvents: React.Dispatch<SetEventsAction>;
11
+ }
12
+ export declare const SentryEventsContext: React.Context<SentryEventsContextProps>;
5
13
  export declare const SentryEventsContextProvider: React.FC<{
6
14
  children: ReactNode;
7
15
  }>;
16
+ export {};
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.5.0",
4
+ "version": "1.6.0",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "files": [