@spotlightjs/overlay 4.0.0 → 4.2.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
  interface TelemetrySidebarProps {
2
2
  errorCount: number;
3
3
  traceCount: number;
4
+ logCount: number;
4
5
  isOnline: boolean;
5
- showClearEventsButton: boolean;
6
6
  }
7
- export default function TelemetrySidebar({ errorCount, traceCount, isOnline, showClearEventsButton, }: TelemetrySidebarProps): import("react/jsx-runtime").JSX.Element;
7
+ export default function TelemetrySidebar({ errorCount, traceCount, logCount, isOnline }: TelemetrySidebarProps): import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -1,5 +1,4 @@
1
- export default function TelemetryView({ isOnline, showClearEventsButton, contextId, }: {
1
+ export default function TelemetryView({ isOnline, contextId, }: {
2
2
  isOnline: boolean;
3
- showClearEventsButton: boolean;
4
3
  contextId: string;
5
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { EnvelopeItem } from '@sentry/core';
2
+ export default function Attachment({ header, attachment }: {
3
+ header: EnvelopeItem[0];
4
+ attachment: string;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -6,12 +6,10 @@ interface FilterOption {
6
6
  interface FilterDropdownProps {
7
7
  icon: ElementType;
8
8
  label: string;
9
- tooltip: string;
10
9
  options: FilterOption[];
11
10
  activeFilters: string[];
12
11
  onFilterChange: (value: string, checked: boolean) => void;
13
- container: HTMLElement | null;
14
12
  type: "checkbox" | "radio";
15
13
  }
16
- export declare function FilterDropdown({ icon: Icon, label, tooltip, options, activeFilters, onFilterChange, container, type, }: FilterDropdownProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function FilterDropdown({ icon: Icon, label, options, activeFilters, onFilterChange, type, }: FilterDropdownProps): import("react/jsx-runtime").JSX.Element;
17
15
  export {};
@@ -2,4 +2,5 @@ export declare const ERROR_EVENT_TYPES: Set<string>;
2
2
  export declare const TRACE_EVENT_TYPES: Set<string>;
3
3
  export declare const PROFILE_EVENT_TYPES: Set<string>;
4
4
  export declare const LOG_EVENT_TYPES: Set<string>;
5
+ export declare const ATTACHMENT_EVENT_TYPES: Set<string>;
5
6
  export declare const SUPPORTED_EVENT_TYPES: Set<string>;
@@ -14,7 +14,6 @@ interface FilterOption {
14
14
  interface FilterConfig {
15
15
  icon: ElementType;
16
16
  label: string;
17
- tooltip: string;
18
17
  options: FilterOption[];
19
18
  show: boolean;
20
19
  type: "checkbox" | "radio";
@@ -9,7 +9,6 @@ export declare function setSidecarUrlInStore(url: string): void;
9
9
  export declare function processEnvelope(rawEvent: string | Envelope): Envelope;
10
10
  type TelemetryRouteProps = {
11
11
  sidecarUrl: string;
12
- showClearEventsButton: boolean;
13
12
  };
14
- export declare function Telemetry({ sidecarUrl, showClearEventsButton }: TelemetryRouteProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function Telemetry({ sidecarUrl }: TelemetryRouteProps): import("react/jsx-runtime").JSX.Element;
15
14
  export {};
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import type * as React from "react";
3
3
  declare const badgeVariants: (props?: ({
4
- variant?: "default" | "destructive" | "outline" | null | undefined;
4
+ variant?: "default" | "warning" | "destructive" | "outline" | "secondary" | "primary" | "neutral" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
7
  }
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": "4.0.0",
4
+ "version": "4.2.0",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "files": [
@@ -61,7 +61,7 @@
61
61
  "vite-plugin-svgr": "^3.3.0",
62
62
  "vitest": "^0.34.6",
63
63
  "zustand": "^5.0.3",
64
- "@spotlightjs/sidecar": "2.0.0",
64
+ "@spotlightjs/sidecar": "2.1.2",
65
65
  "@spotlightjs/tsconfig": "2.0.0"
66
66
  },
67
67
  "volta": {
@@ -1 +0,0 @@
1
- export declare function getSpotlightContainer(): HTMLElement | null;