@digipair/skill-web-chatbot 0.33.18 → 0.34.2

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.cjs2.js CHANGED
@@ -36822,14 +36822,14 @@ function indent(str, spaces) {
36822
36822
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
36823
36823
  // match is required
36824
36824
  if (!match) {
36825
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
36825
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
36826
36826
  v: nextMatch1
36827
36827
  };
36828
36828
  }
36829
36829
  var token = match.token, offset = match.offset;
36830
36830
  i1 += offset;
36831
36831
  if (token === " ") {
36832
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
36832
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
36833
36833
  }
36834
36834
  tokens1 = _to_consumable_array$c(tokens1).concat([
36835
36835
  token
@@ -36848,7 +36848,7 @@ function indent(str, spaces) {
36848
36848
  if (contextKeys.some(function(el) {
36849
36849
  return el.startsWith(name);
36850
36850
  })) {
36851
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
36851
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
36852
36852
  }
36853
36853
  if (dateTimeIdentifiers.some(function(el) {
36854
36854
  return el === name;
@@ -36867,9 +36867,9 @@ function indent(str, spaces) {
36867
36867
  if (dateTimeIdentifiers.some(function(el) {
36868
36868
  return el.startsWith(name);
36869
36869
  })) {
36870
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
36870
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
36871
36871
  }
36872
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
36872
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
36873
36873
  v: nextMatch1
36874
36874
  };
36875
36875
  };
@@ -56806,6 +56806,10 @@ class ChatElement extends s$3 {
56806
56806
  this.requestUpdate();
56807
56807
  return;
56808
56808
  }
56809
+ if (this.currentBoost && !this.canAnswerToMessageBoost(this.currentBoost) || this.loading || (!this.messageInput || this.messageInput.value === '') && (!this.currentBoost || this.currentBoost.required) || !this.hasInputsValues()) {
56810
+ this.requestUpdate();
56811
+ return;
56812
+ }
56809
56813
  event.preventDefault();
56810
56814
  this.addMessage(this.messageInput.value.trim());
56811
56815
  }
package/index.esm2.js CHANGED
@@ -56786,6 +56786,10 @@ class ChatElement extends s$3 {
56786
56786
  this.requestUpdate();
56787
56787
  return;
56788
56788
  }
56789
+ if (this.currentBoost && !this.canAnswerToMessageBoost(this.currentBoost) || this.loading || (!this.messageInput || this.messageInput.value === '') && (!this.currentBoost || this.currentBoost.required) || !this.hasInputsValues()) {
56790
+ this.requestUpdate();
56791
+ return;
56792
+ }
56789
56793
  event.preventDefault();
56790
56794
  this.addMessage(this.messageInput.value.trim());
56791
56795
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-chatbot",
3
- "version": "0.33.18",
3
+ "version": "0.34.2",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",