@rise-x/apps-sdk 0.16.0 → 0.16.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rise-x/apps-sdk",
3
- "version": "0.16.0",
3
+ "version": "0.16.4",
4
4
  "description": "SDK for building federated apps on top of the Rise-X Diana shell. Includes a CLI for scaffolding new apps.",
5
5
  "author": {
6
6
  "name": "Rise-X",
@@ -111,6 +111,7 @@
111
111
  }
112
112
  },
113
113
  "dependencies": {
114
+ "@maplibre/maplibre-gl-leaflet": "^0.1.4",
114
115
  "@tailwindcss/postcss": "^4.3.3",
115
116
  "@tanstack/react-table": "^8.21.3",
116
117
  "@types/leaflet": "^1.9.12",
@@ -119,6 +120,8 @@
119
120
  "cmdk": "^1.1.1",
120
121
  "embla-carousel-react": "^8.6.0",
121
122
  "input-otp": "^1.4.2",
123
+ "leaflet": "^1.9.4",
124
+ "maplibre-gl": "6.10.0",
122
125
  "radix-ui": "^1.6.2",
123
126
  "react-resizable-panels": "^4.12.2",
124
127
  "recharts": "^3.8.0",
@@ -169,11 +169,11 @@ dark-mode switching included.
169
169
 
170
170
  `src/lifecycle.ts` exports optional `onInstall`, `onUpdate`, `onUninstall` hooks. The shell loads this module via MF and invokes them:
171
171
 
172
- - **`onInstall`** — first time this device sees the app in the registry.
173
- - **`onUpdate(ctx, { from, to })`** — when `manifest.version` changes between shell mounts.
172
+ - **`onInstall`** — the first time the user opens the app on this device, before its first render.
173
+ - **`onUpdate(ctx, { from, to })`** — the first open after `manifest.version` changes, before the first render.
174
174
  - **`onUninstall`** — eagerly when removed via the admin UI, or lazily when the reconciler detects the app is gone from the registry (e.g. removed on another device).
175
175
 
176
- Each hook is best-effort — errors are logged, 10s timeout per invocation. Hooks you don't export are skipped silently.
176
+ An app the user never opens on a device gets neither `onInstall` nor `onUpdate` there. Each hook is best-effort — errors are logged, 10s timeout per invocation. If `onInstall` or `onUpdate` fails, the next open runs it again. Hooks you don't export are skipped silently.
177
177
 
178
178
  ## Storage
179
179