fix: remove bs shared and components in affine (#9792)

This commit is contained in:
Saul-Mirone
2025-01-20 09:41:06 +00:00
parent 1560880abd
commit fa5e6e1f45
24 changed files with 44 additions and 80 deletions
@@ -1,12 +1,15 @@
import { stopPropagation } from '@affine/core/utils';
import type { EditorHost } from '@blocksuite/affine/block-std';
import { type AIError, openFileOrFiles } from '@blocksuite/affine/blocks';
import {
type AIError,
openFileOrFiles,
unsafeCSSVarV2,
} from '@blocksuite/affine/blocks';
import {
assertExists,
SignalWatcher,
WithDisposable,
} from '@blocksuite/affine/global/utils';
import { unsafeCSSVarV2 } from '@blocksuite/affine-shared/theme';
import { ImageIcon, PublishIcon } from '@blocksuite/icons/lit';
import { css, html, LitElement, nothing } from 'lit';
import { property, query, state } from 'lit/decorators.js';
@@ -1,6 +1,6 @@
import { ShadowlessElement } from '@blocksuite/affine/block-std';
import { getAttachmentFileIcons } from '@blocksuite/affine/blocks';
import { SignalWatcher, WithDisposable } from '@blocksuite/affine/global/utils';
import { getAttachmentFileIcons } from '@blocksuite/affine-components/icons';
import { html } from 'lit';
import { property } from 'lit/decorators.js';
@@ -1,5 +1,5 @@
import { FetchUtils } from '@blocksuite/affine/blocks';
import { assertExists } from '@blocksuite/affine/global/utils';
import { FetchUtils } from '@blocksuite/affine-shared/adapters';
export async function fetchImageToFile(
url: string,