@dxos/plugin-space 0.10.0 → 0.11.1

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 (646) hide show
  1. package/PLUGIN.mdl +11 -0
  2. package/dist/lib/SpacePlugin.mjs +2 -0
  3. package/dist/lib/SpacePlugin.node.mjs +628 -0
  4. package/dist/lib/SpacePlugin.node.mjs.map +1 -0
  5. package/dist/lib/SpacePlugin.workerd.mjs +26 -0
  6. package/dist/lib/SpacePlugin.workerd.mjs.map +1 -0
  7. package/dist/lib/capabilities/node.mjs +10 -0
  8. package/dist/lib/capabilities/node.mjs.map +1 -0
  9. package/dist/lib/capabilities.mjs +24 -0
  10. package/dist/lib/capabilities.mjs.map +1 -0
  11. package/dist/lib/chunk-CollectionArticle.mjs +90 -0
  12. package/dist/lib/chunk-CollectionArticle.mjs.map +1 -0
  13. package/dist/lib/chunk-CollectionSection.mjs +21 -0
  14. package/dist/lib/chunk-CollectionSection.mjs.map +1 -0
  15. package/dist/lib/chunk-CreateObjectDialog.mjs +178 -0
  16. package/dist/lib/chunk-CreateObjectDialog.mjs.map +1 -0
  17. package/dist/lib/chunk-CreateSpaceDialog.mjs +68 -0
  18. package/dist/lib/chunk-CreateSpaceDialog.mjs.map +1 -0
  19. package/dist/lib/chunk-DefaultProperties.mjs +59 -0
  20. package/dist/lib/chunk-DefaultProperties.mjs.map +1 -0
  21. package/dist/lib/chunk-ImportSpaceDialog.mjs +58 -0
  22. package/dist/lib/chunk-ImportSpaceDialog.mjs.map +1 -0
  23. package/dist/lib/chunk-InlineSyncStatus.mjs +37 -0
  24. package/dist/lib/chunk-InlineSyncStatus.mjs.map +1 -0
  25. package/dist/lib/chunk-JoinDialog.mjs +65 -0
  26. package/dist/lib/chunk-JoinDialog.mjs.map +1 -0
  27. package/dist/lib/chunk-MembersContainer.mjs +263 -0
  28. package/dist/lib/chunk-MembersContainer.mjs.map +1 -0
  29. package/dist/lib/chunk-MergePreview.mjs +91 -0
  30. package/dist/lib/chunk-MergePreview.mjs.map +1 -0
  31. package/dist/lib/chunk-ObjectCardStack.mjs +68 -0
  32. package/dist/lib/chunk-ObjectCardStack.mjs.map +1 -0
  33. package/dist/lib/chunk-RecordArticle.mjs +106 -0
  34. package/dist/lib/chunk-RecordArticle.mjs.map +1 -0
  35. package/dist/lib/chunk-RelatedArticle.mjs +71 -0
  36. package/dist/lib/chunk-RelatedArticle.mjs.map +1 -0
  37. package/dist/lib/chunk-RenamePopover.mjs +94 -0
  38. package/dist/lib/chunk-RenamePopover.mjs.map +1 -0
  39. package/dist/lib/chunk-SchemaContainer.mjs +53 -0
  40. package/dist/lib/chunk-SchemaContainer.mjs.map +1 -0
  41. package/dist/lib/chunk-SmallPresenceLive.mjs +2 -0
  42. package/dist/lib/chunk-SpaceHomeArticle.mjs +82 -0
  43. package/dist/lib/chunk-SpaceHomeArticle.mjs.map +1 -0
  44. package/dist/lib/chunk-SpaceHomeDashboard.mjs +96 -0
  45. package/dist/lib/chunk-SpaceHomeDashboard.mjs.map +1 -0
  46. package/dist/lib/chunk-SpaceHomeRecent.mjs +79 -0
  47. package/dist/lib/chunk-SpaceHomeRecent.mjs.map +1 -0
  48. package/dist/lib/chunk-SpacePlugin.mjs +97 -0
  49. package/dist/lib/chunk-SpacePlugin.mjs.map +1 -0
  50. package/dist/lib/chunk-SpacePresence.mjs +155 -0
  51. package/dist/lib/chunk-SpacePresence.mjs.map +1 -0
  52. package/dist/lib/chunk-SpaceSettings.mjs +63 -0
  53. package/dist/lib/chunk-SpaceSettings.mjs.map +1 -0
  54. package/dist/lib/chunk-SpaceSettingsContainer.mjs +278 -0
  55. package/dist/lib/chunk-SpaceSettingsContainer.mjs.map +1 -0
  56. package/dist/lib/chunk-SyncStatus.mjs +166 -0
  57. package/dist/lib/chunk-SyncStatus.mjs.map +1 -0
  58. package/dist/lib/chunk-TypeArticle.mjs +469 -0
  59. package/dist/lib/chunk-TypeArticle.mjs.map +1 -0
  60. package/dist/lib/chunk-ViewEditor.mjs +78 -0
  61. package/dist/lib/chunk-ViewEditor.mjs.map +1 -0
  62. package/dist/lib/chunk-add-object.mjs +74 -0
  63. package/dist/lib/chunk-add-object.mjs.map +1 -0
  64. package/dist/lib/chunk-add-relation.mjs +16 -0
  65. package/dist/lib/chunk-add-relation.mjs.map +1 -0
  66. package/dist/lib/chunk-add-type.mjs +41 -0
  67. package/dist/lib/chunk-add-type.mjs.map +1 -0
  68. package/dist/lib/chunk-app-graph-builder.mjs +1056 -0
  69. package/dist/lib/chunk-app-graph-builder.mjs.map +1 -0
  70. package/dist/lib/chunk-close.mjs +11 -0
  71. package/dist/lib/chunk-close.mjs.map +1 -0
  72. package/dist/lib/chunk-collection-path.mjs +65 -0
  73. package/dist/lib/chunk-collection-path.mjs.map +1 -0
  74. package/dist/lib/chunk-create-object.mjs +80 -0
  75. package/dist/lib/chunk-create-object.mjs.map +1 -0
  76. package/dist/lib/chunk-create.mjs +62 -0
  77. package/dist/lib/chunk-create.mjs.map +1 -0
  78. package/dist/lib/chunk-definitions.mjs +466 -0
  79. package/dist/lib/chunk-definitions.mjs.map +1 -0
  80. package/dist/lib/chunk-delete-field.mjs +52 -0
  81. package/dist/lib/chunk-delete-field.mjs.map +1 -0
  82. package/dist/lib/chunk-delete.mjs +11 -0
  83. package/dist/lib/chunk-delete.mjs.map +1 -0
  84. package/dist/lib/chunk-duplicate-object.mjs +11 -0
  85. package/dist/lib/chunk-duplicate-object.mjs.map +1 -0
  86. package/dist/lib/chunk-errors.mjs +10 -0
  87. package/dist/lib/chunk-errors.mjs.map +1 -0
  88. package/dist/lib/chunk-export-space.mjs +24 -0
  89. package/dist/lib/chunk-export-space.mjs.map +1 -0
  90. package/dist/lib/chunk-find-duplicates.mjs +19 -0
  91. package/dist/lib/chunk-find-duplicates.mjs.map +1 -0
  92. package/dist/lib/chunk-get-share-link.mjs +29 -0
  93. package/dist/lib/chunk-get-share-link.mjs.map +1 -0
  94. package/dist/lib/chunk-helpers.mjs +14 -0
  95. package/dist/lib/chunk-helpers.mjs.map +1 -0
  96. package/dist/lib/chunk-identity-created.mjs +26 -0
  97. package/dist/lib/chunk-identity-created.mjs.map +1 -0
  98. package/dist/lib/chunk-import-space.mjs +16 -0
  99. package/dist/lib/chunk-import-space.mjs.map +1 -0
  100. package/dist/lib/chunk-join.mjs +35 -0
  101. package/dist/lib/chunk-join.mjs.map +1 -0
  102. package/dist/lib/chunk-merge-duplicates.mjs +62 -0
  103. package/dist/lib/chunk-merge-duplicates.mjs.map +1 -0
  104. package/dist/lib/{neutral/chunk-5ZZS3KMK.mjs → chunk-meta.mjs} +15 -24
  105. package/dist/lib/chunk-meta.mjs.map +1 -0
  106. package/dist/lib/chunk-migrate.mjs +45 -0
  107. package/dist/lib/chunk-migrate.mjs.map +1 -0
  108. package/dist/lib/chunk-navigation-handler.mjs +63 -0
  109. package/dist/lib/chunk-navigation-handler.mjs.map +1 -0
  110. package/dist/lib/chunk-navigation-target-resolver.mjs +79 -0
  111. package/dist/lib/chunk-navigation-target-resolver.mjs.map +1 -0
  112. package/dist/lib/chunk-open-create-object.mjs +32 -0
  113. package/dist/lib/chunk-open-create-object.mjs.map +1 -0
  114. package/dist/lib/chunk-open-create-space.mjs +16 -0
  115. package/dist/lib/chunk-open-create-space.mjs.map +1 -0
  116. package/dist/lib/chunk-open-import-space.mjs +16 -0
  117. package/dist/lib/chunk-open-import-space.mjs.map +1 -0
  118. package/dist/lib/chunk-open-members.mjs +15 -0
  119. package/dist/lib/chunk-open-members.mjs.map +1 -0
  120. package/dist/lib/chunk-open-settings.mjs +15 -0
  121. package/dist/lib/chunk-open-settings.mjs.map +1 -0
  122. package/dist/lib/chunk-open.mjs +11 -0
  123. package/dist/lib/chunk-open.mjs.map +1 -0
  124. package/dist/lib/chunk-operation-handler.mjs +13 -0
  125. package/dist/lib/chunk-operation-handler.mjs.map +1 -0
  126. package/dist/lib/chunk-react-root.mjs +20 -0
  127. package/dist/lib/chunk-react-root.mjs.map +1 -0
  128. package/dist/lib/chunk-react-surface.mjs +384 -0
  129. package/dist/lib/chunk-react-surface.mjs.map +1 -0
  130. package/dist/lib/chunk-remove-objects.mjs +83 -0
  131. package/dist/lib/chunk-remove-objects.mjs.map +1 -0
  132. package/dist/lib/chunk-rename-object.mjs +18 -0
  133. package/dist/lib/chunk-rename-object.mjs.map +1 -0
  134. package/dist/lib/chunk-rename.mjs +18 -0
  135. package/dist/lib/chunk-rename.mjs.map +1 -0
  136. package/dist/lib/chunk-repair.mjs +28 -0
  137. package/dist/lib/chunk-repair.mjs.map +1 -0
  138. package/dist/lib/chunk-restore-field.mjs +50 -0
  139. package/dist/lib/chunk-restore-field.mjs.map +1 -0
  140. package/dist/lib/chunk-restore-objects.mjs +33 -0
  141. package/dist/lib/chunk-restore-objects.mjs.map +1 -0
  142. package/dist/lib/chunk-settings.mjs +23 -0
  143. package/dist/lib/chunk-settings.mjs.map +1 -0
  144. package/dist/lib/chunk-share.mjs +23 -0
  145. package/dist/lib/chunk-share.mjs.map +1 -0
  146. package/dist/lib/chunk-snapshot.mjs +24 -0
  147. package/dist/lib/chunk-snapshot.mjs.map +1 -0
  148. package/dist/lib/chunk-spaces-ready.mjs +242 -0
  149. package/dist/lib/chunk-spaces-ready.mjs.map +1 -0
  150. package/dist/lib/chunk-state.mjs +48 -0
  151. package/dist/lib/chunk-state.mjs.map +1 -0
  152. package/dist/lib/chunk-types.mjs +56 -0
  153. package/dist/lib/chunk-types.mjs.map +1 -0
  154. package/dist/lib/chunk-undo-mappings.mjs +40 -0
  155. package/dist/lib/chunk-undo-mappings.mjs.map +1 -0
  156. package/dist/lib/chunk-util.mjs +34 -0
  157. package/dist/lib/chunk-util.mjs.map +1 -0
  158. package/dist/lib/chunk-wait-for-object.mjs +16 -0
  159. package/dist/lib/chunk-wait-for-object.mjs.map +1 -0
  160. package/dist/lib/components.mjs +329 -0
  161. package/dist/lib/components.mjs.map +1 -0
  162. package/dist/lib/{neutral/chunk-C2ULK22J.mjs → constants.mjs} +5 -10
  163. package/dist/lib/constants.mjs.map +1 -0
  164. package/dist/lib/containers.mjs +31 -0
  165. package/dist/lib/containers.mjs.map +1 -0
  166. package/dist/lib/hooks.mjs +185 -0
  167. package/dist/lib/hooks.mjs.map +1 -0
  168. package/dist/lib/index.mjs +7 -0
  169. package/dist/lib/meta.mjs +2 -0
  170. package/dist/lib/operations.mjs +8 -0
  171. package/dist/lib/operations.mjs.map +1 -0
  172. package/dist/lib/plugin.mjs +9 -0
  173. package/dist/lib/plugin.mjs.map +1 -0
  174. package/dist/lib/testing.mjs +2 -0
  175. package/dist/lib/translations.mjs +350 -0
  176. package/dist/lib/translations.mjs.map +1 -0
  177. package/dist/lib/types.mjs +60 -0
  178. package/dist/lib/types.mjs.map +1 -0
  179. package/dist/types/src/SpacePlugin.workerd.d.ts.map +1 -1
  180. package/dist/types/src/capabilities/SpaceFormFields.d.ts +10 -0
  181. package/dist/types/src/capabilities/SpaceFormFields.d.ts.map +1 -0
  182. package/dist/types/src/capabilities/SpaceSurfaces.d.ts +50 -0
  183. package/dist/types/src/capabilities/SpaceSurfaces.d.ts.map +1 -0
  184. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +1 -1
  185. package/dist/types/src/capabilities/app-graph-builder/extensions/collections.d.ts +6 -1
  186. package/dist/types/src/capabilities/app-graph-builder/extensions/collections.d.ts.map +1 -1
  187. package/dist/types/src/capabilities/app-graph-builder/extensions/companions.d.ts +1 -1
  188. package/dist/types/src/capabilities/app-graph-builder/extensions/companions.d.ts.map +1 -1
  189. package/dist/types/src/capabilities/app-graph-builder/extensions/database.d.ts +7 -1
  190. package/dist/types/src/capabilities/app-graph-builder/extensions/database.d.ts.map +1 -1
  191. package/dist/types/src/capabilities/app-graph-builder/extensions/settings.d.ts +2 -7
  192. package/dist/types/src/capabilities/app-graph-builder/extensions/settings.d.ts.map +1 -1
  193. package/dist/types/src/capabilities/app-graph-builder/extensions/shared.d.ts +3 -2
  194. package/dist/types/src/capabilities/app-graph-builder/extensions/shared.d.ts.map +1 -1
  195. package/dist/types/src/capabilities/app-graph-builder/extensions/spaces.d.ts +5 -0
  196. package/dist/types/src/capabilities/app-graph-builder/extensions/spaces.d.ts.map +1 -1
  197. package/dist/types/src/capabilities/create-object.d.ts +1 -1
  198. package/dist/types/src/capabilities/identity-created.d.ts +1 -1
  199. package/dist/types/src/capabilities/index.d.ts +1 -1
  200. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  201. package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts +3 -1
  202. package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -1
  203. package/dist/types/src/capabilities/navigation-target-resolver.d.ts +5 -0
  204. package/dist/types/src/capabilities/navigation-target-resolver.d.ts.map +1 -0
  205. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  206. package/dist/types/src/capabilities/react-root.d.ts +1 -1
  207. package/dist/types/src/capabilities/react-surface.d.ts +1 -1
  208. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  209. package/dist/types/src/capabilities/repair.d.ts +1 -1
  210. package/dist/types/src/capabilities/settings.d.ts +1 -1
  211. package/dist/types/src/capabilities/spaces-ready.d.ts +1 -1
  212. package/dist/types/src/capabilities/state.d.ts +1 -1
  213. package/dist/types/src/capabilities/try-get-view.d.ts +7 -0
  214. package/dist/types/src/capabilities/try-get-view.d.ts.map +1 -0
  215. package/dist/types/src/capabilities/undo-mappings.d.ts +1 -1
  216. package/dist/types/src/collection-path.d.ts +28 -0
  217. package/dist/types/src/collection-path.d.ts.map +1 -0
  218. package/dist/types/src/collection-path.test.d.ts +2 -0
  219. package/dist/types/src/collection-path.test.d.ts.map +1 -0
  220. package/dist/types/src/commands/space/export/export.d.ts +23 -0
  221. package/dist/types/src/commands/space/export/export.d.ts.map +1 -0
  222. package/dist/types/src/commands/space/export/export.test.d.ts +2 -0
  223. package/dist/types/src/commands/space/export/export.test.d.ts.map +1 -0
  224. package/dist/types/src/commands/space/export/index.d.ts +2 -0
  225. package/dist/types/src/commands/space/export/index.d.ts.map +1 -0
  226. package/dist/types/src/commands/space/import/import.d.ts +17 -0
  227. package/dist/types/src/commands/space/import/import.d.ts.map +1 -0
  228. package/dist/types/src/commands/space/import/import.test.d.ts +2 -0
  229. package/dist/types/src/commands/space/import/import.test.d.ts.map +1 -0
  230. package/dist/types/src/commands/space/import/index.d.ts +2 -0
  231. package/dist/types/src/commands/space/import/index.d.ts.map +1 -0
  232. package/dist/types/src/commands/space/index.d.ts +8 -1
  233. package/dist/types/src/commands/space/index.d.ts.map +1 -1
  234. package/dist/types/src/components/AwaitingObject/AwaitingObject.d.ts.map +1 -1
  235. package/dist/types/src/components/SyncStatus/status.d.ts +7 -4
  236. package/dist/types/src/components/SyncStatus/status.d.ts.map +1 -1
  237. package/dist/types/src/components/SyncStatus/status.test.d.ts +2 -0
  238. package/dist/types/src/components/SyncStatus/status.test.d.ts.map +1 -0
  239. package/dist/types/src/containers/CollectionArticle/CollectionArticle.d.ts +4 -4
  240. package/dist/types/src/containers/CollectionArticle/CollectionArticle.d.ts.map +1 -1
  241. package/dist/types/src/containers/CollectionSection/CollectionSection.d.ts +4 -1
  242. package/dist/types/src/containers/CollectionSection/CollectionSection.d.ts.map +1 -1
  243. package/dist/types/src/containers/CreateObjectDialog/CreateObjectDialog.d.ts +4 -1
  244. package/dist/types/src/containers/CreateObjectDialog/CreateObjectDialog.d.ts.map +1 -1
  245. package/dist/types/src/containers/CreateObjectDialog/CreateObjectDialog.stories.d.ts +420 -9
  246. package/dist/types/src/containers/CreateObjectDialog/CreateObjectDialog.stories.d.ts.map +1 -1
  247. package/dist/types/src/containers/CreateSpaceDialog/CreateSpaceDialog.d.ts +4 -1
  248. package/dist/types/src/containers/CreateSpaceDialog/CreateSpaceDialog.d.ts.map +1 -1
  249. package/dist/types/src/containers/CreateSpaceDialog/CreateSpaceDialog.stories.d.ts +423 -10
  250. package/dist/types/src/containers/CreateSpaceDialog/CreateSpaceDialog.stories.d.ts.map +1 -1
  251. package/dist/types/src/containers/ImportSpaceDialog/ImportSpaceDialog.d.ts +4 -1
  252. package/dist/types/src/containers/ImportSpaceDialog/ImportSpaceDialog.d.ts.map +1 -1
  253. package/dist/types/src/containers/InlineSyncStatus/InlineSyncStatus.d.ts +5 -2
  254. package/dist/types/src/containers/InlineSyncStatus/InlineSyncStatus.d.ts.map +1 -1
  255. package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts +4 -1
  256. package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -1
  257. package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts +423 -10
  258. package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts.map +1 -1
  259. package/dist/types/src/containers/MembersContainer/MembersContainer.d.ts +4 -1
  260. package/dist/types/src/containers/MembersContainer/MembersContainer.d.ts.map +1 -1
  261. package/dist/types/src/containers/MergePreview/MergePreview.d.ts +16 -0
  262. package/dist/types/src/containers/MergePreview/MergePreview.d.ts.map +1 -0
  263. package/dist/types/src/containers/MergePreview/index.d.ts +2 -0
  264. package/dist/types/src/containers/MergePreview/index.d.ts.map +1 -0
  265. package/dist/types/src/containers/ObjectCardStack/ObjectCardStack.d.ts +3 -2
  266. package/dist/types/src/containers/ObjectCardStack/ObjectCardStack.d.ts.map +1 -1
  267. package/dist/types/src/containers/RecordArticle/RecordArticle.d.ts +4 -1
  268. package/dist/types/src/containers/RecordArticle/RecordArticle.d.ts.map +1 -1
  269. package/dist/types/src/containers/RecordArticle/RecordArticle.stories.d.ts.map +1 -1
  270. package/dist/types/src/containers/RelatedArticle/RelatedArticle.d.ts +4 -1
  271. package/dist/types/src/containers/RelatedArticle/RelatedArticle.d.ts.map +1 -1
  272. package/dist/types/src/containers/RenamePopover/RenamePopover.d.ts +4 -4
  273. package/dist/types/src/containers/RenamePopover/RenamePopover.d.ts.map +1 -1
  274. package/dist/types/src/containers/SchemaContainer/SchemaContainer.d.ts +4 -7
  275. package/dist/types/src/containers/SchemaContainer/SchemaContainer.d.ts.map +1 -1
  276. package/dist/types/src/containers/SchemaContainer/use-query-space-types.d.ts +7 -0
  277. package/dist/types/src/containers/SchemaContainer/use-query-space-types.d.ts.map +1 -0
  278. package/dist/types/src/containers/SpaceHomeArticle/SpaceHomeArticle.d.ts +4 -11
  279. package/dist/types/src/containers/SpaceHomeArticle/SpaceHomeArticle.d.ts.map +1 -1
  280. package/dist/types/src/containers/SpaceHomeArticle/SpaceHomeArticle.stories.d.ts +14 -0
  281. package/dist/types/src/containers/SpaceHomeArticle/SpaceHomeArticle.stories.d.ts.map +1 -0
  282. package/dist/types/src/containers/SpaceHomeDashboard/SpaceHomeDashboard.d.ts +15 -0
  283. package/dist/types/src/containers/SpaceHomeDashboard/SpaceHomeDashboard.d.ts.map +1 -0
  284. package/dist/types/src/containers/SpaceHomeDashboard/SpaceHomeDashboard.stories.d.ts +20 -0
  285. package/dist/types/src/containers/SpaceHomeDashboard/SpaceHomeDashboard.stories.d.ts.map +1 -0
  286. package/dist/types/src/containers/SpaceHomeDashboard/index.d.ts +2 -0
  287. package/dist/types/src/containers/SpaceHomeDashboard/index.d.ts.map +1 -0
  288. package/dist/types/src/containers/SpaceHomeRecent/SpaceHomeRecent.d.ts +5 -8
  289. package/dist/types/src/containers/SpaceHomeRecent/SpaceHomeRecent.d.ts.map +1 -1
  290. package/dist/types/src/containers/SpacePresence/SpacePresence.d.ts +7 -4
  291. package/dist/types/src/containers/SpacePresence/SpacePresence.d.ts.map +1 -1
  292. package/dist/types/src/containers/SpacePresence/SpacePresence.stories.d.ts +419 -9
  293. package/dist/types/src/containers/SpacePresence/SpacePresence.stories.d.ts.map +1 -1
  294. package/dist/types/src/containers/SpaceSettings/SpaceSettings.d.ts +4 -1
  295. package/dist/types/src/containers/SpaceSettings/SpaceSettings.d.ts.map +1 -1
  296. package/dist/types/src/containers/SpaceSettings/SpaceSettings.stories.d.ts +423 -10
  297. package/dist/types/src/containers/SpaceSettings/SpaceSettings.stories.d.ts.map +1 -1
  298. package/dist/types/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.stories.d.ts +419 -9
  299. package/dist/types/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.stories.d.ts.map +1 -1
  300. package/dist/types/src/containers/SyncStatus/SyncStatus.d.ts +7 -2
  301. package/dist/types/src/containers/SyncStatus/SyncStatus.d.ts.map +1 -1
  302. package/dist/types/src/containers/SyncStatus/SyncStatus.stories.d.ts +434 -11
  303. package/dist/types/src/containers/SyncStatus/SyncStatus.stories.d.ts.map +1 -1
  304. package/dist/types/src/containers/TypeArticle/TypeArticle.d.ts +14 -0
  305. package/dist/types/src/containers/TypeArticle/TypeArticle.d.ts.map +1 -0
  306. package/dist/types/src/containers/TypeArticle/TypeArticle.stories.d.ts +45 -0
  307. package/dist/types/src/containers/TypeArticle/TypeArticle.stories.d.ts.map +1 -0
  308. package/dist/types/src/containers/TypeArticle/duplicatesGroup.d.ts +19 -0
  309. package/dist/types/src/containers/TypeArticle/duplicatesGroup.d.ts.map +1 -0
  310. package/dist/types/src/containers/TypeArticle/index.d.ts +2 -0
  311. package/dist/types/src/containers/TypeArticle/index.d.ts.map +1 -0
  312. package/dist/types/src/containers/TypeArticle/useDuplicates.d.ts +34 -0
  313. package/dist/types/src/containers/TypeArticle/useDuplicates.d.ts.map +1 -0
  314. package/dist/types/src/containers/ViewEditor/ViewEditor.d.ts +4 -1
  315. package/dist/types/src/containers/ViewEditor/ViewEditor.d.ts.map +1 -1
  316. package/dist/types/src/containers/index.d.ts +3 -2
  317. package/dist/types/src/containers/index.d.ts.map +1 -1
  318. package/dist/types/src/errors.d.ts +30 -0
  319. package/dist/types/src/errors.d.ts.map +1 -1
  320. package/dist/types/src/hooks/index.d.ts +2 -0
  321. package/dist/types/src/hooks/index.d.ts.map +1 -1
  322. package/dist/types/src/hooks/useEdgeStatus.d.ts +6 -0
  323. package/dist/types/src/hooks/useEdgeStatus.d.ts.map +1 -0
  324. package/dist/types/src/hooks/useInputSurfaceLookup.d.ts.map +1 -1
  325. package/dist/types/src/hooks/useStalled.d.ts +13 -0
  326. package/dist/types/src/hooks/useStalled.d.ts.map +1 -0
  327. package/dist/types/src/operations/create.d.ts.map +1 -1
  328. package/dist/types/src/operations/definitions.d.ts +29 -1
  329. package/dist/types/src/operations/definitions.d.ts.map +1 -1
  330. package/dist/types/src/operations/find-duplicates.d.ts +5 -0
  331. package/dist/types/src/operations/find-duplicates.d.ts.map +1 -0
  332. package/dist/types/src/operations/helpers.d.ts +3 -0
  333. package/dist/types/src/operations/helpers.d.ts.map +1 -1
  334. package/dist/types/src/operations/index.d.ts.map +1 -1
  335. package/dist/types/src/operations/join.d.ts.map +1 -1
  336. package/dist/types/src/operations/merge-duplicates.d.ts +5 -0
  337. package/dist/types/src/operations/merge-duplicates.d.ts.map +1 -0
  338. package/dist/types/src/operations/open-settings.d.ts.map +1 -1
  339. package/dist/types/src/operations/remove-objects.d.ts.map +1 -1
  340. package/dist/types/src/translations.d.ts +419 -9
  341. package/dist/types/src/translations.d.ts.map +1 -1
  342. package/dist/types/src/type-section-path.d.ts +22 -0
  343. package/dist/types/src/type-section-path.d.ts.map +1 -0
  344. package/dist/types/src/type-section-path.test.d.ts +2 -0
  345. package/dist/types/src/type-section-path.test.d.ts.map +1 -0
  346. package/dist/types/src/types/capabilities.d.ts +22 -2
  347. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  348. package/dist/types/src/types/surface.d.ts +4 -4
  349. package/dist/types/src/types/surface.d.ts.map +1 -1
  350. package/dist/types/src/types/types.d.ts +6 -0
  351. package/dist/types/src/types/types.d.ts.map +1 -1
  352. package/dist/types/tsconfig.tsbuildinfo +1 -1
  353. package/package.json +87 -72
  354. package/src/SpacePlugin.ts +6 -6
  355. package/src/SpacePlugin.workerd.ts +3 -1
  356. package/src/capabilities/SpaceFormFields.tsx +72 -0
  357. package/src/capabilities/SpaceSurfaces.tsx +219 -0
  358. package/src/capabilities/app-graph-builder/extensions/collections.ts +74 -21
  359. package/src/capabilities/app-graph-builder/extensions/companions.ts +10 -5
  360. package/src/capabilities/app-graph-builder/extensions/database.ts +64 -57
  361. package/src/capabilities/app-graph-builder/extensions/settings.ts +23 -13
  362. package/src/capabilities/app-graph-builder/extensions/shared.ts +3 -2
  363. package/src/capabilities/app-graph-builder/extensions/spaces.ts +6 -7
  364. package/src/capabilities/create-object.ts +1 -14
  365. package/src/capabilities/index.ts +4 -1
  366. package/src/capabilities/navigation-handler/navigation-handler.ts +27 -7
  367. package/src/capabilities/navigation-target-resolver.ts +77 -0
  368. package/src/capabilities/react-surface.ts +274 -0
  369. package/src/capabilities/spaces-ready.ts +31 -18
  370. package/src/capabilities/state.ts +3 -1
  371. package/src/capabilities/try-get-view.ts +24 -0
  372. package/src/collection-path.test.ts +161 -0
  373. package/src/collection-path.ts +97 -0
  374. package/src/commands/space/export/export.test.ts +68 -0
  375. package/src/commands/space/export/export.ts +118 -0
  376. package/src/commands/space/export/index.ts +5 -0
  377. package/src/commands/space/import/import.test.ts +80 -0
  378. package/src/commands/space/import/import.ts +65 -0
  379. package/src/commands/space/import/index.ts +5 -0
  380. package/src/commands/space/index.ts +16 -1
  381. package/src/components/AwaitingObject/AwaitingObject.tsx +10 -4
  382. package/src/components/CreateObjectPanel/CreateObjectPanel.tsx +16 -18
  383. package/src/components/SyncStatus/status.test.ts +49 -0
  384. package/src/components/SyncStatus/status.ts +25 -12
  385. package/src/containers/CollectionArticle/CollectionArticle.tsx +5 -3
  386. package/src/containers/CollectionSection/CollectionSection.tsx +2 -0
  387. package/src/containers/CreateObjectDialog/CreateObjectDialog.stories.tsx +18 -4
  388. package/src/containers/CreateObjectDialog/CreateObjectDialog.tsx +13 -17
  389. package/src/containers/CreateSpaceDialog/CreateSpaceDialog.tsx +28 -19
  390. package/src/containers/DefaultProperties/DefaultProperties.tsx +4 -2
  391. package/src/containers/ImportSpaceDialog/ImportSpaceDialog.tsx +4 -2
  392. package/src/containers/InlineSyncStatus/InlineSyncStatus.tsx +7 -17
  393. package/src/containers/JoinDialog/JoinDialog.tsx +5 -3
  394. package/src/containers/MembersContainer/MembersContainer.tsx +2 -0
  395. package/src/containers/MergePreview/MergePreview.tsx +90 -0
  396. package/src/containers/MergePreview/index.ts +5 -0
  397. package/src/containers/ObjectCardStack/ObjectCardStack.tsx +46 -43
  398. package/src/containers/RecordArticle/RecordArticle.stories.tsx +2 -1
  399. package/src/containers/RecordArticle/RecordArticle.tsx +8 -4
  400. package/src/containers/RelatedArticle/RelatedArticle.tsx +7 -3
  401. package/src/containers/RenamePopover/RenamePopover.tsx +2 -0
  402. package/src/containers/SchemaContainer/SchemaContainer.tsx +4 -17
  403. package/src/containers/SchemaContainer/use-query-space-types.ts +28 -0
  404. package/src/containers/SpaceHomeArticle/SpaceHomeArticle.stories.tsx +116 -0
  405. package/src/containers/SpaceHomeArticle/SpaceHomeArticle.tsx +6 -5
  406. package/src/containers/SpaceHomeDashboard/SpaceHomeDashboard.stories.tsx +99 -0
  407. package/src/containers/SpaceHomeDashboard/SpaceHomeDashboard.tsx +109 -0
  408. package/src/containers/SpaceHomeDashboard/index.ts +5 -0
  409. package/src/containers/SpaceHomeRecent/SpaceHomeRecent.tsx +17 -15
  410. package/src/containers/SpacePresence/SpacePresence.stories.tsx +4 -4
  411. package/src/containers/SpacePresence/SpacePresence.tsx +37 -36
  412. package/src/containers/SpaceSettings/SpaceSettings.tsx +3 -1
  413. package/src/containers/SpaceSettingsContainer/SpaceSettingsContainer.tsx +7 -2
  414. package/src/containers/SyncStatus/SyncStatus.stories.tsx +80 -1
  415. package/src/containers/SyncStatus/SyncStatus.tsx +36 -46
  416. package/src/containers/TypeArticle/TypeArticle.stories.tsx +249 -0
  417. package/src/containers/TypeArticle/TypeArticle.tsx +362 -0
  418. package/src/containers/TypeArticle/duplicatesGroup.tsx +150 -0
  419. package/src/containers/TypeArticle/index.ts +5 -0
  420. package/src/containers/TypeArticle/useDuplicates.ts +119 -0
  421. package/src/containers/ViewEditor/ViewEditor.tsx +3 -1
  422. package/src/containers/index.ts +3 -2
  423. package/src/errors.ts +6 -0
  424. package/src/hooks/index.ts +2 -0
  425. package/src/hooks/useEdgeStatus.ts +40 -0
  426. package/src/hooks/useInputSurfaceLookup.tsx +5 -4
  427. package/src/hooks/useRelatedObjects.ts +1 -1
  428. package/src/hooks/useStalled.ts +39 -0
  429. package/src/operations/add-object.ts +7 -7
  430. package/src/operations/create.ts +11 -3
  431. package/src/operations/definitions.ts +54 -1
  432. package/src/operations/find-duplicates.ts +33 -0
  433. package/src/operations/get-share-link.ts +1 -1
  434. package/src/operations/helpers.ts +11 -0
  435. package/src/operations/index.ts +2 -0
  436. package/src/operations/join.ts +6 -5
  437. package/src/operations/merge-duplicates.ts +51 -0
  438. package/src/operations/open-members.ts +3 -3
  439. package/src/operations/open-settings.ts +5 -3
  440. package/src/operations/remove-objects.ts +42 -3
  441. package/src/translations.ts +52 -11
  442. package/src/type-section-path.test.ts +48 -0
  443. package/src/type-section-path.ts +39 -0
  444. package/src/types/capabilities.ts +26 -2
  445. package/src/types/surface.ts +4 -8
  446. package/src/types/types.ts +7 -0
  447. package/dist/lib/neutral/CollectionArticle-BMH7SZ7Q.mjs +0 -93
  448. package/dist/lib/neutral/CollectionArticle-BMH7SZ7Q.mjs.map +0 -7
  449. package/dist/lib/neutral/CollectionSection-BLYTGOKH.mjs +0 -19
  450. package/dist/lib/neutral/CollectionSection-BLYTGOKH.mjs.map +0 -7
  451. package/dist/lib/neutral/CreateObjectDialog-5454N3FJ.mjs +0 -221
  452. package/dist/lib/neutral/CreateObjectDialog-5454N3FJ.mjs.map +0 -7
  453. package/dist/lib/neutral/CreateSpaceDialog-WWNUTLVK.mjs +0 -61
  454. package/dist/lib/neutral/CreateSpaceDialog-WWNUTLVK.mjs.map +0 -7
  455. package/dist/lib/neutral/DefaultProperties-5SAWQC6I.mjs +0 -58
  456. package/dist/lib/neutral/DefaultProperties-5SAWQC6I.mjs.map +0 -7
  457. package/dist/lib/neutral/ImportSpaceDialog-CSSRTFAO.mjs +0 -64
  458. package/dist/lib/neutral/ImportSpaceDialog-CSSRTFAO.mjs.map +0 -7
  459. package/dist/lib/neutral/InlineSyncStatus-UOUTAPCU.mjs +0 -49
  460. package/dist/lib/neutral/InlineSyncStatus-UOUTAPCU.mjs.map +0 -7
  461. package/dist/lib/neutral/JoinDialog-ATNUCNL2.mjs +0 -97
  462. package/dist/lib/neutral/JoinDialog-ATNUCNL2.mjs.map +0 -7
  463. package/dist/lib/neutral/MembersContainer-C4ZTP6ZW.mjs +0 -231
  464. package/dist/lib/neutral/MembersContainer-C4ZTP6ZW.mjs.map +0 -7
  465. package/dist/lib/neutral/MenuFooter-FWE5LFM4.mjs +0 -33
  466. package/dist/lib/neutral/MenuFooter-FWE5LFM4.mjs.map +0 -7
  467. package/dist/lib/neutral/ObjectCardStack-DHVDRNRK.mjs +0 -55
  468. package/dist/lib/neutral/ObjectCardStack-DHVDRNRK.mjs.map +0 -7
  469. package/dist/lib/neutral/RecordArticle-JSORXRAA.mjs +0 -102
  470. package/dist/lib/neutral/RecordArticle-JSORXRAA.mjs.map +0 -7
  471. package/dist/lib/neutral/RelatedArticle-Z777WVDW.mjs +0 -69
  472. package/dist/lib/neutral/RelatedArticle-Z777WVDW.mjs.map +0 -7
  473. package/dist/lib/neutral/RenamePopover-AZT2KPOF.mjs +0 -104
  474. package/dist/lib/neutral/RenamePopover-AZT2KPOF.mjs.map +0 -7
  475. package/dist/lib/neutral/SchemaContainer-4GJKQBXM.mjs +0 -53
  476. package/dist/lib/neutral/SchemaContainer-4GJKQBXM.mjs.map +0 -7
  477. package/dist/lib/neutral/SmallPresenceLive-FW3AMEY5.mjs +0 -8
  478. package/dist/lib/neutral/SmallPresenceLive-FW3AMEY5.mjs.map +0 -7
  479. package/dist/lib/neutral/SpaceHomeArticle-Y47TLZ72.mjs +0 -78
  480. package/dist/lib/neutral/SpaceHomeArticle-Y47TLZ72.mjs.map +0 -7
  481. package/dist/lib/neutral/SpaceHomeRecent-S57AO3EV.mjs +0 -89
  482. package/dist/lib/neutral/SpaceHomeRecent-S57AO3EV.mjs.map +0 -7
  483. package/dist/lib/neutral/SpacePlugin.mjs +0 -10
  484. package/dist/lib/neutral/SpacePlugin.mjs.map +0 -7
  485. package/dist/lib/neutral/SpacePlugin.node.mjs +0 -838
  486. package/dist/lib/neutral/SpacePlugin.node.mjs.map +0 -7
  487. package/dist/lib/neutral/SpacePlugin.workerd.mjs +0 -34
  488. package/dist/lib/neutral/SpacePlugin.workerd.mjs.map +0 -7
  489. package/dist/lib/neutral/SpacePresence-T37WH43Y.mjs +0 -11
  490. package/dist/lib/neutral/SpacePresence-T37WH43Y.mjs.map +0 -7
  491. package/dist/lib/neutral/SpaceSettings-6CZF7GEO.mjs +0 -60
  492. package/dist/lib/neutral/SpaceSettings-6CZF7GEO.mjs.map +0 -7
  493. package/dist/lib/neutral/SpaceSettingsContainer-72CJWELM.mjs +0 -279
  494. package/dist/lib/neutral/SpaceSettingsContainer-72CJWELM.mjs.map +0 -7
  495. package/dist/lib/neutral/SyncStatus-J7CHLO5O.mjs +0 -147
  496. package/dist/lib/neutral/SyncStatus-J7CHLO5O.mjs.map +0 -7
  497. package/dist/lib/neutral/TypeCollectionArticle-W76ADS2G.mjs +0 -143
  498. package/dist/lib/neutral/TypeCollectionArticle-W76ADS2G.mjs.map +0 -7
  499. package/dist/lib/neutral/ViewEditor-QXRUOKXR.mjs +0 -101
  500. package/dist/lib/neutral/ViewEditor-QXRUOKXR.mjs.map +0 -7
  501. package/dist/lib/neutral/add-object-H2N4AOQJ.mjs +0 -77
  502. package/dist/lib/neutral/add-object-H2N4AOQJ.mjs.map +0 -7
  503. package/dist/lib/neutral/add-relation-BGTLART5.mjs +0 -26
  504. package/dist/lib/neutral/add-relation-BGTLART5.mjs.map +0 -7
  505. package/dist/lib/neutral/add-type-JIDLRANR.mjs +0 -57
  506. package/dist/lib/neutral/add-type-JIDLRANR.mjs.map +0 -7
  507. package/dist/lib/neutral/app-graph-builder-7H2KOD4B.mjs +0 -1332
  508. package/dist/lib/neutral/app-graph-builder-7H2KOD4B.mjs.map +0 -7
  509. package/dist/lib/neutral/capabilities/index.mjs +0 -46
  510. package/dist/lib/neutral/capabilities/index.mjs.map +0 -7
  511. package/dist/lib/neutral/capabilities/node.mjs +0 -15
  512. package/dist/lib/neutral/capabilities/node.mjs.map +0 -7
  513. package/dist/lib/neutral/chunk-52ASDNRA.mjs +0 -41
  514. package/dist/lib/neutral/chunk-52ASDNRA.mjs.map +0 -7
  515. package/dist/lib/neutral/chunk-5ZZS3KMK.mjs.map +0 -7
  516. package/dist/lib/neutral/chunk-C2ULK22J.mjs.map +0 -7
  517. package/dist/lib/neutral/chunk-F5KLUP2P.mjs +0 -115
  518. package/dist/lib/neutral/chunk-F5KLUP2P.mjs.map +0 -7
  519. package/dist/lib/neutral/chunk-G2KHP7FX.mjs +0 -8
  520. package/dist/lib/neutral/chunk-G2KHP7FX.mjs.map +0 -7
  521. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +0 -10
  522. package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +0 -7
  523. package/dist/lib/neutral/chunk-LMUG6PEJ.mjs +0 -572
  524. package/dist/lib/neutral/chunk-LMUG6PEJ.mjs.map +0 -7
  525. package/dist/lib/neutral/chunk-RAAHDTVF.mjs +0 -167
  526. package/dist/lib/neutral/chunk-RAAHDTVF.mjs.map +0 -7
  527. package/dist/lib/neutral/chunk-SPWAMXNR.mjs +0 -131
  528. package/dist/lib/neutral/chunk-SPWAMXNR.mjs.map +0 -7
  529. package/dist/lib/neutral/chunk-U5WTDOMV.mjs +0 -8
  530. package/dist/lib/neutral/chunk-U5WTDOMV.mjs.map +0 -7
  531. package/dist/lib/neutral/chunk-V7JALUM3.mjs +0 -9
  532. package/dist/lib/neutral/chunk-V7JALUM3.mjs.map +0 -7
  533. package/dist/lib/neutral/close-5WEQZRNK.mjs +0 -17
  534. package/dist/lib/neutral/close-5WEQZRNK.mjs.map +0 -7
  535. package/dist/lib/neutral/components/index.mjs +0 -401
  536. package/dist/lib/neutral/components/index.mjs.map +0 -7
  537. package/dist/lib/neutral/constants.mjs +0 -16
  538. package/dist/lib/neutral/constants.mjs.map +0 -7
  539. package/dist/lib/neutral/containers/index.mjs +0 -55
  540. package/dist/lib/neutral/containers/index.mjs.map +0 -7
  541. package/dist/lib/neutral/create-QZ47FHQU.mjs +0 -75
  542. package/dist/lib/neutral/create-QZ47FHQU.mjs.map +0 -7
  543. package/dist/lib/neutral/create-object-ZU6FZW5X.mjs +0 -96
  544. package/dist/lib/neutral/create-object-ZU6FZW5X.mjs.map +0 -7
  545. package/dist/lib/neutral/delete-SPCU2VFM.mjs +0 -17
  546. package/dist/lib/neutral/delete-SPCU2VFM.mjs.map +0 -7
  547. package/dist/lib/neutral/delete-field-TAKJVEAD.mjs +0 -42
  548. package/dist/lib/neutral/delete-field-TAKJVEAD.mjs.map +0 -7
  549. package/dist/lib/neutral/duplicate-object-BUPZOO6S.mjs +0 -17
  550. package/dist/lib/neutral/duplicate-object-BUPZOO6S.mjs.map +0 -7
  551. package/dist/lib/neutral/export-space-S5SCAL4M.mjs +0 -34
  552. package/dist/lib/neutral/export-space-S5SCAL4M.mjs.map +0 -7
  553. package/dist/lib/neutral/get-share-link-CLM5IQRL.mjs +0 -41
  554. package/dist/lib/neutral/get-share-link-CLM5IQRL.mjs.map +0 -7
  555. package/dist/lib/neutral/hooks/index.mjs +0 -133
  556. package/dist/lib/neutral/hooks/index.mjs.map +0 -7
  557. package/dist/lib/neutral/identity-created-BEYMLBK4.mjs +0 -32
  558. package/dist/lib/neutral/identity-created-BEYMLBK4.mjs.map +0 -7
  559. package/dist/lib/neutral/import-space-LJQK3KT7.mjs +0 -28
  560. package/dist/lib/neutral/import-space-LJQK3KT7.mjs.map +0 -7
  561. package/dist/lib/neutral/index.mjs +0 -62
  562. package/dist/lib/neutral/index.mjs.map +0 -7
  563. package/dist/lib/neutral/join-FSODYIOC.mjs +0 -54
  564. package/dist/lib/neutral/join-FSODYIOC.mjs.map +0 -7
  565. package/dist/lib/neutral/meta.json +0 -1
  566. package/dist/lib/neutral/meta.mjs +0 -8
  567. package/dist/lib/neutral/meta.mjs.map +0 -7
  568. package/dist/lib/neutral/migrate-WHM6LU7L.mjs +0 -52
  569. package/dist/lib/neutral/migrate-WHM6LU7L.mjs.map +0 -7
  570. package/dist/lib/neutral/navigation-handler-ZF7MV2HL.mjs +0 -44
  571. package/dist/lib/neutral/navigation-handler-ZF7MV2HL.mjs.map +0 -7
  572. package/dist/lib/neutral/navigation-resolver-KBESOSWU.mjs +0 -82
  573. package/dist/lib/neutral/navigation-resolver-KBESOSWU.mjs.map +0 -7
  574. package/dist/lib/neutral/open-JCXTL3SK.mjs +0 -17
  575. package/dist/lib/neutral/open-JCXTL3SK.mjs.map +0 -7
  576. package/dist/lib/neutral/open-create-object-WAIAU7TA.mjs +0 -42
  577. package/dist/lib/neutral/open-create-object-WAIAU7TA.mjs.map +0 -7
  578. package/dist/lib/neutral/open-create-space-VU47FWPZ.mjs +0 -24
  579. package/dist/lib/neutral/open-create-space-VU47FWPZ.mjs.map +0 -7
  580. package/dist/lib/neutral/open-import-space-GUHIEWYB.mjs +0 -24
  581. package/dist/lib/neutral/open-import-space-GUHIEWYB.mjs.map +0 -7
  582. package/dist/lib/neutral/open-members-MLLBHKUU.mjs +0 -23
  583. package/dist/lib/neutral/open-members-MLLBHKUU.mjs.map +0 -7
  584. package/dist/lib/neutral/open-settings-DTPZF4U4.mjs +0 -23
  585. package/dist/lib/neutral/open-settings-DTPZF4U4.mjs.map +0 -7
  586. package/dist/lib/neutral/operation-handler-YPIRQOH2.mjs +0 -13
  587. package/dist/lib/neutral/operation-handler-YPIRQOH2.mjs.map +0 -7
  588. package/dist/lib/neutral/operations/index.mjs +0 -13
  589. package/dist/lib/neutral/operations/index.mjs.map +0 -7
  590. package/dist/lib/neutral/plugin.mjs +0 -18
  591. package/dist/lib/neutral/plugin.mjs.map +0 -7
  592. package/dist/lib/neutral/react-root-YLYRCSAZ.mjs +0 -23
  593. package/dist/lib/neutral/react-root-YLYRCSAZ.mjs.map +0 -7
  594. package/dist/lib/neutral/react-surface-LRA7GIFN.mjs +0 -367
  595. package/dist/lib/neutral/react-surface-LRA7GIFN.mjs.map +0 -7
  596. package/dist/lib/neutral/remove-objects-WEO66EDS.mjs +0 -55
  597. package/dist/lib/neutral/remove-objects-WEO66EDS.mjs.map +0 -7
  598. package/dist/lib/neutral/rename-Q6UNCBIM.mjs +0 -26
  599. package/dist/lib/neutral/rename-Q6UNCBIM.mjs.map +0 -7
  600. package/dist/lib/neutral/rename-object-2UCEGU7U.mjs +0 -26
  601. package/dist/lib/neutral/rename-object-2UCEGU7U.mjs.map +0 -7
  602. package/dist/lib/neutral/repair-HMH476U3.mjs +0 -32
  603. package/dist/lib/neutral/repair-HMH476U3.mjs.map +0 -7
  604. package/dist/lib/neutral/restore-field-6CQAFOXY.mjs +0 -40
  605. package/dist/lib/neutral/restore-field-6CQAFOXY.mjs.map +0 -7
  606. package/dist/lib/neutral/restore-objects-3VINLP7C.mjs +0 -39
  607. package/dist/lib/neutral/restore-objects-3VINLP7C.mjs.map +0 -7
  608. package/dist/lib/neutral/settings-5IBSYBVU.mjs +0 -28
  609. package/dist/lib/neutral/settings-5IBSYBVU.mjs.map +0 -7
  610. package/dist/lib/neutral/share-A4WPILNF.mjs +0 -31
  611. package/dist/lib/neutral/share-A4WPILNF.mjs.map +0 -7
  612. package/dist/lib/neutral/snapshot-HBYMAPA7.mjs +0 -30
  613. package/dist/lib/neutral/snapshot-HBYMAPA7.mjs.map +0 -7
  614. package/dist/lib/neutral/spaces-ready-GWMSU72V.mjs +0 -281
  615. package/dist/lib/neutral/spaces-ready-GWMSU72V.mjs.map +0 -7
  616. package/dist/lib/neutral/state-KMH2NUAL.mjs +0 -55
  617. package/dist/lib/neutral/state-KMH2NUAL.mjs.map +0 -7
  618. package/dist/lib/neutral/testing.mjs +0 -8
  619. package/dist/lib/neutral/testing.mjs.map +0 -7
  620. package/dist/lib/neutral/translations.mjs +0 -315
  621. package/dist/lib/neutral/translations.mjs.map +0 -7
  622. package/dist/lib/neutral/types/index.mjs +0 -40
  623. package/dist/lib/neutral/types/index.mjs.map +0 -7
  624. package/dist/lib/neutral/undo-mappings-P43EAUGI.mjs +0 -68
  625. package/dist/lib/neutral/undo-mappings-P43EAUGI.mjs.map +0 -7
  626. package/dist/lib/neutral/wait-for-object-U6P2NNWY.mjs +0 -23
  627. package/dist/lib/neutral/wait-for-object-U6P2NNWY.mjs.map +0 -7
  628. package/dist/types/src/capabilities/navigation-resolver.d.ts +0 -5
  629. package/dist/types/src/capabilities/navigation-resolver.d.ts.map +0 -1
  630. package/dist/types/src/containers/MenuFooter/MenuFooter.d.ts +0 -6
  631. package/dist/types/src/containers/MenuFooter/MenuFooter.d.ts.map +0 -1
  632. package/dist/types/src/containers/MenuFooter/index.d.ts +0 -2
  633. package/dist/types/src/containers/MenuFooter/index.d.ts.map +0 -1
  634. package/dist/types/src/containers/TypeCollectionArticle/TypeCollectionArticle.d.ts +0 -16
  635. package/dist/types/src/containers/TypeCollectionArticle/TypeCollectionArticle.d.ts.map +0 -1
  636. package/dist/types/src/containers/TypeCollectionArticle/TypeCollectionArticle.stories.d.ts +0 -21
  637. package/dist/types/src/containers/TypeCollectionArticle/TypeCollectionArticle.stories.d.ts.map +0 -1
  638. package/dist/types/src/containers/TypeCollectionArticle/index.d.ts +0 -2
  639. package/dist/types/src/containers/TypeCollectionArticle/index.d.ts.map +0 -1
  640. package/src/capabilities/navigation-resolver.ts +0 -94
  641. package/src/capabilities/react-surface.tsx +0 -395
  642. package/src/containers/MenuFooter/MenuFooter.tsx +0 -33
  643. package/src/containers/MenuFooter/index.ts +0 -5
  644. package/src/containers/TypeCollectionArticle/TypeCollectionArticle.stories.tsx +0 -116
  645. package/src/containers/TypeCollectionArticle/TypeCollectionArticle.tsx +0 -162
  646. package/src/containers/TypeCollectionArticle/index.ts +0 -5
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-export-space.mjs","names":[],"sources":["../../src/operations/export-space.ts"],"sourcesContent":["// Copyright 2026 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/compute';\n\nimport { SpaceOperation } from './definitions';\n\nconst handler: Operation.WithHandler<typeof SpaceOperation.ExportSpace> = SpaceOperation.ExportSpace.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ space, format }) {\n yield* Effect.promise(() => space.waitUntilReady());\n const archive = yield* Effect.promise(() => space.internal.export({ format }));\n yield* Effect.sync(() => {\n downloadArchive(new Blob([archive.contents as Uint8Array<ArrayBuffer>]), archive.filename);\n });\n }),\n ),\n);\nexport default handler;\n\nconst downloadArchive = (data: Blob, filename: string): void => {\n const url = URL.createObjectURL(data);\n const element = document.createElement('a');\n element.setAttribute('href', url);\n element.setAttribute('download', filename);\n element.setAttribute('target', 'download');\n element.click();\n URL.revokeObjectURL(url);\n};\n"],"mappings":";;;;AAQA,IAAM,UAAoE,eAAe,YAAY,KACnG,UAAU,YACR,OAAO,WAAW,WAAW,EAAE,OAAO,UAAU;CAC9C,OAAO,OAAO,cAAc,MAAM,eAAe,CAAC;CAClD,MAAM,UAAU,OAAO,OAAO,cAAc,MAAM,SAAS,OAAO,EAAE,OAAO,CAAC,CAAC;CAC7E,OAAO,OAAO,WAAW;EACvB,gBAAgB,IAAI,KAAK,CAAC,QAAQ,QAAmC,CAAC,GAAG,QAAQ,QAAQ;CAC3F,CAAC;AACH,CAAC,CACH,CACF;AAGA,IAAM,mBAAmB,MAAY,aAA2B;CAC9D,MAAM,MAAM,IAAI,gBAAgB,IAAI;CACpC,MAAM,UAAU,SAAS,cAAc,GAAG;CAC1C,QAAQ,aAAa,QAAQ,GAAG;CAChC,QAAQ,aAAa,YAAY,QAAQ;CACzC,QAAQ,aAAa,UAAU,UAAU;CACzC,QAAQ,MAAM;CACd,IAAI,gBAAgB,GAAG;AACzB"}
@@ -0,0 +1,19 @@
1
+ import { n as SpaceOperation } from "./chunk-definitions.mjs";
2
+ import { n as resolveIdentitySpec } from "./chunk-helpers.mjs";
3
+ import * as Effect from "effect/Effect";
4
+ import { Operation } from "@dxos/compute";
5
+ import { Database, Filter, Query } from "@dxos/echo";
6
+ import { findDuplicates } from "@dxos/extractor";
7
+ //#region src/operations/find-duplicates.ts
8
+ var handler = SpaceOperation.FindDuplicates.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ typename }) {
9
+ const spec = yield* resolveIdentitySpec(typename);
10
+ if (!spec) return { groups: [] };
11
+ return { groups: findDuplicates(spec, yield* Database.query(Query.select(Filter.type(spec.type))).run).map((group) => ({
12
+ keys: group.keys,
13
+ objectIds: group.objects.map((object) => object.id)
14
+ })) };
15
+ })));
16
+ //#endregion
17
+ export { handler as default };
18
+
19
+ //# sourceMappingURL=chunk-find-duplicates.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-find-duplicates.mjs","names":[],"sources":["../../src/operations/find-duplicates.ts"],"sourcesContent":["// Copyright 2026 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/compute';\nimport { Database, Filter, Query } from '@dxos/echo';\nimport { findDuplicates } from '@dxos/extractor';\n\nimport { SpaceOperation } from './definitions';\nimport { resolveIdentitySpec } from './helpers';\n\nconst handler: Operation.WithHandler<typeof SpaceOperation.FindDuplicates> = SpaceOperation.FindDuplicates.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ typename }) {\n const spec = yield* resolveIdentitySpec(typename);\n if (!spec) {\n return { groups: [] };\n }\n\n // Query through the spec's own type entity rather than the bare typename, so the filter uses\n // the same type identity the spec was registered under.\n const objects = yield* Database.query(Query.select(Filter.type(spec.type))).run;\n return {\n groups: findDuplicates(spec, objects).map((group) => ({\n keys: group.keys,\n objectIds: group.objects.map((object) => object.id),\n })),\n };\n }),\n ),\n);\n\nexport default handler;\n"],"mappings":";;;;;;;AAWA,IAAM,UAAuE,eAAe,eAAe,KACzG,UAAU,YACR,OAAO,WAAW,WAAW,EAAE,YAAY;CACzC,MAAM,OAAO,OAAO,oBAAoB,QAAQ;CAChD,IAAI,CAAC,MACH,OAAO,EAAE,QAAQ,CAAC,EAAE;CAMtB,OAAO,EACL,QAAQ,eAAe,MAAM,OAFR,SAAS,MAAM,MAAM,OAAO,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,GAEtC,CAAC,CAAC,KAAK,WAAW;EACpD,MAAM,MAAM;EACZ,WAAW,MAAM,QAAQ,KAAK,WAAW,OAAO,EAAE;CACpD,EAAE,EACJ;AACF,CAAC,CACH,CACF"}
@@ -0,0 +1,29 @@
1
+ import { n as SpaceOperation } from "./chunk-definitions.mjs";
2
+ import { t as SpaceOperationConfig } from "./chunk-helpers.mjs";
3
+ import { Capability } from "@dxos/app-framework";
4
+ import * as Effect from "effect/Effect";
5
+ import { Operation } from "@dxos/compute";
6
+ //#region src/operations/get-share-link.ts
7
+ var handler = SpaceOperation.GetShareLink.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
8
+ const { Invitation, InvitationEncoder } = yield* Effect.promise(() => import("@dxos/client/invitations"));
9
+ const invitation = yield* Operation.invoke(SpaceOperation.Share, {
10
+ space: input.space,
11
+ type: Invitation.Type.DELEGATED,
12
+ authMethod: Invitation.AuthMethod.KNOWN_PUBLIC_KEY,
13
+ multiUse: true,
14
+ target: input.target
15
+ });
16
+ const invitationCode = yield* Effect.tryPromise(() => new Promise((resolve) => {
17
+ invitation.subscribe((inv) => {
18
+ if (inv.state === Invitation.State.CONNECTING) resolve(InvitationEncoder.encode(inv));
19
+ });
20
+ }));
21
+ const { createInvitationUrl } = yield* Capability.get(SpaceOperationConfig);
22
+ const url = createInvitationUrl(invitationCode);
23
+ if (input.copyToClipboard) yield* Effect.tryPromise(() => navigator.clipboard.writeText(url));
24
+ return url;
25
+ })));
26
+ //#endregion
27
+ export { handler as default };
28
+
29
+ //# sourceMappingURL=chunk-get-share-link.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-get-share-link.mjs","names":[],"sources":["../../src/operations/get-share-link.ts"],"sourcesContent":["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\n\nimport { SpaceOperation } from './definitions';\nimport { SpaceOperationConfig } from './helpers';\n\nconst handler: Operation.WithHandler<typeof SpaceOperation.GetShareLink> = SpaceOperation.GetShareLink.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const { Invitation, InvitationEncoder } = yield* Effect.promise(() => import('@dxos/client/invitations'));\n\n const invitation = yield* Operation.invoke(SpaceOperation.Share, {\n space: input.space,\n type: Invitation.Type.DELEGATED,\n authMethod: Invitation.AuthMethod.KNOWN_PUBLIC_KEY,\n multiUse: true,\n target: input.target,\n });\n\n const invitationCode = yield* Effect.tryPromise(\n () =>\n new Promise<string>((resolve) => {\n invitation.subscribe((inv) => {\n if (inv.state === Invitation.State.CONNECTING) {\n resolve(InvitationEncoder.encode(inv));\n }\n });\n }),\n );\n const { createInvitationUrl } = yield* Capability.get(SpaceOperationConfig);\n const url = createInvitationUrl(invitationCode);\n if (input.copyToClipboard) {\n yield* Effect.tryPromise(() => navigator.clipboard.writeText(url));\n }\n return url;\n }),\n ),\n);\nexport default handler;\n"],"mappings":";;;;;;AAUA,IAAM,UAAqE,eAAe,aAAa,KACrG,UAAU,YACR,OAAO,WAAW,WAAW,OAAO;CAClC,MAAM,EAAE,YAAY,sBAAsB,OAAO,OAAO,cAAc,OAAO,2BAA2B;CAExG,MAAM,aAAa,OAAO,UAAU,OAAO,eAAe,OAAO;EAC/D,OAAO,MAAM;EACb,MAAM,WAAW,KAAK;EACtB,YAAY,WAAW,WAAW;EAClC,UAAU;EACV,QAAQ,MAAM;CAChB,CAAC;CAED,MAAM,iBAAiB,OAAO,OAAO,iBAEjC,IAAI,SAAiB,YAAY;EAC/B,WAAW,WAAW,QAAQ;GAC5B,IAAI,IAAI,UAAU,WAAW,MAAM,YACjC,QAAQ,kBAAkB,OAAO,GAAG,CAAC;EAEzC,CAAC;CACH,CAAC,CACL;CACA,MAAM,EAAE,wBAAwB,OAAO,WAAW,IAAI,oBAAoB;CAC1E,MAAM,MAAM,oBAAoB,cAAc;CAC9C,IAAI,MAAM,iBACR,OAAO,OAAO,iBAAiB,UAAU,UAAU,UAAU,GAAG,CAAC;CAEnE,OAAO;AACT,CAAC,CACH,CACF"}
@@ -0,0 +1,14 @@
1
+ import { SpaceCapabilities } from "./types.mjs";
2
+ import { Capability } from "@dxos/app-framework";
3
+ import * as Effect from "effect/Effect";
4
+ import { Type } from "@dxos/echo";
5
+ //#region src/operations/helpers.ts
6
+ var SpaceOperationConfig = Capability.make("org.dxos.plugin.space.operationConfig");
7
+ /** The contributed identity rule for a typename, or `undefined` when no plugin owns one. */
8
+ var resolveIdentitySpec = Effect.fnUntraced(function* (typename) {
9
+ return (yield* Capability.getAll(SpaceCapabilities.IdentitySpec)).find((spec) => Type.getTypename(spec.type) === typename);
10
+ });
11
+ //#endregion
12
+ export { resolveIdentitySpec as n, SpaceOperationConfig as t };
13
+
14
+ //# sourceMappingURL=chunk-helpers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-helpers.mjs","names":[],"sources":["../../src/operations/helpers.ts"],"sourcesContent":["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Type } from '@dxos/echo';\n\nimport { SpaceCapabilities } from '../types';\n\nexport type SpaceOperationConfig = {\n createInvitationUrl: (invitationCode: string) => string;\n observability: boolean;\n};\n\nexport const SpaceOperationConfig = Capability.make<SpaceOperationConfig>('org.dxos.plugin.space.operationConfig');\n\n/** The contributed identity rule for a typename, or `undefined` when no plugin owns one. */\nexport const resolveIdentitySpec = Effect.fnUntraced(function* (typename: string) {\n const specs = yield* Capability.getAll(SpaceCapabilities.IdentitySpec);\n return specs.find((spec) => Type.getTypename(spec.type) === typename);\n});\n"],"mappings":";;;;;AAcA,IAAa,uBAAuB,WAAW,KAA2B,uCAAuC;;AAGjH,IAAa,sBAAsB,OAAO,WAAW,WAAW,UAAkB;CAEhF,QAAO,OADc,WAAW,OAAO,kBAAkB,YAAY,EAAA,CACxD,MAAM,SAAS,KAAK,YAAY,KAAK,IAAI,MAAM,QAAQ;AACtE,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { Capability } from "@dxos/app-framework";
2
+ import { AppAnnotation, AppSpace } from "@dxos/app-toolkit";
3
+ import * as Effect from "effect/Effect";
4
+ import { Annotation, Collection, Obj, Ref } from "@dxos/echo";
5
+ import { ClientCapabilities } from "@dxos/plugin-client";
6
+ import { MigrationVersionAnnotation, Migrations } from "@dxos/migrations";
7
+ import { EdgeReplicationSetting } from "@dxos/protocols/proto/dxos/echo/metadata";
8
+ import { MembershipPolicy } from "@dxos/protocols/proto/dxos/halo/credentials";
9
+ //#region src/capabilities/identity-created.ts
10
+ var identity_created_default = Capability.makeModule(Effect.fnUntraced(function* () {
11
+ const client = yield* Capability.get(ClientCapabilities.Client);
12
+ const personalSpace = yield* Effect.tryPromise(() => client.spaces.create({}, {
13
+ tags: [AppSpace.PERSONAL_SPACE_TAG],
14
+ membershipPolicy: MembershipPolicy.LOCKED
15
+ }));
16
+ yield* Effect.tryPromise(() => personalSpace.waitUntilReady());
17
+ yield* Effect.tryPromise(() => personalSpace.internal.setEdgeReplicationPreference(EdgeReplicationSetting.ENABLED));
18
+ Obj.update(personalSpace.properties, (properties) => {
19
+ Annotation.set(properties, AppAnnotation.RootCollectionAnnotation, Ref.make(Collection.make()));
20
+ if (Migrations.targetVersion) Annotation.set(properties, MigrationVersionAnnotation, Migrations.targetVersion);
21
+ });
22
+ }));
23
+ //#endregion
24
+ export { identity_created_default as default };
25
+
26
+ //# sourceMappingURL=chunk-identity-created.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-identity-created.mjs","names":[],"sources":["../../src/capabilities/identity-created.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppAnnotation, AppSpace } from '@dxos/app-toolkit';\nimport { Annotation, Collection, Obj, Ref } from '@dxos/echo';\nimport { Migrations, MigrationVersionAnnotation } from '@dxos/migrations';\nimport { ClientCapabilities } from '@dxos/plugin-client';\nimport { EdgeReplicationSetting } from '@dxos/protocols/proto/dxos/echo/metadata';\nimport { MembershipPolicy } from '@dxos/protocols/proto/dxos/halo/credentials';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n\n const personalSpace = yield* Effect.tryPromise(() =>\n client.spaces.create({}, { tags: [AppSpace.PERSONAL_SPACE_TAG], membershipPolicy: MembershipPolicy.LOCKED }),\n );\n yield* Effect.tryPromise(() => personalSpace.waitUntilReady());\n\n // Create root collection structure.\n yield* Effect.tryPromise(() => personalSpace.internal.setEdgeReplicationPreference(EdgeReplicationSetting.ENABLED));\n Obj.update(personalSpace.properties, (properties) => {\n Annotation.set(properties, AppAnnotation.RootCollectionAnnotation, Ref.make(Collection.make()));\n if (Migrations.targetVersion) {\n Annotation.set(properties, MigrationVersionAnnotation, Migrations.targetVersion);\n }\n });\n }),\n);\n"],"mappings":";;;;;;;;;AAcA,IAAA,2BAAe,WAAW,WACxB,OAAO,WAAW,aAAa;CAC7B,MAAM,SAAS,OAAO,WAAW,IAAI,mBAAmB,MAAM;CAE9D,MAAM,gBAAgB,OAAO,OAAO,iBAClC,OAAO,OAAO,OAAO,CAAC,GAAG;EAAE,MAAM,CAAC,SAAS,kBAAkB;EAAG,kBAAkB,iBAAiB;CAAO,CAAC,CAC7G;CACA,OAAO,OAAO,iBAAiB,cAAc,eAAe,CAAC;CAG7D,OAAO,OAAO,iBAAiB,cAAc,SAAS,6BAA6B,uBAAuB,OAAO,CAAC;CAClH,IAAI,OAAO,cAAc,aAAa,eAAe;EACnD,WAAW,IAAI,YAAY,cAAc,0BAA0B,IAAI,KAAK,WAAW,KAAK,CAAC,CAAC;EAC9F,IAAI,WAAW,eACb,WAAW,IAAI,YAAY,4BAA4B,WAAW,aAAa;CAEnF,CAAC;AACH,CAAC,CACH"}
@@ -0,0 +1,16 @@
1
+ import { n as SpaceOperation } from "./chunk-definitions.mjs";
2
+ import { Capability } from "@dxos/app-framework";
3
+ import * as Effect from "effect/Effect";
4
+ import { Operation } from "@dxos/compute";
5
+ import { ClientCapabilities } from "@dxos/plugin-client";
6
+ //#region src/operations/import-space.ts
7
+ var handler = SpaceOperation.ImportSpace.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ archive, tags }) {
8
+ const client = yield* Capability.get(ClientCapabilities.Client);
9
+ const space = yield* Effect.promise(() => client.spaces.import(archive, tags && tags.length > 0 ? { tags: [...tags] } : void 0));
10
+ yield* Effect.promise(() => space.waitUntilReady());
11
+ return { space };
12
+ })));
13
+ //#endregion
14
+ export { handler as default };
15
+
16
+ //# sourceMappingURL=chunk-import-space.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-import-space.mjs","names":[],"sources":["../../src/operations/import-space.ts"],"sourcesContent":["// Copyright 2026 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\nimport { ClientCapabilities } from '@dxos/plugin-client';\n\nimport { SpaceOperation } from './definitions';\n\nconst handler: Operation.WithHandler<typeof SpaceOperation.ImportSpace> = SpaceOperation.ImportSpace.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ archive, tags }) {\n const client = yield* Capability.get(ClientCapabilities.Client);\n const space = yield* Effect.promise(() =>\n client.spaces.import(archive, tags && tags.length > 0 ? { tags: [...tags] } : undefined),\n );\n yield* Effect.promise(() => space.waitUntilReady());\n return { space };\n }),\n ),\n);\nexport default handler;\n"],"mappings":";;;;;;AAUA,IAAM,UAAoE,eAAe,YAAY,KACnG,UAAU,YACR,OAAO,WAAW,WAAW,EAAE,SAAS,QAAQ;CAC9C,MAAM,SAAS,OAAO,WAAW,IAAI,mBAAmB,MAAM;CAC9D,MAAM,QAAQ,OAAO,OAAO,cAC1B,OAAO,OAAO,OAAO,SAAS,QAAQ,KAAK,SAAS,IAAI,EAAE,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,KAAA,CAAS,CACzF;CACA,OAAO,OAAO,cAAc,MAAM,eAAe,CAAC;CAClD,OAAO,EAAE,MAAM;AACjB,CAAC,CACH,CACF"}
@@ -0,0 +1,35 @@
1
+ import { t as NoIdentityError } from "./chunk-errors.mjs";
2
+ import { n as SpaceOperation } from "./chunk-definitions.mjs";
3
+ import { JOIN_DIALOG } from "./constants.mjs";
4
+ import { meta } from "#meta";
5
+ import { LayoutOperation } from "@dxos/app-toolkit";
6
+ import * as Effect from "effect/Effect";
7
+ import { Operation } from "@dxos/compute";
8
+ import { HaloServicesLayer } from "@dxos/plugin-client";
9
+ import * as Option from "effect/Option";
10
+ import { Identity } from "@dxos/halo";
11
+ //#region src/operations/join.ts
12
+ var handler = SpaceOperation.Join.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
13
+ const identity = yield* Identity.getSnapshot.pipe(Effect.provide(HaloServicesLayer));
14
+ if (Option.isNone(identity)) {
15
+ yield* Effect.ignore(Operation.invoke(LayoutOperation.AddToast, {
16
+ id: `${meta.profile.key}.join-no-identity`,
17
+ icon: "ph--warning--regular",
18
+ title: ["join-no-identity-toast.title", { ns: meta.profile.key }],
19
+ closeLabel: ["dismiss.label", { ns: meta.profile.key }]
20
+ }));
21
+ return yield* Effect.fail(new NoIdentityError());
22
+ }
23
+ yield* Operation.invoke(LayoutOperation.UpdateDialog, {
24
+ subject: JOIN_DIALOG,
25
+ blockAlign: "start",
26
+ props: {
27
+ initialInvitationCode: input.invitationCode,
28
+ onDone: input.onDone
29
+ }
30
+ });
31
+ })));
32
+ //#endregion
33
+ export { handler as default };
34
+
35
+ //# sourceMappingURL=chunk-join.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-join.mjs","names":[],"sources":["../../src/operations/join.ts"],"sourcesContent":["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { Identity } from '@dxos/halo';\nimport { HaloServicesLayer } from '@dxos/plugin-client';\n\nimport { meta } from '#meta';\n\nimport { JOIN_DIALOG } from '../constants';\nimport type { JoinDialogProps } from '../containers/JoinDialog';\nimport { NoIdentityError } from '../errors';\nimport { SpaceOperation } from './definitions';\n\nconst handler: Operation.WithHandler<typeof SpaceOperation.Join> = SpaceOperation.Join.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const identity = yield* Identity.getSnapshot.pipe(Effect.provide(HaloServicesLayer));\n if (Option.isNone(identity)) {\n // Space invitations authenticate against a local identity; there is nothing to redeem without one.\n yield* Effect.ignore(\n Operation.invoke(LayoutOperation.AddToast, {\n id: `${meta.profile.key}.join-no-identity`,\n icon: 'ph--warning--regular',\n title: ['join-no-identity-toast.title', { ns: meta.profile.key }],\n closeLabel: ['dismiss.label', { ns: meta.profile.key }],\n }),\n );\n return yield* Effect.fail(new NoIdentityError());\n }\n\n yield* Operation.invoke(LayoutOperation.UpdateDialog, {\n subject: JOIN_DIALOG,\n blockAlign: 'start',\n props: {\n initialInvitationCode: input.invitationCode,\n onDone: input.onDone,\n } satisfies Partial<JoinDialogProps>,\n });\n }),\n ),\n);\nexport default handler;\n"],"mappings":";;;;;;;;;;;AAiBA,IAAM,UAA6D,eAAe,KAAK,KACrF,UAAU,YACR,OAAO,WAAW,WAAW,OAAO;CAClC,MAAM,WAAW,OAAO,SAAS,YAAY,KAAK,OAAO,QAAQ,iBAAiB,CAAC;CACnF,IAAI,OAAO,OAAO,QAAQ,GAAG;EAE3B,OAAO,OAAO,OACZ,UAAU,OAAO,gBAAgB,UAAU;GACzC,IAAI,GAAG,KAAK,QAAQ,IAAI;GACxB,MAAM;GACN,OAAO,CAAC,gCAAgC,EAAE,IAAI,KAAK,QAAQ,IAAI,CAAC;GAChE,YAAY,CAAC,iBAAiB,EAAE,IAAI,KAAK,QAAQ,IAAI,CAAC;EACxD,CAAC,CACH;EACA,OAAO,OAAO,OAAO,KAAK,IAAI,gBAAgB,CAAC;CACjD;CAEA,OAAO,UAAU,OAAO,gBAAgB,cAAc;EACpD,SAAS;EACT,YAAY;EACZ,OAAO;GACL,uBAAuB,MAAM;GAC7B,QAAQ,MAAM;EAChB;CACF,CAAC;AACH,CAAC,CACH,CACF"}
@@ -0,0 +1,62 @@
1
+ import { n as SpaceOperation } from "./chunk-definitions.mjs";
2
+ import { n as resolveIdentitySpec } from "./chunk-helpers.mjs";
3
+ import * as Effect from "effect/Effect";
4
+ import { Operation } from "@dxos/compute";
5
+ import { Database, Filter, Obj, Query } from "@dxos/echo";
6
+ import { invariant } from "@dxos/invariant";
7
+ import { applyMerge, findDuplicates, planMerge } from "@dxos/extractor";
8
+ //#region src/operations/merge-duplicates.ts
9
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-space/src/operations/merge-duplicates.ts";
10
+ var handler = SpaceOperation.MergeDuplicates.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ typename, objectIds, overrides }) {
11
+ const spec = yield* resolveIdentitySpec(typename);
12
+ invariant(spec, `No identity spec registered for ${typename}.`, {
13
+ "~LogMeta": "~LogMeta",
14
+ F: __dxlog_file,
15
+ L: 17,
16
+ S: this,
17
+ A: ["spec", "`No identity spec registered for ${typename}.`"]
18
+ });
19
+ const { db } = yield* Database.Service;
20
+ const objects = yield* Database.query(Query.select(Filter.id(...objectIds))).run;
21
+ const requested = new Set(objectIds);
22
+ invariant(requested.size > 1, "A merge needs at least two distinct members.", {
23
+ "~LogMeta": "~LogMeta",
24
+ F: __dxlog_file,
25
+ L: 26,
26
+ S: this,
27
+ A: ["requested.size > 1", "'A merge needs at least two distinct members.'"]
28
+ });
29
+ invariant(objects.length === requested.size, "Every member of a merge must still exist.", {
30
+ "~LogMeta": "~LogMeta",
31
+ F: __dxlog_file,
32
+ L: 27,
33
+ S: this,
34
+ A: ["objects.length === requested.size", "'Every member of a merge must still exist.'"]
35
+ });
36
+ invariant(objects.every((object) => Obj.instanceOf(spec.type, object)), `Every member of a merge must be a ${typename}.`, {
37
+ "~LogMeta": "~LogMeta",
38
+ F: __dxlog_file,
39
+ L: 28,
40
+ S: this,
41
+ A: ["objects.every((object) => Obj.instanceOf(spec.type, object))", "`Every member of a merge must be a ${typename}.`"]
42
+ });
43
+ const [group, ...rest] = findDuplicates(spec, objects);
44
+ invariant(group && rest.length === 0 && group.objects.length === objects.length, "A merge must be applied to a single duplicate group.", {
45
+ "~LogMeta": "~LogMeta",
46
+ F: __dxlog_file,
47
+ L: 37,
48
+ S: this,
49
+ A: ["group && rest.length === 0 && group.objects.length === objects.length", "'A merge must be applied to a single duplicate group.'"]
50
+ });
51
+ const plan = planMerge(spec, group);
52
+ const survivor = yield* applyMerge(db, spec, plan, overrides);
53
+ yield* Database.flush({ indexes: true });
54
+ return {
55
+ survivorId: survivor.id,
56
+ removedIds: plan.losers.map((loser) => loser.id)
57
+ };
58
+ })));
59
+ //#endregion
60
+ export { handler as default };
61
+
62
+ //# sourceMappingURL=chunk-merge-duplicates.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-merge-duplicates.mjs","names":[],"sources":["../../src/operations/merge-duplicates.ts"],"sourcesContent":["// Copyright 2026 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/compute';\nimport { Database, Filter, Obj, Query } from '@dxos/echo';\nimport { applyMerge, findDuplicates, planMerge } from '@dxos/extractor';\nimport { invariant } from '@dxos/invariant';\n\nimport { SpaceOperation } from './definitions';\nimport { resolveIdentitySpec } from './helpers';\n\nconst handler: Operation.WithHandler<typeof SpaceOperation.MergeDuplicates> = SpaceOperation.MergeDuplicates.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ typename, objectIds, overrides }) {\n const spec = yield* resolveIdentitySpec(typename);\n invariant(spec, `No identity spec registered for ${typename}.`);\n\n const { db } = yield* Database.Service;\n // Re-resolve live proxies by id: the caller's objects crossed the operation boundary as\n // snapshots, and a merge must mutate the reactive object the space actually holds.\n const objects = yield* Database.query(Query.select(Filter.id(...objectIds))).run;\n // The input arrives from a client that may be acting on a stale scan. Refuse a partial or\n // mistyped set rather than merging whatever happened to resolve.\n const requested = new Set(objectIds);\n invariant(requested.size > 1, 'A merge needs at least two distinct members.');\n invariant(objects.length === requested.size, 'Every member of a merge must still exist.');\n invariant(\n objects.every((object) => Obj.instanceOf(spec.type, object)),\n `Every member of a merge must be a ${typename}.`,\n );\n\n // The merge deletes the losers, so being asked to merge is not enough — the members must\n // actually share identity. Re-deriving the group over just these objects (not the whole space)\n // rejects a set that is unrelated or only partly connected, and yields the real shared keys.\n const [group, ...rest] = findDuplicates(spec, objects);\n invariant(\n group && rest.length === 0 && group.objects.length === objects.length,\n 'A merge must be applied to a single duplicate group.',\n );\n\n const plan = planMerge(spec, group);\n const survivor = yield* applyMerge(db, spec, plan, overrides);\n yield* Database.flush({ indexes: true });\n\n return { survivorId: survivor.id, removedIds: plan.losers.map((loser) => loser.id) };\n }),\n ),\n);\n\nexport default handler;\n"],"mappings":";;;;;;;;;AAYA,IAAM,UAAwE,eAAe,gBAAgB,KAC3G,UAAU,YACR,OAAO,WAAW,WAAW,EAAE,UAAU,WAAW,aAAa;CAC/D,MAAM,OAAO,OAAO,oBAAoB,QAAQ;CAChD,UAAU,MAAM,mCAAmC,SAAS,IAAC;EAAA,YAAA;EAAA,GAAA;EAAA,GAAA;EAAA,GAAA;EAAA,GAAA,CAAA,QAAA,gDAAA;CAAA,CAAC;CAE9D,MAAM,EAAE,OAAO,OAAO,SAAS;CAG/B,MAAM,UAAU,OAAO,SAAS,MAAM,MAAM,OAAO,OAAO,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;CAG7E,MAAM,YAAY,IAAI,IAAI,SAAS;CACnC,UAAU,UAAU,OAAO,GAAG,gDAA6C;EAAA,YAAA;EAAA,GAAA;EAAA,GAAA;EAAA,GAAA;EAAA,GAAA,CAAA,sBAAA,gDAAA;CAAA,CAAC;CAC5E,UAAU,QAAQ,WAAW,UAAU,MAAM,6CAA0C;EAAA,YAAA;EAAA,GAAA;EAAA,GAAA;EAAA,GAAA;EAAA,GAAA,CAAA,qCAAA,6CAAA;CAAA,CAAC;CACxF,UACE,QAAQ,OAAO,WAAW,IAAI,WAAW,KAAK,MAAM,MAAM,CAAC,GAC3D,qCAAqC,SAAS,IACjD;EAAA,YAAA;EAAA,GAAA;EAAA,GAAA;EAAA,GAAA;EAAA,GAAA,CAAA,gEAAA,kDAAA;CAAA,CAAC;CAKA,MAAM,CAAC,OAAO,GAAG,QAAQ,eAAe,MAAM,OAAO;CACrD,UACE,SAAS,KAAK,WAAW,KAAK,MAAM,QAAQ,WAAW,QAAQ,QAC/D,wDACH;EAAA,YAAA;EAAA,GAAA;EAAA,GAAA;EAAA,GAAA;EAAA,GAAA,CAAA,yEAAA,wDAAA;CAAA,CAAC;CAEA,MAAM,OAAO,UAAU,MAAM,KAAK;CAClC,MAAM,WAAW,OAAO,WAAW,IAAI,MAAM,MAAM,SAAS;CAC5D,OAAO,SAAS,MAAM,EAAE,SAAS,KAAK,CAAC;CAEvC,OAAO;EAAE,YAAY,SAAS;EAAI,YAAY,KAAK,OAAO,KAAK,UAAU,MAAM,EAAE;CAAE;AACrF,CAAC,CACH,CACF"}
@@ -1,15 +1,12 @@
1
- // src/meta.ts
2
1
  import { Plugin } from "@dxos/app-framework";
