@digipair/skill-web-chatbot 0.11.4 → 0.11.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 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 nextMatch = nextMatch1, tokens = tokens1, i = i1, {
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 nextMatch = nextMatch1, tokens = tokens1, i = i1, "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 nextMatch = nextMatch1, tokens = tokens1, i = i1, "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 nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
52707
52707
  }
52708
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
52708
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
52709
52709
  v: nextMatch1
52710
52710
  };
52711
52711
  };
@@ -56496,6 +56496,9 @@ const _config$1 = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPA
56496
56496
  LIBRARIES: {},
56497
56497
  BASE_URL: 'https://cdn.jsdelivr.net/npm'
56498
56498
  };
56499
+ const isPinsSettings = (value)=>{
56500
+ return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
56501
+ };
56499
56502
  const config$1 = {
56500
56503
  set: (key, value)=>{
56501
56504
  _config$1[key] = key === 'LIBRARIES' && _config$1[key] ? _extends({}, _config$1[key], value) : value;
@@ -56513,7 +56516,7 @@ const applyTemplate = (value, context)=>{
56513
56516
  result = evaluate(path, context);
56514
56517
  }
56515
56518
  } else if (typeof value === 'object' && Array.isArray(value)) {
56516
- result = value;
56519
+ result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
56517
56520
  } else if (typeof value === 'object') {
56518
56521
  result = {};
56519
56522
  Object.entries(value || {}).forEach(([key, attributeValue])=>{
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, nextMatch = nextMatch1, i = i1, {
52641
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
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, nextMatch = nextMatch1, i = i1, "continue";
52648
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "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, nextMatch = nextMatch1, i = i1, "continue";
52667
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "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, nextMatch = nextMatch1, i = i1, "continue";
52686
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
52687
52687
  }
52688
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
52688
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
52689
52689
  v: nextMatch1
52690
52690
  };
52691
52691
  };
@@ -56476,6 +56476,9 @@ const _config$1 = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPA
56476
56476
  LIBRARIES: {},
56477
56477
  BASE_URL: 'https://cdn.jsdelivr.net/npm'
56478
56478
  };
56479
+ const isPinsSettings = (value)=>{
56480
+ return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
56481
+ };
56479
56482
  const config$1 = {
56480
56483
  set: (key, value)=>{
56481
56484
  _config$1[key] = key === 'LIBRARIES' && _config$1[key] ? _extends({}, _config$1[key], value) : value;
@@ -56493,7 +56496,7 @@ const applyTemplate = (value, context)=>{
56493
56496
  result = evaluate(path, context);
56494
56497
  }
56495
56498
  } else if (typeof value === 'object' && Array.isArray(value)) {
56496
- result = value;
56499
+ result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
56497
56500
  } else if (typeof value === 'object') {
56498
56501
  result = {};
56499
56502
  Object.entries(value || {}).forEach(([key, attributeValue])=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-chatbot",
3
- "version": "0.11.4",
3
+ "version": "0.11.5",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",