UNPKG

@bottom-sheet/react-hooks

Version:

The hooks that power `@bottom-sheet/react-spring`

109 lines (108 loc) 3.15 kB
{ "name": "@bottom-sheet/react-hooks", "version": "1.0.16", "description": "The hooks that power `@bottom-sheet/react-spring`", "keywords": [ "typescript", "xstate", "bottom-sheet", "react-spring-bottom-sheet" ], "homepage": "https://react-spring.bottom-sheet.dev", "bugs": { "url": "https://github.com/bottom-sheet/react-hooks/issues" }, "repository": "bottom-sheet/react-hooks", "license": "MIT", "author": "Cody Olsen <stipsan@gmail.com>", "sideEffects": false, "exports": { ".": { "require": "./dist/cjs/index.js", "default": "./dist/esm/index.js" } }, "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "source": "src/index.ts", "types": "dist/dts/index.d.ts", "files": [ "dist" ], "scripts": { "prebuild": "rimraf dist/**", "build": "parcel build", "dev": "parcel watch", "lint": "eslint . --ext ts,tsx,js,jsx --max-warnings 0 && prettier --check .", "lint:format": "eslint . --ext ts,tsx,js,jsx --fix && prettier --write .", "package-check": "npx package-check", "prepublishOnly": "npm run build", "test": "npm run lint && npm run type-check && npm run build && npx jest && npm run package-check", "type-check": "tsc --noEmit", "watch": "npx jest --watch" }, "prettier": { "semi": false, "singleQuote": true }, "jest": { "rootDir": ".", "testEnvironment": "jsdom", "transform": { "^.+\\.(t|j)sx?$": [ "@swc/jest" ] } }, "dependencies": { "@bottom-sheet/state-machine": "^1.1.1", "@bottom-sheet/types": "^1.0.6", "@types/use-sync-external-store": "^0.0.3", "use-sync-external-store": "^1.2.0", "xstate": "^4.32.1" }, "devDependencies": { "@babel/eslint-parser": "^7.18.2", "@parcel/packager-ts": "^2.6.2", "@parcel/transformer-typescript-types": "^2.6.2", "@semantic-release/changelog": "^6.0.1", "@semantic-release/git": "^10.0.1", "@skypack/package-check": "^0.2.2", "@swc/core": "^1.2.210", "@swc/jest": "^0.2.21", "@testing-library/react": "^13.3.0", "@types/jest": "^28.1.4", "@types/node": "^18.0.3", "@types/react": "^18.0.15", "@types/react-dom": "^18.0.6", "@typescript-eslint/eslint-plugin": "^5.30.5", "@typescript-eslint/parser": "^5.30.5", "@xstate/cli": "^0.2.1", "eslint": "^8.19.0", "eslint-config-react-app": "^7.0.1", "eslint-plugin-flowtype": "^8.0.3", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jsx-a11y": "^6.6.0", "eslint-plugin-react": "^7.30.1", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-simple-import-sort": "^7.0.0", "jest": "^28.1.2", "jest-environment-jsdom": "^28.1.2", "parcel": "^2.6.2", "prettier": "^2.7.1", "prettier-plugin-packagejson": "^2.2.18", "react": "^18.2.0", "react-dom": "^18.2.0", "react-test-renderer": "^18.2.0", "rimraf": "^3.0.2", "semantic-release": "^19.0.3", "ts-jest": "^28.0.5", "typescript": "^4.7.4" }, "peerDependencies": { "react": "17 || 18" }, "publishConfig": { "access": "public" } }