@limrun/ui 0.9.0-rc.9 → 0.13.3-rc.1

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 (67) hide show
  1. package/README.md +25 -8
  2. package/dist/app-store-relay/index.cjs +9 -0
  3. package/dist/app-store-relay/index.d.ts +102 -0
  4. package/dist/app-store-relay/index.js +430 -0
  5. package/dist/app-store-relay/react.cjs +1 -0
  6. package/dist/app-store-relay/react.d.ts +15 -0
  7. package/dist/app-store-relay/react.js +65 -0
  8. package/dist/browser-storage-BJ__DGJ6.mjs +202 -0
  9. package/dist/browser-storage-C1jQLXat.js +1 -0
  10. package/dist/client-Bk1N3XIF.mjs +228 -0
  11. package/dist/client-CnbCWvCs.js +1 -0
  12. package/dist/components/device-install/index.d.ts +1 -2
  13. package/dist/core/device-install/apple/provisioning.d.ts +55 -4
  14. package/dist/core/device-install/operations/limbuild-client.d.ts +15 -1
  15. package/dist/core/device-install/storage/browser-storage.d.ts +9 -5
  16. package/dist/core/device-install/types.d.ts +4 -1
  17. package/dist/device-build/index.cjs +1 -0
  18. package/dist/device-build/index.d.ts +4 -0
  19. package/dist/device-build/index.js +84 -0
  20. package/dist/device-build/react.cjs +1 -0
  21. package/dist/device-build/react.d.ts +20 -0
  22. package/dist/device-build/react.js +66 -0
  23. package/dist/device-build/signing.d.ts +20 -0
  24. package/dist/device-install/index.cjs +1 -1
  25. package/dist/device-install/index.d.ts +18 -3
  26. package/dist/device-install/index.js +570 -76
  27. package/dist/device-install/react.cjs +1 -1
  28. package/dist/device-install/react.d.ts +23 -1
  29. package/dist/device-install/react.js +93 -2
  30. package/dist/hooks/index.d.ts +1 -1
  31. package/dist/index-BXg7HdIs.mjs +11547 -0
  32. package/dist/index-CMeQfhYy.js +22 -0
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.d.ts +0 -2
  35. package/dist/index.js +502 -495
  36. package/dist/limbuild-client-CFJhYsRx.mjs +79 -0
  37. package/dist/limbuild-client-C_CMNLYV.js +1 -0
  38. package/dist/provisioning-CdseoMJQ.mjs +239 -0
  39. package/dist/provisioning-D2ZZQeyX.js +1 -0
  40. package/package.json +21 -1
  41. package/src/app-store-relay/index.test.ts +74 -0
  42. package/src/app-store-relay/index.ts +447 -0
  43. package/src/app-store-relay/react.ts +125 -0
  44. package/src/components/device-install/index.ts +1 -2
  45. package/src/core/device-install/apple/provisioning.test.ts +84 -0
  46. package/src/core/device-install/apple/provisioning.ts +91 -7
  47. package/src/core/device-install/operations/limbuild-client.ts +33 -3
  48. package/src/core/device-install/storage/browser-storage.ts +29 -14
  49. package/src/core/device-install/types.ts +5 -1
  50. package/src/device-build/index.ts +42 -0
  51. package/src/device-build/react.ts +128 -0
  52. package/src/device-build/signing.ts +94 -0
  53. package/src/device-install/index.ts +49 -3
  54. package/src/device-install/react.ts +180 -1
  55. package/src/hooks/index.ts +1 -1
  56. package/src/index.ts +1 -4
  57. package/vite.config.ts +4 -0
  58. package/dist/components/device-install/device-install-dialog.d.ts +0 -5
  59. package/dist/device-install-dialog-CqxDEH85.mjs +0 -443
  60. package/dist/device-install-dialog-jvqQ-fuo.js +0 -2
  61. package/dist/device-install-dialog.css +0 -1
  62. package/dist/hooks/use-device-install.d.ts +0 -73
  63. package/dist/use-device-install-CAPli9MR.js +0 -31
  64. package/dist/use-device-install-H8dqqvbR.mjs +0 -13624
  65. package/src/components/device-install/device-install-dialog.css +0 -325
  66. package/src/components/device-install/device-install-dialog.tsx +0 -495
  67. package/src/hooks/use-device-install.ts +0 -1219
