@sendbird/ai-agent-messenger-react 1.31.1 → 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.cjs +75 -75
- package/dist/index.d.ts +36 -26
- package/dist/index.js +2118 -2080
- package/package.json +4 -4
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, }:
|
|
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, }:
|
|
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: {
|
|
@@ -2281,10 +2305,20 @@ export declare interface FeedbackInfo {
|
|
|
2281
2305
|
|
|
2282
2306
|
export declare const FixedMessenger: ForwardRefExoticComponent<MessengerProps & RefAttributes<MessengerSessionRef>> & {
|
|
2283
2307
|
Style: (props: FixedMessengerStyleProps) => null;
|
|
2308
|
+
Conversation: ({ component }: FixedMessengerConversationProps) => null;
|
|
2284
2309
|
ConversationChildren: ({ children }: PropsWithChildren) => null;
|
|
2310
|
+
ConversationList: ({ component }: FixedMessengerConversationListProps) => null;
|
|
2285
2311
|
ConversationListChildren: ({ children }: PropsWithChildren) => null;
|
|
2286
2312
|
};
|
|
2287
2313
|
|
|
2314
|
+
declare interface FixedMessengerConversationListProps {
|
|
2315
|
+
component: ComponentType<ConversationListProps>;
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
declare interface FixedMessengerConversationProps {
|
|
2319
|
+
component: ComponentType<ConversationProps>;
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2288
2322
|
export declare type FixedMessengerMargin = {
|
|
2289
2323
|
top: number;
|
|
2290
2324
|
bottom: number;
|
|
@@ -5136,30 +5170,6 @@ declare type Props_2 = {
|
|
|
5136
5170
|
}) => ReactNode;
|
|
5137
5171
|
};
|
|
5138
5172
|
|
|
5139
|
-
declare type Props_3 = PropsWithChildren<{
|
|
5140
|
-
channelUrl?: string;
|
|
5141
|
-
onClearChannelUrl?: () => void;
|
|
5142
|
-
onNavigateToConversationList?: () => void;
|
|
5143
|
-
shouldMarkAsRead?: boolean;
|
|
5144
|
-
announcementsEnabled?: boolean;
|
|
5145
|
-
initialFocusTarget?: ConversationInitialFocusTarget;
|
|
5146
|
-
/** Custom styles for the conversation container. */
|
|
5147
|
-
style?: CSSProperties;
|
|
5148
|
-
/** @deprecated Please use `channelUrl` instead. **/
|
|
5149
|
-
closedChannelUrl?: string;
|
|
5150
|
-
/** @deprecated Please use `onClearChannelUrl` instead. **/
|
|
5151
|
-
onClearClosedChannelUrl?: () => void;
|
|
5152
|
-
}>;
|
|
5153
|
-
|
|
5154
|
-
declare type Props_4 = PropsWithChildren<{
|
|
5155
|
-
conversationListLimit?: number;
|
|
5156
|
-
conversationListFilter?: Partial<AIAgentGroupChannelFilter>;
|
|
5157
|
-
onOpenConversationView?: (channelUrl: string, status: 'open' | 'closed', options?: ConversationListOpenOptions) => void;
|
|
5158
|
-
announcementsEnabled?: boolean;
|
|
5159
|
-
/** Custom styles for the conversation list container. */
|
|
5160
|
-
style?: CSSProperties;
|
|
5161
|
-
}>;
|
|
5162
|
-
|
|
5163
5173
|
declare type ReactOnlyIconName = 'expand' | 'collapse' | 'chevron-right' | 'attach' | 'close-filled' | 'actionbook' | 'function' | 'confluence' | 'zendesk' | 'salesforce' | 'sprinklr' | 'website' | 'snippet' | 'template' | 'show' | 'mute' | 'activity';
|
|
5164
5174
|
|
|
5165
5175
|
declare type ReleaseDisabledByValue =
|