Skip to content

Commit

Permalink
docs: upgrade example versions
Browse files Browse the repository at this point in the history
  • Loading branch information
noclat committed Nov 11, 2023
1 parent 56e1b3a commit bb88bb6
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ For React implementations, check our [PlaceKit Autocomplete React](https://githu
First, import the library and the default stylesheet into the `<head>` tag in your HTML:

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@placekit/[email protected].3/dist/placekit-autocomplete.min.css" />
<script src="https://cdn.jsdelivr.net/npm/@placekit/[email protected].3"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@placekit/[email protected].4/dist/placekit-autocomplete.min.css" />
<script src="https://cdn.jsdelivr.net/npm/@placekit/[email protected].4"></script>
```

After importing the library, `placekitAutocomplete` becomes available as a global:
Expand All @@ -66,7 +66,7 @@ Or if you are using native ES Modules:

```html
<script type="module">
import placekitAutocomplete from 'https://cdn.jsdelivr.net/npm/@placekit/[email protected].3/dist/placekit-autocomplete.esm.js';
import placekitAutocomplete from 'https://cdn.jsdelivr.net/npm/@placekit/[email protected].4/dist/placekit-autocomplete.esm.js';
const pka = placekitAutocomplete(/* ... */);
// ...
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/autocomplete-js-address-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"vite": "^4.5.0"
},
"dependencies": {
"@placekit/autocomplete-js": "^2.1.3",
"@placekit/autocomplete-js": "^2.1.4",
"@tailwindcss/forms": "^0.5.7"
}
}
2 changes: 1 addition & 1 deletion examples/autocomplete-js-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"vite": "^4.5.0"
},
"dependencies": {
"@placekit/autocomplete-js": "^2.1.3"
"@placekit/autocomplete-js": "^2.1.4"
}
}
4 changes: 2 additions & 2 deletions examples/autocomplete-js-cdn/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>PlaceKit Autocomplete JS from CDN</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@placekit/[email protected].3/dist/placekit-autocomplete.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@placekit/[email protected].4/dist/placekit-autocomplete.min.css" />
<style>
body { padding: 4rem; }
.container {
Expand All @@ -27,7 +27,7 @@
/>
</main>

<script src="https://cdn.jsdelivr.net/npm/@placekit/[email protected].3"></script>
<script src="https://cdn.jsdelivr.net/npm/@placekit/[email protected].4"></script>
<script>
const pka = placekitAutocomplete('pk_MP9JDzZr6jBoPH6i1K5BsBbTe2N9D4monmQyEHY7Qhk=', {
target: '#placekit-input',
Expand Down
2 changes: 1 addition & 1 deletion examples/autocomplete-js-cities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"vite": "^4.5.0"
},
"dependencies": {
"@placekit/autocomplete-js": "^2.1.3"
"@placekit/autocomplete-js": "^2.1.4"
}
}
2 changes: 1 addition & 1 deletion examples/autocomplete-js-countries-whitelist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"vite": "^4.5.0"
},
"dependencies": {
"@placekit/autocomplete-js": "^2.1.3"
"@placekit/autocomplete-js": "^2.1.4"
}
}
2 changes: 1 addition & 1 deletion examples/autocomplete-js-countries/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"vite": "^4.5.0"
},
"dependencies": {
"@placekit/autocomplete-js": "^2.1.3"
"@placekit/autocomplete-js": "^2.1.4"
}
}
2 changes: 1 addition & 1 deletion examples/autocomplete-js-geolocation-dark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"vite": "^4.5.0"
},
"dependencies": {
"@placekit/autocomplete-js": "^2.1.3"
"@placekit/autocomplete-js": "^2.1.4"
}
}
2 changes: 1 addition & 1 deletion examples/autocomplete-js-geolocation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"vite": "^4.5.0"
},
"dependencies": {
"@placekit/autocomplete-js": "^2.1.3"
"@placekit/autocomplete-js": "^2.1.4"
}
}
2 changes: 1 addition & 1 deletion examples/autocomplete-js-leaflet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"vite": "^4.5.0"
},
"dependencies": {
"@placekit/autocomplete-js": "^2.1.3",
"@placekit/autocomplete-js": "^2.1.4",
"leaflet": "^1.9.4"
}
}
4 changes: 2 additions & 2 deletions examples/autocomplete-js-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@fontsource/fira-mono": "^5.0.8",
"@neoconfetti/svelte": "^1.0.0",
"@sveltejs/adapter-auto": "^2.1.1",
"@sveltejs/kit": "^1.27.4",
"@sveltejs/kit": "^1.27.5",
"autoprefixer": "^10.4.16",
"postcss": "^8.4.31",
"svelte": "^4.2.3",
Expand All @@ -19,6 +19,6 @@
},
"type": "module",
"dependencies": {
"@placekit/autocomplete-js": "^2.1.3"
"@placekit/autocomplete-js": "^2.1.4"
}
}
2 changes: 1 addition & 1 deletion examples/autocomplete-js-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"vite": "^4.5.0"
},
"dependencies": {
"@placekit/autocomplete-js": "^2.1.3"
"@placekit/autocomplete-js": "^2.1.4"
}
}
2 changes: 1 addition & 1 deletion examples/autocomplete-js-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"preview": "vite preview"
},
"dependencies": {
"@placekit/autocomplete-js": "^2.1.3",
"@placekit/autocomplete-js": "^2.1.4",
"vue": "^3.3.8"
},
"devDependencies": {
Expand Down

0 comments on commit bb88bb6

Please sign in to comment.