@spotlightjs/overlay 1.4.0 → 1.5.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,5 +1,6 @@
1
1
  import { SpotlightOverlayOptions } from './types.ts';
2
2
  export { default as console } from './integrations/console/index.ts';
3
+ export { default as hydrationError } from './integrations/hydration-error/index.ts';
3
4
  export { default as sentry } from './integrations/sentry/index.ts';
4
5
  export { default as viteInspect } from './integrations/vite-inspect/index.ts';
5
6
  /**
@@ -0,0 +1 @@
1
+ export default function HydrationErrorDisplay(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import HydrationErrorDisplay from './HydrationErrorDisplay';
2
+ export default function hydrationErrorIntegration(): {
3
+ name: string;
4
+ tabs: () => {
5
+ id: string;
6
+ title: string;
7
+ content: typeof HydrationErrorDisplay;
8
+ }[];
9
+ };
@@ -17,6 +17,7 @@ export declare class Spotlight implements Integration {
17
17
  type FetchImpl = typeof fetch;
18
18
  /**
19
19
  * We want to get an unpatched fetch implementation to avoid capturing our own calls.
20
+ * TODO: We might need to expose this as a utitly function so people can make requests without the SDK picking it put
20
21
  */
21
22
  export declare function getNativeFetchImplementation(): FetchImpl;
22
23
  export {};
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": "1.4.0",
4
+ "version": "1.5.0",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "files": [
@@ -46,6 +46,9 @@
46
46
  "tailwindcss": "^3.3.3",
47
47
  "usehooks-ts": "^2.9.1",
48
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",
49
52
  "@spotlightjs/tsconfig": "1.0.0"
50
53
  },
51
54
  "volta": {