mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
chore: bump blocksuite (#7075)
## Features - toeverything/blocksuite#6937 @Flrande ## Bugfix - toeverything/blocksuite#7137 @fundon - toeverything/blocksuite#7126 @golok727 - toeverything/blocksuite#7128 @CatsJuice - toeverything/blocksuite#7130 @fundon ## Refactor ## Misc - toeverything/blocksuite#7131 @fundon ## Additional changes Adjust the awareness provider so that it only obtains awareness instances when connect, and fixes the dependencies between workspace components.
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
import type { Awareness } from 'y-protocols/awareness.js';
|
||||
|
||||
export interface AwarenessConnection {
|
||||
connect(): void;
|
||||
connect(awareness: Awareness): void;
|
||||
disconnect(): void;
|
||||
}
|
||||
|
||||
export class AwarenessEngine {
|
||||
constructor(public readonly connections: AwarenessConnection[]) {}
|
||||
|
||||
connect() {
|
||||
this.connections.forEach(connection => connection.connect());
|
||||
connect(awareness: Awareness) {
|
||||
this.connections.forEach(connection => connection.connect(awareness));
|
||||
}
|
||||
|
||||
disconnect() {
|
||||
|
||||
@@ -29,6 +29,9 @@ export interface BlobStatus {
|
||||
* all operations priority use local, then use remote.
|
||||
*/
|
||||
export class BlobEngine {
|
||||
readonly name = 'blob-engine';
|
||||
readonly readonly = this.local.readonly;
|
||||
|
||||
private abort: AbortController | null = null;
|
||||
|
||||
readonly isStorageOverCapacity$ = new LiveData(false);
|
||||
|
||||
Reference in New Issue
Block a user