@cometchat/chat-uikit-react-native 5.2.10 → 5.3.0

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 +4557 -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 +139 -10
  21. package/src/CometChatMessageComposer/CometChatMessageComposer.tsx +25 -21
  22. package/src/CometChatMessageComposer/styles.tsx +0 -1
  23. package/src/CometChatMessageList/CometChatMessageList.tsx +39 -6
  24. package/src/CometChatMessageList/components/MessageListItem.tsx +11 -8
  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 +8 -3
  29. package/src/CometChatSearch/style.ts +3 -3
  30. package/src/index.ts +48 -1
  31. package/src/shared/constants/UIKitConstants.ts +12 -1
  32. package/src/shared/formatters/CometChatMentionsFormatter/CometChatMentionsFormatter.tsx +5 -5
  33. package/src/shared/formatters/CometChatRichTextFormatter/index.tsx +768 -0
  34. package/src/shared/formatters/index.ts +3 -0
  35. package/src/shared/framework/MessageDataSource.tsx +93 -2
  36. package/src/shared/helper/composerHelpers.ts +553 -0
  37. package/src/shared/helper/useKeyboard.tsx +7 -17
  38. package/src/shared/icons/components/code-blocks.tsx +13 -0
  39. package/src/shared/icons/components/code.tsx +11 -0
  40. package/src/shared/icons/components/format-bold.tsx +11 -0
  41. package/src/shared/icons/components/format-italic.tsx +11 -0
  42. package/src/shared/icons/components/format-list-bulleted.tsx +11 -0
  43. package/src/shared/icons/components/format-list-numbered.tsx +11 -0
  44. package/src/shared/icons/components/format-quote.tsx +13 -0
  45. package/src/shared/icons/components/format-strikethrough.tsx +13 -0
  46. package/src/shared/icons/components/format-underlined.tsx +11 -0
  47. package/src/shared/icons/components/smileys-&-people.tsx +1 -1
  48. package/src/shared/icons/icon-mapping.tsx +18 -0
  49. package/src/shared/index.ts +54 -2
  50. package/src/shared/resources/CometChatLocalizeNew/resources/de/translation.json +38 -32
  51. package/src/shared/resources/CometChatLocalizeNew/resources/en/translation.json +6 -0
  52. package/src/shared/resources/CometChatLocalizeNew/resources/es/translation.json +18 -12
  53. package/src/shared/resources/CometChatLocalizeNew/resources/fr/translation.json +505 -499
  54. package/src/shared/resources/CometChatLocalizeNew/resources/hi/translation.json +19 -13
  55. package/src/shared/resources/CometChatLocalizeNew/resources/hu/translation.json +18 -12
  56. package/src/shared/resources/CometChatLocalizeNew/resources/it/translation.json +504 -498
  57. package/src/shared/resources/CometChatLocalizeNew/resources/ja/translation.json +504 -498
  58. package/src/shared/resources/CometChatLocalizeNew/resources/ko/translation.json +504 -498
  59. package/src/shared/resources/CometChatLocalizeNew/resources/lt/translation.json +19 -13
  60. package/src/shared/resources/CometChatLocalizeNew/resources/ms/translation.json +18 -12
  61. package/src/shared/resources/CometChatLocalizeNew/resources/nl/translation.json +505 -499
  62. package/src/shared/resources/CometChatLocalizeNew/resources/pt/translation.json +18 -12
  63. package/src/shared/resources/CometChatLocalizeNew/resources/ru/translation.json +18 -12
  64. package/src/shared/resources/CometChatLocalizeNew/resources/sv/translation.json +19 -13
  65. package/src/shared/resources/CometChatLocalizeNew/resources/tr/translation.json +505 -499
  66. package/src/shared/resources/CometChatLocalizeNew/resources/zh/translation.json +18 -12
  67. package/src/shared/resources/CometChatLocalizeNew/resources/zh-tw/translation.json +19 -13
  68. package/src/shared/utils/CometChatMessagePreview/CometChatMessagePreview.tsx +132 -11
  69. package/src/shared/utils/CometChatMessagePreview/style.ts +1 -3
  70. package/src/shared/utils/MarkdownUtils.ts +143 -0
  71. package/src/shared/utils/MentionUtils.ts +37 -0
  72. package/src/shared/utils/MessageUtils.tsx +55 -0
  73. package/src/shared/utils/index.ts +5 -0
  74. package/src/shared/views/CometChatActionSheet/CometChatActionSheet.tsx +1 -1
  75. package/src/shared/views/CometChatInlineAudioRecorder/AudioWaveformVisualizer.tsx +417 -0
  76. package/src/shared/views/CometChatInlineAudioRecorder/CometChatInlineAudioRecorder.tsx +537 -0
  77. package/src/shared/views/CometChatInlineAudioRecorder/index.ts +34 -0
  78. package/src/shared/views/CometChatInlineAudioRecorder/style.ts +155 -0
  79. package/src/shared/views/CometChatInlineAudioRecorder/types.ts +303 -0
  80. package/src/shared/views/CometChatInlineAudioRecorder/useAudioRecorder.ts +1336 -0
  81. package/src/shared/views/CometChatLinkConfirmPopup/CometChatLinkConfirmPopup.tsx +183 -0
  82. package/src/shared/views/CometChatLinkConfirmPopup/index.ts +13 -0
  83. package/src/shared/views/CometChatLinkConfirmPopup/style.ts +128 -0
  84. package/src/shared/views/CometChatList/Header.tsx +57 -49
  85. package/src/shared/views/CometChatMediaRecorder/CometChatMediaRecorder.tsx +0 -1
  86. package/src/shared/views/CometChatQuickReactions/QuickReactionsStyle.tsx +2 -2
  87. package/src/shared/views/CometChatReactionList/ReactionListStyle.tsx +3 -2
  88. package/src/shared/views/CometChatReactions/CometChatReactions.tsx +11 -5
  89. package/src/shared/views/CometChatReactions/style.ts +35 -8
  90. package/src/shared/views/CometChatSendButtonView/CometChatSendButtonView.tsx +32 -29
  91. package/src/shared/views/CometChatTextBubble/CometChatTextBubble.tsx +108 -75
  92. package/src/shared/views/index.ts +39 -0
  93. package/src/theme/index.ts +1 -1
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { TouchableOpacity } from "react-native";
1
+ import React, { useMemo } from "react";
2
+ import { TouchableOpacity, ViewStyle } from "react-native";
3
3
  import { stopStreamingForRunId } from "../../services/stream-message.service";
