Skip to content

Commit 84ba0aa

Browse files
committed
fix: made some changes to fix custom elements not being sized correctly
BREAKING CHANGE: Classnames and styles are now injected by default when using WebChatCustomElement.
1 parent 16008a6 commit 84ba0aa

File tree

7 files changed

+106
-266
lines changed

7 files changed

+106
-266
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ module.exports = {
4747
'react/require-default-props': 'off',
4848
'react/jsx-props-no-spreading': 'off',
4949
'no-use-before-define': 'off',
50+
'import/no-extraneous-dependencies': 'off',
5051
// Airbnb allows arrow functions but not regular functions which doesn't make any sense.
5152
'react/jsx-no-bind': 'off',
5253
// This rule is annoying and sometimes just wrong.

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ The primary utility provided by this library is the `WebChatContainer` functiona
1414
- [Using WebChatContainer](#using-webchatcontainer)
1515
- [WebChatCustomElement](#webchatcustomelement)
1616
- [API](#api)
17-
- [withWebChat](#withWebChat)
1817
- [Additional resources](#additional-resources)
1918
- [License](#license)
2019

@@ -200,10 +199,6 @@ function App() {
200199
}
201200
```
202201

203-
## withWebChat
204-
205-
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.
206-
207202
## Additional resources
208203
- [IBM watsonx Assistant](https://www.ibm.com/cloud/watson-assistant)
209204
- [IBM watsonx Assistant web chat feature documentation](https://cloud.ibm.com/docs/watson-assistant?topic=watson-assistant-deploy-web-chat)

WITH_WEB_CHAT.MD

Lines changed: 0 additions & 243 deletions
This file was deleted.

0 commit comments

Comments
 (0)