@dxos/plugin-space 0.8.3 → 0.8.4-main.3a94e84

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 (228) hide show
  1. package/dist/lib/browser/CollectionMain-D2B75XBS.mjs +31 -0
  2. package/dist/lib/browser/CollectionMain-D2B75XBS.mjs.map +7 -0
  3. package/dist/lib/browser/ObjectDetailsPanel-YPTDQKMG.mjs +88 -0
  4. package/dist/lib/browser/ObjectDetailsPanel-YPTDQKMG.mjs.map +7 -0
  5. package/dist/lib/browser/{app-graph-builder-M2RH72VL.mjs → app-graph-builder-7CZZJS3S.mjs} +143 -27
  6. package/dist/lib/browser/app-graph-builder-7CZZJS3S.mjs.map +7 -0
  7. package/dist/lib/browser/{app-graph-serializer-F7ISRRBV.mjs → app-graph-serializer-H6AW7KGS.mjs} +13 -13
  8. package/dist/lib/browser/app-graph-serializer-H6AW7KGS.mjs.map +7 -0
  9. package/dist/lib/browser/{chunk-BXNL6SDI.mjs → chunk-CEFHNVU7.mjs} +4 -3
  10. package/dist/lib/browser/chunk-CEFHNVU7.mjs.map +7 -0
  11. package/dist/lib/browser/{chunk-PTKYMZWO.mjs → chunk-FBCGT5YY.mjs} +2 -2
  12. package/dist/lib/browser/{chunk-YMCZR6EZ.mjs → chunk-JS3MMC42.mjs} +4 -3
  13. package/dist/lib/browser/{chunk-YMCZR6EZ.mjs.map → chunk-JS3MMC42.mjs.map} +3 -3
  14. package/dist/lib/browser/{chunk-4ZKSFDXM.mjs → chunk-QACNNDOT.mjs} +73 -12
  15. package/dist/lib/browser/chunk-QACNNDOT.mjs.map +7 -0
  16. package/dist/lib/browser/{chunk-TW7O2EPP.mjs → chunk-SGTQ52SU.mjs} +59 -5
  17. package/dist/lib/browser/chunk-SGTQ52SU.mjs.map +7 -0
  18. package/dist/lib/browser/{chunk-NFUKCRGE.mjs → chunk-V7MJSSBQ.mjs} +392 -324
  19. package/dist/lib/browser/chunk-V7MJSSBQ.mjs.map +7 -0
  20. package/dist/lib/browser/{chunk-7Y4M7GXO.mjs → chunk-VLBRSGJ2.mjs} +4 -4
  21. package/dist/lib/browser/{chunk-V24VASAJ.mjs → chunk-XUYKJUU7.mjs} +128 -25
  22. package/dist/lib/browser/chunk-XUYKJUU7.mjs.map +7 -0
  23. package/dist/lib/browser/{identity-created-PI7TKANR.mjs → identity-created-23XJJV2N.mjs} +4 -4
  24. package/dist/lib/browser/identity-created-23XJJV2N.mjs.map +7 -0
  25. package/dist/lib/browser/index.mjs +105 -16
  26. package/dist/lib/browser/index.mjs.map +3 -3
  27. package/dist/lib/browser/{intent-resolver-RWU6ZE4H.mjs → intent-resolver-TIXVDYN7.mjs} +171 -21
  28. package/dist/lib/browser/intent-resolver-TIXVDYN7.mjs.map +7 -0
  29. package/dist/lib/browser/meta.json +1 -1
  30. package/dist/lib/browser/{react-root-QIKHSNT2.mjs → react-root-N2J7TDRX.mjs} +8 -8
  31. package/dist/lib/browser/{react-surface-W56UD53I.mjs → react-surface-TPNLWJJH.mjs} +42 -21
  32. package/dist/lib/browser/react-surface-TPNLWJJH.mjs.map +7 -0
  33. package/dist/lib/browser/{schema-defs-WREJNMIC.mjs → schema-defs-Z6FC4AHC.mjs} +4 -4
  34. package/dist/lib/browser/{schema-tools-ILTVSSS3.mjs → schema-tools-BNP4JTD7.mjs} +3 -3
  35. package/dist/lib/browser/{settings-K54STC5A.mjs → settings-4IMP5RYT.mjs} +4 -4
  36. package/dist/lib/browser/{spaces-ready-3PDRDHPC.mjs → spaces-ready-TOPG6IV4.mjs} +7 -7
  37. package/dist/lib/browser/{state-HRZ4VRXU.mjs → state-QYZAB45H.mjs} +4 -4
  38. package/dist/lib/browser/types/index.mjs +2 -2
  39. package/dist/lib/node-esm/CollectionMain-ZJIFCWKZ.mjs +32 -0
  40. package/dist/lib/node-esm/CollectionMain-ZJIFCWKZ.mjs.map +7 -0
  41. package/dist/lib/node-esm/ObjectDetailsPanel-QKZEDSZK.mjs +89 -0
  42. package/dist/lib/node-esm/ObjectDetailsPanel-QKZEDSZK.mjs.map +7 -0
  43. package/dist/lib/node-esm/{app-graph-builder-BCHVZ4OM.mjs → app-graph-builder-KGIGWC72.mjs} +143 -27
  44. package/dist/lib/node-esm/app-graph-builder-KGIGWC72.mjs.map +7 -0
  45. package/dist/lib/node-esm/{app-graph-serializer-TXRGGNP2.mjs → app-graph-serializer-2ICUGQQT.mjs} +13 -13
  46. package/dist/lib/node-esm/app-graph-serializer-2ICUGQQT.mjs.map +7 -0
  47. package/dist/lib/node-esm/{chunk-HO7AIKQS.mjs → chunk-4AOMYKDE.mjs} +128 -25
  48. package/dist/lib/node-esm/chunk-4AOMYKDE.mjs.map +7 -0
  49. package/dist/lib/node-esm/{chunk-3CP67AYY.mjs → chunk-5HHYE264.mjs} +4 -3
  50. package/dist/lib/node-esm/{chunk-3CP67AYY.mjs.map → chunk-5HHYE264.mjs.map} +3 -3
  51. package/dist/lib/node-esm/{chunk-BSLREHIX.mjs → chunk-5T3ZH23B.mjs} +4 -3
  52. package/dist/lib/node-esm/chunk-5T3ZH23B.mjs.map +7 -0
  53. package/dist/lib/node-esm/{chunk-LA6AVVH6.mjs → chunk-6X5DLJM5.mjs} +392 -324
  54. package/dist/lib/node-esm/chunk-6X5DLJM5.mjs.map +7 -0
  55. package/dist/lib/node-esm/{chunk-MSWEFAPD.mjs → chunk-HWNG4MEU.mjs} +2 -2
  56. package/dist/lib/node-esm/{chunk-D4QMPPS7.mjs → chunk-JH6F4C3I.mjs} +59 -5
  57. package/dist/lib/node-esm/chunk-JH6F4C3I.mjs.map +7 -0
  58. package/dist/lib/node-esm/{chunk-JBQKU4K5.mjs → chunk-P442DOQ3.mjs} +73 -12
  59. package/dist/lib/node-esm/chunk-P442DOQ3.mjs.map +7 -0
  60. package/dist/lib/node-esm/{chunk-GH2FGJXH.mjs → chunk-SSLBYZEY.mjs} +4 -4
  61. package/dist/lib/node-esm/{identity-created-35CTAQWI.mjs → identity-created-IJQO6GCR.mjs} +4 -4
  62. package/dist/lib/node-esm/identity-created-IJQO6GCR.mjs.map +7 -0
  63. package/dist/lib/node-esm/index.mjs +105 -16
  64. package/dist/lib/node-esm/index.mjs.map +3 -3
  65. package/dist/lib/node-esm/{intent-resolver-JO6L2VXC.mjs → intent-resolver-MHGHRGDT.mjs} +171 -21
  66. package/dist/lib/node-esm/intent-resolver-MHGHRGDT.mjs.map +7 -0
  67. package/dist/lib/node-esm/meta.json +1 -1
  68. package/dist/lib/node-esm/{react-root-YFGL3B4J.mjs → react-root-KW3TGJGY.mjs} +8 -8
  69. package/dist/lib/node-esm/{react-surface-CVAPDLEZ.mjs → react-surface-UUIUUD6P.mjs} +42 -21
  70. package/dist/lib/node-esm/react-surface-UUIUUD6P.mjs.map +7 -0
  71. package/dist/lib/node-esm/{schema-defs-4MEJETVX.mjs → schema-defs-WHJM7UZE.mjs} +4 -4
  72. package/dist/lib/node-esm/{schema-tools-SRLCRZ3B.mjs → schema-tools-KWW5PTML.mjs} +3 -3
  73. package/dist/lib/node-esm/{settings-TD76LTQS.mjs → settings-SAOBPND3.mjs} +4 -4
  74. package/dist/lib/node-esm/{spaces-ready-FJMGPAVV.mjs → spaces-ready-HIUKNDZK.mjs} +7 -7
  75. package/dist/lib/node-esm/{state-XQNDCN37.mjs → state-ZVEHQ4BJ.mjs} +4 -4
  76. package/dist/lib/node-esm/types/index.mjs +2 -2
  77. package/dist/types/src/SpacePlugin.d.ts.map +1 -1
  78. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  79. package/dist/types/src/capabilities/app-graph-serializer.d.ts.map +1 -1
  80. package/dist/types/src/capabilities/capabilities.d.ts +9 -3
  81. package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
  82. package/dist/types/src/capabilities/identity-created.d.ts.map +1 -1
  83. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  84. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  85. package/dist/types/src/components/AwaitingObject.d.ts.map +1 -1
  86. package/dist/types/src/components/CollectionMain.d.ts +1 -0
  87. package/dist/types/src/components/CollectionMain.d.ts.map +1 -1
  88. package/dist/types/src/components/CreateDialog/CreateObjectDialog.d.ts +3 -2
  89. package/dist/types/src/components/CreateDialog/CreateObjectDialog.d.ts.map +1 -1
  90. package/dist/types/src/components/CreateDialog/CreateObjectDialog.stories.d.ts +1 -1
  91. package/dist/types/src/components/CreateDialog/CreateObjectDialog.stories.d.ts.map +1 -1
  92. package/dist/types/src/components/MembersContainer.d.ts.map +1 -1
  93. package/dist/types/src/components/MembersContainer.stories.d.ts +1 -1
  94. package/dist/types/src/components/MembersContainer.stories.d.ts.map +1 -1
  95. package/dist/types/src/components/MenuFooter.d.ts.map +1 -1
  96. package/dist/types/src/components/ObjectDetailsPanel.d.ts +9 -0
  97. package/dist/types/src/components/ObjectDetailsPanel.d.ts.map +1 -0
  98. package/dist/types/src/components/PersistenceStatus.d.ts.map +1 -1
  99. package/dist/types/src/components/SpacePresence.stories.d.ts +1 -1
  100. package/dist/types/src/components/SpacePresence.stories.d.ts.map +1 -1
  101. package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.stories.d.ts +1 -1
  102. package/dist/types/src/components/SpaceSettings/SpaceSettingsContainer.stories.d.ts.map +1 -1
  103. package/dist/types/src/components/SyncStatus/SyncStatus.d.ts +1 -1
  104. package/dist/types/src/components/SyncStatus/SyncStatus.stories.d.ts +1 -1
  105. package/dist/types/src/components/SyncStatus/SyncStatus.stories.d.ts.map +1 -1
  106. package/dist/types/src/components/SyncStatus/status.d.ts +5 -5
  107. package/dist/types/src/components/ViewEditor.d.ts +8 -0
  108. package/dist/types/src/components/ViewEditor.d.ts.map +1 -0
  109. package/dist/types/src/components/index.d.ts +8 -1
  110. package/dist/types/src/components/index.d.ts.map +1 -1
  111. package/dist/types/src/events.d.ts +1 -0
  112. package/dist/types/src/events.d.ts.map +1 -1
  113. package/dist/types/src/translations.d.ts +212 -410
  114. package/dist/types/src/translations.d.ts.map +1 -1
  115. package/dist/types/src/types/types.d.ts +82 -2
  116. package/dist/types/src/types/types.d.ts.map +1 -1
  117. package/dist/types/src/util.d.ts +27 -2
  118. package/dist/types/src/util.d.ts.map +1 -1
  119. package/dist/types/tsconfig.tsbuildinfo +1 -1
  120. package/package.json +50 -52
  121. package/src/SpacePlugin.ts +90 -7
  122. package/src/capabilities/app-graph-builder.ts +166 -7
  123. package/src/capabilities/app-graph-serializer.ts +6 -6
  124. package/src/capabilities/capabilities.ts +8 -3
  125. package/src/capabilities/identity-created.ts +2 -4
  126. package/src/capabilities/intent-resolver.ts +117 -8
  127. package/src/capabilities/react-surface.tsx +50 -13
  128. package/src/components/AwaitingObject.tsx +4 -6
  129. package/src/components/CollectionMain.tsx +2 -0
  130. package/src/components/CreateDialog/CreateObjectDialog.stories.tsx +4 -4
  131. package/src/components/CreateDialog/CreateObjectDialog.tsx +29 -25
  132. package/src/components/MembersContainer.stories.tsx +4 -4
  133. package/src/components/MembersContainer.tsx +6 -5
  134. package/src/components/MenuFooter.tsx +2 -3
  135. package/src/components/ObjectDetailsPanel.tsx +77 -0
  136. package/src/components/PersistenceStatus.tsx +5 -6
  137. package/src/components/PopoverRenameObject.tsx +2 -2
  138. package/src/components/SpacePresence.stories.tsx +2 -2
  139. package/src/components/SpaceSettings/SpaceSettingsContainer.stories.tsx +2 -2
  140. package/src/components/SyncStatus/SyncStatus.stories.tsx +8 -15
  141. package/src/components/SyncStatus/SyncStatus.tsx +1 -1
  142. package/src/components/SyncStatus/save-tracker.ts +3 -3
  143. package/src/components/SyncStatus/status.ts +4 -4
  144. package/src/components/ViewEditor.tsx +64 -0
  145. package/src/components/index.ts +6 -1
  146. package/src/events.ts +1 -0
  147. package/src/translations.ts +71 -7
  148. package/src/types/types.ts +56 -3
  149. package/src/util.tsx +116 -21
  150. package/dist/lib/browser/app-graph-builder-M2RH72VL.mjs.map +0 -7
  151. package/dist/lib/browser/app-graph-serializer-F7ISRRBV.mjs.map +0 -7
  152. package/dist/lib/browser/chunk-4ZKSFDXM.mjs.map +0 -7
  153. package/dist/lib/browser/chunk-BXNL6SDI.mjs.map +0 -7
  154. package/dist/lib/browser/chunk-NFUKCRGE.mjs.map +0 -7
  155. package/dist/lib/browser/chunk-TW7O2EPP.mjs.map +0 -7
  156. package/dist/lib/browser/chunk-V24VASAJ.mjs.map +0 -7
  157. package/dist/lib/browser/identity-created-PI7TKANR.mjs.map +0 -7
  158. package/dist/lib/browser/intent-resolver-RWU6ZE4H.mjs.map +0 -7
  159. package/dist/lib/browser/react-surface-W56UD53I.mjs.map +0 -7
  160. package/dist/lib/node/app-graph-builder-6LK5HLLE.cjs +0 -364
  161. package/dist/lib/node/app-graph-builder-6LK5HLLE.cjs.map +0 -7
  162. package/dist/lib/node/app-graph-serializer-HKHBNHA3.cjs +0 -89
  163. package/dist/lib/node/app-graph-serializer-HKHBNHA3.cjs.map +0 -7
  164. package/dist/lib/node/chunk-3X4EA4XL.cjs +0 -37
  165. package/dist/lib/node/chunk-3X4EA4XL.cjs.map +0 -7
  166. package/dist/lib/node/chunk-5WLAXYE3.cjs +0 -125
  167. package/dist/lib/node/chunk-5WLAXYE3.cjs.map +0 -7
  168. package/dist/lib/node/chunk-6P2DB4QQ.cjs +0 -36
  169. package/dist/lib/node/chunk-6P2DB4QQ.cjs.map +0 -7
  170. package/dist/lib/node/chunk-DOC5XEZ4.cjs +0 -184
  171. package/dist/lib/node/chunk-DOC5XEZ4.cjs.map +0 -7
  172. package/dist/lib/node/chunk-NCHF433F.cjs +0 -1921
  173. package/dist/lib/node/chunk-NCHF433F.cjs.map +0 -7
  174. package/dist/lib/node/chunk-NL5Y4EDX.cjs +0 -38
  175. package/dist/lib/node/chunk-NL5Y4EDX.cjs.map +0 -7
  176. package/dist/lib/node/chunk-ULJZPATP.cjs +0 -312
  177. package/dist/lib/node/chunk-ULJZPATP.cjs.map +0 -7
  178. package/dist/lib/node/chunk-XHWVT7LW.cjs +0 -572
  179. package/dist/lib/node/chunk-XHWVT7LW.cjs.map +0 -7
  180. package/dist/lib/node/identity-created-FF4WZ2WY.cjs +0 -42
  181. package/dist/lib/node/identity-created-FF4WZ2WY.cjs.map +0 -7
  182. package/dist/lib/node/index.cjs +0 -278
  183. package/dist/lib/node/index.cjs.map +0 -7
  184. package/dist/lib/node/intent-resolver-AV4CMM3Z.cjs +0 -609
  185. package/dist/lib/node/intent-resolver-AV4CMM3Z.cjs.map +0 -7
  186. package/dist/lib/node/meta.json +0 -1
  187. package/dist/lib/node/react-root-RQUU3A45.cjs +0 -51
  188. package/dist/lib/node/react-root-RQUU3A45.cjs.map +0 -7
  189. package/dist/lib/node/react-surface-AZFJLE72.cjs +0 -351
  190. package/dist/lib/node/react-surface-AZFJLE72.cjs.map +0 -7
  191. package/dist/lib/node/schema-defs-OB2X2HBH.cjs +0 -42
  192. package/dist/lib/node/schema-defs-OB2X2HBH.cjs.map +0 -7
  193. package/dist/lib/node/schema-tools-IYREN4IH.cjs +0 -147
  194. package/dist/lib/node/schema-tools-IYREN4IH.cjs.map +0 -7
  195. package/dist/lib/node/settings-P2EQ7VKQ.cjs +0 -38
  196. package/dist/lib/node/settings-P2EQ7VKQ.cjs.map +0 -7
  197. package/dist/lib/node/spaces-ready-DXPOHYV7.cjs +0 -210
  198. package/dist/lib/node/spaces-ready-DXPOHYV7.cjs.map +0 -7
  199. package/dist/lib/node/state-M35DK75Z.cjs +0 -61
  200. package/dist/lib/node/state-M35DK75Z.cjs.map +0 -7
  201. package/dist/lib/node/types/index.cjs +0 -48
  202. package/dist/lib/node/types/index.cjs.map +0 -7
  203. package/dist/lib/node-esm/app-graph-builder-BCHVZ4OM.mjs.map +0 -7
  204. package/dist/lib/node-esm/app-graph-serializer-TXRGGNP2.mjs.map +0 -7
  205. package/dist/lib/node-esm/chunk-BSLREHIX.mjs.map +0 -7
  206. package/dist/lib/node-esm/chunk-D4QMPPS7.mjs.map +0 -7
  207. package/dist/lib/node-esm/chunk-HO7AIKQS.mjs.map +0 -7
  208. package/dist/lib/node-esm/chunk-JBQKU4K5.mjs.map +0 -7
  209. package/dist/lib/node-esm/chunk-LA6AVVH6.mjs.map +0 -7
  210. package/dist/lib/node-esm/identity-created-35CTAQWI.mjs.map +0 -7
  211. package/dist/lib/node-esm/intent-resolver-JO6L2VXC.mjs.map +0 -7
  212. package/dist/lib/node-esm/react-surface-CVAPDLEZ.mjs.map +0 -7
  213. /package/dist/lib/browser/{chunk-PTKYMZWO.mjs.map → chunk-FBCGT5YY.mjs.map} +0 -0
  214. /package/dist/lib/browser/{chunk-7Y4M7GXO.mjs.map → chunk-VLBRSGJ2.mjs.map} +0 -0
  215. /package/dist/lib/browser/{react-root-QIKHSNT2.mjs.map → react-root-N2J7TDRX.mjs.map} +0 -0
  216. /package/dist/lib/browser/{schema-defs-WREJNMIC.mjs.map → schema-defs-Z6FC4AHC.mjs.map} +0 -0
  217. /package/dist/lib/browser/{schema-tools-ILTVSSS3.mjs.map → schema-tools-BNP4JTD7.mjs.map} +0 -0
  218. /package/dist/lib/browser/{settings-K54STC5A.mjs.map → settings-4IMP5RYT.mjs.map} +0 -0
  219. /package/dist/lib/browser/{spaces-ready-3PDRDHPC.mjs.map → spaces-ready-TOPG6IV4.mjs.map} +0 -0
  220. /package/dist/lib/browser/{state-HRZ4VRXU.mjs.map → state-QYZAB45H.mjs.map} +0 -0
  221. /package/dist/lib/node-esm/{chunk-MSWEFAPD.mjs.map → chunk-HWNG4MEU.mjs.map} +0 -0
  222. /package/dist/lib/node-esm/{chunk-GH2FGJXH.mjs.map → chunk-SSLBYZEY.mjs.map} +0 -0
  223. /package/dist/lib/node-esm/{react-root-YFGL3B4J.mjs.map → react-root-KW3TGJGY.mjs.map} +0 -0
  224. /package/dist/lib/node-esm/{schema-defs-4MEJETVX.mjs.map → schema-defs-WHJM7UZE.mjs.map} +0 -0
  225. /package/dist/lib/node-esm/{schema-tools-SRLCRZ3B.mjs.map → schema-tools-KWW5PTML.mjs.map} +0 -0
  226. /package/dist/lib/node-esm/{settings-TD76LTQS.mjs.map → settings-SAOBPND3.mjs.map} +0 -0
  227. /package/dist/lib/node-esm/{spaces-ready-FJMGPAVV.mjs.map → spaces-ready-HIUKNDZK.mjs.map} +0 -0
  228. /package/dist/lib/node-esm/{state-XQNDCN37.mjs.map → state-ZVEHQ4BJ.mjs.map} +0 -0
