lisichatbot 1.7.2 → 1.7.3

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 +26 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisichatbot",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
package/src/index.js CHANGED
@@ -2940,6 +2940,19 @@ async function showNextStep() {
2940
2940
  nextStep.input.custom
2941
2941
  );
2942
2942
 
2943
+ // ✅ Delayed scrolls to ensure all options are visible
2944
+ setTimeout(() => {
2945
+ scrollToBottom();
2946
+ }, 100);
2947
+
2948
+ setTimeout(() => {
2949
+ scrollToBottom();
2950
+ }, 250);
2951
+
2952
+ setTimeout(() => {
2953
+ scrollToBottom();
2954
+ }, 400);
2955
+
2943
2956
  // ✅ Check if pre-filled - renderCustomSelectOptions handles enabling if pre-filled
2944
2957
  const existingData = chatState.data[nextStep.input.field];
2945
2958
  const hasPreFill = existingData !== undefined && existingData !== null;
@@ -3085,6 +3098,19 @@ function handleCompletion() {
3085
3098
  });
3086
3099
  console.log(' 🙈 Hidden all range-wrappers on completion');
3087
3100
 
3101
+ // ✅ Hide all text and number inputs
3102
+ const allTextInputs = document.querySelectorAll('[data-chat-element="text-input"]');
3103
+ allTextInputs.forEach(input => {
3104
+ input.style.display = 'none';
3105
+ });
3106
+ console.log(' 🙈 Hidden all text-inputs on completion');
3107
+
3108
+ const allNumberInputs = document.querySelectorAll('[data-chat-element="number-input"]');
3109
+ allNumberInputs.forEach(input => {
3110
+ input.style.display = 'none';
3111
+ });
3112
+ console.log(' 🙈 Hidden all number-inputs on completion');
3113
+
3088
3114
  updateEditIcons();
3089
3115
 
3090
3116
  if (elements.nextBtn) {