feat(editor): add bs affine foundation module (#12012)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **New Features**
  - Introduced the Affine Foundation package, providing a centralized layer for initializing core UI effects, custom elements, and foundational services.
  - Added new foundational store and view extensions to improve core service registration and UI effect setup.

- **Refactor**
  - Streamlined and reorganized block, store, and view extension arrays to rely on the new foundation layer, reducing duplication and simplifying extension management.
  - Removed redundant or now-centralized services and UI effects from existing modules.

- **Chores**
  - Updated configuration files and workspace dependencies to support the new Affine Foundation package.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Saul-Mirone
2025-04-28 06:38:42 +00:00
parent 08d1b8dcbf
commit 3fdab1bec6
19 changed files with 294 additions and 154 deletions

View File

@@ -26,6 +26,7 @@ export const PackageList = [
'blocksuite/affine/blocks/table',
'blocksuite/affine/components',
'blocksuite/affine/ext-loader',
'blocksuite/affine/foundation',
'blocksuite/affine/fragments/doc-title',
'blocksuite/affine/fragments/frame-panel',
'blocksuite/affine/fragments/outline',
@@ -432,6 +433,20 @@ export const PackageList = [
'blocksuite/framework/store',
],
},
{
location: 'blocksuite/affine/foundation',
name: '@blocksuite/affine-foundation',
workspaceDependencies: [
'blocksuite/affine/components',
'blocksuite/affine/ext-loader',
'blocksuite/affine/rich-text',
'blocksuite/affine/shared',
'blocksuite/affine/data-view',
'blocksuite/framework/global',
'blocksuite/framework/std',
'blocksuite/framework/store',
],
},
{
location: 'blocksuite/affine/fragments/doc-title',
name: '@blocksuite/affine-fragment-doc-title',
@@ -1314,6 +1329,7 @@ export type PackageName =
| '@blocksuite/affine-components'
| '@blocksuite/data-view'
| '@blocksuite/affine-ext-loader'
| '@blocksuite/affine-foundation'
| '@blocksuite/affine-fragment-doc-title'
| '@blocksuite/affine-fragment-frame-panel'
| '@blocksuite/affine-fragment-outline'