{"_id":"@anil-labs/google-places-autocomplete-svelte","name":"@anil-labs/google-places-autocomplete-svelte","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@anil-labs/google-places-autocomplete-svelte","version":"0.2.0","type":"module","description":"Svelte 5 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/svelte"},"homepage":"https://github.com/anilkumarthakur60/google-places-autocomplete/tree/main/packages/svelte#readme","bugs":"https://github.com/anilkumarthakur60/google-places-autocomplete/issues","sideEffects":false,"svelte":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js","default":"./dist/index.js"}},"dependencies":{"@anil-labs/google-places-autocomplete-core":"^0.2.0"},"peerDependencies":{"svelte":"^5.0.0"},"devDependencies":{"@sveltejs/package":"^2.5.8","@sveltejs/vite-plugin-svelte":"^7.2.0","jsdom":"^29.0.2","svelte":"^5.56.7","svelte-check":"^4.7.3","typescript":"~6.0.0","vitest":"^4.1.10"},"publishConfig":{"access":"public"},"engines":{"node":">=20"},"scripts":{"clean":"rm -rf dist","build":"svelte-package -i src -o dist && node --conditions=browser scripts/check-dist.mjs","dev":"svelte-package -i src -o dist --watch","test":"vitest run","test:watch":"vitest","typecheck":"svelte-check --tsconfig ./tsconfig.json","lint":"eslint ."},"_nodeVersion":"24.18.0","_id":"@anil-labs/google-places-autocomplete-svelte@0.2.0","dist":{"integrity":"sha512-Nz2x3L3WJOLRXLtkav84KMIXfKbu2a/r6wHZi1L484Evt2G1UBqIXXyiXw6LOBIuYBEkK6pAbTHdKVyJYpy4ow==","shasum":"a3458cce0534a85412fac3ae2251a053603f31c1","tarball":"https://registry.npmjs.org/@anil-labs/google-places-autocomplete-svelte/-/google-places-autocomplete-svelte-0.2.0.tgz","fileCount":9,"unpackedSize":12031,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIA4nOgByj/wBRMQKsqTfdsWxAXznkckc4BsWefXxmgb3AiEAsxdheuKUsioS+xKvqq7kSZXnGdUllkmAWm+0ZUTUh6M="}]},"_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-svelte_0.2.0_1785342373066_0.2163868062918075"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-29T16:26:12.690Z","0.2.0":"2026-07-29T16:26:13.227Z","modified":"2026-07-29T16:26:13.589Z"},"maintainers":[{"name":"anilkumarthakur","email":"anilkumarthakur60@gmail.com"}],"description":"Svelte 5 address autocomplete component built on Google's Places API (New).","homepage":"https://github.com/anilkumarthakur60/google-places-autocomplete/tree/main/packages/svelte#readme","repository":{"type":"git","url":"git+https://github.com/anilkumarthakur60/google-places-autocomplete.git","directory":"packages/svelte"},"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-svelte\n\nSvelte 5 (runes) address autocomplete component built on Google's Places API (New).\n\n## Install\n\n```sh\nnpm install @anil-labs/google-places-autocomplete-svelte\n```\n\n## Usage\n\n```svelte\n<script lang=\"ts\">\n  import { PlacesAutocomplete } from '@anil-labs/google-places-autocomplete-svelte'\n  import '@anil-labs/google-places-autocomplete-core/styles.css'\n  import type { PlaceDetails } from '@anil-labs/google-places-autocomplete-core'\n\n  let query = $state('')\n</script>\n\n<PlacesAutocomplete\n  bind:value={query}\n  apiKey=\"YOUR_API_KEY\"\n  placeholder=\"Search for an address…\"\n  onSelect={(place: PlaceDetails) => console.log(place.formattedAddress)}\n  onError={(error) => console.error(error)}\n/>\n```\n\nFull documentation: [Svelte guide](https://anilkumarthakur60.github.io/google-places-autocomplete/guide/frameworks/svelte) · [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, plus `value` (bindable via `bind:value`), `placeholder`, `onSelect`, `onError`. Requires Svelte 5 (runes mode). `apiKey`/`debounceMs`/etc. are read once at construction — remount to change them.\n\n## License\n\nMIT © Er. Anil Kumar Thakur\n","readmeFilename":"","_rev":"1-1a77c10a92db0343fea11d431e4bccfe"}