@uppy/angular 0.8.1 → 0.9.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,24 @@
1
+ # @uppy/angular
2
+
3
+ ## 0.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 7eec173: Remove "files" array from package.json
8
+
9
+ ## 0.9.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 8b8ab01: Declare components as standalone & support 20.x
14
+
15
+ ### Patch Changes
16
+
17
+ - 1b1a9e3: Define "files" in package.json
18
+ - Updated dependencies [1b1a9e3]
19
+ - @uppy/progress-bar@4.3.2
20
+ - @uppy/status-bar@4.2.2
21
+ - @uppy/dashboard@4.4.2
22
+ - @uppy/drag-drop@4.2.2
23
+ - @uppy/utils@6.2.2
24
+ - @uppy/core@4.5.2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uppy/angular",
3
3
  "description": "Angular component wrappers around Uppy's official UI plugins.",
4
- "version": "0.8.1",
4
+ "version": "0.9.1",
5
5
  "license": "MIT",
6
6
  "homepage": "https://uppy.io",
7
7
  "keywords": [
@@ -25,14 +25,14 @@
25
25
  "tslib": "^2.0.0"
26
26
  },
27
27
  "peerDependencies": {
28
- "@angular/common": "^17.0.0 || ^18.0.0 || ^19.0.0",
29
- "@angular/core": "^17.0.0 || ^18.0.0 || ^19.0.0",
30
- "@uppy/core": "^4.5.1",
31
- "@uppy/dashboard": "^4.4.1",
32
- "@uppy/drag-drop": "^4.2.1",
33
- "@uppy/progress-bar": "^4.3.1",
34
- "@uppy/status-bar": "^4.2.1",
35
- "@uppy/utils": "^6.2.1"
28
+ "@angular/common": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
29
+ "@angular/core": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0",
30
+ "@uppy/core": "^4.5.2",
31
+ "@uppy/dashboard": "^4.4.2",
32
+ "@uppy/drag-drop": "^4.2.2",
33
+ "@uppy/progress-bar": "^4.3.2",
34
+ "@uppy/status-bar": "^4.2.2",
35
+ "@uppy/utils": "^6.2.2"
36
36
  },
37
37
  "sideEffects": false
38
38
  }
@@ -2,13 +2,16 @@ import { ChangeDetectionStrategy, Component } from "@angular/core";
2
2
  import { Uppy } from "@uppy/core";
3
3
  import type * as Dashboard from "@uppy/dashboard";
4
4
  import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
5
+ import { DashboardComponent } from "./dashboard.component";
5
6
 
6
7
  @Component({
7
8
  selector: "uppy-dashboard-demo",
8
9
  template: `<uppy-dashboard [uppy]="uppy" [props]="props"></uppy-dashboard>`,
9
10
  changeDetection: ChangeDetectionStrategy.OnPush,
11
+ standalone: true,
12
+ imports: [DashboardComponent],
10
13
  })
11
14
  export class DashboardDemoComponent<M extends Meta, B extends Body> {
12
15
  uppy: Uppy<M, B> = new Uppy({ debug: true, autoProceed: true });
13
- props?: Dashboard.DashboardOptions<M, B>;
16
+ props: Dashboard.DashboardOptions<M, B> = {};
14
17
  }
@@ -18,6 +18,7 @@ import { UppyAngularWrapper } from "../../utils/wrapper";
18
18
  selector: "uppy-dashboard",
19
19
  template: "",
20
20
  changeDetection: ChangeDetectionStrategy.OnPush,
21
+ standalone: true,
21
22
  })
22
23
  export class DashboardComponent<M extends Meta, B extends Body>
23
24
  extends UppyAngularWrapper<M, B, DashboardOptions<M, B>>
@@ -2,6 +2,8 @@ import { ChangeDetectionStrategy, Component } from "@angular/core";
2
2
  import { Uppy } from "@uppy/core";
3
3
  import type * as Dashboard from "@uppy/dashboard";
4
4
  import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
5
+ import { DashboardModalComponent } from "./dashboard-modal.component";
6
+
5
7
 
