@dxos/shell 0.5.1-main.39e0ee2 → 0.5.1-main.3ccf9bd
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 +1098 -1099
- package/dist/bundle/shell.mjs.map +1 -1
- package/dist/bundle/shell.umd.js +29 -29
- package/dist/bundle/shell.umd.js.map +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +17 -57
- package/dist/lib/browser/react.mjs.map +3 -3
- 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 +4 -24
- package/dist/types/src/composites/Shell/Shell.js.map +1 -1
- package/dist/types/src/composites/Shell/ShellContext.js +1 -1
- package/dist/types/src/composites/Shell/ShellContext.js.map +1 -1
- package/dist/types/src/composites/Shell/memory-shell-runtime.d.ts +2 -10
- package/dist/types/src/composites/Shell/memory-shell-runtime.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/memory-shell-runtime.js +1 -20
- package/dist/types/src/composites/Shell/memory-shell-runtime.js.map +1 -1
- package/dist/types/src/composites/Shell/run-shell.js +1 -1
- package/dist/types/src/composites/Shell/run-shell.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js +18 -2
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js.map +1 -1
- package/dist/types/src/steps/InvitationManager.d.ts.map +1 -1
- package/dist/types/src/steps/InvitationManager.js +0 -3
- package/dist/types/src/steps/InvitationManager.js.map +1 -1
- package/dist/types/src/translations/locales/en-US.js +5 -5
- package/dist/types/src/translations/locales/en-US.js.map +1 -1
- package/package.json +21 -21
- package/src/composites/Shell/Shell.tsx +5 -36
- package/src/composites/Shell/ShellContext.tsx +1 -1
- package/src/composites/Shell/memory-shell-runtime.ts +2 -36
- package/src/composites/Shell/run-shell.tsx +1 -1
- package/src/panels/SpacePanel/steps/SpaceManager.tsx +18 -2
- package/src/steps/InvitationManager.tsx +0 -3
- package/src/translations/locales/en-US.ts +5 -5
|
@@ -41,7 +41,7 @@ export const runShell = async (config: Config = new Config()) => {
|
|
|
41
41
|
<ClipboardProvider>
|
|
42
42
|
<Tooltip.Provider>
|
|
43
43
|
<AgentHostingProvider>
|
|
44
|
-
<Shell runtime={runtime} />
|
|
44
|
+
<Shell runtime={runtime} origin={location.origin} />
|
|
45
45
|
</AgentHostingProvider>
|
|
46
46
|
</Tooltip.Provider>
|
|
47
47
|
</ClipboardProvider>
|
|
@@ -73,8 +73,8 @@ export const SpaceManager = (props: SpaceManagerProps) => {
|
|
|
73
73
|
icon: UsersThree,
|
|
74
74
|
onClick: useCallback(() => {
|
|
75
75
|
const invitation = space.share?.({
|
|
76
|
-
type: Invitation.Type.
|
|
77
|
-
authMethod: Invitation.AuthMethod.
|
|
76
|
+
type: Invitation.Type.INTERACTIVE,
|
|
77
|
+
authMethod: Invitation.AuthMethod.NONE,
|
|
78
78
|
multiUse: true,
|
|
79
79
|
target,
|
|
80
80
|
});
|
|
@@ -83,6 +83,22 @@ export const SpaceManager = (props: SpaceManagerProps) => {
|
|
|
83
83
|
}
|
|
84
84
|
}, [space]),
|
|
85
85
|
},
|
|
86
|
+
// inviteNonPersistent: {
|
|
87
|
+
// label: 'Invite one (nonpersistent)',
|
|
88
|
+
// description: 'Only one user may join. Invitation does not resume if client is restarted.',
|
|
89
|
+
// icon: UserPlus,
|
|
90
|
+
// onClick: useCallback(() => {
|
|
91
|
+
// const invitation = space.share?.({
|
|
92
|
+
// type: Invitation.Type.INTERACTIVE,
|
|
93
|
+
// authMethod: Invitation.AuthMethod.SHARED_SECRET,
|
|
94
|
+
// persistent: false,
|
|
95
|
+
// target,
|
|
96
|
+
// });
|
|
97
|
+
// if (invitation && config.values.runtime?.app?.env?.DX_ENVIRONMENT !== 'production') {
|
|
98
|
+
// invitation.subscribe(onInvitationEvent);
|
|
99
|
+
// }
|
|
100
|
+
// }, [space]),
|
|
101
|
+
// },
|
|
86
102
|
};
|
|
87
103
|
|
|
88
104
|
return <SpaceManagerImpl {...props} invitations={invitations} inviteActions={inviteActions} />;
|
|
@@ -53,9 +53,6 @@ export const InvitationManager = ({
|
|
|
53
53
|
const showAuthCode = statusValue === 3;
|
|
54
54
|
const emoji = hexToEmoji(id);
|
|
55
55
|
const activeView = useMemo(() => {
|
|
56
|
-
if (multiUse) {
|
|
57
|
-
return 'showing qr';
|
|
58
|
-
}
|
|
59
56
|
switch (true) {
|
|
60
57
|
case statusValue === 5:
|
|
61
58
|
case statusValue < 0:
|
|
@@ -85,14 +85,14 @@ export const os = {
|
|
|
85
85
|
'auth code message': 'Enter the following auth code on the joining device.',
|
|
86
86
|
'display name input label': 'Display name',
|
|
87
87
|
'display name input placeholder': 'Enter a display name',
|
|
88
|
-
'invite one label': '
|
|
88
|
+
'invite one label': 'Invite one',
|
|
89
89
|
'invite one description': 'Only one user may join.',
|
|
90
|
-
'invite one qr label': 'Single-use
|
|
90
|
+
'invite one qr label': 'Single-use',
|
|
91
91
|
'invite one list item label': 'Active single-use invitation',
|
|
92
|
-
'invite many label': '
|
|
92
|
+
'invite many label': 'Invite many',
|
|
93
93
|
'invite many description': 'Anyone with the link can join.',
|
|
94
|
-
'invite many qr label': '
|
|
95
|
-
'invite many list item label': 'Active
|
|
94
|
+
'invite many qr label': 'Multiple-use',
|
|
95
|
+
'invite many list item label': 'Active multiple-use invitation',
|
|
96
96
|
'invite options label': 'Change the active invite option.',
|
|
97
97
|
'reset in progress label': 'Resetting...',
|
|
98
98
|
'confirm label': 'Confirm',
|