@dxos/plugin-thread 0.8.4-main.c1de068 → 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-AIGIWAUG.mjs → ChatContainer-PVT3DUZJ.mjs} +4 -4
- package/dist/lib/browser/{app-graph-builder-N7BE5TYW.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-GCLD5ESP.mjs → chunk-DW7JD64V.mjs} +1 -1
- package/dist/lib/browser/{chunk-GCLD5ESP.mjs.map → chunk-DW7JD64V.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-XLPJXUKO.mjs → chunk-FY4ZRD5X.mjs} +8 -8
- package/dist/lib/{node-esm/chunk-J4NSON5Q.mjs.map → browser/chunk-FY4ZRD5X.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-VUWC4IJM.mjs → chunk-J3JO5NWO.mjs} +26 -28
- 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-KWPRNHTK.mjs → chunk-ZJ7QBXK6.mjs} +225 -225
- package/dist/lib/browser/chunk-ZJ7QBXK6.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +7 -7
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-JFGLZ6VI.mjs → intent-resolver-DCY4P4OX.mjs} +8 -8
- package/dist/lib/browser/intent-resolver-DCY4P4OX.mjs.map +7 -0
- package/dist/lib/browser/{markdown-GEXBVJYN.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-X4UIVGTX.mjs → react-root-QXPALOUQ.mjs} +9 -9
- package/dist/lib/browser/{react-surface-YCYEFBPM.mjs → react-surface-PYAMIADB.mjs} +9 -9
- package/dist/lib/browser/react-surface-PYAMIADB.mjs.map +7 -0
- package/dist/lib/browser/{settings-E32MTL7A.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-DET6T5N2.mjs → ChannelContainer-B2ZGAE4P.mjs} +7 -7
- package/dist/lib/node-esm/{ChatContainer-IQUWU426.mjs → ChatContainer-2CT4PJ7I.mjs} +4 -4
- package/dist/lib/node-esm/{app-graph-builder-VCW76Z6V.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-J4NSON5Q.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-2MFNK53T.mjs → chunk-VNG6M2IY.mjs} +26 -28
- package/dist/lib/node-esm/chunk-VNG6M2IY.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-TDFHTCZZ.mjs → chunk-XVKWHTH4.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-TDFHTCZZ.mjs.map → chunk-XVKWHTH4.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-C3XFMUAY.mjs → chunk-YIDU3DXK.mjs} +225 -225
- package/dist/lib/node-esm/chunk-YIDU3DXK.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +7 -7
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-OXGNQ44Y.mjs → intent-resolver-QGTPU6QB.mjs} +8 -8
- package/dist/lib/node-esm/intent-resolver-QGTPU6QB.mjs.map +7 -0
- package/dist/lib/node-esm/{markdown-LIJZDK2J.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-M7J6PZVW.mjs → react-root-7ZFJYVUZ.mjs} +9 -9
- package/dist/lib/node-esm/{react-surface-IRSEKM42.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-SJ24YG7M.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/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/types/schema.d.ts +5 -3
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +6 -4
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +47 -45
- package/src/ThreadPlugin.tsx +2 -2
- 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 +4 -3
- 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 +2 -2
- 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 +4 -3
- 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 +4 -3
- package/src/components/Participant/ParticipantGrid.tsx +2 -1
- package/src/components/ResponsiveGrid/ResponsiveContainer.stories.tsx +4 -3
- package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +4 -3
- 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/extensions/threads.ts +6 -6
- package/src/hooks/useDebugMode.ts +1 -1
- package/src/testing/stories.ts +2 -2
- package/src/types/types.ts +2 -1
- package/src/typings.d.ts +8 -0
- package/dist/lib/browser/ChannelContainer-IY2UIRLF.mjs +0 -16
- package/dist/lib/browser/app-graph-builder-N7BE5TYW.mjs.map +0 -7
- package/dist/lib/browser/call-manager-NIPDYUVD.mjs.map +0 -7
- package/dist/lib/browser/chunk-4OYAYON2.mjs +0 -21
- package/dist/lib/browser/chunk-KWPRNHTK.mjs.map +0 -7
- package/dist/lib/browser/chunk-VUWC4IJM.mjs.map +0 -7
- package/dist/lib/browser/chunk-XLPJXUKO.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZE7KWN36.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-JFGLZ6VI.mjs.map +0 -7
- package/dist/lib/browser/markdown-GEXBVJYN.mjs.map +0 -7
- package/dist/lib/browser/react-surface-YCYEFBPM.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-VCW76Z6V.mjs.map +0 -7
- package/dist/lib/node-esm/call-manager-D6O5ZJJ4.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2MFNK53T.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-C3XFMUAY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GW37AAM4.mjs +0 -23
- package/dist/lib/node-esm/chunk-IHDNQLLR.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-OXGNQ44Y.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-LIJZDK2J.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-IRSEKM42.mjs.map +0 -7
- /package/dist/lib/browser/{ChannelContainer-IY2UIRLF.mjs.map → ChannelContainer-O2SFQJU7.mjs.map} +0 -0
- /package/dist/lib/browser/{ChatContainer-AIGIWAUG.mjs.map → ChatContainer-PVT3DUZJ.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-4OYAYON2.mjs.map → chunk-2CWJBXBH.mjs.map} +0 -0
- /package/dist/lib/browser/{react-root-X4UIVGTX.mjs.map → react-root-QXPALOUQ.mjs.map} +0 -0
- /package/dist/lib/browser/{settings-E32MTL7A.mjs.map → settings-AC6YSASL.mjs.map} +0 -0
- /package/dist/lib/node-esm/{ChannelContainer-DET6T5N2.mjs.map → ChannelContainer-B2ZGAE4P.mjs.map} +0 -0
- /package/dist/lib/node-esm/{ChatContainer-IQUWU426.mjs.map → ChatContainer-2CT4PJ7I.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-GW37AAM4.mjs.map → chunk-6CRHHOST.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-root-M7J6PZVW.mjs.map → react-root-7ZFJYVUZ.mjs.map} +0 -0
- /package/dist/lib/node-esm/{settings-SJ24YG7M.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/
|
|
50
|
-
"@dxos/
|
|
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/
|
|
61
|
-
"@dxos/
|
|
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/
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/react-ui-attention": "0.8.4-main.
|
|
72
|
-
"@dxos/react-ui-editor": "0.8.4-main.
|
|
73
|
-
"@dxos/react-ui-dnd": "0.8.4-main.
|
|
74
|
-
"@dxos/react-ui-form": "0.8.4-main.
|
|
75
|
-
"@dxos/react-ui-menu": "0.8.4-main.
|
|
76
|
-
"@dxos/react-ui-sfx": "0.8.4-main.
|
|
77
|
-
"@dxos/react-ui-stack": "0.8.4-main.
|
|
78
|
-
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.
|
|
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.17.
|
|
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-theme": "0.8.4-main.
|
|
96
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
97
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
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,7 +2,7 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { Capabilities, contributes, createIntent, defineModule, definePlugin
|
|
5
|
+
import { Capabilities, Events, contributes, createIntent, defineModule, definePlugin } from '@dxos/app-framework';
|
|
6
6
|
import { Ref } from '@dxos/echo';
|
|
7
7
|
import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
|
|
8
8
|
import { MarkdownEvents } from '@dxos/plugin-markdown';
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
ReactSurface,
|
|
21
21
|
ThreadState,
|
|
22
22
|
} from './capabilities';
|
|
23
|
-
import {
|
|
23
|
+
import { THREAD_ITEM, meta } from './meta';
|
|
24
24
|
import { translations } from './translations';
|
|
25
25
|
import { ChannelType, ThreadAction, ThreadType } from './types';
|
|
26
26
|
|
|
@@ -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`);
|
|
@@ -4,20 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
import { Effect } from 'effect';
|
|
6
6
|
|
|
7
|
-
import { Capabilities, contributes, createIntent, createResolver
|
|
7
|
+
import { Capabilities, type PluginContext, contributes, createIntent, createResolver } from '@dxos/app-framework';
|
|
8
8
|
import { sleep } from '@dxos/async';
|
|
9
9
|
import { Obj, Relation, Type } from '@dxos/echo';
|
|
10
10
|
import { invariant } from '@dxos/invariant';
|
|
11
11
|
import { ATTENDABLE_PATH_SEPARATOR, DeckAction } from '@dxos/plugin-deck/types';
|
|
12
12
|
import { ObservabilityAction } from '@dxos/plugin-observability/types';
|
|
13
13
|
import { CollectionAction, SpaceAction } from '@dxos/plugin-space/types';
|
|
14
|
-
import { fullyQualifiedId, getSpace
|
|
14
|
+
import { Ref, fullyQualifiedId, getSpace } from '@dxos/react-client/echo';
|
|
15
15
|
import { AnchoredTo, DataType } from '@dxos/schema';
|
|
16
16
|
|
|
17
|
-
import { ThreadCapabilities } from './capabilities';
|
|
18
17
|
import { THREAD_PLUGIN } from '../meta';
|
|
19
18
|
import { ChannelType, ThreadAction, ThreadType } from '../types';
|
|
20
19
|
|
|
20
|
+
import { ThreadCapabilities } from './capabilities';
|
|
21
|
+
|
|
21
22
|
export default (context: PluginContext) =>
|
|
22
23
|
contributes(Capabilities.IntentResolver, [
|
|
23
24
|
createResolver({
|
|
@@ -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';
|
|
@@ -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 = () => {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React, { useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
6
6
|
|
|
7
7
|
import { Obj, Ref } from '@dxos/echo';
|
|
8
|
-
import {
|
|
8
|
+
import { type Space, fullyQualifiedId, useMembers } from '@dxos/react-client/echo';
|
|
9
9
|
import { useIdentity } from '@dxos/react-client/halo';
|
|
10
10
|
import { Icon, ScrollArea, useThemeContext, useTranslation } from '@dxos/react-ui';
|
|
11
11
|
import { createBasicExtensions, createThemeExtensions, listener } from '@dxos/react-ui-editor';
|
|
@@ -21,13 +21,14 @@ import {
|
|
|
21
21
|
import { DataType } from '@dxos/schema';
|
|
22
22
|
import { isNonNullable } from '@dxos/util';
|
|
23
23
|
|
|
24
|
-
import { MessageContainer } from './MessageContainer';
|
|
25
|
-
import { command } from './command-extension';
|
|
26
24
|
import { useStatus } from '../hooks';
|
|
27
25
|
import { meta } from '../meta';
|
|
28
26
|
import { type ThreadType } from '../types';
|
|
29
27
|
import { getMessageMetadata } from '../util';
|
|
30
28
|
|
|
29
|
+
import { command } from './command-extension';
|
|
30
|
+
import { MessageContainer } from './MessageContainer';
|
|
31
|
+
|
|
31
32
|
export const ChatHeading = ({ attendableId }: { attendableId?: string }) => {
|
|
32
33
|
const { t } = useTranslation(meta.id);
|
|
33
34
|
return (
|
|
@@ -17,11 +17,12 @@ import { useIdentity } from '@dxos/react-client/halo';
|
|
|
17
17
|
import { AnchoredTo, DataType } from '@dxos/schema';
|
|
18
18
|
import { layoutCentered, render, withLayout, withTheme } from '@dxos/storybook-utils';
|
|
19
19
|
|
|
20
|
-
import { CommentsContainer } from './CommentsContainer';
|
|
21
|
-
import { createCommentThread } from './testing';
|
|
22
20
|
import { translations } from '../translations';
|
|
23
21
|
import { ThreadType } from '../types';
|
|
24
22
|
|
|
23
|
+
import { CommentsContainer } from './CommentsContainer';
|
|
24
|
+
import { createCommentThread } from './testing';
|
|
25
|
+
|
|
25
26
|
faker.seed(1);
|
|
26
27
|
|
|
27
28
|
const DefaultStory = () => {
|
|
@@ -75,7 +76,7 @@ const meta: Meta = {
|
|
|
75
76
|
IntentPlugin(),
|
|
76
77
|
ClientPlugin({
|
|
77
78
|
types: [DataType.Message, ThreadType, AnchoredTo],
|
|
78
|
-
onClientInitialized: async (
|
|
79
|
+
onClientInitialized: async ({ client }) => {
|
|
79
80
|
await client.halo.createIdentity();
|
|
80
81
|
},
|
|
81
82
|
}),
|
|
@@ -9,10 +9,11 @@ import { fullyQualifiedId } from '@dxos/react-client/echo';
|
|
|
9
9
|
import { Callout, Icon, Trans, useTranslation } from '@dxos/react-ui';
|
|
10
10
|
import { type AnchoredTo } from '@dxos/schema';
|
|
11
11
|
|
|
12
|
-
import { CommentsThreadContainer, type CommentsThreadContainerProps } from './CommentsThreadContainer';
|
|
13
12
|
import { meta } from '../meta';
|
|
14
13
|
import { type ThreadType } from '../types';
|
|
15
14
|
|
|
15
|
+
import { CommentsThreadContainer, type CommentsThreadContainerProps } from './CommentsThreadContainer';
|
|
16
|
+
|
|
16
17
|
export type CommentsContainerProps = Omit<CommentsThreadContainerProps, 'anchor' | 'current'> & {
|
|
17
18
|
anchors: AnchoredTo[];
|
|
18
19
|
currentId?: string;
|
|
@@ -14,13 +14,14 @@ import { MessageTextbox, type MessageTextboxProps, Thread, type ThreadRootProps
|
|
|
14
14
|
import { type AnchoredTo } from '@dxos/schema';
|
|
15
15
|
import { isNonNullable } from '@dxos/util';
|
|
16
16
|
|
|
17
|
-
import { MessageContainer } from './MessageContainer';
|
|
18
|
-
import { command } from './command-extension';
|
|
19
17
|
import { useStatus } from '../hooks';
|
|
20
18
|
import { meta } from '../meta';
|
|
21
19
|
import { type ThreadType } from '../types';
|
|
22
20
|
import { getMessageMetadata } from '../util';
|
|
23
21
|
|
|
22
|
+
import { command } from './command-extension';
|
|
23
|
+
import { MessageContainer } from './MessageContainer';
|
|
24
|
+
|
|
24
25
|
// TODO(burdon): Remove need for p-1.
|
|
25
26
|
export const commentControlClassNames = '!p-1 transition-opacity';
|
|
26
27
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React, { type FC, type PropsWithChildren, useEffect, useState } from 'react';
|
|
6
6
|
|
|
7
7
|
import { useCapability } from '@dxos/app-framework';
|
|
8
|
-
import {
|
|
8
|
+
import { type ThemedClassName, useTranslation } from '@dxos/react-ui';
|
|
9
9
|
import { mx } from '@dxos/react-ui-theme';
|
|
10
10
|
|
|
11
11
|
import { ThreadCapabilities } from '../../capabilities';
|