@connorpham/live-chat-widget 7.0.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -30,10 +30,10 @@ Once the widget is built, you can easily embed it into any webpage. Here's an ex
30
30
  <link rel="stylesheet" href="./style.css">
31
31
  <script src="<<WIDGET URL>>/cellcast-bot-widget.umd.js"></script>
32
32
 
33
- <div id="cellcast-chat-widget"></div>
33
+ <div id="live-chat-widget"></div>
34
34
  <script>
35
35
  const el = React.createElement;
36
- const domContainer = document.getElementById('cellcast-chat-widget');
36
+ const domContainer = document.getElementById('live-chat-widget');
37
37
  ReactDOM.render(
38
38
  el(CellcastBotWidget.ChatWidget, {
39
39
  apiUrl: 'https://api.yourdomain.com',
@@ -54,13 +54,13 @@ To prevent the website css from conflicting with the chat widget css, we can lev
54
54
  <script crossorigin src="https://cdn.jsdelivr.net/npm/react-dom@17/umd/react-dom.production.min.js"></script>
55
55
  <script src="<<WIDGET URL>>/cellcast-bot-widget.umd.js"></script>
56
56
 
57
- <div id="cellcast-chat-widget"></div>
57
+ <div id="live-chat-widget"></div>
58
58
  <script>
59
59
  // Create the shadow root and attach it to the widget container
60
60
  const createElement = (tag, props = {}) => Object.assign(document.createElement(tag), props);
61
61
  const shadowContainer = createElement("div");
62
62
  document
63
- .getElementById('cellcast-chat-widget')
63
+ .getElementById('live-chat-widget')
64
64
  .attachShadow({ mode: 'open' })
65
65
  .append(
66
66
  shadowContainer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connorpham/live-chat-widget",
3
- "version": "7.0.0",
3
+ "version": "8.0.0",
4
4
  "description": "Live Chat Widget",
5
5
  "author": "Live",
6
6
  "license": "AGPL-3.0-only",