@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 +6 -2
- package/dist/chat/AthenaChat.cjs +14 -1
- package/dist/chat/AthenaChat.cjs.map +1 -1
- package/dist/chat/AthenaChat.js +15 -2
- package/dist/chat/AthenaChat.js.map +1 -1
- package/dist/chat-ui/index.cjs +1 -0
- package/dist/chat-ui/index.cjs.map +1 -1
- package/dist/chat-ui/index.d.ts +1 -1
- package/dist/chat-ui/index.js +2 -1
- package/dist/chat-ui/messages/inbound-channel-message.cjs +23 -0
- package/dist/chat-ui/messages/inbound-channel-message.cjs.map +1 -1
- package/dist/chat-ui/messages/inbound-channel-message.d.ts +13 -20
- package/dist/chat-ui/messages/inbound-channel-message.js +24 -1
- package/dist/chat-ui/messages/inbound-channel-message.js.map +1 -1
- package/dist/chat-ui/messages/message-components.cjs +14 -1
- package/dist/chat-ui/messages/message-components.cjs.map +1 -1
- package/dist/chat-ui/messages/message-components.js +15 -2
- package/dist/chat-ui/messages/message-components.js.map +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/react/package.json.cjs +1 -1
- package/dist/react/package.json.js +1 -1
- package/package.json +1 -1
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
|
|
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:
|
package/dist/chat/AthenaChat.cjs
CHANGED
|
@@ -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(
|
|
1171
|
+
/* @__PURE__ */ jsxRuntime.jsx(UserCopyMessageButton, {}),
|
|
1159
1172
|
/* @__PURE__ */ jsxRuntime.jsx(EditMessageButton, {})
|
|
1160
1173
|
]
|
|
1161
1174
|
}
|