@@ -1,32 +1,30 @@
1
1
  import {
2
2
  useInputSurfaceLookup,
3
3
  usePath
4
- } from "./chunk-7Y4M7GXO.mjs";
4
+ } from "./chunk-VLBRSGJ2.mjs";
5
5
  import {
6
6
  SpaceCapabilities
7
- } from "./chunk-BXNL6SDI.mjs";
7
+ } from "./chunk-CEFHNVU7.mjs";
8
8
  import {
9
9
  COMPOSER_SPACE_LOCK,
10
10
  getSpaceDisplayName
11
- } from "./chunk-V24VASAJ.mjs";
11
+ } from "./chunk-XUYKJUU7.mjs";
12
12
  import {
13
13
  SpaceAction,
14
14
  SpaceForm
15
- } from "./chunk-TW7O2EPP.mjs";
15
+ } from "./chunk-SGTQ52SU.mjs";
16
16
  import {
17
17
  SPACE_PLUGIN,
18
18
  meta
19
- } from "./chunk-PTKYMZWO.mjs";
19
+ } from "./chunk-FBCGT5YY.mjs";
20
20
 
21
- // packages/plugins/plugin-space/src/components/AwaitingObject.tsx
21
+ // src/components/AwaitingObject.tsx
22
22
  import { useSignals as _useSignals } from "@preact-signals/safe-react/tracking";
23
- import { CheckCircle, CircleDashed, CircleNotch } from "@phosphor-icons/react";
24
23
  import React, { useCallback, useEffect, useState } from "react";
25
24
  import { createIntent, LayoutAction, useIntentDispatcher, useLayout } from "@dxos/app-framework";
26
25
  import { useClient } from "@dxos/react-client";
27
26
  import { Filter, fullyQualifiedId, useQuery } from "@dxos/react-client/echo";
28
- import { Button, Toast, useTranslation } from "@dxos/react-ui";
29
- import { getSize, mx } from "@dxos/react-ui-theme";
27
+ import { Button, Icon, Toast, useTranslation } from "@dxos/react-ui";
30
28
  var WAIT_FOR_OBJECT_TIMEOUT = 18e4;
31
29
  var TOAST_TIMEOUT = 24e4;
