@dxos/plugin-thread 0.8.4-main.72ec0f3 → 0.8.4-main.7ace549
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-L7MKV7DS.mjs +17 -0
- package/dist/lib/browser/{ChatContainer-7F5Y6GXJ.mjs → ChatContainer-KPY4BAUE.mjs} +4 -3
- package/dist/lib/browser/{app-graph-builder-HNYLII5E.mjs → app-graph-builder-TWJ2UCOZ.mjs} +5 -4
- package/dist/lib/browser/{blueprint-definition-6BKYTMJS.mjs → blueprint-definition-TQ4JFMZZ.mjs} +4 -7
- package/dist/lib/browser/blueprint-definition-TQ4JFMZZ.mjs.map +7 -0
- package/dist/lib/browser/{call-manager-MAXQLMMS.mjs → call-manager-4YFT4XA6.mjs} +4 -3
- package/dist/lib/browser/{chunk-INQVAYPN.mjs → chunk-ALZKJOZK.mjs} +4 -4
- package/dist/lib/browser/chunk-ANTFU4JB.mjs +25 -0
- package/dist/lib/browser/{chunk-OOUDK7Q7.mjs.map → chunk-ANTFU4JB.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-BBTXGRIR.mjs → chunk-CFC7LEPD.mjs} +2 -2
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-JDJPMI7V.mjs +143 -0
- package/dist/lib/browser/chunk-JDJPMI7V.mjs.map +7 -0
- package/dist/lib/browser/{chunk-BQWQFTWT.mjs → chunk-NPT5S6N4.mjs} +11 -12
- package/dist/lib/browser/chunk-NPT5S6N4.mjs.map +7 -0
- package/dist/lib/browser/{chunk-K2DUJRFJ.mjs → chunk-QM34EZQK.mjs} +1 -8
- package/dist/lib/browser/{chunk-K2DUJRFJ.mjs.map → chunk-QM34EZQK.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-FR6MEAZI.mjs → chunk-TLOOZTRD.mjs} +2 -2
- package/dist/lib/browser/chunk-TLOOZTRD.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +25 -27
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-BOUT4WGY.mjs → intent-resolver-G33FT3NO.mjs} +19 -25
- package/dist/lib/browser/intent-resolver-G33FT3NO.mjs.map +7 -0
- package/dist/lib/browser/{markdown-74EUSQGV.mjs → markdown-WFZFYJBQ.mjs} +15 -14
- package/dist/lib/browser/markdown-WFZFYJBQ.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-root-BVG7B2LW.mjs → react-root-ED7PHA44.mjs} +9 -8
- package/dist/lib/browser/{react-surface-BCD5ODQ6.mjs → react-surface-AUQQSQQC.mjs} +12 -11
- package/dist/lib/browser/react-surface-AUQQSQQC.mjs.map +7 -0
- package/dist/lib/browser/repair-JFJLEM2O.mjs +35 -0
- package/dist/lib/browser/repair-JFJLEM2O.mjs.map +7 -0
- package/dist/lib/browser/{settings-LGQUZITB.mjs → settings-E6IOLK46.mjs} +4 -3
- package/dist/lib/browser/{state-36REWXO5.mjs → state-UYPLBGZJ.mjs} +4 -3
- package/dist/lib/browser/types/index.mjs +4 -5
- package/dist/lib/node-esm/{ChannelContainer-2JJJ3IDK.mjs → ChannelContainer-FYONOOZ6.mjs} +7 -6
- package/dist/lib/node-esm/{ChatContainer-C526R4DI.mjs → ChatContainer-TLQG23K7.mjs} +4 -3
- package/dist/lib/node-esm/ChatContainer-TLQG23K7.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-builder-SOCKP4ST.mjs → app-graph-builder-VD6I2V5H.mjs} +5 -4
- package/dist/lib/{browser/app-graph-builder-HNYLII5E.mjs.map → node-esm/app-graph-builder-VD6I2V5H.mjs.map} +1 -1
- package/dist/lib/node-esm/{blueprint-definition-6LEAWSC7.mjs → blueprint-definition-TSX5HHW7.mjs} +4 -7
- package/dist/lib/node-esm/blueprint-definition-TSX5HHW7.mjs.map +7 -0
- package/dist/lib/node-esm/{call-manager-LC4OS2KD.mjs → call-manager-UMUXEYH5.mjs} +4 -3
- package/dist/lib/{browser/call-manager-MAXQLMMS.mjs.map → node-esm/call-manager-UMUXEYH5.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-XI45H4IV.mjs → chunk-2AEIN5MI.mjs} +1 -7
- package/dist/lib/node-esm/{chunk-XI45H4IV.mjs.map → chunk-2AEIN5MI.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-JF7THR7F.mjs → chunk-AB42KYF3.mjs} +4 -4
- package/dist/lib/node-esm/chunk-ATNY37UV.mjs +27 -0
- package/dist/lib/node-esm/{chunk-5DLH4MWN.mjs.map → chunk-ATNY37UV.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-TWKGDFCS.mjs → chunk-E5HNHFYH.mjs} +2 -2
- package/dist/lib/node-esm/chunk-E5HNHFYH.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-JJW6YMLC.mjs → chunk-FF3QVPY4.mjs} +11 -12
- package/dist/lib/node-esm/chunk-FF3QVPY4.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-P2M364TO.mjs +144 -0
- package/dist/lib/node-esm/chunk-P2M364TO.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-ZQAGII7M.mjs → chunk-RT6NRL2I.mjs} +2 -2
- package/dist/lib/node-esm/index.mjs +25 -27
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-45PLIFCJ.mjs → intent-resolver-4PX3WXQG.mjs} +19 -25
- package/dist/lib/node-esm/intent-resolver-4PX3WXQG.mjs.map +7 -0
- package/dist/lib/node-esm/{markdown-566XXB55.mjs → markdown-CSR5MAPZ.mjs} +15 -14
- package/dist/lib/node-esm/markdown-CSR5MAPZ.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-root-DCY6DKLC.mjs → react-root-DZN324JA.mjs} +9 -8
- package/dist/lib/{browser/react-root-BVG7B2LW.mjs.map → node-esm/react-root-DZN324JA.mjs.map} +1 -1
- package/dist/lib/node-esm/{react-surface-WZH7OAO3.mjs → react-surface-AMVESEF4.mjs} +12 -11
- package/dist/lib/node-esm/react-surface-AMVESEF4.mjs.map +7 -0
- package/dist/lib/node-esm/repair-RMLR24YR.mjs +36 -0
- package/dist/lib/node-esm/repair-RMLR24YR.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-WKLJSP6R.mjs → settings-RGZHWDSO.mjs} +4 -3
- package/dist/lib/{browser/settings-LGQUZITB.mjs.map → node-esm/settings-RGZHWDSO.mjs.map} +1 -1
- package/dist/lib/node-esm/{state-X3W67GTL.mjs → state-XNWOLBNE.mjs} +4 -3
- package/dist/lib/{browser/state-36REWXO5.mjs.map → node-esm/state-XNWOLBNE.mjs.map} +1 -1
- package/dist/lib/node-esm/types/index.mjs +4 -5
- package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +1 -0
- 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/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/repair.d.ts +4 -0
- package/dist/types/src/capabilities/repair.d.ts.map +1 -0
- package/dist/types/src/components/ChannelContainer.stories.d.ts +4 -0
- package/dist/types/src/components/ChannelContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/Chat.stories.d.ts +4 -0
- package/dist/types/src/components/Chat.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatContainer.d.ts +1 -1
- package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
- package/dist/types/src/components/Comments.stories.d.ts +4 -0
- 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/MessageContainer.d.ts +3 -1
- package/dist/types/src/components/MessageContainer.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts +4 -0
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +4 -0
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +1 -1
- package/dist/types/src/components/testing.d.ts +1 -1
- package/dist/types/src/components/testing.d.ts.map +1 -1
- package/dist/types/src/extensions/threads.d.ts.map +1 -1
- package/dist/types/src/functions/create-proposals.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +4 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Channel.d.ts +4 -4
- package/dist/types/src/types/Channel.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +115 -143
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +47 -47
- package/src/ThreadPlugin.tsx +16 -22
- package/src/capabilities/index.ts +1 -0
- package/src/capabilities/intent-resolver.ts +11 -11
- package/src/capabilities/react-surface.tsx +2 -1
- package/src/capabilities/repair.ts +40 -0
- package/src/components/ChannelContainer.stories.tsx +2 -2
- package/src/components/Chat.stories.tsx +2 -2
- package/src/components/ChatContainer.tsx +1 -2
- package/src/components/Comments.stories.tsx +1 -2
- package/src/components/CommentsContainer.tsx +1 -2
- package/src/components/CommentsThreadContainer.tsx +1 -2
- package/src/components/MessageContainer.tsx +6 -4
- package/src/components/ThreadCompanion.tsx +2 -2
- package/src/components/testing.ts +1 -3
- package/src/extensions/threads.ts +8 -7
- package/src/functions/create-proposals.ts +1 -3
- package/src/translations.ts +2 -0
- package/src/types/Channel.ts +4 -5
- package/src/types/index.ts +0 -1
- package/src/types/types.ts +5 -5
- package/dist/lib/browser/ChannelContainer-MX5ABVGC.mjs +0 -16
- package/dist/lib/browser/blueprint-definition-6BKYTMJS.mjs.map +0 -7
- package/dist/lib/browser/chunk-BQWQFTWT.mjs.map +0 -7
- package/dist/lib/browser/chunk-FR6MEAZI.mjs.map +0 -7
- package/dist/lib/browser/chunk-NMJEVD36.mjs +0 -168
- package/dist/lib/browser/chunk-NMJEVD36.mjs.map +0 -7
- package/dist/lib/browser/chunk-OOUDK7Q7.mjs +0 -23
- package/dist/lib/browser/intent-resolver-BOUT4WGY.mjs.map +0 -7
- package/dist/lib/browser/markdown-74EUSQGV.mjs.map +0 -7
- package/dist/lib/browser/react-surface-BCD5ODQ6.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-6LEAWSC7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-5DLH4MWN.mjs +0 -25
- package/dist/lib/node-esm/chunk-JJW6YMLC.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TJKM5JZT.mjs +0 -169
- package/dist/lib/node-esm/chunk-TJKM5JZT.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TWKGDFCS.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-45PLIFCJ.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-566XXB55.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-WZH7OAO3.mjs.map +0 -7
- package/dist/types/src/types/Thread.d.ts +0 -167
- package/dist/types/src/types/Thread.d.ts.map +0 -1
- package/src/types/Thread.ts +0 -26
- /package/dist/lib/browser/{ChannelContainer-MX5ABVGC.mjs.map → ChannelContainer-L7MKV7DS.mjs.map} +0 -0
- /package/dist/lib/browser/{ChatContainer-7F5Y6GXJ.mjs.map → ChatContainer-KPY4BAUE.mjs.map} +0 -0
- /package/dist/lib/{node-esm/app-graph-builder-SOCKP4ST.mjs.map → browser/app-graph-builder-TWJ2UCOZ.mjs.map} +0 -0
- /package/dist/lib/{node-esm/call-manager-LC4OS2KD.mjs.map → browser/call-manager-4YFT4XA6.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-INQVAYPN.mjs.map → chunk-ALZKJOZK.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-BBTXGRIR.mjs.map → chunk-CFC7LEPD.mjs.map} +0 -0
- /package/dist/lib/{node-esm/ChannelContainer-2JJJ3IDK.mjs.map → browser/chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/{node-esm/react-root-DCY6DKLC.mjs.map → browser/react-root-ED7PHA44.mjs.map} +0 -0
- /package/dist/lib/{node-esm/settings-WKLJSP6R.mjs.map → browser/settings-E6IOLK46.mjs.map} +0 -0
- /package/dist/lib/{node-esm/state-X3W67GTL.mjs.map → browser/state-UYPLBGZJ.mjs.map} +0 -0
- /package/dist/lib/node-esm/{ChatContainer-C526R4DI.mjs.map → ChannelContainer-FYONOOZ6.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-JF7THR7F.mjs.map → chunk-AB42KYF3.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-ZQAGII7M.mjs.map → chunk-RT6NRL2I.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.7ace549",
|
|
4
4
|
"description": "DXOS Threads Surface plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -49,45 +49,45 @@
|
|
|
49
49
|
"md5-hex": "5.0.0",
|
|
50
50
|
"react-resize-detector": "^11.0.1",
|
|
51
51
|
"wavefile": "^11.0.0",
|
|
52
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/codec-protobuf": "0.8.4-main.
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/echo-db": "0.8.4-main.
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/invariant": "0.8.4-main.
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/live-object": "0.8.4-main.
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/plugin-
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/plugin-deck": "0.8.4-main.
|
|
72
|
-
"@dxos/plugin-graph": "0.8.4-main.
|
|
73
|
-
"@dxos/plugin-
|
|
74
|
-
"@dxos/plugin-
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/protocols": "0.8.4-main.
|
|
77
|
-
"@dxos/react-
|
|
78
|
-
"@dxos/react-ui-
|
|
79
|
-
"@dxos/react-ui-
|
|
80
|
-
"@dxos/react-ui-
|
|
81
|
-
"@dxos/react-ui-form": "0.8.4-main.
|
|
82
|
-
"@dxos/react-ui-
|
|
83
|
-
"@dxos/react-ui-
|
|
84
|
-
"@dxos/react-ui-
|
|
85
|
-
"@dxos/react-ui-
|
|
86
|
-
"@dxos/react-ui-
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/util": "0.8.4-main.
|
|
52
|
+
"@dxos/app-framework": "0.8.4-main.7ace549",
|
|
53
|
+
"@dxos/assistant": "0.8.4-main.7ace549",
|
|
54
|
+
"@dxos/blueprints": "0.8.4-main.7ace549",
|
|
55
|
+
"@dxos/codec-protobuf": "0.8.4-main.7ace549",
|
|
56
|
+
"@dxos/async": "0.8.4-main.7ace549",
|
|
57
|
+
"@dxos/context": "0.8.4-main.7ace549",
|
|
58
|
+
"@dxos/devtools": "0.8.4-main.7ace549",
|
|
59
|
+
"@dxos/display-name": "0.8.4-main.7ace549",
|
|
60
|
+
"@dxos/debug": "0.8.4-main.7ace549",
|
|
61
|
+
"@dxos/echo-db": "0.8.4-main.7ace549",
|
|
62
|
+
"@dxos/echo": "0.8.4-main.7ace549",
|
|
63
|
+
"@dxos/functions": "0.8.4-main.7ace549",
|
|
64
|
+
"@dxos/invariant": "0.8.4-main.7ace549",
|
|
65
|
+
"@dxos/keys": "0.8.4-main.7ace549",
|
|
66
|
+
"@dxos/live-object": "0.8.4-main.7ace549",
|
|
67
|
+
"@dxos/local-storage": "0.8.4-main.7ace549",
|
|
68
|
+
"@dxos/log": "0.8.4-main.7ace549",
|
|
69
|
+
"@dxos/plugin-attention": "0.8.4-main.7ace549",
|
|
70
|
+
"@dxos/plugin-client": "0.8.4-main.7ace549",
|
|
71
|
+
"@dxos/plugin-deck": "0.8.4-main.7ace549",
|
|
72
|
+
"@dxos/plugin-graph": "0.8.4-main.7ace549",
|
|
73
|
+
"@dxos/plugin-markdown": "0.8.4-main.7ace549",
|
|
74
|
+
"@dxos/plugin-observability": "0.8.4-main.7ace549",
|
|
75
|
+
"@dxos/react-client": "0.8.4-main.7ace549",
|
|
76
|
+
"@dxos/protocols": "0.8.4-main.7ace549",
|
|
77
|
+
"@dxos/react-ui-attention": "0.8.4-main.7ace549",
|
|
78
|
+
"@dxos/react-ui-dnd": "0.8.4-main.7ace549",
|
|
79
|
+
"@dxos/react-ui-editor": "0.8.4-main.7ace549",
|
|
80
|
+
"@dxos/react-ui-menu": "0.8.4-main.7ace549",
|
|
81
|
+
"@dxos/react-ui-form": "0.8.4-main.7ace549",
|
|
82
|
+
"@dxos/react-ui-sfx": "0.8.4-main.7ace549",
|
|
83
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.7ace549",
|
|
84
|
+
"@dxos/react-ui-tabs": "0.8.4-main.7ace549",
|
|
85
|
+
"@dxos/react-ui-stack": "0.8.4-main.7ace549",
|
|
86
|
+
"@dxos/react-ui-thread": "0.8.4-main.7ace549",
|
|
87
|
+
"@dxos/plugin-space": "0.8.4-main.7ace549",
|
|
88
|
+
"@dxos/types": "0.8.4-main.7ace549",
|
|
89
|
+
"@dxos/schema": "0.8.4-main.7ace549",
|
|
90
|
+
"@dxos/util": "0.8.4-main.7ace549"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@effect-atom/atom-react": "^0.3.4",
|
|
@@ -98,11 +98,11 @@
|
|
|
98
98
|
"react": "~19.2.0",
|
|
99
99
|
"react-dom": "~19.2.0",
|
|
100
100
|
"vite": "7.1.9",
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/
|
|
103
|
-
"@dxos/
|
|
104
|
-
"@dxos/
|
|
105
|
-
"@dxos/
|
|
101
|
+
"@dxos/random": "0.8.4-main.7ace549",
|
|
102
|
+
"@dxos/react-ui-theme": "0.8.4-main.7ace549",
|
|
103
|
+
"@dxos/storybook-utils": "0.8.4-main.7ace549",
|
|
104
|
+
"@dxos/plugin-theme": "0.8.4-main.7ace549",
|
|
105
|
+
"@dxos/react-ui": "0.8.4-main.7ace549"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
108
108
|
"@effect-atom/atom-react": "^0.3.4",
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
"effect": "^3.13.3",
|
|
111
111
|
"react": "^19.0.0",
|
|
112
112
|
"react-dom": "^19.0.0",
|
|
113
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
114
|
-
"@dxos/react-ui
|
|
113
|
+
"@dxos/react-ui-theme": "0.8.4-main.7ace549",
|
|
114
|
+
"@dxos/react-ui": "0.8.4-main.7ace549"
|
|
115
115
|
},
|
|
116
116
|
"publishConfig": {
|
|
117
117
|
"access": "public"
|
package/src/ThreadPlugin.tsx
CHANGED
|
@@ -7,9 +7,9 @@ import { Ref, Type } from '@dxos/echo';
|
|
|
7
7
|
import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
|
|
8
8
|
import { MarkdownEvents } from '@dxos/plugin-markdown';
|
|
9
9
|
import { SpaceCapabilities, SpaceEvents } from '@dxos/plugin-space';
|
|
10
|
-
import {
|
|
10
|
+
import { type CreateObjectIntent } from '@dxos/plugin-space/types';
|
|
11
11
|
import { translations as threadTranslations } from '@dxos/react-ui-thread';
|
|
12
|
-
import { AnchoredTo, Message } from '@dxos/types';
|
|
12
|
+
import { AnchoredTo, Message, Thread } from '@dxos/types';
|
|
13
13
|
|
|
14
14
|
import {
|
|
15
15
|
AppGraphBuilder,
|
|
@@ -19,11 +19,12 @@ import {
|
|
|
19
19
|
Markdown,
|
|
20
20
|
ReactRoot,
|
|
21
21
|
ReactSurface,
|
|
22
|
+
Repair,
|
|
22
23
|
ThreadState,
|
|
23
24
|
} from './capabilities';
|
|
24
25
|
import { THREAD_ITEM, meta } from './meta';
|
|
25
26
|
import { translations } from './translations';
|
|
26
|
-
import { Channel,
|
|
27
|
+
import { Channel, ThreadAction } from './types';
|
|
27
28
|
|
|
28
29
|
// TODO(Zan): Every instance of `cursor` should be replaced with `anchor`.
|
|
29
30
|
// NOTE(burdon): Review/discuss CursorConverter semantics.
|
|
@@ -64,6 +65,10 @@ export const ThreadPlugin = definePlugin(meta, () => [
|
|
|
64
65
|
metadata: {
|
|
65
66
|
icon: 'ph--hash--regular',
|
|
66
67
|
iconHue: 'rose',
|
|
68
|
+
createObjectIntent: ((_, options) =>
|
|
69
|
+
createIntent(ThreadAction.CreateChannel, {
|
|
70
|
+
spaceId: options.space.id,
|
|
71
|
+
})) satisfies CreateObjectIntent,
|
|
67
72
|
},
|
|
68
73
|
}),
|
|
69
74
|
contributes(Capabilities.Metadata, {
|
|
@@ -97,30 +102,16 @@ export const ThreadPlugin = definePlugin(meta, () => [
|
|
|
97
102
|
}),
|
|
98
103
|
],
|
|
99
104
|
}),
|
|
100
|
-
defineModule({
|
|
101
|
-
id: `${meta.id}/module/object-form`,
|
|
102
|
-
activatesOn: ClientEvents.SetupSchema,
|
|
103
|
-
activate: () =>
|
|
104
|
-
contributes(
|
|
105
|
-
SpaceCapabilities.ObjectForm,
|
|
106
|
-
defineObjectForm({
|
|
107
|
-
objectSchema: Channel.Channel,
|
|
108
|
-
getIntent: (_, options) =>
|
|
109
|
-
createIntent(ThreadAction.CreateChannel, {
|
|
110
|
-
spaceId: options.space.id,
|
|
111
|
-
}),
|
|
112
|
-
}),
|
|
113
|
-
),
|
|
114
|
-
}),
|
|
115
105
|
defineModule({
|
|
116
106
|
id: `${meta.id}/module/schema`,
|
|
117
107
|
activatesOn: ClientEvents.SetupSchema,
|
|
118
108
|
activate: () =>
|
|
119
109
|
contributes(ClientCapabilities.Schema, [
|
|
120
110
|
AnchoredTo.AnchoredTo,
|
|
121
|
-
|
|
111
|
+
Channel.Channel,
|
|
122
112
|
Message.Message,
|
|
123
113
|
Message.MessageV1,
|
|
114
|
+
Thread.Thread,
|
|
124
115
|
]),
|
|
125
116
|
}),
|
|
126
117
|
defineModule({
|
|
@@ -132,9 +123,12 @@ export const ThreadPlugin = definePlugin(meta, () => [
|
|
|
132
123
|
id: `${meta.id}/module/on-space-created`,
|
|
133
124
|
activatesOn: SpaceEvents.SpaceCreated,
|
|
134
125
|
activate: () =>
|
|
135
|
-
contributes(SpaceCapabilities.
|
|
136
|
-
|
|
137
|
-
|
|
126
|
+
contributes(SpaceCapabilities.OnCreateSpace, (params) => createIntent(ThreadAction.OnCreateSpace, params)),
|
|
127
|
+
}),
|
|
128
|
+
defineModule({
|
|
129
|
+
id: `${meta.id}/module/repair`,
|
|
130
|
+
activatesOn: ClientEvents.SpacesReady,
|
|
131
|
+
activate: Repair,
|
|
138
132
|
}),
|
|
139
133
|
defineModule({
|
|
140
134
|
id: `${meta.id}/module/markdown`,
|
|
@@ -11,6 +11,7 @@ export const IntentResolver = lazy(() => import('./intent-resolver'));
|
|
|
11
11
|
export const Markdown = lazy(() => import('./markdown'));
|
|
12
12
|
export const ReactRoot = lazy(() => import('./react-root'));
|
|
13
13
|
export const ReactSurface = lazy(() => import('./react-surface'));
|
|
14
|
+
export const Repair = lazy(() => import('./repair'));
|
|
14
15
|
export const ThreadSettings = lazy(() => import('./settings'));
|
|
15
16
|
export const ThreadState = lazy(() => import('./state'));
|
|
16
17
|
|
|
@@ -10,25 +10,28 @@ 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
|
-
import {
|
|
13
|
+
import { SpaceAction } from '@dxos/plugin-space/types';
|
|
14
14
|
import { Ref, getSpace } from '@dxos/react-client/echo';
|
|
15
|
-
import {
|
|
15
|
+
import { Collection } from '@dxos/schema';
|
|
16
|
+
import { AnchoredTo, Message, Thread } from '@dxos/types';
|
|
16
17
|
|
|
17
18
|
import { meta } from '../meta';
|
|
18
|
-
import { Channel,
|
|
19
|
+
import { Channel, ThreadAction } from '../types';
|
|
19
20
|
|
|
20
21
|
import { ThreadCapabilities } from './capabilities';
|
|
21
22
|
|
|
22
23
|
export default (context: PluginContext) =>
|
|
23
24
|
contributes(Capabilities.IntentResolver, [
|
|
24
25
|
createResolver({
|
|
25
|
-
intent: ThreadAction.
|
|
26
|
-
resolve: ({ space, rootCollection }) =>
|
|
26
|
+
intent: ThreadAction.OnCreateSpace,
|
|
27
|
+
resolve: ({ space, isDefault, rootCollection }) =>
|
|
27
28
|
Effect.gen(function* () {
|
|
29
|
+
if (isDefault) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
|
|
28
33
|
const { dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
29
|
-
const {
|
|
30
|
-
createIntent(CollectionAction.CreateQueryCollection, { typename: Type.getTypename(Channel.Channel) }),
|
|
31
|
-
);
|
|
34
|
+
const collection = Collection.makeManaged({ key: Type.getTypename(Channel.Channel) });
|
|
32
35
|
rootCollection.objects.push(Ref.make(collection));
|
|
33
36
|
|
|
34
37
|
const { object: channel } = yield* dispatch(
|
|
@@ -61,9 +64,6 @@ export default (context: PluginContext) =>
|
|
|
61
64
|
createResolver({
|
|
62
65
|
intent: ThreadAction.Create,
|
|
63
66
|
resolve: ({ name, anchor: _anchor, subject }) => {
|
|
64
|
-
const space = getSpace(subject);
|
|
65
|
-
invariant(space, 'Space not found');
|
|
66
|
-
|
|
67
67
|
const { state } = context.getCapability(ThreadCapabilities.MutableState);
|
|
68
68
|
const subjectId = Obj.getDXN(subject).toString();
|
|
69
69
|
const thread = Thread.make({ name });
|
|
@@ -9,6 +9,7 @@ import { useCapability } from '@dxos/app-framework/react';
|
|
|
9
9
|
import { Obj, type Ref } from '@dxos/echo';
|
|
10
10
|
import { SettingsStore } from '@dxos/local-storage';
|
|
11
11
|
import { getSpace } from '@dxos/react-client/echo';
|
|
12
|
+
import { Thread } from '@dxos/types';
|
|
12
13
|
|
|
13
14
|
import {
|
|
14
15
|
CallDebugPanel,
|
|
@@ -19,7 +20,7 @@ import {
|
|
|
19
20
|
ThreadSettings,
|
|
20
21
|
} from '../components';
|
|
21
22
|
import { meta } from '../meta';
|
|
22
|
-
import { Channel,
|
|
23
|
+
import { Channel, type ThreadSettingsProps } from '../types';
|
|
23
24
|
|
|
24
25
|
import { ThreadCapabilities } from './capabilities';
|
|
25
26
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { contributes } from '@dxos/app-framework';
|
|
6
|
+
import { Obj, Ref, Type } from '@dxos/echo';
|
|
7
|
+
import { SpaceCapabilities } from '@dxos/plugin-space';
|
|
8
|
+
import { type Space } from '@dxos/react-client/echo';
|
|
9
|
+
import { Collection } from '@dxos/schema';
|
|
10
|
+
|
|
11
|
+
import { Channel } from '../types';
|
|
12
|
+
|
|
13
|
+
export default () =>
|
|
14
|
+
contributes(SpaceCapabilities.Repair, async ({ space, isDefault }) => {
|
|
15
|
+
if (isDefault) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
await ensureSystemCollection(space);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Ensure the root collection has a system collection for Channels.
|
|
24
|
+
*/
|
|
25
|
+
const ensureSystemCollection = async (space: Space) => {
|
|
26
|
+
const rootCollection: Collection.Collection = await space.properties[Collection.Collection.typename]?.load();
|
|
27
|
+
if (!rootCollection) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const objects = await Promise.all(rootCollection.objects.map((ref) => ref.load()));
|
|
32
|
+
const channels = objects.find(
|
|
33
|
+
(object) => Obj.instanceOf(Collection.Managed, object) && object.key === Type.getTypename(Channel.Channel),
|
|
34
|
+
);
|
|
35
|
+
if (channels) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
rootCollection.objects.push(Ref.make(Collection.makeManaged({ key: Type.getTypename(Channel.Channel) })));
|
|
40
|
+
};
|
|
@@ -11,11 +11,11 @@ import { ClientCapabilities } from '@dxos/plugin-client';
|
|
|
11
11
|
import { Query, useQuery, useSpace } from '@dxos/react-client/echo';
|
|
12
12
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
13
13
|
import { render } from '@dxos/storybook-utils';
|
|
14
|
-
import { Message } from '@dxos/types';
|
|
14
|
+
import { Message, Thread } from '@dxos/types';
|
|
15
15
|
|
|
16
16
|
import { createThreadPlugins } from '../testing';
|
|
17
17
|
import { translations } from '../translations';
|
|
18
|
-
import { Channel
|
|
18
|
+
import { Channel } from '../types';
|
|
19
19
|
|
|
20
20
|
import { ChannelContainer, type ChannelContainerProps } from './ChannelContainer';
|
|
21
21
|
|
|
@@ -16,10 +16,10 @@ import { useAsyncEffect } from '@dxos/react-ui';
|
|
|
16
16
|
import { withTheme } from '@dxos/react-ui/testing';
|
|
17
17
|
import { Thread as ThreadComponent } from '@dxos/react-ui-thread';
|
|
18
18
|
import { render } from '@dxos/storybook-utils';
|
|
19
|
-
import { Message } from '@dxos/types';
|
|
19
|
+
import { Message, Thread } from '@dxos/types';
|
|
20
20
|
|
|
21
21
|
import { translations } from '../translations';
|
|
22
|
-
import { Channel
|
|
22
|
+
import { Channel } from '../types';
|
|
23
23
|
|
|
24
24
|
import { ChatContainer } from './ChatContainer';
|
|
25
25
|
|
|
@@ -18,12 +18,11 @@ import {
|
|
|
18
18
|
type ThreadRootProps,
|
|
19
19
|
threadLayout,
|
|
20
20
|
} from '@dxos/react-ui-thread';
|
|
21
|
-
import { Message } from '@dxos/types';
|
|
21
|
+
import { Message, type Thread } from '@dxos/types';
|
|
22
22
|
import { isNonNullable } from '@dxos/util';
|
|
23
23
|
|
|
24
24
|
import { useStatus } from '../hooks';
|
|
25
25
|
import { meta } from '../meta';
|
|
26
|
-
import { type Thread } from '../types';
|
|
27
26
|
import { getMessageMetadata } from '../util';
|
|
28
27
|
|
|
29
28
|
import { command } from './command-extension';
|
|
@@ -15,10 +15,9 @@ import { useIdentity } from '@dxos/react-client/halo';
|
|
|
15
15
|
import { useAsyncEffect } from '@dxos/react-ui';
|
|
16
16
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
17
17
|
import { render } from '@dxos/storybook-utils';
|
|
18
|
-
import { AnchoredTo, Message } from '@dxos/types';
|
|
18
|
+
import { AnchoredTo, Message, Thread } from '@dxos/types';
|
|
19
19
|
|
|
20
20
|
import { translations } from '../translations';
|
|
21
|
-
import { Thread } from '../types';
|
|
22
21
|
|
|
23
22
|
import { CommentsContainer } from './CommentsContainer';
|
|
24
23
|
import { createCommentThread, createProposalThread } from './testing';
|
|
@@ -6,10 +6,9 @@ import React, { useEffect } from 'react';
|
|
|
6
6
|
|
|
7
7
|
import { Obj, Relation } from '@dxos/echo';
|
|
8
8
|
import { Callout, Icon, Trans, useTranslation } from '@dxos/react-ui';
|
|
9
|
-
import { type AnchoredTo } from '@dxos/types';
|
|
9
|
+
import { type AnchoredTo, type Thread } from '@dxos/types';
|
|
10
10
|
|
|
11
11
|
import { meta } from '../meta';
|
|
12
|
-
import { type Thread } from '../types';
|
|
13
12
|
|
|
14
13
|
import { CommentsThreadContainer, type CommentsThreadContainerProps } from './CommentsThreadContainer';
|
|
15
14
|
|
|
@@ -16,12 +16,11 @@ import {
|
|
|
16
16
|
Thread as ThreadComponent,
|
|
17
17
|
type ThreadRootProps,
|
|
18
18
|
} from '@dxos/react-ui-thread';
|
|
19
|
-
import { type AnchoredTo } from '@dxos/types';
|
|
19
|
+
import { type AnchoredTo, type Thread } from '@dxos/types';
|
|
20
20
|
import { isNonNullable } from '@dxos/util';
|
|
21
21
|
|
|
22
22
|
import { useStatus } from '../hooks';
|
|
23
23
|
import { meta } from '../meta';
|
|
24
|
-
import { type Thread } from '../types';
|
|
25
24
|
import { getMessageMetadata } from '../util';
|
|
26
25
|
|
|
27
26
|
import { command } from './command-extension';
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { EditorView } from '@codemirror/view';
|
|
6
|
+
import type * as Schema from 'effect/Schema';
|
|
6
7
|
import React, { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
|
|
7
8
|
|
|
8
9
|
import { Surface } from '@dxos/app-framework/react';
|
|
9
|
-
import { type Obj, Ref
|
|
10
|
+
import { type Obj, Ref } from '@dxos/echo';
|
|
10
11
|
import { PublicKey } from '@dxos/react-client';
|
|
11
12
|
import { type SpaceMember } from '@dxos/react-client/echo';
|
|
12
13
|
import { type Identity, useIdentity } from '@dxos/react-client/halo';
|
|
@@ -26,7 +27,8 @@ export const buttonGroupClassNames = 'flex flex-row items-center gap-0.5 pie-2';
|
|
|
26
27
|
export const buttonClassNames = '!p-1 transition-opacity';
|
|
27
28
|
|
|
28
29
|
export type MessageContainerProps = {
|
|
29
|
-
|
|
30
|
+
// TODO(wittjosiah): Find a simpler way to define this type.
|
|
31
|
+
message: Obj.Obj<Schema.Schema.Type<typeof Message.Message>>;
|
|
30
32
|
members: SpaceMember[];
|
|
31
33
|
editable?: boolean;
|
|
32
34
|
onDelete?: (id: string) => void;
|
|
@@ -101,13 +103,13 @@ export const MessageContainer = ({
|
|
|
101
103
|
{textBlock && <TextboxBlock block={textBlock} isAuthor={userIsAuthor} editing={editing} />}
|
|
102
104
|
{proposalBlock && <ProposalBlock block={proposalBlock} />}
|
|
103
105
|
{Ref.Array.targets(references).map((reference, index) => (
|
|
104
|
-
<MessagePart key={index} part={reference} />
|
|
106
|
+
<MessagePart key={index} part={reference as Obj.Any} />
|
|
105
107
|
))}
|
|
106
108
|
</MessageRoot>
|
|
107
109
|
);
|
|
108
110
|
};
|
|
109
111
|
|
|
110
|
-
const MessagePart = ({ part }: { part:
|
|
112
|
+
const MessagePart = ({ part }: { part: Obj.Any }) => {
|
|
111
113
|
return <MessageBlockObjectTile subject={part} />;
|
|
112
114
|
};
|
|
113
115
|
|
|
@@ -14,12 +14,12 @@ import { useAttended } from '@dxos/react-ui-attention';
|
|
|
14
14
|
import { StackItem } from '@dxos/react-ui-stack';
|
|
15
15
|
import { Tabs } from '@dxos/react-ui-tabs';
|
|
16
16
|
import { mx } from '@dxos/react-ui-theme';
|
|
17
|
-
import { AnchoredTo } from '@dxos/types';
|
|
17
|
+
import { AnchoredTo, Thread } from '@dxos/types';
|
|
18
18
|
|
|
19
19
|
import { ThreadCapabilities } from '../capabilities';
|
|
20
20
|
import { CommentsContainer, type CommentsContainerProps } from '../components';
|
|
21
21
|
import { meta } from '../meta';
|
|
22
|
-
import {
|
|
22
|
+
import { ThreadAction } from '../types';
|
|
23
23
|
|
|
24
24
|
export const ThreadCompanion = ({ subject }: { subject: any }) => {
|
|
25
25
|
const { t } = useTranslation(meta.id);
|
|
@@ -6,9 +6,7 @@ import { Obj, Ref } from '@dxos/echo';
|
|
|
6
6
|
import { IdentityDid } from '@dxos/keys';
|
|
7
7
|
import { faker } from '@dxos/random';
|
|
8
8
|
import { type Identity } from '@dxos/react-client/halo';
|
|
9
|
-
import { Message } from '@dxos/types';
|
|
10
|
-
|
|
11
|
-
import { Thread } from '../types';
|
|
9
|
+
import { Message, Thread } from '@dxos/types';
|
|
12
10
|
|
|
13
11
|
export const createCommentThread = (identity: Identity): Thread.Thread => {
|
|
14
12
|
return Thread.make({
|
|
@@ -8,12 +8,13 @@ import { computed, effect } from '@preact/signals-core';
|
|
|
8
8
|
|
|
9
9
|
import { type PromiseIntentDispatcher, createIntent } from '@dxos/app-framework';
|
|
10
10
|
import { Filter, Obj, Query, Relation } from '@dxos/echo';
|
|
11
|
+
import { createDocAccessor, getTextInRange } from '@dxos/echo-db';
|
|
11
12
|
import { type Markdown } from '@dxos/plugin-markdown/types';
|
|
12
|
-
import {
|
|
13
|
+
import { getSpace } from '@dxos/react-client/echo';
|
|
13
14
|
import { comments, createExternalCommentSync } from '@dxos/react-ui-editor';
|
|
14
|
-
import { AnchoredTo } from '@dxos/types';
|
|
15
|
+
import { AnchoredTo, Thread } from '@dxos/types';
|
|
15
16
|
|
|
16
|
-
import {
|
|
17
|
+
import { ThreadAction, type ThreadState } from '../types';
|
|
17
18
|
|
|
18
19
|
// TODO(burdon): Factor out.
|
|
19
20
|
const getName = (doc: Markdown.Document, anchor: string): string | undefined => {
|
|
@@ -27,7 +28,7 @@ const getName = (doc: Markdown.Document, anchor: string): string | undefined =>
|
|
|
27
28
|
* Construct plugins.
|
|
28
29
|
*/
|
|
29
30
|
export const threads = (state: ThreadState, doc?: Markdown.Document, dispatch?: PromiseIntentDispatcher): Extension => {
|
|
30
|
-
const space =
|
|
31
|
+
const space = getSpace(doc);
|
|
31
32
|
if (!doc || !space || !dispatch) {
|
|
32
33
|
// Include no-op comments extension here to ensure that the facets are always present when they are expected.
|
|
33
34
|
// TODO(wittjosiah): The Editor should only look for these facets when comments are available.
|
|
@@ -102,7 +103,7 @@ export const threads = (state: ThreadState, doc?: Markdown.Document, dispatch?:
|
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
105
|
|
|
105
|
-
const thread = query.objects.find((object) => getSource(object).id === id);
|
|
106
|
+
const thread = query.objects.find((object) => Relation.getSource(object).id === id);
|
|
106
107
|
if (thread) {
|
|
107
108
|
thread.anchor = undefined;
|
|
108
109
|
}
|
|
@@ -115,9 +116,9 @@ export const threads = (state: ThreadState, doc?: Markdown.Document, dispatch?:
|
|
|
115
116
|
draft.anchor = cursor;
|
|
116
117
|
}
|
|
117
118
|
|
|
118
|
-
const relation = query.objects.find((object) => getSource(object).id === id);
|
|
119
|
+
const relation = query.objects.find((object) => Relation.getSource(object).id === id);
|
|
119
120
|
if (relation) {
|
|
120
|
-
const thread = getSource(relation);
|
|
121
|
+
const thread = Relation.getSource(relation);
|
|
121
122
|
if (Obj.instanceOf(Thread.Thread, thread)) {
|
|
122
123
|
thread.name = getName(doc, cursor);
|
|
123
124
|
relation.anchor = cursor;
|
|
@@ -13,9 +13,7 @@ import { createDocAccessor } from '@dxos/echo-db';
|
|
|
13
13
|
import { DatabaseService, defineFunction } from '@dxos/functions';
|
|
14
14
|
import { DXN } from '@dxos/keys';
|
|
15
15
|
import { Markdown } from '@dxos/plugin-markdown/types';
|
|
16
|
-
import { AnchoredTo, Message } from '@dxos/types';
|
|
17
|
-
|
|
18
|
-
import { Thread } from '../types';
|
|
16
|
+
import { AnchoredTo, Message, Thread } from '@dxos/types';
|
|
19
17
|
|
|
20
18
|
export default defineFunction({
|
|
21
19
|
key: 'dxos.org/function/thread/create-proposals',
|
package/src/translations.ts
CHANGED
|
@@ -19,6 +19,7 @@ export const translations = [
|
|
|
19
19
|
'object name placeholder': 'New channel',
|
|
20
20
|
'rename object label': 'Rename channel',
|
|
21
21
|
'delete object label': 'Delete channel',
|
|
22
|
+
'object deleted label': 'Channel deleted',
|
|
22
23
|
},
|
|
23
24
|
[meta.id]: {
|
|
24
25
|
'plugin name': 'Chat',
|
|
@@ -50,6 +51,7 @@ export const translations = [
|
|
|
50
51
|
'comments label': 'Comments',
|
|
51
52
|
'show all label': 'All comments',
|
|
52
53
|
'show unresolved label': 'Unresolved comments',
|
|
54
|
+
'add comment label': 'Add comment',
|
|
53
55
|
|
|
54
56
|
'channel companion label': 'Channel',
|
|
55
57
|
'call panel label': 'Active Call',
|
package/src/types/Channel.ts
CHANGED
|
@@ -5,15 +5,14 @@
|
|
|
5
5
|
import * as Schema from 'effect/Schema';
|
|
6
6
|
|
|
7
7
|
import { Obj, Ref, Type } from '@dxos/echo';
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import * as Thread from './Thread';
|
|
8
|
+
import { FormInputAnnotation } from '@dxos/echo/internal';
|
|
9
|
+
import { Thread } from '@dxos/types';
|
|
11
10
|
|
|
12
11
|
const _Channel = Schema.Struct({
|
|
13
12
|
name: Schema.optional(Schema.String),
|
|
14
|
-
defaultThread: Type.Ref(Thread.Thread).pipe(
|
|
13
|
+
defaultThread: Type.Ref(Thread.Thread).pipe(FormInputAnnotation.set(false)),
|
|
15
14
|
// TODO(wittjosiah): Should be an "ordered collection".
|
|
16
|
-
threads: Type.Ref(Thread.Thread).pipe(Schema.Array, Schema.mutable,
|
|
15
|
+
threads: Type.Ref(Thread.Thread).pipe(Schema.Array, Schema.mutable, FormInputAnnotation.set(false)),
|
|
17
16
|
}).pipe(Type.Obj({ typename: 'dxos.org/type/Channel', version: '0.1.0' }));
|
|
18
17
|
export interface Channel extends Schema.Schema.Type<typeof _Channel> {}
|
|
19
18
|
export interface ChannelEncoded extends Schema.Schema.Encoded<typeof _Channel> {}
|
package/src/types/index.ts
CHANGED
package/src/types/types.ts
CHANGED
|
@@ -4,28 +4,28 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Schema from 'effect/Schema';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { Key } from '@dxos/echo';
|
|
8
8
|
import { EchoObjectSchema, SpaceSchema } from '@dxos/react-client/echo';
|
|
9
9
|
import { Collection } from '@dxos/schema';
|
|
10
|
-
import { Actor, AnchoredTo, Message } from '@dxos/types';
|
|
10
|
+
import { Actor, AnchoredTo, Message, Thread } from '@dxos/types';
|
|
11
11
|
|
|
12
12
|
import { meta } from '../meta';
|
|
13
13
|
|
|
14
14
|
import * as Channel from './Channel';
|
|
15
|
-
import * as Thread from './Thread';
|
|
16
15
|
|
|
17
16
|
export namespace ThreadAction {
|
|
18
|
-
export class
|
|
17
|
+
export class OnCreateSpace extends Schema.TaggedClass<OnCreateSpace>()(`${meta.id}/action/on-space-created`, {
|
|
19
18
|
input: Schema.Struct({
|
|
20
19
|
space: SpaceSchema,
|
|
21
20
|
rootCollection: Collection.Collection,
|
|
21
|
+
isDefault: Schema.Boolean.pipe(Schema.optional),
|
|
22
22
|
}),
|
|
23
23
|
output: Schema.Void,
|
|
24
24
|
}) {}
|
|
25
25
|
|
|
26
26
|
export class CreateChannel extends Schema.TaggedClass<CreateChannel>()(`${meta.id}/action/create-channel`, {
|
|
27
27
|
input: Schema.Struct({
|
|
28
|
-
spaceId:
|
|
28
|
+
spaceId: Key.SpaceId,
|
|
29
29
|
name: Schema.optional(Schema.String),
|
|
30
30
|
}),
|
|
31
31
|
output: Schema.Struct({
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChannelContainer,
|
|
3
|
-
ChannelContainer_default
|
|
4
|
-
} from "./chunk-INQVAYPN.mjs";
|
|
5
|
-
import "./chunk-OOUDK7Q7.mjs";
|
|
6
|
-
import "./chunk-BBTXGRIR.mjs";
|
|
7
|
-
import "./chunk-FR6MEAZI.mjs";
|
|
8
|
-
import "./chunk-KOBXMDCI.mjs";
|
|
9
|
-
import "./chunk-CP7E2HRE.mjs";
|
|
10
|
-
import "./chunk-ISCHODBV.mjs";
|
|
11
|
-
import "./chunk-K2DUJRFJ.mjs";
|
|
12
|
-
export {
|
|
13
|
-
ChannelContainer,
|
|
14
|
-
ChannelContainer_default as default
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=ChannelContainer-MX5ABVGC.mjs.map
|