mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 12:40:08 +08:00
18 lines
750 B
JavaScript
18 lines
750 B
JavaScript
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);
|
|
ComponentRegistry.register(EmojiButton, {role: 'Composer:ActionButton'});
|
|
EmojiStore.activate();
|
|
}
|
|
|
|
export function deactivate() {
|
|
ExtensionRegistry.Composer.unregister(EmojiComposerExtension);
|
|
ExtensionRegistry.MessageView.unregister(EmojiMessageExtension);
|
|
ComponentRegistry.unregister(EmojiButton);
|
|
}
|