@eintrek/erp-shell 0.1.73 → 0.1.74
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 +38 -0
- package/dist/chunks/{guide-runtime-C7Z00QwM.esm.js → guide-runtime-Dl8V1iy9.esm.js} +898 -57
- package/dist/chunks/guide-runtime-Dl8V1iy9.esm.js.map +1 -0
- package/dist/chunks/{guide-runtime-CLVSNkTN.cjs → guide-runtime-YS2nUhwS.cjs} +901 -55
- package/dist/chunks/guide-runtime-YS2nUhwS.cjs.map +1 -0
- package/dist/guide/core.d.ts +3 -3
- package/dist/guide/guide-store.d.ts +39 -6
- package/dist/guide/guide-styles.d.ts +1 -1
- package/dist/guide/guide-ui.d.ts +38 -0
- package/dist/guide/machine.d.ts +101 -2
- package/dist/guide/pages.d.ts +56 -0
- package/dist/guide/progress-sync.d.ts +9 -1
- package/dist/guide/progress.d.ts +25 -0
- package/dist/guide/types.d.ts +64 -0
- package/dist/guide-core.cjs +6 -1
- package/dist/guide-core.cjs.map +1 -1
- package/dist/guide-core.esm.js +1 -1
- package/dist/help/help-button.d.ts +5 -3
- package/dist/index.cjs +21 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +19 -13
- package/dist/index.esm.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunks/guide-runtime-C7Z00QwM.esm.js.map +0 -1
- package/dist/chunks/guide-runtime-CLVSNkTN.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -176,6 +176,44 @@ 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.74
|
|
180
|
+
|
|
181
|
+
Page guides ("คู่มือหน้านี้", guides round 4; authors:
|
|
182
|
+
`_claude-work/guides-r4/GUIDE-PAGES.md`).
|
|
183
|
+
|
|
184
|
+
- `GuideSuite.pages?: GuidePage[]`: a read-only walk through one page,
|
|
185
|
+
`view` and `click` steps only (a page guide with a `commit`, `input` or
|
|
186
|
+
`select` step is dropped, with a warning in development). It runs as a
|
|
187
|
+
replay of a synthetic mission `page:<key>`, so it never writes tour
|
|
188
|
+
progress. `when` names an anchor that must be on screen (sub-screens on
|
|
189
|
+
one URL); the most specific match wins (`when`, then `?k=v` constraints,
|
|
190
|
+
then static segments), and only if it is this person's (`visible`,
|
|
191
|
+
`requires`).
|
|
192
|
+
- Progress: one row per page per user, `<app>.page.<key>`, written once —
|
|
193
|
+
when the first-visit offer is answered or ignored, or when the guide
|
|
194
|
+
ends (finished: completed; not now, exited, left: skipped). Opened again
|
|
195
|
+
from "?", it writes nothing. Read from the same `GET …/guides/me` answer.
|
|
196
|
+
- Switch: platform-api's `pages_mode` (`guides.<app>.pages` = off | menu |
|
|
197
|
+
offer, default off) and `page_audience` (every member while not off). In
|
|
198
|
+
`menu` mode nothing is offered by itself; in `offer` mode a small card
|
|
199
|
+
("คู่มือหน้านี้ · <title> · n ขั้น", เริ่ม / ไม่ตอนนี้) appears once on a
|
|
200
|
+
first visit, when nothing else is up and the welcome is not due there. An
|
|
201
|
+
API without the fields means off.
|
|
202
|
+
- The "?" menu: "คู่มือหน้านี้", "ไกด์เริ่มต้น n/N", "คู่มือทุกหน้า",
|
|
203
|
+
"ติดต่อทีมช่วยเหลือ", each only when it has something
|
|
204
|
+
(`guideMenuItems`). The panel gains a second section, "คู่มือแต่ละหน้า"
|
|
205
|
+
(ดูแล้ว / ใหม่), and shows it alone when the person has no missions.
|
|
206
|
+
- A page guide's bubble: "คู่มือหน้านี้ · <title>", ย้อนกลับ on read steps,
|
|
207
|
+
"เสร็จ" on the last, "ปิดคู่มือ" to leave (silently, as leaving the page
|
|
208
|
+
does). Finishing says "จบคู่มือหน้านี้".
|
|
209
|
+
- Missions keep precedence: a mission start ends a page guide, the welcome
|
|
210
|
+
replaces an offer (unrecorded), a page guide never starts over a step.
|
|
211
|
+
- `config.pagesReady` holds page guides apart from the missions' `ready`.
|
|
212
|
+
- For apps with their own "?" (LIFF): `usePageGuideEntry()` →
|
|
213
|
+
`{ title, open } | null`, `openPageGuide()`, `openPagesPanel()`,
|
|
214
|
+
`usePageGuides()`, from both entries.
|
|
215
|
+
- `guideMenuShown(entry, pages?)` is no longer a type guard.
|
|
216
|
+
|
|
179
217
|
### 0.1.73
|
|
180
218
|
|
|
181
219
|
- `GuideStep.status`: a short status line in the bubble while it returns
|