{"_id":"@anil-labs/google-places-autocomplete-vue","name":"@anil-labs/google-places-autocomplete-vue","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@anil-labs/google-places-autocomplete-vue","version":"0.2.0","type":"module","description":"Vue 3 address autocomplete component built on Google's Places API (New).","license":"MIT","author":"Er. Anil Kumar Thakur <anilkumarthakur60@gmail.com>","repository":{"type":"git","url":"git+https://github.com/anilkumarthakur60/google-places-autocomplete.git","directory":"packages/vue"},"homepage":"https://github.com/anilkumarthakur60/google-places-autocomplete/tree/main/packages/vue#readme","bugs":"https://github.com/anilkumarthakur60/google-places-autocomplete/issues","sideEffects":false,"main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"dependencies":{"@anil-labs/google-places-autocomplete-core":"^0.2.0"},"peerDependencies":{"vue":"^3.3.0"},"devDependencies":{"@vitejs/plugin-vue-jsx":"^5.1.6","@vue/test-utils":"^2.4.11","jsdom":"^29.0.2","tsup":"^8.5.1","typescript":"~6.0.0","vite":"^8.1.5","vitest":"^4.1.10","vue":"^3.5.32"},"publishConfig":{"access":"public"},"engines":{"node":">=20"},"scripts":{"clean":"rm -rf dist","build":"tsup && node scripts/check-dist.mjs","dev":"tsup --watch","test":"vitest run","test:watch":"vitest","typecheck":"tsc --noEmit","lint":"eslint ."},"_nodeVersion":"24.18.0","_id":"@anil-labs/google-places-autocomplete-vue@0.2.0","dist":{"integrity":"sha512-6fGntURRN9EfzFDJVbSj/QfcJtUWsNnSqXhjHTgx6bi3tVoWNI/47ZyP3Yk3lxPADVsyWXUaNnkHgf3reKJpsQ==","shasum":"74b9f56c454f67191fba7ce4a8cb7529ea7b5272","tarball":"https://registry.npmjs.org/@anil-labs/google-places-autocomplete-vue/-/google-places-autocomplete-vue-0.2.0.tgz","fileCount":9,"unpackedSize":63039,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHpuTpCwk4Q1SLRQxel+Om4+0+j0a5MVQUm9dFkeunLyAiEArK5jjs4m0XrotloPL8U/3V3UJhyqtNXJeLiHMbyKtRU="}]},"_npmUser":{"name":"anilkumarthakur","email":"anilkumarthakur60@gmail.com"},"directories":{},"maintainers":[{"name":"anilkumarthakur","email":"anilkumarthakur60@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/google-places-autocomplete-vue_0.2.0_1785342372000_0.42234594412392457"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-29T16:26:11.711Z","0.2.0":"2026-07-29T16:26:12.180Z","modified":"2026-07-29T16:26:12.569Z"},"maintainers":[{"name":"anilkumarthakur","email":"anilkumarthakur60@gmail.com"}],"description":"Vue 3 address autocomplete component built on Google's Places API (New).","homepage":"https://github.com/anilkumarthakur60/google-places-autocomplete/tree/main/packages/vue#readme","repository":{"type":"git","url":"git+https://github.com/anilkumarthakur60/google-places-autocomplete.git","directory":"packages/vue"},"author":"Er. Anil Kumar Thakur <anilkumarthakur60@gmail.com>","bugs":"https://github.com/anilkumarthakur60/google-places-autocomplete/issues","license":"MIT","readme":"# @anil-labs/google-places-autocomplete-vue\n\nVue 3 address autocomplete component built on Google's Places API (New).\n\n## Install\n\n```sh\nnpm install @anil-labs/google-places-autocomplete-vue\n```\n\n## Usage\n\n```vue\n<script setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { PlacesAutocomplete } from '@anil-labs/google-places-autocomplete-vue'\nimport '@anil-labs/google-places-autocomplete-core/styles.css'\nimport type { PlaceDetails } from '@anil-labs/google-places-autocomplete-core'\n\nconst query = ref('')\n\nfunction handleSelect(place: PlaceDetails) {\n  console.log(place.formattedAddress)\n}\n</script>\n\n<template>\n  <PlacesAutocomplete\n    v-model=\"query\"\n    api-key=\"YOUR_API_KEY\"\n    placeholder=\"Search for an address…\"\n    @select=\"handleSelect\"\n    @error=\"(err) => console.error(err)\"\n  />\n</template>\n```\n\nFull documentation: [Vue guide](https://anilkumarthakur60.github.io/google-places-autocomplete/guide/frameworks/vue) · [getting started](https://anilkumarthakur60.github.io/google-places-autocomplete/guide/getting-started) (Google Cloud setup) · [API reference](https://anilkumarthakur60.github.io/google-places-autocomplete/api/core).\n\n## Props\n\nAll [`PlacesAutocompleteConfig`](https://anilkumarthakur60.github.io/google-places-autocomplete/api/core#placesautocompleteconfig) fields, in kebab-case (`debounce-ms`, `region-code`, ...), plus `modelValue` and `placeholder`. `apiKey`/`debounceMs`/etc. are read once at construction — remount to change them.\n\n## Events\n\n`update:modelValue`, `select` (`place, suggestion`), `error`.\n\n## Headless usage\n\n`usePlacesAutocomplete` — the composable the component is built on — is also exported, for custom markup.\n\n## License\n\nMIT © Er. Anil Kumar Thakur\n","readmeFilename":"","_rev":"1-2953fb480f3a47dd832a93facb2fa04d"}