@spotlightjs/overlay 1.8.1 → 1.8.3

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,9 +1,12 @@
1
1
  import { SentryEvent } from '../types';
2
2
  import { ComponentPropsWithoutRef } from 'react';
3
3
  type Platform = 'python' | 'javascript' | 'node' | 'ruby' | 'csharp' | string;
4
- export default function PlatformIcon({ platform, event, size, ...props }: ComponentPropsWithoutRef<'svg'> & {
4
+ export default function PlatformIcon({ platform, event, size, width, height, title, ...props }: ComponentPropsWithoutRef<'svg'> & {
5
5
  size?: number;
6
6
  platform?: Platform;
7
7
  event?: SentryEvent;
8
+ height?: number;
9
+ width?: number;
10
+ title?: string;
8
11
  }): import("react/jsx-runtime").JSX.Element;
9
12
  export {};
@@ -0,0 +1,5 @@
1
+ import { Trace } from '../../types';
2
+ export type TraceIconProps = {
3
+ trace: Trace;
4
+ };
5
+ export default function TraceIcon({ trace }: TraceIconProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export default function ErrorsTab(): import("react/jsx-runtime").JSX.Element;
1
+ export default function TracesTab(): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
1
  import { type Integration } from './integrations/integration';
3
2
  export type ExperimentName = 'sentry:focus-local-events';
4
3
  export type ExperimentsConfig = Record<ExperimentName, boolean>;
@@ -101,15 +100,3 @@ export type WindowWithSpotlight = Window & {
101
100
  eventTarget?: EventTarget;
102
101
  };
103
102
  };
104
- export type SidePanelProps = Omit<ComponentPropsWithoutRef<'div'>, 'className'> & {
105
- backto: string;
106
- };
107
- export type CrumbProps = {
108
- id: string;
109
- label: string;
110
- link?: boolean;
111
- to?: string;
112
- };
113
- export type BreadcrumbProps = {
114
- crumbs: CrumbProps[];
115
- };
@@ -0,0 +1 @@
1
+ export { default } from './Badge';
@@ -0,0 +1,10 @@
1
+ export type CrumbProps = {
2
+ id: string;
3
+ label: string;
4
+ link?: boolean;
5
+ to?: string;
6
+ };
7
+ export type BreadcrumbProps = {
8
+ crumbs: CrumbProps[];
9
+ };
10
+ export default function Breadcrumbs({ crumbs }: BreadcrumbProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default } from './Breadcrumbs';
2
+ export type { BreadcrumbProps, CrumbProps } from './Breadcrumbs';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- type Props = React.HTMLAttributes<SVGSVGElement> & {
2
+ export type RingChartProps = React.HTMLAttributes<SVGSVGElement> & {
3
3
  backgroundColors: string[];
4
4
  maxValues: number[];
5
5
  segmentColors: string[];
@@ -24,5 +24,5 @@ type Props = React.HTMLAttributes<SVGSVGElement> & {
24
24
  x?: number;
25
25
  y?: number;
26
26
  };
27
- declare function RingChart({ values, maxValues, size, barWidth, text, textCss, segmentColors, backgroundColors, progressEndcaps, onHoverActions, onUnhover, ...p }: Props): import("react/jsx-runtime").JSX.Element;
27
+ declare function RingChart({ values, maxValues, size, barWidth, text, textCss, segmentColors, backgroundColors, progressEndcaps, onHoverActions, onUnhover, ...p }: RingChartProps): import("react/jsx-runtime").JSX.Element;
28
28
  export default RingChart;
@@ -0,0 +1,2 @@
1
+ export { default } from './RingChart';
2
+ export type { RingChartProps } from './RingChart';
@@ -0,0 +1 @@
1
+ export { default as RingChart } from './RingChart';
@@ -1,5 +1,7 @@
1
- import { type ReactNode } from 'react';
2
- import { SidePanelProps } from '../types';
1
+ import { ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ export type SidePanelProps = Omit<ComponentPropsWithoutRef<'div'>, 'className'> & {
3
+ backto: string;
4
+ };
3
5
  export declare function SidePanelHeader({ title, subtitle, backto, }: {
4
6
  title: ReactNode;
5
7
  subtitle?: ReactNode;
@@ -0,0 +1,2 @@
1
+ export { SidePanelHeader, default } from './SidePanel';
2
+ export type { SidePanelProps } from './SidePanel';
@@ -0,0 +1,5 @@
1
+ export type TagProps = {
2
+ tagKey: string;
3
+ value: string;
4
+ };
5
+ export default function Tag({ tagKey, value }: TagProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default } from './Tag';
2
+ export type { TagProps } from './Tag';
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ export type TooltipProps = {
3
+ content: string | ReactNode;
4
+ position?: 'top' | 'bottom' | 'left' | 'right';
5
+ children: ReactNode;
6
+ };
7
+ declare const Tooltip: ({ content, position, children }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default Tooltip;
@@ -0,0 +1,2 @@
1
+ export { default } from './Tooltip';
2
+ export type { TooltipProps } from './Tooltip';
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.8.1",
4
+ "version": "1.8.3",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "files": [