@visulima/vite-overlay 2.0.0-alpha.24 → 2.0.0-alpha.26
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 +18 -0
- package/dist/index.js +11 -11
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## @visulima/vite-overlay [2.0.0-alpha.26](https://github.com/visulima/visulima/compare/@visulima/vite-overlay@2.0.0-alpha.25...@visulima/vite-overlay@2.0.0-alpha.26) (2026-05-14)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* **vite-overlay:** apply prettier and eslint formatting sweep ([21712b7](https://github.com/visulima/visulima/commit/21712b7acf46f2bef5b1b06c4087282267d9d433))
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Dependencies
|
|
9
|
+
|
|
10
|
+
* **@visulima/error:** upgraded to 6.0.0-alpha.24
|
|
11
|
+
|
|
12
|
+
## @visulima/vite-overlay [2.0.0-alpha.25](https://github.com/visulima/visulima/compare/@visulima/vite-overlay@2.0.0-alpha.24...@visulima/vite-overlay@2.0.0-alpha.25) (2026-05-11)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Dependencies
|
|
16
|
+
|
|
17
|
+
* **@visulima/error:** upgraded to 6.0.0-alpha.23
|
|
18
|
+
|
|
1
19
|
## @visulima/vite-overlay [2.0.0-alpha.24](https://github.com/visulima/visulima/compare/@visulima/vite-overlay@2.0.0-alpha.23...@visulima/vite-overlay@2.0.0-alpha.24) (2026-05-11)
|
|
2
20
|
|
|
3
21
|
|
package/dist/index.js
CHANGED
|
@@ -356,7 +356,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
356
356
|
balloonCount: root.querySelector("#__v_o__balloon_count"),
|
|
357
357
|
balloonGroup: root.querySelector("#__v_o__balloon_group"),
|
|
358
358
|
balloonText: root.querySelector("#__v_o__balloon_text"),
|
|
359
|
-
fileButton: root.querySelector(
|
|
359
|
+
fileButton: root.querySelector("button[class*=\\"underline\\"]"),
|
|
360
360
|
heading: root.querySelector("#__v_o__heading"),
|
|
361
361
|
historyIndicator: root.querySelector("#__v_o__history_indicator"),
|
|
362
362
|
historyLayerDepth: root.querySelector("#__v_o__history_layer_depth"),
|
|
@@ -557,7 +557,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
557
557
|
? \`\${currentError.originalFilePath}:\${currentError.originalFileLine}:\${currentError.originalFileColumn}\`
|
|
558
558
|
: "Unknown location",
|
|
559
559
|
currentError.message || "No error message available",
|
|
560
|
-
...
|
|
560
|
+
...codeFrame ? ["", codeFrame] : [],
|
|
561
561
|
"",
|
|
562
562
|
"## Stack Trace",
|
|
563
563
|
currentError.stack || "No stack trace available",
|
|
@@ -605,8 +605,8 @@ class ErrorOverlay extends HTMLElement {
|
|
|
605
605
|
* @private
|
|
606
606
|
*/
|
|
607
607
|
_initializeFocusTrap() {
|
|
608
|
-
const FOCUSABLE_SELECTORS
|
|
609
|
-
|
|
608
|
+
const FOCUSABLE_SELECTORS
|
|
609
|
+
= "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\\"-1\\"])";
|
|
610
610
|
|
|
611
611
|
this._addEventListener(this.root, "keydown", (event) => {
|
|
612
612
|
if (event.key !== "Tab") {
|
|
@@ -760,8 +760,8 @@ class ErrorOverlay extends HTMLElement {
|
|
|
760
760
|
const stackElement = stackHost && stackHost.querySelector("div:last-child");
|
|
761
761
|
|
|
762
762
|
if (stackHost && stackElement) {
|
|
763
|
-
const stackText
|
|
764
|
-
mode === "compiled"
|
|
763
|
+
const stackText
|
|
764
|
+
= mode === "compiled"
|
|
765
765
|
? String(currentError.compiledStack || this.__v_oPayload.compiledStack || currentError.stack || "")
|
|
766
766
|
: String(currentError.originalStack || currentError.stack || this.__v_oPayload.originalStack || this.__v_oPayload.stack || "");
|
|
767
767
|
|
|
@@ -863,8 +863,8 @@ class ErrorOverlay extends HTMLElement {
|
|
|
863
863
|
modeSwitch.classList.add("hidden");
|
|
864
864
|
}
|
|
865
865
|
|
|
866
|
-
const originalButton = this.root.querySelector(
|
|
867
|
-
const compiledButton = this.root.querySelector(
|
|
866
|
+
const originalButton = this.root.querySelector("[data-flame-mode=\\"original\\"]");
|
|
867
|
+
const compiledButton = this.root.querySelector("[data-flame-mode=\\"compiled\\"]");
|
|
868
868
|
|
|
869
869
|
if (originalButton) {
|
|
870
870
|
originalButton.style.display = hasOriginal ? "" : "none";
|
|
@@ -879,7 +879,7 @@ class ErrorOverlay extends HTMLElement {
|
|
|
879
879
|
return;
|
|
880
880
|
}
|
|
881
881
|
|
|
882
|
-
let codeFrame =
|
|
882
|
+
let codeFrame = "<div class=\\"no-code-frame font-mono py-4 px-5\\">No code frame could be generated.</div>";
|
|
883
883
|
|
|
884
884
|
// Try current error's code frame first
|
|
885
885
|
if (mode === "compiled" && currentError.compiledCodeFrameContent) {
|
|
@@ -1072,8 +1072,8 @@ class ErrorOverlay extends HTMLElement {
|
|
|
1072
1072
|
const isDark = currentTheme === "dark";
|
|
1073
1073
|
|
|
1074
1074
|
const rootElement = this.__elements?.root;
|
|
1075
|
-
const darkButton = this.root.querySelector(
|
|
1076
|
-
const lightButton = this.root.querySelector(
|
|
1075
|
+
const darkButton = this.root.querySelector("[data-v-o-theme-click-value=\\"dark\\"]");
|
|
1076
|
+
const lightButton = this.root.querySelector("[data-v-o-theme-click-value=\\"light\\"]");
|
|
1077
1077
|
|
|
1078
1078
|
if (isDark) {
|
|
1079
1079
|
if (darkButton) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/vite-overlay",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.26",
|
|
4
4
|
"description": "Improved vite overlay",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"error-handling",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@shikijs/cli": "4.0.2",
|
|
64
64
|
"@shikijs/langs": "^4.0.2",
|
|
65
|
-
"@visulima/error": "6.0.0-alpha.
|
|
65
|
+
"@visulima/error": "6.0.0-alpha.24",
|
|
66
66
|
"fastest-levenshtein": "^1.0.16",
|
|
67
67
|
"shiki": "4.0.2"
|
|
68
68
|
},
|