@dxos/plugin-thread 0.8.4-main.f9ba587 → 0.8.4-main.fd6878d
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/ChannelContainer-O2SFQJU7.mjs +16 -0
- package/dist/lib/browser/{ChatContainer-2UYQ23KO.mjs → ChatContainer-PVT3DUZJ.mjs} +4 -4
- package/dist/lib/browser/{app-graph-builder-Q5V3KXE3.mjs → app-graph-builder-AF3M7UWN.mjs} +5 -5
- package/dist/lib/browser/app-graph-builder-AF3M7UWN.mjs.map +7 -0
- package/dist/lib/browser/{call-manager-NIPDYUVD.mjs → call-manager-XRRCAVLI.mjs} +4 -4
- package/dist/lib/browser/call-manager-XRRCAVLI.mjs.map +7 -0
- package/dist/lib/browser/chunk-2CWJBXBH.mjs +21 -0
- package/dist/lib/browser/{chunk-LGSDKXPF.mjs → chunk-4APCDRSH.mjs} +1 -1
- package/dist/lib/browser/{chunk-LGSDKXPF.mjs.map → chunk-4APCDRSH.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-JVIKVYTI.mjs → chunk-DW7JD64V.mjs} +11 -2
- package/dist/lib/browser/chunk-DW7JD64V.mjs.map +7 -0
- package/dist/lib/browser/{chunk-YD57K2SL.mjs → chunk-FY4ZRD5X.mjs} +8 -8
- package/dist/lib/{node-esm/chunk-RGTWAVEE.mjs.map → browser/chunk-FY4ZRD5X.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-NCSFNWBZ.mjs → chunk-J3JO5NWO.mjs} +30 -32
- package/dist/lib/browser/chunk-J3JO5NWO.mjs.map +7 -0
- package/dist/lib/browser/{chunk-6NSMBO3B.mjs → chunk-JGKMMI65.mjs} +2 -2
- package/dist/lib/browser/{chunk-6NSMBO3B.mjs.map → chunk-JGKMMI65.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-ZE7KWN36.mjs → chunk-TUFWPOVS.mjs} +92 -63
- package/dist/lib/browser/chunk-TUFWPOVS.mjs.map +7 -0
- package/dist/lib/browser/{chunk-ERWASUQK.mjs → chunk-X5PIP5YR.mjs} +3 -3
- package/dist/lib/browser/{chunk-ERWASUQK.mjs.map → chunk-X5PIP5YR.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-LCJD3NOB.mjs → chunk-ZJ7QBXK6.mjs} +225 -225
- package/dist/lib/browser/chunk-ZJ7QBXK6.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +16 -28
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-MWE6XLPY.mjs → intent-resolver-DCY4P4OX.mjs} +28 -12
- package/dist/lib/browser/intent-resolver-DCY4P4OX.mjs.map +7 -0
- package/dist/lib/browser/{markdown-ZO34G7RM.mjs → markdown-WZSXCEZJ.mjs} +4 -4
- package/dist/lib/browser/markdown-WZSXCEZJ.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-root-YNDNPODD.mjs → react-root-QXPALOUQ.mjs} +9 -9
- package/dist/lib/browser/{react-surface-2AXRNTCA.mjs → react-surface-PYAMIADB.mjs} +9 -9
- package/dist/lib/browser/react-surface-PYAMIADB.mjs.map +7 -0
- package/dist/lib/browser/{settings-XZGPZNAU.mjs → settings-AC6YSASL.mjs} +2 -2
- package/dist/lib/browser/{state-H6CYONWE.mjs → state-2T4KDWBX.mjs} +2 -2
- package/dist/lib/browser/{state-H6CYONWE.mjs.map → state-2T4KDWBX.mjs.map} +2 -2
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node-esm/{ChannelContainer-O2LZKMRM.mjs → ChannelContainer-B2ZGAE4P.mjs} +7 -7
- package/dist/lib/node-esm/{ChatContainer-6N35MP5J.mjs → ChatContainer-2CT4PJ7I.mjs} +4 -4
- package/dist/lib/node-esm/{app-graph-builder-GAKBZNU3.mjs → app-graph-builder-OLSJVCWY.mjs} +5 -5
- package/dist/lib/node-esm/app-graph-builder-OLSJVCWY.mjs.map +7 -0
- package/dist/lib/node-esm/{call-manager-D6O5ZJJ4.mjs → call-manager-EI7FXRAU.mjs} +4 -4
- package/dist/lib/node-esm/call-manager-EI7FXRAU.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-IHDNQLLR.mjs → chunk-4TME3BR4.mjs} +92 -63
- package/dist/lib/node-esm/chunk-4TME3BR4.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-6CRHHOST.mjs +23 -0
- package/dist/lib/node-esm/{chunk-RGTWAVEE.mjs → chunk-BF4UKS55.mjs} +8 -8
- package/dist/lib/node-esm/chunk-BF4UKS55.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-75RJ5DJI.mjs → chunk-PYTVBN5J.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-75RJ5DJI.mjs.map → chunk-PYTVBN5J.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-OU5BYIDO.mjs → chunk-QBHKLWGR.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-OU5BYIDO.mjs.map → chunk-QBHKLWGR.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-25ABSYP2.mjs → chunk-SED3O2XO.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-25ABSYP2.mjs.map → chunk-SED3O2XO.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-A6QLTZCY.mjs → chunk-VNG6M2IY.mjs} +30 -32
- package/dist/lib/node-esm/chunk-VNG6M2IY.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-3X3YKRM2.mjs → chunk-XVKWHTH4.mjs} +11 -2
- package/dist/lib/node-esm/chunk-XVKWHTH4.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-5UQ4KKDE.mjs → chunk-YIDU3DXK.mjs} +225 -225
- package/dist/lib/node-esm/chunk-YIDU3DXK.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +16 -28
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-B6PNTMPY.mjs → intent-resolver-QGTPU6QB.mjs} +28 -12
- package/dist/lib/node-esm/intent-resolver-QGTPU6QB.mjs.map +7 -0
- package/dist/lib/node-esm/{markdown-ZJUFV2TA.mjs → markdown-3MZXUGUA.mjs} +4 -4
- package/dist/lib/node-esm/markdown-3MZXUGUA.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-root-ZUVVTKWG.mjs → react-root-7ZFJYVUZ.mjs} +9 -9
- package/dist/lib/node-esm/{react-surface-OMEZTOU6.mjs → react-surface-UJFCSFNO.mjs} +9 -9
- package/dist/lib/node-esm/react-surface-UJFCSFNO.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-XECBSD6Q.mjs → settings-N52O7MLS.mjs} +2 -2
- package/dist/lib/node-esm/{state-D7WNDT3N.mjs → state-62TQKQVB.mjs} +2 -2
- package/dist/lib/node-esm/{state-D7WNDT3N.mjs.map → state-62TQKQVB.mjs.map} +2 -2
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/ThreadPlugin.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/types.d.ts +1 -1
- package/dist/types/src/calls/types.d.ts.map +1 -1
- package/dist/types/src/calls/util/calls-service.d.ts +1 -1
- package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
- package/dist/types/src/calls/util/stub-media-streams.d.ts.map +1 -1
- package/dist/types/src/calls-service.stories.d.ts +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/call-manager.d.ts.map +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts +2 -2
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +1 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.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/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/components/Call/Call.d.ts.map +1 -1
- package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/CallDebugPanel.d.ts.map +1 -1
- package/dist/types/src/components/CallSidebar.d.ts.map +1 -1
- package/dist/types/src/components/ChannelContainer.d.ts.map +1 -1
- package/dist/types/src/components/ChannelContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/Chat.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
- package/dist/types/src/components/Comments.stories.d.ts.map +1 -1
- package/dist/types/src/components/CommentsContainer.d.ts.map +1 -1
- package/dist/types/src/components/CommentsThreadContainer.d.ts.map +1 -1
- 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/MessageContainer.d.ts.map +1 -1
- package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +1 -1
- 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/extensions/threads.d.ts +2 -2
- package/dist/types/src/extensions/threads.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +2 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +53 -22
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +72 -24
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts +17 -2
- package/dist/types/src/util.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +47 -45
- package/src/ThreadPlugin.tsx +8 -23
- package/src/calls/call-manager.ts +1 -1
- package/src/calls/call-swarm-synchronizer.ts +1 -1
- package/src/calls/media-manager.ts +2 -2
- package/src/calls/types.ts +1 -1
- package/src/calls/util/calls-service.ts +4 -3
- package/src/calls/util/stub-media-streams.ts +2 -2
- package/src/calls-service.stories.tsx +3 -3
- package/src/capabilities/app-graph-builder.ts +6 -5
- package/src/capabilities/call-manager.ts +3 -2
- package/src/capabilities/capabilities.ts +2 -2
- package/src/capabilities/intent-resolver.ts +26 -7
- package/src/capabilities/markdown.ts +4 -3
- package/src/capabilities/react-surface.tsx +5 -4
- package/src/capabilities/state.ts +2 -1
- package/src/components/Call/Call.tsx +3 -2
- package/src/components/Call/Toolbar.tsx +3 -3
- package/src/components/CallDebugPanel.tsx +1 -1
- package/src/components/CallSidebar.tsx +2 -1
- package/src/components/ChannelContainer.stories.tsx +3 -2
- package/src/components/ChannelContainer.tsx +7 -6
- package/src/components/Chat.stories.tsx +3 -2
- package/src/components/ChatContainer.tsx +6 -5
- package/src/components/Comments.stories.tsx +4 -3
- package/src/components/CommentsContainer.tsx +2 -1
- package/src/components/CommentsThreadContainer.tsx +3 -2
- package/src/components/Lobby/Lobby.tsx +1 -1
- package/src/components/Media/VideoObject.stories.tsx +4 -3
- package/src/components/MessageContainer.tsx +6 -5
- package/src/components/Participant/ParticipantGrid.tsx +2 -1
- package/src/components/ResponsiveGrid/ResponsiveContainer.stories.tsx +4 -3
- package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +5 -4
- package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +1 -1
- package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +2 -2
- package/src/components/ThreadComplementary.tsx +1 -1
- package/src/components/command-extension.ts +1 -1
- package/src/components/testing.ts +2 -2
- package/src/extensions/threads.ts +6 -6
- package/src/hooks/useDebugMode.ts +1 -1
- package/src/testing/stories.ts +2 -2
- package/src/translations.ts +2 -0
- package/src/types/types.ts +11 -2
- package/src/typings.d.ts +8 -0
- package/dist/lib/browser/ChannelContainer-5YH4FTBL.mjs +0 -16
- package/dist/lib/browser/app-graph-builder-Q5V3KXE3.mjs.map +0 -7
- package/dist/lib/browser/call-manager-NIPDYUVD.mjs.map +0 -7
- package/dist/lib/browser/chunk-5ZVJ4GAS.mjs +0 -21
- package/dist/lib/browser/chunk-JVIKVYTI.mjs.map +0 -7
- package/dist/lib/browser/chunk-LCJD3NOB.mjs.map +0 -7
- package/dist/lib/browser/chunk-NCSFNWBZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-YD57K2SL.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZE7KWN36.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-MWE6XLPY.mjs.map +0 -7
- package/dist/lib/browser/markdown-ZO34G7RM.mjs.map +0 -7
- package/dist/lib/browser/react-surface-2AXRNTCA.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-GAKBZNU3.mjs.map +0 -7
- package/dist/lib/node-esm/call-manager-D6O5ZJJ4.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3X3YKRM2.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-5UQ4KKDE.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-A6QLTZCY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-IHDNQLLR.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-X62X3VOK.mjs +0 -23
- package/dist/lib/node-esm/intent-resolver-B6PNTMPY.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-ZJUFV2TA.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-OMEZTOU6.mjs.map +0 -7
- /package/dist/lib/browser/{ChannelContainer-5YH4FTBL.mjs.map → ChannelContainer-O2SFQJU7.mjs.map} +0 -0
- /package/dist/lib/browser/{ChatContainer-2UYQ23KO.mjs.map → ChatContainer-PVT3DUZJ.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-5ZVJ4GAS.mjs.map → chunk-2CWJBXBH.mjs.map} +0 -0
- /package/dist/lib/browser/{react-root-YNDNPODD.mjs.map → react-root-QXPALOUQ.mjs.map} +0 -0
- /package/dist/lib/browser/{settings-XZGPZNAU.mjs.map → settings-AC6YSASL.mjs.map} +0 -0
- /package/dist/lib/node-esm/{ChannelContainer-O2LZKMRM.mjs.map → ChannelContainer-B2ZGAE4P.mjs.map} +0 -0
- /package/dist/lib/node-esm/{ChatContainer-6N35MP5J.mjs.map → ChatContainer-2CT4PJ7I.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-X62X3VOK.mjs.map → chunk-6CRHHOST.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-root-ZUVVTKWG.mjs.map → react-root-7ZFJYVUZ.mjs.map} +0 -0
- /package/dist/lib/node-esm/{settings-XECBSD6Q.mjs.map → settings-N52O7MLS.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.fd6878d",
|
|
4
4
|
"description": "DXOS Threads Surface plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -10,11 +10,13 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
+
"source": "./src/index.ts",
|
|
13
14
|
"types": "./dist/types/src/index.d.ts",
|
|
14
15
|
"browser": "./dist/lib/browser/index.mjs",
|
|
15
16
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
16
17
|
},
|
|
17
18
|
"./types": {
|
|
19
|
+
"source": "./src/types/index.ts",
|
|
18
20
|
"types": "./dist/types/src/types/index.d.ts",
|
|
19
21
|
"browser": "./dist/lib/browser/types/index.mjs",
|
|
20
22
|
"node": "./dist/lib/node-esm/types/index.mjs"
|
|
@@ -45,56 +47,56 @@
|
|
|
45
47
|
"md5-hex": "5.0.0",
|
|
46
48
|
"react-resize-detector": "^12.0.2",
|
|
47
49
|
"wavefile": "^11.0.0",
|
|
48
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
49
|
-
"@dxos/async": "0.8.4-main.
|
|
50
|
-
"@dxos/codec-protobuf": "0.8.4-main.
|
|
51
|
-
"@dxos/context": "0.8.4-main.
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/display-name": "0.8.4-main.
|
|
55
|
-
"@dxos/echo": "0.8.4-main.
|
|
56
|
-
"@dxos/echo-schema": "0.8.4-main.
|
|
57
|
-
"@dxos/invariant": "0.8.4-main.
|
|
58
|
-
"@dxos/keys": "0.8.4-main.
|
|
59
|
-
"@dxos/live-object": "0.8.4-main.
|
|
60
|
-
"@dxos/local-storage": "0.8.4-main.
|
|
61
|
-
"@dxos/log": "0.8.4-main.
|
|
62
|
-
"@dxos/plugin-attention": "0.8.4-main.
|
|
63
|
-
"@dxos/plugin-client": "0.8.4-main.
|
|
64
|
-
"@dxos/plugin-
|
|
65
|
-
"@dxos/plugin-
|
|
66
|
-
"@dxos/plugin-
|
|
67
|
-
"@dxos/plugin-observability": "0.8.4-main.
|
|
68
|
-
"@dxos/plugin-space": "0.8.4-main.
|
|
69
|
-
"@dxos/protocols": "0.8.4-main.
|
|
70
|
-
"@dxos/react-client": "0.8.4-main.
|
|
71
|
-
"@dxos/react-ui-
|
|
72
|
-
"@dxos/react-ui-
|
|
73
|
-
"@dxos/react-ui-
|
|
74
|
-
"@dxos/react-ui-
|
|
75
|
-
"@dxos/react-ui-menu": "0.8.4-main.
|
|
76
|
-
"@dxos/react-ui-sfx": "0.8.4-main.
|
|
77
|
-
"@dxos/react-ui-
|
|
78
|
-
"@dxos/react-ui-
|
|
79
|
-
"@dxos/react-ui-tabs": "0.8.4-main.
|
|
80
|
-
"@dxos/
|
|
81
|
-
"@dxos/
|
|
82
|
-
"@dxos/util": "0.8.4-main.
|
|
50
|
+
"@dxos/app-framework": "0.8.4-main.fd6878d",
|
|
51
|
+
"@dxos/async": "0.8.4-main.fd6878d",
|
|
52
|
+
"@dxos/codec-protobuf": "0.8.4-main.fd6878d",
|
|
53
|
+
"@dxos/context": "0.8.4-main.fd6878d",
|
|
54
|
+
"@dxos/devtools": "0.8.4-main.fd6878d",
|
|
55
|
+
"@dxos/debug": "0.8.4-main.fd6878d",
|
|
56
|
+
"@dxos/display-name": "0.8.4-main.fd6878d",
|
|
57
|
+
"@dxos/echo": "0.8.4-main.fd6878d",
|
|
58
|
+
"@dxos/echo-schema": "0.8.4-main.fd6878d",
|
|
59
|
+
"@dxos/invariant": "0.8.4-main.fd6878d",
|
|
60
|
+
"@dxos/keys": "0.8.4-main.fd6878d",
|
|
61
|
+
"@dxos/live-object": "0.8.4-main.fd6878d",
|
|
62
|
+
"@dxos/local-storage": "0.8.4-main.fd6878d",
|
|
63
|
+
"@dxos/log": "0.8.4-main.fd6878d",
|
|
64
|
+
"@dxos/plugin-attention": "0.8.4-main.fd6878d",
|
|
65
|
+
"@dxos/plugin-client": "0.8.4-main.fd6878d",
|
|
66
|
+
"@dxos/plugin-graph": "0.8.4-main.fd6878d",
|
|
67
|
+
"@dxos/plugin-markdown": "0.8.4-main.fd6878d",
|
|
68
|
+
"@dxos/plugin-deck": "0.8.4-main.fd6878d",
|
|
69
|
+
"@dxos/plugin-observability": "0.8.4-main.fd6878d",
|
|
70
|
+
"@dxos/plugin-space": "0.8.4-main.fd6878d",
|
|
71
|
+
"@dxos/protocols": "0.8.4-main.fd6878d",
|
|
72
|
+
"@dxos/react-client": "0.8.4-main.fd6878d",
|
|
73
|
+
"@dxos/react-ui-attention": "0.8.4-main.fd6878d",
|
|
74
|
+
"@dxos/react-ui-editor": "0.8.4-main.fd6878d",
|
|
75
|
+
"@dxos/react-ui-dnd": "0.8.4-main.fd6878d",
|
|
76
|
+
"@dxos/react-ui-form": "0.8.4-main.fd6878d",
|
|
77
|
+
"@dxos/react-ui-menu": "0.8.4-main.fd6878d",
|
|
78
|
+
"@dxos/react-ui-sfx": "0.8.4-main.fd6878d",
|
|
79
|
+
"@dxos/react-ui-stack": "0.8.4-main.fd6878d",
|
|
80
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.fd6878d",
|
|
81
|
+
"@dxos/react-ui-tabs": "0.8.4-main.fd6878d",
|
|
82
|
+
"@dxos/react-ui-thread": "0.8.4-main.fd6878d",
|
|
83
|
+
"@dxos/schema": "0.8.4-main.fd6878d",
|
|
84
|
+
"@dxos/util": "0.8.4-main.fd6878d"
|
|
83
85
|
},
|
|
84
86
|
"devDependencies": {
|
|
85
87
|
"@effect-rx/rx-react": "0.38.0",
|
|
86
|
-
"@effect/platform": "0.
|
|
88
|
+
"@effect/platform": "0.90.2",
|
|
87
89
|
"@types/react": "~18.2.0",
|
|
88
90
|
"@types/react-dom": "~18.2.0",
|
|
89
|
-
"effect": "3.
|
|
91
|
+
"effect": "3.17.7",
|
|
90
92
|
"react": "~18.2.0",
|
|
91
93
|
"react-dom": "~18.2.0",
|
|
92
94
|
"vite": "5.4.7",
|
|
93
|
-
"@dxos/plugin-theme": "0.8.4-main.
|
|
94
|
-
"@dxos/random": "0.8.4-main.
|
|
95
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
96
|
-
"@dxos/
|
|
97
|
-
"@dxos/
|
|
95
|
+
"@dxos/plugin-theme": "0.8.4-main.fd6878d",
|
|
96
|
+
"@dxos/random": "0.8.4-main.fd6878d",
|
|
97
|
+
"@dxos/react-ui-theme": "0.8.4-main.fd6878d",
|
|
98
|
+
"@dxos/storybook-utils": "0.8.4-main.fd6878d",
|
|
99
|
+
"@dxos/react-ui": "0.8.4-main.fd6878d"
|
|
98
100
|
},
|
|
99
101
|
"peerDependencies": {
|
|
100
102
|
"@effect-rx/rx-react": "^0.34.1",
|
|
@@ -102,8 +104,8 @@
|
|
|
102
104
|
"effect": "^3.13.3",
|
|
103
105
|
"react": "~18.2.0",
|
|
104
106
|
"react-dom": "~18.2.0",
|
|
105
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
106
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
107
|
+
"@dxos/react-ui": "0.8.4-main.fd6878d",
|
|
108
|
+
"@dxos/react-ui-theme": "0.8.4-main.fd6878d"
|
|
107
109
|
},
|
|
108
110
|
"publishConfig": {
|
|
109
111
|
"access": "public"
|
package/src/ThreadPlugin.tsx
CHANGED
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';
|
|
8
|
-
import { Ref, Type } from '@dxos/echo';
|
|
5
|
+
import { Capabilities, Events, contributes, createIntent, defineModule, definePlugin } from '@dxos/app-framework';
|
|
6
|
+
import { Ref } from '@dxos/echo';
|
|
9
7
|
import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
|
|
10
8
|
import { MarkdownEvents } from '@dxos/plugin-markdown';
|
|
11
9
|
import { SpaceCapabilities, SpaceEvents } from '@dxos/plugin-space';
|
|
12
|
-
import {
|
|
10
|
+
import { defineObjectForm } from '@dxos/plugin-space/types';
|
|
13
11
|
import { translations as threadTranslations } from '@dxos/react-ui-thread';
|
|
14
12
|
import { AnchoredTo, DataType } from '@dxos/schema';
|
|
15
13
|
|
|
@@ -22,7 +20,7 @@ import {
|
|
|
22
20
|
ReactSurface,
|
|
23
21
|
ThreadState,
|
|
24
22
|
} from './capabilities';
|
|
25
|
-
import {
|
|
23
|
+
import { THREAD_ITEM, meta } from './meta';
|
|
26
24
|
import { translations } from './translations';
|
|
27
25
|
import { ChannelType, ThreadAction, ThreadType } from './types';
|
|
28
26
|
|
|
@@ -124,23 +122,10 @@ export const ThreadPlugin = () =>
|
|
|
124
122
|
defineModule({
|
|
125
123
|
id: `${meta.id}/module/on-space-created`,
|
|
126
124
|
activatesOn: SpaceEvents.SpaceCreated,
|
|
127
|
-
activate: (
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
const { object: collection } = yield* dispatch(
|
|
132
|
-
createIntent(CollectionAction.CreateQueryCollection, { typename: Type.getTypename(ChannelType) }),
|
|
133
|
-
);
|
|
134
|
-
rootCollection.objects.push(Ref.make(collection));
|
|
135
|
-
|
|
136
|
-
const { object: channel } = yield* dispatch(
|
|
137
|
-
createIntent(ThreadAction.CreateChannel, { name: 'General', spaceId: space.id }),
|
|
138
|
-
);
|
|
139
|
-
space.db.add(channel);
|
|
140
|
-
});
|
|
141
|
-
await Effect.runPromise(program);
|
|
142
|
-
});
|
|
143
|
-
},
|
|
125
|
+
activate: () =>
|
|
126
|
+
contributes(SpaceCapabilities.OnSpaceCreated, ({ space, rootCollection }) =>
|
|
127
|
+
createIntent(ThreadAction.OnSpaceCreated, { space, rootCollection }),
|
|
128
|
+
),
|
|
144
129
|
}),
|
|
145
130
|
defineModule({
|
|
146
131
|
id: `${meta.id}/module/markdown`,
|
|
@@ -12,7 +12,7 @@ import { live } from '@dxos/live-object';
|
|
|
12
12
|
import { type Tracks } from '@dxos/protocols/proto/dxos/edge/calls';
|
|
13
13
|
import { isNonNullable } from '@dxos/util';
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { type CallState, CallSwarmSynchronizer } from './call-swarm-synchronizer';
|
|
16
16
|
import { MediaManager, type MediaState } from './media-manager';
|
|
17
17
|
import { type ActivityState, CALLS_URL, type EncodedTrackName, TrackNameCodec, type UserState } from './types';
|
|
18
18
|
|
|
@@ -17,7 +17,7 @@ import { type Device, type NetworkService } from '@dxos/protocols/proto/dxos/cli
|
|
|
17
17
|
import { ConnectionState, type SwarmResponse } from '@dxos/protocols/proto/dxos/edge/messenger';
|
|
18
18
|
import { isNonNullable } from '@dxos/util';
|
|
19
19
|
|
|
20
|
-
import {
|
|
20
|
+
import { type ActivityState, type UserState, codec } from './types';
|
|
21
21
|
|
|
22
22
|
export type CallState = {
|
|
23
23
|
/**
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { DeferredTask, Event, sleep, synchronized } from '@dxos/async';
|
|
6
|
-
import {
|
|
6
|
+
import { type Context, Resource, cancelWithContext } from '@dxos/context';
|
|
7
7
|
import { log } from '@dxos/log';
|
|
8
8
|
|
|
9
9
|
import { SpeakingMonitor } from './speaking-monitor';
|
|
10
|
-
import {
|
|
10
|
+
import { type EncodedTrackName, TrackNameCodec, type TrackObject } from './types';
|
|
11
11
|
import {
|
|
12
12
|
type CallsServiceConfig,
|
|
13
13
|
CallsServicePeer,
|
package/src/calls/types.ts
CHANGED
|
@@ -7,16 +7,17 @@ import { type Context, Resource } from '@dxos/context';
|
|
|
7
7
|
import { invariant } from '@dxos/invariant';
|
|
8
8
|
import { log } from '@dxos/log';
|
|
9
9
|
|
|
10
|
-
import { HistoryCache } from './history-cache';
|
|
11
|
-
import { BulkRequestDispatcher, FIFOScheduler } from './task-scheduling';
|
|
12
10
|
import {
|
|
13
|
-
type SessionResponse,
|
|
14
11
|
type ErrorResponse,
|
|
15
12
|
type RenegotiationResponse,
|
|
13
|
+
type SessionResponse,
|
|
16
14
|
type TrackObject,
|
|
17
15
|
type TracksResponse,
|
|
18
16
|
} from '../types';
|
|
19
17
|
|
|
18
|
+
import { HistoryCache } from './history-cache';
|
|
19
|
+
import { BulkRequestDispatcher, FIFOScheduler } from './task-scheduling';
|
|
20
|
+
|
|
20
21
|
const NETWORK_TIMEOUT = 5_000;
|
|
21
22
|
|
|
22
23
|
export type Session = {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
//
|
|
4
4
|
//
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { scheduleTaskInterval, waitForCondition } from '@dxos/async';
|
|
7
|
+
import { type Context, cancelWithContext } from '@dxos/context';
|
|
8
8
|
import { invariant } from '@dxos/invariant';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -16,10 +16,10 @@ import { Button } from '@dxos/react-ui';
|
|
|
16
16
|
import { Json } from '@dxos/react-ui-syntax-highlighter';
|
|
17
17
|
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
18
18
|
|
|
19
|
-
import
|
|
19
|
+
import video from '../testing/video.mp4?raw';
|
|
20
|
+
|
|
21
|
+
import { CALLS_URL, CallsServicePeer, type TrackObject } from './calls';
|
|
20
22
|
import { useInaudibleAudioStreamTrack, useVideoStreamTrack } from './hooks';
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
import video from '../testing/video.mp4';
|
|
23
23
|
|
|
24
24
|
const pushAndPullTrack = (mediaStreamTrack?: MediaStreamTrack) => {
|
|
25
25
|
const config = useConfig();
|
|
@@ -5,18 +5,19 @@
|
|
|
5
5
|
import { Rx } from '@effect-rx/rx-react';
|
|
6
6
|
import { Option, pipe } from 'effect';
|
|
7
7
|
|
|
8
|
-
import { Capabilities, contributes, createIntent
|
|
8
|
+
import { Capabilities, type PluginContext, contributes, createIntent } from '@dxos/app-framework';
|
|
9
9
|
import { Obj } from '@dxos/echo';
|
|
10
10
|
import { AttentionCapabilities } from '@dxos/plugin-attention';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
|
|
12
|
+
import { ROOT_ID, createExtension, rxFromSignal } from '@dxos/plugin-graph';
|
|
13
13
|
import { fullyQualifiedId } from '@dxos/react-client/echo';
|
|
14
14
|
|
|
15
|
-
import {
|
|
16
|
-
import { meta, THREAD_PLUGIN } from '../meta';
|
|
15
|
+
import { THREAD_PLUGIN, meta } from '../meta';
|
|
17
16
|
import { ChannelType, ThreadAction } from '../types';
|
|
18
17
|
import { getAnchor } from '../util';
|
|
19
18
|
|
|
19
|
+
import { ThreadCapabilities } from './capabilities';
|
|
20
|
+
|
|
20
21
|
export default (context: PluginContext) => {
|
|
21
22
|
const resolve = (typename: string) =>
|
|
22
23
|
context.getCapabilities(Capabilities.Metadata).find(({ id }) => id === typename)?.metadata ?? {};
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { type PluginContext, contributes } from '@dxos/app-framework';
|
|
6
6
|
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
7
7
|
|
|
8
|
-
import { ThreadCapabilities } from './capabilities';
|
|
9
8
|
import { CallManager } from '../calls';
|
|
10
9
|
|
|
10
|
+
import { ThreadCapabilities } from './capabilities';
|
|
11
|
+
|
|
11
12
|
export default async (context: PluginContext) => {
|
|
12
13
|
const client = context.getCapability(ClientCapabilities.Client);
|
|
13
14
|
const callManager = new CallManager(client);
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
import { defineCapability } from '@dxos/app-framework';
|
|
6
6
|
import { type DeepReadonly } from '@dxos/util';
|
|
7
7
|
|
|
8
|
-
import { type
|
|
8
|
+
import { type CallManager, type CallState, type MediaState } from '../calls';
|
|
9
9
|
import { THREAD_PLUGIN } from '../meta';
|
|
10
|
-
import { type
|
|
10
|
+
import { type ChannelType, type ThreadState, type ViewState } from '../types';
|
|
11
11
|
|
|
12
12
|
export namespace ThreadCapabilities {
|
|
13
13
|
export const CallManager = defineCapability<CallManager>(`${THREAD_PLUGIN}/capability/call-manager`);
|
|
@@ -2,22 +2,41 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { Effect } from 'effect';
|
|
6
|
+
|
|
7
|
+
import { Capabilities, type PluginContext, contributes, createIntent, createResolver } from '@dxos/app-framework';
|
|
6
8
|
import { sleep } from '@dxos/async';
|
|
7
|
-
import { Obj, Relation } from '@dxos/echo';
|
|
9
|
+
import { Obj, Relation, Type } from '@dxos/echo';
|
|
8
10
|
import { invariant } from '@dxos/invariant';
|
|
9
11
|
import { ATTENDABLE_PATH_SEPARATOR, DeckAction } from '@dxos/plugin-deck/types';
|
|
10
12
|
import { ObservabilityAction } from '@dxos/plugin-observability/types';
|
|
11
|
-
import { SpaceAction } from '@dxos/plugin-space/types';
|
|
12
|
-
import { fullyQualifiedId, getSpace
|
|
13
|
+
import { CollectionAction, SpaceAction } from '@dxos/plugin-space/types';
|
|
14
|
+
import { Ref, fullyQualifiedId, getSpace } from '@dxos/react-client/echo';
|
|
13
15
|
import { AnchoredTo, DataType } from '@dxos/schema';
|
|
14
16
|
|
|
15
|
-
import { ThreadCapabilities } from './capabilities';
|
|
16
17
|
import { THREAD_PLUGIN } from '../meta';
|
|
17
18
|
import { ChannelType, ThreadAction, ThreadType } from '../types';
|
|
18
19
|
|
|
20
|
+
import { ThreadCapabilities } from './capabilities';
|
|
21
|
+
|
|
19
22
|
export default (context: PluginContext) =>
|
|
20
23
|
contributes(Capabilities.IntentResolver, [
|
|
24
|
+
createResolver({
|
|
25
|
+
intent: ThreadAction.OnSpaceCreated,
|
|
26
|
+
resolve: ({ space, rootCollection }) =>
|
|
27
|
+
Effect.gen(function* () {
|
|
28
|
+
const { dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
29
|
+
const { object: collection } = yield* dispatch(
|
|
30
|
+
createIntent(CollectionAction.CreateQueryCollection, { typename: Type.getTypename(ChannelType) }),
|
|
31
|
+
);
|
|
32
|
+
rootCollection.objects.push(Ref.make(collection));
|
|
33
|
+
|
|
34
|
+
const { object: channel } = yield* dispatch(
|
|
35
|
+
createIntent(ThreadAction.CreateChannel, { name: 'General', spaceId: space.id }),
|
|
36
|
+
);
|
|
37
|
+
space.db.add(channel);
|
|
38
|
+
}),
|
|
39
|
+
}),
|
|
21
40
|
createResolver({
|
|
22
41
|
intent: ThreadAction.CreateChannel,
|
|
23
42
|
resolve: ({ name }) => ({
|
|
@@ -182,9 +201,9 @@ export default (context: PluginContext) =>
|
|
|
182
201
|
const intents = [];
|
|
183
202
|
|
|
184
203
|
const message = Obj.make(DataType.Message, {
|
|
185
|
-
sender,
|
|
186
204
|
created: new Date().toISOString(),
|
|
187
|
-
|
|
205
|
+
sender,
|
|
206
|
+
blocks: [{ _tag: 'text', text }],
|
|
188
207
|
// TODO(wittjosiah): Context based on attention.
|
|
189
208
|
// context: context ? Ref.make(context) : undefined,
|
|
190
209
|
});
|
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
import { EditorView } from '@codemirror/view';
|
|
6
6
|
|
|
7
|
-
import { Capabilities, contributes, createIntent
|
|
7
|
+
import { Capabilities, type PluginContext, contributes, createIntent } from '@dxos/app-framework';
|
|
8
8
|
import { ATTENDABLE_PATH_SEPARATOR, DeckAction } from '@dxos/plugin-deck/types';
|
|
9
9
|
import { MarkdownCapabilities } from '@dxos/plugin-markdown';
|
|
10
10
|
import { fullyQualifiedId } from '@dxos/react-client/echo';
|
|
11
|
-
import { commentClickedEffect, commentsState,
|
|
11
|
+
import { type EditorState, commentClickedEffect, commentsState, overlap } from '@dxos/react-ui-editor';
|
|
12
12
|
|
|
13
|
-
import { ThreadCapabilities } from './capabilities';
|
|
14
13
|
import { threads } from '../extensions';
|
|
15
14
|
|
|
15
|
+
import { ThreadCapabilities } from './capabilities';
|
|
16
|
+
|
|
16
17
|
export default (context: PluginContext) =>
|
|
17
18
|
contributes(MarkdownCapabilities.Extensions, [
|
|
18
19
|
({ document: doc }) => {
|
|
@@ -9,17 +9,18 @@ import { Obj, type Ref } from '@dxos/echo';
|
|
|
9
9
|
import { SettingsStore } from '@dxos/local-storage';
|
|
10
10
|
import { getSpace } from '@dxos/react-client/echo';
|
|
11
11
|
|
|
12
|
-
import { ThreadCapabilities } from './capabilities';
|
|
13
12
|
import {
|
|
14
|
-
CallSidebar,
|
|
15
13
|
CallDebugPanel,
|
|
14
|
+
CallSidebar,
|
|
16
15
|
ChannelContainer,
|
|
16
|
+
ChatContainer,
|
|
17
17
|
ThreadComplementary,
|
|
18
18
|
ThreadSettings,
|
|
19
|
-
ChatContainer,
|
|
20
19
|
} from '../components';
|
|
21
20
|
import { THREAD_PLUGIN } from '../meta';
|
|
22
|
-
import { ChannelType,
|
|
21
|
+
import { ChannelType, type ThreadSettingsProps, ThreadType } from '../types';
|
|
22
|
+
|
|
23
|
+
import { ThreadCapabilities } from './capabilities';
|
|
23
24
|
|
|
24
25
|
export default () =>
|
|
25
26
|
contributes(Capabilities.ReactSurface, [
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
import { contributes } from '@dxos/app-framework';
|
|
6
6
|
import { live } from '@dxos/live-object';
|
|
7
7
|
|
|
8
|
-
import { ThreadCapabilities } from './capabilities';
|
|
9
8
|
import { type ThreadState, type ViewStore } from '../types';
|
|
10
9
|
|
|
10
|
+
import { ThreadCapabilities } from './capabilities';
|
|
11
|
+
|
|
11
12
|
const initialViewState = { showResolvedThreads: false };
|
|
12
13
|
|
|
13
14
|
export default () => {
|
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import React, { type
|
|
5
|
+
import React, { type FC, type PropsWithChildren } from 'react';
|
|
6
6
|
|
|
7
7
|
import { useCapability } from '@dxos/app-framework';
|
|
8
8
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
9
9
|
|
|
10
|
-
import { Toolbar, type ToolbarProps } from './Toolbar';
|
|
11
10
|
import { ThreadCapabilities } from '../../capabilities';
|
|
12
11
|
import { useDebugMode } from '../../hooks';
|
|
13
12
|
import { AudioStream } from '../Media';
|
|
14
13
|
import { ParticipantGrid } from '../Participant';
|
|
15
14
|
|
|
15
|
+
import { Toolbar, type ToolbarProps } from './Toolbar';
|
|
16
|
+
|
|
16
17
|
//
|
|
17
18
|
// Root
|
|
18
19
|
//
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
7
|
import { useAppGraph, useCapability } from '@dxos/app-framework';
|
|
8
|
-
import {
|
|
8
|
+
import { useActions, useNode } from '@dxos/plugin-graph';
|
|
9
9
|
import { fullyQualifiedId } from '@dxos/react-client/echo';
|
|
10
10
|
import {
|
|
11
11
|
Icon,
|
|
12
12
|
IconButton,
|
|
13
13
|
type IconButtonProps,
|
|
14
|
-
type ThemedClassName,
|
|
15
14
|
Toolbar as NativeToolbar,
|
|
15
|
+
type ThemedClassName,
|
|
16
16
|
toLocalizedString,
|
|
17
17
|
useTranslation,
|
|
18
18
|
} from '@dxos/react-ui';
|
|
@@ -174,7 +174,7 @@ const defaultButtonProps: Partial<IconButtonProps> = {
|
|
|
174
174
|
const ToggleButton = ({ active, state }: ToolbarButtonProps) => (
|
|
175
175
|
<IconButton
|
|
176
176
|
{...defaultButtonProps}
|
|
177
|
-
classNames={[active ? state.on.classNames ?? 'bg-callActive' : state.off.classNames]}
|
|
177
|
+
classNames={[active ? (state.on.classNames ?? 'bg-callActive') : state.off.classNames]}
|
|
178
178
|
icon={active ? state.on.icon : state.off.icon}
|
|
179
179
|
label={active ? state.on.label : state.off.label}
|
|
180
180
|
onClick={active ? state.on.onClick : state.off.onClick}
|
|
@@ -7,7 +7,7 @@ import React, { useEffect, useMemo, useState } from 'react';
|
|
|
7
7
|
|
|
8
8
|
import { Panel } from '@dxos/devtools';
|
|
9
9
|
import { log } from '@dxos/log';
|
|
10
|
-
import { Input,
|
|
10
|
+
import { Input, type ThemedClassName, useTranslation } from '@dxos/react-ui';
|
|
11
11
|
import { Json } from '@dxos/react-ui-syntax-highlighter';
|
|
12
12
|
|
|
13
13
|
import { type GlobalState } from '../calls';
|
|
@@ -6,9 +6,10 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
import { useCapability } from '@dxos/app-framework';
|
|
8
8
|
|
|
9
|
-
import { ChannelContainer } from './ChannelContainer';
|
|
10
9
|
import { ThreadCapabilities } from '../capabilities';
|
|
11
10
|
|
|
11
|
+
import { ChannelContainer } from './ChannelContainer';
|
|
12
|
+
|
|
12
13
|
export const CallSidebar = () => {
|
|
13
14
|
const call = useCapability(ThreadCapabilities.CallManager);
|
|
14
15
|
return <ChannelContainer roomId={call.roomId} />;
|
|
@@ -12,13 +12,14 @@ import { withPluginManager } from '@dxos/app-framework/testing';
|
|
|
12
12
|
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
13
13
|
import { Query, useQuery, useSpace } from '@dxos/react-client/echo';
|
|
14
14
|
import { DataType } from '@dxos/schema';
|
|
15
|
-
import {
|
|
15
|
+
import { ColumnContainer, withLayout } from '@dxos/storybook-utils';
|
|
16
16
|
|
|
17
|
-
import { ChannelContainer, type ChannelContainerProps } from './ChannelContainer';
|
|
18
17
|
import { createThreadPlugins } from '../testing';
|
|
19
18
|
import { translations } from '../translations';
|
|
20
19
|
import { ChannelType, ThreadType } from '../types';
|
|
21
20
|
|
|
21
|
+
import { ChannelContainer, type ChannelContainerProps } from './ChannelContainer';
|
|
22
|
+
|
|
22
23
|
// TODO(wittjosiah): Channel doesn't render full height.
|
|
23
24
|
const Story = ({ roomId }: ChannelContainerProps) => {
|
|
24
25
|
const space = useSpace();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { Rx } from '@effect-rx/rx-react';
|
|
6
|
-
import React, { useCallback, useEffect, useMemo, useState
|
|
6
|
+
import React, { type ChangeEvent, useCallback, useEffect, useMemo, useState } from 'react';
|
|
7
7
|
|
|
8
8
|
import { useCapabilities, useCapability } from '@dxos/app-framework';
|
|
9
9
|
import { Context } from '@dxos/context';
|
|
@@ -12,18 +12,19 @@ import { log } from '@dxos/log';
|
|
|
12
12
|
import { useClient } from '@dxos/react-client';
|
|
13
13
|
import { fullyQualifiedId, getSpace } from '@dxos/react-client/echo';
|
|
14
14
|
import { useIdentity } from '@dxos/react-client/halo';
|
|
15
|
-
import {
|
|
16
|
-
import { ControlGroup,
|
|
17
|
-
import {
|
|
15
|
+
import { ElevationProvider, Input, type ThemedClassName, useTranslation } from '@dxos/react-ui';
|
|
16
|
+
import { ControlGroup, ControlGroupButton, ControlItemInput } from '@dxos/react-ui-form';
|
|
17
|
+
import { MenuProvider, ToolbarMenu, createMenuAction, createMenuItemGroup, useMenuActions } from '@dxos/react-ui-menu';
|
|
18
18
|
import { useSoundEffect } from '@dxos/react-ui-sfx';
|
|
19
19
|
import { StackItem } from '@dxos/react-ui-stack';
|
|
20
20
|
|
|
21
|
-
import { Call } from './Call';
|
|
22
|
-
import ChatContainer from './ChatContainer';
|
|
23
21
|
import { ThreadCapabilities } from '../capabilities';
|
|
24
22
|
import { meta } from '../meta';
|
|
25
23
|
import { type ChannelType } from '../types';
|
|
26
24
|
|
|
25
|
+
import { Call } from './Call';
|
|
26
|
+
import ChatContainer from './ChatContainer';
|
|
27
|
+
|
|
27
28
|
export type ChannelContainerProps = {
|
|
28
29
|
channel?: ChannelType;
|
|
29
30
|
roomId?: string;
|
|
@@ -7,7 +7,7 @@ import '@dxos-theme';
|
|
|
7
7
|
import { type Meta } from '@storybook/react-vite';
|
|
8
8
|
import React, { useEffect, useState } from 'react';
|
|
9
9
|
|
|
10
|
-
import { Capabilities, contributes, createSurface
|
|
10
|
+
import { Capabilities, IntentPlugin, contributes, createSurface } from '@dxos/app-framework';
|
|
11
11
|
import { withPluginManager } from '@dxos/app-framework/testing';
|
|
12
12
|
import { Obj, Ref } from '@dxos/echo';
|
|
13
13
|
import { faker } from '@dxos/random';
|
|
@@ -19,10 +19,11 @@ import { Thread } from '@dxos/react-ui-thread';
|
|
|
19
19
|
import { DataType } from '@dxos/schema';
|
|
20
20
|
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
21
21
|
|
|
22
|
-
import { ChatContainer } from './ChatContainer';
|
|
23
22
|
import { translations } from '../translations';
|
|
24
23
|
import { ChannelType, ThreadType } from '../types';
|
|
25
24
|
|
|
25
|
+
import { ChatContainer } from './ChatContainer';
|
|
26
|
+
|
|
26
27
|
faker.seed(1);
|
|
27
28
|
|
|
28
29
|
const Story = () => {
|