@dxos/shell 0.6.3-next.4424131 → 0.6.3-staging.75e3813

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.
Files changed (42) hide show
  1. package/dist/bundle/browser-C2u-GX_T.mjs +7 -0
  2. package/dist/bundle/browser-C2u-GX_T.mjs.map +1 -0
  3. package/dist/bundle/index-BoJU28fu.mjs +1322 -0
  4. package/dist/bundle/index-BoJU28fu.mjs.map +1 -0
  5. package/dist/bundle/index-Ckc10jMw.mjs +92927 -0
  6. package/dist/bundle/index-Ckc10jMw.mjs.map +1 -0
  7. package/dist/bundle/index-DXRmq0_o.mjs +4593 -0
  8. package/dist/bundle/index-DXRmq0_o.mjs.map +1 -0
  9. package/dist/bundle/index-DvzmUghe.mjs +112 -0
  10. package/dist/bundle/index-DvzmUghe.mjs.map +1 -0
  11. package/dist/bundle/shell.mjs +10 -88396
  12. package/dist/bundle/shell.mjs.map +1 -1
  13. package/dist/bundle/shell.umd.js +133 -101
  14. package/dist/bundle/shell.umd.js.map +1 -1
  15. package/dist/bundle/style.css +1 -1
  16. package/dist/lib/browser/meta.json +1 -1
  17. package/dist/lib/browser/react.mjs +12 -8
  18. package/dist/lib/browser/react.mjs.map +3 -3
  19. package/dist/types/src/composites/Shell/Shell.d.ts +1 -1
  20. package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
  21. package/dist/types/src/composites/Shell/Shell.js +28 -27
  22. package/dist/types/src/composites/Shell/Shell.js.map +1 -1
  23. package/dist/types/src/composites/Shell/ShellContext.d.ts +2 -1
  24. package/dist/types/src/composites/Shell/ShellContext.d.ts.map +1 -1
  25. package/dist/types/src/composites/Shell/ShellContext.js +13 -12
  26. package/dist/types/src/composites/Shell/ShellContext.js.map +1 -1
  27. package/dist/types/src/composites/Shell/memory-shell-runtime.d.ts +2 -1
  28. package/dist/types/src/composites/Shell/memory-shell-runtime.d.ts.map +1 -1
  29. package/dist/types/src/composites/Shell/memory-shell-runtime.js +2 -2
  30. package/dist/types/src/composites/Shell/memory-shell-runtime.js.map +1 -1
  31. package/dist/types/src/composites/Shell/run-shell.d.ts.map +1 -1
  32. package/dist/types/src/composites/Shell/run-shell.js +4 -3
  33. package/dist/types/src/composites/Shell/run-shell.js.map +1 -1
  34. package/dist/types/src/panels/IdentityPanel/useAgentHandlers.d.ts.map +1 -1
  35. package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js +2 -1
  36. package/dist/types/src/panels/IdentityPanel/useAgentHandlers.js.map +1 -1
  37. package/package.json +24 -24
  38. package/src/composites/Shell/Shell.tsx +3 -3
  39. package/src/composites/Shell/ShellContext.tsx +2 -1
  40. package/src/composites/Shell/memory-shell-runtime.ts +2 -2
  41. package/src/composites/Shell/run-shell.tsx +2 -9
  42. package/src/panels/IdentityPanel/useAgentHandlers.ts +2 -1
@@ -1413,8 +1413,9 @@ 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 { useAgentHostingClient, useClient as useClient3 } from "@dxos/react-client";
1416
+ import { useClient as useClient3 } 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";
1418
1419
  var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/sdk/shell/src/panels/IdentityPanel/useAgentHandlers.ts";
