@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
@@ -0,0 +1,568 @@
1
+ import { ImageSourcePropType, ImageStyle, TextStyle, ViewStyle } from 'react-native';
2
+ import { SingleLineMessageComposerStyleInterface } from './CometChatCompactMessageComposer';
3
+ import { MessageComposerStyle } from '../CometChatMessageComposer/styles';
4
+ import {
5
+ DEFAULT_MIN_HEIGHT,
6
+ DEFAULT_MAX_LINES,
7
+ DEFAULT_LINE_HEIGHT,
8
+ DEFAULT_PADDING_VERTICAL,
9
+ calculateMaxHeightFromLines,
10
+ } from './heightUtils';
11
+
12
+ /**
13
+ * Default values for CometChatSingleLineMessageComposer
14
+ *
15
+ * This configuration file documents all default values used by the component.
16
+ * These defaults are applied when props are not explicitly provided.
17
+ */
18
+
19
+ /**
20
+ * Default prop values for CometChatSingleLineMessageComposer
21
+ */
22
+ export const SingleLineMessageComposerDefaults = {
23
+ /**
24
+ * Position of auxiliary buttons
25
+ * @default 'right'
26
+ */
27
+ auxiliaryButtonsAlignment: 'right' as 'left' | 'right',
28
+
29
+ /**
30
+ * Whether to hide auxiliary buttons
31
+ * @default false
32
+ */
33
+ hideAuxiliaryButton: false,
34
+
35
+ /**
36
+ * Whether to disable typing indicator events
37
+ * @default false
38
+ */
39
+ disableTypingEvents: false,
40
+
41
+ /**
42
+ * Whether to disable sound on message send
43
+ * Note: Disabled by default for single-line composer (unlike MessageComposer)
44
+ * @default true
45
+ */
46
+ disableSoundForMessages: true,
47
+
48
+ /**
49
+ * Whether to disable mentions functionality
50
+ * @default false
51
+ */
52
+ disableMentions: false,
53
+
54
+ /**
55
+ * Whether to hide voice recording button
56
+ * @default false
57
+ */
58
+ hideVoiceRecording: false,
59
+
60
+ /**
61
+ * Image quality for camera captures (1-100)
62
+ * @default 20
63
+ */
64
+ imageQuality: 20,
65
+
66
+ /**
67
+ * Placeholder text localization key
68
+ * Uses localize('ENTER_YOUR_MESSAGE_HERE') at runtime
69
+ */
70
+ placeholderTextKey: 'ENTER_YOUR_MESSAGE_HERE',
71
+
72
+ /**
73
+ * Maximum number of lines before scrolling is enabled
74
+ * @default 5
75
+ */
76
+ maxLines: DEFAULT_MAX_LINES,
77
+
78
+ /**
79
+ * Minimum height for the input in pixels
80
+ * @default 40 (single line height)
81
+ */
82
+ minInputHeight: DEFAULT_MIN_HEIGHT,
83
+
84
+ /**
85
+ * Maximum height for the input in pixels (calculated from maxLines by default)
86
+ * Overrides maxLines if explicitly provided
87
+ * @default calculated from maxLines (5 * 24 + 12 * 2 = 144)
88
+ */
89
+ maxInputHeight: calculateMaxHeightFromLines(DEFAULT_MAX_LINES, DEFAULT_LINE_HEIGHT, DEFAULT_PADDING_VERTICAL),
90
+ };
91
+
92
+ /**
93
+ * Default style values for CometChatSingleLineMessageComposer
94
+ * These are applied using theme palette values at runtime
95
+ */
96
+ export const SingleLineMessageComposerStyleDefaults = {
97
+ /**
98
+ * Container border radius
99
+ * @default 8
100
+ */
101
+ borderRadius: 8,
102
+
103
+ /**
104
+ * Container border width
105
+ * @default 1
106
+ */
107
+ borderWidth: 1,
108
+
109
+ /**
110
+ * Input background color
111
+ * @default 'transparent'
112
+ */
113
+ inputBackgroundColor: 'transparent',
114
+
115
+ /**
116
+ * Minimum height for the text input (for auto-expand mode)
117
+ * @default 40
118
+ */
119
+ minHeight: DEFAULT_MIN_HEIGHT,
120
+
121
+ /**
122
+ * Maximum height for the text input (for auto-expand mode)
123
+ * @default calculated from maxLines (5 * 24 + 12 * 2 = 144)
124
+ */
125
+ maxHeight: calculateMaxHeightFromLines(DEFAULT_MAX_LINES, DEFAULT_LINE_HEIGHT, DEFAULT_PADDING_VERTICAL),
126
+
127
+ /**
128
+ * Line height for text (used in maxLines calculation)
129
+ * @default 24
130
+ */
131
+ lineHeight: DEFAULT_LINE_HEIGHT,
132
+ };
133
+
134
+ /**
135
+ * Theme-dependent style defaults (v5 pattern)
136
+ * These functions return the default values based on the current theme.
137
+ *
138
+ * V5 uses theme.color instead of theme.palette:
139
+ * - theme.color.background1 instead of theme.palette.getBackgroundColor()
140
+ * - theme.color.borderLight instead of theme.palette.getAccent100()
141
+ * - theme.color.textPrimary instead of theme.palette.getAccent()
142
+ * - theme.color.textTertiary instead of theme.palette.getAccent500()
143
+ * - theme.color.primary instead of theme.palette.getPrimary()
144
+ * - theme.color.iconTertiary instead of theme.palette.getAccent400()
145
+ * - theme.color.iconSecondary instead of theme.palette.getAccent500()
146
+ */
147
+ export const getThemeStyleDefaults = (theme: any): Partial<MessageComposerStyle> => ({
148
+ /**
149
+ * Container background color
150
+ * @default theme.color.background1
151
+ */
152
+ containerStyle: {
153
+ backgroundColor: theme.color?.background1,
154
+ } as ViewStyle,
155
+
156
+ /**
157
+ * Message input styles derived from theme
158
+ */
159
+ messageInputStyles: {
160
+ containerStyle: {
161
+ borderColor: theme.color?.borderLight,
162
+ } as ViewStyle,
163
+ textStyle: {
164
+ color: theme.color?.textPrimary,
165
+ } as TextStyle,
166
+ placeHolderTextColor: theme.color?.textTertiary,
167
+ dividerStyle: {
168
+ backgroundColor: theme.color?.borderLight,
169
+ } as ViewStyle,
170
+ },
171
+
172
+ /**
173
+ * Attachment icon style
174
+ */
175
+ attachmentIconStyle: {
176
+ tintColor: theme.color?.iconSecondary,
177
+ } as ImageStyle,
178
+ });
179
+
180
+ /**
181
+ * Layout defaults from styles.ts
182
+ * These are fixed pixel values used in the component layout
183
+ */
184
+ export const SingleLineMessageComposerLayoutDefaults = {
185
+ /**
186
+ * Outer wrapper padding
187
+ */
188
+ wrapper: {
189
+ paddingTop: 0,
190
+ paddingBottom: 8,
191
+ paddingHorizontal: 8,
192
+ },
193
+
194
+ /**
195
+ * Input row padding and gap
196
+ */
197
+ inputRow: {
198
+ padding: 12,
199
+ gap: 12,
200
+ },
201
+
202
+ /**
203
+ * Right icons container gap
204
+ */
205
+ rightIconsGap: 16,
206
+
207
+ /**
208
+ * Icon dimensions
209
+ */
210
+ iconSize: {
211
+ height: 24,
212
+ width: 24,
213
+ },
214
+
215
+ /**
216
+ * Text input font settings
217
+ */
218
+ textInput: {
219
+ fontSize: 14,
220
+ lineHeight: 16.8, // 14 * 1.2
221
+ },
222
+
223
+ /**
224
+ * Separator height
225
+ */
226
+ separatorHeight: 1,
227
+ };
228
+
229
+ /**
230
+ * Configuration interface for CometChatSingleLineMessageComposer
231
+ */
232
+ export interface SingleLineMessageComposerConfigurationInterface {
233
+ /**
234
+ * Position of auxiliary buttons
235
+ */
236
+ auxiliaryButtonsAlignment?: 'left' | 'right';
237
+
238
+ /**
239
+ * Whether to hide auxiliary buttons
240
+ */
241
+ hideAuxiliaryButton?: boolean;
242
+
243
+ /**
244
+ * Whether to hide all auxiliary buttons (alias for hideAuxiliaryButton)
245
+ */
246
+ hideAuxiliaryButtons?: boolean;
247
+
248
+ /**
249
+ * Whether to disable typing indicator events
250
+ */
251
+ disableTypingEvents?: boolean;
252
+
253
+ /**
254
+ * Whether to disable sound on message send
255
+ */
256
+ disableSoundForMessages?: boolean;
257
+
258
+ /**
259
+ * Whether to disable mentions functionality
260
+ */
261
+ disableMentions?: boolean;
262
+
263
+ /**
264
+ * Whether to hide voice recording button
265
+ */
266
+ hideVoiceRecording?: boolean;
267
+
268
+ /**
269
+ * Whether to hide the attachment button
270
+ */
271
+ hideAttachmentButton?: boolean;
272
+
273
+ /**
274
+ * Whether to hide the stickers button
275
+ */
276
+ hideStickersButton?: boolean;
277
+
278
+ /**
279
+ * Whether to hide the send button
280
+ */
281
+ hideSendButton?: boolean;
282
+
283
+ /**
284
+ * Image quality for camera captures (1-100)
285
+ */
286
+ imageQuality?: number;
287
+
288
+ /**
289
+ * Placeholder text for the input
290
+ */
291
+ placeHolderText?: string;
292
+
293
+ /**
294
+ * Initial text for the composer
295
+ */
296
+ initialComposertext?: string;
297
+
298
+ /**
299
+ * Custom styles for the composer
300
+ */
301
+ style?: SingleLineMessageComposerStyleInterface;
302
+
303
+ /**
304
+ * Custom icon for the send button
305
+ */
306
+ sendButtonIcon?: ImageSourcePropType;
307
+
308
+ /**
309
+ * Custom icon for attachments
310
+ */
311
+ attachmentIcon?: ImageSourcePropType;
312
+
313
+ /**
314
+ * Custom icon for voice recording
315
+ */
316
+ voiceRecordingIconURL?: string;
317
+
318
+ /**
319
+ * Maximum number of lines before scrolling is enabled.
320
+ * @default 5
321
+ */
322
+ maxLines?: number;
323
+
324
+ /**
325
+ * Minimum height for the input in pixels.
326
+ * @default 40 (single line height)
327
+ */
328
+ minInputHeight?: number;
329
+
330
+ /**
331
+ * Maximum height for the input in pixels.
332
+ * Overrides maxLines if both are provided.
333
+ */
334
+ maxInputHeight?: number;
335
+
336
+ /**
337
+ * Whether to disable the @all mention suggestion
338
+ */
339
+ disableMentionAll?: boolean;
340
+
341
+ /**
342
+ * Custom label for the group-wide mention
343
+ */
344
+ mentionAllLabel?: string;
345
+
346
+ /**
347
+ * Hide camera option in attachment menu
348
+ */
349
+ hideCameraOption?: boolean;
350
+
351
+ /**
352
+ * Hide image attachment option
353
+ */
354
+ hideImageAttachmentOption?: boolean;
355
+
356
+ /**
357
+ * Hide video attachment option
358
+ */
359
+ hideVideoAttachmentOption?: boolean;
360
+
361
+ /**
362
+ * Hide audio attachment option
363
+ */
364
+ hideAudioAttachmentOption?: boolean;
365
+
366
+ /**
367
+ * Hide file attachment option
368
+ */
369
+ hideFileAttachmentOption?: boolean;
370
+
371
+ /**
372
+ * Hide polls attachment option
373
+ */
374
+ hidePollsAttachmentOption?: boolean;
375
+
376
+ /**
377
+ * Hide collaborative document option
378
+ */
379
+ hideCollaborativeDocumentOption?: boolean;
380
+
381
+ /**
382
+ * Hide collaborative whiteboard option
383
+ */
384
+ hideCollaborativeWhiteboardOption?: boolean;
385
+ }
386
+
387
+ /**
388
+ * Configuration class for CometChatSingleLineMessageComposer
389
+ *
390
+ * Use this class to create a configuration object with custom defaults
391
+ * that can be passed to the component.
392
+ */
393
+ export class SingleLineMessageComposerConfiguration implements SingleLineMessageComposerConfigurationInterface {
394
+ /**
395
+ * Position of auxiliary buttons
396
+ */
397
+ auxiliaryButtonsAlignment?: 'left' | 'right';
398
+
399
+ /**
400
+ * Whether to hide auxiliary buttons
401
+ */
402
+ hideAuxiliaryButton?: boolean;
403
+
404
+ /**
405
+ * Whether to hide all auxiliary buttons (alias for hideAuxiliaryButton)
406
+ */
407
+ hideAuxiliaryButtons?: boolean;
408
+
409
+ /**
410
+ * Whether to disable typing indicator events
411
+ */
412
+ disableTypingEvents?: boolean;
413
+
414
+ /**
415
+ * Whether to disable sound on message send
416
+ */
417
+ disableSoundForMessages?: boolean;
418
+
419
+ /**
420
+ * Whether to disable mentions functionality
421
+ */
422
+ disableMentions?: boolean;
423
+
424
+ /**
425
+ * Whether to hide voice recording button
426
+ */
427
+ hideVoiceRecording?: boolean;
428
+
429
+ /**
430
+ * Whether to hide the attachment button
431
+ */
432
+ hideAttachmentButton?: boolean;
433
+
434
+ /**
435
+ * Whether to hide the stickers button
436
+ */
437
+ hideStickersButton?: boolean;
438
+
439
+ /**
440
+ * Whether to hide the send button
441
+ */
442
+ hideSendButton?: boolean;
443
+
444
+ /**
445
+ * Image quality for camera captures (1-100)
446
+ */
447
+ imageQuality?: number;
448
+
449
+ /**
450
+ * Placeholder text for the input
451
+ */
452
+ placeHolderText?: string;
453
+
454
+ /**
455
+ * Initial text for the composer
456
+ */
457
+ initialComposertext?: string;
458
+
459
+ /**
460
+ * Custom styles for the composer
461
+ */
462
+ style?: SingleLineMessageComposerStyleInterface;
463
+
464
+ /**
465
+ * Custom icon for the send button
466
+ */
467
+ sendButtonIcon?: ImageSourcePropType;
468
+
469
+ /**
470
+ * Custom icon for attachments
471
+ */
472
+ attachmentIcon?: ImageSourcePropType;
473
+
474
+ /**
475
+ * Custom icon for voice recording
476
+ */
477
+ voiceRecordingIconURL?: string;
478
+
479
+ /**
480
+ * Maximum number of lines before scrolling is enabled.
481
+ * @default 5
482
+ */
483
+ maxLines?: number;
484
+
485
+ /**
486
+ * Minimum height for the input in pixels.
487
+ * @default 40 (single line height)
488
+ */
489
+ minInputHeight?: number;
490
+
491
+ /**
492
+ * Maximum height for the input in pixels.
493
+ * Overrides maxLines if both are provided.
494
+ */
495
+ maxInputHeight?: number;
496
+
497
+ /**
498
+ * Whether to disable the @all mention suggestion
499
+ */
500
+ disableMentionAll?: boolean;
501
+
502
+ /**
503
+ * Custom label for the group-wide mention
504
+ */
505
+ mentionAllLabel?: string;
506
+
507
+ /**
508
+ * Hide camera option in attachment menu
509
+ */
510
+ hideCameraOption?: boolean;
511
+
512
+ /**
513
+ * Hide image attachment option
514
+ */
515
+ hideImageAttachmentOption?: boolean;
516
+
517
+ /**
518
+ * Hide video attachment option
519
+ */
520
+ hideVideoAttachmentOption?: boolean;
521
+
522
+ /**
523
+ * Hide audio attachment option
524
+ */
525
+ hideAudioAttachmentOption?: boolean;
526
+
527
+ /**
528
+ * Hide file attachment option
529
+ */
530
+ hideFileAttachmentOption?: boolean;
531
+
532
+ /**
533
+ * Hide polls attachment option
534
+ */
535
+ hidePollsAttachmentOption?: boolean;
536
+
537
+ /**
538
+ * Hide collaborative document option
539
+ */
540
+ hideCollaborativeDocumentOption?: boolean;
541
+
542
+ /**
543
+ * Hide collaborative whiteboard option
544
+ */
545
+ hideCollaborativeWhiteboardOption?: boolean;
546
+
547
+ constructor(config: Partial<SingleLineMessageComposerConfigurationInterface> = {}) {
548
+ Object.assign(this, config);
549
+ }
550
+
551
+ /**
552
+ * Create a configuration with all defaults explicitly set
553
+ */
554
+ static withDefaults(): SingleLineMessageComposerConfiguration {
555
+ return new SingleLineMessageComposerConfiguration({
556
+ auxiliaryButtonsAlignment: SingleLineMessageComposerDefaults.auxiliaryButtonsAlignment,
557
+ hideAuxiliaryButton: SingleLineMessageComposerDefaults.hideAuxiliaryButton,
558
+ disableTypingEvents: SingleLineMessageComposerDefaults.disableTypingEvents,
559
+ disableSoundForMessages: SingleLineMessageComposerDefaults.disableSoundForMessages,
560
+ disableMentions: SingleLineMessageComposerDefaults.disableMentions,
561
+ hideVoiceRecording: SingleLineMessageComposerDefaults.hideVoiceRecording,
562
+ imageQuality: SingleLineMessageComposerDefaults.imageQuality,
563
+ maxLines: SingleLineMessageComposerDefaults.maxLines,
564
+ minInputHeight: SingleLineMessageComposerDefaults.minInputHeight,
565
+ maxInputHeight: SingleLineMessageComposerDefaults.maxInputHeight,
566
+ });
567
+ }
568
+ }