{"_id":"@edenchazard/vue-slick-press","_rev":"3-ab1e5cb0bf70acc0c430b3b85dc042cf","name":"@edenchazard/vue-slick-press","dist-tags":{"latest":"2.1.1"},"versions":{"1.0.0":{"name":"@edenchazard/vue-slick-press","version":"1.0.0","type":"module","private":false,"homepage":"https://github.com/edenchazard/vue-slick-press#readme","scripts":{"dev":"vite","build":"run-p type-check build-only","preview":"vite preview","test:unit":"vitest --environment jsdom --root src/","build-only":"vite build","type-check":"vue-tsc --noEmit -p tsconfig.vitest.json --composite false","lint":"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"},"main":"./dist/vue-slick-press.umd.cjs","module":"./dist/vue-slick-press.js","exports":{".":{"import":"./dist/vue-slick-press.js","require":"./dist/vue-slick-press.umd.cjs"},"./style.css":"./dist/style.css"},"dependencies":{"vue":"^3.2.45"},"repository":{"type":"git","url":"git+https://github.com/edenchazard/vue-slick-press.git"},"bugs":{"url":"https://github.com/edenchazard/vue-slick-press/issues"},"devDependencies":{"@rushstack/eslint-patch":"^1.1.4","@types/jsdom":"^20.0.1","@types/node":"^18.11.12","@typescript-eslint/eslint-plugin":"^5.49.0","@vitejs/plugin-vue":"^4.0.0","@vue/eslint-config-prettier":"^7.0.0","@vue/eslint-config-typescript":"^11.0.0","@vue/test-utils":"^2.2.6","@vue/tsconfig":"^0.1.3","eslint":"^8.32.0","eslint-config-standard-with-typescript":"^32.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-n":"^15.6.1","eslint-plugin-promise":"^6.1.1","eslint-plugin-vue":"^9.9.0","jsdom":"^20.0.3","npm-run-all":"^4.1.5","typescript":"^4.9.4","vite":"^4.0.0","vitest":"^0.25.6","vue-tsc":"^1.0.12"},"gitHead":"34c7ad4abf6b3eb676e51d36e453c7c4bf27edbb","description":"A simple Vue 3 directive that intercepts typical clicks and \"long presses\". Intended to work across touch browsers and mouse browsers.","_id":"@edenchazard/vue-slick-press@1.0.0","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-X9AJLDE7PEN4plcm2YgfrbFS3YnDAhPhWOn1sn9b70JseS+zIe1ng7Qpa+x3OGdaucTxZkH1JeK6k8T/qs4D/A==","shasum":"57b8e9f961e512064cd5cd94c0da714ecced29a9","tarball":"https://registry.npmjs.org/@edenchazard/vue-slick-press/-/vue-slick-press-1.0.0.tgz","fileCount":5,"unpackedSize":8090,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChc7c3/fVl9Qawoc/JHqtth7RYG1EzUSVeh8oZnnbsmgIhAPtzSjMjoswfNHnYm3xqC6N9YOKANGPGC8BLqvtVV+ok"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0uVHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNjhAApObhf96l9KvmUqSiQCzTe36Fm498fLLy72B+5Ig8JkK/c5kt\r\nH0YZoxCe4QMuDPSFbmxvx5+chZkjOyxdX2LuvrdBp9FsOLhe0NSq/JeYRNdM\r\nAZvCtgCzQrU0QXZ8RMkJCoWSc+Nioo+rE8641GtOjiTLaVmVj72hq8khzNEZ\r\nLnfUQIlQ8XrGK7gqPrdTYyVYU+cMCd3L4FdTZxrqdLgSdlmOie2WM1lZKsEh\r\ny2SZaQtuU9aBKISdH99HOoM7cf4sJA97RrLRuV9BcZDc3XVmYUVM/hF0HB9+\r\nEPIjb1bXvvC0xwMLpTaEAZH9RB/NkWQnrMaORxh28dUNxzocn6dKHsVQQoDE\r\nhUyg2Ko/P5fzu9cSPEKPqqfP0zTu8kugtcIzJeskMnXEm3PfW4rQxRi3+gTl\r\nykiYYuE7e+KllEr+YZ/CYRKhaNkdfHP1Bq4gcoSAUBuf7Q/0jcHdwqMTJDm5\r\nObblH5OQzmR6VXVGru/Y+K/wZFHimPjJ2d5XI7enUVwuwCXFZ9f0q5+dx/1C\r\n6zEWGiHLo1eqsYGTb5MCg7J0JIS7WrjDf4BBcbIO/GNR7W922kkT0Z+mDzMB\r\nRY2DsUQqk6QPDd8ycvLdsJKLFDlHrsfiUqSX/x9Y+cPoH3+k/C9p26LeKD87\r\nHnw2gltzCsbOmpDQeMf/cgzGcn8hSnwHU3E=\r\n=1KKU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"edenchazard","email":"neon.fortytwo@gmail.com"},"directories":{},"maintainers":[{"name":"edenchazard","email":"neon.fortytwo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-slick-press_1.0.0_1674765639560_0.5689247697670561"},"_hasShrinkwrap":false},"2.0.0":{"name":"@edenchazard/vue-slick-press","version":"2.0.0","private":false,"homepage":"https://github.com/edenchazard/vue-slick-press#readme","main":"./dist/vue-slick-press.umd.cjs","module":"./dist/vue-slick-press.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/vue-slick-press.js","require":"./dist/vue-slick-press.umd.cjs"}},"repository":{"type":"git","url":"git+https://github.com/edenchazard/vue-slick-press.git"},"license":"MIT","bugs":{"url":"https://github.com/edenchazard/vue-slick-press/issues"},"scripts":{"dev":"vite --host","build":"run-p ts:check \"build-only {@}\" --","build-only":"vite build","pkg":"vite build --mode package","preview":"vite preview","test:unit":"vitest --coverage","ts:check":"vue-tsc --noEmit -p tsconfig.vitest.json --composite false","lint":"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts","lint:fix":"npm run lint -- --fix","fmt":"prettier --write .","fix":"npm run lint:fix && npm run format"},"peerDependencies":{"vue":"^3.0.0"},"dependencies":{"vue":"^3.0.0"},"devDependencies":{"@tsconfig/node18":"^18.2.2","@types/jsdom":"^21.1.3","@types/node":"^18.17.17","@vitejs/plugin-vue":"^4.3.4","@vitest/coverage-v8":"^0.34.5","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"^2.4.1","@vue/tsconfig":"^0.4.0","autoprefixer":"^10.4.15","eslint":"^8.49.0","eslint-plugin-vue":"^9.17.0","jsdom":"^22.1.0","npm-run-all2":"^6.0.6","postcss-nesting":"^12.0.1","prettier":"^3.0.3","reset-css":"^5.0.2","typescript":"~5.2.0","vite":"^4.4.9","vite-plugin-dts":"^3.6.0","vitest":"^0.34.4","vue-tsc":"^1.8.11"},"gitHead":"b1d4ace60ca5940374ec5e2c7f5527210a18cf91","description":"A simple Vue 3 directive that distinguishes typical clicks from \"long presses\". Intended to work across touch browsers and mouse browsers.","_id":"@edenchazard/vue-slick-press@2.0.0","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Znrd+Ta2lxcrsDHsLAp1GIdLO+fKLyojeOjarqAcsAMHnrXzQOOB2AZxy5n+/C+rylrmv3kqW/U4AMDCEBKP+w==","shasum":"2ed15d455510bdca1b66b7e2f9d866a4919b8f49","tarball":"https://registry.npmjs.org/@edenchazard/vue-slick-press/-/vue-slick-press-2.0.0.tgz","fileCount":8,"unpackedSize":83657,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC8CxrGWeYSpDClVrDA+b+VKhzCfa14X49UxoDqSsIJzAiEA7lU9GCZj2qPOXs9ngYoaZc/c0YzMeweamG1cj1K7nGE="}]},"_npmUser":{"name":"edenchazard","email":"neon.fortytwo@gmail.com"},"directories":{},"maintainers":[{"name":"edenchazard","email":"neon.fortytwo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-slick-press_2.0.0_1700418699442_0.6485435423029"},"_hasShrinkwrap":false},"2.1.0":{"name":"@edenchazard/vue-slick-press","version":"2.1.0","private":false,"homepage":"https://github.com/edenchazard/vue-slick-press#readme","main":"./dist/vue-slick-press.umd.cjs","module":"./dist/vue-slick-press.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/vue-slick-press.js","require":"./dist/vue-slick-press.umd.cjs"}},"repository":{"type":"git","url":"git+https://github.com/edenchazard/vue-slick-press.git"},"license":"MIT","bugs":{"url":"https://github.com/edenchazard/vue-slick-press/issues"},"scripts":{"dev":"vite --host","build":"run-p ts:check \"build-only {@}\" --","build-only":"vite build","pkg":"vite build --mode package","preview":"vite preview","test:unit":"vitest --coverage","ts:check":"vue-tsc --noEmit -p tsconfig.vitest.json --composite false","lint":"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts","lint:fix":"npm run lint -- --fix","fmt":"prettier --write .","fix":"npm run lint:fix && npm run format"},"peerDependencies":{"vue":"^3.0.0"},"dependencies":{"vue":"^3.0.0"},"devDependencies":{"@tsconfig/node18":"^18.2.2","@types/jsdom":"^21.1.3","@types/node":"^18.17.17","@vitejs/plugin-vue":"^4.3.4","@vitest/coverage-v8":"^0.34.5","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"^2.4.1","@vue/tsconfig":"^0.4.0","autoprefixer":"^10.4.15","eslint":"^8.49.0","eslint-plugin-vue":"^9.17.0","jsdom":"^22.1.0","npm-run-all2":"^6.0.6","postcss-nesting":"^12.0.1","prettier":"^3.0.3","reset-css":"^5.0.2","typescript":"~5.2.0","vite":"^4.4.9","vite-plugin-dts":"^3.6.0","vitest":"^0.34.4","vue-tsc":"^1.8.11"},"gitHead":"5e325bc67c558aa38679bfd0bdd209b21bfa302d","description":"A simple Vue 3 directive that distinguishes typical clicks from \"long presses\". Intended to work across touch browsers and mouse browsers.","_id":"@edenchazard/vue-slick-press@2.1.0","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-XTJsIicwYyFLdk5rY3B2vkwexeDdGiQZ/xztla/n1Gw3mPzQ7HR0u2eh1VIrx+VK7Yt49a7A6HWjNlCuk3oTBQ==","shasum":"6b200cb642fc372459ffce40f526aef5d0c8eda9","tarball":"https://registry.npmjs.org/@edenchazard/vue-slick-press/-/vue-slick-press-2.1.0.tgz","fileCount":7,"unpackedSize":83646,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBC11FsIn7WVd7cQ/nnVsO6OZ6eWXrWcqr0DMwaP9A98AiEA/1Z7VsYfntUyroUfRTsBgw49xzpL06dw+p+ESWDfSE4="}]},"_npmUser":{"name":"edenchazard","email":"neon.fortytwo@gmail.com"},"directories":{},"maintainers":[{"name":"edenchazard","email":"neon.fortytwo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-slick-press_2.1.0_1700931680630_0.9111026393478463"},"_hasShrinkwrap":false},"2.1.1":{"name":"@edenchazard/vue-slick-press","version":"2.1.1","private":false,"type":"module","homepage":"https://github.com/edenchazard/vue-slick-press#readme","main":"./dist/vue-slick-press.umd.cjs","module":"./dist/vue-slick-press.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/vue-slick-press.js","require":"./dist/vue-slick-press.umd.cjs"}},"repository":{"type":"git","url":"git+https://github.com/edenchazard/vue-slick-press.git"},"license":"MIT","bugs":{"url":"https://github.com/edenchazard/vue-slick-press/issues"},"scripts":{"dev":"vite --host","build":"run-p ts:check \"build-only {@}\" --","build-only":"vite build","pkg":"vite build --mode package","preview":"vite preview","test:unit":"vitest --coverage","ts:check":"vue-tsc --noEmit -p tsconfig.vitest.json --composite false","lint":"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts","lint:fix":"npm run lint -- --fix","fmt":"prettier --write .","fix":"npm run lint:fix && npm run format"},"peerDependencies":{"vue":"^3.0.0"},"dependencies":{"vue":"^3.0.0"},"devDependencies":{"@tsconfig/node18":"^18.2.2","@types/jsdom":"^21.1.3","@types/node":"^18.17.17","@vitejs/plugin-vue":"^4.3.4","@vitest/coverage-v8":"^0.34.5","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^12.0.0","@vue/test-utils":"^2.4.1","@vue/tsconfig":"^0.4.0","autoprefixer":"^10.4.15","eslint":"^8.49.0","eslint-plugin-vue":"^9.17.0","jsdom":"^22.1.0","npm-run-all2":"^6.0.6","postcss-nesting":"^12.0.1","prettier":"^3.0.3","reset-css":"^5.0.2","typescript":"~5.2.0","vite":"^4.4.9","vite-plugin-dts":"^3.6.0","vitest":"^0.34.4","vue-tsc":"^1.8.11"},"gitHead":"254b8a456459887364423f45384067cfbef03f85","description":"A simple Vue 3 directive that distinguishes typical clicks from \"long presses\". Intended to work across touch browsers and mouse browsers.","_id":"@edenchazard/vue-slick-press@2.1.1","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-n/f3wK3JO5OZFtoFcS8B1LLVKAPUG5FHqkk6wT+tQtQ0dkwdGHR3aObt0kWqjhUCPNM9MJPHvNyZuKTUwPs0pQ==","shasum":"baf80c87b63a14081abd45230361ed43d7cceded","tarball":"https://registry.npmjs.org/@edenchazard/vue-slick-press/-/vue-slick-press-2.1.1.tgz","fileCount":7,"unpackedSize":83666,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAC63sCuT2tdKPHgNPPvCn+cNdG1ftIdbc94fhNBFHiyAiAZZNxQcdjz1lReVmwguQWWMMlQjjfwR/2FJxgSkac5Iw=="}]},"_npmUser":{"name":"edenchazard","email":"neon.fortytwo@gmail.com"},"directories":{},"maintainers":[{"name":"edenchazard","email":"neon.fortytwo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-slick-press_2.1.1_1700932953294_0.024433495966532215"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-26T20:40:39.471Z","1.0.0":"2023-01-26T20:40:39.728Z","modified":"2023-11-25T17:22:33.685Z","2.0.0":"2023-11-19T18:31:39.623Z","2.1.0":"2023-11-25T17:01:20.839Z","2.1.1":"2023-11-25T17:22:33.488Z"},"maintainers":[{"name":"edenchazard","email":"neon.fortytwo@gmail.com"}],"description":"A simple Vue 3 directive that distinguishes typical clicks from \"long presses\". Intended to work across touch browsers and mouse browsers.","homepage":"https://github.com/edenchazard/vue-slick-press#readme","repository":{"type":"git","url":"git+https://github.com/edenchazard/vue-slick-press.git"},"bugs":{"url":"https://github.com/edenchazard/vue-slick-press/issues"},"readme":"# Vue Slick Press\n\nA simple Vue 3 directive that distinguishes typical clicks from \"long presses\". Intended to work across touch browsers and mouse browsers.\n\n## Usage\n\nFirst, install the directive using\n`npm install @edenchazard/vue-slick-press`\n\nThen, import it like so and configure your events:\n\n```ts\nimport vSlickPress from 'vue-slick-press';\n\nfunction singleClick() {\n  alert('click detected!');\n}\n\nfunction longPress() {\n  alert('long press detected!');\n}\n```\n\nAnd then use it on a component.\n\n```vue\n<div\n  v-slickPress=\"{\n    click: singleClick,\n    longPress: longPress,\n    wait: 500,\n    disableRightClickMenu: true,\n  }\"\n> click/press here\n</div>\n```\n\n## API\n\nThere are a few configurable options per directive, these are:\n\n| Option                | Type       | Description                                                                                              |\n| --------------------- | ---------- | -------------------------------------------------------------------------------------------------------- |\n| click                 | () => void | Function to call when clicked.                                                                           |\n| longPress             | () => void | Function to call when a press extends into a long press.                                                 |\n| press                 | () => void | Function to call whenever the component is 'pressed'. Equivalent of touchdown/mousedown.                 |\n| wait                  | number     | The period of time in miliseconds from first press to when to call a long press.                         |\n| disableRightClickMenu | boolean    | If enabled, custom css will be applied to prevent the context menu appearing when held down/right click. |\n\n## TODOs\n\n- Fix the demo so it actually works haha. Right now it's working in the project it spawned from.\n\n## Recommended IDE Setup\n\n[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).\n\n## Type Support for `.vue` Imports in TS\n\nTypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.\n\nIf the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:\n\n1. Disable the built-in TypeScript Extension\n   1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette\n   2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`\n2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.\n\n## Customize configuration\n\nSee [Vite Configuration Reference](https://vitejs.dev/config/).\n\n## Project Setup\n\n```sh\nnpm install\n```\n\n### Compile and Hot-Reload for Development\n\n```sh\nnpm run dev\n```\n\n### Type-Check, Compile and Minify for Production\n\n```sh\nnpm run build\n```\n\n### Lint with [ESLint](https://eslint.org/)\n\n```sh\nnpm run lint\n```\n","readmeFilename":"README.md","license":"MIT"}