@dxos/shell 0.8.1-main.ae460ac → 0.8.1-staging.31c3ee1

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 (238) hide show
  1. package/dist/bundle/shell.js +26032 -25418
  2. package/dist/bundle/shell.js.map +1 -1
  3. package/dist/bundle/shell.umd.cjs +261 -149
  4. package/dist/bundle/shell.umd.cjs.map +1 -1
  5. package/dist/bundle/style.css +1 -1
  6. package/dist/lib/browser/meta.json +1 -1
  7. package/dist/lib/browser/react.mjs +61 -74
  8. package/dist/lib/browser/react.mjs.map +3 -3
  9. package/dist/lib/node/meta.json +1 -1
  10. package/dist/lib/node/react.cjs +60 -72
  11. package/dist/lib/node/react.cjs.map +3 -3
  12. package/dist/lib/node-esm/meta.json +1 -1
  13. package/dist/lib/node-esm/react.mjs +61 -74
  14. package/dist/lib/node-esm/react.mjs.map +3 -3
  15. package/dist/types/src/components/AgentConfig.d.ts +2 -1
  16. package/dist/types/src/components/AgentConfig.d.ts.map +1 -1
  17. package/dist/types/src/components/AgentConfig.js +38 -16
  18. package/dist/types/src/components/AgentConfig.js.map +1 -1
  19. package/dist/types/src/components/AuthCode.d.ts +2 -2
  20. package/dist/types/src/components/AuthCode.d.ts.map +1 -1
  21. package/dist/types/src/components/AuthCode.js +4 -3
  22. package/dist/types/src/components/AuthCode.js.map +1 -1
  23. package/dist/types/src/components/CompoundButton/CompoundButton.d.ts +2 -2
  24. package/dist/types/src/components/CompoundButton/CompoundButton.d.ts.map +1 -1
  25. package/dist/types/src/components/CompoundButton/CompoundButton.js +10 -2
  26. package/dist/types/src/components/CompoundButton/CompoundButton.js.map +1 -1
  27. package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts +8 -7
  28. package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts.map +1 -1
  29. package/dist/types/src/components/CompoundButton/CompoundButton.stories.js +9 -7
  30. package/dist/types/src/components/CompoundButton/CompoundButton.stories.js.map +1 -1
  31. package/dist/types/src/components/DeviceList/DeviceList.d.ts +2 -1
  32. package/dist/types/src/components/DeviceList/DeviceList.d.ts.map +1 -1
  33. package/dist/types/src/components/DeviceList/DeviceList.js +11 -4
  34. package/dist/types/src/components/DeviceList/DeviceList.js.map +1 -1
  35. package/dist/types/src/components/DeviceList/DeviceListItem.d.ts +1 -1
  36. package/dist/types/src/components/DeviceList/DeviceListItem.d.ts.map +1 -1
  37. package/dist/types/src/components/DeviceList/DeviceListItem.js +41 -15
  38. package/dist/types/src/components/DeviceList/DeviceListItem.js.map +1 -1
  39. package/dist/types/src/components/DeviceList/index.d.ts +1 -0
  40. package/dist/types/src/components/DeviceList/index.d.ts.map +1 -1
  41. package/dist/types/src/components/DeviceList/index.js +1 -0
  42. package/dist/types/src/components/DeviceList/index.js.map +1 -1
  43. package/dist/types/src/components/IdentityList/IdentityListItem.d.ts.map +1 -1
  44. package/dist/types/src/components/IdentityList/IdentityListItem.js +5 -3
  45. package/dist/types/src/components/IdentityList/IdentityListItem.js.map +1 -1
  46. package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts +3 -2
  47. package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts.map +1 -1
  48. package/dist/types/src/components/IdentityList/SpaceMemberList.js +6 -6
  49. package/dist/types/src/components/IdentityList/SpaceMemberList.js.map +1 -1
  50. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts +3 -2
  51. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts.map +1 -1
  52. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js +2 -2
  53. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js.map +1 -1
  54. package/dist/types/src/components/InvitationList/InvitationList.d.ts +2 -2
  55. package/dist/types/src/components/InvitationList/InvitationList.d.ts.map +1 -1
  56. package/dist/types/src/components/InvitationList/InvitationList.js +8 -5
  57. package/dist/types/src/components/InvitationList/InvitationList.js.map +1 -1
  58. package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts +3 -2
  59. package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts.map +1 -1
  60. package/dist/types/src/components/InvitationList/InvitationList.stories.js +2 -2
  61. package/dist/types/src/components/InvitationList/InvitationList.stories.js.map +1 -1
  62. package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts +2 -1
  63. package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts.map +1 -1
  64. package/dist/types/src/components/InvitationList/InvitationListContainer.js +2 -3
  65. package/dist/types/src/components/InvitationList/InvitationListContainer.js.map +1 -1
  66. package/dist/types/src/components/InvitationList/InvitationListItem.d.ts +3 -3
  67. package/dist/types/src/components/InvitationList/InvitationListItem.d.ts.map +1 -1
  68. package/dist/types/src/components/InvitationList/InvitationListItem.js +33 -5
  69. package/dist/types/src/components/InvitationList/InvitationListItem.js.map +1 -1
  70. package/dist/types/src/components/Panel/Action.js +23 -6
  71. package/dist/types/src/components/Panel/Action.js.map +1 -1
  72. package/dist/types/src/components/Panel/Actions.js +2 -3
  73. package/dist/types/src/components/Panel/Actions.js.map +1 -1
  74. package/dist/types/src/components/Panel/CloseButton.d.ts +2 -1
  75. package/dist/types/src/components/Panel/CloseButton.d.ts.map +1 -1
  76. package/dist/types/src/components/Panel/CloseButton.js +4 -2
  77. package/dist/types/src/components/Panel/CloseButton.js.map +1 -1
  78. package/dist/types/src/components/Panel/Emoji.d.ts +3 -3
  79. package/dist/types/src/components/Panel/Emoji.d.ts.map +1 -1
  80. package/dist/types/src/components/Panel/Emoji.js +8 -3
  81. package/dist/types/src/components/Panel/Emoji.js.map +1 -1
  82. package/dist/types/src/components/Panel/Heading.js +6 -3
  83. package/dist/types/src/components/Panel/Heading.js.map +1 -1
  84. package/dist/types/src/components/Panel/Input.d.ts +2 -2
  85. package/dist/types/src/components/Panel/Input.d.ts.map +1 -1
  86. package/dist/types/src/components/Panel/Input.js +8 -2
  87. package/dist/types/src/components/Panel/Input.js.map +1 -1
  88. package/dist/types/src/components/Panel/Label.d.ts +2 -2
  89. package/dist/types/src/components/Panel/Label.d.ts.map +1 -1
  90. package/dist/types/src/components/Panel/Label.js +5 -2
  91. package/dist/types/src/components/Panel/Label.js.map +1 -1
  92. package/dist/types/src/components/Panel/Panel.stories.d.ts +4 -3
  93. package/dist/types/src/components/Panel/Panel.stories.d.ts.map +1 -1
  94. package/dist/types/src/components/Panel/Panel.stories.js +15 -3
  95. package/dist/types/src/components/Panel/Panel.stories.js.map +1 -1
  96. package/dist/types/src/components/Panel/StepHeading.js +2 -3
  97. package/dist/types/src/components/Panel/StepHeading.js.map +1 -1
  98. package/dist/types/src/components/SpaceListItem.d.ts.map +1 -1
  99. package/dist/types/src/components/SpaceListItem.js +5 -3
  100. package/dist/types/src/components/SpaceListItem.js.map +1 -1
  101. package/dist/types/src/components/StorybookDialog.d.ts +2 -2
  102. package/dist/types/src/components/StorybookDialog.d.ts.map +1 -1
  103. package/dist/types/src/components/StorybookDialog.js +8 -2
  104. package/dist/types/src/components/StorybookDialog.js.map +1 -1
  105. package/dist/types/src/components/Viewport/Viewport.d.ts +2 -2
  106. package/dist/types/src/components/Viewport/Viewport.d.ts.map +1 -1
  107. package/dist/types/src/components/Viewport/Viewport.js +5 -5
  108. package/dist/types/src/components/Viewport/Viewport.js.map +1 -1
  109. package/dist/types/src/components/Viewport/Viewport.stories.d.ts +2 -1
  110. package/dist/types/src/components/Viewport/Viewport.stories.d.ts.map +1 -1
  111. package/dist/types/src/components/Viewport/Viewport.stories.js +22 -3
  112. package/dist/types/src/components/Viewport/Viewport.stories.js.map +1 -1
  113. package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts +2 -1
  114. package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts.map +1 -1
  115. package/dist/types/src/composites/IdentityDialog/IdentityDialog.js +11 -3
  116. package/dist/types/src/composites/IdentityDialog/IdentityDialog.js.map +1 -1
  117. package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts +2 -1
  118. package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts.map +1 -1
  119. package/dist/types/src/composites/JoinDialog/JoinDialog.js +11 -4
  120. package/dist/types/src/composites/JoinDialog/JoinDialog.js.map +1 -1
  121. package/dist/types/src/composites/Shell/Shell.d.ts +2 -1
  122. package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
  123. package/dist/types/src/composites/Shell/Shell.js +6 -7
  124. package/dist/types/src/composites/Shell/Shell.js.map +1 -1
  125. package/dist/types/src/composites/Shell/ShellContext.d.ts +2 -2
  126. package/dist/types/src/composites/Shell/ShellContext.d.ts.map +1 -1
  127. package/dist/types/src/composites/Shell/ShellContext.js +5 -3
  128. package/dist/types/src/composites/Shell/ShellContext.js.map +1 -1
  129. package/dist/types/src/composites/Shell/run-shell.js +17 -5
  130. package/dist/types/src/composites/Shell/run-shell.js.map +1 -1
  131. package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts +2 -1
  132. package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts.map +1 -1
  133. package/dist/types/src/composites/SpaceDialog/SpaceDialog.js +11 -3
  134. package/dist/types/src/composites/SpaceDialog/SpaceDialog.js.map +1 -1
  135. package/dist/types/src/composites/StatusDialog/StatusDialog.d.ts +2 -1
  136. package/dist/types/src/composites/StatusDialog/StatusDialog.d.ts.map +1 -1
  137. package/dist/types/src/composites/StatusDialog/StatusDialog.js +9 -2
  138. package/dist/types/src/composites/StatusDialog/StatusDialog.js.map +1 -1
  139. package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts +3 -2
  140. package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -1
  141. package/dist/types/src/panels/IdentityPanel/IdentityPanel.js +55 -14
  142. package/dist/types/src/panels/IdentityPanel/IdentityPanel.js.map +1 -1
  143. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts +11 -10
  144. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts.map +1 -1
  145. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js +5 -3
  146. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js.map +1 -1
  147. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts +3 -2
  148. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts.map +1 -1
  149. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js +8 -3
  150. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js.map +1 -1
  151. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts +2 -1
  152. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts.map +1 -1
  153. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js +20 -11
  154. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js.map +1 -1
  155. package/dist/types/src/panels/JoinPanel/JoinHeading.js +5 -4
  156. package/dist/types/src/panels/JoinPanel/JoinHeading.js.map +1 -1
  157. package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts +3 -2
  158. package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts.map +1 -1
  159. package/dist/types/src/panels/JoinPanel/JoinPanel.js +28 -4
  160. package/dist/types/src/panels/JoinPanel/JoinPanel.js.map +1 -1
  161. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts +15 -14
  162. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts.map +1 -1
  163. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js +16 -15
  164. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js.map +1 -1
  165. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts +2 -1
  166. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts.map +1 -1
  167. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js +8 -3
  168. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js.map +1 -1
  169. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts +2 -1
  170. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts.map +1 -1
  171. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js +10 -4
  172. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js.map +1 -1
  173. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts +3 -2
  174. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts.map +1 -1
  175. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js +7 -4
  176. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js.map +1 -1
  177. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.d.ts +2 -2
  178. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.d.ts.map +1 -1
  179. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.js +6 -4
  180. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.js.map +1 -1
  181. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts +2 -1
  182. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts.map +1 -1
  183. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js +28 -14
  184. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js.map +1 -1
  185. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts +2 -1
  186. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts.map +1 -1
  187. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js +14 -10
  188. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js.map +1 -1
  189. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts +2 -1
  190. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts.map +1 -1
  191. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js +24 -8
  192. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js.map +1 -1
  193. package/dist/types/src/panels/Panels.stories.d.ts +3 -3
  194. package/dist/types/src/panels/Panels.stories.d.ts.map +1 -1
  195. package/dist/types/src/panels/Panels.stories.js +8 -3
  196. package/dist/types/src/panels/Panels.stories.js.map +1 -1
  197. package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts +3 -2
  198. package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts.map +1 -1
  199. package/dist/types/src/panels/SpacePanel/SpacePanel.js +15 -6
  200. package/dist/types/src/panels/SpacePanel/SpacePanel.js.map +1 -1
  201. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts +18 -17
  202. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts.map +1 -1
  203. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js +38 -30
  204. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js.map +1 -1
  205. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts +3 -3
  206. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts.map +1 -1
  207. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js +14 -4
  208. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js.map +1 -1
  209. package/dist/types/src/panels/StatusPanel/StatusPanel.d.ts +2 -1
  210. package/dist/types/src/panels/StatusPanel/StatusPanel.d.ts.map +1 -1
  211. package/dist/types/src/panels/StatusPanel/StatusPanel.js +7 -2
  212. package/dist/types/src/panels/StatusPanel/StatusPanel.js.map +1 -1
  213. package/dist/types/src/steps/ConfirmReset.d.ts +3 -2
  214. package/dist/types/src/steps/ConfirmReset.d.ts.map +1 -1
  215. package/dist/types/src/steps/ConfirmReset.js +19 -10
  216. package/dist/types/src/steps/ConfirmReset.js.map +1 -1
  217. package/dist/types/src/steps/InvitationManager.d.ts +2 -1
  218. package/dist/types/src/steps/InvitationManager.d.ts.map +1 -1
  219. package/dist/types/src/steps/InvitationManager.js +21 -4
  220. package/dist/types/src/steps/InvitationManager.js.map +1 -1
  221. package/dist/types/src/stories/Invitations.e2e-stories.d.ts +2 -1
  222. package/dist/types/src/stories/Invitations.e2e-stories.d.ts.map +1 -1
  223. package/dist/types/src/stories/Invitations.e2e-stories.js +40 -13
  224. package/dist/types/src/stories/Invitations.e2e-stories.js.map +1 -1
  225. package/dist/types/src/translations/locales/en-US.js +5 -5
  226. package/dist/types/src/translations/locales/en-US.js.map +1 -1
  227. package/package.json +29 -29
  228. package/src/components/AgentConfig.tsx +8 -12
  229. package/src/components/DeviceList/DeviceList.tsx +1 -1
  230. package/src/components/DeviceList/DeviceListItem.tsx +49 -62
  231. package/src/components/DeviceList/index.ts +1 -0
  232. package/src/components/IdentityList/IdentityListItem.tsx +7 -8
  233. package/src/components/InvitationList/InvitationListItem.tsx +12 -7
  234. package/src/components/SpaceListItem.tsx +1 -3
  235. package/src/components/Viewport/Viewport.tsx +2 -1
  236. package/src/panels/IdentityPanel/IdentityPanel.tsx +16 -5
  237. package/src/panels/JoinPanel/steps/IdentityAdded.tsx +6 -4
  238. package/src/translations/locales/en-US.ts +5 -5
