mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-07 16:48:02 +08:00
18 lines
759 B
JavaScript
18 lines
759 B
JavaScript
import { ExtensionRegistry, ComponentRegistry } from 'mailspring-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);
|
|
}
|