@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.
Files changed (115) hide show
  1. package/README.md +9 -26
  2. package/dist/components/remote-control.d.ts +36 -0
  3. package/dist/index.cjs +1 -1
  4. package/dist/index.d.ts +1 -1
  5. package/dist/index.js +1189 -1089
  6. package/package.json +10 -51
  7. package/src/components/remote-control.tsx +267 -0
  8. package/src/index.ts +1 -1
  9. package/vite.config.ts +0 -9
  10. package/dist/app-store-relay/index.cjs +0 -9
  11. package/dist/app-store-relay/index.d.ts +0 -204
  12. package/dist/app-store-relay/index.js +0 -677
  13. package/dist/app-store-relay/react.cjs +0 -1
  14. package/dist/app-store-relay/react.d.ts +0 -15
  15. package/dist/app-store-relay/react.js +0 -69
  16. package/dist/apple-credentials/index.cjs +0 -1
  17. package/dist/apple-credentials/index.d.ts +0 -110
  18. package/dist/apple-credentials/index.js +0 -291
  19. package/dist/browser-storage-BnO-Ma-e.mjs +0 -219
  20. package/dist/browser-storage-DLxIqZk5.js +0 -1
  21. package/dist/client-C9z_sgOf.js +0 -1
  22. package/dist/client-CFDB4mX5.mjs +0 -191
  23. package/dist/core/device-install/apple/client.d.ts +0 -18
  24. package/dist/core/device-install/apple/crypto.d.ts +0 -20
  25. package/dist/core/device-install/apple/gsa-srp.d.ts +0 -26
  26. package/dist/core/device-install/apple/index.d.ts +0 -5
  27. package/dist/core/device-install/apple/provisioning.d.ts +0 -237
  28. package/dist/core/device-install/apple/relay.d.ts +0 -53
  29. package/dist/core/device-install/index.d.ts +0 -4
  30. package/dist/core/device-install/operations/index.d.ts +0 -6
  31. package/dist/core/device-install/operations/limbuild-client.d.ts +0 -43
  32. package/dist/core/device-install/operations/operations.d.ts +0 -47
  33. package/dist/core/device-install/operations/relay-client.d.ts +0 -26
  34. package/dist/core/device-install/operations/relay-protocol.d.ts +0 -27
  35. package/dist/core/device-install/operations/usbmux.d.ts +0 -32
  36. package/dist/core/device-install/operations/webusb.d.ts +0 -21
  37. package/dist/core/device-install/storage/browser-storage.d.ts +0 -56
  38. package/dist/core/device-install/storage/index.d.ts +0 -2
  39. package/dist/core/device-install/storage/secret-store.d.ts +0 -124
  40. package/dist/core/device-install/types.d.ts +0 -57
  41. package/dist/core/errors.d.ts +0 -1
  42. package/dist/core/play-publish/google.d.ts +0 -13
  43. package/dist/core/play-publish/publish.d.ts +0 -34
  44. package/dist/device-build/index.cjs +0 -1
  45. package/dist/device-build/index.d.ts +0 -4
  46. package/dist/device-build/index.js +0 -85
  47. package/dist/device-build/react.cjs +0 -1
  48. package/dist/device-build/react.d.ts +0 -21
  49. package/dist/device-build/react.js +0 -68
  50. package/dist/device-build/signing.d.ts +0 -20
  51. package/dist/device-install/demo/demo.d.ts +0 -0
  52. package/dist/device-install/index.cjs +0 -1
  53. package/dist/device-install/index.d.ts +0 -18
  54. package/dist/device-install/index.js +0 -594
  55. package/dist/device-install/react.cjs +0 -1
  56. package/dist/device-install/react.d.ts +0 -24
  57. package/dist/device-install/react.js +0 -105
  58. package/dist/errors-BSkqS7U-.js +0 -1
  59. package/dist/errors-gy8yQJos.mjs +0 -6
  60. package/dist/gsa-srp-Bme3JLEi.mjs +0 -266
  61. package/dist/gsa-srp-CCIfUz7Y.js +0 -1
  62. package/dist/index-ChhtuQ7e.js +0 -22
  63. package/dist/index-YDu8K9a4.mjs +0 -11279
  64. package/dist/limbuild-client-BagK_FWE.mjs +0 -83
  65. package/dist/limbuild-client-CVDwq54z.js +0 -1
  66. package/dist/play-publish/index.cjs +0 -1
  67. package/dist/play-publish/index.d.ts +0 -2
  68. package/dist/play-publish/index.js +0 -109
  69. package/dist/play-publish/react.cjs +0 -1
  70. package/dist/play-publish/react.d.ts +0 -31
  71. package/dist/play-publish/react.js +0 -91
  72. package/dist/provisioning-CDPvxd1h.mjs +0 -270
  73. package/dist/provisioning-CbC4h--7.js +0 -1
  74. package/src/app-store-relay/index.test.ts +0 -60
  75. package/src/app-store-relay/index.ts +0 -846
  76. package/src/app-store-relay/react.ts +0 -131
  77. package/src/apple-credentials/index.test.ts +0 -180
  78. package/src/apple-credentials/index.ts +0 -388
  79. package/src/core/device-install/apple/client.ts +0 -150
  80. package/src/core/device-install/apple/crypto.ts +0 -205
  81. package/src/core/device-install/apple/gsa-srp.ts +0 -123
  82. package/src/core/device-install/apple/index.ts +0 -5
  83. package/src/core/device-install/apple/provisioning.test.ts +0 -114
  84. package/src/core/device-install/apple/provisioning.ts +0 -419
  85. package/src/core/device-install/apple/relay.ts +0 -202
  86. package/src/core/device-install/index.ts +0 -4
  87. package/src/core/device-install/operations/index.ts +0 -6
  88. package/src/core/device-install/operations/limbuild-client.ts +0 -144
  89. package/src/core/device-install/operations/operations.ts +0 -239
  90. package/src/core/device-install/operations/relay-client.ts +0 -286
  91. package/src/core/device-install/operations/relay-protocol.ts +0 -71
  92. package/src/core/device-install/operations/usbmux.ts +0 -270
  93. package/src/core/device-install/operations/webusb-dom.d.ts +0 -54
  94. package/src/core/device-install/operations/webusb.ts +0 -110
  95. package/src/core/device-install/storage/browser-storage.test.ts +0 -65
  96. package/src/core/device-install/storage/browser-storage.ts +0 -325
  97. package/src/core/device-install/storage/index.ts +0 -2
  98. package/src/core/device-install/storage/secret-store.ts +0 -332
  99. package/src/core/device-install/types.ts +0 -69
  100. package/src/core/errors.ts +0 -3
  101. package/src/core/play-publish/google.ts +0 -113
  102. package/src/core/play-publish/publish.test.ts +0 -68
  103. package/src/core/play-publish/publish.ts +0 -89
  104. package/src/device-build/index.ts +0 -42
  105. package/src/device-build/react.ts +0 -130
  106. package/src/device-build/signing.ts +0 -94
  107. package/src/device-install/README.md +0 -423
  108. package/src/device-install/demo/demo.css +0 -493
  109. package/src/device-install/demo/demo.tsx +0 -1061
  110. package/src/device-install/demo/index.html +0 -12
  111. package/src/device-install/index.ts +0 -50
  112. package/src/device-install/react.ts +0 -195
  113. package/src/play-publish/README.md +0 -66
  114. package/src/play-publish/index.ts +0 -12
  115. 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 in your web applications.
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
- ## Real Device Installation Primitives
9
+ Related browser workflow packages are published separately:
8
10
 
9
- `@limrun/ui` includes browser primitives for building your own iPhone
10
- installation UI. The package no longer exports a guided install dialog.
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
- - `@limrun/ui/app-store-relay` exports framework-agnostic Apple ID relay and Apple Developer Portal calls for teams, certificates, profiles, bundle IDs, and devices.
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.