@limrun/ui 0.14.0-rc.5 → 0.14.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/README.md +9 -26
- package/dist/components/remote-control.d.ts +36 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1189 -1089
- package/package.json +10 -51
- package/src/components/remote-control.tsx +267 -0
- package/src/index.ts +1 -1
- package/vite.config.ts +0 -9
- package/dist/app-store-relay/index.cjs +0 -9
- package/dist/app-store-relay/index.d.ts +0 -204
- package/dist/app-store-relay/index.js +0 -677
- package/dist/app-store-relay/react.cjs +0 -1
- package/dist/app-store-relay/react.d.ts +0 -15
- package/dist/app-store-relay/react.js +0 -69
- package/dist/apple-credentials/index.cjs +0 -1
- package/dist/apple-credentials/index.d.ts +0 -110
- package/dist/apple-credentials/index.js +0 -291
- package/dist/browser-storage-BnO-Ma-e.mjs +0 -219
- package/dist/browser-storage-DLxIqZk5.js +0 -1
- package/dist/client-C9z_sgOf.js +0 -1
- package/dist/client-CFDB4mX5.mjs +0 -191
- package/dist/core/device-install/apple/client.d.ts +0 -18
- package/dist/core/device-install/apple/crypto.d.ts +0 -20
- package/dist/core/device-install/apple/gsa-srp.d.ts +0 -26
- package/dist/core/device-install/apple/index.d.ts +0 -5
- package/dist/core/device-install/apple/provisioning.d.ts +0 -237
- package/dist/core/device-install/apple/relay.d.ts +0 -53
- package/dist/core/device-install/index.d.ts +0 -4
- package/dist/core/device-install/operations/index.d.ts +0 -6
- package/dist/core/device-install/operations/limbuild-client.d.ts +0 -43
- package/dist/core/device-install/operations/operations.d.ts +0 -47
- package/dist/core/device-install/operations/relay-client.d.ts +0 -26
- package/dist/core/device-install/operations/relay-protocol.d.ts +0 -27
- package/dist/core/device-install/operations/usbmux.d.ts +0 -32
- package/dist/core/device-install/operations/webusb.d.ts +0 -21
- package/dist/core/device-install/storage/browser-storage.d.ts +0 -56
- package/dist/core/device-install/storage/index.d.ts +0 -2
- package/dist/core/device-install/storage/secret-store.d.ts +0 -124
- package/dist/core/device-install/types.d.ts +0 -57
- package/dist/core/errors.d.ts +0 -1
- package/dist/core/play-publish/google.d.ts +0 -13
- package/dist/core/play-publish/publish.d.ts +0 -34
- package/dist/device-build/index.cjs +0 -1
- package/dist/device-build/index.d.ts +0 -4
- package/dist/device-build/index.js +0 -85
- package/dist/device-build/react.cjs +0 -1
- package/dist/device-build/react.d.ts +0 -21
- package/dist/device-build/react.js +0 -68
- package/dist/device-build/signing.d.ts +0 -20
- package/dist/device-install/demo/demo.d.ts +0 -0
- package/dist/device-install/index.cjs +0 -1
- package/dist/device-install/index.d.ts +0 -18
- package/dist/device-install/index.js +0 -594
- package/dist/device-install/react.cjs +0 -1
- package/dist/device-install/react.d.ts +0 -24
- package/dist/device-install/react.js +0 -105
- package/dist/errors-BSkqS7U-.js +0 -1
- package/dist/errors-gy8yQJos.mjs +0 -6
- package/dist/gsa-srp-Bme3JLEi.mjs +0 -266
- package/dist/gsa-srp-CCIfUz7Y.js +0 -1
- package/dist/index-ChhtuQ7e.js +0 -22
- package/dist/index-YDu8K9a4.mjs +0 -11279
- package/dist/limbuild-client-BagK_FWE.mjs +0 -83
- package/dist/limbuild-client-CVDwq54z.js +0 -1
- package/dist/play-publish/index.cjs +0 -1
- package/dist/play-publish/index.d.ts +0 -2
- package/dist/play-publish/index.js +0 -109
- package/dist/play-publish/react.cjs +0 -1
- package/dist/play-publish/react.d.ts +0 -31
- package/dist/play-publish/react.js +0 -91
- package/dist/provisioning-CDPvxd1h.mjs +0 -270
- package/dist/provisioning-CbC4h--7.js +0 -1
- package/src/app-store-relay/index.test.ts +0 -60
- package/src/app-store-relay/index.ts +0 -846
- package/src/app-store-relay/react.ts +0 -131
- package/src/apple-credentials/index.test.ts +0 -180
- package/src/apple-credentials/index.ts +0 -388
- package/src/core/device-install/apple/client.ts +0 -150
- package/src/core/device-install/apple/crypto.ts +0 -205
- package/src/core/device-install/apple/gsa-srp.ts +0 -123
- package/src/core/device-install/apple/index.ts +0 -5
- package/src/core/device-install/apple/provisioning.test.ts +0 -114
- package/src/core/device-install/apple/provisioning.ts +0 -419
- package/src/core/device-install/apple/relay.ts +0 -202
- package/src/core/device-install/index.ts +0 -4
- package/src/core/device-install/operations/index.ts +0 -6
- package/src/core/device-install/operations/limbuild-client.ts +0 -144
- package/src/core/device-install/operations/operations.ts +0 -239
- package/src/core/device-install/operations/relay-client.ts +0 -286
- package/src/core/device-install/operations/relay-protocol.ts +0 -71
- package/src/core/device-install/operations/usbmux.ts +0 -270
- package/src/core/device-install/operations/webusb-dom.d.ts +0 -54
- package/src/core/device-install/operations/webusb.ts +0 -110
- package/src/core/device-install/storage/browser-storage.test.ts +0 -65
- package/src/core/device-install/storage/browser-storage.ts +0 -325
- package/src/core/device-install/storage/index.ts +0 -2
- package/src/core/device-install/storage/secret-store.ts +0 -332
- package/src/core/device-install/types.ts +0 -69
- package/src/core/errors.ts +0 -3
- package/src/core/play-publish/google.ts +0 -113
- package/src/core/play-publish/publish.test.ts +0 -68
- package/src/core/play-publish/publish.ts +0 -89
- package/src/device-build/index.ts +0 -42
- package/src/device-build/react.ts +0 -130
- package/src/device-build/signing.ts +0 -94
- package/src/device-install/README.md +0 -423
- package/src/device-install/demo/demo.css +0 -493
- package/src/device-install/demo/demo.tsx +0 -1061
- package/src/device-install/demo/index.html +0 -12
- package/src/device-install/index.ts +0 -50
- package/src/device-install/react.ts +0 -195
- package/src/play-publish/README.md +0 -66
- package/src/play-publish/index.ts +0 -12
- package/src/play-publish/react.ts +0 -208
package/README.md
CHANGED
|
@@ -1,35 +1,18 @@
|
|
|
1
1
|
# Limrun React Components
|
|
2
2
|
|
|
3
|
-
`@limrun/ui` contains the React components needed to embed Limrun instances
|
|
3
|
+
`@limrun/ui` contains the React components needed to embed Limrun instances
|
|
4
|
+
in web applications. It exports `RemoteControl` plus accessibility snapshot
|
|
5
|
+
types and helpers for building inspect, search, and agent interfaces.
|
|
4
6
|
|
|
5
7
|
See [examples](../../examples/) to see how it can be used.
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
Related browser workflow packages are published separately:
|
|
8
10
|
|
|
9
|
-
`@limrun/
|
|
10
|
-
|
|
11
|
+
- `@limrun/apple-auth` handles Apple ID login, signing credentials, and App
|
|
12
|
+
Store Connect.
|
|
13
|
+
- `@limrun/device-install` handles WebUSB pairing and real-device installation.
|
|
14
|
+
- `@limrun/play-auth` handles Google login and Google Play publishing.
|
|
11
15
|
|
|
12
|
-
|
|
13
|
-
- `@limrun/ui/app-store-relay/react` exports thin React state helpers for Apple ID login.
|
|
14
|
-
- `@limrun/ui/device-build` exports signing asset helpers, signed build triggering, build log watching, and OTA install metadata.
|
|
15
|
-
- `@limrun/ui/device-build/react` exports build state helpers.
|
|
16
|
-
- `@limrun/ui/device-install` exports WebUSB access, pairing, pair-record storage, and install relay primitives.
|
|
17
|
-
- `@limrun/ui/device-install/react` exports focused React state for device access, pairing, and relay installation.
|
|
18
|
-
|
|
19
|
-
The primitives are intentionally low-level. Your app decides whether to create
|
|
20
|
-
or reuse Apple certificates and provisioning profiles, how to present devices
|
|
21
|
-
and bundle IDs, and when to persist signing assets.
|
|
22
|
-
|
|
23
|
-
```ts
|
|
24
|
-
import { listAppleTeams, createAppleProfile } from '@limrun/ui/app-store-relay';
|
|
25
|
-
import { startSignedDeviceBuild } from '@limrun/ui/device-build';
|
|
26
|
-
import { requestUSBAccess, pairDevice, startDeviceInstall } from '@limrun/ui/device-install';
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
WebUSB requires a Chromium browser and a secure context. Pair records and signing
|
|
30
|
-
assets, including the `.p12` password when provided, are stored in the browser's
|
|
31
|
-
IndexedDB only when you call the storage helpers.
|
|
32
|
-
|
|
33
|
-
### Releasing
|
|
16
|
+
## Releasing
|
|
34
17
|
|
|
35
18
|
This package is not part of generated SDK, hence you need to publish it manually in GitHub Actions.
|
|
@@ -182,6 +182,42 @@ interface RemoteControlProps {
|
|
|
182
182
|
* 16:9 / 1920×1080 — applies).
|
|
183
183
|
*/
|
|
184
184
|
cameraAspect?: CameraAspect;
|
|
185
|
+
/**
|
|
186
|
+
* iOS only: when true, capture the user's microphone via
|
|
187
|
+
* `getUserMedia({ audio: true })` and stream it live into the
|
|
188
|
+
* simulator's mock microphone. Unlike the camera (which is
|
|
189
|
+
* demand-driven by apps inside the sim), the microphone is
|
|
190
|
+
* user-driven: flip this prop from a button in your UI. The
|
|
191
|
+
* component handles the browser permission prompt, the WebRTC
|
|
192
|
+
* track attach (no SDP renegotiation — the audio slot is
|
|
193
|
+
* pre-allocated) and the `microphoneStart`/`microphoneStop`
|
|
194
|
+
* signaling to the host. Progress and failures are reported via
|
|
195
|
+
* `onMicrophoneStateChange`. Ignored on Android instances.
|
|
196
|
+
*/
|
|
197
|
+
microphoneEnabled?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Fires whenever the live-microphone pipeline changes state:
|
|
200
|
+
* after an enable attempt resolves (granted or denied), when the
|
|
201
|
+
* host acknowledges or rejects the stream, when the browser
|
|
202
|
+
* revokes the track mid-stream, and on disable. Use it to render
|
|
203
|
+
* the mic button's on/off/error state.
|
|
204
|
+
*/
|
|
205
|
+
onMicrophoneStateChange?: (state: MicrophoneState) => void;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Snapshot of the live-microphone pipeline, reported through
|
|
209
|
+
* `onMicrophoneStateChange`.
|
|
210
|
+
*/
|
|
211
|
+
export interface MicrophoneState {
|
|
212
|
+
/** True while the browser mic is captured and streaming to the sim. */
|
|
213
|
+
active: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* Human-readable failure from the last attempt, if any (permission
|
|
216
|
+
* denied, no device, host rejection, ...).
|
|
217
|
+
*/
|
|
218
|
+
error?: string;
|
|
219
|
+
/** Device label of the captured microphone, when available. */
|
|
220
|
+
label?: string;
|
|
185
221
|
}
|
|
186
222
|
/**
|
|
187
223
|
* Resolution caps a host app can request on the outbound camera.
|