@dxos/plugin-thread 0.8.4-main.74a063c4e0 → 0.8.4-main.765dc60934
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/ThreadSettings-5MKTDK3A.mjs +15 -0
- package/dist/lib/neutral/ThreadSettings-5MKTDK3A.mjs.map +7 -0
- package/dist/lib/{browser/add-message-MJDIN4K4.mjs → neutral/add-message-FBIROBEZ.mjs} +14 -24
- 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/{browser/blueprints/index.mjs → neutral/chunk-5T5LPLBN.mjs} +5 -6
- package/dist/lib/neutral/chunk-5T5LPLBN.mjs.map +7 -0
- package/dist/lib/neutral/chunk-7GHUS3IX.mjs +20 -0
- 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-JLY4NVTA.mjs +38 -0
- 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/{browser/chunk-2QNKWX4H.mjs → neutral/chunk-PE7IH7EL.mjs} +97 -85
- 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-QK4QZUR5.mjs +8 -0
- package/dist/lib/neutral/chunk-QK4QZUR5.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +539 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +15 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/{browser/create-N2ZVTONJ.mjs → neutral/create-OAQJ6LXN.mjs} +11 -14
- package/dist/lib/neutral/create-OAQJ6LXN.mjs.map +7 -0
- package/dist/lib/neutral/create-channel-3E4FJ662.mjs +19 -0
- package/dist/lib/neutral/create-channel-3E4FJ662.mjs.map +7 -0
- package/dist/lib/neutral/create-object-HIEWSBZB.mjs +27 -0
- package/dist/lib/neutral/create-object-HIEWSBZB.mjs.map +7 -0
- package/dist/lib/{browser/create-proposals-VTOSWUOX.mjs → neutral/create-proposals-GRYZXRMV.mjs} +5 -6
- package/dist/lib/neutral/create-proposals-GRYZXRMV.mjs.map +7 -0
- package/dist/lib/{browser/delete-QZZE655Y.mjs → neutral/delete-HCCG5RVR.mjs} +8 -10
- package/dist/lib/neutral/delete-HCCG5RVR.mjs.map +7 -0
- package/dist/lib/{browser/delete-message-JTBPACDE.mjs → neutral/delete-message-DHFRACB4.mjs} +10 -20
- 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/index.mjs.map +7 -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/meta.mjs.map +7 -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/{browser/restore-KKQHFLYO.mjs → neutral/restore-P4ZLXLF7.mjs} +6 -7
- package/dist/lib/neutral/restore-P4ZLXLF7.mjs.map +7 -0
- package/dist/lib/{browser/restore-message-YN4BJQIZ.mjs → neutral/restore-message-AUBOP2DF.mjs} +9 -18
- package/dist/lib/neutral/restore-message-AUBOP2DF.mjs.map +7 -0
- package/dist/lib/{browser/select-VBJ3MBLN.mjs → neutral/select-LIVAMBCE.mjs} +7 -9
- 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/{browser/toggle-resolved-OX7UEZG5.mjs → neutral/toggle-resolved-RQBDQZSV.mjs} +12 -21
- 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 +1 -0
- package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
- package/dist/types/src/ThreadPlugin.node.d.ts +4 -0
- package/dist/types/src/ThreadPlugin.node.d.ts.map +1 -0
- package/dist/types/src/ThreadPlugin.test.d.ts +2 -0
- package/dist/types/src/ThreadPlugin.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/thread-blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +2 -2
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
- 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 +10 -9
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +2 -1
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -1
- package/dist/types/src/components/Chat/Chat.d.ts +51 -0
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -0
- package/dist/types/src/components/Chat/index.d.ts +2 -0
- package/dist/types/src/components/Chat/index.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts.map +1 -1
- package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts +70 -70
- package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts.map +1 -1
- package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts.map +1 -1
- package/dist/types/src/components/MessagePanel/MessagePanel.d.ts.map +1 -1
- package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts.map +1 -1
- package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts +70 -70
- package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +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/{CallDebugPanel → ChannelArticle}/index.d.ts.map +1 -1
- package/dist/types/src/containers/ChannelChat/ChannelChat.d.ts +20 -0
- package/dist/types/src/containers/ChannelChat/ChannelChat.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelChat/index.d.ts +4 -0
- package/dist/types/src/containers/ChannelChat/index.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts.map +1 -1
- package/dist/types/src/containers/ThreadContainer/ThreadContainer.d.ts +20 -0
- package/dist/types/src/containers/ThreadContainer/ThreadContainer.d.ts.map +1 -0
- package/dist/types/src/containers/{ChatContainer/ChatContainer.stories.d.ts → ThreadContainer/ThreadContainer.stories.d.ts} +71 -71
- package/dist/types/src/containers/ThreadContainer/ThreadContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadContainer/index.d.ts +4 -0
- package/dist/types/src/containers/ThreadContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +3 -4
- package/dist/types/src/containers/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/index.d.ts +0 -4
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useStatus.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/add-message.d.ts +3 -3
- package/dist/types/src/operations/add-message.d.ts.map +1 -1
- package/dist/types/src/operations/append-channel-message.d.ts +5 -0
- package/dist/types/src/operations/append-channel-message.d.ts.map +1 -0
- package/dist/types/src/operations/create-channel.d.ts +3 -3
- package/dist/types/src/operations/create-channel.d.ts.map +1 -1
- package/dist/types/src/operations/create-proposals.d.ts +3 -3
- package/dist/types/src/operations/create-proposals.d.ts.map +1 -1
- package/dist/types/src/operations/create.d.ts +3 -3
- package/dist/types/src/operations/create.d.ts.map +1 -1
- package/dist/types/src/operations/delete-message.d.ts +3 -3
- package/dist/types/src/operations/delete-message.d.ts.map +1 -1
- package/dist/types/src/operations/delete.d.ts +3 -3
- package/dist/types/src/operations/delete.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -2
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/on-create-space.d.ts +3 -3
- package/dist/types/src/operations/on-create-space.d.ts.map +1 -1
- package/dist/types/src/operations/restore-message.d.ts +3 -3
- package/dist/types/src/operations/restore-message.d.ts.map +1 -1
- package/dist/types/src/operations/restore.d.ts +3 -3
- package/dist/types/src/operations/restore.d.ts.map +1 -1
- package/dist/types/src/operations/select.d.ts +3 -3
- package/dist/types/src/operations/select.d.ts.map +1 -1
- package/dist/types/src/operations/toggle-resolved.d.ts +3 -3
- package/dist/types/src/operations/toggle-resolved.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/testing/data.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +1 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +70 -70
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +2 -1
- package/dist/types/src/types/Settings.d.ts.map +1 -1
- package/dist/types/src/types/ThreadCapabilities.d.ts +13 -0
- package/dist/types/src/types/ThreadCapabilities.d.ts.map +1 -0
- package/dist/types/src/{operations/definitions.d.ts → types/ThreadOperation.d.ts} +856 -1650
- 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 +1 -1
- 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 +126 -106
- package/src/ThreadPlugin.node.ts +39 -0
- package/src/ThreadPlugin.test.ts +37 -0
- package/src/ThreadPlugin.tsx +12 -65
- package/src/blueprints/thread-blueprint.ts +3 -4
- package/src/capabilities/app-graph-builder.ts +21 -71
- package/src/capabilities/blueprint-definition.ts +2 -0
- package/src/capabilities/create-object.ts +29 -0
- package/src/capabilities/index.ts +3 -3
- package/src/capabilities/markdown.ts +9 -5
- package/src/capabilities/operation-handler.ts +1 -1
- package/src/capabilities/react-surface.tsx +19 -34
- package/src/capabilities/settings.ts +1 -3
- package/src/capabilities/undo-mappings.ts +1 -1
- package/src/components/Chat/Chat.tsx +258 -0
- package/src/components/Chat/index.ts +5 -0
- package/src/components/CommentsPanel/CommentsPanel.stories.tsx +6 -4
- package/src/components/CommentsPanel/CommentsPanel.tsx +4 -4
- package/src/components/CommentsPanel/CommentsThread.tsx +2 -3
- package/src/components/MessagePanel/MessagePanel.tsx +10 -11
- package/src/components/ThreadSettings/ThreadSettings.stories.tsx +2 -1
- package/src/components/ThreadSettings/ThreadSettings.tsx +0 -1
- package/src/components/index.ts +1 -1
- package/src/containers/ChannelArticle/ChannelArticle.stories.tsx +105 -0
- package/src/containers/ChannelArticle/ChannelArticle.tsx +42 -0
- package/src/containers/ChannelArticle/index.ts +5 -0
- package/src/containers/ChannelChat/ChannelChat.tsx +75 -0
- package/src/containers/ChannelChat/index.ts +8 -0
- package/src/containers/ThreadCompanion/ThreadCompanion.tsx +10 -12
- package/src/containers/{ChatContainer/ChatContainer.stories.tsx → ThreadContainer/ThreadContainer.stories.tsx} +10 -11
- package/src/containers/ThreadContainer/ThreadContainer.tsx +75 -0
- package/src/containers/ThreadContainer/index.ts +8 -0
- package/src/containers/index.ts +3 -4
- package/src/extensions/command.ts +1 -1
- package/src/extensions/threads.ts +15 -15
- package/src/hooks/analytics.ts +1 -1
- package/src/hooks/index.ts +0 -5
- package/src/index.ts +4 -4
- package/src/meta.ts +1 -2
- package/src/operations/add-message.ts +9 -9
- package/src/operations/append-channel-message.ts +37 -0
- package/src/operations/create-channel.ts +4 -4
- package/src/operations/create-proposals.ts +3 -3
- package/src/operations/create.ts +7 -7
- package/src/operations/delete-message.ts +7 -7
- package/src/operations/delete.ts +4 -4
- package/src/operations/index.ts +2 -4
- package/src/operations/on-create-space.ts +4 -4
- package/src/operations/restore-message.ts +6 -6
- package/src/operations/restore.ts +4 -4
- package/src/operations/select.ts +3 -3
- package/src/operations/toggle-resolved.ts +9 -9
- package/src/plugin.ts +11 -0
- package/src/testing/index.ts +1 -1
- package/src/translations.ts +3 -3
- package/src/types/Settings.ts +1 -1
- package/src/types/ThreadCapabilities.ts +26 -0
- package/src/{operations/definitions.ts → types/ThreadOperation.ts} +14 -13
- package/src/types/index.ts +4 -2
- package/src/types/types.ts +0 -2
- package/src/util.ts +36 -4
- package/dist/lib/browser/add-message-MJDIN4K4.mjs.map +0 -7
- package/dist/lib/browser/blueprints/index.mjs.map +0 -7
- package/dist/lib/browser/chunk-2QNKWX4H.mjs.map +0 -7
- package/dist/lib/browser/chunk-7T7J6ZR6.mjs +0 -61
- package/dist/lib/browser/chunk-7T7J6ZR6.mjs.map +0 -7
- package/dist/lib/browser/create-N2ZVTONJ.mjs.map +0 -7
- package/dist/lib/browser/create-channel-Y4H3535D.mjs +0 -21
- package/dist/lib/browser/create-channel-Y4H3535D.mjs.map +0 -7
- package/dist/lib/browser/create-channel-thread-6N7TKEAW.mjs +0 -28
- package/dist/lib/browser/create-channel-thread-6N7TKEAW.mjs.map +0 -7
- package/dist/lib/browser/create-proposals-VTOSWUOX.mjs.map +0 -7
- package/dist/lib/browser/delete-QZZE655Y.mjs.map +0 -7
- package/dist/lib/browser/delete-message-JTBPACDE.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -2334
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/on-create-space-2UGS234J.mjs +0 -25
- package/dist/lib/browser/on-create-space-2UGS234J.mjs.map +0 -7
- package/dist/lib/browser/operations/index.mjs +0 -14
- package/dist/lib/browser/operations/index.mjs.map +0 -7
- package/dist/lib/browser/restore-KKQHFLYO.mjs.map +0 -7
- package/dist/lib/browser/restore-message-YN4BJQIZ.mjs.map +0 -7
- package/dist/lib/browser/select-VBJ3MBLN.mjs.map +0 -7
- package/dist/lib/browser/toggle-resolved-OX7UEZG5.mjs.map +0 -7
- package/dist/lib/browser/types/index.mjs +0 -12
- package/dist/lib/node-esm/add-message-X6IRTANN.mjs +0 -98
- package/dist/lib/node-esm/add-message-X6IRTANN.mjs.map +0 -7
- package/dist/lib/node-esm/blueprints/index.mjs +0 -38
- package/dist/lib/node-esm/blueprints/index.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
- package/dist/lib/node-esm/chunk-I6LAZYVU.mjs +0 -260
- package/dist/lib/node-esm/chunk-I6LAZYVU.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UGSMYQLZ.mjs +0 -62
- package/dist/lib/node-esm/chunk-UGSMYQLZ.mjs.map +0 -7
- package/dist/lib/node-esm/create-A6XQZR7M.mjs +0 -56
- package/dist/lib/node-esm/create-A6XQZR7M.mjs.map +0 -7
- package/dist/lib/node-esm/create-channel-KA5T23ZS.mjs +0 -22
- package/dist/lib/node-esm/create-channel-KA5T23ZS.mjs.map +0 -7
- package/dist/lib/node-esm/create-channel-thread-44PXAPGM.mjs +0 -29
- package/dist/lib/node-esm/create-channel-thread-44PXAPGM.mjs.map +0 -7
- package/dist/lib/node-esm/create-proposals-HDBVDNUX.mjs +0 -58
- package/dist/lib/node-esm/create-proposals-HDBVDNUX.mjs.map +0 -7
- package/dist/lib/node-esm/delete-3RAWD5GG.mjs +0 -60
- package/dist/lib/node-esm/delete-3RAWD5GG.mjs.map +0 -7
- package/dist/lib/node-esm/delete-message-QQHNJBHY.mjs +0 -65
- package/dist/lib/node-esm/delete-message-QQHNJBHY.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -2335
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/on-create-space-ZURB6UKR.mjs +0 -26
- package/dist/lib/node-esm/on-create-space-ZURB6UKR.mjs.map +0 -7
- package/dist/lib/node-esm/operations/index.mjs +0 -15
- package/dist/lib/node-esm/operations/index.mjs.map +0 -7
- package/dist/lib/node-esm/restore-PDYEKDE3.mjs +0 -34
- package/dist/lib/node-esm/restore-PDYEKDE3.mjs.map +0 -7
- package/dist/lib/node-esm/restore-message-OB32YYKF.mjs +0 -43
- package/dist/lib/node-esm/restore-message-OB32YYKF.mjs.map +0 -7
- package/dist/lib/node-esm/select-6KETLVWY.mjs +0 -27
- package/dist/lib/node-esm/select-6KETLVWY.mjs.map +0 -7
- package/dist/lib/node-esm/toggle-resolved-V74EBRQZ.mjs +0 -46
- package/dist/lib/node-esm/toggle-resolved-V74EBRQZ.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -13
- package/dist/types/src/calls/call-manager.d.ts +0 -87
- package/dist/types/src/calls/call-manager.d.ts.map +0 -1
- package/dist/types/src/calls/call-swarm-synchronizer.d.ts +0 -66
- package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +0 -1
- package/dist/types/src/calls/index.d.ts +0 -7
- package/dist/types/src/calls/index.d.ts.map +0 -1
- package/dist/types/src/calls/media-manager.d.ts +0 -60
- package/dist/types/src/calls/media-manager.d.ts.map +0 -1
- package/dist/types/src/calls/speaking-monitor.d.ts +0 -24
- package/dist/types/src/calls/speaking-monitor.d.ts.map +0 -1
- package/dist/types/src/calls/types.d.ts +0 -45
- package/dist/types/src/calls/types.d.ts.map +0 -1
- package/dist/types/src/calls/util/audio.d.ts +0 -6
- package/dist/types/src/calls/util/audio.d.ts.map +0 -1
- package/dist/types/src/calls/util/calls-service.d.ts +0 -77
- package/dist/types/src/calls/util/calls-service.d.ts.map +0 -1
- package/dist/types/src/calls/util/history-cache.d.ts +0 -11
- package/dist/types/src/calls/util/history-cache.d.ts.map +0 -1
- package/dist/types/src/calls/util/index.d.ts +0 -5
- package/dist/types/src/calls/util/index.d.ts.map +0 -1
- package/dist/types/src/calls/util/media.d.ts +0 -6
- package/dist/types/src/calls/util/media.d.ts.map +0 -1
- package/dist/types/src/calls/util/stub-media-streams.d.ts +0 -18
- package/dist/types/src/calls/util/stub-media-streams.d.ts.map +0 -1
- package/dist/types/src/calls/util/task-scheduling.d.ts +0 -17
- package/dist/types/src/calls/util/task-scheduling.d.ts.map +0 -1
- package/dist/types/src/calls-service.stories.d.ts +0 -23
- package/dist/types/src/calls-service.stories.d.ts.map +0 -1
- package/dist/types/src/capabilities/call-manager.d.ts +0 -6
- package/dist/types/src/capabilities/call-manager.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-root.d.ts +0 -9
- package/dist/types/src/capabilities/react-root.d.ts.map +0 -1
- package/dist/types/src/components/Call/Call.d.ts +0 -17
- package/dist/types/src/components/Call/Call.d.ts.map +0 -1
- package/dist/types/src/components/Call/Toolbar.d.ts +0 -16
- package/dist/types/src/components/Call/Toolbar.d.ts.map +0 -1
- package/dist/types/src/components/Call/index.d.ts +0 -3
- package/dist/types/src/components/Call/index.d.ts.map +0 -1
- package/dist/types/src/components/Lobby/Lobby.d.ts +0 -15
- package/dist/types/src/components/Lobby/Lobby.d.ts.map +0 -1
- package/dist/types/src/components/Lobby/index.d.ts +0 -2
- package/dist/types/src/components/Lobby/index.d.ts.map +0 -1
- package/dist/types/src/components/Media/AudioStream.d.ts +0 -6
- package/dist/types/src/components/Media/AudioStream.d.ts.map +0 -1
- package/dist/types/src/components/Media/VideoObject.d.ts +0 -15
- package/dist/types/src/components/Media/VideoObject.d.ts.map +0 -1
- package/dist/types/src/components/Media/VideoObject.stories.d.ts +0 -22
- package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +0 -1
- package/dist/types/src/components/Media/index.d.ts +0 -3
- package/dist/types/src/components/Media/index.d.ts.map +0 -1
- package/dist/types/src/components/Participant/Participant.d.ts +0 -6
- package/dist/types/src/components/Participant/Participant.d.ts.map +0 -1
- package/dist/types/src/components/Participant/ParticipantGrid.d.ts +0 -11
- package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +0 -1
- package/dist/types/src/components/Participant/index.d.ts +0 -3
- package/dist/types/src/components/Participant/index.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts +0 -32
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +0 -178
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts +0 -21
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts +0 -12
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts +0 -164
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/index.d.ts +0 -4
- package/dist/types/src/components/ResponsiveGrid/index.d.ts.map +0 -1
- package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts +0 -15
- package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts.map +0 -1
- package/dist/types/src/containers/CallDebugPanel/index.d.ts +0 -2
- package/dist/types/src/containers/CallSidebar/CallSidebar.d.ts +0 -3
- package/dist/types/src/containers/CallSidebar/CallSidebar.d.ts.map +0 -1
- package/dist/types/src/containers/CallSidebar/index.d.ts +0 -2
- package/dist/types/src/containers/CallSidebar/index.d.ts.map +0 -1
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts +0 -12
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +0 -1
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts +0 -162
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +0 -1
- package/dist/types/src/containers/ChannelContainer/index.d.ts +0 -2
- package/dist/types/src/containers/ChannelContainer/index.d.ts.map +0 -1
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +0 -20
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +0 -1
- package/dist/types/src/containers/ChatContainer/index.d.ts +0 -4
- package/dist/types/src/containers/ChatContainer/index.d.ts.map +0 -1
- package/dist/types/src/hooks/useBlackCanvasStreamTrack.d.ts +0 -2
- package/dist/types/src/hooks/useBlackCanvasStreamTrack.d.ts.map +0 -1
- package/dist/types/src/hooks/useDebugMode.d.ts +0 -2
- package/dist/types/src/hooks/useDebugMode.d.ts.map +0 -1
- package/dist/types/src/hooks/useInaudibleAudioStreamTrack.d.ts +0 -2
- package/dist/types/src/hooks/useInaudibleAudioStreamTrack.d.ts.map +0 -1
- package/dist/types/src/hooks/useVideoStreamTrack.d.ts +0 -3
- package/dist/types/src/hooks/useVideoStreamTrack.d.ts.map +0 -1
- package/dist/types/src/operations/create-channel-thread.d.ts +0 -5
- package/dist/types/src/operations/create-channel-thread.d.ts.map +0 -1
- package/dist/types/src/operations/definitions.d.ts.map +0 -1
- package/dist/types/src/testing/stories.d.ts +0 -3
- package/dist/types/src/testing/stories.d.ts.map +0 -1
- package/dist/types/src/types/Channel.d.ts +0 -711
- package/dist/types/src/types/Channel.d.ts.map +0 -1
- package/dist/types/src/types/capabilities.d.ts +0 -23
- package/dist/types/src/types/capabilities.d.ts.map +0 -1
- package/src/calls/call-manager.ts +0 -270
- package/src/calls/call-swarm-synchronizer.ts +0 -350
- package/src/calls/index.ts +0 -10
- package/src/calls/media-manager.ts +0 -378
- package/src/calls/speaking-monitor.ts +0 -85
- package/src/calls/types.ts +0 -74
- package/src/calls/util/audio.ts +0 -58
- package/src/calls/util/calls-service.ts +0 -580
- 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 -230
- package/src/capabilities/call-manager.ts +0 -27
- package/src/capabilities/react-root.tsx +0 -20
- package/src/components/Call/Call.tsx +0 -93
- package/src/components/Call/Toolbar.tsx +0 -199
- package/src/components/Call/index.ts +0 -6
- package/src/components/Lobby/Lobby.tsx +0 -122
- package/src/components/Lobby/index.ts +0 -5
- package/src/components/Media/AudioStream.tsx +0 -67
- package/src/components/Media/VideoObject.stories.tsx +0 -59
- package/src/components/Media/VideoObject.tsx +0 -58
- package/src/components/Media/index.ts +0 -6
- package/src/components/Participant/Participant.tsx +0 -77
- package/src/components/Participant/ParticipantGrid.tsx +0 -88
- package/src/components/Participant/index.ts +0 -6
- package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +0 -157
- package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +0 -341
- package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +0 -134
- package/src/components/ResponsiveGrid/ResponsivePanel.stories.tsx +0 -53
- package/src/components/ResponsiveGrid/ResponsivePanel.tsx +0 -31
- package/src/components/ResponsiveGrid/index.ts +0 -7
- package/src/containers/CallDebugPanel/CallDebugPanel.tsx +0 -173
- package/src/containers/CallDebugPanel/index.ts +0 -5
- package/src/containers/CallSidebar/CallSidebar.tsx +0 -18
- package/src/containers/CallSidebar/index.ts +0 -5
- package/src/containers/ChannelContainer/ChannelContainer.stories.tsx +0 -61
- package/src/containers/ChannelContainer/ChannelContainer.tsx +0 -223
- package/src/containers/ChannelContainer/index.ts +0 -5
- package/src/containers/ChatContainer/ChatContainer.tsx +0 -131
- package/src/containers/ChatContainer/index.ts +0 -8
- package/src/hooks/useBlackCanvasStreamTrack.tsx +0 -27
- package/src/hooks/useDebugMode.ts +0 -25
- package/src/hooks/useInaudibleAudioStreamTrack.tsx +0 -27
- package/src/hooks/useVideoStreamTrack.tsx +0 -36
- package/src/operations/create-channel-thread.ts +0 -26
- package/src/testing/stories.ts +0 -51
- package/src/types/Channel.ts +0 -37
- package/src/types/capabilities.ts +0 -36
- package/src/typings/peermetrics-webrtc-stats.d.ts +0 -46
- package/src/typings.d.ts +0 -8
- /package/dist/lib/{browser/chunk-J5LGTIGS.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 → neutral}/chunk-J5LGTIGS.mjs +0 -0
- /package/dist/lib/{node-esm/chunk-HSLMI22Q.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/{node-esm/types → neutral/hooks}/index.mjs.map +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-thread",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.765dc60934",
|
|
4
4
|
"description": "DXOS Threads Surface plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -8,61 +8,89 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/dxos/dxos"
|
|
10
10
|
},
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "FSL-1.1-Apache-2.0",
|
|
12
12
|
"author": "DXOS.org",
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
15
15
|
"imports": {
|
|
16
|
-
"#blueprints":
|
|
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
|
-
"#testing": "./src/testing/index.ts",
|
|
24
|
-
"#types": "./src/types/index.ts"
|
|
25
|
-
},
|
|
26
|
-
"exports": {
|
|
27
|
-
".": {
|
|
28
|
-
"source": "./src/index.ts",
|
|
29
|
-
"browser": "./dist/lib/browser/index.mjs",
|
|
30
|
-
"node": "./dist/lib/node-esm/index.mjs",
|
|
31
|
-
"types": "./dist/types/src/index.d.ts"
|
|
32
|
-
},
|
|
33
|
-
"./blueprints": {
|
|
16
|
+
"#blueprints": {
|
|
34
17
|
"source": "./src/blueprints/index.ts",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
18
|
+
"types": "./dist/types/src/blueprints/index.d.ts",
|
|
19
|
+
"default": "./dist/lib/neutral/blueprints/index.mjs"
|
|
20
|
+
},
|
|
21
|
+
"#capabilities": {
|
|
22
|
+
"source": "./src/capabilities/index.ts",
|
|
23
|
+
"types": "./dist/types/src/capabilities/index.d.ts",
|
|
24
|
+
"default": "./dist/lib/neutral/capabilities/index.mjs"
|
|
38
25
|
},
|
|
39
|
-
"
|
|
26
|
+
"#components": {
|
|
27
|
+
"source": "./src/components/index.ts",
|
|
28
|
+
"types": "./dist/types/src/components/index.d.ts",
|
|
29
|
+
"default": "./dist/lib/neutral/components/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"#containers": {
|
|
32
|
+
"source": "./src/containers/index.ts",
|
|
33
|
+
"types": "./dist/types/src/containers/index.d.ts",
|
|
34
|
+
"default": "./dist/lib/neutral/containers/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"#hooks": {
|
|
37
|
+
"source": "./src/hooks/index.ts",
|
|
38
|
+
"types": "./dist/types/src/hooks/index.d.ts",
|
|
39
|
+
"default": "./dist/lib/neutral/hooks/index.mjs"
|
|
40
|
+
},
|
|
41
|
+
"#meta": {
|
|
42
|
+
"source": "./src/meta.ts",
|
|
43
|
+
"types": "./dist/types/src/meta.d.ts",
|
|
44
|
+
"default": "./dist/lib/neutral/meta.mjs"
|
|
45
|
+
},
|
|
46
|
+
"#operations": {
|
|
40
47
|
"source": "./src/operations/index.ts",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
48
|
+
"types": "./dist/types/src/operations/index.d.ts",
|
|
49
|
+
"default": "./dist/lib/neutral/operations/index.mjs"
|
|
50
|
+
},
|
|
51
|
+
"#plugin": {
|
|
52
|
+
"source": {
|
|
53
|
+
"node": "./src/ThreadPlugin.node.ts",
|
|
54
|
+
"default": "./src/ThreadPlugin.tsx"
|
|
55
|
+
},
|
|
56
|
+
"types": "./dist/types/src/ThreadPlugin.d.ts",
|
|
57
|
+
"node": "./dist/lib/neutral/ThreadPlugin.node.mjs",
|
|
58
|
+
"default": "./dist/lib/neutral/ThreadPlugin.mjs"
|
|
44
59
|
},
|
|
45
|
-
"
|
|
60
|
+
"#testing": {
|
|
61
|
+
"source": "./src/testing/index.ts",
|
|
62
|
+
"types": "./dist/types/src/testing/index.d.ts",
|
|
63
|
+
"default": "./dist/lib/neutral/testing/index.mjs"
|
|
64
|
+
},
|
|
65
|
+
"#translations": {
|
|
66
|
+
"source": "./src/translations.ts",
|
|
67
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
68
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
69
|
+
},
|
|
70
|
+
"#types": {
|
|
46
71
|
"source": "./src/types/index.ts",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"types": "./dist/types/src/types/index.d.ts"
|
|
72
|
+
"types": "./dist/types/src/types/index.d.ts",
|
|
73
|
+
"default": "./dist/lib/neutral/types/index.mjs"
|
|
50
74
|
}
|
|
51
75
|
},
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
76
|
+
"exports": {
|
|
77
|
+
".": {
|
|
78
|
+
"source": "./src/index.ts",
|
|
79
|
+
"types": "./dist/types/src/index.d.ts",
|
|
80
|
+
"default": "./dist/lib/neutral/index.mjs"
|
|
81
|
+
},
|
|
82
|
+
"./plugin": {
|
|
83
|
+
"source": "./src/plugin.ts",
|
|
84
|
+
"types": "./dist/types/src/plugin.d.ts",
|
|
85
|
+
"default": "./dist/lib/neutral/plugin.mjs"
|
|
86
|
+
},
|
|
87
|
+
"./translations": {
|
|
88
|
+
"source": "./src/translations.ts",
|
|
89
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
90
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
64
91
|
}
|
|
65
92
|
},
|
|
93
|
+
"types": "dist/types/src/index.d.ts",
|
|
66
94
|
"files": [
|
|
67
95
|
"dist",
|
|
68
96
|
"src"
|
|
@@ -70,62 +98,58 @@
|
|
|
70
98
|
"dependencies": {
|
|
71
99
|
"@codemirror/language": "^6.11.3",
|
|
72
100
|
"@codemirror/state": "^6.5.2",
|
|
73
|
-
"@codemirror/view": "^6.38.
|
|
101
|
+
"@codemirror/view": "^6.38.5",
|
|
74
102
|
"@effect-atom/atom": "^0.5.1",
|
|
75
103
|
"@effect-atom/atom-react": "^0.5.0",
|
|
76
104
|
"@effect/ai": "0.33.2",
|
|
77
105
|
"@effect/experimental": "0.58.0",
|
|
78
|
-
"@peermetrics/webrtc-stats": "5.7.1",
|
|
79
106
|
"date-fns": "^3.6.0",
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/
|
|
92
|
-
"@dxos/echo": "0.8.4-main.
|
|
93
|
-
"@dxos/
|
|
94
|
-
"@dxos/
|
|
95
|
-
"@dxos/
|
|
96
|
-
"@dxos/
|
|
97
|
-
"@dxos/
|
|
98
|
-
"@dxos/
|
|
99
|
-
"@dxos/
|
|
100
|
-
"@dxos/
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/
|
|
103
|
-
"@dxos/plugin-
|
|
104
|
-
"@dxos/plugin-
|
|
105
|
-
"@dxos/plugin-
|
|
106
|
-
"@dxos/plugin-
|
|
107
|
-
"@dxos/
|
|
108
|
-
"@dxos/plugin-
|
|
109
|
-
"@dxos/
|
|
110
|
-
"@dxos/
|
|
111
|
-
"@dxos/react-ui-attention": "0.8.4-main.
|
|
112
|
-
"@dxos/
|
|
113
|
-
"@dxos/react-
|
|
114
|
-
"@dxos/react-ui-
|
|
115
|
-
"@dxos/react-ui-menu": "0.8.4-main.
|
|
116
|
-
"@dxos/react-ui-
|
|
117
|
-
"@dxos/react-ui-
|
|
118
|
-
"@dxos/react-ui-
|
|
119
|
-
"@dxos/react-ui-
|
|
120
|
-
"@dxos/
|
|
121
|
-
"@dxos/react-ui-
|
|
122
|
-
"@dxos/
|
|
123
|
-
"@dxos/
|
|
124
|
-
"@dxos/
|
|
125
|
-
"@dxos/types": "0.8.4-main.
|
|
126
|
-
"@dxos/react-ui-stack": "0.8.4-main.74a063c4e0",
|
|
127
|
-
"@dxos/ui-editor": "0.8.4-main.74a063c4e0",
|
|
128
|
-
"@dxos/util": "0.8.4-main.74a063c4e0"
|
|
107
|
+
"@dxos/app-toolkit": "0.8.4-main.765dc60934",
|
|
108
|
+
"@dxos/assistant": "0.8.4-main.765dc60934",
|
|
109
|
+
"@dxos/app-framework": "0.8.4-main.765dc60934",
|
|
110
|
+
"@dxos/async": "0.8.4-main.765dc60934",
|
|
111
|
+
"@dxos/client-protocol": "0.8.4-main.765dc60934",
|
|
112
|
+
"@dxos/compute": "0.8.4-main.765dc60934",
|
|
113
|
+
"@dxos/context": "0.8.4-main.765dc60934",
|
|
114
|
+
"@dxos/debug": "0.8.4-main.765dc60934",
|
|
115
|
+
"@dxos/codec-protobuf": "0.8.4-main.765dc60934",
|
|
116
|
+
"@dxos/devtools": "0.8.4-main.765dc60934",
|
|
117
|
+
"@dxos/display-name": "0.8.4-main.765dc60934",
|
|
118
|
+
"@dxos/echo-db": "0.8.4-main.765dc60934",
|
|
119
|
+
"@dxos/echo": "0.8.4-main.765dc60934",
|
|
120
|
+
"@dxos/echo-react": "0.8.4-main.765dc60934",
|
|
121
|
+
"@dxos/effect": "0.8.4-main.765dc60934",
|
|
122
|
+
"@dxos/invariant": "0.8.4-main.765dc60934",
|
|
123
|
+
"@dxos/log": "0.8.4-main.765dc60934",
|
|
124
|
+
"@dxos/plugin-attention": "0.8.4-main.765dc60934",
|
|
125
|
+
"@dxos/operation": "0.8.4-main.765dc60934",
|
|
126
|
+
"@dxos/plugin-client": "0.8.4-main.765dc60934",
|
|
127
|
+
"@dxos/plugin-calls": "0.8.4-main.765dc60934",
|
|
128
|
+
"@dxos/keys": "0.8.4-main.765dc60934",
|
|
129
|
+
"@dxos/plugin-deck": "0.8.4-main.765dc60934",
|
|
130
|
+
"@dxos/plugin-graph": "0.8.4-main.765dc60934",
|
|
131
|
+
"@dxos/plugin-markdown": "0.8.4-main.765dc60934",
|
|
132
|
+
"@dxos/plugin-observability": "0.8.4-main.765dc60934",
|
|
133
|
+
"@dxos/plugin-space": "0.8.4-main.765dc60934",
|
|
134
|
+
"@dxos/protocols": "0.8.4-main.765dc60934",
|
|
135
|
+
"@dxos/plugin-settings": "0.8.4-main.765dc60934",
|
|
136
|
+
"@dxos/random": "0.8.4-main.765dc60934",
|
|
137
|
+
"@dxos/react-client": "0.8.4-main.765dc60934",
|
|
138
|
+
"@dxos/react-ui-attention": "0.8.4-main.765dc60934",
|
|
139
|
+
"@dxos/react-ui-editor": "0.8.4-main.765dc60934",
|
|
140
|
+
"@dxos/react-ui-dnd": "0.8.4-main.765dc60934",
|
|
141
|
+
"@dxos/react-ui-form": "0.8.4-main.765dc60934",
|
|
142
|
+
"@dxos/react-ui-menu": "0.8.4-main.765dc60934",
|
|
143
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.765dc60934",
|
|
144
|
+
"@dxos/react-ui-stack": "0.8.4-main.765dc60934",
|
|
145
|
+
"@dxos/react-ui-sfx": "0.8.4-main.765dc60934",
|
|
146
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.765dc60934",
|
|
147
|
+
"@dxos/react-ui-tabs": "0.8.4-main.765dc60934",
|
|
148
|
+
"@dxos/react-ui-thread": "0.8.4-main.765dc60934",
|
|
149
|
+
"@dxos/schema": "0.8.4-main.765dc60934",
|
|
150
|
+
"@dxos/ui-editor": "0.8.4-main.765dc60934",
|
|
151
|
+
"@dxos/util": "0.8.4-main.765dc60934",
|
|
152
|
+
"@dxos/types": "0.8.4-main.765dc60934"
|
|
129
153
|
},
|
|
130
154
|
"devDependencies": {
|
|
131
155
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -135,13 +159,12 @@
|
|
|
135
159
|
"effect": "3.20.0",
|
|
136
160
|
"react": "~19.2.3",
|
|
137
161
|
"react-dom": "~19.2.3",
|
|
138
|
-
"vite": "^
|
|
139
|
-
"@dxos/plugin-
|
|
140
|
-
"@dxos/
|
|
141
|
-
"@dxos/
|
|
142
|
-
"@dxos/
|
|
143
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
144
|
-
"@dxos/plugin-testing": "0.8.4-main.74a063c4e0"
|
|
162
|
+
"vite": "^8.0.13",
|
|
163
|
+
"@dxos/plugin-testing": "0.8.4-main.765dc60934",
|
|
164
|
+
"@dxos/react-ui": "0.8.4-main.765dc60934",
|
|
165
|
+
"@dxos/storybook-utils": "0.8.4-main.765dc60934",
|
|
166
|
+
"@dxos/plugin-theme": "0.8.4-main.765dc60934",
|
|
167
|
+
"@dxos/ui-theme": "0.8.4-main.765dc60934"
|
|
145
168
|
},
|
|
146
169
|
"peerDependencies": {
|
|
147
170
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -149,10 +172,7 @@
|
|
|
149
172
|
"effect": "3.20.0",
|
|
150
173
|
"react": "~19.2.3",
|
|
151
174
|
"react-dom": "~19.2.3",
|
|
152
|
-
"@dxos/ui
|
|
153
|
-
"@dxos/
|
|
154
|
-
},
|
|
155
|
-
"publishConfig": {
|
|
156
|
-
"access": "public"
|
|
175
|
+
"@dxos/react-ui": "0.8.4-main.765dc60934",
|
|
176
|
+
"@dxos/ui-theme": "0.8.4-main.765dc60934"
|
|
157
177
|
}
|
|
158
178
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability, Plugin } from '@dxos/app-framework';
|
|
8
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
9
|
+
import { Operation } from '@dxos/compute';
|
|
10
|
+
import { SpaceCapabilities, SpaceEvents } from '@dxos/plugin-space';
|
|
11
|
+
import { AnchoredTo, Channel, Message, Thread } from '@dxos/types';
|
|
12
|
+
|
|
13
|
+
import { AppGraphBuilder, BlueprintDefinition, CreateObject, OperationHandler, UndoMappings } from '#capabilities';
|
|
14
|
+
import { meta } from '#meta';
|
|
15
|
+
import { ThreadOperation } from '#types';
|
|
16
|
+
|
|
17
|
+
export const ThreadPlugin = Plugin.define(meta).pipe(
|
|
18
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
19
|
+
AppPlugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
|
|
20
|
+
AppPlugin.addCreateObjectModule({ activate: CreateObject }),
|
|
21
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
22
|
+
AppPlugin.addUndoMappingsModule({ activate: UndoMappings }),
|
|
23
|
+
AppPlugin.addSchemaModule({
|
|
24
|
+
schema: [AnchoredTo.AnchoredTo, Channel.Channel, Message.Message, Thread.Thread],
|
|
25
|
+
}),
|
|
26
|
+
Plugin.addModule({
|
|
27
|
+
id: 'on-space-created',
|
|
28
|
+
activatesOn: SpaceEvents.SpaceCreated,
|
|
29
|
+
activate: () =>
|
|
30
|
+
Effect.succeed(
|
|
31
|
+
Capability.contributes(SpaceCapabilities.OnCreateSpace, (params) =>
|
|
32
|
+
Operation.invoke(ThreadOperation.OnCreateSpace, params),
|
|
33
|
+
),
|
|
34
|
+
),
|
|
35
|
+
}),
|
|
36
|
+
Plugin.make,
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
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/plugin';
|
|
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, CreateObject, schema, OperationHandler, UndoMappings all auto-cascade.
|
|
24
|
+
expect(harness.manager.getActive()).toEqual(
|
|
25
|
+
expect.arrayContaining([moduleId('AppGraphBuilder'), moduleId('CreateObject'), 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,35 +3,28 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
|
-
import * as Option from 'effect/Option';
|
|
7
6
|
|
|
8
7
|
import { Capability, Plugin } from '@dxos/app-framework';
|
|
9
8
|
import { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';
|
|
10
|
-
import {
|
|
11
|
-
import { Operation } from '@dxos/operation';
|
|
12
|
-
import { ClientEvents } from '@dxos/plugin-client/types';
|
|
9
|
+
import { Operation } from '@dxos/compute';
|
|
13
10
|
import { MarkdownEvents } from '@dxos/plugin-markdown';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { AnchoredTo, Message, Thread } from '@dxos/types';
|
|
11
|
+
import { SpaceCapabilities, SpaceEvents } from '@dxos/plugin-space';
|
|
12
|
+
import { translations as threadTranslations } from '@dxos/react-ui-thread/translations';
|
|
13
|
+
import { AnchoredTo, Channel, Message, Thread } from '@dxos/types';
|
|
18
14
|
|
|
19
15
|
import {
|
|
20
16
|
AppGraphBuilder,
|
|
21
17
|
BlueprintDefinition,
|
|
22
|
-
|
|
18
|
+
CreateObject,
|
|
23
19
|
Markdown,
|
|
24
20
|
OperationHandler,
|
|
25
21
|
UndoMappings,
|
|
26
|
-
ReactRoot,
|
|
27
22
|
ReactSurface,
|
|
28
23
|
ThreadState,
|
|
29
24
|
} from '#capabilities';
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
|
|
34
|
-
import { translations } from './translations';
|
|
25
|
+
import { meta } from '#meta';
|
|
26
|
+
import { translations } from '#translations';
|
|
27
|
+
import { ThreadOperation } from '#types';
|
|
35
28
|
|
|
36
29
|
// TODO(Zan): Every instance of `cursor` should be replaced with `anchor`.
|
|
37
30
|
// NOTE(burdon): Review/discuss CursorConverter semantics.
|
|
@@ -42,62 +35,14 @@ import { translations } from './translations';
|
|
|
42
35
|
export const ThreadPlugin = Plugin.define(meta).pipe(
|
|
43
36
|
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
44
37
|
AppPlugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
|
|
45
|
-
AppPlugin.
|
|
46
|
-
metadata: [
|
|
47
|
-
{
|
|
48
|
-
id: Type.getTypename(Channel.Channel),
|
|
49
|
-
metadata: {
|
|
50
|
-
icon: Annotation.IconAnnotation.get(Channel.Channel).pipe(Option.getOrThrow).icon,
|
|
51
|
-
iconHue: Annotation.IconAnnotation.get(Channel.Channel).pipe(Option.getOrThrow).hue ?? 'white',
|
|
52
|
-
createObject: ((props, options) =>
|
|
53
|
-
Effect.gen(function* () {
|
|
54
|
-
const object = Channel.make(props);
|
|
55
|
-
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
56
|
-
object,
|
|
57
|
-
target: options.target,
|
|
58
|
-
hidden: true,
|
|
59
|
-
targetNodeId: options.targetNodeId,
|
|
60
|
-
});
|
|
61
|
-
})) satisfies CreateObject,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
id: Type.getTypename(Thread.Thread),
|
|
66
|
-
metadata: {
|
|
67
|
-
// TODO(wittjosiah): Move out of metadata.
|
|
68
|
-
loadReferences: async (thread: Thread.Thread) => await Ref.Array.loadAll(thread.messages ?? []),
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
id: THREAD_ITEM,
|
|
73
|
-
metadata: {
|
|
74
|
-
parse: (item: Thread.Thread, type: string) => {
|
|
75
|
-
switch (type) {
|
|
76
|
-
case 'node':
|
|
77
|
-
return { id: item.id, label: item.name, data: item };
|
|
78
|
-
case 'object':
|
|
79
|
-
return item;
|
|
80
|
-
case 'view-object':
|
|
81
|
-
return { id: `${item.id}-view`, object: item };
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
}),
|
|
38
|
+
AppPlugin.addCreateObjectModule({ activate: CreateObject }),
|
|
88
39
|
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
89
|
-
AppPlugin.
|
|
90
|
-
AppPlugin.addReactRootModule({ activate: ReactRoot }),
|
|
40
|
+
AppPlugin.addUndoMappingsModule({ activate: UndoMappings }),
|
|
91
41
|
AppPlugin.addSchemaModule({
|
|
92
42
|
schema: [AnchoredTo.AnchoredTo, Channel.Channel, Message.Message, Thread.Thread],
|
|
93
43
|
}),
|
|
94
44
|
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
95
45
|
AppPlugin.addTranslationsModule({ translations: [...translations, ...threadTranslations] }),
|
|
96
|
-
Plugin.addModule({
|
|
97
|
-
id: 'call-manager',
|
|
98
|
-
activatesOn: ClientEvents.ClientReady,
|
|
99
|
-
activate: CallManager,
|
|
100
|
-
}),
|
|
101
46
|
// TODO(wittjosiah): Currently not used but leaving because there will likely be settings for threads again.
|
|
102
47
|
// Plugin.addModule({
|
|
103
48
|
// id: 'settings',
|
|
@@ -129,3 +74,5 @@ export const ThreadPlugin = Plugin.define(meta).pipe(
|
|
|
129
74
|
}),
|
|
130
75
|
Plugin.make,
|
|
131
76
|
);
|
|
77
|
+
|
|
78
|
+
export default ThreadPlugin;
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import { Blueprint, Template } from '@dxos/blueprints';
|
|
5
|
+
import { Blueprint, Template } from '@dxos/compute';
|
|
7
6
|
import { trim } from '@dxos/util';
|
|
8
7
|
|
|
9
|
-
import { ThreadOperation } from '#
|
|
8
|
+
import { ThreadOperation } from '#types';
|
|
10
9
|
|
|
11
10
|
const BLUEPRINT_KEY = 'org.dxos.blueprint.thread';
|
|
12
11
|
|
|
@@ -29,7 +28,7 @@ const make = () =>
|
|
|
29
28
|
}),
|
|
30
29
|
});
|
|
31
30
|
|
|
32
|
-
const blueprint:
|
|
31
|
+
const blueprint: Blueprint.Definition = {
|
|
33
32
|
key: BLUEPRINT_KEY,
|
|
34
33
|
make,
|
|
35
34
|
};
|
|
@@ -8,16 +8,17 @@ import * as Option from 'effect/Option';
|
|
|
8
8
|
|
|
9
9
|
import { Capability } from '@dxos/app-framework';
|
|
10
10
|
import { AppCapabilities, AppNode } from '@dxos/app-toolkit';
|
|
11
|
+
import { Operation } from '@dxos/compute';
|
|
11
12
|
import { Obj } from '@dxos/echo';
|
|
12
|
-
import {
|
|
13
|
-
import { AttentionCapabilities } from '@dxos/plugin-attention/types';
|
|
13
|
+
import { AttentionCapabilities } from '@dxos/plugin-attention';
|
|
14
14
|
import { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';
|
|
15
15
|
import { linkedSegment } from '@dxos/react-ui-attention';
|
|
16
16
|
import { type SelectionManager, type SelectionMode, defaultSelection } from '@dxos/react-ui-attention';
|
|
17
|
+
import { Channel } from '@dxos/types';
|
|
17
18
|
|
|
18
19
|
import { meta } from '#meta';
|
|
19
|
-
import { ThreadOperation } from '#
|
|
20
|
-
import {
|
|
20
|
+
import { ThreadOperation } from '#types';
|
|
21
|
+
import { ThreadCapabilities, type ThreadState } from '#types';
|
|
21
22
|
|
|
22
23
|
import { getAnchor } from '../util';
|
|
23
24
|
|
|
@@ -55,74 +56,22 @@ const whenCommentableObject = NodeMatcher.whenAll(
|
|
|
55
56
|
NodeMatcher.whenNot(NodeMatcher.whenEchoTypeMatches(Channel.Channel)),
|
|
56
57
|
);
|
|
57
58
|
|
|
58
|
-
// TODO(wittjosiah): Highlight active calls in L1.
|
|
59
|
-
// Track active meetings by subscribing to meetings query and polling the swarms of recent meetings in the space.
|
|
60
59
|
export default Capability.makeModule(
|
|
61
60
|
Effect.fnUntraced(function* () {
|
|
62
61
|
const capabilities = yield* Capability.Service;
|
|
63
62
|
|
|
64
|
-
const
|
|
65
|
-
capabilities.getAll(AppCapabilities.
|
|
63
|
+
const getCommentConfig = (typename: string) =>
|
|
64
|
+
capabilities.getAll(AppCapabilities.CommentConfig).find(({ id }) => id === typename);
|
|
66
65
|
|
|
67
66
|
const extensions = yield* Effect.all([
|
|
68
|
-
GraphBuilder.createExtension({
|
|
69
|
-
id: 'active-call',
|
|
70
|
-
match: NodeMatcher.whenRoot,
|
|
71
|
-
connector: (node, get) => {
|
|
72
|
-
const callManagerAtom = capabilities.atom(ThreadCapabilities.CallManager);
|
|
73
|
-
const [call] = get(callManagerAtom);
|
|
74
|
-
if (!call) {
|
|
75
|
-
return Effect.succeed([]);
|
|
76
|
-
}
|
|
77
|
-
// Use derived joinedAtom for efficient subscription.
|
|
78
|
-
const joined = get(call.joinedAtom);
|
|
79
|
-
return Effect.succeed(
|
|
80
|
-
joined
|
|
81
|
-
? [
|
|
82
|
-
AppNode.makeDeckCompanion({
|
|
83
|
-
id: 'active-call',
|
|
84
|
-
label: ['call-panel.label', { ns: meta.id }],
|
|
85
|
-
icon: 'ph--video-conference--regular',
|
|
86
|
-
data: null,
|
|
87
|
-
position: 'hoist',
|
|
88
|
-
}),
|
|
89
|
-
]
|
|
90
|
-
: [],
|
|
91
|
-
);
|
|
92
|
-
},
|
|
93
|
-
}),
|
|
94
|
-
GraphBuilder.createTypeExtension({
|
|
95
|
-
id: 'channel-chat-companion',
|
|
96
|
-
type: Channel.Channel,
|
|
97
|
-
connector: (channel, get) => {
|
|
98
|
-
const callManager = capabilities.get(ThreadCapabilities.CallManager);
|
|
99
|
-
// Use derived atoms for efficient subscription.
|
|
100
|
-
const joined = get(callManager.joinedAtom);
|
|
101
|
-
const roomId = get(callManager.roomIdAtom);
|
|
102
|
-
const isActive = joined && roomId === Obj.getDXN(channel).toString();
|
|
103
|
-
if (!isActive) {
|
|
104
|
-
return Effect.succeed([]);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
return Effect.succeed([
|
|
108
|
-
AppNode.makeCompanion({
|
|
109
|
-
id: 'chat',
|
|
110
|
-
label: ['channel-companion.label', { ns: meta.id }],
|
|
111
|
-
icon: 'ph--hash--regular',
|
|
112
|
-
data: 'chat',
|
|
113
|
-
position: 'hoist',
|
|
114
|
-
}),
|
|
115
|
-
]);
|
|
116
|
-
},
|
|
117
|
-
}),
|
|
118
67
|
GraphBuilder.createExtension({
|
|
119
68
|
id: 'comments-companion',
|
|
120
69
|
match: (node) => {
|
|
121
70
|
if (!Obj.isObject(node.data) || Option.isNone(whenCommentableObject(node))) {
|
|
122
71
|
return Option.none();
|
|
123
72
|
}
|
|
124
|
-
const
|
|
125
|
-
return
|
|
73
|
+
const commentConfig = getCommentConfig(Obj.getTypename(node.data)!);
|
|
74
|
+
return commentConfig ? Option.some(node) : Option.none();
|
|
126
75
|
},
|
|
127
76
|
connector: () =>
|
|
128
77
|
Effect.succeed([
|
|
@@ -141,23 +90,23 @@ export default Capability.makeModule(
|
|
|
141
90
|
if (!Obj.isObject(node.data) || Option.isNone(whenCommentableObject(node))) {
|
|
142
91
|
return Option.none();
|
|
143
92
|
}
|
|
144
|
-
const
|
|
145
|
-
return
|
|
93
|
+
const commentConfig = getCommentConfig(Obj.getTypename(node.data)!);
|
|
94
|
+
return commentConfig ? Option.some(node) : Option.none();
|
|
146
95
|
},
|
|
147
96
|
actions: (matched, get) => {
|
|
148
97
|
const object = matched.data;
|
|
149
|
-
const
|
|
98
|
+
const objectDXN = Obj.getDXN(object).toString();
|
|
150
99
|
const stateAtom = capabilities.atom(ThreadCapabilities.State);
|
|
151
100
|
const selectionManager = capabilities.get(AttentionCapabilities.Selection);
|
|
152
|
-
const
|
|
101
|
+
const commentConfig = getCommentConfig(Obj.getTypename(object)!)!;
|
|
153
102
|
|
|
154
103
|
const disabled = get(
|
|
155
104
|
commentDisabledFamily({
|
|
156
105
|
stateAtom,
|
|
157
106
|
selectionManager,
|
|
158
|
-
objectId:
|
|
159
|
-
commentsType:
|
|
160
|
-
selectionMode:
|
|
107
|
+
objectId: objectDXN,
|
|
108
|
+
commentsType: commentConfig.comments,
|
|
109
|
+
selectionMode: commentConfig.selectionMode as SelectionMode | undefined,
|
|
161
110
|
}),
|
|
162
111
|
);
|
|
163
112
|
|
|
@@ -165,10 +114,11 @@ export default Capability.makeModule(
|
|
|
165
114
|
{
|
|
166
115
|
id: 'comment',
|
|
167
116
|
data: Effect.fnUntraced(function* () {
|
|
168
|
-
const
|
|
169
|
-
const selection = selectionManager.getSelection(
|
|
170
|
-
const anchor =
|
|
171
|
-
|
|
117
|
+
const config = getCommentConfig(Obj.getTypename(object)!)!;
|
|
118
|
+
const selection = selectionManager.getSelection(objectDXN);
|
|
119
|
+
const anchor =
|
|
120
|
+
(config.comments === 'anchored' ? getAnchor(selection) : undefined) ?? Date.now().toString();
|
|
121
|
+
const name = config.getAnchorLabel?.(object, anchor);
|
|
172
122
|
yield* Operation.invoke(ThreadOperation.Create, {
|
|
173
123
|
anchor,
|
|
174
124
|
name,
|