@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,16 @@
1
+ import { n as SpaceOperation } from "./chunk-definitions.mjs";
2
+ import { IMPORT_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-import-space.ts
7
+ var handler = SpaceOperation.OpenImportSpace.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
8
+ yield* Operation.invoke(LayoutOperation.UpdateDialog, {
9
+ subject: IMPORT_SPACE_DIALOG,
10
+ blockAlign: "start"
11
+ });
12
+ })));
13
+ //#endregion
14
+ export { handler as default };
15
+
16
+ //# sourceMappingURL=chunk-open-import-space.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-open-import-space.mjs","names":[],"sources":["../../src/operations/open-import-space.ts"],"sourcesContent":["// Copyright 2026 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { IMPORT_SPACE_DIALOG } from '../constants';\nimport { SpaceOperation } from './definitions';\n\nconst handler: Operation.WithHandler<typeof SpaceOperation.OpenImportSpace> = SpaceOperation.OpenImportSpace.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n yield* Operation.invoke(LayoutOperation.UpdateDialog, {\n subject: IMPORT_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"}
@@ -0,0 +1,15 @@
1
+ import { n as SpaceOperation } from "./chunk-definitions.mjs";
2
+ import { GraphPath, LayoutOperation } from "@dxos/app-toolkit";
3
+ import * as Effect from "effect/Effect";
4
+ import { Operation } from "@dxos/compute";
5
+ //#region src/operations/open-members.ts
6
+ var handler = SpaceOperation.OpenMembers.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
7
+ yield* Operation.invoke(LayoutOperation.Open, {
8
+ subject: [GraphPath.getSpacePath(input.space.id, "settings")],
9
+ workspace: GraphPath.getSpacePath(input.space.id)
10
+ });
11
+ })));
12
+ //#endregion
13
+ export { handler as default };
14
+
15
+ //# sourceMappingURL=chunk-open-members.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-open-members.mjs","names":[],"sources":["../../src/operations/open-members.ts"],"sourcesContent":["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { GraphPath, LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { SpaceOperation } from './definitions';\n\nconst handler: Operation.WithHandler<typeof SpaceOperation.OpenMembers> = SpaceOperation.OpenMembers.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n yield* Operation.invoke(LayoutOperation.Open, {\n subject: [GraphPath.getSpacePath(input.space.id, 'settings')],\n workspace: GraphPath.getSpacePath(input.space.id),\n });\n }),\n ),\n);\nexport default handler;\n"],"mappings":";;;;;AASA,IAAM,UAAoE,eAAe,YAAY,KACnG,UAAU,YACR,OAAO,WAAW,WAAW,OAAO;CAClC,OAAO,UAAU,OAAO,gBAAgB,MAAM;EAC5C,SAAS,CAAC,UAAU,aAAa,MAAM,MAAM,IAAI,UAAU,CAAC;EAC5D,WAAW,UAAU,aAAa,MAAM,MAAM,EAAE;CAClD,CAAC;AACH,CAAC,CACH,CACF"}
@@ -0,0 +1,15 @@
1
+ import { n as SpaceOperation } from "./chunk-definitions.mjs";
2
+ import { GraphPath, LayoutOperation } from "@dxos/app-toolkit";
3
+ import * as Effect from "effect/Effect";
4
+ import { Operation } from "@dxos/compute";
5
+ //#region src/operations/open-settings.ts
6
+ var handler = SpaceOperation.OpenSettings.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
7
+ yield* Operation.invoke(LayoutOperation.Open, {
8
+ subject: [GraphPath.getSpacePath(input.space.id, "settings", "settings")],
9
+ workspace: GraphPath.getSpacePath(input.space.id)
10
+ });
11
+ })));
12
+ //#endregion
13
+ export { handler as default };
14
+
15
+ //# sourceMappingURL=chunk-open-settings.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-open-settings.mjs","names":[],"sources":["../../src/operations/open-settings.ts"],"sourcesContent":["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { GraphPath, LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { SpaceOperation } from './definitions';\n\nconst handler: Operation.WithHandler<typeof SpaceOperation.OpenSettings> = SpaceOperation.OpenSettings.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n yield* Operation.invoke(LayoutOperation.Open, {\n // The general settings panel node segment is `settings` (id-less `settings` url key), nested\n // under the space settings section (also `settings`).\n subject: [GraphPath.getSpacePath(input.space.id, 'settings', 'settings')],\n workspace: GraphPath.getSpacePath(input.space.id),\n });\n }),\n ),\n);\nexport default handler;\n"],"mappings":";;;;;AASA,IAAM,UAAqE,eAAe,aAAa,KACrG,UAAU,YACR,OAAO,WAAW,WAAW,OAAO;CAClC,OAAO,UAAU,OAAO,gBAAgB,MAAM;EAG5C,SAAS,CAAC,UAAU,aAAa,MAAM,MAAM,IAAI,YAAY,UAAU,CAAC;EACxE,WAAW,UAAU,aAAa,MAAM,MAAM,EAAE;CAClD,CAAC;AACH,CAAC,CACH,CACF"}
@@ -0,0 +1,11 @@
1
+ import { n as SpaceOperation } from "./chunk-definitions.mjs";
2
+ import * as Effect from "effect/Effect";
3
+ import { Operation } from "@dxos/compute";
4
+ //#region src/operations/open.ts
5
+ var handler = SpaceOperation.Open.pipe(Operation.withHandler((input) => Effect.promise(async () => {
6
+ await input.space.open();
7
+ })));
8
+ //#endregion
9
+ export { handler as default };
10
+
11
+ //# sourceMappingURL=chunk-open.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-open.mjs","names":[],"sources":["../../src/operations/open.ts"],"sourcesContent":["// Copyright 2025 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.Open> = SpaceOperation.Open.pipe(\n Operation.withHandler((input) =>\n Effect.promise(async () => {\n await input.space.open();\n }),\n ),\n);\nexport default handler;\n"],"mappings":";;;;AAQA,IAAM,UAA6D,eAAe,KAAK,KACrF,UAAU,aAAa,UACrB,OAAO,QAAQ,YAAY;CACzB,MAAM,MAAM,MAAM,KAAK;AACzB,CAAC,CACH,CACF"}
@@ -0,0 +1,13 @@
1
+ import { d as __exportAll } from "./chunk-types.mjs";
2
+ import { Capabilities, Capability } from "@dxos/app-framework";
3
+ import * as Effect from "effect/Effect";
4
+ import { SpaceOperationHandlerSet } from "#operations";
5
+ //#region src/capabilities/operation-handler.ts
6
+ var operation_handler_exports = /* @__PURE__ */ __exportAll({ default: () => operation_handler_default });
7
+ var operation_handler_default = Capability.makeModule(Effect.fnUntraced(function* () {
8
+ return Capability.contributes(Capabilities.OperationHandler, SpaceOperationHandlerSet);
9
+ }));
10
+ //#endregion
11
+ export { operation_handler_exports as n, operation_handler_default as t };
12
+
13
+ //# sourceMappingURL=chunk-operation-handler.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-operation-handler.mjs","names":[],"sources":["../../src/capabilities/operation-handler.ts"],"sourcesContent":["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport type { OperationHandlerSet } from '@dxos/compute';\n\nimport { SpaceOperationHandlerSet } from '#operations';\n\nexport default Capability.makeModule<OperationHandlerSet.OperationHandlerSet>(\n Effect.fnUntraced(function* () {\n return Capability.contributes(Capabilities.OperationHandler, SpaceOperationHandlerSet);\n }),\n);\n"],"mappings":";;;;;;AASA,IAAA,4BAAe,WAAW,WACxB,OAAO,WAAW,aAAa;CAC7B,OAAO,WAAW,YAAY,aAAa,kBAAkB,wBAAwB;AACvF,CAAC,CACH"}
@@ -0,0 +1,20 @@
1
+ import { Capabilities, Capability } from "@dxos/app-framework";
2
+ import { meta } from "#meta";
3
+ import * as Effect from "effect/Effect";
4
+ import { SpaceCapabilities } from "#types";
5
+ import "react";
6
+ import { useAtomCapability } from "@dxos/app-framework/ui";
7
+ import { jsx } from "react/jsx-runtime";
8
+ import { AwaitingObject } from "#components";
9
+ //#region src/capabilities/react-root.tsx
10
+ var react_root_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactRoot, {
11
+ id: meta.profile.key,
12
+ root: () => {
13
+ const ephemeral = useAtomCapability(SpaceCapabilities.EphemeralState);
14
+ return ephemeral.awaiting ? /* @__PURE__ */ jsx(AwaitingObject, { id: ephemeral.awaiting }) : null;
15
+ }
16
+ })));
17
+ //#endregion
18
+ export { react_root_default as default };
19
+
20
+ //# sourceMappingURL=chunk-react-root.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-react-root.mjs","names":[],"sources":["../../src/capabilities/react-root.tsx"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { useAtomCapability } from '@dxos/app-framework/ui';\n\nimport { AwaitingObject } from '#components';\nimport { meta } from '#meta';\nimport { SpaceCapabilities } from '#types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactRoot, {\n id: meta.profile.key,\n root: () => {\n const ephemeral = useAtomCapability(SpaceCapabilities.EphemeralState);\n return ephemeral.awaiting ? <AwaitingObject id={ephemeral.awaiting} /> : null;\n },\n }),\n ),\n);\n"],"mappings":";;;;;;;;;AAcA,IAAA,qBAAe,WAAW,iBACxB,OAAO,QACL,WAAW,YAAY,aAAa,WAAW;CAC7C,IAAI,KAAK,QAAQ;CACjB,YAAY;EACV,MAAM,YAAY,kBAAkB,kBAAkB,cAAc;EACpE,OAAO,UAAU,WAAW,oBAAC,gBAAD,EAAgB,IAAI,UAAU,SAAW,CAAA,IAAI;CAC3E;AACF,CAAC,CACH,CACF"}
@@ -0,0 +1,384 @@
1
+ import { CREATE_OBJECT_DIALOG, CREATE_SPACE_DIALOG, IMPORT_SPACE_DIALOG, JOIN_DIALOG, RENAME_POPOVER } from "./constants.mjs";
2
+ import { Capabilities, Capability } from "@dxos/app-framework";
3
+ import { Position } from "@dxos/util";
4
+ import { meta } from "#meta";
5
+ import { AppAnnotation } from "@dxos/app-toolkit";
6
+ import * as Effect from "effect/Effect";
7
+ import { Annotation, Collection, Database, Obj, Type } from "@dxos/echo";
8
+ import { SpaceOperation } from "#operations";
9
+ import { ViewAnnotation, getTypeURIFromQuery } from "@dxos/schema";
10
+ import { HueAnnotationId, IconAnnotationId, SPACE_HOME_NODE_TYPE, SpaceCapabilities, SpaceHomeContent, TypeInputOptionsAnnotationId } from "#types";
11
+ import * as Option from "effect/Option";
12
+ import { SchemaEx } from "@dxos/effect";
13
+ import { useCallback } from "react";
14
+ import { Surface, useAtomCapability, useOperationInvoker, useSettingsState } from "@dxos/app-framework/ui";
15
+ import { AppSurface, useActiveSpace, useHomeVisibility, useTypeOptions } from "@dxos/app-toolkit/ui";
16
+ import { useType } from "@dxos/echo-react";
17
+ import { SpaceState, getSpace, isSpace, useSpaces } from "@dxos/react-client/echo";
18
+ import { Input } from "@dxos/react-ui";
19
+ import { jsx, jsxs } from "react/jsx-runtime";
20
+ import { SelectField } from "@dxos/react-ui-form";
21
+ import { CollectionArticle, CollectionSection, CreateObjectDialog, CreateSpaceDialog, DefaultProperties, ImportSpaceDialog, InlineSyncStatus, JoinDialog, MembersContainer, MergePreview, ObjectCardStack, RecordArticle, RelatedArticle, RenamePopover, SchemaContainer, SmallPresenceLive, SpaceHomeArticle, SpaceHomeDashboard, SpaceHomeRecent, SpacePresence, SpaceSettings, SpaceSettingsContainer, SyncStatus, TypeArticle, ViewEditor as ViewEditor$1 } from "#containers";
22
+ import { HuePicker, IconPicker } from "@dxos/react-ui-pickers";
23
+ //#region src/capabilities/SpaceFormFields.tsx
24
+ var HueField = ({ data, label, readonly, getValue, onValueChange }) => {
25
+ const ast = data.fieldPropertyAst;
26
+ const handleChange = useCallback((nextHue) => ast && onValueChange(ast, nextHue), [ast, onValueChange]);
27
+ const handleReset = useCallback(() => ast && onValueChange(ast, void 0), [ast, onValueChange]);
28
+ if (!ast) return null;
29
+ return /* @__PURE__ */ jsxs(Input.Root, { children: [/* @__PURE__ */ jsx(Input.Label, { children: label }), /* @__PURE__ */ jsx(HuePicker, {
30
+ disabled: !!readonly,
31
+ value: getValue() ?? "",
32
+ onChange: handleChange,
33
+ onReset: handleReset
34
+ })] });
35
+ };
36
+ var IconField = ({ data, label, readonly, getValue, onValueChange }) => {
37
+ const ast = data.fieldPropertyAst;
38
+ const handleChange = useCallback((nextIcon) => ast && onValueChange(ast, nextIcon), [ast, onValueChange]);
39
+ const handleReset = useCallback(() => ast && onValueChange(ast, void 0), [ast, onValueChange]);
40
+ if (!ast) return null;
41
+ return /* @__PURE__ */ jsxs(Input.Root, { children: [/* @__PURE__ */ jsx(Input.Label, { children: label }), /* @__PURE__ */ jsx(IconPicker, {
42
+ disabled: !!readonly,
43
+ value: getValue() ?? "",
44
+ onChange: handleChange,
45
+ onReset: handleReset
46
+ })] });
47
+ };
48
+ var TypenameField = ({ data, ...inputProps }) => {
49
+ const ast = data.fieldPropertyAst;
50
+ const target = data.target;
51
+ const options = useTypeOptions({
52
+ db: Database.isDatabase(target) ? target : Obj.isObject(target) ? Obj.getDatabase(target) : void 0,
53
+ annotation: SchemaEx.findAnnotation(data.schema.ast, TypeInputOptionsAnnotationId)
54
+ });
55
+ if (!ast) return null;
56
+ return /* @__PURE__ */ jsx(SelectField, {
57
+ ...inputProps,
58
+ type: ast,
59
+ options
60
+ });
61
+ };
62
+ //#endregion
63
+ //#region src/capabilities/try-get-view.ts
64
+ /**
65
+ * Resolves the view backing an object through its type's `ViewAnnotation` path. The
66
+ * `objectProperties` filter and both consuming surfaces must agree, so they share this.
67
+ */
68
+ var tryGetViewForObject = (subject) => {
69
+ const type = Obj.getType(subject);
70
+ const path = type ? Option.getOrElse(ViewAnnotation.get(Type.getSchema(type)), () => []) : [];
71
+ return path.length > 0 ? ViewAnnotation.tryGetTargetAlongPath(subject, path) : void 0;
72
+ };
73
+ //#endregion
74
+ //#region src/capabilities/SpaceSurfaces.tsx
75
+ /** Home sections are individually dismissible per space, which is durable UI state. */
76
+ var SpaceHomeRecentSurface = ({ space }) => {
77
+ const { visible, hide } = useHomeVisibility(space, "spaceHomeRecent");
78
+ return visible ? /* @__PURE__ */ jsx(SpaceHomeRecent, {
79
+ space,
80
+ onClose: hide
81
+ }) : null;
82
+ };
83
+ var SpaceHomeDashboardSurface = ({ space }) => {
84
+ const { visible, hide } = useHomeVisibility(space, "spaceHomeDashboard");
85
+ return visible ? /* @__PURE__ */ jsx(SpaceHomeDashboard, {
86
+ space,
87
+ onClose: hide
88
+ }) : null;
89
+ };
90
+ var TypeArticleSurface = ({ role, attendableId, type, properties }) => {
91
+ const space = isSpace(properties?.space) ? properties.space : void 0;
92
+ if (!space) return null;
93
+ return /* @__PURE__ */ jsx(TypeArticle, {
94
+ role,
95
+ space,
96
+ type,
97
+ attendableId
98
+ });
99
+ };
100
+ var SpaceSettingsSurface = ({ subject }) => {
101
+ const spaces = useSpaces();
102
+ const { invokePromise } = useOperationInvoker();
103
+ const { settings, updateSettings } = useSettingsState(subject.atom);
104
+ return /* @__PURE__ */ jsx(SpaceSettings, {
105
+ spaces,
106
+ onOpenSpaceSettings: (space) => invokePromise(SpaceOperation.OpenSettings, { space }),
107
+ settings,
108
+ onSettingsChange: updateSettings
109
+ });
110
+ };
111
+ /** The space-settings articles are scoped to the active space rather than to a subject. */
112
+ var SpaceSettingsPropertiesSurface = () => {
113
+ const space = useActiveSpace();
114
+ if (!space) return null;
115
+ return /* @__PURE__ */ jsx(SpaceSettingsContainer, { space });
116
+ };
117
+ var SpaceMembersSurface = ({ createInvitationUrl }) => {
118
+ const space = useActiveSpace();
119
+ if (!space) return null;
120
+ return /* @__PURE__ */ jsx(MembersContainer, {
121
+ space,
122
+ createInvitationUrl
123
+ });
124
+ };
125
+ var SpaceSchemaSurface = () => {
126
+ const space = useActiveSpace();
127
+ if (!space) return null;
128
+ return /* @__PURE__ */ jsx(SchemaContainer, { space });
129
+ };
130
+ var SelectedObjectsSurface = ({ companionTo, ref }) => {
131
+ const activeSpace = useActiveSpace();
132
+ const isTypeCompanion = Type.isType(companionTo);
133
+ const view = !isTypeCompanion ? tryGetViewForObject(companionTo) : void 0;
134
+ const viewDb = view ? Obj.getDatabase(view) : void 0;
135
+ const resolvedViewType = useType(viewDb, view?.query ? getTypeURIFromQuery(view.query.ast) : void 0);
136
+ const { mergePreview } = useAtomCapability(SpaceCapabilities.EphemeralState);
137
+ if (isTypeCompanion) {
138
+ if (!activeSpace) return null;
139
+ if (mergePreview?.typeUri === Type.getURI(companionTo)) return /* @__PURE__ */ jsx(MergePreview, {
140
+ type: companionTo,
141
+ spaceId: activeSpace.id,
142
+ preview: mergePreview,
143
+ ref
144
+ });
145
+ return /* @__PURE__ */ jsx(ObjectCardStack, {
146
+ objectId: Type.getURI(companionTo),
147
+ db: activeSpace.db,
148
+ type: companionTo,
149
+ ref
150
+ }, Type.getURI(companionTo));
151
+ }
152
+ if (!view || !viewDb || !resolvedViewType) return null;
153
+ return /* @__PURE__ */ jsx(ObjectCardStack, {
154
+ objectId: Obj.getURI(companionTo),
155
+ db: viewDb,
156
+ type: resolvedViewType,
157
+ ref
158
+ }, Obj.getURI(companionTo));
159
+ };
160
+ /** Resolves the view backing the object; the filter has already established that one exists. */
161
+ var ViewEditorSurface = ({ subject }) => {
162
+ const view = tryGetViewForObject(subject);
163
+ if (!view) return null;
164
+ return /* @__PURE__ */ jsx(ViewEditor$1, { view });
165
+ };
166
+ var NavtreePresenceSurface = ({ id, open }) => {
167
+ return /* @__PURE__ */ jsx(SmallPresenceLive, {
168
+ id,
169
+ open,
170
+ viewers: useAtomCapability(SpaceCapabilities.EphemeralState).viewersByObject[id]
171
+ });
172
+ };
173
+ /** For a space the presence target is its root collection; for an object it is the object itself. */
174
+ var NavbarPresenceSurface = ({ subject }) => {
175
+ const space = isSpace(subject) ? subject : getSpace(subject);
176
+ const object = isSpace(subject) ? subject.state.get() === SpaceState.SPACE_READY ? space && Annotation.get(space.properties, AppAnnotation.RootCollectionAnnotation).pipe(Option.getOrUndefined)?.target : void 0 : subject;
177
+ return object ? /* @__PURE__ */ jsx(SpacePresence, { object }) : null;
178
+ };
179
+ //#endregion
180
+ //#region src/capabilities/react-surface.ts
181
+ var react_surface_default = Capability.makeModule(Effect.fnUntraced(function* ({ createInvitationUrl }) {
182
+ return Capability.contributes(Capabilities.ReactSurface, [
183
+ Surface.create({
184
+ id: "spaceHome",
185
+ filter: AppSurface.literal(AppSurface.Article, SPACE_HOME_NODE_TYPE),
186
+ component: SpaceHomeArticle,
187
+ props: ({ role, data: { attendableId, properties } }) => ({
188
+ role,
189
+ attendableId,
190
+ space: properties?.space
191
+ })
192
+ }),
193
+ Surface.create({
194
+ id: "spaceHomeRecent",
195
+ filter: Surface.makeFilter(SpaceHomeContent),
196
+ component: SpaceHomeRecentSurface,
197
+ props: ({ data: { space } }) => ({ space })
198
+ }),
199
+ Surface.create({
200
+ id: "spaceHomeDashboard",
201
+ filter: Surface.makeFilter(SpaceHomeContent),
202
+ component: SpaceHomeDashboardSurface,
203
+ props: ({ data: { space } }) => ({ space })
204
+ }),
205
+ Surface.create({
206
+ id: "collectionFallback",
207
+ position: Position.last,
208
+ filter: AppSurface.object(AppSurface.Article, Collection.Collection),
209
+ component: CollectionArticle,
210
+ props: ({ data: { subject, attendableId } }) => ({
211
+ subject,
212
+ attendableId
213
+ })
214
+ }),
215
+ Surface.create({
216
+ id: "recordArticle",
217
+ position: Position.last,
218
+ filter: AppSurface.subject(AppSurface.Article, Obj.isObject),
219
+ component: RecordArticle,
220
+ props: ({ data: { subject } }) => ({ subject })
221
+ }),
222
+ Surface.create({
223
+ id: "typeCollection",
224
+ filter: AppSurface.subject(AppSurface.Article, Type.isType),
225
+ component: TypeArticleSurface,
226
+ props: ({ role, data: { subject, attendableId, properties } }) => ({
227
+ role,
228
+ type: subject,
229
+ attendableId,
230
+ properties
231
+ })
232
+ }),
233
+ Surface.create({
234
+ id: "pluginSettings",
235
+ filter: AppSurface.settings(AppSurface.Article, meta.profile.key),
236
+ component: SpaceSettingsSurface,
237
+ props: ({ data: { subject } }) => ({ subject })
238
+ }),
239
+ Surface.create({
240
+ id: "companion.objectProperties",
241
+ filter: AppSurface.allOf(AppSurface.literal(AppSurface.Article, "settings"), AppSurface.companion(AppSurface.Article)),
242
+ component: DefaultProperties,
243
+ props: ({ role, ref, data: { companionTo } }) => ({
244
+ role,
245
+ subject: companionTo,
246
+ ref
247
+ })
248
+ }),
249
+ Surface.create({
250
+ id: "companion.related",
251
+ filter: AppSurface.allOf(AppSurface.literal(AppSurface.Article, "related"), AppSurface.companion(AppSurface.Article)),
252
+ component: RelatedArticle,
253
+ props: ({ role, data: { companionTo } }) => ({
254
+ role,
255
+ companionTo
256
+ })
257
+ }),
258
+ Surface.create({
259
+ id: "spaceSettingsProperties",
260
+ filter: AppSurface.literal(AppSurface.Article, `${meta.profile.key}.general`),
261
+ component: SpaceSettingsPropertiesSurface
262
+ }),
263
+ Surface.create({
264
+ id: "spaceSettingsMembers",
265
+ position: Position.first,
266
+ filter: AppSurface.literal(AppSurface.Article, `${meta.profile.key}.members`),
267
+ component: SpaceMembersSurface,
268
+ props: () => ({ createInvitationUrl })
269
+ }),
270
+ Surface.create({
271
+ id: "spaceSettingsSchema",
272
+ filter: AppSurface.literal(AppSurface.Article, `${meta.profile.key}.schema`),
273
+ component: SpaceSchemaSurface
274
+ }),
275
+ Surface.create({
276
+ id: "selectedObjects",
277
+ filter: AppSurface.allOf(AppSurface.literal(AppSurface.Article, "selected-objects"), AppSurface.companion(AppSurface.Article, (value) => Type.isType(value) || Obj.isObject(value))),
278
+ component: SelectedObjectsSurface,
279
+ props: ({ ref, data: { companionTo } }) => ({
280
+ companionTo,
281
+ ref
282
+ })
283
+ }),
284
+ Surface.create({
285
+ id: JOIN_DIALOG,
286
+ filter: AppSurface.component(AppSurface.Dialog, JOIN_DIALOG),
287
+ component: JoinDialog,
288
+ props: ({ data: { props } }) => ({ ...props })
289
+ }),
290
+ Surface.create({
291
+ id: CREATE_SPACE_DIALOG,
292
+ filter: AppSurface.component(AppSurface.Dialog, CREATE_SPACE_DIALOG),
293
+ component: CreateSpaceDialog
294
+ }),
295
+ Surface.create({
296
+ id: IMPORT_SPACE_DIALOG,
297
+ filter: AppSurface.component(AppSurface.Dialog, IMPORT_SPACE_DIALOG),
298
+ component: ImportSpaceDialog
299
+ }),
300
+ Surface.create({
301
+ id: CREATE_OBJECT_DIALOG,
302
+ filter: AppSurface.component(AppSurface.Dialog, CREATE_OBJECT_DIALOG),
303
+ component: CreateObjectDialog,
304
+ props: ({ data: { props } }) => ({ ...props })
305
+ }),
306
+ Surface.create({
307
+ id: "createInitialSpaceFormHue",
308
+ filter: AppSurface.formInputBySchema((ast) => !!SchemaEx.findAnnotation(ast, HueAnnotationId)),
309
+ component: HueField
310
+ }),
311
+ Surface.create({
312
+ id: "createInitialSpaceFormIcon",
313
+ filter: AppSurface.formInputBySchema((ast) => !!SchemaEx.findAnnotation(ast, IconAnnotationId)),
314
+ component: IconField
315
+ }),
316
+ Surface.create({
317
+ id: "typenameFormInput",
318
+ filter: AppSurface.formInput((data) => data.prop === "typename" && !!SchemaEx.findAnnotation(data.schema.ast, TypeInputOptionsAnnotationId)),
319
+ component: TypenameField
320
+ }),
321
+ Surface.create({
322
+ id: "objectProperties",
323
+ filter: Surface.makeFilter(AppSurface.ObjectProperties, (data) => Obj.isObject(data.subject) && !!tryGetViewForObject(data.subject)),
324
+ component: ViewEditorSurface,
325
+ props: ({ data: { subject } }) => ({ subject })
326
+ }),
327
+ Surface.create({
328
+ id: RENAME_POPOVER,
329
+ filter: AppSurface.component(AppSurface.Popover, RENAME_POPOVER),
330
+ component: RenamePopover,
331
+ props: ({ data: { props } }) => ({ subject: props })
332
+ }),
333
+ Surface.create({
334
+ id: "navtreePresence",
335
+ filter: AppSurface.subject(AppSurface.NavtreeItemEnd, Obj.isObject),
336
+ component: NavtreePresenceSurface,
337
+ props: ({ data: { id, open } }) => ({
338
+ id,
339
+ open
340
+ })
341
+ }),
342
+ Surface.create({
343
+ id: "navtreePresenceFallback",
344
+ position: Position.last,
345
+ filter: Surface.makeFilter(AppSurface.NavtreeItemEnd),
346
+ component: SmallPresenceLive,
347
+ props: ({ data: { id, open } }) => ({
348
+ id,
349
+ open
350
+ })
351
+ }),
352
+ Surface.create({
353
+ id: "navtreeSyncStatus",
354
+ filter: AppSurface.subject(AppSurface.NavtreeItemEnd, isSpace),
355
+ component: InlineSyncStatus,
356
+ props: ({ data: { subject, open } }) => ({
357
+ space: subject,
358
+ open
359
+ })
360
+ }),
361
+ Surface.create({
362
+ id: "navbarPresence",
363
+ position: Position.first,
364
+ filter: AppSurface.subject(AppSurface.NavbarEnd, (value) => isSpace(value) || Obj.isObject(value)),
365
+ component: NavbarPresenceSurface,
366
+ props: ({ data: { subject } }) => ({ subject })
367
+ }),
368
+ Surface.create({
369
+ id: "collectionSection",
370
+ filter: AppSurface.object(AppSurface.Section, Collection.Collection),
371
+ component: CollectionSection,
372
+ props: ({ data: { subject } }) => ({ subject })
373
+ }),
374
+ Surface.create({
375
+ id: "syncStatus",
376
+ filter: Surface.makeFilter(AppSurface.StatusIndicator),
377
+ component: SyncStatus
378
+ })
379
+ ]);
380
+ }));
381
+ //#endregion
382
+ export { react_surface_default as default };
383
+
384
+ //# sourceMappingURL=chunk-react-surface.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk-react-surface.mjs","names":[],"sources":["../../src/capabilities/SpaceFormFields.tsx","../../src/capabilities/try-get-view.ts","../../src/capabilities/SpaceSurfaces.tsx","../../src/capabilities/react-surface.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\n// Form-input surfaces. Each consumes the whole surface envelope — the form renderer's own props ride\n// alongside `data` — so they are registered without a `props` mapper.\n\nimport React, { useCallback } from 'react';\n\nimport { type Surface } from '@dxos/app-framework/ui';\nimport { type AppSurface, useTypeOptions } from '@dxos/app-toolkit/ui';\nimport { Database, Obj } from '@dxos/echo';\nimport { SchemaEx } from '@dxos/effect';\nimport { Input } from '@dxos/react-ui';\nimport { type FormFieldRendererProps, SelectField } from '@dxos/react-ui-form';\nimport { HuePicker, IconPicker } from '@dxos/react-ui-pickers';\n\nimport { type TypeInputOptions, TypeInputOptionsAnnotationId } from '#types';\n\n/** The form renderer's own props ride alongside `data`; `type` comes from the field AST. */\nexport type SpaceFormFieldProps = Surface.ComponentProps<AppSurface.FormInputData> &\n Omit<FormFieldRendererProps, 'type'>;\n\nexport const HueField = ({ data, label, readonly, getValue, onValueChange }: SpaceFormFieldProps) => {\n const ast = data.fieldPropertyAst;\n const handleChange = useCallback((nextHue: string) => ast && onValueChange(ast, nextHue), [ast, onValueChange]);\n const handleReset = useCallback(() => ast && onValueChange(ast, undefined), [ast, onValueChange]);\n\n if (!ast) {\n return null;\n }\n\n return (\n <Input.Root>\n <Input.Label>{label}</Input.Label>\n <HuePicker disabled={!!readonly} value={getValue() ?? ''} onChange={handleChange} onReset={handleReset} />\n </Input.Root>\n );\n};\n\nexport const IconField = ({ data, label, readonly, getValue, onValueChange }: SpaceFormFieldProps) => {\n const ast = data.fieldPropertyAst;\n const handleChange = useCallback((nextIcon: string) => ast && onValueChange(ast, nextIcon), [ast, onValueChange]);\n const handleReset = useCallback(() => ast && onValueChange(ast, undefined), [ast, onValueChange]);\n\n if (!ast) {\n return null;\n }\n\n return (\n <Input.Root>\n <Input.Label>{label}</Input.Label>\n <IconPicker disabled={!!readonly} value={getValue() ?? ''} onChange={handleChange} onReset={handleReset} />\n </Input.Root>\n );\n};\n\nexport const TypenameField = ({ data, ...inputProps }: SpaceFormFieldProps) => {\n const ast = data.fieldPropertyAst;\n const target = data.target;\n const db = Database.isDatabase(target) ? target : Obj.isObject(target) ? Obj.getDatabase(target) : undefined;\n const annotation = SchemaEx.findAnnotation<TypeInputOptions>(data.schema.ast, TypeInputOptionsAnnotationId)!;\n const options = useTypeOptions({ db, annotation });\n\n if (!ast) {\n return null;\n }\n\n const props: FormFieldRendererProps = { ...inputProps, type: ast };\n\n return <SelectField {...props} options={options} />;\n};\n","//\n// Copyright 2025 DXOS.org\n//\n\n// Surface components that cannot be expressed as a `props` mapper, because they call hooks or must\n// render nothing until an ambient value (the active space, a backing view) resolves.\nimport * as Option from 'effect/Option';\n\nimport { Obj, Type, type View } from '@dxos/echo';\nimport { ViewAnnotation } from '@dxos/schema';\n\n// Kept out of `SpaceSurfaces.tsx`: react-refresh only fast-refreshes a module whose\n// exports are all components, so values exported beside them force a full page reload on\n// every edit.\n\n/**\n * Resolves the view backing an object through its type's `ViewAnnotation` path. The\n * `objectProperties` filter and both consuming surfaces must agree, so they share this.\n */\nexport const tryGetViewForObject = (subject: Obj.Unknown): View.View | undefined => {\n const type = Obj.getType(subject);\n const path = type ? Option.getOrElse(ViewAnnotation.get(Type.getSchema(type)), () => [] as readonly string[]) : [];\n return path.length > 0 ? ViewAnnotation.tryGetTargetAlongPath(subject, path) : undefined;\n};\n","//\n// Copyright 2025 DXOS.org\n//\n\n// Surface components that cannot be expressed as a `props` mapper, because they call hooks or must\n// render nothing until an ambient value (the active space, a backing view) resolves.\n\nimport * as Option from 'effect/Option';\nimport React, { type Ref } from 'react';\n\nimport { useAtomCapability, useOperationInvoker, useSettingsState } from '@dxos/app-framework/ui';\nimport { AppAnnotation, type AppCapabilities } from '@dxos/app-toolkit';\nimport { useActiveSpace, useHomeVisibility } from '@dxos/app-toolkit/ui';\nimport { Annotation, Obj, Type } from '@dxos/echo';\nimport { useType } from '@dxos/echo-react';\nimport { type Space, SpaceState, getSpace, isSpace, useSpaces } from '@dxos/react-client/echo';\nimport { getTypeURIFromQuery } from '@dxos/schema';\n\nimport {\n MembersContainer,\n MergePreview,\n ObjectCardStack,\n SchemaContainer,\n SmallPresenceLive,\n SpaceHomeDashboard,\n SpaceHomeRecent,\n SpacePresence,\n SpaceSettings,\n SpaceSettingsContainer,\n TypeArticle,\n ViewEditor,\n} from '#containers';\nimport { SpaceOperation } from '#operations';\nimport { type Settings, SpaceCapabilities } from '#types';\n\nimport { tryGetViewForObject } from './try-get-view';\n\nexport type SpaceHomeSectionProps = {\n space: Space;\n};\n\n/** Home sections are individually dismissible per space, which is durable UI state. */\nexport const SpaceHomeRecentSurface = ({ space }: SpaceHomeSectionProps) => {\n const { visible, hide } = useHomeVisibility(space, 'spaceHomeRecent');\n\n return visible ? <SpaceHomeRecent space={space} onClose={hide} /> : null;\n};\n\nexport const SpaceHomeDashboardSurface = ({ space }: SpaceHomeSectionProps) => {\n const { visible, hide } = useHomeVisibility(space, 'spaceHomeDashboard');\n\n return visible ? <SpaceHomeDashboard space={space} onClose={hide} /> : null;\n};\n\nexport type TypeArticleSurfaceProps = {\n role: string;\n attendableId: string;\n type: Type.AnyEntity;\n /** The navtree node's properties bag, which carries the space for a type collection. */\n properties?: Record<string, unknown>;\n};\n\nexport const TypeArticleSurface = ({ role, attendableId, type, properties }: TypeArticleSurfaceProps) => {\n const space = isSpace(properties?.space) ? properties.space : undefined;\n if (!space) {\n return null;\n }\n\n return <TypeArticle role={role} space={space} type={type} attendableId={attendableId} />;\n};\n\nexport type SpaceSettingsSurfaceProps = {\n subject: AppCapabilities.Settings;\n};\n\nexport const SpaceSettingsSurface = ({ subject }: SpaceSettingsSurfaceProps) => {\n const spaces = useSpaces();\n const { invokePromise } = useOperationInvoker();\n const { settings, updateSettings } = useSettingsState<Settings.Settings>(subject.atom);\n\n return (\n <SpaceSettings\n spaces={spaces}\n onOpenSpaceSettings={(space: Space) => invokePromise(SpaceOperation.OpenSettings, { space })}\n settings={settings}\n onSettingsChange={updateSettings}\n />\n );\n};\n\n/** The space-settings articles are scoped to the active space rather than to a subject. */\nexport const SpaceSettingsPropertiesSurface = () => {\n const space = useActiveSpace();\n if (!space) {\n return null;\n }\n\n return <SpaceSettingsContainer space={space} />;\n};\n\nexport type SpaceMembersSurfaceProps = {\n createInvitationUrl: (invitationCode: string) => string;\n};\n\nexport const SpaceMembersSurface = ({ createInvitationUrl }: SpaceMembersSurfaceProps) => {\n const space = useActiveSpace();\n if (!space) {\n return null;\n }\n\n return <MembersContainer space={space} createInvitationUrl={createInvitationUrl} />;\n};\n\nexport const SpaceSchemaSurface = () => {\n const space = useActiveSpace();\n if (!space) {\n return null;\n }\n\n return <SchemaContainer space={space} />;\n};\n\nexport type SelectedObjectsSurfaceProps = {\n companionTo: Type.AnyEntity | Obj.Unknown;\n ref?: Ref<HTMLDivElement>;\n};\n\n// TODO(burdon): Replace with mosaic.\nexport const SelectedObjectsSurface = ({ companionTo, ref }: SelectedObjectsSurfaceProps) => {\n const activeSpace = useActiveSpace();\n const isTypeCompanion = Type.isType(companionTo);\n\n // Object companion (e.g. a Table.Table): resolve its type via the view backing it.\n const view = !isTypeCompanion ? tryGetViewForObject(companionTo) : undefined;\n const viewDb = view ? Obj.getDatabase(view) : undefined;\n const viewTypeUri = view?.query ? getTypeURIFromQuery(view.query.ast) : undefined;\n const resolvedViewType = useType(viewDb, viewTypeUri);\n\n // A staged merge takes over the companion: the panel's job is to show what the user is\n // about to select, and during a review that is the proposed merged object, not the inputs.\n const { mergePreview } = useAtomCapability(SpaceCapabilities.EphemeralState);\n\n // Type/schema companion (e.g. a TypeArticle plank): the type IS the subject, no view lookup needed.\n if (isTypeCompanion) {\n if (!activeSpace) {\n return null;\n }\n\n if (mergePreview?.typeUri === Type.getURI(companionTo)) {\n return <MergePreview type={companionTo} spaceId={activeSpace.id} preview={mergePreview} ref={ref} />;\n }\n\n return (\n <ObjectCardStack\n key={Type.getURI(companionTo)}\n objectId={Type.getURI(companionTo)}\n db={activeSpace.db}\n type={companionTo}\n ref={ref}\n />\n );\n }\n\n if (!view || !viewDb || !resolvedViewType) {\n return null;\n }\n\n return (\n <ObjectCardStack\n key={Obj.getURI(companionTo)}\n objectId={Obj.getURI(companionTo)}\n db={viewDb}\n type={resolvedViewType}\n ref={ref}\n />\n );\n};\n\nexport type ViewEditorSurfaceProps = {\n subject: Obj.Unknown;\n};\n\n/** Resolves the view backing the object; the filter has already established that one exists. */\nexport const ViewEditorSurface = ({ subject }: ViewEditorSurfaceProps) => {\n const view = tryGetViewForObject(subject);\n if (!view) {\n return null;\n }\n\n return <ViewEditor view={view} />;\n};\n\nexport type NavtreePresenceSurfaceProps = {\n id: string;\n open?: boolean;\n};\n\nexport const NavtreePresenceSurface = ({ id, open }: NavtreePresenceSurfaceProps) => {\n const ephemeral = useAtomCapability(SpaceCapabilities.EphemeralState);\n\n return <SmallPresenceLive id={id} open={open} viewers={ephemeral.viewersByObject[id]} />;\n};\n\nexport type NavbarPresenceSurfaceProps = {\n subject: Space | Obj.Unknown;\n};\n\n/** For a space the presence target is its root collection; for an object it is the object itself. */\nexport const NavbarPresenceSurface = ({ subject }: NavbarPresenceSurfaceProps) => {\n const space = isSpace(subject) ? subject : getSpace(subject);\n const object = isSpace(subject)\n ? subject.state.get() === SpaceState.SPACE_READY\n ? space &&\n Annotation.get(space.properties, AppAnnotation.RootCollectionAnnotation).pipe(Option.getOrUndefined)?.target\n : undefined\n : subject;\n\n return object ? <SpacePresence object={object} /> : null;\n};\n","//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport { type ComponentProps } from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { AppSurface } from '@dxos/app-toolkit/ui';\nimport { Collection, Obj, Type } from '@dxos/echo';\nimport { SchemaEx } from '@dxos/effect';\nimport { type Space, isSpace } from '@dxos/react-client/echo';\nimport { Position } from '@dxos/util';\n\nimport {\n CollectionArticle,\n CollectionSection,\n CreateObjectDialog,\n CreateSpaceDialog,\n DefaultProperties,\n ImportSpaceDialog,\n InlineSyncStatus,\n JoinDialog,\n RecordArticle,\n RelatedArticle,\n RenamePopover,\n type RenameSubject,\n SmallPresenceLive,\n SpaceHomeArticle,\n SyncStatus,\n} from '#containers';\nimport { meta } from '#meta';\nimport {\n HueAnnotationId,\n IconAnnotationId,\n SPACE_HOME_NODE_TYPE,\n SpaceHomeContent,\n TypeInputOptionsAnnotationId,\n} from '#types';\n\nimport {\n CREATE_OBJECT_DIALOG,\n CREATE_SPACE_DIALOG,\n IMPORT_SPACE_DIALOG,\n JOIN_DIALOG,\n RENAME_POPOVER,\n} from '../constants';\nimport { HueField, IconField, TypenameField } from './SpaceFormFields';\nimport {\n NavbarPresenceSurface,\n NavtreePresenceSurface,\n SelectedObjectsSurface,\n SpaceHomeDashboardSurface,\n SpaceHomeRecentSurface,\n SpaceMembersSurface,\n SpaceSchemaSurface,\n SpaceSettingsPropertiesSurface,\n SpaceSettingsSurface,\n TypeArticleSurface,\n ViewEditorSurface,\n} from './SpaceSurfaces';\nimport { tryGetViewForObject } from './try-get-view';\n\ntype ReactSurfaceOptions = {\n createInvitationUrl: (invitationCode: string) => string;\n};\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* ({ createInvitationUrl }: ReactSurfaceOptions) {\n return Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: 'spaceHome',\n filter: AppSurface.literal(AppSurface.Article, SPACE_HOME_NODE_TYPE),\n component: SpaceHomeArticle,\n props: ({ role, data: { attendableId, properties } }) => ({\n role,\n attendableId,\n space: properties?.space,\n }),\n }),\n Surface.create({\n id: 'spaceHomeRecent',\n filter: Surface.makeFilter(SpaceHomeContent),\n component: SpaceHomeRecentSurface,\n props: ({ data: { space } }) => ({ space }),\n }),\n Surface.create({\n id: 'spaceHomeDashboard',\n filter: Surface.makeFilter(SpaceHomeContent),\n component: SpaceHomeDashboardSurface,\n props: ({ data: { space } }) => ({ space }),\n }),\n Surface.create({\n id: 'collectionFallback',\n position: Position.last,\n filter: AppSurface.object(AppSurface.Article, Collection.Collection),\n component: CollectionArticle,\n props: ({ data: { subject, attendableId } }) => ({ subject, attendableId }),\n }),\n Surface.create({\n id: 'recordArticle',\n position: Position.last,\n filter: AppSurface.subject(AppSurface.Article, Obj.isObject),\n component: RecordArticle,\n props: ({ data: { subject } }) => ({ subject }),\n }),\n Surface.create({\n id: 'typeCollection',\n filter: AppSurface.subject(AppSurface.Article, Type.isType),\n component: TypeArticleSurface,\n props: ({ role, data: { subject, attendableId, properties } }) => ({\n role,\n type: subject,\n attendableId,\n properties,\n }),\n }),\n Surface.create({\n id: 'pluginSettings',\n filter: AppSurface.settings(AppSurface.Article, meta.profile.key),\n component: SpaceSettingsSurface,\n props: ({ data: { subject } }) => ({ subject }),\n }),\n Surface.create({\n id: 'companion.objectProperties',\n filter: AppSurface.allOf(\n AppSurface.literal(AppSurface.Article, 'settings'),\n AppSurface.companion(AppSurface.Article),\n ),\n component: DefaultProperties,\n props: ({ role, ref, data: { companionTo } }) => ({ role, subject: companionTo, ref }),\n }),\n Surface.create({\n id: 'companion.related',\n filter: AppSurface.allOf(\n AppSurface.literal(AppSurface.Article, 'related'),\n AppSurface.companion(AppSurface.Article),\n ),\n component: RelatedArticle,\n props: ({ role, data: { companionTo } }) => ({ role, companionTo }),\n }),\n Surface.create({\n id: 'spaceSettingsProperties',\n filter: AppSurface.literal(AppSurface.Article, `${meta.profile.key}.general`),\n component: SpaceSettingsPropertiesSurface,\n }),\n Surface.create({\n id: 'spaceSettingsMembers',\n position: Position.first,\n filter: AppSurface.literal(AppSurface.Article, `${meta.profile.key}.members`),\n component: SpaceMembersSurface,\n props: () => ({ createInvitationUrl }),\n }),\n Surface.create({\n id: 'spaceSettingsSchema',\n filter: AppSurface.literal(AppSurface.Article, `${meta.profile.key}.schema`),\n component: SpaceSchemaSurface,\n }),\n Surface.create({\n id: 'selectedObjects',\n filter: AppSurface.allOf(\n AppSurface.literal(AppSurface.Article, 'selected-objects'),\n AppSurface.companion(\n AppSurface.Article,\n (value): value is Type.AnyEntity | Obj.Unknown => Type.isType(value) || Obj.isObject(value),\n ),\n ),\n component: SelectedObjectsSurface,\n props: ({ ref, data: { companionTo } }) => ({ companionTo, ref }),\n }),\n Surface.create({\n id: JOIN_DIALOG,\n filter: AppSurface.component<ComponentProps<typeof JoinDialog>>(AppSurface.Dialog, JOIN_DIALOG),\n component: JoinDialog,\n props: ({ data: { props } }) => ({ ...props }),\n }),\n Surface.create({\n id: CREATE_SPACE_DIALOG,\n filter: AppSurface.component(AppSurface.Dialog, CREATE_SPACE_DIALOG),\n component: CreateSpaceDialog,\n }),\n Surface.create({\n id: IMPORT_SPACE_DIALOG,\n filter: AppSurface.component(AppSurface.Dialog, IMPORT_SPACE_DIALOG),\n component: ImportSpaceDialog,\n }),\n Surface.create({\n id: CREATE_OBJECT_DIALOG,\n filter: AppSurface.component<ComponentProps<typeof CreateObjectDialog>>(\n AppSurface.Dialog,\n CREATE_OBJECT_DIALOG,\n ),\n component: CreateObjectDialog,\n props: ({ data: { props } }) => ({ ...props }),\n }),\n Surface.create({\n id: 'createInitialSpaceFormHue',\n filter: AppSurface.formInputBySchema((ast) => !!SchemaEx.findAnnotation<boolean>(ast, HueAnnotationId)),\n component: HueField,\n }),\n Surface.create({\n id: 'createInitialSpaceFormIcon',\n filter: AppSurface.formInputBySchema((ast) => !!SchemaEx.findAnnotation<boolean>(ast, IconAnnotationId)),\n component: IconField,\n }),\n Surface.create({\n id: 'typenameFormInput',\n filter: AppSurface.formInput(\n (data) =>\n data.prop === 'typename' && !!SchemaEx.findAnnotation(data.schema.ast, TypeInputOptionsAnnotationId),\n ),\n component: TypenameField,\n }),\n Surface.create({\n id: 'objectProperties',\n filter: Surface.makeFilter(\n AppSurface.ObjectProperties,\n (data) => Obj.isObject(data.subject) && !!tryGetViewForObject(data.subject),\n ),\n component: ViewEditorSurface,\n props: ({ data: { subject } }) => ({ subject }),\n }),\n Surface.create({\n id: RENAME_POPOVER,\n filter: AppSurface.component<RenameSubject>(AppSurface.Popover, RENAME_POPOVER),\n component: RenamePopover,\n props: ({ data: { props } }) => ({ subject: props }),\n }),\n Surface.create({\n id: 'navtreePresence',\n filter: AppSurface.subject(AppSurface.NavtreeItemEnd, Obj.isObject),\n component: NavtreePresenceSurface,\n props: ({ data: { id, open } }) => ({ id, open }),\n }),\n // TODO(wittjosiah): Attention glyph for non-echo items should be handled elsewhere.\n Surface.create({\n id: 'navtreePresenceFallback',\n position: Position.last,\n filter: Surface.makeFilter(AppSurface.NavtreeItemEnd),\n component: SmallPresenceLive,\n props: ({ data: { id, open } }) => ({ id, open }),\n }),\n // TODO(wittjosiah): Broken?\n Surface.create({\n id: 'navtreeSyncStatus',\n filter: AppSurface.subject(AppSurface.NavtreeItemEnd, isSpace),\n component: InlineSyncStatus,\n props: ({ data: { subject, open } }) => ({ space: subject, open }),\n }),\n Surface.create({\n id: 'navbarPresence',\n position: Position.first,\n filter: AppSurface.subject(\n AppSurface.NavbarEnd,\n (value): value is Space | Obj.Unknown => isSpace(value) || Obj.isObject(value),\n ),\n component: NavbarPresenceSurface,\n props: ({ data: { subject } }) => ({ subject }),\n }),\n Surface.create({\n id: 'collectionSection',\n filter: AppSurface.object(AppSurface.Section, Collection.Collection),\n component: CollectionSection,\n props: ({ data: { subject } }) => ({ subject }),\n }),\n Surface.create({\n id: 'syncStatus',\n filter: Surface.makeFilter(AppSurface.StatusIndicator),\n component: SyncStatus,\n }),\n ]);\n }),\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAuBA,IAAa,YAAY,EAAE,MAAM,OAAO,UAAU,UAAU,oBAAyC;CACnG,MAAM,MAAM,KAAK;CACjB,MAAM,eAAe,aAAa,YAAoB,OAAO,cAAc,KAAK,OAAO,GAAG,CAAC,KAAK,aAAa,CAAC;CAC9G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