@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-thread",
3
- "version": "0.8.4-main.c1de068",
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.c1de068",
30
- "@dxos/util": "0.8.4-main.c1de068"
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-schema": "0.8.4-main.c1de068",
39
- "@dxos/echo-db": "0.8.4-main.c1de068",
40
- "@dxos/keys": "0.8.4-main.c1de068",
41
- "@dxos/live-object": "0.8.4-main.c1de068",
42
- "@dxos/random": "0.8.4-main.c1de068",
43
- "@dxos/log": "0.8.4-main.c1de068",
44
- "@dxos/react-ui": "0.8.4-main.c1de068",
45
- "@dxos/react-ui-theme": "0.8.4-main.c1de068",
46
- "@dxos/storybook-utils": "0.8.4-main.c1de068"
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.c1de068",
52
- "@dxos/react-ui-theme": "0.8.4-main.c1de068"
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 { MessageRoot } from './Message';
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>({
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import { formatDistanceToNow } from 'date-fns/formatDistanceToNow';
6
- import React, { type ComponentPropsWithRef, forwardRef, type ComponentPropsWithoutRef } from 'react';
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 { MessageStoryText, type MessageEntity } from '../testing';
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 = () => {
@@ -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}