@cedros/admin-react
v0.1.1
Published
Shared AdminShell host and admin UI contracts for Cedros packages
Readme
@cedros/admin-react
Shared AdminShell host and admin plugin contract for Cedros packages.
Install
npm install @cedros/admin-react react react-domUsage
import { AdminShell, HOST_SERVICE_IDS } from "@cedros/admin-react";
import "@cedros/admin-react/styles.css";
<AdminShell
hostContext={{
services: {
[HOST_SERVICE_IDS.cedrosLogin]: {
user: { id: "user-1", email: "[email protected]" },
getAccessToken: () => null,
serverUrl: "https://auth.example.com"
}
}
}}
plugins={[]}
/>;This package is the canonical shared admin shell for cedros-login and cedros-pay.
It intentionally owns only:
AdminShell- the shared plugin types/contracts
- the host service-bag helpers used by login/pay
It intentionally does not own cedros-data's authored-content, extension-management, or CMS runtime surface.
