@dxos/shell 0.7.5-main.2567c87 → 0.7.5-main.5ae2ba8

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 (372) hide show
  1. package/dist/bundle/{shell.mjs → shell.js} +20862 -21881
  2. package/dist/bundle/shell.js.map +1 -0
  3. package/dist/bundle/shell.umd.cjs +1045 -0
  4. package/dist/bundle/shell.umd.cjs.map +1 -0
  5. package/dist/bundle/style.css +1 -1
  6. package/dist/lib/browser/meta.json +1 -1
  7. package/dist/lib/browser/react.mjs +556 -804
  8. package/dist/lib/browser/react.mjs.map +4 -4
  9. package/dist/lib/node/meta.json +1 -1
  10. package/dist/lib/node/react.cjs +656 -904
  11. package/dist/lib/node/react.cjs.map +4 -4
  12. package/dist/lib/node-esm/meta.json +1 -1
  13. package/dist/lib/node-esm/react.mjs +556 -804
  14. package/dist/lib/node-esm/react.mjs.map +4 -4
  15. package/dist/types/src/components/AgentConfig.d.ts +1 -2
  16. package/dist/types/src/components/AgentConfig.d.ts.map +1 -1
  17. package/dist/types/src/components/AgentConfig.js +20 -50
  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 +6 -44
  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 +9 -24
  26. package/dist/types/src/components/CompoundButton/CompoundButton.js.map +1 -1
  27. package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts +8 -9
  28. package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts.map +1 -1
  29. package/dist/types/src/components/CompoundButton/CompoundButton.stories.js +17 -25
  30. package/dist/types/src/components/CompoundButton/CompoundButton.stories.js.map +1 -1
  31. package/dist/types/src/components/CompoundButton/index.js +1 -17
  32. package/dist/types/src/components/CompoundButton/index.js.map +1 -1
  33. package/dist/types/src/components/DeviceList/DeviceList.d.ts +1 -2
  34. package/dist/types/src/components/DeviceList/DeviceList.d.ts.map +1 -1
  35. package/dist/types/src/components/DeviceList/DeviceList.js +10 -24
  36. package/dist/types/src/components/DeviceList/DeviceList.js.map +1 -1
  37. package/dist/types/src/components/DeviceList/DeviceListItem.d.ts +1 -1
  38. package/dist/types/src/components/DeviceList/DeviceListItem.js +18 -73
  39. package/dist/types/src/components/DeviceList/DeviceListItem.js.map +1 -1
  40. package/dist/types/src/components/DeviceList/DeviceListProps.js +0 -2
  41. package/dist/types/src/components/DeviceList/DeviceListProps.js.map +1 -1
  42. package/dist/types/src/components/DeviceList/index.js +2 -18
  43. package/dist/types/src/components/DeviceList/index.js.map +1 -1
  44. package/dist/types/src/components/IdentityList/IdentityListItem.d.ts +1 -1
  45. package/dist/types/src/components/IdentityList/IdentityListItem.js +12 -51
  46. package/dist/types/src/components/IdentityList/IdentityListItem.js.map +1 -1
  47. package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts +2 -3
  48. package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts.map +1 -1
  49. package/dist/types/src/components/IdentityList/SpaceMemberList.js +17 -55
  50. package/dist/types/src/components/IdentityList/SpaceMemberList.js.map +1 -1
  51. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts +3 -4
  52. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts.map +1 -1
  53. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js +10 -17
  54. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js.map +1 -1
  55. package/dist/types/src/components/IdentityList/index.js +2 -18
  56. package/dist/types/src/components/IdentityList/index.js.map +1 -1
  57. package/dist/types/src/components/InvitationList/InvitationList.d.ts +2 -2
  58. package/dist/types/src/components/InvitationList/InvitationList.d.ts.map +1 -1
  59. package/dist/types/src/components/InvitationList/InvitationList.js +10 -20
  60. package/dist/types/src/components/InvitationList/InvitationList.js.map +1 -1
  61. package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts +3 -4
  62. package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts.map +1 -1
  63. package/dist/types/src/components/InvitationList/InvitationList.stories.js +20 -27
  64. package/dist/types/src/components/InvitationList/InvitationList.stories.js.map +1 -1
  65. package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts +1 -2
  66. package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts.map +1 -1
  67. package/dist/types/src/components/InvitationList/InvitationListContainer.js +9 -45
  68. package/dist/types/src/components/InvitationList/InvitationListContainer.js.map +1 -1
  69. package/dist/types/src/components/InvitationList/InvitationListItem.d.ts +3 -3
  70. package/dist/types/src/components/InvitationList/InvitationListItem.d.ts.map +1 -1
  71. package/dist/types/src/components/InvitationList/InvitationListItem.js +32 -99
  72. package/dist/types/src/components/InvitationList/InvitationListItem.js.map +1 -1
  73. package/dist/types/src/components/InvitationList/InvitationListProps.js +0 -2
  74. package/dist/types/src/components/InvitationList/index.js +3 -19
  75. package/dist/types/src/components/InvitationList/index.js.map +1 -1
  76. package/dist/types/src/components/Panel/Action.js +15 -68
  77. package/dist/types/src/components/Panel/Action.js.map +1 -1
  78. package/dist/types/src/components/Panel/Actions.js +6 -41
  79. package/dist/types/src/components/Panel/Actions.js.map +1 -1
  80. package/dist/types/src/components/Panel/CloseButton.d.ts +1 -2
  81. package/dist/types/src/components/Panel/CloseButton.d.ts.map +1 -1
  82. package/dist/types/src/components/Panel/CloseButton.js +7 -16
  83. package/dist/types/src/components/Panel/CloseButton.js.map +1 -1
  84. package/dist/types/src/components/Panel/Emoji.d.ts +3 -3
  85. package/dist/types/src/components/Panel/Emoji.d.ts.map +1 -1
  86. package/dist/types/src/components/Panel/Emoji.js +6 -19
  87. package/dist/types/src/components/Panel/Emoji.js.map +1 -1
  88. package/dist/types/src/components/Panel/Heading.js +5 -44
  89. package/dist/types/src/components/Panel/Heading.js.map +1 -1
  90. package/dist/types/src/components/Panel/Input.d.ts +2 -2
  91. package/dist/types/src/components/Panel/Input.d.ts.map +1 -1
  92. package/dist/types/src/components/Panel/Input.js +4 -17
  93. package/dist/types/src/components/Panel/Input.js.map +1 -1
  94. package/dist/types/src/components/Panel/Label.d.ts +2 -2
  95. package/dist/types/src/components/Panel/Label.d.ts.map +1 -1
  96. package/dist/types/src/components/Panel/Label.js +4 -14
  97. package/dist/types/src/components/Panel/Label.js.map +1 -1
  98. package/dist/types/src/components/Panel/Panel.stories.d.ts +4 -5
  99. package/dist/types/src/components/Panel/Panel.stories.d.ts.map +1 -1
  100. package/dist/types/src/components/Panel/Panel.stories.js +15 -35
  101. package/dist/types/src/components/Panel/Panel.stories.js.map +1 -1
  102. package/dist/types/src/components/Panel/StepHeading.js +5 -40
  103. package/dist/types/src/components/Panel/StepHeading.js.map +1 -1
  104. package/dist/types/src/components/Panel/index.js +8 -24
  105. package/dist/types/src/components/Panel/index.js.map +1 -1
  106. package/dist/types/src/components/SpaceListItem.js +10 -49
  107. package/dist/types/src/components/SpaceListItem.js.map +1 -1
  108. package/dist/types/src/components/StorybookDialog.d.ts +2 -2
  109. package/dist/types/src/components/StorybookDialog.d.ts.map +1 -1
  110. package/dist/types/src/components/StorybookDialog.js +5 -18
  111. package/dist/types/src/components/StorybookDialog.js.map +1 -1
  112. package/dist/types/src/components/Viewport/Viewport.d.ts +2 -2
  113. package/dist/types/src/components/Viewport/Viewport.js +18 -55
  114. package/dist/types/src/components/Viewport/Viewport.js.map +1 -1
  115. package/dist/types/src/components/Viewport/Viewport.stories.d.ts +2 -3
  116. package/dist/types/src/components/Viewport/Viewport.stories.d.ts.map +1 -1
  117. package/dist/types/src/components/Viewport/Viewport.stories.js +12 -37
  118. package/dist/types/src/components/Viewport/Viewport.stories.js.map +1 -1
  119. package/dist/types/src/components/Viewport/index.js +1 -17
  120. package/dist/types/src/components/Viewport/index.js.map +1 -1
  121. package/dist/types/src/components/index.d.ts +0 -2
  122. package/dist/types/src/components/index.d.ts.map +1 -1
  123. package/dist/types/src/components/index.js +9 -27
  124. package/dist/types/src/components/index.js.map +1 -1
  125. package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts +1 -2
  126. package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts.map +1 -1
  127. package/dist/types/src/composites/IdentityDialog/IdentityDialog.js +7 -22
  128. package/dist/types/src/composites/IdentityDialog/IdentityDialog.js.map +1 -1
  129. package/dist/types/src/composites/IdentityDialog/index.js +1 -17
  130. package/dist/types/src/composites/IdentityDialog/index.js.map +1 -1
  131. package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts +1 -2
  132. package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts.map +1 -1
  133. package/dist/types/src/composites/JoinDialog/JoinDialog.js +9 -23
  134. package/dist/types/src/composites/JoinDialog/JoinDialog.js.map +1 -1
  135. package/dist/types/src/composites/JoinDialog/index.js +1 -17
  136. package/dist/types/src/composites/JoinDialog/index.js.map +1 -1
  137. package/dist/types/src/composites/Shell/Shell.d.ts +1 -2
  138. package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
  139. package/dist/types/src/composites/Shell/Shell.js +54 -90
  140. package/dist/types/src/composites/Shell/Shell.js.map +1 -1
  141. package/dist/types/src/composites/Shell/ShellContext.d.ts +2 -2
  142. package/dist/types/src/composites/Shell/ShellContext.d.ts.map +1 -1
  143. package/dist/types/src/composites/Shell/ShellContext.js +32 -72
  144. package/dist/types/src/composites/Shell/ShellContext.js.map +1 -1
  145. package/dist/types/src/composites/Shell/index.js +3 -19
  146. package/dist/types/src/composites/Shell/index.js.map +1 -1
  147. package/dist/types/src/composites/Shell/memory-shell-runtime.js +7 -11
  148. package/dist/types/src/composites/Shell/memory-shell-runtime.js.map +1 -1
  149. package/dist/types/src/composites/Shell/run-shell.js +18 -67
  150. package/dist/types/src/composites/Shell/run-shell.js.map +1 -1
  151. package/dist/types/src/composites/Shell/shell-runtime.js +13 -17
  152. package/dist/types/src/composites/Shell/shell-runtime.js.map +1 -1
  153. package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts +1 -2
  154. package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts.map +1 -1
  155. package/dist/types/src/composites/SpaceDialog/SpaceDialog.js +7 -22
  156. package/dist/types/src/composites/SpaceDialog/SpaceDialog.js.map +1 -1
  157. package/dist/types/src/composites/SpaceDialog/index.js +1 -17
  158. package/dist/types/src/composites/SpaceDialog/index.js.map +1 -1
  159. package/dist/types/src/composites/StatusDialog/StatusDialog.d.ts +1 -2
  160. package/dist/types/src/composites/StatusDialog/StatusDialog.d.ts.map +1 -1
  161. package/dist/types/src/composites/StatusDialog/StatusDialog.js +6 -20
  162. package/dist/types/src/composites/StatusDialog/StatusDialog.js.map +1 -1
  163. package/dist/types/src/composites/StatusDialog/index.js +1 -17
  164. package/dist/types/src/composites/StatusDialog/index.js.map +1 -1
  165. package/dist/types/src/composites/index.js +4 -20
  166. package/dist/types/src/composites/index.js.map +1 -1
  167. package/dist/types/src/index.js +2 -6
  168. package/dist/types/src/index.js.map +1 -1
  169. package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts +2 -3
  170. package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -1
  171. package/dist/types/src/panels/IdentityPanel/IdentityPanel.js +63 -137
  172. package/dist/types/src/panels/IdentityPanel/IdentityPanel.js.map +1 -1
  173. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts +11 -12
  174. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts.map +1 -1
  175. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js +39 -54
  176. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js.map +1 -1
  177. package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.d.ts +2 -1
  178. package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.d.ts.map +1 -1
  179. package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.js +0 -2
  180. package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.js.map +1 -1
  181. package/dist/types/src/panels/IdentityPanel/identityMachine.js +10 -14
  182. package/dist/types/src/panels/IdentityPanel/identityMachine.js.map +1 -1
  183. package/dist/types/src/panels/IdentityPanel/index.js +2 -18
  184. package/dist/types/src/panels/IdentityPanel/index.js.map +1 -1
  185. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts +2 -3
  186. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts.map +1 -1
  187. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js +16 -29
  188. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js.map +1 -1
  189. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts +1 -2
  190. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts.map +1 -1
  191. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js +27 -72
  192. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js.map +1 -1
  193. package/dist/types/src/panels/IdentityPanel/steps/index.js +2 -18
  194. package/dist/types/src/panels/IdentityPanel/steps/index.js.map +1 -1
  195. package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js +7 -11
  196. package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js.map +1 -1
  197. package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.js +19 -23
  198. package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.js.map +1 -1
  199. package/dist/types/src/panels/IdentityPanel/useKubeAgentHandlers.js +19 -23
  200. package/dist/types/src/panels/IdentityPanel/useKubeAgentHandlers.js.map +1 -1
  201. package/dist/types/src/panels/JoinPanel/JoinHeading.js +11 -48
  202. package/dist/types/src/panels/JoinPanel/JoinHeading.js.map +1 -1
  203. package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts +2 -3
  204. package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts.map +1 -1
  205. package/dist/types/src/panels/JoinPanel/JoinPanel.js +38 -100
  206. package/dist/types/src/panels/JoinPanel/JoinPanel.js.map +1 -1
  207. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts +15 -16
  208. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts.map +1 -1
  209. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js +25 -45
  210. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js.map +1 -1
  211. package/dist/types/src/panels/JoinPanel/JoinPanelProps.js +0 -2
  212. package/dist/types/src/panels/JoinPanel/JoinPanelProps.js.map +1 -1
  213. package/dist/types/src/panels/JoinPanel/index.js +2 -18
  214. package/dist/types/src/panels/JoinPanel/index.js.map +1 -1
  215. package/dist/types/src/panels/JoinPanel/joinMachine.js +49 -54
  216. package/dist/types/src/panels/JoinPanel/joinMachine.js.map +1 -1
  217. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts +1 -2
  218. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts.map +1 -1
  219. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js +9 -21
  220. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js.map +1 -1
  221. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts +1 -2
  222. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts.map +1 -1
  223. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js +14 -58
  224. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js.map +1 -1
  225. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts +2 -3
  226. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts.map +1 -1
  227. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js +20 -61
  228. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js.map +1 -1
  229. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.d.ts +2 -2
  230. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.d.ts.map +1 -1
  231. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.js +8 -47
  232. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.js.map +1 -1
  233. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts +1 -2
  234. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts.map +1 -1
  235. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js +22 -73
  236. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js.map +1 -1
  237. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts +1 -2
  238. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts.map +1 -1
  239. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js +18 -59
  240. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js.map +1 -1
  241. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts +1 -2
  242. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts.map +1 -1
  243. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js +14 -37
  244. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js.map +1 -1
  245. package/dist/types/src/panels/JoinPanel/steps/index.js +7 -23
  246. package/dist/types/src/panels/JoinPanel/steps/index.js.map +1 -1
  247. package/dist/types/src/panels/Panels.stories.d.ts +4 -4
  248. package/dist/types/src/panels/Panels.stories.d.ts.map +1 -1
  249. package/dist/types/src/panels/Panels.stories.js +13 -58
  250. package/dist/types/src/panels/Panels.stories.js.map +1 -1
  251. package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts +2 -3
  252. package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts.map +1 -1
  253. package/dist/types/src/panels/SpacePanel/SpacePanel.js +25 -72
  254. package/dist/types/src/panels/SpacePanel/SpacePanel.js.map +1 -1
  255. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts +18 -19
  256. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts.map +1 -1
  257. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js +96 -121
  258. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js.map +1 -1
  259. package/dist/types/src/panels/SpacePanel/SpacePanelProps.js +0 -2
  260. package/dist/types/src/panels/SpacePanel/SpacePanelProps.js.map +1 -1
  261. package/dist/types/src/panels/SpacePanel/index.js +2 -18
  262. package/dist/types/src/panels/SpacePanel/index.js.map +1 -1
  263. package/dist/types/src/panels/SpacePanel/spaceMachine.js +9 -13
  264. package/dist/types/src/panels/SpacePanel/spaceMachine.js.map +1 -1
  265. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts +3 -3
  266. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts.map +1 -1
  267. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js +33 -81
  268. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js.map +1 -1
  269. package/dist/types/src/panels/SpacePanel/steps/index.js +1 -17
  270. package/dist/types/src/panels/SpacePanel/steps/index.js.map +1 -1
  271. package/dist/types/src/panels/StatusPanel/StatusPanel.d.ts +1 -2
  272. package/dist/types/src/panels/StatusPanel/StatusPanel.d.ts.map +1 -1
  273. package/dist/types/src/panels/StatusPanel/StatusPanel.js +5 -17
  274. package/dist/types/src/panels/StatusPanel/StatusPanel.js.map +1 -1
  275. package/dist/types/src/panels/StatusPanel/index.js +1 -17
  276. package/dist/types/src/panels/StatusPanel/index.js.map +1 -1
  277. package/dist/types/src/panels/index.js +4 -20
  278. package/dist/types/src/panels/index.js.map +1 -1
  279. package/dist/types/src/playwright/invitations-manager.js +11 -15
  280. package/dist/types/src/playwright/invitations-manager.js.map +1 -1
  281. package/dist/types/src/playwright/invitations.spec.js +64 -66
  282. package/dist/types/src/playwright/invitations.spec.js.map +1 -1
  283. package/dist/types/src/react.js +6 -22
  284. package/dist/types/src/react.js.map +1 -1
  285. package/dist/types/src/steps/ConfirmReset.d.ts +2 -3
  286. package/dist/types/src/steps/ConfirmReset.d.ts.map +1 -1
  287. package/dist/types/src/steps/ConfirmReset.js +23 -70
  288. package/dist/types/src/steps/ConfirmReset.js.map +1 -1
  289. package/dist/types/src/steps/InvitationManager.d.ts +1 -2
  290. package/dist/types/src/steps/InvitationManager.d.ts.map +1 -1
  291. package/dist/types/src/steps/InvitationManager.js +17 -71
  292. package/dist/types/src/steps/InvitationManager.js.map +1 -1
  293. package/dist/types/src/steps/StepProps.js +0 -2
  294. package/dist/types/src/steps/StepProps.js.map +1 -1
  295. package/dist/types/src/steps/index.js +3 -19
  296. package/dist/types/src/steps/index.js.map +1 -1
  297. package/dist/types/src/stories/Invitations.e2e-stories.d.ts +2 -3
  298. package/dist/types/src/stories/Invitations.e2e-stories.d.ts.map +1 -1
  299. package/dist/types/src/stories/Invitations.e2e-stories.js +50 -113
  300. package/dist/types/src/stories/Invitations.e2e-stories.js.map +1 -1
  301. package/dist/types/src/styles/index.js +2 -18
  302. package/dist/types/src/styles/index.js.map +1 -1
  303. package/dist/types/src/styles/invitationStatusStyles.js +31 -37
  304. package/dist/types/src/styles/invitationStatusStyles.js.map +1 -1
  305. package/dist/types/src/styles/panelStyles.js +1 -4
  306. package/dist/types/src/styles/panelStyles.js.map +1 -1
  307. package/dist/types/src/testing/fixtures/identities.d.ts.map +1 -1
  308. package/dist/types/src/testing/fixtures/identities.js +8 -9
  309. package/dist/types/src/testing/fixtures/identities.js.map +1 -1
  310. package/dist/types/src/testing/fixtures/index.js +2 -18
  311. package/dist/types/src/testing/fixtures/index.js.map +1 -1
  312. package/dist/types/src/testing/fixtures/invitations.js +8 -12
  313. package/dist/types/src/testing/fixtures/invitations.js.map +1 -1
  314. package/dist/types/src/testing/index.js +2 -18
  315. package/dist/types/src/testing/index.js.map +1 -1
  316. package/dist/types/src/testing/scoped-shell-manager.js +1 -5
  317. package/dist/types/src/testing/scoped-shell-manager.js.map +1 -1
  318. package/dist/types/src/testing/shell-manager.js +11 -15
  319. package/dist/types/src/testing/shell-manager.js.map +1 -1
  320. package/dist/types/src/translations/index.js +2 -38
  321. package/dist/types/src/translations/index.js.map +1 -1
  322. package/dist/types/src/translations/locales/en-US.d.ts +5 -1
  323. package/dist/types/src/translations/locales/en-US.d.ts.map +1 -1
  324. package/dist/types/src/translations/locales/en-US.js +9 -7
  325. package/dist/types/src/translations/locales/en-US.js.map +1 -1
  326. package/dist/types/src/types/FailReason.js +0 -2
  327. package/dist/types/src/types/FailReason.js.map +1 -1
  328. package/dist/types/src/types/IInvitation.js +0 -2
  329. package/dist/types/src/types/IInvitation.js.map +1 -1
  330. package/dist/types/src/types/index.js +2 -18
  331. package/dist/types/src/types/index.js.map +1 -1
  332. package/dist/types/src/util/index.js +1 -17
  333. package/dist/types/src/util/index.js.map +1 -1
  334. package/dist/types/src/util/invitationStatusValue.js +11 -14
  335. package/dist/types/src/util/invitationStatusValue.js.map +1 -1
  336. package/package.json +36 -31
  337. package/src/components/AgentConfig.tsx +1 -1
  338. package/src/components/DeviceList/DeviceList.tsx +1 -1
  339. package/src/components/index.ts +0 -2
  340. package/src/panels/IdentityPanel/IdentityPanel.stories.tsx +3 -0
  341. package/src/panels/IdentityPanel/IdentityPanel.tsx +50 -33
  342. package/src/panels/IdentityPanel/IdentityPanelProps.ts +8 -1
  343. package/src/panels/IdentityPanel/steps/ProfileForm.tsx +3 -7
  344. package/src/panels/JoinPanel/steps/IdentityInput.tsx +1 -1
  345. package/src/panels/SpacePanel/SpacePanel.stories.tsx +6 -1
  346. package/src/testing/fixtures/identities.ts +2 -0
  347. package/src/translations/locales/en-US.ts +10 -3
  348. package/dist/bundle/shell.mjs.map +0 -1
  349. package/dist/bundle/shell.umd.js +0 -1043
  350. package/dist/bundle/shell.umd.js.map +0 -1
  351. package/dist/lib/browser/react.css +0 -7
  352. package/dist/lib/browser/react.css.map +0 -7
  353. package/dist/lib/node/react.css +0 -7
  354. package/dist/lib/node/react.css.map +0 -7
  355. package/dist/lib/node-esm/react.css +0 -7
  356. package/dist/lib/node-esm/react.css.map +0 -7
  357. package/dist/types/src/components/EmojiPicker.d.ts +0 -19
  358. package/dist/types/src/components/EmojiPicker.d.ts.map +0 -1
  359. package/dist/types/src/components/EmojiPicker.js +0 -146
  360. package/dist/types/src/components/EmojiPicker.js.map +0 -1
  361. package/dist/types/src/components/HuePicker.d.ts +0 -18
  362. package/dist/types/src/components/HuePicker.d.ts.map +0 -1
  363. package/dist/types/src/components/HuePicker.js +0 -133
  364. package/dist/types/src/components/HuePicker.js.map +0 -1
  365. package/dist/types/src/playwright/playwright.config.d.ts +0 -3
  366. package/dist/types/src/playwright/playwright.config.d.ts.map +0 -1
  367. package/dist/types/src/playwright/playwright.config.js +0 -18
  368. package/dist/types/src/playwright/playwright.config.js.map +0 -1
  369. package/src/components/EmojiPicker.tsx +0 -187
  370. package/src/components/HuePicker.tsx +0 -182
  371. package/src/components/emoji.css +0 -25
  372. /package/src/playwright/{playwright.config.ts → playwright.config.cts} +0 -0
