@spotlightjs/overlay 0.0.20 → 0.0.22

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.
package/dist/sidecar.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  import React from 'react';
2
2
  import { Integration, IntegrationData } from './integrations/integration';
3
- import { TriggerButtonCount } from './types';
4
- export declare function connectToSidecar(sidecarUrl: string, contentTypeToIntegrations: Map<string, Integration<unknown>[]>, setIntegrationData: React.Dispatch<React.SetStateAction<IntegrationData<unknown>>>, setOnline: React.Dispatch<React.SetStateAction<boolean>>, setTriggerButtonCount: React.Dispatch<React.SetStateAction<TriggerButtonCount>>): () => void;
3
+ export declare function connectToSidecar(sidecarUrl: string, contentTypeToIntegrations: Map<string, Integration<unknown>[]>, setIntegrationData: React.Dispatch<React.SetStateAction<IntegrationData<unknown>>>, setOnline: React.Dispatch<React.SetStateAction<boolean>>): () => void;
package/dist/types.d.ts CHANGED
@@ -65,9 +65,16 @@ export type SpotlightOverlayOptions = {
65
65
  */
66
66
  defaultEventId?: string;
67
67
  };
68
- export type TriggerButtonCount = {
69
- general: number;
70
- severe: number;
68
+ export type NotificationCount = {
69
+ /**
70
+ * Numbers of notifications
71
+ */
72
+ count: number;
73
+ /**
74
+ * Indicating that among the notification count, there's at least one severe notification.
75
+ * (This has impact on the UI, e.g. the notification count badge will be red)
76
+ */
77
+ severe?: boolean;
71
78
  };
72
79
  export type WindowWithSpotlight = Window & {
73
80
  __spotlight?: {
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "@spotlightjs/overlay",
3
3
  "description": "The overlay of Spotlight to add debug interface to your web app.",
4
- "version": "0.0.20",
4
+ "version": "0.0.22",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
10
10
  "main": "./dist/sentry-spotlight.js",
11
+ "types": "./dist/sentry-spotlight.d.ts",
11
12
  "exports": {
12
13
  ".": {
14
+ "types": "./dist/sentry-spotlight.d.ts",
13
15
  "import": "./dist/sentry-spotlight.js",
14
16
  "require": "./dist/sentry-spotlight.umd.cjs"
15
17
  }
@@ -35,7 +37,7 @@
35
37
  "@sentry/utils": "^7.77.0",
36
38
  "autoprefixer": "^10.4.15",
37
39
  "dayjs": "^1.11.9",
38
- "platformicons": "^5.6.2",
40
+ "platformicons": "^5.8.3",
39
41
  "postcss": "^8.4.28",
40
42
  "react": "^18.2.0",
41
43
  "react-dom": "^18.2.0",
@@ -43,6 +45,7 @@
43
45
  "sql-formatter": "^12.2.4",
44
46
  "tailwindcss": "^3.3.3",
45
47
  "usehooks-ts": "^2.9.1",
48
+ "magic-string": "^0.30.5",
46
49
  "@spotlightjs/tsconfig": "0.0.1"
47
50
  },
48
51
  "volta": {
@@ -50,7 +53,7 @@
50
53
  },
51
54
  "scripts": {
52
55
  "dev": "vite build --watch",
53
- "build": "tsc && vite build",
56
+ "build": "NODE_ENV=production tsc && vite build",
54
57
  "build:watch": "vite build --watch",
55
58
  "preview": "vite preview",
56
59
  "test": "vitest",