@scalar/use-toasts 0.4.0 → 0.5.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/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Scalar useToasts()
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
[](https://discord.gg/mw6FQRPh)
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @scalar/use-toasts
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```vue
|
|
17
|
+
// App.vue
|
|
18
|
+
<script setup>
|
|
19
|
+
import { FlowToastContainer } from '@scalar/use-toasts'
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<template>
|
|
23
|
+
<FlowToastContainer />
|
|
24
|
+
</template>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```vue
|
|
28
|
+
// ChildComponent.vue
|
|
29
|
+
<script setup>
|
|
30
|
+
import { useToasts } from '@scalar/use-toasts'
|
|
31
|
+
|
|
32
|
+
addToast({ title: 'Hello :-)' }, { timeout: 2000 })
|
|
33
|
+
</script>
|
|
34
|
+
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowProgressRing.vue.d.ts","sourceRoot":"","sources":["../src/FlowProgressRing.vue.ts"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FlowProgressRing.vue.d.ts","sourceRoot":"","sources":["../src/FlowProgressRing.vue.ts"],"names":[],"mappings":";;;;;;;;;;;AAsFA,wBAAkD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowToast.vue.d.ts","sourceRoot":"","sources":["../src/FlowToast.vue.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAe,KAAK,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FlowToast.vue.d.ts","sourceRoot":"","sources":["../src/FlowToast.vue.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAe,KAAK,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;;;AA0LrD,wBAAkD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowToastContainer.vue.d.ts","sourceRoot":"","sources":["../src/FlowToastContainer.vue.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"FlowToastContainer.vue.d.ts","sourceRoot":"","sources":["../src/FlowToastContainer.vue.ts"],"names":[],"mappings":";AA6FA,wBAAkD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowToastLayout.vue.d.ts","sourceRoot":"","sources":["../src/FlowToastLayout.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FlowToastLayout.vue.d.ts","sourceRoot":"","sources":["../src/FlowToastLayout.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAuKA,wBAA8G;AAI9G,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,30 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalar/use-toasts",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"description": "display toasts in Vue",
|
|
4
|
+
"version": "0.5.0",
|
|
5
|
+
"author": "Scalar (https://github.com/scalar)",
|
|
6
|
+
"bugs": "https://github.com/scalar/scalar/issues/new",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"nanoid": "5.0.1"
|
|
9
|
+
},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"@vitejs/plugin-vue": "4.3.4",
|
|
12
|
+
"@vitest/coverage-v8": "0.34.4",
|
|
13
|
+
"tsc-alias": "1.8.8",
|
|
14
|
+
"vite": "4.4.9",
|
|
15
|
+
"vite-plugin-css-injected-by-js": "3.3.0",
|
|
16
|
+
"vitest": "0.34.4",
|
|
17
|
+
"vue-tsc": "1.8.13"
|
|
18
|
+
},
|
|
6
19
|
"engines": {
|
|
7
20
|
"node": ">=18"
|
|
8
21
|
},
|
|
9
|
-
"type": "module",
|
|
10
|
-
"main": "dist/index.js",
|
|
11
22
|
"files": [
|
|
12
23
|
"dist"
|
|
13
24
|
],
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
+
"homepage": "https://github.com/scalar/scalar",
|
|
26
|
+
"keywords": [
|
|
27
|
+
"composable",
|
|
28
|
+
"notifcation",
|
|
29
|
+
"toast",
|
|
30
|
+
"vue",
|
|
31
|
+
"vue3"
|
|
32
|
+
],
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"main": "dist/index.js",
|
|
25
35
|
"peerDependencies": {
|
|
26
36
|
"vue": "3.3.4"
|
|
27
37
|
},
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "https://github.com/scalar/scalar.git",
|
|
41
|
+
"directory": "packages/use-toasts"
|
|
42
|
+
},
|
|
43
|
+
"type": "module",
|
|
28
44
|
"scripts": {
|
|
29
45
|
"build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
|
|
30
46
|
"dev": "vite",
|