update
This commit is contained in:
@ -10,14 +10,26 @@
|
||||
* to the new block handler architecture using a unified HeadingBlockHandler.
|
||||
* Phase 5 Complete: Quote, Code, and List blocks have been successfully migrated
|
||||
* to the new block handler architecture.
|
||||
* Phase 6 Complete: Image, YouTube, and Attachment blocks have been successfully migrated
|
||||
* to the new block handler architecture.
|
||||
* Phase 7 Complete: Markdown and HTML blocks have been successfully migrated
|
||||
* to the new block handler architecture.
|
||||
*/
|
||||
|
||||
import { BlockRegistry, DividerBlockHandler } from './blocks/index.js';
|
||||
import { ParagraphBlockHandler } from './blocks/text/paragraph.block.js';
|
||||
import { HeadingBlockHandler } from './blocks/text/heading.block.js';
|
||||
import { QuoteBlockHandler } from './blocks/text/quote.block.js';
|
||||
import { CodeBlockHandler } from './blocks/text/code.block.js';
|
||||
import { ListBlockHandler } from './blocks/text/list.block.js';
|
||||
import {
|
||||
BlockRegistry,
|
||||
DividerBlockHandler,
|
||||
ParagraphBlockHandler,
|
||||
HeadingBlockHandler,
|
||||
QuoteBlockHandler,
|
||||
CodeBlockHandler,
|
||||
ListBlockHandler,
|
||||
ImageBlockHandler,
|
||||
YouTubeBlockHandler,
|
||||
AttachmentBlockHandler,
|
||||
MarkdownBlockHandler,
|
||||
HtmlBlockHandler
|
||||
} from './blocks/index.js';
|
||||
|
||||
// Initialize and register all block handlers
|
||||
export function registerAllBlockHandlers(): void {
|
||||
@ -33,14 +45,14 @@ export function registerAllBlockHandlers(): void {
|
||||
BlockRegistry.register('code', new CodeBlockHandler());
|
||||
BlockRegistry.register('list', new ListBlockHandler());
|
||||
|
||||
// TODO: Register media blocks when implemented
|
||||
// BlockRegistry.register('image', new ImageBlockHandler());
|
||||
// BlockRegistry.register('youtube', new YoutubeBlockHandler());
|
||||
// BlockRegistry.register('attachment', new AttachmentBlockHandler());
|
||||
// Register media blocks
|
||||
BlockRegistry.register('image', new ImageBlockHandler());
|
||||
BlockRegistry.register('youtube', new YouTubeBlockHandler());
|
||||
BlockRegistry.register('attachment', new AttachmentBlockHandler());
|
||||
|
||||
// TODO: Register other content blocks when implemented
|
||||
// BlockRegistry.register('markdown', new MarkdownBlockHandler());
|
||||
// BlockRegistry.register('html', new HtmlBlockHandler());
|
||||
// Register other content blocks
|
||||
BlockRegistry.register('markdown', new MarkdownBlockHandler());
|
||||
BlockRegistry.register('html', new HtmlBlockHandler());
|
||||
}
|
||||
|
||||
// Ensure blocks are registered when this module is imported
|
||||
|
Reference in New Issue
Block a user