@viamrobotics/test-widgets 0.17.2 → 0.17.4
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.
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
import { LngLat, Map, type MapOptions } from 'maplibre-gl'
|
|
29
29
|
import { onMount, type Snippet, tick } from 'svelte'
|
|
30
|
+
import { get } from 'svelte/store'
|
|
30
31
|
|
|
31
32
|
import { provideMapContext } from './hooks.svelte'
|
|
32
33
|
import { getStyleSpecification } from './style'
|
|
@@ -117,7 +118,7 @@
|
|
|
117
118
|
zoom,
|
|
118
119
|
maxZoom,
|
|
119
120
|
mapProvider,
|
|
120
|
-
mapProviderKey,
|
|
121
|
+
apiKey: mapProviderKey,
|
|
121
122
|
satellite,
|
|
122
123
|
}))
|
|
123
124
|
|
|
@@ -166,7 +167,7 @@
|
|
|
166
167
|
}
|
|
167
168
|
|
|
168
169
|
const updateStyle = async (provider: MapProvider, apiKey?: string) => {
|
|
169
|
-
const style = await getStyleSpecification(provider, apiKey)
|
|
170
|
+
const style = await getStyleSpecification(provider, apiKey, maxZoom, get(context.satellite))
|
|
170
171
|
map?.setStyle(style)
|
|
171
172
|
}
|
|
172
173
|
|
|
@@ -87,16 +87,16 @@
|
|
|
87
87
|
</button>
|
|
88
88
|
<div
|
|
89
89
|
slot="description"
|
|
90
|
-
class="flex flex-col gap-1"
|
|
90
|
+
class="flex min-w-0 flex-col gap-1"
|
|
91
91
|
>
|
|
92
92
|
<div class="text-gray-5 flex justify-between gap-3">
|
|
93
93
|
<span>{summary}</span>
|
|
94
94
|
{#if hasErrors}
|
|
95
|
-
<span>{copied ? 'Copied' : 'Click to copy'}</span>
|
|
95
|
+
<span class="shrink-0">{copied ? 'Copied' : 'Click to copy'}</span>
|
|
96
96
|
{/if}
|
|
97
97
|
</div>
|
|
98
98
|
{#each errors as error (errorKey(error))}
|
|
99
|
-
<p class="font-roboto-mono">{error.name}: {error.message}</p>
|
|
99
|
+
<p class="font-roboto-mono wrap-anywhere">{error.name}: {error.message}</p>
|
|
100
100
|
{/each}
|
|
101
101
|
</div>
|
|
102
102
|
</Tooltip>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viamrobotics/test-widgets",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"wireit": {
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
"@threlte/extras": ">=9",
|
|
206
206
|
"@viamrobotics/prime-core": ">=0.1",
|
|
207
207
|
"@viamrobotics/sdk": ">=0.76.0",
|
|
208
|
-
"@viamrobotics/svelte-sdk": ">=1.
|
|
208
|
+
"@viamrobotics/svelte-sdk": ">=1.5",
|
|
209
209
|
"lodash-es": ">=4",
|
|
210
210
|
"maplibre-gl": ">=6",
|
|
211
211
|
"runed": ">=0.28",
|
|
@@ -254,9 +254,9 @@
|
|
|
254
254
|
"@types/three": "^0.183.1",
|
|
255
255
|
"@viamrobotics/prime-core": "^0.1.22",
|
|
256
256
|
"@viamrobotics/sdk": "^0.76.0",
|
|
257
|
-
"@viamrobotics/svelte-sdk": "^1.5.
|
|
257
|
+
"@viamrobotics/svelte-sdk": "^1.5.4",
|
|
258
258
|
"@viamrobotics/tailwind-config": "^1.2.0",
|
|
259
|
-
"@vitest/browser": "^5.0.
|
|
259
|
+
"@vitest/browser": "^5.0.5",
|
|
260
260
|
"@vitest/browser-playwright": "^5.0.1",
|
|
261
261
|
"@vitest/coverage-v8": "^5.0.1",
|
|
262
262
|
"@zag-js/dialog": "^1.37.0",
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"type-fest": "^5.6.0",
|
|
285
285
|
"typescript": "^6.0.3",
|
|
286
286
|
"typescript-eslint": "^8.59.1",
|
|
287
|
-
"vite": "^8.
|
|
287
|
+
"vite": "^8.1.6",
|
|
288
288
|
"vite-plugin-devtools-json": "^1.0.0",
|
|
289
289
|
"vite-plugin-glsl": "^1.6.0",
|
|
290
290
|
"vitest": "^5.0.1",
|