@dxos/shell 0.7.5-main.499c70c → 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 (373) hide show
  1. package/dist/bundle/{shell.mjs → shell.js} +19391 -23085
  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/dist/types/tsconfig.tsbuildinfo +1 -1
  337. package/package.json +36 -31
  338. package/src/components/AgentConfig.tsx +1 -1
  339. package/src/components/DeviceList/DeviceList.tsx +1 -1
  340. package/src/components/index.ts +0 -2
  341. package/src/panels/IdentityPanel/IdentityPanel.stories.tsx +3 -0
  342. package/src/panels/IdentityPanel/IdentityPanel.tsx +50 -33
  343. package/src/panels/IdentityPanel/IdentityPanelProps.ts +8 -1
  344. package/src/panels/IdentityPanel/steps/ProfileForm.tsx +3 -7
  345. package/src/panels/JoinPanel/steps/IdentityInput.tsx +1 -1
  346. package/src/panels/SpacePanel/SpacePanel.stories.tsx +6 -1
  347. package/src/testing/fixtures/identities.ts +2 -0
  348. package/src/translations/locales/en-US.ts +10 -3
  349. package/dist/bundle/shell.mjs.map +0 -1
  350. package/dist/bundle/shell.umd.js +0 -1043
  351. package/dist/bundle/shell.umd.js.map +0 -1
  352. package/dist/lib/browser/react.css +0 -7
  353. package/dist/lib/browser/react.css.map +0 -7
  354. package/dist/lib/node/react.css +0 -7
  355. package/dist/lib/node/react.css.map +0 -7
  356. package/dist/lib/node-esm/react.css +0 -7
  357. package/dist/lib/node-esm/react.css.map +0 -7
  358. package/dist/types/src/components/EmojiPicker.d.ts +0 -19
  359. package/dist/types/src/components/EmojiPicker.d.ts.map +0 -1
  360. package/dist/types/src/components/EmojiPicker.js +0 -146
  361. package/dist/types/src/components/EmojiPicker.js.map +0 -1
  362. package/dist/types/src/components/HuePicker.d.ts +0 -18
  363. package/dist/types/src/components/HuePicker.d.ts.map +0 -1
  364. package/dist/types/src/components/HuePicker.js +0 -133
  365. package/dist/types/src/components/HuePicker.js.map +0 -1
  366. package/dist/types/src/playwright/playwright.config.d.ts +0 -3
  367. package/dist/types/src/playwright/playwright.config.d.ts.map +0 -1
  368. package/dist/types/src/playwright/playwright.config.js +0 -18
  369. package/dist/types/src/playwright/playwright.config.js.map +0 -1
  370. package/src/components/EmojiPicker.tsx +0 -187
  371. package/src/components/HuePicker.tsx +0 -182
  372. package/src/components/emoji.css +0 -25
  373. /package/src/playwright/{playwright.config.ts → playwright.config.cts} +0 -0
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import { type InvitationStatus } from '@dxos/react-client/invitations';
3
2
  import { type StepProps } from './StepProps';
4
3
  export type InvitationManagerProps = StepProps & Partial<InvitationStatus> & {
5
4
  invitationUrl?: string;
6
5
  };
7
- export declare const InvitationManager: ({ invitationUrl, active, send, status, multiUse, authCode, id, }: InvitationManagerProps) => React.JSX.Element;
6
+ export declare const InvitationManager: ({ invitationUrl, active, send, status, multiUse, authCode, id, }: InvitationManagerProps) => import("react/jsx-runtime").JSX.Element;
8
7
  //# sourceMappingURL=InvitationManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InvitationManager.d.ts","sourceRoot":"","sources":["../../../../src/steps/InvitationManager.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAKvE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAC5C,OAAO,CAAC,gBAAgB,CAAC,GAAG;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAUJ,eAAO,MAAM,iBAAiB,qEAQ3B,sBAAsB,sBAuExB,CAAC"}
