@spotlightjs/overlay 2.7.1 → 2.8.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 (48) hide show
  1. package/dist/constants.d.ts +1 -0
  2. package/dist/integrations/sentry/components/{developerInfo → explore/envelopes}/EnvelopeDetails.d.ts +1 -1
  3. package/dist/integrations/sentry/components/explore/envelopes/index.d.ts +1 -0
  4. package/dist/integrations/sentry/components/explore/index.d.ts +1 -0
  5. package/dist/integrations/sentry/components/{traces → explore/traces}/TraceDetails/components/TraceDetailHeader.d.ts +1 -1
  6. package/dist/integrations/sentry/components/explore/traces/TraceDetails/components/TraceRootTxnName.d.ts +6 -0
  7. package/dist/integrations/sentry/components/{traces → explore/traces}/TraceIcon.d.ts +1 -1
  8. package/dist/integrations/sentry/components/{traces → explore/traces}/spans/SpanDetails.d.ts +1 -1
  9. package/dist/integrations/sentry/components/{traces → explore/traces}/spans/SpanItem.d.ts +1 -1
  10. package/dist/integrations/sentry/components/{traces → explore/traces}/spans/SpanTree.d.ts +1 -1
  11. package/dist/integrations/sentry/components/insights/index.d.ts +1 -0
  12. package/dist/integrations/sentry/components/performance/TransactionDetail.d.ts +3 -0
  13. package/dist/integrations/sentry/components/performance/TransactionsList.d.ts +3 -0
  14. package/dist/integrations/sentry/constants.d.ts +35 -0
  15. package/dist/integrations/sentry/data/useSentryEnvelopes.d.ts +9 -3
  16. package/dist/integrations/sentry/data/useSentrySpans.d.ts +4 -1
  17. package/dist/integrations/sentry/hooks/useSort.d.ts +16 -0
  18. package/dist/integrations/sentry/index.d.ts +2 -11
  19. package/dist/integrations/sentry/tabs/ExploreTab.d.ts +1 -0
  20. package/dist/integrations/sentry/tabs/InsightsTab.d.ts +1 -0
  21. package/dist/integrations/sentry/types.d.ts +3 -4
  22. package/dist/integrations/sentry/utils/tabs.d.ts +3 -0
  23. package/dist/integrations/sentry/utils/text.d.ts +1 -0
  24. package/dist/react-instance.d.ts +2 -2
  25. package/dist/sentry-spotlight.iife.js +140 -115
  26. package/dist/sentry-spotlight.iife.js.map +1 -1
  27. package/dist/sentry-spotlight.js +24162 -12396
  28. package/dist/sentry-spotlight.js.map +1 -1
  29. package/dist/ui/Tag/Tag.d.ts +4 -2
  30. package/dist/utils/instrumentation.d.ts +2 -0
  31. package/package.json +4 -4
  32. package/dist/integrations/sentry/components/traces/TraceDetails/components/TraceContext.d.ts +0 -5
  33. package/dist/integrations/sentry/tabs/DeveloperInfo.d.ts +0 -1
  34. /package/dist/integrations/sentry/components/{developerInfo → explore/envelopes}/EnvelopeList.d.ts +0 -0
  35. /package/dist/integrations/sentry/components/{SdkList.d.ts → explore/sdks/SdkList.d.ts} +0 -0
  36. /package/dist/integrations/sentry/{tabs/SdksTab.d.ts → components/explore/sdks/index.d.ts} +0 -0
  37. /package/dist/integrations/sentry/components/{traces → explore/traces}/TraceDetails/components/TraceTreeview.d.ts +0 -0
  38. /package/dist/integrations/sentry/components/{traces → explore/traces}/TraceDetails/index.d.ts +0 -0
  39. /package/dist/integrations/sentry/components/{traces → explore/traces}/TraceList.d.ts +0 -0
  40. /package/dist/integrations/sentry/{tabs/TracesTab.d.ts → components/explore/traces/index.d.ts} +0 -0
  41. /package/dist/integrations/sentry/components/{performance → insights}/Queries.d.ts +0 -0
  42. /package/dist/integrations/sentry/components/{performance → insights}/QuerySummary.d.ts +0 -0
  43. /package/dist/integrations/sentry/components/{performance → insights}/Resources.d.ts +0 -0
  44. /package/dist/integrations/sentry/components/{performance → insights}/webVitals/PerformanceChart.d.ts +0 -0
  45. /package/dist/integrations/sentry/components/{performance → insights}/webVitals/WebVitalsDetail.d.ts +0 -0
  46. /package/dist/integrations/sentry/components/{performance → insights}/webVitals/index.d.ts +0 -0
  47. /package/dist/integrations/sentry/components/performance/{PerformanceTabDetails.d.ts → index.d.ts} +0 -0
  48. /package/dist/utils/{remvoveURLSuffix.d.ts → removeURLSuffix.d.ts} +0 -0
@@ -1,5 +1,7 @@
1
1
  export type TagProps = {
2
- tagKey: string;
2
+ tagKey?: string;
3
3
  value: string;
4
+ flowing?: boolean;
5
+ maxWidth?: string;
4
6
  };
5
- export default function Tag({ tagKey, value }: TagProps): import("react/jsx-runtime").JSX.Element;
7
+ export default function Tag({ tagKey, value, flowing, maxWidth }: TagProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ import * as Sentry from '@sentry/react';
2
+ export default function initSentry(initialTab: string, options?: Sentry.BrowserOptions): void;
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.7.1",
4
+ "version": "2.8.1",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "files": [
@@ -18,6 +18,8 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@fontsource/raleway": "^5.1.0",
21
+ "@microlink/react-json-view": "^1.23.4",
22
+ "@sentry/react": "^8.43.0",
21
23
  "@sentry/types": "^8.33.1",
22
24
  "@sentry/utils": "^8.33.1",
23
25
  "@types/beautify": "^0.0.3",
@@ -40,7 +42,6 @@
40
42
  "react": "^18.3.1",
41
43
  "react-diff-viewer-continued": "^3.4.0",
42
44
  "react-dom": "^18.3.1",
43
- "react-json-view": "^1.21.3",
44
45
  "react-router-dom": "^6.26.2",
45
46
  "sql-formatter": "^12.2.4",
46
47
  "tailwindcss": "^3.4.13",
@@ -50,7 +51,7 @@
50
51
  "vite-plugin-dts": "^3.9.1",
51
52
  "vite-plugin-svgr": "^3.3.0",
52
53
  "vitest": "^0.34.6",
53
- "@spotlightjs/sidecar": "1.9.1",
54
+ "@spotlightjs/sidecar": "1.9.3",
54
55
  "@spotlightjs/tsconfig": "1.0.1"
55
56
  },
56
57
  "volta": {
@@ -62,7 +63,6 @@
62
63
  "build:watch": "vite build --watch",
63
64
  "preview": "vite preview",
64
65
  "test": "vitest",
65
- "test:ci": "vitest --coverage --reporter=junit --reporter=default --outputFile=junit.xml",
66
66
  "sample": "node _fixtures/send_to_sidecar.cjs",
67
67
  "yalc:publish": "yalc publish --push --sig --private",
68
68
  "clean": "rimraf dist"
@@ -1,5 +0,0 @@
1
- type TraceContextProps = {
2
- traceId: string;
3
- };
4
- export default function TraceContext({ traceId }: TraceContextProps): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1 +0,0 @@
1
- export default function DeveloperInfoTab(): import("react/jsx-runtime").JSX.Element;