@digipair/skill-web-chatbot 0.31.3 → 0.32.0
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
|
@@ -56577,7 +56577,8 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
56577
56577
|
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
|
56578
56578
|
throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
|
|
56579
56579
|
}
|
|
56580
|
-
const
|
|
56580
|
+
const config = context.config || {};
|
|
56581
|
+
const version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
56581
56582
|
const library = _config$1.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(isRemoteVersion.test(version) ? `${version}` : `${_config$1.BASE_URL}/${settings.library}@${version}/index.esm.js`));
|
|
56582
56583
|
const pins = library == null ? void 0 : library[settings.element];
|
|
56583
56584
|
if (!pins) {
|
|
@@ -56636,7 +56637,8 @@ const generateElementFromPins = async (pinsSettings, parent, context)=>{
|
|
|
56636
56637
|
element.setAttribute('data-digipair-pins', '');
|
|
56637
56638
|
const library = pinsSettings.library;
|
|
56638
56639
|
if (library !== 'web' && !_config$1.LIBRARIES[library]) {
|
|
56639
|
-
const
|
|
56640
|
+
const config = context.config || {};
|
|
56641
|
+
const version = (config.VERSIONS || {})[library] || 'latest';
|
|
56640
56642
|
(function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(isRemoteVersion.test(version) ? `${version}` : `${_config$1.BASE_URL}/${library}@${version}/index.esm.js`);
|
|
56641
56643
|
}
|
|
56642
56644
|
Object.entries(settings.properties || {}).forEach(([key, value])=>{
|
package/index.esm2.js
CHANGED
|
@@ -52639,14 +52639,14 @@ function indent(str, spaces) {
|
|
|
52639
52639
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
52640
52640
|
// match is required
|
|
52641
52641
|
if (!match) {
|
|
52642
|
-
return
|
|
52642
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
52643
52643
|
v: nextMatch1
|
|
52644
52644
|
};
|
|
52645
52645
|
}
|
|
52646
52646
|
var token = match.token, offset = match.offset;
|
|
52647
52647
|
i1 += offset;
|
|
52648
52648
|
if (token === " ") {
|
|
52649
|
-
return
|
|
52649
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
52650
52650
|
}
|
|
52651
52651
|
tokens1 = _to_consumable_array$9(tokens1).concat([
|
|
52652
52652
|
token
|
|
@@ -52665,7 +52665,7 @@ function indent(str, spaces) {
|
|
|
52665
52665
|
if (contextKeys.some(function(el) {
|
|
52666
52666
|
return el.startsWith(name);
|
|
52667
52667
|
})) {
|
|
52668
|
-
return
|
|
52668
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
52669
52669
|
}
|
|
52670
52670
|
if (dateTimeIdentifiers.some(function(el) {
|
|
52671
52671
|
return el === name;
|
|
@@ -52684,9 +52684,9 @@ function indent(str, spaces) {
|
|
|
52684
52684
|
if (dateTimeIdentifiers.some(function(el) {
|
|
52685
52685
|
return el.startsWith(name);
|
|
52686
52686
|
})) {
|
|
52687
|
-
return
|
|
52687
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
52688
52688
|
}
|
|
52689
|
-
return
|
|
52689
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
52690
52690
|
v: nextMatch1
|
|
52691
52691
|
};
|
|
52692
52692
|
};
|
|
@@ -56557,7 +56557,8 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
56557
56557
|
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
|
56558
56558
|
throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
|
|
56559
56559
|
}
|
|
56560
|
-
const
|
|
56560
|
+
const config = context.config || {};
|
|
56561
|
+
const version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
56561
56562
|
const library = _config$1.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await import(isRemoteVersion.test(version) ? `${version}` : `${_config$1.BASE_URL}/${settings.library}@${version}/index.esm.js`));
|
|
56562
56563
|
const pins = library == null ? void 0 : library[settings.element];
|
|
56563
56564
|
if (!pins) {
|
|
@@ -56616,7 +56617,8 @@ const generateElementFromPins = async (pinsSettings, parent, context)=>{
|
|
|
56616
56617
|
element.setAttribute('data-digipair-pins', '');
|
|
56617
56618
|
const library = pinsSettings.library;
|
|
56618
56619
|
if (library !== 'web' && !_config$1.LIBRARIES[library]) {
|
|
56619
|
-
const
|
|
56620
|
+
const config = context.config || {};
|
|
56621
|
+
const version = (config.VERSIONS || {})[library] || 'latest';
|
|
56620
56622
|
import(isRemoteVersion.test(version) ? `${version}` : `${_config$1.BASE_URL}/${library}@${version}/index.esm.js`);
|
|
56621
56623
|
}
|
|
56622
56624
|
Object.entries(settings.properties || {}).forEach(([key, value])=>{
|