@dxos/plugin-space 0.8.2-main.12df754 → 0.8.2-main.2f9c567

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