mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
fix: remove bs shared and components in affine (#9792)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {
|
||||
createSignalFromObservable,
|
||||
type Signal,
|
||||
} from '@blocksuite/affine-shared/utils';
|
||||
} from '@blocksuite/affine/blocks';
|
||||
import { LiveData, Service } from '@toeverything/infra';
|
||||
|
||||
import type { FeatureFlagService } from '../../feature-flag';
|
||||
|
||||
@@ -4,6 +4,7 @@ import track from '@affine/track';
|
||||
import type { EditorHost } from '@blocksuite/affine/block-std';
|
||||
import {
|
||||
type AffineInlineEditor,
|
||||
createSignalFromObservable,
|
||||
type DocMode,
|
||||
type LinkedMenuGroup,
|
||||
type LinkedMenuItem,
|
||||
@@ -12,7 +13,6 @@ import {
|
||||
} from '@blocksuite/affine/blocks';
|
||||
import type { DocMeta } from '@blocksuite/affine/store';
|
||||
import { Text } from '@blocksuite/affine/store';
|
||||
import { createSignalFromObservable } from '@blocksuite/affine-shared/utils';
|
||||
import {
|
||||
DateTimeIcon,
|
||||
NewXxxEdgelessIcon,
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import { DebugLogger } from '@affine/debug';
|
||||
import { Unreachable } from '@affine/env/constant';
|
||||
import { type DocMode, replaceIdMiddleware } from '@blocksuite/affine/blocks';
|
||||
import {
|
||||
type AffineTextAttributes,
|
||||
type DocMode,
|
||||
replaceIdMiddleware,
|
||||
} from '@blocksuite/affine/blocks';
|
||||
import type { DeltaInsert } from '@blocksuite/affine/inline';
|
||||
import { Slice, Text, Transformer } from '@blocksuite/affine/store';
|
||||
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
||||
import { LiveData, ObjectPool, Service } from '@toeverything/infra';
|
||||
import { omitBy } from 'lodash-es';
|
||||
import { combineLatest, map } from 'rxjs';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type {
|
||||
AffineTextAttributes,
|
||||
AttachmentBlockModel,
|
||||
BookmarkBlockModel,
|
||||
EmbedBlockModel,
|
||||
@@ -18,7 +19,6 @@ import {
|
||||
type TransformerMiddleware,
|
||||
type YBlock,
|
||||
} from '@blocksuite/affine/store';
|
||||
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
|
||||
import type { DeltaInsert } from '@blocksuite/inline';
|
||||
import { Document } from '@toeverything/infra';
|
||||
import { toHexString } from 'lib0/buffer.js';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { DeepPartial } from '@blocksuite/affine/global/utils';
|
||||
import {
|
||||
createSignalFromObservable,
|
||||
type Signal,
|
||||
} from '@blocksuite/affine-shared/utils';
|
||||
} from '@blocksuite/affine/blocks';
|
||||
import type { DeepPartial } from '@blocksuite/affine/global/utils';
|
||||
import { Entity, LiveData } from '@toeverything/infra';
|
||||
import { isObject, merge } from 'lodash-es';
|
||||
import type { Observable } from 'rxjs';
|
||||
@@ -14,7 +14,7 @@ import { EditorSettingSchema } from '../schema';
|
||||
type SettingItem<T> = {
|
||||
readonly value: T;
|
||||
set: (value: T) => void;
|
||||
// eslint-disable-next-line rxjs/finnish
|
||||
|
||||
$: LiveData<T>;
|
||||
};
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { GeneralSettingSchema } from '@blocksuite/affine-shared/services';
|
||||
import { GeneralSettingSchema } from '@blocksuite/affine/blocks';
|
||||
import { z } from 'zod';
|
||||
|
||||
export const BSEditorSettingSchema = GeneralSettingSchema;
|
||||
|
||||
Reference in New Issue
Block a user