6
8
  @Component({
7
9
  selector: "uppy-dashboard-demo",
@@ -10,8 +12,10 @@ import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
10
12
  [props]="props"
11
13
  ></uppy-dashboard-modal>`,
12
14
  changeDetection: ChangeDetectionStrategy.OnPush,
15
+ standalone: true,
16
+ imports: [DashboardModalComponent],
13
17
  })
14
18
  export class DashboardModalDemoComponent<M extends Meta, B extends Body> {
15
19
  uppy: Uppy<M, B> = new Uppy({ debug: true, autoProceed: true });
16
- props?: Dashboard.DashboardOptions<M, B>;
20
+ props: Dashboard.DashboardOptions<M, B> = {};
17
21
  }
@@ -18,6 +18,7 @@ import { UppyAngularWrapper } from "../../utils/wrapper";
18
18
  selector: "uppy-dashboard-modal",
19
19
  template: "",
20
20
  changeDetection: ChangeDetectionStrategy.OnPush,
21
+ standalone: true,
21
22
  })
22
23
  export class DashboardModalComponent<M extends Meta, B extends Body>
23
24
  extends UppyAngularWrapper<M, B, DashboardOptions<M, B>, Dashboard<M, B>>
@@ -2,11 +2,15 @@ import { ChangeDetectionStrategy, Component } from "@angular/core";
2
2
  import { Uppy } from "@uppy/core";
3
3
  import type * as DragDrop from "@uppy/drag-drop";
4
4
  import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
5
+ import { DragDropComponent } from "./drag-drop.component";
6
+
5
7
 
6
8
  @Component({
7
9
  selector: "uppy-drag-drop-demo",
8
10
  template: ` <uppy-drag-drop [uppy]="uppy" [props]="props"></uppy-drag-drop> `,
9
11
  changeDetection: ChangeDetectionStrategy.OnPush,
12
+ standalone: true,
13
+ imports: [DragDropComponent],
10
14
  })
11
15
  export class DragDropDemoComponent<M extends Meta, B extends Body> {
12
16
  uppy: Uppy<M, B> = new Uppy({ debug: true, autoProceed: true });
@@ -18,6 +18,7 @@ import { UppyAngularWrapper } from "../../utils/wrapper";
18
18
  selector: "uppy-drag-drop",
19
19
  template: "",
20
20
  changeDetection: ChangeDetectionStrategy.OnPush,
21
+ standalone: true,
21
22
  })
22
23
  export class DragDropComponent<M extends Meta, B extends Body>
23
24
  extends UppyAngularWrapper<M, B, DragDropOptions>
@@ -9,6 +9,9 @@ import { Uppy } from "@uppy/core";
9
9
  import type { ProgressBarOptions } from "@uppy/progress-bar";
10
10
  import Tus from "@uppy/tus";
11
11
  import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
12
+ import { ProgressBarComponent } from "./progress-bar.component";
13
+ import { DragDropComponent } from "../drag-drop/drag-drop.component";
14
+ import { CommonModule } from "@angular/common";
12
15
 
13
16
  @Component({
14
17
  selector: "uppy-progress-bar-demo",
@@ -56,6 +59,8 @@ import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
56
59
  </section>
57
60
  `,
58
61
  changeDetection: ChangeDetectionStrategy.OnPush,
62
+ standalone: true,
63
+ imports: [ProgressBarComponent, DragDropComponent, CommonModule],
59
64
  })
60
65
  export class ProgressBarDemoComponent<M extends Meta, B extends Body>
61
66
  implements OnInit
@@ -81,9 +86,9 @@ export class ProgressBarDemoComponent<M extends Meta, B extends Body>
81
86
 
82
87
  updateFileList =
83
88
  (target: string) =>
84
- (file, response): void => {
85
- this[target] = [
86
- ...this[target],
89
+ (file: any, response: any): void => {
90
+ (this as any)[target] = [
91
+ ...(this as any)[target],
87
92
  { url: response.uploadURL, fileName: file.name },
88
93
  ];
89
94
  this.cdr.markForCheck();
@@ -18,6 +18,7 @@ import { UppyAngularWrapper } from "../../utils/wrapper";
18
18
  selector: "uppy-progress-bar",
19
19
  template: "",
20
20
  changeDetection: ChangeDetectionStrategy.OnPush,
21
+ standalone: true,
21
22
  })
22
23
  export class ProgressBarComponent<M extends Meta, B extends Body>
23
24
  extends UppyAngularWrapper<M, B, ProgressBarOptions>
@@ -4,6 +4,7 @@ import FileInput from "@uppy/file-input";
4
4
  import type * as StatusBar from "@uppy/status-bar";
5
5
  import Tus from "@uppy/tus";
6
6
  import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
7
+ import { StatusBarComponent } from "./status-bar.component";
7
8
 
8
9
  @Component({
9
10
  selector: "uppy-status-bar-demo",
@@ -12,6 +13,8 @@ import type { Body, Meta } from "@uppy/utils/lib/UppyFile";
12
13
  <uppy-status-bar [uppy]="uppy" [props]="props"></uppy-status-bar>
13
14
  `,
14
15
  changeDetection: ChangeDetectionStrategy.OnPush,
16
+ standalone: true,
17
+ imports: [StatusBarComponent],
15
18
  })
16
19
  export class StatusBarDemoComponent<M extends Meta, B extends Body>
17
20
  implements OnInit
@@ -18,6 +18,7 @@ import { UppyAngularWrapper } from "../../utils/wrapper";
18
18
  selector: "uppy-status-bar",
19
19
  template: "",
20
20
  changeDetection: ChangeDetectionStrategy.OnPush,
21
+ standalone: true,
21
22
  })
22
23
  export class StatusBarComponent<M extends Meta, B extends Body>
23
24
  extends UppyAngularWrapper<M, B, StatusBarOptions>