@digipair/skill-web-chatbot 0.33.11 → 0.33.13

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 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 i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
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 i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
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 i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
36870
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
36871
36871
  }
36872
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
36872
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
36873
36873
  v: nextMatch1
36874
36874
  };
36875
36875
  };
@@ -57089,6 +57089,7 @@ ChatElement.styles = [
57089
57089
  height: 18px;
57090
57090
  max-width: 100%;
57091
57091
  width: 235px;
57092
+ overflow: hidden;
57092
57093
  }
57093
57094
 
57094
57095
  .input .assistant p {
@@ -58644,25 +58645,10 @@ class ChatbotElement extends s$3 {
58644
58645
  }
58645
58646
  const selectedBoosts = this.getBoostsFromTarget(event.target, boosts);
58646
58647
  // garder les boosts communs entre les deux listes
58647
- this.boosters = selectedBoosts.filter((boost)=>lastSelectedBoosts == null ? void 0 : lastSelectedBoosts.includes(boost)).map((boost)=>({
58648
- name: boost.name,
58649
- prompt: boost.prompt,
58650
- required: boost.required,
58651
- text: boost.text,
58652
- inputs: boost.inputs,
58653
- context: {
58648
+ this.boosters = selectedBoosts.filter((boost)=>lastSelectedBoosts == null ? void 0 : lastSelectedBoosts.includes(boost)).map((boost)=>_extends({}, boost, {
58649
+ context: _extends({}, boost.context || {}, {
58654
58650
  element: getCssSelector(event.target.closest(boost.selector))
58655
- },
58656
- command: {
58657
- library: '@digipair/actions-chatbot',
58658
- element: 'executeRemoteReasoning',
58659
- properties: {
58660
- digipair: this.code,
58661
- reasoning: boost.scene,
58662
- input: {},
58663
- apiUrl: API_URL$1
58664
- }
58665
- }
58651
+ })
58666
58652
  }));
58667
58653
  }, 1000);
58668
58654
  }, true);
@@ -58741,11 +58727,6 @@ class ChatbotElement extends s$3 {
58741
58727
  parent_history: boost == null ? void 0 : boost.parent_history,
58742
58728
  parent_conversation: boost == null ? void 0 : boost.parent_conversation,
58743
58729
  context: (boost == null ? void 0 : boost.context) || {}
58744
- }, !boost ? {} : {
58745
- boost: {
58746
- name: boost.name,
58747
- text: boost.text
58748
- }
58749
58730
  });
58750
58731
  const detail = await executePinsList([
58751
58732
  pins
package/index.esm2.js CHANGED
@@ -57069,6 +57069,7 @@ ChatElement.styles = [
57069
57069
  height: 18px;
57070
57070
  max-width: 100%;
57071
57071
  width: 235px;
57072
+ overflow: hidden;
57072
57073
  }
57073
57074
 
57074
57075
  .input .assistant p {
@@ -58624,25 +58625,10 @@ class ChatbotElement extends s$3 {
58624
58625
  }
58625
58626
  const selectedBoosts = this.getBoostsFromTarget(event.target, boosts);
58626
58627
  // garder les boosts communs entre les deux listes
58627
- this.boosters = selectedBoosts.filter((boost)=>lastSelectedBoosts == null ? void 0 : lastSelectedBoosts.includes(boost)).map((boost)=>({
58628
- name: boost.name,
58629
- prompt: boost.prompt,
58630
- required: boost.required,
58631
- text: boost.text,
58632
- inputs: boost.inputs,
58633
- context: {
58628
+ this.boosters = selectedBoosts.filter((boost)=>lastSelectedBoosts == null ? void 0 : lastSelectedBoosts.includes(boost)).map((boost)=>_extends({}, boost, {
58629
+ context: _extends({}, boost.context || {}, {
58634
58630
  element: getCssSelector(event.target.closest(boost.selector))
58635
- },
58636
- command: {
58637
- library: '@digipair/actions-chatbot',
58638
- element: 'executeRemoteReasoning',
58639
- properties: {
58640
- digipair: this.code,
58641
- reasoning: boost.scene,
58642
- input: {},
58643
- apiUrl: API_URL$1
58644
- }
58645
- }
58631
+ })
58646
58632
  }));
58647
58633
  }, 1000);
58648
58634
  }, true);
@@ -58721,11 +58707,6 @@ class ChatbotElement extends s$3 {
58721
58707
  parent_history: boost == null ? void 0 : boost.parent_history,
58722
58708
  parent_conversation: boost == null ? void 0 : boost.parent_conversation,
58723
58709
  context: (boost == null ? void 0 : boost.context) || {}
58724
- }, !boost ? {} : {
58725
- boost: {
58726
- name: boost.name,
58727
- text: boost.text
58728
- }
58729
58710
  });
58730
58711
  const detail = await executePinsList([
58731
58712
  pins
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-chatbot",
3
- "version": "0.33.11",
3
+ "version": "0.33.13",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",