@dxos/react-ui 0.1.36-next.ef27157 → 0.1.37-next.41339e7

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.
@@ -892,7 +892,7 @@ var IdentityPanel = ({ identity, onClickManageProfile }) => {
892
892
 
893
893
  // packages/apps/patterns/react-ui/src/panels/JoinPanel/JoinPanel.tsx
894
894
  import React29, { useEffect as useEffect2 } from "react";
895
- import { log as log2 } from "@dxos/log";
895
+ import { log as log3 } from "@dxos/log";
896
896
  import { useClient as useClient5, useIdentity as useIdentity2 } from "@dxos/react-client";
897
897
  import { DensityProvider as DensityProvider4, useId as useId4, useThemeContext as useThemeContext2 } from "@dxos/react-components";
898
898
 
@@ -1606,6 +1606,7 @@ var IdentityAdded = ({ mode, addedIdentity, onDone, doneActionParent, ...viewSta
1606
1606
  // packages/apps/patterns/react-ui/src/panels/JoinPanel/view-states/IdentityInput.tsx
1607
1607
  import { CaretLeft as CaretLeft2, CaretRight as CaretRight3 } from "@phosphor-icons/react";
1608
1608
  import React24, { useState as useState3 } from "react";
1609
+ import { log as log2 } from "@dxos/log";
1609
1610
  import { useClient as useClient4 } from "@dxos/react-client";
1610
1611
  import { Button as Button7, getSize as getSize10, Input, mx as mx17, useTranslation as useTranslation12 } from "@dxos/react-components";
1611
1612
  function _extends18() {
@@ -1638,7 +1639,13 @@ var IdentityInput = ({ method, ...viewStateProps }) => {
1638
1639
  type: "selectIdentity",
1639
1640
  identity
1640
1641
  });
1641
- }, (_error) => {
1642
+ }, (error) => {
1643
+ log2.catch(error, {}, {
1644
+ file: "IdentityInput.tsx",
1645
+ line: 32,
1646
+ scope: void 0,
1647
+ callSite: (f, a) => f(...a)
1648
+ });
1642
1649
  setValidationMessage(t(isRecover ? "failed to recover identity message" : "failed to create identity message"));
1643
1650
  });
1644
1651
  };
@@ -1713,14 +1720,13 @@ function _extends19() {
1713
1720
  var PureInvitationAcceptedContent = ({ onDone, result, Kind, doneActionParent, active }) => {
1714
1721
  const disabled = !active;
1715
1722
  const { t } = useTranslation13("os");
1716
- const doneButton = /* @__PURE__ */ React25.createElement(Button8, _extends19({}, onDone && {
1717
- onClick: () => onDone(result)
1718
- }, {
1723
+ const doneButton = /* @__PURE__ */ React25.createElement(Button8, {
1724
+ onClick: () => onDone == null ? void 0 : onDone(result),
1719
1725
  disabled,
1720
1726
  className: "flex items-center gap-2 pli-2",
1721
1727
  "data-autofocus": `success${Kind}Invitation finishingJoining${Kind}`,
1722
1728
  "data-testid": `${Kind.toLowerCase()}-invitation-accepted-done`
1723
- }), /* @__PURE__ */ React25.createElement(CaretLeft3, {
1729
+ }, /* @__PURE__ */ React25.createElement(CaretLeft3, {
1724
1730
  weight: "bold",
1725
1731
  className: mx18(getSize11(2), "invisible")
1726
1732
  }), /* @__PURE__ */ React25.createElement("span", {
@@ -2121,7 +2127,7 @@ var JoinPanel = ({ mode = "default", initialInvitationCode, exitActionParent, on
2121
2127
  });
2122
2128
  useEffect2(() => {
2123
2129
  const subscription = joinService.subscribe((state) => {
2124
- log2("[state]", state, {
2130
+ log3("[state]", state, {
2125
2131
  file: "JoinPanel.tsx",
2126
2132
  line: 49,
2127
2133
  scope: void 0,
@@ -2500,7 +2506,7 @@ var JoinDialog = ({ slots, ...joinPanelProps }) => {
2500
2506
 
2501
2507
  // packages/apps/patterns/react-ui/src/composites/Shell/Shell.tsx
2502
2508
  import React35, { useEffect as useEffect3, useState as useState6 } from "react";
2503
- import { log as log3 } from "@dxos/log";
2509
+ import { log as log4 } from "@dxos/log";
2504
2510
  import { ShellDisplay, ShellLayout } from "@dxos/protocols/proto/dxos/iframe";
2505
2511
  import { useClient as useClient6, useSpace as useSpace3, useSpaces } from "@dxos/react-client";
2506
2512
 
@@ -2615,7 +2621,7 @@ var Shell = ({ runtime, origin }) => {
2615
2621
  ]);
2616
2622
  useEffect3(() => {
2617
2623
  if (layout === ShellLayout.SPACE_INVITATIONS && !space) {
2618
- log3.warn("No space found for shell space invitations.", {}, {
2624
+ log4.warn("No space found for shell space invitations.", {}, {
2619
2625
  file: "Shell.tsx",
2620
2626
  line: 33,
2621
2627
  scope: void 0,
@@ -2639,12 +2645,12 @@ var Shell = ({ runtime, origin }) => {
2639
2645
  return /* @__PURE__ */ React35.createElement(JoinDialog, {
2640
2646
  mode: "halo-only",
2641
2647
  initialInvitationCode: invitationCode,
2642
- onDone: async () => {
2643
- spaces.length > 0 || await client.createSpace();
2644
- await runtime.setAppContext({
2648
+ onDone: () => {
2649
+ void runtime.setAppContext({
2645
2650
  display: ShellDisplay.NONE
2646
2651
  });
2647
2652
  runtime.setLayout(ShellLayout.DEFAULT);
2653
+ spaces.length > 0 || client.createSpace();
2648
2654
  }
2649
2655
  });
2650
2656
  case ShellLayout.DEVICE_INVITATIONS:
@@ -2751,7 +2757,7 @@ var ShellProvider = ({ space, haloInvitationCode, spaceInvitationCode, onJoinedS
2751
2757
  });
2752
2758
  }
2753
2759
  return new MemoryShellRuntime({
2754
- layout: ShellLayout2.DEFAULT
2760
+ layout: identity ? ShellLayout2.DEFAULT : ShellLayout2.INITIALIZE_IDENTITY
2755
2761
  });
2756
2762
  }, [
2757
2763
  client,