@dxos/shell 0.6.3-staging.9c1c979 → 0.6.3-staging.f9246a6
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 +87927 -10
- package/dist/bundle/shell.mjs.map +1 -1
- package/dist/bundle/shell.umd.js +101 -133
- package/dist/bundle/shell.umd.js.map +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +8 -11
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/types/src/composites/Shell/Shell.d.ts +1 -1
- package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/Shell.js +28 -28
- package/dist/types/src/composites/Shell/Shell.js.map +1 -1
- package/dist/types/src/composites/Shell/ShellContext.d.ts +1 -2
- package/dist/types/src/composites/Shell/ShellContext.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/ShellContext.js +12 -13
- package/dist/types/src/composites/Shell/ShellContext.js.map +1 -1
- package/dist/types/src/composites/Shell/memory-shell-runtime.d.ts +1 -2
- package/dist/types/src/composites/Shell/memory-shell-runtime.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/memory-shell-runtime.js +2 -2
- package/dist/types/src/composites/Shell/memory-shell-runtime.js.map +1 -1
- package/dist/types/src/composites/Shell/run-shell.d.ts.map +1 -1
- package/dist/types/src/composites/Shell/run-shell.js +3 -4
- package/dist/types/src/composites/Shell/run-shell.js.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js +1 -2
- package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js.map +1 -1
- package/package.json +23 -23
- package/src/composites/Shell/Shell.tsx +4 -4
- package/src/composites/Shell/ShellContext.tsx +1 -2
- package/src/composites/Shell/memory-shell-runtime.ts +2 -2
- package/src/composites/Shell/run-shell.tsx +9 -2
- package/src/panels/IdentityPanel/useAgentHandlers.ts +1 -2
- package/dist/bundle/browser-C2u-GX_T.mjs +0 -7
- package/dist/bundle/browser-C2u-GX_T.mjs.map +0 -1
- package/dist/bundle/index-2qvjtbyT.mjs +0 -112
- package/dist/bundle/index-2qvjtbyT.mjs.map +0 -1
- package/dist/bundle/index-Bxrp8rGc.mjs +0 -4593
- package/dist/bundle/index-Bxrp8rGc.mjs.map +0 -1
- package/dist/bundle/index-CLKnEc1H.mjs +0 -92930
- package/dist/bundle/index-CLKnEc1H.mjs.map +0 -1
- package/dist/bundle/index-ZweceImk.mjs +0 -1322
- package/dist/bundle/index-ZweceImk.mjs.map +0 -1
|
@@ -1413,9 +1413,8 @@ import { hexToEmoji as hexToEmoji2, hexToHue } from "@dxos/util";
|
|
|
1413
1413
|
import { useCallback as useCallback5, useEffect as useEffect2, useState as useState6 } from "react";
|
|
1414
1414
|
import { invariant } from "@dxos/invariant";
|
|
1415
1415
|
import { log as log4 } from "@dxos/log";
|
|
1416
|
-
import { useClient as useClient3 } from "@dxos/react-client";
|
|
1416
|
+
import { useClient as useClient3, useAgentHostingClient } from "@dxos/react-client";
|
|
1417
1417
|
import { Invitation as Invitation3, InvitationEncoder as InvitationEncoder2 } from "@dxos/react-client/invitations";
|
|
1418
|
-
import { useAgentHostingClient } from "@dxos/react-client/services";
|
|
1419
1418
|
var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/IdentityPanel/useAgentHandlers.ts";
|
|
1420
1419
|
var useAgentHandlers = ({ invitations, identity }) => {
|
|
1421
1420
|
const [validationMessage, setValidationMessage] = useState6("");
|
|
@@ -1444,7 +1443,7 @@ var useAgentHandlers = ({ invitations, identity }) => {
|
|
|
1444
1443
|
const createAgent = async (invitationCode) => {
|
|
1445
1444
|
invariant(identity, "Identity not found", {
|
|
1446
1445
|
F: __dxlog_file3,
|
|
1447
|
-
L:
|
|
1446
|
+
L: 50,
|
|
1448
1447
|
S: void 0,
|
|
1449
1448
|
A: [
|
|
1450
1449
|
"identity",
|
|
@@ -1474,7 +1473,7 @@ var useAgentHandlers = ({ invitations, identity }) => {
|
|
|
1474
1473
|
const destroyAgent = async () => {
|
|
1475
1474
|
invariant(identity, "Identity not found", {
|
|
1476
1475
|
F: __dxlog_file3,
|
|
1477
|
-
L:
|
|
1476
|
+
L: 73,
|
|
1478
1477
|
S: void 0,
|
|
1479
1478
|
A: [
|
|
1480
1479
|
"identity",
|
|
@@ -1507,7 +1506,7 @@ var useAgentHandlers = ({ invitations, identity }) => {
|
|
|
1507
1506
|
authCode: invitation.authCode
|
|
1508
1507
|
}), void 0, {
|
|
1509
1508
|
F: __dxlog_file3,
|
|
1510
|
-
L:
|
|
1509
|
+
L: 97,
|
|
1511
1510
|
S: void 0,
|
|
1512
1511
|
C: (f, a) => f(...a)
|
|
1513
1512
|
});
|
|
@@ -3839,8 +3838,7 @@ var JoinDialog = (joinPanelProps) => {
|
|
|
3839
3838
|
import React47, { StrictMode } from "react";
|
|
3840
3839
|
import { createRoot } from "react-dom/client";
|
|
3841
3840
|
import { DEFAULT_CLIENT_CHANNEL, DEFAULT_SHELL_CHANNEL } from "@dxos/client-protocol";
|
|
3842
|
-
import { Client, ClientContext, Config, SystemStatus } from "@dxos/react-client";
|
|
3843
|
-
import { AgentHostingProvider, ClientServicesProxy, ShellDisplay as ShellDisplay2 } from "@dxos/react-client/services";
|
|
3841
|
+
import { AgentHostingProvider, Client, ClientContext, ClientServicesProxy, Config, ShellDisplay as ShellDisplay2, SystemStatus } from "@dxos/react-client";
|
|
3844
3842
|
import { Button as Button11, Dialog as Dialog3, ThemeProvider, Tooltip as Tooltip8, useTranslation as useTranslation26 } from "@dxos/react-ui";
|
|
3845
3843
|
import { defaultTx } from "@dxos/react-ui-theme";
|
|
3846
3844
|
import { createIFramePort } from "@dxos/rpc-tunnel";
|
|
@@ -3849,8 +3847,8 @@ import { createIFramePort } from "@dxos/rpc-tunnel";
|
|
|
3849
3847
|
import React46, { useEffect as useEffect7, useState as useState13 } from "react";
|
|
3850
3848
|
import { log as log14 } from "@dxos/log";
|
|
3851
3849
|
import { useClient as useClient7 } from "@dxos/react-client";
|
|
3850
|
+
import { ShellDisplay, ShellLayout } from "@dxos/react-client";
|
|
3852
3851
|
import { useSpace as useSpace2 } from "@dxos/react-client/echo";
|
|
3853
|
-
import { ShellDisplay, ShellLayout } from "@dxos/react-client/services";
|
|
3854
3852
|
|
|
3855
3853
|
// packages/sdk/shell/src/composites/SpaceDialog/SpaceDialog.tsx
|
|
3856
3854
|
import React44 from "react";
|
|
@@ -4360,14 +4358,13 @@ var Fallback = ({ onClose }) => {
|
|
|
4360
4358
|
|
|
4361
4359
|
// packages/sdk/shell/src/composites/Shell/ShellContext.tsx
|
|
4362
4360
|
import React48, { createContext as createContext2, useCallback as useCallback9, useContext as useContext2, useEffect as useEffect8, useMemo as useMemo6, useState as useState14 } from "react";
|
|
4363
|
-
import { useClient as useClient8 } from "@dxos/react-client";
|
|
4361
|
+
import { useClient as useClient8, ShellDisplay as ShellDisplay3, ShellLayout as ShellLayout4 } from "@dxos/react-client";
|
|
4364
4362
|
import { useIdentity as useIdentity3 } from "@dxos/react-client/halo";
|
|
4365
|
-
import { ShellDisplay as ShellDisplay3, ShellLayout as ShellLayout4 } from "@dxos/react-client/services";
|
|
4366
4363
|
import { mx as mx25 } from "@dxos/react-ui-theme";
|
|
4367
4364
|
|
|
4368
4365
|
// packages/sdk/shell/src/composites/Shell/memory-shell-runtime.ts
|
|
4369
4366
|
import { Event as Event2 } from "@dxos/async";
|
|
4370
|
-
import { ShellLayout as ShellLayout3 } from "@dxos/react-client
|
|
4367
|
+
import { ShellLayout as ShellLayout3 } from "@dxos/react-client";
|
|
4371
4368
|
var MemoryShellRuntime = class {
|
|
4372
4369
|
constructor({ layout, invitationCode, spaceKey, invitationUrl, deviceInvitationParam, spaceInvitationParam } = {}) {
|
|
4373
4370
|
this.layoutUpdate = new Event2();
|