@digipair/skill-web-chatbot 0.8.10 → 0.8.12
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 +7 -4
- package/index.esm2.js +12 -9
- package/package.json +1 -1
package/index.cjs2.js
CHANGED
|
@@ -55796,8 +55796,11 @@ const executePinsList = async (pinsSettingsList, context, options = {
|
|
|
55796
55796
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
|
55797
55797
|
var _settings_conditions;
|
|
55798
55798
|
const settings = pinsSettingsList[i];
|
|
55799
|
-
if (typeof ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.if) !== 'undefined'
|
|
55800
|
-
|
|
55799
|
+
if (typeof ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.if) !== 'undefined') {
|
|
55800
|
+
const preparedSettings = await preparePinsSettings(settings, context);
|
|
55801
|
+
if (!preparedSettings.conditions.if) {
|
|
55802
|
+
continue;
|
|
55803
|
+
}
|
|
55801
55804
|
}
|
|
55802
55805
|
previous = await executePins(settings, _extends({}, context, {
|
|
55803
55806
|
previous,
|
|
@@ -57928,7 +57931,7 @@ class ChatbotElement extends s$3 {
|
|
|
57928
57931
|
});
|
|
57929
57932
|
const detail = await executePinsList([
|
|
57930
57933
|
pins
|
|
57931
|
-
]);
|
|
57934
|
+
], {});
|
|
57932
57935
|
this.pushAssistantMessage(detail.assistant);
|
|
57933
57936
|
if (detail.command && detail.command.length > 0) {
|
|
57934
57937
|
executePinsList(detail.command, {});
|
|
@@ -58369,7 +58372,7 @@ class DigipairFullElement extends s$3 {
|
|
|
58369
58372
|
});
|
|
58370
58373
|
const detail = await executePinsList([
|
|
58371
58374
|
pins
|
|
58372
|
-
]);
|
|
58375
|
+
], {});
|
|
58373
58376
|
this.pushAssistantMessage(detail.assistant);
|
|
58374
58377
|
if (detail.command && detail.command.library && detail.command.element) {
|
|
58375
58378
|
executePinsList([
|
package/index.esm2.js
CHANGED
|
@@ -51862,14 +51862,14 @@ function indent(str, spaces) {
|
|
|
51862
51862
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
51863
51863
|
// match is required
|
|
51864
51864
|
if (!match) {
|
|
51865
|
-
return
|
|
51865
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
51866
51866
|
v: nextMatch1
|
|
51867
51867
|
};
|
|
51868
51868
|
}
|
|
51869
51869
|
var token = match.token, offset = match.offset;
|
|
51870
51870
|
i1 += offset;
|
|
51871
51871
|
if (token === " ") {
|
|
51872
|
-
return
|
|
51872
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
51873
51873
|
}
|
|
51874
51874
|
tokens1 = _to_consumable_array$9(tokens1).concat([
|
|
51875
51875
|
token
|
|
@@ -51888,7 +51888,7 @@ function indent(str, spaces) {
|
|
|
51888
51888
|
if (contextKeys.some(function(el) {
|
|
51889
51889
|
return el.startsWith(name);
|
|
51890
51890
|
})) {
|
|
51891
|
-
return
|
|
51891
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
51892
51892
|
}
|
|
51893
51893
|
if (dateTimeIdentifiers.some(function(el) {
|
|
51894
51894
|
return el === name;
|
|
@@ -51907,9 +51907,9 @@ function indent(str, spaces) {
|
|
|
51907
51907
|
if (dateTimeIdentifiers.some(function(el) {
|
|
51908
51908
|
return el.startsWith(name);
|
|
51909
51909
|
})) {
|
|
51910
|
-
return
|
|
51910
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
51911
51911
|
}
|
|
51912
|
-
return
|
|
51912
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
51913
51913
|
v: nextMatch1
|
|
51914
51914
|
};
|
|
51915
51915
|
};
|
|
@@ -55776,8 +55776,11 @@ const executePinsList = async (pinsSettingsList, context, options = {
|
|
|
55776
55776
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
|
55777
55777
|
var _settings_conditions;
|
|
55778
55778
|
const settings = pinsSettingsList[i];
|
|
55779
|
-
if (typeof ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.if) !== 'undefined'
|
|
55780
|
-
|
|
55779
|
+
if (typeof ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.if) !== 'undefined') {
|
|
55780
|
+
const preparedSettings = await preparePinsSettings(settings, context);
|
|
55781
|
+
if (!preparedSettings.conditions.if) {
|
|
55782
|
+
continue;
|
|
55783
|
+
}
|
|
55781
55784
|
}
|
|
55782
55785
|
previous = await executePins(settings, _extends({}, context, {
|
|
55783
55786
|
previous,
|
|
@@ -57908,7 +57911,7 @@ class ChatbotElement extends s$3 {
|
|
|
57908
57911
|
});
|
|
57909
57912
|
const detail = await executePinsList([
|
|
57910
57913
|
pins
|
|
57911
|
-
]);
|
|
57914
|
+
], {});
|
|
57912
57915
|
this.pushAssistantMessage(detail.assistant);
|
|
57913
57916
|
if (detail.command && detail.command.length > 0) {
|
|
57914
57917
|
executePinsList(detail.command, {});
|
|
@@ -58349,7 +58352,7 @@ class DigipairFullElement extends s$3 {
|
|
|
58349
58352
|
});
|
|
58350
58353
|
const detail = await executePinsList([
|
|
58351
58354
|
pins
|
|
58352
|
-
]);
|
|
58355
|
+
], {});
|
|
58353
58356
|
this.pushAssistantMessage(detail.assistant);
|
|
58354
58357
|
if (detail.command && detail.command.library && detail.command.element) {
|
|
58355
58358
|
executePinsList([
|