{"_id":"@creezio/nav","_rev":"6-c21426d2e91584fcd0b929fc61342de7","name":"@creezio/nav","dist-tags":{"latest":"0.26.0"},"versions":{"0.22.0":{"name":"@creezio/nav","version":"0.22.0","license":"UNLICENSED","_id":"@creezio/nav@0.22.0","maintainers":[{"name":"cedfiducia","email":"hello@creez.io"}],"homepage":"https://github.com/creezio/creezio#readme","bugs":{"url":"https://github.com/creezio/creezio/issues"},"dist":{"shasum":"319bed7aef1ba416c26c012d4537d988e107c5c0","tarball":"https://registry.npmjs.org/@creezio/nav/-/nav-0.22.0.tgz","fileCount":41,"integrity":"sha512-20snHmzOIpzykpjk7HM3by2KLaTnIomM9zw0Zt2OQimtgFB4jYbratr/+zkm7oBexGbFLqz0JDJdxWB86TgSVA==","signatures":[{"sig":"MEQCICZQybsi8Q32K7DqbUq9zwCpt9UaRJT3m/ogvPTbUJXaAiB+JItDTtDdHO0CYBP361D+TBg/ODo6e6SpVHFuvb+ifw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105316},"main":"./dist-cjs/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22.5"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist-cjs/index.js"},"./ui":{"types":"./ui/index.ts","import":"./ui/index.ts","default":"./ui/index.ts"}},"gitHead":"544bc16fbe31e3a3721b24d2d17a377f1dc11e1c","scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"cedfiducia","email":"hello@creez.io"},"repository":{"url":"git+https://github.com/creezio/creezio.git","type":"git","directory":"packages/nav"},"_npmVersion":"10.9.8","description":"Module natif hybride — catalogue de nav sidebar, overrides brand.db, admin masquer/réordonner/renommer","directories":{},"_nodeVersion":"22.23.1","dependencies":{"@creezio/shell-ui":"^0.22.0","@creezio/api-kernel":"^0.22.0","@creezio/platform-core":"^0.22.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^22.15.3","@types/react":"^18.3.12"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","sonner":">=1.5.0","lucide-react":">=0.400.0","@creezio/shell-ui":">=0.4.0"},"peerDependenciesMeta":{"react":{"optional":true},"sonner":{"optional":true},"lucide-react":{"optional":true},"@creezio/shell-ui":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/nav_0.22.0_1788206229911_0.2953083345462182","host":"s3://npm-registry-packages-npm-production"}},"0.23.0":{"name":"@creezio/nav","version":"0.23.0","license":"UNLICENSED","_id":"@creezio/nav@0.23.0","maintainers":[{"name":"cedfiducia","email":"hello@creez.io"}],"homepage":"https://github.com/creezio/creezio#readme","bugs":{"url":"https://github.com/creezio/creezio/issues"},"dist":{"shasum":"22ce60201471fe184918f42144c803617af3e539","tarball":"https://registry.npmjs.org/@creezio/nav/-/nav-0.23.0.tgz","fileCount":41,"integrity":"sha512-bg8ioqrsVnMOK3eYDVD1Ukzav2JazCA0VwV4Xoknuou9xRRpj9BsVrsQJTePSgiYbXbqIzGTV3oRbsdkRADF4Q==","signatures":[{"sig":"MEQCIGe2fxVFusvKvfaITwPfFNuL5ByTt91wet4GlABBbljLAiAcEJQkWj4tvNFqbwu8yx2HiNKpv27v8j1JoYRSiL5PxQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105316},"main":"./dist-cjs/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22.5"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist-cjs/index.js"},"./ui":{"types":"./ui/index.ts","import":"./ui/index.ts","default":"./ui/index.ts"}},"gitHead":"55f391b610619648ca8b633a0509ac2ce9d2d784","scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"cedfiducia","email":"hello@creez.io"},"repository":{"url":"git+https://github.com/creezio/creezio.git","type":"git","directory":"packages/nav"},"_npmVersion":"10.9.8","description":"Module natif hybride — catalogue de nav sidebar, overrides brand.db, admin masquer/réordonner/renommer","directories":{},"_nodeVersion":"22.23.2","dependencies":{"@creezio/shell-ui":"^0.23.0","@creezio/api-kernel":"^0.23.0","@creezio/platform-core":"^0.23.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^22.15.3","@types/react":"^18.3.12"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","sonner":">=1.5.0","lucide-react":">=0.400.0","@creezio/shell-ui":">=0.4.0"},"peerDependenciesMeta":{"react":{"optional":true},"sonner":{"optional":true},"lucide-react":{"optional":true},"@creezio/shell-ui":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/nav_0.23.0_1788353989371_0.06217006006600112","host":"s3://npm-registry-packages-npm-production"}},"0.24.0":{"name":"@creezio/nav","version":"0.24.0","license":"UNLICENSED","_id":"@creezio/nav@0.24.0","maintainers":[{"name":"cedfiducia","email":"hello@creez.io"}],"homepage":"https://github.com/creezio/creezio#readme","bugs":{"url":"https://github.com/creezio/creezio/issues"},"dist":{"shasum":"1ec38c22fc24d458fef1d31c1e92c6162aa11206","tarball":"https://registry.npmjs.org/@creezio/nav/-/nav-0.24.0.tgz","fileCount":41,"integrity":"sha512-d794Hs8tNnxe2NE+dst/kAV0aZNLU9zllUA9Hc0oWflDfIIqMr9bYssqc8G5pnTIvei56K0eP+J7AWW3x0Dqxw==","signatures":[{"sig":"MEQCID59WElXoPGc8+n8Y8uDL/bRebpm/4UE3LSGBc6X1HoUAiAkSB6DQH3Hhc5jvGp/rIsxxSAFybqp4uV272oxnEcrOA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105316},"main":"./dist-cjs/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22.5"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist-cjs/index.js"},"./ui":{"types":"./ui/index.ts","import":"./ui/index.ts","default":"./ui/index.ts"}},"gitHead":"55da99cacf142cd8af97487d70cc8dc54586db26","scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"cedfiducia","email":"hello@creez.io"},"repository":{"url":"git+https://github.com/creezio/creezio.git","type":"git","directory":"packages/nav"},"_npmVersion":"10.9.8","description":"Module natif hybride — catalogue de nav sidebar, overrides brand.db, admin masquer/réordonner/renommer","directories":{},"_nodeVersion":"22.23.2","dependencies":{"@creezio/shell-ui":"^0.24.0","@creezio/api-kernel":"^0.24.0","@creezio/platform-core":"^0.24.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^22.15.3","@types/react":"^18.3.12"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","sonner":">=1.5.0","lucide-react":">=0.400.0","@creezio/shell-ui":">=0.4.0"},"peerDependenciesMeta":{"react":{"optional":true},"sonner":{"optional":true},"lucide-react":{"optional":true},"@creezio/shell-ui":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/nav_0.24.0_1788360187688_0.7001607627202613","host":"s3://npm-registry-packages-npm-production"}},"0.24.1":{"name":"@creezio/nav","version":"0.24.1","license":"UNLICENSED","_id":"@creezio/nav@0.24.1","maintainers":[{"name":"cedfiducia","email":"hello@creez.io"}],"homepage":"https://github.com/creezio/creezio#readme","bugs":{"url":"https://github.com/creezio/creezio/issues"},"dist":{"shasum":"d353f7f75814754894790684fe95cb3610035449","tarball":"https://registry.npmjs.org/@creezio/nav/-/nav-0.24.1.tgz","fileCount":41,"integrity":"sha512-Jc49P7IPNXEMZ0en/kVFD7lE/aDJ6AHGZjRzIpexqdeHVIuaiTmgX+voDTU4jYNPJjNaJRyZYujgs8cC0tg6PQ==","signatures":[{"sig":"MEUCIHr7PJPs0uZUU9x2VouinbGffBNUD1TM088pbi9GJpb9AiEAyhSA69NwoaDenXrYlX+IpUAiDzzAiPoBL23LE9TNZA8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105316},"main":"./dist-cjs/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22.5"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist-cjs/index.js"},"./ui":{"types":"./ui/index.ts","import":"./ui/index.ts","default":"./ui/index.ts"}},"gitHead":"0b0add380e7244b9f1502eea4609dfda3fdca05d","scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"cedfiducia","email":"hello@creez.io"},"repository":{"url":"git+https://github.com/creezio/creezio.git","type":"git","directory":"packages/nav"},"_npmVersion":"10.9.8","description":"Module natif hybride — catalogue de nav sidebar, overrides brand.db, admin masquer/réordonner/renommer","directories":{},"_nodeVersion":"22.23.2","dependencies":{"@creezio/shell-ui":"^0.24.1","@creezio/api-kernel":"^0.24.1","@creezio/platform-core":"^0.24.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^22.15.3","@types/react":"^18.3.12"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","sonner":">=1.5.0","lucide-react":">=0.400.0","@creezio/shell-ui":">=0.4.0"},"peerDependenciesMeta":{"react":{"optional":true},"sonner":{"optional":true},"lucide-react":{"optional":true},"@creezio/shell-ui":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/nav_0.24.1_1788365357724_0.8945616720782676","host":"s3://npm-registry-packages-npm-production"}},"0.25.0":{"name":"@creezio/nav","version":"0.25.0","license":"UNLICENSED","_id":"@creezio/nav@0.25.0","maintainers":[{"name":"cedfiducia","email":"hello@creez.io"}],"homepage":"https://github.com/creezio/creezio#readme","bugs":{"url":"https://github.com/creezio/creezio/issues"},"dist":{"shasum":"f0dcf0634a7a3f5ae11c758b1f7de9fefd6297b0","tarball":"https://registry.npmjs.org/@creezio/nav/-/nav-0.25.0.tgz","fileCount":41,"integrity":"sha512-7AWdmSv/ZUF2GPPaDfobMhPZghub17y/VnOzQeJmv6mKNYKTmdZUHqopNcU74KwE9UTNBFJew/atn+6Qt6xPgQ==","signatures":[{"sig":"MEQCIExUauNgY5AmeSjSot4+eO8WFM09Ka9n0W1CEI3HdLXkAiB+FHOEWrllSupVexDCXQQcaVqAhyRZfdhwWjjowiTGkQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105316},"main":"./dist-cjs/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=22.5"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist-cjs/index.js"},"./ui":{"types":"./ui/index.ts","import":"./ui/index.ts","default":"./ui/index.ts"}},"gitHead":"72ee394172d7a01bc0a51e0f8e4db3bbc5be8f31","scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"cedfiducia","email":"hello@creez.io"},"repository":{"url":"git+https://github.com/creezio/creezio.git","type":"git","directory":"packages/nav"},"_npmVersion":"10.9.8","description":"Module natif hybride — catalogue de nav sidebar, overrides brand.db, admin masquer/réordonner/renommer","directories":{},"_nodeVersion":"22.23.2","dependencies":{"@creezio/shell-ui":"^0.25.0","@creezio/api-kernel":"^0.25.0","@creezio/platform-core":"^0.25.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^22.15.3","@types/react":"^18.3.12"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0","sonner":">=1.5.0","lucide-react":">=0.400.0","@creezio/shell-ui":">=0.4.0"},"peerDependenciesMeta":{"react":{"optional":true},"sonner":{"optional":true},"lucide-react":{"optional":true},"@creezio/shell-ui":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/nav_0.25.0_1788373642013_0.034356330130236756","host":"s3://npm-registry-packages-npm-production"}},"0.26.0":{"name":"@creezio/nav","version":"0.26.0","description":"Module natif hybride — catalogue de nav sidebar, overrides brand.db, admin masquer/réordonner/renommer","type":"module","main":"./dist-cjs/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist-cjs/index.js","default":"./dist/index.js"},"./ui":{"types":"./ui/index.ts","import":"./ui/index.ts","default":"./ui/index.ts"}},"scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit"},"dependencies":{"@creezio/api-kernel":"^0.26.0","@creezio/platform-core":"^0.26.0","@creezio/shell-ui":"^0.26.0"},"devDependencies":{"@types/node":"^22.15.3","@types/react":"^18.3.12","typescript":"^5.8.3"},"peerDependencies":{"@creezio/shell-ui":">=0.4.0","lucide-react":">=0.400.0","react":"^18.0.0 || ^19.0.0","sonner":">=1.5.0"},"peerDependenciesMeta":{"@creezio/shell-ui":{"optional":true},"lucide-react":{"optional":true},"react":{"optional":true},"sonner":{"optional":true}},"license":"UNLICENSED","module":"./dist/index.js","publishConfig":{"registry":"https://registry.npmjs.org","access":"public"},"repository":{"type":"git","url":"git+https://github.com/creezio/creezio.git","directory":"packages/nav"},"engines":{"node":">=22.5"},"_id":"@creezio/nav@0.26.0","gitHead":"fef880ebe9665ef996cfbabbe551dbd2a823a875","bugs":{"url":"https://github.com/creezio/creezio/issues"},"homepage":"https://github.com/creezio/creezio#readme","_nodeVersion":"22.23.2","_npmVersion":"10.9.8","dist":{"integrity":"sha512-D8dnnydxNANev7i9zAPKGz0gnZc6CLHAIzBLawRvploRpIT0SXDwNw46sOtNlgaXcQHwdWSdqJNPfCUC5Kk2xg==","shasum":"9239d0450c3953daf3f46843dde9aeead258570a","tarball":"https://registry.npmjs.org/@creezio/nav/-/nav-0.26.0.tgz","fileCount":41,"unpackedSize":105316,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIC4c2ROdaHcEveYw8CZz/GZoHiCwFIrkhgus0JdZt0FuAiEAwjYbdZ8+39arAT4pIJb6nHQnmvDiqTlW65IqjMlds3Q="}]},"_npmUser":{"name":"cedfiducia","email":"hello@creez.io"},"directories":{},"maintainers":[{"name":"cedfiducia","email":"hello@creez.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nav_0.26.0_1788381475395_0.5858164257124674"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-31T19:57:09.697Z","modified":"2026-09-02T20:37:55.719Z","0.22.0":"2026-08-31T19:57:10.077Z","0.23.0":"2026-09-02T12:59:49.508Z","0.24.0":"2026-09-02T14:43:07.821Z","0.24.1":"2026-09-02T16:09:17.851Z","0.25.0":"2026-09-02T18:27:22.199Z","0.26.0":"2026-09-02T20:37:55.534Z"},"bugs":{"url":"https://github.com/creezio/creezio/issues"},"license":"UNLICENSED","homepage":"https://github.com/creezio/creezio#readme","repository":{"type":"git","url":"git+https://github.com/creezio/creezio.git","directory":"packages/nav"},"description":"Module natif hybride — catalogue de nav sidebar, overrides brand.db, admin masquer/réordonner/renommer","maintainers":[{"name":"cedfiducia","email":"hello@creez.io"}],"readme":"# @creezio/nav\n\nModule natif hybride du **catalogue de navigation** (sidebar) : overrides\npersistés en `brand.db`, mount `/api/v1/modules/nav`, écran admin pour\nmasquer / réordonner / renommer. Les types catalogue (`NavCatalogEntry`,\n`resolveNavCatalog`) vivent dans `@creezio/shell-ui` (NAV-1) — ce package\nles consomme, il ne les duplique pas.\n\n**Câblé en prod** : `startBrandDesktop` / harness (`@creezio/app-runtime`)\nauto-enregistre les migrations + le mount `nav` (chrome OS). L'écran\n`/admin/nav` est un wrapper `@creezio/os-ui`.\n\n## API\n\n`api.registerModuleApi(\"nav\", createNavMount(opts))` → `/api/v1/modules/nav/*`\n\n| Route | Auth | Rôle |\n|---|---|---|\n| `GET /` | session | Catalogue résolu `{ items: [{ id, href, label, order, group?, permission?, icon }] }` |\n| `GET /catalog` | `platform.access.manage` | Catalogue brut + overrides |\n| `PUT /overrides` | `platform.access.manage` | Upsert partiel `{ entryId, hidden?, order?, label?, … }` |\n| `PUT /overrides/reorder` | `platform.access.manage` | `{ ids: string[] }` |\n| `DELETE /overrides/:entryId` | `platform.access.manage` | Retour défaut |\n\n`createNavMount({ collectModuleEntries, features, osEntries })` —\n`osEntries` défaut = `listOsNavEntries()` (seed `defaultOsCatalogEntries()`).\n\n## Store\n\nTable `nav_overrides` dans **`brand.db`** (jamais `core.db`). Le catalogue\nentier n'est **pas** persisté — seulement les overrides admin.\n\n## Owner\n\nL'owner voit tout ce qui est `available`. Un override `hidden` s'applique\n**quand même** (y compris pour l'owner). Feature-off (`available === false`)\ngagne toujours.\n\n## UI\n\n```tsx\nimport { NavAdminClient } from \"@creezio/nav/ui\";\n```\n\nPrimitives kit uniquement. Réorder = boutons haut/bas + champ `order`.\n\n## Build\n\n```bash\nnpm run build -w @creezio/nav\nnpm run typecheck -w @creezio/nav\n```\n\n## Liens\n\n- [AGENTS.md](./AGENTS.md)\n- [docs/FILES.md](./docs/FILES.md)\n- Plan : `docs/plans/PLAN-NAV-CATALOG.md` (Phase B)\n- ADR : `docs/adr/ADR-module-natif-hybride.md`\n","readmeFilename":"README.md"}