@enegelai/bot-widget 1.12.4 → 1.12.5

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/dist/index.es.js CHANGED
@@ -848,7 +848,7 @@ class L extends kt {
848
848
  }, this.botSettingsRetryTimeout * 1e3), this.botSettingsRetryTimeout = this.botSettingsRetryTimeout * 2;
849
849
  return;
850
850
  }
851
- A.info("Got bot settings - bot is enabled", r), this.disabled = !1, this.setting.welcomeMessage = (r == null ? void 0 : r.welcomeMessage) || "How can I help ?", this.setting.engageMessage = (r == null ? void 0 : r.engageMessage) || "How can I help ?", this.setting.engageTimeout = (r == null ? void 0 : r.engageTimeout) || 5, this.setting.splitMessagesAtBreak = "splitMessagesAtBreak" in r ? r.splitMessagesAtBreak : !1, this.setting.feedbackEnabled = "feedbackEnabled" in r ? r.feedbackEnabled : !1, this.setting.uploadImages = "uploadImages" in r ? r.uploadImages : !1, this.setting.newConversationTimeoutInSec = (r == null ? void 0 : r.newConversationTimeoutInSec) || 86400, this.initConversation(), this.shouldEngage === "true" && setTimeout(() => {
851
+ A.info("Got bot settings - bot is enabled", r), this.disabled = !1, this.setting.welcomeMessage = (r == null ? void 0 : r.welcomeMessage) || "How can I help ?", this.setting.engageMessage = (r == null ? void 0 : r.engageMessage) || "How can I help ?", this.setting.engageTimeout = (r == null ? void 0 : r.engageTimeout) || 5, this.setting.splitMessagesAtBreak = "splitMessagesAtBreak" in r ? r.splitMessagesAtBreak : !1, this.setting.feedbackEnabled = "feedbackEnabled" in r ? r.feedbackEnabled : !1, this.setting.uploadImages = "uploadImages" in r ? r.uploadImages : !1, this.setting.newConversationTimeoutInSec = (r == null ? void 0 : r.newConversationTimeoutInSec) || 86400, this.setting.enableNotificationSound = "enableNotificationSound" in r ? r.enableNotificationSound : !0, this.initConversation(), this.shouldEngage === "true" && setTimeout(() => {
852
852
  this.showEngagePopup();
853
853
  }, this.setting.engageTimeout * 1e3);
854
854
  }
@@ -966,6 +966,8 @@ class L extends kt {
966
966
  this.open || (A.info("Engaging User !"), this.engage = !0, this.playAudioNotification());
967
967
  }
968
968
  playAudioNotification() {
969
+ if (!this.setting.enableNotificationSound)
970
+ return;
969
971
  const e = (r) => {
970
972
  const f = new Uint8Array(r.length / 2);
971
973
  for (let w = 0; w < f.length; w++)
@@ -1472,7 +1474,8 @@ O([
1472
1474
  splitMessagesAtBreak: !1,
1473
1475
  feedbackEnabled: !1,
1474
1476
  uploadImages: !1,
1475
- newConversationTimeoutInSec: 86400
1477
+ newConversationTimeoutInSec: 86400,
1478
+ enableNotificationSound: !0
1476
1479
  }
1477
1480
  })
1478
1481
  ], L.prototype, "setting");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enegelai/bot-widget",
3
- "version": "1.12.4",
3
+ "version": "1.12.5",
4
4
  "description": "Enegel.ai Bot Widget",
5
5
  "scripts": {
6
6
  "dev": "vite",