UNPKG

@past3lle/carousel-hooks

Version:

PASTELLE carousel animation hooks built on top of @usegesture and react-springs

95 lines (94 loc) 2.9 kB
{ "name": "@past3lle/carousel-hooks", "version": "2.1.2", "description": "PASTELLE carousel animation hooks built on top of @usegesture and react-springs", "sideEffects": false, "keywords": [ "springs", "carousel", "hooks", "animation", "scroll" ], "main": "dist/carousel-hooks.esm.js", "module": "dist/carousel-hooks.esm.js", "exports": { "import": "./dist/carousel-hooks.esm.js", "require": "./dist/index.js", "types": "./dist/index.d.ts" }, "typings": "dist/index.d.ts", "types": "dist/index.d.ts", "files": [ "dist" ], "repository": { "type": "git", "directory": "packages/carousel-hooks", "url": "https://github.com/PAST3LLE/monorepo.git" }, "author": "pastelle", "license": "MIT", "scripts": { "clean": "rm -rf dist && rm -rf tsconfig.tsbuildinfo", "compile": "tsdx build && cp \"./package.json\" ./dist/", "build": "yarn clean && yarn compile", "prepack": "yarn build", "start": "tsdx watch", "test": "echo 'removed default test' ", "alt-test": "tsc test --env=jsdom", "test:watch": "tsc test --env=jsdom --watchAll", "test:ci": "yarn alt-test --coverage --no-watch --watch=false --watchAll=false --no-watchman --forceExit --detectOpenHandles", "pre-commit": "pretty-quick --staged && yarn test:ci && yarn build", "lint": "prettier --write './src/**/*' --ignore-path '../../.prettierignore'", "depcheck": "npx npm-check", "check-types": "tsc --noEmit" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" }, "jest": { "moduleNameMapper": { ".+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/src/__mocks__/file-mock.js" }, "testMatch": [ "<rootDir>src/**/__tests__/*.{ts,tsx}" ] }, "resolutions": { "@react-spring/web": ">=9 < 10", "@use-gesture/react": ">=10 < 11" }, "peerDependencies": { "@react-spring/web": ">=9 < 10", "@use-gesture/react": ">=10 < 11", "react": ">=16", "react-dom": ">=16" }, "devDependencies": { "@babel/core": "^7.20.12", "@react-spring/web": "^9.7.3", "@rollup/plugin-image": "^3.0.1", "@testing-library/jest-dom": "^5.1.1", "@testing-library/react": "^13.4.0", "@types/lodash.debounce": "^4.0.7", "@types/lodash.throttle": "^4.1.7", "@types/react": "^18.2.0", "@types/react-dom": "^18.2.0", "@use-gesture/react": "^10.3.0", "babel-plugin-annotate-pure-calls": "^0.4.0", "babel-plugin-styled-components": "^1.10.6", "pretty-quick": "^2.0.1", "react": "^18.2.0", "react-dom": "^18.2.0", "rollup-plugin-svg": "^2.0.0", "tsdx": "^0.14.1", "tslib": "^2.4.1" }, "dependencies": { "@past3lle/hooks": "^2.1.2", "lodash.clamp": "^4.0.3" }, "gitHead": "0c1064fff84b6d4490a8e423e2bf3491da105d12" }