4
4
  import { useTheme } from "../../../theme";
5
5
  import { Icon } from "../../../shared/icons/Icon";
@@ -39,48 +39,51 @@ const CometChatSendButtonView = ({
39
39
 
40
40
  const shouldShowStop = isStreaming || showStopButton;
41
41
  const isActive = shouldShowStop || !isButtonDisabled;
42
- const backgroundColor =
43
- theme.mode === "light"
44
- ? isActive
45
- ? theme.color.secondaryButtonBackground
46
- : theme.color.background4
47
- : isActive
48
- ? theme.color.staticWhite
49
- : theme.color.background4;
42
+
43
+ const buttonStyle = useMemo<ViewStyle>(() => {
44
+ const { spacing } = theme;
45
+ const backgroundColor =
46
+ theme.mode === "light"
47
+ ? isActive
48
+ ? theme.color.secondaryButtonBackground
49
+ : theme.color.background4
50
+ : isActive
51
+ ? theme.color.staticWhite
52
+ : theme.color.background4;
53
+
54
+ return {
55
+ display: "flex",
56
+ width: spacing.spacing.s8,
57
+ height: spacing.spacing.s8,
58
+ padding: spacing.padding.p1,
59
+ justifyContent: "center",
60
+ alignItems: "center",
61
+ borderRadius: spacing.spacing.s15,
62
+ backgroundColor,
63
+ } as ViewStyle;
64
+ }, [theme, isActive]);
65
+
50
66
  const iconColor =
51
67
  theme.mode === "light"
52
- ? isActive
53
- ? theme.color.staticWhite
54
- : theme.color.staticWhite
68
+ ? theme.color.staticWhite
55
69
  : isActive
56
70
  ? theme.color.staticBlack
57
- : theme.color.staticBlack
71
+ : theme.color.staticBlack;
58
72
 
59
-
60
73
  return (
61
74
  <TouchableOpacity
62
75
  onPress={handlePress}
63
76
  disabled={isButtonDisabled && shouldShowStop}
64
- style={{
65
- display: "flex",
66
- width: 40,
67
- height: 40,
68
- paddingVertical: theme.spacing.padding.p4,
69
- paddingHorizontal: theme.spacing.padding.p3,
70
- justifyContent: "center",
71
- alignItems: "center",
72
- borderRadius: 9999,
73
- backgroundColor,
74
- }}
77
+ style={buttonStyle}
75
78
  >
76
79
  <Icon
77
80
  name={shouldShowStop ? "stop-fill" : "ai-send-button"}
78
- width={20}
79
- height={20}
81
+ width={theme.spacing.spacing.s5}
82
+ height={theme.spacing.spacing.s5}
80
83
  color={iconColor}
81
84
  />
82
85
  </TouchableOpacity>
83
86
  );
84
87
  };
85
88
 
86
- export { CometChatSendButtonView };
89
+ export { CometChatSendButtonView };
@@ -1,4 +1,4 @@
1
- import React, { useLayoutEffect, useState, useRef, useCallback } from "react";
1
+ import React, { useLayoutEffect, useState, useRef, useCallback, useMemo, JSX } from "react";
2
2
  import {
3
3
  StyleProp,
4
4
  Text,
@@ -15,7 +15,9 @@ import {
15
15
  CometChatUrlsFormatter,
16
16
  } from "../../formatters";
17
17
  import { useCometChatTranslation } from "../../resources/CometChatLocalizeNew";
18
- import { t } from "../../resources/CometChatLocalizeNew/LocalizationManager";
18
+
19
+ // Pre-allocated style for view-based content wrapper (blockquotes, lists).
20
+ const VIEW_BASED_WRAPPER_STYLE = { flexShrink: 1 as const };
19
21
 
20
22
  export interface CometChatTextBubbleInterface {
21
23
  /*** text to be shown */
@@ -44,6 +46,30 @@ export const CometChatTextBubble = (props: CometChatTextBubbleInterface) => {
44
46
  );
45
47
  };
46
48
 
49
+ /**
50
+ * Recursively apply textStyle to all Text elements within a tree.
51
+ * Needed for View-based content (blockquotes, lists) where Text nodes
52
+ * can be nested multiple levels deep inside View wrappers.
53
+ */
54
+ function applyTextStyleDeep(
55
+ el: React.ReactElement<any>,
56
+ textStyle: StyleProp<TextStyle> | undefined
57
+ ): React.ReactElement<any> {
58
+ if (el.type === Text) {
59
+ return React.cloneElement(el, {
60
+ style: [textStyle, el.props?.style],
61
+ });
62
+ }
63
+ if (el.type === View && el.props.children) {
64
+ const newChildren = React.Children.map(el.props.children, (child) => {
65
+ if (!React.isValidElement(child)) return child;
66
+ return applyTextStyleDeep(child as React.ReactElement<any>, textStyle);
67
+ });
68
+ return React.cloneElement(el, {}, newChildren);
69
+ }
70
+ return el;
71
+ }
72
+
47
73
  /**
48
74
  * CometChatTextBubbleText
49
75
  *
@@ -63,92 +89,87 @@ export const CometChatTextBubbleText = (
63
89
  toggleTextStyle,
64
90
  } = props;
65
91
 
66
- const [formattedText, setFormattedText] = useState<string>(text);
67
92
  const [isExpanded, setIsExpanded] = useState(false);
68
93
  const [isTruncatable, setIsTruncatable] = useState(false);
69
-
70
- // store container width for accurate measurement
71
94
  const [containerWidth, setContainerWidth] = useState<number | null>(null);
95
+ const [measurementComplete, setMeasurementComplete] = useState(false);
72
96
 
73
- /**
74
- * measuredCache helps avoid re-measuring if the same text+width was already measured.
75
- * Structure: { key: string } where key = `${text}::${width}`
76
- */
97
+ // Refs to track state without causing re-renders
77
98
  const measuredCacheRef = useRef<Record<string, boolean>>({});
99
+ const lastTextRef = useRef<string>(text);
78
100
 
79
- // Only recompute formattedText when the text or textFormatters actually change.
80
- useLayoutEffect(() => {
81
- let finalText = text;
101
+ // Compute formatted text synchronously - no state update needed
102
+ // Result can be string or JSX.Element (when rich text formatter produces View-based content)
103
+ const formattedText = useMemo(() => {
104
+ let finalText: string | JSX.Element | null = text;
82
105
  if (textFormatters && textFormatters.length) {
83
106
  for (let i = 0; i < textFormatters.length; i++) {
84
107
  finalText = textFormatters[i].getFormattedText(finalText);
85
108
  }
86
109
  }
110
+ return finalText as string | JSX.Element;
111
+ }, [text, textFormatters]);
87
112
 
88
- // If text content actually changed, update formattedText and reset expansion.
89
- // Do NOT reset on other prop changes (so adding reaction won't collapse/lose toggle).
90
- if (finalText !== formattedText) {
91
- setFormattedText(finalText as string);
113
+ // Reset state only when text actually changes
114
+ useLayoutEffect(() => {
115
+ if (lastTextRef.current !== text) {
116
+ lastTextRef.current = text;
92
117
  setIsExpanded(false);
93
- // measurement cache can stay, but remove entries for previous text (optional)
94
- // measuredCacheRef.current = {}; // not required, we'll rely on keying by text+width
118
+ setIsTruncatable(false);
119
+ setMeasurementComplete(false);
95
120
  }
96
- // eslint-disable-next-line react-hooks/exhaustive-deps
97
- }, [
98
- text /* only textFormatters intentionally omitted from deps if stable; if not stable include it */,
99
- ]);
100
-
101
- // handler to capture container width whenever layout changes
102
- const onContainerLayout = useCallback(
103
- (e: LayoutChangeEvent) => {
104
- const w = Math.round(e.nativeEvent.layout.width);
105
- if (w && w !== containerWidth) {
106
- setContainerWidth(w);
107
- // Do NOT clear isExpanded here — measurement may change truncation but we want to
108
- // preserve user's expanded/collapsed state unless the text itself changed.
109
- }
110
- },
111
- [containerWidth]
112
- );
121
+ }, [text]);
122
+
123
+ // Handler to capture container width - use functional update to avoid dependency
124
+ const onContainerLayout = useCallback((e: LayoutChangeEvent) => {
125
+ const w = Math.round(e.nativeEvent.layout.width);
126
+ if (w > 0) {
127
+ setContainerWidth(prev => prev === w ? prev : w);
128
+ }
129
+ }, []);
113
130
 
114
- // Called when hidden text is laid out; use it to determine lines count
115
- const onMeasuredTextLayout = (e: TextLayoutEvent) => {
116
- // We rely on containerWidth + formattedText as the measurement key
117
- const key = `${formattedText}::${containerWidth ?? 0}`;
131
+ // Called when hidden text is laid out
132
+ // Use original text for the measurement key (formattedText may be JSX)
133
+ const onMeasuredTextLayout = useCallback((e: TextLayoutEvent) => {
134
+ const key = `${text}::${containerWidth ?? 0}`;
118
135
 
119
- // If we've already measured this text at this width, skip
120
- if (measuredCacheRef.current[key]) return;
136
+ // Skip if already measured
137
+ if (measuredCacheRef.current[key]) {
138
+ if (!measurementComplete) {
139
+ setMeasurementComplete(true);
140
+ }
141
+ return;
142
+ }
121
143
 
122
144
  const lines = e.nativeEvent.lines;
123
145
  const isNowTruncatable = !!(lines && lines.length > collapseLines);
124
146
 
147
+ measuredCacheRef.current[key] = true;
125
148
  setIsTruncatable(isNowTruncatable);
126
- measuredCacheRef.current[key] = isNowTruncatable;
127
- };
128
-
129
- const toggle = () => setIsExpanded((v) => !v);
130
-
131
- /**
132
- * Hidden measurement `Text`:
133
- * - we render it only when we have containerWidth (so it can measure correctly)
134
- * - style uses same font metrics as visible text because it inherits textStyle
135
- * - opacity: 0 and position absolute so it does not affect layout
136
- *
137
- * Important: We key the hidden Text by formattedText + containerWidth so React remounts
138
- * it and triggers onTextLayout when either changes.
139
- */
140
- const hiddenTextKey = `${formattedText}::${containerWidth ?? 0}`;
149
+ setMeasurementComplete(true);
150
+ }, [text, containerWidth, collapseLines, measurementComplete]);
151
+
152
+ const toggle = useCallback(() => setIsExpanded(v => !v), []);
153
+
154
+ // Use original text for keys (formattedText may be JSX and can't be stringified)
155
+ const hiddenTextKey = `${text}::${containerWidth ?? 0}`;
156
+
157
+ // Check if formattedText is a View-based element (e.g. blockquote with View wrapper).
158
+ // View elements cannot be nested inside Text, so render them directly.
159
+ const isViewBased = React.isValidElement(formattedText) &&
160
+ (formattedText as React.ReactElement<any>).type === View;
161
+
162
+ // Only measure string content — View-based content can't use onTextLayout
163
+ const needsMeasurement = containerWidth !== null && !isViewBased && !measuredCacheRef.current[hiddenTextKey];
141
164
 
142
165
  return (
143
166
  <View onLayout={onContainerLayout}>
144
- {/* Hidden measurement text: only meaningful after we know container width */}
145
- {containerWidth ? (
167
+ {/* Hidden measurement text - only render if we need to measure */}
168
+ {needsMeasurement && (
146
169
  <Text
147
170
  key={hiddenTextKey}
148
- // make sure the hidden text has same width as container
149
171
  style={[
150
- // width must be exact to get consistent wrapping on both platforms
151
- { position: "absolute", left: 0, top: -10000, width: containerWidth, opacity: 0 },
172
+ { position: "absolute", left: 0, top: -10000, width: containerWidth!, opacity: 0 },
152
173
  textStyle as any,
153
174
  ]}
154
175
  onTextLayout={onMeasuredTextLayout}
@@ -157,19 +178,31 @@ export const CometChatTextBubbleText = (
157
178
  >
158
179
  {formattedText}
159
180
  </Text>
160
- ) : null}
161
-
162
- {/* Visible text */}
163
- <Text
164
- style={textStyle}
165
- numberOfLines={isExpanded ? undefined : collapseLines}
166
- ellipsizeMode='tail'
167
- >
168
- {formattedText}
169
- </Text>
170
-
171
- {/* Toggle (only when truncation is needed) */}
172
- {isTruncatable ? (
181
+ )}
182
+
183
+ {/* Visible text — View-based content (blockquotes, lists) rendered directly */}
184
+ {isViewBased ? (
185
+ <View style={VIEW_BASED_WRAPPER_STYLE}>
186
+ {React.Children.map(
187
+ (formattedText as React.ReactElement<any>).props.children,
188
+ (child) => {
189
+ if (!React.isValidElement(child)) return child;
190
+ return applyTextStyleDeep(child as React.ReactElement<any>, textStyle);
191
+ }
192
+ )}
193
+ </View>
194
+ ) : (
195
+ <Text
196
+ style={textStyle}
197
+ numberOfLines={isExpanded ? undefined : collapseLines}
198
+ ellipsizeMode='tail'
199
+ >
200
+ {formattedText}
201
+ </Text>
202
+ )}
203
+
204
+ {/* Toggle - only show after measurement is complete to prevent flicker */}
205
+ {measurementComplete && isTruncatable && (
173
206
  <View style={[{ alignItems: "flex-end", marginTop: 6 }, toggleContainerStyle]}>
174
207
  <TouchableOpacity onPress={toggle} accessibilityRole='button'>
175
208
  <Text style={[{ alignSelf: "flex-end" }, textStyle, toggleTextStyle]}>
@@ -177,7 +210,7 @@ export const CometChatTextBubbleText = (
177
210
  </Text>
178
211
  </TouchableOpacity>
179
212
  </View>
180
- ) : null}
213
+ )}
181
214
  </View>
182
215
  );
183
216
  };
@@ -90,15 +90,40 @@ import {
90
90
  CometChatReportDialogInterface,
91
91
  } from "./CometChatReportDialog";
92
92
 
93
+ import {
94
+ CometChatLinkConfirmPopup,
95
+ CometChatLinkConfirmPopupInterface,
96
+ } from "./CometChatLinkConfirmPopup";
97
+
93
98
  import {
94
99
  CometChatNewMessageIndicator,
95
100
  CometChatNewMessageIndicatorInterface,
96
101
  NewMessageIndicatorStyle,
97
102
  } from "./CometChatNewMessageIndicator";
98
103
 
104
+ import {
105
+ CometChatInlineAudioRecorder,
106
+ formatDuration,
107
+ AudioWaveformVisualizer,
108
+ useAudioRecorder,
109
+ getInlineAudioRecorderStyle,
110
+ getInlineAudioRecorderStyleLight,
111
+ getInlineAudioRecorderStyleDark,
112
+ } from "./CometChatInlineAudioRecorder";
113
+
114
+ import type {
115
+ CometChatInlineAudioRecorderProps,
116
+ CometChatInlineAudioRecorderStyle,
117
+ AudioWaveformVisualizerProps,
118
+ WaveformStyle,
119
+ RecorderState,
120
+ UseAudioRecorderReturn,
121
+ } from "./CometChatInlineAudioRecorder";
122
+
99
123
  export type {
100
124
  CometChatConfirmDialogInterface,
101
125
  CometChatReportDialogInterface,
126
+ CometChatLinkConfirmPopupInterface,
102
127
  CometChatDateInterface,
103
128
  CometChatFileBubbleInterface,
104
129
  CometChatImageBubbleInterface,
@@ -118,6 +143,12 @@ export type {
118
143
  CometChatVideoBubbleInterface,
119
144
  CometChatTextBubbleInterface,
120
145
  CometChatNewMessageIndicatorInterface,
146
+ CometChatInlineAudioRecorderProps,
147
+ CometChatInlineAudioRecorderStyle,
148
+ AudioWaveformVisualizerProps,
149
+ WaveformStyle,
150
+ RecorderState,
151
+ UseAudioRecorderReturn,
121
152
  };
122
153
 
123
154
  export {
@@ -128,6 +159,7 @@ export {
128
159
  CometChatBottomSheet,
129
160
  CometChatConfirmDialog,
130
161
  CometChatReportDialog,
162
+ CometChatLinkConfirmPopup,
131
163
  CometChatDate,
132
164
  CometChatEmojiKeyboard,
133
165
  CometChatFileBubble,
@@ -146,6 +178,13 @@ export {
146
178
  CometChatVideoBubble,
147
179
  SuggestionItem,
148
180
  CometChatNewMessageIndicator,
181
+ CometChatInlineAudioRecorder,
182
+ formatDuration,
183
+ AudioWaveformVisualizer,
184
+ useAudioRecorder,
185
+ getInlineAudioRecorderStyle,
186
+ getInlineAudioRecorderStyleLight,
187
+ getInlineAudioRecorderStyleDark,
149
188
  };
150
189
 
151
190
 
@@ -1,3 +1,3 @@
1
1
  export * from "./CometChatThemeHelper";
2
- export { useTheme } from "./hook";
2
+ export { useTheme, useThemeInternal } from "./hook";
3
3
  export { CometChatThemeProvider } from "./provider";