@digipair/skill-web-chatbot 0.10.17 → 0.10.19

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
@@ -52658,14 +52658,14 @@ function indent(str, spaces) {
52658
52658
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
52659
52659
  // match is required
52660
52660
  if (!match) {
52661
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
52661
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
52662
52662
  v: nextMatch1
52663
52663
  };
52664
52664
  }
52665
52665
  var token = match.token, offset = match.offset;
52666
52666
  i1 += offset;
52667
52667
  if (token === " ") {
52668
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
52668
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
52669
52669
  }
52670
52670
  tokens1 = _to_consumable_array$9(tokens1).concat([
52671
52671
  token
@@ -52684,7 +52684,7 @@ function indent(str, spaces) {
52684
52684
  if (contextKeys.some(function(el) {
52685
52685
  return el.startsWith(name);
52686
52686
  })) {
52687
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
52687
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
52688
52688
  }
52689
52689
  if (dateTimeIdentifiers.some(function(el) {
52690
52690
  return el === name;
@@ -52703,9 +52703,9 @@ function indent(str, spaces) {
52703
52703
  if (dateTimeIdentifiers.some(function(el) {
52704
52704
  return el.startsWith(name);
52705
52705
  })) {
52706
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
52706
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
52707
52707
  }
52708
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
52708
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
52709
52709
  v: nextMatch1
52710
52710
  };
52711
52711
  };
@@ -56679,6 +56679,11 @@ class InputsElement extends s$3 {
56679
56679
  }));
56680
56680
  }
56681
56681
  render() {
56682
+ const cache = JSON.stringify(this.inputs);
56683
+ if (this.cache === cache) {
56684
+ return;
56685
+ }
56686
+ this.cache = cache;
56682
56687
  return x`
56683
56688
  ${(this.inputs || []).map((pins)=>x`${m(generateElementFromPins(pins, null, this.context).then((el)=>{
56684
56689
  setTimeout(()=>this.dispatchEvent(new CustomEvent('change')), 1);
@@ -56691,6 +56696,7 @@ class InputsElement extends s$3 {
56691
56696
  super(...args);
56692
56697
  this.inputs = [];
56693
56698
  this.context = {};
56699
+ this.cache = '';
56694
56700
  }
56695
56701
  }
56696
56702
  __decorate$3([
package/index.esm2.js CHANGED
@@ -52638,14 +52638,14 @@ function indent(str, spaces) {
52638
52638
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
52639
52639
  // match is required
52640
52640
  if (!match) {
52641
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
52641
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
52642
52642
  v: nextMatch1
52643
52643
  };
52644
52644
  }
52645
52645
  var token = match.token, offset = match.offset;
52646
52646
  i1 += offset;
52647
52647
  if (token === " ") {
52648
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
52648
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
52649
52649
  }
52650
52650
  tokens1 = _to_consumable_array$9(tokens1).concat([
52651
52651
  token
@@ -52664,7 +52664,7 @@ function indent(str, spaces) {
52664
52664
  if (contextKeys.some(function(el) {
52665
52665
  return el.startsWith(name);
52666
52666
  })) {
52667
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
52667
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
52668
52668
  }
52669
52669
  if (dateTimeIdentifiers.some(function(el) {
52670
52670
  return el === name;
@@ -52683,9 +52683,9 @@ function indent(str, spaces) {
52683
52683
  if (dateTimeIdentifiers.some(function(el) {
52684
52684
  return el.startsWith(name);
52685
52685
  })) {
52686
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
52686
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
52687
52687
  }
52688
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
52688
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
52689
52689
  v: nextMatch1
52690
52690
  };
52691
52691
  };
@@ -56659,6 +56659,11 @@ class InputsElement extends s$3 {
56659
56659
  }));
56660
56660
  }
56661
56661
  render() {
56662
+ const cache = JSON.stringify(this.inputs);
56663
+ if (this.cache === cache) {
56664
+ return;
56665
+ }
56666
+ this.cache = cache;
56662
56667
  return x`
56663
56668
  ${(this.inputs || []).map((pins)=>x`${m(generateElementFromPins(pins, null, this.context).then((el)=>{
56664
56669
  setTimeout(()=>this.dispatchEvent(new CustomEvent('change')), 1);
@@ -56671,6 +56676,7 @@ class InputsElement extends s$3 {
56671
56676
  super(...args);
56672
56677
  this.inputs = [];
56673
56678
  this.context = {};
56679
+ this.cache = '';
56674
56680
  }
56675
56681
  }
56676
56682
  __decorate$3([
@@ -2,8 +2,9 @@ import { LitElement } from 'lit';
2
2
  export declare class InputsElement extends LitElement {
3
3
  inputs: any[];
4
4
  context: any;
5
+ private cache;
5
6
  get values(): {
6
7
  [key: string]: any;
7
8
  }[];
8
- render(): import("lit-html").TemplateResult<1>;
9
+ render(): import("lit-html").TemplateResult<1> | undefined;
9
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-chatbot",
3
- "version": "0.10.17",
3
+ "version": "0.10.19",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",