@vaadin/upload 25.3.0-alpha2 → 25.3.0-alpha4

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/upload",
3
- "version": "25.3.0-alpha2",
3
+ "version": "25.3.0-alpha4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,19 +35,19 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "25.3.0-alpha2",
39
- "@vaadin/button": "25.3.0-alpha2",
40
- "@vaadin/component-base": "25.3.0-alpha2",
41
- "@vaadin/progress-bar": "25.3.0-alpha2",
42
- "@vaadin/vaadin-themable-mixin": "25.3.0-alpha2",
38
+ "@vaadin/a11y-base": "25.3.0-alpha4",
39
+ "@vaadin/button": "25.3.0-alpha4",
40
+ "@vaadin/component-base": "25.3.0-alpha4",
41
+ "@vaadin/progress-bar": "25.3.0-alpha4",
42
+ "@vaadin/vaadin-themable-mixin": "25.3.0-alpha4",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/aura": "25.3.0-alpha2",
47
- "@vaadin/chai-plugins": "25.3.0-alpha2",
48
- "@vaadin/test-runner-commands": "25.3.0-alpha2",
46
+ "@vaadin/aura": "25.3.0-alpha4",
47
+ "@vaadin/chai-plugins": "25.3.0-alpha4",
48
+ "@vaadin/test-runner-commands": "25.3.0-alpha4",
49
49
  "@vaadin/testing-helpers": "^2.0.0",
50
- "@vaadin/vaadin-lumo-styles": "25.3.0-alpha2",
50
+ "@vaadin/vaadin-lumo-styles": "25.3.0-alpha4",
51
51
  "sinon": "^22.0.0"
52
52
  },
53
53
  "customElements": "custom-elements.json",
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "52eba6153ecf8bfaae44bcb727595e77d90b963c"
58
+ "gitHead": "ff0efcd52d3b8a081e8101d36cf7bef65ed71cb1"
59
59
  }
@@ -105,11 +105,13 @@ class UploadFile extends UploadFileMixin(ThemableMixin(PolylitMixin(LumoInjectio
105
105
  return html`
106
106
  <div part="loader" ?hidden="${!this.uploading}" aria-hidden="true"></div>
107
107
 
108
- ${this.__thumbnail
109
- ? html`<div part="thumbnail">
110
- <img src="${this.__thumbnail}" alt="${this.fileName}" />
111
- </div>`
112
- : nothing}
108
+ ${
109
+ this.__thumbnail
110
+ ? html`<div part="thumbnail">
111
+ <img src="${this.__thumbnail}" alt="${this.fileName}" />
112
+ </div>`
113
+ : nothing
114
+ }
113
115
 
114
116
  <div part="done-icon" ?hidden="${!this.complete}" aria-hidden="true"></div>
115
117
  <div part="warning-icon" ?hidden="${!this.errorMessage}" aria-hidden="true"></div>
@@ -10,12 +10,7 @@ export type UploadFormat = 'raw' | 'multipart';
10
10
  export type FileRejectError = 'tooManyFiles' | 'fileIsTooBig' | 'incorrectFileType';
11
11
 
12
12
  export type UploadErrorKey =
13
- | 'timeout'
14
- | 'serverUnavailable'
15
- | 'unexpectedServerError'
16
- | 'forbidden'
17
- | 'sendFailed'
18
- | 'fileTooLarge';
13
+ 'timeout' | 'serverUnavailable' | 'unexpectedServerError' | 'forbidden' | 'sendFailed' | 'fileTooLarge';
19
14
 
20
15
  export interface UploadFile extends File {
21
16
  uploadTarget: string;
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/upload",
4
- "version": "25.3.0-alpha2",
4
+ "version": "25.3.0-alpha4",
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/upload",
4
- "version": "25.3.0-alpha2",
4
+ "version": "25.3.0-alpha4",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {