@vaadin/avatar 24.7.0-alpha1 → 24.7.0-alpha2

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/avatar",
3
- "version": "24.7.0-alpha1",
3
+ "version": "24.7.0-alpha2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,16 +38,16 @@
38
38
  "dependencies": {
39
39
  "@open-wc/dedupe-mixin": "^1.3.0",
40
40
  "@polymer/polymer": "^3.0.0",
41
- "@vaadin/a11y-base": "24.7.0-alpha1",
42
- "@vaadin/component-base": "24.7.0-alpha1",
43
- "@vaadin/tooltip": "24.7.0-alpha1",
44
- "@vaadin/vaadin-lumo-styles": "24.7.0-alpha1",
45
- "@vaadin/vaadin-material-styles": "24.7.0-alpha1",
46
- "@vaadin/vaadin-themable-mixin": "24.7.0-alpha1",
41
+ "@vaadin/a11y-base": "24.7.0-alpha2",
42
+ "@vaadin/component-base": "24.7.0-alpha2",
43
+ "@vaadin/tooltip": "24.7.0-alpha2",
44
+ "@vaadin/vaadin-lumo-styles": "24.7.0-alpha2",
45
+ "@vaadin/vaadin-material-styles": "24.7.0-alpha2",
46
+ "@vaadin/vaadin-themable-mixin": "24.7.0-alpha2",
47
47
  "lit": "^3.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@vaadin/chai-plugins": "24.7.0-alpha1",
50
+ "@vaadin/chai-plugins": "24.7.0-alpha2",
51
51
  "@vaadin/testing-helpers": "^1.0.0",
52
52
  "sinon": "^18.0.0"
53
53
  },
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "04be941c9a7b659871c97f31b9cc3ffd7528087b"
58
+ "gitHead": "e2523f9b4abc5a9586fb758166f823dc40c399dd"
59
59
  }
@@ -5,6 +5,7 @@
5
5
  */
6
6
  import './vaadin-avatar-icons.js';
7
7
  import { html, LitElement } from 'lit';
8
+ import { ifDefined } from 'lit/directives/if-defined.js';
8
9
  import { defineCustomElement } from '@vaadin/component-base/src/define.js';
9
10
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
10
11
  import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
@@ -44,7 +45,7 @@ class Avatar extends AvatarMixin(ElementMixin(ThemableMixin(PolylitMixin(LitElem
44
45
  return html`
45
46
  <img
46
47
  ?hidden="${!this.__imgVisible}"
47
- src="${this.img}"
48
+ src="${ifDefined(this.img)}"
48
49
  aria-hidden="true"
49
50
  @error="${this.__onImageLoadError}"
50
51
  draggable="false"
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/avatar",
4
- "version": "24.7.0-alpha1",
4
+ "version": "24.7.0-alpha2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/avatar",
4
- "version": "24.7.0-alpha1",
4
+ "version": "24.7.0-alpha2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {