@digipair/skill-web-chatbot 0.64.1 → 0.64.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
@@ -41849,7 +41849,9 @@ const generateElementFromPins = async (pinsSettings, parent, context, document =
41849
41849
  return;
41850
41850
  }
41851
41851
  const element = document.createElement(pinsSettings.element);
41852
- element.setAttributeNS('', 'data-digipair-pins', '');
41852
+ // add digipair-vision and aframe compatibility
41853
+ const setAttribute = (attribute, value)=>pinsSettings.element.startsWith('a-') || pinsSettings.element.startsWith('dxr-') ? element.setAttributeNS('', attribute, value) : element.setAttribute(attribute, value);
41854
+ setAttribute('data-digipair-pins', '');
41853
41855
  const library = pinsSettings.library;
41854
41856
  if (options.import && library !== 'web' && !_config$1.LIBRARIES[library]) {
41855
41857
  const config = context.config || {};
@@ -41862,7 +41864,7 @@ const generateElementFromPins = async (pinsSettings, parent, context, document =
41862
41864
  } else if (key === 'innerHTML') {
41863
41865
  element.innerHTML = value;
41864
41866
  } else if (typeof value === 'string') {
41865
- element.setAttributeNS('', key, value);
41867
+ setAttribute(key, value);
41866
41868
  } else {
41867
41869
  element[key] = value;
41868
41870
  }
package/index.esm2.js CHANGED
@@ -37732,14 +37732,14 @@ function indent(str, spaces) {
37732
37732
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
37733
37733
  // match is required
37734
37734
  if (!match) {
37735
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
37735
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
37736
37736
  v: nextMatch1
37737
37737
  };
37738
37738
  }
37739
37739
  var token = match.token, offset = match.offset;
37740
37740
  i1 += offset;
37741
37741
  if (token === " ") {
37742
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
37742
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
37743
37743
  }
37744
37744
  tokens1 = _to_consumable_array$c(tokens1).concat([
37745
37745
  token
@@ -37758,7 +37758,7 @@ function indent(str, spaces) {
37758
37758
  if (contextKeys.some(function(el) {
37759
37759
  return el.startsWith(name);
37760
37760
  })) {
37761
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
37761
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
37762
37762
  }
37763
37763
  if (dateTimeIdentifiers.some(function(el) {
37764
37764
  return el === name;
@@ -37777,9 +37777,9 @@ function indent(str, spaces) {
37777
37777
  if (dateTimeIdentifiers.some(function(el) {
37778
37778
  return el.startsWith(name);
37779
37779
  })) {
37780
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
37780
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
37781
37781
  }
37782
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
37782
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
37783
37783
  v: nextMatch1
37784
37784
  };
37785
37785
  };
@@ -41829,7 +41829,9 @@ const generateElementFromPins = async (pinsSettings, parent, context, document =
41829
41829
  return;
41830
41830
  }
41831
41831
  const element = document.createElement(pinsSettings.element);
41832
- element.setAttributeNS('', 'data-digipair-pins', '');
41832
+ // add digipair-vision and aframe compatibility
41833
+ const setAttribute = (attribute, value)=>pinsSettings.element.startsWith('a-') || pinsSettings.element.startsWith('dxr-') ? element.setAttributeNS('', attribute, value) : element.setAttribute(attribute, value);
41834
+ setAttribute('data-digipair-pins', '');
41833
41835
  const library = pinsSettings.library;
41834
41836
  if (options.import && library !== 'web' && !_config$1.LIBRARIES[library]) {
41835
41837
  const config = context.config || {};
@@ -41842,7 +41844,7 @@ const generateElementFromPins = async (pinsSettings, parent, context, document =
41842
41844
  } else if (key === 'innerHTML') {
41843
41845
  element.innerHTML = value;
41844
41846
  } else if (typeof value === 'string') {
41845
- element.setAttributeNS('', key, value);
41847
+ setAttribute(key, value);
41846
41848
  } else {
41847
41849
  element[key] = value;
41848
41850
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-chatbot",
3
- "version": "0.64.1",
3
+ "version": "0.64.5",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",