Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
});
}
_inherits(FileDragSource, _DragSource);
FileDragSource.prototype.mutateItemByReadingDataTransfer = function mutateItemByReadingDataTransfer(dataTransfer) {
delete this.item.files;
this.item.files = Array.prototype.slice.call(dataTransfer.files);
};
FileDragSource.prototype.beginDrag = function beginDrag() {
return this.item;
};
return FileDragSource;
})(_DragSource3.DragSource);
var UrlDragSource = (function (_DragSource2) {
function UrlDragSource() {
_classCallCheck(this, UrlDragSource);
_DragSource2.call(this);
this.item = Object.defineProperties({}, {
urls: {
get: function () {
console.warn('Browser doesn\'t allow reading URL information until the link is dropped.');
return null;
},
configurable: true,
enumerable: true
}
});
args[_key4] = arguments[_key4];
}
if (this.spec.endDrag) {
var _spec$endDrag;
return (_spec$endDrag = this.spec.endDrag).call.apply(_spec$endDrag, [null, this.props].concat(args, [this.getComponentRef()]));
} else {
var _DragSource$prototype$endDrag;
return (_DragSource$prototype$endDrag = _DragSource.prototype.endDrag).call.apply(_DragSource$prototype$endDrag, [this].concat(args));
}
};
return ComponentDragSource;
})(_DragSource2.DragSource);
exports['default'] = ComponentDragSource;
module.exports = exports['default'];