Files
grimoire/src/hooks
Claude 0075f9a134 refactor: extract NostrEditor as generic post composer
Refactor the chat composer into a reusable NostrEditor component with
configurable behavior for different UI contexts (chat, posts, long-form).

Key changes:
- Create NostrEditor with configurable props:
  - submitBehavior: 'enter' | 'ctrl-enter' | 'button-only'
  - variant: 'inline' | 'multiline' | 'full'
  - blobPreview: 'compact' | 'card' | 'gallery'
- Extract suggestion system into pluggable architecture (SuggestionConfig)
- Add helper functions to create standard Nostr suggestions
- Update search hooks (useProfileSearch, useEmojiSearch) with injectable
  sources for custom profile/emoji sets
- Convert MentionEditor to backward-compatible wrapper around NostrEditor
- Update ChatViewer to use new NostrEditor component

This enables building WYSIWYG editors with the same autocomplete features
as chat (profile mentions, emoji, uploads) but with different behaviors
suitable for long-form posts or notes.
2026-01-20 10:57:38 +00:00
..
2026-01-13 17:16:31 +01:00
👶
2025-12-09 16:26:31 +01:00
👶
2025-12-09 16:26:31 +01:00
2025-12-17 11:44:12 +01:00
2025-12-14 12:00:55 +01:00
2025-12-14 12:00:55 +01:00