@@ -1,10 +1,9 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
1
  //
3
2
  // Copyright 2023 DXOS.org
4
3
  //
5
4
  import '@dxos-theme';
6
5
  import { Laptop, Planet, Plus, PlusCircle, SignIn, QrCode, WifiHigh, WifiSlash } from '@phosphor-icons/react';
7
- import { useMemo, useState } from 'react';
6
+ import React, { useMemo, useState } from 'react';
8
7
  import { log } from '@dxos/log';
9
8
  import { faker } from '@dxos/random';
10
9
  import { useClient } from '@dxos/react-client';
@@ -40,23 +39,32 @@ const Panel = ({ id, panel, setPanel }) => {
40
39
  }
41
40
  }, [panel]);
42
41
  if (panel && typeof panel !== 'string') {
43
- return _jsx(SpacePanel, { space: panel, createInvitationUrl: createInvitationUrl });
42
+ return React.createElement(SpacePanel, { space: panel, createInvitationUrl: createInvitationUrl });
44
43
  }
45
44
  switch (panel) {
46
45
  case 'identity': {
47
- return _jsx(JoinPanel, { mode: 'halo-only', onDone: () => setPanel(undefined), onExit: () => setPanel(undefined) });
46
+ return React.createElement(JoinPanel, { mode: 'halo-only', onDone: () => setPanel(undefined), onExit: () => setPanel(undefined) });
48
47
  }
49
48
  case 'devices': {
50
- return _jsx(IdentityPanel, { createInvitationUrl: createInvitationUrl, onDone: () => setPanel(undefined) });
49
+ return React.createElement(IdentityPanel, { createInvitationUrl: createInvitationUrl, onDone: () => setPanel(undefined) });
51
50
  }
52
51
  case 'join': {
53
- return _jsx(JoinPanel, { onDone: () => setPanel(undefined), onExit: () => setPanel(undefined) });
52
+ return React.createElement(JoinPanel, { onDone: () => setPanel(undefined), onExit: () => setPanel(undefined) });
54
53
  }
55
54
  default: {
56
55
  // TODO(wittjosiah): Tooltips make playwright (webkit) flakier.
57
- const controls = (_jsxs(ButtonGroup, { classNames: 'mbe-4', children: [_jsx(Button, { onClick: () => client.spaces.create({ name: faker.commerce.productName() }), "data-testid": 'invitations.create-space', children: _jsx(PlusCircle, { className: getSize(6) }) }), _jsx(Button, { onClick: () => setPanel('join'), "data-testid": 'invitations.open-join-space', children: _jsx(SignIn, { weight: 'fill', className: getSize(6) }) })] }));
58
- const header = (_jsxs("div", { className: 'flex', children: ["Spaces", _jsx("span", { className: 'grow' }), controls] }));
59
- return (_jsxs("div", { children: [_jsx("h1", { children: header }), spaces.length > 0 ? (_jsx(List, { children: spaces.map((space) => (_jsx(SpaceListItem, { space: space, onClick: () => setPanel(space) }, space.key.toHex()))) })) : (_jsx("div", { className: 'text-center', children: "No spaces" }))] }));
56
+ const controls = (React.createElement(ButtonGroup, { classNames: 'mbe-4' },
57
+ React.createElement(Button, { onClick: () => client.spaces.create({ name: faker.commerce.productName() }), "data-testid": 'invitations.create-space' },
58
+ React.createElement(PlusCircle, { className: getSize(6) })),
59
+ React.createElement(Button, { onClick: () => setPanel('join'), "data-testid": 'invitations.open-join-space' },
60
+ React.createElement(SignIn, { weight: 'fill', className: getSize(6) }))));
61
+ const header = (React.createElement("div", { className: 'flex' },
62
+ "Spaces",
63
+ React.createElement("span", { className: 'grow' }),
64
+ controls));
65
+ return (React.createElement("div", null,
66
+ React.createElement("h1", null, header),
67
+ spaces.length > 0 ? (React.createElement(List, null, spaces.map((space) => (React.createElement(SpaceListItem, { key: space.key.toHex(), space: space, onClick: () => setPanel(space) }))))) : (React.createElement("div", { className: 'text-center' }, "No spaces"))));
60
68
  }
61
69
  }
