@sendbird/ai-agent-messenger-react 1.22.0 → 1.24.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/BBssumix.cjs +1 -0
- package/dist/cjs/BCDZXq61.cjs +1 -0
- package/dist/cjs/Bz2jHC-Z.cjs +1 -0
- package/dist/cjs/CFY_588Z.cjs +1 -0
- package/dist/cjs/CHz4H01e.cjs +1 -0
- package/dist/cjs/CfhYXtgc.cjs +1 -0
- package/dist/cjs/Jlh8RyJW.cjs +1 -0
- package/dist/cjs/RKaCusvu.cjs +1 -0
- package/dist/cjs/Sz9ta-fi.cjs +1 -0
- package/dist/es/{BPLO52kK.js → 5tV340wv.js} +11 -8
- package/dist/es/{B1Zl6v7X.js → 7vCh5QlQ.js} +8 -5
- package/dist/es/{gn5TNb_w.js → BEqaF3DV.js} +10 -7
- package/dist/es/{DaiGT8Mr.js → BUKDIngh.js} +8 -5
- package/dist/es/{BbQiMuUs.js → CKLYurhd.js} +10 -7
- package/dist/es/{Dd81G18F.js → CXt8kUk8.js} +8 -5
- package/dist/es/{BL89djVk.js → CkoDhLul.js} +12 -9
- package/dist/es/{89kkkmJB.js → CsqVHJCI.js} +14 -11
- package/dist/es/{Culegmk_.js → ZdYGAJn_.js} +8 -5
- package/dist/index.cjs +248 -174
- package/dist/index.d.ts +95 -72
- package/dist/index.js +4612 -3781
- package/package.json +3 -3
- package/dist/cjs/A0RFIJy_.cjs +0 -1
- package/dist/cjs/BNjeOTuI.cjs +0 -1
- package/dist/cjs/BV40WZg3.cjs +0 -1
- package/dist/cjs/C3OHcrBV.cjs +0 -1
- package/dist/cjs/CKPzhVy2.cjs +0 -1
- package/dist/cjs/CZIjo9nb.cjs +0 -1
- package/dist/cjs/D2fiRjSz.cjs +0 -1
- package/dist/cjs/DVc2qz6N.cjs +0 -1
- package/dist/cjs/DlvMdI1f.cjs +0 -1
- package/dist/cjs/JA0x62Fd.cjs +0 -1
- package/dist/cjs/PhHbzZB_.cjs +0 -1
- package/dist/cjs/jGp6gOJ2.cjs +0 -1
- package/dist/cjs/ohTjxqcW.cjs +0 -1
- package/dist/cjs/pDHRH5ez.cjs +0 -1
- package/dist/cjs/rNq_TnmW.cjs +0 -1
- package/dist/es/CAIYsKDy.js +0 -5
- package/dist/es/CZXPLnTx.js +0 -5
- package/dist/es/DHVHq9Fo.js +0 -5
- package/dist/es/DMruRpOm.js +0 -5
- package/dist/es/Dp48Y7fJ.js +0 -5
- package/dist/es/dqwvRBog.js +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ import { Conversation as Conversation_2 } from '@sendbird/chat/aiAgent';
|
|
|
12
12
|
import { ConversationStatus } from '@sendbird/chat/aiAgent';
|
|
13
13
|
import { CSSProperties } from 'react';
|
|
14
14
|
import { DeskChannelFilter } from '@sendbird/chat/aiAgent';
|
|
15
|
-
import { FC } from 'react';
|
|
16
15
|
import { FileMessage } from '@sendbird/chat/message';
|
|
17
16
|
import { FileMessageCreateParams } from '@sendbird/chat/message';
|
|
18
17
|
import { format } from 'date-fns';
|
|
@@ -23,7 +22,6 @@ import { GroupChannelHandler } from '@sendbird/chat/groupChannel';
|
|
|
23
22
|
import { GroupChannelListOrder } from '@sendbird/chat/groupChannel';
|
|
24
23
|
import { GroupChannelModule } from '@sendbird/chat/groupChannel';
|
|
25
24
|
import { JSX } from 'react/jsx-runtime';
|
|
26
|
-
import { LazyExoticComponent } from 'react';
|
|
27
25
|
import type { Locale } from 'date-fns';
|
|
28
26
|
import { LogLevel as LogLevel_2 } from '@sendbird/chat';
|
|
29
27
|
import { MultipleFilesMessage } from '@sendbird/chat/message';
|
|
@@ -36,7 +34,6 @@ import { SendbirdChatParams } from '@sendbird/chat';
|
|
|
36
34
|
import { SendbirdChatWith } from '@sendbird/chat';
|
|
37
35
|
import { SendbirdError } from '@sendbird/chat';
|
|
38
36
|
import { SessionHandler } from '@sendbird/chat';
|
|
39
|
-
import { SVGProps } from 'react';
|
|
40
37
|
import { UIEvent as UIEvent_2 } from 'react';
|
|
41
38
|
import { User } from '@sendbird/chat';
|
|
42
39
|
import { UserMessage } from '@sendbird/chat/message';
|
|
@@ -203,6 +200,11 @@ userSessionInfo?: ManualSessionInfo | AnonymousSessionInfo | UserSessionInfo;
|
|
|
203
200
|
stringSet?: Partial<StringSet>;
|
|
204
201
|
/**
|
|
205
202
|
* @public
|
|
203
|
+
* @description Custom icon registry for the ai agent client.
|
|
204
|
+
* */
|
|
205
|
+
icons?: IconRegistry;
|
|
206
|
+
/**
|
|
207
|
+
* @public
|
|
206
208
|
* @description dir of the widget.
|
|
207
209
|
* */
|
|
208
210
|
dir?: "ltr" | "rtl";
|
|
@@ -288,7 +290,7 @@ __internalVariables?: InternalMessageTemplateVariables;
|
|
|
288
290
|
children?: ReactNode | undefined;
|
|
289
291
|
} & RefAttributes<MessengerSessionRef>>;
|
|
290
292
|
|
|
291
|
-
export declare function AgentUIProviderContainer({ appearance, rootElement, logger, language, languageCode, stringSet, children, messageTemplate, theme, }: Props): JSX.Element;
|
|
293
|
+
export declare function AgentUIProviderContainer({ appearance, rootElement, logger, language, languageCode, stringSet, children, messageTemplate, icons, theme, }: Props): JSX.Element;
|
|
292
294
|
|
|
293
295
|
declare abstract class AIAgentBaseStats {
|
|
294
296
|
protected timers: Map<string, TimerData> = new Map();
|
|
@@ -383,6 +385,36 @@ declare interface AIAgentCache {
|
|
|
383
385
|
messenger: MessengerSessionCache;
|
|
384
386
|
}
|
|
385
387
|
|
|
388
|
+
declare type AIAgentCommonIconName =
|
|
389
|
+
| 'close'
|
|
390
|
+
| 'send'
|
|
391
|
+
| 'menu'
|
|
392
|
+
| 'spinner'
|
|
393
|
+
| 'chat'
|
|
394
|
+
| 'message'
|
|
395
|
+
| 'error'
|
|
396
|
+
| 'refresh'
|
|
397
|
+
| 'chevron-down'
|
|
398
|
+
| 'done'
|
|
399
|
+
| 'done-circle'
|
|
400
|
+
| 'stop'
|
|
401
|
+
| 'stop-circle'
|
|
402
|
+
| 'user'
|
|
403
|
+
| 'file-document'
|
|
404
|
+
| 'agent'
|
|
405
|
+
| 'radio-on'
|
|
406
|
+
| 'radio-off'
|
|
407
|
+
| 'source'
|
|
408
|
+
| 'copy'
|
|
409
|
+
| 'good'
|
|
410
|
+
| 'bad'
|
|
411
|
+
| 'good-filled'
|
|
412
|
+
| 'bad-filled'
|
|
413
|
+
| 'delight'
|
|
414
|
+
| 'photo'
|
|
415
|
+
| 'add'
|
|
416
|
+
| 'document';
|
|
417
|
+
|
|
386
418
|
export declare interface AIAgentConfig {
|
|
387
419
|
conversation?: {
|
|
388
420
|
/**
|
|
@@ -557,6 +589,22 @@ declare interface AIAgentGroupChannelFilter {
|
|
|
557
589
|
copilotSupportChannelUrl?: string;
|
|
558
590
|
}
|
|
559
591
|
|
|
592
|
+
declare type AIAgentIconComponent = ComponentType<AIAgentIconComponentProps>;
|
|
593
|
+
|
|
594
|
+
declare type AIAgentIconComponentProps = {
|
|
595
|
+
size?: number | string;
|
|
596
|
+
color?: string;
|
|
597
|
+
/**
|
|
598
|
+
* Metadata flag. When true, this icon is a direction-sensitive glyph and should be
|
|
599
|
+
* horizontally flipped by the implementation when rendered in an RTL layout.
|
|
600
|
+
* The value does not reflect the current layout direction — it only marks the icon
|
|
601
|
+
* as eligible for flipping.
|
|
602
|
+
*/
|
|
603
|
+
flipInRtl?: boolean;
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
declare type AIAgentIconRegistry<T extends string = AIAgentCommonIconName> = Partial<Record<T, AIAgentIconComponent>>;
|
|
607
|
+
|
|
560
608
|
declare interface AIAgentInfo {
|
|
561
609
|
userId: string;
|
|
562
610
|
nickname: string;
|
|
@@ -775,6 +823,11 @@ export declare type AIAgentProps = PropsWithChildren<{
|
|
|
775
823
|
* @description Localization string set for the ai agent client.
|
|
776
824
|
* */
|
|
777
825
|
stringSet?: Partial<StringSet>;
|
|
826
|
+
/**
|
|
827
|
+
* @public
|
|
828
|
+
* @description Custom icon registry for the ai agent client.
|
|
829
|
+
* */
|
|
830
|
+
icons?: IconRegistry;
|
|
778
831
|
/**
|
|
779
832
|
* @public
|
|
780
833
|
* @description dir of the widget.
|
|
@@ -973,6 +1026,8 @@ declare interface AIAgentStringSet {
|
|
|
973
1026
|
failed_message_remove: string;
|
|
974
1027
|
|
|
975
1028
|
file_upload_no_supported_files: string;
|
|
1029
|
+
file_upload_replace_alert_title: string;
|
|
1030
|
+
file_upload_replace_alert_description: string;
|
|
976
1031
|
|
|
977
1032
|
// Accessibility
|
|
978
1033
|
a11y_message_list: string;
|
|
@@ -1008,6 +1063,7 @@ declare interface AIAgentStringSet {
|
|
|
1008
1063
|
a11y_screen_conversation: string;
|
|
1009
1064
|
a11y_screen_conversation_with_agent: (name: string) => string;
|
|
1010
1065
|
a11y_screen_conversation_list_no_count: string;
|
|
1066
|
+
a11y_screen_conversation_list_with_count: (count: number) => string;
|
|
1011
1067
|
a11y_csat_displayed: string;
|
|
1012
1068
|
a11y_empty_conversation: string;
|
|
1013
1069
|
a11y_input_disabled: string;
|
|
@@ -1068,6 +1124,8 @@ declare interface AIAgentStringSet {
|
|
|
1068
1124
|
placeholder_no_messages: string;
|
|
1069
1125
|
placeholder_no_conversations: string;
|
|
1070
1126
|
placeholder_something_went_wrong_retry_label: string;
|
|
1127
|
+
button_ok: string;
|
|
1128
|
+
button_cancel: string;
|
|
1071
1129
|
};
|
|
1072
1130
|
|
|
1073
1131
|
feedback: {
|
|
@@ -2404,64 +2462,13 @@ export declare interface GroundednessInfo {
|
|
|
2404
2462
|
*/
|
|
2405
2463
|
declare type HexColor = `#${string}`;
|
|
2406
2464
|
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
readonly send: FC<SVGProps<SVGElement>>;
|
|
2413
|
-
readonly menu: FC<SVGProps<SVGElement>>;
|
|
2414
|
-
readonly expand: FC<SVGProps<SVGElement>>;
|
|
2415
|
-
readonly collapse: FC<SVGProps<SVGElement>>;
|
|
2416
|
-
readonly spinner: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2417
|
-
readonly chat: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2418
|
-
readonly message: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2419
|
-
readonly error: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2420
|
-
readonly info: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2421
|
-
readonly refresh: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2422
|
-
readonly 'chevron-down': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2423
|
-
readonly 'chevron-right': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2424
|
-
readonly done: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2425
|
-
readonly 'done-circle': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2426
|
-
readonly stop: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2427
|
-
readonly 'stop-circle': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2428
|
-
readonly user: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2429
|
-
readonly 'file-document': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2430
|
-
readonly download: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2431
|
-
readonly attach: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2432
|
-
readonly delete: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2433
|
-
readonly 'close-filled': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2434
|
-
readonly agent: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2435
|
-
readonly question: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2436
|
-
readonly actionbook: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2437
|
-
readonly function: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2438
|
-
readonly 'radio-on': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2439
|
-
readonly 'radio-off': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2440
|
-
readonly confluence: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2441
|
-
readonly zendesk: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2442
|
-
readonly salesforce: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2443
|
-
readonly sprinklr: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2444
|
-
readonly website: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2445
|
-
readonly snippet: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2446
|
-
readonly template: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2447
|
-
readonly source: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2448
|
-
readonly bot: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2449
|
-
readonly 'bot-filled': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2450
|
-
readonly copy: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2451
|
-
readonly show: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2452
|
-
readonly mute: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2453
|
-
readonly good: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2454
|
-
readonly bad: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2455
|
-
readonly 'good-filled': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2456
|
-
readonly 'bad-filled': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2457
|
-
readonly delight: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2458
|
-
readonly photo: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2459
|
-
readonly 'arrow-left': LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2460
|
-
readonly add: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2461
|
-
readonly document: LazyExoticComponent<FC<SVGProps<SVGElement>>>;
|
|
2462
|
-
};
|
|
2465
|
+
export declare type IconComponent = AIAgentIconComponent;
|
|
2466
|
+
|
|
2467
|
+
export declare type IconComponentProps = AIAgentIconComponentProps;
|
|
2468
|
+
|
|
2469
|
+
export declare type IconRegistry = AIAgentIconRegistry<IconType>;
|
|
2463
2470
|
|
|
2464
|
-
declare type IconType =
|
|
2471
|
+
export declare type IconType = AIAgentCommonIconName | ReactOnlyIconName;
|
|
2465
2472
|
|
|
2466
2473
|
declare type IncomingBaseMessageProps<T> = T &
|
|
2467
2474
|
BaseMessageProps<{
|
|
@@ -2511,12 +2518,13 @@ declare type IncomingMessageBodyProps<T extends MessageType = MessageType> = Inc
|
|
|
2511
2518
|
bubbleContentColor?: string;
|
|
2512
2519
|
bubbleBackgroundColor?: string;
|
|
2513
2520
|
};
|
|
2521
|
+
surface?: 'bubble' | 'plain';
|
|
2514
2522
|
};
|
|
2515
2523
|
|
|
2516
2524
|
export declare const IncomingMessageLayout: {
|
|
2517
2525
|
(props: PropsWithChildren): ReactNode;
|
|
2518
2526
|
defaults: {
|
|
2519
|
-
template: ComponentType<
|
|
2527
|
+
template: ComponentType<IncomingMessageTemplateProps>;
|
|
2520
2528
|
components: {
|
|
2521
2529
|
SenderName: ({ sender }: Pick<IncomingMessageProps, "sender">) => ReactNode;
|
|
2522
2530
|
SenderAvatar: ({ sender, isBotMessage, }: Pick<IncomingMessageProps, "sender" | "isBotMessage">) => ReactNode;
|
|
@@ -2764,10 +2772,10 @@ export declare const IncomingMessageLayout: {
|
|
|
2764
2772
|
};
|
|
2765
2773
|
};
|
|
2766
2774
|
Template: ({ template, children }: {
|
|
2767
|
-
template?: ComponentType<
|
|
2775
|
+
template?: ComponentType<IncomingMessageTemplateProps> | undefined;
|
|
2768
2776
|
children?: ReactNode;
|
|
2769
2777
|
}) => JSX.Element;
|
|
2770
|
-
Context: Context<LayoutContextValue<
|
|
2778
|
+
Context: Context<LayoutContextValue<IncomingMessageTemplateProps, {
|
|
2771
2779
|
SenderName: ({ sender }: Pick<IncomingMessageProps, "sender">) => ReactNode;
|
|
2772
2780
|
SenderAvatar: ({ sender, isBotMessage, }: Pick<IncomingMessageProps, "sender" | "isBotMessage">) => ReactNode;
|
|
2773
2781
|
SentTime: ({ createdAt }: Pick<IncomingMessageProps, "createdAt">) => ReactNode;
|
|
@@ -3012,7 +3020,7 @@ export declare const IncomingMessageLayout: {
|
|
|
3012
3020
|
Feedback: ({ isBotMessage, isConversationClosed, isStreaming, isFeedbackEnabled, isFeedbackCommentEnabled, extendedMessagePayload, onFeedbackUpdate, }: IncomingMessageProps) => ReactNode;
|
|
3013
3021
|
MessageLogs: (_: IncomingMessageProps) => ReactNode;
|
|
3014
3022
|
}>>;
|
|
3015
|
-
useContext: () => LayoutContextValue<
|
|
3023
|
+
useContext: () => LayoutContextValue<IncomingMessageTemplateProps, {
|
|
3016
3024
|
SenderName: ({ sender }: Pick<IncomingMessageProps, "sender">) => ReactNode;
|
|
3017
3025
|
SenderAvatar: ({ sender, isBotMessage, }: Pick<IncomingMessageProps, "sender" | "isBotMessage">) => ReactNode;
|
|
3018
3026
|
SentTime: ({ createdAt }: Pick<IncomingMessageProps, "createdAt">) => ReactNode;
|
|
@@ -3540,6 +3548,8 @@ export declare const IncomingMessageLayout: {
|
|
|
3540
3548
|
export declare type IncomingMessageProps<T extends IncomingMessageUnion['messageType'] = IncomingMessageUnion['messageType']> =
|
|
3541
3549
|
PickMessageProps<IncomingMessageUnion, T>;
|
|
3542
3550
|
|
|
3551
|
+
declare type IncomingMessageTemplateProps = IncomingMessageProps & Partial<InternalExtraProps>;
|
|
3552
|
+
|
|
3543
3553
|
declare type IncomingMessageUnion =
|
|
3544
3554
|
| IncomingBaseMessageProps<{
|
|
3545
3555
|
messageType: 'user';
|
|
@@ -3566,7 +3576,10 @@ declare type IncomingMessageUnion =
|
|
|
3566
3576
|
|
|
3567
3577
|
declare function IncomingTextBody(props: IncomingMessageBodyProps): JSX.Element | null;
|
|
3568
3578
|
|
|
3579
|
+
declare type InputMode = 'enabled' | 'readOnly' | 'disabled';
|
|
3580
|
+
|
|
3569
3581
|
declare type InputState = {
|
|
3582
|
+
_mode: InputMode;
|
|
3570
3583
|
disabled: boolean;
|
|
3571
3584
|
disabledBy:
|
|
3572
3585
|
| 'unavailable'
|
|
@@ -3581,6 +3594,11 @@ declare type InputState = {
|
|
|
3581
3594
|
| (string & {});
|
|
3582
3595
|
};
|
|
3583
3596
|
|
|
3597
|
+
declare type InternalExtraProps = {
|
|
3598
|
+
maxBodyWidth?: number;
|
|
3599
|
+
testerMode?: boolean;
|
|
3600
|
+
};
|
|
3601
|
+
|
|
3584
3602
|
declare interface InternalMessageTemplateVariables {
|
|
3585
3603
|
carousel_padding_left?: number;
|
|
3586
3604
|
carousel_padding_right?: number;
|
|
@@ -3682,7 +3700,7 @@ export declare const MessageListUILayout: {
|
|
|
3682
3700
|
template: ComponentType<unknown>;
|
|
3683
3701
|
components: {
|
|
3684
3702
|
DateSeparator: ({ className, date, style }: DateSeparatorProps) => ReactNode;
|
|
3685
|
-
ScrollToBottomButton: ({ className, style, onClick
|
|
3703
|
+
ScrollToBottomButton: ({ className, style, onClick }: ScrollToBottomButtonProps) => ReactNode;
|
|
3686
3704
|
};
|
|
3687
3705
|
};
|
|
3688
3706
|
Template: ({ template, children }: {
|
|
@@ -3691,18 +3709,18 @@ export declare const MessageListUILayout: {
|
|
|
3691
3709
|
}) => JSX.Element;
|
|
3692
3710
|
Context: Context<LayoutContextValue<unknown, {
|
|
3693
3711
|
DateSeparator: ({ className, date, style }: DateSeparatorProps) => ReactNode;
|
|
3694
|
-
ScrollToBottomButton: ({ className, style, onClick
|
|
3712
|
+
ScrollToBottomButton: ({ className, style, onClick }: ScrollToBottomButtonProps) => ReactNode;
|
|
3695
3713
|
}>>;
|
|
3696
3714
|
useContext: () => LayoutContextValue<unknown, {
|
|
3697
3715
|
DateSeparator: ({ className, date, style }: DateSeparatorProps) => ReactNode;
|
|
3698
|
-
ScrollToBottomButton: ({ className, style, onClick
|
|
3716
|
+
ScrollToBottomButton: ({ className, style, onClick }: ScrollToBottomButtonProps) => ReactNode;
|
|
3699
3717
|
}>;
|
|
3700
3718
|
} & {
|
|
3701
3719
|
DateSeparator: (props: {
|
|
3702
3720
|
component: ({ className, date, style }: DateSeparatorProps) => ReactNode;
|
|
3703
3721
|
}) => null;
|
|
3704
3722
|
ScrollToBottomButton: (props: {
|
|
3705
|
-
component: ({ className, style, onClick
|
|
3723
|
+
component: ({ className, style, onClick }: ScrollToBottomButtonProps) => ReactNode;
|
|
3706
3724
|
}) => null;
|
|
3707
3725
|
};
|
|
3708
3726
|
|
|
@@ -4177,6 +4195,7 @@ declare type Props = {
|
|
|
4177
4195
|
language?: string;
|
|
4178
4196
|
/** @internal DO NOT USE THIS **/
|
|
4179
4197
|
languageCode?: string;
|
|
4198
|
+
icons?: IconRegistry;
|
|
4180
4199
|
theme?: {
|
|
4181
4200
|
palette?: Partial<PaletteShape>;
|
|
4182
4201
|
typography?: Partial<{
|
|
@@ -4236,6 +4255,8 @@ declare type Props_4 = PropsWithChildren<{
|
|
|
4236
4255
|
style?: CSSProperties;
|
|
4237
4256
|
}>;
|
|
4238
4257
|
|
|
4258
|
+
declare type ReactOnlyIconName = 'expand' | 'collapse' | 'chevron-right' | 'download' | 'attach' | 'close-filled' | 'actionbook' | 'function' | 'confluence' | 'zendesk' | 'salesforce' | 'sprinklr' | 'website' | 'snippet' | 'template' | 'show' | 'mute';
|
|
4259
|
+
|
|
4239
4260
|
declare type SBUFoundationProps<T = NonNullable<unknown>> = T & {
|
|
4240
4261
|
className?: string;
|
|
4241
4262
|
children?: ReactNode;
|
|
@@ -4246,7 +4267,6 @@ declare type SBUFoundationProps<T = NonNullable<unknown>> = T & {
|
|
|
4246
4267
|
|
|
4247
4268
|
export declare type ScrollToBottomButtonProps = SBUFoundationProps<{
|
|
4248
4269
|
onClick: () => void;
|
|
4249
|
-
ariaLabel?: string;
|
|
4250
4270
|
}>;
|
|
4251
4271
|
|
|
4252
4272
|
declare interface SearchConversationParams {
|
|
@@ -4315,6 +4335,7 @@ declare type StringSet = {
|
|
|
4315
4335
|
MESSAGE_INPUT__PLACE_HOLDER__DISABLED: string;
|
|
4316
4336
|
MESSAGE_INPUT__PLACE_HOLDER__STEWARD: string;
|
|
4317
4337
|
MESSAGE_INPUT__PLACE_HOLDER__RECONNECTING: string;
|
|
4338
|
+
BUTTON__OK: string;
|
|
4318
4339
|
BUTTON__CANCEL: string;
|
|
4319
4340
|
BUTTON__SUBMIT: string;
|
|
4320
4341
|
RETRY: string;
|
|
@@ -4334,6 +4355,8 @@ declare type StringSet = {
|
|
|
4334
4355
|
FILE_UPLOAD_NO_SUPPORTED_FILES: string;
|
|
4335
4356
|
FILE_UPLOAD_PHOTOS: string;
|
|
4336
4357
|
FILE_UPLOAD_FILES: string;
|
|
4358
|
+
FILE_UPLOAD_REPLACE_ALERT__TITLE: string;
|
|
4359
|
+
FILE_UPLOAD_REPLACE_ALERT__DESCRIPTION: string;
|
|
4337
4360
|
FILE_VIEWER__UNSUPPORT: string;
|
|
4338
4361
|
IMAGE_VIEWER__DEFAULT_TITLE: string;
|
|
4339
4362
|
CSAT_TITLE_UNSUBMITTED: string;
|
|
@@ -4413,6 +4436,7 @@ declare type StringSet = {
|
|
|
4413
4436
|
A11Y_FILE_UPLOAD_OPTIONS: string;
|
|
4414
4437
|
A11Y_FAILED_MESSAGE_OPTIONS: string;
|
|
4415
4438
|
A11Y_FEEDBACK_OPTIONS: string;
|
|
4439
|
+
A11Y_CSAT_TEXT_INPUT_LABEL: string;
|
|
4416
4440
|
A11Y_TYPING_FORMAT: (name: string) => string;
|
|
4417
4441
|
A11Y_MESSAGE_FAILED: string;
|
|
4418
4442
|
A11Y_NEW_MESSAGES_RECEIVED: (count: number) => string;
|
|
@@ -4427,6 +4451,7 @@ declare type StringSet = {
|
|
|
4427
4451
|
A11Y_SCREEN_CONVERSATION: string;
|
|
4428
4452
|
A11Y_SCREEN_CONVERSATION_WITH_AGENT: (name: string) => string;
|
|
4429
4453
|
A11Y_SCREEN_CONVERSATION_LIST_NO_COUNT: string;
|
|
4454
|
+
A11Y_SCREEN_CONVERSATION_LIST_WITH_COUNT: (count: number) => string;
|
|
4430
4455
|
A11Y_CSAT_DISPLAYED: string;
|
|
4431
4456
|
A11Y_EMPTY_CONVERSATION: string;
|
|
4432
4457
|
A11Y_INPUT_DISABLED: string;
|
|
@@ -4470,8 +4495,6 @@ declare type StringSet = {
|
|
|
4470
4495
|
/** @deprecated Unused string **/
|
|
4471
4496
|
BUTTON__SAVE: string;
|
|
4472
4497
|
/** @deprecated Unused string **/
|
|
4473
|
-
BUTTON__OK: string;
|
|
4474
|
-
/** @deprecated Unused string **/
|
|
4475
4498
|
NO_NAME: string;
|
|
4476
4499
|
/** @deprecated Unused string **/
|
|
4477
4500
|
CHANNEL_FROZEN: string;
|