@dxos/plugin-thread 0.8.4-main.4a85c3132b → 0.8.4-main.4f23b4e393
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 → neutral/CallDebugPanel-CXWTCS7A.mjs} +7 -17
- package/dist/lib/neutral/CallDebugPanel-CXWTCS7A.mjs.map +7 -0
- package/dist/lib/neutral/CallSidebar-4USJZ2SB.mjs +25 -0
- package/dist/lib/neutral/CallSidebar-4USJZ2SB.mjs.map +7 -0
- package/dist/lib/neutral/ChannelChat-6YTD5HWL.mjs +10 -0
- package/dist/lib/neutral/ChannelContainer-XHBF2NCK.mjs +9 -0
- package/dist/lib/{browser/ThreadCompanion-2CMLJH76.mjs → neutral/ThreadCompanion-NQWPS2H6.mjs} +44 -40
- package/dist/lib/neutral/ThreadCompanion-NQWPS2H6.mjs.map +7 -0
- package/dist/lib/neutral/ThreadContainer-XYEPEOSD.mjs +61 -0
- package/dist/lib/neutral/ThreadContainer-XYEPEOSD.mjs.map +7 -0
- package/dist/lib/neutral/ThreadPlugin.mjs +89 -0
- package/dist/lib/neutral/ThreadPlugin.mjs.map +7 -0
- package/dist/lib/neutral/ThreadPlugin.node.mjs +40 -0
- package/dist/lib/neutral/ThreadPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/ThreadSettings-5Z5XIHG3.mjs +15 -0
- package/dist/lib/neutral/ThreadSettings-5Z5XIHG3.mjs.map +7 -0
- package/dist/lib/neutral/add-message-HV5R66K4.mjs +87 -0
- package/dist/lib/neutral/add-message-HV5R66K4.mjs.map +7 -0
- package/dist/lib/{browser/app-graph-builder-5LCAM746.mjs → neutral/app-graph-builder-JDLHZ4XO.mjs} +68 -86
- package/dist/lib/neutral/app-graph-builder-JDLHZ4XO.mjs.map +7 -0
- package/dist/lib/neutral/append-channel-message-PO33DR5V.mjs +40 -0
- package/dist/lib/neutral/append-channel-message-PO33DR5V.mjs.map +7 -0
- package/dist/lib/{browser/blueprint-definition-42M2EJ2Y.mjs → neutral/blueprint-definition-S3EBOH4R.mjs} +4 -6
- package/dist/lib/neutral/blueprint-definition-S3EBOH4R.mjs.map +7 -0
- package/dist/lib/{browser → neutral}/blueprints/index.mjs +1 -1
- package/dist/lib/{browser/call-manager-2PRP4QVZ.mjs → neutral/call-manager-JFA4DLWR.mjs} +5 -8
- package/dist/lib/neutral/call-manager-JFA4DLWR.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +29 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/{browser/chunk-LUK4UNFA.mjs → neutral/chunk-44D7D4ZX.mjs} +3 -3
- package/dist/lib/{browser/chunk-LUK4UNFA.mjs.map → neutral/chunk-44D7D4ZX.mjs.map} +3 -3
- package/dist/lib/neutral/chunk-5T5LPLBN.mjs +36 -0
- package/dist/lib/neutral/chunk-5T5LPLBN.mjs.map +7 -0
- package/dist/lib/{browser/chunk-ISCHODBV.mjs → neutral/chunk-CROE4U4O.mjs} +5 -11
- package/dist/lib/neutral/chunk-CROE4U4O.mjs.map +7 -0
- package/dist/lib/neutral/chunk-D5LGFCUY.mjs +55 -0
- package/dist/lib/neutral/chunk-D5LGFCUY.mjs.map +7 -0
- package/dist/lib/{browser/chunk-HDLDMR54.mjs → neutral/chunk-FWSMZWBO.mjs} +5 -11
- package/dist/lib/neutral/chunk-FWSMZWBO.mjs.map +7 -0
- package/dist/lib/{node-esm/chunk-ABUFOZVX.mjs → neutral/chunk-JLY4NVTA.mjs} +12 -7
- package/dist/lib/neutral/chunk-JLY4NVTA.mjs.map +7 -0
- package/dist/lib/{browser/markdown-GRRPCZHJ.mjs → neutral/chunk-KRXHIW4P.mjs} +44 -90
- package/dist/lib/neutral/chunk-KRXHIW4P.mjs.map +7 -0
- package/dist/lib/neutral/chunk-MXJYXUS2.mjs +8 -0
- package/dist/lib/neutral/chunk-MXJYXUS2.mjs.map +7 -0
- package/dist/lib/neutral/chunk-OZRSYMYO.mjs +275 -0
- package/dist/lib/neutral/chunk-OZRSYMYO.mjs.map +7 -0
- package/dist/lib/{browser/chunk-ERK254BS.mjs → neutral/chunk-PZ7WTAA2.mjs} +54 -342
- package/dist/lib/neutral/chunk-PZ7WTAA2.mjs.map +7 -0
- package/dist/lib/{browser/chunk-PDHCY236.mjs → neutral/chunk-S2AKEA2K.mjs} +34 -55
- package/dist/lib/neutral/chunk-S2AKEA2K.mjs.map +7 -0
- package/dist/lib/{node-esm/chunk-IQUV7DR6.mjs → neutral/components/index.mjs} +259 -153
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +19 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/create-C3CICN35.mjs +52 -0
- package/dist/lib/neutral/create-C3CICN35.mjs.map +7 -0
- package/dist/lib/neutral/create-channel-UEQESOFT.mjs +19 -0
- package/dist/lib/neutral/create-channel-UEQESOFT.mjs.map +7 -0
- package/dist/lib/neutral/create-object-HIEWSBZB.mjs +27 -0
- package/dist/lib/neutral/create-object-HIEWSBZB.mjs.map +7 -0
- package/dist/lib/neutral/create-proposals-OZ4NCBBS.mjs +56 -0
- package/dist/lib/neutral/create-proposals-OZ4NCBBS.mjs.map +7 -0
- package/dist/lib/neutral/delete-AVFYFWMY.mjs +57 -0
- package/dist/lib/neutral/delete-AVFYFWMY.mjs.map +7 -0
- package/dist/lib/neutral/delete-message-EV2MKRTB.mjs +54 -0
- package/dist/lib/neutral/delete-message-EV2MKRTB.mjs.map +7 -0
- package/dist/lib/neutral/hooks/index.mjs +19 -0
- package/dist/lib/neutral/index.mjs +68 -0
- package/dist/lib/neutral/markdown-BUORNCPG.mjs +83 -0
- package/dist/lib/neutral/markdown-BUORNCPG.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +10 -0
- package/dist/lib/neutral/on-create-space-NQF7WGEB.mjs +23 -0
- package/dist/lib/neutral/on-create-space-NQF7WGEB.mjs.map +7 -0
- package/dist/lib/neutral/operation-handler-RU6K2S4L.mjs +13 -0
- package/dist/lib/neutral/operation-handler-RU6K2S4L.mjs.map +7 -0
- package/dist/lib/neutral/operations/index.mjs +8 -0
- package/dist/lib/neutral/plugin.mjs +16 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/{browser/react-root-7UFFPPRD.mjs → neutral/react-root-VMMNUSSL.mjs} +4 -12
- package/dist/lib/neutral/react-root-VMMNUSSL.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-WPSVOTVG.mjs +94 -0
- package/dist/lib/neutral/react-surface-WPSVOTVG.mjs.map +7 -0
- package/dist/lib/neutral/restore-MGLYOJ3Y.mjs +32 -0
- package/dist/lib/neutral/restore-MGLYOJ3Y.mjs.map +7 -0
- package/dist/lib/neutral/restore-message-ZIOA2MQJ.mjs +33 -0
- package/dist/lib/neutral/restore-message-ZIOA2MQJ.mjs.map +7 -0
- package/dist/lib/neutral/select-CVCGBDHA.mjs +24 -0
- package/dist/lib/neutral/select-CVCGBDHA.mjs.map +7 -0
- package/dist/lib/{browser/settings-Y75FG6XR.mjs → neutral/settings-HK4EB6TF.mjs} +6 -11
- package/dist/lib/neutral/settings-HK4EB6TF.mjs.map +7 -0
- package/dist/lib/{browser/state-OBTMMEUZ.mjs → neutral/state-UU7VEAKV.mjs} +3 -6
- package/dist/lib/neutral/state-UU7VEAKV.mjs.map +7 -0
- package/dist/lib/neutral/testing/index.mjs +58 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/lib/neutral/toggle-resolved-ZM4BHON5.mjs +36 -0
- package/dist/lib/neutral/toggle-resolved-ZM4BHON5.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +90 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +12 -0
- package/dist/lib/neutral/undo-mappings-HOKL2L3M.mjs +54 -0
- package/dist/lib/neutral/undo-mappings-HOKL2L3M.mjs.map +7 -0
- package/dist/types/src/ThreadPlugin.d.ts +1 -0
- package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
- package/dist/types/src/ThreadPlugin.node.d.ts +4 -0
- package/dist/types/src/ThreadPlugin.node.d.ts.map +1 -0
- package/dist/types/src/ThreadPlugin.test.d.ts +2 -0
- package/dist/types/src/ThreadPlugin.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/thread-blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -1
- package/dist/types/src/calls/call-manager.d.ts.map +1 -1
- package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +1 -1
- package/dist/types/src/calls/media-manager.d.ts.map +1 -1
- package/dist/types/src/calls/speaking-monitor.d.ts +0 -3
- package/dist/types/src/calls/speaking-monitor.d.ts.map +1 -1
- package/dist/types/src/calls/types.d.ts.map +1 -1
- package/dist/types/src/calls/util/audio.d.ts.map +1 -1
- package/dist/types/src/calls/util/calls-service.d.ts +2 -2
- package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
- package/dist/types/src/calls/util/history-cache.d.ts.map +1 -1
- package/dist/types/src/calls/util/media.d.ts.map +1 -1
- package/dist/types/src/calls/util/stub-media-streams.d.ts.map +1 -1
- package/dist/types/src/calls/util/task-scheduling.d.ts.map +1 -1
- package/dist/types/src/calls-service.stories.d.ts +2 -2
- package/dist/types/src/calls-service.stories.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- 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/call-manager.d.ts → call-manager.d.ts} +1 -1
- package/dist/types/src/capabilities/call-manager.d.ts.map +1 -0
- package/dist/types/src/capabilities/create-object.d.ts +11 -0
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +21 -10
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown.d.ts.map +1 -0
- 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.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/{settings/settings.d.ts → settings.d.ts} +2 -1
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/{state/state.d.ts → state.d.ts} +1 -1
- package/dist/types/src/capabilities/state.d.ts.map +1 -0
- 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 +32 -4
- package/dist/types/src/components/Call/Call.d.ts.map +1 -1
- package/dist/types/src/components/Call/Toolbar.d.ts +5 -5
- package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/Chat/Chat.d.ts +51 -0
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -0
- package/dist/types/src/components/Chat/index.d.ts +2 -0
- package/dist/types/src/components/Chat/index.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts +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/{CommentsThreadContainer.d.ts → CommentsPanel/CommentsThread.d.ts} +3 -3
- 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 +24 -3
- package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -1
- package/dist/types/src/components/Media/VideoObject.d.ts +1 -1
- package/dist/types/src/components/Media/VideoObject.stories.d.ts +1 -1
- package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +1 -1
- package/dist/types/src/components/{MessageContainer.d.ts → MessagePanel/MessagePanel.d.ts} +3 -3
- 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/Participant/ParticipantGrid.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +142 -144
- 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 +2 -0
- package/dist/types/src/components/ThreadSettings/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +5 -3
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts.map +1 -1
- package/dist/types/src/containers/CallDebugPanel/index.d.ts +1 -2
- package/dist/types/src/containers/CallDebugPanel/index.d.ts.map +1 -1
- package/dist/types/src/containers/CallSidebar/CallSidebar.d.ts.map +1 -1
- package/dist/types/src/containers/CallSidebar/index.d.ts +1 -2
- package/dist/types/src/containers/CallSidebar/index.d.ts.map +1 -1
- package/dist/types/src/containers/ChannelChat/ChannelChat.d.ts +20 -0
- package/dist/types/src/containers/ChannelChat/ChannelChat.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelChat/index.d.ts +4 -0
- package/dist/types/src/containers/ChannelChat/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts +4 -4
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +1 -1
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts +142 -144
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ChannelContainer/index.d.ts +1 -2
- package/dist/types/src/containers/ChannelContainer/index.d.ts.map +1 -1
- package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts +6 -3
- package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts.map +1 -1
- package/dist/types/src/containers/ThreadCompanion/index.d.ts +1 -2
- package/dist/types/src/containers/ThreadCompanion/index.d.ts.map +1 -1
- package/dist/types/src/containers/ThreadContainer/ThreadContainer.d.ts +20 -0
- package/dist/types/src/containers/ThreadContainer/ThreadContainer.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadContainer/ThreadContainer.stories.d.ts +162 -0
- package/dist/types/src/containers/ThreadContainer/ThreadContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadContainer/index.d.ts +4 -0
- package/dist/types/src/containers/ThreadContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +2 -2
- package/dist/types/src/containers/index.d.ts.map +1 -1
- 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 +4 -4
- package/dist/types/src/extensions/threads.d.ts.map +1 -1
- package/dist/types/src/hooks/analytics.d.ts.map +1 -1
- package/dist/types/src/hooks/useStatus.d.ts.map +1 -1
- package/dist/types/src/hooks/useVideoStreamTrack.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -2
- package/dist/types/src/index.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/append-channel-message.d.ts +5 -0
- package/dist/types/src/operations/append-channel-message.d.ts.map +1 -0
- package/dist/types/src/operations/create-channel.d.ts +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/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 +3 -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/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/{components/testing.d.ts → testing/data.d.ts} +1 -1
- package/dist/types/src/testing/data.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +1 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +140 -142
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +5 -0
- package/dist/types/src/types/Settings.d.ts.map +1 -0
- package/dist/types/src/types/ThreadCapabilities.d.ts +26 -0
- package/dist/types/src/types/ThreadCapabilities.d.ts.map +1 -0
- package/dist/types/src/types/ThreadOperation.d.ts +1995 -0
- package/dist/types/src/types/ThreadOperation.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +3 -2
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +0 -3303
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +6 -3
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +129 -84
- package/src/ThreadPlugin.node.ts +39 -0
- package/src/ThreadPlugin.test.ts +37 -0
- package/src/ThreadPlugin.tsx +16 -51
- package/src/blueprints/thread-blueprint.ts +5 -9
- package/src/calls/util/calls-service.ts +3 -2
- package/src/calls/util/stub-media-streams.ts +3 -1
- package/src/calls-service.stories.tsx +8 -7
- package/src/capabilities/{app-graph-builder/app-graph-builder.ts → app-graph-builder.ts} +52 -59
- package/src/capabilities/{blueprint-definition/blueprint-definition.ts → blueprint-definition.ts} +3 -1
- package/src/capabilities/{call-manager/call-manager.ts → call-manager.ts} +3 -2
- package/src/capabilities/create-object.ts +29 -0
- package/src/capabilities/index.ts +18 -10
- package/src/capabilities/{markdown/markdown.ts → markdown.ts} +16 -12
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/{react-root/react-root.tsx → react-root.tsx} +2 -2
- package/src/capabilities/react-surface.tsx +97 -0
- package/src/capabilities/{settings/settings.ts → settings.ts} +4 -5
- package/src/capabilities/{state/state.ts → state.ts} +1 -1
- package/src/capabilities/undo-mappings.ts +46 -0
- package/src/components/Call/Call.tsx +9 -9
- package/src/components/Call/Toolbar.tsx +24 -14
- package/src/components/Chat/Chat.tsx +258 -0
- package/src/components/Chat/index.ts +5 -0
- package/src/components/{Comments.stories.tsx → CommentsPanel/CommentsPanel.stories.tsx} +15 -14
- package/src/components/{CommentsContainer.tsx → CommentsPanel/CommentsPanel.tsx} +10 -10
- package/src/components/{CommentsThreadContainer.tsx → CommentsPanel/CommentsThread.tsx} +18 -19
- package/src/components/CommentsPanel/index.ts +6 -0
- package/src/components/Lobby/Lobby.tsx +12 -10
- package/src/components/Media/VideoObject.stories.tsx +3 -4
- package/src/components/{MessageContainer.tsx → MessagePanel/MessagePanel.tsx} +24 -19
- package/src/components/MessagePanel/index.ts +5 -0
- package/src/components/Participant/Participant.tsx +2 -1
- package/src/components/Participant/ParticipantGrid.tsx +0 -1
- package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +7 -7
- package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +4 -4
- package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +5 -5
- package/src/components/ResponsiveGrid/{ResponsiveContainer.stories.tsx → ResponsivePanel.stories.tsx} +7 -7
- package/src/components/ResponsiveGrid/{ResponsiveContainer.tsx → ResponsivePanel.tsx} +6 -8
- 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 +5 -0
- package/src/components/index.ts +7 -3
- package/src/containers/CallDebugPanel/CallDebugPanel.tsx +5 -4
- package/src/containers/CallDebugPanel/index.ts +1 -3
- package/src/containers/CallSidebar/CallSidebar.tsx +3 -2
- package/src/containers/CallSidebar/index.ts +1 -3
- package/src/containers/ChannelChat/ChannelChat.tsx +75 -0
- package/src/containers/ChannelChat/index.ts +8 -0
- package/src/containers/ChannelContainer/ChannelContainer.stories.tsx +59 -14
- package/src/containers/ChannelContainer/ChannelContainer.tsx +44 -38
- package/src/containers/ChannelContainer/index.ts +1 -3
- package/src/containers/ThreadCompanion/ThreadCompanion.tsx +47 -29
- package/src/containers/ThreadCompanion/index.ts +1 -3
- package/src/containers/{ChatContainer/ChatContainer.stories.tsx → ThreadContainer/ThreadContainer.stories.tsx} +17 -19
- package/src/containers/ThreadContainer/ThreadContainer.tsx +75 -0
- package/src/containers/ThreadContainer/index.ts +8 -0
- package/src/containers/index.ts +2 -2
- package/src/{components/command-extension.ts → extensions/command.ts} +1 -1
- package/src/extensions/index.ts +1 -0
- package/src/extensions/threads.ts +16 -15
- package/src/hooks/analytics.ts +1 -1
- package/src/index.ts +4 -3
- package/src/meta.ts +2 -2
- package/src/operations/add-message.ts +81 -0
- package/src/operations/append-channel-message.ts +37 -0
- package/src/operations/create-channel.ts +20 -0
- package/src/operations/create-proposals.ts +49 -0
- package/src/operations/create.ts +48 -0
- package/src/operations/delete-message.ts +53 -0
- package/src/operations/delete.ts +63 -0
- package/src/operations/index.ts +20 -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 +24 -0
- package/src/operations/toggle-resolved.ts +41 -0
- package/src/plugin.ts +11 -0
- package/src/{components/testing.ts → testing/data.ts} +7 -7
- package/src/testing/index.ts +1 -1
- package/src/translations.ts +72 -76
- package/src/types/Settings.ts +10 -0
- package/src/types/ThreadCapabilities.ts +41 -0
- package/src/types/ThreadOperation.ts +178 -0
- package/src/types/index.ts +4 -2
- package/src/types/types.ts +1 -185
- package/src/util.ts +37 -5
- package/dist/lib/browser/CallDebugPanel-FGCTY7Q4.mjs.map +0 -7
- package/dist/lib/browser/CallSidebar-PJCMNDIF.mjs +0 -33
- package/dist/lib/browser/CallSidebar-PJCMNDIF.mjs.map +0 -7
- package/dist/lib/browser/ChannelContainer-EPYG4QAC.mjs +0 -15
- package/dist/lib/browser/ChatContainer-2243UD2M.mjs +0 -14
- package/dist/lib/browser/ThreadCompanion-2CMLJH76.mjs.map +0 -7
- package/dist/lib/browser/ThreadSettings-S55YVOGA.mjs +0 -20
- package/dist/lib/browser/ThreadSettings-S55YVOGA.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-5LCAM746.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-42M2EJ2Y.mjs.map +0 -7
- package/dist/lib/browser/call-manager-2PRP4QVZ.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-ERK254BS.mjs.map +0 -7
- package/dist/lib/browser/chunk-G6FJBSXX.mjs +0 -1123
- package/dist/lib/browser/chunk-G6FJBSXX.mjs.map +0 -7
- package/dist/lib/browser/chunk-HDLDMR54.mjs.map +0 -7
- package/dist/lib/browser/chunk-ISCHODBV.mjs.map +0 -7
- package/dist/lib/browser/chunk-PDHCY236.mjs.map +0 -7
- package/dist/lib/browser/chunk-PL5LIVP4.mjs +0 -105
- package/dist/lib/browser/chunk-PL5LIVP4.mjs.map +0 -7
- package/dist/lib/browser/chunk-U32R23JO.mjs +0 -277
- package/dist/lib/browser/chunk-U32R23JO.mjs.map +0 -7
- package/dist/lib/browser/chunk-UVUCB7QO.mjs +0 -125
- package/dist/lib/browser/chunk-UVUCB7QO.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -308
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/markdown-GRRPCZHJ.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/operation-resolver-EP7FAYEB.mjs +0 -442
- package/dist/lib/browser/operation-resolver-EP7FAYEB.mjs.map +0 -7
- package/dist/lib/browser/react-root-7UFFPPRD.mjs.map +0 -7
- package/dist/lib/browser/react-surface-TIHBSZPD.mjs +0 -113
- package/dist/lib/browser/react-surface-TIHBSZPD.mjs.map +0 -7
- package/dist/lib/browser/repair-TBU45SBG.mjs +0 -40
- package/dist/lib/browser/repair-TBU45SBG.mjs.map +0 -7
- package/dist/lib/browser/settings-Y75FG6XR.mjs.map +0 -7
- package/dist/lib/browser/state-OBTMMEUZ.mjs.map +0 -7
- package/dist/lib/browser/types/index.mjs +0 -15
- package/dist/lib/node-esm/CallDebugPanel-CYACANSP.mjs +0 -183
- package/dist/lib/node-esm/CallDebugPanel-CYACANSP.mjs.map +0 -7
- package/dist/lib/node-esm/CallSidebar-XD7J7EQ6.mjs +0 -34
- package/dist/lib/node-esm/CallSidebar-XD7J7EQ6.mjs.map +0 -7
- package/dist/lib/node-esm/ChannelContainer-NU4LSLB4.mjs +0 -16
- package/dist/lib/node-esm/ChatContainer-FPNIG33R.mjs +0 -15
- package/dist/lib/node-esm/ThreadCompanion-TLWTONG6.mjs +0 -205
- package/dist/lib/node-esm/ThreadCompanion-TLWTONG6.mjs.map +0 -7
- package/dist/lib/node-esm/ThreadSettings-EUH4AGYV.mjs +0 -21
- package/dist/lib/node-esm/ThreadSettings-EUH4AGYV.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-VBLHLX75.mjs +0 -192
- package/dist/lib/node-esm/app-graph-builder-VBLHLX75.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-PEXTS56K.mjs +0 -18
- package/dist/lib/node-esm/blueprint-definition-PEXTS56K.mjs.map +0 -7
- package/dist/lib/node-esm/blueprints/index.mjs +0 -9
- package/dist/lib/node-esm/call-manager-BLQCEM2F.mjs +0 -28
- package/dist/lib/node-esm/call-manager-BLQCEM2F.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6K5ACCGB.mjs +0 -107
- package/dist/lib/node-esm/chunk-6K5ACCGB.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-7SZBKQUU.mjs +0 -224
- package/dist/lib/node-esm/chunk-7SZBKQUU.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ABUFOZVX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GPPP2MZ3.mjs +0 -22
- package/dist/lib/node-esm/chunk-GPPP2MZ3.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-IQUV7DR6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QP3KQOPQ.mjs +0 -1811
- package/dist/lib/node-esm/chunk-QP3KQOPQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QYAVWNVM.mjs +0 -278
- package/dist/lib/node-esm/chunk-QYAVWNVM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-V2GXQ2UB.mjs +0 -126
- package/dist/lib/node-esm/chunk-V2GXQ2UB.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-VBI32FGI.mjs +0 -108
- package/dist/lib/node-esm/chunk-VBI32FGI.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YN2Y7GPW.mjs +0 -185
- package/dist/lib/node-esm/chunk-YN2Y7GPW.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -309
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-WHWUESF7.mjs +0 -211
- package/dist/lib/node-esm/markdown-WHWUESF7.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/operation-resolver-R7QJW3TW.mjs +0 -443
- package/dist/lib/node-esm/operation-resolver-R7QJW3TW.mjs.map +0 -7
- package/dist/lib/node-esm/react-root-D7CWS5XP.mjs +0 -27
- package/dist/lib/node-esm/react-root-D7CWS5XP.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-WWZFSK5Y.mjs +0 -114
- package/dist/lib/node-esm/react-surface-WWZFSK5Y.mjs.map +0 -7
- package/dist/lib/node-esm/repair-7JEKRNR3.mjs +0 -41
- package/dist/lib/node-esm/repair-7JEKRNR3.mjs.map +0 -7
- package/dist/lib/node-esm/settings-W4JN2YKJ.mjs +0 -36
- package/dist/lib/node-esm/settings-W4JN2YKJ.mjs.map +0 -7
- package/dist/lib/node-esm/state-7UWCSIWQ.mjs +0 -26
- package/dist/lib/node-esm/state-7UWCSIWQ.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -16
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +0 -6
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +0 -1
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +0 -3
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/call-manager/call-manager.d.ts.map +0 -1
- package/dist/types/src/capabilities/call-manager/index.d.ts +0 -3
- package/dist/types/src/capabilities/call-manager/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/markdown/index.d.ts +0 -3
- package/dist/types/src/capabilities/markdown/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/markdown/markdown.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-root/index.d.ts +0 -6
- package/dist/types/src/capabilities/react-root/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-root/react-root.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/repair/index.d.ts +0 -3
- package/dist/types/src/capabilities/repair/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/repair/repair.d.ts +0 -6
- package/dist/types/src/capabilities/repair/repair.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/index.d.ts +0 -3
- package/dist/types/src/capabilities/settings/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/settings.d.ts.map +0 -1
- package/dist/types/src/capabilities/state/index.d.ts +0 -3
- package/dist/types/src/capabilities/state/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/state/state.d.ts.map +0 -1
- package/dist/types/src/components/Comments.stories.d.ts +0 -162
- 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.map +0 -1
- 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 -166
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.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/containers/ChatContainer/ChatContainer.d.ts +0 -17
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts +0 -164
- package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +0 -1
- package/dist/types/src/containers/ChatContainer/index.d.ts +0 -3
- package/dist/types/src/containers/ChatContainer/index.d.ts.map +0 -1
- package/dist/types/src/containers/ThreadSettings/ThreadSettings.d.ts +0 -8
- package/dist/types/src/containers/ThreadSettings/ThreadSettings.d.ts.map +0 -1
- package/dist/types/src/containers/ThreadSettings/index.d.ts +0 -3
- package/dist/types/src/containers/ThreadSettings/index.d.ts.map +0 -1
- package/dist/types/src/functions/create-proposals.d.ts +0 -13
- package/dist/types/src/functions/create-proposals.d.ts.map +0 -1
- package/dist/types/src/functions/index.d.ts +0 -14
- package/dist/types/src/functions/index.d.ts.map +0 -1
- package/dist/types/src/testing/stories.d.ts +0 -3
- package/dist/types/src/testing/stories.d.ts.map +0 -1
- package/dist/types/src/types/Channel.d.ts +0 -711
- package/dist/types/src/types/Channel.d.ts.map +0 -1
- package/dist/types/src/types/capabilities.d.ts +0 -23
- package/dist/types/src/types/capabilities.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder/index.ts +0 -7
- package/src/capabilities/blueprint-definition/index.ts +0 -7
- package/src/capabilities/call-manager/index.ts +0 -7
- package/src/capabilities/markdown/index.ts +0 -7
- package/src/capabilities/operation-resolver/index.ts +0 -7
- package/src/capabilities/operation-resolver/operation-resolver.ts +0 -399
- package/src/capabilities/react-root/index.ts +0 -7
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/react-surface/react-surface.tsx +0 -98
- package/src/capabilities/repair/index.ts +0 -7
- package/src/capabilities/repair/repair.ts +0 -55
- package/src/capabilities/settings/index.ts +0 -7
- package/src/capabilities/state/index.ts +0 -7
- package/src/containers/ChatContainer/ChatContainer.tsx +0 -149
- package/src/containers/ChatContainer/index.ts +0 -7
- package/src/containers/ThreadSettings/ThreadSettings.tsx +0 -22
- package/src/containers/ThreadSettings/index.ts +0 -7
- package/src/functions/create-proposals.ts +0 -57
- package/src/functions/index.ts +0 -9
- package/src/testing/stories.ts +0 -56
- package/src/types/Channel.ts +0 -30
- package/src/types/capabilities.ts +0 -34
- /package/dist/lib/{browser/ChannelContainer-EPYG4QAC.mjs.map → neutral/ChannelChat-6YTD5HWL.mjs.map} +0 -0
- /package/dist/lib/{browser/ChatContainer-2243UD2M.mjs.map → neutral/ChannelContainer-XHBF2NCK.mjs.map} +0 -0
- /package/dist/lib/{browser → neutral}/blueprints/index.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs.map +0 -0
- /package/dist/lib/{browser/types → neutral/hooks}/index.mjs.map +0 -0
- /package/dist/lib/{node-esm/blueprints → neutral}/index.mjs.map +0 -0
- /package/dist/lib/{node-esm/ChannelContainer-NU4LSLB4.mjs.map → neutral/meta.mjs.map} +0 -0
- /package/dist/lib/{node-esm/types → neutral/operations}/index.mjs.map +0 -0
- /package/dist/lib/{node-esm/ChatContainer-FPNIG33R.mjs.map → neutral/types/index.mjs.map} +0 -0
- /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
- /package/dist/types/src/capabilities/{markdown/markdown.d.ts → markdown.d.ts} +0 -0
- /package/dist/types/src/capabilities/{react-root/react-root.d.ts → react-root.d.ts} +0 -0
- /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
|
@@ -7,17 +7,20 @@ import * as Effect from 'effect/Effect';
|
|
|
7
7
|
import * as Option from 'effect/Option';
|
|
8
8
|
|
|
9
9
|
import { Capability } from '@dxos/app-framework';
|
|
10
|
-
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
10
|
+
import { AppCapabilities, AppNode } from '@dxos/app-toolkit';
|
|
11
|
+
import { Operation } from '@dxos/compute';
|
|
11
12
|
import { Obj } from '@dxos/echo';
|
|
12
|
-
import { Operation } from '@dxos/operation';
|
|
13
13
|
import { AttentionCapabilities } from '@dxos/plugin-attention';
|
|
14
|
-
import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
|
|
15
14
|
import { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';
|
|
15
|
+
import { linkedSegment } from '@dxos/react-ui-attention';
|
|
16
16
|
import { type SelectionManager, type SelectionMode, defaultSelection } from '@dxos/react-ui-attention';
|
|
17
|
+
import { Channel } from '@dxos/types';
|
|
17
18
|
|
|
18
|
-
import { meta } from '
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
19
|
+
import { meta } from '#meta';
|
|
20
|
+
import { ThreadOperation } from '#types';
|
|
21
|
+
import { ThreadCapabilities, type ThreadState } from '#types';
|
|
22
|
+
|
|
23
|
+
import { getAnchor } from '../util';
|
|
21
24
|
|
|
22
25
|
type CommentDisabledParams = {
|
|
23
26
|
stateAtom: Atom.Atom<Atom.Writable<ThreadState>[]>;
|
|
@@ -59,12 +62,12 @@ export default Capability.makeModule(
|
|
|
59
62
|
Effect.fnUntraced(function* () {
|
|
60
63
|
const capabilities = yield* Capability.Service;
|
|
61
64
|
|
|
62
|
-
const
|
|
63
|
-
capabilities.getAll(AppCapabilities.
|
|
65
|
+
const getCommentConfig = (typename: string) =>
|
|
66
|
+
capabilities.getAll(AppCapabilities.CommentConfig).find(({ id }) => id === typename);
|
|
64
67
|
|
|
65
68
|
const extensions = yield* Effect.all([
|
|
66
69
|
GraphBuilder.createExtension({
|
|
67
|
-
id:
|
|
70
|
+
id: 'active-call',
|
|
68
71
|
match: NodeMatcher.whenRoot,
|
|
69
72
|
connector: (node, get) => {
|
|
70
73
|
const callManagerAtom = capabilities.atom(ThreadCapabilities.CallManager);
|
|
@@ -77,24 +80,20 @@ export default Capability.makeModule(
|
|
|
77
80
|
return Effect.succeed(
|
|
78
81
|
joined
|
|
79
82
|
? [
|
|
80
|
-
{
|
|
81
|
-
id:
|
|
82
|
-
|
|
83
|
+
AppNode.makeDeckCompanion({
|
|
84
|
+
id: 'active-call',
|
|
85
|
+
label: ['call-panel.label', { ns: meta.id }],
|
|
86
|
+
icon: 'ph--video-conference--regular',
|
|
83
87
|
data: null,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
icon: 'ph--video-conference--regular',
|
|
87
|
-
position: 'hoist',
|
|
88
|
-
disposition: 'hidden',
|
|
89
|
-
},
|
|
90
|
-
},
|
|
88
|
+
position: 'hoist',
|
|
89
|
+
}),
|
|
91
90
|
]
|
|
92
91
|
: [],
|
|
93
92
|
);
|
|
94
93
|
},
|
|
95
94
|
}),
|
|
96
95
|
GraphBuilder.createTypeExtension({
|
|
97
|
-
id:
|
|
96
|
+
id: 'channel-chat-companion',
|
|
98
97
|
type: Channel.Channel,
|
|
99
98
|
connector: (channel, get) => {
|
|
100
99
|
const callManager = capabilities.get(ThreadCapabilities.CallManager);
|
|
@@ -107,77 +106,71 @@ export default Capability.makeModule(
|
|
|
107
106
|
}
|
|
108
107
|
|
|
109
108
|
return Effect.succeed([
|
|
110
|
-
{
|
|
111
|
-
id:
|
|
112
|
-
|
|
109
|
+
AppNode.makeCompanion({
|
|
110
|
+
id: 'chat',
|
|
111
|
+
label: ['channel-companion.label', { ns: meta.id }],
|
|
112
|
+
icon: 'ph--hash--regular',
|
|
113
113
|
data: 'chat',
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
icon: 'ph--hash--regular',
|
|
117
|
-
position: 'hoist',
|
|
118
|
-
disposition: 'hidden',
|
|
119
|
-
},
|
|
120
|
-
},
|
|
114
|
+
position: 'hoist',
|
|
115
|
+
}),
|
|
121
116
|
]);
|
|
122
117
|
},
|
|
123
118
|
}),
|
|
124
119
|
GraphBuilder.createExtension({
|
|
125
|
-
id:
|
|
120
|
+
id: 'comments-companion',
|
|
126
121
|
match: (node) => {
|
|
127
122
|
if (!Obj.isObject(node.data) || Option.isNone(whenCommentableObject(node))) {
|
|
128
123
|
return Option.none();
|
|
129
124
|
}
|
|
130
|
-
const
|
|
131
|
-
return
|
|
125
|
+
const commentConfig = getCommentConfig(Obj.getTypename(node.data)!);
|
|
126
|
+
return commentConfig ? Option.some(node) : Option.none();
|
|
132
127
|
},
|
|
133
|
-
connector: (
|
|
128
|
+
connector: () =>
|
|
134
129
|
Effect.succeed([
|
|
135
|
-
{
|
|
136
|
-
id:
|
|
137
|
-
|
|
130
|
+
AppNode.makeCompanion({
|
|
131
|
+
id: linkedSegment('comments'),
|
|
132
|
+
label: ['comments.label', { ns: meta.id }],
|
|
133
|
+
icon: 'ph--chat-text--regular',
|
|
138
134
|
data: 'comments',
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
icon: 'ph--chat-text--regular',
|
|
142
|
-
disposition: 'hidden',
|
|
143
|
-
position: 'hoist',
|
|
144
|
-
},
|
|
145
|
-
},
|
|
135
|
+
position: 'hoist',
|
|
136
|
+
}),
|
|
146
137
|
]),
|
|
147
138
|
}),
|
|
148
139
|
GraphBuilder.createExtension({
|
|
149
|
-
id:
|
|
140
|
+
id: 'comment-toolbar',
|
|
150
141
|
match: (node) => {
|
|
151
142
|
if (!Obj.isObject(node.data) || Option.isNone(whenCommentableObject(node))) {
|
|
152
143
|
return Option.none();
|
|
153
144
|
}
|
|
154
|
-
const
|
|
155
|
-
return
|
|
145
|
+
const commentConfig = getCommentConfig(Obj.getTypename(node.data)!);
|
|
146
|
+
return commentConfig ? Option.some(node) : Option.none();
|
|
156
147
|
},
|
|
157
|
-
actions: (
|
|
148
|
+
actions: (matched, get) => {
|
|
149
|
+
const object = matched.data;
|
|
150
|
+
const objectDXN = Obj.getDXN(object).toString();
|
|
158
151
|
const stateAtom = capabilities.atom(ThreadCapabilities.State);
|
|
159
152
|
const selectionManager = capabilities.get(AttentionCapabilities.Selection);
|
|
160
|
-
const
|
|
161
|
-
const metadata = resolve(Obj.getTypename(object)!);
|
|
153
|
+
const commentConfig = getCommentConfig(Obj.getTypename(object)!)!;
|
|
162
154
|
|
|
163
155
|
const disabled = get(
|
|
164
156
|
commentDisabledFamily({
|
|
165
157
|
stateAtom,
|
|
166
158
|
selectionManager,
|
|
167
|
-
objectId,
|
|
168
|
-
commentsType:
|
|
169
|
-
selectionMode:
|
|
159
|
+
objectId: objectDXN,
|
|
160
|
+
commentsType: commentConfig.comments,
|
|
161
|
+
selectionMode: commentConfig.selectionMode as SelectionMode | undefined,
|
|
170
162
|
}),
|
|
171
163
|
);
|
|
172
164
|
|
|
173
165
|
return Effect.succeed([
|
|
174
166
|
{
|
|
175
|
-
id:
|
|
167
|
+
id: 'comment',
|
|
176
168
|
data: Effect.fnUntraced(function* () {
|
|
177
|
-
const
|
|
178
|
-
const selection = selectionManager.getSelection(
|
|
179
|
-
const anchor =
|
|
180
|
-
|
|
169
|
+
const config = getCommentConfig(Obj.getTypename(object)!)!;
|
|
170
|
+
const selection = selectionManager.getSelection(objectDXN);
|
|
171
|
+
const anchor =
|
|
172
|
+
(config.comments === 'anchored' ? getAnchor(selection) : undefined) ?? Date.now().toString();
|
|
173
|
+
const name = config.getAnchorLabel?.(object, anchor);
|
|
181
174
|
yield* Operation.invoke(ThreadOperation.Create, {
|
|
182
175
|
anchor,
|
|
183
176
|
name,
|
|
@@ -185,7 +178,7 @@ export default Capability.makeModule(
|
|
|
185
178
|
});
|
|
186
179
|
}),
|
|
187
180
|
properties: {
|
|
188
|
-
label: ['add
|
|
181
|
+
label: ['add-comment.label', { ns: meta.id }],
|
|
189
182
|
icon: 'ph--chat-text--regular',
|
|
190
183
|
disposition: 'toolbar',
|
|
191
184
|
disabled,
|
package/src/capabilities/{blueprint-definition/blueprint-definition.ts → blueprint-definition.ts}
RENAMED
|
@@ -6,8 +6,10 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
|
|
7
7
|
import { Capability } from '@dxos/app-framework';
|
|
8
8
|
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
9
|
+
// eslint-disable-next-line unused-imports/no-unused-imports
|
|
10
|
+
import type { Blueprint } from '@dxos/compute';
|
|
9
11
|
|
|
10
|
-
import { ThreadBlueprint } from '
|
|
12
|
+
import { ThreadBlueprint } from '#blueprints';
|
|
11
13
|
|
|
12
14
|
const blueprintDefinition = Capability.makeModule<
|
|
13
15
|
[],
|
|
@@ -7,8 +7,9 @@ import * as Effect from 'effect/Effect';
|
|
|
7
7
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
8
|
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
9
9
|
|
|
10
|
-
import {
|
|
11
|
-
|
|
10
|
+
import { ThreadCapabilities } from '#types';
|
|
11
|
+
|
|
12
|
+
import { CallManager } from '../calls';
|
|
12
13
|
|
|
13
14
|
export default Capability.makeModule(
|
|
14
15
|
Effect.fnUntraced(function* () {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { Operation } from '@dxos/compute';
|
|
9
|
+
import { SpaceOperation } from '@dxos/plugin-space';
|
|
10
|
+
import { SpaceCapabilities } from '@dxos/plugin-space';
|
|
11
|
+
import { Channel } from '@dxos/types';
|
|
12
|
+
|
|
13
|
+
export default Capability.makeModule(
|
|
14
|
+
Effect.fnUntraced(function* () {
|
|
15
|
+
return Capability.contributes(SpaceCapabilities.CreateObjectEntry, {
|
|
16
|
+
id: Channel.Channel.typename,
|
|
17
|
+
createObject: (props, options) =>
|
|
18
|
+
Effect.gen(function* () {
|
|
19
|
+
const object = Channel.make(props);
|
|
20
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
21
|
+
object,
|
|
22
|
+
target: options.target,
|
|
23
|
+
hidden: true,
|
|
24
|
+
targetNodeId: options.targetNodeId,
|
|
25
|
+
});
|
|
26
|
+
}),
|
|
27
|
+
});
|
|
28
|
+
}),
|
|
29
|
+
);
|
|
@@ -2,13 +2,21 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
5
|
+
import { Capability } from '@dxos/app-framework';
|
|
6
|
+
// eslint-disable-next-line unused-imports/no-unused-imports
|
|
7
|
+
import type { Blueprint, OperationHandlerSet } from '@dxos/compute';
|
|
8
|
+
|
|
9
|
+
export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
|
|
10
|
+
export const BlueprintDefinition = Capability.lazy('BlueprintDefinition', () => import('./blueprint-definition'));
|
|
11
|
+
export const CreateObject = Capability.lazy('CreateObject', () => import('./create-object'));
|
|
12
|
+
export const CallManager = Capability.lazy('CallManager', () => import('./call-manager'));
|
|
13
|
+
export const Markdown = Capability.lazy('Markdown', () => import('./markdown'));
|
|
14
|
+
export const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(
|
|
15
|
+
'OperationHandler',
|
|
16
|
+
() => import('./operation-handler'),
|
|
17
|
+
);
|
|
18
|
+
export const ReactRoot = Capability.lazy('ReactRoot', () => import('./react-root'));
|
|
19
|
+
export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
|
|
20
|
+
export const ThreadSettings = Capability.lazy('ThreadSettings', () => import('./settings'));
|
|
21
|
+
export const ThreadState = Capability.lazy('ThreadState', () => import('./state'));
|
|
22
|
+
export const UndoMappings = Capability.lazy('UndoMappings', () => import('./undo-mappings'));
|
|
@@ -6,13 +6,14 @@ import { EditorView } from '@codemirror/view';
|
|
|
6
6
|
import * as Effect from 'effect/Effect';
|
|
7
7
|
|
|
8
8
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
|
-
import {
|
|
10
|
-
import { ATTENDABLE_PATH_SEPARATOR, DeckOperation } from '@dxos/plugin-deck/types';
|
|
9
|
+
import { LayoutOperation } from '@dxos/app-toolkit';
|
|
11
10
|
import { MarkdownCapabilities } from '@dxos/plugin-markdown';
|
|
12
|
-
import {
|
|
11
|
+
import { linkedSegment } from '@dxos/react-ui-attention';
|
|
12
|
+
import { type EditorState, commentClickedEffect, commentsState, documentId, overlap } from '@dxos/ui-editor';
|
|
13
13
|
|
|
14
|
-
import {
|
|
15
|
-
|
|
14
|
+
import { ThreadCapabilities } from '#types';
|
|
15
|
+
|
|
16
|
+
import { threads } from '../extensions';
|
|
16
17
|
|
|
17
18
|
export default Capability.makeModule(
|
|
18
19
|
Effect.fnUntraced(function* () {
|
|
@@ -27,33 +28,36 @@ export default Capability.makeModule(
|
|
|
27
28
|
return threads({ registry, stateAtom }, doc, invokePromise);
|
|
28
29
|
},
|
|
29
30
|
({ document: doc }) => {
|
|
30
|
-
if (!doc)
|
|
31
|
+
if (!doc) {
|
|
32
|
+
return [];
|
|
33
|
+
}
|
|
31
34
|
const registry = capabilities.get(Capabilities.AtomRegistry);
|
|
32
35
|
const stateAtom = capabilities.get(ThreadCapabilities.State);
|
|
33
36
|
|
|
34
37
|
return EditorView.updateListener.of((update) => {
|
|
35
38
|
if (update.docChanged || update.selectionSet) {
|
|
36
|
-
const
|
|
39
|
+
const id = update.state.facet(documentId);
|
|
37
40
|
const overlaps = selectionOverlapsComment(update.state);
|
|
38
41
|
const current = registry.get(stateAtom);
|
|
39
42
|
registry.set(stateAtom, {
|
|
40
43
|
...current,
|
|
41
|
-
toolbar: { ...current.toolbar, [
|
|
44
|
+
toolbar: { ...current.toolbar, [id]: overlaps },
|
|
42
45
|
});
|
|
43
46
|
}
|
|
44
47
|
});
|
|
45
48
|
},
|
|
46
49
|
({ document: doc }) => {
|
|
47
|
-
if (!doc)
|
|
50
|
+
if (!doc) {
|
|
51
|
+
return [];
|
|
52
|
+
}
|
|
48
53
|
const { invokePromise } = capabilities.get(Capabilities.OperationInvoker);
|
|
49
|
-
const id = Obj.getDXN(doc).toString();
|
|
50
54
|
|
|
51
55
|
return EditorView.updateListener.of((update) => {
|
|
52
56
|
update.transactions.forEach((transaction) => {
|
|
53
57
|
transaction.effects.forEach(async (effect) => {
|
|
54
58
|
if (effect.is(commentClickedEffect)) {
|
|
55
|
-
void invokePromise(
|
|
56
|
-
|
|
59
|
+
void invokePromise(LayoutOperation.UpdateCompanion, {
|
|
60
|
+
subject: linkedSegment('comments'),
|
|
57
61
|
});
|
|
58
62
|
}
|
|
59
63
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
|
+
import type { OperationHandlerSet } from '@dxos/compute';
|
|
9
|
+
|
|
10
|
+
import { ThreadOperationHandlerSet } from '#operations';
|
|
11
|
+
|
|
12
|
+
export default Capability.makeModule<OperationHandlerSet.OperationHandlerSet>(
|
|
13
|
+
Effect.fnUntraced(function* () {
|
|
14
|
+
return Capability.contributes(Capabilities.OperationHandler, ThreadOperationHandlerSet);
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
@@ -7,8 +7,8 @@ import React from 'react';
|
|
|
7
7
|
|
|
8
8
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
9
|
|
|
10
|
-
import { Call } from '
|
|
11
|
-
import { meta } from '
|
|
10
|
+
import { Call } from '#components';
|
|
11
|
+
import { meta } from '#meta';
|
|
12
12
|
|
|
13
13
|
export default Capability.makeModule(() =>
|
|
14
14
|
Effect.sync(() => {
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { useAtomValue } from '@effect-atom/atom-react';
|
|
6
|
+
import * as Effect from 'effect/Effect';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
|
|
9
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
10
|
+
import { Surface, useCapability, useSettingsState } from '@dxos/app-framework/ui';
|
|
11
|
+
import { AppSurface } from '@dxos/app-toolkit/ui';
|
|
12
|
+
import { getSpace } from '@dxos/react-client/echo';
|
|
13
|
+
import { Channel, Thread } from '@dxos/types';
|
|
14
|
+
|
|
15
|
+
import { ThreadSettings } from '#components';
|
|
16
|
+
import {
|
|
17
|
+
CallDebugPanel,
|
|
18
|
+
CallSidebar,
|
|
19
|
+
ChannelChat,
|
|
20
|
+
ChannelContainer,
|
|
21
|
+
ThreadCompanion,
|
|
22
|
+
ThreadContainer,
|
|
23
|
+
} from '#containers';
|
|
24
|
+
import { meta } from '#meta';
|
|
25
|
+
import { ThreadCapabilities, type Settings } from '#types';
|
|
26
|
+
|
|
27
|
+
export default Capability.makeModule(() =>
|
|
28
|
+
Effect.succeed(
|
|
29
|
+
Capability.contributes(Capabilities.ReactSurface, [
|
|
30
|
+
Surface.create({
|
|
31
|
+
id: 'channel',
|
|
32
|
+
filter: AppSurface.object(AppSurface.Article, Channel.Channel),
|
|
33
|
+
component: ({ data: { subject, attendableId }, role }) => (
|
|
34
|
+
<ChannelContainer role={role} subject={subject} attendableId={attendableId} />
|
|
35
|
+
),
|
|
36
|
+
}),
|
|
37
|
+
Surface.create({
|
|
38
|
+
id: 'chat-companion',
|
|
39
|
+
filter: AppSurface.allOf(
|
|
40
|
+
AppSurface.literal(AppSurface.Article, 'chat'),
|
|
41
|
+
AppSurface.companion(AppSurface.Article, Channel.Channel),
|
|
42
|
+
),
|
|
43
|
+
component: ({ data: { companionTo: channel } }) => {
|
|
44
|
+
const space = getSpace(channel);
|
|
45
|
+
if (!space) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return <ChannelChat channel={channel} space={space} />;
|
|
50
|
+
},
|
|
51
|
+
}),
|
|
52
|
+
Surface.create({
|
|
53
|
+
id: 'thread',
|
|
54
|
+
filter: AppSurface.object(AppSurface.Article, Thread.Thread),
|
|
55
|
+
component: ({ data: { subject } }) => {
|
|
56
|
+
const space = getSpace(subject);
|
|
57
|
+
if (!space || !subject) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return <ThreadContainer thread={subject} space={space} />;
|
|
62
|
+
},
|
|
63
|
+
}),
|
|
64
|
+
Surface.create({
|
|
65
|
+
id: 'comments',
|
|
66
|
+
filter: AppSurface.allOf(
|
|
67
|
+
AppSurface.literal(AppSurface.Article, 'comments'),
|
|
68
|
+
AppSurface.companion(AppSurface.Article),
|
|
69
|
+
),
|
|
70
|
+
// TODO(wittjosiah): This isn't scrolling properly in a plank.
|
|
71
|
+
component: ({ data }) => <ThreadCompanion attendableId={data.attendableId} subject={data.companionTo} />,
|
|
72
|
+
}),
|
|
73
|
+
Surface.create({
|
|
74
|
+
id: 'plugin-settings',
|
|
75
|
+
filter: AppSurface.settings(AppSurface.Article, meta.id),
|
|
76
|
+
component: ({ data: { subject } }) => {
|
|
77
|
+
const { settings, updateSettings } = useSettingsState<Settings.Settings>(subject.atom);
|
|
78
|
+
return <ThreadSettings settings={settings} onSettingsChange={updateSettings} />;
|
|
79
|
+
},
|
|
80
|
+
}),
|
|
81
|
+
Surface.create({
|
|
82
|
+
id: 'assistant',
|
|
83
|
+
role: 'deck-companion--active-call',
|
|
84
|
+
component: () => <CallSidebar />,
|
|
85
|
+
}),
|
|
86
|
+
Surface.create({
|
|
87
|
+
id: 'devtools-overview',
|
|
88
|
+
role: 'devtools-overview',
|
|
89
|
+
component: () => {
|
|
90
|
+
const call = useCapability(ThreadCapabilities.CallManager);
|
|
91
|
+
const state = useAtomValue(call.stateAtom);
|
|
92
|
+
return <CallDebugPanel state={state} />;
|
|
93
|
+
},
|
|
94
|
+
}),
|
|
95
|
+
]),
|
|
96
|
+
),
|
|
97
|
+
);
|
|
@@ -8,15 +8,14 @@ import { Capability } from '@dxos/app-framework';
|
|
|
8
8
|
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
9
9
|
import { createKvsStore } from '@dxos/effect';
|
|
10
10
|
|
|
11
|
-
import { meta } from '
|
|
12
|
-
import {
|
|
13
|
-
import { ThreadCapabilities } from '../../types/capabilities';
|
|
11
|
+
import { meta } from '#meta';
|
|
12
|
+
import { Settings, ThreadCapabilities } from '#types';
|
|
14
13
|
|
|
15
14
|
export default Capability.makeModule(() =>
|
|
16
15
|
Effect.sync(() => {
|
|
17
16
|
const settingsAtom = createKvsStore({
|
|
18
17
|
key: meta.id,
|
|
19
|
-
schema:
|
|
18
|
+
schema: Settings.Settings,
|
|
20
19
|
defaultValue: () => ({}),
|
|
21
20
|
});
|
|
22
21
|
|
|
@@ -26,7 +25,7 @@ export default Capability.makeModule(() =>
|
|
|
26
25
|
// Contribute to common settings for UI discovery.
|
|
27
26
|
Capability.contributes(AppCapabilities.Settings, {
|
|
28
27
|
prefix: meta.id,
|
|
29
|
-
schema:
|
|
28
|
+
schema: Settings.Settings,
|
|
30
29
|
atom: settingsAtom,
|
|
31
30
|
}),
|
|
32
31
|
];
|
|
@@ -7,7 +7,7 @@ import * as Effect from 'effect/Effect';
|
|
|
7
7
|
|
|
8
8
|
import { Capability } from '@dxos/app-framework';
|
|
9
9
|
|
|
10
|
-
import { ThreadCapabilities, type ThreadState, type ViewStore } from '
|
|
10
|
+
import { ThreadCapabilities, type ThreadState, type ViewStore } from '#types';
|
|
11
11
|
|
|
12
12
|
export default Capability.makeModule(
|
|
13
13
|
Effect.fnUntraced(function* () {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capabilities, Capability, UndoMapping } from '@dxos/app-framework';
|
|
8
|
+
|
|
9
|
+
import { meta } from '#meta';
|
|
10
|
+
import { ThreadOperation } from '#types';
|
|
11
|
+
|
|
12
|
+
export default Capability.makeModule(
|
|
13
|
+
Effect.fnUntraced(function* () {
|
|
14
|
+
return Capability.contributes(Capabilities.UndoMapping, [
|
|
15
|
+
UndoMapping.make({
|
|
16
|
+
operation: ThreadOperation.Delete,
|
|
17
|
+
inverse: ThreadOperation.Restore,
|
|
18
|
+
deriveContext: (_input, output) => {
|
|
19
|
+
if (!output.thread || !output.anchor) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
thread: output.thread,
|
|
24
|
+
anchor: output.anchor,
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
message: ['thread-deleted.label', { ns: meta.id }],
|
|
28
|
+
}),
|
|
29
|
+
UndoMapping.make({
|
|
30
|
+
operation: ThreadOperation.DeleteMessage,
|
|
31
|
+
inverse: ThreadOperation.RestoreMessage,
|
|
32
|
+
deriveContext: (input, output) => {
|
|
33
|
+
if (!output.message || output.messageIndex === undefined) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
anchor: input.anchor,
|
|
38
|
+
message: output.message,
|
|
39
|
+
messageIndex: output.messageIndex,
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
message: ['message-deleted.label', { ns: meta.id }],
|
|
43
|
+
}),
|
|
44
|
+
]);
|
|
45
|
+
}),
|
|
46
|
+
);
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { useAtomValue } from '@effect-atom/atom-react';
|
|
6
|
-
import React, { type
|
|
6
|
+
import React, { type PropsWithChildren } from 'react';
|
|
7
7
|
|
|
8
8
|
import { useCapability } from '@dxos/app-framework/ui';
|
|
9
9
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
10
10
|
|
|
11
|
-
import { useDebugMode } from '
|
|
12
|
-
import { ThreadCapabilities } from '
|
|
11
|
+
import { useDebugMode } from '#hooks';
|
|
12
|
+
import { ThreadCapabilities } from '#types';
|
|
13
|
+
|
|
13
14
|
import { AudioStream } from '../Media';
|
|
14
15
|
import { ParticipantGrid } from '../Participant';
|
|
15
|
-
|
|
16
16
|
import { Toolbar, type ToolbarProps } from './Toolbar';
|
|
17
17
|
|
|
18
18
|
//
|
|
@@ -21,8 +21,8 @@ import { Toolbar, type ToolbarProps } from './Toolbar';
|
|
|
21
21
|
|
|
22
22
|
type CallRootProps = PropsWithChildren<ThemedClassName>;
|
|
23
23
|
|
|
24
|
-
const CallRoot
|
|
25
|
-
return <div className='relative flex flex-col
|
|
24
|
+
const CallRoot = ({ children }: CallRootProps) => {
|
|
25
|
+
return <div className='relative dx-container flex flex-col'>{children}</div>;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
CallRoot.displayName = 'CallRoot';
|
|
@@ -33,7 +33,7 @@ CallRoot.displayName = 'CallRoot';
|
|
|
33
33
|
|
|
34
34
|
type CallAudioProps = {};
|
|
35
35
|
|
|
36
|
-
const CallAudio
|
|
36
|
+
const CallAudio = (_props: CallAudioProps) => {
|
|
37
37
|
const call = useCapability(ThreadCapabilities.CallManager);
|
|
38
38
|
const audioTracksToPlay = useAtomValue(call.audioTracksToPlayAtom);
|
|
39
39
|
|
|
@@ -50,7 +50,7 @@ type CallGridProps = {
|
|
|
50
50
|
fullscreen?: boolean;
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
const CallGrid
|
|
53
|
+
const CallGrid = ({ fullscreen }: CallGridProps) => {
|
|
54
54
|
const debug = useDebugMode();
|
|
55
55
|
const call = useCapability(ThreadCapabilities.CallManager);
|
|
56
56
|
const self = useAtomValue(call.selfAtom);
|
|
@@ -71,7 +71,7 @@ CallGrid.displayName = 'CallGrid';
|
|
|
71
71
|
|
|
72
72
|
type CallToolbarProps = Pick<ToolbarProps, 'channel' | 'onLeave'>;
|
|
73
73
|
|
|
74
|
-
const CallToolbar
|
|
74
|
+
const CallToolbar = (props: CallToolbarProps) => {
|
|
75
75
|
return (
|
|
76
76
|
<div className='absolute bottom-0 left-0 right-0 flex justify-center'>
|
|
77
77
|
<Toolbar isInRoom {...props} />
|