Mailspring/app/internal_packages/composer-emoji/lib/main.es6

19 lines
754 B
Text
Raw Normal View History

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