@dxos/plugin-space 0.8.2-main.f081794 → 0.8.2-main.f11618f

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 (131) hide show
  1. package/dist/lib/browser/{app-graph-builder-J4PN5HOM.mjs → app-graph-builder-ZWNOWRAX.mjs} +6 -6
  2. package/dist/lib/browser/{app-graph-builder-J4PN5HOM.mjs.map → app-graph-builder-ZWNOWRAX.mjs.map} +3 -3
  3. package/dist/lib/browser/{app-graph-serializer-6WIAFHYK.mjs → app-graph-serializer-UUJH7JRN.mjs} +4 -4
  4. package/dist/lib/browser/{chunk-MHTZAZT2.mjs → chunk-4226DMDP.mjs} +128 -130
  5. package/dist/lib/browser/chunk-4226DMDP.mjs.map +7 -0
  6. package/dist/lib/browser/{chunk-MIJHUABE.mjs → chunk-DIJ7LMCS.mjs} +2 -2
  7. package/dist/lib/browser/{chunk-FSHDAPFY.mjs → chunk-JS6ZV4GV.mjs} +2 -2
  8. package/dist/lib/browser/{chunk-KDNV4YRD.mjs → chunk-O7WGQVLQ.mjs} +25 -2
  9. package/dist/lib/browser/chunk-O7WGQVLQ.mjs.map +7 -0
  10. package/dist/lib/browser/{identity-created-DVHNLGYU.mjs → identity-created-NRVE4XLL.mjs} +2 -2
  11. package/dist/lib/browser/index.mjs +5 -8
  12. package/dist/lib/browser/index.mjs.map +2 -2
  13. package/dist/lib/browser/{intent-resolver-72IWBVYE.mjs → intent-resolver-NP55M7C7.mjs} +83 -69
  14. package/dist/lib/browser/intent-resolver-NP55M7C7.mjs.map +7 -0
  15. package/dist/lib/browser/meta.json +1 -1
  16. package/dist/lib/browser/{react-root-DRVM5ACV.mjs → react-root-XKAUZ3X2.mjs} +4 -4
  17. package/dist/lib/browser/{react-surface-KODNQYDN.mjs → react-surface-2DW2UDRX.mjs} +5 -22
  18. package/dist/lib/browser/react-surface-2DW2UDRX.mjs.map +7 -0
  19. package/dist/lib/browser/{settings-2UIV5WX5.mjs → settings-MVT32NP6.mjs} +2 -2
  20. package/dist/lib/browser/{spaces-ready-3URIMLCR.mjs → spaces-ready-ERNSICUW.mjs} +3 -3
  21. package/dist/lib/browser/types/index.mjs +1 -1
  22. package/dist/lib/node/{app-graph-builder-3BNPC5GB.cjs → app-graph-builder-LLIV422L.cjs} +34 -34
  23. package/dist/lib/node/{app-graph-builder-3BNPC5GB.cjs.map → app-graph-builder-LLIV422L.cjs.map} +3 -3
  24. package/dist/lib/node/{app-graph-serializer-GOLCQHFQ.cjs → app-graph-serializer-M6Z2OPA4.cjs} +20 -20
  25. package/dist/lib/node/{chunk-3UKLWXNJ.cjs → chunk-EQ5BPSQ7.cjs} +28 -5
  26. package/dist/lib/node/chunk-EQ5BPSQ7.cjs.map +7 -0
  27. package/dist/lib/node/{chunk-EI3ZPOLJ.cjs → chunk-UOCR4G2D.cjs} +6 -6
  28. package/dist/lib/node/{chunk-U63V2254.cjs → chunk-XADZLQAJ.cjs} +27 -27
  29. package/dist/lib/node/{chunk-GPZPEQXP.cjs → chunk-ZMQO74LX.cjs} +176 -178
  30. package/dist/lib/node/chunk-ZMQO74LX.cjs.map +7 -0
  31. package/dist/lib/node/{identity-created-YYTW4K3Z.cjs → identity-created-YDTRMOMX.cjs} +6 -6
  32. package/dist/lib/node/index.cjs +63 -66
  33. package/dist/lib/node/index.cjs.map +2 -2
  34. package/dist/lib/node/{intent-resolver-KA56XGUX.cjs → intent-resolver-3J52ARFL.cjs} +129 -115
  35. package/dist/lib/node/intent-resolver-3J52ARFL.cjs.map +7 -0
  36. package/dist/lib/node/meta.json +1 -1
  37. package/dist/lib/node/{react-root-6WGN5WRQ.cjs → react-root-XUE2J7HT.cjs} +8 -8
  38. package/dist/lib/node/{react-surface-37AVZFPL.cjs → react-surface-IWSTOZ2E.cjs} +44 -61
  39. package/dist/lib/node/react-surface-IWSTOZ2E.cjs.map +7 -0
  40. package/dist/lib/node/{settings-HJROTHC4.cjs → settings-JLV7YT6Q.cjs} +6 -6
  41. package/dist/lib/node/{spaces-ready-IWDDIAAD.cjs → spaces-ready-6EBR4SM4.cjs} +11 -11
  42. package/dist/lib/node/types/index.cjs +15 -15
  43. package/dist/lib/node/types/index.cjs.map +1 -1
  44. package/dist/lib/node-esm/{app-graph-builder-OVMSUAX3.mjs → app-graph-builder-HSGLCS76.mjs} +6 -6
  45. package/dist/lib/node-esm/{app-graph-builder-OVMSUAX3.mjs.map → app-graph-builder-HSGLCS76.mjs.map} +3 -3
  46. package/dist/lib/node-esm/{app-graph-serializer-AZXSO7HK.mjs → app-graph-serializer-J3B4WSXU.mjs} +4 -4
  47. package/dist/lib/node-esm/{chunk-TVN6VHTT.mjs → chunk-ABTVMAG5.mjs} +2 -2
  48. package/dist/lib/node-esm/{chunk-35OHQARN.mjs → chunk-FJPCLEKN.mjs} +25 -2
  49. package/dist/lib/node-esm/chunk-FJPCLEKN.mjs.map +7 -0
  50. package/dist/lib/node-esm/{chunk-DUA32XUX.mjs → chunk-OLISVDCF.mjs} +2 -2
  51. package/dist/lib/node-esm/{chunk-ABKX22IP.mjs → chunk-PQI4D4SH.mjs} +128 -130
  52. package/dist/lib/node-esm/chunk-PQI4D4SH.mjs.map +7 -0
  53. package/dist/lib/node-esm/{identity-created-MP4GLXHO.mjs → identity-created-EC6SVYB5.mjs} +2 -2
  54. package/dist/lib/node-esm/index.mjs +5 -8
  55. package/dist/lib/node-esm/index.mjs.map +2 -2
  56. package/dist/lib/node-esm/{intent-resolver-SG2ECM5R.mjs → intent-resolver-MXQIFIRC.mjs} +83 -69
  57. package/dist/lib/node-esm/intent-resolver-MXQIFIRC.mjs.map +7 -0
  58. package/dist/lib/node-esm/meta.json +1 -1
  59. package/dist/lib/node-esm/{react-root-MSUT6S2S.mjs → react-root-ZBCJCEFS.mjs} +4 -4
  60. package/dist/lib/node-esm/{react-surface-G73SO23W.mjs → react-surface-JCHDAPGM.mjs} +5 -22
  61. package/dist/lib/node-esm/react-surface-JCHDAPGM.mjs.map +7 -0
  62. package/dist/lib/node-esm/{settings-KCLKPJVY.mjs → settings-AILIMHTE.mjs} +2 -2
  63. package/dist/lib/node-esm/{spaces-ready-Z3SXKWX2.mjs → spaces-ready-5PXESKHX.mjs} +3 -3
  64. package/dist/lib/node-esm/types/index.mjs +1 -1
  65. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  66. package/dist/types/src/capabilities/index.d.ts +1 -0
  67. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  68. package/dist/types/src/capabilities/intent-resolver.d.ts +2 -1
  69. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  70. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  71. package/dist/types/src/components/CollectionMain.d.ts.map +1 -1
  72. package/dist/types/src/components/MembersContainer.d.ts.map +1 -1
  73. package/dist/types/src/components/PopoverRenameObject.d.ts.map +1 -1
  74. package/dist/types/src/components/PopoverRenameSpace.d.ts.map +1 -1
  75. package/dist/types/src/components/index.d.ts +0 -1
  76. package/dist/types/src/components/index.d.ts.map +1 -1
  77. package/dist/types/src/types/thread.d.ts +241 -17
  78. package/dist/types/src/types/thread.d.ts.map +1 -1
  79. package/dist/types/src/types/types.d.ts +28 -1
  80. package/dist/types/src/types/types.d.ts.map +1 -1
  81. package/package.json +44 -44
  82. package/src/SpacePlugin.tsx +1 -1
  83. package/src/capabilities/app-graph-builder.ts +3 -3
  84. package/src/capabilities/intent-resolver.ts +77 -68
  85. package/src/capabilities/react-surface.tsx +2 -15
  86. package/src/components/CollectionMain.tsx +2 -5
  87. package/src/components/MembersContainer.tsx +23 -15
  88. package/src/components/PopoverAddSpace.tsx +1 -1
  89. package/src/components/PopoverRenameObject.tsx +12 -6
  90. package/src/components/PopoverRenameSpace.tsx +8 -0
  91. package/src/components/index.ts +0 -1
  92. package/src/types/types.ts +22 -1
  93. package/dist/lib/browser/chunk-KDNV4YRD.mjs.map +0 -7
  94. package/dist/lib/browser/chunk-MHTZAZT2.mjs.map +0 -7
  95. package/dist/lib/browser/intent-resolver-72IWBVYE.mjs.map +0 -7
  96. package/dist/lib/browser/react-surface-KODNQYDN.mjs.map +0 -7
  97. package/dist/lib/node/chunk-3UKLWXNJ.cjs.map +0 -7
  98. package/dist/lib/node/chunk-GPZPEQXP.cjs.map +0 -7
  99. package/dist/lib/node/intent-resolver-KA56XGUX.cjs.map +0 -7
  100. package/dist/lib/node/react-surface-37AVZFPL.cjs.map +0 -7
  101. package/dist/lib/node-esm/chunk-35OHQARN.mjs.map +0 -7
  102. package/dist/lib/node-esm/chunk-ABKX22IP.mjs.map +0 -7
  103. package/dist/lib/node-esm/intent-resolver-SG2ECM5R.mjs.map +0 -7
  104. package/dist/lib/node-esm/react-surface-G73SO23W.mjs.map +0 -7
  105. package/dist/types/src/components/ShareSpaceButton.d.ts +0 -9
  106. package/dist/types/src/components/ShareSpaceButton.d.ts.map +0 -1
  107. package/dist/types/src/components/ShareSpaceButton.stories.d.ts +0 -10
  108. package/dist/types/src/components/ShareSpaceButton.stories.d.ts.map +0 -1
  109. package/src/components/ShareSpaceButton.stories.tsx +0 -27
  110. package/src/components/ShareSpaceButton.tsx +0 -32
  111. /package/dist/lib/browser/{app-graph-serializer-6WIAFHYK.mjs.map → app-graph-serializer-UUJH7JRN.mjs.map} +0 -0
  112. /package/dist/lib/browser/{chunk-MIJHUABE.mjs.map → chunk-DIJ7LMCS.mjs.map} +0 -0
  113. /package/dist/lib/browser/{chunk-FSHDAPFY.mjs.map → chunk-JS6ZV4GV.mjs.map} +0 -0
  114. /package/dist/lib/browser/{identity-created-DVHNLGYU.mjs.map → identity-created-NRVE4XLL.mjs.map} +0 -0
  115. /package/dist/lib/browser/{react-root-DRVM5ACV.mjs.map → react-root-XKAUZ3X2.mjs.map} +0 -0
  116. /package/dist/lib/browser/{settings-2UIV5WX5.mjs.map → settings-MVT32NP6.mjs.map} +0 -0
  117. /package/dist/lib/browser/{spaces-ready-3URIMLCR.mjs.map → spaces-ready-ERNSICUW.mjs.map} +0 -0
  118. /package/dist/lib/node/{app-graph-serializer-GOLCQHFQ.cjs.map → app-graph-serializer-M6Z2OPA4.cjs.map} +0 -0
  119. /package/dist/lib/node/{chunk-EI3ZPOLJ.cjs.map → chunk-UOCR4G2D.cjs.map} +0 -0
  120. /package/dist/lib/node/{chunk-U63V2254.cjs.map → chunk-XADZLQAJ.cjs.map} +0 -0
  121. /package/dist/lib/node/{identity-created-YYTW4K3Z.cjs.map → identity-created-YDTRMOMX.cjs.map} +0 -0
  122. /package/dist/lib/node/{react-root-6WGN5WRQ.cjs.map → react-root-XUE2J7HT.cjs.map} +0 -0
  123. /package/dist/lib/node/{settings-HJROTHC4.cjs.map → settings-JLV7YT6Q.cjs.map} +0 -0
  124. /package/dist/lib/node/{spaces-ready-IWDDIAAD.cjs.map → spaces-ready-6EBR4SM4.cjs.map} +0 -0
  125. /package/dist/lib/node-esm/{app-graph-serializer-AZXSO7HK.mjs.map → app-graph-serializer-J3B4WSXU.mjs.map} +0 -0
  126. /package/dist/lib/node-esm/{chunk-TVN6VHTT.mjs.map → chunk-ABTVMAG5.mjs.map} +0 -0
  127. /package/dist/lib/node-esm/{chunk-DUA32XUX.mjs.map → chunk-OLISVDCF.mjs.map} +0 -0
  128. /package/dist/lib/node-esm/{identity-created-MP4GLXHO.mjs.map → identity-created-EC6SVYB5.mjs.map} +0 -0
  129. /package/dist/lib/node-esm/{react-root-MSUT6S2S.mjs.map → react-root-ZBCJCEFS.mjs.map} +0 -0
  130. /package/dist/lib/node-esm/{settings-KCLKPJVY.mjs.map → settings-AILIMHTE.mjs.map} +0 -0
  131. /package/dist/lib/node-esm/{spaces-ready-Z3SXKWX2.mjs.map → spaces-ready-5PXESKHX.mjs.map} +0 -0
