{"_id":"@access-lens/dom","name":"@access-lens/dom","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@access-lens/dom","version":"0.1.0","description":"Framework-agnostic DOM debug overlay for Access Lens.","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./package.json":"./package.json"},"sideEffects":false,"keywords":["access-control","overlay","debug","devtools","permissions","feature-flags","observability"],"author":{"name":"Shahar Amir","email":"shahramir3@gmail.com"},"license":"MIT","homepage":"https://github.com/Shaharamir/access-lens#readme","repository":{"type":"git","url":"git+https://github.com/Shaharamir/access-lens.git","directory":"packages/dom"},"bugs":{"url":"https://github.com/Shaharamir/access-lens/issues"},"engines":{"node":">=18"},"publishConfig":{"access":"public","provenance":false},"peerDependencies":{"@access-lens/core":"^0.1.0"},"dependencies":{"@access-lens/core":"^0.1.0"},"devDependencies":{"typescript":"^5.6.3"},"scripts":{"build":"tsup","typecheck":"tsc -p tsconfig.json --noEmit","clean":"rm -rf dist"},"_id":"@access-lens/dom@0.1.0","_integrity":"sha512-o2tx+jsxuYjjJ5ITrj2NaME1Hvxw/R4mPCbGH3gyn6qmAFuCApsFcv8eSZ5HepKacv0zCWfXW9bMGYydCcE0mA==","_resolved":"C:\\Users\\shahar-a\\AppData\\Local\\Temp\\5c35e4cce12447bac5f2f9ea7ff4ab6f\\access-lens-dom-0.1.0.tgz","_from":"file:access-lens-dom-0.1.0.tgz","_nodeVersion":"22.15.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-o2tx+jsxuYjjJ5ITrj2NaME1Hvxw/R4mPCbGH3gyn6qmAFuCApsFcv8eSZ5HepKacv0zCWfXW9bMGYydCcE0mA==","shasum":"19d023824c0b7d6a564c6974ab09d76d05a45b9f","tarball":"https://registry.npmjs.org/@access-lens/dom/-/dom-0.1.0.tgz","fileCount":9,"unpackedSize":75856,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB0dwwZW8S9RGUxKnNEvont+2tIM8C0Ms4U5waa10p1PAiEAnpkskASZIV8veLrTE7/s/HEBV8PEAvPBCt6/Dky6m7o="}]},"_npmUser":{"name":"shahar.amir","email":"shahramir3@gmail.com"},"directories":{},"maintainers":[{"name":"shahar.amir","email":"shahramir3@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dom_0.1.0_1781408098327_0.8521032334710339"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-14T03:34:58.152Z","0.1.0":"2026-06-14T03:34:58.461Z","modified":"2026-06-14T03:34:58.681Z"},"maintainers":[{"name":"shahar.amir","email":"shahramir3@gmail.com"}],"description":"Framework-agnostic DOM debug overlay for Access Lens.","homepage":"https://github.com/Shaharamir/access-lens#readme","keywords":["access-control","overlay","debug","devtools","permissions","feature-flags","observability"],"repository":{"type":"git","url":"git+https://github.com/Shaharamir/access-lens.git","directory":"packages/dom"},"author":{"name":"Shahar Amir","email":"shahramir3@gmail.com"},"bugs":{"url":"https://github.com/Shaharamir/access-lens/issues"},"license":"MIT","readme":"# @access-lens/dom\n\nFramework-agnostic debug overlay for Access Lens. Renders a floating panel that lists every access node registered with an `AccessLensClient` and shows the reasons behind each decision.\n\n## Install\n\n```bash\npnpm add @access-lens/dom @access-lens/core\n```\n\n## Usage\n\n```ts\nimport { createAccessLensClient } from \"@access-lens/core\";\nimport { createAccessLensOverlay } from \"@access-lens/dom\";\n\nconst client = createAccessLensClient();\nconst overlay = createAccessLensOverlay(client, { open: true });\n\n// Later, tear it down:\noverlay.destroy();\n```\n\nThe overlay groups nodes by type (route, sidebar_item, tab, button, section, field, custom), shows pass/fail dots, and lets you click a row to inspect the full reason list. Hovering a row also highlights any matching `data-access-lens-id` elements in the page (the React `AccessGate` adds this attribute in debug mode).\n\nNo framework dependency, no bundler-specific code — just call the function with any DOM document.\n","readmeFilename":"README.md","_rev":"1-89db36d86b1251243875cc2383745d79"}