@mentra/miniapp 3.4.0-dev.1050 → 3.4.0-dev.1053
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/README.md +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ SDK for building Mentra miniapps — local JavaScript running in the Mentra App
|
|
|
6
6
|
> Per-module deep dives (return shapes, events, error codes): **[`sdk/docs/`](../../../sdk/docs/README.md)**.
|
|
7
7
|
> Companion package: **[`@mentra/miniapp-cli`](../../../sdk/miniapp-cli/README.md)** — `mentra-miniapp` CLI (`dev`, `release`, `pack`, `manifest`, `permission`, `hardware`, `schema`). Per-command docs live there.
|
|
8
8
|
> Scaffolder: `bunx create-mentra-miniapp my-app`.
|
|
9
|
-
> Reference miniapp: [`
|
|
9
|
+
> Reference miniapp: [`examples/miniapp/`](../../../examples/miniapp).
|
|
10
10
|
> High-level walkthrough: [`agents/miniapp-sdk-overview.md`](../../../agents/miniapp-sdk-overview.md).
|
|
11
11
|
|
|
12
12
|
## Install
|
|
@@ -249,7 +249,7 @@ Smart-glasses miniapps are **always-on services**. The webview is a UI on top of
|
|
|
249
249
|
|
|
250
250
|
**Rule:** user-facing glasses logic lives in a session-scoped controller, instantiated once at module init. React pages read controller-driven state via a store (Zustand recommended) and call imperative methods on the controller for user-triggered actions. They do **not** subscribe to `session.*` directly.
|
|
251
251
|
|
|
252
|
-
See [`
|
|
252
|
+
See [`examples/miniapp/src/background/controllers/GlassesController.ts`](../../../examples/miniapp/src/background/controllers/GlassesController.ts) for a worked reference.
|
|
253
253
|
|
|
254
254
|
**Tester pages exception:** `pages/tester/*` are diagnostic surfaces — by design they inline-subscribe to `session.*` and tear down on unmount. This is the only place where that pattern is acceptable.
|
|
255
255
|
|
|
@@ -258,7 +258,7 @@ See [`sdk/example-miniapp/src/controller/GlassesController.ts`](../../../sdk/exa
|
|
|
258
258
|
- Runtime: [`src/{session,protocol,envelope,globals}.ts`](./src/), [`src/modules/`](./src/modules/), [`src/transport/`](./src/transport/), [`src/react/`](./src/react/)
|
|
259
259
|
- CLI: [`../miniapp-cli/src/`](../../../sdk/miniapp-cli/src/)
|
|
260
260
|
- Scaffolder: [`../create-mentra-miniapp/`](../../../sdk/create-mentra-miniapp/)
|
|
261
|
-
- Reference miniapp: [
|
|
261
|
+
- Reference miniapp: [`examples/miniapp/`](../../../examples/miniapp/)
|
|
262
262
|
|
|
263
263
|
Phone Wi-Fi APIs read the phone radio on Android (`true`/`false`); iOS returns `true` when connected to Wi-Fi and `null` otherwise. `requestWifiEnable(reason?)` presents the host prompt and resolves with `{enabled, cancelled}` after returning from system settings. See [Phone Wi-Fi](https://docs.mentra.glass/app-devs/core-concepts/phone#phone-wi-fi) for platform behavior and cancellation.
|
|
264
264
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mentra/miniapp",
|
|
3
|
-
"version": "3.4.0-dev.
|
|
3
|
+
"version": "3.4.0-dev.1053",
|
|
4
4
|
"description": "SDK for building MentraOS local miniapps (browser/WebView)",
|
|
5
5
|
"author": "Mentra Labs",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@mentra/cloud-protocol": "3.4.0-dev.
|
|
60
|
+
"@mentra/cloud-protocol": "3.4.0-dev.1053",
|
|
61
61
|
"eventemitter3": "^5.0.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|