@spotlightjs/overlay 1.2.1 → 1.2.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,7 +1,8 @@
1
- import { ComponentPropsWithoutRef, type ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
+ import { SidePanelProps } from '../types';
2
3
  export declare function SidePanelHeader({ title, subtitle, backTo, }: {
3
4
  title: ReactNode;
4
5
  subtitle?: ReactNode;
5
6
  backTo: string;
6
7
  }): import("react/jsx-runtime").JSX.Element;
7
- export default function SidePanel(props: Omit<ComponentPropsWithoutRef<'div'>, 'className'>): import("react/jsx-runtime").JSX.Element;
8
+ export default function SidePanel(props: SidePanelProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,8 @@
1
1
  import { Span, TraceContext } from '../types';
2
- export default function SpanDetails({ traceContext, span, startTimestamp, totalDuration, }: {
2
+ export default function SpanDetails({ traceContext, span, startTimestamp, totalDuration, collapsible, }: {
3
3
  traceContext: TraceContext;
4
4
  span: Span;
5
5
  startTimestamp: number;
6
6
  totalDuration: number;
7
+ collapsible?: boolean;
7
8
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,10 @@
1
1
  import { Span, TraceContext } from '../types';
2
- declare const SpanItem: ({ span, startTimestamp, totalDuration, depth, traceContext, }: {
2
+ declare const SpanItem: ({ span, startTimestamp, totalDuration, depth, traceContext, collapsible, }: {
3
3
  span: Span;
4
4
  startTimestamp: number;
5
5
  totalDuration: number;
6
6
  depth?: number | undefined;
7
7
  traceContext: TraceContext;
8
+ collapsible?: boolean | undefined;
8
9
  }) => import("react/jsx-runtime").JSX.Element;
9
10
  export default SpanItem;
@@ -1,8 +1,9 @@
1
1
  import { Span, TraceContext } from '../types';
2
- export default function SpanTree({ traceContext, tree, startTimestamp, totalDuration, depth, }: {
2
+ export default function SpanTree({ traceContext, tree, startTimestamp, totalDuration, depth, collapsible, }: {
3
3
  traceContext: TraceContext;
4
4
  tree: Span[];
5
5
  startTimestamp: number;
6
6
  totalDuration: number;
7
7
  depth?: number;
8
+ collapsible?: boolean;
8
9
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
1
2
  import { type Integration } from './integrations/integration';
2
3
  export type ExperimentName = 'sentry:focus-local-events';
3
4
  export type ExperimentsConfig = Record<ExperimentName, boolean>;
@@ -93,3 +94,6 @@ export type WindowWithSpotlight = Window & {
93
94
  eventTarget?: EventTarget;
94
95
  };
95
96
  };
97
+ export type SidePanelProps = Omit<ComponentPropsWithoutRef<'div'>, 'className'> & {
98
+ backTo: string;
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.1",
4
+ "version": "1.2.3",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "files": [