@dxos/plugin-thread 0.8.4-main.ae835ea → 0.8.4-main.bcb3aa67d6
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-RNUQFJTH.mjs +97 -0
- package/dist/lib/browser/add-message-RNUQFJTH.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +37 -0
- package/dist/lib/browser/blueprints/index.mjs.map +7 -0
- package/dist/lib/browser/chunk-BHQ62SKT.mjs +259 -0
- package/dist/lib/browser/chunk-BHQ62SKT.mjs.map +7 -0
- package/dist/lib/browser/chunk-H32XEGIV.mjs +61 -0
- package/dist/lib/browser/chunk-H32XEGIV.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/create-UWYTS35R.mjs +55 -0
- package/dist/lib/browser/create-UWYTS35R.mjs.map +7 -0
- package/dist/lib/browser/create-channel-7RX3G7QV.mjs +21 -0
- package/dist/lib/browser/create-channel-7RX3G7QV.mjs.map +7 -0
- package/dist/lib/browser/create-channel-thread-ZA7IVGTL.mjs +28 -0
- package/dist/lib/browser/create-channel-thread-ZA7IVGTL.mjs.map +7 -0
- package/dist/lib/browser/create-proposals-74FZ3XTC.mjs +57 -0
- package/dist/lib/browser/create-proposals-74FZ3XTC.mjs.map +7 -0
- package/dist/lib/browser/delete-SJBDYXW3.mjs +59 -0
- package/dist/lib/browser/delete-SJBDYXW3.mjs.map +7 -0
- package/dist/lib/browser/delete-message-AHSDDYXK.mjs +64 -0
- package/dist/lib/browser/delete-message-AHSDDYXK.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +2250 -229
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/on-create-space-YNZHJSZ5.mjs +25 -0
- package/dist/lib/browser/on-create-space-YNZHJSZ5.mjs.map +7 -0
- package/dist/lib/browser/operations/index.mjs +14 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/restore-X2K3ZKFD.mjs +33 -0
- package/dist/lib/browser/restore-X2K3ZKFD.mjs.map +7 -0
- package/dist/lib/browser/restore-message-EHSQSLM3.mjs +42 -0
- package/dist/lib/browser/restore-message-EHSQSLM3.mjs.map +7 -0
- package/dist/lib/browser/select-GKW3QALS.mjs +26 -0
- package/dist/lib/browser/select-GKW3QALS.mjs.map +7 -0
- package/dist/lib/browser/toggle-resolved-Y5KJLQO3.mjs +45 -0
- package/dist/lib/browser/toggle-resolved-Y5KJLQO3.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +6 -8
- package/dist/lib/node-esm/add-message-R3XLXRZ5.mjs +98 -0
- package/dist/lib/node-esm/add-message-R3XLXRZ5.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +38 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-BAKHDRSB.mjs +260 -0
- package/dist/lib/node-esm/chunk-BAKHDRSB.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-M6EZRL5B.mjs +62 -0
- package/dist/lib/node-esm/chunk-M6EZRL5B.mjs.map +7 -0
- package/dist/lib/node-esm/create-SKEKGLSD.mjs +56 -0
- package/dist/lib/node-esm/create-SKEKGLSD.mjs.map +7 -0
- package/dist/lib/node-esm/create-channel-4UICXKGI.mjs +22 -0
- package/dist/lib/node-esm/create-channel-4UICXKGI.mjs.map +7 -0
- package/dist/lib/node-esm/create-channel-thread-EWDR3J44.mjs +29 -0
- package/dist/lib/node-esm/create-channel-thread-EWDR3J44.mjs.map +7 -0
- package/dist/lib/node-esm/create-proposals-SASCDSNZ.mjs +58 -0
- package/dist/lib/node-esm/create-proposals-SASCDSNZ.mjs.map +7 -0
- package/dist/lib/node-esm/delete-IGQXPUHX.mjs +60 -0
- package/dist/lib/node-esm/delete-IGQXPUHX.mjs.map +7 -0
- package/dist/lib/node-esm/delete-message-IEJYQNZY.mjs +65 -0
- package/dist/lib/node-esm/delete-message-IEJYQNZY.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +2250 -229
- 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-UGALNIWK.mjs +26 -0
- package/dist/lib/node-esm/on-create-space-UGALNIWK.mjs.map +7 -0
- package/dist/lib/node-esm/operations/index.mjs +15 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/restore-4EAMGSOF.mjs +34 -0
- package/dist/lib/node-esm/restore-4EAMGSOF.mjs.map +7 -0
- package/dist/lib/node-esm/restore-message-2Z6KR3RJ.mjs +43 -0
- package/dist/lib/node-esm/restore-message-2Z6KR3RJ.mjs.map +7 -0
- package/dist/lib/node-esm/select-MLVUUPYK.mjs +27 -0
- package/dist/lib/node-esm/select-MLVUUPYK.mjs.map +7 -0
- package/dist/lib/node-esm/toggle-resolved-Y2FRSWZ3.mjs +46 -0
- package/dist/lib/node-esm/toggle-resolved-Y2FRSWZ3.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +6 -8
- 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/calls-service.stories.d.ts +2 -2
- package/dist/types/src/calls-service.stories.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +6 -0
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/call-manager.d.ts +3 -2
- package/dist/types/src/capabilities/call-manager.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +13 -14
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown.d.ts +3 -2
- package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-root.d.ts +4 -2
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +4 -2
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts +5 -5
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/undo-mappings.d.ts +5 -0
- package/dist/types/src/capabilities/undo-mappings.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 +1 -1
- package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts +13 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts +160 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts +14 -0
- package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/index.d.ts +3 -0
- package/dist/types/src/components/CommentsPanel/index.d.ts.map +1 -0
- 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/MessagePanel/MessagePanel.d.ts +15 -0
- package/dist/types/src/components/MessagePanel/MessagePanel.d.ts.map +1 -0
- package/dist/types/src/components/MessagePanel/index.d.ts +2 -0
- package/dist/types/src/components/MessagePanel/index.d.ts.map +1 -0
- package/dist/types/src/components/Participant/Participant.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +142 -140
- 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/{ResponsiveContainer.d.ts → ResponsivePanel.d.ts} +4 -4
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts.map +1 -0
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts +164 -0
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts.map +1 -0
- package/dist/types/src/components/ResponsiveGrid/index.d.ts +1 -1
- package/dist/types/src/components/ResponsiveGrid/index.d.ts.map +1 -1
- package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts +6 -0
- package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts.map +1 -0
- package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts +161 -0
- package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts.map +1 -0
- package/dist/types/src/components/ThreadSettings/index.d.ts +3 -0
- package/dist/types/src/components/ThreadSettings/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +4 -9
- package/dist/types/src/components/index.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/containers/ChannelContainer/ChannelContainer.stories.d.ts +162 -0
- 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 +20 -0
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +1 -0
- package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts +162 -0
- package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ChatContainer/index.d.ts +4 -0
- package/dist/types/src/containers/ChatContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts +8 -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/index.d.ts +7 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/{components/command-extension.d.ts → extensions/command.d.ts} +1 -1
- package/dist/types/src/extensions/command.d.ts.map +1 -0
- package/dist/types/src/extensions/index.d.ts +1 -0
- package/dist/types/src/extensions/index.d.ts.map +1 -1
- package/dist/types/src/extensions/threads.d.ts +8 -3
- package/dist/types/src/extensions/threads.d.ts.map +1 -1
- 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/operations/add-message.d.ts +5 -0
- package/dist/types/src/operations/add-message.d.ts.map +1 -0
- package/dist/types/src/operations/create-channel-thread.d.ts +5 -0
- package/dist/types/src/operations/create-channel-thread.d.ts.map +1 -0
- package/dist/types/src/operations/create-channel.d.ts +5 -0
- package/dist/types/src/operations/create-channel.d.ts.map +1 -0
- package/dist/types/src/operations/create-proposals.d.ts +5 -0
- package/dist/types/src/operations/create-proposals.d.ts.map +1 -0
- package/dist/types/src/operations/create.d.ts +5 -0
- package/dist/types/src/operations/create.d.ts.map +1 -0
- package/dist/types/src/operations/definitions.d.ts +2789 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/delete-message.d.ts +5 -0
- package/dist/types/src/operations/delete-message.d.ts.map +1 -0
- package/dist/types/src/operations/delete.d.ts +5 -0
- package/dist/types/src/operations/delete.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/on-create-space.d.ts +5 -0
- package/dist/types/src/operations/on-create-space.d.ts.map +1 -0
- package/dist/types/src/operations/restore-message.d.ts +5 -0
- package/dist/types/src/operations/restore-message.d.ts.map +1 -0
- package/dist/types/src/operations/restore.d.ts +5 -0
- package/dist/types/src/operations/restore.d.ts.map +1 -0
- package/dist/types/src/operations/select.d.ts +5 -0
- package/dist/types/src/operations/select.d.ts.map +1 -0
- package/dist/types/src/operations/toggle-resolved.d.ts +5 -0
- package/dist/types/src/operations/toggle-resolved.d.ts.map +1 -0
- package/dist/types/src/{components/testing.d.ts → testing/data.d.ts} +2 -2
- package/dist/types/src/testing/data.d.ts.map +1 -0
- 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 +140 -138
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Channel.d.ts +707 -12
- package/dist/types/src/types/Channel.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +4 -0
- package/dist/types/src/types/Settings.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 +1 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +3 -443
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +108 -65
- package/src/ThreadPlugin.tsx +78 -112
- package/src/blueprints/index.ts +5 -0
- package/src/blueprints/thread-blueprint.ts +37 -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 +8 -8
- package/src/capabilities/app-graph-builder.ts +171 -165
- package/src/capabilities/blueprint-definition.ts +17 -0
- package/src/capabilities/call-manager.ts +18 -12
- package/src/capabilities/index.ts +15 -12
- package/src/capabilities/markdown.ts +49 -37
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-root.tsx +12 -9
- package/src/capabilities/react-surface.tsx +83 -77
- package/src/capabilities/settings.ts +27 -12
- package/src/capabilities/state.ts +14 -18
- package/src/capabilities/undo-mappings.ts +46 -0
- package/src/components/Call/Call.tsx +10 -6
- package/src/components/Call/Toolbar.tsx +57 -40
- package/src/components/CommentsPanel/CommentsPanel.stories.tsx +94 -0
- package/src/components/{CommentsContainer.tsx → CommentsPanel/CommentsPanel.tsx} +19 -20
- package/src/components/{CommentsThreadContainer.tsx → CommentsPanel/CommentsThread.tsx} +43 -45
- package/src/components/CommentsPanel/index.ts +6 -0
- package/src/components/Lobby/Lobby.tsx +14 -12
- package/src/components/Media/AudioStream.tsx +2 -2
- package/src/components/Media/VideoObject.stories.tsx +6 -6
- package/src/components/Media/VideoObject.tsx +1 -1
- package/src/components/{MessageContainer.tsx → MessagePanel/MessagePanel.tsx} +71 -40
- package/src/components/MessagePanel/index.ts +5 -0
- package/src/components/Participant/Participant.tsx +32 -19
- package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +5 -5
- package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +5 -5
- package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +12 -9
- package/src/components/ResponsiveGrid/{ResponsiveContainer.stories.tsx → ResponsivePanel.stories.tsx} +7 -7
- package/src/components/ResponsiveGrid/{ResponsiveContainer.tsx → ResponsivePanel.tsx} +5 -5
- package/src/components/ResponsiveGrid/index.ts +1 -1
- package/src/components/ThreadSettings/ThreadSettings.stories.tsx +32 -0
- package/src/components/ThreadSettings/ThreadSettings.tsx +20 -0
- package/src/components/ThreadSettings/index.ts +7 -0
- package/src/components/index.ts +5 -12
- package/src/{components → containers/CallDebugPanel}/CallDebugPanel.tsx +14 -16
- 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/containers/ChannelContainer/ChannelContainer.stories.tsx +59 -0
- package/src/{components → containers/ChannelContainer}/ChannelContainer.tsx +94 -76
- package/src/containers/ChannelContainer/index.ts +7 -0
- package/src/{components/Chat.stories.tsx → containers/ChatContainer/ChatContainer.stories.tsx} +21 -19
- package/src/containers/ChatContainer/ChatContainer.tsx +130 -0
- package/src/containers/ChatContainer/index.ts +8 -0
- package/src/containers/ThreadCompanion/ThreadCompanion.tsx +217 -0
- package/src/containers/ThreadCompanion/index.ts +7 -0
- package/src/containers/index.ts +11 -0
- package/src/{components/command-extension.ts → extensions/command.ts} +3 -3
- package/src/extensions/index.ts +1 -0
- package/src/extensions/threads.ts +83 -38
- package/src/hooks/analytics.ts +22 -21
- package/src/hooks/index.ts +3 -2
- package/src/index.ts +1 -1
- package/src/meta.ts +4 -4
- package/src/operations/add-message.ts +82 -0
- package/src/operations/create-channel-thread.ts +26 -0
- package/src/operations/create-channel.ts +21 -0
- package/src/operations/create-proposals.ts +49 -0
- package/src/operations/create.ts +49 -0
- package/src/operations/definitions.ts +177 -0
- package/src/operations/delete-message.ts +53 -0
- package/src/operations/delete.ts +64 -0
- package/src/operations/index.ts +22 -0
- package/src/operations/on-create-space.ts +27 -0
- package/src/operations/restore-message.ts +38 -0
- package/src/operations/restore.ts +38 -0
- package/src/operations/select.ts +25 -0
- package/src/operations/toggle-resolved.ts +41 -0
- package/src/{components/testing.ts → testing/data.ts} +3 -5
- package/src/testing/stories.ts +16 -17
- package/src/translations.ts +72 -74
- package/src/types/Channel.ts +21 -11
- package/src/types/Settings.ts +10 -0
- package/src/types/capabilities.ts +35 -0
- package/src/types/index.ts +1 -1
- package/src/types/types.ts +4 -108
- package/src/util.ts +1 -1
- package/dist/lib/browser/ChannelContainer-SVV4ZX5T.mjs +0 -16
- package/dist/lib/browser/ChatContainer-ALFWQ65B.mjs +0 -15
- package/dist/lib/browser/app-graph-builder-ACBXRBOS.mjs +0 -171
- package/dist/lib/browser/app-graph-builder-ACBXRBOS.mjs.map +0 -7
- package/dist/lib/browser/call-manager-P3MYR2JS.mjs +0 -24
- package/dist/lib/browser/call-manager-P3MYR2JS.mjs.map +0 -7
- package/dist/lib/browser/chunk-6CUDBEYP.mjs +0 -377
- package/dist/lib/browser/chunk-6CUDBEYP.mjs.map +0 -7
- package/dist/lib/browser/chunk-BBTXGRIR.mjs +0 -18
- package/dist/lib/browser/chunk-BBTXGRIR.mjs.map +0 -7
- package/dist/lib/browser/chunk-CP7E2HRE.mjs +0 -31
- package/dist/lib/browser/chunk-CP7E2HRE.mjs.map +0 -7
- package/dist/lib/browser/chunk-DJOUMWEL.mjs +0 -988
- package/dist/lib/browser/chunk-DJOUMWEL.mjs.map +0 -7
- package/dist/lib/browser/chunk-HDEQRBOC.mjs +0 -181
- package/dist/lib/browser/chunk-HDEQRBOC.mjs.map +0 -7
- package/dist/lib/browser/chunk-IQSXEHOW.mjs +0 -618
- package/dist/lib/browser/chunk-IQSXEHOW.mjs.map +0 -7
- package/dist/lib/browser/chunk-K2DUJRFJ.mjs +0 -27
- package/dist/lib/browser/chunk-K2DUJRFJ.mjs.map +0 -7
- package/dist/lib/browser/chunk-L6F2AG6W.mjs +0 -23
- package/dist/lib/browser/chunk-L6F2AG6W.mjs.map +0 -7
- package/dist/lib/browser/chunk-US5ZQYC3.mjs +0 -1793
- package/dist/lib/browser/chunk-US5ZQYC3.mjs.map +0 -7
- package/dist/lib/browser/chunk-UTSLSZED.mjs +0 -178
- package/dist/lib/browser/chunk-UTSLSZED.mjs.map +0 -7
- package/dist/lib/browser/chunk-XYUJXHYV.mjs +0 -106
- package/dist/lib/browser/chunk-XYUJXHYV.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-5POQTZ24.mjs +0 -419
- package/dist/lib/browser/intent-resolver-5POQTZ24.mjs.map +0 -7
- package/dist/lib/browser/markdown-L7LDNF56.mjs +0 -169
- package/dist/lib/browser/markdown-L7LDNF56.mjs.map +0 -7
- package/dist/lib/browser/react-root-RCJLK4EP.mjs +0 -28
- package/dist/lib/browser/react-root-RCJLK4EP.mjs.map +0 -7
- package/dist/lib/browser/react-surface-IC576W2W.mjs +0 -109
- package/dist/lib/browser/react-surface-IC576W2W.mjs.map +0 -7
- package/dist/lib/browser/settings-5FYGBOGI.mjs +0 -22
- package/dist/lib/browser/settings-5FYGBOGI.mjs.map +0 -7
- package/dist/lib/browser/state-36REWXO5.mjs +0 -34
- package/dist/lib/browser/state-36REWXO5.mjs.map +0 -7
- package/dist/lib/browser/toolkit-PXASLYEQ.mjs +0 -74
- package/dist/lib/browser/toolkit-PXASLYEQ.mjs.map +0 -7
- package/dist/lib/node-esm/ChannelContainer-63GMQ753.mjs +0 -17
- package/dist/lib/node-esm/ChannelContainer-63GMQ753.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-MFKPXMIK.mjs +0 -16
- package/dist/lib/node-esm/ChatContainer-MFKPXMIK.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-JXD7KY3G.mjs +0 -172
- package/dist/lib/node-esm/app-graph-builder-JXD7KY3G.mjs.map +0 -7
- package/dist/lib/node-esm/call-manager-FCEFP7EJ.mjs +0 -25
- package/dist/lib/node-esm/call-manager-FCEFP7EJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2MMJF7DW.mjs +0 -182
- package/dist/lib/node-esm/chunk-2MMJF7DW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2V3WSLUZ.mjs +0 -108
- package/dist/lib/node-esm/chunk-2V3WSLUZ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ABUFOZVX.mjs +0 -33
- package/dist/lib/node-esm/chunk-ABUFOZVX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-AFDO2SUZ.mjs +0 -25
- package/dist/lib/node-esm/chunk-AFDO2SUZ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KGYDYYKJ.mjs +0 -1794
- package/dist/lib/node-esm/chunk-KGYDYYKJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NWUUMKVQ.mjs +0 -378
- package/dist/lib/node-esm/chunk-NWUUMKVQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-Q7AKKZNY.mjs +0 -619
- package/dist/lib/node-esm/chunk-Q7AKKZNY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QCQAAU6J.mjs +0 -989
- package/dist/lib/node-esm/chunk-QCQAAU6J.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TYLLHI46.mjs +0 -179
- package/dist/lib/node-esm/chunk-TYLLHI46.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XI45H4IV.mjs +0 -28
- package/dist/lib/node-esm/chunk-XI45H4IV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ZQAGII7M.mjs +0 -19
- package/dist/lib/node-esm/chunk-ZQAGII7M.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-63NV3XD2.mjs +0 -420
- package/dist/lib/node-esm/intent-resolver-63NV3XD2.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-ZQW7MI5U.mjs +0 -170
- package/dist/lib/node-esm/markdown-ZQW7MI5U.mjs.map +0 -7
- package/dist/lib/node-esm/react-root-4IDB2SN2.mjs +0 -29
- package/dist/lib/node-esm/react-root-4IDB2SN2.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-O4LGTAZ3.mjs +0 -110
- package/dist/lib/node-esm/react-surface-O4LGTAZ3.mjs.map +0 -7
- package/dist/lib/node-esm/settings-EOBQUZSW.mjs +0 -23
- package/dist/lib/node-esm/settings-EOBQUZSW.mjs.map +0 -7
- package/dist/lib/node-esm/state-X3W67GTL.mjs +0 -35
- package/dist/lib/node-esm/state-X3W67GTL.mjs.map +0 -7
- package/dist/lib/node-esm/toolkit-X2KA4FNC.mjs +0 -75
- package/dist/lib/node-esm/toolkit-X2KA4FNC.mjs.map +0 -7
- 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/toolkit.d.ts +0 -24
- 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 +0 -160
- package/dist/types/src/components/ChannelContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/Chat.stories.d.ts +0 -160
- package/dist/types/src/components/Chat.stories.d.ts.map +0 -1
- package/dist/types/src/components/ChatContainer.d.ts +0 -18
- package/dist/types/src/components/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/components/Comments.stories.d.ts +0 -158
- package/dist/types/src/components/Comments.stories.d.ts.map +0 -1
- package/dist/types/src/components/CommentsContainer.d.ts +0 -13
- package/dist/types/src/components/CommentsContainer.d.ts.map +0 -1
- package/dist/types/src/components/CommentsThreadContainer.d.ts +0 -14
- package/dist/types/src/components/CommentsThreadContainer.d.ts.map +0 -1
- package/dist/types/src/components/MessageContainer.d.ts +0 -14
- package/dist/types/src/components/MessageContainer.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts +0 -162
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.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/components/command-extension.d.ts.map +0 -1
- package/dist/types/src/components/testing.d.ts.map +0 -1
- package/dist/types/src/types/Thread.d.ts +0 -167
- package/dist/types/src/types/Thread.d.ts.map +0 -1
- package/src/capabilities/capabilities.ts +0 -33
- package/src/capabilities/intent-resolver.ts +0 -344
- package/src/capabilities/toolkit.ts +0 -85
- package/src/components/CallSidebar.tsx +0 -18
- package/src/components/ChannelContainer.stories.tsx +0 -59
- package/src/components/ChatContainer.tsx +0 -154
- package/src/components/Comments.stories.tsx +0 -91
- package/src/components/ThreadComplementary.tsx +0 -181
- package/src/components/ThreadSettings.tsx +0 -16
- package/src/types/Thread.ts +0 -26
- /package/dist/lib/browser/{ChannelContainer-SVV4ZX5T.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/{browser/ChatContainer-ALFWQ65B.mjs.map → node-esm/chunk-HSLMI22Q.mjs.map} +0 -0
package/src/testing/stories.ts
CHANGED
|
@@ -2,27 +2,29 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
6
8
|
import { ClientPlugin } from '@dxos/plugin-client';
|
|
7
|
-
import { GraphPlugin } from '@dxos/plugin-graph';
|
|
8
9
|
import { SpacePlugin } from '@dxos/plugin-space';
|
|
9
|
-
import { ThemePlugin } from '@dxos/plugin-theme';
|
|
10
10
|
import { Config } from '@dxos/react-client';
|
|
11
|
-
import {
|
|
11
|
+
import { corePlugins } from '@dxos/plugin-testing';
|
|
12
12
|
|
|
13
13
|
import { ThreadPlugin } from '../ThreadPlugin';
|
|
14
|
-
import { Channel } from '
|
|
14
|
+
import { Channel } from '#types';
|
|
15
15
|
|
|
16
|
-
export const createThreadPlugins = async () => [
|
|
17
|
-
|
|
16
|
+
export const createThreadPlugins = async (): Promise<Array<Plugin.Plugin>> => [
|
|
17
|
+
...corePlugins(),
|
|
18
18
|
ClientPlugin({
|
|
19
|
-
onClientInitialized:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
onClientInitialized: ({ client }) =>
|
|
20
|
+
Effect.gen(function* () {
|
|
21
|
+
yield* Effect.promise(() => client.halo.createIdentity({ displayName: 'Test User' }));
|
|
22
|
+
}),
|
|
23
|
+
onSpacesReady: ({ client }) =>
|
|
24
|
+
Effect.gen(function* () {
|
|
25
|
+
const space = client.spaces.get()[0];
|
|
26
|
+
space.db.add(Channel.make());
|
|
27
|
+
}),
|
|
26
28
|
config: new Config({
|
|
27
29
|
runtime: {
|
|
28
30
|
client: {
|
|
@@ -44,8 +46,5 @@ export const createThreadPlugins = async () => [
|
|
|
44
46
|
}),
|
|
45
47
|
}),
|
|
46
48
|
SpacePlugin({}),
|
|
47
|
-
IntentPlugin(),
|
|
48
|
-
SettingsPlugin(),
|
|
49
|
-
GraphPlugin(),
|
|
50
49
|
ThreadPlugin(),
|
|
51
50
|
];
|
package/src/translations.ts
CHANGED
|
@@ -5,94 +5,92 @@
|
|
|
5
5
|
import { Type } from '@dxos/echo';
|
|
6
6
|
import { type Resource } from '@dxos/react-ui';
|
|
7
7
|
|
|
8
|
-
import { meta } from '
|
|
9
|
-
import { Channel } from '
|
|
8
|
+
import { meta } from '#meta';
|
|
9
|
+
import { Channel } from '#types';
|
|
10
10
|
|
|
11
11
|
export const translations = [
|
|
12
12
|
{
|
|
13
13
|
'en-US': {
|
|
14
14
|
[Type.getTypename(Channel.Channel)]: {
|
|
15
|
-
'typename
|
|
16
|
-
'typename
|
|
17
|
-
'typename
|
|
18
|
-
'typename
|
|
19
|
-
'object
|
|
20
|
-
'
|
|
21
|
-
'
|
|
15
|
+
'typename.label': 'Channel',
|
|
16
|
+
'typename.label_zero': 'Channels',
|
|
17
|
+
'typename.label_one': 'Channel',
|
|
18
|
+
'typename.label_other': 'Channels',
|
|
19
|
+
'object-name.placeholder': 'New channel',
|
|
20
|
+
'add-object.label': 'Add channel',
|
|
21
|
+
'rename-object.label': 'Rename channel',
|
|
22
|
+
'delete-object.label': 'Delete channel',
|
|
23
|
+
'object-deleted.label': 'Channel deleted',
|
|
22
24
|
},
|
|
23
25
|
[meta.id]: {
|
|
24
|
-
'plugin
|
|
25
|
-
'channel
|
|
26
|
-
'message
|
|
27
|
-
'activity
|
|
28
|
-
'anonymous
|
|
29
|
-
'delete
|
|
30
|
-
'detached
|
|
31
|
-
'delete
|
|
32
|
-
'resolve
|
|
33
|
-
'thread
|
|
34
|
-
'message
|
|
35
|
-
'comments
|
|
36
|
-
'chat
|
|
37
|
-
'draft
|
|
38
|
-
'no
|
|
39
|
-
'no
|
|
26
|
+
'plugin.name': 'Chat',
|
|
27
|
+
'channel-title.label': 'Title',
|
|
28
|
+
'message.placeholder': 'Reply…',
|
|
29
|
+
'activity.message': 'Processing…',
|
|
30
|
+
'anonymous.label': 'Anonymous',
|
|
31
|
+
'delete-message-block.label': 'Delete message block',
|
|
32
|
+
'detached-thread.label': 'Referenced content was removed',
|
|
33
|
+
'delete-thread.label': 'Delete thread',
|
|
34
|
+
'resolve-thread.label': 'Resolve thread',
|
|
35
|
+
'thread-deleted.label': 'Thread deleted',
|
|
36
|
+
'message-deleted.label': 'Message deleted',
|
|
37
|
+
'comments.heading': 'Comments',
|
|
38
|
+
'chat.heading': 'Chat',
|
|
39
|
+
'draft.button': 'DRAFT',
|
|
40
|
+
'no-comments.title': 'Comments',
|
|
41
|
+
'no-comments.message':
|
|
40
42
|
'Click on the <commentIcon></commentIcon> button in the document toolbar to create a comment thread on the selected text.',
|
|
41
|
-
'toggle
|
|
42
|
-
'unnamed
|
|
43
|
-
'mark
|
|
44
|
-
'mark
|
|
45
|
-
'save
|
|
46
|
-
'edit
|
|
47
|
-
'delete
|
|
48
|
-
'accept
|
|
49
|
-
'open
|
|
50
|
-
'comments
|
|
51
|
-
'show
|
|
52
|
-
'show
|
|
43
|
+
'toggle-show-resolved.label': 'Show resolved',
|
|
44
|
+
'unnamed-object-threads.label': 'Threads',
|
|
45
|
+
'mark-as-resolved.label': 'Mark as resolved',
|
|
46
|
+
'mark-as-unresolved.label': 'Mark as unresolved',
|
|
47
|
+
'save-message.label': 'Save',
|
|
48
|
+
'edit-message.label': 'Edit',
|
|
49
|
+
'delete-message.label': 'Delete message',
|
|
50
|
+
'accept-proposal.label': 'Accept proposal',
|
|
51
|
+
'open-comments-panel.label': 'Show Comments',
|
|
52
|
+
'comments.label': 'Comments',
|
|
53
|
+
'show-all.label': 'All comments',
|
|
54
|
+
'show-unresolved.label': 'Unresolved comments',
|
|
55
|
+
'add-comment.label': 'Add comment',
|
|
53
56
|
|
|
54
|
-
'channel
|
|
55
|
-
'call
|
|
57
|
+
'channel-companion.label': 'Channel',
|
|
58
|
+
'call-panel.label': 'Active Call',
|
|
56
59
|
|
|
57
|
-
'display
|
|
58
|
-
'display
|
|
59
|
-
'display
|
|
60
|
-
'set
|
|
60
|
+
'display-name.label': 'Display name',
|
|
61
|
+
'display-name.description': 'Set your display name before joining a meeting.',
|
|
62
|
+
'display-name-input.placeholder': 'Enter your name',
|
|
63
|
+
'set-display-name.label': 'Continue',
|
|
61
64
|
|
|
62
|
-
'call
|
|
63
|
-
'meeting
|
|
64
|
-
'share
|
|
65
|
-
'show
|
|
66
|
-
'show
|
|
65
|
+
'call-tab.label': 'Call',
|
|
66
|
+
'meeting-status.title': 'Calls',
|
|
67
|
+
'share-meeting-link.label': 'Share meeting',
|
|
68
|
+
'show-webrtc-stats.title': 'WebRTC Stats',
|
|
69
|
+
'show-calls-history.title': 'Service History',
|
|
67
70
|
|
|
68
|
-
'meeting
|
|
69
|
-
'summarize
|
|
70
|
-
'summarizing
|
|
71
|
-
'create
|
|
71
|
+
'meeting-summary.label': 'Summary',
|
|
72
|
+
'summarize.label': 'Summarize',
|
|
73
|
+
'summarizing.label': 'Creating summary...',
|
|
74
|
+
'create-summary.message': 'A summary doesn’t exist for this meeting yet. Create one now?',
|
|
72
75
|
|
|
73
|
-
'
|
|
74
|
-
'
|
|
76
|
+
'icon-pin.label': 'Pin video',
|
|
77
|
+
'icon-unpin.label': 'Unpin video',
|
|
78
|
+
'icon-wave.label': 'Waving',
|
|
79
|
+
'icon-muted.label': 'Muted',
|
|
80
|
+
'join-call.button': 'Join',
|
|
81
|
+
'leave-call.button': 'Leave',
|
|
82
|
+
'mic-on.button': 'Unmute',
|
|
83
|
+
'mic-off.button': 'Mute',
|
|
84
|
+
'camera-on.button': 'Turn camera on',
|
|
85
|
+
'camera-off.button': 'Turn camera off',
|
|
86
|
+
'camera-off.label': 'Camera off',
|
|
87
|
+
'raise-hand.button': 'Raise hand',
|
|
88
|
+
'lower-hand.button': 'Lower hand',
|
|
89
|
+
'screenshare-on.button': 'Share screen',
|
|
90
|
+
'screenshare-off.button': 'Stop streaming',
|
|
75
91
|
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'lobby participants_other': '{{count}} participants',
|
|
79
|
-
|
|
80
|
-
'icon pin': 'Pin video',
|
|
81
|
-
'icon unpin': 'Unpin video',
|
|
82
|
-
'icon wave': 'Waving',
|
|
83
|
-
'icon muted': 'Muted',
|
|
84
|
-
'icon speaking': 'Speaking',
|
|
85
|
-
|
|
86
|
-
'mic on': 'Unmute',
|
|
87
|
-
'mic off': 'Mute',
|
|
88
|
-
'camera on': 'Turn camera on',
|
|
89
|
-
'camera off': 'Turn camera off',
|
|
90
|
-
'camera off label': 'Camera off',
|
|
91
|
-
|
|
92
|
-
'raise hand': 'Raise hand',
|
|
93
|
-
'lower hand': 'Lower hand',
|
|
94
|
-
'screenshare on': 'Share screen',
|
|
95
|
-
'screenshare off': 'Stop streaming',
|
|
92
|
+
'channel-toolbar.title': 'Channel actions',
|
|
93
|
+
'start-video-call.menu': 'Start video call',
|
|
96
94
|
},
|
|
97
95
|
},
|
|
98
96
|
},
|
package/src/types/Channel.ts
CHANGED
|
@@ -2,22 +2,32 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
// @import-as-namespace
|
|
6
6
|
|
|
7
|
-
import
|
|
8
|
-
import { FormAnnotation } from '@dxos/echo/internal';
|
|
7
|
+
import * as Schema from 'effect/Schema';
|
|
9
8
|
|
|
10
|
-
import
|
|
9
|
+
import { Annotation, Obj, Ref, Type } from '@dxos/echo';
|
|
10
|
+
import { FormInputAnnotation } from '@dxos/echo/internal';
|
|
11
|
+
import { Thread } from '@dxos/types';
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
// TODO(burdon): What is the difference between Thread and Channel.
|
|
14
|
+
export const Channel = Schema.Struct({
|
|
13
15
|
name: Schema.optional(Schema.String),
|
|
14
|
-
defaultThread:
|
|
16
|
+
defaultThread: Ref.Ref(Thread.Thread).pipe(FormInputAnnotation.set(false)),
|
|
15
17
|
// TODO(wittjosiah): Should be an "ordered collection".
|
|
16
|
-
threads:
|
|
17
|
-
}).pipe(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
threads: Ref.Ref(Thread.Thread).pipe(Schema.Array, FormInputAnnotation.set(false)),
|
|
19
|
+
}).pipe(
|
|
20
|
+
Type.object({
|
|
21
|
+
typename: 'org.dxos.type.channel',
|
|
22
|
+
version: '0.1.0',
|
|
23
|
+
}),
|
|
24
|
+
Annotation.IconAnnotation.set({
|
|
25
|
+
icon: 'ph--hash--regular',
|
|
26
|
+
hue: 'rose',
|
|
27
|
+
}),
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
export interface Channel extends Schema.Schema.Type<typeof Channel> {}
|
|
21
31
|
|
|
22
32
|
export const make = (props: Pick<Obj.MakeProps<typeof Channel>, 'name'> = {}) =>
|
|
23
33
|
Obj.make(Channel, {
|
|
@@ -0,0 +1,35 @@
|
|
|
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 ThreadState, type ViewStore } from '../types';
|
|
12
|
+
import * as Settings from './Settings';
|
|
13
|
+
|
|
14
|
+
export namespace ThreadCapabilities {
|
|
15
|
+
export const Settings = Capability.make<Atom.Writable<Settings.Settings>>(`${meta.id}.capability.settings`);
|
|
16
|
+
export const CallManager = Capability.make<CallManager>(`${meta.id}.capability.call-manager`);
|
|
17
|
+
|
|
18
|
+
// TODO(burdon): Better way to define specific extensions for meeting companions.
|
|
19
|
+
// TODO(burdon): This brings in deps from ../calls; how should we manage/minimize explicit type exposure to other plugins?
|
|
20
|
+
// TODO(wittjosiah): These callbacks could be intents once we support broadcast.
|
|
21
|
+
export type CallProperties = {
|
|
22
|
+
onJoin: (state: { channel?: Channel.Channel; roomId?: string }) => Promise<void>;
|
|
23
|
+
onLeave: (roomId?: string) => Promise<void>;
|
|
24
|
+
onCallStateUpdated: (callState: CallState) => Promise<void>;
|
|
25
|
+
onMediaStateUpdated: ([mediaState, isSpeaking]: [MediaState, boolean]) => Promise<void>;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const CallExtension = Capability.make<CallProperties>(`${meta.id}.capability.call-extension`);
|
|
29
|
+
|
|
30
|
+
/** Thread state (drafts, toolbar state, current selection). */
|
|
31
|
+
export const State = Capability.make<Atom.Writable<ThreadState>>(`${meta.id}.capability.state`);
|
|
32
|
+
|
|
33
|
+
/** Per-subject view state (e.g., showResolvedThreads). */
|
|
34
|
+
export const ViewState = Capability.make<Atom.Writable<ViewStore>>(`${meta.id}.capability.view-state`);
|
|
35
|
+
}
|
package/src/types/index.ts
CHANGED
package/src/types/types.ts
CHANGED
|
@@ -2,114 +2,9 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import { AnchoredTo, Thread } from '@dxos/types';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
import { EchoObjectSchema, SpaceSchema } from '@dxos/react-client/echo';
|
|
9
|
-
import { AnchoredTo, DataType } from '@dxos/schema';
|
|
10
|
-
|
|
11
|
-
import { meta } from '../meta';
|
|
12
|
-
|
|
13
|
-
import * as Channel from './Channel';
|
|
14
|
-
import * as Thread from './Thread';
|
|
15
|
-
|
|
16
|
-
export namespace ThreadAction {
|
|
17
|
-
export class onCreateSpace extends Schema.TaggedClass<onCreateSpace>()(`${meta.id}/action/on-space-created`, {
|
|
18
|
-
input: Schema.Struct({
|
|
19
|
-
space: SpaceSchema,
|
|
20
|
-
rootCollection: DataType.Collection,
|
|
21
|
-
}),
|
|
22
|
-
output: Schema.Void,
|
|
23
|
-
}) {}
|
|
24
|
-
|
|
25
|
-
export class CreateChannel extends Schema.TaggedClass<CreateChannel>()(`${meta.id}/action/create-channel`, {
|
|
26
|
-
input: Schema.Struct({
|
|
27
|
-
spaceId: Type.SpaceId,
|
|
28
|
-
name: Schema.optional(Schema.String),
|
|
29
|
-
}),
|
|
30
|
-
output: Schema.Struct({
|
|
31
|
-
object: Channel.Channel,
|
|
32
|
-
}),
|
|
33
|
-
}) {}
|
|
34
|
-
|
|
35
|
-
export class CreateChannelThread extends Schema.TaggedClass<CreateChannelThread>()(
|
|
36
|
-
`${meta.id}/action/create-channel-thread`,
|
|
37
|
-
{
|
|
38
|
-
input: Schema.Struct({
|
|
39
|
-
channel: Channel.Channel,
|
|
40
|
-
}),
|
|
41
|
-
output: Schema.Struct({
|
|
42
|
-
object: Thread.Thread,
|
|
43
|
-
}),
|
|
44
|
-
},
|
|
45
|
-
) {}
|
|
46
|
-
|
|
47
|
-
export class Create extends Schema.TaggedClass<Create>()(`${meta.id}/action/create`, {
|
|
48
|
-
input: Schema.Struct({
|
|
49
|
-
name: Schema.optional(Schema.String),
|
|
50
|
-
anchor: Schema.optional(Schema.String),
|
|
51
|
-
subject: EchoObjectSchema,
|
|
52
|
-
}),
|
|
53
|
-
output: Schema.Void,
|
|
54
|
-
}) {}
|
|
55
|
-
|
|
56
|
-
export class Delete extends Schema.TaggedClass<Delete>()(`${meta.id}/action/delete`, {
|
|
57
|
-
input: Schema.Struct({
|
|
58
|
-
anchor: AnchoredTo,
|
|
59
|
-
subject: EchoObjectSchema,
|
|
60
|
-
thread: Schema.optional(Thread.Thread),
|
|
61
|
-
}),
|
|
62
|
-
output: Schema.Void,
|
|
63
|
-
}) {}
|
|
64
|
-
|
|
65
|
-
export class Select extends Schema.TaggedClass<Select>()(`${meta.id}/action/select`, {
|
|
66
|
-
input: Schema.Struct({
|
|
67
|
-
current: Schema.String,
|
|
68
|
-
}),
|
|
69
|
-
output: Schema.Void,
|
|
70
|
-
}) {}
|
|
71
|
-
|
|
72
|
-
export class ToggleResolved extends Schema.TaggedClass<ToggleResolved>()(`${meta.id}/action/toggle-resolved`, {
|
|
73
|
-
input: Schema.Struct({
|
|
74
|
-
thread: Thread.Thread,
|
|
75
|
-
}),
|
|
76
|
-
output: Schema.Void,
|
|
77
|
-
}) {}
|
|
78
|
-
|
|
79
|
-
export class AddProposal extends Schema.TaggedClass<AddProposal>()(`${meta.id}/action/add-proposal`, {
|
|
80
|
-
input: Schema.Struct({
|
|
81
|
-
text: Schema.String,
|
|
82
|
-
anchor: Schema.String,
|
|
83
|
-
sender: DataType.Actor,
|
|
84
|
-
subject: EchoObjectSchema,
|
|
85
|
-
}),
|
|
86
|
-
output: Schema.Void,
|
|
87
|
-
}) {}
|
|
88
|
-
|
|
89
|
-
export class AddMessage extends Schema.TaggedClass<AddMessage>()(`${meta.id}/action/add-message`, {
|
|
90
|
-
input: Schema.Struct({
|
|
91
|
-
subject: EchoObjectSchema,
|
|
92
|
-
anchor: AnchoredTo,
|
|
93
|
-
sender: DataType.Actor,
|
|
94
|
-
text: Schema.String,
|
|
95
|
-
}),
|
|
96
|
-
output: Schema.Void,
|
|
97
|
-
}) {}
|
|
98
|
-
|
|
99
|
-
export class DeleteMessage extends Schema.TaggedClass<DeleteMessage>()(`${meta.id}/action/delete-message`, {
|
|
100
|
-
input: Schema.Struct({
|
|
101
|
-
anchor: AnchoredTo,
|
|
102
|
-
subject: EchoObjectSchema,
|
|
103
|
-
messageId: Schema.String,
|
|
104
|
-
message: Schema.optional(DataType.Message),
|
|
105
|
-
messageIndex: Schema.optional(Schema.Number),
|
|
106
|
-
}),
|
|
107
|
-
output: Schema.Void,
|
|
108
|
-
}) {}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export const ThreadSettingsSchema = Schema.mutable(Schema.Struct({}));
|
|
112
|
-
export type ThreadSettingsProps = Schema.Schema.Type<typeof ThreadSettingsSchema>;
|
|
7
|
+
export * as Settings from './Settings';
|
|
113
8
|
|
|
114
9
|
export interface ThreadModel {
|
|
115
10
|
root: Thread.Thread;
|
|
@@ -123,6 +18,7 @@ export type ThreadState = {
|
|
|
123
18
|
/** Object toolbar state. */
|
|
124
19
|
toolbar: Record<string, boolean>;
|
|
125
20
|
/** In-memory draft threads. */
|
|
126
|
-
|
|
21
|
+
// TODO(burdon): Drafts are getting lost.
|
|
22
|
+
drafts: Record<string, AnchoredTo.AnchoredTo[]>;
|
|
127
23
|
current?: string | undefined;
|
|
128
24
|
};
|
package/src/util.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as Match from 'effect/Match';
|
|
6
6
|
|
|
7
7
|
import { generateName } from '@dxos/display-name';
|
|
8
|
-
import { type Selection } from '@dxos/
|
|
8
|
+
import { type Selection } from '@dxos/react-ui-attention';
|
|
9
9
|
import { type PublicKey } from '@dxos/react-client';
|
|
10
10
|
import { type Identity } from '@dxos/react-client/halo';
|
|
11
11
|
import { type MessageMetadata } from '@dxos/react-ui-thread';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChannelContainer,
|
|
3
|
-
ChannelContainer_default
|
|
4
|
-
} from "./chunk-DJOUMWEL.mjs";
|
|
5
|
-
import "./chunk-L6F2AG6W.mjs";
|
|
6
|
-
import "./chunk-BBTXGRIR.mjs";
|
|
7
|
-
import "./chunk-6CUDBEYP.mjs";
|
|
8
|
-
import "./chunk-HDEQRBOC.mjs";
|
|
9
|
-
import "./chunk-CP7E2HRE.mjs";
|
|
10
|
-
import "./chunk-XYUJXHYV.mjs";
|
|
11
|
-
import "./chunk-K2DUJRFJ.mjs";
|
|
12
|
-
export {
|
|
13
|
-
ChannelContainer,
|
|
14
|
-
ChannelContainer_default as default
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=ChannelContainer-SVV4ZX5T.mjs.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChatContainer,
|
|
3
|
-
ChatContainer_default,
|
|
4
|
-
ChatHeading
|
|
5
|
-
} from "./chunk-6CUDBEYP.mjs";
|
|
6
|
-
import "./chunk-HDEQRBOC.mjs";
|
|
7
|
-
import "./chunk-CP7E2HRE.mjs";
|
|
8
|
-
import "./chunk-XYUJXHYV.mjs";
|
|
9
|
-
import "./chunk-K2DUJRFJ.mjs";
|
|
10
|
-
export {
|
|
11
|
-
ChatContainer,
|
|
12
|
-
ChatHeading,
|
|
13
|
-
ChatContainer_default as default
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=ChatContainer-ALFWQ65B.mjs.map
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Channel_exports,
|
|
3
|
-
ThreadAction
|
|
4
|
-
} from "./chunk-UTSLSZED.mjs";
|
|
5
|
-
import {
|
|
6
|
-
ThreadCapabilities
|
|
7
|
-
} from "./chunk-BBTXGRIR.mjs";
|
|
8
|
-
import {
|
|
9
|
-
getAnchor
|
|
10
|
-
} from "./chunk-CP7E2HRE.mjs";
|
|
11
|
-
import {
|
|
12
|
-
meta
|
|
13
|
-
} from "./chunk-K2DUJRFJ.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(Channel_exports.Channel, 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(Channel_exports.Channel, 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(Channel_exports.Channel, 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-ACBXRBOS.mjs.map
|