@sendbird/ai-agent-messenger-react 1.9.4 → 1.10.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.
- package/dist/cjs/{3FZfYHdB.cjs → 4AZ6Q87O.cjs} +1 -1
- package/dist/cjs/6W_OqNez.cjs +306 -0
- package/dist/cjs/BfMMhsUa.cjs +1 -0
- package/dist/cjs/BlKyY9hF.cjs +1 -0
- package/dist/cjs/C7142Sl2.cjs +1 -0
- package/dist/cjs/C8VHX6fm.cjs +1 -0
- package/dist/cjs/CME7NQuN.cjs +1 -0
- package/dist/cjs/DMwptxsX.cjs +1 -0
- package/dist/cjs/DOZTa4YO.cjs +1 -0
- package/dist/cjs/DULWaS68.cjs +1 -0
- package/dist/cjs/plyhfozu.cjs +1 -0
- package/dist/es/{DsL4rr_E.js → BE3kaJsn.js} +8 -7
- package/dist/es/{AbMtKuL1.js → BWGTA9Vo.js} +6 -5
- package/dist/es/{DLBefCZu.js → BiR7LQjJ.js} +1 -1
- package/dist/es/{Ckbj7xUS.js → BjyxgC_T.js} +2 -1
- package/dist/es/{CdTHFLdT.js → CQNYwMPf.js} +2 -1
- package/dist/es/{DbHQmA7J.js → CVL0bi-q.js} +4 -3
- package/dist/es/{BZ8CgvKZ.js → ClcACcky.js} +2 -1
- package/dist/es/{DbGgm2EB.js → D2yx2nDf.js} +2 -1
- package/dist/es/{BEqMQsMR.js → DVFeDVD_.js} +1963 -1868
- package/dist/es/{DGiim3nM.js → DgyCf-ms.js} +4 -3
- package/dist/es/{A8_n33of.js → P9jkDnGQ.js} +4 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +147 -8
- package/dist/index.js +26 -24
- package/package.json +2 -2
- package/dist/cjs/B0xLvsrx.cjs +0 -1
- package/dist/cjs/BQ5Xm07B.cjs +0 -1
- package/dist/cjs/C1M13_pK.cjs +0 -306
- package/dist/cjs/CUI3Eou5.cjs +0 -1
- package/dist/cjs/CusiRFR8.cjs +0 -1
- package/dist/cjs/CweSdouk.cjs +0 -1
- package/dist/cjs/DCDuk2NA.cjs +0 -1
- package/dist/cjs/DNb-1Ucd.cjs +0 -1
- package/dist/cjs/DQGbNnX-.cjs +0 -1
- package/dist/cjs/G8gZU2xC.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as T } from "./
|
|
1
|
+
import { m as T } from "./DVFeDVD_.js";
|
|
2
2
|
import { ko as a } from "date-fns/locale/ko";
|
|
3
3
|
const t = {
|
|
4
4
|
conversation: {
|
|
@@ -6,6 +6,7 @@ const t = {
|
|
|
6
6
|
input_placeholder_disabled: "이 채널에서는 채팅을 사용할 수 없습니다.",
|
|
7
7
|
input_placeholder_wait_ai_agent_response: "상담사의 답변을 기다리는 중...",
|
|
8
8
|
input_placeholder_active_form: "계속 진행하려면 양식을 작성해 주세요.",
|
|
9
|
+
input_placeholder_reconnecting: "재연결 시도 중. 계속되면 새로고침하세요.",
|
|
9
10
|
unknown_message_type: "(알 수 없는 메시지 유형)",
|
|
10
11
|
powered_by: "Powered by",
|
|
11
12
|
citation_title: "출처",
|
|
@@ -115,11 +116,11 @@ const t = {
|
|
|
115
116
|
NO_NAME: "(이름 없음)",
|
|
116
117
|
/** @deprecated Unused string **/
|
|
117
118
|
CHANNEL_FROZEN: "채널이 동결되었습니다."
|
|
118
|
-
},
|
|
119
|
+
}, I = {
|
|
119
120
|
language: e.language,
|
|
120
121
|
dateLocale: e.dateLocale,
|
|
121
122
|
stringSet: A
|
|
122
123
|
};
|
|
123
124
|
export {
|
|
124
|
-
|
|
125
|
+
I as default
|
|
125
126
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as a } from "./
|
|
1
|
+
import { m as a } from "./DVFeDVD_.js";
|
|
2
2
|
import { hi as t } from "date-fns/locale/hi";
|
|
3
3
|
const o = {
|
|
4
4
|
conversation: {
|
|
@@ -6,6 +6,7 @@ const o = {
|
|
|
6
6
|
input_placeholder_disabled: "इस चैनल में चैट उपलब्ध नहीं है",
|
|
7
7
|
input_placeholder_wait_ai_agent_response: "एजेंट के उत्तर की प्रतीक्षा कर रहे हैं...",
|
|
8
8
|
input_placeholder_active_form: "आगे बढ़ने के लिए कृपया फॉर्म भरें।",
|
|
9
|
+
input_placeholder_reconnecting: "पुनः कनेक्ट हो रहा है। जारी रहे तो रिफ्रेश करें।",
|
|
9
10
|
unknown_message_type: "(अज्ञात संदेश प्रकार)",
|
|
10
11
|
powered_by: "द्वारा संचालित",
|
|
11
12
|
citation_title: "स्रोत",
|
|
@@ -115,11 +116,11 @@ const o = {
|
|
|
115
116
|
NO_NAME: "(कोई नाम नहीं)",
|
|
116
117
|
/** @deprecated Unused string **/
|
|
117
118
|
CHANNEL_FROZEN: "चैनल फ्रीज हो गया"
|
|
118
|
-
},
|
|
119
|
+
}, I = {
|
|
119
120
|
language: e.language,
|
|
120
121
|
dateLocale: e.dateLocale,
|
|
121
122
|
stringSet: A
|
|
122
123
|
};
|
|
123
124
|
export {
|
|
124
|
-
|
|
125
|
+
I as default
|
|
125
126
|
};
|
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/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;
|
package/dist/index.d.ts
CHANGED
|
@@ -286,6 +286,7 @@ declare interface AIAgentContextValue {
|
|
|
286
286
|
dispatcher: Dispatcher;
|
|
287
287
|
|
|
288
288
|
cache: AIAgentCache;
|
|
289
|
+
networkStateAdapter?: NetworkStateAdapter;
|
|
289
290
|
|
|
290
291
|
queryParams?: AIAgentQueryParams;
|
|
291
292
|
config?: AIAgentConfig;
|
|
@@ -580,6 +581,7 @@ declare interface AIAgentStringSet {
|
|
|
580
581
|
input_placeholder_disabled: string;
|
|
581
582
|
input_placeholder_wait_ai_agent_response: string;
|
|
582
583
|
input_placeholder_active_form: string;
|
|
584
|
+
input_placeholder_reconnecting: string;
|
|
583
585
|
|
|
584
586
|
unknown_message_type: string;
|
|
585
587
|
powered_by: string;
|
|
@@ -750,12 +752,88 @@ declare interface ConversationCreateParams {
|
|
|
750
752
|
context?: Record<string, string>;
|
|
751
753
|
}
|
|
752
754
|
|
|
755
|
+
export declare const ConversationHeaderLayout: {
|
|
756
|
+
(props: PropsWithChildren): ReactNode;
|
|
757
|
+
defaults: {
|
|
758
|
+
template: ComponentType<ConversationHeaderTemplateProps>;
|
|
759
|
+
components: {
|
|
760
|
+
StartArea: () => ReactNode;
|
|
761
|
+
TitleArea: () => ReactNode;
|
|
762
|
+
EndArea: () => ReactNode;
|
|
763
|
+
MenuButton: () => ReactNode;
|
|
764
|
+
Title: () => ReactNode;
|
|
765
|
+
HandoffButton: () => ReactNode;
|
|
766
|
+
ConversationCloseButton: () => ReactNode;
|
|
767
|
+
ExpandButton: () => ReactNode;
|
|
768
|
+
CloseButton: () => ReactNode;
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
Template: ({ template, children }: {
|
|
772
|
+
template?: ComponentType<ConversationHeaderTemplateProps> | undefined;
|
|
773
|
+
children?: ReactNode;
|
|
774
|
+
}) => JSX.Element;
|
|
775
|
+
Context: Context<LayoutContextValue< {
|
|
776
|
+
StartArea: () => ReactNode;
|
|
777
|
+
TitleArea: () => ReactNode;
|
|
778
|
+
EndArea: () => ReactNode;
|
|
779
|
+
MenuButton: () => ReactNode;
|
|
780
|
+
Title: () => ReactNode;
|
|
781
|
+
HandoffButton: () => ReactNode;
|
|
782
|
+
ConversationCloseButton: () => ReactNode;
|
|
783
|
+
ExpandButton: () => ReactNode;
|
|
784
|
+
CloseButton: () => ReactNode;
|
|
785
|
+
}, ConversationHeaderTemplateProps>>;
|
|
786
|
+
useContext: () => LayoutContextValue< {
|
|
787
|
+
StartArea: () => ReactNode;
|
|
788
|
+
TitleArea: () => ReactNode;
|
|
789
|
+
EndArea: () => ReactNode;
|
|
790
|
+
MenuButton: () => ReactNode;
|
|
791
|
+
Title: () => ReactNode;
|
|
792
|
+
HandoffButton: () => ReactNode;
|
|
793
|
+
ConversationCloseButton: () => ReactNode;
|
|
794
|
+
ExpandButton: () => ReactNode;
|
|
795
|
+
CloseButton: () => ReactNode;
|
|
796
|
+
}, ConversationHeaderTemplateProps>;
|
|
797
|
+
} & {
|
|
798
|
+
StartArea: (props: {
|
|
799
|
+
component: () => ReactNode;
|
|
800
|
+
}) => null;
|
|
801
|
+
TitleArea: (props: {
|
|
802
|
+
component: () => ReactNode;
|
|
803
|
+
}) => null;
|
|
804
|
+
EndArea: (props: {
|
|
805
|
+
component: () => ReactNode;
|
|
806
|
+
}) => null;
|
|
807
|
+
MenuButton: (props: {
|
|
808
|
+
component: () => ReactNode;
|
|
809
|
+
}) => null;
|
|
810
|
+
Title: (props: {
|
|
811
|
+
component: () => ReactNode;
|
|
812
|
+
}) => null;
|
|
813
|
+
HandoffButton: (props: {
|
|
814
|
+
component: () => ReactNode;
|
|
815
|
+
}) => null;
|
|
816
|
+
ConversationCloseButton: (props: {
|
|
817
|
+
component: () => ReactNode;
|
|
818
|
+
}) => null;
|
|
819
|
+
ExpandButton: (props: {
|
|
820
|
+
component: () => ReactNode;
|
|
821
|
+
}) => null;
|
|
822
|
+
CloseButton: (props: {
|
|
823
|
+
component: () => ReactNode;
|
|
824
|
+
}) => null;
|
|
825
|
+
};
|
|
826
|
+
|
|
827
|
+
declare interface ConversationHeaderTemplateProps {
|
|
828
|
+
titleAlign?: 'start' | 'center' | 'end';
|
|
829
|
+
}
|
|
830
|
+
|
|
753
831
|
export declare const ConversationLayout: {
|
|
754
832
|
(props: PropsWithChildren): ReactNode;
|
|
755
833
|
defaults: {
|
|
756
834
|
template: ComponentType<unknown>;
|
|
757
835
|
components: {
|
|
758
|
-
Header: () =>
|
|
836
|
+
Header: () => ReactNode;
|
|
759
837
|
Body: () => JSX.Element;
|
|
760
838
|
Footer: () => JSX.Element;
|
|
761
839
|
};
|
|
@@ -765,18 +843,18 @@ export declare const ConversationLayout: {
|
|
|
765
843
|
children?: ReactNode;
|
|
766
844
|
}) => JSX.Element;
|
|
767
845
|
Context: Context<LayoutContextValue< {
|
|
768
|
-
Header: () =>
|
|
846
|
+
Header: () => ReactNode;
|
|
769
847
|
Body: () => JSX.Element;
|
|
770
848
|
Footer: () => JSX.Element;
|
|
771
849
|
}, unknown>>;
|
|
772
850
|
useContext: () => LayoutContextValue< {
|
|
773
|
-
Header: () =>
|
|
851
|
+
Header: () => ReactNode;
|
|
774
852
|
Body: () => JSX.Element;
|
|
775
853
|
Footer: () => JSX.Element;
|
|
776
854
|
}, unknown>;
|
|
777
855
|
} & {
|
|
778
856
|
Header: (props: {
|
|
779
|
-
component: () =>
|
|
857
|
+
component: () => ReactNode;
|
|
780
858
|
}) => null;
|
|
781
859
|
Body: (props: {
|
|
782
860
|
component: () => JSX.Element;
|
|
@@ -812,6 +890,58 @@ declare interface ConversationListContextValue extends AIAgentConversationListCo
|
|
|
812
890
|
onOpenConversationView: (channelUrl: string, status: 'open' | 'closed') => void;
|
|
813
891
|
}
|
|
814
892
|
|
|
893
|
+
export declare const ConversationListHeaderLayout: {
|
|
894
|
+
(props: PropsWithChildren): ReactNode;
|
|
895
|
+
defaults: {
|
|
896
|
+
template: ComponentType<ConversationListHeaderTemplateProps>;
|
|
897
|
+
components: {
|
|
898
|
+
StartArea: () => ReactNode;
|
|
899
|
+
TitleArea: () => ReactNode;
|
|
900
|
+
EndArea: () => ReactNode;
|
|
901
|
+
Title: () => ReactNode;
|
|
902
|
+
CloseButton: () => ReactNode;
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
Template: ({ template, children }: {
|
|
906
|
+
template?: ComponentType<ConversationListHeaderTemplateProps> | undefined;
|
|
907
|
+
children?: ReactNode;
|
|
908
|
+
}) => JSX.Element;
|
|
909
|
+
Context: Context<LayoutContextValue< {
|
|
910
|
+
StartArea: () => ReactNode;
|
|
911
|
+
TitleArea: () => ReactNode;
|
|
912
|
+
EndArea: () => ReactNode;
|
|
913
|
+
Title: () => ReactNode;
|
|
914
|
+
CloseButton: () => ReactNode;
|
|
915
|
+
}, ConversationListHeaderTemplateProps>>;
|
|
916
|
+
useContext: () => LayoutContextValue< {
|
|
917
|
+
StartArea: () => ReactNode;
|
|
918
|
+
TitleArea: () => ReactNode;
|
|
919
|
+
EndArea: () => ReactNode;
|
|
920
|
+
Title: () => ReactNode;
|
|
921
|
+
CloseButton: () => ReactNode;
|
|
922
|
+
}, ConversationListHeaderTemplateProps>;
|
|
923
|
+
} & {
|
|
924
|
+
StartArea: (props: {
|
|
925
|
+
component: () => ReactNode;
|
|
926
|
+
}) => null;
|
|
927
|
+
TitleArea: (props: {
|
|
928
|
+
component: () => ReactNode;
|
|
929
|
+
}) => null;
|
|
930
|
+
EndArea: (props: {
|
|
931
|
+
component: () => ReactNode;
|
|
932
|
+
}) => null;
|
|
933
|
+
Title: (props: {
|
|
934
|
+
component: () => ReactNode;
|
|
935
|
+
}) => null;
|
|
936
|
+
CloseButton: (props: {
|
|
937
|
+
component: () => ReactNode;
|
|
938
|
+
}) => null;
|
|
939
|
+
};
|
|
940
|
+
|
|
941
|
+
declare interface ConversationListHeaderTemplateProps {
|
|
942
|
+
titleAlign?: 'start' | 'center' | 'end';
|
|
943
|
+
}
|
|
944
|
+
|
|
815
945
|
export declare const ConversationListItemLayout: {
|
|
816
946
|
(props: PropsWithChildren): ReactNode;
|
|
817
947
|
defaults: {
|
|
@@ -841,7 +971,7 @@ export declare const ConversationListLayout: {
|
|
|
841
971
|
defaults: {
|
|
842
972
|
template: ComponentType<unknown>;
|
|
843
973
|
components: {
|
|
844
|
-
Header: () =>
|
|
974
|
+
Header: () => ReactNode;
|
|
845
975
|
Body: () => JSX.Element;
|
|
846
976
|
Footer: () => JSX.Element;
|
|
847
977
|
};
|
|
@@ -851,18 +981,18 @@ export declare const ConversationListLayout: {
|
|
|
851
981
|
children?: ReactNode;
|
|
852
982
|
}) => JSX.Element;
|
|
853
983
|
Context: Context<LayoutContextValue< {
|
|
854
|
-
Header: () =>
|
|
984
|
+
Header: () => ReactNode;
|
|
855
985
|
Body: () => JSX.Element;
|
|
856
986
|
Footer: () => JSX.Element;
|
|
857
987
|
}, unknown>>;
|
|
858
988
|
useContext: () => LayoutContextValue< {
|
|
859
|
-
Header: () =>
|
|
989
|
+
Header: () => ReactNode;
|
|
860
990
|
Body: () => JSX.Element;
|
|
861
991
|
Footer: () => JSX.Element;
|
|
862
992
|
}, unknown>;
|
|
863
993
|
} & {
|
|
864
994
|
Header: (props: {
|
|
865
|
-
component: () =>
|
|
995
|
+
component: () => ReactNode;
|
|
866
996
|
}) => null;
|
|
867
997
|
Body: (props: {
|
|
868
998
|
component: () => JSX.Element;
|
|
@@ -1352,6 +1482,7 @@ declare type InputState = {
|
|
|
1352
1482
|
| 'ai_responding'
|
|
1353
1483
|
| 'conversation_closed'
|
|
1354
1484
|
| 'suggested_replies'
|
|
1485
|
+
| 'reconnecting'
|
|
1355
1486
|
| (string & {});
|
|
1356
1487
|
};
|
|
1357
1488
|
|
|
@@ -1627,6 +1758,13 @@ declare type MultiSelectField = {
|
|
|
1627
1758
|
};
|
|
1628
1759
|
};
|
|
1629
1760
|
|
|
1761
|
+
declare interface NetworkStateAdapter {
|
|
1762
|
+
/** Returns true if network is currently online */
|
|
1763
|
+
isOnline: () => boolean;
|
|
1764
|
+
/** Subscribe to network state changes. Returns unsubscribe function. */
|
|
1765
|
+
subscribe: (callback: (isOnline: boolean) => void) => () => void;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1630
1768
|
declare type NumberField = {
|
|
1631
1769
|
key: string;
|
|
1632
1770
|
type: 'number';
|
|
@@ -1930,6 +2068,7 @@ declare type StringSet = {
|
|
|
1930
2068
|
MESSAGE_INPUT__PLACE_HOLDER__WAIT_AI_AGENT_RESPONSE: string;
|
|
1931
2069
|
MESSAGE_INPUT__PLACE_HOLDER__SUGGESTED_REPLIES: string;
|
|
1932
2070
|
MESSAGE_INPUT__PLACE_HOLDER__DISABLED: string;
|
|
2071
|
+
MESSAGE_INPUT__PLACE_HOLDER__RECONNECTING: string;
|
|
1933
2072
|
BUTTON__CANCEL: string;
|
|
1934
2073
|
BUTTON__SUBMIT: string;
|
|
1935
2074
|
RETRY: string;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as o, b as n,
|
|
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";
|
|
2
2
|
import "react";
|
|
3
3
|
export {
|
|
4
4
|
o as AgentProviderContainer,
|
|
@@ -7,29 +7,31 @@ export {
|
|
|
7
7
|
i as CSATType,
|
|
8
8
|
r as Commands,
|
|
9
9
|
C as Conversation,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
v as
|
|
13
|
-
g as
|
|
10
|
+
L as ConversationContext,
|
|
11
|
+
u as ConversationContextProvider,
|
|
12
|
+
v as ConversationHeaderLayout,
|
|
13
|
+
g as ConversationLayout,
|
|
14
|
+
y as ConversationList,
|
|
14
15
|
x as ConversationListContext,
|
|
15
|
-
|
|
16
|
-
M as
|
|
17
|
-
m as
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
d as ConversationListContextProvider,
|
|
17
|
+
M as ConversationListHeaderLayout,
|
|
18
|
+
m as ConversationListItemLayout,
|
|
19
|
+
l as ConversationListLayout,
|
|
20
|
+
c as DefaultMessenger,
|
|
21
|
+
f as FixedMessenger,
|
|
22
|
+
h as IncomingMessageLayout,
|
|
23
|
+
I as LauncherBase,
|
|
24
|
+
P as LogLevel,
|
|
25
|
+
S as ManualSessionInfo,
|
|
26
|
+
p as MessageLogs,
|
|
27
|
+
A as OutgoingMessageLayout,
|
|
28
|
+
D as PlaceholderLayout,
|
|
29
|
+
z as SystemMessageLayout,
|
|
30
|
+
B as messengerDispatcher,
|
|
29
31
|
F as useConversationContext,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
H as useConversationListContext,
|
|
33
|
+
O as useLocalizationContext,
|
|
34
|
+
T as useMessengerContext,
|
|
35
|
+
b as useMessengerSessionContext,
|
|
36
|
+
j as useRefreshActiveChannel
|
|
35
37
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sendbird/ai-agent-messenger-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Delight AI Agent Messenger for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -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.
|
|
47
|
+
"@sendbird/ai-agent-core": "1.10.0",
|
|
48
48
|
"@sendbird/vite-tools": "0.0.1",
|
|
49
49
|
"@sendbird/config-editor": "0.1.0"
|
|
50
50
|
},
|
package/dist/cjs/B0xLvsrx.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./C1M13_pK.cjs"),n=require("date-fns/locale/pt"),r={conversation:{input_placeholder:"Fazer uma pergunta",input_placeholder_disabled:"O chat não está disponível neste canal",input_placeholder_wait_ai_agent_response:"Aguardando a resposta do agente...",input_placeholder_active_form:"Por favor, preencha o formulário para prosseguir.",unknown_message_type:"(Tipo de mensagem desconhecido)",powered_by:"Desenvolvido por",citation_title:"Fonte",start_new_conversation_label:"Falar com agente",failed_message_resend:"Tentar novamente",failed_message_remove:"Remover",file_upload_no_supported_files:"Nenhum tipo de arquivo suportado disponível."},conversation_list:{header_title:"Conversas",ended:"Encerrada"},date_format:{just_now:"Agora mesmo",minutes_ago:e=>`Há ${e} minutos`,hours_ago:e=>`Há ${e} horas`,date_short:"dd/MM/yyyy",date_separator:"d 'de' MMMM 'de' yyyy",message_timestamp:"p"},csat:{title:"Seu feedback é importante para nós",submitted_label:"Enviado com sucesso!",cre_question:"Seu problema foi resolvido?",cre_positive_label:"Sim, obrigado! 👍",cre_negative_label:"Não, isso não ajudou.",reason_placeholder:"Compartilhe seu feedback",question:"Como você avaliaria sua experiência?",submit_label:"Enviar",submission_expired:"Desculpe, o período da pesquisa foi encerrado."},form:{optional_label:"opcional",validation_required:"Esta pergunta é obrigatória"},common:{placeholder_something_went_wrong:"Algo deu errado",placeholder_no_messages:"Nenhuma mensagem",placeholder_no_conversations:"Nenhuma conversa ainda",placeholder_something_went_wrong_retry_label:"Tentar novamente"},feedback:{title:"Enviar feedback",good:"Bom",bad:"Ruim",comment_label:"Comentário (opcional)",comment_placeholder:"Deixe um comentário",cancel:"Cancelar",submit:"Enviar",save:"Salvar",edit:"Editar feedback",remove:"Remover feedback"}},o={language:"pt",strings:r,dateLocale:n.pt},a=_.mapCommonStringsToReactFormat(o.strings),t={...a,HEADER_BUTTON__AGENT_HANDOFF:"Conectar-se com um agente",MESSAGE_INPUT__PLACE_HOLDER__SUGGESTED_REPLIES:"Selecione uma opção para continuar",BUTTON__CANCEL:"Cancelar",BUTTON__SUBMIT:"Enviar",SUBMITTED:"Enviado",TRY_AGAIN:"Tente novamente.",FILE_UPLOAD_NOTIFICATION__COUNT_LIMIT:"Você não pode enviar mais de uma imagem.",FILE_UPLOAD_NOTIFICATION__SIZE_LIMIT:"O tamanho máximo por arquivo é de %d MB.",FILE_VIEWER__UNSUPPORT:"Mensagem não suportada",CSAT5_RATING_SCORE_1:"Terrível",CSAT5_RATING_SCORE_2:"Ruim",CSAT5_RATING_SCORE_3:"Ok",CSAT5_RATING_SCORE_4:"Bom",CSAT5_RATING_SCORE_5:"Ótimo",FORM_UNAVAILABLE:"O formulário não está mais disponível.",FORM_NOT_SUPPORTED:"Este formulário não é suportado na versão atual.",FORM_VALIDATION_MIN_LENGTH:e=>`Mínimo de ${e} caracteres necessários`,FORM_VALIDATION_MAX_LENGTH:e=>`Máximo de ${e} caracteres permitidos`,FORM_VALIDATION_MIN:e=>`Valor mínimo é ${e}`,FORM_VALIDATION_MAX:e=>`Valor máximo é ${e}`,FORM_VALIDATION_MIN_SELECT:e=>`Selecione pelo menos ${e} opções`,FORM_VALIDATION_MAX_SELECT:e=>`Selecione no máximo ${e} opções`,FORM_VALIDATION_REGEX_FAILED:"Formato inválido",DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE:a.DATE_FORMAT__DATE_SHORT,DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION:"HH:mm",CONVERSATION_LIST__TOPICS_FALLBACK:"Sem categoria",CONVERSATION_CLOSED_FOOTER_LABEL:"Sua conversa foi encerrada",START_NEW_CONVERSATION:"💬 Iniciar uma nova conversa",RETURN_TO_CONVERSATION:"💬 Retornar à conversa",BUTTON__SAVE:"Salvar",BUTTON__OK:"OK",NO_NAME:"(Sem nome)",CHANNEL_FROZEN:"Canal congelado"},i={language:o.language,dateLocale:o.dateLocale,stringSet:t};exports.default=i;
|
package/dist/cjs/BQ5Xm07B.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./C1M13_pK.cjs"),_=require("date-fns/locale/fr"),o={conversation:{input_placeholder:"Poser une question",input_placeholder_disabled:"Le chat n'est pas disponible dans ce canal",input_placeholder_wait_ai_agent_response:"En attente de la réponse de l'agent...",input_placeholder_active_form:"Veuillez remplir le formulaire pour continuer.",unknown_message_type:"(Type de message inconnu)",powered_by:"Propulsé par",citation_title:"Source",start_new_conversation_label:"Parler à un agent",failed_message_resend:"Réessayer",failed_message_remove:"Supprimer",file_upload_no_supported_files:"Aucun type de fichier pris en charge disponible."},conversation_list:{header_title:"Conversations",ended:"Terminée"},date_format:{just_now:"À l'instant",minutes_ago:e=>`Il y a ${e} minutes`,hours_ago:e=>`Il y a ${e} heures`,date_short:"dd/MM/yyyy",date_separator:"d MMMM yyyy",message_timestamp:"p"},csat:{title:"Vos commentaires comptent pour nous",submitted_label:"Soumis avec succès!",cre_question:"Votre problème a-t-il été résolu ?",cre_positive_label:"Oui, merci ! 👍",cre_negative_label:"Non, cela n'a pas aidé.",reason_placeholder:"Partagez votre avis",question:"Comment évalueriez-vous votre expérience ?",submit_label:"Envoyer",submission_expired:"Désolé, la période de l'enquête est terminée."},form:{optional_label:"optionnel",validation_required:"Cette question est obligatoire"},common:{placeholder_something_went_wrong:"Une erreur est survenue",placeholder_no_messages:"Aucun message",placeholder_no_conversations:"Aucune conversation pour le moment",placeholder_something_went_wrong_retry_label:"Réessayer"},feedback:{title:"Envoyer des commentaires",good:"Bien",bad:"Mauvais",comment_label:"Commentaire (optionnel)",comment_placeholder:"Laissez un commentaire",cancel:"Annuler",submit:"Envoyer",save:"Enregistrer",edit:"Modifier les commentaires",remove:"Supprimer les commentaires"}},n={language:"fr",strings:o,dateLocale:_.fr},a=r.mapCommonStringsToReactFormat(n.strings),t={...a,HEADER_BUTTON__AGENT_HANDOFF:"Se connecter avec un agent",MESSAGE_INPUT__PLACE_HOLDER__SUGGESTED_REPLIES:"Sélectionnez une option pour continuer",BUTTON__CANCEL:"Annuler",BUTTON__SUBMIT:"Soumettre",SUBMITTED:"Soumis",TRY_AGAIN:"Veuillez réessayer.",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",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",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_MIN_LENGTH:e=>`Minimum ${e} caractères requis`,FORM_VALIDATION_MAX_LENGTH:e=>`Maximum ${e} caractères autorisés`,FORM_VALIDATION_MIN:e=>`La valeur minimale est ${e}`,FORM_VALIDATION_MAX:e=>`La valeur maximale est ${e}`,FORM_VALIDATION_MIN_SELECT:e=>`Sélectionnez au moins ${e} options`,FORM_VALIDATION_MAX_SELECT:e=>`Sélectionnez au maximum ${e} options`,FORM_VALIDATION_REGEX_FAILED:"Format invalide",DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE:a.DATE_FORMAT__DATE_SHORT,DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION:"HH:mm",CONVERSATION_LIST__TOPICS_FALLBACK:"Aucune catégorie",CONVERSATION_CLOSED_FOOTER_LABEL:"Votre conversation est terminée",START_NEW_CONVERSATION:"💬 Démarrer une nouvelle conversation",RETURN_TO_CONVERSATION:"💬 Retourner à la conversation",BUTTON__SAVE:"Enregistrer",BUTTON__OK:"OK",NO_NAME:"(Sans nom)",CHANNEL_FROZEN:"Canal gelé"},s={language:n.language,dateLocale:n.dateLocale,stringSet:t};exports.default=s;
|