@atlaskit/editor-plugin-user-preferences
Version:
UserPreferences plugin for @atlaskit/editor-core
12 lines (11 loc) • 680 B
TypeScript
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
import { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
import { ResolvedUserPreferences } from '@atlaskit/editor-common/user-preferences';
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
import { Config, UserPreferencesPlugin } from '../userPreferencesPluginType';
export declare const userPreferencesPluginKey: PluginKey<any>;
type UserPreferencesPluginState = {
preferences: ResolvedUserPreferences;
};
export declare const createPlugin: (pluginOptions: Config, _api: ExtractInjectionAPI<UserPreferencesPlugin> | undefined) => SafePlugin<UserPreferencesPluginState>;
export {};