everything-dev
Version:
A consolidated product package for building Module Federation apps with oRPC APIs.
23 lines (21 loc) • 774 B
JavaScript
import { requireAdmin, requireSession } from "./auth-guards.mjs";
import { constructTree as constructTree$1 } from "every-plugin/ui/manifest";
//#region src/ui/compose.ts
/**
* The core ui's composition — the engine wired with the framework's default
* mount guards. The wiring lives here (not on the generic ui/manifest
* surface, which must import standalone) because both consumers execute
* where the auth client is already present: the client boot and the
* ./compose expose the host loads for SSR. input.guards overrides per mount.
*/
const constructTree = (input) => constructTree$1({
...input,
guards: {
authenticated: requireSession,
admin: requireAdmin,
...input.guards
}
});
//#endregion
export { constructTree };
//# sourceMappingURL=compose.mjs.map