3
-
4
- // dx.config.ts
5
2
  import { Config2 } from "@dxos/app-framework/config";
6
3
  import { trim } from "@dxos/util";
7
- var dx_config_default = Config2.make({
8
- plugin: {
9
- key: "org.dxos.plugin.space",
10
- name: "Spaces",
11
- author: "DXOS",
12
- description: trim`
4
+ //#region dx.config.ts
5
+ var dx_config_default = Config2.make({ plugin: {
6
+ key: "org.dxos.plugin.space",
7
+ name: "Spaces",
8
+ author: "DXOS",
9
+ description: trim`
13
10
  SpacePlugin is the core workspace container for DXOS Composer. It owns the full lifecycle of
14
11
  collaborative spaces — creating, joining, opening, closing, and resetting them — and manages
15
12
  the membership and invitation system that controls who can access each space.
@@ -27,20 +24,14 @@ var dx_config_default = Config2.make({
27
24
  A full set of undo-aware operations (RemoveObjects/RestoreObjects, DeleteField/RestoreField)
28
25
  integrates with the process manager so that destructive edits can be reversed in one step.
29
26
  `,
30
- icon: {
31
- key: "ph--planet--regular"
32
- },
33
- spec: "PLUGIN.mdl",
34
- tags: [
35
- "system"
36
- ]
37
- }
38
- });
39
-
40
- // src/meta.ts
27
+ icon: { key: "ph--planet--regular" },
28
+ spec: "PLUGIN.mdl",
29
+ tags: ["system"]
30
+ } });
31
+ //#endregion
32
+ //#region src/meta.ts
41
33
  var meta = Plugin.getMetaFromConfig(dx_config_default);
34
+ //#endregion
35
+ export { meta as t };
42
36
 
43
- export {
44
- meta
45
- };
46
- //# sourceMappingURL=chunk-5ZZS3KMK.mjs.map
37
+ //# sourceMappingURL=chunk-meta.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-meta.mjs","names":[],"sources":["../../dx.config.ts","../../src/meta.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Config2 } from '@dxos/app-framework/config';\nimport { trim } from '@dxos/util';\n\nexport default Config2.make({\n plugin: {\n key: 'org.dxos.plugin.space',\n name: 'Spaces',\n author: 'DXOS',\n description: trim`\n SpacePlugin is the core workspace container for DXOS Composer. It owns the full lifecycle of\n collaborative spaces — creating, joining, opening, closing, and resetting them — and manages\n the membership and invitation system that controls who can access each space.\n\n The plugin maintains an ordered app-graph of every space and its collections, wires navigation\n so that opening a space or object updates the layout, and tracks real-time peer presence so\n that the UI can show which collaborators are viewing each object.\n\n Object and schema management sit at the heart of SpacePlugin: it registers the canonical DXOS\n schema types (Person, Task, Project, Event, …), provides the create-object dialog that all\n other plugins populate with their own types, and exposes operations for adding, removing,\n restoring, duplicating, and serialising objects. Import/export of space archives and schema\n migrations are also handled here.\n\n A full set of undo-aware operations (RemoveObjects/RestoreObjects, DeleteField/RestoreField)\n integrates with the process manager so that destructive edits can be reversed in one step.\n `,\n icon: { key: 'ph--planet--regular' },\n spec: 'PLUGIN.mdl',\n tags: ['system'],\n },\n});\n","//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport config from '../dx.config';\n\nexport const meta = Plugin.getMetaFromConfig(config);\n"],"mappings":";;;;AAOA,IAAA,oBAAe,QAAQ,KAAK,EAC1B,QAAQ;CACN,KAAK;CACL,MAAM;CACN,QAAQ;CACR,aAAa,IAAI;;;;;;;;;;;;;;;;;;CAkBjB,MAAM,EAAE,KAAK,sBAAsB;CACnC,MAAM;CACN,MAAM,CAAC,QAAQ;AACjB,EACF,CAAC;;;AC1BD,IAAa,OAAO,OAAO,kBAAkB,iBAAM"}
@@ -0,0 +1,45 @@
1
+ import { SpaceCapabilities } from "./types.mjs";
2
+ import { n as SpaceOperation } from "./chunk-definitions.mjs";
3
+ import { Capabilities } from "@dxos/app-framework";
4
+ import * as Effect from "effect/Effect";
5
+ import { SpaceState } from "@dxos/client/echo";
6
+ import { Operation } from "@dxos/compute";
7
+ import { Annotation } from "@dxos/echo";
8
+ import * as Option from "effect/Option";
9
+ import { MigrationVersionAnnotation, Migrations } from "@dxos/migrations";
10
+ import { ObservabilityOperation } from "@dxos/plugin-observability";
11
+ //#region src/operations/migrate.ts
12
+ var handler = SpaceOperation.Migrate.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
13
+ const { space, version: targetVersion } = input;
14
+ if (space.state.get() === SpaceState.SPACE_REQUIRES_MIGRATION) {
15
+ yield* Capabilities.updateAtomValue(SpaceCapabilities.EphemeralState, (current) => ({
16
+ ...current,
17
+ sdkMigrationRunning: {
18
+ ...current.sdkMigrationRunning,
19
+ [space.id]: true
20
+ }
21
+ }));
22
+ yield* Effect.promise(() => space.internal.migrate());
23
+ yield* Capabilities.updateAtomValue(SpaceCapabilities.EphemeralState, (current) => ({
24
+ ...current,
25
+ sdkMigrationRunning: {
26
+ ...current.sdkMigrationRunning,
27
+ [space.id]: false
28
+ }
29
+ }));
30
+ }
31
+ const result = yield* Effect.promise(() => Migrations.migrate(space, targetVersion));
32
+ yield* Operation.schedule(ObservabilityOperation.SendEvent, {
33
+ name: "space.migrate",
34
+ properties: {
35
+ spaceId: space.id,
36
+ targetVersion,
37
+ version: Annotation.get(space.properties, MigrationVersionAnnotation).pipe(Option.getOrUndefined)
38
+ }
39
+ });
40
+ return result;
41
+ })));
42
+ //#endregion
43
+ export { handler as default };
44
+
45
+ //# sourceMappingURL=chunk-migrate.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-migrate.mjs","names":[],"sources":["../../src/operations/migrate.ts"],"sourcesContent":["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { SpaceState } from '@dxos/client/echo';\nimport { Operation } from '@dxos/compute';\nimport { Annotation } from '@dxos/echo';\nimport { Migrations, MigrationVersionAnnotation } from '@dxos/migrations';\nimport { ObservabilityOperation } from '@dxos/plugin-observability';\n\nimport { SpaceCapabilities } from '../types';\nimport { SpaceOperation } from './definitions';\n\nconst handler: Operation.WithHandler<typeof SpaceOperation.Migrate> = SpaceOperation.Migrate.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const { space, version: targetVersion } = input;\n\n if (space.state.get() === SpaceState.SPACE_REQUIRES_MIGRATION) {\n yield* Capabilities.updateAtomValue(SpaceCapabilities.EphemeralState, (current) => ({\n ...current,\n sdkMigrationRunning: { ...current.sdkMigrationRunning, [space.id]: true },\n }));\n yield* Effect.promise(() => space.internal.migrate());\n yield* Capabilities.updateAtomValue(SpaceCapabilities.EphemeralState, (current) => ({\n ...current,\n sdkMigrationRunning: { ...current.sdkMigrationRunning, [space.id]: false },\n }));\n }\n const result = yield* Effect.promise(() => Migrations.migrate(space, targetVersion));\n\n yield* Operation.schedule(ObservabilityOperation.SendEvent, {\n name: 'space.migrate',\n properties: {\n spaceId: space.id,\n targetVersion,\n version: Annotation.get(space.properties, MigrationVersionAnnotation).pipe(Option.getOrUndefined),\n },\n });\n\n return result;\n }),\n ),\n);\nexport default handler;\n"],"mappings":";;;;;;;;;;;AAeA,IAAM,UAAgE,eAAe,QAAQ,KAC3F,UAAU,YACR,OAAO,WAAW,WAAW,OAAO;CAClC,MAAM,EAAE,OAAO,SAAS,kBAAkB;CAE1C,IAAI,MAAM,MAAM,IAAI,MAAM,WAAW,0BAA0B;EAC7D,OAAO,aAAa,gBAAgB,kBAAkB,iBAAiB,aAAa;GAClF,GAAG;GACH,qBAAqB;IAAE,GAAG,QAAQ;KAAsB,MAAM,KAAK;GAAK;EAC1E,EAAE;EACF,OAAO,OAAO,cAAc,MAAM,SAAS,QAAQ,CAAC;EACpD,OAAO,aAAa,gBAAgB,kBAAkB,iBAAiB,aAAa;GAClF,GAAG;GACH,qBAAqB;IAAE,GAAG,QAAQ;KAAsB,MAAM,KAAK;GAAM;EAC3E,EAAE;CACJ;CACA,MAAM,SAAS,OAAO,OAAO,cAAc,WAAW,QAAQ,OAAO,aAAa,CAAC;CAEnF,OAAO,UAAU,SAAS,uBAAuB,WAAW;EAC1D,MAAM;EACN,YAAY;GACV,SAAS,MAAM;GACf;GACA,SAAS,WAAW,IAAI,MAAM,YAAY,0BAA0B,CAAC,CAAC,KAAK,OAAO,cAAc;EAClG;CACF,CAAC;CAED,OAAO;AACT,CAAC,CACH,CACF"}
@@ -0,0 +1,63 @@
1
+ import { n as SpaceOperation } from "./chunk-definitions.mjs";
2
+ import "./operations.mjs";
3
+ import { Capabilities, Capability } from "@dxos/app-framework";
4
+ import { meta } from "#meta";
5
+ import { AppCapabilities, LayoutOperation } from "@dxos/app-toolkit";
6
+ import * as Effect from "effect/Effect";
7
+ import { Operation } from "@dxos/compute";
8
+ import { HaloServicesLayer } from "@dxos/plugin-client";
9
+ import * as Option from "effect/Option";
10
+ import { log } from "@dxos/log";
11
+ import { Identity } from "@dxos/halo";
12
+ //#region src/capabilities/navigation-handler/navigation-handler.ts
13
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-space/src/capabilities/navigation-handler/navigation-handler.ts";
14
+ /**
15
+ * NavigationHandler for space invitation URL params.
16
+ * Handles ?spaceInvitationCode=X → join space via invitation.
17
+ */
18
+ var navigation_handler_default = Capability.makeModule(Effect.fnUntraced(function* ({ invitationProp = "spaceInvitationCode", invitationUrlHandler = true } = {}) {
19
+ const capabilities = yield* Capability.Service;
20
+ const operationService = yield* Capability.get(Capabilities.OperationInvoker);
21
+ const handler = (url) => Effect.gen(function* () {
22
+ const invitationCode = invitationUrlHandler ? url.searchParams.get(invitationProp) : null;
23
+ if (!invitationCode) return;
24
+ if (Option.isNone(yield* Identity.getSnapshot.pipe(Effect.provide(HaloServicesLayer)))) return;
25
+ log("space invitation received via navigation", void 0, {
26
+ "~LogMeta": "~LogMeta",
27
+ F: __dxlog_file,
28
+ L: 50,
29
+ S: this
30
+ });
31
+ removeQueryParam(invitationProp);
32
+ yield* Operation.invoke(SpaceOperation.Join, { invitationCode });
33
+ }).pipe(Effect.catchAll((error) => Effect.gen(function* () {
34
+ log.warn("navigation handler failed", { error }, {
35
+ "~LogMeta": "~LogMeta",
36
+ F: __dxlog_file,
37
+ L: 56,
38
+ S: this
39
+ });
40
+ yield* Operation.invoke(LayoutOperation.AddToast, {
41
+ id: `${meta.profile.key}/navigation-failed`,
42
+ title: ["navigation-failed-toast.title", { ns: meta.profile.key }],
43
+ description: ["navigation-failed-toast.description", { ns: meta.profile.key }],
44
+ icon: "ph--warning--regular"
45
+ }).pipe(Effect.catchAll((toastError) => Effect.sync(() => log.warn("failed to add toast", { toastError }, {
46
+ "~LogMeta": "~LogMeta",
47
+ F: __dxlog_file,
48
+ L: 63,
49
+ S: this
50
+ }))));
51
+ })), Effect.provideService(Capability.Service, capabilities), Effect.provideService(Operation.Service, operationService));
52
+ return Capability.contributes(AppCapabilities.NavigationHandler, handler);
53
+ }));
54
+ /** Remove a query param from the current browser URL. */
55
+ var removeQueryParam = (key) => {
56
+ const current = new URL(window.location.href);
57
+ current.searchParams.delete(key);
58
+ history.replaceState(null, "", current.pathname + current.search);
59
+ };
60
+ //#endregion
61
+ export { navigation_handler_default as default };
62
+
63
+ //# sourceMappingURL=chunk-navigation-handler.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-navigation-handler.mjs","names":[],"sources":["../../src/capabilities/navigation-handler/navigation-handler.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { AppCapabilities, LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { Identity } from '@dxos/halo';\nimport { log } from '@dxos/log';\nimport { HaloServicesLayer } from '@dxos/plugin-client';\n\nimport { meta } from '#meta';\n\nimport { SpaceOperation } from '../../operations';\n\nexport type NavigationHandlerOptions = {\n invitationProp?: string;\n /** Set false when another plugin (e.g. plugin-onboarding) owns the invitation URL param. */\n invitationUrlHandler?: boolean;\n};\n\n/**\n * NavigationHandler for space invitation URL params.\n * Handles ?spaceInvitationCode=X → join space via invitation.\n */\nexport default Capability.makeModule(\n Effect.fnUntraced(function* ({\n invitationProp = 'spaceInvitationCode',\n invitationUrlHandler = true,\n }: NavigationHandlerOptions = {}) {\n const capabilities = yield* Capability.Service;\n const operationService = yield* Capability.get(Capabilities.OperationInvoker);\n\n const handler: AppCapabilities.NavigationHandler = (url: URL) =>\n Effect.gen(function* () {\n const invitationCode = invitationUrlHandler ? url.searchParams.get(invitationProp) : null;\n if (!invitationCode) {\n return;\n }\n\n // Ignore invitations that arrive before a local identity exists rather than forcing\n // identity creation here, bypassing the normal onboarding flow.\n if (Option.isNone(yield* Identity.getSnapshot.pipe(Effect.provide(HaloServicesLayer)))) {\n return;\n }\n\n log('space invitation received via navigation');\n removeQueryParam(invitationProp);\n yield* Operation.invoke(SpaceOperation.Join, { invitationCode });\n }).pipe(\n Effect.catchAll((error) =>\n Effect.gen(function* () {\n log.warn('navigation handler failed', { error });\n yield* Operation.invoke(LayoutOperation.AddToast, {\n id: `${meta.profile.key}/navigation-failed`,\n title: ['navigation-failed-toast.title', { ns: meta.profile.key }],\n description: ['navigation-failed-toast.description', { ns: meta.profile.key }],\n icon: 'ph--warning--regular',\n }).pipe(\n Effect.catchAll((toastError) => Effect.sync(() => log.warn('failed to add toast', { toastError }))),\n );\n }),\n ),\n Effect.provideService(Capability.Service, capabilities),\n Effect.provideService(Operation.Service, operationService),\n );\n\n return Capability.contributes(AppCapabilities.NavigationHandler, handler);\n }),\n);\n\n/** Remove a query param from the current browser URL. */\nconst removeQueryParam = (key: string) => {\n const current = new URL(window.location.href);\n current.searchParams.delete(key);\n history.replaceState(null, '', current.pathname + current.search);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AA4BA,IAAA,6BAAe,WAAW,WACxB,OAAO,WAAW,WAAW,EAC3B,iBAAiB,uBACjB,uBAAuB,SACK,CAAC,GAAG;CAChC,MAAM,eAAe,OAAO,WAAW;CACvC,MAAM,mBAAmB,OAAO,WAAW,IAAI,aAAa,gBAAgB;CAE5E,MAAM,WAA8C,QAClD,OAAO,IAAI,aAAa;EACtB,MAAM,iBAAiB,uBAAuB,IAAI,aAAa,IAAI,cAAc,IAAI;EACrF,IAAI,CAAC,gBACH;EAKF,IAAI,OAAO,OAAO,OAAO,SAAS,YAAY,KAAK,OAAO,QAAQ,iBAAiB,CAAC,CAAC,GACnF;EAGF,IAAI,4CAAyC,KAAA,GAAA;GAAA,YAAA;GAAA,GAAA;GAAA,GAAA;GAAA,GAAA;EAAA,CAAC;EAC9C,iBAAiB,cAAc;EAC/B,OAAO,UAAU,OAAO,eAAe,MAAM,EAAE,eAAe,CAAC;CACjE,CAAC,CAAC,CAAC,KACD,OAAO,UAAU,UACf,OAAO,IAAI,aAAa;EACtB,IAAI,KAAK,6BAA6B,EAAE,MAAM,GAAA;GAAA,YAAA;GAAA,GAAA;GAAA,GAAA;GAAA,GAAA;EAAA,CAAC;EAC/C,OAAO,UAAU,OAAO,gBAAgB,UAAU;GAChD,IAAI,GAAG,KAAK,QAAQ,IAAI;GACxB,OAAO,CAAC,iCAAiC,EAAE,IAAI,KAAK,QAAQ,IAAI,CAAC;GACjE,aAAa,CAAC,uCAAuC,EAAE,IAAI,KAAK,QAAQ,IAAI,CAAC;GAC7E,MAAM;EACR,CAAC,CAAC,CAAC,KACD,OAAO,UAAU,eAAe,OAAO,WAAW,IAAI,KAAK,uBAAuB,EAAE,WAAW,GAAA;GAAA,YAAA;GAAA,GAAA;GAAA,GAAA;GAAA,GAAA;EAAA,CAAC,CAAC,CAAC,CACpG;CACF,CAAC,CACH,GACA,OAAO,eAAe,WAAW,SAAS,YAAY,GACtD,OAAO,eAAe,UAAU,SAAS,gBAAgB,CAC3D;CAEF,OAAO,WAAW,YAAY,gBAAgB,mBAAmB,OAAO;AAC1E,CAAC,CACH;;AAGA,IAAM,oBAAoB,QAAgB;CACxC,MAAM,UAAU,IAAI,IAAI,OAAO,SAAS,IAAI;CAC5C,QAAQ,aAAa,OAAO,GAAG;CAC/B,QAAQ,aAAa,MAAM,IAAI,QAAQ,WAAW,QAAQ,MAAM;AAClE"}
@@ -0,0 +1,79 @@
1
+ import { t as resolveCollectionObjectPath } from "./chunk-collection-path.mjs";
2
+ import { Capability } from "@dxos/app-framework";
3
+ import { Position } from "@dxos/util";
4
+ import { meta } from "#meta";
5
+ import { AppCapabilities, GraphPath } from "@dxos/app-toolkit";
6
+ import * as Effect from "effect/Effect";
7
+ import { Database, Entity } from "@dxos/echo";
8
+ import { EID } from "@dxos/keys";
9
+ import { getPluginSettingsSectionPath } from "@dxos/plugin-settings";
10
+ //#region src/type-section-path.ts
11
+ /**
12
+ * The path under which the nav tree shows an object surfaced by a type section
13
+ * (`TypeSection.createTypeSectionExtension`): `root/<space>/[<group>/]<typename>/<id>`. Derived from
14
+ * the graph builder's registered url bindings rather than per-plugin wiring — a type section declares
15
+ * a static `path` ending in its typename, so the declaration every section already makes for URL
16
+ * resolution also answers "where does this type live in the tree". Returns undefined when no active
17
+ * extension declares a section for the typename.
18
+ */
19
+ var findTypeSectionPath = (extensions, { spaceId, typename, objectId }) => {
20
+ for (const extension of extensions) {
21
+ const url = extension.url;
22
+ if (url?.kind === "item" && Array.isArray(url.path) && url.path.at(-1) === typename) return GraphPath.getSpacePath(spaceId, ...url.path, objectId);
23
+ }
24
+ };
25
+ /** {@link findTypeSectionPath} against the app graph's live extension registry, absent-graph safe. */
26
+ var resolveTypeSectionPath = (capabilities, params) => {
27
+ const builder = capabilities.getAll(AppCapabilities.AppGraph).at(0);
28
+ return builder ? findTypeSectionPath(Object.values(builder.getExtensions()), params) : void 0;
29
+ };
30
+ //#endregion
31
+ //#region src/capabilities/navigation-target-resolver.ts
32
+ var navigation_target_resolver_default = Capability.makeModule(Effect.fnUntraced(function* () {
33
+ const capabilities = yield* Capability.Service;
34
+ const resolver = (query) => Effect.gen(function* () {
35
+ if (!query?.uri) return [{
36
+ path: getPluginSettingsSectionPath(meta.profile.key),
37
+ label: "Spaces settings",
38
+ type: "settings"
39
+ }];
40
+ const eid = EID.tryParse(query.uri);
41
+ if (!eid) return [];
42
+ const { db } = yield* Database.Service;
43
+ const ref = db.makeRef(eid);
44
+ const object = yield* Database.load(ref).pipe(Effect.catchAll(() => Effect.succeed(null)));
45
+ if (!object) return [];
46
+ const typename = Entity.getTypename(object);
47
+ if (!typename) return [];
48
+ const label = Entity.getLabel(object) ?? "";
49
+ const collectionPath = yield* resolveCollectionObjectPath({ objectId: object.id });
50
+ const sectionPath = resolveTypeSectionPath(capabilities, {
51
+ spaceId: db.spaceId,
52
+ typename,
53
+ objectId: object.id
54
+ });
55
+ return [
56
+ ...collectionPath ? [{
57
+ path: collectionPath,
58
+ label,
59
+ type: typename
60
+ }] : [],
61
+ ...sectionPath ? [{
62
+ path: sectionPath,
63
+ label,
64
+ type: typename
65
+ }] : [],
66
+ {
67
+ path: GraphPath.getObjectPath(db.spaceId, typename, object.id),
68
+ label,
69
+ type: typename,
70
+ position: Position.last
71
+ }
72
+ ];
73
+ });
74
+ return Capability.contributes(AppCapabilities.NavigationTargetResolver, resolver);
75
+ }));
76
+ //#endregion
77
+ export { navigation_target_resolver_default as default };
78
+
79
+ //# sourceMappingURL=chunk-navigation-target-resolver.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-navigation-target-resolver.mjs","names":[],"sources":["../../src/type-section-path.ts","../../src/capabilities/navigation-target-resolver.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\nimport { type CapabilityManager } from '@dxos/app-framework';\nimport { AppCapabilities, GraphPath } from '@dxos/app-toolkit';\nimport { type GraphBuilder } from '@dxos/plugin-graph';\n\n/**\n * The path under which the nav tree shows an object surfaced by a type section\n * (`TypeSection.createTypeSectionExtension`): `root/<space>/[<group>/]<typename>/<id>`. Derived from\n * the graph builder's registered url bindings rather than per-plugin wiring — a type section declares\n * a static `path` ending in its typename, so the declaration every section already makes for URL\n * resolution also answers \"where does this type live in the tree\". Returns undefined when no active\n * extension declares a section for the typename.\n */\nexport const findTypeSectionPath = (\n extensions: Iterable<Pick<GraphBuilder.BuilderExtension, 'url'>>,\n { spaceId, typename, objectId }: { spaceId: string; typename: string; objectId: string },\n): string | undefined => {\n for (const extension of extensions) {\n const url = extension.url;\n // Only item bindings with a static path locate objects at a fixed depth; dynamic resolvers\n // (nested collections) and singletons (settings pages) address other shapes.\n if (url?.kind === 'item' && Array.isArray(url.path) && url.path.at(-1) === typename) {\n return GraphPath.getSpacePath(spaceId, ...url.path, objectId);\n }\n }\n return undefined;\n};\n\n/** {@link findTypeSectionPath} against the app graph's live extension registry, absent-graph safe. */\nexport const resolveTypeSectionPath = (\n capabilities: CapabilityManager.CapabilityManager,\n params: { spaceId: string; typename: string; objectId: string },\n): string | undefined => {\n const builder = capabilities.getAll(AppCapabilities.AppGraph).at(0);\n return builder ? findTypeSectionPath(Object.values(builder.getExtensions()), params) : undefined;\n};\n","//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities, type AppCapabilities as AppCaps, GraphPath } from '@dxos/app-toolkit';\nimport { Database, Entity } from '@dxos/echo';\nimport { EID } from '@dxos/keys';\nimport { getPluginSettingsSectionPath } from '@dxos/plugin-settings';\nimport { Position } from '@dxos/util';\n\nimport { meta } from '#meta';\n\nimport { resolveCollectionObjectPath } from '../collection-path';\nimport { resolveTypeSectionPath } from '../type-section-path';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const capabilities = yield* Capability.Service;\n const resolver: AppCaps.NavigationTargetResolver = (query) =>\n Effect.gen(function* () {\n if (!query?.uri) {\n return [\n {\n path: getPluginSettingsSectionPath(meta.profile.key),\n label: 'Spaces settings',\n type: 'settings',\n },\n ];\n }\n\n const eid = EID.tryParse(query.uri);\n if (!eid) {\n return [];\n }\n\n const { db } = yield* Database.Service;\n const ref = db.makeRef(eid);\n const object = yield* Database.load(ref).pipe(Effect.catchAll(() => Effect.succeed(null)));\n if (!object) {\n return [];\n }\n\n const typename = Entity.getTypename(object);\n if (!typename) {\n return [];\n }\n\n const label = Entity.getLabel(object) ?? '';\n\n // Where the tree actually shows the object: its place in the collection tree, or the sidebar\n // section its type declares (Chat, Project, …). Both precede the database path, which every\n // object has but no visible node bears — hence `Position.last`.\n const collectionPath = yield* resolveCollectionObjectPath({ objectId: object.id });\n const sectionPath = resolveTypeSectionPath(capabilities, {\n spaceId: db.spaceId,\n typename,\n objectId: object.id,\n });\n\n return [\n ...(collectionPath ? [{ path: collectionPath, label, type: typename }] : []),\n ...(sectionPath ? [{ path: sectionPath, label, type: typename }] : []),\n {\n path: GraphPath.getObjectPath(db.spaceId, typename, object.id),\n label,\n type: typename,\n position: Position.last,\n },\n ];\n });\n\n return Capability.contributes(AppCapabilities.NavigationTargetResolver, resolver);\n }),\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;AAgBA,IAAa,uBACX,YACA,EAAE,SAAS,UAAU,eACE;CACvB,KAAK,MAAM,aAAa,YAAY;EAClC,MAAM,MAAM,UAAU;EAGtB,IAAI,KAAK,SAAS,UAAU,MAAM,QAAQ,IAAI,IAAI,KAAK,IAAI,KAAK,GAAG,EAAE,MAAM,UACzE,OAAO,UAAU,aAAa,SAAS,GAAG,IAAI,MAAM,QAAQ;CAEhE;AAEF;;AAGA,IAAa,0BACX,cACA,WACuB;CACvB,MAAM,UAAU,aAAa,OAAO,gBAAgB,QAAQ,CAAC,CAAC,GAAG,CAAC;CAClE,OAAO,UAAU,oBAAoB,OAAO,OAAO,QAAQ,cAAc,CAAC,GAAG,MAAM,IAAI,KAAA;AACzF;;;ACpBA,IAAA,qCAAe,WAAW,WACxB,OAAO,WAAW,aAAa;CAC7B,MAAM,eAAe,OAAO,WAAW;CACvC,MAAM,YAA8C,UAClD,OAAO,IAAI,aAAa;EACtB,IAAI,CAAC,OAAO,KACV,OAAO,CACL;GACE,MAAM,6BAA6B,KAAK,QAAQ,GAAG;GACnD,OAAO;GACP,MAAM;EACR,CACF;EAGF,MAAM,MAAM,IAAI,SAAS,MAAM,GAAG;EAClC,IAAI,CAAC,KACH,OAAO,CAAC;EAGV,MAAM,EAAE,OAAO,OAAO,SAAS;EAC/B,MAAM,MAAM,GAAG,QAAQ,GAAG;EAC1B,MAAM,SAAS,OAAO,SAAS,KAAK,GAAG,CAAC,CAAC,KAAK,OAAO,eAAe,OAAO,QAAQ,IAAI,CAAC,CAAC;EACzF,IAAI,CAAC,QACH,OAAO,CAAC;EAGV,MAAM,WAAW,OAAO,YAAY,MAAM;EAC1C,IAAI,CAAC,UACH,OAAO,CAAC;EAGV,MAAM,QAAQ,OAAO,SAAS,MAAM,KAAK;EAKzC,MAAM,iBAAiB,OAAO,4BAA4B,EAAE,UAAU,OAAO,GAAG,CAAC;EACjF,MAAM,cAAc,uBAAuB,cAAc;GACvD,SAAS,GAAG;GACZ;GACA,UAAU,OAAO;EACnB,CAAC;EAED,OAAO;GACL,GAAI,iBAAiB,CAAC;IAAE,MAAM;IAAgB;IAAO,MAAM;GAAS,CAAC,IAAI,CAAC;GAC1E,GAAI,cAAc,CAAC;IAAE,MAAM;IAAa;IAAO,MAAM;GAAS,CAAC,IAAI,CAAC;GACpE;IACE,MAAM,UAAU,cAAc,GAAG,SAAS,UAAU,OAAO,EAAE;IAC7D;IACA,MAAM;IACN,UAAU,SAAS;GACrB;EACF;CACF,CAAC;CAEH,OAAO,WAAW,YAAY,gBAAgB,0BAA0B,QAAQ;AAClF,CAAC,CACH"}
@@ -0,0 +1,32 @@
1
+ import { SpaceCapabilities } from "./types.mjs";
2
+ import { n as SpaceOperation } from "./chunk-definitions.mjs";
3
+ import { CREATE_OBJECT_DIALOG } from "./constants.mjs";
4
+ import { Capabilities } from "@dxos/app-framework";
5
+ import { LayoutOperation } from "@dxos/app-toolkit";
6
+ import * as Effect from "effect/Effect";
7
+ import { Operation } from "@dxos/compute";
8
+ import { Collection, Obj } from "@dxos/echo";
9
+ //#region src/operations/open-create-object.ts
10
+ var handler = SpaceOperation.OpenCreateObject.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
11
+ const ephemeralState = yield* Capabilities.getAtomValue(SpaceCapabilities.EphemeralState);
12
+ const navigable = input.navigable ?? true;
13
+ yield* Operation.invoke(LayoutOperation.UpdateDialog, {
14
+ subject: CREATE_OBJECT_DIALOG,
15
+ blockAlign: "start",
16
+ props: {
17
+ target: input.target,
18
+ views: input.views,
19
+ typename: input.typename,
20
+ initialFormValues: input.initialFormValues,
21
+ onCreateObject: input.onCreateObject,
22
+ targetNodeId: input.targetNodeId,
23
+ shouldNavigate: navigable ? (object) => {
24
+ return !Obj.instanceOf(Collection.Collection, object) || ephemeralState.navigableCollections;
25
+ } : () => false
26
+ }
27
+ });
28
+ })));
29
+ //#endregion
30
+ export { handler as default };
31
+
32
+ //# sourceMappingURL=chunk-open-create-object.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-open-create-object.mjs","names":[],"sources":["../../src/operations/open-create-object.ts"],"sourcesContent":["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { Collection, Obj } from '@dxos/echo';\n\nimport { CREATE_OBJECT_DIALOG } from '../constants';\nimport { SpaceCapabilities } from '../types';\nimport { SpaceOperation } from './definitions';\n\nconst handler: Operation.WithHandler<typeof SpaceOperation.OpenCreateObject> = SpaceOperation.OpenCreateObject.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const ephemeralState = yield* Capabilities.getAtomValue(SpaceCapabilities.EphemeralState);\n const navigable = input.navigable ?? true;\n yield* Operation.invoke(LayoutOperation.UpdateDialog, {\n subject: CREATE_OBJECT_DIALOG,\n blockAlign: 'start',\n props: {\n target: input.target,\n views: input.views,\n typename: input.typename,\n initialFormValues: input.initialFormValues,\n onCreateObject: input.onCreateObject,\n targetNodeId: input.targetNodeId,\n shouldNavigate: navigable\n ? (object: Obj.Unknown) => {\n const isCollection = Obj.instanceOf(Collection.Collection, object);\n return !isCollection || ephemeralState.navigableCollections;\n }\n : () => false,\n },\n });\n }),\n ),\n);\nexport default handler;\n"],"mappings":";;;;;;;;;AAaA,IAAM,UAAyE,eAAe,iBAAiB,KAC7G,UAAU,YACR,OAAO,WAAW,WAAW,OAAO;CAClC,MAAM,iBAAiB,OAAO,aAAa,aAAa,kBAAkB,cAAc;CACxF,MAAM,YAAY,MAAM,aAAa;CACrC,OAAO,UAAU,OAAO,gBAAgB,cAAc;EACpD,SAAS;EACT,YAAY;EACZ,OAAO;GACL,QAAQ,MAAM;GACd,OAAO,MAAM;GACb,UAAU,MAAM;GAChB,mBAAmB,MAAM;GACzB,gBAAgB,MAAM;GACtB,cAAc,MAAM;GACpB,gBAAgB,aACX,WAAwB;IAEvB,OAAO,CADc,IAAI,WAAW,WAAW,YAAY,MACnD,KAAgB,eAAe;GACzC,UACM;EACZ;CACF,CAAC;AACH,CAAC,CACH,CACF"}
@@ -0,0 +1,16 @@
1
+ import { n as SpaceOperation } from "./chunk-definitions.mjs";
2
+ import { CREATE_SPACE_DIALOG } from "./constants.mjs";
3
+ import { LayoutOperation } from "@dxos/app-toolkit";
4
+ import * as Effect from "effect/Effect";
5
+ import { Operation } from "@dxos/compute";
6
+ //#region src/operations/open-create-space.ts
7
+ var handler = SpaceOperation.OpenCreateSpace.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
8
+ yield* Operation.invoke(LayoutOperation.UpdateDialog, {
9
+ subject: CREATE_SPACE_DIALOG,
10
+ blockAlign: "start"
11
+ });
12
+ })));
13
+ //#endregion
14
+ export { handler as default };
15
+
16
+ //# sourceMappingURL=chunk-open-create-space.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-open-create-space.mjs","names":[],"sources":["../../src/operations/open-create-space.ts"],"sourcesContent":["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { CREATE_SPACE_DIALOG } from '../constants';\nimport { SpaceOperation } from './definitions';\n\nconst handler: Operation.WithHandler<typeof SpaceOperation.OpenCreateSpace> = SpaceOperation.OpenCreateSpace.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n yield* Operation.invoke(LayoutOperation.UpdateDialog, {\n subject: CREATE_SPACE_DIALOG,\n blockAlign: 'start',\n });\n }),\n ),\n);\nexport default handler;\n"],"mappings":";;;;;;AAUA,IAAM,UAAwE,eAAe,gBAAgB,KAC3G,UAAU,YACR,OAAO,WAAW,aAAa;CAC7B,OAAO,UAAU,OAAO,gBAAgB,cAAc;EACpD,SAAS;EACT,YAAY;CACd,CAAC;AACH,CAAC,CACH,CACF"}