@dxos/plugin-space 0.8.2-main.5ca3450 → 0.8.2-main.600d381

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 (125) hide show
  1. package/dist/lib/browser/{app-graph-builder-I2BU35J5.mjs → app-graph-builder-6KVRD7OJ.mjs} +27 -10
  2. package/dist/lib/browser/{app-graph-builder-I2BU35J5.mjs.map → app-graph-builder-6KVRD7OJ.mjs.map} +3 -3
  3. package/dist/lib/browser/{app-graph-serializer-HPYDOKA5.mjs → app-graph-serializer-N7KZGCST.mjs} +4 -4
  4. package/dist/lib/browser/{chunk-YQNBTJI4.mjs → chunk-CY35NLWL.mjs} +1 -13
  5. package/dist/lib/browser/{chunk-YQNBTJI4.mjs.map → chunk-CY35NLWL.mjs.map} +3 -3
  6. package/dist/lib/browser/{chunk-RERTVPBV.mjs → chunk-F57CTUM6.mjs} +4 -4
  7. package/dist/lib/browser/{chunk-RERTVPBV.mjs.map → chunk-F57CTUM6.mjs.map} +2 -2
  8. package/dist/lib/browser/{chunk-TSX67XGX.mjs → chunk-V4VNP2WY.mjs} +124 -174
  9. package/dist/lib/browser/{chunk-TSX67XGX.mjs.map → chunk-V4VNP2WY.mjs.map} +4 -4
  10. package/dist/lib/browser/{chunk-OS5QKO4Z.mjs → chunk-XC4BXZVV.mjs} +2 -3
  11. package/dist/lib/browser/chunk-XC4BXZVV.mjs.map +7 -0
  12. package/dist/lib/browser/{identity-created-DWFKBGOA.mjs → identity-created-74EHBH7M.mjs} +2 -2
  13. package/dist/lib/browser/index.mjs +4 -8
  14. package/dist/lib/browser/index.mjs.map +1 -1
  15. package/dist/lib/browser/{intent-resolver-GKDCJ4H2.mjs → intent-resolver-FZ64VJKZ.mjs} +7 -26
  16. package/dist/lib/browser/intent-resolver-FZ64VJKZ.mjs.map +7 -0
  17. package/dist/lib/browser/meta.json +1 -1
  18. package/dist/lib/browser/{react-root-667IZ2Q4.mjs → react-root-2EFJCOX7.mjs} +4 -4
  19. package/dist/lib/browser/{react-surface-I4RNTGGN.mjs → react-surface-N5OGF7TQ.mjs} +4 -12
  20. package/dist/lib/browser/react-surface-N5OGF7TQ.mjs.map +7 -0
  21. package/dist/lib/browser/{settings-ILGGNYJ7.mjs → settings-G24447B7.mjs} +2 -2
  22. package/dist/lib/browser/{spaces-ready-IXZF3RWW.mjs → spaces-ready-ZSUEPHJF.mjs} +3 -3
  23. package/dist/lib/browser/types/index.mjs +1 -1
  24. package/dist/lib/node/{app-graph-builder-H7MDHM3X.cjs → app-graph-builder-6VR2TBBF.cjs} +55 -38
  25. package/dist/lib/node/{app-graph-builder-H7MDHM3X.cjs.map → app-graph-builder-6VR2TBBF.cjs.map} +3 -3
  26. package/dist/lib/node/{app-graph-serializer-G7UYFWG6.cjs → app-graph-serializer-IKQLWTCX.cjs} +20 -20
  27. package/dist/lib/node/{chunk-EG3WAZLA.cjs → chunk-FILCZU6V.cjs} +29 -29
  28. package/dist/lib/node/{chunk-EG3WAZLA.cjs.map → chunk-FILCZU6V.cjs.map} +2 -2
  29. package/dist/lib/node/{chunk-AR3JHVCY.cjs → chunk-K6ZO4WDJ.cjs} +4 -16
  30. package/dist/lib/node/{chunk-AR3JHVCY.cjs.map → chunk-K6ZO4WDJ.cjs.map} +3 -3
  31. package/dist/lib/node/{chunk-HD4C6KKO.cjs → chunk-P2ZIVXGY.cjs} +177 -227
  32. package/dist/lib/node/chunk-P2ZIVXGY.cjs.map +7 -0
  33. package/dist/lib/node/{chunk-NCSFM6RA.cjs → chunk-YAE6CCDB.cjs} +6 -7
  34. package/dist/lib/node/chunk-YAE6CCDB.cjs.map +7 -0
  35. package/dist/lib/node/{identity-created-YLGVEWAJ.cjs → identity-created-PCQPDULV.cjs} +6 -6
  36. package/dist/lib/node/index.cjs +60 -64
  37. package/dist/lib/node/index.cjs.map +1 -1
  38. package/dist/lib/node/{intent-resolver-V7UJKLE7.cjs → intent-resolver-BK6JDXY4.cjs} +55 -73
  39. package/dist/lib/node/intent-resolver-BK6JDXY4.cjs.map +7 -0
  40. package/dist/lib/node/meta.json +1 -1
  41. package/dist/lib/node/{react-root-I3SSFA5O.cjs → react-root-DEQFKQVD.cjs} +8 -8
  42. package/dist/lib/node/{react-surface-OLMQCCYD.cjs → react-surface-UQD7LR67.cjs} +41 -47
  43. package/dist/lib/node/react-surface-UQD7LR67.cjs.map +7 -0
  44. package/dist/lib/node/{settings-7TC55JP4.cjs → settings-AFWO4AWK.cjs} +6 -6
  45. package/dist/lib/node/{spaces-ready-4H3Q46GV.cjs → spaces-ready-MHLUFLXN.cjs} +11 -11
  46. package/dist/lib/node/types/index.cjs +15 -15
  47. package/dist/lib/node/types/index.cjs.map +1 -1
  48. package/dist/lib/node-esm/{app-graph-builder-NI7X6W3Q.mjs → app-graph-builder-O7M6MVS5.mjs} +27 -10
  49. package/dist/lib/node-esm/{app-graph-builder-NI7X6W3Q.mjs.map → app-graph-builder-O7M6MVS5.mjs.map} +3 -3
  50. package/dist/lib/node-esm/{app-graph-serializer-CVPYWWW3.mjs → app-graph-serializer-I6XBQJLA.mjs} +4 -4
  51. package/dist/lib/node-esm/{chunk-RUWTHAV7.mjs → chunk-CLRCW6PU.mjs} +1 -13
  52. package/dist/lib/node-esm/{chunk-RUWTHAV7.mjs.map → chunk-CLRCW6PU.mjs.map} +3 -3
  53. package/dist/lib/node-esm/{chunk-B2P24Q5R.mjs → chunk-COHDPHM7.mjs} +4 -4
  54. package/dist/lib/node-esm/{chunk-B2P24Q5R.mjs.map → chunk-COHDPHM7.mjs.map} +2 -2
  55. package/dist/lib/node-esm/{chunk-FUH5OODY.mjs → chunk-HEXOMJIR.mjs} +2 -3
  56. package/dist/lib/node-esm/chunk-HEXOMJIR.mjs.map +7 -0
  57. package/dist/lib/node-esm/{chunk-BU6F7ZU4.mjs → chunk-TB557OBD.mjs} +124 -174
  58. package/dist/lib/node-esm/{chunk-BU6F7ZU4.mjs.map → chunk-TB557OBD.mjs.map} +4 -4
  59. package/dist/lib/node-esm/{identity-created-7NHGER3Q.mjs → identity-created-GXS46A3C.mjs} +2 -2
  60. package/dist/lib/node-esm/index.mjs +4 -8
  61. package/dist/lib/node-esm/index.mjs.map +1 -1
  62. package/dist/lib/node-esm/{intent-resolver-IL63YTIT.mjs → intent-resolver-6VPP3ZDO.mjs} +7 -26
  63. package/dist/lib/node-esm/intent-resolver-6VPP3ZDO.mjs.map +7 -0
  64. package/dist/lib/node-esm/meta.json +1 -1
  65. package/dist/lib/node-esm/{react-root-JEGVIVVK.mjs → react-root-2RJ2S5E6.mjs} +4 -4
  66. package/dist/lib/node-esm/{react-surface-DRRXIJBE.mjs → react-surface-2RSRATVY.mjs} +4 -12
  67. package/dist/lib/node-esm/react-surface-2RSRATVY.mjs.map +7 -0
  68. package/dist/lib/node-esm/{settings-CXMV2AFR.mjs → settings-MJVSCOI4.mjs} +2 -2
  69. package/dist/lib/node-esm/{spaces-ready-QMXLQ4QV.mjs → spaces-ready-35U5BBTH.mjs} +3 -3
  70. package/dist/lib/node-esm/types/index.mjs +1 -1
  71. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  72. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  73. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  74. package/dist/types/src/components/MembersContainer.stories.d.ts.map +1 -1
  75. package/dist/types/src/components/PersistenceStatus.d.ts.map +1 -1
  76. package/dist/types/src/components/SpacePresence.d.ts.map +1 -1
  77. package/dist/types/src/components/SyncStatus/InlineSyncStatus.d.ts.map +1 -1
  78. package/dist/types/src/components/index.d.ts +0 -1
  79. package/dist/types/src/components/index.d.ts.map +1 -1
  80. package/dist/types/src/translations.d.ts +0 -1
  81. package/dist/types/src/translations.d.ts.map +1 -1
  82. package/dist/types/src/types/types.d.ts +0 -16
  83. package/dist/types/src/types/types.d.ts.map +1 -1
  84. package/package.json +44 -44
  85. package/src/capabilities/app-graph-builder.ts +20 -8
  86. package/src/capabilities/intent-resolver.ts +0 -19
  87. package/src/capabilities/react-surface.tsx +0 -8
  88. package/src/components/CreateDialog/CreateObjectDialog.stories.tsx +1 -1
  89. package/src/components/MembersContainer.stories.tsx +1 -5
  90. package/src/components/PersistenceStatus.tsx +11 -14
  91. package/src/components/SpacePresence.stories.tsx +1 -1
  92. package/src/components/SpacePresence.tsx +32 -42
  93. package/src/components/SyncStatus/InlineSyncStatus.tsx +8 -16
  94. package/src/components/index.ts +0 -1
  95. package/src/translations.ts +0 -1
  96. package/src/types/types.ts +0 -13
  97. package/src/util.tsx +4 -4
  98. package/dist/lib/browser/chunk-OS5QKO4Z.mjs.map +0 -7
  99. package/dist/lib/browser/intent-resolver-GKDCJ4H2.mjs.map +0 -7
  100. package/dist/lib/browser/react-surface-I4RNTGGN.mjs.map +0 -7
  101. package/dist/lib/node/chunk-HD4C6KKO.cjs.map +0 -7
  102. package/dist/lib/node/chunk-NCSFM6RA.cjs.map +0 -7
  103. package/dist/lib/node/intent-resolver-V7UJKLE7.cjs.map +0 -7
  104. package/dist/lib/node/react-surface-OLMQCCYD.cjs.map +0 -7
  105. package/dist/lib/node-esm/chunk-FUH5OODY.mjs.map +0 -7
  106. package/dist/lib/node-esm/intent-resolver-IL63YTIT.mjs.map +0 -7
  107. package/dist/lib/node-esm/react-surface-DRRXIJBE.mjs.map +0 -7
  108. package/dist/types/src/components/PopoverAddSpace.d.ts +0 -4
  109. package/dist/types/src/components/PopoverAddSpace.d.ts.map +0 -1
  110. package/src/components/PopoverAddSpace.tsx +0 -52
  111. /package/dist/lib/browser/{app-graph-serializer-HPYDOKA5.mjs.map → app-graph-serializer-N7KZGCST.mjs.map} +0 -0
  112. /package/dist/lib/browser/{identity-created-DWFKBGOA.mjs.map → identity-created-74EHBH7M.mjs.map} +0 -0
  113. /package/dist/lib/browser/{react-root-667IZ2Q4.mjs.map → react-root-2EFJCOX7.mjs.map} +0 -0
  114. /package/dist/lib/browser/{settings-ILGGNYJ7.mjs.map → settings-G24447B7.mjs.map} +0 -0
  115. /package/dist/lib/browser/{spaces-ready-IXZF3RWW.mjs.map → spaces-ready-ZSUEPHJF.mjs.map} +0 -0
  116. /package/dist/lib/node/{app-graph-serializer-G7UYFWG6.cjs.map → app-graph-serializer-IKQLWTCX.cjs.map} +0 -0
  117. /package/dist/lib/node/{identity-created-YLGVEWAJ.cjs.map → identity-created-PCQPDULV.cjs.map} +0 -0
  118. /package/dist/lib/node/{react-root-I3SSFA5O.cjs.map → react-root-DEQFKQVD.cjs.map} +0 -0
  119. /package/dist/lib/node/{settings-7TC55JP4.cjs.map → settings-AFWO4AWK.cjs.map} +0 -0
  120. /package/dist/lib/node/{spaces-ready-4H3Q46GV.cjs.map → spaces-ready-MHLUFLXN.cjs.map} +0 -0
  121. /package/dist/lib/node-esm/{app-graph-serializer-CVPYWWW3.mjs.map → app-graph-serializer-I6XBQJLA.mjs.map} +0 -0
  122. /package/dist/lib/node-esm/{identity-created-7NHGER3Q.mjs.map → identity-created-GXS46A3C.mjs.map} +0 -0
  123. /package/dist/lib/node-esm/{react-root-JEGVIVVK.mjs.map → react-root-2RJ2S5E6.mjs.map} +0 -0
  124. /package/dist/lib/node-esm/{settings-CXMV2AFR.mjs.map → settings-MJVSCOI4.mjs.map} +0 -0
  125. /package/dist/lib/node-esm/{spaces-ready-QMXLQ4QV.mjs.map → spaces-ready-35U5BBTH.mjs.map} +0 -0
