@dxos/react-ui-thread 0.8.4-main.cb12b3f963 → 0.8.4-main.d05539e30a

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.cb12b3f963",
3
+ "version": "0.8.4-main.d05539e30a",
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",
@@ -8,7 +8,7 @@
8
8
  "type": "git",
9
9
  "url": "https://github.com/dxos/dxos"
10
10
  },
11
- "license": "MIT",
11
+ "license": "FSL-1.1-Apache-2.0",
12
12
  "author": "DXOS.org",
13
13
  "sideEffects": false,
14
14
  "type": "module",
@@ -36,30 +36,30 @@
36
36
  "dependencies": {
37
37
  "@radix-ui/react-primitive": "2.0.2",
38
38
  "date-fns": "^3.6.0",
39
- "@dxos/react-ui-editor": "0.8.4-main.cb12b3f963",
40
- "@dxos/util": "0.8.4-main.cb12b3f963",
41
- "@dxos/ui-editor": "0.8.4-main.cb12b3f963"
39
+ "@dxos/react-ui-editor": "0.8.4-main.d05539e30a",
40
+ "@dxos/util": "0.8.4-main.d05539e30a",
41
+ "@dxos/ui-editor": "0.8.4-main.d05539e30a"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/react": "~19.2.7",
45
45
  "@types/react-dom": "~19.2.3",
46
46
  "react": "~19.2.3",
47
47
  "react-dom": "~19.2.3",
48
- "vite": "^8.0.10",
49
- "@dxos/keys": "0.8.4-main.cb12b3f963",
50
- "@dxos/log": "0.8.4-main.cb12b3f963",
51
- "@dxos/echo": "0.8.4-main.cb12b3f963",
52
- "@dxos/echo-db": "0.8.4-main.cb12b3f963",
53
- "@dxos/react-ui": "0.8.4-main.cb12b3f963",
54
- "@dxos/ui-theme": "0.8.4-main.cb12b3f963",
55
- "@dxos/storybook-utils": "0.8.4-main.cb12b3f963",
56
- "@dxos/random": "0.8.4-main.cb12b3f963"
48
+ "vite": "^8.0.13",
49
+ "@dxos/echo": "0.8.4-main.d05539e30a",
50
+ "@dxos/echo-db": "0.8.4-main.d05539e30a",
51
+ "@dxos/log": "0.8.4-main.d05539e30a",
52
+ "@dxos/keys": "0.8.4-main.d05539e30a",
53
+ "@dxos/random": "0.8.4-main.d05539e30a",
54
+ "@dxos/storybook-utils": "0.8.4-main.d05539e30a",
55
+ "@dxos/react-ui": "0.8.4-main.d05539e30a",
56
+ "@dxos/ui-theme": "0.8.4-main.d05539e30a"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "react": "~19.2.3",
60
60
  "react-dom": "~19.2.3",
61
- "@dxos/react-ui": "0.8.4-main.cb12b3f963",
62
- "@dxos/ui-theme": "0.8.4-main.cb12b3f963"
61
+ "@dxos/react-ui": "0.8.4-main.d05539e30a",
62
+ "@dxos/ui-theme": "0.8.4-main.d05539e30a"
63
63
  },
