@dxos/plugin-thread 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef

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 (310) hide show
  1. package/dist/lib/browser/{add-message-A33GVGQX.mjs → add-message-LRVGIHDH.mjs} +9 -17
  2. package/dist/lib/browser/add-message-LRVGIHDH.mjs.map +7 -0
  3. package/dist/lib/browser/append-channel-message-CO3M6FSA.mjs +40 -0
  4. package/dist/lib/browser/append-channel-message-CO3M6FSA.mjs.map +7 -0
  5. package/dist/lib/browser/blueprints/index.mjs +1 -1
  6. package/dist/lib/browser/blueprints/index.mjs.map +3 -3
  7. package/dist/lib/browser/chunk-E4GG3NX2.mjs +29 -0
  8. package/dist/lib/browser/chunk-E4GG3NX2.mjs.map +7 -0
  9. package/dist/lib/browser/{chunk-2QNKWX4H.mjs → chunk-TPNZ43NB.mjs} +15 -16
  10. package/dist/lib/browser/chunk-TPNZ43NB.mjs.map +7 -0
  11. package/dist/lib/browser/{create-N2ZVTONJ.mjs → create-BTGLHLBA.mjs} +9 -9
  12. package/dist/lib/browser/create-BTGLHLBA.mjs.map +7 -0
  13. package/dist/lib/browser/{create-channel-Y4H3535D.mjs → create-channel-ZXKSLHGN.mjs} +5 -7
  14. package/dist/lib/browser/create-channel-ZXKSLHGN.mjs.map +7 -0
  15. package/dist/lib/browser/{create-proposals-VTOSWUOX.mjs → create-proposals-AV5CREPV.mjs} +3 -4
  16. package/dist/lib/browser/create-proposals-AV5CREPV.mjs.map +7 -0
  17. package/dist/lib/browser/{delete-QZZE655Y.mjs → delete-GLYEP7NE.mjs} +6 -6
  18. package/dist/lib/browser/delete-GLYEP7NE.mjs.map +7 -0
  19. package/dist/lib/browser/{delete-message-WQAZLYBO.mjs → delete-message-RQ72ZY5D.mjs} +5 -14
  20. package/dist/lib/browser/delete-message-RQ72ZY5D.mjs.map +7 -0
  21. package/dist/lib/browser/index.mjs +79 -592
  22. package/dist/lib/browser/index.mjs.map +4 -4
  23. package/dist/lib/browser/meta.json +1 -1
  24. package/dist/lib/browser/{on-create-space-2UGS234J.mjs → on-create-space-SPE3QVFZ.mjs} +3 -4
  25. package/dist/lib/browser/on-create-space-SPE3QVFZ.mjs.map +7 -0
  26. package/dist/lib/browser/operations/index.mjs +3 -4
  27. package/dist/lib/browser/operations/index.mjs.map +3 -3
  28. package/dist/lib/browser/{restore-KKQHFLYO.mjs → restore-VX7FLZOZ.mjs} +3 -4
  29. package/dist/lib/browser/restore-VX7FLZOZ.mjs.map +7 -0
  30. package/dist/lib/browser/{restore-message-VOP2UE7N.mjs → restore-message-D65NSWUA.mjs} +5 -14
  31. package/dist/lib/browser/restore-message-D65NSWUA.mjs.map +7 -0
  32. package/dist/lib/browser/{select-VBJ3MBLN.mjs → select-AT4L7EBU.mjs} +6 -6
  33. package/dist/lib/browser/{select-VBJ3MBLN.mjs.map → select-AT4L7EBU.mjs.map} +1 -1
  34. package/dist/lib/browser/{toggle-resolved-GIYF3KWJ.mjs → toggle-resolved-JD3D4WBZ.mjs} +5 -14
  35. package/dist/lib/browser/toggle-resolved-JD3D4WBZ.mjs.map +7 -0
  36. package/dist/lib/browser/translations.mjs +90 -0
  37. package/dist/lib/browser/translations.mjs.map +7 -0
  38. package/dist/lib/browser/types/index.mjs +1 -3
  39. package/dist/lib/node-esm/{add-message-E6XC6E3Z.mjs → add-message-4EAQ2ZPI.mjs} +9 -17
  40. package/dist/lib/node-esm/add-message-4EAQ2ZPI.mjs.map +7 -0
  41. package/dist/lib/node-esm/append-channel-message-F7KGBSWP.mjs +41 -0
  42. package/dist/lib/node-esm/append-channel-message-F7KGBSWP.mjs.map +7 -0
  43. package/dist/lib/node-esm/blueprints/index.mjs +1 -1
  44. package/dist/lib/node-esm/blueprints/index.mjs.map +3 -3
  45. package/dist/lib/node-esm/chunk-BVEZBGIY.mjs +30 -0
  46. package/dist/lib/node-esm/chunk-BVEZBGIY.mjs.map +7 -0
  47. package/dist/lib/node-esm/{chunk-I6LAZYVU.mjs → chunk-XKUMDYGR.mjs} +15 -16
  48. package/dist/lib/node-esm/chunk-XKUMDYGR.mjs.map +7 -0
  49. package/dist/lib/node-esm/{create-A6XQZR7M.mjs → create-DEZFPN2Y.mjs} +9 -9
  50. package/dist/lib/node-esm/create-DEZFPN2Y.mjs.map +7 -0
  51. package/dist/lib/node-esm/{create-channel-KA5T23ZS.mjs → create-channel-6VHTC2OR.mjs} +5 -7
  52. package/dist/lib/node-esm/create-channel-6VHTC2OR.mjs.map +7 -0
  53. package/dist/lib/node-esm/{create-proposals-HDBVDNUX.mjs → create-proposals-P5O2ICOL.mjs} +3 -4
  54. package/dist/lib/{browser/create-proposals-VTOSWUOX.mjs.map → node-esm/create-proposals-P5O2ICOL.mjs.map} +3 -3
  55. package/dist/lib/node-esm/{delete-3RAWD5GG.mjs → delete-QG45QLPY.mjs} +6 -6
  56. package/dist/lib/node-esm/delete-QG45QLPY.mjs.map +7 -0
  57. package/dist/lib/node-esm/{delete-message-W4XFE4KW.mjs → delete-message-PGNLB6TL.mjs} +5 -14
  58. package/dist/lib/node-esm/delete-message-PGNLB6TL.mjs.map +7 -0
  59. package/dist/lib/node-esm/index.mjs +79 -592
  60. package/dist/lib/node-esm/index.mjs.map +4 -4
  61. package/dist/lib/node-esm/meta.json +1 -1
  62. package/dist/lib/node-esm/{on-create-space-ZURB6UKR.mjs → on-create-space-TFBSHWQ4.mjs} +3 -4
  63. package/dist/lib/{browser/on-create-space-2UGS234J.mjs.map → node-esm/on-create-space-TFBSHWQ4.mjs.map} +1 -1
  64. package/dist/lib/node-esm/operations/index.mjs +3 -4
  65. package/dist/lib/node-esm/operations/index.mjs.map +3 -3
  66. package/dist/lib/node-esm/{restore-PDYEKDE3.mjs → restore-E27OAIFJ.mjs} +3 -4
  67. package/dist/lib/node-esm/restore-E27OAIFJ.mjs.map +7 -0
  68. package/dist/lib/node-esm/{restore-message-O5XC34MW.mjs → restore-message-J3CH6NGI.mjs} +5 -14
  69. package/dist/lib/node-esm/restore-message-J3CH6NGI.mjs.map +7 -0
  70. package/dist/lib/node-esm/{select-6KETLVWY.mjs → select-UU6Q2XAB.mjs} +6 -6
  71. package/dist/lib/node-esm/{select-6KETLVWY.mjs.map → select-UU6Q2XAB.mjs.map} +1 -1
  72. package/dist/lib/node-esm/{toggle-resolved-QR3SOXR7.mjs → toggle-resolved-VS6NKXL3.mjs} +5 -14
  73. package/dist/lib/node-esm/toggle-resolved-VS6NKXL3.mjs.map +7 -0
  74. package/dist/lib/node-esm/translations.mjs +91 -0
  75. package/dist/lib/node-esm/translations.mjs.map +7 -0
  76. package/dist/lib/node-esm/types/index.mjs +1 -3
  77. package/dist/types/src/ThreadPlugin.d.ts +1 -0
  78. package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
  79. package/dist/types/src/ThreadPlugin.node.d.ts +4 -0
  80. package/dist/types/src/ThreadPlugin.node.d.ts.map +1 -0
  81. package/dist/types/src/ThreadPlugin.test.d.ts +2 -0
  82. package/dist/types/src/ThreadPlugin.test.d.ts.map +1 -0
  83. package/dist/types/src/blueprints/thread-blueprint.d.ts +2 -2
  84. package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -1
  85. package/dist/types/src/calls/call-manager.d.ts.map +1 -1
  86. package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +1 -1
  87. package/dist/types/src/calls/media-manager.d.ts.map +1 -1
  88. package/dist/types/src/calls/speaking-monitor.d.ts +0 -3
  89. package/dist/types/src/calls/speaking-monitor.d.ts.map +1 -1
  90. package/dist/types/src/calls/types.d.ts.map +1 -1
  91. package/dist/types/src/calls/util/audio.d.ts.map +1 -1
  92. package/dist/types/src/calls/util/calls-service.d.ts +2 -2
  93. package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
  94. package/dist/types/src/calls/util/history-cache.d.ts.map +1 -1
  95. package/dist/types/src/calls/util/media.d.ts.map +1 -1
  96. package/dist/types/src/calls/util/stub-media-streams.d.ts.map +1 -1
  97. package/dist/types/src/calls/util/task-scheduling.d.ts.map +1 -1
  98. package/dist/types/src/calls-service.stories.d.ts.map +1 -1
  99. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  100. package/dist/types/src/capabilities/blueprint-definition.d.ts +2 -2
  101. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
  102. package/dist/types/src/capabilities/call-manager.d.ts.map +1 -1
  103. package/dist/types/src/capabilities/index.d.ts +4 -4
  104. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  105. package/dist/types/src/capabilities/markdown.d.ts +1 -1
  106. package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
  107. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  108. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  109. package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
  110. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  111. package/dist/types/src/capabilities/settings.d.ts +2 -1
  112. package/dist/types/src/capabilities/settings.d.ts.map +1 -1
  113. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  114. package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -1
  115. package/dist/types/src/components/Call/Call.d.ts +32 -4
  116. package/dist/types/src/components/Call/Call.d.ts.map +1 -1
  117. package/dist/types/src/components/Call/Toolbar.d.ts +5 -5
  118. package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
  119. package/dist/types/src/components/Chat/Chat.d.ts +44 -0
  120. package/dist/types/src/components/Chat/Chat.d.ts.map +1 -0
  121. package/dist/types/src/components/Chat/index.d.ts +2 -0
  122. package/dist/types/src/components/Chat/index.d.ts.map +1 -0
  123. package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts.map +1 -1
  124. package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts +70 -70
  125. package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts.map +1 -1
  126. package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts.map +1 -1
  127. package/dist/types/src/components/Lobby/Lobby.d.ts +24 -3
  128. package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -1
  129. package/dist/types/src/components/Media/VideoObject.d.ts +1 -1
  130. package/dist/types/src/components/Media/VideoObject.stories.d.ts +1 -1
  131. package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +1 -1
  132. package/dist/types/src/components/MessagePanel/MessagePanel.d.ts.map +1 -1
  133. package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +1 -1
  134. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts.map +1 -1
  135. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +70 -70
  136. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +1 -1
  137. package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +1 -1
  138. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts.map +1 -1
  139. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts +70 -70
  140. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts.map +1 -1
  141. package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts.map +1 -1
  142. package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts +70 -70
  143. package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts.map +1 -1
  144. package/dist/types/src/components/index.d.ts +1 -0
  145. package/dist/types/src/components/index.d.ts.map +1 -1
  146. package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts.map +1 -1
  147. package/dist/types/src/containers/ChannelChat/ChannelChat.d.ts +16 -0
  148. package/dist/types/src/containers/ChannelChat/ChannelChat.d.ts.map +1 -0
  149. package/dist/types/src/containers/ChannelChat/index.d.ts +4 -0
  150. package/dist/types/src/containers/ChannelChat/index.d.ts.map +1 -0
  151. package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts +1 -1
  152. package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +1 -1
  153. package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts +70 -70
  154. package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +1 -1
  155. package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts.map +1 -1
  156. package/dist/types/src/containers/ThreadContainer/ThreadContainer.d.ts +20 -0
  157. package/dist/types/src/containers/ThreadContainer/ThreadContainer.d.ts.map +1 -0
  158. package/dist/types/src/containers/{ChatContainer/ChatContainer.stories.d.ts → ThreadContainer/ThreadContainer.stories.d.ts} +71 -71
  159. package/dist/types/src/containers/ThreadContainer/ThreadContainer.stories.d.ts.map +1 -0
  160. package/dist/types/src/containers/ThreadContainer/index.d.ts +4 -0
  161. package/dist/types/src/containers/ThreadContainer/index.d.ts.map +1 -0
  162. package/dist/types/src/containers/index.d.ts +2 -1
  163. package/dist/types/src/containers/index.d.ts.map +1 -1
  164. package/dist/types/src/extensions/threads.d.ts +2 -2
  165. package/dist/types/src/extensions/threads.d.ts.map +1 -1
  166. package/dist/types/src/hooks/analytics.d.ts.map +1 -1
  167. package/dist/types/src/hooks/useStatus.d.ts.map +1 -1
  168. package/dist/types/src/hooks/useVideoStreamTrack.d.ts.map +1 -1
  169. package/dist/types/src/index.d.ts +3 -2
  170. package/dist/types/src/index.d.ts.map +1 -1
  171. package/dist/types/src/operations/add-message.d.ts +1 -1
  172. package/dist/types/src/operations/add-message.d.ts.map +1 -1
  173. package/dist/types/src/operations/append-channel-message.d.ts +5 -0
  174. package/dist/types/src/operations/append-channel-message.d.ts.map +1 -0
  175. package/dist/types/src/operations/create-channel.d.ts +1 -1
  176. package/dist/types/src/operations/create-channel.d.ts.map +1 -1
  177. package/dist/types/src/operations/create-proposals.d.ts +1 -1
  178. package/dist/types/src/operations/create-proposals.d.ts.map +1 -1
  179. package/dist/types/src/operations/create.d.ts +1 -1
  180. package/dist/types/src/operations/create.d.ts.map +1 -1
  181. package/dist/types/src/operations/definitions.d.ts +855 -1649
  182. package/dist/types/src/operations/definitions.d.ts.map +1 -1
  183. package/dist/types/src/operations/delete-message.d.ts +1 -1
  184. package/dist/types/src/operations/delete-message.d.ts.map +1 -1
  185. package/dist/types/src/operations/delete.d.ts +1 -1
  186. package/dist/types/src/operations/delete.d.ts.map +1 -1
  187. package/dist/types/src/operations/index.d.ts +1 -1
  188. package/dist/types/src/operations/index.d.ts.map +1 -1
  189. package/dist/types/src/operations/on-create-space.d.ts +1 -1
  190. package/dist/types/src/operations/on-create-space.d.ts.map +1 -1
  191. package/dist/types/src/operations/restore-message.d.ts +1 -1
  192. package/dist/types/src/operations/restore-message.d.ts.map +1 -1
  193. package/dist/types/src/operations/restore.d.ts +1 -1
  194. package/dist/types/src/operations/restore.d.ts.map +1 -1
  195. package/dist/types/src/operations/select.d.ts +1 -1
  196. package/dist/types/src/operations/select.d.ts.map +1 -1
  197. package/dist/types/src/operations/toggle-resolved.d.ts +1 -1
  198. package/dist/types/src/operations/toggle-resolved.d.ts.map +1 -1
  199. package/dist/types/src/testing/data.d.ts.map +1 -1
  200. package/dist/types/src/testing/index.d.ts +1 -1
  201. package/dist/types/src/testing/index.d.ts.map +1 -1
  202. package/dist/types/src/translations.d.ts +70 -70
  203. package/dist/types/src/translations.d.ts.map +1 -1
  204. package/dist/types/src/types/Settings.d.ts +2 -1
  205. package/dist/types/src/types/Settings.d.ts.map +1 -1
  206. package/dist/types/src/types/capabilities.d.ts +4 -2
  207. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  208. package/dist/types/src/types/index.d.ts +0 -1
  209. package/dist/types/src/types/index.d.ts.map +1 -1
  210. package/dist/types/src/util.d.ts +2 -2
  211. package/dist/types/src/util.d.ts.map +1 -1
  212. package/dist/types/tsconfig.tsbuildinfo +1 -1
  213. package/package.json +65 -67
  214. package/src/ThreadPlugin.node.ts +84 -0
  215. package/src/ThreadPlugin.test.ts +37 -0
  216. package/src/ThreadPlugin.tsx +8 -8
  217. package/src/blueprints/thread-blueprint.ts +2 -3
  218. package/src/calls/util/calls-service.ts +3 -1
  219. package/src/calls/util/stub-media-streams.ts +3 -1
  220. package/src/calls-service.stories.tsx +4 -4
  221. package/src/capabilities/app-graph-builder.ts +3 -2
  222. package/src/capabilities/blueprint-definition.ts +2 -0
  223. package/src/capabilities/index.ts +2 -1
  224. package/src/capabilities/markdown.ts +10 -6
  225. package/src/capabilities/operation-handler.ts +1 -1
  226. package/src/capabilities/react-surface.tsx +24 -17
  227. package/src/components/Call/Call.tsx +5 -5
  228. package/src/components/Call/Toolbar.tsx +1 -1
  229. package/src/components/Chat/Chat.tsx +218 -0
  230. package/src/components/Chat/index.ts +5 -0
  231. package/src/components/CommentsPanel/CommentsPanel.stories.tsx +5 -3
  232. package/src/components/Lobby/Lobby.tsx +5 -4
  233. package/src/components/MessagePanel/MessagePanel.tsx +3 -3
  234. package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +2 -1
  235. package/src/components/ResponsiveGrid/ResponsivePanel.stories.tsx +2 -1
  236. package/src/components/ThreadSettings/ThreadSettings.stories.tsx +2 -1
  237. package/src/components/index.ts +1 -0
  238. package/src/containers/ChannelChat/ChannelChat.tsx +65 -0
  239. package/src/containers/ChannelChat/index.ts +8 -0
  240. package/src/containers/ChannelContainer/ChannelContainer.stories.tsx +54 -10
  241. package/src/containers/ChannelContainer/ChannelContainer.tsx +4 -4
  242. package/src/containers/{ChatContainer/ChatContainer.stories.tsx → ThreadContainer/ThreadContainer.stories.tsx} +10 -11
  243. package/src/containers/ThreadContainer/ThreadContainer.tsx +75 -0
  244. package/src/containers/ThreadContainer/index.ts +8 -0
  245. package/src/containers/index.ts +2 -1
  246. package/src/extensions/threads.ts +7 -7
  247. package/src/index.ts +10 -3
  248. package/src/operations/add-message.ts +3 -3
  249. package/src/operations/append-channel-message.ts +36 -0
  250. package/src/operations/create-channel.ts +2 -2
  251. package/src/operations/create-proposals.ts +1 -1
  252. package/src/operations/create.ts +4 -4
  253. package/src/operations/definitions.ts +9 -9
  254. package/src/operations/delete-message.ts +2 -2
  255. package/src/operations/delete.ts +1 -1
  256. package/src/operations/index.ts +2 -2
  257. package/src/operations/on-create-space.ts +1 -1
  258. package/src/operations/restore-message.ts +2 -2
  259. package/src/operations/restore.ts +1 -1
  260. package/src/operations/select.ts +1 -1
  261. package/src/operations/toggle-resolved.ts +2 -2
  262. package/src/testing/index.ts +1 -1
  263. package/src/translations.ts +1 -1
  264. package/src/types/Settings.ts +1 -1
  265. package/src/types/capabilities.ts +2 -1
  266. package/src/types/index.ts +0 -1
  267. package/dist/lib/browser/add-message-A33GVGQX.mjs.map +0 -7
  268. package/dist/lib/browser/chunk-2QNKWX4H.mjs.map +0 -7
  269. package/dist/lib/browser/chunk-7T7J6ZR6.mjs +0 -61
  270. package/dist/lib/browser/chunk-7T7J6ZR6.mjs.map +0 -7
  271. package/dist/lib/browser/create-N2ZVTONJ.mjs.map +0 -7
  272. package/dist/lib/browser/create-channel-Y4H3535D.mjs.map +0 -7
  273. package/dist/lib/browser/create-channel-thread-6N7TKEAW.mjs +0 -28
  274. package/dist/lib/browser/create-channel-thread-6N7TKEAW.mjs.map +0 -7
  275. package/dist/lib/browser/delete-QZZE655Y.mjs.map +0 -7
  276. package/dist/lib/browser/delete-message-WQAZLYBO.mjs.map +0 -7
  277. package/dist/lib/browser/restore-KKQHFLYO.mjs.map +0 -7
  278. package/dist/lib/browser/restore-message-VOP2UE7N.mjs.map +0 -7
  279. package/dist/lib/browser/toggle-resolved-GIYF3KWJ.mjs.map +0 -7
  280. package/dist/lib/node-esm/add-message-E6XC6E3Z.mjs.map +0 -7
  281. package/dist/lib/node-esm/chunk-I6LAZYVU.mjs.map +0 -7
  282. package/dist/lib/node-esm/chunk-UGSMYQLZ.mjs +0 -62
  283. package/dist/lib/node-esm/chunk-UGSMYQLZ.mjs.map +0 -7
  284. package/dist/lib/node-esm/create-A6XQZR7M.mjs.map +0 -7
  285. package/dist/lib/node-esm/create-channel-KA5T23ZS.mjs.map +0 -7
  286. package/dist/lib/node-esm/create-channel-thread-44PXAPGM.mjs +0 -29
  287. package/dist/lib/node-esm/create-channel-thread-44PXAPGM.mjs.map +0 -7
  288. package/dist/lib/node-esm/create-proposals-HDBVDNUX.mjs.map +0 -7
  289. package/dist/lib/node-esm/delete-3RAWD5GG.mjs.map +0 -7
  290. package/dist/lib/node-esm/delete-message-W4XFE4KW.mjs.map +0 -7
  291. package/dist/lib/node-esm/on-create-space-ZURB6UKR.mjs.map +0 -7
  292. package/dist/lib/node-esm/restore-PDYEKDE3.mjs.map +0 -7
  293. package/dist/lib/node-esm/restore-message-O5XC34MW.mjs.map +0 -7
  294. package/dist/lib/node-esm/toggle-resolved-QR3SOXR7.mjs.map +0 -7
  295. package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +0 -16
  296. package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +0 -1
  297. package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +0 -1
  298. package/dist/types/src/containers/ChatContainer/index.d.ts +0 -4
  299. package/dist/types/src/containers/ChatContainer/index.d.ts.map +0 -1
  300. package/dist/types/src/operations/create-channel-thread.d.ts +0 -5
  301. package/dist/types/src/operations/create-channel-thread.d.ts.map +0 -1
  302. package/dist/types/src/testing/stories.d.ts +0 -3
  303. package/dist/types/src/testing/stories.d.ts.map +0 -1
  304. package/dist/types/src/types/Channel.d.ts +0 -711
  305. package/dist/types/src/types/Channel.d.ts.map +0 -1
  306. package/src/containers/ChatContainer/ChatContainer.tsx +0 -131
  307. package/src/containers/ChatContainer/index.ts +0 -8
  308. package/src/operations/create-channel-thread.ts +0 -26
  309. package/src/testing/stories.ts +0 -51
  310. package/src/types/Channel.ts +0 -37
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-thread",
3
- "version": "0.8.4-main.9be5663bfe",
3
+ "version": "0.8.4-main.abd8ff62ef",
4
4
  "description": "DXOS Threads Surface plugin",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -20,7 +20,13 @@
