{"_id":"@1-week/vue-use-vuex","_rev":"3-f6c7ee925d63460ea52522935ca88909","name":"@1-week/vue-use-vuex","dist-tags":{"latest":"0.2.16"},"versions":{"0.2.12":{"name":"@1-week/vue-use-vuex","description":"Use Vuex With Composition API Easily.","version":"0.2.12","main":"lib/index.cjs.js","types":"lib/index.d.ts","module":"lib/index.esm.js","unpkg":"lib/index.umd.min.js","jsdelivr":"lib/index.umd.min.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/vueblocks/vue-use-utilities.git"},"homepage":"https://github.com/vueblocks/vue-use-utilities","keywords":["vue","vue-use","vuex","composition-api","utilities"],"author":{"name":"1-week","email":"https://github.com/1-week"},"license":"MIT","sideEffects":false,"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"peerDependencies":{"@vue/composition-api":"^1.2.4","vue":"^2.6.14 || ^3.2.0","vuex":"^3.6.2"},"dependencies":{"@vue/composition-api":"^1.2.4","vue-demi":"0.10.0","vuex":"^3.6.2"},"devDependencies":{"@vue/compiler-sfc":"^3.2.20","vue":"^3.2.20","vue2":"npm:vue@2"},"gitHead":"9836dd8c84c744557d4e74173804c40f824bd2d4","bugs":{"url":"https://github.com/vueblocks/vue-use-utilities/issues"},"_id":"@1-week/vue-use-vuex@0.2.12","_nodeVersion":"14.20.1","_npmVersion":"lerna/3.22.1/node@v14.20.1+x64 (darwin)","dist":{"integrity":"sha512-02Ne/jcKvmns/Wq3v7pQbz8j7R45m4GJsHpLTmMjAlrUyPSoIHp82UuueX7p7/+pQo/4aN2961SBF28PW+6vfw==","shasum":"994742f2e6cde39fbf3588cccd9aa3c30a48040a","tarball":"https://registry.npmjs.org/@1-week/vue-use-vuex/-/vue-use-vuex-0.2.12.tgz","fileCount":3,"unpackedSize":4260,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIDcn4FYmK1rCO4PPQaE/e2otR6kXaGipo5gWPXgOWLAIgGBVr+7GVGr0DGzmOaEqsagswVXc9gYuyDWDvO/sQPtg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvUmRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOMg/9E+X0yLQ7ElsXa0QU5CEK2ZjmUKhHwhGDBfvzq7oidREEqxbc\r\n5GGGEtokiwes7i9HDQ4QKc//yNNAQ29/ZM5HfRZmhS84q++fuNgznKrcVGag\r\nTAwyndi4ECIaYXEMgcd/yCrqZg7oRLNrJqxt2hRDA3WQyy47GdpqJnKxmjav\r\ntg/TZ/IyUQTPFpycmH41ikcK0XTkjDMp/CLSV/kdynxsw6E0AXxkSpizQoKU\r\nqDTHQJPgLvq+sTwxeWTVtzh4ja8/CVzKRTS35NPfvXN0plnifrd4EUsvep49\r\nGHIWFjkN6y6lf9VXcx8s5BQ1tU9lSLzF2w+GgRinyVX89xyQ7lLUkHo0idq4\r\nEFv6NZHiWHvV/r5RUHdcSc/k30IXkwjfvefTwZQeayk5fzKQNFPWRGLSJ5V+\r\nmQly2GjCSpsDa5AkCkcWZdGGzUeIiTck9voK0qYbp7MjrR4j2fWDZ6rBE75X\r\nVs6JIMaEdQLtmjv92Jyy7h8/PBh3oTwmSkjYEmIYRlW0mriucHUPHQ8b+hSQ\r\nxhAiTgX6fEqiXU3aVGhEudm/3ssapd1+Dv3JIey7klXiRAM5tNIwaxYsN58w\r\nqQVrg/N5LUsLhyC7z3LHR4E4Uyp36LunCpzsixe/0OqhPB7dY9ZV9qmAiPzK\r\nCkGhPR8+7lOZYXRtcO+CG+WKgl20eIRW3Tg=\r\n=+Kum\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"1-week","email":"bayeszou@gmail.com"},"directories":{},"maintainers":[{"name":"1-week","email":"bayeszou@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-use-vuex_0.2.12_1673349520984_0.7085903829042408"},"_hasShrinkwrap":false},"0.2.13":{"name":"@1-week/vue-use-vuex","description":"Use Vuex With Composition API Easily.","version":"0.2.13","main":"lib/index.cjs.js","types":"lib/index.d.ts","module":"lib/index.esm.js","unpkg":"lib/index.umd.min.js","jsdelivr":"lib/index.umd.min.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/vueblocks/vue-use-utilities.git"},"homepage":"https://github.com/vueblocks/vue-use-utilities","keywords":["vue","vue-use","vuex","composition-api","utilities"],"author":{"name":"1-week","email":"https://github.com/1-week"},"license":"MIT","sideEffects":false,"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"peerDependencies":{"@vue/composition-api":"^1.2.4","vue":"^2.6.14 || ^3.2.0","vuex":"^3.6.2"},"dependencies":{"@vue/composition-api":"^1.2.4","vue-demi":"0.10.0","vuex":"^3.6.2"},"devDependencies":{"@vue/compiler-sfc":"^3.2.20","vue":"^3.2.20","vue2":"npm:vue@2"},"gitHead":"bcacbd2014637ea0a712430b92354d331d3dafba","bugs":{"url":"https://github.com/vueblocks/vue-use-utilities/issues"},"_id":"@1-week/vue-use-vuex@0.2.13","_nodeVersion":"14.20.1","_npmVersion":"lerna/3.22.1/node@v14.20.1+x64 (darwin)","dist":{"integrity":"sha512-CtWArpnNw2FfU0Z+lFvS0DNWbzlGcW1jO6wDBsEEt5YK6hmvaPPIwjqojlddVQPMyZRutaK87w/jCfaIuE2qMA==","shasum":"9552e4fb2727e06a2f32de5f5d39863ad7a2b41b","tarball":"https://registry.npmjs.org/@1-week/vue-use-vuex/-/vue-use-vuex-0.2.13.tgz","fileCount":8,"unpackedSize":37650,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDo0KRZgXGRwGrT6QVg+i5rbeuem24GLy409ToYnBMwtwIhAJ5LZfqpL0NsU9oVS3bkpyRELsVfawzMpw77vir3Bu7l"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvU7AACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmryfQ//XXuuHMGH6xz35WRNkg09WsLlQe8kE5nraxC15nXSOvhlGMvH\r\nC/319sFqHgC/96m5RakywliOm+yIL6ZIdg5bqO+pbpMb4xSD5Kso/Rtpg0Au\r\nyz7xiMr12yNUk44kUBbP2uBXUAGDn+/MwLPg8OIe0S8tZhA4E5WiCCmLTXPh\r\nIJyxnBFHYL1MAD5UZfrcWmsKG+BfqcR1OFi9ABafU1v8Au70Y2c9oaKiIYCW\r\npZvJjM+xEzCSF7/Ddzil2tGpl0BXi13xDeFqy/fwlhJc2AF8OqCFZP8EyvTN\r\nME6dEAkzieUz7ra4UrOSweggw/rnf7oR6uy8fjKCIam6uzCaD+u7pbDyJdBE\r\nfJyXyh9mQi6DnZUSKkSSWjQLIP6YvafEZIV4L4SkfoS8o7A+BtPUOygKWuEK\r\nDkNhioDz1g8mT5ejKm/Tnc23bULItNfvv2Kbk2RP1inZTPBQR16Kbf580U7F\r\n1wIht+7a0QmQhEsjk2Z19cysFGpUrDf3COWyXAl1Ss9KNBxfrh52j4ghArgu\r\n3KvT7lpPgJA13NiSoQNLup2L7JE3wOAACNkdFcpfegDY8ayQKM+5rEAGF6xJ\r\n/SIIY4PdGTBc09SwDJCE4ZYKDV5y/fS6xtLwYe1AGxAO9o2sWJCPz2s+I028\r\nni83Bj3dYptLnG7pVTpGlwAXOWIczD64fWQ=\r\n=9N4I\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"1-week","email":"bayeszou@gmail.com"},"directories":{},"maintainers":[{"name":"1-week","email":"bayeszou@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-use-vuex_0.2.13_1673350848320_0.9826810582573924"},"_hasShrinkwrap":false},"0.2.14":{"name":"@1-week/vue-use-vuex","description":"Use Vuex With Composition API Easily.","version":"0.2.14","main":"lib/index.cjs.js","types":"lib/index.d.ts","module":"lib/index.esm.js","unpkg":"lib/index.umd.min.js","jsdelivr":"lib/index.umd.min.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/vueblocks/vue-use-utilities.git"},"homepage":"https://github.com/vueblocks/vue-use-utilities","keywords":["vue","vue-use","vuex","composition-api","utilities"],"author":{"name":"1-week","email":"https://github.com/1-week"},"license":"MIT","sideEffects":false,"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"peerDependencies":{"@vue/composition-api":"^1.2.4","vue":"^2.6.14 || ^3.2.0","vuex":"^3.6.2"},"dependencies":{"@vue/composition-api":"^1.2.4","vue-demi":"0.10.0","vuex":"^3.6.2"},"devDependencies":{"@vue/compiler-sfc":"^3.2.20","vue":"^3.2.20","vue2":"npm:vue@2"},"gitHead":"3ba3ada8a33d23d99c27a5db7e787e7179218f30","bugs":{"url":"https://github.com/vueblocks/vue-use-utilities/issues"},"_id":"@1-week/vue-use-vuex@0.2.14","_nodeVersion":"14.20.1","_npmVersion":"lerna/3.22.1/node@v14.20.1+x64 (darwin)","dist":{"integrity":"sha512-cZ3tBpHAeI7TiYNi/cmvEtJ8rOFP6kHii4cSb0hLa9/l5YzTPtokzkIRm5j5AdL4kZqGgEIFhwxc5bjCwqnMyg==","shasum":"2f48f08d70163173e507e286e7ad6191eaa8ab3b","tarball":"https://registry.npmjs.org/@1-week/vue-use-vuex/-/vue-use-vuex-0.2.14.tgz","fileCount":8,"unpackedSize":37810,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDphzzlboCxTyXzM+zr9XhOTYpn1gG8MVflZceBzdHRBQIhAJVHTfI/qPJwaQikb/fT2w46nve+ElArKJXZl9pc5Jsg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvVLxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqhIg//TyC2j6dK9kgugy7cstpVVv9lLuaQCCgnmUsLdhMg/5HZmXvY\r\naY5WilHpycsKI3Mrj0aY3gpK66D8VPxLjXDb11BZQ7tJXEjjBZ27frCit0c9\r\nhtTDfcxH9BzYMaU98Qpum5YBAY10UQ4Do6KS8mb1jym/4OmnvJydQeoAHIce\r\nCfc/SvtSgwXB+L5bKQbg5oB6EbM4Sq6JyhV6gyFMCDp6rInsIMDWxY8H7Cho\r\nd8WfSMYmqdzAHiZqy1tKupA/zrLdiP9q4Sgv2+OEytwTQe0nXICYOpDDokDD\r\nXoJRgmPCAL+3nEUnwGyezUXHDZb/zaNvJsvTbOj0cENVqNBLI+zeK06h/IUg\r\ndkC7jGDrxGvuMfGJFcqtUVIUa2LymK4ZAr3EO4QWrARFVtxAcRjuuaJWrtZn\r\njIuGoVZ7r64trZ4RvRMn3cN+NK/dqLJaO2mFTkEqjXfW9O0XUqbLuBPgNhgE\r\nMQQTOV4dffFadntyp/TrFyDOpLhSXvW5ed8F1E2eeHiOmpzXUFBAqJqMaWqr\r\n1U0qT2Gwh8Y3+IIvoI0jhEyLzuJHviepHCXDu7fx32ccS1U8IdxOkFpT2CtZ\r\nB3GvuvCPnnldNQjG/SJyPgC4C8bMa39uqCJxM4lOKSWXggigEYdan5uS7cJi\r\nu5f0JZkPyeXNlGsoQBmspb1Q1gochhJunL4=\r\n=powV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"1-week","email":"bayeszou@gmail.com"},"directories":{},"maintainers":[{"name":"1-week","email":"bayeszou@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-use-vuex_0.2.14_1673351921223_0.257847227729916"},"_hasShrinkwrap":false},"0.2.16":{"name":"@1-week/vue-use-vuex","description":"Use Vuex With Composition API Easily.","version":"0.2.16","main":"lib/index.cjs.js","types":"lib/index.d.ts","module":"lib/index.esm.js","unpkg":"lib/index.umd.min.js","jsdelivr":"lib/index.umd.min.js","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/vueblocks/vue-use-utilities.git"},"homepage":"https://github.com/vueblocks/vue-use-utilities","keywords":["vue","vue-use","vuex","composition-api","utilities"],"author":{"name":"1-week","email":"https://github.com/1-week"},"license":"MIT","sideEffects":false,"peerDependenciesMeta":{"@vue/composition-api":{"optional":true}},"peerDependencies":{"@vue/composition-api":"^1.2.4","vue":"^2.6.14 || ^3.2.0","vuex":"^3.6.2"},"dependencies":{"@vue/composition-api":"^1.2.4","vue-demi":"^0.14.6","vuex":"^3.6.2"},"devDependencies":{"@vue/compiler-sfc":"^3.2.20","vue":"^3.2.20","vue2":"npm:vue@2"},"gitHead":"4a0fac1bc6438b15a38aea9b28bad31c7fca69ec","bugs":{"url":"https://github.com/vueblocks/vue-use-utilities/issues"},"_id":"@1-week/vue-use-vuex@0.2.16","_nodeVersion":"18.17.1","_npmVersion":"lerna/3.22.1/node@v18.17.1+arm64 (darwin)","dist":{"integrity":"sha512-BBvSTNBp/A/YSE30DuxtHLvayNpAOd8OuLzvZ6jDv1Mh4DCkWq5ZIZCBe4OCMssrIoA70eyuOgkSpDj1eiR6wQ==","shasum":"e6afb1d22776ea049a9ae9d1186509fd0d49bf35","tarball":"https://registry.npmjs.org/@1-week/vue-use-vuex/-/vue-use-vuex-0.2.16.tgz","fileCount":8,"unpackedSize":37811,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpJwjJ9dnIRCkDDFq+0oOlGImaBbCnz8Zm4k23cMEysQIhAJ24Aq6NcnVaKQcnpdncuRJwhm+7BuiYII0ciLL1qHLR"}]},"_npmUser":{"name":"1-week","email":"bayeszou@gmail.com"},"directories":{},"maintainers":[{"name":"1-week","email":"bayeszou@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-use-vuex_0.2.16_1694069502101_0.6179628124194636"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-10T11:18:40.905Z","0.2.12":"2023-01-10T11:18:41.096Z","modified":"2023-09-07T06:51:42.421Z","0.2.13":"2023-01-10T11:40:48.463Z","0.2.14":"2023-01-10T11:58:41.377Z","0.2.16":"2023-09-07T06:51:42.244Z"},"maintainers":[{"name":"1-week","email":"bayeszou@gmail.com"}],"description":"Use Vuex With Composition API Easily.","homepage":"https://github.com/vueblocks/vue-use-utilities","keywords":["vue","vue-use","vuex","composition-api","utilities"],"repository":{"type":"git","url":"git+https://github.com/vueblocks/vue-use-utilities.git"},"author":{"name":"1-week","email":"https://github.com/1-week"},"bugs":{"url":"https://github.com/vueblocks/vue-use-utilities/issues"},"license":"MIT","readme":"# @vueblocks/vue-use-vuex\n\n> Use Vuex With Composition API Easily.\n\n## Install\n\n```bash\n# Vue 2 with @vue/composition-api\nyarn add @vue/composition-api @vueblocks/vue-use-vuex -S\nor\nnpm i @vue/composition-api @vueblocks/vue-use-vuex -S\n\n# Vue 3\nyarn add @vueblocks/vue-use-vuex -S\nor\nnpm i @vueblocks/vue-use-vuex -S\n```\n\n## Usage\n\n### useVuex\n\n`useVuex` utilities just similar with [Vuex Component Binding Helpers](https://vuex.vuejs.org/api/#component-binding-helpers)\n\nIt export these composable helpers:\n\n* [useState](./useState.md) - same as `mapState` helper in Vuex\n* [useGetters](./useGetters.md) - same as `mapGetters` helper in Vuex\n* [useMutations](./useMutations.md) - same as `mapMutations` helper in Vuex\n* [useActions](./useActions.md) - same as `mapActions` helper in Vuex\n\nDifferently, `useVuex` do not export `createNamespacedHelpers` function, Instead `useVuex` allow you provide\nthe namespace as first argument, then return will be the namespaced component binding helpers.\n\nRead more about namespacing [documention](./namespacing.md).\n\n### useStore\n\n`useStore` utilities just do the same thing with Vuex 4.x composition api [useStore](https://next.vuex.vuejs.org/guide/composition-api.html)\n\nIt seems familiar right?\n\n## Typing\n\n```ts\n/**\n * Get $store from current instance\n * @return {Store} vm.$store\n */\ndeclare const useStore: () => Store<any>;\n/**\n * Use Vuex with composition api easily. Both support Vue2.x / Vue3.x\n * @param {String} namespace\n * @param {Store} store ### vm.$store\n */\ndeclare function useVuex(namespace?: string, store?: Store<any>): {\n  useState: (namespace?: string, map: Array<string> | Object<string | function>) => Object<ComputedRef>\n  useGetters: (namespace?: string, map: Array<string> | Object<string>) => Object<ComputedRef>\n  useMutations: (namespace?: string, map: Array<string> | Object<string | function>) => Object\n  useActions: (namespace?: string, map: Array<string> | Object<string | function>) => Object\n};\n```\n","readmeFilename":"README.md"}