chore: bump up @blocksuite/affine version to v0.18.6 (#9113)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@blocksuite/affine](https://redirect.github.com/toeverything/blocksuite) ([source](https://redirect.github.com/toeverything/blocksuite/tree/HEAD/packages/affine/all), [changelog](https://redirect.github.com/toeverything/blocksuite/blob/master/packages/blocks/CHANGELOG.md)) | [`0.18.5` -> `0.18.6`](https://renovatebot.com/diffs/npm/@blocksuite%2faffine/0.18.5/0.18.6) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@blocksuite%2faffine/0.18.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@blocksuite%2faffine/0.18.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@blocksuite%2faffine/0.18.5/0.18.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@blocksuite%2faffine/0.18.5/0.18.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>toeverything/blocksuite (@&#8203;blocksuite/affine)</summary>

### [`v0.18.6`](https://redirect.github.com/toeverything/blocksuite/blob/HEAD/packages/affine/all/CHANGELOG.md#0186)

[Compare Source](https://redirect.github.com/toeverything/blocksuite/compare/v0.18.5...v0.18.6)

##### Patch Changes

-   [`d925364`](https://redirect.github.com/toeverything/blocksuite/commit/d925364): Blocksuite patch release.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS41OC4xIiwidXBkYXRlZEluVmVyIjoiMzkuNTguMSIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
This commit is contained in:
renovate
2024-12-13 02:32:40 +00:00
parent 8eea813c7c
commit ef6068b7c2
14 changed files with 226 additions and 244 deletions

View File

@@ -80,7 +80,7 @@ export async function getContentFromSlice(
collection: host.std.doc.collection,
middlewares: [titleMiddleware, embedSyncedDocMiddleware('content')],
});
const snapshot = await job.sliceToSnapshot(slice);
const snapshot = job.sliceToSnapshot(slice);
if (!snapshot) {
return '';
}
@@ -99,7 +99,7 @@ export async function getPlainTextFromSlice(host: EditorHost, slice: Slice) {
collection: host.std.doc.collection,
middlewares: [titleMiddleware],
});
const snapshot = await job.sliceToSnapshot(slice);
const snapshot = job.sliceToSnapshot(slice);
if (!snapshot) {
return '';
}

View File

@@ -1,5 +1,5 @@
import { fetchImage } from '@blocksuite/affine/blocks';
import { assertExists } from '@blocksuite/affine/global/utils';
import { FetchUtils } from '@blocksuite/affine-shared/adapters';
export async function fetchImageToFile(
url: string,
@@ -7,7 +7,7 @@ export async function fetchImageToFile(
imageProxy?: string
): Promise<File | void> {
try {
const res = await fetchImage(url, undefined, imageProxy);
const res = await FetchUtils.fetchImage(url, undefined, imageProxy);
if (res && res.ok) {
let blob = await res.blob();
if (!blob.type || !blob.type.startsWith('image/')) {