@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.
package/README.md CHANGED
@@ -176,6 +176,12 @@ progress API: `API.md` next to it.
176
176
  shell's adapters), `guide-ui.tsx`, `guide-styles.ts`. Tests:
177
177
  `src/guide/*.test.ts`.
178
178
 
179
+ ### 0.1.71
180
+
181
+ - Escape on the finish card closes it where the person is. Only the button
182
+ follows `complete.action`, which may lead to another app (Platform's finish
183
+ goes to Peoplx).
184
+
179
185
  ### 0.1.70
180
186
 
181
187
  - `GuideSuite.reopenHint`: what the skip and exit confirms say about
@@ -1453,6 +1453,11 @@ function reduceGuide(state, action, suite, env) {
1453
1453
  d.effects.push({ type: "navigate", href: filled });
1454
1454
  break;
1455
1455
  }
1456
+ case "dismissComplete":
1457
+ if (s.name !== "complete")
1458
+ break;
1459
+ setScreen(d, { name: "idle" });
1460
+ break;
1456
1461
  case "openPanel":
1457
1462
  if (state.audience !== "none" && s.name === "idle") {
1458
1463
  d.state = { ...d.state, panelOpen: true };
@@ -3566,8 +3571,10 @@ function GuideRuntimeInner({ config, organizationId, code, routing, progress: pr
3566
3571
  dispatchRef.current({ type: "rest" });
3567
3572
  }
3568
3573
  else if (sc.name === "complete") {
3574
+ // Escape closes the card where the person is; only the button
3575
+ // follows complete.action, which may be another app.
3569
3576
  stop();
3570
- dispatchRef.current({ type: "finish" });
3577
+ dispatchRef.current({ type: "dismissComplete" });
3571
3578
  }
3572
3579
  else if (s.panelOpen) {
3573
3580
  stop();
@@ -3840,4 +3847,4 @@ function useFactsKey(facts) {
3840
3847
  }
3841
3848
 
3842
3849
  export { API_EVENT as A, GUIDE_EVENT_PREFIX as G, GUIDE_LAYER_ATTRIBUTE as a, GuideErrorBoundary as b, GuideProgressConflict as c, GuideRuntime as d, apiCallDetail as e, emitGuideEvent as f, fillRoute as g, guideAnchor as h, matchRoute as i, reportApiEvent as j, loadGuides as l, matchApiPath as m, openGuidePanel as o, reportApiCall as r, storeGuides as s, useGuideEntry as u };
3843
- //# sourceMappingURL=guide-runtime-CUCcs6q0.esm.js.map
3850
+ //# sourceMappingURL=guide-runtime-BTatpm-V.esm.js.map