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 f74a287 commit be8d02c
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 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].4/dist/placekit-autocomplete.min.css" />
<script src="https://cdn.jsdelivr.net/npm/@placekit/[email protected].4"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@placekit/[email protected].5/dist/placekit-autocomplete.min.css" />
<script src="https://cdn.jsdelivr.net/npm/@placekit/[email protected].5"></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].4/dist/placekit-autocomplete.esm.js';
import placekitAutocomplete from 'https://cdn.jsdelivr.net/npm/@placekit/[email protected].5/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.4",
"@placekit/autocomplete-js": "^2.1.5",
"@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.4"
"@placekit/autocomplete-js": "^2.1.5"
}
}
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].4/dist/placekit-autocomplete.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@placekit/[email protected].5/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].4"></script>
<script src="https://cdn.jsdelivr.net/npm/@placekit/[email protected].5"></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.4"
"@placekit/autocomplete-js": "^2.1.5"
}
}
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.4"
"@placekit/autocomplete-js": "^2.1.5"
}
}
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.4"
"@placekit/autocomplete-js": "^2.1.5"
}
}
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.4"
"@placekit/autocomplete-js": "^2.1.5"
}
}
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.4"
"@placekit/autocomplete-js": "^2.1.5"
}
}
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.4",
"@placekit/autocomplete-js": "^2.1.5",
"leaflet": "^1.9.4"
}
}
2 changes: 1 addition & 1 deletion examples/autocomplete-js-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
},
"type": "module",
"dependencies": {
"@placekit/autocomplete-js": "^2.1.4"
"@placekit/autocomplete-js": "^2.1.5"
}
}
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.4"
"@placekit/autocomplete-js": "^2.1.5"
}
}
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.4",
"@placekit/autocomplete-js": "^2.1.5",
"vue": "^3.3.8"
},
"devDependencies": {
Expand Down

0 comments on commit be8d02c

Please sign in to comment.