{"_id":"@altano/astro-table-of-contents","_rev":"9-a7e52ad6d1a86f538bf8635b2c137ec3","name":"@altano/astro-table-of-contents","dist-tags":{"latest":"2.0.0"},"versions":{"0.0.2":{"name":"@altano/astro-table-of-contents","version":"0.0.2","keywords":["astro","components","table-of-contents","toc"],"author":{"url":"https://alan.norbauer.com","name":"Alan Norbauer","email":"altano@gmail.com"},"license":"ISC","_id":"@altano/astro-table-of-contents@0.0.2","maintainers":[{"name":"altano","email":"altano@gmail.com"}],"homepage":"https://github.com/altano/npm-packages/tree/main/packages/astro-table-of-contents","bugs":{"url":"https://github.com/altano/npm-packages/issues"},"dist":{"shasum":"e1f31ba3e970708377bd42c8aeaf560bfdeea255","tarball":"https://registry.npmjs.org/@altano/astro-table-of-contents/-/astro-table-of-contents-0.0.2.tgz","fileCount":5,"integrity":"sha512-/P7Qv0ZrzgWZvfZqqNRWAxu1AEBDrjnWyL5T1cTKJMCoCEFHVXBZfOr9j03c8t1zdDdgwn2gD0iBnXHL/jQbzw==","signatures":[{"sig":"MEQCIGpvUYnp8VPvWycCj/LEt2RiR+mRlTX3knZgpmE71HxyAiBbaI6TPMZdlnOoNK/XmqLf3/LhNCw5xoFHz3wZpTjPdg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8934},"type":"module","_from":"file:altano-astro-table-of-contents-0.0.2.tgz","exports":{"./*":"./src/*"},"scripts":{"dev":"astro dev","lint":"eslint","clean":"rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist","format":"prettier --write src","lint:fix":"TIMING=1 eslint src/**/*.ts* --fix","test:e2e":"playwright test","lint:timing":"TIMING=1 eslint src/**/*.ts*","test:e2e:ui":"playwright test --ui","test:e2e:server":"astro dev --strictPort --port 4783","check:types:astro":"astro check --root src","check:unused-dependencies":"depcheck"},"_npmUser":{"name":"altano","actor":{"name":"altano","type":"user","email":"altano@gmail.com"},"email":"altano@gmail.com"},"_resolved":"/tmp/fd47b56b3ca3d74f49b4f681c8be5270/altano-astro-table-of-contents-0.0.2.tgz","_integrity":"sha512-/P7Qv0ZrzgWZvfZqqNRWAxu1AEBDrjnWyL5T1cTKJMCoCEFHVXBZfOr9j03c8t1zdDdgwn2gD0iBnXHL/jQbzw==","repository":{"url":"git+https://github.com/altano/npm-packages.git","type":"git","directory":"packages/astro-table-of-contents"},"_npmVersion":"10.9.2","description":"Table of Contents components for Astro","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.2.6","astro":"^5.8.0","depcheck":"^1.4.7","prettier":"^3.5.3","astrobook":"^0.8.0","@types/node":"^22.13.10","@astrojs/check":"^0.9.4","@altano/testing":"0.0.1","@altano/tsconfig":"0.0.1","@playwright/test":"1.51.1","remark-sectionize":"^2.1.0","@altano/build-config":"0.0.1","@altano/web-components":"0.0.2"},"peerDependencies":{"astro":"5.x.x"},"_npmOperationalInternal":{"tmp":"tmp/astro-table-of-contents_0.0.2_1751327846305_0.6610152556689339","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@altano/astro-table-of-contents","version":"0.0.3","keywords":["astro","components","table-of-contents","toc"],"author":{"url":"https://alan.norbauer.com","name":"Alan Norbauer","email":"altano@gmail.com"},"license":"ISC","_id":"@altano/astro-table-of-contents@0.0.3","maintainers":[{"name":"altano","email":"altano@gmail.com"}],"homepage":"https://github.com/altano/npm-packages/tree/main/packages/astro-table-of-contents","bugs":{"url":"https://github.com/altano/npm-packages/issues"},"dist":{"shasum":"33adbaf50bb2997438e01d73c56c51841f82aac8","tarball":"https://registry.npmjs.org/@altano/astro-table-of-contents/-/astro-table-of-contents-0.0.3.tgz","fileCount":5,"integrity":"sha512-iLMa+ceX/NfAZxUO5FpR5ZKnm1mq7f3c0thIcwKTVSN83eSa2wytopKUu4TP1x3zZkbNGhVq7SkQnPgbQut/Qw==","signatures":[{"sig":"MEQCIEPUjVMCRm7Iydv6u9n4CwSU7wnChWKzooyTcQgL84uEAiBV7qOFCn1u5OHsqp+tIoJgz4vVTVf26e5l+gptBz/BvA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8959},"type":"module","_from":"file:altano-astro-table-of-contents-0.0.3.tgz","exports":{"./*":"./src/*"},"scripts":{"dev":"astro dev","lint":"eslint","clean":"rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist","format":"prettier --write src","lint:fix":"TIMING=1 eslint src/**/*.ts* --fix","test:e2e":"playwright test","lint:timing":"TIMING=1 eslint src/**/*.ts*","test:e2e:ui":"playwright test --ui","test:e2e:server":"astro dev --strictPort --port 4783","check:types:astro":"astro check --root src","check:unused-dependencies":"depcheck"},"_npmUser":{"name":"altano","actor":{"name":"altano","type":"user","email":"altano@gmail.com"},"email":"altano@gmail.com"},"_resolved":"/tmp/df7e81eac687360149b9f02e4dc665c2/altano-astro-table-of-contents-0.0.3.tgz","_integrity":"sha512-iLMa+ceX/NfAZxUO5FpR5ZKnm1mq7f3c0thIcwKTVSN83eSa2wytopKUu4TP1x3zZkbNGhVq7SkQnPgbQut/Qw==","repository":{"url":"git+https://github.com/altano/npm-packages.git","type":"git","directory":"packages/astro-table-of-contents"},"_npmVersion":"10.9.2","description":"Table of Contents components for Astro","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"@altano/web-components":"0.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.2.6","astro":"^5.10.1","depcheck":"^1.4.7","prettier":"^3.5.3","astrobook":"^0.8.0","@types/node":"^22.13.10","@astrojs/check":"^0.9.4","@altano/testing":"0.0.1","@altano/tsconfig":"0.0.1","@playwright/test":"1.51.1","remark-sectionize":"^2.1.0","@altano/build-config":"0.0.1"},"peerDependencies":{"astro":"5.x.x"},"_npmOperationalInternal":{"tmp":"tmp/astro-table-of-contents_0.0.3_1751334914818_0.9587418026537489","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@altano/astro-table-of-contents","version":"0.1.0","keywords":["astro","components","table-of-contents","toc"],"author":{"url":"https://alan.norbauer.com","name":"Alan Norbauer","email":"altano@gmail.com"},"license":"ISC","_id":"@altano/astro-table-of-contents@0.1.0","maintainers":[{"name":"altano","email":"altano@gmail.com"}],"homepage":"https://github.com/altano/npm-packages/tree/main/packages/astro-table-of-contents","bugs":{"url":"https://github.com/altano/npm-packages/issues"},"dist":{"shasum":"35f142d923c26519c40c4097e4926b1f3150120c","tarball":"https://registry.npmjs.org/@altano/astro-table-of-contents/-/astro-table-of-contents-0.1.0.tgz","fileCount":5,"integrity":"sha512-mvQvHe584YRGoLNwBLSzyyyW4DY/ANrtDm9xKiniV7JOPXKzJf68vkZWGX/u0WwWWehbMn8ipdqKXYxsmMOFPg==","signatures":[{"sig":"MEUCID3tO9e0VURcF61JnvpVB9RNwc4VTlhG6HnRFAlK/wwJAiEA+G+wOLNOSbmYjjlZCcd0o80paGs2DAjgz08px3nrROI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8640},"type":"module","_from":"file:altano-astro-table-of-contents-0.1.0.tgz","exports":{"./*":"./src/*"},"scripts":{"dev":"astro dev","lint":"eslint","clean":"rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist","format":"prettier --write src","lint:fix":"TIMING=1 eslint src/**/*.ts* --fix","test:e2e":"playwright test","lint:timing":"TIMING=1 eslint src/**/*.ts*","test:e2e:ui":"playwright test --ui","test:e2e:server":"astro dev --strictPort --port 4783","check:types:astro":"astro check --root src","check:unused-dependencies":"depcheck"},"_npmUser":{"name":"altano","actor":{"name":"altano","type":"user","email":"altano@gmail.com"},"email":"altano@gmail.com"},"_resolved":"/tmp/a5cbbe29256682ae3cc189ee16257920/altano-astro-table-of-contents-0.1.0.tgz","_integrity":"sha512-mvQvHe584YRGoLNwBLSzyyyW4DY/ANrtDm9xKiniV7JOPXKzJf68vkZWGX/u0WwWWehbMn8ipdqKXYxsmMOFPg==","repository":{"url":"git+https://github.com/altano/npm-packages.git","type":"git","directory":"packages/astro-table-of-contents"},"_npmVersion":"10.9.2","description":"Table of Contents components for Astro","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"@altano/web-components":"0.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.2.6","astro":"^5.10.1","depcheck":"^1.4.7","prettier":"^3.5.3","astrobook":"^0.8.0","@types/node":"^22.13.10","@astrojs/check":"^0.9.4","@altano/testing":"0.0.1","@altano/tsconfig":"0.0.1","@playwright/test":"1.51.1","remark-sectionize":"^2.1.0","@altano/build-config":"0.0.1"},"peerDependencies":{"astro":"5.x.x"},"_npmOperationalInternal":{"tmp":"tmp/astro-table-of-contents_0.1.0_1751357722449_0.713791970259239","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@altano/astro-table-of-contents","version":"0.1.1","keywords":["astro","components","table-of-contents","toc"],"author":{"url":"https://alan.norbauer.com","name":"Alan Norbauer","email":"altano@gmail.com"},"license":"ISC","_id":"@altano/astro-table-of-contents@0.1.1","maintainers":[{"name":"altano","email":"altano@gmail.com"}],"homepage":"https://github.com/altano/npm-packages/tree/main/packages/astro-table-of-contents","bugs":{"url":"https://github.com/altano/npm-packages/issues"},"dist":{"shasum":"72e54e97af68a9a0fa1282081d4a2695e472b04a","tarball":"https://registry.npmjs.org/@altano/astro-table-of-contents/-/astro-table-of-contents-0.1.1.tgz","fileCount":5,"integrity":"sha512-8py8XIPayY79zGfsEXzB0EkKXxtsD1hjwChPVtyNJS0VbXETZo2sKu74L37iOvlw+dszPig3IEQANFbmC5WOZg==","signatures":[{"sig":"MEUCIQDWjt1KfXMbRzhOdEqTDQb5qMTRgjXM7GmQJy35Cw+G3wIgaFrc22TUjOSAv2dvZ0wZCyD95uNEJYZesnd+hsPiFLY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9225},"type":"module","_from":"file:altano-astro-table-of-contents-0.1.1.tgz","exports":{"./*":"./src/*"},"scripts":{"dev":"astro dev","lint":"eslint","clean":"rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist","format":"prettier --write src","lint:fix":"TIMING=1 eslint src/**/*.ts* --fix","test:e2e":"playwright test","lint:timing":"TIMING=1 eslint src/**/*.ts*","test:e2e:ui":"playwright test --ui","test:e2e:server":"astro dev --strictPort --port 4783","check:types:astro":"astro check --root src","check:unused-dependencies":"depcheck"},"_npmUser":{"name":"altano","actor":{"name":"altano","type":"user","email":"altano@gmail.com"},"email":"altano@gmail.com"},"_resolved":"/tmp/0624f981b27ee6a1370f6bc1ab57b9bb/altano-astro-table-of-contents-0.1.1.tgz","_integrity":"sha512-8py8XIPayY79zGfsEXzB0EkKXxtsD1hjwChPVtyNJS0VbXETZo2sKu74L37iOvlw+dszPig3IEQANFbmC5WOZg==","repository":{"url":"git+https://github.com/altano/npm-packages.git","type":"git","directory":"packages/astro-table-of-contents"},"_npmVersion":"10.9.2","description":"Table of Contents components for Astro","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"@altano/web-components":"0.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.2.6","astro":"^5.10.1","depcheck":"^1.4.7","prettier":"^3.5.3","astrobook":"^0.8.0","@types/node":"^22.13.10","@astrojs/check":"^0.9.4","@altano/testing":"0.0.1","@altano/tsconfig":"0.0.1","@playwright/test":"1.51.1","remark-sectionize":"^2.1.0","@altano/build-config":"0.0.1"},"peerDependencies":{"astro":"5.x.x"},"_npmOperationalInternal":{"tmp":"tmp/astro-table-of-contents_0.1.1_1751439001082_0.7102244992771023","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@altano/astro-table-of-contents","version":"0.1.2","keywords":["astro","components","table-of-contents","toc"],"author":{"url":"https://alan.norbauer.com","name":"Alan Norbauer","email":"altano@gmail.com"},"license":"ISC","_id":"@altano/astro-table-of-contents@0.1.2","maintainers":[{"name":"altano","email":"altano@gmail.com"}],"homepage":"https://github.com/altano/npm-packages/tree/main/packages/astro-table-of-contents","bugs":{"url":"https://github.com/altano/npm-packages/issues"},"dist":{"shasum":"92f18b64c93501cac3b5c50d586094539d62b125","tarball":"https://registry.npmjs.org/@altano/astro-table-of-contents/-/astro-table-of-contents-0.1.2.tgz","fileCount":5,"integrity":"sha512-QMhdJU2bujcgeCuSWo+IWzVJVO+4Wn26Fnby38ZWIMSP27sfCUyRDOBT+MoerrvIj0NRDDed7TZhMd94gCAirw==","signatures":[{"sig":"MEQCIGVZq7WiGcn6HM/RoKwOx9/ex9PHWvSii8MZ5zqCp7p3AiBMVn2dsu4zVnu9iPuCVXqYpQGwzX+J0mBQ4asjxtueSQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9773},"type":"module","_from":"file:altano-astro-table-of-contents-0.1.2.tgz","exports":{"./*":"./src/*"},"scripts":{"dev":"astro dev","lint":"eslint","clean":"rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist","format":"prettier --write src","lint:fix":"TIMING=1 eslint src/**/*.ts* --fix","test:e2e":"playwright test","lint:timing":"TIMING=1 eslint src/**/*.ts*","test:e2e:ui":"playwright test --ui","test:e2e:server":"astro dev --strictPort --port 4783","check:types:astro":"astro check --root src","check:unused-dependencies":"depcheck"},"_npmUser":{"name":"altano","actor":{"name":"altano","type":"user","email":"altano@gmail.com"},"email":"altano@gmail.com"},"_resolved":"/tmp/c7a2172b4b71b70b07b4e0187b836a47/altano-astro-table-of-contents-0.1.2.tgz","_integrity":"sha512-QMhdJU2bujcgeCuSWo+IWzVJVO+4Wn26Fnby38ZWIMSP27sfCUyRDOBT+MoerrvIj0NRDDed7TZhMd94gCAirw==","repository":{"url":"git+https://github.com/altano/npm-packages.git","type":"git","directory":"packages/astro-table-of-contents"},"_npmVersion":"10.9.2","description":"Table of Contents components for Astro","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"@altano/web-components":"0.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.2.6","astro":"^5.10.1","depcheck":"^1.4.7","prettier":"^3.5.3","astrobook":"^0.8.0","@types/node":"^22.13.10","@astrojs/check":"^0.9.4","@altano/testing":"0.0.1","@altano/tsconfig":"0.0.1","@playwright/test":"1.51.1","remark-sectionize":"^2.1.0","@altano/build-config":"0.0.1"},"peerDependencies":{"astro":"5.x.x"},"_npmOperationalInternal":{"tmp":"tmp/astro-table-of-contents_0.1.2_1751863785609_0.3857843837839212","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@altano/astro-table-of-contents","version":"0.1.3","keywords":["astro","components","table-of-contents","toc"],"author":{"url":"https://alan.norbauer.com","name":"Alan Norbauer","email":"altano@gmail.com"},"license":"ISC","_id":"@altano/astro-table-of-contents@0.1.3","maintainers":[{"name":"altano","email":"altano@gmail.com"}],"homepage":"https://github.com/altano/npm-packages/tree/main/packages/astro-table-of-contents","bugs":{"url":"https://github.com/altano/npm-packages/issues"},"dist":{"shasum":"a492a5e76190c4808cc6497833c2d3b02fa50088","tarball":"https://registry.npmjs.org/@altano/astro-table-of-contents/-/astro-table-of-contents-0.1.3.tgz","fileCount":5,"integrity":"sha512-bXBDEk8dShekaAqS9xKA+qFNBEowHO/VaXrReu6kSycl1XbE2jkJijH5FqbsJU2u+u55C448tRq6WXNZbudyKQ==","signatures":[{"sig":"MEUCIHIFKaEvnftoAnOmTHC+IiQ92L7IYWncNLT8k1exHJ50AiEAlBwcUwm0sWzcJ7kLe4HxxFPEJh8z9VdD4DjJBWMfMZ4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9778},"type":"module","_from":"file:altano-astro-table-of-contents-0.1.3.tgz","exports":{"./*":"./src/*"},"scripts":{"dev":"astro dev","lint":"eslint","clean":"rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist","format":"prettier --write src","lint:fix":"TIMING=1 eslint src/**/*.ts* --fix","test:e2e":"playwright test","lint:timing":"TIMING=1 eslint src/**/*.ts*","test:e2e:ui":"playwright test --ui","test:e2e:server":"astro dev --strictPort --port 4783","check:types:astro":"astro check --root src","check:unused-dependencies":"depcheck"},"_npmUser":{"name":"altano","actor":{"name":"altano","type":"user","email":"altano@gmail.com"},"email":"altano@gmail.com"},"_resolved":"/tmp/24be2903276eb8342abb132af050ec88/altano-astro-table-of-contents-0.1.3.tgz","_integrity":"sha512-bXBDEk8dShekaAqS9xKA+qFNBEowHO/VaXrReu6kSycl1XbE2jkJijH5FqbsJU2u+u55C448tRq6WXNZbudyKQ==","repository":{"url":"git+https://github.com/altano/npm-packages.git","type":"git","directory":"packages/astro-table-of-contents"},"_npmVersion":"10.9.2","description":"Table of Contents components for Astro","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"@altano/web-components":"0.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^6.2.6","astro":"^5.10.1","depcheck":"^1.4.7","prettier":"^3.5.3","astrobook":"^0.8.0","@types/node":"^22.13.10","@astrojs/check":"^0.9.4","@altano/testing":"0.0.1","@altano/tsconfig":"0.0.1","@playwright/test":"1.51.1","remark-sectionize":"^2.1.0","@altano/build-config":"0.0.1"},"peerDependencies":{"astro":"5.x.x"},"_npmOperationalInternal":{"tmp":"tmp/astro-table-of-contents_0.1.3_1751936753652_0.32089517983248483","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@altano/astro-table-of-contents","version":"1.0.0","keywords":["astro","components","table-of-contents","toc"],"author":{"url":"https://alan.norbauer.com","name":"Alan Norbauer","email":"altano@gmail.com"},"license":"ISC","_id":"@altano/astro-table-of-contents@1.0.0","maintainers":[{"name":"altano","email":"altano@gmail.com"}],"homepage":"https://github.com/altano/npm-packages/tree/main/packages/astro-table-of-contents","bugs":{"url":"https://github.com/altano/npm-packages/issues"},"dist":{"shasum":"16023fdedbafd459ef15f0b72ded9f0003b1a1df","tarball":"https://registry.npmjs.org/@altano/astro-table-of-contents/-/astro-table-of-contents-1.0.0.tgz","fileCount":5,"integrity":"sha512-UQ0hupJ1sPbEqDeGCQHMkAObHk0p7g16JaxTVWdaMsBiXZbxfwYHohmYc5CtJBKs+Vs074ukRLUD/239RZZhow==","signatures":[{"sig":"MEYCIQCY2mlFS7Dr//FCSIYpzffPA/eBGczcv3R//uF35NGCHgIhAJMBXN0JdQeMyJY2T4c4yXlCOmoIt7IpTH4Ssgu6xYzz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@altano%2fastro-table-of-contents@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":9840},"type":"module","_from":"file:altano-astro-table-of-contents-1.0.0.tgz","exports":{"./*":"./src/*"},"scripts":{"dev":"astro dev","lint":"eslint","clean":"rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist","format":"prettier --write src","lint:fix":"TIMING=1 eslint src/**/*.ts* --fix","test:e2e":"NODE_OPTIONS='--no-experimental-strip-types' playwright test","lint:timing":"TIMING=1 eslint src/**/*.ts*","test:e2e:ui":"playwright test --ui","test:e2e:server":"astro dev --strictPort --port 4783","check:types:astro":"astro check --tsconfig tsconfig.astro.json","check:unused-dependencies":"depcheck"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2d91620b-0161-448a-b893-4f35a9ddb486"}},"_resolved":"/tmp/bb4a58597269549088c3fddd4e832a3a/altano-astro-table-of-contents-1.0.0.tgz","_integrity":"sha512-UQ0hupJ1sPbEqDeGCQHMkAObHk0p7g16JaxTVWdaMsBiXZbxfwYHohmYc5CtJBKs+Vs074ukRLUD/239RZZhow==","repository":{"url":"git+https://github.com/altano/npm-packages.git","type":"git","directory":"packages/astro-table-of-contents"},"_npmVersion":"11.11.0","description":"Table of Contents components for Astro","directories":{},"sideEffects":false,"_nodeVersion":"25.8.1","dependencies":{"@altano/web-components":"0.0.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","astro":"^6.0.8","depcheck":"^1.4.7","prettier":"^3.8.1","astrobook":"^0.12.4","@types/node":"^25.5.0","@astrojs/check":"^0.9.8","@altano/testing":"0.0.1","@altano/tsconfig":"0.0.1","@playwright/test":"1.58.2","remark-sectionize":"^2.1.0","@altano/build-config":"0.0.1"},"peerDependencies":{"astro":"6.x.x"},"_npmOperationalInternal":{"tmp":"tmp/astro-table-of-contents_1.0.0_1774241732156_0.354730393975085","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@altano/astro-table-of-contents","version":"1.0.1","keywords":["astro","components","table-of-contents","toc"],"author":{"url":"https://alan.norbauer.com","name":"Alan Norbauer","email":"alan@norbauer.com"},"license":"ISC","_id":"@altano/astro-table-of-contents@1.0.1","maintainers":[{"name":"altano","email":"alan@norbauer.com"}],"homepage":"https://github.com/altano/npm-packages/tree/main/packages/astro-table-of-contents","bugs":{"url":"https://github.com/altano/npm-packages/issues"},"dist":{"shasum":"1a4c48ef3851f1c745ccccc543088f601995d8c1","tarball":"https://registry.npmjs.org/@altano/astro-table-of-contents/-/astro-table-of-contents-1.0.1.tgz","fileCount":5,"integrity":"sha512-9V/nTeBAO0UuzNhEDGSt/wAPu1+taK3qRrLof/KAlzMg5s6x2RMkf8VyRdDIh2UgUGoPD1fTdkypNxdBLUY+4g==","signatures":[{"sig":"MEQCIG61b7AZaFd/9RH1k/ZFafhjN6mzIOQ4C7FchbYfA9oiAiBei2nQvR9GyRay11s2us/no8NhfECAEoaDRYsQK244kw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@altano%2fastro-table-of-contents@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":9841},"type":"module","_from":"file:altano-astro-table-of-contents-1.0.1.tgz","exports":{"./*":"./src/*"},"scripts":{"dev":"astro dev","lint":"eslint","clean":"rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist","format":"prettier --write src","lint:fix":"TIMING=1 eslint src/**/*.ts* --fix","test:e2e":"NODE_OPTIONS='--no-experimental-strip-types' playwright test","lint:timing":"TIMING=1 eslint src/**/*.ts*","test:e2e:ui":"playwright test --ui","test:e2e:server":"astro dev --strictPort --port 4783","check:types:astro":"astro check --tsconfig tsconfig.astro.json","check:unused-dependencies":"depcheck"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2d91620b-0161-448a-b893-4f35a9ddb486"}},"_resolved":"/tmp/nix-shell.2l706S/7c356d5b83fbfaa3d91c42f7143d5b62/altano-astro-table-of-contents-1.0.1.tgz","_integrity":"sha512-9V/nTeBAO0UuzNhEDGSt/wAPu1+taK3qRrLof/KAlzMg5s6x2RMkf8VyRdDIh2UgUGoPD1fTdkypNxdBLUY+4g==","repository":{"url":"git+https://github.com/altano/npm-packages.git","type":"git","directory":"packages/astro-table-of-contents"},"_npmVersion":"11.12.1","description":"Table of Contents components for Astro","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"@altano/web-components":"0.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.1","astro":"^6.0.8","depcheck":"^1.4.7","prettier":"^3.8.1","astrobook":"^0.12.4","@types/node":"^25.5.0","@astrojs/check":"^0.9.8","@altano/testing":"0.0.1","@altano/tsconfig":"0.0.1","@playwright/test":"1.59.1","remark-sectionize":"^2.1.0","@altano/build-config":"0.0.1"},"peerDependencies":{"astro":"6.x.x"},"_npmOperationalInternal":{"tmp":"tmp/astro-table-of-contents_1.0.1_1778019737914_0.5868532799360298","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@altano/astro-table-of-contents","version":"2.0.0","description":"Table of Contents components for Astro","keywords":["astro","components","table-of-contents","toc"],"homepage":"https://github.com/altano/npm-packages/tree/main/packages/astro-table-of-contents","repository":{"type":"git","url":"https://github.com/altano/npm-packages","directory":"packages/astro-table-of-contents"},"license":"ISC","author":{"name":"Alan Norbauer","email":"alan@norbauer.com","url":"https://alan.norbauer.com"},"sideEffects":false,"type":"module","exports":{"./*":"./src/*"},"dependencies":{"@altano/web-components":"0.0.7"},"devDependencies":{"@astrojs/check":"^0.9.9","@playwright/test":"1.59.1","@types/node":"^26.1.1","astro":"^7.1.3","astrobook":"^0.13.2","depcheck":"^1.4.7","prettier":"3.9.6","remark-sectionize":"^2.1.0","vite":"^8.1.5","@altano/build-config":"0.0.1","@altano/testing":"0.0.1","@altano/tsconfig":"0.0.1"},"peerDependencies":{"astro":"7.x.x"},"publishConfig":{"access":"public"},"scripts":{"check:types:astro":"astro check --tsconfig tsconfig.astro.json","check:unused-dependencies":"depcheck","clean":"rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist","dev":"astro dev","format":"prettier --check .","format:fix":"prettier --write .","lint":"eslint","lint:fix":"TIMING=1 eslint src/**/*.ts* --fix","lint:timing":"TIMING=1 eslint src/**/*.ts*","test:e2e":"NODE_OPTIONS='--no-experimental-strip-types' playwright test","test:e2e:server":"astro dev --strictPort --port 4783","test:e2e:ui":"playwright test --ui"},"_nodeVersion":"24.18.0","_id":"@altano/astro-table-of-contents@2.0.0","dist":{"integrity":"sha512-GmMDyb6Aijyiy34DuS0sncLZnv3/472pZhihiRBeqzLPUKa1xJxXwoITh4xigR689QN4wekVXYP+O+m0ZX/OqQ==","shasum":"b35eb4923dcde5e90d10d55954f3c7f8ca0f2432","tarball":"https://registry.npmjs.org/@altano/astro-table-of-contents/-/astro-table-of-contents-2.0.0.tgz","fileCount":5,"unpackedSize":9878,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@altano%2fastro-table-of-contents@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCZ8zcesO1xy88bYbDbQLS7Cxx007hxbDTd+KAHjA2SHgIgR83vzzBK0rb9sWGhUMkioWFrcpHYcwKmipXiDhmKw0U="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2d91620b-0161-448a-b893-4f35a9ddb486"}},"directories":{},"maintainers":[{"name":"altano","email":"alan@norbauer.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/astro-table-of-contents_2.0.0_1785618463122_0.7580348269118218"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-30T23:57:26.216Z","modified":"2026-08-01T21:07:43.610Z","0.0.2":"2025-06-30T23:57:26.465Z","0.0.3":"2025-07-01T01:55:15.021Z","0.1.0":"2025-07-01T08:15:22.646Z","0.1.1":"2025-07-02T06:50:01.271Z","0.1.2":"2025-07-07T04:49:45.823Z","0.1.3":"2025-07-08T01:05:53.877Z","1.0.0":"2026-03-23T04:55:32.339Z","1.0.1":"2026-05-05T22:22:18.122Z","2.0.0":"2026-08-01T21:07:43.262Z"},"author":{"name":"Alan Norbauer","email":"alan@norbauer.com","url":"https://alan.norbauer.com"},"license":"ISC","homepage":"https://github.com/altano/npm-packages/tree/main/packages/astro-table-of-contents","keywords":["astro","components","table-of-contents","toc"],"repository":{"type":"git","url":"https://github.com/altano/npm-packages","directory":"packages/astro-table-of-contents"},"description":"Table of Contents components for Astro","maintainers":[{"name":"altano","email":"alan@norbauer.com"}],"readme":"# astro-table-of-contents\n\nA set of Astro components to help you make a table of contents.\n\n## TableOfContents.astro\n\nGenerate the markup for a table of contents from Astro's `headings` object.\n\n### Getting the `headings` object from Astro\n\nIf you're importing your markdown directly ([documentation](https://docs.astro.build/en/guides/markdown-content/#importing-markdown)):\n\n```astro\n---\nimport {getHeadings} from \"./Article.md\";\nconst headings = getHeadings();\n---\n```\n\nIf you're using content collections ([documentation](https://docs.astro.build/en/guides/markdown-content/#markdown-from-content-collections-queries)):\n\n```astro\n---\nimport { getEntry } from \"astro:content\";\nconst article = await getEntry(\"articles\", Astro.props.slug);\nconst { headings } = await article.render();\n---\n```\n\n### Component Props\n\n- `headings` (required) - The heading property from Astro-rendered markdown [an automatically-generated `headings` property](https://docs.astro.build/en/guides/markdown-content/#markdown-from-content-collections-queries).\n- `class` (optional) - A class with styles to pass down to the `ul` in the table of contents\n- `fromDepth` (optional) - A minimum depth for the table of contents, which defaults to 1 (i.e. include `h1` and above).\n- `toDepth` (optional) - A maximum depth for the table of contents, which defaults to 6 (i.e. include `h6` and below).\n\n### Example - Custom Heading Depths\n\n```astro\n---\nimport TableOfContents from \"@altano/astro-table-of-contents/TableOfContents.astro\";\n\nconst { headings } = await Astro.props.article.render();\n---\n\n<TableOfContents {headings} fromDepth={2} toDepth={5} />\n```\n\nThis will only include `h2`-`h5` from `headings`.\n\n### Example - Add Styling\n\n```astro\n---\nimport TableOfContents from \"@altano/astro-table-of-contents/TableOfContents.astro\";\n\nconst { headings } = await Astro.props.article.render();\n---\n\n\n<style>\n  nav {\n    position: sticky;\n    top: 0;\n    max-height: 100vh;\n    overflow-y: auto;\n  }\n\n  .toc {\n    a {\n      color: orangered;\n      /**\n       * different color based on nav level\n       */\n      &[aria-level=\"2\"] {\n        color: blue;\n      }\n      &[aria-level=\"3\"] {\n        color: cyan;\n      }\n    }\n  }\n</style>\n\n\n<nav>\n  <TableOfContentsWithScrollSpy class=\"toc\" {headings} />\n</nav>\n```\n\n## Styling Based On Visibility\n\n![Animation showing a page being scrolled from top-to-bottom, demonstrating the styling of links changing as the page scrolls down.](./assets/visibility-styling.avif)\n\nTo style elements of your table of contents differently depending on whether or not the target section is visible, e.g. color links differently when the link target is visible, you must:\n\n1. Wrap your article with an `ArticleSectionVisibilityObserver.astro` component, and\n2. Use `TableOfContentsWithScrollSpy.astro` for your table of contents.\n3. Add styles that use the `aria-current` attribute, such as styling active anchors to be a different color or opacity.\n4. Your content must be in sections. If you're using Markdown, you can automatically sectionize (based on headings) with the `remark-sectionize` plugin ([example](https://github.com/altano/alan.norbauer.com/blob/b0666f0f13cdf3688bed47286d6a8cfea548abd4/astro.config.ts#L38)).\n\ne.g. your Astro component should look something like:\n\n```astro\n---\nimport ArticleSectionVisibilityObserver from \"@altano/astro-table-of-contents/ArticleSectionVisibilityObserver.astro\";\nimport TableOfContentsWithScrollSpy from \"@altano/astro-table-of-contents/TableOfContentsWithScrollSpy.astro\";\n\nconst { headings } = await Astro.props.article.render();\n---\n\n<style>\n  .toc {\n    a {\n      color: inherit;\n      /* Make links to invisible sections faded */\n      opacity: 0.4;\n      /**\n       * The `aria-current` attribute is true when the anchor's target is\n       * visible. Color such links orangered to make them stand out.\n       */\n      &[aria-current=\"true\"] {\n        opacity: 1;\n        color: orangered;\n      }\n    }\n  }\n</style>\n\n<div>\n  <nav>\n    <TableOfContentsWithScrollSpy {headings} class=\"toc\" />\n  </nav>\n  <ArticleSectionVisibilityObserver>\n    <article>\n      <section>\n        <h2>Heading 1</h2>\n        ...\n      </section>\n      <section>\n        <h2>Heading 2</h2>\n        ...\n      </section>\n    </article>\n  </ArticleSectionVisibilityObserver>\n</div>\n```\n\nThis uses a standard custom element (a web component) to monitor the visible article sections (using `IntersectionObserver`) and another standard custom element to set `aria-current=true` on anchor elements whose section is visible. The runtime (vanilla) JS added is very tiny, roughly 740 bytes (minified + gzipped). BYTES, not kilobytes.\n\n## Live Demo\n\nYou can see these components in use on [my personal site](https://alan.norbauer.com/articles/browser-debugging-tricks/). The relevant source code for this site can be found [here](https://github.com/altano/alan.norbauer.com/blob/aeea9daa9d336682b4c794fa26cdfdd361ad4160/src/components/article/TableOfContents.astro#L63) [here](https://github.com/altano/alan.norbauer.com/blob/aeea9daa9d336682b4c794fa26cdfdd361ad4160/src/pages/articles/%5Bslug%5D/index.astro#L412) and [here](https://github.com/altano/alan.norbauer.com/blob/aeea9daa9d336682b4c794fa26cdfdd361ad4160/src/layouts/ArticleLayout.astro#L159).\n","readmeFilename":""}