refactor(editor): extract ai item component (#9283)

This commit is contained in:
Saul-Mirone
2024-12-24 09:41:45 +00:00
parent 190e7e6f30
commit cd830d6f81
19 changed files with 46 additions and 36 deletions
@@ -1,3 +1,7 @@
import {
AIErrorType,
type AIItemGroupConfig,
} from '@blocksuite/affine-components/ai-item';
import type { EditorHost } from '@blocksuite/block-std';
import { WithDisposable } from '@blocksuite/global/utils';
import { baseTheme } from '@toeverything/theme';
@@ -5,10 +9,6 @@ import { css, html, LitElement, nothing, unsafeCSS } from 'lit';
import { property } from 'lit/decorators.js';
import { choose } from 'lit/directives/choose.js';
import {
AIErrorType,
type AIItemGroupConfig,
} from '../../../../../_common/components/index.js';
import type { AIPanelErrorConfig, CopyConfig } from '../../type.js';
import { filterAIItemGroup } from '../../utils.js';