UNPKG

everything-dev

Version:

A consolidated product package for building Module Federation apps with oRPC APIs.

24 lines (22 loc) • 911 B
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const require_auth_guards = require("./auth-guards.cjs"); let every_plugin_ui_manifest = require("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) => (0, every_plugin_ui_manifest.constructTree)({ ...input, guards: { authenticated: require_auth_guards.requireSession, admin: require_auth_guards.requireAdmin, ...input.guards } }); //#endregion exports.constructTree = constructTree; //# sourceMappingURL=compose.cjs.map