@adecore/agents-react 0.57.0 → 0.59.0

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.
@@ -73,7 +73,7 @@ export function TokenChip(t0) {
73
73
  value = $[11];
74
74
  }
75
75
  const onKeyDown = t1;
76
- const t2 = onOpen !== undefined && "cursor-pointer focus-visible:outline-2 focus-visible:outline-accent";
76
+ const t2 = onOpen !== undefined && "cursor-pointer focus-visible:outline-2 focus-visible:outline-accent-on-surface";
77
77
  let t3;
78
78
  if ($[12] !== className || $[13] !== t2 || $[14] !== tone) {
79
79
  t3 = clsx("not-prose", TOKEN_IN_MESSAGE, tone, t2, className);
@@ -348,7 +348,7 @@ export function UserRow(t0) {
348
348
  children: /*#__PURE__*/_jsx("div", {
349
349
  role: "button",
350
350
  tabIndex: 0,
351
- className: "mb-2 cursor-pointer rounded-sm border-l-2 border-border-strong pl-2.5 text-text-muted hover:bg-text/5 hover:text-text focus-visible:outline-2 focus-visible:outline-accent",
351
+ className: "mb-2 cursor-pointer rounded-sm border-l-2 border-border-strong pl-2.5 text-text-muted hover:bg-text/5 hover:text-text focus-visible:outline-2 focus-visible:outline-accent-on-surface",
352
352
  onClick: goToSource,
353
353
  onKeyDown: e_0 => {
354
354
  if (e_0.key === "Enter" || e_0.key === " ") {
@@ -997,7 +997,7 @@ function ChoiceLine(t0) {
997
997
  } else {
998
998
  t2 = $[2];
999
999
  }
1000
- const t3 = navigation && "rounded-md hover:text-text focus-visible:outline-2 focus-visible:outline-accent";
1000
+ const t3 = navigation && "rounded-md hover:text-text focus-visible:outline-2 focus-visible:outline-accent-on-surface";
1001
1001
  let t4;
1002
1002
  if ($[3] !== t3) {
1003
1003
  t4 = clsx("mb-1 flex max-w-[80%] items-start gap-1.5 px-1 text-left text-xs text-text-muted select-none", t3);
@@ -183,7 +183,7 @@ export function QuestionBody(t0) {
183
183
  })]
184
184
  }, choice_0.label);
185
185
  }), /*#__PURE__*/_jsxs("label", {
186
- className: clsx("flex min-h-9 items-start gap-2 rounded-lg border px-3 py-2 text-left text-xs text-text focus-within:outline-2 focus-within:outline-offset-1 focus-within:outline-accent", answer.custom ? "border-accent bg-accent-soft" : "border-border bg-surface-hover", locked && "opacity-50"),
186
+ className: clsx("flex min-h-9 items-start gap-2 rounded-lg border px-3 py-2 text-left text-xs text-text focus-within:outline-2 focus-within:outline-offset-1 focus-within:outline-accent-on-surface", answer.custom ? "border-accent bg-accent-soft" : "border-border bg-surface-hover", locked && "opacity-50"),
187
187
  onPointerDown: () => {
188
188
  if (!locked && !answer.custom) {
189
189
  onAnswer({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/agents-react",
3
- "version": "0.57.0",
3
+ "version": "0.59.0",
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.57.0",
76
- "@adecore/editor": "0.57.0",
77
- "@adecore/editor-react": "0.57.0",
78
- "@adecore/intelligent-ui": "0.57.0",
79
- "@adecore/merge": "0.57.0",
80
- "@adecore/utils": "0.57.0",
75
+ "@adecore/agent-contracts": "0.59.0",
76
+ "@adecore/editor": "0.59.0",
77
+ "@adecore/editor-react": "0.59.0",
78
+ "@adecore/intelligent-ui": "0.59.0",
79
+ "@adecore/merge": "0.59.0",
80
+ "@adecore/utils": "0.59.0",
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.57.0",
104
+ "@adecore/ui": "^0.59.0",
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.57.0",
111
+ "@adecore/ui": "0.59.0",
112
112
  "@types/bun": "^1.4.4",
113
113
  "@types/react": "^19.3.0",
114
114
  "@types/react-dom": "^19.3.0",
@@ -44,7 +44,7 @@ export function TokenChip({ kind, value, sigil, icon, label, spelled, tone, onOp
44
44
  'not-prose',
45
45
  TOKEN_IN_MESSAGE,
46
46
  tone,
47
- onOpen !== undefined && 'cursor-pointer focus-visible:outline-2 focus-visible:outline-accent',
47
+ onOpen !== undefined && 'cursor-pointer focus-visible:outline-2 focus-visible:outline-accent-on-surface',
48
48
  className
49
49
  )}
50
50
  data-chip={kind}
@@ -173,7 +173,7 @@ export function UserRow({ chatId, item }: { chatId: string; item: ChatUserItem }
173
173
  <div
174
174
  role="button"
175
175
  tabIndex={0}
176
- className="mb-2 cursor-pointer rounded-sm border-l-2 border-border-strong pl-2.5 text-text-muted hover:bg-text/5 hover:text-text focus-visible:outline-2 focus-visible:outline-accent"
176
+ className="mb-2 cursor-pointer rounded-sm border-l-2 border-border-strong pl-2.5 text-text-muted hover:bg-text/5 hover:text-text focus-visible:outline-2 focus-visible:outline-accent-on-surface"
177
177
  onClick={goToSource}
178
178
  onKeyDown={(e) => {
179
179
  if (e.key === 'Enter' || e.key === ' ') {
@@ -356,7 +356,7 @@ function ChoiceLine({ chatId, choice }: { chatId: string; choice: ChatUiChoiceOr
356
356
  onClick={navigation ? () => navigation.reveal(choice) : undefined}
357
357
  className={clsx(
358
358
  'mb-1 flex max-w-[80%] items-start gap-1.5 px-1 text-left text-xs text-text-muted select-none',
359
- navigation && 'rounded-md hover:text-text focus-visible:outline-2 focus-visible:outline-accent'
359
+ navigation && 'rounded-md hover:text-text focus-visible:outline-2 focus-visible:outline-accent-on-surface'
360
360
  )}
361
361
  >
362
362
  <Icon icon={Reply} size={12} className="mt-1 shrink-0" />
@@ -135,7 +135,7 @@ export function QuestionBody({
135
135
  })}
136
136
  <label
137
137
  className={clsx(
138
- 'flex min-h-9 items-start gap-2 rounded-lg border px-3 py-2 text-left text-xs text-text focus-within:outline-2 focus-within:outline-offset-1 focus-within:outline-accent',
138
+ 'flex min-h-9 items-start gap-2 rounded-lg border px-3 py-2 text-left text-xs text-text focus-within:outline-2 focus-within:outline-offset-1 focus-within:outline-accent-on-surface',
139
139
  answer.custom ? 'border-accent bg-accent-soft' : 'border-border bg-surface-hover',
140
140
  locked && 'opacity-50'
141
141
  )}