@eintrek/erp-shell 0.1.67 → 0.1.69

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
@@ -170,10 +170,43 @@ progress API: `API.md` next to it.
170
170
  - New dependency: `@floating-ui/dom` (external in the bundle; Radix already
171
171
  installs it in every app).
172
172
  - Code: `src/guide/` — `types.ts` (definitions), `machine.ts` (pure state
173
- machine), `patterns.ts`, `progress.ts` / `progress-client.ts` (API),
174
- `dom.ts`, `guide-host.tsx`, `guide-ui.tsx`, `guide-styles.ts`. Tests:
173
+ machine), `patterns.ts`, `progress.ts` / `progress-sync.ts` (rules, 409
174
+ merge) / `progress-client.ts` (platform-api), `dom.ts`,
175
+ `guide-runtime.tsx` (the engine, adapters in), `guide-host.tsx` (the
176
+ shell's adapters), `guide-ui.tsx`, `guide-styles.ts`. Tests:
175
177
  `src/guide/*.test.ts`.
176
178
 
179
+ ### 0.1.69
180
+
181
+ - A step can point at a Radix trigger that is shut (a collapsed sidebar
182
+ group header, a dialog's open button). Such triggers carry
183
+ `data-state="closed"` and used to count as absent, so the step waited
184
+ forever. Closed content still counts as absent.
185
+
186
+ ### 0.1.68: `@eintrek/erp-shell/guide-core`
187
+
188
+ - A second entry (`exports` map: `"."`, `"./guide-core"`, `"./package.json"`)
189
+ with the engine alone: React, react-dom and `@floating-ui/dom`, no React
190
+ Query, axios, zustand, next-auth, next-themes, Next or sidebar. Every peer
191
+ but react/react-dom is now optional (`peerDependenciesMeta`). The CommonJS
192
+ build is `dist/*.cjs` (`main`); bundlers read the ESM build as before. Both
193
+ entries share one chunk, so the tour's state is one instance.
194
+ - `GuideRuntime` takes adapters: `routing` (pathname, search, navigate),
195
+ `isBusy()`, `progress` (`fetchProgress` / `saveProgress` returning the API's
196
+ own shapes; parsing and the 409 merge stay in the engine), `menu` (or
197
+ null), `hidden`, `bottomOffset`. `GuideHost` is now a thin wrapper that
198
+ builds them from the shell: Peoplx behaves as before.
199
+ - `reportApiCall({ method, url, status, data })`: the API bus for a plain
200
+ `fetch` client.
201
+ - `GuideMission.visible?(ctx)`: a hidden mission is not drawn, not counted in
202
+ n/N, never "next". `GuideMission.completeOn?`: `{ api }` / `{ event }`
203
+ marks it done outside the tour (the ordinary save) and celebrates at the
204
+ next idle moment.
205
+ - CSS variable `--erp-guide-bottom-offset` for the chip and the bottom card.
206
+ - `GuideAppId` gains `"liff"`; route patterns accept `[[x]]` (a segment that
207
+ may be absent: `/me/[[code]]/attendance`).
208
+ - Authors: `_claude-work/guides-r2/GUIDE-CORE.md`.
209
+
177
210
  ## Roadmap
178
211
 
179
212
  | Phase | Scope | Files to move from each app |