@dxos/plugin-thread 0.8.4-main.9735255 → 0.8.4-main.abd8ff62ef
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/add-message-LRVGIHDH.mjs +89 -0
- package/dist/lib/browser/add-message-LRVGIHDH.mjs.map +7 -0
- package/dist/lib/browser/append-channel-message-CO3M6FSA.mjs +40 -0
- package/dist/lib/browser/append-channel-message-CO3M6FSA.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +33 -4
- package/dist/lib/browser/blueprints/index.mjs.map +4 -4
- package/dist/lib/browser/chunk-E4GG3NX2.mjs +29 -0
- package/dist/lib/browser/chunk-E4GG3NX2.mjs.map +7 -0
- package/dist/lib/browser/chunk-TPNZ43NB.mjs +258 -0
- package/dist/lib/browser/chunk-TPNZ43NB.mjs.map +7 -0
- package/dist/lib/browser/create-BTGLHLBA.mjs +55 -0
- package/dist/lib/browser/create-BTGLHLBA.mjs.map +7 -0
- package/dist/lib/browser/create-channel-ZXKSLHGN.mjs +19 -0
- package/dist/lib/browser/create-channel-ZXKSLHGN.mjs.map +7 -0
- package/dist/lib/browser/create-proposals-AV5CREPV.mjs +56 -0
- package/dist/lib/browser/create-proposals-AV5CREPV.mjs.map +7 -0
- package/dist/lib/browser/delete-GLYEP7NE.mjs +59 -0
- package/dist/lib/browser/delete-GLYEP7NE.mjs.map +7 -0
- package/dist/lib/browser/delete-message-RQ72ZY5D.mjs +55 -0
- package/dist/lib/browser/delete-message-RQ72ZY5D.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1770 -269
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/on-create-space-SPE3QVFZ.mjs +24 -0
- package/dist/lib/browser/on-create-space-SPE3QVFZ.mjs.map +7 -0
- package/dist/lib/browser/operations/index.mjs +13 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/restore-VX7FLZOZ.mjs +32 -0
- package/dist/lib/browser/restore-VX7FLZOZ.mjs.map +7 -0
- package/dist/lib/browser/restore-message-D65NSWUA.mjs +33 -0
- package/dist/lib/browser/restore-message-D65NSWUA.mjs.map +7 -0
- package/dist/lib/browser/select-AT4L7EBU.mjs +26 -0
- package/dist/lib/browser/select-AT4L7EBU.mjs.map +7 -0
- package/dist/lib/browser/toggle-resolved-JD3D4WBZ.mjs +36 -0
- package/dist/lib/browser/toggle-resolved-JD3D4WBZ.mjs.map +7 -0
- package/dist/lib/browser/translations.mjs +90 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +5 -9
- package/dist/lib/node-esm/add-message-4EAQ2ZPI.mjs +90 -0
- package/dist/lib/node-esm/add-message-4EAQ2ZPI.mjs.map +7 -0
- package/dist/lib/node-esm/append-channel-message-F7KGBSWP.mjs +41 -0
- package/dist/lib/node-esm/append-channel-message-F7KGBSWP.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +33 -4
- package/dist/lib/node-esm/blueprints/index.mjs.map +4 -4
- package/dist/lib/node-esm/chunk-BVEZBGIY.mjs +30 -0
- package/dist/lib/node-esm/chunk-BVEZBGIY.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-XKUMDYGR.mjs +259 -0
- package/dist/lib/node-esm/chunk-XKUMDYGR.mjs.map +7 -0
- package/dist/lib/node-esm/create-DEZFPN2Y.mjs +56 -0
- package/dist/lib/node-esm/create-DEZFPN2Y.mjs.map +7 -0
- package/dist/lib/node-esm/create-channel-6VHTC2OR.mjs +20 -0
- package/dist/lib/node-esm/create-channel-6VHTC2OR.mjs.map +7 -0
- package/dist/lib/node-esm/create-proposals-P5O2ICOL.mjs +57 -0
- package/dist/lib/node-esm/create-proposals-P5O2ICOL.mjs.map +7 -0
- package/dist/lib/node-esm/delete-QG45QLPY.mjs +60 -0
- package/dist/lib/node-esm/delete-QG45QLPY.mjs.map +7 -0
- package/dist/lib/node-esm/delete-message-PGNLB6TL.mjs +56 -0
- package/dist/lib/node-esm/delete-message-PGNLB6TL.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +1770 -269
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/on-create-space-TFBSHWQ4.mjs +25 -0
- package/dist/lib/node-esm/on-create-space-TFBSHWQ4.mjs.map +7 -0
- package/dist/lib/node-esm/operations/index.mjs +14 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/restore-E27OAIFJ.mjs +33 -0
- package/dist/lib/node-esm/restore-E27OAIFJ.mjs.map +7 -0
- package/dist/lib/node-esm/restore-message-J3CH6NGI.mjs +34 -0
- package/dist/lib/node-esm/restore-message-J3CH6NGI.mjs.map +7 -0
- package/dist/lib/node-esm/select-UU6Q2XAB.mjs +27 -0
- package/dist/lib/node-esm/select-UU6Q2XAB.mjs.map +7 -0
- package/dist/lib/node-esm/toggle-resolved-VS6NKXL3.mjs +37 -0
- package/dist/lib/node-esm/toggle-resolved-VS6NKXL3.mjs.map +7 -0
- package/dist/lib/node-esm/translations.mjs +91 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +5 -9
- package/dist/types/src/ThreadPlugin.d.ts +1 -0
- package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
- package/dist/types/src/ThreadPlugin.node.d.ts +4 -0
- package/dist/types/src/ThreadPlugin.node.d.ts.map +1 -0
- package/dist/types/src/ThreadPlugin.test.d.ts +2 -0
- package/dist/types/src/ThreadPlugin.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/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/calls/call-manager.d.ts.map +1 -1
- package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +1 -1
- package/dist/types/src/calls/media-manager.d.ts.map +1 -1
- package/dist/types/src/calls/speaking-monitor.d.ts +0 -3
- package/dist/types/src/calls/speaking-monitor.d.ts.map +1 -1
- package/dist/types/src/calls/types.d.ts.map +1 -1
- package/dist/types/src/calls/util/audio.d.ts.map +1 -1
- package/dist/types/src/calls/util/calls-service.d.ts +2 -2
- package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
- package/dist/types/src/calls/util/history-cache.d.ts.map +1 -1
- package/dist/types/src/calls/util/media.d.ts.map +1 -1
- package/dist/types/src/calls/util/stub-media-streams.d.ts.map +1 -1
- package/dist/types/src/calls/util/task-scheduling.d.ts.map +1 -1
- package/dist/types/src/calls-service.stories.d.ts +2 -2
- package/dist/types/src/calls-service.stories.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition.d.ts +6 -0
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/call-manager.d.ts +6 -0
- package/dist/types/src/capabilities/call-manager.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +15 -10
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown.d.ts +5 -0
- package/dist/types/src/capabilities/markdown.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/{react-root/react-root.d.ts → react-root.d.ts} +1 -1
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings.d.ts +7 -0
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/state.d.ts +7 -0
- package/dist/types/src/capabilities/state.d.ts.map +1 -0
- package/dist/types/src/capabilities/undo-mappings.d.ts +5 -0
- package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -0
- package/dist/types/src/components/Call/Call.d.ts +32 -4
- package/dist/types/src/components/Call/Call.d.ts.map +1 -1
- package/dist/types/src/components/Call/Toolbar.d.ts +5 -5
- package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/Chat/Chat.d.ts +44 -0
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -0
- package/dist/types/src/components/Chat/index.d.ts +2 -0
- package/dist/types/src/components/Chat/index.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts +13 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts +160 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts.map +1 -0
- package/dist/types/src/components/{CommentsThreadContainer.d.ts → CommentsPanel/CommentsThread.d.ts} +3 -3
- package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/index.d.ts +3 -0
- package/dist/types/src/components/CommentsPanel/index.d.ts.map +1 -0
- package/dist/types/src/components/Lobby/Lobby.d.ts +24 -3
- package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -1
- package/dist/types/src/components/Media/VideoObject.d.ts +1 -1
- package/dist/types/src/components/Media/VideoObject.stories.d.ts +1 -1
- package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +1 -1
- package/dist/types/src/components/MessagePanel/MessagePanel.d.ts +15 -0
- package/dist/types/src/components/MessagePanel/MessagePanel.d.ts.map +1 -0
- package/dist/types/src/components/MessagePanel/index.d.ts +2 -0
- package/dist/types/src/components/MessagePanel/index.d.ts.map +1 -0
- package/dist/types/src/components/Participant/Participant.d.ts.map +1 -1
- package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +142 -144
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/{ResponsiveContainer.d.ts → ResponsivePanel.d.ts} +4 -4
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts.map +1 -0
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts +164 -0
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts.map +1 -0
- package/dist/types/src/components/ResponsiveGrid/index.d.ts +1 -1
- package/dist/types/src/components/ResponsiveGrid/index.d.ts.map +1 -1
- package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts +6 -0
- package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts.map +1 -0
- package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts +161 -0
- package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts.map +1 -0
- package/dist/types/src/components/ThreadSettings/index.d.ts +2 -0
- package/dist/types/src/components/ThreadSettings/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +5 -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 +2 -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 +2 -0
- package/dist/types/src/containers/CallSidebar/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelChat/ChannelChat.d.ts +16 -0
- package/dist/types/src/containers/ChannelChat/ChannelChat.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelChat/index.d.ts +4 -0
- package/dist/types/src/containers/ChannelChat/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts +12 -0
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts +162 -0
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelContainer/index.d.ts +2 -0
- package/dist/types/src/containers/ChannelContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts +8 -0
- package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadCompanion/index.d.ts +2 -0
- package/dist/types/src/containers/ThreadCompanion/index.d.ts.map +1 -0
- 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 +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/extensions/threads.d.ts +3 -3
- package/dist/types/src/extensions/threads.d.ts.map +1 -1
- package/dist/types/src/hooks/analytics.d.ts.map +1 -1
- package/dist/types/src/hooks/useStatus.d.ts.map +1 -1
- package/dist/types/src/hooks/useVideoStreamTrack.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/add-message.d.ts +5 -0
- package/dist/types/src/operations/add-message.d.ts.map +1 -0
- package/dist/types/src/operations/append-channel-message.d.ts +5 -0
- package/dist/types/src/operations/append-channel-message.d.ts.map +1 -0
- package/dist/types/src/operations/create-channel.d.ts +5 -0
- package/dist/types/src/operations/create-channel.d.ts.map +1 -0
- package/dist/types/src/operations/create-proposals.d.ts +5 -0
- package/dist/types/src/operations/create-proposals.d.ts.map +1 -0
- package/dist/types/src/operations/create.d.ts +5 -0
- package/dist/types/src/operations/create.d.ts.map +1 -0
- package/dist/types/src/operations/definitions.d.ts +1995 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/delete-message.d.ts +5 -0
- package/dist/types/src/operations/delete-message.d.ts.map +1 -0
- package/dist/types/src/operations/delete.d.ts +5 -0
- package/dist/types/src/operations/delete.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/on-create-space.d.ts +5 -0
- package/dist/types/src/operations/on-create-space.d.ts.map +1 -0
- package/dist/types/src/operations/restore-message.d.ts +5 -0
- package/dist/types/src/operations/restore-message.d.ts.map +1 -0
- package/dist/types/src/operations/restore.d.ts +5 -0
- package/dist/types/src/operations/restore.d.ts.map +1 -0
- package/dist/types/src/operations/select.d.ts +5 -0
- package/dist/types/src/operations/select.d.ts.map +1 -0
- package/dist/types/src/operations/toggle-resolved.d.ts +5 -0
- package/dist/types/src/operations/toggle-resolved.d.ts.map +1 -0
- package/dist/types/src/{components/testing.d.ts → testing/data.d.ts} +1 -1
- package/dist/types/src/testing/data.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +1 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +140 -142
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +5 -0
- package/dist/types/src/types/Settings.d.ts.map +1 -0
- package/dist/types/src/types/capabilities.d.ts +4 -2
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +1 -3227
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +2 -2
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +96 -76
- package/src/ThreadPlugin.node.ts +84 -0
- package/src/ThreadPlugin.test.ts +37 -0
- package/src/ThreadPlugin.tsx +59 -61
- package/src/blueprints/index.ts +1 -1
- package/src/blueprints/thread-blueprint.ts +13 -9
- package/src/calls/util/calls-service.ts +3 -2
- package/src/calls/util/stub-media-streams.ts +3 -1
- package/src/calls-service.stories.tsx +10 -9
- package/src/capabilities/{app-graph-builder/app-graph-builder.ts → app-graph-builder.ts} +44 -51
- package/src/capabilities/blueprint-definition.ts +19 -0
- package/src/capabilities/{call-manager/call-manager.ts → call-manager.ts} +6 -5
- package/src/capabilities/index.ts +17 -10
- package/src/capabilities/{markdown/markdown.ts → markdown.ts} +22 -19
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/{react-root/react-root.tsx → react-root.tsx} +4 -4
- package/src/capabilities/react-surface.tsx +97 -0
- package/src/capabilities/{settings/settings.ts → settings.ts} +9 -7
- package/src/capabilities/{state/state.ts → state.ts} +1 -1
- package/src/capabilities/undo-mappings.ts +46 -0
- package/src/components/Call/Call.tsx +10 -10
- package/src/components/Call/Toolbar.tsx +30 -21
- package/src/components/Chat/Chat.tsx +218 -0
- package/src/components/Chat/index.ts +5 -0
- package/src/components/{Comments.stories.tsx → CommentsPanel/CommentsPanel.stories.tsx} +19 -17
- package/src/components/{CommentsContainer.tsx → CommentsPanel/CommentsPanel.tsx} +15 -14
- package/src/components/{CommentsThreadContainer.tsx → CommentsPanel/CommentsThread.tsx} +19 -20
- package/src/components/CommentsPanel/index.ts +6 -0
- package/src/components/Lobby/Lobby.tsx +13 -11
- package/src/components/Media/VideoObject.stories.tsx +6 -7
- package/src/components/Media/VideoObject.tsx +1 -1
- package/src/components/{MessageContainer.tsx → MessagePanel/MessagePanel.tsx} +25 -19
- package/src/components/MessagePanel/index.ts +5 -0
- package/src/components/Participant/Participant.tsx +3 -2
- package/src/components/Participant/ParticipantGrid.tsx +0 -1
- package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +11 -11
- package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +8 -8
- package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +9 -9
- package/src/components/ResponsiveGrid/{ResponsiveContainer.stories.tsx → ResponsivePanel.stories.tsx} +9 -9
- package/src/components/ResponsiveGrid/{ResponsiveContainer.tsx → ResponsivePanel.tsx} +5 -5
- package/src/components/ResponsiveGrid/index.ts +1 -1
- package/src/components/ThreadSettings/ThreadSettings.stories.tsx +32 -0
- package/src/components/ThreadSettings/ThreadSettings.tsx +20 -0
- package/src/components/ThreadSettings/index.ts +5 -0
- package/src/components/index.ts +6 -9
- package/src/{components → containers/CallDebugPanel}/CallDebugPanel.tsx +8 -7
- package/src/containers/CallDebugPanel/index.ts +5 -0
- package/src/{components → containers/CallSidebar}/CallSidebar.tsx +4 -6
- package/src/containers/CallSidebar/index.ts +5 -0
- package/src/containers/ChannelChat/ChannelChat.tsx +65 -0
- package/src/containers/ChannelChat/index.ts +8 -0
- package/src/containers/ChannelContainer/ChannelContainer.stories.tsx +105 -0
- package/src/{components → containers/ChannelContainer}/ChannelContainer.tsx +75 -59
- package/src/containers/ChannelContainer/index.ts +5 -0
- package/src/{components → containers/ThreadCompanion}/ThreadCompanion.tsx +74 -50
- package/src/containers/ThreadCompanion/index.ts +5 -0
- package/src/{components/Chat.stories.tsx → containers/ThreadContainer/ThreadContainer.stories.tsx} +26 -25
- package/src/containers/ThreadContainer/ThreadContainer.tsx +75 -0
- package/src/containers/ThreadContainer/index.ts +8 -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/extensions/threads.ts +15 -14
- package/src/hooks/analytics.ts +3 -2
- package/src/index.ts +10 -3
- package/src/meta.ts +2 -2
- package/src/operations/add-message.ts +81 -0
- package/src/operations/append-channel-message.ts +36 -0
- package/src/operations/create-channel.ts +20 -0
- package/src/operations/create-proposals.ts +49 -0
- package/src/operations/create.ts +48 -0
- package/src/operations/definitions.ts +177 -0
- package/src/operations/delete-message.ts +53 -0
- package/src/operations/delete.ts +63 -0
- package/src/operations/index.ts +22 -0
- package/src/operations/on-create-space.ts +27 -0
- package/src/operations/restore-message.ts +38 -0
- package/src/operations/restore.ts +38 -0
- package/src/operations/select.ts +24 -0
- package/src/operations/toggle-resolved.ts +41 -0
- package/src/{components/testing.ts → testing/data.ts} +7 -7
- package/src/testing/index.ts +1 -1
- package/src/translations.ts +72 -76
- package/src/types/Settings.ts +10 -0
- package/src/types/capabilities.ts +10 -7
- package/src/types/index.ts +0 -1
- package/src/types/types.ts +2 -184
- package/src/util.ts +1 -1
- package/dist/lib/browser/app-graph-builder-7C2QW32W.mjs +0 -188
- 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 +0 -26
- package/dist/lib/browser/call-manager-4P536YNX.mjs.map +0 -7
- package/dist/lib/browser/chunk-2FIHSX35.mjs +0 -293
- package/dist/lib/browser/chunk-2FIHSX35.mjs.map +0 -7
- package/dist/lib/browser/chunk-CP7E2HRE.mjs +0 -31
- package/dist/lib/browser/chunk-CP7E2HRE.mjs.map +0 -7
- package/dist/lib/browser/chunk-DLO2G3DM.mjs +0 -184
- package/dist/lib/browser/chunk-DLO2G3DM.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-ISCHODBV.mjs +0 -106
- package/dist/lib/browser/chunk-ISCHODBV.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 +0 -106
- package/dist/lib/browser/chunk-ZFLSTQSE.mjs.map +0 -7
- package/dist/lib/browser/markdown-QMJLRR6R.mjs +0 -210
- package/dist/lib/browser/markdown-QMJLRR6R.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-T63EP5TY.mjs +0 -441
- package/dist/lib/browser/operation-resolver-T63EP5TY.mjs.map +0 -7
- package/dist/lib/browser/react-root-56MJI77R.mjs +0 -25
- package/dist/lib/browser/react-root-56MJI77R.mjs.map +0 -7
- package/dist/lib/browser/react-surface-DMBHQOXJ.mjs +0 -110
- 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 +0 -32
- package/dist/lib/browser/settings-WZMJMML3.mjs.map +0 -7
- package/dist/lib/browser/state-SJR2GL5G.mjs +0 -24
- package/dist/lib/browser/state-SJR2GL5G.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-JCSVFRVY.mjs +0 -189
- package/dist/lib/node-esm/app-graph-builder-JCSVFRVY.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-MZZXXL37.mjs +0 -18
- package/dist/lib/node-esm/blueprint-definition-MZZXXL37.mjs.map +0 -7
- package/dist/lib/node-esm/call-manager-FMLRR5S5.mjs +0 -27
- 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-ABUFOZVX.mjs +0 -33
- package/dist/lib/node-esm/chunk-ABUFOZVX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-AQHPP6ZX.mjs +0 -107
- package/dist/lib/node-esm/chunk-AQHPP6ZX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KRBZBJRI.mjs +0 -185
- package/dist/lib/node-esm/chunk-KRBZBJRI.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-WMWUXWAS.mjs +0 -294
- package/dist/lib/node-esm/chunk-WMWUXWAS.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-L6LLQLIN.mjs +0 -211
- package/dist/lib/node-esm/markdown-L6LLQLIN.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-G6GZPBRP.mjs +0 -442
- package/dist/lib/node-esm/operation-resolver-G6GZPBRP.mjs.map +0 -7
- package/dist/lib/node-esm/react-root-V4W4X5GL.mjs +0 -26
- package/dist/lib/node-esm/react-root-V4W4X5GL.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-ELDSTUA3.mjs +0 -111
- 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 +0 -33
- package/dist/lib/node-esm/settings-37CO3SNR.mjs.map +0 -7
- package/dist/lib/node-esm/state-5R3TZJQE.mjs +0 -25
- package/dist/lib/node-esm/state-5R3TZJQE.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +0 -6
- 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 -9
- 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 +0 -5
- package/dist/types/src/capabilities/markdown/markdown.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-root/index.d.ts +0 -6
- package/dist/types/src/capabilities/react-root/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-root/react-root.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -5
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/repair/index.d.ts +0 -3
- package/dist/types/src/capabilities/repair/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/repair/repair.d.ts +0 -6
- package/dist/types/src/capabilities/repair/repair.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/index.d.ts +0 -3
- package/dist/types/src/capabilities/settings/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/settings.d.ts +0 -5
- 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 +0 -7
- package/dist/types/src/capabilities/state/state.d.ts.map +0 -1
- package/dist/types/src/components/CallDebugPanel.d.ts.map +0 -1
- package/dist/types/src/components/CallSidebar.d.ts.map +0 -1
- package/dist/types/src/components/ChannelContainer.d.ts +0 -13
- package/dist/types/src/components/ChannelContainer.d.ts.map +0 -1
- package/dist/types/src/components/ChannelContainer.stories.d.ts +0 -164
- package/dist/types/src/components/ChannelContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/Chat.stories.d.ts +0 -164
- package/dist/types/src/components/Chat.stories.d.ts.map +0 -1
- package/dist/types/src/components/ChatContainer.d.ts +0 -18
- package/dist/types/src/components/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/components/Comments.stories.d.ts +0 -162
- package/dist/types/src/components/Comments.stories.d.ts.map +0 -1
- package/dist/types/src/components/CommentsContainer.d.ts +0 -13
- package/dist/types/src/components/CommentsContainer.d.ts.map +0 -1
- package/dist/types/src/components/CommentsThreadContainer.d.ts.map +0 -1
- package/dist/types/src/components/MessageContainer.d.ts +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 +0 -166
- 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 +0 -8
- package/dist/types/src/components/ThreadSettings.d.ts.map +0 -1
- package/dist/types/src/components/command-extension.d.ts.map +0 -1
- package/dist/types/src/components/testing.d.ts.map +0 -1
- package/dist/types/src/functions/create-proposals.d.ts +0 -6
- package/dist/types/src/functions/create-proposals.d.ts.map +0 -1
- package/dist/types/src/functions/index.d.ts +0 -2
- package/dist/types/src/functions/index.d.ts.map +0 -1
- package/dist/types/src/testing/stories.d.ts +0 -3
- package/dist/types/src/testing/stories.d.ts.map +0 -1
- package/dist/types/src/types/Channel.d.ts +0 -695
- package/dist/types/src/types/Channel.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder/index.ts +0 -7
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +0 -23
- package/src/capabilities/blueprint-definition/index.ts +0 -7
- package/src/capabilities/call-manager/index.ts +0 -7
- package/src/capabilities/markdown/index.ts +0 -7
- package/src/capabilities/operation-resolver/index.ts +0 -7
- package/src/capabilities/operation-resolver/operation-resolver.ts +0 -400
- package/src/capabilities/react-root/index.ts +0 -7
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/react-surface/react-surface.tsx +0 -97
- package/src/capabilities/repair/index.ts +0 -7
- package/src/capabilities/repair/repair.ts +0 -51
- package/src/capabilities/settings/index.ts +0 -7
- package/src/capabilities/state/index.ts +0 -7
- package/src/components/ChannelContainer.stories.tsx +0 -61
- package/src/components/ChatContainer.tsx +0 -155
- package/src/components/ThreadSettings.tsx +0 -21
- package/src/functions/create-proposals.ts +0 -57
- package/src/functions/index.ts +0 -5
- package/src/testing/stories.ts +0 -55
- package/src/types/Channel.ts +0 -30
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.abd8ff62ef",
|
|
4
4
|
"description": "DXOS Threads Surface plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -12,37 +12,56 @@
|
|
|
12
12
|
"author": "DXOS.org",
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
15
|
+
"imports": {
|
|
16
|
+
"#blueprints": "./src/blueprints/index.ts",
|
|
17
|
+
"#capabilities": "./src/capabilities/index.ts",
|
|
18
|
+
"#components": "./src/components/index.ts",
|
|
19
|
+
"#containers": "./src/containers/index.ts",
|
|
20
|
+
"#hooks": "./src/hooks/index.ts",
|
|
21
|
+
"#meta": "./src/meta.ts",
|
|
22
|
+
"#operations": "./src/operations/index.ts",
|
|
23
|
+
"#plugin": {
|
|
24
|
+
"browser": "./src/ThreadPlugin.tsx",
|
|
25
|
+
"node": "./src/ThreadPlugin.node.ts",
|
|
26
|
+
"default": "./src/ThreadPlugin.tsx"
|
|
27
|
+
},
|
|
28
|
+
"#testing": "./src/testing/index.ts",
|
|
29
|
+
"#translations": "./src/translations.ts",
|
|
30
|
+
"#types": "./src/types/index.ts"
|
|
31
|
+
},
|
|
15
32
|
"exports": {
|
|
16
33
|
".": {
|
|
34
|
+
"source": "./src/index.ts",
|
|
17
35
|
"browser": "./dist/lib/browser/index.mjs",
|
|
18
36
|
"node": "./dist/lib/node-esm/index.mjs",
|
|
19
|
-
"source": "./src/index.ts",
|
|
20
37
|
"types": "./dist/types/src/index.d.ts"
|
|
21
38
|
},
|
|
22
39
|
"./blueprints": {
|
|
40
|
+
"source": "./src/blueprints/index.ts",
|
|
23
41
|
"browser": "./dist/lib/browser/blueprints/index.mjs",
|
|
24
42
|
"node": "./dist/lib/node-esm/blueprints/index.mjs",
|
|
25
|
-
"source": "./src/blueprints/index.ts",
|
|
26
43
|
"types": "./dist/types/src/blueprints/index.d.ts"
|
|
27
44
|
},
|
|
45
|
+
"./operations": {
|
|
46
|
+
"source": "./src/operations/index.ts",
|
|
47
|
+
"browser": "./dist/lib/browser/operations/index.mjs",
|
|
48
|
+
"node": "./dist/lib/node-esm/operations/index.mjs",
|
|
49
|
+
"types": "./dist/types/src/operations/index.d.ts"
|
|
50
|
+
},
|
|
51
|
+
"./translations": {
|
|
52
|
+
"source": "./src/translations.ts",
|
|
53
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
54
|
+
"browser": "./dist/lib/browser/translations.mjs",
|
|
55
|
+
"node": "./dist/lib/node-esm/translations.mjs"
|
|
56
|
+
},
|
|
28
57
|
"./types": {
|
|
58
|
+
"source": "./src/types/index.ts",
|
|
29
59
|
"browser": "./dist/lib/browser/types/index.mjs",
|
|
30
60
|
"node": "./dist/lib/node-esm/types/index.mjs",
|
|
31
|
-
"source": "./src/types/index.ts",
|
|
32
61
|
"types": "./dist/types/src/types/index.d.ts"
|
|
33
62
|
}
|
|
34
63
|
},
|
|
35
64
|
"types": "dist/types/src/index.d.ts",
|
|
36
|
-
"typesVersions": {
|
|
37
|
-
"*": {
|
|
38
|
-
"blueprints": [
|
|
39
|
-
"dist/types/src/blueprints/index.d.ts"
|
|
40
|
-
],
|
|
41
|
-
"types": [
|
|
42
|
-
"dist/types/src/types/index.d.ts"
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
65
|
"files": [
|
|
47
66
|
"dist",
|
|
48
67
|
"src"
|
|
@@ -51,84 +70,85 @@
|
|
|
51
70
|
"@codemirror/language": "^6.11.3",
|
|
52
71
|
"@codemirror/state": "^6.5.2",
|
|
53
72
|
"@codemirror/view": "^6.38.4",
|
|
54
|
-
"@effect-atom/atom": "^0.
|
|
55
|
-
"@effect-atom/atom-react": "^0.
|
|
56
|
-
"@effect/ai": "0.
|
|
57
|
-
"@effect/experimental": "0.
|
|
73
|
+
"@effect-atom/atom": "^0.5.1",
|
|
74
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
75
|
+
"@effect/ai": "0.33.2",
|
|
76
|
+
"@effect/experimental": "0.58.0",
|
|
58
77
|
"@peermetrics/webrtc-stats": "5.7.1",
|
|
59
|
-
"date-fns": "^3.
|
|
78
|
+
"date-fns": "^3.6.0",
|
|
60
79
|
"extendable-media-recorder": "^9.2.19",
|
|
61
80
|
"extendable-media-recorder-wav-encoder": "^7.0.123",
|
|
62
81
|
"md5-hex": "5.0.0",
|
|
63
82
|
"react-resize-detector": "^11.0.1",
|
|
64
83
|
"wavefile": "^11.0.0",
|
|
65
|
-
"@dxos/app-
|
|
66
|
-
"@dxos/assistant": "0.8.4-main.
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/async": "0.8.4-main.
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/context": "0.8.4-main.
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/display-name": "0.8.4-main.
|
|
74
|
-
"@dxos/echo": "0.8.4-main.
|
|
75
|
-
"@dxos/echo-db": "0.8.4-main.
|
|
76
|
-
"@dxos/effect": "0.8.4-main.
|
|
77
|
-
"@dxos/echo-react": "0.8.4-main.
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/keys": "0.8.4-main.
|
|
81
|
-
"@dxos/
|
|
82
|
-
"@dxos/
|
|
83
|
-
"@dxos/plugin-
|
|
84
|
-
"@dxos/plugin-
|
|
85
|
-
"@dxos/plugin-
|
|
86
|
-
"@dxos/plugin-
|
|
87
|
-
"@dxos/plugin-
|
|
88
|
-
"@dxos/plugin-
|
|
89
|
-
"@dxos/plugin-
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/
|
|
92
|
-
"@dxos/react-ui-
|
|
93
|
-
"@dxos/react-
|
|
94
|
-
"@dxos/react-ui-
|
|
95
|
-
"@dxos/react-ui-menu": "0.8.4-main.
|
|
96
|
-
"@dxos/react-ui-mosaic": "0.8.4-main.
|
|
97
|
-
"@dxos/react-ui-
|
|
98
|
-
"@dxos/react-ui-
|
|
99
|
-
"@dxos/react-ui-
|
|
100
|
-
"@dxos/react-ui-
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/react-ui-
|
|
103
|
-
"@dxos/schema": "0.8.4-main.
|
|
104
|
-
"@dxos/ui-editor": "0.8.4-main.
|
|
105
|
-
"@dxos/
|
|
106
|
-
"@dxos/
|
|
84
|
+
"@dxos/app-toolkit": "0.8.4-main.abd8ff62ef",
|
|
85
|
+
"@dxos/assistant": "0.8.4-main.abd8ff62ef",
|
|
86
|
+
"@dxos/app-framework": "0.8.4-main.abd8ff62ef",
|
|
87
|
+
"@dxos/async": "0.8.4-main.abd8ff62ef",
|
|
88
|
+
"@dxos/compute": "0.8.4-main.abd8ff62ef",
|
|
89
|
+
"@dxos/context": "0.8.4-main.abd8ff62ef",
|
|
90
|
+
"@dxos/devtools": "0.8.4-main.abd8ff62ef",
|
|
91
|
+
"@dxos/debug": "0.8.4-main.abd8ff62ef",
|
|
92
|
+
"@dxos/display-name": "0.8.4-main.abd8ff62ef",
|
|
93
|
+
"@dxos/echo": "0.8.4-main.abd8ff62ef",
|
|
94
|
+
"@dxos/echo-db": "0.8.4-main.abd8ff62ef",
|
|
95
|
+
"@dxos/effect": "0.8.4-main.abd8ff62ef",
|
|
96
|
+
"@dxos/echo-react": "0.8.4-main.abd8ff62ef",
|
|
97
|
+
"@dxos/invariant": "0.8.4-main.abd8ff62ef",
|
|
98
|
+
"@dxos/codec-protobuf": "0.8.4-main.abd8ff62ef",
|
|
99
|
+
"@dxos/keys": "0.8.4-main.abd8ff62ef",
|
|
100
|
+
"@dxos/operation": "0.8.4-main.abd8ff62ef",
|
|
101
|
+
"@dxos/log": "0.8.4-main.abd8ff62ef",
|
|
102
|
+
"@dxos/plugin-attention": "0.8.4-main.abd8ff62ef",
|
|
103
|
+
"@dxos/plugin-deck": "0.8.4-main.abd8ff62ef",
|
|
104
|
+
"@dxos/plugin-client": "0.8.4-main.abd8ff62ef",
|
|
105
|
+
"@dxos/plugin-graph": "0.8.4-main.abd8ff62ef",
|
|
106
|
+
"@dxos/plugin-markdown": "0.8.4-main.abd8ff62ef",
|
|
107
|
+
"@dxos/plugin-observability": "0.8.4-main.abd8ff62ef",
|
|
108
|
+
"@dxos/plugin-settings": "0.8.4-main.abd8ff62ef",
|
|
109
|
+
"@dxos/plugin-space": "0.8.4-main.abd8ff62ef",
|
|
110
|
+
"@dxos/protocols": "0.8.4-main.abd8ff62ef",
|
|
111
|
+
"@dxos/react-ui-attention": "0.8.4-main.abd8ff62ef",
|
|
112
|
+
"@dxos/react-client": "0.8.4-main.abd8ff62ef",
|
|
113
|
+
"@dxos/react-ui-editor": "0.8.4-main.abd8ff62ef",
|
|
114
|
+
"@dxos/react-ui-menu": "0.8.4-main.abd8ff62ef",
|
|
115
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.abd8ff62ef",
|
|
116
|
+
"@dxos/react-ui-form": "0.8.4-main.abd8ff62ef",
|
|
117
|
+
"@dxos/react-ui-stack": "0.8.4-main.abd8ff62ef",
|
|
118
|
+
"@dxos/react-ui-sfx": "0.8.4-main.abd8ff62ef",
|
|
119
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.abd8ff62ef",
|
|
120
|
+
"@dxos/react-ui-tabs": "0.8.4-main.abd8ff62ef",
|
|
121
|
+
"@dxos/react-ui-dnd": "0.8.4-main.abd8ff62ef",
|
|
122
|
+
"@dxos/schema": "0.8.4-main.abd8ff62ef",
|
|
123
|
+
"@dxos/ui-editor": "0.8.4-main.abd8ff62ef",
|
|
124
|
+
"@dxos/react-ui-thread": "0.8.4-main.abd8ff62ef",
|
|
125
|
+
"@dxos/types": "0.8.4-main.abd8ff62ef",
|
|
126
|
+
"@dxos/util": "0.8.4-main.abd8ff62ef"
|
|
107
127
|
},
|
|
108
128
|
"devDependencies": {
|
|
109
|
-
"@effect-atom/atom-react": "^0.
|
|
110
|
-
"@effect/platform": "0.
|
|
129
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
130
|
+
"@effect/platform": "0.94.4",
|
|
111
131
|
"@types/react": "~19.2.7",
|
|
112
132
|
"@types/react-dom": "~19.2.3",
|
|
113
|
-
"effect": "3.
|
|
133
|
+
"effect": "3.20.0",
|
|
114
134
|
"react": "~19.2.3",
|
|
115
135
|
"react-dom": "~19.2.3",
|
|
116
|
-
"vite": "
|
|
117
|
-
"@dxos/plugin-
|
|
118
|
-
"@dxos/plugin-
|
|
119
|
-
"@dxos/random": "0.8.4-main.
|
|
120
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
121
|
-
"@dxos/
|
|
122
|
-
"@dxos/
|
|
136
|
+
"vite": "^8.0.10",
|
|
137
|
+
"@dxos/plugin-testing": "0.8.4-main.abd8ff62ef",
|
|
138
|
+
"@dxos/plugin-theme": "0.8.4-main.abd8ff62ef",
|
|
139
|
+
"@dxos/random": "0.8.4-main.abd8ff62ef",
|
|
140
|
+
"@dxos/react-ui": "0.8.4-main.abd8ff62ef",
|
|
141
|
+
"@dxos/storybook-utils": "0.8.4-main.abd8ff62ef",
|
|
142
|
+
"@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
|
|
123
143
|
},
|
|
124
144
|
"peerDependencies": {
|
|
125
|
-
"@effect-atom/atom-react": "^0.
|
|
126
|
-
"@effect/platform": "0.
|
|
127
|
-
"effect": "3.
|
|
145
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
146
|
+
"@effect/platform": "0.94.4",
|
|
147
|
+
"effect": "3.20.0",
|
|
128
148
|
"react": "~19.2.3",
|
|
129
149
|
"react-dom": "~19.2.3",
|
|
130
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
131
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
150
|
+
"@dxos/react-ui": "0.8.4-main.abd8ff62ef",
|
|
151
|
+
"@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
|
|
132
152
|
},
|
|
133
153
|
"publishConfig": {
|
|
134
154
|
"access": "public"
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
import * as Option from 'effect/Option';
|
|
7
|
+
|
|
8
|
+
import { Capability, Plugin } from '@dxos/app-framework';
|
|
9
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
10
|
+
import { Operation } from '@dxos/compute';
|
|
11
|
+
import { Annotation, Ref, Type } from '@dxos/echo';
|
|
12
|
+
import { SpaceOperation } from '@dxos/plugin-space/operations';
|
|
13
|
+
import { SpaceCapabilities, SpaceEvents, type CreateObject } from '@dxos/plugin-space/types';
|
|
14
|
+
import { AnchoredTo, Channel, Message, Thread } from '@dxos/types';
|
|
15
|
+
|
|
16
|
+
import { AppGraphBuilder, BlueprintDefinition, OperationHandler, UndoMappings } from '#capabilities';
|
|
17
|
+
import { THREAD_ITEM, meta } from '#meta';
|
|
18
|
+
import { ThreadOperation } from '#operations';
|
|
19
|
+
|
|
20
|
+
export const ThreadPlugin = Plugin.define(meta).pipe(
|
|
21
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
22
|
+
AppPlugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
|
|
23
|
+
AppPlugin.addMetadataModule({
|
|
24
|
+
metadata: [
|
|
25
|
+
{
|
|
26
|
+
id: Type.getTypename(Channel.Channel),
|
|
27
|
+
metadata: {
|
|
28
|
+
icon: Annotation.IconAnnotation.get(Channel.Channel).pipe(Option.getOrThrow).icon,
|
|
29
|
+
iconHue: Annotation.IconAnnotation.get(Channel.Channel).pipe(Option.getOrThrow).hue ?? 'white',
|
|
30
|
+
createObject: ((props, options) =>
|
|
31
|
+
Effect.gen(function* () {
|
|
32
|
+
const object = Channel.make(props);
|
|
33
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
34
|
+
object,
|
|
35
|
+
target: options.target,
|
|
36
|
+
hidden: true,
|
|
37
|
+
targetNodeId: options.targetNodeId,
|
|
38
|
+
});
|
|
39
|
+
})) satisfies CreateObject,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: Type.getTypename(Thread.Thread),
|
|
44
|
+
metadata: {
|
|
45
|
+
// TODO(wittjosiah): Move out of metadata.
|
|
46
|
+
loadReferences: async (thread: Thread.Thread) => await Ref.Array.loadAll(thread.messages ?? []),
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: THREAD_ITEM,
|
|
51
|
+
metadata: {
|
|
52
|
+
parse: (item: Thread.Thread, type: string) => {
|
|
53
|
+
switch (type) {
|
|
54
|
+
case 'node':
|
|
55
|
+
return { id: item.id, label: item.name, data: item };
|
|
56
|
+
case 'object':
|
|
57
|
+
return item;
|
|
58
|
+
case 'view-object':
|
|
59
|
+
return { id: `${item.id}-view`, object: item };
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
}),
|
|
66
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
67
|
+
AppPlugin.addUndoMappingsModule({ activate: UndoMappings }),
|
|
68
|
+
AppPlugin.addSchemaModule({
|
|
69
|
+
schema: [AnchoredTo.AnchoredTo, Channel.Channel, Message.Message, Thread.Thread],
|
|
70
|
+
}),
|
|
71
|
+
Plugin.addModule({
|
|
72
|
+
id: 'on-space-created',
|
|
73
|
+
activatesOn: SpaceEvents.SpaceCreated,
|
|
74
|
+
activate: () =>
|
|
75
|
+
Effect.succeed(
|
|
76
|
+
Capability.contributes(SpaceCapabilities.OnCreateSpace, (params) =>
|
|
77
|
+
Operation.invoke(ThreadOperation.OnCreateSpace, params),
|
|
78
|
+
),
|
|
79
|
+
),
|
|
80
|
+
}),
|
|
81
|
+
Plugin.make,
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
export default ThreadPlugin;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { describe, test } from 'vitest';
|
|
6
|
+
|
|
7
|
+
import { AppActivationEvents } from '@dxos/app-toolkit';
|
|
8
|
+
import { ClientPlugin } from '@dxos/plugin-client';
|
|
9
|
+
import { createComposerTestApp } from '@dxos/plugin-testing/harness';
|
|
10
|
+
|
|
11
|
+
import { ThreadPlugin } from '#plugin';
|
|
12
|
+
|
|
13
|
+
import { meta } from './meta';
|
|
14
|
+
|
|
15
|
+
const moduleId = (name: string) => `${meta.id}.module.${name}`;
|
|
16
|
+
|
|
17
|
+
describe('ThreadPlugin', () => {
|
|
18
|
+
test('modules activate on the expected events', async ({ expect }) => {
|
|
19
|
+
await using harness = await createComposerTestApp({
|
|
20
|
+
plugins: [ClientPlugin({}), ThreadPlugin()],
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// After autoStart: AppGraphBuilder, metadata, schema, OperationHandler, UndoMappings all auto-cascade.
|
|
24
|
+
expect(harness.manager.getActive()).toEqual(
|
|
25
|
+
expect.arrayContaining([moduleId('AppGraphBuilder'), moduleId('metadata'), moduleId('schema')]),
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
// SetupArtifactDefinition is fired by AssistantPlugin, which can't be included here due to a workspace cycle.
|
|
29
|
+
await harness.fire(AppActivationEvents.SetupArtifactDefinition);
|
|
30
|
+
expect(harness.manager.getActive()).toContain(moduleId('BlueprintDefinition'));
|
|
31
|
+
|
|
32
|
+
// Operation handlers auto-cascade from OperationPlugin.
|
|
33
|
+
expect(harness.manager.getActive()).toEqual(
|
|
34
|
+
expect.arrayContaining([moduleId('OperationHandler'), moduleId('UndoMappings')]),
|
|
35
|
+
);
|
|
36
|
+
});
|
|
37
|
+
});
|
package/src/ThreadPlugin.tsx
CHANGED
|
@@ -3,66 +3,60 @@
|
|
|
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 {
|
|
9
|
-
import { Operation } from '@dxos/
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
8
|
+
import { Capability, Plugin } from '@dxos/app-framework';
|
|
9
|
+
import { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';
|
|
10
|
+
import { Operation } from '@dxos/compute';
|
|
11
|
+
import { Annotation, Ref, Type } from '@dxos/echo';
|
|
12
|
+
import { ClientEvents } from '@dxos/plugin-client/types';
|
|
13
|
+
import { MarkdownEvents } from '@dxos/plugin-markdown/types';
|
|
14
|
+
import { SpaceOperation } from '@dxos/plugin-space/operations';
|
|
15
|
+
import { SpaceCapabilities, SpaceEvents, type CreateObject } from '@dxos/plugin-space/types';
|
|
16
|
+
import { translations as threadTranslations } from '@dxos/react-ui-thread/translations';
|
|
17
|
+
import { AnchoredTo, Channel, Message, Thread } from '@dxos/types';
|
|
16
18
|
|
|
17
19
|
import {
|
|
18
20
|
AppGraphBuilder,
|
|
19
21
|
BlueprintDefinition,
|
|
20
22
|
CallManager,
|
|
21
23
|
Markdown,
|
|
22
|
-
|
|
24
|
+
OperationHandler,
|
|
25
|
+
UndoMappings,
|
|
23
26
|
ReactRoot,
|
|
24
27
|
ReactSurface,
|
|
25
|
-
Repair,
|
|
26
28
|
ThreadState,
|
|
27
|
-
} from '
|
|
28
|
-
import { THREAD_ITEM, meta } from '
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
29
|
+
} from '#capabilities';
|
|
30
|
+
import { THREAD_ITEM, meta } from '#meta';
|
|
31
|
+
import { ThreadOperation } from '#operations';
|
|
32
|
+
import { translations } from '#translations';
|
|
31
33
|
|
|
32
34
|
// TODO(Zan): Every instance of `cursor` should be replaced with `anchor`.
|
|
33
35
|
// NOTE(burdon): Review/discuss CursorConverter semantics.
|
|
34
36
|
|
|
35
37
|
// TODO(wittjosiah): Rename to ChatPlugin.
|
|
36
38
|
// TODO(wittjosiah): Enabling comments should likely be factored out of this plugin but depend on it's capabilities.
|
|
39
|
+
|
|
37
40
|
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({
|
|
41
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
42
|
+
AppPlugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
|
|
43
|
+
AppPlugin.addMetadataModule({
|
|
59
44
|
metadata: [
|
|
60
45
|
{
|
|
61
46
|
id: Type.getTypename(Channel.Channel),
|
|
62
47
|
metadata: {
|
|
63
|
-
icon:
|
|
64
|
-
iconHue: '
|
|
65
|
-
createObject: ((props
|
|
48
|
+
icon: Annotation.IconAnnotation.get(Channel.Channel).pipe(Option.getOrThrow).icon,
|
|
49
|
+
iconHue: Annotation.IconAnnotation.get(Channel.Channel).pipe(Option.getOrThrow).hue ?? 'white',
|
|
50
|
+
createObject: ((props, options) =>
|
|
51
|
+
Effect.gen(function* () {
|
|
52
|
+
const object = Channel.make(props);
|
|
53
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
54
|
+
object,
|
|
55
|
+
target: options.target,
|
|
56
|
+
hidden: true,
|
|
57
|
+
targetNodeId: options.targetNodeId,
|
|
58
|
+
});
|
|
59
|
+
})) satisfies CreateObject,
|
|
66
60
|
},
|
|
67
61
|
},
|
|
68
62
|
{
|
|
@@ -72,13 +66,6 @@ export const ThreadPlugin = Plugin.define(meta).pipe(
|
|
|
72
66
|
loadReferences: async (thread: Thread.Thread) => await Ref.Array.loadAll(thread.messages ?? []),
|
|
73
67
|
},
|
|
74
68
|
},
|
|
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
69
|
{
|
|
83
70
|
id: THREAD_ITEM,
|
|
84
71
|
metadata: {
|
|
@@ -96,13 +83,32 @@ export const ThreadPlugin = Plugin.define(meta).pipe(
|
|
|
96
83
|
},
|
|
97
84
|
],
|
|
98
85
|
}),
|
|
99
|
-
|
|
100
|
-
|
|
86
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
87
|
+
AppPlugin.addUndoMappingsModule({ activate: UndoMappings }),
|
|
88
|
+
AppPlugin.addReactRootModule({ activate: ReactRoot }),
|
|
89
|
+
AppPlugin.addSchemaModule({
|
|
90
|
+
schema: [AnchoredTo.AnchoredTo, Channel.Channel, Message.Message, Thread.Thread],
|
|
101
91
|
}),
|
|
92
|
+
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
93
|
+
AppPlugin.addTranslationsModule({ translations: [...translations, ...threadTranslations] }),
|
|
102
94
|
Plugin.addModule({
|
|
103
|
-
id: '
|
|
104
|
-
activatesOn: ClientEvents.
|
|
105
|
-
activate:
|
|
95
|
+
id: 'call-manager',
|
|
96
|
+
activatesOn: ClientEvents.ClientReady,
|
|
97
|
+
activate: CallManager,
|
|
98
|
+
}),
|
|
99
|
+
// TODO(wittjosiah): Currently not used but leaving because there will likely be settings for threads again.
|
|
100
|
+
// Plugin.addModule({
|
|
101
|
+
// id: 'settings',
|
|
102
|
+
// activatesOn: Events.SetupSettings,
|
|
103
|
+
// activate: ThreadSettings,
|
|
104
|
+
// }),
|
|
105
|
+
Plugin.addModule({
|
|
106
|
+
id: 'state',
|
|
107
|
+
// TODO(wittjosiah): Does not integrate with settings store.
|
|
108
|
+
// Should this be a different event?
|
|
109
|
+
// Should settings store be renamed to be more generic?
|
|
110
|
+
activatesOn: AppActivationEvents.SetupSettings,
|
|
111
|
+
activate: ThreadState,
|
|
106
112
|
}),
|
|
107
113
|
Plugin.addModule({
|
|
108
114
|
id: 'on-space-created',
|
|
@@ -114,20 +120,12 @@ export const ThreadPlugin = Plugin.define(meta).pipe(
|
|
|
114
120
|
),
|
|
115
121
|
),
|
|
116
122
|
}),
|
|
117
|
-
Plugin.addModule({
|
|
118
|
-
id: 'repair',
|
|
119
|
-
activatesOn: ClientEvents.SpacesReady,
|
|
120
|
-
activate: Repair,
|
|
121
|
-
}),
|
|
122
123
|
Plugin.addModule({
|
|
123
124
|
id: 'markdown',
|
|
124
125
|
activatesOn: MarkdownEvents.SetupExtensions,
|
|
125
126
|
activate: Markdown,
|
|
126
127
|
}),
|
|
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
128
|
Plugin.make,
|
|
133
129
|
);
|
|
130
|
+
|
|
131
|
+
export default ThreadPlugin;
|
package/src/blueprints/index.ts
CHANGED
|
@@ -2,21 +2,18 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { Blueprint, Template } from '@dxos/
|
|
6
|
-
import { type FunctionDefinition } from '@dxos/functions';
|
|
5
|
+
import { Blueprint, Template } from '@dxos/compute';
|
|
7
6
|
import { trim } from '@dxos/util';
|
|
8
7
|
|
|
9
|
-
import {
|
|
8
|
+
import { ThreadOperation } from '#operations';
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
const BLUEPRINT_KEY = 'org.dxos.blueprint.thread';
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export const make = () =>
|
|
12
|
+
const make = () =>
|
|
16
13
|
Blueprint.make({
|
|
17
|
-
key:
|
|
14
|
+
key: BLUEPRINT_KEY,
|
|
18
15
|
name: 'Thread',
|
|
19
|
-
tools: Blueprint.toolDefinitions({
|
|
16
|
+
tools: Blueprint.toolDefinitions({ operations: [ThreadOperation.CreateProposals] }),
|
|
20
17
|
instructions: Template.make({
|
|
21
18
|
// TODO(wittjosiah): Move example to function input schema annotation.
|
|
22
19
|
source: trim`
|
|
@@ -30,3 +27,10 @@ export const make = () =>
|
|
|
30
27
|
`,
|
|
31
28
|
}),
|
|
32
29
|
});
|
|
30
|
+
|
|
31
|
+
const blueprint: Blueprint.Definition = {
|
|
32
|
+
key: BLUEPRINT_KEY,
|
|
33
|
+
make,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export default blueprint;
|
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
type TrackObject,
|
|
15
15
|
type TracksResponse,
|
|
16
16
|
} from '../types';
|
|
17
|
-
|
|
18
17
|
import { HistoryCache } from './history-cache';
|
|
19
18
|
import { BulkRequestDispatcher, FIFOScheduler } from './task-scheduling';
|
|
20
19
|
|
|
@@ -548,7 +547,9 @@ const waitForTransceiverToSendData = async (ctx: Context, transceiver: RTCRtpTra
|
|
|
548
547
|
ctx.onDispose(() => waitForData.throw(new Error('Transceiver was closed')));
|
|
549
548
|
|
|
550
549
|
const checkStats = async () => {
|
|
551
|
-
if (ctx.disposed)
|
|
550
|
+
if (ctx.disposed) {
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
552
553
|
|
|
553
554
|
try {
|
|
554
555
|
const stats = await transceiver.sender.getStats();
|
|
@@ -74,7 +74,9 @@ export const createInaudibleAudioStreamTrack = async ({ ctx }: { ctx: Context })
|
|
|
74
74
|
|
|
75
75
|
let oscillatorStarted = false;
|
|
76
76
|
const ensureOscillatorStarted = () => {
|
|
77
|
-
if (oscillatorStarted)
|
|
77
|
+
if (oscillatorStarted) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
78
80
|
oscillator.start();
|
|
79
81
|
oscillatorStarted = true;
|
|
80
82
|
};
|