{"_id":"@capmao/use-antd-resizable-header","_rev":"4-8d6347527a2a62967c86c698a0737589","name":"@capmao/use-antd-resizable-header","dist-tags":{"latest":"2.3.10"},"versions":{"2.3.5":{"name":"@capmao/use-antd-resizable-header","version":"2.3.5","description":"antd resizable header column hook","author":{"name":"capmao","email":"capmao@aliyun.com"},"types":"dist/index.d.ts","main":"dist/index.umd.js","module":"dist/index.es.js","bugs":{"url":"https://github.com/jessemao/use-antd-resizable-header/issues"},"homepage":"https://github.com/jessemao/use-antd-resizable-header","keywords":["react","antd","resiable header"],"license":"MIT","scripts":{"start":"vite dev","build":"vite build","serve":"vite preview","precommit":"lint-staged","prettier":"prettier -c --write \"src/**/*\"","prerelease":"npm run build","release":"standard-version","postrelease":"git push && git push --follow-tags && npm run build && npm publish","upgrade:deps":"pnpm up -i --latest"},"lint-staged":{"src/**/*.{ts,tsx}":["prettier --write"],"**/*.{ts,tsx}":"eslint --ext .ts,.tsx"},"peerDependencies":{"@babel/core":">=7.0.0-0 <8.0.0","@babel/plugin-syntax-flow":"7.14.5","@babel/plugin-transform-react-jsx":"7.14.9","react":">=16.8.0","rollup":">=2.14.0 <3.0.0"},"dependencies":{"classnames":"^2.3.1","lodash.debounce":"^4.0.8","lodash.isempty":"4.4.0","lodash.isequalwith":"^4.4.0","lodash.isfunction":"^3.0.9","lodash.throttle":"^4.1.1","react":"^17.0.2","react-dom":"^17.0.2","react-resizable":"^3.0.4"},"devDependencies":{"@babel/core":">=7.0.0-0 <8.0.0","@babel/plugin-syntax-flow":"7.14.5","@babel/plugin-transform-react-jsx":"7.14.9","@commitlint/cli":"^16.2.4","@commitlint/config-conventional":"^16.2.4","@rollup/plugin-typescript":"^8.3.0","@types/lodash.isequalwith":"^4.4.6","@types/lodash.isfunction":"^3.0.6","@types/node":"^17.0.8","@types/react":"^17.0.38","@types/react-dom":"^17.0.11","@types/react-resizable":"^1.7.4","@vitejs/plugin-react":"^1.1.4","autoprefixer":"^10.4.2","eslint":"^8.6.0","eslint-config-prettier":"^8.3.0","eslint-config-react-app":"^7.0.0","eslint-define-config":"^1.2.2","eslint-plugin-prettier":"^4.0.0","husky":"^7.0.4","lint-staged":"^12.1.7","postcss":"^8.4.5","postcss-nesting":"^10.1.1","prettier":"^2.5.1","rollup":">=2.14.0 <3.0.0","rollup-plugin-postcss":"^4.0.2","semver":"^7.3.7","standard-version":"^9.3.2","tslib":"^2.3.1","typescript":"^4.5.4","vite":"^2.7.10"},"gitHead":"8c7288cbf3002559fbcd25086a35d9383c88407a","_id":"@capmao/use-antd-resizable-header@2.3.5","_nodeVersion":"16.4.1","_npmVersion":"7.18.1","dist":{"integrity":"sha512-MkqMI11BYvGTA/xgYkVLloHDfV+qVf9ick3izufokT4Hl3CZ/CTOWiq/KEfN3Uq123rpJSRY9RPnSjPvCjcguw==","shasum":"78fb139534af923370b150a5736f68ec856cfbb0","tarball":"https://registry.npmjs.org/@capmao/use-antd-resizable-header/-/use-antd-resizable-header-2.3.5.tgz","fileCount":9,"unpackedSize":185999,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnnTT+KiZJCMhktljrqwSfVyEVN+VwDhH+YJUxMAOOaAIhAKWG3HVQ89lYjh5kgz26kMOmXsyXh9Y/fMnED2fjEcNd"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisUPkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmomVA//eP/IuRxg9i/07/BT9oBGSaDbOAqm63kzBmA+SODxit7Pal4g\r\naugHIprl9VLhCG7ho6cPhtrrcHY+hT8bz9B3VNGX/VdhzGpPvf4jbRA4nCOI\r\nzbp0SG8y5ffpSWK528A3y/uL5Q84SeNdi0ax+NwJqJU4LON/cukeONiLcVWx\r\n1RgQLYJDN0f4OJaBl+4vM4e7Lbnf8sgONatWGua16qaBYxzUQaWAw9D+Jmpb\r\nTs/zcJSPRvXIF64ecuYEagN1DVJlM+YNO8fJM6xYh9zKBAOt9u5r27EDKOrJ\r\ndAaLygTg1Jgr/YBh8jpQ2kNwXcimeE6/aO7HPljWhs2YXAxxGr1s+Cz+PNIB\r\nLkc85e7G9QIewoIsaFH+DD8oJk1uZk+6uvtI/ItuQDXQXqTJV6o9jFKejcoe\r\nXEzOFPx/OB0MZRxSuVjVzpSGmIxIm5tNkJJzftALiFLVRe1U7O9ifj3AEjyI\r\nChY4yykWeNaJGUZsOiJOz8gM4wN1rPHcm16WCuXziN/XN1UkhlmbKY9lNUGp\r\nNifiYTvKf9y5KzCd8WSyQhWnTDdFSm6eEFDzt53PSL6+VsGUp8Ly0DjTqy39\r\n9uNdJVC7Gr8DC96D8sHvm1y5DIctYA2FC38LnCbpDhGzXKlLfDgqGerBduAH\r\n2CrIQ5wsHwCZpfTo/6MnofH9Pu1CNXonruE=\r\n=dWys\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"capmao","email":"capmao@aliyun.com"},"directories":{},"maintainers":[{"name":"capmao","email":"capmao@aliyun.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-antd-resizable-header_2.3.5_1655784420141_0.8215920621173918"},"_hasShrinkwrap":false},"2.3.7":{"name":"@capmao/use-antd-resizable-header","version":"2.3.7","description":"antd resizable header column hook","author":{"name":"capmao","email":"capmao@aliyun.com"},"types":"dist/index.d.ts","main":"dist/index.umd.js","module":"dist/index.es.js","bugs":{"url":"https://github.com/jessemao/use-antd-resizable-header/issues"},"homepage":"https://github.com/jessemao/use-antd-resizable-header","keywords":["react","antd","resiable header"],"license":"MIT","scripts":{"start":"vite dev","build":"vite build","serve":"vite preview","precommit":"lint-staged","prettier":"prettier -c --write \"src/**/*\"","prerelease":"npm run build","release":"standard-version","postrelease":"git push && git push --follow-tags && npm run build && npm publish","upgrade:deps":"pnpm up -i --latest"},"lint-staged":{"src/**/*.{ts,tsx}":["prettier --write"],"**/*.{ts,tsx}":"eslint --ext .ts,.tsx"},"peerDependencies":{"@babel/core":">=7.0.0-0 <8.0.0","@babel/plugin-syntax-flow":"7.14.5","@babel/plugin-transform-react-jsx":"7.14.9","react":">=16.8.0","rollup":">=2.14.0 <3.0.0"},"dependencies":{"classnames":"^2.3.1","lodash.debounce":"^4.0.8","lodash.isempty":"4.4.0","lodash.isequalwith":"^4.4.0","lodash.isfunction":"^3.0.9","lodash.throttle":"^4.1.1","react":"^17.0.2","react-dom":"^17.0.2","react-resizable":"^3.0.4"},"devDependencies":{"@babel/core":">=7.0.0-0 <8.0.0","@babel/plugin-syntax-flow":"7.14.5","@babel/plugin-transform-react-jsx":"7.14.9","@commitlint/cli":"^16.2.4","@commitlint/config-conventional":"^16.2.4","@rollup/plugin-typescript":"^8.3.0","@types/lodash.isequalwith":"^4.4.6","@types/lodash.isfunction":"^3.0.6","@types/node":"^17.0.8","@types/react":"^17.0.38","@types/react-dom":"^17.0.11","@types/react-resizable":"^1.7.4","@vitejs/plugin-react":"^1.1.4","autoprefixer":"^10.4.2","eslint":"^8.6.0","eslint-config-prettier":"^8.3.0","eslint-config-react-app":"^7.0.0","eslint-define-config":"^1.2.2","eslint-plugin-prettier":"^4.0.0","husky":"^7.0.4","lint-staged":"^12.1.7","postcss":"^8.4.5","postcss-nesting":"^10.1.1","prettier":"^2.5.1","rollup":">=2.14.0 <3.0.0","rollup-plugin-postcss":"^4.0.2","semver":"^7.3.7","standard-version":"^9.3.2","tslib":"^2.3.1","typescript":"^4.5.4","vite":"^2.7.10"},"gitHead":"c72b3076cd4bbdcaf401d41d4a54ac02d7e0301d","_id":"@capmao/use-antd-resizable-header@2.3.7","_nodeVersion":"16.4.1","_npmVersion":"7.18.1","dist":{"integrity":"sha512-xlK6s11RvSw2WLAJjQIzpBVd9RE4ftP3k7ARMR/+64TvQnqxPUqbxS+XIStbfAIXMwtX+a+FdUg/alWqsnxF2A==","shasum":"2af576ba8cce4e3b1ad084e154d2685a30c77079","tarball":"https://registry.npmjs.org/@capmao/use-antd-resizable-header/-/use-antd-resizable-header-2.3.7.tgz","fileCount":9,"unpackedSize":185985,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWMs/NmP+audxz8Iqh/VbQe97pUTqVyr+7nq9JzGdgxQIgKmwfIzOBouNFl42gT43HrlZzW46gPCCeirXud9noBKM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisURQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOTw//cSPmRXsyDJ/9xM2uUJubNaa9UvRfRuRuD6JA+Le1HVhDXINs\r\nU/dXZeq7/9nNpX+KjFqaih1IQfsO6XkUfgBwFRsqEL9M2ZzBZUmwIYWYp8Nj\r\nJ6TR+uiF6cI+PhgNI7D3m86RAum/Hi6RpWcm+8zS2VX2THY7FtKqeWIgnZqD\r\nC/0SpLRYj7r4f5F8yQ7qiyIoHDEkpKBLwNNw2ccDHbBCPLUSjhpuvTjWsExb\r\nFPXS6k/FTv3UpPtQ3mLd2mWAYEGdVngvYCakGljxqfuNdM4gWWkkozmk7JU7\r\nuc2F2mvNGWvlTmNv7wexuSwcmpbf1Aji2rewOanHlhTfpw9DmW/f/vWwpN7g\r\ncx6ar/DPgjm31PdYgY/ql1IseHhY87fzmrrb6d3SkcPofxbiRSX7aEXDQf1h\r\nm/1zCz2MJXYaFX4CHf+UyzhNEVhO8MP7RL9HiFyHQPnff8Lpb2o3C8FZYbFU\r\nCrHBacKU/89FKRNiN2Pu5KOkTKuAObvjaRisElyAxNTiXNewqXJL5R3/89ET\r\nrXjBl82SRDTDiMbipZvoK5eRasXeiAE1poweNYp5HswCMedQ7X/bm/UPeA5W\r\nXSLv6LCOJs5vVdsyPiYb3ogRdW2tdqWCo+ZJB/qyNibKT4wP5Vl78OScUFCp\r\nko/zTyUjiQmwukAmopgHuZPTv983CfuPbAs=\r\n=vwUQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"capmao","email":"capmao@aliyun.com"},"directories":{},"maintainers":[{"name":"capmao","email":"capmao@aliyun.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-antd-resizable-header_2.3.7_1655784528027_0.3061680882235873"},"_hasShrinkwrap":false},"2.3.8":{"name":"@capmao/use-antd-resizable-header","version":"2.3.8","description":"antd resizable header column hook","author":{"name":"capmao","email":"capmao@aliyun.com"},"types":"dist/index.d.ts","main":"dist/index.umd.js","module":"dist/index.es.js","bugs":{"url":"https://github.com/jessemao/use-antd-resizable-header/issues"},"homepage":"https://github.com/jessemao/use-antd-resizable-header","keywords":["react","antd","resiable header"],"license":"MIT","scripts":{"start":"vite dev","build":"vite build","serve":"vite preview","precommit":"lint-staged","prettier":"prettier -c --write \"src/**/*\"","prerelease":"npm run build","release":"standard-version","postrelease":"git push && git push --follow-tags && npm run build && npm publish","upgrade:deps":"pnpm up -i --latest"},"lint-staged":{"src/**/*.{ts,tsx}":["prettier --write"],"**/*.{ts,tsx}":"eslint --ext .ts,.tsx"},"peerDependencies":{"@babel/core":">=7.0.0-0 <8.0.0","@babel/plugin-syntax-flow":"7.14.5","@babel/plugin-transform-react-jsx":"7.14.9","react":">=16.8.0","rollup":">=2.14.0 <3.0.0"},"dependencies":{"classnames":"^2.3.1","lodash.debounce":"^4.0.8","lodash.isempty":"4.4.0","lodash.isequalwith":"^4.4.0","lodash.isfunction":"^3.0.9","lodash.throttle":"^4.1.1","react":"^17.0.2","react-dom":"^17.0.2","react-resizable":"^3.0.4"},"devDependencies":{"@babel/core":">=7.0.0-0 <8.0.0","@babel/plugin-syntax-flow":"7.14.5","@babel/plugin-transform-react-jsx":"7.14.9","@commitlint/cli":"^16.2.4","@commitlint/config-conventional":"^16.2.4","@rollup/plugin-typescript":"^8.3.0","@types/lodash.isequalwith":"^4.4.6","@types/lodash.isfunction":"^3.0.6","@types/node":"^17.0.8","@types/react":"^17.0.38","@types/react-dom":"^17.0.11","@types/react-resizable":"^1.7.4","@vitejs/plugin-react":"^1.1.4","autoprefixer":"^10.4.2","eslint":"^8.6.0","eslint-config-prettier":"^8.3.0","eslint-config-react-app":"^7.0.0","eslint-define-config":"^1.2.2","eslint-plugin-prettier":"^4.0.0","husky":"^7.0.4","lint-staged":"^12.1.7","postcss":"^8.4.5","postcss-nesting":"^10.1.1","prettier":"^2.5.1","rollup":">=2.14.0 <3.0.0","rollup-plugin-postcss":"^4.0.2","semver":"^7.3.7","standard-version":"^9.3.2","tslib":"^2.3.1","typescript":"^4.5.4","vite":"^2.7.10"},"gitHead":"ef66d72c0ae13f844b3d8fa2b5f779f82715ccf6","_id":"@capmao/use-antd-resizable-header@2.3.8","_nodeVersion":"16.4.1","_npmVersion":"7.18.1","dist":{"integrity":"sha512-2niIgecyGKkfMG/WZoFAIv8Nj9TKNsNsJ0ej2LypBind/45Q7D/Vx1IrAwhyQbSzH6L/ceNG9cQd9NE4MHEjnw==","shasum":"b9adb6682a92b45b279d222dad93c8aaaf8dbfe7","tarball":"https://registry.npmjs.org/@capmao/use-antd-resizable-header/-/use-antd-resizable-header-2.3.8.tgz","fileCount":9,"unpackedSize":186067,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBnZYB4fvWzh1gZHiV9tuW31gmjIDkPHqNzC6KLQeh5+AiEAjmOd5D5iAlXv5VaYerLSEMDfbT1LpAa0dnhS2FEwUEI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisXAKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqsOA/+NN0qY1k5sD8jpaKIkJOd+FoC4LmjQJqRaxT+4WgEFL7ZgjD0\r\ntr9/AyLgFIfaaqu/9MFKfLFGcjEYgjkTFCjnJZZUnDNPEMkJlYOjg0Qna/3O\r\nQIbMhFcld0KxmDv6K04qmZlkTkvY9OotwpnGtJ6Ylfwhdj7FGEIKA8yILbdI\r\nX3Ldduci6GGsiu7wj9+yp5WtNTAQWQH2FaPaSiJkjLCUFq84nNWQaFElGYjk\r\nV7Q4JcyG8s4uMkJ7jk93RlSZ7MMPfBcJAvAARqDs3TMYjCIDN1zhMnW/a+oZ\r\nETRvFKFyZiMoKhI3gNkJvpMVy8XbkK7t0C7VoCwXxrhFDO7xTTG3nAjm5d08\r\n1bjDRFEMm6plPFekZI9/Ed5KO9QqRmaJY3K2OFrz04U/UiunqLLOAJJ/KxW7\r\nSZ9CGOV/O7OxE2VdV1wnwdzSRDMomMd/Vvw2uhBIStuCtdl5sf1QvpKhE1SR\r\nHKfAzH5t62yq/04bU8Bk2Y7u+557QH44zYbSQeXulfAqtmhlQXFpzOJ/EQGo\r\nartby0G2jqFmrWp/3wP3g5Zl4wFrURBpzjNbd6DlYJiqvtao0HTzscB3l3QN\r\nVlVAecWWSSV9riU1lNgN92wSEywi5t/28U56nt59KVF9u8MTeChDl59UvI2f\r\nVU/Ux5cgZ9NEgKoR4As48nxQXT17mYvdefo=\r\n=+a/z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"capmao","email":"capmao@aliyun.com"},"directories":{},"maintainers":[{"name":"capmao","email":"capmao@aliyun.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-antd-resizable-header_2.3.8_1655795722419_0.8147788791365471"},"_hasShrinkwrap":false},"2.3.9":{"name":"@capmao/use-antd-resizable-header","version":"2.3.9","description":"antd resizable header column hook","author":{"name":"capmao","email":"capmao@aliyun.com"},"types":"dist/index.d.ts","main":"dist/index.umd.js","module":"dist/index.es.js","bugs":{"url":"https://github.com/jessemao/use-antd-resizable-header/issues"},"homepage":"https://github.com/jessemao/use-antd-resizable-header","keywords":["react","antd","resiable header"],"license":"MIT","scripts":{"start":"vite dev","build":"vite build","serve":"vite preview","precommit":"lint-staged","prettier":"prettier -c --write \"src/**/*\"","prerelease":"npm run build","release":"standard-version","postrelease":"git push && git push --follow-tags && npm run build && npm publish","upgrade:deps":"pnpm up -i --latest"},"lint-staged":{"src/**/*.{ts,tsx}":["prettier --write"],"**/*.{ts,tsx}":"eslint --ext .ts,.tsx"},"peerDependencies":{"@babel/core":">=7.0.0-0 <8.0.0","@babel/plugin-syntax-flow":"7.14.5","@babel/plugin-transform-react-jsx":"7.14.9","react":">=16.8.0","rollup":">=2.14.0 <3.0.0"},"dependencies":{"classnames":"^2.3.1","lodash.debounce":"^4.0.8","lodash.isempty":"4.4.0","lodash.isequalwith":"^4.4.0","lodash.isfunction":"^3.0.9","lodash.throttle":"^4.1.1","react":"^17.0.2","react-dom":"^17.0.2","react-resizable":"^3.0.4"},"devDependencies":{"@babel/core":">=7.0.0-0 <8.0.0","@babel/plugin-syntax-flow":"7.14.5","@babel/plugin-transform-react-jsx":"7.14.9","@commitlint/cli":"^16.2.4","@commitlint/config-conventional":"^16.2.4","@rollup/plugin-typescript":"^8.3.0","@types/lodash.isequalwith":"^4.4.6","@types/lodash.isfunction":"^3.0.6","@types/node":"^17.0.8","@types/react":"^17.0.38","@types/react-dom":"^17.0.11","@types/react-resizable":"^1.7.4","@vitejs/plugin-react":"^1.1.4","autoprefixer":"^10.4.2","eslint":"^8.6.0","eslint-config-prettier":"^8.3.0","eslint-config-react-app":"^7.0.0","eslint-define-config":"^1.2.2","eslint-plugin-prettier":"^4.0.0","husky":"^7.0.4","lint-staged":"^12.1.7","postcss":"^8.4.5","postcss-nesting":"^10.1.1","prettier":"^2.5.1","rollup":">=2.14.0 <3.0.0","rollup-plugin-postcss":"^4.0.2","semver":"^7.3.7","standard-version":"^9.3.2","tslib":"^2.3.1","typescript":"^4.5.4","vite":"^2.7.10"},"gitHead":"c5194ae3b438db52cddf165ce2e6d6ea3c9d5e9a","_id":"@capmao/use-antd-resizable-header@2.3.9","_nodeVersion":"16.4.1","_npmVersion":"7.18.1","dist":{"integrity":"sha512-QMNkLc8EKSK88g4ymzzXmobQ3t1r0HjFJAxrKj/5pMEA5ZobjKzR2vrkhdTHBGtjMymMY5EFY0nJQWLEa1qmpw==","shasum":"e322f582d38c2a076ebc156000400abd9a65cd09","tarball":"https://registry.npmjs.org/@capmao/use-antd-resizable-header/-/use-antd-resizable-header-2.3.9.tgz","fileCount":9,"unpackedSize":186067,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICVwnP6B6rX+N+pLLRQZxq3GAaFIK4y0R7K47Jq8NETZAiAYy1M6rF2IFOT2Kfon+3+6U85ALfXzhJe/M1R25K6bZQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisXCZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpauA//dxcQJPmCpwhaPk5uQYqQJpWWVja4FUstmRVVlSKZvBf5h+RB\r\nRDJzTatMjFWV9BvflaNVZpEe8zhNdQs00DDtrNTrwoK1zYnTVLz4zg5xtkHD\r\ndnRQ7w2yr5Y5NXNROdYzdDQ5OcPlPsv+mJrEH+Q83kpfYLCg+JpX+ZuipPUM\r\nSRiwSdqfSWT/g9xonbHLyIejDLgCCSnqzETomAB++Z3B9rdmxlE+rYQuLtqt\r\neiLfa3NBnZbA/9BnLOYk9LOQHEbZD66N7YjSTAfy6qa1IIQM229Z+up077zN\r\n5KxsBR3aFxlJjMSPxfadN7u4yNgokFYl+AZUMlAR3mxTQJkqV2qmAhVmq6To\r\n26JkY7tvaDqdIqYGUB7IdKnVzgMICVZ9xK8hbTrhBLVpOvvGCCoC4dVzyDWB\r\nWF9uyhua3x/Xg+YJ19CUDQ/BUqhKM6y5x7mwbPaum70Yl7mDkXgci5DUq42i\r\nz04SwhR9LXYV79RJ5mLO5MceRjZsZEWU+IWeLEEW8HGNVnM/psOrQoBOTg2j\r\nTf+PLUxOAR5CSJhJjVmEWSZrZ1kptLAJgc6Whf2/pFO3R4szZ9Kijag5fDOd\r\nFls0mnEb4wbGFj/4TgQtsnp1jtpimnP7q3lJQkkJWGoEkDNDaxwKqc1XlG8N\r\nO7Y7NEbGhCPOTC+AdRUA/u6X7lSnD21VZ6o=\r\n=lt2Y\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"capmao","email":"capmao@aliyun.com"},"directories":{},"maintainers":[{"name":"capmao","email":"capmao@aliyun.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-antd-resizable-header_2.3.9_1655795864830_0.4958853849652849"},"_hasShrinkwrap":false},"2.3.10":{"name":"@capmao/use-antd-resizable-header","version":"2.3.10","description":"antd resizable header column hook","author":{"name":"capmao","email":"capmao@aliyun.com"},"types":"dist/index.d.ts","main":"dist/index.umd.js","module":"dist/index.es.js","bugs":{"url":"https://github.com/jessemao/use-antd-resizable-header/issues"},"homepage":"https://github.com/jessemao/use-antd-resizable-header","keywords":["react","antd","resiable header"],"license":"MIT","scripts":{"start":"vite dev","build":"vite build","serve":"vite preview","precommit":"lint-staged","prettier":"prettier -c --write \"src/**/*\"","prerelease":"npm run build","release":"standard-version","postrelease":"git push && git push --follow-tags && npm run build && npm publish","upgrade:deps":"pnpm up -i --latest"},"lint-staged":{"src/**/*.{ts,tsx}":["prettier --write"],"**/*.{ts,tsx}":"eslint --ext .ts,.tsx"},"peerDependencies":{"@babel/core":">=7.0.0-0 <8.0.0","@babel/plugin-syntax-flow":"7.14.5","@babel/plugin-transform-react-jsx":"7.14.9","react":">=16.8.0","rollup":">=2.14.0 <3.0.0"},"dependencies":{"classnames":"^2.3.1","lodash.debounce":"^4.0.8","lodash.isempty":"4.4.0","lodash.isequalwith":"^4.4.0","lodash.isfunction":"^3.0.9","lodash.throttle":"^4.1.1","react":"^17.0.2","react-dom":"^17.0.2","react-resizable":"^3.0.4"},"devDependencies":{"@babel/core":">=7.0.0-0 <8.0.0","@babel/plugin-syntax-flow":"7.14.5","@babel/plugin-transform-react-jsx":"7.14.9","@commitlint/cli":"^16.2.4","@commitlint/config-conventional":"^16.2.4","@rollup/plugin-typescript":"^8.3.0","@types/lodash.isequalwith":"^4.4.6","@types/lodash.isfunction":"^3.0.6","@types/node":"^17.0.8","@types/react":"^17.0.38","@types/react-dom":"^17.0.11","@types/react-resizable":"^1.7.4","@vitejs/plugin-react":"^1.1.4","autoprefixer":"^10.4.2","eslint":"^8.6.0","eslint-config-prettier":"^8.3.0","eslint-config-react-app":"^7.0.0","eslint-define-config":"^1.2.2","eslint-plugin-prettier":"^4.0.0","husky":"^7.0.4","lint-staged":"^12.1.7","postcss":"^8.4.5","postcss-nesting":"^10.1.1","prettier":"^2.5.1","rollup":">=2.14.0 <3.0.0","rollup-plugin-postcss":"^4.0.2","semver":"^7.3.7","standard-version":"^9.3.2","tslib":"^2.3.1","typescript":"^4.5.4","vite":"^2.7.10"},"gitHead":"4e314be1003dfae6523846a7c9f788749e628e8c","_id":"@capmao/use-antd-resizable-header@2.3.10","_nodeVersion":"16.4.1","_npmVersion":"7.18.1","dist":{"integrity":"sha512-/yuvBlsaxFN8BZlzJJyzY4sXLU24owE/WWpRzagBtzGtUrjdPfE1DNex4jEhAIWKQViOELtzZqi3OoW0TGiGUA==","shasum":"a10eedf7ff4924cf39446ef05b8a9dea6346bb05","tarball":"https://registry.npmjs.org/@capmao/use-antd-resizable-header/-/use-antd-resizable-header-2.3.10.tgz","fileCount":9,"unpackedSize":186232,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGdkDiAnk9jkDc8PaB+OFhoEZxhwaZVrtfIeNQ80U3p0AiEAiTAxBrvK7kN81QGtp42mGW4nJ5gbK21HFxkbpO2JbM4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisXWAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmreqQ/+NZpjc/67QT06bgjiuVn6LhNHJbhhDEDWMKt5YFrbCdYEFvVn\r\ndk9/7ENSW5Yq7bfmOR7Qh6FRmt/8OdbpLqJcQGSESuc0xsr5EKb7duMjLM9z\r\nMl3Cjg9X7MP0GdMuNuOkK/KNWHSB5JqRPNYWi0enL81YgDfjKwVSrOcui+Fm\r\nTPaqtUjcGnHKwMnvwAu1fSnSo9tduZIRG4KMaki+7vVcNcqrM7r8uNdhwCRs\r\nsHjp48ywJ3EWAKej2vvLqz+oDb++QE+rWlK0Fh0GS4oM6XHbNt0qVBwdb26v\r\n9A6wMOXlgiUdMHgcza9dhLluOmikkEUfEvYXGKfznxO803iFOdAhKm/MLx9m\r\n4nV6ANRoMKhWa8d7gnFC5w49bDWbR21JW8Ieeuts05oKGSUT/a4evYG4K44V\r\nr14xpSkORLYWcL1xKb0YYVXC+/0rwTObFGceqzKgh672KCtMn6kKdDfvOoBR\r\nCkydBy2bg9eZNItykNjFfqnajLWVQoaP3dZvH2y+dzzWSdSdNE8q1nolyVzB\r\nW2GxoRBYXIx8ov3B0UR5A3DZWReJFs3B3A0xpBVP3GG9D8cQ3E8dx2fd3v8o\r\noAL7uXXBDPu5pnWBEBmqtztlWX50++DigxK4exbT/t+xf+bPMAiMUDgvneXK\r\nLeQDEtm9/B8Zx7Dck4rDfFd1shBFNP9x0r4=\r\n=ofQ6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"capmao","email":"capmao@aliyun.com"},"directories":{},"maintainers":[{"name":"capmao","email":"capmao@aliyun.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-antd-resizable-header_2.3.10_1655797119839_0.1791166044216026"},"_hasShrinkwrap":false}},"time":{"created":"2022-06-21T04:07:00.103Z","2.3.5":"2022-06-21T04:07:00.351Z","modified":"2022-06-21T07:38:40.119Z","2.3.7":"2022-06-21T04:08:48.340Z","2.3.8":"2022-06-21T07:15:22.745Z","2.3.9":"2022-06-21T07:17:45.011Z","2.3.10":"2022-06-21T07:38:40.006Z"},"maintainers":[{"name":"capmao","email":"capmao@aliyun.com"}],"description":"antd resizable header column hook","homepage":"https://github.com/jessemao/use-antd-resizable-header","keywords":["react","antd","resiable header"],"author":{"name":"capmao","email":"capmao@aliyun.com"},"bugs":{"url":"https://github.com/jessemao/use-antd-resizable-header/issues"},"license":"MIT","readme":"# use-antd-resizable-header\n\n> antd 表格头拖拽 Hook，兼容 Table ProTable\n\n## 预览\n\n![preview](./image/new_preview.gif)\n\n## 在线地址\n\n[codesandbox](https://codesandbox.io/s/silly-dream-rq89l?file=/src/App.tsx)\n\n## 安装\n\n```bash\nyarn add @capmao/use-antd-resizable-header\n```\n\n## API\n\n### Properties\n\n| Name           | Type             | Default   | Description                                            |\n| -------------- | ---------------- | --------- | ------------------------------------------------------ |\n| columns        | ColumnType[]     | undefined | antd table 的 columns                                  |\n| defaultWidth   | number           | 120       | 某一列不能拖动，设置该列的最小展示宽度，默认 120 |\n| minConstraints | number           | 60       | 拖动最小宽度 默认 60                                    |\n| maxConstraints | number           | Infinity  | 拖动最大宽度 默认无穷                                  |\n| cache          | boolean          | true      | 是否缓存宽度，避免渲染重置拖拽宽度                     |\n| columnsState   | ColumnsStateType | undefined | 列状态的配置，可以用来操作列拖拽宽度                   |\n\n### Return\n\n| Name             | Description                             |\n| ---------------- | --------------------------------------- |\n| resizableColumns | 拖拽 columns，用在 Table columns        |\n| components       | 拖拽 components， 用在 Table components |\n| tableWidth       | 表格宽度，用在 Table width              |\n| resetColumns     | 重置宽度方法                            |\n\n## 注意事项\n\n- **默认拖动颜色为`#000`，可通过`global`或设置 css 变量`--arh-color`设置颜色**\n- **至少一列不能拖动（width 不设置即可），[请保持最后至少一列的自适应](https://ant-design.gitee.io/components/table-cn/#components-table-demo-fixed-columns)**\n- **若 column 未传入`dataIndex`，请传入一个唯一的`key`，否则按照将按照 column 的序号 index 计算唯一 key**\n- **若 column 有副作用，请把依赖项传入 useMemo deps 中**\n- **remember import style**\n\n## Example\n\n```tsx\nimport useARH from '@capmao/use-antd-resizable-header';\nimport '@capmao/use-antd-resizable-header/dist/style.css';\n\nfunction App() {\n  const columns = [];\n\n  const { components, resizableColumns, tableWidth, resetColumns } = useARH({\n    columns: useMemo(() => columns, []),\n    // 保存拖拽宽度至本地localStorage\n    columnsState: {\n      persistenceKey: 'localKey',\n      persistenceType: 'localStorage',\n    },\n  });\n\n  return (\n    <>\n      <Table columns={resizableColumns} components={components} dataSource={data} scroll={{ x: tableWidth }}></Table>\n      <ProTable\n        columns={resizableColumns}\n        components={components}\n        dataSource={data}\n        scroll={{ x: tableWidth }}\n      ></ProTable>;<Button onClick={() => resetColumns()}>重置宽度</Button>\n    </>\n  );\n}\n```\n\n## 基本用例\n\n```css\n/* index.css */\n--arh-color: red;\n```\n\n```tsx\nimport React, { useReducer } from 'react';\nimport { Table, Tag, Space } from 'antd';\nimport useARH from '@capmao/use-antd-resizable-header';\nimport 'antd/dist/antd.css';\nimport '@capmao/use-antd-resizable-header/dist/style.css';\n\nconst data = [\n  {\n    key: '1',\n    name: 'John Brown',\n    age: 32,\n    address: 'New York No. 1 Lake Park',\n    tags: ['nice', 'developer'],\n  },\n  {\n    key: '2',\n    name: 'Jim Green',\n    age: 42,\n    address: 'London No. 1 Lake Park',\n    tags: ['loser'],\n  },\n  {\n    key: '3',\n    name: 'Joe Black',\n    age: 32,\n    address: 'Sidney No. 1 Lake Park',\n    tags: ['cool', 'teacher'],\n  },\n];\n\nconst Hello: React.FC = () => {\n  const [, forceRender] = useReducer((s) => s + 1, 0);\n  const [deps, setDeps] = useState(0);\n\n  const columns = [\n    {\n      title: 'Name',\n      dataIndex: 'name',\n      key: 'name',\n      width: 300,\n      ellipsis: true,\n      render: (text) => (\n        <a onClick={() => setDeps((t) => t + 1)}>\n          {text}\n          {deps}\n        </a>\n      ),\n    },\n    {\n      title: 'Age',\n      dataIndex: 'age',\n      key: 'age',\n      ellipsis: true,\n      width: 200,\n    },\n    {\n      title: 'Address',\n      dataIndex: 'address',\n      key: 'address',\n      ellipsis: true,\n      width: 200,\n    },\n    {\n      title: 'Tags',\n      key: 'tags',\n      dataIndex: 'tags',\n      width: 200,\n      ellipsis: true,\n      render: (tags) => (\n        <>\n          {tags.map((tag) => {\n            let color = tag.length > 5 ? 'geekblue' : 'green';\n            if (tag === 'loser') {\n              color = 'volcano';\n            }\n            return (\n              <Tag color={color} key={tag}>\n                {tag.toUpperCase()}\n              </Tag>\n            );\n          })}\n        </>\n      ),\n    },\n    {\n      title: 'render',\n      key: 'action',\n      render: (text, record) => (\n        <Space size=\"middle\">\n          <a>Invite {record.name}</a>\n          <a\n            onClick={() => {\n              forceRender();\n              alert('render');\n            }}\n          >\n            render\n          </a>\n        </Space>\n      ),\n    },\n  ];\n\n  const { components, resizableColumns, tableWidth } = useARH({\n    columns: useMemo(() => columns, [deps]),\n    minConstraints: 50,\n  });\n\n  return <Table columns={resizableColumns} components={components} dataSource={data} scroll={{ x: tableWidth }} />;\n};\n\nexport default Hello;\n```\n\n## 基本用例 - 搭配 Typography 实现 title 溢出时 tooltip\n\n```css\n/* index.css */\n--arh-color: red;\n```\n\n```tsx\n// utils.tsx\nexport const genEllipsis = (text: string, copyable?: boolean, stopPropagation?: boolean) => {\n  let _text = isNil(text) ? '' : String(text);\n\n  if ([null, undefined, ''].includes(text)) _text = '-';\n\n  return (\n    <Typography.Text\n      style={{\n        width: '100%',\n        margin: 0,\n        padding: 0,\n        color: 'inherit',\n      }}\n      onClick={(e) => (stopPropagation ? e?.stopPropagation() : null)}\n      title=\" \"\n      copyable={\n        copyable && text\n          ? {\n              text,\n              tooltips: ['', ''],\n            }\n          : undefined\n      }\n      ellipsis={text ? { tooltip: text } : false}\n    >\n      {_text}\n    </Typography.Text>\n  );\n};\n```\n\n```tsx\n// index.tsx\nimport ProTable from '@ant-design/pro-table'; // or import { Table } from 'antd'\nimport useARH from '@capmao/use-antd-resizable-header';\nimport { genEllipsis } from './utils.tsx';\n\nimport '@capmao/use-antd-resizable-header/dist/style.css';\nimport './index.css';\n\nconst columns: ProColumns[] = [\n  {\n    title: 'id',\n    dataIndex: 'id',\n    width: 300,\n    ellipsis: true,\n  },\n  {\n    title: 'name',\n    dataIndex: 'name',\n    ellipsis: true,\n  },\n];\n\nconst dataSource = [\n  {\n    id: 1,\n    name: 'zhangsan',\n  },\n  {\n    id: 2,\n    name: 'lisi',\n  },\n];\n\nfunction App() {\n  const { resizableColumns, components, tableWidth } = useARH({\n    columns: useMemo(() => columns, []),\n  });\n\n  let cols = [...resizableColumns];\n\n  cols = columns.map((item) => ({\n    ...item,\n    title: genEllipsis(item.title as string, false, true),\n  }));\n\n  return (\n    <ProTable columns={cols} components={components} scroll={{ x: tableWidth }} dataSource={dataSource}></ProTable>\n  );\n}\n\nexport default App;\n```\n\n## 为什么需要 React.useMemo ?\n\n### 如果不使用 useMemo\n\n#### 组件 render => columns 引用变化 => use-antd-resiable-header render => 组件 render => columns 引用变化···\n\n## 不使用 useMemo\n\n可以采用其他阻止 render 的方案，如: `columns` 是 prop 或 组件外常量\n\n\n\n## MIT\n\n[LICENSE](https://github.com/hemengke1997/useARH/blob/master/LICENSE)\n","readmeFilename":"README.md"}