react-native-chatbot-ai 0.1.23 → 0.1.25
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/components/Drawer/RenameSessionPopup.js +28 -14
- package/lib/module/components/Drawer/RenameSessionPopup.js.map +1 -1
- package/lib/module/components/Drawer/SessionList.js +14 -2
- package/lib/module/components/Drawer/SessionList.js.map +1 -1
- package/lib/module/components/Drawer/SessionOptionsBottomSheet.js +6 -1
- package/lib/module/components/Drawer/SessionOptionsBottomSheet.js.map +1 -1
- package/lib/module/components/chat/ChatMessageList.js +11 -7
- package/lib/module/components/chat/ChatMessageList.js.map +1 -1
- package/lib/module/components/chat/footer/index.js +40 -33
- package/lib/module/components/chat/footer/index.js.map +1 -1
- package/lib/module/components/chat/item/ChatAIAnswerMessageItem.js +26 -13
- package/lib/module/components/chat/item/ChatAIAnswerMessageItem.js.map +1 -1
- package/lib/module/components/chat/item/DeeplinkItem.js +3 -3
- package/lib/module/components/chat/item/DeeplinkItem.js.map +1 -1
- package/lib/module/components/chat/item/MessageActionsBar.js +1 -1
- package/lib/module/components/chat/item/MessageActionsBar.js.map +1 -1
- package/lib/module/components/portal/Popup.js +8 -3
- package/lib/module/components/portal/Popup.js.map +1 -1
- package/lib/module/components/product/CardHorizontal.js +50 -46
- package/lib/module/components/product/CardHorizontal.js.map +1 -1
- package/lib/module/hooks/message/useSendMessage.js +2 -2
- package/lib/module/hooks/message/useSendMessage.js.map +1 -1
- package/lib/module/hooks/message/useStreamMessage.js +13 -2
- package/lib/module/hooks/message/useStreamMessage.js.map +1 -1
- package/lib/module/hooks/messageActions/useAudioPlayer.js +4 -4
- package/lib/module/hooks/messageActions/useAudioPlayer.js.map +1 -1
- package/lib/module/hooks/messageActions/useFeedback.js +2 -2
- package/lib/module/hooks/messageActions/useFeedback.js.map +1 -1
- package/lib/module/hooks/messageActions/useShareMessage.js +1 -1
- package/lib/module/hooks/messageActions/useShareMessage.js.map +1 -1
- package/lib/module/store/session.js +1 -1
- package/lib/module/store/session.js.map +1 -1
- package/lib/module/translation/resources/i18n.js +2 -1
- package/lib/module/translation/resources/i18n.js.map +1 -1
- package/lib/module/utils/ui.js.map +1 -1
- package/lib/typescript/src/components/Drawer/RenameSessionPopup.d.ts +1 -1
- package/lib/typescript/src/components/Drawer/RenameSessionPopup.d.ts.map +1 -1
- package/lib/typescript/src/components/Drawer/SessionList.d.ts.map +1 -1
- package/lib/typescript/src/components/Drawer/SessionOptionsBottomSheet.d.ts.map +1 -1
- package/lib/typescript/src/components/chat/ChatMessageList.d.ts.map +1 -1
- package/lib/typescript/src/components/chat/item/ChatAIAnswerMessageItem.d.ts.map +1 -1
- package/lib/typescript/src/components/portal/Popup.d.ts +4 -0
- package/lib/typescript/src/components/portal/Popup.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/hooks/message/useSendMessage.d.ts.map +1 -1
- package/lib/typescript/src/hooks/message/useStreamMessage.d.ts.map +1 -1
- package/lib/typescript/src/store/products.d.ts +1 -1
- package/lib/typescript/src/store/products.d.ts.map +1 -1
- package/lib/typescript/src/translation/resources/i18n.d.ts.map +1 -1
- package/lib/typescript/src/types/ui.d.ts +3 -2
- package/lib/typescript/src/types/ui.d.ts.map +1 -1
- package/lib/typescript/src/utils/ui.d.ts +3 -2
- package/lib/typescript/src/utils/ui.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Drawer/RenameSessionPopup.tsx +30 -13
- package/src/components/Drawer/SessionList.tsx +13 -1
- package/src/components/Drawer/SessionOptionsBottomSheet.tsx +6 -1
- package/src/components/chat/ChatMessageList.tsx +11 -7
- package/src/components/chat/footer/index.tsx +37 -35
- package/src/components/chat/item/ChatAIAnswerMessageItem.tsx +29 -13
- package/src/components/chat/item/DeeplinkItem.tsx +3 -3
- package/src/components/chat/item/MessageActionsBar.tsx +1 -1
- package/src/components/portal/Popup.tsx +14 -4
- package/src/components/product/CardHorizontal.tsx +46 -45
- package/src/hooks/message/useSendMessage.ts +7 -2
- package/src/hooks/message/useStreamMessage.ts +17 -5
- package/src/hooks/messageActions/useAudioPlayer.ts +4 -4
- package/src/hooks/messageActions/useFeedback.ts +2 -2
- package/src/hooks/messageActions/useSendFeedback.ts +1 -1
- package/src/hooks/messageActions/useShareMessage.ts +1 -1
- package/src/store/products.ts +1 -1
- package/src/store/session.ts +1 -1
- package/src/translation/resources/i18n.ts +2 -0
- package/src/types/ui.ts +3 -2
- package/src/utils/ui.tsx +3 -2
package/src/utils/ui.tsx
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import { bottomSheetRef, popupRef, toastRef } from '../constants';
|
|
4
4
|
// @ts-ignore
|
|
5
|
-
import type {
|
|
5
|
+
import type { KToastBarProps } from '@droppii/libs';
|
|
6
6
|
import { KBottomSheetPropsEnhance } from '../types';
|
|
7
|
+
import { IPopupProps } from '../components/portal/Popup';
|
|
7
8
|
|
|
8
9
|
class UIUtils {
|
|
9
10
|
toast = {
|
|
@@ -44,7 +45,7 @@ class UIUtils {
|
|
|
44
45
|
},
|
|
45
46
|
};
|
|
46
47
|
popup = {
|
|
47
|
-
open: (params:
|
|
48
|
+
open: (params: IPopupProps) => {
|
|
48
49
|
popupRef.current?.open(params);
|
|
49
50
|
},
|
|
50
51
|
dismiss: () => {
|