@sensolus/create-snt-agent-app 0.2.1 → 0.3.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": "@sensolus/create-snt-agent-app",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Scaffold a new Sensolus agent app: React frontend wired to @sensolus/snt-agent-kit + Flask API proxy backend.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -15,7 +15,7 @@
15
15
  "url": "git+ssh://git@bitbucket.org/sensolus/{{APP_NAME}}.git"
16
16
  },
17
17
  "dependencies": {
18
- "@sensolus/snt-agent-kit": "^0.2.0",
18
+ "@sensolus/snt-agent-kit": "^0.4.0",
19
19
  "react": "^19.2.3",
20
20
  "react-dom": "^19.2.3",
21
21
  "react-router-dom": "^7.1.1"
@@ -5,7 +5,7 @@ import {
5
5
  SntBadge,
6
6
  SntProgressBar,
7
7
  SntCard,
8
- SntMap,
8
+ SntDeviceMap,
9
9
  SntSpinner,
10
10
  } from '@sensolus/snt-agent-kit'
11
11
  import { useLocale, formatNumber } from '../i18n'
@@ -214,7 +214,7 @@ export function OrganisationDetail() {
214
214
  <SntSpinner size="medium" />
215
215
  </div>
216
216
  ) : (
217
- <SntMap
217
+ <SntDeviceMap
218
218
  mapboxKey={config.mapboxKey}
219
219
  locationiqKey={config.locationiqKey}
220
220
  height="500px"
@@ -14,6 +14,7 @@ import {
14
14
  SntInput,
15
15
  SntLoadingOverlay,
16
16
  SntMap,
17
+ SntDeviceLayer,
17
18
  SntProgressBar,
18
19
  SntSelect,
19
20
  SntSidepanel,
@@ -482,7 +483,7 @@ export function WidgetShowcase() {
482
483
  {/* ------------------------------------------------------------------ */}
483
484
  <Section
484
485
  title="SntMap"
485
- description="Leaflet map with Street/Satellite layer toggle. Optionally renders geozones (by orgId or array) and device markers."
486
+ description="Base Leaflet map (street/satellite toggle, geocoder, zoom/scale). Compose with layer components here, <SntDeviceLayer>."
486
487
  >
487
488
  <SntMap
488
489
  mapboxKey={config.mapboxKey}
@@ -490,14 +491,15 @@ export function WidgetShowcase() {
490
491
  height="320px"
491
492
  center={[50.85, 4.35]}
492
493
  zoom={6}
493
- showGeozones={false}
494
- showGeozoneSelector={false}
495
- devices={[
496
- { id: 'd1', name: 'Demo tracker A', lastLat: 50.8503, lastLng: 4.3517 },
497
- { id: 'd2', name: 'Demo tracker B', lastLat: 51.2194, lastLng: 4.4025 },
498
- { id: 'd3', name: 'Demo tracker C', lastLat: 51.0543, lastLng: 3.7174 },
499
- ]}
500
- />
494
+ >
495
+ <SntDeviceLayer
496
+ devices={[
497
+ { id: 'd1', name: 'Demo tracker A', lastLat: 50.8503, lastLng: 4.3517 },
498
+ { id: 'd2', name: 'Demo tracker B', lastLat: 51.2194, lastLng: 4.4025 },
499
+ { id: 'd3', name: 'Demo tracker C', lastLat: 51.0543, lastLng: 3.7174 },
500
+ ]}
501
+ />
502
+ </SntMap>
501
503
  </Section>
502
504
 
503
505
  {/* ------------------------------------------------------------------ */}