UNPKG

@elv1n/react-use-measure

Version:

measure view bounds

120 lines (119 loc) 3.32 kB
{ "name": "@elv1n/react-use-measure", "version": "2.1.0", "description": "measure view bounds", "main": "./dist/web.cjs.js", "module": "./dist/web.js", "types": "./types/index.d.ts", "sideEffects": false, "scripts": { "prebuild": "rimraf dist && npm run typegen", "build": "rollup -c", "prepare": "npm run build", "eslint": "eslint src/**/*.{js,ts,jsx,tsx}", "test": "karma start --single-run", "test:watch": "karma start", "typecheck": "tsc --noEmit --strict --jsx react src/*", "typegen": "tsc || true && prettier types/**/** --write" }, "husky": { "hooks": { "pre-commit": "pretty-quick" } }, "prettier": { "semi": false, "trailingComma": "es5", "singleQuote": true, "jsxBracketSameLine": true, "tabWidth": 2, "printWidth": 120 }, "keywords": [ "react", "use", "measure", "bounds", "hooks" ], "files": [ "dist", "types", "readme.md", "LICENSE" ], "author": "Paul Henschel", "contributors": [ { "name": "Erik Verweij", "url": "https://github.com/everweij", "email": "info@erikverweij.com" } ], "publishConfig": { "access": "public" }, "license": "MIT", "peerDependencies": { "react": ">=16.13", "react-dom": ">=16.13" }, "devDependencies": { "@babel/core": "7.10.2", "@babel/plugin-transform-modules-commonjs": "7.10.1", "@babel/plugin-transform-parameters": "7.10.1", "@babel/plugin-transform-runtime": "7.10.1", "@babel/plugin-transform-template-literals": "7.10.1", "@babel/preset-env": "7.10.2", "@babel/preset-react": "7.10.1", "@babel/preset-typescript": "^7.10.1", "@babel/register": "^7.10.1", "@testing-library/react": "^10.2.1", "@testing-library/react-hooks": "^3.4.2", "@types/debounce": "^1.2.0", "@types/lodash-es": "^4.17.3", "@types/mocha": "^7.0.2", "@types/react": "^16.9.35", "@types/react-dom": "^16.9.8", "@types/styled-components": "^5.1.0", "@typescript-eslint/eslint-plugin": "^3.1.0", "@typescript-eslint/parser": "^3.1.0", "babel-eslint": "^10.1.0", "babel-loader": "^8.1.0", "babel-plugin-transform-react-remove-prop-types": "^0.4.24", "eslint": "^7.2.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-import": "^2.20.2", "eslint-plugin-react": "^7.20.0", "eslint-plugin-react-hooks": "^4.0.4", "expect": "^26.0.1", "husky": "^4.2.5", "karma": "^5.0.9", "karma-chrome-launcher": "^3.1.0", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", "karma-sourcemap-loader": "^0.3.7", "karma-webpack": "^4.0.2", "mocha": "^7.2.0", "prettier": "^2.0.5", "pretty-quick": "^2.0.1", "puppeteer": "^3.3.0", "react": "^16.11.0", "react-dom": "^16.11.0", "react-test-renderer": "^17.0.1", "resize-observer-polyfill": "^1.5.1", "rimraf": "^3.0.2", "rollup": "^2.13.1", "rollup-plugin-babel": "^4.4.0", "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-json": "^4.0.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-size-snapshot": "^0.12.0", "styled-components": "^5.1.1", "typescript": "^3.9.5", "webpack": "^4.43.0" }, "dependencies": { "debounce": "^1.2.0" } }