@digipair/skill-web-chatbot 0.64.3 → 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 +4 -2
- package/index.esm2.js +9 -7
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
37780
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
37781
37781
|
}
|
|
37782
|
-
return
|
|
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
|
-
|
|
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
|
-
|
|
41847
|
+
setAttribute(key, value);
|
|
41846
41848
|
} else {
|
|
41847
41849
|
element[key] = value;
|
|
41848
41850
|
}
|