@dxos/plugin-space 0.7.5-main.b19bfc8 → 0.7.5-main.d9d2d4e

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 (41) hide show
  1. package/dist/lib/browser/{chunk-S6B7627U.mjs → chunk-PCEP3KQY.mjs} +39 -34
  2. package/dist/lib/browser/chunk-PCEP3KQY.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +2 -1
  4. package/dist/lib/browser/index.mjs.map +3 -3
  5. package/dist/lib/browser/{intent-resolver-QVR4MSJV.mjs → intent-resolver-GPNAQ2SG.mjs} +2 -2
  6. package/dist/lib/browser/meta.json +1 -1
  7. package/dist/lib/browser/{react-root-IP2ZB245.mjs → react-root-4CCSD7TZ.mjs} +2 -2
  8. package/dist/lib/browser/{react-surface-BT3EHB6V.mjs → react-surface-FKMRI3WV.mjs} +2 -2
  9. package/dist/lib/node/{chunk-N2FS7PRA.cjs → chunk-QE4GVR6C.cjs} +14 -9
  10. package/dist/lib/node/chunk-QE4GVR6C.cjs.map +7 -0
  11. package/dist/lib/node/index.cjs +45 -44
  12. package/dist/lib/node/index.cjs.map +3 -3
  13. package/dist/lib/node/{intent-resolver-MLENGECT.cjs → intent-resolver-ICHHI6I6.cjs} +13 -13
  14. package/dist/lib/node/meta.json +1 -1
  15. package/dist/lib/node/{react-root-3OX5Z5CX.cjs → react-root-TCBTUOOJ.cjs} +6 -6
  16. package/dist/lib/node/{react-surface-5NYCMXSM.cjs → react-surface-JSCCIZS5.cjs} +38 -38
  17. package/dist/lib/node-esm/{chunk-DIKRH2IK.mjs → chunk-HJCEJNW3.mjs} +39 -34
  18. package/dist/lib/node-esm/chunk-HJCEJNW3.mjs.map +7 -0
  19. package/dist/lib/node-esm/index.mjs +2 -1
  20. package/dist/lib/node-esm/index.mjs.map +3 -3
  21. package/dist/lib/node-esm/{intent-resolver-BLW4RM6X.mjs → intent-resolver-VR42K5GE.mjs} +2 -2
  22. package/dist/lib/node-esm/meta.json +1 -1
  23. package/dist/lib/node-esm/{react-root-7XXGP56B.mjs → react-root-THJBSTQS.mjs} +2 -2
  24. package/dist/lib/node-esm/{react-surface-R2ECJSFB.mjs → react-surface-Z3BBQ5HX.mjs} +2 -2
  25. package/dist/types/src/SpacePlugin.d.ts.map +1 -1
  26. package/dist/types/src/components/JoinDialog.d.ts.map +1 -1
  27. package/package.json +39 -39
  28. package/src/SpacePlugin.tsx +1 -0
  29. package/src/components/JoinDialog.tsx +3 -1
  30. package/dist/lib/browser/chunk-S6B7627U.mjs.map +0 -7
  31. package/dist/lib/node/chunk-N2FS7PRA.cjs.map +0 -7
  32. package/dist/lib/node-esm/chunk-DIKRH2IK.mjs.map +0 -7
  33. /package/dist/lib/browser/{intent-resolver-QVR4MSJV.mjs.map → intent-resolver-GPNAQ2SG.mjs.map} +0 -0
  34. /package/dist/lib/browser/{react-root-IP2ZB245.mjs.map → react-root-4CCSD7TZ.mjs.map} +0 -0
  35. /package/dist/lib/browser/{react-surface-BT3EHB6V.mjs.map → react-surface-FKMRI3WV.mjs.map} +0 -0
  36. /package/dist/lib/node/{intent-resolver-MLENGECT.cjs.map → intent-resolver-ICHHI6I6.cjs.map} +0 -0
  37. /package/dist/lib/node/{react-root-3OX5Z5CX.cjs.map → react-root-TCBTUOOJ.cjs.map} +0 -0
  38. /package/dist/lib/node/{react-surface-5NYCMXSM.cjs.map → react-surface-JSCCIZS5.cjs.map} +0 -0
  39. /package/dist/lib/node-esm/{intent-resolver-BLW4RM6X.mjs.map → intent-resolver-VR42K5GE.mjs.map} +0 -0
  40. /package/dist/lib/node-esm/{react-root-7XXGP56B.mjs.map → react-root-THJBSTQS.mjs.map} +0 -0
  41. /package/dist/lib/node-esm/{react-surface-R2ECJSFB.mjs.map → react-surface-Z3BBQ5HX.mjs.map} +0 -0
