refactor(editor): merge inline to std (#11025)

This commit is contained in:
Saul-Mirone
2025-03-20 05:46:56 +00:00
parent 5aa36efab0
commit 92d76ba571
176 changed files with 142 additions and 534 deletions

View File

@@ -48,7 +48,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/data-view": "workspace:*", "@blocksuite/data-view": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@blocksuite/sync": "workspace:*", "@blocksuite/sync": "workspace:*",
"rxjs": "^7.8.1" "rxjs": "^7.8.1"
@@ -58,6 +57,8 @@
"./effects": "./src/effects.ts", "./effects": "./src/effects.ts",
"./block-std": "./src/block-std/index.ts", "./block-std": "./src/block-std/index.ts",
"./block-std/gfx": "./src/block-std/gfx.ts", "./block-std/gfx": "./src/block-std/gfx.ts",
"./block-std/inline": "./src/block-std/inline.ts",
"./block-std/effects": "./src/block-std/effects.ts",
"./global": "./src/global/index.ts", "./global": "./src/global/index.ts",
"./global/utils": "./src/global/utils.ts", "./global/utils": "./src/global/utils.ts",
"./global/env": "./src/global/env.ts", "./global/env": "./src/global/env.ts",
@@ -69,10 +70,6 @@
"./global/lit": "./src/global/lit.ts", "./global/lit": "./src/global/lit.ts",
"./store": "./src/store/index.ts", "./store": "./src/store/index.ts",
"./store/test": "./src/store/test.ts", "./store/test": "./src/store/test.ts",
"./inline": "./src/inline/index.ts",
"./inline/consts": "./src/inline/consts.ts",
"./inline/effects": "./src/inline/effects.ts",
"./inline/types": "./src/inline/types.ts",
"./blocks/attachment": "./src/blocks/attachment.ts", "./blocks/attachment": "./src/blocks/attachment.ts",
"./blocks/bookmark": "./src/blocks/bookmark.ts", "./blocks/bookmark": "./src/blocks/bookmark.ts",
"./blocks/callout": "./src/blocks/callout.ts", "./blocks/callout": "./src/blocks/callout.ts",

View File

@@ -0,0 +1 @@
export * from '@blocksuite/block-std/effects';

View File

@@ -0,0 +1 @@
export * from '@blocksuite/block-std/inline';

View File

@@ -55,13 +55,11 @@ import { effects as widgetSlashMenuEffects } from '@blocksuite/affine-widget-sla
import { effects as widgetToolbarEffects } from '@blocksuite/affine-widget-toolbar/effects'; import { effects as widgetToolbarEffects } from '@blocksuite/affine-widget-toolbar/effects';
import { effects as stdEffects } from '@blocksuite/block-std/effects'; import { effects as stdEffects } from '@blocksuite/block-std/effects';
import { effects as dataViewEffects } from '@blocksuite/data-view/effects'; import { effects as dataViewEffects } from '@blocksuite/data-view/effects';
import { effects as inlineEffects } from '@blocksuite/inline/effects';
import { registerSpecs } from './extensions/register.js'; import { registerSpecs } from './extensions/register.js';
export declare const _GLOBAL_: export declare const _GLOBAL_:
| typeof stdEffects | typeof stdEffects
| typeof inlineEffects
| typeof dataViewEffects | typeof dataViewEffects
| typeof richTextEffects | typeof richTextEffects
| typeof blockNoteEffects | typeof blockNoteEffects
@@ -111,7 +109,6 @@ export function effects() {
registerSpecs(); registerSpecs();
stdEffects(); stdEffects();
inlineEffects();
dataViewEffects(); dataViewEffects();
richTextEffects(); richTextEffects();

View File

@@ -1 +0,0 @@
export * from '@blocksuite/inline/consts';

View File

@@ -1 +0,0 @@
export * from '@blocksuite/inline/effects';

View File

@@ -1 +0,0 @@
export * from '@blocksuite/inline';

View File

@@ -1 +0,0 @@
export * from '@blocksuite/inline/types';

View File

@@ -45,7 +45,6 @@
{ "path": "../../framework/block-std" }, { "path": "../../framework/block-std" },
{ "path": "../data-view" }, { "path": "../data-view" },
{ "path": "../../framework/global" }, { "path": "../../framework/global" },
{ "path": "../../framework/inline" },
{ "path": "../../framework/store" }, { "path": "../../framework/store" },
{ "path": "../../framework/sync" } { "path": "../../framework/sync" }
] ]

View File

