@spotlightjs/overlay 2.5.1 → 2.6.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,25 +1,27 @@
1
- import { C as t, D as o, a as e, b as n, R as i, d as E, h as r, m as p, n as l, l as S, o as D, e as R, i as T, j as g, k as h, f as N, s as _, p as c, t as v, v as A } from "./index-32570745.js";
2
- window.Spotlight && Spotlight.init();
1
+ import { C as o, D as t, a as e, b as i, R as E, d as r, h as l, m as p, n as c, l as D, o as R, e as T, i as g, j as N, k as _, f, s as h, p as v, t as A, v as C } from "./index-1149361f.js";
2
+ (function(s) {
3
+ s && s.init({ integrations: [s.sentry(), s.console()] });
4
+ })(window.Spotlight);
3
5
  export {
4
- t as CONTEXT_LINES_ENDPOINT,
5
- o as DEFAULT_ANCHOR,
6
+ o as CONTEXT_LINES_ENDPOINT,
7
+ t as DEFAULT_ANCHOR,
6
8
  e as DEFAULT_EXPERIMENTS,
7
- n as DEFAULT_SIDECAR_URL,
8
- i as React,
9
- E as ReactDOM,
10
- r as closeSpotlight,
9
+ i as DEFAULT_SIDECAR_URL,
10
+ E as React,
11
+ r as ReactDOM,
12
+ l as closeSpotlight,
11
13
  p as console,
12
- l as hydrationError,
13
- S as init,
14
- D as off,
15
- R as on,
16
- T as onClose,
17
- g as onOpen,
18
- h as onSevereEvent,
19
- N as openSpotlight,
20
- _ as sendEvent,
21
- c as sentry,
22
- v as trigger,
23
- A as viteInspect
14
+ c as hydrationError,
15
+ D as init,
16
+ R as off,
17
+ T as on,
18
+ g as onClose,
19
+ N as onOpen,
20
+ _ as onSevereEvent,
21
+ f as openSpotlight,
22
+ h as sendEvent,
23
+ v as sentry,
24
+ A as trigger,
25
+ C as viteInspect
24
26
  };
25
27
  //# sourceMappingURL=sentry-spotlight.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sentry-spotlight.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"sentry-spotlight.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
package/dist/types.d.ts CHANGED
@@ -89,6 +89,10 @@ export type SpotlightOverlayOptions = {
89
89
  * This is useful when replacing error pages of frameworks etc. Implies "injectImmediately".
90
90
  */
91
91
  initialEvents?: Record<string, (string | Uint8Array)[]>;
92
+ /**
93
+ * Initial path to navigate to, instead of the first tab.
94
+ */
95
+ startFrom?: string;
92
96
  };
93
97
  export type NotificationCount = {
94
98
  /**
@@ -105,5 +109,6 @@ export type WindowWithSpotlight = Window & {
105
109
  __spotlight?: {
106
110
  eventTarget?: EventTarget;
107
111
  initOptions?: SpotlightOverlayOptions;
112
+ console?: Record<string, (...args: unknown[]) => void>;
108
113
  };
109
114
  };
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.5.1",
4
+ "version": "2.6.0",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "files": [
@@ -16,42 +16,42 @@
16
16
  "require": "./dist/sentry-spotlight.umd.cjs"
17
17
  }
18
18
  },
19
- "dependencies": {},
20
19
  "devDependencies": {
20
+ "@fontsource/raleway": "^5.0.8",
21
21
  "@sentry/types": "^8.0.0-alpha.7",
22
22
  "@sentry/utils": "^8.0.0-alpha.7",
23
+ "@types/beautify": "^0.0.3",
23
24
  "@types/react": "^18.2.37",
24
25
  "@types/react-dom": "^18.2.15",
25
26
  "@typescript-eslint/eslint-plugin": "^6.0.0",
26
27
  "@typescript-eslint/parser": "^6.0.0",
27
28
  "@vitejs/plugin-react": "^4.0.3",
28
29
  "@vitest/coverage-v8": "^0.34.6",
30
+ "autoprefixer": "^10.4.15",
31
+ "beautify": "^0.0.8",
32
+ "dayjs": "^1.11.9",
29
33
  "eslint": "^8.45.0",
30
34
  "eslint-plugin-react-hooks": "^4.6.0",
31
35
  "eslint-plugin-react-refresh": "^0.4.3",
32
- "typescript": "^5.0.2",
33
- "vite": "^4.5.3",
34
- "vite-plugin-dts": "^3.5.2",
35
- "vite-plugin-svgr": "^3.2.0",
36
- "vitest": "^0.34.6",
37
- "@fontsource/raleway": "^5.0.8",
38
- "autoprefixer": "^10.4.15",
39
- "dayjs": "^1.11.9",
36
+ "happy-dom": "^15.7.4",
37
+ "magic-string": "^0.30.5",
40
38
  "platformicons": "^5.8.3",
41
39
  "postcss": "^8.4.28",
42
40
  "react": "^18.2.0",
41
+ "react-diff-viewer-continued": "^3.4.0",
43
42
  "react-dom": "^18.2.0",
43
+ "react-json-view": "^1.21.3",
44
44
  "react-router-dom": "^6.18.0",
45
45
  "sql-formatter": "^12.2.4",
46
46
  "tailwindcss": "^3.3.3",
47
+ "typescript": "^5.0.2",
47
48
  "usehooks-ts": "^2.9.1",
48
- "magic-string": "^0.30.5",
49
- "beautify": "^0.0.8",
50
- "react-diff-viewer-continued": "^3.4.0",
51
- "@types/beautify": "^0.0.3",
52
- "react-json-view": "^1.21.3",
53
- "@spotlightjs/tsconfig": "1.0.0",
54
- "@spotlightjs/sidecar": "1.8.0"
49
+ "vite": "^4.5.3",
50
+ "vite-plugin-dts": "^3.5.2",
51
+ "vite-plugin-svgr": "^3.2.0",
52
+ "vitest": "^0.34.6",
53
+ "@spotlightjs/sidecar": "1.8.0",
54
+ "@spotlightjs/tsconfig": "1.0.0"
55
55
  },
56
56
  "volta": {
57
57
  "extends": "../../package.json"