native-modal
Advanced tools
Comparing version 0.0.8 to 0.0.9
# Changelog | ||
## v0.0.9 | ||
[compare changes](https://github.com/azabroflovski/native-modal/compare/v0.0.8...v0.0.9) | ||
### đ Enhancements | ||
- Add logo ([f80bdf1](https://github.com/azabroflovski/native-modal/commit/f80bdf1)) | ||
### 𩹠Fixes | ||
- Build issue ([c1aab01](https://github.com/azabroflovski/native-modal/commit/c1aab01)) | ||
- Base path (github pages issue) ([e32076e](https://github.com/azabroflovski/native-modal/commit/e32076e)) | ||
- Correct logo url ([a9b6118](https://github.com/azabroflovski/native-modal/commit/a9b6118)) | ||
### đ Refactors | ||
- Move logo to /public folder (in docs) ([0fda7b1](https://github.com/azabroflovski/native-modal/commit/0fda7b1)) | ||
### đ Documentation | ||
- Add note abount active development ([0b14b07](https://github.com/azabroflovski/native-modal/commit/0b14b07)) | ||
### đĄ Chore | ||
- Use npm i instead npm ci (github pages) ([9a4c8bf](https://github.com/azabroflovski/native-modal/commit/9a4c8bf)) | ||
- Add optionalDependencies in package.json ([9fa21e6](https://github.com/azabroflovski/native-modal/commit/9fa21e6)) | ||
- Add overrides in package.json ([beb0837](https://github.com/azabroflovski/native-modal/commit/beb0837)) | ||
- **vitepress:** Correct base path ([242e659](https://github.com/azabroflovski/native-modal/commit/242e659)) | ||
- Repository link to native-modal (instead vitepress) ([c266690](https://github.com/azabroflovski/native-modal/commit/c266690)) | ||
- **vitepress:** Base url issue ([ac143a7](https://github.com/azabroflovski/native-modal/commit/ac143a7)) | ||
- No need to external a vue ([051f45a](https://github.com/azabroflovski/native-modal/commit/051f45a)) | ||
### â¤ī¸ Contributors | ||
- Azabroflovski <azabroflovski@gmail.com> | ||
## v0.0.8 | ||
@@ -4,0 +40,0 @@ |
@@ -5,2 +5,3 @@ import { defineConfig } from 'vitepress' | ||
export default defineConfig({ | ||
base: '/native-modal/', | ||
title: "NativeModal", | ||
@@ -33,5 +34,5 @@ description: "Tiny wrapper over <dialog />", | ||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' } | ||
{ icon: 'github', link: 'https://github.com/azabroflovski/native-modal' } | ||
] | ||
} | ||
}) |
@@ -16,2 +16,5 @@ --- | ||
link: /demos | ||
image: | ||
src: /logo.png | ||
alt: NativeModal | ||
@@ -18,0 +21,0 @@ features: |
<script lang="ts" setup> | ||
import { useData } from 'vitepress' | ||
import { initNativeModal } from '../src/lib/index.js' | ||
import {computed} from ".vitepress/cache/deps/vue.js"; | ||
initNativeModal() | ||
import { useData } from 'vitepress'; | ||
import { computed } from 'vue'; | ||
import { initNativeModal } from '../src/lib'; | ||
const { isDark } = useData() | ||
initNativeModal(); | ||
const { isDark } = useData(); | ||
const dialogAttrs = computed(() => { | ||
@@ -21,2 +22,6 @@ if (isDark.value) { | ||
::: warning NOTE | ||
The package is under **active development**, in this regard, there may be significant api changes. | ||
::: | ||
## Installation | ||
@@ -23,0 +28,0 @@ |
{ | ||
"name": "native-modal", | ||
"private": false, | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "NativeModal - tiny wrapper over the <dialog />. No overhead scripts. Just modal.", | ||
@@ -40,4 +40,8 @@ "type": "module", | ||
"vite": "^5.0.8", | ||
"vitepress": "^1.0.0-rc.44" | ||
"vitepress": "^1.0.0-rc.44", | ||
"vue": "^3.4.19" | ||
}, | ||
"optionalDependencies": { | ||
"@rollup/rollup-linux-x64-gnu": "4.6.1" | ||
} | ||
} |
@@ -6,5 +6,5 @@ import './styles/main.css' | ||
export function initNativeModal() { | ||
window.__NATIVE_MODAL__ = { | ||
ACTIVE_MODALS: [], | ||
ONETIME_MODALS: new Set() | ||
// SSR FRIENDLY | ||
if (typeof document === 'undefined' || typeof window === 'undefined') { | ||
return | ||
} | ||
@@ -11,0 +11,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97638
26
532
1
4