Image edition before sending: crop and rotate. (#6842)
* Add crop and rotate editing before sending images (#6363)
* feat(messages): add crop and rotate before image upload
* Update screenshots
* chore: trigger CI after screenshot update
* fix: resolve detekt violations in image editor and media viewer modules
* fix: require explicit edits param, use plurals for rotation a11y, remove redundant @Inject
* fix: require explicit edits param, use plurals for rotation a11y, remove redundant @Inject
* fix: use semantically correct RotateRight icon for image rotation action
* Update screenshots
* chore: trigger CI after screenshot update
---------
Co-authored-by: ElementBot <android@element.io>
Co-authored-by: Benoit Marty <benoitm@element.io>
* Update design and UX
Update and add tests
Improve preview
* Update screenshots
* For quality issue and improve preview
* Update screenshots
* Remove default value of data class.
* Rename file.
* Fix tests.
* Allow detecting touch events outside the image by applying the drag detection to the parent node and offsetting the touch events
* Improve touch detection.
* Update screenshots
* Remove useless line.
---------
Co-authored-by: Gianluca Iavicoli <gianluca.iavicoli04@gmail.com>
Co-authored-by: ElementBot <android@element.io>
Co-authored-by: Jorge MartÃn <jorgem@element.io>