@dxos/react-ui-chat 0.8.4-main.406dc2a → 0.8.4-main.548089c

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.406dc2a",
3
+ "version": "0.8.4-main.548089c",
4
4
  "description": "Chat components.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -34,41 +34,41 @@
34
34
  "@preact/signals-core": "^1.12.1",
35
35
  "@radix-ui/react-accordion": "1.2.3",
36
36
  "@radix-ui/react-context": "1.1.1",
37
- "@dxos/async": "0.8.4-main.406dc2a",
38
- "@dxos/debug": "0.8.4-main.406dc2a",
39
- "@dxos/invariant": "0.8.4-main.406dc2a",
40
- "@dxos/log": "0.8.4-main.406dc2a",
41
- "@dxos/react-ui": "0.8.4-main.406dc2a",
42
- "@dxos/echo": "0.8.4-main.406dc2a",
43
- "@dxos/live-object": "0.8.4-main.406dc2a",
44
- "@dxos/react-ui-components": "0.8.4-main.406dc2a",
45
- "@dxos/react-ui-dnd": "0.8.4-main.406dc2a",
46
- "@dxos/react-ui-editor": "0.8.4-main.406dc2a",
47
- "@dxos/react-ui-sfx": "0.8.4-main.406dc2a",
48
- "@dxos/react-ui-text-tooltip": "0.8.4-main.406dc2a",
49
- "@dxos/react-ui-theme": "0.8.4-main.406dc2a",
50
- "@dxos/react-ui-types": "0.8.4-main.406dc2a",
51
- "@dxos/util": "0.8.4-main.406dc2a",
52
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.406dc2a"
37
+ "@dxos/async": "0.8.4-main.548089c",
38
+ "@dxos/debug": "0.8.4-main.548089c",
39
+ "@dxos/echo": "0.8.4-main.548089c",
40
+ "@dxos/invariant": "0.8.4-main.548089c",
41
+ "@dxos/log": "0.8.4-main.548089c",
42
+ "@dxos/react-ui": "0.8.4-main.548089c",
43
+ "@dxos/react-ui-components": "0.8.4-main.548089c",
44
+ "@dxos/react-ui-dnd": "0.8.4-main.548089c",
45
+ "@dxos/react-ui-editor": "0.8.4-main.548089c",
46
+ "@dxos/live-object": "0.8.4-main.548089c",
47
+ "@dxos/react-ui-text-tooltip": "0.8.4-main.548089c",
48
+ "@dxos/react-ui-theme": "0.8.4-main.548089c",
49
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.548089c",
50
+ "@dxos/react-ui-types": "0.8.4-main.548089c",
51
+ "@dxos/util": "0.8.4-main.548089c",
52
+ "@dxos/react-ui-sfx": "0.8.4-main.548089c"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/react": "~19.2.2",
56
- "@types/react-dom": "~19.2.1",
56
+ "@types/react-dom": "~19.2.2",
57
57
  "effect": "3.18.3",
58
58
  "react": "~19.2.0",
59
59
  "react-dom": "~19.2.0",
60
60
  "vite": "7.1.9",
61
- "@dxos/echo": "0.8.4-main.406dc2a",
62
- "@dxos/random": "0.8.4-main.406dc2a",
63
- "@dxos/react-client": "0.8.4-main.406dc2a",
64
- "@dxos/storybook-utils": "0.8.4-main.406dc2a"
61
+ "@dxos/echo": "0.8.4-main.548089c",
62
+ "@dxos/react-client": "0.8.4-main.548089c",
63
+ "@dxos/storybook-utils": "0.8.4-main.548089c",
64
+ "@dxos/random": "0.8.4-main.548089c"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "effect": "^3.13.3",
68
68
  "react": "^19.0.0",
69
69
  "react-dom": "^19.0.0",
70
- "@dxos/react-ui": "0.8.4-main.406dc2a",
71
- "@dxos/react-ui-theme": "0.8.4-main.406dc2a"
70
+ "@dxos/react-ui": "0.8.4-main.548089c",
71
+ "@dxos/react-ui-theme": "0.8.4-main.548089c"
72
72
  },
73
73
  "publishConfig": {
74
74
  "access": "public"
@@ -6,7 +6,7 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';
6
6
  import React, { useState } from 'react';
7
7
 
8
8
  import { Input, Toolbar } from '@dxos/react-ui';
9
- import { withTheme } from '@dxos/react-ui/testing';
9
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
10
10
 
11
11
  import { translations } from '../../translations';
12
12
 
@@ -42,7 +42,7 @@ const meta = {
42
42
  </div>
43
43
  ))}
44
44
  </ChatDialog.Content>
45
- <ChatDialog.Footer classNames='px-2 items-center'>
45
+ <ChatDialog.Footer classNames='pli-2 items-center'>
46
46
  <Input.Root>
47
47
  <Input.TextInput classNames='border-none' placeholder='Test' />
48
48
  </Input.Root>
@@ -51,9 +51,8 @@ const meta = {
51
51
  </>
52
52
  );
53
53
  },
54
- decorators: [withTheme],
54
+ decorators: [withTheme, withLayout({ container: 'column' })],
55
55
  parameters: {
56
- layout: 'column',
57
56
  translations,
58
57
  },
59
58
  } satisfies Meta<typeof ChatDialog.Root>;
@@ -108,7 +108,7 @@ const ChatDialogHeader = ({ classNames, title }: ChatDialogHeaderProps) => {
108
108
  </Dialog.Close>
109
109
  </Endcap>
110
110
  <Dialog.Title
111
- classNames='flex w-full justify-center text-sm text-subdued select-none cursor-pointer'
111
+ classNames='flex is-full justify-center text-sm text-subdued select-none cursor-pointer'
112
112
  onClick={() => setExpanded((expanded) => !expanded)}
113
113
  >
114
114
  {title}
@@ -103,7 +103,7 @@ export const references = ({ provider, triggerCharacter = '@', debug = false }:
103
103
  },
104
104
  {
105
105
  decorations: (v) => v.decorations,
106
- provide: (plugin) => [
106
+ provide: () => [
107
107
  EditorView.atomicRanges.of(
108
108
  (view): DecorationSet => view.plugin(decorationField)?.decorations ?? RangeSet.empty,
109
109
  ),
@@ -158,18 +158,18 @@ class ReferenceWidget extends WidgetType {
158
158
  super();
159
159
  }
160
160
 
161
- override toDOM(): HTMLSpanElement {
162
- const span = document.createElement('span');
163
- span.textContent = `@ ${this.data.label}`;
164
- span.className = 'cm-reference-pill';
165
- return span;
161
+ override ignoreEvent() {
162
+ return true;
166
163
  }
167
164
 
168
- override eq(other: ReferenceWidget): boolean {
169
- return other.data.uri === this.data.uri;
165
+ override eq(other: this) {
166
+ return this.data.uri === other.data.uri;
170
167
  }
171
168
 
172
- override ignoreEvent(): boolean {
173
- return true;
169
+ override toDOM() {
170
+ const span = document.createElement('span');
171
+ span.textContent = `@${this.data.label}`;
172
+ span.className = 'cm-reference-pill';
173
+ return span;
174
174
  }
175
175
  }