@enegelai/bot-widget 1.7.4 → 1.7.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
@@ -6166,10 +6166,10 @@ let H = class extends Q {
6166
6166
  }
6167
6167
  }
6168
6168
  _addMessageHandler(a) {
6169
- var c;
6169
+ var i;
6170
6170
  console.log("_addMessageHandler called", a);
6171
- const e = a.detail;
6172
- if (!((c = e == null ? void 0 : e.data) != null && c.text) || typeof e.data.text != "string" || e.data.text === "") {
6171
+ const e = a.detail, c = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.text) || null;
6172
+ if (!c || typeof c != "string" || c.trim() === "") {
6173
6173
  console.log("_addMessageHandler: input text is empty, ignored", a);
6174
6174
  return;
6175
6175
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enegelai/bot-widget",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "description": "Enegel.ai Bot Widget",
5
5
  "scripts": {
6
6
  "dev": "vite",