@dxos/plugin-thread 0.8.4-main.21d9917 → 0.8.4-main.2244d791bb
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/{app-graph-builder-SPAZN5XL.mjs → app-graph-builder-XFGLMIGK.mjs} +6 -5
- package/dist/lib/browser/app-graph-builder-XFGLMIGK.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-RWH6FTW7.mjs +17 -0
- package/dist/lib/browser/blueprint-definition-RWH6FTW7.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +3 -3
- package/dist/lib/browser/{call-manager-YBRTG6T3.mjs → call-manager-GDGIKJKN.mjs} +4 -4
- package/dist/lib/browser/call-manager-GDGIKJKN.mjs.map +7 -0
- package/dist/lib/browser/{chunk-TAWDJPMD.mjs → chunk-2FIHSX35.mjs} +2 -2
- package/dist/lib/browser/chunk-2FIHSX35.mjs.map +7 -0
- package/dist/lib/browser/{chunk-VZICDGBW.mjs → chunk-4EUEMHNI.mjs} +48 -44
- package/dist/lib/browser/chunk-4EUEMHNI.mjs.map +7 -0
- package/dist/lib/browser/{chunk-ZFLSTQSE.mjs → chunk-CBX65FMW.mjs} +25 -26
- package/dist/lib/browser/chunk-CBX65FMW.mjs.map +7 -0
- package/dist/lib/browser/{chunk-DLO2G3DM.mjs → chunk-JBB73URQ.mjs} +2 -2
- package/dist/lib/browser/chunk-JBB73URQ.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +54 -53
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{markdown-TSXOA3GV.mjs → markdown-YJCSOWXX.mjs} +7 -7
- package/dist/lib/browser/markdown-YJCSOWXX.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{operation-resolver-MDMEBYH2.mjs → operation-resolver-PROCP5L4.mjs} +9 -9
- package/dist/lib/browser/operation-resolver-PROCP5L4.mjs.map +7 -0
- package/dist/lib/browser/{react-root-Q7U5D3DA.mjs → react-root-FHK2SVPU.mjs} +6 -6
- package/dist/lib/browser/react-root-FHK2SVPU.mjs.map +7 -0
- package/dist/lib/browser/{react-surface-WDZQSDWH.mjs → react-surface-7MQA6VSH.mjs} +16 -15
- package/dist/lib/browser/react-surface-7MQA6VSH.mjs.map +7 -0
- package/dist/lib/browser/{repair-TDKAFAGH.mjs → repair-6OZ75AUU.mjs} +2 -2
- package/dist/lib/browser/{settings-OOKKVXV7.mjs → settings-TWKOTGSU.mjs} +5 -4
- package/dist/lib/browser/settings-TWKOTGSU.mjs.map +7 -0
- package/dist/lib/browser/{state-3LKZHDRI.mjs → state-SJR2GL5G.mjs} +2 -2
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node-esm/{app-graph-builder-3LJAPDUW.mjs → app-graph-builder-IN6VLJBO.mjs} +6 -5
- package/dist/lib/node-esm/app-graph-builder-IN6VLJBO.mjs.map +7 -0
- package/dist/lib/node-esm/{blueprint-definition-MZZXXL37.mjs → blueprint-definition-QZ3GXYAN.mjs} +6 -6
- package/dist/lib/node-esm/blueprint-definition-QZ3GXYAN.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +3 -3
- package/dist/lib/node-esm/{call-manager-MMCTNFOH.mjs → call-manager-36UAAQCJ.mjs} +4 -4
- package/dist/lib/node-esm/call-manager-36UAAQCJ.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-AQHPP6ZX.mjs → chunk-2UQ73JQJ.mjs} +25 -25
- package/dist/lib/node-esm/chunk-2UQ73JQJ.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-KRBZBJRI.mjs → chunk-G7PZNN3Z.mjs} +2 -2
- package/dist/lib/node-esm/chunk-G7PZNN3Z.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-3RD3IVVD.mjs → chunk-RBRWHRHE.mjs} +48 -44
- package/dist/lib/node-esm/chunk-RBRWHRHE.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-ARTUUKTM.mjs → chunk-WMWUXWAS.mjs} +2 -2
- package/dist/lib/node-esm/chunk-WMWUXWAS.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +54 -53
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{markdown-N2UJ3D6L.mjs → markdown-6LRP3PAP.mjs} +7 -7
- package/dist/lib/node-esm/markdown-6LRP3PAP.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{operation-resolver-7PHDJZA2.mjs → operation-resolver-LPEPV5BF.mjs} +9 -9
- package/dist/lib/node-esm/operation-resolver-LPEPV5BF.mjs.map +7 -0
- package/dist/lib/node-esm/{react-root-SZIGQRDZ.mjs → react-root-P5P4VGQJ.mjs} +6 -6
- package/dist/lib/node-esm/react-root-P5P4VGQJ.mjs.map +7 -0
- package/dist/lib/node-esm/{react-surface-24PNWUDX.mjs → react-surface-M7VI5XG2.mjs} +16 -15
- package/dist/lib/node-esm/react-surface-M7VI5XG2.mjs.map +7 -0
- package/dist/lib/node-esm/{repair-LHLLGXKF.mjs → repair-6777EPOM.mjs} +2 -2
- package/dist/lib/node-esm/{settings-LXZQXSPL.mjs → settings-5O254B3Z.mjs} +5 -4
- package/dist/lib/node-esm/settings-5O254B3Z.mjs.map +7 -0
- package/dist/lib/node-esm/{state-YYAK5ENM.mjs → state-5R3TZJQE.mjs} +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/blueprints/index.d.ts +1 -1
- package/dist/types/src/blueprints/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/thread-blueprint.d.ts +3 -20
- package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +3 -6
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +1 -1
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/call-manager/call-manager.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown/markdown.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +2 -2
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings/index.d.ts +1 -1
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings/settings.d.ts +3 -2
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -1
- package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/ChannelContainer.d.ts +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/ThreadCompanion.d.ts.map +1 -1
- package/dist/types/src/components/ThreadSettings.d.ts.map +1 -1
- package/dist/types/src/functions/create-proposals.d.ts +8 -1
- package/dist/types/src/functions/create-proposals.d.ts.map +1 -1
- package/dist/types/src/functions/index.d.ts +13 -1
- package/dist/types/src/functions/index.d.ts.map +1 -1
- package/dist/types/src/testing/stories.d.ts.map +1 -1
- package/dist/types/src/types/Channel.d.ts +422 -422
- package/dist/types/src/types/Channel.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +1674 -1674
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +63 -61
- package/src/ThreadPlugin.tsx +29 -28
- package/src/blueprints/index.ts +1 -1
- package/src/blueprints/thread-blueprint.ts +14 -6
- package/src/calls-service.stories.tsx +1 -1
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +4 -3
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +6 -12
- package/src/capabilities/call-manager/call-manager.ts +2 -2
- package/src/capabilities/markdown/markdown.ts +5 -5
- package/src/capabilities/operation-resolver/operation-resolver.ts +7 -7
- package/src/capabilities/react-root/react-root.tsx +2 -2
- package/src/capabilities/react-surface/react-surface.tsx +13 -12
- package/src/capabilities/settings/settings.ts +3 -2
- package/src/components/Call/Call.tsx +1 -1
- package/src/components/Call/Toolbar.tsx +2 -1
- package/src/components/CallSidebar.tsx +1 -1
- package/src/components/ChannelContainer.stories.tsx +4 -5
- package/src/components/ChannelContainer.tsx +9 -8
- package/src/components/Chat.stories.tsx +5 -4
- package/src/components/ChatContainer.tsx +15 -16
- package/src/components/Comments.stories.tsx +1 -1
- package/src/components/Lobby/Lobby.tsx +1 -1
- package/src/components/Media/VideoObject.stories.tsx +1 -1
- package/src/components/MessageContainer.tsx +2 -2
- package/src/components/Participant/Participant.tsx +1 -1
- package/src/components/ResponsiveGrid/ResponsiveContainer.stories.tsx +1 -1
- package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +1 -1
- package/src/components/ThreadCompanion.tsx +8 -7
- package/src/components/ThreadSettings.tsx +3 -2
- package/src/functions/create-proposals.ts +9 -9
- package/src/functions/index.ts +5 -1
- package/src/hooks/analytics.ts +1 -1
- package/src/testing/stories.ts +2 -1
- package/src/types/Channel.ts +1 -1
- package/dist/lib/browser/app-graph-builder-SPAZN5XL.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-UQ63QKQG.mjs +0 -17
- package/dist/lib/browser/blueprint-definition-UQ63QKQG.mjs.map +0 -7
- package/dist/lib/browser/call-manager-YBRTG6T3.mjs.map +0 -7
- package/dist/lib/browser/chunk-DLO2G3DM.mjs.map +0 -7
- package/dist/lib/browser/chunk-TAWDJPMD.mjs.map +0 -7
- package/dist/lib/browser/chunk-VZICDGBW.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZFLSTQSE.mjs.map +0 -7
- package/dist/lib/browser/markdown-TSXOA3GV.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-MDMEBYH2.mjs.map +0 -7
- package/dist/lib/browser/react-root-Q7U5D3DA.mjs.map +0 -7
- package/dist/lib/browser/react-surface-WDZQSDWH.mjs.map +0 -7
- package/dist/lib/browser/settings-OOKKVXV7.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-3LJAPDUW.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-MZZXXL37.mjs.map +0 -7
- package/dist/lib/node-esm/call-manager-MMCTNFOH.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3RD3IVVD.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-AQHPP6ZX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ARTUUKTM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KRBZBJRI.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-N2UJ3D6L.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-7PHDJZA2.mjs.map +0 -7
- package/dist/lib/node-esm/react-root-SZIGQRDZ.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-24PNWUDX.mjs.map +0 -7
- package/dist/lib/node-esm/settings-LXZQXSPL.mjs.map +0 -7
- /package/dist/lib/browser/{repair-TDKAFAGH.mjs.map → repair-6OZ75AUU.mjs.map} +0 -0
- /package/dist/lib/browser/{state-3LKZHDRI.mjs.map → state-SJR2GL5G.mjs.map} +0 -0
- /package/dist/lib/node-esm/{repair-LHLLGXKF.mjs.map → repair-6777EPOM.mjs.map} +0 -0
- /package/dist/lib/node-esm/{state-YYAK5ENM.mjs.map → state-5R3TZJQE.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.2244d791bb",
|
|
4
4
|
"description": "DXOS Threads Surface plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"@codemirror/language": "^6.11.3",
|
|
52
52
|
"@codemirror/state": "^6.5.2",
|
|
53
53
|
"@codemirror/view": "^6.38.4",
|
|
54
|
-
"@effect-atom/atom": "^0.
|
|
55
|
-
"@effect-atom/atom-react": "^0.
|
|
56
|
-
"@effect/ai": "0.
|
|
57
|
-
"@effect/experimental": "0.
|
|
54
|
+
"@effect-atom/atom": "^0.5.1",
|
|
55
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
56
|
+
"@effect/ai": "0.33.2",
|
|
57
|
+
"@effect/experimental": "0.58.0",
|
|
58
58
|
"@peermetrics/webrtc-stats": "5.7.1",
|
|
59
59
|
"date-fns": "^3.3.1",
|
|
60
60
|
"extendable-media-recorder": "^9.2.19",
|
|
@@ -62,73 +62,75 @@
|
|
|
62
62
|
"md5-hex": "5.0.0",
|
|
63
63
|
"react-resize-detector": "^11.0.1",
|
|
64
64
|
"wavefile": "^11.0.0",
|
|
65
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/assistant": "0.8.4-main.
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/display-name": "0.8.4-main.
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/echo
|
|
76
|
-
"@dxos/
|
|
77
|
-
"@dxos/effect": "0.8.4-main.
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/invariant": "0.8.4-main.
|
|
81
|
-
"@dxos/
|
|
82
|
-
"@dxos/
|
|
83
|
-
"@dxos/plugin-
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/plugin-
|
|
87
|
-
"@dxos/plugin-
|
|
88
|
-
"@dxos/plugin-
|
|
89
|
-
"@dxos/plugin-
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/
|
|
92
|
-
"@dxos/
|
|
93
|
-
"@dxos/react-client": "0.8.4-main.
|
|
94
|
-
"@dxos/react-ui-
|
|
95
|
-
"@dxos/react-ui-
|
|
96
|
-
"@dxos/react-ui-
|
|
97
|
-
"@dxos/react-ui-
|
|
98
|
-
"@dxos/react-ui-menu": "0.8.4-main.
|
|
99
|
-
"@dxos/react-ui-
|
|
100
|
-
"@dxos/react-ui-
|
|
101
|
-
"@dxos/react-ui-
|
|
102
|
-
"@dxos/react-ui-tabs": "0.8.4-main.
|
|
103
|
-
"@dxos/
|
|
104
|
-
"@dxos/
|
|
105
|
-
"@dxos/
|
|
106
|
-
"@dxos/
|
|
65
|
+
"@dxos/app-framework": "0.8.4-main.2244d791bb",
|
|
66
|
+
"@dxos/app-toolkit": "0.8.4-main.2244d791bb",
|
|
67
|
+
"@dxos/assistant": "0.8.4-main.2244d791bb",
|
|
68
|
+
"@dxos/async": "0.8.4-main.2244d791bb",
|
|
69
|
+
"@dxos/codec-protobuf": "0.8.4-main.2244d791bb",
|
|
70
|
+
"@dxos/blueprints": "0.8.4-main.2244d791bb",
|
|
71
|
+
"@dxos/context": "0.8.4-main.2244d791bb",
|
|
72
|
+
"@dxos/debug": "0.8.4-main.2244d791bb",
|
|
73
|
+
"@dxos/display-name": "0.8.4-main.2244d791bb",
|
|
74
|
+
"@dxos/devtools": "0.8.4-main.2244d791bb",
|
|
75
|
+
"@dxos/echo": "0.8.4-main.2244d791bb",
|
|
76
|
+
"@dxos/echo-db": "0.8.4-main.2244d791bb",
|
|
77
|
+
"@dxos/effect": "0.8.4-main.2244d791bb",
|
|
78
|
+
"@dxos/echo-react": "0.8.4-main.2244d791bb",
|
|
79
|
+
"@dxos/functions": "0.8.4-main.2244d791bb",
|
|
80
|
+
"@dxos/invariant": "0.8.4-main.2244d791bb",
|
|
81
|
+
"@dxos/log": "0.8.4-main.2244d791bb",
|
|
82
|
+
"@dxos/keys": "0.8.4-main.2244d791bb",
|
|
83
|
+
"@dxos/plugin-attention": "0.8.4-main.2244d791bb",
|
|
84
|
+
"@dxos/operation": "0.8.4-main.2244d791bb",
|
|
85
|
+
"@dxos/plugin-client": "0.8.4-main.2244d791bb",
|
|
86
|
+
"@dxos/plugin-deck": "0.8.4-main.2244d791bb",
|
|
87
|
+
"@dxos/plugin-graph": "0.8.4-main.2244d791bb",
|
|
88
|
+
"@dxos/plugin-markdown": "0.8.4-main.2244d791bb",
|
|
89
|
+
"@dxos/plugin-observability": "0.8.4-main.2244d791bb",
|
|
90
|
+
"@dxos/plugin-settings": "0.8.4-main.2244d791bb",
|
|
91
|
+
"@dxos/plugin-space": "0.8.4-main.2244d791bb",
|
|
92
|
+
"@dxos/protocols": "0.8.4-main.2244d791bb",
|
|
93
|
+
"@dxos/react-client": "0.8.4-main.2244d791bb",
|
|
94
|
+
"@dxos/react-ui-attention": "0.8.4-main.2244d791bb",
|
|
95
|
+
"@dxos/react-ui-dnd": "0.8.4-main.2244d791bb",
|
|
96
|
+
"@dxos/react-ui-editor": "0.8.4-main.2244d791bb",
|
|
97
|
+
"@dxos/react-ui-form": "0.8.4-main.2244d791bb",
|
|
98
|
+
"@dxos/react-ui-menu": "0.8.4-main.2244d791bb",
|
|
99
|
+
"@dxos/react-ui-sfx": "0.8.4-main.2244d791bb",
|
|
100
|
+
"@dxos/react-ui-stack": "0.8.4-main.2244d791bb",
|
|
101
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.2244d791bb",
|
|
102
|
+
"@dxos/react-ui-tabs": "0.8.4-main.2244d791bb",
|
|
103
|
+
"@dxos/react-ui-thread": "0.8.4-main.2244d791bb",
|
|
104
|
+
"@dxos/types": "0.8.4-main.2244d791bb",
|
|
105
|
+
"@dxos/schema": "0.8.4-main.2244d791bb",
|
|
106
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.2244d791bb",
|
|
107
|
+
"@dxos/ui-editor": "0.8.4-main.2244d791bb",
|
|
108
|
+
"@dxos/util": "0.8.4-main.2244d791bb"
|
|
107
109
|
},
|
|
108
110
|
"devDependencies": {
|
|
109
|
-
"@effect-atom/atom-react": "^0.
|
|
110
|
-
"@effect/platform": "0.
|
|
111
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
112
|
+
"@effect/platform": "0.94.4",
|
|
111
113
|
"@types/react": "~19.2.7",
|
|
112
114
|
"@types/react-dom": "~19.2.3",
|
|
113
|
-
"effect": "3.19.
|
|
115
|
+
"effect": "3.19.16",
|
|
114
116
|
"react": "~19.2.3",
|
|
115
117
|
"react-dom": "~19.2.3",
|
|
116
118
|
"vite": "7.1.9",
|
|
117
|
-
"@dxos/plugin-theme": "0.8.4-main.
|
|
118
|
-
"@dxos/plugin-testing": "0.8.4-main.
|
|
119
|
-
"@dxos/random": "0.8.4-main.
|
|
120
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
121
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
122
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
119
|
+
"@dxos/plugin-theme": "0.8.4-main.2244d791bb",
|
|
120
|
+
"@dxos/plugin-testing": "0.8.4-main.2244d791bb",
|
|
121
|
+
"@dxos/random": "0.8.4-main.2244d791bb",
|
|
122
|
+
"@dxos/react-ui": "0.8.4-main.2244d791bb",
|
|
123
|
+
"@dxos/storybook-utils": "0.8.4-main.2244d791bb",
|
|
124
|
+
"@dxos/ui-theme": "0.8.4-main.2244d791bb"
|
|
123
125
|
},
|
|
124
126
|
"peerDependencies": {
|
|
125
|
-
"@effect-atom/atom-react": "^0.
|
|
126
|
-
"@effect/platform": "0.
|
|
127
|
-
"effect": "3.19.
|
|
127
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
128
|
+
"@effect/platform": "0.94.4",
|
|
129
|
+
"effect": "3.19.16",
|
|
128
130
|
"react": "~19.2.3",
|
|
129
131
|
"react-dom": "~19.2.3",
|
|
130
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
131
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
132
|
+
"@dxos/react-ui": "0.8.4-main.2244d791bb",
|
|
133
|
+
"@dxos/ui-theme": "0.8.4-main.2244d791bb"
|
|
132
134
|
},
|
|
133
135
|
"publishConfig": {
|
|
134
136
|
"access": "public"
|
package/src/ThreadPlugin.tsx
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import { Capability,
|
|
7
|
+
import { Capability, Plugin } from '@dxos/app-framework';
|
|
8
|
+
import { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';
|
|
8
9
|
import { Ref, Type } from '@dxos/echo';
|
|
9
10
|
import { Operation } from '@dxos/operation';
|
|
10
11
|
import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
|
|
@@ -35,27 +36,9 @@ import { Channel, ThreadOperation } from './types';
|
|
|
35
36
|
// TODO(wittjosiah): Rename to ChatPlugin.
|
|
36
37
|
// TODO(wittjosiah): Enabling comments should likely be factored out of this plugin but depend on it's capabilities.
|
|
37
38
|
export const ThreadPlugin = Plugin.define(meta).pipe(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
activate: CallManager,
|
|
42
|
-
}),
|
|
43
|
-
// TODO(wittjosiah): Currently not used but leaving because there will likely be settings for threads again.
|
|
44
|
-
// Plugin.addModule({
|
|
45
|
-
// id: 'settings',
|
|
46
|
-
// activatesOn: Events.SetupSettings,
|
|
47
|
-
// activate: ThreadSettings,
|
|
48
|
-
// }),
|
|
49
|
-
Plugin.addModule({
|
|
50
|
-
id: 'state',
|
|
51
|
-
// TODO(wittjosiah): Does not integrate with settings store.
|
|
52
|
-
// Should this be a different event?
|
|
53
|
-
// Should settings store be renamed to be more generic?
|
|
54
|
-
activatesOn: Common.ActivationEvent.SetupSettings,
|
|
55
|
-
activate: ThreadState,
|
|
56
|
-
}),
|
|
57
|
-
Common.Plugin.addTranslationsModule({ translations: [...translations, ...threadTranslations] }),
|
|
58
|
-
Common.Plugin.addMetadataModule({
|
|
39
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
40
|
+
AppPlugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
|
|
41
|
+
AppPlugin.addMetadataModule({
|
|
59
42
|
metadata: [
|
|
60
43
|
{
|
|
61
44
|
id: Type.getTypename(Channel.Channel),
|
|
@@ -96,9 +79,32 @@ export const ThreadPlugin = Plugin.define(meta).pipe(
|
|
|
96
79
|
},
|
|
97
80
|
],
|
|
98
81
|
}),
|
|
99
|
-
|
|
82
|
+
AppPlugin.addOperationResolverModule({ activate: OperationResolver }),
|
|
83
|
+
AppPlugin.addReactRootModule({ activate: ReactRoot }),
|
|
84
|
+
AppPlugin.addSchemaModule({
|
|
100
85
|
schema: [AnchoredTo.AnchoredTo, Channel.Channel, Message.Message, Message.MessageV1, Thread.Thread],
|
|
101
86
|
}),
|
|
87
|
+
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
88
|
+
AppPlugin.addTranslationsModule({ translations: [...translations, ...threadTranslations] }),
|
|
89
|
+
Plugin.addModule({
|
|
90
|
+
id: 'call-manager',
|
|
91
|
+
activatesOn: ClientEvents.ClientReady,
|
|
92
|
+
activate: CallManager,
|
|
93
|
+
}),
|
|
94
|
+
// TODO(wittjosiah): Currently not used but leaving because there will likely be settings for threads again.
|
|
95
|
+
// Plugin.addModule({
|
|
96
|
+
// id: 'settings',
|
|
97
|
+
// activatesOn: Events.SetupSettings,
|
|
98
|
+
// activate: ThreadSettings,
|
|
99
|
+
// }),
|
|
100
|
+
Plugin.addModule({
|
|
101
|
+
id: 'state',
|
|
102
|
+
// TODO(wittjosiah): Does not integrate with settings store.
|
|
103
|
+
// Should this be a different event?
|
|
104
|
+
// Should settings store be renamed to be more generic?
|
|
105
|
+
activatesOn: AppActivationEvents.SetupSettings,
|
|
106
|
+
activate: ThreadState,
|
|
107
|
+
}),
|
|
102
108
|
Plugin.addModule({
|
|
103
109
|
id: 'migration',
|
|
104
110
|
activatesOn: ClientEvents.SetupMigration,
|
|
@@ -124,10 +130,5 @@ export const ThreadPlugin = Plugin.define(meta).pipe(
|
|
|
124
130
|
activatesOn: MarkdownEvents.SetupExtensions,
|
|
125
131
|
activate: Markdown,
|
|
126
132
|
}),
|
|
127
|
-
Common.Plugin.addReactRootModule({ activate: ReactRoot }),
|
|
128
|
-
Common.Plugin.addSurfaceModule({ activate: ReactSurface }),
|
|
129
|
-
Common.Plugin.addOperationResolverModule({ activate: OperationResolver }),
|
|
130
|
-
Common.Plugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
131
|
-
Common.Plugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
|
|
132
133
|
Plugin.make,
|
|
133
134
|
);
|
package/src/blueprints/index.ts
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import { type AppCapabilities } from '@dxos/app-toolkit';
|
|
5
6
|
import { Blueprint, Template } from '@dxos/blueprints';
|
|
6
|
-
import { type FunctionDefinition } from '@dxos/functions';
|
|
7
7
|
import { trim } from '@dxos/util';
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { ThreadFunctions } from '../functions';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
const BLUEPRINT_KEY = 'dxos.org/blueprint/thread';
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
const functions = Object.values(ThreadFunctions);
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
const make = () =>
|
|
16
16
|
Blueprint.make({
|
|
17
|
-
key:
|
|
17
|
+
key: BLUEPRINT_KEY,
|
|
18
18
|
name: 'Thread',
|
|
19
19
|
tools: Blueprint.toolDefinitions({ functions }),
|
|
20
20
|
instructions: Template.make({
|
|
@@ -30,3 +30,11 @@ export const make = () =>
|
|
|
30
30
|
`,
|
|
31
31
|
}),
|
|
32
32
|
});
|
|
33
|
+
|
|
34
|
+
const blueprint: AppCapabilities.BlueprintDefinition = {
|
|
35
|
+
key: BLUEPRINT_KEY,
|
|
36
|
+
functions,
|
|
37
|
+
make,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default blueprint;
|
|
@@ -6,7 +6,8 @@ import { Atom } from '@effect-atom/atom-react';
|
|
|
6
6
|
import * as Effect from 'effect/Effect';
|
|
7
7
|
import * as Option from 'effect/Option';
|
|
8
8
|
|
|
9
|
-
import { Capability
|
|
9
|
+
import { Capability } from '@dxos/app-framework';
|
|
10
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
10
11
|
import { Obj } from '@dxos/echo';
|
|
11
12
|
import { Operation } from '@dxos/operation';
|
|
12
13
|
import { AttentionCapabilities } from '@dxos/plugin-attention';
|
|
@@ -59,7 +60,7 @@ export default Capability.makeModule(
|
|
|
59
60
|
const capabilities = yield* Capability.Service;
|
|
60
61
|
|
|
61
62
|
const resolve = (typename: string) =>
|
|
62
|
-
capabilities.getAll(
|
|
63
|
+
capabilities.getAll(AppCapabilities.Metadata).find(({ id }: { id: string }) => id === typename)?.metadata ?? {};
|
|
63
64
|
|
|
64
65
|
const extensions = yield* Effect.all([
|
|
65
66
|
GraphBuilder.createExtension({
|
|
@@ -196,6 +197,6 @@ export default Capability.makeModule(
|
|
|
196
197
|
}),
|
|
197
198
|
]);
|
|
198
199
|
|
|
199
|
-
return Capability.contributes(
|
|
200
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
200
201
|
}),
|
|
201
202
|
);
|
|
@@ -4,20 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import { Capability
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
8
9
|
|
|
9
10
|
import { ThreadBlueprint } from '../../blueprints';
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Capability.Capability<typeof
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
const blueprintDefinition = Capability.makeModule<[], BlueprintCapabilities>(() =>
|
|
17
|
-
Effect.succeed([
|
|
18
|
-
Capability.contributes(Common.Capability.Functions, ThreadBlueprint.functions),
|
|
19
|
-
Capability.contributes(Common.Capability.BlueprintDefinition, ThreadBlueprint.make()),
|
|
20
|
-
]),
|
|
21
|
-
);
|
|
12
|
+
const blueprintDefinition = Capability.makeModule<
|
|
13
|
+
[],
|
|
14
|
+
Capability.Capability<typeof AppCapabilities.BlueprintDefinition>[]
|
|
15
|
+
>(() => Effect.succeed([Capability.contributes(AppCapabilities.BlueprintDefinition, ThreadBlueprint)]));
|
|
22
16
|
|
|
23
17
|
export default blueprintDefinition;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
8
|
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
9
9
|
|
|
10
10
|
import { CallManager } from '../../calls';
|
|
@@ -13,7 +13,7 @@ import { ThreadCapabilities } from '../../types';
|
|
|
13
13
|
export default Capability.makeModule(
|
|
14
14
|
Effect.fnUntraced(function* () {
|
|
15
15
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
16
|
-
const registry = yield* Capability.get(
|
|
16
|
+
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|
|
17
17
|
const callManager = new CallManager(client, registry);
|
|
18
18
|
yield* Effect.tryPromise(() => callManager.open());
|
|
19
19
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { EditorView } from '@codemirror/view';
|
|
6
6
|
import * as Effect from 'effect/Effect';
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
9
|
import { Obj } from '@dxos/echo';
|
|
10
10
|
import { ATTENDABLE_PATH_SEPARATOR, DeckOperation } from '@dxos/plugin-deck/types';
|
|
11
11
|
import { MarkdownCapabilities } from '@dxos/plugin-markdown';
|
|
@@ -21,14 +21,14 @@ export default Capability.makeModule(
|
|
|
21
21
|
|
|
22
22
|
return Capability.contributes(MarkdownCapabilities.Extensions, [
|
|
23
23
|
({ document: doc }) => {
|
|
24
|
-
const { invokePromise } = capabilities.get(
|
|
25
|
-
const registry = capabilities.get(
|
|
24
|
+
const { invokePromise } = capabilities.get(Capabilities.OperationInvoker);
|
|
25
|
+
const registry = capabilities.get(Capabilities.AtomRegistry);
|
|
26
26
|
const stateAtom = capabilities.get(ThreadCapabilities.State);
|
|
27
27
|
return threads({ registry, stateAtom }, doc, invokePromise);
|
|
28
28
|
},
|
|
29
29
|
({ document: doc }) => {
|
|
30
30
|
if (!doc) return [];
|
|
31
|
-
const registry = capabilities.get(
|
|
31
|
+
const registry = capabilities.get(Capabilities.AtomRegistry);
|
|
32
32
|
const stateAtom = capabilities.get(ThreadCapabilities.State);
|
|
33
33
|
|
|
34
34
|
return EditorView.updateListener.of((update) => {
|
|
@@ -45,7 +45,7 @@ export default Capability.makeModule(
|
|
|
45
45
|
},
|
|
46
46
|
({ document: doc }) => {
|
|
47
47
|
if (!doc) return [];
|
|
48
|
-
const { invokePromise } = capabilities.get(
|
|
48
|
+
const { invokePromise } = capabilities.get(Capabilities.OperationInvoker);
|
|
49
49
|
const id = Obj.getDXN(doc).toString();
|
|
50
50
|
|
|
51
51
|
return EditorView.updateListener.of((update) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { Capabilities, Capability, UndoMapping } 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';
|
|
@@ -23,7 +23,7 @@ import { Channel, ThreadCapabilities, ThreadOperation } from '../../types';
|
|
|
23
23
|
export default Capability.makeModule(
|
|
24
24
|
Effect.fnUntraced(function* () {
|
|
25
25
|
return [
|
|
26
|
-
Capability.contributes(
|
|
26
|
+
Capability.contributes(Capabilities.UndoMapping, [
|
|
27
27
|
UndoMapping.make({
|
|
28
28
|
operation: ThreadOperation.Delete,
|
|
29
29
|
inverse: ThreadOperation.Restore,
|
|
@@ -56,7 +56,7 @@ export default Capability.makeModule(
|
|
|
56
56
|
message: ['message deleted label', { ns: meta.id }],
|
|
57
57
|
}),
|
|
58
58
|
]),
|
|
59
|
-
Capability.contributes(
|
|
59
|
+
Capability.contributes(Capabilities.OperationResolver, [
|
|
60
60
|
//
|
|
61
61
|
// CreateChannel
|
|
62
62
|
//
|
|
@@ -90,7 +90,7 @@ export default Capability.makeModule(
|
|
|
90
90
|
OperationResolver.make({
|
|
91
91
|
operation: ThreadOperation.Select,
|
|
92
92
|
handler: Effect.fnUntraced(function* (input) {
|
|
93
|
-
const registry = yield* Capability.get(
|
|
93
|
+
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|
|
94
94
|
const stateAtom = yield* Capability.get(ThreadCapabilities.State);
|
|
95
95
|
const current = registry.get(stateAtom);
|
|
96
96
|
registry.set(stateAtom, { ...current, current: input.current });
|
|
@@ -155,7 +155,7 @@ export default Capability.makeModule(
|
|
|
155
155
|
OperationResolver.make({
|
|
156
156
|
operation: ThreadOperation.Create,
|
|
157
157
|
handler: Effect.fnUntraced(function* ({ name, anchor: _anchor, subject }) {
|
|
158
|
-
const registry = yield* Capability.get(
|
|
158
|
+
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|
|
159
159
|
const stateAtom = yield* Capability.get(ThreadCapabilities.State);
|
|
160
160
|
const subjectId = Obj.getDXN(subject).toString();
|
|
161
161
|
const thread = Thread.make({ name });
|
|
@@ -190,7 +190,7 @@ export default Capability.makeModule(
|
|
|
190
190
|
OperationResolver.make({
|
|
191
191
|
operation: ThreadOperation.Delete,
|
|
192
192
|
handler: Effect.fnUntraced(function* ({ subject, anchor, thread: _thread }) {
|
|
193
|
-
const registry = yield* Capability.get(
|
|
193
|
+
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|
|
194
194
|
const stateAtom = yield* Capability.get(ThreadCapabilities.State);
|
|
195
195
|
const thread = _thread ?? (Relation.getSource(anchor) as Thread.Thread);
|
|
196
196
|
const subjectId = Obj.getDXN(subject).toString();
|
|
@@ -242,7 +242,7 @@ export default Capability.makeModule(
|
|
|
242
242
|
OperationResolver.make({
|
|
243
243
|
operation: ThreadOperation.AddMessage,
|
|
244
244
|
handler: Effect.fnUntraced(function* ({ anchor, subject, sender, text }) {
|
|
245
|
-
const registry = yield* Capability.get(
|
|
245
|
+
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|
|
246
246
|
const stateAtom = yield* Capability.get(ThreadCapabilities.State);
|
|
247
247
|
const thread = Relation.getSource(anchor) as Thread.Thread;
|
|
248
248
|
const subjectId = Obj.getDXN(subject).toString();
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
9
|
|
|
10
10
|
import { Call } from '../../components';
|
|
11
11
|
import { meta } from '../../meta';
|
|
12
12
|
|
|
13
13
|
export default Capability.makeModule(() =>
|
|
14
14
|
Effect.sync(() => {
|
|
15
|
-
return Capability.contributes(
|
|
15
|
+
return Capability.contributes(Capabilities.ReactRoot, {
|
|
16
16
|
id: meta.id,
|
|
17
17
|
root: () => <Call.Audio />,
|
|
18
18
|
});
|
|
@@ -6,8 +6,9 @@ import { useAtomValue } from '@effect-atom/atom-react';
|
|
|
6
6
|
import * as Effect from 'effect/Effect';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
import { useCapability, useSettingsState } from '@dxos/app-framework/
|
|
9
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
10
|
+
import { Surface, useCapability, useSettingsState } from '@dxos/app-framework/ui';
|
|
11
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
11
12
|
import { Obj, type Ref } from '@dxos/echo';
|
|
12
13
|
import { getSpace } from '@dxos/react-client/echo';
|
|
13
14
|
import { Thread } from '@dxos/types';
|
|
@@ -25,14 +26,14 @@ import { Channel, ThreadCapabilities, type ThreadSettingsProps } from '../../typ
|
|
|
25
26
|
|
|
26
27
|
export default Capability.makeModule(() =>
|
|
27
28
|
Effect.succeed(
|
|
28
|
-
Capability.contributes(
|
|
29
|
-
|
|
29
|
+
Capability.contributes(Capabilities.ReactSurface, [
|
|
30
|
+
Surface.create({
|
|
30
31
|
id: `${meta.id}/channel`,
|
|
31
32
|
role: 'article',
|
|
32
33
|
filter: (data): data is { subject: Channel.Channel } => Obj.instanceOf(Channel.Channel, data.subject),
|
|
33
34
|
component: ({ data: { subject }, role }) => <ChannelContainer role={role} subject={subject} />,
|
|
34
35
|
}),
|
|
35
|
-
|
|
36
|
+
Surface.create({
|
|
36
37
|
id: `${meta.id}/chat-companion`,
|
|
37
38
|
role: 'article',
|
|
38
39
|
filter: (data): data is { companionTo: Channel.Channel; subject: 'chat' } =>
|
|
@@ -47,7 +48,7 @@ export default Capability.makeModule(() =>
|
|
|
47
48
|
return <ChatContainer thread={thread} space={space} />;
|
|
48
49
|
},
|
|
49
50
|
}),
|
|
50
|
-
|
|
51
|
+
Surface.create({
|
|
51
52
|
id: `${meta.id}/thread`,
|
|
52
53
|
role: 'article',
|
|
53
54
|
filter: (data): data is { subject: Thread.Thread } => Obj.instanceOf(Thread.Thread, data.subject),
|
|
@@ -60,7 +61,7 @@ export default Capability.makeModule(() =>
|
|
|
60
61
|
return <ChatContainer thread={subject} space={space} />;
|
|
61
62
|
},
|
|
62
63
|
}),
|
|
63
|
-
|
|
64
|
+
Surface.create({
|
|
64
65
|
id: `${meta.id}/comments`,
|
|
65
66
|
role: 'article',
|
|
66
67
|
filter: (data): data is { companionTo: { threads: Ref.Ref<Thread.Thread>[] } } =>
|
|
@@ -68,22 +69,22 @@ export default Capability.makeModule(() =>
|
|
|
68
69
|
// TODO(wittjosiah): This isn't scrolling properly in a plank.
|
|
69
70
|
component: ({ data }) => <ThreadCompanion subject={data.companionTo} />,
|
|
70
71
|
}),
|
|
71
|
-
|
|
72
|
+
Surface.create({
|
|
72
73
|
id: `${meta.id}/plugin-settings`,
|
|
73
74
|
role: 'article',
|
|
74
|
-
filter: (data): data is { subject:
|
|
75
|
-
|
|
75
|
+
filter: (data): data is { subject: AppCapabilities.Settings } =>
|
|
76
|
+
AppCapabilities.isSettings(data.subject) && data.subject.prefix === meta.id,
|
|
76
77
|
component: ({ data: { subject } }) => {
|
|
77
78
|
const { settings, updateSettings } = useSettingsState<ThreadSettingsProps>(subject.atom);
|
|
78
79
|
return <ThreadSettings settings={settings} onSettingsChange={updateSettings} />;
|
|
79
80
|
},
|
|
80
81
|
}),
|
|
81
|
-
|
|
82
|
+
Surface.create({
|
|
82
83
|
id: `${meta.id}/assistant`,
|
|
83
84
|
role: 'deck-companion--active-call',
|
|
84
85
|
component: () => <CallSidebar />,
|
|
85
86
|
}),
|
|
86
|
-
|
|
87
|
+
Surface.create({
|
|
87
88
|
id: `${meta.id}/devtools-overview`,
|
|
88
89
|
role: 'devtools-overview',
|
|
89
90
|
component: () => {
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import { Capability
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
8
9
|
import { createKvsStore } from '@dxos/effect';
|
|
9
10
|
|
|
10
11
|
import { meta } from '../../meta';
|
|
@@ -23,7 +24,7 @@ export default Capability.makeModule(() =>
|
|
|
23
24
|
// Expose atom directly for programmatic access.
|
|
24
25
|
Capability.contributes(ThreadCapabilities.Settings, settingsAtom),
|
|
25
26
|
// Contribute to common settings for UI discovery.
|
|
26
|
-
Capability.contributes(
|
|
27
|
+
Capability.contributes(AppCapabilities.Settings, {
|
|
27
28
|
prefix: meta.id,
|
|
28
29
|
schema: ThreadSettingsSchema,
|
|
29
30
|
atom: settingsAtom,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { useAtomValue } from '@effect-atom/atom-react';
|
|
6
6
|
import React, { type FC, type PropsWithChildren } from 'react';
|
|
7
7
|
|
|
8
|
-
import { useCapability } from '@dxos/app-framework/
|
|
8
|
+
import { useCapability } from '@dxos/app-framework/ui';
|
|
9
9
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
10
10
|
|
|
11
11
|
import { useDebugMode } from '../../hooks';
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
import { useAtomValue } from '@effect-atom/atom-react';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { useCapability } from '@dxos/app-framework/ui';
|
|
9
|
+
import { useAppGraph } from '@dxos/app-toolkit/ui';
|
|
9
10
|
import { Obj } from '@dxos/echo';
|
|
10
11
|
import { Node, useActionRunner } from '@dxos/plugin-graph';
|
|
11
12
|
import { useActions, useNode } from '@dxos/plugin-graph';
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
import { Capability
|
|
8
|
+
import { Capability } from '@dxos/app-framework';
|
|
9
9
|
import { withPluginManager } from '@dxos/app-framework/testing';
|
|
10
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
10
11
|
import { Query, useDatabase, useQuery } from '@dxos/react-client/echo';
|
|
11
12
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
12
13
|
import { render } from '@dxos/storybook-utils';
|
|
@@ -34,13 +35,11 @@ const meta = {
|
|
|
34
35
|
component: ChannelContainer,
|
|
35
36
|
render: render(DefaultStory),
|
|
36
37
|
decorators: [
|
|
37
|
-
withTheme,
|
|
38
|
+
withTheme(),
|
|
38
39
|
withLayout({ layout: 'column' }),
|
|
39
40
|
withPluginManager({
|
|
40
41
|
plugins: [...(await createThreadPlugins())],
|
|
41
|
-
capabilities: [
|
|
42
|
-
Capability.contributes(Common.Capability.Schema, [Channel.Channel, Thread.Thread, Message.Message]),
|
|
43
|
-
],
|
|
42
|
+
capabilities: [Capability.contributes(AppCapabilities.Schema, [Channel.Channel, Thread.Thread, Message.Message])],
|
|
44
43
|
}),
|
|
45
44
|
],
|
|
46
45
|
parameters: {
|