@sendbird/ai-agent-messenger-react 1.6.2 → 1.6.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.
- package/dist/cjs/C1-aa-Af.cjs +1 -0
- package/dist/cjs/CiYM2HZs.cjs +1 -0
- package/dist/cjs/CvBs0NNm.cjs +1 -0
- package/dist/cjs/{B7GRwqPX.cjs → DSvS_LqV.cjs} +1 -1
- package/dist/cjs/DXJc-lbh.cjs +1 -0
- package/dist/cjs/Ot4HEKO2.cjs +285 -0
- package/dist/cjs/WcjmjHus.cjs +1 -0
- package/dist/cjs/WfMoyEbn.cjs +1 -0
- package/dist/cjs/j-F4jB-5.cjs +1 -0
- package/dist/cjs/j9Y8roi_.cjs +1 -0
- package/dist/cjs/kssZAhoY.cjs +1 -0
- package/dist/es/{Bya9fYXU.js → 39THXo8Y.js} +1 -1
- package/dist/es/{fCfS1r6L.js → B1iZaetO.js} +1 -0
- package/dist/es/{CYA7yOFh.js → B5nmJjeg.js} +1 -0
- package/dist/es/{fSLY7h_5.js → BSAHjNA7.js} +3 -2
- package/dist/es/{Dz-UasyM.js → BYS9RAHC.js} +3 -2
- package/dist/es/{TFfRI0HW.js → ByOkspcg.js} +1 -0
- package/dist/es/{DOUIpoTT.js → C1RjG_gn.js} +1440 -1410
- package/dist/es/{BTR645KD.js → CaAVnx3J.js} +3 -2
- package/dist/es/{PHNcuUup.js → CbCVtvOE.js} +1 -0
- package/dist/es/{aZdf-cFg.js → DjMl-yXl.js} +1 -0
- package/dist/es/{CihyVpku.js → P2HL5YGo.js} +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +55 -9
- package/dist/index.js +1 -1
- package/package.json +5 -5
- package/dist/cjs/B5TcHsfW.cjs +0 -1
- package/dist/cjs/BUvLOAVj.cjs +0 -285
- package/dist/cjs/C0TzR0z9.cjs +0 -1
- package/dist/cjs/CGCB6sFG.cjs +0 -1
- package/dist/cjs/Cd891_fx.cjs +0 -1
- package/dist/cjs/D2IqKxXh.cjs +0 -1
- package/dist/cjs/Djrz0ZDD.cjs +0 -1
- package/dist/cjs/DnmwPUXn.cjs +0 -1
- package/dist/cjs/Tp2-TfFd.cjs +0 -1
- package/dist/cjs/jPFSCBtt.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { es as T } from "date-fns/locale/es";
|
|
2
|
-
const E = T,
|
|
2
|
+
const E = T, a = {
|
|
3
3
|
// Channel - Common
|
|
4
4
|
CHANNEL_FROZEN: "Canal congelado",
|
|
5
5
|
PLACE_HOLDER__WRONG: "Algo salió mal",
|
|
@@ -10,6 +10,7 @@ const E = T, A = {
|
|
|
10
10
|
// Message Input
|
|
11
11
|
MESSAGE_INPUT__PLACE_HOLDER: "Hacer una pregunta",
|
|
12
12
|
MESSAGE_INPUT__PLACE_HOLDER__WAIT_AI_AGENT_RESPONSE: "Esperando la respuesta del agente...",
|
|
13
|
+
MESSAGE_INPUT__PLACE_HOLDER__SUGGESTED_REPLIES: "Selecciona una opción para continuar",
|
|
13
14
|
MESSAGE_INPUT__PLACE_HOLDER__DISABLED: "El chat no está disponible en este canal",
|
|
14
15
|
// Common UI
|
|
15
16
|
BUTTON__CANCEL: "Cancelar",
|
|
@@ -76,7 +77,7 @@ const E = T, A = {
|
|
|
76
77
|
DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: "dd/MM/yyyy",
|
|
77
78
|
/** @deprecated Unused string **/
|
|
78
79
|
DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION: "HH:mm"
|
|
79
|
-
}, e = { language: "es", dateLocale: E, stringSet:
|
|
80
|
+
}, e = { language: "es", dateLocale: E, stringSet: a };
|
|
80
81
|
export {
|
|
81
82
|
e as default
|
|
82
83
|
};
|
|
@@ -10,6 +10,7 @@ const E = T, A = {
|
|
|
10
10
|
// Message Input
|
|
11
11
|
MESSAGE_INPUT__PLACE_HOLDER: "एक प्रश्न पूछें",
|
|
12
12
|
MESSAGE_INPUT__PLACE_HOLDER__WAIT_AI_AGENT_RESPONSE: "एजेंट के उत्तर की प्रतीक्षा कर रहे हैं...",
|
|
13
|
+
MESSAGE_INPUT__PLACE_HOLDER__SUGGESTED_REPLIES: "जारी रखने के लिए एक विकल्प चुनें",
|
|
13
14
|
MESSAGE_INPUT__PLACE_HOLDER__DISABLED: "इस चैनल में चैट उपलब्ध नहीं है",
|
|
14
15
|
// Common UI
|
|
15
16
|
BUTTON__CANCEL: "रद्द करें",
|
|
@@ -10,6 +10,7 @@ const E = T, A = {
|
|
|
10
10
|
// Message Input
|
|
11
11
|
MESSAGE_INPUT__PLACE_HOLDER: "질문하기",
|
|
12
12
|
MESSAGE_INPUT__PLACE_HOLDER__WAIT_AI_AGENT_RESPONSE: "상담사의 답변을 기다리는 중...",
|
|
13
|
+
MESSAGE_INPUT__PLACE_HOLDER__SUGGESTED_REPLIES: "계속하려면 옵션을 선택하세요",
|
|
13
14
|
MESSAGE_INPUT__PLACE_HOLDER__DISABLED: "이 채널에서는 채팅을 사용할 수 없습니다.",
|
|
14
15
|
// Common UI
|
|
15
16
|
BUTTON__CANCEL: "취소",
|
|
@@ -10,6 +10,7 @@ const T = e, E = {
|
|
|
10
10
|
// Message Input
|
|
11
11
|
MESSAGE_INPUT__PLACE_HOLDER: "Eine Frage stellen",
|
|
12
12
|
MESSAGE_INPUT__PLACE_HOLDER__WAIT_AI_AGENT_RESPONSE: "Warten auf die Antwort des Agenten...",
|
|
13
|
+
MESSAGE_INPUT__PLACE_HOLDER__SUGGESTED_REPLIES: "Wählen Sie eine Option zum Fortfahren",
|
|
13
14
|
MESSAGE_INPUT__PLACE_HOLDER__DISABLED: "Chat ist in diesem Kanal nicht verfügbar",
|
|
14
15
|
// Common UI
|
|
15
16
|
BUTTON__CANCEL: "Abbrechen",
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cjs/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cjs/Ot4HEKO2.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.ConversationLayout=e.ConversationLayout;exports.ConversationList=e.ConversationList;exports.ConversationListContext=e.ConversationListContext;exports.ConversationListContextProvider=e.ConversationListContextProvider;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;
|
package/dist/index.d.ts
CHANGED
|
@@ -289,6 +289,11 @@ declare interface AIAgentConversationContextValue {
|
|
|
289
289
|
loadNext: () => Promise<void>;
|
|
290
290
|
sendUserMessage: (params: UserMessageCreateParams) => Promise<UserMessage>;
|
|
291
291
|
sendFileMessage: (params: FileMessageCreateParams) => Promise<FileMessage>;
|
|
292
|
+
deleteMessage: (message: UserMessage | FileMessage) => Promise<void>;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
state: {
|
|
296
|
+
input: InputState;
|
|
292
297
|
};
|
|
293
298
|
}
|
|
294
299
|
|
|
@@ -792,6 +797,7 @@ declare const _default: {
|
|
|
792
797
|
HEADER_BUTTON__AGENT_HANDOFF: string;
|
|
793
798
|
MESSAGE_INPUT__PLACE_HOLDER: string;
|
|
794
799
|
MESSAGE_INPUT__PLACE_HOLDER__WAIT_AI_AGENT_RESPONSE: string;
|
|
800
|
+
MESSAGE_INPUT__PLACE_HOLDER__SUGGESTED_REPLIES: string;
|
|
795
801
|
MESSAGE_INPUT__PLACE_HOLDER__DISABLED: string;
|
|
796
802
|
BUTTON__CANCEL: string;
|
|
797
803
|
BUTTON__SAVE: string;
|
|
@@ -885,40 +891,59 @@ export declare interface ExtendedMessagePayload {
|
|
|
885
891
|
url: string;
|
|
886
892
|
};
|
|
887
893
|
suggested_replies: string[];
|
|
894
|
+
user_input_disabled_by: 'suggested_replies';
|
|
888
895
|
message_template: MessageTemplateShape;
|
|
889
896
|
csat: {
|
|
890
|
-
type:
|
|
897
|
+
type: 'AI_AGENT_CSAT_5' | 'AI_AGENT_CSAT_5_WITH_CRE' | 'HELPDESK_CSAT_5';
|
|
891
898
|
visibility: boolean;
|
|
899
|
+
|
|
892
900
|
title: string;
|
|
893
901
|
csat_question: string;
|
|
902
|
+
|
|
894
903
|
csat_scores: {
|
|
895
904
|
label: string;
|
|
896
905
|
image_url: string;
|
|
897
906
|
}[];
|
|
907
|
+
|
|
898
908
|
csat_submit_label: string;
|
|
899
909
|
csat_submitted_label: string;
|
|
910
|
+
|
|
900
911
|
cre?: {
|
|
901
912
|
question: string;
|
|
902
913
|
positive_label: string;
|
|
903
914
|
negative_label: string;
|
|
904
915
|
};
|
|
905
|
-
|
|
916
|
+
|
|
917
|
+
follow_up?: Array<
|
|
918
|
+
| {
|
|
906
919
|
response_type: 'free_text';
|
|
907
920
|
question: string;
|
|
908
|
-
scores: number[];
|
|
921
|
+
scores: number[]; // One or more CSAT scores that trigger this follow-up question.
|
|
909
922
|
required?: boolean;
|
|
910
|
-
}
|
|
923
|
+
}
|
|
924
|
+
| {
|
|
911
925
|
response_type: 'single_choice';
|
|
912
926
|
question: string;
|
|
913
|
-
scores: number[];
|
|
914
|
-
options: string[];
|
|
927
|
+
scores: number[]; // One or more CSAT scores that trigger this follow-up question.
|
|
928
|
+
options: string[]; // Up to 5 predefined answer choices
|
|
915
929
|
required?: boolean;
|
|
916
|
-
}
|
|
930
|
+
}
|
|
931
|
+
>;
|
|
917
932
|
};
|
|
918
|
-
bot_message_type:
|
|
933
|
+
bot_message_type:
|
|
934
|
+
| 'generated'
|
|
935
|
+
| 'canned'
|
|
936
|
+
| 'thinking'
|
|
937
|
+
| 'welcome'
|
|
938
|
+
| 'resolution_feedback'
|
|
939
|
+
| 'maintenance'
|
|
940
|
+
| 'safeguard'
|
|
941
|
+
| 'error';
|
|
919
942
|
citations?: CitationInfo[];
|
|
920
943
|
feedback?: FeedbackInfo;
|
|
921
944
|
form?: Form;
|
|
945
|
+
|
|
946
|
+
// logs
|
|
922
947
|
groundedness: GroundednessInfo[];
|
|
923
948
|
manual: ActionbookInfo;
|
|
924
949
|
function_calls: FunctionCallsInfo[];
|
|
@@ -998,7 +1023,16 @@ export declare interface FunctionCallsInfo {
|
|
|
998
1023
|
|
|
999
1024
|
export declare interface GroundednessInfo {
|
|
1000
1025
|
id: number;
|
|
1001
|
-
source_type:
|
|
1026
|
+
source_type:
|
|
1027
|
+
| 'site'
|
|
1028
|
+
| 'file'
|
|
1029
|
+
| 'snippet'
|
|
1030
|
+
| 'sb_desk'
|
|
1031
|
+
| 'sb_salesforce'
|
|
1032
|
+
| 'sb_confluence'
|
|
1033
|
+
| 'sb_zendesk'
|
|
1034
|
+
| 'sb_sprinklr'
|
|
1035
|
+
| (string & {});
|
|
1002
1036
|
preview_title: string;
|
|
1003
1037
|
}
|
|
1004
1038
|
|
|
@@ -1202,6 +1236,17 @@ declare function IncomingSentTime({ createdAt }: Pick<IncomingMessageProps, 'cre
|
|
|
1202
1236
|
|
|
1203
1237
|
declare function IncomingTypingIndicator({ customStyle }: TypingIndicatorProps): JSX.Element;
|
|
1204
1238
|
|
|
1239
|
+
declare type InputState = {
|
|
1240
|
+
disabled: boolean;
|
|
1241
|
+
disabledBy:
|
|
1242
|
+
| 'unavailable'
|
|
1243
|
+
| 'form_active'
|
|
1244
|
+
| 'ai_responding'
|
|
1245
|
+
| 'conversation_closed'
|
|
1246
|
+
| 'suggested_replies'
|
|
1247
|
+
| (string & {});
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1205
1250
|
declare interface InternalMessageTemplateVariables {
|
|
1206
1251
|
carousel_padding_left?: number;
|
|
1207
1252
|
carousel_padding_right?: number;
|
|
@@ -1910,6 +1955,7 @@ export declare const useMessengerSessionContext: {
|
|
|
1910
1955
|
|
|
1911
1956
|
export declare interface UserActionRequestedData {
|
|
1912
1957
|
action_type: string;
|
|
1958
|
+
form_type: string;
|
|
1913
1959
|
form_name: string;
|
|
1914
1960
|
case_id: string;
|
|
1915
1961
|
participant_id: string;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as o, b as n, v as t, C as i, D as r, h as C, j as L, k as u, i as g, n as v, p as x, q as m, g as y, o as M, f as d, F as l, I, L as P, s as S, t as c, M as f, O as p, P as h, S as A, m as D, l as F, r as O, e as T, u as b, d as j } from "./es/
|
|
1
|
+
import { a as o, b as n, v as t, C as i, D as r, h as C, j as L, k as u, i as g, n as v, p as x, q as m, g as y, o as M, f as d, F as l, I, L as P, s as S, t as c, M as f, O as p, P as h, S as A, m as D, l as F, r as O, e as T, u as b, d as j } from "./es/C1RjG_gn.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.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "Sendbird AI Agent Messenger for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,9 +20,9 @@
|
|
|
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.
|
|
24
|
-
"@sendbird/uikit-message-template": "0.0.
|
|
25
|
-
"@sendbird/uikit-tools": "0.0.
|
|
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",
|
|
26
26
|
"date-fns": "^4.1.0",
|
|
27
27
|
"dompurify": "^3.2.4",
|
|
28
28
|
"markdown-to-jsx": "^7.7.12",
|
|
@@ -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.6.
|
|
47
|
+
"@sendbird/ai-agent-core": "1.6.4",
|
|
48
48
|
"@sendbird/vite-tools": "0.0.1",
|
|
49
49
|
"@sendbird/config-editor": "0.1.0"
|
|
50
50
|
},
|
package/dist/cjs/B5TcHsfW.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("date-fns/locale/fr"),T=e.fr,E={CHANNEL_FROZEN:"Canal gelé",PLACE_HOLDER__WRONG:"Une erreur est survenue",PLACE_HOLDER__NO_MESSAGES:"Aucun message",UNKNOWN__UNKNOWN_MESSAGE_TYPE:"(Type de message inconnu)",HEADER_BUTTON__AGENT_HANDOFF:"Se connecter avec un agent",MESSAGE_INPUT__PLACE_HOLDER:"Poser une question",MESSAGE_INPUT__PLACE_HOLDER__WAIT_AI_AGENT_RESPONSE:"En attente de la réponse de l'agent...",MESSAGE_INPUT__PLACE_HOLDER__DISABLED:"Le chat n'est pas disponible dans ce canal",BUTTON__CANCEL:"Annuler",BUTTON__SAVE:"Enregistrer",BUTTON__OK:"OK",BUTTON__SUBMIT:"Soumettre",NO_NAME:"(Sans nom)",RETRY:"Réessayer",POWERED_BY:"Propulsé par",OPTIONAL:"optionnel",SUBMITTED:"Soumis",TRY_AGAIN:"Veuillez réessayer.",DATE_FORMAT__MESSAGE_LIST__DATE_SEPARATOR:"d MMMM yyyy",DATE_FORMAT__MESSAGE_TIMESTAMP:"p",DATE_FORMAT__JUST_NOW:"À l'instant",DATE_FORMAT__MINUTES_AGO:_=>`Il y a ${_} minutes`,DATE_FORMAT__HOURS_AGO:_=>`Il y a ${_} heures`,DATE_FORMAT__DATE_SHORT:"dd/MM/yyyy",FILE_UPLOAD_NOTIFICATION__COUNT_LIMIT:"Vous ne pouvez pas télécharger plus d'une image.",FILE_UPLOAD_NOTIFICATION__SIZE_LIMIT:"La taille maximale par fichier est de %d MB.",FILE_VIEWER__UNSUPPORT:"Message non pris en charge",CSAT_TITLE_UNSUBMITTED:"Vos commentaires comptent pour nous",CSAT_TITLE_SUBMITTED:"Soumis avec succès!",CSAT_CRE_TITLE:"Votre problème a-t-il été résolu ?",CSAT_CRE_SOLVED:"Oui, merci ! 👍",CSAT_CRE_NOT_SOLVED:"Non, cela n'a pas aidé.",CSAT_REASON_PLACEHOLDER:"Partagez votre avis",CSAT_RATING_TITLE:"Comment évalueriez-vous votre expérience ?",CSAT5_RATING_SCORE_1:"Terrible",CSAT5_RATING_SCORE_2:"Mauvais",CSAT5_RATING_SCORE_3:"Correct",CSAT5_RATING_SCORE_4:"Bon",CSAT5_RATING_SCORE_5:"Excellent",CSAT_SUBMIT_LABEL:"Envoyer",CSAT_SUBMISSION_EXPIRED:"Désolé, la période de l'enquête est terminée.",CONVERSATION_CLOSED_FOOTER_LABEL:"Votre conversation est terminée",START_NEW_CONVERSATION:"💬 Démarrer une nouvelle conversation",RETURN_TO_CONVERSATION:"💬 Retourner à la conversation",TALK_TO_AGENT:"Parler à un agent",CONVERSATION_LIST__HEADER_TITLE:"Conversations",CONVERSATION_LIST__TOPICS_FALLBACK:"Aucune catégorie",CONVERSATION_LIST__NO_CONVERSATIONS:"Aucune conversation pour le moment",CONVERSATION_LIST__ENDED:"Terminée",CITATION_SOURCE_TITLE:"Source",FORM_PLACEHOLDER:"Veuillez remplir le formulaire pour continuer.",FORM_UNAVAILABLE:"Le formulaire n'est plus disponible.",FORM_NOT_SUPPORTED:"Ce formulaire n'est pas pris en charge dans la version actuelle.",FORM_VALIDATION_REQUIRED:"Cette question est obligatoire",FORM_VALIDATION_MIN_LENGTH:_=>`Minimum ${_} caractères requis`,FORM_VALIDATION_MAX_LENGTH:_=>`Maximum ${_} caractères autorisés`,FORM_VALIDATION_MIN:_=>`La valeur minimale est ${_}`,FORM_VALIDATION_MAX:_=>`La valeur maximale est ${_}`,FORM_VALIDATION_MIN_SELECT:_=>`Sélectionnez au moins ${_} options`,FORM_VALIDATION_MAX_SELECT:_=>`Sélectionnez au maximum ${_} options`,FORM_VALIDATION_REGEX_FAILED:"Format invalide",DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE:"dd/MM/yyyy",DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION:"HH:mm"},A={language:"fr",dateLocale:T,stringSet:E};exports.default=A;
|