From d6080c2e6f8071fef51b8e744ad1bb4ddd063167 Mon Sep 17 00:00:00 2001 From: Murderlon Date: Mon, 4 Aug 2025 17:00:05 +0200 Subject: [PATCH] Fix CI --- .github/workflows/release.yml | 4 +- packages/@uppy/angular/.gitignore | 6 + .../angular/projects/uppy/angular/.npmignore | 2 - .../uppy/angular/fesm2022/uppy-angular.mjs | 230 ------------------ .../angular/fesm2022/uppy-angular.mjs.map | 1 - .../angular/projects/uppy/angular/index.d.ts | 5 - .../projects/uppy/angular/public-api.d.ts | 5 - 7 files changed, 8 insertions(+), 245 deletions(-) delete mode 100644 packages/@uppy/angular/projects/uppy/angular/.npmignore delete mode 100644 packages/@uppy/angular/projects/uppy/angular/fesm2022/uppy-angular.mjs delete mode 100644 packages/@uppy/angular/projects/uppy/angular/fesm2022/uppy-angular.mjs.map delete mode 100644 packages/@uppy/angular/projects/uppy/angular/index.d.ts delete mode 100644 packages/@uppy/angular/projects/uppy/angular/public-api.d.ts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8d84ad03..407488b86 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -63,13 +63,13 @@ jobs: git diff --exit-code --quiet HEAD^ -- packages/@uppy/companion/package.json || echo "version=$(jq -r .version < packages/@uppy/companion/package.json)" >> $GITHUB_OUTPUT - name: Upload `uppy` to CDN - run: corepack yarn run uploadcdn uppy -- --force + run: node packages/uppy/upload-to-cdn.js uppy --force env: EDGLY_KEY: ${{secrets.EDGLY_KEY}} EDGLY_SECRET: ${{secrets.EDGLY_SECRET}} - name: Upload `@uppy/locales` to CDN if it was released - run: corepack yarn run uploadcdn @uppy/locales -- --force + run: node packages/uppy/upload-to-cdn.js @uppy/locales --force env: EDGLY_KEY: ${{secrets.EDGLY_KEY}} EDGLY_SECRET: ${{secrets.EDGLY_SECRET}} diff --git a/packages/@uppy/angular/.gitignore b/packages/@uppy/angular/.gitignore index 63dc87b02..e3882662d 100644 --- a/packages/@uppy/angular/.gitignore +++ b/packages/@uppy/angular/.gitignore @@ -39,3 +39,9 @@ testem.log # System files .DS_Store Thumbs.db + +# Generated files from prepublishOnly +projects/uppy/angular/.npmignore +projects/uppy/angular/fesm2022/ +projects/uppy/angular/index.d.ts +projects/uppy/angular/public-api.d.ts diff --git a/packages/@uppy/angular/projects/uppy/angular/.npmignore b/packages/@uppy/angular/projects/uppy/angular/.npmignore deleted file mode 100644 index c97ccf294..000000000 --- a/packages/@uppy/angular/projects/uppy/angular/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -# Nested package.json's are only needed for development. -**/package.json \ No newline at end of file diff --git a/packages/@uppy/angular/projects/uppy/angular/fesm2022/uppy-angular.mjs b/packages/@uppy/angular/projects/uppy/angular/fesm2022/uppy-angular.mjs deleted file mode 100644 index 7615c833a..000000000 --- a/packages/@uppy/angular/projects/uppy/angular/fesm2022/uppy-angular.mjs +++ /dev/null @@ -1,230 +0,0 @@ -import * as i0 from '@angular/core'; -import { inject, ElementRef, Input, ChangeDetectionStrategy, Component } from '@angular/core'; -import { Uppy } from '@uppy/core'; -import Dashboard from '@uppy/dashboard'; -import DragDrop from '@uppy/drag-drop'; -import ProgressBar from '@uppy/progress-bar'; -import StatusBar from '@uppy/status-bar'; - -class UppyAngularWrapper { - onMount(defaultOptions, plugin) { - this.options = { - ...defaultOptions, - ...this.props, - }; - this.uppy.use(plugin, this.options); - this.plugin = this.uppy.getPlugin(this.options.id); - } - handleChanges(changes, plugin) { - // Without the last part of this conditional, it tries to uninstall before the plugin is mounted - if (changes["uppy"] && - this.uppy !== changes["uppy"].previousValue && - changes["uppy"].previousValue !== undefined) { - this.uninstall(changes["uppy"].previousValue); - // @ts-expect-error The options correspond to the plugin, I swear - this.uppy.use(plugin, this.options); - } - this.options = { ...this.options, ...this.props }; - this.plugin = this.uppy.getPlugin(this.options.id); - if (changes["props"] && - this.props !== changes["props"].previousValue && - changes["props"].previousValue !== undefined) { - this.plugin.setOptions({ ...this.options }); - } - } - uninstall(uppy = this.uppy) { - uppy.removePlugin(this.plugin); - } -} - -class DashboardComponent extends UppyAngularWrapper { - constructor() { - super(); - this.el = inject(ElementRef); - this.uppy = new Uppy(); - this.props = {}; - } - ngOnInit() { - this.onMount({ id: "angular:Dashboard", inline: true, target: this.el.nativeElement }, Dashboard); - } - ngOnChanges(changes) { - this.handleChanges(changes, Dashboard); - } - ngOnDestroy() { - this.uninstall(); - } - static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DashboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } - static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: DashboardComponent, isStandalone: true, selector: "uppy-dashboard", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); } -} -i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DashboardComponent, decorators: [{ - type: Component, - args: [{ - selector: "uppy-dashboard", - template: "", - changeDetection: ChangeDetectionStrategy.OnPush, - standalone: true, - }] - }], ctorParameters: () => [], propDecorators: { uppy: [{ - type: Input - }], props: [{ - type: Input - }] } }); - -class DashboardModalComponent extends UppyAngularWrapper { - constructor() { - super(); - this.el = inject(ElementRef); - this.uppy = new Uppy(); - this.props = {}; - this.open = false; - } - ngOnInit() { - this.onMount({ - id: "angular:DashboardModal", - inline: false, - target: this.el.nativeElement, - }, Dashboard); - } - ngOnChanges(changes) { - this.handleChanges(changes, Dashboard); - // Handle dashboard-modal specific changes - if (changes["open"] && this.open !== changes["open"].previousValue) { - if (this.open && !changes["open"].previousValue) { - this.plugin.openModal(); - } - if (!this.open && changes["open"].previousValue) { - this.plugin.closeModal(); - } - } - } - ngOnDestroy() { - this.uninstall(); - } - static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DashboardModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } - static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: DashboardModalComponent, isStandalone: true, selector: "uppy-dashboard-modal", inputs: { uppy: "uppy", props: "props", open: "open" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); } -} -i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DashboardModalComponent, decorators: [{ - type: Component, - args: [{ - selector: "uppy-dashboard-modal", - template: "", - changeDetection: ChangeDetectionStrategy.OnPush, - standalone: true, - }] - }], ctorParameters: () => [], propDecorators: { uppy: [{ - type: Input - }], props: [{ - type: Input - }], open: [{ - type: Input - }] } }); - -class DragDropComponent extends UppyAngularWrapper { - constructor() { - super(); - this.el = inject(ElementRef); - this.uppy = new Uppy(); - this.props = {}; - } - ngOnInit() { - this.onMount({ id: "angular:DragDrop", target: this.el.nativeElement }, DragDrop); - } - ngOnChanges(changes) { - this.handleChanges(changes, DragDrop); - } - ngOnDestroy() { - this.uninstall(); - } - static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DragDropComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } - static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: DragDropComponent, isStandalone: true, selector: "uppy-drag-drop", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); } -} -i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: DragDropComponent, decorators: [{ - type: Component, - args: [{ - selector: "uppy-drag-drop", - template: "", - changeDetection: ChangeDetectionStrategy.OnPush, - standalone: true, - }] - }], ctorParameters: () => [], propDecorators: { uppy: [{ - type: Input - }], props: [{ - type: Input - }] } }); - -class ProgressBarComponent extends UppyAngularWrapper { - constructor() { - super(); - this.el = inject(ElementRef); - this.uppy = new Uppy(); - this.props = {}; - } - ngOnInit() { - this.onMount({ id: "angular:ProgressBar", target: this.el.nativeElement }, ProgressBar); - } - ngOnChanges(changes) { - this.handleChanges(changes, ProgressBar); - } - ngOnDestroy() { - this.uninstall(); - } - static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } - static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: ProgressBarComponent, isStandalone: true, selector: "uppy-progress-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); } -} -i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: ProgressBarComponent, decorators: [{ - type: Component, - args: [{ - selector: "uppy-progress-bar", - template: "", - changeDetection: ChangeDetectionStrategy.OnPush, - standalone: true, - }] - }], ctorParameters: () => [], propDecorators: { uppy: [{ - type: Input - }], props: [{ - type: Input - }] } }); - -class StatusBarComponent extends UppyAngularWrapper { - constructor() { - super(); - this.el = inject(ElementRef); - this.uppy = new Uppy(); - this.props = {}; - } - ngOnInit() { - this.onMount({ id: "angular:StatusBar", target: this.el.nativeElement }, StatusBar); - } - ngOnChanges(changes) { - this.handleChanges(changes, StatusBar); - } - ngOnDestroy() { - this.uninstall(); - } - static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: StatusBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); } - static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.5", type: StatusBarComponent, isStandalone: true, selector: "uppy-status-bar", inputs: { uppy: "uppy", props: "props" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "", isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); } -} -i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: StatusBarComponent, decorators: [{ - type: Component, - args: [{ - selector: "uppy-status-bar", - template: "", - changeDetection: ChangeDetectionStrategy.OnPush, - standalone: true, - }] - }], ctorParameters: () => [], propDecorators: { uppy: [{ - type: Input - }], props: [{ - type: Input - }] } }); - -/* - * Public API Surface of @uppy/angular - */ - -/** - * Generated bundle index. Do not edit. - */ - -export { DashboardComponent, DashboardModalComponent, DragDropComponent, ProgressBarComponent, StatusBarComponent }; -//# sourceMappingURL=uppy-angular.mjs.map diff --git a/packages/@uppy/angular/projects/uppy/angular/fesm2022/uppy-angular.mjs.map b/packages/@uppy/angular/projects/uppy/angular/fesm2022/uppy-angular.mjs.map deleted file mode 100644 index 9f767545b..000000000 --- a/packages/@uppy/angular/projects/uppy/angular/fesm2022/uppy-angular.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uppy-angular.mjs","sources":["../../../../projects/uppy/angular/src/lib/utils/wrapper.ts","../../../../projects/uppy/angular/src/lib/components/dashboard/dashboard.component.ts","../../../../projects/uppy/angular/src/lib/components/dashboard-modal/dashboard-modal.component.ts","../../../../projects/uppy/angular/src/lib/components/drag-drop/drag-drop.component.ts","../../../../projects/uppy/angular/src/lib/components/progress-bar/progress-bar.component.ts","../../../../projects/uppy/angular/src/lib/components/status-bar/status-bar.component.ts","../../../../projects/uppy/angular/src/public-api.ts","../../../../projects/uppy/angular/src/uppy-angular.ts"],"sourcesContent":["import type { ElementRef, SimpleChanges } from \"@angular/core\";\nimport type { UIPlugin, UIPluginOptions, Uppy } from \"@uppy/core\";\nimport type { DragDropOptions } from \"@uppy/drag-drop\";\nimport type { ProgressBarOptions } from \"@uppy/progress-bar\";\nimport type { StatusBarOptions } from \"@uppy/status-bar\";\nimport type { Body, Meta } from \"@uppy/utils/lib/UppyFile\";\n\nexport abstract class UppyAngularWrapper<\n\tM extends Meta,\n\tB extends Body,\n\tOpts extends UIPluginOptions,\n\tPluginType extends UIPlugin = UIPlugin,\n> {\n\tabstract props: DragDropOptions | StatusBarOptions | ProgressBarOptions;\n\tabstract el: ElementRef;\n\tabstract uppy: Uppy;\n\tprivate options: any;\n\tplugin: PluginType | undefined;\n\n\tonMount(\n\t\tdefaultOptions: Partial,\n\t\tplugin: new (uppy: any, opts?: Opts) => UIPlugin,\n\t) {\n\t\tthis.options = {\n\t\t\t...defaultOptions,\n\t\t\t...this.props,\n\t\t};\n\n\t\tthis.uppy.use(plugin, this.options);\n\t\tthis.plugin = this.uppy.getPlugin(this.options.id) as PluginType;\n\t}\n\n\thandleChanges(changes: SimpleChanges, plugin: any): void {\n\t\t// Without the last part of this conditional, it tries to uninstall before the plugin is mounted\n\t\tif (\n\t\t\tchanges[\"uppy\"] &&\n\t\t\tthis.uppy !== changes[\"uppy\"].previousValue &&\n\t\t\tchanges[\"uppy\"].previousValue !== undefined\n\t\t) {\n\t\t\tthis.uninstall(changes[\"uppy\"].previousValue);\n\t\t\t// @ts-expect-error The options correspond to the plugin, I swear\n\t\t\tthis.uppy.use(plugin, this.options);\n\t\t}\n\t\tthis.options = { ...this.options, ...this.props };\n\t\tthis.plugin = this.uppy.getPlugin(this.options.id) as PluginType;\n\t\tif (\n\t\t\tchanges[\"props\"] &&\n\t\t\tthis.props !== changes[\"props\"].previousValue &&\n\t\t\tchanges[\"props\"].previousValue !== undefined\n\t\t) {\n\t\t\tthis.plugin.setOptions({ ...this.options });\n\t\t}\n\t}\n\n\tuninstall(uppy = this.uppy): void {\n\t\tuppy.removePlugin(this.plugin!);\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tElementRef,\n\tInput,\n\tinject,\n\ttype OnChanges,\n\ttype OnDestroy,\n\ttype SimpleChanges,\n} from \"@angular/core\";\nimport { Uppy } from \"@uppy/core\";\nimport type { DashboardOptions } from \"@uppy/dashboard\";\nimport Dashboard from \"@uppy/dashboard\";\nimport type { Body, Meta } from \"@uppy/utils/lib/UppyFile\";\nimport { UppyAngularWrapper } from \"../../utils/wrapper\";\n\n@Component({\n\tselector: \"uppy-dashboard\",\n\ttemplate: \"\",\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n})\nexport class DashboardComponent\n\textends UppyAngularWrapper>\n\timplements OnDestroy, OnChanges\n{\n\tel = inject(ElementRef);\n\n\t@Input() uppy: Uppy = new Uppy();\n\t@Input() props: DashboardOptions = {};\n\n\t/** Inserted by Angular inject() migration for backwards compatibility */\n\tconstructor(...args: unknown[]);\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tngOnInit() {\n\t\tthis.onMount(\n\t\t\t{ id: \"angular:Dashboard\", inline: true, target: this.el.nativeElement },\n\t\t\tDashboard,\n\t\t);\n\t}\n\n\tngOnChanges(changes: SimpleChanges): void {\n\t\tthis.handleChanges(changes, Dashboard);\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.uninstall();\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tElementRef,\n\tInput,\n\tinject,\n\ttype OnChanges,\n\ttype OnDestroy,\n\ttype SimpleChanges,\n} from \"@angular/core\";\nimport { Uppy } from \"@uppy/core\";\nimport type { DashboardOptions } from \"@uppy/dashboard\";\nimport Dashboard from \"@uppy/dashboard\";\nimport type { Body, Meta } from \"@uppy/utils/lib/UppyFile\";\nimport { UppyAngularWrapper } from \"../../utils/wrapper\";\n\n@Component({\n\tselector: \"uppy-dashboard-modal\",\n\ttemplate: \"\",\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n})\nexport class DashboardModalComponent\n\textends UppyAngularWrapper, Dashboard>\n\timplements OnDestroy, OnChanges\n{\n\tel = inject(ElementRef);\n\n\t@Input() uppy: Uppy = new Uppy();\n\t@Input() props: DashboardOptions = {};\n\t@Input() open: boolean = false;\n\n\t/** Inserted by Angular inject() migration for backwards compatibility */\n\tconstructor(...args: unknown[]);\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tngOnInit() {\n\t\tthis.onMount(\n\t\t\t{\n\t\t\t\tid: \"angular:DashboardModal\",\n\t\t\t\tinline: false,\n\t\t\t\ttarget: this.el.nativeElement,\n\t\t\t},\n\t\t\tDashboard,\n\t\t);\n\t}\n\n\tngOnChanges(changes: SimpleChanges): void {\n\t\tthis.handleChanges(changes, Dashboard);\n\t\t// Handle dashboard-modal specific changes\n\t\tif (changes[\"open\"] && this.open !== changes[\"open\"].previousValue) {\n\t\t\tif (this.open && !changes[\"open\"].previousValue) {\n\t\t\t\tthis.plugin!.openModal();\n\t\t\t}\n\t\t\tif (!this.open && changes[\"open\"].previousValue) {\n\t\t\t\tthis.plugin!.closeModal();\n\t\t\t}\n\t\t}\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.uninstall();\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tElementRef,\n\tInput,\n\tinject,\n\ttype OnChanges,\n\ttype OnDestroy,\n\ttype SimpleChanges,\n} from \"@angular/core\";\nimport { Uppy } from \"@uppy/core\";\nimport type { DragDropOptions } from \"@uppy/drag-drop\";\nimport DragDrop from \"@uppy/drag-drop\";\nimport type { Body, Meta } from \"@uppy/utils/lib/UppyFile\";\nimport { UppyAngularWrapper } from \"../../utils/wrapper\";\n\n@Component({\n\tselector: \"uppy-drag-drop\",\n\ttemplate: \"\",\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n})\nexport class DragDropComponent\n\textends UppyAngularWrapper\n\timplements OnDestroy, OnChanges\n{\n\tel = inject(ElementRef);\n\n\t@Input() uppy: Uppy = new Uppy();\n\t@Input() props: DragDropOptions = {};\n\n\t/** Inserted by Angular inject() migration for backwards compatibility */\n\tconstructor(...args: unknown[]);\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tngOnInit() {\n\t\tthis.onMount(\n\t\t\t{ id: \"angular:DragDrop\", target: this.el.nativeElement },\n\t\t\tDragDrop,\n\t\t);\n\t}\n\n\tngOnChanges(changes: SimpleChanges): void {\n\t\tthis.handleChanges(changes, DragDrop);\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.uninstall();\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tElementRef,\n\tInput,\n\tinject,\n\ttype OnChanges,\n\ttype OnDestroy,\n\ttype SimpleChanges,\n} from \"@angular/core\";\nimport { Uppy } from \"@uppy/core\";\nimport type { ProgressBarOptions } from \"@uppy/progress-bar\";\nimport ProgressBar from \"@uppy/progress-bar\";\nimport type { Body, Meta } from \"@uppy/utils/lib/UppyFile\";\nimport { UppyAngularWrapper } from \"../../utils/wrapper\";\n\n@Component({\n\tselector: \"uppy-progress-bar\",\n\ttemplate: \"\",\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n})\nexport class ProgressBarComponent\n\textends UppyAngularWrapper\n\timplements OnDestroy, OnChanges\n{\n\tel = inject(ElementRef);\n\n\t@Input() uppy: Uppy = new Uppy();\n\t@Input() props: ProgressBarOptions = {};\n\n\t/** Inserted by Angular inject() migration for backwards compatibility */\n\tconstructor(...args: unknown[]);\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tngOnInit() {\n\t\tthis.onMount(\n\t\t\t{ id: \"angular:ProgressBar\", target: this.el.nativeElement },\n\t\t\tProgressBar,\n\t\t);\n\t}\n\n\tngOnChanges(changes: SimpleChanges): void {\n\t\tthis.handleChanges(changes, ProgressBar);\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.uninstall();\n\t}\n}\n","import {\n\tChangeDetectionStrategy,\n\tComponent,\n\tElementRef,\n\tInput,\n\tinject,\n\ttype OnChanges,\n\ttype OnDestroy,\n\ttype SimpleChanges,\n} from \"@angular/core\";\nimport { Uppy } from \"@uppy/core\";\nimport type { StatusBarOptions } from \"@uppy/status-bar\";\nimport StatusBar from \"@uppy/status-bar\";\nimport type { Body, Meta } from \"@uppy/utils/lib/UppyFile\";\nimport { UppyAngularWrapper } from \"../../utils/wrapper\";\n\n@Component({\n\tselector: \"uppy-status-bar\",\n\ttemplate: \"\",\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n})\nexport class StatusBarComponent\n\textends UppyAngularWrapper\n\timplements OnDestroy, OnChanges\n{\n\tel = inject(ElementRef);\n\n\t@Input() uppy: Uppy = new Uppy();\n\t@Input() props: StatusBarOptions = {};\n\n\t/** Inserted by Angular inject() migration for backwards compatibility */\n\tconstructor(...args: unknown[]);\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tngOnInit() {\n\t\tthis.onMount(\n\t\t\t{ id: \"angular:StatusBar\", target: this.el.nativeElement },\n\t\t\tStatusBar,\n\t\t);\n\t}\n\n\tngOnChanges(changes: SimpleChanges): void {\n\t\tthis.handleChanges(changes, StatusBar);\n\t}\n\n\tngOnDestroy(): void {\n\t\tthis.uninstall();\n\t}\n}\n","/*\n * Public API Surface of @uppy/angular\n */\n\nexport { DashboardComponent } from './lib/components/dashboard/dashboard.component'\nexport { DashboardModalComponent } from './lib/components/dashboard-modal/dashboard-modal.component'\nexport { DragDropComponent } from './lib/components/drag-drop/drag-drop.component'\nexport { ProgressBarComponent } from './lib/components/progress-bar/progress-bar.component'\nexport { StatusBarComponent } from './lib/components/status-bar/status-bar.component'\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;MAOsB,kBAAkB,CAAA;IAYvC,OAAO,CACN,cAA6B,EAC7B,MAA4D,EAAA;QAE5D,IAAI,CAAC,OAAO,GAAG;AACd,YAAA,GAAG,cAAc;YACjB,GAAG,IAAI,CAAC,KAAK;SACb;QAED,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC;AACnC,QAAA,IAAI,CAAC,MAAM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E,iBAAiB;AAC3B,oBAAA,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA;wDAOS,IAAI,EAAA,CAAA;sBAAZ;gBACQ,KAAK,EAAA,CAAA;sBAAb;;;AC7BF;;AAEG;;ACFH;;AAEG;;;;"} \ No newline at end of file diff --git a/packages/@uppy/angular/projects/uppy/angular/index.d.ts b/packages/@uppy/angular/projects/uppy/angular/index.d.ts deleted file mode 100644 index 7c0cb0088..000000000 --- a/packages/@uppy/angular/projects/uppy/angular/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Generated bundle index. Do not edit. - */ -/// -export * from './public-api'; diff --git a/packages/@uppy/angular/projects/uppy/angular/public-api.d.ts b/packages/@uppy/angular/projects/uppy/angular/public-api.d.ts deleted file mode 100644 index 07780e10e..000000000 --- a/packages/@uppy/angular/projects/uppy/angular/public-api.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { DashboardComponent } from './lib/components/dashboard/dashboard.component'; -export { DashboardModalComponent } from './lib/components/dashboard-modal/dashboard-modal.component'; -export { DragDropComponent } from './lib/components/drag-drop/drag-drop.component'; -export { ProgressBarComponent } from './lib/components/progress-bar/progress-bar.component'; -export { StatusBarComponent } from './lib/components/status-bar/status-bar.component';