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.
Files changed (76) hide show
  1. package/lib/module/components/Drawer/RenameSessionPopup.js +28 -14
  2. package/lib/module/components/Drawer/RenameSessionPopup.js.map +1 -1
  3. package/lib/module/components/Drawer/SessionList.js +14 -2
  4. package/lib/module/components/Drawer/SessionList.js.map +1 -1
  5. package/lib/module/components/Drawer/SessionOptionsBottomSheet.js +6 -1
  6. package/lib/module/components/Drawer/SessionOptionsBottomSheet.js.map +1 -1
  7. package/lib/module/components/chat/ChatMessageList.js +11 -7
  8. package/lib/module/components/chat/ChatMessageList.js.map +1 -1
  9. package/lib/module/components/chat/footer/index.js +40 -33
  10. package/lib/module/components/chat/footer/index.js.map +1 -1
  11. package/lib/module/components/chat/item/ChatAIAnswerMessageItem.js +26 -13
  12. package/lib/module/components/chat/item/ChatAIAnswerMessageItem.js.map +1 -1
  13. package/lib/module/components/chat/item/DeeplinkItem.js +3 -3
  14. package/lib/module/components/chat/item/DeeplinkItem.js.map +1 -1
  15. package/lib/module/components/chat/item/MessageActionsBar.js +1 -1
  16. package/lib/module/components/chat/item/MessageActionsBar.js.map +1 -1
  17. package/lib/module/components/portal/Popup.js +8 -3
  18. package/lib/module/components/portal/Popup.js.map +1 -1
  19. package/lib/module/components/product/CardHorizontal.js +50 -46
  20. package/lib/module/components/product/CardHorizontal.js.map +1 -1
  21. package/lib/module/hooks/message/useSendMessage.js +2 -2
  22. package/lib/module/hooks/message/useSendMessage.js.map +1 -1
  23. package/lib/module/hooks/message/useStreamMessage.js +13 -2
  24. package/lib/module/hooks/message/useStreamMessage.js.map +1 -1
  25. package/lib/module/hooks/messageActions/useAudioPlayer.js +4 -4
  26. package/lib/module/hooks/messageActions/useAudioPlayer.js.map +1 -1
  27. package/lib/module/hooks/messageActions/useFeedback.js +2 -2
  28. package/lib/module/hooks/messageActions/useFeedback.js.map +1 -1
  29. package/lib/module/hooks/messageActions/useShareMessage.js +1 -1
  30. package/lib/module/hooks/messageActions/useShareMessage.js.map +1 -1
  31. package/lib/module/store/session.js +1 -1
  32. package/lib/module/store/session.js.map +1 -1
  33. package/lib/module/translation/resources/i18n.js +2 -1
  34. package/lib/module/translation/resources/i18n.js.map +1 -1
  35. package/lib/module/utils/ui.js.map +1 -1
  36. package/lib/typescript/src/components/Drawer/RenameSessionPopup.d.ts +1 -1
  37. package/lib/typescript/src/components/Drawer/RenameSessionPopup.d.ts.map +1 -1
  38. package/lib/typescript/src/components/Drawer/SessionList.d.ts.map +1 -1
  39. package/lib/typescript/src/components/Drawer/SessionOptionsBottomSheet.d.ts.map +1 -1
  40. package/lib/typescript/src/components/chat/ChatMessageList.d.ts.map +1 -1
  41. package/lib/typescript/src/components/chat/item/ChatAIAnswerMessageItem.d.ts.map +1 -1
  42. package/lib/typescript/src/components/portal/Popup.d.ts +4 -0
  43. package/lib/typescript/src/components/portal/Popup.d.ts.map +1 -1
  44. package/lib/typescript/src/components/product/CardHorizontal.d.ts +1 -0
  45. package/lib/typescript/src/components/product/CardHorizontal.d.ts.map +1 -1
  46. package/lib/typescript/src/hooks/message/useSendMessage.d.ts.map +1 -1
  47. package/lib/typescript/src/hooks/message/useStreamMessage.d.ts.map +1 -1
  48. package/lib/typescript/src/store/products.d.ts +1 -1
  49. package/lib/typescript/src/store/products.d.ts.map +1 -1
  50. package/lib/typescript/src/translation/resources/i18n.d.ts.map +1 -1
  51. package/lib/typescript/src/types/ui.d.ts +3 -2
  52. package/lib/typescript/src/types/ui.d.ts.map +1 -1
  53. package/lib/typescript/src/utils/ui.d.ts +3 -2
  54. package/lib/typescript/src/utils/ui.d.ts.map +1 -1
  55. package/package.json +1 -1
  56. package/src/components/Drawer/RenameSessionPopup.tsx +30 -13
  57. package/src/components/Drawer/SessionList.tsx +13 -1
  58. package/src/components/Drawer/SessionOptionsBottomSheet.tsx +6 -1
  59. package/src/components/chat/ChatMessageList.tsx +11 -7
  60. package/src/components/chat/footer/index.tsx +37 -35
  61. package/src/components/chat/item/ChatAIAnswerMessageItem.tsx +29 -13
  62. package/src/components/chat/item/DeeplinkItem.tsx +3 -3
  63. package/src/components/chat/item/MessageActionsBar.tsx +1 -1
  64. package/src/components/portal/Popup.tsx +14 -4
  65. package/src/components/product/CardHorizontal.tsx +46 -45
  66. package/src/hooks/message/useSendMessage.ts +7 -2
  67. package/src/hooks/message/useStreamMessage.ts +17 -5
  68. package/src/hooks/messageActions/useAudioPlayer.ts +4 -4
  69. package/src/hooks/messageActions/useFeedback.ts +2 -2
  70. package/src/hooks/messageActions/useSendFeedback.ts +1 -1
  71. package/src/hooks/messageActions/useShareMessage.ts +1 -1
  72. package/src/store/products.ts +1 -1
  73. package/src/store/session.ts +1 -1
  74. package/src/translation/resources/i18n.ts +2 -0
  75. package/src/types/ui.ts +3 -2
  76. 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 { KPopupProps, KToastBarProps } from '@droppii/libs';
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: KPopupProps) => {
48
+ open: (params: IPopupProps) => {
48
49
  popupRef.current?.open(params);
49
50
  },
50
51
  dismiss: () => {