vue3-toastify
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -247,45 +247,45 @@ import { App } from 'vue'; | ||
toastProps: { | ||
toastId?: Id; | ||
updateId?: Id; | ||
content?: Content; | ||
toastId?: Id | undefined; | ||
updateId?: Id | undefined; | ||
content?: Content | undefined; | ||
data?: {} | undefined; | ||
type?: ToastType; | ||
delay?: number; | ||
onOpen?: <T = {}>(props: T) => void; | ||
onClose?: <T = {}>(props: T) => void; | ||
onClick?: (event: MouseEvent) => void; | ||
toastStyle?: Record<string, any>; | ||
progress?: number; | ||
isLoading?: boolean; | ||
dangerouslyHTMLString?: boolean; | ||
rtl?: boolean; | ||
containerId?: Id; | ||
position?: ToastPosition; | ||
autoClose?: number | boolean; | ||
closeButton?: CloseBtnType; | ||
type?: ToastType | undefined; | ||
delay?: number | undefined; | ||
onOpen?: (<T = {}>(props: T) => void) | undefined; | ||
onClose?: (<T = {}>(props: T) => void) | undefined; | ||
onClick?: ((event: MouseEvent) => void) | undefined; | ||
toastStyle?: Record<string, any> | undefined; | ||
progress?: number | undefined; | ||
isLoading?: boolean | undefined; | ||
dangerouslyHTMLString?: boolean | undefined; | ||
rtl?: boolean | undefined; | ||
containerId?: Id | undefined; | ||
position?: ToastPosition | undefined; | ||
autoClose?: (number | boolean) | undefined; | ||
closeButton?: CloseBtnType | undefined; | ||
transition?: ToastTransition | { | ||
enter: string; | ||
exit: string; | ||
appendPosition?: boolean; | ||
collapse?: boolean; | ||
collapseDuration?: number; | ||
appendPosition?: boolean | undefined; | ||
collapse?: boolean | undefined; | ||
collapseDuration?: number | undefined; | ||
} | undefined; | ||
disabledEnterTransition?: boolean; | ||
hideProgressBar?: boolean; | ||
pauseOnHover?: boolean; | ||
pauseOnFocusLoss?: boolean; | ||
closeOnClick?: boolean; | ||
toastClassName?: string; | ||
bodyClassName?: string; | ||
style?: Record<string, any>; | ||
progressClassName?: string; | ||
progressStyle?: Record<string, any>; | ||
role?: string; | ||
theme?: ToastTheme; | ||
icon?: IconType; | ||
clearOnUrlChange?: boolean; | ||
multiple?: boolean; | ||
limit?: number; | ||
newestOnTop?: boolean; | ||
containerClassName?: string; | ||
disabledEnterTransition?: boolean | undefined; | ||
hideProgressBar?: boolean | undefined; | ||
pauseOnHover?: boolean | undefined; | ||
pauseOnFocusLoss?: boolean | undefined; | ||
closeOnClick?: boolean | undefined; | ||
toastClassName?: string | undefined; | ||
bodyClassName?: string | undefined; | ||
style?: Record<string, any> | undefined; | ||
progressClassName?: string | undefined; | ||
progressStyle?: Record<string, any> | undefined; | ||
role?: string | undefined; | ||
theme?: ToastTheme | undefined; | ||
icon?: IconType | undefined; | ||
clearOnUrlChange?: boolean | undefined; | ||
multiple?: boolean | undefined; | ||
limit?: number | undefined; | ||
newestOnTop?: boolean | undefined; | ||
containerClassName?: string | undefined; | ||
}; | ||
@@ -292,0 +292,0 @@ }[]; |
import { ToastifyContainer, type ToastFunc } from 'vue3-toastify'; | ||
import type { Plugin, VNode } from 'vue'; | ||
import type { Plugin } from 'vue'; | ||
@@ -14,10 +14,6 @@ declare const Vue3Toastify: Plugin; | ||
declare module '@vue/runtime-core' { | ||
export interface ComponentCustomProperties { | ||
$toast: ToastFunc; | ||
} | ||
declare module 'vue' { | ||
export interface ComponentCustomProperties {$toast: ToastFunc} | ||
export interface GlobalComponents { | ||
ToastifyContainer: typeof ToastifyContainer; | ||
} | ||
export interface GlobalComponents {ToastifyContainer: typeof ToastifyContainer} | ||
} |
104
package.json
{ | ||
"name": "vue3-toastify", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"type": "module", | ||
@@ -59,12 +59,8 @@ "description": "🎉 Vue3-Toastify allows you to add notifications to your app with ease. No more nonsense!", | ||
], | ||
"workspaces": [ | ||
"docs", | ||
"playground" | ||
], | ||
"scripts": { | ||
"build": "vite build && npm run build:css", | ||
"dev": "npm run dev -w playground", | ||
"dev": "pnpm -F playground run dev", | ||
"dev:use-bundle": "run-p tsup-w dev-pack", | ||
"docs": "npm run docs:dev -w docs", | ||
"build:docs": "npm run docs:build -w docs", | ||
"docs": "pnpm -F docs run docs:dev", | ||
"build:docs": "pnpm -F docs run docs:build", | ||
"build:css": "npm run build:scss && npm run build:postcss && rimraf rf ./src/index.css", | ||
@@ -74,7 +70,8 @@ "build:scss": "sass --no-source-map --style=compressed src/styles/main.scss src/index.css", | ||
"build:tsup": "tsup && npm run build:css", | ||
"preview:docs": "npm run docs:serve -w docs", | ||
"lint": "eslint --ext .ts,.tsx,.vue ./src", | ||
"preview:docs": "pnpm -F docs run docs:serve", | ||
"lint": "eslint \"**/*.{ts,tsx,vue}\"", | ||
"lint:inspector": "npx @eslint/config-inspector", | ||
"tsup-w": "tsup --watch", | ||
"dev-pack": "npm run dev:usepack -w playground", | ||
"prepare": "chmod a+x .husky/* && husky install", | ||
"dev-pack": "pnpm -F playground run dev:usepack", | ||
"prepare": "chmod a+x .husky/* && husky", | ||
"prepublishOnly": "npm run build", | ||
@@ -88,59 +85,58 @@ "release": "bumpp --commit --tag --push", | ||
"devDependencies": { | ||
"@babel/core": "^7.24.7", | ||
"@babel/plugin-transform-runtime": "^7.24.7", | ||
"@babel/plugin-transform-typescript": "^7.24.7", | ||
"@babel/preset-env": "^7.24.7", | ||
"@babel/core": "^7.25.2", | ||
"@babel/plugin-transform-runtime": "^7.25.4", | ||
"@babel/plugin-transform-typescript": "^7.25.2", | ||
"@babel/preset-env": "^7.25.4", | ||
"@babel/preset-typescript": "^7.24.7", | ||
"@commitlint/cli": "^19.3.0", | ||
"@commitlint/config-conventional": "^19.2.2", | ||
"@swc/core": "^1.6.5", | ||
"@testing-library/jest-dom": "^6.4.6", | ||
"@commitlint/cli": "^19.4.1", | ||
"@commitlint/config-conventional": "^19.4.1", | ||
"@swc/core": "^1.7.22", | ||
"@testing-library/jest-dom": "^6.5.0", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@testing-library/vue": "^8.1.0", | ||
"@stylistic/eslint-plugin-js": "^2.7.2", | ||
"@stylistic/eslint-plugin-jsx": "^2.7.2", | ||
"@stylistic/eslint-plugin-plus": "^2.7.2", | ||
"@stylistic/eslint-plugin-ts": "^2.7.2", | ||
"@types/lodash.isequal": "^4.5.8", | ||
"@types/lz-string": "^1.5.0", | ||
"@types/node": "^20.14.9", | ||
"@typescript-eslint/eslint-plugin": "^7.14.1", | ||
"@typescript-eslint/parser": "^7.14.1", | ||
"@vitejs/plugin-vue": "^5.0.5", | ||
"@vitejs/plugin-vue-jsx": "^4.0.0", | ||
"@vitest/ui": "^1.6.0", | ||
"@types/node": "^20.16.3", | ||
"@typescript-eslint/parser": "^8.3.0", | ||
"@vitejs/plugin-vue": "^5.1.3", | ||
"@vitejs/plugin-vue-jsx": "^4.0.1", | ||
"@vitest/ui": "^2.0.5", | ||
"@vue/babel-plugin-jsx": "^1.2.2", | ||
"@vue/eslint-config-typescript": "^13.0.0", | ||
"autoprefixer": "^10.4.19", | ||
"autoprefixer": "^10.4.20", | ||
"babel-loader": "^9.1.3", | ||
"browserslist-to-esbuild": "^2.1.1", | ||
"bumpp": "^9.4.1", | ||
"core-js": "^3.37.1", | ||
"cssnano": "^7.0.3", | ||
"bumpp": "^9.5.2", | ||
"core-js": "^3.38.1", | ||
"cssnano": "^7.0.5", | ||
"esbuild-plugin-babel": "^0.2.3", | ||
"eslint": "^8.57.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-airbnb-typescript": "^18.0.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-jsx-a11y": "^6.9.0", | ||
"eslint-plugin-vue": "^9.26.0", | ||
"husky": "^9.0.11", | ||
"jsdom": "^24.1.0", | ||
"lint-staged": "^15.2.7", | ||
"npm": "^10.8.1", | ||
"eslint-plugin-vue": "^9.27.0", | ||
"husky": "^9.1.5", | ||
"jsdom": "^25.0.0", | ||
"lint-staged": "^15.2.10", | ||
"npm": "^10.8.3", | ||
"npm-run-all": "^4.1.5", | ||
"postcss": "^8.4.38", | ||
"postcss": "^8.4.43", | ||
"postcss-cli": "^11.0.0", | ||
"postcss-loader": "^8.1.1", | ||
"postcss-nested": "^6.0.1", | ||
"postcss-nested": "^6.2.0", | ||
"postcss-scss": "^4.0.9", | ||
"rimraf": "^5.0.7", | ||
"sass": "^1.77.6", | ||
"rimraf": "^5.0.10", | ||
"sass": "^1.77.8", | ||
"shelljs": "^0.8.5", | ||
"stylelint": "^14.16.1", | ||
"stylelint": "^16.9.0", | ||
"stylelint-config-recommended-vue": "^1.5.0", | ||
"stylelint-config-standard": "^29.0.0", | ||
"tsup": "^8.1.0", | ||
"typescript": "^5.5.2", | ||
"vite": "^5.3.1", | ||
"vite-plugin-dts": "^3.9.1", | ||
"stylelint-config-standard": "^36.0.1", | ||
"tsup": "^8.2.4", | ||
"typescript": "^5.5.4", | ||
"vite": "^5.4.2", | ||
"vite-plugin-eslint": "^1.8.1", | ||
"vite-plugin-dts": "^4.1.0", | ||
"vite-plugin-style-import": "^2.0.0", | ||
"vitest": "^1.6.0", | ||
"vue-tsc": "^2.0.22" | ||
"vitest": "^2.0.5", | ||
"vue-tsc": "^2.1.4", | ||
"vue-eslint-parser": "^9.4.3" | ||
}, | ||
@@ -156,5 +152,5 @@ "peerDependencies": { | ||
"engines": { | ||
"node": ">=18.18.0", | ||
"node": ">=20", | ||
"npm": ">=9.0.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
87749
56
1663