@dxos/shell 0.7.5-main.9d2a38b → 0.7.5-main.b19bfc8
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} +20855 -21879
- 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 +552 -802
- package/dist/lib/browser/react.mjs.map +4 -4
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/react.cjs +652 -902
- 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 +552 -802
- 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 +4 -1
- package/dist/types/src/translations/locales/en-US.d.ts.map +1 -1
- package/dist/types/src/translations/locales/en-US.js +6 -5
- 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 +48 -31
- 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 +7 -1
- 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,46 +1,11 @@
|
|
|
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
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.InvitationInput = void 0;
|
|
40
|
-
const react_1 = __importStar(require("react"));
|
|
41
|
-
const log_1 = require("@dxos/log");
|
|
42
|
-
const react_ui_1 = require("@dxos/react-ui");
|
|
43
|
-
const components_1 = require("../../../components");
|
|
5
|
+
import { useState, useEffect, cloneElement } from 'react';
|
|
6
|
+
import { log } from '@dxos/log';
|
|
7
|
+
import { useTranslation } from '@dxos/react-ui';
|
|
8
|
+
import { Actions, StepHeading, Action, Input } from '../../../components';
|
|
44
9
|
const invitationCodeFromUrl = (text) => {
|
|
45
10
|
var _a;
|
|
46
11
|
try {
|
|
@@ -49,16 +14,16 @@ const invitationCodeFromUrl = (text) => {
|
|
|
49
14
|
return invitation !== null && invitation !== void 0 ? invitation : text;
|
|
50
15
|
}
|
|
51
16
|
catch (err) {
|
|
52
|
-
|
|
17
|
+
log.catch(err);
|
|
53
18
|
return text;
|
|
54
19
|
}
|
|
55
20
|
};
|
|
56
|
-
const InvitationInput = (props) => {
|
|
21
|
+
export const InvitationInput = (props) => {
|
|
57
22
|
const { Kind, active, send, unredeemedCode, onExit, exitActionParent, onDone, doneActionParent, succeededKeys } = props;
|
|
58
23
|
const disabled = !active;
|
|
59
|
-
const { t } =
|
|
60
|
-
const [inputValue, setInputValue] =
|
|
61
|
-
|
|
24
|
+
const { t } = useTranslation('os');
|
|
25
|
+
const [inputValue, setInputValue] = useState(unredeemedCode !== null && unredeemedCode !== void 0 ? unredeemedCode : '');
|
|
26
|
+
useEffect(() => {
|
|
62
27
|
unredeemedCode && setInputValue(unredeemedCode !== null && unredeemedCode !== void 0 ? unredeemedCode : '');
|
|
63
28
|
}, [unredeemedCode]);
|
|
64
29
|
const handleNext = () => {
|
|
@@ -71,19 +36,13 @@ const InvitationInput = (props) => {
|
|
|
71
36
|
...(Kind === 'Space' && { succeededKeys }),
|
|
72
37
|
});
|
|
73
38
|
};
|
|
74
|
-
const exitAction = (
|
|
75
|
-
return (
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
? (0, react_1.cloneElement)(exitActionParent, {}, exitAction)
|
|
83
|
-
: doneActionParent
|
|
84
|
-
? (0, react_1.cloneElement)(doneActionParent, {}, exitAction)
|
|
85
|
-
: exitAction,
|
|
86
|
-
react_1.default.createElement(components_1.Action, { variant: 'primary', disabled: disabled || inputValue.trim().length === 0, onClick: handleNext, "data-testid": `${Kind.toLowerCase()}-invitation-input-continue` }, t('continue label')))));
|
|
39
|
+
const exitAction = (_jsx(Action, { variant: 'ghost', disabled: disabled, ...(onExit ? { onClick: () => onExit() } : { onClick: () => onDone === null || onDone === void 0 ? void 0 : onDone(null) }), "data-testid": 'join-exit', children: t('cancel label') }));
|
|
40
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { role: 'none', className: 'grow flex flex-col justify-center', children: _jsx(Input, { label: _jsx(StepHeading, { children: t('invitation input label') }), placeholder: t('invitation input placeholder'), disabled: disabled, value: inputValue, onChange: ({ target: { value } }) => setInputValue(value), "data-autofocus": `inputting${Kind}InvitationCode`, "data-testid": `${Kind.toLowerCase()}-invitation-input`, onKeyUp: ({ key }) => key === 'Enter' && handleNext() }) }), _jsxs(Actions, { children: [Kind === 'Halo'
|
|
41
|
+
? null
|
|
42
|
+
: exitActionParent
|
|
43
|
+
? cloneElement(exitActionParent, {}, exitAction)
|
|
44
|
+
: doneActionParent
|
|
45
|
+
? cloneElement(doneActionParent, {}, exitAction)
|
|
46
|
+
: exitAction, _jsx(Action, { variant: 'primary', disabled: disabled || inputValue.trim().length === 0, onClick: handleNext, "data-testid": `${Kind.toLowerCase()}-invitation-input-continue`, children: t('continue label') })] })] }));
|
|
87
47
|
};
|
|
88
|
-
exports.InvitationInput = InvitationInput;
|
|
89
48
|
//# sourceMappingURL=InvitationInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationInput.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationInput.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE
|
|
1
|
+
{"version":3,"file":"InvitationInput.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationInput.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAA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E,GACrD,GACE,EACN,MAAC,OAAO,eAEL,IAAI,KAAK,MAAM;wBACd,CAAC,CAAC,IAAI;wBACN,CAAC,CAAC,gBAAgB;4BAChB,CAAC,CAAC,YAAY,CAAC,gBAAgB,EAAE,EAAE,EAAE,UAAU,CAAC;4BAChD,CAAC,CAAC,gBAAgB;gCAChB,CAAC,CAAC,YAAY,CAAC,gBAAgB,EAAE,EAAE,EAAE,UAAU,CAAC;gCAChD,CAAC,CAAC,UAAU,EAClB,KAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,QAAQ,EAAE,QAAQ,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EACpD,OAAO,EAAE,UAAU,iBACN,GAAG,IAAI,CAAC,WAAW,EAAE,4BAA4B,YAE7D,CAAC,CAAC,gBAAgB,CAAC,GACb,IACD,IACT,CACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type Invitation } from '@dxos/react-client/invitations';
|
|
3
2
|
import { type FailReason } from '../../../types';
|
|
4
3
|
import { type JoinStepProps } from '../JoinPanelProps';
|
|
@@ -8,5 +7,5 @@ export interface InvitationRescuerProps extends JoinStepProps {
|
|
|
8
7
|
onInvitationCancel?: () => Promise<void> | undefined;
|
|
9
8
|
failReason?: FailReason | null;
|
|
10
9
|
}
|
|
11
|
-
export declare const InvitationRescuer: (props: InvitationRescuerProps) =>
|
|
10
|
+
export declare const InvitationRescuer: (props: InvitationRescuerProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
//# sourceMappingURL=InvitationRescuer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationRescuer.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationRescuer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InvitationRescuer.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationRescuer.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAKjE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IAC3D,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IACrD,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAChC;AAwDD,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,4CA0B9D,CAAC"}
|
|
@@ -1,49 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.InvitationRescuer = void 0;
|
|
10
|
-
const react_1 = __importDefault(require("react"));
|
|
11
|
-
const react_ui_1 = require("@dxos/react-ui");
|
|
12
|
-
const react_ui_theme_1 = require("@dxos/react-ui-theme");
|
|
13
|
-
const components_1 = require("../../../components");
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation } from '@dxos/react-ui';
|
|
3
|
+
import { descriptionText } from '@dxos/react-ui-theme';
|
|
4
|
+
import { Action, Actions, StepHeading } from '../../../components';
|
|
14
5
|
const InvitationActions = ({
|
|
15
6
|
// `invitationState` does report correct state, but here we evaluate whether `failReason` is a better source of truth
|
|
16
7
|
// for the UI in particular.
|
|
17
8
|
invitationState, onInvitationCancel, active, send, Kind, failReason, }) => {
|
|
18
|
-
const { t } =
|
|
9
|
+
const { t } = useTranslation('os');
|
|
19
10
|
if (failReason) {
|
|
20
|
-
return (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
: 'error status label')),
|
|
26
|
-
react_1.default.createElement("div", { role: 'none', className: 'grow' }),
|
|
27
|
-
react_1.default.createElement(components_1.Actions, null,
|
|
28
|
-
react_1.default.createElement(components_1.Action, { disabled: !active, onClick: () => send({ type: `reset${Kind}Invitation` }), "data-testid": 'invitation-rescuer-reset' }, t('reset label')))));
|
|
11
|
+
return (_jsxs(_Fragment, { children: [_jsx(StepHeading, { className: descriptionText, children: t(failReason === 'timeout'
|
|
12
|
+
? 'timeout status label'
|
|
13
|
+
: failReason === 'cancelled'
|
|
14
|
+
? 'cancelled status label'
|
|
15
|
+
: 'error status label') }), _jsx("div", { role: 'none', className: 'grow' }), _jsx(Actions, { children: _jsx(Action, { disabled: !active, onClick: () => send({ type: `reset${Kind}Invitation` }), "data-testid": 'invitation-rescuer-reset', children: t('reset label') }) })] }));
|
|
29
16
|
}
|
|
30
17
|
else {
|
|
31
|
-
return (
|
|
32
|
-
react_1.default.createElement(components_1.StepHeading, { className: react_ui_theme_1.descriptionText }, t('connecting status label')),
|
|
33
|
-
react_1.default.createElement("div", { role: 'none', className: 'grow' }),
|
|
34
|
-
react_1.default.createElement(components_1.Actions, null,
|
|
35
|
-
react_1.default.createElement(components_1.Action, { disabled: true, classNames: 'order-2', "data-testid": 'next' }, t('next label')),
|
|
36
|
-
react_1.default.createElement(components_1.Action, { disabled: !active, onClick: onInvitationCancel, "data-testid": 'invitation-rescuer-cancel' }, t('cancel label')))));
|
|
18
|
+
return (_jsxs(_Fragment, { children: [_jsx(StepHeading, { className: descriptionText, children: t('connecting status label') }), _jsx("div", { role: 'none', className: 'grow' }), _jsxs(Actions, { children: [_jsx(Action, { disabled: true, classNames: 'order-2', "data-testid": 'next', children: t('next label') }), _jsx(Action, { disabled: !active, onClick: onInvitationCancel, "data-testid": 'invitation-rescuer-cancel', children: t('cancel label') })] })] }));
|
|
37
19
|
}
|
|
38
20
|
};
|
|
39
|
-
const InvitationRescuer = (props) => {
|
|
21
|
+
export const InvitationRescuer = (props) => {
|
|
40
22
|
const { Kind, invitationState, active, send } = props;
|
|
41
|
-
const { t } =
|
|
42
|
-
return (
|
|
43
|
-
react_1.default.createElement("div", { role: 'none', className: 'grow flex flex-col justify-center' },
|
|
44
|
-
react_1.default.createElement(components_1.StepHeading, { className: react_ui_theme_1.descriptionText }, "There was a problem joining the space")),
|
|
45
|
-
react_1.default.createElement(components_1.Actions, null,
|
|
46
|
-
react_1.default.createElement(components_1.Action, { disabled: !active, "data-testid": 'invitation-rescuer-blank-reset', onClick: () => send({ type: `reset${Kind}Invitation` }) }, t('reset label'))))) : (react_1.default.createElement(InvitationActions, { ...props }))));
|
|
23
|
+
const { t } = useTranslation('os');
|
|
24
|
+
return (_jsx(_Fragment, { children: typeof invitationState === 'undefined' ? (_jsxs(_Fragment, { children: [_jsx("div", { role: 'none', className: 'grow flex flex-col justify-center', children: _jsx(StepHeading, { className: descriptionText, children: "There was a problem joining the space" }) }), _jsx(Actions, { children: _jsx(Action, { disabled: !active, "data-testid": 'invitation-rescuer-blank-reset', onClick: () => send({ type: `reset${Kind}Invitation` }), children: t('reset label') }) })] })) : (_jsx(InvitationActions, { ...props })) }));
|
|
47
25
|
};
|
|
48
|
-
exports.InvitationRescuer = InvitationRescuer;
|
|
49
26
|
//# sourceMappingURL=InvitationRescuer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationRescuer.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationRescuer.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"InvitationRescuer.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationRescuer.tsx"],"names":[],"mappings":";AAOA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Star = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
__exportStar(require("./AdditionMethodChooser"), exports);
|
|
21
|
-
__exportStar(require("./IdentityAdded"), exports);
|
|
22
|
-
__exportStar(require("./IdentityInput"), exports);
|
|
23
|
-
__exportStar(require("./InvitationAccepted"), exports);
|
|
24
|
-
__exportStar(require("./InvitationInput"), exports);
|
|
25
|
-
__exportStar(require("./InvitationRescuer"), exports);
|
|
26
|
-
__exportStar(require("./InvitationAuthenticator"), exports);
|
|
4
|
+
export * from './AdditionMethodChooser';
|
|
5
|
+
export * from './IdentityAdded';
|
|
6
|
+
export * from './IdentityInput';
|
|
7
|
+
export * from './InvitationAccepted';
|
|
8
|
+
export * from './InvitationInput';
|
|
9
|
+
export * from './InvitationRescuer';
|
|
10
|
+
export * from './InvitationAuthenticator';
|
|
27
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
-
import
|
|
2
|
+
import { type FC } from 'react';
|
|
3
3
|
export declare const Default: {
|
|
4
|
-
(props: any):
|
|
4
|
+
(props: any): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
9
|
declare const _default: {
|
|
10
10
|
title: string;
|
|
11
|
-
decorators: import("@storybook/react
|
|
11
|
+
decorators: import("@storybook/react").Decorator[];
|
|
12
12
|
component: ({ components }: {
|
|
13
13
|
components: FC[];
|
|
14
|
-
}) =>
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
parameters: {
|
|
16
16
|
chromatic: {
|
|
17
17
|
disableSnapshot: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panels.stories.d.ts","sourceRoot":"","sources":["../../../../src/panels/Panels.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,
|
|
1
|
+
{"version":3,"file":"Panels.stories.d.ts","sourceRoot":"","sources":["../../../../src/panels/Panels.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAiCvC,eAAO,MAAM,OAAO;YAAW,GAAG;;;;CAWjC,CAAC;;;;gCAxBgC;QAAE,UAAU,EAAE,EAAE,EAAE,CAAA;KAAE;;;;;;;;;;AA4BtD,wBAKE"}
|
|
@@ -1,51 +1,12 @@
|
|
|
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
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
-
};
|
|
41
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.Default = void 0;
|
|
43
|
-
require("@dxos-theme");
|
|
44
|
-
const react_1 = __importDefault(require("react"));
|
|
45
|
-
const storybook_utils_1 = require("@dxos/storybook-utils");
|
|
46
|
-
const IdentityPanels = __importStar(require("./IdentityPanel/IdentityPanel.stories"));
|
|
47
|
-
const SpacePanels = __importStar(require("./SpacePanel/SpacePanel.stories"));
|
|
48
|
-
const translations_1 = require("../translations");
|
|
5
|
+
import '@dxos-theme';
|
|
6
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
7
|
+
import * as IdentityPanels from './IdentityPanel/IdentityPanel.stories';
|
|
8
|
+
import * as SpacePanels from './SpacePanel/SpacePanel.stories';
|
|
9
|
+
import { osTranslations } from '../translations';
|
|
49
10
|
const getComponentNames = (module) => {
|
|
50
11
|
var _a;
|
|
51
12
|
return (_a = module === null || module === void 0 ? void 0 : module.__namedExportsOrder) !== null && _a !== void 0 ? _a : Object.getOwnPropertyNames(module).filter((name) => !(name === 'default' || name.startsWith('__')));
|
|
@@ -57,22 +18,16 @@ const camelCaseToSpacedName = (camelCase) => {
|
|
|
57
18
|
return camelCase.replace(/([a-z0-9])([A-Z])/g, '$1 $2').replace(/([A-Z])([A-Z][a-z])/g, '$1 $2');
|
|
58
19
|
};
|
|
59
20
|
const StoryRow = ({ components }) => {
|
|
60
|
-
return (
|
|
61
|
-
react_1.default.createElement("div", { className: 'bg-zinc-500 text-zinc-200 p-3 text-sm text-center' }, camelCaseToSpacedName(Comp.name)),
|
|
62
|
-
react_1.default.createElement(Comp, null))))));
|
|
21
|
+
return (_jsx("tr", { style: { whiteSpace: 'nowrap' }, children: components === null || components === void 0 ? void 0 : components.map((Comp) => (_jsxs("td", { children: [_jsx("div", { className: 'bg-zinc-500 text-zinc-200 p-3 text-sm text-center', children: camelCaseToSpacedName(Comp.name) }), _jsx(Comp, {})] }, Comp.name))) }));
|
|
63
22
|
};
|
|
64
|
-
const Default = (props) => {
|
|
65
|
-
return (
|
|
66
|
-
react_1.default.createElement("tbody", null,
|
|
67
|
-
react_1.default.createElement(StoryRow, { components: getComponents(IdentityPanels) }),
|
|
68
|
-
react_1.default.createElement(StoryRow, { components: getComponents(SpacePanels) }))));
|
|
23
|
+
export const Default = (props) => {
|
|
24
|
+
return (_jsx("table", { className: 'bg-body', children: _jsxs("tbody", { children: [_jsx(StoryRow, { components: getComponents(IdentityPanels) }), _jsx(StoryRow, { components: getComponents(SpacePanels) })] }) }));
|
|
69
25
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
exports.default = {
|
|
26
|
+
Default.parameters = { layout: 'fullscreen' };
|
|
27
|
+
export default {
|
|
73
28
|
title: 'sdk/shell/All',
|
|
74
|
-
decorators: [
|
|
29
|
+
decorators: [withTheme],
|
|
75
30
|
component: StoryRow,
|
|
76
|
-
parameters: { chromatic: { disableSnapshot: false }, translations: [
|
|
31
|
+
parameters: { chromatic: { disableSnapshot: false }, translations: [osTranslations] },
|
|
77
32
|
};
|
|
78
33
|
//# sourceMappingURL=Panels.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panels.stories.js","sourceRoot":"","sources":["../../../../src/panels/Panels.stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE
|
|
1
|
+
{"version":3,"file":"Panels.stories.js","sourceRoot":"","sources":["../../../../src/panels/Panels.stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,aAAa,CAAC;AAIrB,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,KAAK,cAAc,MAAM,uCAAuC,CAAC;AACxE,OAAO,KAAK,WAAW,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,iBAAiB,GAAG,CAAC,MAAW,EAAY,EAAE;;IAClD,OAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,mBAAmB,mCAC3B,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;CAAA,CAAC;AAEtG,MAAM,aAAa,GAAG,CAAC,MAAW,EAAQ,EAAE;IAC1C,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,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
|
|
3
|
-
export declare const SpacePanelImpl: (props: SpacePanelImplProps) =>
|
|
4
|
-
export declare const SpacePanel: ({ titleId: propsTitleId, createInvitationUrl, ...props }: SpacePanelProps) =>
|
|
2
|
+
export declare const SpacePanelImpl: (props: SpacePanelImplProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const SpacePanel: ({ titleId: propsTitleId, createInvitationUrl, ...props }: SpacePanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
//# sourceMappingURL=SpacePanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpacePanel.d.ts","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SpacePanel.d.ts","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.tsx"],"names":[],"mappings":"AAYA,OAAO,EAA+B,KAAK,mBAAmB,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAwBhH,eAAO,MAAM,cAAc,UAAW,mBAAmB,4CA+BxD,CAAC;AAgBF,eAAO,MAAM,UAAU,6DAIpB,eAAe,4CAsCjB,CAAC"}
|
|
@@ -1,86 +1,40 @@
|
|
|
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
|
-
|
|
14
|
-
|
|
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.SpacePanel = exports.SpacePanelImpl = void 0;
|
|
40
|
-
const react_1 = require("@phosphor-icons/react");
|
|
41
|
-
const react_2 = __importStar(require("react"));
|
|
42
|
-
const log_1 = require("@dxos/log");
|
|
43
|
-
const invitations_1 = require("@dxos/react-client/invitations");
|
|
44
|
-
const react_ui_1 = require("@dxos/react-ui");
|
|
45
|
-
const spaceMachine_1 = require("./spaceMachine");
|
|
46
|
-
const steps_1 = require("./steps");
|
|
47
|
-
const components_1 = require("../../components");
|
|
48
|
-
const steps_2 = require("../../steps");
|
|
49
|
-
const styles_1 = require("../../styles");
|
|
5
|
+
import { Planet } from '@phosphor-icons/react';
|
|
6
|
+
import { useEffect, useMemo } from 'react';
|
|
7
|
+
import { log } from '@dxos/log';
|
|
8
|
+
import { useInvitationStatus } from '@dxos/react-client/invitations';
|
|
9
|
+
import { useId, useTranslation } from '@dxos/react-ui';
|
|
10
|
+
import { useSpaceMachine } from './spaceMachine';
|
|
11
|
+
import { SpaceManager } from './steps';
|
|
12
|
+
import { Heading, CloseButton, Viewport } from '../../components';
|
|
13
|
+
import { InvitationManager } from '../../steps';
|
|
14
|
+
import { stepStyles } from '../../styles';
|
|
50
15
|
const SpacePanelHeading = ({ titleId, space, onDone }) => {
|
|
51
|
-
const { t } =
|
|
16
|
+
const { t } = useTranslation('os');
|
|
52
17
|
const name = space.properties.name;
|
|
53
|
-
return (
|
|
54
|
-
react_2.default.createElement("div", { role: 'none', className: 'flex gap-4 items-center justify-center mlb-4' },
|
|
55
|
-
react_2.default.createElement(react_1.Planet, { size: 32, weight: 'light' }),
|
|
56
|
-
react_2.default.createElement("div", { className: 'block text-start font-light text-xl' }, name !== null && name !== void 0 ? name : space.key.truncate()))));
|
|
18
|
+
return (_jsx(Heading, { titleId: titleId, title: t('space panel heading'), corner: _jsx(CloseButton, { "data-testid": 'identity-panel-done', onDone: onDone }), children: _jsxs("div", { role: 'none', className: 'flex gap-4 items-center justify-center mlb-4', children: [_jsx(Planet, { size: 32, weight: 'light' }), _jsx("div", { className: 'block text-start font-light text-xl', children: name !== null && name !== void 0 ? name : space.key.truncate() })] }) }));
|
|
57
19
|
};
|
|
58
|
-
const SpacePanelImpl = (props) => {
|
|
59
|
-
const { titleId, activeView, space, hideHeading, target, SpaceManager: SpaceManagerComponent =
|
|
60
|
-
return (
|
|
61
|
-
!hideHeading && react_2.default.createElement(SpacePanelHeading, { ...rest, titleId, space }),
|
|
62
|
-
react_2.default.createElement(components_1.Viewport.Root, { activeView: activeView },
|
|
63
|
-
react_2.default.createElement(components_1.Viewport.Views, null,
|
|
64
|
-
react_2.default.createElement(components_1.Viewport.View, { id: 'space manager', classNames: styles_1.stepStyles },
|
|
65
|
-
react_2.default.createElement(SpaceManagerComponent, { active: activeView === 'space manager', space: space, target: target, ...rest })),
|
|
66
|
-
react_2.default.createElement(components_1.Viewport.View, { id: 'space invitation manager', classNames: styles_1.stepStyles },
|
|
67
|
-
react_2.default.createElement(InvitationManagerComponent, { active: activeView === 'space invitation manager', ...rest, invitationUrl: props.invitationUrl }))))));
|
|
20
|
+
export const SpacePanelImpl = (props) => {
|
|
21
|
+
const { titleId, activeView, space, hideHeading, target, SpaceManager: SpaceManagerComponent = SpaceManager, InvitationManager: InvitationManagerComponent = InvitationManager, ...rest } = props;
|
|
22
|
+
return (_jsxs(_Fragment, { children: [!hideHeading && _jsx(SpacePanelHeading, { ...rest, titleId, space }), _jsx(Viewport.Root, { activeView: activeView, children: _jsxs(Viewport.Views, { children: [_jsx(Viewport.View, { id: 'space manager', classNames: stepStyles, children: _jsx(SpaceManagerComponent, { active: activeView === 'space manager', space: space, target: target, ...rest }) }), _jsx(Viewport.View, { id: 'space invitation manager', classNames: stepStyles, children: _jsx(InvitationManagerComponent, { active: activeView === 'space invitation manager', ...rest, invitationUrl: props.invitationUrl }) })] }) })] }));
|
|
68
23
|
};
|
|
69
|
-
exports.SpacePanelImpl = SpacePanelImpl;
|
|
70
24
|
const SpacePanelWithInvitationImpl = ({ invitation, ...props }) => {
|
|
71
|
-
const invitationStatus =
|
|
72
|
-
return (
|
|
25
|
+
const invitationStatus = useInvitationStatus(invitation);
|
|
26
|
+
return (_jsx(SpacePanelImpl, { ...props, ...invitationStatus, invitationUrl: props.createInvitationUrl(invitationStatus.invitationCode) }));
|
|
73
27
|
};
|
|
74
|
-
const SpacePanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => code, ...props }) => {
|
|
75
|
-
const titleId =
|
|
76
|
-
const [spaceState, spaceSend, spaceService] =
|
|
77
|
-
|
|
28
|
+
export const SpacePanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => code, ...props }) => {
|
|
29
|
+
const titleId = useId('spacePanel__heading', propsTitleId);
|
|
30
|
+
const [spaceState, spaceSend, spaceService] = useSpaceMachine({ context: { space: props.space } });
|
|
31
|
+
useEffect(() => {
|
|
78
32
|
const subscription = spaceService.subscribe((state) => {
|
|
79
|
-
|
|
33
|
+
log('[state]', state);
|
|
80
34
|
});
|
|
81
35
|
return subscription.unsubscribe;
|
|
82
36
|
}, [spaceService]);
|
|
83
|
-
const activeView =
|
|
37
|
+
const activeView = useMemo(() => {
|
|
84
38
|
switch (true) {
|
|
85
39
|
case spaceState.matches('managingSpace'):
|
|
86
40
|
return 'space manager';
|
|
@@ -99,7 +53,6 @@ const SpacePanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => cod
|
|
|
99
53
|
};
|
|
100
54
|
return spaceState.context.invitation ? (
|
|
101
55
|
// TODO(wittjosiah): Unused? Remove?
|
|
102
|
-
|
|
56
|
+
_jsx(SpacePanelWithInvitationImpl, { ...implProps, invitation: spaceState.context.invitation })) : (_jsx(SpacePanelImpl, { ...implProps }));
|
|
103
57
|
};
|
|
104
|
-
exports.SpacePanel = SpacePanel;
|
|
105
58
|
//# sourceMappingURL=SpacePanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpacePanel.js","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE
|
|
1
|
+
{"version":3,"file":"SpacePanel.js","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGvD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;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