@@ -26,12 +26,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var react_surface_5NYCMXSM_exports = {};
30
- __export(react_surface_5NYCMXSM_exports, {
29
+ var react_surface_JSCCIZS5_exports = {};
30
+ __export(react_surface_JSCCIZS5_exports, {
31
31
  default: () => react_surface_default
32
32
  });
33
- module.exports = __toCommonJS(react_surface_5NYCMXSM_exports);
34
- var import_chunk_N2FS7PRA = require("./chunk-N2FS7PRA.cjs");
33
+ module.exports = __toCommonJS(react_surface_JSCCIZS5_exports);
34
+ var import_chunk_QE4GVR6C = require("./chunk-QE4GVR6C.cjs");
35
35
  var import_chunk_YZKNRFHU = require("./chunk-YZKNRFHU.cjs");
36
36
  var import_chunk_OVGKWJOC = require("./chunk-OVGKWJOC.cjs");
37
37
  var import_chunk_WAJKBO3J = require("./chunk-WAJKBO3J.cjs");
@@ -62,7 +62,7 @@ var react_surface_default = ({ createInvitationUrl }) => (0, import_app_framewor
62
62
  role: "article",
63
63
  position: "fallback",
64
64
  filter: (data) => data.subject instanceof import_chunk_WAJKBO3J.CollectionType,
65
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.CollectionMain, {
65
+ component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.CollectionMain, {
66
66
  collection: data.subject
67
67
  })
68
68
  }),
@@ -71,7 +71,7 @@ var react_surface_default = ({ createInvitationUrl }) => (0, import_app_framewor
71
71
  // TODO(burdon): Add role name syntax to minimal plugin docs.
72
72
  role: "complementary--settings",
73
73
  filter: (data) => (0, import_echo.isSpace)(data.subject),
74
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.SpaceSettingsPanel, {
74
+ component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.SpaceSettingsPanel, {
75
75
  space: data.subject
76
76
  })
77
77
  }),
@@ -80,7 +80,7 @@ var react_surface_default = ({ createInvitationUrl }) => (0, import_app_framewor
80
80
  role: "complementary--settings",
81
81
  position: "hoist",
82
82
  filter: (data) => (0, import_echo.isEchoObject)(data.subject),
83
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.BaseObjectSettings, {
83
+ component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.BaseObjectSettings, {
84
84
  object: data.subject
85
85
  })
86
86
  }),
@@ -89,58 +89,58 @@ var react_surface_default = ({ createInvitationUrl }) => (0, import_app_framewor
89
89
  role: "complementary--settings",
90
90
  position: "fallback",
91
91
  filter: (data) => (0, import_echo.isEchoObject)(data.subject),
92
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.AdvancedObjectSettings, {
92
+ component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.AdvancedObjectSettings, {
93
93
  object: data.subject
94
94
  })
95
95
  }),
96
96
  (0, import_app_framework.createSurface)({
97
- id: import_chunk_N2FS7PRA.SPACE_SETTINGS_DIALOG,
97
+ id: import_chunk_QE4GVR6C.SPACE_SETTINGS_DIALOG,
98
98
  role: "dialog",
99
- filter: (data) => data.component === import_chunk_N2FS7PRA.SPACE_SETTINGS_DIALOG,
100
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.SpaceSettingsDialog, {
99
+ filter: (data) => data.component === import_chunk_QE4GVR6C.SPACE_SETTINGS_DIALOG,
100
+ component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.SpaceSettingsDialog, {
101
101
  ...data.props,
102
102
  createInvitationUrl
103
103
  })
104
104
  }),
105
105
  (0, import_app_framework.createSurface)({
106
- id: import_chunk_N2FS7PRA.JOIN_DIALOG,
106
+ id: import_chunk_QE4GVR6C.JOIN_DIALOG,
107
107
  role: "dialog",
108
- filter: (data) => data.component === import_chunk_N2FS7PRA.JOIN_DIALOG,
109
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.JoinDialog, data.props)
108
+ filter: (data) => data.component === import_chunk_QE4GVR6C.JOIN_DIALOG,
109
+ component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.JoinDialog, data.props)
110
110
  }),
111
111
  (0, import_app_framework.createSurface)({
112
- id: import_chunk_N2FS7PRA.CREATE_SPACE_DIALOG,
112
+ id: import_chunk_QE4GVR6C.CREATE_SPACE_DIALOG,
113
113
  role: "dialog",
114
- filter: (data) => data.component === import_chunk_N2FS7PRA.CREATE_SPACE_DIALOG,
115
- component: () => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.CreateSpaceDialog, null)
114
+ filter: (data) => data.component === import_chunk_QE4GVR6C.CREATE_SPACE_DIALOG,
115
+ component: () => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.CreateSpaceDialog, null)
116
116
  }),
117
117
  (0, import_app_framework.createSurface)({
118
- id: import_chunk_N2FS7PRA.CREATE_OBJECT_DIALOG,
118
+ id: import_chunk_QE4GVR6C.CREATE_OBJECT_DIALOG,
119
119
  role: "dialog",
120
- filter: (data) => data.component === import_chunk_N2FS7PRA.CREATE_OBJECT_DIALOG,
121
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.CreateObjectDialog, data.props)
120
+ filter: (data) => data.component === import_chunk_QE4GVR6C.CREATE_OBJECT_DIALOG,
121
+ component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.CreateObjectDialog, data.props)
122
122
  }),
