|
7 | 7 |
|
8 | 8 | An npm module that allows you to mitigate the negative performance and user |
9 | 9 | experience impact of chat tools. `react-live-chat-loader` shows a fake widget |
10 | | -until the page has become idle or users are ready to interact with chat. Currently works with [Intercom](#intercom), [Help Scout](#help-scout), [Drift](#drift), [Messenger](#messenger), [Userlike](#userlike), [Front](#front), [Chatwoot](#chatwoot) and [Hubspot](#hubspot). |
| 10 | +until the page has become idle or users are ready to interact with chat. Currently works with [Intercom](#intercom), [Help Scout](#help-scout), [Drift](#drift), [Messenger](#messenger), [Userlike](#userlike), [Front](#front), [Chatwoot](#chatwoot), [Hubspot](#hubspot) and [Adobe Dynamic Chat](#adobe-dynamic-chat) |
11 | 11 |
|
12 | 12 | Made by the team at [♠ Calibre](https://calibreapp.com/), your performance companion. |
13 | 13 |
|
@@ -417,6 +417,46 @@ You can customise the Hubspot placeholder by passing the following props to the |
417 | 417 |
|
418 | 418 | </details> |
419 | 419 |
|
| 420 | +<details> |
| 421 | +<summary id="adobe-dynamic-chat">Adobe Dynamic Chat</summary> |
| 422 | + |
| 423 | +To use Adobe Dynamic Chat import the `LiveChatLoaderProvider` and set the `provider` prop |
| 424 | +as `adobeDynamicChat` and the props for your instance as found in your Chatbot settings > Installation > Javascript snippet. |
| 425 | + |
| 426 | +For example, your script URL will look something like this: |
| 427 | +`<script src="https://assets.adoberesources.net/loader.js?orgId=ABCD1234ABCD1234ABCD123%40AdobeOrg&instanceId=yourinstance&env=prod&geo=va7"></script>` |
| 428 | + |
| 429 | +Then import the `AdobeDynamicChat` component. |
| 430 | + |
| 431 | +```jsx |
| 432 | +import { LiveChatLoaderProvider, AdobeDynamicChat } from 'react-live-chat-loader' |
| 433 | + |
| 434 | +export default class App extends React.Component { |
| 435 | + render() { |
| 436 | + return ( |
| 437 | + <LiveChatLoaderProvider |
| 438 | + providerKey="ABCD1234ABCD1234ABCD123%40AdobeOrg" // Use "orgId" query parameter found in script URL |
| 439 | + instanceId="yourinstance" // Use "instanceId" query parameter found in script URL |
| 440 | + env="prod" // Use "env" query parameter found in script URL |
| 441 | + geo="va7" // Use "geo" query parameter found in script URL |
| 442 | + provider="adobeDynamicChat" |
| 443 | + > |
| 444 | + /* ... */ |
| 445 | + <AdobeDynamicChat /> |
| 446 | + </LiveChatLoaderProvider> |
| 447 | + ) |
| 448 | + } |
| 449 | +} |
| 450 | +``` |
| 451 | + |
| 452 | +You can customise the Adobe Dynamic Chat placeholder icon by passing the following props to the `AdobeDynamicChat` component: |
| 453 | + |
| 454 | +- `color`: The background color of the placeholder widget |
| 455 | +- `containerClass`: Class to be added to the placeholder element, defaults to `live-chat-loader-placeholder` |
| 456 | +- `icon`: Override the default Adobe Dynamic Chat icon, can be any JSX element. |
| 457 | + |
| 458 | +</details> |
| 459 | + |
420 | 460 | ## ➕ Adding a Provider |
421 | 461 |
|
422 | 462 | To add a new live chat provider, follow the steps in [Contributing: Adding a Provider](CONTRIBUTING.md#-adding-a-provider). |
@@ -464,6 +504,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d |
464 | 504 | <td align="center"><a href="https://github.com/lauGutierrezz"><img src="https://avatars.githubusercontent.com/u/52488696?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Laura Gutiérrez López de la Franca</b></sub></a><br /><a href="https://github.com/calibreapp/react-live-chat-loader/commits?author=lauGutierrezz" title="Code">💻</a></td> |
465 | 505 | <td align="center"><a href="https://github.com/38ri581oq480"><img src="https://avatars.githubusercontent.com/u/64654807?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kirill Vakalov</b></sub></a><br /><a href="https://github.com/calibreapp/react-live-chat-loader/commits?author=38ri581oq480" title="Code">💻</a></td> |
466 | 506 | <td align="center"><a href="http://luisrudge.net"><img src="https://avatars.githubusercontent.com/u/941075?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Luís Rudge</b></sub></a><br /><a href="https://github.com/calibreapp/react-live-chat-loader/commits?author=luisrudge" title="Code">💻</a></td> |
| 507 | + <td align="center"><a href="https://github.com/enjoyjeremy-bc"><img src="https://avatars.githubusercontent.com/u/260613?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jeremy Adam</b></sub></a><br /><a href="https://github.com/calibreapp/react-live-chat-loader/commits?author=enjoyjeremy-bc" title="Code">💻</a></td> |
467 | 508 | </tr> |
468 | 509 | </table> |
469 | 510 |
|
|
0 commit comments