@dxos/plugin-thread 0.8.4-main.c4373fc → 0.8.4-main.c85a9c8dae
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/CallDebugPanel-FGCTY7Q4.mjs +182 -0
- package/dist/lib/browser/CallDebugPanel-FGCTY7Q4.mjs.map +7 -0
- package/dist/lib/browser/CallSidebar-PJCMNDIF.mjs +33 -0
- package/dist/lib/browser/CallSidebar-PJCMNDIF.mjs.map +7 -0
- package/dist/lib/browser/ChannelContainer-EPYG4QAC.mjs +15 -0
- package/dist/lib/browser/ChatContainer-2243UD2M.mjs +14 -0
- package/dist/lib/browser/ThreadCompanion-2CMLJH76.mjs +204 -0
- package/dist/lib/browser/ThreadCompanion-2CMLJH76.mjs.map +7 -0
- package/dist/lib/browser/ThreadSettings-S55YVOGA.mjs +20 -0
- package/dist/lib/browser/ThreadSettings-S55YVOGA.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-5LCAM746.mjs +191 -0
- package/dist/lib/browser/app-graph-builder-5LCAM746.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-42M2EJ2Y.mjs +17 -0
- package/dist/lib/browser/blueprint-definition-42M2EJ2Y.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +8 -0
- package/dist/lib/browser/call-manager-2PRP4QVZ.mjs +27 -0
- package/dist/lib/browser/call-manager-2PRP4QVZ.mjs.map +7 -0
- package/dist/lib/browser/{chunk-ZCEU5K23.mjs → chunk-ERK254BS.mjs} +207 -287
- package/dist/lib/browser/chunk-ERK254BS.mjs.map +7 -0
- package/dist/lib/browser/chunk-G6FJBSXX.mjs +1123 -0
- package/dist/lib/browser/chunk-G6FJBSXX.mjs.map +7 -0
- package/dist/lib/browser/{chunk-HDEQRBOC.mjs → chunk-HDLDMR54.mjs} +79 -76
- package/dist/lib/browser/chunk-HDLDMR54.mjs.map +7 -0
- package/dist/lib/browser/{chunk-XYUJXHYV.mjs → chunk-ISCHODBV.mjs} +1 -1
- package/dist/lib/browser/{chunk-XYUJXHYV.mjs.map → chunk-ISCHODBV.mjs.map} +2 -2
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-LUK4UNFA.mjs +20 -0
- package/dist/lib/browser/chunk-LUK4UNFA.mjs.map +7 -0
- package/dist/lib/browser/chunk-PDHCY236.mjs +223 -0
- package/dist/lib/browser/chunk-PDHCY236.mjs.map +7 -0
- package/dist/lib/browser/chunk-PL5LIVP4.mjs +105 -0
- package/dist/lib/browser/chunk-PL5LIVP4.mjs.map +7 -0
- package/dist/lib/browser/chunk-U32R23JO.mjs +277 -0
- package/dist/lib/browser/chunk-U32R23JO.mjs.map +7 -0
- package/dist/lib/browser/chunk-UVUCB7QO.mjs +125 -0
- package/dist/lib/browser/chunk-UVUCB7QO.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +138 -141
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/markdown-GRRPCZHJ.mjs +210 -0
- package/dist/lib/browser/markdown-GRRPCZHJ.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-EP7FAYEB.mjs +442 -0
- package/dist/lib/browser/operation-resolver-EP7FAYEB.mjs.map +7 -0
- package/dist/lib/browser/react-root-7UFFPPRD.mjs +26 -0
- package/dist/lib/browser/react-root-7UFFPPRD.mjs.map +7 -0
- package/dist/lib/browser/react-surface-TIHBSZPD.mjs +113 -0
- package/dist/lib/browser/react-surface-TIHBSZPD.mjs.map +7 -0
- package/dist/lib/browser/repair-TBU45SBG.mjs +40 -0
- package/dist/lib/browser/repair-TBU45SBG.mjs.map +7 -0
- package/dist/lib/browser/settings-Y75FG6XR.mjs +35 -0
- package/dist/lib/browser/settings-Y75FG6XR.mjs.map +7 -0
- package/dist/lib/browser/state-OBTMMEUZ.mjs +25 -0
- package/dist/lib/browser/state-OBTMMEUZ.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +11 -12
- package/dist/lib/node-esm/CallDebugPanel-CYACANSP.mjs +183 -0
- package/dist/lib/node-esm/CallDebugPanel-CYACANSP.mjs.map +7 -0
- package/dist/lib/node-esm/CallSidebar-XD7J7EQ6.mjs +34 -0
- package/dist/lib/node-esm/CallSidebar-XD7J7EQ6.mjs.map +7 -0
- package/dist/lib/node-esm/ChannelContainer-NU4LSLB4.mjs +16 -0
- package/dist/lib/node-esm/ChannelContainer-NU4LSLB4.mjs.map +7 -0
- package/dist/lib/node-esm/ChatContainer-FPNIG33R.mjs +15 -0
- package/dist/lib/node-esm/ChatContainer-FPNIG33R.mjs.map +7 -0
- package/dist/lib/node-esm/ThreadCompanion-TLWTONG6.mjs +205 -0
- package/dist/lib/node-esm/ThreadCompanion-TLWTONG6.mjs.map +7 -0
- package/dist/lib/node-esm/ThreadSettings-EUH4AGYV.mjs +21 -0
- package/dist/lib/node-esm/ThreadSettings-EUH4AGYV.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-VBLHLX75.mjs +192 -0
- package/dist/lib/node-esm/app-graph-builder-VBLHLX75.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-PEXTS56K.mjs +18 -0
- package/dist/lib/node-esm/blueprint-definition-PEXTS56K.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +9 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/call-manager-BLQCEM2F.mjs +28 -0
- package/dist/lib/node-esm/call-manager-BLQCEM2F.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-6K5ACCGB.mjs +107 -0
- package/dist/lib/node-esm/chunk-6K5ACCGB.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-7SZBKQUU.mjs +224 -0
- package/dist/lib/node-esm/chunk-7SZBKQUU.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-OBVAURUU.mjs → chunk-GPPP2MZ3.mjs} +7 -2
- package/dist/lib/node-esm/chunk-GPPP2MZ3.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-IQUV7DR6.mjs +1124 -0
- package/dist/lib/node-esm/chunk-IQUV7DR6.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-TIPIOH2J.mjs → chunk-QP3KQOPQ.mjs} +207 -287
- package/dist/lib/node-esm/chunk-QP3KQOPQ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-QYAVWNVM.mjs +278 -0
- package/dist/lib/node-esm/chunk-QYAVWNVM.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-V2GXQ2UB.mjs +126 -0
- package/dist/lib/node-esm/chunk-V2GXQ2UB.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-2V3WSLUZ.mjs → chunk-VBI32FGI.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-2V3WSLUZ.mjs.map → chunk-VBI32FGI.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-2MMJF7DW.mjs → chunk-YN2Y7GPW.mjs} +79 -76
- package/dist/lib/node-esm/chunk-YN2Y7GPW.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +138 -141
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/markdown-WHWUESF7.mjs +211 -0
- package/dist/lib/node-esm/markdown-WHWUESF7.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-R7QJW3TW.mjs +443 -0
- package/dist/lib/node-esm/operation-resolver-R7QJW3TW.mjs.map +7 -0
- package/dist/lib/node-esm/react-root-D7CWS5XP.mjs +27 -0
- package/dist/lib/node-esm/react-root-D7CWS5XP.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-WWZFSK5Y.mjs +114 -0
- package/dist/lib/node-esm/react-surface-WWZFSK5Y.mjs.map +7 -0
- package/dist/lib/node-esm/repair-7JEKRNR3.mjs +41 -0
- package/dist/lib/node-esm/repair-7JEKRNR3.mjs.map +7 -0
- package/dist/lib/node-esm/settings-W4JN2YKJ.mjs +36 -0
- package/dist/lib/node-esm/settings-W4JN2YKJ.mjs.map +7 -0
- package/dist/lib/node-esm/state-7UWCSIWQ.mjs +26 -0
- package/dist/lib/node-esm/state-7UWCSIWQ.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +11 -12
- package/dist/types/src/ThreadPlugin.d.ts +2 -1
- package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/index.d.ts +2 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/thread-blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -0
- package/dist/types/src/calls/call-manager.d.ts +40 -30
- package/dist/types/src/calls/call-manager.d.ts.map +1 -1
- package/dist/types/src/calls/call-swarm-synchronizer.d.ts +2 -2
- package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +1 -1
- package/dist/types/src/calls/media-manager.d.ts +1 -1
- package/dist/types/src/calls/media-manager.d.ts.map +1 -1
- package/dist/types/src/calls/util/calls-service.d.ts +1 -1
- package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
- package/dist/types/src/calls/util/task-scheduling.d.ts +2 -2
- package/dist/types/src/calls/util/task-scheduling.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +6 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/call-manager/call-manager.d.ts +6 -0
- package/dist/types/src/capabilities/call-manager/call-manager.d.ts.map +1 -0
- package/dist/types/src/capabilities/call-manager/index.d.ts +3 -0
- package/dist/types/src/capabilities/call-manager/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +10 -16
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown/index.d.ts +3 -0
- package/dist/types/src/capabilities/markdown/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/markdown/markdown.d.ts +5 -0
- package/dist/types/src/capabilities/markdown/markdown.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-root/index.d.ts +6 -0
- package/dist/types/src/capabilities/react-root/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-root/react-root.d.ts +9 -0
- package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/repair/index.d.ts +3 -0
- package/dist/types/src/capabilities/repair/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/repair/repair.d.ts +6 -0
- package/dist/types/src/capabilities/repair/repair.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/index.d.ts +3 -0
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/settings.d.ts +6 -0
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/index.d.ts +3 -0
- package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/state.d.ts +7 -0
- package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
- package/dist/types/src/components/Call/Call.d.ts.map +1 -1
- package/dist/types/src/components/Call/Toolbar.d.ts +2 -2
- package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/Comments.stories.d.ts +5 -5
- package/dist/types/src/components/Comments.stories.d.ts.map +1 -1
- package/dist/types/src/components/CommentsContainer.d.ts +2 -2
- package/dist/types/src/components/CommentsContainer.d.ts.map +1 -1
- package/dist/types/src/components/CommentsThreadContainer.d.ts +8 -8
- package/dist/types/src/components/CommentsThreadContainer.d.ts.map +1 -1
- 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/MessageContainer.d.ts +6 -5
- package/dist/types/src/components/MessageContainer.d.ts.map +1 -1
- package/dist/types/src/components/Participant/Participant.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts +5 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +5 -1
- 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/index.d.ts +0 -6
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/testing.d.ts +3 -3
- package/dist/types/src/components/testing.d.ts.map +1 -1
- package/dist/types/src/{components → containers/CallDebugPanel}/CallDebugPanel.d.ts +1 -1
- package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts.map +1 -0
- package/dist/types/src/containers/CallDebugPanel/index.d.ts +3 -0
- package/dist/types/src/containers/CallDebugPanel/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/CallSidebar}/CallSidebar.d.ts +0 -1
- package/dist/types/src/containers/CallSidebar/CallSidebar.d.ts.map +1 -0
- package/dist/types/src/containers/CallSidebar/index.d.ts +3 -0
- package/dist/types/src/containers/CallSidebar/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts +12 -0
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +1 -0
- package/dist/types/src/{components → containers/ChannelContainer}/ChannelContainer.stories.d.ts +77 -7
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelContainer/index.d.ts +3 -0
- package/dist/types/src/containers/ChannelContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +17 -0
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +1 -0
- package/dist/types/src/{components/Chat.stories.d.ts → containers/ChatContainer/ChatContainer.stories.d.ts} +77 -6
- package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ChatContainer/index.d.ts +3 -0
- package/dist/types/src/containers/ChatContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts +5 -0
- package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadCompanion/index.d.ts +3 -0
- package/dist/types/src/containers/ThreadCompanion/index.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadSettings/ThreadSettings.d.ts +8 -0
- package/dist/types/src/containers/ThreadSettings/ThreadSettings.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadSettings/index.d.ts +3 -0
- package/dist/types/src/containers/ThreadSettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +8 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/extensions/threads.d.ts +7 -2
- package/dist/types/src/extensions/threads.d.ts.map +1 -1
- package/dist/types/src/functions/create-proposals.d.ts +13 -0
- package/dist/types/src/functions/create-proposals.d.ts.map +1 -0
- package/dist/types/src/functions/index.d.ts +14 -0
- package/dist/types/src/functions/index.d.ts.map +1 -0
- package/dist/types/src/hooks/analytics.d.ts +2 -3
- package/dist/types/src/hooks/analytics.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +2 -2
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/testing/stories.d.ts +2 -1
- package/dist/types/src/testing/stories.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +76 -6
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Channel.d.ts +711 -0
- package/dist/types/src/types/Channel.d.ts.map +1 -0
- package/dist/types/src/types/capabilities.d.ts +23 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +3294 -446
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +87 -64
- package/src/ThreadPlugin.tsx +68 -107
- package/src/blueprints/index.ts +5 -0
- package/src/blueprints/thread-blueprint.ts +40 -0
- package/src/calls/call-manager.ts +76 -52
- package/src/calls/call-swarm-synchronizer.ts +2 -2
- package/src/calls/media-manager.ts +10 -7
- package/src/calls/util/calls-service.ts +1 -1
- package/src/calls/util/stub-media-streams.ts +2 -2
- package/src/calls/util/task-scheduling.ts +4 -4
- package/src/calls-service.stories.tsx +2 -2
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +202 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +17 -0
- package/src/capabilities/blueprint-definition/index.ts +7 -0
- package/src/capabilities/call-manager/call-manager.ts +26 -0
- package/src/capabilities/call-manager/index.ts +7 -0
- package/src/capabilities/index.ts +10 -13
- package/src/capabilities/markdown/index.ts +7 -0
- package/src/capabilities/markdown/markdown.ts +82 -0
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +399 -0
- package/src/capabilities/react-root/index.ts +7 -0
- package/src/capabilities/react-root/react-root.tsx +20 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +98 -0
- package/src/capabilities/repair/index.ts +7 -0
- package/src/capabilities/repair/repair.ts +55 -0
- package/src/capabilities/settings/index.ts +7 -0
- package/src/capabilities/settings/settings.ts +34 -0
- package/src/capabilities/state/index.ts +7 -0
- package/src/capabilities/state/state.ts +22 -0
- package/src/components/Call/Call.tsx +8 -4
- package/src/components/Call/Toolbar.tsx +36 -29
- package/src/components/Comments.stories.tsx +31 -30
- package/src/components/CommentsContainer.tsx +14 -15
- package/src/components/CommentsThreadContainer.tsx +42 -39
- package/src/components/Lobby/Lobby.tsx +9 -7
- package/src/components/Media/AudioStream.tsx +2 -2
- package/src/components/Media/VideoObject.stories.tsx +3 -3
- package/src/components/Media/VideoObject.tsx +1 -1
- package/src/components/MessageContainer.tsx +62 -31
- package/src/components/Participant/Participant.tsx +32 -19
- package/src/components/ResponsiveGrid/ResponsiveContainer.stories.tsx +3 -3
- package/src/components/ResponsiveGrid/ResponsiveContainer.tsx +1 -1
- package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +3 -3
- package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +1 -1
- package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +7 -4
- package/src/components/command-extension.ts +3 -3
- package/src/components/index.ts +0 -10
- package/src/components/testing.ts +7 -9
- package/src/{components → containers/CallDebugPanel}/CallDebugPanel.tsx +13 -15
- package/src/containers/CallDebugPanel/index.ts +7 -0
- package/src/containers/CallSidebar/CallSidebar.tsx +17 -0
- package/src/containers/CallSidebar/index.ts +7 -0
- package/src/{components → containers/ChannelContainer}/ChannelContainer.stories.tsx +16 -15
- package/src/{components → containers/ChannelContainer}/ChannelContainer.tsx +75 -59
- package/src/containers/ChannelContainer/index.ts +7 -0
- package/src/{components/Chat.stories.tsx → containers/ChatContainer/ChatContainer.stories.tsx} +23 -26
- package/src/{components → containers/ChatContainer}/ChatContainer.tsx +56 -52
- package/src/containers/ChatContainer/index.ts +7 -0
- package/src/containers/ThreadCompanion/ThreadCompanion.tsx +197 -0
- package/src/containers/ThreadCompanion/index.ts +7 -0
- package/src/containers/ThreadSettings/ThreadSettings.tsx +22 -0
- package/src/containers/ThreadSettings/index.ts +7 -0
- package/src/containers/index.ts +12 -0
- package/src/extensions/threads.ts +86 -42
- package/src/functions/create-proposals.ts +57 -0
- package/src/functions/index.ts +9 -0
- package/src/hooks/analytics.ts +22 -21
- package/src/hooks/index.ts +3 -2
- package/src/index.ts +1 -1
- package/src/meta.ts +8 -3
- package/src/testing/stories.ts +17 -15
- package/src/translations.ts +6 -3
- package/src/types/Channel.ts +30 -0
- package/src/types/capabilities.ts +34 -0
- package/src/types/index.ts +2 -1
- package/src/types/types.ts +167 -88
- package/dist/lib/browser/ChannelContainer-BGDGZHV4.mjs +0 -16
- package/dist/lib/browser/ChatContainer-75KJZ4XR.mjs +0 -15
- package/dist/lib/browser/app-graph-builder-ODKIAXR7.mjs +0 -171
- package/dist/lib/browser/app-graph-builder-ODKIAXR7.mjs.map +0 -7
- package/dist/lib/browser/call-manager-BCKLI4QD.mjs +0 -24
- package/dist/lib/browser/call-manager-BCKLI4QD.mjs.map +0 -7
- package/dist/lib/browser/chunk-2MUYQOQE.mjs +0 -23
- package/dist/lib/browser/chunk-2MUYQOQE.mjs.map +0 -7
- package/dist/lib/browser/chunk-B7YQ7QR2.mjs +0 -376
- package/dist/lib/browser/chunk-B7YQ7QR2.mjs.map +0 -7
- package/dist/lib/browser/chunk-CMCVHULC.mjs +0 -986
- package/dist/lib/browser/chunk-CMCVHULC.mjs.map +0 -7
- package/dist/lib/browser/chunk-HDEQRBOC.mjs.map +0 -7
- package/dist/lib/browser/chunk-L326LSNS.mjs +0 -18
- package/dist/lib/browser/chunk-L326LSNS.mjs.map +0 -7
- package/dist/lib/browser/chunk-T4KJ5JR4.mjs +0 -15
- package/dist/lib/browser/chunk-T4KJ5JR4.mjs.map +0 -7
- package/dist/lib/browser/chunk-VJMKS4CZ.mjs +0 -619
- package/dist/lib/browser/chunk-VJMKS4CZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-VTYX3SIM.mjs +0 -147
- package/dist/lib/browser/chunk-VTYX3SIM.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZCEU5K23.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-VOQD3TQ2.mjs +0 -427
- package/dist/lib/browser/intent-resolver-VOQD3TQ2.mjs.map +0 -7
- package/dist/lib/browser/markdown-R6MGRIA6.mjs +0 -169
- package/dist/lib/browser/markdown-R6MGRIA6.mjs.map +0 -7
- package/dist/lib/browser/react-root-UMSBTN6H.mjs +0 -28
- package/dist/lib/browser/react-root-UMSBTN6H.mjs.map +0 -7
- package/dist/lib/browser/react-surface-SXMQEWKE.mjs +0 -109
- package/dist/lib/browser/react-surface-SXMQEWKE.mjs.map +0 -7
- package/dist/lib/browser/settings-TCNF54PN.mjs +0 -22
- package/dist/lib/browser/settings-TCNF54PN.mjs.map +0 -7
- package/dist/lib/browser/state-ZQ4IPOJT.mjs +0 -34
- package/dist/lib/browser/state-ZQ4IPOJT.mjs.map +0 -7
- package/dist/lib/browser/toolkit-JF4B4QIO.mjs +0 -84
- package/dist/lib/browser/toolkit-JF4B4QIO.mjs.map +0 -7
- package/dist/lib/node-esm/ChannelContainer-OXC6BTU7.mjs +0 -17
- package/dist/lib/node-esm/ChatContainer-SH6LTFQL.mjs +0 -16
- package/dist/lib/node-esm/app-graph-builder-DMPT3MY6.mjs +0 -172
- package/dist/lib/node-esm/app-graph-builder-DMPT3MY6.mjs.map +0 -7
- package/dist/lib/node-esm/call-manager-Q7RY2YP4.mjs +0 -25
- package/dist/lib/node-esm/call-manager-Q7RY2YP4.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2KZ4ODHU.mjs +0 -987
- package/dist/lib/node-esm/chunk-2KZ4ODHU.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2MMJF7DW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BAMZXJS4.mjs +0 -148
- package/dist/lib/node-esm/chunk-BAMZXJS4.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BTGKI5IK.mjs +0 -377
- package/dist/lib/node-esm/chunk-BTGKI5IK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GZ4WL2IS.mjs +0 -25
- package/dist/lib/node-esm/chunk-GZ4WL2IS.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-LCHTNRK7.mjs +0 -19
- package/dist/lib/node-esm/chunk-LCHTNRK7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NHSIAEDW.mjs +0 -620
- package/dist/lib/node-esm/chunk-NHSIAEDW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-OBVAURUU.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TIPIOH2J.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-AKVH66PH.mjs +0 -428
- package/dist/lib/node-esm/intent-resolver-AKVH66PH.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-MYGTDXT6.mjs +0 -170
- package/dist/lib/node-esm/markdown-MYGTDXT6.mjs.map +0 -7
- package/dist/lib/node-esm/react-root-W6AVTL5M.mjs +0 -29
- package/dist/lib/node-esm/react-root-W6AVTL5M.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-NLSZJGMO.mjs +0 -110
- package/dist/lib/node-esm/react-surface-NLSZJGMO.mjs.map +0 -7
- package/dist/lib/node-esm/settings-ZQHGVFBY.mjs +0 -23
- package/dist/lib/node-esm/settings-ZQHGVFBY.mjs.map +0 -7
- package/dist/lib/node-esm/state-FSLLJ5TZ.mjs +0 -35
- package/dist/lib/node-esm/state-FSLLJ5TZ.mjs.map +0 -7
- package/dist/lib/node-esm/toolkit-DHPKJITO.mjs +0 -85
- package/dist/lib/node-esm/toolkit-DHPKJITO.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/call-manager.d.ts +0 -5
- package/dist/types/src/capabilities/call-manager.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -27
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/markdown.d.ts +0 -4
- package/dist/types/src/capabilities/markdown.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-root.d.ts +0 -7
- package/dist/types/src/capabilities/react-root.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings.d.ts +0 -4
- package/dist/types/src/capabilities/settings.d.ts.map +0 -1
- package/dist/types/src/capabilities/state.d.ts +0 -7
- package/dist/types/src/capabilities/state.d.ts.map +0 -1
- package/dist/types/src/capabilities/toolkit.d.ts +0 -6
- package/dist/types/src/capabilities/toolkit.d.ts.map +0 -1
- package/dist/types/src/components/CallDebugPanel.d.ts.map +0 -1
- package/dist/types/src/components/CallSidebar.d.ts.map +0 -1
- package/dist/types/src/components/ChannelContainer.d.ts +0 -14
- package/dist/types/src/components/ChannelContainer.d.ts.map +0 -1
- package/dist/types/src/components/ChannelContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/Chat.stories.d.ts.map +0 -1
- package/dist/types/src/components/ChatContainer.d.ts +0 -17
- package/dist/types/src/components/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/components/ThreadComplementary.d.ts +0 -5
- package/dist/types/src/components/ThreadComplementary.d.ts.map +0 -1
- package/dist/types/src/components/ThreadSettings.d.ts +0 -6
- package/dist/types/src/components/ThreadSettings.d.ts.map +0 -1
- package/dist/types/src/types/schema.d.ts +0 -179
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -184
- package/src/capabilities/call-manager.ts +0 -20
- package/src/capabilities/capabilities.ts +0 -33
- package/src/capabilities/intent-resolver.ts +0 -348
- package/src/capabilities/markdown.ts +0 -69
- package/src/capabilities/react-root.tsx +0 -17
- package/src/capabilities/react-surface.tsx +0 -89
- package/src/capabilities/settings.ts +0 -19
- package/src/capabilities/state.ts +0 -26
- package/src/capabilities/toolkit.ts +0 -82
- package/src/components/CallSidebar.tsx +0 -18
- package/src/components/ThreadComplementary.tsx +0 -181
- package/src/components/ThreadSettings.tsx +0 -16
- package/src/types/schema.ts +0 -33
- /package/dist/lib/browser/{ChannelContainer-BGDGZHV4.mjs.map → ChannelContainer-EPYG4QAC.mjs.map} +0 -0
- /package/dist/lib/browser/{ChatContainer-75KJZ4XR.mjs.map → ChatContainer-2243UD2M.mjs.map} +0 -0
- /package/dist/lib/{node-esm/ChannelContainer-OXC6BTU7.mjs.map → browser/blueprints/index.mjs.map} +0 -0
- /package/dist/lib/{node-esm/ChatContainer-SH6LTFQL.mjs.map → browser/chunk-J5LGTIGS.mjs.map} +0 -0
package/src/testing/stories.ts
CHANGED
|
@@ -2,30 +2,32 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { OperationPlugin, type Plugin } from '@dxos/app-framework';
|
|
7
8
|
import { ClientPlugin } from '@dxos/plugin-client';
|
|
8
9
|
import { GraphPlugin } from '@dxos/plugin-graph';
|
|
10
|
+
import { SettingsPlugin } from '@dxos/plugin-settings';
|
|
9
11
|
import { SpacePlugin } from '@dxos/plugin-space';
|
|
10
12
|
import { ThemePlugin } from '@dxos/plugin-theme';
|
|
11
13
|
import { Config } from '@dxos/react-client';
|
|
12
|
-
import {
|
|
13
|
-
import { defaultTx } from '@dxos/react-ui-theme';
|
|
14
|
+
import { defaultTx } from '@dxos/ui-theme';
|
|
14
15
|
|
|
15
16
|
import { ThreadPlugin } from '../ThreadPlugin';
|
|
16
|
-
import {
|
|
17
|
+
import { Channel } from '../types';
|
|
17
18
|
|
|
18
|
-
export const createThreadPlugins = async () => [
|
|
19
|
+
export const createThreadPlugins = async (): Promise<Array<Plugin.Plugin>> => [
|
|
19
20
|
ThemePlugin({ tx: defaultTx }),
|
|
20
21
|
ClientPlugin({
|
|
21
|
-
onClientInitialized:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
onClientInitialized: ({ client }) =>
|
|
23
|
+
Effect.gen(function* () {
|
|
24
|
+
yield* Effect.promise(() => client.halo.createIdentity({ displayName: 'Test User' }));
|
|
25
|
+
}),
|
|
26
|
+
onSpacesReady: ({ client }) =>
|
|
27
|
+
Effect.gen(function* () {
|
|
28
|
+
yield* Effect.promise(() => client.spaces.default.waitUntilReady());
|
|
29
|
+
client.spaces.default.db.add(Channel.make());
|
|
30
|
+
}),
|
|
29
31
|
config: new Config({
|
|
30
32
|
runtime: {
|
|
31
33
|
client: {
|
|
@@ -47,7 +49,7 @@ export const createThreadPlugins = async () => [
|
|
|
47
49
|
}),
|
|
48
50
|
}),
|
|
49
51
|
SpacePlugin({}),
|
|
50
|
-
|
|
52
|
+
OperationPlugin(),
|
|
51
53
|
SettingsPlugin(),
|
|
52
54
|
GraphPlugin(),
|
|
53
55
|
ThreadPlugin(),
|
package/src/translations.ts
CHANGED
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import { Type } from '@dxos/echo';
|
|
5
6
|
import { type Resource } from '@dxos/react-ui';
|
|
6
7
|
|
|
7
8
|
import { meta } from './meta';
|
|
8
|
-
import {
|
|
9
|
+
import { Channel } from './types';
|
|
9
10
|
|
|
10
11
|
export const translations = [
|
|
11
12
|
{
|
|
12
13
|
'en-US': {
|
|
13
|
-
[
|
|
14
|
+
[Type.getTypename(Channel.Channel)]: {
|
|
14
15
|
'typename label': 'Channel',
|
|
15
16
|
'typename label_zero': 'Channels',
|
|
16
17
|
'typename label_one': 'Channel',
|
|
@@ -18,6 +19,7 @@ export const translations = [
|
|
|
18
19
|
'object name placeholder': 'New channel',
|
|
19
20
|
'rename object label': 'Rename channel',
|
|
20
21
|
'delete object label': 'Delete channel',
|
|
22
|
+
'object deleted label': 'Channel deleted',
|
|
21
23
|
},
|
|
22
24
|
[meta.id]: {
|
|
23
25
|
'plugin name': 'Chat',
|
|
@@ -49,6 +51,7 @@ export const translations = [
|
|
|
49
51
|
'comments label': 'Comments',
|
|
50
52
|
'show all label': 'All comments',
|
|
51
53
|
'show unresolved label': 'Unresolved comments',
|
|
54
|
+
'add comment label': 'Add comment',
|
|
52
55
|
|
|
53
56
|
'channel companion label': 'Channel',
|
|
54
57
|
'call panel label': 'Active Call',
|
|
@@ -59,7 +62,7 @@ export const translations = [
|
|
|
59
62
|
'set display name label': 'Continue',
|
|
60
63
|
|
|
61
64
|
'call tab label': 'Call',
|
|
62
|
-
'meeting status title': '
|
|
65
|
+
'meeting status title': 'Calls',
|
|
63
66
|
'share meeting link label': 'Share meeting',
|
|
64
67
|
'show webrtc stats title': 'WebRTC Stats',
|
|
65
68
|
'show calls history title': 'Service History',
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
|
+
|
|
7
|
+
import { Obj, Ref, Type } from '@dxos/echo';
|
|
8
|
+
import { FormInputAnnotation } from '@dxos/echo/internal';
|
|
9
|
+
import { Thread } from '@dxos/types';
|
|
10
|
+
|
|
11
|
+
export const Channel = Schema.Struct({
|
|
12
|
+
name: Schema.optional(Schema.String),
|
|
13
|
+
defaultThread: Ref.Ref(Thread.Thread).pipe(FormInputAnnotation.set(false)),
|
|
14
|
+
// TODO(wittjosiah): Should be an "ordered collection".
|
|
15
|
+
threads: Ref.Ref(Thread.Thread).pipe(Schema.Array, FormInputAnnotation.set(false)),
|
|
16
|
+
}).pipe(
|
|
17
|
+
Type.object({
|
|
18
|
+
typename: 'dxos.org/type/Channel',
|
|
19
|
+
version: '0.1.0',
|
|
20
|
+
}),
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
export interface Channel extends Schema.Schema.Type<typeof Channel> {}
|
|
24
|
+
|
|
25
|
+
export const make = (props: Pick<Obj.MakeProps<typeof Channel>, 'name'> = {}) =>
|
|
26
|
+
Obj.make(Channel, {
|
|
27
|
+
...props,
|
|
28
|
+
defaultThread: Ref.make(Obj.make(Thread.Thread, { messages: [], status: 'active' })),
|
|
29
|
+
threads: [],
|
|
30
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type Atom } from '@effect-atom/atom-react';
|
|
6
|
+
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
|
|
9
|
+
import { type CallManager, type CallState, type MediaState } from '../calls';
|
|
10
|
+
import { meta } from '../meta';
|
|
11
|
+
import { type Channel, type ThreadSettingsProps, type ThreadState, type ViewStore } from '../types';
|
|
12
|
+
|
|
13
|
+
export namespace ThreadCapabilities {
|
|
14
|
+
export const Settings = Capability.make<Atom.Writable<ThreadSettingsProps>>(`${meta.id}/capability/settings`);
|
|
15
|
+
export const CallManager = Capability.make<CallManager>(`${meta.id}/capability/call-manager`);
|
|
16
|
+
|
|
17
|
+
// TODO(burdon): Better way to define specific extensions for meeting companions.
|
|
18
|
+
// TODO(burdon): This brings in deps from ../calls; how should we manage/minimize explicit type exposure to other plugins?
|
|
19
|
+
// TODO(wittjosiah): These callbacks could be intents once we support broadcast.
|
|
20
|
+
export type CallProperties = {
|
|
21
|
+
onJoin: (state: { channel?: Channel.Channel; roomId?: string }) => Promise<void>;
|
|
22
|
+
onLeave: (roomId?: string) => Promise<void>;
|
|
23
|
+
onCallStateUpdated: (callState: CallState) => Promise<void>;
|
|
24
|
+
onMediaStateUpdated: ([mediaState, isSpeaking]: [MediaState, boolean]) => Promise<void>;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const CallExtension = Capability.make<CallProperties>(`${meta.id}/capability/call-extension`);
|
|
28
|
+
|
|
29
|
+
/** Thread state (drafts, toolbar state, current selection). */
|
|
30
|
+
export const State = Capability.make<Atom.Writable<ThreadState>>(`${meta.id}/capability/state`);
|
|
31
|
+
|
|
32
|
+
/** Per-subject view state (e.g., showResolvedThreads). */
|
|
33
|
+
export const ViewState = Capability.make<Atom.Writable<ViewStore>>(`${meta.id}/capability/view-state`);
|
|
34
|
+
}
|
package/src/types/index.ts
CHANGED
package/src/types/types.ts
CHANGED
|
@@ -4,114 +4,192 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Schema from 'effect/Schema';
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { Key, Obj } from '@dxos/echo';
|
|
9
|
+
import { Collection } from '@dxos/echo';
|
|
10
|
+
import { Operation } from '@dxos/operation';
|
|
11
|
+
import { SpaceSchema } from '@dxos/react-client/echo';
|
|
12
|
+
import { Actor, AnchoredTo, Message, Thread } from '@dxos/types';
|
|
10
13
|
|
|
11
14
|
import { meta } from '../meta';
|
|
12
15
|
|
|
13
|
-
import
|
|
16
|
+
import * as Channel from './Channel';
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
export class onCreateSpace extends Schema.TaggedClass<onCreateSpace>()(`${meta.id}/action/on-space-created`, {
|
|
17
|
-
input: Schema.Struct({
|
|
18
|
-
space: SpaceSchema,
|
|
19
|
-
rootCollection: DataType.Collection,
|
|
20
|
-
}),
|
|
21
|
-
output: Schema.Void,
|
|
22
|
-
}) {}
|
|
18
|
+
const THREAD_OPERATION = `${meta.id}/operation`;
|
|
23
19
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Operations for the Thread plugin.
|
|
22
|
+
* Note: Complex ECHO types are typed as Schema.Any to avoid serialization issues.
|
|
23
|
+
*/
|
|
24
|
+
export namespace ThreadOperation {
|
|
25
|
+
export const OnCreateSpace = Operation.make({
|
|
26
|
+
meta: { key: `${THREAD_OPERATION}/on-create-space`, name: 'On Create Space' },
|
|
27
|
+
services: [Capability.Service],
|
|
28
|
+
schema: {
|
|
29
|
+
input: Schema.Struct({
|
|
30
|
+
space: SpaceSchema,
|
|
31
|
+
rootCollection: Collection.Collection,
|
|
32
|
+
isDefault: Schema.Boolean.pipe(Schema.optional),
|
|
33
|
+
}),
|
|
34
|
+
output: Schema.Void,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
33
37
|
|
|
34
|
-
export
|
|
35
|
-
`${
|
|
36
|
-
|
|
38
|
+
export const CreateChannel = Operation.make({
|
|
39
|
+
meta: { key: `${THREAD_OPERATION}/create-channel`, name: 'Create Channel' },
|
|
40
|
+
services: [Capability.Service],
|
|
41
|
+
schema: {
|
|
37
42
|
input: Schema.Struct({
|
|
38
|
-
|
|
43
|
+
spaceId: Key.SpaceId,
|
|
44
|
+
name: Schema.optional(Schema.String),
|
|
39
45
|
}),
|
|
40
46
|
output: Schema.Struct({
|
|
41
|
-
object:
|
|
47
|
+
object: Channel.Channel,
|
|
42
48
|
}),
|
|
43
49
|
},
|
|
44
|
-
)
|
|
50
|
+
});
|
|
45
51
|
|
|
46
|
-
export
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
subject: EchoObjectSchema,
|
|
59
|
-
thread: Schema.optional(ThreadType),
|
|
60
|
-
}),
|
|
61
|
-
output: Schema.Void,
|
|
62
|
-
}) {}
|
|
52
|
+
export const CreateChannelThread = Operation.make({
|
|
53
|
+
meta: { key: `${THREAD_OPERATION}/create-channel-thread`, name: 'Create Channel Thread' },
|
|
54
|
+
services: [Capability.Service],
|
|
55
|
+
schema: {
|
|
56
|
+
input: Schema.Struct({
|
|
57
|
+
channel: Channel.Channel,
|
|
58
|
+
}),
|
|
59
|
+
output: Schema.Struct({
|
|
60
|
+
object: Thread.Thread,
|
|
61
|
+
}),
|
|
62
|
+
},
|
|
63
|
+
});
|
|
63
64
|
|
|
64
|
-
export
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
export const Create = Operation.make({
|
|
66
|
+
meta: { key: `${THREAD_OPERATION}/create`, name: 'Create Thread' },
|
|
67
|
+
services: [Capability.Service],
|
|
68
|
+
schema: {
|
|
69
|
+
input: Schema.Struct({
|
|
70
|
+
name: Schema.optional(Schema.String),
|
|
71
|
+
anchor: Schema.optional(Schema.String),
|
|
72
|
+
subject: Obj.Unknown,
|
|
73
|
+
}),
|
|
74
|
+
output: Schema.Void,
|
|
75
|
+
},
|
|
76
|
+
});
|
|
70
77
|
|
|
71
|
-
export
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
export
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
78
|
+
export const DeleteOutput = Schema.Struct({
|
|
79
|
+
thread: Thread.Thread.annotations({ description: 'The deleted thread.' }),
|
|
80
|
+
anchor: AnchoredTo.AnchoredTo.annotations({ description: 'The deleted anchor.' }),
|
|
81
|
+
}).pipe(Schema.partial);
|
|
82
|
+
|
|
83
|
+
export type DeleteOutput = Schema.Schema.Type<typeof DeleteOutput>;
|
|
84
|
+
|
|
85
|
+
export const Delete = Operation.make({
|
|
86
|
+
meta: { key: `${THREAD_OPERATION}/delete`, name: 'Delete Thread' },
|
|
87
|
+
services: [Capability.Service],
|
|
88
|
+
schema: {
|
|
89
|
+
input: Schema.Struct({
|
|
90
|
+
anchor: AnchoredTo.AnchoredTo,
|
|
91
|
+
subject: Obj.Unknown,
|
|
92
|
+
thread: Schema.optional(Thread.Thread),
|
|
93
|
+
}),
|
|
94
|
+
output: DeleteOutput,
|
|
95
|
+
},
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
export const Select = Operation.make({
|
|
99
|
+
meta: { key: `${THREAD_OPERATION}/select`, name: 'Select Thread' },
|
|
100
|
+
services: [Capability.Service],
|
|
101
|
+
schema: {
|
|
102
|
+
input: Schema.Struct({
|
|
103
|
+
current: Schema.String,
|
|
104
|
+
}),
|
|
105
|
+
output: Schema.Void,
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
export const ToggleResolved = Operation.make({
|
|
110
|
+
meta: { key: `${THREAD_OPERATION}/toggle-resolved`, name: 'Toggle Resolved' },
|
|
111
|
+
services: [Capability.Service],
|
|
112
|
+
schema: {
|
|
113
|
+
input: Schema.Struct({
|
|
114
|
+
thread: Thread.Thread,
|
|
115
|
+
}),
|
|
116
|
+
output: Schema.Void,
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
export const AddMessage = Operation.make({
|
|
121
|
+
meta: { key: `${THREAD_OPERATION}/add-message`, name: 'Add Message' },
|
|
122
|
+
services: [Capability.Service],
|
|
123
|
+
schema: {
|
|
124
|
+
input: Schema.Struct({
|
|
125
|
+
subject: Obj.Unknown,
|
|
126
|
+
anchor: AnchoredTo.AnchoredTo,
|
|
127
|
+
sender: Actor.Actor,
|
|
128
|
+
text: Schema.String,
|
|
129
|
+
}),
|
|
130
|
+
output: Schema.Void,
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
export const DeleteMessageOutput = Schema.partial(
|
|
135
|
+
Schema.Struct({
|
|
136
|
+
message: Message.Message.annotations({ description: 'The deleted message.' }),
|
|
137
|
+
messageIndex: Schema.Number.annotations({ description: 'The index the message was at.' }),
|
|
105
138
|
}),
|
|
106
|
-
|
|
107
|
-
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
export type DeleteMessageOutput = Schema.Schema.Type<typeof DeleteMessageOutput>;
|
|
142
|
+
|
|
143
|
+
export const DeleteMessage = Operation.make({
|
|
144
|
+
meta: { key: `${THREAD_OPERATION}/delete-message`, name: 'Delete Message' },
|
|
145
|
+
services: [Capability.Service],
|
|
146
|
+
schema: {
|
|
147
|
+
input: Schema.Struct({
|
|
148
|
+
anchor: AnchoredTo.AnchoredTo,
|
|
149
|
+
subject: Obj.Unknown,
|
|
150
|
+
messageId: Schema.String,
|
|
151
|
+
}),
|
|
152
|
+
output: DeleteMessageOutput,
|
|
153
|
+
},
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Restore a deleted thread (inverse of Delete).
|
|
158
|
+
*/
|
|
159
|
+
export const Restore = Operation.make({
|
|
160
|
+
meta: { key: `${THREAD_OPERATION}/restore`, name: 'Restore Thread' },
|
|
161
|
+
services: [Capability.Service],
|
|
162
|
+
schema: {
|
|
163
|
+
input: Schema.Struct({
|
|
164
|
+
thread: Thread.Thread.annotations({ description: 'The thread to restore.' }),
|
|
165
|
+
anchor: AnchoredTo.AnchoredTo.annotations({ description: 'The anchor relation to restore.' }),
|
|
166
|
+
}),
|
|
167
|
+
output: Schema.Void,
|
|
168
|
+
},
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Restore a deleted message (inverse of DeleteMessage).
|
|
173
|
+
*/
|
|
174
|
+
export const RestoreMessage = Operation.make({
|
|
175
|
+
meta: { key: `${THREAD_OPERATION}/restore-message`, name: 'Restore Message' },
|
|
176
|
+
services: [Capability.Service],
|
|
177
|
+
schema: {
|
|
178
|
+
input: Schema.Struct({
|
|
179
|
+
anchor: AnchoredTo.AnchoredTo.annotations({ description: 'The anchor of the thread.' }),
|
|
180
|
+
message: Message.Message.annotations({ description: 'The message to restore.' }),
|
|
181
|
+
messageIndex: Schema.Number.annotations({ description: 'The index to restore the message at.' }),
|
|
182
|
+
}),
|
|
183
|
+
output: Schema.Void,
|
|
184
|
+
},
|
|
185
|
+
});
|
|
108
186
|
}
|
|
109
187
|
|
|
110
188
|
export const ThreadSettingsSchema = Schema.mutable(Schema.Struct({}));
|
|
111
189
|
export type ThreadSettingsProps = Schema.Schema.Type<typeof ThreadSettingsSchema>;
|
|
112
190
|
|
|
113
191
|
export interface ThreadModel {
|
|
114
|
-
root:
|
|
192
|
+
root: Thread.Thread;
|
|
115
193
|
}
|
|
116
194
|
|
|
117
195
|
type SubjectId = string;
|
|
@@ -122,6 +200,7 @@ export type ThreadState = {
|
|
|
122
200
|
/** Object toolbar state. */
|
|
123
201
|
toolbar: Record<string, boolean>;
|
|
124
202
|
/** In-memory draft threads. */
|
|
125
|
-
|
|
203
|
+
// TODO(burdon): Drafts are getting lost.
|
|
204
|
+
drafts: Record<string, AnchoredTo.AnchoredTo[]>;
|
|
126
205
|
current?: string | undefined;
|
|
127
206
|
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChannelContainer,
|
|
3
|
-
ChannelContainer_default
|
|
4
|
-
} from "./chunk-CMCVHULC.mjs";
|
|
5
|
-
import "./chunk-2MUYQOQE.mjs";
|
|
6
|
-
import "./chunk-L326LSNS.mjs";
|
|
7
|
-
import "./chunk-B7YQ7QR2.mjs";
|
|
8
|
-
import "./chunk-HDEQRBOC.mjs";
|
|
9
|
-
import "./chunk-CP7E2HRE.mjs";
|
|
10
|
-
import "./chunk-XYUJXHYV.mjs";
|
|
11
|
-
import "./chunk-T4KJ5JR4.mjs";
|
|
12
|
-
export {
|
|
13
|
-
ChannelContainer,
|
|
14
|
-
ChannelContainer_default as default
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=ChannelContainer-BGDGZHV4.mjs.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChatContainer,
|
|
3
|
-
ChatContainer_default,
|
|
4
|
-
ChatHeading
|
|
5
|
-
} from "./chunk-B7YQ7QR2.mjs";
|
|
6
|
-
import "./chunk-HDEQRBOC.mjs";
|
|
7
|
-
import "./chunk-CP7E2HRE.mjs";
|
|
8
|
-
import "./chunk-XYUJXHYV.mjs";
|
|
9
|
-
import "./chunk-T4KJ5JR4.mjs";
|
|
10
|
-
export {
|
|
11
|
-
ChatContainer,
|
|
12
|
-
ChatHeading,
|
|
13
|
-
ChatContainer_default as default
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=ChatContainer-75KJZ4XR.mjs.map
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChannelType,
|
|
3
|
-
ThreadAction
|
|
4
|
-
} from "./chunk-VTYX3SIM.mjs";
|
|
5
|
-
import {
|
|
6
|
-
ThreadCapabilities
|
|
7
|
-
} from "./chunk-L326LSNS.mjs";
|
|
8
|
-
import {
|
|
9
|
-
getAnchor
|
|
10
|
-
} from "./chunk-CP7E2HRE.mjs";
|
|
11
|
-
import {
|
|
12
|
-
meta
|
|
13
|
-
} from "./chunk-T4KJ5JR4.mjs";
|
|
14
|
-
|
|
15
|
-
// src/capabilities/app-graph-builder.ts
|
|
16
|
-
import { Rx } from "@effect-rx/rx-react";
|
|
17
|
-
import * as Function from "effect/Function";
|
|
18
|
-
import * as Option from "effect/Option";
|
|
19
|
-
import { Capabilities, contributes, createIntent } from "@dxos/app-framework";
|
|
20
|
-
import { Obj } from "@dxos/echo";
|
|
21
|
-
import { AttentionCapabilities } from "@dxos/plugin-attention";
|
|
22
|
-
import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from "@dxos/plugin-deck/types";
|
|
23
|
-
import { ROOT_ID, createExtension, rxFromSignal } from "@dxos/plugin-graph";
|
|
24
|
-
import { fullyQualifiedId } from "@dxos/react-client/echo";
|
|
25
|
-
var app_graph_builder_default = ((context) => {
|
|
26
|
-
const resolve = (typename) => context.getCapabilities(Capabilities.Metadata).find(({ id }) => id === typename)?.metadata ?? {};
|
|
27
|
-
return contributes(Capabilities.AppGraphBuilder, [
|
|
28
|
-
createExtension({
|
|
29
|
-
id: `${meta.id}/active-call`,
|
|
30
|
-
connector: (node) => Rx.make((get) => Function.pipe(get(node), Option.flatMap((node2) => node2.id === ROOT_ID ? Option.some(node2) : Option.none()), Option.map((node2) => {
|
|
31
|
-
const [call] = get(context.capabilities(ThreadCapabilities.CallManager));
|
|
32
|
-
return get(rxFromSignal(() => call?.joined ? [
|
|
33
|
-
{
|
|
34
|
-
id: `${node2.id}${ATTENDABLE_PATH_SEPARATOR}active-call`,
|
|
35
|
-
type: DECK_COMPANION_TYPE,
|
|
36
|
-
data: null,
|
|
37
|
-
properties: {
|
|
38
|
-
label: [
|
|
39
|
-
"call panel label",
|
|
40
|
-
{
|
|
41
|
-
ns: meta.id
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
icon: "ph--video-conference--regular",
|
|
45
|
-
position: "hoist",
|
|
46
|
-
disposition: "hidden"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
] : []));
|
|
50
|
-
}), Option.getOrElse(() => [])))
|
|
51
|
-
}),
|
|
52
|
-
// TODO(wittjosiah): The channel shouldn't become the companion during a call.
|
|
53
|
-
// Alternative: the call/meeting/thread should be a child node of the channel and that should be opened.
|
|
54
|
-
createExtension({
|
|
55
|
-
id: `${meta.id}/channel-chat-companion`,
|
|
56
|
-
connector: (node) => {
|
|
57
|
-
return Rx.make((get) => {
|
|
58
|
-
return Function.pipe(get(node), Option.flatMap((node2) => Obj.instanceOf(ChannelType, node2.data) ? Option.some(node2.data) : Option.none()), Option.map((channel) => {
|
|
59
|
-
const callManager = context.getCapability(ThreadCapabilities.CallManager);
|
|
60
|
-
const joined = get(rxFromSignal(() => callManager.joined && callManager.roomId === fullyQualifiedId(channel)));
|
|
61
|
-
if (!joined) {
|
|
62
|
-
return [];
|
|
63
|
-
}
|
|
64
|
-
return [
|
|
65
|
-
{
|
|
66
|
-
id: `${fullyQualifiedId(channel)}${ATTENDABLE_PATH_SEPARATOR}chat`,
|
|
67
|
-
type: PLANK_COMPANION_TYPE,
|
|
68
|
-
data: "chat",
|
|
69
|
-
properties: {
|
|
70
|
-
label: [
|
|
71
|
-
"channel companion label",
|
|
72
|
-
{
|
|
73
|
-
ns: meta.id
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
icon: "ph--hash--regular",
|
|
77
|
-
position: "hoist",
|
|
78
|
-
disposition: "hidden"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
];
|
|
82
|
-
}), Option.getOrElse(() => []));
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
}),
|
|
86
|
-
createExtension({
|
|
87
|
-
id: `${meta.id}/comments-companion`,
|
|
88
|
-
connector: (node) => Rx.make((get) => Function.pipe(get(node), Option.flatMap((node2) => {
|
|
89
|
-
if (!Obj.isObject(node2.data) || Obj.instanceOf(ChannelType, node2.data)) {
|
|
90
|
-
return Option.none();
|
|
91
|
-
}
|
|
92
|
-
const metadata = resolve(Obj.getTypename(node2.data));
|
|
93
|
-
return typeof metadata.comments === "string" ? Option.some(node2) : Option.none();
|
|
94
|
-
}), Option.map((node2) => [
|
|
95
|
-
{
|
|
96
|
-
id: [
|
|
97
|
-
node2.id,
|
|
98
|
-
"comments"
|
|
99
|
-
].join(ATTENDABLE_PATH_SEPARATOR),
|
|
100
|
-
type: PLANK_COMPANION_TYPE,
|
|
101
|
-
data: "comments",
|
|
102
|
-
properties: {
|
|
103
|
-
label: [
|
|
104
|
-
"comments label",
|
|
105
|
-
{
|
|
106
|
-
ns: meta.id
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
icon: "ph--chat-text--regular",
|
|
110
|
-
disposition: "hidden",
|
|
111
|
-
position: "hoist"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
]), Option.getOrElse(() => [])))
|
|
115
|
-
}),
|
|
116
|
-
createExtension({
|
|
117
|
-
id: `${meta.id}/comment-toolbar`,
|
|
118
|
-
actions: (node) => Rx.make((get) => Function.pipe(get(node), Option.flatMap((node2) => {
|
|
119
|
-
if (!Obj.isObject(node2.data) || Obj.instanceOf(ChannelType, node2.data)) {
|
|
120
|
-
return Option.none();
|
|
121
|
-
}
|
|
122
|
-
const metadata = resolve(Obj.getTypename(node2.data));
|
|
123
|
-
return typeof metadata.comments === "string" ? Option.some(node2.data) : Option.none();
|
|
124
|
-
}), Option.map((object) => {
|
|
125
|
-
const selectionManager = context.getCapability(AttentionCapabilities.Selection);
|
|
126
|
-
const toolbar = get(context.capabilities(ThreadCapabilities.State))[0]?.state.toolbar ?? {};
|
|
127
|
-
const disabled = get(rxFromSignal(() => {
|
|
128
|
-
const metadata = resolve(Obj.getTypename(object));
|
|
129
|
-
const selection = selectionManager.getSelection(fullyQualifiedId(object), metadata.selectionMode);
|
|
130
|
-
const anchor = getAnchor(selection);
|
|
131
|
-
const invalidSelection = !anchor;
|
|
132
|
-
const overlappingComment = toolbar[fullyQualifiedId(object)];
|
|
133
|
-
return metadata.comments === "anchored" && invalidSelection || overlappingComment;
|
|
134
|
-
}));
|
|
135
|
-
return [
|
|
136
|
-
{
|
|
137
|
-
id: `${fullyQualifiedId(object)}/comment`,
|
|
138
|
-
data: () => {
|
|
139
|
-
const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
140
|
-
const metadata = resolve(Obj.getTypename(object));
|
|
141
|
-
const selection = selectionManager.getSelection(fullyQualifiedId(object));
|
|
142
|
-
const anchor = metadata.comments === "anchored" ? getAnchor(selection) : Date.now().toString();
|
|
143
|
-
const name = metadata.getAnchorLabel?.(object, anchor);
|
|
144
|
-
void dispatch(createIntent(ThreadAction.Create, {
|
|
145
|
-
anchor,
|
|
146
|
-
name,
|
|
147
|
-
subject: object
|
|
148
|
-
}));
|
|
149
|
-
},
|
|
150
|
-
properties: {
|
|
151
|
-
label: [
|
|
152
|
-
"add comment label",
|
|
153
|
-
{
|
|
154
|
-
ns: meta.id
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
icon: "ph--chat-text--regular",
|
|
158
|
-
disposition: "toolbar",
|
|
159
|
-
disabled,
|
|
160
|
-
testId: "thread.comment.add"
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
];
|
|
164
|
-
}), Option.getOrElse(() => [])))
|
|
165
|
-
})
|
|
166
|
-
]);
|
|
167
|
-
});
|
|
168
|
-
export {
|
|
169
|
-
app_graph_builder_default as default
|
|
170
|
-
};
|
|
171
|
-
//# sourceMappingURL=app-graph-builder-ODKIAXR7.mjs.map
|