mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-20 07:47:19 +08:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * In-tree icon picker for Callout blocks (emoji, app icons, images) with popup UI and editor-wide extension/service. * Callout toolbar adds background color presets, an icon-picker action, and a destructive Delete action. * **Refactor** * Replaced legacy emoji workflow with icon-based rendering, updated state, styling, and lifecycle for callouts. * **Tests** * Updated callout E2E to reflect new default icon and picker behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: L-Sun <zover.v@gmail.com>
15 lines
431 B
TypeScript
15 lines
431 B
TypeScript
import { CalloutBlockComponent } from './callout-block';
|
|
import { IconPickerWrapper } from './icon-picker-wrapper';
|
|
|
|
export function effects() {
|
|
customElements.define('affine-callout', CalloutBlockComponent);
|
|
customElements.define('icon-picker-wrapper', IconPickerWrapper);
|
|
}
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
'affine-callout': CalloutBlockComponent;
|
|
'icon-picker-wrapper': IconPickerWrapper;
|
|
}
|
|
}
|