@dxos/plugin-thread 0.8.4-main.ae835ea → 0.8.4-main.bc2380dfbc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/lib/neutral/ChannelArticle-ACZD7YFT.mjs +28 -0
- package/dist/lib/neutral/ChannelArticle-ACZD7YFT.mjs.map +7 -0
- package/dist/lib/neutral/ChannelChat-6YTD5HWL.mjs +10 -0
- package/dist/lib/neutral/ThreadCompanion-NQWPS2H6.mjs +208 -0
- package/dist/lib/neutral/ThreadCompanion-NQWPS2H6.mjs.map +7 -0
- package/dist/lib/neutral/ThreadContainer-XYEPEOSD.mjs +61 -0
- package/dist/lib/neutral/ThreadContainer-XYEPEOSD.mjs.map +7 -0
- package/dist/lib/neutral/ThreadPlugin.mjs +80 -0
- package/dist/lib/neutral/ThreadPlugin.mjs.map +7 -0
- package/dist/lib/neutral/ThreadPlugin.node.mjs +40 -0
- package/dist/lib/neutral/ThreadPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/ThreadPlugin.workerd.mjs +24 -0
- package/dist/lib/neutral/ThreadPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/ThreadSettings-5MKTDK3A.mjs +15 -0
- package/dist/lib/neutral/ThreadSettings-5MKTDK3A.mjs.map +7 -0
- package/dist/lib/neutral/add-message-FBIROBEZ.mjs +87 -0
- package/dist/lib/neutral/add-message-FBIROBEZ.mjs.map +7 -0
- package/dist/lib/neutral/app-graph-builder-7Q6MA6RT.mjs +120 -0
- package/dist/lib/neutral/app-graph-builder-7Q6MA6RT.mjs.map +7 -0
- package/dist/lib/neutral/append-channel-message-FTFAD3PK.mjs +40 -0
- package/dist/lib/neutral/append-channel-message-FTFAD3PK.mjs.map +7 -0
- package/dist/lib/neutral/blueprint-definition-S3EBOH4R.mjs +15 -0
- package/dist/lib/neutral/blueprint-definition-S3EBOH4R.mjs.map +7 -0
- package/dist/lib/neutral/blueprints/index.mjs +8 -0
- package/dist/lib/neutral/capabilities/index.mjs +25 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/chunk-5T5LPLBN.mjs +36 -0
- package/dist/lib/neutral/chunk-5T5LPLBN.mjs.map +7 -0
- package/dist/lib/{browser/chunk-K2DUJRFJ.mjs → neutral/chunk-7GHUS3IX.mjs} +4 -11
- package/dist/lib/neutral/chunk-7GHUS3IX.mjs.map +7 -0
- package/dist/lib/neutral/chunk-D5LGFCUY.mjs +55 -0
- package/dist/lib/neutral/chunk-D5LGFCUY.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/{browser/chunk-CP7E2HRE.mjs → neutral/chunk-JLY4NVTA.mjs} +12 -5
- package/dist/lib/neutral/chunk-JLY4NVTA.mjs.map +7 -0
- package/dist/lib/neutral/chunk-KRXHIW4P.mjs +164 -0
- package/dist/lib/neutral/chunk-KRXHIW4P.mjs.map +7 -0
- package/dist/lib/neutral/chunk-PE7IH7EL.mjs +271 -0
- package/dist/lib/neutral/chunk-PE7IH7EL.mjs.map +7 -0
- package/dist/lib/neutral/chunk-QFDT33VT.mjs +69 -0
- package/dist/lib/neutral/chunk-QFDT33VT.mjs.map +7 -0
- package/dist/lib/neutral/chunk-QMLVLKE3.mjs +8 -0
- package/dist/lib/neutral/chunk-QMLVLKE3.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +539 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +15 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/create-OAQJ6LXN.mjs +52 -0
- package/dist/lib/neutral/create-OAQJ6LXN.mjs.map +7 -0
- package/dist/lib/neutral/create-channel-3E4FJ662.mjs +19 -0
- package/dist/lib/neutral/create-channel-3E4FJ662.mjs.map +7 -0
- package/dist/lib/neutral/create-object-HIEWSBZB.mjs +27 -0
- package/dist/lib/neutral/create-object-HIEWSBZB.mjs.map +7 -0
- package/dist/lib/neutral/create-proposals-GRYZXRMV.mjs +56 -0
- package/dist/lib/neutral/create-proposals-GRYZXRMV.mjs.map +7 -0
- package/dist/lib/neutral/delete-HCCG5RVR.mjs +57 -0
- package/dist/lib/neutral/delete-HCCG5RVR.mjs.map +7 -0
- package/dist/lib/neutral/delete-message-DHFRACB4.mjs +54 -0
- package/dist/lib/neutral/delete-message-DHFRACB4.mjs.map +7 -0
- package/dist/lib/neutral/hooks/index.mjs +10 -0
- package/dist/lib/neutral/index.mjs +28 -0
- package/dist/lib/neutral/markdown-BUORNCPG.mjs +83 -0
- package/dist/lib/neutral/markdown-BUORNCPG.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +10 -0
- package/dist/lib/neutral/on-create-space-OEBRKOAM.mjs +23 -0
- package/dist/lib/neutral/on-create-space-OEBRKOAM.mjs.map +7 -0
- package/dist/lib/neutral/operation-handler-RU6K2S4L.mjs +13 -0
- package/dist/lib/neutral/operation-handler-RU6K2S4L.mjs.map +7 -0
- package/dist/lib/neutral/operations/index.mjs +8 -0
- package/dist/lib/neutral/operations/index.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +16 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-XY23GVZH.mjs +76 -0
- package/dist/lib/neutral/react-surface-XY23GVZH.mjs.map +7 -0
- package/dist/lib/neutral/restore-P4ZLXLF7.mjs +32 -0
- package/dist/lib/neutral/restore-P4ZLXLF7.mjs.map +7 -0
- package/dist/lib/neutral/restore-message-AUBOP2DF.mjs +33 -0
- package/dist/lib/neutral/restore-message-AUBOP2DF.mjs.map +7 -0
- package/dist/lib/neutral/select-LIVAMBCE.mjs +24 -0
- package/dist/lib/neutral/select-LIVAMBCE.mjs.map +7 -0
- package/dist/lib/neutral/settings-HK4EB6TF.mjs +30 -0
- package/dist/lib/neutral/settings-HK4EB6TF.mjs.map +7 -0
- package/dist/lib/neutral/state-UU7VEAKV.mjs +22 -0
- package/dist/lib/neutral/state-UU7VEAKV.mjs.map +7 -0
- package/dist/lib/neutral/testing/index.mjs +58 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/lib/neutral/toggle-resolved-RQBDQZSV.mjs +36 -0
- package/dist/lib/neutral/toggle-resolved-RQBDQZSV.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +90 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +12 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/lib/neutral/undo-mappings-HOKL2L3M.mjs +54 -0
- package/dist/lib/neutral/undo-mappings-HOKL2L3M.mjs.map +7 -0
- package/dist/types/src/ThreadPlugin.d.ts +3 -1
- package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
- package/dist/types/src/ThreadPlugin.node.d.ts +4 -0
- package/dist/types/src/ThreadPlugin.node.d.ts.map +1 -0
- package/dist/types/src/ThreadPlugin.test.d.ts +2 -0
- package/dist/types/src/ThreadPlugin.test.d.ts.map +1 -0
- package/dist/types/src/ThreadPlugin.workerd.d.ts +4 -0
- package/dist/types/src/ThreadPlugin.workerd.d.ts.map +1 -0
- package/dist/types/src/blueprints/index.d.ts +2 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/thread-blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +6 -0
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/create-object.d.ts +11 -0
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +15 -15
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown.d.ts +3 -2
- package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +5 -2
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts +5 -5
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/undo-mappings.d.ts +5 -0
- package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -0
- package/dist/types/src/components/Chat/Chat.d.ts +51 -0
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -0
- package/dist/types/src/components/Chat/index.d.ts +2 -0
- package/dist/types/src/components/Chat/index.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts +13 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts +160 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts +14 -0
- package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/index.d.ts +3 -0
- package/dist/types/src/components/CommentsPanel/index.d.ts.map +1 -0
- package/dist/types/src/components/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/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 -10
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/ChannelArticle/ChannelArticle.d.ts +13 -0
- package/dist/types/src/containers/ChannelArticle/ChannelArticle.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelArticle/ChannelArticle.stories.d.ts +162 -0
- package/dist/types/src/containers/ChannelArticle/ChannelArticle.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelArticle/index.d.ts +2 -0
- package/dist/types/src/containers/ChannelArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelChat/ChannelChat.d.ts +20 -0
- package/dist/types/src/containers/ChannelChat/ChannelChat.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelChat/index.d.ts +4 -0
- package/dist/types/src/containers/ChannelChat/index.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts +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 +6 -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 +9 -4
- package/dist/types/src/extensions/threads.d.ts.map +1 -1
- package/dist/types/src/hooks/analytics.d.ts +2 -3
- package/dist/types/src/hooks/analytics.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +0 -4
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useStatus.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/add-message.d.ts +5 -0
- package/dist/types/src/operations/add-message.d.ts.map +1 -0
- package/dist/types/src/operations/append-channel-message.d.ts +5 -0
- package/dist/types/src/operations/append-channel-message.d.ts.map +1 -0
- package/dist/types/src/operations/create-channel.d.ts +5 -0
- package/dist/types/src/operations/create-channel.d.ts.map +1 -0
- package/dist/types/src/operations/create-proposals.d.ts +5 -0
- package/dist/types/src/operations/create-proposals.d.ts.map +1 -0
- package/dist/types/src/operations/create.d.ts +5 -0
- package/dist/types/src/operations/create.d.ts.map +1 -0
- package/dist/types/src/operations/delete-message.d.ts +5 -0
- package/dist/types/src/operations/delete-message.d.ts.map +1 -0
- package/dist/types/src/operations/delete.d.ts +5 -0
- package/dist/types/src/operations/delete.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +3 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/on-create-space.d.ts +5 -0
- package/dist/types/src/operations/on-create-space.d.ts.map +1 -0
- package/dist/types/src/operations/restore-message.d.ts +5 -0
- package/dist/types/src/operations/restore-message.d.ts.map +1 -0
- package/dist/types/src/operations/restore.d.ts +5 -0
- package/dist/types/src/operations/restore.d.ts.map +1 -0
- package/dist/types/src/operations/select.d.ts +5 -0
- package/dist/types/src/operations/select.d.ts.map +1 -0
- package/dist/types/src/operations/toggle-resolved.d.ts +5 -0
- package/dist/types/src/operations/toggle-resolved.d.ts.map +1 -0
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/{components/testing.d.ts → testing/data.d.ts} +2 -2
- 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 -138
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +5 -0
- package/dist/types/src/types/Settings.d.ts.map +1 -0
- package/dist/types/src/types/ThreadCapabilities.d.ts +13 -0
- package/dist/types/src/types/ThreadCapabilities.d.ts.map +1 -0
- package/dist/types/src/types/ThreadOperation.d.ts +1995 -0
- package/dist/types/src/types/ThreadOperation.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +3 -2
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +2 -442
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +6 -3
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +151 -86
- package/src/ThreadPlugin.node.ts +39 -0
- package/src/ThreadPlugin.test.ts +37 -0
- package/src/ThreadPlugin.tsx +43 -130
- package/src/ThreadPlugin.workerd.ts +20 -0
- package/src/blueprints/index.ts +5 -0
- package/src/blueprints/thread-blueprint.ts +36 -0
- package/src/capabilities/app-graph-builder.ts +124 -167
- package/src/capabilities/blueprint-definition.ts +19 -0
- package/src/capabilities/create-object.ts +29 -0
- package/src/capabilities/index.ts +15 -12
- package/src/capabilities/markdown.ts +53 -36
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-surface.tsx +64 -78
- package/src/capabilities/settings.ts +26 -12
- package/src/capabilities/state.ts +14 -18
- package/src/capabilities/undo-mappings.ts +46 -0
- package/src/components/Chat/Chat.tsx +258 -0
- package/src/components/Chat/index.ts +5 -0
- package/src/components/CommentsPanel/CommentsPanel.stories.tsx +95 -0
- package/src/components/{CommentsContainer.tsx → CommentsPanel/CommentsPanel.tsx} +19 -20
- package/src/components/{CommentsThreadContainer.tsx → CommentsPanel/CommentsThread.tsx} +44 -47
- package/src/components/CommentsPanel/index.ts +6 -0
- package/src/components/{MessageContainer.tsx → MessagePanel/MessagePanel.tsx} +83 -47
- package/src/components/MessagePanel/index.ts +5 -0
- package/src/components/ThreadSettings/ThreadSettings.stories.tsx +32 -0
- package/src/components/ThreadSettings/ThreadSettings.tsx +19 -0
- package/src/components/ThreadSettings/index.ts +5 -0
- package/src/components/index.ts +5 -12
- package/src/containers/ChannelArticle/ChannelArticle.stories.tsx +105 -0
- package/src/containers/ChannelArticle/ChannelArticle.tsx +42 -0
- package/src/containers/ChannelArticle/index.ts +5 -0
- package/src/containers/ChannelChat/ChannelChat.tsx +75 -0
- package/src/containers/ChannelChat/index.ts +8 -0
- package/src/containers/ThreadCompanion/ThreadCompanion.tsx +215 -0
- package/src/containers/ThreadCompanion/index.ts +5 -0
- package/src/{components/Chat.stories.tsx → containers/ThreadContainer/ThreadContainer.stories.tsx} +27 -26
- package/src/containers/ThreadContainer/ThreadContainer.tsx +75 -0
- package/src/containers/ThreadContainer/index.ts +8 -0
- package/src/containers/index.ts +10 -0
- package/src/{components/command-extension.ts → extensions/command.ts} +3 -3
- package/src/extensions/index.ts +1 -0
- package/src/extensions/threads.ts +84 -39
- package/src/hooks/analytics.ts +22 -21
- package/src/hooks/index.ts +0 -4
- package/src/index.ts +4 -4
- package/src/meta.ts +5 -6
- package/src/operations/add-message.ts +81 -0
- package/src/operations/append-channel-message.ts +37 -0
- package/src/operations/create-channel.ts +20 -0
- package/src/operations/create-proposals.ts +49 -0
- package/src/operations/create.ts +48 -0
- package/src/operations/delete-message.ts +53 -0
- package/src/operations/delete.ts +63 -0
- package/src/operations/index.ts +20 -0
- package/src/operations/on-create-space.ts +27 -0
- package/src/operations/restore-message.ts +38 -0
- package/src/operations/restore.ts +38 -0
- package/src/operations/select.ts +24 -0
- package/src/operations/toggle-resolved.ts +41 -0
- package/src/plugin.ts +11 -0
- package/src/{components/testing.ts → testing/data.ts} +10 -12
- package/src/testing/index.ts +1 -1
- package/src/translations.ts +74 -76
- package/src/types/Settings.ts +10 -0
- package/src/types/ThreadCapabilities.ts +26 -0
- package/src/types/ThreadOperation.ts +178 -0
- package/src/types/index.ts +4 -2
- package/src/types/types.ts +3 -109
- package/src/util.ts +37 -5
- package/dist/lib/browser/ChannelContainer-SVV4ZX5T.mjs +0 -16
- package/dist/lib/browser/ChatContainer-ALFWQ65B.mjs +0 -15
- package/dist/lib/browser/app-graph-builder-ACBXRBOS.mjs +0 -171
- package/dist/lib/browser/app-graph-builder-ACBXRBOS.mjs.map +0 -7
- package/dist/lib/browser/call-manager-P3MYR2JS.mjs +0 -24
- package/dist/lib/browser/call-manager-P3MYR2JS.mjs.map +0 -7
- package/dist/lib/browser/chunk-6CUDBEYP.mjs +0 -377
- package/dist/lib/browser/chunk-6CUDBEYP.mjs.map +0 -7
- package/dist/lib/browser/chunk-BBTXGRIR.mjs +0 -18
- package/dist/lib/browser/chunk-BBTXGRIR.mjs.map +0 -7
- package/dist/lib/browser/chunk-CP7E2HRE.mjs.map +0 -7
- package/dist/lib/browser/chunk-DJOUMWEL.mjs +0 -988
- package/dist/lib/browser/chunk-DJOUMWEL.mjs.map +0 -7
- package/dist/lib/browser/chunk-HDEQRBOC.mjs +0 -181
- package/dist/lib/browser/chunk-HDEQRBOC.mjs.map +0 -7
- package/dist/lib/browser/chunk-IQSXEHOW.mjs +0 -618
- package/dist/lib/browser/chunk-IQSXEHOW.mjs.map +0 -7
- package/dist/lib/browser/chunk-K2DUJRFJ.mjs.map +0 -7
- package/dist/lib/browser/chunk-L6F2AG6W.mjs +0 -23
- package/dist/lib/browser/chunk-L6F2AG6W.mjs.map +0 -7
- package/dist/lib/browser/chunk-US5ZQYC3.mjs +0 -1793
- package/dist/lib/browser/chunk-US5ZQYC3.mjs.map +0 -7
- package/dist/lib/browser/chunk-UTSLSZED.mjs +0 -178
- package/dist/lib/browser/chunk-UTSLSZED.mjs.map +0 -7
- package/dist/lib/browser/chunk-XYUJXHYV.mjs +0 -106
- package/dist/lib/browser/chunk-XYUJXHYV.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -313
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-5POQTZ24.mjs +0 -419
- package/dist/lib/browser/intent-resolver-5POQTZ24.mjs.map +0 -7
- package/dist/lib/browser/markdown-L7LDNF56.mjs +0 -169
- package/dist/lib/browser/markdown-L7LDNF56.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-root-RCJLK4EP.mjs +0 -28
- package/dist/lib/browser/react-root-RCJLK4EP.mjs.map +0 -7
- package/dist/lib/browser/react-surface-IC576W2W.mjs +0 -109
- package/dist/lib/browser/react-surface-IC576W2W.mjs.map +0 -7
- package/dist/lib/browser/settings-5FYGBOGI.mjs +0 -22
- package/dist/lib/browser/settings-5FYGBOGI.mjs.map +0 -7
- package/dist/lib/browser/state-36REWXO5.mjs +0 -34
- package/dist/lib/browser/state-36REWXO5.mjs.map +0 -7
- package/dist/lib/browser/toolkit-PXASLYEQ.mjs +0 -74
- package/dist/lib/browser/toolkit-PXASLYEQ.mjs.map +0 -7
- package/dist/lib/browser/types/index.mjs +0 -14
- package/dist/lib/node-esm/ChannelContainer-63GMQ753.mjs +0 -17
- package/dist/lib/node-esm/ChatContainer-MFKPXMIK.mjs +0 -16
- package/dist/lib/node-esm/app-graph-builder-JXD7KY3G.mjs +0 -172
- package/dist/lib/node-esm/app-graph-builder-JXD7KY3G.mjs.map +0 -7
- package/dist/lib/node-esm/call-manager-FCEFP7EJ.mjs +0 -25
- package/dist/lib/node-esm/call-manager-FCEFP7EJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2MMJF7DW.mjs +0 -182
- package/dist/lib/node-esm/chunk-2MMJF7DW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2V3WSLUZ.mjs +0 -108
- package/dist/lib/node-esm/chunk-2V3WSLUZ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ABUFOZVX.mjs +0 -33
- package/dist/lib/node-esm/chunk-ABUFOZVX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-AFDO2SUZ.mjs +0 -25
- package/dist/lib/node-esm/chunk-AFDO2SUZ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KGYDYYKJ.mjs +0 -1794
- package/dist/lib/node-esm/chunk-KGYDYYKJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NWUUMKVQ.mjs +0 -378
- package/dist/lib/node-esm/chunk-NWUUMKVQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-Q7AKKZNY.mjs +0 -619
- package/dist/lib/node-esm/chunk-Q7AKKZNY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QCQAAU6J.mjs +0 -989
- package/dist/lib/node-esm/chunk-QCQAAU6J.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TYLLHI46.mjs +0 -179
- package/dist/lib/node-esm/chunk-TYLLHI46.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XI45H4IV.mjs +0 -28
- package/dist/lib/node-esm/chunk-XI45H4IV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ZQAGII7M.mjs +0 -19
- package/dist/lib/node-esm/chunk-ZQAGII7M.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -314
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-63NV3XD2.mjs +0 -420
- package/dist/lib/node-esm/intent-resolver-63NV3XD2.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-ZQW7MI5U.mjs +0 -170
- package/dist/lib/node-esm/markdown-ZQW7MI5U.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/react-root-4IDB2SN2.mjs +0 -29
- package/dist/lib/node-esm/react-root-4IDB2SN2.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-O4LGTAZ3.mjs +0 -110
- package/dist/lib/node-esm/react-surface-O4LGTAZ3.mjs.map +0 -7
- package/dist/lib/node-esm/settings-EOBQUZSW.mjs +0 -23
- package/dist/lib/node-esm/settings-EOBQUZSW.mjs.map +0 -7
- package/dist/lib/node-esm/state-X3W67GTL.mjs +0 -35
- package/dist/lib/node-esm/state-X3W67GTL.mjs.map +0 -7
- package/dist/lib/node-esm/toolkit-X2KA4FNC.mjs +0 -75
- package/dist/lib/node-esm/toolkit-X2KA4FNC.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -15
- package/dist/types/src/calls/call-manager.d.ts +0 -77
- package/dist/types/src/calls/call-manager.d.ts.map +0 -1
- package/dist/types/src/calls/call-swarm-synchronizer.d.ts +0 -66
- package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +0 -1
- package/dist/types/src/calls/index.d.ts +0 -7
- package/dist/types/src/calls/index.d.ts.map +0 -1
- package/dist/types/src/calls/media-manager.d.ts +0 -60
- package/dist/types/src/calls/media-manager.d.ts.map +0 -1
- package/dist/types/src/calls/speaking-monitor.d.ts +0 -24
- package/dist/types/src/calls/speaking-monitor.d.ts.map +0 -1
- package/dist/types/src/calls/types.d.ts +0 -45
- package/dist/types/src/calls/types.d.ts.map +0 -1
- package/dist/types/src/calls/util/audio.d.ts +0 -6
- package/dist/types/src/calls/util/audio.d.ts.map +0 -1
- package/dist/types/src/calls/util/calls-service.d.ts +0 -77
- package/dist/types/src/calls/util/calls-service.d.ts.map +0 -1
- package/dist/types/src/calls/util/history-cache.d.ts +0 -11
- package/dist/types/src/calls/util/history-cache.d.ts.map +0 -1
- package/dist/types/src/calls/util/index.d.ts +0 -5
- package/dist/types/src/calls/util/index.d.ts.map +0 -1
- package/dist/types/src/calls/util/media.d.ts +0 -6
- package/dist/types/src/calls/util/media.d.ts.map +0 -1
- package/dist/types/src/calls/util/stub-media-streams.d.ts +0 -18
- package/dist/types/src/calls/util/stub-media-streams.d.ts.map +0 -1
- package/dist/types/src/calls/util/task-scheduling.d.ts +0 -17
- package/dist/types/src/calls/util/task-scheduling.d.ts.map +0 -1
- package/dist/types/src/calls-service.stories.d.ts +0 -23
- package/dist/types/src/calls-service.stories.d.ts.map +0 -1
- package/dist/types/src/capabilities/call-manager.d.ts +0 -5
- package/dist/types/src/capabilities/call-manager.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -27
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-root.d.ts +0 -7
- package/dist/types/src/capabilities/react-root.d.ts.map +0 -1
- package/dist/types/src/capabilities/toolkit.d.ts +0 -24
- package/dist/types/src/capabilities/toolkit.d.ts.map +0 -1
- package/dist/types/src/components/Call/Call.d.ts +0 -17
- package/dist/types/src/components/Call/Call.d.ts.map +0 -1
- package/dist/types/src/components/Call/Toolbar.d.ts +0 -16
- package/dist/types/src/components/Call/Toolbar.d.ts.map +0 -1
- package/dist/types/src/components/Call/index.d.ts +0 -3
- package/dist/types/src/components/Call/index.d.ts.map +0 -1
- package/dist/types/src/components/CallDebugPanel.d.ts +0 -15
- package/dist/types/src/components/CallDebugPanel.d.ts.map +0 -1
- package/dist/types/src/components/CallSidebar.d.ts +0 -4
- package/dist/types/src/components/CallSidebar.d.ts.map +0 -1
- package/dist/types/src/components/ChannelContainer.d.ts +0 -14
- package/dist/types/src/components/ChannelContainer.d.ts.map +0 -1
- package/dist/types/src/components/ChannelContainer.stories.d.ts +0 -160
- package/dist/types/src/components/ChannelContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/Chat.stories.d.ts +0 -160
- package/dist/types/src/components/Chat.stories.d.ts.map +0 -1
- package/dist/types/src/components/ChatContainer.d.ts +0 -18
- package/dist/types/src/components/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/components/Comments.stories.d.ts +0 -158
- package/dist/types/src/components/Comments.stories.d.ts.map +0 -1
- package/dist/types/src/components/CommentsContainer.d.ts +0 -13
- package/dist/types/src/components/CommentsContainer.d.ts.map +0 -1
- package/dist/types/src/components/CommentsThreadContainer.d.ts +0 -14
- package/dist/types/src/components/CommentsThreadContainer.d.ts.map +0 -1
- package/dist/types/src/components/Lobby/Lobby.d.ts +0 -15
- package/dist/types/src/components/Lobby/Lobby.d.ts.map +0 -1
- package/dist/types/src/components/Lobby/index.d.ts +0 -2
- package/dist/types/src/components/Lobby/index.d.ts.map +0 -1
- package/dist/types/src/components/Media/AudioStream.d.ts +0 -6
- package/dist/types/src/components/Media/AudioStream.d.ts.map +0 -1
- package/dist/types/src/components/Media/VideoObject.d.ts +0 -15
- package/dist/types/src/components/Media/VideoObject.d.ts.map +0 -1
- package/dist/types/src/components/Media/VideoObject.stories.d.ts +0 -22
- package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +0 -1
- package/dist/types/src/components/Media/index.d.ts +0 -3
- package/dist/types/src/components/Media/index.d.ts.map +0 -1
- package/dist/types/src/components/MessageContainer.d.ts +0 -14
- package/dist/types/src/components/MessageContainer.d.ts.map +0 -1
- package/dist/types/src/components/Participant/Participant.d.ts +0 -6
- package/dist/types/src/components/Participant/Participant.d.ts.map +0 -1
- package/dist/types/src/components/Participant/ParticipantGrid.d.ts +0 -11
- package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +0 -1
- package/dist/types/src/components/Participant/index.d.ts +0 -3
- package/dist/types/src/components/Participant/index.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.d.ts +0 -12
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts +0 -162
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts +0 -32
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +0 -176
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts +0 -21
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/index.d.ts +0 -4
- package/dist/types/src/components/ResponsiveGrid/index.d.ts.map +0 -1
- package/dist/types/src/components/ThreadComplementary.d.ts +0 -5
- package/dist/types/src/components/ThreadComplementary.d.ts.map +0 -1
- package/dist/types/src/components/ThreadSettings.d.ts +0 -6
- package/dist/types/src/components/ThreadSettings.d.ts.map +0 -1
- package/dist/types/src/components/command-extension.d.ts.map +0 -1
- package/dist/types/src/components/testing.d.ts.map +0 -1
- package/dist/types/src/hooks/useBlackCanvasStreamTrack.d.ts +0 -2
- package/dist/types/src/hooks/useBlackCanvasStreamTrack.d.ts.map +0 -1
- package/dist/types/src/hooks/useDebugMode.d.ts +0 -2
- package/dist/types/src/hooks/useDebugMode.d.ts.map +0 -1
- package/dist/types/src/hooks/useInaudibleAudioStreamTrack.d.ts +0 -2
- package/dist/types/src/hooks/useInaudibleAudioStreamTrack.d.ts.map +0 -1
- package/dist/types/src/hooks/useVideoStreamTrack.d.ts +0 -3
- package/dist/types/src/hooks/useVideoStreamTrack.d.ts.map +0 -1
- package/dist/types/src/testing/stories.d.ts +0 -2
- package/dist/types/src/testing/stories.d.ts.map +0 -1
- package/dist/types/src/types/Channel.d.ts +0 -16
- package/dist/types/src/types/Channel.d.ts.map +0 -1
- package/dist/types/src/types/Thread.d.ts +0 -167
- package/dist/types/src/types/Thread.d.ts.map +0 -1
- package/src/calls/call-manager.ts +0 -246
- package/src/calls/call-swarm-synchronizer.ts +0 -350
- package/src/calls/index.ts +0 -10
- package/src/calls/media-manager.ts +0 -375
- package/src/calls/speaking-monitor.ts +0 -85
- package/src/calls/types.ts +0 -74
- package/src/calls/util/audio.ts +0 -58
- package/src/calls/util/calls-service.ts +0 -581
- package/src/calls/util/history-cache.ts +0 -27
- package/src/calls/util/index.ts +0 -8
- package/src/calls/util/media.ts +0 -52
- package/src/calls/util/stub-media-streams.ts +0 -127
- package/src/calls/util/task-scheduling.ts +0 -92
- package/src/calls-service.stories.tsx +0 -229
- package/src/capabilities/call-manager.ts +0 -20
- package/src/capabilities/capabilities.ts +0 -33
- package/src/capabilities/intent-resolver.ts +0 -344
- package/src/capabilities/react-root.tsx +0 -17
- package/src/capabilities/toolkit.ts +0 -85
- package/src/components/Call/Call.tsx +0 -89
- package/src/components/Call/Toolbar.tsx +0 -182
- package/src/components/Call/index.ts +0 -6
- package/src/components/CallDebugPanel.tsx +0 -174
- package/src/components/CallSidebar.tsx +0 -18
- package/src/components/ChannelContainer.stories.tsx +0 -59
- package/src/components/ChannelContainer.tsx +0 -204
- package/src/components/ChatContainer.tsx +0 -154
- package/src/components/Comments.stories.tsx +0 -91
- package/src/components/Lobby/Lobby.tsx +0 -119
- package/src/components/Lobby/index.ts +0 -5
- package/src/components/Media/AudioStream.tsx +0 -67
- package/src/components/Media/VideoObject.stories.tsx +0 -60
- package/src/components/Media/VideoObject.tsx +0 -58
- package/src/components/Media/index.ts +0 -6
- package/src/components/Participant/Participant.tsx +0 -63
- package/src/components/Participant/ParticipantGrid.tsx +0 -89
- package/src/components/Participant/index.ts +0 -6
- package/src/components/ResponsiveGrid/ResponsiveContainer.stories.tsx +0 -54
- package/src/components/ResponsiveGrid/ResponsiveContainer.tsx +0 -31
- package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +0 -158
- package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +0 -341
- package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +0 -131
- package/src/components/ResponsiveGrid/index.ts +0 -7
- package/src/components/ThreadComplementary.tsx +0 -181
- package/src/components/ThreadSettings.tsx +0 -16
- package/src/hooks/useBlackCanvasStreamTrack.tsx +0 -27
- package/src/hooks/useDebugMode.ts +0 -25
- package/src/hooks/useInaudibleAudioStreamTrack.tsx +0 -27
- package/src/hooks/useVideoStreamTrack.tsx +0 -36
- package/src/testing/stories.ts +0 -51
- package/src/types/Channel.ts +0 -27
- package/src/types/Thread.ts +0 -26
- package/src/typings/peermetrics-webrtc-stats.d.ts +0 -46
- package/src/typings.d.ts +0 -8
- /package/dist/lib/{browser/ChannelContainer-SVV4ZX5T.mjs.map → neutral/ChannelChat-6YTD5HWL.mjs.map} +0 -0
- /package/dist/lib/{browser/types → neutral/blueprints}/index.mjs.map +0 -0
- /package/dist/lib/{browser/ChatContainer-ALFWQ65B.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/{node-esm/types → neutral/hooks}/index.mjs.map +0 -0
- /package/dist/lib/{node-esm/ChannelContainer-63GMQ753.mjs.map → neutral/index.mjs.map} +0 -0
- /package/dist/lib/{node-esm/ChatContainer-MFKPXMIK.mjs.map → neutral/meta.mjs.map} +0 -0
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React, { type CSSProperties, type PropsWithChildren, useEffect, useState } from 'react';
|
|
6
|
-
|
|
7
|
-
import { Icon, IconButton, type ThemedClassName, useTranslation } from '@dxos/react-ui';
|
|
8
|
-
import { Waveform } from '@dxos/react-ui-sfx';
|
|
9
|
-
import { groupHoverControlItemWithTransition, mx } from '@dxos/react-ui-theme';
|
|
10
|
-
|
|
11
|
-
import { meta } from '../../meta';
|
|
12
|
-
|
|
13
|
-
export type ResponsiveGridItemProps<T extends object = any> = PropsWithChildren<
|
|
14
|
-
ThemedClassName<{
|
|
15
|
-
item: T;
|
|
16
|
-
style?: CSSProperties;
|
|
17
|
-
pinned?: boolean;
|
|
18
|
-
name?: string;
|
|
19
|
-
self?: boolean;
|
|
20
|
-
screenshare?: boolean;
|
|
21
|
-
video?: boolean;
|
|
22
|
-
mute?: boolean;
|
|
23
|
-
wave?: boolean;
|
|
24
|
-
speaking?: boolean;
|
|
25
|
-
debug?: boolean;
|
|
26
|
-
onClick?: (item: T) => void;
|
|
27
|
-
}>
|
|
28
|
-
>;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Cell container.
|
|
32
|
-
*/
|
|
33
|
-
export const ResponsiveGridItem = <T extends object = any>({
|
|
34
|
-
children,
|
|
35
|
-
classNames,
|
|
36
|
-
item,
|
|
37
|
-
style,
|
|
38
|
-
name,
|
|
39
|
-
self,
|
|
40
|
-
pinned,
|
|
41
|
-
screenshare,
|
|
42
|
-
video,
|
|
43
|
-
mute,
|
|
44
|
-
wave,
|
|
45
|
-
speaking,
|
|
46
|
-
onClick,
|
|
47
|
-
}: ResponsiveGridItemProps<T>) => {
|
|
48
|
-
const { t } = useTranslation(meta.id);
|
|
49
|
-
const iconProps: Record<string, { icon: string; label: string; classNames?: string }> = {
|
|
50
|
-
wave: {
|
|
51
|
-
icon: 'ph--hand-waving--duotone',
|
|
52
|
-
label: t('icon wave'),
|
|
53
|
-
classNames: 'animate-pulse bg-orange-500',
|
|
54
|
-
},
|
|
55
|
-
mute: {
|
|
56
|
-
icon: 'ph--microphone-slash--regular',
|
|
57
|
-
label: t('icon muted'),
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
const props = wave && !pinned ? iconProps.wave : mute ? iconProps.mute : speaking ? iconProps.speaking : undefined;
|
|
62
|
-
|
|
63
|
-
// Debounce speaking indicator.
|
|
64
|
-
const [speakingIndicator, setSpeakingIndicator] = useState(speaking);
|
|
65
|
-
useEffect(() => {
|
|
66
|
-
if (speaking) {
|
|
67
|
-
setSpeakingIndicator(true);
|
|
68
|
-
} else {
|
|
69
|
-
const timeout = setTimeout(() => {
|
|
70
|
-
setSpeakingIndicator(false);
|
|
71
|
-
}, 1_000);
|
|
72
|
-
return () => clearTimeout(timeout);
|
|
73
|
-
}
|
|
74
|
-
}, [speaking]);
|
|
75
|
-
|
|
76
|
-
return (
|
|
77
|
-
<div
|
|
78
|
-
className={mx(
|
|
79
|
-
'relative w-full h-full group',
|
|
80
|
-
'rounded-md outline outline-2 outline-neutral-900 transition-[outline-color] duration-500',
|
|
81
|
-
speakingIndicator ? 'outline-green-500' : !video && 'outline-separator',
|
|
82
|
-
classNames,
|
|
83
|
-
)}
|
|
84
|
-
style={style}
|
|
85
|
-
>
|
|
86
|
-
{children}
|
|
87
|
-
|
|
88
|
-
{/* Action. */}
|
|
89
|
-
{onClick && (
|
|
90
|
-
<div className='z-10 absolute top-1 right-1 flex'>
|
|
91
|
-
<IconButton
|
|
92
|
-
classNames={mx('p-1 min-bs-1 rounded', groupHoverControlItemWithTransition)}
|
|
93
|
-
iconOnly
|
|
94
|
-
icon={pinned ? 'ph--x--regular' : 'ph--arrows-out--regular'}
|
|
95
|
-
size={pinned ? 5 : 4}
|
|
96
|
-
label={pinned ? t('icon unpin') : t('icon pin')}
|
|
97
|
-
onClick={() => onClick?.(item)}
|
|
98
|
-
/>
|
|
99
|
-
</div>
|
|
100
|
-
)}
|
|
101
|
-
|
|
102
|
-
{/* Name. */}
|
|
103
|
-
{name && (
|
|
104
|
-
<div className='z-10 absolute bottom-1 left-8 right-1 flex justify-end gap-1 items-center'>
|
|
105
|
-
{/* TODO(burdon): Replace with avatar for everyone. */}
|
|
106
|
-
{/* {self && <Icon icon='ph--asterisk--regular' size={pinned ? 5 : 4} />} */}
|
|
107
|
-
{screenshare && <Icon icon='ph--broadcast--regular' size={pinned ? 5 : 4} />}
|
|
108
|
-
<div
|
|
109
|
-
className={mx('bg-neutral-800 text-neutral-100 py-0.5 truncate rounded', pinned ? 'px-2' : 'px-1 text-xs')}
|
|
110
|
-
>
|
|
111
|
-
{name}
|
|
112
|
-
</div>
|
|
113
|
-
</div>
|
|
114
|
-
)}
|
|
115
|
-
|
|
116
|
-
{/* Activity. */}
|
|
117
|
-
<div className='z-10 absolute bottom-1 left-1 flex'>
|
|
118
|
-
{(speaking && <Waveform active size={pinned ? 5 : 4} />) ||
|
|
119
|
-
(props && (
|
|
120
|
-
<IconButton
|
|
121
|
-
classNames={mx('p-1 min-bs-1 rounded', props?.classNames)}
|
|
122
|
-
icon={props?.icon}
|
|
123
|
-
label={props?.label}
|
|
124
|
-
size={pinned ? 5 : 4}
|
|
125
|
-
iconOnly
|
|
126
|
-
/>
|
|
127
|
-
))}
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
);
|
|
131
|
-
};
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2024 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React, { useCallback, useMemo } from 'react';
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
Capabilities,
|
|
9
|
-
CollaborationActions,
|
|
10
|
-
LayoutAction,
|
|
11
|
-
createIntent,
|
|
12
|
-
useCapabilities,
|
|
13
|
-
useCapability,
|
|
14
|
-
useIntentDispatcher,
|
|
15
|
-
} from '@dxos/app-framework';
|
|
16
|
-
import { Filter, Obj, Query, Relation } from '@dxos/echo';
|
|
17
|
-
import { Ref, fullyQualifiedId, getSpace, useQuery } from '@dxos/react-client/echo';
|
|
18
|
-
import { useIdentity } from '@dxos/react-client/halo';
|
|
19
|
-
import { useThemeContext, useTranslation } from '@dxos/react-ui';
|
|
20
|
-
import { useAttended } from '@dxos/react-ui-attention';
|
|
21
|
-
import { StackItem } from '@dxos/react-ui-stack';
|
|
22
|
-
import { Tabs } from '@dxos/react-ui-tabs';
|
|
23
|
-
import { mx } from '@dxos/react-ui-theme';
|
|
24
|
-
import { AnchoredTo } from '@dxos/schema';
|
|
25
|
-
|
|
26
|
-
import { ThreadCapabilities } from '../capabilities';
|
|
27
|
-
import { CommentsContainer, type CommentsContainerProps } from '../components';
|
|
28
|
-
import { meta } from '../meta';
|
|
29
|
-
import { Thread, ThreadAction } from '../types';
|
|
30
|
-
|
|
31
|
-
export const ThreadComplementary = ({ subject }: { subject: any }) => {
|
|
32
|
-
const { t } = useTranslation(meta.id);
|
|
33
|
-
const { dispatchPromise: dispatch } = useIntentDispatcher();
|
|
34
|
-
const identity = useIdentity();
|
|
35
|
-
const { tx } = useThemeContext();
|
|
36
|
-
const subjectId = fullyQualifiedId(subject);
|
|
37
|
-
|
|
38
|
-
const { state, getViewState } = useCapability(ThreadCapabilities.MutableState);
|
|
39
|
-
const drafts = state.drafts[subjectId];
|
|
40
|
-
const viewState = useMemo(() => getViewState(subjectId), [getViewState, subjectId]);
|
|
41
|
-
const { showResolvedThreads } = viewState;
|
|
42
|
-
const onChangeViewState = useCallback(
|
|
43
|
-
(nextValue: string) => {
|
|
44
|
-
viewState.showResolvedThreads = nextValue === 'all';
|
|
45
|
-
},
|
|
46
|
-
[viewState],
|
|
47
|
-
);
|
|
48
|
-
|
|
49
|
-
const anchorSorts = useCapabilities(Capabilities.AnchorSort);
|
|
50
|
-
const sort = useMemo(
|
|
51
|
-
() => anchorSorts.find(({ key }) => key === Obj.getTypename(subject))?.sort,
|
|
52
|
-
[anchorSorts, subject],
|
|
53
|
-
);
|
|
54
|
-
|
|
55
|
-
const space = getSpace(subject);
|
|
56
|
-
const objectsAnchoredTo = useQuery(space, Query.select(Filter.ids(subject.id)).targetOf(AnchoredTo));
|
|
57
|
-
const anchors = objectsAnchoredTo
|
|
58
|
-
.toSorted((a, b) => sort?.(a, b) ?? 0)
|
|
59
|
-
.filter((anchor) => Obj.instanceOf(Thread.Thread, Relation.getSource(anchor)))
|
|
60
|
-
.concat(drafts ?? []);
|
|
61
|
-
|
|
62
|
-
const attended = useAttended();
|
|
63
|
-
|
|
64
|
-
const handleAttend = useCallback(
|
|
65
|
-
(anchor: AnchoredTo) => {
|
|
66
|
-
const thread = Relation.getSource(anchor) as Thread.Thread;
|
|
67
|
-
const threadId = fullyQualifiedId(thread);
|
|
68
|
-
|
|
69
|
-
if (state.current !== threadId) {
|
|
70
|
-
state.current = threadId;
|
|
71
|
-
|
|
72
|
-
// TODO(wittjosiah): Should this be a thread-specific intent?
|
|
73
|
-
// The layout doesn't know about threads and this working depends on other plugins conditionally handling it.
|
|
74
|
-
// This may be overloading this intent or highjacking its intended purpose.
|
|
75
|
-
void dispatch(
|
|
76
|
-
createIntent(LayoutAction.ScrollIntoView, {
|
|
77
|
-
part: 'current',
|
|
78
|
-
subject: fullyQualifiedId(subject),
|
|
79
|
-
options: {
|
|
80
|
-
cursor: anchor.anchor,
|
|
81
|
-
ref: threadId,
|
|
82
|
-
},
|
|
83
|
-
}),
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
[state.current, dispatch, subject],
|
|
88
|
-
);
|
|
89
|
-
|
|
90
|
-
const handleComment = useCallback(
|
|
91
|
-
async (anchor: AnchoredTo, text: string) => {
|
|
92
|
-
await dispatch(
|
|
93
|
-
createIntent(ThreadAction.AddMessage, { anchor, subject, sender: { identityDid: identity?.did }, text }),
|
|
94
|
-
);
|
|
95
|
-
|
|
96
|
-
const thread = Relation.getSource(anchor) as Thread.Thread;
|
|
97
|
-
state.current = fullyQualifiedId(thread);
|
|
98
|
-
},
|
|
99
|
-
[dispatch, identity, subject],
|
|
100
|
-
);
|
|
101
|
-
|
|
102
|
-
const handleResolve = useCallback(
|
|
103
|
-
(anchor: AnchoredTo) =>
|
|
104
|
-
dispatch(createIntent(ThreadAction.ToggleResolved, { thread: Relation.getSource(anchor) as Thread.Thread })),
|
|
105
|
-
[dispatch],
|
|
106
|
-
);
|
|
107
|
-
|
|
108
|
-
const handleThreadDelete = useCallback(
|
|
109
|
-
(anchor: AnchoredTo) => dispatch(createIntent(ThreadAction.Delete, { anchor, subject })),
|
|
110
|
-
[dispatch, subject],
|
|
111
|
-
);
|
|
112
|
-
|
|
113
|
-
const handleMessageDelete = useCallback(
|
|
114
|
-
(anchor: AnchoredTo, messageId: string) =>
|
|
115
|
-
dispatch(createIntent(ThreadAction.DeleteMessage, { anchor, subject, messageId })),
|
|
116
|
-
[dispatch, subject],
|
|
117
|
-
);
|
|
118
|
-
|
|
119
|
-
const handleAcceptProposal = useCallback<NonNullable<CommentsContainerProps['onAcceptProposal']>>(
|
|
120
|
-
async (anchor, messageId) => {
|
|
121
|
-
const thread = Relation.getSource(anchor) as Thread.Thread;
|
|
122
|
-
const messageIndex = thread.messages.findIndex(Ref.hasObjectId(messageId));
|
|
123
|
-
const message = thread.messages[messageIndex]?.target;
|
|
124
|
-
const proposal = message?.blocks.find((block) => block._tag === 'proposal');
|
|
125
|
-
if (!proposal || !anchor.anchor) {
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
await dispatch(
|
|
130
|
-
createIntent(CollaborationActions.AcceptProposal, {
|
|
131
|
-
subject,
|
|
132
|
-
anchor: anchor.anchor,
|
|
133
|
-
proposal,
|
|
134
|
-
}),
|
|
135
|
-
);
|
|
136
|
-
await dispatch(createIntent(ThreadAction.ToggleResolved, { thread }));
|
|
137
|
-
},
|
|
138
|
-
[dispatch, subject],
|
|
139
|
-
);
|
|
140
|
-
|
|
141
|
-
const comments = (
|
|
142
|
-
<CommentsContainer
|
|
143
|
-
anchors={anchors}
|
|
144
|
-
currentId={attended.includes(subjectId) ? state.current : undefined}
|
|
145
|
-
showResolvedThreads={showResolvedThreads}
|
|
146
|
-
onAttend={handleAttend}
|
|
147
|
-
onComment={handleComment}
|
|
148
|
-
onResolve={handleResolve}
|
|
149
|
-
onMessageDelete={handleMessageDelete}
|
|
150
|
-
onThreadDelete={handleThreadDelete}
|
|
151
|
-
onAcceptProposal={handleAcceptProposal}
|
|
152
|
-
/>
|
|
153
|
-
);
|
|
154
|
-
|
|
155
|
-
return (
|
|
156
|
-
<StackItem.Content toolbar>
|
|
157
|
-
<Tabs.Root
|
|
158
|
-
value={showResolvedThreads ? 'all' : 'unresolved'}
|
|
159
|
-
orientation='horizontal'
|
|
160
|
-
classNames={[
|
|
161
|
-
'contents [&_[role="tabpanel"]]:min-bs-0 [&_[role="tabpanel"]]:overflow-y-auto [&_[role="tabpanel"]]:scrollbar-thin',
|
|
162
|
-
]}
|
|
163
|
-
onValueChange={onChangeViewState}
|
|
164
|
-
>
|
|
165
|
-
{/* TODO(burdon): Standardize (like Tollbar). */}
|
|
166
|
-
<Tabs.Tablist classNames={mx('bg-toolbarSurface border-b border-subduedSeparator')}>
|
|
167
|
-
<Tabs.Tab value='unresolved' classNames='text-sm'>
|
|
168
|
-
{t('show unresolved label')}
|
|
169
|
-
</Tabs.Tab>
|
|
170
|
-
<Tabs.Tab value='all' classNames='text-sm'>
|
|
171
|
-
{t('show all label')}
|
|
172
|
-
</Tabs.Tab>
|
|
173
|
-
</Tabs.Tablist>
|
|
174
|
-
<div className='overflow-y-auto'>
|
|
175
|
-
<Tabs.Tabpanel value='all'>{showResolvedThreads && comments}</Tabs.Tabpanel>
|
|
176
|
-
<Tabs.Tabpanel value='unresolved'>{!showResolvedThreads && comments}</Tabs.Tabpanel>
|
|
177
|
-
</div>
|
|
178
|
-
</Tabs.Root>
|
|
179
|
-
</StackItem.Content>
|
|
180
|
-
);
|
|
181
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { useTranslation } from '@dxos/react-ui';
|
|
8
|
-
import { ControlPage } from '@dxos/react-ui-form';
|
|
9
|
-
|
|
10
|
-
import { meta } from '../meta';
|
|
11
|
-
import type { ThreadSettingsProps } from '../types';
|
|
12
|
-
|
|
13
|
-
export const ThreadSettings = ({ settings: _settings }: { settings: ThreadSettingsProps }) => {
|
|
14
|
-
const { t: _t } = useTranslation(meta.id);
|
|
15
|
-
return <ControlPage></ControlPage>;
|
|
16
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { useEffect, useState } from 'react';
|
|
6
|
-
|
|
7
|
-
import { scheduleTask } from '@dxos/async';
|
|
8
|
-
import { Context } from '@dxos/context';
|
|
9
|
-
|
|
10
|
-
import { createBlackCanvasStreamTrack } from '../calls/util/stub-media-streams';
|
|
11
|
-
|
|
12
|
-
export const useBlackCanvasStreamTrack = () => {
|
|
13
|
-
const [blackCanvasStreamTrack, setBlackCanvasStreamTrack] = useState<MediaStreamTrack | undefined>(undefined);
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
const ctx = new Context();
|
|
16
|
-
scheduleTask(ctx, async () => {
|
|
17
|
-
const blackCanvasStreamTrack = await createBlackCanvasStreamTrack({ ctx, width: 720, height: 480 });
|
|
18
|
-
setBlackCanvasStreamTrack(blackCanvasStreamTrack);
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
return () => {
|
|
22
|
-
void ctx.dispose();
|
|
23
|
-
};
|
|
24
|
-
}, []);
|
|
25
|
-
|
|
26
|
-
return blackCanvasStreamTrack;
|
|
27
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { useEffect, useState } from 'react';
|
|
6
|
-
|
|
7
|
-
// TODO(burdon): Standardize across plugins/composer.
|
|
8
|
-
export const useDebugMode = () => {
|
|
9
|
-
const [enabled, setEnabled] = useState(false);
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
const handler = (ev: KeyboardEvent) => {
|
|
12
|
-
if (ev.key.toLowerCase() === 'd' && ev.ctrlKey) {
|
|
13
|
-
ev.preventDefault();
|
|
14
|
-
setEnabled(!enabled);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
document.addEventListener('keypress', handler);
|
|
19
|
-
return () => {
|
|
20
|
-
document.removeEventListener('keypress', handler);
|
|
21
|
-
};
|
|
22
|
-
}, [enabled]);
|
|
23
|
-
|
|
24
|
-
return enabled;
|
|
25
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { useEffect, useState } from 'react';
|
|
6
|
-
|
|
7
|
-
import { scheduleTask } from '@dxos/async';
|
|
8
|
-
import { Context } from '@dxos/context';
|
|
9
|
-
|
|
10
|
-
import { createInaudibleAudioStreamTrack } from '../calls/util/stub-media-streams';
|
|
11
|
-
|
|
12
|
-
export const useInaudibleAudioStreamTrack = () => {
|
|
13
|
-
const [audioStreamTrack, setAudioStreamTrack] = useState<MediaStreamTrack | undefined>(undefined);
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
const ctx = new Context();
|
|
16
|
-
scheduleTask(ctx, async () => {
|
|
17
|
-
const audioStreamTrack = await createInaudibleAudioStreamTrack({ ctx });
|
|
18
|
-
setAudioStreamTrack(audioStreamTrack);
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
return () => {
|
|
22
|
-
void ctx.dispose();
|
|
23
|
-
};
|
|
24
|
-
}, []);
|
|
25
|
-
|
|
26
|
-
return audioStreamTrack;
|
|
27
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { type RefObject, useEffect, useRef, useState } from 'react';
|
|
6
|
-
|
|
7
|
-
export const useVideoStreamTrack = (videoElement: RefObject<HTMLVideoElement | null>, videoSrc: string) => {
|
|
8
|
-
// Get video stream track.
|
|
9
|
-
const [videoStreamTrack, setVideoStreamTrack] = useState<MediaStreamTrack | undefined>(undefined);
|
|
10
|
-
const hadRun = useRef(false);
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
// This is done to capture only one video stream.
|
|
13
|
-
if (!videoElement.current || hadRun.current || !videoSrc) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
hadRun.current = true;
|
|
17
|
-
videoElement.current.addEventListener('playing', () => {
|
|
18
|
-
if (videoStreamTrack) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
const stream = (videoElement.current as any).captureStream();
|
|
22
|
-
const track = stream.getTracks()[0];
|
|
23
|
-
if (track && !videoStreamTrack) {
|
|
24
|
-
setVideoStreamTrack(track);
|
|
25
|
-
}
|
|
26
|
-
stream.onaddtrack = (event: MediaStreamTrackEvent) => {
|
|
27
|
-
if (event.track.kind === 'video' && !videoStreamTrack) {
|
|
28
|
-
setVideoStreamTrack(event.track);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
});
|
|
32
|
-
videoElement.current.src = videoSrc;
|
|
33
|
-
}, [videoElement.current, videoSrc]);
|
|
34
|
-
|
|
35
|
-
return videoStreamTrack;
|
|
36
|
-
};
|
package/src/testing/stories.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { IntentPlugin, SettingsPlugin } from '@dxos/app-framework';
|
|
6
|
-
import { ClientPlugin } from '@dxos/plugin-client';
|
|
7
|
-
import { GraphPlugin } from '@dxos/plugin-graph';
|
|
8
|
-
import { SpacePlugin } from '@dxos/plugin-space';
|
|
9
|
-
import { ThemePlugin } from '@dxos/plugin-theme';
|
|
10
|
-
import { Config } from '@dxos/react-client';
|
|
11
|
-
import { defaultTx } from '@dxos/react-ui-theme';
|
|
12
|
-
|
|
13
|
-
import { ThreadPlugin } from '../ThreadPlugin';
|
|
14
|
-
import { Channel } from '../types';
|
|
15
|
-
|
|
16
|
-
export const createThreadPlugins = async () => [
|
|
17
|
-
ThemePlugin({ tx: defaultTx }),
|
|
18
|
-
ClientPlugin({
|
|
19
|
-
onClientInitialized: async ({ client }) => {
|
|
20
|
-
await client.halo.createIdentity({ displayName: 'Test User' });
|
|
21
|
-
},
|
|
22
|
-
onSpacesReady: async ({ client }) => {
|
|
23
|
-
await client.spaces.default.waitUntilReady();
|
|
24
|
-
client.spaces.default.db.add(Channel.make());
|
|
25
|
-
},
|
|
26
|
-
config: new Config({
|
|
27
|
-
runtime: {
|
|
28
|
-
client: {
|
|
29
|
-
edgeFeatures: {
|
|
30
|
-
signaling: true,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
services: {
|
|
34
|
-
edge: {
|
|
35
|
-
url: 'https://edge.dxos.workers.dev/',
|
|
36
|
-
},
|
|
37
|
-
iceProviders: [
|
|
38
|
-
{
|
|
39
|
-
urls: 'https://edge.dxos.workers.dev/ice',
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
}),
|
|
45
|
-
}),
|
|
46
|
-
SpacePlugin({}),
|
|
47
|
-
IntentPlugin(),
|
|
48
|
-
SettingsPlugin(),
|
|
49
|
-
GraphPlugin(),
|
|
50
|
-
ThreadPlugin(),
|
|
51
|
-
];
|
package/src/types/Channel.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as Schema from 'effect/Schema';
|
|
6
|
-
|
|
7
|
-
import { Obj, Ref, Type } from '@dxos/echo';
|
|
8
|
-
import { FormAnnotation } from '@dxos/echo/internal';
|
|
9
|
-
|
|
10
|
-
import * as Thread from './Thread';
|
|
11
|
-
|
|
12
|
-
const _Channel = Schema.Struct({
|
|
13
|
-
name: Schema.optional(Schema.String),
|
|
14
|
-
defaultThread: Type.Ref(Thread.Thread).pipe(FormAnnotation.set(false)),
|
|
15
|
-
// TODO(wittjosiah): Should be an "ordered collection".
|
|
16
|
-
threads: Type.Ref(Thread.Thread).pipe(Schema.Array, Schema.mutable, FormAnnotation.set(false)),
|
|
17
|
-
}).pipe(Type.Obj({ typename: 'dxos.org/type/Channel', version: '0.1.0' }));
|
|
18
|
-
export interface Channel extends Schema.Schema.Type<typeof _Channel> {}
|
|
19
|
-
export interface ChannelEncoded extends Schema.Schema.Encoded<typeof _Channel> {}
|
|
20
|
-
export const Channel: Schema.Schema<Channel, ChannelEncoded> = _Channel;
|
|
21
|
-
|
|
22
|
-
export const make = (props: Pick<Obj.MakeProps<typeof Channel>, 'name'> = {}) =>
|
|
23
|
-
Obj.make(Channel, {
|
|
24
|
-
...props,
|
|
25
|
-
defaultThread: Ref.make(Obj.make(Thread.Thread, { messages: [], status: 'active' })),
|
|
26
|
-
threads: [],
|
|
27
|
-
});
|
package/src/types/Thread.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as Schema from 'effect/Schema';
|
|
6
|
-
|
|
7
|
-
import { Obj, Type } from '@dxos/echo';
|
|
8
|
-
import { DataType } from '@dxos/schema';
|
|
9
|
-
|
|
10
|
-
export const ThreadStatus = Schema.Union(
|
|
11
|
-
Schema.Literal('staged'),
|
|
12
|
-
Schema.Literal('active'),
|
|
13
|
-
Schema.Literal('resolved'),
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
const _Thread = Schema.Struct({
|
|
17
|
-
name: Schema.String.pipe(Schema.optional),
|
|
18
|
-
status: ThreadStatus.pipe(Schema.optional),
|
|
19
|
-
messages: Schema.mutable(Schema.Array(Type.Ref(DataType.Message))),
|
|
20
|
-
}).pipe(Type.Obj({ typename: 'dxos.org/type/Thread', version: '0.1.0' }));
|
|
21
|
-
export interface Thread extends Schema.Schema.Type<typeof _Thread> {}
|
|
22
|
-
export interface ThreadEncoded extends Schema.Schema.Encoded<typeof _Thread> {}
|
|
23
|
-
export const Thread: Schema.Schema<Thread, ThreadEncoded> = _Thread;
|
|
24
|
-
|
|
25
|
-
export const make = ({ status = 'staged', messages = [], ...props }: Partial<Obj.MakeProps<typeof Thread>> = {}) =>
|
|
26
|
-
Obj.make(Thread, { status, messages, ...props });
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
declare module '@peermetrics/webrtc-stats' {
|
|
6
|
-
import { EventEmitter } from 'events';
|
|
7
|
-
|
|
8
|
-
export interface WebRTCStatsConstructorOptions {
|
|
9
|
-
getStatsInterval?: number;
|
|
10
|
-
rawStats?: boolean;
|
|
11
|
-
statsObject?: boolean;
|
|
12
|
-
filteredStats?: boolean;
|
|
13
|
-
wrapGetUserMedia?: boolean;
|
|
14
|
-
debug?: boolean;
|
|
15
|
-
remote?: boolean;
|
|
16
|
-
logLevel?: LogLevel;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface ConnectionInfo {
|
|
20
|
-
pc: RTCPeerConnection;
|
|
21
|
-
peerId: number | string;
|
|
22
|
-
connectionId: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
type TrackStats = {
|
|
26
|
-
id: string;
|
|
27
|
-
kind: 'audio' | 'video';
|
|
28
|
-
codecId: string;
|
|
29
|
-
mid: string;
|
|
30
|
-
bytesSent: number;
|
|
31
|
-
bytesReceived: number;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export type WebRTCStatsEvent = {
|
|
35
|
-
data: {
|
|
36
|
-
audio: { inbound: TrackStats[]; outbound: TrackStats[] };
|
|
37
|
-
video: { inbound: TrackStats[]; outbound: TrackStats[] };
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export class WebRTCStats extends EventEmitter<{ stats: WebRTCStatsEvent }> {
|
|
42
|
-
constructor(options: WebRTCStatsConstructorOptions);
|
|
43
|
-
addConnection(info: ConnectionInfo): void;
|
|
44
|
-
removeConnection(info: Pick<ConnectionInfo, 'pc'>): void;
|
|
45
|
-
}
|
|
46
|
-
}
|
package/src/typings.d.ts
DELETED
/package/dist/lib/{browser/ChannelContainer-SVV4ZX5T.mjs.map → neutral/ChannelChat-6YTD5HWL.mjs.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|