New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vaadin/notification

Package Overview
Dependencies
Maintainers
19
Versions
420
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/notification - npm Package Compare versions

Comparing version 22.0.0-alpha7 to 22.0.0-alpha8

16

package.json
{
"name": "@vaadin/notification",
"version": "22.0.0-alpha7",
"version": "22.0.0-alpha8",
"publishConfig": {

@@ -36,6 +36,6 @@ "access": "public"

"@polymer/polymer": "^3.0.0",
"@vaadin/component-base": "22.0.0-alpha7",
"@vaadin/vaadin-lumo-styles": "22.0.0-alpha7",
"@vaadin/vaadin-material-styles": "22.0.0-alpha7",
"@vaadin/vaadin-themable-mixin": "22.0.0-alpha7",
"@vaadin/component-base": "22.0.0-alpha8",
"@vaadin/vaadin-lumo-styles": "22.0.0-alpha8",
"@vaadin/vaadin-material-styles": "22.0.0-alpha8",
"@vaadin/vaadin-themable-mixin": "22.0.0-alpha8",
"lit": "^2.0.0"

@@ -45,8 +45,8 @@ },

"@esm-bundle/chai": "^4.3.4",
"@vaadin/button": "22.0.0-alpha7",
"@vaadin/polymer-legacy-adapter": "22.0.0-alpha7",
"@vaadin/button": "22.0.0-alpha8",
"@vaadin/polymer-legacy-adapter": "22.0.0-alpha8",
"@vaadin/testing-helpers": "^0.3.0",
"sinon": "^9.2.1"
},
"gitHead": "8e89419c6b44a1d225d5859e180d7b35e47ddb52"
"gitHead": "c24468526298ee26ad7f7280b59f6c8789e1f75f"
}

@@ -0,1 +1,6 @@

/**
* @license
* Copyright (c) 2021 Vaadin Ltd.
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { TemplateResult } from 'lit';

@@ -5,5 +10,33 @@ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';

import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';
import { NotificationEventMap, NotificationPosition, NotificationRenderer, ShowOptions } from './interfaces';
export type NotificationPosition =
| 'top-stretch'
| 'top-start'
| 'top-center'
| 'top-end'
| 'middle'
| 'bottom-start'
| 'bottom-center'
| 'bottom-end'
| 'bottom-stretch';
export type NotificationRenderer = (root: HTMLElement, notification?: Notification) => void;
/**
* Fired when the `opened` property changes.
*/
export type NotificationOpenedChangedEvent = CustomEvent<{ value: boolean }>;
export interface NotificationCustomEventMap {
'opened-changed': NotificationOpenedChangedEvent;
}
export interface NotificationEventMap extends HTMLElementEventMap, NotificationCustomEventMap {}
export interface ShowOptions {
duration?: number;
position?: NotificationPosition;
}
/**
* An element used internally by `<vaadin-notification>`. Not intended to be used separately.

@@ -106,9 +139,2 @@ */

/**
* Manually invoke existing renderer.
*
* @deprecated Since Vaadin 21, `render()` is deprecated. Please use `requestContentUpdate()` instead.
*/
render(): void;
/**
* Opens the notification.

@@ -115,0 +141,0 @@ */

@@ -328,13 +328,2 @@ /**

/**
* Manually invoke existing renderer.
*
* @deprecated Since Vaadin 21, `render()` is deprecated. Please use `requestContentUpdate()` instead.
*/
render() {
console.warn('WARNING: Since Vaadin 21, render() is deprecated. Please use requestContentUpdate() instead.');
this.requestContentUpdate();
}
/** @private */

@@ -341,0 +330,0 @@ _rendererChanged(renderer, opened, card) {

export * from './src/vaadin-notification.js';
export * from './src/interfaces';
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