@dxos/shell 0.8.1-main.ae460ac → 0.8.1-main.ba2dec9
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.js +2703 -2701
- package/dist/bundle/shell.js.map +1 -1
- package/dist/bundle/shell.umd.cjs +59 -59
- package/dist/bundle/shell.umd.cjs.map +1 -1
- package/dist/types/src/components/AgentConfig.d.ts +2 -1
- package/dist/types/src/components/AgentConfig.d.ts.map +1 -1
- package/dist/types/src/components/AgentConfig.js +38 -15
- 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 +4 -3
- 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 +10 -2
- package/dist/types/src/components/CompoundButton/CompoundButton.js.map +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts +8 -7
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts.map +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.js +9 -7
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.js.map +1 -1
- package/dist/types/src/components/DeviceList/DeviceList.d.ts +2 -1
- package/dist/types/src/components/DeviceList/DeviceList.d.ts.map +1 -1
- package/dist/types/src/components/DeviceList/DeviceList.js +11 -4
- package/dist/types/src/components/DeviceList/DeviceList.js.map +1 -1
- package/dist/types/src/components/DeviceList/DeviceListItem.js +23 -4
- package/dist/types/src/components/DeviceList/DeviceListItem.js.map +1 -1
- package/dist/types/src/components/IdentityList/IdentityListItem.js +6 -3
- package/dist/types/src/components/IdentityList/IdentityListItem.js.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts +3 -2
- package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.js +6 -6
- package/dist/types/src/components/IdentityList/SpaceMemberList.js.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts +3 -2
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js +2 -2
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.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 +8 -5
- package/dist/types/src/components/InvitationList/InvitationList.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts +3 -2
- package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.stories.js +2 -2
- package/dist/types/src/components/InvitationList/InvitationList.stories.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts +2 -1
- package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationListContainer.js +2 -3
- 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 +34 -5
- package/dist/types/src/components/InvitationList/InvitationListItem.js.map +1 -1
- package/dist/types/src/components/Panel/Action.js +23 -6
- package/dist/types/src/components/Panel/Action.js.map +1 -1
- package/dist/types/src/components/Panel/Actions.js +2 -3
- package/dist/types/src/components/Panel/Actions.js.map +1 -1
- package/dist/types/src/components/Panel/CloseButton.d.ts +2 -1
- package/dist/types/src/components/Panel/CloseButton.d.ts.map +1 -1
- package/dist/types/src/components/Panel/CloseButton.js +4 -2
- 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 +8 -3
- package/dist/types/src/components/Panel/Emoji.js.map +1 -1
- package/dist/types/src/components/Panel/Heading.js +6 -3
- 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 +8 -2
- 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 +5 -2
- package/dist/types/src/components/Panel/Label.js.map +1 -1
- package/dist/types/src/components/Panel/Panel.stories.d.ts +4 -3
- package/dist/types/src/components/Panel/Panel.stories.d.ts.map +1 -1
- package/dist/types/src/components/Panel/Panel.stories.js +15 -3
- package/dist/types/src/components/Panel/Panel.stories.js.map +1 -1
- package/dist/types/src/components/Panel/StepHeading.js +2 -3
- package/dist/types/src/components/Panel/StepHeading.js.map +1 -1
- package/dist/types/src/components/SpaceListItem.js +6 -3
- 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 +8 -2
- 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 +5 -5
- package/dist/types/src/components/Viewport/Viewport.js.map +1 -1
- package/dist/types/src/components/Viewport/Viewport.stories.d.ts +2 -1
- package/dist/types/src/components/Viewport/Viewport.stories.d.ts.map +1 -1
- package/dist/types/src/components/Viewport/Viewport.stories.js +22 -3
- package/dist/types/src/components/Viewport/Viewport.stories.js.map +1 -1
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts +2 -1
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts.map +1 -1
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.js +11 -3
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.js.map +1 -1
- package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts +2 -1
- package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/composites/JoinDialog/JoinDialog.js +11 -4
- package/dist/types/src/composites/JoinDialog/JoinDialog.js.map +1 -1
- package/dist/types/src/composites/Shell/Shell.d.ts +2 -1
- package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/Shell.js +6 -7
- 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 +5 -3
- package/dist/types/src/composites/Shell/ShellContext.js.map +1 -1
- package/dist/types/src/composites/Shell/run-shell.js +17 -5
- package/dist/types/src/composites/Shell/run-shell.js.map +1 -1
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts +2 -1
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts.map +1 -1
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.js +11 -3
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.js.map +1 -1
- package/dist/types/src/composites/StatusDialog/StatusDialog.d.ts +2 -1
- package/dist/types/src/composites/StatusDialog/StatusDialog.d.ts.map +1 -1
- package/dist/types/src/composites/StatusDialog/StatusDialog.js +9 -2
- package/dist/types/src/composites/StatusDialog/StatusDialog.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts +3 -2
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js +56 -14
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts +11 -10
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js +5 -3
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts +3 -2
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js +8 -3
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts +2 -1
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js +20 -11
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinHeading.js +5 -4
- package/dist/types/src/panels/JoinPanel/JoinHeading.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts +3 -2
- package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.js +28 -4
- package/dist/types/src/panels/JoinPanel/JoinPanel.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts +15 -14
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js +16 -15
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts +2 -1
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js +8 -3
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts +2 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js +11 -4
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts +3 -2
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.js +7 -4
- 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 +6 -4
- package/dist/types/src/panels/JoinPanel/steps/InvitationAccepted.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts +2 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js +28 -14
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts +2 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js +14 -10
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts +2 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js +24 -8
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js.map +1 -1
- package/dist/types/src/panels/Panels.stories.d.ts +3 -3
- package/dist/types/src/panels/Panels.stories.d.ts.map +1 -1
- package/dist/types/src/panels/Panels.stories.js +8 -3
- package/dist/types/src/panels/Panels.stories.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts +3 -2
- package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.js +15 -6
- package/dist/types/src/panels/SpacePanel/SpacePanel.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts +18 -17
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js +38 -30
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.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 +14 -4
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js.map +1 -1
- package/dist/types/src/panels/StatusPanel/StatusPanel.d.ts +2 -1
- package/dist/types/src/panels/StatusPanel/StatusPanel.d.ts.map +1 -1
- package/dist/types/src/panels/StatusPanel/StatusPanel.js +7 -2
- package/dist/types/src/panels/StatusPanel/StatusPanel.js.map +1 -1
- package/dist/types/src/steps/ConfirmReset.d.ts +3 -2
- package/dist/types/src/steps/ConfirmReset.d.ts.map +1 -1
- package/dist/types/src/steps/ConfirmReset.js +19 -10
- package/dist/types/src/steps/ConfirmReset.js.map +1 -1
- package/dist/types/src/steps/InvitationManager.d.ts +2 -1
- package/dist/types/src/steps/InvitationManager.d.ts.map +1 -1
- package/dist/types/src/steps/InvitationManager.js +21 -4
- package/dist/types/src/steps/InvitationManager.js.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.d.ts +2 -1
- package/dist/types/src/stories/Invitations.e2e-stories.d.ts.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.js +40 -13
- package/dist/types/src/stories/Invitations.e2e-stories.js.map +1 -1
- package/package.json +26 -26
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
import React from 'react';
|
|
2
5
|
import { descriptionText, mx } from '@dxos/react-ui-theme';
|
|
3
6
|
export const Label = (props) => {
|
|
4
7
|
const { children } = props;
|
|
5
|
-
return
|
|
8
|
+
return React.createElement("span", { className: mx(descriptionText, 'text-center mli-6 whitespace-normal') }, children);
|
|
6
9
|
};
|
|
7
10
|
//# sourceMappingURL=Label.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Label.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Label.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Label.tsx"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAiC,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAI3D,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,KAAiB,EAAE,EAAE;IACzC,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,OAAO,8BAAM,SAAS,EAAE,EAAE,CAAC,eAAe,EAAE,qCAAqC,CAAC,IAAG,QAAQ,CAAQ,CAAC;AACxG,CAAC,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
|
-
component: (props: import("../StorybookDialog").StorybookDialogProps) =>
|
|
5
|
+
component: (props: import("../StorybookDialog").StorybookDialogProps) => React.JSX.Element;
|
|
5
6
|
decorators: import("@storybook/react").Decorator[];
|
|
6
7
|
};
|
|
7
8
|
export default _default;
|
|
8
|
-
export declare const Normal: (props: any) =>
|
|
9
|
-
export declare const Primary: (props: any) =>
|
|
9
|
+
export declare const Normal: (props: any) => React.JSX.Element;
|
|
10
|
+
export declare const Primary: (props: any) => React.JSX.Element;
|
|
10
11
|
//# sourceMappingURL=Panel.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Panel/Panel.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;;;;;;
|
|
1
|
+
{"version":3,"file":"Panel.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Panel/Panel.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;AAU1B,wBAIE;AAEF,eAAO,MAAM,MAAM,UAAW,GAAG,sBAahC,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,GAAG,sBAajC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
4
|
import '@dxos-theme';
|
|
5
|
+
import React from 'react';
|
|
6
6
|
import { withTheme } from '@dxos/storybook-utils';
|
|
7
7
|
import { Action } from './Action';
|
|
8
8
|
import { Actions } from './Actions';
|
|
@@ -15,9 +15,21 @@ export default {
|
|
|
15
15
|
decorators: [withTheme],
|
|
16
16
|
};
|
|
17
17
|
export const Normal = (props) => {
|
|
18
|
-
return (
|
|
18
|
+
return (React.createElement(StorybookDialog, { ...props },
|
|
19
|
+
React.createElement(Heading, { title: 'Panel heading', titleId: 'panel-heading' }),
|
|
20
|
+
React.createElement("div", { className: 'p-3 text-center' },
|
|
21
|
+
React.createElement(Label, null, "Lorem ipsum"),
|
|
22
|
+
React.createElement(Actions, null,
|
|
23
|
+
React.createElement(Action, { variant: 'ghost' }, "Ghost"),
|
|
24
|
+
React.createElement(Action, null, "Normal")))));
|
|
19
25
|
};
|
|
20
26
|
export const Primary = (props) => {
|
|
21
|
-
return (
|
|
27
|
+
return (React.createElement(StorybookDialog, { ...props },
|
|
28
|
+
React.createElement(Heading, { title: 'Panel heading', titleId: 'panel-heading' }),
|
|
29
|
+
React.createElement("div", { className: 'p-3 text-center' },
|
|
30
|
+
React.createElement(Label, null, "Lorem ipsum"),
|
|
31
|
+
React.createElement(Actions, null,
|
|
32
|
+
React.createElement(Action, { variant: 'ghost' }, "Ghost"),
|
|
33
|
+
React.createElement(Action, { variant: 'primary' }, "Primary")))));
|
|
22
34
|
};
|
|
23
35
|
//# sourceMappingURL=Panel.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.stories.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Panel.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Panel.stories.js","sourceRoot":"","sources":["../../../../../src/components/Panel/Panel.stories.tsx"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,eAAe;IACb,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,eAAe;IAC1B,UAAU,EAAE,CAAC,SAAS,CAAC;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAU,EAAE,EAAE;IACnC,OAAO,CACL,oBAAC,eAAe,OAAK,KAAK;QACxB,oBAAC,OAAO,IAAC,KAAK,EAAC,eAAe,EAAC,OAAO,EAAC,eAAe,GAAW;QACjE,6BAAK,SAAS,EAAC,iBAAiB;YAC9B,oBAAC,KAAK,sBAAoB;YAC1B,oBAAC,OAAO;gBACN,oBAAC,MAAM,IAAC,OAAO,EAAC,OAAO,YAAe;gBACtC,oBAAC,MAAM,iBAAgB,CACf,CACN,CACU,CACnB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAU,EAAE,EAAE;IACpC,OAAO,CACL,oBAAC,eAAe,OAAK,KAAK;QACxB,oBAAC,OAAO,IAAC,KAAK,EAAC,eAAe,EAAC,OAAO,EAAC,eAAe,GAAW;QACjE,6BAAK,SAAS,EAAC,iBAAiB;YAC9B,oBAAC,KAAK,sBAAoB;YAC1B,oBAAC,OAAO;gBACN,oBAAC,MAAM,IAAC,OAAO,EAAC,OAAO,YAAe;gBACtC,oBAAC,MAAM,IAAC,OAAO,EAAC,SAAS,cAAiB,CAClC,CACN,CACU,CACnB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
|
-
import { forwardRef } from 'react';
|
|
4
|
+
import React, { forwardRef } from 'react';
|
|
6
5
|
import { mx } from '@dxos/react-ui-theme';
|
|
7
6
|
export const StepHeading = forwardRef(({ children, className, ...props }, forwardedRef) => {
|
|
8
|
-
return (
|
|
7
|
+
return (React.createElement("h2", { ...props, className: mx('font-normal text-sm mbe-4 mli-1 text-center', className), ref: forwardedRef }, children));
|
|
9
8
|
});
|
|
10
9
|
//# sourceMappingURL=StepHeading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepHeading.js","sourceRoot":"","sources":["../../../../../src/components/Panel/StepHeading.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StepHeading.js","sourceRoot":"","sources":["../../../../../src/components/Panel/StepHeading.tsx"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,EAAE,EAA8B,UAAU,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAE1C,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CACnC,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE;IAClD,OAAO,CACL,+BAAQ,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,6CAA6C,EAAE,SAAS,CAAC,EAAE,GAAG,EAAE,YAAY,IACtG,QAAQ,CACN,CACN,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
|
-
import { forwardRef } from 'react';
|
|
4
|
+
import React, { forwardRef } from 'react';
|
|
6
5
|
import { Avatar, useId } from '@dxos/react-ui';
|
|
7
6
|
import { mx } from '@dxos/react-ui-theme';
|
|
8
7
|
import { humanize, keyToEmoji } from '@dxos/util';
|
|
@@ -11,6 +10,10 @@ export const SpaceListItem = forwardRef(({ space, onClick }, ref) => {
|
|
|
11
10
|
const fallbackValue = keyToEmoji(space.key);
|
|
12
11
|
const labelId = useId('identityListItem__label');
|
|
13
12
|
const displayName = (_a = space.properties.name) !== null && _a !== void 0 ? _a : humanize(space.key.toHex());
|
|
14
|
-
return (
|
|
13
|
+
return (React.createElement("li", { className: mx('flex gap-2 items-center mbe-2', onClick && 'cursor-pointer'), onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(), ref: ref, "data-testid": 'space-list-item' },
|
|
14
|
+
React.createElement(Avatar.Root, { labelId: labelId },
|
|
15
|
+
React.createElement(Avatar.Frame, null,
|
|
16
|
+
React.createElement(Avatar.Fallback, { text: fallbackValue })),
|
|
17
|
+
React.createElement(Avatar.Label, { classNames: 'text-sm truncate' }, displayName))));
|
|
15
18
|
});
|
|
16
19
|
//# sourceMappingURL=SpaceListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpaceListItem.js","sourceRoot":"","sources":["../../../../src/components/SpaceListItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SpaceListItem.js","sourceRoot":"","sources":["../../../../src/components/SpaceListItem.tsx"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,EAAE,EAAqB,UAAU,EAAE,MAAM,OAAO,CAAC;AAG7D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CACrC,CAAC,EAAE,KAAK,EAAE,OAAO,EAA0C,EAAE,GAAgC,EAAE,EAAE;;IAC/F,MAAM,aAAa,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC5C,MAAM,OAAO,GAAG,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACjD,MAAM,WAAW,GAAG,MAAA,KAAK,CAAC,UAAU,CAAC,IAAI,mCAAI,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC;IAEzE,OAAO,CACL,4BACE,SAAS,EAAE,EAAE,CAAC,+BAA+B,EAAE,OAAO,IAAI,gBAAgB,CAAC,EAC3E,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,EAAI,EAC1B,GAAG,EAAE,GAAG,iBACI,iBAAiB;QAE7B,oBAAC,MAAM,CAAC,IAAI,IAAC,OAAO,EAAE,OAAO;YAC3B,oBAAC,MAAM,CAAC,KAAK;gBACX,oBAAC,MAAM,CAAC,QAAQ,IAAC,IAAI,EAAE,aAAa,GAAI,CAC3B;YACf,oBAAC,MAAM,CAAC,KAAK,IAAC,UAAU,EAAC,kBAAkB,IAAE,WAAW,CAAgB,CAC5D,CACX,CACN,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
export type StorybookDialogProps = PropsWithChildren & {
|
|
3
3
|
inOverlayLayout?: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare const StorybookDialog: (props: StorybookDialogProps) =>
|
|
5
|
+
export declare const StorybookDialog: (props: StorybookDialogProps) => React.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,OAAO,KAAK,EAAE,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,sBAiB1D,CAAC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
import React from 'react';
|
|
2
5
|
import { Clipboard, ElevationProvider, Tooltip, useThemeContext } from '@dxos/react-ui';
|
|
3
6
|
// TODO(burdon): Move out of components.
|
|
4
7
|
export const StorybookDialog = (props) => {
|
|
5
8
|
const { inOverlayLayout = false } = props;
|
|
6
9
|
const { tx } = useThemeContext();
|
|
7
|
-
return (
|
|
10
|
+
return (React.createElement(Tooltip.Provider, null,
|
|
11
|
+
React.createElement(ElevationProvider, { elevation: 'dialog' },
|
|
12
|
+
React.createElement(Clipboard.Provider, null,
|
|
13
|
+
React.createElement("div", { role: 'group', className: tx('dialog.content', 'dialog', { inOverlayLayout }, 'p-1', inOverlayLayout ? 'm-4' : '') }, props.children)))));
|
|
8
14
|
};
|
|
9
15
|
//# 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":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAiC,MAAM,OAAO,CAAC;AAEtD,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,oBAAC,OAAO,CAAC,QAAQ;QACf,oBAAC,iBAAiB,IAAC,SAAS,EAAC,QAAQ;YACnC,oBAAC,SAAS,CAAC,QAAQ;gBACjB,6BACE,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,IAElG,KAAK,CAAC,QAAQ,CACX,CACa,CACH,CACH,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>): React.JSX.Element;
|
|
29
29
|
displayName: string;
|
|
30
30
|
};
|
|
31
31
|
Views: {
|
|
32
|
-
({ classNames, children, ...props }: ViewportViewsProps):
|
|
32
|
+
({ classNames, children, ...props }: ViewportViewsProps): React.JSX.Element;
|
|
33
33
|
displayName: string;
|
|
34
34
|
};
|
|
35
35
|
View: React.ForwardRefExoticComponent<Omit<ViewportScopedProps<ViewportViewProps>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
4
|
import { useFocusFinders } from '@fluentui/react-tabster';
|
|
6
5
|
import { createContextScope } from '@radix-ui/react-context';
|
|
7
6
|
import { useControllableState } from '@radix-ui/react-use-controllable-state';
|
|
8
|
-
import { forwardRef, useEffect, } from 'react';
|
|
7
|
+
import React, { forwardRef, useEffect, } from 'react';
|
|
9
8
|
import { useForwardedRef } from '@dxos/react-ui';
|
|
10
9
|
import { mx } from '@dxos/react-ui-theme';
|
|
11
10
|
const VIEWPORT_NAME = 'Viewport';
|
|
@@ -19,12 +18,13 @@ const ViewportRoot = ({ __viewportScope, classNames, children, defaultActiveView
|
|
|
19
18
|
defaultProp: defaultActiveView,
|
|
20
19
|
onChange: onActiveViewChange,
|
|
21
20
|
});
|
|
22
|
-
return (
|
|
21
|
+
return (React.createElement(ViewportProvider, { focusManaged: focusManaged, activeView: activeView, setActiveView: setActiveView, scope: __viewportScope },
|
|
22
|
+
React.createElement("div", { role: 'region', "aria-live": 'polite', ...props, className: mx('is-full overflow-hidden', classNames) }, children)));
|
|
23
23
|
};
|
|
24
24
|
ViewportRoot.displayName = VIEWPORT_NAME;
|
|
25
25
|
const ViewportViews = ({ classNames, children, ...props }) => {
|
|
26
26
|
const size = { inlineSize: `${Math.ceil(children.length) * 100}%` };
|
|
27
|
-
return (
|
|
27
|
+
return (React.createElement("div", { role: 'none', style: size, ...props, className: mx('flex', classNames) }, children));
|
|
28
28
|
};
|
|
29
29
|
ViewportViews.displayName = VIEWS_NAME;
|
|
30
30
|
const ViewportView = forwardRef(({ __viewportScope, classNames, children, id, ...props }, forwardedRef) => {
|
|
@@ -38,7 +38,7 @@ const ViewportView = forwardRef(({ __viewportScope, classNames, children, id, ..
|
|
|
38
38
|
(_a = findFirstFocusable(ref.current)) === null || _a === void 0 ? void 0 : _a.focus();
|
|
39
39
|
}
|
|
40
40
|
}, [focusManaged, ref.current, isActive]);
|
|
41
|
-
return (
|
|
41
|
+
return (React.createElement("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));
|
|
42
42
|
});
|
|
43
43
|
ViewportView.displayName = VIEW_NAME;
|
|
44
44
|
export const Viewport = { Root: ViewportRoot, Views: ViewportViews, View: ViewportView };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Viewport.js","sourceRoot":"","sources":["../../../../../src/components/Viewport/Viewport.tsx"],"names":[],"mappings":"
|
|
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,OAAO,KAAK,EAAE,EAGZ,UAAU,EAGV,SAAS,GACV,MAAM,OAAO,CAAC;AAEf,OAAO,EAAwB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAE1C,MAAM,aAAa,GAAG,UAAU,CAAC;AACjC,MAAM,UAAU,GAAG,eAAe,CAAC;AACnC,MAAM,SAAS,GAAG,cAAc,CAAC;AAUjC,MAAM,CAAC,qBAAqB,EAAE,mBAAmB,CAAC,GAAG,kBAAkB,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;AAE3F,MAAM,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,GAAG,qBAAqB,CAAuB,aAAa,CAAC,CAAC;AAU1G,MAAM,YAAY,GAAG,CAAC,EACpB,eAAe,EACf,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,UAAU,EAAE,eAAe,EAC3B,YAAY,GAAG,KAAK,EACpB,kBAAkB,EAClB,GAAG,KAAK,EAC+B,EAAE,EAAE;IAC3C,MAAM,CAAC,UAAU,GAAG,OAAO,EAAE,aAAa,CAAC,GAAG,oBAAoB,CAAC;QACjE,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,iBAAiB;QAC9B,QAAQ,EAAE,kBAA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E;;QACb,IAAI,CAAC,YAAY,IAAI,QAAQ,IAAI,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC;YAC/F,MAAA,kBAAkB,CAAC,GAAG,CAAC,OAAO,CAAC,0CAAE,KAAK,EAAE,CAAC;QAC3C,CAAC;IACH,CAAC,EAAE,CAAC,YAAY,EAAE,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC1C,OAAO,CACL,oCACM,KAAK,KACL,CAAC,CAAC,QAAQ,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,EAC1C,SAAS,EAAE,EAAE,CAAC,+BAA+B,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,mBAAmB,EAAE,UAAU,CAAC,EACtG,GAAG,EAAE,GAAG,IAEP,QAAQ,CACD,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,8 +1,9 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
type StorybookViewportProps = {};
|
|
3
4
|
declare const _default: {
|
|
4
5
|
title: string;
|
|
5
|
-
component: (props: StorybookViewportProps) =>
|
|
6
|
+
component: (props: StorybookViewportProps) => React.JSX.Element;
|
|
6
7
|
decorators: import("@storybook/react").Decorator[];
|
|
7
8
|
parameters: {
|
|
8
9
|
chromatic: {
|
|
@@ -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;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,KAAK,sBAAsB,GAAG,EAAE,CAAC;;;uBA4BC,sBAAsB;;;;;;;;AAcxD,wBAKE;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
|
|
@@ -1,18 +1,37 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
4
|
import '@dxos-theme';
|
|
5
|
+
import React from 'react';
|
|
6
6
|
import { AlertDialog } from '@dxos/react-ui';
|
|
7
7
|
import { withTheme } from '@dxos/storybook-utils';
|
|
8
8
|
import { useViewportContext, Viewport } from './Viewport';
|
|
9
9
|
import { Action } from '../Panel';
|
|
10
10
|
const Views = ({ __viewportScope }) => {
|
|
11
11
|
const { setActiveView } = useViewportContext('StorybookViews', __viewportScope);
|
|
12
|
-
return (
|
|
12
|
+
return (React.createElement(Viewport.Views, null,
|
|
13
|
+
React.createElement(Viewport.View, { id: 'one', classNames: 'p-4' },
|
|
14
|
+
React.createElement("p", null, "One"),
|
|
15
|
+
React.createElement("p", { className: 'invisible' }, "Two"),
|
|
16
|
+
React.createElement("p", { className: 'invisible' }, "Three"),
|
|
17
|
+
React.createElement(Action, { onClick: () => setActiveView('two') }, "Next")),
|
|
18
|
+
React.createElement(Viewport.View, { id: 'two', classNames: 'p-4' },
|
|
19
|
+
React.createElement("p", { className: 'invisible' }, "One"),
|
|
20
|
+
React.createElement("p", null, "Two"),
|
|
21
|
+
React.createElement("p", { className: 'invisible' }, "Three"),
|
|
22
|
+
React.createElement(Action, { onClick: () => setActiveView('three') }, "Next")),
|
|
23
|
+
React.createElement(Viewport.View, { id: 'three', classNames: 'p-4' },
|
|
24
|
+
React.createElement("p", { className: 'invisible' }, "One"),
|
|
25
|
+
React.createElement("p", { className: 'invisible' }, "Two"),
|
|
26
|
+
React.createElement("p", null, "Three"),
|
|
27
|
+
React.createElement(Action, { onClick: () => setActiveView('one') }, "Next"))));
|
|
13
28
|
};
|
|
14
29
|
const StorybookViewport = (props) => {
|
|
15
|
-
return (
|
|
30
|
+
return (React.createElement(AlertDialog.Root, { defaultOpen: true },
|
|
31
|
+
React.createElement(AlertDialog.Overlay, null,
|
|
32
|
+
React.createElement(AlertDialog.Content, { classNames: 'p-0' },
|
|
33
|
+
React.createElement(Viewport.Root, { defaultActiveView: 'one' },
|
|
34
|
+
React.createElement(Views, null))))));
|
|
16
35
|
};
|
|
17
36
|
export default {
|
|
18
37
|
title: 'sdk/shell/StorybookViewport',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Viewport.stories.js","sourceRoot":"","sources":["../../../../../src/components/Viewport/Viewport.stories.tsx"],"names":[],"mappings":"
|
|
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;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,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,oBAA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iB;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,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type DialogContentProps } from '@dxos/react-ui';
|
|
2
3
|
import { type IdentityPanelProps } from '../../panels';
|
|
3
4
|
export interface IdentityDialogProps extends Omit<DialogContentProps, 'children'>, Omit<IdentityPanelProps, 'doneActionParent'> {
|
|
4
5
|
onDone: () => void;
|
|
5
6
|
}
|
|
6
|
-
export declare const IdentityDialog: (props: IdentityDialogProps) =>
|
|
7
|
+
export declare const IdentityDialog: (props: IdentityDialogProps) => React.JSX.Element;
|
|
7
8
|
//# 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":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,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,sBAqBxD,CAAC"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
import React from 'react';
|
|
2
5
|
import { Clipboard, Dialog, useId } from '@dxos/react-ui';
|
|
3
6
|
import { IdentityPanel } from '../../panels';
|
|
4
7
|
export const IdentityDialog = (props) => {
|
|
5
8
|
const titleId = useId('identityDialog__title', props.title);
|
|
6
|
-
return (
|
|
9
|
+
return (React.createElement(Dialog.Root, { defaultOpen: true, onOpenChange: (open) => { var _a; return open || ((_a = props.onDone) === null || _a === void 0 ? void 0 : _a.call(props)); } },
|
|
10
|
+
React.createElement(Dialog.Portal, null,
|
|
11
|
+
React.createElement(Dialog.Overlay, null,
|
|
12
|
+
React.createElement(Dialog.Content, { "aria-labelledby": titleId, onOpenAutoFocus: (e) => e.preventDefault() },
|
|
13
|
+
React.createElement(Clipboard.Provider, null,
|
|
14
|
+
React.createElement(IdentityPanel, { ...props,
|
|
7
15
|
titleId,
|
|
8
|
-
doneActionParent:
|
|
16
|
+
doneActionParent: React.createElement(Dialog.Close, { asChild: true }) })))))));
|
|
9
17
|
};
|
|
10
18
|
//# 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":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,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,oBAAC,MAAM,CAAC,IAAI,IAAC,WAAW,QAAC,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,WAAC,OAAA,IAAI,KAAI,MAAA,KAAK,CAAC,MAAM,qDAAI,CAAA,CAAA,EAAA;QACvE,oBAAC,MAAM,CAAC,MAAM;YACZ,oBAAC,MAAM,CAAC,OAAO;gBACb,oBAAC,MAAM,CAAC,OAAO,uBAAkB,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE;oBAClF,oBAAC,SAAS,CAAC,QAAQ;wBACjB,oBAAC,aAAa,IAEV,GAAG,KAAK;4BACR,OAAO;4BACP,gBAAgB,EAAE,oBAAC,MAAM,CAAC,KAAK,IAAC,OAAO,SAAG,GAE5C,CACiB,CACN,CACF,CACH,CACJ,CACf,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type AlertDialogContentProps } from '@dxos/react-ui';
|
|
2
3
|
import { type JoinPanelProps } from '../../panels';
|
|
3
4
|
export interface JoinDialogProps extends Omit<AlertDialogContentProps, 'children'>, Omit<JoinPanelProps, 'exitActionParent' | 'doneActionParent'> {
|
|
4
5
|
}
|
|
5
|
-
export declare const JoinDialog: (joinPanelProps: JoinDialogProps) =>
|
|
6
|
+
export declare const JoinDialog: (joinPanelProps: JoinDialogProps) => React.JSX.Element;
|
|
6
7
|
//# 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":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,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,sBAyBzD,CAAC"}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
import React from 'react';
|
|
2
5
|
import { AlertDialog, useId, useVisualViewport } from '@dxos/react-ui';
|
|
3
6
|
import { JoinPanel } from '../../panels';
|
|
4
7
|
export const JoinDialog = (joinPanelProps) => {
|
|
5
8
|
const titleId = useId('joinDialog__title');
|
|
6
9
|
// todo(thure): This doesn’t work within an iframe on iOS Safari.
|
|
7
10
|
const { height } = useVisualViewport();
|
|
8
|
-
return (
|
|
11
|
+
return (React.createElement(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)); } },
|
|
12
|
+
React.createElement(AlertDialog.Portal, null,
|
|
13
|
+
React.createElement(AlertDialog.Overlay, { classNames: 'backdrop-blur', ...(height && { style: { blockSize: `${height}px` } }) },
|
|
14
|
+
React.createElement(AlertDialog.Content, { "aria-labelledby": titleId },
|
|
15
|
+
React.createElement(JoinPanel, { ...joinPanelProps,
|
|
9
16
|
titleId,
|
|
10
|
-
exitActionParent:
|
|
11
|
-
doneActionParent:
|
|
17
|
+
exitActionParent: React.createElement(AlertDialog.Cancel, { asChild: true }),
|
|
18
|
+
doneActionParent: React.createElement(AlertDialog.Action, { asChild: true }) }))))));
|
|
12
19
|
};
|
|
13
20
|
//# 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"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAgC,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAErG,OAAO,EAAE,SAAS,EAAuB,MAAM,cAAc,CAAC;AAM9D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,cAA+B,EAAE,EAAE;IAC5D,MAAM,OAAO,GAAG,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAC3C,iEAAiE;IACjE,MAAM,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAAC;IACvC,OAAO,CACL,oBAAC,WAAW,CAAC,IAAI,IACf,WAAW,QACX,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,WAAC,OAAA,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,MAAA,cAAc,CAAC,MAAM,+DAAG,IAAI,CAAC,CAAC,CAAA,EAAA;QAEjH,oBAAC,WAAW,CAAC,MAAM;YACjB,oBAAC,WAAW,CAAC,OAAO,IAAC,UAAU,EAAC,eAAe,KAAK,CAAC,MAAM,IAAI,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,MAAM,IAAI,EAAE,EAAE,CAAC;gBACrG,oBAAC,WAAW,CAAC,OAAO,uBAAkB,OAAO;oBAC3C,oBAAC,SAAS,IAEN,GAAG,cAAc;wBACjB,OAAO;wBACP,gBAAgB,EAAE,oBAAC,WAAW,CAAC,MAAM,IAAC,OAAO,SAAG;wBAChD,gBAAgB,EAAE,oBAAC,WAAW,CAAC,MAAM,IAAC,OAAO,SAAG,GAElD,CACkB,CACF,CACH,CACJ,CACpB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type ShellRuntime } from '@dxos/react-client';
|
|
2
3
|
export declare const Shell: ({ runtime }: {
|
|
3
4
|
runtime: ShellRuntime;
|
|
4
|
-
}) =>
|
|
5
|
+
}) => React.JSX.Element | null;
|
|
5
6
|
//# 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":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAKL,KAAK,YAAY,EAClB,MAAM,oBAAoB,CAAC;AAU5B,eAAO,MAAM,KAAK,gBAAiB;IAAE,OAAO,EAAE,YAAY,CAAA;CAAE,6BAsJ3D,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
|
-
import { useEffect, useState } from 'react';
|
|
4
|
+
import React, { useEffect, useState } from 'react';
|
|
6
5
|
import { log } from '@dxos/log';
|
|
7
6
|
import { useClient } from '@dxos/react-client';
|
|
8
7
|
import { ShellDisplay, ShellLayout, } from '@dxos/react-client';
|
|
@@ -57,11 +56,11 @@ export const Shell = ({ runtime }) => {
|
|
|
57
56
|
}, [runtime, layout, space]);
|
|
58
57
|
switch (layout) {
|
|
59
58
|
case ShellLayout.STATUS:
|
|
60
|
-
return
|
|
59
|
+
return React.createElement(StatusDialog, null);
|
|
61
60
|
case ShellLayout.INITIALIZE_IDENTITY:
|
|
62
61
|
case ShellLayout.INITIALIZE_IDENTITY_FROM_INVITATION:
|
|
63
62
|
case ShellLayout.INITIALIZE_IDENTITY_FROM_RECOVERY:
|
|
64
|
-
return (
|
|
63
|
+
return (React.createElement(JoinDialog, { mode: 'halo-only', initialDisposition: layout === ShellLayout.INITIALIZE_IDENTITY_FROM_RECOVERY
|
|
65
64
|
? 'recover-identity'
|
|
66
65
|
: layout === ShellLayout.INITIALIZE_IDENTITY_FROM_INVITATION
|
|
67
66
|
? 'accept-halo-invitation'
|
|
@@ -73,7 +72,7 @@ export const Shell = ({ runtime }) => {
|
|
|
73
72
|
case ShellLayout.IDENTITY:
|
|
74
73
|
case ShellLayout.SHARE_IDENTITY:
|
|
75
74
|
case ShellLayout.EDIT_PROFILE:
|
|
76
|
-
return (
|
|
75
|
+
return (React.createElement(IdentityDialog, { createInvitationUrl: createDeviceInvitationUrl, onResetStorage: async () => {
|
|
77
76
|
runtime.setLayout({ layout: ShellLayout.STATUS });
|
|
78
77
|
await client.reset();
|
|
79
78
|
return runtime.setAppContext({ display: ShellDisplay.NONE, reset: true });
|
|
@@ -93,13 +92,13 @@ export const Shell = ({ runtime }) => {
|
|
|
93
92
|
runtime.setLayout({ layout: ShellLayout.DEFAULT });
|
|
94
93
|
}, initialDisposition: layout === ShellLayout.SHARE_IDENTITY ? 'manage-device-invitation' : 'default' }));
|
|
95
94
|
case ShellLayout.SPACE:
|
|
96
|
-
return space ? (
|
|
95
|
+
return space ? (React.createElement(SpaceDialog, { space: space, target: target, createInvitationUrl: createSpaceInvitationUrl, onDone: async () => {
|
|
97
96
|
blurActiveElement();
|
|
98
97
|
await runtime.setAppContext({ display: ShellDisplay.NONE });
|
|
99
98
|
runtime.setLayout({ layout: ShellLayout.DEFAULT });
|
|
100
99
|
} })) : null;
|
|
101
100
|
case ShellLayout.JOIN_SPACE:
|
|
102
|
-
return (
|
|
101
|
+
return (React.createElement(JoinDialog, { initialInvitationCode: invitationCode, onDone: async (result) => {
|
|
103
102
|
var _a, _b;
|
|
104
103
|
blurActiveElement();
|
|
105
104
|
const target = (_a = result === null || result === void 0 ? void 0 : result.target) !== null && _a !== void 0 ? _a : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shell.js","sourceRoot":"","sources":["../../../../../src/composites/Shell/Shell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Shell.js","sourceRoot":"","sources":["../../../../../src/composites/Shell/Shell.tsx"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EACL,YAAY,EACZ,WAAW,GAIZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,iBAAiB,GAAG,GAAG,EAAE,eAAC,OAAA,MAAA,MAAC,QAAQ,CAAC,aAAyC,0CAAE,IAAI,kDAAI,CAAA,EAAA,CAAC;AAE9F,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAE,OAAO,EAA6B,EAAE,EAAE;IAC9D,MAAM,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,EAAE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C,IAAI,CAAC;QAEX,KAAK,WAAW,CAAC,UAAU;YACzB,OAAO,CACL,oBAAC,UAAU,IACT,qBAAqB,EAAE,cAAc,EACrC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;;oBACvB,iBAAiB,EAAE,CAAC;oBACpB,MAAM,MAAM,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,mCAAI,SAAS,CAAC;oBAC3C,MAAM,OAAO,CAAC,aAAa,CAAC;wBAC1B,OAAO,EAAE,YAAY,CAAC,IAAI;wBAC1B,QAAQ,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,mCAAI,SAAS;wBACvC,MAAM;qBACP,CAAC,CAAC;oBACH,OAAO,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC;gBACrD,CAAC,EACD,MAAM,EAAE,KAAK,IAAI,EAAE;oBACjB,iBAAiB,EAAE,CAAC;oBACpB,MAAM,OAAO,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;oBAC5D,OAAO,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC;gBACrD,CAAC,GACD,CACH,CAAC;QAEJ;YACE,OAAO,IAAI,CAAC;IAChB,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Context, type PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type Context, type PropsWithChildren } from 'react';
|
|
2
2
|
import { type PublicKey, ShellDisplay, ShellLayout, type LayoutRequest } from '@dxos/react-client';
|
|
3
3
|
import type { Space } from '@dxos/react-client/echo';
|
|
4
4
|
import { MemoryShellRuntime } from './memory-shell-runtime';
|
|
@@ -25,6 +25,6 @@ export type ShellProviderProps = PropsWithChildren<{
|
|
|
25
25
|
*
|
|
26
26
|
* @deprecated
|
|
27
27
|
*/
|
|
28
|
-
export declare const ShellProvider: ({ space, deviceInvitationCode, spaceInvitationCode, onJoinedSpace, children, }: ShellProviderProps) =>
|
|
28
|
+
export declare const ShellProvider: ({ space, deviceInvitationCode, spaceInvitationCode, onJoinedSpace, children, }: ShellProviderProps) => React.JSX.Element;
|
|
29
29
|
export {};
|
|
30
30
|
//# sourceMappingURL=ShellContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShellContext.d.ts","sourceRoot":"","sources":["../../../../../src/composites/Shell/ShellContext.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"ShellContext.d.ts","sourceRoot":"","sources":["../../../../../src/composites/Shell/ShellContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EACZ,KAAK,OAAO,EAEZ,KAAK,iBAAiB,EAMvB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,KAAK,SAAS,EAAa,YAAY,EAAE,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9G,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAKrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,iBAAiB,CAAwC,CAAC;AAE7F,KAAK,SAAS,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,KAAK,IAAI,CAAC;AAExF;;GAEG;AACH,eAAO,MAAM,QAAQ,QAAO;IAAE,SAAS,EAAE,SAAS,CAAA;CAqBjD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;IACjD,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,aAAa,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC;CAChD,CAAC,CAAC;AAEH;;;;GAIG;AAEH,eAAO,MAAM,aAAa,mFAMvB,kBAAkB,sBAqFpB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
|
-
import { createContext, useCallback, useContext, useEffect, useMemo, useState, } from 'react';
|
|
4
|
+
import React, { createContext, useCallback, useContext, useEffect, useMemo, useState, } from 'react';
|
|
6
5
|
import { useClient, ShellDisplay, ShellLayout } from '@dxos/react-client';
|
|
7
6
|
import { useIdentity } from '@dxos/react-client/halo';
|
|
8
7
|
import { mx } from '@dxos/react-ui-theme';
|
|
@@ -94,6 +93,9 @@ export const ShellProvider = ({ space, deviceInvitationCode, spaceInvitationCode
|
|
|
94
93
|
onJoinedSpace === null || onJoinedSpace === void 0 ? void 0 : onJoinedSpace(spaceKey);
|
|
95
94
|
});
|
|
96
95
|
}, [shellRuntime]);
|
|
97
|
-
return (
|
|
96
|
+
return (React.createElement(React.Fragment, null,
|
|
97
|
+
shellRuntime && (React.createElement("div", { className: mx(display === ShellDisplay.NONE ? 'hidden' : '') },
|
|
98
|
+
React.createElement(Shell, { runtime: shellRuntime }))),
|
|
99
|
+
React.createElement(ShellContext.Provider, { value: { runtime: shellRuntime, setDisplay } }, children)));
|
|
98
100
|
};
|
|
99
101
|
//# sourceMappingURL=ShellContext.js.map
|