mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-28 15:55:19 +08:00
61121ab727
Closes: BS-3206 Closes: BS-3210 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced new brush and note view extensions, enhancing integration and extensibility for brush and note tools. - Added store extension for brush tools, allowing for improved adapter integration. - **Improvements** - Expanded module exports for brush and note graphics, making store and view functionalities more accessible. - Added new dependencies to support extension loading and improved project structure. - **Refactor** - Updated extension arrays and toolbars to use the new view and store extensions for brush and note tools. - Removed legacy brush and note tools, effects, and toolbar extensions in favor of the new extension-based approach. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
20 lines
498 B
TypeScript
20 lines
498 B
TypeScript
import {
|
|
type StoreExtensionContext,
|
|
StoreExtensionProvider,
|
|
} from '@blocksuite/affine-ext-loader';
|
|
|
|
import {
|
|
brushToMarkdownAdapterMatcher,
|
|
brushToPlainTextAdapterMatcher,
|
|
} from './adapter';
|
|
|
|
export class BrushStoreExtension extends StoreExtensionProvider {
|
|
override name = 'affine-brush-gfx';
|
|
|
|
override setup(context: StoreExtensionContext) {
|
|
super.setup(context);
|
|
context.register(brushToMarkdownAdapterMatcher);
|
|
context.register(brushToPlainTextAdapterMatcher);
|
|
}
|
|
}
|