@dxos/shell 0.7.5-staging.e6154f3 → 0.8.1-main.303c73a
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 +2708 -2706
- 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,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Invitation } from '@dxos/react-client/invitations';
|
|
2
3
|
import { type JoinStepProps } from '../JoinPanelProps';
|
|
3
4
|
export interface InvitationAuthenticatorProps extends JoinStepProps {
|
|
@@ -9,5 +10,5 @@ export interface InvitationAuthenticatorProps extends JoinStepProps {
|
|
|
9
10
|
onInvitationCancel?: () => Promise<void> | undefined;
|
|
10
11
|
onInvitationAuthenticate?: (authCode: string) => Promise<void> | undefined;
|
|
11
12
|
}
|
|
12
|
-
export declare const InvitationAuthenticator: ({ failed, Kind, authMethod, active, pending, invitationId, onInvitationAuthenticate, onInvitationCancel, }: InvitationAuthenticatorProps) =>
|
|
13
|
+
export declare const InvitationAuthenticator: ({ failed, Kind, authMethod, active, pending, invitationId, onInvitationAuthenticate, onInvitationCancel, }: InvitationAuthenticatorProps) => React.JSX.Element;
|
|
13
14
|
//# 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":"AAIA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAE1D,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,sBAoF9B,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 { useState } from 'react';
|
|
4
|
+
import React, { useState } from 'react';
|
|
6
5
|
import { Invitation } from '@dxos/react-client/invitations';
|
|
7
6
|
import { Input, useTranslation } from '@dxos/react-ui';
|
|
8
7
|
import { descriptionText } from '@dxos/react-ui-theme';
|
|
@@ -21,17 +20,32 @@ export const InvitationAuthenticator = ({ failed, Kind, authMethod, active, pend
|
|
|
21
20
|
(_a = document.querySelector(`[data-autofocus-pinlength="${invitationType}"]`)) === null || _a === void 0 ? void 0 : _a.focus();
|
|
22
21
|
}
|
|
23
22
|
};
|
|
24
|
-
return (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
23
|
+
return (React.createElement(React.Fragment, null,
|
|
24
|
+
React.createElement("div", { role: 'none', className: 'grow flex flex-col justify-center gap-4' },
|
|
25
|
+
React.createElement(Input.Root, { ...(failed && {
|
|
26
|
+
validationValence: 'error',
|
|
27
|
+
}) },
|
|
28
|
+
React.createElement(Input.Label, { asChild: true }, authMethod === Invitation.AuthMethod.SHARED_SECRET ? (React.createElement(StepHeading, null, t('auth code input label'))) : (React.createElement(React.Fragment, null,
|
|
29
|
+
React.createElement(StepHeading, { className: descriptionText }, t('authenticating label')),
|
|
30
|
+
React.createElement("div", { role: 'none', className: 'grow' })))),
|
|
31
|
+
authMethod === Invitation.AuthMethod.SHARED_SECRET && (React.createElement(Input.PinInput, { disabled,
|
|
32
|
+
length: pinLength,
|
|
33
|
+
onChange,
|
|
34
|
+
inputMode: 'numeric',
|
|
35
|
+
autoComplete: 'off',
|
|
36
|
+
pattern: '\\d*',
|
|
37
|
+
'data-autofocus': `connecting${Kind}Invitation inputting${Kind}VerificationCode authenticationFailing${Kind}VerificationCode authenticating${Kind}VerificationCode`,
|
|
38
|
+
'data-prevent-ios-autofocus': true,
|
|
39
|
+
'data-testid': `${invitationType}-auth-code-input`,
|
|
40
|
+
'data-1p-ignore': true })),
|
|
41
|
+
failed && (React.createElement(Input.DescriptionAndValidation, { classNames: 'text-center' },
|
|
42
|
+
React.createElement(Input.Validation, null, t('failed to authenticate message'))))),
|
|
43
|
+
invitationId && authMethod === Invitation.AuthMethod.SHARED_SECRET && (React.createElement(React.Fragment, null,
|
|
44
|
+
React.createElement(Label, null, t('auth other device emoji message')),
|
|
45
|
+
React.createElement("div", { className: 'flex justify-center' },
|
|
46
|
+
React.createElement(Emoji, { text: hexToEmoji(invitationId) }))))),
|
|
47
|
+
React.createElement(Actions, null,
|
|
48
|
+
React.createElement(Action, { variant: 'ghost', disabled: disabled, onClick: () => onInvitationCancel === null || onInvitationCancel === void 0 ? void 0 : onInvitationCancel(), "data-testid": `${invitationType}-invitation-authenticator-cancel` }, t('cancel label')),
|
|
49
|
+
React.createElement(Action, { variant: 'primary', disabled: disabled, onClick: () => onInvitationAuthenticate === null || onInvitationAuthenticate === void 0 ? void 0 : onInvitationAuthenticate(authCode), "data-autofocus-pinlength": invitationType, "data-testid": `${invitationType}-invitation-authenticator-next` }, t('next label')))));
|
|
36
50
|
};
|
|
37
51
|
//# sourceMappingURL=InvitationAuthenticator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationAuthenticator.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationAuthenticator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InvitationAuthenticator.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationAuthenticator.tsx"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,EAAE,EAAoB,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAGjF,MAAM,SAAS,GAAG,CAAC,CAAC;AAYpB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EACtC,MAAM,EACN,IAAI,EACJ,UAAU,EACV,MAAM,EACN,OAAO,EACP,YAAY,EACZ,wBAAwB,EACxB,kBAAkB,GACW,EAAE,EAAE;IACjC,MAAM,QAAQ,GAAG,CAAC,MAAM,IAAI,OAAO,CAAC;IACpC,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IACnC,MAAM,cAAc,GAAG,IAAI,CAAC,WAAW,EAAsB,CAAC;IAC9D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,C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ACH;gBACA,MAAM,IAAI,CACT,oBAAC,KAAK,CAAC,wBAAwB,IAAC,UAAU,EAAC,aAAa;oBACtD,oBAAC,KAAK,CAAC,UAAU,QAAE,CAAC,CAAC,gCAAgC,CAAC,CAAoB,CAC3C,CAClC,CACU;YAEZ,YAAY,IAAI,UAAU,KAAK,UAAU,CAAC,UAAU,CAAC,aAAa,IAAI,CACrE;gBACE,oBAAC,KAAK,QAAE,CAAC,CAAC,iCAAiC,CAAC,CAAS;gBACrD,6BAAK,SAAS,EAAC,qBAAqB;oBAClC,oBAAC,KAAK,IAAC,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC,GAAI,CACrC,CACL,CACJ,CACG;QACN,oBAAC,OAAO;YACN,oBAAC,MAAM,IACL,OAAO,EAAC,OAAO,EACf,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,EAAI,iBACxB,GAAG,cAAc,kCAAkC,IAE/D,CAAC,CAAC,cAAc,CAAC,CACX;YACT,oBAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,wBAAwB,aAAxB,wBAAwB,uBAAxB,wBAAwB,CAAG,QAAQ,CAAC,8BACzB,cAAc,iBAC3B,GAAG,cAAc,gCAAgC,IAE7D,CAAC,CAAC,YAAY,CAAC,CACT,CACD,CACT,CACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type JoinPanelProps, type JoinStepProps } from '../JoinPanelProps';
|
|
2
3
|
export interface InvitationInputProps extends JoinStepProps, Pick<JoinPanelProps, 'onExit' | 'exitActionParent'> {
|
|
3
4
|
Kind: 'Space' | 'Halo';
|
|
4
5
|
unredeemedCode?: string;
|
|
5
6
|
succeededKeys?: Set<string>;
|
|
6
7
|
}
|
|
7
|
-
export declare const InvitationInput: (props: InvitationInputProps) =>
|
|
8
|
+
export declare const InvitationInput: (props: InvitationInputProps) => React.JSX.Element;
|
|
8
9
|
//# sourceMappingURL=InvitationInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationInput.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InvitationInput.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationInput.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAMjE,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE5E,MAAM,WAAW,oBAAqB,SAAQ,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,kBAAkB,CAAC;IAC9G,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC7B;AAaD,eAAO,MAAM,eAAe,UAAW,oBAAoB,sBAqE1D,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
|
-
import { useState, useEffect, cloneElement } from 'react';
|
|
4
|
+
import React, { useState, useEffect, cloneElement } from 'react';
|
|
6
5
|
import { log } from '@dxos/log';
|
|
7
6
|
import { useTranslation } from '@dxos/react-ui';
|
|
8
7
|
import { Actions, StepHeading, Action, Input } from '../../../components';
|
|
@@ -36,13 +35,18 @@ export const InvitationInput = (props) => {
|
|
|
36
35
|
...(Kind === 'Space' && { succeededKeys }),
|
|
37
36
|
});
|
|
38
37
|
};
|
|
39
|
-
const exitAction = (
|
|
40
|
-
return (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
const exitAction = (React.createElement(Action, { variant: 'ghost', disabled: disabled, ...(onExit ? { onClick: () => onExit() } : { onClick: () => onDone === null || onDone === void 0 ? void 0 : onDone(null) }), "data-testid": 'join-exit' }, t('cancel label')));
|
|
39
|
+
return (React.createElement(React.Fragment, null,
|
|
40
|
+
React.createElement("div", { role: 'none', className: 'grow flex flex-col justify-center' },
|
|
41
|
+
React.createElement(Input, { label: React.createElement(StepHeading, null, t('invitation input label')), placeholder: t('invitation input placeholder'), disabled: disabled, value: inputValue, onChange: ({ target: { value } }) => setInputValue(value), "data-autofocus": `inputting${Kind}InvitationCode`, "data-testid": `${Kind.toLowerCase()}-invitation-input`, onKeyUp: ({ key }) => key === 'Enter' && handleNext() })),
|
|
42
|
+
React.createElement(Actions, null,
|
|
43
|
+
Kind === 'Halo'
|
|
44
|
+
? null
|
|
45
|
+
: exitActionParent
|
|
46
|
+
? cloneElement(exitActionParent, {}, exitAction)
|
|
47
|
+
: doneActionParent
|
|
48
|
+
? cloneElement(doneActionParent, {}, exitAction)
|
|
49
|
+
: exitAction,
|
|
50
|
+
React.createElement(Action, { variant: 'primary', disabled: disabled || inputValue.trim().length === 0, onClick: handleNext, "data-testid": `${Kind.toLowerCase()}-invitation-input-continue` }, t('continue label')))));
|
|
47
51
|
};
|
|
48
52
|
//# sourceMappingURL=InvitationInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationInput.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InvitationInput.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationInput.tsx"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK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AAG,IAAI,CAAC,WAAW,EAAE,mBAAmB,EACrD,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,KAAK,OAAO,IAAI,UAAU,EAAE,GACrD,CACE;QACN,oBAAC,OAAO;YAEL,IAAI,KAAK,MAAM;gBACd,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,gBAAgB;oBAChB,CAAC,CAAC,YAAY,CAAC,gBAAgB,EAAE,EAAE,EAAE,UAAU,CAAC;oBAChD,CAAC,CAAC,gBAAgB;wBAChB,CAAC,CAAC,YAAY,CAAC,gBAAgB,EAAE,EAAE,EAAE,UAAU,CAAC;wBAChD,CAAC,CAAC,UAAU;YAClB,oBAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,QAAQ,EAAE,QAAQ,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EACpD,OAAO,EAAE,UAAU,iBACN,GAAG,IAAI,CAAC,WAAW,EAAE,4BAA4B,IAE7D,CAAC,CAAC,gBAAgB,CAAC,CACb,CACD,CACT,CACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type Invitation } from '@dxos/react-client/invitations';
|
|
2
3
|
import { type FailReason } from '../../../types';
|
|
3
4
|
import { type JoinStepProps } from '../JoinPanelProps';
|
|
@@ -7,5 +8,5 @@ export interface InvitationRescuerProps extends JoinStepProps {
|
|
|
7
8
|
onInvitationCancel?: () => Promise<void> | undefined;
|
|
8
9
|
failReason?: FailReason | null;
|
|
9
10
|
}
|
|
10
|
-
export declare const InvitationRescuer: (props: InvitationRescuerProps) =>
|
|
11
|
+
export declare const InvitationRescuer: (props: InvitationRescuerProps) => React.JSX.Element;
|
|
11
12
|
//# sourceMappingURL=InvitationRescuer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationRescuer.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationRescuer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InvitationRescuer.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationRescuer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAKjE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IAC3D,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IACrD,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAChC;AAwDD,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,sBA0B9D,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
import React from 'react';
|
|
2
5
|
import { useTranslation } from '@dxos/react-ui';
|
|
3
6
|
import { descriptionText } from '@dxos/react-ui-theme';
|
|
4
7
|
import { Action, Actions, StepHeading } from '../../../components';
|
|
@@ -8,19 +11,32 @@ const InvitationActions = ({
|
|
|
8
11
|
invitationState, onInvitationCancel, active, send, Kind, failReason, }) => {
|
|
9
12
|
const { t } = useTranslation('os');
|
|
10
13
|
if (failReason) {
|
|
11
|
-
return (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
return (React.createElement(React.Fragment, null,
|
|
15
|
+
React.createElement(StepHeading, { className: descriptionText }, t(failReason === 'timeout'
|
|
16
|
+
? 'timeout status label'
|
|
17
|
+
: failReason === 'cancelled'
|
|
18
|
+
? 'cancelled status label'
|
|
19
|
+
: 'error status label')),
|
|
20
|
+
React.createElement("div", { role: 'none', className: 'grow' }),
|
|
21
|
+
React.createElement(Actions, null,
|
|
22
|
+
React.createElement(Action, { disabled: !active, onClick: () => send({ type: `reset${Kind}Invitation` }), "data-testid": 'invitation-rescuer-reset' }, t('reset label')))));
|
|
16
23
|
}
|
|
17
24
|
else {
|
|
18
|
-
return (
|
|
25
|
+
return (React.createElement(React.Fragment, null,
|
|
26
|
+
React.createElement(StepHeading, { className: descriptionText }, t('connecting status label')),
|
|
27
|
+
React.createElement("div", { role: 'none', className: 'grow' }),
|
|
28
|
+
React.createElement(Actions, null,
|
|
29
|
+
React.createElement(Action, { disabled: true, classNames: 'order-2', "data-testid": 'next' }, t('next label')),
|
|
30
|
+
React.createElement(Action, { disabled: !active, onClick: onInvitationCancel, "data-testid": 'invitation-rescuer-cancel' }, t('cancel label')))));
|
|
19
31
|
}
|
|
20
32
|
};
|
|
21
33
|
export const InvitationRescuer = (props) => {
|
|
22
34
|
const { Kind, invitationState, active, send } = props;
|
|
23
35
|
const { t } = useTranslation('os');
|
|
24
|
-
return (
|
|
36
|
+
return (React.createElement(React.Fragment, null, typeof invitationState === 'undefined' ? (React.createElement(React.Fragment, null,
|
|
37
|
+
React.createElement("div", { role: 'none', className: 'grow flex flex-col justify-center' },
|
|
38
|
+
React.createElement(StepHeading, { className: descriptionText }, "There was a problem joining the space")),
|
|
39
|
+
React.createElement(Actions, null,
|
|
40
|
+
React.createElement(Action, { disabled: !active, "data-testid": 'invitation-rescuer-blank-reset', onClick: () => send({ type: `reset${Kind}Invitation` }) }, t('reset label'))))) : (React.createElement(InvitationActions, { ...props }))));
|
|
25
41
|
};
|
|
26
42
|
//# sourceMappingURL=InvitationRescuer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationRescuer.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationRescuer.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"InvitationRescuer.js","sourceRoot":"","sources":["../../../../../../src/panels/JoinPanel/steps/InvitationRescuer.tsx"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAWnE,MAAM,iBAAiB,GAAG,CAAC;AACzB,qHAAqH;AACrH,4BAA4B;AAC5B,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,UAAU,GACa,EAAE,EAAE;IAC3B,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IAEnC,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,CACL;YACE,oBAAC,WAAW,IAAC,SAAS,EAAE,eAAe,IACpC,CAAC,CACA,UAAU,KAAK,SAAS;gBACtB,CAAC,CAAC,sBAAsB;gBACxB,CAAC,CAAC,UAAU,KAAK,WAAW;oBAC1B,CAAC,CAAC,wBAAwB;oBAC1B,CAAC,CAAC,oBAAoB,CAC3B,CACW;YACd,6BAAK,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,MAAM,GAAG;YACpC,oBAAC,OAAO;gBACN,oBAAC,MAAM,IACL,QAAQ,EAAE,CAAC,MAAM,EACjB,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,IAAI,YAAY,EAAE,CAAC,iBAC3C,0BAA0B,IAErC,CAAC,CAAC,aAAa,CAAC,CACV,CACD,CACT,CACJ,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO,CACL;Y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
2
|
-
import { type FC } from 'react';
|
|
2
|
+
import React, { type FC } from 'react';
|
|
3
3
|
export declare const Default: {
|
|
4
|
-
(props: any):
|
|
4
|
+
(props: any): React.JSX.Element;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -11,7 +11,7 @@ declare const _default: {
|
|
|
11
11
|
decorators: import("@storybook/react").Decorator[];
|
|
12
12
|
component: ({ components }: {
|
|
13
13
|
components: FC[];
|
|
14
|
-
}) =>
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
15
|
parameters: {
|
|
16
16
|
chromatic: {
|
|
17
17
|
disableSnapshot: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panels.stories.d.ts","sourceRoot":"","sources":["../../../../src/panels/Panels.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,
|
|
1
|
+
{"version":3,"file":"Panels.stories.d.ts","sourceRoot":"","sources":["../../../../src/panels/Panels.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAiCvC,eAAO,MAAM,OAAO;YAAW,GAAG;;;;CAWjC,CAAC;;;;gCAxBgC;QAAE,UAAU,EAAE,EAAE,EAAE,CAAA;KAAE;;;;;;;;;;AA4BtD,wBAKE"}
|
|
@@ -1,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 * as IdentityPanels from './IdentityPanel/IdentityPanel.stories';
|
|
8
8
|
import * as SpacePanels from './SpacePanel/SpacePanel.stories';
|
|
@@ -18,10 +18,15 @@ const camelCaseToSpacedName = (camelCase) => {
|
|
|
18
18
|
return camelCase.replace(/([a-z0-9])([A-Z])/g, '$1 $2').replace(/([A-Z])([A-Z][a-z])/g, '$1 $2');
|
|
19
19
|
};
|
|
20
20
|
const StoryRow = ({ components }) => {
|
|
21
|
-
return (
|
|
21
|
+
return (React.createElement("tr", { style: { whiteSpace: 'nowrap' } }, components === null || components === void 0 ? void 0 : components.map((Comp) => (React.createElement("td", { key: Comp.name },
|
|
22
|
+
React.createElement("div", { className: 'bg-zinc-500 text-zinc-200 p-3 text-sm text-center' }, camelCaseToSpacedName(Comp.name)),
|
|
23
|
+
React.createElement(Comp, null))))));
|
|
22
24
|
};
|
|
23
25
|
export const Default = (props) => {
|
|
24
|
-
return (
|
|
26
|
+
return (React.createElement("table", { className: 'bg-body' },
|
|
27
|
+
React.createElement("tbody", null,
|
|
28
|
+
React.createElement(StoryRow, { components: getComponents(IdentityPanels) }),
|
|
29
|
+
React.createElement(StoryRow, { components: getComponents(SpacePanels) }))));
|
|
25
30
|
};
|
|
26
31
|
Default.parameters = { layout: 'fullscreen' };
|
|
27
32
|
export default {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panels.stories.js","sourceRoot":"","sources":["../../../../src/panels/Panels.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Panels.stories.js","sourceRoot":"","sources":["../../../../src/panels/Panels.stories.tsx"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,aAAa,CAAC;AAErB,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,KAAK,cAAc,MAAM,uCAAuC,CAAC;AACxE,OAAO,KAAK,WAAW,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,iBAAiB,GAAG,CAAC,MAAW,EAAY,EAAE;;IA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vD,oBAAC,QAAQ,IAAC,UAAU,EAAE,aAAa,CAAC,WAAW,CAAC,GAAI,CAG9C,CACF,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,UAAU,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;AAE9C,eAAe;IACb,KAAK,EAAE,eAAe;IACtB,UAAU,EAAE,CAAC,SAAS,CAAC;IACvB,SAAS,EAAE,QAAQ;IACnB,UAAU,EAAE,EAAE,SAAS,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,CAAC,cAAc,CAAC,EAAE;CACtF,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { type SpacePanelImplProps, type SpacePanelProps } from './SpacePanelProps';
|
|
2
|
-
export declare const SpacePanelImpl: (props: SpacePanelImplProps) =>
|
|
3
|
-
export declare const SpacePanel: ({ titleId: propsTitleId, createInvitationUrl, ...props }: SpacePanelProps) =>
|
|
3
|
+
export declare const SpacePanelImpl: (props: SpacePanelImplProps) => React.JSX.Element;
|
|
4
|
+
export declare const SpacePanel: ({ titleId: propsTitleId, createInvitationUrl, ...props }: SpacePanelProps) => React.JSX.Element;
|
|
4
5
|
//# sourceMappingURL=SpacePanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpacePanel.d.ts","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SpacePanel.d.ts","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAO,EAA+B,KAAK,mBAAmB,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAwBhH,eAAO,MAAM,cAAc,UAAW,mBAAmB,sBA+BxD,CAAC;AAgBF,eAAO,MAAM,UAAU,6DAIpB,eAAe,sBAsCjB,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
1
|
//
|
|
3
2
|
// Copyright 2023 DXOS.org
|
|
4
3
|
//
|
|
5
4
|
import { Planet } from '@phosphor-icons/react';
|
|
6
|
-
import { useEffect, useMemo } from 'react';
|
|
5
|
+
import React, { useEffect, useMemo } from 'react';
|
|
7
6
|
import { log } from '@dxos/log';
|
|
8
7
|
import { useInvitationStatus } from '@dxos/react-client/invitations';
|
|
9
8
|
import { useId, useTranslation } from '@dxos/react-ui';
|
|
@@ -15,15 +14,25 @@ import { stepStyles } from '../../styles';
|
|
|
15
14
|
const SpacePanelHeading = ({ titleId, space, onDone }) => {
|
|
16
15
|
const { t } = useTranslation('os');
|
|
17
16
|
const name = space.properties.name;
|
|
18
|
-
return (
|
|
17
|
+
return (React.createElement(Heading, { titleId: titleId, title: t('space panel heading'), corner: React.createElement(CloseButton, { "data-testid": 'identity-panel-done', onDone: onDone }) },
|
|
18
|
+
React.createElement("div", { role: 'none', className: 'flex gap-4 items-center justify-center mlb-4' },
|
|
19
|
+
React.createElement(Planet, { size: 32, weight: 'light' }),
|
|
20
|
+
React.createElement("div", { className: 'block text-start font-light text-xl' }, name !== null && name !== void 0 ? name : space.key.truncate()))));
|
|
19
21
|
};
|
|
20
22
|
export const SpacePanelImpl = (props) => {
|
|
21
23
|
const { titleId, activeView, space, hideHeading, target, SpaceManager: SpaceManagerComponent = SpaceManager, InvitationManager: InvitationManagerComponent = InvitationManager, ...rest } = props;
|
|
22
|
-
return (
|
|
24
|
+
return (React.createElement(React.Fragment, null,
|
|
25
|
+
!hideHeading && React.createElement(SpacePanelHeading, { ...rest, titleId, space }),
|
|
26
|
+
React.createElement(Viewport.Root, { activeView: activeView },
|
|
27
|
+
React.createElement(Viewport.Views, null,
|
|
28
|
+
React.createElement(Viewport.View, { id: 'space manager', classNames: stepStyles },
|
|
29
|
+
React.createElement(SpaceManagerComponent, { active: activeView === 'space manager', space: space, target: target, ...rest })),
|
|
30
|
+
React.createElement(Viewport.View, { id: 'space invitation manager', classNames: stepStyles },
|
|
31
|
+
React.createElement(InvitationManagerComponent, { active: activeView === 'space invitation manager', ...rest, invitationUrl: props.invitationUrl }))))));
|
|
23
32
|
};
|
|
24
33
|
const SpacePanelWithInvitationImpl = ({ invitation, ...props }) => {
|
|
25
34
|
const invitationStatus = useInvitationStatus(invitation);
|
|
26
|
-
return (
|
|
35
|
+
return (React.createElement(SpacePanelImpl, { ...props, ...invitationStatus, invitationUrl: props.createInvitationUrl(invitationStatus.invitationCode) }));
|
|
27
36
|
};
|
|
28
37
|
export const SpacePanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => code, ...props }) => {
|
|
29
38
|
const titleId = useId('spacePanel__heading', propsTitleId);
|
|
@@ -53,6 +62,6 @@ export const SpacePanel = ({ titleId: propsTitleId, createInvitationUrl = (code)
|
|
|
53
62
|
};
|
|
54
63
|
return spaceState.context.invitation ? (
|
|
55
64
|
// TODO(wittjosiah): Unused? Remove?
|
|
56
|
-
|
|
65
|
+
React.createElement(SpacePanelWithInvitationImpl, { ...implProps, invitation: spaceState.context.invitation })) : (React.createElement(SpacePanelImpl, { ...implProps }));
|
|
57
66
|
};
|
|
58
67
|
//# sourceMappingURL=SpacePanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpacePanel.js","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SpacePanel.js","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.tsx"],"names":[],"mappings":"AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO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1
|
import '@dxos-theme';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { type SpacePanelImplProps } from './SpacePanelProps';
|
|
3
4
|
declare const _default: {
|
|
4
5
|
title: string;
|
|
5
|
-
component: (props: SpacePanelImplProps) =>
|
|
6
|
+
component: (props: SpacePanelImplProps) => React.JSX.Element;
|
|
6
7
|
decorators: import("@storybook/react").Decorator[];
|
|
7
8
|
parameters: {
|
|
8
9
|
chromatic: {
|
|
@@ -11,20 +12,20 @@ declare const _default: {
|
|
|
11
12
|
};
|
|
12
13
|
};
|
|
13
14
|
export default _default;
|
|
14
|
-
export declare const SpaceManager: () =>
|
|
15
|
-
export declare const SpaceManagerWithInvites: () =>
|
|
16
|
-
export declare const SpaceManagerWithMoreInvites: () =>
|
|
17
|
-
export declare const SpaceManagerWithEvenMoreInvites: () =>
|
|
18
|
-
export declare const SpaceManagerWithMember: () =>
|
|
19
|
-
export declare const SpaceManagerWithMembers: () =>
|
|
20
|
-
export declare const SpaceManagerWithMoreMembers: () =>
|
|
21
|
-
export declare const SpaceInvitationManagerInit: () =>
|
|
22
|
-
export declare const SpaceInvitationManagerConnecting: () =>
|
|
23
|
-
export declare const SpaceInvitationManagerConnected: () =>
|
|
24
|
-
export declare const SpaceInvitationManagerReadyForAuthentication: () =>
|
|
25
|
-
export declare const SpaceInvitationManagerAuthenticating: () =>
|
|
26
|
-
export declare const SpaceInvitationManagerSuccess: () =>
|
|
27
|
-
export declare const SpaceInvitationManagerError: () =>
|
|
28
|
-
export declare const SpaceInvitationManagerTimeout: () =>
|
|
29
|
-
export declare const SpaceInvitationManagerCancelled: () =>
|
|
15
|
+
export declare const SpaceManager: () => React.JSX.Element;
|
|
16
|
+
export declare const SpaceManagerWithInvites: () => React.JSX.Element;
|
|
17
|
+
export declare const SpaceManagerWithMoreInvites: () => React.JSX.Element;
|
|
18
|
+
export declare const SpaceManagerWithEvenMoreInvites: () => React.JSX.Element;
|
|
19
|
+
export declare const SpaceManagerWithMember: () => React.JSX.Element;
|
|
20
|
+
export declare const SpaceManagerWithMembers: () => React.JSX.Element;
|
|
21
|
+
export declare const SpaceManagerWithMoreMembers: () => React.JSX.Element;
|
|
22
|
+
export declare const SpaceInvitationManagerInit: () => React.JSX.Element;
|
|
23
|
+
export declare const SpaceInvitationManagerConnecting: () => React.JSX.Element;
|
|
24
|
+
export declare const SpaceInvitationManagerConnected: () => React.JSX.Element;
|
|
25
|
+
export declare const SpaceInvitationManagerReadyForAuthentication: () => React.JSX.Element;
|
|
26
|
+
export declare const SpaceInvitationManagerAuthenticating: () => React.JSX.Element;
|
|
27
|
+
export declare const SpaceInvitationManagerSuccess: () => React.JSX.Element;
|
|
28
|
+
export declare const SpaceInvitationManagerError: () => React.JSX.Element;
|
|
29
|
+
export declare const SpaceInvitationManagerTimeout: () => React.JSX.Element;
|
|
30
|
+
export declare const SpaceInvitationManagerCancelled: () => React.JSX.Element;
|
|
30
31
|
//# sourceMappingURL=SpacePanel.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpacePanel.stories.d.ts","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"SpacePanel.stories.d.ts","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;;;AAe7D,wBAKE;AAEF,eAAO,MAAM,YAAY,yBAkBxB,CAAC;AAEF,eAAO,MAAM,uBAAuB,yBAkBnC,CAAC;AAEF,eAAO,MAAM,2BAA2B,yBAsBvC,CAAC;AAEF,eAAO,MAAM,+BAA+B,yBA4D3C,CAAC;AAEF,eAAO,MAAM,sBAAsB,yBAgClC,CAAC;AAEF,eAAO,MAAM,uBAAuB,yBAmCnC,CAAC;AAEF,eAAO,MAAM,2BAA2B,yBA6DvC,CAAC;AAuBF,eAAO,MAAM,0BAA0B,yBAAgF,CAAC;AAExH,eAAO,MAAM,gCAAgC,yBACkC,CAAC;AAEhF,eAAO,MAAM,+BAA+B,yBACkC,CAAC;AAE/E,eAAO,MAAM,4CAA4C,yBACwD,CAAC;AAElH,eAAO,MAAM,oCAAoC,yBACkC,CAAC;AAEpF,eAAO,MAAM,6BAA6B,yBAA0E,CAAC;AAErH,eAAO,MAAM,2BAA2B,yBAAwE,CAAC;AAEjH,eAAO,MAAM,6BAA6B,yBAA0E,CAAC;AAErH,eAAO,MAAM,+BAA+B,yBACyB,CAAC"}
|