diff --git a/libs/components/editor-blocks/src/blocks/group/Group.tsx b/libs/components/editor-blocks/src/blocks/group/Group.tsx index 610b2e1358..ac194d7eab 100644 --- a/libs/components/editor-blocks/src/blocks/group/Group.tsx +++ b/libs/components/editor-blocks/src/blocks/group/Group.tsx @@ -1,4 +1,4 @@ -import { withRecastTable } from '@toeverything/components/editor-core'; +import { withRecastBlock } from '@toeverything/components/editor-core'; import { Protocol } from '@toeverything/datasource/db-service'; import { AsyncBlock, @@ -13,7 +13,7 @@ export class Group extends BaseView { public override allowPendant = false; type = Protocol.Block.Type.group; - View = withRecastTable(GroupView); + View = withRecastBlock(GroupView); override async onDeleteChild(block: AsyncBlock): Promise { if (block.childrenIds.length === 0) { diff --git a/libs/components/editor-blocks/src/blocks/page/index.ts b/libs/components/editor-blocks/src/blocks/page/index.ts index 2f47a6ae68..3feac2f14e 100644 --- a/libs/components/editor-blocks/src/blocks/page/index.ts +++ b/libs/components/editor-blocks/src/blocks/page/index.ts @@ -1,4 +1,4 @@ -import { withRecastTable } from '@toeverything/components/editor-core'; +import { withRecastBlock } from '@toeverything/components/editor-core'; import { Protocol, DefaultColumnsValue, @@ -19,7 +19,7 @@ export const PageChildrenView: FC = props => props.children; export class PageBlock extends BaseView { type = Protocol.Block.Type.page; - View = withRecastTable(PageView); + View = withRecastBlock(PageView); // override ChildrenView = withRecastTable(PageChildrenView); public override allowPendant = false; override async onCreate(block: AsyncBlock): Promise { diff --git a/libs/components/editor-core/src/recast-block/Context.tsx b/libs/components/editor-core/src/recast-block/Context.tsx index a4efe72b9b..b819d20f2a 100644 --- a/libs/components/editor-core/src/recast-block/Context.tsx +++ b/libs/components/editor-core/src/recast-block/Context.tsx @@ -67,8 +67,3 @@ export const withRecastBlock = ); }; - -/** - * @deprecated Use {@link withRecastBlock} instead. - */ -export const withRecastTable = withRecastBlock; diff --git a/libs/components/editor-core/src/recast-block/index.ts b/libs/components/editor-core/src/recast-block/index.ts index dfe818812a..1471d1d0a2 100644 --- a/libs/components/editor-core/src/recast-block/index.ts +++ b/libs/components/editor-core/src/recast-block/index.ts @@ -9,7 +9,6 @@ export * from './types'; export { RecastBlockProvider, withRecastBlock, - withRecastTable, useRecastBlock, } from './Context';