Skip to content

Commit

Permalink
fix: made some changes to fix custom elements not being sized correctly
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Classnames and styles are now injected by default when using WebChatCustomElement.
  • Loading branch information
TazmanianDI committed Jul 16, 2024
1 parent 16008a6 commit 84ba0aa
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 266 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module.exports = {
'react/require-default-props': 'off',
'react/jsx-props-no-spreading': 'off',
'no-use-before-define': 'off',
'import/no-extraneous-dependencies': 'off',
// Airbnb allows arrow functions but not regular functions which doesn't make any sense.
'react/jsx-no-bind': 'off',
// This rule is annoying and sometimes just wrong.
Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ The primary utility provided by this library is the `WebChatContainer` functiona
- [Using WebChatContainer](#using-webchatcontainer)
- [WebChatCustomElement](#webchatcustomelement)
- [API](#api)
- [withWebChat](#withWebChat)
- [Additional resources](#additional-resources)
- [License](#license)

Expand Down Expand Up @@ -200,10 +199,6 @@ function App() {
}
```

## withWebChat

The [withWebChat](WITH_WEB_CHAT.MD) function is an older function that is used for loading web chat. It is now deprecated in favor of using the `WebChatContainer` component instead.

## Additional resources
- [IBM watsonx Assistant](https://www.ibm.com/cloud/watson-assistant)
- [IBM watsonx Assistant web chat feature documentation](https://cloud.ibm.com/docs/watson-assistant?topic=watson-assistant-deploy-web-chat)
Expand Down
243 changes: 0 additions & 243 deletions WITH_WEB_CHAT.MD

This file was deleted.

Loading

0 comments on commit 84ba0aa

Please sign in to comment.