@adecore/agents-react 0.54.3 → 0.54.4

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.
@@ -12,6 +12,7 @@ import { ReferenceTrail } from './ReferenceTrail.js';
12
12
  /*
13
13
  * One token in the transcript. One that opens is a span with a button's role rather than a button,
14
14
  * since a button is a box with a baseline of its own and would not sit on the line the others sit on.
15
+ * It stays out of prose, whose margins on an image would lift a host's picture mark off the line.
15
16
  */
16
17
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
17
18
  export function TokenChip(t0) {
@@ -71,7 +72,7 @@ export function TokenChip(t0) {
71
72
  const t2 = onOpen !== undefined && "cursor-pointer focus-visible:outline-2 focus-visible:outline-accent";
72
73
  let t3;
73
74
  if ($[11] !== className || $[12] !== t2 || $[13] !== tone) {
74
- t3 = clsx(TOKEN_IN_MESSAGE, tone, t2, className);
75
+ t3 = clsx("not-prose", TOKEN_IN_MESSAGE, tone, t2, className);
75
76
  $[11] = className;
76
77
  $[12] = t2;
77
78
  $[13] = tone;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/agents-react",
3
- "version": "0.54.3",
3
+ "version": "0.54.4",
4
4
  "description": "React agent chat threads, composers, approvals, provider accounts and usage views.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -72,12 +72,12 @@
72
72
  "test:visuals": "bun --config=integration.bunfig.toml --conditions=source test ./src/chat/visual-viewport.integration.test.ts"
73
73
  },
74
74
  "dependencies": {
75
- "@adecore/agent-contracts": "0.54.3",
76
- "@adecore/editor": "0.54.3",
77
- "@adecore/editor-react": "0.54.3",
78
- "@adecore/intelligent-ui": "0.54.3",
79
- "@adecore/merge": "0.54.3",
80
- "@adecore/utils": "0.54.3",
75
+ "@adecore/agent-contracts": "0.54.4",
76
+ "@adecore/editor": "0.54.4",
77
+ "@adecore/editor-react": "0.54.4",
78
+ "@adecore/intelligent-ui": "0.54.4",
79
+ "@adecore/merge": "0.54.4",
80
+ "@adecore/utils": "0.54.4",
81
81
  "@codemirror/commands": "^6.11.1",
82
82
  "@codemirror/language": "^6.13.1",
83
83
  "@codemirror/state": "^6.7.6",
@@ -101,14 +101,14 @@
101
101
  "zustand": "^5.0.16"
102
102
  },
103
103
  "peerDependencies": {
104
- "@adecore/ui": "^0.54.3",
104
+ "@adecore/ui": "^0.54.4",
105
105
  "i18next": "^26.4.2",
106
106
  "react": "^19.3.0",
107
107
  "react-dom": "^19.3.0",
108
108
  "react-i18next": "^17.0.15"
109
109
  },
110
110
  "devDependencies": {
111
- "@adecore/ui": "0.54.3",
111
+ "@adecore/ui": "0.54.4",
112
112
  "@types/bun": "^1.4.4",
113
113
  "@types/react": "^19.3.0",
114
114
  "@types/react-dom": "^19.3.0",
@@ -25,6 +25,7 @@ interface TokenChipProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children
25
25
  /*
26
26
  * One token in the transcript. One that opens is a span with a button's role rather than a button,
27
27
  * since a button is a box with a baseline of its own and would not sit on the line the others sit on.
28
+ * It stays out of prose, whose margins on an image would lift a host's picture mark off the line.
28
29
  */
29
30
  export function TokenChip({ kind, value, sigil, icon, label, tone, onOpen, className, ...rest }: TokenChipProps) {
30
31
  const onKeyDown = (e: KeyboardEvent<HTMLSpanElement>): void => {
@@ -37,7 +38,13 @@ export function TokenChip({ kind, value, sigil, icon, label, tone, onOpen, class
37
38
  return (
38
39
  <span
39
40
  {...rest}
40
- className={clsx(TOKEN_IN_MESSAGE, tone, onOpen !== undefined && 'cursor-pointer focus-visible:outline-2 focus-visible:outline-accent', className)}
41
+ className={clsx(
42
+ 'not-prose',
43
+ TOKEN_IN_MESSAGE,
44
+ tone,
45
+ onOpen !== undefined && 'cursor-pointer focus-visible:outline-2 focus-visible:outline-accent',
46
+ className
47
+ )}
41
48
  data-chip={kind}
42
49
  data-chip-value={value}
43
50
  data-chip-name={kind === 'reference' ? label : undefined}