UNPKG

react-fit

Version:

Fit a popover element on the screen.

78 lines 1.99 kB
{ "name": "react-fit", "version": "3.0.0", "description": "Fit a popover element on the screen.", "type": "module", "sideEffects": false, "main": "./dist/index.js", "source": "./src/index.ts", "types": "./dist/index.d.ts", "exports": { ".": "./dist/index.js", "./*": "./*" }, "scripts": { "build": "tsc --project tsconfig.build.json", "clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true })\"", "format": "biome format", "lint": "biome lint", "prepack": "yarn clean && yarn build", "test": "yarn lint && yarn tsc && yarn format && yarn unit", "tsc": "tsc", "unit": "vitest", "watch": "yarn build --watch" }, "keywords": [ "react", "collision", "collision-detection", "position" ], "author": { "name": "Wojciech Maj", "email": "kontakt@wojtekmaj.pl" }, "license": "MIT", "dependencies": { "detect-element-overflow": "^2.0.0", "warning": "^4.0.0" }, "devDependencies": { "@biomejs/biome": "1.9.0", "@testing-library/dom": "^10.0.0", "@testing-library/jest-dom": "^6.0.0", "@testing-library/react": "^16.0.0", "@types/react": "*", "@types/react-dom": "*", "@types/warning": "^3.0.0", "happy-dom": "^15.10.2", "react": "^18.2.0", "react-dom": "^18.2.0", "typescript": "^5.5.2", "vitest": "^3.0.5" }, "peerDependencies": { "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "peerDependenciesMeta": { "@types/react": { "optional": true } }, "publishConfig": { "access": "public", "provenance": true }, "files": [ "dist", "src" ], "repository": { "type": "git", "url": "git+https://github.com/wojtekmaj/react-fit.git", "directory": "packages/react-fit" }, "funding": "https://github.com/wojtekmaj/react-fit?sponsor=1" }