@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.
- package/dist/lib/browser/{add-message-A33GVGQX.mjs → add-message-LRVGIHDH.mjs} +9 -17
- package/dist/lib/browser/add-message-LRVGIHDH.mjs.map +7 -0
- package/dist/lib/browser/append-channel-message-CO3M6FSA.mjs +40 -0
- package/dist/lib/browser/append-channel-message-CO3M6FSA.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +1 -1
- package/dist/lib/browser/blueprints/index.mjs.map +3 -3
- package/dist/lib/browser/chunk-E4GG3NX2.mjs +29 -0
- package/dist/lib/browser/chunk-E4GG3NX2.mjs.map +7 -0
- package/dist/lib/browser/{chunk-2QNKWX4H.mjs → chunk-TPNZ43NB.mjs} +15 -16
- package/dist/lib/browser/chunk-TPNZ43NB.mjs.map +7 -0
- package/dist/lib/browser/{create-N2ZVTONJ.mjs → create-BTGLHLBA.mjs} +9 -9
- package/dist/lib/browser/create-BTGLHLBA.mjs.map +7 -0
- package/dist/lib/browser/{create-channel-Y4H3535D.mjs → create-channel-ZXKSLHGN.mjs} +5 -7
- package/dist/lib/browser/create-channel-ZXKSLHGN.mjs.map +7 -0
- package/dist/lib/browser/{create-proposals-VTOSWUOX.mjs → create-proposals-AV5CREPV.mjs} +3 -4
- package/dist/lib/browser/create-proposals-AV5CREPV.mjs.map +7 -0
- package/dist/lib/browser/{delete-QZZE655Y.mjs → delete-GLYEP7NE.mjs} +6 -6
- package/dist/lib/browser/delete-GLYEP7NE.mjs.map +7 -0
- package/dist/lib/browser/{delete-message-WQAZLYBO.mjs → delete-message-RQ72ZY5D.mjs} +5 -14
- package/dist/lib/browser/delete-message-RQ72ZY5D.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +79 -592
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{on-create-space-2UGS234J.mjs → on-create-space-SPE3QVFZ.mjs} +3 -4
- package/dist/lib/browser/on-create-space-SPE3QVFZ.mjs.map +7 -0
- package/dist/lib/browser/operations/index.mjs +3 -4
- package/dist/lib/browser/operations/index.mjs.map +3 -3
- package/dist/lib/browser/{restore-KKQHFLYO.mjs → restore-VX7FLZOZ.mjs} +3 -4
- package/dist/lib/browser/restore-VX7FLZOZ.mjs.map +7 -0
- package/dist/lib/browser/{restore-message-VOP2UE7N.mjs → restore-message-D65NSWUA.mjs} +5 -14
- package/dist/lib/browser/restore-message-D65NSWUA.mjs.map +7 -0
- package/dist/lib/browser/{select-VBJ3MBLN.mjs → select-AT4L7EBU.mjs} +6 -6
- package/dist/lib/browser/{select-VBJ3MBLN.mjs.map → select-AT4L7EBU.mjs.map} +1 -1
- package/dist/lib/browser/{toggle-resolved-GIYF3KWJ.mjs → toggle-resolved-JD3D4WBZ.mjs} +5 -14
- package/dist/lib/browser/toggle-resolved-JD3D4WBZ.mjs.map +7 -0
- package/dist/lib/browser/translations.mjs +90 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -3
- package/dist/lib/node-esm/{add-message-E6XC6E3Z.mjs → add-message-4EAQ2ZPI.mjs} +9 -17
- package/dist/lib/node-esm/add-message-4EAQ2ZPI.mjs.map +7 -0
- package/dist/lib/node-esm/append-channel-message-F7KGBSWP.mjs +41 -0
- package/dist/lib/node-esm/append-channel-message-F7KGBSWP.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +1 -1
- package/dist/lib/node-esm/blueprints/index.mjs.map +3 -3
- package/dist/lib/node-esm/chunk-BVEZBGIY.mjs +30 -0
- package/dist/lib/node-esm/chunk-BVEZBGIY.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-I6LAZYVU.mjs → chunk-XKUMDYGR.mjs} +15 -16
- package/dist/lib/node-esm/chunk-XKUMDYGR.mjs.map +7 -0
- package/dist/lib/node-esm/{create-A6XQZR7M.mjs → create-DEZFPN2Y.mjs} +9 -9
- package/dist/lib/node-esm/create-DEZFPN2Y.mjs.map +7 -0
- package/dist/lib/node-esm/{create-channel-KA5T23ZS.mjs → create-channel-6VHTC2OR.mjs} +5 -7
- package/dist/lib/node-esm/create-channel-6VHTC2OR.mjs.map +7 -0
- package/dist/lib/node-esm/{create-proposals-HDBVDNUX.mjs → create-proposals-P5O2ICOL.mjs} +3 -4
- package/dist/lib/{browser/create-proposals-VTOSWUOX.mjs.map → node-esm/create-proposals-P5O2ICOL.mjs.map} +3 -3
- package/dist/lib/node-esm/{delete-3RAWD5GG.mjs → delete-QG45QLPY.mjs} +6 -6
- package/dist/lib/node-esm/delete-QG45QLPY.mjs.map +7 -0
- package/dist/lib/node-esm/{delete-message-W4XFE4KW.mjs → delete-message-PGNLB6TL.mjs} +5 -14
- package/dist/lib/node-esm/delete-message-PGNLB6TL.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +79 -592
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{on-create-space-ZURB6UKR.mjs → on-create-space-TFBSHWQ4.mjs} +3 -4
- package/dist/lib/{browser/on-create-space-2UGS234J.mjs.map → node-esm/on-create-space-TFBSHWQ4.mjs.map} +1 -1
- package/dist/lib/node-esm/operations/index.mjs +3 -4
- package/dist/lib/node-esm/operations/index.mjs.map +3 -3
- package/dist/lib/node-esm/{restore-PDYEKDE3.mjs → restore-E27OAIFJ.mjs} +3 -4
- package/dist/lib/node-esm/restore-E27OAIFJ.mjs.map +7 -0
- package/dist/lib/node-esm/{restore-message-O5XC34MW.mjs → restore-message-J3CH6NGI.mjs} +5 -14
- package/dist/lib/node-esm/restore-message-J3CH6NGI.mjs.map +7 -0
- package/dist/lib/node-esm/{select-6KETLVWY.mjs → select-UU6Q2XAB.mjs} +6 -6
- package/dist/lib/node-esm/{select-6KETLVWY.mjs.map → select-UU6Q2XAB.mjs.map} +1 -1
- package/dist/lib/node-esm/{toggle-resolved-QR3SOXR7.mjs → toggle-resolved-VS6NKXL3.mjs} +5 -14
- package/dist/lib/node-esm/toggle-resolved-VS6NKXL3.mjs.map +7 -0
- package/dist/lib/node-esm/translations.mjs +91 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +1 -3
- package/dist/types/src/ThreadPlugin.d.ts +1 -0
- package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
- package/dist/types/src/ThreadPlugin.node.d.ts +4 -0
- package/dist/types/src/ThreadPlugin.node.d.ts.map +1 -0
- package/dist/types/src/ThreadPlugin.test.d.ts +2 -0
- package/dist/types/src/ThreadPlugin.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/thread-blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -1
- package/dist/types/src/calls/call-manager.d.ts.map +1 -1
- package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +1 -1
- package/dist/types/src/calls/media-manager.d.ts.map +1 -1
- package/dist/types/src/calls/speaking-monitor.d.ts +0 -3
- package/dist/types/src/calls/speaking-monitor.d.ts.map +1 -1
- package/dist/types/src/calls/types.d.ts.map +1 -1
- package/dist/types/src/calls/util/audio.d.ts.map +1 -1
- package/dist/types/src/calls/util/calls-service.d.ts +2 -2
- package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
- package/dist/types/src/calls/util/history-cache.d.ts.map +1 -1
- package/dist/types/src/calls/util/media.d.ts.map +1 -1
- package/dist/types/src/calls/util/stub-media-streams.d.ts.map +1 -1
- package/dist/types/src/calls/util/task-scheduling.d.ts.map +1 -1
- package/dist/types/src/calls-service.stories.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +2 -2
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/call-manager.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +4 -4
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown.d.ts +1 -1
- package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +2 -1
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -1
- package/dist/types/src/components/Call/Call.d.ts +32 -4
- package/dist/types/src/components/Call/Call.d.ts.map +1 -1
- package/dist/types/src/components/Call/Toolbar.d.ts +5 -5
- package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/Chat/Chat.d.ts +44 -0
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -0
- package/dist/types/src/components/Chat/index.d.ts +2 -0
- package/dist/types/src/components/Chat/index.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts.map +1 -1
- package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts +70 -70
- package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts.map +1 -1
- package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts.map +1 -1
- package/dist/types/src/components/Lobby/Lobby.d.ts +24 -3
- package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -1
- package/dist/types/src/components/Media/VideoObject.d.ts +1 -1
- package/dist/types/src/components/Media/VideoObject.stories.d.ts +1 -1
- package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +1 -1
- package/dist/types/src/components/MessagePanel/MessagePanel.d.ts.map +1 -1
- package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +70 -70
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts +70 -70
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts.map +1 -1
- package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts.map +1 -1
- package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts +70 -70
- package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts.map +1 -1
- package/dist/types/src/containers/ChannelChat/ChannelChat.d.ts +16 -0
- package/dist/types/src/containers/ChannelChat/ChannelChat.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelChat/index.d.ts +4 -0
- package/dist/types/src/containers/ChannelChat/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts +1 -1
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +1 -1
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts +70 -70
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts.map +1 -1
- package/dist/types/src/containers/ThreadContainer/ThreadContainer.d.ts +20 -0
- package/dist/types/src/containers/ThreadContainer/ThreadContainer.d.ts.map +1 -0
- package/dist/types/src/containers/{ChatContainer/ChatContainer.stories.d.ts → ThreadContainer/ThreadContainer.stories.d.ts} +71 -71
- package/dist/types/src/containers/ThreadContainer/ThreadContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadContainer/index.d.ts +4 -0
- package/dist/types/src/containers/ThreadContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +2 -1
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/extensions/threads.d.ts +2 -2
- package/dist/types/src/extensions/threads.d.ts.map +1 -1
- package/dist/types/src/hooks/analytics.d.ts.map +1 -1
- package/dist/types/src/hooks/useStatus.d.ts.map +1 -1
- package/dist/types/src/hooks/useVideoStreamTrack.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/add-message.d.ts +1 -1
- package/dist/types/src/operations/add-message.d.ts.map +1 -1
- package/dist/types/src/operations/append-channel-message.d.ts +5 -0
- package/dist/types/src/operations/append-channel-message.d.ts.map +1 -0
- package/dist/types/src/operations/create-channel.d.ts +1 -1
- package/dist/types/src/operations/create-channel.d.ts.map +1 -1
- package/dist/types/src/operations/create-proposals.d.ts +1 -1
- package/dist/types/src/operations/create-proposals.d.ts.map +1 -1
- package/dist/types/src/operations/create.d.ts +1 -1
- package/dist/types/src/operations/create.d.ts.map +1 -1
- package/dist/types/src/operations/definitions.d.ts +855 -1649
- package/dist/types/src/operations/definitions.d.ts.map +1 -1
- package/dist/types/src/operations/delete-message.d.ts +1 -1
- package/dist/types/src/operations/delete-message.d.ts.map +1 -1
- package/dist/types/src/operations/delete.d.ts +1 -1
- package/dist/types/src/operations/delete.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/on-create-space.d.ts +1 -1
- package/dist/types/src/operations/on-create-space.d.ts.map +1 -1
- package/dist/types/src/operations/restore-message.d.ts +1 -1
- package/dist/types/src/operations/restore-message.d.ts.map +1 -1
- package/dist/types/src/operations/restore.d.ts +1 -1
- package/dist/types/src/operations/restore.d.ts.map +1 -1
- package/dist/types/src/operations/select.d.ts +1 -1
- package/dist/types/src/operations/select.d.ts.map +1 -1
- package/dist/types/src/operations/toggle-resolved.d.ts +1 -1
- package/dist/types/src/operations/toggle-resolved.d.ts.map +1 -1
- package/dist/types/src/testing/data.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +1 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +70 -70
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +2 -1
- package/dist/types/src/types/Settings.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +4 -2
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +2 -2
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +65 -67
- package/src/ThreadPlugin.node.ts +84 -0
- package/src/ThreadPlugin.test.ts +37 -0
- package/src/ThreadPlugin.tsx +8 -8
- package/src/blueprints/thread-blueprint.ts +2 -3
- package/src/calls/util/calls-service.ts +3 -1
- package/src/calls/util/stub-media-streams.ts +3 -1
- package/src/calls-service.stories.tsx +4 -4
- package/src/capabilities/app-graph-builder.ts +3 -2
- package/src/capabilities/blueprint-definition.ts +2 -0
- package/src/capabilities/index.ts +2 -1
- package/src/capabilities/markdown.ts +10 -6
- package/src/capabilities/operation-handler.ts +1 -1
- package/src/capabilities/react-surface.tsx +24 -17
- package/src/components/Call/Call.tsx +5 -5
- package/src/components/Call/Toolbar.tsx +1 -1
- package/src/components/Chat/Chat.tsx +218 -0
- package/src/components/Chat/index.ts +5 -0
- package/src/components/CommentsPanel/CommentsPanel.stories.tsx +5 -3
- package/src/components/Lobby/Lobby.tsx +5 -4
- package/src/components/MessagePanel/MessagePanel.tsx +3 -3
- package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +2 -1
- package/src/components/ResponsiveGrid/ResponsivePanel.stories.tsx +2 -1
- package/src/components/ThreadSettings/ThreadSettings.stories.tsx +2 -1
- package/src/components/index.ts +1 -0
- package/src/containers/ChannelChat/ChannelChat.tsx +65 -0
- package/src/containers/ChannelChat/index.ts +8 -0
- package/src/containers/ChannelContainer/ChannelContainer.stories.tsx +54 -10
- package/src/containers/ChannelContainer/ChannelContainer.tsx +4 -4
- package/src/containers/{ChatContainer/ChatContainer.stories.tsx → ThreadContainer/ThreadContainer.stories.tsx} +10 -11
- package/src/containers/ThreadContainer/ThreadContainer.tsx +75 -0
- package/src/containers/ThreadContainer/index.ts +8 -0
- package/src/containers/index.ts +2 -1
- package/src/extensions/threads.ts +7 -7
- package/src/index.ts +10 -3
- package/src/operations/add-message.ts +3 -3
- package/src/operations/append-channel-message.ts +36 -0
- package/src/operations/create-channel.ts +2 -2
- package/src/operations/create-proposals.ts +1 -1
- package/src/operations/create.ts +4 -4
- package/src/operations/definitions.ts +9 -9
- package/src/operations/delete-message.ts +2 -2
- package/src/operations/delete.ts +1 -1
- package/src/operations/index.ts +2 -2
- package/src/operations/on-create-space.ts +1 -1
- package/src/operations/restore-message.ts +2 -2
- package/src/operations/restore.ts +1 -1
- package/src/operations/select.ts +1 -1
- package/src/operations/toggle-resolved.ts +2 -2
- package/src/testing/index.ts +1 -1
- package/src/translations.ts +1 -1
- package/src/types/Settings.ts +1 -1
- package/src/types/capabilities.ts +2 -1
- package/src/types/index.ts +0 -1
- package/dist/lib/browser/add-message-A33GVGQX.mjs.map +0 -7
- package/dist/lib/browser/chunk-2QNKWX4H.mjs.map +0 -7
- package/dist/lib/browser/chunk-7T7J6ZR6.mjs +0 -61
- package/dist/lib/browser/chunk-7T7J6ZR6.mjs.map +0 -7
- package/dist/lib/browser/create-N2ZVTONJ.mjs.map +0 -7
- package/dist/lib/browser/create-channel-Y4H3535D.mjs.map +0 -7
- package/dist/lib/browser/create-channel-thread-6N7TKEAW.mjs +0 -28
- package/dist/lib/browser/create-channel-thread-6N7TKEAW.mjs.map +0 -7
- package/dist/lib/browser/delete-QZZE655Y.mjs.map +0 -7
- package/dist/lib/browser/delete-message-WQAZLYBO.mjs.map +0 -7
- package/dist/lib/browser/restore-KKQHFLYO.mjs.map +0 -7
- package/dist/lib/browser/restore-message-VOP2UE7N.mjs.map +0 -7
- package/dist/lib/browser/toggle-resolved-GIYF3KWJ.mjs.map +0 -7
- package/dist/lib/node-esm/add-message-E6XC6E3Z.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-I6LAZYVU.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UGSMYQLZ.mjs +0 -62
- package/dist/lib/node-esm/chunk-UGSMYQLZ.mjs.map +0 -7
- package/dist/lib/node-esm/create-A6XQZR7M.mjs.map +0 -7
- package/dist/lib/node-esm/create-channel-KA5T23ZS.mjs.map +0 -7
- package/dist/lib/node-esm/create-channel-thread-44PXAPGM.mjs +0 -29
- package/dist/lib/node-esm/create-channel-thread-44PXAPGM.mjs.map +0 -7
- package/dist/lib/node-esm/create-proposals-HDBVDNUX.mjs.map +0 -7
- package/dist/lib/node-esm/delete-3RAWD5GG.mjs.map +0 -7
- package/dist/lib/node-esm/delete-message-W4XFE4KW.mjs.map +0 -7
- package/dist/lib/node-esm/on-create-space-ZURB6UKR.mjs.map +0 -7
- package/dist/lib/node-esm/restore-PDYEKDE3.mjs.map +0 -7
- package/dist/lib/node-esm/restore-message-O5XC34MW.mjs.map +0 -7
- package/dist/lib/node-esm/toggle-resolved-QR3SOXR7.mjs.map +0 -7
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +0 -16
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +0 -1
- package/dist/types/src/containers/ChatContainer/index.d.ts +0 -4
- package/dist/types/src/containers/ChatContainer/index.d.ts.map +0 -1
- package/dist/types/src/operations/create-channel-thread.d.ts +0 -5
- package/dist/types/src/operations/create-channel-thread.d.ts.map +0 -1
- package/dist/types/src/testing/stories.d.ts +0 -3
- package/dist/types/src/testing/stories.d.ts.map +0 -1
- package/dist/types/src/types/Channel.d.ts +0 -711
- package/dist/types/src/types/Channel.d.ts.map +0 -1
- package/src/containers/ChatContainer/ChatContainer.tsx +0 -131
- package/src/containers/ChatContainer/index.ts +0 -8
- package/src/operations/create-channel-thread.ts +0 -26
- package/src/testing/stories.ts +0 -51
- 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.
|
|
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-
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/
|
|
92
|
-
"@dxos/debug": "0.8.4-main.
|
|
93
|
-
"@dxos/display-name": "0.8.4-main.
|
|
94
|
-
"@dxos/
|
|
95
|
-
"@dxos/echo": "0.8.4-main.
|
|
96
|
-
"@dxos/
|
|
97
|
-
"@dxos/
|
|
98
|
-
"@dxos/
|
|
99
|
-
"@dxos/
|
|
100
|
-
"@dxos/
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/
|
|
103
|
-
"@dxos/plugin-
|
|
104
|
-
"@dxos/plugin-
|
|
105
|
-
"@dxos/
|
|
106
|
-
"@dxos/plugin-
|
|
107
|
-
"@dxos/plugin-
|
|
108
|
-
"@dxos/plugin-
|
|
109
|
-
"@dxos/plugin-settings": "0.8.4-main.
|
|
110
|
-
"@dxos/plugin-space": "0.8.4-main.
|
|
111
|
-
"@dxos/
|
|
112
|
-
"@dxos/
|
|
113
|
-
"@dxos/react-client": "0.8.4-main.
|
|
114
|
-
"@dxos/react-ui-
|
|
115
|
-
"@dxos/react-ui-
|
|
116
|
-
"@dxos/react-ui-
|
|
117
|
-
"@dxos/react-ui-
|
|
118
|
-
"@dxos/react-ui-
|
|
119
|
-
"@dxos/react-ui-
|
|
120
|
-
"@dxos/react-ui-
|
|
121
|
-
"@dxos/react-ui-tabs": "0.8.4-main.
|
|
122
|
-
"@dxos/react-ui-
|
|
123
|
-
"@dxos/schema": "0.8.4-main.
|
|
124
|
-
"@dxos/
|
|
125
|
-
"@dxos/
|
|
126
|
-
"@dxos/
|
|
127
|
-
"@dxos/
|
|
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": "^
|
|
139
|
-
"@dxos/plugin-testing": "0.8.4-main.
|
|
140
|
-
"@dxos/plugin-theme": "0.8.4-main.
|
|
141
|
-
"@dxos/random": "0.8.4-main.
|
|
142
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
143
|
-
"@dxos/
|
|
144
|
-
"@dxos/
|
|
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.
|
|
153
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
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
|
+
});
|
package/src/ThreadPlugin.tsx
CHANGED
|
@@ -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 {
|
|
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.
|
|
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 {
|
|
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:
|
|
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)
|
|
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)
|
|
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 {
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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 {
|
|
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
|
-
|
|
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 {
|
|
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)
|
|
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)
|
|
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(
|
|
56
|
-
|
|
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/
|
|
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 {
|
|
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 {
|
|
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
|
-
|
|
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
|
-
|
|
34
|
-
|
|
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
|
-
|
|
38
|
-
if (!space || !thread) {
|
|
45
|
+
if (!space) {
|
|
39
46
|
return null;
|
|
40
47
|
}
|
|
41
48
|
|
|
42
|
-
return <
|
|
49
|
+
return <ChannelChat channel={channel} space={space} />;
|
|
43
50
|
},
|
|
44
51
|
}),
|
|
45
52
|
Surface.create({
|
|
46
53
|
id: 'thread',
|
|
47
|
-
|
|
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 <
|
|
61
|
+
return <ThreadContainer thread={subject} space={space} />;
|
|
56
62
|
},
|
|
57
63
|
}),
|
|
58
64
|
Surface.create({
|
|
59
65
|
id: 'comments',
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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} />
|