@vaadin/vaadin-notification 22.0.0-beta1 → 22.0.1

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.
Files changed (2) hide show
  1. package/README.md +7 -57
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,62 +1,11 @@
1
- # <vaadin-notification>
1
+ # @vaadin/vaadin-notification
2
2
 
3
- [Live Demo ↗](https://vaadin.com/components/vaadin-notification/html-examples)
4
- |
5
- [API documentation ↗](https://vaadin.com/components/vaadin-notification/html-api)
3
+ > ⚠️  Starting from Vaadin 22, this package is deprecated.
4
+ > Please use [`@vaadin/notification`](https://www.npmjs.com/package/@vaadin/notification) instead.
6
5
 
7
- [<vaadin-notification>](https://vaadin.com/components/vaadin-notification) is a Web Component providing accessible and customizable notifications (toasts), part of the [Vaadin components](https://vaadin.com/components).
6
+ A web component for providing feedback to the user.
8
7
 
9
- [![npm version](https://badgen.net/npm/v/@vaadin/vaadin-notification)](https://www.npmjs.com/package/@vaadin/vaadin-notification)
10
- [![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/vaadinvaadin-notification)
11
- [![Discord](https://img.shields.io/discord/732335336448852018?label=discord)](https://discord.gg/PHmkCKC)
12
-
13
- ```html
14
- <vaadin-notification opened position="middle" duration="-1"></vaadin-notification>
15
-
16
- <script>
17
- const notification = document.querySelector('vaadin-notification');
18
-
19
- notification.renderer = function (root) {
20
- root.textContent = 'Your work has been saved';
21
- };
22
- </script>
23
- ```
24
-
25
- [<img src="https://raw.githubusercontent.com/vaadin/vaadin-notification/master/screenshot.png" width="336" alt="Screenshot of vaadin-notification">](https://vaadin.com/components/vaadin-notification)
26
-
27
- ## Installation
28
-
29
- Install `vaadin-notification`:
30
-
31
- ```sh
32
- npm i @vaadin/vaadin-notification --save
33
- ```
34
-
35
- Once installed, import it in your application:
36
-
37
- ```js
38
- import '@vaadin/vaadin-notification/vaadin-notification.js';
39
- ```
40
-
41
- ## Getting started
42
-
43
- Vaadin components use the Lumo theme by default.
44
-
45
- To use the Material theme, import the correspondent file from the `theme/material` folder.
46
-
47
- ## Entry points
48
-
49
- - The component with the Lumo theme:
50
-
51
- `theme/lumo/vaadin-notification.js`
52
-
53
- - The component with the Material theme:
54
-
55
- `theme/material/vaadin-notification.js`
56
-
57
- - Alias for `theme/lumo/vaadin-notification.js`:
58
-
59
- - `vaadin-notification.js`
8
+ [Documentation + Live Demo ↗](https://vaadin.com/docs/latest/ds/components/notification)
60
9
 
61
10
  ## Contributing
62
11
 
@@ -66,4 +15,5 @@ Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/
66
15
 
67
16
  Apache License 2.0
68
17
 
69
- Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
18
+ Vaadin collects usage statistics at development time to improve this product..
19
+ For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/vaadin-notification",
3
- "version": "22.0.0-beta1",
3
+ "version": "22.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,7 +32,7 @@
32
32
  "polymer"
33
33
  ],
34
34
  "dependencies": {
35
- "@vaadin/notification": "22.0.0-beta1"
35
+ "@vaadin/notification": "^22.0.1"
36
36
  },
37
- "gitHead": "4cf8a9d0504994200c610e44b3676114fef49c1e"
37
+ "gitHead": "2b0a2bff0369d6020f7cc33ad35506aa2d1f6f68"
38
38
  }