@spotlightjs/overlay 1.3.0 → 1.3.1

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.
@@ -0,0 +1,2 @@
1
+ import { BreadcrumbProps } from '../types';
2
+ export default function Breadcrumbs({ crumbs }: BreadcrumbProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ declare const Tooltip: ({ content, position, children, }: {
3
+ content: string | ReactNode;
4
+ position?: "top" | "bottom" | "left" | "right" | undefined;
5
+ children: ReactNode;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default Tooltip;
@@ -1,4 +1,4 @@
1
- declare const QueryTraces: ({ showAll }: {
1
+ declare const QuerySummary: ({ showAll }: {
2
2
  showAll: boolean;
3
3
  }) => import("react/jsx-runtime").JSX.Element | undefined;
4
- export default QueryTraces;
4
+ export default QuerySummary;
@@ -1,2 +1,4 @@
1
- declare const Resources: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const Resources: ({ showAll }: {
2
+ showAll: boolean;
3
+ }) => import("react/jsx-runtime").JSX.Element;
2
4
  export default Resources;
@@ -0,0 +1,49 @@
1
+ export declare const RESOURCES_SORT_KEYS: {
2
+ avgDuration: string;
3
+ timeSpent: string;
4
+ description: string;
5
+ avgEncodedSize: string;
6
+ };
7
+ export declare const RESOURCE_HEADERS: ({
8
+ id: string;
9
+ title: string;
10
+ sortKey: string;
11
+ primary: boolean;
12
+ } | {
13
+ id: string;
14
+ title: string;
15
+ sortKey: string;
16
+ primary?: undefined;
17
+ })[];
18
+ export declare const QUERIES_SORT_KEYS: {
19
+ queryDesc: string;
20
+ timeSpent: string;
21
+ avgDuration: string;
22
+ };
23
+ export declare const QUERIES_HEADERS: ({
24
+ id: string;
25
+ title: string;
26
+ sortKey: string;
27
+ primary: boolean;
28
+ } | {
29
+ id: string;
30
+ title: string;
31
+ sortKey: string;
32
+ primary?: undefined;
33
+ })[];
34
+ export declare const QUERY_SUMMARY_SORT_KEYS: {
35
+ foundIn: string;
36
+ spanId: string;
37
+ timeSpent: string;
38
+ };
39
+ export declare const QUERY_SUMMARY_HEADERS: ({
40
+ id: string;
41
+ title: string;
42
+ sortKey: string;
43
+ primary: boolean;
44
+ } | {
45
+ id: string;
46
+ title: string;
47
+ sortKey: string;
48
+ primary?: undefined;
49
+ })[];
@@ -14,4 +14,9 @@ export declare class Spotlight implements Integration {
14
14
  constructor(options?: SpotlightBrowserIntegationOptions);
15
15
  setupOnce(addGlobalEventProcessor: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
16
16
  }
17
+ type FetchImpl = typeof fetch;
18
+ /**
19
+ * We want to get an unpatched fetch implementation to avoid capturing our own calls.
20
+ */
21
+ export declare function getNativeFetchImplementation(): FetchImpl;
17
22
  export {};
@@ -97,3 +97,12 @@ export type WindowWithSpotlight = Window & {
97
97
  export type SidePanelProps = Omit<ComponentPropsWithoutRef<'div'>, 'className'> & {
98
98
  backto: string;
99
99
  };
100
+ export type CrumbProps = {
101
+ id: string;
102
+ label: string;
103
+ link?: boolean;
104
+ to?: string;
105
+ };
106
+ export type BreadcrumbProps = {
107
+ crumbs: CrumbProps[];
108
+ };
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.3.0",
4
+ "version": "1.3.1",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "files": [
@@ -1 +0,0 @@
1
- export declare const WebVitals: () => import("react/jsx-runtime").JSX.Element;