@dxos/plugin-thread 0.8.4-main.7996785055 → 0.8.4-main.8baae0fced
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/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/lib/neutral/ChannelArticle-ACZD7YFT.mjs +28 -0
- package/dist/lib/neutral/ChannelArticle-ACZD7YFT.mjs.map +7 -0
- package/dist/lib/neutral/ChannelChat-6YTD5HWL.mjs +10 -0
- package/dist/lib/{browser/ThreadCompanion-LHPNPABS.mjs → neutral/ThreadCompanion-NQWPS2H6.mjs} +22 -37
- 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 +80 -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/ThreadPlugin.workerd.mjs +24 -0
- package/dist/lib/neutral/ThreadPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/ThreadSettings-5MKTDK3A.mjs +15 -0
- package/dist/lib/neutral/ThreadSettings-5MKTDK3A.mjs.map +7 -0
- package/dist/lib/{browser/add-message-O3INEWOI.mjs → neutral/add-message-FBIROBEZ.mjs} +15 -25
- package/dist/lib/neutral/add-message-FBIROBEZ.mjs.map +7 -0
- package/dist/lib/neutral/app-graph-builder-MJU3WYMY.mjs +120 -0
- package/dist/lib/neutral/app-graph-builder-MJU3WYMY.mjs.map +7 -0
- package/dist/lib/neutral/append-channel-message-FTFAD3PK.mjs +40 -0
- package/dist/lib/neutral/append-channel-message-FTFAD3PK.mjs.map +7 -0
- package/dist/lib/neutral/blueprint-definition-S3EBOH4R.mjs +15 -0
- package/dist/lib/neutral/blueprint-definition-S3EBOH4R.mjs.map +7 -0
- package/dist/lib/neutral/blueprints/index.mjs +8 -0
- package/dist/lib/neutral/capabilities/index.mjs +25 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/{browser/chunk-L7RCZYUB.mjs → neutral/chunk-5T5LPLBN.mjs} +4 -7
- package/dist/lib/neutral/chunk-5T5LPLBN.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/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/{browser/chunk-CP7E2HRE.mjs → neutral/chunk-JLY4NVTA.mjs} +12 -5
- package/dist/lib/neutral/chunk-JLY4NVTA.mjs.map +7 -0
- package/dist/lib/{browser/chunk-MC6IA6YE.mjs → neutral/chunk-KRXHIW4P.mjs} +48 -19
- package/dist/lib/neutral/chunk-KRXHIW4P.mjs.map +7 -0
- package/dist/lib/{browser/chunk-T6FNJOLU.mjs → neutral/chunk-PE7IH7EL.mjs} +99 -87
- package/dist/lib/neutral/chunk-PE7IH7EL.mjs.map +7 -0
- package/dist/lib/{browser/chunk-SDMEBXOE.mjs → neutral/chunk-QDCG6XQI.mjs} +3 -9
- package/dist/lib/neutral/chunk-QDCG6XQI.mjs.map +7 -0
- package/dist/lib/neutral/chunk-QFDT33VT.mjs +69 -0
- package/dist/lib/neutral/chunk-QFDT33VT.mjs.map +7 -0
- package/dist/lib/neutral/chunk-QMLVLKE3.mjs +8 -0
- package/dist/lib/neutral/chunk-QMLVLKE3.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +539 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +15 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/{browser/create-UP6DYIPF.mjs → neutral/create-OAQJ6LXN.mjs} +13 -16
- package/dist/lib/neutral/create-OAQJ6LXN.mjs.map +7 -0
- package/dist/lib/neutral/create-channel-3E4FJ662.mjs +19 -0
- package/dist/lib/neutral/create-channel-3E4FJ662.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/{browser/create-proposals-EQQXX7U7.mjs → neutral/create-proposals-GRYZXRMV.mjs} +6 -7
- package/dist/lib/neutral/create-proposals-GRYZXRMV.mjs.map +7 -0
- package/dist/lib/{browser/delete-UFRQJ5GV.mjs → neutral/delete-HCCG5RVR.mjs} +9 -11
- package/dist/lib/neutral/delete-HCCG5RVR.mjs.map +7 -0
- package/dist/lib/{browser/delete-message-TR4FW7HR.mjs → neutral/delete-message-DHFRACB4.mjs} +11 -21
- package/dist/lib/neutral/delete-message-DHFRACB4.mjs.map +7 -0
- package/dist/lib/neutral/hooks/index.mjs +10 -0
- package/dist/lib/neutral/index.mjs +28 -0
- package/dist/lib/{browser/markdown-ZS2LW3OL.mjs → neutral/markdown-BUORNCPG.mjs} +15 -16
- 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-OEBRKOAM.mjs +23 -0
- package/dist/lib/neutral/on-create-space-OEBRKOAM.mjs.map +7 -0
- package/dist/lib/{browser/operation-handler-2PRAMPLT.mjs → neutral/operation-handler-RU6K2S4L.mjs} +4 -8
- 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/neutral/react-surface-XY23GVZH.mjs +76 -0
- package/dist/lib/neutral/react-surface-XY23GVZH.mjs.map +7 -0
- package/dist/lib/{browser/restore-GANFC4M4.mjs → neutral/restore-P4ZLXLF7.mjs} +7 -8
- package/dist/lib/neutral/restore-P4ZLXLF7.mjs.map +7 -0
- package/dist/lib/{browser/restore-message-FWGQ4FCN.mjs → neutral/restore-message-AUBOP2DF.mjs} +10 -19
- package/dist/lib/neutral/restore-message-AUBOP2DF.mjs.map +7 -0
- package/dist/lib/{browser/select-Y4XQX4BS.mjs → neutral/select-LIVAMBCE.mjs} +8 -10
- package/dist/lib/neutral/select-LIVAMBCE.mjs.map +7 -0
- package/dist/lib/{browser/settings-VOVRRXEK.mjs → neutral/settings-HK4EB6TF.mjs} +7 -11
- package/dist/lib/neutral/settings-HK4EB6TF.mjs.map +7 -0
- package/dist/lib/{browser/state-WNYOQCCT.mjs → neutral/state-UU7VEAKV.mjs} +4 -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/{browser/toggle-resolved-QVOZGID6.mjs → neutral/toggle-resolved-RQBDQZSV.mjs} +13 -22
- package/dist/lib/neutral/toggle-resolved-RQBDQZSV.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/{browser/undo-mappings-BTXCCPUL.mjs → neutral/undo-mappings-HOKL2L3M.mjs} +11 -16
- 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/ThreadPlugin.workerd.d.ts +4 -0
- package/dist/types/src/ThreadPlugin.workerd.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/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/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 +16 -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/operation-handler.d.ts → operation-handler.d.ts} +1 -1
- package/dist/types/src/capabilities/operation-handler.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.map +1 -0
- 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.map +1 -1
- package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts +140 -144
- package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts.map +1 -1
- package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts.map +1 -1
- package/dist/types/src/components/MessagePanel/MessagePanel.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 +3 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/ChannelArticle/ChannelArticle.d.ts +13 -0
- package/dist/types/src/containers/ChannelArticle/ChannelArticle.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelArticle/ChannelArticle.stories.d.ts +162 -0
- package/dist/types/src/containers/ChannelArticle/ChannelArticle.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelArticle/index.d.ts +2 -0
- package/dist/types/src/containers/ChannelArticle/index.d.ts.map +1 -0
- 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/ThreadCompanion/ThreadCompanion.d.ts +2 -2
- 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 +3 -5
- package/dist/types/src/containers/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/index.d.ts +0 -4
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useStatus.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/add-message.d.ts +3 -3
- package/dist/types/src/operations/add-message.d.ts.map +1 -1
- package/dist/types/src/operations/append-channel-message.d.ts +5 -0
- package/dist/types/src/operations/append-channel-message.d.ts.map +1 -0
- package/dist/types/src/operations/create-channel.d.ts +3 -3
- package/dist/types/src/operations/create-channel.d.ts.map +1 -1
- package/dist/types/src/operations/create-proposals.d.ts +3 -3
- package/dist/types/src/operations/create-proposals.d.ts.map +1 -1
- package/dist/types/src/operations/create.d.ts +3 -3
- package/dist/types/src/operations/create.d.ts.map +1 -1
- package/dist/types/src/operations/delete-message.d.ts +3 -3
- package/dist/types/src/operations/delete-message.d.ts.map +1 -1
- package/dist/types/src/operations/delete.d.ts +3 -3
- package/dist/types/src/operations/delete.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -2
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/on-create-space.d.ts +3 -3
- package/dist/types/src/operations/on-create-space.d.ts.map +1 -1
- package/dist/types/src/operations/restore-message.d.ts +3 -3
- package/dist/types/src/operations/restore-message.d.ts.map +1 -1
- package/dist/types/src/operations/restore.d.ts +3 -3
- package/dist/types/src/operations/restore.d.ts.map +1 -1
- package/dist/types/src/operations/select.d.ts +3 -3
- package/dist/types/src/operations/select.d.ts.map +1 -1
- package/dist/types/src/operations/toggle-resolved.d.ts +3 -3
- package/dist/types/src/operations/toggle-resolved.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/testing/data.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +1 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +140 -144
- 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 +13 -0
- package/dist/types/src/types/ThreadCapabilities.d.ts.map +1 -0
- package/dist/types/src/{operations/definitions.d.ts → types/ThreadOperation.d.ts} +893 -1666
- 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 -3
- 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 +130 -94
- package/src/ThreadPlugin.node.ts +39 -0
- package/src/ThreadPlugin.test.ts +37 -0
- package/src/ThreadPlugin.tsx +13 -65
- package/src/ThreadPlugin.workerd.ts +20 -0
- package/src/blueprints/thread-blueprint.ts +3 -4
- package/src/capabilities/app-graph-builder.ts +143 -0
- package/src/capabilities/{blueprint-definition/blueprint-definition.ts → blueprint-definition.ts} +3 -1
- package/src/capabilities/create-object.ts +29 -0
- package/src/capabilities/index.ts +16 -10
- package/src/capabilities/{markdown/markdown.ts → markdown.ts} +13 -8
- package/src/capabilities/{operation-handler/operation-handler.ts → operation-handler.ts} +2 -2
- package/src/capabilities/react-surface.tsx +75 -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/undo-mappings.ts → undo-mappings.ts} +4 -4
- package/src/components/Chat/Chat.tsx +258 -0
- package/src/components/Chat/index.ts +5 -0
- package/src/components/CommentsPanel/CommentsPanel.stories.tsx +10 -10
- package/src/components/CommentsPanel/CommentsPanel.tsx +6 -6
- package/src/components/CommentsPanel/CommentsThread.tsx +12 -13
- package/src/components/MessagePanel/MessagePanel.tsx +20 -15
- package/src/components/ThreadSettings/ThreadSettings.stories.tsx +32 -0
- package/src/components/ThreadSettings/ThreadSettings.tsx +19 -0
- package/src/components/ThreadSettings/index.ts +5 -0
- package/src/components/index.ts +5 -1
- package/src/containers/ChannelArticle/ChannelArticle.stories.tsx +105 -0
- package/src/containers/ChannelArticle/ChannelArticle.tsx +42 -0
- package/src/containers/ChannelArticle/index.ts +5 -0
- package/src/containers/ChannelChat/ChannelChat.tsx +75 -0
- package/src/containers/ChannelChat/index.ts +8 -0
- package/src/containers/ThreadCompanion/ThreadCompanion.tsx +17 -19
- package/src/containers/ThreadCompanion/index.ts +1 -3
- package/src/containers/{ChatContainer/ChatContainer.stories.tsx → ThreadContainer/ThreadContainer.stories.tsx} +14 -15
- package/src/containers/ThreadContainer/ThreadContainer.tsx +75 -0
- package/src/containers/ThreadContainer/index.ts +8 -0
- package/src/containers/index.ts +3 -5
- package/src/extensions/command.ts +1 -1
- package/src/extensions/threads.ts +16 -16
- package/src/hooks/analytics.ts +1 -1
- package/src/hooks/index.ts +0 -5
- package/src/index.ts +4 -4
- package/src/meta.ts +2 -2
- package/src/operations/add-message.ts +9 -10
- package/src/operations/append-channel-message.ts +37 -0
- package/src/operations/create-channel.ts +4 -5
- package/src/operations/create-proposals.ts +3 -3
- package/src/operations/create.ts +8 -9
- package/src/operations/delete-message.ts +7 -7
- package/src/operations/delete.ts +4 -5
- package/src/operations/index.ts +2 -4
- package/src/operations/on-create-space.ts +4 -4
- package/src/operations/restore-message.ts +6 -6
- package/src/operations/restore.ts +4 -4
- package/src/operations/select.ts +3 -4
- package/src/operations/toggle-resolved.ts +9 -9
- package/src/plugin.ts +11 -0
- package/src/testing/data.ts +7 -7
- package/src/testing/index.ts +1 -1
- package/src/translations.ts +74 -79
- package/src/types/Settings.ts +10 -0
- package/src/types/ThreadCapabilities.ts +26 -0
- package/src/{operations/definitions.ts → types/ThreadOperation.ts} +15 -14
- package/src/types/index.ts +4 -2
- package/src/types/types.ts +0 -5
- package/src/util.ts +37 -5
- package/dist/lib/browser/CallDebugPanel-RY6FXDN7.mjs +0 -181
- package/dist/lib/browser/CallDebugPanel-RY6FXDN7.mjs.map +0 -7
- package/dist/lib/browser/CallSidebar-U3YOKNG6.mjs +0 -37
- package/dist/lib/browser/CallSidebar-U3YOKNG6.mjs.map +0 -7
- package/dist/lib/browser/ChannelContainer-C25SJD67.mjs +0 -18
- package/dist/lib/browser/ChatContainer-VG6JXVMR.mjs +0 -19
- package/dist/lib/browser/ThreadCompanion-LHPNPABS.mjs.map +0 -7
- package/dist/lib/browser/ThreadSettings-7WRTSUPH.mjs +0 -19
- package/dist/lib/browser/ThreadSettings-7WRTSUPH.mjs.map +0 -7
- package/dist/lib/browser/add-message-O3INEWOI.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-NQASP6LK.mjs +0 -191
- package/dist/lib/browser/app-graph-builder-NQASP6LK.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-BVS7F5KD.mjs +0 -20
- package/dist/lib/browser/blueprint-definition-BVS7F5KD.mjs.map +0 -7
- package/dist/lib/browser/blueprints/index.mjs +0 -11
- package/dist/lib/browser/call-manager-HRJSB3NQ.mjs +0 -26
- package/dist/lib/browser/call-manager-HRJSB3NQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-2M2HV5K4.mjs +0 -35
- package/dist/lib/browser/chunk-2M2HV5K4.mjs.map +0 -7
- package/dist/lib/browser/chunk-4PJ6SUNH.mjs +0 -8
- package/dist/lib/browser/chunk-4PJ6SUNH.mjs.map +0 -7
- package/dist/lib/browser/chunk-CP7E2HRE.mjs.map +0 -7
- package/dist/lib/browser/chunk-ERK254BS.mjs +0 -1810
- package/dist/lib/browser/chunk-ERK254BS.mjs.map +0 -7
- package/dist/lib/browser/chunk-GB4CYKEA.mjs +0 -223
- package/dist/lib/browser/chunk-GB4CYKEA.mjs.map +0 -7
- package/dist/lib/browser/chunk-GYRGZNEC.mjs +0 -184
- package/dist/lib/browser/chunk-GYRGZNEC.mjs.map +0 -7
- package/dist/lib/browser/chunk-ISCHODBV.mjs +0 -106
- package/dist/lib/browser/chunk-ISCHODBV.mjs.map +0 -7
- package/dist/lib/browser/chunk-L7RCZYUB.mjs.map +0 -7
- package/dist/lib/browser/chunk-MC6IA6YE.mjs.map +0 -7
- package/dist/lib/browser/chunk-NU7YGDHW.mjs +0 -126
- package/dist/lib/browser/chunk-NU7YGDHW.mjs.map +0 -7
- package/dist/lib/browser/chunk-SDMEBXOE.mjs.map +0 -7
- package/dist/lib/browser/chunk-T6FNJOLU.mjs.map +0 -7
- package/dist/lib/browser/chunk-TAEJJ3CF.mjs +0 -57
- package/dist/lib/browser/chunk-TAEJJ3CF.mjs.map +0 -7
- package/dist/lib/browser/chunk-WR6V7S4Q.mjs +0 -1093
- package/dist/lib/browser/chunk-WR6V7S4Q.mjs.map +0 -7
- package/dist/lib/browser/create-UP6DYIPF.mjs.map +0 -7
- package/dist/lib/browser/create-channel-NHQ3BKJC.mjs +0 -21
- package/dist/lib/browser/create-channel-NHQ3BKJC.mjs.map +0 -7
- package/dist/lib/browser/create-channel-thread-JJ7ZST67.mjs +0 -28
- package/dist/lib/browser/create-channel-thread-JJ7ZST67.mjs.map +0 -7
- package/dist/lib/browser/create-proposals-EQQXX7U7.mjs.map +0 -7
- package/dist/lib/browser/delete-UFRQJ5GV.mjs.map +0 -7
- package/dist/lib/browser/delete-message-TR4FW7HR.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -320
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/markdown-ZS2LW3OL.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/on-create-space-KLARW25R.mjs +0 -25
- package/dist/lib/browser/on-create-space-KLARW25R.mjs.map +0 -7
- package/dist/lib/browser/operation-handler-2PRAMPLT.mjs.map +0 -7
- package/dist/lib/browser/operations/index.mjs +0 -13
- package/dist/lib/browser/react-root-EGOEX44B.mjs +0 -26
- package/dist/lib/browser/react-root-EGOEX44B.mjs.map +0 -7
- package/dist/lib/browser/react-surface-UFSXNECJ.mjs +0 -114
- package/dist/lib/browser/react-surface-UFSXNECJ.mjs.map +0 -7
- package/dist/lib/browser/restore-GANFC4M4.mjs.map +0 -7
- package/dist/lib/browser/restore-message-FWGQ4FCN.mjs.map +0 -7
- package/dist/lib/browser/select-Y4XQX4BS.mjs.map +0 -7
- package/dist/lib/browser/settings-VOVRRXEK.mjs.map +0 -7
- package/dist/lib/browser/state-WNYOQCCT.mjs.map +0 -7
- package/dist/lib/browser/toggle-resolved-QVOZGID6.mjs.map +0 -7
- package/dist/lib/browser/types/index.mjs +0 -12
- package/dist/lib/browser/undo-mappings-BTXCCPUL.mjs.map +0 -7
- package/dist/lib/node-esm/CallDebugPanel-CKGXAWG5.mjs +0 -182
- package/dist/lib/node-esm/CallDebugPanel-CKGXAWG5.mjs.map +0 -7
- package/dist/lib/node-esm/CallSidebar-MSAQRWCO.mjs +0 -38
- package/dist/lib/node-esm/CallSidebar-MSAQRWCO.mjs.map +0 -7
- package/dist/lib/node-esm/ChannelContainer-R23E4D3N.mjs +0 -19
- package/dist/lib/node-esm/ChatContainer-VS2NX3S7.mjs +0 -20
- package/dist/lib/node-esm/ChatContainer-VS2NX3S7.mjs.map +0 -7
- package/dist/lib/node-esm/ThreadCompanion-DIKUNH3P.mjs +0 -224
- package/dist/lib/node-esm/ThreadCompanion-DIKUNH3P.mjs.map +0 -7
- package/dist/lib/node-esm/ThreadSettings-UJBAAD4J.mjs +0 -20
- package/dist/lib/node-esm/ThreadSettings-UJBAAD4J.mjs.map +0 -7
- package/dist/lib/node-esm/add-message-GQO7ETY3.mjs +0 -98
- package/dist/lib/node-esm/add-message-GQO7ETY3.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-WIYQ3COQ.mjs +0 -192
- package/dist/lib/node-esm/app-graph-builder-WIYQ3COQ.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-NXHQAJT7.mjs +0 -21
- package/dist/lib/node-esm/blueprint-definition-NXHQAJT7.mjs.map +0 -7
- package/dist/lib/node-esm/blueprints/index.mjs +0 -12
- package/dist/lib/node-esm/call-manager-LOWS24PO.mjs +0 -27
- package/dist/lib/node-esm/call-manager-LOWS24PO.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6ZJGXE4F.mjs +0 -58
- package/dist/lib/node-esm/chunk-6ZJGXE4F.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-A3SWGVF3.mjs +0 -37
- package/dist/lib/node-esm/chunk-A3SWGVF3.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-EYWLIDLC.mjs +0 -185
- package/dist/lib/node-esm/chunk-EYWLIDLC.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GRA2YL5N.mjs +0 -1094
- package/dist/lib/node-esm/chunk-GRA2YL5N.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JOAZKE2A.mjs +0 -260
- package/dist/lib/node-esm/chunk-JOAZKE2A.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JOIEIY5R.mjs +0 -224
- package/dist/lib/node-esm/chunk-JOIEIY5R.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JZI7AFD6.mjs +0 -28
- package/dist/lib/node-esm/chunk-JZI7AFD6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KCWDGW5M.mjs +0 -127
- package/dist/lib/node-esm/chunk-KCWDGW5M.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QFVKK6S6.mjs +0 -10
- package/dist/lib/node-esm/chunk-QFVKK6S6.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-VBI32FGI.mjs +0 -108
- package/dist/lib/node-esm/chunk-VBI32FGI.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-VRNCL65Y.mjs +0 -40
- package/dist/lib/node-esm/chunk-VRNCL65Y.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YGHV23ZD.mjs +0 -136
- package/dist/lib/node-esm/chunk-YGHV23ZD.mjs.map +0 -7
- package/dist/lib/node-esm/create-DIAK4OFO.mjs +0 -56
- package/dist/lib/node-esm/create-DIAK4OFO.mjs.map +0 -7
- package/dist/lib/node-esm/create-channel-JHQN2RGK.mjs +0 -22
- package/dist/lib/node-esm/create-channel-JHQN2RGK.mjs.map +0 -7
- package/dist/lib/node-esm/create-channel-thread-PQKG5VFZ.mjs +0 -29
- package/dist/lib/node-esm/create-channel-thread-PQKG5VFZ.mjs.map +0 -7
- package/dist/lib/node-esm/create-proposals-JBZLGBSF.mjs +0 -58
- package/dist/lib/node-esm/create-proposals-JBZLGBSF.mjs.map +0 -7
- package/dist/lib/node-esm/delete-F4NFPLKJ.mjs +0 -60
- package/dist/lib/node-esm/delete-F4NFPLKJ.mjs.map +0 -7
- package/dist/lib/node-esm/delete-message-QSTGJOL6.mjs +0 -65
- package/dist/lib/node-esm/delete-message-QSTGJOL6.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -321
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-YP22U47Q.mjs +0 -85
- package/dist/lib/node-esm/markdown-YP22U47Q.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/on-create-space-N7SEMK4L.mjs +0 -26
- package/dist/lib/node-esm/on-create-space-N7SEMK4L.mjs.map +0 -7
- package/dist/lib/node-esm/operation-handler-S6I62YNM.mjs +0 -18
- package/dist/lib/node-esm/operation-handler-S6I62YNM.mjs.map +0 -7
- package/dist/lib/node-esm/operations/index.mjs +0 -14
- package/dist/lib/node-esm/react-root-DBJS3JVF.mjs +0 -27
- package/dist/lib/node-esm/react-root-DBJS3JVF.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-NOV4MWBJ.mjs +0 -115
- package/dist/lib/node-esm/react-surface-NOV4MWBJ.mjs.map +0 -7
- package/dist/lib/node-esm/restore-N7MEXVMG.mjs +0 -34
- package/dist/lib/node-esm/restore-N7MEXVMG.mjs.map +0 -7
- package/dist/lib/node-esm/restore-message-ECWGBHBC.mjs +0 -43
- package/dist/lib/node-esm/restore-message-ECWGBHBC.mjs.map +0 -7
- package/dist/lib/node-esm/select-GPWM36LA.mjs +0 -27
- package/dist/lib/node-esm/select-GPWM36LA.mjs.map +0 -7
- package/dist/lib/node-esm/settings-LIZBH7EW.mjs +0 -35
- package/dist/lib/node-esm/settings-LIZBH7EW.mjs.map +0 -7
- package/dist/lib/node-esm/state-ELJSYGJK.mjs +0 -25
- package/dist/lib/node-esm/state-ELJSYGJK.mjs.map +0 -7
- package/dist/lib/node-esm/toggle-resolved-EBEJUS66.mjs +0 -46
- package/dist/lib/node-esm/toggle-resolved-EBEJUS66.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -13
- package/dist/lib/node-esm/types/index.mjs.map +0 -7
- package/dist/lib/node-esm/undo-mappings-IYTSBZWN.mjs +0 -60
- package/dist/lib/node-esm/undo-mappings-IYTSBZWN.mjs.map +0 -7
- package/dist/types/src/calls/call-manager.d.ts +0 -87
- package/dist/types/src/calls/call-manager.d.ts.map +0 -1
- package/dist/types/src/calls/call-swarm-synchronizer.d.ts +0 -66
- package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +0 -1
- package/dist/types/src/calls/index.d.ts +0 -7
- package/dist/types/src/calls/index.d.ts.map +0 -1
- package/dist/types/src/calls/media-manager.d.ts +0 -60
- package/dist/types/src/calls/media-manager.d.ts.map +0 -1
- package/dist/types/src/calls/speaking-monitor.d.ts +0 -24
- package/dist/types/src/calls/speaking-monitor.d.ts.map +0 -1
- package/dist/types/src/calls/types.d.ts +0 -45
- package/dist/types/src/calls/types.d.ts.map +0 -1
- package/dist/types/src/calls/util/audio.d.ts +0 -6
- package/dist/types/src/calls/util/audio.d.ts.map +0 -1
- package/dist/types/src/calls/util/calls-service.d.ts +0 -77
- package/dist/types/src/calls/util/calls-service.d.ts.map +0 -1
- package/dist/types/src/calls/util/history-cache.d.ts +0 -11
- package/dist/types/src/calls/util/history-cache.d.ts.map +0 -1
- package/dist/types/src/calls/util/index.d.ts +0 -5
- package/dist/types/src/calls/util/index.d.ts.map +0 -1
- package/dist/types/src/calls/util/media.d.ts +0 -6
- package/dist/types/src/calls/util/media.d.ts.map +0 -1
- package/dist/types/src/calls/util/stub-media-streams.d.ts +0 -18
- package/dist/types/src/calls/util/stub-media-streams.d.ts.map +0 -1
- package/dist/types/src/calls/util/task-scheduling.d.ts +0 -17
- package/dist/types/src/calls/util/task-scheduling.d.ts.map +0 -1
- package/dist/types/src/calls-service.stories.d.ts +0 -23
- package/dist/types/src/calls-service.stories.d.ts.map +0 -1
- 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 +0 -6
- 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-handler/index.d.ts +0 -4
- package/dist/types/src/capabilities/operation-handler/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-handler/operation-handler.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 +0 -9
- 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/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/capabilities/undo-mappings/index.d.ts +0 -3
- package/dist/types/src/capabilities/undo-mappings/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/undo-mappings/undo-mappings.d.ts.map +0 -1
- package/dist/types/src/components/Call/Call.d.ts +0 -17
- package/dist/types/src/components/Call/Call.d.ts.map +0 -1
- package/dist/types/src/components/Call/Toolbar.d.ts +0 -16
- package/dist/types/src/components/Call/Toolbar.d.ts.map +0 -1
- package/dist/types/src/components/Call/index.d.ts +0 -3
- package/dist/types/src/components/Call/index.d.ts.map +0 -1
- package/dist/types/src/components/Lobby/Lobby.d.ts +0 -15
- package/dist/types/src/components/Lobby/Lobby.d.ts.map +0 -1
- package/dist/types/src/components/Lobby/index.d.ts +0 -2
- package/dist/types/src/components/Lobby/index.d.ts.map +0 -1
- package/dist/types/src/components/Media/AudioStream.d.ts +0 -6
- package/dist/types/src/components/Media/AudioStream.d.ts.map +0 -1
- package/dist/types/src/components/Media/VideoObject.d.ts +0 -15
- package/dist/types/src/components/Media/VideoObject.d.ts.map +0 -1
- package/dist/types/src/components/Media/VideoObject.stories.d.ts +0 -22
- package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +0 -1
- package/dist/types/src/components/Media/index.d.ts +0 -3
- package/dist/types/src/components/Media/index.d.ts.map +0 -1
- package/dist/types/src/components/Participant/Participant.d.ts +0 -6
- package/dist/types/src/components/Participant/Participant.d.ts.map +0 -1
- package/dist/types/src/components/Participant/ParticipantGrid.d.ts +0 -11
- package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +0 -1
- package/dist/types/src/components/Participant/index.d.ts +0 -3
- package/dist/types/src/components/Participant/index.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts +0 -32
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +0 -182
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts +0 -21
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts +0 -12
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts +0 -168
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/index.d.ts +0 -4
- package/dist/types/src/components/ResponsiveGrid/index.d.ts.map +0 -1
- package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts +0 -15
- package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts.map +0 -1
- package/dist/types/src/containers/CallDebugPanel/index.d.ts +0 -3
- package/dist/types/src/containers/CallDebugPanel/index.d.ts.map +0 -1
- package/dist/types/src/containers/CallSidebar/CallSidebar.d.ts +0 -3
- package/dist/types/src/containers/CallSidebar/CallSidebar.d.ts.map +0 -1
- package/dist/types/src/containers/CallSidebar/index.d.ts +0 -3
- package/dist/types/src/containers/CallSidebar/index.d.ts.map +0 -1
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts +0 -12
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +0 -1
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts +0 -166
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +0 -1
- package/dist/types/src/containers/ChannelContainer/index.d.ts +0 -3
- package/dist/types/src/containers/ChannelContainer/index.d.ts.map +0 -1
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +0 -20
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts +0 -166
- package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +0 -1
- package/dist/types/src/containers/ChatContainer/index.d.ts +0 -4
- package/dist/types/src/containers/ChatContainer/index.d.ts.map +0 -1
- package/dist/types/src/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/hooks/useBlackCanvasStreamTrack.d.ts +0 -2
- package/dist/types/src/hooks/useBlackCanvasStreamTrack.d.ts.map +0 -1
- package/dist/types/src/hooks/useDebugMode.d.ts +0 -2
- package/dist/types/src/hooks/useDebugMode.d.ts.map +0 -1
- package/dist/types/src/hooks/useInaudibleAudioStreamTrack.d.ts +0 -2
- package/dist/types/src/hooks/useInaudibleAudioStreamTrack.d.ts.map +0 -1
- package/dist/types/src/hooks/useVideoStreamTrack.d.ts +0 -3
- package/dist/types/src/hooks/useVideoStreamTrack.d.ts.map +0 -1
- package/dist/types/src/operations/create-channel-thread.d.ts +0 -5
- package/dist/types/src/operations/create-channel-thread.d.ts.map +0 -1
- package/dist/types/src/operations/definitions.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/calls/call-manager.ts +0 -270
- package/src/calls/call-swarm-synchronizer.ts +0 -350
- package/src/calls/index.ts +0 -10
- package/src/calls/media-manager.ts +0 -378
- package/src/calls/speaking-monitor.ts +0 -85
- package/src/calls/types.ts +0 -74
- package/src/calls/util/audio.ts +0 -58
- package/src/calls/util/calls-service.ts +0 -581
- package/src/calls/util/history-cache.ts +0 -27
- package/src/calls/util/index.ts +0 -8
- package/src/calls/util/media.ts +0 -52
- package/src/calls/util/stub-media-streams.ts +0 -127
- package/src/calls/util/task-scheduling.ts +0 -92
- package/src/calls-service.stories.tsx +0 -229
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -204
- package/src/capabilities/app-graph-builder/index.ts +0 -7
- package/src/capabilities/blueprint-definition/index.ts +0 -7
- package/src/capabilities/call-manager/call-manager.ts +0 -26
- package/src/capabilities/call-manager/index.ts +0 -7
- package/src/capabilities/markdown/index.ts +0 -7
- package/src/capabilities/operation-handler/index.ts +0 -11
- package/src/capabilities/react-root/index.ts +0 -7
- package/src/capabilities/react-root/react-root.tsx +0 -20
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/react-surface/react-surface.tsx +0 -101
- package/src/capabilities/settings/index.ts +0 -7
- package/src/capabilities/state/index.ts +0 -7
- package/src/capabilities/undo-mappings/index.ts +0 -7
- package/src/components/Call/Call.tsx +0 -93
- package/src/components/Call/Toolbar.tsx +0 -189
- package/src/components/Call/index.ts +0 -6
- package/src/components/Lobby/Lobby.tsx +0 -121
- package/src/components/Lobby/index.ts +0 -5
- package/src/components/Media/AudioStream.tsx +0 -67
- package/src/components/Media/VideoObject.stories.tsx +0 -60
- package/src/components/Media/VideoObject.tsx +0 -58
- package/src/components/Media/index.ts +0 -6
- package/src/components/Participant/Participant.tsx +0 -76
- package/src/components/Participant/ParticipantGrid.tsx +0 -89
- package/src/components/Participant/index.ts +0 -6
- package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +0 -158
- package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +0 -341
- package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +0 -134
- package/src/components/ResponsiveGrid/ResponsivePanel.stories.tsx +0 -54
- package/src/components/ResponsiveGrid/ResponsivePanel.tsx +0 -31
- package/src/components/ResponsiveGrid/index.ts +0 -7
- package/src/containers/CallDebugPanel/CallDebugPanel.tsx +0 -172
- package/src/containers/CallDebugPanel/index.ts +0 -7
- package/src/containers/CallSidebar/CallSidebar.tsx +0 -17
- package/src/containers/CallSidebar/index.ts +0 -7
- package/src/containers/ChannelContainer/ChannelContainer.stories.tsx +0 -59
- package/src/containers/ChannelContainer/ChannelContainer.tsx +0 -222
- package/src/containers/ChannelContainer/index.ts +0 -7
- package/src/containers/ChatContainer/ChatContainer.tsx +0 -130
- package/src/containers/ChatContainer/index.ts +0 -8
- package/src/containers/ThreadSettings/ThreadSettings.tsx +0 -22
- package/src/containers/ThreadSettings/index.ts +0 -7
- package/src/hooks/useBlackCanvasStreamTrack.tsx +0 -27
- package/src/hooks/useDebugMode.ts +0 -25
- package/src/hooks/useInaudibleAudioStreamTrack.tsx +0 -27
- package/src/hooks/useVideoStreamTrack.tsx +0 -36
- package/src/operations/create-channel-thread.ts +0 -26
- package/src/testing/stories.ts +0 -50
- package/src/types/Channel.ts +0 -36
- package/src/types/capabilities.ts +0 -34
- package/src/typings/peermetrics-webrtc-stats.d.ts +0 -46
- package/src/typings.d.ts +0 -8
- /package/dist/lib/{browser/ChannelContainer-C25SJD67.mjs.map → neutral/ChannelChat-6YTD5HWL.mjs.map} +0 -0
- /package/dist/lib/{browser → neutral}/blueprints/index.mjs.map +0 -0
- /package/dist/lib/{browser/ChatContainer-VG6JXVMR.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/{browser/operations → neutral/hooks}/index.mjs.map +0 -0
- /package/dist/lib/{browser/types → neutral}/index.mjs.map +0 -0
- /package/dist/lib/{node-esm/ChannelContainer-R23E4D3N.mjs.map → neutral/meta.mjs.map} +0 -0
- /package/dist/lib/{node-esm/blueprints → neutral/operations}/index.mjs.map +0 -0
- /package/dist/lib/{node-esm/operations → 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-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
- /package/dist/types/src/capabilities/{undo-mappings/undo-mappings.d.ts → undo-mappings.d.ts} +0 -0
|
@@ -8,48 +8,47 @@ import React, { useState } from 'react';
|
|
|
8
8
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
9
|
import { withPluginManager } from '@dxos/app-framework/testing';
|
|
10
10
|
import { Surface } from '@dxos/app-framework/ui';
|
|
11
|
-
import {
|
|
11
|
+
import { corePlugins } from '@dxos/plugin-testing';
|
|
12
|
+
import { random } from '@dxos/random';
|
|
12
13
|
import { useClient } from '@dxos/react-client';
|
|
13
14
|
import { type Space } from '@dxos/react-client/echo';
|
|
14
15
|
import { useIdentity } from '@dxos/react-client/halo';
|
|
15
16
|
import { withClientProvider } from '@dxos/react-client/testing';
|
|
16
17
|
import { useAsyncEffect } from '@dxos/react-ui';
|
|
17
|
-
import { withLayout, Loading } from '@dxos/react-ui/testing';
|
|
18
18
|
import { Thread as ThreadComponent } from '@dxos/react-ui-thread';
|
|
19
|
+
import { withLayout, Loading } from '@dxos/react-ui/testing';
|
|
19
20
|
import { Message, Thread } from '@dxos/types';
|
|
20
21
|
|
|
21
|
-
import { translations } from '
|
|
22
|
-
import { Channel } from '../../types';
|
|
22
|
+
import { translations } from '#translations';
|
|
23
23
|
|
|
24
|
-
import {
|
|
25
|
-
import { corePlugins } from '@dxos/plugin-testing';
|
|
24
|
+
import { ThreadContainer } from './ThreadContainer';
|
|
26
25
|
|
|
27
|
-
|
|
26
|
+
random.seed(1);
|
|
28
27
|
|
|
29
28
|
const DefaultStory = () => {
|
|
30
29
|
const client = useClient();
|
|
31
30
|
const identity = useIdentity();
|
|
32
31
|
const [space, setSpace] = useState<Space>();
|
|
33
|
-
const [
|
|
32
|
+
const [thread, setThread] = useState<Thread.Thread | null>();
|
|
34
33
|
|
|
35
34
|
useAsyncEffect(async () => {
|
|
36
35
|
if (identity) {
|
|
37
36
|
const space = await client.spaces.create();
|
|
38
|
-
const
|
|
37
|
+
const thread = space.db.add(Thread.make({ status: 'active' }));
|
|
39
38
|
setSpace(space);
|
|
40
|
-
|
|
39
|
+
setThread(thread);
|
|
41
40
|
}
|
|
42
41
|
}, [identity]);
|
|
43
42
|
|
|
44
|
-
if (!identity || !
|
|
45
|
-
return <Loading data={{ identity: !!identity, space: !!space,
|
|
43
|
+
if (!identity || !thread || !space) {
|
|
44
|
+
return <Loading data={{ identity: !!identity, space: !!space, thread: !!thread }} />;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
|
-
return <
|
|
47
|
+
return <ThreadContainer space={space} thread={thread} />;
|
|
49
48
|
};
|
|
50
49
|
|
|
51
50
|
const meta = {
|
|
52
|
-
title: 'plugins/plugin-thread/containers/
|
|
51
|
+
title: 'plugins/plugin-thread/containers/ThreadContainer',
|
|
53
52
|
component: ThreadComponent.Root as any,
|
|
54
53
|
render: DefaultStory,
|
|
55
54
|
decorators: [
|
|
@@ -71,7 +70,7 @@ const meta = {
|
|
|
71
70
|
}),
|
|
72
71
|
withClientProvider({
|
|
73
72
|
createSpace: true,
|
|
74
|
-
types: [Thread.Thread,
|
|
73
|
+
types: [Thread.Thread, Message.Message],
|
|
75
74
|
}),
|
|
76
75
|
],
|
|
77
76
|
parameters: {
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import React, { useMemo } from 'react';
|
|
6
|
+
|
|
7
|
+
import { Obj, Ref } from '@dxos/echo';
|
|
8
|
+
import { type Space, useMembers } from '@dxos/react-client/echo';
|
|
9
|
+
import { useIdentity } from '@dxos/react-client/halo';
|
|
10
|
+
import { type ThemedClassName } from '@dxos/react-ui';
|
|
11
|
+
import { type ThreadRootProps } from '@dxos/react-ui-thread';
|
|
12
|
+
import { Message, type Thread } from '@dxos/types';
|
|
13
|
+
import { composable, composableProps } from '@dxos/ui-theme';
|
|
14
|
+
import { isNonNullable } from '@dxos/util';
|
|
15
|
+
|
|
16
|
+
import { Chat } from '#components';
|
|
17
|
+
import { useStatus } from '#hooks';
|
|
18
|
+
|
|
19
|
+
export type ThreadContainerProps = ThemedClassName<
|
|
20
|
+
{
|
|
21
|
+
space: Space;
|
|
22
|
+
thread: Thread.Thread;
|
|
23
|
+
context?: Obj.Unknown;
|
|
24
|
+
autoFocusTextbox?: boolean;
|
|
25
|
+
} & Pick<ThreadRootProps, 'current'>
|
|
26
|
+
>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Renders an AutoMerge {@link Thread} as a chat: appends new messages by pushing
|
|
30
|
+
* onto `thread.messages`. Used for comment threads and the meeting in-call chat.
|
|
31
|
+
*/
|
|
32
|
+
export const ThreadContainer = composable<HTMLDivElement, ThreadContainerProps>(
|
|
33
|
+
({ space, thread, context, autoFocusTextbox, current, ...props }, forwardedRef) => {
|
|
34
|
+
const id = Obj.getDXN(thread).toString();
|
|
35
|
+
const identity = useIdentity()!;
|
|
36
|
+
const members = useMembers(space?.id);
|
|
37
|
+
const activity = useStatus(space, id);
|
|
38
|
+
|
|
39
|
+
const messages = useMemo(
|
|
40
|
+
() => thread.messages.map((message) => message.target).filter(isNonNullable),
|
|
41
|
+
[thread.messages],
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
const handleSend = (text: string) => {
|
|
45
|
+
Obj.update(thread, (thread) => {
|
|
46
|
+
thread.messages.push(
|
|
47
|
+
Ref.make(
|
|
48
|
+
Obj.make(Message.Message, {
|
|
49
|
+
created: new Date().toISOString(),
|
|
50
|
+
sender: { identityDid: identity.did },
|
|
51
|
+
blocks: [{ _tag: 'text', text }],
|
|
52
|
+
properties: context ? { context: Ref.make(context) } : undefined,
|
|
53
|
+
}),
|
|
54
|
+
),
|
|
55
|
+
);
|
|
56
|
+
});
|
|
57
|
+
return true;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
return (
|
|
61
|
+
<Chat
|
|
62
|
+
{...composableProps(props)}
|
|
63
|
+
id={id}
|
|
64
|
+
identity={identity}
|
|
65
|
+
members={members}
|
|
66
|
+
messages={messages}
|
|
67
|
+
activity={activity}
|
|
68
|
+
onSend={handleSend}
|
|
69
|
+
autoFocusTextbox={autoFocusTextbox}
|
|
70
|
+
current={current}
|
|
71
|
+
ref={forwardedRef}
|
|
72
|
+
/>
|
|
73
|
+
);
|
|
74
|
+
},
|
|
75
|
+
);
|
package/src/containers/index.ts
CHANGED
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { type ComponentType, lazy } from 'react';
|
|
6
6
|
|
|
7
|
-
export const
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
10
|
-
export const ChatContainer: ComponentType<any> = lazy(() => import('./ChatContainer'));
|
|
7
|
+
export const ChannelChat: ComponentType<any> = lazy(() => import('./ChannelChat'));
|
|
8
|
+
export const ChannelArticle: ComponentType<any> = lazy(() => import('./ChannelArticle'));
|
|
9
|
+
export const ThreadContainer: ComponentType<any> = lazy(() => import('./ThreadContainer'));
|
|
11
10
|
export const ThreadCompanion: ComponentType<any> = lazy(() => import('./ThreadCompanion'));
|
|
12
|
-
export const ThreadSettings: ComponentType<any> = lazy(() => import('./ThreadSettings'));
|
|
@@ -29,7 +29,7 @@ const parser = StreamLanguage.define<{ count: number }>({
|
|
|
29
29
|
const styles = HighlightStyle.define([
|
|
30
30
|
{
|
|
31
31
|
tag: tags.tagName,
|
|
32
|
-
class: mx('dx-tag dx-tag--indigo text-base-
|
|
32
|
+
class: mx('dx-tag dx-tag--indigo text-base-foreground font-medium'),
|
|
33
33
|
},
|
|
34
34
|
]);
|
|
35
35
|
|
|
@@ -8,13 +8,13 @@ import { type Atom, type Registry } from '@effect-atom/atom-react';
|
|
|
8
8
|
|
|
9
9
|
import { Filter, Obj, Query, Relation } from '@dxos/echo';
|
|
10
10
|
import { createDocAccessor, getTextInRange } from '@dxos/echo-db';
|
|
11
|
-
import {
|
|
12
|
-
import { type Markdown } from '@dxos/plugin-markdown
|
|
11
|
+
import { OperationInvoker } from '@dxos/operation';
|
|
12
|
+
import { type Markdown } from '@dxos/plugin-markdown';
|
|
13
13
|
import { AnchoredTo, Thread } from '@dxos/types';
|
|
14
14
|
import { comments, createExternalCommentSync } from '@dxos/ui-editor';
|
|
15
15
|
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { ThreadOperation } from '#types';
|
|
17
|
+
import { type ThreadState } from '#types';
|
|
18
18
|
|
|
19
19
|
// TODO(burdon): Factor out.
|
|
20
20
|
const getName = (doc: Markdown.Document, anchor: string): string | undefined => {
|
|
@@ -73,8 +73,8 @@ export const threads = (
|
|
|
73
73
|
const name = getName(doc, anchor.anchor);
|
|
74
74
|
const thread = Relation.getSource(anchor) as Thread.Thread;
|
|
75
75
|
if (name && name !== thread.name) {
|
|
76
|
-
Obj.
|
|
77
|
-
|
|
76
|
+
Obj.update(thread, (thread) => {
|
|
77
|
+
thread.name = name;
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -130,8 +130,8 @@ export const threads = (
|
|
|
130
130
|
|
|
131
131
|
const thread = query.results.find((object) => Relation.getSource(object).id === id);
|
|
132
132
|
if (thread) {
|
|
133
|
-
Relation.
|
|
134
|
-
|
|
133
|
+
Relation.update(thread, (thread) => {
|
|
134
|
+
thread.anchor = undefined;
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
},
|
|
@@ -139,11 +139,11 @@ export const threads = (
|
|
|
139
139
|
const draft = registry.get(stateAtom).drafts[objectId]?.find((d) => Relation.getDXN(d).toString() === id);
|
|
140
140
|
if (draft) {
|
|
141
141
|
const thread = Relation.getSource(draft) as Thread.Thread;
|
|
142
|
-
Obj.
|
|
143
|
-
|
|
142
|
+
Obj.update(thread, (thread) => {
|
|
143
|
+
thread.name = getName(doc, cursor);
|
|
144
144
|
});
|
|
145
|
-
Relation.
|
|
146
|
-
|
|
145
|
+
Relation.update(draft, (draft) => {
|
|
146
|
+
draft.anchor = cursor;
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -151,11 +151,11 @@ export const threads = (
|
|
|
151
151
|
if (relation) {
|
|
152
152
|
const thread = Relation.getSource(relation);
|
|
153
153
|
if (Obj.instanceOf(Thread.Thread, thread)) {
|
|
154
|
-
Obj.
|
|
155
|
-
|
|
154
|
+
Obj.update(thread, (thread) => {
|
|
155
|
+
thread.name = getName(doc, cursor);
|
|
156
156
|
});
|
|
157
|
-
Relation.
|
|
158
|
-
|
|
157
|
+
Relation.update(relation, (relation) => {
|
|
158
|
+
relation.anchor = cursor;
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
}
|
package/src/hooks/analytics.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { useCallback } from 'react';
|
|
|
6
6
|
|
|
7
7
|
import { useOperationInvoker } from '@dxos/app-framework/ui';
|
|
8
8
|
import { Obj } from '@dxos/echo';
|
|
9
|
-
import { ObservabilityOperation } from '@dxos/plugin-observability
|
|
9
|
+
import { ObservabilityOperation } from '@dxos/plugin-observability';
|
|
10
10
|
import { useOnTransition } from '@dxos/react-ui';
|
|
11
11
|
import { type ContentBlock } from '@dxos/types';
|
|
12
12
|
|
package/src/hooks/index.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
export
|
|
6
|
-
|
|
5
|
+
export * from './blueprints';
|
|
6
|
+
// TODO(wittjosiah): Hooks should not be exported from the plugin package at all.
|
|
7
|
+
// Either refactor callers to not need them or factor them out to a shared package.
|
|
7
8
|
export * from './hooks';
|
|
8
9
|
export * from './meta';
|
|
9
|
-
|
|
10
|
-
export * from './ThreadPlugin';
|
|
10
|
+
export * from './types';
|
package/src/meta.ts
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { type Plugin } from '@dxos/app-framework';
|
|
6
6
|
import { trim } from '@dxos/util';
|
|
7
7
|
|
|
8
|
-
// TODO(wittjosiah): Needs screenshots.
|
|
9
8
|
export const meta: Plugin.Meta = {
|
|
10
9
|
id: 'org.dxos.plugin.thread',
|
|
11
|
-
name: '
|
|
10
|
+
name: 'Threads',
|
|
11
|
+
author: 'DXOS',
|
|
12
12
|
description: trim`
|
|
13
13
|
Multi-modal communication platform supporting text chat, voice, and video conferencing.
|
|
14
14
|
Create threaded conversations and add contextual comments directly on any workspace object.
|
|
@@ -5,18 +5,17 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
|
+
import { Operation } from '@dxos/compute';
|
|
8
9
|
import { Obj, Ref, Relation } from '@dxos/echo';
|
|
9
10
|
import { invariant } from '@dxos/invariant';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { SpaceOperation } from '@dxos/plugin-space/operations';
|
|
11
|
+
import { ObservabilityOperation } from '@dxos/plugin-observability';
|
|
12
|
+
import { SpaceOperation } from '@dxos/plugin-space';
|
|
13
13
|
import { AnchoredTo, Message, Thread } from '@dxos/types';
|
|
14
14
|
|
|
15
|
-
import { AddMessage } from './definitions';
|
|
16
|
-
|
|
17
15
|
import { ThreadCapabilities } from '../types';
|
|
16
|
+
import { ThreadOperation } from '../types';
|
|
18
17
|
|
|
19
|
-
const handler: Operation.WithHandler<typeof AddMessage> = AddMessage.pipe(
|
|
18
|
+
const handler: Operation.WithHandler<typeof ThreadOperation.AddMessage> = ThreadOperation.AddMessage.pipe(
|
|
20
19
|
Operation.withHandler(
|
|
21
20
|
Effect.fnUntraced(function* ({ anchor, subject, sender, text }) {
|
|
22
21
|
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|
|
@@ -31,15 +30,15 @@ const handler: Operation.WithHandler<typeof AddMessage> = AddMessage.pipe(
|
|
|
31
30
|
sender,
|
|
32
31
|
blocks: [{ _tag: 'text', text }],
|
|
33
32
|
});
|
|
34
|
-
Obj.
|
|
35
|
-
|
|
33
|
+
Obj.update(thread, (thread) => {
|
|
34
|
+
thread.messages.push(Ref.make(message));
|
|
36
35
|
});
|
|
37
36
|
|
|
38
37
|
const state = registry.get(stateAtom);
|
|
39
38
|
const draft = state.drafts[subjectId]?.find((a: { id: string }) => a.id === anchor.id);
|
|
40
39
|
if (draft) {
|
|
41
|
-
Obj.
|
|
42
|
-
|
|
40
|
+
Obj.update(thread, (thread) => {
|
|
41
|
+
thread.status = 'active';
|
|
43
42
|
});
|
|
44
43
|
registry.set(stateAtom, {
|
|
45
44
|
...state,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 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 { Database, Feed, Obj } from '@dxos/echo';
|
|
10
|
+
import { createFeedServiceLayer } from '@dxos/echo-db';
|
|
11
|
+
import { invariant } from '@dxos/invariant';
|
|
12
|
+
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
13
|
+
import { Message } from '@dxos/types';
|
|
14
|
+
|
|
15
|
+
import { ThreadOperation } from '../types';
|
|
16
|
+
|
|
17
|
+
const handler: Operation.WithHandler<typeof ThreadOperation.AppendChannelMessage> =
|
|
18
|
+
ThreadOperation.AppendChannelMessage.pipe(
|
|
19
|
+
Operation.withHandler(
|
|
20
|
+
Effect.fnUntraced(function* ({ channel, sender, text }) {
|
|
21
|
+
const db = Obj.getDatabase(channel);
|
|
22
|
+
invariant(db, 'Database not found');
|
|
23
|
+
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
24
|
+
const space = client.spaces.get(db.spaceId);
|
|
25
|
+
invariant(space, 'Space not found');
|
|
26
|
+
|
|
27
|
+
const feed = yield* Database.load(channel.feed);
|
|
28
|
+
const message = Message.make({
|
|
29
|
+
sender,
|
|
30
|
+
blocks: [{ _tag: 'text', text }],
|
|
31
|
+
});
|
|
32
|
+
yield* Feed.append(feed, [message]).pipe(Effect.provide(createFeedServiceLayer(space.queues)));
|
|
33
|
+
}),
|
|
34
|
+
),
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
export default handler;
|
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import { Operation } from '@dxos/
|
|
7
|
+
import { Operation } from '@dxos/compute';
|
|
8
|
+
import { Channel } from '@dxos/types';
|
|
8
9
|
|
|
9
|
-
import {
|
|
10
|
+
import { ThreadOperation } from '../types';
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const handler: Operation.WithHandler<typeof CreateChannel> = CreateChannel.pipe(
|
|
12
|
+
const handler: Operation.WithHandler<typeof ThreadOperation.CreateChannel> = ThreadOperation.CreateChannel.pipe(
|
|
14
13
|
Operation.withHandler((input) =>
|
|
15
14
|
Effect.sync(() => ({
|
|
16
15
|
object: Channel.make({ name: input.name }),
|
|
@@ -7,14 +7,14 @@ import * as Effect from 'effect/Effect';
|
|
|
7
7
|
import * as Function from 'effect/Function';
|
|
8
8
|
|
|
9
9
|
import { computeDiffsWithCursors } from '@dxos/assistant';
|
|
10
|
+
import { Operation } from '@dxos/compute';
|
|
10
11
|
import { Database, Obj, Ref, Relation } from '@dxos/echo';
|
|
11
12
|
import { createDocAccessor } from '@dxos/echo-db';
|
|
12
|
-
import { Operation } from '@dxos/operation';
|
|
13
13
|
import { AnchoredTo, Message, Thread } from '@dxos/types';
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { ThreadOperation } from '../types';
|
|
16
16
|
|
|
17
|
-
const handler: Operation.WithHandler<typeof CreateProposals> = CreateProposals.pipe(
|
|
17
|
+
const handler: Operation.WithHandler<typeof ThreadOperation.CreateProposals> = ThreadOperation.CreateProposals.pipe(
|
|
18
18
|
Operation.withHandler(
|
|
19
19
|
Effect.fn(function* ({ doc, diffs }) {
|
|
20
20
|
const object = yield* Database.load(doc);
|
package/src/operations/create.ts
CHANGED
|
@@ -5,17 +5,16 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
|
-
import {
|
|
8
|
+
import { LayoutOperation } from '@dxos/app-toolkit';
|
|
9
|
+
import { Operation } from '@dxos/compute';
|
|
9
10
|
import { Obj, Relation } from '@dxos/echo';
|
|
10
|
-
import {
|
|
11
|
-
import { DeckOperation } from '@dxos/plugin-deck/operations';
|
|
11
|
+
import { linkedSegment } from '@dxos/react-ui-attention';
|
|
12
12
|
import { AnchoredTo, Thread } from '@dxos/types';
|
|
13
13
|
|
|
14
|
-
import { Create, Select } from './definitions';
|
|
15
|
-
|
|
16
14
|
import { ThreadCapabilities } from '../types';
|
|
15
|
+
import { ThreadOperation } from '../types';
|
|
17
16
|
|
|
18
|
-
const handler: Operation.WithHandler<typeof Create> = Create.pipe(
|
|
17
|
+
const handler: Operation.WithHandler<typeof ThreadOperation.Create> = ThreadOperation.Create.pipe(
|
|
19
18
|
Operation.withHandler(
|
|
20
19
|
Effect.fnUntraced(function* ({ name, anchor: _anchor, subject }) {
|
|
21
20
|
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|
|
@@ -38,9 +37,9 @@ const handler: Operation.WithHandler<typeof Create> = Create.pipe(
|
|
|
38
37
|
},
|
|
39
38
|
});
|
|
40
39
|
|
|
41
|
-
yield* Operation.invoke(Select, { current: Obj.getDXN(thread).toString() });
|
|
42
|
-
yield* Operation.invoke(
|
|
43
|
-
|
|
40
|
+
yield* Operation.invoke(ThreadOperation.Select, { current: Obj.getDXN(thread).toString() });
|
|
41
|
+
yield* Operation.invoke(LayoutOperation.UpdateCompanion, {
|
|
42
|
+
subject: linkedSegment('comments'),
|
|
44
43
|
});
|
|
45
44
|
}),
|
|
46
45
|
),
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
+
import { Operation } from '@dxos/compute';
|
|
7
8
|
import { Obj, Relation } from '@dxos/echo';
|
|
8
9
|
import { invariant } from '@dxos/invariant';
|
|
9
|
-
import {
|
|
10
|
-
import { ObservabilityOperation } from '@dxos/plugin-observability/operations';
|
|
10
|
+
import { ObservabilityOperation } from '@dxos/plugin-observability';
|
|
11
11
|
import { Thread } from '@dxos/types';
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { ThreadOperation } from '../types';
|
|
14
14
|
|
|
15
|
-
const handler: Operation.WithHandler<typeof DeleteMessage> = DeleteMessage.pipe(
|
|
15
|
+
const handler: Operation.WithHandler<typeof ThreadOperation.DeleteMessage> = ThreadOperation.DeleteMessage.pipe(
|
|
16
16
|
Operation.withHandler(
|
|
17
17
|
Effect.fnUntraced(function* ({ subject, anchor, messageId }) {
|
|
18
18
|
const thread = Relation.getSource(anchor) as Thread.Thread;
|
|
@@ -27,12 +27,12 @@ const handler: Operation.WithHandler<typeof DeleteMessage> = DeleteMessage.pipe(
|
|
|
27
27
|
|
|
28
28
|
if (msgIndex === 0 && thread.messages.length === 1) {
|
|
29
29
|
// TODO(wittjosiah): This doesn't support restoring the thread.
|
|
30
|
-
yield* Operation.invoke(Delete, { subject, anchor });
|
|
30
|
+
yield* Operation.invoke(ThreadOperation.Delete, { subject, anchor });
|
|
31
31
|
return { messageIndex: -1 };
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
Obj.
|
|
35
|
-
|
|
34
|
+
Obj.update(thread, (thread) => {
|
|
35
|
+
thread.messages.splice(msgIndex, 1);
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
yield* Operation.schedule(ObservabilityOperation.SendEvent, {
|
package/src/operations/delete.ts
CHANGED
|
@@ -6,16 +6,15 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
|
|
7
7
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
8
|
import { sleep } from '@dxos/async';
|
|
9
|
+
import { Operation } from '@dxos/compute';
|
|
9
10
|
import { Obj, Relation } from '@dxos/echo';
|
|
10
|
-
import {
|
|
11
|
-
import { ObservabilityOperation } from '@dxos/plugin-observability/operations';
|
|
11
|
+
import { ObservabilityOperation } from '@dxos/plugin-observability';
|
|
12
12
|
import { Thread } from '@dxos/types';
|
|
13
13
|
|
|
14
|
-
import { Delete } from './definitions';
|
|
15
|
-
|
|
16
14
|
import { ThreadCapabilities } from '../types';
|
|
15
|
+
import { ThreadOperation } from '../types';
|
|
17
16
|
|
|
18
|
-
const handler: Operation.WithHandler<typeof Delete> = Delete.pipe(
|
|
17
|
+
const handler: Operation.WithHandler<typeof ThreadOperation.Delete> = ThreadOperation.Delete.pipe(
|
|
19
18
|
Operation.withHandler(
|
|
20
19
|
Effect.fnUntraced(function* ({ subject, anchor, thread: _thread }) {
|
|
21
20
|
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|
package/src/operations/index.ts
CHANGED
|
@@ -2,15 +2,13 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { OperationHandlerSet } from '@dxos/
|
|
6
|
-
|
|
7
|
-
export * as ThreadOperation from './definitions';
|
|
5
|
+
import { OperationHandlerSet } from '@dxos/compute';
|
|
8
6
|
|
|
9
7
|
export const ThreadOperationHandlerSet = OperationHandlerSet.lazy(
|
|
10
8
|
() => import('./add-message'),
|
|
9
|
+
() => import('./append-channel-message'),
|
|
11
10
|
() => import('./create'),
|
|
12
11
|
() => import('./create-channel'),
|
|
13
|
-
() => import('./create-channel-thread'),
|
|
14
12
|
() => import('./create-proposals'),
|
|
15
13
|
() => import('./delete'),
|
|
16
14
|
() => import('./delete-message'),
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import { Operation } from '@dxos/
|
|
7
|
+
import { Operation } from '@dxos/compute';
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { ThreadOperation } from '../types';
|
|
10
10
|
|
|
11
|
-
const handler: Operation.WithHandler<typeof OnCreateSpace> = OnCreateSpace.pipe(
|
|
11
|
+
const handler: Operation.WithHandler<typeof ThreadOperation.OnCreateSpace> = ThreadOperation.OnCreateSpace.pipe(
|
|
12
12
|
Operation.withHandler(
|
|
13
13
|
Effect.fnUntraced(function* ({ space, isDefault }) {
|
|
14
14
|
if (isDefault) {
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
const { object: channel } = yield* Operation.invoke(CreateChannel, {
|
|
18
|
+
const { object: channel } = yield* Operation.invoke(ThreadOperation.CreateChannel, {
|
|
19
19
|
name: 'General',
|
|
20
20
|
spaceId: space.id,
|
|
21
21
|
});
|
|
@@ -4,23 +4,23 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
+
import { Operation } from '@dxos/compute';
|
|
7
8
|
import { Obj, Ref, Relation } from '@dxos/echo';
|
|
8
9
|
import { invariant } from '@dxos/invariant';
|
|
9
|
-
import {
|
|
10
|
-
import { ObservabilityOperation } from '@dxos/plugin-observability/operations';
|
|
10
|
+
import { ObservabilityOperation } from '@dxos/plugin-observability';
|
|
11
11
|
import { Thread } from '@dxos/types';
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { ThreadOperation } from '../types';
|
|
14
14
|
|
|
15
|
-
const handler: Operation.WithHandler<typeof RestoreMessage> = RestoreMessage.pipe(
|
|
15
|
+
const handler: Operation.WithHandler<typeof ThreadOperation.RestoreMessage> = ThreadOperation.RestoreMessage.pipe(
|
|
16
16
|
Operation.withHandler(
|
|
17
17
|
Effect.fnUntraced(function* ({ anchor, message, messageIndex }) {
|
|
18
18
|
const thread = Relation.getSource(anchor) as Thread.Thread;
|
|
19
19
|
const db = Obj.getDatabase(thread);
|
|
20
20
|
invariant(db, 'Database not found');
|
|
21
21
|
|
|
22
|
-
Obj.
|
|
23
|
-
|
|
22
|
+
Obj.update(thread, (thread) => {
|
|
23
|
+
thread.messages.splice(messageIndex, 0, Ref.make(message));
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
yield* Operation.schedule(ObservabilityOperation.SendEvent, {
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { sleep } from '@dxos/async';
|
|
8
|
+
import { Operation } from '@dxos/compute';
|
|
8
9
|
import { Obj } from '@dxos/echo';
|
|
9
|
-
import {
|
|
10
|
-
import { ObservabilityOperation } from '@dxos/plugin-observability/operations';
|
|
10
|
+
import { ObservabilityOperation } from '@dxos/plugin-observability';
|
|
11
11
|
|
|
12
|
-
import {
|
|
12
|
+
import { ThreadOperation } from '../types';
|
|
13
13
|
|
|
14
|
-
const handler: Operation.WithHandler<typeof Restore> = Restore.pipe(
|
|
14
|
+
const handler: Operation.WithHandler<typeof ThreadOperation.Restore> = ThreadOperation.Restore.pipe(
|
|
15
15
|
Operation.withHandler(
|
|
16
16
|
Effect.fnUntraced(function* ({ thread, anchor }) {
|
|
17
17
|
const db = Obj.getDatabase(thread);
|
package/src/operations/select.ts
CHANGED
|
@@ -5,13 +5,12 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
|
-
import { Operation } from '@dxos/
|
|
9
|
-
|
|
10
|
-
import { Select } from './definitions';
|
|
8
|
+
import { Operation } from '@dxos/compute';
|
|
11
9
|
|
|
12
10
|
import { ThreadCapabilities } from '../types';
|
|
11
|
+
import { ThreadOperation } from '../types';
|
|
13
12
|
|
|
14
|
-
const handler: Operation.WithHandler<typeof Select> = Select.pipe(
|
|
13
|
+
const handler: Operation.WithHandler<typeof ThreadOperation.Select> = ThreadOperation.Select.pipe(
|
|
15
14
|
Operation.withHandler(
|
|
16
15
|
Effect.fnUntraced(function* (input) {
|
|
17
16
|
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|