@digipair/skill-web-chatbot 0.66.2 → 0.66.4
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 +12 -13
- package/index.esm2.js +7 -8
- package/libs/engine/src/lib/engine.d.ts +1 -1
- package/package.json +1 -1
package/index.cjs2.js
CHANGED
|
@@ -37752,14 +37752,14 @@ function indent(str, spaces) {
|
|
|
37752
37752
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
37753
37753
|
// match is required
|
|
37754
37754
|
if (!match) {
|
|
37755
|
-
return
|
|
37755
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
37756
37756
|
v: nextMatch1
|
|
37757
37757
|
};
|
|
37758
37758
|
}
|
|
37759
37759
|
var token = match.token, offset = match.offset;
|
|
37760
37760
|
i1 += offset;
|
|
37761
37761
|
if (token === " ") {
|
|
37762
|
-
return
|
|
37762
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
37763
37763
|
}
|
|
37764
37764
|
tokens1 = _to_consumable_array$c(tokens1).concat([
|
|
37765
37765
|
token
|
|
@@ -37778,7 +37778,7 @@ function indent(str, spaces) {
|
|
|
37778
37778
|
if (contextKeys.some(function(el) {
|
|
37779
37779
|
return el.startsWith(name);
|
|
37780
37780
|
})) {
|
|
37781
|
-
return
|
|
37781
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
37782
37782
|
}
|
|
37783
37783
|
if (dateTimeIdentifiers.some(function(el) {
|
|
37784
37784
|
return el === name;
|
|
@@ -37797,9 +37797,9 @@ function indent(str, spaces) {
|
|
|
37797
37797
|
if (dateTimeIdentifiers.some(function(el) {
|
|
37798
37798
|
return el.startsWith(name);
|
|
37799
37799
|
})) {
|
|
37800
|
-
return
|
|
37800
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
37801
37801
|
}
|
|
37802
|
-
return
|
|
37802
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
37803
37803
|
v: nextMatch1
|
|
37804
37804
|
};
|
|
37805
37805
|
};
|
|
@@ -41734,12 +41734,12 @@ const applyTemplate = (value, context)=>{
|
|
|
41734
41734
|
};
|
|
41735
41735
|
const executePins = async (settingsOrigin, context = {})=>{
|
|
41736
41736
|
var _settings_conditions, _settings_conditions1;
|
|
41737
|
-
let settings =
|
|
41737
|
+
let settings = preparePinsSettings(settingsOrigin, context);
|
|
41738
41738
|
const alias = _config$1.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
41739
41739
|
const config = context.config || {};
|
|
41740
41740
|
let version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
41741
41741
|
if (alias) {
|
|
41742
|
-
settings =
|
|
41742
|
+
settings = preparePinsSettings(_extends({}, settings, alias), {
|
|
41743
41743
|
settings: _extends({}, settings, {
|
|
41744
41744
|
version,
|
|
41745
41745
|
library: settings.library.substring(alias.name.length + 1)
|
|
@@ -41766,7 +41766,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
41766
41766
|
parent: context.parent
|
|
41767
41767
|
}
|
|
41768
41768
|
});
|
|
41769
|
-
const itemSettings =
|
|
41769
|
+
const itemSettings = preparePinsSettings(itemSettingsOrigin, itemContext);
|
|
41770
41770
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
|
41771
41771
|
continue;
|
|
41772
41772
|
}
|
|
@@ -41795,7 +41795,6 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
41795
41795
|
};
|
|
41796
41796
|
const executePinsList = async (pinsSettingsList, context)=>{
|
|
41797
41797
|
let previous = {};
|
|
41798
|
-
// parcourir tous les pins
|
|
41799
41798
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
|
41800
41799
|
const settings = pinsSettingsList[i];
|
|
41801
41800
|
try {
|
|
@@ -41819,10 +41818,10 @@ const generateElementFromPins = async (pinsSettings, parent, context, document =
|
|
|
41819
41818
|
import: true
|
|
41820
41819
|
})=>{
|
|
41821
41820
|
var _settings_conditions, _settings_conditions1;
|
|
41822
|
-
let settings =
|
|
41821
|
+
let settings = preparePinsSettings(pinsSettings, context);
|
|
41823
41822
|
const alias = _config$1.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
41824
41823
|
if (alias) {
|
|
41825
|
-
settings =
|
|
41824
|
+
settings = preparePinsSettings(_extends({}, settings, alias), {
|
|
41826
41825
|
settings
|
|
41827
41826
|
});
|
|
41828
41827
|
}
|
|
@@ -41889,14 +41888,14 @@ const generateElementFromPins = async (pinsSettings, parent, context, document =
|
|
|
41889
41888
|
}
|
|
41890
41889
|
return element;
|
|
41891
41890
|
};
|
|
41892
|
-
const preparePinsSettings =
|
|
41891
|
+
const preparePinsSettings = (settings, context)=>{
|
|
41893
41892
|
const localContext = _extends({}, context, {
|
|
41894
41893
|
variables: context.variables || {},
|
|
41895
41894
|
conditions: context.conditions || {}
|
|
41896
41895
|
});
|
|
41897
41896
|
const conditions = {};
|
|
41898
41897
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
|
41899
|
-
conditions[key] =
|
|
41898
|
+
conditions[key] = applyTemplate(value, localContext);
|
|
41900
41899
|
}
|
|
41901
41900
|
const properties = {};
|
|
41902
41901
|
for (const [key, value] of Object.entries(settings.properties || {})){
|
package/index.esm2.js
CHANGED
|
@@ -41714,12 +41714,12 @@ const applyTemplate = (value, context)=>{
|
|
|
41714
41714
|
};
|
|
41715
41715
|
const executePins = async (settingsOrigin, context = {})=>{
|
|
41716
41716
|
var _settings_conditions, _settings_conditions1;
|
|
41717
|
-
let settings =
|
|
41717
|
+
let settings = preparePinsSettings(settingsOrigin, context);
|
|
41718
41718
|
const alias = _config$1.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
41719
41719
|
const config = context.config || {};
|
|
41720
41720
|
let version = (config.VERSIONS || {})[settings.library] || 'latest';
|
|
41721
41721
|
if (alias) {
|
|
41722
|
-
settings =
|
|
41722
|
+
settings = preparePinsSettings(_extends({}, settings, alias), {
|
|
41723
41723
|
settings: _extends({}, settings, {
|
|
41724
41724
|
version,
|
|
41725
41725
|
library: settings.library.substring(alias.name.length + 1)
|
|
@@ -41746,7 +41746,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
41746
41746
|
parent: context.parent
|
|
41747
41747
|
}
|
|
41748
41748
|
});
|
|
41749
|
-
const itemSettings =
|
|
41749
|
+
const itemSettings = preparePinsSettings(itemSettingsOrigin, itemContext);
|
|
41750
41750
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
|
41751
41751
|
continue;
|
|
41752
41752
|
}
|
|
@@ -41775,7 +41775,6 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
41775
41775
|
};
|
|
41776
41776
|
const executePinsList = async (pinsSettingsList, context)=>{
|
|
41777
41777
|
let previous = {};
|
|
41778
|
-
// parcourir tous les pins
|
|
41779
41778
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
|
41780
41779
|
const settings = pinsSettingsList[i];
|
|
41781
41780
|
try {
|
|
@@ -41799,10 +41798,10 @@ const generateElementFromPins = async (pinsSettings, parent, context, document =
|
|
|
41799
41798
|
import: true
|
|
41800
41799
|
})=>{
|
|
41801
41800
|
var _settings_conditions, _settings_conditions1;
|
|
41802
|
-
let settings =
|
|
41801
|
+
let settings = preparePinsSettings(pinsSettings, context);
|
|
41803
41802
|
const alias = _config$1.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
41804
41803
|
if (alias) {
|
|
41805
|
-
settings =
|
|
41804
|
+
settings = preparePinsSettings(_extends({}, settings, alias), {
|
|
41806
41805
|
settings
|
|
41807
41806
|
});
|
|
41808
41807
|
}
|
|
@@ -41869,14 +41868,14 @@ const generateElementFromPins = async (pinsSettings, parent, context, document =
|
|
|
41869
41868
|
}
|
|
41870
41869
|
return element;
|
|
41871
41870
|
};
|
|
41872
|
-
const preparePinsSettings =
|
|
41871
|
+
const preparePinsSettings = (settings, context)=>{
|
|
41873
41872
|
const localContext = _extends({}, context, {
|
|
41874
41873
|
variables: context.variables || {},
|
|
41875
41874
|
conditions: context.conditions || {}
|
|
41876
41875
|
});
|
|
41877
41876
|
const conditions = {};
|
|
41878
41877
|
for (const [key, value] of Object.entries(settings.conditions || {})){
|
|
41879
|
-
conditions[key] =
|
|
41878
|
+
conditions[key] = applyTemplate(value, localContext);
|
|
41880
41879
|
}
|
|
41881
41880
|
const properties = {};
|
|
41882
41881
|
for (const [key, value] of Object.entries(settings.properties || {})){
|
|
@@ -8,5 +8,5 @@ export declare const executePinsList: (pinsSettingsList: PinsSettings[], context
|
|
|
8
8
|
export declare const generateElementFromPins: (pinsSettings: PinsSettings, parent: Element, context: any, document?: Document, options?: {
|
|
9
9
|
import: boolean;
|
|
10
10
|
}) => Promise<Element | void>;
|
|
11
|
-
export declare const preparePinsSettings: (settings: PinsSettings, context: any) =>
|
|
11
|
+
export declare const preparePinsSettings: (settings: PinsSettings, context: any) => PinsSettings;
|
|
12
12
|
export {};
|