@dxos/react-ui-thread 0.6.13-main.548ca8d → 0.6.13-main.ed424a1
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 +12 -12
- package/src/Thread/Comments.stories.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-ui-thread",
|
|
3
|
-
"version": "0.6.13-main.
|
|
3
|
+
"version": "0.6.13-main.ed424a1",
|
|
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",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@radix-ui/react-primitive": "^1.0.2",
|
|
25
25
|
"date-fns": "^3.3.1",
|
|
26
|
-
"@dxos/react-ui": "0.6.13-main.
|
|
27
|
-
"@dxos/react-ui-editor": "0.6.13-main.
|
|
28
|
-
"@dxos/react-ui-mosaic": "0.6.13-main.
|
|
29
|
-
"@dxos/react-ui-theme": "0.6.13-main.
|
|
30
|
-
"@dxos/util": "0.6.13-main.
|
|
26
|
+
"@dxos/react-ui": "0.6.13-main.ed424a1",
|
|
27
|
+
"@dxos/react-ui-editor": "0.6.13-main.ed424a1",
|
|
28
|
+
"@dxos/react-ui-mosaic": "0.6.13-main.ed424a1",
|
|
29
|
+
"@dxos/react-ui-theme": "0.6.13-main.ed424a1",
|
|
30
|
+
"@dxos/util": "0.6.13-main.ed424a1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"react": "~18.2.0",
|
|
37
37
|
"react-dom": "~18.2.0",
|
|
38
38
|
"vite": "5.4.7",
|
|
39
|
-
"@dxos/echo-
|
|
40
|
-
"@dxos/echo-
|
|
41
|
-
"@dxos/keys": "0.6.13-main.
|
|
42
|
-
"@dxos/log": "0.6.13-main.
|
|
43
|
-
"@dxos/random": "0.6.13-main.
|
|
44
|
-
"@dxos/storybook-utils": "0.6.13-main.
|
|
39
|
+
"@dxos/echo-schema": "0.6.13-main.ed424a1",
|
|
40
|
+
"@dxos/echo-db": "0.6.13-main.ed424a1",
|
|
41
|
+
"@dxos/keys": "0.6.13-main.ed424a1",
|
|
42
|
+
"@dxos/log": "0.6.13-main.ed424a1",
|
|
43
|
+
"@dxos/random": "0.6.13-main.ed424a1",
|
|
44
|
+
"@dxos/storybook-utils": "0.6.13-main.ed424a1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -7,7 +7,7 @@ import '@dxos-theme';
|
|
|
7
7
|
import { Check, Trash } from '@phosphor-icons/react';
|
|
8
8
|
import React, { type FC, useEffect, useMemo, useRef, useState } from 'react';
|
|
9
9
|
|
|
10
|
-
import { createDocAccessor,
|
|
10
|
+
import { createDocAccessor, createObject } from '@dxos/echo-db';
|
|
11
11
|
import { create, Expando } from '@dxos/echo-schema';
|
|
12
12
|
import { PublicKey } from '@dxos/keys';
|
|
13
13
|
import { log } from '@dxos/log';
|
|
@@ -232,7 +232,7 @@ type StoryProps = {
|
|
|
232
232
|
};
|
|
233
233
|
|
|
234
234
|
const Story = ({ text, autoCreate }: StoryProps) => {
|
|
235
|
-
const [item] = useState(
|
|
235
|
+
const [item] = useState(createObject(create(Expando, { content: text ?? '' })));
|
|
236
236
|
const [threads, setThreads] = useState<StoryCommentThread[]>([]);
|
|
237
237
|
const [selected, setSelected] = useState<string>();
|
|
238
238
|
|