123
123
  (0, import_app_framework.createSurface)({
124
- id: import_chunk_N2FS7PRA.POPOVER_RENAME_SPACE,
124
+ id: import_chunk_QE4GVR6C.POPOVER_RENAME_SPACE,
125
125
  role: "popover",
126
- filter: (data) => data.component === import_chunk_N2FS7PRA.POPOVER_RENAME_SPACE && (0, import_echo.isSpace)(data.props),
127
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.PopoverRenameSpace, {
126
+ filter: (data) => data.component === import_chunk_QE4GVR6C.POPOVER_RENAME_SPACE && (0, import_echo.isSpace)(data.props),
127
+ component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.PopoverRenameSpace, {
128
128
  space: data.props
129
129
  })
130
130
  }),
131
131
  (0, import_app_framework.createSurface)({
132
- id: import_chunk_N2FS7PRA.POPOVER_RENAME_OBJECT,
132
+ id: import_chunk_QE4GVR6C.POPOVER_RENAME_OBJECT,
133
133
  role: "popover",
134
- filter: (data) => data.component === import_chunk_N2FS7PRA.POPOVER_RENAME_OBJECT && (0, import_echo.isReactiveObject)(data.props),
135
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.PopoverRenameObject, {
134
+ filter: (data) => data.component === import_chunk_QE4GVR6C.POPOVER_RENAME_OBJECT && (0, import_echo.isReactiveObject)(data.props),
135
+ component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.PopoverRenameObject, {
136
136
  object: data.props
137
137
  })
138
138
  }),
139
139
  (0, import_app_framework.createSurface)({
140
- id: import_chunk_N2FS7PRA.POPOVER_ADD_SPACE,
140
+ id: import_chunk_QE4GVR6C.POPOVER_ADD_SPACE,
141
141
  role: "popover",
142
- filter: (data) => data.component === import_chunk_N2FS7PRA.POPOVER_ADD_SPACE,
143
- component: () => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.PopoverAddSpace, null)
142
+ filter: (data) => data.component === import_chunk_QE4GVR6C.POPOVER_ADD_SPACE,
143
+ component: () => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.PopoverAddSpace, null)
144
144
  }),
