feat(editor): edgeless page block toolbar (#9707)

Close [BS-2315](https://linear.app/affine-design/issue/BS-2315/page-block-header)

### What Changes
- Add header toolbar to page block (the first note in canvas)
- Add e2e tests
- Add some edgeless e2e test utils.  **The package `@blocksuite/affine` was added to `"@affine-test/kit"`**
This commit is contained in:
L-Sun
2025-01-15 12:04:43 +00:00
parent 494a9473d5
commit 94c9717a35
21 changed files with 760 additions and 35 deletions
@@ -239,6 +239,17 @@ export const AFFINE_FLAGS = {
configurable: !isMobile,
defaultState: isCanaryBuild,
},
// TODO(@L-Sun): remove this flag when ready
enable_page_block_header: {
category: 'blocksuite',
bsFlag: 'enable_page_block_header',
displayName:
'com.affine.settings.workspace.experimental-features.enable-page-block-header.name',
description:
'com.affine.settings.workspace.experimental-features.enable-page-block-header.description',
configurable: isCanaryBuild,
defaultState: isCanaryBuild,
},
} satisfies { [key in string]: FlagInfo };
// oxlint-disable-next-line no-redeclare