@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 @@
1
+ {"version":3,"file":"IdentityInput.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/IdentityInput.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,+CAAwC;AAExC,mCAAgC;AAChC,qDAA+C;AAC/C,6CAAgD;AAEhD,oDAA0E;AAcnE,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC/B,MAAM,SAAS,GAAG,MAAM,KAAK,kBAAkB,CAAC;IAChD,MAAM,MAAM,GAAG,IAAA,wBAAS,GAAE,CAAC;IAC3B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,CAAC;IACnC,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAC,EAAE,CAAC,CAAC;IAC/D,MAAM,cAAc,GAAG,CAAC,WAAmB,EAAE,EAAE;QAC7C,KAAK,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,EA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C,8BAA8B,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAe,EAEzG,QAAQ,EAAE,QAAQ,iBACN,gBAAgB,EAC5B,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,qBAAqB,EAC5E,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,GACzD,CACE;QACN,8BAAC,oBAAO;YACN,8BAAC,mBAAM,IACL,OAAO,EAAC,OAAO,EACf,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAG,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,iBACxC,GAAG,MAAM,KAAK,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,sBAAsB,IAEzF,CAAC,CAAC,YAAY,CAAC,CACT;YACT,8BAAC,mBAAM,IACL,OAAO,EAAC,SAAS,EACjB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAG,UAAU,CAAC,iBACpC,GAAG,MAAM,KAAK,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,0BAA0B,IAE7F,CAAC,CAAC,gBAAgB,CAAC,CACb,CACD,CACT,CACJ,CAAC;AACJ,CAAC,CAAC;AAxCW,QAAA,iBAAiB,qBAwC5B"}
@@ -0,0 +1,9 @@
1
+ import { cloneElement } from 'react';
2
+ import { type JoinStepProps } from '../JoinPanelProps';
3
+ export interface InvitationAcceptedProps extends JoinStepProps {
4
+ Kind: 'Space' | 'Halo';
5
+ doneActionParent?: Parameters<typeof cloneElement>[0];
6
+ onDone?: () => void;
7
+ }
8
+ export declare const InvitationAccepted: (props: InvitationAcceptedProps) => JSX.Element;
9
+ //# sourceMappingURL=InvitationAccepted.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvitationAccepted.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationAccepted.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK5C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC5D,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,gBAyBhE,CAAC"}
@@ -0,0 +1,44 @@
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.InvitationAccepted = void 0;
30
+ const react_1 = __importStar(require("react"));
31
+ const react_ui_1 = require("@dxos/react-ui");
32
+ const components_1 = require("../../../components");
33
+ const InvitationAccepted = (props) => {
34
+ const { active, Kind, doneActionParent, onDone } = props;
35
+ const disabled = !active;
36
+ const { t } = (0, react_ui_1.useTranslation)('os');
37
+ const doneAction = (react_1.default.createElement(components_1.Action, { variant: 'primary', onClick: onDone, disabled: disabled, "data-autofocus": `success${Kind}Invitation finishingJoining${Kind}`, "data-testid": `${Kind.toLowerCase()}-invitation-accepted-done` }, t('done label')));
38
+ return (react_1.default.createElement(react_1.default.Fragment, null,
39
+ react_1.default.createElement("div", { role: 'none', className: 'grow flex flex-col justify-center' },
40
+ react_1.default.createElement("p", { className: 'text-center text-sm font-normal' }, t('welcome message'))),
41
+ react_1.default.createElement(components_1.Actions, null, doneActionParent ? (0, react_1.cloneElement)(doneActionParent, {}, doneAction) : doneAction)));
42
+ };
43
+ exports.InvitationAccepted = InvitationAccepted;
44
+ //# sourceMappingURL=InvitationAccepted.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvitationAccepted.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationAccepted.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,+CAA4C;AAE5C,6CAAgD;AAEhD,oDAAsD;AAS/C,MAAM,kBAAkB,GAAG,CAAC,KAA8B,EAAE,EAAE;IACnE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzD,MAAM,QAAQ,GAAG,CAAC,MAAM,CAAC;IACzB,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,CAAC;IAEnC,MAAM,UAAU,GAAG,CACjB,8BAAC,mBAAM,IACL,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,QAAQ,oBACF,UAAU,IAAI,8BAA8B,IAAI,EAAE,iBACrD,GAAG,IAAI,CAAC,WAAW,EAAE,2BAA2B,IAE5D,CAAC,CAAC,YAAY,CAAC,CACT,CACV,CAAC;IAEF,OAAO,CACL;QACE,uCAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,mCAAmC;YAC5D,qCAAG,SAAS,EAAC,iCAAiC,IAAE,CAAC,CAAC,iBAAiB,CAAC,CAAK,CACrE;QACN,8BAAC,oBAAO,QAAE,gBAAgB,CAAC,CAAC,CAAC,IAAA,oBAAY,EAAC,gBAAgB,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAW,CAClG,CACJ,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,kBAAkB,sBAyB7B"}
@@ -0,0 +1,11 @@
1
+ import { type JoinStepProps } from '../JoinPanelProps';
2
+ export interface InvitationAuthenticatorProps extends JoinStepProps {
3
+ Kind: 'Space' | 'Halo';
4
+ failed?: boolean;
5
+ pending?: boolean;
6
+ invitationId?: string;
7
+ onInvitationCancel?: () => Promise<void> | undefined;
8
+ onInvitationAuthenticate?: (authCode: string) => Promise<void> | undefined;
9
+ }
10
+ export declare const InvitationAuthenticator: ({ failed, Kind, active, pending, invitationId, onInvitationAuthenticate, onInvitationCancel, }: InvitationAuthenticatorProps) => JSX.Element;
11
+ //# sourceMappingURL=InvitationAuthenticator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvitationAuthenticator.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationAuthenticator.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIvD,MAAM,WAAW,4BAA6B,SAAQ,aAAa;IACjE,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IACrD,wBAAwB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;CAC5E;AAED,eAAO,MAAM,uBAAuB,mGAQjC,4BAA4B,gBAmE9B,CAAC"}
@@ -0,0 +1,72 @@
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.InvitationAuthenticator = void 0;
30
+ const react_1 = __importStar(require("react"));
31
+ const react_ui_1 = require("@dxos/react-ui");
32
+ const components_1 = require("../../../components");
33
+ const util_1 = require("../../../util");
34
+ const pinLength = 6;
35
+ const InvitationAuthenticator = ({ failed, Kind, active, pending, invitationId, onInvitationAuthenticate, onInvitationCancel, }) => {
36
+ const disabled = !active || pending;
37
+ const { t } = (0, react_ui_1.useTranslation)('os');
38
+ const invitationType = Kind.toLowerCase();
39
+ const [authCode, setAuthCode] = (0, react_1.useState)('');
40
+ const onChange = ({ target: { value } }) => {
41
+ var _a;
42
+ setAuthCode(value);
43
+ if (value.length === pinLength) {
44
+ (_a = document.querySelector(`[data-autofocus-pinlength="${invitationType}"]`)) === null || _a === void 0 ? void 0 : _a.focus();
45
+ }
46
+ };
47
+ return (react_1.default.createElement(react_1.default.Fragment, null,
48
+ react_1.default.createElement("div", { role: 'none', className: 'grow flex flex-col justify-center' },
49
+ invitationId && react_1.default.createElement(components_1.Emoji, { text: (0, util_1.toEmoji)(invitationId) }),
50
+ react_1.default.createElement(react_ui_1.Input.Root, { ...(failed && {
51
+ validationValence: 'error',
52
+ }) },
53
+ react_1.default.createElement(react_ui_1.Input.Label, { asChild: true },
54
+ react_1.default.createElement(components_1.StepHeading, null, t('auth code input label'))),
55
+ react_1.default.createElement(react_ui_1.Input.PinInput, { disabled,
56
+ length: pinLength,
57
+ onChange,
58
+ inputMode: 'numeric',
59
+ autoComplete: 'off',
60
+ pattern: '\\d*',
61
+ 'data-autofocus': `connecting${Kind}Invitation inputting${Kind}VerificationCode authenticationFailing${Kind}VerificationCode authenticating${Kind}VerificationCode`,
62
+ 'data-prevent-ios-autofocus': true,
63
+ 'data-testid': `${invitationType}-auth-code-input`,
64
+ 'data-1p-ignore': true }),
65
+ failed && (react_1.default.createElement(react_ui_1.Input.DescriptionAndValidation, { classNames: 'text-center' },
66
+ react_1.default.createElement(react_ui_1.Input.Validation, null, t('failed to authenticate message')))))),
67
+ react_1.default.createElement(components_1.Actions, null,
68
+ react_1.default.createElement(components_1.Action, { variant: 'ghost', disabled: disabled, onClick: () => onInvitationCancel === null || onInvitationCancel === void 0 ? void 0 : onInvitationCancel(), "data-testid": `${invitationType}-invitation-authenticator-cancel` }, t('cancel label')),
69
+ react_1.default.createElement(components_1.Action, { variant: 'primary', disabled: disabled, onClick: () => onInvitationAuthenticate === null || onInvitationAuthenticate === void 0 ? void 0 : onInvitationAuthenticate(authCode), "data-autofocus-pinlength": invitationType, "data-testid": `${invitationType}-invitation-authenticator-next` }, t('next label')))));
70
+ };
71
+ exports.InvitationAuthenticator = InvitationAuthenticator;
72
+ //# sourceMappingURL=InvitationAuthenticator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvitationAuthenticator.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationAuthenticator.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,+CAA0D;AAE1D,6CAAuD;AAEvD,oDAA0E;AAC1E,wCAAwC;AAGxC,MAAM,SAAS,GAAG,CAAC,CAAC;AAWb,MAAM,uBAAuB,GAAG,CAAC,EACtC,MAAM,EACN,IAAI,EACJ,MAAM,EACN,OAAO,EACP,YAAY,EACZ,wBAAwB,EACxB,kBAAkB,GACW,EAAE,EAAE;IACjC,MAAM,QAAQ,GAAG,CAAC,MAAM,IAAI,OAAO,CAAC;IACpC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,CAAC;IACnC,MAAM,cAAc,GAAG,IAAI,CAAC,WAAW,EAAsB,CAAC;IAC9D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAC,EAAE,CAAC,CAAC;IAE7C,MAAM,QAAQ,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAiC,EAAE,EAAE;;QACxE,WAAW,CAAC,KAAK,CAAC,CAAC;QACnB,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS,EAAE;YAC9B,MAAC,QAAQ,CAAC,aAAa,CAAC,8BAA8B,cAAc,IAAI,CAAwB,0CAAE,KAAK,EAAE,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EAAE,GAAG,EAAE,CAAC,wBAAwB,aAAxB,wBAAwB,uBAAxB,wBAAwB,CAAG,QAAQ,CAAC,8BACzB,cAAc,iBAC3B,GAAG,cAAc,gCAAgC,IAE7D,CAAC,CAAC,YAAY,CAAC,CACT,CACD,CACT,CACJ,CAAC;AACJ,CAAC,CAAC;AA3EW,QAAA,uBAAuB,2BA2ElC"}
@@ -0,0 +1,8 @@
1
+ import { type JoinPanelProps, type JoinStepProps } from '../JoinPanelProps';
2
+ export interface InvitationInputProps extends JoinStepProps, Pick<JoinPanelProps, 'onExit' | 'exitActionParent'> {
3
+ Kind: 'Space' | 'Halo';
4
+ unredeemedCode?: string;
5
+ succeededKeys?: Set<string>;
6
+ }
7
+ export declare const InvitationInput: (props: InvitationInputProps) => JSX.Element;
8
+ //# sourceMappingURL=InvitationInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvitationInput.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationInput.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE5E,MAAM,WAAW,oBAAqB,SAAQ,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,kBAAkB,CAAC;IAC9G,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC7B;AAaD,eAAO,MAAM,eAAe,UAAW,oBAAoB,gBAwE1D,CAAC"}
@@ -0,0 +1,68 @@
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.InvitationInput = void 0;
30
+ const react_1 = __importStar(require("react"));
31
+ const log_1 = require("@dxos/log");
32
+ const react_ui_1 = require("@dxos/react-ui");
33
+ const components_1 = require("../../../components");
34
+ const invitationCodeFromUrl = (text) => {
35
+ var _a;
36
+ try {
37
+ const searchParams = new URLSearchParams(text.substring(text.lastIndexOf('?')));
38
+ const invitation = (_a = searchParams.get('spaceInvitationCode')) !== null && _a !== void 0 ? _a : searchParams.get('deviceInvitationCode');
39
+ return invitation !== null && invitation !== void 0 ? invitation : text;
40
+ }
41
+ catch (err) {
42
+ log_1.log.catch(err);
43
+ return text;
44
+ }
45
+ };
46
+ const InvitationInput = (props) => {
47
+ const { Kind, active, send, unredeemedCode, onExit, exitActionParent, onDone, doneActionParent, succeededKeys } = props;
48
+ const disabled = !active;
49
+ const { t } = (0, react_ui_1.useTranslation)('os');
50
+ const [inputValue, setInputValue] = (0, react_1.useState)(unredeemedCode !== null && unredeemedCode !== void 0 ? unredeemedCode : '');
51
+ (0, react_1.useEffect)(() => {
52
+ unredeemedCode && setInputValue(unredeemedCode !== null && unredeemedCode !== void 0 ? unredeemedCode : '');
53
+ }, [unredeemedCode]);
54
+ const handleNext = () => send({
55
+ type: `set${Kind}InvitationCode`,
56
+ code: invitationCodeFromUrl(inputValue),
57
+ ...(Kind === 'Space' && { succeededKeys }),
58
+ });
59
+ const exitAction = (react_1.default.createElement(components_1.Action, { variant: 'ghost', disabled: disabled, ...(onExit ? { onClick: () => onExit() } : { onClick: () => onDone === null || onDone === void 0 ? void 0 : onDone(null) }), "data-testid": 'join-exit' }, t('cancel label')));
60
+ return (react_1.default.createElement(react_1.default.Fragment, null,
61
+ react_1.default.createElement("div", { role: 'none', className: 'grow flex flex-col justify-center' },
62
+ react_1.default.createElement(components_1.Input, { label: react_1.default.createElement(components_1.StepHeading, null, t('invitation input label')), placeholder: 'Type an invitation code', disabled: disabled, value: inputValue, onChange: ({ target: { value } }) => setInputValue(value), "data-autofocus": `inputting${Kind}InvitationCode`, "data-testid": `${Kind.toLowerCase()}-invitation-input`, onKeyUp: ({ key }) => key === 'Enter' && handleNext() })),
63
+ react_1.default.createElement(components_1.Actions, null,
64
+ Kind === 'Halo' ? (react_1.default.createElement(components_1.Action, { variant: 'ghost', disabled: disabled, onClick: () => send({ type: 'deselectAuthMethod' }), "data-testid": `${Kind.toLowerCase()}-invitation-input-back` }, t('back label'))) : exitActionParent ? ((0, react_1.cloneElement)(exitActionParent, {}, exitAction)) : doneActionParent ? ((0, react_1.cloneElement)(doneActionParent, {}, exitAction)) : (exitAction),
65
+ react_1.default.createElement(components_1.Action, { variant: 'primary', disabled: disabled, onClick: handleNext, "data-testid": `${Kind.toLowerCase()}-invitation-input-continue` }, t('continue label')))));
66
+ };
67
+ exports.InvitationInput = InvitationInput;
68
+ //# sourceMappingURL=InvitationInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvitationInput.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationInput.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,+CAA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,EAAE,CAAC,iBACtC,GAAG,IAAI,CAAC,WAAW,EAAE,wBAAwB,IAEzD,CAAC,CAAC,YAAY,CAAC,CACT,CACV,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CACrB,IAAA,oBAAY,EAAC,gBAAgB,EAAE,EAAE,EAAE,UAAU,CAAC,CAC/C,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CACrB,IAAA,oBAAY,EAAC,gBAAgB,EAAE,EAAE,EAAE,UAAU,CAAC,CAC/C,CAAC,CAAC,CAAC,CACF,UAAU,CACX;YACD,8BAAC,mBAAM,IACL,OAAO,EAAC,SAAS,EACjB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,UAAU,iBACN,GAAG,IAAI,CAAC,WAAW,EAAE,4BAA4B,IAE7D,CAAC,CAAC,gBAAgB,CAAC,CACb,CACD,CACT,CACJ,CAAC;AACJ,CAAC,CAAC;AAxEW,QAAA,eAAe,mBAwE1B"}
@@ -0,0 +1,11 @@
1
+ import { type Invitation } from '@dxos/react-client/invitations';
2
+ import { type FailReason } from '../../../types';
3
+ import { type JoinStepProps } from '../JoinPanelProps';
4
+ export interface InvitationRescuerProps extends JoinStepProps {
5
+ Kind: 'Space' | 'Halo';
6
+ invitationState?: Invitation.State;
7
+ onInvitationCancel?: () => Promise<void> | undefined;
8
+ failReason?: FailReason | null;
9
+ }
10
+ export declare const InvitationRescuer: (props: InvitationRescuerProps) => JSX.Element;
11
+ //# sourceMappingURL=InvitationRescuer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvitationRescuer.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationRescuer.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAKjE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IAC3D,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IACrD,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAChC;AAwDD,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,gBA0B9D,CAAC"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ //
3
+ // Copyright 2023 DXOS.org
4
+ //
5
+ var __importDefault = (this && this.__importDefault) || function (mod) {
6
+ return (mod && mod.__esModule) ? mod : { "default": mod };
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.InvitationRescuer = void 0;
10
+ const react_1 = __importDefault(require("react"));
11
+ const react_ui_1 = require("@dxos/react-ui");
12
+ const react_ui_theme_1 = require("@dxos/react-ui-theme");
13
+ const components_1 = require("../../../components");
14
+ const InvitationActions = ({
15
+ // `invitationState` does report correct state, but here we evaluate whether `failReason` is a better source of truth
16
+ // for the UI in particular.
17
+ invitationState, onInvitationCancel, active, send, Kind, failReason, }) => {
18
+ const { t } = (0, react_ui_1.useTranslation)('os');
19
+ if (failReason) {
20
+ return (react_1.default.createElement(react_1.default.Fragment, null,
21
+ react_1.default.createElement(components_1.StepHeading, { className: react_ui_theme_1.descriptionText }, t(failReason === 'timeout'
22
+ ? 'timeout status label'
23
+ : failReason === 'cancelled'
24
+ ? 'cancelled status label'
25
+ : 'error status label')),
26
+ react_1.default.createElement("div", { role: 'none', className: 'grow' }),
27
+ react_1.default.createElement(components_1.Actions, null,
28
+ react_1.default.createElement(components_1.Action, { disabled: !active, onClick: () => send({ type: `reset${Kind}Invitation` }), "data-testid": 'invitation-rescuer-reset' }, t('reset label')))));
29
+ }
30
+ else {
31
+ return (react_1.default.createElement(react_1.default.Fragment, null,
32
+ react_1.default.createElement(components_1.StepHeading, { className: react_ui_theme_1.descriptionText }, t('connecting status label')),
33
+ react_1.default.createElement("div", { role: 'none', className: 'grow' }),
34
+ react_1.default.createElement(components_1.Actions, null,
35
+ react_1.default.createElement(components_1.Action, { disabled: true, classNames: 'order-2', "data-testid": 'next' }, t('next label')),
36
+ react_1.default.createElement(components_1.Action, { disabled: !active, onClick: onInvitationCancel, "data-testid": 'invitation-rescuer-cancel' }, t('cancel label')))));
37
+ }
38
+ };
39
+ const InvitationRescuer = (props) => {
40
+ const { Kind, invitationState, active, send } = props;
41
+ const { t } = (0, react_ui_1.useTranslation)('os');
42
+ return (react_1.default.createElement(react_1.default.Fragment, null, typeof invitationState === 'undefined' ? (react_1.default.createElement(react_1.default.Fragment, null,
43
+ react_1.default.createElement("div", { role: 'none', className: 'grow flex flex-col justify-center' },
44
+ react_1.default.createElement(components_1.StepHeading, { className: react_ui_theme_1.descriptionText }, "There was a problem joining the space")),
45
+ react_1.default.createElement(components_1.Actions, null,
46
+ react_1.default.createElement(components_1.Action, { disabled: !active, "data-testid": 'invitation-rescuer-blank-reset', onClick: () => send({ type: `reset${Kind}Invitation` }) }, t('reset label'))))) : (react_1.default.createElement(InvitationActions, { ...props }))));
47
+ };
48
+ exports.InvitationRescuer = InvitationRescuer;
49
+ //# sourceMappingURL=InvitationRescuer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvitationRescuer.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationRescuer.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,kDAA0B;AAG1B,6CAAgD;AAChD,yDAAuD;AAEvD,oDAAmE;AAWnE,MAAM,iBAAiB,GAAG,CAAC;AACzB,qHAAqH;AACrH,4BAA4B;AAC5B,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,UAAU,GACa,EAAE,EAAE;IAC3B,MAAM,EA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,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,CAAC;IAEnC,OAAO,CACL,8DACG,OAAO,eAAe,KAAK,WAAW,CAAC,CAAC,CAAC,CACxC;QACE,uCAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,mCAAmC;YAC5D,8BAAC,wBAAW,IAAC,SAAS,EAAE,gCAAe,4CAAqD,CACxF;QACN,8BAAC,oBAAO;YACN,8BAAC,mBAAM,IACL,QAAQ,EAAE,CAAC,MAAM,iBACL,gCAAgC,EAC5C,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,IAAI,YAAY,EAAE,CAAC,IAEtD,CAAC,CAAC,aAAa,CAAC,CACV,CACD,CACT,CACJ,CAAC,CAAC,CAAC,CACF,8BAAC,iBAAiB,OAAK,KAAK,GAAI,CACjC,CACA,CACJ,CAAC;AACJ,CAAC,CAAC;AA1BW,QAAA,iBAAiB,qBA0B5B"}
@@ -0,0 +1,12 @@
1
+ import { type JoinStepProps } from '../JoinPanelProps';
2
+ export type ResetIdentityProps = JoinStepProps & {
3
+ method: 'reset identity';
4
+ };
5
+ export type ResetIdentityImplProps = {
6
+ disabled?: boolean;
7
+ validationMessage?: string;
8
+ onConfirm?: () => void;
9
+ };
10
+ export declare const ResetIdentity: ({ send, active }: ResetIdentityProps) => JSX.Element;
11
+ export declare const ResetIdentityImpl: ({ disabled, validationMessage, onConfirm }: ResetIdentityImplProps) => JSX.Element;
12
+ //# sourceMappingURL=ResetIdentity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResetIdentity.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/ResetIdentity.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAC/C,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,aAAa,qBAAsB,kBAAkB,gBAgBjE,CAAC;AAEF,eAAO,MAAM,iBAAiB,+CAAgD,sBAAsB,gBA6BnG,CAAC"}
@@ -0,0 +1,63 @@
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.ResetIdentityImpl = exports.ResetIdentity = void 0;
30
+ const react_1 = __importStar(require("react"));
31
+ const log_1 = require("@dxos/log");
32
+ const react_client_1 = require("@dxos/react-client");
33
+ const react_ui_1 = require("@dxos/react-ui");
34
+ const components_1 = require("../../../components");
35
+ const ResetIdentity = ({ send, active }) => {
36
+ const client = (0, react_client_1.useClient)();
37
+ const { t } = (0, react_ui_1.useTranslation)('os');
38
+ const [validationMessage, setValidationMessage] = (0, react_1.useState)('');
39
+ const resetIdentity = () => {
40
+ void client.reset().then(() => send === null || send === void 0 ? void 0 : send({ type: 'resetIdentity' }), (error) => {
41
+ log_1.log.catch(error);
42
+ setValidationMessage(t('failed to reset identity message'));
43
+ });
44
+ };
45
+ return (react_1.default.createElement(exports.ResetIdentityImpl, { disabled: !active, validationMessage: validationMessage, onConfirm: () => resetIdentity() }));
46
+ };
47
+ exports.ResetIdentity = ResetIdentity;
48
+ const ResetIdentityImpl = ({ disabled, validationMessage, onConfirm }) => {
49
+ const { t } = (0, react_ui_1.useTranslation)('os');
50
+ const confirmationValue = t('confirmation value');
51
+ const [inputValue, setInputValue] = (0, react_1.useState)('');
52
+ return (react_1.default.createElement(react_1.default.Fragment, null,
53
+ react_1.default.createElement("div", { role: 'none', className: 'grow flex flex-col justify-center' },
54
+ react_1.default.createElement(components_1.Input, { validationMessage, label: react_1.default.createElement(components_1.StepHeading, null, t('reset identity input label', { confirmationValue })), disabled: disabled, "data-testid": 'identity-input', placeholder: confirmationValue, onChange: ({ target: { value } }) => setInputValue(value) })),
55
+ react_1.default.createElement(components_1.Actions, null,
56
+ react_1.default.createElement(components_1.Action
57
+ // TODO(wittjosiah): Probably make this red?
58
+ , {
59
+ // TODO(wittjosiah): Probably make this red?
60
+ variant: 'primary', disabled: disabled || inputValue !== confirmationValue, onClick: () => onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(), "data-testid": 'reset-identity-input-confirm' }, t('confirm label')))));
61
+ };
62
+ exports.ResetIdentityImpl = ResetIdentityImpl;
63
+ //# sourceMappingURL=ResetIdentity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResetIdentity.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/ResetIdentity.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;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BAAQ,EAAC,EAAE,CAAC,CAAC;IACjD,OAAO,CACL;QACE,uCAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,mCAAmC;YAC5D,8BAAC,kBAAK,IACE,iBAAiB,EACvB,KAAK,EAAE,8BAAC,wBAAW,QAAE,CAAC,CAAC,4BAA4B,EAAE,EAAE,iBAAiB,EAAE,CAAC,CAAe,EAC1F,QAAQ,EAAE,QAAQ,iBACN,gBAAgB,EAC5B,WAAW,EAAE,iBAAiB,EAC9B,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,GACzD,CACE;QACN,8BAAC,oBAAO;YACN,8BAAC,mBAAM;YACL,4CAA4C;;gBAA5C,4CAA4C;gBAC5C,OAAO,EAAC,SAAS,EACjB,QAAQ,EAAE,QAAQ,IAAI,UAAU,KAAK,iBAAiB,EACtD,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,aAAT,SAAS,uBAAT,SAAS,EAAI,iBAChB,8BAA8B,IAEzC,CAAC,CAAC,eAAe,CAAC,CACZ,CACD,CACT,CACJ,CAAC;AACJ,CAAC,CAAC;AA7BW,QAAA,iBAAiB,qBA6B5B"}
@@ -0,0 +1,9 @@
1
+ export * from './AdditionMethodChooser';
2
+ export * from './IdentityAdded';
3
+ export * from './IdentityInput';
4
+ export * from './InvitationAccepted';
5
+ export * from './InvitationInput';
6
+ export * from './InvitationRescuer';
7
+ export * from './InvitationAuthenticator';
8
+ export * from './ResetIdentity';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/index.ts"],"names":[],"mappings":"AAIA,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,28 @@
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("./AdditionMethodChooser"), exports);
21
+ __exportStar(require("./IdentityAdded"), exports);
22
+ __exportStar(require("./IdentityInput"), exports);
23
+ __exportStar(require("./InvitationAccepted"), exports);
24
+ __exportStar(require("./InvitationInput"), exports);
25
+ __exportStar(require("./InvitationRescuer"), exports);
26
+ __exportStar(require("./InvitationAuthenticator"), exports);
27
+ __exportStar(require("./ResetIdentity"), exports);
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;AAEF,0DAAwC;AACxC,kDAAgC;AAChC,kDAAgC;AAChC,uDAAqC;AACrC,oDAAkC;AAClC,sDAAoC;AACpC,4DAA0C;AAC1C,kDAAgC"}
@@ -0,0 +1,22 @@
1
+ import '@dxosTheme';
2
+ import React from 'react';
3
+ export declare const Default: {
4
+ (props: any): JSX.Element;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ };
9
+ declare const _default: {
10
+ title: string;
11
+ decorators: import("@storybook/react").Decorator[];
12
+ component: ({ components }: {
13
+ components: React.FC<{}>[];
14
+ }) => JSX.Element;
15
+ parameters: {
16
+ chromatic: {
17
+ disableSnapshot: boolean;
18
+ };
19
+ };
20
+ };
21
+ export default _default;
22
+ //# sourceMappingURL=Panels.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Panels.stories.d.ts","sourceRoot":"","sources":["../../../../src/panels/Panels.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,KAAK,MAAM,OAAO,CAAC;AAmC1B,eAAO,MAAM,OAAO;YAAW,GAAG;;;;CAUjC,CAAC;;;;;;;;;;;;;AAIF,wBAKE"}
@@ -0,0 +1,71 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
29
+ return (mod && mod.__esModule) ? mod : { "default": mod };
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.Default = void 0;
33
+ require("@dxosTheme");
34
+ const react_1 = __importDefault(require("react"));
35
+ const storybook_utils_1 = require("@dxos/storybook-utils");
36
+ const IdentityPanels = __importStar(require("./IdentityPanel/IdentityPanel.stories"));
37
+ const JoinPanels = __importStar(require("./JoinPanel/JoinPanel.stories"));
38
+ const SpacePanels = __importStar(require("./SpacePanel/SpacePanel.stories"));
39
+ const getComponentNames = (module) => {
40
+ var _a;
41
+ return (_a = module === null || module === void 0 ? void 0 : module.__namedExportsOrder) !== null && _a !== void 0 ? _a : Object.getOwnPropertyNames(module).filter((name) => !(name === 'default' || name.startsWith('__')));
42
+ };
43
+ const getComponents = (module) => {
44
+ const components = getComponentNames(module).map((name) => module[name]);
45
+ console.log(module);
46
+ return components;
47
+ };
48
+ const camelCaseToSpacedName = (camelCase) => {
49
+ return camelCase.replace(/([a-z0-9])([A-Z])/g, '$1 $2').replace(/([A-Z])([A-Z][a-z])/g, '$1 $2');
50
+ };
51
+ const StoryRow = ({ components }) => {
52
+ return (react_1.default.createElement("tr", { style: { whiteSpace: 'nowrap' } }, components === null || components === void 0 ? void 0 : components.map((Comp) => (react_1.default.createElement("td", { key: Comp.name },
53
+ react_1.default.createElement("div", { className: 'bg-zinc-500 text-zinc-200 p-3 text-sm text-center' }, camelCaseToSpacedName(Comp.name)),
54
+ react_1.default.createElement(Comp, null))))));
55
+ };
56
+ const Default = (props) => {
57
+ return (react_1.default.createElement("table", { className: 'bg-body' },
58
+ react_1.default.createElement("tbody", null,
59
+ react_1.default.createElement(StoryRow, { components: getComponents(IdentityPanels) }),
60
+ react_1.default.createElement(StoryRow, { components: getComponents(SpacePanels) }),
61
+ react_1.default.createElement(StoryRow, { components: getComponents(JoinPanels) }))));
62
+ };
63
+ exports.Default = Default;
64
+ exports.Default.parameters = { layout: 'fullscreen' };
65
+ exports.default = {
66
+ title: 'react-shell/All',
67
+ decorators: [storybook_utils_1.withTheme],
68
+ component: StoryRow,
69
+ parameters: { chromatic: { disableSnapshot: false } },
70
+ };
71
+ //# sourceMappingURL=Panels.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Panels.stories.js","sourceRoot":"","sources":["../../../../src/panels/Panels.stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,sBAAoB;AAEpB,kDAA0B;AAE1B,2DAAkD;AAElD,sFAAwE;AACxE,0EAA4D;AAC5D,6EAA+D;AAE/D,MAAM,iBAAiB,GAAG,CAAC,MAAW,EAAY,EAAE;;IAClD,OAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,mBAAmB,mCAC3B,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;CAAA,CAAC;AAEtG,MAAM,aAAa,GAAG,CAAC,MAAW,EAAc,EAAE;IAChD,MAAM,UAAU,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IACzE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACpB,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,SAAiB,EAAE,EAAE;IAClD,OAAO,SAAS,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;AACnG,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,EAAE,UAAU,EAA8B,EAAE,EAAE;IAC9D,OAAO,CACL,sCAAI,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,IAChC,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACzB,sCAAI,GAAG,EAAE,IAAI,CAAC,IAAI;QAChB,uCAAK,SAAS,EAAC,mDAAmD,IAAE,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAO;QAC3G,8BAAC,IAAI,OAAG,CACL,CACN,CAAC,CACC,CACN,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,OAAO,GAAG,CAAC,KAAU,EAAE,EAAE;IACpC,OAAO,CACL,yCAAO,SAAS,EAAC,SAAS;QACxB;YACE,8BAAC,QAAQ,IAAC,UAAU,EAAE,aAAa,CAAC,cAAc,CAAC,GAAI;YACvD,8BAAC,QAAQ,IAAC,UAAU,EAAE,aAAa,CAAC,WAAW,CAAC,GAAI;YACpD,8BAAC,QAAQ,IAAC,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,GAAI,CAC7C,CACF,CACT,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,OAAO,WAUlB;AAEF,eAAO,CAAC,UAAU,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;AAE9C,kBAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,UAAU,EAAE,CAAC,2BAAS,CAAC;IACvB,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE,EAAE,SAAS,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE;CACtD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type SpacePanelImplProps, type SpacePanelProps } from './SpacePanelProps';
2
+ export declare const SpacePanelImpl: (props: SpacePanelImplProps) => JSX.Element;
3
+ export declare const SpacePanel: ({ titleId: propsTitleId, createInvitationUrl, ...props }: SpacePanelProps) => JSX.Element;
4
+ //# sourceMappingURL=SpacePanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpacePanel.d.ts","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.tsx"],"names":[],"mappings":"AAYA,OAAO,EAA+B,KAAK,mBAAmB,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAwBhH,eAAO,MAAM,cAAc,UAAW,mBAAmB,gBA4BxD,CAAC;AAgBF,eAAO,MAAM,UAAU,6DAIpB,eAAe,gBAqCjB,CAAC"}