@dxos/react-ui-chat 0.8.4-main.84f28bd → 0.8.4-main.c1de068

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-chat",
3
- "version": "0.8.4-main.84f28bd",
3
+ "version": "0.8.4-main.c1de068",
4
4
  "description": "Chat components.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -32,41 +32,41 @@
32
32
  "@preact/signals-core": "^1.9.0",
33
33
  "@radix-ui/react-accordion": "1.2.3",
34
34
  "@radix-ui/react-context": "1.1.1",
35
- "@dxos/async": "0.8.4-main.84f28bd",
36
- "@dxos/debug": "0.8.4-main.84f28bd",
37
- "@dxos/echo-schema": "0.8.4-main.84f28bd",
38
- "@dxos/invariant": "0.8.4-main.84f28bd",
39
- "@dxos/live-object": "0.8.4-main.84f28bd",
40
- "@dxos/log": "0.8.4-main.84f28bd",
41
- "@dxos/react-ui": "0.8.4-main.84f28bd",
42
- "@dxos/react-ui-components": "0.8.4-main.84f28bd",
43
- "@dxos/react-ui-dnd": "0.8.4-main.84f28bd",
44
- "@dxos/react-ui-sfx": "0.8.4-main.84f28bd",
45
- "@dxos/react-ui-editor": "0.8.4-main.84f28bd",
46
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.84f28bd",
47
- "@dxos/react-ui-text-tooltip": "0.8.4-main.84f28bd",
48
- "@dxos/react-ui-theme": "0.8.4-main.84f28bd",
49
- "@dxos/react-ui-types": "0.8.4-main.84f28bd",
50
- "@dxos/util": "0.8.4-main.84f28bd"
35
+ "@dxos/async": "0.8.4-main.c1de068",
36
+ "@dxos/debug": "0.8.4-main.c1de068",
37
+ "@dxos/echo-schema": "0.8.4-main.c1de068",
38
+ "@dxos/invariant": "0.8.4-main.c1de068",
39
+ "@dxos/live-object": "0.8.4-main.c1de068",
40
+ "@dxos/log": "0.8.4-main.c1de068",
41
+ "@dxos/react-ui": "0.8.4-main.c1de068",
42
+ "@dxos/react-ui-components": "0.8.4-main.c1de068",
43
+ "@dxos/react-ui-dnd": "0.8.4-main.c1de068",
44
+ "@dxos/react-ui-editor": "0.8.4-main.c1de068",
45
+ "@dxos/react-ui-sfx": "0.8.4-main.c1de068",
46
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.c1de068",
47
+ "@dxos/react-ui-text-tooltip": "0.8.4-main.c1de068",
48
+ "@dxos/react-ui-theme": "0.8.4-main.c1de068",
49
+ "@dxos/react-ui-types": "0.8.4-main.c1de068",
50
+ "@dxos/util": "0.8.4-main.c1de068"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "~18.2.0",
54
54
  "@types/react-dom": "~18.2.0",
55
- "effect": "3.14.21",
55
+ "effect": "3.17.0",
56
56
  "react": "~18.2.0",
57
57
  "react-dom": "~18.2.0",
58
58
  "vite": "5.4.7",
59
- "@dxos/echo": "0.8.4-main.84f28bd",
60
- "@dxos/random": "0.8.4-main.84f28bd",
61
- "@dxos/react-client": "0.8.4-main.84f28bd",
62
- "@dxos/storybook-utils": "0.8.4-main.84f28bd"
59
+ "@dxos/echo": "0.8.4-main.c1de068",
60
+ "@dxos/random": "0.8.4-main.c1de068",
61
+ "@dxos/react-client": "0.8.4-main.c1de068",
62
+ "@dxos/storybook-utils": "0.8.4-main.c1de068"
63
63
  },
64
64
  "peerDependencies": {
65
- "effect": "3.13.3",
65
+ "effect": "^3.13.3",
66
66
  "react": "~18.2.0",
67
67
  "react-dom": "~18.2.0",
68
- "@dxos/react-ui": "0.8.4-main.84f28bd",
69
- "@dxos/react-ui-theme": "0.8.4-main.84f28bd"
68
+ "@dxos/react-ui": "0.8.4-main.c1de068",
69
+ "@dxos/react-ui-theme": "0.8.4-main.c1de068"
70
70
  },
71
71
  "publishConfig": {
72
72
  "access": "public"
@@ -61,30 +61,26 @@ export const ChatEditor = forwardRef<ChatEditorController, ChatEditorProps>(
61
61
  );
62
62
 
63
63
  // Expose editor view.
64
- useImperativeHandle(
65
- forwardRef,
66
- () => {
67
- return {
68
- focus: () => {
69
- view?.focus();
70
- },
71
- setText: (text: string) => {
72
- view?.dispatch({
73
- changes: {
74
- from: 0,
75
- to: view.state.doc.length,
76
- insert: text,
77
- },
78
- selection: {
79
- anchor: text.length,
80
- head: text.length,
81
- },
82
- });
83
- },
84
- };
85
- },
86
- [view, onSubmit],
87
- );
64
+ useImperativeHandle(forwardRef, () => {
65
+ return {
66
+ focus: () => {
67
+ view?.focus();
68
+ },
69
+ setText: (text: string) => {
70
+ view?.dispatch({
71
+ changes: {
72
+ from: 0,
73
+ to: view.state.doc.length,
74
+ insert: text,
75
+ },
76
+ selection: {
77
+ anchor: text.length,
78
+ head: text.length,
79
+ },
80
+ });
81
+ },
82
+ };
83
+ }, [view, onSubmit]);
88
84
 
89
85
  return <div ref={parentRef} className={mx('is-full', classNames)} />;
90
86
  },