chore: bump bs (#7914)

This commit is contained in:
Saul-Mirone
2024-08-20 00:24:00 +00:00
parent 152815c175
commit 6b0c398ae5
20 changed files with 199 additions and 135 deletions
@@ -109,8 +109,6 @@ const getOrCreateShellWorkspace = (workspaceId: string) => {
main: blobStorage,
},
schema: globalBlockSuiteSchema,
disableBacklinkIndex: true,
disableSearchIndex: true,
});
docCollectionMap.set(workspaceId, docCollection);
docCollection.doc.emit('sync', [true, docCollection.doc]);
@@ -7,12 +7,7 @@ import { useJournalInfoHelper } from '@affine/core/hooks/use-journal';
import { PeekViewService } from '@affine/core/modules/peek-view';
import { WorkbenchService } from '@affine/core/modules/workbench';
import type { DocMode } from '@blocksuite/blocks';
import {
DocMetaTags,
DocTitle,
EdgelessEditor,
PageEditor,
} from '@blocksuite/presets';
import { DocTitle, EdgelessEditor, PageEditor } from '@blocksuite/presets';
import type { Doc } from '@blocksuite/store';
import {
DocService,
@@ -58,10 +53,6 @@ const adapted = {
react: React,
elementClass: DocTitle,
}),
PageMetaTags: createReactComponentFromLit({
react: React,
elementClass: DocMetaTags,
}),
EdgelessEditor: createReactComponentFromLit({
react: React,
elementClass: EdgelessEditor,
@@ -207,7 +198,7 @@ export const BlocksuiteDocEditor = forwardRef<
<div
className={styles.docEditorGap}
onClick={() => {
docPage.std.spec.getService('affine:page').appendParagraph();
docPage.std.command.exec('appendParagraph' as never, {});
}}
></div>
) : null}
@@ -31,7 +31,7 @@ function customLoadFonts(service: RootService): void {
}
}
function withAffineRootService(Service: typeof RootService) {
function withAffineRootService(Service: typeof PageRootService) {
return class extends Service {
override loadFonts(): void {
customLoadFonts(this);
@@ -65,7 +65,7 @@ export function createEdgelessRootBlockSpec(
): EdgelessRootBlockSpecType {
return {
...AIEdgelessRootBlockSpec,
service: withAffineRootService(EdgelessRootService),
service: withAffineRootService(EdgelessRootService as never),
config: {
linkedWidget: createLinkedWidgetConfig(framework),
},