@visulima/vite-overlay 1.3.5 → 1.3.6

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/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## @visulima/vite-overlay [1.3.6](https://github.com/visulima/visulima/compare/@visulima/vite-overlay@1.3.5...@visulima/vite-overlay@1.3.6) (2025-11-12)
2
+
3
+ ### Bug Fixes
4
+
5
+ * update package configurations and TypeScript definitions ([b59aa59](https://github.com/visulima/visulima/commit/b59aa59dac1508216b944f4b917fb4a7ab1f70a4))
6
+
7
+ ### Miscellaneous Chores
8
+
9
+ * Add jsr file to all packages for release ([#565](https://github.com/visulima/visulima/issues/565)) ([ec91652](https://github.com/visulima/visulima/commit/ec91652b4e4112adf14ba152c1239a7703ba425a))
10
+
11
+
12
+ ### Dependencies
13
+
14
+ * **@visulima/error:** upgraded to 5.0.5
15
+ * **@visulima/path:** upgraded to 2.0.4
16
+
1
17
  ## @visulima/vite-overlay [1.3.5](https://github.com/visulima/visulima/compare/@visulima/vite-overlay@1.3.4...@visulima/vite-overlay@1.3.5) (2025-11-07)
2
18
 
3
19
  ### Bug Fixes
@@ -0,0 +1,14 @@
1
+ export declare const RECENT_ERROR_TTL_MS: 500;
2
+ export declare const MESSAGE_TYPE: string;
3
+ export declare const PLUGIN_NAME: string;
4
+ export declare const DEFAULT_ERROR_NAME: string;
5
+ export declare const DEFAULT_ERROR_MESSAGE: string;
6
+ export declare const CAUSE_CHAIN_DEPTH_LIMIT: number;
7
+ export declare const WEBSOCKET_MESSAGE_TYPE: string;
8
+ /**
9
+ * @deprecated Use MESSAGE_TYPE instead
10
+ * Kept for backward compatibility during transition period.
11
+ */
12
+ export declare const PLUGIN_VERSION: string;
13
+ export declare const ERROR_SEVERITY_LEVELS: Record<string, string>;
14
+ export type ErrorSeverity = (typeof ERROR_SEVERITY_LEVELS)[keyof typeof ERROR_SEVERITY_LEVELS];
package/dist/index.d.ts CHANGED
@@ -1,6 +1,18 @@
1
- import { SolutionFinder } from '@visulima/error/solution';
2
- import { Plugin } from 'vite';
3
-
1
+ import type { SolutionFinder } from "@visulima/error/solution";
2
+ import type { Plugin } from "vite";
3
+ /**
4
+ * Main Vite plugin for error overlay functionality.
5
+ * Intercepts runtime errors and displays them in a user-friendly overlay.
6
+ * @param options Plugin configuration options
7
+ * @param options.forwardConsole Whether to log client runtime errors (optional)
8
+ * @param options.forwardedConsoleMethods Array of console method names to forward (optional)
9
+ * @param [options.logClientRuntimeError] [deprecated] Use forwardConsole instead
10
+ * @param options.reactPluginName Custom React plugin name (optional)
11
+ * @param options.solutionFinders Custom solution finders (optional)
12
+ * @param options.vuePluginName Custom Vue plugin name (optional)
13
+ * @param options.showBallonButton Whether to show the balloon button (optional)
14
+ * @returns The Vite plugin configuration
15
+ */
4
16
  declare const errorOverlayPlugin: (options?: {
5
17
  forwardConsole?: boolean;
6
18
  forwardedConsoleMethods?: string[];
@@ -10,5 +22,8 @@ declare const errorOverlayPlugin: (options?: {
10
22
  solutionFinders?: SolutionFinder[];
11
23
  vuePluginName?: string;
12
24
  }) => Plugin;
13
-
14
- export { errorOverlayPlugin as default };
25
+ /**
26
+ * Default export of the Vite error overlay plugin.
27
+ * Use this plugin to enable error overlay functionality in your Vite project.
28
+ */
29
+ export default errorOverlayPlugin;