20
20
  "#hooks": "./src/hooks/index.ts",
21
21
  "#meta": "./src/meta.ts",
22
22
  "#operations": "./src/operations/index.ts",
23
+ "#plugin": {
24
+ "browser": "./src/ThreadPlugin.tsx",
25
+ "node": "./src/ThreadPlugin.node.ts",
26
+ "default": "./src/ThreadPlugin.tsx"
27
+ },
23
28
  "#testing": "./src/testing/index.ts",
29
+ "#translations": "./src/translations.ts",
24
30
  "#types": "./src/types/index.ts"
25
31
  },
26
32
  "exports": {
@@ -42,6 +48,12 @@
42
48
  "node": "./dist/lib/node-esm/operations/index.mjs",
43
49
  "types": "./dist/types/src/operations/index.d.ts"
44
50
  },
51
+ "./translations": {
52
+ "source": "./src/translations.ts",
53
+ "types": "./dist/types/src/translations.d.ts",
54
+ "browser": "./dist/lib/browser/translations.mjs",
55
+ "node": "./dist/lib/node-esm/translations.mjs"
56
+ },
45
57
  "./types": {
46
58
  "source": "./src/types/index.ts",
47
59
  "browser": "./dist/lib/browser/types/index.mjs",
@@ -50,19 +62,6 @@
50
62
  }
