@sendbird/ai-agent-messenger-react 1.31.0 → 1.32.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/index.d.ts CHANGED
@@ -1532,7 +1532,7 @@ declare interface ContextObject {
1532
1532
  context: Record<string, string>;
1533
1533
  }
1534
1534
 
1535
- export declare const Conversation: ({ children, onNavigateToConversationList, channelUrl, onClearChannelUrl, shouldMarkAsRead, announcementsEnabled, initialFocusTarget, style, closedChannelUrl, onClearClosedChannelUrl, }: Props_3) => JSX.Element;
1535
+ export declare const Conversation: ({ children, onNavigateToConversationList, channelUrl, onClearChannelUrl, shouldMarkAsRead, announcementsEnabled, initialFocusTarget, style, closedChannelUrl, onClearClosedChannelUrl, }: ConversationProps) => JSX.Element;
1536
1536
 
1537
1537
  export declare const ConversationContext: Context<ConversationContextValue | null>;
1538
1538
 
@@ -1826,7 +1826,7 @@ export declare const ConversationLayout: {
1826
1826
  declare interface ConversationLayoutTemplateProps {
1827
1827
  }
1828
1828
 
1829
- export declare const ConversationList: ({ conversationListLimit, conversationListFilter, children, onOpenConversationView, announcementsEnabled, style, }: Props_4) => JSX.Element;
1829
+ export declare const ConversationList: ({ conversationListLimit, conversationListFilter, children, onOpenConversationView, announcementsEnabled, style, }: ConversationListProps) => JSX.Element;
1830
1830
 
1831
1831
  /**
1832
1832
  * Public interface for ConversationListCollection.
@@ -1980,6 +1980,15 @@ declare interface ConversationListOpenOptions {
1980
1980
  initialFocusTarget?: 'messageInput';
1981
1981
  }
1982
1982
 
1983
+ export declare type ConversationListProps = PropsWithChildren<{
1984
+ conversationListLimit?: number;
1985
+ conversationListFilter?: Partial<AIAgentGroupChannelFilter>;
1986
+ onOpenConversationView?: (channelUrl: string, status: 'open' | 'closed', options?: ConversationListOpenOptions) => void;
1987
+ announcementsEnabled?: boolean;
1988
+ /** Custom styles for the conversation list container. */
1989
+ style?: CSSProperties;
1990
+ }>;
1991
+
1983
1992
  declare type ConversationMessageEvent = ConversationMessageEventPayload & { id: number };
1984
1993
 
1985
1994
  declare type ConversationMessageEventPayload =
@@ -1999,6 +2008,21 @@ declare type ConversationMessageEventPayload =
1999
2008
  messages: ChatSDKBaseMessage[];
2000
2009
  };
2001
2010
 