1
+ {"version":3,"file":"InvitationManager.d.ts","sourceRoot":"","sources":["../../../../src/steps/InvitationManager.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAKvE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAC5C,OAAO,CAAC,gBAAgB,CAAC,GAAG;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAUJ,eAAO,MAAM,iBAAiB,qEAQ3B,sBAAsB,4CAuExB,CAAC"}
@@ -1,61 +1,26 @@
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.InvitationManager = void 0;
40
- const react_1 = require("@phosphor-icons/react");
41
- const react_2 = __importStar(require("react"));
42
- const react_qr_rounded_1 = require("react-qr-rounded");
43
- const react_ui_1 = require("@dxos/react-ui");
44
- const react_ui_theme_1 = require("@dxos/react-ui-theme");
45
- const util_1 = require("@dxos/util");
46
- const components_1 = require("../components");
47
- const util_2 = require("../util");
5
+ import { Check, X } from '@phosphor-icons/react';
6
+ import { useMemo } from 'react';
7
+ import { QR } from 'react-qr-rounded';
8
+ import { Clipboard, useId, useTranslation } from '@dxos/react-ui';
9
+ import { descriptionText, getSize, mx } from '@dxos/react-ui-theme';
10
+ import { hexToEmoji } from '@dxos/util';
11
+ import { Actions, Action, AuthCode, Emoji, Label, Viewport, Centered } from '../components';
12
+ import { invitationStatusValue } from '../util';
48
13
  const InvitationManagerView = ({ children, ...props }) => {
49
- return (react_2.default.createElement(components_1.Viewport.View, { ...props, classNames: 'grow flex flex-col justify-around items-center' }, children));
14
+ return (_jsx(Viewport.View, { ...props, classNames: 'grow flex flex-col justify-around items-center', children: children }));
50
15
  };
51
- const InvitationManager = ({ invitationUrl, active, send, status, multiUse, authCode, id = '0', }) => {
16
+ export const InvitationManager = ({ invitationUrl, active, send, status, multiUse, authCode, id = '0', }) => {
52
17
  var _a;
53
- const { t } = (0, react_ui_1.useTranslation)('os');
54
- const qrLabel = (0, react_ui_1.useId)('invitation-manager__qr-code');
55
- const statusValue = multiUse ? 0 : (_a = util_2.invitationStatusValue.get(status)) !== null && _a !== void 0 ? _a : 0;
18
+ const { t } = useTranslation('os');
19
+ const qrLabel = useId('invitation-manager__qr-code');
20
+ const statusValue = multiUse ? 0 : (_a = invitationStatusValue.get(status)) !== null && _a !== void 0 ? _a : 0;
56
21
  const showAuthCode = statusValue === 3;
57
- const emoji = (0, util_1.hexToEmoji)(id);
58
- const activeView = (0, react_2.useMemo)(() => {
22
+ const emoji = hexToEmoji(id);
23
+ const activeView = useMemo(() => {
59
24
  if (multiUse) {
60
25
  return 'showing qr';
61
26
  }
@@ -69,25 +34,6 @@ const InvitationManager = ({ invitationUrl, active, send, status, multiUse, auth
69
34
  return 'showing qr';
70
35
  }
71
36
  }, [statusValue]);
72
- return (react_2.default.createElement(react_2.default.Fragment, null,
73
- react_2.default.createElement(components_1.Viewport.Root, { activeView: activeView, classNames: 'grow plb-1' },
74
- react_2.default.createElement(components_1.Viewport.Views, null,
75
- react_2.default.createElement(InvitationManagerView, { id: 'showing qr', emoji: emoji },
76
- react_2.default.createElement("p", { className: 'text-sm mlb-1 font-normal text-center' }, t(multiUse ? 'invite many qr label' : 'invite one qr label')),
77
- react_2.default.createElement("div", { role: 'none', className: (0, react_ui_theme_1.mx)(react_ui_theme_1.descriptionText, 'is-full max-is-[14rem] relative') },
78
- react_2.default.createElement(react_qr_rounded_1.QR, { rounding: 100, backgroundColor: 'transparent', color: 'currentColor', className: (0, react_ui_theme_1.mx)('is-full bs-full p-2', showAuthCode && 'invisible'), "aria-labelledby": qrLabel, errorCorrectionLevel: 'Q', cutout: true }, invitationUrl !== null && invitationUrl !== void 0 ? invitationUrl : 'never'),
79
- react_2.default.createElement(components_1.Centered, null,
80
- react_2.default.createElement(components_1.Emoji, { text: emoji }))),
81
- react_2.default.createElement("span", { id: qrLabel, className: 'sr-only' }, t('qr label')),
82
- react_2.default.createElement(react_ui_1.Clipboard.Button, { variant: 'ghost', value: invitationUrl !== null && invitationUrl !== void 0 ? invitationUrl : 'never' })),
83
- react_2.default.createElement(InvitationManagerView, { id: 'showing auth code' },
84
- react_2.default.createElement(components_1.Label, null, t('auth code message')),
85
- react_2.default.createElement(components_1.AuthCode, { code: authCode, large: true, classNames: 'text-black dark:text-white' }),
86
- react_2.default.createElement(components_1.Label, null, t('auth other device emoji message')),
87
- emoji && react_2.default.createElement(components_1.Emoji, { text: emoji })),
88
- react_2.default.createElement(InvitationManagerView, { id: 'showing final' }, statusValue > 0 ? (react_2.default.createElement(react_1.Check, { className: (0, react_ui_theme_1.mx)('m-1.5', (0, react_ui_theme_1.getSize)(6)) })) : (react_2.default.createElement(react_1.X, { className: (0, react_ui_theme_1.mx)('m-1.5', (0, react_ui_theme_1.getSize)(6)) }))))),
89
- react_2.default.createElement(components_1.Actions, { classNames: 'mbs-4' },
90
- react_2.default.createElement(components_1.Action, { disabled: !active, onClick: () => send === null || send === void 0 ? void 0 : send({ type: 'deselectInvitation' }) }, t('back label')))));
37
+ return (_jsxs(_Fragment, { children: [_jsx(Viewport.Root, { activeView: activeView, classNames: 'grow plb-1', children: _jsxs(Viewport.Views, { children: [_jsxs(InvitationManagerView, { id: 'showing qr', emoji: emoji, children: [_jsx("p", { className: 'text-sm mlb-1 font-normal text-center', children: t(multiUse ? 'invite many qr label' : 'invite one qr label') }), _jsxs("div", { role: 'none', className: mx(descriptionText, 'is-full max-is-[14rem] relative'), children: [_jsx(QR, { rounding: 100, backgroundColor: 'transparent', color: 'currentColor', className: mx('is-full bs-full p-2', showAuthCode && 'invisible'), "aria-labelledby": qrLabel, errorCorrectionLevel: 'Q', cutout: true, children: invitationUrl !== null && invitationUrl !== void 0 ? invitationUrl : 'never' }), _jsx(Centered, { children: _jsx(Emoji, { text: emoji }) })] }), _jsx("span", { id: qrLabel, className: 'sr-only', children: t('qr label') }), _jsx(Clipboard.Button, { variant: 'ghost', value: invitationUrl !== null && invitationUrl !== void 0 ? invitationUrl : 'never' })] }), _jsxs(InvitationManagerView, { id: 'showing auth code', children: [_jsx(Label, { children: t('auth code message') }), _jsx(AuthCode, { code: authCode, large: true, classNames: 'text-black dark:text-white' }), _jsx(Label, { children: t('auth other device emoji message') }), emoji && _jsx(Emoji, { text: emoji })] }), _jsx(InvitationManagerView, { id: 'showing final', children: statusValue > 0 ? (_jsx(Check, { className: mx('m-1.5', getSize(6)) })) : (_jsx(X, { className: mx('m-1.5', getSize(6)) })) })] }) }), _jsx(Actions, { classNames: 'mbs-4', children: _jsx(Action, { disabled: !active, onClick: () => send === null || send === void 0 ? void 0 : send({ type: 'deselectInvitation' }), children: t('back label') }) })] }));
91
38
  };
92
- exports.InvitationManager = InvitationManager;
93
39
  //# sourceMappingURL=InvitationManager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InvitationManager.js","sourceRoot":"","sources":["../../../../src/steps/InvitationManager.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,iDAAiD;AACjD,+CAAuC;AACvC,uDAAsC;AAGtC,6CAAkE;AAClE,yDAAoE;AACpE,qCAAwC;AAGxC,8CAAoH;AACpH,kCAAgD;AAOhD,MAAM,qBAAqB,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAA0C,EAAE,EAAE;IAC/F,OAAO,CACL,8BAAC,qBAAQ,CAAC,IAAI,OAAK,KAAK,EAAE,UAAU,EAAC,gDAAgD,IAClF,QAAQ,CACK,CACjB,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,iBAAiB,GAAG,CAAC,EAChC,aAAa,EACb,MAAM,EACN,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,EAAE,GAAG,GAAG,GACe,EAAE,EAAE;;IAC3B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,CAAC;IACnC,MAAM,OAAO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AAM,IAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAG,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,YAC7E,CAAC,CAAC,YAAY,CAAC,GACT,GACD,IACT,CACJ,CAAC;AACJ,CAAC,CAAC"}
@@ -1,6 +1,4 @@
1
- "use strict";
2
1
  //
3
2
  // Copyright 2023 DXOS.org
4
3
  //
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
4
  //# sourceMappingURL=StepProps.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StepProps.js","sourceRoot":"","sources":["../../../../src/steps/StepProps.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE"}
1
+ {"version":3,"file":"StepProps.js","sourceRoot":"","sources":["../../../../src/steps/StepProps.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE"}
@@ -1,23 +1,7 @@
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("./InvitationManager"), exports);
21
- __exportStar(require("./StepProps"), exports);
22
- __exportStar(require("./ConfirmReset"), exports);
4
+ export * from './InvitationManager';
5
+ export * from './StepProps';
6
+ export * from './ConfirmReset';
23
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/steps/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;AAEF,sDAAoC;AACpC,8CAA4B;AAC5B,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/steps/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import '@dxos-theme';
2
- import React from 'react';
3
2
  import { type Space } from '@dxos/react-client/echo';
4
3
  declare const _default: {
5
4
  title: string;
@@ -7,8 +6,8 @@ declare const _default: {
7
6
  export default _default;
8
7
  export type PanelType = Space | 'identity' | 'devices' | 'join';
9
8
  export declare const Default: {
10
- render: () => React.JSX.Element;
11
- decorators: import("@storybook/react/*").Decorator[];
9
+ render: () => import("react/jsx-runtime").JSX.Element;
10
+ decorators: import("@storybook/react").Decorator[];
12
11
  parameters: {
13
12
  chromatic: {
14
13
  disableSnapshot: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Invitations.e2e-stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Invitations.e2e-stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAGrB,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,EAAE,KAAK,KAAK,EAA+B,MAAM,yBAAyB,CAAC;;;;AAalF,wBAEE;AAEF,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAgMhE,eAAO,MAAM,OAAO;;;;;;;;;;;CAkBnB,CAAC"}
1
+ {"version":3,"file":"Invitations.e2e-stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Invitations.e2e-stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAQrB,OAAO,EAAE,KAAK,KAAK,EAA+B,MAAM,yBAAyB,CAAC;;;;AAalF,wBAEE;AAEF,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAgMhE,eAAO,MAAM,OAAO;;;;;;;;;;;CAkBnB,CAAC"}
@@ -1,167 +1,104 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Default = void 0;
40
- require("@dxos-theme");
41
- const react_1 = require("@phosphor-icons/react");
42
- const react_2 = __importStar(require("react"));
43
- const log_1 = require("@dxos/log");
44
- const random_1 = require("@dxos/random");
45
- const react_client_1 = require("@dxos/react-client");
46
- const echo_1 = require("@dxos/react-client/echo");
47
- const halo_1 = require("@dxos/react-client/halo");
48
- const invitations_1 = require("@dxos/react-client/invitations");
49
- const mesh_1 = require("@dxos/react-client/mesh");
50
- const testing_1 = require("@dxos/react-client/testing");
51
- const react_ui_1 = require("@dxos/react-ui");
52
- const react_ui_theme_1 = require("@dxos/react-ui-theme");
53
- const storybook_utils_1 = require("@dxos/storybook-utils");
54
- const components_1 = require("../components");
55
- const panels_1 = require("../panels");
56
- const translations_1 = require("../translations");
57
- exports.default = {
5
+ import '@dxos-theme';
6
+ import { Laptop, Planet, Plus, PlusCircle, SignIn, QrCode, WifiHigh, WifiSlash } from '@phosphor-icons/react';
7
+ import { useMemo, useState } from 'react';
8
+ import { log } from '@dxos/log';
9
+ import { faker } from '@dxos/random';
10
+ import { useClient } from '@dxos/react-client';
11
+ import { useSpaces } from '@dxos/react-client/echo';
12
+ import { useIdentity } from '@dxos/react-client/halo';
13
+ import { Invitation, InvitationEncoder } from '@dxos/react-client/invitations';
14
+ import { ConnectionState, useNetworkStatus } from '@dxos/react-client/mesh';
15
+ import { useMultiClient, withMultiClientProvider } from '@dxos/react-client/testing';
16
+ import { Button, ButtonGroup, Clipboard, List } from '@dxos/react-ui';
17
+ import { getSize, groupSurface } from '@dxos/react-ui-theme';
18
+ import { withLayout, withTheme } from '@dxos/storybook-utils';
19
+ import { IdentityListItem, SpaceListItem } from '../components';
20
+ import { IdentityPanel, JoinPanel, SpacePanel } from '../panels';
21
+ import { osTranslations } from '../translations';
22
+ export default {
58
23
  title: 'sdk/shell/Invitations',
59
24
  };
60
25
  const createInvitationUrl = (invitation) => invitation;
61
26
  const Panel = ({ id, panel, setPanel }) => {
62
- const client = (0, react_client_1.useClient)();
63
- const spaces = (0, echo_1.useSpaces)();
64
- (0, react_2.useMemo)(() => {
27
+ const client = useClient();
28
+ const spaces = useSpaces();
29
+ useMemo(() => {
65
30
  if (panel && typeof panel !== 'string') {
66
31
  window[`peer${id}CreateSpaceInvitation`] = (options) => {
67
32
  const invitation = panel.share(options);
68
33
  invitation.subscribe((invitation) => {
69
- const invitationCode = invitations_1.InvitationEncoder.encode(invitation);
70
- if (invitation.state === invitations_1.Invitation.State.CONNECTING) {
71
- log_1.log.info(JSON.stringify({ invitationCode, authCode: invitation.authCode }));
34
+ const invitationCode = InvitationEncoder.encode(invitation);
35
+ if (invitation.state === Invitation.State.CONNECTING) {
36
+ log.info(JSON.stringify({ invitationCode, authCode: invitation.authCode }));
72
37
  }
73
38
  });
74
39
  };
75
40
  }
76
41
  }, [panel]);
77
42
  if (panel && typeof panel !== 'string') {
78
- return react_2.default.createElement(panels_1.SpacePanel, { space: panel, createInvitationUrl: createInvitationUrl });
43
+ return _jsx(SpacePanel, { space: panel, createInvitationUrl: createInvitationUrl });
79
44
  }
80
45
  switch (panel) {
81
46
  case 'identity': {
82
- return react_2.default.createElement(panels_1.JoinPanel, { mode: 'halo-only', onDone: () => setPanel(undefined), onExit: () => setPanel(undefined) });
47
+ return _jsx(JoinPanel, { mode: 'halo-only', onDone: () => setPanel(undefined), onExit: () => setPanel(undefined) });
83
48
  }
84
49
  case 'devices': {
85
- return react_2.default.createElement(panels_1.IdentityPanel, { createInvitationUrl: createInvitationUrl, onDone: () => setPanel(undefined) });
50
+ return _jsx(IdentityPanel, { createInvitationUrl: createInvitationUrl, onDone: () => setPanel(undefined) });
86
51
  }
87
52
  case 'join': {
88
- return react_2.default.createElement(panels_1.JoinPanel, { onDone: () => setPanel(undefined), onExit: () => setPanel(undefined) });
53
+ return _jsx(JoinPanel, { onDone: () => setPanel(undefined), onExit: () => setPanel(undefined) });
89
54
  }
90
55
  default: {
91
56
  // TODO(wittjosiah): Tooltips make playwright (webkit) flakier.
92
- const controls = (react_2.default.createElement(react_ui_1.ButtonGroup, { classNames: 'mbe-4' },
93
- react_2.default.createElement(react_ui_1.Button, { onClick: () => client.spaces.create({ name: random_1.faker.commerce.productName() }), "data-testid": 'invitations.create-space' },
94
- react_2.default.createElement(react_1.PlusCircle, { className: (0, react_ui_theme_1.getSize)(6) })),
95
- react_2.default.createElement(react_ui_1.Button, { onClick: () => setPanel('join'), "data-testid": 'invitations.open-join-space' },
96
- react_2.default.createElement(react_1.SignIn, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) }))));
97
- const header = (react_2.default.createElement("div", { className: 'flex' },
98
- "Spaces",
99
- react_2.default.createElement("span", { className: 'grow' }),
100
- controls));
101
- return (react_2.default.createElement("div", null,
102
- react_2.default.createElement("h1", null, header),
103
- spaces.length > 0 ? (react_2.default.createElement(react_ui_1.List, null, spaces.map((space) => (react_2.default.createElement(components_1.SpaceListItem, { key: space.key.toHex(), space: space, onClick: () => setPanel(space) }))))) : (react_2.default.createElement("div", { className: 'text-center' }, "No spaces"))));
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" }))] }));
104
60
  }
105
61
  }
106
62
  };
107
63
  const Invitations = () => {
108
- const { id } = (0, testing_1.useMultiClient)();
109
- const client = (0, react_client_1.useClient)();
110
- const networkStatus = (0, mesh_1.useNetworkStatus)().swarm;
111
- const identity = (0, halo_1.useIdentity)();
112
- const [panel, setPanel] = (0, react_2.useState)();
113
- (0, react_2.useMemo)(() => {
64
+ const { id } = useMultiClient();
65
+ const client = useClient();
66
+ const networkStatus = useNetworkStatus().swarm;
67
+ const identity = useIdentity();
68
+ const [panel, setPanel] = useState();
69
+ useMemo(() => {
114
70
  window[`peer${id}CreateHaloInvitation`] = (options) => {
115
71
  const invitation = client.halo.share(options);
116
72
  invitation.subscribe((invitation) => {
117
- const invitationCode = invitations_1.InvitationEncoder.encode(invitation);
118
- if (invitation.state === invitations_1.Invitation.State.CONNECTING) {
119
- log_1.log.info(JSON.stringify({ invitationCode, authCode: invitation.authCode }));
73
+ const invitationCode = InvitationEncoder.encode(invitation);
74
+ if (invitation.state === Invitation.State.CONNECTING) {
75
+ log.info(JSON.stringify({ invitationCode, authCode: invitation.authCode }));
120
76
  }
121
77
  });
122
78
  };
123
79
  }, [client]);
124
80
  // TODO(wittjosiah): Tooltips make playwright (webkit) flakier.
125
- const controls = (react_2.default.createElement(react_ui_1.ButtonGroup, { classNames: 'mbe-4' },
126
- react_2.default.createElement(react_ui_1.Button, { onClick: () => client.halo.createIdentity({ displayName: random_1.faker.person.firstName() }), disabled: Boolean(identity), "data-testid": 'invitations.create-identity' },
127
- react_2.default.createElement(react_1.Plus, { className: (0, react_ui_theme_1.getSize)(6) })),
128
- react_2.default.createElement(react_ui_1.Button, { onClick: () => setPanel('identity'), disabled: panel === 'identity', "data-testid": 'invitations.open-join-identity' },
129
- react_2.default.createElement(react_1.QrCode, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) })),
130
- react_2.default.createElement(react_ui_1.Button, { onClick: () => setPanel('devices'), disabled: !identity || panel === 'devices', "data-testid": 'invitations.open-devices' },
131
- react_2.default.createElement(react_1.Laptop, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) })),
132
- react_2.default.createElement(react_ui_1.Button, { onClick: () => setPanel(undefined), disabled: !panel, "data-testid": 'invitations.list-spaces' },
133
- react_2.default.createElement(react_1.Planet, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) })),
134
- react_2.default.createElement(react_ui_1.Button, { onClick: () => client.mesh.updateConfig(networkStatus === mesh_1.ConnectionState.ONLINE ? mesh_1.ConnectionState.OFFLINE : mesh_1.ConnectionState.ONLINE), "data-testid": 'invitations.toggle-network' }, networkStatus === mesh_1.ConnectionState.ONLINE ? (react_2.default.createElement(react_1.WifiHigh, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) })) : (react_2.default.createElement(react_1.WifiSlash, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) })))));
135
- const header = (react_2.default.createElement("div", { className: 'flex', "data-testid": 'invitations.identity-header' },
136
- "Identity",
137
- react_2.default.createElement("span", { className: 'grow' }),
138
- controls));
139
- return (react_2.default.createElement("div", { className: 'flex flex-col m-4 flex-1 min-w-0', "data-testid": `peer-${id}` },
140
- react_2.default.createElement("div", { className: `${react_ui_theme_1.groupSurface} rounded p-2 mbe-2` },
141
- react_2.default.createElement("h1", null, header),
142
- identity ? (react_2.default.createElement(react_ui_1.List, null,
143
- react_2.default.createElement(components_1.IdentityListItem, { identity: identity, presence: networkStatus }))) : (react_2.default.createElement("div", { className: 'text-center' }, "No identity"))),
144
- identity || panel ? (react_2.default.createElement("div", { className: `${react_ui_theme_1.groupSurface} rounded p-2` },
145
- react_2.default.createElement(Panel, { id: id, panel: panel, setPanel: setPanel }))) : null));
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] }));
146
84
  };
147
85
  // TODO(wittjosiah): This story fails to start in Safari/Webkit.
148
86
  // The issue appears to be related to dynamic imports during client initialization.
149
87
  // This does not seem to be a problem in other browsers nor in Safari in the app.
150
- exports.Default = {
88
+ export const Default = {
151
89
  render: () => {
152
90
  return (
153
91
  // TODO(wittjosiah): Include Clipboard.Provider in layout decorator.
154
- react_2.default.createElement(react_ui_1.Clipboard.Provider, null,
155
- react_2.default.createElement(Invitations, null)));
92
+ _jsx(Clipboard.Provider, { children: _jsx(Invitations, {}) }));
156
93
  },
157
94
  decorators: [
158
- (0, testing_1.withMultiClientProvider)({ numClients: 3 }),
159
- (0, storybook_utils_1.withLayout)({ tooltips: true, classNames: 'grid grid-cols-3' }),
160
- storybook_utils_1.withTheme,
95
+ withMultiClientProvider({ numClients: 3 }),
96
+ withLayout({ tooltips: true, classNames: 'grid grid-cols-3' }),
97
+ withTheme,
161
98
  ],
162
99
  parameters: {
163
100
  chromatic: { disableSnapshot: true },
164
- translations: [translations_1.osTranslations],
101
+ translations: [osTranslations],
165
102
  },
166
103
  };
167
104
  //# sourceMappingURL=Invitations.e2e-stories.js.map
@@ -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,uBAAqB;AAErB,iDAA8G;AAC9G,+CAAiD;AAEjD,mCAAgC;AAChC,yCAAqC;AACrC,qDAA+C;AAC/C,kDAAkF;AAClF,kDAAsD;AACtD,gEAA+E;AAC/E,kDAA4E;AAC5E,wDAAqF;AACrF,6CAAsE;AACtE,yDAA6D;AAC7D,2DAA8D;AAE9D,8CAAgE;AAChE,sCAAiE;AACjE,kDAAiD;AAEjD,kBAAe;IACb,KAAK,EAAE,uBAAuB;CAC/B,CAAC;AAIF,MAAM,mBAAmB,GAAG,CAAC,UAAkB,EAAE,EAAE,CAAC,UAAU,CAAC;AAE/D,MAAM,KAAK,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAA4E,EAAE,EAAE;IAClH,MAAM,MAAM,GAAG,IAAA,wBAAS,GAAE,CAAC;IAC3B,MAAM,MAAM,GAAG,IAAA,gBAAS,GAAE,CAAC;IAE3B,IAAA,eAAO,EAAC,GAAG,EAAE;QACX,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YACtC,MAAc,CAAC,OAAO,EAAE,uBAAuB,CAAC,GAAG,CAAC,OAA6B,EAAE,EAAE;gBACpF,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBAExC,UA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C,KAAC,KAAK,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAI,GAC/C,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,gEAAgE;AAChE,qFAAqF;AACrF,mFAAmF;AACnF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,MAAM,EAAE,GAAG,EAAE;QACX,OAAO;QACL,oEAAoE;QACpE,KAAC,SAAS,CAAC,QAAQ,cACjB,KAAC,WAAW,KAAG,GACI,CACtB,CAAC;IACJ,CAAC;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"}
@@ -1,22 +1,6 @@
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("./panelStyles"), exports);
21
- __exportStar(require("./invitationStatusStyles"), exports);
4
+ export * from './panelStyles';
5
+ export * from './invitationStatusStyles';
22
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/styles/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;AAEF,gDAA8B;AAC9B,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/styles/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC"}
@@ -1,41 +1,35 @@
1
- "use strict";
2
1
  //
