Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@spotlightjs/overlay

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spotlightjs/overlay - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

dist/src/react-instance.d.ts

2

dist/src/App.d.ts
import { SpotlightOverlayOptions } from './types';
type AppProps = Omit<SpotlightOverlayOptions, 'debug' | 'injectImmediately'> & Required<Pick<SpotlightOverlayOptions, 'sidecarUrl'>>;
export default function App({ openOnInit, showTriggerButton, integrations, sidecarUrl, anchor, fullPage, }: AppProps): import("react/jsx-runtime").JSX.Element;
export default function App({ openOnInit, showTriggerButton, integrations, sidecarUrl, anchor, fullPage, showClearEventsButton, }: AppProps): import("react/jsx-runtime").JSX.Element;
export {};

@@ -1,5 +0,4 @@

/// <reference types="react" />
import { Integration, IntegrationData } from '../integrations/integration';
import { NotificationCount } from '../types';
export default function Debugger({ integrations, isOpen, setOpen, integrationData, isOnline, setTriggerButtonCount: setNotificationCount, fullPage, setReloadSpotlight, }: {
export default function Debugger({ integrations, isOpen, setOpen, integrationData, isOnline, setTriggerButtonCount: setNotificationCount, fullPage, showClearEventsButton, }: {
integrations: Integration[];

@@ -12,3 +11,3 @@ isOpen: boolean;

fullPage: boolean;
setReloadSpotlight: React.Dispatch<React.SetStateAction<number>>;
showClearEventsButton: boolean;
}): import("react/jsx-runtime").JSX.Element;

@@ -0,1 +1,2 @@

import { React, ReactDOM } from './react-instance.tsx';
import { SpotlightOverlayOptions } from './types.ts';

@@ -6,2 +7,3 @@ export { default as console } from './integrations/console/index.ts';

export { default as viteInspect } from './integrations/vite-inspect/index.ts';
export { React, ReactDOM };
/**

@@ -38,2 +40,2 @@ * Open the Spotlight debugger Window

export declare function trigger(eventName: string, payload: unknown): Promise<void>;
export declare function init({ openOnInit, showTriggerButton, injectImmediately, sidecarUrl, anchor, debug, integrations, experiments, fullPage, }?: SpotlightOverlayOptions): Promise<void>;
export declare function init({ openOnInit, showTriggerButton, injectImmediately, sidecarUrl, anchor, debug, integrations, experiments, fullPage, showClearEventsButton, }?: SpotlightOverlayOptions): Promise<void>;

@@ -44,2 +44,8 @@ import { type ComponentType } from 'react';

processEvent?: (eventContext: RawEventContext) => ProcessedEventContainer<T> | undefined;
/**
* To reset the integration.
*
* @returns void
*/
reset?: () => void;
};

@@ -46,0 +52,0 @@ export type IntegrationTab<T> = {

@@ -1,10 +0,10 @@

import { SentryErrorEvent, SentryEvent } from '../../types';
import { SentryEvent } from '../../types';
export declare function EventTitle({ event }: {
event: SentryErrorEvent | SentryEvent;
event: SentryEvent;
}): import("react/jsx-runtime").JSX.Element;
export declare function EventSummary({ event }: {
event: SentryErrorEvent | SentryEvent;
event: SentryEvent;
}): import("react/jsx-runtime").JSX.Element;
export default function Event({ event }: {
event: SentryErrorEvent | SentryEvent;
event: SentryEvent;
}): import("react/jsx-runtime").JSX.Element;

@@ -39,2 +39,3 @@ import type { Envelope } from '@sentry/types';

})[];
reset: () => void;
};

@@ -41,0 +42,0 @@ export declare function processEnvelope({ data }: RawEventContext): {

@@ -42,3 +42,3 @@ import { Measurements } from '@sentry/types';

timestamp: number;
message?: string;
message?: SentryFormattedMessage;
breadcrumbs?: Breadcrumb[] | {

@@ -80,4 +80,8 @@ values: Breadcrumb[];

};
export type SentryFormattedMessage = string | {
formatted: string;
params?: [];
};
export type SentryErrorEvent = CommonEventAttrs & {
type?: 'error' | 'event' | 'default';
type?: 'error' | 'event' | 'message' | 'default';
exception: EventException;

@@ -101,3 +105,3 @@ };

type: 'transaction';
spans: Span[];
spans?: Span[];
start_timestamp: string;

@@ -104,0 +108,0 @@ contexts: Contexts & {

@@ -80,2 +80,9 @@ import { ComponentPropsWithoutRef } from 'react';

fullPage?: boolean;
/**
* If set to `false`, spotlight overlay will not have Clear Events button.
* This is useful to clear data in spotlight.
*
* @default true
*/
showClearEventsButton?: boolean;
};

@@ -82,0 +89,0 @@ export type NotificationCount = {

{
"name": "@spotlightjs/overlay",
"description": "The overlay of Spotlight to add debug interface to your web app.",
"version": "1.6.0",
"version": "1.7.0",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "type": "module",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc