@aotter/mantle-admin-ui 0.1.2 → 0.1.3-alpha.2
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 +9 -0
- package/dist/assets/{developer-workspace-Dbe_is2U.js → developer-workspace-CEWp7LZN.js} +1 -1
- package/dist/assets/{html-editor-COXPbDZP.js → html-editor-DmwJ6sZ3.js} +1 -1
- package/dist/assets/index-ojzo9BD_.js +71 -0
- package/dist/assets/{markdown-editor-Dr74ijGC.js → markdown-editor-CRjHAc82.js} +1 -1
- package/dist/assets/{with-selector-m9EYPidO.js → with-selector-lqZ2z8zm.js} +1 -1
- package/dist/components/sign-in-flow.d.ts +94 -0
- package/dist/components/sign-in-flow.d.ts.map +1 -0
- package/dist/index.html +1 -1
- package/dist/kit.d.ts +1 -0
- package/dist/kit.d.ts.map +1 -1
- package/dist/kit.js +637 -468
- package/dist/preview.html +1 -1
- package/dist/r/auth-page.json +1 -1
- package/dist/r/registry.json +1 -1
- package/package.json +2 -2
- package/dist/assets/index-C8ejOX2Y.js +0 -71
package/README.md
CHANGED
|
@@ -18,6 +18,15 @@ import { Button, Card, CardContent, Input } from "@aotter/mantle-admin-ui/kit";
|
|
|
18
18
|
import "@aotter/mantle-admin-ui/kit.css";
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
+
`SignInFlow` exports Admin's own two-step email-OTP form (email screen, then
|
|
22
|
+
six-digit code screen). The host injects transport (`onSendCode`,
|
|
23
|
+
`onVerifyCode`), whatever navigation follows a successful verify, and all copy;
|
|
24
|
+
the component owns only the step, busy, and error state. A verify that resolves
|
|
25
|
+
without an error is terminal: the form stays busy and locked so the consumed
|
|
26
|
+
code cannot be resubmitted, and the host must navigate or unmount it (Admin
|
|
27
|
+
does `window.location.assign`). Admin renders the same component, so a host's
|
|
28
|
+
sign-in cannot drift from it.
|
|
29
|
+
|
|
21
30
|
Use `@aotter/mantle-admin-ui/tokens.css` when an application only needs the
|
|
22
31
|
Mantle color, radius, background, and sidebar variables. The kit intentionally
|
|
23
32
|
does not export `AdminApp`, authenticated layouts, routes, queries, or feature
|