3
2
  // Copyright 2023 DXOS.org
4
3
  //
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.resolvedTextColor = exports.resolvedBgColor = exports.resolvedStrokeColor = exports.cancelledStrokeColor = exports.errorStrokeColor = exports.successStrokeColor = exports.activeStrokeColor = exports.inactiveStrokeColor = exports.cancelledTextColor = exports.errorTextColor = exports.successTextColor = exports.activeTextColor = exports.inactiveTextColor = exports.cancelledBgColor = exports.errorBgColor = exports.successBgColor = exports.activeBgColor = exports.inactiveBgColor = void 0;
7
- const invitations_1 = require("@dxos/react-client/invitations");
8
- exports.inactiveBgColor = 'bg-neutral-100 dark:bg-neutral-600';
9
- exports.activeBgColor = 'bg-primary-500 dark:bg-primary-400';
10
- exports.successBgColor = 'bg-success-500 dark:bg-success-400';
11
- exports.errorBgColor = 'bg-error-500 dark:bg-error-400';
12
- exports.cancelledBgColor = 'bg-warning-500 dark:bg-warning-400';
13
- exports.inactiveTextColor = 'text-neutral-100 dark:text-neutral-600';
14
- exports.activeTextColor = 'text-primary-400 dark:text-primary-500';
15
- exports.successTextColor = 'text-success-400 dark:text-success-500';
16
- exports.errorTextColor = 'text-error-400 dark:text-error-500';
17
- exports.cancelledTextColor = 'text-warning-400 dark:text-warning-500';
18
- exports.inactiveStrokeColor = 'stroke-neutral-100 dark:stroke-neutral-700';
19
- exports.activeStrokeColor = 'stroke-primary-400 dark:stroke-primary-150';
20
- exports.successStrokeColor = 'stroke-success-300 dark:stroke-primary-400';
21
- exports.errorStrokeColor = 'stroke-error-300 dark:stroke-error-500';
22
- exports.cancelledStrokeColor = 'stroke-warning-300 dark:stroke-warning-500';
23
- const resolvedStrokeColor = (status) => status === invitations_1.Invitation.State.ERROR
24
- ? exports.errorStrokeColor
25
- : status === invitations_1.Invitation.State.CANCELLED || status === invitations_1.Invitation.State.TIMEOUT
26
- ? exports.cancelledStrokeColor
27
- : exports.successStrokeColor;
28
- exports.resolvedStrokeColor = resolvedStrokeColor;
29
- const resolvedBgColor = (status) => status === invitations_1.Invitation.State.ERROR
30
- ? exports.errorBgColor
31
- : status === invitations_1.Invitation.State.CANCELLED || status === invitations_1.Invitation.State.TIMEOUT
32
- ? exports.cancelledBgColor
33
- : exports.successBgColor;
34
- exports.resolvedBgColor = resolvedBgColor;
35
- const resolvedTextColor = (status) => status === invitations_1.Invitation.State.ERROR
36
- ? exports.errorTextColor
37
- : status === invitations_1.Invitation.State.CANCELLED || status === invitations_1.Invitation.State.TIMEOUT
38
- ? exports.cancelledTextColor
39
- : exports.successTextColor;
40
- exports.resolvedTextColor = resolvedTextColor;
4
+ import { Invitation } from '@dxos/react-client/invitations';
5
+ export const inactiveBgColor = 'bg-neutral-100 dark:bg-neutral-600';
6
+ export const activeBgColor = 'bg-primary-500 dark:bg-primary-400';
7
+ export const successBgColor = 'bg-success-500 dark:bg-success-400';
8
+ export const errorBgColor = 'bg-error-500 dark:bg-error-400';
9
+ export const cancelledBgColor = 'bg-warning-500 dark:bg-warning-400';
10
+ export const inactiveTextColor = 'text-neutral-100 dark:text-neutral-600';
11
+ export const activeTextColor = 'text-primary-400 dark:text-primary-500';
12
+ export const successTextColor = 'text-success-400 dark:text-success-500';
13
+ export const errorTextColor = 'text-error-400 dark:text-error-500';
14
+ export const cancelledTextColor = 'text-warning-400 dark:text-warning-500';
15
+ export const inactiveStrokeColor = 'stroke-neutral-100 dark:stroke-neutral-700';
16
+ export const activeStrokeColor = 'stroke-primary-400 dark:stroke-primary-150';
17
+ export const successStrokeColor = 'stroke-success-300 dark:stroke-primary-400';
18
+ export const errorStrokeColor = 'stroke-error-300 dark:stroke-error-500';
19
+ export const cancelledStrokeColor = 'stroke-warning-300 dark:stroke-warning-500';
20
+ export const resolvedStrokeColor = (status) => status === Invitation.State.ERROR
21
+ ? errorStrokeColor
22
+ : status === Invitation.State.CANCELLED || status === Invitation.State.TIMEOUT
23
+ ? cancelledStrokeColor
24
+ : successStrokeColor;
25
+ export const resolvedBgColor = (status) => status === Invitation.State.ERROR
26
+ ? errorBgColor
27
+ : status === Invitation.State.CANCELLED || status === Invitation.State.TIMEOUT
28
+ ? cancelledBgColor
29
+ : successBgColor;
30
+ export const resolvedTextColor = (status) => status === Invitation.State.ERROR
31
+ ? errorTextColor
32
+ : status === Invitation.State.CANCELLED || status === Invitation.State.TIMEOUT
33
+ ? cancelledTextColor
34
+ : successTextColor;
41
35
  //# sourceMappingURL=invitationStatusStyles.js.map