64
64
  "publishConfig": {
65
65
  "access": "public"
@@ -31,24 +31,21 @@ export const MessageRoot = forwardRef<HTMLDivElement, MessageRootProps>(
31
31
  return (
32
32
  <Avatar.Root>
33
33
  <div
34
- role='none'
35
34
  data-testid='thread.message'
36
35
  {...rootProps}
37
36
  className={mx('grid grid-cols-subgrid col-span-2', classNames)}
38
37
  ref={forwardedRef}
39
38
  >
40
- <div role='none' className='flex flex-col items-center gap-2 pt-1'>
39
+ <div className='flex flex-col items-center gap-2 pt-1'>
41
40
  <Avatar.Content
42
41
  size={avatarSize}
43
42
  hue={authorAvatarProps?.hue || hexToHue(authorId ?? '0')}
44
43
  fallback={authorAvatarProps?.emoji || hexToEmoji(authorId ?? '0')}
45
44
  {...(authorImgSrc && { imgSrc: authorImgSrc })}
46
45
  />
47
- {continues && <div role='none' className='w-px grow bg-separator' />}
48
- </div>
49
- <div role='none' className='py-1 min-w-0'>
50
- {children}
46
+ {continues && <div className='w-px grow bg-separator' />}
51
47
  </div>
48
+ <div className='py-1 min-w-0'>{children}</div>
52
49
  </div>
53
50
  </Avatar.Root>
54
51
  );
@@ -60,7 +57,7 @@ export type MessageHeadingProps = ThemedClassName<ComponentPropsWithoutRef<'div'
60
57
 
61
58
  export const MessageHeading = ({ children, classNames, timestamp, authorName, ...props }: MessageHeadingProps) => {
62
59
  return (
63
- <div role='none' {...props} className={mx('flex gap-2 items-start', classNames)}>
60
+ <div {...props} className={mx('flex gap-2 items-start', classNames)}>
64
61
  <p className='grow'>
65
62
  <MessageAuthorName authorName={authorName} />
66
63
  {timestamp && <MessageTime timestamp={timestamp} />}
@@ -166,7 +163,6 @@ export const MessageTextbox = ({
166
163
  return (
167
164
  <MessageRoot {...{ id, authorId, authorName, authorImgSrc, authorAvatarProps }} continues={false}>
168
165
  <div
169
- role='none'
170
166
  ref={parentRef}
171
167
  className={mx('py-0.5 me-1 rounded-xs dx-focus-ring', disabled && 'opacity-50')}
172
168
  {...focusAttributes}
@@ -349,7 +349,7 @@ const DefaultStory = ({ text, autoCreate }: DefaultStoryProps) => {
349
349
 
350
350
  return (
351
351
  <main className='fixed inset-0 grid grid-cols-[1fr_24rem]'>
352
- <div role='none' className='max-h-full overflow-y-auto p-4'>
352
+ <div className='max-h-full overflow-y-auto p-4'>
353
353
  <Editor
354
354
  initialValue={item.content}
355
355
  selected={selected}
@@ -361,7 +361,7 @@ const DefaultStory = ({ text, autoCreate }: DefaultStoryProps) => {
361
361
  />
362
362
  </div>
363
363
 
364
- <div role='none' className='max-h-full overflow-y-auto p-4'>
364
+ <div className='max-h-full overflow-y-auto p-4'>
365
365
  <Sidebar
366
366
  threads={visibleThreads}
367
367
  selected={selected}
@@ -56,10 +56,10 @@ const ThreadHeader = forwardRef<HTMLParagraphElement, ThreadHeaderProps>(
56
56
  ({ children, detached, ...props }, forwardedRef) => {
57
57
  return (
58
58
  <>
59
- <div role='none' className='flex items-center justify-center text-description'>
59
+ <div className='flex items-center justify-center text-description'>
60
60
  <Icon icon='ph--caret-double-right--regular' />
61
61
  </div>
62
- <div role='none' className='flex items-center overflow-hidden'>
62
+ <div className='flex items-center overflow-hidden'>
63
63
  <p
64
64
  role='heading'
65
65
  data-testid='thread.heading'
package/src/testing.tsx CHANGED
@@ -46,10 +46,7 @@ export type MessagePartProps<PartValue> = {
46
46
 
47
47
  export const MessageStoryBlock = <PartValue,>({ part }: MessagePartProps<PartValue>) => {
48
48
  return (
49
- <div
50
- role='none'
51
- className={mx('grid grid-cols-subgrid col-span-3', hoverableControls, hoverableFocusedWithinControls)}
52
- >
49
+ <div className={mx('grid grid-cols-subgrid col-span-3', hoverableControls, hoverableFocusedWithinControls)}>
53
50
  <pre className='font-mono max-w-full overflow-x-auto col-span-3'>
54
51
  <code>{JSON.stringify(part, undefined, 2)}</code>
55
52
  </pre>