2016-03-25 01:42:44 +08:00
|
|
|
import {ExtensionRegistry, ComponentRegistry} from 'nylas-exports';
|
|
|
|
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);
|
|
|
|
ComponentRegistry.register(EmojiButton, {role: 'Composer:ActionButton'});
|
|
|
|
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
|
|
|
}
|