@eintrek/erp-shell 0.1.70 → 0.1.71

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.
@@ -1473,6 +1473,11 @@ function reduceGuide(state, action, suite, env) {
1473
1473
  d.effects.push({ type: "navigate", href: filled });
1474
1474
  break;
1475
1475
  }
1476
+ case "dismissComplete":
1477
+ if (s.name !== "complete")
1478
+ break;
1479
+ setScreen(d, { name: "idle" });
1480
+ break;
1476
1481
  case "openPanel":
1477
1482
  if (state.audience !== "none" && s.name === "idle") {
1478
1483
  d.state = { ...d.state, panelOpen: true };
@@ -3586,8 +3591,10 @@ function GuideRuntimeInner({ config, organizationId, code, routing, progress: pr
3586
3591
  dispatchRef.current({ type: "rest" });
3587
3592
  }
3588
3593
  else if (sc.name === "complete") {
3594
+ // Escape closes the card where the person is; only the button
3595
+ // follows complete.action, which may be another app.
3589
3596
  stop();
3590
- dispatchRef.current({ type: "finish" });
3597
+ dispatchRef.current({ type: "dismissComplete" });
3591
3598
  }
3592
3599
  else if (s.panelOpen) {
3593
3600
  stop();
@@ -3877,4 +3884,4 @@ exports.reportApiCall = reportApiCall;
3877
3884
  exports.reportApiEvent = reportApiEvent;
3878
3885
  exports.storeGuides = storeGuides;
3879
3886
  exports.useGuideEntry = useGuideEntry;
3880
- //# sourceMappingURL=guide-runtime-BO-BFIgr.cjs.map
3887
+ //# sourceMappingURL=guide-runtime-B_fYkQv7.cjs.map