import { Controller } from '@blink-mind/core' ; import { JsonSerializerPlugin } from '@blink-mind/plugin-json-serializer' ; import { SearchPlugin , TagsPlugin , ThemeSelectorPlugin , TopicReferencePlugin , ExportTopicPlugin , InsertImagesPlugin , DebugPlugin , UndoRedoPlugin } from '@blink-mind/plugins' ; import { DefaultPlugin } from '@blink-mind/renderer-react' ; import { BugCollectPlugin , I18nPlugin , FontPlugin , OutlinerPlugin , ToolbarPlugin , RoosterDescEditorPlugin , ValidateModelPlugin } from './plugins' ; import { isDev } from './utils' ; const plugins = [ BugCollectPlugin ( ) , isDev && DebugPlugin ( ) , ValidateModelPlugin ( ) , SearchPlugin ( ) , OutlinerPlugin ( ) , RoosterDescEditorPlugin ( ) , ToolbarPlugin ( ) , I18nPlugin ( ) , FontPlugin ( ) , ThemeSelectorPlugin ( ) , UndoRedoPlugin ( ) , TagsPlugin ( ) , InsertImagesPlugin ( ) , ExportTopicPlugin ( ) , JsonSerializerPlugin ( ) , DefaultPlugin ( ) ] ; export function createBlinkMindController ( onChange ? ) { return new Controller ( { plugins , onChange } ) ; } export const BlinkMindController = createBlinkMindController ( ) ;