@dxos/plugin-thread 0.8.4-main.bc674ce → 0.8.4-main.c351d160a8
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-BO3SLD4E.mjs +182 -0
- package/dist/lib/browser/CallDebugPanel-BO3SLD4E.mjs.map +7 -0
- package/dist/lib/browser/CallSidebar-KSOBZJGD.mjs +36 -0
- package/dist/lib/browser/CallSidebar-KSOBZJGD.mjs.map +7 -0
- package/dist/lib/browser/ChannelContainer-EQZXMQMV.mjs +17 -0
- package/dist/lib/browser/ChannelContainer-EQZXMQMV.mjs.map +7 -0
- package/dist/lib/browser/ChatContainer-VPCJ2AMF.mjs +18 -0
- package/dist/lib/browser/ChatContainer-VPCJ2AMF.mjs.map +7 -0
- package/dist/lib/browser/ThreadCompanion-7GTSEJQT.mjs +209 -0
- package/dist/lib/browser/ThreadCompanion-7GTSEJQT.mjs.map +7 -0
- package/dist/lib/browser/ThreadSettings-VL3HBE62.mjs +20 -0
- package/dist/lib/browser/ThreadSettings-VL3HBE62.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-7C2QW32W.mjs → app-graph-builder-ECTCB36F.mjs} +25 -24
- package/dist/lib/browser/app-graph-builder-ECTCB36F.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-UJ4QH3LV.mjs +17 -0
- package/dist/lib/browser/blueprint-definition-UJ4QH3LV.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +3 -3
- package/dist/lib/browser/{call-manager-4P536YNX.mjs → call-manager-3P6D7IH7.mjs} +5 -4
- package/dist/lib/browser/call-manager-3P6D7IH7.mjs.map +7 -0
- package/dist/lib/browser/chunk-2M2HV5K4.mjs +35 -0
- package/dist/lib/browser/chunk-2M2HV5K4.mjs.map +7 -0
- package/dist/lib/browser/chunk-7GONB2BI.mjs +219 -0
- package/dist/lib/browser/chunk-7GONB2BI.mjs.map +7 -0
- package/dist/lib/browser/chunk-D7PVIURR.mjs +1094 -0
- package/dist/lib/browser/chunk-D7PVIURR.mjs.map +7 -0
- package/dist/lib/browser/{chunk-2FIHSX35.mjs → chunk-FGEVENLN.mjs} +34 -47
- package/dist/lib/browser/chunk-FGEVENLN.mjs.map +7 -0
- package/dist/lib/browser/{chunk-DLO2G3DM.mjs → chunk-HDLDMR54.mjs} +2 -2
- package/dist/lib/browser/chunk-HDLDMR54.mjs.map +7 -0
- package/dist/lib/browser/{chunk-ZFLSTQSE.mjs → chunk-J75MXJZN.mjs} +26 -27
- package/dist/lib/browser/chunk-J75MXJZN.mjs.map +7 -0
- package/dist/lib/browser/chunk-JMH6UT5J.mjs +127 -0
- package/dist/lib/browser/chunk-JMH6UT5J.mjs.map +7 -0
- package/dist/lib/browser/{markdown-QMJLRR6R.mjs → chunk-PV5GYINX.mjs} +3 -78
- package/dist/lib/browser/chunk-PV5GYINX.mjs.map +7 -0
- package/dist/lib/browser/chunk-QVJO3VJ4.mjs +20 -0
- package/dist/lib/browser/chunk-QVJO3VJ4.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +64 -83
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/markdown-J6H6EIZE.mjs +83 -0
- package/dist/lib/browser/markdown-J6H6EIZE.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{operation-resolver-T63EP5TY.mjs → operation-resolver-3JHO5DFX.mjs} +22 -29
- package/dist/lib/browser/operation-resolver-3JHO5DFX.mjs.map +7 -0
- package/dist/lib/browser/{react-root-56MJI77R.mjs → react-root-AM3J34AK.mjs} +8 -6
- package/dist/lib/browser/react-root-AM3J34AK.mjs.map +7 -0
- package/dist/lib/browser/{react-surface-DMBHQOXJ.mjs → react-surface-VNGEEVYP.mjs} +40 -35
- package/dist/lib/browser/react-surface-VNGEEVYP.mjs.map +7 -0
- package/dist/lib/browser/{settings-WZMJMML3.mjs → settings-HYNYTOSX.mjs} +8 -5
- package/dist/lib/browser/settings-HYNYTOSX.mjs.map +7 -0
- package/dist/lib/browser/{state-SJR2GL5G.mjs → state-NQZQCDFD.mjs} +3 -2
- package/dist/lib/browser/types/index.mjs +2 -1
- package/dist/lib/node-esm/CallDebugPanel-7OIL5FVT.mjs +183 -0
- package/dist/lib/node-esm/CallDebugPanel-7OIL5FVT.mjs.map +7 -0
- package/dist/lib/node-esm/CallSidebar-Y2I3UBBA.mjs +37 -0
- package/dist/lib/node-esm/CallSidebar-Y2I3UBBA.mjs.map +7 -0
- package/dist/lib/node-esm/ChannelContainer-WB5YYZKU.mjs +18 -0
- package/dist/lib/node-esm/ChannelContainer-WB5YYZKU.mjs.map +7 -0
- package/dist/lib/node-esm/ChatContainer-CP6PNF53.mjs +19 -0
- package/dist/lib/node-esm/ChatContainer-CP6PNF53.mjs.map +7 -0
- package/dist/lib/node-esm/ThreadCompanion-5MM3XACT.mjs +210 -0
- package/dist/lib/node-esm/ThreadCompanion-5MM3XACT.mjs.map +7 -0
- package/dist/lib/node-esm/ThreadSettings-TCZMYH3J.mjs +21 -0
- package/dist/lib/node-esm/ThreadSettings-TCZMYH3J.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-builder-JCSVFRVY.mjs → app-graph-builder-HSX4GHGQ.mjs} +25 -24
- package/dist/lib/node-esm/app-graph-builder-HSX4GHGQ.mjs.map +7 -0
- package/dist/lib/node-esm/{blueprint-definition-MZZXXL37.mjs → blueprint-definition-SABUBK23.mjs} +6 -6
- package/dist/lib/node-esm/blueprint-definition-SABUBK23.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +3 -3
- package/dist/lib/node-esm/{call-manager-FMLRR5S5.mjs → call-manager-ENAYC5L3.mjs} +5 -4
- package/dist/lib/node-esm/call-manager-ENAYC5L3.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-35G7Q243.mjs +1095 -0
- package/dist/lib/node-esm/chunk-35G7Q243.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-4BOUHFEC.mjs +128 -0
- package/dist/lib/node-esm/chunk-4BOUHFEC.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-A3SWGVF3.mjs +37 -0
- package/dist/lib/node-esm/chunk-A3SWGVF3.mjs.map +7 -0
- package/dist/lib/node-esm/{markdown-L6LLQLIN.mjs → chunk-B7POKKGL.mjs} +3 -78
- package/dist/lib/node-esm/chunk-B7POKKGL.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-CSIDVJEC.mjs +220 -0
- package/dist/lib/node-esm/chunk-CSIDVJEC.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-WMWUXWAS.mjs → chunk-HGIUKAXD.mjs} +34 -47
- package/dist/lib/node-esm/chunk-HGIUKAXD.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-N2T5KLKB.mjs +22 -0
- package/dist/lib/node-esm/chunk-N2T5KLKB.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-AQHPP6ZX.mjs → chunk-NDSI2G7B.mjs} +26 -26
- package/dist/lib/node-esm/chunk-NDSI2G7B.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-KRBZBJRI.mjs → chunk-YN2Y7GPW.mjs} +2 -2
- package/dist/lib/node-esm/chunk-YN2Y7GPW.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +64 -83
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/markdown-P2WSGZJB.mjs +84 -0
- package/dist/lib/node-esm/markdown-P2WSGZJB.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{operation-resolver-G6GZPBRP.mjs → operation-resolver-I3RCYCC4.mjs} +22 -29
- package/dist/lib/node-esm/operation-resolver-I3RCYCC4.mjs.map +7 -0
- package/dist/lib/node-esm/{react-root-V4W4X5GL.mjs → react-root-TFDOAH6Z.mjs} +8 -6
- package/dist/lib/node-esm/react-root-TFDOAH6Z.mjs.map +7 -0
- package/dist/lib/node-esm/{react-surface-ELDSTUA3.mjs → react-surface-3C7PBXXD.mjs} +40 -35
- package/dist/lib/node-esm/react-surface-3C7PBXXD.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-37CO3SNR.mjs → settings-FV2O6HDY.mjs} +8 -5
- package/dist/lib/node-esm/settings-FV2O6HDY.mjs.map +7 -0
- package/dist/lib/node-esm/{state-5R3TZJQE.mjs → state-IODNXJEB.mjs} +3 -2
- package/dist/lib/{browser/state-SJR2GL5G.mjs.map → node-esm/state-IODNXJEB.mjs.map} +1 -1
- package/dist/lib/node-esm/types/index.mjs +2 -1
- package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/index.d.ts +1 -1
- package/dist/types/src/blueprints/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/thread-blueprint.d.ts +3 -20
- package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +3 -6
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +1 -1
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/call-manager/call-manager.d.ts +1 -1
- package/dist/types/src/capabilities/call-manager/call-manager.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +0 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown/markdown.d.ts +1 -1
- package/dist/types/src/capabilities/markdown/markdown.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +2 -2
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-root/react-root.d.ts +1 -1
- package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings/index.d.ts +1 -1
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings/settings.d.ts +3 -2
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/state/state.d.ts +1 -1
- package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts +13 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts.map +1 -0
- package/dist/types/src/components/{Comments.stories.d.ts → CommentsPanel/CommentsPanel.stories.d.ts} +4 -2
- 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/MessagePanel/MessagePanel.d.ts +15 -0
- package/dist/types/src/components/MessagePanel/MessagePanel.d.ts.map +1 -0
- package/dist/types/src/components/MessagePanel/index.d.ts +2 -0
- package/dist/types/src/components/MessagePanel/index.d.ts.map +1 -0
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +2 -0
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.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/{ResponsiveContainer.stories.d.ts → ResponsivePanel.stories.d.ts} +5 -3
- 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/index.d.ts +2 -9
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/{components → containers/CallDebugPanel}/CallDebugPanel.d.ts +1 -1
- package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts.map +1 -0
- package/dist/types/src/containers/CallDebugPanel/index.d.ts +3 -0
- package/dist/types/src/containers/CallDebugPanel/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/CallSidebar}/CallSidebar.d.ts +0 -1
- package/dist/types/src/containers/CallSidebar/CallSidebar.d.ts.map +1 -0
- package/dist/types/src/containers/CallSidebar/index.d.ts +3 -0
- package/dist/types/src/containers/CallSidebar/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/ChannelContainer}/ChannelContainer.d.ts +3 -4
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +1 -0
- package/dist/types/src/{components → containers/ChannelContainer}/ChannelContainer.stories.d.ts +4 -2
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelContainer/index.d.ts +3 -0
- package/dist/types/src/containers/ChannelContainer/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/ChatContainer}/ChatContainer.d.ts +4 -5
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +1 -0
- package/dist/types/src/{components/Chat.stories.d.ts → containers/ChatContainer/ChatContainer.stories.d.ts} +4 -2
- package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ChatContainer/index.d.ts +4 -0
- package/dist/types/src/containers/ChatContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts +6 -0
- package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadCompanion/index.d.ts +3 -0
- package/dist/types/src/containers/ThreadCompanion/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/ThreadSettings}/ThreadSettings.d.ts +1 -1
- package/dist/types/src/containers/ThreadSettings/ThreadSettings.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadSettings/index.d.ts +3 -0
- package/dist/types/src/containers/ThreadSettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +8 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/{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/functions/create-proposals.d.ts +8 -1
- package/dist/types/src/functions/create-proposals.d.ts.map +1 -1
- package/dist/types/src/functions/index.d.ts +13 -1
- package/dist/types/src/functions/index.d.ts.map +1 -1
- package/dist/types/src/hooks/analytics.d.ts.map +1 -1
- 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/stories.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +2 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Channel.d.ts +25 -9
- package/dist/types/src/types/Channel.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +182 -105
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +67 -65
- package/src/ThreadPlugin.tsx +33 -49
- package/src/blueprints/index.ts +1 -1
- package/src/blueprints/thread-blueprint.ts +14 -6
- package/src/calls-service.stories.tsx +2 -2
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +20 -18
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +6 -12
- package/src/capabilities/call-manager/call-manager.ts +2 -2
- package/src/capabilities/index.ts +0 -1
- package/src/capabilities/markdown/markdown.ts +11 -13
- package/src/capabilities/operation-resolver/operation-resolver.ts +13 -21
- package/src/capabilities/react-root/react-root.tsx +2 -2
- package/src/capabilities/react-surface/react-surface.tsx +28 -24
- package/src/capabilities/settings/settings.ts +3 -2
- package/src/components/Call/Call.tsx +1 -1
- package/src/components/Call/Toolbar.tsx +6 -7
- package/src/components/{Comments.stories.tsx → CommentsPanel/CommentsPanel.stories.tsx} +12 -12
- package/src/components/{CommentsContainer.tsx → CommentsPanel/CommentsPanel.tsx} +14 -13
- package/src/components/{CommentsThreadContainer.tsx → CommentsPanel/CommentsThread.tsx} +12 -13
- package/src/components/CommentsPanel/index.ts +6 -0
- package/src/components/Lobby/Lobby.tsx +4 -4
- package/src/components/Media/VideoObject.stories.tsx +6 -6
- package/src/components/Media/VideoObject.tsx +1 -1
- package/src/components/{MessageContainer.tsx → MessagePanel/MessagePanel.tsx} +16 -16
- package/src/components/MessagePanel/index.ts +5 -0
- package/src/components/Participant/Participant.tsx +1 -1
- package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +4 -4
- package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +8 -8
- 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} +5 -5
- package/src/components/ResponsiveGrid/index.ts +1 -1
- package/src/components/index.ts +2 -10
- package/src/{components → containers/CallDebugPanel}/CallDebugPanel.tsx +4 -4
- package/src/containers/CallDebugPanel/index.ts +7 -0
- package/src/{components → containers/CallSidebar}/CallSidebar.tsx +4 -7
- package/src/containers/CallSidebar/index.ts +7 -0
- package/src/{components → containers/ChannelContainer}/ChannelContainer.stories.tsx +11 -13
- package/src/{components → containers/ChannelContainer}/ChannelContainer.tsx +58 -43
- package/src/containers/ChannelContainer/index.ts +7 -0
- package/src/{components/Chat.stories.tsx → containers/ChatContainer/ChatContainer.stories.tsx} +20 -18
- package/src/{components → containers/ChatContainer}/ChatContainer.tsx +27 -37
- package/src/containers/ChatContainer/index.ts +8 -0
- package/src/{components → containers/ThreadCompanion}/ThreadCompanion.tsx +50 -44
- package/src/containers/ThreadCompanion/index.ts +7 -0
- package/src/{components → containers/ThreadSettings}/ThreadSettings.tsx +5 -4
- package/src/containers/ThreadSettings/index.ts +7 -0
- package/src/containers/index.ts +12 -0
- package/src/{components/command-extension.ts → extensions/command.ts} +1 -1
- package/src/extensions/index.ts +1 -0
- package/src/functions/create-proposals.ts +10 -10
- package/src/functions/index.ts +5 -1
- package/src/hooks/analytics.ts +2 -1
- package/src/meta.ts +2 -2
- package/src/testing/stories.ts +2 -1
- package/src/translations.ts +1 -0
- package/src/types/Channel.ts +10 -4
- package/src/types/capabilities.ts +5 -5
- package/src/types/types.ts +18 -18
- package/dist/lib/browser/app-graph-builder-7C2QW32W.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-UQ63QKQG.mjs +0 -17
- package/dist/lib/browser/blueprint-definition-UQ63QKQG.mjs.map +0 -7
- package/dist/lib/browser/call-manager-4P536YNX.mjs.map +0 -7
- package/dist/lib/browser/chunk-2FIHSX35.mjs.map +0 -7
- package/dist/lib/browser/chunk-DLO2G3DM.mjs.map +0 -7
- package/dist/lib/browser/chunk-YSHXWAL3.mjs +0 -1815
- package/dist/lib/browser/chunk-YSHXWAL3.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZFLSTQSE.mjs.map +0 -7
- package/dist/lib/browser/markdown-QMJLRR6R.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-T63EP5TY.mjs.map +0 -7
- package/dist/lib/browser/react-root-56MJI77R.mjs.map +0 -7
- package/dist/lib/browser/react-surface-DMBHQOXJ.mjs.map +0 -7
- package/dist/lib/browser/repair-6OZ75AUU.mjs +0 -38
- package/dist/lib/browser/repair-6OZ75AUU.mjs.map +0 -7
- package/dist/lib/browser/settings-WZMJMML3.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-JCSVFRVY.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-MZZXXL37.mjs.map +0 -7
- package/dist/lib/node-esm/call-manager-FMLRR5S5.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-7XQLXMX7.mjs +0 -1816
- package/dist/lib/node-esm/chunk-7XQLXMX7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-AQHPP6ZX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KRBZBJRI.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-WMWUXWAS.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-L6LLQLIN.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-G6GZPBRP.mjs.map +0 -7
- package/dist/lib/node-esm/react-root-V4W4X5GL.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-ELDSTUA3.mjs.map +0 -7
- package/dist/lib/node-esm/repair-6777EPOM.mjs +0 -39
- package/dist/lib/node-esm/repair-6777EPOM.mjs.map +0 -7
- package/dist/lib/node-esm/settings-37CO3SNR.mjs.map +0 -7
- 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/components/CallDebugPanel.d.ts.map +0 -1
- package/dist/types/src/components/CallSidebar.d.ts.map +0 -1
- package/dist/types/src/components/ChannelContainer.d.ts.map +0 -1
- package/dist/types/src/components/ChannelContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/Chat.stories.d.ts.map +0 -1
- package/dist/types/src/components/ChatContainer.d.ts.map +0 -1
- 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 +0 -15
- 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.map +0 -1
- package/dist/types/src/components/ThreadCompanion.d.ts +0 -5
- package/dist/types/src/components/ThreadCompanion.d.ts.map +0 -1
- package/dist/types/src/components/ThreadSettings.d.ts.map +0 -1
- package/dist/types/src/components/command-extension.d.ts.map +0 -1
- package/dist/types/src/components/testing.d.ts.map +0 -1
- package/src/capabilities/repair/index.ts +0 -7
- package/src/capabilities/repair/repair.ts +0 -51
- /package/dist/lib/{node-esm/state-5R3TZJQE.mjs.map → browser/state-NQZQCDFD.mjs.map} +0 -0
- /package/src/{components/testing.ts → testing/data.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-thread",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.c351d160a8",
|
|
4
4
|
"description": "DXOS Threads Surface plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -14,21 +14,21 @@
|
|
|
14
14
|
"type": "module",
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
|
+
"source": "./src/index.ts",
|
|
17
18
|
"browser": "./dist/lib/browser/index.mjs",
|
|
18
19
|
"node": "./dist/lib/node-esm/index.mjs",
|
|
19
|
-
"source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/src/index.d.ts"
|
|
21
21
|
},
|
|
22
22
|
"./blueprints": {
|
|
23
|
+
"source": "./src/blueprints/index.ts",
|
|
23
24
|
"browser": "./dist/lib/browser/blueprints/index.mjs",
|
|
24
25
|
"node": "./dist/lib/node-esm/blueprints/index.mjs",
|
|
25
|
-
"source": "./src/blueprints/index.ts",
|
|
26
26
|
"types": "./dist/types/src/blueprints/index.d.ts"
|
|
27
27
|
},
|
|
28
28
|
"./types": {
|
|
29
|
+
"source": "./src/types/index.ts",
|
|
29
30
|
"browser": "./dist/lib/browser/types/index.mjs",
|
|
30
31
|
"node": "./dist/lib/node-esm/types/index.mjs",
|
|
31
|
-
"source": "./src/types/index.ts",
|
|
32
32
|
"types": "./dist/types/src/types/index.d.ts"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"@codemirror/language": "^6.11.3",
|
|
52
52
|
"@codemirror/state": "^6.5.2",
|
|
53
53
|
"@codemirror/view": "^6.38.4",
|
|
54
|
-
"@effect-atom/atom": "^0.
|
|
55
|
-
"@effect-atom/atom-react": "^0.
|
|
56
|
-
"@effect/ai": "0.
|
|
57
|
-
"@effect/experimental": "0.
|
|
54
|
+
"@effect-atom/atom": "^0.5.1",
|
|
55
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
56
|
+
"@effect/ai": "0.33.2",
|
|
57
|
+
"@effect/experimental": "0.58.0",
|
|
58
58
|
"@peermetrics/webrtc-stats": "5.7.1",
|
|
59
59
|
"date-fns": "^3.3.1",
|
|
60
60
|
"extendable-media-recorder": "^9.2.19",
|
|
@@ -62,73 +62,75 @@
|
|
|
62
62
|
"md5-hex": "5.0.0",
|
|
63
63
|
"react-resize-detector": "^11.0.1",
|
|
64
64
|
"wavefile": "^11.0.0",
|
|
65
|
-
"@dxos/app-
|
|
66
|
-
"@dxos/assistant": "0.8.4-main.
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/devtools": "0.8.4-main.
|
|
73
|
-
"@dxos/display-name": "0.8.4-main.
|
|
74
|
-
"@dxos/echo": "0.8.4-main.
|
|
75
|
-
"@dxos/echo-
|
|
76
|
-
"@dxos/
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/keys": "0.8.4-main.
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/log": "0.8.4-main.
|
|
81
|
-
"@dxos/plugin-attention": "0.8.4-main.
|
|
82
|
-
"@dxos/
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/plugin-
|
|
85
|
-
"@dxos/plugin-deck": "0.8.4-main.
|
|
86
|
-
"@dxos/plugin-markdown": "0.8.4-main.
|
|
87
|
-
"@dxos/plugin-
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/plugin-
|
|
92
|
-
"@dxos/react-ui-
|
|
93
|
-
"@dxos/react-ui-
|
|
94
|
-
"@dxos/react-ui-
|
|
95
|
-
"@dxos/react-ui-
|
|
96
|
-
"@dxos/react-ui-menu": "0.8.4-main.
|
|
97
|
-
"@dxos/react-ui-
|
|
98
|
-
"@dxos/react-ui-
|
|
99
|
-
"@dxos/react-ui-
|
|
100
|
-
"@dxos/react-ui-
|
|
101
|
-
"@dxos/react-ui-
|
|
102
|
-
"@dxos/
|
|
103
|
-
"@dxos/
|
|
104
|
-
"@dxos/
|
|
105
|
-
"@dxos/
|
|
106
|
-
"@dxos/
|
|
65
|
+
"@dxos/app-toolkit": "0.8.4-main.c351d160a8",
|
|
66
|
+
"@dxos/assistant": "0.8.4-main.c351d160a8",
|
|
67
|
+
"@dxos/async": "0.8.4-main.c351d160a8",
|
|
68
|
+
"@dxos/blueprints": "0.8.4-main.c351d160a8",
|
|
69
|
+
"@dxos/codec-protobuf": "0.8.4-main.c351d160a8",
|
|
70
|
+
"@dxos/context": "0.8.4-main.c351d160a8",
|
|
71
|
+
"@dxos/debug": "0.8.4-main.c351d160a8",
|
|
72
|
+
"@dxos/devtools": "0.8.4-main.c351d160a8",
|
|
73
|
+
"@dxos/display-name": "0.8.4-main.c351d160a8",
|
|
74
|
+
"@dxos/echo": "0.8.4-main.c351d160a8",
|
|
75
|
+
"@dxos/echo-db": "0.8.4-main.c351d160a8",
|
|
76
|
+
"@dxos/effect": "0.8.4-main.c351d160a8",
|
|
77
|
+
"@dxos/functions": "0.8.4-main.c351d160a8",
|
|
78
|
+
"@dxos/keys": "0.8.4-main.c351d160a8",
|
|
79
|
+
"@dxos/invariant": "0.8.4-main.c351d160a8",
|
|
80
|
+
"@dxos/log": "0.8.4-main.c351d160a8",
|
|
81
|
+
"@dxos/plugin-attention": "0.8.4-main.c351d160a8",
|
|
82
|
+
"@dxos/operation": "0.8.4-main.c351d160a8",
|
|
83
|
+
"@dxos/plugin-client": "0.8.4-main.c351d160a8",
|
|
84
|
+
"@dxos/plugin-graph": "0.8.4-main.c351d160a8",
|
|
85
|
+
"@dxos/plugin-deck": "0.8.4-main.c351d160a8",
|
|
86
|
+
"@dxos/plugin-markdown": "0.8.4-main.c351d160a8",
|
|
87
|
+
"@dxos/plugin-observability": "0.8.4-main.c351d160a8",
|
|
88
|
+
"@dxos/echo-react": "0.8.4-main.c351d160a8",
|
|
89
|
+
"@dxos/plugin-settings": "0.8.4-main.c351d160a8",
|
|
90
|
+
"@dxos/protocols": "0.8.4-main.c351d160a8",
|
|
91
|
+
"@dxos/plugin-space": "0.8.4-main.c351d160a8",
|
|
92
|
+
"@dxos/react-ui-dnd": "0.8.4-main.c351d160a8",
|
|
93
|
+
"@dxos/react-ui-attention": "0.8.4-main.c351d160a8",
|
|
94
|
+
"@dxos/react-ui-form": "0.8.4-main.c351d160a8",
|
|
95
|
+
"@dxos/react-ui-editor": "0.8.4-main.c351d160a8",
|
|
96
|
+
"@dxos/react-ui-menu": "0.8.4-main.c351d160a8",
|
|
97
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.c351d160a8",
|
|
98
|
+
"@dxos/react-ui-sfx": "0.8.4-main.c351d160a8",
|
|
99
|
+
"@dxos/react-ui-stack": "0.8.4-main.c351d160a8",
|
|
100
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.c351d160a8",
|
|
101
|
+
"@dxos/react-ui-tabs": "0.8.4-main.c351d160a8",
|
|
102
|
+
"@dxos/react-ui-thread": "0.8.4-main.c351d160a8",
|
|
103
|
+
"@dxos/schema": "0.8.4-main.c351d160a8",
|
|
104
|
+
"@dxos/types": "0.8.4-main.c351d160a8",
|
|
105
|
+
"@dxos/react-client": "0.8.4-main.c351d160a8",
|
|
106
|
+
"@dxos/ui-editor": "0.8.4-main.c351d160a8",
|
|
107
|
+
"@dxos/app-framework": "0.8.4-main.c351d160a8",
|
|
108
|
+
"@dxos/util": "0.8.4-main.c351d160a8"
|
|
107
109
|
},
|
|
108
110
|
"devDependencies": {
|
|
109
|
-
"@effect-atom/atom-react": "^0.
|
|
110
|
-
"@effect/platform": "0.
|
|
111
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
112
|
+
"@effect/platform": "0.94.4",
|
|
111
113
|
"@types/react": "~19.2.7",
|
|
112
114
|
"@types/react-dom": "~19.2.3",
|
|
113
|
-
"effect": "3.19.
|
|
115
|
+
"effect": "3.19.16",
|
|
114
116
|
"react": "~19.2.3",
|
|
115
117
|
"react-dom": "~19.2.3",
|
|
116
|
-
"vite": "7.1.
|
|
117
|
-
"@dxos/plugin-
|
|
118
|
-
"@dxos/random": "0.8.4-main.
|
|
119
|
-
"@dxos/plugin-
|
|
120
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
121
|
-
"@dxos/
|
|
122
|
-
"@dxos/
|
|
118
|
+
"vite": "^7.1.11",
|
|
119
|
+
"@dxos/plugin-testing": "0.8.4-main.c351d160a8",
|
|
120
|
+
"@dxos/random": "0.8.4-main.c351d160a8",
|
|
121
|
+
"@dxos/plugin-theme": "0.8.4-main.c351d160a8",
|
|
122
|
+
"@dxos/react-ui": "0.8.4-main.c351d160a8",
|
|
123
|
+
"@dxos/ui-theme": "0.8.4-main.c351d160a8",
|
|
124
|
+
"@dxos/storybook-utils": "0.8.4-main.c351d160a8"
|
|
123
125
|
},
|
|
124
126
|
"peerDependencies": {
|
|
125
|
-
"@effect-atom/atom-react": "^0.
|
|
126
|
-
"@effect/platform": "0.
|
|
127
|
-
"effect": "3.19.
|
|
127
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
128
|
+
"@effect/platform": "0.94.4",
|
|
129
|
+
"effect": "3.19.16",
|
|
128
130
|
"react": "~19.2.3",
|
|
129
131
|
"react-dom": "~19.2.3",
|
|
130
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
131
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
132
|
+
"@dxos/react-ui": "0.8.4-main.c351d160a8",
|
|
133
|
+
"@dxos/ui-theme": "0.8.4-main.c351d160a8"
|
|
132
134
|
},
|
|
133
135
|
"publishConfig": {
|
|
134
136
|
"access": "public"
|
package/src/ThreadPlugin.tsx
CHANGED
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
|
+
import * as Option from 'effect/Option';
|
|
6
7
|
|
|
7
|
-
import { Capability,
|
|
8
|
-
import {
|
|
8
|
+
import { Capability, Plugin } from '@dxos/app-framework';
|
|
9
|
+
import { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';
|
|
10
|
+
import { Annotation, Ref, Type } from '@dxos/echo';
|
|
9
11
|
import { Operation } from '@dxos/operation';
|
|
10
|
-
import {
|
|
12
|
+
import { ClientEvents } from '@dxos/plugin-client';
|
|
11
13
|
import { MarkdownEvents } from '@dxos/plugin-markdown';
|
|
12
14
|
import { SpaceCapabilities, SpaceEvents } from '@dxos/plugin-space';
|
|
13
15
|
import { type CreateObject } from '@dxos/plugin-space/types';
|
|
@@ -22,7 +24,6 @@ import {
|
|
|
22
24
|
OperationResolver,
|
|
23
25
|
ReactRoot,
|
|
24
26
|
ReactSurface,
|
|
25
|
-
Repair,
|
|
26
27
|
ThreadState,
|
|
27
28
|
} from './capabilities';
|
|
28
29
|
import { THREAD_ITEM, meta } from './meta';
|
|
@@ -35,33 +36,15 @@ import { Channel, ThreadOperation } from './types';
|
|
|
35
36
|
// TODO(wittjosiah): Rename to ChatPlugin.
|
|
36
37
|
// TODO(wittjosiah): Enabling comments should likely be factored out of this plugin but depend on it's capabilities.
|
|
37
38
|
export const ThreadPlugin = Plugin.define(meta).pipe(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
activate: CallManager,
|
|
42
|
-
}),
|
|
43
|
-
// TODO(wittjosiah): Currently not used but leaving because there will likely be settings for threads again.
|
|
44
|
-
// Plugin.addModule({
|
|
45
|
-
// id: 'settings',
|
|
46
|
-
// activatesOn: Events.SetupSettings,
|
|
47
|
-
// activate: ThreadSettings,
|
|
48
|
-
// }),
|
|
49
|
-
Plugin.addModule({
|
|
50
|
-
id: 'state',
|
|
51
|
-
// TODO(wittjosiah): Does not integrate with settings store.
|
|
52
|
-
// Should this be a different event?
|
|
53
|
-
// Should settings store be renamed to be more generic?
|
|
54
|
-
activatesOn: Common.ActivationEvent.SetupSettings,
|
|
55
|
-
activate: ThreadState,
|
|
56
|
-
}),
|
|
57
|
-
Common.Plugin.addTranslationsModule({ translations: [...translations, ...threadTranslations] }),
|
|
58
|
-
Common.Plugin.addMetadataModule({
|
|
39
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
40
|
+
AppPlugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
|
|
41
|
+
AppPlugin.addMetadataModule({
|
|
59
42
|
metadata: [
|
|
60
43
|
{
|
|
61
44
|
id: Type.getTypename(Channel.Channel),
|
|
62
45
|
metadata: {
|
|
63
|
-
icon:
|
|
64
|
-
iconHue: '
|
|
46
|
+
icon: Annotation.IconAnnotation.get(Channel.Channel).pipe(Option.getOrThrow).icon,
|
|
47
|
+
iconHue: Annotation.IconAnnotation.get(Channel.Channel).pipe(Option.getOrThrow).hue ?? 'white',
|
|
65
48
|
createObject: ((props) => Effect.sync(() => Channel.make(props))) satisfies CreateObject,
|
|
66
49
|
},
|
|
67
50
|
},
|
|
@@ -72,13 +55,6 @@ export const ThreadPlugin = Plugin.define(meta).pipe(
|
|
|
72
55
|
loadReferences: async (thread: Thread.Thread) => await Ref.Array.loadAll(thread.messages ?? []),
|
|
73
56
|
},
|
|
74
57
|
},
|
|
75
|
-
{
|
|
76
|
-
id: Message.Message.typename,
|
|
77
|
-
metadata: {
|
|
78
|
-
// TODO(wittjosiah): Move out of metadata.
|
|
79
|
-
loadReferences: () => [], // loadObjectReferences(message, (message) => [...message.parts, message.context]),
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
58
|
{
|
|
83
59
|
id: THREAD_ITEM,
|
|
84
60
|
metadata: {
|
|
@@ -96,13 +72,31 @@ export const ThreadPlugin = Plugin.define(meta).pipe(
|
|
|
96
72
|
},
|
|
97
73
|
],
|
|
98
74
|
}),
|
|
99
|
-
|
|
100
|
-
|
|
75
|
+
AppPlugin.addOperationResolverModule({ activate: OperationResolver }),
|
|
76
|
+
AppPlugin.addReactRootModule({ activate: ReactRoot }),
|
|
77
|
+
AppPlugin.addSchemaModule({
|
|
78
|
+
schema: [AnchoredTo.AnchoredTo, Channel.Channel, Message.Message, Thread.Thread],
|
|
79
|
+
}),
|
|
80
|
+
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
81
|
+
AppPlugin.addTranslationsModule({ translations: [...translations, ...threadTranslations] }),
|
|
82
|
+
Plugin.addModule({
|
|
83
|
+
id: 'call-manager',
|
|
84
|
+
activatesOn: ClientEvents.ClientReady,
|
|
85
|
+
activate: CallManager,
|
|
101
86
|
}),
|
|
87
|
+
// TODO(wittjosiah): Currently not used but leaving because there will likely be settings for threads again.
|
|
88
|
+
// Plugin.addModule({
|
|
89
|
+
// id: 'settings',
|
|
90
|
+
// activatesOn: Events.SetupSettings,
|
|
91
|
+
// activate: ThreadSettings,
|
|
92
|
+
// }),
|
|
102
93
|
Plugin.addModule({
|
|
103
|
-
id: '
|
|
104
|
-
|
|
105
|
-
|
|
94
|
+
id: 'state',
|
|
95
|
+
// TODO(wittjosiah): Does not integrate with settings store.
|
|
96
|
+
// Should this be a different event?
|
|
97
|
+
// Should settings store be renamed to be more generic?
|
|
98
|
+
activatesOn: AppActivationEvents.SetupSettings,
|
|
99
|
+
activate: ThreadState,
|
|
106
100
|
}),
|
|
107
101
|
Plugin.addModule({
|
|
108
102
|
id: 'on-space-created',
|
|
@@ -114,20 +108,10 @@ export const ThreadPlugin = Plugin.define(meta).pipe(
|
|
|
114
108
|
),
|
|
115
109
|
),
|
|
116
110
|
}),
|
|
117
|
-
Plugin.addModule({
|
|
118
|
-
id: 'repair',
|
|
119
|
-
activatesOn: ClientEvents.SpacesReady,
|
|
120
|
-
activate: Repair,
|
|
121
|
-
}),
|
|
122
111
|
Plugin.addModule({
|
|
123
112
|
id: 'markdown',
|
|
124
113
|
activatesOn: MarkdownEvents.SetupExtensions,
|
|
125
114
|
activate: Markdown,
|
|
126
115
|
}),
|
|
127
|
-
Common.Plugin.addReactRootModule({ activate: ReactRoot }),
|
|
128
|
-
Common.Plugin.addSurfaceModule({ activate: ReactSurface }),
|
|
129
|
-
Common.Plugin.addOperationResolverModule({ activate: OperationResolver }),
|
|
130
|
-
Common.Plugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
131
|
-
Common.Plugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
|
|
132
116
|
Plugin.make,
|
|
133
117
|
);
|
package/src/blueprints/index.ts
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import { type AppCapabilities } from '@dxos/app-toolkit';
|
|
5
6
|
import { Blueprint, Template } from '@dxos/blueprints';
|
|
6
|
-
import { type FunctionDefinition } from '@dxos/functions';
|
|
7
7
|
import { trim } from '@dxos/util';
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { ThreadFunctions } from '../functions';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
const BLUEPRINT_KEY = 'org.dxos.blueprint.thread';
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
const functions = Object.values(ThreadFunctions);
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
const make = () =>
|
|
16
16
|
Blueprint.make({
|
|
17
|
-
key:
|
|
17
|
+
key: BLUEPRINT_KEY,
|
|
18
18
|
name: 'Thread',
|
|
19
19
|
tools: Blueprint.toolDefinitions({ functions }),
|
|
20
20
|
instructions: Template.make({
|
|
@@ -30,3 +30,11 @@ export const make = () =>
|
|
|
30
30
|
`,
|
|
31
31
|
}),
|
|
32
32
|
});
|
|
33
|
+
|
|
34
|
+
const blueprint: AppCapabilities.BlueprintDefinition = {
|
|
35
|
+
key: BLUEPRINT_KEY,
|
|
36
|
+
functions,
|
|
37
|
+
make,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default blueprint;
|
|
@@ -172,10 +172,10 @@ const DefaultStory = ({ source }: StoryProps) => {
|
|
|
172
172
|
};
|
|
173
173
|
|
|
174
174
|
const meta = {
|
|
175
|
-
title: 'plugins/plugin-thread/
|
|
175
|
+
title: 'plugins/plugin-thread/experimental/Calls',
|
|
176
176
|
render: DefaultStory,
|
|
177
177
|
decorators: [
|
|
178
|
-
withTheme,
|
|
178
|
+
withTheme(),
|
|
179
179
|
withClientProvider({
|
|
180
180
|
config: new Config({
|
|
181
181
|
runtime: {
|
|
@@ -6,11 +6,12 @@ import { Atom } from '@effect-atom/atom-react';
|
|
|
6
6
|
import * as Effect from 'effect/Effect';
|
|
7
7
|
import * as Option from 'effect/Option';
|
|
8
8
|
|
|
9
|
-
import { Capability
|
|
9
|
+
import { Capability } from '@dxos/app-framework';
|
|
10
|
+
import { AppCapabilities, COMPANION_PREFIX } from '@dxos/app-toolkit';
|
|
10
11
|
import { Obj } from '@dxos/echo';
|
|
11
12
|
import { Operation } from '@dxos/operation';
|
|
12
13
|
import { AttentionCapabilities } from '@dxos/plugin-attention';
|
|
13
|
-
import {
|
|
14
|
+
import { DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
|
|
14
15
|
import { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';
|
|
15
16
|
import { type SelectionManager, type SelectionMode, defaultSelection } from '@dxos/react-ui-attention';
|
|
16
17
|
|
|
@@ -59,11 +60,11 @@ export default Capability.makeModule(
|
|
|
59
60
|
const capabilities = yield* Capability.Service;
|
|
60
61
|
|
|
61
62
|
const resolve = (typename: string) =>
|
|
62
|
-
capabilities.getAll(
|
|
63
|
+
capabilities.getAll(AppCapabilities.Metadata).find(({ id }: { id: string }) => id === typename)?.metadata ?? {};
|
|
63
64
|
|
|
64
65
|
const extensions = yield* Effect.all([
|
|
65
66
|
GraphBuilder.createExtension({
|
|
66
|
-
id: `${meta.id}
|
|
67
|
+
id: `${meta.id}.active-call`,
|
|
67
68
|
match: NodeMatcher.whenRoot,
|
|
68
69
|
connector: (node, get) => {
|
|
69
70
|
const callManagerAtom = capabilities.atom(ThreadCapabilities.CallManager);
|
|
@@ -77,7 +78,7 @@ export default Capability.makeModule(
|
|
|
77
78
|
joined
|
|
78
79
|
? [
|
|
79
80
|
{
|
|
80
|
-
id:
|
|
81
|
+
id: 'active-call',
|
|
81
82
|
type: DECK_COMPANION_TYPE,
|
|
82
83
|
data: null,
|
|
83
84
|
properties: {
|
|
@@ -93,7 +94,7 @@ export default Capability.makeModule(
|
|
|
93
94
|
},
|
|
94
95
|
}),
|
|
95
96
|
GraphBuilder.createTypeExtension({
|
|
96
|
-
id: `${meta.id}
|
|
97
|
+
id: `${meta.id}.channel-chat-companion`,
|
|
97
98
|
type: Channel.Channel,
|
|
98
99
|
connector: (channel, get) => {
|
|
99
100
|
const callManager = capabilities.get(ThreadCapabilities.CallManager);
|
|
@@ -107,7 +108,7 @@ export default Capability.makeModule(
|
|
|
107
108
|
|
|
108
109
|
return Effect.succeed([
|
|
109
110
|
{
|
|
110
|
-
id:
|
|
111
|
+
id: 'chat',
|
|
111
112
|
type: PLANK_COMPANION_TYPE,
|
|
112
113
|
data: 'chat',
|
|
113
114
|
properties: {
|
|
@@ -121,7 +122,7 @@ export default Capability.makeModule(
|
|
|
121
122
|
},
|
|
122
123
|
}),
|
|
123
124
|
GraphBuilder.createExtension({
|
|
124
|
-
id: `${meta.id}
|
|
125
|
+
id: `${meta.id}.comments-companion`,
|
|
125
126
|
match: (node) => {
|
|
126
127
|
if (!Obj.isObject(node.data) || Option.isNone(whenCommentableObject(node))) {
|
|
127
128
|
return Option.none();
|
|
@@ -129,10 +130,10 @@ export default Capability.makeModule(
|
|
|
129
130
|
const metadata = resolve(Obj.getTypename(node.data)!);
|
|
130
131
|
return typeof metadata.comments === 'string' ? Option.some(node) : Option.none();
|
|
131
132
|
},
|
|
132
|
-
connector: (
|
|
133
|
+
connector: () =>
|
|
133
134
|
Effect.succeed([
|
|
134
135
|
{
|
|
135
|
-
id:
|
|
136
|
+
id: `${COMPANION_PREFIX}comments`,
|
|
136
137
|
type: PLANK_COMPANION_TYPE,
|
|
137
138
|
data: 'comments',
|
|
138
139
|
properties: {
|
|
@@ -145,25 +146,26 @@ export default Capability.makeModule(
|
|
|
145
146
|
]),
|
|
146
147
|
}),
|
|
147
148
|
GraphBuilder.createExtension({
|
|
148
|
-
id: `${meta.id}
|
|
149
|
+
id: `${meta.id}.comment-toolbar`,
|
|
149
150
|
match: (node) => {
|
|
150
151
|
if (!Obj.isObject(node.data) || Option.isNone(whenCommentableObject(node))) {
|
|
151
152
|
return Option.none();
|
|
152
153
|
}
|
|
153
154
|
const metadata = resolve(Obj.getTypename(node.data)!);
|
|
154
|
-
return typeof metadata.comments === 'string' ? Option.some(node
|
|
155
|
+
return typeof metadata.comments === 'string' ? Option.some(node) : Option.none();
|
|
155
156
|
},
|
|
156
|
-
actions: (
|
|
157
|
+
actions: (matched, get) => {
|
|
158
|
+
const object = matched.data;
|
|
159
|
+
const objectDxn = Obj.getDXN(object).toString();
|
|
157
160
|
const stateAtom = capabilities.atom(ThreadCapabilities.State);
|
|
158
161
|
const selectionManager = capabilities.get(AttentionCapabilities.Selection);
|
|
159
|
-
const objectId = Obj.getDXN(object).toString();
|
|
160
162
|
const metadata = resolve(Obj.getTypename(object)!);
|
|
161
163
|
|
|
162
164
|
const disabled = get(
|
|
163
165
|
commentDisabledFamily({
|
|
164
166
|
stateAtom,
|
|
165
167
|
selectionManager,
|
|
166
|
-
objectId,
|
|
168
|
+
objectId: objectDxn,
|
|
167
169
|
commentsType: metadata.comments as string,
|
|
168
170
|
selectionMode: metadata.selectionMode,
|
|
169
171
|
}),
|
|
@@ -171,10 +173,10 @@ export default Capability.makeModule(
|
|
|
171
173
|
|
|
172
174
|
return Effect.succeed([
|
|
173
175
|
{
|
|
174
|
-
id:
|
|
176
|
+
id: 'comment',
|
|
175
177
|
data: Effect.fnUntraced(function* () {
|
|
176
178
|
const metadata = resolve(Obj.getTypename(object)!);
|
|
177
|
-
const selection = selectionManager.getSelection(
|
|
179
|
+
const selection = selectionManager.getSelection(objectDxn);
|
|
178
180
|
const anchor = metadata.comments === 'anchored' ? getAnchor(selection) : Date.now().toString();
|
|
179
181
|
const name = metadata.getAnchorLabel?.(object, anchor);
|
|
180
182
|
yield* Operation.invoke(ThreadOperation.Create, {
|
|
@@ -196,6 +198,6 @@ export default Capability.makeModule(
|
|
|
196
198
|
}),
|
|
197
199
|
]);
|
|
198
200
|
|
|
199
|
-
return Capability.contributes(
|
|
201
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
200
202
|
}),
|
|
201
203
|
);
|
|
@@ -4,20 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import { Capability
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
8
9
|
|
|
9
10
|
import { ThreadBlueprint } from '../../blueprints';
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Capability.Capability<typeof
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
const blueprintDefinition = Capability.makeModule<[], BlueprintCapabilities>(() =>
|
|
17
|
-
Effect.succeed([
|
|
18
|
-
Capability.contributes(Common.Capability.Functions, ThreadBlueprint.functions),
|
|
19
|
-
Capability.contributes(Common.Capability.BlueprintDefinition, ThreadBlueprint.make()),
|
|
20
|
-
]),
|
|
21
|
-
);
|
|
12
|
+
const blueprintDefinition = Capability.makeModule<
|
|
13
|
+
[],
|
|
14
|
+
Capability.Capability<typeof AppCapabilities.BlueprintDefinition>[]
|
|
15
|
+
>(() => Effect.succeed([Capability.contributes(AppCapabilities.BlueprintDefinition, ThreadBlueprint)]));
|
|
22
16
|
|
|
23
17
|
export default blueprintDefinition;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
8
|
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
9
9
|
|
|
10
10
|
import { CallManager } from '../../calls';
|
|
@@ -13,7 +13,7 @@ import { ThreadCapabilities } from '../../types';
|
|
|
13
13
|
export default Capability.makeModule(
|
|
14
14
|
Effect.fnUntraced(function* () {
|
|
15
15
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
16
|
-
const registry = yield* Capability.get(
|
|
16
|
+
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|
|
17
17
|
const callManager = new CallManager(client, registry);
|
|
18
18
|
yield* Effect.tryPromise(() => callManager.open());
|
|
19
19
|
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
import { EditorView } from '@codemirror/view';
|
|
6
6
|
import * as Effect from 'effect/Effect';
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
|
+
import { COMPANION_PREFIX } from '@dxos/app-toolkit';
|
|
10
|
+
import { DeckOperation } from '@dxos/plugin-deck/types';
|
|
11
11
|
import { MarkdownCapabilities } from '@dxos/plugin-markdown';
|
|
12
|
-
import { type EditorState, commentClickedEffect, commentsState, overlap } from '@dxos/ui-editor';
|
|
12
|
+
import { type EditorState, commentClickedEffect, commentsState, documentId, overlap } from '@dxos/ui-editor';
|
|
13
13
|
|
|
14
14
|
import { threads } from '../../extensions';
|
|
15
15
|
import { ThreadCapabilities } from '../../types';
|
|
@@ -21,40 +21,38 @@ export default Capability.makeModule(
|
|
|
21
21
|
|
|
22
22
|
return Capability.contributes(MarkdownCapabilities.Extensions, [
|
|
23
23
|
({ document: doc }) => {
|
|
24
|
-
const { invokePromise } = capabilities.get(
|
|
25
|
-
const registry = capabilities.get(
|
|
24
|
+
const { invokePromise } = capabilities.get(Capabilities.OperationInvoker);
|
|
25
|
+
const registry = capabilities.get(Capabilities.AtomRegistry);
|
|
26
26
|
const stateAtom = capabilities.get(ThreadCapabilities.State);
|
|
27
27
|
return threads({ registry, stateAtom }, doc, invokePromise);
|
|
28
28
|
},
|
|
29
29
|
({ document: doc }) => {
|
|
30
30
|
if (!doc) return [];
|
|
31
|
-
const registry = capabilities.get(
|
|
31
|
+
const registry = capabilities.get(Capabilities.AtomRegistry);
|
|
32
32
|
const stateAtom = capabilities.get(ThreadCapabilities.State);
|
|
33
33
|
|
|
34
34
|
return EditorView.updateListener.of((update) => {
|
|
35
35
|
if (update.docChanged || update.selectionSet) {
|
|
36
|
-
const
|
|
36
|
+
const id = update.state.facet(documentId);
|
|
37
37
|
const overlaps = selectionOverlapsComment(update.state);
|
|
38
38
|
const current = registry.get(stateAtom);
|
|
39
39
|
registry.set(stateAtom, {
|
|
40
40
|
...current,
|
|
41
|
-
toolbar: { ...current.toolbar, [
|
|
41
|
+
toolbar: { ...current.toolbar, [id]: overlaps },
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
},
|
|
46
46
|
({ document: doc }) => {
|
|
47
47
|
if (!doc) return [];
|
|
48
|
-
const { invokePromise } = capabilities.get(
|
|
49
|
-
const id = Obj.getDXN(doc).toString();
|
|
48
|
+
const { invokePromise } = capabilities.get(Capabilities.OperationInvoker);
|
|
50
49
|
|
|
51
50
|
return EditorView.updateListener.of((update) => {
|
|
52
51
|
update.transactions.forEach((transaction) => {
|
|
53
52
|
transaction.effects.forEach(async (effect) => {
|
|
54
53
|
if (effect.is(commentClickedEffect)) {
|
|
55
54
|
void invokePromise(DeckOperation.ChangeCompanion, {
|
|
56
|
-
|
|
57
|
-
companion: `${id}${ATTENDABLE_PATH_SEPARATOR}comments`,
|
|
55
|
+
companion: `${COMPANION_PREFIX}comments`,
|
|
58
56
|
});
|
|
59
57
|
}
|
|
60
58
|
});
|