32
30
  var AwaitingObject = ({ id }) => {
@@ -87,12 +85,16 @@ var AwaitingObject = ({ id }) => {
87
85
  onOpenChange: setOpen
88
86
  }, /* @__PURE__ */ React.createElement(Toast.Body, null, /* @__PURE__ */ React.createElement(Toast.Title, {
89
87
  classNames: "flex items-center gap-2"
90
- }, found ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(CheckCircle, {
91
- className: getSize(5)
92
- }), /* @__PURE__ */ React.createElement("span", null, t("found object label"))) : waiting ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(CircleNotch, {
93
- className: mx(getSize(5), "animate-spin")
94
- }), /* @__PURE__ */ React.createElement("span", null, t("waiting for object label"))) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(CircleDashed, {
95
- className: getSize(5)
88
+ }, found ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Icon, {
89
+ icon: "ph--check-circle--regular",
90
+ size: 5
91
+ }), /* @__PURE__ */ React.createElement("span", null, t("found object label"))) : waiting ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Icon, {
92
+ icon: "ph--circle-notch--regular",
93
+ size: 5,
94
+ classNames: "animate-spin"
95
+ }), /* @__PURE__ */ React.createElement("span", null, t("waiting for object label"))) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Icon, {
96
+ icon: "ph--circle-dashed--regular",
97
+ size: 5
96
98
  }), /* @__PURE__ */ React.createElement("span", null, t("object not found label")))), /* @__PURE__ */ React.createElement(Toast.Description, null, t(found ? "found object description" : waiting ? "waiting for object description" : "object not found description"))), /* @__PURE__ */ React.createElement(Toast.Actions, null, found ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Toast.Action, {
97
99
  altText: t("go to object alt"),
98
100
  asChild: true
@@ -117,26 +119,26 @@ var AwaitingObject = ({ id }) => {
117
119
  }
118
120
  };
119
121
 
120
- // packages/plugins/plugin-space/src/components/CreateDialog/CreateObjectDialog.tsx
122
+ // src/components/CreateDialog/CreateObjectDialog.tsx
121
123
  import { useSignals as _useSignals3 } from "@preact-signals/safe-react/tracking";
122
- import { pipe } from "effect";
124
+ import { Effect, pipe } from "effect";
123
125
  import React3, { useCallback as useCallback3, useRef, useState as useState2 } from "react";
124
126
  import { Capabilities, LayoutAction as LayoutAction2, chain, createIntent as createIntent2, useCapabilities, useIntentDispatcher as useIntentDispatcher2, usePluginManager } from "@dxos/app-framework";
125
- import { Query, Type as Type2 } from "@dxos/echo";
127
+ import { Obj, Query, Type as Type2 } from "@dxos/echo";
126
128
  import { invariant } from "@dxos/invariant";
127
129
  import { useClient as useClient2 } from "@dxos/react-client";
128
130
  import { getSpace, isLiveObject, isSpace, useQuery as useQuery2, useSpaces } from "@dxos/react-client/echo";
129
- import { Button as Button2, Dialog, Icon as Icon2, useTranslation as useTranslation3 } from "@dxos/react-ui";
131
+ import { Button as Button2, Dialog, Icon as Icon3, useTranslation as useTranslation3 } from "@dxos/react-ui";
130
132
  import { cardDialogContent, cardDialogHeader } from "@dxos/react-ui-stack";
131
133
  import { DataType } from "@dxos/schema";
132
134
  import { isNonNullable as isNonNullable2 } from "@dxos/util";
133
135
 
134
- // packages/plugins/plugin-space/src/components/CreateDialog/CreateObjectPanel.tsx
136
+ // src/components/CreateDialog/CreateObjectPanel.tsx
135
137
  import { useSignals as _useSignals2 } from "@preact-signals/safe-react/tracking";
136
138
  import React2, { useCallback as useCallback2 } from "react";
137
139
  import { Type } from "@dxos/echo";
138
140
  import { getTypeAnnotation } from "@dxos/echo-schema";
139
- import { Icon, toLocalizedString, useTranslation as useTranslation2 } from "@dxos/react-ui";
141
+ import { Icon as Icon2, toLocalizedString, useTranslation as useTranslation2 } from "@dxos/react-ui";
140
142
  import { Form } from "@dxos/react-ui-form";
141
143
  import { SearchList } from "@dxos/react-ui-searchlist";
142
144
  import { cardDialogOverflow, cardDialogPaddedOverflow, cardDialogSearchListRoot } from "@dxos/react-ui-stack";
@@ -274,7 +276,7 @@ var SelectSchema = ({ options, resolve, onChange }) => {
274
276
  classNames: "flex items-center gap-2"
275
277
  }, /* @__PURE__ */ React2.createElement("span", {
276
278
  className: "flex gap-2 items-center grow truncate"
277
- }, /* @__PURE__ */ React2.createElement(Icon, {
279
+ }, /* @__PURE__ */ React2.createElement(Icon2, {
278
280
  icon: resolve?.(option.typename).icon ?? "ph--placeholder--regular",
279
281
  size: 5
280
282
  }), t("typename label", {
@@ -286,24 +288,24 @@ var SelectSchema = ({ options, resolve, onChange }) => {
286
288
  }
287
289
  };
288
290
 
289
- // packages/plugins/plugin-space/src/capabilities/index.ts
291
+ // src/capabilities/index.ts
290
292
  import { lazy } from "@dxos/app-framework";
291
- var AppGraphBuilder = lazy(() => import("./app-graph-builder-M2RH72VL.mjs"));
292
- var AppGraphSerializer = lazy(() => import("./app-graph-serializer-F7ISRRBV.mjs"));
293
- var IdentityCreated = lazy(() => import("./identity-created-PI7TKANR.mjs"));
294
- var IntentResolver = lazy(() => import("./intent-resolver-RWU6ZE4H.mjs"));
295
- var ReactRoot = lazy(() => import("./react-root-QIKHSNT2.mjs"));
296
- var ReactSurface = lazy(() => import("./react-surface-W56UD53I.mjs"));
297
- var SchemaDefs = lazy(() => import("./schema-defs-WREJNMIC.mjs"));
298
- var SchemaTools = lazy(() => import("./schema-tools-ILTVSSS3.mjs"));
299
- var SpaceSettings = lazy(() => import("./settings-K54STC5A.mjs"));
300
- var SpaceState = lazy(() => import("./state-HRZ4VRXU.mjs"));
301
- var SpacesReady = lazy(() => import("./spaces-ready-3PDRDHPC.mjs"));
293
+ var AppGraphBuilder = lazy(() => import("./app-graph-builder-7CZZJS3S.mjs"));
294
+ var AppGraphSerializer = lazy(() => import("./app-graph-serializer-H6AW7KGS.mjs"));
295
+ var IdentityCreated = lazy(() => import("./identity-created-23XJJV2N.mjs"));
296
+ var IntentResolver = lazy(() => import("./intent-resolver-TIXVDYN7.mjs"));
297
+ var ReactRoot = lazy(() => import("./react-root-N2J7TDRX.mjs"));
298
+ var ReactSurface = lazy(() => import("./react-surface-TPNLWJJH.mjs"));
299
+ var SchemaDefs = lazy(() => import("./schema-defs-Z6FC4AHC.mjs"));
300
+ var SchemaTools = lazy(() => import("./schema-tools-BNP4JTD7.mjs"));
301
+ var SpaceSettings = lazy(() => import("./settings-4IMP5RYT.mjs"));
302
+ var SpaceState = lazy(() => import("./state-QYZAB45H.mjs"));
303
+ var SpacesReady = lazy(() => import("./spaces-ready-TOPG6IV4.mjs"));
302
304
 
303
- // packages/plugins/plugin-space/src/components/CreateDialog/CreateObjectDialog.tsx
304
- var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/CreateDialog/CreateObjectDialog.tsx";
305
+ // src/components/CreateDialog/CreateObjectDialog.tsx
306
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-space/src/components/CreateDialog/CreateObjectDialog.tsx";
305
307
  var CREATE_OBJECT_DIALOG = `${SPACE_PLUGIN}/CreateObjectDialog`;
306
- var CreateObjectDialog = ({ target: initialTarget, typename: initialTypename, name, shouldNavigate: _shouldNavigate }) => {
308
+ var CreateObjectDialog = ({ target: initialTarget, typename: initialTypename, name, onCreateObject, shouldNavigate: _shouldNavigate }) => {
307
309
  var _effect = _useSignals3();
308
310
  try {
309
311
  const closeRef = useRef(null);
@@ -311,7 +313,7 @@ var CreateObjectDialog = ({ target: initialTarget, typename: initialTypename, na
311
313
  const { t } = useTranslation3(SPACE_PLUGIN);
312
314
  const client = useClient2();
313
315
  const spaces = useSpaces();
314
- const { dispatchPromise: dispatch } = useIntentDispatcher2();
316
+ const { dispatch } = useIntentDispatcher2();
315
317
  const forms = useCapabilities(SpaceCapabilities.ObjectForm);
316
318
  const [target, setTarget] = useState2(initialTarget);
317
319
  const [typename, setTypename] = useState2(initialTypename);
@@ -321,7 +323,7 @@ var CreateObjectDialog = ({ target: initialTarget, typename: initialTypename, na
321
323
  const resolve = useCallback3((typename2) => manager.context.getCapabilities(Capabilities.Metadata).find(({ id }) => id === typename2)?.metadata ?? {}, [
322
324
  manager
323
325
  ]);
324
- const handleCreateObject = useCallback3(async ({ form, data = {} }) => {
326
+ const handleCreateObject = useCallback3(({ form, data = {} }) => Effect.gen(function* () {
325
327
  if (!target) {
326
328
  return;
327
329
  }
@@ -329,18 +331,17 @@ var CreateObjectDialog = ({ target: initialTarget, typename: initialTypename, na
329
331
  const space2 = isSpace(target) ? target : getSpace(target);
330
332
  invariant(space2, "Missing space", {
331
333
  F: __dxlog_file,
332
- L: 73,
333
- S: void 0,
334
+ L: 76,
335
+ S: this,
334
336
  A: [
335
337
  "space",
336
338
  "'Missing space'"
337
339
  ]
338
340
  });
339
- const result = await dispatch(form.getIntent(data, {
341
+ const { object } = yield* dispatch(form.getIntent(data, {
340
342
  space: space2
341
343
  }));
342
- const object = result.data?.object;
343
- if (isLiveObject(object)) {
344
+ if (isLiveObject(object) && !Obj.instanceOf(DataType.StoredSchema, object)) {
344
345
  const hidden = form.hidden || hiddenTypenames.includes(Type2.getTypename(form.objectSchema));
345
346
  const addObjectIntent = createIntent2(SpaceAction.AddObject, {
346
347
  target,
@@ -349,14 +350,15 @@ var CreateObjectDialog = ({ target: initialTarget, typename: initialTypename, na
349
350
  });
350
351
  const shouldNavigate = _shouldNavigate ?? (() => true);
351
352
  if (shouldNavigate(object)) {
352
- await dispatch(pipe(addObjectIntent, chain(LayoutAction2.Open, {
353
+ yield* dispatch(pipe(addObjectIntent, chain(LayoutAction2.Open, {
353
354
  part: "main"
354
355
  })));
355
356
  } else {
356
- await dispatch(addObjectIntent);
357
+ yield* dispatch(addObjectIntent);
357
358
  }
359
+ onCreateObject?.(object);
358
360
  }
359
- }, [
361
+ }).pipe(Effect.runPromise), [
360
362
  dispatch,
361
363
  target,
362
364
  resolve,
@@ -383,7 +385,7 @@ var CreateObjectDialog = ({ target: initialTarget, typename: initialTypename, na
383
385
  density: "fine",
384
386
  variant: "ghost",
385
387
  autoFocus: true
386
- }, /* @__PURE__ */ React3.createElement(Icon2, {
388
+ }, /* @__PURE__ */ React3.createElement(Icon3, {
387
389
  icon: "ph--x--regular",
388
390
  size: 4
389
391
  })))), /* @__PURE__ */ React3.createElement(CreateObjectPanel, {
@@ -404,12 +406,12 @@ var CreateObjectDialog = ({ target: initialTarget, typename: initialTypename, na
404
406
  }
405
407
  };
406
408
 
407
- // packages/plugins/plugin-space/src/components/CreateDialog/CreateSpaceDialog.tsx
409
+ // src/components/CreateDialog/CreateSpaceDialog.tsx
408
410
  import { useSignals as _useSignals4 } from "@preact-signals/safe-react/tracking";
409
- import { Effect } from "effect";
411
+ import { Effect as Effect2 } from "effect";
410
412
  import React4, { useCallback as useCallback4, useRef as useRef2 } from "react";
411
413
  import { createIntent as createIntent3, LayoutAction as LayoutAction3, useIntentDispatcher as useIntentDispatcher3 } from "@dxos/app-framework";
412
- import { Button as Button3, Dialog as Dialog2, Icon as Icon3, useTranslation as useTranslation4 } from "@dxos/react-ui";
414
+ import { Button as Button3, Dialog as Dialog2, Icon as Icon4, useTranslation as useTranslation4 } from "@dxos/react-ui";
413
415
  import { Form as Form2 } from "@dxos/react-ui-form";
414
416
  import { cardDialogContent as cardDialogContent2, cardDialogHeader as cardDialogHeader2 } from "@dxos/react-ui-stack";
415
417
  var CREATE_SPACE_DIALOG = `${SPACE_PLUGIN}/CreateSpaceDialog`;
@@ -424,7 +426,7 @@ var CreateSpaceDialog = () => {
424
426
  const { dispatch } = useIntentDispatcher3();
425
427
  const inputSurfaceLookup = useInputSurfaceLookup();
426
428
  const handleCreateSpace = useCallback4(async (data) => {
427
- const program = Effect.gen(function* () {
429
+ const program = Effect2.gen(function* () {
428
430
  const { space } = yield* dispatch(createIntent3(SpaceAction.Create, data));
429
431
  yield* dispatch(createIntent3(LayoutAction3.SwitchWorkspace, {
430
432
  part: "workspace",
@@ -437,7 +439,7 @@ var CreateSpaceDialog = () => {
437
439
  }
438
440
  }));
439
441
  });
440
- await Effect.runPromise(program);
442
+ await Effect2.runPromise(program);
441
443
  }, [
442
444
  dispatch
443
445
  ]);
@@ -456,7 +458,7 @@ var CreateSpaceDialog = () => {
456
458
  density: "fine",
457
459
  variant: "ghost",
458
460
  autoFocus: true
459
- }, /* @__PURE__ */ React4.createElement(Icon3, {
461
+ }, /* @__PURE__ */ React4.createElement(Icon4, {
460
462
  icon: "ph--x--regular",
461
463
  size: 4
462
464
  })))), /* @__PURE__ */ React4.createElement("div", {
@@ -477,39 +479,17 @@ var CreateSpaceDialog = () => {
477
479
  }
478
480
  };
479
481
 
480
- // packages/plugins/plugin-space/src/components/CollectionMain.tsx
482
+ // src/components/CollectionSection.tsx
481
483
  import { useSignals as _useSignals5 } from "@preact-signals/safe-react/tracking";
482
484
  import React5 from "react";
483
485
  import { useTranslation as useTranslation5 } from "@dxos/react-ui";
484
- import { baseSurface, descriptionMessage, mx as mx2 } from "@dxos/react-ui-theme";
485
- var CollectionMain = ({ collection }) => {
486
+ var CollectionSection = ({ collection }) => {
486
487
  var _effect = _useSignals5();
487
488
  try {
488
489
  const { t } = useTranslation5(SPACE_PLUGIN);
489
490
  return /* @__PURE__ */ React5.createElement("div", {
490
- role: "none",
491
- className: mx2(baseSurface, "min-bs-screen is-full flex items-center justify-center p-8"),
492
- "data-testid": "composer.firstRunMessage"
493
- }, /* @__PURE__ */ React5.createElement("p", {
494
- role: "alert",
495
- className: mx2(descriptionMessage, "rounded-md p-8 font-normal text-lg max-is-[24rem] break-words")
496
- }, collection.name ?? t("unnamed collection label")));
497
- } finally {
498
- _effect.f();
499
- }
500
- };
501
-
502
- // packages/plugins/plugin-space/src/components/CollectionSection.tsx
503
- import { useSignals as _useSignals6 } from "@preact-signals/safe-react/tracking";
504
- import React6 from "react";
505
- import { useTranslation as useTranslation6 } from "@dxos/react-ui";
506
- var CollectionSection = ({ collection }) => {
507
- var _effect = _useSignals6();
508
- try {
509
- const { t } = useTranslation6(SPACE_PLUGIN);
510
- return /* @__PURE__ */ React6.createElement("div", {
511
491
  className: "min-bs-[3.5rem] grid grid-rows-subgrid grid-cols-subgrid items-center"
512
- }, /* @__PURE__ */ React6.createElement("span", {
492
+ }, /* @__PURE__ */ React5.createElement("span", {
513
493
  className: "truncate"
514
494
  }, collection.name ?? t("unnamed collection label")));
515
495
  } finally {
@@ -517,23 +497,23 @@ var CollectionSection = ({ collection }) => {
517
497
  }
518
498
  };
519
499
 
520
- // packages/plugins/plugin-space/src/components/JoinDialog.tsx
521
- import { useSignals as _useSignals7 } from "@preact-signals/safe-react/tracking";
522
- import React7, { useCallback as useCallback5 } from "react";
500
+ // src/components/JoinDialog.tsx
501
+ import { useSignals as _useSignals6 } from "@preact-signals/safe-react/tracking";
502
+ import React6, { useCallback as useCallback5 } from "react";
523
503
  import { createIntent as createIntent4, LayoutAction as LayoutAction4, useAppGraph, useIntentDispatcher as useIntentDispatcher4 } from "@dxos/app-framework";
524
504
  import { Trigger } from "@dxos/async";
525
505
  import { ObservabilityAction } from "@dxos/plugin-observability/types";
526
506
  import { useClient as useClient3 } from "@dxos/react-client";
527
- import { Dialog as Dialog3, useTranslation as useTranslation7 } from "@dxos/react-ui";
507
+ import { Dialog as Dialog3, useTranslation as useTranslation6 } from "@dxos/react-ui";
528
508
  import { JoinPanel } from "@dxos/shell/react";
529
509
  var JOIN_DIALOG = `${SPACE_PLUGIN}/JoinDialog`;
530
510
  var JoinDialog = ({ navigableCollections, onDone, ...props }) => {
531
- var _effect = _useSignals7();
511
+ var _effect = _useSignals6();
532
512
  try {
533
513
  const { dispatchPromise: dispatch } = useIntentDispatcher4();
534
514
  const client = useClient3();
535
515
  const { graph } = useAppGraph();
536
- const { t } = useTranslation7(SPACE_PLUGIN);
516
+ const { t } = useTranslation6(SPACE_PLUGIN);
537
517
  const handleDone = useCallback5(async (result) => {
538
518
  const spaceKey = result?.spaceKey;
539
519
  if (!spaceKey) {
@@ -614,16 +594,16 @@ var JoinDialog = ({ navigableCollections, onDone, ...props }) => {
614
594
  client,
615
595
  graph
616
596
  ]);
617
- return /* @__PURE__ */ React7.createElement(Dialog3.Content, null, /* @__PURE__ */ React7.createElement(Dialog3.Title, {
597
+ return /* @__PURE__ */ React6.createElement(Dialog3.Content, null, /* @__PURE__ */ React6.createElement(Dialog3.Title, {
618
598
  classNames: "sr-only"
619
599
  }, t("join space label", {
620
600
  ns: "os"
621
- })), /* @__PURE__ */ React7.createElement(JoinPanel, {
601
+ })), /* @__PURE__ */ React6.createElement(JoinPanel, {
622
602
  ...props,
623
- exitActionParent: /* @__PURE__ */ React7.createElement(Dialog3.Close, {
603
+ exitActionParent: /* @__PURE__ */ React6.createElement(Dialog3.Close, {
624
604
  asChild: true
625
605
  }),
626
- doneActionParent: /* @__PURE__ */ React7.createElement(Dialog3.Close, {
606
+ doneActionParent: /* @__PURE__ */ React6.createElement(Dialog3.Close, {
627
607
  asChild: true
628
608
  }),
629
609
  onDone: handleDone
@@ -633,25 +613,22 @@ var JoinDialog = ({ navigableCollections, onDone, ...props }) => {
633
613
  }
634
614
  };
635
615
 
636
- // packages/plugins/plugin-space/src/components/MembersContainer.tsx
637
- import { useSignals as _useSignals8 } from "@preact-signals/safe-react/tracking";
638
- import { Check, X } from "@phosphor-icons/react";
639
- import React8, { useCallback as useCallback6, useMemo, useState as useState3 } from "react";
616
+ // src/components/MembersContainer.tsx
617
+ import { useSignals as _useSignals7 } from "@preact-signals/safe-react/tracking";
618
+ import React7, { useCallback as useCallback6, useMemo, useState as useState3 } from "react";
640
619
  import { QR } from "react-qr-rounded";
641
620
  import { createIntent as createIntent5, useIntentDispatcher as useIntentDispatcher5 } from "@dxos/app-framework";
642
- import { Type as Type3 } from "@dxos/echo";
643
621
  import { log } from "@dxos/log";
644
622
  import { useConfig } from "@dxos/react-client";
645
623
  import { fullyQualifiedId as fullyQualifiedId2, useSpaceInvitations } from "@dxos/react-client/echo";
646
624
  import { Invitation, InvitationEncoder } from "@dxos/react-client/invitations";
647
- import { Button as Button4, Clipboard, Icon as Icon4, Input, useId, useTranslation as useTranslation8 } from "@dxos/react-ui";
625
+ import { Button as Button4, Clipboard, Icon as Icon5, Input, useId, useTranslation as useTranslation7 } from "@dxos/react-ui";
648
626
  import { ControlPage, ControlSection, ControlFrame, ControlFrameItem, ControlItemInput } from "@dxos/react-ui-form";
649
627
  import { StackItem } from "@dxos/react-ui-stack";
650
- import { getSize as getSize2, mx as mx3 } from "@dxos/react-ui-theme";
651
628
  import { DataType as DataType2 } from "@dxos/schema";
652
629
  import { AuthCode, BifurcatedAction, Centered, Emoji, InvitationList, SpaceMemberList, Viewport } from "@dxos/shell/react";
653
630
  import { hexToEmoji } from "@dxos/util";
654
- var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/MembersContainer.tsx";
631
+ var __dxlog_file2 = "/__w/dxos/dxos/packages/plugins/plugin-space/src/components/MembersContainer.tsx";
655
632
  var activeActionKey = "dxos:react-shell/space-manager/active-action";
656
633
  var handleInvitationEvent = (invitation, subscription) => {
657
634
  const invitationCode = InvitationEncoder.encode(invitation);
@@ -661,7 +638,7 @@ var handleInvitationEvent = (invitation, subscription) => {
661
638
  authCode: invitation.authCode
662
639
  }), void 0, {
663
640
  F: __dxlog_file2,
664
- L: 42,
641
+ L: 39,
665
642
  S: void 0,
666
643
  C: (f, a) => f(...a)
667
644
  });
@@ -669,9 +646,9 @@ var handleInvitationEvent = (invitation, subscription) => {
669
646
  }
670
647
  };
671
648
  var MembersContainer = ({ space, createInvitationUrl }) => {
672
- var _effect = _useSignals8();
649
+ var _effect = _useSignals7();
673
650
  try {
674
- const { t } = useTranslation8(SPACE_PLUGIN);
651
+ const { t } = useTranslation7(SPACE_PLUGIN);
675
652
  const config = useConfig();
676
653
  const { dispatchPromise: dispatch } = useIntentDispatcher5();
677
654
  const invitations = useSpaceInvitations(space.key);
@@ -683,7 +660,7 @@ var MembersContainer = ({ space, createInvitationUrl }) => {
683
660
  setInternalActiveAction(nextAction);
684
661
  localStorage.setItem(activeActionKey, nextAction);
685
662
  };
686
- const target = space.properties[Type3.getTypename(DataType2.Collection)]?.target?.objects[0]?.target;
663
+ const target = space.properties[DataType2.Collection.typename]?.target?.objects[0]?.target;
687
664
  const locked = space.properties[COMPOSER_SPACE_LOCK];
688
665
  const handleChangeLocked = useCallback6(() => {
689
666
  space.properties[COMPOSER_SPACE_LOCK] = !locked;
@@ -699,7 +676,7 @@ var MembersContainer = ({ space, createInvitationUrl }) => {
699
676
  description: t("invite one description", {
700
677
  ns: "os"
701
678
  }),
702
- icon: () => /* @__PURE__ */ React8.createElement(Icon4, {
679
+ icon: () => /* @__PURE__ */ React7.createElement(Icon5, {
703
680
  icon: "ph--user-plus--regular",
704
681
  size: 5
705
682
  }),
@@ -724,7 +701,7 @@ var MembersContainer = ({ space, createInvitationUrl }) => {
724
701
  description: t("invite many description", {
725
702
  ns: "os"
726
703
  }),
727
- icon: () => /* @__PURE__ */ React8.createElement(Icon4, {
704
+ icon: () => /* @__PURE__ */ React7.createElement(Icon5, {
728
705
  icon: "ph--users-three--regular",
729
706
  size: 5
730
707
  }),
@@ -754,44 +731,44 @@ var MembersContainer = ({ space, createInvitationUrl }) => {
754
731
  const handleBack = () => {
755
732
  setSelectedInvitation(null);
756
733
  };
757
- return /* @__PURE__ */ React8.createElement(Clipboard.Provider, null, /* @__PURE__ */ React8.createElement(StackItem.Content, {
734
+ return /* @__PURE__ */ React7.createElement(Clipboard.Provider, null, /* @__PURE__ */ React7.createElement(StackItem.Content, {
758
735
  classNames: "block overflow-y-auto"
759
- }, /* @__PURE__ */ React8.createElement(ControlPage, null, /* @__PURE__ */ React8.createElement(ControlSection, {
736
+ }, /* @__PURE__ */ React7.createElement(ControlPage, null, /* @__PURE__ */ React7.createElement(ControlSection, {
760
737
  title: t("members verbose label"),
761
738
  description: t("members description")
762
- }, /* @__PURE__ */ React8.createElement(ControlFrame, null, /* @__PURE__ */ React8.createElement(ControlFrameItem, {
739
+ }, /* @__PURE__ */ React7.createElement(ControlFrame, null, /* @__PURE__ */ React7.createElement(ControlFrameItem, {
763
740
  title: t("members label")
764
- }, /* @__PURE__ */ React8.createElement(SpaceMemberList, {
741
+ }, /* @__PURE__ */ React7.createElement(SpaceMemberList, {
765
742
  spaceKey: space.key,
766
743
  includeSelf: true
767
- })), locked && /* @__PURE__ */ React8.createElement(ControlFrameItem, {
744
+ })), locked && /* @__PURE__ */ React7.createElement(ControlFrameItem, {
768
745
  title: t("invitations label")
769
- }, /* @__PURE__ */ React8.createElement("p", {
746
+ }, /* @__PURE__ */ React7.createElement("p", {
770
747
  className: "text-description mbe-2"
771
- }, t("locked space description"))), !locked && /* @__PURE__ */ React8.createElement(ControlFrameItem, {
748
+ }, t("locked space description"))), !locked && /* @__PURE__ */ React7.createElement(ControlFrameItem, {
772
749
  title: t("invitations label")
773
- }, selectedInvitation && /* @__PURE__ */ React8.createElement(InvitationSection, {
750
+ }, selectedInvitation && /* @__PURE__ */ React7.createElement(InvitationSection, {
774
751
  ...selectedInvitation,
775
752
  onBack: handleBack
776
- }), !selectedInvitation && /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement("p", {
753
+ }), !selectedInvitation && /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement("p", {
777
754
  className: "text-description mbe-2"
778
- }, t("space invitation description")), /* @__PURE__ */ React8.createElement(InvitationList, {
755
+ }, t("space invitation description")), /* @__PURE__ */ React7.createElement(InvitationList, {
779
756
  className: "mb-2",
780
757
  send: handleSend,
781
758
  invitations: visibleInvitations ?? [],
782
759
  onClickRemove: (invitation) => invitation.cancel(),
783
760
  createInvitationUrl
784
- }), /* @__PURE__ */ React8.createElement(BifurcatedAction, {
761
+ }), /* @__PURE__ */ React7.createElement(BifurcatedAction, {
785
762
  actions: inviteActions,
786
763
  activeAction,
787
764
  onChangeActiveAction: setActiveAction,
788
765
  "data-testid": "membersContainer.createInvitation"
789
- })))), /* @__PURE__ */ React8.createElement("div", {
766
+ })))), /* @__PURE__ */ React7.createElement("div", {
790
767
  className: "justify-center gap-4 p-0 mbs-4 container-max-width grid grid-cols-1 md:grid-cols-[1fr_min-content]"
791
- }, /* @__PURE__ */ React8.createElement(ControlItemInput, {
768
+ }, /* @__PURE__ */ React7.createElement(ControlItemInput, {
792
769
  title: t("space locked label"),
793
770
  description: t("space locked description")
794
- }, /* @__PURE__ */ React8.createElement(Input.Switch, {
771
+ }, /* @__PURE__ */ React7.createElement(Input.Switch, {
795
772
  checked: locked,
796
773
  onCheckedChange: handleChangeLocked,
797
774
  classNames: "justify-self-end"
@@ -801,26 +778,26 @@ var MembersContainer = ({ space, createInvitationUrl }) => {
801
778
  }
802
779
  };
803
780
  var InvitationSection = ({ state = Invitation.State.INIT, authCode, invitationId = "never", url = "never", onBack }) => {
804
- var _effect = _useSignals8();
781
+ var _effect = _useSignals7();
805
782
  try {
806
783
  const activeView = state < 0 ? "init" : state >= Invitation.State.CANCELLED ? "complete" : state >= Invitation.State.READY_FOR_AUTHENTICATION && authCode ? "auth-code" : "qr-code";
807
- return /* @__PURE__ */ React8.createElement(Viewport.Root, {
784
+ return /* @__PURE__ */ React7.createElement(Viewport.Root, {
808
785
  activeView
809
- }, /* @__PURE__ */ React8.createElement(Viewport.Views, null, /* @__PURE__ */ React8.createElement(Viewport.View, {
786
+ }, /* @__PURE__ */ React7.createElement(Viewport.Views, null, /* @__PURE__ */ React7.createElement(Viewport.View, {
810
787
  id: "init"
811
- }), /* @__PURE__ */ React8.createElement(Viewport.View, {
788
+ }), /* @__PURE__ */ React7.createElement(Viewport.View, {
812
789
  id: "complete"
813
- }, /* @__PURE__ */ React8.createElement(InvitationComplete, {
790
+ }, /* @__PURE__ */ React7.createElement(InvitationComplete, {
814
791
  statusValue: state
815
- })), /* @__PURE__ */ React8.createElement(Viewport.View, {
792
+ })), /* @__PURE__ */ React7.createElement(Viewport.View, {
816
793
  id: "auth-code"
817
- }, /* @__PURE__ */ React8.createElement(InvitationAuthCode, {
794
+ }, /* @__PURE__ */ React7.createElement(InvitationAuthCode, {
818
795
  id: invitationId,
819
796
  code: authCode ?? "never",
820
797
  onCancel: onBack
821
- })), /* @__PURE__ */ React8.createElement(Viewport.View, {
798
+ })), /* @__PURE__ */ React7.createElement(Viewport.View, {
822
799
  id: "qr-code"
823
- }, /* @__PURE__ */ React8.createElement(InvitationQR, {
800
+ }, /* @__PURE__ */ React7.createElement(InvitationQR, {
824
801
  id: invitationId,
825
802
  url,
826
803
  onCancel: onBack
@@ -830,36 +807,36 @@ var InvitationSection = ({ state = Invitation.State.INIT, authCode, invitationId
830
807
  }
831
808
  };
832
809
  var InvitationQR = ({ id, url, onCancel }) => {
833
- var _effect = _useSignals8();
810
+ var _effect = _useSignals7();
834
811
  try {
835
- const { t } = useTranslation8("os");
812
+ const { t } = useTranslation7("os");
836
813
  const qrLabel = useId("members-container__qr-code");
837
814
  const emoji = hexToEmoji(id);
838
- return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement("p", {
815
+ return /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement("p", {
839
816
  className: "text-description"
840
817
  }, t("qr code description", {
841
818
  ns: SPACE_PLUGIN
842
- })), /* @__PURE__ */ React8.createElement("div", {
819
+ })), /* @__PURE__ */ React7.createElement("div", {
843
820
  role: "group",
844
821
  className: "grid grid-cols-[1fr_min-content] mlb-2 gap-2"
845
- }, /* @__PURE__ */ React8.createElement("div", {
822
+ }, /* @__PURE__ */ React7.createElement("div", {
846
823
  role: "none",
847
824
  className: "is-full aspect-square relative text-description"
848
- }, /* @__PURE__ */ React8.createElement(QR, {
825
+ }, /* @__PURE__ */ React7.createElement(QR, {
849
826
  rounding: 100,
850
827
  backgroundColor: "transparent",
851
828
  color: "currentColor",
852
829
  "aria-labelledby": qrLabel,
853
830
  errorCorrectionLevel: "Q",
854
831
  cutout: true
855
- }, url ?? "never"), /* @__PURE__ */ React8.createElement(Centered, null, /* @__PURE__ */ React8.createElement(Emoji, {
832
+ }, url ?? "never"), /* @__PURE__ */ React7.createElement(Centered, null, /* @__PURE__ */ React7.createElement(Emoji, {
856
833
  text: emoji
857
- }))), /* @__PURE__ */ React8.createElement("span", {
834
+ }))), /* @__PURE__ */ React7.createElement("span", {
858
835
  id: qrLabel,
859
836
  className: "sr-only"
860
- }, t("qr label")), /* @__PURE__ */ React8.createElement(Clipboard.Button, {
837
+ }, t("qr label")), /* @__PURE__ */ React7.createElement(Clipboard.Button, {
861
838
  value: url ?? "never"
862
- })), /* @__PURE__ */ React8.createElement(Button4, {
839
+ })), /* @__PURE__ */ React7.createElement(Button4, {
863
840
  variant: "ghost",
864
841
  onClick: onCancel
865
842
  }, t("cancel label")));
@@ -868,22 +845,22 @@ var InvitationQR = ({ id, url, onCancel }) => {
868
845
  }
869
846
  };
870
847
  var InvitationAuthCode = ({ id, code, onCancel }) => {
871
- var _effect = _useSignals8();
848
+ var _effect = _useSignals7();
872
849
  try {
873
- const { t } = useTranslation8("os");
850
+ const { t } = useTranslation7("os");
874
851
  const emoji = hexToEmoji(id);
875
- return /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement("p", {
852
+ return /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement("p", {
876
853
  className: "text-description"
877
- }, t("auth other device emoji message")), emoji && /* @__PURE__ */ React8.createElement(Emoji, {
854
+ }, t("auth other device emoji message")), emoji && /* @__PURE__ */ React7.createElement(Emoji, {
878
855
  text: emoji,
879
856
  className: "mli-auto mlb-2 text-center"
880
- }), /* @__PURE__ */ React8.createElement("p", {
857
+ }), /* @__PURE__ */ React7.createElement("p", {
881
858
  className: "text-description"
882
- }, t("auth code message")), /* @__PURE__ */ React8.createElement(AuthCode, {
859
+ }, t("auth code message")), /* @__PURE__ */ React7.createElement(AuthCode, {
883
860
  code,
884
861
  large: true,
885
862
  classNames: "mli-auto mlb-2 text-center grow"
886
- }), /* @__PURE__ */ React8.createElement(Button4, {
863
+ }), /* @__PURE__ */ React7.createElement(Button4, {
887
864
  variant: "ghost",
888
865
  onClick: onCancel
889
866
  }, t("cancel label")));
@@ -892,65 +869,69 @@ var InvitationAuthCode = ({ id, code, onCancel }) => {
892
869
  }
893
870
  };
894
871
  var InvitationComplete = ({ statusValue }) => {
895
- var _effect = _useSignals8();
872
+ var _effect = _useSignals7();
896
873
  try {
897
- return statusValue > 0 ? /* @__PURE__ */ React8.createElement(Check, {
898
- className: mx3("m-1.5", getSize2(6))
899
- }) : /* @__PURE__ */ React8.createElement(X, {
900
- className: mx3("m-1.5", getSize2(6))
874
+ return statusValue > 0 ? /* @__PURE__ */ React7.createElement(Icon5, {
875
+ icon: "ph--check--regular",
876
+ size: 6,
877
+ classNames: "m-1.5"
878
+ }) : /* @__PURE__ */ React7.createElement(Icon5, {
879
+ icon: "ph--x--regular",
880
+ size: 6,
881
+ classNames: "m-1.5"
901
882
  });
902
883
  } finally {
903
884
  _effect.f();
904
885
  }
905
886
  };
906
887
 
907
- // packages/plugins/plugin-space/src/components/MenuFooter.tsx
908
- import { useSignals as _useSignals9 } from "@preact-signals/safe-react/tracking";
909
- import { Planet } from "@phosphor-icons/react";
910
- import React9 from "react";
888
+ // src/components/MenuFooter.tsx
889
+ import { useSignals as _useSignals8 } from "@preact-signals/safe-react/tracking";
890
+ import React8 from "react";
911
891
  import { getSpace as getSpace2 } from "@dxos/client/echo";
912
892
  import { useClient as useClient4 } from "@dxos/react-client";
913
- import { DropdownMenu, toLocalizedString as toLocalizedString2, useTranslation as useTranslation9 } from "@dxos/react-ui";
893
+ import { DropdownMenu, Icon as Icon6, toLocalizedString as toLocalizedString2, useTranslation as useTranslation8 } from "@dxos/react-ui";
914
894
  var MenuFooter = ({ object }) => {
915
- var _effect = _useSignals9();
895
+ var _effect = _useSignals8();
916
896
  try {
917
- const { t } = useTranslation9(SPACE_PLUGIN);
897
+ const { t } = useTranslation8(SPACE_PLUGIN);
918
898
  const client = useClient4();
919
899
  const space = getSpace2(object);
920
900
  const spaceName = space ? getSpaceDisplayName(space, {
921
901
  personal: client.spaces.default === space
922
902
  }) : "";
923
- return space ? /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(DropdownMenu.Separator, null), /* @__PURE__ */ React9.createElement(DropdownMenu.GroupLabel, null, t("menu footer label")), /* @__PURE__ */ React9.createElement("dl", {
903
+ return space ? /* @__PURE__ */ React8.createElement(React8.Fragment, null, /* @__PURE__ */ React8.createElement(DropdownMenu.Separator, null), /* @__PURE__ */ React8.createElement(DropdownMenu.GroupLabel, null, t("menu footer label")), /* @__PURE__ */ React8.createElement("dl", {
924
904
  className: "pis-2 mbe-2 text-xs grid grid-cols-[max-content_1fr] gap-2"
925
- }, /* @__PURE__ */ React9.createElement("dt", {
905
+ }, /* @__PURE__ */ React8.createElement("dt", {
926
906
  className: "uppercase text-[.75em] tracking-wide font-medium mbs-px self-start"
927
- }, t("location label")), /* @__PURE__ */ React9.createElement("dd", {
907
+ }, t("location label")), /* @__PURE__ */ React8.createElement("dd", {
928
908
  className: "line-clamp-3"
929
- }, /* @__PURE__ */ React9.createElement(Planet, {
930
- className: "inline-block mie-1"
909
+ }, /* @__PURE__ */ React8.createElement(Icon6, {
910
+ icon: "ph--planet--regular",
911
+ classNames: "inline-block mie-1"
931
912
  }), toLocalizedString2(spaceName, t)))) : null;
932
913
  } finally {
933
914
  _effect.f();
934
915
  }
935
916
  };
936
917
 
937
- // packages/plugins/plugin-space/src/components/ObjectSettings/ObjectSettingsContainer.tsx
938
- import { useSignals as _useSignals11 } from "@preact-signals/safe-react/tracking";
939
- import React11, { useMemo as useMemo2 } from "react";
918
+ // src/components/ObjectSettings/ObjectSettingsContainer.tsx
919
+ import { useSignals as _useSignals10 } from "@preact-signals/safe-react/tracking";
920
+ import React10, { useMemo as useMemo2 } from "react";
940
921
  import { Surface } from "@dxos/app-framework";
941
922
  import { Clipboard as Clipboard2 } from "@dxos/react-ui";
942
923
  import { StackItem as StackItem2 } from "@dxos/react-ui-stack";
943
924
 
944
- // packages/plugins/plugin-space/src/components/ObjectSettings/BaseObjectSettings.tsx
945
- import { useSignals as _useSignals10 } from "@preact-signals/safe-react/tracking";
946
- import React10, { useRef as useRef3 } from "react";
947
- import { Input as Input2, useTranslation as useTranslation10 } from "@dxos/react-ui";
925
+ // src/components/ObjectSettings/BaseObjectSettings.tsx
926
+ import { useSignals as _useSignals9 } from "@preact-signals/safe-react/tracking";
927
+ import React9, { useRef as useRef3 } from "react";
928
+ import { Input as Input2, useTranslation as useTranslation9 } from "@dxos/react-ui";
948
929
  var BaseObjectSettings = ({ classNames, children, object }) => {
949
- var _effect = _useSignals10();
930
+ var _effect = _useSignals9();
950
931
  try {
951
- const { t } = useTranslation10(meta.id);
932
+ const { t } = useTranslation9(meta.id);
952
933
  const inputRef = useRef3(null);
953
- return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(Input2.Root, null, /* @__PURE__ */ React10.createElement(Input2.Label, null, t("name label")), /* @__PURE__ */ React10.createElement(Input2.TextInput, {
934
+ return /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(Input2.Root, null, /* @__PURE__ */ React9.createElement(Input2.Label, null, t("name label")), /* @__PURE__ */ React9.createElement(Input2.TextInput, {
954
935
  ref: inputRef,
955
936
  placeholder: t("name placeholder"),
956
937
  // TODO(burdon): Use annotation to get the name field.
@@ -969,26 +950,26 @@ var BaseObjectSettings = ({ classNames, children, object }) => {
969
950
  }
970
951
  };
971
952
 
972
- // packages/plugins/plugin-space/src/components/ObjectSettings/ObjectSettingsContainer.tsx
953
+ // src/components/ObjectSettings/ObjectSettingsContainer.tsx
973
954
  var ObjectSettingsContainer = ({ object, role }) => {
974
- var _effect = _useSignals11();
955
+ var _effect = _useSignals10();
975
956
  try {
976
957
  const data = useMemo2(() => ({
977
958
  subject: object
978
959
  }), [
979
960
  object
980
961
  ]);
981
- return /* @__PURE__ */ React11.createElement(Clipboard2.Provider, null, /* @__PURE__ */ React11.createElement(StackItem2.Content, {
962
+ return /* @__PURE__ */ React10.createElement(Clipboard2.Provider, null, /* @__PURE__ */ React10.createElement(StackItem2.Content, {
982
963
  toolbar: false
983
- }, /* @__PURE__ */ React11.createElement("div", {
964
+ }, /* @__PURE__ */ React10.createElement("div", {
984
965
  role: "none",
985
966
  className: "overflow-y-auto pli-cardSpacingInline plb-cardSpacingBlock"
986
- }, /* @__PURE__ */ React11.createElement(BaseObjectSettings, {
967
+ }, /* @__PURE__ */ React10.createElement(BaseObjectSettings, {
987
968
  object
988
- }, /* @__PURE__ */ React11.createElement(Surface, {
969
+ }, /* @__PURE__ */ React10.createElement(Surface, {
989
970
  role: "base-object-settings",
990
971
  data
991
- })), /* @__PURE__ */ React11.createElement(Surface, {
972
+ })), /* @__PURE__ */ React10.createElement(Surface, {
992
973
  role: "object-settings",
993
974
  data
994
975
  }))));
@@ -997,17 +978,16 @@ var ObjectSettingsContainer = ({ object, role }) => {
997
978
  }
998
979
  };
999
980
 
1000
- // packages/plugins/plugin-space/src/components/PersistenceStatus.tsx
1001
- import { useSignals as _useSignals12 } from "@preact-signals/safe-react/tracking";
1002
- import { ArrowsCounterClockwise, CheckCircle as CheckCircle2, Warning } from "@phosphor-icons/react";
1003
- import React12, { useEffect as useEffect2, useState as useState4 } from "react";
981
+ // src/components/PersistenceStatus.tsx
982
+ import { useSignals as _useSignals11 } from "@preact-signals/safe-react/tracking";
983
+ import React11, { useEffect as useEffect2, useState as useState4 } from "react";
1004
984
  import { debounce } from "@dxos/async";
1005
- import { Tooltip, useTranslation as useTranslation11 } from "@dxos/react-ui";
1006
- import { getSize as getSize3, mx as mx4, staticPlaceholderText, warningText } from "@dxos/react-ui-theme";
985
+ import { Icon as Icon7, Tooltip, useTranslation as useTranslation10 } from "@dxos/react-ui";
986
+ import { mx, staticPlaceholderText, warningText } from "@dxos/react-ui-theme";
1007
987
  var PersistenceStatus = ({ db }) => {
1008
- var _effect = _useSignals12();
988
+ var _effect = _useSignals11();
1009
989
  try {
1010
- const { t } = useTranslation11(SPACE_PLUGIN);
990
+ const { t } = useTranslation10(SPACE_PLUGIN);
1011
991
  const [displayMessage, setDisplayMessage] = useState4(false);
1012
992
  const [status, naturalSetStatus] = useState4(0);
1013
993
  const [prevStatus, setPrevStatus] = useState4(0);
@@ -1024,32 +1004,38 @@ var PersistenceStatus = ({ db }) => {
1024
1004
  ]);
1025
1005
  switch (status) {
1026
1006
  case 2:
1027
- return /* @__PURE__ */ React12.createElement("div", {
1007
+ return /* @__PURE__ */ React11.createElement("div", {
1028
1008
  className: "flex items-center"
1029
- }, /* @__PURE__ */ React12.createElement(Warning, {
1030
- className: mx4(getSize3(4), "me-1")
1031
- }), /* @__PURE__ */ React12.createElement("span", {
1032
- className: mx4("text-sm", warningText)
1009
+ }, /* @__PURE__ */ React11.createElement(Icon7, {
1010
+ icon: "ph--warning--regular",
1011
+ size: 4,
1012
+ classNames: "me-1"
1013
+ }), /* @__PURE__ */ React11.createElement("span", {
1014
+ className: mx("text-sm", warningText)
1033
1015
  }, t("persistence error label")));
1034
1016
  case 1:
1035
- return /* @__PURE__ */ React12.createElement("div", {
1017
+ return /* @__PURE__ */ React11.createElement("div", {
1036
1018
  className: "flex items-center"
1037
- }, /* @__PURE__ */ React12.createElement(ArrowsCounterClockwise, {
1038
- className: mx4(getSize3(4), "me-1")
1039
- }), /* @__PURE__ */ React12.createElement("span", {
1040
- className: mx4("text-sm", staticPlaceholderText)
1019
+ }, /* @__PURE__ */ React11.createElement(Icon7, {
1020
+ icon: "ph--arrows-counter-clockwise--regular",
1021
+ size: 4,
1022
+ classNames: "me-1"
1023
+ }), /* @__PURE__ */ React11.createElement("span", {
1024
+ className: mx("text-sm", staticPlaceholderText)
1041
1025
  }, t("persistence pending label")));
1042
1026
  case 0:
1043
1027
  default:
1044
- return /* @__PURE__ */ React12.createElement(Tooltip.Trigger, {
1028
+ return /* @__PURE__ */ React11.createElement(Tooltip.Trigger, {
1045
1029
  delayDuration: 400,
1046
1030
  role: "status",
1047
1031
  content: t("persisted locally message"),
1048
1032
  className: "flex items-center"
1049
- }, /* @__PURE__ */ React12.createElement(CheckCircle2, {
1050
- className: mx4(getSize3(4), "me-1")
1051
- }), displayMessage && /* @__PURE__ */ React12.createElement("span", {
1052
- className: mx4("text-sm", staticPlaceholderText)
1033
+ }, /* @__PURE__ */ React11.createElement(Icon7, {
1034
+ icon: "ph--check-circle--regular",
1035
+ size: 4,
1036
+ classNames: "me-1"
1037
+ }), displayMessage && /* @__PURE__ */ React11.createElement("span", {
1038
+ className: mx("text-sm", staticPlaceholderText)
1053
1039
  }, t("persisted locally label")));
1054
1040
  }
1055
1041
  } finally {
@@ -1057,18 +1043,18 @@ var PersistenceStatus = ({ db }) => {
1057
1043
  }
1058
1044
  };
1059
1045
 
1060
- // packages/plugins/plugin-space/src/components/PopoverRenameObject.tsx
1061
- import { useSignals as _useSignals13 } from "@preact-signals/safe-react/tracking";
1062
- import React13, { useCallback as useCallback7, useRef as useRef4, useState as useState5 } from "react";
1046
+ // src/components/PopoverRenameObject.tsx
1047
+ import { useSignals as _useSignals12 } from "@preact-signals/safe-react/tracking";
1048
+ import React12, { useCallback as useCallback7, useRef as useRef4, useState as useState5 } from "react";
1063
1049
  import { createIntent as createIntent6, LayoutAction as LayoutAction5, useIntentDispatcher as useIntentDispatcher6 } from "@dxos/app-framework";
1064
1050
  import { log as log2 } from "@dxos/log";
1065
- import { Button as Button5, Input as Input3, useTranslation as useTranslation12 } from "@dxos/react-ui";
1066
- var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/PopoverRenameObject.tsx";
1051
+ import { Button as Button5, Input as Input3, useTranslation as useTranslation11 } from "@dxos/react-ui";
1052
+ var __dxlog_file3 = "/__w/dxos/dxos/packages/plugins/plugin-space/src/components/PopoverRenameObject.tsx";
1067
1053
  var POPOVER_RENAME_OBJECT = `${SPACE_PLUGIN}/PopoverRenameObject`;
1068
1054
  var PopoverRenameObject = ({ object: obj }) => {
1069
- var _effect = _useSignals13();
1055
+ var _effect = _useSignals12();
1070
1056
  try {
1071
- const { t } = useTranslation12(SPACE_PLUGIN);
1057
+ const { t } = useTranslation11(SPACE_PLUGIN);
1072
1058
  const doneButton = useRef4(null);
1073
1059
  const object = obj;
1074
1060
  const [name, setName] = useState5(object.name || object.title || "");
@@ -1076,10 +1062,10 @@ var PopoverRenameObject = ({ object: obj }) => {
1076
1062
  const handleDone = useCallback7(() => {
1077
1063
  try {
1078
1064
  object.name = name;
1079
- } catch {
1065
+ } catch (err) {
1080
1066
  try {
1081
1067
  object.title = name;
1082
- } catch (err) {
1068
+ } catch {
1083
1069
  log2.error("Failed to rename object", {
1084
1070
  err
1085
1071
  }, {
@@ -1102,21 +1088,21 @@ var PopoverRenameObject = ({ object: obj }) => {
1102
1088
  object,
1103
1089
  name
1104
1090
  ]);
1105
- return /* @__PURE__ */ React13.createElement("div", {
1091
+ return /* @__PURE__ */ React12.createElement("div", {
1106
1092
  role: "none",
1107
1093
  className: "p-2 flex gap-2"
1108
- }, /* @__PURE__ */ React13.createElement("div", {
1094
+ }, /* @__PURE__ */ React12.createElement("div", {
1109
1095
  role: "none",
1110
1096
  className: "flex-1"
1111
- }, /* @__PURE__ */ React13.createElement(Input3.Root, null, /* @__PURE__ */ React13.createElement(Input3.Label, {
1097
+ }, /* @__PURE__ */ React12.createElement(Input3.Root, null, /* @__PURE__ */ React12.createElement(Input3.Label, {
1112
1098
  srOnly: true
1113
- }, t("object name label")), /* @__PURE__ */ React13.createElement(Input3.TextInput, {
1099
+ }, t("object name label")), /* @__PURE__ */ React12.createElement(Input3.TextInput, {
1114
1100
  placeholder: t("object placeholder"),
1115
1101
  value: name,
1116
1102
  "data-testid": "spacePlugin.renameObject.input",
1117
1103
  onChange: ({ target: { value } }) => setName(value),
1118
1104
  onKeyDown: ({ key }) => key === "Enter" && doneButton.current?.click()
1119
- }))), /* @__PURE__ */ React13.createElement(Button5, {
1105
+ }))), /* @__PURE__ */ React12.createElement(Button5, {
1120
1106
  ref: doneButton,
1121
1107
  classNames: "self-stretch",
1122
1108
  onClick: handleDone
@@ -1128,16 +1114,16 @@ var PopoverRenameObject = ({ object: obj }) => {
1128
1114
  }
1129
1115
  };
1130
1116
 
1131
- // packages/plugins/plugin-space/src/components/PopoverRenameSpace.tsx
1132
- import { useSignals as _useSignals14 } from "@preact-signals/safe-react/tracking";
1133
- import React14, { useCallback as useCallback8, useRef as useRef5, useState as useState6 } from "react";
1117
+ // src/components/PopoverRenameSpace.tsx
1118
+ import { useSignals as _useSignals13 } from "@preact-signals/safe-react/tracking";
1119
+ import React13, { useCallback as useCallback8, useRef as useRef5, useState as useState6 } from "react";
1134
1120
  import { createIntent as createIntent7, LayoutAction as LayoutAction6, useIntentDispatcher as useIntentDispatcher7 } from "@dxos/app-framework";
1135
- import { Button as Button6, Input as Input4, Popover, useTranslation as useTranslation13 } from "@dxos/react-ui";
1121
+ import { Button as Button6, Input as Input4, Popover, useTranslation as useTranslation12 } from "@dxos/react-ui";
1136
1122
  var POPOVER_RENAME_SPACE = `${SPACE_PLUGIN}/PopoverRenameSpace`;
1137
1123
  var PopoverRenameSpace = ({ space }) => {
1138
- var _effect = _useSignals14();
1124
+ var _effect = _useSignals13();
1139
1125
  try {
1140
- const { t } = useTranslation13(SPACE_PLUGIN);
1126
+ const { t } = useTranslation12(SPACE_PLUGIN);
1141
1127
  const doneButton = useRef5(null);
1142
1128
  const [name, setName] = useState6(space.properties.name ?? "");
1143
1129
  const { dispatchPromise: dispatch } = useIntentDispatcher7();
@@ -1155,24 +1141,24 @@ var PopoverRenameSpace = ({ space }) => {
1155
1141
  space,
1156
1142
  name
1157
1143
  ]);
1158
- return /* @__PURE__ */ React14.createElement("div", {
1144
+ return /* @__PURE__ */ React13.createElement("div", {
1159
1145
  role: "none",
1160
1146
  className: "p-2 flex gap-2"
1161
- }, /* @__PURE__ */ React14.createElement("div", {
1147
+ }, /* @__PURE__ */ React13.createElement("div", {
1162
1148
  role: "none",
1163
1149
  className: "flex-1"
1164
- }, /* @__PURE__ */ React14.createElement(Input4.Root, null, /* @__PURE__ */ React14.createElement(Input4.Label, {
1150
+ }, /* @__PURE__ */ React13.createElement(Input4.Root, null, /* @__PURE__ */ React13.createElement(Input4.Label, {
1165
1151
  srOnly: true
1166
- }, t("space name label")), /* @__PURE__ */ React14.createElement(Input4.TextInput, {
1152
+ }, t("space name label")), /* @__PURE__ */ React13.createElement(Input4.TextInput, {
1167
1153
  defaultValue: space.properties.name ?? "",
1168
1154
  placeholder: t("unnamed space label"),
1169
1155
  onChange: ({ target: { value } }) => setName(value),
1170
1156
  // TODO(wittjosiah): Ideally this should access the popover context to close the popover.
1171
1157
  // Currently this is not possible because Radix does not expose the popover context.
1172
1158
  onKeyDown: ({ key }) => key === "Enter" && doneButton.current?.click()
1173
- }))), /* @__PURE__ */ React14.createElement(Popover.Close, {
1159
+ }))), /* @__PURE__ */ React13.createElement(Popover.Close, {
1174
1160
  asChild: true
1175
- }, /* @__PURE__ */ React14.createElement(Button6, {
1161
+ }, /* @__PURE__ */ React13.createElement(Button6, {
1176
1162
  ref: doneButton,
1177
1163
  classNames: "self-stretch",
1178
1164
  onClick: handleDone
@@ -1184,10 +1170,10 @@ var PopoverRenameSpace = ({ space }) => {
1184
1170
  }
1185
1171
  };
1186
1172
 
1187
- // packages/plugins/plugin-space/src/components/SchemaContainer.tsx
1188
- import { useSignals as _useSignals15 } from "@preact-signals/safe-react/tracking";
1189
- import React15, { useState as useState7, useEffect as useEffect3 } from "react";
1190
- import { useTranslation as useTranslation14 } from "@dxos/react-ui";
1173
+ // src/components/SchemaContainer.tsx
1174
+ import { useSignals as _useSignals14 } from "@preact-signals/safe-react/tracking";
1175
+ import React14, { useState as useState7, useEffect as useEffect3 } from "react";
1176
+ import { useTranslation as useTranslation13 } from "@dxos/react-ui";
1191
1177
  import { controlItemClasses, ControlPage as ControlPage2, ControlSection as ControlSection2 } from "@dxos/react-ui-form";
1192
1178
  import { StackItem as StackItem3 } from "@dxos/react-ui-stack";
1193
1179
  var useQuerySpaceSchemas = (space) => {
@@ -1204,38 +1190,38 @@ var useQuerySpaceSchemas = (space) => {
1204
1190
  return schemas;
1205
1191
  };
1206
1192
  var SchemaContainer = ({ space }) => {
1207
- var _effect = _useSignals15();
1193
+ var _effect = _useSignals14();
1208
1194
  try {
1209
- const { t } = useTranslation14(SPACE_PLUGIN);
1195
+ const { t } = useTranslation13(SPACE_PLUGIN);
1210
1196
  const schemas = useQuerySpaceSchemas(space);
1211
- return /* @__PURE__ */ React15.createElement(StackItem3.Content, {
1197
+ return /* @__PURE__ */ React14.createElement(StackItem3.Content, {
1212
1198
  classNames: "block overflow-y-auto"
1213
- }, /* @__PURE__ */ React15.createElement(ControlPage2, null, /* @__PURE__ */ React15.createElement(ControlSection2, {
1199
+ }, /* @__PURE__ */ React14.createElement(ControlPage2, null, /* @__PURE__ */ React14.createElement(ControlSection2, {
1214
1200
  title: t("schema verbose label"),
1215
1201
  description: t("schema description")
1216
- }, /* @__PURE__ */ React15.createElement("div", {
1202
+ }, /* @__PURE__ */ React14.createElement("div", {
1217
1203
  role: "none",
1218
1204
  className: controlItemClasses
1219
- }, schemas.length === 0 && /* @__PURE__ */ React15.createElement("div", {
1205
+ }, schemas.length === 0 && /* @__PURE__ */ React14.createElement("div", {
1220
1206
  className: "text-center plb-4"
1221
- }, t("no schemas found message")), schemas.map((schema) => /* @__PURE__ */ React15.createElement("div", {
1207
+ }, t("no schemas found message")), schemas.map((schema) => /* @__PURE__ */ React14.createElement("div", {
1222
1208
  key: schema.id
1223
- }, /* @__PURE__ */ React15.createElement("div", null, schema.typename)))))));
1209
+ }, /* @__PURE__ */ React14.createElement("div", null, schema.typename)))))));
1224
1210
  } finally {
1225
1211
  _effect.f();
1226
1212
  }
1227
1213
  };
1228
1214
 
1229
- // packages/plugins/plugin-space/src/components/SpacePresence.tsx
1230
- import { useSignals as _useSignals16 } from "@preact-signals/safe-react/tracking";
1215
+ // src/components/SpacePresence.tsx
1216
+ import { useSignals as _useSignals15 } from "@preact-signals/safe-react/tracking";
1231
1217
  import { Option } from "effect";
1232
- import React16, { forwardRef, useCallback as useCallback9, useEffect as useEffect4, useState as useState8 } from "react";
1218
+ import React15, { forwardRef, useCallback as useCallback9, useEffect as useEffect4, useState as useState8 } from "react";
1233
1219
  import { useAppGraph as useAppGraph2, useCapability } from "@dxos/app-framework";
1234
1220
  import { generateName } from "@dxos/display-name";
1235
1221
  import { PublicKey, useClient as useClient5 } from "@dxos/react-client";
1236
1222
  import { getSpace as getSpace3, useMembers, fullyQualifiedId as fullyQualifiedId3 } from "@dxos/react-client/echo";
1237
1223
  import { useIdentity } from "@dxos/react-client/halo";
1238
- import { Avatar, Tooltip as Tooltip2, Popover as Popover2, useTranslation as useTranslation15, List, ListItem, useDefaultValue } from "@dxos/react-ui";
1224
+ import { Avatar, Tooltip as Tooltip2, Popover as Popover2, useTranslation as useTranslation14, List, ListItem, useDefaultValue } from "@dxos/react-ui";
1239
1225
  import { AttentionGlyph, useAttended, useAttention } from "@dxos/react-ui-attention";
1240
1226
  import { ComplexMap, keyToFallback } from "@dxos/util";
1241
1227
  var REFRESH_INTERVAL = 5e3;
@@ -1243,7 +1229,7 @@ var ACTIVITY_DURATION = 3e4;
1243
1229
  var noViewers = new ComplexMap(PublicKey.hash);
1244
1230
  var getName = (identity) => identity.profile?.displayName ?? generateName(identity.identityKey.toHex());
1245
1231
  var SpacePresence = ({ object, spaceKey }) => {
1246
- var _effect = _useSignals16();
1232
+ var _effect = _useSignals15();
1247
1233
  try {
1248
1234
  const spaceState = useCapability(SpaceCapabilities.MutableState);
1249
1235
  const client = useClient5();
@@ -1273,7 +1259,7 @@ var SpacePresence = ({ object, spaceKey }) => {
1273
1259
  lastSeen
1274
1260
  };
1275
1261
  }).toSorted((a, b) => a.lastSeen - b.lastSeen);
1276
- return /* @__PURE__ */ React16.createElement(FullPresence, {
1262
+ return /* @__PURE__ */ React15.createElement(FullPresence, {
1277
1263
  members: membersForObject
1278
1264
  });
1279
1265
  } finally {
@@ -1281,46 +1267,46 @@ var SpacePresence = ({ object, spaceKey }) => {
1281
1267
  }
1282
1268
  };
1283
1269
  var FullPresence = (props) => {
1284
- var _effect = _useSignals16();
1270
+ var _effect = _useSignals15();
1285
1271
  try {
1286
1272
  const { size = 9, onMemberClick } = props;
1287
1273
  const members = useDefaultValue(props.members, () => []);
1288
1274
  if (members.length === 0) {
1289
1275
  return null;
1290
1276
  }
1291
- return /* @__PURE__ */ React16.createElement("div", {
1277
+ return /* @__PURE__ */ React15.createElement("div", {
1292
1278
  className: "dx-avatar-group",
1293
1279
  "data-testid": "spacePlugin.presence"
1294
- }, members.slice(0, 3).map((member, i) => /* @__PURE__ */ React16.createElement(Tooltip2.Trigger, {
1280
+ }, members.slice(0, 3).map((member, i) => /* @__PURE__ */ React15.createElement(Tooltip2.Trigger, {
1295
1281
  key: member.identity.identityKey.toHex(),
1296
1282
  side: "bottom",
1297
1283
  content: getName(member.identity),
1298
1284
  className: "grid focus:outline-none"
1299
- }, /* @__PURE__ */ React16.createElement(PresenceAvatar, {
1285
+ }, /* @__PURE__ */ React15.createElement(PresenceAvatar, {
1300
1286
  identity: member.identity,
1301
1287
  match: member.currentlyAttended,
1302
1288
  index: members.length - i,
1303
1289
  onClick: () => onMemberClick?.(member),
1304
1290
  size
1305
- }))), members.length > 3 && /* @__PURE__ */ React16.createElement(Popover2.Root, null, /* @__PURE__ */ React16.createElement(Popover2.Trigger, {
1291
+ }))), members.length > 3 && /* @__PURE__ */ React15.createElement(Popover2.Root, null, /* @__PURE__ */ React15.createElement(Popover2.Trigger, {
1306
1292
  className: "grid focus:outline-none"
1307
- }, /* @__PURE__ */ React16.createElement(Avatar.Root, null, /* @__PURE__ */ React16.createElement(Avatar.Content, {
1293
+ }, /* @__PURE__ */ React15.createElement(Avatar.Root, null, /* @__PURE__ */ React15.createElement(Avatar.Content, {
1308
1294
  status: "inactive",
1309
1295
  style: {
1310
1296
  zIndex: members.length - 4
1311
1297
  },
1312
1298
  fallback: `+${members.length - 3}`,
1313
1299
  size
1314
- }))), /* @__PURE__ */ React16.createElement(Popover2.Portal, null, /* @__PURE__ */ React16.createElement(Popover2.Content, {
1300
+ }))), /* @__PURE__ */ React15.createElement(Popover2.Portal, null, /* @__PURE__ */ React15.createElement(Popover2.Content, {
1315
1301
  side: "bottom"
1316
- }, /* @__PURE__ */ React16.createElement(Popover2.Arrow, null), /* @__PURE__ */ React16.createElement(Popover2.Viewport, {
1302
+ }, /* @__PURE__ */ React15.createElement(Popover2.Arrow, null), /* @__PURE__ */ React15.createElement(Popover2.Viewport, {
1317
1303
  classNames: "max-bs-56"
1318
- }, /* @__PURE__ */ React16.createElement(List, null, members.map((member) => /* @__PURE__ */ React16.createElement(ListItem.Root, {
1304
+ }, /* @__PURE__ */ React15.createElement(List, null, members.map((member) => /* @__PURE__ */ React15.createElement(ListItem.Root, {
1319
1305
  key: member.identity.identityKey.toHex(),
1320
1306
  classNames: "flex gap-2 items-center cursor-pointer mbe-2",
1321
1307
  onClick: () => onMemberClick?.(member),
1322
1308
  "data-testid": "identity-list-item"
1323
- }, /* @__PURE__ */ React16.createElement(PresenceAvatar, {
1309
+ }, /* @__PURE__ */ React15.createElement(PresenceAvatar, {
1324
1310
  identity: member.identity,
1325
1311
  size,
1326
1312
  showName: true,
@@ -1331,11 +1317,11 @@ var FullPresence = (props) => {
1331
1317
  }
1332
1318
  };
1333
1319
  var PresenceAvatar = /* @__PURE__ */ forwardRef(({ identity, showName, match, index, onClick, size }, forwardedRef) => {
1334
- var _effect = _useSignals16();
1320
+ var _effect = _useSignals15();
1335
1321
  try {
1336
1322
  const status = match ? "current" : "active";
1337
1323
  const fallbackValue = keyToFallback(identity.identityKey);
1338
- return /* @__PURE__ */ React16.createElement(Avatar.Root, null, /* @__PURE__ */ React16.createElement(Avatar.Content, {
1324
+ return /* @__PURE__ */ React15.createElement(Avatar.Root, null, /* @__PURE__ */ React15.createElement(Avatar.Content, {
1339
1325
  status,
1340
1326
  hue: identity.profile?.data?.hue || fallbackValue.hue,
1341
1327
  "data-testid": "spacePlugin.presence.member",
@@ -1349,7 +1335,7 @@ var PresenceAvatar = /* @__PURE__ */ forwardRef(({ identity, showName, match, in
1349
1335
  onClick,
1350
1336
  fallback: identity.profile?.data?.emoji || fallbackValue.emoji,
1351
1337
  ref: forwardedRef
1352
- }), /* @__PURE__ */ React16.createElement(Avatar.Label, {
1338
+ }), /* @__PURE__ */ React15.createElement(Avatar.Label, {
1353
1339
  classNames: showName ? "text-sm truncate pli-2" : "sr-only"
1354
1340
  }, getName(identity)));
1355
1341
  } finally {
@@ -1357,7 +1343,7 @@ var PresenceAvatar = /* @__PURE__ */ forwardRef(({ identity, showName, match, in
1357
1343
  }
1358
1344
  });
1359
1345
  var SmallPresenceLive = ({ id, open, viewers }) => {
1360
- var _effect = _useSignals16();
1346
+ var _effect = _useSignals15();
1361
1347
  try {
1362
1348
  const { hasAttention, isAncestor, isRelated } = useAttention(id);
1363
1349
  const isAttended = hasAttention || isAncestor || isRelated;
@@ -1382,7 +1368,7 @@ var SmallPresenceLive = ({ id, open, viewers }) => {
1382
1368
  }, [
1383
1369
  viewers
1384
1370
  ]);
1385
- return /* @__PURE__ */ React16.createElement(SmallPresence, {
1371
+ return /* @__PURE__ */ React15.createElement(SmallPresence, {
1386
1372
  count: activeViewers.length,
1387
1373
  attended: isAttended,
1388
1374
  containsAttended
@@ -1392,16 +1378,16 @@ var SmallPresenceLive = ({ id, open, viewers }) => {
1392
1378
  }
1393
1379
  };
1394
1380
  var SmallPresence = ({ count = 0, attended, containsAttended }) => {
1395
- var _effect = _useSignals16();
1381
+ var _effect = _useSignals15();
1396
1382
  try {
1397
- const { t } = useTranslation15(SPACE_PLUGIN);
1398
- return /* @__PURE__ */ React16.createElement(Tooltip2.Trigger, {
1383
+ const { t } = useTranslation14(SPACE_PLUGIN);
1384
+ return /* @__PURE__ */ React15.createElement(Tooltip2.Trigger, {
1399
1385
  asChild: true,
1400
1386
  content: t("presence label", {
1401
1387
  count
1402
1388
  }),
1403
1389
  side: "bottom"
1404
- }, /* @__PURE__ */ React16.createElement(AttentionGlyph, {
1390
+ }, /* @__PURE__ */ React15.createElement(AttentionGlyph, {
1405
1391
  attended,
1406
1392
  containsAttended,
1407
1393
  presence: count > 1 ? "many" : count === 1 ? "one" : "none",
@@ -1412,46 +1398,46 @@ var SmallPresence = ({ count = 0, attended, containsAttended }) => {
1412
1398
  }
1413
1399
  };
1414
1400
 
1415
- // packages/plugins/plugin-space/src/components/SpacePluginSettings.tsx
1416
- import { useSignals as _useSignals17 } from "@preact-signals/safe-react/tracking";
1417
- import React17 from "react";
1401
+ // src/components/SpacePluginSettings.tsx
1402
+ import { useSignals as _useSignals16 } from "@preact-signals/safe-react/tracking";
1403
+ import React16 from "react";
1418
1404
  import { createIntent as createIntent8, useIntentDispatcher as useIntentDispatcher8 } from "@dxos/app-framework";
1419
1405
  import { useClient as useClient6 } from "@dxos/react-client";
1420
1406
  import { useSpaces as useSpaces2 } from "@dxos/react-client/echo";
1421
- import { Input as Input5, toLocalizedString as toLocalizedString3, useTranslation as useTranslation16, List as List2, ListItem as ListItem2, IconButton } from "@dxos/react-ui";
1407
+ import { Input as Input5, toLocalizedString as toLocalizedString3, useTranslation as useTranslation15, List as List2, ListItem as ListItem2, IconButton } from "@dxos/react-ui";
1422
1408
  import { controlItemClasses as controlItemClasses2, ControlPage as ControlPage3, ControlSection as ControlSection3, DeprecatedFormInput } from "@dxos/react-ui-form";
1423
1409
  var SpacePluginSettings = ({ settings }) => {
1424
- var _effect = _useSignals17();
1410
+ var _effect = _useSignals16();
1425
1411
  try {
1426
- const { t } = useTranslation16(SPACE_PLUGIN);
1412
+ const { t } = useTranslation15(SPACE_PLUGIN);
1427
1413
  const client = useClient6();
1428
1414
  const spaces = useSpaces2({
1429
1415
  all: settings.showHidden
1430
1416
  });
1431
1417
  const { dispatchPromise: dispatch } = useIntentDispatcher8();
1432
- return /* @__PURE__ */ React17.createElement(ControlPage3, null, /* @__PURE__ */ React17.createElement(ControlSection3, {
1418
+ return /* @__PURE__ */ React16.createElement(ControlPage3, null, /* @__PURE__ */ React16.createElement(ControlSection3, {
1433
1419
  title: t("space settings label"),
1434
1420
  description: t("space settings description")
1435
- }, /* @__PURE__ */ React17.createElement("div", {
1421
+ }, /* @__PURE__ */ React16.createElement("div", {
1436
1422
  className: "pli-trimMd container-max-width"
1437
- }, /* @__PURE__ */ React17.createElement(DeprecatedFormInput, {
1423
+ }, /* @__PURE__ */ React16.createElement(DeprecatedFormInput, {
1438
1424
  label: t("show hidden spaces label")
1439
- }, /* @__PURE__ */ React17.createElement(Input5.Switch, {
1425
+ }, /* @__PURE__ */ React16.createElement(Input5.Switch, {
1440
1426
  checked: settings.showHidden,
1441
1427
  onCheckedChange: (checked) => settings.showHidden = !!checked
1442
- }))), /* @__PURE__ */ React17.createElement(List2, {
1428
+ }))), /* @__PURE__ */ React16.createElement(List2, {
1443
1429
  classNames: [
1444
1430
  controlItemClasses2,
1445
1431
  "flex flex-col gap-trimSm"
1446
1432
  ]
1447
- }, spaces.map((space) => /* @__PURE__ */ React17.createElement(ListItem2.Root, {
1433
+ }, spaces.map((space) => /* @__PURE__ */ React16.createElement(ListItem2.Root, {
1448
1434
  key: space.id,
1449
1435
  classNames: "is-full items-center"
1450
- }, /* @__PURE__ */ React17.createElement(ListItem2.Heading, {
1436
+ }, /* @__PURE__ */ React16.createElement(ListItem2.Heading, {
1451
1437
  classNames: "grow truncate !min-bs-0"
1452
1438
  }, toLocalizedString3(getSpaceDisplayName(space, {
1453
1439
  personal: space === client.spaces.default
1454
- }), t)), /* @__PURE__ */ React17.createElement(IconButton, {
1440
+ }), t)), /* @__PURE__ */ React16.createElement(IconButton, {
1455
1441
  icon: "ph--faders--regular",
1456
1442
  onClick: () => dispatch(createIntent8(SpaceAction.OpenSettings, {
1457
1443
  space
@@ -1463,29 +1449,29 @@ var SpacePluginSettings = ({ settings }) => {
1463
1449
  }
1464
1450
  };
1465
1451
 
1466
- // packages/plugins/plugin-space/src/components/SpaceSettings/SpaceSettingsContainer.tsx
1467
- import { useSignals as _useSignals18 } from "@preact-signals/safe-react/tracking";
1452
+ // src/components/SpaceSettings/SpaceSettingsContainer.tsx
1453
+ import { useSignals as _useSignals17 } from "@preact-signals/safe-react/tracking";
1468
1454
  import { pipe as pipe2, Schema } from "effect";
1469
- import React18, { useCallback as useCallback10, useMemo as useMemo3, useState as useState9 } from "react";
1455
+ import React17, { useCallback as useCallback10, useMemo as useMemo3, useState as useState9 } from "react";
1470
1456
  import { chain as chain2, createIntent as createIntent9, LayoutAction as LayoutAction7, useIntentDispatcher as useIntentDispatcher9 } from "@dxos/app-framework";
1471
1457
  import { log as log3 } from "@dxos/log";
1472
1458
  import { EdgeReplicationSetting } from "@dxos/protocols/proto/dxos/echo/metadata";
1473
1459
  import { useClient as useClient7 } from "@dxos/react-client";
1474
1460
  import { SpaceState as SpaceState2 } from "@dxos/react-client/echo";
1475
- import { Button as Button7, Input as Input6, useMulticastObservable, useTranslation as useTranslation17 } from "@dxos/react-ui";
1461
+ import { Button as Button7, Input as Input6, useMulticastObservable, useTranslation as useTranslation16 } from "@dxos/react-ui";
1476
1462
  import { Form as Form3, ControlItem, ControlItemInput as ControlItemInput2, ControlSection as ControlSection4, ControlPage as ControlPage4 } from "@dxos/react-ui-form";
1477
1463
  import { HuePicker, IconPicker } from "@dxos/react-ui-pickers";
1478
1464
  import { StackItem as StackItem4 } from "@dxos/react-ui-stack";
1479
- var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/SpaceSettings/SpaceSettingsContainer.tsx";
1465
+ var __dxlog_file4 = "/__w/dxos/dxos/packages/plugins/plugin-space/src/components/SpaceSettings/SpaceSettingsContainer.tsx";
1480
1466
  var FormSchema = SpaceForm.pipe(Schema.extend(Schema.Struct({
1481
1467
  archived: Schema.Boolean.annotations({
1482
1468
  title: "Archive space"
1483
1469
  })
1484
1470
  })));
1485
1471
  var SpaceSettingsContainer = ({ space }) => {
1486
- var _effect = _useSignals18();
1472
+ var _effect = _useSignals17();
1487
1473
  try {
1488
- const { t } = useTranslation17(SPACE_PLUGIN);
1474
+ const { t } = useTranslation16(SPACE_PLUGIN);
1489
1475
  const { dispatchPromise: dispatch } = useIntentDispatcher9();
1490
1476
  const client = useClient7();
1491
1477
  const archived = useMulticastObservable(space.state) === SpaceState2.SPACE_INACTIVE;
@@ -1551,10 +1537,10 @@ var SpaceSettingsContainer = ({ space }) => {
1551
1537
  onValueChange,
1552
1538
  type
1553
1539
  ]);
1554
- return /* @__PURE__ */ React18.createElement(ControlItemInput2, {
1540
+ return /* @__PURE__ */ React17.createElement(ControlItemInput2, {
1555
1541
  title: label,
1556
1542
  description: t("display name description")
1557
- }, /* @__PURE__ */ React18.createElement(Input6.TextInput, {
1543
+ }, /* @__PURE__ */ React17.createElement(Input6.TextInput, {
1558
1544
  value: getValue(),
1559
1545
  onChange: handleChange,
1560
1546
  placeholder: t("display name input placeholder"),
@@ -1570,10 +1556,10 @@ var SpaceSettingsContainer = ({ space }) => {
1570
1556
  onValueChange,
1571
1557
  type
1572
1558
  ]);
1573
- return /* @__PURE__ */ React18.createElement(ControlItem, {
1559
+ return /* @__PURE__ */ React17.createElement(ControlItem, {
1574
1560
  title: label,
1575
1561
  description: t("icon description")
1576
- }, /* @__PURE__ */ React18.createElement(IconPicker, {
1562
+ }, /* @__PURE__ */ React17.createElement(IconPicker, {
1577
1563
  value: getValue(),
1578
1564
  onChange: handleChange,
1579
1565
  onReset: handleEmojiReset,
@@ -1590,10 +1576,10 @@ var SpaceSettingsContainer = ({ space }) => {
1590
1576
  onValueChange,
1591
1577
  type
1592
1578
  ]);
1593
- return /* @__PURE__ */ React18.createElement(ControlItem, {
1579
+ return /* @__PURE__ */ React17.createElement(ControlItem, {
1594
1580
  title: label,
1595
1581
  description: t("hue description")
1596
- }, /* @__PURE__ */ React18.createElement(HuePicker, {
1582
+ }, /* @__PURE__ */ React17.createElement(HuePicker, {
1597
1583
  value: getValue(),
1598
1584
  onChange: handleChange,
1599
1585
  onReset: handleHueReset,
@@ -1605,10 +1591,10 @@ var SpaceSettingsContainer = ({ space }) => {
1605
1591
  onValueChange,
1606
1592
  type
1607
1593
  ]);
1608
- return /* @__PURE__ */ React18.createElement(ControlItemInput2, {
1594
+ return /* @__PURE__ */ React17.createElement(ControlItemInput2, {
1609
1595
  title: label,
1610
1596
  description: t("edge replication description")
1611
- }, /* @__PURE__ */ React18.createElement(Input6.Switch, {
1597
+ }, /* @__PURE__ */ React17.createElement(Input6.Switch, {
1612
1598
  checked: getValue(),
1613
1599
  onCheckedChange: handleChange,
1614
1600
  classNames: "justify-self-end"
@@ -1620,10 +1606,10 @@ var SpaceSettingsContainer = ({ space }) => {
1620
1606
  type,
1621
1607
  getValue
1622
1608
  ]);
1623
- return /* @__PURE__ */ React18.createElement(ControlItemInput2, {
1609
+ return /* @__PURE__ */ React17.createElement(ControlItemInput2, {
1624
1610
  title: label,
1625
1611
  description: t("archive space description")
1626
- }, /* @__PURE__ */ React18.createElement(Button7, {
1612
+ }, /* @__PURE__ */ React17.createElement(Button7, {
1627
1613
  disabled: space === client.spaces.default,
1628
1614
  onClick: handleChange
1629
1615
  }, getValue() ? t("unarchive space label") : t("archive space label")));
@@ -1632,16 +1618,16 @@ var SpaceSettingsContainer = ({ space }) => {
1632
1618
  t,
1633
1619
  space
1634
1620
  ]);
1635
- return /* @__PURE__ */ React18.createElement(StackItem4.Content, {
1621
+ return /* @__PURE__ */ React17.createElement(StackItem4.Content, {
1636
1622
  classNames: "block overflow-y-auto pli-2"
1637
- }, /* @__PURE__ */ React18.createElement(ControlPage4, null, /* @__PURE__ */ React18.createElement(ControlSection4, {
1623
+ }, /* @__PURE__ */ React17.createElement(ControlPage4, null, /* @__PURE__ */ React17.createElement(ControlSection4, {
1638
1624
  title: t("space properties settings verbose label", {
1639
1625
  ns: SPACE_PLUGIN
1640
1626
  }),
1641
1627
  description: t("space properties settings description", {
1642
1628
  ns: SPACE_PLUGIN
1643
1629
  })
1644
- }, /* @__PURE__ */ React18.createElement(Form3, {
1630
+ }, /* @__PURE__ */ React17.createElement(Form3, {
1645
1631
  schema: FormSchema,
1646
1632
  values,
1647
1633
  autoSave: true,
@@ -1655,16 +1641,16 @@ var SpaceSettingsContainer = ({ space }) => {
1655
1641
  }
1656
1642
  };
1657
1643
 
1658
- // packages/plugins/plugin-space/src/components/SyncStatus/InlineSyncStatus.tsx
1659
- import { useSignals as _useSignals19 } from "@preact-signals/safe-react/tracking";
1644
+ // src/components/SyncStatus/InlineSyncStatus.tsx
1645
+ import { useSignals as _useSignals18 } from "@preact-signals/safe-react/tracking";
1660
1646
  import { Option as Option2 } from "effect";
1661
- import React19, { useEffect as useEffect5, useState as useState10 } from "react";
1647
+ import React18, { useEffect as useEffect5, useState as useState10 } from "react";
1662
1648
  import { useAppGraph as useAppGraph3 } from "@dxos/app-framework";
1663
1649
  import { EdgeStatus } from "@dxos/protocols/proto/dxos/client/services";
1664
1650
  import { EdgeReplicationSetting as EdgeReplicationSetting2 } from "@dxos/protocols/proto/dxos/echo/metadata";
1665
1651
  import { useClient as useClient8 } from "@dxos/react-client";
1666
1652
  import { useSpaceSyncState } from "@dxos/react-client/echo";
1667
- import { Tooltip as Tooltip3, useTranslation as useTranslation18 } from "@dxos/react-ui";
1653
+ import { Tooltip as Tooltip3, useTranslation as useTranslation17 } from "@dxos/react-ui";
1668
1654
  import { AttentionGlyph as AttentionGlyph2, useAttended as useAttended2, useAttention as useAttention2 } from "@dxos/react-ui-attention";
1669
1655
  var useEdgeStatus = () => {
1670
1656
  const [status, setStatus] = useState10(EdgeStatus.NOT_CONNECTED);
@@ -1679,9 +1665,9 @@ var useEdgeStatus = () => {
1679
1665
  return status;
1680
1666
  };
1681
1667
  var InlineSyncStatus = ({ space, open }) => {
1682
- var _effect = _useSignals19();
1668
+ var _effect = _useSignals18();
1683
1669
  try {
1684
- const { t } = useTranslation18(SPACE_PLUGIN);
1670
+ const { t } = useTranslation17(SPACE_PLUGIN);
1685
1671
  const id = space.id;
1686
1672
  const { hasAttention, isAncestor, isRelated } = useAttention2(id);
1687
1673
  const isAttended = hasAttention || isAncestor || isRelated;
@@ -1694,11 +1680,11 @@ var InlineSyncStatus = ({ space, open }) => {
1694
1680
  const edgeSyncEnabled = space.internal.data.edgeReplication === EdgeReplicationSetting2.ENABLED;
1695
1681
  const syncState = useSpaceSyncState(space);
1696
1682
  const syncing = connectedToEdge && edgeSyncEnabled && syncState && syncState.missingOnLocal > 0;
1697
- return /* @__PURE__ */ React19.createElement(Tooltip3.Trigger, {
1683
+ return /* @__PURE__ */ React18.createElement(Tooltip3.Trigger, {
1698
1684
  asChild: true,
1699
1685
  content: t("syncing label"),
1700
1686
  side: "bottom"
1701
- }, /* @__PURE__ */ React19.createElement(AttentionGlyph2, {
1687
+ }, /* @__PURE__ */ React18.createElement(AttentionGlyph2, {
1702
1688
  syncing,
1703
1689
  attended: isAttended,
1704
1690
  containsAttended,
@@ -1709,17 +1695,17 @@ var InlineSyncStatus = ({ space, open }) => {
1709
1695
  }
1710
1696
  };
1711
1697
 
1712
- // packages/plugins/plugin-space/src/components/SyncStatus/SyncStatus.tsx
1713
- import { useSignals as _useSignals20 } from "@preact-signals/safe-react/tracking";
1714
- import React20, { useEffect as useEffect6, useState as useState11 } from "react";
1698
+ // src/components/SyncStatus/SyncStatus.tsx
1699
+ import { useSignals as _useSignals19 } from "@preact-signals/safe-react/tracking";
1700
+ import React19, { useEffect as useEffect6, useState as useState11 } from "react";
1715
1701
  import { StatusBar } from "@dxos/plugin-status-bar";
1716
1702
  import { useClient as useClient9 } from "@dxos/react-client";
1717
1703
  import { getSyncSummary, useSyncState } from "@dxos/react-client/echo";
1718
- import { Icon as Icon5, useTranslation as useTranslation19 } from "@dxos/react-ui";
1704
+ import { Icon as Icon8, useTranslation as useTranslation18 } from "@dxos/react-ui";
1719
1705
 
1720
- // packages/plugins/plugin-space/src/components/SyncStatus/save-tracker.ts
1706
+ // src/components/SyncStatus/save-tracker.ts
1721
1707
  import { Context } from "@dxos/context";
1722
- var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/SyncStatus/save-tracker.ts";
1708
+ var __dxlog_file5 = "/__w/dxos/dxos/packages/plugins/plugin-space/src/components/SyncStatus/save-tracker.ts";
1723
1709
  var createClientSaveTracker = (client, cb) => {
1724
1710
  const CleanupFns = {};
1725
1711
  const state = {};
@@ -1756,15 +1742,15 @@ var createSpaceSaveTracker = (space, cb) => {
1756
1742
  }
1757
1743
  let hasUnsavedChanges = false;
1758
1744
  let lastFlushPromise;
1759
- space.crud.saveStateChanged.on(ctx, ({ unsavedDocuments }) => {
1745
+ space.db.saveStateChanged.on(ctx, ({ unsavedDocuments }) => {
1760
1746
  hasUnsavedChanges = unsavedDocuments.length > 0;
1761
1747
  });
1762
- space.crud.saveStateChanged.debounce(500).on(ctx, () => {
1748
+ space.db.saveStateChanged.debounce(500).on(ctx, () => {
1763
1749
  if (hasUnsavedChanges) {
1764
1750
  lastFlushPromise = void 0;
1765
1751
  cb("saving");
1766
1752
  } else {
1767
- const flushPromise = space.crud.flush();
1753
+ const flushPromise = space.db.flush();
1768
1754
  lastFlushPromise = flushPromise;
1769
1755
  void flushPromise.then(() => {
1770
1756
  if (lastFlushPromise === flushPromise) {
@@ -1779,7 +1765,7 @@ var createSpaceSaveTracker = (space, cb) => {
1779
1765
  };
1780
1766
  };
1781
1767
 
1782
- // packages/plugins/plugin-space/src/components/SyncStatus/status.ts
1768
+ // src/components/SyncStatus/status.ts
1783
1769
  var getStatus = ({ offline, saved, needsToUpload, needsToDownload }) => {
1784
1770
  if (!saved) {
1785
1771
  return "saving locally";
@@ -1808,10 +1794,10 @@ var getIcon = (status) => {
1808
1794
  }
1809
1795
  };
1810
1796
 
1811
- // packages/plugins/plugin-space/src/components/SyncStatus/SyncStatus.tsx
1797
+ // src/components/SyncStatus/SyncStatus.tsx
1812
1798
  var SYNC_STALLED_TIMEOUT = 5e3;
1813
1799
  var SyncStatus = () => {
1814
- var _effect = _useSignals20();
1800
+ var _effect = _useSignals19();
1815
1801
  try {
1816
1802
  const client = useClient9();
1817
1803
  const state = useSyncState();
@@ -1821,7 +1807,7 @@ var SyncStatus = () => {
1821
1807
  setSaved(state2 === "saved");
1822
1808
  });
1823
1809
  }, []);
1824
- return /* @__PURE__ */ React20.createElement(SyncStatusIndicator, {
1810
+ return /* @__PURE__ */ React19.createElement(SyncStatusIndicator, {
1825
1811
  state,
1826
1812
  saved
1827
1813
  });
@@ -1830,9 +1816,9 @@ var SyncStatus = () => {
1830
1816
  }
1831
1817
  };
1832
1818
  var SyncStatusIndicator = ({ state, saved }) => {
1833
- var _effect = _useSignals20();
1819
+ var _effect = _useSignals19();
1834
1820
  try {
1835
- const { t } = useTranslation19(SPACE_PLUGIN);
1821
+ const { t } = useTranslation18(SPACE_PLUGIN);
1836
1822
  const summary = getSyncSummary(state);
1837
1823
  const offline = Object.values(state).length === 0;
1838
1824
  const needsToUpload = summary.differentDocuments > 0 || summary.missingOnRemote > 0;
@@ -1859,12 +1845,12 @@ var SyncStatusIndicator = ({ state, saved }) => {
1859
1845
  needsToDownload
1860
1846
  ]);
1861
1847
  const title = t(`${status} label`);
1862
- const icon = /* @__PURE__ */ React20.createElement(Icon5, {
1848
+ const icon = /* @__PURE__ */ React19.createElement(Icon8, {
1863
1849
  icon: getIcon(status),
1864
1850
  size: 4,
1865
1851
  classNames
1866
1852
  });
1867
- return /* @__PURE__ */ React20.createElement(StatusBar.Item, {
1853
+ return /* @__PURE__ */ React19.createElement(StatusBar.Item, {
1868
1854
  title
1869
1855
  }, icon);
1870
1856
  } finally {
@@ -1872,13 +1858,92 @@ var SyncStatusIndicator = ({ state, saved }) => {
1872
1858
  }
1873
1859
  };
1874
1860
 
1861
+ // src/components/ViewEditor.tsx
1862
+ import { useSignals as _useSignals20 } from "@preact-signals/safe-react/tracking";
1863
+ import React20, { useCallback as useCallback11, useMemo as useMemo4 } from "react";
1864
+ import { createIntent as createIntent10, useIntentDispatcher as useIntentDispatcher10 } from "@dxos/app-framework";
1865
+ import { Type as Type3 } from "@dxos/echo";
1866
+ import { invariant as invariant2 } from "@dxos/invariant";
1867
+ import { useClient as useClient10 } from "@dxos/react-client";
1868
+ import { Filter as Filter2, getSpace as getSpace4, useQuery as useQuery3, useSchema } from "@dxos/react-client/echo";
1869
+ import { ViewEditor as NativeViewEditor } from "@dxos/react-ui-form";
1870
+ import { DataType as DataType3 } from "@dxos/schema";
1871
+ var __dxlog_file6 = "/__w/dxos/dxos/packages/plugins/plugin-space/src/components/ViewEditor.tsx";
1872
+ var ViewEditor = ({ view }) => {
1873
+ var _effect = _useSignals20();
1874
+ try {
1875
+ const { dispatchPromise: dispatch } = useIntentDispatcher10();
1876
+ const client = useClient10();
1877
+ const space = getSpace4(view);
1878
+ const schema = useSchema(client, space, view.query.typename);
1879
+ const views = useQuery3(space, Filter2.type(DataType3.View));
1880
+ const currentTypename = useMemo4(() => view.query?.typename, [
1881
+ view.query?.typename
1882
+ ]);
1883
+ const handleUpdateTypename = useCallback11((typename) => {
1884
+ invariant2(schema, void 0, {
1885
+ F: __dxlog_file6,
1886
+ L: 30,
1887
+ S: void 0,
1888
+ A: [
1889
+ "schema",
1890
+ ""
1891
+ ]
1892
+ });
1893
+ invariant2(Type3.isMutable(schema), void 0, {
1894
+ F: __dxlog_file6,
1895
+ L: 31,
1896
+ S: void 0,
1897
+ A: [
1898
+ "Type.isMutable(schema)",
1899
+ ""
1900
+ ]
1901
+ });
1902
+ const matchingViews = views.filter((view2) => view2.query.typename === currentTypename);
1903
+ for (const view2 of matchingViews) {
1904
+ view2.query.typename = typename;
1905
+ }
1906
+ schema.updateTypename(typename);
1907
+ }, [
1908
+ views,
1909
+ schema
1910
+ ]);
1911
+ const handleDelete = useCallback11((fieldId) => {
1912
+ void dispatch(createIntent10(SpaceAction.DeleteField, {
1913
+ view,
1914
+ fieldId
1915
+ }));
1916
+ }, [
1917
+ dispatch,
1918
+ view
1919
+ ]);
1920
+ if (!space || !schema) {
1921
+ return null;
1922
+ }
1923
+ return /* @__PURE__ */ React20.createElement(NativeViewEditor, {
1924
+ registry: space.db.schemaRegistry,
1925
+ schema,
1926
+ view,
1927
+ onTypenameChanged: Type3.isMutable(schema) ? handleUpdateTypename : void 0,
1928
+ onDelete: Type3.isMutable(schema) ? handleDelete : void 0,
1929
+ outerSpacing: false
1930
+ });
1931
+ } finally {
1932
+ _effect.f();
1933
+ }
1934
+ };
1935
+
1936
+ // src/components/index.ts
1937
+ import { lazy as lazy2 } from "react";
1938
+ var CollectionMain = lazy2(() => import("./CollectionMain-D2B75XBS.mjs"));
1939
+ var ObjectDetailsPanel = lazy2(() => import("./ObjectDetailsPanel-YPTDQKMG.mjs"));
1940
+
1875
1941
  export {
1876
1942
  AwaitingObject,
1877
1943
  CREATE_OBJECT_DIALOG,
1878
1944
  CreateObjectDialog,
1879
1945
  CREATE_SPACE_DIALOG,
1880
1946
  CreateSpaceDialog,
1881
- CollectionMain,
1882
1947
  CollectionSection,
1883
1948
  JOIN_DIALOG,
1884
1949
  JoinDialog,
@@ -1901,6 +1966,9 @@ export {
1901
1966
  InlineSyncStatus,
1902
1967
  SyncStatus,
1903
1968
  SyncStatusIndicator,
1969
+ ViewEditor,
1970
+ CollectionMain,
1971
+ ObjectDetailsPanel,
1904
1972
  AppGraphBuilder,
1905
1973
  AppGraphSerializer,
1906
1974
  IdentityCreated,
@@ -1913,4 +1981,4 @@ export {
1913
1981
  SpaceState,
1914
1982
  SpacesReady
1915
1983
  };
1916
- //# sourceMappingURL=chunk-NFUKCRGE.mjs.map
1984
+ //# sourceMappingURL=chunk-V7MJSSBQ.mjs.map