mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-26 14:58:55 +08:00
6e76a3e593
Closes: BS-3223 Closes: BS-3224 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced new view extensions for frame title and keyboard toolbar widgets with conditional registration based on context and environment. - Enhanced widget integration by adding explicit exports for view components. - **Chores** - Updated export paths and package dependencies to improve modularity and compatibility. - Removed deprecated widget dependencies and related imports from core packages. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
24 lines
555 B
TypeScript
24 lines
555 B
TypeScript
import {
|
|
type ViewExtensionContext,
|
|
ViewExtensionProvider,
|
|
} from '@blocksuite/affine-ext-loader';
|
|
|
|
import { frameTitleWidget } from './affine-frame-title-widget';
|
|
import { effects } from './effects';
|
|
|
|
export class FrameTitleViewExtension extends ViewExtensionProvider {
|
|
override name = 'affine-frame-title-widget';
|
|
|
|
override effect() {
|
|
super.effect();
|
|
effects();
|
|
}
|
|
|
|
override setup(context: ViewExtensionContext) {
|
|
super.setup(context);
|
|
if (context.scope === 'edgeless') {
|
|
context.register(frameTitleWidget);
|
|
}
|
|
}
|
|
}
|