@dxos/shell 0.7.5-main.499c70c → 0.7.5-main.5ae2ba8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/{shell.mjs → shell.js} +19391 -23085
- 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/dist/types/tsconfig.tsbuildinfo +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,10 +1,9 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { type SpacePanelImplProps } from './SpacePanelProps';
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component: (props: SpacePanelImplProps) =>
|
|
7
|
-
decorators: import("@storybook/react
|
|
5
|
+
component: (props: SpacePanelImplProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
decorators: import("@storybook/react").Decorator[];
|
|
8
7
|
parameters: {
|
|
9
8
|
chromatic: {
|
|
10
9
|
disableSnapshot: boolean;
|
|
@@ -12,20 +11,20 @@ declare const _default: {
|
|
|
12
11
|
};
|
|
13
12
|
};
|
|
14
13
|
export default _default;
|
|
15
|
-
export declare const SpaceManager: () =>
|
|
16
|
-
export declare const SpaceManagerWithInvites: () =>
|
|
17
|
-
export declare const SpaceManagerWithMoreInvites: () =>
|
|
18
|
-
export declare const SpaceManagerWithEvenMoreInvites: () =>
|
|
19
|
-
export declare const SpaceManagerWithMember: () =>
|
|
20
|
-
export declare const SpaceManagerWithMembers: () =>
|
|
21
|
-
export declare const SpaceManagerWithMoreMembers: () =>
|
|
22
|
-
export declare const SpaceInvitationManagerInit: () =>
|
|
23
|
-
export declare const SpaceInvitationManagerConnecting: () =>
|
|
24
|
-
export declare const SpaceInvitationManagerConnected: () =>
|
|
25
|
-
export declare const SpaceInvitationManagerReadyForAuthentication: () =>
|
|
26
|
-
export declare const SpaceInvitationManagerAuthenticating: () =>
|
|
27
|
-
export declare const SpaceInvitationManagerSuccess: () =>
|
|
28
|
-
export declare const SpaceInvitationManagerError: () =>
|
|
29
|
-
export declare const SpaceInvitationManagerTimeout: () =>
|
|
30
|
-
export declare const SpaceInvitationManagerCancelled: () =>
|
|
14
|
+
export declare const SpaceManager: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const SpaceManagerWithInvites: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const SpaceManagerWithMoreInvites: () => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const SpaceManagerWithEvenMoreInvites: () => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const SpaceManagerWithMember: () => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const SpaceManagerWithMembers: () => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const SpaceManagerWithMoreMembers: () => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const SpaceInvitationManagerInit: () => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const SpaceInvitationManagerConnecting: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const SpaceInvitationManagerConnected: () => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const SpaceInvitationManagerReadyForAuthentication: () => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const SpaceInvitationManagerAuthenticating: () => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const SpaceInvitationManagerSuccess: () => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const SpaceInvitationManagerError: () => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const SpaceInvitationManagerTimeout: () => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const SpaceInvitationManagerCancelled: () => import("react/jsx-runtime").JSX.Element;
|
|
31
30
|
//# sourceMappingURL=SpacePanel.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpacePanel.stories.d.ts","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"SpacePanel.stories.d.ts","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAUrB,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;;;AAe7D,wBAKE;AAEF,eAAO,MAAM,YAAY,+CAkBxB,CAAC;AAEF,eAAO,MAAM,uBAAuB,+CAkBnC,CAAC;AAEF,eAAO,MAAM,2BAA2B,+CAsBvC,CAAC;AAEF,eAAO,MAAM,+BAA+B,+CA4D3C,CAAC;AAEF,eAAO,MAAM,sBAAsB,+CAgClC,CAAC;AAEF,eAAO,MAAM,uBAAuB,+CAmCnC,CAAC;AAEF,eAAO,MAAM,2BAA2B,+CA6DvC,CAAC;AAuBF,eAAO,MAAM,0BAA0B,+CAAgF,CAAC;AAExH,eAAO,MAAM,gCAAgC,+CACkC,CAAC;AAEhF,eAAO,MAAM,+BAA+B,+CACkC,CAAC;AAE/E,eAAO,MAAM,4CAA4C,+CACwD,CAAC;AAElH,eAAO,MAAM,oCAAoC,+CACkC,CAAC;AAEpF,eAAO,MAAM,6BAA6B,+CAA0E,CAAC;AAErH,eAAO,MAAM,2BAA2B,+CAAwE,CAAC;AAEjH,eAAO,MAAM,6BAA6B,+CAA0E,CAAC;AAErH,eAAO,MAAM,+BAA+B,+CACyB,CAAC"}
|
|
@@ -1,188 +1,163 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as _jsx } 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
|
-
const SpacePanel_1 = require("./SpacePanel");
|
|
17
|
-
const steps_1 = require("./steps");
|
|
18
|
-
const components_1 = require("../../components");
|
|
19
|
-
const StorybookDialog_1 = require("../../components/StorybookDialog");
|
|
20
|
-
const steps_2 = require("../../steps");
|
|
21
|
-
const fixtures_1 = require("../../testing/fixtures");
|
|
5
|
+
import '@dxos-theme';
|
|
6
|
+
import { IdentityDid, PublicKey } from '@dxos/keys';
|
|
7
|
+
import { HaloSpaceMember, SpaceMember } from '@dxos/react-client/echo';
|
|
8
|
+
import { Invitation } from '@dxos/react-client/invitations';
|
|
9
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
10
|
+
import { SpacePanelImpl } from './SpacePanel';
|
|
11
|
+
import { SpaceManagerImpl } from './steps';
|
|
12
|
+
import { InvitationListItemImpl, SpaceMemberListImpl, InvitationList } from '../../components';
|
|
13
|
+
import { StorybookDialog } from '../../components/StorybookDialog';
|
|
14
|
+
import { InvitationManager } from '../../steps';
|
|
15
|
+
import { inviteWithState } from '../../testing/fixtures';
|
|
22
16
|
const noOpProps = {
|
|
23
17
|
titleId: 'storybookSpacePanel__title',
|
|
24
18
|
send: () => { },
|
|
25
19
|
createInvitationUrl: (code) => code,
|
|
26
20
|
activeView: 'space manager',
|
|
27
|
-
space: { key:
|
|
21
|
+
space: { key: PublicKey.random(), properties: { name: 'Example space' } },
|
|
28
22
|
};
|
|
29
|
-
|
|
23
|
+
export default {
|
|
30
24
|
title: 'sdk/shell/SpacePanel',
|
|
31
|
-
component:
|
|
32
|
-
decorators: [
|
|
25
|
+
component: SpacePanelImpl,
|
|
26
|
+
decorators: [withTheme],
|
|
33
27
|
parameters: { chromatic: { disableSnapshot: false } },
|
|
34
28
|
};
|
|
35
|
-
const SpaceManager = () => {
|
|
36
|
-
return (
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} })));
|
|
29
|
+
export const SpaceManager = () => {
|
|
30
|
+
return (_jsx(StorybookDialog, { inOverlayLayout: true, children: _jsx(SpacePanelImpl, { ...noOpProps, activeView: 'space manager', SpaceManager: (props) => {
|
|
31
|
+
return (_jsx(SpaceManagerImpl, { ...props, invitations: [], SpaceMemberList: (props) => _jsx(SpaceMemberListImpl, { ...props, members: [] }) }));
|
|
32
|
+
} }) }));
|
|
40
33
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return (react_1.default.createElement(steps_1.SpaceManagerImpl, { ...props, invitations: [(0, fixtures_1.inviteWithState)(invitations_1.Invitation.State.INIT)], SpaceMemberList: (props) => react_1.default.createElement(components_1.SpaceMemberListImpl, { ...props, members: [] }) }));
|
|
46
|
-
} })));
|
|
34
|
+
export const SpaceManagerWithInvites = () => {
|
|
35
|
+
return (_jsx(StorybookDialog, { inOverlayLayout: true, children: _jsx(SpacePanelImpl, { ...noOpProps, activeView: 'space manager', SpaceManager: (props) => {
|
|
36
|
+
return (_jsx(SpaceManagerImpl, { ...props, invitations: [inviteWithState(Invitation.State.INIT)], SpaceMemberList: (props) => _jsx(SpaceMemberListImpl, { ...props, members: [] }) }));
|
|
37
|
+
} }) }));
|
|
47
38
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
], SpaceMemberList: (props) => react_1.default.createElement(components_1.SpaceMemberListImpl, { ...props, members: [] }) }));
|
|
57
|
-
} })));
|
|
39
|
+
export const SpaceManagerWithMoreInvites = () => {
|
|
40
|
+
return (_jsx(StorybookDialog, { inOverlayLayout: true, children: _jsx(SpacePanelImpl, { ...noOpProps, activeView: 'space manager', SpaceManager: (props) => {
|
|
41
|
+
return (_jsx(SpaceManagerImpl, { ...props, invitations: [
|
|
42
|
+
inviteWithState(Invitation.State.INIT),
|
|
43
|
+
inviteWithState(Invitation.State.CONNECTING),
|
|
44
|
+
inviteWithState(Invitation.State.CONNECTED),
|
|
45
|
+
], SpaceMemberList: (props) => _jsx(SpaceMemberListImpl, { ...props, members: [] }) }));
|
|
46
|
+
} }) }));
|
|
58
47
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
(0, fixtures_1.inviteWithState)(invitations_1.Invitation.State.CANCELLED),
|
|
71
|
-
], InvitationList: (props) => (react_1.default.createElement(components_1.InvitationList, { ...props, InvitationListItem: (props) => {
|
|
48
|
+
export const SpaceManagerWithEvenMoreInvites = () => {
|
|
49
|
+
return (_jsx(StorybookDialog, { inOverlayLayout: true, children: _jsx(SpacePanelImpl, { ...noOpProps, activeView: 'space manager', SpaceManager: (props) => {
|
|
50
|
+
return (_jsx(SpaceManagerImpl, { ...props, invitations: [
|
|
51
|
+
inviteWithState(Invitation.State.INIT),
|
|
52
|
+
inviteWithState(Invitation.State.READY_FOR_AUTHENTICATION),
|
|
53
|
+
inviteWithState(Invitation.State.AUTHENTICATING),
|
|
54
|
+
inviteWithState(Invitation.State.SUCCESS),
|
|
55
|
+
inviteWithState(Invitation.State.ERROR),
|
|
56
|
+
inviteWithState(Invitation.State.TIMEOUT),
|
|
57
|
+
inviteWithState(Invitation.State.CANCELLED),
|
|
58
|
+
], InvitationList: (props) => (_jsx(InvitationList, { ...props, InvitationListItem: (props) => {
|
|
72
59
|
const invitation = props.invitation.get();
|
|
73
|
-
const { authMethod, invitationId: id, state, identityKey =
|
|
74
|
-
return (
|
|
60
|
+
const { authMethod, invitationId: id, state, identityKey = PublicKey.random(), swarmKey, spaceKey = PublicKey.random(), target = null, } = invitation;
|
|
61
|
+
return (_jsx(InvitationListItemImpl, { ...props, createInvitationUrl: (code) => code, invitationStatus: {
|
|
75
62
|
status: state,
|
|
76
63
|
authMethod,
|
|
77
64
|
invitationCode: id,
|
|
78
|
-
authCode: state ===
|
|
65
|
+
authCode: state === Invitation.State.READY_FOR_AUTHENTICATION ? '123414' : undefined,
|
|
79
66
|
id,
|
|
80
67
|
result: { identityKey, swarmKey, spaceKey, target },
|
|
81
68
|
cancel: () => { },
|
|
82
69
|
authenticate: async (authCode) => { },
|
|
83
70
|
connect: () => { },
|
|
84
71
|
} }));
|
|
85
|
-
} })), SpaceMemberList: (props) =>
|
|
86
|
-
} })));
|
|
72
|
+
} })), SpaceMemberList: (props) => _jsx(SpaceMemberListImpl, { ...props, members: [] }) }));
|
|
73
|
+
} }) }));
|
|
87
74
|
};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
react_1.default.createElement(SpacePanel_1.SpacePanelImpl, { ...noOpProps, activeView: 'space manager', SpaceManager: (props) => {
|
|
92
|
-
return (react_1.default.createElement(steps_1.SpaceManagerImpl, { ...props, invitations: [], SpaceMemberList: (props) => (react_1.default.createElement(components_1.SpaceMemberListImpl, { ...props, members: [
|
|
75
|
+
export const SpaceManagerWithMember = () => {
|
|
76
|
+
return (_jsx(StorybookDialog, { inOverlayLayout: true, children: _jsx(SpacePanelImpl, { ...noOpProps, activeView: 'space manager', SpaceManager: (props) => {
|
|
77
|
+
return (_jsx(SpaceManagerImpl, { ...props, invitations: [], SpaceMemberList: (props) => (_jsx(SpaceMemberListImpl, { ...props, members: [
|
|
93
78
|
{
|
|
94
|
-
presence:
|
|
95
|
-
role:
|
|
79
|
+
presence: SpaceMember.PresenceState.ONLINE,
|
|
80
|
+
role: HaloSpaceMember.Role.ADMIN,
|
|
96
81
|
identity: {
|
|
97
|
-
|
|
82
|
+
did: IdentityDid.random(),
|
|
83
|
+
identityKey: PublicKey.random(),
|
|
98
84
|
},
|
|
99
85
|
},
|
|
100
86
|
] })) }));
|
|
101
|
-
} })));
|
|
87
|
+
} }) }));
|
|
102
88
|
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
react_1.default.createElement(SpacePanel_1.SpacePanelImpl, { ...noOpProps, activeView: 'space manager', SpaceManager: (props) => {
|
|
107
|
-
return (react_1.default.createElement(steps_1.SpaceManagerImpl, { ...props, invitations: [], SpaceMemberList: (props) => (react_1.default.createElement(components_1.SpaceMemberListImpl, { ...props, members: [
|
|
89
|
+
export const SpaceManagerWithMembers = () => {
|
|
90
|
+
return (_jsx(StorybookDialog, { inOverlayLayout: true, children: _jsx(SpacePanelImpl, { ...noOpProps, activeView: 'space manager', SpaceManager: (props) => {
|
|
91
|
+
return (_jsx(SpaceManagerImpl, { ...props, invitations: [], SpaceMemberList: (props) => (_jsx(SpaceMemberListImpl, { ...props, members: [
|
|
108
92
|
{
|
|
109
|
-
presence:
|
|
110
|
-
role:
|
|
93
|
+
presence: SpaceMember.PresenceState.ONLINE,
|
|
94
|
+
role: HaloSpaceMember.Role.ADMIN,
|
|
111
95
|
identity: {
|
|
112
|
-
|
|
96
|
+
did: IdentityDid.random(),
|
|
97
|
+
identityKey: PublicKey.random(),
|
|
113
98
|
profile: {
|
|
114
99
|
displayName: 'John Doe',
|
|
115
100
|
},
|
|
116
101
|
},
|
|
117
102
|
},
|
|
118
103
|
] })) }));
|
|
119
|
-
} })));
|
|
104
|
+
} }) }));
|
|
120
105
|
};
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
(0, fixtures_1.inviteWithState)(invitations_1.Invitation.State.AUTHENTICATING),
|
|
129
|
-
], SpaceMemberList: (props) => (react_1.default.createElement(components_1.SpaceMemberListImpl, { ...props, members: [
|
|
106
|
+
export const SpaceManagerWithMoreMembers = () => {
|
|
107
|
+
return (_jsx(StorybookDialog, { inOverlayLayout: true, children: _jsx(SpacePanelImpl, { ...noOpProps, activeView: 'space manager', SpaceManager: (props) => {
|
|
108
|
+
return (_jsx(SpaceManagerImpl, { ...props, invitations: [
|
|
109
|
+
inviteWithState(Invitation.State.SUCCESS),
|
|
110
|
+
inviteWithState(Invitation.State.READY_FOR_AUTHENTICATION),
|
|
111
|
+
inviteWithState(Invitation.State.AUTHENTICATING),
|
|
112
|
+
], SpaceMemberList: (props) => (_jsx(SpaceMemberListImpl, { ...props, members: [
|
|
130
113
|
{
|
|
131
|
-
presence:
|
|
132
|
-
role:
|
|
114
|
+
presence: SpaceMember.PresenceState.ONLINE,
|
|
115
|
+
role: HaloSpaceMember.Role.ADMIN,
|
|
133
116
|
identity: {
|
|
134
|
-
|
|
117
|
+
did: IdentityDid.random(),
|
|
118
|
+
identityKey: PublicKey.random(),
|
|
135
119
|
profile: {
|
|
136
120
|
displayName: 'John Doe',
|
|
137
121
|
},
|
|
138
122
|
},
|
|
139
123
|
},
|
|
140
124
|
{
|
|
141
|
-
presence:
|
|
142
|
-
role:
|
|
125
|
+
presence: SpaceMember.PresenceState.OFFLINE,
|
|
126
|
+
role: HaloSpaceMember.Role.ADMIN,
|
|
143
127
|
identity: {
|
|
144
|
-
|
|
128
|
+
did: IdentityDid.random(),
|
|
129
|
+
identityKey: PublicKey.random(),
|
|
145
130
|
profile: {
|
|
146
131
|
displayName: 'Alice Wong',
|
|
147
132
|
},
|
|
148
133
|
},
|
|
149
134
|
},
|
|
150
135
|
{
|
|
151
|
-
presence:
|
|
152
|
-
role:
|
|
136
|
+
presence: SpaceMember.PresenceState.OFFLINE,
|
|
137
|
+
role: HaloSpaceMember.Role.ADMIN,
|
|
153
138
|
identity: {
|
|
154
|
-
|
|
139
|
+
did: IdentityDid.random(),
|
|
140
|
+
identityKey: PublicKey.random(),
|
|
155
141
|
profile: {
|
|
156
142
|
displayName: 'Steel Nickels',
|
|
157
143
|
},
|
|
158
144
|
},
|
|
159
145
|
},
|
|
160
146
|
] })) }));
|
|
161
|
-
} })));
|
|
147
|
+
} }) }));
|
|
162
148
|
};
|
|
163
|
-
exports.SpaceManagerWithMoreMembers = SpaceManagerWithMoreMembers;
|
|
164
149
|
const SpaceInvitationManagerState = (extraprops) => {
|
|
165
|
-
return (
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}, InvitationManager: (props) => react_1.default.createElement(steps_2.InvitationManager, { ...props, ...extraprops }) })));
|
|
150
|
+
return (_jsx(StorybookDialog, { inOverlayLayout: true, children: _jsx(SpacePanelImpl, { ...noOpProps, activeView: 'space invitation manager', SpaceManager: (props) => {
|
|
151
|
+
return (_jsx(SpaceManagerImpl, { ...props, invitations: [], SpaceMemberList: (props) => _jsx(SpaceMemberListImpl, { ...props, members: [] }) }));
|
|
152
|
+
}, InvitationManager: (props) => _jsx(InvitationManager, { ...props, ...extraprops }) }) }));
|
|
169
153
|
};
|
|
170
|
-
const SpaceInvitationManagerInit = () => SpaceInvitationManagerState({ status:
|
|
171
|
-
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
const
|
|
177
|
-
|
|
178
|
-
const
|
|
179
|
-
exports.SpaceInvitationManagerAuthenticating = SpaceInvitationManagerAuthenticating;
|
|
180
|
-
const SpaceInvitationManagerSuccess = () => SpaceInvitationManagerState({ status: invitations_1.Invitation.State.SUCCESS });
|
|
181
|
-
exports.SpaceInvitationManagerSuccess = SpaceInvitationManagerSuccess;
|
|
182
|
-
const SpaceInvitationManagerError = () => SpaceInvitationManagerState({ status: invitations_1.Invitation.State.ERROR });
|
|
183
|
-
exports.SpaceInvitationManagerError = SpaceInvitationManagerError;
|
|
184
|
-
const SpaceInvitationManagerTimeout = () => SpaceInvitationManagerState({ status: invitations_1.Invitation.State.TIMEOUT });
|
|
185
|
-
exports.SpaceInvitationManagerTimeout = SpaceInvitationManagerTimeout;
|
|
186
|
-
const SpaceInvitationManagerCancelled = () => SpaceInvitationManagerState({ status: invitations_1.Invitation.State.CANCELLED });
|
|
187
|
-
exports.SpaceInvitationManagerCancelled = SpaceInvitationManagerCancelled;
|
|
154
|
+
export const SpaceInvitationManagerInit = () => SpaceInvitationManagerState({ status: Invitation.State.INIT, id: '0' });
|
|
155
|
+
export const SpaceInvitationManagerConnecting = () => SpaceInvitationManagerState({ status: Invitation.State.CONNECTING, id: '1' });
|
|
156
|
+
export const SpaceInvitationManagerConnected = () => SpaceInvitationManagerState({ status: Invitation.State.CONNECTED, id: '2' });
|
|
157
|
+
export const SpaceInvitationManagerReadyForAuthentication = () => SpaceInvitationManagerState({ status: Invitation.State.READY_FOR_AUTHENTICATION, authCode: '123451', id: '3' });
|
|
158
|
+
export const SpaceInvitationManagerAuthenticating = () => SpaceInvitationManagerState({ status: Invitation.State.AUTHENTICATING, id: '4' });
|
|
159
|
+
export const SpaceInvitationManagerSuccess = () => SpaceInvitationManagerState({ status: Invitation.State.SUCCESS });
|
|
160
|
+
export const SpaceInvitationManagerError = () => SpaceInvitationManagerState({ status: Invitation.State.ERROR });
|
|
161
|
+
export const SpaceInvitationManagerTimeout = () => SpaceInvitationManagerState({ status: Invitation.State.TIMEOUT });
|
|
162
|
+
export const SpaceInvitationManagerCancelled = () => SpaceInvitationManagerState({ status: Invitation.State.CANCELLED });
|
|
188
163
|
//# sourceMappingURL=SpacePanel.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpacePanel.stories.js","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE
|
|
1
|
+
{"version":3,"file":"SpacePanel.stories.js","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,aAAa,CAAC;AAIrB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC/F,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAA+B,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,SAAS,GAAwB;IACrC,OAAO,EAAE,4BAA4B;IACrC,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC;IACd,mBAAmB,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI;IAC3C,UAAU,EAAE,eAAe;IAC3B,KAAK,EA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AAG,EAAE,CAAC,CAAC;AAE/E,MAAM,CAAC,MAAM,4CAA4C,GAAG,GAAG,EAAE,CAC/D,2BAA2B,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,wBAAwB,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;AAElH,MAAM,CAAC,MAAM,oCAAoC,GAAG,GAAG,EAAE,CACvD,2BAA2B,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,cAAc,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;AAEpF,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,EAAE,CAAC,2BAA2B,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;AAErH,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,EAAE,CAAC,2BAA2B,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;AAEjH,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,EAAE,CAAC,2BAA2B,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;AAErH,MAAM,CAAC,MAAM,+BAA+B,GAAG,GAAG,EAAE,CAClD,2BAA2B,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpacePanelProps.js","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanelProps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SpacePanelProps.js","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanelProps.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE"}
|
|
@@ -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("./SpacePanel"), exports);
|
|
21
|
-
__exportStar(require("./SpacePanelProps"), exports);
|
|
4
|
+
export * from './SpacePanel';
|
|
5
|
+
export * from './SpacePanelProps';
|
|
22
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
const log_1 = require("@dxos/log");
|
|
10
|
-
const spaceMachine = (0, xstate_1.createMachine)({
|
|
4
|
+
import { useMachine } from '@xstate/react';
|
|
5
|
+
import { assign, createMachine } from 'xstate';
|
|
6
|
+
import { log } from '@dxos/log';
|
|
7
|
+
const spaceMachine = createMachine({
|
|
11
8
|
id: 'space',
|
|
12
9
|
predictableActionArguments: true,
|
|
13
10
|
context: {
|
|
@@ -24,23 +21,22 @@ const spaceMachine = (0, xstate_1.createMachine)({
|
|
|
24
21
|
},
|
|
25
22
|
}, {
|
|
26
23
|
actions: {
|
|
27
|
-
setInvitation:
|
|
24
|
+
setInvitation: assign({
|
|
28
25
|
invitation: (context, event) => { var _a; return (_a = event === null || event === void 0 ? void 0 : event.invitation) !== null && _a !== void 0 ? _a : null; },
|
|
29
26
|
}),
|
|
30
|
-
unsetInvitation:
|
|
27
|
+
unsetInvitation: assign({
|
|
31
28
|
invitation: () => undefined,
|
|
32
29
|
}),
|
|
33
30
|
log: (context, event) => {
|
|
34
|
-
|
|
31
|
+
log('[transition]', {
|
|
35
32
|
event,
|
|
36
33
|
context,
|
|
37
34
|
});
|
|
38
35
|
},
|
|
39
36
|
},
|
|
40
37
|
});
|
|
41
|
-
exports.spaceMachine = spaceMachine;
|
|
42
38
|
const useSpaceMachine = (options) => {
|
|
43
|
-
return
|
|
39
|
+
return useMachine(spaceMachine, { ...options, context: { ...options === null || options === void 0 ? void 0 : options.context } });
|
|
44
40
|
};
|
|
45
|
-
|
|
41
|
+
export { spaceMachine, useSpaceMachine };
|
|
46
42
|
//# sourceMappingURL=spaceMachine.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spaceMachine.js","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/spaceMachine.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"spaceMachine.js","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/spaceMachine.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,UAAU,EAA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E,CAAC,CAAC;AACpF,CAAC,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import { type CancellableInvitationObservable } from '@dxos/react-client/invitations';
|
|
3
3
|
import { type ActionMenuItem, type InvitationListProps, type SpaceMemberListProps } from '../../../components';
|
|
4
4
|
import { type SpacePanelStepProps } from '../SpacePanelProps';
|
|
@@ -11,6 +11,6 @@ export type SpaceManagerImplProps = SpacePanelStepProps & {
|
|
|
11
11
|
InvitationList?: FC<InvitationListProps>;
|
|
12
12
|
};
|
|
13
13
|
export type SpaceManagerProps = SpaceManagerImplProps & {};
|
|
14
|
-
export declare const SpaceManager: (props: SpaceManagerProps) =>
|
|
15
|
-
export declare const SpaceManagerImpl: (props: SpaceManagerImplProps) =>
|
|
14
|
+
export declare const SpaceManager: (props: SpaceManagerProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const SpaceManagerImpl: (props: SpaceManagerImplProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
//# sourceMappingURL=SpaceManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpaceManager.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/SpacePanel/steps/SpaceManager.tsx"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"SpaceManager.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/SpacePanel/steps/SpaceManager.tsx"],"names":[],"mappings":"AAKA,OAAc,EAAiB,KAAK,EAAE,EAA8C,MAAM,OAAO,CAAC;AAKlG,OAAO,EAAE,KAAK,+BAA+B,EAAiC,MAAM,gCAAgC,CAAC;AAIrH,OAAO,EAEL,KAAK,cAAc,EAGnB,KAAK,mBAAmB,EAExB,KAAK,oBAAoB,EAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,GAAG;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,+BAA+B,EAAE,CAAC;IAChD,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC/C,eAAe,CAAC,EAAE,EAAE,CAAC,oBAAoB,CAAC,CAAC;IAC3C,cAAc,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC;CAC1C,CAAC;AAYF,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,GAAG,EAAE,CAAC;AAE3D,eAAO,MAAM,YAAY,UAAW,iBAAiB,4CAiDpD,CAAC;AAIF,eAAO,MAAM,gBAAgB,UAAW,qBAAqB,4CAsE5D,CAAC"}
|