@sendbird/ai-agent-messenger-react 1.3.0 → 1.3.1
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/{BQqygmjw.cjs → BCIx4Qv_.cjs} +1 -1
- package/dist/cjs/{DMxlnbEy.cjs → Cb__vcY_.cjs} +1 -1
- package/dist/cjs/ChFlUdD0.cjs +207 -0
- package/dist/cjs/{8flIqihd.cjs → CrVpYSzZ.cjs} +1 -1
- package/dist/cjs/{B3LqSSG5.cjs → DyfwCarh.cjs} +1 -1
- package/dist/cjs/{BvXE2Myz.cjs → pxYCwAlg.cjs} +1 -1
- package/dist/es/{DNKomW8O.js → BuMtQ0m7.js} +1 -1
- package/dist/es/{CorQ5vL_.js → CKTGU2qP.js} +1 -1
- package/dist/es/{ccfzGnJU.js → CV59hwzK.js} +1 -1
- package/dist/es/{4nxZMIz3.js → CwdCJ7xG.js} +1 -1
- package/dist/es/{3qBdtnlJ.js → D43pgxiz.js} +781 -761
- package/dist/es/{DFlRbX2F.js → DOAkPSN5.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +32 -2
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/dist/cjs/rl6FrW6Y.cjs +0 -207
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/ChFlUdD0.cjs");require("react");exports.AgentProviderContainer=e.AgentProviderContainer;exports.AgentUIProviderContainer=e.AgentUIProviderContainer;exports.AnonymousSessionInfo=e.AnonymousSessionInfo;exports.CSATType=e.CSATType;exports.Commands=e.Commands;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.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
|
@@ -161,6 +161,11 @@ countryCode?: string;
|
|
|
161
161
|
* */
|
|
162
162
|
context?: Record<string, string>;
|
|
163
163
|
/**
|
|
164
|
+
* @public
|
|
165
|
+
* @description AIAgent global default query parameters.
|
|
166
|
+
* */
|
|
167
|
+
queryParams?: AIAgentQueryParams;
|
|
168
|
+
/**
|
|
164
169
|
* @internal
|
|
165
170
|
* @description Preview configurations for the ai agent client.
|
|
166
171
|
* */
|
|
@@ -225,6 +230,8 @@ declare interface AIAgentContextValue {
|
|
|
225
230
|
dispatcher: Dispatcher;
|
|
226
231
|
|
|
227
232
|
cache: AIAgentCache;
|
|
233
|
+
|
|
234
|
+
queryParams?: AIAgentQueryParams;
|
|
228
235
|
}
|
|
229
236
|
|
|
230
237
|
declare interface AIAgentConversationContextValue {
|
|
@@ -393,6 +400,11 @@ export declare type AIAgentProps = PropsWithChildren<{
|
|
|
393
400
|
* @description Context object for the AI agent client. This is injected when the messenger is first loaded and can provide additional context that may influence how the AI responds to user conversations.
|
|
394
401
|
* */
|
|
395
402
|
context?: Record<string, string>;
|
|
403
|
+
/**
|
|
404
|
+
* @public
|
|
405
|
+
* @description AIAgent global default query parameters.
|
|
406
|
+
* */
|
|
407
|
+
queryParams?: AIAgentQueryParams;
|
|
396
408
|
/**
|
|
397
409
|
* @internal
|
|
398
410
|
* @description Preview configurations for the ai agent client.
|
|
@@ -436,6 +448,10 @@ export declare type AIAgentProps = PropsWithChildren<{
|
|
|
436
448
|
};
|
|
437
449
|
}>;
|
|
438
450
|
|
|
451
|
+
declare interface AIAgentQueryParams {
|
|
452
|
+
conversationListParams?: ConversationListCollectionParams;
|
|
453
|
+
}
|
|
454
|
+
|
|
439
455
|
declare type AnonUserSessionData = { userId: string; authToken: string; expireAt: number };
|
|
440
456
|
|
|
441
457
|
export declare class AnonymousSessionInfo {
|
|
@@ -570,16 +586,27 @@ export declare const ConversationLayout: {
|
|
|
570
586
|
}) => null;
|
|
571
587
|
};
|
|
572
588
|
|
|
573
|
-
export declare const ConversationList: ({ conversationListFilter, children, onOpenConversationView }: Props_5) => JSX.Element;
|
|
589
|
+
export declare const ConversationList: ({ conversationListLimit, conversationListFilter, children, onOpenConversationView, }: Props_5) => JSX.Element;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Parameters for creating a ConversationListCollection instance.
|
|
593
|
+
*/
|
|
594
|
+
declare interface ConversationListCollectionParams {
|
|
595
|
+
/** Filter options for AI agent group channels */
|
|
596
|
+
filter?: AIAgentGroupChannelFilter;
|
|
597
|
+
/** Maximum number of channels to load per request (default: 20) */
|
|
598
|
+
limit?: number;
|
|
599
|
+
}
|
|
574
600
|
|
|
575
601
|
export declare const ConversationListContext: Context<ConversationListContextValue | null>;
|
|
576
602
|
|
|
577
603
|
declare interface ConversationListContextProps {
|
|
604
|
+
conversationListLimit?: number;
|
|
578
605
|
conversationListFilter?: Partial<AIAgentGroupChannelFilter>;
|
|
579
606
|
onOpenConversationView?: (channelUrl: string, status: ConversationStatus) => void;
|
|
580
607
|
}
|
|
581
608
|
|
|
582
|
-
export declare function ConversationListContextProvider({ conversationListFilter, onOpenConversationView, children, }: PropsWithChildren<ConversationListContextProps>): JSX.Element;
|
|
609
|
+
export declare function ConversationListContextProvider({ conversationListLimit, conversationListFilter, onOpenConversationView, children, }: PropsWithChildren<ConversationListContextProps>): JSX.Element;
|
|
583
610
|
|
|
584
611
|
declare interface ConversationListContextValue extends AIAgentConversationListContextValue {
|
|
585
612
|
onOpenConversationView: (channelUrl: string, status: ConversationStatus) => void;
|
|
@@ -741,6 +768,7 @@ logLevel?: LogLevel_2;
|
|
|
741
768
|
language?: string;
|
|
742
769
|
countryCode?: string;
|
|
743
770
|
context?: Record<string, string>;
|
|
771
|
+
queryParams?: AIAgentQueryParams;
|
|
744
772
|
agentPreviewConfigs?: AgentPreviewConfigs;
|
|
745
773
|
handlers?: AgentClientHandlers;
|
|
746
774
|
enableCloseConversationButton?: boolean;
|
|
@@ -827,6 +855,7 @@ logLevel?: LogLevel_2;
|
|
|
827
855
|
language?: string;
|
|
828
856
|
countryCode?: string;
|
|
829
857
|
context?: Record<string, string>;
|
|
858
|
+
queryParams?: AIAgentQueryParams;
|
|
830
859
|
agentPreviewConfigs?: AgentPreviewConfigs;
|
|
831
860
|
handlers?: AgentClientHandlers;
|
|
832
861
|
enableCloseConversationButton?: boolean;
|
|
@@ -1446,6 +1475,7 @@ declare type Props_4 = PropsWithChildren<{
|
|
|
1446
1475
|
}>;
|
|
1447
1476
|
|
|
1448
1477
|
declare type Props_5 = PropsWithChildren<{
|
|
1478
|
+
conversationListLimit?: number;
|
|
1449
1479
|
conversationListFilter?: Partial<AIAgentGroupChannelFilter>;
|
|
1450
1480
|
onOpenConversationView?: (channelUrl: string, status: ConversationStatus) => void;
|
|
1451
1481
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as o, d as n, y as t, i, C as r, k as C, n as g, o as u, l as v, q as L, s as x, t as m, j as y, r as M, D as d, F as S, h as f, g as l, w as p, x as I, M as c, O as A, S as P, m as h, p as D, v as F, f as O, u as T, e as b } from "./es/
|
|
1
|
+
import { b as o, d as n, y as t, i, C as r, k as C, n as g, o as u, l as v, q as L, s as x, t as m, j as y, r as M, D as d, F as S, h as f, g as l, w as p, x as I, M as c, O as A, S as P, m as h, p as D, v as F, f as O, u as T, e as b } from "./es/D43pgxiz.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.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Sendbird AI Agent Messenger for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"styled-components": ">=5.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@monaco-editor/react": "^4.7.0",
|
|
39
38
|
"@sendbird/chat": "^4.19.5",
|
|
40
39
|
"@types/react": "^19.0.2",
|
|
41
40
|
"@types/react-dom": "^19.0.2",
|
|
@@ -45,8 +44,9 @@
|
|
|
45
44
|
"react-dom": "^19.0.0",
|
|
46
45
|
"strip-json-comments": "^5.0.1",
|
|
47
46
|
"styled-components": "^6.1.15",
|
|
48
|
-
"@sendbird/ai-agent-core": "1.3.
|
|
49
|
-
"@sendbird/vite-tools": "0.0.1"
|
|
47
|
+
"@sendbird/ai-agent-core": "1.3.1",
|
|
48
|
+
"@sendbird/vite-tools": "0.0.1",
|
|
49
|
+
"@sendbird/config-editor": "0.1.0"
|
|
50
50
|
},
|
|
51
51
|
"msw": {
|
|
52
52
|
"workerDirectory": [
|