@digipair/skill-web-chatbot 0.4.21 → 0.4.23

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 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 i = i1, tokens = tokens1, nextMatch = nextMatch1, {
51885
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
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 i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
51892
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "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 i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
51911
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "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 i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
51930
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
51931
51931
  }
51932
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
51932
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
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 (const item of settings.conditions.each){
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 i = 0; i < settings.conditions.each.length; i++){
55820
- const item = settings.conditions.each[i];
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);
@@ -55863,7 +55868,7 @@ const generateElementFromPins = async (pinsSettings, parent, context, options =
55863
55868
  const pinsList = settings.pins || [];
55864
55869
  for(let i = 0; i < pinsList.length; i++){
55865
55870
  const item = pinsList[i];
55866
- await generateElementFromPins(item, element, settings.context, options);
55871
+ await generateElementFromPins(item, element, settings, options);
55867
55872
  }
55868
55873
  parent == null ? void 0 : parent.appendChild(element);
55869
55874
  return element;
package/index.esm2.js CHANGED
@@ -51862,14 +51862,14 @@ function indent(str, spaces) {
51862
51862
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
51863
51863
  // match is required
51864
51864
  if (!match) {
51865
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
51865
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
51866
51866
  v: nextMatch1
51867
51867
  };
51868
51868
  }
51869
51869
  var token = match.token, offset = match.offset;
51870
51870
  i1 += offset;
51871
51871
  if (token === " ") {
51872
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
51872
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
51873
51873
  }
51874
51874
  tokens1 = _to_consumable_array$9(tokens1).concat([
51875
51875
  token
@@ -51888,7 +51888,7 @@ function indent(str, spaces) {
51888
51888
  if (contextKeys.some(function(el) {
51889
51889
  return el.startsWith(name);
51890
51890
  })) {
51891
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
51891
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
51892
51892
  }
51893
51893
  if (dateTimeIdentifiers.some(function(el) {
51894
51894
  return el === name;
@@ -51907,9 +51907,9 @@ function indent(str, spaces) {
51907
51907
  if (dateTimeIdentifiers.some(function(el) {
51908
51908
  return el.startsWith(name);
51909
51909
  })) {
51910
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
51910
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
51911
51911
  }
51912
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
51912
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
51913
51913
  v: nextMatch1
51914
51914
  };
51915
51915
  };
@@ -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 (const item of settings.conditions.each){
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 i = 0; i < settings.conditions.each.length; i++){
55800
- const item = settings.conditions.each[i];
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);
@@ -55843,7 +55848,7 @@ const generateElementFromPins = async (pinsSettings, parent, context, options =
55843
55848
  const pinsList = settings.pins || [];
55844
55849
  for(let i = 0; i < pinsList.length; i++){
55845
55850
  const item = pinsList[i];
55846
- await generateElementFromPins(item, element, settings.context, options);
55851
+ await generateElementFromPins(item, element, settings, options);
55847
55852
  }
55848
55853
  parent == null ? void 0 : parent.appendChild(element);
55849
55854
  return element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-chatbot",
3
- "version": "0.4.21",
3
+ "version": "0.4.23",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",