jedmund-svelte/src/lib/components/admin/composer/index.ts
Justin Edmund 1c38dc87e3 fix: drag handle actions now affect the correct block
- 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>
2025-06-26 10:33:27 -04:00

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'