@limrun/ui 0.9.0-rc.5 → 0.9.0-rc.7

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 (73) hide show
  1. package/README.md +9 -0
  2. package/dist/components/device-install/device-install-dialog.d.ts +5 -0
  3. package/dist/components/device-install/index.d.ts +2 -0
  4. package/dist/components/inspect-overlay.d.ts +1 -0
  5. package/dist/components/remote-control.d.ts +13 -2
  6. package/dist/core/ax-tree.d.ts +2 -0
  7. package/dist/core/device-install/apple/client.d.ts +17 -0
  8. package/dist/core/device-install/apple/crypto.d.ts +20 -0
  9. package/dist/core/device-install/apple/gsa-srp.d.ts +26 -0
  10. package/dist/core/device-install/apple/index.d.ts +5 -0
  11. package/dist/core/device-install/apple/provisioning.d.ts +161 -0
  12. package/dist/core/device-install/apple/relay.d.ts +29 -0
  13. package/dist/core/device-install/index.d.ts +4 -0
  14. package/dist/core/device-install/operations/index.d.ts +6 -0
  15. package/dist/core/device-install/operations/limbuild-client.d.ts +28 -0
  16. package/dist/core/device-install/operations/operations.d.ts +32 -0
  17. package/dist/core/device-install/operations/relay-client.d.ts +25 -0
  18. package/dist/core/device-install/operations/relay-protocol.d.ts +27 -0
  19. package/dist/core/device-install/operations/usbmux.d.ts +32 -0
  20. package/dist/core/device-install/operations/webusb.d.ts +21 -0
  21. package/dist/core/device-install/storage/browser-storage.d.ts +44 -0
  22. package/dist/core/device-install/storage/index.d.ts +1 -0
  23. package/dist/core/device-install/types.d.ts +48 -0
  24. package/dist/device-install/index.cjs +1 -0
  25. package/dist/device-install/index.d.ts +3 -0
  26. package/dist/device-install/index.js +78 -0
  27. package/dist/device-install/react.cjs +1 -0
  28. package/dist/device-install/react.d.ts +1 -0
  29. package/dist/device-install/react.js +4 -0
  30. package/dist/device-install-dialog-86RDdoK9.js +2 -0
  31. package/dist/device-install-dialog-CnyDWf0q.mjs +462 -0
  32. package/dist/device-install-dialog.css +1 -0
  33. package/dist/hooks/index.d.ts +1 -0
  34. package/dist/hooks/use-device-install.d.ts +73 -0
  35. package/dist/index.cjs +1 -1
  36. package/dist/index.css +1 -1
  37. package/dist/index.d.ts +3 -1
  38. package/dist/index.js +737 -703
  39. package/dist/use-device-install-CbGVvwPp.js +31 -0
  40. package/dist/use-device-install-j1Gekpl4.mjs +13623 -0
  41. package/package.json +15 -2
  42. package/src/components/device-install/device-install-dialog.css +325 -0
  43. package/src/components/device-install/device-install-dialog.tsx +513 -0
  44. package/src/components/device-install/index.ts +2 -0
  45. package/src/components/inspect-overlay.css +6 -0
  46. package/src/components/inspect-overlay.tsx +46 -15
  47. package/src/components/remote-control.tsx +16 -2
  48. package/src/core/ax-tree.test.ts +124 -0
  49. package/src/core/ax-tree.ts +107 -0
  50. package/src/core/device-install/apple/client.ts +152 -0
  51. package/src/core/device-install/apple/crypto.ts +202 -0
  52. package/src/core/device-install/apple/gsa-srp.ts +127 -0
  53. package/src/core/device-install/apple/index.ts +5 -0
  54. package/src/core/device-install/apple/provisioning.ts +298 -0
  55. package/src/core/device-install/apple/relay.ts +221 -0
  56. package/src/core/device-install/index.ts +4 -0
  57. package/src/core/device-install/operations/index.ts +6 -0
  58. package/src/core/device-install/operations/limbuild-client.ts +104 -0
  59. package/src/core/device-install/operations/operations.ts +217 -0
  60. package/src/core/device-install/operations/relay-client.ts +255 -0
  61. package/src/core/device-install/operations/relay-protocol.ts +71 -0
  62. package/src/core/device-install/operations/usbmux.ts +270 -0
  63. package/src/core/device-install/operations/webusb-dom.d.ts +54 -0
  64. package/src/core/device-install/operations/webusb.ts +105 -0
  65. package/src/core/device-install/storage/browser-storage.ts +263 -0
  66. package/src/core/device-install/storage/index.ts +1 -0
  67. package/src/core/device-install/types.ts +65 -0
  68. package/src/device-install/index.ts +3 -0
  69. package/src/device-install/react.ts +1 -0
  70. package/src/hooks/index.ts +1 -0
  71. package/src/hooks/use-device-install.ts +1210 -0
  72. package/src/index.ts +4 -0
  73. package/vite.config.ts +6 -2
@@ -0,0 +1,65 @@
1
+ export type DeviceInstallLog = (message: string, detail?: string) => void;
2
+
3
+ export type DeviceInstallStep = 'signing' | 'connect' | 'build' | 'install';
4
+
5
+ export type DeviceInstallStepStatus = 'idle' | 'active' | 'complete' | 'error';
6
+
7
+ export type DeviceInstallBusyAction = 'signing' | 'usb' | 'pair' | 'build' | 'install';
8
+
9
+ export type DeviceInstallBuildStatus =
10
+ | 'idle'
11
+ | 'queued'
12
+ | 'running'
13
+ | 'succeeded'
14
+ | 'failed'
15
+ | 'cancelled';
16
+
17
+ export type BuildLogLine = {
18
+ type: 'command' | 'stdout' | 'stderr' | 'meta';
19
+ data: string;
20
+ };
21
+
22
+ export type DeviceHello = {
23
+ serialNumber?: string;
24
+ productName?: string;
25
+ manufacturerName?: string;
26
+ productId: number;
27
+ vendorId: number;
28
+ };
29
+
30
+ export type PairRecordPayload = {
31
+ udid: string;
32
+ pairRecordBase64: string;
33
+ };
34
+
35
+ export type StoredPairRecord = PairRecordPayload & {
36
+ productName?: string;
37
+ updatedAt: string;
38
+ };
39
+
40
+ export type ProvisioningProfileInfo = {
41
+ name?: string;
42
+ uuid?: string;
43
+ teamID?: string;
44
+ applicationIdentifier?: string;
45
+ bundleID?: string;
46
+ provisionedDevices: string[];
47
+ expirationDate?: string;
48
+ };
49
+
50
+ export type StoredSigningAssets = {
51
+ id: string;
52
+ deviceUDID?: string;
53
+ teamID?: string;
54
+ bundleID: string;
55
+ certificateID?: string;
56
+ certificateP12Base64: string;
57
+ certificateFileName?: string;
58
+ certificatePassword: string;
59
+ provisioningProfileBase64: string;
60
+ profileFileName?: string;
61
+ profile: ProvisioningProfileInfo;
62
+ updatedAt: string;
63
+ };
64
+
65
+ export type PutSigningAssetsInput = Omit<StoredSigningAssets, 'id' | 'updatedAt'>;
@@ -0,0 +1,3 @@
1
+ export * from '../core/device-install';
2
+ export { DeviceInstallDialog, DeviceInstallRelay } from '../components/device-install';
3
+ export { useDeviceInstall } from '../hooks/use-device-install';
@@ -0,0 +1 @@
1
+ export { useDeviceInstall } from '../hooks/use-device-install';
@@ -0,0 +1 @@
1
+ export * from './use-device-install';