iachat/app
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
..
actions fix: downcase email before finding (#8921) 2024-02-21 18:51:00 +05:30
assets chore: Reorganize the installation config settings (#8794) 2024-01-31 16:48:42 +04:00
builders feat: Improve Report API performance (#9476) 2024-05-22 17:34:24 -07:00
channels chore: Sentry issues (#4623) 2022-05-06 14:50:55 +05:30
controllers feat: new re-authorization flow for Microsoft (#9510) 2024-05-23 16:03:40 +05:30
dashboards feat: Super admin design improvements (#8517) 2023-12-08 19:40:35 -08:00
dispatchers fix: assignee_changed callback not getting triggered during conversation creation (#9334) 2024-05-06 11:48:17 -07:00
drops feat: Add the support for custom attributes in message variables (#8511) 2023-12-08 14:13:35 -08:00
fields feat: Supports masking tokens in super admin (#6491) 2023-02-21 17:50:55 +05:30
finders feat: Conversation API to return applied_sla and sla_events (#9174) 2024-04-01 23:30:07 +05:30
helpers feat: Improve Report API performance (#9476) 2024-05-22 17:34:24 -07:00
javascript chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
jobs feat: Add support for bulk snooze until (#9360) 2024-05-08 08:55:31 +05:30
listeners chore: Handle conversation participation creation race condition error (#9449) 2024-05-10 12:21:23 -07:00
mailboxes chore: Handle invalid email address in IMAP channel (#9450) 2024-05-10 08:55:26 +05:30
mailers chore: fix sla email notifications (#9192) 2024-04-04 21:16:49 +05:30
models feat: new re-authorization flow for Microsoft (#9510) 2024-05-23 16:03:40 +05:30
policies feat: Add endpoints to retrieve summary of team/agents over a period of time (#8916) 2024-02-13 15:44:40 +05:30
presenters feat: Conversation API to return applied_sla and sla_events (#9174) 2024-04-01 23:30:07 +05:30
services feat: move Azure config to installation_config (#9481) 2024-05-20 11:52:42 +05:30
views feat: add reauthorization banner for Facebook (#9553) 2024-05-30 09:41:04 +05:30
workers fix: Capture delivery errors to avoid false positives (#8790) 2024-01-26 14:22:18 +04:00
test-matchers.js Initial testing with jest (#133) 2019-10-15 00:18:46 +05:30