feat(core): replace emoji-mart with affine icon picker (#13644)

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

- New Features
  - Unified icon picker with consistent rendering across the app.
  - Picker can auto-close after selection.
  - “Remove” now clears the icon selection.

- Refactor
- Icon handling consolidated across editors, navigation, and document
titles for consistent behavior.
  - Picker now opens on the Emoji panel by default.

- Style
  - Adjusted line-height and selectors for icon picker visuals.

- Chores
  - Removed unused emoji-mart dependencies.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Cats Juice
2025-09-26 14:41:29 +08:00
committed by GitHub
parent c540400496
commit d272c4342d
16 changed files with 121 additions and 138 deletions
-12
View File
@@ -314,8 +314,6 @@ __metadata:
"@blocksuite/affine": "workspace:*"
"@blocksuite/icons": "npm:^2.2.17"
"@chromatic-com/storybook": "npm:^4.0.0"
"@emoji-mart/data": "npm:^1.2.1"
"@emoji-mart/react": "npm:^1.1.1"
"@emotion/react": "npm:^11.14.0"
"@emotion/styled": "npm:^11.14.0"
"@radix-ui/react-avatar": "npm:^1.1.2"
@@ -5532,16 +5530,6 @@ __metadata:
languageName: node
linkType: hard
"@emoji-mart/react@npm:^1.1.1":
version: 1.1.1
resolution: "@emoji-mart/react@npm:1.1.1"
peerDependencies:
emoji-mart: ^5.2
react: ^16.8 || ^17 || ^18
checksum: 10/def4dddaa01ce88c396510d84d1878b881fe0f9c484a836a50e3db784a91ab98edf94816cff503b4d1cab7b00400a01c87e32d19dee2d950f64ef9243f79101e
languageName: node
linkType: hard
"@emotion/babel-plugin@npm:^11.13.5":
version: 11.13.5
resolution: "@emotion/babel-plugin@npm:11.13.5"