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
feat: update editor version
QiShaoXuanc9a7007542c8
diff --git a/packages/app/package.json b/packages/app/package.jsonindex 783dcfae73..b96709cb27 100644--- a/packages/app/package.json+++ b/packages/app/package.json@@ -10,9 +10,8 @@"lint": "next lint"},"dependencies": {- "@blocksuite/blocks": "^0.2.15",- "@blocksuite/editor": "^0.2.15",- "@blocksuite/store": "^0.2.15",+ "@blocksuite/blocks": "^0.2.16",+ "@blocksuite/editor": "^0.2.16","@emotion/css": "^11.10.0","@emotion/react": "^11.10.4","@emotion/server": "^11.10.0",diff --git a/packages/app/src/components/editor.tsx b/packages/app/src/components/editor.tsxindex 1dfce1378c..0f8a526d97 100644--- a/packages/app/src/components/editor.tsx+++ b/packages/app/src/components/editor.tsx@@ -1,6 +1,5 @@import { Suspense, useEffect, useRef } from 'react';import type { EditorContainer } from '@blocksuite/editor';-import { Text } from '@blocksuite/store';import '@blocksuite/blocks';import '@blocksuite/editor';import '@blocksuite/blocks/style';@@ -18,8 +17,6 @@ export const Editor = () => {title: 'Welcome to the AFFiNE Alpha',});const groupId = store.addBlock({ flavour: 'group' }, pageId);- // const text = new Text(store, 'Legend from here...');- // store.addBlock({ flavour: 'paragraph', text }, groupId);editorRef.current!.clipboard.importMarkdown(exampleMarkdown, `${groupId}`);store.resetHistory();}, [setEditor]);diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 441783e378..820934ab1f 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -18,9 +18,8 @@ importers:packages/app:specifiers:- '@blocksuite/blocks': ^0.2.15- '@blocksuite/editor': ^0.2.15- '@blocksuite/store': ^0.2.15+ '@blocksuite/blocks': ^0.2.16+ '@blocksuite/editor': ^0.2.16'@emotion/css': ^11.10.0'@emotion/react': ^11.10.4'@emotion/server': ^11.10.0@@ -48,9 +47,8 @@ importers:react-dom: 18.2.0typescript: 4.8.3dependencies:- '@blocksuite/blocks': 0.2.15- '@blocksuite/editor': 0.2.15- '@blocksuite/store': 0.2.15+ '@blocksuite/blocks': 0.2.16+ '@blocksuite/editor': 0.2.16'@emotion/css': 11.10.0'@emotion/react': 11.10.4_w5j4k42lgipnm43s3brx6h3c34'@emotion/server': 11.10.0_@[email protected]@@ -166,10 +164,10 @@ packages:to-fast-properties: 2.0.0dev: false- /@blocksuite/blocks/0.2.15:- resolution: {integrity: sha512-out76i3+ykhIyM/QJglDocGZ8zcnbWLhY73+I/CKEKlbG5Ujj9bsnPGbXRz1gWB0XDjDUqw/dZJPIQGUu5qieA==}+ /@blocksuite/blocks/0.2.16:+ resolution: {integrity: sha512-WJn7EQRlT/llQmFVmp3kgSx2+yCy0ogs0eUZZRR0Hlp6igk6LxVZnHW70QMJOPXVTmMMeDEvoNQvDmDnA+kryw==}dependencies:- '@blocksuite/store': 0.2.15+ '@blocksuite/store': 0.2.16hotkeys-js: 3.10.0lit: 2.4.0quill: 1.3.7@@ -180,11 +178,11 @@ packages:- utf-8-validatedev: false- /@blocksuite/editor/0.2.15:- resolution: {integrity: sha512-Q8Tdf50MuPvyzwriHd78nUhiX3iImmNsQWZOPvEB1wwW6hPz/bAJzxYy7SshVFC5Nq++xeNO20CyqSqT4zUpbQ==}+ /@blocksuite/editor/0.2.16:+ resolution: {integrity: sha512-Ccw2dHaJF/GKqSa22dDZ3LrHH1NzOpgGBonaqf0/KooBuQs0vlvpnyfFL2iqBHwLQ4rFNN77jUfUbd/VYAjxhQ==}dependencies:- '@blocksuite/blocks': 0.2.15- '@blocksuite/store': 0.2.15+ '@blocksuite/blocks': 0.2.16+ '@blocksuite/store': 0.2.16lit: 2.4.0marked: 4.1.1turndown: 7.1.1@@ -194,8 +192,8 @@ packages:- utf-8-validatedev: false- /@blocksuite/store/0.2.15:- resolution: {integrity: sha512-KM2//LBT5UrfdAN5ByKngALxayileBcknYbvhdjPtPUoyjkTPa0O8LFMUc5fkV8lowDdwgjyS8zu+MG7rd2sdw==}+ /@blocksuite/store/0.2.16:+ resolution: {integrity: sha512-80ksZF5rWXrPYw2znk2HyNs5KPCrnE31pv6IishndR8hXn/JUA0nj60ZS7GnL19hgnwG8naqh8aQSoxPGqyF/A==}dependencies:lib0: 0.2.52y-protocols: 1.0.5