51
63
  },
52
64
  "types": "dist/types/src/index.d.ts",
53
- "typesVersions": {
54
- "*": {
55
- "blueprints": [
56
- "dist/types/src/blueprints/index.d.ts"
57
- ],
58
- "operations": [
59
- "dist/types/src/operations/index.d.ts"
60
- ],
61
- "types": [
62
- "dist/types/src/types/index.d.ts"
63
- ]
64
- }
65
- },
66
65
  "files": [
67
66
  "dist",
68
67
  "src"
@@ -82,50 +81,49 @@
82
81
  "md5-hex": "5.0.0",
83
82
  "react-resize-detector": "^11.0.1",
84
83
  "wavefile": "^11.0.0",
85
- "@dxos/app-framework": "0.8.4-main.9be5663bfe",
86
- "@dxos/app-toolkit": "0.8.4-main.9be5663bfe",
87
- "@dxos/assistant": "0.8.4-main.9be5663bfe",
88
- "@dxos/blueprints": "0.8.4-main.9be5663bfe",
89
- "@dxos/context": "0.8.4-main.9be5663bfe",
90
- "@dxos/async": "0.8.4-main.9be5663bfe",
91
- "@dxos/codec-protobuf": "0.8.4-main.9be5663bfe",
92
- "@dxos/debug": "0.8.4-main.9be5663bfe",
93
- "@dxos/display-name": "0.8.4-main.9be5663bfe",
94
- "@dxos/devtools": "0.8.4-main.9be5663bfe",
95
- "@dxos/echo": "0.8.4-main.9be5663bfe",
96
- "@dxos/echo-db": "0.8.4-main.9be5663bfe",
97
- "@dxos/effect": "0.8.4-main.9be5663bfe",
98
- "@dxos/echo-react": "0.8.4-main.9be5663bfe",
99
- "@dxos/functions": "0.8.4-main.9be5663bfe",
100
- "@dxos/invariant": "0.8.4-main.9be5663bfe",
101
- "@dxos/log": "0.8.4-main.9be5663bfe",
102
- "@dxos/operation": "0.8.4-main.9be5663bfe",
103
- "@dxos/plugin-client": "0.8.4-main.9be5663bfe",
104
- "@dxos/plugin-attention": "0.8.4-main.9be5663bfe",
105
- "@dxos/keys": "0.8.4-main.9be5663bfe",
106
- "@dxos/plugin-deck": "0.8.4-main.9be5663bfe",
107
- "@dxos/plugin-graph": "0.8.4-main.9be5663bfe",
108
- "@dxos/plugin-markdown": "0.8.4-main.9be5663bfe",
109
- "@dxos/plugin-settings": "0.8.4-main.9be5663bfe",
110
- "@dxos/plugin-space": "0.8.4-main.9be5663bfe",
111
- "@dxos/plugin-observability": "0.8.4-main.9be5663bfe",
112
- "@dxos/protocols": "0.8.4-main.9be5663bfe",
113
- "@dxos/react-client": "0.8.4-main.9be5663bfe",
114
- "@dxos/react-ui-attention": "0.8.4-main.9be5663bfe",
115
- "@dxos/react-ui-dnd": "0.8.4-main.9be5663bfe",
116
- "@dxos/react-ui-form": "0.8.4-main.9be5663bfe",
117
- "@dxos/react-ui-editor": "0.8.4-main.9be5663bfe",
118
- "@dxos/react-ui-mosaic": "0.8.4-main.9be5663bfe",
119
- "@dxos/react-ui-stack": "0.8.4-main.9be5663bfe",
120
- "@dxos/react-ui-sfx": "0.8.4-main.9be5663bfe",
121
- "@dxos/react-ui-tabs": "0.8.4-main.9be5663bfe",
122
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.9be5663bfe",
123
- "@dxos/schema": "0.8.4-main.9be5663bfe",
124
- "@dxos/react-ui-thread": "0.8.4-main.9be5663bfe",
125
- "@dxos/types": "0.8.4-main.9be5663bfe",
126
- "@dxos/util": "0.8.4-main.9be5663bfe",
127
- "@dxos/ui-editor": "0.8.4-main.9be5663bfe",
128
- "@dxos/react-ui-menu": "0.8.4-main.9be5663bfe"
84
+ "@dxos/app-toolkit": "0.8.4-main.abd8ff62ef",
85
+ "@dxos/assistant": "0.8.4-main.abd8ff62ef",
86
+ "@dxos/app-framework": "0.8.4-main.abd8ff62ef",
87
+ "@dxos/async": "0.8.4-main.abd8ff62ef",
88
+ "@dxos/compute": "0.8.4-main.abd8ff62ef",
89
+ "@dxos/context": "0.8.4-main.abd8ff62ef",
90
+ "@dxos/devtools": "0.8.4-main.abd8ff62ef",
91
+ "@dxos/debug": "0.8.4-main.abd8ff62ef",
92
+ "@dxos/display-name": "0.8.4-main.abd8ff62ef",
93
+ "@dxos/echo": "0.8.4-main.abd8ff62ef",
94
+ "@dxos/echo-db": "0.8.4-main.abd8ff62ef",
95
+ "@dxos/effect": "0.8.4-main.abd8ff62ef",
96
+ "@dxos/echo-react": "0.8.4-main.abd8ff62ef",
97
+ "@dxos/invariant": "0.8.4-main.abd8ff62ef",
98
+ "@dxos/codec-protobuf": "0.8.4-main.abd8ff62ef",
99
+ "@dxos/keys": "0.8.4-main.abd8ff62ef",
100
+ "@dxos/operation": "0.8.4-main.abd8ff62ef",
101
+ "@dxos/log": "0.8.4-main.abd8ff62ef",
102
+ "@dxos/plugin-attention": "0.8.4-main.abd8ff62ef",
103
+ "@dxos/plugin-deck": "0.8.4-main.abd8ff62ef",
104
+ "@dxos/plugin-client": "0.8.4-main.abd8ff62ef",
105
+ "@dxos/plugin-graph": "0.8.4-main.abd8ff62ef",
106
+ "@dxos/plugin-markdown": "0.8.4-main.abd8ff62ef",
107
+ "@dxos/plugin-observability": "0.8.4-main.abd8ff62ef",
108
+ "@dxos/plugin-settings": "0.8.4-main.abd8ff62ef",
109
+ "@dxos/plugin-space": "0.8.4-main.abd8ff62ef",
110
+ "@dxos/protocols": "0.8.4-main.abd8ff62ef",
111
+ "@dxos/react-ui-attention": "0.8.4-main.abd8ff62ef",
112
+ "@dxos/react-client": "0.8.4-main.abd8ff62ef",
113
+ "@dxos/react-ui-editor": "0.8.4-main.abd8ff62ef",
114
+ "@dxos/react-ui-menu": "0.8.4-main.abd8ff62ef",
115
+ "@dxos/react-ui-mosaic": "0.8.4-main.abd8ff62ef",
116
+ "@dxos/react-ui-form": "0.8.4-main.abd8ff62ef",
117
+ "@dxos/react-ui-stack": "0.8.4-main.abd8ff62ef",
118
+ "@dxos/react-ui-sfx": "0.8.4-main.abd8ff62ef",
119
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.abd8ff62ef",
120
+ "@dxos/react-ui-tabs": "0.8.4-main.abd8ff62ef",
121
+ "@dxos/react-ui-dnd": "0.8.4-main.abd8ff62ef",
122
+ "@dxos/schema": "0.8.4-main.abd8ff62ef",
123
+ "@dxos/ui-editor": "0.8.4-main.abd8ff62ef",
124
+ "@dxos/react-ui-thread": "0.8.4-main.abd8ff62ef",
125
+ "@dxos/types": "0.8.4-main.abd8ff62ef",
126
+ "@dxos/util": "0.8.4-main.abd8ff62ef"
129
127
  },