@@ -1,325 +0,0 @@
1
- .lr-device-install {
2
- font-family:
3
- Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
4
- }
5
-
6
- .lr-device-install__trigger,
7
- .lr-device-install__primary,
8
- .lr-device-install__secondary,
9
- .lr-device-install__icon-button {
10
- border: 1px solid #d1d5db;
11
- border-radius: 8px;
12
- cursor: pointer;
13
- font: inherit;
14
- }
15
-
16
- .lr-device-install__trigger,
17
- .lr-device-install__primary {
18
- background: #111827;
19
- color: #ffffff;
20
- padding: 8px 12px;
21
- }
22
-
23
- .lr-device-install__secondary,
24
- .lr-device-install__icon-button {
25
- background: #ffffff;
26
- color: #111827;
27
- padding: 8px 12px;
28
- }
29
-
30
- .lr-device-install__trigger:disabled,
31
- .lr-device-install__primary:disabled,
32
- .lr-device-install__secondary:disabled {
33
- cursor: not-allowed;
34
- opacity: 0.55;
35
- }
36
-
37
- .lr-device-install__backdrop {
38
- align-items: center;
39
- background: rgb(17 24 39 / 0.55);
40
- display: flex;
41
- inset: 0;
42
- justify-content: center;
43
- padding: 24px;
44
- position: fixed;
45
- z-index: 50;
46
- }
47
-
48
- .lr-device-install__dialog {
49
- background: #ffffff;
50
- border-radius: 16px;
51
- box-shadow: 0 24px 80px rgb(15 23 42 / 0.28);
52
- color: #111827;
53
- max-height: min(90vh, 900px);
54
- max-width: 880px;
55
- overflow: auto;
56
- padding: 24px;
57
- width: 100%;
58
- }
59
-
60
- .lr-device-install__header {
61
- align-items: flex-start;
62
- display: flex;
63
- gap: 16px;
64
- justify-content: space-between;
65
- margin-bottom: 18px;
66
- }
67
-
68
- .lr-device-install__header h2,
69
- .lr-device-install__step h3,
70
- .lr-device-install__logs h3 {
71
- margin: 0;
72
- }
73
-
74
- .lr-device-install__header p,
75
- .lr-device-install__step p,
76
- .lr-device-install__logs {
77
- color: #4b5563;
78
- }
79
-
80
- .lr-device-install__error {
81
- background: #fef2f2;
82
- border: 1px solid #fecaca;
83
- border-radius: 10px;
84
- color: #991b1b;
85
- margin-bottom: 14px;
86
- padding: 10px 12px;
87
- }
88
-
89
- .lr-device-install__steps {
90
- display: grid;
91
- gap: 12px;
92
- }
93
-
94
- .lr-device-install__step {
95
- border: 1px solid #e5e7eb;
96
- border-radius: 12px;
97
- padding: 14px;
98
- }
99
-
100
- .lr-device-install__step--active {
101
- border-color: #111827;
102
- }
103
-
104
- .lr-device-install__step-header {
105
- align-items: flex-start;
106
- background: transparent;
107
- border: 0;
108
- color: inherit;
109
- cursor: pointer;
110
- display: grid;
111
- gap: 12px;
112
- grid-template-columns: auto 1fr auto;
113
- padding: 0;
114
- text-align: left;
115
- width: 100%;
116
- }
117
-
118
- .lr-device-install__step-number {
119
- align-items: center;
120
- background: #111827;
121
- border-radius: 999px;
122
- color: #ffffff;
123
- display: flex;
124
- font-size: 13px;
125
- font-weight: 700;
126
- height: 28px;
127
- justify-content: center;
128
- width: 28px;
129
- }
130
-
131
- .lr-device-install__status {
132
- border-radius: 999px;
133
- font-size: 12px;
134
- padding: 3px 8px;
135
- text-transform: capitalize;
136
- }
137
-
138
- .lr-device-install__status--idle {
139
- background: #f3f4f6;
140
- color: #4b5563;
141
- }
142
-
143
- .lr-device-install__status--active {
144
- background: #dbeafe;
145
- color: #1d4ed8;
146
- }
147
-
148
- .lr-device-install__status--complete {
149
- background: #dcfce7;
150
- color: #166534;
151
- }
152
-
153
- .lr-device-install__status--error {
154
- background: #fee2e2;
155
- color: #991b1b;
156
- }
157
-
158
- .lr-device-install__step-body {
159
- display: grid;
160
- gap: 12px;
161
- margin-top: 12px;
162
- }
163
-
164
- .lr-device-install__choice-grid {
165
- display: grid;
166
- gap: 10px;
167
- grid-template-columns: repeat(2, minmax(0, 1fr));
168
- }
169
-
170
- .lr-device-install__choice {
171
- background: #ffffff;
172
- border: 1px solid #d1d5db;
173
- border-radius: 10px;
174
- color: inherit;
175
- cursor: pointer;
176
- display: grid;
177
- gap: 6px;
178
- padding: 12px;
179
- text-align: left;
180
- }
181
-
182
- .lr-device-install__choice span {
183
- color: #4b5563;
184
- font-size: 13px;
185
- }
186
-
187
- .lr-device-install__choice--active {
188
- border-color: #111827;
189
- box-shadow: 0 0 0 1px #111827;
190
- }
191
-
192
- .lr-device-install__section-panel {
193
- border: 1px solid #e5e7eb;
194
- border-radius: 12px;
195
- display: grid;
196
- gap: 12px;
197
- padding: 12px;
198
- }
199
-
200
- .lr-device-install__grid {
201
- display: grid;
202
- gap: 10px;
203
- grid-template-columns: repeat(3, minmax(0, 1fr));
204
- }
205
-
206
- .lr-device-install__field {
207
- display: grid;
208
- gap: 6px;
209
- }
210
-
211
- .lr-device-install__field span {
212
- color: #374151;
213
- font-size: 13px;
214
- font-weight: 600;
215
- }
216
-
217
- .lr-device-install__field input,
218
- .lr-device-install__field select {
219
- border: 1px solid #d1d5db;
220
- border-radius: 8px;
221
- font: inherit;
222
- padding: 8px 10px;
223
- }
224
-
225
- .lr-device-install__actions {
226
- align-items: center;
227
- display: flex;
228
- flex-wrap: wrap;
229
- gap: 10px;
230
- }
231
-
232
- .lr-device-install__hint {
233
- color: #6b7280;
234
- font-size: 13px;
235
- }
236
-
237
- .lr-device-install__checklist {
238
- border: 1px solid #e5e7eb;
239
- border-radius: 10px;
240
- display: grid;
241
- overflow: hidden;
242
- }
243
-
244
- .lr-device-install__check-row {
245
- align-items: center;
246
- display: flex;
247
- gap: 12px;
248
- justify-content: space-between;
249
- padding: 10px 12px;
250
- }
251
-
252
- .lr-device-install__check-row + .lr-device-install__check-row {
253
- border-top: 1px solid #e5e7eb;
254
- }
255
-
256
- .lr-device-install__check-row strong {
257
- color: #111827;
258
- font-size: 13px;
259
- }
260
-
261
- .lr-device-install__build-logs {
262
- border: 1px solid #e5e7eb;
263
- border-radius: 10px;
264
- overflow: hidden;
265
- }
266
-
267
- .lr-device-install__build-logs summary {
268
- cursor: pointer;
269
- font-weight: 600;
270
- padding: 10px 12px;
271
- }
272
-
273
- .lr-device-install__build-logs pre {
274
- background: #0f172a;
275
- color: #e5e7eb;
276
- margin: 0;
277
- max-height: 240px;
278
- overflow: auto;
279
- padding: 12px;
280
- white-space: pre-wrap;
281
- }
282
-
283
- .lr-device-install__device {
284
- background: #f9fafb;
285
- border: 1px solid #e5e7eb;
286
- border-radius: 10px;
287
- padding: 10px;
288
- }
289
-
290
- .lr-device-install__logs {
291
- border-top: 1px solid #e5e7eb;
292
- margin-top: 18px;
293
- padding-top: 14px;
294
- }
295
-
296
- .lr-device-install__logs ol {
297
- display: grid;
298
- gap: 6px;
299
- list-style: none;
300
- margin: 8px 0 0;
301
- max-height: 160px;
302
- overflow: auto;
303
- padding: 0;
304
- }
305
-
306
- .lr-device-install__logs li {
307
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
308
- font-size: 12px;
309
- white-space: pre-wrap;
310
- }
311
-
312
- @media (max-width: 760px) {
313
- .lr-device-install__choice-grid,
314
- .lr-device-install__grid {
315
- grid-template-columns: 1fr;
316
- }
317
-
318
- .lr-device-install__step-header {
319
- grid-template-columns: auto 1fr;
320
- }
321
-
322
- .lr-device-install__status {
323
- grid-column: 2;
324
- }
325
- }