@dxos/shell 0.4.7-main.b23cefb → 0.4.7-main.b51ad3a
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 +61545 -61525
- 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/bundle/style.css +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +115 -88
- 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/IdentityListItem.js +3 -3
- package/dist/types/src/components/IdentityList/IdentityListItem.js.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 +5 -5
- 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 +3 -3
- 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/IdentityAdded.js +4 -4
- package/dist/types/src/panels/JoinPanel/steps/IdentityAdded.js.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 +20 -20
- package/src/components/IdentityList/IdentityListItem.tsx +2 -2
- package/src/panels/IdentityPanel/IdentityPanel.tsx +3 -3
- package/src/panels/IdentityPanel/steps/IdentityActionChooser.tsx +2 -1
- package/src/panels/IdentityPanel/steps/ProfileForm.tsx +4 -3
- package/src/panels/IdentityPanel/useAgentHandlers.ts +2 -1
- package/src/panels/JoinPanel/steps/IdentityAdded.tsx +2 -2
- 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
|
@@ -307,11 +307,11 @@ var IdentityListItem = /* @__PURE__ */ forwardRef(({ identity, presence, onClick
|
|
|
307
307
|
}, /* @__PURE__ */ React6.createElement(Avatar.Root, {
|
|
308
308
|
status: presence === SpaceMember.PresenceState.ONLINE ? "active" : "inactive",
|
|
309
309
|
labelId,
|
|
310
|
-
hue: identity.profile?.hue || fallbackValue.hue
|
|
310
|
+
hue: identity.profile?.data?.hue || fallbackValue.hue
|
|
311
311
|
}, /* @__PURE__ */ React6.createElement(Avatar.Frame, {
|
|
312
312
|
classNames: "place-self-center"
|
|
313
313
|
}, /* @__PURE__ */ React6.createElement(Avatar.Fallback, {
|
|
314
|
-
text: identity.profile?.emoji || fallbackValue.emoji
|
|
314
|
+
text: identity.profile?.data?.emoji || fallbackValue.emoji
|
|
315
315
|
})), /* @__PURE__ */ React6.createElement(Avatar.Label, {
|
|
316
316
|
classNames: "text-sm truncate pli-2"
|
|
317
317
|
}, displayName)));
|
|
@@ -908,7 +908,7 @@ import { Dialog, useId as useId9 } from "@dxos/react-ui";
|
|
|
908
908
|
// packages/sdk/shell/src/panels/IdentityPanel/IdentityPanel.tsx
|
|
909
909
|
import React29, { useEffect as useEffect3, useMemo as useMemo3 } from "react";
|
|
910
910
|
import { generateName as generateName3 } from "@dxos/display-name";
|
|
911
|
-
import { log as
|
|
911
|
+
import { log as log5 } from "@dxos/log";
|
|
912
912
|
import { useClient as useClient3 } from "@dxos/react-client";
|
|
913
913
|
import { useIdentity, useDevices, useHaloInvitations as useHaloInvitations2 } from "@dxos/react-client/halo";
|
|
914
914
|
import { useInvitationStatus as useInvitationStatus2 } from "@dxos/react-client/invitations";
|
|
@@ -1098,11 +1098,13 @@ var DeviceManager = ({ devices, active, send }) => {
|
|
|
1098
1098
|
// packages/sdk/shell/src/panels/IdentityPanel/steps/IdentityActionChooser.tsx
|
|
1099
1099
|
import { CaretRight, Devices, Plus, Power, UserGear, HardDrive } from "@phosphor-icons/react";
|
|
1100
1100
|
import React25, { useCallback as useCallback4 } from "react";
|
|
1101
|
+
import { log as log2 } from "@dxos/log";
|
|
1101
1102
|
import { useAgentHostingProviderClient, useClient as useClient2 } from "@dxos/react-client";
|
|
1102
1103
|
import { useHaloInvitations } from "@dxos/react-client/halo";
|
|
1103
1104
|
import { Invitation as Invitation2, InvitationEncoder } from "@dxos/react-client/invitations";
|
|
1104
1105
|
import { DensityProvider, useTranslation as useTranslation11 } from "@dxos/react-ui";
|
|
1105
1106
|
import { getSize as getSize8 } from "@dxos/react-ui-theme";
|
|
1107
|
+
var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/IdentityPanel/steps/IdentityActionChooser.tsx";
|
|
1106
1108
|
var IdentityActionChooser = (props) => {
|
|
1107
1109
|
const { send } = props;
|
|
1108
1110
|
const client = useClient2();
|
|
@@ -1111,10 +1113,15 @@ var IdentityActionChooser = (props) => {
|
|
|
1111
1113
|
const onInvitationEvent = useCallback4((invitation) => {
|
|
1112
1114
|
const invitationCode = InvitationEncoder.encode(invitation);
|
|
1113
1115
|
if (invitation.state === Invitation2.State.CONNECTING) {
|
|
1114
|
-
|
|
1116
|
+
log2.info(JSON.stringify({
|
|
1115
1117
|
invitationCode,
|
|
1116
1118
|
authCode: invitation.authCode
|
|
1117
|
-
})
|
|
1119
|
+
}), void 0, {
|
|
1120
|
+
F: __dxlog_file2,
|
|
1121
|
+
L: 28,
|
|
1122
|
+
S: void 0,
|
|
1123
|
+
C: (f, a) => f(...a)
|
|
1124
|
+
});
|
|
1118
1125
|
}
|
|
1119
1126
|
}, []);
|
|
1120
1127
|
const createInvitation = (e) => {
|
|
@@ -1216,18 +1223,18 @@ var IdentityActionChooserImpl = ({ onCreateInvitationClick, active, send, onDone
|
|
|
1216
1223
|
|
|
1217
1224
|
// packages/sdk/shell/src/panels/IdentityPanel/steps/ProfileForm.tsx
|
|
1218
1225
|
import React26, { useState as useState4 } from "react";
|
|
1219
|
-
import { log as
|
|
1226
|
+
import { log as log3 } from "@dxos/log";
|
|
1220
1227
|
import { useTranslation as useTranslation12 } from "@dxos/react-ui";
|
|
1221
1228
|
import { hexToEmoji as hexToEmoji2, hexToHue } from "@dxos/util";
|
|
1222
|
-
var
|
|
1229
|
+
var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/IdentityPanel/steps/ProfileForm.tsx";
|
|
1223
1230
|
var ProfileForm = (props) => {
|
|
1224
1231
|
const { onUpdateProfile } = props;
|
|
1225
1232
|
const { t } = useTranslation12("os");
|
|
1226
1233
|
const [validationMessage, setValidationMessage] = useState4("");
|
|
1227
1234
|
const handleUpdateProfile = async (profile) => {
|
|
1228
1235
|
await onUpdateProfile?.(profile).catch((error) => {
|
|
1229
|
-
|
|
1230
|
-
F:
|
|
1236
|
+
log3.catch(error, void 0, {
|
|
1237
|
+
F: __dxlog_file3,
|
|
1231
1238
|
L: 33,
|
|
1232
1239
|
S: void 0,
|
|
1233
1240
|
C: (f, a) => f(...a)
|
|
@@ -1241,8 +1248,8 @@ var ProfileForm = (props) => {
|
|
|
1241
1248
|
validationMessage
|
|
1242
1249
|
});
|
|
1243
1250
|
};
|
|
1244
|
-
var getHueValue = (identity) => identity?.profile?.hue || hexToHue(identity?.identityKey.toHex() ?? "0");
|
|
1245
|
-
var getEmojiValue = (identity) => identity?.profile?.emoji || hexToEmoji2(identity?.identityKey.toHex() ?? "0");
|
|
1251
|
+
var getHueValue = (identity) => identity?.profile?.data?.hue || hexToHue(identity?.identityKey.toHex() ?? "0");
|
|
1252
|
+
var getEmojiValue = (identity) => identity?.profile?.data?.emoji || hexToEmoji2(identity?.identityKey.toHex() ?? "0");
|
|
1246
1253
|
var ProfileFormImpl = (props) => {
|
|
1247
1254
|
const { active, identity, send, onUpdateProfile, validationMessage } = props;
|
|
1248
1255
|
const profile = identity?.profile;
|
|
@@ -1303,8 +1310,10 @@ var ProfileFormImpl = (props) => {
|
|
|
1303
1310
|
disabled,
|
|
1304
1311
|
onClick: () => onUpdateProfile?.({
|
|
1305
1312
|
displayName,
|
|
1306
|
-
|
|
1307
|
-
|
|
1313
|
+
data: {
|
|
1314
|
+
emoji,
|
|
1315
|
+
hue
|
|
1316
|
+
}
|
|
1308
1317
|
}),
|
|
1309
1318
|
"data-testid": "update-profile-form-continue"
|
|
1310
1319
|
}, t("done label"))));
|
|
@@ -1361,9 +1370,10 @@ var SignOutChooserImpl = ({ disabled, onResetDevice, onJoinNewIdentity, onBack }
|
|
|
1361
1370
|
// packages/sdk/shell/src/panels/IdentityPanel/useAgentHandlers.ts
|
|
1362
1371
|
import { useCallback as useCallback5, useEffect as useEffect2, useState as useState5 } from "react";
|
|
1363
1372
|
import { invariant } from "@dxos/invariant";
|
|
1373
|
+
import { log as log4 } from "@dxos/log";
|
|
1364
1374
|
import { useAgentHostingProviderClient as useAgentHostingProviderClient2 } from "@dxos/react-client";
|
|
1365
1375
|
import { Invitation as Invitation3, InvitationEncoder as InvitationEncoder2 } from "@dxos/react-client/invitations";
|
|
1366
|
-
var
|
|
1376
|
+
var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/IdentityPanel/useAgentHandlers.ts";
|
|
1367
1377
|
var useAgentHandlers = ({ client, invitations, identity }) => {
|
|
1368
1378
|
const [validationMessage, setValidationMessage] = useState5("");
|
|
1369
1379
|
const [agentStatus, setAgentStatus] = useState5("");
|
|
@@ -1389,14 +1399,19 @@ var useAgentHandlers = ({ client, invitations, identity }) => {
|
|
|
1389
1399
|
const handleAgentCreate = useCallback5(async (invitation) => {
|
|
1390
1400
|
const invitationCode = InvitationEncoder2.encode(invitation);
|
|
1391
1401
|
if (invitation.state === Invitation3.State.CONNECTING) {
|
|
1392
|
-
|
|
1402
|
+
log4.info(JSON.stringify({
|
|
1393
1403
|
invitationCode,
|
|
1394
1404
|
authCode: invitation.authCode
|
|
1395
|
-
})
|
|
1396
|
-
|
|
1397
|
-
F: __dxlog_file3,
|
|
1405
|
+
}), void 0, {
|
|
1406
|
+
F: __dxlog_file4,
|
|
1398
1407
|
L: 50,
|
|
1399
1408
|
S: void 0,
|
|
1409
|
+
C: (f, a) => f(...a)
|
|
1410
|
+
});
|
|
1411
|
+
invariant(identity, "Identity not found", {
|
|
1412
|
+
F: __dxlog_file4,
|
|
1413
|
+
L: 51,
|
|
1414
|
+
S: void 0,
|
|
1400
1415
|
A: [
|
|
1401
1416
|
"identity",
|
|
1402
1417
|
"'Identity not found'"
|
|
@@ -1425,8 +1440,8 @@ var useAgentHandlers = ({ client, invitations, identity }) => {
|
|
|
1425
1440
|
const onAgentDestroy = async () => {
|
|
1426
1441
|
const identity2 = client.halo.identity.get();
|
|
1427
1442
|
invariant(identity2, "Identity not found", {
|
|
1428
|
-
F:
|
|
1429
|
-
L:
|
|
1443
|
+
F: __dxlog_file4,
|
|
1444
|
+
L: 77,
|
|
1430
1445
|
S: void 0,
|
|
1431
1446
|
A: [
|
|
1432
1447
|
"identity",
|
|
@@ -1579,7 +1594,7 @@ var InvitationManager = ({ invitationUrl, active, send, status, type, authCode,
|
|
|
1579
1594
|
};
|
|
1580
1595
|
|
|
1581
1596
|
// packages/sdk/shell/src/panels/IdentityPanel/IdentityPanel.tsx
|
|
1582
|
-
var
|
|
1597
|
+
var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/IdentityPanel/IdentityPanel.tsx";
|
|
1583
1598
|
var viewStyles = "pbs-1 pbe-3 pli-3";
|
|
1584
1599
|
var IdentityHeading = ({ titleId, title, identity, onDone }) => {
|
|
1585
1600
|
const fallbackValue = keyToFallback2(identity.identityKey);
|
|
@@ -1593,11 +1608,11 @@ var IdentityHeading = ({ titleId, title, identity, onDone }) => {
|
|
|
1593
1608
|
size: 12,
|
|
1594
1609
|
variant: "circle",
|
|
1595
1610
|
status: "active",
|
|
1596
|
-
hue: identity.profile?.hue || fallbackValue.hue
|
|
1611
|
+
hue: identity.profile?.data?.hue || fallbackValue.hue
|
|
1597
1612
|
}, /* @__PURE__ */ React29.createElement(Avatar4.Frame, {
|
|
1598
1613
|
classNames: "block mbs-4 mbe-2 mli-auto chromatic-ignore"
|
|
1599
1614
|
}, /* @__PURE__ */ React29.createElement(Avatar4.Fallback, {
|
|
1600
|
-
text: identity.profile?.emoji || fallbackValue.emoji
|
|
1615
|
+
text: identity.profile?.data?.emoji || fallbackValue.emoji
|
|
1601
1616
|
})), /* @__PURE__ */ React29.createElement(Avatar4.Label, {
|
|
1602
1617
|
classNames: "block text-center font-light text-xl",
|
|
1603
1618
|
"data-testid": "identityHeading.displayName"
|
|
@@ -1691,14 +1706,19 @@ var IdentityPanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => co
|
|
|
1691
1706
|
invitations
|
|
1692
1707
|
});
|
|
1693
1708
|
if (!identity) {
|
|
1694
|
-
|
|
1709
|
+
log5.error("IdentityPanel rendered with no active identity.", void 0, {
|
|
1710
|
+
F: __dxlog_file5,
|
|
1711
|
+
L: 132,
|
|
1712
|
+
S: void 0,
|
|
1713
|
+
C: (f, a) => f(...a)
|
|
1714
|
+
});
|
|
1695
1715
|
return null;
|
|
1696
1716
|
}
|
|
1697
1717
|
const [identityState, identitySend, identityService] = useIdentityMachine(client);
|
|
1698
1718
|
useEffect3(() => {
|
|
1699
1719
|
const subscription = identityService.subscribe((state) => {
|
|
1700
|
-
|
|
1701
|
-
F:
|
|
1720
|
+
log5("[state]", state, {
|
|
1721
|
+
F: __dxlog_file5,
|
|
1702
1722
|
L: 139,
|
|
1703
1723
|
S: void 0,
|
|
1704
1724
|
C: (f, a) => f(...a)
|
|
@@ -1767,7 +1787,7 @@ var IdentityPanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => co
|
|
|
1767
1787
|
|
|
1768
1788
|
// packages/sdk/shell/src/panels/JoinPanel/JoinPanel.tsx
|
|
1769
1789
|
import React39, { useCallback as useCallback7, useEffect as useEffect5, useMemo as useMemo4 } from "react";
|
|
1770
|
-
import { log as
|
|
1790
|
+
import { log as log10 } from "@dxos/log";
|
|
1771
1791
|
import { useClient as useClient6, useMulticastObservable } from "@dxos/react-client";
|
|
1772
1792
|
import { useIdentity as useIdentity2 } from "@dxos/react-client/halo";
|
|
1773
1793
|
import { DensityProvider as DensityProvider3, useId as useId7, useThemeContext as useThemeContext4 } from "@dxos/react-ui";
|
|
@@ -1809,13 +1829,13 @@ var JoinHeading = /* @__PURE__ */ forwardRef8(({ mode, titleId, onExit, exitActi
|
|
|
1809
1829
|
import { useMachine as useMachine2 } from "@xstate/react";
|
|
1810
1830
|
import { useCallback as useCallback6 } from "react";
|
|
1811
1831
|
import { assign as assign2, createMachine as createMachine2 } from "xstate";
|
|
1812
|
-
import { log as
|
|
1832
|
+
import { log as log6 } from "@dxos/log";
|
|
1813
1833
|
import { AlreadyJoinedError } from "@dxos/react-client";
|
|
1814
1834
|
import { Invitation as Invitation6, InvitationEncoder as InvitationEncoder3 } from "@dxos/react-client/invitations";
|
|
1815
|
-
var
|
|
1835
|
+
var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/JoinPanel/joinMachine.ts";
|
|
1816
1836
|
var getInvitationSubscribable = (Kind, invitation) => {
|
|
1817
|
-
|
|
1818
|
-
F:
|
|
1837
|
+
log6("[subscribing to invitation]", invitation, {
|
|
1838
|
+
F: __dxlog_file6,
|
|
1819
1839
|
L: 88,
|
|
1820
1840
|
S: void 0,
|
|
1821
1841
|
C: (f, a) => f(...a)
|
|
@@ -1824,11 +1844,11 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
1824
1844
|
subscribe: (next, onError, complete) => invitation.subscribe((invitation2) => {
|
|
1825
1845
|
switch (invitation2.state) {
|
|
1826
1846
|
case Invitation6.State.CONNECTING: {
|
|
1827
|
-
|
|
1847
|
+
log6("[invitation connecting]", {
|
|
1828
1848
|
Kind,
|
|
1829
1849
|
invitation: invitation2
|
|
1830
1850
|
}, {
|
|
1831
|
-
F:
|
|
1851
|
+
F: __dxlog_file6,
|
|
1832
1852
|
L: 99,
|
|
1833
1853
|
S: void 0,
|
|
1834
1854
|
C: (f, a) => f(...a)
|
|
@@ -1839,11 +1859,11 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
1839
1859
|
});
|
|
1840
1860
|
}
|
|
1841
1861
|
case Invitation6.State.CONNECTED: {
|
|
1842
|
-
|
|
1862
|
+
log6("[invitation connected]", {
|
|
1843
1863
|
Kind,
|
|
1844
1864
|
invitation: invitation2
|
|
1845
1865
|
}, {
|
|
1846
|
-
F:
|
|
1866
|
+
F: __dxlog_file6,
|
|
1847
1867
|
L: 104,
|
|
1848
1868
|
S: void 0,
|
|
1849
1869
|
C: (f, a) => f(...a)
|
|
@@ -1854,11 +1874,11 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
1854
1874
|
});
|
|
1855
1875
|
}
|
|
1856
1876
|
case Invitation6.State.READY_FOR_AUTHENTICATION: {
|
|
1857
|
-
|
|
1877
|
+
log6("[invitation ready for authentication]", {
|
|
1858
1878
|
Kind,
|
|
1859
1879
|
invitation: invitation2
|
|
1860
1880
|
}, {
|
|
1861
|
-
F:
|
|
1881
|
+
F: __dxlog_file6,
|
|
1862
1882
|
L: 109,
|
|
1863
1883
|
S: void 0,
|
|
1864
1884
|
C: (f, a) => f(...a)
|
|
@@ -1869,11 +1889,11 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
1869
1889
|
});
|
|
1870
1890
|
}
|
|
1871
1891
|
case Invitation6.State.AUTHENTICATING: {
|
|
1872
|
-
|
|
1892
|
+
log6("[invitation authenticating]", {
|
|
1873
1893
|
Kind,
|
|
1874
1894
|
invitation: invitation2
|
|
1875
1895
|
}, {
|
|
1876
|
-
F:
|
|
1896
|
+
F: __dxlog_file6,
|
|
1877
1897
|
L: 114,
|
|
1878
1898
|
S: void 0,
|
|
1879
1899
|
C: (f, a) => f(...a)
|
|
@@ -1884,11 +1904,11 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
1884
1904
|
});
|
|
1885
1905
|
}
|
|
1886
1906
|
case Invitation6.State.SUCCESS: {
|
|
1887
|
-
|
|
1907
|
+
log6("[invitation success]", {
|
|
1888
1908
|
Kind,
|
|
1889
1909
|
invitation: invitation2
|
|
1890
1910
|
}, {
|
|
1891
|
-
F:
|
|
1911
|
+
F: __dxlog_file6,
|
|
1892
1912
|
L: 119,
|
|
1893
1913
|
S: void 0,
|
|
1894
1914
|
C: (f, a) => f(...a)
|
|
@@ -1900,10 +1920,10 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
1900
1920
|
return complete?.();
|
|
1901
1921
|
}
|
|
1902
1922
|
case Invitation6.State.CANCELLED: {
|
|
1903
|
-
|
|
1923
|
+
log6.warn("[invitation cancelled]", {
|
|
1904
1924
|
Kind
|
|
1905
1925
|
}, {
|
|
1906
|
-
F:
|
|
1926
|
+
F: __dxlog_file6,
|
|
1907
1927
|
L: 125,
|
|
1908
1928
|
S: void 0,
|
|
1909
1929
|
C: (f, a) => f(...a)
|
|
@@ -1914,10 +1934,10 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
1914
1934
|
});
|
|
1915
1935
|
}
|
|
1916
1936
|
case Invitation6.State.TIMEOUT: {
|
|
1917
|
-
|
|
1937
|
+
log6.error("[invitation timeout]", {
|
|
1918
1938
|
Kind
|
|
1919
1939
|
}, {
|
|
1920
|
-
F:
|
|
1940
|
+
F: __dxlog_file6,
|
|
1921
1941
|
L: 130,
|
|
1922
1942
|
S: void 0,
|
|
1923
1943
|
C: (f, a) => f(...a)
|
|
@@ -1930,11 +1950,11 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
1930
1950
|
}
|
|
1931
1951
|
}, (error) => {
|
|
1932
1952
|
if (error instanceof AlreadyJoinedError) {
|
|
1933
|
-
|
|
1953
|
+
log6("[already joined]", {
|
|
1934
1954
|
Kind,
|
|
1935
1955
|
error
|
|
1936
1956
|
}, {
|
|
1937
|
-
F:
|
|
1957
|
+
F: __dxlog_file6,
|
|
1938
1958
|
L: 137,
|
|
1939
1959
|
S: void 0,
|
|
1940
1960
|
C: (f, a) => f(...a)
|
|
@@ -1945,11 +1965,11 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
1945
1965
|
});
|
|
1946
1966
|
return complete?.();
|
|
1947
1967
|
}
|
|
1948
|
-
|
|
1968
|
+
log6.error("[invitation errored]", {
|
|
1949
1969
|
Kind,
|
|
1950
1970
|
error
|
|
1951
1971
|
}, {
|
|
1952
|
-
F:
|
|
1972
|
+
F: __dxlog_file6,
|
|
1953
1973
|
L: 142,
|
|
1954
1974
|
S: void 0,
|
|
1955
1975
|
C: (f, a) => f(...a)
|
|
@@ -2269,12 +2289,12 @@ var joinMachine = createMachine2({
|
|
|
2269
2289
|
} : context.space
|
|
2270
2290
|
}),
|
|
2271
2291
|
log: (context, event) => {
|
|
2272
|
-
|
|
2292
|
+
log6("[transition]", {
|
|
2273
2293
|
event,
|
|
2274
2294
|
haloInvitation: context.halo.invitation,
|
|
2275
2295
|
spaceInvitation: context.space.invitation
|
|
2276
2296
|
}, {
|
|
2277
|
-
F:
|
|
2297
|
+
F: __dxlog_file6,
|
|
2278
2298
|
L: 406,
|
|
2279
2299
|
S: void 0,
|
|
2280
2300
|
C: (f, a) => f(...a)
|
|
@@ -2287,8 +2307,8 @@ var defaultCodeFromUrl = (invitationType, text) => {
|
|
|
2287
2307
|
const searchParams = new URLSearchParams(text.substring(text.lastIndexOf("?")));
|
|
2288
2308
|
return searchParams.get(`${invitationType}InvitationCode`) ?? searchParams.get(`${invitationType}Invitation`) ?? searchParams.get("invitationCode") ?? searchParams.get("invitation") ?? text;
|
|
2289
2309
|
} catch (err) {
|
|
2290
|
-
|
|
2291
|
-
F:
|
|
2310
|
+
log6.catch(err, void 0, {
|
|
2311
|
+
F: __dxlog_file6,
|
|
2292
2312
|
L: 433,
|
|
2293
2313
|
S: void 0,
|
|
2294
2314
|
C: (f, a) => f(...a)
|
|
@@ -2308,8 +2328,8 @@ var useJoinMachine = (client, options) => {
|
|
|
2308
2328
|
invitationSubscribable: getInvitationSubscribable("Halo", invitationObservable)
|
|
2309
2329
|
};
|
|
2310
2330
|
} catch (err) {
|
|
2311
|
-
|
|
2312
|
-
F:
|
|
2331
|
+
log6.error("Could not redeem device invitation code", err, {
|
|
2332
|
+
F: __dxlog_file6,
|
|
2313
2333
|
L: 454,
|
|
2314
2334
|
S: void 0,
|
|
2315
2335
|
C: (f, a) => f(...a)
|
|
@@ -2333,8 +2353,8 @@ var useJoinMachine = (client, options) => {
|
|
|
2333
2353
|
invitationSubscribable: getInvitationSubscribable("Space", invitationObservable)
|
|
2334
2354
|
};
|
|
2335
2355
|
} catch (err) {
|
|
2336
|
-
|
|
2337
|
-
F:
|
|
2356
|
+
log6.error("Could not redeem space invitation code", err, {
|
|
2357
|
+
F: __dxlog_file6,
|
|
2338
2358
|
L: 476,
|
|
2339
2359
|
S: void 0,
|
|
2340
2360
|
C: (f, a) => f(...a)
|
|
@@ -2481,9 +2501,9 @@ var IdentityAdded = (props) => {
|
|
|
2481
2501
|
}, /* @__PURE__ */ React32.createElement(Avatar5.Root, {
|
|
2482
2502
|
status: "active",
|
|
2483
2503
|
labelId,
|
|
2484
|
-
hue: addedIdentity?.profile?.hue || fallbackValue.hue
|
|
2504
|
+
hue: addedIdentity?.profile?.data?.hue || fallbackValue.hue
|
|
2485
2505
|
}, /* @__PURE__ */ React32.createElement(Avatar5.Frame, null, /* @__PURE__ */ React32.createElement(Avatar5.Fallback, {
|
|
2486
|
-
text: addedIdentity?.profile?.emoji || fallbackValue.emoji
|
|
2506
|
+
text: addedIdentity?.profile?.data?.emoji || fallbackValue.emoji
|
|
2487
2507
|
})), /* @__PURE__ */ React32.createElement(Avatar5.Label, {
|
|
2488
2508
|
classNames: mx21("text-lg truncate", !addedIdentity?.profile?.displayName && "font-mono")
|
|
2489
2509
|
}, displayName))), /* @__PURE__ */ React32.createElement(Actions, null, mode === "halo-only" ? doneActionParent ? /* @__PURE__ */ cloneElement2(doneActionParent, {}, doneAction) : doneAction : /* @__PURE__ */ React32.createElement(Action, {
|
|
@@ -2499,10 +2519,10 @@ var IdentityAdded = (props) => {
|
|
|
2499
2519
|
|
|
2500
2520
|
// packages/sdk/shell/src/panels/JoinPanel/steps/IdentityInput.tsx
|
|
2501
2521
|
import React33, { useState as useState6 } from "react";
|
|
2502
|
-
import { log as
|
|
2522
|
+
import { log as log7 } from "@dxos/log";
|
|
2503
2523
|
import { useClient as useClient4 } from "@dxos/react-client";
|
|
2504
2524
|
import { useTranslation as useTranslation19 } from "@dxos/react-ui";
|
|
2505
|
-
var
|
|
2525
|
+
var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/JoinPanel/steps/IdentityInput.tsx";
|
|
2506
2526
|
var IdentityInput = (props) => {
|
|
2507
2527
|
const { send, method } = props;
|
|
2508
2528
|
const isRecover = method === "recover identity";
|
|
@@ -2518,8 +2538,8 @@ var IdentityInput = (props) => {
|
|
|
2518
2538
|
identity
|
|
2519
2539
|
});
|
|
2520
2540
|
}, (error) => {
|
|
2521
|
-
|
|
2522
|
-
F:
|
|
2541
|
+
log7.catch(error, void 0, {
|
|
2542
|
+
F: __dxlog_file7,
|
|
2523
2543
|
L: 37,
|
|
2524
2544
|
S: void 0,
|
|
2525
2545
|
C: (f, a) => f(...a)
|
|
@@ -2588,17 +2608,17 @@ var InvitationAccepted = (props) => {
|
|
|
2588
2608
|
|
|
2589
2609
|
// packages/sdk/shell/src/panels/JoinPanel/steps/InvitationInput.tsx
|
|
2590
2610
|
import React35, { useState as useState7, useEffect as useEffect4, cloneElement as cloneElement4 } from "react";
|
|
2591
|
-
import { log as
|
|
2611
|
+
import { log as log8 } from "@dxos/log";
|
|
2592
2612
|
import { useTranslation as useTranslation21 } from "@dxos/react-ui";
|
|
2593
|
-
var
|
|
2613
|
+
var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/JoinPanel/steps/InvitationInput.tsx";
|
|
2594
2614
|
var invitationCodeFromUrl = (text) => {
|
|
2595
2615
|
try {
|
|
2596
2616
|
const searchParams = new URLSearchParams(text.substring(text.lastIndexOf("?")));
|
|
2597
2617
|
const invitation = searchParams.get("spaceInvitationCode") ?? searchParams.get("deviceInvitationCode");
|
|
2598
2618
|
return invitation ?? text;
|
|
2599
2619
|
} catch (err) {
|
|
2600
|
-
|
|
2601
|
-
F:
|
|
2620
|
+
log8.catch(err, void 0, {
|
|
2621
|
+
F: __dxlog_file8,
|
|
2602
2622
|
L: 25,
|
|
2603
2623
|
S: void 0,
|
|
2604
2624
|
C: (f, a) => f(...a)
|
|
@@ -2782,10 +2802,10 @@ var InvitationAuthenticator = ({ failed, Kind, active, pending, invitationId, on
|
|
|
2782
2802
|
|
|
2783
2803
|
// packages/sdk/shell/src/panels/JoinPanel/steps/ResetIdentity.tsx
|
|
2784
2804
|
import React38, { useState as useState9 } from "react";
|
|
2785
|
-
import { log as
|
|
2805
|
+
import { log as log9 } from "@dxos/log";
|
|
2786
2806
|
import { useClient as useClient5 } from "@dxos/react-client";
|
|
2787
2807
|
import { useTranslation as useTranslation24 } from "@dxos/react-ui";
|
|
2788
|
-
var
|
|
2808
|
+
var __dxlog_file9 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/JoinPanel/steps/ResetIdentity.tsx";
|
|
2789
2809
|
var ResetIdentity = ({ send, active }) => {
|
|
2790
2810
|
const client = useClient5();
|
|
2791
2811
|
const { t } = useTranslation24("os");
|
|
@@ -2796,8 +2816,8 @@ var ResetIdentity = ({ send, active }) => {
|
|
|
2796
2816
|
void client.reset().then(() => send?.({
|
|
2797
2817
|
type: "resetIdentity"
|
|
2798
2818
|
}), (error) => {
|
|
2799
|
-
|
|
2800
|
-
F:
|
|
2819
|
+
log9.catch(error, void 0, {
|
|
2820
|
+
F: __dxlog_file9,
|
|
2801
2821
|
L: 35,
|
|
2802
2822
|
S: void 0,
|
|
2803
2823
|
C: (f, a) => f(...a)
|
|
@@ -2863,7 +2883,7 @@ var resolvedBgColor = (status) => status === Invitation7.State.ERROR ? errorBgCo
|
|
|
2863
2883
|
var resolvedTextColor = (status) => status === Invitation7.State.ERROR ? errorTextColor : status === Invitation7.State.CANCELLED || status === Invitation7.State.TIMEOUT ? cancelledTextColor : successTextColor;
|
|
2864
2884
|
|
|
2865
2885
|
// packages/sdk/shell/src/panels/JoinPanel/JoinPanel.tsx
|
|
2866
|
-
var
|
|
2886
|
+
var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/JoinPanel/JoinPanel.tsx";
|
|
2867
2887
|
var JoinPanelImpl = (props) => {
|
|
2868
2888
|
const { titleId, send, activeView, failed, mode, unredeemedCodes, invitationStates, succeededKeys, failReasons, onExit, onHaloDone, onSpaceDone, exitActionParent, doneActionParent, onHaloInvitationCancel, onSpaceInvitationCancel, onHaloInvitationAuthenticate, onSpaceInvitationAuthenticate, IdentityInput: IdentityInputComponent = IdentityInput, ResetIdentity: ResetIdentityComponent = ResetIdentity } = props;
|
|
2869
2889
|
return /* @__PURE__ */ React39.createElement(DensityProvider3, {
|
|
@@ -3022,8 +3042,8 @@ var JoinPanel = ({ titleId: propsTitleId, mode = "default", initialInvitationCod
|
|
|
3022
3042
|
});
|
|
3023
3043
|
useEffect5(() => {
|
|
3024
3044
|
const subscription = joinService.subscribe((state) => {
|
|
3025
|
-
|
|
3026
|
-
F:
|
|
3045
|
+
log10("[state]", state, {
|
|
3046
|
+
F: __dxlog_file10,
|
|
3027
3047
|
L: 198,
|
|
3028
3048
|
S: void 0,
|
|
3029
3049
|
C: (f, a) => f(...a)
|
|
@@ -3276,15 +3296,15 @@ var JoinPanel = ({ titleId: propsTitleId, mode = "default", initialInvitationCod
|
|
|
3276
3296
|
// packages/sdk/shell/src/panels/SpacePanel/SpacePanel.tsx
|
|
3277
3297
|
import { Planet } from "@phosphor-icons/react";
|
|
3278
3298
|
import React41, { useEffect as useEffect6, useMemo as useMemo5 } from "react";
|
|
3279
|
-
import { log as
|
|
3299
|
+
import { log as log13 } from "@dxos/log";
|
|
3280
3300
|
import { useInvitationStatus as useInvitationStatus3 } from "@dxos/react-client/invitations";
|
|
3281
3301
|
import { DensityProvider as DensityProvider4, useId as useId8, useTranslation as useTranslation26 } from "@dxos/react-ui";
|
|
3282
3302
|
|
|
3283
3303
|
// packages/sdk/shell/src/panels/SpacePanel/spaceMachine.ts
|
|
3284
3304
|
import { useMachine as useMachine3 } from "@xstate/react";
|
|
3285
3305
|
import { assign as assign3, createMachine as createMachine3 } from "xstate";
|
|
3286
|
-
import { log as
|
|
3287
|
-
var
|
|
3306
|
+
import { log as log11 } from "@dxos/log";
|
|
3307
|
+
var __dxlog_file11 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/SpacePanel/spaceMachine.ts";
|
|
3288
3308
|
var spaceMachine = createMachine3({
|
|
3289
3309
|
id: "space",
|
|
3290
3310
|
predictableActionArguments: true,
|
|
@@ -3321,11 +3341,11 @@ var spaceMachine = createMachine3({
|
|
|
3321
3341
|
invitation: () => void 0
|
|
3322
3342
|
}),
|
|
3323
3343
|
log: (context, event) => {
|
|
3324
|
-
|
|
3344
|
+
log11("[transition]", {
|
|
3325
3345
|
event,
|
|
3326
3346
|
context
|
|
3327
3347
|
}, {
|
|
3328
|
-
F:
|
|
3348
|
+
F: __dxlog_file11,
|
|
3329
3349
|
L: 53,
|
|
3330
3350
|
S: void 0,
|
|
3331
3351
|
C: (f, a) => f(...a)
|
|
@@ -3345,11 +3365,13 @@ var useSpaceMachine = (options) => {
|
|
|
3345
3365
|
// packages/sdk/shell/src/panels/SpacePanel/steps/SpaceManager.tsx
|
|
3346
3366
|
import { Placeholder as Placeholder2, UserPlus, UsersThree } from "@phosphor-icons/react";
|
|
3347
3367
|
import React40, { useCallback as useCallback8, useState as useState10 } from "react";
|
|
3368
|
+
import { log as log12 } from "@dxos/log";
|
|
3348
3369
|
import { useConfig } from "@dxos/react-client";
|
|
3349
3370
|
import { useSpaceInvitations as useSpaceInvitations2 } from "@dxos/react-client/echo";
|
|
3350
3371
|
import { Invitation as Invitation8, InvitationEncoder as InvitationEncoder4 } from "@dxos/react-client/invitations";
|
|
3351
3372
|
import { ScrollArea, useTranslation as useTranslation25 } from "@dxos/react-ui";
|
|
3352
3373
|
import { descriptionText as descriptionText10, mx as mx22 } from "@dxos/react-ui-theme";
|
|
3374
|
+
var __dxlog_file12 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/SpacePanel/steps/SpaceManager.tsx";
|
|
3353
3375
|
var activeActionKey = "dxos:react-shell/space-manager/active-action";
|
|
3354
3376
|
var SpaceManager = (props) => {
|
|
3355
3377
|
const { space, target } = props;
|
|
@@ -3359,10 +3381,15 @@ var SpaceManager = (props) => {
|
|
|
3359
3381
|
const onInvitationEvent = useCallback8((invitation) => {
|
|
3360
3382
|
const invitationCode = InvitationEncoder4.encode(invitation);
|
|
3361
3383
|
if (invitation.state === Invitation8.State.CONNECTING) {
|
|
3362
|
-
|
|
3384
|
+
log12.info(JSON.stringify({
|
|
3363
3385
|
invitationCode,
|
|
3364
3386
|
authCode: invitation.authCode
|
|
3365
|
-
})
|
|
3387
|
+
}), void 0, {
|
|
3388
|
+
F: __dxlog_file12,
|
|
3389
|
+
L: 49,
|
|
3390
|
+
S: void 0,
|
|
3391
|
+
C: (f, a) => f(...a)
|
|
3392
|
+
});
|
|
3366
3393
|
}
|
|
3367
3394
|
}, []);
|
|
3368
3395
|
const inviteActions = {
|
|
@@ -3457,7 +3484,7 @@ var SpaceManagerImpl = (props) => {
|
|
|
3457
3484
|
};
|
|
3458
3485
|
|
|
3459
3486
|
// packages/sdk/shell/src/panels/SpacePanel/SpacePanel.tsx
|
|
3460
|
-
var
|
|
3487
|
+
var __dxlog_file13 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/SpacePanel/SpacePanel.tsx";
|
|
3461
3488
|
var SpacePanelHeading = ({ titleId, space, onDone }) => {
|
|
3462
3489
|
const { t } = useTranslation26("os");
|
|
3463
3490
|
const name = space.properties.name;
|
|
@@ -3522,8 +3549,8 @@ var SpacePanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => code,
|
|
|
3522
3549
|
});
|
|
3523
3550
|
useEffect6(() => {
|
|
3524
3551
|
const subscription = spaceService.subscribe((state) => {
|
|
3525
|
-
|
|
3526
|
-
F:
|
|
3552
|
+
log13("[state]", state, {
|
|
3553
|
+
F: __dxlog_file13,
|
|
3527
3554
|
L: 94,
|
|
3528
3555
|
S: void 0,
|
|
3529
3556
|
C: (f, a) => f(...a)
|
|
@@ -3621,7 +3648,7 @@ import { createIFramePort } from "@dxos/rpc-tunnel";
|
|
|
3621
3648
|
|
|
3622
3649
|
// packages/sdk/shell/src/composites/Shell/Shell.tsx
|
|
3623
3650
|
import React45, { useEffect as useEffect7, useState as useState11 } from "react";
|
|
3624
|
-
import { log as
|
|
3651
|
+
import { log as log14 } from "@dxos/log";
|
|
3625
3652
|
import { ShellDisplay, ShellLayout, useClient as useClient7 } from "@dxos/react-client";
|
|
3626
3653
|
import { useSpace as useSpace2 } from "@dxos/react-client/echo";
|
|
3627
3654
|
|
|
@@ -3645,7 +3672,7 @@ var SpaceDialog = (spacePanelProps) => {
|
|
|
3645
3672
|
};
|
|
3646
3673
|
|
|
3647
3674
|
// packages/sdk/shell/src/composites/Shell/Shell.tsx
|
|
3648
|
-
var
|
|
3675
|
+
var __dxlog_file14 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/composites/Shell/Shell.tsx";
|
|
3649
3676
|
var Shell = ({ runtime, origin }) => {
|
|
3650
3677
|
const [{ layout, invitationCode, spaceKey, target }, setLayout] = useState11({
|
|
3651
3678
|
layout: runtime.layout,
|
|
@@ -3662,8 +3689,8 @@ var Shell = ({ runtime, origin }) => {
|
|
|
3662
3689
|
]);
|
|
3663
3690
|
useEffect7(() => {
|
|
3664
3691
|
if (layout === ShellLayout.SPACE && !space) {
|
|
3665
|
-
|
|
3666
|
-
F:
|
|
3692
|
+
log14.warn("No space found for shell space invitations.", void 0, {
|
|
3693
|
+
F: __dxlog_file14,
|
|
3667
3694
|
L: 32,
|
|
3668
3695
|
S: void 0,
|
|
3669
3696
|
C: (f, a) => f(...a)
|