- Added menuNode state to capture the node position when menu opens - Updated all action functions to use menuNode instead of currentNode - This ensures drag handle actions (Turn into, Delete, etc.) always affect the block where the handle was clicked, not where the mouse currently hovers - Also formatted code with prettier 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
18 lines
831 B
TypeScript
18 lines
831 B
TypeScript
// Export the main composer component
|
|
export { default } from './ComposerCore.svelte'
|
|
export { default as Composer } from './ComposerCore.svelte'
|
|
|
|
// Export types
|
|
export type { ComposerVariant, ComposerFeatures, ComposerProps } from './types'
|
|
|
|
// Export individual components if needed elsewhere
|
|
export { default as ComposerToolbar } from './ComposerToolbar.svelte'
|
|
export { default as TextStyleDropdown } from './TextStyleDropdown.svelte'
|
|
export { default as MediaInsertDropdown } from './MediaInsertDropdown.svelte'
|
|
export { default as ComposerLinkManager } from './ComposerLinkManager.svelte'
|
|
|
|
// Export utilities
|
|
export { ComposerMediaHandler } from './ComposerMediaHandler.svelte'
|
|
export { useComposerEvents } from './useComposerEvents.svelte'
|
|
export { useDropdown } from './useDropdown.svelte'
|
|
export * from './editorConfig'
|