@dxos/react-ui 0.1.30-next.7c60cd3 → 0.1.30

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 (34) hide show
  1. package/dist/lib/browser/index.mjs +30 -27
  2. package/dist/lib/browser/index.mjs.map +3 -3
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/types/src/composites/Shell/Shell.d.ts +1 -1
  5. package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
  6. package/dist/types/src/composites/Shell/Shell.stories.d.ts.map +1 -1
  7. package/dist/types/src/composites/Shell/ShellContext.d.ts +2 -1
  8. package/dist/types/src/composites/Shell/ShellContext.d.ts.map +1 -1
  9. package/dist/types/src/panels/DevicesPanel/DevicesPanel.d.ts.map +1 -1
  10. package/dist/types/src/panels/IdentityPanel/IdentityPanel.d.ts.map +1 -1
  11. package/dist/types/src/playwright/invitations-manager.d.ts +1 -1
  12. package/dist/types/src/playwright/invitations-manager.d.ts.map +1 -1
  13. package/package.json +19 -19
  14. package/src/components/InvitationList/InvitationList.stories.tsx +1 -1
  15. package/src/components/InvitationList/InvitationListItem.tsx +1 -1
  16. package/src/composites/JoinDialog/JoinDialog.stories.tsx +1 -1
  17. package/src/composites/Shell/Shell.stories.tsx +34 -17
  18. package/src/composites/Shell/Shell.tsx +1 -1
  19. package/src/composites/Shell/ShellContext.tsx +1 -1
  20. package/src/panels/DevicesPanel/DevicesPanel.tsx +17 -5
  21. package/src/panels/IdentityPanel/IdentityPanel.tsx +15 -13
  22. package/src/panels/JoinPanel/JoinHeading.tsx +1 -1
  23. package/src/panels/JoinPanel/view-states/AdditionMethodSelector.tsx +1 -1
  24. package/src/panels/JoinPanel/view-states/IdentityAdded.tsx +1 -1
  25. package/src/panels/JoinPanel/view-states/IdentityInput.tsx +1 -1
  26. package/src/panels/JoinPanel/view-states/IdentitySelector.tsx +1 -1
  27. package/src/panels/JoinPanel/view-states/InvitationAccepted.tsx +1 -1
  28. package/src/panels/JoinPanel/view-states/InvitationAuthenticator.tsx +1 -1
  29. package/src/panels/JoinPanel/view-states/InvitationInput.tsx +1 -1
  30. package/src/panels/JoinPanel/view-states/InvitationRescuer.tsx +1 -1
  31. package/src/panels/JoinPanel/view-states/ViewState.tsx +1 -1
  32. package/src/panels/SpacePanel/SpacePanel.tsx +1 -1
  33. package/src/playwright/invitations-manager.ts +1 -1
  34. package/src/stories/Invitations.stories.tsx +1 -1
@@ -232,8 +232,8 @@ var InvitationStatusAvatar = ({ size = 10, status, haltedAt, slots = {} }) => {
232
232
  };
233
233
 
234
234
  // packages/apps/patterns/react-ui/src/components/InvitationList/InvitationListItem.tsx
235
+ import { Copy, ProhibitInset, QrCode, X } from "@phosphor-icons/react";
235
236
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
236
- import { Copy, ProhibitInset, QrCode, X } from "phosphor-react";
237
237
  import { QRCodeSVG } from "qrcode.react";
238
238
  import React6, { useCallback } from "react";
239
239
  import { useInvitationStatus } from "@dxos/react-client";
@@ -670,10 +670,10 @@ var PanelDialog = ({ titleId, slots = {}, children }) => {
670
670
  };
671
671
 
672
672
  // packages/apps/patterns/react-ui/src/panels/DevicesPanel/DevicesPanel.tsx
673
- import { UserPlus, X as X2 } from "phosphor-react";
673
+ import { UserPlus, X as X2 } from "@phosphor-icons/react";
674
674
  import React15, { cloneElement, useReducer } from "react";
