chore: bump bs with new extension api (#8042)
This commit is contained in:
@@ -4,7 +4,8 @@ import {
|
||||
type CommandCategory,
|
||||
PreconditionStrategy,
|
||||
} from '@affine/core/commands';
|
||||
import type { DocMode, GlobalContextService } from '@toeverything/infra';
|
||||
import type { DocMode } from '@blocksuite/blocks';
|
||||
import type { GlobalContextService } from '@toeverything/infra';
|
||||
import { Entity, LiveData } from '@toeverything/infra';
|
||||
import Fuse from 'fuse.js';
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { DocMode } from '@blocksuite/blocks';
|
||||
import { EdgelessIcon, PageIcon } from '@blocksuite/icons/rc';
|
||||
import { type DocMode, Entity, LiveData } from '@toeverything/infra';
|
||||
import { Entity, LiveData } from '@toeverything/infra';
|
||||
|
||||
import type { QuickSearchSession } from '../providers/quick-search-provider';
|
||||
import type { QuickSearchGroup } from '../types/group';
|
||||
|
||||
@@ -66,7 +66,7 @@ export class DocsQuickSearchSession
|
||||
{
|
||||
docId: resolvedDoc.docId,
|
||||
score: 100,
|
||||
blockId: resolvedDoc.blockId,
|
||||
blockId: resolvedDoc.blockIds?.[0],
|
||||
blockContent: '',
|
||||
},
|
||||
...docs,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { track } from '@affine/core/mixpanel';
|
||||
import { DocMode } from '@blocksuite/blocks';
|
||||
import type { DocsService } from '@toeverything/infra';
|
||||
import { Service } from '@toeverything/infra';
|
||||
|
||||
@@ -67,13 +68,13 @@ export class CMDKQuickSearchService extends Service {
|
||||
} else if (result.source === 'creation') {
|
||||
if (result.id === 'creation:create-page') {
|
||||
const newDoc = this.docsService.createDoc({
|
||||
primaryMode: 'page',
|
||||
primaryMode: DocMode.Page,
|
||||
title: result.payload.title,
|
||||
});
|
||||
this.workbenchService.workbench.openDoc(newDoc.id);
|
||||
} else if (result.id === 'creation:create-edgeless') {
|
||||
const newDoc = this.docsService.createDoc({
|
||||
primaryMode: 'edgeless',
|
||||
primaryMode: DocMode.Edgeless,
|
||||
title: result.payload.title,
|
||||
});
|
||||
this.workbenchService.workbench.openDoc(newDoc.id);
|
||||
|
||||
Reference in New Issue
Block a user