ss-support-widget 1.0.10 → 1.0.11

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.
package/index.html CHANGED
@@ -6,6 +6,7 @@
6
6
  <title>Widget test</title>
7
7
  <script type="module"
8
8
  src="http://localhost:5173/src/main.ts"
9
+ data-api-base-url="https://localhost:7352"
9
10
  data-client-id="87c06405-7571-4133-b30a-c78f56678af6"></script>
10
11
  </head>
11
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ss-support-widget",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Chatbot widget for customer support",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/main.ts CHANGED
@@ -4,10 +4,9 @@ import { getConversationId } from "./storage/session-storage";
4
4
  import { getThisScript } from "./utils/script-utils";
5
5
  import { getChatBotConfig, setChatBotConfig } from "./services/chatConfiguration";
6
6
 
7
- const apiBaseUrl = "https://localhost:7352"
8
-
9
7
  const script = getThisScript();
10
8
  const clientId = script?.getAttribute("data-client-id") || "";
9
+ const apiBaseUrl = script?.getAttribute("data-api-base-url") || "https://localhost:7352";
11
10
  const chatBotComponentName = `chat-bot-${clientId}`;
12
11
 
13
12
  if (!customElements.get(chatBotComponentName)) {
Binary file