@spotlightjs/overlay 2.6.0 → 2.7.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.
Files changed (74) hide show
  1. package/dist/App.d.ts +2 -1
  2. package/dist/components/CardList.d.ts +1 -0
  3. package/dist/components/CopyToClipboard.d.ts +3 -0
  4. package/dist/components/Debugger.d.ts +3 -2
  5. package/dist/{integrations/sentry/components/developerInfo → components}/JsonViewer.d.ts +4 -4
  6. package/dist/components/OpenInEditor.d.ts +3 -0
  7. package/dist/components/Overview.d.ts +3 -2
  8. package/dist/components/Tabs.d.ts +2 -1
  9. package/dist/components/Time.d.ts +0 -1
  10. package/dist/components/TimeSince.d.ts +0 -1
  11. package/dist/components/Trigger.d.ts +2 -1
  12. package/dist/constants.d.ts +2 -1
  13. package/dist/index.d.ts +4 -3
  14. package/dist/integrations/console/console-tab.d.ts +2 -1
  15. package/dist/integrations/console/index.d.ts +4 -3
  16. package/dist/integrations/hydration-error/index.d.ts +2 -1
  17. package/dist/integrations/integration.d.ts +4 -2
  18. package/dist/integrations/sentry/components/DateTime.d.ts +0 -1
  19. package/dist/integrations/sentry/components/HiddenItemsButton.d.ts +2 -1
  20. package/dist/integrations/sentry/components/PlatformIcon.d.ts +1 -0
  21. package/dist/integrations/sentry/components/developerInfo/EnvelopeDetails.d.ts +3 -2
  22. package/dist/integrations/sentry/components/events/Event.d.ts +2 -1
  23. package/dist/integrations/sentry/components/events/EventBreadcrumbs.d.ts +1 -0
  24. package/dist/integrations/sentry/components/events/EventContexts.d.ts +1 -0
  25. package/dist/integrations/sentry/components/events/EventList.d.ts +3 -1
  26. package/dist/integrations/sentry/components/events/error/Error.d.ts +2 -1
  27. package/dist/integrations/sentry/components/events/error/Frame.d.ts +1 -0
  28. package/dist/integrations/sentry/components/performance/webVitals/PerformanceChart.d.ts +2 -1
  29. package/dist/integrations/sentry/components/traces/TraceDetails/components/TraceContext.d.ts +5 -0
  30. package/dist/integrations/sentry/components/traces/TraceDetails/components/TraceDetailHeader.d.ts +7 -0
  31. package/dist/integrations/sentry/components/traces/TraceDetails/components/TraceTreeview.d.ts +6 -0
  32. package/dist/integrations/sentry/components/traces/TraceIcon.d.ts +2 -1
  33. package/dist/integrations/sentry/components/traces/spans/SpanDetails.d.ts +1 -0
  34. package/dist/integrations/sentry/components/traces/spans/SpanItem.d.ts +6 -5
  35. package/dist/integrations/sentry/components/traces/spans/SpanTree.d.ts +1 -0
  36. package/dist/integrations/sentry/constants.d.ts +1 -0
  37. package/dist/integrations/sentry/data/sentryDataCache.d.ts +2 -1
  38. package/dist/integrations/sentry/data/sentryEventsContext.d.ts +3 -3
  39. package/dist/integrations/sentry/data/useSentryEnvelopes.d.ts +2 -2
  40. package/dist/integrations/sentry/data/useSentryEvents.d.ts +1 -1
  41. package/dist/integrations/sentry/data/useSentrySdks.d.ts +1 -1
  42. package/dist/integrations/sentry/data/useSentrySpans.d.ts +1 -0
  43. package/dist/integrations/sentry/data/useSentryTraces.d.ts +1 -1
  44. package/dist/integrations/sentry/hooks/useMouseTracking.d.ts +159 -160
  45. package/dist/integrations/sentry/index.d.ts +7 -7
  46. package/dist/integrations/sentry/sentry-integration.d.ts +3 -2
  47. package/dist/integrations/sentry/types.d.ts +4 -3
  48. package/dist/integrations/sentry/utils/traces.d.ts +1 -0
  49. package/dist/integrations/sentry/utils/webVitals.d.ts +2 -1
  50. package/dist/integrations/vite-inspect/index.d.ts +2 -1
  51. package/dist/lib/useSpotlightContext.d.ts +10 -3
  52. package/dist/react-instance.d.ts +3 -2
  53. package/dist/sentry-spotlight.iife.js +129 -128
  54. package/dist/sentry-spotlight.iife.js.map +1 -1
  55. package/dist/sentry-spotlight.js +29593 -23
  56. package/dist/sentry-spotlight.js.map +1 -1
  57. package/dist/sidecar.d.ts +2 -1
  58. package/dist/types.d.ts +2 -1
  59. package/dist/ui/Badge/Badge.d.ts +2 -1
  60. package/dist/ui/Chart/RingChart/RingChart.d.ts +0 -1
  61. package/dist/ui/SidePanel/SidePanel.d.ts +2 -1
  62. package/dist/ui/Tooltip/Tooltip.d.ts +2 -1
  63. package/dist/utils/remvoveURLSuffix.d.ts +1 -0
  64. package/package.json +29 -29
  65. package/dist/index-1149361f.js +0 -27326
  66. package/dist/index-1149361f.js.map +0 -1
  67. package/dist/integrations/sentry/components/traces/TraceDetails.d.ts +0 -1
  68. package/dist/integrations/sentry/components/traces/traceDetail/TraceDetailHeader.d.ts +0 -4
  69. package/dist/integrations/sentry/components/traces/traceInfo/TraceGeneralInfo.d.ts +0 -6
  70. package/dist/integrations/sentry/components/traces/traceInfo/TraceTags.d.ts +0 -6
  71. package/dist/integrations/sentry/components/traces/traceInfo/index.d.ts +0 -6
  72. package/dist/main-75aabe1c.js +0 -2784
  73. package/dist/main-75aabe1c.js.map +0 -1
  74. /package/dist/integrations/sentry/components/traces/{traceDetail → TraceDetails}/index.d.ts +0 -0
