@dxos/shell 0.7.0 → 0.7.1-staging.8709ba7
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 +130 -130
- 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/bundle/style.css +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +48 -39
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/react.cjs +45 -36
- package/dist/lib/node/react.cjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react.mjs +48 -39
- package/dist/lib/node-esm/react.mjs.map +3 -3
- package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.js +3 -1
- package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.js.map +1 -1
- package/package.json +25 -25
- package/src/panels/IdentityPanel/useEdgeAgentsHandlers.ts +3 -1
|
@@ -1238,7 +1238,7 @@ import { FirstAidKit as FirstAidKit2, Key, Plugs, PlugsConnected } from "@phosph
|
|
|
1238
1238
|
import React29, { useEffect as useEffect4, useMemo as useMemo3, useState as useState9 } from "react";
|
|
1239
1239
|
import { generateName as generateName3 } from "@dxos/display-name";
|
|
1240
1240
|
import { invariant as invariant3 } from "@dxos/invariant";
|
|
1241
|
-
import { log as
|
|
1241
|
+
import { log as log7 } from "@dxos/log";
|
|
1242
1242
|
import { useClient as useClient6 } from "@dxos/react-client";
|
|
1243
1243
|
import { useIdentity, useDevices, useHaloInvitations as useHaloInvitations2 } from "@dxos/react-client/halo";
|
|
1244
1244
|
import { useInvitationStatus as useInvitationStatus2 } from "@dxos/react-client/invitations";
|
|
@@ -1438,6 +1438,7 @@ import { useClient as useClient5 } from "@dxos/react-client";
|
|
|
1438
1438
|
// packages/sdk/shell/src/panels/IdentityPanel/useEdgeAgentsHandlers.ts
|
|
1439
1439
|
import { useEffect as useEffect2, useState as useState6 } from "react";
|
|
1440
1440
|
import { invariant } from "@dxos/invariant";
|
|
1441
|
+
import { log as log4 } from "@dxos/log";
|
|
1441
1442
|
import { QueryAgentStatusResponse } from "@dxos/protocols/proto/dxos/client/services";
|
|
1442
1443
|
import { EdgeReplicationSetting } from "@dxos/protocols/proto/dxos/echo/metadata";
|
|
1443
1444
|
import { useClient as useClient3 } from "@dxos/react-client";
|
|
@@ -1476,7 +1477,7 @@ var useEdgeAgentHandlers = ({ identity }) => {
|
|
|
1476
1477
|
const onAgentCreate = async () => {
|
|
1477
1478
|
invariant(identity, "Identity not found", {
|
|
1478
1479
|
F: __dxlog_file3,
|
|
1479
|
-
L:
|
|
1480
|
+
L: 59,
|
|
1480
1481
|
S: void 0,
|
|
1481
1482
|
A: [
|
|
1482
1483
|
"identity",
|
|
@@ -1497,10 +1498,18 @@ var useEdgeAgentHandlers = ({ identity }) => {
|
|
|
1497
1498
|
setAgentStatus("creating");
|
|
1498
1499
|
setValidationMessage("");
|
|
1499
1500
|
try {
|
|
1500
|
-
await service.createAgent(
|
|
1501
|
+
await service.createAgent(null, {
|
|
1502
|
+
timeout: 7500
|
|
1503
|
+
});
|
|
1501
1504
|
await Promise.all(client.spaces.get().map((space) => space?.internal.setEdgeReplicationPreference(EdgeReplicationSetting.ENABLED)));
|
|
1502
1505
|
setAgentStatus("created");
|
|
1503
1506
|
} catch (err) {
|
|
1507
|
+
log4.catch(err, void 0, {
|
|
1508
|
+
F: __dxlog_file3,
|
|
1509
|
+
L: 82,
|
|
1510
|
+
S: void 0,
|
|
1511
|
+
C: (f, a) => f(...a)
|
|
1512
|
+
});
|
|
1504
1513
|
setAgentStatus("error");
|
|
1505
1514
|
setValidationMessage(`Error creating an agent: ${err.message}`);
|
|
1506
1515
|
}
|
|
@@ -1525,7 +1534,7 @@ var useEdgeAgentHandlers = ({ identity }) => {
|
|
|
1525
1534
|
// packages/sdk/shell/src/panels/IdentityPanel/useKubeAgentHandlers.ts
|
|
1526
1535
|
import { useCallback as useCallback4, useEffect as useEffect3, useState as useState7 } from "react";
|
|
1527
1536
|
import { invariant as invariant2 } from "@dxos/invariant";
|
|
1528
|
-
import { log as
|
|
1537
|
+
import { log as log5 } from "@dxos/log";
|
|
1529
1538
|
import { useClient as useClient4, useAgentHostingClient } from "@dxos/react-client";
|
|
1530
1539
|
import { Invitation as Invitation3, InvitationEncoder as InvitationEncoder2 } from "@dxos/react-client/invitations";
|
|
1531
1540
|
var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/IdentityPanel/useKubeAgentHandlers.ts";
|
|
@@ -1614,7 +1623,7 @@ var useKubeAgentHandlers = ({ invitations, identity }) => {
|
|
|
1614
1623
|
const handleAgentCreate = useCallback4(async (invitation) => {
|
|
1615
1624
|
const invitationCode = InvitationEncoder2.encode(invitation);
|
|
1616
1625
|
if (invitation.state === Invitation3.State.CONNECTING) {
|
|
1617
|
-
|
|
1626
|
+
log5.info(JSON.stringify({
|
|
1618
1627
|
invitationCode,
|
|
1619
1628
|
authCode: invitation.authCode
|
|
1620
1629
|
}), void 0, {
|
|
@@ -1791,7 +1800,7 @@ var InvitationManager = ({ invitationUrl, active, send, status, multiUse, authCo
|
|
|
1791
1800
|
// packages/sdk/shell/src/steps/ConfirmReset.tsx
|
|
1792
1801
|
import { Warning } from "@phosphor-icons/react";
|
|
1793
1802
|
import React28, { useState as useState8 } from "react";
|
|
1794
|
-
import { log as
|
|
1803
|
+
import { log as log6 } from "@dxos/log";
|
|
1795
1804
|
import { Message, useTranslation as useTranslation13 } from "@dxos/react-ui";
|
|
1796
1805
|
import { getSize as getSize12, mx as mx21 } from "@dxos/react-ui-theme";
|
|
1797
1806
|
var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/steps/ConfirmReset.tsx";
|
|
@@ -1802,7 +1811,7 @@ var ConfirmReset = ({ active, onCancel, onConfirm, mode }) => {
|
|
|
1802
1811
|
const processReset = async () => {
|
|
1803
1812
|
setPending(true);
|
|
1804
1813
|
return onConfirm?.().then(() => setPending(false), (error) => {
|
|
1805
|
-
|
|
1814
|
+
log6.catch(error, void 0, {
|
|
1806
1815
|
F: __dxlog_file5,
|
|
1807
1816
|
L: 38,
|
|
1808
1817
|
S: void 0,
|
|
@@ -2080,7 +2089,7 @@ var IdentityPanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => co
|
|
|
2080
2089
|
invitations
|
|
2081
2090
|
});
|
|
2082
2091
|
if (!identity) {
|
|
2083
|
-
|
|
2092
|
+
log7.error("IdentityPanel rendered with no active identity.", void 0, {
|
|
2084
2093
|
F: __dxlog_file6,
|
|
2085
2094
|
L: 288,
|
|
2086
2095
|
S: void 0,
|
|
@@ -2097,7 +2106,7 @@ var IdentityPanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => co
|
|
|
2097
2106
|
const handleChangeConnectionState = async (nextState) => client?.mesh.updateConfig(nextState);
|
|
2098
2107
|
useEffect4(() => {
|
|
2099
2108
|
const subscription = identityService.subscribe((state) => {
|
|
2100
|
-
|
|
2109
|
+
log7("[state]", state, {
|
|
2101
2110
|
F: __dxlog_file6,
|
|
2102
2111
|
L: 301,
|
|
2103
2112
|
S: void 0,
|
|
@@ -2153,7 +2162,7 @@ var IdentityPanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => co
|
|
|
2153
2162
|
|
|
2154
2163
|
// packages/sdk/shell/src/panels/JoinPanel/JoinPanel.tsx
|
|
2155
2164
|
import React38, { useCallback as useCallback6, useEffect as useEffect6, useMemo as useMemo4 } from "react";
|
|
2156
|
-
import { log as
|
|
2165
|
+
import { log as log11 } from "@dxos/log";
|
|
2157
2166
|
import { useClient as useClient8, useMulticastObservable } from "@dxos/react-client";
|
|
2158
2167
|
import { useIdentity as useIdentity2 } from "@dxos/react-client/halo";
|
|
2159
2168
|
import { useId as useId8, useThemeContext as useThemeContext5 } from "@dxos/react-ui";
|
|
@@ -2195,12 +2204,12 @@ var JoinHeading = /* @__PURE__ */ forwardRef9(({ mode, titleId, exitActionParent
|
|
|
2195
2204
|
import { useMachine as useMachine2 } from "@xstate/react";
|
|
2196
2205
|
import { useCallback as useCallback5 } from "react";
|
|
2197
2206
|
import { assign as assign2, createMachine as createMachine2 } from "xstate";
|
|
2198
|
-
import { log as
|
|
2207
|
+
import { log as log8 } from "@dxos/log";
|
|
2199
2208
|
import { AlreadyJoinedError } from "@dxos/react-client";
|
|
2200
2209
|
import { Invitation as Invitation5, InvitationEncoder as InvitationEncoder3 } from "@dxos/react-client/invitations";
|
|
2201
2210
|
var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/JoinPanel/joinMachine.ts";
|
|
2202
2211
|
var getInvitationSubscribable = (Kind, invitation) => {
|
|
2203
|
-
|
|
2212
|
+
log8("[subscribing to invitation]", invitation, {
|
|
2204
2213
|
F: __dxlog_file7,
|
|
2205
2214
|
L: 90,
|
|
2206
2215
|
S: void 0,
|
|
@@ -2210,7 +2219,7 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
2210
2219
|
subscribe: (next, onError, complete) => invitation.subscribe((invitation2) => {
|
|
2211
2220
|
switch (invitation2.state) {
|
|
2212
2221
|
case Invitation5.State.CONNECTING: {
|
|
2213
|
-
|
|
2222
|
+
log8("[invitation connecting]", {
|
|
2214
2223
|
Kind,
|
|
2215
2224
|
invitation: invitation2
|
|
2216
2225
|
}, {
|
|
@@ -2225,7 +2234,7 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
2225
2234
|
});
|
|
2226
2235
|
}
|
|
2227
2236
|
case Invitation5.State.CONNECTED: {
|
|
2228
|
-
|
|
2237
|
+
log8("[invitation connected]", {
|
|
2229
2238
|
Kind,
|
|
2230
2239
|
invitation: invitation2
|
|
2231
2240
|
}, {
|
|
@@ -2240,7 +2249,7 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
2240
2249
|
});
|
|
2241
2250
|
}
|
|
2242
2251
|
case Invitation5.State.READY_FOR_AUTHENTICATION: {
|
|
2243
|
-
|
|
2252
|
+
log8("[invitation ready for authentication]", {
|
|
2244
2253
|
Kind,
|
|
2245
2254
|
invitation: invitation2
|
|
2246
2255
|
}, {
|
|
@@ -2255,7 +2264,7 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
2255
2264
|
});
|
|
2256
2265
|
}
|
|
2257
2266
|
case Invitation5.State.AUTHENTICATING: {
|
|
2258
|
-
|
|
2267
|
+
log8("[invitation authenticating]", {
|
|
2259
2268
|
Kind,
|
|
2260
2269
|
invitation: invitation2
|
|
2261
2270
|
}, {
|
|
@@ -2270,7 +2279,7 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
2270
2279
|
});
|
|
2271
2280
|
}
|
|
2272
2281
|
case Invitation5.State.SUCCESS: {
|
|
2273
|
-
|
|
2282
|
+
log8("[invitation success]", {
|
|
2274
2283
|
Kind,
|
|
2275
2284
|
invitation: invitation2
|
|
2276
2285
|
}, {
|
|
@@ -2286,7 +2295,7 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
2286
2295
|
return complete?.();
|
|
2287
2296
|
}
|
|
2288
2297
|
case Invitation5.State.CANCELLED: {
|
|
2289
|
-
|
|
2298
|
+
log8.warn("[invitation cancelled]", {
|
|
2290
2299
|
Kind
|
|
2291
2300
|
}, {
|
|
2292
2301
|
F: __dxlog_file7,
|
|
@@ -2300,7 +2309,7 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
2300
2309
|
});
|
|
2301
2310
|
}
|
|
2302
2311
|
case Invitation5.State.TIMEOUT: {
|
|
2303
|
-
|
|
2312
|
+
log8.error("[invitation timeout]", {
|
|
2304
2313
|
Kind
|
|
2305
2314
|
}, {
|
|
2306
2315
|
F: __dxlog_file7,
|
|
@@ -2316,7 +2325,7 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
2316
2325
|
}
|
|
2317
2326
|
}, (error) => {
|
|
2318
2327
|
if (error instanceof AlreadyJoinedError) {
|
|
2319
|
-
|
|
2328
|
+
log8("[already joined]", {
|
|
2320
2329
|
Kind,
|
|
2321
2330
|
error
|
|
2322
2331
|
}, {
|
|
@@ -2331,7 +2340,7 @@ var getInvitationSubscribable = (Kind, invitation) => {
|
|
|
2331
2340
|
});
|
|
2332
2341
|
return complete?.();
|
|
2333
2342
|
}
|
|
2334
|
-
|
|
2343
|
+
log8.error("[invitation errored]", {
|
|
2335
2344
|
Kind,
|
|
2336
2345
|
error
|
|
2337
2346
|
}, {
|
|
@@ -2670,7 +2679,7 @@ var joinMachine = createMachine2({
|
|
|
2670
2679
|
} : context.space
|
|
2671
2680
|
}),
|
|
2672
2681
|
log: (context, event) => {
|
|
2673
|
-
|
|
2682
|
+
log8("[transition]", {
|
|
2674
2683
|
event,
|
|
2675
2684
|
haloInvitation: context.halo.invitation,
|
|
2676
2685
|
spaceInvitation: context.space.invitation
|
|
@@ -2688,7 +2697,7 @@ var defaultCodeFromUrl = (invitationType, text) => {
|
|
|
2688
2697
|
const searchParams = new URLSearchParams(text.substring(text.lastIndexOf("?")));
|
|
2689
2698
|
return searchParams.get(`${invitationType}InvitationCode`) ?? searchParams.get(`${invitationType}Invitation`) ?? searchParams.get("invitationCode") ?? searchParams.get("invitation") ?? text;
|
|
2690
2699
|
} catch (err) {
|
|
2691
|
-
|
|
2700
|
+
log8.catch(err, void 0, {
|
|
2692
2701
|
F: __dxlog_file7,
|
|
2693
2702
|
L: 452,
|
|
2694
2703
|
S: void 0,
|
|
@@ -2709,7 +2718,7 @@ var useJoinMachine = (client, options) => {
|
|
|
2709
2718
|
invitationSubscribable: getInvitationSubscribable("Halo", invitationObservable)
|
|
2710
2719
|
};
|
|
2711
2720
|
} catch (err) {
|
|
2712
|
-
|
|
2721
|
+
log8.error("Could not redeem device invitation code", err, {
|
|
2713
2722
|
F: __dxlog_file7,
|
|
2714
2723
|
L: 473,
|
|
2715
2724
|
S: void 0,
|
|
@@ -2734,7 +2743,7 @@ var useJoinMachine = (client, options) => {
|
|
|
2734
2743
|
invitationSubscribable: getInvitationSubscribable("Space", invitationObservable)
|
|
2735
2744
|
};
|
|
2736
2745
|
} catch (err) {
|
|
2737
|
-
|
|
2746
|
+
log8.error("Could not redeem space invitation code", err, {
|
|
2738
2747
|
F: __dxlog_file7,
|
|
2739
2748
|
L: 495,
|
|
2740
2749
|
S: void 0,
|
|
@@ -2898,7 +2907,7 @@ var IdentityAdded = (props) => {
|
|
|
2898
2907
|
|
|
2899
2908
|
// packages/sdk/shell/src/panels/JoinPanel/steps/IdentityInput.tsx
|
|
2900
2909
|
import React33, { useState as useState10 } from "react";
|
|
2901
|
-
import { log as
|
|
2910
|
+
import { log as log9 } from "@dxos/log";
|
|
2902
2911
|
import { useClient as useClient7 } from "@dxos/react-client";
|
|
2903
2912
|
import { useTranslation as useTranslation18 } from "@dxos/react-ui";
|
|
2904
2913
|
var __dxlog_file8 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/JoinPanel/steps/IdentityInput.tsx";
|
|
@@ -2918,7 +2927,7 @@ var IdentityInput = (props) => {
|
|
|
2918
2927
|
identity
|
|
2919
2928
|
});
|
|
2920
2929
|
}, (error) => {
|
|
2921
|
-
|
|
2930
|
+
log9.catch(error, void 0, {
|
|
2922
2931
|
F: __dxlog_file8,
|
|
2923
2932
|
L: 38,
|
|
2924
2933
|
S: void 0,
|
|
@@ -2935,7 +2944,7 @@ var IdentityInput = (props) => {
|
|
|
2935
2944
|
identity
|
|
2936
2945
|
});
|
|
2937
2946
|
}, (error) => {
|
|
2938
|
-
|
|
2947
|
+
log9.catch(error, void 0, {
|
|
2939
2948
|
F: __dxlog_file8,
|
|
2940
2949
|
L: 48,
|
|
2941
2950
|
S: void 0,
|
|
@@ -2988,7 +2997,7 @@ import { useTranslation as useTranslation19 } from "@dxos/react-ui";
|
|
|
2988
2997
|
|
|
2989
2998
|
// packages/sdk/shell/src/panels/JoinPanel/steps/InvitationInput.tsx
|
|
2990
2999
|
import React35, { useState as useState11, useEffect as useEffect5, cloneElement as cloneElement4 } from "react";
|
|
2991
|
-
import { log as
|
|
3000
|
+
import { log as log10 } from "@dxos/log";
|
|
2992
3001
|
import { useTranslation as useTranslation20 } from "@dxos/react-ui";
|
|
2993
3002
|
var __dxlog_file9 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/JoinPanel/steps/InvitationInput.tsx";
|
|
2994
3003
|
var invitationCodeFromUrl = (text) => {
|
|
@@ -2997,7 +3006,7 @@ var invitationCodeFromUrl = (text) => {
|
|
|
2997
3006
|
const invitation = searchParams.get("spaceInvitationCode") ?? searchParams.get("deviceInvitationCode");
|
|
2998
3007
|
return invitation ?? text;
|
|
2999
3008
|
} catch (err) {
|
|
3000
|
-
|
|
3009
|
+
log10.catch(err, void 0, {
|
|
3001
3010
|
F: __dxlog_file9,
|
|
3002
3011
|
L: 25,
|
|
3003
3012
|
S: void 0,
|
|
@@ -3377,7 +3386,7 @@ var JoinPanel = ({ titleId: propsTitleId, mode = "default", initialDisposition =
|
|
|
3377
3386
|
});
|
|
3378
3387
|
useEffect6(() => {
|
|
3379
3388
|
const subscription = joinService.subscribe((state) => {
|
|
3380
|
-
|
|
3389
|
+
log11("[state]", state, {
|
|
3381
3390
|
F: __dxlog_file10,
|
|
3382
3391
|
L: 210,
|
|
3383
3392
|
S: void 0,
|
|
@@ -3667,14 +3676,14 @@ var JoinPanel = ({ titleId: propsTitleId, mode = "default", initialDisposition =
|
|
|
3667
3676
|
// packages/sdk/shell/src/panels/SpacePanel/SpacePanel.tsx
|
|
3668
3677
|
import { Planet } from "@phosphor-icons/react";
|
|
3669
3678
|
import React40, { useEffect as useEffect7, useMemo as useMemo5 } from "react";
|
|
3670
|
-
import { log as
|
|
3679
|
+
import { log as log14 } from "@dxos/log";
|
|
3671
3680
|
import { useInvitationStatus as useInvitationStatus3 } from "@dxos/react-client/invitations";
|
|
3672
3681
|
import { useId as useId9, useTranslation as useTranslation24 } from "@dxos/react-ui";
|
|
3673
3682
|
|
|
3674
3683
|
// packages/sdk/shell/src/panels/SpacePanel/spaceMachine.ts
|
|
3675
3684
|
import { useMachine as useMachine3 } from "@xstate/react";
|
|
3676
3685
|
import { assign as assign3, createMachine as createMachine3 } from "xstate";
|
|
3677
|
-
import { log as
|
|
3686
|
+
import { log as log12 } from "@dxos/log";
|
|
3678
3687
|
var __dxlog_file11 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/SpacePanel/spaceMachine.ts";
|
|
3679
3688
|
var spaceMachine = createMachine3({
|
|
3680
3689
|
id: "space",
|
|
@@ -3712,7 +3721,7 @@ var spaceMachine = createMachine3({
|
|
|
3712
3721
|
invitation: () => void 0
|
|
3713
3722
|
}),
|
|
3714
3723
|
log: (context, event) => {
|
|
3715
|
-
|
|
3724
|
+
log12("[transition]", {
|
|
3716
3725
|
event,
|
|
3717
3726
|
context
|
|
3718
3727
|
}, {
|
|
@@ -3736,7 +3745,7 @@ var useSpaceMachine = (options) => {
|
|
|
3736
3745
|
// packages/sdk/shell/src/panels/SpacePanel/steps/SpaceManager.tsx
|
|
3737
3746
|
import { Placeholder as Placeholder2, UserPlus, UsersThree } from "@phosphor-icons/react";
|
|
3738
3747
|
import React39, { useCallback as useCallback7, useState as useState13 } from "react";
|
|
3739
|
-
import { log as
|
|
3748
|
+
import { log as log13 } from "@dxos/log";
|
|
3740
3749
|
import { useConfig } from "@dxos/react-client";
|
|
3741
3750
|
import { useSpaceInvitations as useSpaceInvitations2 } from "@dxos/react-client/echo";
|
|
3742
3751
|
import { Invitation as Invitation8, InvitationEncoder as InvitationEncoder4 } from "@dxos/react-client/invitations";
|
|
@@ -3747,7 +3756,7 @@ var activeActionKey = "dxos:react-shell/space-manager/active-action";
|
|
|
3747
3756
|
var handleInvitationEvent = (invitation, subscription) => {
|
|
3748
3757
|
const invitationCode = InvitationEncoder4.encode(invitation);
|
|
3749
3758
|
if (invitation.state === Invitation8.State.CONNECTING) {
|
|
3750
|
-
|
|
3759
|
+
log13.info(JSON.stringify({
|
|
3751
3760
|
invitationCode,
|
|
3752
3761
|
authCode: invitation.authCode
|
|
3753
3762
|
}), void 0, {
|
|
@@ -3925,7 +3934,7 @@ var SpacePanel = ({ titleId: propsTitleId, createInvitationUrl = (code) => code,
|
|
|
3925
3934
|
});
|
|
3926
3935
|
useEffect7(() => {
|
|
3927
3936
|
const subscription = spaceService.subscribe((state) => {
|
|
3928
|
-
|
|
3937
|
+
log14("[state]", state, {
|
|
3929
3938
|
F: __dxlog_file13,
|
|
3930
3939
|
L: 95,
|
|
3931
3940
|
S: void 0,
|
|
@@ -4038,7 +4047,7 @@ import { createIFramePort } from "@dxos/rpc-tunnel";
|
|
|
4038
4047
|
|
|
4039
4048
|
// packages/sdk/shell/src/composites/Shell/Shell.tsx
|
|
4040
4049
|
import React46, { useEffect as useEffect8, useState as useState14 } from "react";
|
|
4041
|
-
import { log as
|
|
4050
|
+
import { log as log15 } from "@dxos/log";
|
|
4042
4051
|
import { useClient as useClient9 } from "@dxos/react-client";
|
|
4043
4052
|
import { ShellDisplay, ShellLayout } from "@dxos/react-client";
|
|
4044
4053
|
import { useSpace as useSpace2 } from "@dxos/react-client/echo";
|
|
@@ -4116,7 +4125,7 @@ var Shell = ({ runtime }) => {
|
|
|
4116
4125
|
]);
|
|
4117
4126
|
useEffect8(() => {
|
|
4118
4127
|
if (layout === ShellLayout.SPACE && !space) {
|
|
4119
|
-
|
|
4128
|
+
log15.warn("No space found for shell space invitations.", void 0, {
|
|
4120
4129
|
F: __dxlog_file14,
|
|
4121
4130
|
L: 67,
|
|
4122
4131
|
S: void 0,
|