lisichatbot 1.6.4 → 1.6.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +20 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisichatbot",
3
- "version": "1.6.4",
3
+ "version": "1.6.5",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
package/src/index.js CHANGED
@@ -2124,6 +2124,11 @@ async function handleNext() {
2124
2124
  scrollToBottom();
2125
2125
  }, 350);
2126
2126
 
2127
+ // ✅ NEW: Additional delayed scroll for cases with multiple showMessage calls
2128
+ setTimeout(() => {
2129
+ scrollToBottom();
2130
+ }, 500);
2131
+
2127
2132
  return;
2128
2133
  } else {
2129
2134
  console.error(`❌ No step found with name: "${stepName}"`);
@@ -2162,6 +2167,11 @@ async function handleNext() {
2162
2167
  scrollToBottom();
2163
2168
  }, 350);
2164
2169
 
2170
+ // ✅ NEW: Additional delayed scroll for cases with multiple showMessage calls
2171
+ setTimeout(() => {
2172
+ scrollToBottom();
2173
+ }, 500);
2174
+
2165
2175
  return;
2166
2176
  } else {
2167
2177
  console.error(`Invalid step number: ${targetStep}`);
@@ -2660,6 +2670,11 @@ async function showNextStep() {
2660
2670
  scrollToBottom();
2661
2671
  }, 350);
2662
2672
 
2673
+ // ✅ NEW: Additional delayed scroll for cases with multiple showMessage calls
2674
+ setTimeout(() => {
2675
+ scrollToBottom();
2676
+ }, 500);
2677
+
2663
2678
  return;
2664
2679
  } else {
2665
2680
  console.error(`❌ No step found with name: "${stepName}"`);
@@ -2698,6 +2713,11 @@ async function showNextStep() {
2698
2713
  scrollToBottom();
2699
2714
  }, 350);
2700
2715
 
2716
+ // ✅ NEW: Additional delayed scroll for cases with multiple showMessage calls
2717
+ setTimeout(() => {
2718
+ scrollToBottom();
2719
+ }, 500);
2720
+
2701
2721
  return;
2702
2722
  } else {
2703
2723
  console.error(`Invalid step number: ${targetStep}`);