@cometchat/chat-uikit-react-native 5.2.11 → 5.3.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.
Files changed (93) hide show
  1. package/android/build.gradle +3 -0
  2. package/android/src/main/java/com/reactnativecometchatuikit/CometchatUiKitPackage.java +4 -1
  3. package/android/src/main/java/com/reactnativecometchatuikit/FileManager.java +909 -10
  4. package/android/src/main/java/com/reactnativecometchatuikit/RichTextEditorPackage.kt +24 -0
  5. package/android/src/main/java/com/reactnativecometchatuikit/RichTextEditorView.kt +5382 -0
  6. package/android/src/main/java/com/reactnativecometchatuikit/RichTextEditorViewManager.kt +452 -0
  7. package/ios/FileManager.m +430 -3
  8. package/ios/RichTextEditorView.swift +5504 -0
  9. package/ios/RichTextEditorViewManager.m +66 -0
  10. package/ios/RichTextEditorViewManager.swift +291 -0
  11. package/ios/ToolbarIcons.swift +736 -0
  12. package/package.json +1 -1
  13. package/react-native-cometchat-ui-kit.podspec +1 -1
  14. package/src/CometChatCompactMessageComposer/CometChatCompactMessageComposer.tsx +4602 -0
  15. package/src/CometChatCompactMessageComposer/SingleLineTextComposerConfiguration.tsx +568 -0
  16. package/src/CometChatCompactMessageComposer/heightUtils.ts +204 -0
  17. package/src/CometChatCompactMessageComposer/index.ts +56 -0
  18. package/src/CometChatCompactMessageComposer/resources/index.ts +5 -0
  19. package/src/CometChatCompactMessageComposer/styles.ts +291 -0
  20. package/src/CometChatConversations/CometChatConversations.tsx +141 -14
  21. package/src/CometChatGroupMembers/CometChatGroupMembers.tsx +6 -0
  22. package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +1 -20
  23. package/src/CometChatMessageComposer/styles.tsx +0 -1
  24. package/src/CometChatMessageList/CometChatMessageList.tsx +76 -30
  25. package/src/CometChatRichTextEditor/RichTextEditorViewNativeComponent.ts +105 -0
  26. package/src/CometChatRichTextEditor/index.tsx +385 -0
  27. package/src/CometChatRichTextEditor/types.ts +162 -0
  28. package/src/CometChatSearch/CometChatSearch.tsx +35 -29
  29. package/src/calls/CallUtils.ts +4 -4
  30. package/src/index.ts +48 -1
  31. package/src/shared/CometChatUiKit/CometChatUIKit.ts +2 -0
  32. package/src/shared/constants/UIKitConstants.ts +12 -1
  33. package/src/shared/events/ListenerInitializer.ts +6 -0
  34. package/src/shared/events/messages.ts +2 -0
  35. package/src/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.tsx +5 -5
  36. package/src/shared/formatters/CometChatRichTextFormatter/index.tsx +768 -0
  37. package/src/shared/formatters/index.ts +3 -0
  38. package/src/shared/framework/MessageDataSource.tsx +93 -2
  39. package/src/shared/helper/composerHelpers.ts +553 -0
  40. package/src/shared/helper/useKeyboard.tsx +7 -17
  41. package/src/shared/icons/components/code-blocks.tsx +13 -0
  42. package/src/shared/icons/components/code.tsx +11 -0
  43. package/src/shared/icons/components/format-bold.tsx +11 -0
  44. package/src/shared/icons/components/format-italic.tsx +11 -0
  45. package/src/shared/icons/components/format-list-bulleted.tsx +11 -0
  46. package/src/shared/icons/components/format-list-numbered.tsx +11 -0
  47. package/src/shared/icons/components/format-quote.tsx +13 -0
  48. package/src/shared/icons/components/format-strikethrough.tsx +13 -0
  49. package/src/shared/icons/components/format-underlined.tsx +11 -0
  50. package/src/shared/icons/components/smileys-&-people.tsx +1 -1
  51. package/src/shared/icons/icon-mapping.tsx +18 -0
  52. package/src/shared/index.ts +54 -2
  53. package/src/shared/resources/CometChatLocalizeNew/resources/de/translation.json +37 -32
  54. package/src/shared/resources/CometChatLocalizeNew/resources/en/translation.json +5 -0
  55. package/src/shared/resources/CometChatLocalizeNew/resources/es/translation.json +17 -12
  56. package/src/shared/resources/CometChatLocalizeNew/resources/fr/translation.json +505 -500
  57. package/src/shared/resources/CometChatLocalizeNew/resources/hi/translation.json +18 -13
  58. package/src/shared/resources/CometChatLocalizeNew/resources/hu/translation.json +17 -12
  59. package/src/shared/resources/CometChatLocalizeNew/resources/it/translation.json +504 -499
  60. package/src/shared/resources/CometChatLocalizeNew/resources/ja/translation.json +504 -499
  61. package/src/shared/resources/CometChatLocalizeNew/resources/ko/translation.json +504 -499
  62. package/src/shared/resources/CometChatLocalizeNew/resources/lt/translation.json +18 -13
  63. package/src/shared/resources/CometChatLocalizeNew/resources/ms/translation.json +17 -12
  64. package/src/shared/resources/CometChatLocalizeNew/resources/nl/translation.json +505 -500
  65. package/src/shared/resources/CometChatLocalizeNew/resources/pt/translation.json +17 -12
  66. package/src/shared/resources/CometChatLocalizeNew/resources/ru/translation.json +17 -12
  67. package/src/shared/resources/CometChatLocalizeNew/resources/sv/translation.json +18 -13
  68. package/src/shared/resources/CometChatLocalizeNew/resources/tr/translation.json +505 -500
  69. package/src/shared/resources/CometChatLocalizeNew/resources/zh/translation.json +17 -12
  70. package/src/shared/resources/CometChatLocalizeNew/resources/zh-tw/translation.json +18 -13
  71. package/src/shared/utils/CometChatMessagePreview/CometChatMessagePreview.tsx +132 -11
  72. package/src/shared/utils/CometChatMessagePreview/style.ts +1 -3
  73. package/src/shared/utils/CommonUtils.ts +18 -1
  74. package/src/shared/utils/MarkdownUtils.ts +143 -0
  75. package/src/shared/utils/MentionUtils.ts +37 -0
  76. package/src/shared/utils/MessageReceiptUtils.ts +5 -4
  77. package/src/shared/utils/MessageUtils.tsx +5 -3
  78. package/src/shared/utils/index.ts +5 -0
  79. package/src/shared/views/CometChatAudioBubble/CometChatAudioBubble.tsx +1 -1
  80. package/src/shared/views/CometChatInlineAudioRecorder/AudioWaveformVisualizer.tsx +417 -0
  81. package/src/shared/views/CometChatInlineAudioRecorder/CometChatInlineAudioRecorder.tsx +537 -0
  82. package/src/shared/views/CometChatInlineAudioRecorder/index.ts +34 -0
  83. package/src/shared/views/CometChatInlineAudioRecorder/style.ts +155 -0
  84. package/src/shared/views/CometChatInlineAudioRecorder/types.ts +303 -0
  85. package/src/shared/views/CometChatInlineAudioRecorder/useAudioRecorder.ts +1336 -0
  86. package/src/shared/views/CometChatLinkConfirmPopup/CometChatLinkConfirmPopup.tsx +183 -0
  87. package/src/shared/views/CometChatLinkConfirmPopup/index.ts +13 -0
  88. package/src/shared/views/CometChatLinkConfirmPopup/style.ts +128 -0
  89. package/src/shared/views/CometChatList/Header.tsx +2 -1
  90. package/src/shared/views/CometChatListItem/style.ts +1 -0
  91. package/src/shared/views/CometChatSendButtonView/CometChatSendButtonView.tsx +32 -29
  92. package/src/shared/views/CometChatTextBubble/CometChatTextBubble.tsx +64 -16
  93. package/src/shared/views/index.ts +39 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometchat/chat-uikit-react-native",
3
- "version": "5.2.11",
3
+ "version": "5.3.1",
4
4
  "description": "Ready-to-use Chat UI Components for React Native",
5
5
  "main": "src/index",
6
6
  "module": "src/index",
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
15
15
  s.platforms = { :ios => "11.0" }
16
16
  s.source = { :git => "https://github.com/cometchat/cometchat-uikit-react-native.git", :tag => "#{s.version}" }
17
17
 
18
- s.source_files = "ios/**/*.{h,m,mm}"
18
+ s.source_files = "ios/**/*.{h,m,mm,swift}"
19
19
 
20
20
  s.static_framework = true # Set static_framework for the main spec if needed
21
21
  s.dependency "React-Core"