@dxos/react-client 0.8.3 → 0.8.4-main.28f8d3d

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 (361) hide show
  1. package/.swc/plugins/v7_linux_x86_64_13.0.0/c614d7475354583212fbd7669acbae95b9832c305bf51bdaabe2e6de05abb6bf +0 -0
  2. package/dist/lib/browser/{chunk-AL2CUQ46.mjs → chunk-BXOLJYAY.mjs} +5 -5
  3. package/dist/lib/{node-esm/chunk-UYJUBYMU.mjs.map → browser/chunk-BXOLJYAY.mjs.map} +3 -3
  4. package/dist/lib/browser/{chunk-72QD3PXL.mjs → chunk-FQAPI3I4.mjs} +26 -26
  5. package/dist/lib/browser/chunk-FQAPI3I4.mjs.map +7 -0
  6. package/dist/lib/browser/devtools/index.mjs +6 -6
  7. package/dist/lib/browser/devtools/index.mjs.map +3 -3
  8. package/dist/lib/browser/echo/index.mjs +15 -15
  9. package/dist/lib/browser/echo/index.mjs.map +3 -3
  10. package/dist/lib/browser/halo/index.mjs +11 -9
  11. package/dist/lib/browser/halo/index.mjs.map +3 -3
  12. package/dist/lib/browser/index.mjs +2 -2
  13. package/dist/lib/browser/invitations/index.mjs +1 -1
  14. package/dist/lib/browser/mesh/index.mjs +3 -3
  15. package/dist/lib/browser/meta.json +1 -1
  16. package/dist/lib/browser/testing/index.mjs +11 -11
  17. package/dist/lib/browser/testing/index.mjs.map +3 -3
  18. package/dist/lib/browser/worker.mjs +1 -1
  19. package/dist/lib/node-esm/{chunk-UYJUBYMU.mjs → chunk-256IHY6F.mjs} +5 -5
  20. package/dist/lib/{browser/chunk-AL2CUQ46.mjs.map → node-esm/chunk-256IHY6F.mjs.map} +3 -3
  21. package/dist/lib/node-esm/{chunk-NBTZZNQ5.mjs → chunk-MNTJNI2M.mjs} +26 -26
  22. package/dist/lib/node-esm/chunk-MNTJNI2M.mjs.map +7 -0
  23. package/dist/lib/node-esm/devtools/index.mjs +6 -6
  24. package/dist/lib/node-esm/devtools/index.mjs.map +3 -3
  25. package/dist/lib/node-esm/echo/index.mjs +15 -15
  26. package/dist/lib/node-esm/echo/index.mjs.map +3 -3
  27. package/dist/lib/node-esm/halo/index.mjs +11 -9
  28. package/dist/lib/node-esm/halo/index.mjs.map +3 -3
  29. package/dist/lib/node-esm/index.mjs +2 -2
  30. package/dist/lib/node-esm/invitations/index.mjs +1 -1
  31. package/dist/lib/node-esm/mesh/index.mjs +3 -3
  32. package/dist/lib/node-esm/meta.json +1 -1
  33. package/dist/lib/node-esm/testing/index.mjs +11 -11
  34. package/dist/lib/node-esm/testing/index.mjs.map +3 -3
  35. package/dist/lib/node-esm/worker.mjs +1 -1
  36. package/dist/types/src/client/AgentHostingProvider.d.ts.map +1 -1
  37. package/dist/types/src/client/ClientProvider.d.ts.map +1 -1
  38. package/dist/types/src/echo/useSpaceInvitations.d.ts.map +1 -1
  39. package/dist/types/src/echo/useSyncState.d.ts +1 -1
  40. package/dist/types/src/echo/useSyncState.d.ts.map +1 -1
  41. package/dist/types/src/halo/Passkey.stories.d.ts.map +1 -1
  42. package/dist/types/src/halo/useHaloInvitations.d.ts.map +1 -1
  43. package/dist/types/src/playwright/{playwright.config.d.cts → playwright.config.d.ts} +1 -1
  44. package/dist/types/src/playwright/playwright.config.d.ts.map +1 -0
  45. package/dist/types/src/testing/ClientRepeater.d.ts.map +1 -1
  46. package/dist/types/src/testing/ClientRepeater.stories.d.ts.map +1 -1
  47. package/dist/types/src/testing/withClientProvider.d.ts +1 -1
  48. package/dist/types/src/testing/withClientProvider.d.ts.map +1 -1
  49. package/dist/types/src/testing/withClientProvider.stories.d.ts.map +1 -1
  50. package/dist/types/tsconfig.tsbuildinfo +1 -1
  51. package/moon.yml +19 -0
  52. package/package.json +33 -25
  53. package/src/client/AgentHostingProvider.tsx +1 -1
  54. package/src/client/ClientProvider.test.tsx +3 -2
  55. package/src/client/ClientProvider.tsx +4 -3
  56. package/src/client/useConfig.test.tsx +2 -1
  57. package/src/devtools/useStream.ts +1 -1
  58. package/src/echo/useQuery.test.tsx +2 -1
  59. package/src/echo/useSpaceInvitations.ts +2 -1
  60. package/src/echo/useSpaces.test.tsx +2 -1
  61. package/src/echo/useSyncState.ts +3 -3
  62. package/src/halo/Passkey.stories.tsx +4 -3
  63. package/src/halo/useDevices.test.tsx +2 -1
  64. package/src/halo/useHaloInvitations.ts +1 -1
  65. package/src/invitations/useInvitationStatus.ts +1 -1
  66. package/src/playwright/playwright.config.ts +17 -0
  67. package/src/playwright/smoke.spec.ts +4 -6
  68. package/src/testing/ClientRepeater.stories.tsx +2 -1
  69. package/src/testing/ClientRepeater.tsx +3 -2
  70. package/src/testing/withClientProvider.stories.tsx +2 -1
  71. package/src/testing/withClientProvider.tsx +5 -4
  72. package/vitest.config.ts +1 -1
  73. package/.eslintrc.cjs +0 -12
  74. package/README.yml +0 -33
  75. package/dist/lib/browser/chunk-72QD3PXL.mjs.map +0 -7
  76. package/dist/lib/node/chunk-5RUIFUEC.cjs +0 -334
  77. package/dist/lib/node/chunk-5RUIFUEC.cjs.map +0 -7
  78. package/dist/lib/node/chunk-FYOAVV65.cjs +0 -188
  79. package/dist/lib/node/chunk-FYOAVV65.cjs.map +0 -7
  80. package/dist/lib/node/devtools/index.cjs +0 -62
  81. package/dist/lib/node/devtools/index.cjs.map +0 -7
  82. package/dist/lib/node/echo/index.cjs +0 -302
  83. package/dist/lib/node/echo/index.cjs.map +0 -7
  84. package/dist/lib/node/halo/index.cjs +0 -123
  85. package/dist/lib/node/halo/index.cjs.map +0 -7
  86. package/dist/lib/node/index.cjs +0 -55
  87. package/dist/lib/node/index.cjs.map +0 -7
  88. package/dist/lib/node/invitations/index.cjs +0 -39
  89. package/dist/lib/node/invitations/index.cjs.map +0 -7
  90. package/dist/lib/node/mesh/index.cjs +0 -37
  91. package/dist/lib/node/mesh/index.cjs.map +0 -7
  92. package/dist/lib/node/meta.json +0 -1
  93. package/dist/lib/node/testing/index.cjs +0 -278
  94. package/dist/lib/node/testing/index.cjs.map +0 -7
  95. package/dist/lib/node/worker.cjs +0 -23
  96. package/dist/lib/node/worker.cjs.map +0 -7
  97. package/dist/lib/node-esm/chunk-NBTZZNQ5.mjs.map +0 -7
  98. package/dist/types/src/playwright/playwright.config.d.cts.map +0 -1
  99. package/project.json +0 -40
  100. package/src/playwright/playwright.config.cts +0 -18
  101. package/typedoc/.nojekyll +0 -1
  102. package/typedoc/assets/hierarchy.js +0 -1
  103. package/typedoc/assets/highlight.css +0 -99
  104. package/typedoc/assets/icons.js +0 -18
  105. package/typedoc/assets/icons.svg +0 -1
  106. package/typedoc/assets/main.js +0 -60
  107. package/typedoc/assets/navigation.js +0 -1
  108. package/typedoc/assets/search.js +0 -1
  109. package/typedoc/assets/style.css +0 -1640
  110. package/typedoc/classes/echo.Hypergraph.html +0 -17
  111. package/typedoc/classes/echo.PropertiesType.html +0 -19
  112. package/typedoc/classes/echo.QueryResult.html +0 -18
  113. package/typedoc/classes/halo.KeyStore.html +0 -6
  114. package/typedoc/classes/index.AgentClientServiceProvider.html +0 -10
  115. package/typedoc/classes/index.AgentManagerClient.html +0 -22
  116. package/typedoc/classes/index.AlreadyJoinedError.html +0 -15
  117. package/typedoc/classes/index.ApiError.html +0 -16
  118. package/typedoc/classes/index.CancelledError.html +0 -16
  119. package/typedoc/classes/index.Client.html +0 -51
  120. package/typedoc/classes/index.ClientServicesProxy.html +0 -12
  121. package/typedoc/classes/index.Config.html +0 -17
  122. package/typedoc/classes/index.DataCorruptionError.html +0 -16
  123. package/typedoc/classes/index.DatabaseError.html +0 -15
  124. package/typedoc/classes/index.EntityNotFoundError.html +0 -15
  125. package/typedoc/classes/index.FakeAgentHostingProvider.html +0 -7
  126. package/typedoc/classes/index.IFrameManager.html +0 -6
  127. package/typedoc/classes/index.IdentityNotInitializedError.html +0 -15
  128. package/typedoc/classes/index.InvalidConfigError.html +0 -16
  129. package/typedoc/classes/index.InvalidInvitationError.html +0 -15
  130. package/typedoc/classes/index.InvalidInvitationExtensionRoleError.html +0 -16
  131. package/typedoc/classes/index.InvalidStorageVersionError.html +0 -15
  132. package/typedoc/classes/index.LocalClientServices.html +0 -12
  133. package/typedoc/classes/index.PublicKey.html +0 -55
  134. package/typedoc/classes/index.RemoteServiceConnectionError.html +0 -15
  135. package/typedoc/classes/index.RemoteServiceConnectionTimeout.html +0 -15
  136. package/typedoc/classes/index.RpcClosedError.html +0 -15
  137. package/typedoc/classes/index.RpcNotOpenError.html +0 -15
  138. package/typedoc/classes/index.SharedWorkerConnection.html +0 -5
  139. package/typedoc/classes/index.Shell.html +0 -35
  140. package/typedoc/classes/index.ShellManager.html +0 -9
  141. package/typedoc/classes/index.SystemError.html +0 -16
  142. package/typedoc/classes/index.UnknownModelError.html +0 -15
  143. package/typedoc/classes/index.WorkerClientServices.html +0 -12
  144. package/typedoc/classes/invitations.AuthenticatingInvitationObservable.html +0 -30
  145. package/typedoc/classes/invitations.CancellableInvitationObservable.html +0 -29
  146. package/typedoc/classes/invitations.InvitationEncoder.html +0 -5
  147. package/typedoc/classes/invitations.InvitationsProxy.html +0 -12
  148. package/typedoc/enums/devtools.KeyType.html +0 -9
  149. package/typedoc/enums/echo.HaloSpaceMember.Role.html +0 -9
  150. package/typedoc/enums/echo.IndexKind.Kind.html +0 -8
  151. package/typedoc/enums/echo.QueryOptions.DataLocation.html +0 -6
  152. package/typedoc/enums/echo.QueryOptions.ShowDeletedOption.html +0 -6
  153. package/typedoc/enums/echo.ResultFormat.html +0 -10
  154. package/typedoc/enums/echo.SpaceMember.PresenceState.html +0 -5
  155. package/typedoc/enums/echo.SpaceState.html +0 -13
  156. package/typedoc/enums/echo.TextKind.html +0 -5
  157. package/typedoc/enums/halo.Device.PresenceState.html +0 -6
  158. package/typedoc/enums/halo.DeviceKind.html +0 -5
  159. package/typedoc/enums/halo.DeviceType.html +0 -9
  160. package/typedoc/enums/index.ShellDisplay.html +0 -5
  161. package/typedoc/enums/index.ShellLayout.html +0 -13
  162. package/typedoc/enums/index.SystemStatus.html +0 -5
  163. package/typedoc/enums/invitations.Invitation.AuthMethod.html +0 -6
  164. package/typedoc/enums/invitations.Invitation.Kind.html +0 -5
  165. package/typedoc/enums/invitations.Invitation.State.html +0 -13
  166. package/typedoc/enums/invitations.Invitation.Type.html +0 -6
  167. package/typedoc/enums/mesh.ConnectionState.html +0 -5
  168. package/typedoc/functions/devtools.useDevtools.html +0 -1
  169. package/typedoc/functions/devtools.useStream.html +0 -2
  170. package/typedoc/functions/echo.useMembers.html +0 -1
  171. package/typedoc/functions/echo.useQueue.html +0 -2
  172. package/typedoc/functions/echo.useSchema.html +0 -2
  173. package/typedoc/functions/echo.useSpace.html +0 -6
  174. package/typedoc/functions/echo.useSpaceInvitation.html +0 -1
  175. package/typedoc/functions/echo.useSpaceInvitations.html +0 -1
  176. package/typedoc/functions/echo.useSpaceSyncState.html +0 -2
  177. package/typedoc/functions/echo.useSpaces.html +0 -5
  178. package/typedoc/functions/echo.useSubscription.html +0 -3
  179. package/typedoc/functions/echo.useSyncState.html +0 -2
  180. package/typedoc/functions/halo.useContacts.html +0 -4
  181. package/typedoc/functions/halo.useCredentials.html +0 -1
  182. package/typedoc/functions/halo.useDevices.html +0 -1
  183. package/typedoc/functions/halo.useHaloInvitation.html +0 -1
  184. package/typedoc/functions/halo.useHaloInvitations.html +0 -1
  185. package/typedoc/functions/halo.useIdentity.html +0 -3
  186. package/typedoc/functions/halo.useKeyStore.html +0 -3
  187. package/typedoc/functions/index.AgentHostingProvider.html +0 -2
  188. package/typedoc/functions/index.useAgentHostingClient.html +0 -1
  189. package/typedoc/functions/index.useClient.html +0 -3
  190. package/typedoc/functions/index.useClientStatus.html +0 -1
  191. package/typedoc/functions/index.useConfig.html +0 -3
  192. package/typedoc/functions/index.useShell.html +0 -2
  193. package/typedoc/functions/index.useShellDisplay.html +0 -2
  194. package/typedoc/functions/index.useStatus.html +0 -1
  195. package/typedoc/functions/invitations.useInvitationStatus.html +0 -1
  196. package/typedoc/functions/mesh.useNetworkStatus.html +0 -2
  197. package/typedoc/hierarchy.html +0 -1
  198. package/typedoc/index.html +0 -23
  199. package/typedoc/interfaces/devtools.DevtoolsHook.html +0 -22
  200. package/typedoc/interfaces/devtools.DevtoolsHost.html +0 -26
  201. package/typedoc/interfaces/echo.DocAccessor.html +0 -3
  202. package/typedoc/interfaces/echo.Echo.html +0 -39
  203. package/typedoc/interfaces/echo.EchoDatabase.html +0 -25
  204. package/typedoc/interfaces/echo.Expando.html +0 -3
  205. package/typedoc/interfaces/echo.Filter.html +0 -3
  206. package/typedoc/interfaces/echo.HaloSpaceMember.html +0 -18
  207. package/typedoc/interfaces/echo.IDocHandle.html +0 -6
  208. package/typedoc/interfaces/echo.IndexKind.html +0 -9
  209. package/typedoc/interfaces/echo.Query.html +0 -34
  210. package/typedoc/interfaces/echo.QueryOptions.html +0 -39
  211. package/typedoc/interfaces/echo.Queue.html +0 -17
  212. package/typedoc/interfaces/echo.Ref.html +0 -32
  213. package/typedoc/interfaces/echo.Space.html +0 -39
  214. package/typedoc/interfaces/echo.SpaceMember.html +0 -7
  215. package/typedoc/interfaces/echo.SpaceSyncState.PeerState.html +0 -14
  216. package/typedoc/interfaces/echo.SpaceSyncState.html +0 -4
  217. package/typedoc/interfaces/echo.SubscriptionHandle.html +0 -5
  218. package/typedoc/interfaces/echo.TypedObject.html +0 -16
  219. package/typedoc/interfaces/halo.Contact.html +0 -10
  220. package/typedoc/interfaces/halo.Credential.html +0 -27
  221. package/typedoc/interfaces/halo.Device.html +0 -11
  222. package/typedoc/interfaces/halo.Halo.html +0 -16
  223. package/typedoc/interfaces/halo.Identity.html +0 -15
  224. package/typedoc/interfaces/index.AgentHostingProviderClient.html +0 -6
  225. package/typedoc/interfaces/index.AppContextRequest.html +0 -33
  226. package/typedoc/interfaces/index.ClientServicesProvider.html +0 -9
  227. package/typedoc/interfaces/index.InvitationUrlRequest.html +0 -9
  228. package/typedoc/interfaces/index.LayoutRequest.html +0 -29
  229. package/typedoc/interfaces/index.ShellRuntime.html +0 -15
  230. package/typedoc/interfaces/invitations.Invitation.html +0 -92
  231. package/typedoc/interfaces/invitations.Invitations.html +0 -5
  232. package/typedoc/interfaces/mesh.GossipMessage.html +0 -10
  233. package/typedoc/interfaces/mesh.NetworkStatus.Signal.html +0 -5
  234. package/typedoc/interfaces/mesh.NetworkStatus.html +0 -6
  235. package/typedoc/media/LICENSE +0 -8
  236. package/typedoc/modules/devtools.html +0 -1
  237. package/typedoc/modules/echo.Filter.html +0 -1
  238. package/typedoc/modules/echo.HaloSpaceMember.html +0 -1
  239. package/typedoc/modules/echo.IndexKind.html +0 -1
  240. package/typedoc/modules/echo.Query.html +0 -1
  241. package/typedoc/modules/echo.QueryOptions.html +0 -1
  242. package/typedoc/modules/echo.Ref.html +0 -2
  243. package/typedoc/modules/echo.SpaceMember.html +0 -1
  244. package/typedoc/modules/echo.SpaceSyncState.html +0 -1
  245. package/typedoc/modules/echo.html +0 -1
  246. package/typedoc/modules/halo.Device.html +0 -1
  247. package/typedoc/modules/halo.html +0 -1
  248. package/typedoc/modules/index.html +0 -1
  249. package/typedoc/modules/invitations.Invitation.html +0 -1
  250. package/typedoc/modules/invitations.html +0 -1
  251. package/typedoc/modules/mesh.NetworkStatus.html +0 -1
  252. package/typedoc/modules/mesh.html +0 -1
  253. package/typedoc/modules/worker.html +0 -1
  254. package/typedoc/modules.html +0 -1
  255. package/typedoc/types/devtools.MountOptions.html +0 -3
  256. package/typedoc/types/echo.AnyLiveObject.html +0 -2
  257. package/typedoc/types/echo.Filter.And.html +0 -1
  258. package/typedoc/types/echo.Filter.Any.html +0 -1
  259. package/typedoc/types/echo.Filter.Or.html +0 -1
  260. package/typedoc/types/echo.Filter.Props.html +0 -1
  261. package/typedoc/types/echo.Filter.Type.html +0 -1
  262. package/typedoc/types/echo.Live.html +0 -5
  263. package/typedoc/types/echo.ObjectMeta.html +0 -1
  264. package/typedoc/types/echo.ObjectMigration.html +0 -7
  265. package/typedoc/types/echo.ObjectVersion.html +0 -2
  266. package/typedoc/types/echo.PeerSyncState.html +0 -1
  267. package/typedoc/types/echo.Progress.html +0 -3
  268. package/typedoc/types/echo.PropertiesTypeProps.html +0 -1
  269. package/typedoc/types/echo.Query.Any.html +0 -1
  270. package/typedoc/types/echo.Query.TextSearchOptions.html +0 -2
  271. package/typedoc/types/echo.Query.Type.html +0 -1
  272. package/typedoc/types/echo.Ref.Target.html +0 -2
  273. package/typedoc/types/echo.Selection.html +0 -1
  274. package/typedoc/types/echo.SpaceId.html +0 -6
  275. package/typedoc/types/echo.SpaceSyncStateMap.html +0 -1
  276. package/typedoc/types/echo.UseQueueOptions.html +0 -2
  277. package/typedoc/types/echo.UseSpacesParams.html +0 -3
  278. package/typedoc/types/index.AgentHostingProviderProps.html +0 -3
  279. package/typedoc/types/index.ClientContextProps.html +0 -3
  280. package/typedoc/types/index.ClientOptions.html +0 -12
  281. package/typedoc/types/index.ClientProviderProps.html +0 -2
  282. package/typedoc/types/index.ClientServices.html +0 -15
  283. package/typedoc/types/index.FromAgentOptions.html +0 -2
  284. package/typedoc/types/index.PublicKeyLike.html +0 -2
  285. package/typedoc/types/invitations.InvitationAction.html +0 -1
  286. package/typedoc/types/invitations.InvitationResult.html +0 -5
  287. package/typedoc/types/invitations.InvitationStatus.html +0 -15
  288. package/typedoc/variables/devtools.mountDevtoolsHooks.html +0 -1
  289. package/typedoc/variables/devtools.unmountDevtoolsHooks.html +0 -1
  290. package/typedoc/variables/echo.DocAccessor.html +0 -1
  291. package/typedoc/variables/echo.EchoObjectSchema.html +0 -1
  292. package/typedoc/variables/echo.Expando.html +0 -1
  293. package/typedoc/variables/echo.FQ_ID_LENGTH.html +0 -1
  294. package/typedoc/variables/echo.Filter.html +0 -1
  295. package/typedoc/variables/echo.OBJECT_ID_LENGTH.html +0 -1
  296. package/typedoc/variables/echo.ObjectVersion.html +0 -1
  297. package/typedoc/variables/echo.Query.html +0 -1
  298. package/typedoc/variables/echo.Queue.html +0 -1
  299. package/typedoc/variables/echo.ReactiveObjectSchema.html +0 -1
  300. package/typedoc/variables/echo.Ref.html +0 -2
  301. package/typedoc/variables/echo.RefArray.html +0 -2
  302. package/typedoc/variables/echo.SPACE_ID_LENGTH.html +0 -1
  303. package/typedoc/variables/echo.SpaceId.html +0 -1
  304. package/typedoc/variables/echo.SpaceSchema.html +0 -1
  305. package/typedoc/variables/echo.TypedObject.html +0 -3
  306. package/typedoc/variables/echo.compareForeignKeys.html +0 -1
  307. package/typedoc/variables/echo.createDocAccessor.html +0 -1
  308. package/typedoc/variables/echo.createEmptyEdgeSyncState.html +0 -1
  309. package/typedoc/variables/echo.createObject.html +0 -1
  310. package/typedoc/variables/echo.createQueueDXN.html +0 -2
  311. package/typedoc/variables/echo.createSubscription.html +0 -5
  312. package/typedoc/variables/echo.defineObjectMigration.html +0 -1
  313. package/typedoc/variables/echo.fromCursor.html +0 -1
  314. package/typedoc/variables/echo.fullyQualifiedId.html +0 -4
  315. package/typedoc/variables/echo.getMeta.html +0 -1
  316. package/typedoc/variables/echo.getObjectCore.html +0 -1
  317. package/typedoc/variables/echo.getRangeFromCursor.html +0 -1
  318. package/typedoc/variables/echo.getSchema.html +0 -2
  319. package/typedoc/variables/echo.getSource.html +0 -4
  320. package/typedoc/variables/echo.getSpace.html +0 -1
  321. package/typedoc/variables/echo.getSyncSummary.html +0 -1
  322. package/typedoc/variables/echo.getTarget.html +0 -4
  323. package/typedoc/variables/echo.getTextInRange.html +0 -2
  324. package/typedoc/variables/echo.getType.html +0 -5
  325. package/typedoc/variables/echo.getTypename.html +0 -6
  326. package/typedoc/variables/echo.getVersion.html +0 -3
  327. package/typedoc/variables/echo.importSpace.html +0 -1
  328. package/typedoc/variables/echo.internalDecodeReference.html +0 -1
  329. package/typedoc/variables/echo.isEchoObject.html +0 -2
  330. package/typedoc/variables/echo.isLiveObject.html +0 -2
  331. package/typedoc/variables/echo.isRelation.html +0 -2
  332. package/typedoc/variables/echo.isSpace.html +0 -1
  333. package/typedoc/variables/echo.live.html +0 -3
  334. package/typedoc/variables/echo.loadObjectReferences.html +0 -7
  335. package/typedoc/variables/echo.makeRef.html +0 -2
  336. package/typedoc/variables/echo.parseFullyQualifiedId.html +0 -2
  337. package/typedoc/variables/echo.parseId.html +0 -1
  338. package/typedoc/variables/echo.refFromDXN.html +0 -2
  339. package/typedoc/variables/echo.toCursor.html +0 -1
  340. package/typedoc/variables/echo.toCursorRange.html +0 -1
  341. package/typedoc/variables/echo.updateText.html +0 -6
  342. package/typedoc/variables/echo.useQuery.html +0 -2
  343. package/typedoc/variables/index.AgentHostingContext.html +0 -1
  344. package/typedoc/variables/index.ClientProvider.html +0 -3
  345. package/typedoc/variables/index.DXOS_VERSION.html +0 -1
  346. package/typedoc/variables/index.Defaults.html +0 -2
  347. package/typedoc/variables/index.Dynamics.html +0 -2
  348. package/typedoc/variables/index.Envs.html +0 -2
  349. package/typedoc/variables/index.Local.html +0 -2
  350. package/typedoc/variables/index.Remote.html +0 -1
  351. package/typedoc/variables/index.Storage.html +0 -2
  352. package/typedoc/variables/index.createClientServices.html +0 -4
  353. package/typedoc/variables/index.fromAgent.html +0 -2
  354. package/typedoc/variables/index.fromHost.html +0 -2
  355. package/typedoc/variables/index.fromSocket.html +0 -2
  356. package/typedoc/variables/index.fromWorker.html +0 -2
  357. package/typedoc/variables/index.getUnixSocket.html +0 -1
  358. package/typedoc/variables/index.resolveRef.html +0 -1
  359. package/typedoc/variables/index.useMulticastObservable.html +0 -3
  360. package/typedoc/variables/worker.getWorkerServiceHost.html +0 -1
  361. package/typedoc/variables/worker.onconnect.html +0 -1