@@ -5,12 +5,12 @@ import {
5
5
  import {
6
6
  COMPOSER_SPACE_LOCK,
7
7
  getSpaceDisplayName
8
- } from "./chunk-B2P24Q5R.mjs";
8
+ } from "./chunk-COHDPHM7.mjs";
9
9
  import {
10
10
  CollectionType,
11
11
  SpaceAction,
12
12
  SpaceForm
13
- } from "./chunk-RUWTHAV7.mjs";
13
+ } from "./chunk-CLRCW6PU.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-NI7X6W3Q.mjs"));
344
- var AppGraphSerializer = lazy(() => import("./app-graph-serializer-CVPYWWW3.mjs"));
345
- var IdentityCreated = lazy(() => import("./identity-created-7NHGER3Q.mjs"));
346
- var IntentResolver = lazy(() => import("./intent-resolver-IL63YTIT.mjs"));
347
- var ReactRoot = lazy(() => import("./react-root-JEGVIVVK.mjs"));
348
- var ReactSurface = lazy(() => import("./react-surface-DRRXIJBE.mjs"));
343
+ var AppGraphBuilder = lazy(() => import("./app-graph-builder-O7M6MVS5.mjs"));
344
+ var AppGraphSerializer = lazy(() => import("./app-graph-serializer-I6XBQJLA.mjs"));
345
+ var IdentityCreated = lazy(() => import("./identity-created-GXS46A3C.mjs"));
346
+ var IntentResolver = lazy(() => import("./intent-resolver-6VPP3ZDO.mjs"));
347
+ var ReactRoot = lazy(() => import("./react-root-2RJ2S5E6.mjs"));
348
+ var ReactSurface = lazy(() => import("./react-surface-2RSRATVY.mjs"));
349
349
  var SchemaDefs = lazy(() => import("./schema-defs-IIEQR7B3.mjs"));