@@ -19,7 +19,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -15,7 +15,6 @@
{ "path": "../../widgets/widget-slash-menu" }, { "path": "../../widgets/widget-slash-menu" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -19,7 +19,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",
"@preact/signals-core": "^1.8.0", "@preact/signals-core": "^1.8.0",

View File

@@ -15,7 +15,6 @@
{ "path": "../../widgets/widget-slash-menu" }, { "path": "../../widgets/widget-slash-menu" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -18,7 +18,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@emoji-mart/data": "^1.2.1", "@emoji-mart/data": "^1.2.1",
"@floating-ui/dom": "^1.6.10", "@floating-ui/dom": "^1.6.10",

View File

@@ -14,7 +14,6 @@
{ "path": "../../widgets/widget-slash-menu" }, { "path": "../../widgets/widget-slash-menu" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -18,7 +18,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -8,19 +8,16 @@ import {
} from '@blocksuite/affine-shared/services'; } from '@blocksuite/affine-shared/services';
import { getViewportElement } from '@blocksuite/affine-shared/utils'; import { getViewportElement } from '@blocksuite/affine-shared/utils';
import type { BlockComponent } from '@blocksuite/block-std'; import type { BlockComponent } from '@blocksuite/block-std';
import { BlockSelection, TextSelection } from '@blocksuite/block-std';
import { import {
BlockSelection,
getInlineRangeProvider, getInlineRangeProvider,
TextSelection,
} from '@blocksuite/block-std';
import { IS_MAC, IS_MOBILE } from '@blocksuite/global/env';
import { noop } from '@blocksuite/global/utils';
import {
INLINE_ROOT_ATTR, INLINE_ROOT_ATTR,
type InlineRangeProvider, type InlineRangeProvider,
type InlineRootElement, type InlineRootElement,
type VLine, type VLine,
} from '@blocksuite/inline'; } from '@blocksuite/block-std/inline';
import { IS_MAC, IS_MOBILE } from '@blocksuite/global/env';
import { noop } from '@blocksuite/global/utils';
import { Slice } from '@blocksuite/store'; import { Slice } from '@blocksuite/store';
import { computed, effect, type Signal, signal } from '@preact/signals-core'; import { computed, effect, type Signal, signal } from '@preact/signals-core';
import { html, nothing, type TemplateResult } from 'lit'; import { html, nothing, type TemplateResult } from 'lit';

View File

@@ -1,7 +1,7 @@
import { affineTextStyles } from '@blocksuite/affine-rich-text'; import { affineTextStyles } from '@blocksuite/affine-rich-text';
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types'; import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
import { ShadowlessElement } from '@blocksuite/block-std'; import { ShadowlessElement } from '@blocksuite/block-std';
import { ZERO_WIDTH_SPACE } from '@blocksuite/inline'; import { ZERO_WIDTH_SPACE } from '@blocksuite/block-std/inline';
import type { DeltaInsert } from '@blocksuite/store'; import type { DeltaInsert } from '@blocksuite/store';
import { html } from 'lit'; import { html } from 'lit';
import { property } from 'lit/decorators.js'; import { property } from 'lit/decorators.js';

View File

@@ -14,7 +14,6 @@
{ "path": "../../widgets/widget-slash-menu" }, { "path": "../../widgets/widget-slash-menu" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -19,7 +19,6 @@
"@blocksuite/data-view": "workspace:*", "@blocksuite/data-view": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -19,10 +19,8 @@ import {
type TelemetryEventMap, type TelemetryEventMap,
TelemetryProvider, TelemetryProvider,
} from '@blocksuite/affine-shared/services'; } from '@blocksuite/affine-shared/services';
import { import { type BlockComponent } from '@blocksuite/block-std';
type BlockComponent, import { RANGE_SYNC_EXCLUDE_ATTR } from '@blocksuite/block-std/inline';
RANGE_SYNC_EXCLUDE_ATTR,
} from '@blocksuite/block-std';
import { import {
createRecordDetail, createRecordDetail,
createUniComponentFromWebComponent, createUniComponentFromWebComponent,

View File

@@ -15,7 +15,6 @@
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../data-view" }, { "path": "../../data-view" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -20,7 +20,6 @@
"@blocksuite/data-view": "workspace:*", "@blocksuite/data-view": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -16,10 +16,8 @@ import {
TelemetryProvider, TelemetryProvider,
} from '@blocksuite/affine-shared/services'; } from '@blocksuite/affine-shared/services';
import { getDropResult } from '@blocksuite/affine-widget-drag-handle'; import { getDropResult } from '@blocksuite/affine-widget-drag-handle';
import { import { type BlockComponent } from '@blocksuite/block-std';
type BlockComponent, import { RANGE_SYNC_EXCLUDE_ATTR } from '@blocksuite/block-std/inline';
RANGE_SYNC_EXCLUDE_ATTR,
} from '@blocksuite/block-std';
import { import {
createRecordDetail, createRecordDetail,
createUniComponentFromWebComponent, createUniComponentFromWebComponent,

View File

@@ -17,7 +17,6 @@
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../data-view" }, { "path": "../../data-view" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -15,7 +15,6 @@
"@blocksuite/affine-shared": "workspace:*", "@blocksuite/affine-shared": "workspace:*",
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -12,7 +12,6 @@
{ "path": "../../shared" }, { "path": "../../shared" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -18,7 +18,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -14,7 +14,6 @@
{ "path": "../../shared" }, { "path": "../../shared" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -19,7 +19,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -15,7 +15,6 @@
{ "path": "../../widgets/widget-slash-menu" }, { "path": "../../widgets/widget-slash-menu" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -18,7 +18,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -14,7 +14,6 @@
{ "path": "../../widgets/widget-frame-title" }, { "path": "../../widgets/widget-frame-title" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -19,7 +19,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -15,7 +15,6 @@
{ "path": "../../widgets/widget-slash-menu" }, { "path": "../../widgets/widget-slash-menu" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -19,7 +19,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -15,7 +15,6 @@
{ "path": "../../widgets/widget-slash-menu" }, { "path": "../../widgets/widget-slash-menu" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -17,7 +17,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -15,12 +15,11 @@ import {
import { DocModeProvider } from '@blocksuite/affine-shared/services'; import { DocModeProvider } from '@blocksuite/affine-shared/services';
import { getViewportElement } from '@blocksuite/affine-shared/utils'; import { getViewportElement } from '@blocksuite/affine-shared/utils';
import type { BlockComponent } from '@blocksuite/block-std'; import type { BlockComponent } from '@blocksuite/block-std';
import { BlockSelection, TextSelection } from '@blocksuite/block-std';
import { import {
BlockSelection,
getInlineRangeProvider, getInlineRangeProvider,
TextSelection, type InlineRangeProvider,
} from '@blocksuite/block-std'; } from '@blocksuite/block-std/inline';
import type { InlineRangeProvider } from '@blocksuite/inline';
import type { BaseSelection } from '@blocksuite/store'; import type { BaseSelection } from '@blocksuite/store';
import { effect } from '@preact/signals-core'; import { effect } from '@preact/signals-core';
import { html, nothing, type TemplateResult } from 'lit'; import { html, nothing, type TemplateResult } from 'lit';

View File

@@ -13,7 +13,6 @@
{ "path": "../../shared" }, { "path": "../../shared" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -21,7 +21,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",
"@preact/signals-core": "^1.8.0", "@preact/signals-core": "^1.8.0",

View File

@@ -17,7 +17,6 @@
{ "path": "../../widgets/widget-slash-menu" }, { "path": "../../widgets/widget-slash-menu" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -17,7 +17,6 @@
"@blocksuite/affine-shared": "workspace:*", "@blocksuite/affine-shared": "workspace:*",
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -16,8 +16,11 @@ import {
getViewportElement, getViewportElement,
} from '@blocksuite/affine-shared/utils'; } from '@blocksuite/affine-shared/utils';
import type { BlockComponent } from '@blocksuite/block-std'; import type { BlockComponent } from '@blocksuite/block-std';
import { getInlineRangeProvider, TextSelection } from '@blocksuite/block-std'; import { TextSelection } from '@blocksuite/block-std';
import type { InlineRangeProvider } from '@blocksuite/inline'; import {
getInlineRangeProvider,
type InlineRangeProvider,
} from '@blocksuite/block-std/inline';
import { computed, effect, signal } from '@preact/signals-core'; import { computed, effect, signal } from '@preact/signals-core';
import { html, nothing, type TemplateResult } from 'lit'; import { html, nothing, type TemplateResult } from 'lit';
import { query, state } from 'lit/decorators.js'; import { query, state } from 'lit/decorators.js';

View File

@@ -14,7 +14,6 @@
{ "path": "../../shared" }, { "path": "../../shared" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -42,7 +42,6 @@
"@blocksuite/data-view": "workspace:*", "@blocksuite/data-view": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -7,12 +7,9 @@ import type { ConnectorElementModel } from '@blocksuite/affine-model';
import type { RichText } from '@blocksuite/affine-rich-text'; import type { RichText } from '@blocksuite/affine-rich-text';
import { ThemeProvider } from '@blocksuite/affine-shared/services'; import { ThemeProvider } from '@blocksuite/affine-shared/services';
import { almostEqual } from '@blocksuite/affine-shared/utils'; import { almostEqual } from '@blocksuite/affine-shared/utils';
import { import { type BlockComponent, ShadowlessElement } from '@blocksuite/block-std';
type BlockComponent,
RANGE_SYNC_EXCLUDE_ATTR,
ShadowlessElement,
} from '@blocksuite/block-std';
import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx'; import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx';
import { RANGE_SYNC_EXCLUDE_ATTR } from '@blocksuite/block-std/inline';
import { Bound, Vec } from '@blocksuite/global/gfx'; import { Bound, Vec } from '@blocksuite/global/gfx';
import { WithDisposable } from '@blocksuite/global/lit'; import { WithDisposable } from '@blocksuite/global/lit';
import { css, html, nothing } from 'lit'; import { css, html, nothing } from 'lit';

View File

@@ -5,12 +5,9 @@ import {
} from '@blocksuite/affine-block-surface'; } from '@blocksuite/affine-block-surface';
import type { GroupElementModel } from '@blocksuite/affine-model'; import type { GroupElementModel } from '@blocksuite/affine-model';
import type { RichText } from '@blocksuite/affine-rich-text'; import type { RichText } from '@blocksuite/affine-rich-text';
import { import { type BlockComponent, ShadowlessElement } from '@blocksuite/block-std';
type BlockComponent,
RANGE_SYNC_EXCLUDE_ATTR,
ShadowlessElement,
} from '@blocksuite/block-std';
import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx'; import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx';
import { RANGE_SYNC_EXCLUDE_ATTR } from '@blocksuite/block-std/inline';
import { Bound } from '@blocksuite/global/gfx'; import { Bound } from '@blocksuite/global/gfx';
import { WithDisposable } from '@blocksuite/global/lit'; import { WithDisposable } from '@blocksuite/global/lit';
import { html, nothing } from 'lit'; import { html, nothing } from 'lit';

View File

@@ -7,12 +7,9 @@ import { MindmapElementModel, TextResizing } from '@blocksuite/affine-model';
import type { RichText } from '@blocksuite/affine-rich-text'; import type { RichText } from '@blocksuite/affine-rich-text';
import { ThemeProvider } from '@blocksuite/affine-shared/services'; import { ThemeProvider } from '@blocksuite/affine-shared/services';
import { getSelectedRect } from '@blocksuite/affine-shared/utils'; import { getSelectedRect } from '@blocksuite/affine-shared/utils';
import { import { type BlockComponent, ShadowlessElement } from '@blocksuite/block-std';
type BlockComponent,
RANGE_SYNC_EXCLUDE_ATTR,
ShadowlessElement,
} from '@blocksuite/block-std';
import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx'; import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx';
import { RANGE_SYNC_EXCLUDE_ATTR } from '@blocksuite/block-std/inline';
import { Bound, toRadian, Vec } from '@blocksuite/global/gfx'; import { Bound, toRadian, Vec } from '@blocksuite/global/gfx';
import { WithDisposable } from '@blocksuite/global/lit'; import { WithDisposable } from '@blocksuite/global/lit';
import { html, nothing } from 'lit'; import { html, nothing } from 'lit';

View File

@@ -19,7 +19,7 @@ import {
type Signal, type Signal,
} from '@blocksuite/affine-shared/utils'; } from '@blocksuite/affine-shared/utils';
import type { BlockStdScope, EditorHost } from '@blocksuite/block-std'; import type { BlockStdScope, EditorHost } from '@blocksuite/block-std';
import type { InlineRange } from '@blocksuite/inline'; import type { InlineRange } from '@blocksuite/block-std/inline';
import type { TemplateResult } from 'lit'; import type { TemplateResult } from 'lit';
import { showImportModal } from './import-doc/index.js'; import { showImportModal } from './import-doc/index.js';

View File

@@ -8,12 +8,12 @@ import { getViewportElement } from '@blocksuite/affine-shared/utils';
import type { BlockComponent } from '@blocksuite/block-std'; import type { BlockComponent } from '@blocksuite/block-std';
import { BLOCK_ID_ATTR, WidgetComponent } from '@blocksuite/block-std'; import { BLOCK_ID_ATTR, WidgetComponent } from '@blocksuite/block-std';
import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx'; import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx';
import { IS_MOBILE } from '@blocksuite/global/env';
import { import {
INLINE_ROOT_ATTR, INLINE_ROOT_ATTR,
type InlineEditor, type InlineEditor,
type InlineRootElement, type InlineRootElement,
} from '@blocksuite/inline'; } from '@blocksuite/block-std/inline';
import { IS_MOBILE } from '@blocksuite/global/env';
import { signal } from '@preact/signals-core'; import { signal } from '@preact/signals-core';
import { html, nothing } from 'lit'; import { html, nothing } from 'lit';
import { choose } from 'lit/directives/choose.js'; import { choose } from 'lit/directives/choose.js';

View File

@@ -38,7 +38,6 @@
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../data-view" }, { "path": "../../data-view" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -19,7 +19,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -14,9 +14,9 @@ import { SpecProvider } from '@blocksuite/affine-shared/utils';
import { import {
BlockStdScope, BlockStdScope,
type EditorHost, type EditorHost,
RANGE_QUERY_EXCLUDE_ATTR,
ShadowlessElement, ShadowlessElement,
} from '@blocksuite/block-std'; } from '@blocksuite/block-std';
import { RANGE_QUERY_EXCLUDE_ATTR } from '@blocksuite/block-std/inline';
import { deserializeXYWH } from '@blocksuite/global/gfx'; import { deserializeXYWH } from '@blocksuite/global/gfx';
import { WithDisposable } from '@blocksuite/global/lit'; import { WithDisposable } from '@blocksuite/global/lit';
import { type BlockModel, type Query } from '@blocksuite/store'; import { type BlockModel, type Query } from '@blocksuite/store';

View File

@@ -15,7 +15,6 @@
{ "path": "../../widgets/widget-slash-menu" }, { "path": "../../widgets/widget-slash-menu" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -16,7 +16,6 @@
"@blocksuite/affine-shared": "workspace:*", "@blocksuite/affine-shared": "workspace:*",
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",
"@preact/signals-core": "^1.8.0", "@preact/signals-core": "^1.8.0",

View File

@@ -5,11 +5,11 @@ import {
type LocalConnectorElementModel, type LocalConnectorElementModel,
type PointStyle, type PointStyle,
} from '@blocksuite/affine-model'; } from '@blocksuite/affine-model';
import { deltaInsertsToChunks } from '@blocksuite/block-std/inline';
import { import {
getBezierParameters, getBezierParameters,
type PointLocation, type PointLocation,
} from '@blocksuite/global/gfx'; } from '@blocksuite/global/gfx';
import { deltaInsertsToChunks } from '@blocksuite/inline';
import { isConnectorWithLabel } from '../../../managers/connector-manager.js'; import { isConnectorWithLabel } from '../../../managers/connector-manager.js';
import type { RoughCanvas } from '../../../utils/rough/canvas.js'; import type { RoughCanvas } from '../../../utils/rough/canvas.js';

View File

@@ -4,9 +4,9 @@ import type {
ShapeType, ShapeType,
} from '@blocksuite/affine-model'; } from '@blocksuite/affine-model';
import { DefaultTheme, TextAlign } from '@blocksuite/affine-model'; import { DefaultTheme, TextAlign } from '@blocksuite/affine-model';
import { deltaInsertsToChunks } from '@blocksuite/block-std/inline';
import type { IBound } from '@blocksuite/global/gfx'; import type { IBound } from '@blocksuite/global/gfx';
import { Bound } from '@blocksuite/global/gfx'; import { Bound } from '@blocksuite/global/gfx';
import { deltaInsertsToChunks } from '@blocksuite/inline';
import type { RoughCanvas } from '../../../utils/rough/canvas.js'; import type { RoughCanvas } from '../../../utils/rough/canvas.js';
import type { CanvasRenderer } from '../../canvas-renderer.js'; import type { CanvasRenderer } from '../../canvas-renderer.js';

View File

@@ -5,8 +5,8 @@ import type {
TextVerticalAlign, TextVerticalAlign,
} from '@blocksuite/affine-model'; } from '@blocksuite/affine-model';
import { FeatureFlagService } from '@blocksuite/affine-shared/services'; import { FeatureFlagService } from '@blocksuite/affine-shared/services';
import { deltaInsertsToChunks } from '@blocksuite/block-std/inline';
import type { Bound, SerializedXYWH } from '@blocksuite/global/gfx'; import type { Bound, SerializedXYWH } from '@blocksuite/global/gfx';
import { deltaInsertsToChunks } from '@blocksuite/inline';
import type { CanvasRenderer } from '../../canvas-renderer.js'; import type { CanvasRenderer } from '../../canvas-renderer.js';
import { import {

View File

@@ -1,5 +1,5 @@
import { DefaultTheme, type TextElementModel } from '@blocksuite/affine-model'; import { DefaultTheme, type TextElementModel } from '@blocksuite/affine-model';
import { deltaInsertsToChunks } from '@blocksuite/inline'; import { deltaInsertsToChunks } from '@blocksuite/block-std/inline';
import type { CanvasRenderer } from '../../canvas-renderer.js'; import type { CanvasRenderer } from '../../canvas-renderer.js';
import { import {

View File

@@ -4,12 +4,12 @@ import type {
FontWeight, FontWeight,
TextElementModel, TextElementModel,
} from '@blocksuite/affine-model'; } from '@blocksuite/affine-model';
import { deltaInsertsToChunks } from '@blocksuite/block-std/inline';
import type { Bound } from '@blocksuite/global/gfx'; import type { Bound } from '@blocksuite/global/gfx';
import { import {
getPointsFromBoundWithRotation, getPointsFromBoundWithRotation,
rotatePoints, rotatePoints,
} from '@blocksuite/global/gfx'; } from '@blocksuite/global/gfx';
import { deltaInsertsToChunks } from '@blocksuite/inline';
import type * as Y from 'yjs'; import type * as Y from 'yjs';
import { import {

View File

@@ -1,11 +1,12 @@
import type { Color } from '@blocksuite/affine-model'; import type { Color } from '@blocksuite/affine-model';
import { ThemeProvider } from '@blocksuite/affine-shared/services'; import { ThemeProvider } from '@blocksuite/affine-shared/services';
import type { EditorHost, SurfaceSelection } from '@blocksuite/block-std'; import type { EditorHost, SurfaceSelection } from '@blocksuite/block-std';
import { BlockComponent, RANGE_SYNC_EXCLUDE_ATTR } from '@blocksuite/block-std'; import { BlockComponent } from '@blocksuite/block-std';
import { import {
GfxControllerIdentifier, GfxControllerIdentifier,
type Viewport, type Viewport,
} from '@blocksuite/block-std/gfx'; } from '@blocksuite/block-std/gfx';
import { RANGE_SYNC_EXCLUDE_ATTR } from '@blocksuite/block-std/inline';
import { Bound } from '@blocksuite/global/gfx'; import { Bound } from '@blocksuite/global/gfx';
import { css, html } from 'lit'; import { css, html } from 'lit';
import { query } from 'lit/decorators.js'; import { query } from 'lit/decorators.js';

View File

@@ -13,7 +13,6 @@
{ "path": "../../shared" }, { "path": "../../shared" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -3,10 +3,8 @@ import type { TableBlockModel } from '@blocksuite/affine-model';
import { NOTE_SELECTOR } from '@blocksuite/affine-shared/consts'; import { NOTE_SELECTOR } from '@blocksuite/affine-shared/consts';
import { DocModeProvider } from '@blocksuite/affine-shared/services'; import { DocModeProvider } from '@blocksuite/affine-shared/services';
import { VirtualPaddingController } from '@blocksuite/affine-shared/utils'; import { VirtualPaddingController } from '@blocksuite/affine-shared/utils';
import { import type { BlockComponent } from '@blocksuite/block-std';
type BlockComponent, import { RANGE_SYNC_EXCLUDE_ATTR } from '@blocksuite/block-std/inline';
RANGE_SYNC_EXCLUDE_ATTR,
} from '@blocksuite/block-std';
import { IS_MOBILE } from '@blocksuite/global/env'; import { IS_MOBILE } from '@blocksuite/global/env';
import { signal } from '@preact/signals-core'; import { signal } from '@preact/signals-core';
import { html, nothing } from 'lit'; import { html, nothing } from 'lit';

View File

@@ -15,7 +15,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -11,7 +11,6 @@
{ "path": "../shared" }, { "path": "../shared" },
{ "path": "../../framework/block-std" }, { "path": "../../framework/block-std" },
{ "path": "../../framework/global" }, { "path": "../../framework/global" },
{ "path": "../../framework/inline" },
{ "path": "../../framework/store" } { "path": "../../framework/store" }
] ]
} }

View File

@@ -19,7 +19,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -15,7 +15,6 @@
{ "path": "../../shared" }, { "path": "../../shared" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -19,7 +19,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -15,7 +15,6 @@
{ "path": "../../shared" }, { "path": "../../shared" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -19,7 +19,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -15,7 +15,6 @@
{ "path": "../../shared" }, { "path": "../../shared" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -19,7 +19,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",
"@preact/signals-core": "^1.8.0", "@preact/signals-core": "^1.8.0",

View File

@@ -9,11 +9,11 @@ import { ThemeProvider } from '@blocksuite/affine-shared/services';
import { getSelectedRect } from '@blocksuite/affine-shared/utils'; import { getSelectedRect } from '@blocksuite/affine-shared/utils';
import { import {
type BlockStdScope, type BlockStdScope,
RANGE_SYNC_EXCLUDE_ATTR,
ShadowlessElement, ShadowlessElement,
stdContext, stdContext,
} from '@blocksuite/block-std'; } from '@blocksuite/block-std';
import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx'; import { GfxControllerIdentifier } from '@blocksuite/block-std/gfx';
import { RANGE_SYNC_EXCLUDE_ATTR } from '@blocksuite/block-std/inline';
import { Bound, toRadian, Vec } from '@blocksuite/global/gfx'; import { Bound, toRadian, Vec } from '@blocksuite/global/gfx';
import { WithDisposable } from '@blocksuite/global/lit'; import { WithDisposable } from '@blocksuite/global/lit';
import { consume } from '@lit/context'; import { consume } from '@lit/context';

View File

@@ -15,7 +15,6 @@
{ "path": "../../shared" }, { "path": "../../shared" },
{ "path": "../../../framework/block-std" }, { "path": "../../../framework/block-std" },
{ "path": "../../../framework/global" }, { "path": "../../../framework/global" },
{ "path": "../../../framework/inline" },
{ "path": "../../../framework/store" } { "path": "../../../framework/store" }
] ]
} }

View File

@@ -12,7 +12,6 @@
"dependencies": { "dependencies": {
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@toeverything/theme": "^1.1.12", "@toeverything/theme": "^1.1.12",
"@types/lodash-es": "^4.17.12", "@types/lodash-es": "^4.17.12",

View File

@@ -9,7 +9,6 @@
"references": [ "references": [
{ "path": "../../framework/block-std" }, { "path": "../../framework/block-std" },
{ "path": "../../framework/global" }, { "path": "../../framework/global" },
{ "path": "../../framework/inline" },
{ "path": "../../framework/store" } { "path": "../../framework/store" }
] ]
} }

View File

@@ -16,7 +16,6 @@
"@blocksuite/block-std": "workspace:*", "@blocksuite/block-std": "workspace:*",
"@blocksuite/global": "workspace:*", "@blocksuite/global": "workspace:*",
"@blocksuite/icons": "^2.2.6", "@blocksuite/icons": "^2.2.6",
"@blocksuite/inline": "workspace:*",
"@blocksuite/store": "workspace:*", "@blocksuite/store": "workspace:*",
"@floating-ui/dom": "^1.6.13", "@floating-ui/dom": "^1.6.13",
"@lit/context": "^1.1.2", "@lit/context": "^1.1.2",

View File

@@ -9,7 +9,7 @@ import {
type EditorHost, type EditorHost,
TextSelection, TextSelection,
} from '@blocksuite/block-std'; } from '@blocksuite/block-std';
import type { InlineEditor, InlineRange } from '@blocksuite/inline'; import type { InlineEditor, InlineRange } from '@blocksuite/block-std/inline';
import { BlockModel } from '@blocksuite/store'; import { BlockModel } from '@blocksuite/store';
import type { AffineInlineEditor } from './inline/index.js'; import type { AffineInlineEditor } from './inline/index.js';

View File

@@ -1,13 +1,13 @@
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types'; import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
import { type BlockStdScope, StdIdentifier } from '@blocksuite/block-std'; import { type BlockStdScope, StdIdentifier } from '@blocksuite/block-std';
import {
type AttributeRenderer,
getDefaultAttributeRenderer,
} from '@blocksuite/block-std/inline';
import { import {
createIdentifier, createIdentifier,
type ServiceIdentifier, type ServiceIdentifier,
} from '@blocksuite/global/di'; } from '@blocksuite/global/di';
import {
type AttributeRenderer,
getDefaultAttributeRenderer,
} from '@blocksuite/inline';
import { import {
baseTextAttributes, baseTextAttributes,
type DeltaInsert, type DeltaInsert,

View File

@@ -2,7 +2,7 @@ import type {
AttributeRenderer, AttributeRenderer,
InlineEditor, InlineEditor,
InlineRange, InlineRange,
} from '@blocksuite/inline'; } from '@blocksuite/block-std/inline';
import type { BaseTextAttributes, DeltaInsert } from '@blocksuite/store'; import type { BaseTextAttributes, DeltaInsert } from '@blocksuite/store';
import type * as Y from 'yjs'; import type * as Y from 'yjs';
import type { ZodTypeAny } from 'zod'; import type { ZodTypeAny } from 'zod';

View File

@@ -1,7 +1,10 @@
import { getSelectedBlocksCommand } from '@blocksuite/affine-shared/commands'; import { getSelectedBlocksCommand } from '@blocksuite/affine-shared/commands';
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types'; import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
import type { BlockSelection, Command } from '@blocksuite/block-std'; import type { BlockSelection, Command } from '@blocksuite/block-std';
import { INLINE_ROOT_ATTR, type InlineRootElement } from '@blocksuite/inline'; import {
INLINE_ROOT_ATTR,
type InlineRootElement,
} from '@blocksuite/block-std/inline';
import { FORMAT_BLOCK_SUPPORT_FLAVOURS } from './consts.js'; import { FORMAT_BLOCK_SUPPORT_FLAVOURS } from './consts.js';

View File

@@ -4,7 +4,10 @@ import {
type BlockComponent, type BlockComponent,
type Command, type Command,
} from '@blocksuite/block-std'; } from '@blocksuite/block-std';
import { INLINE_ROOT_ATTR, type InlineRootElement } from '@blocksuite/inline'; import {
INLINE_ROOT_ATTR,
type InlineRootElement,
} from '@blocksuite/block-std/inline';
import { FORMAT_NATIVE_SUPPORT_FLAVOURS } from './consts.js'; import { FORMAT_NATIVE_SUPPORT_FLAVOURS } from './consts.js';

View File

@@ -1,7 +1,10 @@
import { getSelectedBlocksCommand } from '@blocksuite/affine-shared/commands'; import { getSelectedBlocksCommand } from '@blocksuite/affine-shared/commands';
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types'; import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
import type { Command, TextSelection } from '@blocksuite/block-std'; import type { Command, TextSelection } from '@blocksuite/block-std';
import { INLINE_ROOT_ATTR, type InlineRootElement } from '@blocksuite/inline'; import {
INLINE_ROOT_ATTR,
type InlineRootElement,
} from '@blocksuite/block-std/inline';
import { FORMAT_TEXT_SUPPORT_FLAVOURS } from './consts.js'; import { FORMAT_TEXT_SUPPORT_FLAVOURS } from './consts.js';
import { clearMarksOnDiscontinuousInput } from './utils.js'; import { clearMarksOnDiscontinuousInput } from './utils.js';

View File

@@ -4,7 +4,10 @@ import {
} from '@blocksuite/affine-shared/commands'; } from '@blocksuite/affine-shared/commands';
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types'; import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
import type { Command } from '@blocksuite/block-std'; import type { Command } from '@blocksuite/block-std';
import { INLINE_ROOT_ATTR, type InlineRootElement } from '@blocksuite/inline'; import {
INLINE_ROOT_ATTR,
type InlineRootElement,
} from '@blocksuite/block-std/inline';
import { toggleLinkPopup } from '../inline/index.js'; import { toggleLinkPopup } from '../inline/index.js';
import { formatBlockCommand } from './format-block.js'; import { formatBlockCommand } from './format-block.js';

View File

@@ -16,7 +16,7 @@ import {
type InlineEditor, type InlineEditor,
type InlineRange, type InlineRange,
type InlineRootElement, type InlineRootElement,
} from '@blocksuite/inline'; } from '@blocksuite/block-std/inline';
import type { BlockModel } from '@blocksuite/store'; import type { BlockModel } from '@blocksuite/store';
import { effect } from '@preact/signals-core'; import { effect } from '@preact/signals-core';

View File

@@ -4,7 +4,7 @@ import type {
BeforeinputHookCtx, BeforeinputHookCtx,
CompositionEndHookCtx, CompositionEndHookCtx,
HookContext, HookContext,
} from '@blocksuite/inline'; } from '@blocksuite/block-std/inline';
const EDGE_IGNORED_ATTRIBUTES = ['code', 'link'] as const; const EDGE_IGNORED_ATTRIBUTES = ['code', 'link'] as const;
const GLOBAL_IGNORED_ATTRIBUTES = [] as const; const GLOBAL_IGNORED_ATTRIBUTES = [] as const;

View File

@@ -2,7 +2,10 @@ import { FootNoteSchema, ReferenceInfoSchema } from '@blocksuite/affine-model';
import { ToolbarModuleExtension } from '@blocksuite/affine-shared/services'; import { ToolbarModuleExtension } from '@blocksuite/affine-shared/services';
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types'; import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
import { BlockFlavourIdentifier, StdIdentifier } from '@blocksuite/block-std'; import { BlockFlavourIdentifier, StdIdentifier } from '@blocksuite/block-std';
import type { InlineEditor, InlineRootElement } from '@blocksuite/inline'; import type {
InlineEditor,
InlineRootElement,
} from '@blocksuite/block-std/inline';
import { html } from 'lit'; import { html } from 'lit';
import { z } from 'zod'; import { z } from 'zod';

View File

@@ -1,6 +1,6 @@
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types'; import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
import { ShadowlessElement } from '@blocksuite/block-std'; import { ShadowlessElement } from '@blocksuite/block-std';
import { ZERO_WIDTH_SPACE } from '@blocksuite/inline'; import { ZERO_WIDTH_SPACE } from '@blocksuite/block-std/inline';
import type { DeltaInsert } from '@blocksuite/store'; import type { DeltaInsert } from '@blocksuite/store';
import { html } from 'lit'; import { html } from 'lit';
import { property } from 'lit/decorators.js'; import { property } from 'lit/decorators.js';

View File

@@ -8,13 +8,13 @@ import {
ShadowlessElement, ShadowlessElement,
TextSelection, TextSelection,
} from '@blocksuite/block-std'; } from '@blocksuite/block-std';
import { WithDisposable } from '@blocksuite/global/lit';
import { import {
INLINE_ROOT_ATTR, INLINE_ROOT_ATTR,
type InlineRootElement, type InlineRootElement,
ZERO_WIDTH_NON_JOINER, ZERO_WIDTH_NON_JOINER,
ZERO_WIDTH_SPACE, ZERO_WIDTH_SPACE,
} from '@blocksuite/inline'; } from '@blocksuite/block-std/inline';
import { WithDisposable } from '@blocksuite/global/lit';
import type { DeltaInsert } from '@blocksuite/store'; import type { DeltaInsert } from '@blocksuite/store';
import { shift } from '@floating-ui/dom'; import { shift } from '@floating-ui/dom';
import { baseTheme } from '@toeverything/theme'; import { baseTheme } from '@toeverything/theme';

View File

@@ -1,6 +1,6 @@
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types'; import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
import { ShadowlessElement } from '@blocksuite/block-std'; import { ShadowlessElement } from '@blocksuite/block-std';
import { ZERO_WIDTH_SPACE } from '@blocksuite/inline'; import { ZERO_WIDTH_SPACE } from '@blocksuite/block-std/inline';
import type { DeltaInsert } from '@blocksuite/store'; import type { DeltaInsert } from '@blocksuite/store';
import { html } from 'lit'; import { html } from 'lit';
import { property } from 'lit/decorators.js'; import { property } from 'lit/decorators.js';

View File

@@ -6,12 +6,12 @@ import {
type BlockStdScope, type BlockStdScope,
ShadowlessElement, ShadowlessElement,
} from '@blocksuite/block-std'; } from '@blocksuite/block-std';
import { SignalWatcher, WithDisposable } from '@blocksuite/global/lit';
import { import {
type InlineEditor, type InlineEditor,
ZERO_WIDTH_NON_JOINER, ZERO_WIDTH_NON_JOINER,
ZERO_WIDTH_SPACE, ZERO_WIDTH_SPACE,
} from '@blocksuite/inline'; } from '@blocksuite/block-std/inline';
import { SignalWatcher, WithDisposable } from '@blocksuite/global/lit';
import type { DeltaInsert } from '@blocksuite/store'; import type { DeltaInsert } from '@blocksuite/store';
import { signal } from '@preact/signals-core'; import { signal } from '@preact/signals-core';
import katex from 'katex'; import katex from 'katex';

View File

@@ -7,12 +7,12 @@ import {
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types'; import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
import type { BlockComponent, BlockStdScope } from '@blocksuite/block-std'; import type { BlockComponent, BlockStdScope } from '@blocksuite/block-std';
import { BLOCK_ID_ATTR, ShadowlessElement } from '@blocksuite/block-std'; import { BLOCK_ID_ATTR, ShadowlessElement } from '@blocksuite/block-std';
import { WithDisposable } from '@blocksuite/global/lit';
import { import {
INLINE_ROOT_ATTR, INLINE_ROOT_ATTR,
type InlineRootElement, type InlineRootElement,
ZERO_WIDTH_SPACE, ZERO_WIDTH_SPACE,
} from '@blocksuite/inline'; } from '@blocksuite/block-std/inline';
import { WithDisposable } from '@blocksuite/global/lit';
import type { DeltaInsert } from '@blocksuite/store'; import type { DeltaInsert } from '@blocksuite/store';
import { css, html } from 'lit'; import { css, html } from 'lit';
import { property } from 'lit/decorators.js'; import { property } from 'lit/decorators.js';

View File

@@ -5,9 +5,9 @@ import {
stopPropagation, stopPropagation,
} from '@blocksuite/affine-shared/utils'; } from '@blocksuite/affine-shared/utils';
import { type BlockStdScope, TextSelection } from '@blocksuite/block-std'; import { type BlockStdScope, TextSelection } from '@blocksuite/block-std';
import type { InlineRange } from '@blocksuite/block-std/inline';
import { WithDisposable } from '@blocksuite/global/lit'; import { WithDisposable } from '@blocksuite/global/lit';
import { DoneIcon } from '@blocksuite/icons/lit'; import { DoneIcon } from '@blocksuite/icons/lit';
import type { InlineRange } from '@blocksuite/inline/types';
import { computePosition, inline, offset, shift } from '@floating-ui/dom'; import { computePosition, inline, offset, shift } from '@floating-ui/dom';
import { html, LitElement } from 'lit'; import { html, LitElement } from 'lit';
import { property, query } from 'lit/decorators.js'; import { property, query } from 'lit/decorators.js';

View File

@@ -1,5 +1,5 @@
import type { BlockStdScope } from '@blocksuite/block-std'; import type { BlockStdScope } from '@blocksuite/block-std';
import type { InlineRange } from '@blocksuite/inline'; import type { InlineRange } from '@blocksuite/block-std/inline';
import type { AffineInlineEditor } from '../../../affine-inline-specs'; import type { AffineInlineEditor } from '../../../affine-inline-specs';
import { LinkPopup } from './link-popup'; import { LinkPopup } from './link-popup';

View File

@@ -16,14 +16,14 @@ import {
} from '@blocksuite/affine-shared/utils'; } from '@blocksuite/affine-shared/utils';
import type { BlockComponent, BlockStdScope } from '@blocksuite/block-std'; import type { BlockComponent, BlockStdScope } from '@blocksuite/block-std';
import { BLOCK_ID_ATTR, ShadowlessElement } from '@blocksuite/block-std'; import { BLOCK_ID_ATTR, ShadowlessElement } from '@blocksuite/block-std';
import { WithDisposable } from '@blocksuite/global/lit';
import { LinkedPageIcon } from '@blocksuite/icons/lit';
import { import {
INLINE_ROOT_ATTR, INLINE_ROOT_ATTR,
type InlineRootElement, type InlineRootElement,
ZERO_WIDTH_NON_JOINER, ZERO_WIDTH_NON_JOINER,
ZERO_WIDTH_SPACE, ZERO_WIDTH_SPACE,
} from '@blocksuite/inline'; } from '@blocksuite/block-std/inline';
import { WithDisposable } from '@blocksuite/global/lit';
import { LinkedPageIcon } from '@blocksuite/icons/lit';
import type { DeltaInsert, DocMeta, Store } from '@blocksuite/store'; import type { DeltaInsert, DocMeta, Store } from '@blocksuite/store';
import { css, html, nothing } from 'lit'; import { css, html, nothing } from 'lit';
import { property, state } from 'lit/decorators.js'; import { property, state } from 'lit/decorators.js';

View File

@@ -10,9 +10,9 @@ import { FONT_XS, PANEL_BASE } from '@blocksuite/affine-shared/styles';
import type { AffineTextAttributes } from '@blocksuite/affine-shared/types'; import type { AffineTextAttributes } from '@blocksuite/affine-shared/types';
import { stopPropagation } from '@blocksuite/affine-shared/utils'; import { stopPropagation } from '@blocksuite/affine-shared/utils';
import { type BlockStdScope, ShadowlessElement } from '@blocksuite/block-std'; import { type BlockStdScope, ShadowlessElement } from '@blocksuite/block-std';
import type { InlineRange } from '@blocksuite/block-std/inline';
import { SignalWatcher, WithDisposable } from '@blocksuite/global/lit'; import { SignalWatcher, WithDisposable } from '@blocksuite/global/lit';
import { DoneIcon, ResetIcon } from '@blocksuite/icons/lit'; import { DoneIcon, ResetIcon } from '@blocksuite/icons/lit';
import type { InlineRange } from '@blocksuite/inline';
import { computePosition, inline, offset, shift } from '@floating-ui/dom'; import { computePosition, inline, offset, shift } from '@floating-ui/dom';
import { signal } from '@preact/signals-core'; import { signal } from '@preact/signals-core';
import { css, html } from 'lit'; import { css, html } from 'lit';

View File

@@ -1,6 +1,6 @@
import type { ReferenceInfo } from '@blocksuite/affine-model'; import type { ReferenceInfo } from '@blocksuite/affine-model';
import type { BlockStdScope } from '@blocksuite/block-std'; import type { BlockStdScope } from '@blocksuite/block-std';
import type { InlineRange } from '@blocksuite/inline'; import type { InlineRange } from '@blocksuite/block-std/inline';
import type { AffineInlineEditor } from '../../../affine-inline-specs'; import type { AffineInlineEditor } from '../../../affine-inline-specs';
import { ReferencePopup } from './reference-popup'; import { ReferencePopup } from './reference-popup';

View File

@@ -6,7 +6,7 @@ import {
TextSelection, TextSelection,
type UIEventHandler, type UIEventHandler,
} from '@blocksuite/block-std'; } from '@blocksuite/block-std';
import type { InlineEditor } from '@blocksuite/inline'; import type { InlineEditor } from '@blocksuite/block-std/inline';
import { getInlineEditorByModel } from '../dom.js'; import { getInlineEditorByModel } from '../dom.js';
import { insertLinkedNode } from '../linked-node.js'; import { insertLinkedNode } from '../linked-node.js';

View File

@@ -1,5 +1,5 @@
import type { BlockStdScope } from '@blocksuite/block-std'; import type { BlockStdScope } from '@blocksuite/block-std';
import type { InlineEditor } from '@blocksuite/inline'; import type { InlineEditor } from '@blocksuite/block-std/inline';
import type { BlockModel } from '@blocksuite/store'; import type { BlockModel } from '@blocksuite/store';
import { focusTextModel } from '../dom.js'; import { focusTextModel } from '../dom.js';

Some files were not shown because too many files have changed in this diff Show More