@sendbird/ai-agent-messenger-react 1.17.1-rc.0 → 1.18.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/{BLuQkDcR.cjs → 9pP8_kBW.cjs} +1 -1
- package/dist/cjs/{DQPi3fS8.cjs → B9Q2LOZZ.cjs} +1 -1
- package/dist/cjs/{CwK6i9-r.cjs → Bu3zzr6j.cjs} +1 -1
- package/dist/cjs/{CkMYduJm.cjs → BuBoF2qI.cjs} +1 -1
- package/dist/cjs/{BTvjZpxU.cjs → D11KPdOs.cjs} +1 -1
- package/dist/cjs/{7XXWXLcU.cjs → DAF2JUxO.cjs} +1 -1
- package/dist/cjs/{OptTTWKD.cjs → DAP4nAvQ.cjs} +1 -1
- package/dist/cjs/{Bsj_CaE9.cjs → DXUsaL2W.cjs} +29 -29
- package/dist/cjs/{BHbu2DmW.cjs → DqdBRt6e.cjs} +1 -1
- package/dist/cjs/{BztCzrYC.cjs → gbzRqe1a.cjs} +1 -1
- package/dist/cjs/{B2hgrAGy.cjs → oKi8u6wj.cjs} +1 -1
- package/dist/es/{tCCgN_1F.js → 3LbHdnQ8.js} +1 -1
- package/dist/es/{C66_3vse.js → BFTnuMEy.js} +1 -1
- package/dist/es/{CIfQGDUo.js → BSu_ZpXq.js} +1 -1
- package/dist/es/{BDacB7L5.js → BatMiKXs.js} +1 -1
- package/dist/es/{BDbS-txF.js → Bo9TA_Z-.js} +1 -1
- package/dist/es/{dOjg_hmi.js → C60MlOyZ.js} +1 -1
- package/dist/es/{Dig22Uld.js → CeWycJIw.js} +1 -1
- package/dist/es/{DSF6suiF.js → CjvNmTwL.js} +1 -1
- package/dist/es/{CHuP5oSk.js → DJzTBusb.js} +1 -1
- package/dist/es/{DKocG16I.js → Dzr6sXdx.js} +1001 -995
- package/dist/es/{Ciqor33y.js → hblOq7Ks.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +14 -18
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@sendbird/chat");const e=require("./cjs/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@sendbird/chat");const e=require("./cjs/DXUsaL2W.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.MessageListUILayout=e.MessageListUILayout;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
|
@@ -271,10 +271,6 @@ origin?: string;
|
|
|
271
271
|
messageTemplate?: {
|
|
272
272
|
__internalVariables?: InternalMessageTemplateVariables;
|
|
273
273
|
};
|
|
274
|
-
/**
|
|
275
|
-
* @internal DO NOT USE THIS - Used for conversation initial render stat tracking.
|
|
276
|
-
*/
|
|
277
|
-
presentMethod?: PresentMethod;
|
|
278
274
|
} & {
|
|
279
275
|
children?: ReactNode | undefined;
|
|
280
276
|
} & RefAttributes<MessengerSessionRef>>;
|
|
@@ -573,7 +569,6 @@ declare interface AIAgentMessengerSessionContextValue {
|
|
|
573
569
|
userSession: null | UserSession;
|
|
574
570
|
aiAgentInfo: null | AIAgentInfo;
|
|
575
571
|
launcherInfo: null | LauncherInfo;
|
|
576
|
-
presentMethod: PresentMethod;
|
|
577
572
|
|
|
578
573
|
connectionError?: Error;
|
|
579
574
|
|
|
@@ -760,10 +755,6 @@ export declare type AIAgentProps = PropsWithChildren<{
|
|
|
760
755
|
messageTemplate?: {
|
|
761
756
|
__internalVariables?: InternalMessageTemplateVariables;
|
|
762
757
|
};
|
|
763
|
-
/**
|
|
764
|
-
* @internal DO NOT USE THIS - Used for conversation initial render stat tracking.
|
|
765
|
-
*/
|
|
766
|
-
presentMethod?: PresentMethod;
|
|
767
758
|
}>;
|
|
768
759
|
|
|
769
760
|
declare interface AIAgentQueryParams {
|
|
@@ -1063,11 +1054,11 @@ declare interface ConversationHeaderTemplateProps {
|
|
|
1063
1054
|
}
|
|
1064
1055
|
|
|
1065
1056
|
declare class ConversationInitialRenderStats extends AIAgentBaseStats {
|
|
1066
|
-
private presentMethod: PresentMethod;
|
|
1057
|
+
private presentMethod: PresentMethod = 'direct_present';
|
|
1067
1058
|
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
this
|
|
1059
|
+
setPresentMethod(method: PresentMethod): this {
|
|
1060
|
+
this.presentMethod = method;
|
|
1061
|
+
return this;
|
|
1071
1062
|
}
|
|
1072
1063
|
|
|
1073
1064
|
protected getMetricKey(): string {
|
|
@@ -1110,18 +1101,18 @@ declare class ConversationInitialRenderStats extends AIAgentBaseStats {
|
|
|
1110
1101
|
*/
|
|
1111
1102
|
declare class ConversationInitialRenderStatsTracker {
|
|
1112
1103
|
private readonly commitCallback: StatsAppendCallback;
|
|
1113
|
-
private
|
|
1104
|
+
private presentMethod: PresentMethod = 'direct_present';
|
|
1114
1105
|
private stats: ConversationInitialRenderStats | null = null;
|
|
1115
1106
|
|
|
1116
|
-
constructor(commitCallback: StatsAppendCallback
|
|
1107
|
+
constructor(commitCallback: StatsAppendCallback) {
|
|
1117
1108
|
this.commitCallback = commitCallback;
|
|
1118
|
-
this.presentMethod = presentMethod;
|
|
1119
1109
|
}
|
|
1120
1110
|
|
|
1121
1111
|
private getOrCreateStats(): ConversationInitialRenderStats {
|
|
1122
1112
|
if (!this.stats || this.stats.isCommitted()) {
|
|
1123
|
-
this.stats = new ConversationInitialRenderStats(
|
|
1124
|
-
|
|
1113
|
+
this.stats = new ConversationInitialRenderStats()
|
|
1114
|
+
.setCommitCallback(this.commitCallback)
|
|
1115
|
+
.setPresentMethod(this.presentMethod);
|
|
1125
1116
|
}
|
|
1126
1117
|
return this.stats;
|
|
1127
1118
|
}
|
|
@@ -1197,6 +1188,11 @@ declare class ConversationInitialRenderStatsTracker {
|
|
|
1197
1188
|
this.stats?.commit();
|
|
1198
1189
|
}
|
|
1199
1190
|
|
|
1191
|
+
setPresentMethod(method: PresentMethod): void {
|
|
1192
|
+
this.presentMethod = method;
|
|
1193
|
+
this.stats?.setPresentMethod(method);
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1200
1196
|
clear(): void {
|
|
1201
1197
|
this.stats = null;
|
|
1202
1198
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@sendbird/chat";
|
|
2
|
-
import { a as t, b as n, d as i, C as r, D as C, f as L, g as u, h as v, i as g, j as y, k as x, l as M, n as d, o as m, p as l, q as I, r as c, F as f, I as h, L as p, s as P, M as S, t as A, u as D, O as z, P as B, S as F, v as H, w as O, x as T, y as U, z as b, B as j, E as k } from "./es/
|
|
2
|
+
import { a as t, b as n, d as i, C as r, D as C, f as L, g as u, h as v, i as g, j as y, k as x, l as M, n as d, o as m, p as l, q as I, r as c, F as f, I as h, L as p, s as P, M as S, t as A, u as D, O as z, P as B, S as F, v as H, w as O, x as T, y as U, z as b, B as j, E as k } from "./es/Dzr6sXdx.js";
|
|
3
3
|
import "react";
|
|
4
4
|
export {
|
|
5
5
|
t 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.18.0",
|
|
4
4
|
"description": "Delight AI Agent Messenger for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -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/ai-agent-core": "1.
|
|
48
|
-
"@sendbird/
|
|
49
|
-
"@sendbird/
|
|
47
|
+
"@sendbird/ai-agent-core": "1.18.0",
|
|
48
|
+
"@sendbird/vite-tools": "0.0.1",
|
|
49
|
+
"@sendbird/config-editor": "0.1.0"
|
|
50
50
|
},
|
|
51
51
|
"msw": {
|
|
52
52
|
"workerDirectory": [
|