@digipair/skill-web-chatbot 0.15.4 → 0.16.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 +8 -7
- package/index.esm2.js +8 -7
- package/package.json +1 -1
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
|
|
52661
|
+
return i = i1, tokens = tokens1, 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
|
|
52668
|
+
return i = i1, tokens = tokens1, 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
|
|
52687
|
+
return i = i1, tokens = tokens1, 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
|
|
52706
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
52707
52707
|
}
|
|
52708
|
-
return
|
|
52708
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
52709
52709
|
v: nextMatch1
|
|
52710
52710
|
};
|
|
52711
52711
|
};
|
|
@@ -56496,6 +56496,7 @@ const _config$1 = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPA
|
|
|
56496
56496
|
LIBRARIES: {},
|
|
56497
56497
|
BASE_URL: 'https://cdn.jsdelivr.net/npm'
|
|
56498
56498
|
};
|
|
56499
|
+
const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
|
|
56499
56500
|
const isPinsSettings = (value)=>{
|
|
56500
56501
|
return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
|
|
56501
56502
|
};
|
|
@@ -56557,7 +56558,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
56557
56558
|
return results;
|
|
56558
56559
|
}
|
|
56559
56560
|
const version = context.config.VERSIONS[settings.library] || 'latest';
|
|
56560
|
-
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)); }); })(`${_config$1.BASE_URL}/${settings.library}@${version}/index.esm.js`));
|
|
56561
|
+
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`));
|
|
56561
56562
|
const pins = library == null ? void 0 : library[settings.element];
|
|
56562
56563
|
if (!pins) {
|
|
56563
56564
|
throw new Error(`Element ${settings.element} not found in library ${settings.library}`);
|
|
@@ -56623,7 +56624,7 @@ const generateElementFromPins = async (pinsSettings, parent, context)=>{
|
|
|
56623
56624
|
const library = pinsSettings.library;
|
|
56624
56625
|
if (library !== 'web' && !_config$1.LIBRARIES[library]) {
|
|
56625
56626
|
const version = context.config.VERSIONS[library] || 'latest';
|
|
56626
|
-
(function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(`${_config$1.BASE_URL}/${library}@${version}/index.esm.js`);
|
|
56627
|
+
(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`);
|
|
56627
56628
|
}
|
|
56628
56629
|
Object.entries(settings.properties || {}).forEach(([key, value])=>{
|
|
56629
56630
|
if (key === 'textContent') {
|
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
|
|
52641
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
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
|
|
52648
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "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
|
|
52667
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "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
|
|
52686
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
52687
52687
|
}
|
|
52688
|
-
return
|
|
52688
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
52689
52689
|
v: nextMatch1
|
|
52690
52690
|
};
|
|
52691
52691
|
};
|
|
@@ -56476,6 +56476,7 @@ const _config$1 = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPA
|
|
|
56476
56476
|
LIBRARIES: {},
|
|
56477
56477
|
BASE_URL: 'https://cdn.jsdelivr.net/npm'
|
|
56478
56478
|
};
|
|
56479
|
+
const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
|
|
56479
56480
|
const isPinsSettings = (value)=>{
|
|
56480
56481
|
return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
|
|
56481
56482
|
};
|
|
@@ -56537,7 +56538,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
56537
56538
|
return results;
|
|
56538
56539
|
}
|
|
56539
56540
|
const version = context.config.VERSIONS[settings.library] || 'latest';
|
|
56540
|
-
const library = _config$1.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await import(`${_config$1.BASE_URL}/${settings.library}@${version}/index.esm.js`));
|
|
56541
|
+
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`));
|
|
56541
56542
|
const pins = library == null ? void 0 : library[settings.element];
|
|
56542
56543
|
if (!pins) {
|
|
56543
56544
|
throw new Error(`Element ${settings.element} not found in library ${settings.library}`);
|
|
@@ -56603,7 +56604,7 @@ const generateElementFromPins = async (pinsSettings, parent, context)=>{
|
|
|
56603
56604
|
const library = pinsSettings.library;
|
|
56604
56605
|
if (library !== 'web' && !_config$1.LIBRARIES[library]) {
|
|
56605
56606
|
const version = context.config.VERSIONS[library] || 'latest';
|
|
56606
|
-
import(`${_config$1.BASE_URL}/${library}@${version}/index.esm.js`);
|
|
56607
|
+
import(isRemoteVersion.test(version) ? `${version}` : `${_config$1.BASE_URL}/${library}@${version}/index.esm.js`);
|
|
56607
56608
|
}
|
|
56608
56609
|
Object.entries(settings.properties || {}).forEach(([key, value])=>{
|
|
56609
56610
|
if (key === 'textContent') {
|