UNPKG

@casl/react

Version:

React component for CASL which makes it easy to add permissions in any React application

60 lines 1.68 kB
{ "name": "@casl/react", "version": "7.0.0", "description": "React component for CASL which makes it easy to add permissions in any React application", "main": "./dist/esm/index.mjs", "type": "module", "exports": { ".": { "types": "./dist/types/index.d.ts", "require": "./dist/cjs/index.cjs", "import": "./dist/esm/index.mjs" } }, "repository": { "type": "git", "url": "https://github.com/stalniy/casl.git", "directory": "packages/casl-react" }, "homepage": "https://casl.js.org", "publishConfig": { "access": "public" }, "keywords": [ "casl", "react", "authorization", "acl", "permissions" ], "author": "Sergii Stotskyi <sergiy.stotskiy@gmail.com>", "license": "MIT", "peerDependencies": { "@casl/ability": "^4.0.0 || ^5.1.0 || ^6.0.0 || ^7.0.0", "react": "^18.0.0 || ^19.0.0" }, "devDependencies": { "@casl/dx": "^1.0.0", "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.1.0", "@types/jest": "^30.0.0", "@types/node": "^24.0.0", "@types/react": "^19.0.0", "chai": "^4.1.0", "chai-spies": "^1.0.0", "react": "^19.0.0", "react-dom": "^19.0.0", "@casl/ability": "7.0.0" }, "files": [ "dist" ], "scripts": { "build.prepare": "rm -rf dist/* && dx tsc", "build": "npm run build.prepare && dx tsdown", "lint": "dx eslint src/ spec/", "test": "dx jest --env jsdom", "release.prepare": "npm run lint && npm test && NODE_ENV=production npm run build", "release": "npm run release.prepare && pnpm publish --tag \"$RELEASE_DIST_TAG\" --publish-branch \"$RELEASE_PUBLISH_BRANCH\"" } }