{"_id":"@vueuse/gesture","_rev":"5-3386aeedd573a6d15b62449c32fd6630","name":"@vueuse/gesture","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@vueuse/gesture","version":"1.0.0","description":"🕹 Vue Composables making your app interactive","repository":{"type":"git","url":"git+https://github.com/vueuse/gesture.git"},"bugs":{"url":"https://github.com/vueuse/gesture/issues"},"homepage":"https://github.com/vueuse/gesture#readme","author":{"name":"Yaël GUILLOUX","email":"yael.guilloux@gmail.com"},"license":"MIT","keywords":["vue","hook","gesture","motion","v-gesture","use-gesture-vue","interactive-vue"],"sideEffects":false,"main":"dist/index.cjs.js","module":"dist/index.esm-bundler.js","unpkg":"dist/index.global.js","jsdelivr":"dist/index.global.js","types":"dist/src/index.d.ts","scripts":{"build":"rollup -c rollup.config.js","dev":"rollup -w -c rollup.config.js","lint":"prettier -c --parser typescript \"{src,__tests__,e2e}/**/*.[jt]s?(x)\"","lint:fix":"yarn run lint --write","test:types":"tsc --build tsconfig.json","test:unit":"jest","test":"yarn run test:types && yarn run test:unit","dev:docs":"vitepress dev docs","build:docs":"vitepress build docs","serve:docs":"vitepress serve docs","dev:demo":"vite","build:demo":"vite build","serve:demo":"vite serve demo/dist"},"dependencies":{"vue-demi":"^0.7.4"},"peerDependencies":{"@vue/composition-api":"^1.0.0-beta.1","vue":"^2.0.0 || >=3.0.0-rc.0"},"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"devDependencies":{"@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^2.4.2","@types/jest":"^26.0.22","@vitejs/plugin-vue":"^1.2.0","@vue/compiler-sfc":"^3.0.9","@vue/test-utils":"^2.0.0-beta.13","@vuedx/typecheck":"^0.6.3","@vuedx/typescript-plugin-vue":"^0.6.3","@vueuse/motion":"^1.5.2","jest":"^26.6.3","lint-staged":"^10.5.4","pascalcase":"^1.0.0","patch-vue-directive-ssr":"^0.0.1","popmotion":"^9.3.4","prettier":"^2.2.1","rollup":"^2.43.1","rollup-plugin-dts":"^3.0.1","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.30.0","ts-jest":"^26.5.4","typescript":"^4.2.3","vite":"^2.1.3","vite-plugin-windicss":"^0.10.4","vitepress":"^0.12.2","vue":"^3.0.5","yorkie":"^2.0.0"},"gitHooks":{"pre-commit":"lint-staged"},"lint-staged":{"*.js":["prettier --write"],"*.ts?(x)":["prettier --parser=typescript --write"]},"gitHead":"baed49a5e34f8f596be594650d66fe5d12ca2a1f","_id":"@vueuse/gesture@1.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-RKCYGmh1F8SGO00JGssDfVbeUz+HSkwUfhfN9gyI7LnARmKTnMTUaIuO4lJHOwOPTWwnmK857CPsdXX6NkUUAA==","shasum":"dd2c47cd2338dea5afc500ca7f10467524120a45","tarball":"https://registry.npmjs.org/@vueuse/gesture/-/gesture-1.0.0.tgz","fileCount":9,"unpackedSize":373572,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZRsGCRA9TVsSAnZWagAAWKUP/R3GdQr8pGifyV97P1Xn\nwg3Dz3BMNUs0Xp1hWpEdIO9D9CbcjLLMSgvtKMN9yNYCpk90o69qtXYduWmB\nNa7MuRglInCWnlbQzYKvtteYnmPNa8YG0en/4++Zyppm3Qw1jwadqdFDE58f\nDRcnKztksT9EqrHb6kTrTsZQ6tV2Sc+UWwhB1fZpLOwRbnxwbj2eEMmMYROc\nJrczgQNZkOVfeO4w52ndLVYSkOToDTMMNh8sOUa61MODncf2/0HY+gF1p5X9\ngxEi6HKWIe7/BKPu1fAyx7SsgqzSsd1naIGU3xyiWJ9NILmfRTPr8At8ENrp\nRZz3ZLkKblvgrpjj8/YZ7fT0GAMI/E4pn/trsm5sGHiWtbJcal/iAdMNQw71\nKbsEl4Ec/wYt5Ift1dqEEneolgP+ryIQLZ8CYOfy7Lr0ahqxtAKBRxWCANZU\npqgkNRNwNASW6kyfwXYH0HF9/EdmuT62L4RXwIgr44gl+h1wghn7GrHhQa3q\n3qg3017jwn5hM8l1wRlmFK/8CC0bkrpQEyOmMhuZcKmH8oWycEqFdSYtaB8o\nAddUSh9wlq06HmKl5uIsD7ffq30OHxn/9b9so/tK9co1o3Rn726B+vlik4Hm\nBE+A+ITMJI+ILq2A6CUqZe7Uosj9Blo8kiN6K7PCkWfd8U1cFdT8Tie3lZdy\nPEP3\r\n=Lxff\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIExqVFan4sqDcBdiZOuwQ+ANh77fpcSm7xRWU3i8ue/VAiBk2t+LRN/8KPj3HDCt4XFOnfsou9+9+J0UcpjHrXGSCQ=="}]},"_npmUser":{"name":"tahul","email":"yael@ipseity.fr"},"directories":{},"maintainers":[{"name":"tahul","email":"yael@ipseity.fr"},{"name":"egoist","email":"0x142857@gmail.com"},{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gesture_1.0.0_1617238790061_0.6086259058003338"},"_hasShrinkwrap":false},"2.0.0-beta.1":{"name":"@vueuse/gesture","version":"2.0.0-beta.1","description":"🕹 Vue Composables making your app interactive","repository":{"type":"git","url":"git+https://github.com/vueuse/gesture.git"},"bugs":{"url":"https://github.com/vueuse/gesture/issues"},"homepage":"https://github.com/vueuse/gesture#readme","author":{"name":"Yaël GUILLOUX","email":"yael.guilloux@gmail.com"},"license":"MIT","keywords":["vue","hook","gesture","motion","v-gesture","use-gesture-vue","interactive-vue"],"type":"module","main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"dependencies":{"chokidar":"^3.5.2","consola":"^2.15.3","upath":"^2.0.1","vue-demi":"*"},"peerDependencies":{"@vue/composition-api":"^1.4.1","vue":"^2.0.0 || >=3.0.0-rc.0"},"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"devDependencies":{"@types/jest":"^27.4.0","@vitejs/plugin-vue":"^2.0.1","@vue/compiler-sfc":"^3.2.26","@vue/server-renderer":"^3.2.26","@vue/test-utils":"^2.0.0-beta.13","@vuedx/typecheck":"^0.7.4","@vuedx/typescript-plugin-vue":"^0.7.4","@vueuse/motion":"^2.0.0-beta.9","jest":"^27.4.5","jiti":"^1.12.9","lint-staged":"^12.1.5","pascalcase":"^2.0.0","patch-vue-directive-ssr":"^0.0.1","popmotion":"^11.0.3","prettier":"^2.5.1","ts-jest":"^27.1.2","typescript":"^4.5.4","unbuild":"^0.6.7","vite":"^2.7.10","vite-plugin-windicss":"^1.6.1","vitepress":"^0.20.10","vue":"^3.0.5","yorkie":"^2.0.0"},"gitHooks":{"pre-commit":"lint-staged"},"lint-staged":{"*.js":["prettier --write"],"*.ts?(x)":["prettier --parser=typescript --write"]},"scripts":{"build":"unbuild","dev":"jiti scripts/watch.ts --cache","lint":"prettier -c --parser typescript \"{src,__tests__,e2e}/**/*.[jt]s?(x)\"","lint:fix":"pnpm lint --write","test:types":"tsc --build tsconfig.json","test:unit":"jest","test":"pnpm test:types && pnpm test:unit","dev:docs":"vitepress dev docs","build:docs":"vitepress build docs","serve:docs":"vitepress serve docs","dev:demo":"vite","build:demo":"vite build","serve:demo":"vite serve demo/dist"},"_resolved":"","_integrity":"","_from":"file:vueuse-gesture-2.0.0-beta.1.tgz","_id":"@vueuse/gesture@2.0.0-beta.1","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-HTLibLy3bh6TjRnDAbMAvHSsEmrkRituMj2x+mHwmp1EnM8A8CDRTfNJEr8d/hIairnPPp5Va2KWYVmyP/zvkA==","shasum":"e4c555bab652e4e13d612e3970eb21184a27a0b8","tarball":"https://registry.npmjs.org/@vueuse/gesture/-/gesture-2.0.0-beta.1.tgz","fileCount":6,"unpackedSize":140924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2PFUCRA9TVsSAnZWagAAZpoQAJsqWYa7CHcjQjhzy1a0\npK0JCIVEOBMV4MxHzyxc5NAbpHrZB8i2s7mrWBQJCUIBpE5uJvUdrhPWc3Xu\nQjvSVy4uv07zup6HQ1fRXTUsT06RuRj50/EGgPgZNrKaelHo5nbzqKrUij9G\ntjGY5DabMhuIlAq6/cHQIFClsYgGyJIR0FBec1o8Z5OeZj3PZEBuNEb2b6gF\nJ8F/GbHjzAQK/2aOe2u2aBn55lk/qk7KYLhjh10+PRQKCdRhA8KDZCX1iuvx\niG04fuJEEZSXQ6s4U36n2owq8aYnxFr+ZJGAznfkH/OnuUfj8lc0wSF5YHCK\nIvff4X6IH4cN5tKbAnyxTVvDMbIUNzVXy9khxlwNTj6SuhYLGRTa4bOujGuI\nbL27UsvVIp0xzi8BqEMSbZzEAYnT/CZpduiXMuw3S9aG9OxWEfZ6MSKa8QjK\n5QQnvXegZsscQLcQr0izD0i/sKdaXO4d7GLYxlI+x19HcyZbmOEy5WLlUUbM\n7+mVC4Xmw452VQlJZ6y5gD+ZJ7V6nzDPFjLEhzN7HXQhB96FnhzEogup/Udx\neGrARIeVQKQaYrkyHqkoSgfRU79ykggten7TnnRr2bncYNb/aPbQLcM8PL/L\n44SSpar8OTk2tz9tspgNpnu9RSfIH7W/ydxAvW47eACOmb1XJTaB951LJNpR\nTAKs\r\n=ICPP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAQYt3OD0o4rfeUojNnXv6Z+piLBvYxfeHxQjp+vzV3wIgB2bl2kDAkEMLtofya1W3Yz7pV4d89F2zRXi0zUYW43c="}]},"_npmUser":{"name":"tahul","email":"yael@ipseity.fr"},"directories":{},"maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"},{"name":"egoist","email":"0x142857@gmail.com"},{"name":"tahul","email":"yael@ipseity.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gesture_2.0.0-beta.1_1641607507135_0.15575924648676742"},"_hasShrinkwrap":false},"2.0.0":{"name":"@vueuse/gesture","version":"2.0.0","description":"🕹 Vue Composables making your app interactive","repository":{"type":"git","url":"git+https://github.com/vueuse/gesture.git"},"bugs":{"url":"https://github.com/vueuse/gesture/issues"},"homepage":"https://github.com/vueuse/gesture#readme","author":{"name":"Yaël GUILLOUX","email":"yael.guilloux@gmail.com"},"license":"MIT","keywords":["vue","hook","gesture","motion","v-gesture","use-gesture-vue","interactive-vue"],"type":"module","main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"build":"unbuild","dev":"jiti scripts/watch.ts --cache","lint":"prettier -c --parser typescript \"{src,__tests__,e2e}/**/*.[jt]s?(x)\"","lint:fix":"pnpm lint --write","test:types":"tsc --build tsconfig.json","test":"pnpm test:types","dev:docs":"vitepress dev docs","build:docs":"vitepress build docs","serve:docs":"vitepress serve docs","dev:demo":"vite","build:demo":"vite build","serve:demo":"vite serve demo/dist","release":"release-it"},"dependencies":{"chokidar":"^3.6.0","consola":"^3.2.3","upath":"^2.0.1","vue-demi":"*"},"peerDependencies":{"@vue/composition-api":"^1.4.1","vue":"^2.0.0 || >=3.0.0-rc.0"},"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"devDependencies":{"@vitejs/plugin-vue":"^5.0.4","@vue/compiler-sfc":"^3.4.19","@vue/server-renderer":"^3.4.19","@vue/test-utils":"^2.4.4","@vuedx/typecheck":"^0.7.6","@vuedx/typescript-plugin-vue":"^0.7.6","@vueuse/motion":"^2.1.0","jiti":"^1.21.0","lint-staged":"^15.2.2","pascalcase":"^2.0.0","patch-vue-directive-ssr":"^0.0.1","popmotion":"^11.0.5","prettier":"^3.2.5","ts-jest":"^29.1.2","typescript":"^5.3.3","unbuild":"^2.0.0","vite":"^5.1.4","vite-plugin-windicss":"^1.9.3","vitepress":"^0.22.4","vue":"^3.4.19","yorkie":"^2.0.0"},"gitHooks":{"pre-commit":"lint-staged"},"lint-staged":{"*.js":["prettier --write"],"*.ts?(x)":["prettier --parser=typescript --write"]},"release-it":{"hooks":{"before:init":["pnpm build"]},"npm":{"access":"public"},"git":{"commitMessage":"chore(release): release v${version}"},"github":{"release":true,"releaseName":"v${version}"}},"gitHead":"792112e67278895d2136054b61b0f05197d742a8","_id":"@vueuse/gesture@2.0.0","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-+F0bhhd8j+gxHaXG4fJgfokrkFfWenQ10MtrWOJk68B5UaTwtJm4EpsZFiVdluA3jpKExG6H+HtroJpvO7Qx0A==","shasum":"1dcead0a2748f9b32f586f559d291c70a11a492c","tarball":"https://registry.npmjs.org/@vueuse/gesture/-/gesture-2.0.0.tgz","fileCount":8,"unpackedSize":188356,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDOcEyAA3/7zNp5Tjuuhd0ZuHCSXJy2yXbJodiFtj91wIgYq2DAod9UxE7pEVhnVQL+pTemkWnPZt7jEMxzKwrvUk="}]},"_npmUser":{"name":"tahul","email":"yael.guilloux@gmail.com"},"directories":{},"maintainers":[{"name":"sxzz","email":"sxzz@sxzz.moe"},{"name":"antfu","email":"anthonyfu117@hotmail.com"},{"name":"egoist","email":"0x142857@gmail.com"},{"name":"tahul","email":"yael.guilloux@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gesture_2.0.0_1708626025327_0.31548374372088483"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-01T00:59:49.824Z","1.0.0":"2021-04-01T00:59:50.221Z","modified":"2024-04-16T03:06:23.756Z","2.0.0-beta.1":"2022-01-08T02:05:08.141Z","2.0.0":"2024-02-22T18:20:25.631Z"},"maintainers":[{"email":"npm-vueuse@antfu.me","name":"vueuse-bot"},{"email":"sxzz@sxzz.moe","name":"sxzz"},{"email":"anthonyfu117@hotmail.com","name":"antfu"},{"email":"0x142857@gmail.com","name":"egoist"},{"email":"yael.guilloux@gmail.com","name":"tahul"}],"description":"🕹 Vue Composables making your app interactive","homepage":"https://github.com/vueuse/gesture#readme","keywords":["vue","hook","gesture","motion","v-gesture","use-gesture-vue","interactive-vue"],"repository":{"type":"git","url":"git+https://github.com/vueuse/gesture.git"},"author":{"name":"Yaël GUILLOUX","email":"yael.guilloux@gmail.com"},"bugs":{"url":"https://github.com/vueuse/gesture/issues"},"license":"MIT","readme":"# 🕹 @vueuse/gesture\n\n[![npm](https://img.shields.io/npm/v/@vueuse/gesture.svg)](https://www.npmjs.com/package/@vueuse/gesture)\n[![npm](https://img.shields.io/npm/dm/@vueuse/gesture.svg)](https://npm-stat.com/charts.html?package=@vueuse/gesture)\n[![Netlify Status](https://api.netlify.com/api/v1/badges/ab1db459-8420-4bc6-9fac-2bc247fa2385/deploy-status)](https://app.netlify.com/sites/vueuse-gesture/deploys)\n\n**Vue Composables** making your app **interactive**\n\n- 🚀 **Plug** & **play**\n- 🕹 **Mouse** & **Touch** support\n- 🎮 **Directives** support (**v-drag**, **v-pinch**, **v-move**...)\n- ✨ Written in **TypeScript**\n- ✅ Supports **Vue 2 & 3** using [**vue-demi**](https://github.com/antfu/vue-demi)\n- 🤹 Plays well with [**vueuse/motion**](https://github.com/vueuse/motion) or **any other** animation solution\n\n[🌍 **Documentation**](https://gesture.vueuse.org)\n\n[👀 **Demos**](https://vueuse-gesture-demo.netlify.app)\n\n## Quick Start\n\nLet's **get started** quickly by **installing** the **package** and adding the **plugin**.\n\nFrom your **terminal**:\n\n```bash\npnpm add @vueuse/gesture\n```\n\nIn your **Vue** app **entry** file:\n\n```javascript\nimport { createApp } from 'vue'\nimport { GesturePlugin } from '@vueuse/gesture'\nimport App from './App.vue'\n\nconst app = createApp(App)\n\napp.use(GesturePlugin)\n\napp.mount('#app')\n```\n\nYou can now **interact** with any of your **component**, **HTML** or **SVG** elements using `v-drag` or any other **directive**.\n\n```vue\n<template>\n  <div v-drag=\"dragHandler\" />\n</template>\n\n<script lang=\"ts\">\nconst dragHandler = (dragState) => {\n  // Do something with dragState\n}\n</script>\n```\n\nTo see more about the **gestures** events **data**, check out [**Gesture State**](https://gesture.vueuse.org/gesture-state.html).\n\nTo see more about the **gestures** options, check out [**Gesture Options**](https://gesture.vueuse.org/gesture-options.html).\n\nAlso, here is a list of the available gestures:\n\n- [**Drag**](https://gesture.vueuse.org/use-drag.html)\n- [**Move**](https://gesture.vueuse.org/use-move.html)\n- [**Hover**](https://gesture.vueuse.org/use-hover.html)\n- [**Scroll**](https://gesture.vueuse.org/use-scroll.html)\n- [**Wheel**](https://gesture.vueuse.org/use-wheel.html)\n- [**Pinch**](https://gesture.vueuse.org/use-pinch.html)\n\n## Credits\n\nThis package is a **fork** [**react-use-gesture**](https://github.com/pmndrs/react-use-gesture) by [**pmndrs**](https://github.com/pmndrs).\n\nIf you **like** this package, consider **following me** on [**GitHub**](https://github.com/Tahul) and on [**Twitter**](https://twitter.com/yaeeelglx).\n\n👋\n","readmeFilename":"README.md"}