675
675
  import { useClient as useClient2, useDevices, useHaloInvitations, useIdentity } from "@dxos/react-client";
676
- import { Button as Button2, DensityProvider as DensityProvider2, getSize as getSize3, mx as mx11, Tooltip, useTranslation as useTranslation5 } from "@dxos/react-components";
676
+ import { Button as Button2, DensityProvider as DensityProvider2, getSize as getSize3, mx as mx11, TooltipContent, TooltipRoot, TooltipTrigger, useTranslation as useTranslation5 } from "@dxos/react-components";
677
677
  function _extends12() {
678
678
  _extends12 = Object.assign || function(target) {
679
679
  for (var i = 1; i < arguments.length; i++) {
@@ -716,10 +716,11 @@ var DeviceListView = ({ createInvitationUrl, titleId, onDone, doneActionParent }
716
716
  }, /* @__PURE__ */ React15.createElement("h2", {
717
717
  id: titleId,
718
718
  className: mx11("grow font-system-medium", !displayName && "font-mono")
719
- }, displayName != null ? displayName : identity.identityKey.truncate()), /* @__PURE__ */ React15.createElement(Tooltip, {
720
- content: t("close label"),
721
- zIndex: "z-50"
722
- }, doneActionParent ? /* @__PURE__ */ cloneElement(doneActionParent, {}, doneButton) : doneButton)), /* @__PURE__ */ React15.createElement("div", {
719
+ }, displayName != null ? displayName : identity.identityKey.truncate()), /* @__PURE__ */ React15.createElement(TooltipRoot, null, /* @__PURE__ */ React15.createElement(TooltipContent, {
720
+ className: "z-50"
721
+ }, t("close label")), /* @__PURE__ */ React15.createElement(TooltipTrigger, {
722
+ asChild: true
723
+ }, doneActionParent ? /* @__PURE__ */ cloneElement(doneActionParent, {}, doneButton) : doneButton))), /* @__PURE__ */ React15.createElement("div", {
723
724
  role: "region",
724
725
  className: mx11(defaultSurface, "rounded-be-md p-2")
725
726
  }, /* @__PURE__ */ React15.createElement(InvitationList, {
@@ -758,7 +759,7 @@ var DevicesPanel = (props) => {
758
759
  // packages/apps/patterns/react-ui/src/panels/IdentityPanel/IdentityPanel.tsx
759
760
  import React16 from "react";
760
761
  import { useClient as useClient3 } from "@dxos/react-client";
761
- import { Avatar as Avatar3, Button as Button3, ThemeContext, useTranslation as useTranslation6 } from "@dxos/react-components";
762
+ import { Avatar as Avatar3, Button as Button3, DensityProvider as DensityProvider3, ThemeContext, useTranslation as useTranslation6 } from "@dxos/react-components";
762
763
  var IdentityPanel = ({ identity, onClickManageProfile }) => {
763
764
  var _a, _b;
764
765
  const { t } = useTranslation6("os");
@@ -770,9 +771,10 @@ var IdentityPanel = ({ identity, onClickManageProfile }) => {
770
771
  };
771
772
  return /* @__PURE__ */ React16.createElement(ThemeContext.Provider, {
772
773
  value: {
773
- themeVariant: "os",
774
- rootDensity: "fine"
774
+ themeVariant: "os"
775
775
  }
776
+ }, /* @__PURE__ */ React16.createElement(DensityProvider3, {
777
+ density: "fine"
776
778
  }, /* @__PURE__ */ React16.createElement("div", {
777
779
  className: "flex flex-col gap-2 justify-center items-center"
778
780
  }, /* @__PURE__ */ React16.createElement(Avatar3, {
@@ -783,7 +785,7 @@ var IdentityPanel = ({ identity, onClickManageProfile }) => {
783
785
  }), /* @__PURE__ */ React16.createElement(Button3, {
784
786
  onClick: onClickManageProfile != null ? onClickManageProfile : defaultManageProfile,
785
787
  className: "is-full"
786
- }, t("manage profile label"))));
788
+ }, t("manage profile label")))));
787
789
  };
788
790
 
789
791
  // packages/apps/patterns/react-ui/src/panels/JoinPanel/JoinPanel.tsx
@@ -791,10 +793,10 @@ import React27, { useEffect, useReducer as useReducer2, useState as useState6 }
791
793
  import { InvitationEncoder as InvitationEncoder2 } from "@dxos/client";
792
794
  import { log } from "@dxos/log";
793
795
  import { useClient as useClient6, useIdentity as useIdentity2 } from "@dxos/react-client";
794
- import { DensityProvider as DensityProvider3, useId as useId4 } from "@dxos/react-components";
796
+ import { DensityProvider as DensityProvider4, useId as useId4 } from "@dxos/react-components";
795
797
 
796
798
  // packages/apps/patterns/react-ui/src/panels/JoinPanel/JoinHeading.tsx
797
- import { ProhibitInset as ProhibitInset2 } from "phosphor-react";
799
+ import { ProhibitInset as ProhibitInset2 } from "@phosphor-icons/react";
798
800
  import React17, { cloneElement as cloneElement2, forwardRef as forwardRef2 } from "react";
799
801
  import { useSpace as useSpace2 } from "@dxos/react-client";
800
802
  import { Avatar as Avatar4, Button as Button4, getSize as getSize4, Heading, mx as mx12, Trans, useId as useId2, useTranslation as useTranslation7 } from "@dxos/react-components";
@@ -868,12 +870,12 @@ var JoinHeading = /* @__PURE__ */ forwardRef2(({ mode, titleId, invitation, onEx
868
870
  });
869
871
 
870
872
  // packages/apps/patterns/react-ui/src/panels/JoinPanel/view-states/AdditionMethodSelector.tsx
871
- import { CaretLeft, CaretRight, Plus, QrCode as QrCode2, Textbox } from "phosphor-react";
873
+ import { CaretLeft, CaretRight, Plus, QrCode as QrCode2, Textbox } from "@phosphor-icons/react";
872
874
  import React19 from "react";
873
875
  import { Button as Button5, CompoundButton, getSize as getSize6, mx as mx14, useTranslation as useTranslation9 } from "@dxos/react-components";
874
876
 
875
877
  // packages/apps/patterns/react-ui/src/panels/JoinPanel/view-states/ViewState.tsx
876
- import { CheckCircle, HourglassSimple, X as X3 } from "phosphor-react";
878
+ import { CheckCircle, HourglassSimple, X as X3 } from "@phosphor-icons/react";
877
879
  import React18, { useMemo as useMemo2 } from "react";
878
880
  import { Invitation as Invitation4 } from "@dxos/client";
879
881
  import { useInvitationStatus as useInvitationStatus2 } from "@dxos/react-client";
@@ -1113,7 +1115,7 @@ var AdditionMethodSelector = ({ availableIdentities, ...viewStateProps }) => {
1113
1115
  };
1114
1116
 
1115
1117
  // packages/apps/patterns/react-ui/src/panels/JoinPanel/view-states/IdentityAdded.tsx
1116
- import { CaretLeft as CaretLeft2, CaretRight as CaretRight2, Check } from "phosphor-react";
1118
+ import { CaretLeft as CaretLeft2, CaretRight as CaretRight2, Check } from "@phosphor-icons/react";
1117
1119
  import React20, { cloneElement as cloneElement3 } from "react";
1118
1120
  import { Avatar as Avatar6, Button as Button6, getSize as getSize7, mx as mx15, useTranslation as useTranslation10 } from "@dxos/react-components";
1119
1121
  function _extends16() {
@@ -1201,8 +1203,8 @@ var IdentityAdded = ({ mode, addedIdentity, onDone, doneActionParent, ...viewSta
1201
1203
  };
1202
1204
 
1203
1205
  // packages/apps/patterns/react-ui/src/panels/JoinPanel/view-states/IdentitySelector.tsx
1206
+ import { CaretLeft as CaretLeft3, CaretRight as CaretRight3, UserPlus as UserPlus2 } from "@phosphor-icons/react";
1204
1207
  import * as RadioGroup from "@radix-ui/react-radio-group";
1205
- import { CaretLeft as CaretLeft3, CaretRight as CaretRight3, UserPlus as UserPlus2 } from "phosphor-react";
1206
1208
  import React21, { useCallback as useCallback4, useState as useState2 } from "react";
1207
1209
  import { Avatar as Avatar7, Button as Button7, themeVariantFocus, getSize as getSize8, mx as mx16, useTranslation as useTranslation11 } from "@dxos/react-components";
1208
1210
  function _extends17() {
@@ -1291,7 +1293,7 @@ var IdentitySelector = ({ availableIdentities, ...viewStateProps }) => {
1291
1293
  };
1292
1294
 
1293
1295
  // packages/apps/patterns/react-ui/src/panels/JoinPanel/view-states/IdentityInput.tsx
1294
- import { CaretLeft as CaretLeft4, CaretRight as CaretRight4 } from "phosphor-react";
1296
+ import { CaretLeft as CaretLeft4, CaretRight as CaretRight4 } from "@phosphor-icons/react";
1295
1297
  import React22, { useState as useState3 } from "react";
1296
1298
  import { useClient as useClient4 } from "@dxos/react-client";
1297
1299
  import { Button as Button8, getSize as getSize9, Input, mx as mx17, useTranslation as useTranslation12 } from "@dxos/react-components";
@@ -1379,7 +1381,7 @@ var IdentityInput = ({ method, ...viewStateProps }) => {
1379
1381
  };
1380
1382
 
1381
1383
  // packages/apps/patterns/react-ui/src/panels/JoinPanel/view-states/InvitationAccepted.tsx
1382
- import { CaretLeft as CaretLeft5, Check as Check2 } from "phosphor-react";
1384
+ import { CaretLeft as CaretLeft5, Check as Check2 } from "@phosphor-icons/react";
1383
1385
  import React23, { cloneElement as cloneElement4 } from "react";
1384
1386
  import { useInvitationStatus as useInvitationStatus3 } from "@dxos/react-client";
1385
1387
  import { Button as Button9, getSize as getSize10, mx as mx18, useTranslation as useTranslation13 } from "@dxos/react-components";
@@ -1433,7 +1435,7 @@ var InvitationAccepted = (props) => {
1433
1435
  };
1434
1436
 
1435
1437
  // packages/apps/patterns/react-ui/src/panels/JoinPanel/view-states/InvitationInput.tsx
1436
- import { CaretLeft as CaretLeft6, CaretRight as CaretRight5 } from "phosphor-react";
1438
+ import { CaretLeft as CaretLeft6, CaretRight as CaretRight5 } from "@phosphor-icons/react";
1437
1439
  import React24, { useState as useState4 } from "react";
1438
1440
  import { InvitationEncoder } from "@dxos/client";
1439
1441
  import { useClient as useClient5 } from "@dxos/react-client";
@@ -1512,7 +1514,7 @@ var InvitationInput = ({ invitationType, ...viewStateProps }) => {
1512
1514
  };
1513
1515
 
1514
1516
  // packages/apps/patterns/react-ui/src/panels/JoinPanel/view-states/InvitationRescuer.tsx
1515
- import { ArrowsClockwise, CaretLeft as CaretLeft7, CaretRight as CaretRight6 } from "phosphor-react";
1517
+ import { ArrowsClockwise, CaretLeft as CaretLeft7, CaretRight as CaretRight6 } from "@phosphor-icons/react";
1516
1518
  import React25 from "react";
1517
1519
  import { Invitation as Invitation5 } from "@dxos/client";
1518
1520
  import { useInvitationStatus as useInvitationStatus4 } from "@dxos/react-client";
@@ -1613,7 +1615,7 @@ var InvitationRescuer = ({ invitationType, ...viewStateProps }) => {
1613
1615
  };
1614
1616
 
1615
1617
  // packages/apps/patterns/react-ui/src/panels/JoinPanel/view-states/InvitationAuthenticator.tsx
1616
- import { CaretLeft as CaretLeft8, CaretRight as CaretRight7 } from "phosphor-react";
1618
+ import { CaretLeft as CaretLeft8, CaretRight as CaretRight7 } from "@phosphor-icons/react";
1617
1619
  import React26, { useCallback as useCallback5, useState as useState5 } from "react";
1618
1620
  import { useInvitationStatus as useInvitationStatus5 } from "@dxos/react-client";
1619
1621
  import { Button as Button12, getSize as getSize13, Input as Input3, mx as mx21, useTranslation as useTranslation16 } from "@dxos/react-components";
@@ -1974,7 +1976,7 @@ var JoinPanel = ({ mode, initialInvitationCode, titleId: propsTitleId, exitActio
1974
1976
  }, [
1975
1977
  joinState.haloInvitation
1976
1978
  ]);
1977
- return /* @__PURE__ */ React27.createElement(DensityProvider3, {
1979
+ return /* @__PURE__ */ React27.createElement(DensityProvider4, {
1978
1980
  density: "fine"
1979
1981
  }, /* @__PURE__ */ React27.createElement(JoinHeading, _extends23({}, {
1980
1982
  mode,
@@ -2071,10 +2073,10 @@ var JoinPanel = ({ mode, initialInvitationCode, titleId: propsTitleId, exitActio
2071
2073
  };
2072
2074
 
2073
2075
  // packages/apps/patterns/react-ui/src/panels/SpacePanel/SpacePanel.tsx
2074
- import { UserPlus as UserPlus3 } from "phosphor-react";
2076
+ import { UserPlus as UserPlus3 } from "@phosphor-icons/react";
2075
2077
  import React28, { useReducer as useReducer3 } from "react";
2076
2078
  import { useSpaceInvitations as useSpaceInvitations2, observer } from "@dxos/react-client";
2077
- import { Button as Button13, DensityProvider as DensityProvider4, getSize as getSize14, mx as mx22, useTranslation as useTranslation17 } from "@dxos/react-components";
2079
+ import { Button as Button13, DensityProvider as DensityProvider5, getSize as getSize14, mx as mx22, useTranslation as useTranslation17 } from "@dxos/react-components";
2078
2080
  function _extends24() {
2079
2081
  _extends24 = Object.assign || function(target) {
2080
2082
  for (var i = 1; i < arguments.length; i++) {
@@ -2137,7 +2139,7 @@ var SpacePanel = (props) => {
2137
2139
  const [panelState] = useReducer3(reducer, {
2138
2140
  activeView: "current space"
2139
2141
  });
2140
- return /* @__PURE__ */ React28.createElement(DensityProvider4, {
2142
+ return /* @__PURE__ */ React28.createElement(DensityProvider5, {
2141
2143
  density: "fine"
2142
2144
  }, panelState.activeView === "current space" ? /* @__PURE__ */ React28.createElement(CurrentSpaceView, _extends24({}, props)) : null);
2143
2145
  };
@@ -2410,7 +2412,8 @@ var Shell = ({ runtime, origin }) => {
2410
2412
 
2411
2413
  // packages/apps/patterns/react-ui/src/composites/Shell/ShellContext.tsx
2412
2414
  import React34, { createContext as createContext2, useCallback as useCallback6, useContext as useContext2, useEffect as useEffect3, useMemo as useMemo3, useState as useState8 } from "react";
2413
- import { IFrameClientServicesProxy, MemoryShellRuntime, ShellDisplay as ShellDisplay2, ShellLayout as ShellLayout2 } from "@dxos/client";
2415
+ import { IFrameClientServicesProxy, ShellDisplay as ShellDisplay2, ShellLayout as ShellLayout2 } from "@dxos/client";
2416
+ import { MemoryShellRuntime } from "@dxos/client-services";
2414
2417
  import { useClient as useClient8, useIdentity as useIdentity3 } from "@dxos/react-client";
2415
2418
  import { mx as mx24 } from "@dxos/react-components";
2416
2419
  var ShellContext = /* @__PURE__ */ createContext2({});