mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 09:06:19 +08:00
chore: bump blocksuite (#7235)
## Features - https://github.com/toeverything/BlockSuite/pull/7340 @pengx17 - https://github.com/toeverything/BlockSuite/pull/7334 @EYHN - https://github.com/toeverything/BlockSuite/pull/7339 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/7328 @zzj3720 - https://github.com/toeverything/BlockSuite/pull/7324 @Flrande - https://github.com/toeverything/BlockSuite/pull/7297 @pengx17 - https://github.com/toeverything/BlockSuite/pull/7318 @CatsJuice ## Bugfix - https://github.com/toeverything/BlockSuite/pull/7343 @Saul-Mirone - https://github.com/toeverything/BlockSuite/pull/7345 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/7341 @donteatfriedrice - https://github.com/toeverything/BlockSuite/pull/7342 @zzj3720 - https://github.com/toeverything/BlockSuite/pull/7329 @CatsJuice - https://github.com/toeverything/BlockSuite/pull/7337 @fundon - https://github.com/toeverything/BlockSuite/pull/7333 @fundon - https://github.com/toeverything/BlockSuite/pull/7326 @akumatus - https://github.com/toeverything/BlockSuite/pull/7325 @Flrande - https://github.com/toeverything/BlockSuite/pull/7323 @zzj3720 - https://github.com/toeverything/BlockSuite/pull/7312 @golok727 - https://github.com/toeverything/BlockSuite/pull/7317 @CatsJuice - https://github.com/toeverything/BlockSuite/pull/7319 @akumatus ## Refactor - https://github.com/toeverything/BlockSuite/pull/7327 @Flrande - https://github.com/toeverything/BlockSuite/pull/7320 @Flrande ## Misc - https://github.com/toeverything/BlockSuite/pull/7303 @fundon - https://github.com/toeverything/BlockSuite/pull/7321 @Saul-Mirone
This commit is contained in:
@@ -247,6 +247,7 @@ export const CreateWorkspaceModal = ({
|
||||
const { id } = await workspacesService.create(
|
||||
workspaceFlavour,
|
||||
async workspace => {
|
||||
workspace.meta.initialize();
|
||||
workspace.meta.setName(name);
|
||||
const page = workspace.createDoc();
|
||||
defaultDocId = page.id;
|
||||
|
||||
+7
-4
@@ -1,6 +1,6 @@
|
||||
import { mixpanel } from '@affine/core/utils';
|
||||
import type { BlockSpec } from '@blocksuite/block-std';
|
||||
import type { RootService } from '@blocksuite/blocks';
|
||||
import type { RootService, TelemetryEventMap } from '@blocksuite/blocks';
|
||||
import {
|
||||
AffineCanvasTextFonts,
|
||||
EdgelessRootService,
|
||||
@@ -30,9 +30,12 @@ function withAffineRootService(Service: typeof RootService) {
|
||||
customLoadFonts(this);
|
||||
}
|
||||
|
||||
telemetryService = {
|
||||
track: (event: string, data: Record<string, unknown>) => {
|
||||
mixpanel.track(event, data);
|
||||
override telemetryService = {
|
||||
track: <T extends keyof TelemetryEventMap>(
|
||||
eventName: T,
|
||||
props: TelemetryEventMap[T]
|
||||
) => {
|
||||
mixpanel.track(eventName, props);
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
+1
@@ -20,6 +20,7 @@ schema.register(AffineSchemas);
|
||||
beforeEach(async () => {
|
||||
vi.useFakeTimers({ toFake: ['requestIdleCallback'] });
|
||||
docCollection = new DocCollection({ id: 'test', schema });
|
||||
docCollection.meta.initialize();
|
||||
const initPage = async (page: Doc) => {
|
||||
page.load();
|
||||
expect(page).not.toBeNull();
|
||||
|
||||
Reference in New Issue
Block a user