@github/file-attachment-element
Advanced tools
Comparing version 2.0.1 to 3.0.0
@@ -14,2 +14,3 @@ export default class Attachment { | ||
isImage(): boolean; | ||
isVideo(): boolean; | ||
saving(percent: number): void; | ||
@@ -16,0 +17,0 @@ saved(attributes?: { |
@@ -35,2 +35,5 @@ export default class Attachment { | ||
} | ||
isVideo() { | ||
return ['video/mp4', 'video/quicktime'].indexOf(this.file.type) > -1; | ||
} | ||
saving(percent) { | ||
@@ -37,0 +40,0 @@ if (this.state !== 'pending' && this.state !== 'saving') { |
@@ -63,3 +63,2 @@ import Attachment from './attachment'; | ||
target.setAttribute('hover', ''); | ||
event.stopPropagation(); | ||
event.preventDefault(); | ||
@@ -66,0 +65,0 @@ } |
@@ -35,2 +35,5 @@ class Attachment { | ||
} | ||
isVideo() { | ||
return ['video/mp4', 'video/quicktime'].indexOf(this.file.type) > -1; | ||
} | ||
saving(percent) { | ||
@@ -184,3 +187,2 @@ if (this.state !== 'pending' && this.state !== 'saving') { | ||
target.setAttribute('hover', ''); | ||
event.stopPropagation(); | ||
event.preventDefault(); | ||
@@ -187,0 +189,0 @@ } |
@@ -41,2 +41,5 @@ (function (global, factory) { | ||
} | ||
isVideo() { | ||
return ['video/mp4', 'video/quicktime'].indexOf(this.file.type) > -1; | ||
} | ||
saving(percent) { | ||
@@ -190,3 +193,2 @@ if (this.state !== 'pending' && this.state !== 'saving') { | ||
target.setAttribute('hover', ''); | ||
event.stopPropagation(); | ||
event.preventDefault(); | ||
@@ -193,0 +195,0 @@ } |
{ | ||
"name": "@github/file-attachment-element", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"description": "Attach files via drag and drop or file input.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.umd.js", |
30975
804