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
fix: remove special menu
lawvsc5a6e94a71f6
diff --git a/libs/components/common/src/lib/list/index.tsx b/libs/components/common/src/lib/list/index.tsxindex c00a4e1415..c1ec42557d 100644--- a/libs/components/common/src/lib/list/index.tsx+++ b/libs/components/common/src/lib/list/index.tsx@@ -39,14 +39,6 @@ type MenuItemsProps = {export const CommonList = (props: MenuItemsProps) => {const { items, currentItem, setCurrentItem, onSelected } = props;- // const JSONUnsupportedBlockTypes = useFlag('JSONUnsupportedBlockTypes', [- // 'page',- // ]);- // TODO Insert bidirectional link to be developed- const JSONUnsupportedBlockTypes = ['page'];- const usedItems = items.filter(item => {- return !JSONUnsupportedBlockTypes.includes(item?.content?.id);- });return (<div className={clsx(styles('root_container'), props.className)}><div@@ -55,8 +47,8 @@ export const CommonList = (props: MenuItemsProps) => {commonListContainer,])}>- {usedItems?.length ? (- usedItems.map((item, idx) => {+ {items?.length ? (+ items.map((item, idx) => {if (item.renderCustom) {return item.renderCustom(item);} else if (item.block) {diff --git a/libs/components/editor-plugins/src/menu/command-menu/config.ts b/libs/components/editor-plugins/src/menu/command-menu/config.tsindex 9c06bc81ed..8e0aba6df5 100644--- a/libs/components/editor-plugins/src/menu/command-menu/config.ts+++ b/libs/components/editor-plugins/src/menu/command-menu/config.ts@@ -68,11 +68,12 @@ export const menuItemsMap: {type: Protocol.Block.Type.text,icon: TextIcon,},- {- text: 'Page',- type: 'page',- icon: PagesIcon,- },+ // the Page block should not be inserted+ // {+ // text: 'Page',+ // type: Protocol.Block.Type.page,+ // icon: PagesIcon,+ // },{text: 'Heading 1',type: Protocol.Block.Type.heading1,