Commit dcd6123
refactor(ui): Refactor ct-image-input to extend ct-file-input
Convert ct-image-input from standalone component to subclass of ct-file-input.
Changes:
- Extends CTFileInput instead of BaseElement
- ImageData now extends FileData
- Compression logic moved to override methods
- Image dimension extraction in processFile override
- Capture attribute added via renderFileInput override
- Backward compatibility maintained via property aliases (images/maxImages)
- Event details include both 'images' and 'files' properties
This reduces code duplication and establishes clear inheritance hierarchy
while maintaining full backward compatibility with existing code.
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>1 parent cebf3a3 commit dcd6123
File tree
1 file changed
+112
-378
lines changed- packages/ui/src/v2/components/ct-image-input
1 file changed
+112
-378
lines changed
0 commit comments