@dxos/shell 0.3.11-main.4eab977 → 0.3.11-main.4feb9c9
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 +36540 -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 +517 -337
- package/dist/lib/browser/react.mjs.map +4 -4
- package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/Shell.js +10 -4
- 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 +7 -3
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanelProps.d.ts +1 -1
- 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 +8 -0
- package/dist/types/src/panels/IdentityPanel/identityMachine.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/AgentPanel.d.ts +19 -0
- package/dist/types/src/panels/IdentityPanel/steps/AgentPanel.d.ts.map +1 -0
- package/dist/types/src/panels/IdentityPanel/steps/AgentPanel.js +122 -0
- package/dist/types/src/panels/IdentityPanel/steps/AgentPanel.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 +4 -0
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/index.d.ts +1 -0
- package/dist/types/src/panels/IdentityPanel/steps/index.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/index.js +1 -0
- package/dist/types/src/panels/IdentityPanel/steps/index.js.map +1 -1
- 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/package.json +18 -17
- package/src/composites/Shell/Shell.tsx +9 -2
- package/src/panels/IdentityPanel/IdentityPanel.tsx +8 -3
- package/src/panels/IdentityPanel/IdentityPanelProps.ts +6 -1
- package/src/panels/IdentityPanel/identityMachine.ts +9 -1
- package/src/panels/IdentityPanel/steps/AgentPanel.tsx +165 -0
- package/src/panels/IdentityPanel/steps/IdentityActionChooser.tsx +6 -1
- package/src/panels/IdentityPanel/steps/index.ts +1 -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
|
@@ -39,17 +39,19 @@ export const SpacePanelImpl = (props: SpacePanelImplProps) => {
|
|
|
39
39
|
titleId,
|
|
40
40
|
activeView,
|
|
41
41
|
space,
|
|
42
|
+
target,
|
|
42
43
|
SpaceManager: SpaceManagerComponent = SpaceManager,
|
|
43
44
|
InvitationManager: InvitationManagerComponent = InvitationManager,
|
|
44
45
|
...rest
|
|
45
46
|
} = props;
|
|
47
|
+
|
|
46
48
|
return (
|
|
47
49
|
<DensityProvider density='fine'>
|
|
48
50
|
<SpacePanelHeading {...rest} {...{ titleId, space }} />
|
|
49
51
|
<Viewport.Root activeView={activeView}>
|
|
50
52
|
<Viewport.Views>
|
|
51
53
|
<Viewport.View id='space manager' classNames={stepStyles}>
|
|
52
|
-
<SpaceManagerComponent active={activeView === 'space manager'} space={space} {...rest} />
|
|
54
|
+
<SpaceManagerComponent active={activeView === 'space manager'} space={space} target={target} {...rest} />
|
|
53
55
|
</Viewport.View>
|
|
54
56
|
<Viewport.View id='space invitation manager' classNames={stepStyles}>
|
|
55
57
|
<InvitationManagerComponent
|
|
@@ -115,6 +117,7 @@ export const SpacePanel = ({
|
|
|
115
117
|
};
|
|
116
118
|
|
|
117
119
|
return spaceState.context.invitation ? (
|
|
120
|
+
// TODO(wittjosiah): Unused? Remove?
|
|
118
121
|
<SpacePanelWithInvitationImpl {...implProps} invitation={spaceState.context.invitation} />
|
|
119
122
|
) : (
|
|
120
123
|
<SpacePanelImpl {...implProps} />
|
|
@@ -16,6 +16,7 @@ export type SpacePanelImplProps = {
|
|
|
16
16
|
titleId: string;
|
|
17
17
|
activeView: string;
|
|
18
18
|
send: (event: SingleOrArray<Event<any>>) => void;
|
|
19
|
+
target?: string;
|
|
19
20
|
createInvitationUrl: (invitationCode: string) => string;
|
|
20
21
|
space: ErsatzSpace | Space;
|
|
21
22
|
invitationUrl?: string;
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
import { type SpacePanelStepProps } from '../SpacePanelProps';
|
|
24
24
|
|
|
25
25
|
export type SpaceManagerImplProps = SpacePanelStepProps & {
|
|
26
|
+
target?: string;
|
|
26
27
|
invitations?: CancellableInvitationObservable[];
|
|
27
28
|
showInactiveInvitations?: boolean;
|
|
28
29
|
inviteActions?: Record<string, ActionMenuItem>;
|
|
@@ -35,7 +36,7 @@ const activeActionKey = 'dxos:react-shell/space-manager/active-action';
|
|
|
35
36
|
export type SpaceManagerProps = SpaceManagerImplProps & {};
|
|
36
37
|
|
|
37
38
|
export const SpaceManager = (props: SpaceManagerProps) => {
|
|
38
|
-
const { space } = props;
|
|
39
|
+
const { space, target } = props;
|
|
39
40
|
const { t } = useTranslation('os');
|
|
40
41
|
const config = useConfig();
|
|
41
42
|
|
|
@@ -57,6 +58,7 @@ export const SpaceManager = (props: SpaceManagerProps) => {
|
|
|
57
58
|
const invitation = space.share?.({
|
|
58
59
|
type: Invitation.Type.INTERACTIVE,
|
|
59
60
|
authMethod: Invitation.AuthMethod.SHARED_SECRET,
|
|
61
|
+
target,
|
|
60
62
|
});
|
|
61
63
|
if (invitation && config.values.runtime?.app?.env?.DX_ENVIRONMENT !== 'production') {
|
|
62
64
|
invitation.subscribe(onInvitationEvent);
|
|
@@ -71,6 +73,7 @@ export const SpaceManager = (props: SpaceManagerProps) => {
|
|
|
71
73
|
const invitation = space.share?.({
|
|
72
74
|
type: Invitation.Type.MULTIUSE,
|
|
73
75
|
authMethod: Invitation.AuthMethod.NONE,
|
|
76
|
+
target,
|
|
74
77
|
});
|
|
75
78
|
if (invitation && config.values.runtime?.app?.env?.DX_ENVIRONMENT !== 'production') {
|
|
76
79
|
invitation.subscribe(onInvitationEvent);
|