@dxos/react-ui-editor 0.4.10-main.8caae1d → 0.4.10-main.930d155
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automerge.stories.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/automerge.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAGpB,OAAO,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"automerge.stories.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/automerge/automerge.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAGpB,OAAO,uBAAuB,CAAC;AAK/B,OAAO,EAAU,WAAW,EAA2C,MAAM,mBAAmB,CAAC;AAkBjG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDF,wBAME;AAoBF,eAAO,MAAM,OAAO,IAAK,CAAC;AAI1B,eAAO,MAAM,QAAQ;;;CAmBpB,CAAC"}
|
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.930d155",
|
|
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/context": "0.4.10-main.
|
|
45
|
-
"@dxos/display-name": "0.4.10-main.
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/react-
|
|
52
|
-
"@dxos/react-ui-theme": "0.4.10-main.
|
|
53
|
-
"@dxos/util": "0.4.10-main.
|
|
54
|
-
"@dxos/
|
|
42
|
+
"@dxos/async": "0.4.10-main.930d155",
|
|
43
|
+
"@dxos/debug": "0.4.10-main.930d155",
|
|
44
|
+
"@dxos/context": "0.4.10-main.930d155",
|
|
45
|
+
"@dxos/display-name": "0.4.10-main.930d155",
|
|
46
|
+
"@dxos/echo-schema": "0.4.10-main.930d155",
|
|
47
|
+
"@dxos/log": "0.4.10-main.930d155",
|
|
48
|
+
"@dxos/invariant": "0.4.10-main.930d155",
|
|
49
|
+
"@dxos/protocols": "0.4.10-main.930d155",
|
|
50
|
+
"@dxos/react-async": "0.4.10-main.930d155",
|
|
51
|
+
"@dxos/react-ui": "0.4.10-main.930d155",
|
|
52
|
+
"@dxos/react-ui-theme": "0.4.10-main.930d155",
|
|
53
|
+
"@dxos/util": "0.4.10-main.930d155",
|
|
54
|
+
"@dxos/automerge": "0.4.10-main.930d155"
|
|
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
|
-
"@braneframe/types": "0.4.10-main.
|
|
82
|
-
"@dxos/
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/echo-
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/random": "0.4.10-main.
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/react-ui": "0.4.10-main.
|
|
89
|
-
"@dxos/storybook-utils": "0.4.10-main.
|
|
80
|
+
"vitest": "^1.5.0",
|
|
81
|
+
"@braneframe/types": "0.4.10-main.930d155",
|
|
82
|
+
"@dxos/config": "0.4.10-main.930d155",
|
|
83
|
+
"@dxos/echo-typegen": "0.4.10-main.930d155",
|
|
84
|
+
"@dxos/echo-signals": "0.4.10-main.930d155",
|
|
85
|
+
"@dxos/react-client": "0.4.10-main.930d155",
|
|
86
|
+
"@dxos/random": "0.4.10-main.930d155",
|
|
87
|
+
"@dxos/keyboard": "0.4.10-main.930d155",
|
|
88
|
+
"@dxos/react-ui": "0.4.10-main.930d155",
|
|
89
|
+
"@dxos/storybook-utils": "0.4.10-main.930d155"
|
|
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.930d155"
|
|
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 } from '@dxos/echo-schema';
|
|
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(create(TextV0Type, { content: text ?? '' }));
|
|
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);
|
|
@@ -8,15 +8,9 @@ import { BroadcastChannelNetworkAdapter } from '@automerge/automerge-repo-networ
|
|
|
8
8
|
import '@preact/signals-react';
|
|
9
9
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
10
10
|
|
|
11
|
+
import { TextV0Type } from '@braneframe/types';
|
|
11
12
|
import { Repo } from '@dxos/automerge/automerge-repo';
|
|
12
|
-
import {
|
|
13
|
-
Filter,
|
|
14
|
-
DocAccessor,
|
|
15
|
-
TextCompatibilitySchema,
|
|
16
|
-
create,
|
|
17
|
-
createDocAccessor,
|
|
18
|
-
type Expando,
|
|
19
|
-
} from '@dxos/echo-schema';
|
|
13
|
+
import { Filter, DocAccessor, create, createDocAccessor, type Expando } from '@dxos/echo-schema';
|
|
20
14
|
import { type PublicKey } from '@dxos/keys';
|
|
21
15
|
import { useSpace } from '@dxos/react-client/echo';
|
|
22
16
|
import { ClientRepeater } from '@dxos/react-client/testing';
|
|
@@ -133,7 +127,7 @@ export const WithEcho = {
|
|
|
133
127
|
space.db.add(
|
|
134
128
|
create({
|
|
135
129
|
type: 'test',
|
|
136
|
-
content: create(
|
|
130
|
+
content: create(TextV0Type, { content: initialContent }),
|
|
137
131
|
}),
|
|
138
132
|
);
|
|
139
133
|
}}
|