130
128
  "devDependencies": {
131
129
  "@effect-atom/atom-react": "^0.5.0",
@@ -135,13 +133,13 @@
135
133
  "effect": "3.20.0",
136
134
  "react": "~19.2.3",
137
135
  "react-dom": "~19.2.3",
138
- "vite": "^7.1.11",
139
- "@dxos/plugin-testing": "0.8.4-main.9be5663bfe",
140
- "@dxos/plugin-theme": "0.8.4-main.9be5663bfe",
141
- "@dxos/random": "0.8.4-main.9be5663bfe",
142
- "@dxos/react-ui": "0.8.4-main.9be5663bfe",
143
- "@dxos/ui-theme": "0.8.4-main.9be5663bfe",
144
- "@dxos/storybook-utils": "0.8.4-main.9be5663bfe"
136
+ "vite": "^8.0.10",
137
+ "@dxos/plugin-testing": "0.8.4-main.abd8ff62ef",
138
+ "@dxos/plugin-theme": "0.8.4-main.abd8ff62ef",
139
+ "@dxos/random": "0.8.4-main.abd8ff62ef",
140
+ "@dxos/react-ui": "0.8.4-main.abd8ff62ef",
141
+ "@dxos/storybook-utils": "0.8.4-main.abd8ff62ef",
142
+ "@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
145
143
  },