package/moon.yml ADDED
@@ -0,0 +1,19 @@
1
+ type: library
2
+ language: typescript
3
+ tags:
4
+ - e2e
5
+ - ts-build
6
+ - ts-test
7
+ - typedoc
8
+ - pack
9
+ tasks:
10
+ compile:
11
+ args:
12
+ - '--entryPoint=src/devtools/index.ts'
13
+ - '--entryPoint=src/echo/index.ts'
14
+ - '--entryPoint=src/halo/index.ts'
15
+ - '--entryPoint=src/index.ts'
16
+ - '--entryPoint=src/invitations/index.ts'
17
+ - '--entryPoint=src/mesh/index.ts'
18
+ - '--entryPoint=src/testing/index.ts'
19
+ - '--entryPoint=src/worker.ts'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-client",
3
- "version": "0.8.3",
3
+ "version": "0.8.4-main.28f8d3d",
4
4
  "description": "React client API",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -10,41 +10,49 @@
10
10
  "type": "module",
11
11
  "exports": {
12
12
  "./devtools": {
13
+ "source": "./src/devtools/index.ts",
13
14
  "types": "./dist/types/src/devtools/index.d.ts",
14
15
  "browser": "./dist/lib/browser/devtools/index.mjs",
15
16
  "node": "./dist/lib/node-esm/devtools/index.mjs"
16
17
  },
17
18
  "./echo": {
19
+ "source": "./src/echo/index.ts",
18
20
  "types": "./dist/types/src/echo/index.d.ts",
19
21
  "browser": "./dist/lib/browser/echo/index.mjs",
20
22
  "node": "./dist/lib/node-esm/echo/index.mjs"
21
23
  },
22
24
  "./halo": {
25
+ "source": "./src/halo/index.ts",
23
26
  "types": "./dist/types/src/halo/index.d.ts",
24
27
  "browser": "./dist/lib/browser/halo/index.mjs",
25
28
  "node": "./dist/lib/node-esm/halo/index.mjs"
26
29
  },
27
30
  ".": {
31
+ "source": "./src/index.ts",
28
32
  "types": "./dist/types/src/index.d.ts",
29
33
  "browser": "./dist/lib/browser/index.mjs",
30
34
  "node": "./dist/lib/node-esm/index.mjs"
31
35
  },
32
36
  "./invitations": {
37
+ "source": "./src/invitations/index.ts",
33
38
  "types": "./dist/types/src/invitations/index.d.ts",
34
39
  "browser": "./dist/lib/browser/invitations/index.mjs",
35
40
  "node": "./dist/lib/node-esm/invitations/index.mjs"
36
41
  },
37
42
  "./mesh": {
43
+ "source": "./src/mesh/index.ts",
38
44
  "types": "./dist/types/src/mesh/index.d.ts",
39
45
  "browser": "./dist/lib/browser/mesh/index.mjs",
40
46
  "node": "./dist/lib/node-esm/mesh/index.mjs"
41
47
  },
42
48
  "./testing": {
49
+ "source": "./src/testing/index.ts",
43
50
  "types": "./dist/types/src/testing/index.d.ts",
44
51
  "browser": "./dist/lib/browser/testing/index.mjs",
45
52
  "node": "./dist/lib/node-esm/testing/index.mjs"
46
53
  },
47
54
  "./worker": {
55
+ "source": "./src/worker.ts",
48
56
  "types": "./dist/types/src/worker.d.ts",
49
57
  "browser": "./dist/lib/browser/worker.mjs",
50
58
  "node": "./dist/lib/node-esm/worker.mjs"
@@ -78,21 +86,21 @@
78
86
  },
79
87
  "dependencies": {
80
88
  "react-error-boundary": "^4.0.13",
81
- "@dxos/async": "0.8.3",
82
- "@dxos/client": "0.8.3",
83
- "@dxos/codec-protobuf": "0.8.3",
84
- "@dxos/config": "0.8.3",
85
- "@dxos/context": "0.8.3",
86
- "@dxos/debug": "0.8.3",
87
- "@dxos/echo": "0.8.3",
88
- "@dxos/echo-schema": "0.8.3",
89
- "@dxos/echo-signals": "0.8.3",
90
- "@dxos/invariant": "0.8.3",
91
- "@dxos/log": "0.8.3",
92
- "@dxos/node-std": "0.8.3",
93
- "@dxos/protocols": "0.8.3",
94
- "@dxos/react-hooks": "0.8.3",
95
- "@dxos/util": "0.8.3"
89
+ "@dxos/async": "0.8.4-main.28f8d3d",
90
+ "@dxos/codec-protobuf": "0.8.4-main.28f8d3d",
91
+ "@dxos/config": "0.8.4-main.28f8d3d",
92
+ "@dxos/context": "0.8.4-main.28f8d3d",
93
+ "@dxos/echo": "0.8.4-main.28f8d3d",
94
+ "@dxos/debug": "0.8.4-main.28f8d3d",
95
+ "@dxos/echo-signals": "0.8.4-main.28f8d3d",
96
+ "@dxos/client": "0.8.4-main.28f8d3d",
97
+ "@dxos/invariant": "0.8.4-main.28f8d3d",
98
+ "@dxos/log": "0.8.4-main.28f8d3d",
99
+ "@dxos/node-std": "0.8.4-main.28f8d3d",
100
+ "@dxos/protocols": "0.8.4-main.28f8d3d",
101
+ "@dxos/react-hooks": "0.8.4-main.28f8d3d",
102
+ "@dxos/echo-schema": "0.8.4-main.28f8d3d",
103
+ "@dxos/util": "0.8.4-main.28f8d3d"
96
104
  },
97
105
  "devDependencies": {
98
106
  "@types/react": "~18.2.0",
@@ -100,21 +108,21 @@
100
108
  "react": "~18.2.0",
101
109
  "react-dom": "~18.2.0",
102
110
  "typedoc": "0.28.1",
103
- "@dxos/random": "0.8.3",
104
- "@dxos/react-ui": "0.8.3",
105
- "@dxos/react-ui-syntax-highlighter": "0.8.3",
106
- "@dxos/react-ui-theme": "0.8.3",
107
- "@dxos/storybook-utils": "0.8.3",
108
- "@dxos/test-utils": "0.8.3"
111
+ "@dxos/random": "0.8.4-main.28f8d3d",
112
+ "@dxos/react-ui": "0.8.4-main.28f8d3d",
113
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.28f8d3d",
114
+ "@dxos/react-ui-theme": "0.8.4-main.28f8d3d",
115
+ "@dxos/storybook-utils": "0.8.4-main.28f8d3d",
116
+ "@dxos/test-utils": "0.8.4-main.28f8d3d"
109
117
  },
110
118
  "peerDependencies": {
111
119
  "react": "~18.2.0",
112
120
  "react-dom": "~18.2.0"
113
121
  },
114
122
  "optionalDependencies": {
115
- "@dxos/random": "0.8.3",
116
- "@dxos/react-ui": "0.8.3",
117
- "@dxos/react-ui-theme": "0.8.3"
123
+ "@dxos/random": "0.8.4-main.28f8d3d",
124
+ "@dxos/react-ui": "0.8.4-main.28f8d3d",
125
+ "@dxos/react-ui-theme": "0.8.4-main.28f8d3d"
118
126
  },
119
127
  "publishConfig": {
120
128
  "access": "public"
@@ -2,7 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import React, { createContext, type PropsWithChildren, useContext, useState } from 'react';
5
+ import React, { type PropsWithChildren, createContext, useContext, useState } from 'react';
6
6
 
7
7
  import { type AgentHostingProviderClient, AgentManagerClient, FakeAgentHostingProvider } from '@dxos/client';
8
8
  import { type Halo } from '@dxos/client/halo';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2020 DXOS.org
3
3
  //
4
4
 
5
- import { renderHook, screen, render, act, cleanup } from '@testing-library/react';
5
+ import { act, cleanup, render, renderHook, screen } from '@testing-library/react';
6
6
  import React, { Component, type PropsWithChildren } from 'react';
7
7
  import { afterEach, beforeEach, describe, expect, test } from 'vitest';
8
8
 
@@ -10,9 +10,10 @@ import { waitForCondition } from '@dxos/async';
10
10
  import { Client, Config, SystemStatus, fromHost } from '@dxos/client';
11
11
  import { log } from '@dxos/log';
12
12
 
13
+ import { useIdentity } from '../halo';
14
+
13
15
  import { ClientProvider } from './ClientProvider';
14
16
  import { useClient } from './useClient';
15
- import { useIdentity } from '../halo';
16
17
 
17
18
  log.config({ filter: 'ClientContext:debug,warn' });
18
19
 
@@ -3,9 +3,9 @@
3
3
  //
4
4
 
5
5
  import React, {
6
- forwardRef,
7
6
  type FunctionComponent,
8
7
  type PropsWithChildren,
8
+ forwardRef,
9
9
  useEffect,
10
10
  useImperativeHandle,
11
11
  useState,
@@ -16,11 +16,12 @@ import { type Config } from '@dxos/config';
16
16
  import { registerSignalsRuntime } from '@dxos/echo-signals/react';
17
17
  import { log } from '@dxos/log';
18
18
  import { useControlledState } from '@dxos/react-hooks';
19
- import { getAsyncProviderValue, type MaybePromise, type Provider } from '@dxos/util';
19
+ import { type MaybePromise, type Provider, getAsyncProviderValue } from '@dxos/util';
20
20
 
21
- import { ClientContext, type ClientContextProps } from './context';
22
21
  import { printBanner } from '../banner';
23
22
 
23
+ import { ClientContext, type ClientContextProps } from './context';
24
+
24
25
  /**
25
26
  * Properties for the ClientProvider.
26
27
  */
@@ -8,9 +8,10 @@ import { describe, expect, test } from 'vitest';
8
8
  import { waitForCondition } from '@dxos/async';
9
9
  import { Config, SystemStatus } from '@dxos/client';
10
10
 
11
- import { useConfig } from './useConfig';
12
11
  import { createClient, createClientContextProvider } from '../testing/util';
13
12
 
13
+ import { useConfig } from './useConfig';
14
+
14
15
  // TODO(burdon): Disabled in CI since flaky.
15
16
  describe.runIf(!process.env.CI)('Config hook', () => {
16
17
  const render = () => useConfig();
@@ -2,7 +2,7 @@
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
4
 
5
- import { type DependencyList, useState, useEffect } from 'react';
5
+ import { type DependencyList, useEffect, useState } from 'react';
6
6
 
7
7
  import { type Stream } from '@dxos/codec-protobuf/stream';
8
8
  import { log } from '@dxos/log';
@@ -7,9 +7,10 @@ import { describe, expect, test } from 'vitest';
7
7
 
8
8
  import { Expando, Filter, live } from '@dxos/client/echo';
9
9
 
10
- import { useQuery } from './useQuery';
11
10
  import { createClient, createClientContextProvider } from '../testing/util';
12
11
 
12
+ import { useQuery } from './useQuery';
13
+
13
14
  describe('useQuery', () => {
14
15
  // TODO(dmaretskyi): Fix this test.
15
16
  test.skip('deleting an element should result in correct render sequence', async () => {
@@ -8,9 +8,10 @@ import { MulticastObservable } from '@dxos/async';
8
8
  import { type PublicKey } from '@dxos/client';
9
9
  import { useMulticastObservable } from '@dxos/react-hooks';
10
10
 
11
- import { useSpace } from './useSpaces';
12
11
  import { type CancellableInvitationObservable, useInvitationStatus } from '../invitations';
13
12
 
13
+ import { useSpace } from './useSpaces';
14
+
14
15
  export const useSpaceInvitations = (spaceKey?: PublicKey): CancellableInvitationObservable[] => {
15
16
  const space = useSpace(spaceKey);
16
17
  return useMulticastObservable(space?.invitations ?? MulticastObservable.empty()) ?? [];
@@ -5,9 +5,10 @@
5
5
  import { act, renderHook } from '@testing-library/react';
6
6
  import { describe, expect, test } from 'vitest';
7
7
 
8
- import { useSpace, useSpaces } from './useSpaces';
9
8
  import { createClient, createClientContextProvider } from '../testing/util';
10
9
 
10
+ import { useSpace, useSpaces } from './useSpaces';
11
+
11
12
  describe('useSpaces', () => {
12
13
  test('lists existing spaces', async () => {
13
14
  const { client } = await createClient({ createIdentity: true });
@@ -4,7 +4,7 @@
4
4
 
5
5
  import { useEffect, useState } from 'react';
6
6
 
7
- import { type PeerSyncState, type SpaceSyncStateMap, type Space } from '@dxos/client/echo';
7
+ import { type PeerSyncState, type Space, type SpaceSyncStateMap } from '@dxos/client/echo';
8
8
  import { Context } from '@dxos/context';
9
9
  import { type SpaceId } from '@dxos/keys';
10
10
  import { EdgeService } from '@dxos/protocols';
@@ -30,7 +30,7 @@ export const useSyncState = (): SpaceSyncStateMap => {
30
30
  }
31
31
 
32
32
  ctx.onDispose(
33
- space.crud.subscribeToSyncState(ctx, ({ peers = [] }) => {
33
+ space.db.subscribeToSyncState(ctx, ({ peers = [] }) => {
34
34
  const syncState = peers.find((state) => isEdgePeerId(state.peerId, space.id));
35
35
  if (syncState) {
36
36
  setSpaceState((spaceState) => ({ ...spaceState, [space.id]: syncState }));
@@ -62,7 +62,7 @@ export const useSpaceSyncState = (space: Space): PeerSyncState | undefined => {
62
62
 
63
63
  useEffect(() => {
64
64
  const ctx = new Context();
65
- space.crud.subscribeToSyncState(ctx, ({ peers = [] }) => {
65
+ space.db.subscribeToSyncState(ctx, ({ peers = [] }) => {
66
66
  const syncState = peers.find((state) => isEdgePeerId(state.peerId, space.id));
67
67
  if (syncState) {
68
68
  setSpaceState(syncState);
@@ -13,11 +13,12 @@ import { Button } from '@dxos/react-ui';
13
13
  import { SyntaxHighlighter } from '@dxos/react-ui-syntax-highlighter';
14
14
  import { withTheme } from '@dxos/storybook-utils';
15
15
 
16
- import { useCredentials } from './useCredentials';
17
- import { useIdentity } from './useIdentity';
18
16
  import { useClient } from '../client';
19
17
  import { withClientProvider } from '../testing';
20
18
 
19
+ import { useCredentials } from './useCredentials';
20
+ import { useIdentity } from './useIdentity';
21
+
21
22
  const getNewChallenge = () => Math.random().toString(36).substring(2);
22
23
 
23
24
  const Test = () => {
@@ -43,7 +44,7 @@ const Test = () => {
43
44
  challenge: new TextEncoder().encode(challenge),
44
45
  rp: { id: location.hostname, name: 'Test' },
45
46
  user: {
46
- id: lookupKey.asUint8Array(),
47
+ id: lookupKey.asUint8Array() as Uint8Array<ArrayBuffer>,
47
48
  name: identity.did,
48
49
  displayName: identity.profile?.displayName ?? '',
49
50
  },
@@ -5,9 +5,10 @@
5
5
  import { renderHook } from '@testing-library/react';
6
6
  import { describe, expect, test } from 'vitest';
7
7
 
8
- import { useDevices } from './useDevices';
9
8
  import { createClient, createClientContextProvider } from '../testing/util';
10
9
 
10
+ import { useDevices } from './useDevices';
11
+
11
12
  describe('useDevices', () => {
12
13
  test('lists existing devices', async () => {
13
14
  const { client } = await createClient({ createIdentity: true });
@@ -7,7 +7,7 @@ import { useMemo } from 'react';
7
7
  import { useMulticastObservable } from '@dxos/react-hooks';
8
8
 
9
9
  import { useClient } from '../client';
10
- import { useInvitationStatus, type CancellableInvitationObservable } from '../invitations';
10
+ import { type CancellableInvitationObservable, useInvitationStatus } from '../invitations';
11
11
 
12
12
  export const useHaloInvitations = (): CancellableInvitationObservable[] => {
13
13
  const client = useClient();
@@ -2,7 +2,7 @@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
 
5
- import { useReducer, type Reducer, useMemo, useCallback, useEffect } from 'react';
5
+ import { type Reducer, useCallback, useEffect, useMemo, useReducer } from 'react';
6
6
 
7
7
  import { type PublicKey } from '@dxos/client';
8
8
  import {
@@ -0,0 +1,17 @@
1
+ //
2
+ // Copyright 2023 DXOS.org
3
+ //
4
+
5
+ import { defineConfig } from '@playwright/test';
6
+
7
+ import { e2ePreset } from '@dxos/test-utils/playwright';
8
+
9
+ export default defineConfig({
10
+ ...e2ePreset(import.meta.dirname),
11
+ // TODO(wittjosiah): Avoid hard-coding ports.
12
+ webServer: {
13
+ command: 'moon run storybook:serve-e2e -- --port=9000',
14
+ port: 9000,
15
+ reuseExistingServer: false,
16
+ },
17
+ });
@@ -4,17 +4,15 @@
4
4
 
5
5
  import { type Page, expect, test } from '@playwright/test';
6
6
 
7
- import { setupPage } from '@dxos/test-utils/playwright';
8
-
9
- // TODO(wittjosiah): Factor out.
10
- // TODO(burdon): No hard-coding of ports; reconcile all DXOS tools ports.
11
- const storybookUrl = (storyId: string) => `http://localhost:9009/iframe.html?id=${storyId}&viewMode=story`;
7
+ import { setupPage, storybookUrl } from '@dxos/test-utils/playwright';
12
8
 
13
9
  test.describe('Smoke test', () => {
14
10
  let page: Page;
15
11
 
16
12
  test.beforeAll(async ({ browser }) => {
17
- const result = await setupPage(browser, { url: storybookUrl('sdk-react-client-withclientprovider--default') });
13
+ const result = await setupPage(browser, {
14
+ url: storybookUrl('sdk-react-client-withclientprovider--default', 9000),
15
+ });
18
16
  page = result.page;
19
17
  await page.locator(':text("initialized")').waitFor({ state: 'visible' });
20
18
  });
@@ -10,10 +10,11 @@ import { Input } from '@dxos/react-ui';
10
10
  import { SyntaxHighlighter } from '@dxos/react-ui-syntax-highlighter';
11
11
  import { withTheme } from '@dxos/storybook-utils';
12
12
 
13
- import { ClientRepeater, type ClientRepeatedComponentProps } from './ClientRepeater';
14
13
  import { useClient } from '../client';
15
14
  import { useSpace } from '../echo';
16
15
 
16
+ import { type ClientRepeatedComponentProps, ClientRepeater } from './ClientRepeater';
17
+
17
18
  export default {
18
19
  title: 'sdk/react-client/ClientRepeater',
19
20
  decorators: [withTheme],
@@ -2,7 +2,7 @@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
 
5
- import React, { useState, type FC, useEffect, useRef } from 'react';
5
+ import React, { type FC, useEffect, useRef, useState } from 'react';
6
6
 
7
7
  import { Client, type PublicKey } from '@dxos/client';
8
8
  import { TestBuilder, performInvitation } from '@dxos/client/testing';
@@ -10,9 +10,10 @@ import { type TypedObject } from '@dxos/echo-schema';
10
10
  import { registerSignalsRuntime } from '@dxos/echo-signals/react';
11
11
  import { faker } from '@dxos/random';
12
12
 
13
- import { type WithClientProviderProps } from './withClientProvider';
14
13
  import { ClientProvider } from '../client';
15
14
 
15
+ import { type WithClientProviderProps } from './withClientProvider';
16
+
16
17
  export type ClientRepeatedComponentProps = { id: number; count: number; spaceKey?: PublicKey };
17
18
 
18
19
  export type ClientRepeaterControlsProps = { clients: Client[] };
@@ -10,10 +10,11 @@ import { log } from '@dxos/log';
10
10
  import { SyntaxHighlighter } from '@dxos/react-ui-syntax-highlighter';
11
11
  import { withLayout, withTheme } from '@dxos/storybook-utils';
12
12
 
13
- import { withClientProvider, type WithClientProviderProps, withMultiClientProvider } from './withClientProvider';
14
13
  import { useClient } from '../client';
15
14
  import { type Space, useSpaces } from '../echo';
16
15
 
16
+ import { type WithClientProviderProps, withClientProvider, withMultiClientProvider } from './withClientProvider';
17
+
17
18
  const SpaceInfo = ({ space }: { space: Space }) => {
18
19
  const name = space.isOpen ? space.properties.name : '';
19
20
  return <SyntaxHighlighter language='json'>{JSON.stringify({ id: space.id, name }, null, 2)}</SyntaxHighlighter>;
@@ -2,20 +2,21 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- import { type StoryContext, type Decorator } from '@storybook/react';
6
- import React, { createContext, type PropsWithChildren, useContext, useEffect, useRef, useState } from 'react';
5
+ import { type Decorator, type StoryContext } from '@storybook/react';
6
+ import React, { type PropsWithChildren, createContext, useContext, useEffect, useRef, useState } from 'react';
7
7
  import { type FallbackProps, ErrorBoundary as NativeErrorBoundary } from 'react-error-boundary';
8
8
 
9
9
  import { Trigger } from '@dxos/async';
10
10
  import { type Client } from '@dxos/client';
11
11
  import { type Space } from '@dxos/client/echo';
12
- import { performInvitation, TestBuilder } from '@dxos/client/testing';
12
+ import { TestBuilder, performInvitation } from '@dxos/client/testing';
13
13
  import { log } from '@dxos/log';
14
14
  import { type MaybePromise } from '@dxos/util';
15
15
 
16
- import { ClientStory } from './context';
17
16
  import { ClientProvider, type ClientProviderProps } from '../client';
18
17
 
18
+ import { ClientStory } from './context';
19
+
19
20
  type InitializeProps = {
20
21
  createIdentity?: boolean;
21
22
  createSpace?: boolean;
package/vitest.config.ts CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  import { defineConfig, mergeConfig } from 'vitest/config';
6
6
 
7
- import { baseConfig } from '../../../vitest.shared';
7
+ import { baseConfig } from '../../../vitest.base.config';
8
8
 
9
9
  // TODO(wittjosiah): Factor out to shared config as an option.
10
10
  const specifiedEnv = (process.env.VITEST_ENV ?? 'node').toLowerCase();
package/.eslintrc.cjs DELETED
@@ -1,12 +0,0 @@
1
- module.exports = {
2
- "extends": [
3
- "../../../.eslintrc.js"
4
- ],
5
- "parserOptions": {
6
- "project": "tsconfig.json",
7
- "tsconfigRootDir": __dirname,
8
- },
9
- "ignorePatterns": [
10
- "**/*.d.ts"
11
- ]
12
- }
package/README.yml DELETED
@@ -1,33 +0,0 @@
1
- usage: |
2
- The snippet below illustrates a self-contained DXOS application that uses providers to create the client and instantiate a user profile.
3
-
4
- ```javascript
5
-
6
- import React from 'react';
7
- import { useClient, ClientProvider } from '@dxos/react-client';
8
- import { createRoot } from 'react-dom/client';
9
-
10
- const App = () => {
11
- const client = useClient();
12
- const space = useSpaces();
13
- return (
14
- <pre>{JSON.stringify(client.info())}</pre>
15
- );
16
- };
17
-
18
- const Root = () => (
19
- <ClientProvider>
20
- <App />
21
- </ClientProvider>
22
- );
23
-
24
- createRoot(document.getElementById('root')!)
25
- .render(<Root/>);
26
-
27
- ```
28
- storybooks:
29
- - "The [HALO Invitation Story](./stories/halo-invitations.stories.tsx) demonstrates multiple clients (devices) joining the same HALO. [Demo video](https://user-images.githubusercontent.com/3523355/137532718-a21f1f27-9854-4c0b-831a-e9ff92feac49.mov)."
30
- - "The [Space Invitation Story](./stories/space-invitations.stories.tsx) demonstrates multiple clients creating and sharing spaces. [Demo video](https://user-images.githubusercontent.com/3523355/137532717-e77395dc-96f9-4e4b-8f67-e6bd026a3abe.mov)."
31
- quickStartUrl: https://docs.dxos.org/guide/quick-start
32
- guideUrl: https://docs.dxos.org/guide/echo/react
33
- apiReferenceUrl: true
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/client/AgentHostingProvider.tsx", "../../../src/client/ClientProvider.tsx", "../../../src/client/context.ts", "../../../src/banner.ts", "../../../src/client/useClient.ts", "../../../src/client/useClientStatus.ts", "../../../src/client/useConfig.ts", "../../../src/client/useShell.ts", "../../../src/client/useStatus.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { createContext, type PropsWithChildren, useContext, useState } from 'react';\n\nimport { type AgentHostingProviderClient, AgentManagerClient, FakeAgentHostingProvider } from '@dxos/client';\nimport { type Halo } from '@dxos/client/halo';\nimport { type Config } from '@dxos/config';\nimport { log } from '@dxos/log';\n\nimport { useClient } from '../client';\n\nexport type AgentHostingProviderProps = { config: Config; halo: Halo };\n\nexport const AgentHostingContext = createContext<AgentHostingProviderClient | null>(null);\n\n/**\n * Experimental agent hosting provider.\n * @param props\n * @constructor\n * @deprecated\n */\nexport const AgentHostingProvider = (props: PropsWithChildren) => {\n const client = useClient();\n const [agentHostingProviderClient] = useState(makeClient(client));\n return (\n <AgentHostingContext.Provider value={agentHostingProviderClient}> {props.children}</AgentHostingContext.Provider>\n );\n};\n\nexport const useAgentHostingClient = () => {\n return useContext(AgentHostingContext);\n};\n\nconst makeClient = ({ config, halo }: AgentHostingProviderProps) => {\n const agentHostingConfig = config.get('runtime.services.agentHosting');\n if (!agentHostingConfig) {\n log('no agent hosting configured');\n return null;\n }\n\n // TODO(nf): Dynamically discover based on runtime config.\n let agentHostingProviderClient: AgentHostingProviderClient | null = null;\n switch (agentHostingConfig.type) {\n case 'LOCAL_TESTING': {\n log('using FakeAgentHostingProvider');\n return new FakeAgentHostingProvider();\n }\n\n case 'AGENTHOSTING_API': {\n agentHostingProviderClient = new AgentManagerClient(config, halo);\n if (agentHostingProviderClient.init()) {\n return agentHostingProviderClient;\n } else {\n // Not authorized or error initializing.\n return null;\n }\n }\n\n default: {\n log.error('Unknown agent hosting provider type: ' + agentHostingConfig.type);\n return null;\n }\n }\n};\n", "//\n// Copyright 2020 DXOS.org\n//\n\nimport React, {\n forwardRef,\n type FunctionComponent,\n type PropsWithChildren,\n useEffect,\n useImperativeHandle,\n useState,\n} from 'react';\n\nimport { Client, type ClientOptions, type ClientServicesProvider, SystemStatus } from '@dxos/client';\nimport { type Config } from '@dxos/config';\nimport { registerSignalsRuntime } from '@dxos/echo-signals/react';\nimport { log } from '@dxos/log';\nimport { useControlledState } from '@dxos/react-hooks';\nimport { getAsyncProviderValue, type MaybePromise, type Provider } from '@dxos/util';\n\nimport { ClientContext, type ClientContextProps } from './context';\nimport { printBanner } from '../banner';\n\n/**\n * Properties for the ClientProvider.\n */\nexport type ClientProviderProps = Omit<ClientOptions, 'config' | 'services'> &\n Pick<ClientContextProps, 'status'> &\n PropsWithChildren<{\n /**\n * Client object or async provider to enable to caller to do custom initialization.\n *\n * NOTE: For advanced use cases only.\n */\n client?: Client | Provider<Promise<Client>>;\n\n /**\n * Config object or async provider.\n *\n * NOTE: If a `client` is provided then `config` is ignored.\n */\n // TODO(burdon): Reconcile with ClientOptions.\n config?: Config | Provider<Promise<Config>>;\n\n /**\n * Callback to enable the caller to create a custom ClientServicesProvider.\n *\n * NOTE: If a `client` is provided then `services` is ignored.\n */\n // TODO(burdon): Reconcile with ClientOptions.\n services?: ClientServicesProvider | ((config?: Config) => MaybePromise<ClientServicesProvider>);\n\n /**\n * ReactNode to display until the client is available.\n */\n fallback?: FunctionComponent<Partial<ClientContextProps>>;\n\n /**\n * Enable (by default) registration of Preact signals runtime for reactive ECHO objects.\n * @see https://www.npmjs.com/package/@preact/signals-react\n */\n signalsRuntime?: boolean;\n\n /**\n * Skip the DXOS banner.\n */\n noBanner?: boolean;\n\n /**\n * Post initialization hook to enable to caller to do custom initialization.\n */\n onInitialized?: (client: Client) => MaybePromise<void>;\n }>;\n\n/**\n * Root component that provides the DXOS client instance to child components.\n * To be used with the `useClient` hook.\n */\nexport const ClientProvider = forwardRef<Client | undefined, ClientProviderProps>(\n (\n {\n children,\n config: configProvider,\n client: clientProvider,\n services: servicesProvider,\n status: controlledStatus,\n fallback: Fallback = () => null,\n signalsRuntime = true,\n noBanner,\n onInitialized,\n ...options\n },\n forwardedRef,\n ) => {\n useEffect(() => {\n // TODO(wittjosiah): Ideally this should be imported asynchronously because it is optional.\n // Unfortunately, async import seemed to break signals React instrumentation.\n signalsRuntime && registerSignalsRuntime();\n }, []);\n\n // The client is initialized asynchronously.\n // If an error occurs during initialization, it is caught and the state is set.\n // This allows the error to be thrown in the render method.\n // The assumption is that a client initialization error is fatal to the app.\n // This error will be caught by the nearest error boundary.\n const [error, setError] = useState();\n if (error) {\n throw error;\n }\n\n const [client, setClient] = useState(clientProvider instanceof Client ? clientProvider : undefined);\n\n // Provide external access.\n useImperativeHandle(forwardedRef, () => client, [client]);\n\n // Client status subscription.\n const [status, setStatus] = useControlledState(controlledStatus);\n useEffect(() => {\n if (!client) {\n return;\n }\n\n const subscription = client.status.subscribe((status) => setStatus(status));\n return () => subscription.unsubscribe();\n }, [client]);\n\n // Create and/or initialize client.\n useEffect(() => {\n let disposed = false;\n const initialize = async (client: Client) => {\n if (!client.initialized) {\n await client.initialize().catch((err) => {\n if (!disposed) {\n setError(err);\n }\n });\n log('client ready');\n await onInitialized?.(client);\n log('initialization complete');\n }\n\n setClient(client);\n\n if (!noBanner) {\n printBanner(client);\n }\n };\n\n let client: Client;\n const t = setTimeout(async () => {\n try {\n if (clientProvider) {\n // Asynchronously request client.\n client = await getAsyncProviderValue(clientProvider);\n await initialize(client);\n } else {\n // Asynchronously construct client (config may be undefined).\n const config = await getAsyncProviderValue(configProvider);\n log('resolved config', { config });\n const services = await getAsyncProviderValue(servicesProvider, config);\n log('created services', { services });\n client = new Client({ config, services, ...options });\n log('created client');\n await initialize(client);\n }\n } catch (err) {\n if (!disposed) {\n log.catch(err);\n }\n }\n });\n\n return () => {\n log('clean up');\n disposed = true;\n clearTimeout(t);\n // Only destroy if the client is not provided by the parent.\n if (!clientProvider) {\n void client\n ?.destroy()\n .then(() => {\n log('destroyed');\n })\n .catch((err) => log.catch(err));\n }\n };\n }, [configProvider, clientProvider, servicesProvider, noBanner]);\n\n if (!client?.initialized || status !== SystemStatus.ACTIVE) {\n return <Fallback client={client} status={status} />;\n }\n\n return <ClientContext.Provider value={{ client, status }}>{children}</ClientContext.Provider>;\n },\n);\n", "//\n// Copyright 2020 DXOS.org\n//\n\nimport { type Context, createContext } from 'react';\n\nimport { type Client, type SystemStatus } from '@dxos/client';\n\nexport type ClientContextProps = {\n client: Client;\n status?: SystemStatus | null;\n};\n\n/**\n * @internal Use ClientProvider to create or initialize the Client.\n */\nexport const ClientContext: Context<ClientContextProps | undefined> = createContext<ClientContextProps | undefined>(\n undefined,\n);\n", "//\n// Copyright 2021 DXOS.org\n//\n\nimport { type Client } from '@dxos/client';\n\n// http://patorjk.com/software/taag/#p=testall&f=Patorjk-HeX&t=DXOS\nconst BANNER = (client: Client) => {\n const commitHash = client.config.get('runtime.app.build.commitHash');\n const hash = commitHash ? ` App Commit ${commitHash} \\n` : '';\n\n return (\n '\\n' +\n '_/\\\\/\\\\/\\\\/\\\\/\\\\____/\\\\/\\\\____/\\\\/\\\\____/\\\\/\\\\/\\\\/\\\\______/\\\\/\\\\/\\\\/\\\\/\\\\_\\n' +\n '_/\\\\/\\\\____/\\\\/\\\\____/\\\\/\\\\/\\\\/\\\\____/\\\\/\\\\____/\\\\/\\\\__/\\\\/\\\\_________\\n' +\n '_/\\\\/\\\\____/\\\\/\\\\______/\\\\/\\\\______/\\\\/\\\\____/\\\\/\\\\____/\\\\/\\\\/\\\\/\\\\___\\n' +\n '_/\\\\/\\\\____/\\\\/\\\\____/\\\\/\\\\/\\\\/\\\\____/\\\\/\\\\____/\\\\/\\\\__________/\\\\/\\\\_\\n' +\n '_/\\\\/\\\\/\\\\/\\\\/\\\\____/\\\\/\\\\____/\\\\/\\\\____/\\\\/\\\\/\\\\/\\\\____/\\\\/\\\\/\\\\/\\\\/\\\\___\\n' +\n `\\n DXOS Client ${client.version} \\n${hash}`\n );\n};\n\nlet bannerPrinted = false;\n\nexport const printBanner = (client: Client) => {\n if (bannerPrinted || window.location.hostname === 'localhost') {\n return;\n }\n\n bannerPrinted = true;\n // eslint-disable-next-line no-console\n console.log(`%c${BANNER(client)}`, 'font-family: monospace;');\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { useContext } from 'react';\n\nimport { raise } from '@dxos/debug';\n\nimport { ClientContext } from '../client/context';\n\n/**\n * Hook returning instance of DXOS client.\n * Requires ClientContext to be set via ClientProvider.\n */\nexport const useClient = () => {\n const { client } = useContext(ClientContext) ?? raise(new Error('Missing ClientContext.'));\n return client;\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { useEffect, useState } from 'react';\n\nimport { type Client, type SystemStatus } from '@dxos/client';\n\nexport const useClientStatus = (client: Client) => {\n const [status, setStatus] = useState<SystemStatus | null>();\n useEffect(() => {\n if (!client) {\n return;\n }\n\n const subscription = client.status.subscribe((status) => setStatus(status));\n return () => subscription.unsubscribe();\n }, [client, setStatus]);\n\n return status;\n};\n", "//\n// Copyright 2020 DXOS.org\n//\n\nimport { useContext } from 'react';\n\nimport { raise } from '@dxos/debug';\n\nimport { ClientContext } from './context';\n\n/**\n * Hook returning config object used to initialize the DXOS client instance.\n * Requires ClientContext to be set via ClientProvider.\n */\nexport const useConfig = () => {\n const { client } = useContext(ClientContext) ?? raise(new Error('Missing ClientContext.'));\n return client.config;\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { useEffect, useState } from 'react';\n\nimport { type Shell, type ShellDisplay } from '@dxos/client';\n\nimport { useClient } from './useClient';\n\n/**\n * Helper hook to access the shell.\n */\nexport const useShell = (): Shell => {\n const client = useClient();\n return client.shell;\n};\n\n/**\n * Hook to access the shell’s display state.\n */\nexport const useShellDisplay = (): ShellDisplay => {\n const client = useClient();\n const [display, setDisplay] = useState(client.shell.display);\n useEffect(() => client.shell.onDisplayChange(setDisplay), [client]);\n return display;\n};\n", "//\n// Copyright 2022 DXOS.org\n//\n\nimport { useContext } from 'react';\n\nimport { type SystemStatus } from '@dxos/client';\nimport { raise } from '@dxos/debug';\n\nimport { ClientContext } from './context';\n\nexport const useStatus = (): SystemStatus | null | undefined => {\n const { status } = useContext(ClientContext) ?? raise(new Error('Missing ClientContext.'));\n return status;\n};\n"],
5
- "mappings": "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",
6
- "names": ["React", "createContext", "useContext", "useState", "AgentManagerClient", "FakeAgentHostingProvider", "log", "React", "forwardRef", "useEffect", "useImperativeHandle", "useState", "Client", "SystemStatus", "registerSignalsRuntime", "log", "useControlledState", "getAsyncProviderValue", "createContext", "ClientContext", "createContext", "undefined", "BANNER", "client", "commitHash", "config", "get", "hash", "version", "bannerPrinted", "printBanner", "window", "location", "hostname", "console", "log", "ClientProvider", "forwardRef", "children", "config", "configProvider", "client", "clientProvider", "services", "servicesProvider", "status", "controlledStatus", "fallback", "Fallback", "signalsRuntime", "noBanner", "onInitialized", "options", "forwardedRef", "useEffect", "registerSignalsRuntime", "error", "setError", "useState", "setClient", "Client", "undefined", "useImperativeHandle", "setStatus", "useControlledState", "subscription", "subscribe", "unsubscribe", "disposed", "initialize", "initialized", "catch", "err", "log", "printBanner", "t", "setTimeout", "getAsyncProviderValue", "clearTimeout", "destroy", "then", "SystemStatus", "ACTIVE", "ClientContext", "Provider", "value", "useContext", "raise", "useClient", "client", "useContext", "ClientContext", "raise", "Error", "useEffect", "useState", "useClientStatus", "client", "status", "setStatus", "useState", "useEffect", "subscription", "subscribe", "unsubscribe", "useContext", "raise", "useConfig", "client", "useContext", "ClientContext", "raise", "Error", "config", "useEffect", "useState", "useShell", "client", "useClient", "shell", "useShellDisplay", "display", "setDisplay", "useState", "useEffect", "onDisplayChange", "useContext", "raise", "useStatus", "status", "useContext", "ClientContext", "raise", "Error", "AgentHostingContext", "createContext", "AgentHostingProvider", "props", "client", "useClient", "agentHostingProviderClient", "useState", "makeClient", "React", "Provider", "value", "children", "useAgentHostingClient", "useContext", "config", "halo", "agentHostingConfig", "get", "log", "type", "FakeAgentHostingProvider", "AgentManagerClient", "init", "error"]
7
- }