@sendbird/ai-agent-messenger-react 1.10.0 → 1.10.2

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.
Files changed (36) hide show
  1. package/dist/cjs/1ACj2pIu.cjs +1 -0
  2. package/dist/cjs/39Vu-gp1.cjs +1 -0
  3. package/dist/cjs/8LgPimFK.cjs +1 -0
  4. package/dist/cjs/{4AZ6Q87O.cjs → B6HiuRPt.cjs} +1 -1
  5. package/dist/cjs/BVlVEisk.cjs +1 -0
  6. package/dist/cjs/CbSJ7GnB.cjs +1 -0
  7. package/dist/cjs/Cfid8u9U.cjs +306 -0
  8. package/dist/cjs/DBjNv8rR.cjs +1 -0
  9. package/dist/cjs/DI-EXSWj.cjs +1 -0
  10. package/dist/cjs/DOXieS3b.cjs +1 -0
  11. package/dist/cjs/sjY7fr9U.cjs +1 -0
  12. package/dist/es/{CQNYwMPf.js → 71nKW4JE.js} +4 -3
  13. package/dist/es/{BjyxgC_T.js → CAPycZHB.js} +4 -3
  14. package/dist/es/{CVL0bi-q.js → CNOl7erj.js} +9 -8
  15. package/dist/es/{DgyCf-ms.js → CcTi8RMT.js} +9 -8
  16. package/dist/es/{P9jkDnGQ.js → Ck4nAD4B.js} +9 -8
  17. package/dist/es/{BWGTA9Vo.js → CtCMo2TS.js} +4 -3
  18. package/dist/es/{ClcACcky.js → CvPILy6Q.js} +4 -3
  19. package/dist/es/{DVFeDVD_.js → DCVV5mpw.js} +1908 -1802
  20. package/dist/es/{D2yx2nDf.js → SWkYvgHM.js} +4 -3
  21. package/dist/es/{BiR7LQjJ.js → TAdObZan.js} +1 -1
  22. package/dist/es/{BE3kaJsn.js → v1TL54QW.js} +9 -8
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.d.ts +15 -0
  25. package/dist/index.js +1 -1
  26. package/package.json +7 -7
  27. package/dist/cjs/6W_OqNez.cjs +0 -306
  28. package/dist/cjs/BfMMhsUa.cjs +0 -1
  29. package/dist/cjs/BlKyY9hF.cjs +0 -1
  30. package/dist/cjs/C7142Sl2.cjs +0 -1
  31. package/dist/cjs/C8VHX6fm.cjs +0 -1
  32. package/dist/cjs/CME7NQuN.cjs +0 -1
  33. package/dist/cjs/DMwptxsX.cjs +0 -1
  34. package/dist/cjs/DOZTa4YO.cjs +0 -1
  35. package/dist/cjs/DULWaS68.cjs +0 -1
  36. package/dist/cjs/plyhfozu.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { m as _ } from "./DVFeDVD_.js";
1
+ import { m as _ } from "./DCVV5mpw.js";
2
2
  import { pt as n } from "date-fns/locale/pt";
