FEATURE: Use appEvents instead of jQuery for composer resizing progress (#12574)

FEATURE: Use appEvents instead of jQuery for composer resizing progress (#12574)

Additionally, add a composer:resize-started event to complement composer:resize-ended.

diff --git a/app/assets/javascripts/discourse/app/components/composer-body.js b/app/assets/javascripts/discourse/app/components/composer-body.js
index 4301331..eecc6ff 100644
--- a/app/assets/javascripts/discourse/app/components/composer-body.js
+++ b/app/assets/javascripts/discourse/app/components/composer-body.js
@@ -112,6 +112,7 @@ export default Component.extend(KeyEnterEscape, {
 
     const performDrag = (event) => {
       $composer.trigger("div-resizing");
+      this.appEvents.trigger("composer:div-resizing");
       $composer.addClass("clear-transitions");
       const currentMousePos = mouseYPos(event);
       let size = origComposerSize + (lastMousePos - currentMousePos);
@@ -142,6 +143,7 @@ export default Component.extend(KeyEnterEscape, {
       lastMousePos = mouseYPos(event);
       $document.on(DRAG_EVENTS, throttledPerformDrag);
       $document.on(END_EVENTS, endDrag);
+      this.appEvents.trigger("composer:resize-started");
     });
 
     if (iOSWithVisualViewport()) {

GitHub sha: 5d2cd155

This commit appears in #12574 which was approved by eviltrout. It was merged by eviltrout.