{"_id":"@codegloss/react","_rev":"6-e66d1d9c7ee65820a3af16726b9d9458","name":"@codegloss/react","dist-tags":{"latest":"1.0.0","fix-rehype-subroot":"0.0.0-fix-rehype-subroot-20260430141036"},"versions":{"0.1.0":{"name":"@codegloss/react","version":"0.1.0","keywords":["codegloss","code-annotation","annotated-code","syntax-highlighting","react","react-component"],"license":"MIT","_id":"@codegloss/react@0.1.0","maintainers":[{"name":"rotemhorovitz","email":"lurxie+npm@gmail.com"}],"homepage":"https://lurx.github.io/codegloss/","bugs":{"url":"https://github.com/lurx/codegloss/issues"},"dist":{"shasum":"02629de4d9e6810c6f64596c757f1f8396b6714d","tarball":"https://registry.npmjs.org/@codegloss/react/-/react-0.1.0.tgz","fileCount":5,"integrity":"sha512-e77g050aruwFwW8Al6KULn1ZwxN8yjonpQRKvTDAZiYaqoz1dh1wOKnH191KJa4apQvpZtgKVphRk9DumPSy9A==","signatures":[{"sig":"MEQCIDWxxW2EEkEGocYbcObV6q2XEIrhqouZXy50i7Y8StjQAiBc087dE2tlbgeXaSp3g8thYDsvATtVLOZ/V9UIpMdsQQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5117},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"47d37a85b5dfa7cacc28ae99d0cd0e47c3915ff7","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"rotemhorovitz","email":"lurxie+npm@gmail.com"},"repository":{"url":"git+https://github.com/lurx/codegloss.git","type":"git","directory":"packages/react"},"_npmVersion":"11.10.0","description":"React wrapper for the codegloss <code-gloss> web component","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"22.15.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","react":"^18.3.1","vitest":"^4.1.4","codegloss":"workspace:*","happy-dom":"^20.8.9","react-dom":"^18.3.1","typescript":"^5.9.3","@types/react":"^18","@types/react-dom":"^18.3.7","@vitest/coverage-v8":"^4.1.4"},"peerDependencies":{"react":">=16.14.0","codegloss":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/react_0.1.0_1776518733424_0.9027545652332405","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-fix-rehype-subroot-20260429143232":{"name":"@codegloss/react","version":"0.0.0-fix-rehype-subroot-20260429143232","keywords":["codegloss","code-annotation","annotated-code","syntax-highlighting","react","react-component"],"license":"MIT","_id":"@codegloss/react@0.0.0-fix-rehype-subroot-20260429143232","maintainers":[{"name":"rotemhorovitz","email":"lurxie+npm@gmail.com"}],"homepage":"https://lurx.github.io/codegloss/","bugs":{"url":"https://github.com/lurx/codegloss/issues"},"dist":{"shasum":"525e0c08f85d2883e6a71fa1f38c888dc909df77","tarball":"https://registry.npmjs.org/@codegloss/react/-/react-0.0.0-fix-rehype-subroot-20260429143232.tgz","fileCount":5,"integrity":"sha512-f2RhPXVdaVfw/MMdJh+nIYzNHLBmjFAMP1F8nQqOK0UQpbX9B7a3QqtMSuPoffQVNL7H8pynowZD8+pOhYVsUg==","signatures":[{"sig":"MEYCIQDySuv6omC5V/hMtpN1WnnzHgBMSSOlN6vtUZbAMLfrzwIhAIb41w6hR2IHtjcGGkvSBz2k5HKRTLdcBq4rdFqQ/1FL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@codegloss%2freact@0.0.0-fix-rehype-subroot-20260429143232","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5941},"type":"module","_from":"file:codegloss-react-0.0.0-fix-rehype-subroot-20260429143232.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c15b4af8-71c5-453a-bb7c-1827af2d6c7f"}},"_resolved":"/tmp/017ea4936c7f7bf572ab49bd63f2576e/codegloss-react-0.0.0-fix-rehype-subroot-20260429143232.tgz","_integrity":"sha512-f2RhPXVdaVfw/MMdJh+nIYzNHLBmjFAMP1F8nQqOK0UQpbX9B7a3QqtMSuPoffQVNL7H8pynowZD8+pOhYVsUg==","repository":{"url":"git+https://github.com/lurx/codegloss.git","type":"git","directory":"packages/react"},"_npmVersion":"11.11.0","description":"React wrapper for the codegloss <code-gloss> web component","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"24.14.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsup":"^8","react":"^18.3.1","vitest":"^4.1.4","codegloss":"0.0.0-fix-rehype-subroot-20260429143232","happy-dom":"^20.8.9","react-dom":"^18.3.1","typescript":"^5.9.3","@types/react":"^18","@types/react-dom":"^18.3.7","@vitest/coverage-v8":"^4.1.4"},"peerDependencies":{"react":">=16.14.0","codegloss":"0.0.0-fix-rehype-subroot-20260429143232"},"_npmOperationalInternal":{"tmp":"tmp/react_0.0.0-fix-rehype-subroot-20260429143232_1777473161242_0.9218480338918358","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-fix-rehype-subroot-20260430133336":{"name":"@codegloss/react","version":"0.0.0-fix-rehype-subroot-20260430133336","keywords":["codegloss","code-annotation","annotated-code","syntax-highlighting","react","react-component"],"license":"MIT","_id":"@codegloss/react@0.0.0-fix-rehype-subroot-20260430133336","maintainers":[{"name":"rotemhorovitz","email":"lurxie+npm@gmail.com"}],"homepage":"https://lurx.github.io/codegloss/","bugs":{"url":"https://github.com/lurx/codegloss/issues"},"dist":{"shasum":"64b6fd229bd0e7ffff96e762d4602f7a7f8e4551","tarball":"https://registry.npmjs.org/@codegloss/react/-/react-0.0.0-fix-rehype-subroot-20260430133336.tgz","fileCount":5,"integrity":"sha512-4dCWWRDqN9W0Jw9AGgg7w17Gla+1zwDSGxXimIjsLUH550LndEkR3Ys3Mgh82A7NTi2K8IUeu12uEQ30JvjGaA==","signatures":[{"sig":"MEUCIFO1tLATrZRmtc8emigcsFFC5n+rF9n7U+RFERGKfnGLAiEArjn0YG5ITKosE4rVEwKNQYorq/NHPUoDaevdjkqnOr8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@codegloss%2freact@0.0.0-fix-rehype-subroot-20260430133336","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5941},"type":"module","_from":"file:codegloss-react-0.0.0-fix-rehype-subroot-20260430133336.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c15b4af8-71c5-453a-bb7c-1827af2d6c7f"}},"_resolved":"/tmp/4b59f1edb6384620f9b357d6730aefc5/codegloss-react-0.0.0-fix-rehype-subroot-20260430133336.tgz","_integrity":"sha512-4dCWWRDqN9W0Jw9AGgg7w17Gla+1zwDSGxXimIjsLUH550LndEkR3Ys3Mgh82A7NTi2K8IUeu12uEQ30JvjGaA==","repository":{"url":"git+https://github.com/lurx/codegloss.git","type":"git","directory":"packages/react"},"_npmVersion":"11.11.0","description":"React wrapper for the codegloss <code-gloss> web component","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"24.14.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsup":"^8","react":"^18.3.1","vitest":"^4.1.4","codegloss":"0.0.0-fix-rehype-subroot-20260430133336","happy-dom":"^20.8.9","react-dom":"^18.3.1","typescript":"^5.9.3","@types/react":"^18","@types/react-dom":"^18.3.7","@vitest/coverage-v8":"^4.1.4"},"peerDependencies":{"react":">=16.14.0","codegloss":"0.0.0-fix-rehype-subroot-20260430133336"},"_npmOperationalInternal":{"tmp":"tmp/react_0.0.0-fix-rehype-subroot-20260430133336_1777556026195_0.23625309875481992","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-fix-rehype-subroot-20260430135626":{"name":"@codegloss/react","version":"0.0.0-fix-rehype-subroot-20260430135626","keywords":["codegloss","code-annotation","annotated-code","syntax-highlighting","react","react-component"],"license":"MIT","_id":"@codegloss/react@0.0.0-fix-rehype-subroot-20260430135626","maintainers":[{"name":"rotemhorovitz","email":"lurxie+npm@gmail.com"}],"homepage":"https://lurx.github.io/codegloss/","bugs":{"url":"https://github.com/lurx/codegloss/issues"},"dist":{"shasum":"d5a2920cf157fcd190418041091a63dd1bc62528","tarball":"https://registry.npmjs.org/@codegloss/react/-/react-0.0.0-fix-rehype-subroot-20260430135626.tgz","fileCount":5,"integrity":"sha512-FygeQ05IiQFOt5WPPiSPMnEJ/1x9ycMlJxHY8fq4nD10QRkwoQG9bhdGq5YpWAwWdYuewHrSwTQxwKfPhBbxUA==","signatures":[{"sig":"MEUCIQDH8KAIIT/185G7ynez2lXfc146TBbD1M8eWEzcfHxClwIgIDM6Dpl1CPeqwAhXRWluRy1N1DlrZNXailmA4Pe+ATU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@codegloss%2freact@0.0.0-fix-rehype-subroot-20260430135626","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5941},"type":"module","_from":"file:codegloss-react-0.0.0-fix-rehype-subroot-20260430135626.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c15b4af8-71c5-453a-bb7c-1827af2d6c7f"}},"_resolved":"/tmp/1a418416e95a33dd400a18a80dbd7fde/codegloss-react-0.0.0-fix-rehype-subroot-20260430135626.tgz","_integrity":"sha512-FygeQ05IiQFOt5WPPiSPMnEJ/1x9ycMlJxHY8fq4nD10QRkwoQG9bhdGq5YpWAwWdYuewHrSwTQxwKfPhBbxUA==","repository":{"url":"git+https://github.com/lurx/codegloss.git","type":"git","directory":"packages/react"},"_npmVersion":"11.11.0","description":"React wrapper for the codegloss <code-gloss> web component","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"24.14.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsup":"^8","react":"^18.3.1","vitest":"^4.1.4","codegloss":"0.0.0-fix-rehype-subroot-20260430135626","happy-dom":"^20.8.9","react-dom":"^18.3.1","typescript":"^5.9.3","@types/react":"^18","@types/react-dom":"^18.3.7","@vitest/coverage-v8":"^4.1.4"},"peerDependencies":{"react":">=16.14.0","codegloss":"0.0.0-fix-rehype-subroot-20260430135626"},"_npmOperationalInternal":{"tmp":"tmp/react_0.0.0-fix-rehype-subroot-20260430135626_1777557395441_0.03008649342047831","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-fix-rehype-subroot-20260430141036":{"name":"@codegloss/react","version":"0.0.0-fix-rehype-subroot-20260430141036","keywords":["codegloss","code-annotation","annotated-code","syntax-highlighting","react","react-component"],"license":"MIT","_id":"@codegloss/react@0.0.0-fix-rehype-subroot-20260430141036","maintainers":[{"name":"rotemhorovitz","email":"lurxie+npm@gmail.com"}],"homepage":"https://lurx.github.io/codegloss/","bugs":{"url":"https://github.com/lurx/codegloss/issues"},"dist":{"shasum":"0c0f138d41a50f0005b0f8b450de2bc8e4f1a0d8","tarball":"https://registry.npmjs.org/@codegloss/react/-/react-0.0.0-fix-rehype-subroot-20260430141036.tgz","fileCount":5,"integrity":"sha512-bPl1Axn4pkqJkJ5Ygxc2Tw1h0oPKKMqSksBgw3DXdgLHqM0cvSNGAycs8EmCBZZFevqHNf18oNjgKsmB1Ws1eg==","signatures":[{"sig":"MEUCIQChrUfCgcMbnDuz3Q969qYE024lXLhTVGFkV7N/dBIQ+gIgXdsTaTUIgQ0Y84irC7IBRMbPV40Fh5OsIB5rJkhUNWQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@codegloss%2freact@0.0.0-fix-rehype-subroot-20260430141036","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5941},"type":"module","_from":"file:codegloss-react-0.0.0-fix-rehype-subroot-20260430141036.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c15b4af8-71c5-453a-bb7c-1827af2d6c7f"}},"_resolved":"/tmp/6a69c6e4c2420244df36a10ab3c43986/codegloss-react-0.0.0-fix-rehype-subroot-20260430141036.tgz","_integrity":"sha512-bPl1Axn4pkqJkJ5Ygxc2Tw1h0oPKKMqSksBgw3DXdgLHqM0cvSNGAycs8EmCBZZFevqHNf18oNjgKsmB1Ws1eg==","repository":{"url":"git+https://github.com/lurx/codegloss.git","type":"git","directory":"packages/react"},"_npmVersion":"11.11.0","description":"React wrapper for the codegloss <code-gloss> web component","directories":{},"sideEffects":["./dist/index.js"],"_nodeVersion":"24.14.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsup":"^8","react":"^18.3.1","vitest":"^4.1.4","codegloss":"0.0.0-fix-rehype-subroot-20260430141036","happy-dom":"^20.8.9","react-dom":"^18.3.1","typescript":"^5.9.3","@types/react":"^18","@types/react-dom":"^18.3.7","@vitest/coverage-v8":"^4.1.4"},"peerDependencies":{"react":">=16.14.0","codegloss":"0.0.0-fix-rehype-subroot-20260430141036"},"_npmOperationalInternal":{"tmp":"tmp/react_0.0.0-fix-rehype-subroot-20260430141036_1777558247552_0.28619727566059305","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@codegloss/react","version":"1.0.0","description":"React wrapper for the codegloss <code-gloss> web component","license":"MIT","homepage":"https://lurx.github.io/codegloss/","repository":{"type":"git","url":"git+https://github.com/lurx/codegloss.git","directory":"packages/react"},"bugs":{"url":"https://github.com/lurx/codegloss/issues"},"publishConfig":{"access":"public"},"keywords":["codegloss","code-annotation","annotated-code","syntax-highlighting","react","react-component"],"type":"module","sideEffects":["./dist/index.js"],"module":"./dist/index.js","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"peerDependencies":{"react":">=16.14.0","codegloss":"1.0.0"},"devDependencies":{"@types/react":"^18","@types/react-dom":"^18.3.7","@vitest/coverage-v8":"^4.1.4","happy-dom":"^20.8.9","react":"^18.3.1","react-dom":"^18.3.1","tsup":"^8","typescript":"^5.9.3","vitest":"^4.1.4","codegloss":"1.0.0"},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_id":"@codegloss/react@1.0.0","_integrity":"sha512-3/WLiKVceFo3otc2USfjK0XY6/pO/aWPLW6lzP99FPGyXp/qqZsYn3kbmWpMuzvu0IAHk3uTa1UQZF4lrD1jIg==","_resolved":"/tmp/c3d01698b0209f65745aba004620956a/codegloss-react-1.0.0.tgz","_from":"file:codegloss-react-1.0.0.tgz","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-3/WLiKVceFo3otc2USfjK0XY6/pO/aWPLW6lzP99FPGyXp/qqZsYn3kbmWpMuzvu0IAHk3uTa1UQZF4lrD1jIg==","shasum":"f91f783b446ce8d434cd99b206cd24003b7814b7","tarball":"https://registry.npmjs.org/@codegloss/react/-/react-1.0.0.tgz","fileCount":5,"unpackedSize":5839,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@codegloss%2freact@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFOIUFLJ6MJjHuDQ31J2ojlutLf7VTaALFcx8ycuN4DSAiAlTNCUlFvfC3SDbGuxU79p2ht6AuS75JDvzH1xhL/Weg=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c15b4af8-71c5-453a-bb7c-1827af2d6c7f"}},"directories":{},"maintainers":[{"name":"rotemhorovitz","email":"lurxie+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react_1.0.0_1779700221296_0.029436901275813332"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-18T13:25:33.343Z","modified":"2026-05-25T09:10:21.728Z","0.1.0":"2026-04-18T13:25:33.575Z","0.0.0-fix-rehype-subroot-20260429143232":"2026-04-29T14:32:41.421Z","0.0.0-fix-rehype-subroot-20260430133336":"2026-04-30T13:33:46.324Z","0.0.0-fix-rehype-subroot-20260430135626":"2026-04-30T13:56:35.611Z","0.0.0-fix-rehype-subroot-20260430141036":"2026-04-30T14:10:47.995Z","1.0.0":"2026-05-25T09:10:21.419Z"},"bugs":{"url":"https://github.com/lurx/codegloss/issues"},"license":"MIT","homepage":"https://lurx.github.io/codegloss/","keywords":["codegloss","code-annotation","annotated-code","syntax-highlighting","react","react-component"],"repository":{"type":"git","url":"git+https://github.com/lurx/codegloss.git","directory":"packages/react"},"description":"React wrapper for the codegloss <code-gloss> web component","maintainers":[{"name":"rotemhorovitz","email":"lurxie+npm@gmail.com"}],"readme":"# @codegloss/react\n\nReact wrapper for the [`codegloss`](https://npmjs.com/package/codegloss)\n`<code-gloss>` Web Component.\n\n```bash\nnpm install @codegloss/react codegloss\n```\n\n`codegloss` is a peer dependency.\n\n## Usage\n\n```tsx\nimport { CodeGloss } from '@codegloss/react';\n\nexport function Example() {\n  return (\n    <CodeGloss\n      code=\"function fib(n) { return n < 2 ? n : fib(n-1) + fib(n-2); }\"\n      lang=\"js\"\n      filename=\"fib.js\"\n      annotations={[\n        { id: 'a1', token: 'fib', line: 0, occurrence: 0,\n          title: 'Recursion', text: 'Calls itself with smaller inputs.' },\n      ]}\n    />\n  );\n}\n```\n\nThe component forwards the full `<code-gloss>` prop surface — annotations,\nconnection arcs, per-block `theme`, `callouts`, `arcs`, and a `highlight`\nfunction for pre-tokenized output.\n\n## Documentation\n\nFull component API and live previews at\n<https://lurx.github.io/codegloss/>.\n\n## License\n\n[MIT](./LICENSE)\n","readmeFilename":"README.md"}