350
350
  var SchemaTools = lazy(() => import("./schema-tools-YTJLA3NQ.mjs"));
351
- var SpaceSettings = lazy(() => import("./settings-CXMV2AFR.mjs"));
351
+ var SpaceSettings = lazy(() => import("./settings-MJVSCOI4.mjs"));
352
352
  var SpaceState = lazy(() => import("./state-YZPY5T5A.mjs"));
353
- var SpacesReady = lazy(() => import("./spaces-ready-QMXLQ4QV.mjs"));
353
+ var SpacesReady = lazy(() => import("./spaces-ready-35U5BBTH.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";
@@ -1099,78 +1099,32 @@ var PersistenceStatus = ({ db }) => {
1099
1099
  }, t("persistence pending label")));
1100
1100
  case 0:
1101
1101
  default:
1102
- return /* @__PURE__ */ React15.createElement(Tooltip.Root, {
1103
- delayDuration: 400
1104
- }, /* @__PURE__ */ React15.createElement(Tooltip.Trigger, {
1102
+ return /* @__PURE__ */ React15.createElement(Tooltip.Trigger, {
1103
+ delayDuration: 400,
1105
1104
  role: "status",
1105
+ content: t("persisted locally message"),
1106
1106
  className: "flex items-center"
1107
1107
  }, /* @__PURE__ */ React15.createElement(CheckCircle2, {
1108
1108
  className: mx6(getSize3(4), "me-1")
1109
1109
  }), displayMessage && /* @__PURE__ */ React15.createElement("span", {
1110
1110
  className: mx6("text-sm", staticPlaceholderText)
1111
- }, t("persisted locally label"))), /* @__PURE__ */ React15.createElement(Tooltip.Portal, null, /* @__PURE__ */ React15.createElement(Tooltip.Content, null, t("persisted locally message"), /* @__PURE__ */ React15.createElement(Tooltip.Arrow, null))));
1111
+ }, t("persisted locally label")));
1112
1112
  }
1113
1113
  };
1114
1114
 
1115
- // packages/plugins/plugin-space/src/components/PopoverAddSpace.tsx
1116
- import React16 from "react";
1117
- import { createIntent as createIntent6, LayoutAction as LayoutAction5, useIntentDispatcher as useIntentDispatcher6 } from "@dxos/app-framework";
1118
- import { IconButton as IconButton3, useTranslation as useTranslation14 } from "@dxos/react-ui";
1119
- var POPOVER_ADD_SPACE = `${SPACE_PLUGIN}/PopoverRenameSpace`;
1120
- var PopoverAddSpace = () => {
1121
- const { t } = useTranslation14(SPACE_PLUGIN);
1122
- const { dispatchPromise: dispatch } = useIntentDispatcher6();
1123
- return /* @__PURE__ */ React16.createElement("div", {
1124
- role: "none",
1125
- className: "p-1 grid grid-cols-1 gap-1 [&>button]:justify-start"
1126
- }, /* @__PURE__ */ React16.createElement(IconButton3, {
1127
- variant: "ghost",
1128
- label: t("create space label"),
1129
- icon: "ph--plus--regular",
1130
- onClick: () => {
1131
- void dispatch(createIntent6(SpaceAction.OpenCreateSpace));
1132
- void dispatch(createIntent6(LayoutAction5.UpdatePopover, {
1133
- part: "popover",
1134
- options: {
1135
- variant: "react",
1136
- anchorId: "",
1137
- state: false
1138
- }
1139
- }));
1140
- },
1141
- "data-testid": "spacePlugin.createSpace"
1142
- }), /* @__PURE__ */ React16.createElement(IconButton3, {
1143
- variant: "ghost",
1144
- label: t("join space label"),
1145
- icon: "ph--sign-in--regular",
1146
- onClick: () => {
1147
- void dispatch(createIntent6(SpaceAction.Join));
1148
- void dispatch(createIntent6(LayoutAction5.UpdatePopover, {
1149
- part: "popover",
1150
- options: {
1151
- variant: "react",
1152
- anchorId: "",
1153
- state: false
1154
- }
1155
- }));
1156
- },
1157
- "data-testid": "spacePlugin.joinSpace"
1158
- }));
1159
- };
1160
-
1161
1115
  // packages/plugins/plugin-space/src/components/PopoverRenameObject.tsx
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";
1116
+ import React16, { useCallback as useCallback10, useRef as useRef4, useState as useState7 } from "react";
1117
+ import { createIntent as createIntent6, LayoutAction as LayoutAction5, useIntentDispatcher as useIntentDispatcher6 } from "@dxos/app-framework";
1164
1118
  import { log as log2 } from "@dxos/log";
1165
- import { Button as Button5, Input as Input3, useTranslation as useTranslation15 } from "@dxos/react-ui";
1119
+ import { Button as Button5, Input as Input3, useTranslation as useTranslation14 } from "@dxos/react-ui";
1166
1120
  var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/PopoverRenameObject.tsx";
1167
1121
  var POPOVER_RENAME_OBJECT = `${SPACE_PLUGIN}/PopoverRenameObject`;
