@dxos/shell 0.4.7-next.7a94090 → 0.4.7
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 +61697 -61655
- package/dist/bundle/shell.mjs.map +1 -1
- package/dist/bundle/shell.umd.js +70 -69
- package/dist/bundle/shell.umd.js.map +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +103 -78
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/types/src/components/Clipboard/CopyButton.d.ts +1 -0
- package/dist/types/src/components/Clipboard/CopyButton.d.ts.map +1 -1
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts +1 -0
- package/dist/types/src/components/CompoundButton/CompoundButton.stories.d.ts.map +1 -1
- package/dist/types/src/components/EmojiPicker.js.map +1 -1
- package/dist/types/src/components/IdentityList/DeviceList.d.ts +1 -0
- package/dist/types/src/components/IdentityList/DeviceList.d.ts.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts +1 -0
- package/dist/types/src/components/IdentityList/SpaceMemberList.d.ts.map +1 -1
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts +1 -0
- package/dist/types/src/components/IdentityList/SpaceMemberList.stories.d.ts.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts +1 -0
- package/dist/types/src/components/InvitationList/InvitationList.stories.d.ts.map +1 -1
- package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts +1 -0
- package/dist/types/src/components/InvitationList/InvitationListContainer.d.ts.map +1 -1
- package/dist/types/src/components/Panel/CloseButton.d.ts +1 -0
- package/dist/types/src/components/Panel/CloseButton.d.ts.map +1 -1
- package/dist/types/src/components/Panel/Panel.stories.d.ts +1 -0
- package/dist/types/src/components/Panel/Panel.stories.d.ts.map +1 -1
- package/dist/types/src/components/Viewport/Viewport.js.map +1 -1
- package/dist/types/src/components/Viewport/Viewport.stories.d.ts +1 -0
- package/dist/types/src/components/Viewport/Viewport.stories.d.ts.map +1 -1
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts +1 -0
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.d.ts.map +1 -1
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.js +1 -1
- package/dist/types/src/composites/IdentityDialog/IdentityDialog.js.map +1 -1
- package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts +1 -0
- package/dist/types/src/composites/JoinDialog/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/composites/JoinDialog/JoinDialog.js +2 -2
- package/dist/types/src/composites/JoinDialog/JoinDialog.js.map +1 -1
- package/dist/types/src/composites/Shell/Shell.d.ts +1 -0
- package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/Shell.js.map +1 -1
- package/dist/types/src/composites/Shell/ShellContext.js.map +1 -1
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts +1 -0
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.d.ts.map +1 -1
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.js +1 -1
- package/dist/types/src/composites/SpaceDialog/SpaceDialog.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts +1 -0
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts +1 -0
- package/dist/types/src/panels/IdentityPanel/IdentityPanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/AgentForm.d.ts +1 -0
- package/dist/types/src/panels/IdentityPanel/steps/AgentForm.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/DeviceManager.d.ts +1 -0
- package/dist/types/src/panels/IdentityPanel/steps/DeviceManager.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js +2 -1
- package/dist/types/src/panels/IdentityPanel/steps/IdentityActionChooser.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts +1 -0
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/ProfileForm.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/SignOutChooser.d.ts +1 -0
- package/dist/types/src/panels/IdentityPanel/steps/SignOutChooser.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/steps/SignOutChooser.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js +2 -1
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts +1 -0
- package/dist/types/src/panels/JoinPanel/JoinPanel.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts +1 -0
- package/dist/types/src/panels/JoinPanel/JoinPanel.stories.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/joinMachine.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts +1 -0
- package/dist/types/src/panels/JoinPanel/steps/AdditionMethodChooser.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts +1 -0
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts +1 -0
- package/dist/types/src/panels/JoinPanel/steps/IdentityInput.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts +1 -0
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationAuthenticator.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts +1 -0
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationInput.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts +1 -0
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.d.ts.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/InvitationRescuer.js.map +1 -1
- package/dist/types/src/panels/JoinPanel/steps/ResetIdentity.d.ts +1 -0
- package/dist/types/src/panels/JoinPanel/steps/ResetIdentity.d.ts.map +1 -1
- package/dist/types/src/panels/Panels.stories.d.ts.map +1 -1
- package/dist/types/src/panels/Panels.stories.js +1 -3
- package/dist/types/src/panels/Panels.stories.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts +1 -0
- package/dist/types/src/panels/SpacePanel/SpacePanel.d.ts.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.js.map +1 -1
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts +1 -0
- package/dist/types/src/panels/SpacePanel/SpacePanel.stories.d.ts.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 +2 -1
- package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js.map +1 -1
- package/dist/types/src/playwright/invitations-manager.js.map +1 -1
- package/dist/types/src/steps/InvitationManager.d.ts +1 -0
- package/dist/types/src/steps/InvitationManager.d.ts.map +1 -1
- package/dist/types/src/steps/InvitationManager.js.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.d.ts +1 -0
- package/dist/types/src/stories/Invitations.e2e-stories.d.ts.map +1 -1
- package/dist/types/src/stories/Invitations.e2e-stories.js +3 -2
- package/dist/types/src/stories/Invitations.e2e-stories.js.map +1 -1
- package/dist/types/src/testing/scoped-shell-manager.js.map +1 -1
- package/dist/types/src/testing/shell-manager.js.map +1 -1
- package/package.json +19 -19
- package/src/panels/IdentityPanel/IdentityPanel.tsx +1 -1
- package/src/panels/IdentityPanel/steps/IdentityActionChooser.tsx +2 -1
- package/src/panels/IdentityPanel/useAgentHandlers.ts +2 -1
- package/src/panels/Panels.stories.tsx +1 -3
- package/src/panels/SpacePanel/steps/SpaceManager.tsx +2 -1
- package/src/stories/Invitations.e2e-stories.tsx +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/shell",
|
|
3
|
-
"version": "0.4.7
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"description": "DXOS’s OS experiences",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"react-qr-rounded": "^1.0.0",
|
|
42
42
|
"url-join": "^5.0.0",
|
|
43
43
|
"xstate": "^4.37.0",
|
|
44
|
-
"@dxos/async": "0.4.7
|
|
45
|
-
"@dxos/client-
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/react-ui": "0.4.7
|
|
53
|
-
"@dxos/react-ui
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
44
|
+
"@dxos/async": "0.4.7",
|
|
45
|
+
"@dxos/client-services": "0.4.7",
|
|
46
|
+
"@dxos/client-protocol": "0.4.7",
|
|
47
|
+
"@dxos/display-name": "0.4.7",
|
|
48
|
+
"@dxos/invariant": "0.4.7",
|
|
49
|
+
"@dxos/debug": "0.4.7",
|
|
50
|
+
"@dxos/log": "0.4.7",
|
|
51
|
+
"@dxos/react-client": "0.4.7",
|
|
52
|
+
"@dxos/react-ui-theme": "0.4.7",
|
|
53
|
+
"@dxos/react-ui": "0.4.7",
|
|
54
|
+
"@dxos/react-ui-types": "0.4.7",
|
|
55
|
+
"@dxos/util": "0.4.7",
|
|
56
|
+
"@dxos/rpc-tunnel": "0.4.7"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@phosphor-icons/react": "^2.0.5",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"react-dom": "^18.2.0",
|
|
65
65
|
"vite": "^5.1.5",
|
|
66
66
|
"vite-plugin-turbosnap": "^1.0.2",
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/react-
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
67
|
+
"@dxos/random": "0.4.7",
|
|
68
|
+
"@dxos/config": "0.4.7",
|
|
69
|
+
"@dxos/react-async": "0.4.7",
|
|
70
|
+
"@dxos/react-ui-theme": "0.4.7",
|
|
71
|
+
"@dxos/storybook-utils": "0.4.7"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@phosphor-icons/react": "^2.0.5",
|
|
@@ -129,7 +129,7 @@ export const IdentityPanel = ({
|
|
|
129
129
|
const invitations = useHaloInvitations();
|
|
130
130
|
const agentProps = useAgentHandlers({ client, identity, invitations });
|
|
131
131
|
if (!identity) {
|
|
132
|
-
|
|
132
|
+
log.error('IdentityPanel rendered with no active identity.');
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
135
|
const [identityState, identitySend, identityService] = useIdentityMachine(client);
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { CaretRight, Devices, Plus, Power, UserGear, HardDrive } from '@phosphor-icons/react';
|
|
6
6
|
import React, { useCallback } from 'react';
|
|
7
7
|
|
|
8
|
+
import { log } from '@dxos/log';
|
|
8
9
|
import { useAgentHostingProviderClient, useClient } from '@dxos/react-client';
|
|
9
10
|
import { useHaloInvitations } from '@dxos/react-client/halo';
|
|
10
11
|
import { Invitation, InvitationEncoder } from '@dxos/react-client/invitations';
|
|
@@ -24,7 +25,7 @@ export const IdentityActionChooser = (props: IdentityPanelStepProps) => {
|
|
|
24
25
|
const onInvitationEvent = useCallback((invitation: Invitation) => {
|
|
25
26
|
const invitationCode = InvitationEncoder.encode(invitation);
|
|
26
27
|
if (invitation.state === Invitation.State.CONNECTING) {
|
|
27
|
-
|
|
28
|
+
log.info(JSON.stringify({ invitationCode, authCode: invitation.authCode }));
|
|
28
29
|
}
|
|
29
30
|
}, []);
|
|
30
31
|
const createInvitation = (e: React.MouseEvent) => {
|
|
@@ -6,6 +6,7 @@ import { useCallback, useEffect, useState } from 'react';
|
|
|
6
6
|
|
|
7
7
|
import { type CancellableInvitation } from '@dxos/client-protocol';
|
|
8
8
|
import { invariant } from '@dxos/invariant';
|
|
9
|
+
import { log } from '@dxos/log';
|
|
9
10
|
import { useAgentHostingProviderClient, type Client } from '@dxos/react-client';
|
|
10
11
|
import { type Identity } from '@dxos/react-client/halo';
|
|
11
12
|
import { Invitation, InvitationEncoder } from '@dxos/react-client/invitations';
|
|
@@ -46,7 +47,7 @@ export const useAgentHandlers = ({
|
|
|
46
47
|
const handleAgentCreate = useCallback(async (invitation: Invitation) => {
|
|
47
48
|
const invitationCode = InvitationEncoder.encode(invitation);
|
|
48
49
|
if (invitation.state === Invitation.State.CONNECTING) {
|
|
49
|
-
|
|
50
|
+
log.info(JSON.stringify({ invitationCode, authCode: invitation.authCode }));
|
|
50
51
|
invariant(identity, 'Identity not found');
|
|
51
52
|
if (agentHostingProviderClient) {
|
|
52
53
|
try {
|
|
@@ -16,9 +16,7 @@ const getComponentNames = (module: any): string[] =>
|
|
|
16
16
|
Object.getOwnPropertyNames(module).filter((name) => !(name === 'default' || name.startsWith('__')));
|
|
17
17
|
|
|
18
18
|
const getComponents = (module: any): React.FC[] => {
|
|
19
|
-
|
|
20
|
-
console.log(module);
|
|
21
|
-
return components;
|
|
19
|
+
return getComponentNames(module).map((name) => module[name]);
|
|
22
20
|
};
|
|
23
21
|
|
|
24
22
|
const camelCaseToSpacedName = (camelCase: string) => {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { Placeholder, UserPlus, UsersThree } from '@phosphor-icons/react';
|
|
6
6
|
import React, { type Dispatch, type SetStateAction, useCallback, useState } from 'react';
|
|
7
7
|
|
|
8
|
+
import { log } from '@dxos/log';
|
|
8
9
|
import { useConfig } from '@dxos/react-client';
|
|
9
10
|
import { useSpaceInvitations } from '@dxos/react-client/echo';
|
|
10
11
|
import { type CancellableInvitationObservable, Invitation, InvitationEncoder } from '@dxos/react-client/invitations';
|
|
@@ -45,7 +46,7 @@ export const SpaceManager = (props: SpaceManagerProps) => {
|
|
|
45
46
|
const onInvitationEvent = useCallback((invitation: Invitation) => {
|
|
46
47
|
const invitationCode = InvitationEncoder.encode(invitation);
|
|
47
48
|
if (invitation.state === Invitation.State.CONNECTING) {
|
|
48
|
-
|
|
49
|
+
log.info(JSON.stringify({ invitationCode, authCode: invitation.authCode }));
|
|
49
50
|
}
|
|
50
51
|
}, []);
|
|
51
52
|
|
|
@@ -7,6 +7,7 @@ import '@dxosTheme';
|
|
|
7
7
|
import { Laptop, Planet, Plus, PlusCircle, SignIn, QrCode, WifiHigh, WifiSlash } from '@phosphor-icons/react';
|
|
8
8
|
import React, { useMemo, useState } from 'react';
|
|
9
9
|
|
|
10
|
+
import { log } from '@dxos/log';
|
|
10
11
|
import { faker } from '@dxos/random';
|
|
11
12
|
import { useClient } from '@dxos/react-client';
|
|
12
13
|
import { type Space, type SpaceMember, SpaceProxy, useSpaces } from '@dxos/react-client/echo';
|
|
@@ -42,7 +43,7 @@ const Panel = ({ id, panel, setPanel }: { id: number; panel?: PanelType; setPane
|
|
|
42
43
|
invitation.subscribe((invitation) => {
|
|
43
44
|
const invitationCode = InvitationEncoder.encode(invitation);
|
|
44
45
|
if (invitation.state === Invitation.State.CONNECTING) {
|
|
45
|
-
|
|
46
|
+
log.info(JSON.stringify({ invitationCode, authCode: invitation.authCode }));
|
|
46
47
|
}
|
|
47
48
|
});
|
|
48
49
|
};
|
|
@@ -126,7 +127,7 @@ const Invitations = (args: { id: number; count: number }) => {
|
|
|
126
127
|
invitation.subscribe((invitation) => {
|
|
127
128
|
const invitationCode = InvitationEncoder.encode(invitation);
|
|
128
129
|
if (invitation.state === Invitation.State.CONNECTING) {
|
|
129
|
-
|
|
130
|
+
log.info(JSON.stringify({ invitationCode, authCode: invitation.authCode }));
|
|
130
131
|
}
|
|
131
132
|
});
|
|
132
133
|
};
|