@dxos/shell 0.3.11-main.1caa3af

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 (530) hide show
  1. package/LICENSE +8 -0
  2. package/README.md +21 -0
  3. package/dist/lib/browser/chunk-ZSTKOCBT.mjs +10 -0
  4. package/dist/lib/browser/chunk-ZSTKOCBT.mjs.map +7 -0
  5. package/dist/lib/browser/meta.json +1 -0
  6. package/dist/lib/browser/react.mjs +3617 -0
  7. package/dist/lib/browser/react.mjs.map +7 -0
  8. package/dist/lib/browser/testing/index.mjs +179 -0
  9. package/dist/lib/browser/testing/index.mjs.map +7 -0
  10. package/dist/types/src/components/AuthCode.d.ts +8 -0
  11. package/dist/types/src/components/AuthCode.d.ts.map +1 -0
  12. package/dist/types/src/components/AuthCode.js +26 -0
  13. package/dist/types/src/components/AuthCode.js.map +1 -0
  14. package/dist/types/src/components/Clipboard/ClipboardProvider.d.ts +9 -0
  15. package/dist/types/src/components/Clipboard/ClipboardProvider.d.ts.map +1 -0
  16. package/dist/types/src/components/Clipboard/ClipboardProvider.js +46 -0
  17. package/dist/types/src/components/Clipboard/ClipboardProvider.js.map +1 -0
  18. package/dist/types/src/components/Clipboard/CopyButton.d.ts +9 -0
  19. package/dist/types/src/components/Clipboard/CopyButton.d.ts.map +1 -0
  20. package/dist/types/src/components/Clipboard/CopyButton.js +65 -0
  21. package/dist/types/src/components/Clipboard/CopyButton.js.map +1 -0
  22. package/dist/types/src/components/Clipboard/index.d.ts +3 -0
  23. package/dist/types/src/components/Clipboard/index.d.ts.map +1 -0
  24. package/dist/types/src/components/Clipboard/index.js +22 -0
  25. package/dist/types/src/components/Clipboard/index.js.map +1 -0
  26. package/dist/types/src/components/CompoundButton/CompoundButton.d.ts +17 -0
  27. package/dist/types/src/components/CompoundButton/CompoundButton.d.ts.map +1 -0
  28. package/dist/types/src/components/CompoundButton/CompoundButton.js +29 -0
  29. package/dist/types/src/components/CompoundButton/CompoundButton.js.map +1 -0
  30. package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts +35 -0
  31. package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts.map +1 -0
  32. package/dist/types/src/components/CompoundButton/CompoundButton.stories.js +45 -0
  33. package/dist/types/src/components/CompoundButton/CompoundButton.stories.js.map +1 -0
  34. package/dist/types/src/components/CompoundButton/index.d.ts +2 -0
  35. package/dist/types/src/components/CompoundButton/index.d.ts.map +1 -0
  36. package/dist/types/src/components/CompoundButton/index.js +21 -0
  37. package/dist/types/src/components/CompoundButton/index.js.map +1 -0
  38. package/dist/types/src/components/IdentityList/DeviceList.d.ts +7 -0
  39. package/dist/types/src/components/IdentityList/DeviceList.d.ts.map +1 -0
  40. package/dist/types/src/components/IdentityList/DeviceList.js +29 -0
  41. package/dist/types/src/components/IdentityList/DeviceList.js.map +1 -0
  42. package/dist/types/src/components/IdentityList/IdentityListItem.d.ts +11 -0
  43. package/dist/types/src/components/IdentityList/IdentityListItem.d.ts.map +1 -0
  44. package/dist/types/src/components/IdentityList/IdentityListItem.js +47 -0
  45. package/dist/types/src/components/IdentityList/IdentityListItem.js.map +1 -0
  46. package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts +13 -0
  47. package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts.map +1 -0
  48. package/dist/types/src/components/IdentityList/SpaceMemberList.js +54 -0
  49. package/dist/types/src/components/IdentityList/SpaceMemberList.js.map +1 -0
  50. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts +17 -0
  51. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts.map +1 -0
  52. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js +26 -0
  53. package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js.map +1 -0
  54. package/dist/types/src/components/IdentityList/index.d.ts +4 -0
  55. package/dist/types/src/components/IdentityList/index.d.ts.map +1 -0
  56. package/dist/types/src/components/IdentityList/index.js +23 -0
  57. package/dist/types/src/components/IdentityList/index.js.map +1 -0
  58. package/dist/types/src/components/InvitationList/InvitationList.d.ts +11 -0
  59. package/dist/types/src/components/InvitationList/InvitationList.d.ts.map +1 -0
  60. package/dist/types/src/components/InvitationList/InvitationList.js +22 -0
  61. package/dist/types/src/components/InvitationList/InvitationList.js.map +1 -0
  62. package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts +17 -0
  63. package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts.map +1 -0
  64. package/dist/types/src/components/InvitationList/InvitationList.stories.js +39 -0
  65. package/dist/types/src/components/InvitationList/InvitationList.stories.js.map +1 -0
  66. package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts +7 -0
  67. package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts.map +1 -0
  68. package/dist/types/src/components/InvitationList/InvitationListContainer.js +42 -0
  69. package/dist/types/src/components/InvitationList/InvitationListContainer.js.map +1 -0
  70. package/dist/types/src/components/InvitationList/InvitationListItem.d.ts +12 -0
  71. package/dist/types/src/components/InvitationList/InvitationListItem.d.ts.map +1 -0
  72. package/dist/types/src/components/InvitationList/InvitationListItem.js +103 -0
  73. package/dist/types/src/components/InvitationList/InvitationListItem.js.map +1 -0
  74. package/dist/types/src/components/InvitationList/InvitationListProps.d.ts +9 -0
  75. package/dist/types/src/components/InvitationList/InvitationListProps.d.ts.map +1 -0
  76. package/dist/types/src/components/InvitationList/InvitationListProps.js +3 -0
  77. package/dist/types/src/components/InvitationList/InvitationListProps.js.map +1 -0
  78. package/dist/types/src/components/InvitationList/index.d.ts +4 -0
  79. package/dist/types/src/components/InvitationList/index.d.ts.map +1 -0
  80. package/dist/types/src/components/InvitationList/index.js +23 -0
  81. package/dist/types/src/components/InvitationList/index.js.map +1 -0
  82. package/dist/types/src/components/Panel/Action.d.ts +20 -0
  83. package/dist/types/src/components/Panel/Action.d.ts.map +1 -0
  84. package/dist/types/src/components/Panel/Action.js +93 -0
  85. package/dist/types/src/components/Panel/Action.js.map +1 -0
  86. package/dist/types/src/components/Panel/Actions.d.ts +11 -0
  87. package/dist/types/src/components/Panel/Actions.d.ts.map +1 -0
  88. package/dist/types/src/components/Panel/Actions.js +36 -0
  89. package/dist/types/src/components/Panel/Actions.js.map +1 -0
  90. package/dist/types/src/components/Panel/CloseButton.d.ts +5 -0
  91. package/dist/types/src/components/Panel/CloseButton.d.ts.map +1 -0
  92. package/dist/types/src/components/Panel/CloseButton.js +21 -0
  93. package/dist/types/src/components/Panel/CloseButton.js.map +1 -0
  94. package/dist/types/src/components/Panel/Emoji.d.ts +7 -0
  95. package/dist/types/src/components/Panel/Emoji.d.ts.map +1 -0
  96. package/dist/types/src/components/Panel/Emoji.js +24 -0
  97. package/dist/types/src/components/Panel/Emoji.js.map +1 -0
  98. package/dist/types/src/components/Panel/Heading.d.ts +16 -0
  99. package/dist/types/src/components/Panel/Heading.d.ts.map +1 -0
  100. package/dist/types/src/components/Panel/Heading.js +39 -0
  101. package/dist/types/src/components/Panel/Heading.js.map +1 -0
  102. package/dist/types/src/components/Panel/Input.d.ts +11 -0
  103. package/dist/types/src/components/Panel/Input.d.ts.map +1 -0
  104. package/dist/types/src/components/Panel/Input.js +19 -0
  105. package/dist/types/src/components/Panel/Input.js.map +1 -0
  106. package/dist/types/src/components/Panel/Label.d.ts +4 -0
  107. package/dist/types/src/components/Panel/Label.d.ts.map +1 -0
  108. package/dist/types/src/components/Panel/Label.js +17 -0
  109. package/dist/types/src/components/Panel/Label.js.map +1 -0
  110. package/dist/types/src/components/Panel/Panel.stories.d.ts +13 -0
  111. package/dist/types/src/components/Panel/Panel.stories.d.ts.map +1 -0
  112. package/dist/types/src/components/Panel/Panel.stories.js +44 -0
  113. package/dist/types/src/components/Panel/Panel.stories.js.map +1 -0
  114. package/dist/types/src/components/Panel/StepHeading.d.ts +5 -0
  115. package/dist/types/src/components/Panel/StepHeading.d.ts.map +1 -0
  116. package/dist/types/src/components/Panel/StepHeading.js +35 -0
  117. package/dist/types/src/components/Panel/StepHeading.js.map +1 -0
  118. package/dist/types/src/components/Panel/index.d.ts +9 -0
  119. package/dist/types/src/components/Panel/index.d.ts.map +1 -0
  120. package/dist/types/src/components/Panel/index.js +28 -0
  121. package/dist/types/src/components/Panel/index.js.map +1 -0
  122. package/dist/types/src/components/SpaceListItem.d.ts +7 -0
  123. package/dist/types/src/components/SpaceListItem.d.ts.map +1 -0
  124. package/dist/types/src/components/SpaceListItem.js +46 -0
  125. package/dist/types/src/components/SpaceListItem.js.map +1 -0
  126. package/dist/types/src/components/StorybookDialog.d.ts +6 -0
  127. package/dist/types/src/components/StorybookDialog.d.ts.map +1 -0
  128. package/dist/types/src/components/StorybookDialog.js +23 -0
  129. package/dist/types/src/components/StorybookDialog.js.map +1 -0
  130. package/dist/types/src/components/Viewport/Viewport.d.ts +39 -0
  131. package/dist/types/src/components/Viewport/Viewport.d.ts.map +1 -0
  132. package/dist/types/src/components/Viewport/Viewport.js +73 -0
  133. package/dist/types/src/components/Viewport/Viewport.js.map +1 -0
  134. package/dist/types/src/components/Viewport/Viewport.stories.d.ts +17 -0
  135. package/dist/types/src/components/Viewport/Viewport.stories.d.ts.map +1 -0
  136. package/dist/types/src/components/Viewport/Viewport.stories.js +51 -0
  137. package/dist/types/src/components/Viewport/Viewport.stories.js.map +1 -0
  138. package/dist/types/src/components/Viewport/index.d.ts +2 -0
  139. package/dist/types/src/components/Viewport/index.d.ts.map +1 -0
  140. package/dist/types/src/components/Viewport/index.js +21 -0
  141. package/dist/types/src/components/Viewport/index.js.map +1 -0
  142. package/dist/types/src/components/index.d.ts +9 -0
  143. package/dist/types/src/components/index.d.ts.map +1 -0
  144. package/dist/types/src/components/index.js +28 -0
  145. package/dist/types/src/components/index.js.map +1 -0
  146. package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts +7 -0
  147. package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts.map +1 -0
  148. package/dist/types/src/composites/IdentityDialog/IdentityDialog.js +26 -0
  149. package/dist/types/src/composites/IdentityDialog/IdentityDialog.js.map +1 -0
  150. package/dist/types/src/composites/IdentityDialog/index.d.ts +2 -0
  151. package/dist/types/src/composites/IdentityDialog/index.d.ts.map +1 -0
  152. package/dist/types/src/composites/IdentityDialog/index.js +21 -0
  153. package/dist/types/src/composites/IdentityDialog/index.js.map +1 -0
  154. package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts +6 -0
  155. package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts.map +1 -0
  156. package/dist/types/src/composites/JoinDialog/JoinDialog.js +27 -0
  157. package/dist/types/src/composites/JoinDialog/JoinDialog.js.map +1 -0
  158. package/dist/types/src/composites/JoinDialog/index.d.ts +2 -0
  159. package/dist/types/src/composites/JoinDialog/index.d.ts.map +1 -0
  160. package/dist/types/src/composites/JoinDialog/index.js +21 -0
  161. package/dist/types/src/composites/JoinDialog/index.js.map +1 -0
  162. package/dist/types/src/composites/Shell/Shell.d.ts +6 -0
  163. package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -0
  164. package/dist/types/src/composites/Shell/Shell.js +90 -0
  165. package/dist/types/src/composites/Shell/Shell.js.map +1 -0
  166. package/dist/types/src/composites/Shell/ShellContext.d.ts +30 -0
  167. package/dist/types/src/composites/Shell/ShellContext.d.ts.map +1 -0
  168. package/dist/types/src/composites/Shell/ShellContext.js +129 -0
  169. package/dist/types/src/composites/Shell/ShellContext.js.map +1 -0
  170. package/dist/types/src/composites/Shell/index.d.ts +4 -0
  171. package/dist/types/src/composites/Shell/index.d.ts.map +1 -0
  172. package/dist/types/src/composites/Shell/index.js +23 -0
  173. package/dist/types/src/composites/Shell/index.js.map +1 -0
  174. package/dist/types/src/composites/Shell/memory-shell-runtime.d.ts +16 -0
  175. package/dist/types/src/composites/Shell/memory-shell-runtime.d.ts.map +1 -0
  176. package/dist/types/src/composites/Shell/memory-shell-runtime.js +38 -0
  177. package/dist/types/src/composites/Shell/memory-shell-runtime.js.map +1 -0
  178. package/dist/types/src/composites/Shell/run-shell.d.ts +3 -0
  179. package/dist/types/src/composites/Shell/run-shell.d.ts.map +1 -0
  180. package/dist/types/src/composites/Shell/run-shell.js +54 -0
  181. package/dist/types/src/composites/Shell/run-shell.js.map +1 -0
  182. package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts +6 -0
  183. package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts.map +1 -0
  184. package/dist/types/src/composites/SpaceDialog/SpaceDialog.js +26 -0
  185. package/dist/types/src/composites/SpaceDialog/SpaceDialog.js.map +1 -0
  186. package/dist/types/src/composites/SpaceDialog/index.d.ts +2 -0
  187. package/dist/types/src/composites/SpaceDialog/index.d.ts.map +1 -0
  188. package/dist/types/src/composites/SpaceDialog/index.js +21 -0
  189. package/dist/types/src/composites/SpaceDialog/index.js.map +1 -0
  190. package/dist/types/src/composites/index.d.ts +5 -0
  191. package/dist/types/src/composites/index.d.ts.map +1 -0
  192. package/dist/types/src/composites/index.js +24 -0
  193. package/dist/types/src/composites/index.js.map +1 -0
  194. package/dist/types/src/index.d.ts +3 -0
  195. package/dist/types/src/index.d.ts.map +1 -0
  196. package/dist/types/src/index.js +10 -0
  197. package/dist/types/src/index.js.map +1 -0
  198. package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts +4 -0
  199. package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -0
  200. package/dist/types/src/panels/IdentityPanel/IdentityPanel.js +124 -0
  201. package/dist/types/src/panels/IdentityPanel/IdentityPanel.js.map +1 -0
  202. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts +22 -0
  203. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts.map +1 -0
  204. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js +86 -0
  205. package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js.map +1 -0
  206. package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.d.ts +27 -0
  207. package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.d.ts.map +1 -0
  208. package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.js +6 -0
  209. package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.js.map +1 -0
  210. package/dist/types/src/panels/IdentityPanel/identityMachine.d.ts +46 -0
  211. package/dist/types/src/panels/IdentityPanel/identityMachine.d.ts.map +1 -0
  212. package/dist/types/src/panels/IdentityPanel/identityMachine.js +79 -0
  213. package/dist/types/src/panels/IdentityPanel/identityMachine.js.map +1 -0
  214. package/dist/types/src/panels/IdentityPanel/index.d.ts +3 -0
  215. package/dist/types/src/panels/IdentityPanel/index.d.ts.map +1 -0
  216. package/dist/types/src/panels/IdentityPanel/index.js +22 -0
  217. package/dist/types/src/panels/IdentityPanel/index.js.map +1 -0
  218. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts +9 -0
  219. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts.map +1 -0
  220. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js +85 -0
  221. package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js.map +1 -0
  222. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts +15 -0
  223. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts.map +1 -0
  224. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js +62 -0
  225. package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js.map +1 -0
  226. package/dist/types/src/panels/IdentityPanel/steps/index.d.ts +3 -0
  227. package/dist/types/src/panels/IdentityPanel/steps/index.d.ts.map +1 -0
  228. package/dist/types/src/panels/IdentityPanel/steps/index.js +22 -0
  229. package/dist/types/src/panels/IdentityPanel/steps/index.js.map +1 -0
  230. package/dist/types/src/panels/JoinPanel/JoinHeading.d.ts +10 -0
  231. package/dist/types/src/panels/JoinPanel/JoinHeading.d.ts.map +1 -0
  232. package/dist/types/src/panels/JoinPanel/JoinHeading.js +45 -0
  233. package/dist/types/src/panels/JoinPanel/JoinHeading.js.map +1 -0
  234. package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts +4 -0
  235. package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts.map +1 -0
  236. package/dist/types/src/panels/JoinPanel/JoinPanel.js +293 -0
  237. package/dist/types/src/panels/JoinPanel/JoinPanel.js.map +1 -0
  238. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts +92 -0
  239. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts.map +1 -0
  240. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js +74 -0
  241. package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js.map +1 -0
  242. package/dist/types/src/panels/JoinPanel/JoinPanelProps.d.ts +91 -0
  243. package/dist/types/src/panels/JoinPanel/JoinPanelProps.d.ts.map +1 -0
  244. package/dist/types/src/panels/JoinPanel/JoinPanelProps.js +6 -0
  245. package/dist/types/src/panels/JoinPanel/JoinPanelProps.js.map +1 -0
  246. package/dist/types/src/panels/JoinPanel/index.d.ts +3 -0
  247. package/dist/types/src/panels/JoinPanel/index.d.ts.map +1 -0
  248. package/dist/types/src/panels/JoinPanel/index.js +22 -0
  249. package/dist/types/src/panels/JoinPanel/index.js.map +1 -0
  250. package/dist/types/src/panels/JoinPanel/joinMachine.d.ts +87 -0
  251. package/dist/types/src/panels/JoinPanel/joinMachine.d.ts.map +1 -0
  252. package/dist/types/src/panels/JoinPanel/joinMachine.js +402 -0
  253. package/dist/types/src/panels/JoinPanel/joinMachine.js.map +1 -0
  254. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts +4 -0
  255. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts.map +1 -0
  256. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js +34 -0
  257. package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js.map +1 -0
  258. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts +8 -0
  259. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts.map +1 -0
  260. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js +56 -0
  261. package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js.map +1 -0
  262. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts +12 -0
  263. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts.map +1 -0
  264. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js +67 -0
  265. package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js.map +1 -0
  266. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.d.ts +9 -0
  267. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.d.ts.map +1 -0
  268. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.js +44 -0
  269. package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.js.map +1 -0
  270. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts +11 -0
  271. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts.map +1 -0
  272. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js +72 -0
  273. package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js.map +1 -0
  274. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts +8 -0
  275. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts.map +1 -0
  276. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js +68 -0
  277. package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js.map +1 -0
  278. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts +11 -0
  279. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts.map +1 -0
  280. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js +49 -0
  281. package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js.map +1 -0
  282. package/dist/types/src/panels/JoinPanel/steps/ResetIdentity.d.ts +12 -0
  283. package/dist/types/src/panels/JoinPanel/steps/ResetIdentity.d.ts.map +1 -0
  284. package/dist/types/src/panels/JoinPanel/steps/ResetIdentity.js +63 -0
  285. package/dist/types/src/panels/JoinPanel/steps/ResetIdentity.js.map +1 -0
  286. package/dist/types/src/panels/JoinPanel/steps/index.d.ts +9 -0
  287. package/dist/types/src/panels/JoinPanel/steps/index.d.ts.map +1 -0
  288. package/dist/types/src/panels/JoinPanel/steps/index.js +28 -0
  289. package/dist/types/src/panels/JoinPanel/steps/index.js.map +1 -0
  290. package/dist/types/src/panels/Panels.stories.d.ts +22 -0
  291. package/dist/types/src/panels/Panels.stories.d.ts.map +1 -0
  292. package/dist/types/src/panels/Panels.stories.js +71 -0
  293. package/dist/types/src/panels/Panels.stories.js.map +1 -0
  294. package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts +4 -0
  295. package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts.map +1 -0
  296. package/dist/types/src/panels/SpacePanel/SpacePanel.js +93 -0
  297. package/dist/types/src/panels/SpacePanel/SpacePanel.js.map +1 -0
  298. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts +30 -0
  299. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts.map +1 -0
  300. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js +183 -0
  301. package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js.map +1 -0
  302. package/dist/types/src/panels/SpacePanel/SpacePanelProps.d.ts +30 -0
  303. package/dist/types/src/panels/SpacePanel/SpacePanelProps.d.ts.map +1 -0
  304. package/dist/types/src/panels/SpacePanel/SpacePanelProps.js +6 -0
  305. package/dist/types/src/panels/SpacePanel/SpacePanelProps.js.map +1 -0
  306. package/dist/types/src/panels/SpacePanel/index.d.ts +3 -0
  307. package/dist/types/src/panels/SpacePanel/index.d.ts.map +1 -0
  308. package/dist/types/src/panels/SpacePanel/index.js +22 -0
  309. package/dist/types/src/panels/SpacePanel/index.js.map +1 -0
  310. package/dist/types/src/panels/SpacePanel/spaceMachine.d.ts +35 -0
  311. package/dist/types/src/panels/SpacePanel/spaceMachine.d.ts.map +1 -0
  312. package/dist/types/src/panels/SpacePanel/spaceMachine.js +46 -0
  313. package/dist/types/src/panels/SpacePanel/spaceMachine.js.map +1 -0
  314. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts +15 -0
  315. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts.map +1 -0
  316. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js +120 -0
  317. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js.map +1 -0
  318. package/dist/types/src/panels/SpacePanel/steps/index.d.ts +2 -0
  319. package/dist/types/src/panels/SpacePanel/steps/index.d.ts.map +1 -0
  320. package/dist/types/src/panels/SpacePanel/steps/index.js +21 -0
  321. package/dist/types/src/panels/SpacePanel/steps/index.js.map +1 -0
  322. package/dist/types/src/panels/index.d.ts +4 -0
  323. package/dist/types/src/panels/index.d.ts.map +1 -0
  324. package/dist/types/src/panels/index.js +23 -0
  325. package/dist/types/src/panels/index.js.map +1 -0
  326. package/dist/types/src/playwright/invitations-manager.d.ts +26 -0
  327. package/dist/types/src/playwright/invitations-manager.d.ts.map +1 -0
  328. package/dist/types/src/playwright/invitations-manager.js +142 -0
  329. package/dist/types/src/playwright/invitations-manager.js.map +1 -0
  330. package/dist/types/src/playwright/invitations.spec.d.ts +2 -0
  331. package/dist/types/src/playwright/invitations.spec.d.ts.map +1 -0
  332. package/dist/types/src/playwright/invitations.spec.js +298 -0
  333. package/dist/types/src/playwright/invitations.spec.js.map +1 -0
  334. package/dist/types/src/playwright/playwright.config.d.ts +3 -0
  335. package/dist/types/src/playwright/playwright.config.d.ts.map +1 -0
  336. package/dist/types/src/playwright/playwright.config.js +8 -0
  337. package/dist/types/src/playwright/playwright.config.js.map +1 -0
  338. package/dist/types/src/react.d.ts +6 -0
  339. package/dist/types/src/react.d.ts.map +1 -0
  340. package/dist/types/src/react.js +25 -0
  341. package/dist/types/src/react.js.map +1 -0
  342. package/dist/types/src/steps/InvitationManager.d.ts +7 -0
  343. package/dist/types/src/steps/InvitationManager.d.ts.map +1 -0
  344. package/dist/types/src/steps/InvitationManager.js +80 -0
  345. package/dist/types/src/steps/InvitationManager.js.map +1 -0
  346. package/dist/types/src/steps/StepProps.d.ts +14 -0
  347. package/dist/types/src/steps/StepProps.d.ts.map +1 -0
  348. package/dist/types/src/steps/StepProps.js +6 -0
  349. package/dist/types/src/steps/StepProps.js.map +1 -0
  350. package/dist/types/src/steps/index.d.ts +3 -0
  351. package/dist/types/src/steps/index.d.ts.map +1 -0
  352. package/dist/types/src/steps/index.js +22 -0
  353. package/dist/types/src/steps/index.js.map +1 -0
  354. package/dist/types/src/stories/Invitations.e2e-stories.d.ts +22 -0
  355. package/dist/types/src/stories/Invitations.e2e-stories.d.ts.map +1 -0
  356. package/dist/types/src/stories/Invitations.e2e-stories.js +146 -0
  357. package/dist/types/src/stories/Invitations.e2e-stories.js.map +1 -0
  358. package/dist/types/src/styles/index.d.ts +3 -0
  359. package/dist/types/src/styles/index.d.ts.map +1 -0
  360. package/dist/types/src/styles/index.js +22 -0
  361. package/dist/types/src/styles/index.js.map +1 -0
  362. package/dist/types/src/styles/invitationStatusStyles.d.ts +20 -0
  363. package/dist/types/src/styles/invitationStatusStyles.d.ts.map +1 -0
  364. package/dist/types/src/styles/invitationStatusStyles.js +41 -0
  365. package/dist/types/src/styles/invitationStatusStyles.js.map +1 -0
  366. package/dist/types/src/styles/panelStyles.d.ts +2 -0
  367. package/dist/types/src/styles/panelStyles.d.ts.map +1 -0
  368. package/dist/types/src/styles/panelStyles.js +8 -0
  369. package/dist/types/src/styles/panelStyles.js.map +1 -0
  370. package/dist/types/src/testing/fixtures/identities.d.ts +3 -0
  371. package/dist/types/src/testing/fixtures/identities.d.ts.map +1 -0
  372. package/dist/types/src/testing/fixtures/identities.js +18 -0
  373. package/dist/types/src/testing/fixtures/identities.js.map +1 -0
  374. package/dist/types/src/testing/fixtures/index.d.ts +3 -0
  375. package/dist/types/src/testing/fixtures/index.d.ts.map +1 -0
  376. package/dist/types/src/testing/fixtures/index.js +22 -0
  377. package/dist/types/src/testing/fixtures/index.js.map +1 -0
  378. package/dist/types/src/testing/fixtures/invitations.d.ts +3 -0
  379. package/dist/types/src/testing/fixtures/invitations.d.ts.map +1 -0
  380. package/dist/types/src/testing/fixtures/invitations.js +25 -0
  381. package/dist/types/src/testing/fixtures/invitations.js.map +1 -0
  382. package/dist/types/src/testing/index.d.ts +4 -0
  383. package/dist/types/src/testing/index.d.ts.map +1 -0
  384. package/dist/types/src/testing/index.js +23 -0
  385. package/dist/types/src/testing/index.js.map +1 -0
  386. package/dist/types/src/testing/scoped-shell-manager.d.ts +17 -0
  387. package/dist/types/src/testing/scoped-shell-manager.d.ts.map +1 -0
  388. package/dist/types/src/testing/scoped-shell-manager.js +71 -0
  389. package/dist/types/src/testing/scoped-shell-manager.js.map +1 -0
  390. package/dist/types/src/testing/shell-manager.d.ts +24 -0
  391. package/dist/types/src/testing/shell-manager.d.ts.map +1 -0
  392. package/dist/types/src/testing/shell-manager.js +85 -0
  393. package/dist/types/src/testing/shell-manager.js.map +1 -0
  394. package/dist/types/src/translations/index.d.ts +5 -0
  395. package/dist/types/src/translations/index.d.ts.map +1 -0
  396. package/dist/types/src/translations/index.js +32 -0
  397. package/dist/types/src/translations/index.js.map +1 -0
  398. package/dist/types/src/translations/locales/en-US.d.ts +97 -0
  399. package/dist/types/src/translations/locales/en-US.d.ts.map +1 -0
  400. package/dist/types/src/translations/locales/en-US.js +103 -0
  401. package/dist/types/src/translations/locales/en-US.js.map +1 -0
  402. package/dist/types/src/types/FailReason.d.ts +2 -0
  403. package/dist/types/src/types/FailReason.d.ts.map +1 -0
  404. package/dist/types/src/types/FailReason.js +6 -0
  405. package/dist/types/src/types/FailReason.js.map +1 -0
  406. package/dist/types/src/types/IInvitation.d.ts +7 -0
  407. package/dist/types/src/types/IInvitation.d.ts.map +1 -0
  408. package/dist/types/src/types/IInvitation.js +6 -0
  409. package/dist/types/src/types/IInvitation.js.map +1 -0
  410. package/dist/types/src/types/index.d.ts +3 -0
  411. package/dist/types/src/types/index.d.ts.map +1 -0
  412. package/dist/types/src/types/index.js +22 -0
  413. package/dist/types/src/types/index.js.map +1 -0
  414. package/dist/types/src/util/index.d.ts +3 -0
  415. package/dist/types/src/util/index.d.ts.map +1 -0
  416. package/dist/types/src/util/index.js +22 -0
  417. package/dist/types/src/util/index.js.map +1 -0
  418. package/dist/types/src/util/invitationStatusValue.d.ts +8 -0
  419. package/dist/types/src/util/invitationStatusValue.d.ts.map +1 -0
  420. package/dist/types/src/util/invitationStatusValue.js +24 -0
  421. package/dist/types/src/util/invitationStatusValue.js.map +1 -0
  422. package/dist/types/src/util/toEmoji.d.ts +2 -0
  423. package/dist/types/src/util/toEmoji.d.ts.map +1 -0
  424. package/dist/types/src/util/toEmoji.js +26 -0
  425. package/dist/types/src/util/toEmoji.js.map +1 -0
  426. package/package.json +79 -0
  427. package/src/components/AuthCode.tsx +36 -0
  428. package/src/components/Clipboard/ClipboardProvider.tsx +26 -0
  429. package/src/components/Clipboard/CopyButton.tsx +70 -0
  430. package/src/components/Clipboard/index.ts +6 -0
  431. package/src/components/CompoundButton/CompoundButton.stories.tsx +49 -0
  432. package/src/components/CompoundButton/CompoundButton.tsx +89 -0
  433. package/src/components/CompoundButton/index.ts +5 -0
  434. package/src/components/IdentityList/DeviceList.tsx +45 -0
  435. package/src/components/IdentityList/IdentityListItem.tsx +42 -0
  436. package/src/components/IdentityList/SpaceMemberList.stories.tsx +24 -0
  437. package/src/components/IdentityList/SpaceMemberList.tsx +65 -0
  438. package/src/components/IdentityList/index.ts +7 -0
  439. package/src/components/InvitationList/InvitationList.stories.tsx +44 -0
  440. package/src/components/InvitationList/InvitationList.tsx +31 -0
  441. package/src/components/InvitationList/InvitationListContainer.tsx +27 -0
  442. package/src/components/InvitationList/InvitationListItem.tsx +183 -0
  443. package/src/components/InvitationList/InvitationListProps.ts +9 -0
  444. package/src/components/InvitationList/index.ts +7 -0
  445. package/src/components/Panel/Action.tsx +142 -0
  446. package/src/components/Panel/Actions.tsx +31 -0
  447. package/src/components/Panel/CloseButton.tsx +24 -0
  448. package/src/components/Panel/Emoji.tsx +36 -0
  449. package/src/components/Panel/Heading.tsx +32 -0
  450. package/src/components/Panel/Input.tsx +27 -0
  451. package/src/components/Panel/Label.tsx +14 -0
  452. package/src/components/Panel/Panel.stories.tsx +52 -0
  453. package/src/components/Panel/StepHeading.tsx +17 -0
  454. package/src/components/Panel/index.ts +12 -0
  455. package/src/components/SpaceListItem.tsx +35 -0
  456. package/src/components/StorybookDialog.tsx +33 -0
  457. package/src/components/Viewport/Viewport.stories.tsx +66 -0
  458. package/src/components/Viewport/Viewport.tsx +120 -0
  459. package/src/components/Viewport/index.tsx +5 -0
  460. package/src/components/index.ts +12 -0
  461. package/src/composites/IdentityDialog/IdentityDialog.tsx +39 -0
  462. package/src/composites/IdentityDialog/index.ts +5 -0
  463. package/src/composites/JoinDialog/JoinDialog.tsx +40 -0
  464. package/src/composites/JoinDialog/index.ts +5 -0
  465. package/src/composites/Shell/Shell.tsx +98 -0
  466. package/src/composites/Shell/ShellContext.tsx +163 -0
  467. package/src/composites/Shell/index.ts +7 -0
  468. package/src/composites/Shell/memory-shell-runtime.ts +50 -0
  469. package/src/composites/Shell/run-shell.tsx +38 -0
  470. package/src/composites/SpaceDialog/SpaceDialog.tsx +37 -0
  471. package/src/composites/SpaceDialog/index.ts +5 -0
  472. package/src/composites/index.ts +8 -0
  473. package/src/index.ts +7 -0
  474. package/src/panels/IdentityPanel/IdentityPanel.stories.tsx +113 -0
  475. package/src/panels/IdentityPanel/IdentityPanel.tsx +158 -0
  476. package/src/panels/IdentityPanel/IdentityPanelProps.ts +36 -0
  477. package/src/panels/IdentityPanel/identityMachine.ts +131 -0
  478. package/src/panels/IdentityPanel/index.ts +6 -0
  479. package/src/panels/IdentityPanel/steps/IdentityActionChooser.tsx +96 -0
  480. package/src/panels/IdentityPanel/steps/ProfileForm.tsx +79 -0
  481. package/src/panels/IdentityPanel/steps/index.ts +6 -0
  482. package/src/panels/JoinPanel/JoinHeading.tsx +49 -0
  483. package/src/panels/JoinPanel/JoinPanel.stories.tsx +91 -0
  484. package/src/panels/JoinPanel/JoinPanel.tsx +415 -0
  485. package/src/panels/JoinPanel/JoinPanelProps.ts +132 -0
  486. package/src/panels/JoinPanel/index.ts +6 -0
  487. package/src/panels/JoinPanel/joinMachine.ts +536 -0
  488. package/src/panels/JoinPanel/steps/AdditionMethodChooser.tsx +65 -0
  489. package/src/panels/JoinPanel/steps/IdentityAdded.tsx +75 -0
  490. package/src/panels/JoinPanel/steps/IdentityInput.tsx +86 -0
  491. package/src/panels/JoinPanel/steps/InvitationAccepted.tsx +43 -0
  492. package/src/panels/JoinPanel/steps/InvitationAuthenticator.tsx +99 -0
  493. package/src/panels/JoinPanel/steps/InvitationInput.tsx +102 -0
  494. package/src/panels/JoinPanel/steps/InvitationRescuer.tsx +102 -0
  495. package/src/panels/JoinPanel/steps/ResetIdentity.tsx +71 -0
  496. package/src/panels/JoinPanel/steps/index.ts +12 -0
  497. package/src/panels/Panels.stories.tsx +61 -0
  498. package/src/panels/SpacePanel/SpacePanel.stories.tsx +328 -0
  499. package/src/panels/SpacePanel/SpacePanel.tsx +122 -0
  500. package/src/panels/SpacePanel/SpacePanelProps.ts +40 -0
  501. package/src/panels/SpacePanel/index.ts +6 -0
  502. package/src/panels/SpacePanel/spaceMachine.ts +72 -0
  503. package/src/panels/SpacePanel/steps/SpaceManager.tsx +157 -0
  504. package/src/panels/SpacePanel/steps/index.ts +5 -0
  505. package/src/panels/index.ts +7 -0
  506. package/src/playwright/invitations-manager.ts +168 -0
  507. package/src/playwright/invitations.spec.ts +364 -0
  508. package/src/playwright/playwright.config.ts +7 -0
  509. package/src/react.ts +9 -0
  510. package/src/steps/InvitationManager.tsx +116 -0
  511. package/src/steps/StepProps.ts +17 -0
  512. package/src/steps/index.ts +6 -0
  513. package/src/stories/Invitations.e2e-stories.tsx +231 -0
  514. package/src/styles/index.ts +6 -0
  515. package/src/styles/invitationStatusStyles.ts +42 -0
  516. package/src/styles/panelStyles.ts +5 -0
  517. package/src/testing/fixtures/identities.ts +16 -0
  518. package/src/testing/fixtures/index.ts +6 -0
  519. package/src/testing/fixtures/invitations.ts +23 -0
  520. package/src/testing/index.ts +7 -0
  521. package/src/testing/scoped-shell-manager.ts +79 -0
  522. package/src/testing/shell-manager.ts +102 -0
  523. package/src/translations/index.ts +7 -0
  524. package/src/translations/locales/en-US.ts +101 -0
  525. package/src/types/FailReason.ts +5 -0
  526. package/src/types/IInvitation.ts +14 -0
  527. package/src/types/index.ts +6 -0
  528. package/src/util/index.ts +6 -0
  529. package/src/util/invitationStatusValue.ts +22 -0
  530. package/src/util/toEmoji.ts +22 -0
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2023 DXOS.org
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Default = void 0;
30
+ require("@dxosTheme");
31
+ const faker_1 = require("@faker-js/faker");
32
+ const react_1 = require("@phosphor-icons/react");
33
+ const react_2 = __importStar(require("react"));
34
+ const react_client_1 = require("@dxos/react-client");
35
+ const echo_1 = require("@dxos/react-client/echo");
36
+ const halo_1 = require("@dxos/react-client/halo");
37
+ const invitations_1 = require("@dxos/react-client/invitations");
38
+ const mesh_1 = require("@dxos/react-client/mesh");
39
+ const testing_1 = require("@dxos/react-client/testing");
40
+ const react_ui_1 = require("@dxos/react-ui");
41
+ const react_ui_theme_1 = require("@dxos/react-ui-theme");
42
+ const storybook_utils_1 = require("@dxos/storybook-utils");
43
+ const components_1 = require("../components");
44
+ const panels_1 = require("../panels");
45
+ const translations_1 = require("../translations");
46
+ exports.default = {
47
+ title: 'Invitations',
48
+ };
49
+ const createInvitationUrl = (invitation) => invitation;
50
+ const Panel = ({ id, panel, setPanel }) => {
51
+ const client = (0, react_client_1.useClient)();
52
+ const spaces = (0, echo_1.useSpaces)();
53
+ (0, react_2.useMemo)(() => {
54
+ if (panel instanceof echo_1.SpaceProxy) {
55
+ window[`peer${id}CreateSpaceInvitation`] = (options) => {
56
+ const invitation = panel.share(options);
57
+ invitation.subscribe((invitation) => {
58
+ const invitationCode = invitations_1.InvitationEncoder.encode(invitation);
59
+ if (invitation.state === invitations_1.Invitation.State.CONNECTING) {
60
+ console.log(JSON.stringify({ invitationCode, authCode: invitation.authCode }));
61
+ }
62
+ });
63
+ };
64
+ }
65
+ }, [panel]);
66
+ if (panel instanceof echo_1.SpaceProxy) {
67
+ return react_2.default.createElement(panels_1.SpacePanel, { space: panel, createInvitationUrl: createInvitationUrl });
68
+ }
69
+ switch (panel) {
70
+ case 'identity': {
71
+ return react_2.default.createElement(panels_1.JoinPanel, { mode: 'halo-only', onDone: () => setPanel(undefined), onExit: () => setPanel(undefined) });
72
+ }
73
+ case 'devices': {
74
+ return react_2.default.createElement(panels_1.IdentityPanel, { createInvitationUrl: createInvitationUrl, onDone: () => setPanel(undefined) });
75
+ }
76
+ case 'join': {
77
+ return react_2.default.createElement(panels_1.JoinPanel, { onDone: () => setPanel(undefined), onExit: () => setPanel(undefined) });
78
+ }
79
+ default: {
80
+ // TODO(wittjosiah): Tooltips make playwright (webkit) flakier.
81
+ const controls = (react_2.default.createElement(react_ui_1.ButtonGroup, { classNames: 'mbe-4' },
82
+ react_2.default.createElement(react_ui_1.Button, { onClick: () => client.spaces.create({ name: faker_1.faker.animal.bird() }), "data-testid": 'invitations.create-space' },
83
+ react_2.default.createElement(react_1.PlusCircle, { className: (0, react_ui_theme_1.getSize)(6) })),
84
+ react_2.default.createElement(react_ui_1.Button, { onClick: () => setPanel('join'), "data-testid": 'invitations.open-join-space' },
85
+ react_2.default.createElement(react_1.SignIn, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) }))));
86
+ const header = (react_2.default.createElement("div", { className: 'flex' },
87
+ "Spaces",
88
+ react_2.default.createElement("span", { className: 'grow' }),
89
+ controls));
90
+ return (react_2.default.createElement("div", null,
91
+ react_2.default.createElement("h1", null, header),
92
+ 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"))));
93
+ }
94
+ }
95
+ };
96
+ const Invitations = (args) => {
97
+ const { id } = args;
98
+ const client = (0, react_client_1.useClient)();
99
+ const networkStatus = (0, mesh_1.useNetworkStatus)().swarm;
100
+ const identity = (0, halo_1.useIdentity)();
101
+ const [panel, setPanel] = (0, react_2.useState)();
102
+ (0, react_2.useMemo)(() => {
103
+ window[`peer${id}CreateHaloInvitation`] = (options) => {
104
+ const invitation = client.halo.share(options);
105
+ invitation.subscribe((invitation) => {
106
+ const invitationCode = invitations_1.InvitationEncoder.encode(invitation);
107
+ if (invitation.state === invitations_1.Invitation.State.CONNECTING) {
108
+ console.log(JSON.stringify({ invitationCode, authCode: invitation.authCode }));
109
+ }
110
+ });
111
+ };
112
+ }, [client]);
113
+ // TODO(wittjosiah): Tooltips make playwright (webkit) flakier.
114
+ const controls = (react_2.default.createElement(react_ui_1.ButtonGroup, { classNames: 'mbe-4' },
115
+ react_2.default.createElement(react_ui_1.Button, { onClick: () => client.halo.createIdentity({ displayName: faker_1.faker.person.firstName() }), disabled: Boolean(identity), "data-testid": 'invitations.create-identity' },
116
+ react_2.default.createElement(react_1.Plus, { className: (0, react_ui_theme_1.getSize)(6) })),
117
+ react_2.default.createElement(react_ui_1.Button, { onClick: () => setPanel('identity'), disabled: panel === 'identity', "data-testid": 'invitations.open-join-identity' },
118
+ react_2.default.createElement(react_1.QrCode, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) })),
119
+ react_2.default.createElement(react_ui_1.Button, { onClick: () => setPanel('devices'), disabled: !identity || panel === 'devices', "data-testid": 'invitations.open-devices' },
120
+ react_2.default.createElement(react_1.Laptop, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) })),
121
+ react_2.default.createElement(react_ui_1.Button, { onClick: () => setPanel(undefined), disabled: !panel, "data-testid": 'invitations.list-spaces' },
122
+ react_2.default.createElement(react_1.Planet, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) })),
123
+ 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) })))));
124
+ const header = (react_2.default.createElement("div", { className: 'flex', "data-testid": 'invitations.identity-header' },
125
+ "Identity",
126
+ react_2.default.createElement("span", { className: 'grow' }),
127
+ controls));
128
+ return (react_2.default.createElement("div", { className: 'flex flex-col m-4 flex-1 min-w-0', "data-testid": `peer-${id}` },
129
+ react_2.default.createElement("div", { className: `${react_ui_theme_1.groupSurface} rounded p-2 mbe-2` },
130
+ react_2.default.createElement("h1", null, header),
131
+ identity ? (react_2.default.createElement(react_ui_1.List, null,
132
+ react_2.default.createElement(components_1.IdentityListItem, { identity: identity, presence: networkStatus }))) : (react_2.default.createElement("div", { className: 'text-center' }, "No identity"))),
133
+ identity || panel ? (react_2.default.createElement("div", { className: `${react_ui_theme_1.groupSurface} rounded p-2` },
134
+ react_2.default.createElement(Panel, { id: id, panel: panel, setPanel: setPanel }))) : null));
135
+ };
136
+ exports.Default = {
137
+ render: (args) => (react_2.default.createElement(components_1.ClipboardProvider, null,
138
+ react_2.default.createElement(react_ui_1.Tooltip.Provider, null,
139
+ react_2.default.createElement(testing_1.ClientRepeater, { Component: Invitations, count: 3 })))),
140
+ decorators: [storybook_utils_1.withTheme],
141
+ parameters: {
142
+ chromatic: { disableSnapshot: true },
143
+ translations: [translations_1.osTranslations],
144
+ },
145
+ };
146
+ //# sourceMappingURL=Invitations.e2e-stories.js.map
@@ -0,0 +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,sBAAoB;AAEpB,2CAAwC;AACxC,iDAA8G;AAC9G,+CAAiD;AAEjD,qDAA+C;AAC/C,kDAA8F;AAC9F,kDAAsD;AACtD,gEAA+E;AAC/E,kDAA4E;AAC5E,wDAA4D;AAC5D,6CAAoE;AACpE,yDAA6D;AAC7D,2DAAkD;AAElD,8CAAmF;AACnF,sCAAiE;AACjE,kDAAiD;AAEjD,kBAAe;IACb,KAAK,EAAE,aAAa;CACrB,CAAC;AAIF,MAAM,mBAAmB,GAAG,CAAC,UAAkB,EAAE,EAAE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B,MAAM,EAAE,CAAC,IAAoB,EAAE,EAAE,CAAC,CAChC,8BAAC,8BAAiB;QAChB,8BAAC,kBAAO,CAAC,QAAQ;YACf,8BAAC,wBAAc,IAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,GAAI,CACnC,CACD,CACrB;IACD,UAAU,EAAE,CAAC,2BAAS,CAAC;IACvB,UAAU,EAAE;QACV,SAAS,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE;QACpC,YAAY,EAAE,CAAC,6BAAc,CAAC;KAC/B;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './panelStyles';
2
+ export * from './invitationStatusStyles';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/styles/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2023 DXOS.org
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 __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);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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"}
@@ -0,0 +1,20 @@
1
+ import { Invitation } from '@dxos/react-client/invitations';
2
+ export declare const inactiveBgColor = "bg-neutral-100 dark:bg-neutral-600";
3
+ export declare const activeBgColor = "bg-primary-500 dark:bg-primary-400";
4
+ export declare const successBgColor = "bg-success-500 dark:bg-success-400";
5
+ export declare const errorBgColor = "bg-error-500 dark:bg-error-400";
6
+ export declare const cancelledBgColor = "bg-warning-500 dark:bg-warning-400";
7
+ export declare const inactiveTextColor = "text-neutral-100 dark:text-neutral-600";
8
+ export declare const activeTextColor = "text-primary-400 dark:text-primary-500";
9
+ export declare const successTextColor = "text-success-400 dark:text-success-500";
10
+ export declare const errorTextColor = "text-error-400 dark:text-error-500";
11
+ export declare const cancelledTextColor = "text-warning-400 dark:text-warning-500";
12
+ export declare const inactiveStrokeColor = "stroke-neutral-100 dark:stroke-neutral-700";
13
+ export declare const activeStrokeColor = "stroke-primary-400 dark:stroke-primary-150";
14
+ export declare const successStrokeColor = "stroke-success-300 dark:stroke-primary-400";
15
+ export declare const errorStrokeColor = "stroke-error-300 dark:stroke-error-500";
16
+ export declare const cancelledStrokeColor = "stroke-warning-300 dark:stroke-warning-500";
17
+ export declare const resolvedStrokeColor: (status: Invitation.State) => "stroke-success-300 dark:stroke-primary-400" | "stroke-error-300 dark:stroke-error-500" | "stroke-warning-300 dark:stroke-warning-500";
18
+ export declare const resolvedBgColor: (status: Invitation.State) => "bg-success-500 dark:bg-success-400" | "bg-error-500 dark:bg-error-400" | "bg-warning-500 dark:bg-warning-400";
19
+ export declare const resolvedTextColor: (status: Invitation.State) => "text-success-400 dark:text-success-500" | "text-error-400 dark:text-error-500" | "text-warning-400 dark:text-warning-500";
20
+ //# sourceMappingURL=invitationStatusStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invitationStatusStyles.d.ts","sourceRoot":"","sources":["../../../../src/styles/invitationStatusStyles.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,eAAO,MAAM,eAAe,uCAAuC,CAAC;AACpE,eAAO,MAAM,aAAa,uCAAuC,CAAC;AAClE,eAAO,MAAM,cAAc,uCAAuC,CAAC;AACnE,eAAO,MAAM,YAAY,mCAAmC,CAAC;AAC7D,eAAO,MAAM,gBAAgB,uCAAuC,CAAC;AAErE,eAAO,MAAM,iBAAiB,2CAA2C,CAAC;AAC1E,eAAO,MAAM,eAAe,2CAA2C,CAAC;AACxE,eAAO,MAAM,gBAAgB,2CAA2C,CAAC;AACzE,eAAO,MAAM,cAAc,uCAAuC,CAAC;AACnE,eAAO,MAAM,kBAAkB,2CAA2C,CAAC;AAE3E,eAAO,MAAM,mBAAmB,+CAA+C,CAAC;AAChF,eAAO,MAAM,iBAAiB,+CAA+C,CAAC;AAC9E,eAAO,MAAM,kBAAkB,+CAA+C,CAAC;AAC/E,eAAO,MAAM,gBAAgB,2CAA2C,CAAC;AACzE,eAAO,MAAM,oBAAoB,+CAA+C,CAAC;AAEjF,eAAO,MAAM,mBAAmB,WAAY,WAAW,KAAK,2IAKpC,CAAC;AACzB,eAAO,MAAM,eAAe,WAAY,WAAW,KAAK,mHAKpC,CAAC;AACrB,eAAO,MAAM,iBAAiB,WAAY,WAAW,KAAK,+HAKpC,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2023 DXOS.org
4
+ //
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;
41
+ //# sourceMappingURL=invitationStatusStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invitationStatusStyles.js","sourceRoot":"","sources":["../../../../src/styles/invitationStatusStyles.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,gEAA4D;AAE/C,QAAA,eAAe,GAAG,oCAAoC,CAAC;AACvD,QAAA,aAAa,GAAG,oCAAoC,CAAC;AACrD,QAAA,cAAc,GAAG,oCAAoC,CAAC;AACtD,QAAA,YAAY,GAAG,gCAAgC,CAAC;AAChD,QAAA,gBAAgB,GAAG,oCAAoC,CAAC;AAExD,QAAA,iBAAiB,GAAG,wCAAwC,CAAC;AAC7D,QAAA,eAAe,GAAG,wCAAwC,CAAC;AAC3D,QAAA,gBAAgB,GAAG,wCAAwC,CAAC;AAC5D,QAAA,cAAc,GAAG,oCAAoC,CAAC;AACtD,QAAA,kBAAkB,GAAG,wCAAwC,CAAC;AAE9D,QAAA,mBAAmB,GAAG,4CAA4C,CAAC;AACnE,QAAA,iBAAiB,GAAG,4CAA4C,CAAC;AACjE,QAAA,kBAAkB,GAAG,4CAA4C,CAAC;AAClE,QAAA,gBAAgB,GAAG,wCAAwC,CAAC;AAC5D,QAAA,oBAAoB,GAAG,4CAA4C,CAAC;AAE1E,MAAM,mBAAmB,GAAG,CAAC,MAAwB,EAAE,EAAE,CAC9D,MAAM,KAAK,wBAAU,CAAC,KAAK,CAAC,KAAK;IAC/B,CAAC,CAAC,wBAAgB;IAClB,CAAC,CAAC,MAAM,KAAK,wBAAU,CAAC,KAAK,CAAC,SAAS,IAAI,MAAM,KAAK,wBAAU,CAAC,KAAK,CAAC,OAAO;QAC9E,CAAC,CAAC,4BAAoB;QACtB,CAAC,CAAC,0BAAkB,CAAC;AALZ,QAAA,mBAAmB,uBAKP;AAClB,MAAM,eAAe,GAAG,CAAC,MAAwB,EAAE,EAAE,CAC1D,MAAM,KAAK,wBAAU,CAAC,KAAK,CAAC,KAAK;IAC/B,CAAC,CAAC,oBAAY;IACd,CAAC,CAAC,MAAM,KAAK,wBAAU,CAAC,KAAK,CAAC,SAAS,IAAI,MAAM,KAAK,wBAAU,CAAC,KAAK,CAAC,OAAO;QAC9E,CAAC,CAAC,wBAAgB;QAClB,CAAC,CAAC,sBAAc,CAAC;AALR,QAAA,eAAe,mBAKP;AACd,MAAM,iBAAiB,GAAG,CAAC,MAAwB,EAAE,EAAE,CAC5D,MAAM,KAAK,wBAAU,CAAC,KAAK,CAAC,KAAK;IAC/B,CAAC,CAAC,sBAAc;IAChB,CAAC,CAAC,MAAM,KAAK,wBAAU,CAAC,KAAK,CAAC,SAAS,IAAI,MAAM,KAAK,wBAAU,CAAC,KAAK,CAAC,OAAO;QAC9E,CAAC,CAAC,0BAAkB;QACpB,CAAC,CAAC,wBAAgB,CAAC;AALV,QAAA,iBAAiB,qBAKP"}
@@ -0,0 +1,2 @@
1
+ export declare const stepStyles = "pbs-1 pbe-3 pli-3";
2
+ //# sourceMappingURL=panelStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"panelStyles.d.ts","sourceRoot":"","sources":["../../../../src/styles/panelStyles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,sBAAsB,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2023 DXOS.org
4
+ //
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.stepStyles = void 0;
7
+ exports.stepStyles = 'pbs-1 pbe-3 pli-3';
8
+ //# sourceMappingURL=panelStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"panelStyles.js","sourceRoot":"","sources":["../../../../src/styles/panelStyles.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEW,QAAA,UAAU,GAAG,mBAAmB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { SpaceMember } from '@dxos/react-client/echo';
2
+ export declare const alice: SpaceMember;
3
+ //# sourceMappingURL=identities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identities.d.ts","sourceRoot":"","sources":["../../../../../src/testing/fixtures/identities.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,eAAO,MAAM,KAAK,EAAE,WAQnB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2023 DXOS.org
4
+ //
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.alice = void 0;
7
+ const react_client_1 = require("@dxos/react-client");
8
+ const echo_1 = require("@dxos/react-client/echo");
9
+ exports.alice = {
10
+ identity: {
11
+ identityKey: react_client_1.PublicKey.random(),
12
+ profile: {
13
+ displayName: 'Alice',
14
+ },
15
+ },
16
+ presence: echo_1.SpaceMember.PresenceState.ONLINE,
17
+ };
18
+ //# sourceMappingURL=identities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identities.js","sourceRoot":"","sources":["../../../../../src/testing/fixtures/identities.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,qDAA+C;AAC/C,kDAAsD;AAEzC,QAAA,KAAK,GAAgB;IAChC,QAAQ,EAAE;QACR,WAAW,EAAE,wBAAS,CAAC,MAAM,EAAE;QAC/B,OAAO,EAAE;YACP,WAAW,EAAE,OAAO;SACrB;KACF;IACD,QAAQ,EAAE,kBAAW,CAAC,aAAa,CAAC,MAAM;CAC3C,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './identities';
2
+ export * from './invitations';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/testing/fixtures/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2023 DXOS.org
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 __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("./identities"), exports);
21
+ __exportStar(require("./invitations"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/testing/fixtures/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;AAEF,+CAA6B;AAC7B,gDAA8B"}
@@ -0,0 +1,3 @@
1
+ import { Invitation, CancellableInvitationObservable } from '@dxos/react-client/invitations';
2
+ export declare const inviteWithState: (state: Invitation.State) => CancellableInvitationObservable;
3
+ //# sourceMappingURL=invitations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invitations.d.ts","sourceRoot":"","sources":["../../../../../src/testing/fixtures/invitations.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAE7F,eAAO,MAAM,eAAe,UAAW,WAAW,KAAK,oCAenD,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2023 DXOS.org
4
+ //
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.inviteWithState = void 0;
7
+ const react_client_1 = require("@dxos/react-client");
8
+ const invitations_1 = require("@dxos/react-client/invitations");
9
+ const inviteWithState = (state) => new invitations_1.CancellableInvitationObservable({
10
+ initialInvitation: {
11
+ state,
12
+ invitationId: Math.random().toString(16).slice(2),
13
+ kind: invitations_1.Invitation.Kind.SPACE,
14
+ authMethod: invitations_1.Invitation.AuthMethod.NONE,
15
+ swarmKey: react_client_1.PublicKey.random(),
16
+ type: invitations_1.Invitation.Type.INTERACTIVE,
17
+ authCode: [invitations_1.Invitation.State.READY_FOR_AUTHENTICATION, invitations_1.Invitation.State.AUTHENTICATING].includes(state)
18
+ ? '123456'
19
+ : '',
20
+ },
21
+ subscriber: () => { },
22
+ onCancel: async () => { },
23
+ });
24
+ exports.inviteWithState = inviteWithState;
25
+ //# sourceMappingURL=invitations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invitations.js","sourceRoot":"","sources":["../../../../../src/testing/fixtures/invitations.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,qDAA+C;AAC/C,gEAA6F;AAEtF,MAAM,eAAe,GAAG,CAAC,KAAuB,EAAE,EAAE,CACzD,IAAI,6CAA+B,CAAC;IAClC,iBAAiB,EAAE;QACjB,KAAK;QACL,YAAY,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACjD,IAAI,EAAE,wBAAU,CAAC,IAAI,CAAC,KAAK;QAC3B,UAAU,EAAE,wBAAU,CAAC,UAAU,CAAC,IAAI;QACtC,QAAQ,EAAE,wBAAS,CAAC,MAAM,EAAE;QAC5B,IAAI,EAAE,wBAAU,CAAC,IAAI,CAAC,WAAW;QACjC,QAAQ,EAAE,CAAC,wBAAU,CAAC,KAAK,CAAC,wBAAwB,EAAE,wBAAU,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;YACpG,CAAC,CAAC,QAAQ;YACV,CAAC,CAAC,EAAE;KACP;IACD,UAAU,EAAE,GAAG,EAAE,GAAE,CAAC;IACpB,QAAQ,EAAE,KAAK,IAAI,EAAE,GAAE,CAAC;CACzB,CAAC,CAAC;AAfQ,QAAA,eAAe,mBAevB"}
@@ -0,0 +1,4 @@
1
+ export * from './fixtures';
2
+ export * from './scoped-shell-manager';
3
+ export * from './shell-manager';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2023 DXOS.org
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 __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("./fixtures"), exports);
21
+ __exportStar(require("./scoped-shell-manager"), exports);
22
+ __exportStar(require("./shell-manager"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;AAEF,6CAA2B;AAC3B,yDAAuC;AACvC,kDAAgC"}
@@ -0,0 +1,17 @@
1
+ import type { Locator, Page, FrameLocator } from '@playwright/test';
2
+ type Scope = Locator | FrameLocator | Page;
3
+ export declare class ScopedShellManager {
4
+ page: Page;
5
+ authenticatorIsVisible(type: 'device' | 'space', scope?: Scope): Promise<boolean>;
6
+ invitationFailed(scope?: Scope, timeout?: number): Promise<boolean>;
7
+ inputInvitation(type: 'device' | 'space', invitation: string, scope?: Scope): Promise<void>;
8
+ invitationInputContinue(type: 'device' | 'space', scope?: Scope): Promise<void>;
9
+ cancelInvitation(type: 'device' | 'space', kind: 'host' | 'guest', scope?: Scope): Promise<void>;
10
+ readyToAuthenticate(type: 'device' | 'space', scope?: Scope, timeout?: number): Promise<boolean>;
11
+ authenticateInvitation(type: 'device' | 'space', authCode: string, scope?: Scope): Promise<void>;
12
+ clearAuthCode(type: 'device' | 'space', scope?: Scope): Promise<void>;
13
+ resetInvitation(scope?: Scope): Promise<void>;
14
+ doneInvitation(type: 'device' | 'space', scope?: Scope): Promise<void>;
15
+ }
16
+ export {};
17
+ //# sourceMappingURL=scoped-shell-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scoped-shell-manager.d.ts","sourceRoot":"","sources":["../../../../src/testing/scoped-shell-manager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEpE,KAAK,KAAK,GAAG,OAAO,GAAG,YAAY,GAAG,IAAI,CAAC;AAE3C,qBAAa,kBAAkB;IAC7B,IAAI,EAAG,IAAI,CAAC;IAEZ,sBAAsB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,EAAE,KAAK,CAAC,EAAE,KAAK;IAIxD,gBAAgB,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,OAAO,SAAO;IAU9C,eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IAK3E,uBAAuB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,EAAE,KAAK,CAAC,EAAE,KAAK;IAI/D,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,EAAE,KAAK,CAAC,EAAE,KAAK;IAUhF,mBAAmB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,OAAO,SAAO;IAY3E,sBAAsB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IAOhF,aAAa,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,EAAE,KAAK,CAAC,EAAE,KAAK;IAMrD,eAAe,CAAC,KAAK,CAAC,EAAE,KAAK;IAI7B,cAAc,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,EAAE,KAAK,CAAC,EAAE,KAAK;CAK7D"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2023 DXOS.org
4
+ //
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ScopedShellManager = void 0;
7
+ class ScopedShellManager {
8
+ authenticatorIsVisible(type, scope) {
9
+ return (scope || this.page).getByTestId(`${type === 'device' ? 'halo' : 'space'}-auth-code-input`).isVisible();
10
+ }
11
+ async invitationFailed(scope, timeout = 3000) {
12
+ const peer = scope || this.page;
13
+ try {
14
+ await peer.locator('[data-testid=invitation-rescuer-reset]:not([disabled])').waitFor({ timeout });
15
+ return true;
16
+ }
17
+ catch (_a) {
18
+ return false;
19
+ }
20
+ }
21
+ async inputInvitation(type, invitation, scope) {
22
+ await (scope || this.page).getByTestId(`${type === 'device' ? 'halo' : 'space'}-invitation-input`).fill(invitation);
23
+ await this.page.keyboard.press('Enter');
24
+ }
25
+ async invitationInputContinue(type, scope) {
26
+ await (scope || this.page).getByTestId(`${type === 'device' ? 'halo' : 'space'}-invitation-input-continue`).click();
27
+ }
28
+ async cancelInvitation(type, kind, scope) {
29
+ if (kind === 'guest') {
30
+ await (scope || this.page)
31
+ .getByTestId(`${type === 'device' ? 'halo' : 'space'}-invitation-authenticator-cancel`)
32
+ .click();
33
+ }
34
+ else {
35
+ await (scope || this.page).getByTestId('cancel-invitation').nth(0).click();
36
+ }
37
+ }
38
+ async readyToAuthenticate(type, scope, timeout = 3000) {
39
+ const peer = scope || this.page;
40
+ try {
41
+ await peer
42
+ .locator(`[data-testid=${type === 'device' ? 'halo' : 'space'}-auth-code-input]:not([disabled])`)
43
+ .waitFor({ timeout });
44
+ return true;
45
+ }
46
+ catch (_a) {
47
+ return false;
48
+ }
49
+ }
50
+ async authenticateInvitation(type, authCode, scope) {
51
+ const peer = scope || this.page;
52
+ // TODO(wittjosiah): Update ids.
53
+ await peer.getByTestId(`${type === 'device' ? 'halo' : 'space'}-auth-code-input`).fill(authCode);
54
+ await peer.getByTestId(`${type === 'device' ? 'halo' : 'space'}-invitation-authenticator-next`).click();
55
+ }
56
+ async clearAuthCode(type, scope) {
57
+ const peer = scope || this.page;
58
+ await peer.getByTestId(`${type === 'device' ? 'halo' : 'space'}-auth-code-input`).fill('');
59
+ await peer.getByTestId(`${type === 'device' ? 'halo' : 'space'}-auth-code-input`).focus();
60
+ }
61
+ async resetInvitation(scope) {
62
+ await (scope || this.page).getByTestId('invitation-rescuer-reset').click();
63
+ }
64
+ async doneInvitation(type, scope) {
65
+ await (scope || this.page)
66
+ .getByTestId(type === 'device' ? 'halo-invitation-accepted-done' : 'space-invitation-accepted-done')
67
+ .click();
68
+ }
69
+ }
70
+ exports.ScopedShellManager = ScopedShellManager;
71
+ //# sourceMappingURL=scoped-shell-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scoped-shell-manager.js","sourceRoot":"","sources":["../../../../src/testing/scoped-shell-manager.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAMF,MAAa,kBAAkB;IAG7B,sBAAsB,CAAC,IAAwB,EAAE,KAAa;QAC5D,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,kBAAkB,CAAC,CAAC,SAAS,EAAE,CAAC;IACjH,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,KAAa,EAAE,OAAO,GAAG,IAAI;QAClD,MAAM,IAAI,GAAG,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC;QAChC,IAAI;YACF,MAAM,IAAI,CAAC,OAAO,CAAC,wDAAwD,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;YAClG,OAAO,IAAI,CAAC;SACb;QAAC,WAAM;YACN,OAAO,KAAK,CAAC;SACd;IACH,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,IAAwB,EAAE,UAAkB,EAAE,KAAa;QAC/E,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,mBAAmB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACpH,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED,KAAK,CAAC,uBAAuB,CAAC,IAAwB,EAAE,KAAa;QACnE,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,GAAG,IAAI,KA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AC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACjG,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,gCAAgC,CAAC,CAAC,KAAK,EAAE,CAAC;IAC1G,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,IAAwB,EAAE,KAAa;QACzD,MAAM,IAAI,GAAG,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC;QAChC,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,kBAAkB,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC3F,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,kBAAkB,CAAC,CAAC,KAAK,EAAE,CAAC;IAC5F,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,KAAa;QACjC,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC,KAAK,EAAE,CAAC;IAC7E,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,IAAwB,EAAE,KAAa;QAC1D,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC;aACvB,WAAW,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,gCAAgC,CAAC;aACnG,KAAK,EAAE,CAAC;IACb,CAAC;CACF;AAtED,gDAsEC"}
@@ -0,0 +1,24 @@
1
+ import type { Page } from '@playwright/test';
2
+ import { ScopedShellManager } from './scoped-shell-manager';
3
+ export declare class ShellManager extends ScopedShellManager {
4
+ readonly page: Page;
5
+ readonly inIFrame: boolean;
6
+ private _invitationCode;
7
+ private _authCode;
8
+ constructor(page: Page, inIFrame?: boolean);
9
+ get shell(): import("@playwright/test").FrameLocator | Page;
10
+ isCurrentSpaceViewVisible(): Promise<boolean>;
11
+ isSpaceListViewVisible(): Promise<boolean>;
12
+ createIdentity(name: string): Promise<void>;
13
+ closeShell(): Promise<void>;
14
+ openCurrentSpace(): Promise<void>;
15
+ openSpaceList(): Promise<void>;
16
+ showAllSpaces(): Promise<void>;
17
+ showCurrentSpace(): Promise<void>;
18
+ createSpaceInvitation(): Promise<string>;
19
+ acceptSpaceInvitation(invitationCode: string): Promise<void>;
20
+ getAuthCode(): Promise<string>;
21
+ authenticate(authCode: string): Promise<void>;
22
+ private _onConsoleMessage;
23
+ }
24
+ //# sourceMappingURL=shell-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-manager.d.ts","sourceRoot":"","sources":["../../../../src/testing/shell-manager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkB,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAI7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,qBAAa,YAAa,SAAQ,kBAAkB;aAM9B,IAAI,EAAE,IAAI;IAC5B,QAAQ,CAAC,QAAQ;IANnB,OAAO,CAAC,eAAe,CAAyB;IAChD,OAAO,CAAC,SAAS,CAAyB;gBAItB,IAAI,EAAE,IAAI,EACnB,QAAQ,UAAO;IAM1B,IAAI,KAAK,mDAER;IAIK,yBAAyB,IAAI,OAAO,CAAC,OAAO,CAAC;IAI7C,sBAAsB,IAAI,OAAO,CAAC,OAAO,CAAC;IAM1C,cAAc,CAAC,IAAI,EAAE,MAAM;IAO3B,UAAU;IAKV,gBAAgB;IAIhB,aAAa;IAIb,aAAa;IAIb,gBAAgB;IAIhB,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC;IAQxC,qBAAqB,CAAC,cAAc,EAAE,MAAM;IAI5C,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;IAI9B,YAAY,CAAC,QAAQ,EAAE,MAAM;YAOrB,iBAAiB;CAWhC"}