@vaadin/upload 25.2.0-beta1 → 25.2.0-beta2

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.
@@ -1145,7 +1145,7 @@
1145
1145
  "declarations": [
1146
1146
  {
1147
1147
  "kind": "class",
1148
- "description": "A pure JavaScript class that manages file upload state and XHR requests.\nIt has no knowledge of UI components - components should listen to events and\ncall methods to interact with the manager.\n\n**Note:** This class is experimental and requires the `modularUpload` or `aiComponents` feature flag to be enabled:\n```javascript\nwindow.Vaadin.featureFlags.modularUpload = true;\n```",
1148
+ "description": "A pure JavaScript class that manages file upload state and XHR requests.\nIt has no knowledge of UI components - components should listen to events and\ncall methods to interact with the manager.",
1149
1149
  "name": "UploadManager",
1150
1150
  "members": [
1151
1151
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/upload",
3
- "version": "25.2.0-beta1",
3
+ "version": "25.2.0-beta2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,25 +35,25 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/a11y-base": "25.2.0-beta1",
39
- "@vaadin/button": "25.2.0-beta1",
40
- "@vaadin/component-base": "25.2.0-beta1",
41
- "@vaadin/progress-bar": "25.2.0-beta1",
42
- "@vaadin/vaadin-themable-mixin": "25.2.0-beta1",
38
+ "@vaadin/a11y-base": "25.2.0-beta2",
39
+ "@vaadin/button": "25.2.0-beta2",
40
+ "@vaadin/component-base": "25.2.0-beta2",
41
+ "@vaadin/progress-bar": "25.2.0-beta2",
42
+ "@vaadin/vaadin-themable-mixin": "25.2.0-beta2",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/aura": "25.2.0-beta1",
47
- "@vaadin/chai-plugins": "25.2.0-beta1",
48
- "@vaadin/test-runner-commands": "25.2.0-beta1",
46
+ "@vaadin/aura": "25.2.0-beta2",
47
+ "@vaadin/chai-plugins": "25.2.0-beta2",
48
+ "@vaadin/test-runner-commands": "25.2.0-beta2",
49
49
  "@vaadin/testing-helpers": "^2.0.0",
50
- "@vaadin/vaadin-lumo-styles": "25.2.0-beta1",
51
- "sinon": "^21.0.2"
50
+ "@vaadin/vaadin-lumo-styles": "25.2.0-beta2",
51
+ "sinon": "^22.0.0"
52
52
  },
53
53
  "customElements": "custom-elements.json",
54
54
  "web-types": [
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "471a23f60d1eb725f98a33f62cb9664d9c0a4163"
58
+ "gitHead": "9e18feb8057baf278b72fec4e42657b19e48f499"
59
59
  }
@@ -405,11 +405,7 @@ export const UploadFileListMixin = (superClass) =>
405
405
  .status="${file.status}"
406
406
  .uploading="${file.uploading}"
407
407
  .i18n="${i18n}"
408
- theme="${ifDefined(
409
- window.Vaadin.featureFlags.modularUpload || window.Vaadin.featureFlags.aiComponents
410
- ? this._theme
411
- : undefined,
412
- )}"
408
+ theme="${ifDefined(this._theme)}"
413
409
  ></vaadin-upload-file>
414
410
  </li>
415
411
  `,
@@ -4,19 +4,11 @@
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
 
7
- window.Vaadin ||= {};
8
- window.Vaadin.featureFlags ||= {};
9
-
10
7
  /**
11
8
  * A pure JavaScript class that manages file upload state and XHR requests.
12
9
  * It has no knowledge of UI components - components should listen to events and
13
10
  * call methods to interact with the manager.
14
11
  *
15
- * **Note:** This class is experimental and requires the `modularUpload` or `aiComponents` feature flag to be enabled:
16
- * ```javascript
17
- * window.Vaadin.featureFlags.modularUpload = true;
18
- * ```
19
- *
20
12
  * @example
21
13
  * ```javascript
22
14
  * import { UploadManager } from '@vaadin/upload';
@@ -108,12 +100,6 @@ export class UploadManager extends EventTarget {
108
100
  constructor(options = {}) {
109
101
  super();
110
102
 
111
- if (!window.Vaadin.featureFlags.modularUpload && !window.Vaadin.featureFlags.aiComponents) {
112
- throw new Error(
113
- 'UploadManager requires the modularUpload feature flag. Enable it with: window.Vaadin.featureFlags.modularUpload = true',
114
- );
115
- }
116
-
117
103
  // Configuration properties - use setters for validation
118
104
  this.target = options.target || '';
119
105
  this.method = options.method || 'POST';
@@ -581,12 +581,7 @@ export const UploadMixin = (superClass) =>
581
581
  list.items = [...files];
582
582
  list.i18n = effectiveI18n;
583
583
  list.disabled = disabled;
584
- if (
585
- window.Vaadin &&
586
- window.Vaadin.featureFlags &&
587
- (window.Vaadin.featureFlags.modularUpload || window.Vaadin.featureFlags.aiComponents) &&
588
- this._theme
589
- ) {
584
+ if (this._theme) {
590
585
  list.setAttribute('theme', this._theme);
591
586
  } else {
592
587
  list.removeAttribute('theme');
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.2.0-beta1",
4
+ "version": "25.2.0-beta2",
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.2.0-beta1",
4
+ "version": "25.2.0-beta2",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {