feat(editor): add blobState$ to BlobEngine (#11756)

Closes: [BS-3137](https://linear.app/affine-design/issue/BS-3137/在-bs-添加-blobstate-接口)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **New Features**
  - Introduced real-time status tracking for file upload and download operations, allowing users to monitor progress and errors more effectively.
- **Improvements**
  - Enhanced icon display for attachments, providing a refreshed visual experience.
  - Improved update frequency and accuracy for file synchronization status indicators.
- **Bug Fixes**
  - Refined internal logic for filtering status updates, ensuring more precise feedback during file operations.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
fundon authored and Fangdun Tsai committed 2025-04-28 10:46:46 +08:00
1 parent d7b1819149
commit e9003dec9e
9 files changed
+35 -11

No files matched your search

@@ -46,6 +46,8 @@ export class Workspace extends Entity {
});
return id;
},
/* eslint-disable rxjs/finnish */
blobState$: key => this.engine.blob.blobState$(key),
name: 'blob',
readonly: false,
},