1419
1420
  var useAgentHandlers = ({ invitations, identity }) => {
1420
1421
  const [validationMessage, setValidationMessage] = useState6("");
@@ -1443,7 +1444,7 @@ var useAgentHandlers = ({ invitations, identity }) => {
1443
1444
  const createAgent = async (invitationCode) => {
1444
1445
  invariant(identity, "Identity not found", {
1445
1446
  F: __dxlog_file3,
1446
- L: 50,
1447
+ L: 51,
1447
1448
  S: void 0,
1448
1449
  A: [
1449
1450
  "identity",
@@ -1473,7 +1474,7 @@ var useAgentHandlers = ({ invitations, identity }) => {
1473
1474
  const destroyAgent = async () => {
1474
1475
  invariant(identity, "Identity not found", {
1475
1476
  F: __dxlog_file3,
1476
- L: 73,
1477
+ L: 74,
1477
1478
  S: void 0,
1478
1479
  A: [
1479
1480
  "identity",
@@ -1506,7 +1507,7 @@ var useAgentHandlers = ({ invitations, identity }) => {
1506
1507
  authCode: invitation.authCode
1507
1508
  }), void 0, {
1508
1509
  F: __dxlog_file3,
1509
- L: 97,
1510
+ L: 98,
1510
1511
  S: void 0,
1511
1512
  C: (f, a) => f(...a)
1512
1513
  });
@@ -3838,7 +3839,8 @@ var JoinDialog = (joinPanelProps) => {
3838
3839
  import React47, { StrictMode } from "react";
3839
3840
  import { createRoot } from "react-dom/client";
3840
3841
  import { DEFAULT_CLIENT_CHANNEL, DEFAULT_SHELL_CHANNEL } from "@dxos/client-protocol";
3841
- import { AgentHostingProvider, Client, ClientContext, ClientServicesProxy, Config, ShellDisplay as ShellDisplay2, SystemStatus } from "@dxos/react-client";
3842
+ import { Client, ClientContext, Config, SystemStatus } from "@dxos/react-client";
3843
+ import { AgentHostingProvider, ClientServicesProxy, ShellDisplay as ShellDisplay2 } from "@dxos/react-client/services";
3842
3844
  import { Button as Button11, Dialog as Dialog3, ThemeProvider, Tooltip as Tooltip8, useTranslation as useTranslation26 } from "@dxos/react-ui";
3843
3845
  import { defaultTx } from "@dxos/react-ui-theme";
3844
3846
  import { createIFramePort } from "@dxos/rpc-tunnel";
@@ -3846,8 +3848,9 @@ import { createIFramePort } from "@dxos/rpc-tunnel";
3846
3848
  // packages/sdk/shell/src/composites/Shell/Shell.tsx
3847
3849
  import React46, { useEffect as useEffect7, useState as useState13 } from "react";
3848
3850
  import { log as log14 } from "@dxos/log";
3849
- import { ShellDisplay, ShellLayout, useClient as useClient7 } from "@dxos/react-client";
3851
+ import { useClient as useClient7 } from "@dxos/react-client";
3850
3852
  import { useSpace as useSpace2 } from "@dxos/react-client/echo";
3853
+ import { ShellDisplay, ShellLayout } from "@dxos/react-client/services";
3851
3854
 
3852
3855
  // packages/sdk/shell/src/composites/SpaceDialog/SpaceDialog.tsx
3853
3856
  import React44 from "react";
@@ -4357,13 +4360,14 @@ var Fallback = ({ onClose }) => {
4357
4360
 
4358
4361
  // packages/sdk/shell/src/composites/Shell/ShellContext.tsx
4359
4362
  import React48, { createContext as createContext2, useCallback as useCallback9, useContext as useContext2, useEffect as useEffect8, useMemo as useMemo6, useState as useState14 } from "react";
4360
- import { ShellDisplay as ShellDisplay3, ShellLayout as ShellLayout4, useClient as useClient8 } from "@dxos/react-client";
4363
+ import { useClient as useClient8 } from "@dxos/react-client";
4361
4364
  import { useIdentity as useIdentity3 } from "@dxos/react-client/halo";
4365
+ import { ShellDisplay as ShellDisplay3, ShellLayout as ShellLayout4 } from "@dxos/react-client/services";
4362
4366
  import { mx as mx25 } from "@dxos/react-ui-theme";
4363
4367
 
4364
4368
  // packages/sdk/shell/src/composites/Shell/memory-shell-runtime.ts
4365
4369
  import { Event as Event2 } from "@dxos/async";
4366
- import { ShellLayout as ShellLayout3 } from "@dxos/react-client";
4370
+ import { ShellLayout as ShellLayout3 } from "@dxos/react-client/services";
4367
4371
  var MemoryShellRuntime = class {
4368
4372
  constructor({ layout, invitationCode, spaceKey, invitationUrl, deviceInvitationParam, spaceInvitationParam } = {}) {
4369
4373
  this.layoutUpdate = new Event2();