everything-dev
Version:
A consolidated product package for building Module Federation apps with oRPC APIs.
1 lines • 1.04 kB
Source Map (JSON)
{"version":3,"file":"compose.cjs","names":["constructEngineTree","requireSession","requireAdmin"],"sources":["../../src/ui/compose.ts"],"sourcesContent":["import {\n type ConstructInput,\n constructTree as constructEngineTree,\n} from \"every-plugin/ui/manifest\";\nimport { requireAdmin, requireSession } from \"./auth-guards\";\n\n/**\n * The core ui's composition — the engine wired with the framework's default\n * mount guards. The wiring lives here (not on the generic ui/manifest\n * surface, which must import standalone) because both consumers execute\n * where the auth client is already present: the client boot and the\n * ./compose expose the host loads for SSR. input.guards overrides per mount.\n */\nexport const constructTree = (input: ConstructInput) =>\n constructEngineTree({\n ...input,\n guards: { authenticated: requireSession, admin: requireAdmin, ...input.guards },\n });\n"],"mappings":";;;;;;;;;;;;AAaA,MAAa,iBAAiB,cAC5BA,wCAAoB;CAClB,GAAG;CACH,QAAQ;EAAE,eAAeC;EAAgB,OAAOC;EAAc,GAAG,MAAM;CAAO;AAChF,CAAC"}