Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More →
Socket
Sign inDemoInstall
Socket

native-modal

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

native-modal - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

docs/public/logo.png

36

CHANGELOG.md
# 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 @@

3

docs/.vitepress/config.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡ī¸ by Socket Inc