iachat/app/javascript/dashboard/components/widgets/conversation
Fayaz Ahmed b474929f5e
chore: Replace eventBus with mitt.js [CW-3275] (#9539)
# Replace the deprecated `eventBus` with mitt.js

## Description

Since eventBus and it's respective methods are deprecated and removed
from all future releases of vue, this was blocking us from migrating.
This PR replaces eventBus with
[mitt](https://github.com/developit/mitt). I have created a wrapper
mitt.js to simulate the same old event names so it's backwards
compatible, without making a lot of changes.


Fixes # (issue)

## Type of change

Please delete options that are not relevant.

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality not to work as expected)
- [ ] This change requires a documentation update

## How Has This Been Tested?

1. Made sure all the places we're listening to bus events are working as
expected.
2. Respective specsf or the events from mitt.


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged and published in downstream
modules
2024-05-31 15:50:36 +05:30
..
advancedFilterItems chore: RTL configuration (#6521) 2023-02-23 17:50:44 +05:30
bubble chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
components chore: Linear integration fixes (#9538) 2024-05-29 11:28:13 +05:30
contextMenu fix: Right click Snooze is not working (#9498) 2024-05-22 13:03:49 +05:30
conversation fix: apply event name (#7628) 2023-07-27 12:11:57 +05:30
conversationBulkActions chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
conversationCardComponents feat: SLA reports view (#9189) 2024-04-09 10:14:36 +10:00
EmptyState feat: Update dependencies and fix import syntax for Vite migration (#7959) 2023-09-21 17:55:54 +05:30
helpers chore: Import SLA helpers from utils (#9252) 2024-05-03 11:13:32 +05:30
linear chore: Linear integration fixes (#9538) 2024-05-29 11:28:13 +05:30
specs chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
stories feat: Add the ability to receive contact(vCard) on a WhatsApp inbox (#6330) 2023-02-07 19:36:38 -08:00
WhatsappTemplates feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
AvailabilityStatusBadge.vue feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
CannedResponse.vue fix: TypeError cannot read properties of undefined (reading 'queryselector') (#8671) 2024-01-11 20:42:24 +05:30
ChatFilter.vue feat: Dark Mode (#7471) 2023-07-21 22:10:25 +05:30
ConversationAdvancedFilter.vue feat: Track the usage of query operator (#7821) 2023-08-30 08:28:05 +05:30
ConversationBasicFilter.vue feat: Remove the usage of clickAway mixin with directive (#9323) 2024-04-30 10:35:14 +05:30
ConversationBox.vue feat: Add inbox view under feature flag on the sidebar (#9049) 2024-03-07 18:27:39 -08:00
ConversationCard.vue fix: Right click Snooze is not working (#9498) 2024-05-22 13:03:49 +05:30
ConversationHeader.vue feat: Linear front end (#9491) 2024-05-23 11:58:24 +05:30
EmailTranscriptModal.vue feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
FilterItem.vue feat: Dark Mode (#7471) 2023-07-21 22:10:25 +05:30
Message.vue chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
MessagePreview.vue feat: Add sticker support in Line channel (#8488) 2023-12-10 20:45:44 -08:00
MessageSignatureMissingAlert.vue feat: Adds message signature for new email conversations (#7946) 2023-10-03 13:45:28 +05:30
MessagesView.vue chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
MoreActions.vue chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
OnboardingView.vue feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
PriorityMark.vue feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
ReplyBox.vue chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
ReplyEmailHead.vue fix: Email input style issue (#9342) 2024-05-02 21:32:45 +05:30
ReplyToMessage.vue feat: Implement message bubble reply to (#8068) 2023-10-11 22:04:12 +05:30
TagAgents.vue refactor: handling keyboard shortcuts (#9242) 2024-04-26 15:41:02 +05:30
VariableList.vue chore: Hide the variable list if its empty. (#8704) 2024-01-15 15:45:36 +05:30