@dxos/react-ui-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/index.mjs.map +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/Thread/Comments.stories.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -14
- package/src/Message/Message.stories.tsx +1 -1
- package/src/Thread/Comments.stories.tsx +5 -3
- package/src/Thread/Thread.stories.tsx +1 -1
- package/src/Thread/Thread.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-thread",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.2244d791bb",
|
|
4
4
|
"description": "A set of components to use with threads, including comments and messages.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@radix-ui/react-primitive": "2.0.2",
|
|
32
32
|
"date-fns": "^3.3.1",
|
|
33
|
-
"@dxos/react-ui-editor": "0.8.4-main.
|
|
34
|
-
"@dxos/ui-editor": "0.8.4-main.
|
|
35
|
-
"@dxos/util": "0.8.4-main.
|
|
33
|
+
"@dxos/react-ui-editor": "0.8.4-main.2244d791bb",
|
|
34
|
+
"@dxos/ui-editor": "0.8.4-main.2244d791bb",
|
|
35
|
+
"@dxos/util": "0.8.4-main.2244d791bb"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/react": "~19.2.7",
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
"react": "~19.2.3",
|
|
41
41
|
"react-dom": "~19.2.3",
|
|
42
42
|
"vite": "7.1.9",
|
|
43
|
-
"@dxos/echo
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
43
|
+
"@dxos/echo": "0.8.4-main.2244d791bb",
|
|
44
|
+
"@dxos/random": "0.8.4-main.2244d791bb",
|
|
45
|
+
"@dxos/echo-db": "0.8.4-main.2244d791bb",
|
|
46
|
+
"@dxos/keys": "0.8.4-main.2244d791bb",
|
|
47
|
+
"@dxos/react-ui": "0.8.4-main.2244d791bb",
|
|
48
|
+
"@dxos/log": "0.8.4-main.2244d791bb",
|
|
49
|
+
"@dxos/ui-theme": "0.8.4-main.2244d791bb",
|
|
50
|
+
"@dxos/storybook-utils": "0.8.4-main.2244d791bb"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": "~19.2.3",
|
|
54
54
|
"react-dom": "~19.2.3",
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/ui
|
|
55
|
+
"@dxos/ui-theme": "0.8.4-main.2244d791bb",
|
|
56
|
+
"@dxos/react-ui": "0.8.4-main.2244d791bb"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
@@ -217,12 +217,14 @@ const StoryThread: FC<{
|
|
|
217
217
|
);
|
|
218
218
|
};
|
|
219
219
|
|
|
220
|
-
|
|
220
|
+
type SidebarProps = {
|
|
221
221
|
threads: StoryCommentThread[];
|
|
222
222
|
selected?: string;
|
|
223
223
|
onSelect: (thread: string) => void;
|
|
224
224
|
onResolve: (thread: string) => void;
|
|
225
|
-
}
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
const Sidebar = ({ threads, selected, onSelect, onResolve }: SidebarProps) => {
|
|
226
228
|
// Sort by y-position.
|
|
227
229
|
const sortedThreads = useMemo(() => {
|
|
228
230
|
const sorted = [...threads];
|
|
@@ -376,7 +378,7 @@ const meta = {
|
|
|
376
378
|
title: 'ui/react-ui-thread/Comments',
|
|
377
379
|
component: StoryThread as any,
|
|
378
380
|
render: DefaultStory,
|
|
379
|
-
decorators: [withTheme],
|
|
381
|
+
decorators: [withTheme()],
|
|
380
382
|
parameters: {
|
|
381
383
|
translations,
|
|
382
384
|
layout: 'fullscreen',
|
package/src/Thread/Thread.tsx
CHANGED
|
@@ -10,7 +10,7 @@ import { hoverableControlItem, hoverableFocusedWithinControls, mx } from '@dxos/
|
|
|
10
10
|
import { translationKey } from '../translations';
|
|
11
11
|
import type { ThreadEntity } from '../types';
|
|
12
12
|
|
|
13
|
-
// TODO(burdon):
|
|
13
|
+
// TODO(burdon): Avoid exporting fragments.
|
|
14
14
|
export const threadLayout = 'is-full place-self-start grid grid-cols-[var(--rail-size)_1fr]';
|
|
15
15
|
|
|
16
16
|
//
|