lisichatbot 1.5.5 → 1.5.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +17 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisichatbot",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
package/src/index.js CHANGED
@@ -1864,6 +1864,23 @@ async function handleNext() {
1864
1864
  disableNextButton();
1865
1865
  return;
1866
1866
  }
1867
+
1868
+ // ✅ NEW: Validate min/max for number inputs
1869
+ const inputConfig = currentStep.input || {};
1870
+ const min = inputConfig.min;
1871
+ const max = inputConfig.max;
1872
+
1873
+ if (min !== undefined && value < min) {
1874
+ console.log(`❌ Number input below minimum (${value} < ${min}) - cannot proceed`);
1875
+ disableNextButton();
1876
+ return;
1877
+ }
1878
+
1879
+ if (max !== undefined && value > max) {
1880
+ console.log(`❌ Number input above maximum (${value} > ${max}) - cannot proceed`);
1881
+ disableNextButton();
1882
+ return;
1883
+ }
1867
1884
  }
1868
1885
 
1869
1886
  console.log(`✅ ${inputType} input validation passed:`, value);