@digipair/skill-web-chatbot 0.33.4 → 0.33.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/index.cjs2.js +15 -9
- package/index.esm2.js +15 -9
- 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 tokens = tokens1,
|
|
36825
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
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 tokens = tokens1,
|
|
36832
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "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 tokens = tokens1,
|
|
36851
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "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 tokens = tokens1,
|
|
36870
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
36871
36871
|
}
|
|
36872
|
-
return tokens = tokens1,
|
|
36872
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
36873
36873
|
v: nextMatch1
|
|
36874
36874
|
};
|
|
36875
36875
|
};
|
|
@@ -58715,8 +58715,9 @@ class ChatbotElement extends s$3 {
|
|
|
58715
58715
|
container.scrollTop = container.scrollHeight;
|
|
58716
58716
|
}
|
|
58717
58717
|
async execute(boost, message) {
|
|
58718
|
+
var _boost_command_properties_input, _boost_command_properties, _boost_command;
|
|
58718
58719
|
this.loading = true;
|
|
58719
|
-
if (message || boost.command.properties.input.prompt) {
|
|
58720
|
+
if (message || (boost == null ? void 0 : (_boost_command = boost.command) == null ? void 0 : (_boost_command_properties = _boost_command.properties) == null ? void 0 : (_boost_command_properties_input = _boost_command_properties.input) == null ? void 0 : _boost_command_properties_input.prompt)) {
|
|
58720
58721
|
this.messages.push({
|
|
58721
58722
|
role: 'user',
|
|
58722
58723
|
content: message || boost.command.properties.input.prompt
|
|
@@ -58725,9 +58726,11 @@ class ChatbotElement extends s$3 {
|
|
|
58725
58726
|
this.chatbot.requestUpdate();
|
|
58726
58727
|
const command = (boost == null ? void 0 : boost.command) ? boost.command : this.CHAT_COMMAND(this.code, boost == null ? void 0 : boost.reasoning);
|
|
58727
58728
|
try {
|
|
58729
|
+
var _pins_properties_input;
|
|
58728
58730
|
const pins = JSON.parse(JSON.stringify(command));
|
|
58731
|
+
pins.properties = pins.properties || {};
|
|
58729
58732
|
pins.properties.input = _extends({}, pins.properties.input || {}, {
|
|
58730
|
-
prompt: message || pins.properties.input.prompt,
|
|
58733
|
+
prompt: message || ((_pins_properties_input = pins.properties.input) == null ? void 0 : _pins_properties_input.prompt),
|
|
58731
58734
|
inputs: this.chatbot.inputs,
|
|
58732
58735
|
userId: this.userId,
|
|
58733
58736
|
step: boost == null ? void 0 : boost.step,
|
|
@@ -59138,8 +59141,9 @@ class DigipairFullElement extends s$3 {
|
|
|
59138
59141
|
container.scrollTop = container.scrollHeight;
|
|
59139
59142
|
}
|
|
59140
59143
|
async execute(boost, message) {
|
|
59144
|
+
var _boost_command_properties_input, _boost_command_properties, _boost_command;
|
|
59141
59145
|
this.loading = true;
|
|
59142
|
-
if (message || boost.command.properties.input.prompt) {
|
|
59146
|
+
if (message || (boost == null ? void 0 : (_boost_command = boost.command) == null ? void 0 : (_boost_command_properties = _boost_command.properties) == null ? void 0 : (_boost_command_properties_input = _boost_command_properties.input) == null ? void 0 : _boost_command_properties_input.prompt)) {
|
|
59143
59147
|
this.messages.push({
|
|
59144
59148
|
role: 'user',
|
|
59145
59149
|
content: message || boost.command.properties.input.prompt
|
|
@@ -59148,9 +59152,11 @@ class DigipairFullElement extends s$3 {
|
|
|
59148
59152
|
this.chatbot.requestUpdate();
|
|
59149
59153
|
const command = (boost == null ? void 0 : boost.command) ? boost.command : this.CHAT_COMMAND(this.code, boost == null ? void 0 : boost.reasoning);
|
|
59150
59154
|
try {
|
|
59155
|
+
var _pins_properties_input;
|
|
59151
59156
|
const pins = JSON.parse(JSON.stringify(command));
|
|
59157
|
+
pins.properties = pins.properties || {};
|
|
59152
59158
|
pins.properties.input = _extends({}, pins.properties.input || {}, {
|
|
59153
|
-
prompt: message || pins.properties.input.prompt,
|
|
59159
|
+
prompt: message || ((_pins_properties_input = pins.properties.input) == null ? void 0 : _pins_properties_input.prompt),
|
|
59154
59160
|
inputs: this.chatbot.inputs,
|
|
59155
59161
|
userId: this.userId,
|
|
59156
59162
|
step: boost == null ? void 0 : boost.step,
|
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 tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
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 tokens = tokens1, nextMatch = nextMatch1, i = i1, "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 tokens = tokens1, nextMatch = nextMatch1, i = i1, "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 tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
36851
36851
|
}
|
|
36852
|
-
return
|
|
36852
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
36853
36853
|
v: nextMatch1
|
|
36854
36854
|
};
|
|
36855
36855
|
};
|
|
@@ -58695,8 +58695,9 @@ class ChatbotElement extends s$3 {
|
|
|
58695
58695
|
container.scrollTop = container.scrollHeight;
|
|
58696
58696
|
}
|
|
58697
58697
|
async execute(boost, message) {
|
|
58698
|
+
var _boost_command_properties_input, _boost_command_properties, _boost_command;
|
|
58698
58699
|
this.loading = true;
|
|
58699
|
-
if (message || boost.command.properties.input.prompt) {
|
|
58700
|
+
if (message || (boost == null ? void 0 : (_boost_command = boost.command) == null ? void 0 : (_boost_command_properties = _boost_command.properties) == null ? void 0 : (_boost_command_properties_input = _boost_command_properties.input) == null ? void 0 : _boost_command_properties_input.prompt)) {
|
|
58700
58701
|
this.messages.push({
|
|
58701
58702
|
role: 'user',
|
|
58702
58703
|
content: message || boost.command.properties.input.prompt
|
|
@@ -58705,9 +58706,11 @@ class ChatbotElement extends s$3 {
|
|
|
58705
58706
|
this.chatbot.requestUpdate();
|
|
58706
58707
|
const command = (boost == null ? void 0 : boost.command) ? boost.command : this.CHAT_COMMAND(this.code, boost == null ? void 0 : boost.reasoning);
|
|
58707
58708
|
try {
|
|
58709
|
+
var _pins_properties_input;
|
|
58708
58710
|
const pins = JSON.parse(JSON.stringify(command));
|
|
58711
|
+
pins.properties = pins.properties || {};
|
|
58709
58712
|
pins.properties.input = _extends({}, pins.properties.input || {}, {
|
|
58710
|
-
prompt: message || pins.properties.input.prompt,
|
|
58713
|
+
prompt: message || ((_pins_properties_input = pins.properties.input) == null ? void 0 : _pins_properties_input.prompt),
|
|
58711
58714
|
inputs: this.chatbot.inputs,
|
|
58712
58715
|
userId: this.userId,
|
|
58713
58716
|
step: boost == null ? void 0 : boost.step,
|
|
@@ -59118,8 +59121,9 @@ class DigipairFullElement extends s$3 {
|
|
|
59118
59121
|
container.scrollTop = container.scrollHeight;
|
|
59119
59122
|
}
|
|
59120
59123
|
async execute(boost, message) {
|
|
59124
|
+
var _boost_command_properties_input, _boost_command_properties, _boost_command;
|
|
59121
59125
|
this.loading = true;
|
|
59122
|
-
if (message || boost.command.properties.input.prompt) {
|
|
59126
|
+
if (message || (boost == null ? void 0 : (_boost_command = boost.command) == null ? void 0 : (_boost_command_properties = _boost_command.properties) == null ? void 0 : (_boost_command_properties_input = _boost_command_properties.input) == null ? void 0 : _boost_command_properties_input.prompt)) {
|
|
59123
59127
|
this.messages.push({
|
|
59124
59128
|
role: 'user',
|
|
59125
59129
|
content: message || boost.command.properties.input.prompt
|
|
@@ -59128,9 +59132,11 @@ class DigipairFullElement extends s$3 {
|
|
|
59128
59132
|
this.chatbot.requestUpdate();
|
|
59129
59133
|
const command = (boost == null ? void 0 : boost.command) ? boost.command : this.CHAT_COMMAND(this.code, boost == null ? void 0 : boost.reasoning);
|
|
59130
59134
|
try {
|
|
59135
|
+
var _pins_properties_input;
|
|
59131
59136
|
const pins = JSON.parse(JSON.stringify(command));
|
|
59137
|
+
pins.properties = pins.properties || {};
|
|
59132
59138
|
pins.properties.input = _extends({}, pins.properties.input || {}, {
|
|
59133
|
-
prompt: message || pins.properties.input.prompt,
|
|
59139
|
+
prompt: message || ((_pins_properties_input = pins.properties.input) == null ? void 0 : _pins_properties_input.prompt),
|
|
59134
59140
|
inputs: this.chatbot.inputs,
|
|
59135
59141
|
userId: this.userId,
|
|
59136
59142
|
step: boost == null ? void 0 : boost.step,
|