@digipair/skill-web-chatbot 0.33.3 → 0.33.4
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 -27
- package/index.esm2.js +4 -22
- 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 tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
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 tokens = tokens1, nextMatch = nextMatch1, i = i1, "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 tokens = tokens1, nextMatch = nextMatch1, i = i1, "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 tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
36871
36871
|
}
|
|
36872
|
-
return
|
|
36872
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
36873
36873
|
v: nextMatch1
|
|
36874
36874
|
};
|
|
36875
36875
|
};
|
|
@@ -58629,7 +58629,7 @@ class ChatbotElement extends s$3 {
|
|
|
58629
58629
|
async boostListener() {
|
|
58630
58630
|
const boosts = (await this.executeScene('boosts')).map((boost)=>_extends({}, boost, {
|
|
58631
58631
|
checkUrl: new RegExp(boost.url)
|
|
58632
|
-
})).filter((boost)=>boost
|
|
58632
|
+
})).filter((boost)=>boost.selector);
|
|
58633
58633
|
let lastSelectedBoosts = [];
|
|
58634
58634
|
document.addEventListener('mouseover', (event)=>{
|
|
58635
58635
|
lastSelectedBoosts = event.target.closest('digipair-chatbot') ? null : this.getBoostsFromTarget(event.target, boosts);
|
|
@@ -59102,27 +59102,9 @@ class DigipairFullElement extends s$3 {
|
|
|
59102
59102
|
}
|
|
59103
59103
|
}
|
|
59104
59104
|
async loadBoosters() {
|
|
59105
|
-
this.cacheBoosters = (await this.executeScene('boosts')).map((
|
|
59106
|
-
|
|
59107
|
-
|
|
59108
|
-
}))).flat().filter((boost)=>boost && !boost.selector).map((boost)=>({
|
|
59109
|
-
name: boost.name,
|
|
59110
|
-
prompt: boost.prompt,
|
|
59111
|
-
required: boost.required,
|
|
59112
|
-
text: boost.text,
|
|
59113
|
-
inputs: boost.inputs,
|
|
59114
|
-
context: {},
|
|
59115
|
-
command: {
|
|
59116
|
-
library: '@digipair/actions-chatbot',
|
|
59117
|
-
element: 'executeRemoteReasoning',
|
|
59118
|
-
properties: {
|
|
59119
|
-
digipair: this.code,
|
|
59120
|
-
reasoning: boost.scene,
|
|
59121
|
-
input: {},
|
|
59122
|
-
apiUrl: API_URL
|
|
59123
|
-
}
|
|
59124
|
-
}
|
|
59125
|
-
}));
|
|
59105
|
+
this.cacheBoosters = (await this.executeScene('boosts')).map((boost)=>_extends({}, boost, {
|
|
59106
|
+
checkUrl: new RegExp(boost.url)
|
|
59107
|
+
})).filter((boost)=>boost.standalone);
|
|
59126
59108
|
}
|
|
59127
59109
|
async loadDigipair() {
|
|
59128
59110
|
this.isDigipairLoading = true;
|
package/index.esm2.js
CHANGED
|
@@ -58609,7 +58609,7 @@ class ChatbotElement extends s$3 {
|
|
|
58609
58609
|
async boostListener() {
|
|
58610
58610
|
const boosts = (await this.executeScene('boosts')).map((boost)=>_extends({}, boost, {
|
|
58611
58611
|
checkUrl: new RegExp(boost.url)
|
|
58612
|
-
})).filter((boost)=>boost
|
|
58612
|
+
})).filter((boost)=>boost.selector);
|
|
58613
58613
|
let lastSelectedBoosts = [];
|
|
58614
58614
|
document.addEventListener('mouseover', (event)=>{
|
|
58615
58615
|
lastSelectedBoosts = event.target.closest('digipair-chatbot') ? null : this.getBoostsFromTarget(event.target, boosts);
|
|
@@ -59082,27 +59082,9 @@ class DigipairFullElement extends s$3 {
|
|
|
59082
59082
|
}
|
|
59083
59083
|
}
|
|
59084
59084
|
async loadBoosters() {
|
|
59085
|
-
this.cacheBoosters = (await this.executeScene('boosts')).map((
|
|
59086
|
-
|
|
59087
|
-
|
|
59088
|
-
}))).flat().filter((boost)=>boost && !boost.selector).map((boost)=>({
|
|
59089
|
-
name: boost.name,
|
|
59090
|
-
prompt: boost.prompt,
|
|
59091
|
-
required: boost.required,
|
|
59092
|
-
text: boost.text,
|
|
59093
|
-
inputs: boost.inputs,
|
|
59094
|
-
context: {},
|
|
59095
|
-
command: {
|
|
59096
|
-
library: '@digipair/actions-chatbot',
|
|
59097
|
-
element: 'executeRemoteReasoning',
|
|
59098
|
-
properties: {
|
|
59099
|
-
digipair: this.code,
|
|
59100
|
-
reasoning: boost.scene,
|
|
59101
|
-
input: {},
|
|
59102
|
-
apiUrl: API_URL
|
|
59103
|
-
}
|
|
59104
|
-
}
|
|
59105
|
-
}));
|
|
59085
|
+
this.cacheBoosters = (await this.executeScene('boosts')).map((boost)=>_extends({}, boost, {
|
|
59086
|
+
checkUrl: new RegExp(boost.url)
|
|
59087
|
+
})).filter((boost)=>boost.standalone);
|
|
59106
59088
|
}
|
|
59107
59089
|
async loadDigipair() {
|
|
59108
59090
|
this.isDigipairLoading = true;
|