react-native-chatbot-ai 0.1.53 → 0.1.55
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/lib/module/assets/images/img_empty_data.png +0 -0
- package/lib/module/assets/images/index.js +2 -1
- package/lib/module/assets/images/index.js.map +1 -1
- package/lib/module/components/Drawer/SessionList.js +2 -1
- package/lib/module/components/Drawer/SessionList.js.map +1 -1
- package/lib/module/components/chat/ChatMessageList.js +19 -18
- package/lib/module/components/chat/ChatMessageList.js.map +1 -1
- package/lib/module/components/chat/ChatProductList.js +77 -0
- package/lib/module/components/chat/ChatProductList.js.map +1 -0
- package/lib/module/components/chat/index.js +131 -4
- package/lib/module/components/chat/index.js.map +1 -1
- package/lib/module/components/chat/item/ChatAIAnswerMessageItem.js +0 -2
- package/lib/module/components/chat/item/ChatAIAnswerMessageItem.js.map +1 -1
- package/lib/module/components/chat/item/ChatTable.js +19 -24
- package/lib/module/components/chat/item/ChatTable.js.map +1 -1
- package/lib/module/components/product/Card.js +249 -183
- package/lib/module/components/product/Card.js.map +1 -1
- package/lib/module/components/product/CardHorizontal.js +32 -19
- package/lib/module/components/product/CardHorizontal.js.map +1 -1
- package/lib/module/constants/chatTab.js +23 -0
- package/lib/module/constants/chatTab.js.map +1 -0
- package/lib/module/constants/events.js +4 -2
- package/lib/module/constants/events.js.map +1 -1
- package/lib/module/constants/index.js +1 -0
- package/lib/module/constants/index.js.map +1 -1
- package/lib/module/constants/query.js +2 -1
- package/lib/module/constants/query.js.map +1 -1
- package/lib/module/context/ChatContext.js +13 -3
- package/lib/module/context/ChatContext.js.map +1 -1
- package/lib/module/hooks/message/useMessage.js +7 -1
- package/lib/module/hooks/message/useMessage.js.map +1 -1
- package/lib/module/hooks/message/useSendMessage.js +3 -1
- package/lib/module/hooks/message/useSendMessage.js.map +1 -1
- package/lib/module/hooks/session/useGetExternalSessionInfo.js +17 -0
- package/lib/module/hooks/session/useGetExternalSessionInfo.js.map +1 -0
- package/lib/module/services/endpoints.js +2 -1
- package/lib/module/services/endpoints.js.map +1 -1
- package/lib/module/translation/resources/i18n.js +7 -1
- package/lib/module/translation/resources/i18n.js.map +1 -1
- package/lib/module/types/chat.js.map +1 -1
- package/lib/typescript/src/assets/images/index.d.ts +1 -0
- package/lib/typescript/src/assets/images/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Drawer/SessionList.d.ts.map +1 -1
- package/lib/typescript/src/components/chat/ChatMessageList.d.ts.map +1 -1
- package/lib/typescript/src/components/chat/ChatProductList.d.ts +7 -0
- package/lib/typescript/src/components/chat/ChatProductList.d.ts.map +1 -0
- package/lib/typescript/src/components/chat/index.d.ts.map +1 -1
- package/lib/typescript/src/components/chat/item/ChatAIAnswerMessageItem.d.ts.map +1 -1
- package/lib/typescript/src/components/chat/item/ChatTable.d.ts.map +1 -1
- package/lib/typescript/src/components/product/Card.d.ts +6 -0
- package/lib/typescript/src/components/product/Card.d.ts.map +1 -1
- package/lib/typescript/src/components/product/CardHorizontal.d.ts +1 -0
- package/lib/typescript/src/components/product/CardHorizontal.d.ts.map +1 -1
- package/lib/typescript/src/constants/chatTab.d.ts +11 -0
- package/lib/typescript/src/constants/chatTab.d.ts.map +1 -0
- package/lib/typescript/src/constants/events.d.ts +2 -0
- package/lib/typescript/src/constants/events.d.ts.map +1 -1
- package/lib/typescript/src/constants/index.d.ts +1 -0
- package/lib/typescript/src/constants/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/query.d.ts +1 -0
- package/lib/typescript/src/constants/query.d.ts.map +1 -1
- package/lib/typescript/src/context/ChatContext.d.ts.map +1 -1
- package/lib/typescript/src/hooks/message/useMessage.d.ts.map +1 -1
- package/lib/typescript/src/hooks/message/useSendMessage.d.ts.map +1 -1
- package/lib/typescript/src/hooks/session/useGetExternalSessionInfo.d.ts +6 -0
- package/lib/typescript/src/hooks/session/useGetExternalSessionInfo.d.ts.map +1 -0
- package/lib/typescript/src/services/endpoints.d.ts +1 -0
- package/lib/typescript/src/services/endpoints.d.ts.map +1 -1
- package/lib/typescript/src/translation/resources/i18n.d.ts.map +1 -1
- package/lib/typescript/src/types/chat.d.ts +2 -0
- package/lib/typescript/src/types/chat.d.ts.map +1 -1
- package/lib/typescript/src/types/dto.d.ts +10 -0
- package/lib/typescript/src/types/dto.d.ts.map +1 -1
- package/package.json +6 -2
- package/src/assets/images/img_empty_data.png +0 -0
- package/src/assets/images/index.ts +1 -0
- package/src/components/Drawer/SessionList.tsx +4 -2
- package/src/components/chat/ChatMessageList.tsx +24 -17
- package/src/components/chat/ChatProductList.tsx +92 -0
- package/src/components/chat/index.tsx +145 -2
- package/src/components/chat/item/ChatAIAnswerMessageItem.tsx +0 -2
- package/src/components/chat/item/ChatTable.tsx +17 -29
- package/src/components/product/Card.tsx +249 -176
- package/src/components/product/CardHorizontal.tsx +31 -18
- package/src/constants/chatTab.ts +18 -0
- package/src/constants/events.ts +2 -0
- package/src/constants/index.ts +1 -0
- package/src/constants/query.ts +1 -0
- package/src/context/ChatContext.tsx +13 -1
- package/src/hooks/message/useMessage.ts +7 -1
- package/src/hooks/message/useSendMessage.ts +3 -1
- package/src/hooks/session/useGetExternalSessionInfo.ts +23 -0
- package/src/ignore.d.ts +1 -0
- package/src/services/endpoints.ts +2 -0
- package/src/translation/resources/i18n.ts +7 -0
- package/src/types/chat.ts +2 -0
- package/src/types/dto.ts +12 -0
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import { IProductItem } from '../../types';
|
|
1
2
|
interface IProductCardProps {
|
|
2
3
|
productId?: string;
|
|
3
4
|
messageId?: string;
|
|
4
5
|
index?: number;
|
|
5
6
|
showSensitiveInfo?: boolean;
|
|
7
|
+
data?: IProductItem;
|
|
8
|
+
onJumToMessage?: () => void;
|
|
9
|
+
wrapperStyle?: any;
|
|
10
|
+
showFavorite?: boolean;
|
|
6
11
|
}
|
|
7
12
|
declare const ProductCardWrapper: import("react").MemoExoticComponent<(props: IProductCardProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
13
|
+
export declare const PRODUCT_VERTICAL_WIDTH: number;
|
|
8
14
|
export default ProductCardWrapper;
|
|
9
15
|
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/components/product/Card.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/components/product/Card.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAiC,MAAM,aAAa,CAAC;AAuB1E,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,QAAA,MAAM,kBAAkB,8CAAgB,iBAAiB,oDAYvD,CAAC;AAGH,eAAO,MAAM,sBAAsB,QACmC,CAAC;AA0ZvE,eAAe,kBAAkB,CAAC"}
|
|
@@ -2,6 +2,7 @@ interface IProductHorizontalCardProps {
|
|
|
2
2
|
productId?: string;
|
|
3
3
|
messageId?: string;
|
|
4
4
|
index?: number;
|
|
5
|
+
showFavorite?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const ProductHorizontalCardWrapper: import("react").MemoExoticComponent<(props: IProductHorizontalCardProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
7
8
|
export default ProductHorizontalCardWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardHorizontal.d.ts","sourceRoot":"","sources":["../../../../../src/components/product/CardHorizontal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardHorizontal.d.ts","sourceRoot":"","sources":["../../../../../src/components/product/CardHorizontal.tsx"],"names":[],"mappings":"AAuBA,UAAU,2BAA2B;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,QAAA,MAAM,4BAA4B,8CACxB,2BAA2B,oDAUpC,CAAC;AAoTF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum ChatSessionTab {
|
|
2
|
+
answer = "answer",
|
|
3
|
+
source = "source",
|
|
4
|
+
product = "product"
|
|
5
|
+
}
|
|
6
|
+
export declare const routes: {
|
|
7
|
+
key: ChatSessionTab;
|
|
8
|
+
title: string;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const getRouteKey: (tabIndex: number) => ChatSessionTab | undefined;
|
|
11
|
+
//# sourceMappingURL=chatTab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatTab.d.ts","sourceRoot":"","sources":["../../../../src/constants/chatTab.ts"],"names":[],"mappings":"AAEA,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,MAAM;;;GAIlB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,+BAG3C,CAAC"}
|
|
@@ -3,6 +3,7 @@ export declare const events: {
|
|
|
3
3
|
updateMultipleMessage: string;
|
|
4
4
|
forceUpdateMessages: string;
|
|
5
5
|
updateMessageError: string;
|
|
6
|
+
scrollToMessage: string;
|
|
6
7
|
};
|
|
7
8
|
export declare const GAEvents: {
|
|
8
9
|
newChatPageView: string;
|
|
@@ -36,5 +37,6 @@ export declare const GAEvents: {
|
|
|
36
37
|
chatDetailLivechatBtnTap: string;
|
|
37
38
|
chatDetailFAQTap: string;
|
|
38
39
|
chatDetailGiftDetailBtnTap: string;
|
|
40
|
+
chatDetailJumpToMessageTap: string;
|
|
39
41
|
};
|
|
40
42
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/constants/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/constants/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;CAMlB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCpB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { WithBottomSheetProps, WithPopupProps, WithToastProps } from '../types';
|
|
2
|
+
export * from './chatTab';
|
|
2
3
|
export declare const toastRef: import("react").RefObject<WithToastProps | null>;
|
|
3
4
|
export declare const bottomSheetRef: import("react").RefObject<WithBottomSheetProps | null>;
|
|
4
5
|
export declare const popupRef: import("react").RefObject<WithPopupProps | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAChF,cAAc,WAAW,CAAC;AAI1B,eAAO,MAAM,QAAQ,kDAA8B,CAAC;AACpD,eAAO,MAAM,cAAc,wDAAoC,CAAC;AAChE,eAAO,MAAM,QAAQ,kDAA8B,CAAC;AAEpD,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../src/constants/query.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../src/constants/query.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;CAWtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../../../src/context/ChatContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatContext.d.ts","sourceRoot":"","sources":["../../../../src/context/ChatContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAMxE,eAAO,MAAM,WAAW,0CAgBtB,CAAC;AAEH,eAAO,MAAM,cAAc,uBAAgC,CAAC;AAE5D,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,4CA4DpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessage.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/message/useMessage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"useMessage.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/message/useMessage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAkBtE,eAAO,MAAM,UAAU;;CAgJtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSendMessage.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/message/useSendMessage.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,WAAW,EACX,YAAY,EAGZ,iBAAiB,EAClB,MAAM,aAAa,CAAC;AAQrB,eAAO,MAAM,cAAc;
|
|
1
|
+
{"version":3,"file":"useSendMessage.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/message/useSendMessage.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,WAAW,EACX,YAAY,EAGZ,iBAAiB,EAClB,MAAM,aAAa,CAAC;AAQrB,eAAO,MAAM,cAAc;6BASZ,MAAM,gBACD,WAAW,EAAE,eACd,iBAAiB;;CA4FnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetExternalSessionInfo.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/session/useGetExternalSessionInfo.ts"],"names":[],"mappings":"AAMA,UAAU,+BAA+B;IACvC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,yBAAyB,GAAI,gBAEvC,+BAA+B,QAU9B,CAAC"}
|
|
@@ -10,6 +10,7 @@ export declare const ENDPOINTS: {
|
|
|
10
10
|
deleteSession: (sessionId: string) => string;
|
|
11
11
|
sendFeedback: (sessionId: string) => string;
|
|
12
12
|
generateAudio: (sessionId: string, messageId: string) => string;
|
|
13
|
+
getExternalSessionInfo: (sessionId: string) => string;
|
|
13
14
|
};
|
|
14
15
|
uploaderService: {
|
|
15
16
|
upload: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../../src/services/endpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;oCAGU,MAAM;sCAEJ,MAAM;;;mCAIT,MAAM;kCAEP,MAAM;mCAEL,MAAM;kCAEP,MAAM;mCAEL,MAAM,aAAa,MAAM;;;;;;;;
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../../src/services/endpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;oCAGU,MAAM;sCAEJ,MAAM;;;mCAIT,MAAM;kCAEP,MAAM;mCAEL,MAAM;kCAEP,MAAM;mCAEL,MAAM,aAAa,MAAM;4CAEhB,MAAM;;;;;;;;CAS7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../../src/translation/resources/i18n.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../../src/translation/resources/i18n.ts"],"names":[],"mappings":";;;AAmEA,wBAEE"}
|
|
@@ -18,6 +18,8 @@ export interface ChatContextType {
|
|
|
18
18
|
chatbotUrl: string;
|
|
19
19
|
logGA: (event: string, params?: any) => void;
|
|
20
20
|
notifyError?: ErrorLogger;
|
|
21
|
+
tabIndex: number;
|
|
22
|
+
setTabIndex: (tabIndex: number) => void;
|
|
21
23
|
}
|
|
22
24
|
export interface ChatProviderProps {
|
|
23
25
|
apiAddress: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../../src/types/chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC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CACjD"}
|
|
@@ -167,4 +167,14 @@ export interface SendFeedbackResponse {
|
|
|
167
167
|
success: boolean;
|
|
168
168
|
message: string;
|
|
169
169
|
}
|
|
170
|
+
export interface ISessionProductItem extends IProductItem {
|
|
171
|
+
message_id?: string;
|
|
172
|
+
}
|
|
173
|
+
export interface IChatExternalSessionInfoResponse {
|
|
174
|
+
products: {
|
|
175
|
+
items: ISessionProductItem[];
|
|
176
|
+
count: number;
|
|
177
|
+
};
|
|
178
|
+
source: null;
|
|
179
|
+
}
|
|
170
180
|
//# sourceMappingURL=dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dto.d.ts","sourceRoot":"","sources":["../../../../src/types/dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAErE,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,eAAe,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,WAAW,EAAE,KAAK,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,EACL,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,WAAW,GACX,iBAAiB,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,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BAAmB,EAAE,CAAC;QAC7B,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,MAAM,EAAE,IAAI,CAAC;CACd"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-chatbot-ai",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.55",
|
|
4
4
|
"description": "React Native library for Chatbot AI",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -87,7 +87,9 @@
|
|
|
87
87
|
"react-native-file-viewer": "^2.1.5",
|
|
88
88
|
"react-native-image-crop-picker": "^0.51.1",
|
|
89
89
|
"react-native-marked": "^7.0.2",
|
|
90
|
+
"react-native-pager-view": "^6.9.1",
|
|
90
91
|
"react-native-sse": "^1.2.1",
|
|
92
|
+
"react-native-tab-view": "^4.2.2",
|
|
91
93
|
"release-it": "^19.0.6",
|
|
92
94
|
"typescript": "^5.9.2",
|
|
93
95
|
"zustand": "^5.0.8"
|
|
@@ -104,10 +106,12 @@
|
|
|
104
106
|
"react-native-file-viewer": "*",
|
|
105
107
|
"react-native-keyboard-controller": "*",
|
|
106
108
|
"react-native-linear-gradient": "*",
|
|
109
|
+
"react-native-pager-view": "6.9.1",
|
|
107
110
|
"react-native-popup-menu": "*",
|
|
108
111
|
"react-native-reanimated": "*",
|
|
109
112
|
"react-native-share": "*",
|
|
110
|
-
"react-native-
|
|
113
|
+
"react-native-tab-view": "*",
|
|
114
|
+
"react-native-track-player": "4.1.3"
|
|
111
115
|
},
|
|
112
116
|
"workspaces": [
|
|
113
117
|
"example"
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { memo, useCallback } from 'react';
|
|
1
|
+
import { ComponentType, memo, useCallback } from 'react';
|
|
2
2
|
import { StyleSheet, RefreshControl } from 'react-native';
|
|
3
3
|
import { FlashList } from '@shopify/flash-list';
|
|
4
4
|
import { KColors, KLabel, KSpacingValue } from '@droppii/libs';
|
|
@@ -8,6 +8,8 @@ import EmptyState from './EmptyState';
|
|
|
8
8
|
import { KContainer } from '@droppii/libs';
|
|
9
9
|
import { trans } from '../../translation';
|
|
10
10
|
|
|
11
|
+
const FlashListComponent = FlashList as unknown as ComponentType<any>;
|
|
12
|
+
|
|
11
13
|
const ItemSeparator = () => <KContainer.View height={6} />;
|
|
12
14
|
|
|
13
15
|
interface SessionListProps {
|
|
@@ -56,7 +58,7 @@ const SessionList = memo<SessionListProps>(
|
|
|
56
58
|
}, []);
|
|
57
59
|
|
|
58
60
|
return (
|
|
59
|
-
<
|
|
61
|
+
<FlashListComponent
|
|
60
62
|
data={sessions}
|
|
61
63
|
renderItem={renderItem}
|
|
62
64
|
keyExtractor={keyExtractor}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { StyleSheet, View } from 'react-native';
|
|
1
|
+
import { StyleSheet, View, DeviceEventEmitter } from 'react-native';
|
|
2
2
|
import type { ComponentType } from 'react';
|
|
3
3
|
import { useCallback, useRef, useEffect, useState } from 'react';
|
|
4
4
|
import ChatEmpty from './ChatEmpty';
|
|
5
5
|
import ChatItem from './item';
|
|
6
6
|
import { KSpacingValue, KColors, KImage, KContainer } from '@droppii/libs';
|
|
7
7
|
import type { IMessageItem } from '../../types';
|
|
8
|
-
import {
|
|
9
|
-
import { useChatContext } from '../../context/ChatContext';
|
|
10
|
-
import useSessionStore from '../../store/session';
|
|
8
|
+
import { events } from '../../constants/events';
|
|
11
9
|
import { FlashList } from '@shopify/flash-list';
|
|
12
10
|
import { useFetchSuggestions } from '../../hooks/suggestions/useFetchSuggestions';
|
|
13
11
|
|
|
@@ -18,8 +16,6 @@ interface IChatMessageListProps {
|
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
const ChatMessageList = ({ messageList = [] }: IChatMessageListProps) => {
|
|
21
|
-
const logGA = useChatContext().logGA;
|
|
22
|
-
const sessionId = useSessionStore((state) => state.sessionId);
|
|
23
19
|
const { data: suggestions } = useFetchSuggestions();
|
|
24
20
|
|
|
25
21
|
const flatListRef = useRef<any>(null);
|
|
@@ -48,24 +44,32 @@ const ChatMessageList = ({ messageList = [] }: IChatMessageListProps) => {
|
|
|
48
44
|
flatListRef.current?.scrollToOffset({ animated: true, offset });
|
|
49
45
|
}, []);
|
|
50
46
|
|
|
51
|
-
useEffect(() => {
|
|
52
|
-
if (!sessionId) {
|
|
53
|
-
logGA(GAEvents.newChatPageView);
|
|
54
|
-
} else {
|
|
55
|
-
logGA(GAEvents.chatDetailPageView, {
|
|
56
|
-
conversation_id: sessionId,
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}, [sessionId, logGA]);
|
|
60
|
-
|
|
61
47
|
useEffect(() => {
|
|
62
48
|
if (messageList.length > 0) {
|
|
63
49
|
scrollToBottom();
|
|
64
50
|
}
|
|
65
51
|
}, [messageList.length, scrollToBottom]);
|
|
66
52
|
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
const subScrollToMessage = DeviceEventEmitter.addListener(
|
|
55
|
+
events.scrollToMessage,
|
|
56
|
+
(messageId: string) => {
|
|
57
|
+
const index = messageList.findIndex((m) => m.id === messageId);
|
|
58
|
+
if (index === -1) return;
|
|
59
|
+
flatListRef.current?.scrollToIndex({
|
|
60
|
+
animated: true,
|
|
61
|
+
index,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
return () => {
|
|
67
|
+
subScrollToMessage.remove();
|
|
68
|
+
};
|
|
69
|
+
}, [messageList]);
|
|
70
|
+
|
|
67
71
|
return (
|
|
68
|
-
<View style={
|
|
72
|
+
<View style={styles.flex}>
|
|
69
73
|
<FlashListComponent
|
|
70
74
|
ref={flatListRef}
|
|
71
75
|
data={messageList}
|
|
@@ -113,6 +117,9 @@ const ChatMessageList = ({ messageList = [] }: IChatMessageListProps) => {
|
|
|
113
117
|
export default ChatMessageList;
|
|
114
118
|
|
|
115
119
|
const styles = StyleSheet.create({
|
|
120
|
+
flex: {
|
|
121
|
+
flex: 1,
|
|
122
|
+
},
|
|
116
123
|
container: {
|
|
117
124
|
flexGrow: 1,
|
|
118
125
|
gap: KSpacingValue['0.5rem'],
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { MasonryFlashList } from '@shopify/flash-list';
|
|
2
|
+
import { useCallback, type ComponentType } from 'react';
|
|
3
|
+
import { IProductItem, ISessionProductItem } from '../../types';
|
|
4
|
+
import {
|
|
5
|
+
KColors,
|
|
6
|
+
KContainer,
|
|
7
|
+
KImage,
|
|
8
|
+
KLabel,
|
|
9
|
+
KSpacingValue,
|
|
10
|
+
} from '@droppii/libs';
|
|
11
|
+
import ProductCard, { PRODUCT_VERTICAL_WIDTH } from '../product/Card';
|
|
12
|
+
import { StyleSheet, DeviceEventEmitter } from 'react-native';
|
|
13
|
+
import { events } from '../../constants/events';
|
|
14
|
+
import { useChatContext } from '../../context/ChatContext';
|
|
15
|
+
import images from '../../assets/images';
|
|
16
|
+
import { trans } from '../../translation';
|
|
17
|
+
|
|
18
|
+
interface IChatProductListProps {
|
|
19
|
+
products: IProductItem[];
|
|
20
|
+
}
|
|
21
|
+
const FlashListComponent = MasonryFlashList as unknown as ComponentType<any>;
|
|
22
|
+
|
|
23
|
+
const ChatProductList = ({ products }: IChatProductListProps) => {
|
|
24
|
+
const setTabIndex = useChatContext().setTabIndex;
|
|
25
|
+
|
|
26
|
+
const onJumToMessage = useCallback(
|
|
27
|
+
async (messageId: string) => {
|
|
28
|
+
setTabIndex(0);
|
|
29
|
+
await new Promise((resolve) => setTimeout(resolve, 300));
|
|
30
|
+
DeviceEventEmitter.emit(events.scrollToMessage, messageId);
|
|
31
|
+
},
|
|
32
|
+
[setTabIndex]
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
const renderItem = useCallback(
|
|
36
|
+
({ item, index }: { item: ISessionProductItem; index: number }) => {
|
|
37
|
+
const isLeft = index % 2 === 0;
|
|
38
|
+
return (
|
|
39
|
+
<ProductCard
|
|
40
|
+
data={item}
|
|
41
|
+
index={index}
|
|
42
|
+
onJumToMessage={() => onJumToMessage(item?.message_id || '')}
|
|
43
|
+
wrapperStyle={{
|
|
44
|
+
marginBottom: KSpacingValue['0.75rem'],
|
|
45
|
+
marginLeft: !isLeft ? 6 : 0,
|
|
46
|
+
}}
|
|
47
|
+
/>
|
|
48
|
+
);
|
|
49
|
+
},
|
|
50
|
+
[onJumToMessage]
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
const ListEmptyComponent = useCallback(() => {
|
|
54
|
+
return (
|
|
55
|
+
<KContainer.View style={styles.emptyContainer}>
|
|
56
|
+
<KImage.Base uri={images.img_empty_data} size={160} />
|
|
57
|
+
<KLabel.Text typo="TextMdNormal" textAlign color={KColors.gray.normal}>
|
|
58
|
+
{trans('empty_product')}
|
|
59
|
+
</KLabel.Text>
|
|
60
|
+
</KContainer.View>
|
|
61
|
+
);
|
|
62
|
+
}, []);
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<FlashListComponent
|
|
66
|
+
data={products}
|
|
67
|
+
renderItem={renderItem}
|
|
68
|
+
keyExtractor={(item: any) => item.id}
|
|
69
|
+
numColumns={2}
|
|
70
|
+
estimatedItemSize={PRODUCT_VERTICAL_WIDTH}
|
|
71
|
+
contentContainerStyle={styles.contentContainerStyle}
|
|
72
|
+
ListEmptyComponent={ListEmptyComponent}
|
|
73
|
+
/>
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export default ChatProductList;
|
|
78
|
+
|
|
79
|
+
const styles = StyleSheet.create({
|
|
80
|
+
contentContainerStyle: {
|
|
81
|
+
padding: KSpacingValue['1rem'],
|
|
82
|
+
paddingBottom: KSpacingValue['0.25rem'],
|
|
83
|
+
},
|
|
84
|
+
emptyContainer: {
|
|
85
|
+
flex: 1,
|
|
86
|
+
alignItems: 'center',
|
|
87
|
+
gap: KSpacingValue['1rem'],
|
|
88
|
+
paddingTop: KSpacingValue['4rem'],
|
|
89
|
+
paddingHorizontal: KSpacingValue['1rem'],
|
|
90
|
+
paddingBottom: KSpacingValue['2.5rem'],
|
|
91
|
+
},
|
|
92
|
+
});
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
KBadge,
|
|
3
|
+
KColors,
|
|
4
|
+
KContainer,
|
|
5
|
+
KLabel,
|
|
6
|
+
KRadiusValue,
|
|
7
|
+
KSpacingValue,
|
|
8
|
+
} from '@droppii/libs';
|
|
2
9
|
import ChatHeader from './ChatHeader';
|
|
3
10
|
import ChatMessageList from './ChatMessageList';
|
|
4
11
|
import ChatFooter from './footer';
|
|
@@ -6,21 +13,75 @@ import {
|
|
|
6
13
|
KeyboardAvoidingView as KeyboardAvoidingViewAndroid,
|
|
7
14
|
Platform,
|
|
8
15
|
StyleSheet,
|
|
16
|
+
useWindowDimensions,
|
|
9
17
|
} from 'react-native';
|
|
10
18
|
import { KeyboardAvoidingView as KeyboardAvoidingViewIOS } from 'react-native-keyboard-controller';
|
|
11
19
|
import { useMessage } from '../../hooks/message/useMessage';
|
|
20
|
+
import { TabView } from 'react-native-tab-view';
|
|
21
|
+
import { useCallback, useEffect, useMemo } from 'react';
|
|
22
|
+
import useSessionStore from '../../store/session';
|
|
23
|
+
import { useGetExternalSessionInfo } from '../../hooks/session/useGetExternalSessionInfo';
|
|
24
|
+
import ChatProductList from './ChatProductList';
|
|
25
|
+
import { useChatContext } from '../../context/ChatContext';
|
|
26
|
+
import { GAEvents } from '../../constants/events';
|
|
27
|
+
import { ChatSessionTab, getRouteKey, routes } from '../../constants';
|
|
12
28
|
|
|
13
29
|
const KeyboardAvoidingView =
|
|
14
30
|
Platform.OS === 'ios' ? KeyboardAvoidingViewIOS : KeyboardAvoidingViewAndroid;
|
|
15
31
|
|
|
16
32
|
const ChatBotAI = () => {
|
|
17
33
|
const { messageState } = useMessage();
|
|
34
|
+
const layout = useWindowDimensions();
|
|
35
|
+
const { tabIndex, setTabIndex, logGA } = useChatContext();
|
|
36
|
+
const sessionId = useSessionStore((state) => state.sessionId);
|
|
37
|
+
const { data: externalSessionInfo } = useGetExternalSessionInfo({
|
|
38
|
+
sessionId: sessionId || '',
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const productTabCount = useMemo(() => {
|
|
42
|
+
return externalSessionInfo?.products?.count || 0;
|
|
43
|
+
}, [externalSessionInfo?.products?.count]);
|
|
44
|
+
|
|
45
|
+
const sourceTabCount = useMemo(() => {
|
|
46
|
+
return externalSessionInfo?.sources?.count || 0;
|
|
47
|
+
}, [externalSessionInfo?.sources?.count]);
|
|
18
48
|
|
|
19
49
|
const messageLength = messageState?.messages?.length;
|
|
20
50
|
|
|
21
51
|
const lastMessage =
|
|
22
52
|
messageLength > 0 ? messageState?.messages?.[messageLength - 1] : undefined;
|
|
23
53
|
|
|
54
|
+
const renderScene = useCallback(
|
|
55
|
+
({ route }: { route: any }) => {
|
|
56
|
+
switch (route.key) {
|
|
57
|
+
case ChatSessionTab.answer:
|
|
58
|
+
return <ChatMessageList messageList={messageState?.messages || []} />;
|
|
59
|
+
case ChatSessionTab.source:
|
|
60
|
+
return null;
|
|
61
|
+
case ChatSessionTab.product:
|
|
62
|
+
return (
|
|
63
|
+
<ChatProductList
|
|
64
|
+
products={externalSessionInfo?.products?.items || []}
|
|
65
|
+
/>
|
|
66
|
+
);
|
|
67
|
+
default:
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
[messageState?.messages, externalSessionInfo?.products?.items]
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
useEffect(() => {
|
|
75
|
+
if (!sessionId) {
|
|
76
|
+
logGA(GAEvents.newChatPageView);
|
|
77
|
+
} else {
|
|
78
|
+
logGA(GAEvents.chatDetailPageView, {
|
|
79
|
+
conversation_id: sessionId,
|
|
80
|
+
tab_type: getRouteKey(tabIndex),
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}, [sessionId, tabIndex, logGA]);
|
|
84
|
+
|
|
24
85
|
return (
|
|
25
86
|
<KContainer.Page flex>
|
|
26
87
|
<KeyboardAvoidingView
|
|
@@ -29,7 +90,64 @@ const ChatBotAI = () => {
|
|
|
29
90
|
keyboardVerticalOffset={1}
|
|
30
91
|
>
|
|
31
92
|
<ChatHeader />
|
|
32
|
-
<
|
|
93
|
+
<KContainer.VisibleView visible={!!sessionId}>
|
|
94
|
+
<KContainer.View style={styles.tabContainer}>
|
|
95
|
+
{routes.map((route, index) => {
|
|
96
|
+
const isCurTab = tabIndex === index;
|
|
97
|
+
const borderColor = isCurTab
|
|
98
|
+
? KColors.primary.normal
|
|
99
|
+
: KColors.transparent;
|
|
100
|
+
const textColor = isCurTab
|
|
101
|
+
? KColors.primary.normal
|
|
102
|
+
: KColors.gray.light;
|
|
103
|
+
const count =
|
|
104
|
+
route.key === ChatSessionTab.product
|
|
105
|
+
? productTabCount
|
|
106
|
+
: route.key === ChatSessionTab.source
|
|
107
|
+
? sourceTabCount
|
|
108
|
+
: 0;
|
|
109
|
+
const bagdeColor = isCurTab
|
|
110
|
+
? KColors.gradients.primary.light
|
|
111
|
+
: KColors.gradients.gray.light;
|
|
112
|
+
return (
|
|
113
|
+
<KContainer.Touchable
|
|
114
|
+
key={route.key}
|
|
115
|
+
onPress={() => setTabIndex(index)}
|
|
116
|
+
>
|
|
117
|
+
<KContainer.View style={styles.tabContent}>
|
|
118
|
+
<KLabel.Text typo="TextNmBold" color={textColor}>
|
|
119
|
+
{route.title}
|
|
120
|
+
</KLabel.Text>
|
|
121
|
+
<KContainer.VisibleView visible={count > 0}>
|
|
122
|
+
<KBadge.Base
|
|
123
|
+
badge={count}
|
|
124
|
+
badgeSize={{
|
|
125
|
+
height: 16,
|
|
126
|
+
width: 16,
|
|
127
|
+
}}
|
|
128
|
+
labelContainerStyle={styles.badge}
|
|
129
|
+
border={false}
|
|
130
|
+
colors={bagdeColor}
|
|
131
|
+
/>
|
|
132
|
+
</KContainer.VisibleView>
|
|
133
|
+
</KContainer.View>
|
|
134
|
+
<KContainer.View
|
|
135
|
+
style={styles.tabBorder}
|
|
136
|
+
background={borderColor}
|
|
137
|
+
/>
|
|
138
|
+
</KContainer.Touchable>
|
|
139
|
+
);
|
|
140
|
+
})}
|
|
141
|
+
</KContainer.View>
|
|
142
|
+
</KContainer.VisibleView>
|
|
143
|
+
<TabView
|
|
144
|
+
navigationState={{ index: tabIndex, routes }}
|
|
145
|
+
renderScene={renderScene}
|
|
146
|
+
onIndexChange={setTabIndex}
|
|
147
|
+
initialLayout={{ width: layout.width }}
|
|
148
|
+
renderTabBar={() => null}
|
|
149
|
+
swipeEnabled={false}
|
|
150
|
+
/>
|
|
33
151
|
<ChatFooter lastMessage={lastMessage} />
|
|
34
152
|
</KeyboardAvoidingView>
|
|
35
153
|
</KContainer.Page>
|
|
@@ -40,4 +158,29 @@ export default ChatBotAI;
|
|
|
40
158
|
|
|
41
159
|
const styles = StyleSheet.create({
|
|
42
160
|
container: { flexGrow: 1 },
|
|
161
|
+
tabContainer: {
|
|
162
|
+
flexDirection: 'row',
|
|
163
|
+
gap: KSpacingValue['1.25rem'],
|
|
164
|
+
paddingHorizontal: KSpacingValue['0.75rem'],
|
|
165
|
+
borderBottomWidth: 1,
|
|
166
|
+
borderBottomColor: KColors.border.normal,
|
|
167
|
+
},
|
|
168
|
+
tabContent: {
|
|
169
|
+
marginTop: 2,
|
|
170
|
+
flexDirection: 'row',
|
|
171
|
+
alignItems: 'center',
|
|
172
|
+
gap: KSpacingValue['0.25rem'],
|
|
173
|
+
height: 36,
|
|
174
|
+
},
|
|
175
|
+
tabBorder: {
|
|
176
|
+
height: 3,
|
|
177
|
+
borderRadius: KRadiusValue.x,
|
|
178
|
+
},
|
|
179
|
+
badge: {
|
|
180
|
+
position: 'relative',
|
|
181
|
+
top: 0,
|
|
182
|
+
left: 0,
|
|
183
|
+
right: 0,
|
|
184
|
+
bottom: 0,
|
|
185
|
+
},
|
|
43
186
|
});
|
|
@@ -59,7 +59,6 @@ class CustomRenderer extends Renderer implements RendererInterface {
|
|
|
59
59
|
html(text: string): ReactNode {
|
|
60
60
|
const normalized = text?.trim?.();
|
|
61
61
|
const match = COMPONENT_REGEX.exec(normalized);
|
|
62
|
-
console.log('match:', match);
|
|
63
62
|
if (!match) {
|
|
64
63
|
return (
|
|
65
64
|
<KLabel.Text typo="TextMdNormal" key={this.getKey()}>
|
|
@@ -74,7 +73,6 @@ class CustomRenderer extends Renderer implements RendererInterface {
|
|
|
74
73
|
const productId = params?.id;
|
|
75
74
|
const type = params?.type ?? 'horizontal';
|
|
76
75
|
const productIndex = this.productIds?.indexOf(productId || '');
|
|
77
|
-
console.log('product params:', params, 'type:', type);
|
|
78
76
|
if (type === 'vertical') {
|
|
79
77
|
return (
|
|
80
78
|
<ProductCard
|