@dxos/shell 0.7.5-main.ff8607b → 0.7.5-staging.b81e783
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} +8603 -8542
- 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 +36 -30
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/react.cjs +25 -19
- package/dist/lib/node/react.cjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react.mjs +36 -30
- package/dist/lib/node-esm/react.mjs.map +3 -3
- 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 +17 -43
- 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 +5 -39
- 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 +2 -13
- package/dist/types/src/components/CompoundButton/CompoundButton.js.map +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts +7 -8
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts.map +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.js +9 -14
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.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 +6 -16
- package/dist/types/src/components/DeviceList/DeviceList.js.map +1 -1
- package/dist/types/src/components/DeviceList/DeviceListItem.js +6 -58
- package/dist/types/src/components/DeviceList/DeviceListItem.js.map +1 -1
- package/dist/types/src/components/IdentityList/IdentityListItem.js +5 -41
- 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 +8 -41
- package/dist/types/src/components/IdentityList/SpaceMemberList.js.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts +2 -3
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.js +4 -7
- 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 +5 -11
- package/dist/types/src/components/InvitationList/InvitationList.js.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts +2 -3
- package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.stories.js +4 -7
- 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 +3 -35
- 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 +5 -67
- package/dist/types/src/components/InvitationList/InvitationListItem.js.map +1 -1
- package/dist/types/src/components/Panel/Action.js +8 -58
- package/dist/types/src/components/Panel/Action.js.map +1 -1
- package/dist/types/src/components/Panel/Actions.js +5 -37
- 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 +4 -9
- 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 +3 -11
- package/dist/types/src/components/Panel/Emoji.js.map +1 -1
- package/dist/types/src/components/Panel/Heading.js +5 -41
- 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 +2 -11
- 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 +2 -8
- package/dist/types/src/components/Panel/Label.js.map +1 -1
- package/dist/types/src/components/Panel/Panel.stories.d.ts +3 -4
- package/dist/types/src/components/Panel/Panel.stories.d.ts.map +1 -1
- package/dist/types/src/components/Panel/Panel.stories.js +5 -20
- package/dist/types/src/components/Panel/Panel.stories.js.map +1 -1
- package/dist/types/src/components/Panel/StepHeading.js +5 -37
- package/dist/types/src/components/Panel/StepHeading.js.map +1 -1
- package/dist/types/src/components/SpaceListItem.js +5 -41
- 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 +2 -11
- 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 +7 -40
- package/dist/types/src/components/Viewport/Viewport.js.map +1 -1
- package/dist/types/src/components/Viewport/Viewport.stories.d.ts +1 -2
- package/dist/types/src/components/Viewport/Viewport.stories.d.ts.map +1 -1
- package/dist/types/src/components/Viewport/Viewport.stories.js +5 -27
- package/dist/types/src/components/Viewport/Viewport.stories.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 +3 -14
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.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 +4 -14
- package/dist/types/src/composites/JoinDialog/JoinDialog.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 +9 -41
- 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 -40
- package/dist/types/src/composites/Shell/ShellContext.js.map +1 -1
- package/dist/types/src/composites/Shell/run-shell.js +7 -52
- package/dist/types/src/composites/Shell/run-shell.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 +3 -14
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.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 +2 -12
- package/dist/types/src/composites/StatusDialog/StatusDialog.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 +18 -94
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts +10 -11
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js +8 -10
- 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/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 +3 -11
- 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 +13 -55
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinHeading.js +6 -40
- 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 +6 -63
- package/dist/types/src/panels/JoinPanel/JoinPanel.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts +14 -15
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.js +17 -21
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.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 +5 -13
- 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 +6 -46
- 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 +7 -43
- 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 -41
- 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 +16 -63
- 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 +12 -49
- 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 +8 -27
- 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 +6 -14
- 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 +8 -50
- package/dist/types/src/panels/SpacePanel/SpacePanel.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts +17 -18
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js +37 -43
- 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 +6 -49
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.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 +2 -10
- package/dist/types/src/panels/StatusPanel/StatusPanel.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 +12 -54
- 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 +6 -56
- package/dist/types/src/steps/InvitationManager.js.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.d.ts +1 -2
- package/dist/types/src/stories/Invitations.e2e-stories.d.ts.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.js +15 -75
- package/dist/types/src/stories/Invitations.e2e-stories.js.map +1 -1
- package/dist/types/src/testing/fixtures/identities.d.ts.map +1 -1
- package/dist/types/src/testing/fixtures/identities.js +2 -0
- package/dist/types/src/testing/fixtures/identities.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 +5 -1
- package/dist/types/src/translations/locales/en-US.js.map +1 -1
- package/package.json +28 -27
- package/src/panels/IdentityPanel/IdentityPanel.stories.tsx +3 -0
- package/src/panels/IdentityPanel/IdentityPanel.tsx +31 -29
- package/src/panels/IdentityPanel/IdentityPanelProps.ts +8 -1
- package/src/panels/IdentityPanel/steps/ProfileForm.tsx +2 -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 -1045
- package/dist/bundle/shell.umd.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/playwright/{playwright.config.ts → playwright.config.cts} +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { type JoinPanelImplProps } from './JoinPanelProps';
|
|
4
3
|
declare const _default: {
|
|
5
4
|
title: string;
|
|
6
|
-
component: (args: Partial<JoinPanelImplProps>) =>
|
|
5
|
+
component: (args: Partial<JoinPanelImplProps>) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
decorators: import("@storybook/react/*").Decorator[];
|
|
8
7
|
parameters: {
|
|
9
8
|
translations: {
|
|
@@ -15,17 +14,17 @@ declare const _default: {
|
|
|
15
14
|
};
|
|
16
15
|
};
|
|
17
16
|
export default _default;
|
|
18
|
-
export declare const AdditionMethodChooser: () =>
|
|
19
|
-
export declare const ResetIdentityConfirmation: () =>
|
|
20
|
-
export declare const CreateIdentityInput: () =>
|
|
21
|
-
export declare const RecoverIdentityInput: () =>
|
|
22
|
-
export declare const HaloInvitationInput: () =>
|
|
23
|
-
export declare const HaloInvitationRescuer: () =>
|
|
24
|
-
export declare const HaloInvitationAuthenticator: () =>
|
|
25
|
-
export declare const HaloInvitationAccepted: () =>
|
|
26
|
-
export declare const IdentityAdded: () =>
|
|
27
|
-
export declare const SpaceInvitationInput: () =>
|
|
28
|
-
export declare const SpaceInvitationRescuer: () =>
|
|
29
|
-
export declare const SpaceInvitationAuthenticator: () =>
|
|
30
|
-
export declare const SpaceInvitationAccepted: () =>
|
|
17
|
+
export declare const AdditionMethodChooser: () => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const ResetIdentityConfirmation: () => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const CreateIdentityInput: () => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const RecoverIdentityInput: () => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const HaloInvitationInput: () => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const HaloInvitationRescuer: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const HaloInvitationAuthenticator: () => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const HaloInvitationAccepted: () => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const IdentityAdded: () => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const SpaceInvitationInput: () => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const SpaceInvitationRescuer: () => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const SpaceInvitationAuthenticator: () => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const SpaceInvitationAccepted: () => import("react/jsx-runtime").JSX.Element;
|
|
31
30
|
//# sourceMappingURL=JoinPanel.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoinPanel.stories.d.ts","sourceRoot":"","sources":["../../../../../src/panels/JoinPanel/JoinPanel.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"JoinPanel.stories.d.ts","sourceRoot":"","sources":["../../../../../src/panels/JoinPanel/JoinPanel.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAOrB,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;;;sBAcjC,OAAO,CAAC,kBAAkB,CAAC;;;;;;;;;;;AAMrD,wBAKE;AAEF,eAAO,MAAM,qBAAqB,+CAA6E,CAAC;AAEhH,eAAO,MAAM,yBAAyB,+CAAiF,CAAC;AAExH,eAAO,MAAM,mBAAmB,+CAA2E,CAAC;AAE5G,eAAO,MAAM,oBAAoB,+CAA4E,CAAC;AAE9G,eAAO,MAAM,mBAAmB,+CAA2E,CAAC;AAE5G,eAAO,MAAM,qBAAqB,+CAA6E,CAAC;AAEhH,eAAO,MAAM,2BAA2B,+CAEvC,CAAC;AAEF,eAAO,MAAM,sBAAsB,+CAA8E,CAAC;AAElH,eAAO,MAAM,aAAa,+CAAoE,CAAC;AAE/F,eAAO,MAAM,oBAAoB,+CAA2D,CAAC;AAE7F,eAAO,MAAM,sBAAsB,+CAA6D,CAAC;AAEjG,eAAO,MAAM,4BAA4B,+CAAmE,CAAC;AAE7G,eAAO,MAAM,uBAAuB,+CAA8D,CAAC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpaceInvitationAccepted = exports.SpaceInvitationAuthenticator = exports.SpaceInvitationRescuer = exports.SpaceInvitationInput = exports.IdentityAdded = exports.HaloInvitationAccepted = exports.HaloInvitationAuthenticator = exports.HaloInvitationRescuer = exports.HaloInvitationInput = exports.RecoverIdentityInput = exports.CreateIdentityInput = exports.ResetIdentityConfirmation = exports.AdditionMethodChooser = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
2
5
|
//
|
|
3
6
|
// Copyright 2023 DXOS.org
|
|
4
7
|
//
|
|
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.SpaceInvitationAccepted = exports.SpaceInvitationAuthenticator = exports.SpaceInvitationRescuer = exports.SpaceInvitationInput = exports.IdentityAdded = exports.HaloInvitationAccepted = exports.HaloInvitationAuthenticator = exports.HaloInvitationRescuer = exports.HaloInvitationInput = exports.RecoverIdentityInput = exports.CreateIdentityInput = exports.ResetIdentityConfirmation = exports.AdditionMethodChooser = void 0;
|
|
10
8
|
require("@dxos-theme");
|
|
11
|
-
const react_1 = __importDefault(require("react"));
|
|
12
9
|
const storybook_utils_1 = require("@dxos/storybook-utils");
|
|
13
10
|
const JoinPanel_1 = require("./JoinPanel");
|
|
14
11
|
const steps_1 = require("./steps");
|
|
@@ -22,38 +19,37 @@ const noOpProps = {
|
|
|
22
19
|
failed: new Set(),
|
|
23
20
|
pending: false,
|
|
24
21
|
};
|
|
25
|
-
const JoinDialog = (args) => (
|
|
26
|
-
react_1.default.createElement(JoinPanel_1.JoinPanelImpl, { ...noOpProps, ...args, IdentityInput: steps_1.IdentityInputImpl, ConfirmReset: steps_2.ConfirmResetImpl })));
|
|
22
|
+
const JoinDialog = (args) => ((0, jsx_runtime_1.jsx)(StorybookDialog_1.StorybookDialog, { inOverlayLayout: true, children: (0, jsx_runtime_1.jsx)(JoinPanel_1.JoinPanelImpl, { ...noOpProps, ...args, IdentityInput: steps_1.IdentityInputImpl, ConfirmReset: steps_2.ConfirmResetImpl }) }));
|
|
27
23
|
exports.default = {
|
|
28
24
|
title: 'sdk/shell/JoinPanel',
|
|
29
25
|
component: JoinDialog,
|
|
30
26
|
decorators: [storybook_utils_1.withTheme],
|
|
31
27
|
parameters: { translations: translations_1.osTranslations, chromatic: { disableSnapshot: false } },
|
|
32
28
|
};
|
|
33
|
-
const AdditionMethodChooser = () =>
|
|
29
|
+
const AdditionMethodChooser = () => (0, jsx_runtime_1.jsx)(JoinDialog, { mode: 'halo-only', activeView: 'addition method chooser' });
|
|
34
30
|
exports.AdditionMethodChooser = AdditionMethodChooser;
|
|
35
|
-
const ResetIdentityConfirmation = () =>
|
|
31
|
+
const ResetIdentityConfirmation = () => (0, jsx_runtime_1.jsx)(JoinDialog, { mode: 'halo-only', activeView: 'reset identity confirmation' });
|
|
36
32
|
exports.ResetIdentityConfirmation = ResetIdentityConfirmation;
|
|
37
|
-
const CreateIdentityInput = () =>
|
|
33
|
+
const CreateIdentityInput = () => (0, jsx_runtime_1.jsx)(JoinDialog, { mode: 'halo-only', activeView: 'create identity input' });
|
|
38
34
|
exports.CreateIdentityInput = CreateIdentityInput;
|
|
39
|
-
const RecoverIdentityInput = () =>
|
|
35
|
+
const RecoverIdentityInput = () => (0, jsx_runtime_1.jsx)(JoinDialog, { mode: 'halo-only', activeView: 'recover identity input' });
|
|
40
36
|
exports.RecoverIdentityInput = RecoverIdentityInput;
|
|
41
|
-
const HaloInvitationInput = () =>
|
|
37
|
+
const HaloInvitationInput = () => (0, jsx_runtime_1.jsx)(JoinDialog, { mode: 'halo-only', activeView: 'halo invitation input' });
|
|
42
38
|
exports.HaloInvitationInput = HaloInvitationInput;
|
|
43
|
-
const HaloInvitationRescuer = () =>
|
|
39
|
+
const HaloInvitationRescuer = () => (0, jsx_runtime_1.jsx)(JoinDialog, { mode: 'halo-only', activeView: 'halo invitation rescuer' });
|
|
44
40
|
exports.HaloInvitationRescuer = HaloInvitationRescuer;
|
|
45
|
-
const HaloInvitationAuthenticator = () => (
|
|
41
|
+
const HaloInvitationAuthenticator = () => ((0, jsx_runtime_1.jsx)(JoinDialog, { mode: 'halo-only', activeView: 'halo invitation authenticator' }));
|
|
46
42
|
exports.HaloInvitationAuthenticator = HaloInvitationAuthenticator;
|
|
47
|
-
const HaloInvitationAccepted = () =>
|
|
43
|
+
const HaloInvitationAccepted = () => (0, jsx_runtime_1.jsx)(JoinDialog, { mode: 'halo-only', activeView: 'halo invitation accepted' });
|
|
48
44
|
exports.HaloInvitationAccepted = HaloInvitationAccepted;
|
|
49
|
-
const IdentityAdded = () =>
|
|
45
|
+
const IdentityAdded = () => (0, jsx_runtime_1.jsx)(JoinDialog, { mode: 'halo-only', activeView: 'identity added' });
|
|
50
46
|
exports.IdentityAdded = IdentityAdded;
|
|
51
|
-
const SpaceInvitationInput = () =>
|
|
47
|
+
const SpaceInvitationInput = () => (0, jsx_runtime_1.jsx)(JoinDialog, { activeView: 'space invitation input' });
|
|
52
48
|
exports.SpaceInvitationInput = SpaceInvitationInput;
|
|
53
|
-
const SpaceInvitationRescuer = () =>
|
|
49
|
+
const SpaceInvitationRescuer = () => (0, jsx_runtime_1.jsx)(JoinDialog, { activeView: 'space invitation rescuer' });
|
|
54
50
|
exports.SpaceInvitationRescuer = SpaceInvitationRescuer;
|
|
55
|
-
const SpaceInvitationAuthenticator = () =>
|
|
51
|
+
const SpaceInvitationAuthenticator = () => (0, jsx_runtime_1.jsx)(JoinDialog, { activeView: 'space invitation authenticator' });
|
|
56
52
|
exports.SpaceInvitationAuthenticator = SpaceInvitationAuthenticator;
|
|
57
|
-
const SpaceInvitationAccepted = () =>
|
|
53
|
+
const SpaceInvitationAccepted = () => (0, jsx_runtime_1.jsx)(JoinDialog, { activeView: 'space invitation accepted' });
|
|
58
54
|
exports.SpaceInvitationAccepted = SpaceInvitationAccepted;
|
|
59
55
|
//# sourceMappingURL=JoinPanel.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JoinPanel.stories.js","sourceRoot":"","sources":["../../../../../src/panels/JoinPanel/JoinPanel.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JoinPanel.stories.js","sourceRoot":"","sources":["../../../../../src/panels/JoinPanel/JoinPanel.stories.tsx"],"names":[],"mappings":";;;;AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,uBAAqB;AAIrB,2DAAkD;AAElD,2CAA4C;AAE5C,mCAA4C;AAC5C,sEAAmE;AACnE,uCAA+C;AAC/C,qDAAoE;AAEpE,MAAM,SAAS,GAAuB;IACpC,OAAO,EAAE,2BAA2B;IACpC,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC;IACd,UAAU,EAAE,uBAAuB;IACnC,MAAM,EAAE,IAAI,GAAG,EAAE;IACjB,OAAO,EAAE,KAAK;CACf,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,IAAiC,EAAE,EAAE,CAAC,CACxD,uBAAC,iCAAe,IAAC,eAAe,kBAC9B,uBAAC,yBAAa,OAAK,SAAS,KAAM,IAAI,EAAE,aAAa,EAAE,yBAAiB,EAAE,YAAY,EAAE,wBAAgB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W,EAAC,UAAU,EAAC,+BAA+B,GAAG,CAC3E,CAAC;AAFW,QAAA,2BAA2B,+BAEtC;AAEK,MAAM,sBAAsB,GAAG,GAAG,EAAE,CAAC,uBAAC,UAAU,IAAC,IAAI,EAAC,WAAW,EAAC,UAAU,EAAC,0BAA0B,GAAG,CAAC;AAArG,QAAA,sBAAsB,0BAA+E;AAE3G,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,uBAAC,UAAU,IAAC,IAAI,EAAC,WAAW,EAAC,UAAU,EAAC,gBAAgB,GAAG,CAAC;AAAlF,QAAA,aAAa,iBAAqE;AAExF,MAAM,oBAAoB,GAAG,GAAG,EAAE,CAAC,uBAAC,UAAU,IAAC,UAAU,EAAC,wBAAwB,GAAG,CAAC;AAAhF,QAAA,oBAAoB,wBAA4D;AAEtF,MAAM,sBAAsB,GAAG,GAAG,EAAE,CAAC,uBAAC,UAAU,IAAC,UAAU,EAAC,0BAA0B,GAAG,CAAC;AAApF,QAAA,sBAAsB,0BAA8D;AAE1F,MAAM,4BAA4B,GAAG,GAAG,EAAE,CAAC,uBAAC,UAAU,IAAC,UAAU,EAAC,gCAAgC,GAAG,CAAC;AAAhG,QAAA,4BAA4B,gCAAoE;AAEtG,MAAM,uBAAuB,GAAG,GAAG,EAAE,CAAC,uBAAC,UAAU,IAAC,UAAU,EAAC,2BAA2B,GAAG,CAAC;AAAtF,QAAA,uBAAuB,2BAA+D"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type JoinStepProps } from '../JoinPanelProps';
|
|
3
2
|
export type AdditionMethodChooserProps = JoinStepProps;
|
|
4
|
-
export declare const AdditionMethodChooser: (viewStateProps: AdditionMethodChooserProps) =>
|
|
3
|
+
export declare const AdditionMethodChooser: (viewStateProps: AdditionMethodChooserProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
//# sourceMappingURL=AdditionMethodChooser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdditionMethodChooser.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/AdditionMethodChooser.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AdditionMethodChooser.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/AdditionMethodChooser.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,MAAM,0BAA0B,GAAG,aAAa,CAAC;AAEvD,eAAO,MAAM,qBAAqB,mBAAoB,0BAA0B,4CA+C/E,CAAC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdditionMethodChooser = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
2
5
|
//
|
|
3
6
|
// Copyright 2023 DXOS.org
|
|
4
7
|
//
|
|
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.AdditionMethodChooser = void 0;
|
|
10
8
|
const react_1 = require("@phosphor-icons/react");
|
|
11
|
-
const react_2 = __importDefault(require("react"));
|
|
12
9
|
const react_ui_1 = require("@dxos/react-ui");
|
|
13
10
|
const react_ui_theme_1 = require("@dxos/react-ui-theme");
|
|
14
11
|
const components_1 = require("../../../components");
|
|
@@ -18,15 +15,10 @@ const AdditionMethodChooser = (viewStateProps) => {
|
|
|
18
15
|
const { t } = (0, react_ui_1.useTranslation)('os');
|
|
19
16
|
const sharedButtonProps = {
|
|
20
17
|
disabled,
|
|
21
|
-
after:
|
|
18
|
+
after: (0, jsx_runtime_1.jsx)(react_1.CaretRight, { className: (0, react_ui_theme_1.getSize)(4), weight: 'bold' }),
|
|
22
19
|
slots: { label: { className: 'text-sm' } },
|
|
23
20
|
};
|
|
24
|
-
return (
|
|
25
|
-
react_2.default.createElement(components_1.StepHeading, null, t('addition method chooser title')),
|
|
26
|
-
react_2.default.createElement("div", { role: 'none', className: 'flex flex-col gap-1 grow' },
|
|
27
|
-
react_2.default.createElement(components_1.CompoundButton, { ...sharedButtonProps, description: t('create identity description'), before: react_2.default.createElement(react_1.Plus, { className: (0, react_ui_theme_1.getSize)(6) }), onClick: () => send({ type: 'createIdentity' }), "data-autofocus": 'choosingAuthMethod', "data-testid": 'identity-chooser.create-identity' }, t('create identity label')),
|
|
28
|
-
react_2.default.createElement(components_1.CompoundButton, { ...sharedButtonProps, description: t('join identity description'), before: react_2.default.createElement(react_1.QrCode, { className: (0, react_ui_theme_1.getSize)(6) }), onClick: () => send({ type: 'acceptHaloInvitation' }), "data-testid": 'identity-chooser.join-identity' }, t('join identity label')),
|
|
29
|
-
react_2.default.createElement(components_1.CompoundButton, { ...sharedButtonProps, description: t('recover identity description'), before: react_2.default.createElement(react_1.Textbox, { className: (0, react_ui_theme_1.getSize)(6) }), onClick: () => send({ type: 'recoverIdentity' }), "data-testid": 'identity-chooser.recover-identity' }, t('recover identity label')))));
|
|
21
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.StepHeading, { children: t('addition method chooser title') }), (0, jsx_runtime_1.jsxs)("div", { role: 'none', className: 'flex flex-col gap-1 grow', children: [(0, jsx_runtime_1.jsx)(components_1.CompoundButton, { ...sharedButtonProps, description: t('create identity description'), before: (0, jsx_runtime_1.jsx)(react_1.Plus, { className: (0, react_ui_theme_1.getSize)(6) }), onClick: () => send({ type: 'createIdentity' }), "data-autofocus": 'choosingAuthMethod', "data-testid": 'identity-chooser.create-identity', children: t('create identity label') }), (0, jsx_runtime_1.jsx)(components_1.CompoundButton, { ...sharedButtonProps, description: t('join identity description'), before: (0, jsx_runtime_1.jsx)(react_1.QrCode, { className: (0, react_ui_theme_1.getSize)(6) }), onClick: () => send({ type: 'acceptHaloInvitation' }), "data-testid": 'identity-chooser.join-identity', children: t('join identity label') }), (0, jsx_runtime_1.jsx)(components_1.CompoundButton, { ...sharedButtonProps, description: t('recover identity description'), before: (0, jsx_runtime_1.jsx)(react_1.Textbox, { className: (0, react_ui_theme_1.getSize)(6) }), onClick: () => send({ type: 'recoverIdentity' }), "data-testid": 'identity-chooser.recover-identity', children: t('recover identity label') })] })] }));
|
|
30
22
|
};
|
|
31
23
|
exports.AdditionMethodChooser = AdditionMethodChooser;
|
|
32
24
|
//# sourceMappingURL=AdditionMethodChooser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdditionMethodChooser.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/AdditionMethodChooser.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AdditionMethodChooser.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/AdditionMethodChooser.tsx"],"names":[],"mappings":";;;;AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,iDAA0E;AAG1E,6CAAgD;AAChD,yDAA+C;AAE/C,oDAAkE;AAK3D,MAAM,qBAAqB,GAAG,CAAC,cAA0C,EAAE,EAAE;IAClF,MAAM,QAAQ,GAAG,CAAC,cAAc,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,CAAC;IAEhC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,CAAC;IAEnC,MAAM,iBAAiB,GAAG;QACxB,QAAQ;QACR,KAAK,EAAE,uBAAC,kBAAU,IAAC,SAAS,EAAE,IAAA,wBAAO,EAAC,CAAC,CAAC,EAAE,MAAM,EAAC,MAAM,GAAG;QAC1D,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE;KAC3C,CAAC;IAEF,OAAO,CACL,6DAC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PanelMode, type JoinStepProps } from '../JoinPanelProps';
|
|
4
3
|
export interface IdentityAddedProps extends JoinStepProps {
|
|
5
4
|
mode?: JoinPanelMode;
|
|
6
5
|
addedIdentity?: Identity;
|
|
7
6
|
}
|
|
8
|
-
export declare const IdentityAdded: (props: IdentityAddedProps) =>
|
|
7
|
+
export declare const IdentityAdded: (props: IdentityAddedProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
//# sourceMappingURL=IdentityAdded.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityAdded.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/IdentityAdded.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IdentityAdded.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/IdentityAdded.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAMxD,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE3E,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,aAAa,CAAC,EAAE,QAAQ,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,UAAW,kBAAkB,4CAsDtD,CAAC"}
|
|
@@ -1,43 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdentityAdded = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
2
5
|
//
|
|
3
6
|
// Copyright 2023 DXOS.org
|
|
4
7
|
//
|
|
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 __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.IdentityAdded = void 0;
|
|
40
|
-
const react_1 = __importStar(require("react"));
|
|
8
|
+
const react_1 = require("react");
|
|
41
9
|
const display_name_1 = require("@dxos/display-name");
|
|
42
10
|
const react_ui_1 = require("@dxos/react-ui");
|
|
43
11
|
const react_ui_theme_1 = require("@dxos/react-ui-theme");
|
|
@@ -52,16 +20,8 @@ const IdentityAdded = (props) => {
|
|
|
52
20
|
const fallbackValue = (0, util_1.hexToFallback)(addedIdentityHex);
|
|
53
21
|
const labelId = (0, react_ui_1.useId)('identityListItem__label');
|
|
54
22
|
const displayName = (_c = (_b = addedIdentity === null || addedIdentity === void 0 ? void 0 : addedIdentity.profile) === null || _b === void 0 ? void 0 : _b.displayName) !== null && _c !== void 0 ? _c : (addedIdentity && (0, display_name_1.generateName)(addedIdentityHex));
|
|
55
|
-
const doneAction = (
|
|
56
|
-
|
|
57
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
58
|
-
react_1.default.createElement(components_1.StepHeading, null, t('identity added label')),
|
|
59
|
-
react_1.default.createElement("div", { role: 'none', className: 'grow flex flex-col items-center justify-center text-center gap-2' },
|
|
60
|
-
react_1.default.createElement(react_ui_1.Avatar.Root, { status: 'active', labelId: labelId, hue: ((_e = (_d = addedIdentity === null || addedIdentity === void 0 ? void 0 : addedIdentity.profile) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.hue) || fallbackValue.hue },
|
|
61
|
-
react_1.default.createElement(react_ui_1.Avatar.Frame, null,
|
|
62
|
-
react_1.default.createElement(react_ui_1.Avatar.Fallback, { text: ((_g = (_f = addedIdentity === null || addedIdentity === void 0 ? void 0 : addedIdentity.profile) === null || _f === void 0 ? void 0 : _f.data) === null || _g === void 0 ? void 0 : _g.emoji) || fallbackValue.emoji })),
|
|
63
|
-
react_1.default.createElement(react_ui_1.Avatar.Label, { classNames: (0, react_ui_theme_1.mx)('text-lg truncate', !((_h = addedIdentity === null || addedIdentity === void 0 ? void 0 : addedIdentity.profile) === null || _h === void 0 ? void 0 : _h.displayName) && 'font-mono') }, displayName))),
|
|
64
|
-
react_1.default.createElement(components_1.Actions, null, mode === 'halo-only' ? (doneActionParent ? ((0, react_1.cloneElement)(doneActionParent, {}, doneAction)) : (doneAction)) : (react_1.default.createElement(components_1.Action, { variant: 'primary', disabled: disabled || !addedIdentity, onClick: () => addedIdentity && send({ type: 'selectIdentity', identity: addedIdentity }), "data-autofocus": 'confirmingAddedIdentity' }, t('continue label'))))));
|
|
23
|
+
const doneAction = ((0, jsx_runtime_1.jsx)(components_1.Action, { ...(onDone && { onClick: () => onDone(null) }), disabled: disabled, "data-autofocus": 'confirmingAddedIdentity', "data-testid": 'identity-added-done', children: (0, jsx_runtime_1.jsx)("span", { children: t('done label') }) }));
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_1.StepHeading, { children: t('identity added label') }), (0, jsx_runtime_1.jsx)("div", { role: 'none', className: 'grow flex flex-col items-center justify-center text-center gap-2', children: (0, jsx_runtime_1.jsxs)(react_ui_1.Avatar.Root, { status: 'active', labelId: labelId, hue: ((_e = (_d = addedIdentity === null || addedIdentity === void 0 ? void 0 : addedIdentity.profile) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.hue) || fallbackValue.hue, children: [(0, jsx_runtime_1.jsx)(react_ui_1.Avatar.Frame, { children: (0, jsx_runtime_1.jsx)(react_ui_1.Avatar.Fallback, { text: ((_g = (_f = addedIdentity === null || addedIdentity === void 0 ? void 0 : addedIdentity.profile) === null || _f === void 0 ? void 0 : _f.data) === null || _g === void 0 ? void 0 : _g.emoji) || fallbackValue.emoji }) }), (0, jsx_runtime_1.jsx)(react_ui_1.Avatar.Label, { classNames: (0, react_ui_theme_1.mx)('text-lg truncate', !((_h = addedIdentity === null || addedIdentity === void 0 ? void 0 : addedIdentity.profile) === null || _h === void 0 ? void 0 : _h.displayName) && 'font-mono'), children: displayName })] }) }), (0, jsx_runtime_1.jsx)(components_1.Actions, { children: mode === 'halo-only' ? (doneActionParent ? ((0, react_1.cloneElement)(doneActionParent, {}, doneAction)) : (doneAction)) : ((0, jsx_runtime_1.jsx)(components_1.Action, { variant: 'primary', disabled: disabled || !addedIdentity, onClick: () => addedIdentity && send({ type: 'selectIdentity', identity: addedIdentity }), "data-autofocus": 'confirmingAddedIdentity', children: t('continue label') })) })] }));
|
|
65
25
|
};
|
|
66
26
|
exports.IdentityAdded = IdentityAdded;
|
|
67
27
|
//# sourceMappingURL=IdentityAdded.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityAdded.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/IdentityAdded.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IdentityAdded.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/IdentityAdded.tsx"],"names":[],"mappings":";;;;AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,iCAA4C;AAE5C,qDAAkD;AAElD,6CAA+D;AAC/D,yDAA0C;AAC1C,qCAA2C;AAE3C,oDAAmE;AAQ5D,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;;IACzD,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC;IAC9E,MAAM,QAAQ,GAAG,CAAC,MAAM,CAAC;IACzB,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,CAAC;IAEnC,MAAM,gBAAgB,GAAG,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,WAAW,CAAC,KAAK,EAAE,mCAAI,GAAG,CAAC;IACnE,MAAM,aAAa,GAAG,IAAA,oBAAa,EAAC,gBAAgB,CAAC,CAAC;IACtD,MAAM,OAAO,GAAG,IAAA,gBAAK,EAAC,yBAAyB,CAAC,CAAC;IACjD,MAAM,WAAW,GAAG,MAAA,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,OAAO,0CAAE,WAAW,mCAAI,CAAC,aAAa,IAAI,IAAA,2BAAY,EAAC,gBAAgB,CAAC,CAAC,CAAC;IAE7G,MAAM,UAAU,GAAG,CACjB,uBAAC,mBAAM,OACD,CAAC,MAAM,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAC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I,IAAI,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,oBAC1E,yBAAyB,YAEvC,CAAC,CAAC,gBAAgB,CAAC,GACb,CACV,GACO,IACT,CACJ,CAAC;AACJ,CAAC,CAAC;AAtDW,QAAA,aAAa,iBAsDxB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type MaybePromise } from '@dxos/util';
|
|
3
2
|
import { type JoinStepProps } from '../JoinPanelProps';
|
|
4
3
|
export interface IdentityCreatorProps extends JoinStepProps {
|
|
@@ -9,6 +8,6 @@ export type IdentityInputImplProps = IdentityCreatorProps & {
|
|
|
9
8
|
onConfirm?: (value: string) => MaybePromise<void>;
|
|
10
9
|
validationMessage?: string;
|
|
11
10
|
};
|
|
12
|
-
export declare const IdentityInput: (props: IdentityInputProps) =>
|
|
13
|
-
export declare const IdentityInputImpl: (props: IdentityInputImplProps) =>
|
|
11
|
+
export declare const IdentityInput: (props: IdentityInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const IdentityInputImpl: (props: IdentityInputImplProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
//# sourceMappingURL=IdentityInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityInput.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/IdentityInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IdentityInput.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/IdentityInput.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,WAAW,oBAAqB,SAAQ,aAAa;IACzD,MAAM,EAAE,kBAAkB,GAAG,iBAAiB,CAAC;CAChD;AAED,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;AAEtD,MAAM,MAAM,sBAAsB,GAAG,oBAAoB,GAAG;IAC1D,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;IAClD,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,kBAAkB,4CA8BtD,CAAC;AAGF,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,4CAiD9D,CAAC"}
|
|
@@ -1,43 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdentityInputImpl = exports.IdentityInput = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
2
5
|
//
|
|
3
6
|
// Copyright 2023 DXOS.org
|
|
4
7
|
//
|
|
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 __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.IdentityInputImpl = exports.IdentityInput = void 0;
|
|
40
|
-
const react_1 = __importStar(require("react"));
|
|
8
|
+
const react_1 = require("react");
|
|
41
9
|
const log_1 = require("@dxos/log");
|
|
42
10
|
const react_client_1 = require("@dxos/react-client");
|
|
43
11
|
const react_ui_1 = require("@dxos/react-ui");
|
|
@@ -50,7 +18,7 @@ const IdentityInput = (props) => {
|
|
|
50
18
|
const [validationMessage, setValidationMessage] = (0, react_1.useState)('');
|
|
51
19
|
const handleConfirm = async (value) => {
|
|
52
20
|
if (isRecover) {
|
|
53
|
-
await client.halo.recoverIdentity({
|
|
21
|
+
await client.halo.recoverIdentity({ recoveryCode: value }).then((identity) => {
|
|
54
22
|
send === null || send === void 0 ? void 0 : send({ type: 'selectIdentity', identity });
|
|
55
23
|
}, (error) => {
|
|
56
24
|
log_1.log.catch(error);
|
|
@@ -66,7 +34,7 @@ const IdentityInput = (props) => {
|
|
|
66
34
|
});
|
|
67
35
|
}
|
|
68
36
|
};
|
|
69
|
-
return
|
|
37
|
+
return (0, jsx_runtime_1.jsx)(exports.IdentityInputImpl, { ...props, onConfirm: handleConfirm, validationMessage: validationMessage });
|
|
70
38
|
};
|
|
71
39
|
exports.IdentityInput = IdentityInput;
|
|
72
40
|
// TODO(zhenyasav): impl shouldn't need send()
|
|
@@ -82,11 +50,7 @@ const IdentityInputImpl = (props) => {
|
|
|
82
50
|
await (onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(inputValue));
|
|
83
51
|
setPending(false);
|
|
84
52
|
}, [onConfirm, inputValue]);
|
|
85
|
-
return (
|
|
86
|
-
react_1.default.createElement("div", { role: 'none', className: 'grow flex flex-col justify-center' },
|
|
87
|
-
react_1.default.createElement(components_1.Input, { validationMessage, label: react_1.default.createElement(components_1.StepHeading, null, t(isRecover ? 'recover identity input label' : 'new identity input label')), disabled: disabled, "data-testid": 'identity-input', placeholder: isRecover ? t('recovery code placeholder') : t('display name placeholder'), onChange: ({ target: { value } }) => setInputValue(value) })),
|
|
88
|
-
react_1.default.createElement(components_1.Actions, null,
|
|
89
|
-
react_1.default.createElement(components_1.Action, { variant: 'primary', disabled: disabled || inputValue.trim().length === 0, onClick: handleConfirm, "data-testid": `${method === 'recover identity' ? 'recover' : 'create'}-identity-input-continue` }, pending ? t('pending label') : t('continue label')))));
|
|
53
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { role: 'none', className: 'grow flex flex-col justify-center', children: (0, jsx_runtime_1.jsx)(components_1.Input, { validationMessage, label: (0, jsx_runtime_1.jsx)(components_1.StepHeading, { children: t(isRecover ? 'recover identity input label' : 'new identity input label') }), disabled: disabled, "data-testid": 'identity-input', placeholder: isRecover ? t('recovery code placeholder') : t('display name placeholder'), onChange: ({ target: { value } }) => setInputValue(value) }) }), (0, jsx_runtime_1.jsx)(components_1.Actions, { children: (0, jsx_runtime_1.jsx)(components_1.Action, { variant: 'primary', disabled: disabled || inputValue.trim().length === 0, onClick: handleConfirm, "data-testid": `${method === 'recover identity' ? 'recover' : 'create'}-identity-input-continue`, children: pending ? t('pending label') : t('continue label') }) })] }));
|
|
90
54
|
};
|
|
91
55
|
exports.IdentityInputImpl = IdentityInputImpl;
|
|
92
56
|
//# sourceMappingURL=IdentityInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityInput.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/IdentityInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IdentityInput.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/IdentityInput.tsx"],"names":[],"mappings":";;;;AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,iCAAqD;AAErD,mCAAgC;AAChC,qDAA+C;AAC/C,6CAAgD;AAGhD,oDAA0E;AAcnE,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE;IACzD,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC/B,MAAM,SAAS,GAAG,MAAM,KAAK,kBAAkB,CAAC;IAChD,MAAM,MAAM,GAAG,IAAA,wBAAS,GAAE,CAAC;IAC3B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,CAAC;IACnC,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAC,EAAE,CAAC,CAAC;IAC/D,MAAM,aAAa,GAAG,KAAK,EAAE,KAAa,EAAE,EAAE;QAC5C,IAAI,SAAS,EAAE,CAAC;YACd,MAAM,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,CAC7D,CAAC,QAAQ,EAAE,EAAE;gBACX,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAG,EAAE,IAAI,EAAE,gBAAyB,EAAE,QAAQ,EAAE,CAAC,CAAC;YACxD,CAAC,EACD,CAAC,KAAK,EAAE,EAAE;gBACR,SAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBACjB,oBAAoB,CAAC,CAAC,CAAC,oCAAoC,CAAC,CAAC,CAAC;YAChE,CAAC,CACF,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,MAAM,M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AG,UAAU,CAAC,CAAA,CAAC;QAC9B,UAAU,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;IAE5B,OAAO,CACL,6DACE,gCAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,mCAAmC,YAC5D,uBAAC,kBAAK,IACE,iBAAiB,EACvB,KAAK,EACH,uBAAC,wBAAW,cAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,0BAA0B,CAAC,GAAe,EAEzG,QAAQ,EAAE,QAAQ,iBACN,gBAAgB,EAC5B,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,0BAA0B,CAAC,EACvF,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,GACzD,GACE,EACN,uBAAC,oBAAO,cAUN,uBAAC,mBAAM,IACL,OAAO,EAAC,SAAS,EACjB,QAAQ,EAAE,QAAQ,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EACpD,OAAO,EAAE,aAAa,iBACT,GAAG,MAAM,KAAK,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,0BAA0B,YAE7F,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,GAC5C,GACD,IACT,CACJ,CAAC;AACJ,CAAC,CAAC;AAjDW,QAAA,iBAAiB,qBAiD5B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { cloneElement } from 'react';
|
|
2
2
|
import { type JoinStepProps } from '../JoinPanelProps';
|
|
3
3
|
export interface InvitationAcceptedProps extends JoinStepProps {
|
|
4
4
|
Kind: 'Space' | 'Halo';
|
|
5
5
|
doneActionParent?: Parameters<typeof cloneElement>[0];
|
|
6
6
|
onDone?: () => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const InvitationAccepted: (props: InvitationAcceptedProps) =>
|
|
8
|
+
export declare const InvitationAccepted: (props: InvitationAcceptedProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
//# sourceMappingURL=InvitationAccepted.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationAccepted.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationAccepted.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"InvitationAccepted.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationAccepted.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK5C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC5D,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,4CAyBhE,CAAC"}
|
|
@@ -1,54 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvitationAccepted = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
2
5
|
//
|
|
3
6
|
// Copyright 2023 DXOS.org
|
|
4
7
|
//
|
|
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 __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.InvitationAccepted = void 0;
|
|
40
|
-
const react_1 = __importStar(require("react"));
|
|
8
|
+
const react_1 = require("react");
|
|
41
9
|
const react_ui_1 = require("@dxos/react-ui");
|
|
42
10
|
const components_1 = require("../../../components");
|
|
43
11
|
const InvitationAccepted = (props) => {
|
|
44
12
|
const { active, Kind, doneActionParent, onDone } = props;
|
|
45
13
|
const disabled = !active;
|
|
46
14
|
const { t } = (0, react_ui_1.useTranslation)('os');
|
|
47
|
-
const doneAction = (
|
|
48
|
-
return (
|
|
49
|
-
react_1.default.createElement("div", { role: 'none', className: 'grow flex flex-col justify-center' },
|
|
50
|
-
react_1.default.createElement("p", { className: 'text-center text-sm font-normal' }, t('welcome message'))),
|
|
51
|
-
react_1.default.createElement(components_1.Actions, null, doneActionParent ? (0, react_1.cloneElement)(doneActionParent, {}, doneAction) : doneAction)));
|
|
15
|
+
const doneAction = ((0, jsx_runtime_1.jsx)(components_1.Action, { variant: 'primary', onClick: onDone, disabled: disabled, "data-autofocus": `success${Kind}Invitation finishingJoining${Kind}`, "data-testid": `${Kind.toLowerCase()}-invitation-accepted-done`, children: t('done label') }));
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { role: 'none', className: 'grow flex flex-col justify-center', children: (0, jsx_runtime_1.jsx)("p", { className: 'text-center text-sm font-normal', children: t('welcome message') }) }), (0, jsx_runtime_1.jsx)(components_1.Actions, { children: doneActionParent ? (0, react_1.cloneElement)(doneActionParent, {}, doneAction) : doneAction })] }));
|
|
52
17
|
};
|
|
53
18
|
exports.InvitationAccepted = InvitationAccepted;
|
|
54
19
|
//# sourceMappingURL=InvitationAccepted.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationAccepted.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationAccepted.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InvitationAccepted.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationAccepted.tsx"],"names":[],"mappings":";;;;AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,iCAA4C;AAE5C,6CAAgD;AAEhD,oDAAsD;AAS/C,MAAM,kBAAkB,GAAG,CAAC,KAA8B,EAAE,EAAE;IACnE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzD,MAAM,QAAQ,GAAG,CAAC,MAAM,CAAC;IACzB,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,CAAC;IAEnC,MAAM,UAAU,GAAG,CACjB,uBAAC,mBAAM,IACL,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,QAAQ,oBACF,UAAU,IAAI,8BAA8B,IAAI,EAAE,iBACrD,GAAG,IAAI,CAAC,WAAW,EAAE,2BAA2B,YAE5D,CAAC,CAAC,YAAY,CAAC,GACT,CACV,CAAC;IAEF,OAAO,CACL,6DACE,gCAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,mCAAmC,YAC5D,8BAAG,SAAS,EAAC,iCAAiC,YAAE,CAAC,CAAC,iBAAiB,CAAC,GAAK,GACrE,EACN,uBAAC,oBAAO,cAAE,gBAAgB,CAAC,CAAC,CAAC,IAAA,oBAAY,EAAC,gBAAgB,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,GAAW,IAClG,CACJ,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,kBAAkB,sBAyB7B"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Invitation } from '@dxos/react-client/invitations';
|
|
3
2
|
import { type JoinStepProps } from '../JoinPanelProps';
|
|
4
3
|
export interface InvitationAuthenticatorProps extends JoinStepProps {
|
|
@@ -10,5 +9,5 @@ export interface InvitationAuthenticatorProps extends JoinStepProps {
|
|
|
10
9
|
onInvitationCancel?: () => Promise<void> | undefined;
|
|
11
10
|
onInvitationAuthenticate?: (authCode: string) => Promise<void> | undefined;
|
|
12
11
|
}
|
|
13
|
-
export declare const InvitationAuthenticator: ({ failed, Kind, authMethod, active, pending, invitationId, onInvitationAuthenticate, onInvitationCancel, }: InvitationAuthenticatorProps) =>
|
|
12
|
+
export declare const InvitationAuthenticator: ({ failed, Kind, authMethod, active, pending, invitationId, onInvitationAuthenticate, onInvitationCancel, }: InvitationAuthenticatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
//# sourceMappingURL=InvitationAuthenticator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationAuthenticator.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationAuthenticator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InvitationAuthenticator.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationAuthenticator.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAM5D,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIvD,MAAM,WAAW,4BAA6B,SAAQ,aAAa;IACjE,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC;IACnC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IACrD,wBAAwB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;CAC5E;AAED,eAAO,MAAM,uBAAuB,+GASjC,4BAA4B,4CAoF9B,CAAC"}
|