@digipair/skill-web-chatbot 0.33.18 → 0.34.1
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 +9 -5
- package/index.esm2.js +9 -5
- package/package.json +1 -1
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
|
|
36825
|
+
return nextMatch = nextMatch1, i = i1, 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
|
|
36832
|
+
return nextMatch = nextMatch1, i = i1, 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
|
|
36851
|
+
return nextMatch = nextMatch1, i = i1, 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
|
|
36870
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
36871
36871
|
}
|
|
36872
|
-
return
|
|
36872
|
+
return nextMatch = nextMatch1, i = i1, 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
|
@@ -36802,14 +36802,14 @@ function indent(str, spaces) {
|
|
|
36802
36802
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
36803
36803
|
// match is required
|
|
36804
36804
|
if (!match) {
|
|
36805
|
-
return
|
|
36805
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
36806
36806
|
v: nextMatch1
|
|
36807
36807
|
};
|
|
36808
36808
|
}
|
|
36809
36809
|
var token = match.token, offset = match.offset;
|
|
36810
36810
|
i1 += offset;
|
|
36811
36811
|
if (token === " ") {
|
|
36812
|
-
return
|
|
36812
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
36813
36813
|
}
|
|
36814
36814
|
tokens1 = _to_consumable_array$c(tokens1).concat([
|
|
36815
36815
|
token
|
|
@@ -36828,7 +36828,7 @@ function indent(str, spaces) {
|
|
|
36828
36828
|
if (contextKeys.some(function(el) {
|
|
36829
36829
|
return el.startsWith(name);
|
|
36830
36830
|
})) {
|
|
36831
|
-
return
|
|
36831
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
36832
36832
|
}
|
|
36833
36833
|
if (dateTimeIdentifiers.some(function(el) {
|
|
36834
36834
|
return el === name;
|
|
@@ -36847,9 +36847,9 @@ function indent(str, spaces) {
|
|
|
36847
36847
|
if (dateTimeIdentifiers.some(function(el) {
|
|
36848
36848
|
return el.startsWith(name);
|
|
36849
36849
|
})) {
|
|
36850
|
-
return
|
|
36850
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
36851
36851
|
}
|
|
36852
|
-
return
|
|
36852
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
36853
36853
|
v: nextMatch1
|
|
36854
36854
|
};
|
|
36855
36855
|
};
|
|
@@ -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
|
}
|