@spotlightjs/overlay 2.0.0-alpha.2 → 2.0.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 { Span, TraceContext } from '../../../types';
2
- export default function SpanDetails({ traceContext, span, startTimestamp, totalDuration, collapsible, }: {
2
+ export default function SpanDetails({ traceContext, span, startTimestamp, totalDuration, totalTransactions, }: {
3
3
  traceContext: TraceContext;
4
4
  span: Span;
5
+ totalTransactions?: number;
5
6
  startTimestamp: number;
6
7
  totalDuration: number;
7
- collapsible?: boolean;
8
8
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,11 @@
1
1
  import { Span, TraceContext } from '../../../types';
2
- declare const SpanItem: ({ span, startTimestamp, totalDuration, depth, traceContext, collapsible, spanNodeWidth, setSpanNodeWidth, }: {
2
+ declare const SpanItem: ({ span, startTimestamp, totalDuration, depth, traceContext, totalTransactions, spanNodeWidth, setSpanNodeWidth, }: {
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
+ totalTransactions?: number | undefined;
9
9
  spanNodeWidth: number;
10
10
  setSpanNodeWidth?: ((val: number) => void) | undefined;
11
11
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,11 @@
1
1
  import { Span, TraceContext } from '../../../types';
2
- export default function SpanTree({ traceContext, tree, startTimestamp, totalDuration, depth, collapsible, spanNodeWidth, setSpanNodeWidth, }: {
2
+ export default function SpanTree({ traceContext, tree, startTimestamp, totalDuration, depth, totalTransactions, spanNodeWidth, setSpanNodeWidth, }: {
3
3
  traceContext: TraceContext;
4
4
  tree: Span[];
5
5
  startTimestamp: number;
6
6
  totalDuration: number;
7
7
  depth?: number;
8
- collapsible?: boolean;
8
+ totalTransactions?: number;
9
9
  spanNodeWidth: number;
10
10
  setSpanNodeWidth?: (val: number) => void;
11
11
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Normalizes SDK name to a platform. Can be as specific or unspecific as we support different platforms and SDKs.
3
3
  */
4
- export declare function sdkToPlatform(name: string): "javascript.astro" | "javascript" | "java" | "python" | "php" | "ruby" | "dotnet" | "unknown";
4
+ export declare function sdkToPlatform(name: string): "javascript.astro" | "javascript" | "java" | "python" | "php.laravel" | "php.symfony" | "php" | "ruby" | "dotnet" | "unknown";
@@ -0,0 +1 @@
1
+ export declare function renderValue(value: unknown): string;
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": "2.0.0-alpha.2",
4
+ "version": "2.0.0",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "files": [