2017-09-27 02:33:08 +08:00
|
|
|
import { ExtensionRegistry, ComponentRegistry } from 'nylas-exports';
|
2016-03-25 01:42:44 +08:00
|
|
|
import EmojiStore from './emoji-store';
|
2016-03-16 04:37:31 +08:00
|
|
|
import EmojiComposerExtension from './emoji-composer-extension';
|
2016-03-25 01:42:44 +08:00
|
|
|
import EmojiMessageExtension from './emoji-message-extension';
|
|
|
|
import EmojiButton from './emoji-button';
|
2016-03-16 04:37:31 +08:00
|
|
|
|
|
|
|
export function activate() {
|
|
|
|
ExtensionRegistry.Composer.register(EmojiComposerExtension);
|
2016-03-25 01:42:44 +08:00
|
|
|
ExtensionRegistry.MessageView.register(EmojiMessageExtension);
|
2017-09-27 02:33:08 +08:00
|
|
|
ComponentRegistry.register(EmojiButton, { role: 'Composer:ActionButton' });
|
2016-03-25 01:42:44 +08:00
|
|
|
EmojiStore.activate();
|
2016-03-16 04:37:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export function deactivate() {
|
|
|
|
ExtensionRegistry.Composer.unregister(EmojiComposerExtension);
|
2016-03-25 01:42:44 +08:00
|
|
|
ExtensionRegistry.MessageView.unregister(EmojiMessageExtension);
|
|
|
|
ComponentRegistry.unregister(EmojiButton);
|
2016-03-16 04:37:31 +08:00
|
|
|
}
|