@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-thread",
3
- "version": "0.8.4-main.21d9917",
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.21d9917",
34
- "@dxos/ui-editor": "0.8.4-main.21d9917",
35
- "@dxos/util": "0.8.4-main.21d9917"
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-db": "0.8.4-main.21d9917",
44
- "@dxos/echo": "0.8.4-main.21d9917",
45
- "@dxos/log": "0.8.4-main.21d9917",
46
- "@dxos/react-ui": "0.8.4-main.21d9917",
47
- "@dxos/random": "0.8.4-main.21d9917",
48
- "@dxos/ui-theme": "0.8.4-main.21d9917",
49
- "@dxos/storybook-utils": "0.8.4-main.21d9917",
50
- "@dxos/keys": "0.8.4-main.21d9917"
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/react-ui": "0.8.4-main.21d9917",
56
- "@dxos/ui-theme": "0.8.4-main.21d9917"
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"
@@ -39,7 +39,7 @@ const meta = {
39
39
  title: 'ui/react-ui-thread/Message',
40
40
  component: MessageRoot as any,
41
41
  render: DefaultStory,
42
- decorators: [withTheme],
42
+ decorators: [withTheme()],
43
43
  parameters: {
44
44
  layout: 'fullscreen',
45
45
  translations,
@@ -217,12 +217,14 @@ const StoryThread: FC<{
217
217
  );
218
218
  };
219
219
 
220
- const Sidebar: FC<{
220
+ type SidebarProps = {
221
221
  threads: StoryCommentThread[];
222
222
  selected?: string;
223
223
  onSelect: (thread: string) => void;
224
224
  onResolve: (thread: string) => void;
225
- }> = ({ threads, selected, onSelect, onResolve }) => {
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',
@@ -85,7 +85,7 @@ const meta = {
85
85
  title: 'ui/react-ui-thread/Thread',
86
86
  component: Thread.Root,
87
87
  render: DefaultStory,
88
- decorators: [withTheme],
88
+ decorators: [withTheme()],
89
89
  parameters: {
90
90
  layout: 'fullscreen',
91
91
  translations,
@@ -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): Why is this exported?
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
  //