146
144
  "peerDependencies": {
147
145
  "@effect-atom/atom-react": "^0.5.0",
@@ -149,8 +147,8 @@
149
147
  "effect": "3.20.0",
150
148
  "react": "~19.2.3",
151
149
  "react-dom": "~19.2.3",
152
- "@dxos/react-ui": "0.8.4-main.9be5663bfe",
153
- "@dxos/ui-theme": "0.8.4-main.9be5663bfe"
150
+ "@dxos/react-ui": "0.8.4-main.abd8ff62ef",
151
+ "@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
154
152
  },
155
153
  "publishConfig": {
156
154
  "access": "public"
@@ -0,0 +1,84 @@
1
+ //
2
+ // Copyright 2023 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+ import * as Option from 'effect/Option';
7
+
8
+ import { Capability, Plugin } from '@dxos/app-framework';
9
+ import { AppPlugin } from '@dxos/app-toolkit';
10
+ import { Operation } from '@dxos/compute';
11
+ import { Annotation, Ref, Type } from '@dxos/echo';
12
+ import { SpaceOperation } from '@dxos/plugin-space/operations';
13
+ import { SpaceCapabilities, SpaceEvents, type CreateObject } from '@dxos/plugin-space/types';
14
+ import { AnchoredTo, Channel, Message, Thread } from '@dxos/types';
15
+
16
+ import { AppGraphBuilder, BlueprintDefinition, OperationHandler, UndoMappings } from '#capabilities';
17
+ import { THREAD_ITEM, meta } from '#meta';
18
+ import { ThreadOperation } from '#operations';
19
+
20
+ export const ThreadPlugin = Plugin.define(meta).pipe(
21
+ AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
22
+ AppPlugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
23
+ AppPlugin.addMetadataModule({
24
+ metadata: [
25
+ {
26
+ id: Type.getTypename(Channel.Channel),
27
+ metadata: {
28
+ icon: Annotation.IconAnnotation.get(Channel.Channel).pipe(Option.getOrThrow).icon,
29
+ iconHue: Annotation.IconAnnotation.get(Channel.Channel).pipe(Option.getOrThrow).hue ?? 'white',
30
+ createObject: ((props, options) =>
31
+ Effect.gen(function* () {
32
+ const object = Channel.make(props);
33
+ return yield* Operation.invoke(SpaceOperation.AddObject, {
34
+ object,
35
+ target: options.target,
36
+ hidden: true,
37
+ targetNodeId: options.targetNodeId,
38
+ });
39
+ })) satisfies CreateObject,
40
+ },
41
+ },
42
+ {
43
+ id: Type.getTypename(Thread.Thread),
44
+ metadata: {
45
+ // TODO(wittjosiah): Move out of metadata.
46
+ loadReferences: async (thread: Thread.Thread) => await Ref.Array.loadAll(thread.messages ?? []),
47
+ },
48
+ },
49
+ {
50
+ id: THREAD_ITEM,
51
+ metadata: {
52
+ parse: (item: Thread.Thread, type: string) => {
53
+ switch (type) {
54
+ case 'node':
55
+ return { id: item.id, label: item.name, data: item };
56
+ case 'object':
57
+ return item;
58
+ case 'view-object':
59
+ return { id: `${item.id}-view`, object: item };
60
+ }
61
+ },
62
+ },
63
+ },
64
+ ],
65
+ }),
66
+ AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
67
+ AppPlugin.addUndoMappingsModule({ activate: UndoMappings }),
68
+ AppPlugin.addSchemaModule({
69
+ schema: [AnchoredTo.AnchoredTo, Channel.Channel, Message.Message, Thread.Thread],
70
+ }),
71
+ Plugin.addModule({
72
+ id: 'on-space-created',
73
+ activatesOn: SpaceEvents.SpaceCreated,
74
+ activate: () =>
75
+ Effect.succeed(
76
+ Capability.contributes(SpaceCapabilities.OnCreateSpace, (params) =>
77
+ Operation.invoke(ThreadOperation.OnCreateSpace, params),
78
+ ),
79
+ ),
80
+ }),
81
+ Plugin.make,
82
+ );
83
+
84
+ export default ThreadPlugin;
@@ -0,0 +1,37 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+
5
+ import { describe, test } from 'vitest';
6
+
7
+ import { AppActivationEvents } from '@dxos/app-toolkit';
8
+ import { ClientPlugin } from '@dxos/plugin-client';
9
+ import { createComposerTestApp } from '@dxos/plugin-testing/harness';
10
+
11
+ import { ThreadPlugin } from '#plugin';
12
+
13
+ import { meta } from './meta';
14
+
15
+ const moduleId = (name: string) => `${meta.id}.module.${name}`;
16
+
17
+ describe('ThreadPlugin', () => {
18
+ test('modules activate on the expected events', async ({ expect }) => {
19
+ await using harness = await createComposerTestApp({
20
+ plugins: [ClientPlugin({}), ThreadPlugin()],
21
+ });
22
+
23
+ // After autoStart: AppGraphBuilder, metadata, schema, OperationHandler, UndoMappings all auto-cascade.
24
+ expect(harness.manager.getActive()).toEqual(
25
+ expect.arrayContaining([moduleId('AppGraphBuilder'), moduleId('metadata'), moduleId('schema')]),
26
+ );
27
+
28
+ // SetupArtifactDefinition is fired by AssistantPlugin, which can't be included here due to a workspace cycle.
29
+ await harness.fire(AppActivationEvents.SetupArtifactDefinition);
30
+ expect(harness.manager.getActive()).toContain(moduleId('BlueprintDefinition'));
31
+
32
+ // Operation handlers auto-cascade from OperationPlugin.
33
+ expect(harness.manager.getActive()).toEqual(
34
+ expect.arrayContaining([moduleId('OperationHandler'), moduleId('UndoMappings')]),
35
+ );
36
+ });
37
+ });
@@ -7,14 +7,14 @@ import * as Option from 'effect/Option';
7
7
 
8
8
  import { Capability, Plugin } from '@dxos/app-framework';
9
9
  import { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';
10
+ import { Operation } from '@dxos/compute';
10
11
  import { Annotation, Ref, Type } from '@dxos/echo';
11
- import { Operation } from '@dxos/operation';
12
12
  import { ClientEvents } from '@dxos/plugin-client/types';
13
- import { MarkdownEvents } from '@dxos/plugin-markdown';
13
+ import { MarkdownEvents } from '@dxos/plugin-markdown/types';
14
14
  import { SpaceOperation } from '@dxos/plugin-space/operations';
15
15
  import { SpaceCapabilities, SpaceEvents, type CreateObject } from '@dxos/plugin-space/types';
16
- import { translations as threadTranslations } from '@dxos/react-ui-thread';
17
- import { AnchoredTo, Message, Thread } from '@dxos/types';
16
+ import { translations as threadTranslations } from '@dxos/react-ui-thread/translations';
17
+ import { AnchoredTo, Channel, Message, Thread } from '@dxos/types';
18
18
 
19
19
  import {
20
20
  AppGraphBuilder,
@@ -29,9 +29,7 @@ import {
29
29
  } from '#capabilities';
30
30
  import { THREAD_ITEM, meta } from '#meta';
31
31
  import { ThreadOperation } from '#operations';
32
- import { Channel } from '#types';
33
-
34
- import { translations } from './translations';
32
+ import { translations } from '#translations';
35
33
 
36
34
  // TODO(Zan): Every instance of `cursor` should be replaced with `anchor`.
37
35
  // NOTE(burdon): Review/discuss CursorConverter semantics.
@@ -86,7 +84,7 @@ export const ThreadPlugin = Plugin.define(meta).pipe(
86
84
  ],
87
85
  }),
88
86
  AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
89
- AppPlugin.addOperationHandlerModule({ id: 'undo-mappings', activate: UndoMappings }),
87
+ AppPlugin.addUndoMappingsModule({ activate: UndoMappings }),
90
88
  AppPlugin.addReactRootModule({ activate: ReactRoot }),
91
89
  AppPlugin.addSchemaModule({
92
90
  schema: [AnchoredTo.AnchoredTo, Channel.Channel, Message.Message, Thread.Thread],
@@ -129,3 +127,5 @@ export const ThreadPlugin = Plugin.define(meta).pipe(
129
127
  }),
130
128
  Plugin.make,
131
129
  );
130
+
131
+ export default ThreadPlugin;
@@ -2,8 +2,7 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { type AppCapabilities } from '@dxos/app-toolkit';
6
- import { Blueprint, Template } from '@dxos/blueprints';
5
+ import { Blueprint, Template } from '@dxos/compute';
7
6
  import { trim } from '@dxos/util';
8
7
 
9
8
  import { ThreadOperation } from '#operations';
@@ -29,7 +28,7 @@ const make = () =>
29
28
  }),
