mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 00:56:26 +08:00
d856911144
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Simplified and removed several internal AI block extension files and utility functions, streamlining the codebase and reducing unused features. - Updated logic to access editor modes and controllers directly, removing reliance on DOM queries and certain abstractions. - Reduced and restructured effect type declarations for improved clarity. - **Bug Fixes** - Improved type safety in the editor component by explicitly typing queried elements. - **Chores** - Removed obsolete exports and internal functions with no impact on user-facing functionality. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
35 lines
2.2 KiB
TypeScript
35 lines
2.2 KiB
TypeScript
import { type effects as blockRootEffects } from '@blocksuite/affine-block-root/effects';
|
|
import { type effects as componentCaptionEffects } from '@blocksuite/affine-components/caption';
|
|
import { type effects as componentColorPickerEffects } from '@blocksuite/affine-components/color-picker';
|
|
import { type effects as componentContextMenuEffects } from '@blocksuite/affine-components/context-menu';
|
|
import { type effects as componentDatePickerEffects } from '@blocksuite/affine-components/date-picker';
|
|
import { type effects as componentDropIndicatorEffects } from '@blocksuite/affine-components/drop-indicator';
|
|
import { type effects as componentEmbedCardModalEffects } from '@blocksuite/affine-components/embed-card-modal';
|
|
import { type effects as componentHighlightDropdownMenuEffects } from '@blocksuite/affine-components/highlight-dropdown-menu';
|
|
import { type effects as componentLinkPreviewEffects } from '@blocksuite/affine-components/link-preview';
|
|
import { type effects as componentLinkedDocTitleEffects } from '@blocksuite/affine-components/linked-doc-title';
|
|
import { type effects as componentPortalEffects } from '@blocksuite/affine-components/portal';
|
|
import { type effects as componentToggleButtonEffects } from '@blocksuite/affine-components/toggle-button';
|
|
import { type effects as componentToolbarEffects } from '@blocksuite/affine-components/toolbar';
|
|
import { type effects as componentViewDropdownMenuEffects } from '@blocksuite/affine-components/view-dropdown-menu';
|
|
import { type effects as richTextEffects } from '@blocksuite/affine-rich-text/effects';
|
|
import { type effects as stdEffects } from '@blocksuite/std/effects';
|
|
|
|
export declare const _GLOBAL_:
|
|
| typeof stdEffects
|
|
| typeof richTextEffects
|
|
| typeof blockRootEffects
|
|
| typeof componentCaptionEffects
|
|
| typeof componentContextMenuEffects
|
|
| typeof componentDatePickerEffects
|
|
| typeof componentDropIndicatorEffects
|
|
| typeof componentEmbedCardModalEffects
|
|
| typeof componentHighlightDropdownMenuEffects
|
|
| typeof componentLinkPreviewEffects
|
|
| typeof componentLinkedDocTitleEffects
|
|
| typeof componentPortalEffects
|
|
| typeof componentToolbarEffects
|
|
| typeof componentToggleButtonEffects
|
|
| typeof componentColorPickerEffects
|
|
| typeof componentViewDropdownMenuEffects;
|