@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpaceListItem.js","sourceRoot":"","sources":["../../../../src/components/SpaceListItem.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE
|
|
1
|
+
{"version":3,"file":"SpaceListItem.js","sourceRoot":"","sources":["../../../../src/components/SpaceListItem.tsx"],"names":[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
|
|
3
3
|
inOverlayLayout?: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare const StorybookDialog: (props: StorybookDialogProps) =>
|
|
5
|
+
export declare const StorybookDialog: (props: StorybookDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=StorybookDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorybookDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/StorybookDialog.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"StorybookDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/StorybookDialog.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAItD,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG;IACrD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAGF,eAAO,MAAM,eAAe,UAAW,oBAAoB,4CAiB1D,CAAC"}
|
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// Copyright 2023 DXOS.org
|
|
4
|
-
//
|
|
5
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.StorybookDialog = void 0;
|
|
10
|
-
const react_1 = __importDefault(require("react"));
|
|
11
|
-
const react_ui_1 = require("@dxos/react-ui");
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Clipboard, ElevationProvider, Tooltip, useThemeContext } from '@dxos/react-ui';
|
|
12
3
|
// TODO(burdon): Move out of components.
|
|
13
|
-
const StorybookDialog = (props) => {
|
|
4
|
+
export const StorybookDialog = (props) => {
|
|
14
5
|
const { inOverlayLayout = false } = props;
|
|
15
|
-
const { tx } =
|
|
16
|
-
return (
|
|
17
|
-
react_1.default.createElement(react_ui_1.ElevationProvider, { elevation: 'dialog' },
|
|
18
|
-
react_1.default.createElement(react_ui_1.Clipboard.Provider, null,
|
|
19
|
-
react_1.default.createElement("div", { role: 'group', className: tx('dialog.content', 'dialog', { inOverlayLayout }, 'p-1', inOverlayLayout ? 'm-4' : '') }, props.children)))));
|
|
6
|
+
const { tx } = useThemeContext();
|
|
7
|
+
return (_jsx(Tooltip.Provider, { children: _jsx(ElevationProvider, { elevation: 'dialog', children: _jsx(Clipboard.Provider, { children: _jsx("div", { role: 'group', className: tx('dialog.content', 'dialog', { inOverlayLayout }, 'p-1', inOverlayLayout ? 'm-4' : ''), children: props.children }) }) }) }));
|
|
20
8
|
};
|
|
21
|
-
exports.StorybookDialog = StorybookDialog;
|
|
22
9
|
//# sourceMappingURL=StorybookDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorybookDialog.js","sourceRoot":"","sources":["../../../../src/components/StorybookDialog.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"StorybookDialog.js","sourceRoot":"","sources":["../../../../src/components/StorybookDialog.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAMxF,wCAAwC;AACxC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAA2B,EAAE,EAAE;IAC7D,MAAM,EAAE,eAAe,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IAC1C,MAAM,EAAE,EAAE,EAAE,GAAG,eAAe,EAAE,CAAC;IACjC,OAAO,CACL,KAAC,OAAO,CAAC,QAAQ,cACf,KAAC,iBAAiB,IAAC,SAAS,EAAC,QAAQ,YACnC,KAAC,SAAS,CAAC,QAAQ,cACjB,cACE,IAAI,EAAC,OAAO,EACZ,SAAS,EAAE,EAAE,CAAC,gBAAgB,EAAE,QAAQ,EAAE,EAAE,eAAe,EAAE,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,YAElG,KAAK,CAAC,QAAQ,GACX,GACa,GACH,GACH,CACpB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -25,11 +25,11 @@ type ViewportViewProps = ThemedClassName<Omit<ComponentPropsWithRef<'div'>, 'id'
|
|
|
25
25
|
};
|
|
26
26
|
export declare const Viewport: {
|
|
27
27
|
Root: {
|
|
28
|
-
({ __viewportScope, classNames, children, defaultActiveView, activeView: propsActiveView, focusManaged, onActiveViewChange, ...props }: ViewportScopedProps<ViewportRootProps>):
|
|
28
|
+
({ __viewportScope, classNames, children, defaultActiveView, activeView: propsActiveView, focusManaged, onActiveViewChange, ...props }: ViewportScopedProps<ViewportRootProps>): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
displayName: string;
|
|
30
30
|
};
|
|
31
31
|
Views: {
|
|
32
|
-
({ classNames, children, ...props }: ViewportViewsProps):
|
|
32
|
+
({ classNames, children, ...props }: ViewportViewsProps): import("react/jsx-runtime").JSX.Element;
|
|
33
33
|
displayName: string;
|
|
34
34
|
};
|
|
35
35
|
View: React.ForwardRefExoticComponent<Omit<ViewportScopedProps<ViewportViewProps>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,83 +1,46 @@
|
|
|
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
|
-
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.createViewportScope = exports.useViewportContext = exports.Viewport = void 0;
|
|
40
|
-
const react_tabster_1 = require("@fluentui/react-tabster");
|
|
41
|
-
const react_context_1 = require("@radix-ui/react-context");
|
|
42
|
-
const react_use_controllable_state_1 = require("@radix-ui/react-use-controllable-state");
|
|
43
|
-
const react_1 = __importStar(require("react"));
|
|
44
|
-
const react_ui_1 = require("@dxos/react-ui");
|
|
45
|
-
const react_ui_theme_1 = require("@dxos/react-ui-theme");
|
|
5
|
+
import { useFocusFinders } from '@fluentui/react-tabster';
|
|
6
|
+
import { createContextScope } from '@radix-ui/react-context';
|
|
7
|
+
import { useControllableState } from '@radix-ui/react-use-controllable-state';
|
|
8
|
+
import { forwardRef, useEffect, } from 'react';
|
|
9
|
+
import { useForwardedRef } from '@dxos/react-ui';
|
|
10
|
+
import { mx } from '@dxos/react-ui-theme';
|
|
46
11
|
const VIEWPORT_NAME = 'Viewport';
|
|
47
12
|
const VIEWS_NAME = 'ViewportViews';
|
|
48
13
|
const VIEW_NAME = 'ViewportView';
|
|
49
|
-
const [createViewportContext, createViewportScope] =
|
|
50
|
-
exports.createViewportScope = createViewportScope;
|
|
14
|
+
const [createViewportContext, createViewportScope] = createContextScope(VIEWPORT_NAME, []);
|
|
51
15
|
const [ViewportProvider, useViewportContext] = createViewportContext(VIEWPORT_NAME);
|
|
52
|
-
exports.useViewportContext = useViewportContext;
|
|
53
16
|
const ViewportRoot = ({ __viewportScope, classNames, children, defaultActiveView, activeView: propsActiveView, focusManaged = false, onActiveViewChange, ...props }) => {
|
|
54
|
-
const [activeView = 'never', setActiveView] =
|
|
17
|
+
const [activeView = 'never', setActiveView] = useControllableState({
|
|
55
18
|
prop: propsActiveView,
|
|
56
19
|
defaultProp: defaultActiveView,
|
|
57
20
|
onChange: onActiveViewChange,
|
|
58
21
|
});
|
|
59
|
-
return (
|
|
60
|
-
react_1.default.createElement("div", { role: 'region', "aria-live": 'polite', ...props, className: (0, react_ui_theme_1.mx)('is-full overflow-hidden', classNames) }, children)));
|
|
22
|
+
return (_jsx(ViewportProvider, { focusManaged: focusManaged, activeView: activeView, setActiveView: setActiveView, scope: __viewportScope, children: _jsx("div", { role: 'region', "aria-live": 'polite', ...props, className: mx('is-full overflow-hidden', classNames), children: children }) }));
|
|
61
23
|
};
|
|
62
24
|
ViewportRoot.displayName = VIEWPORT_NAME;
|
|
63
25
|
const ViewportViews = ({ classNames, children, ...props }) => {
|
|
64
26
|
const size = { inlineSize: `${Math.ceil(children.length) * 100}%` };
|
|
65
|
-
return (
|
|
27
|
+
return (_jsx("div", { role: 'none', style: size, ...props, className: mx('flex', classNames), children: children }));
|
|
66
28
|
};
|
|
67
29
|
ViewportViews.displayName = VIEWS_NAME;
|
|
68
|
-
const ViewportView =
|
|
30
|
+
const ViewportView = forwardRef(({ __viewportScope, classNames, children, id, ...props }, forwardedRef) => {
|
|
69
31
|
const { activeView, focusManaged } = useViewportContext(VIEW_NAME, __viewportScope);
|
|
70
32
|
const isActive = id === activeView;
|
|
71
|
-
const ref =
|
|
72
|
-
const { findFirstFocusable } =
|
|
73
|
-
|
|
33
|
+
const ref = useForwardedRef(forwardedRef);
|
|
34
|
+
const { findFirstFocusable } = useFocusFinders();
|
|
35
|
+
useEffect(() => {
|
|
74
36
|
var _a;
|
|
75
37
|
if (!focusManaged && isActive && document.body.hasAttribute('data-is-keyboard') && ref.current) {
|
|
76
38
|
(_a = findFirstFocusable(ref.current)) === null || _a === void 0 ? void 0 : _a.focus();
|
|
77
39
|
}
|
|
78
40
|
}, [focusManaged, ref.current, isActive]);
|
|
79
|
-
return (
|
|
41
|
+
return (_jsx("section", { ...props, ...(!isActive && { 'aria-hidden': true }), className: mx('min-is-0 flex-1 flex flex-col', isActive ? 'order-2' : 'order-4 invisible', classNames), ref: ref, children: children }));
|
|
80
42
|
});
|
|
81
43
|
ViewportView.displayName = VIEW_NAME;
|
|
82
|
-
|
|
44
|
+
export const Viewport = { Root: ViewportRoot, Views: ViewportViews, View: ViewportView };
|
|
45
|
+
export { useViewportContext, createViewportScope };
|
|
83
46
|
//# sourceMappingURL=Viewport.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Viewport.js","sourceRoot":"","sources":["../../../../../src/components/Viewport/Viewport.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE
|
|
1
|
+
{"version":3,"file":"Viewport.js","sourceRoot":"","sources":["../../../../../src/components/Viewport/Viewport.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAc,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAc,EAGZ,UAAU,EAGV,SAAS,GACV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAwB,eA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ACtG,GAAG,EAAE,GAAG,YAEP,QAAQ,GACD,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,SAAS,CAAC;AAErC,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
type StorybookViewportProps = {};
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component: (props: StorybookViewportProps) =>
|
|
7
|
-
decorators: import("@storybook/react
|
|
5
|
+
component: (props: StorybookViewportProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
decorators: import("@storybook/react").Decorator[];
|
|
8
7
|
parameters: {
|
|
9
8
|
chromatic: {
|
|
10
9
|
disableSnapshot: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Viewport.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Viewport/Viewport.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Viewport.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Viewport/Viewport.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAUrB,KAAK,sBAAsB,GAAG,EAAE,CAAC;;;uBA4BC,sBAAsB;;;;;;;;AAcxD,wBAKE;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
|
|
@@ -1,51 +1,26 @@
|
|
|
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
|
-
require("@dxos-theme");
|
|
11
|
-
const react_1 = __importDefault(require("react"));
|
|
12
|
-
const react_ui_1 = require("@dxos/react-ui");
|
|
13
|
-
const storybook_utils_1 = require("@dxos/storybook-utils");
|
|
14
|
-
const Viewport_1 = require("./Viewport");
|
|
15
|
-
const Panel_1 = require("../Panel");
|
|
5
|
+
import '@dxos-theme';
|
|
6
|
+
import { AlertDialog } from '@dxos/react-ui';
|
|
7
|
+
import { withTheme } from '@dxos/storybook-utils';
|
|
8
|
+
import { useViewportContext, Viewport } from './Viewport';
|
|
9
|
+
import { Action } from '../Panel';
|
|
16
10
|
const Views = ({ __viewportScope }) => {
|
|
17
|
-
const { setActiveView } =
|
|
18
|
-
return (
|
|
19
|
-
react_1.default.createElement(Viewport_1.Viewport.View, { id: 'one', classNames: 'p-4' },
|
|
20
|
-
react_1.default.createElement("p", null, "One"),
|
|
21
|
-
react_1.default.createElement("p", { className: 'invisible' }, "Two"),
|
|
22
|
-
react_1.default.createElement("p", { className: 'invisible' }, "Three"),
|
|
23
|
-
react_1.default.createElement(Panel_1.Action, { onClick: () => setActiveView('two') }, "Next")),
|
|
24
|
-
react_1.default.createElement(Viewport_1.Viewport.View, { id: 'two', classNames: 'p-4' },
|
|
25
|
-
react_1.default.createElement("p", { className: 'invisible' }, "One"),
|
|
26
|
-
react_1.default.createElement("p", null, "Two"),
|
|
27
|
-
react_1.default.createElement("p", { className: 'invisible' }, "Three"),
|
|
28
|
-
react_1.default.createElement(Panel_1.Action, { onClick: () => setActiveView('three') }, "Next")),
|
|
29
|
-
react_1.default.createElement(Viewport_1.Viewport.View, { id: 'three', classNames: 'p-4' },
|
|
30
|
-
react_1.default.createElement("p", { className: 'invisible' }, "One"),
|
|
31
|
-
react_1.default.createElement("p", { className: 'invisible' }, "Two"),
|
|
32
|
-
react_1.default.createElement("p", null, "Three"),
|
|
33
|
-
react_1.default.createElement(Panel_1.Action, { onClick: () => setActiveView('one') }, "Next"))));
|
|
11
|
+
const { setActiveView } = useViewportContext('StorybookViews', __viewportScope);
|
|
12
|
+
return (_jsxs(Viewport.Views, { children: [_jsxs(Viewport.View, { id: 'one', classNames: 'p-4', children: [_jsx("p", { children: "One" }), _jsx("p", { className: 'invisible', children: "Two" }), _jsx("p", { className: 'invisible', children: "Three" }), _jsx(Action, { onClick: () => setActiveView('two'), children: "Next" })] }), _jsxs(Viewport.View, { id: 'two', classNames: 'p-4', children: [_jsx("p", { className: 'invisible', children: "One" }), _jsx("p", { children: "Two" }), _jsx("p", { className: 'invisible', children: "Three" }), _jsx(Action, { onClick: () => setActiveView('three'), children: "Next" })] }), _jsxs(Viewport.View, { id: 'three', classNames: 'p-4', children: [_jsx("p", { className: 'invisible', children: "One" }), _jsx("p", { className: 'invisible', children: "Two" }), _jsx("p", { children: "Three" }), _jsx(Action, { onClick: () => setActiveView('one'), children: "Next" })] })] }));
|
|
34
13
|
};
|
|
35
14
|
const StorybookViewport = (props) => {
|
|
36
|
-
return (
|
|
37
|
-
react_1.default.createElement(react_ui_1.AlertDialog.Overlay, null,
|
|
38
|
-
react_1.default.createElement(react_ui_1.AlertDialog.Content, { classNames: 'p-0' },
|
|
39
|
-
react_1.default.createElement(Viewport_1.Viewport.Root, { defaultActiveView: 'one' },
|
|
40
|
-
react_1.default.createElement(Views, null))))));
|
|
15
|
+
return (_jsx(AlertDialog.Root, { defaultOpen: true, children: _jsx(AlertDialog.Overlay, { children: _jsx(AlertDialog.Content, { classNames: 'p-0', children: _jsx(Viewport.Root, { defaultActiveView: 'one', children: _jsx(Views, {}) }) }) }) }));
|
|
41
16
|
};
|
|
42
|
-
|
|
17
|
+
export default {
|
|
43
18
|
title: 'sdk/shell/StorybookViewport',
|
|
44
19
|
component: StorybookViewport,
|
|
45
|
-
decorators: [
|
|
20
|
+
decorators: [withTheme],
|
|
46
21
|
parameters: { chromatic: { disableSnapshot: false } },
|
|
47
22
|
};
|
|
48
|
-
|
|
23
|
+
export const Default = {
|
|
49
24
|
args: {},
|
|
50
25
|
};
|
|
51
26
|
//# sourceMappingURL=Viewport.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Viewport.stories.js","sourceRoot":"","sources":["../../../../../src/components/Viewport/Viewport.stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE
|
|
1
|
+
{"version":3,"file":"Viewport.stories.js","sourceRoot":"","sources":["../../../../../src/components/Viewport/Viewport.stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,aAAa,CAAC;AAIrB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAA4B,MAAM,YAAY,CAAC;AACpF,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,MAAM,KAAK,GAAG,CAAC,EAAE,eAAe,EAA2B,EAAE,EAAE;IAC7D,MAAM,EAAE,aAAa,EAAE,GAAG,kBAAkB,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;IAChF,OAAO,CACL,MAAC,QAAQ,CAAC,KAAK,eACb,MAAC,QAAQ,CAAC,IAAI,IAAC,EAAE,EAAC,KAAK,EAAC,UAAU,EAAC,KAAK,aACtC,8BAAU,EACV,YAAG,SAAS,EAAC,WAAW,oBAAQ,EAChC,YAAG,SAAS,EAAC,WAAW,sBAAU,EAClC,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,qBAAe,IAC5C,EAChB,MAAC,QAAQ,CAAC,IAAI,IAAC,EAAE,EAAC,KAAK,EAAC,UAAU,EAAC,KAAK,aACtC,YAAG,SAAS,EAAC,WAAW,oBAAQ,EAChC,8BAAU,EACV,YAAG,SAAS,EAAC,WAAW,sBAAU,EAClC,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,qBAAe,IAC9C,EAChB,MAAC,QAAQ,CAAC,IAAI,IAAC,EAAE,EAAC,OAAO,EAAC,UAAU,EAAC,KAAK,aACxC,YAAG,SAAS,EAAC,WAAW,oBAAQ,EAChC,YAAG,SAAS,EAAC,WAAW,oBAAQ,EAChC,gCAAY,EACZ,KAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,qBAAe,IAC5C,IACD,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,KAA6B,EAAE,EAAE;IAC1D,OAAO,CACL,KAAC,WAAW,CAAC,IAAI,IAAC,WAAW,kBAC3B,KAAC,WAAW,CAAC,OAAO,cAClB,KAAC,WAAW,CAAC,OAAO,IAAC,UAAU,EAAC,KAAK,YACnC,KAAC,QAAQ,CAAC,IAAI,IAAC,iBAAiB,EAAC,KAAK,YACpC,KAAC,KAAK,KAAG,GACK,GACI,GACF,GACL,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe;IACb,KAAK,EAAE,6BAA6B;IACpC,SAAS,EAAE,iBAAiB;IAC5B,UAAU,EAAE,CAAC,SAAS,CAAC;IACvB,UAAU,EAAE,EAAE,SAAS,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE;CACtD,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,EAAE;CACT,CAAC"}
|
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
|
-
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
__exportStar(require("./Viewport"), exports);
|
|
4
|
+
export * from './Viewport';
|
|
21
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Viewport/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Viewport/index.tsx"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,31 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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("./AgentConfig"), exports);
|
|
21
|
-
__exportStar(require("./CompoundButton"), exports);
|
|
22
|
-
__exportStar(require("./EmojiPicker"), exports);
|
|
23
|
-
__exportStar(require("./HuePicker"), exports);
|
|
24
|
-
__exportStar(require("./IdentityList"), exports);
|
|
25
|
-
__exportStar(require("./DeviceList"), exports);
|
|
26
|
-
__exportStar(require("./InvitationList"), exports);
|
|
27
|
-
__exportStar(require("./Panel"), exports);
|
|
28
|
-
__exportStar(require("./Viewport"), exports);
|
|
29
|
-
__exportStar(require("./AuthCode"), exports);
|
|
30
|
-
__exportStar(require("./SpaceListItem"), exports);
|
|
4
|
+
export * from './AgentConfig';
|
|
5
|
+
export * from './CompoundButton';
|
|
6
|
+
export * from './IdentityList';
|
|
7
|
+
export * from './DeviceList';
|
|
8
|
+
export * from './InvitationList';
|
|
9
|
+
export * from './Panel';
|
|
10
|
+
export * from './Viewport';
|
|
11
|
+
export * from './AuthCode';
|
|
12
|
+
export * from './SpaceListItem';
|
|
31
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type DialogContentProps } from '@dxos/react-ui';
|
|
3
2
|
import { type IdentityPanelProps } from '../../panels';
|
|
4
3
|
export interface IdentityDialogProps extends Omit<DialogContentProps, 'children'>, Omit<IdentityPanelProps, 'doneActionParent'> {
|
|
5
4
|
onDone: () => void;
|
|
6
5
|
}
|
|
7
|
-
export declare const IdentityDialog: (props: IdentityDialogProps) =>
|
|
6
|
+
export declare const IdentityDialog: (props: IdentityDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
//# sourceMappingURL=IdentityDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityDialog.d.ts","sourceRoot":"","sources":["../../../../../src/composites/IdentityDialog/IdentityDialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IdentityDialog.d.ts","sourceRoot":"","sources":["../../../../../src/composites/IdentityDialog/IdentityDialog.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAa,KAAK,kBAAkB,EAAiB,MAAM,gBAAgB,CAAC;AAEnF,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEtE,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,EAC1C,IAAI,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAC9C,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,UAAW,mBAAmB,4CAqBxD,CAAC"}
|
|
@@ -1,25 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return (
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.IdentityDialog = void 0;
|
|
10
|
-
const react_1 = __importDefault(require("react"));
|
|
11
|
-
const react_ui_1 = require("@dxos/react-ui");
|
|
12
|
-
const panels_1 = require("../../panels");
|
|
13
|
-
const IdentityDialog = (props) => {
|
|
14
|
-
const titleId = (0, react_ui_1.useId)('identityDialog__title', props.title);
|
|
15
|
-
return (react_1.default.createElement(react_ui_1.Dialog.Root, { defaultOpen: true, onOpenChange: (open) => { var _a; return open || ((_a = props.onDone) === null || _a === void 0 ? void 0 : _a.call(props)); } },
|
|
16
|
-
react_1.default.createElement(react_ui_1.Dialog.Portal, null,
|
|
17
|
-
react_1.default.createElement(react_ui_1.Dialog.Overlay, null,
|
|
18
|
-
react_1.default.createElement(react_ui_1.Dialog.Content, { "aria-labelledby": titleId, onOpenAutoFocus: (e) => e.preventDefault() },
|
|
19
|
-
react_1.default.createElement(react_ui_1.Clipboard.Provider, null,
|
|
20
|
-
react_1.default.createElement(panels_1.IdentityPanel, { ...props,
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Clipboard, Dialog, useId } from '@dxos/react-ui';
|
|
3
|
+
import { IdentityPanel } from '../../panels';
|
|
4
|
+
export const IdentityDialog = (props) => {
|
|
5
|
+
const titleId = useId('identityDialog__title', props.title);
|
|
6
|
+
return (_jsx(Dialog.Root, { defaultOpen: true, onOpenChange: (open) => { var _a; return open || ((_a = props.onDone) === null || _a === void 0 ? void 0 : _a.call(props)); }, children: _jsx(Dialog.Portal, { children: _jsx(Dialog.Overlay, { children: _jsx(Dialog.Content, { "aria-labelledby": titleId, onOpenAutoFocus: (e) => e.preventDefault(), children: _jsx(Clipboard.Provider, { children: _jsx(IdentityPanel, { ...props,
|
|
21
7
|
titleId,
|
|
22
|
-
doneActionParent:
|
|
8
|
+
doneActionParent: _jsx(Dialog.Close, { asChild: true }) }) }) }) }) }) }));
|
|
23
9
|
};
|
|
24
|
-
exports.IdentityDialog = IdentityDialog;
|
|
25
10
|
//# sourceMappingURL=IdentityDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityDialog.js","sourceRoot":"","sources":["../../../../../src/composites/IdentityDialog/IdentityDialog.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"IdentityDialog.js","sourceRoot":"","sources":["../../../../../src/composites/IdentityDialog/IdentityDialog.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,SAAS,EAA2B,MAAM,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEnF,OAAO,EAAE,aAAa,EAA2B,MAAM,cAAc,CAAC;AAQtE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAA0B,EAAE,EAAE;IAC3D,MAAM,OAAO,GAAG,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAC5D,OAAO,CACL,KAAC,MAAM,CAAC,IAAI,IAAC,WAAW,QAAC,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,WAAC,OAAA,IAAI,KAAI,MAAA,KAAK,CAAC,MAAM,qDAAI,CAAA,CAAA,EAAA,YACvE,KAAC,MAAM,CAAC,MAAM,cACZ,KAAC,MAAM,CAAC,OAAO,cACb,KAAC,MAAM,CAAC,OAAO,uBAAkB,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,YAClF,KAAC,SAAS,CAAC,QAAQ,cACjB,KAAC,aAAa,IAEV,GAAG,KAAK;4BACR,OAAO;4BACP,gBAAgB,EAAE,KAAC,MAAM,CAAC,KAAK,IAAC,OAAO,SAAG,GAE5C,GACiB,GACN,GACF,GACH,GACJ,CACf,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
|
-
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
__exportStar(require("./IdentityDialog"), exports);
|
|
4
|
+
export * from './IdentityDialog';
|
|
21
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/composites/IdentityDialog/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/composites/IdentityDialog/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type AlertDialogContentProps } from '@dxos/react-ui';
|
|
3
2
|
import { type JoinPanelProps } from '../../panels';
|
|
4
3
|
export interface JoinDialogProps extends Omit<AlertDialogContentProps, 'children'>, Omit<JoinPanelProps, 'exitActionParent' | 'doneActionParent'> {
|
|
5
4
|
}
|
|
6
|
-
export declare const JoinDialog: (joinPanelProps: JoinDialogProps) =>
|
|
5
|
+
export declare const JoinDialog: (joinPanelProps: JoinDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
//# sourceMappingURL=JoinDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoinDialog.d.ts","sourceRoot":"","sources":["../../../../../src/composites/JoinDialog/JoinDialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JoinDialog.d.ts","sourceRoot":"","sources":["../../../../../src/composites/JoinDialog/JoinDialog.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAe,KAAK,uBAAuB,EAA4B,MAAM,gBAAgB,CAAC;AAErG,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9D,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,uBAAuB,EAAE,UAAU,CAAC,EAC/C,IAAI,CAAC,cAAc,EAAE,kBAAkB,GAAG,kBAAkB,CAAC;CAAG;AAEpE,eAAO,MAAM,UAAU,mBAAoB,eAAe,4CAyBzD,CAAC"}
|
|
@@ -1,27 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.JoinDialog = void 0;
|
|
10
|
-
const react_1 = __importDefault(require("react"));
|
|
11
|
-
const react_ui_1 = require("@dxos/react-ui");
|
|
12
|
-
const panels_1 = require("../../panels");
|
|
13
|
-
const JoinDialog = (joinPanelProps) => {
|
|
14
|
-
const titleId = (0, react_ui_1.useId)('joinDialog__title');
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AlertDialog, useId, useVisualViewport } from '@dxos/react-ui';
|
|
3
|
+
import { JoinPanel } from '../../panels';
|
|
4
|
+
export const JoinDialog = (joinPanelProps) => {
|
|
5
|
+
const titleId = useId('joinDialog__title');
|
|
15
6
|
// todo(thure): This doesn’t work within an iframe on iOS Safari.
|
|
16
|
-
const { height } =
|
|
17
|
-
return (
|
|
18
|
-
react_1.default.createElement(react_ui_1.AlertDialog.Portal, null,
|
|
19
|
-
react_1.default.createElement(react_ui_1.AlertDialog.Overlay, { classNames: 'backdrop-blur', ...(height && { style: { blockSize: `${height}px` } }) },
|
|
20
|
-
react_1.default.createElement(react_ui_1.AlertDialog.Content, { "aria-labelledby": titleId },
|
|
21
|
-
react_1.default.createElement(panels_1.JoinPanel, { ...joinPanelProps,
|
|
7
|
+
const { height } = useVisualViewport();
|
|
8
|
+
return (_jsx(AlertDialog.Root, { defaultOpen: true, onOpenChange: (open) => { var _a; return open || (joinPanelProps.onExit ? joinPanelProps.onExit() : (_a = joinPanelProps.onDone) === null || _a === void 0 ? void 0 : _a.call(joinPanelProps, null)); }, children: _jsx(AlertDialog.Portal, { children: _jsx(AlertDialog.Overlay, { classNames: 'backdrop-blur', ...(height && { style: { blockSize: `${height}px` } }), children: _jsx(AlertDialog.Content, { "aria-labelledby": titleId, children: _jsx(JoinPanel, { ...joinPanelProps,
|
|
22
9
|
titleId,
|
|
23
|
-
exitActionParent:
|
|
24
|
-
doneActionParent:
|
|
10
|
+
exitActionParent: _jsx(AlertDialog.Cancel, { asChild: true }),
|
|
11
|
+
doneActionParent: _jsx(AlertDialog.Action, { asChild: true }) }) }) }) }) }));
|
|
25
12
|
};
|
|
26
|
-
exports.JoinDialog = JoinDialog;
|
|
27
13
|
//# sourceMappingURL=JoinDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoinDialog.js","sourceRoot":"","sources":["../../../../../src/composites/JoinDialog/JoinDialog.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"JoinDialog.js","sourceRoot":"","sources":["../../../../../src/composites/JoinDialog/JoinDialog.tsx"],"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nPropertyDescriptor(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("./JoinDialog"), exports);
|
|
4
|
+
export * from './JoinDialog';
|
|
21
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/composites/JoinDialog/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/composites/JoinDialog/index.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,cAAc,cAAc,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type ShellRuntime } from '@dxos/react-client';
|
|
3
2
|
export declare const Shell: ({ runtime }: {
|
|
4
3
|
runtime: ShellRuntime;
|
|
5
|
-
}) =>
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
5
|
//# sourceMappingURL=Shell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shell.d.ts","sourceRoot":"","sources":["../../../../../src/composites/Shell/Shell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Shell.d.ts","sourceRoot":"","sources":["../../../../../src/composites/Shell/Shell.tsx"],"names":[],"mappings":"AAQA,OAAO,EAKL,KAAK,YAAY,EAClB,MAAM,oBAAoB,CAAC;AAU5B,eAAO,MAAM,KAAK,gBAAiB;IAAE,OAAO,EAAE,YAAY,CAAA;CAAE,mDAsJ3D,CAAC"}
|