diff --git a/src/Draggable/Draggable.js b/src/Draggable/Draggable.js index bb73e968..7addf841 100644 --- a/src/Draggable/Draggable.js +++ b/src/Draggable/Draggable.js @@ -62,6 +62,16 @@ export const defaultOptions = { */ export default class Draggable { + /** + * Default plugins draggable uses + * @static + * @property {Object} Plugins + * @property {Mirror} Plugins.Mirror + * @property {Accessibility} Plugins.Accessibility + * @type {Object} + */ + static Plugins = {Mirror, Accessibility}; + /** * Draggable constructor. * @constructs Draggable diff --git a/src/Draggable/tests/Draggable.test.js b/src/Draggable/tests/Draggable.test.js index fd4db533..3267f82f 100644 --- a/src/Draggable/tests/Draggable.test.js +++ b/src/Draggable/tests/Draggable.test.js @@ -49,6 +49,14 @@ describe('Draggable', () => { sandbox.parentNode.removeChild(sandbox); }); + describe('.Plugins', () => { + test('should be available statically', () => { + expect(Draggable.Plugins).toBeDefined(); + expect(Draggable.Plugins.Mirror).toEqual(Mirror); + expect(Draggable.Plugins.Accessibility).toEqual(Accessibility); + }); + }); + describe('#constructor', () => { test('should be an instance of Draggable', () => { const draggable = new Draggable(containers, {