UNPKG

remeasure

Version:

Get position and size of the DOM element for any React Component

126 lines (125 loc) 4.12 kB
{ "author": "tony.quetano@planttheidea.com", "ava": { "failFast": true, "files": [ "test/*.js" ], "require": [ "@babel/register", "./test/helpers/setup-browser-env.js" ], "verbose": true }, "browserslist": [ "defaults", "Explorer >= 9", "Safari >= 6", "Opera >= 15", "iOS >= 8", "Android >= 4" ], "bugs": { "url": "https://github.com/planttheidea/remeasure/issues" }, "dependencies": { "debounce": "^1.1.0", "fast-equals": "^1.0.6", "micro-memoize": "^2.1.1", "raf": "^3.3.2", "resize-observer-polyfill": "^1.5.0" }, "description": "Get position and size of the DOM element for any React Component", "devDependencies": { "@babel/cli": "^7.0.0", "@babel/core": "^7.0.0", "@babel/plugin-proposal-class-properties": "^7.0.0", "@babel/plugin-proposal-decorators": "^7.0.0", "@babel/plugin-transform-runtime": "^7.0.0", "@babel/preset-env": "^7.0.0", "@babel/preset-react": "^7.0.0", "@babel/register": "^7.0.0", "@babel/runtime": "^7.0.0", "ava": "^1.0.0-beta.8", "babel-eslint": "^10.0.1", "babel-loader": "^8.0.0", "babel-plugin-transform-decorators-legacy": "^1.3.4", "babel-plugin-transform-react-remove-prop-types": "^0.4.18", "browser-env": "^3.2.4", "case-sensitive-paths-webpack-plugin": "^2.1.1", "enzyme": "^3.6.0", "enzyme-adapter-react-16": "^1.5.0", "enzyme-to-json": "^3.3.1", "eslint": "^5.6.1", "eslint-config-rapid7": "^3.1.0", "eslint-friendly-formatter": "^4.0.1", "eslint-loader": "^2.1.1", "file-loader": "^2.0.0", "font-awesome": "4.7.0", "html-webpack-plugin": "^3.2.0", "in-publish": "2.0.0", "ink-docstrap": "1.3.2", "jsdoc": "^3.5.4", "jsdoc-babel": "0.5.0", "lodash-webpack-plugin": "^0.11.2", "mockery": "^2.1.0", "nyc": "^13.0.1", "optimize-js-plugin": "0.0.4", "prop-types": "^15.6.2", "react": "^16.5.2", "react-dev-utils": "^6.0.3", "react-dom": "^16.5.2", "react-hot-loader": "^4.3.11", "react-test-renderer": "^16.5.2", "rimraf": "^2.6.1", "sinon": "^6.3.4", "webpack": "^4.20.2", "webpack-cli": "^3.1.2", "webpack-dev-server": "^3.1.9" }, "homepage": "https://github.com/planttheidea/remeasure#readme", "keywords": [ "react", "measure", "dimensions", "position", "size", "height", "width", "resize", "container-queries", "element-queries" ], "license": "MIT", "main": "lib/index.js", "module": "es/index.js", "name": "remeasure", "peerDependencies": { "prop-types": "^15.6.2", "react": "^15.3.0 || ^16.0.0", "react-dom": "^15.3.0 || ^16.0.0" }, "repository": { "type": "git", "url": "git+https://github.com/planttheidea/remeasure.git" }, "scripts": { "benchmark": "npm run transpile:lib -- --no-comments && node benchmark/index.js", "build": "NODE_ENV=development webpack --progress --colors --config=webpack/webpack.config.js", "build:minified": "NODE_ENV=production webpack --progress --colors --config=webpack/webpack.config.minified.js", "build:profile": "NODE_ENV=production webpack --progress --colors --config=webpack/webpack.config.js --json > stats.json", "clean": "rimraf lib && rimraf es && rimraf dist", "dev": "NODE_ENV=development webpack-dev-server --progress --colors --config=webpack/webpack.config.dev.js", "lint": "eslint --max-warnings 0 src", "prepublish": "if in-publish; then npm run prepublish:compile; fi", "prepublish:compile": "npm run lint && npm run test:coverage && npm run clean && npm run transpile:lib && npm run transpile:es && npm run build && npm run build:minified", "start": "npm run dev", "test": "NODE_PATH=. NODE_ENV=test ava", "test:coverage": "nyc --cache npm test", "test:update": "npm run test -- --update-snapshots", "test:watch": "npm run test -- --watch", "transpile:es": "BABEL_ENV=es babel src --out-dir es", "transpile:lib": "BABEL_ENV=lib babel src --out-dir lib" }, "version": "3.1.1" }