@behance/helicropter
Advanced tools
Comparing version 15.5.1 to 15.5.2
{ | ||
"name": "@behance/helicropter", | ||
"version": "15.5.1", | ||
"version": "15.5.2", | ||
"description": "My helicropter goes \"whosh whosh whosh\"", | ||
@@ -23,3 +23,3 @@ "main": "src/js/index.js", | ||
"dependencies": { | ||
"@behance/beff": "^9.3.4", | ||
"@behance/beff": "^9.3.6", | ||
"@behance/fabric": "1.6.1-nodeless-tiny", | ||
@@ -26,0 +26,0 @@ "@behance/nbd": "^1.1.8", |
@@ -243,2 +243,6 @@ import extend from '@behance/nbd/util/extend'; | ||
'image-processing'() { | ||
this.trigger('image:processing'); | ||
}, | ||
'image-upload-cancel'() { | ||
@@ -392,3 +396,3 @@ this.trigger('image:cancelled'); | ||
this._super(extend({}, this._defaults, model)); | ||
this.relay(this._view, 'controls:enabled controls:disabled controls:paused controls:resumed image:uploading image:uploaded image:loaded error:upload image:cancelled'); | ||
this.relay(this._view, 'controls:enabled controls:disabled controls:paused controls:resumed image:uploading image:processing image:uploaded image:loaded error:upload image:cancelled'); | ||
}, | ||
@@ -395,0 +399,0 @@ |
@@ -179,2 +179,6 @@ import Spinner from 'spin.js'; | ||
processing() { | ||
this.trigger('image-processing'); | ||
}, | ||
complete({ file, uploadPath, uploadEndpoint, response }) { | ||
@@ -181,0 +185,0 @@ this.trigger('image-upload-complete'); |
@@ -528,2 +528,12 @@ import $ from 'jquery'; | ||
}); | ||
describe('when the image is being processed', function() { | ||
it('emits "image:processing event"', function(done) { | ||
this.helicropter = this._createWithoutInitialImage(); | ||
this.helicropter.on('image:processing', done); | ||
this.helicropter._view._uploadArea.trigger('image-processing'); | ||
}); | ||
}); | ||
}); |
@@ -202,2 +202,12 @@ import $ from 'jquery'; | ||
describe('image processing', function() { | ||
it('emits "image-processing" when _uploader emits processing', function(done) { | ||
this.uploadArea = this.create(); | ||
this.uploadArea.on('image-processing', done); | ||
this.uploadArea._uploader.trigger('processing'); | ||
}); | ||
}); | ||
describe('cancel', function() { | ||
@@ -204,0 +214,0 @@ it('emits "image-upload-cancel" when _uploader emits cancel', function(done) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8685141
4610
45
Updated@behance/beff@^9.3.6