@dxos/react-ui-thread 0.8.4-main.c1de068 → 0.8.4-main.fd6878d
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 +2 -2
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/Message/Message.d.ts.map +1 -1
- package/dist/types/src/Message/Message.stories.d.ts.map +1 -1
- package/dist/types/src/Thread/Comments.stories.d.ts.map +1 -1
- package/dist/types/src/Thread/Thread.stories.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -14
- package/src/Message/Message.stories.tsx +3 -2
- package/src/Message/Message.tsx +1 -1
- package/src/Thread/Comments.stories.tsx +2 -1
- package/src/Thread/Thread.stories.tsx +3 -2
- 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.fd6878d",
|
|
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",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
+
"source": "./src/index.ts",
|
|
13
14
|
"types": "./dist/types/src/index.d.ts",
|
|
14
15
|
"browser": "./dist/lib/browser/index.mjs"
|
|
15
16
|
}
|
|
@@ -26,8 +27,8 @@
|
|
|
26
27
|
"@preact-signals/safe-react": "^0.9.0",
|
|
27
28
|
"@radix-ui/react-primitive": "2.0.2",
|
|
28
29
|
"date-fns": "^3.3.1",
|
|
29
|
-
"@dxos/react-ui-editor": "0.8.4-main.
|
|
30
|
-
"@dxos/util": "0.8.4-main.
|
|
30
|
+
"@dxos/react-ui-editor": "0.8.4-main.fd6878d",
|
|
31
|
+
"@dxos/util": "0.8.4-main.fd6878d"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
34
|
"@types/react": "~18.2.0",
|
|
@@ -35,21 +36,21 @@
|
|
|
35
36
|
"react": "~18.2.0",
|
|
36
37
|
"react-dom": "~18.2.0",
|
|
37
38
|
"vite": "5.4.7",
|
|
38
|
-
"@dxos/echo-
|
|
39
|
-
"@dxos/echo-
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/random": "0.8.4-main.
|
|
43
|
-
"@dxos/log": "0.8.4-main.
|
|
44
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
45
|
-
"@dxos/react-ui
|
|
46
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
39
|
+
"@dxos/echo-db": "0.8.4-main.fd6878d",
|
|
40
|
+
"@dxos/echo-schema": "0.8.4-main.fd6878d",
|
|
41
|
+
"@dxos/live-object": "0.8.4-main.fd6878d",
|
|
42
|
+
"@dxos/keys": "0.8.4-main.fd6878d",
|
|
43
|
+
"@dxos/random": "0.8.4-main.fd6878d",
|
|
44
|
+
"@dxos/log": "0.8.4-main.fd6878d",
|
|
45
|
+
"@dxos/react-ui-theme": "0.8.4-main.fd6878d",
|
|
46
|
+
"@dxos/react-ui": "0.8.4-main.fd6878d",
|
|
47
|
+
"@dxos/storybook-utils": "0.8.4-main.fd6878d"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
49
50
|
"react": "~18.2.0",
|
|
50
51
|
"react-dom": "~18.2.0",
|
|
51
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
52
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
52
|
+
"@dxos/react-ui": "0.8.4-main.fd6878d",
|
|
53
|
+
"@dxos/react-ui-theme": "0.8.4-main.fd6878d"
|
|
53
54
|
},
|
|
54
55
|
"publishConfig": {
|
|
55
56
|
"access": "public"
|
|
@@ -10,11 +10,12 @@ import { PublicKey } from '@dxos/keys';
|
|
|
10
10
|
import { hoverableControls, hoverableFocusedWithinControls } from '@dxos/react-ui-theme';
|
|
11
11
|
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { type MessageEntity, MessageStoryText } from '../testing';
|
|
14
14
|
import { Thread } from '../Thread';
|
|
15
|
-
import { MessageStoryText, type MessageEntity } from '../testing';
|
|
16
15
|
import { translations } from '../translations';
|
|
17
16
|
|
|
17
|
+
import { MessageRoot } from './Message';
|
|
18
|
+
|
|
18
19
|
const DefaultStory = () => {
|
|
19
20
|
const [identityKey] = useState(PublicKey.random());
|
|
20
21
|
const [message] = useState<MessageEntity>({
|
package/src/Message/Message.tsx
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { formatDistanceToNow } from 'date-fns/formatDistanceToNow';
|
|
6
|
-
import React, { type ComponentPropsWithRef,
|
|
6
|
+
import React, { type ComponentPropsWithRef, type ComponentPropsWithoutRef, forwardRef } from 'react';
|
|
7
7
|
|
|
8
8
|
// TODO(burdon): Remove dep.
|
|
9
9
|
import { Avatar, type ThemedClassName, useTranslation } from '@dxos/react-ui';
|
|
@@ -29,11 +29,12 @@ import {
|
|
|
29
29
|
import { hoverableControls, hoverableFocusedWithinControls } from '@dxos/react-ui-theme';
|
|
30
30
|
import { withTheme } from '@dxos/storybook-utils';
|
|
31
31
|
|
|
32
|
-
import { Thread } from './Thread';
|
|
33
32
|
import { MessageBody, MessageHeading, MessageRoot, MessageTextbox } from '../Message';
|
|
34
33
|
import { type MessageEntity } from '../testing';
|
|
35
34
|
import { translations } from '../translations';
|
|
36
35
|
|
|
36
|
+
import { Thread } from './Thread';
|
|
37
|
+
|
|
37
38
|
faker.seed(101);
|
|
38
39
|
|
|
39
40
|
const authorId = PublicKey.random().toHex();
|
|
@@ -12,11 +12,12 @@ import { createBasicExtensions, createThemeExtensions } from '@dxos/react-ui-edi
|
|
|
12
12
|
import { hoverableControls, hoverableFocusedWithinControls } from '@dxos/react-ui-theme';
|
|
13
13
|
import { type Meta, withLayout, withTheme } from '@dxos/storybook-utils';
|
|
14
14
|
|
|
15
|
-
import { Thread } from './Thread';
|
|
16
15
|
import { MessageRoot, MessageTextbox } from '../Message';
|
|
17
|
-
import {
|
|
16
|
+
import { type MessageEntity, MessageStoryText } from '../testing';
|
|
18
17
|
import { translations } from '../translations';
|
|
19
18
|
|
|
19
|
+
import { Thread } from './Thread';
|
|
20
|
+
|
|
20
21
|
faker.seed(1);
|
|
21
22
|
|
|
22
23
|
const DefaultStory = () => {
|
package/src/Thread/Thread.tsx
CHANGED
|
@@ -95,8 +95,8 @@ const ThreadStatus = forwardRef<HTMLDivElement, ThreadStatusProps>(
|
|
|
95
95
|
>
|
|
96
96
|
<Icon
|
|
97
97
|
icon='ph--spinner--bold'
|
|
98
|
-
data-visible={activity ? 'show' : 'hide'}
|
|
99
98
|
classNames='is-6 bs-4 invisible data-[visible=show]:visible animate-spin-slow'
|
|
99
|
+
data-visible={activity ? 'show' : 'hide'}
|
|
100
100
|
/>
|
|
101
101
|
<span className='truncate min-is-0' aria-live='polite'>
|
|
102
102
|
{activity ? children : null}
|