145
145
  (0, import_app_framework.createSurface)({
146
146
  id: `${import_chunk_WZR6OAN3.SPACE_PLUGIN}/navtree-presence`,
@@ -148,7 +148,7 @@ var react_surface_default = ({ createInvitationUrl }) => (0, import_app_framewor
148
148
  filter: (data) => typeof data.id === "string" && (0, import_echo.isEchoObject)(data.subject),
149
149
  component: ({ data }) => {
150
150
  const state = (0, import_app_framework.useCapability)(import_chunk_YZKNRFHU.SpaceCapabilities.MutableState);
151
- return /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.SmallPresenceLive, {
151
+ return /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.SmallPresenceLive, {
152
152
  id: data.id,
153
153
  open: data.open,
154
154
  viewers: state.viewersByObject[data.id]
@@ -161,7 +161,7 @@ var react_surface_default = ({ createInvitationUrl }) => (0, import_app_framewor
161
161
  role: "navtree-item-end",
162
162
  position: "fallback",
163
163
  filter: (data) => typeof data.id === "string",
164
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.SmallPresenceLive, {
164
+ component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.SmallPresenceLive, {
165
165
  id: data.id,
166
166
  open: data.open
167
167
  })
@@ -170,7 +170,7 @@ var react_surface_default = ({ createInvitationUrl }) => (0, import_app_framewor
170
170
  id: `${import_chunk_WZR6OAN3.SPACE_PLUGIN}/navtree-sync-status`,
171
171
  role: "navtree-item-end",
172
172
  filter: (data) => (0, import_echo.isSpace)(data.subject),
173
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.InlineSyncStatus, {
173
+ component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.InlineSyncStatus, {
174
174
  space: data.subject,
175
175
  open: data.open
176
176
  })
@@ -183,7 +183,7 @@ var react_surface_default = ({ createInvitationUrl }) => (0, import_app_framewor
183
183
  component: ({ data }) => {
184
184
  const space = (0, import_echo.isSpace)(data.subject) ? data.subject : (0, import_echo.getSpace)(data.subject);
185
185
  const object = (0, import_echo.isSpace)(data.subject) ? data.subject.state.get() === import_echo.SpaceState.SPACE_READY ? space?.properties[import_chunk_WAJKBO3J.CollectionType.typename]?.target : void 0 : data.subject;
186
- return object ? /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.SpacePresence, {
186
+ return object ? /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.SpacePresence, {
187
187
  object
188
188
  }) : null;
189
189
  }
@@ -192,7 +192,7 @@ var react_surface_default = ({ createInvitationUrl }) => (0, import_app_framewor
192
192
  id: `${import_chunk_WZR6OAN3.SPACE_PLUGIN}/collection-section`,
193
193
  role: "section",
194
194
  filter: (data) => data.subject instanceof import_chunk_WAJKBO3J.CollectionType,
195
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.CollectionSection, {
195
+ component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.CollectionSection, {
196
196
  collection: data.subject
197
197
  })
198
198
  }),
@@ -200,7 +200,7 @@ var react_surface_default = ({ createInvitationUrl }) => (0, import_app_framewor
200
200
  id: `${import_chunk_WZR6OAN3.SPACE_PLUGIN}/settings`,
201
201
  role: "article",
202
202
  filter: (data) => data.subject instanceof import_local_storage.SettingsStore && data.subject.prefix === import_chunk_WZR6OAN3.SPACE_PLUGIN,
203
- component: ({ data: { subject } }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.SpacePluginSettings, {
203
+ component: ({ data: { subject } }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.SpacePluginSettings, {
204
204
  settings: subject.value
205
205
  })
206
206
  }),
@@ -208,14 +208,14 @@ var react_surface_default = ({ createInvitationUrl }) => (0, import_app_framewor
208
208
  id: `${import_chunk_WZR6OAN3.SPACE_PLUGIN}/menu-footer`,
209
209
  role: "menu-footer",
210
210
  filter: (data) => (0, import_echo.isEchoObject)(data.subject),
211
- component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.MenuFooter, {
211
+ component: ({ data }) => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.MenuFooter, {
212
212
  object: data.subject
213
213
  })
214
214
  }),
215
215
  (0, import_app_framework.createSurface)({
216
216
  id: `${import_chunk_WZR6OAN3.SPACE_PLUGIN}/status`,
217
217
  role: "status",
218
- component: () => /* @__PURE__ */ import_react.default.createElement(import_chunk_N2FS7PRA.SyncStatus, null)
218
+ component: () => /* @__PURE__ */ import_react.default.createElement(import_chunk_QE4GVR6C.SyncStatus, null)
219
219
  })
220
220
  ]);
221
- //# sourceMappingURL=react-surface-5NYCMXSM.cjs.map
221
+ //# sourceMappingURL=react-surface-JSCCIZS5.cjs.map
@@ -419,9 +419,9 @@ import { lazy } from "@dxos/app-framework";
419
419
  var AppGraphBuilder = lazy(() => import("./app-graph-builder-TERVM2SL.mjs"));
420
420
  var AppGraphSerializer = lazy(() => import("./app-graph-serializer-GZRSWHEN.mjs"));
421
421
  var IdentityCreated = lazy(() => import("./identity-created-3CGEXNPO.mjs"));
422
- var IntentResolver = lazy(() => import("./intent-resolver-BLW4RM6X.mjs"));
423
- var ReactRoot = lazy(() => import("./react-root-7XXGP56B.mjs"));
424
- var ReactSurface = lazy(() => import("./react-surface-R2ECJSFB.mjs"));
422
+ var IntentResolver = lazy(() => import("./intent-resolver-VR42K5GE.mjs"));
423
+ var ReactRoot = lazy(() => import("./react-root-THJBSTQS.mjs"));
424
+ var ReactSurface = lazy(() => import("./react-surface-Z3BBQ5HX.mjs"));
425
425
  var Schema = lazy(() => import("./schema-LOR2EVGY.mjs"));
426
426
  var SpaceSettings = lazy(() => import("./settings-H6MXTEQM.mjs"));
427
427
  var SpaceState = lazy(() => import("./state-VYA6OFHD.mjs"));
@@ -605,7 +605,7 @@ import { createIntent as createIntent4, LayoutAction as LayoutAction4, useAppGra
605
605
  import { log } from "@dxos/log";
606
606
  import { ObservabilityAction } from "@dxos/plugin-observability/types";
607
607
  import { useClient as useClient3 } from "@dxos/react-client";
608
- import { Dialog as Dialog3 } from "@dxos/react-ui";
608
+ import { Dialog as Dialog3, useTranslation as useTranslation10 } from "@dxos/react-ui";
609
609
  import { JoinPanel } from "@dxos/shell/react";
610
610
  var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/JoinDialog.tsx";
611
611
  var JOIN_DIALOG = `${SPACE_PLUGIN}/JoinDialog`;
@@ -613,6 +613,7 @@ var JoinDialog = ({ navigableCollections, onDone, ...props }) => {
613
613
  const { dispatchPromise: dispatch } = useIntentDispatcher4();
614
614
  const client = useClient3();
615
615
  const { graph } = useAppGraph();
616
+ const { t } = useTranslation10(SPACE_PLUGIN);
616
617
  const handleDone = useCallback7(async (result) => {
617
618
  if (result?.spaceKey) {
618
619
  await Promise.all([
@@ -647,7 +648,7 @@ var JoinDialog = ({ navigableCollections, onDone, ...props }) => {
647
648
  if (!space) {
648
649
  log.warn("Space not found", result?.spaceKey, {
649
650
  F: __dxlog_file3,
650
- L: 56,
651
+ L: 57,
651
652
  S: void 0,
652
653
  C: (f, a) => f(...a)
653
654
  });
@@ -690,7 +691,11 @@ var JoinDialog = ({ navigableCollections, onDone, ...props }) => {
690
691
  client,
691
692
  graph
692
693
  ]);
693
- return /* @__PURE__ */ React10.createElement(Dialog3.Content, null, /* @__PURE__ */ React10.createElement(JoinPanel, {
694
+ return /* @__PURE__ */ React10.createElement(Dialog3.Content, null, /* @__PURE__ */ React10.createElement(Dialog3.Title, {
695
+ classNames: "sr-only"
696
+ }, t("join space label", {
697
+ ns: "os"
698
+ })), /* @__PURE__ */ React10.createElement(JoinPanel, {
694
699
  ...props,
695
700
  exitActionParent: /* @__PURE__ */ React10.createElement(Dialog3.Close, {
696
701
  asChild: true
@@ -707,9 +712,9 @@ import { Planet } from "@phosphor-icons/react";
707
712
  import React11 from "react";
708
713
  import { getSpace as getSpace2 } from "@dxos/client/echo";
709
714
  import { useClient as useClient4 } from "@dxos/react-client";
710
- import { DropdownMenu, toLocalizedString as toLocalizedString2, useTranslation as useTranslation10 } from "@dxos/react-ui";
715
+ import { DropdownMenu, toLocalizedString as toLocalizedString2, useTranslation as useTranslation11 } from "@dxos/react-ui";
711
716
  var MenuFooter = ({ object }) => {
712
- const { t } = useTranslation10(SPACE_PLUGIN);
717
+ const { t } = useTranslation11(SPACE_PLUGIN);
713
718
  const client = useClient4();
714
719
  const space = getSpace2(object);
715
720
  const spaceName = space ? getSpaceDisplayName(space, {
@@ -730,7 +735,7 @@ var MenuFooter = ({ object }) => {
730
735
  import { ArrowsCounterClockwise, CheckCircle as CheckCircle2, Warning } from "@phosphor-icons/react";
731
736
  import React12, { useEffect as useEffect2, useState as useState4 } from "react";
732
737
  import { debounce } from "@dxos/async";
733
- import { Tooltip, useTranslation as useTranslation11 } from "@dxos/react-ui";
738
+ import { Tooltip, useTranslation as useTranslation12 } from "@dxos/react-ui";
734
739
  import { getSize as getSize2, mx as mx4, staticPlaceholderText, warningText } from "@dxos/react-ui-theme";
735
740
  var Status;
736
741
  (function(Status2) {
@@ -739,7 +744,7 @@ var Status;
739
744
  Status2[Status2["ERROR"] = 2] = "ERROR";
740
745
  })(Status || (Status = {}));
741
746
  var PersistenceStatus = ({ db }) => {
742
- const { t } = useTranslation11(SPACE_PLUGIN);
747
+ const { t } = useTranslation12(SPACE_PLUGIN);
743
748
  const [displayMessage, setDisplayMessage] = useState4(false);
744
749
  const [status, naturalSetStatus] = useState4(0);
745
750
  const [prevStatus, setPrevStatus] = useState4(0);
@@ -789,10 +794,10 @@ var PersistenceStatus = ({ db }) => {
789
794
  // packages/plugins/plugin-space/src/components/PopoverAddSpace.tsx
790
795
  import React13 from "react";
791
796
  import { createIntent as createIntent5, LayoutAction as LayoutAction5, useIntentDispatcher as useIntentDispatcher5 } from "@dxos/app-framework";
792
- import { IconButton as IconButton3, useTranslation as useTranslation12 } from "@dxos/react-ui";
797
+ import { IconButton as IconButton3, useTranslation as useTranslation13 } from "@dxos/react-ui";
793
798
  var POPOVER_ADD_SPACE = `${SPACE_PLUGIN}/PopoverRenameSpace`;
794
799
  var PopoverAddSpace = () => {
795
- const { t } = useTranslation12(SPACE_PLUGIN);
800
+ const { t } = useTranslation13(SPACE_PLUGIN);
796
801
  const { dispatchPromise: dispatch } = useIntentDispatcher5();
797
802
  return /* @__PURE__ */ React13.createElement("div", {
798
803
  role: "none",
@@ -833,11 +838,11 @@ var PopoverAddSpace = () => {
833
838
  // packages/plugins/plugin-space/src/components/PopoverRenameObject.tsx
834
839
  import React14, { useCallback as useCallback8, useRef as useRef3, useState as useState5 } from "react";
835
840
  import { log as log2 } from "@dxos/log";
836
- import { Button as Button4, Input as Input2, Popover, useTranslation as useTranslation13 } from "@dxos/react-ui";
841
+ import { Button as Button4, Input as Input2, Popover, useTranslation as useTranslation14 } from "@dxos/react-ui";
837
842
  var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/PopoverRenameObject.tsx";
838
843
  var POPOVER_RENAME_OBJECT = `${SPACE_PLUGIN}/PopoverRenameObject`;
839
844
  var PopoverRenameObject = ({ object: obj }) => {
840
- const { t } = useTranslation13(SPACE_PLUGIN);
845
+ const { t } = useTranslation14(SPACE_PLUGIN);
841
846
  const doneButton = useRef3(null);
842
847
  const object = obj;
843
848
  const [name, setName] = useState5(object.name || object.title || "");
@@ -889,10 +894,10 @@ var PopoverRenameObject = ({ object: obj }) => {
889
894
 
890
895
  // packages/plugins/plugin-space/src/components/PopoverRenameSpace.tsx
891
896
  import React15, { useCallback as useCallback9, useRef as useRef4, useState as useState6 } from "react";
892
- import { Button as Button5, Input as Input3, Popover as Popover2, useTranslation as useTranslation14 } from "@dxos/react-ui";
897
+ import { Button as Button5, Input as Input3, Popover as Popover2, useTranslation as useTranslation15 } from "@dxos/react-ui";
893
898
  var POPOVER_RENAME_SPACE = `${SPACE_PLUGIN}/PopoverRenameSpace`;
894
899
  var PopoverRenameSpace = ({ space }) => {
895
- const { t } = useTranslation14(SPACE_PLUGIN);
900
+ const { t } = useTranslation15(SPACE_PLUGIN);
896
901
  const doneButton = useRef4(null);
897
902
  const [name, setName] = useState6(space.properties.name ?? "");
898
903
  const handleDone = useCallback9(() => {
@@ -930,7 +935,7 @@ var PopoverRenameSpace = ({ space }) => {
930
935
  // packages/plugins/plugin-space/src/components/ShareSpaceButton.tsx
931
936
  import React16 from "react";
932
937
  import { createIntent as createIntent6, useIntentDispatcher as useIntentDispatcher6 } from "@dxos/app-framework";
933
- import { IconButton as IconButton4, useTranslation as useTranslation15 } from "@dxos/react-ui";
938
+ import { IconButton as IconButton4, useTranslation as useTranslation16 } from "@dxos/react-ui";
934
939
  var ShareSpaceButton = ({ space }) => {
935
940
  const { dispatchPromise: dispatch } = useIntentDispatcher6();
936
941
  return /* @__PURE__ */ React16.createElement(ShareSpaceButtonImpl, {
@@ -940,7 +945,7 @@ var ShareSpaceButton = ({ space }) => {
940
945
  });
941
946
  };
942
947
  var ShareSpaceButtonImpl = ({ onClick }) => {
943
- const { t } = useTranslation15(SPACE_PLUGIN);
948
+ const { t } = useTranslation16(SPACE_PLUGIN);
944
949
  return /* @__PURE__ */ React16.createElement(IconButton4, {
945
950
  "data-testid": "spacePlugin.shareSpaceButton",
946
951
  icon: "ph--users--regular",
@@ -956,7 +961,7 @@ import { generateName } from "@dxos/display-name";
956
961
  import { PublicKey, useClient as useClient5 } from "@dxos/react-client";
957
962
  import { getSpace as getSpace3, useMembers, fullyQualifiedId as fullyQualifiedId2 } from "@dxos/react-client/echo";
958
963
  import { useIdentity } from "@dxos/react-client/halo";
959
- import { Avatar, AvatarGroup, AvatarGroupItem, Tooltip as Tooltip2, useTranslation as useTranslation16, List as List2, ListItem as ListItem2, useDefaultValue } from "@dxos/react-ui";
964
+ import { Avatar, AvatarGroup, AvatarGroupItem, Tooltip as Tooltip2, useTranslation as useTranslation17, List as List2, ListItem as ListItem2, useDefaultValue } from "@dxos/react-ui";
960
965
  import { AttentionGlyph, useAttended, useAttention } from "@dxos/react-ui-attention";
961
966
  import { ComplexMap, keyToFallback } from "@dxos/util";
962
967
 
@@ -1130,7 +1135,7 @@ var SmallPresenceLive = ({ id, open, viewers }) => {
1130
1135
  });
1131
1136
  };
1132
1137
  var SmallPresence = ({ count = 0, attended, containsAttended }) => {
1133
- const { t } = useTranslation16(SPACE_PLUGIN);
1138
+ const { t } = useTranslation17(SPACE_PLUGIN);
1134
1139
  return /* @__PURE__ */ React17.createElement(Tooltip2.Root, null, /* @__PURE__ */ React17.createElement(Tooltip2.Trigger, {
1135
1140
  asChild: true
1136
1141
  }, /* @__PURE__ */ React17.createElement(AttentionGlyph, {
@@ -1147,10 +1152,10 @@ var SmallPresence = ({ count = 0, attended, containsAttended }) => {
1147
1152
 
1148
1153
  // packages/plugins/plugin-space/src/components/SpacePluginSettings.tsx
1149
1154
  import React18 from "react";
1150
- import { Input as Input4, useTranslation as useTranslation17 } from "@dxos/react-ui";
1155
+ import { Input as Input4, useTranslation as useTranslation18 } from "@dxos/react-ui";
1151
1156
  import { DeprecatedFormContainer, DeprecatedFormInput } from "@dxos/react-ui-form";
1152
1157
  var SpacePluginSettings = ({ settings }) => {
1153
- const { t } = useTranslation17(SPACE_PLUGIN);
1158
+ const { t } = useTranslation18(SPACE_PLUGIN);
1154
1159
  return /* @__PURE__ */ React18.createElement(DeprecatedFormContainer, null, /* @__PURE__ */ React18.createElement(DeprecatedFormInput, {
1155
1160
  label: t("show hidden spaces label")
1156
1161
  }, /* @__PURE__ */ React18.createElement(Input4.Switch, {
@@ -1164,12 +1169,12 @@ import React19, { useCallback as useCallback11, useState as useState9 } from "re
1164
1169
  import { log as log3 } from "@dxos/log";
1165
1170
  import { EdgeReplicationSetting } from "@dxos/protocols/proto/dxos/echo/metadata";
1166
1171
  import { useClient as useClient6 } from "@dxos/react-client";
1167
- import { Input as Input5, Toolbar, useTranslation as useTranslation18 } from "@dxos/react-ui";
1172
+ import { Input as Input5, Toolbar, useTranslation as useTranslation19 } from "@dxos/react-ui";
1168
1173
  import { DeprecatedFormContainer as DeprecatedFormContainer2, DeprecatedFormInput as DeprecatedFormInput2 } from "@dxos/react-ui-form";
1169
1174
  import { HuePicker, IconPicker } from "@dxos/react-ui-pickers";
1170
1175
  var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/SpaceSettings/SpaceSettingsPanel.tsx";
1171
1176
  var SpaceSettingsPanel = ({ space }) => {
1172
- const { t } = useTranslation18(SPACE_PLUGIN);
1177
+ const { t } = useTranslation19(SPACE_PLUGIN);
1173
1178
  const client = useClient6();
1174
1179
  const edgeEnabled = Boolean(client.config.values.runtime?.client?.edgeFeatures?.echoReplicator);
1175
1180
  const [edgeReplication, setEdgeReplication] = useState9(space.internal.data.edgeReplication === EdgeReplicationSetting.ENABLED);
@@ -1223,12 +1228,12 @@ var SpaceSettingsPanel = ({ space }) => {
1223
1228
  import React20, { useMemo, useState as useState10 } from "react";
1224
1229
  import { Surface as Surface2, useCapabilities as useCapabilities2 } from "@dxos/app-framework";
1225
1230
  import { useClient as useClient7 } from "@dxos/react-client";
1226
- import { Button as Button6, Clipboard, Dialog as Dialog4, Icon as Icon4, toLocalizedString as toLocalizedString3, useTranslation as useTranslation19 } from "@dxos/react-ui";
1231
+ import { Button as Button6, Clipboard, Dialog as Dialog4, Icon as Icon4, toLocalizedString as toLocalizedString3, useTranslation as useTranslation20 } from "@dxos/react-ui";
1227
1232
  import { Tabs } from "@dxos/react-ui-tabs";
1228
1233
  import { SpacePanel } from "@dxos/shell/react";
1229
1234
  var SPACE_SETTINGS_DIALOG = `${SPACE_PLUGIN}/SpaceSettingsDialog`;
1230
1235
  var SpaceSettingsDialog = ({ space, target, createInvitationUrl, initialTab = "members", namesCache }) => {
1231
- const { t } = useTranslation19(SPACE_PLUGIN);
1236
+ const { t } = useTranslation20(SPACE_PLUGIN);
1232
1237
  const client = useClient7();
1233
1238
  const [tabsActivePart, setTabsActivePart] = useState10("list");
1234
1239
  const [selected, setSelected] = useState10(initialTab);
@@ -1328,7 +1333,7 @@ import { useAppGraph as useAppGraph3 } from "@dxos/app-framework";
1328
1333
  import { QueryEdgeStatusResponse } from "@dxos/protocols/proto/dxos/client/services";
1329
1334
  import { EdgeReplicationSetting as EdgeReplicationSetting2 } from "@dxos/protocols/proto/dxos/echo/metadata";
1330
1335
  import { useClient as useClient9 } from "@dxos/react-client";
1331
- import { Tooltip as Tooltip3, useTranslation as useTranslation20 } from "@dxos/react-ui";
1336
+ import { Tooltip as Tooltip3, useTranslation as useTranslation21 } from "@dxos/react-ui";
1332
1337
  import { AttentionGlyph as AttentionGlyph2, useAttended as useAttended2, useAttention as useAttention2 } from "@dxos/react-ui-attention";
1333
1338
 
1334
1339
  // packages/plugins/plugin-space/src/components/SyncStatus/sync-state.ts
@@ -1427,7 +1432,7 @@ var useEdgeStatus = () => {
1427
1432
  return status;
1428
1433
  };
1429
1434
  var InlineSyncStatus = ({ space, open }) => {
1430
- const { t } = useTranslation20(SPACE_PLUGIN);
1435
+ const { t } = useTranslation21(SPACE_PLUGIN);
1431
1436
  const id = space.id;
1432
1437
  const { hasAttention, isAncestor, isRelated } = useAttention2(id);
1433
1438
  const isAttended = hasAttention || isAncestor || isRelated;
@@ -1457,7 +1462,7 @@ var InlineSyncStatus = ({ space, open }) => {
1457
1462
  import React23, { useCallback as useCallback12, useEffect as useEffect8, useState as useState14 } from "react";
1458
1463
  import { StatusBar } from "@dxos/plugin-status-bar";
1459
1464
  import { useClient as useClient11 } from "@dxos/react-client";
1460
- import { Icon as Icon6, Input as Input6, Popover as Popover3, useTranslation as useTranslation22 } from "@dxos/react-ui";
1465
+ import { Icon as Icon6, Input as Input6, Popover as Popover3, useTranslation as useTranslation23 } from "@dxos/react-ui";
1461
1466
  import { SyntaxHighlighter } from "@dxos/react-ui-syntax-highlighter";
1462
1467
  import { mx as mx6 } from "@dxos/react-ui-theme";
1463
1468
 
@@ -1465,7 +1470,7 @@ import { mx as mx6 } from "@dxos/react-ui-theme";
1465
1470
  import React22, { useEffect as useEffect7, useState as useState13 } from "react";
1466
1471
  import { useClient as useClient10 } from "@dxos/react-client";
1467
1472
  import { useSpace } from "@dxos/react-client/echo";
1468
- import { Icon as Icon5, toLocalizedString as toLocalizedString4, useTranslation as useTranslation21 } from "@dxos/react-ui";
1473
+ import { Icon as Icon5, toLocalizedString as toLocalizedString4, useTranslation as useTranslation22 } from "@dxos/react-ui";
1469
1474
  import { mx as mx5 } from "@dxos/react-ui-theme";
1470
1475
  var SYNC_STALLED_TIMEOUT = 5e3;
1471
1476
  var styles = {
@@ -1497,7 +1502,7 @@ var useActive = (count) => {
1497
1502
  return active;
1498
1503
  };
1499
1504
  var SpaceRowContainer = ({ spaceId, state }) => {
1500
- const { t } = useTranslation21(SPACE_PLUGIN);
1505
+ const { t } = useTranslation22(SPACE_PLUGIN);
1501
1506
  const client = useClient10();
1502
1507
  const space = useSpace(spaceId);
1503
1508
  if (!space) {
@@ -1679,7 +1684,7 @@ var SyncStatus = () => {
1679
1684
  });
1680
1685
  };
1681
1686
  var SyncStatusIndicator = ({ state, saved }) => {
1682
- const { t } = useTranslation22(SPACE_PLUGIN);
1687
+ const { t } = useTranslation23(SPACE_PLUGIN);
1683
1688
  const summary = getSyncSummary(state);
1684
1689
  const offline = Object.values(state).length === 0;
1685
1690
  const needsToUpload = summary.differentDocuments > 0 || summary.missingOnRemote > 0;
@@ -1729,7 +1734,7 @@ var SyncStatusIndicator = ({ state, saved }) => {
1729
1734
  };
1730
1735
  var SyncStatusDetail = ({ classNames, state, summary, debug }) => {
1731
1736
  const [showAll, setShowAll] = useState14(false);
1732
- const { t } = useTranslation22(SPACE_PLUGIN);
1737
+ const { t } = useTranslation23(SPACE_PLUGIN);
1733
1738
  const entries = Object.entries(state).filter(([_, value]) => showAll || value.missingOnLocal + value.missingOnRemote > 0).toSorted(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
1734
1739
  const handleCheckedChange = useCallback12((state2) => setShowAll(state2), [
1735
1740
  setShowAll
@@ -1807,4 +1812,4 @@ export {
1807
1812
  SpaceState,
1808
1813
  SpacesReady
1809
1814
  };
1810
- //# sourceMappingURL=chunk-DIKRH2IK.mjs.map
1815
+ //# sourceMappingURL=chunk-HJCEJNW3.mjs.map