{ "name": "@react-hook/resize-observer", "version": "2.0.2", "homepage": "https://github.com/jaredLunde/react-hook/tree/master/packages/resize-observer#readme", "repository": "github:jaredLunde/react-hook", "bugs": "https://github.com/jaredLunde/react-hook/issues", "author": "Jared Lunde (https://jaredLunde.com)", "license": "MIT", "description": "A React hook that fires a callback whenever ResizeObserver detects a change to its size", "keywords": [ "react", "react hook", "resize observer", "resize observer hook", "resize observer react hook", "use-resize-observer", "useresizeobserver", "resize hook", "size hook" ], "main": "dist/main/index.js", "module": "dist/module/index.js", "unpkg": "dist/umd/use-resize-observer.js", "source": "src/index.tsx", "types": "types/index.d.ts", "files": [ "/dist", "/src", "/types" ], "exports": { ".": { "browser": "./dist/module/index.js", "import": "./dist/esm/index.mjs", "require": "./dist/main/index.js", "umd": "./dist/umd/use-resize-observer.js", "source": "./src/index.tsx", "types": "./types/index.d.ts", "default": "./dist/main/index.js" }, "./package.json": "./package.json", "./*": "./*" }, "sideEffects": false, "scripts": { "build": "lundle build --umd-case camel", "check-types": "lundle check-types", "dev": "lundle build -f module,cjs -w", "format": "prettier --write \"{,!(node_modules|dist|coverage)/**/}*.{ts,tsx,js,jsx,md,yml,json}\"", "lint": "eslint . --ext .ts,.tsx", "prepublishOnly": "npm run lint && npm run test && npm run build && npm run format", "test": "jest", "validate": "lundle check-types && npm run lint && jest --coverage" }, "husky": { "hooks": { "pre-commit": "lundle check-types && lint-staged" } }, "lint-staged": { "**/*.{ts,tsx,js,jsx}": [ "eslint", "prettier --write" ], "**/*.{md,yml,json}": [ "prettier --write" ] }, "eslintConfig": { "extends": [ "lunde" ] }, "eslintIgnore": [ "node_modules", "coverage", "dist", "test", "*.config.js" ], "jest": { "moduleDirectories": [ "node_modules", "src", "test" ], "testMatch": [ "/src/**/?(*.)test.{ts,tsx}" ], "collectCoverageFrom": [ "**/src/**/*.{ts,tsx}" ], "setupFilesAfterEnv": [ "./test/setup.js" ], "snapshotResolver": "./test/resolve-snapshot.js", "globals": { "__DEV__": true } }, "resolutions": { "react": "^18.3.1", "@types/react": "^18.3.2" }, "prettier": { "semi": false, "singleQuote": true, "jsxSingleQuote": true, "bracketSpacing": false }, "devDependencies": { "@babel/plugin-syntax-typescript": "^7.24.1", "@testing-library/jest-dom": "latest", "@testing-library/react": "latest", "@testing-library/react-hooks": "latest", "@testing-library/user-event": "latest", "@types/jest": "latest", "@types/react": "^18.3.2", "@types/react-dom": "^18.3.0", "babel-jest": "latest", "eslint": "^8", "eslint-config-lunde": "^0.8.2", "husky": "latest", "jest": "latest", "lint-staged": "latest", "lundle": "^0.4.14", "prettier": "latest", "react": "^18.3.1", "react-dom": "^18.3.1", "react-test-renderer": "latest", "typescript": "^5.4.5" }, "dependencies": { "@react-hook/latest": "^1.0.2", "@react-hook/passive-layout-effect": "^1.2.0" }, "peerDependencies": { "react": ">=18" } }