nuxt-glorious 1.9.0-dev → 1.9.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.
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "nuxt-glorious",
3
3
  "configKey": "glorious",
4
- "version": "1.9.0-dev"
4
+ "version": "1.9.0"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import { watch } from '#imports'
2
+ import { watch, onMounted } from '#imports'
3
3
  import { createBlurDom, removeBlurDom, getAttribute } from '../helper'
4
4
  import _props from '../props/Modal'
5
5
 
@@ -26,6 +26,14 @@ watch(
26
26
  }
27
27
  }
28
28
  )
29
+
30
+ onMounted(() => {
31
+ document.onkeydown = (e) => {
32
+ if (e.code === 'Escape') {
33
+ modelValue.value = false
34
+ }
35
+ }
36
+ })
29
37
  </script>
30
38
 
31
39
  <template>
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.9.0-dev",
2
+ "version": "1.9.0",
3
3
  "name": "nuxt-glorious",
4
4
  "description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
5
5
  "repository": "sajadhzj/nuxt-glorious",