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

@kyvg/vue3-notification

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kyvg/vue3-notification - npm Package Compare versions

Comparing version 3.1.0-2 to 3.1.0-3

dist/auto-import-resolver/index.d.ts

174

dist/index.d.ts

@@ -1,4 +0,37 @@

import { default as Notifications } from '@/components/Notifications.vue';
import { AllowedComponentProps } from 'vue';
import { ComponentCustomProps } from 'vue';
import { ComponentOptionsMixin } from 'vue';
import { DefineComponent } from 'vue';
import { ExtractPropTypes } from 'vue';
import { Plugin as Plugin_2 } from 'vue';
import { PropType } from 'vue';
import { VNodeProps } from 'vue';
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
declare type __VLS_Prettify<T> = {
[K in keyof T]: T[K];
} & {};
declare type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: PropType<T[K]>;
required: true;
};
};
declare type __VLS_WithDefaults<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
default: D[K];
}> : P[K];
};
declare type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};
declare const _default: Plugin_2;

@@ -11,4 +44,131 @@ export default _default;

export { Notifications }
declare type NotificationItemExtended = NotificationItemWithTimer & {
state: NotificationItemState[keyof NotificationItemState];
};
declare type NotificationItemState = typeof STATE;
declare type NotificationItemWithTimer = NotificationItem & {
timer?: number;
};
export declare const Notifications: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
group?: string | undefined;
width?: string | number | undefined;
reverse?: boolean | undefined;
position?: string | string[] | undefined;
classes?: string | undefined;
animationType?: "css" | "velocity" | undefined;
animation?: Record<"enter" | "leave", unknown> | undefined;
animationName?: string | undefined;
speed?: number | undefined;
duration?: number | undefined;
delay?: number | undefined;
max?: number | undefined;
ignoreDuplicates?: boolean | undefined;
closeOnClick?: boolean | undefined;
pauseOnHover?: boolean | undefined;
dangerouslySetInnerHtml?: boolean | undefined;
}>, {
group: string;
width: number;
reverse: boolean;
position: string[];
classes: string;
animationType: string;
animation: {
enter: (el: Element) => {
height: number[];
opacity: number[];
};
leave: {
height: number;
opacity: number[];
};
};
animationName: string;
speed: number;
duration: number;
delay: number;
max: number;
ignoreDuplicates: boolean;
closeOnClick: boolean;
pauseOnHover: boolean;
dangerouslySetInnerHtml: boolean;
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
click: (item: NotificationItem) => void;
destroy: (item: NotificationItem) => void;
start: (item: NotificationItem) => void;
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
group?: string | undefined;
width?: string | number | undefined;
reverse?: boolean | undefined;
position?: string | string[] | undefined;
classes?: string | undefined;
animationType?: "css" | "velocity" | undefined;
animation?: Record<"enter" | "leave", unknown> | undefined;
animationName?: string | undefined;
speed?: number | undefined;
duration?: number | undefined;
delay?: number | undefined;
max?: number | undefined;
ignoreDuplicates?: boolean | undefined;
closeOnClick?: boolean | undefined;
pauseOnHover?: boolean | undefined;
dangerouslySetInnerHtml?: boolean | undefined;
}>, {
group: string;
width: number;
reverse: boolean;
position: string[];
classes: string;
animationType: string;
animation: {
enter: (el: Element) => {
height: number[];
opacity: number[];
};
leave: {
height: number;
opacity: number[];
};
};
animationName: string;
speed: number;
duration: number;
delay: number;
max: number;
ignoreDuplicates: boolean;
closeOnClick: boolean;
pauseOnHover: boolean;
dangerouslySetInnerHtml: boolean;
}>>> & {
onClick?: ((item: NotificationItem) => any) | undefined;
onDestroy?: ((item: NotificationItem) => any) | undefined;
onStart?: ((item: NotificationItem) => any) | undefined;
}, {
speed: number;
group: string;
duration: number;
ignoreDuplicates: boolean;
closeOnClick: boolean;
reverse: boolean;
width: string | number;
position: string | string[];
classes: string;
animationType: "css" | "velocity";
animation: Record<"enter" | "leave", unknown>;
animationName: string;
delay: number;
max: number;
pauseOnHover: boolean;
dangerouslySetInnerHtml: boolean;
}, {}>, {
body?(_: {
class: (string | undefined)[];
item: NotificationItemExtended;
close: () => void;
}): any;
}>;
export declare interface NotificationsOptions {

@@ -40,2 +200,7 @@ id?: number;

declare const STATE: {
readonly IDLE: 0;
readonly DESTROYED: 2;
};
export declare const useNotification: () => {

@@ -49,6 +214,1 @@ notify: {

export { }
declare module '@vue/runtime-core' {
export interface ComponentCustomProperties {
$notify: typeof notify;
}
}

14

package.json
{
"name": "@kyvg/vue3-notification",
"description": "Vue.js Notification Library",
"version": "3.1.0-2",
"version": "3.1.0-3",
"author": "kyvg",

@@ -15,7 +15,5 @@ "private": false,

"scripts": {
"release": "npm run build && npm run build:resolver",
"build": "vite build",
"release": "npm run build && npm run build:resolver && npm run build:ts && npm run build:dts",
"build:resolver": "vite build -c vite.resolver.config.js",
"build:ts": "NODE_ENV=production tsc --emitDeclarationOnly -p ./tsconfig.build.json",
"build:dts": "api-extractor run --local --verbose && tail -n +3 src/global-extensions.ts >> dist/index.d.ts && mv dist/src/auto-import-resolver.d.ts dist/auto-import-resolver.d.ts",
"dev": "vite serve -c vite.demo.config.js",

@@ -41,5 +39,5 @@ "unit": "vitest",

"./auto-import-resolver": {
"types": "./dist/auto-import-resolver.d.ts",
"import": "./dist/auto-import-resolver.es.js",
"require": "./dist/auto-import-resolver.umd.js"
"types": "./dist/auto-import-resolver/index.d.ts",
"import": "./dist/auto-import-resolver/index.es.js",
"require": "./dist/auto-import-resolver/index.umd.js"
}

@@ -73,3 +71,2 @@ },

"devDependencies": {
"@microsoft/api-extractor": "^7.33.5",
"@typescript-eslint/eslint-plugin": "^5.41.0",

@@ -92,2 +89,3 @@ "@typescript-eslint/parser": "^5.41.0",

"vite-plugin-css-injected-by-js": "^3.1.1",
"vite-plugin-dts": "^3.6.4",
"vitest": "^0.31.1",

@@ -94,0 +92,0 @@ "vue": "^3.3.4",

@@ -5,3 +5,5 @@ import { Plugin } from 'vue';

export type { NotificationsOptions, NotificationsPluginOptions, NotificationItem } from './types';
export { default as Notifications } from '@/components/Notifications.vue';
import Notifications from '@/components/Notifications.vue';
export { Notifications };
export type Notifications = typeof Notifications

@@ -8,0 +10,0 @@ export default {

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