@@ -5,12 +5,12 @@ import {
5
5
  import {
6
6
  COMPOSER_SPACE_LOCK,
7
7
  getSpaceDisplayName
8
- } from "./chunk-TVN6VHTT.mjs";
8
+ } from "./chunk-ABTVMAG5.mjs";
9
9
  import {
10
10
  CollectionType,
11
11
  SpaceAction,
12
12
  SpaceForm
13
- } from "./chunk-35OHQARN.mjs";
13
+ } from "./chunk-FJPCLEKN.mjs";
14
14
  import {
15
15
  SPACE_PLUGIN,
16
16
  meta
@@ -340,17 +340,17 @@ var SelectSchema = ({ options, resolve, onChange }) => {
340
340
 
341
341
  // packages/plugins/plugin-space/src/capabilities/index.ts
342
342
  import { lazy } from "@dxos/app-framework";
343
- var AppGraphBuilder = lazy(() => import("./app-graph-builder-OVMSUAX3.mjs"));
344
- var AppGraphSerializer = lazy(() => import("./app-graph-serializer-AZXSO7HK.mjs"));
345
- var IdentityCreated = lazy(() => import("./identity-created-MP4GLXHO.mjs"));
346
- var IntentResolver = lazy(() => import("./intent-resolver-SG2ECM5R.mjs"));
347
- var ReactRoot = lazy(() => import("./react-root-MSUT6S2S.mjs"));
348
- var ReactSurface = lazy(() => import("./react-surface-G73SO23W.mjs"));
343
+ var AppGraphBuilder = lazy(() => import("./app-graph-builder-HSGLCS76.mjs"));
344
+ var AppGraphSerializer = lazy(() => import("./app-graph-serializer-J3B4WSXU.mjs"));
345
+ var IdentityCreated = lazy(() => import("./identity-created-EC6SVYB5.mjs"));
346
+ var IntentResolver = lazy(() => import("./intent-resolver-MXQIFIRC.mjs"));
347
+ var ReactRoot = lazy(() => import("./react-root-ZBCJCEFS.mjs"));
348
+ var ReactSurface = lazy(() => import("./react-surface-JCHDAPGM.mjs"));
349
349
  var Schema = lazy(() => import("./schema-OUZKVYM5.mjs"));
350
350
  var Tools = lazy(() => import("./schema-tools-IU7EX5A5.mjs"));
351
- var SpaceSettings = lazy(() => import("./settings-KCLKPJVY.mjs"));
351
+ var SpaceSettings = lazy(() => import("./settings-AILIMHTE.mjs"));
352
352
  var SpaceState = lazy(() => import("./state-YZPY5T5A.mjs"));
353
- var SpacesReady = lazy(() => import("./spaces-ready-Z3SXKWX2.mjs"));
353
+ var SpacesReady = lazy(() => import("./spaces-ready-5PXESKHX.mjs"));
354
354
 
355
355
  // packages/plugins/plugin-space/src/components/CreateDialog/CreateObjectDialog.tsx
356
356
  var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/CreateDialog/CreateObjectDialog.tsx";
@@ -501,7 +501,7 @@ var CreateSpaceDialog = () => {
501
501
  // packages/plugins/plugin-space/src/components/CollectionMain.tsx
502
502
  import React6 from "react";
503
503
  import { useTranslation as useTranslation5 } from "@dxos/react-ui";
504
- import { baseSurface, descriptionText, mx as mx3 } from "@dxos/react-ui-theme";
504
+ import { baseSurface, descriptionMessage, mx as mx3 } from "@dxos/react-ui-theme";
505
505
  var CollectionMain = ({ collection }) => {
506
506
  const { t } = useTranslation5(SPACE_PLUGIN);
507
507
  return /* @__PURE__ */ React6.createElement("div", {
@@ -510,7 +510,7 @@ var CollectionMain = ({ collection }) => {
510
510
  "data-testid": "composer.firstRunMessage"
511
511
  }, /* @__PURE__ */ React6.createElement("p", {
512
512
  role: "alert",
513
- className: mx3(descriptionText, "border border-dashed border-neutral-400/50 rounded-lg p-8 font-normal text-lg max-is-[24rem] break-words")
513
+ className: mx3(descriptionMessage, "rounded-lg p-8 font-normal text-lg max-is-[24rem] break-words")
514
514
  }, collection.name ?? t("unnamed collection label")));
515
515
  };
516
516
 
@@ -640,6 +640,7 @@ var JoinDialog = ({ navigableCollections, onDone, ...props }) => {
640
640
  import { Check, X } from "@phosphor-icons/react";
641
641
  import React9, { useCallback as useCallback7, useMemo, useState as useState4 } from "react";
642
642
  import { QR } from "react-qr-rounded";
643
+ import { createIntent as createIntent5, useIntentDispatcher as useIntentDispatcher5 } from "@dxos/app-framework";
643
644
  import { log } from "@dxos/log";
644
645
  import { useConfig } from "@dxos/react-client";
645
646
  import { fullyQualifiedId as fullyQualifiedId2, useSpaceInvitations } from "@dxos/react-client/echo";
@@ -660,7 +661,7 @@ var handleInvitationEvent = (invitation, subscription) => {
660
661
  authCode: invitation.authCode
661
662
  }), void 0, {
662
663
  F: __dxlog_file3,
663
- L: 39,
664
+ L: 40,
664
665
  S: void 0,
665
666
  C: (f, a) => f(...a)
666
667
  });
@@ -670,6 +671,7 @@ var handleInvitationEvent = (invitation, subscription) => {
670
671
  var MembersContainer = ({ space, createInvitationUrl }) => {
671
672
  const { t } = useTranslation8(SPACE_PLUGIN);
672
673
  const config = useConfig();
674
+ const { dispatchPromise: dispatch } = useIntentDispatcher5();
673
675
  const invitations = useSpaceInvitations(space.key);
674
676
  const visibleInvitations = invitations?.filter((invitation) => ![
675
677
  Invitation.State.CANCELLED
@@ -700,13 +702,14 @@ var MembersContainer = ({ space, createInvitationUrl }) => {
700
702
  size: 5
701
703
  }),
702
704
  testId: "membersContainer.inviteOne",
703
- onClick: () => {
704
- const invitation = space.share?.({
705
+ onClick: async () => {
706
+ const { data: invitation } = await dispatch(createIntent5(SpaceAction.Share, {
707
+ space,
705
708
  type: Invitation.Type.INTERACTIVE,
706
709
  authMethod: Invitation.AuthMethod.SHARED_SECRET,
707
710
  multiUse: false,
708
711
  target: target && fullyQualifiedId2(target)
709
- });
712
+ }));
710
713
  if (invitation && config.values.runtime?.app?.env?.DX_ENVIRONMENT !== "production") {
711
714
  const subscription = invitation.subscribe((invitation2) => handleInvitationEvent(invitation2, subscription));
712
715
  }
@@ -724,13 +727,14 @@ var MembersContainer = ({ space, createInvitationUrl }) => {
724
727
  size: 5
725
728
  }),
726
729
  testId: "membersContainer.inviteMany",
727
- onClick: () => {
728
- const invitation = space.share?.({
730
+ onClick: async () => {
731
+ const { data: invitation } = await dispatch(createIntent5(SpaceAction.Share, {
732
+ space,
729
733
  type: Invitation.Type.DELEGATED,
730
734
  authMethod: Invitation.AuthMethod.KNOWN_PUBLIC_KEY,
731
735
  multiUse: true,
732
736
  target: target && fullyQualifiedId2(target)
733
- });
737
+ }));
734
738
  if (invitation && config.values.runtime?.app?.env?.DX_ENVIRONMENT !== "production") {
735
739
  const subscription = invitation.subscribe((invitation2) => handleInvitationEvent(invitation2, subscription));
736
740
  }
@@ -1110,22 +1114,22 @@ var PersistenceStatus = ({ db }) => {
1110
1114
 
1111
1115
  // packages/plugins/plugin-space/src/components/PopoverAddSpace.tsx
1112
1116
  import React16 from "react";
1113
- import { createIntent as createIntent5, LayoutAction as LayoutAction5, useIntentDispatcher as useIntentDispatcher5 } from "@dxos/app-framework";
1117
+ import { createIntent as createIntent6, LayoutAction as LayoutAction5, useIntentDispatcher as useIntentDispatcher6 } from "@dxos/app-framework";
1114
1118
  import { IconButton as IconButton3, useTranslation as useTranslation14 } from "@dxos/react-ui";
1115
1119
  var POPOVER_ADD_SPACE = `${SPACE_PLUGIN}/PopoverRenameSpace`;
1116
1120
  var PopoverAddSpace = () => {
1117
1121
  const { t } = useTranslation14(SPACE_PLUGIN);
1118
- const { dispatchPromise: dispatch } = useIntentDispatcher5();
1122
+ const { dispatchPromise: dispatch } = useIntentDispatcher6();
1119
1123
  return /* @__PURE__ */ React16.createElement("div", {
1120
1124
  role: "none",
1121
- className: "grid grid-cols-1 gap-1 [&>button]:justify-start"
1125
+ className: "p-1 grid grid-cols-1 gap-1 [&>button]:justify-start"
1122
1126
  }, /* @__PURE__ */ React16.createElement(IconButton3, {
1123
1127
  variant: "ghost",
1124
1128
  label: t("create space label"),
1125
1129
  icon: "ph--plus--regular",
1126
1130
  onClick: () => {
1127
- void dispatch(createIntent5(SpaceAction.OpenCreateSpace));
1128
- void dispatch(createIntent5(LayoutAction5.UpdatePopover, {
1131
+ void dispatch(createIntent6(SpaceAction.OpenCreateSpace));
1132
+ void dispatch(createIntent6(LayoutAction5.UpdatePopover, {
1129
1133
  part: "popover",
1130
1134
  options: {
1131
1135
  variant: "react",
@@ -1140,8 +1144,8 @@ var PopoverAddSpace = () => {
1140
1144
  label: t("join space label"),
1141
1145
  icon: "ph--sign-in--regular",
1142
1146
  onClick: () => {
1143
- void dispatch(createIntent5(SpaceAction.Join));
1144
- void dispatch(createIntent5(LayoutAction5.UpdatePopover, {
1147
+ void dispatch(createIntent6(SpaceAction.Join));
1148
+ void dispatch(createIntent6(LayoutAction5.UpdatePopover, {
1145
1149
  part: "popover",
1146
1150
  options: {
1147
1151
  variant: "react",
@@ -1156,8 +1160,9 @@ var PopoverAddSpace = () => {
1156
1160
 
1157
1161
  // packages/plugins/plugin-space/src/components/PopoverRenameObject.tsx
1158
1162
  import React17, { useCallback as useCallback10, useRef as useRef4, useState as useState7 } from "react";
1163
+ import { createIntent as createIntent7, LayoutAction as LayoutAction6, useIntentDispatcher as useIntentDispatcher7 } from "@dxos/app-framework";
1159
1164
  import { log as log2 } from "@dxos/log";
1160
- import { Button as Button5, Input as Input3, Popover, useTranslation as useTranslation15 } from "@dxos/react-ui";
1165
+ import { Button as Button5, Input as Input3, useTranslation as useTranslation15 } from "@dxos/react-ui";
1161
1166
  var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/PopoverRenameObject.tsx";
1162
1167
  var POPOVER_RENAME_OBJECT = `${SPACE_PLUGIN}/PopoverRenameObject`;
1163
1168
  var PopoverRenameObject = ({ object: obj }) => {
@@ -1165,6 +1170,7 @@ var PopoverRenameObject = ({ object: obj }) => {
1165
1170
  const doneButton = useRef4(null);
1166
1171
  const object = obj;
1167
1172
  const [name, setName] = useState7(object.name || object.title || "");
1173
+ const { dispatchPromise: dispatch } = useIntentDispatcher7();
1168
1174
  const handleDone = useCallback10(() => {
1169
1175
  try {
1170
1176
  object.name = name;
@@ -1176,12 +1182,20 @@ var PopoverRenameObject = ({ object: obj }) => {
1176
1182
  err
1177
1183
  }, {
1178
1184
  F: __dxlog_file4,
1179
- L: 30,
1185
+ L: 32,
1180
1186
  S: void 0,
1181
1187
  C: (f, a) => f(...a)
1182
1188
  });
1183
1189
  }
1184
1190
  }
1191
+ void dispatch(createIntent7(LayoutAction6.UpdatePopover, {
1192
+ part: "popover",
1193
+ options: {
1194
+ variant: "react",
1195
+ anchorId: "",
1196
+ state: false
1197
+ }
1198
+ }));
1185
1199
  }, [
1186
1200
  object,
1187
1201
  name
@@ -1200,27 +1214,35 @@ var PopoverRenameObject = ({ object: obj }) => {
1200
1214
  "data-testid": "spacePlugin.renameObject.input",
1201
1215
  onChange: ({ target: { value } }) => setName(value),
1202
1216
  onKeyDown: ({ key }) => key === "Enter" && doneButton.current?.click()
1203
- }))), /* @__PURE__ */ React17.createElement(Popover.Close, {
1204
- asChild: true
1205
- }, /* @__PURE__ */ React17.createElement(Button5, {
1217
+ }))), /* @__PURE__ */ React17.createElement(Button5, {
1206
1218
  ref: doneButton,
1207
1219
  classNames: "self-stretch",
1208
1220
  onClick: handleDone
1209
1221
  }, t("done label", {
1210
1222
  ns: "os"
1211
- }))));
1223
+ })));
1212
1224
  };
1213
1225
 
1214
1226
  // packages/plugins/plugin-space/src/components/PopoverRenameSpace.tsx
1215
1227
  import React18, { useCallback as useCallback11, useRef as useRef5, useState as useState8 } from "react";
1216
- import { Button as Button6, Input as Input4, Popover as Popover2, useTranslation as useTranslation16 } from "@dxos/react-ui";
1228
+ import { createIntent as createIntent8, LayoutAction as LayoutAction7, useIntentDispatcher as useIntentDispatcher8 } from "@dxos/app-framework";
1229
+ import { Button as Button6, Input as Input4, Popover, useTranslation as useTranslation16 } from "@dxos/react-ui";
1217
1230
  var POPOVER_RENAME_SPACE = `${SPACE_PLUGIN}/PopoverRenameSpace`;
1218
1231
  var PopoverRenameSpace = ({ space }) => {
1219
1232
  const { t } = useTranslation16(SPACE_PLUGIN);
1220
1233
  const doneButton = useRef5(null);
1221
1234
  const [name, setName] = useState8(space.properties.name ?? "");
1235
+ const { dispatchPromise: dispatch } = useIntentDispatcher8();
1222
1236
  const handleDone = useCallback11(() => {
1223
1237
  space.properties.name = name;
1238
+ void dispatch(createIntent8(LayoutAction7.UpdatePopover, {
1239
+ part: "popover",
1240
+ options: {
1241
+ variant: "react",
1242
+ anchorId: "",
1243
+ state: false
1244
+ }
1245
+ }));
1224
1246
  }, [
1225
1247
  space,
1226
1248
  name
@@ -1240,7 +1262,7 @@ var PopoverRenameSpace = ({ space }) => {
1240
1262
  // TODO(wittjosiah): Ideally this should access the popover context to close the popover.
1241
1263
  // Currently this is not possible because Radix does not expose the popover context.
1242
1264
  onKeyDown: ({ key }) => key === "Enter" && doneButton.current?.click()
1243
- }))), /* @__PURE__ */ React18.createElement(Popover2.Close, {
1265
+ }))), /* @__PURE__ */ React18.createElement(Popover.Close, {
1244
1266
  asChild: true
1245
1267
  }, /* @__PURE__ */ React18.createElement(Button6, {
1246
1268
  ref: doneButton,
@@ -1287,36 +1309,14 @@ var SchemaContainer = ({ space }) => {
1287
1309
  }, /* @__PURE__ */ React19.createElement("div", null, schema.typename)))))));
1288
1310
  };
1289
1311
 
1290
- // packages/plugins/plugin-space/src/components/ShareSpaceButton.tsx
1291
- import React20 from "react";
1292
- import { createIntent as createIntent6, useIntentDispatcher as useIntentDispatcher6 } from "@dxos/app-framework";
1293
- import { IconButton as IconButton4, useTranslation as useTranslation18 } from "@dxos/react-ui";
1294
- var ShareSpaceButton = ({ space }) => {
1295
- const { dispatchPromise: dispatch } = useIntentDispatcher6();
1296
- return /* @__PURE__ */ React20.createElement(ShareSpaceButtonImpl, {
1297
- onClick: () => dispatch(createIntent6(SpaceAction.Share, {
1298
- space
1299
- }))
1300
- });
1301
- };
1302
- var ShareSpaceButtonImpl = ({ onClick }) => {
1303
- const { t } = useTranslation18(SPACE_PLUGIN);
1304
- return /* @__PURE__ */ React20.createElement(IconButton4, {
1305
- "data-testid": "spacePlugin.shareSpaceButton",
1306
- icon: "ph--users--regular",
1307
- label: t("share space label"),
1308
- onClick
1309
- });
1310
- };
1311
-
1312
1312
  // packages/plugins/plugin-space/src/components/SpacePresence.tsx
1313
- import React21, { forwardRef, useCallback as useCallback12, useEffect as useEffect5, useState as useState10 } from "react";
1313
+ import React20, { forwardRef, useCallback as useCallback12, useEffect as useEffect5, useState as useState10 } from "react";
1314
1314
  import { useAppGraph as useAppGraph2, useCapability } from "@dxos/app-framework";
1315
1315
  import { generateName } from "@dxos/display-name";
1316
1316
  import { PublicKey, useClient as useClient5 } from "@dxos/react-client";
1317
1317
  import { getSpace as getSpace3, useMembers, fullyQualifiedId as fullyQualifiedId3 } from "@dxos/react-client/echo";
1318
1318
  import { useIdentity } from "@dxos/react-client/halo";
1319
- import { Avatar, Tooltip as Tooltip2, useTranslation as useTranslation19, List as List2, ListItem as ListItem2, useDefaultValue } from "@dxos/react-ui";
1319
+ import { Avatar, Tooltip as Tooltip2, useTranslation as useTranslation18, List as List2, ListItem as ListItem2, useDefaultValue } from "@dxos/react-ui";
1320
1320
  import { AttentionGlyph, useAttended, useAttention } from "@dxos/react-ui-attention";
1321
1321
  import { ComplexMap, keyToFallback } from "@dxos/util";
1322
1322
  var REFRESH_INTERVAL = 5e3;
@@ -1352,7 +1352,7 @@ var SpacePresence = ({ object, spaceKey }) => {
1352
1352
  lastSeen
1353
1353
  };
1354
1354
  }).toSorted((a, b) => a.lastSeen - b.lastSeen);
1355
- return /* @__PURE__ */ React21.createElement(FullPresence, {
1355
+ return /* @__PURE__ */ React20.createElement(FullPresence, {
1356
1356
  members: membersForObject
1357
1357
  });
1358
1358
  };
@@ -1362,40 +1362,40 @@ var FullPresence = (props) => {
1362
1362
  if (members.length === 0) {
1363
1363
  return null;
1364
1364
  }
1365
- return /* @__PURE__ */ React21.createElement("div", {
1365
+ return /* @__PURE__ */ React20.createElement("div", {
1366
1366
  className: "dx-avatar-group",
1367
1367
  "data-testid": "spacePlugin.presence"
1368
- }, members.slice(0, 3).map((member, i) => /* @__PURE__ */ React21.createElement(Tooltip2.Root, {
1368
+ }, members.slice(0, 3).map((member, i) => /* @__PURE__ */ React20.createElement(Tooltip2.Root, {
1369
1369
  key: member.identity.identityKey.toHex()
1370
- }, /* @__PURE__ */ React21.createElement(Tooltip2.Trigger, {
1370
+ }, /* @__PURE__ */ React20.createElement(Tooltip2.Trigger, {
1371
1371
  className: "grid focus:outline-none"
1372
- }, /* @__PURE__ */ React21.createElement(PresenceAvatar, {
1372
+ }, /* @__PURE__ */ React20.createElement(PresenceAvatar, {
1373
1373
  identity: member.identity,
1374
1374
  match: member.currentlyAttended,
1375
1375
  index: members.length - i,
1376
1376
  onClick: () => onMemberClick?.(member),
1377
1377
  size
1378
- })), /* @__PURE__ */ React21.createElement(Tooltip2.Portal, null, /* @__PURE__ */ React21.createElement(Tooltip2.Content, {
1378
+ })), /* @__PURE__ */ React20.createElement(Tooltip2.Portal, null, /* @__PURE__ */ React20.createElement(Tooltip2.Content, {
1379
1379
  side: "bottom"
1380
- }, /* @__PURE__ */ React21.createElement("span", null, getName(member.identity)), /* @__PURE__ */ React21.createElement(Tooltip2.Arrow, null))))), members.length > 3 && /* @__PURE__ */ React21.createElement(Tooltip2.Root, null, /* @__PURE__ */ React21.createElement(Tooltip2.Trigger, {
1380
+ }, /* @__PURE__ */ React20.createElement("span", null, getName(member.identity)), /* @__PURE__ */ React20.createElement(Tooltip2.Arrow, null))))), members.length > 3 && /* @__PURE__ */ React20.createElement(Tooltip2.Root, null, /* @__PURE__ */ React20.createElement(Tooltip2.Trigger, {
1381
1381
  className: "grid focus:outline-none"
1382
- }, /* @__PURE__ */ React21.createElement(Avatar.Root, null, /* @__PURE__ */ React21.createElement(Avatar.Content, {
1382
+ }, /* @__PURE__ */ React20.createElement(Avatar.Root, null, /* @__PURE__ */ React20.createElement(Avatar.Content, {
1383
1383
  status: "inactive",
1384
1384
  style: {
1385
1385
  zIndex: members.length - 4
1386
1386
  },
1387
1387
  fallback: `+${members.length - 3}`,
1388
1388
  size
1389
- }))), /* @__PURE__ */ React21.createElement(Tooltip2.Portal, null, /* @__PURE__ */ React21.createElement(Tooltip2.Content, {
1389
+ }))), /* @__PURE__ */ React20.createElement(Tooltip2.Portal, null, /* @__PURE__ */ React20.createElement(Tooltip2.Content, {
1390
1390
  side: "bottom"
1391
- }, /* @__PURE__ */ React21.createElement(Tooltip2.Arrow, null), /* @__PURE__ */ React21.createElement(List2, {
1391
+ }, /* @__PURE__ */ React20.createElement(Tooltip2.Arrow, null), /* @__PURE__ */ React20.createElement(List2, {
1392
1392
  classNames: "max-h-56 overflow-y-auto"
1393
- }, members.map((member) => /* @__PURE__ */ React21.createElement(ListItem2.Root, {
1393
+ }, members.map((member) => /* @__PURE__ */ React20.createElement(ListItem2.Root, {
1394
1394
  key: member.identity.identityKey.toHex(),
1395
1395
  classNames: "flex gap-2 items-center cursor-pointer mbe-2",
1396
1396
  onClick: () => onMemberClick?.(member),
1397
1397
  "data-testid": "identity-list-item"
1398
- }, /* @__PURE__ */ React21.createElement(PresenceAvatar, {
1398
+ }, /* @__PURE__ */ React20.createElement(PresenceAvatar, {
1399
1399
  identity: member.identity,
1400
1400
  size,
1401
1401
  showName: true,
@@ -1405,7 +1405,7 @@ var FullPresence = (props) => {
1405
1405
  var PresenceAvatar = /* @__PURE__ */ forwardRef(({ identity, showName, match, index, onClick, size }, forwardedRef) => {
1406
1406
  const status = match ? "current" : "active";
1407
1407
  const fallbackValue = keyToFallback(identity.identityKey);
1408
- return /* @__PURE__ */ React21.createElement(Avatar.Root, null, /* @__PURE__ */ React21.createElement(Avatar.Content, {
1408
+ return /* @__PURE__ */ React20.createElement(Avatar.Root, null, /* @__PURE__ */ React20.createElement(Avatar.Content, {
1409
1409
  status,
1410
1410
  hue: identity.profile?.data?.hue || fallbackValue.hue,
1411
1411
  "data-testid": "spacePlugin.presence.member",
@@ -1419,7 +1419,7 @@ var PresenceAvatar = /* @__PURE__ */ forwardRef(({ identity, showName, match, in
1419
1419
  onClick,
1420
1420
  fallback: identity.profile?.data?.emoji || fallbackValue.emoji,
1421
1421
  ref: forwardedRef
1422
- }), /* @__PURE__ */ React21.createElement(Avatar.Label, {
1422
+ }), /* @__PURE__ */ React20.createElement(Avatar.Label, {
1423
1423
  classNames: showName ? "text-sm truncate pli-2" : "sr-only"
1424
1424
  }, getName(identity)));
1425
1425
  });
@@ -1447,61 +1447,61 @@ var SmallPresenceLive = ({ id, open, viewers }) => {
1447
1447
  }, [
1448
1448
  viewers
1449
1449
  ]);
1450
- return /* @__PURE__ */ React21.createElement(SmallPresence, {
1450
+ return /* @__PURE__ */ React20.createElement(SmallPresence, {
1451
1451
  count: activeViewers.length,
1452
1452
  attended: isAttended,
1453
1453
  containsAttended
1454
1454
  });
1455
1455
  };
1456
1456
  var SmallPresence = ({ count = 0, attended, containsAttended }) => {
1457
- const { t } = useTranslation19(SPACE_PLUGIN);
1458
- return /* @__PURE__ */ React21.createElement(Tooltip2.Root, null, /* @__PURE__ */ React21.createElement(Tooltip2.Trigger, {
1457
+ const { t } = useTranslation18(SPACE_PLUGIN);
1458
+ return /* @__PURE__ */ React20.createElement(Tooltip2.Root, null, /* @__PURE__ */ React20.createElement(Tooltip2.Trigger, {
1459
1459
  asChild: true
1460
- }, /* @__PURE__ */ React21.createElement(AttentionGlyph, {
1460
+ }, /* @__PURE__ */ React20.createElement(AttentionGlyph, {
1461
1461
  attended,
1462
1462
  containsAttended,
1463
1463
  presence: count > 1 ? "many" : count === 1 ? "one" : "none",
1464
1464
  classNames: "self-center mie-1"
1465
- })), /* @__PURE__ */ React21.createElement(Tooltip2.Portal, null, /* @__PURE__ */ React21.createElement(Tooltip2.Content, {
1465
+ })), /* @__PURE__ */ React20.createElement(Tooltip2.Portal, null, /* @__PURE__ */ React20.createElement(Tooltip2.Content, {
1466
1466
  side: "bottom"
1467
- }, /* @__PURE__ */ React21.createElement("span", null, t("presence label", {
1467
+ }, /* @__PURE__ */ React20.createElement("span", null, t("presence label", {
1468
1468
  count
1469
- })), /* @__PURE__ */ React21.createElement(Tooltip2.Arrow, null))));
1469
+ })), /* @__PURE__ */ React20.createElement(Tooltip2.Arrow, null))));
1470
1470
  };
1471
1471
 
1472
1472
  // packages/plugins/plugin-space/src/components/SpacePluginSettings.tsx
1473
- import React22 from "react";
1474
- import { createIntent as createIntent7, useIntentDispatcher as useIntentDispatcher7 } from "@dxos/app-framework";
1473
+ import React21 from "react";
1474
+ import { createIntent as createIntent9, useIntentDispatcher as useIntentDispatcher9 } from "@dxos/app-framework";
1475
1475
  import { useClient as useClient6 } from "@dxos/react-client";
1476
1476
  import { useSpaces as useSpaces2 } from "@dxos/react-client/echo";
1477
- import { Input as Input5, toLocalizedString as toLocalizedString3, useTranslation as useTranslation20, List as List3, ListItem as ListItem3, Button as Button7 } from "@dxos/react-ui";
1477
+ import { Input as Input5, toLocalizedString as toLocalizedString3, useTranslation as useTranslation19, List as List3, ListItem as ListItem3, Button as Button7 } from "@dxos/react-ui";
1478
1478
  import { DeprecatedFormContainer, DeprecatedFormInput } from "@dxos/react-ui-form";
1479
1479
  var SpacePluginSettings = ({ settings }) => {
1480
- const { t } = useTranslation20(SPACE_PLUGIN);
1481
- const { dispatchPromise: dispatch } = useIntentDispatcher7();
1480
+ const { t } = useTranslation19(SPACE_PLUGIN);
1481
+ const { dispatchPromise: dispatch } = useIntentDispatcher9();
1482
1482
  const client = useClient6();
1483
1483
  const spaces = useSpaces2({
1484
1484
  all: settings.showHidden
1485
1485
  });
1486
- return /* @__PURE__ */ React22.createElement(DeprecatedFormContainer, null, /* @__PURE__ */ React22.createElement(DeprecatedFormInput, {
1486
+ return /* @__PURE__ */ React21.createElement(DeprecatedFormContainer, null, /* @__PURE__ */ React21.createElement(DeprecatedFormInput, {
1487
1487
  label: t("show hidden spaces label")
1488
- }, /* @__PURE__ */ React22.createElement(Input5.Switch, {
1488
+ }, /* @__PURE__ */ React21.createElement(Input5.Switch, {
1489
1489
  checked: settings.showHidden,
1490
1490
  onCheckedChange: (checked) => settings.showHidden = !!checked
1491
- })), /* @__PURE__ */ React22.createElement("div", {
1491
+ })), /* @__PURE__ */ React21.createElement("div", {
1492
1492
  role: "none"
1493
- }, /* @__PURE__ */ React22.createElement("h2", {
1493
+ }, /* @__PURE__ */ React21.createElement("h2", {
1494
1494
  className: "text-xl my-4"
1495
- }, "Space Settings"), /* @__PURE__ */ React22.createElement(List3, {
1495
+ }, "Space Settings"), /* @__PURE__ */ React21.createElement(List3, {
1496
1496
  classNames: "max-w-md mx-auto"
1497
- }, spaces.map((space) => /* @__PURE__ */ React22.createElement(ListItem3.Root, {
1497
+ }, spaces.map((space) => /* @__PURE__ */ React21.createElement(ListItem3.Root, {
1498
1498
  key: space.id
1499
- }, /* @__PURE__ */ React22.createElement(ListItem3.Heading, {
1499
+ }, /* @__PURE__ */ React21.createElement(ListItem3.Heading, {
1500
1500
  classNames: "flex flex-col grow truncate mbe-2"
1501
1501
  }, toLocalizedString3(getSpaceDisplayName(space, {
1502
1502
  personal: space === client.spaces.default
1503
- }), t)), /* @__PURE__ */ React22.createElement(ListItem3.Endcap, null, /* @__PURE__ */ React22.createElement(Button7, {
1504
- onClick: () => dispatch(createIntent7(SpaceAction.OpenSettings, {
1503
+ }), t)), /* @__PURE__ */ React21.createElement(ListItem3.Endcap, null, /* @__PURE__ */ React21.createElement(Button7, {
1504
+ onClick: () => dispatch(createIntent9(SpaceAction.OpenSettings, {
1505
1505
  space
1506
1506
  }))
1507
1507
  }, t("open space settings label"))))))));
@@ -1509,13 +1509,13 @@ var SpacePluginSettings = ({ settings }) => {
1509
1509
 
1510
1510
  // packages/plugins/plugin-space/src/components/SpaceSettings/SpaceSettingsContainer.tsx
1511
1511
  import { pipe as pipe2, Schema as S } from "effect";
1512
- import React23, { useCallback as useCallback13, useMemo as useMemo3, useState as useState11 } from "react";
1513
- import { chain as chain2, createIntent as createIntent8, LayoutAction as LayoutAction6, useIntentDispatcher as useIntentDispatcher8 } from "@dxos/app-framework";
1512
+ import React22, { useCallback as useCallback13, useMemo as useMemo3, useState as useState11 } from "react";
1513
+ import { chain as chain2, createIntent as createIntent10, LayoutAction as LayoutAction8, useIntentDispatcher as useIntentDispatcher10 } from "@dxos/app-framework";
1514
1514
  import { log as log3 } from "@dxos/log";
1515
1515
  import { EdgeReplicationSetting } from "@dxos/protocols/proto/dxos/echo/metadata";
1516
1516
  import { useClient as useClient7 } from "@dxos/react-client";
1517
1517
  import { SpaceState as SpaceState2 } from "@dxos/react-client/echo";
1518
- import { Button as Button8, Input as Input6, useMulticastObservable, useTranslation as useTranslation21 } from "@dxos/react-ui";
1518
+ import { Button as Button8, Input as Input6, useMulticastObservable, useTranslation as useTranslation20 } from "@dxos/react-ui";
1519
1519
  import { Form as Form4, ControlItem, ControlItemInput as ControlItemInput2, ControlSection as ControlSection3, ControlPage as ControlPage3 } from "@dxos/react-ui-form";
1520
1520
  import { HuePicker, IconPicker } from "@dxos/react-ui-pickers";
1521
1521
  import { StackItem as StackItem4 } from "@dxos/react-ui-stack";
@@ -1526,8 +1526,8 @@ var FormSchema = SpaceForm.pipe(S.extend(S.Struct({
1526
1526
  })
1527
1527
  })));
1528
1528
  var SpaceSettingsContainer = ({ space }) => {
1529
- const { t } = useTranslation21(SPACE_PLUGIN);
1530
- const { dispatchPromise: dispatch } = useIntentDispatcher8();
1529
+ const { t } = useTranslation20(SPACE_PLUGIN);
1530
+ const { dispatchPromise: dispatch } = useIntentDispatcher10();
1531
1531
  const client = useClient7();
1532
1532
  const archived = useMulticastObservable(space.state) === SpaceState2.SPACE_INACTIVE;
1533
1533
  const [edgeReplication, setEdgeReplication] = useState11(space.internal.data.edgeReplication === EdgeReplicationSetting.ENABLED);
@@ -1557,14 +1557,14 @@ var SpaceSettingsContainer = ({ space }) => {
1557
1557
  space.properties.hue = properties.hue;
1558
1558
  }
1559
1559
  if (properties.archived && !archived) {
1560
- void dispatch(pipe2(createIntent8(SpaceAction.Close, {
1560
+ void dispatch(pipe2(createIntent10(SpaceAction.Close, {
1561
1561
  space
1562
- }), chain2(LayoutAction6.SwitchWorkspace, {
1562
+ }), chain2(LayoutAction8.SwitchWorkspace, {
1563
1563
  part: "workspace",
1564
1564
  subject: client.spaces.default.id
1565
1565
  })));
1566
1566
  } else if (!properties.archived && archived) {
1567
- void dispatch(createIntent8(SpaceAction.Open, {
1567
+ void dispatch(createIntent10(SpaceAction.Open, {
1568
1568
  space
1569
1569
  }));
1570
1570
  }
@@ -1592,10 +1592,10 @@ var SpaceSettingsContainer = ({ space }) => {
1592
1592
  onValueChange,
1593
1593
  type
1594
1594
  ]);
1595
- return /* @__PURE__ */ React23.createElement(ControlItemInput2, {
1595
+ return /* @__PURE__ */ React22.createElement(ControlItemInput2, {
1596
1596
  title: label,
1597
1597
  description: t("display name description")
1598
- }, /* @__PURE__ */ React23.createElement(Input6.TextInput, {
1598
+ }, /* @__PURE__ */ React22.createElement(Input6.TextInput, {
1599
1599
  value: getValue(),
1600
1600
  onChange: handleChange,
1601
1601
  placeholder: t("display name input placeholder"),
@@ -1611,10 +1611,10 @@ var SpaceSettingsContainer = ({ space }) => {
1611
1611
  onValueChange,
1612
1612
  type
1613
1613
  ]);
1614
- return /* @__PURE__ */ React23.createElement(ControlItem, {
1614
+ return /* @__PURE__ */ React22.createElement(ControlItem, {
1615
1615
  title: label,
1616
1616
  description: t("icon description")
1617
- }, /* @__PURE__ */ React23.createElement(IconPicker, {
1617
+ }, /* @__PURE__ */ React22.createElement(IconPicker, {
1618
1618
  value: getValue(),
1619
1619
  onChange: handleChange,
1620
1620
  onReset: handleEmojiReset,
@@ -1631,10 +1631,10 @@ var SpaceSettingsContainer = ({ space }) => {
1631
1631
  onValueChange,
1632
1632
  type
1633
1633
  ]);
1634
- return /* @__PURE__ */ React23.createElement(ControlItem, {
1634
+ return /* @__PURE__ */ React22.createElement(ControlItem, {
1635
1635
  title: label,
1636
1636
  description: t("hue description")
1637
- }, /* @__PURE__ */ React23.createElement(HuePicker, {
1637
+ }, /* @__PURE__ */ React22.createElement(HuePicker, {
1638
1638
  value: getValue(),
1639
1639
  onChange: handleChange,
1640
1640
  onReset: handleHueReset,
@@ -1646,10 +1646,10 @@ var SpaceSettingsContainer = ({ space }) => {
1646
1646
  onValueChange,
1647
1647
  type
1648
1648
  ]);
1649
- return /* @__PURE__ */ React23.createElement(ControlItemInput2, {
1649
+ return /* @__PURE__ */ React22.createElement(ControlItemInput2, {
1650
1650
  title: label,
1651
1651
  description: t("edge replication description")
1652
- }, /* @__PURE__ */ React23.createElement(Input6.Switch, {
1652
+ }, /* @__PURE__ */ React22.createElement(Input6.Switch, {
1653
1653
  checked: getValue(),
1654
1654
  onCheckedChange: handleChange,
1655
1655
  classNames: "justify-self-end"
@@ -1661,10 +1661,10 @@ var SpaceSettingsContainer = ({ space }) => {
1661
1661
  type,
1662
1662
  getValue
1663
1663
  ]);
1664
- return /* @__PURE__ */ React23.createElement(ControlItemInput2, {
1664
+ return /* @__PURE__ */ React22.createElement(ControlItemInput2, {
1665
1665
  title: label,
1666
1666
  description: t("archive space description")
1667
- }, /* @__PURE__ */ React23.createElement(Button8, {
1667
+ }, /* @__PURE__ */ React22.createElement(Button8, {
1668
1668
  disabled: space === client.spaces.default,
1669
1669
  onClick: handleChange
1670
1670
  }, getValue() ? t("unarchive space label") : t("archive space label")));
@@ -1673,16 +1673,16 @@ var SpaceSettingsContainer = ({ space }) => {
1673
1673
  t,
1674
1674
  space
1675
1675
  ]);
1676
- return /* @__PURE__ */ React23.createElement(StackItem4.Content, {
1676
+ return /* @__PURE__ */ React22.createElement(StackItem4.Content, {
1677
1677
  classNames: "block overflow-y-auto pli-2"
1678
- }, /* @__PURE__ */ React23.createElement(ControlPage3, null, /* @__PURE__ */ React23.createElement(ControlSection3, {
1678
+ }, /* @__PURE__ */ React22.createElement(ControlPage3, null, /* @__PURE__ */ React22.createElement(ControlSection3, {
1679
1679
  title: t("space properties settings verbose label", {
1680
1680
  ns: SPACE_PLUGIN
1681
1681
  }),
1682
1682
  description: t("space properties settings description", {
1683
1683
  ns: SPACE_PLUGIN
1684
1684
  })
1685
- }, /* @__PURE__ */ React23.createElement(Form4, {
1685
+ }, /* @__PURE__ */ React22.createElement(Form4, {
1686
1686
  schema: FormSchema,
1687
1687
  values,
1688
1688
  autoSave: true,
@@ -1693,13 +1693,13 @@ var SpaceSettingsContainer = ({ space }) => {
1693
1693
  };
1694
1694
 
1695
1695
  // packages/plugins/plugin-space/src/components/SyncStatus/InlineSyncStatus.tsx
1696
- import React24, { useEffect as useEffect6, useState as useState12 } from "react";
1696
+ import React23, { useEffect as useEffect6, useState as useState12 } from "react";
1697
1697
  import { useAppGraph as useAppGraph3 } from "@dxos/app-framework";
1698
1698
  import { EdgeStatus } from "@dxos/protocols/proto/dxos/client/services";
1699
1699
  import { EdgeReplicationSetting as EdgeReplicationSetting2 } from "@dxos/protocols/proto/dxos/echo/metadata";
1700
1700
  import { useClient as useClient8 } from "@dxos/react-client";
1701
1701
  import { useSpaceSyncState } from "@dxos/react-client/echo";
1702
- import { Tooltip as Tooltip3, useTranslation as useTranslation22 } from "@dxos/react-ui";
1702
+ import { Tooltip as Tooltip3, useTranslation as useTranslation21 } from "@dxos/react-ui";
1703
1703
  import { AttentionGlyph as AttentionGlyph2, useAttended as useAttended2, useAttention as useAttention2 } from "@dxos/react-ui-attention";
1704
1704
  var useEdgeStatus = () => {
1705
1705
  const [status, setStatus] = useState12(EdgeStatus.NOT_CONNECTED);
@@ -1714,7 +1714,7 @@ var useEdgeStatus = () => {
1714
1714
  return status;
1715
1715
  };
1716
1716
  var InlineSyncStatus = ({ space, open }) => {
1717
- const { t } = useTranslation22(SPACE_PLUGIN);
1717
+ const { t } = useTranslation21(SPACE_PLUGIN);
1718
1718
  const id = space.id;
1719
1719
  const { hasAttention, isAncestor, isRelated } = useAttention2(id);
1720
1720
  const isAttended = hasAttention || isAncestor || isRelated;
@@ -1727,25 +1727,25 @@ var InlineSyncStatus = ({ space, open }) => {
1727
1727
  const edgeSyncEnabled = space.internal.data.edgeReplication === EdgeReplicationSetting2.ENABLED;
1728
1728
  const syncState = useSpaceSyncState(space);
1729
1729
  const syncing = connectedToEdge && edgeSyncEnabled && syncState && syncState.missingOnLocal > 0;
1730
- return /* @__PURE__ */ React24.createElement(Tooltip3.Root, null, /* @__PURE__ */ React24.createElement(Tooltip3.Trigger, {
1730
+ return /* @__PURE__ */ React23.createElement(Tooltip3.Root, null, /* @__PURE__ */ React23.createElement(Tooltip3.Trigger, {
1731
1731
  asChild: true
1732
- }, /* @__PURE__ */ React24.createElement(AttentionGlyph2, {
1732
+ }, /* @__PURE__ */ React23.createElement(AttentionGlyph2, {
1733
1733
  syncing,
1734
1734
  attended: isAttended,
1735
1735
  containsAttended,
1736
1736
  classNames: "self-center mie-1"
1737
- })), /* @__PURE__ */ React24.createElement(Tooltip3.Portal, null, /* @__PURE__ */ React24.createElement(Tooltip3.Content, {
1737
+ })), /* @__PURE__ */ React23.createElement(Tooltip3.Portal, null, /* @__PURE__ */ React23.createElement(Tooltip3.Content, {
1738
1738
  side: "bottom",
1739
1739
  classNames: "z-[70]"
1740
- }, /* @__PURE__ */ React24.createElement("span", null, t("syncing label")), /* @__PURE__ */ React24.createElement(Tooltip3.Arrow, null))));
1740
+ }, /* @__PURE__ */ React23.createElement("span", null, t("syncing label")), /* @__PURE__ */ React23.createElement(Tooltip3.Arrow, null))));
1741
1741
  };
1742
1742
 
1743
1743
  // packages/plugins/plugin-space/src/components/SyncStatus/SyncStatus.tsx
1744
- import React25, { useEffect as useEffect7, useState as useState13 } from "react";
1744
+ import React24, { useEffect as useEffect7, useState as useState13 } from "react";
1745
1745
  import { StatusBar } from "@dxos/plugin-status-bar";
1746
1746
  import { useClient as useClient9 } from "@dxos/react-client";
1747
1747
  import { getSyncSummary, useSyncState } from "@dxos/react-client/echo";
1748
- import { Icon as Icon5, useTranslation as useTranslation23 } from "@dxos/react-ui";
1748
+ import { Icon as Icon5, useTranslation as useTranslation22 } from "@dxos/react-ui";
1749
1749
 
1750
1750
  // packages/plugins/plugin-space/src/components/SyncStatus/save-tracker.ts
1751
1751
  import { Context } from "@dxos/context";
@@ -1849,13 +1849,13 @@ var SyncStatus = () => {
1849
1849
  setSaved(state2 === "saved");
1850
1850
  });
1851
1851
  }, []);
1852
- return /* @__PURE__ */ React25.createElement(SyncStatusIndicator, {
1852
+ return /* @__PURE__ */ React24.createElement(SyncStatusIndicator, {
1853
1853
  state,
1854
1854
  saved
1855
1855
  });
1856
1856
  };
1857
1857
  var SyncStatusIndicator = ({ state, saved }) => {
1858
- const { t } = useTranslation23(SPACE_PLUGIN);
1858
+ const { t } = useTranslation22(SPACE_PLUGIN);
1859
1859
  const summary = getSyncSummary(state);
1860
1860
  const offline = Object.values(state).length === 0;
1861
1861
  const needsToUpload = summary.differentDocuments > 0 || summary.missingOnRemote > 0;
@@ -1882,12 +1882,12 @@ var SyncStatusIndicator = ({ state, saved }) => {
1882
1882
  needsToDownload
1883
1883
  ]);
1884
1884
  const title = t(`${status} label`);
1885
- const icon = /* @__PURE__ */ React25.createElement(Icon5, {
1885
+ const icon = /* @__PURE__ */ React24.createElement(Icon5, {
1886
1886
  icon: getIcon(status),
1887
1887
  size: 4,
1888
1888
  classNames
1889
1889
  });
1890
- return /* @__PURE__ */ React25.createElement(StatusBar.Item, {
1890
+ return /* @__PURE__ */ React24.createElement(StatusBar.Item, {
1891
1891
  title
1892
1892
  }, icon);
1893
1893
  };
@@ -1914,8 +1914,6 @@ export {
1914
1914
  PopoverRenameSpace,
1915
1915
  useQuerySpaceSchemas,
1916
1916
  SchemaContainer,
1917
- ShareSpaceButton,
1918
- ShareSpaceButtonImpl,
1919
1917
  SpacePresence,
1920
1918
  FullPresence,
1921
1919
  SmallPresenceLive,
@@ -1937,4 +1935,4 @@ export {
1937
1935
  SpaceState,
1938
1936
  SpacesReady
1939
1937
  };
1940
- //# sourceMappingURL=chunk-ABKX22IP.mjs.map
1938
+ //# sourceMappingURL=chunk-PQI4D4SH.mjs.map