@eintrek/erp-shell 0.1.67 → 0.1.68

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,36 @@ 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.68: `@eintrek/erp-shell/guide-core`
180
+
181
+ - A second entry (`exports` map: `"."`, `"./guide-core"`, `"./package.json"`)
182
+ with the engine alone: React, react-dom and `@floating-ui/dom`, no React
183
+ Query, axios, zustand, next-auth, next-themes, Next or sidebar. Every peer
184
+ but react/react-dom is now optional (`peerDependenciesMeta`). The CommonJS
185
+ build is `dist/*.cjs` (`main`); bundlers read the ESM build as before. Both
186
+ entries share one chunk, so the tour's state is one instance.
187
+ - `GuideRuntime` takes adapters: `routing` (pathname, search, navigate),
188
+ `isBusy()`, `progress` (`fetchProgress` / `saveProgress` returning the API's
189
+ own shapes; parsing and the 409 merge stay in the engine), `menu` (or
190
+ null), `hidden`, `bottomOffset`. `GuideHost` is now a thin wrapper that
191
+ builds them from the shell: Peoplx behaves as before.
192
+ - `reportApiCall({ method, url, status, data })`: the API bus for a plain
193
+ `fetch` client.
194
+ - `GuideMission.visible?(ctx)`: a hidden mission is not drawn, not counted in
195
+ n/N, never "next". `GuideMission.completeOn?`: `{ api }` / `{ event }`
196
+ marks it done outside the tour (the ordinary save) and celebrates at the
197
+ next idle moment.
198
+ - CSS variable `--erp-guide-bottom-offset` for the chip and the bottom card.
199
+ - `GuideAppId` gains `"liff"`; route patterns accept `[[x]]` (a segment that
200
+ may be absent: `/me/[[code]]/attendance`).
201
+ - Authors: `_claude-work/guides-r2/GUIDE-CORE.md`.
202
+
177
203
  ## Roadmap
178
204
 
179
205
  | Phase | Scope | Files to move from each app |