refactor(editor): separate lit and slot in global (#10666)

This commit is contained in:
Saul-Mirone
2025-03-06 10:24:59 +00:00
parent 56b842f2e1
commit 84e2dda3f8
322 changed files with 366 additions and 353 deletions

View File

@@ -1,4 +1,4 @@
import { type Disposable, Slot } from '@blocksuite/global/utils';
import { type Disposable, Slot } from '@blocksuite/global/slot';
import { computed, type Signal, signal } from '@preact/signals-core';
import type { Text } from '../../reactive/index.js';

View File

@@ -1,4 +1,4 @@
import type { Slot } from '@blocksuite/global/utils';
import type { Slot } from '@blocksuite/global/slot';
import type * as Y from 'yjs';
import type { AwarenessStore } from '../yjs/awareness.js';

View File

@@ -1,6 +1,7 @@
import { Container, type ServiceProvider } from '@blocksuite/global/di';
import { BlockSuiteError, ErrorCode } from '@blocksuite/global/exceptions';
import { type Disposable, Slot } from '@blocksuite/global/utils';
import type { Disposable } from '@blocksuite/global/slot';
import { Slot } from '@blocksuite/global/slot';
import { computed, signal } from '@preact/signals-core';
import type { ExtensionType } from '../../extension/extension.js';

View File

@@ -1,4 +1,4 @@
import type { Slot } from '@blocksuite/global/utils';
import type { Slot } from '@blocksuite/global/slot';
export type Tag = {
id: string;

View File

@@ -1,4 +1,4 @@
import type { Slot } from '@blocksuite/global/utils';
import type { Slot } from '@blocksuite/global/slot';
import type { BlobEngine } from '@blocksuite/sync';
import type { Awareness } from 'y-protocols/awareness.js';
import type * as Y from 'yjs';