lisichatbot 1.6.5 → 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 +30 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -2129,6 +2129,11 @@ async function handleNext() {
|
|
|
2129
2129
|
scrollToBottom();
|
|
2130
2130
|
}, 500);
|
|
2131
2131
|
|
|
2132
|
+
// ✅ NEW: Final scroll for steps with multiple inputs
|
|
2133
|
+
setTimeout(() => {
|
|
2134
|
+
scrollToBottom();
|
|
2135
|
+
}, 800);
|
|
2136
|
+
|
|
2132
2137
|
return;
|
|
2133
2138
|
} else {
|
|
2134
2139
|
console.error(`❌ No step found with name: "${stepName}"`);
|
|
@@ -2172,6 +2177,11 @@ async function handleNext() {
|
|
|
2172
2177
|
scrollToBottom();
|
|
2173
2178
|
}, 500);
|
|
2174
2179
|
|
|
2180
|
+
// ✅ NEW: Final scroll for steps with multiple inputs
|
|
2181
|
+
setTimeout(() => {
|
|
2182
|
+
scrollToBottom();
|
|
2183
|
+
}, 800);
|
|
2184
|
+
|
|
2175
2185
|
return;
|
|
2176
2186
|
} else {
|
|
2177
2187
|
console.error(`Invalid step number: ${targetStep}`);
|
|
@@ -2401,6 +2411,11 @@ async function handleNext() {
|
|
|
2401
2411
|
setTimeout(() => {
|
|
2402
2412
|
scrollToBottom();
|
|
2403
2413
|
}, 350);
|
|
2414
|
+
|
|
2415
|
+
// ✅ NEW: Additional scroll for steps with multiple inputs
|
|
2416
|
+
setTimeout(() => {
|
|
2417
|
+
scrollToBottom();
|
|
2418
|
+
}, 700);
|
|
2404
2419
|
}
|
|
2405
2420
|
|
|
2406
2421
|
// ✅ NEW: Helper function to find next step that is accessible in normal flow
|
|
@@ -2675,6 +2690,11 @@ async function showNextStep() {
|
|
|
2675
2690
|
scrollToBottom();
|
|
2676
2691
|
}, 500);
|
|
2677
2692
|
|
|
2693
|
+
// ✅ NEW: Final scroll for steps with multiple inputs
|
|
2694
|
+
setTimeout(() => {
|
|
2695
|
+
scrollToBottom();
|
|
2696
|
+
}, 800);
|
|
2697
|
+
|
|
2678
2698
|
return;
|
|
2679
2699
|
} else {
|
|
2680
2700
|
console.error(`❌ No step found with name: "${stepName}"`);
|
|
@@ -2718,6 +2738,11 @@ async function showNextStep() {
|
|
|
2718
2738
|
scrollToBottom();
|
|
2719
2739
|
}, 500);
|
|
2720
2740
|
|
|
2741
|
+
// ✅ NEW: Final scroll for steps with multiple inputs
|
|
2742
|
+
setTimeout(() => {
|
|
2743
|
+
scrollToBottom();
|
|
2744
|
+
}, 800);
|
|
2745
|
+
|
|
2721
2746
|
return;
|
|
2722
2747
|
} else {
|
|
2723
2748
|
console.error(`Invalid step number: ${targetStep}`);
|
|
@@ -2945,6 +2970,11 @@ async function showNextStep() {
|
|
|
2945
2970
|
setTimeout(() => {
|
|
2946
2971
|
scrollToBottom();
|
|
2947
2972
|
}, 300);
|
|
2973
|
+
|
|
2974
|
+
// ✅ NEW: Final scroll for complex steps with multiple inputs or slow rendering
|
|
2975
|
+
setTimeout(() => {
|
|
2976
|
+
scrollToBottom();
|
|
2977
|
+
}, 600);
|
|
2948
2978
|
}
|
|
2949
2979
|
|
|
2950
2980
|
function handleCompletion() {
|