@dxos/plugin-client 0.8.4-main.937b3ca → 0.8.4-main.9be5663bfe

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 (363) hide show
  1. package/dist/lib/browser/chunk-ELAYKIQU.mjs +12 -0
  2. package/dist/lib/browser/chunk-ELAYKIQU.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  4. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-M43LJQ5U.mjs +175 -0
  6. package/dist/lib/browser/chunk-M43LJQ5U.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-WNJRYPGG.mjs +131 -0
  8. package/dist/lib/browser/chunk-WNJRYPGG.mjs.map +7 -0
  9. package/dist/lib/browser/cli/index.mjs +92 -80
  10. package/dist/lib/browser/cli/index.mjs.map +3 -3
  11. package/dist/lib/browser/create-agent-SS5SE35J.mjs +34 -0
  12. package/dist/lib/browser/create-agent-SS5SE35J.mjs.map +7 -0
  13. package/dist/lib/browser/create-identity-PBEUEIPN.mjs +30 -0
  14. package/dist/lib/browser/create-identity-PBEUEIPN.mjs.map +7 -0
  15. package/dist/lib/browser/create-passkey-JN6I5WMM.mjs +105 -0
  16. package/dist/lib/browser/create-passkey-JN6I5WMM.mjs.map +7 -0
  17. package/dist/lib/browser/create-recovery-code-32I6IWZC.mjs +44 -0
  18. package/dist/lib/browser/create-recovery-code-32I6IWZC.mjs.map +7 -0
  19. package/dist/lib/browser/index.mjs +90 -93
  20. package/dist/lib/browser/index.mjs.map +4 -4
  21. package/dist/lib/browser/join-identity-2BP4G2SD.mjs +27 -0
  22. package/dist/lib/browser/join-identity-2BP4G2SD.mjs.map +7 -0
  23. package/dist/lib/browser/meta.json +1 -1
  24. package/dist/lib/browser/operations/index.mjs +13 -0
  25. package/dist/lib/browser/operations/index.mjs.map +7 -0
  26. package/dist/lib/browser/recover-identity-LS6B5INB.mjs +26 -0
  27. package/dist/lib/browser/recover-identity-LS6B5INB.mjs.map +7 -0
  28. package/dist/lib/browser/redeem-passkey-OCIV6VCK.mjs +82 -0
  29. package/dist/lib/browser/redeem-passkey-OCIV6VCK.mjs.map +7 -0
  30. package/dist/lib/browser/redeem-token-6BCRGKV6.mjs +37 -0
  31. package/dist/lib/browser/redeem-token-6BCRGKV6.mjs.map +7 -0
  32. package/dist/lib/browser/reset-storage-QJLTL7J3.mjs +26 -0
  33. package/dist/lib/browser/reset-storage-QJLTL7J3.mjs.map +7 -0
  34. package/dist/lib/browser/share-identity-YJEBJTPA.mjs +31 -0
  35. package/dist/lib/browser/share-identity-YJEBJTPA.mjs.map +7 -0
  36. package/dist/lib/browser/testing/index.mjs +22 -0
  37. package/dist/lib/browser/testing/index.mjs.map +7 -0
  38. package/dist/lib/browser/types/index.mjs +4 -5
  39. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  40. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  41. package/dist/lib/node-esm/chunk-IT5LAIV3.mjs +133 -0
  42. package/dist/lib/node-esm/chunk-IT5LAIV3.mjs.map +7 -0
  43. package/dist/lib/node-esm/chunk-J5RWSQT6.mjs +14 -0
  44. package/dist/lib/node-esm/chunk-J5RWSQT6.mjs.map +7 -0
  45. package/dist/lib/node-esm/chunk-SJ6FDER5.mjs +176 -0
  46. package/dist/lib/node-esm/chunk-SJ6FDER5.mjs.map +7 -0
  47. package/dist/lib/node-esm/cli/index.mjs +92 -80
  48. package/dist/lib/node-esm/cli/index.mjs.map +3 -3
  49. package/dist/lib/node-esm/create-agent-QGEHMHBL.mjs +35 -0
  50. package/dist/lib/node-esm/create-agent-QGEHMHBL.mjs.map +7 -0
  51. package/dist/lib/node-esm/create-identity-EHRJQOO4.mjs +31 -0
  52. package/dist/lib/node-esm/create-identity-EHRJQOO4.mjs.map +7 -0
  53. package/dist/lib/node-esm/create-passkey-PFBHHBEQ.mjs +106 -0
  54. package/dist/lib/node-esm/create-passkey-PFBHHBEQ.mjs.map +7 -0
  55. package/dist/lib/node-esm/create-recovery-code-HBAM2A72.mjs +45 -0
  56. package/dist/lib/node-esm/create-recovery-code-HBAM2A72.mjs.map +7 -0
  57. package/dist/lib/node-esm/index.mjs +90 -93
  58. package/dist/lib/node-esm/index.mjs.map +4 -4
  59. package/dist/lib/node-esm/join-identity-75JCKQHM.mjs +28 -0
  60. package/dist/lib/node-esm/join-identity-75JCKQHM.mjs.map +7 -0
  61. package/dist/lib/node-esm/meta.json +1 -1
  62. package/dist/lib/node-esm/operations/index.mjs +14 -0
  63. package/dist/lib/node-esm/operations/index.mjs.map +7 -0
  64. package/dist/lib/node-esm/recover-identity-AKGNTUJI.mjs +27 -0
  65. package/dist/lib/node-esm/recover-identity-AKGNTUJI.mjs.map +7 -0
  66. package/dist/lib/node-esm/redeem-passkey-FZO3LZ57.mjs +83 -0
  67. package/dist/lib/node-esm/redeem-passkey-FZO3LZ57.mjs.map +7 -0
  68. package/dist/lib/node-esm/redeem-token-IHHIAIQ2.mjs +38 -0
  69. package/dist/lib/node-esm/redeem-token-IHHIAIQ2.mjs.map +7 -0
  70. package/dist/lib/node-esm/reset-storage-S5MJITI3.mjs +27 -0
  71. package/dist/lib/node-esm/reset-storage-S5MJITI3.mjs.map +7 -0
  72. package/dist/lib/node-esm/share-identity-QZLY3VHE.mjs +32 -0
  73. package/dist/lib/node-esm/share-identity-QZLY3VHE.mjs.map +7 -0
  74. package/dist/lib/node-esm/testing/index.mjs +23 -0
  75. package/dist/lib/node-esm/testing/index.mjs.map +7 -0
  76. package/dist/lib/node-esm/types/index.mjs +4 -5
  77. package/dist/types/src/ClientPlugin.d.ts +1 -1
  78. package/dist/types/src/ClientPlugin.d.ts.map +1 -1
  79. package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
  80. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  81. package/dist/types/src/capabilities/client.d.ts +8 -0
  82. package/dist/types/src/capabilities/client.d.ts.map +1 -0
  83. package/dist/types/src/capabilities/index.d.ts +32 -7
  84. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  85. package/dist/types/src/capabilities/migrations.d.ts +5 -0
  86. package/dist/types/src/capabilities/migrations.d.ts.map +1 -0
  87. package/dist/types/src/capabilities/navigation-handler/index.d.ts +4 -0
  88. package/dist/types/src/capabilities/navigation-handler/index.d.ts.map +1 -0
  89. package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts +15 -0
  90. package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -0
  91. package/dist/types/src/capabilities/{client/index.d.ts → node.d.ts} +7 -3
  92. package/dist/types/src/capabilities/node.d.ts.map +1 -0
  93. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  94. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  95. package/dist/types/src/capabilities/{react-context/react-context.d.ts → react-context.d.ts} +1 -1
  96. package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
  97. package/dist/types/src/capabilities/react-surface.d.ts +9 -0
  98. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  99. package/dist/types/src/capabilities/schema-defs.d.ts +5 -0
  100. package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -0
  101. package/dist/types/src/cli/commands/config/view.d.ts.map +1 -1
  102. package/dist/types/src/cli/commands/device/info/info.d.ts +2 -2
  103. package/dist/types/src/cli/commands/device/info/info.d.ts.map +1 -1
  104. package/dist/types/src/cli/commands/device/list/list.d.ts +2 -2
  105. package/dist/types/src/cli/commands/device/list/list.d.ts.map +1 -1
  106. package/dist/types/src/cli/commands/device/update/update.d.ts.map +1 -1
  107. package/dist/types/src/cli/commands/edge/status.d.ts.map +1 -1
  108. package/dist/types/src/cli/commands/halo/create/create.d.ts +2 -2
  109. package/dist/types/src/cli/commands/halo/create/create.d.ts.map +1 -1
  110. package/dist/types/src/cli/commands/halo/credential/list/list.d.ts +1 -1
  111. package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +1 -1
  112. package/dist/types/src/cli/commands/halo/identity/identity.d.ts +2 -2
  113. package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +1 -1
  114. package/dist/types/src/cli/commands/halo/keys/keys.d.ts +2 -2
  115. package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +1 -1
  116. package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +1 -1
  117. package/dist/types/src/cli/commands/halo/update/update.d.ts.map +1 -1
  118. package/dist/types/src/cli/commands/profile/create.d.ts +2 -1
  119. package/dist/types/src/cli/commands/profile/create.d.ts.map +1 -1
  120. package/dist/types/src/cli/commands/profile/delete.d.ts +1 -1
  121. package/dist/types/src/cli/commands/profile/delete.d.ts.map +1 -1
  122. package/dist/types/src/cli/commands/profile/list.d.ts.map +1 -1
  123. package/dist/types/src/cli/plugin.d.ts +1 -1
  124. package/dist/types/src/cli/plugin.d.ts.map +1 -1
  125. package/dist/types/src/cli/testing/test-console.d.ts.map +1 -1
  126. package/dist/types/src/components/index.d.ts +0 -6
  127. package/dist/types/src/components/index.d.ts.map +1 -1
  128. package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -0
  129. package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts +184 -0
  130. package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts.map +1 -0
  131. package/dist/types/src/containers/DevicesContainer/index.d.ts +2 -0
  132. package/dist/types/src/containers/DevicesContainer/index.d.ts.map +1 -0
  133. package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -0
  134. package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts +15 -0
  135. package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts.map +1 -0
  136. package/dist/types/src/containers/JoinDialog/index.d.ts +2 -0
  137. package/dist/types/src/containers/JoinDialog/index.d.ts.map +1 -0
  138. package/dist/types/src/containers/ProfileContainer/ProfileContainer.d.ts.map +1 -0
  139. package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts.map +1 -0
  140. package/dist/types/src/containers/ProfileContainer/index.d.ts +2 -0
  141. package/dist/types/src/containers/ProfileContainer/index.d.ts.map +1 -0
  142. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -0
  143. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts.map +1 -0
  144. package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts +4 -0
  145. package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts.map +1 -0
  146. package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.d.ts.map +1 -0
  147. package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts.map +1 -0
  148. package/dist/types/src/containers/RecoveryCredentialsContainer/index.d.ts +2 -0
  149. package/dist/types/src/containers/RecoveryCredentialsContainer/index.d.ts.map +1 -0
  150. package/dist/types/src/{components → containers/ResetDialog}/ResetDialog.d.ts +1 -1
  151. package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -0
  152. package/dist/types/src/{components → containers/ResetDialog}/ResetDialog.stories.d.ts +1 -1
  153. package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts.map +1 -0
  154. package/dist/types/src/containers/ResetDialog/index.d.ts +4 -0
  155. package/dist/types/src/containers/ResetDialog/index.d.ts.map +1 -0
  156. package/dist/types/src/containers/index.d.ts +10 -0
  157. package/dist/types/src/containers/index.d.ts.map +1 -0
  158. package/dist/types/src/index.d.ts +2 -4
  159. package/dist/types/src/index.d.ts.map +1 -1
  160. package/dist/types/src/operations/create-agent.d.ts +5 -0
  161. package/dist/types/src/operations/create-agent.d.ts.map +1 -0
  162. package/dist/types/src/operations/create-identity.d.ts +5 -0
  163. package/dist/types/src/operations/create-identity.d.ts.map +1 -0
  164. package/dist/types/src/operations/create-passkey.d.ts +5 -0
  165. package/dist/types/src/operations/create-passkey.d.ts.map +1 -0
  166. package/dist/types/src/operations/create-recovery-code.d.ts +5 -0
  167. package/dist/types/src/operations/create-recovery-code.d.ts.map +1 -0
  168. package/dist/types/src/operations/definitions.d.ts +36 -0
  169. package/dist/types/src/operations/definitions.d.ts.map +1 -0
  170. package/dist/types/src/operations/index.d.ts +4 -0
  171. package/dist/types/src/operations/index.d.ts.map +1 -0
  172. package/dist/types/src/operations/join-identity.d.ts +5 -0
  173. package/dist/types/src/operations/join-identity.d.ts.map +1 -0
  174. package/dist/types/src/operations/recover-identity.d.ts +5 -0
  175. package/dist/types/src/operations/recover-identity.d.ts.map +1 -0
  176. package/dist/types/src/operations/redeem-passkey.d.ts +5 -0
  177. package/dist/types/src/operations/redeem-passkey.d.ts.map +1 -0
  178. package/dist/types/src/operations/redeem-token.d.ts +5 -0
  179. package/dist/types/src/operations/redeem-token.d.ts.map +1 -0
  180. package/dist/types/src/operations/reset-storage.d.ts +5 -0
  181. package/dist/types/src/operations/reset-storage.d.ts.map +1 -0
  182. package/dist/types/src/operations/share-identity.d.ts +5 -0
  183. package/dist/types/src/operations/share-identity.d.ts.map +1 -0
  184. package/dist/types/src/testing/index.d.ts +2 -0
  185. package/dist/types/src/testing/index.d.ts.map +1 -0
  186. package/dist/types/src/testing/initializeIdentity.d.ts +13 -0
  187. package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -0
  188. package/dist/types/src/translations.d.ts.map +1 -1
  189. package/dist/types/src/types/capabilities.d.ts +1 -1
  190. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  191. package/dist/types/src/types/schema.d.ts +26 -175
  192. package/dist/types/src/types/schema.d.ts.map +1 -1
  193. package/dist/types/tsconfig.tsbuildinfo +1 -1
  194. package/package.json +72 -36
  195. package/src/ClientPlugin.ts +37 -24
  196. package/src/capabilities/{app-graph-builder/app-graph-builder.ts → app-graph-builder.ts} +22 -20
  197. package/src/capabilities/{client/client.ts → client.ts} +16 -12
  198. package/src/capabilities/index.ts +15 -7
  199. package/src/capabilities/{migrations/migrations.ts → migrations.ts} +4 -4
  200. package/src/capabilities/navigation-handler/index.ts +9 -0
  201. package/src/capabilities/navigation-handler/navigation-handler.ts +64 -0
  202. package/src/capabilities/node.ts +13 -0
  203. package/src/capabilities/operation-handler.ts +16 -0
  204. package/src/capabilities/{react-context/react-context.tsx → react-context.tsx} +7 -7
  205. package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +21 -22
  206. package/src/capabilities/{schema-defs/schema-defs.ts → schema-defs.ts} +8 -7
  207. package/src/cli/commands/config/view.ts +4 -1
  208. package/src/cli/commands/device/info/info.test.ts +0 -1
  209. package/src/cli/commands/device/info/info.ts +0 -2
  210. package/src/cli/commands/device/list/list.test.ts +0 -1
  211. package/src/cli/commands/device/list/list.ts +0 -2
  212. package/src/cli/commands/device/update/update.ts +0 -2
  213. package/src/cli/commands/edge/status.ts +3 -2
  214. package/src/cli/commands/halo/create/create.test.ts +0 -1
  215. package/src/cli/commands/halo/create/create.ts +14 -6
  216. package/src/cli/commands/halo/credential/list/list.test.ts +0 -1
  217. package/src/cli/commands/halo/credential/list/list.ts +4 -7
  218. package/src/cli/commands/halo/identity/identity.ts +0 -1
  219. package/src/cli/commands/halo/keys/keys.ts +0 -2
  220. package/src/cli/commands/halo/seed/seed.ts +0 -2
  221. package/src/cli/commands/halo/update/update.test.ts +0 -1
  222. package/src/cli/commands/halo/update/update.ts +0 -2
  223. package/src/cli/commands/profile/create.ts +9 -6
  224. package/src/cli/commands/profile/delete.ts +5 -2
  225. package/src/cli/commands/profile/list.ts +12 -11
  226. package/src/cli/plugin.ts +11 -13
  227. package/src/cli/testing/test-console.ts +1 -2
  228. package/src/components/index.ts +0 -7
  229. package/src/constants.ts +4 -4
  230. package/src/{components → containers/DevicesContainer}/DevicesContainer.stories.tsx +10 -7
  231. package/src/{components → containers/DevicesContainer}/DevicesContainer.tsx +77 -84
  232. package/src/containers/DevicesContainer/index.ts +5 -0
  233. package/src/containers/JoinDialog/JoinDialog.stories.tsx +42 -0
  234. package/src/{components → containers/JoinDialog}/JoinDialog.tsx +20 -15
  235. package/src/containers/JoinDialog/index.ts +5 -0
  236. package/src/{components → containers/ProfileContainer}/ProfileContainer.stories.tsx +4 -5
  237. package/src/{components → containers/ProfileContainer}/ProfileContainer.tsx +22 -30
  238. package/src/containers/ProfileContainer/index.ts +5 -0
  239. package/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.stories.tsx +4 -5
  240. package/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.tsx +29 -26
  241. package/src/containers/RecoveryCodeDialog/index.ts +8 -0
  242. package/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.stories.tsx +10 -7
  243. package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.tsx +66 -0
  244. package/src/containers/RecoveryCredentialsContainer/index.ts +5 -0
  245. package/src/{components → containers/ResetDialog}/ResetDialog.stories.tsx +27 -15
  246. package/src/{components → containers/ResetDialog}/ResetDialog.tsx +15 -13
  247. package/src/containers/ResetDialog/index.ts +8 -0
  248. package/src/containers/index.ts +15 -0
  249. package/src/index.ts +2 -5
  250. package/src/meta.ts +1 -1
  251. package/src/operations/create-agent.ts +26 -0
  252. package/src/operations/create-identity.ts +29 -0
  253. package/src/operations/create-passkey.ts +88 -0
  254. package/src/operations/create-recovery-code.ts +34 -0
  255. package/src/operations/definitions.ts +107 -0
  256. package/src/operations/index.ts +20 -0
  257. package/src/operations/join-identity.ts +28 -0
  258. package/src/operations/recover-identity.ts +28 -0
  259. package/src/operations/redeem-passkey.ts +85 -0
  260. package/src/operations/redeem-token.ts +31 -0
  261. package/src/operations/reset-storage.ts +27 -0
  262. package/src/operations/share-identity.ts +26 -0
  263. package/src/testing/index.ts +5 -0
  264. package/src/testing/initializeIdentity.ts +24 -0
  265. package/src/translations.ts +53 -42
  266. package/src/types/capabilities.ts +4 -4
  267. package/src/types/events.ts +6 -6
  268. package/src/types/schema.ts +18 -123
  269. package/dist/lib/browser/app-graph-builder-3FGBMLTF.mjs +0 -118
  270. package/dist/lib/browser/app-graph-builder-3FGBMLTF.mjs.map +0 -7
  271. package/dist/lib/browser/chunk-4BZGRIFS.mjs +0 -293
  272. package/dist/lib/browser/chunk-4BZGRIFS.mjs.map +0 -7
  273. package/dist/lib/browser/chunk-F7H2Y3Z2.mjs +0 -18
  274. package/dist/lib/browser/chunk-F7H2Y3Z2.mjs.map +0 -7
  275. package/dist/lib/browser/chunk-G7C3S2BE.mjs +0 -15
  276. package/dist/lib/browser/chunk-G7C3S2BE.mjs.map +0 -7
  277. package/dist/lib/browser/client-IX5LMWV4.mjs +0 -86
  278. package/dist/lib/browser/client-IX5LMWV4.mjs.map +0 -7
  279. package/dist/lib/browser/migrations-3EBTAW3N.mjs +0 -24
  280. package/dist/lib/browser/migrations-3EBTAW3N.mjs.map +0 -7
  281. package/dist/lib/browser/operation-resolver-2NT3ISVP.mjs +0 -298
  282. package/dist/lib/browser/operation-resolver-2NT3ISVP.mjs.map +0 -7
  283. package/dist/lib/browser/react-context-4UABG3GP.mjs +0 -24
  284. package/dist/lib/browser/react-context-4UABG3GP.mjs.map +0 -7
  285. package/dist/lib/browser/react-surface-RSQ74XCT.mjs +0 -675
  286. package/dist/lib/browser/react-surface-RSQ74XCT.mjs.map +0 -7
  287. package/dist/lib/browser/schema-defs-O7VLP745.mjs +0 -26
  288. package/dist/lib/browser/schema-defs-O7VLP745.mjs.map +0 -7
  289. package/dist/lib/node-esm/app-graph-builder-2PIYVUNC.mjs +0 -119
  290. package/dist/lib/node-esm/app-graph-builder-2PIYVUNC.mjs.map +0 -7
  291. package/dist/lib/node-esm/chunk-BCELGXRI.mjs +0 -20
  292. package/dist/lib/node-esm/chunk-BCELGXRI.mjs.map +0 -7
  293. package/dist/lib/node-esm/chunk-JAF64TFQ.mjs +0 -295
  294. package/dist/lib/node-esm/chunk-JAF64TFQ.mjs.map +0 -7
  295. package/dist/lib/node-esm/chunk-PRAFFO54.mjs +0 -16
  296. package/dist/lib/node-esm/chunk-PRAFFO54.mjs.map +0 -7
  297. package/dist/lib/node-esm/client-FFPK5UFP.mjs +0 -87
  298. package/dist/lib/node-esm/client-FFPK5UFP.mjs.map +0 -7
  299. package/dist/lib/node-esm/migrations-WSZSFGDK.mjs +0 -25
  300. package/dist/lib/node-esm/migrations-WSZSFGDK.mjs.map +0 -7
  301. package/dist/lib/node-esm/operation-resolver-VW5R2BE4.mjs +0 -299
  302. package/dist/lib/node-esm/operation-resolver-VW5R2BE4.mjs.map +0 -7
  303. package/dist/lib/node-esm/react-context-UVXMGPW4.mjs +0 -25
  304. package/dist/lib/node-esm/react-context-UVXMGPW4.mjs.map +0 -7
  305. package/dist/lib/node-esm/react-surface-KBHANGGC.mjs +0 -676
  306. package/dist/lib/node-esm/react-surface-KBHANGGC.mjs.map +0 -7
  307. package/dist/lib/node-esm/schema-defs-QLRGBIKY.mjs +0 -27
  308. package/dist/lib/node-esm/schema-defs-QLRGBIKY.mjs.map +0 -7
  309. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +0 -6
  310. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
  311. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
  312. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
  313. package/dist/types/src/capabilities/client/client.d.ts +0 -8
  314. package/dist/types/src/capabilities/client/client.d.ts.map +0 -1
  315. package/dist/types/src/capabilities/client/index.d.ts.map +0 -1
  316. package/dist/types/src/capabilities/migrations/index.d.ts +0 -3
  317. package/dist/types/src/capabilities/migrations/index.d.ts.map +0 -1
  318. package/dist/types/src/capabilities/migrations/migrations.d.ts +0 -5
  319. package/dist/types/src/capabilities/migrations/migrations.d.ts.map +0 -1
  320. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -5
  321. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  322. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -8
  323. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  324. package/dist/types/src/capabilities/react-context/index.d.ts +0 -7
  325. package/dist/types/src/capabilities/react-context/index.d.ts.map +0 -1
  326. package/dist/types/src/capabilities/react-context/react-context.d.ts.map +0 -1
  327. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -5
  328. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  329. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -9
  330. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  331. package/dist/types/src/capabilities/schema-defs/index.d.ts +0 -3
  332. package/dist/types/src/capabilities/schema-defs/index.d.ts.map +0 -1
  333. package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts +0 -5
  334. package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts.map +0 -1
  335. package/dist/types/src/components/DevicesContainer.d.ts.map +0 -1
  336. package/dist/types/src/components/DevicesContainer.stories.d.ts +0 -181
  337. package/dist/types/src/components/DevicesContainer.stories.d.ts.map +0 -1
  338. package/dist/types/src/components/JoinDialog.d.ts.map +0 -1
  339. package/dist/types/src/components/ProfileContainer.d.ts.map +0 -1
  340. package/dist/types/src/components/ProfileContainer.stories.d.ts.map +0 -1
  341. package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +0 -1
  342. package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts.map +0 -1
  343. package/dist/types/src/components/RecoveryCredentialsContainer.d.ts.map +0 -1
  344. package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts.map +0 -1
  345. package/dist/types/src/components/ResetDialog.d.ts.map +0 -1
  346. package/dist/types/src/components/ResetDialog.stories.d.ts.map +0 -1
  347. package/src/capabilities/app-graph-builder/index.ts +0 -7
  348. package/src/capabilities/client/index.ts +0 -7
  349. package/src/capabilities/migrations/index.ts +0 -7
  350. package/src/capabilities/operation-resolver/index.ts +0 -7
  351. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -248
  352. package/src/capabilities/react-context/index.ts +0 -7
  353. package/src/capabilities/react-surface/index.ts +0 -7
  354. package/src/capabilities/schema-defs/index.ts +0 -7
  355. package/src/components/RecoveryCredentialsContainer.tsx +0 -68
  356. /package/dist/types/src/{components → containers/DevicesContainer}/DevicesContainer.d.ts +0 -0
  357. /package/dist/types/src/{components → containers/JoinDialog}/JoinDialog.d.ts +0 -0
  358. /package/dist/types/src/{components → containers/ProfileContainer}/ProfileContainer.d.ts +0 -0
  359. /package/dist/types/src/{components → containers/ProfileContainer}/ProfileContainer.stories.d.ts +0 -0
  360. /package/dist/types/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.d.ts +0 -0
  361. /package/dist/types/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.stories.d.ts +0 -0
  362. /package/dist/types/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.d.ts +0 -0
  363. /package/dist/types/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.stories.d.ts +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/react-surface/react-surface.tsx", "../../../src/components/DevicesContainer.tsx", "../../../src/components/JoinDialog.tsx", "../../../src/components/ProfileContainer.tsx", "../../../src/components/RecoveryCodeDialog.tsx", "../../../src/components/RecoveryCredentialsContainer.tsx", "../../../src/components/ResetDialog.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capability, Common } from '@dxos/app-framework';\nimport { type JoinPanelProps } from '@dxos/shell/react';\n\nimport {\n DevicesContainer,\n JoinDialog,\n ProfileContainer,\n RecoveryCodeDialog,\n type RecoveryCodeDialogProps,\n RecoveryCredentialsContainer,\n ResetDialog,\n type ResetDialogProps,\n} from '../../components';\nimport { JOIN_DIALOG, RECOVERY_CODE_DIALOG, RESET_DIALOG } from '../../constants';\nimport { Account, type ClientPluginOptions } from '../../types';\n\ntype ReactSurfaceOptions = Pick<ClientPluginOptions, 'onReset'> & {\n createInvitationUrl: (invitationCode: string) => string;\n};\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* (props?: ReactSurfaceOptions) {\n const { createInvitationUrl, onReset } = props!;\n const capabilityManager = yield* Capability.Service;\n\n return Capability.contributes(Common.Capability.ReactSurface, [\n Common.createSurface({\n id: Account.Profile,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Profile,\n component: () => <ProfileContainer />,\n }),\n Common.createSurface({\n id: Account.Devices,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Devices,\n component: () => <DevicesContainer createInvitationUrl={createInvitationUrl} />,\n }),\n Common.createSurface({\n id: Account.Security,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Security,\n component: () => <RecoveryCredentialsContainer />,\n }),\n Common.createSurface({\n id: JOIN_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: JoinPanelProps } => data.component === JOIN_DIALOG,\n component: ({ data }: { data: any }) => <JoinDialog {...data.props} />,\n }),\n Common.createSurface({\n id: RECOVERY_CODE_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: RecoveryCodeDialogProps } => data.component === RECOVERY_CODE_DIALOG,\n component: ({ data }: { data: any }) => <RecoveryCodeDialog {...data.props} />,\n }),\n Common.createSurface({\n id: RESET_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: ResetDialogProps } => data.component === RESET_DIALOG,\n component: ({ data }: { data: any }) => (\n <ResetDialog {...data.props} onReset={onReset} capabilityManager={capabilityManager} />\n ),\n }),\n ]);\n }),\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { useCallback, useEffect, useState } from 'react';\nimport { QR } from 'react-qr-rounded';\n\nimport { useOperationInvoker } from '@dxos/app-framework/react';\nimport { log } from '@dxos/log';\nimport { useClient, useMulticastObservable } from '@dxos/react-client';\nimport { type Device, useDevices } from '@dxos/react-client/halo';\nimport { type CancellableInvitationObservable, Invitation, InvitationEncoder } from '@dxos/react-client/invitations';\nimport { useNetworkStatus } from '@dxos/react-client/mesh';\nimport { Button, Clipboard, Icon, IconButton, List, useId, useTranslation } from '@dxos/react-ui';\nimport {\n ControlFrame,\n ControlFrameItem,\n ControlGroup,\n ControlItem,\n ControlPage,\n ControlSection,\n} from '@dxos/react-ui-form';\nimport { translationKey } from '@dxos/shell/react';\nimport { AuthCode, Centered, DeviceListItem, Emoji, Viewport } from '@dxos/shell/react';\nimport { osTranslations } from '@dxos/ui-theme';\nimport { hexToEmoji } from '@dxos/util';\n\nimport { meta } from '../meta';\nimport { ClientOperation } from '../types';\n\nexport type DevicesContainerProps = {\n createInvitationUrl?: (invitationCode: string) => string;\n};\n\nexport const DevicesContainer = ({ createInvitationUrl }: DevicesContainerProps) => {\n const { t } = useTranslation(translationKey);\n const { invokePromise } = useOperationInvoker();\n const devices = useDevices();\n const { swarm: connectionState } = useNetworkStatus();\n\n const handleResetStorage = useCallback(() => invokePromise(ClientOperation.ResetStorage, {}), [invokePromise]);\n\n const handleRecover = useCallback(\n () => invokePromise(ClientOperation.ResetStorage, { mode: 'recover' }),\n [invokePromise],\n );\n\n const handleJoinNewIdentity = useCallback(\n () => invokePromise(ClientOperation.ResetStorage, { mode: 'join new identity' }),\n [invokePromise],\n );\n\n return (\n <Clipboard.Provider>\n <ControlPage>\n <ControlSection\n title={t('devices verbose label', { ns: meta.id })}\n description={t('devices description', { ns: meta.id })}\n >\n <ControlFrame>\n <ControlFrameItem title={t('devices label', { ns: meta.id })}>\n <List>\n {devices.map((device: Device) => {\n return (\n <DeviceListItem key={device.deviceKey.toHex()} device={device} connectionState={connectionState} />\n );\n })}\n </List>\n </ControlFrameItem>\n {createInvitationUrl && (\n <ControlFrameItem title='Add device'>\n <DeviceInvitation createInvitationUrl={createInvitationUrl} />\n </ControlFrameItem>\n )}\n </ControlFrame>\n </ControlSection>\n <ControlSection\n title={t('danger zone title', { ns: meta.id })}\n description={t('danger zone description', { ns: meta.id })}\n >\n <ControlGroup>\n <ControlItem title={t('reset device label')} description={t('reset device description', { ns: meta.id })}>\n <Button variant='destructive' onClick={handleResetStorage} data-testid='devicesContainer.reset'>\n {t('reset device label')}\n </Button>\n </ControlItem>\n <ControlItem\n title={t('recover identity label')}\n description={t('recover identity description', { ns: meta.id })}\n >\n <Button variant='destructive' onClick={handleRecover} data-testid='devicesContainer.recover'>\n {t('recover identity label')}\n </Button>\n </ControlItem>\n <ControlItem\n title={t('join new identity label')}\n description={t('join new identity description', { ns: meta.id })}\n >\n <Button variant='destructive' onClick={handleJoinNewIdentity} data-testid='devicesContainer.joinExisting'>\n {t('join new identity label')}\n </Button>\n </ControlItem>\n </ControlGroup>\n </ControlSection>\n </ControlPage>\n </Clipboard.Provider>\n );\n};\n\ntype DeviceInvitationProps = {\n invitation?: CancellableInvitationObservable;\n createInvitationUrl: (invitationCode: string) => string;\n onInvitationDone: () => void;\n onInvitationCreate: () => void;\n};\n\nconst DeviceInvitation = (props: Pick<DeviceInvitationProps, 'createInvitationUrl'>) => {\n const client = useClient();\n const [invitation, setInvitation] = useState<CancellableInvitationObservable>();\n\n const onInvitationCreate = useCallback(() => {\n const invitation = client.halo.share();\n if (client.config.values.runtime?.app?.env?.DX_ENVIRONMENT !== 'production') {\n const subscription = invitation.subscribe((invitation: Invitation) => {\n const invitationCode = InvitationEncoder.encode(invitation);\n if (invitation.state === Invitation.State.CONNECTING) {\n log.info(JSON.stringify({ invitationCode, authCode: invitation.authCode }));\n subscription.unsubscribe();\n }\n });\n }\n setInvitation(invitation);\n }, [client]);\n\n const onInvitationDone = useCallback(() => {\n setInvitation(undefined);\n }, []);\n\n if (invitation) {\n return <DeviceInvitationImpl {...props} {...{ invitation, onInvitationCreate, onInvitationDone }} />;\n } else {\n return <InvitationSection {...props} {...{ onInvitationCreate, onInvitationDone }} />;\n }\n};\n\nconst DeviceInvitationImpl = ({\n invitation: invitationObservable,\n createInvitationUrl,\n onInvitationDone,\n onInvitationCreate,\n}: DeviceInvitationProps) => {\n const invitation = useMulticastObservable(invitationObservable!);\n const url = createInvitationUrl(InvitationEncoder.encode(invitation));\n\n useEffect(() => {\n if (invitation.state >= Invitation.State.SUCCESS) {\n onInvitationDone();\n }\n }, [invitation.state]);\n\n return <InvitationSection {...invitation} {...{ url, onInvitationDone, onInvitationCreate }} />;\n};\n\ntype InvitationComponentProps = Partial<\n Pick<Invitation, 'authCode' | 'invitationId'> &\n Pick<DeviceInvitationProps, 'onInvitationDone' | 'onInvitationCreate'> & {\n state: number;\n url: string;\n }\n>;\n\nconst InvitationSection = ({\n state = -1,\n authCode,\n invitationId = 'never',\n url = 'never',\n onInvitationDone = () => {},\n onInvitationCreate = () => {},\n}: InvitationComponentProps) => {\n const { t } = useTranslation(meta.id);\n const activeView =\n state < 0\n ? 'init'\n : state >= Invitation.State.CANCELLED\n ? 'complete'\n : state >= Invitation.State.READY_FOR_AUTHENTICATION && authCode\n ? 'auth-code'\n : 'qr-code';\n return activeView === 'init' ? (\n <>\n <p className='text-description mbe-2'>{t('add device description')}</p>\n <IconButton\n icon='ph--plus--regular'\n label={t('create device invitation label')}\n disabled={state >= 0}\n classNames='is-full'\n data-testid='devicesContainer.createInvitation'\n onClick={onInvitationCreate}\n />\n </>\n ) : (\n <Viewport.Root activeView={activeView}>\n <Viewport.Views>\n <Viewport.View id='init'>\n {/* This view intentionally left blank while conditionally rendering the viewport. */}\n </Viewport.View>\n <Viewport.View id='complete'>\n <InvitationComplete statusValue={state} />\n </Viewport.View>\n <Viewport.View id='auth-code'>\n <InvitationAuthCode id={invitationId} code={authCode ?? 'never'} onCancel={onInvitationDone} />\n </Viewport.View>\n <Viewport.View id='qr-code'>\n <InvitationQR id={invitationId} url={url} onCancel={onInvitationDone} />\n </Viewport.View>\n </Viewport.Views>\n </Viewport.Root>\n );\n};\n\nconst InvitationQR = ({ id, url, onCancel }: { id: string; url: string; onCancel: () => void }) => {\n const { t } = useTranslation(osTranslations);\n const qrLabel = useId('devices-container__qr-code');\n const emoji = hexToEmoji(id);\n return (\n <>\n <p className='text-description'>{t('qr code description', { ns: meta.id })}</p>\n <div role='group' className='grid grid-cols-[1fr_min-content] mlb-2 gap-2'>\n <div role='none' className='is-full aspect-square relative text-description'>\n <QR\n rounding={100}\n backgroundColor='transparent'\n color='currentColor'\n aria-labelledby={qrLabel}\n errorCorrectionLevel='Q'\n cutout={true}\n >\n {url ?? 'never'}\n </QR>\n <Centered>\n <Emoji text={emoji} />\n </Centered>\n </div>\n <span id={qrLabel} className='sr-only'>\n {t('qr label')}\n </span>\n </div>\n {/* TODO(burdon): Factor out button bar */}\n <div className='flex justify-center'>\n <div className='flex gap-2'>\n <Clipboard.Button value={url ?? 'never'} />\n <Button variant='ghost' onClick={onCancel}>\n {t('cancel label')}\n </Button>\n </div>\n </div>\n </>\n );\n};\n\nconst InvitationAuthCode = ({ id, code, onCancel }: { id: string; code: string; onCancel: () => void }) => {\n const { t } = useTranslation(osTranslations);\n const emoji = hexToEmoji(id);\n\n return (\n <>\n <p className='text-description'>{t('auth other device emoji message')}</p>\n {emoji && <Emoji text={emoji} className='mli-auto mlb-2 text-center' />}\n <p className='text-description'>{t('auth code message')}</p>\n <AuthCode code={code} large classNames='mli-auto mlb-2 text-center grow' />\n <Button variant='ghost' onClick={onCancel}>\n {t('cancel label')}\n </Button>\n </>\n );\n};\n\nconst InvitationComplete = ({ statusValue }: { statusValue: number }) => {\n return statusValue > 0 ? (\n <Icon icon='ph--check--regular' size={6} classNames='m-1.5' />\n ) : (\n <Icon icon='ph--x--regular' size={6} classNames='m-1.5' />\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useCallback } from 'react';\n\nimport { Common } from '@dxos/app-framework';\nimport { useOperationInvoker } from '@dxos/app-framework/react';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/types';\nimport { type InvitationResult } from '@dxos/react-client/invitations';\nimport { Dialog, useTranslation } from '@dxos/react-ui';\nimport { JoinPanel, type JoinPanelProps } from '@dxos/shell/react';\nimport { osTranslations } from '@dxos/ui-theme';\n\nimport { meta } from '../meta';\nimport { ClientOperation } from '../types';\n\nexport const JoinDialog = (props: JoinPanelProps) => {\n const { invokePromise } = useOperationInvoker();\n const { t } = useTranslation(meta.id);\n\n const handleCancelResetStorage = useCallback(() => invokePromise(ClientOperation.ShareIdentity), [invokePromise]);\n\n const handleDone = useCallback(\n async (result: InvitationResult | null) => {\n if (result?.identityKey) {\n await Promise.all([\n invokePromise(Common.LayoutOperation.UpdateDialog, { state: false }),\n invokePromise(ObservabilityOperation.SendEvent, {\n name: props.initialDisposition === 'recover-identity' ? 'identity.recover' : 'identity.join',\n }),\n ]);\n }\n },\n [invokePromise],\n );\n\n return (\n <Dialog.Content>\n <Dialog.Title classNames='sr-only'>{t('join space label', { ns: osTranslations })}</Dialog.Title>\n <JoinPanel\n mode='halo-only'\n {...props}\n exitActionParent={<Dialog.Close asChild />}\n doneActionParent={<Dialog.Close asChild />}\n onCancelResetStorage={handleCancelResetStorage}\n onDone={handleDone}\n />\n </Dialog.Content>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\nimport React, { type ChangeEvent, useCallback, useMemo, useState } from 'react';\n\nimport { debounce } from '@dxos/async';\nimport { useClient } from '@dxos/react-client';\nimport { type Identity, useIdentity } from '@dxos/react-client/halo';\nimport { ButtonGroup, Clipboard, Input, useTranslation } from '@dxos/react-ui';\nimport {\n ControlItem,\n ControlItemInput,\n ControlPage,\n ControlSection,\n Form,\n type FormFieldMap,\n type FormUpdateMeta,\n} from '@dxos/react-ui-form';\nimport { EmojiPickerBlock, HuePicker } from '@dxos/react-ui-pickers';\nimport { hexToEmoji, hexToHue } from '@dxos/util';\n\nimport { meta } from '../meta';\n\n// TOOD(burdon): Factor out?\n// TODO(wittjosiah): Integrate annotations with translations.\nconst UserProfile = Schema.Struct({\n did: Schema.String.annotations({ title: 'DID' }),\n displayName: Schema.String.annotations({ title: 'Display name' }),\n emoji: Schema.String.annotations({ title: 'Avatar' }),\n hue: Schema.String.annotations({ title: 'Color' }),\n});\n\ntype UserProfile = Schema.Schema.Type<typeof UserProfile>;\n\n// TODO(thure): Factor out?\nconst getDefaultHueValue = (identity: Identity | null) => hexToHue(identity?.identityKey.toHex() ?? '0');\nconst getHueValue = (identity: Identity | null) => identity?.profile?.data?.hue || getDefaultHueValue(identity);\nconst getDefaultEmojiValue = (identity: Identity | null) => hexToEmoji(identity?.identityKey.toHex() ?? '0');\nconst getEmojiValue = (identity: Identity | null) => identity?.profile?.data?.emoji || getDefaultEmojiValue(identity);\n\nexport const ProfileContainer = () => {\n const { t } = useTranslation(meta.id);\n const client = useClient();\n const identity = useIdentity();\n const [displayName, setDisplayNameDirectly] = useState(identity?.profile?.displayName ?? '');\n const [emoji, setEmojiDirectly] = useState<string>(getEmojiValue(identity));\n const [hue, setHueDirectly] = useState<string>(getHueValue(identity));\n\n const updateProfile = useMemo(\n () =>\n debounce(\n (profile: Partial<UserProfile>) =>\n client.halo.updateProfile({\n displayName: profile.displayName,\n data: {\n emoji: profile.emoji,\n hue: profile.hue,\n },\n }),\n 2_000,\n ),\n [],\n );\n\n const handleChange = useCallback(\n (profile: Partial<UserProfile>, meta: FormUpdateMeta<UserProfile>) => {\n for (const [path, changed] of Object.entries(meta.changed)) {\n if (changed) {\n switch (path) {\n case 'displayName':\n setDisplayNameDirectly(profile.displayName ?? '');\n break;\n case 'emoji':\n setEmojiDirectly(profile.emoji ?? getDefaultEmojiValue(identity));\n break;\n case 'hue':\n setHueDirectly(profile.hue ?? getDefaultHueValue(identity));\n break;\n default:\n break;\n }\n }\n }\n\n void updateProfile(profile);\n },\n [identity],\n );\n\n const values = useMemo(\n () => ({\n did: identity?.did,\n displayName,\n emoji,\n hue,\n }),\n [identity, displayName, emoji, hue],\n );\n\n // TODO(wittjosiah): Integrate descriptions with the form schema.\n const fieldMap = useMemo<FormFieldMap>(\n () => ({\n displayName: ({ type, label, getValue, onValueChange }) => {\n const handleChange = useCallback(\n ({ target: { value } }: ChangeEvent<HTMLInputElement>) => onValueChange(type, value),\n [onValueChange, type],\n );\n\n return (\n <ControlItemInput title={label} description={t('display name description')}>\n <Input.TextInput\n value={getValue()}\n onChange={handleChange}\n placeholder={t('display name input placeholder')}\n classNames='min-is-64'\n />\n </ControlItemInput>\n );\n },\n emoji: ({ type, label, getValue, onValueChange }) => {\n const handleChange = useCallback((nextEmoji: string) => onValueChange(type, nextEmoji), [onValueChange, type]);\n const handleEmojiReset = useCallback(\n () => onValueChange(type, getDefaultEmojiValue(identity)),\n [onValueChange, type],\n );\n\n return (\n <ControlItem title={label} description={t('icon description')}>\n <EmojiPickerBlock\n triggerVariant='default'\n emoji={getValue()}\n onChangeEmoji={handleChange}\n onClickClear={handleEmojiReset}\n classNames='justify-self-end'\n />\n </ControlItem>\n );\n },\n hue: ({ type, label, getValue, onValueChange }) => {\n const handleChange = useCallback((nextHue: string) => onValueChange(type, nextHue), [onValueChange, type]);\n const handleHueReset = useCallback(\n () => onValueChange(type, getDefaultHueValue(identity)),\n [onValueChange, type],\n );\n\n return (\n <ControlItem title={label} description={t('hue description')}>\n <div role='none' className='flex justify-self-end'>\n <HuePicker value={getValue()} onChange={handleChange} onReset={handleHueReset} />\n </div>\n </ControlItem>\n );\n },\n // TODO(wittjosiah): We need text input annotations for disabled and copyable.\n did: ({ label, getValue }) => {\n return (\n <ControlItemInput title={label} description={t('did description')}>\n <ButtonGroup>\n <Input.TextInput value={getValue()} disabled classNames='min-is-64' />\n <Clipboard.IconButton value={getValue() ?? ''} />\n </ButtonGroup>\n </ControlItemInput>\n );\n },\n }),\n [t],\n );\n\n return (\n <ControlPage>\n <Clipboard.Provider>\n <ControlSection title={t('profile label')} description={t('profile description')}>\n <Form.Root schema={UserProfile} values={values} fieldMap={fieldMap} onValuesChanged={handleChange}>\n <Form.Content>\n <Form.FieldSet classNames='container-max-width grid grid-cols-1 md:grid-cols-[1fr_min-content]' />\n </Form.Content>\n </Form.Root>\n </ControlSection>\n </Clipboard.Provider>\n </ControlPage>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useCallback, useState } from 'react';\n\nimport { AlertDialog, Button, Clipboard, Input, useTranslation } from '@dxos/react-ui';\n\nimport { meta } from '../meta';\n\nexport type RecoveryCodeDialogProps = {\n code: string;\n};\n\nexport const RecoveryCodeDialog = ({ code }: RecoveryCodeDialogProps) => {\n const { t } = useTranslation(meta.id);\n const [confirmation, setConfirmation] = useState(false);\n\n const handleConfirmation = useCallback((checked: boolean) => setConfirmation(checked), []);\n\n return (\n <AlertDialog.Content classNames='bs-content min-bs-[15rem] max-bs-full md:max-is-[40rem] overflow-hidden'>\n <AlertDialog.Title>{t('recovery code dialog title')}</AlertDialog.Title>\n <p className='plb-4'>{t('recovery code dialog description')}</p>\n <Clipboard.Provider>\n <Code code={code} />\n </Clipboard.Provider>\n <div className='flex flex-col plb-4 gap-2'>\n <p>{t('recovery code dialog warning 1')}</p>\n <p>{t('recovery code dialog warning 2')}</p>\n </div>\n <div className='flex items-center gap-2 pbe-4'>\n <Input.Root>\n <Input.Checkbox\n data-testid='recoveryCode.confirm'\n checked={confirmation}\n onCheckedChange={handleConfirmation}\n />\n <Input.Label>{t('recovery code confirmation label')}</Input.Label>\n </Input.Root>\n </div>\n <div className='flex justify-end'>\n <AlertDialog.Action asChild>\n <Button data-testid='recoveryCode.continue' variant='primary' disabled={!confirmation}>\n {t('continue label')}\n </Button>\n </AlertDialog.Action>\n </div>\n </AlertDialog.Content>\n );\n};\n\nconst Code = ({ code }: { code: string }) => {\n const words = code.split(' ');\n return (\n <div className='relative p-2 border border-separator rounded group'>\n <Clipboard.IconButton value={code} classNames='absolute top-2 right-2 invisible group-hover:visible' />\n <div className='grid grid-cols-4'>\n {words.map((word, i) => (\n <div key={i} className='flex items-center p-2 gap-2'>\n <div className='is-4 text-xs text-center text-subdued'>{i + 1}</div>\n <div className='text-sm'>{word}</div>\n </div>\n ))}\n </div>\n </div>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useOperationInvoker } from '@dxos/app-framework/react';\nimport { useCredentials } from '@dxos/react-client/halo';\nimport { Icon, IconButton, List, ListItem, Message, useTranslation } from '@dxos/react-ui';\nimport { ControlGroup, ControlItem, ControlPage, ControlSection } from '@dxos/react-ui-form';\n\nimport { meta } from '../meta';\nimport { ClientOperation } from '../types';\n\nexport const MANAGE_CREDENTIALS_DIALOG = `${meta.id}/ManageCredentialsDialog`;\n\nexport const RecoveryCredentialsContainer = () => {\n const { t } = useTranslation(meta.id);\n const { invokePromise } = useOperationInvoker();\n const credentials = useCredentials();\n const recoveryCredentials = credentials.filter(\n (credential) => credential.subject.assertion['@type'] === 'dxos.halo.credentials.IdentityRecovery',\n );\n\n return (\n <ControlPage>\n <ControlSection title={t('recovery setup dialog title')} description={t('recovery setup dialog description')}>\n <ControlGroup>\n <ControlItem title={t('create passkey label')} description={t('create passkey description')}>\n <IconButton\n label={t('create passkey label')}\n icon='ph--key--duotone'\n variant='primary'\n onClick={() => invokePromise(ClientOperation.CreatePasskey)}\n />\n </ControlItem>\n <ControlItem title={t('create recovery code label')} description={t('create recovery code description')}>\n <IconButton\n label={t('create recovery code label')}\n icon='ph--receipt--duotone'\n variant='default'\n onClick={() => invokePromise(ClientOperation.CreateRecoveryCode)}\n />\n </ControlItem>\n </ControlGroup>\n </ControlSection>\n <ControlSection title={t('credentials list label')}>\n {recoveryCredentials.length < 1 ? (\n <Message.Root valence='error' classNames='container-max-width'>\n <Message.Title icon='ph--shield-warning--duotone'>{t('no credentials title')}</Message.Title>\n <Message.Content>{t('no credentials message')}</Message.Content>\n </Message.Root>\n ) : (\n <List classNames='container-max-width pli-2'>\n {recoveryCredentials.map((credential) => (\n <ListItem.Root key={credential.id?.toHex()}>\n <ListItem.Endcap>\n <Icon icon='ph--key--regular' />\n </ListItem.Endcap>\n <ListItem.Heading>{credential.issuanceDate.toLocaleString()}</ListItem.Heading>\n </ListItem.Root>\n ))}\n </List>\n )}\n </ControlSection>\n </ControlPage>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React, { useCallback } from 'react';\n\nimport { Capability, type CapabilityManager, Common } from '@dxos/app-framework';\nimport { useOperationInvoker } from '@dxos/app-framework/react';\nimport { runAndForwardErrors } from '@dxos/effect';\nimport { useClient } from '@dxos/react-client';\nimport { Dialog, useTranslation } from '@dxos/react-ui';\nimport { ConfirmReset, type ConfirmResetProps } from '@dxos/shell/react';\n\nimport { meta } from '../meta';\nimport { type ClientPluginOptions } from '../types';\n\nexport type ResetDialogProps = Pick<ConfirmResetProps, 'mode'> &\n Pick<ClientPluginOptions, 'onReset'> & {\n capabilityManager: CapabilityManager.CapabilityManager;\n };\n\nexport const ResetDialog = ({ mode, onReset, capabilityManager }: ResetDialogProps) => {\n const { t } = useTranslation(meta.id);\n const { invokePromise } = useOperationInvoker();\n const client = useClient();\n\n const handleReset = useCallback(async () => {\n await client.reset();\n const target =\n mode === 'join new identity' ? 'deviceInvitation' : mode === 'recover' ? 'recoverIdentity' : undefined;\n if (onReset) {\n await runAndForwardErrors(onReset({ target }).pipe(Effect.provideService(Capability.Service, capabilityManager)));\n }\n }, [client, mode, onReset, capabilityManager]);\n\n const handleCancel = useCallback(() => {\n void invokePromise(Common.LayoutOperation.UpdateDialog, { state: false });\n }, [invokePromise]);\n\n // TODO(wittjosiah): Add the sr-only translations.\n // TODO(wittjosiah): Add missing descriptions to other dialogs.\n return (\n <Dialog.Content>\n <Dialog.Title classNames='sr-only'>{t('reset dialog title')}</Dialog.Title>\n <Dialog.Description classNames='sr-only'>{t('reset dialog description')}</Dialog.Description>\n <ConfirmReset active mode={mode} onConfirm={handleReset} onCancel={handleCancel} />\n </Dialog.Content>\n );\n};\n"],
5
- "mappings": ";;;;;;;;;;;;AAIA,YAAYA,aAAY;AACxB,OAAOC,YAAW;AAElB,SAASC,cAAAA,aAAYC,UAAAA,eAAc;;;ACHnC,OAAOC,SAASC,aAAaC,WAAWC,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AAA;IACAhB,QAAOE,cAAc;MACnBC,IAAIc;MACJX,MAAM;MACNC,QAAQ,CAACC,SAA4CA,KAAKE,cAAcO;MACxEP,WAAW,CAAC,EAAEF,KAAI,MAAsB,gBAAAG,OAAA,cAACO,YAAeV,KAAKd,KAAK;IACpE,CAAA;IACAM,QAAOE,cAAc;MACnBC,IAAIgB;MACJb,MAAM;MACNC,QAAQ,CAACC,SAAqDA,KAAKE,cAAcS;MACjFT,WAAW,CAAC,EAAEF,KAAI,MAAsB,gBAAAG,OAAA,cAACS,oBAAuBZ,KAAKd,KAAK;IAC5E,CAAA;IACAM,QAAOE,cAAc;MACnBC,IAAIkB;MACJf,MAAM;MACNC,QAAQ,CAACC,SAA8CA,KAAKE,cAAcW;MAC1EX,WAAW,CAAC,EAAEF,KAAI,MAChB,gBAAAG,OAAA,cAACW,aAAAA;QAAa,GAAGd,KAAKd;QAAOE;QAAkBC;;IAEnD,CAAA;GACD;AACH,CAAA,CAAA;",
6
- "names": ["Effect", "React", "Capability", "Common", "React", "useCallback", "useEffect", "useState", "QR", "useOperationInvoker", "log", "useClient", "useMulticastObservable", "useDevices", "Invitation", "InvitationEncoder", "useNetworkStatus", "Button", "Clipboard", "Icon", "IconButton", "List", "useId", "useTranslation", "ControlFrame", "ControlFrameItem", "ControlGroup", "ControlItem", "ControlPage", "ControlSection", "translationKey", "AuthCode", "Centered", "DeviceListItem", "Emoji", "Viewport", "osTranslations", "hexToEmoji", "DevicesContainer", "createInvitationUrl", "t", "useTranslation", "translationKey", "invokePromise", "useOperationInvoker", "devices", "useDevices", "swarm", "connectionState", "useNetworkStatus", "handleResetStorage", "useCallback", "ClientOperation", "ResetStorage", "handleRecover", "mode", "handleJoinNewIdentity", "Clipboard", "Provider", "ControlPage", "ControlSection", "title", "ns", "meta", "id", "description", "ControlFrame", "ControlFrameItem", "List", "map", "device", "DeviceListItem", "key", "deviceKey", "toHex", "DeviceInvitation", "ControlGroup", "ControlItem", "Button", "variant", "onClick", "data-testid", "props", "client", "useClient", "invitation", "setInvitation", "useState", "onInvitationCreate", "halo", "share", "config", "values", "runtime", "app", "env", "DX_ENVIRONMENT", "subscription", "subscribe", "invitationCode", "InvitationEncoder", "encode", "state", "Invitation", "State", "CONNECTING", "log", "info", "JSON", "stringify", "authCode", "unsubscribe", "onInvitationDone", "undefined", "DeviceInvitationImpl", "InvitationSection", "invitationObservable", "useMulticastObservable", "url", "useEffect", "SUCCESS", "invitationId", "activeView", "CANCELLED", "READY_FOR_AUTHENTICATION", "p", "className", "IconButton", "icon", "label", "disabled", "classNames", "Viewport", "Root", "Views", "View", "InvitationComplete", "statusValue", "InvitationAuthCode", "code", "onCancel", "InvitationQR", "osTranslations", "qrLabel", "useId", "emoji", "hexToEmoji", "div", "role", "QR", "rounding", "backgroundColor", "color", "aria-labelledby", "errorCorrectionLevel", "cutout", "Centered", "Emoji", "text", "span", "value", "AuthCode", "large", "Icon", "size", "React", "useCallback", "Common", "useOperationInvoker", "ObservabilityOperation", "Dialog", "useTranslation", "JoinPanel", "osTranslations", "JoinDialog", "props", "invokePromise", "useOperationInvoker", "t", "useTranslation", "meta", "id", "handleCancelResetStorage", "useCallback", "ClientOperation", "ShareIdentity", "handleDone", "result", "identityKey", "Promise", "all", "Common", "LayoutOperation", "UpdateDialog", "state", "ObservabilityOperation", "SendEvent", "name", "initialDisposition", "React", "Dialog", "Content", "Title", "classNames", "ns", "osTranslations", "JoinPanel", "mode", "exitActionParent", "Close", "asChild", "doneActionParent", "onCancelResetStorage", "onDone", "Schema", "React", "useCallback", "useMemo", "useState", "debounce", "useClient", "useIdentity", "ButtonGroup", "Clipboard", "Input", "useTranslation", "ControlItem", "ControlItemInput", "ControlPage", "ControlSection", "Form", "EmojiPickerBlock", "HuePicker", "hexToEmoji", "hexToHue", "UserProfile", "Struct", "did", "String", "annotations", "title", "displayName", "emoji", "hue", "getDefaultHueValue", "identity", "hexToHue", "identityKey", "toHex", "getHueValue", "profile", "data", "getDefaultEmojiValue", "hexToEmoji", "getEmojiValue", "ProfileContainer", "t", "useTranslation", "meta", "id", "client", "useClient", "useIdentity", "setDisplayNameDirectly", "useState", "setEmojiDirectly", "setHueDirectly", "updateProfile", "useMemo", "debounce", "halo", "handleChange", "useCallback", "path", "changed", "Object", "entries", "values", "fieldMap", "type", "label", "getValue", "onValueChange", "target", "value", "React", "ControlItemInput", "description", "Input", "TextInput", "onChange", "placeholder", "classNames", "nextEmoji", "handleEmojiReset", "ControlItem", "EmojiPickerBlock", "triggerVariant", "onChangeEmoji", "onClickClear", "nextHue", "handleHueReset", "div", "role", "className", "HuePicker", "onReset", "ButtonGroup", "disabled", "Clipboard", "IconButton", "ControlPage", "Provider", "ControlSection", "Form", "Root", "schema", "onValuesChanged", "Content", "FieldSet", "React", "useCallback", "useState", "AlertDialog", "Button", "Clipboard", "Input", "useTranslation", "RecoveryCodeDialog", "code", "t", "useTranslation", "meta", "id", "confirmation", "setConfirmation", "useState", "handleConfirmation", "useCallback", "checked", "React", "AlertDialog", "Content", "classNames", "Title", "p", "className", "Clipboard", "Provider", "Code", "div", "Input", "Root", "Checkbox", "data-testid", "onCheckedChange", "Label", "Action", "asChild", "Button", "variant", "disabled", "words", "split", "IconButton", "value", "map", "word", "i", "key", "React", "useOperationInvoker", "useCredentials", "Icon", "IconButton", "List", "ListItem", "Message", "useTranslation", "ControlGroup", "ControlItem", "ControlPage", "ControlSection", "MANAGE_CREDENTIALS_DIALOG", "meta", "id", "RecoveryCredentialsContainer", "t", "useTranslation", "invokePromise", "useOperationInvoker", "credentials", "useCredentials", "recoveryCredentials", "filter", "credential", "subject", "assertion", "React", "ControlPage", "ControlSection", "title", "description", "ControlGroup", "ControlItem", "IconButton", "label", "icon", "variant", "onClick", "ClientOperation", "CreatePasskey", "CreateRecoveryCode", "length", "Message", "Root", "valence", "classNames", "Title", "Content", "List", "map", "ListItem", "key", "toHex", "Endcap", "Icon", "Heading", "issuanceDate", "toLocaleString", "Effect", "React", "useCallback", "Capability", "Common", "useOperationInvoker", "runAndForwardErrors", "useClient", "Dialog", "useTranslation", "ConfirmReset", "ResetDialog", "mode", "onReset", "capabilityManager", "t", "useTranslation", "meta", "id", "invokePromise", "useOperationInvoker", "client", "useClient", "handleReset", "useCallback", "reset", "target", "undefined", "runAndForwardErrors", "pipe", "provideService", "Capability", "Service", "handleCancel", "Common", "LayoutOperation", "UpdateDialog", "state", "React", "Dialog", "Content", "Title", "classNames", "Description", "ConfirmReset", "active", "onConfirm", "onCancel", "Capability", "makeModule", "fnUntraced", "props", "createInvitationUrl", "onReset", "capabilityManager", "Service", "contributes", "Common", "ReactSurface", "createSurface", "id", "Account", "Profile", "role", "filter", "data", "subject", "component", "React", "ProfileContainer", "Devices", "DevicesContainer", "Security", "RecoveryCredentialsContainer", "JOIN_DIALOG", "JoinDialog", "RECOVERY_CODE_DIALOG", "RecoveryCodeDialog", "RESET_DIALOG", "ResetDialog"]
7
- }
@@ -1,26 +0,0 @@
1
- import {
2
- ClientCapabilities
3
- } from "./chunk-4BZGRIFS.mjs";
4
-
5
- // src/capabilities/schema-defs/schema-defs.ts
6
- import * as Effect from "effect/Effect";
7
- import { Capability, Common } from "@dxos/app-framework";
8
- var schema_defs_default = Capability.makeModule(Effect.fnUntraced(function* () {
9
- const registry = yield* Capability.get(Common.Capability.AtomRegistry);
10
- const client = yield* Capability.get(ClientCapabilities.Client);
11
- const schemasAtom = yield* Capability.atom(Common.Capability.Schema);
12
- let previous = [];
13
- const cancel = registry.subscribe(schemasAtom, async (_schemas) => {
14
- const schemas = Array.from(new Set(_schemas.flat()));
15
- const newSchemas = schemas.filter((schema) => !previous.includes(schema));
16
- previous = schemas;
17
- await client.addTypes(newSchemas);
18
- }, {
19
- immediate: true
20
- });
21
- return Capability.contributes(Common.Capability.Null, null, () => Effect.sync(() => cancel()));
22
- }));
23
- export {
24
- schema_defs_default as default
25
- };
26
- //# sourceMappingURL=schema-defs-O7VLP745.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/schema-defs/schema-defs.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability, Common } from '@dxos/app-framework';\nimport { type Type } from '@dxos/echo';\n\nimport { ClientCapabilities } from '../../types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const registry = yield* Capability.get(Common.Capability.AtomRegistry);\n const client = yield* Capability.get(ClientCapabilities.Client);\n const schemasAtom = yield* Capability.atom(Common.Capability.Schema);\n\n // TODO(wittjosiah): Unregister schemas when they are disabled.\n let previous: Type.Entity.Any[] = [];\n const cancel = registry.subscribe(\n schemasAtom,\n async (_schemas: any[]) => {\n // TODO(wittjosiah): This doesn't seem to de-dupe schemas as expected.\n const schemas = Array.from(new Set(_schemas.flat())) as Type.Entity.Any[];\n // TODO(wittjosiah): Filter out schemas which the client has already registered.\n const newSchemas = schemas.filter((schema) => !previous.includes(schema));\n previous = schemas;\n await client.addTypes(newSchemas);\n },\n { immediate: true },\n );\n\n return Capability.contributes(Common.Capability.Null, null, () => Effect.sync(() => cancel()));\n }),\n);\n"],
5
- "mappings": ";;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,YAAYC,cAAc;AAKnC,IAAA,sBAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,QAAMC,WAAW,OAAOH,WAAWI,IAAIC,OAAOL,WAAWM,YAAY;AACrE,QAAMC,SAAS,OAAOP,WAAWI,IAAII,mBAAmBC,MAAM;AAC9D,QAAMC,cAAc,OAAOV,WAAWW,KAAKN,OAAOL,WAAWY,MAAM;AAGnE,MAAIC,WAA8B,CAAA;AAClC,QAAMC,SAASX,SAASY,UACtBL,aACA,OAAOM,aAAAA;AAEL,UAAMC,UAAUC,MAAMC,KAAK,IAAIC,IAAIJ,SAASK,KAAI,CAAA,CAAA;AAEhD,UAAMC,aAAaL,QAAQM,OAAO,CAACC,WAAW,CAACX,SAASY,SAASD,MAAAA,CAAAA;AACjEX,eAAWI;AACX,UAAMV,OAAOmB,SAASJ,UAAAA;EACxB,GACA;IAAEK,WAAW;EAAK,CAAA;AAGpB,SAAO3B,WAAW4B,YAAYvB,OAAOL,WAAW6B,MAAM,MAAM,MAAaC,YAAK,MAAMhB,OAAAA,CAAAA,CAAAA;AACtF,CAAA,CAAA;",
6
- "names": ["Effect", "Capability", "Common", "Capability", "makeModule", "fnUntraced", "registry", "get", "Common", "AtomRegistry", "client", "ClientCapabilities", "Client", "schemasAtom", "atom", "Schema", "previous", "cancel", "subscribe", "_schemas", "schemas", "Array", "from", "Set", "flat", "newSchemas", "filter", "schema", "includes", "addTypes", "immediate", "contributes", "Null", "sync"]
7
- }
@@ -1,119 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- Account,
4
- ClientCapabilities,
5
- ClientOperation,
6
- meta
7
- } from "./chunk-JAF64TFQ.mjs";
8
-
9
- // src/capabilities/app-graph-builder/app-graph-builder.ts
10
- import * as Effect from "effect/Effect";
11
- import { Capability, Common } from "@dxos/app-framework";
12
- import { Operation } from "@dxos/operation";
13
- import { CreateAtom, GraphBuilder, NodeMatcher } from "@dxos/plugin-graph";
14
- import { ConnectionState } from "@dxos/react-client/mesh";
15
- var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
16
- const extensions = yield* GraphBuilder.createExtension({
17
- id: meta.id,
18
- match: NodeMatcher.whenRoot,
19
- actions: () => Effect.succeed([
20
- {
21
- id: `${meta.id}/open-user-account`,
22
- data: () => Operation.invoke(ClientOperation.ShareIdentity),
23
- properties: {
24
- label: [
25
- "open user account label",
26
- {
27
- ns: meta.id
28
- }
29
- ],
30
- icon: "ph--user--regular",
31
- disposition: "menu",
32
- keyBinding: {
33
- macos: "meta+shift+.",
34
- // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.
35
- windows: "alt+shift+.",
36
- linux: "alt+shift+>"
37
- }
38
- }
39
- }
40
- ]),
41
- connector: Effect.fnUntraced(function* (node, get) {
42
- const client = yield* Capability.get(ClientCapabilities.Client);
43
- const identity = get(CreateAtom.fromObservable(client.halo.identity));
44
- const status = get(CreateAtom.fromObservable(client.mesh.networkStatus));
45
- return [
46
- {
47
- id: Account.id,
48
- type: meta.id,
49
- properties: {
50
- label: [
51
- "account label",
52
- {
53
- ns: meta.id
54
- }
55
- ],
56
- icon: "ph--user--regular",
57
- disposition: "user-account",
58
- testId: "clientPlugin.account",
59
- // NOTE: This currently needs to be the identity key because the fallback is generated from hex.
60
- userId: identity?.identityKey.toHex(),
61
- hue: identity?.profile?.data?.hue,
62
- emoji: identity?.profile?.data?.emoji,
63
- status: status.swarm === ConnectionState.OFFLINE ? "error" : "active"
64
- },
65
- nodes: [
66
- {
67
- id: Account.Profile,
68
- data: Account.Profile,
69
- type: meta.id,
70
- properties: {
71
- label: [
72
- "profile label",
73
- {
74
- ns: meta.id
75
- }
76
- ],
77
- icon: "ph--user--regular"
78
- }
79
- },
80
- {
81
- id: Account.Devices,
82
- data: Account.Devices,
83
- type: meta.id,
84
- properties: {
85
- label: [
86
- "devices label",
87
- {
88
- ns: meta.id
89
- }
90
- ],
91
- icon: "ph--devices--regular",
92
- testId: "clientPlugin.devices"
93
- }
94
- },
95
- {
96
- id: Account.Security,
97
- data: Account.Security,
98
- type: meta.id,
99
- properties: {
100
- label: [
101
- "security label",
102
- {
103
- ns: meta.id
104
- }
105
- ],
106
- icon: "ph--key--regular"
107
- }
108
- }
109
- ]
110
- }
111
- ];
112
- })
113
- });
114
- return Capability.contributes(Common.Capability.AppGraphBuilder, extensions);
115
- }));
116
- export {
117
- app_graph_builder_default as default
118
- };
119
- //# sourceMappingURL=app-graph-builder-2PIYVUNC.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/app-graph-builder/app-graph-builder.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability, Common } from '@dxos/app-framework';\nimport { Operation } from '@dxos/operation';\nimport { CreateAtom, GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';\nimport { ConnectionState } from '@dxos/react-client/mesh';\n\nimport { meta } from '../../meta';\nimport { Account, ClientCapabilities, ClientOperation } from '../../types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const extensions = yield* GraphBuilder.createExtension({\n id: meta.id,\n match: NodeMatcher.whenRoot,\n actions: () =>\n Effect.succeed([\n {\n id: `${meta.id}/open-user-account`,\n data: () => Operation.invoke(ClientOperation.ShareIdentity),\n properties: {\n label: ['open user account label', { ns: meta.id }],\n icon: 'ph--user--regular',\n disposition: 'menu',\n keyBinding: {\n macos: 'meta+shift+.',\n // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.\n windows: 'alt+shift+.',\n linux: 'alt+shift+>',\n },\n },\n },\n ]),\n connector: Effect.fnUntraced(function* (node, get) {\n const client = yield* Capability.get(ClientCapabilities.Client);\n const identity = get(CreateAtom.fromObservable(client.halo.identity));\n const status = get(CreateAtom.fromObservable(client.mesh.networkStatus));\n\n return [\n {\n id: Account.id,\n type: meta.id,\n properties: {\n label: ['account label', { ns: meta.id }],\n icon: 'ph--user--regular',\n disposition: 'user-account',\n testId: 'clientPlugin.account',\n // NOTE: This currently needs to be the identity key because the fallback is generated from hex.\n userId: identity?.identityKey.toHex(),\n hue: identity?.profile?.data?.hue,\n emoji: identity?.profile?.data?.emoji,\n status: status.swarm === ConnectionState.OFFLINE ? 'error' : 'active',\n },\n nodes: [\n {\n id: Account.Profile,\n data: Account.Profile,\n type: meta.id,\n properties: {\n label: ['profile label', { ns: meta.id }],\n icon: 'ph--user--regular',\n },\n },\n {\n id: Account.Devices,\n data: Account.Devices,\n type: meta.id,\n properties: {\n label: ['devices label', { ns: meta.id }],\n icon: 'ph--devices--regular',\n testId: 'clientPlugin.devices',\n },\n },\n {\n id: Account.Security,\n data: Account.Security,\n type: meta.id,\n properties: {\n label: ['security label', { ns: meta.id }],\n icon: 'ph--key--regular',\n },\n },\n ],\n },\n ];\n }),\n });\n\n return Capability.contributes(Common.Capability.AppGraphBuilder, extensions);\n }),\n);\n"],
5
- "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,YAAYC,cAAc;AACnC,SAASC,iBAAiB;AAC1B,SAASC,YAAYC,cAAcC,mBAAmB;AACtD,SAASC,uBAAuB;AAKhC,IAAA,4BAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,QAAMC,aAAa,OAAOC,aAAaC,gBAAgB;IACrDC,IAAIC,KAAKD;IACTE,OAAOC,YAAYC;IACnBC,SAAS,MACAC,eAAQ;MACb;QACEN,IAAI,GAAGC,KAAKD,EAAE;QACdO,MAAM,MAAMC,UAAUC,OAAOC,gBAAgBC,aAAa;QAC1DC,YAAY;UACVC,OAAO;YAAC;YAA2B;cAAEC,IAAIb,KAAKD;YAAG;;UACjDe,MAAM;UACNC,aAAa;UACbC,YAAY;YACVC,OAAO;;YAEPC,SAAS;YACTC,OAAO;UACT;QACF;MACF;KACD;IACHC,WAAkBzB,kBAAW,WAAW0B,MAAMC,KAAG;AAC/C,YAAMC,SAAS,OAAO9B,WAAW6B,IAAIE,mBAAmBC,MAAM;AAC9D,YAAMC,WAAWJ,IAAIK,WAAWC,eAAeL,OAAOM,KAAKH,QAAQ,CAAA;AACnE,YAAMI,SAASR,IAAIK,WAAWC,eAAeL,OAAOQ,KAAKC,aAAa,CAAA;AAEtE,aAAO;QACL;UACEjC,IAAIkC,QAAQlC;UACZmC,MAAMlC,KAAKD;UACXY,YAAY;YACVC,OAAO;cAAC;cAAiB;gBAAEC,IAAIb,KAAKD;cAAG;;YACvCe,MAAM;YACNC,aAAa;YACboB,QAAQ;;YAERC,QAAQV,UAAUW,YAAYC,MAAAA;YAC9BC,KAAKb,UAAUc,SAASlC,MAAMiC;YAC9BE,OAAOf,UAAUc,SAASlC,MAAMmC;YAChCX,QAAQA,OAAOY,UAAUC,gBAAgBC,UAAU,UAAU;UAC/D;UACAC,OAAO;YACL;cACE9C,IAAIkC,QAAQa;cACZxC,MAAM2B,QAAQa;cACdZ,MAAMlC,KAAKD;cACXY,YAAY;gBACVC,OAAO;kBAAC;kBAAiB;oBAAEC,IAAIb,KAAKD;kBAAG;;gBACvCe,MAAM;cACR;YACF;YACA;cACEf,IAAIkC,QAAQc;cACZzC,MAAM2B,QAAQc;cACdb,MAAMlC,KAAKD;cACXY,YAAY;gBACVC,OAAO;kBAAC;kBAAiB;oBAAEC,IAAIb,KAAKD;kBAAG;;gBACvCe,MAAM;gBACNqB,QAAQ;cACV;YACF;YACA;cACEpC,IAAIkC,QAAQe;cACZ1C,MAAM2B,QAAQe;cACdd,MAAMlC,KAAKD;cACXY,YAAY;gBACVC,OAAO;kBAAC;kBAAkB;oBAAEC,IAAIb,KAAKD;kBAAG;;gBACxCe,MAAM;cACR;YACF;;QAEJ;;IAEJ,CAAA;EACF,CAAA;AAEA,SAAOrB,WAAWwD,YAAYC,OAAOzD,WAAW0D,iBAAiBvD,UAAAA;AACnE,CAAA,CAAA;",
6
- "names": ["Effect", "Capability", "Common", "Operation", "CreateAtom", "GraphBuilder", "NodeMatcher", "ConnectionState", "Capability", "makeModule", "fnUntraced", "extensions", "GraphBuilder", "createExtension", "id", "meta", "match", "NodeMatcher", "whenRoot", "actions", "succeed", "data", "Operation", "invoke", "ClientOperation", "ShareIdentity", "properties", "label", "ns", "icon", "disposition", "keyBinding", "macos", "windows", "linux", "connector", "node", "get", "client", "ClientCapabilities", "Client", "identity", "CreateAtom", "fromObservable", "halo", "status", "mesh", "networkStatus", "Account", "type", "testId", "userId", "identityKey", "toHex", "hue", "profile", "emoji", "swarm", "ConnectionState", "OFFLINE", "nodes", "Profile", "Devices", "Security", "contributes", "Common", "AppGraphBuilder"]
7
- }
@@ -1,20 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
-
3
- // src/capabilities/client/index.ts
4
- import { Capability } from "@dxos/app-framework";
5
- var Client = Capability.lazy("Client", () => import("./client-FFPK5UFP.mjs"));
6
-
7
- // src/capabilities/operation-resolver/index.ts
8
- import { Capability as Capability2 } from "@dxos/app-framework";
9
- var OperationResolver = Capability2.lazy("OperationResolver", () => import("./operation-resolver-VW5R2BE4.mjs"));
10
-
11
- // src/capabilities/schema-defs/index.ts
12
- import { Capability as Capability3 } from "@dxos/app-framework";
13
- var SchemaDefs = Capability3.lazy("SchemaDefs", () => import("./schema-defs-QLRGBIKY.mjs"));
14
-
15
- export {
16
- Client,
17
- OperationResolver,
18
- SchemaDefs
19
- };
20
- //# sourceMappingURL=chunk-BCELGXRI.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/client/index.ts", "../../../src/capabilities/operation-resolver/index.ts", "../../../src/capabilities/schema-defs/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const Client = Capability.lazy('Client', () => import('./client'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const OperationResolver = Capability.lazy('OperationResolver', () => import('./operation-resolver'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const SchemaDefs = Capability.lazy('SchemaDefs', () => import('./schema-defs'));\n"],
5
- "mappings": ";;;AAIA,SAASA,kBAAkB;AAEpB,IAAMC,SAASC,WAAWC,KAAK,UAAU,MAAM,OAAO,uBAAA,CAAA;;;ACF7D,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,oBAAoBC,YAAWC,KAAK,qBAAqB,MAAM,OAAO,mCAAA,CAAA;;;ACFnF,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,aAAaC,YAAWC,KAAK,cAAc,MAAM,OAAO,4BAAA,CAAA;",
6
- "names": ["Capability", "Client", "Capability", "lazy", "Capability", "OperationResolver", "Capability", "lazy", "Capability", "SchemaDefs", "Capability", "lazy"]
7
- }
@@ -1,295 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
-
3
- // src/types/capabilities.ts
4
- import { Capability } from "@dxos/app-framework";
5
-
6
- // src/meta.ts
7
- import { trim } from "@dxos/util";
8
- var meta = {
9
- id: "dxos.org/plugin/client",
10
- name: "Client",
11
- description: trim`
12
- Core client connectivity and peer-to-peer networking infrastructure.
13
- Manages identity, authentication, and real-time synchronization across devices.
14
- `
15
- };
16
-
17
- // src/types/capabilities.ts
18
- (function(ClientCapabilities2) {
19
- ClientCapabilities2.Client = Capability.make(`${meta.id}/capability/client`);
20
- ClientCapabilities2.Schema = Capability.make(`${meta.id}/capability/schema`);
21
- ClientCapabilities2.Migration = Capability.make(`${meta.id}/capability/migration`);
22
- })(ClientCapabilities || (ClientCapabilities = {}));
23
- var ClientCapabilities;
24
-
25
- // src/types/events.ts
26
- import { ActivationEvent } from "@dxos/app-framework";
27
- (function(ClientEvents2) {
28
- ClientEvents2.ClientReady = ActivationEvent.make(`${meta.id}/event/client-ready`);
29
- ClientEvents2.SetupSchema = ActivationEvent.make(`${meta.id}/event/setup-schema`);
30
- ClientEvents2.SetupMigration = ActivationEvent.make(`${meta.id}/event/setup-migration`);
31
- ClientEvents2.IdentityCreated = ActivationEvent.make(`${meta.id}/event/identity-created`);
32
- ClientEvents2.SpacesReady = ActivationEvent.make(`${meta.id}/event/spaces-ready`);
33
- })(ClientEvents || (ClientEvents = {}));
34
- var ClientEvents;
35
-
36
- // src/types/schema.ts
37
- import * as Schema from "effect/Schema";
38
- import { Capability as Capability2 } from "@dxos/app-framework";
39
- import { PublicKey } from "@dxos/client";
40
- import { Operation } from "@dxos/operation";
41
- var IdentitySchema = Schema.Struct({
42
- identityKey: Schema.instanceOf(PublicKey),
43
- spaceKey: Schema.optional(Schema.instanceOf(PublicKey)),
44
- profile: Schema.optional(Schema.Struct({
45
- displayName: Schema.optional(Schema.String),
46
- avatarCid: Schema.optional(Schema.String),
47
- data: Schema.optional(Schema.Record({
48
- key: Schema.String,
49
- value: Schema.Any
50
- }))
51
- }))
52
- });
53
- (function(ClientAction2) {
54
- const ProfileSchema = Schema.Struct({
55
- displayName: Schema.optional(Schema.String),
56
- avatarCid: Schema.optional(Schema.String),
57
- data: Schema.optional(Schema.Record({
58
- key: Schema.String,
59
- value: Schema.Any
60
- }))
61
- });
62
- class CreateIdentity extends Schema.TaggedClass()(`${meta.id}/action/create-identity`, {
63
- input: ProfileSchema,
64
- output: IdentitySchema
65
- }) {
66
- }
67
- ClientAction2.CreateIdentity = CreateIdentity;
68
- class JoinIdentity extends Schema.TaggedClass()(`${meta.id}/action/join-identity`, {
69
- input: Schema.Struct({
70
- invitationCode: Schema.optional(Schema.String)
71
- }),
72
- output: Schema.Void
73
- }) {
74
- }
75
- ClientAction2.JoinIdentity = JoinIdentity;
76
- class ShareIdentity extends Schema.TaggedClass()(`${meta.id}/action/share-identity`, {
77
- input: Schema.Void,
78
- output: Schema.Void
79
- }) {
80
- }
81
- ClientAction2.ShareIdentity = ShareIdentity;
82
- class RecoverIdentity extends Schema.TaggedClass()(`${meta.id}/action/recover-identity`, {
83
- input: Schema.Void,
84
- output: Schema.Void
85
- }) {
86
- }
87
- ClientAction2.RecoverIdentity = RecoverIdentity;
88
- class ResetStorage extends Schema.TaggedClass()(`${meta.id}/action/reset-storage`, {
89
- input: Schema.Struct({
90
- mode: Schema.optional(Schema.String)
91
- }),
92
- output: Schema.Void
93
- }) {
94
- }
95
- ClientAction2.ResetStorage = ResetStorage;
96
- class CreateAgent extends Schema.TaggedClass()(`${meta.id}/action/create-agent`, {
97
- input: Schema.Void,
98
- output: Schema.Void
99
- }) {
100
- }
101
- ClientAction2.CreateAgent = CreateAgent;
102
- class CreateRecoveryCode extends Schema.TaggedClass()(`${meta.id}/action/create-recovery-code`, {
103
- input: Schema.Void,
104
- output: Schema.Void
105
- }) {
106
- }
107
- ClientAction2.CreateRecoveryCode = CreateRecoveryCode;
108
- class CreatePasskey extends Schema.TaggedClass()(`${meta.id}/action/create-passkey`, {
109
- input: Schema.Void,
110
- output: Schema.Void
111
- }) {
112
- }
113
- ClientAction2.CreatePasskey = CreatePasskey;
114
- class RedeemPasskey extends Schema.TaggedClass()(`${meta.id}/action/redeem-passkey`, {
115
- input: Schema.Void,
116
- output: Schema.Void
117
- }) {
118
- }
119
- ClientAction2.RedeemPasskey = RedeemPasskey;
120
- class RedeemToken extends Schema.TaggedClass()(`${meta.id}/action/redeem-token`, {
121
- input: Schema.Struct({
122
- token: Schema.String
123
- }),
124
- output: Schema.Void
125
- }) {
126
- }
127
- ClientAction2.RedeemToken = RedeemToken;
128
- })(ClientAction || (ClientAction = {}));
129
- var CLIENT_OPERATION = `${meta.id}/operation`;
130
- (function(ClientOperation2) {
131
- const ProfileSchema = Schema.Struct({
132
- displayName: Schema.optional(Schema.String),
133
- avatarCid: Schema.optional(Schema.String),
134
- data: Schema.optional(Schema.Record({
135
- key: Schema.String,
136
- value: Schema.Any
137
- }))
138
- });
139
- ClientOperation2.CreateIdentity = Operation.make({
140
- meta: {
141
- key: `${CLIENT_OPERATION}/create-identity`,
142
- name: "Create Identity"
143
- },
144
- services: [
145
- Capability2.Service
146
- ],
147
- schema: {
148
- input: ProfileSchema,
149
- output: IdentitySchema
150
- }
151
- });
152
- ClientOperation2.JoinIdentity = Operation.make({
153
- meta: {
154
- key: `${CLIENT_OPERATION}/join-identity`,
155
- name: "Join Identity"
156
- },
157
- services: [
158
- Capability2.Service
159
- ],
160
- schema: {
161
- input: Schema.Struct({
162
- invitationCode: Schema.optional(Schema.String)
163
- }),
164
- output: Schema.Void
165
- }
166
- });
167
- ClientOperation2.ShareIdentity = Operation.make({
168
- meta: {
169
- key: `${CLIENT_OPERATION}/share-identity`,
170
- name: "Share Identity"
171
- },
172
- services: [
173
- Capability2.Service
174
- ],
175
- schema: {
176
- input: Schema.Void,
177
- output: Schema.Void
178
- }
179
- });
180
- ClientOperation2.RecoverIdentity = Operation.make({
181
- meta: {
182
- key: `${CLIENT_OPERATION}/recover-identity`,
183
- name: "Recover Identity"
184
- },
185
- services: [
186
- Capability2.Service
187
- ],
188
- schema: {
189
- input: Schema.Void,
190
- output: Schema.Void
191
- }
192
- });
193
- ClientOperation2.ResetStorage = Operation.make({
194
- meta: {
195
- key: `${CLIENT_OPERATION}/reset-storage`,
196
- name: "Reset Storage"
197
- },
198
- services: [
199
- Capability2.Service
200
- ],
201
- schema: {
202
- input: Schema.Struct({
203
- mode: Schema.optional(Schema.String)
204
- }),
205
- output: Schema.Void
206
- }
207
- });
208
- ClientOperation2.CreateAgent = Operation.make({
209
- meta: {
210
- key: `${CLIENT_OPERATION}/create-agent`,
211
- name: "Create Agent"
212
- },
213
- services: [
214
- Capability2.Service
215
- ],
216
- schema: {
217
- input: Schema.Void,
218
- output: Schema.Void
219
- }
220
- });
221
- ClientOperation2.CreateRecoveryCode = Operation.make({
222
- meta: {
223
- key: `${CLIENT_OPERATION}/create-recovery-code`,
224
- name: "Create Recovery Code"
225
- },
226
- services: [
227
- Capability2.Service
228
- ],
229
- schema: {
230
- input: Schema.Void,
231
- output: Schema.Void
232
- }
233
- });
234
- ClientOperation2.CreatePasskey = Operation.make({
235
- meta: {
236
- key: `${CLIENT_OPERATION}/create-passkey`,
237
- name: "Create Passkey"
238
- },
239
- services: [
240
- Capability2.Service
241
- ],
242
- schema: {
243
- input: Schema.Void,
244
- output: Schema.Void
245
- }
246
- });
247
- ClientOperation2.RedeemPasskey = Operation.make({
248
- meta: {
249
- key: `${CLIENT_OPERATION}/redeem-passkey`,
250
- name: "Redeem Passkey"
251
- },
252
- services: [
253
- Capability2.Service
254
- ],
255
- schema: {
256
- input: Schema.Void,
257
- output: Schema.Void
258
- }
259
- });
260
- ClientOperation2.RedeemToken = Operation.make({
261
- meta: {
262
- key: `${CLIENT_OPERATION}/redeem-token`,
263
- name: "Redeem Token"
264
- },
265
- services: [
266
- Capability2.Service
267
- ],
268
- schema: {
269
- input: Schema.Struct({
270
- token: Schema.String
271
- }),
272
- output: Schema.Void
273
- }
274
- });
275
- })(ClientOperation || (ClientOperation = {}));
276
- (function(Account2) {
277
- const _id = "dxos.org.plugin.client.account";
278
- Account2.id = `!${_id}`;
279
- Account2.Profile = `${_id}.profile`;
280
- Account2.Devices = `${_id}.devices`;
281
- Account2.Security = `${_id}.security`;
282
- })(Account || (Account = {}));
283
- var ClientAction;
284
- var ClientOperation;
285
- var Account;
286
-
287
- export {
288
- meta,
289
- ClientCapabilities,
290
- ClientEvents,
291
- ClientAction,
292
- ClientOperation,
293
- Account
294
- };
295
- //# sourceMappingURL=chunk-JAF64TFQ.mjs.map