iachat/app/javascript/dashboard/components/widgets
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
..
chart feat: Update reports UI to make it better (#7544) 2023-07-19 12:12:15 -07:00
conversation chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
DashboardApp fix: Update duplicate ids for dashboard app frame (#8077) 2023-10-10 16:46:32 +05:30
FilterInput feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
forms fix: Dashboard phone number input country undefined in onSelectCountry (#9473) 2024-05-16 09:16:02 +05:30
mentions refactor: handling keyboard shortcuts (#9242) 2024-04-26 15:41:02 +05:30
modal feat: Remove the usage of clickAway mixin with directive (#9323) 2024-04-30 10:35:14 +05:30
stories feat: Add component for grouped thumbnails (#5796) 2022-11-03 22:38:45 -07:00
WootWriter chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
AIAssistanceButton.vue chore: Replace eventBus with mitt.js [CW-3275] (#9539) 2024-05-31 15:50:36 +05:30
AIAssistanceCTAButton.vue feat: Add CTAs for AI features (#7538) 2023-08-16 08:39:41 +05:30
AIAssistanceModal.vue feat: Dark Mode (#7471) 2023-07-21 22:10:25 +05:30
AICTAModal.vue feat: Add CTAs for AI features (#7538) 2023-08-16 08:39:41 +05:30
AILoader.vue feat: update tool-chain to latest (#7975) 2023-09-27 14:02:34 +05:30
AttachmentsPreview.vue fix: Audio attachment issues (#9260) 2024-04-25 13:42:46 +05:30
AutomationActionInput.vue feat: Update dependencies and fix import syntax for Vite migration (#7959) 2023-09-21 17:55:54 +05:30
AutomationActionTeamMessageInput.vue chore: Update self-closing tag eslint config (#4826) 2022-06-10 19:29:52 +05:30
AutomationFileInput.vue feat: Update dependencies and fix import syntax for Vite migration (#7959) 2023-09-21 17:55:54 +05:30
Avatar.vue feat: Dark Mode (#7471) 2023-07-21 22:10:25 +05:30
BackButton.vue feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
ChannelItem.vue feat: Update dependencies and fix import syntax for Vite migration (#7959) 2023-09-21 17:55:54 +05:30
ChatTypeTabs.vue refactor: handling keyboard shortcuts (#9242) 2024-04-26 15:41:02 +05:30
ColorPicker.vue feat: Remove the usage of clickAway mixin with directive (#9323) 2024-04-30 10:35:14 +05:30
EmptyState.vue fix: Update help center styles, fix routing issues (#9061) 2024-03-04 09:57:14 -08:00
FeatureToggle.vue feat: Add the ability for the agents to execute a macro (#5698) 2022-10-24 20:33:59 -07:00
InboxDropdownItem.stories.js feat: Adds new inbox selector with more info for new message modal [cw-1358] (#6823) 2023-04-19 23:02:50 +05:30
InboxDropdownItem.vue feat: Dark Mode (#7471) 2023-07-21 22:10:25 +05:30
InboxName.vue feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
LabelSelector.stories.js feat: Ability to add label for contact page (#2350) 2021-06-14 10:36:00 +05:30
LabelSelector.vue feat: Remove the usage of clickAway mixin with directive (#9323) 2024-04-30 10:35:14 +05:30
LoadingState.vue feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
SettingIntroBanner.stories.js chore: Cleanup page-top-bar style conflicts (#2407) 2021-06-10 09:35:15 +05:30
SettingIntroBanner.vue feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
ShowMore.vue feat: Allow agent-bots to be created from the UI (#4153) 2022-11-17 22:15:58 -08:00
TableFooter.vue fix: Remove background color from table footer (#9213) 2024-04-09 15:29:05 +10:00
TableFooterPagination.vue feat: SLA report filter (#9218) 2024-04-12 11:03:18 +05:30
TableFooterResults.vue feat: Table footer design updates (#9194) 2024-04-09 10:50:41 +10:00
TableHeaderCell.vue feat: SLA reports view (#9189) 2024-04-09 10:14:36 +10:00
Thumbnail.spec.js feat: Improve image loading for thumbnails (#5823) 2022-11-08 21:05:13 -08:00
Thumbnail.stories.js feat: Support square variants of thumbnail and avatar components (#5003) 2022-07-09 14:03:55 +05:30
Thumbnail.vue feat: Remove Foundation in favor of Tailwind (#8984) 2024-02-28 13:56:28 +05:30
ThumbnailGroup.vue feat: Update dependencies and fix import syntax for Vite migration (#7959) 2023-09-21 17:55:54 +05:30
UserAvatarWithName.vue fix: Update the order of display of the CSAT ratings (#7805) 2023-08-27 07:39:06 +05:30
VideoCallButton.vue feat: Add video call option with Dyte in the dashboard (#6207) 2023-01-09 11:49:27 -08:00