package/dist/sidecar.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- import type React from 'react';
1
+ import { default as React } from 'react';
2
+
2
3
  export declare function connectToSidecar(sidecarUrl: string, contentTypeListeners: Record<string, (event: MessageEvent) => void>, setOnline: React.Dispatch<React.SetStateAction<boolean>>): () => void;
package/dist/types.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import type { Integration } from './integrations/integration';
1
+ import { Integration } from './integrations/integration';
2
+
2
3
  export type ExperimentName = 'sentry:focus-local-events';
3
4
  export type ExperimentsConfig = Record<ExperimentName, boolean>;
4
5
  export type AnchorConfig = 'bottomRight' | 'bottomLeft' | 'centerRight' | 'centerLeft' | 'topLeft' | 'topRight';
@@ -1,2 +1,3 @@
1
- import { type ComponentProps } from 'react';
1
+ import { ComponentProps } from 'react';
2
+
2
3
  export default function Badge(props: Omit<ComponentProps<'span'>, 'className'>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type RingChartProps = React.HTMLAttributes<SVGSVGElement> & {
3
2
  backgroundColors: string[];
4
3
  maxValues: number[];
@@ -1,4 +1,5 @@
1
- import { ComponentPropsWithoutRef, type ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+
2
3
  export type SidePanelProps = Omit<ComponentPropsWithoutRef<'div'>, 'className'> & {
3
4
  backto: string;
4
5
  };
@@ -1,4 +1,5 @@
1
- import { type ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
+
2
3
  export type TooltipProps = {
3
4
  content: string | ReactNode;
4
5
  position?: 'top' | 'bottom' | 'left' | 'right';
@@ -0,0 +1 @@
1
+ export declare function removeURLSuffix(url: string, suffix: string): 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.6.0",
4
+ "version": "2.7.1",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "files": [
@@ -17,41 +17,41 @@
17
17
  }
18
18
  },
19
19
  "devDependencies": {
20
- "@fontsource/raleway": "^5.0.8",
21
- "@sentry/types": "^8.0.0-alpha.7",
22
- "@sentry/utils": "^8.0.0-alpha.7",
20
+ "@fontsource/raleway": "^5.1.0",
21
+ "@sentry/types": "^8.33.1",
22
+ "@sentry/utils": "^8.33.1",
23
23
  "@types/beautify": "^0.0.3",
24
- "@types/react": "^18.2.37",
25
- "@types/react-dom": "^18.2.15",
26
- "@typescript-eslint/eslint-plugin": "^6.0.0",
27
- "@typescript-eslint/parser": "^6.0.0",
28
- "@vitejs/plugin-react": "^4.0.3",
24
+ "@types/react": "^18.3.11",
25
+ "@types/react-dom": "^18.3.0",
26
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
27
+ "@typescript-eslint/parser": "^6.21.0",
28
+ "@vitejs/plugin-react": "^4.3.2",
29
29
  "@vitest/coverage-v8": "^0.34.6",
30
- "autoprefixer": "^10.4.15",
30
+ "autoprefixer": "^10.4.20",
31
31
  "beautify": "^0.0.8",
32
- "dayjs": "^1.11.9",
33
- "eslint": "^8.45.0",
34
- "eslint-plugin-react-hooks": "^4.6.0",
35
- "eslint-plugin-react-refresh": "^0.4.3",
36
- "happy-dom": "^15.7.4",
37
- "magic-string": "^0.30.5",
38
- "platformicons": "^5.8.3",
39
- "postcss": "^8.4.28",
40
- "react": "^18.2.0",
32
+ "dayjs": "^1.11.13",
33
+ "eslint": "^8.57.1",
34
+ "eslint-plugin-react-hooks": "^4.6.2",
35
+ "eslint-plugin-react-refresh": "^0.4.12",
36
+ "happy-dom": "^15.10.2",
37
+ "magic-string": "^0.30.11",
38
+ "platformicons": "^5.10.10",
39
+ "postcss": "^8.4.47",
40
+ "react": "^18.3.1",
41
41
  "react-diff-viewer-continued": "^3.4.0",
42
- "react-dom": "^18.2.0",
42
+ "react-dom": "^18.3.1",
43
43
  "react-json-view": "^1.21.3",
44
- "react-router-dom": "^6.18.0",
44
+ "react-router-dom": "^6.26.2",
45
45
  "sql-formatter": "^12.2.4",
46
- "tailwindcss": "^3.3.3",
47
- "typescript": "^5.0.2",
48
- "usehooks-ts": "^2.9.1",
49
- "vite": "^4.5.3",
50
- "vite-plugin-dts": "^3.5.2",
51
- "vite-plugin-svgr": "^3.2.0",
46
+ "tailwindcss": "^3.4.13",
47
+ "typescript": "^5.6.2",
48
+ "usehooks-ts": "^2.16.0",
49
+ "vite": "^5.4.11",
50
+ "vite-plugin-dts": "^3.9.1",
51
+ "vite-plugin-svgr": "^3.3.0",
52
52
  "vitest": "^0.34.6",
53
- "@spotlightjs/sidecar": "1.8.0",
54
- "@spotlightjs/tsconfig": "1.0.0"
53
+ "@spotlightjs/sidecar": "1.9.1",
54
+ "@spotlightjs/tsconfig": "1.0.1"
55
55
  },
56
56
  "volta": {
57
57
  "extends": "../../package.json"