@dxos/react-ui-editor 0.4.10-main.61a4cf6 → 0.4.10-main.6f15454
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-editor",
|
|
3
|
-
"version": "0.4.10-main.
|
|
3
|
+
"version": "0.4.10-main.6f15454",
|
|
4
4
|
"description": "Document editing experience within a DXOS shell.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
"lodash.sortby": "^4.7.0",
|
|
40
40
|
"react-dropzone": "^14.2.3",
|
|
41
41
|
"style-mod": "^4.1.0",
|
|
42
|
-
"@dxos/async": "0.4.10-main.
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/protocols": "0.4.10-main.
|
|
50
|
-
"@dxos/log": "0.4.10-main.
|
|
51
|
-
"@dxos/react-
|
|
52
|
-
"@dxos/react-
|
|
53
|
-
"@dxos/util": "0.4.10-main.
|
|
54
|
-
"@dxos/react-ui-theme": "0.4.10-main.
|
|
42
|
+
"@dxos/async": "0.4.10-main.6f15454",
|
|
43
|
+
"@dxos/automerge": "0.4.10-main.6f15454",
|
|
44
|
+
"@dxos/context": "0.4.10-main.6f15454",
|
|
45
|
+
"@dxos/debug": "0.4.10-main.6f15454",
|
|
46
|
+
"@dxos/display-name": "0.4.10-main.6f15454",
|
|
47
|
+
"@dxos/echo-schema": "0.4.10-main.6f15454",
|
|
48
|
+
"@dxos/invariant": "0.4.10-main.6f15454",
|
|
49
|
+
"@dxos/protocols": "0.4.10-main.6f15454",
|
|
50
|
+
"@dxos/log": "0.4.10-main.6f15454",
|
|
51
|
+
"@dxos/react-async": "0.4.10-main.6f15454",
|
|
52
|
+
"@dxos/react-ui": "0.4.10-main.6f15454",
|
|
53
|
+
"@dxos/util": "0.4.10-main.6f15454",
|
|
54
|
+
"@dxos/react-ui-theme": "0.4.10-main.6f15454"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@automerge/automerge-repo-network-broadcastchannel": "^1.1.4",
|
|
@@ -67,32 +67,32 @@
|
|
|
67
67
|
"@types/react": "^18.0.21",
|
|
68
68
|
"@types/react-dom": "^18.0.6",
|
|
69
69
|
"@types/react-test-renderer": "^17.0.2",
|
|
70
|
-
"@vitest/browser": "^1.
|
|
71
|
-
"@vitest/ui": "^1.
|
|
70
|
+
"@vitest/browser": "^1.5.0",
|
|
71
|
+
"@vitest/ui": "^1.5.0",
|
|
72
72
|
"happy-dom": "^13.3.1",
|
|
73
73
|
"jsdom": "^20.0.1",
|
|
74
74
|
"react": "^18.2.0",
|
|
75
75
|
"react-dom": "^18.2.0",
|
|
76
76
|
"react-test-renderer": "^18.2.0",
|
|
77
|
-
"vite": "^5.
|
|
77
|
+
"vite": "^5.2.9",
|
|
78
78
|
"vite-plugin-top-level-await": "^1.4.1",
|
|
79
79
|
"vite-plugin-wasm": "^3.3.0",
|
|
80
|
-
"vitest": "^1.
|
|
81
|
-
"@
|
|
82
|
-
"@
|
|
83
|
-
"@dxos/echo-signals": "0.4.10-main.
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/random": "0.4.10-main.
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/react-
|
|
89
|
-
"@dxos/
|
|
80
|
+
"vitest": "^1.5.0",
|
|
81
|
+
"@dxos/config": "0.4.10-main.6f15454",
|
|
82
|
+
"@braneframe/types": "0.4.10-main.6f15454",
|
|
83
|
+
"@dxos/echo-signals": "0.4.10-main.6f15454",
|
|
84
|
+
"@dxos/echo-typegen": "0.4.10-main.6f15454",
|
|
85
|
+
"@dxos/keyboard": "0.4.10-main.6f15454",
|
|
86
|
+
"@dxos/random": "0.4.10-main.6f15454",
|
|
87
|
+
"@dxos/react-client": "0.4.10-main.6f15454",
|
|
88
|
+
"@dxos/react-ui": "0.4.10-main.6f15454",
|
|
89
|
+
"@dxos/storybook-utils": "0.4.10-main.6f15454"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"@phosphor-icons/react": "^2.0.5",
|
|
93
93
|
"react": "^18.2.0",
|
|
94
94
|
"react-dom": "^18.2.0",
|
|
95
|
-
"@dxos/react-client": "0.4.10-main.
|
|
95
|
+
"@dxos/react-client": "0.4.10-main.6f15454"
|
|
96
96
|
},
|
|
97
97
|
"publishConfig": {
|
|
98
98
|
"access": "public"
|
|
@@ -11,7 +11,7 @@ import React, { type FC, type KeyboardEvent, StrictMode, useMemo, useRef, useSta
|
|
|
11
11
|
import { createRoot } from 'react-dom/client';
|
|
12
12
|
|
|
13
13
|
import { TextV0Type } from '@braneframe/types';
|
|
14
|
-
import { createDocAccessor, create,
|
|
14
|
+
import { createDocAccessor, create, createEchoObject } from '@dxos/echo-schema';
|
|
15
15
|
import { keySymbols, parseShortcut } from '@dxos/keyboard';
|
|
16
16
|
import { PublicKey } from '@dxos/keys';
|
|
17
17
|
import { log } from '@dxos/log';
|
|
@@ -252,7 +252,7 @@ const Story = ({
|
|
|
252
252
|
placeholder = 'New document.',
|
|
253
253
|
...props
|
|
254
254
|
}: StoryProps) => {
|
|
255
|
-
const [object] = useState(
|
|
255
|
+
const [object] = useState(createEchoObject(create(TextV0Type, { content: text ?? '' })));
|
|
256
256
|
|
|
257
257
|
const viewRef = useRef<EditorView>(null);
|
|
258
258
|
useComments(viewRef.current, id, comments);
|