@@ -1,46 +1,11 @@
1
- "use strict";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  //
3
3
  // Copyright 2023 DXOS.org
4
4
  //
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.InvitationInput = void 0;
40
- const react_1 = __importStar(require("react"));
41
- const log_1 = require("@dxos/log");
42
- const react_ui_1 = require("@dxos/react-ui");
43
- const components_1 = require("../../../components");
5
+ import { useState, useEffect, cloneElement } from 'react';
6
+ import { log } from '@dxos/log';
7
+ import { useTranslation } from '@dxos/react-ui';
8
+ import { Actions, StepHeading, Action, Input } from '../../../components';
44
9
  const invitationCodeFromUrl = (text) => {
45
10
  var _a;
46
11
  try {
@@ -49,16 +14,16 @@ const invitationCodeFromUrl = (text) => {
49
14
  return invitation !== null && invitation !== void 0 ? invitation : text;
50
15
  }
51
16
  catch (err) {
52
- log_1.log.catch(err);
17
+ log.catch(err);
53
18
  return text;
54
19
  }
55
20
  };
56
- const InvitationInput = (props) => {
21
+ export const InvitationInput = (props) => {
57
22
  const { Kind, active, send, unredeemedCode, onExit, exitActionParent, onDone, doneActionParent, succeededKeys } = props;
58
23
  const disabled = !active;
59
- const { t } = (0, react_ui_1.useTranslation)('os');
60
- const [inputValue, setInputValue] = (0, react_1.useState)(unredeemedCode !== null && unredeemedCode !== void 0 ? unredeemedCode : '');
61
- (0, react_1.useEffect)(() => {
24
+ const { t } = useTranslation('os');
25
+ const [inputValue, setInputValue] = useState(unredeemedCode !== null && unredeemedCode !== void 0 ? unredeemedCode : '');
26
+ useEffect(() => {
62
27
  unredeemedCode && setInputValue(unredeemedCode !== null && unredeemedCode !== void 0 ? unredeemedCode : '');
63
28
  }, [unredeemedCode]);
64
29
  const handleNext = () => {
@@ -71,19 +36,13 @@ const InvitationInput = (props) => {
71
36
  ...(Kind === 'Space' && { succeededKeys }),
72
37
  });
73
38
  };
74
- const exitAction = (react_1.default.createElement(components_1.Action, { variant: 'ghost', disabled: disabled, ...(onExit ? { onClick: () => onExit() } : { onClick: () => onDone === null || onDone === void 0 ? void 0 : onDone(null) }), "data-testid": 'join-exit' }, t('cancel label')));
75
- return (react_1.default.createElement(react_1.default.Fragment, null,
76
- react_1.default.createElement("div", { role: 'none', className: 'grow flex flex-col justify-center' },
77
- react_1.default.createElement(components_1.Input, { label: react_1.default.createElement(components_1.StepHeading, null, t('invitation input label')), placeholder: t('invitation input placeholder'), disabled: disabled, value: inputValue, onChange: ({ target: { value } }) => setInputValue(value), "data-autofocus": `inputting${Kind}InvitationCode`, "data-testid": `${Kind.toLowerCase()}-invitation-input`, onKeyUp: ({ key }) => key === 'Enter' && handleNext() })),
78
- react_1.default.createElement(components_1.Actions, null,
79
- Kind === 'Halo'
80
- ? null
81
- : exitActionParent
82
- ? (0, react_1.cloneElement)(exitActionParent, {}, exitAction)
83
- : doneActionParent
84
- ? (0, react_1.cloneElement)(doneActionParent, {}, exitAction)
85
- : exitAction,
86
- react_1.default.createElement(components_1.Action, { variant: 'primary', disabled: disabled || inputValue.trim().length === 0, onClick: handleNext, "data-testid": `${Kind.toLowerCase()}-invitation-input-continue` }, t('continue label')))));
39
+ const exitAction = (_jsx(Action, { variant: 'ghost', disabled: disabled, ...(onExit ? { onClick: () => onExit() } : { onClick: () => onDone === null || onDone === void 0 ? void 0 : onDone(null) }), "data-testid": 'join-exit', children: t('cancel label') }));
40
+ return (_jsxs(_Fragment, { children: [_jsx("div", { role: 'none', className: 'grow flex flex-col justify-center', children: _jsx(Input, { label: _jsx(StepHeading, { children: t('invitation input label') }), placeholder: t('invitation input placeholder'), disabled: disabled, value: inputValue, onChange: ({ target: { value } }) => setInputValue(value), "data-autofocus": `inputting${Kind}InvitationCode`, "data-testid": `${Kind.toLowerCase()}-invitation-input`, onKeyUp: ({ key }) => key === 'Enter' && handleNext() }) }), _jsxs(Actions, { children: [Kind === 'Halo'
41
+ ? null
42
+ : exitActionParent
43
+ ? cloneElement(exitActionParent, {}, exitAction)
44
+ : doneActionParent
45
+ ? cloneElement(doneActionParent, {}, exitAction)
46
+ : exitAction, _jsx(Action, { variant: 'primary', disabled: disabled || inputValue.trim().length === 0, onClick: handleNext, "data-testid": `${Kind.toLowerCase()}-invitation-input-continue`, children: t('continue label') })] })] }));
87
47
  };
88
- exports.InvitationInput = InvitationInput;
89
48
  //# sourceMappingURL=InvitationInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InvitationInput.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationInput.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,+CAAiE;AAEjE,mCAAgC;AAChC,6CAAgD;AAEhD,oDAA0E;AAS1E,MAAM,qBAAqB,GAAG,CAAC,IAAY,EAAE,EAAE;;IAC7C,IAAI,CAAC;QACH,MAAM,YAAY,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAChF,MAAM,UAAU,GAAG,MAAA,YAAY,CAAC,GAAG,CAAC,qBAAqB,CAAC,mCAAI,YAAY,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;QACvG,OAAO,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,IAAI,CAAC;IAC5B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,SAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEK,MA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AE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,oBACzC,YAAY,IAAI,gBAAgB,iBACnC,GAAG,IAAI,CAAC,WAAW,EAAE,mBAAmB,EACrD,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,KAAK,OAAO,IAAI,UAAU,EAAE,GACrD,GACE,EACN,MAAC,OAAO,eAEL,IAAI,KAAK,MAAM;wBACd,CAAC,CAAC,IAAI;wBACN,CAAC,CAAC,gBAAgB;4BAChB,CAAC,CAAC,YAAY,CAAC,gBAAgB,EAAE,EAAE,EAAE,UAAU,CAAC;4BAChD,CAAC,CAAC,gBAAgB;gCAChB,CAAC,CAAC,YAAY,CAAC,gBAAgB,EAAE,EAAE,EAAE,UAAU,CAAC;gCAChD,CAAC,CAAC,UAAU,EAClB,KAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,QAAQ,EAAE,QAAQ,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EACpD,OAAO,EAAE,UAAU,iBACN,GAAG,IAAI,CAAC,WAAW,EAAE,4BAA4B,YAE7D,CAAC,CAAC,gBAAgB,CAAC,GACb,IACD,IACT,CACJ,CAAC;AACJ,CAAC,CAAC"}
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { type Invitation } from '@dxos/react-client/invitations';
3
2
  import { type FailReason } from '../../../types';
4
3
  import { type JoinStepProps } from '../JoinPanelProps';
@@ -8,5 +7,5 @@ export interface InvitationRescuerProps extends JoinStepProps {
8
7
  onInvitationCancel?: () => Promise<void> | undefined;
9
8
  failReason?: FailReason | null;
10
9
  }
11
- export declare const InvitationRescuer: (props: InvitationRescuerProps) => React.JSX.Element;
10
+ export declare const InvitationRescuer: (props: InvitationRescuerProps) => import("react/jsx-runtime").JSX.Element;
12
11
  //# sourceMappingURL=InvitationRescuer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InvitationRescuer.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationRescuer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAKjE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IAC3D,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IACrD,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAChC;AAwDD,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,sBA0B9D,CAAC"}
1
+ {"version":3,"file":"InvitationRescuer.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationRescuer.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAKjE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IAC3D,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IACrD,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAChC;AAwDD,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,4CA0B9D,CAAC"}
@@ -1,49 +1,26 @@
1
- "use strict";
2
- //
3
- // Copyright 2023 DXOS.org
4
- //
5
- var __importDefault = (this && this.__importDefault) || function (mod) {
6
- return (mod && mod.__esModule) ? mod : { "default": mod };
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.InvitationRescuer = void 0;
10
- const react_1 = __importDefault(require("react"));
11
- const react_ui_1 = require("@dxos/react-ui");
12
- const react_ui_theme_1 = require("@dxos/react-ui-theme");
13
- const components_1 = require("../../../components");
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useTranslation } from '@dxos/react-ui';
3
+ import { descriptionText } from '@dxos/react-ui-theme';
4
+ import { Action, Actions, StepHeading } from '../../../components';
14
5
  const InvitationActions = ({
15
6
  // `invitationState` does report correct state, but here we evaluate whether `failReason` is a better source of truth
16
7
  // for the UI in particular.
17
8
  invitationState, onInvitationCancel, active, send, Kind, failReason, }) => {
18
- const { t } = (0, react_ui_1.useTranslation)('os');
9
+ const { t } = useTranslation('os');
19
10
  if (failReason) {
20
- return (react_1.default.createElement(react_1.default.Fragment, null,
21
- react_1.default.createElement(components_1.StepHeading, { className: react_ui_theme_1.descriptionText }, t(failReason === 'timeout'
22
- ? 'timeout status label'
23
- : failReason === 'cancelled'
24
- ? 'cancelled status label'
25
- : 'error status label')),
26
- react_1.default.createElement("div", { role: 'none', className: 'grow' }),
27
- react_1.default.createElement(components_1.Actions, null,
28
- react_1.default.createElement(components_1.Action, { disabled: !active, onClick: () => send({ type: `reset${Kind}Invitation` }), "data-testid": 'invitation-rescuer-reset' }, t('reset label')))));
11
+ return (_jsxs(_Fragment, { children: [_jsx(StepHeading, { className: descriptionText, children: t(failReason === 'timeout'
12
+ ? 'timeout status label'
13
+ : failReason === 'cancelled'
14
+ ? 'cancelled status label'
15
+ : 'error status label') }), _jsx("div", { role: 'none', className: 'grow' }), _jsx(Actions, { children: _jsx(Action, { disabled: !active, onClick: () => send({ type: `reset${Kind}Invitation` }), "data-testid": 'invitation-rescuer-reset', children: t('reset label') }) })] }));
29
16
  }
30
17
  else {
31
- return (react_1.default.createElement(react_1.default.Fragment, null,
32
- react_1.default.createElement(components_1.StepHeading, { className: react_ui_theme_1.descriptionText }, t('connecting status label')),
33
- react_1.default.createElement("div", { role: 'none', className: 'grow' }),
34
- react_1.default.createElement(components_1.Actions, null,
35
- react_1.default.createElement(components_1.Action, { disabled: true, classNames: 'order-2', "data-testid": 'next' }, t('next label')),
36
- react_1.default.createElement(components_1.Action, { disabled: !active, onClick: onInvitationCancel, "data-testid": 'invitation-rescuer-cancel' }, t('cancel label')))));
18
+ return (_jsxs(_Fragment, { children: [_jsx(StepHeading, { className: descriptionText, children: t('connecting status label') }), _jsx("div", { role: 'none', className: 'grow' }), _jsxs(Actions, { children: [_jsx(Action, { disabled: true, classNames: 'order-2', "data-testid": 'next', children: t('next label') }), _jsx(Action, { disabled: !active, onClick: onInvitationCancel, "data-testid": 'invitation-rescuer-cancel', children: t('cancel label') })] })] }));
37
19
  }
38
20
  };
39
- const InvitationRescuer = (props) => {
21
+ export const InvitationRescuer = (props) => {
40
22
  const { Kind, invitationState, active, send } = props;
41
- const { t } = (0, react_ui_1.useTranslation)('os');
42
- return (react_1.default.createElement(react_1.default.Fragment, null, typeof invitationState === 'undefined' ? (react_1.default.createElement(react_1.default.Fragment, null,
43
- react_1.default.createElement("div", { role: 'none', className: 'grow flex flex-col justify-center' },
44
- react_1.default.createElement(components_1.StepHeading, { className: react_ui_theme_1.descriptionText }, "There was a problem joining the space")),
45
- react_1.default.createElement(components_1.Actions, null,
46
- react_1.default.createElement(components_1.Action, { disabled: !active, "data-testid": 'invitation-rescuer-blank-reset', onClick: () => send({ type: `reset${Kind}Invitation` }) }, t('reset label'))))) : (react_1.default.createElement(InvitationActions, { ...props }))));
23
+ const { t } = useTranslation('os');
24
+ return (_jsx(_Fragment, { children: typeof invitationState === 'undefined' ? (_jsxs(_Fragment, { children: [_jsx("div", { role: 'none', className: 'grow flex flex-col justify-center', children: _jsx(StepHeading, { className: descriptionText, children: "There was a problem joining the space" }) }), _jsx(Actions, { children: _jsx(Action, { disabled: !active, "data-testid": 'invitation-rescuer-blank-reset', onClick: () => send({ type: `reset${Kind}Invitation` }), children: t('reset label') }) })] })) : (_jsx(InvitationActions, { ...props })) }));
47
25
  };
48
- exports.InvitationRescuer = InvitationRescuer;
49
26
  //# sourceMappingURL=InvitationRescuer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InvitationRescuer.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationRescuer.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,kDAA0B;AAG1B,6CAAgD;AAChD,yDAAuD;AAEvD,oDAAmE;AAWnE,MAAM,iBAAiB,GAAG,CAAC;AACzB,qHAAqH;AACrH,4BAA4B;AAC5B,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,UAAU,GACa,EAAE,EAAE;IAC3B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,CAAC;IAEnC,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,CACL;YACE,8BAAC,wBAAW,IAAC,SAAS,EAAE,gCAAe,IACpC,CAAC,CACA,UAAU,KAAK,SAAS;gBACtB,CAAC,CAAC,sBAAsB;gBACxB,CAAC,CAAC,UAAU,KAAK,WAAW;oBAC1B,CAAC,CAAC,wBAAwB;oBAC1B,CAAC,CAAC,oBAAoB,CAC3B,CACW;YACd,uCAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,MAAM,GAAG;YACpC,8BAAC,oBAAO;gBACN,8BAAC,mBAAM,IACL,QAAQ,EAAE,CAAC,MAAM,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,IAAI,YAAY,EAAE,CAAC,iBAC3C,0BAA0B,IAErC,CAAC,CA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,CACJ,CAAC;AACJ,CAAC,CAAC;AA1BW,QAAA,iBAAiB,qBA0B5B"}
1
+ {"version":3,"file":"InvitationRescuer.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationRescuer.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAWnE,MAAM,iBAAiB,GAAG,CAAC;AACzB,qHAAqH;AACrH,4BAA4B;AAC5B,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,UAAU,GACa,EAAE,EAAE;IAC3B,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IAEnC,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,CACL,8BACE,KAAC,WAAW,IAAC,SAAS,EAAE,eAAe,YACpC,CAAC,CACA,UAAU,KAAK,SAAS;wBACtB,CAAC,CAAC,sBAAsB;wBACxB,CAAC,CAAC,UAAU,KAAK,WAAW;4BAC1B,CAAC,CAAC,wBAAwB;4BAC1B,CAAC,CAAC,oBAAoB,CAC3B,GACW,EACd,cAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,MAAM,GAAG,EACpC,KAAC,OAAO,cACN,KAAC,MAAM,IACL,QAAQ,EAAE,CAAC,MAAM,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,IAAI,YAAY,EAAE,CAAC,iBAC3C,0BAA0B,YAErC,CAAC,CAAC,aAAa,CAAC,GACV,GACD,IACT,CACJ,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO,CACL,8BACE,KAAC,WAAW,IAAC,SAAS,EAAE,eAAe,YAAG,CAAC,CAAC,yBAAyB,CAAC,GAAe,EACrF,cAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,MAAM,GAAG,EACpC,MAAC,OAAO,eACN,KAAC,MAAM,IAAC,QAAQ,QAAC,UAAU,EAAC,SAAS,iBAAa,MAAM,YACrD,CAAC,CAAC,YAAY,CAAC,GACT,EACT,KAAC,MAAM,IAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,kBAAkB,iBAAc,2BAA2B,YAC5F,CAAC,CAAC,cAAc,CAAC,GACX,IACD,IACT,CACJ,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAA6B,EAAE,EAAE;IACjE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IACtD,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IAEnC,OAAO,CACL,4BACG,OAAO,eAAe,KAAK,WAAW,CAAC,CAAC,CAAC,CACxC,8BACE,cAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,mCAAmC,YAC5D,KAAC,WAAW,IAAC,SAAS,EAAE,eAAe,sDAAqD,GACxF,EACN,KAAC,OAAO,cACN,KAAC,MAAM,IACL,QAAQ,EAAE,CAAC,MAAM,iBACL,gCAAgC,EAC5C,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,IAAI,YAAY,EAAE,CAAC,YAEtD,CAAC,CAAC,aAAa,CAAC,GACV,GACD,IACT,CACJ,CAAC,CAAC,CAAC,CACF,KAAC,iBAAiB,OAAK,KAAK,GAAI,CACjC,GACA,CACJ,CAAC;AACJ,CAAC,CAAC"}
@@ -1,27 +1,11 @@
1
- "use strict";
2
1
  //
3
2
  // Copyright 2023 DXOS.org
4
3
  //
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
- };
19
- Object.defineProperty(exports, "__esModule", { value: true });
20
- __exportStar(require("./AdditionMethodChooser"), exports);
21
- __exportStar(require("./IdentityAdded"), exports);
22
- __exportStar(require("./IdentityInput"), exports);
23
- __exportStar(require("./InvitationAccepted"), exports);
24
- __exportStar(require("./InvitationInput"), exports);
25
- __exportStar(require("./InvitationRescuer"), exports);
26
- __exportStar(require("./InvitationAuthenticator"), exports);
4
+ export * from './AdditionMethodChooser';
5
+ export * from './IdentityAdded';
6
+ export * from './IdentityInput';
7
+ export * from './InvitationAccepted';
8
+ export * from './InvitationInput';
9
+ export * from './InvitationRescuer';
10
+ export * from './InvitationAuthenticator';
27
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;AAEF,0DAAwC;AACxC,kDAAgC;AAChC,kDAAgC;AAChC,uDAAqC;AACrC,oDAAkC;AAClC,sDAAoC;AACpC,4DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC"}
@@ -1,17 +1,17 @@
1
1
  import '@dxos-theme';
2
- import React, { type FC } from 'react';
2
+ import { type FC } from 'react';
3
3
  export declare const Default: {
4
- (props: any): React.JSX.Element;
4
+ (props: any): import("react/jsx-runtime").JSX.Element;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
8
8
  };
9
9
  declare const _default: {
10
10
  title: string;
11
- decorators: import("@storybook/react/*").Decorator[];
11
+ decorators: import("@storybook/react").Decorator[];
12
12
  component: ({ components }: {
13
13
  components: FC[];
14
- }) => React.JSX.Element;
14
+ }) => import("react/jsx-runtime").JSX.Element;
15
15
  parameters: {
16
16
  chromatic: {
17
17
  disableSnapshot: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Panels.stories.d.ts","sourceRoot":"","sources":["../../../../src/panels/Panels.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAiCvC,eAAO,MAAM,OAAO;YAAW,GAAG;;;;CAWjC,CAAC;;;;gCAxBgC;QAAE,UAAU,EAAE,EAAE,EAAE,CAAA;KAAE;;;;;;;;;;AA4BtD,wBAKE"}
1
+ {"version":3,"file":"Panels.stories.d.ts","sourceRoot":"","sources":["../../../../src/panels/Panels.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAiCvC,eAAO,MAAM,OAAO;YAAW,GAAG;;;;CAWjC,CAAC;;;;gCAxBgC;QAAE,UAAU,EAAE,EAAE,EAAE,CAAA;KAAE;;;;;;;;;;AA4BtD,wBAKE"}
@@ -1,51 +1,12 @@
1
- "use strict";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  //
3
3
  // Copyright 2023 DXOS.org
4
4
  //
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- var __importDefault = (this && this.__importDefault) || function (mod) {
39
- return (mod && mod.__esModule) ? mod : { "default": mod };
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- exports.Default = void 0;
43
- require("@dxos-theme");
44
- const react_1 = __importDefault(require("react"));
45
- const storybook_utils_1 = require("@dxos/storybook-utils");
46
- const IdentityPanels = __importStar(require("./IdentityPanel/IdentityPanel.stories"));
47
- const SpacePanels = __importStar(require("./SpacePanel/SpacePanel.stories"));
48
- const translations_1 = require("../translations");
5
+ import '@dxos-theme';
6
+ import { withTheme } from '@dxos/storybook-utils';
7
+ import * as IdentityPanels from './IdentityPanel/IdentityPanel.stories';
8
+ import * as SpacePanels from './SpacePanel/SpacePanel.stories';
9
+ import { osTranslations } from '../translations';
49
10
  const getComponentNames = (module) => {
50
11
  var _a;
51
12
  return (_a = module === null || module === void 0 ? void 0 : module.__namedExportsOrder) !== null && _a !== void 0 ? _a : Object.getOwnPropertyNames(module).filter((name) => !(name === 'default' || name.startsWith('__')));
@@ -57,22 +18,16 @@ const camelCaseToSpacedName = (camelCase) => {
57
18
  return camelCase.replace(/([a-z0-9])([A-Z])/g, '$1 $2').replace(/([A-Z])([A-Z][a-z])/g, '$1 $2');
58
19
  };
59
20
  const StoryRow = ({ components }) => {
60
- return (react_1.default.createElement("tr", { style: { whiteSpace: 'nowrap' } }, components === null || components === void 0 ? void 0 : components.map((Comp) => (react_1.default.createElement("td", { key: Comp.name },
61
- react_1.default.createElement("div", { className: 'bg-zinc-500 text-zinc-200 p-3 text-sm text-center' }, camelCaseToSpacedName(Comp.name)),
62
- react_1.default.createElement(Comp, null))))));
21
+ return (_jsx("tr", { style: { whiteSpace: 'nowrap' }, children: components === null || components === void 0 ? void 0 : components.map((Comp) => (_jsxs("td", { children: [_jsx("div", { className: 'bg-zinc-500 text-zinc-200 p-3 text-sm text-center', children: camelCaseToSpacedName(Comp.name) }), _jsx(Comp, {})] }, Comp.name))) }));
63
22
  };
64
- const Default = (props) => {
65
- return (react_1.default.createElement("table", { className: 'bg-body' },
66
- react_1.default.createElement("tbody", null,
67
- react_1.default.createElement(StoryRow, { components: getComponents(IdentityPanels) }),
68
- react_1.default.createElement(StoryRow, { components: getComponents(SpacePanels) }))));
23
+ export const Default = (props) => {
24
+ return (_jsx("table", { className: 'bg-body', children: _jsxs("tbody", { children: [_jsx(StoryRow, { components: getComponents(IdentityPanels) }), _jsx(StoryRow, { components: getComponents(SpacePanels) })] }) }));
69
25
  };
70
- exports.Default = Default;
71
- exports.Default.parameters = { layout: 'fullscreen' };
72
- exports.default = {
26
+ Default.parameters = { layout: 'fullscreen' };
27
+ export default {
73
28
  title: 'sdk/shell/All',
74
- decorators: [storybook_utils_1.withTheme],
29
+ decorators: [withTheme],
75
30
  component: StoryRow,
76
- parameters: { chromatic: { disableSnapshot: false }, translations: [translations_1.osTranslations] },
31
+ parameters: { chromatic: { disableSnapshot: false }, translations: [osTranslations] },
77
32
  };
78
33
  //# sourceMappingURL=Panels.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Panels.stories.js","sourceRoot":"","sources":["../../../../src/panels/Panels.stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,uBAAqB;AAErB,kDAAuC;AAEvC,2DAAkD;AAElD,sFAAwE;AACxE,6EAA+D;AAC/D,kDAAiD;AAEjD,MAAM,iBAAiB,GAAG,CAAC,MAAW,EAAY,EAAE;;IAClD,OAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,mBAAmB,mCAC3B,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;CAAA,CAAC;AAEtG,MAAM,aAAa,GAAG,CAAC,MAAW,EAAQ,EAAE;IAC1C,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,SAAiB,EAAE,EAAE;IAClD,OAAO,SAAS,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;AACnG,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,EAAE,UAAU,EAAwB,EAAE,EAAE;IACxD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C,SAAS,YACxB,4BACE,KAAC,QAAQ,IAAC,UAAU,EAAE,aAAa,CAAC,cAAc,CAAC,GAAI,EACvD,KAAC,QAAQ,IAAC,UAAU,EAAE,aAAa,CAAC,WAAW,CAAC,GAAI,IAG9C,GACF,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,UAAU,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;AAE9C,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,UAAU,EAAE,CAAC,SAAS,CAAC;IACvB,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE,EAAE,SAAS,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,CAAC,cAAc,CAAC,EAAE;CACtF,CAAC"}
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  import { type SpacePanelImplProps, type SpacePanelProps } from './SpacePanelProps';
3
- export declare const SpacePanelImpl: (props: SpacePanelImplProps) => React.JSX.Element;
4
- export declare const SpacePanel: ({ titleId: propsTitleId, createInvitationUrl, ...props }: SpacePanelProps) => React.JSX.Element;
2
+ export declare const SpacePanelImpl: (props: SpacePanelImplProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const SpacePanel: ({ titleId: propsTitleId, createInvitationUrl, ...props }: SpacePanelProps) => import("react/jsx-runtime").JSX.Element;
5
4
  //# sourceMappingURL=SpacePanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SpacePanel.d.ts","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAO,EAA+B,KAAK,mBAAmB,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAwBhH,eAAO,MAAM,cAAc,UAAW,mBAAmB,sBA+BxD,CAAC;AAgBF,eAAO,MAAM,UAAU,6DAIpB,eAAe,sBAsCjB,CAAC"}
1
+ {"version":3,"file":"SpacePanel.d.ts","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.tsx"],"names":[],"mappings":"AAYA,OAAO,EAA+B,KAAK,mBAAmB,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAwBhH,eAAO,MAAM,cAAc,UAAW,mBAAmB,4CA+BxD,CAAC;AAgBF,eAAO,MAAM,UAAU,6DAIpB,eAAe,4CAsCjB,CAAC"}
@@ -1,86 +1,40 @@
1
- "use strict";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  //
3
3
  // Copyright 2023 DXOS.org
4
4
  //
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.SpacePanel = exports.SpacePanelImpl = void 0;
40
- const react_1 = require("@phosphor-icons/react");
41
- const react_2 = __importStar(require("react"));
42
- const log_1 = require("@dxos/log");
43
- const invitations_1 = require("@dxos/react-client/invitations");
44
- const react_ui_1 = require("@dxos/react-ui");
45
- const spaceMachine_1 = require("./spaceMachine");
46
- const steps_1 = require("./steps");
47
- const components_1 = require("../../components");
48
- const steps_2 = require("../../steps");
49
- const styles_1 = require("../../styles");
5
+ import { Planet } from '@phosphor-icons/react';
6
+ import { useEffect, useMemo } from 'react';
7
+ import { log } from '@dxos/log';
8
+ import { useInvitationStatus } from '@dxos/react-client/invitations';
9
+ import { useId, useTranslation } from '@dxos/react-ui';
10
+ import { useSpaceMachine } from './spaceMachine';
11
+ import { SpaceManager } from './steps';
12
+ import { Heading, CloseButton, Viewport } from '../../components';
13
+ import { InvitationManager } from '../../steps';
14
+ import { stepStyles } from '../../styles';
50
15
  const SpacePanelHeading = ({ titleId, space, onDone }) => {
51
- const { t } = (0, react_ui_1.useTranslation)('os');
16
+ const { t } = useTranslation('os');
52
17
  const name = space.properties.name;
53
- return (react_2.default.createElement(components_1.Heading, { titleId: titleId, title: t('space panel heading'), corner: react_2.default.createElement(components_1.CloseButton, { "data-testid": 'identity-panel-done', onDone: onDone }) },
54
- react_2.default.createElement("div", { role: 'none', className: 'flex gap-4 items-center justify-center mlb-4' },
55
- react_2.default.createElement(react_1.Planet, { size: 32, weight: 'light' }),
56
- react_2.default.createElement("div", { className: 'block text-start font-light text-xl' }, name !== null && name !== void 0 ? name : space.key.truncate()))));
18
+ return (_jsx(Heading, { titleId: titleId, title: t('space panel heading'), corner: _jsx(CloseButton, { "data-testid": 'identity-panel-done', onDone: onDone }), children: _jsxs("div", { role: 'none', className: 'flex gap-4 items-center justify-center mlb-4', children: [_jsx(Planet, { size: 32, weight: 'light' }), _jsx("div", { className: 'block text-start font-light text-xl', children: name !== null && name !== void 0 ? name : space.key.truncate() })] }) }));
57
19
  };
58
- const SpacePanelImpl = (props) => {
59
- const { titleId, activeView, space, hideHeading, target, SpaceManager: SpaceManagerComponent = steps_1.SpaceManager, InvitationManager: InvitationManagerComponent = steps_2.InvitationManager, ...rest } = props;
60
- return (react_2.default.createElement(react_2.default.Fragment, null,
61
- !hideHeading && react_2.default.createElement(SpacePanelHeading, { ...rest, titleId, space }),
62
- react_2.default.createElement(components_1.Viewport.Root, { activeView: activeView },
63
- react_2.default.createElement(components_1.Viewport.Views, null,
64
- react_2.default.createElement(components_1.Viewport.View, { id: 'space manager', classNames: styles_1.stepStyles },
65
- react_2.default.createElement(SpaceManagerComponent, { active: activeView === 'space manager', space: space, target: target, ...rest })),
66
- react_2.default.createElement(components_1.Viewport.View, { id: 'space invitation manager', classNames: styles_1.stepStyles },
67
- react_2.default.createElement(InvitationManagerComponent, { active: activeView === 'space invitation manager', ...rest, invitationUrl: props.invitationUrl }))))));
20
+ export const SpacePanelImpl = (props) => {
21
+ const { titleId, activeView, space, hideHeading, target, SpaceManager: SpaceManagerComponent = SpaceManager, InvitationManager: InvitationManagerComponent = InvitationManager, ...rest } = props;
22
+ return (_jsxs(_Fragment, { children: [!hideHeading && _jsx(SpacePanelHeading, { ...rest, titleId, space }), _jsx(Viewport.Root, { activeView: activeView, children: _jsxs(Viewport.Views, { children: [_jsx(Viewport.View, { id: 'space manager', classNames: stepStyles, children: _jsx(SpaceManagerComponent, { active: activeView === 'space manager', space: space, target: target, ...rest }) }), _jsx(Viewport.View, { id: 'space invitation manager', classNames: stepStyles, children: _jsx(InvitationManagerComponent, { active: activeView === 'space invitation manager', ...rest, invitationUrl: props.invitationUrl }) })] }) })] }));
68
23
  };
69
- exports.SpacePanelImpl = SpacePanelImpl;
70
24
  const SpacePanelWithInvitationImpl = ({ invitation, ...props }) => {
71
- const invitationStatus = (0, invitations_1.useInvitationStatus)(invitation);
72
- return (react_2.default.createElement(exports.SpacePanelImpl, { ...props, ...invitationStatus, invitationUrl: props.createInvitationUrl(invitationStatus.invitationCode) }));
25
+ const invitationStatus = useInvitationStatus(invitation);
26
+ return (_jsx(SpacePanelImpl, { ...props, ...invitationStatus, invitationUrl: props.createInvitationUrl(invitationStatus.invitationCode) }));
73
27
  };
74
- const SpacePanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => code, ...props }) => {
75
- const titleId = (0, react_ui_1.useId)('spacePanel__heading', propsTitleId);
76
- const [spaceState, spaceSend, spaceService] = (0, spaceMachine_1.useSpaceMachine)({ context: { space: props.space } });
77
- (0, react_2.useEffect)(() => {
28
+ export const SpacePanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => code, ...props }) => {
29
+ const titleId = useId('spacePanel__heading', propsTitleId);
30
+ const [spaceState, spaceSend, spaceService] = useSpaceMachine({ context: { space: props.space } });
31
+ useEffect(() => {
78
32
  const subscription = spaceService.subscribe((state) => {
79
- (0, log_1.log)('[state]', state);
33
+ log('[state]', state);
80
34
  });
81
35
  return subscription.unsubscribe;
82
36
  }, [spaceService]);
83
- const activeView = (0, react_2.useMemo)(() => {
37
+ const activeView = useMemo(() => {
84
38
  switch (true) {
85
39
  case spaceState.matches('managingSpace'):
86
40
  return 'space manager';
@@ -99,7 +53,6 @@ const SpacePanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => cod
99
53
  };
100
54
  return spaceState.context.invitation ? (
101
55
  // TODO(wittjosiah): Unused? Remove?
102
- react_2.default.createElement(SpacePanelWithInvitationImpl, { ...implProps, invitation: spaceState.context.invitation })) : (react_2.default.createElement(exports.SpacePanelImpl, { ...implProps }));
56
+ _jsx(SpacePanelWithInvitationImpl, { ...implProps, invitation: spaceState.context.invitation })) : (_jsx(SpacePanelImpl, { ...implProps }));
103
57
  };
104
- exports.SpacePanel = SpacePanel;
105
58
  //# sourceMappingURL=SpacePanel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SpacePanel.js","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;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