Skip to content

Commit a969b54

Browse files
authored
chore(watsonx): update to watsonx branding [skip ci] (#22)
1 parent d334555 commit a969b54

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
22
[![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)
33

4-
# Watson Assistant web chat with React
4+
# IBM watsonx Assistant web chat with React
55

6-
`@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.
6+
`@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.
77

88
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.
99

@@ -161,9 +161,9 @@ function App() {
161161
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.
162162

163163
## Additional resources
164-
- [Watson Assistant](https://www.ibm.com/cloud/watson-assistant)
165-
- [Watson Assistant web chat feature documentation](https://cloud.ibm.com/docs/watson-assistant?topic=watson-assistant-deploy-web-chat)
166-
- [Watson Assistant web chat API documentation](https://web-chat.global.assistant.watson.cloud.ibm.com/docs.html?to=api-overview)
164+
- [IBM watsonx Assistant](https://www.ibm.com/cloud/watson-assistant)
165+
- [IBM watsonx Assistant web chat feature documentation](https://cloud.ibm.com/docs/watson-assistant?topic=watson-assistant-deploy-web-chat)
166+
- [IBM watsonx Assistant web chat API documentation](https://web-chat.global.assistant.watson.cloud.ibm.com/docs.html?to=api-overview)
167167

168168
## License
169169

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"keywords": [
7777
"ibm",
7878
"watson",
79-
"watson assistant",
79+
"IBM watsonx Assistant",
8080
"web chat",
8181
"chat",
8282
"react"

src/WebChatContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ function logger(webChatConfig: WebChatConfig, ...args: unknown[]) {
236236
if (debug) {
237237
const namespaceLabel = webChatConfig?.namespace ? `: Namespace ${webChatConfig.namespace}` : '';
238238
// eslint-disable-next-line no-console
239-
console.log(`[Watson Assistant WebChatContainer${namespaceLabel}]`, ...args);
239+
console.log(`[IBM watsonx Assistant WebChatContainer${namespaceLabel}]`, ...args);
240240
}
241241
}
242242

src/withWebChat.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function withWebChat(passedConfig: WithWebChatConfig = {}) {
8080
if (config.debug) {
8181
// eslint-disable-next-line no-console
8282
console.log(
83-
`[Watson Assistant withWebChat${
83+
`[IBM watsonx Assistant withWebChat${
8484
webChatConfig && webChatConfig.namespace ? `: Namespace "${webChatConfig.namespace}"` : ''
8585
}]`,
8686
args,
@@ -102,7 +102,7 @@ function withWebChat(passedConfig: WithWebChatConfig = {}) {
102102
if (instance) {
103103
// eslint-disable-next-line no-console
104104
console.warn(
105-
'[Watson Assistant withWebChat] createWebChatInstance has already been called... destroying previous instance.',
105+
'[IBM watsonx Assistant withWebChat] createWebChatInstance has already been called... destroying previous instance.',
106106
);
107107
instance.destroy();
108108
}
@@ -159,7 +159,7 @@ function withWebChat(passedConfig: WithWebChatConfig = {}) {
159159
if (isMounted) {
160160
logger('web chat script failed to load. createWebChatInstance will reject.');
161161
webChatLoadedPromise.current.reject(
162-
`[Watson Assistant withWebChat${
162+
`[IBM watsonx Assistant withWebChat${
163163
webChatConfig && webChatConfig.namespace ? `: Namespace "${webChatConfig.namespace}"` : ''
164164
}] web chat failed to load.`,
165165
);

0 commit comments

Comments
 (0)