places-autocomplete-svelte 2.2.18 → 2.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PlaceAutocomplete.svelte +1 -1
- package/dist/helpers.js +4 -4
- package/package.json +7 -7
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
for (const suggestion of suggestions) {
|
|
164
164
|
// get prediction text
|
|
165
165
|
//console.log(suggestion.placePrediction.toPlace());
|
|
166
|
-
let place =
|
|
166
|
+
let place = suggestion.placePrediction.toPlace();
|
|
167
167
|
await place.fetchFields({fields: ["addressComponents"]});
|
|
168
168
|
|
|
169
169
|
const predictionText = suggestion.placePrediction.mainText;
|
package/dist/helpers.js
CHANGED
|
@@ -302,15 +302,15 @@ export const componentClasses = {
|
|
|
302
302
|
kbd_active: 'bg-indigo-500 text-white',
|
|
303
303
|
ul: 'absolute z-50 -mb-2 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm divide-y divide-gray-100',
|
|
304
304
|
li: 'z-50 cursor-default select-none py-2 px-2 lg:px-4 text-gray-900 hover:bg-indigo-500 hover:text-white',
|
|
305
|
-
li_current: 'bg-indigo-500
|
|
305
|
+
li_current: 'bg-indigo-500 text-white',
|
|
306
306
|
li_a: 'block w-full flex justify-between',
|
|
307
|
-
li_a_current: '
|
|
307
|
+
li_a_current: 'text-white',
|
|
308
308
|
li_div_container: 'flex min-w-0 gap-x-4',
|
|
309
|
-
li_div_one: 'min-w-0 flex-auto flex gap-x-
|
|
309
|
+
li_div_one: 'min-w-0 flex-auto flex gap-x-4 justify-center items-center',
|
|
310
310
|
li_div_p_container: 'min-w-0 flex-auto',
|
|
311
311
|
li_div_one_p: 'text-sm/6 text-left',
|
|
312
312
|
map_pin_icon: '<path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"/><circle cx="12" cy="10" r="3"/>',
|
|
313
|
-
li_div_one_p_secondaryText: 'text-xs text-left
|
|
313
|
+
li_div_one_p_secondaryText: 'text-xs text-left leading-2',
|
|
314
314
|
li_div_two: 'shrink-0 flex flex-col items-end min-w-16',
|
|
315
315
|
li_div_two_p: 'mt-1 text-xs/5',
|
|
316
316
|
highlight: 'font-bold',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "places-autocomplete-svelte",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.20",
|
|
5
5
|
"description": "A flexible, accessible, and secure Svelte component leveraging the Google Maps Places Autocomplete API (New) to provide a user-friendly way to search for and retrieve detailed address information.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"svelte",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@sveltejs/adapter-auto": "^7.0.0",
|
|
79
79
|
"@sveltejs/adapter-cloudflare": "^7.2.4",
|
|
80
|
-
"@sveltejs/kit": "^2.49.
|
|
80
|
+
"@sveltejs/kit": "^2.49.1",
|
|
81
81
|
"@sveltejs/package": "^2.5.7",
|
|
82
82
|
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
83
83
|
"@tailwindcss/postcss": "^4.1.17",
|
|
@@ -89,19 +89,19 @@
|
|
|
89
89
|
"autoprefixer": "^10.4.22",
|
|
90
90
|
"eslint": "^9.39.1",
|
|
91
91
|
"eslint-config-prettier": "^10.1.8",
|
|
92
|
-
"eslint-plugin-svelte": "^3.13.
|
|
92
|
+
"eslint-plugin-svelte": "^3.13.1",
|
|
93
93
|
"globals": "^16.5.0",
|
|
94
94
|
"postcss": "^8.5.6",
|
|
95
|
-
"prettier": "^3.7.
|
|
95
|
+
"prettier": "^3.7.4",
|
|
96
96
|
"prettier-plugin-svelte": "^3.4.0",
|
|
97
97
|
"publint": "^0.3.15",
|
|
98
|
-
"svelte": "^5.45.
|
|
98
|
+
"svelte": "^5.45.6",
|
|
99
99
|
"svelte-check": "^4.3.4",
|
|
100
100
|
"tailwindcss": "^4.1.17",
|
|
101
101
|
"tslib": "^2.8.1",
|
|
102
102
|
"typescript": "^5.9.3",
|
|
103
|
-
"typescript-eslint": "^8.48.
|
|
104
|
-
"vite": "^7.2.
|
|
103
|
+
"typescript-eslint": "^8.48.1",
|
|
104
|
+
"vite": "^7.2.6"
|
|
105
105
|
},
|
|
106
106
|
"svelte": "./dist/index.js",
|
|
107
107
|
"types": "./dist/PlaceAutocomplete.svelte.d.ts",
|