Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ pnpm build:dev
</template>

<script lang="ts" setup>
import 'vue-sonner/style.css'
import { Toaster, toast } from 'vue-sonner'
</script>
```
Expand All @@ -129,6 +130,9 @@ Use `vue-sonner/nuxt` module
export default defineNuxtConfig({
...
modules: ['vue-sonner/nuxt']
vueSonner: {
css: false // true by default to include css file
}
})
```

Expand Down Expand Up @@ -156,11 +160,6 @@ Use `Toaster` component and `$toast` function anywhere in the Vue SFC
https://cdn.jsdelivr.net/npm/vue-sonner/+esm
```

**UMD version**

```ts
https://www.unpkg.com/vue-sonner@0.3.1/lib/vue-sonner.umd.cjs
```

## Types

Expand Down
31 changes: 0 additions & 31 deletions api-extractor.json

This file was deleted.

2 changes: 1 addition & 1 deletion app/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { useSEOHeader } from '~/composables/useSEOHeader'
useSEOHeader()

const expand = ref(false)
const position = ref<Position>('top-right')
const position = ref<Position>('bottom-right')
const richColors = ref(false)
const closeButton = ref(false)
const theme = ref<Theme>('light')
Expand Down
1 change: 1 addition & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
// biome-ignore lint: disable
export {}

/* prettier-ignore */
Expand Down
113 changes: 58 additions & 55 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,80 +1,83 @@
{
"name": "vue-sonner",
"version": "1.3.2",
"type": "module",
"version": "1.3.2",
"packageManager": "pnpm@10.11.0",
"author": "xiaoluoboding <xiaoluoboding@gmail.com>",
"scripts": {
"dev": "vite",
"dev:playground": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build build --stub && nuxi prepare playground",
"build:dev": "vite build --mode lib --watch",
"build:docs": "vite build --mode docs",
"build:lib": "vite build --mode lib && pnpm run build:types",
"build:module": "nuxt-module-build build --outDir lib/nuxt",
"build:types": "vue-tsc -p tsconfig.build.json && api-extractor run",
"release": "pnpm run build:lib && pnpm run build:module",
"preview": "vite preview",
"test": "cd ./test && pnpm test:e2e --ui",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
},
"license": "MIT",
"homepage": "https://github.com/xiaoluoboding/vue-sonner",
"repository": {
"type": "git",
"url": "git+https://github.com/xiaoluoboding/vue-sonner.git"
},
"homepage": "https://github.com/xiaoluoboding/vue-sonner",
"files": [
"lib",
"volar.d.ts"
"sideEffects": [
"**/*.css",
"**/src/*"
],
"main": "./lib/vue-sonner.cjs",
"module": "./lib/vue-sonner.js",
"exports": {
".": {
"types": "./lib/vue-sonner.d.ts",
"import": "./lib/vue-sonner.js",
"require": "./lib/vue-sonner.cjs"
"types": "./lib/index.d.ts",
"import": "./lib/index.js"
},
"./style.css": "./lib/index.css",
"./nuxt": {
"import": {
"types": "./lib/nuxt/types.d.mts",
"default": "./lib/nuxt/module.mjs"
},
"require": {
"types": "./lib/nuxt/types.d.ts",
"default": "./lib/nuxt/module.cjs"
}
},
"./src/*": {
"default": "./src/*",
"import": "./src/*"
}
},
"sideEffects": [
"**/*.css"
"main": "./lib/index.js",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"files": [
"lib",
"src",
"volar.d.ts"
],
"types": "./lib/vue-sonner.d.ts",
"license": "MIT",
"scripts": {
"prepack": "pnpm run release",
"dev": "vite",
"dev:playground": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build build --stub && nuxi prepare playground",
"build:dev": "tsdown --watch",
"build:docs": "vite build --mode docs",
"build:lib": "tsdown",
"build:module": "nuxt-module-build build --outDir lib/nuxt",
"release": "pnpm run build:lib && pnpm run build:module",
"preview": "vite preview",
"test": "cd ./test && pnpm test:e2e --ui",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
},
"devDependencies": {
"@iconify/json": "^2.2.172",
"@microsoft/api-extractor": "^7.47.11",
"@nuxt/devtools": "^1.6.0",
"@nuxt/kit": "^3.13.2",
"@nuxt/module-builder": "^0.8.4",
"@nuxt/schema": "^3.13.2",
"@nuxt/test-utils": "^3.14.4",
"@types/node": "^18.19.8",
"@unocss/reset": "^0.63.4",
"@vitejs/plugin-vue": "^5.1.4",
"@vue/tsconfig": "^0.6.0",
"@vueuse/core": "^11.1.0",
"@nuxt/devtools": "^2.4.1",
"@nuxt/kit": "^3.17.3",
"@nuxt/module-builder": "^1.0.1",
"@nuxt/schema": "^3.17.3",
"@nuxt/test-utils": "^3.19.0",
"@types/node": "^20.17.47",
"@unocss/reset": "^66.1.2",
"@vitejs/plugin-vue": "^5.2.4",
"@vue/tsconfig": "^0.7.0",
"@vueuse/core": "^13.2.0",
"@vueuse/head": "^2.0.0",
"clean-css": "^5.3.3",
"highlight.js": "^11.10.0",
"nuxt": "^3.13.2",
"typescript": "^5.6.3",
"unocss": "^0.63.4",
"unplugin-icons": "^0.19.3",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.11",
"vue": "^3.5.12",
"vue-sonner": "^1.2.4",
"vue-tsc": "^2.1.10"
"highlight.js": "^11.11.1",
"nuxt": "^3.17.3",
"tsdown": "^0.11.9",
"typescript": "^5.8.3",
"unocss": "^66.1.2",
"unplugin-icons": "^22.1.0",
"unplugin-vue": "^6.2.0",
"unplugin-vue-components": "^28.5.0",
"vite": "^6.3.5",
"vue": "^3.5.14",
"vue-sonner": "^1.3.2",
"vue-tsc": "^2.2.10"
}
}
Loading