@dxos/plugin-thread 0.8.4-main.422d1c7879 → 0.8.4-main.51f1e5ca51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/{add-message-VPPFFLFL.mjs → add-message-OC4QB4I2.mjs} +7 -15
- package/dist/lib/browser/add-message-OC4QB4I2.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +1 -1
- package/dist/lib/browser/blueprints/index.mjs.map +3 -3
- package/dist/lib/browser/{chunk-MESW3R4Q.mjs → chunk-J67QAUIW.mjs} +1 -1
- package/dist/lib/browser/{chunk-MESW3R4Q.mjs.map → chunk-J67QAUIW.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-VPM44Z35.mjs → chunk-KCMJ7H7F.mjs} +3 -3
- package/dist/lib/browser/chunk-KCMJ7H7F.mjs.map +7 -0
- package/dist/lib/browser/{create-UGT7V733.mjs → create-IUWQEW74.mjs} +4 -4
- package/dist/lib/browser/create-IUWQEW74.mjs.map +7 -0
- package/dist/lib/browser/{create-channel-EF67LCS6.mjs → create-channel-CBC5WEFG.mjs} +4 -4
- package/dist/lib/browser/{create-channel-EF67LCS6.mjs.map → create-channel-CBC5WEFG.mjs.map} +1 -1
- package/dist/lib/browser/{create-channel-thread-CCZTSWQ6.mjs → create-channel-thread-JJ5LQ3OZ.mjs} +5 -5
- package/dist/lib/browser/create-channel-thread-JJ5LQ3OZ.mjs.map +7 -0
- package/dist/lib/browser/{create-proposals-CMK7S7VS.mjs → create-proposals-RHLVRJZ4.mjs} +4 -4
- package/dist/lib/browser/{create-proposals-CMK7S7VS.mjs.map → create-proposals-RHLVRJZ4.mjs.map} +3 -3
- package/dist/lib/browser/{delete-FSFVU6ZA.mjs → delete-PVIEGTTY.mjs} +4 -4
- package/dist/lib/browser/delete-PVIEGTTY.mjs.map +7 -0
- package/dist/lib/browser/{delete-message-XL5M5J33.mjs → delete-message-TLVRPLJF.mjs} +6 -14
- package/dist/lib/browser/delete-message-TLVRPLJF.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +72 -458
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{on-create-space-VYS2JGVT.mjs → on-create-space-KRTKYRFU.mjs} +4 -4
- package/dist/lib/browser/{on-create-space-VYS2JGVT.mjs.map → on-create-space-KRTKYRFU.mjs.map} +1 -1
- package/dist/lib/browser/operations/index.mjs +4 -4
- package/dist/lib/browser/operations/index.mjs.map +3 -3
- package/dist/lib/browser/{restore-2ZGMKUSD.mjs → restore-AVE55SJF.mjs} +4 -4
- package/dist/lib/browser/restore-AVE55SJF.mjs.map +7 -0
- package/dist/lib/browser/{restore-message-OYEGWPII.mjs → restore-message-F57RMGDJ.mjs} +6 -14
- package/dist/lib/browser/restore-message-F57RMGDJ.mjs.map +7 -0
- package/dist/lib/browser/{select-VG2XLULE.mjs → select-BJDZJI64.mjs} +4 -4
- package/dist/lib/browser/{select-VG2XLULE.mjs.map → select-BJDZJI64.mjs.map} +1 -1
- package/dist/lib/browser/{toggle-resolved-MM6YC5BU.mjs → toggle-resolved-HQE5P7BV.mjs} +6 -14
- package/dist/lib/browser/toggle-resolved-HQE5P7BV.mjs.map +7 -0
- package/dist/lib/browser/translations.mjs +90 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node-esm/{add-message-XWKHLNS6.mjs → add-message-HJXNAILW.mjs} +7 -15
- package/dist/lib/node-esm/add-message-HJXNAILW.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +1 -1
- package/dist/lib/node-esm/blueprints/index.mjs.map +3 -3
- package/dist/lib/node-esm/{chunk-SDRAQNSQ.mjs → chunk-2Q6V7NGK.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-SDRAQNSQ.mjs.map → chunk-2Q6V7NGK.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-JTHXNWKJ.mjs → chunk-4KRVIOPC.mjs} +3 -3
- package/dist/lib/node-esm/chunk-4KRVIOPC.mjs.map +7 -0
- package/dist/lib/node-esm/{create-XAYNDVU2.mjs → create-NALJT67D.mjs} +4 -4
- package/dist/lib/node-esm/create-NALJT67D.mjs.map +7 -0
- package/dist/lib/node-esm/{create-channel-UYWUNB3L.mjs → create-channel-CS2EAYJF.mjs} +4 -4
- package/dist/lib/node-esm/{create-channel-UYWUNB3L.mjs.map → create-channel-CS2EAYJF.mjs.map} +1 -1
- package/dist/lib/node-esm/{create-channel-thread-UQF2SBHS.mjs → create-channel-thread-KZZFZDTU.mjs} +5 -5
- package/dist/lib/node-esm/create-channel-thread-KZZFZDTU.mjs.map +7 -0
- package/dist/lib/node-esm/{create-proposals-5FJNURKH.mjs → create-proposals-AFAYZQBI.mjs} +4 -4
- package/dist/lib/node-esm/{create-proposals-5FJNURKH.mjs.map → create-proposals-AFAYZQBI.mjs.map} +3 -3
- package/dist/lib/node-esm/{delete-WRODXR3E.mjs → delete-HQJVZY7Q.mjs} +4 -4
- package/dist/lib/node-esm/delete-HQJVZY7Q.mjs.map +7 -0
- package/dist/lib/node-esm/{delete-message-TAHCYTW2.mjs → delete-message-VVPEYLV4.mjs} +6 -14
- package/dist/lib/node-esm/delete-message-VVPEYLV4.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +72 -458
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{on-create-space-XDY2YXPV.mjs → on-create-space-2UX7Z5EQ.mjs} +4 -4
- package/dist/lib/node-esm/{on-create-space-XDY2YXPV.mjs.map → on-create-space-2UX7Z5EQ.mjs.map} +1 -1
- package/dist/lib/node-esm/operations/index.mjs +4 -4
- package/dist/lib/node-esm/operations/index.mjs.map +3 -3
- package/dist/lib/node-esm/{restore-T3QA7TSL.mjs → restore-FMIWJR5T.mjs} +4 -4
- package/dist/lib/node-esm/restore-FMIWJR5T.mjs.map +7 -0
- package/dist/lib/node-esm/{restore-message-WFTEVBEV.mjs → restore-message-3L7AMQMG.mjs} +6 -14
- package/dist/lib/node-esm/restore-message-3L7AMQMG.mjs.map +7 -0
- package/dist/lib/node-esm/{select-Q4UDWJJF.mjs → select-VCAFISBK.mjs} +4 -4
- package/dist/lib/node-esm/{select-Q4UDWJJF.mjs.map → select-VCAFISBK.mjs.map} +1 -1
- package/dist/lib/node-esm/{toggle-resolved-33XTAK2H.mjs → toggle-resolved-JDZZ257P.mjs} +6 -14
- package/dist/lib/node-esm/toggle-resolved-JDZZ257P.mjs.map +7 -0
- package/dist/lib/node-esm/translations.mjs +91 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
- 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/calls/call-manager.d.ts.map +1 -1
- package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +1 -1
- package/dist/types/src/calls/media-manager.d.ts.map +1 -1
- package/dist/types/src/calls/speaking-monitor.d.ts +0 -3
- package/dist/types/src/calls/speaking-monitor.d.ts.map +1 -1
- package/dist/types/src/calls/types.d.ts.map +1 -1
- package/dist/types/src/calls/util/audio.d.ts.map +1 -1
- package/dist/types/src/calls/util/calls-service.d.ts +2 -2
- package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
- package/dist/types/src/calls/util/history-cache.d.ts.map +1 -1
- package/dist/types/src/calls/util/media.d.ts.map +1 -1
- package/dist/types/src/calls/util/stub-media-streams.d.ts.map +1 -1
- package/dist/types/src/calls/util/task-scheduling.d.ts.map +1 -1
- package/dist/types/src/calls-service.stories.d.ts.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 +1 -2
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/call-manager.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +3 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown.d.ts +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-root.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.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/Call/Call.d.ts +32 -4
- package/dist/types/src/components/Call/Call.d.ts.map +1 -1
- package/dist/types/src/components/Call/Toolbar.d.ts +4 -4
- package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
- 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/Lobby/Lobby.d.ts +24 -3
- package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -1
- package/dist/types/src/components/Media/VideoObject.d.ts +1 -1
- package/dist/types/src/components/Media/VideoObject.stories.d.ts +1 -1
- package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +1 -1
- package/dist/types/src/components/MessagePanel/MessagePanel.d.ts.map +1 -1
- package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +70 -70
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts +70 -70
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.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/containers/CallDebugPanel/CallDebugPanel.d.ts.map +1 -1
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +1 -1
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts +70 -70
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +1 -1
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +1 -1
- package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts +70 -70
- package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ChatContainer/index.d.ts.map +1 -1
- package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts.map +1 -1
- package/dist/types/src/extensions/threads.d.ts +2 -2
- package/dist/types/src/extensions/threads.d.ts.map +1 -1
- package/dist/types/src/hooks/analytics.d.ts.map +1 -1
- package/dist/types/src/hooks/useStatus.d.ts.map +1 -1
- package/dist/types/src/hooks/useVideoStreamTrack.d.ts.map +1 -1
- package/dist/types/src/operations/add-message.d.ts +1 -1
- package/dist/types/src/operations/add-message.d.ts.map +1 -1
- package/dist/types/src/operations/create-channel-thread.d.ts +1 -1
- package/dist/types/src/operations/create-channel-thread.d.ts.map +1 -1
- package/dist/types/src/operations/create-channel.d.ts +1 -1
- package/dist/types/src/operations/create-channel.d.ts.map +1 -1
- package/dist/types/src/operations/create-proposals.d.ts +1 -1
- package/dist/types/src/operations/create-proposals.d.ts.map +1 -1
- package/dist/types/src/operations/create.d.ts +1 -1
- package/dist/types/src/operations/create.d.ts.map +1 -1
- package/dist/types/src/operations/definitions.d.ts +825 -825
- package/dist/types/src/operations/definitions.d.ts.map +1 -1
- package/dist/types/src/operations/delete-message.d.ts +1 -1
- package/dist/types/src/operations/delete-message.d.ts.map +1 -1
- package/dist/types/src/operations/delete.d.ts +1 -1
- package/dist/types/src/operations/delete.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/on-create-space.d.ts +1 -1
- package/dist/types/src/operations/on-create-space.d.ts.map +1 -1
- package/dist/types/src/operations/restore-message.d.ts +1 -1
- package/dist/types/src/operations/restore-message.d.ts.map +1 -1
- package/dist/types/src/operations/restore.d.ts +1 -1
- package/dist/types/src/operations/restore.d.ts.map +1 -1
- package/dist/types/src/operations/select.d.ts +1 -1
- package/dist/types/src/operations/select.d.ts.map +1 -1
- package/dist/types/src/operations/toggle-resolved.d.ts +1 -1
- package/dist/types/src/operations/toggle-resolved.d.ts.map +1 -1
- 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/Channel.d.ts +177 -177
- package/dist/types/src/types/Channel.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +2 -2
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +59 -54
- package/src/ThreadPlugin.tsx +4 -5
- package/src/blueprints/thread-blueprint.ts +2 -3
- package/src/calls/util/calls-service.ts +3 -1
- package/src/calls/util/stub-media-streams.ts +3 -1
- package/src/capabilities/app-graph-builder.ts +1 -1
- package/src/capabilities/index.ts +1 -1
- package/src/capabilities/markdown.ts +7 -3
- package/src/capabilities/operation-handler.ts +1 -1
- package/src/components/Call/Call.tsx +5 -5
- package/src/components/CommentsPanel/CommentsPanel.stories.tsx +5 -3
- package/src/components/Lobby/Lobby.tsx +5 -4
- package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +2 -1
- package/src/components/ResponsiveGrid/ResponsivePanel.stories.tsx +2 -1
- package/src/components/ThreadSettings/ThreadSettings.stories.tsx +2 -1
- package/src/containers/ChannelContainer/ChannelContainer.stories.tsx +39 -7
- package/src/containers/ChatContainer/ChatContainer.stories.tsx +1 -1
- package/src/containers/ChatContainer/ChatContainer.tsx +1 -6
- package/src/extensions/threads.ts +7 -7
- package/src/operations/add-message.ts +3 -3
- package/src/operations/create-channel-thread.ts +2 -2
- package/src/operations/create-channel.ts +1 -1
- package/src/operations/create-proposals.ts +1 -1
- package/src/operations/create.ts +1 -1
- package/src/operations/definitions.ts +1 -1
- package/src/operations/delete-message.ts +2 -2
- package/src/operations/delete.ts +1 -1
- package/src/operations/index.ts +1 -1
- package/src/operations/on-create-space.ts +1 -1
- package/src/operations/restore-message.ts +2 -2
- package/src/operations/restore.ts +1 -1
- package/src/operations/select.ts +1 -1
- package/src/operations/toggle-resolved.ts +2 -2
- package/src/testing/index.ts +1 -1
- package/dist/lib/browser/add-message-VPPFFLFL.mjs.map +0 -7
- package/dist/lib/browser/chunk-VPM44Z35.mjs.map +0 -7
- package/dist/lib/browser/create-UGT7V733.mjs.map +0 -7
- package/dist/lib/browser/create-channel-thread-CCZTSWQ6.mjs.map +0 -7
- package/dist/lib/browser/delete-FSFVU6ZA.mjs.map +0 -7
- package/dist/lib/browser/delete-message-XL5M5J33.mjs.map +0 -7
- package/dist/lib/browser/restore-2ZGMKUSD.mjs.map +0 -7
- package/dist/lib/browser/restore-message-OYEGWPII.mjs.map +0 -7
- package/dist/lib/browser/toggle-resolved-MM6YC5BU.mjs.map +0 -7
- package/dist/lib/node-esm/add-message-XWKHLNS6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JTHXNWKJ.mjs.map +0 -7
- package/dist/lib/node-esm/create-XAYNDVU2.mjs.map +0 -7
- package/dist/lib/node-esm/create-channel-thread-UQF2SBHS.mjs.map +0 -7
- package/dist/lib/node-esm/delete-WRODXR3E.mjs.map +0 -7
- package/dist/lib/node-esm/delete-message-TAHCYTW2.mjs.map +0 -7
- package/dist/lib/node-esm/restore-T3QA7TSL.mjs.map +0 -7
- package/dist/lib/node-esm/restore-message-WFTEVBEV.mjs.map +0 -7
- package/dist/lib/node-esm/toggle-resolved-33XTAK2H.mjs.map +0 -7
- package/dist/types/src/testing/stories.d.ts +0 -3
- package/dist/types/src/testing/stories.d.ts.map +0 -1
- package/src/testing/stories.ts +0 -51
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.51f1e5ca51",
|
|
4
4
|
"description": "DXOS Threads Surface plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"#meta": "./src/meta.ts",
|
|
22
22
|
"#operations": "./src/operations/index.ts",
|
|
23
23
|
"#testing": "./src/testing/index.ts",
|
|
24
|
+
"#translations": "./src/translations.ts",
|
|
24
25
|
"#types": "./src/types/index.ts"
|
|
25
26
|
},
|
|
26
27
|
"exports": {
|
|
@@ -42,6 +43,12 @@
|
|
|
42
43
|
"node": "./dist/lib/node-esm/operations/index.mjs",
|
|
43
44
|
"types": "./dist/types/src/operations/index.d.ts"
|
|
44
45
|
},
|
|
46
|
+
"./translations": {
|
|
47
|
+
"source": "./src/translations.ts",
|
|
48
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
49
|
+
"browser": "./dist/lib/browser/translations.mjs",
|
|
50
|
+
"node": "./dist/lib/node-esm/translations.mjs"
|
|
51
|
+
},
|
|
45
52
|
"./types": {
|
|
46
53
|
"source": "./src/types/index.ts",
|
|
47
54
|
"browser": "./dist/lib/browser/types/index.mjs",
|
|
@@ -69,50 +76,48 @@
|
|
|
69
76
|
"md5-hex": "5.0.0",
|
|
70
77
|
"react-resize-detector": "^11.0.1",
|
|
71
78
|
"wavefile": "^11.0.0",
|
|
72
|
-
"@dxos/app-
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/display-name": "0.8.4-main.
|
|
81
|
-
"@dxos/
|
|
82
|
-
"@dxos/
|
|
83
|
-
"@dxos/echo-db": "0.8.4-main.
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/log": "0.8.4-main.
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/keys": "0.8.4-main.
|
|
90
|
-
"@dxos/plugin-client": "0.8.4-main.
|
|
91
|
-
"@dxos/plugin-
|
|
92
|
-
"@dxos/plugin-
|
|
93
|
-
"@dxos/
|
|
94
|
-
"@dxos/plugin-
|
|
95
|
-
"@dxos/plugin-
|
|
96
|
-
"@dxos/plugin-
|
|
97
|
-
"@dxos/protocols": "0.8.4-main.
|
|
98
|
-
"@dxos/react-
|
|
99
|
-
"@dxos/
|
|
100
|
-
"@dxos/react-ui-
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/react-ui-
|
|
103
|
-
"@dxos/react-ui-
|
|
104
|
-
"@dxos/react-ui-
|
|
105
|
-
"@dxos/react-ui-
|
|
106
|
-
"@dxos/react-ui-
|
|
107
|
-
"@dxos/react-ui-
|
|
108
|
-
"@dxos/react-ui-
|
|
109
|
-
"@dxos/
|
|
110
|
-
"@dxos/
|
|
111
|
-
"@dxos/
|
|
112
|
-
"@dxos/
|
|
113
|
-
"@dxos/
|
|
114
|
-
"@dxos/util": "0.8.4-main.422d1c7879",
|
|
115
|
-
"@dxos/ui-editor": "0.8.4-main.422d1c7879"
|
|
79
|
+
"@dxos/app-toolkit": "0.8.4-main.51f1e5ca51",
|
|
80
|
+
"@dxos/app-framework": "0.8.4-main.51f1e5ca51",
|
|
81
|
+
"@dxos/compute": "0.8.4-main.51f1e5ca51",
|
|
82
|
+
"@dxos/async": "0.8.4-main.51f1e5ca51",
|
|
83
|
+
"@dxos/assistant": "0.8.4-main.51f1e5ca51",
|
|
84
|
+
"@dxos/context": "0.8.4-main.51f1e5ca51",
|
|
85
|
+
"@dxos/debug": "0.8.4-main.51f1e5ca51",
|
|
86
|
+
"@dxos/devtools": "0.8.4-main.51f1e5ca51",
|
|
87
|
+
"@dxos/display-name": "0.8.4-main.51f1e5ca51",
|
|
88
|
+
"@dxos/codec-protobuf": "0.8.4-main.51f1e5ca51",
|
|
89
|
+
"@dxos/echo": "0.8.4-main.51f1e5ca51",
|
|
90
|
+
"@dxos/echo-db": "0.8.4-main.51f1e5ca51",
|
|
91
|
+
"@dxos/echo-react": "0.8.4-main.51f1e5ca51",
|
|
92
|
+
"@dxos/invariant": "0.8.4-main.51f1e5ca51",
|
|
93
|
+
"@dxos/effect": "0.8.4-main.51f1e5ca51",
|
|
94
|
+
"@dxos/log": "0.8.4-main.51f1e5ca51",
|
|
95
|
+
"@dxos/plugin-attention": "0.8.4-main.51f1e5ca51",
|
|
96
|
+
"@dxos/keys": "0.8.4-main.51f1e5ca51",
|
|
97
|
+
"@dxos/plugin-client": "0.8.4-main.51f1e5ca51",
|
|
98
|
+
"@dxos/plugin-deck": "0.8.4-main.51f1e5ca51",
|
|
99
|
+
"@dxos/plugin-graph": "0.8.4-main.51f1e5ca51",
|
|
100
|
+
"@dxos/plugin-markdown": "0.8.4-main.51f1e5ca51",
|
|
101
|
+
"@dxos/plugin-settings": "0.8.4-main.51f1e5ca51",
|
|
102
|
+
"@dxos/plugin-observability": "0.8.4-main.51f1e5ca51",
|
|
103
|
+
"@dxos/plugin-space": "0.8.4-main.51f1e5ca51",
|
|
104
|
+
"@dxos/protocols": "0.8.4-main.51f1e5ca51",
|
|
105
|
+
"@dxos/react-ui-attention": "0.8.4-main.51f1e5ca51",
|
|
106
|
+
"@dxos/react-client": "0.8.4-main.51f1e5ca51",
|
|
107
|
+
"@dxos/react-ui-dnd": "0.8.4-main.51f1e5ca51",
|
|
108
|
+
"@dxos/react-ui-editor": "0.8.4-main.51f1e5ca51",
|
|
109
|
+
"@dxos/react-ui-form": "0.8.4-main.51f1e5ca51",
|
|
110
|
+
"@dxos/react-ui-sfx": "0.8.4-main.51f1e5ca51",
|
|
111
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.51f1e5ca51",
|
|
112
|
+
"@dxos/react-ui-menu": "0.8.4-main.51f1e5ca51",
|
|
113
|
+
"@dxos/react-ui-stack": "0.8.4-main.51f1e5ca51",
|
|
114
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.51f1e5ca51",
|
|
115
|
+
"@dxos/react-ui-tabs": "0.8.4-main.51f1e5ca51",
|
|
116
|
+
"@dxos/schema": "0.8.4-main.51f1e5ca51",
|
|
117
|
+
"@dxos/types": "0.8.4-main.51f1e5ca51",
|
|
118
|
+
"@dxos/util": "0.8.4-main.51f1e5ca51",
|
|
119
|
+
"@dxos/react-ui-thread": "0.8.4-main.51f1e5ca51",
|
|
120
|
+
"@dxos/ui-editor": "0.8.4-main.51f1e5ca51"
|
|
116
121
|
},
|
|
117
122
|
"devDependencies": {
|
|
118
123
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -122,13 +127,13 @@
|
|
|
122
127
|
"effect": "3.20.0",
|
|
123
128
|
"react": "~19.2.3",
|
|
124
129
|
"react-dom": "~19.2.3",
|
|
125
|
-
"vite": "^
|
|
126
|
-
"@dxos/plugin-
|
|
127
|
-
"@dxos/
|
|
128
|
-
"@dxos/
|
|
129
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
130
|
-
"@dxos/
|
|
131
|
-
"@dxos/ui
|
|
130
|
+
"vite": "^8.0.10",
|
|
131
|
+
"@dxos/plugin-testing": "0.8.4-main.51f1e5ca51",
|
|
132
|
+
"@dxos/plugin-theme": "0.8.4-main.51f1e5ca51",
|
|
133
|
+
"@dxos/random": "0.8.4-main.51f1e5ca51",
|
|
134
|
+
"@dxos/storybook-utils": "0.8.4-main.51f1e5ca51",
|
|
135
|
+
"@dxos/ui-theme": "0.8.4-main.51f1e5ca51",
|
|
136
|
+
"@dxos/react-ui": "0.8.4-main.51f1e5ca51"
|
|
132
137
|
},
|
|
133
138
|
"peerDependencies": {
|
|
134
139
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -136,8 +141,8 @@
|
|
|
136
141
|
"effect": "3.20.0",
|
|
137
142
|
"react": "~19.2.3",
|
|
138
143
|
"react-dom": "~19.2.3",
|
|
139
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
140
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
144
|
+
"@dxos/react-ui": "0.8.4-main.51f1e5ca51",
|
|
145
|
+
"@dxos/ui-theme": "0.8.4-main.51f1e5ca51"
|
|
141
146
|
},
|
|
142
147
|
"publishConfig": {
|
|
143
148
|
"access": "public"
|
package/src/ThreadPlugin.tsx
CHANGED
|
@@ -7,13 +7,13 @@ import * as Option from 'effect/Option';
|
|
|
7
7
|
|
|
8
8
|
import { Capability, Plugin } from '@dxos/app-framework';
|
|
9
9
|
import { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';
|
|
10
|
+
import { Operation } from '@dxos/compute';
|
|
10
11
|
import { Annotation, Ref, Type } from '@dxos/echo';
|
|
11
|
-
import { Operation } from '@dxos/operation';
|
|
12
12
|
import { ClientEvents } from '@dxos/plugin-client/types';
|
|
13
|
-
import { MarkdownEvents } from '@dxos/plugin-markdown';
|
|
13
|
+
import { MarkdownEvents } from '@dxos/plugin-markdown/types';
|
|
14
14
|
import { SpaceOperation } from '@dxos/plugin-space/operations';
|
|
15
15
|
import { SpaceCapabilities, SpaceEvents, type CreateObject } from '@dxos/plugin-space/types';
|
|
16
|
-
import { translations as threadTranslations } from '@dxos/react-ui-thread';
|
|
16
|
+
import { translations as threadTranslations } from '@dxos/react-ui-thread/translations';
|
|
17
17
|
import { AnchoredTo, Message, Thread } from '@dxos/types';
|
|
18
18
|
|
|
19
19
|
import {
|
|
@@ -29,10 +29,9 @@ import {
|
|
|
29
29
|
} from '#capabilities';
|
|
30
30
|
import { THREAD_ITEM, meta } from '#meta';
|
|
31
31
|
import { ThreadOperation } from '#operations';
|
|
32
|
+
import { translations } from '#translations';
|
|
32
33
|
import { Channel } from '#types';
|
|
33
34
|
|
|
34
|
-
import { translations } from './translations';
|
|
35
|
-
|
|
36
35
|
// TODO(Zan): Every instance of `cursor` should be replaced with `anchor`.
|
|
37
36
|
// NOTE(burdon): Review/discuss CursorConverter semantics.
|
|
38
37
|
|
|
@@ -2,8 +2,7 @@
|
|
|
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
8
|
import { ThreadOperation } from '#operations';
|
|
@@ -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
|
};
|
|
@@ -547,7 +547,9 @@ const waitForTransceiverToSendData = async (ctx: Context, transceiver: RTCRtpTra
|
|
|
547
547
|
ctx.onDispose(() => waitForData.throw(new Error('Transceiver was closed')));
|
|
548
548
|
|
|
549
549
|
const checkStats = async () => {
|
|
550
|
-
if (ctx.disposed)
|
|
550
|
+
if (ctx.disposed) {
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
551
553
|
|
|
552
554
|
try {
|
|
553
555
|
const stats = await transceiver.sender.getStats();
|
|
@@ -74,7 +74,9 @@ export const createInaudibleAudioStreamTrack = async ({ ctx }: { ctx: Context })
|
|
|
74
74
|
|
|
75
75
|
let oscillatorStarted = false;
|
|
76
76
|
const ensureOscillatorStarted = () => {
|
|
77
|
-
if (oscillatorStarted)
|
|
77
|
+
if (oscillatorStarted) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
78
80
|
oscillator.start();
|
|
79
81
|
oscillatorStarted = true;
|
|
80
82
|
};
|
|
@@ -8,8 +8,8 @@ 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 { Operation } from '@dxos/operation';
|
|
13
13
|
import { AttentionCapabilities } from '@dxos/plugin-attention/types';
|
|
14
14
|
import { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';
|
|
15
15
|
import { linkedSegment } from '@dxos/react-ui-attention';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { Capability } from '@dxos/app-framework';
|
|
6
|
-
import { OperationHandlerSet } from '@dxos/
|
|
6
|
+
import { OperationHandlerSet } from '@dxos/compute';
|
|
7
7
|
|
|
8
8
|
export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
|
|
9
9
|
export const BlueprintDefinition = Capability.lazy('BlueprintDefinition', () => import('./blueprint-definition'));
|
|
@@ -7,7 +7,7 @@ import * as Effect from 'effect/Effect';
|
|
|
7
7
|
|
|
8
8
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
9
|
import { LayoutOperation } from '@dxos/app-toolkit';
|
|
10
|
-
import { MarkdownCapabilities } from '@dxos/plugin-markdown';
|
|
10
|
+
import { MarkdownCapabilities } from '@dxos/plugin-markdown/types';
|
|
11
11
|
import { linkedSegment } from '@dxos/react-ui-attention';
|
|
12
12
|
import { type EditorState, commentClickedEffect, commentsState, documentId, overlap } from '@dxos/ui-editor';
|
|
13
13
|
|
|
@@ -28,7 +28,9 @@ export default Capability.makeModule(
|
|
|
28
28
|
return threads({ registry, stateAtom }, doc, invokePromise);
|
|
29
29
|
},
|
|
30
30
|
({ document: doc }) => {
|
|
31
|
-
if (!doc)
|
|
31
|
+
if (!doc) {
|
|
32
|
+
return [];
|
|
33
|
+
}
|
|
32
34
|
const registry = capabilities.get(Capabilities.AtomRegistry);
|
|
33
35
|
const stateAtom = capabilities.get(ThreadCapabilities.State);
|
|
34
36
|
|
|
@@ -45,7 +47,9 @@ export default Capability.makeModule(
|
|
|
45
47
|
});
|
|
46
48
|
},
|
|
47
49
|
({ document: doc }) => {
|
|
48
|
-
if (!doc)
|
|
50
|
+
if (!doc) {
|
|
51
|
+
return [];
|
|
52
|
+
}
|
|
49
53
|
const { invokePromise } = capabilities.get(Capabilities.OperationInvoker);
|
|
50
54
|
|
|
51
55
|
return EditorView.updateListener.of((update) => {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
|
-
import type { OperationHandlerSet } from '@dxos/
|
|
8
|
+
import type { OperationHandlerSet } from '@dxos/compute';
|
|
9
9
|
|
|
10
10
|
import { ThreadOperationHandlerSet } from '#operations';
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { useAtomValue } from '@effect-atom/atom-react';
|
|
6
|
-
import React, { type
|
|
6
|
+
import React, { type PropsWithChildren } from 'react';
|
|
7
7
|
|
|
8
8
|
import { useCapability } from '@dxos/app-framework/ui';
|
|
9
9
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
@@ -21,7 +21,7 @@ import { Toolbar, type ToolbarProps } from './Toolbar';
|
|
|
21
21
|
|
|
22
22
|
type CallRootProps = PropsWithChildren<ThemedClassName>;
|
|
23
23
|
|
|
24
|
-
const CallRoot
|
|
24
|
+
const CallRoot = ({ children }: CallRootProps) => {
|
|
25
25
|
return <div className='relative dx-container flex flex-col'>{children}</div>;
|
|
26
26
|
};
|
|
27
27
|
|
|
@@ -33,7 +33,7 @@ CallRoot.displayName = 'CallRoot';
|
|
|
33
33
|
|
|
34
34
|
type CallAudioProps = {};
|
|
35
35
|
|
|
36
|
-
const CallAudio
|
|
36
|
+
const CallAudio = (_props: CallAudioProps) => {
|
|
37
37
|
const call = useCapability(ThreadCapabilities.CallManager);
|
|
38
38
|
const audioTracksToPlay = useAtomValue(call.audioTracksToPlayAtom);
|
|
39
39
|
|
|
@@ -50,7 +50,7 @@ type CallGridProps = {
|
|
|
50
50
|
fullscreen?: boolean;
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
const CallGrid
|
|
53
|
+
const CallGrid = ({ fullscreen }: CallGridProps) => {
|
|
54
54
|
const debug = useDebugMode();
|
|
55
55
|
const call = useCapability(ThreadCapabilities.CallManager);
|
|
56
56
|
const self = useAtomValue(call.selfAtom);
|
|
@@ -71,7 +71,7 @@ CallGrid.displayName = 'CallGrid';
|
|
|
71
71
|
|
|
72
72
|
type CallToolbarProps = Pick<ToolbarProps, 'channel' | 'onLeave'>;
|
|
73
73
|
|
|
74
|
-
const CallToolbar
|
|
74
|
+
const CallToolbar = (props: CallToolbarProps) => {
|
|
75
75
|
return (
|
|
76
76
|
<div className='absolute bottom-0 left-0 right-0 flex justify-center'>
|
|
77
77
|
<Toolbar isInRoom {...props} />
|
|
@@ -13,21 +13,23 @@ import { TestSchema } from '@dxos/echo/testing';
|
|
|
13
13
|
import { ClientPlugin } from '@dxos/plugin-client';
|
|
14
14
|
import { initializeIdentity } from '@dxos/plugin-client/testing';
|
|
15
15
|
import { random } from '@dxos/random';
|
|
16
|
-
import {
|
|
16
|
+
import { useQuery, useSpaces } from '@dxos/react-client/echo';
|
|
17
17
|
import { useIdentity } from '@dxos/react-client/halo';
|
|
18
18
|
import { useAsyncEffect } from '@dxos/react-ui';
|
|
19
19
|
import { withLayout, withTheme, Loading } from '@dxos/react-ui/testing';
|
|
20
20
|
import { AnchoredTo, Message, Thread } from '@dxos/types';
|
|
21
21
|
|
|
22
|
+
import { translations } from '#translations';
|
|
23
|
+
|
|
22
24
|
import { createCommentThread, createProposalThread } from '../../testing/data';
|
|
23
|
-
import { translations } from '../../translations';
|
|
24
25
|
import { CommentsPanel } from './CommentsPanel';
|
|
25
26
|
|
|
26
27
|
random.seed(1);
|
|
27
28
|
|
|
28
29
|
const DefaultStory = () => {
|
|
29
30
|
const identity = useIdentity();
|
|
30
|
-
const
|
|
31
|
+
const [space] = useSpaces();
|
|
32
|
+
const db = space?.db;
|
|
31
33
|
const anchors = useQuery(db, Query.type(AnchoredTo.AnchoredTo));
|
|
32
34
|
|
|
33
35
|
useAsyncEffect(async () => {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { useAtomValue } from '@effect-atom/atom-react';
|
|
6
|
-
import React, { type
|
|
6
|
+
import React, { type PropsWithChildren, useEffect, useState } from 'react';
|
|
7
7
|
|
|
8
8
|
import { useCapability } from '@dxos/app-framework/ui';
|
|
9
9
|
import { type ThemedClassName, useTranslation } from '@dxos/react-ui';
|
|
@@ -26,7 +26,8 @@ const SWARM_PEEK_INTERVAL = 1_000;
|
|
|
26
26
|
|
|
27
27
|
type LobbyRootProps = PropsWithChildren<ThemedClassName>;
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
// TODO(burdon): Make headless?
|
|
30
|
+
const LobbyRoot = ({ children }: LobbyRootProps) => {
|
|
30
31
|
return <div className='relative flex flex-col grow overflow-hidden group'>{children}</div>;
|
|
31
32
|
};
|
|
32
33
|
|
|
@@ -38,7 +39,7 @@ LobbyRoot.displayName = 'LobbyRoot';
|
|
|
38
39
|
|
|
39
40
|
type LobbyPreviewProps = {};
|
|
40
41
|
|
|
41
|
-
const LobbyPreview
|
|
42
|
+
const LobbyPreview = (_props: LobbyPreviewProps) => {
|
|
42
43
|
const { t } = useTranslation(meta.id);
|
|
43
44
|
const call = useCapability(ThreadCapabilities.CallManager);
|
|
44
45
|
const media = useAtomValue(call.mediaAtom);
|
|
@@ -88,7 +89,7 @@ type LobbyToolbarProps = ThemedClassName<
|
|
|
88
89
|
} & Pick<ToolbarProps, 'onJoin'>
|
|
89
90
|
>;
|
|
90
91
|
|
|
91
|
-
const LobbyToolbar
|
|
92
|
+
const LobbyToolbar = ({ roomId, ...props }: LobbyToolbarProps) => {
|
|
92
93
|
const call = useCapability(ThreadCapabilities.CallManager);
|
|
93
94
|
const [count, setCount] = useState<number>(0);
|
|
94
95
|
|
|
@@ -8,7 +8,8 @@ import React, { useEffect, useState } from 'react';
|
|
|
8
8
|
import { random } from '@dxos/random';
|
|
9
9
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
10
10
|
|
|
11
|
-
import { translations } from '
|
|
11
|
+
import { translations } from '#translations';
|
|
12
|
+
|
|
12
13
|
import { ResponsiveGrid, type ResponsiveGridProps } from './ResponsiveGrid';
|
|
13
14
|
import { ResponsiveGridItem, type ResponsiveGridItemProps } from './ResponsiveGridItem';
|
|
14
15
|
|
|
@@ -7,7 +7,8 @@ import React from 'react';
|
|
|
7
7
|
|
|
8
8
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
9
9
|
|
|
10
|
-
import { translations } from '
|
|
10
|
+
import { translations } from '#translations';
|
|
11
|
+
|
|
11
12
|
import { VideoObject as VideoObjectComponent } from '../Media';
|
|
12
13
|
import { ResponsivePanel } from './ResponsivePanel';
|
|
13
14
|
|
|
@@ -6,7 +6,8 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
|
6
6
|
|
|
7
7
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
8
8
|
|
|
9
|
-
import { translations } from '
|
|
9
|
+
import { translations } from '#translations';
|
|
10
|
+
|
|
10
11
|
import { ThreadSettings } from './ThreadSettings';
|
|
11
12
|
|
|
12
13
|
const meta = {
|
|
@@ -3,27 +3,33 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
6
|
+
import * as Effect from 'effect/Effect';
|
|
6
7
|
import React from 'react';
|
|
7
8
|
|
|
8
9
|
import { Capability } from '@dxos/app-framework';
|
|
9
10
|
import { withPluginManager } from '@dxos/app-framework/testing';
|
|
10
11
|
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
11
|
-
import {
|
|
12
|
+
import { ClientPlugin } from '@dxos/plugin-client';
|
|
13
|
+
import { initializeIdentity } from '@dxos/plugin-client/testing';
|
|
14
|
+
import { SpacePlugin } from '@dxos/plugin-space';
|
|
15
|
+
import { corePlugins } from '@dxos/plugin-testing';
|
|
16
|
+
import { Config } from '@dxos/react-client';
|
|
17
|
+
import { Query, useQuery, useSpaces } from '@dxos/react-client/echo';
|
|
12
18
|
import { withLayout, withTheme, Loading } from '@dxos/react-ui/testing';
|
|
13
19
|
import { Message, Thread } from '@dxos/types';
|
|
14
20
|
|
|
15
|
-
import {
|
|
21
|
+
import { translations } from '#translations';
|
|
16
22
|
import { Channel } from '#types';
|
|
17
23
|
|
|
18
|
-
import {
|
|
24
|
+
import { ThreadPlugin } from '../../ThreadPlugin';
|
|
19
25
|
import { ChannelContainer, type ChannelContainerProps } from './ChannelContainer';
|
|
20
26
|
|
|
21
27
|
// TODO(wittjosiah): Channel doesn't render full height.
|
|
22
28
|
const DefaultStory = ({ roomId }: ChannelContainerProps) => {
|
|
23
|
-
const
|
|
24
|
-
const [channel] = useQuery(db, Query.type(Channel.Channel));
|
|
29
|
+
const [space] = useSpaces();
|
|
30
|
+
const [channel] = useQuery(space?.db, Query.type(Channel.Channel));
|
|
25
31
|
if (!channel) {
|
|
26
|
-
return <Loading data={{
|
|
32
|
+
return <Loading data={{ channel }} />;
|
|
27
33
|
}
|
|
28
34
|
|
|
29
35
|
return <ChannelContainer subject={channel} attendableId='story' roomId={roomId} role='article' />;
|
|
@@ -37,8 +43,34 @@ const meta = {
|
|
|
37
43
|
withTheme(),
|
|
38
44
|
withLayout({ layout: 'column' }),
|
|
39
45
|
withPluginManager({
|
|
40
|
-
plugins: [...(await createThreadPlugins())],
|
|
41
46
|
capabilities: [Capability.contributes(AppCapabilities.Schema, [Channel.Channel, Thread.Thread, Message.Message])],
|
|
47
|
+
plugins: [
|
|
48
|
+
...corePlugins(),
|
|
49
|
+
ClientPlugin({
|
|
50
|
+
types: [Channel.Channel, Thread.Thread, Message.Message],
|
|
51
|
+
config: new Config({
|
|
52
|
+
runtime: {
|
|
53
|
+
services: {
|
|
54
|
+
edge: {
|
|
55
|
+
url: 'https://edge.dxos.workers.dev/',
|
|
56
|
+
},
|
|
57
|
+
iceProviders: [
|
|
58
|
+
{
|
|
59
|
+
urls: 'https://edge.dxos.workers.dev/ice',
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
}),
|
|
65
|
+
onClientInitialized: ({ client }) =>
|
|
66
|
+
Effect.gen(function* () {
|
|
67
|
+
const { personalSpace } = yield* initializeIdentity(client);
|
|
68
|
+
personalSpace.db.add(Channel.make());
|
|
69
|
+
}),
|
|
70
|
+
}),
|
|
71
|
+
SpacePlugin({}),
|
|
72
|
+
ThreadPlugin(),
|
|
73
|
+
],
|
|
42
74
|
}),
|
|
43
75
|
],
|
|
44
76
|
parameters: {
|
|
@@ -19,9 +19,9 @@ import { Thread as ThreadComponent } from '@dxos/react-ui-thread';
|
|
|
19
19
|
import { withLayout, Loading } from '@dxos/react-ui/testing';
|
|
20
20
|
import { Message, Thread } from '@dxos/types';
|
|
21
21
|
|
|
22
|
+
import { translations } from '#translations';
|
|
22
23
|
import { Channel } from '#types';
|
|
23
24
|
|
|
24
|
-
import { translations } from '../../translations';
|
|
25
25
|
import { ChatContainer } from './ChatContainer';
|
|
26
26
|
|
|
27
27
|
random.seed(1);
|
|
@@ -64,10 +64,6 @@ export const ChatContainer = composable<HTMLDivElement, ChatContainerProps>(
|
|
|
64
64
|
[themeMode, _count],
|
|
65
65
|
);
|
|
66
66
|
|
|
67
|
-
// TODO(thure): Factor out.
|
|
68
|
-
// TODO(thure): `flex-col-reverse` does not work to start the container scrolled to the end while also using
|
|
69
|
-
// `ScrollArea`. This is the least-bad way I found to scroll to the end on mount. Note that 0ms was insufficient
|
|
70
|
-
// for the desired effect; this is likely hardware-dependent and should be reevaluated.
|
|
71
67
|
const scrollToEnd = (behavior: ScrollBehavior) =>
|
|
72
68
|
setTimeout(() => threadScrollRef.current?.scrollIntoView({ behavior, block: 'end' }), 10);
|
|
73
69
|
|
|
@@ -75,13 +71,12 @@ export const ChatContainer = composable<HTMLDivElement, ChatContainerProps>(
|
|
|
75
71
|
scrollToEnd('instant');
|
|
76
72
|
}, []);
|
|
77
73
|
|
|
78
|
-
// TODO(burdon): Change to model.
|
|
79
74
|
const handleCreate: MessageTextboxProps['onSend'] = () => {
|
|
80
75
|
if (!messageRef.current?.length) {
|
|
81
76
|
return false;
|
|
82
77
|
}
|
|
83
78
|
|
|
84
|
-
Obj.
|
|
79
|
+
Obj.update(thread, (thread) => {
|
|
85
80
|
thread.messages.push(
|
|
86
81
|
Ref.make(
|
|
87
82
|
Obj.make(Message.Message, {
|
|
@@ -6,9 +6,9 @@ import { type Extension } from '@codemirror/state';
|
|
|
6
6
|
import { EditorView } from '@codemirror/view';
|
|
7
7
|
import { type Atom, type Registry } from '@effect-atom/atom-react';
|
|
8
8
|
|
|
9
|
+
import { type OperationInvoker } from '@dxos/compute';
|
|
9
10
|
import { Filter, Obj, Query, Relation } from '@dxos/echo';
|
|
10
11
|
import { createDocAccessor, getTextInRange } from '@dxos/echo-db';
|
|
11
|
-
import { type OperationInvoker } from '@dxos/operation';
|
|
12
12
|
import { type Markdown } from '@dxos/plugin-markdown/types';
|
|
13
13
|
import { AnchoredTo, Thread } from '@dxos/types';
|
|
14
14
|
import { comments, createExternalCommentSync } from '@dxos/ui-editor';
|
|
@@ -73,7 +73,7 @@ export const threads = (
|
|
|
73
73
|
const name = getName(doc, anchor.anchor);
|
|
74
74
|
const thread = Relation.getSource(anchor) as Thread.Thread;
|
|
75
75
|
if (name && name !== thread.name) {
|
|
76
|
-
Obj.
|
|
76
|
+
Obj.update(thread, (thread) => {
|
|
77
77
|
thread.name = name;
|
|
78
78
|
});
|
|
79
79
|
}
|
|
@@ -130,7 +130,7 @@ export const threads = (
|
|
|
130
130
|
|
|
131
131
|
const thread = query.results.find((object) => Relation.getSource(object).id === id);
|
|
132
132
|
if (thread) {
|
|
133
|
-
Relation.
|
|
133
|
+
Relation.update(thread, (thread) => {
|
|
134
134
|
thread.anchor = undefined;
|
|
135
135
|
});
|
|
136
136
|
}
|
|
@@ -139,10 +139,10 @@ export const threads = (
|
|
|
139
139
|
const draft = registry.get(stateAtom).drafts[objectId]?.find((d) => Relation.getDXN(d).toString() === id);
|
|
140
140
|
if (draft) {
|
|
141
141
|
const thread = Relation.getSource(draft) as Thread.Thread;
|
|
142
|
-
Obj.
|
|
142
|
+
Obj.update(thread, (thread) => {
|
|
143
143
|
thread.name = getName(doc, cursor);
|
|
144
144
|
});
|
|
145
|
-
Relation.
|
|
145
|
+
Relation.update(draft, (draft) => {
|
|
146
146
|
draft.anchor = cursor;
|
|
147
147
|
});
|
|
148
148
|
}
|
|
@@ -151,10 +151,10 @@ export const threads = (
|
|
|
151
151
|
if (relation) {
|
|
152
152
|
const thread = Relation.getSource(relation);
|
|
153
153
|
if (Obj.instanceOf(Thread.Thread, thread)) {
|
|
154
|
-
Obj.
|
|
154
|
+
Obj.update(thread, (thread) => {
|
|
155
155
|
thread.name = getName(doc, cursor);
|
|
156
156
|
});
|
|
157
|
-
Relation.
|
|
157
|
+
Relation.update(relation, (relation) => {
|
|
158
158
|
relation.anchor = cursor;
|
|
159
159
|
});
|
|
160
160
|
}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
|
+
import { Operation } from '@dxos/compute';
|
|
8
9
|
import { Obj, Ref, Relation } from '@dxos/echo';
|
|
9
10
|
import { invariant } from '@dxos/invariant';
|
|
10
|
-
import { Operation } from '@dxos/operation';
|
|
11
11
|
import { ObservabilityOperation } from '@dxos/plugin-observability/operations';
|
|
12
12
|
import { SpaceOperation } from '@dxos/plugin-space/operations';
|
|
13
13
|
import { AnchoredTo, Message, Thread } from '@dxos/types';
|
|
@@ -30,14 +30,14 @@ const handler: Operation.WithHandler<typeof AddMessage> = AddMessage.pipe(
|
|
|
30
30
|
sender,
|
|
31
31
|
blocks: [{ _tag: 'text', text }],
|
|
32
32
|
});
|
|
33
|
-
Obj.
|
|
33
|
+
Obj.update(thread, (thread) => {
|
|
34
34
|
thread.messages.push(Ref.make(message));
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
const state = registry.get(stateAtom);
|
|
38
38
|
const draft = state.drafts[subjectId]?.find((a: { id: string }) => a.id === anchor.id);
|
|
39
39
|
if (draft) {
|
|
40
|
-
Obj.
|
|
40
|
+
Obj.update(thread, (thread) => {
|
|
41
41
|
thread.status = 'active';
|
|
42
42
|
});
|
|
43
43
|
registry.set(stateAtom, {
|