1168
1122
  var PopoverRenameObject = ({ object: obj }) => {
1169
- const { t } = useTranslation15(SPACE_PLUGIN);
1123
+ const { t } = useTranslation14(SPACE_PLUGIN);
1170
1124
  const doneButton = useRef4(null);
1171
1125
  const object = obj;
1172
1126
  const [name, setName] = useState7(object.name || object.title || "");
1173
- const { dispatchPromise: dispatch } = useIntentDispatcher7();
1127
+ const { dispatchPromise: dispatch } = useIntentDispatcher6();
1174
1128
  const handleDone = useCallback10(() => {
1175
1129
  try {
1176
1130
  object.name = name;
@@ -1188,7 +1142,7 @@ var PopoverRenameObject = ({ object: obj }) => {
1188
1142
  });
1189
1143
  }
1190
1144
  }
1191
- void dispatch(createIntent7(LayoutAction6.UpdatePopover, {
1145
+ void dispatch(createIntent6(LayoutAction5.UpdatePopover, {
1192
1146
  part: "popover",
1193
1147
  options: {
1194
1148
  variant: "react",
@@ -1200,21 +1154,21 @@ var PopoverRenameObject = ({ object: obj }) => {
1200
1154
  object,
1201
1155
  name
1202
1156
  ]);
1203
- return /* @__PURE__ */ React17.createElement("div", {
1157
+ return /* @__PURE__ */ React16.createElement("div", {
1204
1158
  role: "none",
1205
1159
  className: "p-1 flex gap-2"
1206
- }, /* @__PURE__ */ React17.createElement("div", {
1160
+ }, /* @__PURE__ */ React16.createElement("div", {
1207
1161
  role: "none",
1208
1162
  className: "flex-1"
1209
- }, /* @__PURE__ */ React17.createElement(Input3.Root, null, /* @__PURE__ */ React17.createElement(Input3.Label, {
1163
+ }, /* @__PURE__ */ React16.createElement(Input3.Root, null, /* @__PURE__ */ React16.createElement(Input3.Label, {
1210
1164
  srOnly: true
1211
- }, t("object name label")), /* @__PURE__ */ React17.createElement(Input3.TextInput, {
1165
+ }, t("object name label")), /* @__PURE__ */ React16.createElement(Input3.TextInput, {
1212
1166
  placeholder: t("object placeholder"),
1213
1167
  value: name,
1214
1168
  "data-testid": "spacePlugin.renameObject.input",
1215
1169
  onChange: ({ target: { value } }) => setName(value),
1216
1170
  onKeyDown: ({ key }) => key === "Enter" && doneButton.current?.click()
1217
- }))), /* @__PURE__ */ React17.createElement(Button5, {
1171
+ }))), /* @__PURE__ */ React16.createElement(Button5, {
1218
1172
  ref: doneButton,
1219
1173
  classNames: "self-stretch",
1220
1174
  onClick: handleDone
@@ -1224,18 +1178,18 @@ var PopoverRenameObject = ({ object: obj }) => {
1224
1178
  };
1225
1179
 
1226
1180
  // packages/plugins/plugin-space/src/components/PopoverRenameSpace.tsx
1227
- import React18, { useCallback as useCallback11, useRef as useRef5, useState as useState8 } from "react";
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";
1181
+ import React17, { useCallback as useCallback11, useRef as useRef5, useState as useState8 } from "react";
1182
+ import { createIntent as createIntent7, LayoutAction as LayoutAction6, useIntentDispatcher as useIntentDispatcher7 } from "@dxos/app-framework";
1183
+ import { Button as Button6, Input as Input4, Popover, useTranslation as useTranslation15 } from "@dxos/react-ui";
1230
1184
  var POPOVER_RENAME_SPACE = `${SPACE_PLUGIN}/PopoverRenameSpace`;
1231
1185
  var PopoverRenameSpace = ({ space }) => {
1232
- const { t } = useTranslation16(SPACE_PLUGIN);
1186
+ const { t } = useTranslation15(SPACE_PLUGIN);
1233
1187
  const doneButton = useRef5(null);
1234
1188
  const [name, setName] = useState8(space.properties.name ?? "");
1235
- const { dispatchPromise: dispatch } = useIntentDispatcher8();
1189
+ const { dispatchPromise: dispatch } = useIntentDispatcher7();
1236
1190
  const handleDone = useCallback11(() => {
1237
1191
  space.properties.name = name;
1238
- void dispatch(createIntent8(LayoutAction7.UpdatePopover, {
1192
+ void dispatch(createIntent7(LayoutAction6.UpdatePopover, {
1239
1193
  part: "popover",
1240
1194
  options: {
1241
1195
  variant: "react",
@@ -1247,24 +1201,24 @@ var PopoverRenameSpace = ({ space }) => {
1247
1201
  space,
1248
1202
  name
1249
1203
  ]);
1250
- return /* @__PURE__ */ React18.createElement("div", {
1204
+ return /* @__PURE__ */ React17.createElement("div", {
1251
1205
  role: "none",
1252
1206
  className: "p-1 flex gap-2"
1253
- }, /* @__PURE__ */ React18.createElement("div", {
1207
+ }, /* @__PURE__ */ React17.createElement("div", {
1254
1208
  role: "none",
1255
1209
  className: "flex-1"
1256
- }, /* @__PURE__ */ React18.createElement(Input4.Root, null, /* @__PURE__ */ React18.createElement(Input4.Label, {
1210
+ }, /* @__PURE__ */ React17.createElement(Input4.Root, null, /* @__PURE__ */ React17.createElement(Input4.Label, {
1257
1211
  srOnly: true
1258
- }, t("space name label")), /* @__PURE__ */ React18.createElement(Input4.TextInput, {
1212
+ }, t("space name label")), /* @__PURE__ */ React17.createElement(Input4.TextInput, {
1259
1213
  defaultValue: space.properties.name ?? "",
1260
1214
  placeholder: t("unnamed space label"),
1261
1215
  onChange: ({ target: { value } }) => setName(value),
1262
1216
  // TODO(wittjosiah): Ideally this should access the popover context to close the popover.
1263
1217
  // Currently this is not possible because Radix does not expose the popover context.
1264
1218
  onKeyDown: ({ key }) => key === "Enter" && doneButton.current?.click()
1265
- }))), /* @__PURE__ */ React18.createElement(Popover.Close, {
1219
+ }))), /* @__PURE__ */ React17.createElement(Popover.Close, {
1266
1220
  asChild: true
1267
- }, /* @__PURE__ */ React18.createElement(Button6, {
1221
+ }, /* @__PURE__ */ React17.createElement(Button6, {
1268
1222
  ref: doneButton,
1269
1223
  classNames: "self-stretch",
1270
1224
  onClick: handleDone
@@ -1274,8 +1228,8 @@ var PopoverRenameSpace = ({ space }) => {
1274
1228
  };
1275
1229
 
1276
1230
  // packages/plugins/plugin-space/src/components/SchemaContainer.tsx
1277
- import React19, { useState as useState9, useEffect as useEffect4 } from "react";
1278
- import { useTranslation as useTranslation17 } from "@dxos/react-ui";
1231
+ import React18, { useState as useState9, useEffect as useEffect4 } from "react";
1232
+ import { useTranslation as useTranslation16 } from "@dxos/react-ui";
1279
1233
  import { controlItemClasses, ControlPage as ControlPage2, ControlSection as ControlSection2 } from "@dxos/react-ui-form";
1280
1234
  import { StackItem as StackItem3 } from "@dxos/react-ui-stack";
1281
1235
  var useQuerySpaceSchemas = (space) => {
@@ -1292,31 +1246,31 @@ var useQuerySpaceSchemas = (space) => {
1292
1246
  return schemas;
1293
1247
  };
1294
1248
  var SchemaContainer = ({ space }) => {
1295
- const { t } = useTranslation17(SPACE_PLUGIN);
1249
+ const { t } = useTranslation16(SPACE_PLUGIN);
1296
1250
  const schemas = useQuerySpaceSchemas(space);
1297
- return /* @__PURE__ */ React19.createElement(StackItem3.Content, {
1251
+ return /* @__PURE__ */ React18.createElement(StackItem3.Content, {
1298
1252
  classNames: "block overflow-y-auto"
1299
- }, /* @__PURE__ */ React19.createElement(ControlPage2, null, /* @__PURE__ */ React19.createElement(ControlSection2, {
1253
+ }, /* @__PURE__ */ React18.createElement(ControlPage2, null, /* @__PURE__ */ React18.createElement(ControlSection2, {
1300
1254
  title: t("schema verbose label"),
1301
1255
  description: t("schema description")
1302
- }, /* @__PURE__ */ React19.createElement("div", {
1256
+ }, /* @__PURE__ */ React18.createElement("div", {
1303
1257
  role: "none",
1304
1258
  className: controlItemClasses
1305
- }, schemas.length === 0 && /* @__PURE__ */ React19.createElement("div", {
1259
+ }, schemas.length === 0 && /* @__PURE__ */ React18.createElement("div", {
1306
1260
  className: "text-center plb-4"
1307
- }, t("no schemas found message")), schemas.map((schema) => /* @__PURE__ */ React19.createElement("div", {
1261
+ }, t("no schemas found message")), schemas.map((schema) => /* @__PURE__ */ React18.createElement("div", {
1308
1262
  key: schema.id
1309
- }, /* @__PURE__ */ React19.createElement("div", null, schema.typename)))))));
1263
+ }, /* @__PURE__ */ React18.createElement("div", null, schema.typename)))))));
1310
1264
  };
1311
1265
 
1312
1266
  // packages/plugins/plugin-space/src/components/SpacePresence.tsx
1313
- import React20, { forwardRef, useCallback as useCallback12, useEffect as useEffect5, useState as useState10 } from "react";
1267
+ import React19, { forwardRef, useCallback as useCallback12, useEffect as useEffect5, useState as useState10 } from "react";
1314
1268
  import { useAppGraph as useAppGraph2, useCapability } from "@dxos/app-framework";
1315
1269
  import { generateName } from "@dxos/display-name";
1316
1270
  import { PublicKey, useClient as useClient5 } from "@dxos/react-client";
1317
1271
  import { getSpace as getSpace3, useMembers, fullyQualifiedId as fullyQualifiedId3 } from "@dxos/react-client/echo";
1318
1272
  import { useIdentity } from "@dxos/react-client/halo";
1319
- import { Avatar, Tooltip as Tooltip2, useTranslation as useTranslation18, List as List2, ListItem as ListItem2, useDefaultValue } from "@dxos/react-ui";
1273
+ import { Avatar, Tooltip as Tooltip2, Popover as Popover2, useTranslation as useTranslation17, List as List2, ListItem as ListItem2, useDefaultValue } from "@dxos/react-ui";
1320
1274
  import { AttentionGlyph, useAttended, useAttention } from "@dxos/react-ui-attention";
1321
1275
  import { ComplexMap, keyToFallback } from "@dxos/util";
1322
1276
  var REFRESH_INTERVAL = 5e3;
@@ -1352,7 +1306,7 @@ var SpacePresence = ({ object, spaceKey }) => {
1352
1306
  lastSeen
1353
1307
  };
1354
1308
  }).toSorted((a, b) => a.lastSeen - b.lastSeen);
1355
- return /* @__PURE__ */ React20.createElement(FullPresence, {
1309
+ return /* @__PURE__ */ React19.createElement(FullPresence, {
1356
1310
  members: membersForObject
1357
1311
  });
1358
1312
  };
@@ -1362,40 +1316,39 @@ var FullPresence = (props) => {
1362
1316
  if (members.length === 0) {
1363
1317
  return null;
1364
1318
  }
1365
- return /* @__PURE__ */ React20.createElement("div", {
1319
+ return /* @__PURE__ */ React19.createElement("div", {
1366
1320
  className: "dx-avatar-group",
1367
1321
  "data-testid": "spacePlugin.presence"
1368
- }, members.slice(0, 3).map((member, i) => /* @__PURE__ */ React20.createElement(Tooltip2.Root, {
1369
- key: member.identity.identityKey.toHex()
1370
- }, /* @__PURE__ */ React20.createElement(Tooltip2.Trigger, {
1322
+ }, members.slice(0, 3).map((member, i) => /* @__PURE__ */ React19.createElement(Tooltip2.Trigger, {
1323
+ key: member.identity.identityKey.toHex(),
1324
+ side: "bottom",
1325
+ content: getName(member.identity),
1371
1326
  className: "grid focus:outline-none"
1372
- }, /* @__PURE__ */ React20.createElement(PresenceAvatar, {
1327
+ }, /* @__PURE__ */ React19.createElement(PresenceAvatar, {
1373
1328
  identity: member.identity,
1374
1329
  match: member.currentlyAttended,
1375
1330
  index: members.length - i,
1376
1331
  onClick: () => onMemberClick?.(member),
1377
1332
  size
1378
- })), /* @__PURE__ */ React20.createElement(Tooltip2.Portal, null, /* @__PURE__ */ React20.createElement(Tooltip2.Content, {
1379
- side: "bottom"
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, {
1333
+ }))), members.length > 3 && /* @__PURE__ */ React19.createElement(Popover2.Root, null, /* @__PURE__ */ React19.createElement(Popover2.Trigger, {
1381
1334
  className: "grid focus:outline-none"
1382
- }, /* @__PURE__ */ React20.createElement(Avatar.Root, null, /* @__PURE__ */ React20.createElement(Avatar.Content, {
1335
+ }, /* @__PURE__ */ React19.createElement(Avatar.Root, null, /* @__PURE__ */ React19.createElement(Avatar.Content, {
1383
1336
  status: "inactive",
1384
1337
  style: {
1385
1338
  zIndex: members.length - 4
1386
1339
  },
1387
1340
  fallback: `+${members.length - 3}`,
1388
1341
  size
1389
- }))), /* @__PURE__ */ React20.createElement(Tooltip2.Portal, null, /* @__PURE__ */ React20.createElement(Tooltip2.Content, {
1342
+ }))), /* @__PURE__ */ React19.createElement(Popover2.Portal, null, /* @__PURE__ */ React19.createElement(Popover2.Content, {
1390
1343
  side: "bottom"
1391
- }, /* @__PURE__ */ React20.createElement(Tooltip2.Arrow, null), /* @__PURE__ */ React20.createElement(List2, {
1344
+ }, /* @__PURE__ */ React19.createElement(Popover2.Arrow, null), /* @__PURE__ */ React19.createElement(List2, {
1392
1345
  classNames: "max-h-56 overflow-y-auto"
1393
- }, members.map((member) => /* @__PURE__ */ React20.createElement(ListItem2.Root, {
1346
+ }, members.map((member) => /* @__PURE__ */ React19.createElement(ListItem2.Root, {
1394
1347
  key: member.identity.identityKey.toHex(),
1395
1348
  classNames: "flex gap-2 items-center cursor-pointer mbe-2",
1396
1349
  onClick: () => onMemberClick?.(member),
1397
1350
  "data-testid": "identity-list-item"
1398
- }, /* @__PURE__ */ React20.createElement(PresenceAvatar, {
1351
+ }, /* @__PURE__ */ React19.createElement(PresenceAvatar, {
1399
1352
  identity: member.identity,
1400
1353
  size,
1401
1354
  showName: true,
@@ -1405,7 +1358,7 @@ var FullPresence = (props) => {
1405
1358
  var PresenceAvatar = /* @__PURE__ */ forwardRef(({ identity, showName, match, index, onClick, size }, forwardedRef) => {
1406
1359
  const status = match ? "current" : "active";
1407
1360
  const fallbackValue = keyToFallback(identity.identityKey);
1408
- return /* @__PURE__ */ React20.createElement(Avatar.Root, null, /* @__PURE__ */ React20.createElement(Avatar.Content, {
1361
+ return /* @__PURE__ */ React19.createElement(Avatar.Root, null, /* @__PURE__ */ React19.createElement(Avatar.Content, {
1409
1362
  status,
1410
1363
  hue: identity.profile?.data?.hue || fallbackValue.hue,
1411
1364
  "data-testid": "spacePlugin.presence.member",
@@ -1419,7 +1372,7 @@ var PresenceAvatar = /* @__PURE__ */ forwardRef(({ identity, showName, match, in
1419
1372
  onClick,
1420
1373
  fallback: identity.profile?.data?.emoji || fallbackValue.emoji,
1421
1374
  ref: forwardedRef
1422
- }), /* @__PURE__ */ React20.createElement(Avatar.Label, {
1375
+ }), /* @__PURE__ */ React19.createElement(Avatar.Label, {
1423
1376
  classNames: showName ? "text-sm truncate pli-2" : "sr-only"
1424
1377
  }, getName(identity)));
1425
1378
  });
@@ -1447,61 +1400,61 @@ var SmallPresenceLive = ({ id, open, viewers }) => {
1447
1400
  }, [
1448
1401
  viewers
1449
1402
  ]);
1450
- return /* @__PURE__ */ React20.createElement(SmallPresence, {
1403
+ return /* @__PURE__ */ React19.createElement(SmallPresence, {
1451
1404
  count: activeViewers.length,
1452
1405
  attended: isAttended,
1453
1406
  containsAttended
1454
1407
  });
1455
1408
  };
1456
1409
  var SmallPresence = ({ count = 0, attended, containsAttended }) => {
1457
- const { t } = useTranslation18(SPACE_PLUGIN);
1458
- return /* @__PURE__ */ React20.createElement(Tooltip2.Root, null, /* @__PURE__ */ React20.createElement(Tooltip2.Trigger, {
1459
- asChild: true
1460
- }, /* @__PURE__ */ React20.createElement(AttentionGlyph, {
1410
+ const { t } = useTranslation17(SPACE_PLUGIN);
1411
+ return /* @__PURE__ */ React19.createElement(Tooltip2.Trigger, {
1412
+ asChild: true,
1413
+ content: t("presence label", {
1414
+ count
1415
+ }),
1416
+ side: "bottom"
1417
+ }, /* @__PURE__ */ React19.createElement(AttentionGlyph, {
1461
1418
  attended,
1462
1419
  containsAttended,
1463
1420
  presence: count > 1 ? "many" : count === 1 ? "one" : "none",
1464
1421
  classNames: "self-center mie-1"
1465
- })), /* @__PURE__ */ React20.createElement(Tooltip2.Portal, null, /* @__PURE__ */ React20.createElement(Tooltip2.Content, {
1466
- side: "bottom"
1467
- }, /* @__PURE__ */ React20.createElement("span", null, t("presence label", {
1468
- count
1469
- })), /* @__PURE__ */ React20.createElement(Tooltip2.Arrow, null))));
1422
+ }));
1470
1423
  };
1471
1424
 
1472
1425
  // packages/plugins/plugin-space/src/components/SpacePluginSettings.tsx
1473
- import React21 from "react";
1474
- import { createIntent as createIntent9, useIntentDispatcher as useIntentDispatcher9 } from "@dxos/app-framework";
1426
+ import React20 from "react";
1427
+ import { createIntent as createIntent8, useIntentDispatcher as useIntentDispatcher8 } from "@dxos/app-framework";
1475
1428
  import { useClient as useClient6 } from "@dxos/react-client";
1476
1429
  import { useSpaces as useSpaces2 } from "@dxos/react-client/echo";
1477
- import { Input as Input5, toLocalizedString as toLocalizedString3, useTranslation as useTranslation19, List as List3, ListItem as ListItem3, Button as Button7 } from "@dxos/react-ui";
1430
+ import { Input as Input5, toLocalizedString as toLocalizedString3, useTranslation as useTranslation18, List as List3, ListItem as ListItem3, Button as Button7 } from "@dxos/react-ui";
1478
1431
  import { DeprecatedFormContainer, DeprecatedFormInput } from "@dxos/react-ui-form";
1479
1432
  var SpacePluginSettings = ({ settings }) => {
1480
- const { t } = useTranslation19(SPACE_PLUGIN);
1481
- const { dispatchPromise: dispatch } = useIntentDispatcher9();
1433
+ const { t } = useTranslation18(SPACE_PLUGIN);
1434
+ const { dispatchPromise: dispatch } = useIntentDispatcher8();
1482
1435
  const client = useClient6();
1483
1436
  const spaces = useSpaces2({
1484
1437
  all: settings.showHidden
1485
1438
  });
1486
- return /* @__PURE__ */ React21.createElement(DeprecatedFormContainer, null, /* @__PURE__ */ React21.createElement(DeprecatedFormInput, {
1439
+ return /* @__PURE__ */ React20.createElement(DeprecatedFormContainer, null, /* @__PURE__ */ React20.createElement(DeprecatedFormInput, {
1487
1440
  label: t("show hidden spaces label")
1488
- }, /* @__PURE__ */ React21.createElement(Input5.Switch, {
1441
+ }, /* @__PURE__ */ React20.createElement(Input5.Switch, {
1489
1442
  checked: settings.showHidden,
1490
1443
  onCheckedChange: (checked) => settings.showHidden = !!checked
1491
- })), /* @__PURE__ */ React21.createElement("div", {
1444
+ })), /* @__PURE__ */ React20.createElement("div", {
1492
1445
  role: "none"
1493
- }, /* @__PURE__ */ React21.createElement("h2", {
1446
+ }, /* @__PURE__ */ React20.createElement("h2", {
1494
1447
  className: "text-xl my-4"
1495
- }, "Space Settings"), /* @__PURE__ */ React21.createElement(List3, {
1448
+ }, "Space Settings"), /* @__PURE__ */ React20.createElement(List3, {
1496
1449
  classNames: "max-w-md mx-auto"
1497
- }, spaces.map((space) => /* @__PURE__ */ React21.createElement(ListItem3.Root, {
1450
+ }, spaces.map((space) => /* @__PURE__ */ React20.createElement(ListItem3.Root, {
1498
1451
  key: space.id
1499
- }, /* @__PURE__ */ React21.createElement(ListItem3.Heading, {
1452
+ }, /* @__PURE__ */ React20.createElement(ListItem3.Heading, {
1500
1453
  classNames: "flex flex-col grow truncate mbe-2"
1501
1454
  }, toLocalizedString3(getSpaceDisplayName(space, {
1502
1455
  personal: space === client.spaces.default
1503
- }), t)), /* @__PURE__ */ React21.createElement(ListItem3.Endcap, null, /* @__PURE__ */ React21.createElement(Button7, {
1504
- onClick: () => dispatch(createIntent9(SpaceAction.OpenSettings, {
1456
+ }), t)), /* @__PURE__ */ React20.createElement(ListItem3.Endcap, null, /* @__PURE__ */ React20.createElement(Button7, {
1457
+ onClick: () => dispatch(createIntent8(SpaceAction.OpenSettings, {
1505
1458
  space
1506
1459
  }))
1507
1460
  }, t("open space settings label"))))))));
@@ -1509,13 +1462,13 @@ var SpacePluginSettings = ({ settings }) => {
1509
1462
 
1510
1463
  // packages/plugins/plugin-space/src/components/SpaceSettings/SpaceSettingsContainer.tsx
1511
1464
  import { pipe as pipe2, Schema } from "effect";
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";
1465
+ import React21, { useCallback as useCallback13, useMemo as useMemo3, useState as useState11 } from "react";
1466
+ import { chain as chain2, createIntent as createIntent9, LayoutAction as LayoutAction7, useIntentDispatcher as useIntentDispatcher9 } from "@dxos/app-framework";
1514
1467
  import { log as log3 } from "@dxos/log";
1515
1468
  import { EdgeReplicationSetting } from "@dxos/protocols/proto/dxos/echo/metadata";
1516
1469
  import { useClient as useClient7 } from "@dxos/react-client";
1517
1470
  import { SpaceState as SpaceState2 } from "@dxos/react-client/echo";
1518
- import { Button as Button8, Input as Input6, useMulticastObservable, useTranslation as useTranslation20 } from "@dxos/react-ui";
1471
+ import { Button as Button8, Input as Input6, useMulticastObservable, useTranslation as useTranslation19 } from "@dxos/react-ui";
1519
1472
  import { Form as Form4, ControlItem, ControlItemInput as ControlItemInput2, ControlSection as ControlSection3, ControlPage as ControlPage3 } from "@dxos/react-ui-form";
1520
1473
  import { HuePicker, IconPicker } from "@dxos/react-ui-pickers";
1521
1474
  import { StackItem as StackItem4 } from "@dxos/react-ui-stack";
@@ -1526,8 +1479,8 @@ var FormSchema = SpaceForm.pipe(Schema.extend(Schema.Struct({
1526
1479
  })
1527
1480
  })));
1528
1481
  var SpaceSettingsContainer = ({ space }) => {
1529
- const { t } = useTranslation20(SPACE_PLUGIN);
1530
- const { dispatchPromise: dispatch } = useIntentDispatcher10();
1482
+ const { t } = useTranslation19(SPACE_PLUGIN);
1483
+ const { dispatchPromise: dispatch } = useIntentDispatcher9();
1531
1484
  const client = useClient7();
1532
1485
  const archived = useMulticastObservable(space.state) === SpaceState2.SPACE_INACTIVE;
1533
1486
  const [edgeReplication, setEdgeReplication] = useState11(space.internal.data.edgeReplication === EdgeReplicationSetting.ENABLED);
@@ -1557,14 +1510,14 @@ var SpaceSettingsContainer = ({ space }) => {
1557
1510
  space.properties.hue = properties.hue;
1558
1511
  }
1559
1512
  if (properties.archived && !archived) {
1560
- void dispatch(pipe2(createIntent10(SpaceAction.Close, {
1513
+ void dispatch(pipe2(createIntent9(SpaceAction.Close, {
1561
1514
  space
1562
- }), chain2(LayoutAction8.SwitchWorkspace, {
1515
+ }), chain2(LayoutAction7.SwitchWorkspace, {
1563
1516
  part: "workspace",
1564
1517
  subject: client.spaces.default.id
1565
1518
  })));
1566
1519
  } else if (!properties.archived && archived) {
1567
- void dispatch(createIntent10(SpaceAction.Open, {
1520
+ void dispatch(createIntent9(SpaceAction.Open, {
1568
1521
  space
1569
1522
  }));
1570
1523
  }
@@ -1592,10 +1545,10 @@ var SpaceSettingsContainer = ({ space }) => {
1592
1545
  onValueChange,
1593
1546
  type
1594
1547
  ]);
1595
- return /* @__PURE__ */ React22.createElement(ControlItemInput2, {
1548
+ return /* @__PURE__ */ React21.createElement(ControlItemInput2, {
1596
1549
  title: label,
1597
1550
  description: t("display name description")
1598
- }, /* @__PURE__ */ React22.createElement(Input6.TextInput, {
1551
+ }, /* @__PURE__ */ React21.createElement(Input6.TextInput, {
1599
1552
  value: getValue(),
1600
1553
  onChange: handleChange,
1601
1554
  placeholder: t("display name input placeholder"),
@@ -1611,10 +1564,10 @@ var SpaceSettingsContainer = ({ space }) => {
1611
1564
  onValueChange,
1612
1565
  type
1613
1566
  ]);
1614
- return /* @__PURE__ */ React22.createElement(ControlItem, {
1567
+ return /* @__PURE__ */ React21.createElement(ControlItem, {
1615
1568
  title: label,
1616
1569
  description: t("icon description")
1617
- }, /* @__PURE__ */ React22.createElement(IconPicker, {
1570
+ }, /* @__PURE__ */ React21.createElement(IconPicker, {
1618
1571
  value: getValue(),
1619
1572
  onChange: handleChange,
1620
1573
  onReset: handleEmojiReset,
@@ -1631,10 +1584,10 @@ var SpaceSettingsContainer = ({ space }) => {
1631
1584
  onValueChange,
1632
1585
  type
1633
1586
  ]);
1634
- return /* @__PURE__ */ React22.createElement(ControlItem, {
1587
+ return /* @__PURE__ */ React21.createElement(ControlItem, {
1635
1588
  title: label,
1636
1589
  description: t("hue description")
1637
- }, /* @__PURE__ */ React22.createElement(HuePicker, {
1590
+ }, /* @__PURE__ */ React21.createElement(HuePicker, {
1638
1591
  value: getValue(),
1639
1592
  onChange: handleChange,
1640
1593
  onReset: handleHueReset,
@@ -1646,10 +1599,10 @@ var SpaceSettingsContainer = ({ space }) => {
1646
1599
  onValueChange,
1647
1600
  type
1648
1601
  ]);
1649
- return /* @__PURE__ */ React22.createElement(ControlItemInput2, {
1602
+ return /* @__PURE__ */ React21.createElement(ControlItemInput2, {
1650
1603
  title: label,
1651
1604
  description: t("edge replication description")
1652
- }, /* @__PURE__ */ React22.createElement(Input6.Switch, {
1605
+ }, /* @__PURE__ */ React21.createElement(Input6.Switch, {
1653
1606
  checked: getValue(),
1654
1607
  onCheckedChange: handleChange,
1655
1608
  classNames: "justify-self-end"
@@ -1661,10 +1614,10 @@ var SpaceSettingsContainer = ({ space }) => {
1661
1614
  type,
1662
1615
  getValue
1663
1616
  ]);
1664
- return /* @__PURE__ */ React22.createElement(ControlItemInput2, {
1617
+ return /* @__PURE__ */ React21.createElement(ControlItemInput2, {
1665
1618
  title: label,
1666
1619
  description: t("archive space description")
1667
- }, /* @__PURE__ */ React22.createElement(Button8, {
1620
+ }, /* @__PURE__ */ React21.createElement(Button8, {
1668
1621
  disabled: space === client.spaces.default,
1669
1622
  onClick: handleChange
1670
1623
  }, getValue() ? t("unarchive space label") : t("archive space label")));
@@ -1673,16 +1626,16 @@ var SpaceSettingsContainer = ({ space }) => {
1673
1626
  t,
1674
1627
  space
1675
1628
  ]);
1676
- return /* @__PURE__ */ React22.createElement(StackItem4.Content, {
1629
+ return /* @__PURE__ */ React21.createElement(StackItem4.Content, {
1677
1630
  classNames: "block overflow-y-auto pli-2"
1678
- }, /* @__PURE__ */ React22.createElement(ControlPage3, null, /* @__PURE__ */ React22.createElement(ControlSection3, {
1631
+ }, /* @__PURE__ */ React21.createElement(ControlPage3, null, /* @__PURE__ */ React21.createElement(ControlSection3, {
1679
1632
  title: t("space properties settings verbose label", {
1680
1633
  ns: SPACE_PLUGIN
1681
1634
  }),
1682
1635
  description: t("space properties settings description", {
1683
1636
  ns: SPACE_PLUGIN
1684
1637
  })
1685
- }, /* @__PURE__ */ React22.createElement(Form4, {
1638
+ }, /* @__PURE__ */ React21.createElement(Form4, {
1686
1639
  schema: FormSchema,
1687
1640
  values,
1688
1641
  autoSave: true,
@@ -1693,13 +1646,13 @@ var SpaceSettingsContainer = ({ space }) => {
1693
1646
  };
1694
1647
 
1695
1648
  // packages/plugins/plugin-space/src/components/SyncStatus/InlineSyncStatus.tsx
1696
- import React23, { useEffect as useEffect6, useState as useState12 } from "react";
1649
+ import React22, { useEffect as useEffect6, useState as useState12 } from "react";
1697
1650
  import { useAppGraph as useAppGraph3 } from "@dxos/app-framework";
1698
1651
  import { EdgeStatus } from "@dxos/protocols/proto/dxos/client/services";
1699
1652
  import { EdgeReplicationSetting as EdgeReplicationSetting2 } from "@dxos/protocols/proto/dxos/echo/metadata";
1700
1653
  import { useClient as useClient8 } from "@dxos/react-client";
1701
1654
  import { useSpaceSyncState } from "@dxos/react-client/echo";
1702
- import { Tooltip as Tooltip3, useTranslation as useTranslation21 } from "@dxos/react-ui";
1655
+ import { Tooltip as Tooltip3, useTranslation as useTranslation20 } from "@dxos/react-ui";
1703
1656
  import { AttentionGlyph as AttentionGlyph2, useAttended as useAttended2, useAttention as useAttention2 } from "@dxos/react-ui-attention";
1704
1657
  var useEdgeStatus = () => {
1705
1658
  const [status, setStatus] = useState12(EdgeStatus.NOT_CONNECTED);
@@ -1714,7 +1667,7 @@ var useEdgeStatus = () => {
1714
1667
  return status;
1715
1668
  };
1716
1669
  var InlineSyncStatus = ({ space, open }) => {
1717
- const { t } = useTranslation21(SPACE_PLUGIN);
1670
+ const { t } = useTranslation20(SPACE_PLUGIN);
1718
1671
  const id = space.id;
1719
1672
  const { hasAttention, isAncestor, isRelated } = useAttention2(id);
1720
1673
  const isAttended = hasAttention || isAncestor || isRelated;
@@ -1727,25 +1680,24 @@ var InlineSyncStatus = ({ space, open }) => {
1727
1680
  const edgeSyncEnabled = space.internal.data.edgeReplication === EdgeReplicationSetting2.ENABLED;
1728
1681
  const syncState = useSpaceSyncState(space);
1729
1682
  const syncing = connectedToEdge && edgeSyncEnabled && syncState && syncState.missingOnLocal > 0;
1730
- return /* @__PURE__ */ React23.createElement(Tooltip3.Root, null, /* @__PURE__ */ React23.createElement(Tooltip3.Trigger, {
1731
- asChild: true
1732
- }, /* @__PURE__ */ React23.createElement(AttentionGlyph2, {
1683
+ return /* @__PURE__ */ React22.createElement(Tooltip3.Trigger, {
1684
+ asChild: true,
1685
+ content: t("syncing label"),
1686
+ side: "bottom"
1687
+ }, /* @__PURE__ */ React22.createElement(AttentionGlyph2, {
1733
1688
  syncing,
1734
1689
  attended: isAttended,
1735
1690
  containsAttended,
1736
1691
  classNames: "self-center mie-1"
1737
- })), /* @__PURE__ */ React23.createElement(Tooltip3.Portal, null, /* @__PURE__ */ React23.createElement(Tooltip3.Content, {
1738
- side: "bottom",
1739
- classNames: "z-[70]"
1740
- }, /* @__PURE__ */ React23.createElement("span", null, t("syncing label")), /* @__PURE__ */ React23.createElement(Tooltip3.Arrow, null))));
1692
+ }));
1741
1693
  };
1742
1694
 
1743
1695
  // packages/plugins/plugin-space/src/components/SyncStatus/SyncStatus.tsx
1744
- import React24, { useEffect as useEffect7, useState as useState13 } from "react";
1696
+ import React23, { useEffect as useEffect7, useState as useState13 } from "react";
1745
1697
  import { StatusBar } from "@dxos/plugin-status-bar";
1746
1698
  import { useClient as useClient9 } from "@dxos/react-client";
1747
1699
  import { getSyncSummary, useSyncState } from "@dxos/react-client/echo";
1748
- import { Icon as Icon5, useTranslation as useTranslation22 } from "@dxos/react-ui";
1700
+ import { Icon as Icon5, useTranslation as useTranslation21 } from "@dxos/react-ui";
1749
1701
 
1750
1702
  // packages/plugins/plugin-space/src/components/SyncStatus/save-tracker.ts
1751
1703
  import { Context } from "@dxos/context";
@@ -1849,13 +1801,13 @@ var SyncStatus = () => {
1849
1801
  setSaved(state2 === "saved");
1850
1802
  });
1851
1803
  }, []);
1852
- return /* @__PURE__ */ React24.createElement(SyncStatusIndicator, {
1804
+ return /* @__PURE__ */ React23.createElement(SyncStatusIndicator, {
1853
1805
  state,
1854
1806
  saved
1855
1807
  });
1856
1808
  };
1857
1809
  var SyncStatusIndicator = ({ state, saved }) => {
1858
- const { t } = useTranslation22(SPACE_PLUGIN);
1810
+ const { t } = useTranslation21(SPACE_PLUGIN);
1859
1811
  const summary = getSyncSummary(state);
1860
1812
  const offline = Object.values(state).length === 0;
1861
1813
  const needsToUpload = summary.differentDocuments > 0 || summary.missingOnRemote > 0;
@@ -1882,12 +1834,12 @@ var SyncStatusIndicator = ({ state, saved }) => {
1882
1834
  needsToDownload
1883
1835
  ]);
1884
1836
  const title = t(`${status} label`);
1885
- const icon = /* @__PURE__ */ React24.createElement(Icon5, {
1837
+ const icon = /* @__PURE__ */ React23.createElement(Icon5, {
1886
1838
  icon: getIcon(status),
1887
1839
  size: 4,
1888
1840
  classNames
1889
1841
  });
1890
- return /* @__PURE__ */ React24.createElement(StatusBar.Item, {
1842
+ return /* @__PURE__ */ React23.createElement(StatusBar.Item, {
1891
1843
  title
1892
1844
  }, icon);
1893
1845
  };
@@ -1906,8 +1858,6 @@ export {
1906
1858
  MenuFooter,
1907
1859
  ObjectSettingsContainer,
1908
1860
  PersistenceStatus,
1909
- POPOVER_ADD_SPACE,
1910
- PopoverAddSpace,
1911
1861
  POPOVER_RENAME_OBJECT,
1912
1862
  PopoverRenameObject,
1913
1863
  POPOVER_RENAME_SPACE,
@@ -1935,4 +1885,4 @@ export {
1935
1885
  SpaceState,
1936
1886
  SpacesReady
1937
1887
  };
1938
- //# sourceMappingURL=chunk-BU6F7ZU4.mjs.map
1888
+ //# sourceMappingURL=chunk-TB557OBD.mjs.map