mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08:00
9d90899344
Closes: BS-3208 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new group view extension, enhancing how group elements are handled and displayed. - Added new store and view modules for group-related features, improving modularity and integration. - **Refactor** - Updated the group element architecture to use extension-based registration for views, toolbars, and effects. - Simplified and reorganized exports for group and text modules. - **Chores** - Updated dependencies and project references to improve build consistency and compatibility. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
22 lines
616 B
TypeScript
22 lines
616 B
TypeScript
import {
|
|
type StoreExtensionContext,
|
|
StoreExtensionProvider,
|
|
} from '@blocksuite/affine-ext-loader';
|
|
|
|
import {
|
|
groupToMarkdownAdapterMatcher,
|
|
groupToPlainTextAdapterMatcher,
|
|
} from './adapter';
|
|
import { groupRelationWatcherExtension } from './group-watcher';
|
|
|
|
export class GroupStoreExtension extends StoreExtensionProvider {
|
|
override name = 'affine-group-gfx';
|
|
|
|
override setup(context: StoreExtensionContext) {
|
|
super.setup(context);
|
|
context.register(groupToPlainTextAdapterMatcher);
|
|
context.register(groupToMarkdownAdapterMatcher);
|
|
context.register(groupRelationWatcherExtension);
|
|
}
|
|
}
|