@mux/mux-uploader
Advanced tools
Comparing version 0.1.0-canary.10-6306286 to 0.1.0-canary.10-680c877
@@ -6,2 +6,14 @@ # Change Log | ||
# [0.1.0-beta.7](https://github.com/muxinc/elements/compare/@mux/mux-uploader@0.1.0-beta.6...@mux/mux-uploader@0.1.0-beta.7) (2022-08-04) | ||
### Bug Fixes | ||
- **mux-uploader:** use narrower type def for uploadstart to avoid type mismatches in dist. ([a56cc06](https://github.com/muxinc/elements/commit/a56cc0609b1051513f5df3eb7e9cb21410fc7bb5)) | ||
# [0.1.0-beta.6](https://github.com/muxinc/elements/compare/@mux/mux-uploader@0.1.0-beta.5...@mux/mux-uploader@0.1.0-beta.6) (2022-08-03) | ||
### Features | ||
- **mux-uploader:** Upchunk event type defs. ([248e0e1](https://github.com/muxinc/elements/commit/248e0e1a9edf648113fd6bc7bdf6505c7df8cc4b)) | ||
# [0.1.0-beta.5](https://github.com/muxinc/elements/compare/@mux/mux-uploader@0.1.0-beta.4...@mux/mux-uploader@0.1.0-beta.5) (2022-08-02) | ||
@@ -8,0 +20,0 @@ |
{ | ||
"name": "@mux/mux-uploader", | ||
"version": "0.1.0-canary.10-6306286", | ||
"version": "0.1.0-canary.10-680c877", | ||
"description": "An uploader elements to be used with Mux Direct Uploads", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs", |
@@ -234,3 +234,3 @@ import '@mux/polyfills'; | ||
export interface MuxUploaderElementEventMap extends Omit<HTMLElementEventMap, 'error' | 'progress'> { | ||
uploadstart: CustomEvent<UpChunk.UpChunk>; | ||
uploadstart: CustomEvent<{ file: File; chunkSize: number }>; | ||
chunkattempt: CustomEvent<{ | ||
@@ -495,3 +495,3 @@ chunkNumber: number; | ||
this.dispatchEvent(new CustomEvent('uploadstart', { detail: upload })); | ||
this.dispatchEvent(new CustomEvent('uploadstart', { detail: { file: upload.file, chunkSize: upload.chunkSize } })); | ||
@@ -498,0 +498,0 @@ upload.on('attempt', (event) => { |
44231