@dxos/react-ui-editor 0.5.8 → 0.5.9-main.079a532

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.5.8",
3
+ "version": "0.5.9-main.079a532",
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.5.8",
43
- "@dxos/context": "0.5.8",
44
- "@dxos/display-name": "0.5.8",
45
- "@dxos/automerge": "0.5.8",
46
- "@dxos/debug": "0.5.8",
47
- "@dxos/echo-schema": "0.5.8",
48
- "@dxos/invariant": "0.5.8",
49
- "@dxos/log": "0.5.8",
50
- "@dxos/protocols": "0.5.8",
51
- "@dxos/react-async": "0.5.8",
52
- "@dxos/react-ui-theme": "0.5.8",
53
- "@dxos/util": "0.5.8",
54
- "@dxos/react-ui": "0.5.8"
42
+ "@dxos/async": "0.5.9-main.079a532",
43
+ "@dxos/context": "0.5.9-main.079a532",
44
+ "@dxos/automerge": "0.5.9-main.079a532",
45
+ "@dxos/debug": "0.5.9-main.079a532",
46
+ "@dxos/display-name": "0.5.9-main.079a532",
47
+ "@dxos/echo-schema": "0.5.9-main.079a532",
48
+ "@dxos/invariant": "0.5.9-main.079a532",
49
+ "@dxos/protocols": "0.5.9-main.079a532",
50
+ "@dxos/log": "0.5.9-main.079a532",
51
+ "@dxos/react-async": "0.5.9-main.079a532",
52
+ "@dxos/react-ui": "0.5.9-main.079a532",
53
+ "@dxos/react-ui-theme": "0.5.9-main.079a532",
54
+ "@dxos/util": "0.5.9-main.079a532"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@phosphor-icons/react": "^2.1.5",
@@ -77,22 +77,22 @@
77
77
  "vite-plugin-top-level-await": "^1.4.1",
78
78
  "vite-plugin-wasm": "^3.3.0",
79
79
  "vitest": "^1.5.0",
80
- "@braneframe/types": "0.5.8",
81
- "@dxos/config": "0.5.8",
82
- "@dxos/automerge": "0.5.8",
83
- "@dxos/echo-signals": "0.5.8",
84
- "@dxos/echo-typegen": "0.5.8",
85
- "@dxos/keyboard": "0.5.8",
86
- "@dxos/react-client": "0.5.8",
87
- "@dxos/storybook-utils": "0.5.8",
88
- "@dxos/react-ui": "0.5.8",
89
- "@dxos/random": "0.5.8"
80
+ "@dxos/config": "0.5.9-main.079a532",
81
+ "@dxos/echo-signals": "0.5.9-main.079a532",
82
+ "@braneframe/types": "0.5.9-main.079a532",
83
+ "@dxos/automerge": "0.5.9-main.079a532",
84
+ "@dxos/echo-typegen": "0.5.9-main.079a532",
85
+ "@dxos/keyboard": "0.5.9-main.079a532",
86
+ "@dxos/random": "0.5.9-main.079a532",
87
+ "@dxos/react-client": "0.5.9-main.079a532",
88
+ "@dxos/storybook-utils": "0.5.9-main.079a532",
89
+ "@dxos/react-ui": "0.5.9-main.079a532"
90
90
  },
91
91
  "peerDependencies": {
92
- "@phosphor-icons/react": "^2.0.5",
92
+ "@phosphor-icons/react": "^2.1.5",
93
93
  "react": "^18.2.0",
94
94
  "react-dom": "^18.2.0",
95
- "@dxos/react-client": "0.5.8"
95
+ "@dxos/react-client": "0.5.9-main.079a532"
96
96
  },
97
97
  "publishConfig": {
98
98
  "access": "public"
@@ -10,7 +10,7 @@ import defaultsDeep from 'lodash.defaultsdeep';
10
10
  import React, { type FC, type KeyboardEvent, StrictMode, useMemo, useRef, useState } from 'react';
11
11
  import { createRoot } from 'react-dom/client';
12
12
 
13
- import { TextV0Type } from '@braneframe/types';
13
+ import { TextType } from '@braneframe/types';
14
14
  import { create } from '@dxos/echo-schema';
15
15
  import { keySymbols, parseShortcut } from '@dxos/keyboard';
16
16
  import { PublicKey } from '@dxos/keys';
@@ -256,7 +256,7 @@ const Story = ({
256
256
  placeholder = 'New document.',
257
257
  ...props
258
258
  }: StoryProps) => {
259
- const [object] = useState(createEchoObject(create(TextV0Type, { content: text ?? '' })));
259
+ const [object] = useState(createEchoObject(create(TextType, { content: text ?? '' })));
260
260
 
261
261
  const viewRef = useRef<EditorView>(null);
262
262
  useComments(viewRef.current, id, comments);
@@ -6,7 +6,7 @@ import '@dxosTheme';
6
6
 
7
7
  import React, { type FC, useState } from 'react';
8
8
 
9
- import { TextV0Type } from '@braneframe/types';
9
+ import { TextType } from '@braneframe/types';
10
10
  import { create } from '@dxos/echo-schema';
11
11
  import { PublicKey } from '@dxos/keys';
12
12
  import { faker } from '@dxos/random';
@@ -37,7 +37,7 @@ faker.seed(101);
37
37
 
38
38
  const Story: FC<{ content: string }> = ({ content }) => {
39
39
  const { themeMode } = useThemeContext();
40
- const [text] = useState(create(TextV0Type, { content }));
40
+ const [text] = useState(create(TextType, { content }));
41
41
  const [formattingState, formattingObserver] = useFormattingState();
42
42
  const { parentRef, view } = useTextEditor(() => {
43
43
  return {
@@ -7,7 +7,7 @@ import '@dxosTheme';
7
7
  import '@preact/signals-react';
8
8
  import React, { useEffect, useMemo, useState } from 'react';
9
9
 
10
- import { TextV0Type } from '@braneframe/types';
10
+ import { TextType } from '@braneframe/types';
11
11
  import { Repo } from '@dxos/automerge/automerge-repo';
12
12
  import { BroadcastChannelNetworkAdapter } from '@dxos/automerge/automerge-repo-network-broadcastchannel';
13
13
  import { create, type Expando } from '@dxos/echo-schema';
@@ -127,7 +127,7 @@ export const WithEcho = {
127
127
  space.db.add(
128
128
  create({
129
129
  type: 'test',
130
- content: create(TextV0Type, { content: initialContent }),
130
+ content: create(TextType, { content: initialContent }),
131
131
  }),
132
132
  );
133
133
  }}