@athenaintel/react 0.57.0 → 0.57.1

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/README.md CHANGED
@@ -583,8 +583,8 @@ Teams' logos; a mail, text, API or voice-memo glyph), the sender's name and
583
583
  their address or number. Hovering the line shows the channel, the place (a
584
584
  DM, `#launch`, a group text) and the sender in full; clicking it opens what
585
585
  the agent received, every fact of the block labelled, with the Slack thread a
586
- mention came in. An email's subject is the bubble's first line. A typed
587
- message is unchanged.
586
+ mention came in. An email's subject is the bubble's first line, and Copy on
587
+ the bubble copies the words that were sent. A typed message is unchanged.
588
588
 
589
589
  Only a message carrying the envelope is drawn this way. Tags someone types at
590
590
  the start of an ordinary chat message show as typed.
@@ -980,6 +980,10 @@ Both use the same bearer / API key as session creation. The full recipe
980
980
  template skill `voice-session-guide.md`. `createAthenaVoiceSession` is also
981
981
  exported if you hold the bridge state yourself.
982
982
 
983
+ ## What's new in 0.57.1
984
+
985
+ **Copy on a message from Slack, email, a text or Teams copies the words that were sent.** It used to copy the message's whole text, with the routing block the channel wrote for the agent ahead of the words. The user bubble's Copy, in `AthenaChat` and in chat-ui's `UserMessage`, now copies what the bubble shows: an email's subject, then the words; any other message copies as before. Hosts with their own user bubble get the same Copy from `useUserMessageCopy()` (`copy`, `disabled`, `isCopied`).
986
+
983
987
  ## What's new in 0.57.0
984
988
 
985
989
  **Messages from Slack, email, texts and Teams read as what was sent.** A message that reached the agent over a channel used to show, above its words, the routing block the channel writes for the agent: `<inbound-message-context>`, the Slack workspace and channel ids, the numbers a text went between, how a reply is delivered. `AthenaChat` and chat-ui's `UserMessage` now show:
@@ -1116,6 +1116,19 @@ const CopyMessageButton = () => /* @__PURE__ */ jsxRuntime.jsx(react.ActionBarPr
1116
1116
  /* @__PURE__ */ jsxRuntime.jsx(react.AuiIf, { condition: (s) => s.message.isCopied, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, {}) }),
1117
1117
  /* @__PURE__ */ jsxRuntime.jsx(react.AuiIf, { condition: (s) => !s.message.isCopied, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CopyIcon, {}) })
1118
1118
  ] }) });
1119
+ const UserCopyMessageButton = () => {
1120
+ const { copy, disabled, isCopied } = inboundChannelMessage.useUserMessageCopy();
1121
+ return /* @__PURE__ */ jsxRuntime.jsx(
1122
+ tooltipIconButton.TooltipIconButton,
1123
+ {
1124
+ tooltip: "Copy",
1125
+ onClick: copy,
1126
+ disabled,
1127
+ "data-copied": isCopied ? "true" : void 0,
1128
+ children: isCopied ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CopyIcon, {})
1129
+ }
1130
+ );
1131
+ };
1119
1132
  const RegenerateMessageButton = () => {
1120
1133
  const readOnly = messageActionsConfig.useMessageActionsReadOnly();
1121
1134
  if (readOnly) return null;
@@ -1155,7 +1168,7 @@ const AthenaUserActionBar = () => {
1155
1168
  ]
1156
1169
  ),
1157
1170
  children: [
1158
- /* @__PURE__ */ jsxRuntime.jsx(CopyMessageButton, {}),
1171
+ /* @__PURE__ */ jsxRuntime.jsx(UserCopyMessageButton, {}),
1159
1172
  /* @__PURE__ */ jsxRuntime.jsx(EditMessageButton, {})
1160
1173
  ]
1161
1174
  }