There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
chore: sunset withRecastTable api
lawvs6597051e9abb
diff --git a/libs/components/editor-blocks/src/blocks/group/Group.tsx b/libs/components/editor-blocks/src/blocks/group/Group.tsxindex 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<boolean> {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.tsindex 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<ChildrenView> = 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<AsyncBlock> {diff --git a/libs/components/editor-core/src/recast-block/Context.tsx b/libs/components/editor-core/src/recast-block/Context.tsxindex 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 =</RecastBlockProvider>);};--/**- * @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.tsindex 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';