@swr-data-lab/components 1.12.0 → 1.12.1

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
@@ -49,7 +49,7 @@
49
49
  "storybook": "^9.0.0-beta.11",
50
50
  "svelte": "^5.23.0",
51
51
  "svelte-check": "^4.0.0",
52
- "typescript": "^5.0.0",
52
+ "typescript": "^5.8.3",
53
53
  "vite": "^6.0.0",
54
54
  "vitest": "^3.1.1",
55
55
  "wait-on": "^8.0.1"
@@ -67,7 +67,7 @@
67
67
  "svelte": "./src/index.js"
68
68
  }
69
69
  },
70
- "version": "1.12.0",
70
+ "version": "1.12.1",
71
71
  "overrides": {
72
72
  "storybook": "$storybook"
73
73
  }
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { type ControlPosition, AttributionControl } from 'maplibre-gl';
2
+ import maplibre, { type ControlPosition } from 'maplibre-gl';
3
3
  import MapControl from '../MapControl/MapControl.svelte';
4
4
 
5
5
  interface AttributionControlProps {
@@ -11,7 +11,7 @@
11
11
 
12
12
  <MapControl
13
13
  {position}
14
- control={new AttributionControl({
14
+ control={new maplibre.AttributionControl({
15
15
  customAttribution,
16
16
  compact: false
17
17
  })}
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import maplibre, { type ProjectionSpecification, type StyleSpecification } from 'maplibre-gl';
3
3
  import { onMount, onDestroy, type Snippet, getContext, hasContext } from 'svelte';
4
- import { createMapContext } from '../context.svelte';
4
+ import { createMapContext } from '../context.svelte.js';
5
5
  import { type Location } from '../types';
6
6
  import FallbackStyle from './FallbackStyle';
7
7
 
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { type Snippet } from 'svelte';
3
3
  import { type ControlPosition, type IControl } from 'maplibre-gl';
4
- import { getMapContext } from '../context.svelte.ts';
4
+ import { getMapContext } from '../context.svelte.js';
5
5
 
6
6
  interface MapControlProps {
7
7
  position: ControlPosition;
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { type ControlPosition, NavigationControl } from 'maplibre-gl';
2
+ import maplibre, { type ControlPosition } from 'maplibre-gl';
3
3
  import MapControl from '../MapControl/MapControl.svelte';
4
4
 
5
5
  interface NavigationControlProps {
@@ -17,7 +17,7 @@
17
17
  }: NavigationControlProps = $props();
18
18
  </script>
19
19
 
20
- <MapControl control={new NavigationControl({ showCompass, visualizePitch })} {position} />
20
+ <MapControl control={new maplibre.NavigationControl({ showCompass, visualizePitch })} {position} />
21
21
 
22
22
  <style>
23
23
  :global {
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { onDestroy, type Snippet } from 'svelte';
3
3
  import { type Map, type SourceSpecification } from 'maplibre-gl';
4
- import { getMapContext, createSourceContext } from '../context.svelte.ts';
4
+ import { getMapContext, createSourceContext } from '../context.svelte.js';
5
5
 
6
6
  type Source = maplibregl.VectorTileSource;
7
7
 
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { onDestroy, type Snippet } from 'svelte';
3
- import { type Listener, type LngLatLike, Popup } from 'maplibre-gl';
4
- import { getMapContext } from '../context.svelte.ts';
3
+ import maplibre, { type Listener, type LngLatLike } from 'maplibre-gl';
4
+ import { getMapContext } from '../context.svelte.js';
5
5
  import { resetPopupEventListener } from '../utils';
6
6
 
7
7
  interface TooltipProps {
@@ -39,7 +39,7 @@
39
39
 
40
40
  const { map } = $derived(getMapContext());
41
41
 
42
- let tooltip = new Popup({
42
+ let tooltip = new maplibre.Popup({
43
43
  closeButton: showCloseButton,
44
44
  closeOnClick: closeOnClick,
45
45
  maxWidth: `${maxWidth}px`,
@@ -9,7 +9,7 @@
9
9
  MapLayerMouseEvent
10
10
  } from 'maplibre-gl';
11
11
 
12
- import { getMapContext } from '../context.svelte.ts';
12
+ import { getMapContext } from '../context.svelte.js';
13
13
  import { onDestroy } from 'svelte';
14
14
  import { resetLayerEventListener } from '../utils.ts';
15
15
 
package/tsconfig.json CHANGED
@@ -9,7 +9,6 @@
9
9
  "skipLibCheck": true,
10
10
  "sourceMap": true,
11
11
  "strict": true,
12
- "allowImportingTsExtensions": true,
13
12
  "moduleResolution": "bundler"
14
13
  }
15
14
  // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias