@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 +28 -2
- package/dist/chunks/guide-runtime-B2RjoQeb.cjs +3874 -0
- package/dist/chunks/guide-runtime-B2RjoQeb.cjs.map +1 -0
- package/dist/chunks/guide-runtime-BT7rN-5p.esm.js +3837 -0
- package/dist/chunks/guide-runtime-BT7rN-5p.esm.js.map +1 -0
- package/dist/guide/core.d.ts +19 -0
- package/dist/guide/events.d.ts +25 -0
- package/dist/guide/guide-runtime.d.ts +83 -0
- package/dist/guide/guide-styles.d.ts +7 -1
- package/dist/guide/machine.d.ts +33 -2
- package/dist/guide/patterns.d.ts +6 -2
- package/dist/guide/progress-client.d.ts +6 -5
- package/dist/guide/progress-sync.d.ts +68 -0
- package/dist/guide/types.d.ts +23 -2
- package/dist/guide-core.cjs +29 -0
- package/dist/guide-core.cjs.map +1 -0
- package/dist/guide-core.esm.js +7 -0
- package/dist/guide-core.esm.js.map +1 -0
- package/dist/{index.js → index.cjs} +128 -3540
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +109 -3523
- package/dist/index.esm.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +46 -2
- package/dist/index.js.map +0 -1
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-
|
|
174
|
-
`
|
|
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 |
|