@spotlightjs/overlay 1.2.3 → 1.3.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,8 +1,8 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { SidePanelProps } from '../types';
3
- export declare function SidePanelHeader({ title, subtitle, backTo, }: {
3
+ export declare function SidePanelHeader({ title, subtitle, backto, }: {
4
4
  title: ReactNode;
5
5
  subtitle?: ReactNode;
6
- backTo: string;
6
+ backto: string;
7
7
  }): import("react/jsx-runtime").JSX.Element;
8
8
  export default function SidePanel(props: SidePanelProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function PerformanceTabDetails(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ declare const Queries: ({ showAll }: {
2
+ showAll: boolean;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default Queries;
@@ -0,0 +1,4 @@
1
+ declare const QueryTraces: ({ showAll }: {
2
+ showAll: boolean;
3
+ }) => import("react/jsx-runtime").JSX.Element | undefined;
4
+ export default QueryTraces;
@@ -0,0 +1,2 @@
1
+ declare const Resources: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Resources;
@@ -0,0 +1 @@
1
+ export declare const WebVitals: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { Span } from '../types';
2
+ export declare const useSentrySpans: () => Span[][];
@@ -1,7 +1,7 @@
1
1
  import type { Envelope } from '@sentry/types';
2
2
  import type { RawEventContext } from '../integration';
3
3
  import ErrorsTab from './tabs/ErrorsTab';
4
- import SdksTab from './tabs/SdksTab';
4
+ import PerformanceTab from './tabs/PerformanceTab';
5
5
  import TracesTab from './tabs/TracesTab';
6
6
  type SentryIntegrationOptions = {
7
7
  sidecarUrl?: string;
@@ -33,7 +33,7 @@ export default function sentryIntegration(options?: SentryIntegrationOptions): {
33
33
  } | {
34
34
  id: string;
35
35
  title: string;
36
- content: typeof SdksTab;
36
+ content: typeof PerformanceTab;
37
37
  notificationCount?: undefined;
38
38
  })[];
39
39
  };
@@ -0,0 +1 @@
1
+ export default function PerformanceTab(): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,21 @@
1
+ export declare const SECOND = 1000;
2
+ export declare const MINUTE = 60000;
3
+ export declare const HOUR = 3600000;
4
+ export declare const DAY = 86400000;
5
+ export declare const WEEK = 604800000;
6
+ export declare const MONTH = 2629800000;
7
+ export declare const YEAR = 31557600000;
8
+ export declare const DURATION_LABELS: {
9
+ yr: string;
10
+ mo: string;
11
+ wk: string;
12
+ d: string;
13
+ hr: string;
14
+ min: string;
15
+ s: string;
16
+ ms: string;
17
+ };
1
18
  export declare function getDuration(start: string | number, end: string | number): number;
2
19
  export declare function getSpanDurationClassName(duration: number): "text-red-400" | "text-orange-400" | "text-yellow-400" | undefined;
20
+ export declare function getFormattedNumber(num: number): string;
21
+ export declare function getFormattedDuration(duration: number): string;
@@ -95,5 +95,5 @@ export type WindowWithSpotlight = Window & {
95
95
  };
96
96
  };
97
97
  export type SidePanelProps = Omit<ComponentPropsWithoutRef<'div'>, 'className'> & {
98
- backTo: string;
98
+ backto: string;
99
99
  };
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.2.3",
4
+ "version": "1.3.0",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "files": [