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 block version
QiShaoXuan20ad0c3e8661
diff --git a/packages/app/package.json b/packages/app/package.jsonindex 8de2f3f4a2..7a2d9cc435 100644--- a/packages/app/package.json+++ b/packages/app/package.json@@ -10,9 +10,9 @@"lint": "next lint"},"dependencies": {- "@blocksuite/blocks": "^0.2.11",- "@blocksuite/editor": "^0.2.11",- "@blocksuite/store": "^0.2.11",+ "@blocksuite/blocks": "^0.2.12",+ "@blocksuite/editor": "^0.2.12",+ "@blocksuite/store": "^0.2.12","@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 512f16c51a..401e40dc63 100644--- a/packages/app/src/components/editor.tsx+++ b/packages/app/src/components/editor.tsx@@ -21,7 +21,7 @@ export const Editor = () => {});const groupId = store.addBlock({ flavour: 'group' }, pageId);- const text = new Text('Legend from here...');+ const text = new Text(store, 'Legend from here...');store.addBlock({ flavour: 'paragraph', text }, groupId);// store.resetHistory();diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 2613785711..849ca5f4d4 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -18,9 +18,9 @@ importers:packages/app:specifiers:- '@blocksuite/blocks': ^0.2.11- '@blocksuite/editor': ^0.2.11- '@blocksuite/store': ^0.2.11+ '@blocksuite/blocks': ^0.2.12+ '@blocksuite/editor': ^0.2.12+ '@blocksuite/store': ^0.2.12'@emotion/css': ^11.10.0'@emotion/react': ^11.10.4'@emotion/server': ^11.10.0@@ -47,9 +47,9 @@ importers:react-dom: 18.2.0typescript: 4.8.3dependencies:- '@blocksuite/blocks': 0.2.11- '@blocksuite/editor': 0.2.11- '@blocksuite/store': 0.2.11+ '@blocksuite/blocks': 0.2.12+ '@blocksuite/editor': 0.2.12+ '@blocksuite/store': 0.2.12'@emotion/css': 11.10.0'@emotion/react': 11.10.4_w5j4k42lgipnm43s3brx6h3c34'@emotion/server': 11.10.0_@[email protected]@@ -164,10 +164,10 @@ packages:to-fast-properties: 2.0.0dev: false- /@blocksuite/blocks/0.2.11:- resolution: {integrity: sha512-LzdIGWMinW2thUSijG+TpgM2ol03KsJp5DED8ikq1gQ5zf14beB0Ri5Ci9ZMf5SBv5um95KEzAHChoRZi/jw+g==}+ /@blocksuite/blocks/0.2.12:+ resolution: {integrity: sha512-hKW0ofkcY2pNbI/EfYKuOGw23R/GUSx2zedo59NZzCHm6iitKK9omEigFK25CxMbmlY5dPrswo31QQPgu6u+7w==}dependencies:- '@blocksuite/store': 0.2.10+ '@blocksuite/store': 0.2.12hotkeys-js: 3.10.0lit: 2.4.0quill: 1.3.7@@ -178,11 +178,11 @@ packages:- utf-8-validatedev: false- /@blocksuite/editor/0.2.11:- resolution: {integrity: sha512-0r0W0x0Icti+pnpIynYCGa/FKJuGl3fbyBXW14LMH+W4tqopS1+RQ5ADofkOtRD/hvEPVH1/OffwnjLhTotMOw==}+ /@blocksuite/editor/0.2.12:+ resolution: {integrity: sha512-exGUJ9zBdWpPwCrFPv+u7F+xMlCksif3hRCT5dPWYt8LDVi5CcHuS5uZ0nUEgi0uSDgXyohSgOVaPl8GGYnXzA==}dependencies:- '@blocksuite/blocks': 0.2.11- '@blocksuite/store': 0.2.10+ '@blocksuite/blocks': 0.2.12+ '@blocksuite/store': 0.2.12lit: 2.4.0marked: 4.1.1turndown: 7.1.1@@ -192,21 +192,8 @@ packages:- utf-8-validatedev: false- /@blocksuite/store/0.2.10:- resolution: {integrity: sha512-8JPCMrx+PiK+fS4EqLmlVdCqF3k/UY3ABXNtfJwGiHGUGsSO64M9JOgCiC+uvwj4M9TdsClZORipod+o6EqRbQ==}- dependencies:- lib0: 0.2.52- y-protocols: 1.0.5- y-webrtc: 10.2.3- yjs: 13.5.41- transitivePeerDependencies:- - bufferutil- - supports-color- - utf-8-validate- dev: false-- /@blocksuite/store/0.2.11:- resolution: {integrity: sha512-/TJXN6A92N8hS7LhkH0DNb2l3x/xjOTxf3HDMX4yAl46X/Hze9Ajh2cCGN3l1lhffArrbt/30H2XVIfK61mLxg==}+ /@blocksuite/store/0.2.12:+ resolution: {integrity: sha512-dtiC95NP/dZq23nuP4/KhMQvVTSt8BvpiL86pzZ54YxvLhOga2dFmXzChEZlo3aYbJcBm4Nv+UbZRV8jylTq3w==}dependencies:lib0: 0.2.52y-protocols: 1.0.5