feat: update block version

This commit is contained in:
QiShaoXuan
2022-10-20 10:32:09 +08:00
parent 53d8db2f04
commit 20ad0c3e86
3 changed files with 19 additions and 32 deletions

View File

@@ -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",

View File

@@ -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();

43
pnpm-lock.yaml generated
View File

@@ -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.0
typescript: 4.8.3
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_w5j4k42lgipnm43s3brx6h3c34
'@emotion/server': 11.10.0_@emotion+css@11.10.0
@@ -164,10 +164,10 @@ packages:
to-fast-properties: 2.0.0
dev: 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.12
hotkeys-js: 3.10.0
lit: 2.4.0
quill: 1.3.7
@@ -178,11 +178,11 @@ packages:
- utf-8-validate
dev: 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.12
lit: 2.4.0
marked: 4.1.1
turndown: 7.1.1
@@ -192,21 +192,8 @@ packages:
- utf-8-validate
dev: 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.52
y-protocols: 1.0.5