62
70
  };
@@ -78,9 +86,27 @@ const Invitations = () => {
78
86
  };
79
87
  }, [client]);
80
88
  // TODO(wittjosiah): Tooltips make playwright (webkit) flakier.
81
- const controls = (_jsxs(ButtonGroup, { classNames: 'mbe-4', children: [_jsx(Button, { onClick: () => client.halo.createIdentity({ displayName: faker.person.firstName() }), disabled: Boolean(identity), "data-testid": 'invitations.create-identity', children: _jsx(Plus, { className: getSize(6) }) }), _jsx(Button, { onClick: () => setPanel('identity'), disabled: panel === 'identity', "data-testid": 'invitations.open-join-identity', children: _jsx(QrCode, { weight: 'fill', className: getSize(6) }) }), _jsx(Button, { onClick: () => setPanel('devices'), disabled: !identity || panel === 'devices', "data-testid": 'invitations.open-devices', children: _jsx(Laptop, { weight: 'fill', className: getSize(6) }) }), _jsx(Button, { onClick: () => setPanel(undefined), disabled: !panel, "data-testid": 'invitations.list-spaces', children: _jsx(Planet, { weight: 'fill', className: getSize(6) }) }), _jsx(Button, { onClick: () => client.mesh.updateConfig(networkStatus === ConnectionState.ONLINE ? ConnectionState.OFFLINE : ConnectionState.ONLINE), "data-testid": 'invitations.toggle-network', children: networkStatus === ConnectionState.ONLINE ? (_jsx(WifiHigh, { weight: 'fill', className: getSize(6) })) : (_jsx(WifiSlash, { weight: 'fill', className: getSize(6) })) })] }));
82
- const header = (_jsxs("div", { className: 'flex', "data-testid": 'invitations.identity-header', children: ["Identity", _jsx("span", { className: 'grow' }), controls] }));
83
- return (_jsxs("div", { className: 'flex flex-col m-4 flex-1 min-w-0', "data-testid": `peer-${id}`, children: [_jsxs("div", { className: `${groupSurface} rounded p-2 mbe-2`, children: [_jsx("h1", { children: header }), identity ? (_jsx(List, { children: _jsx(IdentityListItem, { identity: identity, presence: networkStatus }) })) : (_jsx("div", { className: 'text-center', children: "No identity" }))] }), identity || panel ? (_jsx("div", { className: `${groupSurface} rounded p-2`, children: _jsx(Panel, { id: id, panel: panel, setPanel: setPanel }) })) : null] }));
89
+ const controls = (React.createElement(ButtonGroup, { classNames: 'mbe-4' },
90
+ React.createElement(Button, { onClick: () => client.halo.createIdentity({ displayName: faker.person.firstName() }), disabled: Boolean(identity), "data-testid": 'invitations.create-identity' },
91
+ React.createElement(Plus, { className: getSize(6) })),
92
+ React.createElement(Button, { onClick: () => setPanel('identity'), disabled: panel === 'identity', "data-testid": 'invitations.open-join-identity' },
93
+ React.createElement(QrCode, { weight: 'fill', className: getSize(6) })),
94
+ React.createElement(Button, { onClick: () => setPanel('devices'), disabled: !identity || panel === 'devices', "data-testid": 'invitations.open-devices' },
95
+ React.createElement(Laptop, { weight: 'fill', className: getSize(6) })),
96
+ React.createElement(Button, { onClick: () => setPanel(undefined), disabled: !panel, "data-testid": 'invitations.list-spaces' },
97
+ React.createElement(Planet, { weight: 'fill', className: getSize(6) })),
98
+ React.createElement(Button, { onClick: () => client.mesh.updateConfig(networkStatus === ConnectionState.ONLINE ? ConnectionState.OFFLINE : ConnectionState.ONLINE), "data-testid": 'invitations.toggle-network' }, networkStatus === ConnectionState.ONLINE ? (React.createElement(WifiHigh, { weight: 'fill', className: getSize(6) })) : (React.createElement(WifiSlash, { weight: 'fill', className: getSize(6) })))));
99
+ const header = (React.createElement("div", { className: 'flex', "data-testid": 'invitations.identity-header' },
100
+ "Identity",
101
+ React.createElement("span", { className: 'grow' }),
102
+ controls));
103
+ return (React.createElement("div", { className: 'flex flex-col m-4 flex-1 min-w-0', "data-testid": `peer-${id}` },
104
+ React.createElement("div", { className: `${groupSurface} rounded p-2 mbe-2` },
105
+ React.createElement("h1", null, header),
106
+ identity ? (React.createElement(List, null,
107
+ React.createElement(IdentityListItem, { identity: identity, presence: networkStatus }))) : (React.createElement("div", { className: 'text-center' }, "No identity"))),
108
+ identity || panel ? (React.createElement("div", { className: `${groupSurface} rounded p-2` },
109
+ React.createElement(Panel, { id: id, panel: panel, setPanel: setPanel }))) : null));
84
110
  };
