@brevity-builder/error-overlay
Advanced tools
Comparing version 1.1.3 to 1.2.69
# @brevity-builder/error-overlay | ||
## 1.2.69 | ||
### Patch Changes | ||
- fb9e21f: Bump | ||
## 1.1.6 | ||
## 1.1.5 | ||
## 1.1.4 | ||
## 1.1.3 | ||
@@ -4,0 +16,0 @@ |
@@ -186,2 +186,3 @@ var __defProp = Object.defineProperty; | ||
}); | ||
document.addEventListener("keydown", this.closeOnEsc); | ||
} | ||
@@ -215,3 +216,9 @@ text(selector, text, linkFiles = false) { | ||
this.parentNode?.removeChild(this); | ||
document.removeEventListener("keydown", this.closeOnEsc); | ||
} | ||
closeOnEsc = (e) => { | ||
if (e.key === "Escape" || e.code === "Escape") { | ||
this.close(); | ||
} | ||
}; | ||
}; | ||
@@ -218,0 +225,0 @@ var overlayId = "brevity-error-overlay"; |
@@ -162,2 +162,3 @@ // src/index.ts | ||
}); | ||
document.addEventListener("keydown", this.closeOnEsc); | ||
} | ||
@@ -191,3 +192,9 @@ text(selector, text, linkFiles = false) { | ||
this.parentNode?.removeChild(this); | ||
document.removeEventListener("keydown", this.closeOnEsc); | ||
} | ||
closeOnEsc = (e) => { | ||
if (e.key === "Escape" || e.code === "Escape") { | ||
this.close(); | ||
} | ||
}; | ||
}; | ||
@@ -194,0 +201,0 @@ var overlayId = "brevity-error-overlay"; |
{ | ||
"name": "@brevity-builder/error-overlay", | ||
"version": "1.1.3", | ||
"version": "1.2.69", | ||
"description": "", | ||
@@ -11,19 +11,17 @@ "main": "dist/index.cjs.js", | ||
"license": "MIT", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@remix-run/node": "2.0.0", | ||
"@testing-library/jest-dom": "6.1.3", | ||
"@typescript-eslint/eslint-plugin": "6.7.0", | ||
"@typescript-eslint/parser": "6.7.0", | ||
"@remix-run/node": "nightly", | ||
"@testing-library/jest-dom": "6.4.5", | ||
"@vitest/coverage-c8": "0.33.0", | ||
"esbuild": "0.19.3", | ||
"esbuild": "0.21.3", | ||
"npm-dts": "1.3.12", | ||
"eslint": "8.49.0", | ||
"prettier": "3.0.3", | ||
"prettier-plugin-organize-imports": "3.2.3", | ||
"typescript": "5.2.2", | ||
"vitest": "0.34.4" | ||
"oxlint": "0.4.1", | ||
"prettier": "3.2.5", | ||
"prettier-plugin-organize-imports": "3.2.4", | ||
"typescript": "5.4.5", | ||
"vitest": "1.6.0" | ||
}, | ||
"scripts": { | ||
"preinstall": "npx only-allow pnpm", | ||
"lint": "oxlint --fix", | ||
"format": "prettier --write '**/*.{ts,tsx,js,jsx,json,md,css,html}'", | ||
@@ -30,0 +28,0 @@ "check": "tsc -p tsconfig.json --noEmit", |
@@ -185,2 +185,3 @@ const base = "/"; | ||
}); | ||
document.addEventListener("keydown", this.closeOnEsc); | ||
} | ||
@@ -216,3 +217,9 @@ | ||
this.parentNode?.removeChild(this); | ||
document.removeEventListener("keydown", this.closeOnEsc); | ||
} | ||
closeOnEsc = (e: KeyboardEvent) => { | ||
if (e.key === "Escape" || e.code === "Escape") { | ||
this.close(); | ||
} | ||
}; | ||
} | ||
@@ -219,0 +226,0 @@ |
18536
10
670
11