@vaadin/notification 23.1.2 → 23.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/notification",
3
- "version": "23.1.2",
3
+ "version": "23.1.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,19 +36,19 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "^23.1.2",
40
- "@vaadin/lit-renderer": "^23.1.2",
41
- "@vaadin/vaadin-lumo-styles": "^23.1.2",
42
- "@vaadin/vaadin-material-styles": "^23.1.2",
43
- "@vaadin/vaadin-themable-mixin": "^23.1.2",
39
+ "@vaadin/component-base": "^23.1.5",
40
+ "@vaadin/lit-renderer": "^23.1.5",
41
+ "@vaadin/vaadin-lumo-styles": "^23.1.5",
42
+ "@vaadin/vaadin-material-styles": "^23.1.5",
43
+ "@vaadin/vaadin-themable-mixin": "^23.1.5",
44
44
  "lit": "^2.0.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@esm-bundle/chai": "^4.3.4",
48
- "@vaadin/button": "^23.1.2",
49
- "@vaadin/polymer-legacy-adapter": "^23.1.2",
48
+ "@vaadin/button": "^23.1.5",
49
+ "@vaadin/polymer-legacy-adapter": "^23.1.5",
50
50
  "@vaadin/testing-helpers": "^0.3.2",
51
51
  "sinon": "^13.0.2"
52
52
  },
53
- "gitHead": "6fb205c6e9a761feadfb779dd5d7af96d3102e56"
53
+ "gitHead": "326938919a54353231af25d341ba6076c249afee"
54
54
  }
@@ -9,15 +9,15 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
9
9
  import { ThemePropertyMixin } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';
10
10
 
11
11
  export type NotificationPosition =
12
- | 'top-stretch'
13
- | 'top-start'
14
- | 'top-center'
15
- | 'top-end'
16
- | 'middle'
17
- | 'bottom-start'
18
12
  | 'bottom-center'
19
13
  | 'bottom-end'
20
- | 'bottom-stretch';
14
+ | 'bottom-start'
15
+ | 'bottom-stretch'
16
+ | 'middle'
17
+ | 'top-center'
18
+ | 'top-end'
19
+ | 'top-start'
20
+ | 'top-stretch';
21
21
 
22
22
  export type NotificationRenderer = (root: HTMLElement, notification?: Notification) => void;
23
23
 
@@ -121,7 +121,7 @@ declare class Notification extends ThemePropertyMixin(ElementMixin(HTMLElement))
121
121
  * @param contents the contents to show, either as a string or a Lit template.
122
122
  * @param options optional options for customizing the notification.
123
123
  */
124
- static show(contents: string | TemplateResult, options?: ShowOptions): Notification;
124
+ static show(contents: TemplateResult | string, options?: ShowOptions): Notification;
125
125
 
126
126
  /**
127
127
  * The duration in milliseconds to show the notification.
@@ -171,13 +171,13 @@ declare class Notification extends ThemePropertyMixin(ElementMixin(HTMLElement))
171
171
  addEventListener<K extends keyof NotificationEventMap>(
172
172
  type: K,
173
173
  listener: (this: Notification, ev: NotificationEventMap[K]) => void,
174
- options?: boolean | AddEventListenerOptions,
174
+ options?: AddEventListenerOptions | boolean,
175
175
  ): void;
176
176
 
177
177
  removeEventListener<K extends keyof NotificationEventMap>(
178
178
  type: K,
179
179
  listener: (this: Notification, ev: NotificationEventMap[K]) => void,
180
- options?: boolean | EventListenerOptions,
180
+ options?: EventListenerOptions | boolean,
181
181
  ): void;
182
182
  }
183
183