lisichatbot 1.6.4 → 1.6.6
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/package.json +1 -1
- package/src/index.js +50 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -2124,6 +2124,16 @@ 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
|
+
|
|
2132
|
+
// ✅ NEW: Final scroll for steps with multiple inputs
|
|
2133
|
+
setTimeout(() => {
|
|
2134
|
+
scrollToBottom();
|
|
2135
|
+
}, 800);
|
|
2136
|
+
|
|
2127
2137
|
return;
|
|
2128
2138
|
} else {
|
|
2129
2139
|
console.error(`❌ No step found with name: "${stepName}"`);
|
|
@@ -2162,6 +2172,16 @@ async function handleNext() {
|
|
|
2162
2172
|
scrollToBottom();
|
|
2163
2173
|
}, 350);
|
|
2164
2174
|
|
|
2175
|
+
// ✅ NEW: Additional delayed scroll for cases with multiple showMessage calls
|
|
2176
|
+
setTimeout(() => {
|
|
2177
|
+
scrollToBottom();
|
|
2178
|
+
}, 500);
|
|
2179
|
+
|
|
2180
|
+
// ✅ NEW: Final scroll for steps with multiple inputs
|
|
2181
|
+
setTimeout(() => {
|
|
2182
|
+
scrollToBottom();
|
|
2183
|
+
}, 800);
|
|
2184
|
+
|
|
2165
2185
|
return;
|
|
2166
2186
|
} else {
|
|
2167
2187
|
console.error(`Invalid step number: ${targetStep}`);
|
|
@@ -2391,6 +2411,11 @@ async function handleNext() {
|
|
|
2391
2411
|
setTimeout(() => {
|
|
2392
2412
|
scrollToBottom();
|
|
2393
2413
|
}, 350);
|
|
2414
|
+
|
|
2415
|
+
// ✅ NEW: Additional scroll for steps with multiple inputs
|
|
2416
|
+
setTimeout(() => {
|
|
2417
|
+
scrollToBottom();
|
|
2418
|
+
}, 700);
|
|
2394
2419
|
}
|
|
2395
2420
|
|
|
2396
2421
|
// ✅ NEW: Helper function to find next step that is accessible in normal flow
|
|
@@ -2660,6 +2685,16 @@ async function showNextStep() {
|
|
|
2660
2685
|
scrollToBottom();
|
|
2661
2686
|
}, 350);
|
|
2662
2687
|
|
|
2688
|
+
// ✅ NEW: Additional delayed scroll for cases with multiple showMessage calls
|
|
2689
|
+
setTimeout(() => {
|
|
2690
|
+
scrollToBottom();
|
|
2691
|
+
}, 500);
|
|
2692
|
+
|
|
2693
|
+
// ✅ NEW: Final scroll for steps with multiple inputs
|
|
2694
|
+
setTimeout(() => {
|
|
2695
|
+
scrollToBottom();
|
|
2696
|
+
}, 800);
|
|
2697
|
+
|
|
2663
2698
|
return;
|
|
2664
2699
|
} else {
|
|
2665
2700
|
console.error(`❌ No step found with name: "${stepName}"`);
|
|
@@ -2698,6 +2733,16 @@ async function showNextStep() {
|
|
|
2698
2733
|
scrollToBottom();
|
|
2699
2734
|
}, 350);
|
|
2700
2735
|
|
|
2736
|
+
// ✅ NEW: Additional delayed scroll for cases with multiple showMessage calls
|
|
2737
|
+
setTimeout(() => {
|
|
2738
|
+
scrollToBottom();
|
|
2739
|
+
}, 500);
|
|
2740
|
+
|
|
2741
|
+
// ✅ NEW: Final scroll for steps with multiple inputs
|
|
2742
|
+
setTimeout(() => {
|
|
2743
|
+
scrollToBottom();
|
|
2744
|
+
}, 800);
|
|
2745
|
+
|
|
2701
2746
|
return;
|
|
2702
2747
|
} else {
|
|
2703
2748
|
console.error(`Invalid step number: ${targetStep}`);
|
|
@@ -2925,6 +2970,11 @@ async function showNextStep() {
|
|
|
2925
2970
|
setTimeout(() => {
|
|
2926
2971
|
scrollToBottom();
|
|
2927
2972
|
}, 300);
|
|
2973
|
+
|
|
2974
|
+
// ✅ NEW: Final scroll for complex steps with multiple inputs or slow rendering
|
|
2975
|
+
setTimeout(() => {
|
|
2976
|
+
scrollToBottom();
|
|
2977
|
+
}, 600);
|
|
2928
2978
|
}
|
|
2929
2979
|
|
|
2930
2980
|
function handleCompletion() {
|