mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-22 08:47:10 +08:00
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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>toeverything/blocksuite (@​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:
@@ -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 '';
|
||||
}
|
||||
|
||||
@@ -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/')) {
|
||||
|
||||
Reference in New Issue
Block a user