lisichatbot 2.0.5 → 2.0.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 +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisichatbot",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
package/src/index.js CHANGED
@@ -3625,6 +3625,13 @@ function goToStep(stepNumber) {
3625
3625
  chatState.step = stepNumber;
3626
3626
  chatState.currentSelection = null;
3627
3627
 
3628
+ // ✅ NEW: When editing, override disableInputValuePrefill for this step's field
3629
+ const targetStep = flowData.flow[stepNumber];
3630
+ if (targetStep?.input?.field && chatState.data[targetStep.input.field] !== undefined) {
3631
+ chatState.prefillOverrideFields = [targetStep.input.field];
3632
+ console.log(` 🔓 Set prefill override for field: ${targetStep.input.field}`);
3633
+ }
3634
+
3628
3635
  console.log(` Keeping messages visible (not clearing)...`);
3629
3636
 
3630
3637
  console.log(` Disabling next button and calling showNextStep()...`);