@beyonk/svelte-mapbox 10.0.1 → 11.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beyonk/svelte-mapbox",
3
- "version": "10.0.1",
3
+ "version": "11.0.0",
4
4
  "devDependencies": {
5
5
  "@beyonk/eslint-config": "^8.0.2",
6
6
  "@eslint/eslintrc": "^3.1.0",
@@ -18,7 +18,7 @@
18
18
  "svelte": ">=4.0.0"
19
19
  },
20
20
  "exports": {
21
- ".": "./components.js"
21
+ ".": "./src/lib/components.js"
22
22
  },
23
23
  "types": "./components.d.ts",
24
24
  "type": "module",
@@ -8,7 +8,7 @@
8
8
  on:error
9
9
  on:clear
10
10
  on:load
11
- />
11
+ ></div>
12
12
 
13
13
  <script>
14
14
  import { createEventDispatcher } from 'svelte'
@@ -5,13 +5,14 @@ export default function action (node, options = {}) {
5
5
  let map
6
6
 
7
7
  const resources = [
8
- { type: 'script', value: `//api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/${options.version}/mapbox-gl-geocoder.min.js`, id: 'byk-gc-js' },
9
- { type: 'link', value: `//api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/${options.version}/mapbox-gl-geocoder.css`, id: 'byk-gc-css' }
8
+ { type: 'script', value: `//api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/${options.version}/mapbox-gl-geocoder.min.js`, id: 'byk-gc-js' }
10
9
  ]
11
10
 
12
11
  const customStylesheetUrl = options.customStylesheetUrl
13
12
  if (customStylesheetUrl) {
14
13
  resources.push({ type: 'link', value: customStylesheetUrl, id: 'byk-gcsu-css' })
14
+ } else {
15
+ resources.push({ type: 'link', value: `//api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/${options.version}/mapbox-gl-geocoder.css`, id: 'byk-gc-css' })
15
16
  }
16
17
 
17
18
  let unbind = () => {}