Skip to content

Commit

Permalink
chore(watsonx): update to watsonx branding [skip ci] (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwinters committed Oct 5, 2023
1 parent d334555 commit a969b54
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Build and Test](https://github.com/watson-developer-cloud/assistant-web-chat-react/actions/workflows/build-test.yml/badge.svg)](https://github.com/watson-developer-cloud/assistant-web-chat-react/actions/workflows/build-test.yml)

# Watson Assistant web chat with React
# IBM watsonx Assistant web chat with React

`@ibm-watson/assistant-web-chat-react` is a React library to extend the [web chat](https://cloud.ibm.com/docs/watson-assistant?topic=watson-assistant-deploy-web-chat) feature of [IBM Watson Assistant](https://www.ibm.com/cloud/watson-assistant) within your React application. This makes it easier to provide user-defined response types written in React, add content to custom elements with React, have the web chat and your site communicate more easily, and more.
`@ibm-watson/assistant-web-chat-react` is a React library to extend the [web chat](https://cloud.ibm.com/docs/watson-assistant?topic=watson-assistant-deploy-web-chat) feature of [IBM watsonx Assistant](https://www.ibm.com/cloud/watson-assistant) within your React application. This makes it easier to provide user-defined response types written in React, add content to custom elements with React, have the web chat and your site communicate more easily, and more.

The primary utility provided by this library is the `WebChatContainer` functional component. This component will load and render an instance of web chat when it is mounted and destroy that instance when unmounted.

Expand Down Expand Up @@ -161,9 +161,9 @@ function App() {
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
- [Watson Assistant](https://www.ibm.com/cloud/watson-assistant)
- [Watson Assistant web chat feature documentation](https://cloud.ibm.com/docs/watson-assistant?topic=watson-assistant-deploy-web-chat)
- [Watson Assistant web chat API documentation](https://web-chat.global.assistant.watson.cloud.ibm.com/docs.html?to=api-overview)
- [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)
- [IBM watsonx Assistant web chat API documentation](https://web-chat.global.assistant.watson.cloud.ibm.com/docs.html?to=api-overview)

## License

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"keywords": [
"ibm",
"watson",
"watson assistant",
"IBM watsonx Assistant",
"web chat",
"chat",
"react"
Expand Down
2 changes: 1 addition & 1 deletion src/WebChatContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function logger(webChatConfig: WebChatConfig, ...args: unknown[]) {
if (debug) {
const namespaceLabel = webChatConfig?.namespace ? `: Namespace ${webChatConfig.namespace}` : '';
// eslint-disable-next-line no-console
console.log(`[Watson Assistant WebChatContainer${namespaceLabel}]`, ...args);
console.log(`[IBM watsonx Assistant WebChatContainer${namespaceLabel}]`, ...args);
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/withWebChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function withWebChat(passedConfig: WithWebChatConfig = {}) {
if (config.debug) {
// eslint-disable-next-line no-console
console.log(
`[Watson Assistant withWebChat${
`[IBM watsonx Assistant withWebChat${
webChatConfig && webChatConfig.namespace ? `: Namespace "${webChatConfig.namespace}"` : ''
}]`,
args,
Expand All @@ -102,7 +102,7 @@ function withWebChat(passedConfig: WithWebChatConfig = {}) {
if (instance) {
// eslint-disable-next-line no-console
console.warn(
'[Watson Assistant withWebChat] createWebChatInstance has already been called... destroying previous instance.',
'[IBM watsonx Assistant withWebChat] createWebChatInstance has already been called... destroying previous instance.',
);
instance.destroy();
}
Expand Down Expand Up @@ -159,7 +159,7 @@ function withWebChat(passedConfig: WithWebChatConfig = {}) {
if (isMounted) {
logger('web chat script failed to load. createWebChatInstance will reject.');
webChatLoadedPromise.current.reject(
`[Watson Assistant withWebChat${
`[IBM watsonx Assistant withWebChat${
webChatConfig && webChatConfig.namespace ? `: Namespace "${webChatConfig.namespace}"` : ''
}] web chat failed to load.`,
);
Expand Down

0 comments on commit a969b54

Please sign in to comment.