@dxos/shell 0.7.5-main.2567c87 → 0.7.5-main.5ae2ba8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/{shell.mjs → shell.js} +20862 -21881
- package/dist/bundle/shell.js.map +1 -0
- package/dist/bundle/shell.umd.cjs +1045 -0
- package/dist/bundle/shell.umd.cjs.map +1 -0
- package/dist/bundle/style.css +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +556 -804
- package/dist/lib/browser/react.mjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/react.cjs +656 -904
- package/dist/lib/node/react.cjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react.mjs +556 -804
- package/dist/lib/node-esm/react.mjs.map +4 -4
- package/dist/types/src/components/AgentConfig.d.ts +1 -2
- package/dist/types/src/components/AgentConfig.d.ts.map +1 -1
- package/dist/types/src/components/AgentConfig.js +20 -50
- package/dist/types/src/components/AgentConfig.js.map +1 -1
- package/dist/types/src/components/AuthCode.d.ts +2 -2
- package/dist/types/src/components/AuthCode.d.ts.map +1 -1
- package/dist/types/src/components/AuthCode.js +6 -44
- package/dist/types/src/components/AuthCode.js.map +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.d.ts +2 -2
- package/dist/types/src/components/CompoundButton/CompoundButton.d.ts.map +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.js +9 -24
- package/dist/types/src/components/CompoundButton/CompoundButton.js.map +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts +8 -9
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts.map +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.js +17 -25
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.js.map +1 -1
- package/dist/types/src/components/CompoundButton/index.js +1 -17
- package/dist/types/src/components/CompoundButton/index.js.map +1 -1
- package/dist/types/src/components/DeviceList/DeviceList.d.ts +1 -2
- package/dist/types/src/components/DeviceList/DeviceList.d.ts.map +1 -1
- package/dist/types/src/components/DeviceList/DeviceList.js +10 -24
- package/dist/types/src/components/DeviceList/DeviceList.js.map +1 -1
- package/dist/types/src/components/DeviceList/DeviceListItem.d.ts +1 -1
- package/dist/types/src/components/DeviceList/DeviceListItem.js +18 -73
- package/dist/types/src/components/DeviceList/DeviceListItem.js.map +1 -1
- package/dist/types/src/components/DeviceList/DeviceListProps.js +0 -2
- package/dist/types/src/components/DeviceList/DeviceListProps.js.map +1 -1
- package/dist/types/src/components/DeviceList/index.js +2 -18
- package/dist/types/src/components/DeviceList/index.js.map +1 -1
- package/dist/types/src/components/IdentityList/IdentityListItem.d.ts +1 -1
- package/dist/types/src/components/IdentityList/IdentityListItem.js +12 -51
- package/dist/types/src/components/IdentityList/IdentityListItem.js.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts +2 -3
- package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.js +17 -55
- package/dist/types/src/components/IdentityList/SpaceMemberList.js.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts +3 -4
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js +10 -17
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js.map +1 -1
- package/dist/types/src/components/IdentityList/index.js +2 -18
- package/dist/types/src/components/IdentityList/index.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.d.ts +2 -2
- package/dist/types/src/components/InvitationList/InvitationList.d.ts.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.js +10 -20
- package/dist/types/src/components/InvitationList/InvitationList.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts +3 -4
- package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.stories.js +20 -27
- package/dist/types/src/components/InvitationList/InvitationList.stories.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts +1 -2
- package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationListContainer.js +9 -45
- package/dist/types/src/components/InvitationList/InvitationListContainer.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationListItem.d.ts +3 -3
- package/dist/types/src/components/InvitationList/InvitationListItem.d.ts.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationListItem.js +32 -99
- package/dist/types/src/components/InvitationList/InvitationListItem.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationListProps.js +0 -2
- package/dist/types/src/components/InvitationList/index.js +3 -19
- package/dist/types/src/components/InvitationList/index.js.map +1 -1
- package/dist/types/src/components/Panel/Action.js +15 -68
- package/dist/types/src/components/Panel/Action.js.map +1 -1
- package/dist/types/src/components/Panel/Actions.js +6 -41
- package/dist/types/src/components/Panel/Actions.js.map +1 -1
- package/dist/types/src/components/Panel/CloseButton.d.ts +1 -2
- package/dist/types/src/components/Panel/CloseButton.d.ts.map +1 -1
- package/dist/types/src/components/Panel/CloseButton.js +7 -16
- package/dist/types/src/components/Panel/CloseButton.js.map +1 -1
- package/dist/types/src/components/Panel/Emoji.d.ts +3 -3
- package/dist/types/src/components/Panel/Emoji.d.ts.map +1 -1
- package/dist/types/src/components/Panel/Emoji.js +6 -19
- package/dist/types/src/components/Panel/Emoji.js.map +1 -1
- package/dist/types/src/components/Panel/Heading.js +5 -44
- package/dist/types/src/components/Panel/Heading.js.map +1 -1
- package/dist/types/src/components/Panel/Input.d.ts +2 -2
- package/dist/types/src/components/Panel/Input.d.ts.map +1 -1
- package/dist/types/src/components/Panel/Input.js +4 -17
- package/dist/types/src/components/Panel/Input.js.map +1 -1
- package/dist/types/src/components/Panel/Label.d.ts +2 -2
- package/dist/types/src/components/Panel/Label.d.ts.map +1 -1
- package/dist/types/src/components/Panel/Label.js +4 -14
- package/dist/types/src/components/Panel/Label.js.map +1 -1
- package/dist/types/src/components/Panel/Panel.stories.d.ts +4 -5
- package/dist/types/src/components/Panel/Panel.stories.d.ts.map +1 -1
- package/dist/types/src/components/Panel/Panel.stories.js +15 -35
- package/dist/types/src/components/Panel/Panel.stories.js.map +1 -1
- package/dist/types/src/components/Panel/StepHeading.js +5 -40
- package/dist/types/src/components/Panel/StepHeading.js.map +1 -1
- package/dist/types/src/components/Panel/index.js +8 -24
- package/dist/types/src/components/Panel/index.js.map +1 -1
- package/dist/types/src/components/SpaceListItem.js +10 -49
- package/dist/types/src/components/SpaceListItem.js.map +1 -1
- package/dist/types/src/components/StorybookDialog.d.ts +2 -2
- package/dist/types/src/components/StorybookDialog.d.ts.map +1 -1
- package/dist/types/src/components/StorybookDialog.js +5 -18
- package/dist/types/src/components/StorybookDialog.js.map +1 -1
- package/dist/types/src/components/Viewport/Viewport.d.ts +2 -2
- package/dist/types/src/components/Viewport/Viewport.js +18 -55
- package/dist/types/src/components/Viewport/Viewport.js.map +1 -1
- package/dist/types/src/components/Viewport/Viewport.stories.d.ts +2 -3
- package/dist/types/src/components/Viewport/Viewport.stories.d.ts.map +1 -1
- package/dist/types/src/components/Viewport/Viewport.stories.js +12 -37
- package/dist/types/src/components/Viewport/Viewport.stories.js.map +1 -1
- package/dist/types/src/components/Viewport/index.js +1 -17
- package/dist/types/src/components/Viewport/index.js.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/index.js +9 -27
- package/dist/types/src/components/index.js.map +1 -1
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts +1 -2
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts.map +1 -1
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.js +7 -22
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.js.map +1 -1
- package/dist/types/src/composites/IdentityDialog/index.js +1 -17
- package/dist/types/src/composites/IdentityDialog/index.js.map +1 -1
- package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts +1 -2
- package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/composites/JoinDialog/JoinDialog.js +9 -23
- package/dist/types/src/composites/JoinDialog/JoinDialog.js.map +1 -1
- package/dist/types/src/composites/JoinDialog/index.js +1 -17
- package/dist/types/src/composites/JoinDialog/index.js.map +1 -1
- package/dist/types/src/composites/Shell/Shell.d.ts +1 -2
- package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/Shell.js +54 -90
- package/dist/types/src/composites/Shell/Shell.js.map +1 -1
- package/dist/types/src/composites/Shell/ShellContext.d.ts +2 -2
- package/dist/types/src/composites/Shell/ShellContext.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/ShellContext.js +32 -72
- package/dist/types/src/composites/Shell/ShellContext.js.map +1 -1
- package/dist/types/src/composites/Shell/index.js +3 -19
- package/dist/types/src/composites/Shell/index.js.map +1 -1
- package/dist/types/src/composites/Shell/memory-shell-runtime.js +7 -11
- package/dist/types/src/composites/Shell/memory-shell-runtime.js.map +1 -1
- package/dist/types/src/composites/Shell/run-shell.js +18 -67
- package/dist/types/src/composites/Shell/run-shell.js.map +1 -1
- package/dist/types/src/composites/Shell/shell-runtime.js +13 -17
- package/dist/types/src/composites/Shell/shell-runtime.js.map +1 -1
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts +1 -2
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts.map +1 -1
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.js +7 -22
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.js.map +1 -1
- package/dist/types/src/composites/SpaceDialog/index.js +1 -17
- package/dist/types/src/composites/SpaceDialog/index.js.map +1 -1
- package/dist/types/src/composites/StatusDialog/StatusDialog.d.ts +1 -2
- package/dist/types/src/composites/StatusDialog/StatusDialog.d.ts.map +1 -1
- package/dist/types/src/composites/StatusDialog/StatusDialog.js +6 -20
- package/dist/types/src/composites/StatusDialog/StatusDialog.js.map +1 -1
- package/dist/types/src/composites/StatusDialog/index.js +1 -17
- package/dist/types/src/composites/StatusDialog/index.js.map +1 -1
- package/dist/types/src/composites/index.js +4 -20
- package/dist/types/src/composites/index.js.map +1 -1
- package/dist/types/src/index.js +2 -6
- package/dist/types/src/index.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts +2 -3
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js +63 -137
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts +11 -12
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js +39 -54
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.d.ts +2 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.js +0 -2
- package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/identityMachine.js +10 -14
- package/dist/types/src/panels/IdentityPanel/identityMachine.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/index.js +2 -18
- package/dist/types/src/panels/IdentityPanel/index.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts +2 -3
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js +16 -29
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts +1 -2
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js +27 -72
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/index.js +2 -18
- package/dist/types/src/panels/IdentityPanel/steps/index.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js +7 -11
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.js +19 -23
- package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useKubeAgentHandlers.js +19 -23
- package/dist/types/src/panels/IdentityPanel/useKubeAgentHandlers.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinHeading.js +11 -48
- package/dist/types/src/panels/JoinPanel/JoinHeading.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts +2 -3
- package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.js +38 -100
- package/dist/types/src/panels/JoinPanel/JoinPanel.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts +15 -16
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js +25 -45
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanelProps.js +0 -2
- package/dist/types/src/panels/JoinPanel/JoinPanelProps.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/index.js +2 -18
- package/dist/types/src/panels/JoinPanel/index.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/joinMachine.js +49 -54
- package/dist/types/src/panels/JoinPanel/joinMachine.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts +1 -2
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js +9 -21
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts +1 -2
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js +14 -58
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts +2 -3
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js +20 -61
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.d.ts +2 -2
- package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.js +8 -47
- package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts +1 -2
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js +22 -73
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts +1 -2
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js +18 -59
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts +1 -2
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js +14 -37
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/index.js +7 -23
- package/dist/types/src/panels/JoinPanel/steps/index.js.map +1 -1
- package/dist/types/src/panels/Panels.stories.d.ts +4 -4
- package/dist/types/src/panels/Panels.stories.d.ts.map +1 -1
- package/dist/types/src/panels/Panels.stories.js +13 -58
- package/dist/types/src/panels/Panels.stories.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts +2 -3
- package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.js +25 -72
- package/dist/types/src/panels/SpacePanel/SpacePanel.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts +18 -19
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js +96 -121
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanelProps.js +0 -2
- package/dist/types/src/panels/SpacePanel/SpacePanelProps.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/index.js +2 -18
- package/dist/types/src/panels/SpacePanel/index.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/spaceMachine.js +9 -13
- package/dist/types/src/panels/SpacePanel/spaceMachine.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts +3 -3
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js +33 -81
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/steps/index.js +1 -17
- package/dist/types/src/panels/SpacePanel/steps/index.js.map +1 -1
- package/dist/types/src/panels/StatusPanel/StatusPanel.d.ts +1 -2
- package/dist/types/src/panels/StatusPanel/StatusPanel.d.ts.map +1 -1
- package/dist/types/src/panels/StatusPanel/StatusPanel.js +5 -17
- package/dist/types/src/panels/StatusPanel/StatusPanel.js.map +1 -1
- package/dist/types/src/panels/StatusPanel/index.js +1 -17
- package/dist/types/src/panels/StatusPanel/index.js.map +1 -1
- package/dist/types/src/panels/index.js +4 -20
- package/dist/types/src/panels/index.js.map +1 -1
- package/dist/types/src/playwright/invitations-manager.js +11 -15
- package/dist/types/src/playwright/invitations-manager.js.map +1 -1
- package/dist/types/src/playwright/invitations.spec.js +64 -66
- package/dist/types/src/playwright/invitations.spec.js.map +1 -1
- package/dist/types/src/react.js +6 -22
- package/dist/types/src/react.js.map +1 -1
- package/dist/types/src/steps/ConfirmReset.d.ts +2 -3
- package/dist/types/src/steps/ConfirmReset.d.ts.map +1 -1
- package/dist/types/src/steps/ConfirmReset.js +23 -70
- package/dist/types/src/steps/ConfirmReset.js.map +1 -1
- package/dist/types/src/steps/InvitationManager.d.ts +1 -2
- package/dist/types/src/steps/InvitationManager.d.ts.map +1 -1
- package/dist/types/src/steps/InvitationManager.js +17 -71
- package/dist/types/src/steps/InvitationManager.js.map +1 -1
- package/dist/types/src/steps/StepProps.js +0 -2
- package/dist/types/src/steps/StepProps.js.map +1 -1
- package/dist/types/src/steps/index.js +3 -19
- package/dist/types/src/steps/index.js.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.d.ts +2 -3
- package/dist/types/src/stories/Invitations.e2e-stories.d.ts.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.js +50 -113
- package/dist/types/src/stories/Invitations.e2e-stories.js.map +1 -1
- package/dist/types/src/styles/index.js +2 -18
- package/dist/types/src/styles/index.js.map +1 -1
- package/dist/types/src/styles/invitationStatusStyles.js +31 -37
- package/dist/types/src/styles/invitationStatusStyles.js.map +1 -1
- package/dist/types/src/styles/panelStyles.js +1 -4
- package/dist/types/src/styles/panelStyles.js.map +1 -1
- package/dist/types/src/testing/fixtures/identities.d.ts.map +1 -1
- package/dist/types/src/testing/fixtures/identities.js +8 -9
- package/dist/types/src/testing/fixtures/identities.js.map +1 -1
- package/dist/types/src/testing/fixtures/index.js +2 -18
- package/dist/types/src/testing/fixtures/index.js.map +1 -1
- package/dist/types/src/testing/fixtures/invitations.js +8 -12
- package/dist/types/src/testing/fixtures/invitations.js.map +1 -1
- package/dist/types/src/testing/index.js +2 -18
- package/dist/types/src/testing/index.js.map +1 -1
- package/dist/types/src/testing/scoped-shell-manager.js +1 -5
- package/dist/types/src/testing/scoped-shell-manager.js.map +1 -1
- package/dist/types/src/testing/shell-manager.js +11 -15
- package/dist/types/src/testing/shell-manager.js.map +1 -1
- package/dist/types/src/translations/index.js +2 -38
- package/dist/types/src/translations/index.js.map +1 -1
- package/dist/types/src/translations/locales/en-US.d.ts +5 -1
- package/dist/types/src/translations/locales/en-US.d.ts.map +1 -1
- package/dist/types/src/translations/locales/en-US.js +9 -7
- package/dist/types/src/translations/locales/en-US.js.map +1 -1
- package/dist/types/src/types/FailReason.js +0 -2
- package/dist/types/src/types/FailReason.js.map +1 -1
- package/dist/types/src/types/IInvitation.js +0 -2
- package/dist/types/src/types/IInvitation.js.map +1 -1
- package/dist/types/src/types/index.js +2 -18
- package/dist/types/src/types/index.js.map +1 -1
- package/dist/types/src/util/index.js +1 -17
- package/dist/types/src/util/index.js.map +1 -1
- package/dist/types/src/util/invitationStatusValue.js +11 -14
- package/dist/types/src/util/invitationStatusValue.js.map +1 -1
- package/package.json +36 -31
- package/src/components/AgentConfig.tsx +1 -1
- package/src/components/DeviceList/DeviceList.tsx +1 -1
- package/src/components/index.ts +0 -2
- package/src/panels/IdentityPanel/IdentityPanel.stories.tsx +3 -0
- package/src/panels/IdentityPanel/IdentityPanel.tsx +50 -33
- package/src/panels/IdentityPanel/IdentityPanelProps.ts +8 -1
- package/src/panels/IdentityPanel/steps/ProfileForm.tsx +3 -7
- package/src/panels/JoinPanel/steps/IdentityInput.tsx +1 -1
- package/src/panels/SpacePanel/SpacePanel.stories.tsx +6 -1
- package/src/testing/fixtures/identities.ts +2 -0
- package/src/translations/locales/en-US.ts +10 -3
- package/dist/bundle/shell.mjs.map +0 -1
- package/dist/bundle/shell.umd.js +0 -1043
- package/dist/bundle/shell.umd.js.map +0 -1
- package/dist/lib/browser/react.css +0 -7
- package/dist/lib/browser/react.css.map +0 -7
- package/dist/lib/node/react.css +0 -7
- package/dist/lib/node/react.css.map +0 -7
- package/dist/lib/node-esm/react.css +0 -7
- package/dist/lib/node-esm/react.css.map +0 -7
- package/dist/types/src/components/EmojiPicker.d.ts +0 -19
- package/dist/types/src/components/EmojiPicker.d.ts.map +0 -1
- package/dist/types/src/components/EmojiPicker.js +0 -146
- package/dist/types/src/components/EmojiPicker.js.map +0 -1
- package/dist/types/src/components/HuePicker.d.ts +0 -18
- package/dist/types/src/components/HuePicker.d.ts.map +0 -1
- package/dist/types/src/components/HuePicker.js +0 -133
- package/dist/types/src/components/HuePicker.js.map +0 -1
- package/dist/types/src/playwright/playwright.config.d.ts +0 -3
- package/dist/types/src/playwright/playwright.config.d.ts.map +0 -1
- package/dist/types/src/playwright/playwright.config.js +0 -18
- package/dist/types/src/playwright/playwright.config.js.map +0 -1
- package/src/components/EmojiPicker.tsx +0 -187
- package/src/components/HuePicker.tsx +0 -182
- package/src/components/emoji.css +0 -25
- /package/src/playwright/{playwright.config.ts → playwright.config.cts} +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type InvitationStatus } from '@dxos/react-client/invitations';
|
|
3
2
|
import { type StepProps } from './StepProps';
|
|
4
3
|
export type InvitationManagerProps = StepProps & Partial<InvitationStatus> & {
|
|
5
4
|
invitationUrl?: string;
|
|
6
5
|
};
|
|
7
|
-
export declare const InvitationManager: ({ invitationUrl, active, send, status, multiUse, authCode, id, }: InvitationManagerProps) =>
|
|
6
|
+
export declare const InvitationManager: ({ invitationUrl, active, send, status, multiUse, authCode, id, }: InvitationManagerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
//# sourceMappingURL=InvitationManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationManager.d.ts","sourceRoot":"","sources":["../../../../src/steps/InvitationManager.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InvitationManager.d.ts","sourceRoot":"","sources":["../../../../src/steps/InvitationManager.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAKvE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7C,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAC5C,OAAO,CAAC,gBAAgB,CAAC,GAAG;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAUJ,eAAO,MAAM,iBAAiB,qEAQ3B,sBAAsB,4CAuExB,CAAC"}
|
|
@@ -1,61 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
//
|
|
3
3
|
// Copyright 2023 DXOS.org
|
|
4
4
|
//
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.InvitationManager = void 0;
|
|
40
|
-
const react_1 = require("@phosphor-icons/react");
|
|
41
|
-
const react_2 = __importStar(require("react"));
|
|
42
|
-
const react_qr_rounded_1 = require("react-qr-rounded");
|
|
43
|
-
const react_ui_1 = require("@dxos/react-ui");
|
|
44
|
-
const react_ui_theme_1 = require("@dxos/react-ui-theme");
|
|
45
|
-
const util_1 = require("@dxos/util");
|
|
46
|
-
const components_1 = require("../components");
|
|
47
|
-
const util_2 = require("../util");
|
|
5
|
+
import { Check, X } from '@phosphor-icons/react';
|
|
6
|
+
import { useMemo } from 'react';
|
|
7
|
+
import { QR } from 'react-qr-rounded';
|
|
8
|
+
import { Clipboard, useId, useTranslation } from '@dxos/react-ui';
|
|
9
|
+
import { descriptionText, getSize, mx } from '@dxos/react-ui-theme';
|
|
10
|
+
import { hexToEmoji } from '@dxos/util';
|
|
11
|
+
import { Actions, Action, AuthCode, Emoji, Label, Viewport, Centered } from '../components';
|
|
12
|
+
import { invitationStatusValue } from '../util';
|
|
48
13
|
const InvitationManagerView = ({ children, ...props }) => {
|
|
49
|
-
return (
|
|
14
|
+
return (_jsx(Viewport.View, { ...props, classNames: 'grow flex flex-col justify-around items-center', children: children }));
|
|
50
15
|
};
|
|
51
|
-
const InvitationManager = ({ invitationUrl, active, send, status, multiUse, authCode, id = '0', }) => {
|
|
16
|
+
export const InvitationManager = ({ invitationUrl, active, send, status, multiUse, authCode, id = '0', }) => {
|
|
52
17
|
var _a;
|
|
53
|
-
const { t } =
|
|
54
|
-
const qrLabel =
|
|
55
|
-
const statusValue = multiUse ? 0 : (_a =
|
|
18
|
+
const { t } = useTranslation('os');
|
|
19
|
+
const qrLabel = useId('invitation-manager__qr-code');
|
|
20
|
+
const statusValue = multiUse ? 0 : (_a = invitationStatusValue.get(status)) !== null && _a !== void 0 ? _a : 0;
|
|
56
21
|
const showAuthCode = statusValue === 3;
|
|
57
|
-
const emoji =
|
|
58
|
-
const activeView =
|
|
22
|
+
const emoji = hexToEmoji(id);
|
|
23
|
+
const activeView = useMemo(() => {
|
|
59
24
|
if (multiUse) {
|
|
60
25
|
return 'showing qr';
|
|
61
26
|
}
|
|
@@ -69,25 +34,6 @@ const InvitationManager = ({ invitationUrl, active, send, status, multiUse, auth
|
|
|
69
34
|
return 'showing qr';
|
|
70
35
|
}
|
|
71
36
|
}, [statusValue]);
|
|
72
|
-
return (
|
|
73
|
-
react_2.default.createElement(components_1.Viewport.Root, { activeView: activeView, classNames: 'grow plb-1' },
|
|
74
|
-
react_2.default.createElement(components_1.Viewport.Views, null,
|
|
75
|
-
react_2.default.createElement(InvitationManagerView, { id: 'showing qr', emoji: emoji },
|
|
76
|
-
react_2.default.createElement("p", { className: 'text-sm mlb-1 font-normal text-center' }, t(multiUse ? 'invite many qr label' : 'invite one qr label')),
|
|
77
|
-
react_2.default.createElement("div", { role: 'none', className: (0, react_ui_theme_1.mx)(react_ui_theme_1.descriptionText, 'is-full max-is-[14rem] relative') },
|
|
78
|
-
react_2.default.createElement(react_qr_rounded_1.QR, { rounding: 100, backgroundColor: 'transparent', color: 'currentColor', className: (0, react_ui_theme_1.mx)('is-full bs-full p-2', showAuthCode && 'invisible'), "aria-labelledby": qrLabel, errorCorrectionLevel: 'Q', cutout: true }, invitationUrl !== null && invitationUrl !== void 0 ? invitationUrl : 'never'),
|
|
79
|
-
react_2.default.createElement(components_1.Centered, null,
|
|
80
|
-
react_2.default.createElement(components_1.Emoji, { text: emoji }))),
|
|
81
|
-
react_2.default.createElement("span", { id: qrLabel, className: 'sr-only' }, t('qr label')),
|
|
82
|
-
react_2.default.createElement(react_ui_1.Clipboard.Button, { variant: 'ghost', value: invitationUrl !== null && invitationUrl !== void 0 ? invitationUrl : 'never' })),
|
|
83
|
-
react_2.default.createElement(InvitationManagerView, { id: 'showing auth code' },
|
|
84
|
-
react_2.default.createElement(components_1.Label, null, t('auth code message')),
|
|
85
|
-
react_2.default.createElement(components_1.AuthCode, { code: authCode, large: true, classNames: 'text-black dark:text-white' }),
|
|
86
|
-
react_2.default.createElement(components_1.Label, null, t('auth other device emoji message')),
|
|
87
|
-
emoji && react_2.default.createElement(components_1.Emoji, { text: emoji })),
|
|
88
|
-
react_2.default.createElement(InvitationManagerView, { id: 'showing final' }, statusValue > 0 ? (react_2.default.createElement(react_1.Check, { className: (0, react_ui_theme_1.mx)('m-1.5', (0, react_ui_theme_1.getSize)(6)) })) : (react_2.default.createElement(react_1.X, { className: (0, react_ui_theme_1.mx)('m-1.5', (0, react_ui_theme_1.getSize)(6)) }))))),
|
|
89
|
-
react_2.default.createElement(components_1.Actions, { classNames: 'mbs-4' },
|
|
90
|
-
react_2.default.createElement(components_1.Action, { disabled: !active, onClick: () => send === null || send === void 0 ? void 0 : send({ type: 'deselectInvitation' }) }, t('back label')))));
|
|
37
|
+
return (_jsxs(_Fragment, { children: [_jsx(Viewport.Root, { activeView: activeView, classNames: 'grow plb-1', children: _jsxs(Viewport.Views, { children: [_jsxs(InvitationManagerView, { id: 'showing qr', emoji: emoji, children: [_jsx("p", { className: 'text-sm mlb-1 font-normal text-center', children: t(multiUse ? 'invite many qr label' : 'invite one qr label') }), _jsxs("div", { role: 'none', className: mx(descriptionText, 'is-full max-is-[14rem] relative'), children: [_jsx(QR, { rounding: 100, backgroundColor: 'transparent', color: 'currentColor', className: mx('is-full bs-full p-2', showAuthCode && 'invisible'), "aria-labelledby": qrLabel, errorCorrectionLevel: 'Q', cutout: true, children: invitationUrl !== null && invitationUrl !== void 0 ? invitationUrl : 'never' }), _jsx(Centered, { children: _jsx(Emoji, { text: emoji }) })] }), _jsx("span", { id: qrLabel, className: 'sr-only', children: t('qr label') }), _jsx(Clipboard.Button, { variant: 'ghost', value: invitationUrl !== null && invitationUrl !== void 0 ? invitationUrl : 'never' })] }), _jsxs(InvitationManagerView, { id: 'showing auth code', children: [_jsx(Label, { children: t('auth code message') }), _jsx(AuthCode, { code: authCode, large: true, classNames: 'text-black dark:text-white' }), _jsx(Label, { children: t('auth other device emoji message') }), emoji && _jsx(Emoji, { text: emoji })] }), _jsx(InvitationManagerView, { id: 'showing final', children: statusValue > 0 ? (_jsx(Check, { className: mx('m-1.5', getSize(6)) })) : (_jsx(X, { className: mx('m-1.5', getSize(6)) })) })] }) }), _jsx(Actions, { classNames: 'mbs-4', children: _jsx(Action, { disabled: !active, onClick: () => send === null || send === void 0 ? void 0 : send({ type: 'deselectInvitation' }), children: t('back label') }) })] }));
|
|
91
38
|
};
|
|
92
|
-
exports.InvitationManager = InvitationManager;
|
|
93
39
|
//# sourceMappingURL=InvitationManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationManager.js","sourceRoot":"","sources":["../../../../src/steps/InvitationManager.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE
|
|
1
|
+
{"version":3,"file":"InvitationManager.js","sourceRoot":"","sources":["../../../../src/steps/InvitationManager.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAc,EAA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EAAC,OAAO,EAAC,KAAK,EAAE,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,OAAO,GAAI,IAC/C,EACxB,MAAC,qBAAqB,IAAC,EAAE,EAAC,mBAAmB,aAC3C,KAAC,KAAK,cAAE,CAAC,CAAC,mBAAmB,CAAC,GAAS,EACvC,KAAC,QAAQ,IAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,QAAC,UAAU,EAAC,4BAA4B,GAAG,EAC1E,KAAC,KAAK,cAAE,CAAC,CAAC,iCAAiC,CAAC,GAAS,EACpD,KAAK,IAAI,KAAC,KAAK,IAAC,IAAI,EAAE,KAAK,GAAI,IACV,EACxB,KAAC,qBAAqB,IAAC,EAAE,EAAC,eAAe,YACtC,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,CACjB,KAAC,KAAK,IAAC,SAAS,EAAE,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,GAAI,CAC9C,CAAC,CAAC,CAAC,CACF,KAAC,CAAC,IAAC,SAAS,EAAE,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,GAAI,CAC1C,GACqB,IACT,GACH,EAChB,KAAC,OAAO,IAAC,UAAU,EAAC,OAAO,YACzB,KAAC,MAAM,IAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAG,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,YAC7E,CAAC,CAAC,YAAY,CAAC,GACT,GACD,IACT,CACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepProps.js","sourceRoot":"","sources":["../../../../src/steps/StepProps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StepProps.js","sourceRoot":"","sources":["../../../../src/steps/StepProps.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE"}
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
__exportStar(require("./InvitationManager"), exports);
|
|
21
|
-
__exportStar(require("./StepProps"), exports);
|
|
22
|
-
__exportStar(require("./ConfirmReset"), exports);
|
|
4
|
+
export * from './InvitationManager';
|
|
5
|
+
export * from './StepProps';
|
|
6
|
+
export * from './ConfirmReset';
|
|
23
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/steps/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/steps/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { type Space } from '@dxos/react-client/echo';
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
@@ -7,8 +6,8 @@ declare const _default: {
|
|
|
7
6
|
export default _default;
|
|
8
7
|
export type PanelType = Space | 'identity' | 'devices' | 'join';
|
|
9
8
|
export declare const Default: {
|
|
10
|
-
render: () =>
|
|
11
|
-
decorators: import("@storybook/react
|
|
9
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
decorators: import("@storybook/react").Decorator[];
|
|
12
11
|
parameters: {
|
|
13
12
|
chromatic: {
|
|
14
13
|
disableSnapshot: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Invitations.e2e-stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Invitations.e2e-stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Invitations.e2e-stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Invitations.e2e-stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAQrB,OAAO,EAAE,KAAK,KAAK,EAA+B,MAAM,yBAAyB,CAAC;;;;AAalF,wBAEE;AAEF,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAgMhE,eAAO,MAAM,OAAO;;;;;;;;;;;CAkBnB,CAAC"}
|
|
@@ -1,167 +1,104 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
//
|
|
3
3
|
// Copyright 2023 DXOS.org
|
|
4
4
|
//
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Default = void 0;
|
|
40
|
-
require("@dxos-theme");
|
|
41
|
-
const react_1 = require("@phosphor-icons/react");
|
|
42
|
-
const react_2 = __importStar(require("react"));
|
|
43
|
-
const log_1 = require("@dxos/log");
|
|
44
|
-
const random_1 = require("@dxos/random");
|
|
45
|
-
const react_client_1 = require("@dxos/react-client");
|
|
46
|
-
const echo_1 = require("@dxos/react-client/echo");
|
|
47
|
-
const halo_1 = require("@dxos/react-client/halo");
|
|
48
|
-
const invitations_1 = require("@dxos/react-client/invitations");
|
|
49
|
-
const mesh_1 = require("@dxos/react-client/mesh");
|
|
50
|
-
const testing_1 = require("@dxos/react-client/testing");
|
|
51
|
-
const react_ui_1 = require("@dxos/react-ui");
|
|
52
|
-
const react_ui_theme_1 = require("@dxos/react-ui-theme");
|
|
53
|
-
const storybook_utils_1 = require("@dxos/storybook-utils");
|
|
54
|
-
const components_1 = require("../components");
|
|
55
|
-
const panels_1 = require("../panels");
|
|
56
|
-
const translations_1 = require("../translations");
|
|
57
|
-
exports.default = {
|
|
5
|
+
import '@dxos-theme';
|
|
6
|
+
import { Laptop, Planet, Plus, PlusCircle, SignIn, QrCode, WifiHigh, WifiSlash } from '@phosphor-icons/react';
|
|
7
|
+
import { useMemo, useState } from 'react';
|
|
8
|
+
import { log } from '@dxos/log';
|
|
9
|
+
import { faker } from '@dxos/random';
|
|
10
|
+
import { useClient } from '@dxos/react-client';
|
|
11
|
+
import { useSpaces } from '@dxos/react-client/echo';
|
|
12
|
+
import { useIdentity } from '@dxos/react-client/halo';
|
|
13
|
+
import { Invitation, InvitationEncoder } from '@dxos/react-client/invitations';
|
|
14
|
+
import { ConnectionState, useNetworkStatus } from '@dxos/react-client/mesh';
|
|
15
|
+
import { useMultiClient, withMultiClientProvider } from '@dxos/react-client/testing';
|
|
16
|
+
import { Button, ButtonGroup, Clipboard, List } from '@dxos/react-ui';
|
|
17
|
+
import { getSize, groupSurface } from '@dxos/react-ui-theme';
|
|
18
|
+
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
19
|
+
import { IdentityListItem, SpaceListItem } from '../components';
|
|
20
|
+
import { IdentityPanel, JoinPanel, SpacePanel } from '../panels';
|
|
21
|
+
import { osTranslations } from '../translations';
|
|
22
|
+
export default {
|
|
58
23
|
title: 'sdk/shell/Invitations',
|
|
59
24
|
};
|
|
60
25
|
const createInvitationUrl = (invitation) => invitation;
|
|
61
26
|
const Panel = ({ id, panel, setPanel }) => {
|
|
62
|
-
const client =
|
|
63
|
-
const spaces =
|
|
64
|
-
|
|
27
|
+
const client = useClient();
|
|
28
|
+
const spaces = useSpaces();
|
|
29
|
+
useMemo(() => {
|
|
65
30
|
if (panel && typeof panel !== 'string') {
|
|
66
31
|
window[`peer${id}CreateSpaceInvitation`] = (options) => {
|
|
67
32
|
const invitation = panel.share(options);
|
|
68
33
|
invitation.subscribe((invitation) => {
|
|
69
|
-
const invitationCode =
|
|
70
|
-
if (invitation.state ===
|
|
71
|
-
|
|
34
|
+
const invitationCode = InvitationEncoder.encode(invitation);
|
|
35
|
+
if (invitation.state === Invitation.State.CONNECTING) {
|
|
36
|
+
log.info(JSON.stringify({ invitationCode, authCode: invitation.authCode }));
|
|
72
37
|
}
|
|
73
38
|
});
|
|
74
39
|
};
|
|
75
40
|
}
|
|
76
41
|
}, [panel]);
|
|
77
42
|
if (panel && typeof panel !== 'string') {
|
|
78
|
-
return
|
|
43
|
+
return _jsx(SpacePanel, { space: panel, createInvitationUrl: createInvitationUrl });
|
|
79
44
|
}
|
|
80
45
|
switch (panel) {
|
|
81
46
|
case 'identity': {
|
|
82
|
-
return
|
|
47
|
+
return _jsx(JoinPanel, { mode: 'halo-only', onDone: () => setPanel(undefined), onExit: () => setPanel(undefined) });
|
|
83
48
|
}
|
|
84
49
|
case 'devices': {
|
|
85
|
-
return
|
|
50
|
+
return _jsx(IdentityPanel, { createInvitationUrl: createInvitationUrl, onDone: () => setPanel(undefined) });
|
|
86
51
|
}
|
|
87
52
|
case 'join': {
|
|
88
|
-
return
|
|
53
|
+
return _jsx(JoinPanel, { onDone: () => setPanel(undefined), onExit: () => setPanel(undefined) });
|
|
89
54
|
}
|
|
90
55
|
default: {
|
|
91
56
|
// TODO(wittjosiah): Tooltips make playwright (webkit) flakier.
|
|
92
|
-
const controls = (
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
react_2.default.createElement(react_ui_1.Button, { onClick: () => setPanel('join'), "data-testid": 'invitations.open-join-space' },
|
|
96
|
-
react_2.default.createElement(react_1.SignIn, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) }))));
|
|
97
|
-
const header = (react_2.default.createElement("div", { className: 'flex' },
|
|
98
|
-
"Spaces",
|
|
99
|
-
react_2.default.createElement("span", { className: 'grow' }),
|
|
100
|
-
controls));
|
|
101
|
-
return (react_2.default.createElement("div", null,
|
|
102
|
-
react_2.default.createElement("h1", null, header),
|
|
103
|
-
spaces.length > 0 ? (react_2.default.createElement(react_ui_1.List, null, spaces.map((space) => (react_2.default.createElement(components_1.SpaceListItem, { key: space.key.toHex(), space: space, onClick: () => setPanel(space) }))))) : (react_2.default.createElement("div", { className: 'text-center' }, "No spaces"))));
|
|
57
|
+
const controls = (_jsxs(ButtonGroup, { classNames: 'mbe-4', children: [_jsx(Button, { onClick: () => client.spaces.create({ name: faker.commerce.productName() }), "data-testid": 'invitations.create-space', children: _jsx(PlusCircle, { className: getSize(6) }) }), _jsx(Button, { onClick: () => setPanel('join'), "data-testid": 'invitations.open-join-space', children: _jsx(SignIn, { weight: 'fill', className: getSize(6) }) })] }));
|
|
58
|
+
const header = (_jsxs("div", { className: 'flex', children: ["Spaces", _jsx("span", { className: 'grow' }), controls] }));
|
|
59
|
+
return (_jsxs("div", { children: [_jsx("h1", { children: header }), spaces.length > 0 ? (_jsx(List, { children: spaces.map((space) => (_jsx(SpaceListItem, { space: space, onClick: () => setPanel(space) }, space.key.toHex()))) })) : (_jsx("div", { className: 'text-center', children: "No spaces" }))] }));
|
|
104
60
|
}
|
|
105
61
|
}
|
|
106
62
|
};
|
|
107
63
|
const Invitations = () => {
|
|
108
|
-
const { id } =
|
|
109
|
-
const client =
|
|
110
|
-
const networkStatus =
|
|
111
|
-
const identity =
|
|
112
|
-
const [panel, setPanel] =
|
|
113
|
-
|
|
64
|
+
const { id } = useMultiClient();
|
|
65
|
+
const client = useClient();
|
|
66
|
+
const networkStatus = useNetworkStatus().swarm;
|
|
67
|
+
const identity = useIdentity();
|
|
68
|
+
const [panel, setPanel] = useState();
|
|
69
|
+
useMemo(() => {
|
|
114
70
|
window[`peer${id}CreateHaloInvitation`] = (options) => {
|
|
115
71
|
const invitation = client.halo.share(options);
|
|
116
72
|
invitation.subscribe((invitation) => {
|
|
117
|
-
const invitationCode =
|
|
118
|
-
if (invitation.state ===
|
|
119
|
-
|
|
73
|
+
const invitationCode = InvitationEncoder.encode(invitation);
|
|
74
|
+
if (invitation.state === Invitation.State.CONNECTING) {
|
|
75
|
+
log.info(JSON.stringify({ invitationCode, authCode: invitation.authCode }));
|
|
120
76
|
}
|
|
121
77
|
});
|
|
122
78
|
};
|
|
123
79
|
}, [client]);
|
|
124
80
|
// TODO(wittjosiah): Tooltips make playwright (webkit) flakier.
|
|
125
|
-
const controls = (
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
react_2.default.createElement(react_ui_1.Button, { onClick: () => setPanel('identity'), disabled: panel === 'identity', "data-testid": 'invitations.open-join-identity' },
|
|
129
|
-
react_2.default.createElement(react_1.QrCode, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) })),
|
|
130
|
-
react_2.default.createElement(react_ui_1.Button, { onClick: () => setPanel('devices'), disabled: !identity || panel === 'devices', "data-testid": 'invitations.open-devices' },
|
|
131
|
-
react_2.default.createElement(react_1.Laptop, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) })),
|
|
132
|
-
react_2.default.createElement(react_ui_1.Button, { onClick: () => setPanel(undefined), disabled: !panel, "data-testid": 'invitations.list-spaces' },
|
|
133
|
-
react_2.default.createElement(react_1.Planet, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) })),
|
|
134
|
-
react_2.default.createElement(react_ui_1.Button, { onClick: () => client.mesh.updateConfig(networkStatus === mesh_1.ConnectionState.ONLINE ? mesh_1.ConnectionState.OFFLINE : mesh_1.ConnectionState.ONLINE), "data-testid": 'invitations.toggle-network' }, networkStatus === mesh_1.ConnectionState.ONLINE ? (react_2.default.createElement(react_1.WifiHigh, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) })) : (react_2.default.createElement(react_1.WifiSlash, { weight: 'fill', className: (0, react_ui_theme_1.getSize)(6) })))));
|
|
135
|
-
const header = (react_2.default.createElement("div", { className: 'flex', "data-testid": 'invitations.identity-header' },
|
|
136
|
-
"Identity",
|
|
137
|
-
react_2.default.createElement("span", { className: 'grow' }),
|
|
138
|
-
controls));
|
|
139
|
-
return (react_2.default.createElement("div", { className: 'flex flex-col m-4 flex-1 min-w-0', "data-testid": `peer-${id}` },
|
|
140
|
-
react_2.default.createElement("div", { className: `${react_ui_theme_1.groupSurface} rounded p-2 mbe-2` },
|
|
141
|
-
react_2.default.createElement("h1", null, header),
|
|
142
|
-
identity ? (react_2.default.createElement(react_ui_1.List, null,
|
|
143
|
-
react_2.default.createElement(components_1.IdentityListItem, { identity: identity, presence: networkStatus }))) : (react_2.default.createElement("div", { className: 'text-center' }, "No identity"))),
|
|
144
|
-
identity || panel ? (react_2.default.createElement("div", { className: `${react_ui_theme_1.groupSurface} rounded p-2` },
|
|
145
|
-
react_2.default.createElement(Panel, { id: id, panel: panel, setPanel: setPanel }))) : null));
|
|
81
|
+
const controls = (_jsxs(ButtonGroup, { classNames: 'mbe-4', children: [_jsx(Button, { onClick: () => client.halo.createIdentity({ displayName: faker.person.firstName() }), disabled: Boolean(identity), "data-testid": 'invitations.create-identity', children: _jsx(Plus, { className: getSize(6) }) }), _jsx(Button, { onClick: () => setPanel('identity'), disabled: panel === 'identity', "data-testid": 'invitations.open-join-identity', children: _jsx(QrCode, { weight: 'fill', className: getSize(6) }) }), _jsx(Button, { onClick: () => setPanel('devices'), disabled: !identity || panel === 'devices', "data-testid": 'invitations.open-devices', children: _jsx(Laptop, { weight: 'fill', className: getSize(6) }) }), _jsx(Button, { onClick: () => setPanel(undefined), disabled: !panel, "data-testid": 'invitations.list-spaces', children: _jsx(Planet, { weight: 'fill', className: getSize(6) }) }), _jsx(Button, { onClick: () => client.mesh.updateConfig(networkStatus === ConnectionState.ONLINE ? ConnectionState.OFFLINE : ConnectionState.ONLINE), "data-testid": 'invitations.toggle-network', children: networkStatus === ConnectionState.ONLINE ? (_jsx(WifiHigh, { weight: 'fill', className: getSize(6) })) : (_jsx(WifiSlash, { weight: 'fill', className: getSize(6) })) })] }));
|
|
82
|
+
const header = (_jsxs("div", { className: 'flex', "data-testid": 'invitations.identity-header', children: ["Identity", _jsx("span", { className: 'grow' }), controls] }));
|
|
83
|
+
return (_jsxs("div", { className: 'flex flex-col m-4 flex-1 min-w-0', "data-testid": `peer-${id}`, children: [_jsxs("div", { className: `${groupSurface} rounded p-2 mbe-2`, children: [_jsx("h1", { children: header }), identity ? (_jsx(List, { children: _jsx(IdentityListItem, { identity: identity, presence: networkStatus }) })) : (_jsx("div", { className: 'text-center', children: "No identity" }))] }), identity || panel ? (_jsx("div", { className: `${groupSurface} rounded p-2`, children: _jsx(Panel, { id: id, panel: panel, setPanel: setPanel }) })) : null] }));
|
|
146
84
|
};
|
|
147
85
|
// TODO(wittjosiah): This story fails to start in Safari/Webkit.
|
|
148
86
|
// The issue appears to be related to dynamic imports during client initialization.
|
|
149
87
|
// This does not seem to be a problem in other browsers nor in Safari in the app.
|
|
150
|
-
|
|
88
|
+
export const Default = {
|
|
151
89
|
render: () => {
|
|
152
90
|
return (
|
|
153
91
|
// TODO(wittjosiah): Include Clipboard.Provider in layout decorator.
|
|
154
|
-
|
|
155
|
-
react_2.default.createElement(Invitations, null)));
|
|
92
|
+
_jsx(Clipboard.Provider, { children: _jsx(Invitations, {}) }));
|
|
156
93
|
},
|
|
157
94
|
decorators: [
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
95
|
+
withMultiClientProvider({ numClients: 3 }),
|
|
96
|
+
withLayout({ tooltips: true, classNames: 'grid grid-cols-3' }),
|
|
97
|
+
withTheme,
|
|
161
98
|
],
|
|
162
99
|
parameters: {
|
|
163
100
|
chromatic: { disableSnapshot: true },
|
|
164
|
-
translations: [
|
|
101
|
+
translations: [osTranslations],
|
|
165
102
|
},
|
|
166
103
|
};
|
|
167
104
|
//# sourceMappingURL=Invitations.e2e-stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Invitations.e2e-stories.js","sourceRoot":"","sources":["../../../../src/stories/Invitations.e2e-stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE
|
|
1
|
+
{"version":3,"file":"Invitations.e2e-stories.js","sourceRoot":"","sources":["../../../../src/stories/Invitations.e2e-stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE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AC,EAAE,CAAC;QAC1C,UAAU,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,kBAAkB,EAAE,CAAC;QAC9D,SAAS;KACV;IACD,UAAU,EAAE;QACV,SAAS,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE;QACpC,YAAY,EAAE,CAAC,cAAc,CAAC;KAC/B;CACF,CAAC"}
|
|
@@ -1,22 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
__exportStar(require("./panelStyles"), exports);
|
|
21
|
-
__exportStar(require("./invitationStatusStyles"), exports);
|
|
4
|
+
export * from './panelStyles';
|
|
5
|
+
export * from './invitationStatusStyles';
|
|
22
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/styles/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/styles/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC"}
|
|
@@ -1,41 +1,35 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
? exports.errorTextColor
|
|
37
|
-
: status === invitations_1.Invitation.State.CANCELLED || status === invitations_1.Invitation.State.TIMEOUT
|
|
38
|
-
? exports.cancelledTextColor
|
|
39
|
-
: exports.successTextColor;
|
|
40
|
-
exports.resolvedTextColor = resolvedTextColor;
|
|
4
|
+
import { Invitation } from '@dxos/react-client/invitations';
|
|
5
|
+
export const inactiveBgColor = 'bg-neutral-100 dark:bg-neutral-600';
|
|
6
|
+
export const activeBgColor = 'bg-primary-500 dark:bg-primary-400';
|
|
7
|
+
export const successBgColor = 'bg-success-500 dark:bg-success-400';
|
|
8
|
+
export const errorBgColor = 'bg-error-500 dark:bg-error-400';
|
|
9
|
+
export const cancelledBgColor = 'bg-warning-500 dark:bg-warning-400';
|
|
10
|
+
export const inactiveTextColor = 'text-neutral-100 dark:text-neutral-600';
|
|
11
|
+
export const activeTextColor = 'text-primary-400 dark:text-primary-500';
|
|
12
|
+
export const successTextColor = 'text-success-400 dark:text-success-500';
|
|
13
|
+
export const errorTextColor = 'text-error-400 dark:text-error-500';
|
|
14
|
+
export const cancelledTextColor = 'text-warning-400 dark:text-warning-500';
|
|
15
|
+
export const inactiveStrokeColor = 'stroke-neutral-100 dark:stroke-neutral-700';
|
|
16
|
+
export const activeStrokeColor = 'stroke-primary-400 dark:stroke-primary-150';
|
|
17
|
+
export const successStrokeColor = 'stroke-success-300 dark:stroke-primary-400';
|
|
18
|
+
export const errorStrokeColor = 'stroke-error-300 dark:stroke-error-500';
|
|
19
|
+
export const cancelledStrokeColor = 'stroke-warning-300 dark:stroke-warning-500';
|
|
20
|
+
export const resolvedStrokeColor = (status) => status === Invitation.State.ERROR
|
|
21
|
+
? errorStrokeColor
|
|
22
|
+
: status === Invitation.State.CANCELLED || status === Invitation.State.TIMEOUT
|
|
23
|
+
? cancelledStrokeColor
|
|
24
|
+
: successStrokeColor;
|
|
25
|
+
export const resolvedBgColor = (status) => status === Invitation.State.ERROR
|
|
26
|
+
? errorBgColor
|
|
27
|
+
: status === Invitation.State.CANCELLED || status === Invitation.State.TIMEOUT
|
|
28
|
+
? cancelledBgColor
|
|
29
|
+
: successBgColor;
|
|
30
|
+
export const resolvedTextColor = (status) => status === Invitation.State.ERROR
|
|
31
|
+
? errorTextColor
|
|
32
|
+
: status === Invitation.State.CANCELLED || status === Invitation.State.TIMEOUT
|
|
33
|
+
? cancelledTextColor
|
|
34
|
+
: successTextColor;
|
|
41
35
|
//# sourceMappingURL=invitationStatusStyles.js.map
|