chore: bump blocksuite (#1298)

Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
Yifeng Wang
2023-03-04 04:17:06 +08:00
committed by GitHub
parent 50ff9b0c5c
commit 205092180b
14 changed files with 95 additions and 95 deletions

View File

@@ -10,12 +10,12 @@
"dependencies": {
"@affine/debug": "workspace:*",
"@affine/i18n": "workspace:*",
"@blocksuite/blocks": "0.5.0-20230302205056-4385b7a",
"@blocksuite/editor": "0.5.0-20230302205056-4385b7a",
"@blocksuite/global": "0.5.0-20230302205056-4385b7a",
"@blocksuite/blocks": "0.5.0-20230303192351-13b0dd7",
"@blocksuite/editor": "0.5.0-20230303192351-13b0dd7",
"@blocksuite/global": "0.5.0-20230303192351-13b0dd7",
"@blocksuite/icons": "2.0.17",
"@blocksuite/react": "0.5.0-20230302205056-4385b7a",
"@blocksuite/store": "0.5.0-20230302205056-4385b7a",
"@blocksuite/react": "0.5.0-20230303192351-13b0dd7",
"@blocksuite/store": "0.5.0-20230303192351-13b0dd7",
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@mui/base": "5.0.0-alpha.119",

View File

@@ -39,7 +39,7 @@ As a pro tip, you can combine multiple providers! For example, feel free to open
For any feedback, please visit [BlockSuite issues](https://github.com/toeverything/blocksuite/issues) 📍`;
const pagePromise = new Promise<Page>(resolve => {
workspace.signals.pageAdded.once(pageId => {
workspace.slots.pageAdded.once(pageId => {
const page = workspace.getPage(pageId) as Page;
pageOrPagePromise = page;
resolve(page);

View File

@@ -14,8 +14,8 @@
},
"dependencies": {
"@affine/debug": "workspace:*",
"@blocksuite/blocks": "0.5.0-20230302205056-4385b7a",
"@blocksuite/store": "0.5.0-20230302205056-4385b7a",
"@blocksuite/blocks": "0.5.0-20230303192351-13b0dd7",
"@blocksuite/store": "0.5.0-20230303192351-13b0dd7",
"@tauri-apps/api": "^1.2.0",
"encoding": "^0.1.13",
"firebase": "^9.17.1",

View File

@@ -40,7 +40,7 @@
// this._ws.once('lost-connection', () => resolve());
// this._ws.once('connection-error', () => reject());
// });
// this._signals.listAdd.emit({
// this._slots.listAdd.emit({
// workspace: workspace.room,
// provider: this.id,
// locally: true,

View File

@@ -1,5 +1,5 @@
import { BlobSyncState } from '@blocksuite/store';
import { Signal } from '@blocksuite/store';
import { Slot } from '@blocksuite/store';
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
import type {
BlobId,
@@ -15,8 +15,8 @@ export class IPCBlobProvider implements BlobProvider {
#workspace: string;
readonly signals = {
onBlobSyncStateChange: new Signal<BlobSyncStateChangeEvent>(),
readonly slots = {
onBlobSyncStateChange: new Slot<BlobSyncStateChangeEvent>(),
};
private constructor(workspace: string) {
@@ -43,7 +43,7 @@ export class IPCBlobProvider implements BlobProvider {
});
// Make a Blob from the bytes
const blob = new Blob([new Uint8Array(blobArray)], { type: 'image/bmp' });
this.signals.onBlobSyncStateChange.emit({
this.slots.onBlobSyncStateChange.emit({
id,
state: BlobSyncState.Success,
});
@@ -55,7 +55,7 @@ export class IPCBlobProvider implements BlobProvider {
const blobID = await this.#ipc.putBlob({
blob: Array.from(new Uint8Array(await blob.arrayBuffer())),
});
this.signals.onBlobSyncStateChange.emit({
this.slots.onBlobSyncStateChange.emit({
id: blobID,
state: BlobSyncState.Success,
});

View File

@@ -9,6 +9,6 @@
"zod": "^3.20.6"
},
"dependencies": {
"@blocksuite/global": "0.5.0-20230302205056-4385b7a"
"@blocksuite/global": "0.5.0-20230303192351-13b0dd7"
}
}