@dxos/shell 0.3.11-main.8a2cfe6 → 0.3.11-main.8a9dd1e
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 +36674 -0
- package/dist/bundle/shell.mjs.map +1 -0
- package/dist/bundle/shell.umd.js +210 -0
- package/dist/bundle/shell.umd.js.map +1 -0
- package/dist/bundle/style.css +1 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +702 -397
- package/dist/lib/browser/react.mjs.map +4 -4
- package/dist/lib/browser/testing/index.mjs.map +1 -1
- package/dist/types/src/components/IdentityList/DeviceList.d.ts.map +1 -1
- package/dist/types/src/components/IdentityList/DeviceList.js +5 -3
- package/dist/types/src/components/IdentityList/DeviceList.js.map +1 -1
- package/dist/types/src/components/Panel/Action.js +1 -1
- package/dist/types/src/components/Panel/Action.js.map +1 -1
- package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/Shell.js +15 -5
- package/dist/types/src/composites/Shell/Shell.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js +23 -6
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts +6 -0
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js +26 -3
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.d.ts +19 -8
- package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/identityMachine.d.ts +1 -1
- package/dist/types/src/panels/IdentityPanel/identityMachine.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/identityMachine.js +12 -3
- package/dist/types/src/panels/IdentityPanel/identityMachine.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/AgentForm.d.ts +3 -0
- package/dist/types/src/panels/IdentityPanel/steps/AgentForm.d.ts.map +1 -0
- package/dist/types/src/panels/IdentityPanel/steps/AgentForm.js +26 -0
- package/dist/types/src/panels/IdentityPanel/steps/AgentForm.js.map +1 -0
- package/dist/types/src/panels/IdentityPanel/steps/DeviceManager.d.ts +10 -0
- package/dist/types/src/panels/IdentityPanel/steps/DeviceManager.d.ts.map +1 -0
- package/dist/types/src/panels/IdentityPanel/steps/DeviceManager.js +23 -0
- package/dist/types/src/panels/IdentityPanel/steps/DeviceManager.js.map +1 -0
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js +9 -1
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts +0 -1
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js +2 -3
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/SignOutChooser.d.ts +16 -0
- package/dist/types/src/panels/IdentityPanel/steps/SignOutChooser.d.ts.map +1 -0
- package/dist/types/src/panels/IdentityPanel/steps/SignOutChooser.js +40 -0
- package/dist/types/src/panels/IdentityPanel/steps/SignOutChooser.js.map +1 -0
- package/dist/types/src/panels/IdentityPanel/steps/index.d.ts +3 -0
- package/dist/types/src/panels/IdentityPanel/steps/index.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/index.js +3 -0
- package/dist/types/src/panels/IdentityPanel/steps/index.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.d.ts +15 -0
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.d.ts.map +1 -0
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js +78 -0
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js.map +1 -0
- package/dist/types/src/panels/JoinPanel/JoinPanel.js +4 -3
- package/dist/types/src/panels/JoinPanel/JoinPanel.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/joinMachine.js +1 -1
- package/dist/types/src/panels/JoinPanel/joinMachine.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.js +5 -3
- package/dist/types/src/panels/SpacePanel/SpacePanel.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js +2 -2
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanelProps.d.ts +1 -0
- package/dist/types/src/panels/SpacePanel/SpacePanelProps.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts +1 -0
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js +3 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js.map +1 -1
- package/dist/types/src/translations/locales/en-US.d.ts +6 -0
- package/dist/types/src/translations/locales/en-US.d.ts.map +1 -1
- package/dist/types/src/translations/locales/en-US.js +7 -1
- package/dist/types/src/translations/locales/en-US.js.map +1 -1
- package/package.json +20 -19
- package/src/components/IdentityList/DeviceList.tsx +7 -5
- package/src/components/Panel/Action.tsx +1 -1
- package/src/composites/Shell/Shell.tsx +16 -3
- package/src/panels/IdentityPanel/IdentityPanel.stories.tsx +44 -2
- package/src/panels/IdentityPanel/IdentityPanel.tsx +34 -7
- package/src/panels/IdentityPanel/IdentityPanelProps.ts +27 -8
- package/src/panels/IdentityPanel/identityMachine.ts +13 -4
- package/src/panels/IdentityPanel/steps/AgentForm.tsx +61 -0
- package/src/panels/IdentityPanel/steps/DeviceManager.tsx +41 -0
- package/src/panels/IdentityPanel/steps/IdentityActionChooser.tsx +12 -7
- package/src/panels/IdentityPanel/steps/ProfileForm.tsx +1 -1
- package/src/panels/IdentityPanel/steps/SignOutChooser.tsx +82 -0
- package/src/panels/IdentityPanel/steps/index.ts +3 -0
- package/src/panels/IdentityPanel/useAgentHandlers.ts +88 -0
- package/src/panels/JoinPanel/JoinPanel.tsx +2 -2
- package/src/panels/JoinPanel/joinMachine.ts +1 -1
- package/src/panels/SpacePanel/SpacePanel.stories.tsx +2 -1
- package/src/panels/SpacePanel/SpacePanel.tsx +4 -1
- package/src/panels/SpacePanel/SpacePanelProps.ts +1 -0
- package/src/panels/SpacePanel/steps/SpaceManager.tsx +4 -1
- package/src/translations/locales/en-US.ts +7 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpacePanel.stories.js","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanel.stories.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,sBAAoB;AAEpB,kDAA0B;AAE1B,qCAAuC;AACvC,kDAAsD;AACtD,gEAA4D;AAC5D,2DAAkD;AAElD,6CAA8C;AAE9C,mCAA2C;AAC3C,iDAA+F;AAC/F,sEAAmE;AACnE,uCAA6E;AAC7E,2CAAgD;AAEhD,MAAM,SAAS,GAAwB;IACrC,OAAO,EAAE,4BAA4B;IACrC,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC;IACd,mBAAmB,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI;IAC3C,UAAU,EAAE,eAAe;IAC3B,KAAK,EAAE,EAAE,GAAG,EAAE,gBAAS,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE;CAC1E,CA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,wCACmC;AAE7E,MAAM,6BAA6B,GAAG,GAAG,EAAE,CAAC,2BAA2B,CAAC,EAAE,MAAM,EAAE,wBAAU,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;AAAxG,QAAA,6BAA6B,iCAA2E;AAE9G,MAAM,2BAA2B,GAAG,GAAG,EAAE,CAAC,2BAA2B,CAAC,EAAE,MAAM,EAAE,wBAAU,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;AAApG,QAAA,2BAA2B,+BAAyE;AAE1G,MAAM,6BAA6B,GAAG,GAAG,EAAE,CAAC,2BAA2B,CAAC,EAAE,MAAM,EAAE,wBAAU,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;AAAxG,QAAA,6BAA6B,iCAA2E;AAE9G,MAAM,+BAA+B,GAAG,GAAG,EAAE,CAClD,2BAA2B,CAAC,EAAE,MAAM,EAAE,wBAAU,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;AADzD,QAAA,+BAA+B,mCAC0B"}
|
|
@@ -12,6 +12,7 @@ export type SpacePanelImplProps = {
|
|
|
12
12
|
titleId: string;
|
|
13
13
|
activeView: string;
|
|
14
14
|
send: (event: SingleOrArray<Event<any>>) => void;
|
|
15
|
+
target?: string;
|
|
15
16
|
createInvitationUrl: (invitationCode: string) => string;
|
|
16
17
|
space: ErsatzSpace | Space;
|
|
17
18
|
invitationUrl?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpacePanelProps.d.ts","sourceRoot":"","sources":["../../../../../src/panels/SpacePanel/SpacePanelProps.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAExD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MA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M,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,UAAU,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC;IAC3C,iBAAiB,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAAC,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,GAC9D,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,YAAY,GAAG,OAAO,CAAC,CAAC,CAAC;AAEtE,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,kBAAkB,CAAC,CAAC;AAEpH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,mBAAmB,EACnB,OAAO,GAAG,qBAAqB,GAAG,MAAM,GAAG,QAAQ,GAAG,kBAAkB,GAAG,YAAY,CACxF,GAAG;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { type CancellableInvitationObservable } from '@dxos/react-client/invitat
|
|
|
3
3
|
import { type InvitationListProps, type SpaceMemberListProps, type ActionMenuItem } from '../../../components';
|
|
4
4
|
import { type SpacePanelStepProps } from '../SpacePanelProps';
|
|
5
5
|
export type SpaceManagerImplProps = SpacePanelStepProps & {
|
|
6
|
+
target?: string;
|
|
6
7
|
invitations?: CancellableInvitationObservable[];
|
|
7
8
|
showInactiveInvitations?: boolean;
|
|
8
9
|
inviteActions?: Record<string, ActionMenuItem>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpaceManager.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/SpacePanel/steps/SpaceManager.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAoE,MAAM,OAAO,CAAC;AAIzF,OAAO,EAAE,KAAK,+BAA+B,EAAiC,MAAM,gCAAgC,CAAC;AAIrH,OAAO,EAEL,KAAK,mBAAmB,EAGxB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,GAAG;IACxD,WAAW,CAAC,EAAE,+BAA+B,EAAE,CAAC;IAChD,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC/C,eAAe,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAAC,CAAC;IACjD,cAAc,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC;CAChD,CAAC;AAIF,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,GAAG,EAAE,CAAC;AAE3D,eAAO,MAAM,YAAY,UAAW,iBAAiB,
|
|
1
|
+
{"version":3,"file":"SpaceManager.d.ts","sourceRoot":"","sources":["../../../../../../src/panels/SpacePanel/steps/SpaceManager.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAoE,MAAM,OAAO,CAAC;AAIzF,OAAO,EAAE,KAAK,+BAA+B,EAAiC,MAAM,gCAAgC,CAAC;AAIrH,OAAO,EAEL,KAAK,mBAAmB,EAGxB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,GAAG;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,+BAA+B,EAAE,CAAC;IAChD,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC/C,eAAe,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAAC,CAAC;IACjD,cAAc,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC;CAChD,CAAC;AAIF,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,GAAG,EAAE,CAAC;AAE3D,eAAO,MAAM,YAAY,UAAW,iBAAiB,gBAgDpD,CAAC;AAIF,eAAO,MAAM,gBAAgB,UAAW,qBAAqB,gBAsE5D,CAAC"}
|
|
@@ -37,7 +37,7 @@ const react_ui_theme_1 = require("@dxos/react-ui-theme");
|
|
|
37
37
|
const components_1 = require("../../../components");
|
|
38
38
|
const activeActionKey = 'dxos:react-shell/space-manager/active-action';
|
|
39
39
|
const SpaceManager = (props) => {
|
|
40
|
-
const { space } = props;
|
|
40
|
+
const { space, target } = props;
|
|
41
41
|
const { t } = (0, react_ui_1.useTranslation)('os');
|
|
42
42
|
const config = (0, react_client_1.useConfig)();
|
|
43
43
|
const invitations = (0, echo_1.useSpaceInvitations)(space === null || space === void 0 ? void 0 : space.key);
|
|
@@ -57,6 +57,7 @@ const SpaceManager = (props) => {
|
|
|
57
57
|
const invitation = (_a = space.share) === null || _a === void 0 ? void 0 : _a.call(space, {
|
|
58
58
|
type: invitations_1.Invitation.Type.INTERACTIVE,
|
|
59
59
|
authMethod: invitations_1.Invitation.AuthMethod.SHARED_SECRET,
|
|
60
|
+
target,
|
|
60
61
|
});
|
|
61
62
|
if (invitation && ((_d = (_c = (_b = config.values.runtime) === null || _b === void 0 ? void 0 : _b.app) === null || _c === void 0 ? void 0 : _c.env) === null || _d === void 0 ? void 0 : _d.DX_ENVIRONMENT) !== 'production') {
|
|
62
63
|
invitation.subscribe(onInvitationEvent);
|
|
@@ -72,6 +73,7 @@ const SpaceManager = (props) => {
|
|
|
72
73
|
const invitation = (_a = space.share) === null || _a === void 0 ? void 0 : _a.call(space, {
|
|
73
74
|
type: invitations_1.Invitation.Type.MULTIUSE,
|
|
74
75
|
authMethod: invitations_1.Invitation.AuthMethod.NONE,
|
|
76
|
+
target,
|
|
75
77
|
});
|
|
76
78
|
if (invitation && ((_d = (_c = (_b = config.values.runtime) === null || _b === void 0 ? void 0 : _b.app) === null || _c === void 0 ? void 0 : _c.env) === null || _d === void 0 ? void 0 : _d.DX_ENVIRONMENT) !== 'production') {
|
|
77
79
|
invitation.subscribe(onInvitationEvent);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpaceManager.js","sourceRoot":"","sources":["../../../../../../src/panels/SpacePanel/steps/SpaceManager.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,iDAA0E;AAC1E,+CAAyF;AAEzF,qDAA+C;AAC/C,kDAA8D;AAC9D,gEAAqH;AACrH,6CAA4D;AAC5D,yDAA2D;AAE3D,oDAQ6B;
|
|
1
|
+
{"version":3,"file":"SpaceManager.js","sourceRoot":"","sources":["../../../../../../src/panels/SpacePanel/steps/SpaceManager.tsx"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,iDAA0E;AAC1E,+CAAyF;AAEzF,qDAA+C;AAC/C,kDAA8D;AAC9D,gEAAqH;AACrH,6CAA4D;AAC5D,yDAA2D;AAE3D,oDAQ6B;AAY7B,MAAM,eAAe,GAAG,8CAA8C,CAAC;AAIhE,MAAM,YAAY,GAAG,CAAC,KAAwB,EAAE,EAAE;IACvD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAChC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAc,EAAC,IAAI,CAAC,CAAC;IACnC,MAAM,MAAM,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,mBAAmB,EAAE,mBAAmB,GACxC;oBACF,sCAAI,SAAS,EAAE,IAAA,mBAAE,EAAC,eAAe,EAAE,gCAAe,EAAE,OAAO,CAAC,IAAG,CAAC,CAAC,2BAA2B,CAAC,CAAM,CAClG,CACJ;gBACD,8BAAC,wBAAwB,IAAC,QAAQ,EAAE,KAAK,CAAC,GAAG,EAAE,WAAW,SAAG,CACzC;YACtB,8BAAC,qBAAU,CAAC,SAAS,IAAC,WAAW,EAAC,UAAU;gBAC1C,8BAAC,qBAAU,CAAC,KAAK,OAAG,CACC,CACP;QAClB,8BAAC,oBAAO;YACN,8BAAC,6BAAgB,IACf,QAAQ,EAAE,CAAC,MAAM,EACjB,OAAO,EAAE,aAAa,EACtB,YAAY,EAAE,YAAY,EAC1B,oBAAoB,EAAE,eAAmD,iBAC7D,gCAAgC,GAC5C,CACM,CACT,CACJ,CAAC;AACJ,CAAC,CAAC;AAtEW,QAAA,gBAAgB,oBAsE3B"}
|
|
@@ -65,6 +65,7 @@ export declare const os: {
|
|
|
65
65
|
'selecting identity heading': string;
|
|
66
66
|
'devices heading': string;
|
|
67
67
|
'identity heading': string;
|
|
68
|
+
'choose add device label': string;
|
|
68
69
|
'choose devices label': string;
|
|
69
70
|
'choose profile label': string;
|
|
70
71
|
'choose sign out label': string;
|
|
@@ -93,5 +94,10 @@ export declare const os: {
|
|
|
93
94
|
'reset identity input label': string;
|
|
94
95
|
'failed to reset identity message': string;
|
|
95
96
|
'confirmation value': string;
|
|
97
|
+
'sign out chooser title': string;
|
|
98
|
+
'sign out chooser message': string;
|
|
99
|
+
'join new identity label': string;
|
|
100
|
+
'reset device label': string;
|
|
101
|
+
'reset device confirm message': string;
|
|
96
102
|
};
|
|
97
103
|
//# sourceMappingURL=en-US.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/translations/locales/en-US.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"en-US.d.ts","sourceRoot":"","sources":["../../../../../src/translations/locales/en-US.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGd,CAAC"}
|
|
@@ -71,7 +71,8 @@ exports.os = {
|
|
|
71
71
|
'selecting identity heading': 'Selecting identity',
|
|
72
72
|
'devices heading': 'Devices',
|
|
73
73
|
'identity heading': 'Profile settings',
|
|
74
|
-
'choose
|
|
74
|
+
'choose add device label': 'Add device',
|
|
75
|
+
'choose devices label': 'Manage devices',
|
|
75
76
|
'choose profile label': 'Edit profile',
|
|
76
77
|
'choose sign out label': 'Sign out',
|
|
77
78
|
'empty space members message': 'There is nobody in this space yet.',
|
|
@@ -99,5 +100,10 @@ exports.os = {
|
|
|
99
100
|
'reset identity input label': 'This will clear this device and all associated data. Type {{confirmationValue}} and confirm to continue.',
|
|
100
101
|
'failed to reset identity message': 'Failed to reset identity.',
|
|
101
102
|
'confirmation value': 'CONFIRM',
|
|
103
|
+
'sign out chooser title': 'DANGER ZONE',
|
|
104
|
+
'sign out chooser message': 'Proceeding with either action below will erase all data on this device.',
|
|
105
|
+
'join new identity label': 'Join a new identity',
|
|
106
|
+
'reset device label': 'Reset device',
|
|
107
|
+
'reset device confirm message': 'Are you sure you want to reset your device? All data will be lost.',
|
|
102
108
|
};
|
|
103
109
|
//# sourceMappingURL=en-US.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en-US.js","sourceRoot":"","sources":["../../../../../src/translations/locales/en-US.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEW,QAAA,EAAE,GAAG;IAChB,sBAAsB,EAAE,iBAAiB;IACzC,8BAA8B,EAAE,SAAS;IACzC,eAAe,EAAE,cAAc;IAC/B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iBAAiB,EAAE,SAAS;IAC5B,kBAAkB,EAAE,kBAAkB;IACtC,yBAAyB,EAAE,YAAY;IACvC,sBAAsB,EAAE,gBAAgB;IACxC,sBAAsB,EAAE,cAAc;IACtC,uBAAuB,EAAE,UAAU;IACnC,6BAA6B,EAAE,oCAAoC;IACnE,+BAA+B,EAAE,yBAAyB;IAC1D,oBAAoB,EAAE,YAAY;IAClC,yBAAyB,EAAE,aAAa;IACxC,gCAAgC,EAAE,4BAA4B;IAC9D,+BAA+B,EAAE,qBAAqB;IACtD,qBAAqB,EAAE,SAAS;IAChC,2BAA2B,EAAE,SAAS;IACtC,qBAAqB,EAAE,kBAAkB;IACzC,mBAAmB,EAAE,sDAAsD;IAC3E,0BAA0B,EAAE,cAAc;IAC1C,gCAAgC,EAAE,sBAAsB;IACxD,kBAAkB,EAAE,YAAY;IAChC,wBAAwB,EAAE,yBAAyB;IACnD,qBAAqB,EAAE,YAAY;IACnC,4BAA4B,EAAE,8BAA8B;IAC5D,mBAAmB,EAAE,aAAa;IAClC,yBAAyB,EAAE,gCAAgC;IAC3D,sBAAsB,EAAE,cAAc;IACtC,6BAA6B,EAAE,gCAAgC;IAC/D,sBAAsB,EAAE,kCAAkC;IAC1D,eAAe,EAAE,SAAS;IAC1B,4BAA4B,EAC1B,0GAA0G;IAC5G,kCAAkC,EAAE,2BAA2B;IAC/D,oBAAoB,EAAE,SAAS;IAC/B,wBAAwB,EAAE,aAAa;IACvC,0BAA0B,EAAE,yEAAyE;IACrG,yBAAyB,EAAE,qBAAqB;IAChD,oBAAoB,EAAE,cAAc;IACpC,8BAA8B,EAAE,oEAAoE;CACrG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/shell",
|
|
3
|
-
"version": "0.3.11-main.
|
|
3
|
+
"version": "0.3.11-main.8a9dd1e",
|
|
4
4
|
"description": "DXOS’s OS experiences",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -39,18 +39,19 @@
|
|
|
39
39
|
"react-qr-rounded": "^1.0.0",
|
|
40
40
|
"url-join": "^5.0.0",
|
|
41
41
|
"xstate": "^4.37.0",
|
|
42
|
-
"@dxos/async": "0.3.11-main.
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/client-services": "0.3.11-main.
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/react-
|
|
50
|
-
"@dxos/react-ui-
|
|
51
|
-
"@dxos/react-ui-
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
42
|
+
"@dxos/async": "0.3.11-main.8a9dd1e",
|
|
43
|
+
"@dxos/debug": "0.3.11-main.8a9dd1e",
|
|
44
|
+
"@dxos/client-services": "0.3.11-main.8a9dd1e",
|
|
45
|
+
"@dxos/display-name": "0.3.11-main.8a9dd1e",
|
|
46
|
+
"@dxos/client-protocol": "0.3.11-main.8a9dd1e",
|
|
47
|
+
"@dxos/log": "0.3.11-main.8a9dd1e",
|
|
48
|
+
"@dxos/invariant": "0.3.11-main.8a9dd1e",
|
|
49
|
+
"@dxos/react-client": "0.3.11-main.8a9dd1e",
|
|
50
|
+
"@dxos/react-ui-types": "0.3.11-main.8a9dd1e",
|
|
51
|
+
"@dxos/react-ui-theme": "0.3.11-main.8a9dd1e",
|
|
52
|
+
"@dxos/rpc-tunnel": "0.3.11-main.8a9dd1e",
|
|
53
|
+
"@dxos/react-ui": "0.3.11-main.8a9dd1e",
|
|
54
|
+
"@dxos/util": "0.3.11-main.8a9dd1e"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
56
57
|
"@faker-js/faker": "^8.0.2",
|
|
@@ -58,15 +59,15 @@
|
|
|
58
59
|
"@types/lodash.toarray": "^4.4.7",
|
|
59
60
|
"@types/react": "^18.0.21",
|
|
60
61
|
"@types/react-dom": "^18.0.6",
|
|
61
|
-
"@vitejs/plugin-react": "^
|
|
62
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
62
63
|
"react": "^18.2.0",
|
|
63
64
|
"react-dom": "^18.2.0",
|
|
64
|
-
"vite": "^
|
|
65
|
+
"vite": "^5.0.11",
|
|
65
66
|
"vite-plugin-turbosnap": "^1.0.2",
|
|
66
|
-
"@dxos/config": "0.3.11-main.
|
|
67
|
-
"@dxos/react-
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
67
|
+
"@dxos/config": "0.3.11-main.8a9dd1e",
|
|
68
|
+
"@dxos/react-ui-theme": "0.3.11-main.8a9dd1e",
|
|
69
|
+
"@dxos/storybook-utils": "0.3.11-main.8a9dd1e",
|
|
70
|
+
"@dxos/react-async": "0.3.11-main.8a9dd1e"
|
|
70
71
|
},
|
|
71
72
|
"peerDependencies": {
|
|
72
73
|
"@phosphor-icons/react": "^2.0.5",
|
|
@@ -22,11 +22,13 @@ export const DeviceList = ({ devices, onSelect }: DeviceListProps) => {
|
|
|
22
22
|
{devices.map((device) => {
|
|
23
23
|
const identity = {
|
|
24
24
|
identityKey: device.deviceKey,
|
|
25
|
-
profile:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
profile: device.profile
|
|
26
|
+
? {
|
|
27
|
+
displayName: `${device.profile?.platform} (${device.profile?.platformVersion}) on ${
|
|
28
|
+
device.profile?.os
|
|
29
|
+
} (${device.profile?.osVersion}) ${device.profile?.architecture ?? 'Unknown'}-bit`,
|
|
30
|
+
}
|
|
31
|
+
: undefined,
|
|
30
32
|
};
|
|
31
33
|
return (
|
|
32
34
|
<IdentityListItem
|
|
@@ -132,7 +132,7 @@ export const Action = forwardRef<HTMLButtonElement, LargeButtonProps>((props, fo
|
|
|
132
132
|
return (
|
|
133
133
|
<Button
|
|
134
134
|
{...rest}
|
|
135
|
-
classNames={[isFull && 'is-full', 'bs-11 flex gap-2 mbs-2',
|
|
135
|
+
classNames={[isFull && 'is-full', 'bs-11 flex gap-2 mbs-2', ...buttonColorFragment(props), classNames]}
|
|
136
136
|
ref={forwardedRef}
|
|
137
137
|
variant={variant}
|
|
138
138
|
>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React, { useEffect, useState } from 'react';
|
|
6
6
|
|
|
7
7
|
import { log } from '@dxos/log';
|
|
8
|
-
import { type LayoutRequest, ShellDisplay, ShellLayout, type ShellRuntime } from '@dxos/react-client';
|
|
8
|
+
import { type LayoutRequest, ShellDisplay, ShellLayout, type ShellRuntime, useClient } from '@dxos/react-client';
|
|
9
9
|
import { useSpace } from '@dxos/react-client/echo';
|
|
10
10
|
|
|
11
11
|
import { IdentityDialog } from '../IdentityDialog';
|
|
@@ -13,12 +13,14 @@ import { JoinDialog } from '../JoinDialog';
|
|
|
13
13
|
import { SpaceDialog } from '../SpaceDialog';
|
|
14
14
|
|
|
15
15
|
export const Shell = ({ runtime, origin }: { runtime: ShellRuntime; origin: string }) => {
|
|
16
|
-
const [{ layout, invitationCode, spaceKey }, setLayout] = useState<LayoutRequest>({
|
|
16
|
+
const [{ layout, invitationCode, spaceKey, target }, setLayout] = useState<LayoutRequest>({
|
|
17
17
|
layout: runtime.layout,
|
|
18
18
|
invitationCode: runtime.invitationCode,
|
|
19
19
|
spaceKey: runtime.spaceKey,
|
|
20
|
+
target: runtime.target,
|
|
20
21
|
});
|
|
21
22
|
|
|
23
|
+
const client = useClient();
|
|
22
24
|
const space = useSpace(spaceKey);
|
|
23
25
|
|
|
24
26
|
useEffect(() => {
|
|
@@ -58,6 +60,11 @@ export const Shell = ({ runtime, origin }: { runtime: ShellRuntime; origin: stri
|
|
|
58
60
|
return (
|
|
59
61
|
<IdentityDialog
|
|
60
62
|
createInvitationUrl={(invitationCode) => `${origin}?deviceInvitationCode=${invitationCode}`}
|
|
63
|
+
onResetDevice={async () => {
|
|
64
|
+
await client.reset();
|
|
65
|
+
await runtime.setAppContext({ display: ShellDisplay.NONE, reload: true });
|
|
66
|
+
}}
|
|
67
|
+
onJoinNewIdentity={() => runtime.setLayout({ layout: ShellLayout.INITIALIZE_IDENTITY })}
|
|
61
68
|
onDone={async () => {
|
|
62
69
|
await runtime.setAppContext({ display: ShellDisplay.NONE });
|
|
63
70
|
runtime.setLayout({ layout: ShellLayout.DEFAULT });
|
|
@@ -69,6 +76,7 @@ export const Shell = ({ runtime, origin }: { runtime: ShellRuntime; origin: stri
|
|
|
69
76
|
return space ? (
|
|
70
77
|
<SpaceDialog
|
|
71
78
|
space={space}
|
|
79
|
+
target={target}
|
|
72
80
|
createInvitationUrl={(invitationCode) => `${origin}?spaceInvitationCode=${invitationCode}`}
|
|
73
81
|
onDone={async () => {
|
|
74
82
|
await runtime.setAppContext({ display: ShellDisplay.NONE });
|
|
@@ -82,7 +90,12 @@ export const Shell = ({ runtime, origin }: { runtime: ShellRuntime; origin: stri
|
|
|
82
90
|
<JoinDialog
|
|
83
91
|
initialInvitationCode={invitationCode}
|
|
84
92
|
onDone={async (result) => {
|
|
85
|
-
|
|
93
|
+
const target = result?.target ?? undefined;
|
|
94
|
+
await runtime.setAppContext({
|
|
95
|
+
display: ShellDisplay.NONE,
|
|
96
|
+
spaceKey: result?.spaceKey ?? undefined,
|
|
97
|
+
target,
|
|
98
|
+
});
|
|
86
99
|
runtime.setLayout({ layout: ShellLayout.DEFAULT });
|
|
87
100
|
}}
|
|
88
101
|
onExit={async () => {
|
|
@@ -8,6 +8,7 @@ import { faker } from '@faker-js/faker';
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
|
|
10
10
|
import { PublicKey } from '@dxos/react-client';
|
|
11
|
+
import { DeviceKind } from '@dxos/react-client/halo';
|
|
11
12
|
import { Invitation } from '@dxos/react-client/invitations';
|
|
12
13
|
import { withTheme } from '@dxos/storybook-utils';
|
|
13
14
|
|
|
@@ -16,6 +17,7 @@ import type { IdentityPanelImplProps } from './IdentityPanelProps';
|
|
|
16
17
|
import { IdentityActionChooserImpl } from './steps';
|
|
17
18
|
import { StorybookDialog } from '../../components/StorybookDialog';
|
|
18
19
|
import { InvitationManager, type InvitationManagerProps } from '../../steps';
|
|
20
|
+
import { osTranslations } from '../../translations';
|
|
19
21
|
|
|
20
22
|
faker.seed(1234);
|
|
21
23
|
|
|
@@ -30,12 +32,13 @@ const noOpProps: IdentityPanelImplProps = {
|
|
|
30
32
|
displayName: faker.person.firstName(),
|
|
31
33
|
},
|
|
32
34
|
},
|
|
35
|
+
devices: [],
|
|
33
36
|
};
|
|
34
37
|
|
|
35
38
|
export default {
|
|
36
|
-
title: '
|
|
39
|
+
title: 'react-shell/IdentityPanel',
|
|
37
40
|
decorators: [withTheme],
|
|
38
|
-
parameters: { chromatic: { disableSnapshot: false } },
|
|
41
|
+
parameters: { translations: [osTranslations], chromatic: { disableSnapshot: false } },
|
|
39
42
|
};
|
|
40
43
|
|
|
41
44
|
export const IdentityActionChooser = () => {
|
|
@@ -50,6 +53,45 @@ export const IdentityActionChooser = () => {
|
|
|
50
53
|
);
|
|
51
54
|
};
|
|
52
55
|
|
|
56
|
+
export const UpdateProfileForm = () => {
|
|
57
|
+
return (
|
|
58
|
+
<StorybookDialog inOverlayLayout>
|
|
59
|
+
<IdentityPanelImpl
|
|
60
|
+
{...noOpProps}
|
|
61
|
+
activeView='update profile form'
|
|
62
|
+
IdentityActionChooser={IdentityActionChooserImpl}
|
|
63
|
+
/>
|
|
64
|
+
</StorybookDialog>
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export const DeviceManager = () => {
|
|
69
|
+
return (
|
|
70
|
+
<StorybookDialog inOverlayLayout>
|
|
71
|
+
<IdentityPanelImpl
|
|
72
|
+
{...{
|
|
73
|
+
...noOpProps,
|
|
74
|
+
devices: [
|
|
75
|
+
{ deviceKey: PublicKey.random(), kind: DeviceKind.CURRENT },
|
|
76
|
+
{ deviceKey: PublicKey.random(), kind: DeviceKind.TRUSTED },
|
|
77
|
+
{ deviceKey: PublicKey.random(), kind: DeviceKind.TRUSTED },
|
|
78
|
+
],
|
|
79
|
+
}}
|
|
80
|
+
activeView='device manager'
|
|
81
|
+
IdentityActionChooser={IdentityActionChooserImpl}
|
|
82
|
+
/>
|
|
83
|
+
</StorybookDialog>
|
|
84
|
+
);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export const DeviceManagerEmpty = () => {
|
|
88
|
+
return (
|
|
89
|
+
<StorybookDialog inOverlayLayout>
|
|
90
|
+
<IdentityPanelImpl {...noOpProps} activeView='device manager' IdentityActionChooser={IdentityActionChooserImpl} />
|
|
91
|
+
</StorybookDialog>
|
|
92
|
+
);
|
|
93
|
+
};
|
|
94
|
+
|
|
53
95
|
const DeviceInvitationManagerWithState = (extraProps: InvitationManagerProps) => (
|
|
54
96
|
<StorybookDialog inOverlayLayout>
|
|
55
97
|
<IdentityPanelImpl
|
|
@@ -6,7 +6,7 @@ import React, { useEffect, useMemo } from 'react';
|
|
|
6
6
|
import { generateName } from '@dxos/display-name';
|
|
7
7
|
import { log } from '@dxos/log';
|
|
8
8
|
import { useClient } from '@dxos/react-client';
|
|
9
|
-
import { type Identity, useIdentity } from '@dxos/react-client/halo';
|
|
9
|
+
import { type Identity, useIdentity, useDevices, useHaloInvitations } from '@dxos/react-client/halo';
|
|
10
10
|
import { useInvitationStatus } from '@dxos/react-client/invitations';
|
|
11
11
|
import type { CancellableInvitationObservable } from '@dxos/react-client/invitations';
|
|
12
12
|
import { Avatar, DensityProvider, useId, useJdenticonHref, useTranslation } from '@dxos/react-ui';
|
|
@@ -17,7 +17,8 @@ import {
|
|
|
17
17
|
type IdentityPanelProps,
|
|
18
18
|
} from './IdentityPanelProps';
|
|
19
19
|
import { useIdentityMachine } from './identityMachine';
|
|
20
|
-
import { IdentityActionChooser, ProfileForm } from './steps';
|
|
20
|
+
import { AgentForm, DeviceManager, IdentityActionChooser, ProfileForm, SignOutChooser } from './steps';
|
|
21
|
+
import { useAgentHandlers } from './useAgentHandlers';
|
|
21
22
|
import { Viewport, Heading, CloseButton } from '../../components';
|
|
22
23
|
import { InvitationManager } from '../../steps';
|
|
23
24
|
|
|
@@ -45,6 +46,8 @@ export const IdentityPanelImpl = (props: IdentityPanelImplProps) => {
|
|
|
45
46
|
titleId,
|
|
46
47
|
activeView,
|
|
47
48
|
onUpdateProfile,
|
|
49
|
+
onResetDevice,
|
|
50
|
+
onJoinNewIdentity,
|
|
48
51
|
IdentityActionChooser: IdentityActionChooserComponent = IdentityActionChooser,
|
|
49
52
|
InvitationManager: InvitationManagerComponent = InvitationManager,
|
|
50
53
|
onDone,
|
|
@@ -53,13 +56,15 @@ export const IdentityPanelImpl = (props: IdentityPanelImplProps) => {
|
|
|
53
56
|
const { t } = useTranslation('os');
|
|
54
57
|
const title = useMemo(() => {
|
|
55
58
|
switch (activeView) {
|
|
56
|
-
case '
|
|
59
|
+
case 'agent manager':
|
|
60
|
+
return 'Manage Agent';
|
|
57
61
|
case 'device invitation manager':
|
|
58
|
-
return t('choose
|
|
62
|
+
return t('choose add device label');
|
|
59
63
|
default:
|
|
60
64
|
return t('identity heading');
|
|
61
65
|
}
|
|
62
66
|
}, [activeView, t]);
|
|
67
|
+
|
|
63
68
|
return (
|
|
64
69
|
<DensityProvider density='fine'>
|
|
65
70
|
<IdentityHeading {...{ identity, titleId, title, onDone }} />
|
|
@@ -75,6 +80,9 @@ export const IdentityPanelImpl = (props: IdentityPanelImplProps) => {
|
|
|
75
80
|
invitationUrl={rest.createInvitationUrl(rest.invitationCode!)}
|
|
76
81
|
/>
|
|
77
82
|
</Viewport.View>
|
|
83
|
+
<Viewport.View id='device manager' classNames={viewStyles}>
|
|
84
|
+
<DeviceManager active={activeView === 'device manager'} {...rest} />
|
|
85
|
+
</Viewport.View>
|
|
78
86
|
<Viewport.View classNames={viewStyles} id='update profile form'>
|
|
79
87
|
<ProfileForm
|
|
80
88
|
send={rest.send}
|
|
@@ -83,7 +91,17 @@ export const IdentityPanelImpl = (props: IdentityPanelImplProps) => {
|
|
|
83
91
|
onUpdateProfile={onUpdateProfile}
|
|
84
92
|
/>
|
|
85
93
|
</Viewport.View>
|
|
86
|
-
|
|
94
|
+
<Viewport.View classNames={viewStyles} id='signing out'>
|
|
95
|
+
<SignOutChooser
|
|
96
|
+
send={rest.send}
|
|
97
|
+
active={activeView === 'signing out'}
|
|
98
|
+
onResetDevice={onResetDevice}
|
|
99
|
+
onJoinNewIdentity={onJoinNewIdentity}
|
|
100
|
+
/>
|
|
101
|
+
</Viewport.View>
|
|
102
|
+
<Viewport.View classNames={viewStyles} id='agent manager'>
|
|
103
|
+
<AgentForm send={rest.send} active={activeView === 'agent manager'} {...rest} />
|
|
104
|
+
</Viewport.View>
|
|
87
105
|
</Viewport.Views>
|
|
88
106
|
</Viewport.Root>
|
|
89
107
|
</DensityProvider>
|
|
@@ -105,7 +123,10 @@ export const IdentityPanel = ({
|
|
|
105
123
|
}: IdentityPanelProps) => {
|
|
106
124
|
const titleId = useId('identityPanel__heading', propsTitleId);
|
|
107
125
|
const client = useClient();
|
|
126
|
+
const devices = useDevices();
|
|
108
127
|
const identity = useIdentity();
|
|
128
|
+
const invitations = useHaloInvitations();
|
|
129
|
+
const agentProps = useAgentHandlers({ client, identity, invitations });
|
|
109
130
|
if (!identity) {
|
|
110
131
|
console.error('IdentityPanel rendered with no active identity.');
|
|
111
132
|
return null;
|
|
@@ -126,10 +147,14 @@ export const IdentityPanel = ({
|
|
|
126
147
|
return 'identity action chooser';
|
|
127
148
|
case identityState.matches('managingDeviceInvitation'):
|
|
128
149
|
return 'device invitation manager';
|
|
150
|
+
case identityState.matches('managingDevices'):
|
|
151
|
+
return 'device manager';
|
|
129
152
|
case [{ managingProfile: 'idle' }, { managingProfile: 'pending' }].some(identityState.matches):
|
|
130
153
|
return 'update profile form';
|
|
131
|
-
|
|
132
|
-
|
|
154
|
+
case identityState.matches('signingOut'):
|
|
155
|
+
return 'signing out';
|
|
156
|
+
case [{ managingAgent: 'idle' }, { managingAgent: 'pending' }].some(identityState.matches):
|
|
157
|
+
return 'agent manager';
|
|
133
158
|
default:
|
|
134
159
|
return 'identity action chooser';
|
|
135
160
|
}
|
|
@@ -143,11 +168,13 @@ export const IdentityPanel = ({
|
|
|
143
168
|
const implProps = {
|
|
144
169
|
...props,
|
|
145
170
|
identity,
|
|
171
|
+
devices,
|
|
146
172
|
activeView,
|
|
147
173
|
send: identitySend,
|
|
148
174
|
titleId,
|
|
149
175
|
createInvitationUrl,
|
|
150
176
|
onUpdateProfile,
|
|
177
|
+
...agentProps,
|
|
151
178
|
} satisfies IdentityPanelImplProps;
|
|
152
179
|
|
|
153
180
|
return identityState.context.invitation ? (
|
|
@@ -2,20 +2,38 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import type { cloneElement } from 'react';
|
|
6
|
+
import type { Event, SingleOrArray } from 'xstate';
|
|
7
7
|
|
|
8
|
-
import type { Identity } from '@dxos/react-client/halo';
|
|
9
|
-
import {
|
|
8
|
+
import type { Device, Identity } from '@dxos/react-client/halo';
|
|
9
|
+
import type { InvitationStatus } from '@dxos/react-client/invitations';
|
|
10
10
|
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import type { IdentityEvent } from './identityMachine';
|
|
12
|
+
import type { InvitationManagerProps } from '../../steps';
|
|
13
|
+
|
|
14
|
+
export type AgentFormProps = {
|
|
15
|
+
onAgentCreate?: () => Promise<void>;
|
|
16
|
+
onAgentDestroy?: () => Promise<void>;
|
|
17
|
+
agentStatus?: string;
|
|
18
|
+
agentActive?: boolean;
|
|
19
|
+
agentProviderDisabled?: boolean;
|
|
20
|
+
validationMessage?: string;
|
|
21
|
+
};
|
|
13
22
|
|
|
14
23
|
export type IdentityPanelImplProps = {
|
|
15
24
|
titleId: string;
|
|
16
|
-
activeView:
|
|
25
|
+
activeView:
|
|
26
|
+
| 'device manager'
|
|
27
|
+
| 'agent manager'
|
|
28
|
+
| 'update profile form'
|
|
29
|
+
| 'device invitation manager'
|
|
30
|
+
| 'identity action chooser'
|
|
31
|
+
| 'signing out';
|
|
17
32
|
identity: Identity;
|
|
33
|
+
devices: Device[];
|
|
18
34
|
onUpdateProfile?: (profile: NonNullable<Identity['profile']>) => Promise<void>;
|
|
35
|
+
onResetDevice?: () => Promise<void>;
|
|
36
|
+
onJoinNewIdentity?: () => void;
|
|
19
37
|
createInvitationUrl: (invitationCode: string) => string;
|
|
20
38
|
send?: (event: SingleOrArray<Event<IdentityEvent>>) => void;
|
|
21
39
|
onDone?: () => void;
|
|
@@ -23,7 +41,8 @@ export type IdentityPanelImplProps = {
|
|
|
23
41
|
invitationUrl?: string;
|
|
24
42
|
IdentityActionChooser?: React.FC<IdentityPanelStepProps>;
|
|
25
43
|
InvitationManager?: React.FC<InvitationManagerProps>;
|
|
26
|
-
} & Partial<InvitationStatus
|
|
44
|
+
} & Partial<InvitationStatus> &
|
|
45
|
+
Partial<AgentFormProps>;
|
|
27
46
|
|
|
28
47
|
export type IdentityPanelProps = Partial<Omit<IdentityPanelImplProps, 'send' | 'activeView' | 'identity'>>;
|
|
29
48
|
|
|
@@ -19,7 +19,7 @@ type IdentityMachineContext = {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
type IdentityChooseActionEvent = {
|
|
22
|
-
type: 'chooseDevices' | 'chooseProfile' |
|
|
22
|
+
type: 'chooseDevices' | 'chooseAgent' | 'chooseProfile' | 'chooseSignOut' | 'sigingOut' | 'unchooseAction';
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
type IdentitySelectDeviceInvitationEvent = {
|
|
@@ -58,6 +58,14 @@ const identityMachine = createMachine<IdentityMachineContext, IdentityEvent>(
|
|
|
58
58
|
states: {
|
|
59
59
|
choosingAction: {},
|
|
60
60
|
managingDeviceInvitation: {},
|
|
61
|
+
managingAgent: {
|
|
62
|
+
initial: 'idle',
|
|
63
|
+
states: {
|
|
64
|
+
idle: {},
|
|
65
|
+
pending: {},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
managingDevices: {},
|
|
61
69
|
managingProfile: {
|
|
62
70
|
initial: 'idle',
|
|
63
71
|
states: {
|
|
@@ -69,15 +77,16 @@ const identityMachine = createMachine<IdentityMachineContext, IdentityEvent>(
|
|
|
69
77
|
updateProfile: { target: '.pending', actions: 'log' },
|
|
70
78
|
},
|
|
71
79
|
},
|
|
72
|
-
|
|
80
|
+
signingOut: {},
|
|
73
81
|
},
|
|
74
82
|
on: {
|
|
75
83
|
unchooseAction: { target: '.choosingAction', actions: ['unsetInvitation', 'log'] },
|
|
76
|
-
chooseDevices: { target: '.managingDeviceInvitation', actions: ['unsetInvitation', 'log'] },
|
|
77
84
|
deselectInvitation: { target: '.choosingAction', actions: ['unsetInvitation', 'log'] },
|
|
78
85
|
selectInvitation: { target: '.managingDeviceInvitation', actions: ['setInvitation', 'log'] },
|
|
86
|
+
chooseDevices: { target: '.managingDevices', actions: 'log' },
|
|
79
87
|
chooseProfile: { target: '.managingProfile', actions: 'log' },
|
|
80
|
-
|
|
88
|
+
chooseSignOut: { target: '.signingOut', actions: 'log' },
|
|
89
|
+
chooseAgent: { target: '.managingAgent', actions: 'log' },
|
|
81
90
|
},
|
|
82
91
|
},
|
|
83
92
|
{
|