@digipair/skill-web-chatbot 0.4.21 → 0.4.22
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 +13 -8
- package/index.esm2.js +8 -3
- package/package.json +1 -1
package/index.cjs2.js
CHANGED
|
@@ -51882,14 +51882,14 @@ function indent(str, spaces) {
|
|
|
51882
51882
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
51883
51883
|
// match is required
|
|
51884
51884
|
if (!match) {
|
|
51885
|
-
return
|
|
51885
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
51886
51886
|
v: nextMatch1
|
|
51887
51887
|
};
|
|
51888
51888
|
}
|
|
51889
51889
|
var token = match.token, offset = match.offset;
|
|
51890
51890
|
i1 += offset;
|
|
51891
51891
|
if (token === " ") {
|
|
51892
|
-
return
|
|
51892
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
51893
51893
|
}
|
|
51894
51894
|
tokens1 = _to_consumable_array$9(tokens1).concat([
|
|
51895
51895
|
token
|
|
@@ -51908,7 +51908,7 @@ function indent(str, spaces) {
|
|
|
51908
51908
|
if (contextKeys.some(function(el) {
|
|
51909
51909
|
return el.startsWith(name);
|
|
51910
51910
|
})) {
|
|
51911
|
-
return
|
|
51911
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
51912
51912
|
}
|
|
51913
51913
|
if (dateTimeIdentifiers.some(function(el) {
|
|
51914
51914
|
return el === name;
|
|
@@ -51927,9 +51927,9 @@ function indent(str, spaces) {
|
|
|
51927
51927
|
if (dateTimeIdentifiers.some(function(el) {
|
|
51928
51928
|
return el.startsWith(name);
|
|
51929
51929
|
})) {
|
|
51930
|
-
return
|
|
51930
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
51931
51931
|
}
|
|
51932
|
-
return
|
|
51932
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
51933
51933
|
v: nextMatch1
|
|
51934
51934
|
};
|
|
51935
51935
|
};
|
|
@@ -55751,8 +55751,9 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
|
55751
55751
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
|
55752
55752
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
55753
55753
|
const results = [];
|
|
55754
|
-
for
|
|
55754
|
+
for(let index = 0; index < settings.conditions.each.length; index++){
|
|
55755
55755
|
var _itemSettings_conditions;
|
|
55756
|
+
const item = settings.conditions.each[index];
|
|
55756
55757
|
const itemSettingsOrigin = _extends({}, settingsOrigin, {
|
|
55757
55758
|
conditions: _extends({}, settingsOrigin.conditions, {
|
|
55758
55759
|
each: undefined
|
|
@@ -55760,8 +55761,10 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
|
55760
55761
|
});
|
|
55761
55762
|
const itemContext = _extends({}, context, {
|
|
55762
55763
|
item,
|
|
55764
|
+
index,
|
|
55763
55765
|
parent: {
|
|
55764
55766
|
item: context.item,
|
|
55767
|
+
index: item.index,
|
|
55765
55768
|
parent: context.parent
|
|
55766
55769
|
}
|
|
55767
55770
|
});
|
|
@@ -55816,16 +55819,18 @@ const generateElementFromPins = async (pinsSettings, parent, context, options =
|
|
|
55816
55819
|
var _settings_conditions, _settings_conditions1;
|
|
55817
55820
|
const settings = await preparePinsSettings(pinsSettings, context);
|
|
55818
55821
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
55819
|
-
for(let
|
|
55820
|
-
const item = settings.conditions.each[
|
|
55822
|
+
for(let index = 0; index < settings.conditions.each.length; index++){
|
|
55823
|
+
const item = settings.conditions.each[index];
|
|
55821
55824
|
await generateElementFromPins(_extends({}, pinsSettings, {
|
|
55822
55825
|
conditions: _extends({}, pinsSettings.conditions, {
|
|
55823
55826
|
each: undefined
|
|
55824
55827
|
})
|
|
55825
55828
|
}), parent, _extends({}, context, {
|
|
55826
55829
|
item,
|
|
55830
|
+
index,
|
|
55827
55831
|
parent: {
|
|
55828
55832
|
item: context.item,
|
|
55833
|
+
index: item.index,
|
|
55829
55834
|
parent: context.parent
|
|
55830
55835
|
}
|
|
55831
55836
|
}), options);
|
package/index.esm2.js
CHANGED
|
@@ -55731,8 +55731,9 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
|
55731
55731
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
|
55732
55732
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
55733
55733
|
const results = [];
|
|
55734
|
-
for
|
|
55734
|
+
for(let index = 0; index < settings.conditions.each.length; index++){
|
|
55735
55735
|
var _itemSettings_conditions;
|
|
55736
|
+
const item = settings.conditions.each[index];
|
|
55736
55737
|
const itemSettingsOrigin = _extends({}, settingsOrigin, {
|
|
55737
55738
|
conditions: _extends({}, settingsOrigin.conditions, {
|
|
55738
55739
|
each: undefined
|
|
@@ -55740,8 +55741,10 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
|
55740
55741
|
});
|
|
55741
55742
|
const itemContext = _extends({}, context, {
|
|
55742
55743
|
item,
|
|
55744
|
+
index,
|
|
55743
55745
|
parent: {
|
|
55744
55746
|
item: context.item,
|
|
55747
|
+
index: item.index,
|
|
55745
55748
|
parent: context.parent
|
|
55746
55749
|
}
|
|
55747
55750
|
});
|
|
@@ -55796,16 +55799,18 @@ const generateElementFromPins = async (pinsSettings, parent, context, options =
|
|
|
55796
55799
|
var _settings_conditions, _settings_conditions1;
|
|
55797
55800
|
const settings = await preparePinsSettings(pinsSettings, context);
|
|
55798
55801
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
55799
|
-
for(let
|
|
55800
|
-
const item = settings.conditions.each[
|
|
55802
|
+
for(let index = 0; index < settings.conditions.each.length; index++){
|
|
55803
|
+
const item = settings.conditions.each[index];
|
|
55801
55804
|
await generateElementFromPins(_extends({}, pinsSettings, {
|
|
55802
55805
|
conditions: _extends({}, pinsSettings.conditions, {
|
|
55803
55806
|
each: undefined
|
|
55804
55807
|
})
|
|
55805
55808
|
}), parent, _extends({}, context, {
|
|
55806
55809
|
item,
|
|
55810
|
+
index,
|
|
55807
55811
|
parent: {
|
|
55808
55812
|
item: context.item,
|
|
55813
|
+
index: item.index,
|
|
55809
55814
|
parent: context.parent
|
|
55810
55815
|
}
|
|
55811
55816
|
}), options);
|