Expose component definitions through Palette.components, and implement callback hooks for create, setEnabled and setVisible.

As required by spectrum.js integration for sketch.paperjs.org