UNPKG

react-in-viewport

Version:

Track React component in viewport using Intersection Observer API

102 lines (101 loc) 3.12 kB
{ "name": "react-in-viewport", "version": "1.0.0-beta.8", "description": "Track React component in viewport using Intersection Observer API", "author": "Roderick Hsiao <roderickhsiao@gmail.com>", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/roderickhsiao/react-in-viewport.git" }, "keywords": [ "react-in-viewport", "viewport detect", "observer", "intersection observer", "react viewport", "lazyload" ], "scripts": { "bundlesize": "bundlesize", "lint": "eslint src", "lintfix": "eslint src --fix", "postpublish": "npm run publish-storybook", "prepublish": ". ./.scripts/prepublish.sh", "publish-storybook": "bash .scripts/publish_storybook.sh", "storybook": "storybook dev -p 9010", "build-storybook": "storybook build", "test-watch": "npm run testonly -- --watch --watch-extensions js", "test": "npm run lint && npm run testonly", "testonly": "jest --config jest-config.js", "typings": "tsc" }, "devDependencies": { "@babel/cli": "^7.2.3", "@babel/core": "^7.2.2", "@babel/preset-env": "^7.3.1", "@babel/preset-react": "^7.0.0", "@babel/preset-typescript": "^7.16.7", "@storybook/addon-actions": "^8.3.2", "@storybook/addon-docs": "^8.3.2", "@storybook/addon-essentials": "^8.3.2", "@storybook/addon-webpack5-compiler-babel": "^3.0.3", "@storybook/react": "^8.3.2", "@storybook/react-webpack5": "^8.3.2", "@testing-library/react": "^14.0.0", "@types/hoist-non-react-statics": "^3.3.1", "@types/jest": "^29.0.0", "@types/react-test-renderer": "^19.0.0", "@typescript-eslint/eslint-plugin": "^5.17.0", "@typescript-eslint/parser": "^5.17.0", "add": "^2.0.6", "babel-eslint": "^10.0.1", "babel-loader": "^9.0.0", "babel-runtime": "^6.11.6", "bundlesize": "^0.18.0", "eslint": "^8.0.0", "eslint-config-airbnb": "^19.0.0", "eslint-config-airbnb-typescript": "^17.0.0", "eslint-plugin-babel": "^5.3.0", "eslint-plugin-import": "^2.0.0", "eslint-plugin-jsx-a11y": "^6.1.2", "eslint-plugin-react": "^7.0.0", "eslint-plugin-react-hooks": "^4.6.0", "git-url-parse": "^13.0.0", "intersection-observer": "^0.12.0", "jest": "^29.0.0", "jest-cli": "^29.0.0", "jest-environment-jsdom": "^29.3.1", "jest-junit": "^15.0.0", "react": "^19.0.0", "react-aspect-ratio": "^1.1.8", "react-dom": "^19.0.0", "react-test-renderer": "^19.0.0", "storybook": "^8.3.2", "typescript": "^5.0.0", "webpack": "^5.75.0" }, "peerDependencies": { "react": "^16.8.3 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.8.3 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "resolutions": { "jackspeak": "2.1.1" }, "dependencies": { "hoist-non-react-statics": "^3.0.0" }, "main": "dist/index.js", "module": "dist/es/index.js", "types": "dist/types/index.d.ts", "bundlesize": [ { "path": "./dist/*.js", "maxSize": "2.5 kB" }, { "path": "./dist/es/*.js", "maxSize": "2.5 kB" } ] }