{"_id":"@dreamcatcher-tech/commit-graph","_rev":"5-32e5fe2db0cac14a7ae112302b4c84d1","name":"@dreamcatcher-tech/commit-graph","dist-tags":{"latest":"2.2.9"},"versions":{"2.2.4":{"name":"@dreamcatcher-tech/commit-graph","version":"2.2.4","keywords":["commit","graph","react"],"author":{"name":"Liu Liu","email":"liuliu.developer@gmail.com"},"license":"MIT","_id":"@dreamcatcher-tech/commit-graph@2.2.4","maintainers":[{"name":"evil_liskov","email":"evil_liskov@protonmail.com"}],"contributors":[{"name":"Xiang Zhu","email":"zxwind@gmail.com"}],"homepage":"https://liuliu-dev.github.io/CommitGraph/","bugs":{"url":"https://github.com/dreamcatcher-tech/CommitGraph/issues"},"dist":{"shasum":"7987d65ad506034309270490aaa5e41c35fedc14","tarball":"https://registry.npmjs.org/@dreamcatcher-tech/commit-graph/-/commit-graph-2.2.4.tgz","fileCount":84,"integrity":"sha512-8CoE1mWzBEFQRU7sMxNS0eOxfqeOLem5o5V1iq/g0Vf4XG4PmYBIeWia6huMKd1+aN86fvngXVXn9Nu4o64B6Q==","signatures":[{"sig":"MEYCIQDrneRB/vyeWvgtUGdbvGv2Kydo6UoFKw73g26PrUNTZwIhAJ0oX6xRdm0SpKQ94q3jcAweqS0sH5LUeQZYMn2J/G6Y","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5053013},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"]},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","gitHead":"48bb79ed04a439ec055693e791adfd19739f5ee1","scripts":{"ci":"npm-run-all prettier lint test build","dev":"next dev","lint":"next lint","test":"jest","build":"rollup -c --bundleConfigAsCjs","start":"next start","prettier":"prettier --write \"src/**/*.{js,jsx,ts,tsx,css}\"","storybook":"storybook dev -p 6006","yalc:push":"npm run build && yalc push","yalc:publish":"npm run build && yalc publish","build-storybook":"storybook build","deploy-storybook":"gh-pages -d storybook-static"},"_npmUser":{"name":"evil_liskov","email":"evil_liskov@protonmail.com"},"repository":{"url":"git+https://github.com/dreamcatcher-tech/CommitGraph.git","type":"git"},"_npmVersion":"10.2.4","description":"A React component to visualize a commit graph.","directories":{},"_nodeVersion":"21.6.2","dependencies":{"react":">=18.0.0","react-dom":">=18.0.0","classnames":"^2.3.2","react-tooltip":"^5.26.3","reactjs-popup":"^2.0.6","@dolthub/web-utils":"^0.1.5","react-infinite-scroller":"^1.2.6"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","next":"^14.1.0","yalc":"^1.0.0-pre.53","rollup":"^4.12.0","ts-jest":"^29.1.2","gh-pages":"^6.1.1","prettier":"^3.2.5","storybook":"^8.0.0","typescript":"^5.4.2","npm-run-all":"^4.1.5","@types/react":"^18.2.57","@storybook/react":"^8.0.0","@storybook/nextjs":"^8.0.0","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","rollup-plugin-postcss":"^4.0.2","eslint-config-prettier":"^9.1.0","@rollup/plugin-commonjs":"^26.0.1","@rollup/plugin-typescript":"^11.1.6","@typescript-eslint/parser":"8.6.0","eslint-config-airbnb-base":"latest","@rollup/plugin-node-resolve":"^15.2.3","@types/react-infinite-scroller":"^1.2.5","eslint-config-airbnb-typescript":"latest","@typescript-eslint/eslint-plugin":"8.5.0","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/commit-graph_2.2.4_1726610829955_0.3596813213008383","host":"s3://npm-registry-packages"}},"2.2.5":{"name":"@dreamcatcher-tech/commit-graph","version":"2.2.5","keywords":["commit","graph","react"],"author":{"name":"Liu Liu","email":"liuliu.developer@gmail.com"},"license":"MIT","_id":"@dreamcatcher-tech/commit-graph@2.2.5","maintainers":[{"name":"evil_liskov","email":"evil_liskov@protonmail.com"}],"contributors":[{"name":"Xiang Zhu","email":"zxwind@gmail.com"}],"homepage":"https://liuliu-dev.github.io/CommitGraph/","bugs":{"url":"https://github.com/dreamcatcher-tech/CommitGraph/issues"},"dist":{"shasum":"87b95c84c00625e6e005dca2efeb3435115a441e","tarball":"https://registry.npmjs.org/@dreamcatcher-tech/commit-graph/-/commit-graph-2.2.5.tgz","fileCount":84,"integrity":"sha512-rXnvr4qCUrPoF/8yqCb/uD1RNQlEG+UPMcVMrkOPkO3E+6RmSDr4mxN++oOZBwwTnijyLiwK7cUCPgHc7kPFfQ==","signatures":[{"sig":"MEUCIBWrTH8az6i+uZWODwZPciUWt49Lox1Cgc9iKeWfnb58AiEAmx+8kzHEFR3YRmlrdJsT3Ed5xGwu+qGN3c8AB/aSbb0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5052920},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"]},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","gitHead":"48bb79ed04a439ec055693e791adfd19739f5ee1","scripts":{"ci":"npm-run-all prettier lint test build","dev":"next dev","lint":"next lint","test":"jest","build":"rollup -c --bundleConfigAsCjs","start":"next start","prettier":"prettier --write \"src/**/*.{js,jsx,ts,tsx,css}\"","storybook":"storybook dev -p 6006","yalc:push":"npm run build && yalc push","yalc:publish":"npm run build && yalc publish","build-storybook":"storybook build","deploy-storybook":"gh-pages -d storybook-static"},"_npmUser":{"name":"evil_liskov","email":"evil_liskov@protonmail.com"},"repository":{"url":"git+https://github.com/dreamcatcher-tech/CommitGraph.git","type":"git"},"_npmVersion":"10.2.4","description":"A React component to visualize a commit graph.","directories":{},"_nodeVersion":"21.6.2","dependencies":{"react":">=18.0.0","react-dom":">=18.0.0","classnames":"^2.3.2","react-tooltip":"^5.26.3","reactjs-popup":"^2.0.6","@dolthub/web-utils":"^0.1.5","react-infinite-scroller":"^1.2.6"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","next":"^14.1.0","yalc":"^1.0.0-pre.53","rollup":"^4.12.0","ts-jest":"^29.1.2","gh-pages":"^6.1.1","prettier":"^3.2.5","storybook":"^8.0.0","typescript":"^5.4.2","npm-run-all":"^4.1.5","@types/react":"^18.2.57","@storybook/react":"^8.0.0","@storybook/nextjs":"^8.0.0","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","rollup-plugin-postcss":"^4.0.2","eslint-config-prettier":"^9.1.0","@rollup/plugin-commonjs":"^26.0.1","@rollup/plugin-typescript":"^11.1.6","@typescript-eslint/parser":"8.6.0","eslint-config-airbnb-base":"latest","@rollup/plugin-node-resolve":"^15.2.3","@types/react-infinite-scroller":"^1.2.5","eslint-config-airbnb-typescript":"latest","@typescript-eslint/eslint-plugin":"8.5.0","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/commit-graph_2.2.5_1726795806822_0.5432313027115858","host":"s3://npm-registry-packages"}},"2.2.6":{"name":"@dreamcatcher-tech/commit-graph","version":"2.2.6","keywords":["commit","graph","react"],"author":{"name":"Liu Liu","email":"liuliu.developer@gmail.com"},"license":"MIT","_id":"@dreamcatcher-tech/commit-graph@2.2.6","maintainers":[{"name":"evil_liskov","email":"evil_liskov@protonmail.com"}],"contributors":[{"name":"Xiang Zhu","email":"zxwind@gmail.com"}],"homepage":"https://liuliu-dev.github.io/CommitGraph/","bugs":{"url":"https://github.com/dreamcatcher-tech/CommitGraph/issues"},"dist":{"shasum":"8e300ea624ca626d8bdf364684d74598f05c24e5","tarball":"https://registry.npmjs.org/@dreamcatcher-tech/commit-graph/-/commit-graph-2.2.6.tgz","fileCount":84,"integrity":"sha512-WHgKm5ax2eDm137O8+iN+F4sW547d0EjSsDdsz0/SN4oZesg7k0g3USEEoDbtB2NYkN+taXssN676JGeOES5bQ==","signatures":[{"sig":"MEUCIQCZIqvytsvan6Hh/0n2lHva2YZWOirby6y8Q+aeOY1nUgIgFn/CPL/lzb4azuqcT3dNpYVLkSnAuCrm8u9Nzn9XJ8k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5052939},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"]},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","gitHead":"48bb79ed04a439ec055693e791adfd19739f5ee1","scripts":{"ci":"npm-run-all prettier lint test build","dev":"next dev","lint":"next lint","test":"jest","build":"rollup -c --bundleConfigAsCjs","start":"next start","prettier":"prettier --write \"src/**/*.{js,jsx,ts,tsx,css}\"","storybook":"storybook dev -p 6006","yalc:push":"npm run build && yalc push","yalc:publish":"npm run build && yalc publish","build-storybook":"storybook build","deploy-storybook":"gh-pages -d storybook-static"},"_npmUser":{"name":"evil_liskov","email":"evil_liskov@protonmail.com"},"repository":{"url":"git+https://github.com/dreamcatcher-tech/CommitGraph.git","type":"git"},"_npmVersion":"10.2.4","description":"A React component to visualize a commit graph.","directories":{},"_nodeVersion":"21.6.2","dependencies":{"react":">=18.0.0","react-dom":">=18.0.0","classnames":"^2.3.2","react-tooltip":"^5.26.3","reactjs-popup":"^2.0.6","@dolthub/web-utils":"^0.1.5","react-infinite-scroller":"^1.2.6"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","next":"^14.1.0","yalc":"^1.0.0-pre.53","rollup":"^4.12.0","ts-jest":"^29.1.2","gh-pages":"^6.1.1","prettier":"^3.2.5","storybook":"^8.0.0","typescript":"^5.4.2","npm-run-all":"^4.1.5","@types/react":"^18.2.57","@storybook/react":"^8.0.0","@storybook/nextjs":"^8.0.0","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","rollup-plugin-postcss":"^4.0.2","eslint-config-prettier":"^9.1.0","@rollup/plugin-commonjs":"^26.0.1","@rollup/plugin-typescript":"^11.1.6","@typescript-eslint/parser":"8.6.0","eslint-config-airbnb-base":"latest","@rollup/plugin-node-resolve":"^15.2.3","@types/react-infinite-scroller":"^1.2.5","eslint-config-airbnb-typescript":"latest","@typescript-eslint/eslint-plugin":"8.5.0","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/commit-graph_2.2.6_1726797501740_0.5032876517495286","host":"s3://npm-registry-packages"}},"2.2.7":{"name":"@dreamcatcher-tech/commit-graph","version":"2.2.7","keywords":["commit","graph","react"],"author":{"name":"Liu Liu","email":"liuliu.developer@gmail.com"},"license":"MIT","_id":"@dreamcatcher-tech/commit-graph@2.2.7","maintainers":[{"name":"evil_liskov","email":"evil_liskov@protonmail.com"}],"contributors":[{"name":"Xiang Zhu","email":"zxwind@gmail.com"}],"homepage":"https://liuliu-dev.github.io/CommitGraph/","bugs":{"url":"https://github.com/dreamcatcher-tech/CommitGraph/issues"},"dist":{"shasum":"792b277005f178dee86ef2a065e967f9579949df","tarball":"https://registry.npmjs.org/@dreamcatcher-tech/commit-graph/-/commit-graph-2.2.7.tgz","fileCount":84,"integrity":"sha512-4WwwRDVOntGFTEleACfiMIfYHssRAc021ievGthN9bYvRWTiI8flsV9Jvi5mpvv1wGgtFwRy9XSw1JaxRB2J/g==","signatures":[{"sig":"MEUCIQCojYyNOMTv8l+LHyg9nYmEeC/tTzygJscch9kWHmPGAwIgIcQp4OAQCOTVojnrXQ7TC9jDd4ZDk2eT8F34w32Uvqo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5052903},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"]},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","gitHead":"69ab854bf88c8192e36ee734d81980cd98a893bf","scripts":{"ci":"npm-run-all prettier lint test build","dev":"next dev","lint":"next lint","test":"jest","build":"rollup -c --bundleConfigAsCjs","start":"next start","prettier":"prettier --write \"src/**/*.{js,jsx,ts,tsx,css}\"","storybook":"storybook dev -p 6006","yalc:push":"npm run build && yalc push","yalc:publish":"npm run build && yalc publish","build-storybook":"storybook build","deploy-storybook":"gh-pages -d storybook-static"},"_npmUser":{"name":"evil_liskov","email":"evil_liskov@protonmail.com"},"repository":{"url":"git+https://github.com/dreamcatcher-tech/CommitGraph.git","type":"git"},"_npmVersion":"10.2.4","description":"A React component to visualize a commit graph.","directories":{},"_nodeVersion":"21.6.2","dependencies":{"react":">=18.0.0","react-dom":">=18.0.0","classnames":"^2.3.2","react-tooltip":"^5.26.3","reactjs-popup":"^2.0.6","@dolthub/web-utils":"^0.1.5","react-infinite-scroller":"^1.2.6"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","next":"^14.1.0","yalc":"^1.0.0-pre.53","rollup":"^4.12.0","ts-jest":"^29.1.2","gh-pages":"^6.1.1","prettier":"^3.2.5","storybook":"^8.0.0","typescript":"^5.4.2","npm-run-all":"^4.1.5","@types/react":"^18.2.57","@storybook/react":"^8.0.0","@storybook/nextjs":"^8.0.0","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","rollup-plugin-postcss":"^4.0.2","eslint-config-prettier":"^9.1.0","@rollup/plugin-commonjs":"^26.0.1","@rollup/plugin-typescript":"^11.1.6","@typescript-eslint/parser":"8.6.0","eslint-config-airbnb-base":"latest","@rollup/plugin-node-resolve":"^15.2.3","@types/react-infinite-scroller":"^1.2.5","eslint-config-airbnb-typescript":"latest","@typescript-eslint/eslint-plugin":"8.5.0","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/commit-graph_2.2.7_1727236244341_0.06654557007771489","host":"s3://npm-registry-packages"}},"2.2.8":{"name":"@dreamcatcher-tech/commit-graph","version":"2.2.8","keywords":["commit","graph","react"],"author":{"name":"Liu Liu","email":"liuliu.developer@gmail.com"},"license":"MIT","_id":"@dreamcatcher-tech/commit-graph@2.2.8","maintainers":[{"name":"evil_liskov","email":"evil_liskov@protonmail.com"}],"contributors":[{"name":"Xiang Zhu","email":"zxwind@gmail.com"}],"homepage":"https://liuliu-dev.github.io/CommitGraph/","bugs":{"url":"https://github.com/dreamcatcher-tech/CommitGraph/issues"},"dist":{"shasum":"55b3051eb61bf05141bdc8e5b1f85c10a1675507","tarball":"https://registry.npmjs.org/@dreamcatcher-tech/commit-graph/-/commit-graph-2.2.8.tgz","fileCount":86,"integrity":"sha512-ax6fzU/GbWiyOBP6Xcm2si0MOBS8EcbXQq43TYeTi2zJt5Cy6LrSAiWr0kHVZHXDEPQCX37AHByt3SAPEmcqTA==","signatures":[{"sig":"MEYCIQCs7H6dUV+0UZM4xcJ2MI9qr1SPjpYbFEpI49VvQXco6wIhALw6jMIeQ+mGNrrIGjM9znYahqc429W+F+dwblQ01lNc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18646877},"jest":{"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","transform":{".(ts|tsx)":"ts-jest"},"moduleFileExtensions":["ts","tsx","js"]},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","gitHead":"69ab854bf88c8192e36ee734d81980cd98a893bf","scripts":{"ci":"npm-run-all prettier lint test build","dev":"next dev","lint":"next lint","test":"jest","build":"rollup -c --bundleConfigAsCjs","start":"next start","prettier":"prettier --write \"src/**/*.{js,jsx,ts,tsx,css}\"","storybook":"storybook dev -p 6006","yalc:push":"npm run build && yalc push","yalc:publish":"npm run build && yalc publish","build-storybook":"storybook build","deploy-storybook":"gh-pages -d storybook-static"},"_npmUser":{"name":"evil_liskov","email":"evil_liskov@protonmail.com"},"repository":{"url":"git+https://github.com/dreamcatcher-tech/CommitGraph.git","type":"git"},"_npmVersion":"10.2.4","description":"A React component to visualize a commit graph.","directories":{},"_nodeVersion":"21.6.2","dependencies":{"react":">=18.0.0","react-dom":">=18.0.0","classnames":"^2.3.2","react-tooltip":"^5.26.3","reactjs-popup":"^2.0.6","@dolthub/web-utils":"^0.1.5","react-infinite-scroller":"^1.2.6"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","next":"^14.1.0","yalc":"^1.0.0-pre.53","rollup":"^4.12.0","ts-jest":"^29.1.2","gh-pages":"^6.1.1","prettier":"^3.2.5","storybook":"^8.0.0","typescript":"^5.4.2","npm-run-all":"^4.1.5","@types/react":"^18.2.57","@storybook/react":"^8.0.0","@storybook/nextjs":"^8.0.0","rollup-plugin-dts":"^6.1.0","@rollup/plugin-terser":"^0.4.4","rollup-plugin-postcss":"^4.0.2","eslint-config-prettier":"^9.1.0","@rollup/plugin-commonjs":"^26.0.1","@rollup/plugin-typescript":"^11.1.6","@typescript-eslint/parser":"8.6.0","eslint-config-airbnb-base":"latest","@rollup/plugin-node-resolve":"^15.2.3","@types/react-infinite-scroller":"^1.2.5","eslint-config-airbnb-typescript":"latest","@typescript-eslint/eslint-plugin":"8.5.0","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/commit-graph_2.2.8_1727408486751_0.6330190676034599","host":"s3://npm-registry-packages"}},"2.2.9":{"name":"@dreamcatcher-tech/commit-graph","version":"2.2.9","homepage":"https://liuliu-dev.github.io/CommitGraph/","author":{"name":"Liu Liu","email":"liuliu.developer@gmail.com"},"description":"A React component to visualize a commit graph.","contributors":[{"name":"Xiang Zhu","email":"zxwind@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/dreamcatcher-tech/CommitGraph.git"},"license":"MIT","keywords":["commit","graph","react"],"scripts":{"dev":"next dev","build":"rollup -c --bundleConfigAsCjs","start":"next start","lint":"next lint","storybook":"storybook dev -p 6006","build-storybook":"storybook build","test":"jest","yalc:publish":"npm run build && yalc publish","yalc:push":"npm run build && yalc push","prettier":"prettier --write \"src/**/*.{js,jsx,ts,tsx,css}\"","ci":"npm-run-all prettier lint test build","deploy-storybook":"gh-pages -d storybook-static"},"jest":{"transform":{".(ts|tsx)":"ts-jest"},"testRegex":"(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$","moduleFileExtensions":["ts","tsx","js"]},"dependencies":{"@dolthub/web-utils":"^0.1.5","classnames":"^2.3.2","react":">=18.0.0","react-dom":">=18.0.0","react-infinite-scroller":"^1.2.6","react-tooltip":"^5.26.3","reactjs-popup":"^2.0.6"},"devDependencies":{"@rollup/plugin-commonjs":"^26.0.1","@rollup/plugin-node-resolve":"^15.2.3","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^11.1.6","@storybook/nextjs":"^8.0.0","@storybook/react":"^8.0.0","@types/react":"^18.2.57","@types/react-infinite-scroller":"^1.2.5","@typescript-eslint/eslint-plugin":"8.5.0","@typescript-eslint/parser":"8.6.0","eslint-config-airbnb-base":"latest","eslint-config-airbnb-typescript":"latest","eslint-config-prettier":"^9.1.0","gh-pages":"^6.1.1","jest":"^29.7.0","next":"^14.1.0","npm-run-all":"^4.1.5","prettier":"^3.2.5","rollup":"^4.12.0","rollup-plugin-dts":"^6.1.0","rollup-plugin-peer-deps-external":"^2.2.4","rollup-plugin-postcss":"^4.0.2","storybook":"^8.0.0","ts-jest":"^29.1.2","typescript":"^5.4.2","yalc":"^1.0.0-pre.53"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/index.d.ts","_id":"@dreamcatcher-tech/commit-graph@2.2.9","gitHead":"69ab854bf88c8192e36ee734d81980cd98a893bf","bugs":{"url":"https://github.com/dreamcatcher-tech/CommitGraph/issues"},"_nodeVersion":"21.6.2","_npmVersion":"10.2.4","dist":{"integrity":"sha512-kcJCiPdChK0Ql2EUcc8h0Xs3qLrdPa7E9yxOvET+mg5vkdc1Q82js9DR1NIhNnSl9J9uUrj89kHDXwbkbhN39A==","shasum":"f4f3b41eec115e916b3ff434f9b7d48813665565","tarball":"https://registry.npmjs.org/@dreamcatcher-tech/commit-graph/-/commit-graph-2.2.9.tgz","fileCount":86,"unpackedSize":18646790,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2TsU8rO090JPOZb2nzVvdHWKizAeFN9cmu3TS4ZtKkAIgN6PTIFc4y6iFg6I/2QpWY2d+pHmHp9oPbT/oyyHC+ho="}]},"_npmUser":{"name":"evil_liskov","email":"evil_liskov@protonmail.com"},"directories":{},"maintainers":[{"name":"evil_liskov","email":"evil_liskov@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/commit-graph_2.2.9_1727408924332_0.607885184326622"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-17T22:07:09.789Z","modified":"2024-09-27T03:48:44.848Z","2.2.4":"2024-09-17T22:07:10.275Z","2.2.5":"2024-09-20T01:30:07.164Z","2.2.6":"2024-09-20T01:58:22.002Z","2.2.7":"2024-09-25T03:50:44.567Z","2.2.8":"2024-09-27T03:41:27.040Z","2.2.9":"2024-09-27T03:48:44.656Z"},"bugs":{"url":"https://github.com/dreamcatcher-tech/CommitGraph/issues"},"author":{"name":"Liu Liu","email":"liuliu.developer@gmail.com"},"license":"MIT","homepage":"https://liuliu-dev.github.io/CommitGraph/","keywords":["commit","graph","react"],"repository":{"type":"git","url":"git+https://github.com/dreamcatcher-tech/CommitGraph.git"},"description":"A React component to visualize a commit graph.","contributors":[{"name":"Xiang Zhu","email":"zxwind@gmail.com"}],"maintainers":[{"name":"evil_liskov","email":"evil_liskov@protonmail.com"}],"readme":"# Commit Graph\n\n[![readme-header](https://github.com/liuliu-dev/CommitGraph/blob/main/graph.gif)](https://liuliu-dev.github.io/CommitGraph/)\n\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n## Overview\n\nThe Commit Graph package is a React component suite designed to visualize commit graphs in an interactive and informative way. It showcases commit history within a repository with support for infinite scroll loading. See [this post](https://www.dolthub.com/blog/2024-08-07-drawing-a-commit-graph/) for the implementation details.\n\n`CommitGraph` is utilized by platforms like [DoltHub](https://www.dolthub.com) to visualize database commit log histories.\n\n## Demo\n\nThe [demo](https://liuliu-dev.github.io/CommitGraph/) features sample commit data and real GitHub repository graphs.\n\n## Features\n\n- **Interactive Commit Graph Visualization:** Render commit history as an interactive graph, offering a clear and detailed view of repository activities.\n- **Infinite Scroll Support:** `CommitGraph.WithInfiniteScroll` enhances the user experience for large commit histories by dynamically loading new content as users scroll.\n- **Customizable Styles:** Extensive styling options for the commit log graph, including node colors, spacing, and more, to seamlessly match your project's design.\n\n## Installation\n\n```shell\nnpm install commit-graph\n```\n\n## Quick Start\n\n### Using CommitGraph\n\nFor a basic implementation without infinite scroll:\n\n```jsx\nimport React from \"react\";\nimport { CommitGraph } from \"commit-graph\";\n\nconst MyComponent = () => {\n  const commits = [\n    // Commits data according to the new Commit type\n  ];\n  const branchHeads = [\n    // Branch heads data according to the new Branch type\n  ];\n\n  return (\n    <CommitGraph\n      commits={commits}\n      branchHeads={branchHeads}\n      graphStyle={{\n        commitSpacing: 50,\n        branchSpacing: 20,\n        branchColors: [\"#FF0000\", \"#00FF00\", \"#0000FF\"],\n        nodeRadius: 2,\n      }}\n    />\n  );\n};\n\nexport default MyComponent;\n```\n\n### Using CommitGraph.WithInfiniteScroll\n\nFor implementations requiring infinite scroll to handle large commit histories:\n\n```jsx\nimport React from \"react\";\nimport { CommitGraph } from \"commit-graph\";\n\nconst MyComponent = () => {\n  // Your commit and branch head data, loadMore function, and hasMore flag\n  return (\n    <CommitGraph.WithInfiniteScroll\n      commits={/* Your commits data */}\n      branchHeads={/* Your branch heads data */}\n      loadMore={/* Your loadMore function */}\n      hasMore={/* hasMore flag */}\n    />\n  );\n};\n\nexport default MyComponent;\n```\n\n## Props\n\n### Common Props for CommitGraph and CommitGraph.WithInfiniteScroll\n\n- commits (array): An array of `Commit` objects representing the commit history.\n- branchHeads (array): An array of `Branch` objects representing the branch heads in the commit-graph.\n\n### Additional Props for CommitGraph.WithInfiniteScroll\n\n- loadMore (function): Function to load more commits upon reaching the scroll end.\n- hasMore (boolean): Indicates whether more commits are available to load.\n\n## Type Definitions\n\nThese type definitions should be used to structure the data passed to the commits and branchHeads props of both CommitGraph and CommitGraph.WithInfiniteScroll components, ensuring proper visualization of commit history and branch information.\n\n### `Commit` Type\n\nThe `Commit` type represents individual commits in the commit history. Each `Commit` object should conform to the following structure:\n\n```typescript\ntype ParentCommit = {\n  sha: string;\n};\n\nexport type Commit = {\n  sha: string;\n  commit: {\n    author: {\n      name: string; // The name of the commit author\n      date: string | number | Date; // The date of the commit\n      email?: string; // The email of the commit author (optional)\n    };\n    message: string; // The commit message\n  };\n  parents: ParentCommit[]; // An array of parent commits\n  html_url?: string; // The URL to view the commit (optional)\n};\n```\n\nThis type definition includes the commit's SHA, author information, commit message, an array of parent commits, and an optional URL to the commit.\n\n### `Branch` Type\n\nThe `Branch` type defines the structure for branches in the repository, each associated with a particular commit:\n\n```typescript\nexport type Branch = {\n  name: string; // The name of the branch\n  commit: {\n    sha: string; // The SHA of the latest commit on the branch\n  };\n  link?: string; // A URL to the branch on GitHub (optional)\n};\n```\n\nEach Branch object should include the branch's name, the SHA of the latest commit on the branch, and an optional link to the branch.\n\n### `graphStyle` (object, optional)\n\nAn optional object specifying the styling options for the commit-graph. The `graphStyle` object should have the following properties:\n\n- `commitSpacing` (number): The vertical spacing between commits.\n- `branchSpacing` (number): The horizontal spacing between branches.\n- `branchColors` (array of strings): An array of colors to be used for different branches. Default: `['#FF0000', '#00FF00', '#0000FF']`.\n- `nodeRadius` (number): The radius of the commit node circles.\n\n### `dateFormatFn` (function, optional)\n\nAn optional function to format commit dates. Takes a Date, number, or string as input and returns a string.\n\n```typescript\ndateFormatFn?: (d: string | number | Date) => string;\n```\n\nexample:\n\n```typescript\nconst customDateTimeFormatFn = (d: string | number | Date): string => {\n  return new Date(d).toLocaleString('en-US', {\n      year: 'numeric',\n      month: 'short',\n      day: 'numeric',\n      hour: '2-digit',\n      minute: '2-digit',\n      second: '2-digit',\n  });\n};\n\nconst MyComponent = () => {\n  // Your commit and branch head data, loadMore function, and hasMore flag\n  return (\n    <CommitGraph.WithInfiniteScroll\n      commits={/* Your commits data */}\n      branchHeads={/* Your branch heads data */}\n      loadMore={/* Your loadMore function */}\n      hasMore={/* hasMore flag */}\n      dateFormatFn={customDateTimeFormatFn}\n    />\n  );\n};\n\n```\n\n### `currentBranch` (string, optional)\n\nThe name of the current branch.\n\n### `fullSha` (boolean, optional)\n\nInstead of the default shortened SHA, display the full SHA of the commit.\n\n## Storybook\n\nExplore the Commit Graph component and its features by running storybook:\n\n```shell\nnpm run storybook\n```\n","readmeFilename":"README.md"}