30
29
  });
31
30
 
32
- const blueprint: AppCapabilities.BlueprintDefinition = {
31
+ const blueprint: Blueprint.Definition = {
33
32
  key: BLUEPRINT_KEY,
34
33
  make,
35
34
  };
@@ -547,7 +547,9 @@ const waitForTransceiverToSendData = async (ctx: Context, transceiver: RTCRtpTra
547
547
  ctx.onDispose(() => waitForData.throw(new Error('Transceiver was closed')));
548
548
 
549
549
  const checkStats = async () => {
550
- if (ctx.disposed) return;
550
+ if (ctx.disposed) {
551
+ return;
552
+ }
551
553
 
552
554
  try {
553
555
  const stats = await transceiver.sender.getStats();
@@ -74,7 +74,9 @@ export const createInaudibleAudioStreamTrack = async ({ ctx }: { ctx: Context })
74
74
 
75
75
  let oscillatorStarted = false;
76
76
  const ensureOscillatorStarted = () => {
77
- if (oscillatorStarted) return;
77
+ if (oscillatorStarted) {
78
+ return;
79
+ }
78
80
  oscillator.start();
79
81
  oscillatorStarted = true;
80
82
  };
@@ -12,7 +12,7 @@ import { log } from '@dxos/log';
12
12
  import { Config, useConfig } from '@dxos/react-client';
13
13
  import { withClientProvider } from '@dxos/react-client/testing';
14
14
  import { Button } from '@dxos/react-ui';
15
- import { Json } from '@dxos/react-ui-syntax-highlighter';
15
+ import { JsonHighlighter } from '@dxos/react-ui-syntax-highlighter';
16
16
  import { withTheme } from '@dxos/react-ui/testing';
17
17
 
18
18
  const testVideo = new URL('../testing/video.mp4', import.meta.url).href;
@@ -167,7 +167,7 @@ const DefaultStory = ({ source }: DefaultStoryProps) => {
167
167
  Re-pull video
168
168
  </Button>
169
169
  </div>
170
- <Json.Data data={metrics} />
170
+ <JsonHighlighter data={metrics} />
171
171
  </div>
172
172
  );
173
173
  };
@@ -209,7 +209,7 @@ export const InaudibleAudioStreamTrack = {
209
209
 
210
210
  return (
211
211
  <div className='flex flex-col gap-4 items-center'>
212
- <Json.Data data={metrics} />
212
+ <JsonHighlighter data={metrics} />
213
213
  <Button onClick={rePullTrack}>Re-pull audio</Button>
214
214
  </div>
215
215
  );
@@ -222,7 +222,7 @@ export const BlackVideoStreamTrack = {
222
222
  const { rePullTrack, metrics } = pushAndPullTrack(videoStreamTrack);
223
223
  return (
224
224
  <div className='flex flex-col gap-4 items-center'>
225
- <Json.Data data={metrics} />
225
+ <JsonHighlighter data={metrics} />
226
226
  <Button onClick={rePullTrack}>Re-pull audio</Button>
227
227
  </div>
228
228
  );
@@ -8,16 +8,17 @@ import * as Option from 'effect/Option';
8
8
 
9
9
  import { Capability } from '@dxos/app-framework';
10
10
  import { AppCapabilities, AppNode } from '@dxos/app-toolkit';
11
+ import { Operation } from '@dxos/compute';
11
12
  import { Obj } from '@dxos/echo';
12
- import { Operation } from '@dxos/operation';
13
13
  import { AttentionCapabilities } from '@dxos/plugin-attention/types';
14
14
  import { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';
15
15
  import { linkedSegment } from '@dxos/react-ui-attention';
16
16
  import { type SelectionManager, type SelectionMode, defaultSelection } from '@dxos/react-ui-attention';
17
+ import { Channel } from '@dxos/types';
17
18
 
18
19
  import { meta } from '#meta';
19
20
  import { ThreadOperation } from '#operations';
20
- import { Channel, ThreadCapabilities, type ThreadState } from '#types';
21
+ import { ThreadCapabilities, type ThreadState } from '#types';
21
22
 
22
23
  import { getAnchor } from '../util';
23
24
 
@@ -6,6 +6,8 @@ import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { Capability } from '@dxos/app-framework';
8
8
  import { AppCapabilities } from '@dxos/app-toolkit';
9
+ // eslint-disable-next-line unused-imports/no-unused-imports
10
+ import type { Blueprint } from '@dxos/compute';
9
11
 
10
12
  import { ThreadBlueprint } from '#blueprints';
11
13
 
@@ -3,7 +3,8 @@
3
3
  //
4
4
 
5
5
  import { Capability } from '@dxos/app-framework';
6
- import { OperationHandlerSet } from '@dxos/operation';
6
+ // eslint-disable-next-line unused-imports/no-unused-imports
7
+ import type { Blueprint, OperationHandlerSet } from '@dxos/compute';
7
8
 
8
9
  export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
9
10
  export const BlueprintDefinition = Capability.lazy('BlueprintDefinition', () => import('./blueprint-definition'));
@@ -6,8 +6,8 @@ import { EditorView } from '@codemirror/view';
6
6
  import * as Effect from 'effect/Effect';
7
7
 
8
8
  import { Capabilities, Capability } from '@dxos/app-framework';
9
- import { DeckOperation } from '@dxos/plugin-deck/operations';
10
- import { MarkdownCapabilities } from '@dxos/plugin-markdown';
9
+ import { LayoutOperation } from '@dxos/app-toolkit';
10
+ import { MarkdownCapabilities } from '@dxos/plugin-markdown/types';
11
11
  import { linkedSegment } from '@dxos/react-ui-attention';
12
12
  import { type EditorState, commentClickedEffect, commentsState, documentId, overlap } from '@dxos/ui-editor';
13
13
 
@@ -28,7 +28,9 @@ export default Capability.makeModule(
28
28
  return threads({ registry, stateAtom }, doc, invokePromise);
29
29
  },
30
30
  ({ document: doc }) => {
31
- if (!doc) return [];
31
+ if (!doc) {
32
+ return [];
33
+ }
32
34
  const registry = capabilities.get(Capabilities.AtomRegistry);
33
35
  const stateAtom = capabilities.get(ThreadCapabilities.State);
34
36
 
@@ -45,15 +47,17 @@ export default Capability.makeModule(
45
47
  });
46
48
  },
47
49
  ({ document: doc }) => {
48
- if (!doc) return [];
50
+ if (!doc) {
51
+ return [];
52
+ }
49
53
  const { invokePromise } = capabilities.get(Capabilities.OperationInvoker);
50
54
 
51
55
  return EditorView.updateListener.of((update) => {
52
56
  update.transactions.forEach((transaction) => {
53
57
  transaction.effects.forEach(async (effect) => {
54
58
  if (effect.is(commentClickedEffect)) {
55
- void invokePromise(DeckOperation.ChangeCompanion, {
56
- companion: linkedSegment('comments'),
59
+ void invokePromise(LayoutOperation.UpdateCompanion, {
60
+ subject: linkedSegment('comments'),
57
61
  });
58
62
  }
59
63
  });
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { Capabilities, Capability } from '@dxos/app-framework';
8
- import type { OperationHandlerSet } from '@dxos/operation';
8
+ import type { OperationHandlerSet } from '@dxos/compute';
9
9
 
10
10
  import { ThreadOperationHandlerSet } from '#operations';
11
11
 
@@ -10,62 +10,69 @@ import { Capabilities, Capability } from '@dxos/app-framework';
10
10
  import { Surface, useCapability, useSettingsState } from '@dxos/app-framework/ui';
11
11
  import { AppSurface } from '@dxos/app-toolkit/ui';
12
12
  import { getSpace } from '@dxos/react-client/echo';
13
- import { Thread } from '@dxos/types';
13
+ import { Channel, Thread } from '@dxos/types';
14
14
 
15
15
  import { ThreadSettings } from '#components';
16
- import { CallDebugPanel, CallSidebar, ChannelContainer, ChatContainer, ThreadCompanion } from '#containers';
16
+ import {
17
+ CallDebugPanel,
18
+ CallSidebar,
19
+ ChannelChat,
20
+ ChannelContainer,
21
+ ThreadCompanion,
22
+ ThreadContainer,
23
+ } from '#containers';
17
24
  import { meta } from '#meta';
18
- import { Channel, ThreadCapabilities, type Settings } from '#types';
25
+ import { ThreadCapabilities, type Settings } from '#types';
19
26
 
20
27
  export default Capability.makeModule(() =>
21
28
  Effect.succeed(
22
29
  Capability.contributes(Capabilities.ReactSurface, [
23
30
  Surface.create({
24
31
  id: 'channel',
25
- role: 'article',
26
- filter: AppSurface.objectArticle(Channel.Channel),
32
+ filter: AppSurface.object(AppSurface.Article, Channel.Channel),
27
33
  component: ({ data: { subject, attendableId }, role }) => (
28
34
  <ChannelContainer role={role} subject={subject} attendableId={attendableId} />
29
35
  ),
30
36
  }),
31
37
  Surface.create({
32
38
  id: 'chat-companion',
33
- role: 'article',
34
- filter: AppSurface.and(AppSurface.literalArticle('chat'), AppSurface.companionArticle(Channel.Channel)),
39
+ filter: AppSurface.allOf(
40
+ AppSurface.literal(AppSurface.Article, 'chat'),
41
+ AppSurface.companion(AppSurface.Article, Channel.Channel),
42
+ ),
35
43
  component: ({ data: { companionTo: channel } }) => {
36
44
  const space = getSpace(channel);
37
- const thread = channel.defaultThread.target;
38
- if (!space || !thread) {
45
+ if (!space) {
39
46
  return null;
40
47
  }
41
48
 
42
- return <ChatContainer thread={thread} space={space} />;
49
+ return <ChannelChat channel={channel} space={space} />;
43
50
  },
44
51
  }),
45
52
  Surface.create({
46
53
  id: 'thread',
47
- role: 'article',
48
- filter: AppSurface.objectArticle(Thread.Thread),
54
+ filter: AppSurface.object(AppSurface.Article, Thread.Thread),
49
55
  component: ({ data: { subject } }) => {
50
56
  const space = getSpace(subject);
51
57
  if (!space || !subject) {
52
58
  return null;
53
59
  }
54
60
 
55
- return <ChatContainer thread={subject} space={space} />;
61
+ return <ThreadContainer thread={subject} space={space} />;
56
62
  },
57
63
  }),
58
64
  Surface.create({
59
65
  id: 'comments',
60
- role: 'article',
61
- filter: AppSurface.and(AppSurface.literalArticle('comments'), AppSurface.companionArticle()),
66
+ filter: AppSurface.allOf(
67
+ AppSurface.literal(AppSurface.Article, 'comments'),
68
+ AppSurface.companion(AppSurface.Article),
69
+ ),
62
70
  // TODO(wittjosiah): This isn't scrolling properly in a plank.
63
71
  component: ({ data }) => <ThreadCompanion attendableId={data.attendableId} subject={data.companionTo} />,
64
72
  }),
65
73
  Surface.create({
66
74
  id: 'plugin-settings',
67
- role: 'article',
68
- filter: AppSurface.settingsArticle(meta.id),
75
+ filter: AppSurface.settings(AppSurface.Article, meta.id),
69
76
  component: ({ data: { subject } }) => {
70
77
  const { settings, updateSettings } = useSettingsState<Settings.Settings>(subject.atom);
71
78
  return <ThreadSettings settings={settings} onSettingsChange={updateSettings} />;
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import { useAtomValue } from '@effect-atom/atom-react';
6
- import React, { type FC, type PropsWithChildren } from 'react';
6
+ import React, { type PropsWithChildren } from 'react';
7
7
 
8
8
  import { useCapability } from '@dxos/app-framework/ui';
9
9
  import { type ThemedClassName } from '@dxos/react-ui';
@@ -21,7 +21,7 @@ import { Toolbar, type ToolbarProps } from './Toolbar';
21
21
 
22
22
  type CallRootProps = PropsWithChildren<ThemedClassName>;
23
23
 
24
- const CallRoot: FC<CallRootProps> = ({ children }) => {
24
+ const CallRoot = ({ children }: CallRootProps) => {
25
25
  return <div className='relative dx-container flex flex-col'>{children}</div>;
26
26
  };
27
27
 
@@ -33,7 +33,7 @@ CallRoot.displayName = 'CallRoot';
33
33
 
34
34
  type CallAudioProps = {};
35
35
 
36
- const CallAudio: FC<CallAudioProps> = () => {
36
+ const CallAudio = (_props: CallAudioProps) => {
37
37
  const call = useCapability(ThreadCapabilities.CallManager);
38
38
  const audioTracksToPlay = useAtomValue(call.audioTracksToPlayAtom);
39
39
 
@@ -50,7 +50,7 @@ type CallGridProps = {
50
50
  fullscreen?: boolean;
51
51
  };
52
52
 
53
- const CallGrid: FC<CallGridProps> = ({ fullscreen }) => {
53
+ const CallGrid = ({ fullscreen }: CallGridProps) => {
54
54
  const debug = useDebugMode();
55
55
  const call = useCapability(ThreadCapabilities.CallManager);
56
56
  const self = useAtomValue(call.selfAtom);
@@ -71,7 +71,7 @@ CallGrid.displayName = 'CallGrid';
71
71
 
72
72
  type CallToolbarProps = Pick<ToolbarProps, 'channel' | 'onLeave'>;
73
73
 
74
- const CallToolbar: FC<CallToolbarProps> = (props) => {
74
+ const CallToolbar = (props: CallToolbarProps) => {
75
75
  return (
76
76
  <div className='absolute bottom-0 left-0 right-0 flex justify-center'>
77
77
  <Toolbar isInRoom {...props} />