85
111
  // TODO(wittjosiah): This story fails to start in Safari/Webkit.
86
112
  // The issue appears to be related to dynamic imports during client initialization.
@@ -89,7 +115,8 @@ export const Default = {
89
115
  render: () => {
90
116
  return (
91
117
  // TODO(wittjosiah): Include Clipboard.Provider in layout decorator.
92
- _jsx(Clipboard.Provider, { children: _jsx(Invitations, {}) }));
118
+ React.createElement(Clipboard.Provider, null,
119
+ React.createElement(Invitations, null)));
93
120
  },
94
121
  decorators: [
95
122
  withMultiClientProvider({ numClients: 3 }),
@@ -1 +1 @@
1
- {"version":3,"file":"Invitations.e2e-stories.js","sourceRoot":"","sources":["../../../../src/stories/Invitations.e2e-stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC9G,OAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAgC,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,u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C;IACD,UAAU,EAAE;QACV,uBAAuB,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC;QAC1C,UAAU,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,kBAAkB,EAAE,CAAC;QAC9D,SAAS;KACV;IACD,UAAU,EAAE;QACV,SAAS,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE;QACpC,YAAY,EAAE,CAAC,cAAc,CAAC;KAC/B;CACF,CAAC"}
@@ -86,15 +86,15 @@ export const os = {
86
86
  'device list heading': 'Devices',
87
87
  'space member list heading': 'Members',
88
88
  'space panel heading': 'Space membership',
89
- 'auth code message': 'Enter the following auth code on the joining device.',
90
- 'auth other device emoji message': 'Be sure the other device shows the following symbol:',
89
+ 'auth code message': 'Enter the following auth code on the joining device. Click the code to copy it.',
90
+ 'auth other device emoji message': 'Be sure the other device shows the following emoji.',
91
91
  'display name input label': 'Display name',
92
92
  'display name input placeholder': 'Enter a display name',
93
- 'invite one label': 'Single-use invitation',
93
+ 'invite one label': 'Create single-use invitation',
94
94
  'invite one description': 'Only one user may join.',
95
95
  'invite one qr label': 'Single-use invitation',
96
96
  'invite one list item label': 'Active single-use invitation',
97
- 'invite many label': 'Multi-use invitation',
97
+ 'invite many label': 'Create multi-use invitation',
98
98
  'invite many description': 'Anyone with the link can join.',
99
99
  'invite many qr label': 'Multi-use invitation',
100
100
  'invite many list item label': 'Active multi-use invitation',
@@ -108,7 +108,7 @@ export const os = {
108
108
  'confirmation placeholder': 'Enter {{confirmationValue}} to continue.',
109
109
  'sign out chooser title': 'Danger zone',
110
110
  'sign out chooser message': 'Proceeding with the action below will erase all data on this device.',
111
- 'join new identity label': 'Join a new identity',
111
+ 'join new identity label': 'Join an existing identity',
112
112
  'reset device label': 'Reset storage',
113
113
  'reset device confirm message': 'Are you sure you want to reset your device? All data will be lost.',
114
114
  'emoji and color label': 'Emoji and color',
@@ -1 +1 @@
1
- {"version":3,"file":"en-US.js","sourceRoot":"","sources":["../../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AS;IAC1B,YAAY,EAAE,MAAM;IACpB,YAAY,EAAE,MAAM;IAEpB,oBAAoB,EAAE,cAAc;IACpC,WAAW,EAAE,KAAK;IAClB,YAAY,EAAE,MAAM;IACpB,0BAA0B,EAAE,aAAa;IACzC,yBAAyB,EAAE,wBAAwB;IACnD,oBAAoB,EAAE,cAAc;IACpC,kBAAkB,EAAE,YAAY;IAChC,eAAe,EAAE,WAAW;IAC5B,mBAAmB,EAAE,2BAA2B;IAChD,eAAe,EAAE,OAAO;IACxB,wBAAwB,EACtB,yGAAyG;IAC3G,0BAA0B,EACxB,qMAAqM;IACvM,oBAAoB,EAAE,gBAAgB;IACtC,qBAAqB,EAAE,iBAAiB;IACxC,oBAAoB,EAAE,YAAY;IAClC,sBAAsB,EAAE,yBAAyB;IACjD,sBAAsB,EAAE,iBAAiB;IACzC,wBAAwB,EAAE,iBAAiB;IAC3C,qBAAqB,EAAE,wBAAwB;IAC/C,uBAAuB,EAAE,iBAAiB;IAC1C,6BAA6B,EAC3B,+GAA+G;IACjH,sBAAsB,EAAE,iBAAiB;IACzC,4BAA4B,EAAE,sBAAsB;IACpD,+BAA+B,EAAE,kBAAkB;CACpD,CAAC"}
1
+ {"version":3,"file":"en-US.js","sourceRoot":"","sources":["../../../../../src/translations/locales/en-US.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG;IAChB,sBAAsB,EAAE,iBAAiB;IACzC,8BAA8B,EAAE,SAAS;IACzC,eAAe,EAAE,cAAc;IAC/B,4BAA4B,EAAE,UAAU;IACxC,oBAAoB,EAAE,QAAQ;IAC9B,qBAAqB,EAAE,UAAU;IACjC,wBAAwB,EAAE,cAAc;IACxC,0BAA0B,EAAE,oBAAoB;IAChD,uBAAuB,EAAE,eAAe;IACxC,oBAAoB,EAAE,wBAAwB;IAC9C,cAAc,EAAE,4BAA4B;IAC5C,YAAY,EAAE,MAAM;IACpB,yBAAyB,E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Y;IAClC,sBAAsB,EAAE,yBAAyB;IACjD,sBAAsB,EAAE,iBAAiB;IACzC,wBAAwB,EAAE,iBAAiB;IAC3C,qBAAqB,EAAE,wBAAwB;IAC/C,uBAAuB,EAAE,iBAAiB;IAC1C,6BAA6B,EAC3B,+GAA+G;IACjH,sBAAsB,EAAE,iBAAiB;IACzC,4BAA4B,EAAE,sBAAsB;IACpD,+BAA+B,EAAE,kBAAkB;CACpD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/shell",
3
- "version": "0.8.1-main.ae460ac",
3
+ "version": "0.8.1-staging.31c3ee1",
4
4
  "description": "DXOS’s OS experiences",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -10,8 +10,8 @@
10
10
  "type": "module",
11
11
  "exports": {
12
12
  ".": {
13
- "default": "./dist/bundle/shell.js",
14
- "types": "./dist/types/src/index.d.ts"
13
+ "types": "./dist/types/src/index.d.ts",
14
+ "default": "./dist/bundle/shell.js"
15
15
  },
16
16
  "./style.css": "./dist/bundle/style.css",
17
17
  "./react": {
@@ -46,7 +46,7 @@
46
46
  "dependencies": {
47
47
  "@emoji-mart/data": "^1.1.2",
48
48
  "@emoji-mart/react": "^1.1.1",
49
- "@fluentui/react-tabster": "9.23.3",
49
+ "@fluentui/react-tabster": "^9.24.2",
50
50
  "@radix-ui/react-accordion": "1.2.3",
51
51
  "@radix-ui/react-context": "1.1.1",
52
52
  "@radix-ui/react-radio-group": "1.2.3",
@@ -57,19 +57,19 @@
57
57
  "react-qr-rounded": "^1.0.0",
58
58
  "url-join": "^5.0.0",
59
59
  "xstate": "^4.37.0",
60
- "@dxos/client-services": "0.8.1-main.ae460ac",
61
- "@dxos/debug": "0.8.1-main.ae460ac",
62
- "@dxos/async": "0.8.1-main.ae460ac",
63
- "@dxos/invariant": "0.8.1-main.ae460ac",
64
- "@dxos/client-protocol": "0.8.1-main.ae460ac",
65
- "@dxos/display-name": "0.8.1-main.ae460ac",
66
- "@dxos/log": "0.8.1-main.ae460ac",
67
- "@dxos/protocols": "0.8.1-main.ae460ac",
68
- "@dxos/react-ui-pickers": "0.8.1-main.ae460ac",
69
- "@dxos/rpc": "0.8.1-main.ae460ac",
70
- "@dxos/rpc-tunnel": "0.8.1-main.ae460ac",
71
- "@dxos/util": "0.8.1-main.ae460ac",
72
- "@dxos/react-ui-types": "0.8.1-main.ae460ac"
60
+ "@dxos/async": "0.8.1-staging.31c3ee1",
61
+ "@dxos/client-protocol": "0.8.1-staging.31c3ee1",
62
+ "@dxos/client-services": "0.8.1-staging.31c3ee1",
63
+ "@dxos/display-name": "0.8.1-staging.31c3ee1",
64
+ "@dxos/log": "0.8.1-staging.31c3ee1",
65
+ "@dxos/invariant": "0.8.1-staging.31c3ee1",
66
+ "@dxos/protocols": "0.8.1-staging.31c3ee1",
67
+ "@dxos/debug": "0.8.1-staging.31c3ee1",
68
+ "@dxos/react-ui-pickers": "0.8.1-staging.31c3ee1",
69
+ "@dxos/react-ui-types": "0.8.1-staging.31c3ee1",
70
+ "@dxos/rpc": "0.8.1-staging.31c3ee1",
71
+ "@dxos/rpc-tunnel": "0.8.1-staging.31c3ee1",
72
+ "@dxos/util": "0.8.1-staging.31c3ee1"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@phosphor-icons/react": "^2.1.5",
@@ -79,25 +79,25 @@
79
79
  "react": "~18.2.0",
80
80
  "react-dom": "~18.2.0",
81
81
  "vite": "5.4.7",
82
- "@dxos/config": "0.8.1-main.ae460ac",
83
- "@dxos/protocols": "0.8.1-main.ae460ac",
84
- "@dxos/react-client": "0.8.1-main.ae460ac",
85
- "@dxos/random": "0.8.1-main.ae460ac",
86
- "@dxos/react-hooks": "0.8.1-main.ae460ac",
87
- "@dxos/react-ui": "0.8.1-main.ae460ac",
88
- "@dxos/react-ui-theme": "0.8.1-main.ae460ac",
89
- "@dxos/storybook-utils": "0.8.1-main.ae460ac",
90
- "@dxos/test-utils": "0.8.1-main.ae460ac"
82
+ "@dxos/protocols": "0.8.1-staging.31c3ee1",
83
+ "@dxos/random": "0.8.1-staging.31c3ee1",
84
+ "@dxos/config": "0.8.1-staging.31c3ee1",
85
+ "@dxos/react-client": "0.8.1-staging.31c3ee1",
86
+ "@dxos/react-hooks": "0.8.1-staging.31c3ee1",
87
+ "@dxos/react-ui-theme": "0.8.1-staging.31c3ee1",
88
+ "@dxos/storybook-utils": "0.8.1-staging.31c3ee1",
89
+ "@dxos/test-utils": "0.8.1-staging.31c3ee1",
90
+ "@dxos/react-ui": "0.8.1-staging.31c3ee1"
91
91
  },
92
92
  "peerDependencies": {
93
93
  "react": "~18.2.0",
94
94
  "react-dom": "~18.2.0",
95
- "@dxos/react-client": "0.8.1-main.ae460ac"
95
+ "@dxos/react-client": "0.8.1-staging.31c3ee1"
96
96
  },
97
97
  "optionalDependencies": {
98
98
  "@phosphor-icons/react": "^2.1.5",
99
- "@dxos/react-ui-theme": "0.8.1-main.ae460ac",
100
- "@dxos/react-ui": "0.8.1-main.ae460ac"
99
+ "@dxos/react-ui": "0.8.1-staging.31c3ee1",
100
+ "@dxos/react-ui-theme": "0.8.1-staging.31c3ee1"
101
101
  },
102
102
  "publishConfig": {
103
103
  "access": "public"
@@ -2,7 +2,7 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- import { ArrowsClockwise, Database, Plus, Power } from '@phosphor-icons/react';
5
+ import { ArrowsClockwise, Plus, Power } from '@phosphor-icons/react';
6
6
  import React from 'react';
7
7
 
8
8
  import { Avatar, Button, Link, Tooltip, Trans, useTranslation } from '@dxos/react-ui';
@@ -36,17 +36,13 @@ export const AgentConfig = ({
36
36
  className='mlb-2 flex gap-2 items-center'
37
37
  aria-describedby='devices-panel.create-agent.description'
38
38
  >
39
- <Avatar.Root status={agentStatus === 'created' ? 'warning' : 'inactive'} variant='square'>
40
- <Avatar.Frame classNames='place-self-center'>
41
- <Database
42
- weight='duotone'
43
- width={24}
44
- height={24}
45
- x={8}
46
- y={8}
47
- {...(agentStatus !== 'created' && { className: 'opacity-50' })}
48
- />
49
- </Avatar.Frame>
39
+ <Avatar.Root>
40
+ <Avatar.Content
41
+ status={agentStatus === 'created' ? 'warning' : 'inactive'}
42
+ variant='square'
43
+ classNames={['place-self-center', agentStatus !== 'created' && 'opactiy-50']}
44
+ icon='ph--database--duotone'
45
+ />
50
46
  <Avatar.Label classNames='flex-1 text-sm truncate'>
51
47
  {t(
52
48
  agentStatus === 'created'
@@ -21,7 +21,7 @@ export const DeviceList = ({
21
21
  onClickRecover,
22
22
  onClickJoinExisting,
23
23
  onAgentDestroy,
24
- }: DeviceListProps & Pick<AgentFormProps, 'onAgentDestroy'>) => {
24
+ }: DeviceListProps & Partial<Pick<AgentFormProps, 'onAgentDestroy'>>) => {
25
25
  const { t } = useTranslation('os');
26
26
  return (
27
27
  <div role='none' className='p-1'>
@@ -2,19 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import {
6
- type IconProps,
7
- Compass,
8
- Desktop,
9
- DeviceMobile,
10
- Devices,
11
- DotsThree,
12
- ShareFat,
13
- Power,
14
- Robot,
15
- Database,
16
- FirstAidKit,
17
- } from '@phosphor-icons/react';
5
+ import { DotsThree, ShareFat, Power, FirstAidKit } from '@phosphor-icons/react';
18
6
  import React, { type ComponentPropsWithoutRef, forwardRef } from 'react';
19
7
 
20
8
  import { generateName } from '@dxos/display-name';
@@ -35,17 +23,11 @@ import { keyToFallback } from '@dxos/util';
35
23
 
36
24
  import { type AgentFormProps, type DeviceListItemProps } from './DeviceListProps';
37
25
 
38
- const iconProps: IconProps = {
39
- weight: 'duotone',
40
- width: 24,
41
- height: 24,
42
- x: 8,
43
- y: 8,
44
- };
45
-
46
26
  export const DeviceListItem = forwardRef<
47
27
  HTMLLIElement,
48
- ThemedClassName<ComponentPropsWithoutRef<'li'>> & DeviceListItemProps & Pick<AgentFormProps, 'onAgentDestroy'>
28
+ ThemedClassName<ComponentPropsWithoutRef<'li'>> &
29
+ DeviceListItemProps &
30
+ Partial<Pick<AgentFormProps, 'onAgentDestroy'>>
49
31
  >(
50
32
  (
51
33
  {
@@ -77,37 +59,35 @@ export const DeviceListItem = forwardRef<
77
59
  labelId={labelId}
78
60
  ref={forwardedRef}
79
61
  >
80
- <Avatar.Root
81
- status={
82
- isCurrent && connectionState === ConnectionState.OFFLINE
83
- ? 'error'
84
- : device.presence === Device.PresenceState.ONLINE
85
- ? 'active'
86
- : 'inactive'
87
- }
88
- labelId={labelId}
89
- hue={fallbackValue.hue}
90
- variant='square'
91
- >
92
- <Avatar.Frame classNames='place-self-center'>
93
- {device.profile?.type ? (
94
- device.profile.type === DeviceType.AGENT_MANAGED ? (
95
- <Database {...iconProps} />
96
- ) : device.profile.type === DeviceType.BROWSER ? (
97
- <Compass {...iconProps} />
98
- ) : device.profile.type === DeviceType.NATIVE ? (
99
- <Desktop {...iconProps} />
100
- ) : [DeviceType.AGENT, DeviceType.AGENT_MANAGED].includes(device.profile.type) ? (
101
- <Robot {...iconProps} />
102
- ) : device.profile.type === DeviceType.MOBILE ? (
103
- <DeviceMobile {...iconProps} />
104
- ) : (
105
- <Devices {...iconProps} />
106
- )
107
- ) : (
108
- <Avatar.Fallback text={fallbackValue.emoji} />
109
- )}
110
- </Avatar.Frame>
62
+ <Avatar.Root labelId={labelId}>
63
+ <Avatar.Content
64
+ status={
65
+ isCurrent && connectionState === ConnectionState.OFFLINE
66
+ ? 'error'
67
+ : device.presence === Device.PresenceState.ONLINE
68
+ ? 'active'
69
+ : 'inactive'
70
+ }
71
+ hue={fallbackValue.hue}
72
+ variant='square'
73
+ classNames='place-self-center'
74
+ {...(device.profile?.type
75
+ ? {
76
+ icon:
77
+ device.profile.type === DeviceType.AGENT_MANAGED
78
+ ? 'ph--database--regular'
79
+ : device.profile.type === DeviceType.BROWSER
80
+ ? 'ph--compass--regular'
81
+ : device.profile.type === DeviceType.NATIVE
82
+ ? 'ph--desktop--regular'
83
+ : [DeviceType.AGENT, DeviceType.AGENT_MANAGED].includes(device.profile.type)
84
+ ? 'ph--robot--regular'
85
+ : device.profile.type === DeviceType.MOBILE
86
+ ? 'ph--device-mobile--regular'
87
+ : 'ph--devices--regular',
88
+ }
89
+ : { fallback: fallbackValue.emoji })}
90
+ />
111
91
  <Avatar.Label classNames='flex-1 text-sm truncate'>{displayName}</Avatar.Label>
112
92
  {isCurrent && <Tag color='primary'>{t('current device tag label')}</Tag>}
113
93
  {/* TODO(wittjosiah): EDGE agents cannot current be turned off. */}
@@ -131,7 +111,7 @@ export const DeviceListItem = forwardRef<
131
111
  </Tooltip.Portal>
132
112
  </Tooltip.Root>
133
113
  )} */}
134
- {device.kind === DeviceKind.CURRENT && (
114
+ {device.kind === DeviceKind.CURRENT && (onClickJoinExisting || onClickRecover || onClickReset) && (
135
115
  <DropdownMenu.Root>
136
116
  <DropdownMenu.Trigger asChild>
137
117
  <Button
@@ -149,20 +129,27 @@ export const DeviceListItem = forwardRef<
149
129
  {/* <PencilSimpleLine className={getSize(5)} /> */}
150
130
  {/* {t('edit device label')} */}
151
131
  {/* </DropdownMenu.Item> */}
152
- <DropdownMenu.Item data-testid='device-list-item-current.join-existing' onClick={onClickJoinExisting}>
153
- <ShareFat className={getSize(5)} />
154
- {t('choose join new identity label')}
155
- </DropdownMenu.Item>
132
+ {onClickJoinExisting && (
133
+ <DropdownMenu.Item
134
+ data-testid='device-list-item-current.join-existing'
135
+ onClick={onClickJoinExisting}
136
+ >
137
+ <ShareFat className={getSize(5)} />
138
+ {t('choose join new identity label')}
139
+ </DropdownMenu.Item>
140
+ )}
156
141
  {onClickRecover && (
157
142
  <DropdownMenu.Item data-testid='device-list-item-current.recover' onClick={onClickRecover}>
158
143
  <FirstAidKit className={getSize(5)} />
159
144
  {t('choose recover identity label')}
160
145
  </DropdownMenu.Item>
161
146
  )}
162
- <DropdownMenu.Item data-testid='device-list-item-current.reset' onClick={onClickReset}>
163
- <Power className={getSize(5)} />
164
- {t('reset device label')}
165
- </DropdownMenu.Item>
147
+ {onClickReset && (
148
+ <DropdownMenu.Item data-testid='device-list-item-current.reset' onClick={onClickReset}>
149
+ <Power className={getSize(5)} />
150
+ {t('reset device label')}
151
+ </DropdownMenu.Item>
152
+ )}
166
153
  </DropdownMenu.Viewport>
167
154
  </DropdownMenu.Content>
168
155
  </DropdownMenu.Root>
@@ -3,4 +3,5 @@
3
3
  //
4
4
 
5
5
  export * from './DeviceList';
6
+ export * from './DeviceListItem';
6
7
  export * from './DeviceListProps';
@@ -33,14 +33,13 @@ export const IdentityListItem = forwardRef<
33
33
  labelId={labelId}
34
34
  ref={forwardedRef}
35
35
  >
36
- <Avatar.Root
37
- status={presence === SpaceMember.PresenceState.ONLINE ? 'active' : 'inactive'}
38
- labelId={labelId}
39
- hue={identity.profile?.data?.hue || fallbackValue.hue}
40
- >
41
- <Avatar.Frame classNames='place-self-center'>
42
- <Avatar.Fallback text={identity.profile?.data?.emoji || fallbackValue.emoji} />
43
- </Avatar.Frame>
36
+ <Avatar.Root labelId={labelId}>
37
+ <Avatar.Content
38
+ status={presence === SpaceMember.PresenceState.ONLINE ? 'active' : 'inactive'}
39
+ hue={identity.profile?.data?.hue || fallbackValue.hue}
40
+ fallback={identity.profile?.data?.emoji || fallbackValue.emoji}
41
+ classNames='place-self-center'
42
+ />
44
43
  <Avatar.Label classNames='text-sm truncate pli-2'>{displayName}</Avatar.Label>
45
44
  </Avatar.Root>
46
45
  </ListItem.Root>
@@ -18,9 +18,9 @@ import {
18
18
  useTranslation,
19
19
  Avatar,
20
20
  useThemeContext,
21
- type AvatarRootProps,
22
21
  Tooltip,
23
22
  type ThemedClassName,
23
+ type AvatarContentProps,
24
24
  } from '@dxos/react-ui';
25
25
  import { focusRing, getSize, mx } from '@dxos/react-ui-theme';
26
26
  import { hexToEmoji } from '@dxos/util';
@@ -44,13 +44,13 @@ export const InvitationListItem = (props: InvitationListItemProps) => {
44
44
  return <InvitationListItemImpl {...props} invitationStatus={invitationStatus} />;
45
45
  };
46
46
 
47
- const avatarProps: Pick<AvatarRootProps, 'size' | 'variant'> = { size: 10, variant: 'circle' };
47
+ const avatarProps: Pick<AvatarContentProps, 'size' | 'variant'> = { size: 10, variant: 'circle' };
48
48
 
49
49
  const AvatarStackEffect = ({
50
50
  animation,
51
51
  status,
52
52
  reverseEffects,
53
- }: Pick<AvatarRootProps, 'status' | 'animation'> & Pick<InvitationListItemProps, 'reverseEffects'>) => {
53
+ }: Pick<AvatarContentProps, 'status' | 'animation'> & Pick<InvitationListItemProps, 'reverseEffects'>) => {
54
54
  const { tx } = useThemeContext();
55
55
  return (
56
56
  <>
@@ -154,11 +154,16 @@ export const InvitationListItemImpl = ({
154
154
  <AvatarStackEffect status={avatarStatus} animation={avatarAnimation} reverseEffects={reverseEffects} />
155
155
  )}
156
156
  <Tooltip.Root>
157
- <Avatar.Root {...avatarProps} animation={avatarAnimation} status={avatarStatus}>
157
+ <Avatar.Root>
158
158
  <Tooltip.Trigger asChild>
159
- <Avatar.Frame tabIndex={0} classNames={[focusRing, 'relative rounded-full place-self-center']}>
160
- <Avatar.Fallback text={hexToEmoji(invitationId)} />
161
- </Avatar.Frame>
159
+ <Avatar.Content
160
+ {...avatarProps}
161
+ animation={avatarAnimation}
162
+ status={avatarStatus}
163
+ fallback={hexToEmoji(invitationId)}
164
+ tabIndex={0}
165
+ classNames={[focusRing, 'relative rounded-full place-self-center']}
166
+ />
162
167
  </Tooltip.Trigger>
163
168
  </Avatar.Root>
164
169
  <Tooltip.Portal>
@@ -23,9 +23,7 @@ export const SpaceListItem = forwardRef(
23
23
  data-testid='space-list-item'
24
24
  >
25
25
  <Avatar.Root labelId={labelId}>
26
- <Avatar.Frame>
27
- <Avatar.Fallback text={fallbackValue} />
28
- </Avatar.Frame>
26
+ <Avatar.Content fallback={fallbackValue} />
29
27
  <Avatar.Label classNames='text-sm truncate'>{displayName}</Avatar.Label>
30
28
  </Avatar.Root>
31
29
  </li>
@@ -8,9 +8,9 @@ import { useControllableState } from '@radix-ui/react-use-controllable-state';
8
8
  import React, {
9
9
  type ComponentPropsWithRef,
10
10
  type Dispatch,
11
- forwardRef,
12
11
  type ReactNode,
13
12
  type SetStateAction,
13
+ forwardRef,
14
14
  useEffect,
15
15
  } from 'react';
16
16
 
@@ -100,6 +100,7 @@ const ViewportView = forwardRef<HTMLDivElement, ViewportScopedProps<ViewportView
100
100
  findFirstFocusable(ref.current)?.focus();
101
101
  }
102
102
  }, [focusManaged, ref.current, isActive]);
103
+
103
104
  return (
104
105
  <section
105
106
  {...props}