@sendbird/ai-agent-messenger-react-native 1.10.0 → 1.10.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/index.cjs +1 -1
- package/dist/index.d.ts +28 -2
- package/dist/index.js +1750 -1708
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ import { GroupChannelListOrder } from '@sendbird/chat/groupChannel';
|
|
|
26
26
|
import { GroupChannelModule } from '@sendbird/chat/groupChannel';
|
|
27
27
|
import { JSX } from 'react/jsx-runtime';
|
|
28
28
|
import { LayoutChangeEvent } from 'react-native';
|
|
29
|
-
import { LogLevel } from '@sendbird/chat';
|
|
29
|
+
import { LogLevel as LogLevel_2 } from '@sendbird/chat';
|
|
30
30
|
import { MMKV } from 'react-native-mmkv';
|
|
31
31
|
import { MultipleFilesMessage } from '@sendbird/chat/message';
|
|
32
32
|
import { MultipleFilesMessageCreateParams } from '@sendbird/chat/message';
|
|
@@ -549,7 +549,7 @@ userSessionInfo: ManualSessionInfo | AnonymousSessionInfo;
|
|
|
549
549
|
* @public
|
|
550
550
|
* @description logLevel for the ai agent client.
|
|
551
551
|
* */
|
|
552
|
-
logLevel?:
|
|
552
|
+
logLevel?: LogLevel_2;
|
|
553
553
|
/**
|
|
554
554
|
* @public
|
|
555
555
|
* @description Language for the ai agent client. Should follow the IETF BCP 47 format.
|
|
@@ -1698,6 +1698,9 @@ declare interface ConversationScrollContextValue {
|
|
|
1698
1698
|
onLayout?: (event: LayoutChangeEvent) => void;
|
|
1699
1699
|
onContentSizeChange?: (width: number, height: number) => void;
|
|
1700
1700
|
onScroll?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
|
|
1701
|
+
onScrollBeginDrag?: () => void;
|
|
1702
|
+
onScrollEndDrag?: () => void;
|
|
1703
|
+
onMomentumScrollEnd?: () => void;
|
|
1701
1704
|
};
|
|
1702
1705
|
actions: {
|
|
1703
1706
|
/**
|
|
@@ -1735,6 +1738,12 @@ declare interface ConversationScrollContextValue {
|
|
|
1735
1738
|
* - When reopened or in auto mode: No change
|
|
1736
1739
|
*/
|
|
1737
1740
|
onConversationClosed: (isClosed: boolean) => void;
|
|
1741
|
+
/**
|
|
1742
|
+
* Notify when typing indicator state changes
|
|
1743
|
+
* - Auto mode: Scrolls to bottom when typing starts and user is near bottom
|
|
1744
|
+
* - Fixed mode: No operation
|
|
1745
|
+
*/
|
|
1746
|
+
onTypingIndicatorUpdate: (isTyping: boolean) => void;
|
|
1738
1747
|
};
|
|
1739
1748
|
}
|
|
1740
1749
|
|
|
@@ -1749,6 +1758,12 @@ declare type CSATSubmitParams = {
|
|
|
1749
1758
|
resolutionScore?: number;
|
|
1750
1759
|
};
|
|
1751
1760
|
|
|
1761
|
+
export declare enum CSATType {
|
|
1762
|
+
AI_AGENT_CSAT_5 = 'AI_AGENT_CSAT_5',
|
|
1763
|
+
AI_AGENT_CSAT_5_WITH_CRE = 'AI_AGENT_CSAT_5_WITH_CRE',
|
|
1764
|
+
HELPDESK_CSAT_5 = 'HELPDESK_CSAT_5',
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1752
1767
|
export declare interface CustomMessageTemplateData {
|
|
1753
1768
|
id: string;
|
|
1754
1769
|
response: {
|
|
@@ -3231,6 +3246,15 @@ declare interface Loggable {
|
|
|
3231
3246
|
error(...args: any[]): void;
|
|
3232
3247
|
}
|
|
3233
3248
|
|
|
3249
|
+
export declare enum LogLevel {
|
|
3250
|
+
VERBOSE,
|
|
3251
|
+
DEBUG,
|
|
3252
|
+
INFO,
|
|
3253
|
+
WARN,
|
|
3254
|
+
ERROR,
|
|
3255
|
+
NONE,
|
|
3256
|
+
}
|
|
3257
|
+
|
|
3234
3258
|
declare type MaintainVisibleContentPosition = FlatListProps<any>['maintainVisibleContentPosition'];
|
|
3235
3259
|
|
|
3236
3260
|
export declare class ManualSessionInfo {
|
|
@@ -3872,6 +3896,8 @@ declare interface TypographyVariant {
|
|
|
3872
3896
|
lineHeight?: number | string;
|
|
3873
3897
|
}
|
|
3874
3898
|
|
|
3899
|
+
export declare const useAIAgentContext = ctx.useContext;
|
|
3900
|
+
|
|
3875
3901
|
export declare const useConversationContext: {
|
|
3876
3902
|
(): ConversationContextValue;
|
|
3877
3903
|
displayName: string;
|