@sendbird/ai-agent-messenger-react 1.13.1 → 1.14.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/{BdwWrAAp.cjs → B1tLGMir.cjs} +1 -1
- package/dist/cjs/{BKGMHnw9.cjs → BBx-8cm_.cjs} +1 -1
- package/dist/cjs/{BPwCUUtB.cjs → BgVlF21n.cjs} +1 -1
- package/dist/cjs/{PZ2du4si.cjs → Cid7OVHf.cjs} +1 -1
- package/dist/cjs/DKMWo-NT.cjs +306 -0
- package/dist/cjs/{C0ghQ00S.cjs → DRYp-Aeq.cjs} +1 -1
- package/dist/cjs/{CgKaFsNM.cjs → Da-SU-eO.cjs} +1 -1
- package/dist/cjs/{Cfl_OFPL.cjs → Zam2SMxN.cjs} +1 -1
- package/dist/cjs/{DHKyBmS2.cjs → _2AhSWhf.cjs} +1 -1
- package/dist/cjs/{C6epASKA.cjs → awgtpOfn.cjs} +1 -1
- package/dist/cjs/{DEtHXyvH.cjs → yj3YM6ag.cjs} +1 -1
- package/dist/es/{yBEMlNSs.js → BJNTmQ2V.js} +1 -1
- package/dist/es/{YUOGDsml.js → BW6o50qt.js} +1 -1
- package/dist/es/{CFFZNjOj.js → Bw9xvmqB.js} +1 -1
- package/dist/es/{By2XFBR_.js → C1Zy5PCq.js} +1019 -1006
- package/dist/es/{-WWqhsdP.js → C66w0Vo6.js} +1 -1
- package/dist/es/{Bsb8urZu.js → DvF4h9BU.js} +1 -1
- package/dist/es/{C3PP_RTM.js → FYaa05gN.js} +1 -1
- package/dist/es/{DIrWtn8H.js → Ge_YPjjg.js} +1 -1
- package/dist/es/{7nVEVfxl.js → TXpETEfV.js} +1 -1
- package/dist/es/{nGzMJZzZ.js → b3j3zOSP.js} +1 -1
- package/dist/es/{BDvtEnu9.js → t-xO5mFL.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +13 -2
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/dist/cjs/DwrHbIrU.cjs +0 -306
|
@@ -3,7 +3,7 @@ import { useCallback as s } from "react";
|
|
|
3
3
|
import h from "dompurify";
|
|
4
4
|
import x, { RuleType as g } from "markdown-to-jsx";
|
|
5
5
|
import b from "styled-components";
|
|
6
|
-
import { A as c, e as m, c as r } from "./
|
|
6
|
+
import { A as c, e as m, c as r } from "./C1Zy5PCq.js";
|
|
7
7
|
const w = (d, o, a, e) => o.type === g.textStrikethroughed ? /* @__PURE__ */ t.createElement("span", { key: e.key }, `~~${a(o.children, e)}~~`) : d(), v = ({ className: d, children: o, style: a, onClickImage: e }) => {
|
|
8
8
|
const p = s((i) => {
|
|
9
9
|
const n = /* @__PURE__ */ t.createElement("img", { ...i, alt: i.alt || "" }), l = i.src;
|
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/DKMWo-NT.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
|
@@ -456,6 +456,7 @@ declare interface AIAgentMessengerSessionContextValue {
|
|
|
456
456
|
setActiveChannel: (param: { url: string; status: ConversationStatus }) => void;
|
|
457
457
|
|
|
458
458
|
createConversation: (params: ConversationCreateParams) => Promise<string>;
|
|
459
|
+
searchConversation: (params: SearchConversationParams) => Promise<string[]>;
|
|
459
460
|
refreshActiveChannel: () => Promise<string>;
|
|
460
461
|
|
|
461
462
|
authenticate: () => Promise<MessengerSettingsResponse>;
|
|
@@ -789,7 +790,7 @@ declare interface ContextObject {
|
|
|
789
790
|
context: Record<string, string>;
|
|
790
791
|
}
|
|
791
792
|
|
|
792
|
-
export declare const Conversation: ({ children, onNavigateToConversationList, channelUrl, onClearChannelUrl, shouldMarkAsRead, closedChannelUrl, onClearClosedChannelUrl, }: Props_5) => JSX.Element;
|
|
793
|
+
export declare const Conversation: ({ children, onNavigateToConversationList, channelUrl, onClearChannelUrl, shouldMarkAsRead, style, closedChannelUrl, onClearClosedChannelUrl, }: Props_5) => JSX.Element;
|
|
793
794
|
|
|
794
795
|
export declare const ConversationContext: Context<ConversationContextValue | null>;
|
|
795
796
|
|
|
@@ -927,7 +928,7 @@ export declare const ConversationLayout: {
|
|
|
927
928
|
}) => null;
|
|
928
929
|
};
|
|
929
930
|
|
|
930
|
-
export declare const ConversationList: ({ conversationListLimit, conversationListFilter, children, onOpenConversationView, }: Props_6) => JSX.Element;
|
|
931
|
+
export declare const ConversationList: ({ conversationListLimit, conversationListFilter, children, onOpenConversationView, style, }: Props_6) => JSX.Element;
|
|
931
932
|
|
|
932
933
|
/**
|
|
933
934
|
* Parameters for creating a ConversationListCollection instance.
|
|
@@ -1239,6 +1240,7 @@ export declare interface ExtendedMessagePayload {
|
|
|
1239
1240
|
question: string;
|
|
1240
1241
|
scores: number[]; // One or more CSAT scores that trigger this follow-up question.
|
|
1241
1242
|
required?: boolean;
|
|
1243
|
+
always_visible?: boolean; // Can only be enabled in Dashboard when there is exactly 1 follow-up item and scores are set to [1,2,3,4,5].
|
|
1242
1244
|
}
|
|
1243
1245
|
| {
|
|
1244
1246
|
response_type: 'single_choice';
|
|
@@ -1246,6 +1248,7 @@ export declare interface ExtendedMessagePayload {
|
|
|
1246
1248
|
scores: number[]; // One or more CSAT scores that trigger this follow-up question.
|
|
1247
1249
|
options: string[]; // Up to 5 predefined answer choices
|
|
1248
1250
|
required?: boolean;
|
|
1251
|
+
always_visible?: boolean; // Can only be enabled in Dashboard when there is exactly 1 follow-up item and scores are set to [1,2,3,4,5].
|
|
1249
1252
|
}
|
|
1250
1253
|
>;
|
|
1251
1254
|
};
|
|
@@ -2143,6 +2146,8 @@ declare type Props_5 = PropsWithChildren<{
|
|
|
2143
2146
|
onClearChannelUrl?: () => void;
|
|
2144
2147
|
onNavigateToConversationList?: () => void;
|
|
2145
2148
|
shouldMarkAsRead?: boolean;
|
|
2149
|
+
/** Custom styles for the conversation container. */
|
|
2150
|
+
style?: CSSProperties;
|
|
2146
2151
|
/** @deprecated Please use `channelUrl` instead. **/
|
|
2147
2152
|
closedChannelUrl?: string;
|
|
2148
2153
|
/** @deprecated Please use `onClearChannelUrl` instead. **/
|
|
@@ -2153,8 +2158,14 @@ declare type Props_6 = PropsWithChildren<{
|
|
|
2153
2158
|
conversationListLimit?: number;
|
|
2154
2159
|
conversationListFilter?: Partial<AIAgentGroupChannelFilter>;
|
|
2155
2160
|
onOpenConversationView?: (channelUrl: string, status: 'open' | 'closed') => void;
|
|
2161
|
+
/** Custom styles for the conversation list container. */
|
|
2162
|
+
style?: CSSProperties;
|
|
2156
2163
|
}>;
|
|
2157
2164
|
|
|
2165
|
+
declare interface SearchConversationParams {
|
|
2166
|
+
context: Record<string, string>;
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2158
2169
|
declare type SingleSelectField = {
|
|
2159
2170
|
key: string;
|
|
2160
2171
|
type: 'single-select';
|
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/
|
|
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/C1Zy5PCq.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.
|
|
3
|
+
"version": "1.14.0",
|
|
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
|
|
24
|
-
"@sendbird/uikit-message-template": "0.0
|
|
25
|
-
"@sendbird/uikit-tools": "0.0
|
|
23
|
+
"@sendbird/react-uikit-message-template-view": "^0.1.0",
|
|
24
|
+
"@sendbird/uikit-message-template": "^0.1.0",
|
|
25
|
+
"@sendbird/uikit-tools": "^0.1.0",
|
|
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.
|
|
32
|
+
"@sendbird/chat": "^4.21.0",
|
|
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.
|
|
38
|
+
"@sendbird/chat": "^4.21.0",
|
|
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,9 +44,9 @@
|
|
|
44
44
|
"react-dom": "^19.0.0",
|
|
45
45
|
"strip-json-comments": "^5.0.1",
|
|
46
46
|
"styled-components": "^6.1.15",
|
|
47
|
-
"@sendbird/
|
|
48
|
-
"@sendbird/
|
|
49
|
-
"@sendbird/
|
|
47
|
+
"@sendbird/ai-agent-core": "1.14.0",
|
|
48
|
+
"@sendbird/config-editor": "0.1.0",
|
|
49
|
+
"@sendbird/vite-tools": "0.0.1"
|
|
50
50
|
},
|
|
51
51
|
"msw": {
|
|
52
52
|
"workerDirectory": [
|