mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 18:02:47 +08:00
chore: remove unused component imports and styles from text-renderer (#10478)
This commit is contained in:
@@ -6,16 +6,12 @@ import {
|
||||
ShadowlessElement,
|
||||
} from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
CodeBlockComponent,
|
||||
codeBlockWrapMiddleware,
|
||||
defaultBlockMarkdownAdapterMatchers,
|
||||
defaultImageProxyMiddleware,
|
||||
DividerBlockComponent,
|
||||
InlineDeltaToMarkdownAdapterExtensions,
|
||||
ListBlockComponent,
|
||||
MarkdownInlineToDeltaAdapterExtensions,
|
||||
PageEditorBlockSpecs,
|
||||
ParagraphBlockComponent,
|
||||
} from '@blocksuite/affine/blocks';
|
||||
import { Container, type ServiceProvider } from '@blocksuite/affine/global/di';
|
||||
import { WithDisposable } from '@blocksuite/affine/global/utils';
|
||||
@@ -39,13 +35,6 @@ import type {
|
||||
AffineAIPanelWidgetConfig,
|
||||
} from '../widgets/ai-panel/type';
|
||||
|
||||
const textBlockStyles = css`
|
||||
${ParagraphBlockComponent.styles}
|
||||
${ListBlockComponent.styles}
|
||||
${DividerBlockComponent.styles}
|
||||
${CodeBlockComponent.styles}
|
||||
`;
|
||||
|
||||
const customHeadingStyles = css`
|
||||
.custom-heading {
|
||||
.h1 {
|
||||
@@ -178,7 +167,6 @@ export class TextRenderer extends WithDisposable(ShadowlessElement) {
|
||||
}
|
||||
}
|
||||
|
||||
${textBlockStyles}
|
||||
${customHeadingStyles}
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user