2011
+ export declare type ConversationProps = PropsWithChildren<{
2012
+ channelUrl?: string;
2013
+ onClearChannelUrl?: () => void;
2014
+ onNavigateToConversationList?: () => void;
2015
+ shouldMarkAsRead?: boolean;
2016
+ announcementsEnabled?: boolean;
2017
+ initialFocusTarget?: ConversationInitialFocusTarget;
2018
+ /** Custom styles for the conversation container. */
2019
+ style?: CSSProperties;
2020
+ /** @deprecated Please use `channelUrl` instead. **/
2021
+ closedChannelUrl?: string;
2022
+ /** @deprecated Please use `onClearChannelUrl` instead. **/
2023
+ onClearClosedChannelUrl?: () => void;
2024
+ }>;
2025
+
2002
2026
  declare interface ConversationScrollContextValue {
2003
2027
  ref: RefObject<HTMLDivElement | null> | ((element: HTMLDivElement | null) => void);
2004
2028
  state: {
@@ -2259,6 +2283,9 @@ export declare interface ExtendedMessagePayload {
2259
2283
  form?: Form;
2260
2284
  steward?: Steward;
2261
2285
 
2286
+ // safeguard
2287
+ flagged_types?: string[];
2288
+
2262
2289
  // logs
2263
2290
  groundedness: GroundednessInfo[];
2264
2291
  manual: ActionbookInfo;
@@ -2278,10 +2305,20 @@ export declare interface FeedbackInfo {
2278
2305
 
2279
2306
  export declare const FixedMessenger: ForwardRefExoticComponent<MessengerProps & RefAttributes<MessengerSessionRef>> & {
2280
2307
  Style: (props: FixedMessengerStyleProps) => null;
2308
+ Conversation: ({ component }: FixedMessengerConversationProps) => null;
2281
2309
  ConversationChildren: ({ children }: PropsWithChildren) => null;
2310
+ ConversationList: ({ component }: FixedMessengerConversationListProps) => null;
2282
2311
  ConversationListChildren: ({ children }: PropsWithChildren) => null;
2283
2312
  };
2284
2313
 
2314
+ declare interface FixedMessengerConversationListProps {
2315
+ component: ComponentType<ConversationListProps>;
2316
+ }
2317
+
2318
+ declare interface FixedMessengerConversationProps {
2319
+ component: ComponentType<ConversationProps>;
2320
+ }
2321
+
2285
2322
  export declare type FixedMessengerMargin = {
2286
2323
  top: number;
2287
2324
  bottom: number;
@@ -4612,7 +4649,7 @@ export declare const MessageListUILayout: {
4612
4649
  }) => null;
4613
4650
  };
4614
4651
 
4615
- export declare const MessageLogs: ({ actionbook, functionCalls, groundedness, agentMessageTemplates, onClickActionbook, onClickFunctionCall, onClickFunctionCallDetail, onClickGroundedness, onClickAgentMessageTemplate, topContent, bottomContent, renderCustomGroundednessIcon, style, }: Props_2) => JSX.Element;
4652
+ export declare const MessageLogs: ({ actionbook, functionCalls, groundedness, agentMessageTemplates, flaggedTypes, onClickActionbook, onClickFunctionCall, onClickFunctionCallDetail, onClickGroundedness, onClickAgentMessageTemplate, topContent, bottomContent, renderCustomGroundednessIcon, style, }: Props_2) => JSX.Element;
4616
4653
 
4617
4654
  declare interface MessageTemplateCache {
4618
4655
  set(key: string, value: string): void;
@@ -5113,6 +5150,7 @@ declare type Props_2 = {
5113
5150
  functionCalls?: FunctionCallsInfo[];
5114
5151
  groundedness?: GroundednessInfo[];
5115
5152
  agentMessageTemplates?: AgentMessageTemplateInfo[];
5153
+ flaggedTypes?: string[];
5116
5154
  onClickActionbook?: (value: ActionbookInfo) => void;
5117
5155
  onClickFunctionCall?: (value: FunctionCallsInfo) => void;
5118
5156
  onClickFunctionCallDetail?: (value: FunctionCallsInfo) => void;
@@ -5132,31 +5170,7 @@ declare type Props_2 = {
5132
5170
  }) => ReactNode;
5133
5171
  };
5134
5172
 
5135
- declare type Props_3 = PropsWithChildren<{
5136
- channelUrl?: string;
5137
- onClearChannelUrl?: () => void;
5138
- onNavigateToConversationList?: () => void;
5139
- shouldMarkAsRead?: boolean;
5140
- announcementsEnabled?: boolean;
5141
- initialFocusTarget?: ConversationInitialFocusTarget;
5142
- /** Custom styles for the conversation container. */
5143
- style?: CSSProperties;
5144
- /** @deprecated Please use `channelUrl` instead. **/
5145
- closedChannelUrl?: string;
5146
- /** @deprecated Please use `onClearChannelUrl` instead. **/
5147
- onClearClosedChannelUrl?: () => void;
5148
- }>;
5149
-
5150
- declare type Props_4 = PropsWithChildren<{
5151
- conversationListLimit?: number;
5152
- conversationListFilter?: Partial<AIAgentGroupChannelFilter>;
5153
- onOpenConversationView?: (channelUrl: string, status: 'open' | 'closed', options?: ConversationListOpenOptions) => void;
5154
- announcementsEnabled?: boolean;
5155
- /** Custom styles for the conversation list container. */
5156
- style?: CSSProperties;
5157
- }>;
5158
-
5159
- declare type ReactOnlyIconName = 'expand' | 'collapse' | 'chevron-right' | 'attach' | 'close-filled' | 'actionbook' | 'function' | 'confluence' | 'zendesk' | 'salesforce' | 'sprinklr' | 'website' | 'snippet' | 'template' | 'show' | 'mute';
5173
+ declare type ReactOnlyIconName = 'expand' | 'collapse' | 'chevron-right' | 'attach' | 'close-filled' | 'actionbook' | 'function' | 'confluence' | 'zendesk' | 'salesforce' | 'sprinklr' | 'website' | 'snippet' | 'template' | 'show' | 'mute' | 'activity';
5160
5174
 
5161
5175
  declare type ReleaseDisabledByValue =
5162
5176
  | 'unavailable'