microsoft / microsoft/BotFramework-WebChat
Expose dispatch action type constants
@compulim is already working on this.
Since Sep 18, 2019.
- Dominant language
- HTML
- Stars
- 1.8k
- Forks
- 1.6k
- Avg merge
- 22h 58m
- Merged PRs (30d)
- 2
Description
Feature Request
Describe the suggestion or request in detail
In webchat customization scenarios, to set dispatch events or to intercept events using a middleware, the type has to be set to a string like WEB_CHAT/SET_TEXT.
It would be great if you could expose the list of supported events as part of a constant so that we don't have strings sprayed across the project and devs can check which events are supported.
Also, If the text associated with a particular event is changed here for some reason, devs wouldn't have to update it in their projects too.
[Enhancement]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.