@dxos/shell 0.3.11-main.0ac3ef5 → 0.3.11-main.0bdf564
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 +44 -61
- package/dist/bundle/shell.mjs.map +1 -1
- package/dist/bundle/shell.umd.js +2 -2
- package/dist/bundle/shell.umd.js.map +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +18 -29
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/Shell.js +4 -10
- package/dist/types/src/composites/Shell/Shell.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.js +3 -4
- 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 +3 -5
- 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 +0 -1
- package/dist/types/src/panels/SpacePanel/SpacePanelProps.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts +0 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js +1 -3
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js.map +1 -1
- package/package.json +17 -17
- package/src/composites/Shell/Shell.tsx +2 -9
- package/src/panels/JoinPanel/JoinPanel.tsx +2 -2
- package/src/panels/JoinPanel/joinMachine.ts +1 -1
- package/src/panels/SpacePanel/SpacePanel.stories.tsx +1 -2
- package/src/panels/SpacePanel/SpacePanel.tsx +1 -4
- package/src/panels/SpacePanel/SpacePanelProps.ts +0 -1
- package/src/panels/SpacePanel/steps/SpaceManager.tsx +1 -4
|
@@ -16,7 +16,6 @@ export type SpacePanelImplProps = {
|
|
|
16
16
|
titleId: string;
|
|
17
17
|
activeView: string;
|
|
18
18
|
send: (event: SingleOrArray<Event<any>>) => void;
|
|
19
|
-
target?: string;
|
|
20
19
|
createInvitationUrl: (invitationCode: string) => string;
|
|
21
20
|
space: ErsatzSpace | Space;
|
|
22
21
|
invitationUrl?: string;
|
|
@@ -23,7 +23,6 @@ import {
|
|
|
23
23
|
import { type SpacePanelStepProps } from '../SpacePanelProps';
|
|
24
24
|
|
|
25
25
|
export type SpaceManagerImplProps = SpacePanelStepProps & {
|
|
26
|
-
target?: string;
|
|
27
26
|
invitations?: CancellableInvitationObservable[];
|
|
28
27
|
showInactiveInvitations?: boolean;
|
|
29
28
|
inviteActions?: Record<string, ActionMenuItem>;
|
|
@@ -36,7 +35,7 @@ const activeActionKey = 'dxos:react-shell/space-manager/active-action';
|
|
|
36
35
|
export type SpaceManagerProps = SpaceManagerImplProps & {};
|
|
37
36
|
|
|
38
37
|
export const SpaceManager = (props: SpaceManagerProps) => {
|
|
39
|
-
const { space
|
|
38
|
+
const { space } = props;
|
|
40
39
|
const { t } = useTranslation('os');
|
|
41
40
|
const config = useConfig();
|
|
42
41
|
|
|
@@ -58,7 +57,6 @@ export const SpaceManager = (props: SpaceManagerProps) => {
|
|
|
58
57
|
const invitation = space.share?.({
|
|
59
58
|
type: Invitation.Type.INTERACTIVE,
|
|
60
59
|
authMethod: Invitation.AuthMethod.SHARED_SECRET,
|
|
61
|
-
target,
|
|
62
60
|
});
|
|
63
61
|
if (invitation && config.values.runtime?.app?.env?.DX_ENVIRONMENT !== 'production') {
|
|
64
62
|
invitation.subscribe(onInvitationEvent);
|
|
@@ -73,7 +71,6 @@ export const SpaceManager = (props: SpaceManagerProps) => {
|
|
|
73
71
|
const invitation = space.share?.({
|
|
74
72
|
type: Invitation.Type.MULTIUSE,
|
|
75
73
|
authMethod: Invitation.AuthMethod.NONE,
|
|
76
|
-
target,
|
|
77
74
|
});
|
|
78
75
|
if (invitation && config.values.runtime?.app?.env?.DX_ENVIRONMENT !== 'production') {
|
|
79
76
|
invitation.subscribe(onInvitationEvent);
|