@glassly/miniapp 0.4.0-beta.1025 → 0.4.0-beta.1052
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/dist/display/index.d.ts +1 -1
- package/dist/display/index.d.ts.map +1 -1
- package/dist/display/index.js +1 -1
- package/dist/display/index.js.map +1 -1
- package/dist/display/profiles/index.d.ts +1 -0
- package/dist/display/profiles/index.d.ts.map +1 -1
- package/dist/display/profiles/index.js +1 -0
- package/dist/display/profiles/index.js.map +1 -1
- package/dist/display/profiles/nimo.d.ts +9 -0
- package/dist/display/profiles/nimo.d.ts.map +1 -0
- package/dist/display/profiles/nimo.js +142 -0
- package/dist/display/profiles/nimo.js.map +1 -0
- package/dist/display/profiles/types.d.ts.map +1 -1
- package/dist/display/scene/types.d.ts.map +1 -1
- package/dist/display/scene/types.js.map +1 -1
- package/dist/display/wrapper/normalize.d.ts.map +1 -1
- package/dist/display/wrapper/normalize.js +2 -0
- package/dist/display/wrapper/normalize.js.map +1 -1
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +10 -1
- package/dist/manifest.js.map +1 -1
- package/dist/mirror/canvas.js +1 -1
- package/dist/mirror/canvas.js.map +1 -1
- package/dist/modules/events.d.ts.map +1 -1
- package/dist/modules/events.js +17 -1
- package/dist/modules/events.js.map +1 -1
- package/dist/modules/keys.d.ts +1 -1
- package/dist/modules/keys.js +1 -1
- package/dist/modules/widgets.d.ts.map +1 -1
- package/dist/modules/widgets.js.map +1 -1
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.js +2 -2
- package/dist/session.d.ts +1 -1
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js.map +1 -1
- package/dist/transport/mock.js.map +1 -1
- package/package.json +2 -2
- package/src/display/index.ts +1 -0
- package/src/display/profiles/index.ts +2 -0
- package/src/display/profiles/nimo.ts +148 -0
- package/src/display/profiles/types.ts +1 -9
- package/src/display/scene/types.ts +1 -6
- package/src/display/wrapper/normalize.ts +2 -0
- package/src/manifest.ts +10 -1
- package/src/mirror/canvas.ts +5 -5
- package/src/modules/events.ts +18 -1
- package/src/modules/keys.ts +1 -1
- package/src/modules/widgets.ts +11 -2
- package/src/protocol.ts +2 -2
- package/src/session.ts +2 -6
- package/src/transport/mock.ts +4 -4
package/src/session.ts
CHANGED
|
@@ -338,7 +338,7 @@ export class MiniappSession<TChannels extends object = any> {
|
|
|
338
338
|
public readonly compass: CompassModule
|
|
339
339
|
public readonly input: InputModule
|
|
340
340
|
/**
|
|
341
|
-
* User-supplied provider API keys (Settings > API Keys). Requires the
|
|
341
|
+
* User-supplied provider API keys (Settings > Privacy > API Keys). Requires the
|
|
342
342
|
* API_KEYS manifest permission; only an allowlisted provider set is
|
|
343
343
|
* readable (anthropic / gemini / openai / deepseek / elevenlabs / mapbox — never soniox).
|
|
344
344
|
*/
|
|
@@ -580,11 +580,7 @@ export class MiniappSession<TChannels extends object = any> {
|
|
|
580
580
|
* session.transcription.on(...)
|
|
581
581
|
* etc. instead."
|
|
582
582
|
*/
|
|
583
|
-
_subscribe(
|
|
584
|
-
streamType: string,
|
|
585
|
-
handler: (data: unknown) => void,
|
|
586
|
-
options: StreamRouteOptions = {},
|
|
587
|
-
): UnsubscribeFn {
|
|
583
|
+
_subscribe(streamType: string, handler: (data: unknown) => void, options: StreamRouteOptions = {}): UnsubscribeFn {
|
|
588
584
|
return this.events.subscribe(streamType, handler, options)
|
|
589
585
|
}
|
|
590
586
|
|
package/src/transport/mock.ts
CHANGED
|
@@ -219,10 +219,10 @@ function syntheticDataFor(requestId: string, requestType: string, requestPayload
|
|
|
219
219
|
requestPayload.preset === "narrow"
|
|
220
220
|
? 82
|
|
221
221
|
: requestPayload.preset === "wide"
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
222
|
+
? 118
|
|
223
|
+
: requestPayload.preset === "standard"
|
|
224
|
+
? 102
|
|
225
|
+
: undefined
|
|
226
226
|
const fov = typeof requestPayload.fov === "number" ? requestPayload.fov : (presetFov ?? 102)
|
|
227
227
|
const roi = requestPayload.roiPosition
|
|
228
228
|
const roiPosition = roi === "bottom" ? "bottom" : roi === "top" ? "top" : "center"
|