3
3
  const r = {
4
4
  conversation: {
@@ -10,14 +10,15 @@ const r = {
10
10
  unknown_message_type: "(Tipo de mensagem desconhecido)",
11
11
  powered_by: "Desenvolvido por",
12
12
  citation_title: "Fonte",
13
- start_new_conversation_label: "Falar com agente",
13
+ start_new_conversation_label: "Iniciar uma conversa",
14
14
  failed_message_resend: "Tentar novamente",
15
15
  failed_message_remove: "Remover",
16
16
  file_upload_no_supported_files: "Nenhum tipo de arquivo suportado disponível."
17
17
  },
18
18
  conversation_list: {
19
19
  header_title: "Conversas",
20
- ended: "Encerrada"
20
+ ended: "Encerrada",
21
+ footer_title: "Iniciar uma conversa"
21
22
  },
22
23
  date_format: {
23
24
  just_now: "Agora mesmo",
@@ -3,7 +3,7 @@ import { useCallback as p } from "react";
3
3
  import s from "dompurify";
4
4
  import h, { RuleType as x } from "markdown-to-jsx";
5
5
  import g from "styled-components";
6
- import { A as b, e as c, c as i } from "./DVFeDVD_.js";
6
+ import { A as b, e as c, c as i } from "./DCVV5mpw.js";
7
7
  const m = (d, o, n, t) => o.type === x.textStrikethroughed ? /* @__PURE__ */ r.createElement("span", { key: t.key }, `~~${n(o.children, t)}~~`) : d(), v = ({ className: d, children: o, style: n, onClickImage: t }) => {
8
8
  const a = p(
9
9
  (e) => /* @__PURE__ */ r.createElement("img", { ...e, onClick: () => e.src && (t == null ? void 0 : t(e.src)) }),
@@ -1,6 +1,6 @@
1
- import { m as _ } from "./DVFeDVD_.js";
2
- import { fr as o } from "date-fns/locale/fr";
3
- const r = {
1
+ import { m as o } from "./DCVV5mpw.js";
2
+ import { fr as r } from "date-fns/locale/fr";
3
+ const _ = {
4
4
  conversation: {
5
5
  input_placeholder: "Poser une question",
6
6
  input_placeholder_disabled: "Le chat n'est pas disponible dans ce canal",
@@ -10,14 +10,15 @@ const r = {
10
10
  unknown_message_type: "(Type de message inconnu)",
11
11
  powered_by: "Propulsé par",
12
12
  citation_title: "Source",
13
- start_new_conversation_label: "Parler à un agent",
13
+ start_new_conversation_label: "Démarrer une conversation",
14
14
  failed_message_resend: "Réessayer",
15
15
  failed_message_remove: "Supprimer",
16
16
  file_upload_no_supported_files: "Aucun type de fichier pris en charge disponible."
17
17
  },
18
18
  conversation_list: {
19
19
  header_title: "Conversations",
20
- ended: "Terminée"
20
+ ended: "Terminée",
21
+ footer_title: "Démarrer une conversation"
21
22
  },
22
23
  date_format: {
23
24
  just_now: "À l'instant",
@@ -62,9 +63,9 @@ const r = {
62
63
  }
63
64
  }, n = {
64
65
  language: "fr",
65
- strings: r,
66
- dateLocale: o
67
- }, a = _(n.strings), t = {
66
+ strings: _,
67
+ dateLocale: r
68
+ }, a = o(n.strings), t = {
68
69
  ...a,
69
70
  // Channel Header
70
71
  HEADER_BUTTON__AGENT_HANDOFF: "Se connecter avec un agent",
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cjs/6W_OqNez.cjs");require("react");exports.AgentProviderContainer=e.AgentProviderContainer;exports.AgentUIProviderContainer=e.AgentUIProviderContainer;exports.AnonymousSessionInfo=e.AnonymousSessionInfo;exports.CSATType=e.CSATType;exports.Commands=e.DispatcherCommands;exports.Conversation=e.Conversation;exports.ConversationContext=e.ConversationContext;exports.ConversationContextProvider=e.ConversationContextProvider;exports.ConversationHeaderLayout=e.ConversationHeaderLayout;exports.ConversationLayout=e.ConversationLayout;exports.ConversationList=e.ConversationList;exports.ConversationListContext=e.ConversationListContext;exports.ConversationListContextProvider=e.ConversationListContextProvider;exports.ConversationListHeaderLayout=e.ConversationListHeaderLayout;exports.ConversationListItemLayout=e.ConversationListItemLayout;exports.ConversationListLayout=e.ConversationListLayout;exports.DefaultMessenger=e.DefaultMessenger;exports.FixedMessenger=e.FixedMessenger;exports.IncomingMessageLayout=e.IncomingMessageLayout;exports.LauncherBase=e.LauncherBase;exports.LogLevel=e.LogLevel;exports.ManualSessionInfo=e.ManualSessionInfo;exports.MessageLogs=e.MessageLogs;exports.OutgoingMessageLayout=e.OutgoingMessageLayout;exports.PlaceholderLayout=e.PlaceholderLayout;exports.SystemMessageLayout=e.SystemMessageLayout;exports.messengerDispatcher=e.messengerDispatcher;exports.useConversationContext=e.useConversationContext;exports.useConversationListContext=e.useConversationListContext;exports.useLocalizationContext=e.useLocalizationContext;exports.useMessengerContext=e.useMessengerContext;exports.useMessengerSessionContext=e.useMessengerSessionContext;exports.useRefreshActiveChannel=e.useRefreshActiveChannel;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cjs/Cfid8u9U.cjs");require("react");exports.AgentProviderContainer=e.AgentProviderContainer;exports.AgentUIProviderContainer=e.AgentUIProviderContainer;exports.AnonymousSessionInfo=e.AnonymousSessionInfo;exports.CSATType=e.CSATType;exports.Commands=e.DispatcherCommands;exports.Conversation=e.Conversation;exports.ConversationContext=e.ConversationContext;exports.ConversationContextProvider=e.ConversationContextProvider;exports.ConversationHeaderLayout=e.ConversationHeaderLayout;exports.ConversationLayout=e.ConversationLayout;exports.ConversationList=e.ConversationList;exports.ConversationListContext=e.ConversationListContext;exports.ConversationListContextProvider=e.ConversationListContextProvider;exports.ConversationListHeaderLayout=e.ConversationListHeaderLayout;exports.ConversationListItemLayout=e.ConversationListItemLayout;exports.ConversationListLayout=e.ConversationListLayout;exports.DefaultMessenger=e.DefaultMessenger;exports.FixedMessenger=e.FixedMessenger;exports.IncomingMessageLayout=e.IncomingMessageLayout;exports.LauncherBase=e.LauncherBase;exports.LogLevel=e.LogLevel;exports.ManualSessionInfo=e.ManualSessionInfo;exports.MessageLogs=e.MessageLogs;exports.OutgoingMessageLayout=e.OutgoingMessageLayout;exports.PlaceholderLayout=e.PlaceholderLayout;exports.SystemMessageLayout=e.SystemMessageLayout;exports.messengerDispatcher=e.messengerDispatcher;exports.useConversationContext=e.useConversationContext;exports.useConversationListContext=e.useConversationListContext;exports.useLocalizationContext=e.useLocalizationContext;exports.useMessengerContext=e.useMessengerContext;exports.useMessengerSessionContext=e.useMessengerSessionContext;exports.useRefreshActiveChannel=e.useRefreshActiveChannel;
package/dist/index.d.ts CHANGED
@@ -314,6 +314,11 @@ declare interface AIAgentConversationContextValue {
314
314
  };
315
315
 
316
316
  state: {
317
+ streamAnimation: {
318
+ isAnimating: boolean;
319
+ start: (id: string | number) => void;
320
+ stop: (id: string | number) => void;
321
+ };
317
322
  input: InputState;
318
323
  };
319
324
  }
@@ -597,6 +602,7 @@ declare interface AIAgentStringSet {
597
602
  conversation_list: {
598
603
  header_title: string;
599
604
  ended: string;
605
+ footer_title: string;
600
606
  };
601
607
 
602
608
  date_format: {
@@ -1188,6 +1194,8 @@ export declare interface FeedbackInfo {
1188
1194
 
1189
1195
  export declare const FixedMessenger: ForwardRefExoticComponent<MessengerProps & RefAttributes<MessengerSessionRef>> & {
1190
1196
  Style: (props: FixedMessengerStyleProps) => null;
1197
+ ConversationChildren: ({ children }: PropsWithChildren) => null;
1198
+ ConversationListChildren: ({ children }: PropsWithChildren) => null;
1191
1199
  };
1192
1200
 
1193
1201
  export declare type FixedMessengerMargin = {
@@ -1343,6 +1351,8 @@ BaseMessageProps<{
1343
1351
  onFeedbackUpdate?: (params: { rating: 'good' | 'bad'; comment?: string } | null) => void;
1344
1352
  onSubmitForm?: (params: { key: string; data: Record<string, FormFieldValue> }) => Promise<void>;
1345
1353
  onCancelForm?: (params: { key: string }) => Promise<void>;
1354
+ onStreamAnimationStart?: () => void;
1355
+ onStreamAnimationComplete?: () => void;
1346
1356
 
1347
1357
  // fallbacks
1348
1358
  messageTemplateErrorFallback?: ReactNode;
@@ -1668,6 +1678,11 @@ declare interface MessengerProps extends AIAgentProps {
1668
1678
  * This can be either 'Conversation' or 'ConversationList'. (default: 'Conversation')
1669
1679
  * */
1670
1680
  entryPoint?: 'Conversation' | 'ConversationList';
1681
+ /**
1682
+ * @public
1683
+ * @description The URL of the channel to open initially when the messenger is first loaded.
1684
+ * */
1685
+ initialChannelUrl?: string;
1671
1686
  }
1672
1687
 
1673
1688
  declare interface MessengerSessionCache {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as o, b as n, B as t, x as i, D as r, j as C, n as L, o as u, l as v, k as g, q as y, t as x, v as d, s as M, C as m, r as l, h as c, F as f, I as h, L as I, y as P, z as S, M as p, O as A, P as D, S as z, g as B, p as F, w as H, f as O, u as T, d as b, i as j } from "./es/DVFeDVD_.js";
1
+ import { a as o, b as n, B as t, x as i, D as r, j as C, n as L, o as u, l as v, k as g, q as y, t as x, v as d, s as M, C as m, r as l, h as c, F as f, I as h, L as I, y as P, z as S, M as p, O as A, P as D, S as z, g as B, p as F, w as H, f as O, u as T, d as b, i as j } from "./es/DCVV5mpw.js";
2
2
  import "react";
3
3
  export {
4
4
  o as AgentProviderContainer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendbird/ai-agent-messenger-react",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "Delight AI Agent Messenger for React",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,22 +20,22 @@
20
20
  "sideEffects": false,
21
21
  "dependencies": {
22
22
  "@emotion/is-prop-valid": "^1.3.1",
23
- "@sendbird/react-uikit-message-template-view": "0.0.19",
24
- "@sendbird/uikit-message-template": "0.0.19",
25
- "@sendbird/uikit-tools": "0.0.19",
23
+ "@sendbird/react-uikit-message-template-view": "0.0.20",
24
+ "@sendbird/uikit-message-template": "0.0.21",
25
+ "@sendbird/uikit-tools": "0.0.21",
26
26
  "date-fns": "^4.1.0",
27
27
  "dompurify": "^3.2.4",
28
28
  "markdown-to-jsx": "^7.7.12",
29
29
  "react-syntax-highlighter": "^15.6.1"
30
30
  },
31
31
  "peerDependencies": {
32
- "@sendbird/chat": "^4.20.1",
32
+ "@sendbird/chat": "^4.20.3",
33
33
  "react": ">=18.0.0",
34
34
  "react-dom": ">=18.0.0",
35
35
  "styled-components": ">=5.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@sendbird/chat": "^4.20.1",
38
+ "@sendbird/chat": "^4.20.3",
39
39
  "@types/react": "^19.2.2",
40
40
  "@types/react-dom": "^19.2.2",
41
41
  "@types/react-syntax-highlighter": "^15.5.13",
@@ -44,7 +44,7 @@
44
44
  "react-dom": "^19.0.0",
45
45
  "strip-json-comments": "^5.0.1",
46
46
  "styled-components": "^6.1.15",
47
- "@sendbird/ai-agent-core": "1.10.0",
47
+ "@sendbird/ai-agent-core": "1.10.2",
48
48
  "@sendbird/vite-tools": "0.0.1",
49
49
  "@sendbird/config-editor": "0.1.0"
50
50
  },