lisichatbot 1.3.1 → 1.3.2

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 +13 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisichatbot",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
package/src/index.js CHANGED
@@ -1620,27 +1620,19 @@ async function showNextStep() {
1620
1620
  }
1621
1621
  }
1622
1622
  } else {
1623
- // No input
1624
- const shouldAutoAdvance = nextStep.nextButtonDisplay !== false;
1625
-
1626
- if (shouldAutoAdvance) {
1627
- // Auto-advance for steps without input (default behavior)
1628
- setTimeout(() => {
1629
- chatState.step++;
1630
-
1631
- // Update edit icons after auto-advance
1632
- updateEditIcons();
1633
-
1634
- if (chatState.step < flowData.flow.length) {
1635
- showNextStep();
1636
- } else {
1637
- handleCompletion();
1638
- }
1639
- }, config.autoAdvanceDelay);
1640
- } else {
1641
- // Don't auto-advance if nextButtonDisplay is explicitly false
1642
- console.log(' ⏸️ Not auto-advancing (nextButtonDisplay: false)');
1643
- }
1623
+ // No input - always auto-advance (nextButtonDisplay only controls button visibility)
1624
+ setTimeout(() => {
1625
+ chatState.step++;
1626
+
1627
+ // Update edit icons after auto-advance
1628
+ updateEditIcons();
1629
+
1630
+ if (chatState.step < flowData.flow.length) {
1631
+ showNextStep();
1632
+ } else {
1633
+ handleCompletion();
1634
+ }
1635
+ }, config.autoAdvanceDelay);
1644
1636
  }
1645
1637
 
1646
1638
  // Handle nextButtonDisplay - default is true