mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
chore: bump bs (#7914)
This commit is contained in:
@@ -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}
|
||||
|
||||
+2
-2
@@ -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),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user