react-native-gifted-chat 2.8.1 → 2.8.2-alpha.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 (195) hide show
  1. package/README.md +18 -17
  2. package/package.json +41 -35
  3. package/src/Bubble/index.tsx +15 -39
  4. package/src/Bubble/types.ts +5 -5
  5. package/src/Composer.tsx +19 -26
  6. package/src/Constant.ts +0 -1
  7. package/src/GiftedAvatar.tsx +29 -36
  8. package/src/GiftedChat/index.tsx +34 -65
  9. package/src/GiftedChat/types.ts +8 -53
  10. package/src/InputToolbar.tsx +25 -8
  11. package/src/LoadEarlier.tsx +19 -17
  12. package/src/MessageAudio.tsx +19 -7
  13. package/src/MessageContainer/components/DayAnimated/index.tsx +14 -9
  14. package/src/MessageContainer/components/Item/index.tsx +7 -1
  15. package/src/MessageContainer/index.tsx +104 -64
  16. package/src/MessageContainer/styles.ts +3 -2
  17. package/src/MessageContainer/types.ts +36 -14
  18. package/src/MessageImage.tsx +18 -6
  19. package/src/MessageText.tsx +88 -128
  20. package/src/MessageVideo.tsx +19 -7
  21. package/src/QuickReplies.tsx +17 -10
  22. package/src/Send.tsx +7 -1
  23. package/src/SystemMessage.tsx +12 -2
  24. package/src/Time.tsx +9 -2
  25. package/src/TypingIndicator/index.tsx +2 -1
  26. package/src/TypingIndicator/types.ts +3 -0
  27. package/src/__tests__/Actions.test.tsx +3 -4
  28. package/src/__tests__/Avatar.test.tsx +5 -6
  29. package/src/__tests__/Bubble.test.tsx +14 -19
  30. package/src/__tests__/Composer.test.tsx +3 -4
  31. package/src/__tests__/Day.test.tsx +5 -8
  32. package/src/__tests__/DayAnimated.test.tsx +52 -0
  33. package/src/__tests__/GiftedAvatar.test.tsx +3 -8
  34. package/src/__tests__/GiftedChat.test.tsx +37 -21
  35. package/src/__tests__/InputToolbar.test.tsx +3 -4
  36. package/src/__tests__/LoadEarlier.test.tsx +3 -4
  37. package/src/__tests__/Message.test.tsx +51 -58
  38. package/src/__tests__/MessageContainer.test.tsx +39 -5
  39. package/src/__tests__/MessageImage.test.tsx +12 -15
  40. package/src/__tests__/MessageText.test.tsx +7 -4
  41. package/src/__tests__/Send.test.tsx +7 -8
  42. package/src/__tests__/SystemMessage.test.tsx +12 -15
  43. package/src/__tests__/Time.test.tsx +5 -8
  44. package/src/__tests__/__snapshots__/Bubble.test.tsx.snap +48 -50
  45. package/src/__tests__/__snapshots__/Composer.test.tsx.snap +1 -2
  46. package/src/__tests__/__snapshots__/Constant.test.tsx.snap +0 -1
  47. package/src/__tests__/__snapshots__/DayAnimated.test.tsx.snap +5 -0
  48. package/src/__tests__/__snapshots__/GiftedChat.test.tsx.snap +25 -0
  49. package/src/__tests__/__snapshots__/InputToolbar.test.tsx.snap +2 -2
  50. package/src/__tests__/__snapshots__/Message.test.tsx.snap +146 -150
  51. package/src/__tests__/__snapshots__/MessageImage.test.tsx.snap +12 -10
  52. package/src/__tests__/__snapshots__/MessageText.test.tsx.snap +12 -8
  53. package/src/__tests__/__snapshots__/Send.test.tsx.snap +2 -0
  54. package/src/reanimatedCompat.ts +27 -0
  55. package/src/types.ts +4 -0
  56. package/src/utils.ts +77 -1
  57. package/lib/Actions.d.ts +0 -14
  58. package/lib/Actions.js +0 -57
  59. package/lib/Actions.js.map +0 -1
  60. package/lib/Avatar.d.ts +0 -18
  61. package/lib/Avatar.js +0 -93
  62. package/lib/Avatar.js.map +0 -1
  63. package/lib/Bubble/index.d.ts +0 -6
  64. package/lib/Bubble/index.js +0 -257
  65. package/lib/Bubble/index.js.map +0 -1
  66. package/lib/Bubble/styles.d.ts +0 -69
  67. package/lib/Bubble/styles.js +0 -72
  68. package/lib/Bubble/styles.js.map +0 -1
  69. package/lib/Bubble/types.d.ts +0 -47
  70. package/lib/Bubble/types.js +0 -2
  71. package/lib/Bubble/types.js.map +0 -1
  72. package/lib/Color.d.ts +0 -18
  73. package/lib/Color.js +0 -18
  74. package/lib/Color.js.map +0 -1
  75. package/lib/Composer.d.ts +0 -20
  76. package/lib/Composer.js +0 -60
  77. package/lib/Composer.js.map +0 -1
  78. package/lib/Constant.d.ts +0 -10
  79. package/lib/Constant.js +0 -17
  80. package/lib/Constant.js.map +0 -1
  81. package/lib/Day/index.d.ts +0 -4
  82. package/lib/Day/index.js +0 -39
  83. package/lib/Day/index.js.map +0 -1
  84. package/lib/Day/styles.d.ts +0 -20
  85. package/lib/Day/styles.js +0 -22
  86. package/lib/Day/styles.js.map +0 -1
  87. package/lib/Day/types.d.ts +0 -9
  88. package/lib/Day/types.js +0 -2
  89. package/lib/Day/types.js.map +0 -1
  90. package/lib/GiftedAvatar.d.ts +0 -11
  91. package/lib/GiftedAvatar.js +0 -104
  92. package/lib/GiftedAvatar.js.map +0 -1
  93. package/lib/GiftedChat/index.d.ts +0 -26
  94. package/lib/GiftedChat/index.js +0 -302
  95. package/lib/GiftedChat/index.js.map +0 -1
  96. package/lib/GiftedChat/styles.d.ts +0 -6
  97. package/lib/GiftedChat/styles.js +0 -7
  98. package/lib/GiftedChat/styles.js.map +0 -1
  99. package/lib/GiftedChat/types.d.ts +0 -117
  100. package/lib/GiftedChat/types.js +0 -2
  101. package/lib/GiftedChat/types.js.map +0 -1
  102. package/lib/GiftedChatContext.d.ts +0 -9
  103. package/lib/GiftedChatContext.js +0 -9
  104. package/lib/GiftedChatContext.js.map +0 -1
  105. package/lib/InputToolbar.d.ts +0 -23
  106. package/lib/InputToolbar.js +0 -56
  107. package/lib/InputToolbar.js.map +0 -1
  108. package/lib/LoadEarlier.d.ts +0 -14
  109. package/lib/LoadEarlier.js +0 -45
  110. package/lib/LoadEarlier.js.map +0 -1
  111. package/lib/Message/index.d.ts +0 -6
  112. package/lib/Message/index.js +0 -80
  113. package/lib/Message/index.js.map +0 -1
  114. package/lib/Message/styles.d.ts +0 -21
  115. package/lib/Message/styles.js +0 -22
  116. package/lib/Message/styles.js.map +0 -1
  117. package/lib/Message/types.d.ts +0 -22
  118. package/lib/Message/types.js +0 -2
  119. package/lib/Message/types.js.map +0 -1
  120. package/lib/MessageAudio.d.ts +0 -2
  121. package/lib/MessageAudio.js +0 -14
  122. package/lib/MessageAudio.js.map +0 -1
  123. package/lib/MessageContainer/components/DayAnimated/index.d.ts +0 -5
  124. package/lib/MessageContainer/components/DayAnimated/index.js +0 -85
  125. package/lib/MessageContainer/components/DayAnimated/index.js.map +0 -1
  126. package/lib/MessageContainer/components/DayAnimated/styles.d.ts +0 -11
  127. package/lib/MessageContainer/components/DayAnimated/styles.js +0 -12
  128. package/lib/MessageContainer/components/DayAnimated/styles.js.map +0 -1
  129. package/lib/MessageContainer/components/DayAnimated/types.d.ts +0 -17
  130. package/lib/MessageContainer/components/DayAnimated/types.js +0 -2
  131. package/lib/MessageContainer/components/DayAnimated/types.js.map +0 -1
  132. package/lib/MessageContainer/components/Item/index.d.ts +0 -23
  133. package/lib/MessageContainer/components/Item/index.js +0 -88
  134. package/lib/MessageContainer/components/Item/index.js.map +0 -1
  135. package/lib/MessageContainer/components/Item/types.d.ts +0 -17
  136. package/lib/MessageContainer/components/Item/types.js +0 -2
  137. package/lib/MessageContainer/components/Item/types.js.map +0 -1
  138. package/lib/MessageContainer/index.d.ts +0 -6
  139. package/lib/MessageContainer/index.js +0 -224
  140. package/lib/MessageContainer/index.js.map +0 -1
  141. package/lib/MessageContainer/styles.d.ts +0 -34
  142. package/lib/MessageContainer/styles.js +0 -31
  143. package/lib/MessageContainer/styles.js.map +0 -1
  144. package/lib/MessageContainer/types.d.ts +0 -54
  145. package/lib/MessageContainer/types.js +0 -2
  146. package/lib/MessageContainer/types.js.map +0 -1
  147. package/lib/MessageImage.d.ts +0 -13
  148. package/lib/MessageImage.js +0 -30
  149. package/lib/MessageImage.js.map +0 -1
  150. package/lib/MessageText.d.ts +0 -15
  151. package/lib/MessageText.js +0 -108
  152. package/lib/MessageText.js.map +0 -1
  153. package/lib/MessageVideo.d.ts +0 -2
  154. package/lib/MessageVideo.js +0 -14
  155. package/lib/MessageVideo.js.map +0 -1
  156. package/lib/QuickReplies.d.ts +0 -15
  157. package/lib/QuickReplies.js +0 -101
  158. package/lib/QuickReplies.js.map +0 -1
  159. package/lib/Send.d.ts +0 -15
  160. package/lib/Send.js +0 -34
  161. package/lib/Send.js.map +0 -1
  162. package/lib/SystemMessage.d.ts +0 -10
  163. package/lib/SystemMessage.js +0 -26
  164. package/lib/SystemMessage.js.map +0 -1
  165. package/lib/Time.d.ts +0 -11
  166. package/lib/Time.js +0 -56
  167. package/lib/Time.js.map +0 -1
  168. package/lib/TypingIndicator/index.d.ts +0 -5
  169. package/lib/TypingIndicator/index.js +0 -94
  170. package/lib/TypingIndicator/index.js.map +0 -1
  171. package/lib/TypingIndicator/styles.d.ts +0 -20
  172. package/lib/TypingIndicator/styles.js +0 -22
  173. package/lib/TypingIndicator/styles.js.map +0 -1
  174. package/lib/TypingIndicator/types.d.ts +0 -3
  175. package/lib/TypingIndicator/types.js +0 -2
  176. package/lib/TypingIndicator/types.js.map +0 -1
  177. package/lib/hooks/useUpdateLayoutEffect.d.ts +0 -8
  178. package/lib/hooks/useUpdateLayoutEffect.js +0 -17
  179. package/lib/hooks/useUpdateLayoutEffect.js.map +0 -1
  180. package/lib/index.d.ts +0 -4
  181. package/lib/index.js +0 -5
  182. package/lib/index.js.map +0 -1
  183. package/lib/logging.d.ts +0 -2
  184. package/lib/logging.js +0 -5
  185. package/lib/logging.js.map +0 -1
  186. package/lib/styles.d.ts +0 -10
  187. package/lib/styles.js +0 -11
  188. package/lib/styles.js.map +0 -1
  189. package/lib/types.d.ts +0 -67
  190. package/lib/types.js +0 -2
  191. package/lib/types.js.map +0 -1
  192. package/lib/utils.d.ts +0 -3
  193. package/lib/utils.js +0 -17
  194. package/lib/utils.js.map +0 -1
  195. package/src/__tests__/__snapshots__/MessageContainer.test.tsx.snap +0 -101
@@ -1,302 +0,0 @@
1
- import React, { createRef, useEffect, useMemo, useRef, useState, useCallback, } from 'react';
2
- import { ActionSheetProvider, } from '@expo/react-native-action-sheet';
3
- import dayjs from 'dayjs';
4
- import localizedFormat from 'dayjs/plugin/localizedFormat';
5
- import { Platform, View, } from 'react-native';
6
- import { Actions } from '../Actions';
7
- import { Avatar } from '../Avatar';
8
- import Bubble from '../Bubble';
9
- import { Composer } from '../Composer';
10
- import { MAX_COMPOSER_HEIGHT, MIN_COMPOSER_HEIGHT, TEST_ID } from '../Constant';
11
- import { Day } from '../Day';
12
- import { GiftedAvatar } from '../GiftedAvatar';
13
- import { GiftedChatContext } from '../GiftedChatContext';
14
- import { InputToolbar } from '../InputToolbar';
15
- import { LoadEarlier } from '../LoadEarlier';
16
- import Message from '../Message';
17
- import MessageContainer from '../MessageContainer';
18
- import { MessageImage } from '../MessageImage';
19
- import { MessageText } from '../MessageText';
20
- import { Send } from '../Send';
21
- import { SystemMessage } from '../SystemMessage';
22
- import { Time } from '../Time';
23
- import * as utils from '../utils';
24
- import Animated, { useAnimatedStyle, useAnimatedReaction, useSharedValue, withTiming, runOnJS, } from 'react-native-reanimated';
25
- import { KeyboardProvider, useReanimatedKeyboardAnimation } from 'react-native-keyboard-controller';
26
- import stylesCommon from '../styles';
27
- import styles from './styles';
28
- dayjs.extend(localizedFormat);
29
- function GiftedChat(props) {
30
- const { messages = [], initialText = '', isTyping,
31
- // "random" function from here: https://stackoverflow.com/a/8084248/3452513
32
- // we do not use uuid since it would add extra native dependency (https://www.npmjs.com/package/react-native-get-random-values)
33
- // lib's user can decide which algorithm to use and pass it as a prop
34
- messageIdGenerator = () => (Math.random() + 1).toString(36).substring(7), user = {}, onSend, locale = 'en', renderLoading, actionSheet = null, textInputProps, renderChatFooter = null, renderInputToolbar = null, bottomOffset = 0, focusOnInputWhenOpeningKeyboard = true, keyboardShouldPersistTaps = Platform.select({
35
- ios: 'never',
36
- android: 'always',
37
- default: 'never',
38
- }), onInputTextChanged = null, maxInputLength = null, inverted = true, minComposerHeight = MIN_COMPOSER_HEIGHT, maxComposerHeight = MAX_COMPOSER_HEIGHT, isKeyboardInternallyHandled = true, } = props;
39
- const actionSheetRef = useRef(null);
40
- const messageContainerRef = useMemo(() => props.messageContainerRef || createRef(), [props.messageContainerRef]);
41
- const textInputRef = useMemo(() => props.textInputRef || createRef(), [props.textInputRef]);
42
- const isTextInputWasFocused = useRef(false);
43
- const [isInitialized, setIsInitialized] = useState(false);
44
- const [composerHeight, setComposerHeight] = useState(minComposerHeight);
45
- const [text, setText] = useState(() => props.text || '');
46
- const [isTypingDisabled, setIsTypingDisabled] = useState(false);
47
- const keyboard = useReanimatedKeyboardAnimation();
48
- const trackingKeyboardMovement = useSharedValue(false);
49
- const debounceEnableTypingTimeoutId = useRef(undefined);
50
- const keyboardOffsetBottom = useSharedValue(0);
51
- const contentStyleAnim = useAnimatedStyle(() => ({
52
- transform: [
53
- { translateY: keyboard.height.value - keyboardOffsetBottom.value },
54
- ],
55
- }), [keyboard, keyboardOffsetBottom]);
56
- const getTextFromProp = useCallback((fallback) => {
57
- if (props.text === undefined)
58
- return fallback;
59
- return props.text;
60
- }, [props.text]);
61
- /**
62
- * Store text input focus status when keyboard hide to retrieve
63
- * it afterwards if needed.
64
- * `onKeyboardWillHide` may be called twice in sequence so we
65
- * make a guard condition (eg. showing image picker)
66
- */
67
- const handleTextInputFocusWhenKeyboardHide = useCallback(() => {
68
- if (!isTextInputWasFocused.current)
69
- isTextInputWasFocused.current =
70
- textInputRef.current?.isFocused() || false;
71
- }, [textInputRef]);
72
- /**
73
- * Refocus the text input only if it was focused before showing keyboard.
74
- * This is needed in some cases (eg. showing image picker).
75
- */
76
- const handleTextInputFocusWhenKeyboardShow = useCallback(() => {
77
- if (textInputRef.current &&
78
- isTextInputWasFocused.current &&
79
- !textInputRef.current.isFocused())
80
- textInputRef.current.focus();
81
- // Reset the indicator since the keyboard is shown
82
- isTextInputWasFocused.current = false;
83
- }, [textInputRef]);
84
- const disableTyping = useCallback(() => {
85
- clearTimeout(debounceEnableTypingTimeoutId.current);
86
- setIsTypingDisabled(true);
87
- }, []);
88
- const enableTyping = useCallback(() => {
89
- clearTimeout(debounceEnableTypingTimeoutId.current);
90
- setIsTypingDisabled(false);
91
- }, []);
92
- const debounceEnableTyping = useCallback(() => {
93
- clearTimeout(debounceEnableTypingTimeoutId.current);
94
- debounceEnableTypingTimeoutId.current = setTimeout(() => {
95
- enableTyping();
96
- }, 50);
97
- }, [enableTyping]);
98
- const scrollToBottom = useCallback((isAnimated = true) => {
99
- if (!messageContainerRef?.current)
100
- return;
101
- if (inverted) {
102
- messageContainerRef.current.scrollToOffset({
103
- offset: 0,
104
- animated: isAnimated,
105
- });
106
- return;
107
- }
108
- messageContainerRef.current.scrollToEnd({ animated: isAnimated });
109
- }, [inverted, messageContainerRef]);
110
- const renderMessages = useMemo(() => {
111
- if (!isInitialized)
112
- return null;
113
- const { messagesContainerStyle, ...messagesContainerProps } = props;
114
- return (<View style={[stylesCommon.fill, messagesContainerStyle]}>
115
- <MessageContainer {...messagesContainerProps} invertibleScrollViewProps={{
116
- inverted,
117
- keyboardShouldPersistTaps,
118
- }} messages={messages} forwardRef={messageContainerRef} isTyping={isTyping}/>
119
- {renderChatFooter?.()}
120
- </View>);
121
- }, [
122
- isInitialized,
123
- isTyping,
124
- messages,
125
- props,
126
- inverted,
127
- keyboardShouldPersistTaps,
128
- messageContainerRef,
129
- renderChatFooter,
130
- ]);
131
- const notifyInputTextReset = useCallback(() => {
132
- onInputTextChanged?.('');
133
- }, [onInputTextChanged]);
134
- const resetInputToolbar = useCallback(() => {
135
- textInputRef.current?.clear();
136
- notifyInputTextReset();
137
- setComposerHeight(minComposerHeight);
138
- setText(getTextFromProp(''));
139
- enableTyping();
140
- }, [
141
- minComposerHeight,
142
- getTextFromProp,
143
- textInputRef,
144
- notifyInputTextReset,
145
- enableTyping,
146
- ]);
147
- const _onSend = useCallback((messages = [], shouldResetInputToolbar = false) => {
148
- if (!Array.isArray(messages))
149
- messages = [messages];
150
- const newMessages = messages.map(message => {
151
- return {
152
- ...message,
153
- user: user,
154
- createdAt: new Date(),
155
- _id: messageIdGenerator?.(),
156
- };
157
- });
158
- if (shouldResetInputToolbar === true) {
159
- disableTyping();
160
- resetInputToolbar();
161
- }
162
- onSend?.(newMessages);
163
- setTimeout(() => scrollToBottom(), 10);
164
- }, [messageIdGenerator, onSend, user, resetInputToolbar, disableTyping, scrollToBottom]);
165
- const onInputSizeChanged = useCallback((size) => {
166
- const newComposerHeight = Math.max(minComposerHeight, Math.min(maxComposerHeight, size.height));
167
- setComposerHeight(newComposerHeight);
168
- }, [maxComposerHeight, minComposerHeight]);
169
- const _onInputTextChanged = useCallback((_text) => {
170
- if (isTypingDisabled)
171
- return;
172
- onInputTextChanged?.(_text);
173
- // Only set state if it's not being overridden by a prop.
174
- if (props.text === undefined)
175
- setText(_text);
176
- }, [onInputTextChanged, isTypingDisabled, props.text]);
177
- const onInitialLayoutViewLayout = useCallback((e) => {
178
- if (isInitialized)
179
- return;
180
- const { layout } = e.nativeEvent;
181
- if (layout.height <= 0)
182
- return;
183
- notifyInputTextReset();
184
- setIsInitialized(true);
185
- setComposerHeight(minComposerHeight);
186
- setText(getTextFromProp(initialText));
187
- }, [isInitialized, initialText, minComposerHeight, notifyInputTextReset, getTextFromProp]);
188
- const inputToolbarFragment = useMemo(() => {
189
- if (!isInitialized)
190
- return null;
191
- const inputToolbarProps = {
192
- ...props,
193
- text: getTextFromProp(text),
194
- composerHeight: Math.max(minComposerHeight, composerHeight),
195
- onSend: _onSend,
196
- onInputSizeChanged,
197
- onTextChanged: _onInputTextChanged,
198
- textInputProps: {
199
- ...textInputProps,
200
- ref: textInputRef,
201
- maxLength: isTypingDisabled ? 0 : maxInputLength,
202
- },
203
- };
204
- if (renderInputToolbar)
205
- return renderInputToolbar(inputToolbarProps);
206
- return <InputToolbar {...inputToolbarProps}/>;
207
- }, [
208
- isInitialized,
209
- _onSend,
210
- getTextFromProp,
211
- maxInputLength,
212
- minComposerHeight,
213
- onInputSizeChanged,
214
- props,
215
- text,
216
- renderInputToolbar,
217
- composerHeight,
218
- isTypingDisabled,
219
- textInputRef,
220
- textInputProps,
221
- _onInputTextChanged,
222
- ]);
223
- const contextValues = useMemo(() => ({
224
- actionSheet: actionSheet ||
225
- (() => ({
226
- showActionSheetWithOptions: actionSheetRef.current.showActionSheetWithOptions,
227
- })),
228
- getLocale: () => locale,
229
- }), [actionSheet, locale]);
230
- useEffect(() => {
231
- if (props.text != null)
232
- setText(props.text);
233
- }, [props.text]);
234
- useAnimatedReaction(() => -keyboard.height.value, (value, prevValue) => {
235
- if (prevValue !== null && value !== prevValue) {
236
- const isKeyboardMovingUp = value > prevValue;
237
- if (isKeyboardMovingUp !== trackingKeyboardMovement.value) {
238
- trackingKeyboardMovement.value = isKeyboardMovingUp;
239
- keyboardOffsetBottom.value = withTiming(isKeyboardMovingUp ? bottomOffset : 0, {
240
- // If `bottomOffset` exists, we change the duration to a smaller value to fix the delay in the keyboard animation speed
241
- duration: bottomOffset ? 150 : 400,
242
- });
243
- if (focusOnInputWhenOpeningKeyboard)
244
- if (isKeyboardMovingUp)
245
- runOnJS(handleTextInputFocusWhenKeyboardShow)();
246
- else
247
- runOnJS(handleTextInputFocusWhenKeyboardHide)();
248
- if (value === 0) {
249
- runOnJS(enableTyping)();
250
- }
251
- else {
252
- runOnJS(disableTyping)();
253
- runOnJS(debounceEnableTyping)();
254
- }
255
- }
256
- }
257
- }, [
258
- keyboard,
259
- trackingKeyboardMovement,
260
- focusOnInputWhenOpeningKeyboard,
261
- handleTextInputFocusWhenKeyboardHide,
262
- handleTextInputFocusWhenKeyboardShow,
263
- enableTyping,
264
- disableTyping,
265
- debounceEnableTyping,
266
- bottomOffset,
267
- ]);
268
- return (<GiftedChatContext.Provider value={contextValues}>
269
- <ActionSheetProvider ref={actionSheetRef}>
270
- <View testID={TEST_ID.WRAPPER} style={[stylesCommon.fill, styles.contentContainer]} onLayout={onInitialLayoutViewLayout}>
271
- {isInitialized
272
- ? (<Animated.View style={[stylesCommon.fill, isKeyboardInternallyHandled && contentStyleAnim]}>
273
- {renderMessages}
274
- {inputToolbarFragment}
275
- </Animated.View>)
276
- : (renderLoading?.())}
277
- </View>
278
- </ActionSheetProvider>
279
- </GiftedChatContext.Provider>);
280
- }
281
- function GiftedChatWrapper(props) {
282
- return (<KeyboardProvider>
283
- <GiftedChat {...props}/>
284
- </KeyboardProvider>);
285
- }
286
- GiftedChatWrapper.append = (currentMessages = [], messages, inverted = true) => {
287
- if (!Array.isArray(messages))
288
- messages = [messages];
289
- return inverted
290
- ? messages.concat(currentMessages)
291
- : currentMessages.concat(messages);
292
- };
293
- GiftedChatWrapper.prepend = (currentMessages = [], messages, inverted = true) => {
294
- if (!Array.isArray(messages))
295
- messages = [messages];
296
- return inverted
297
- ? currentMessages.concat(messages)
298
- : messages.concat(currentMessages);
299
- };
300
- export * from '../types';
301
- export { GiftedChatWrapper as GiftedChat, Actions, Avatar, Bubble, SystemMessage, MessageImage, MessageText, Composer, Day, InputToolbar, LoadEarlier, Message, MessageContainer, Send, Time, GiftedAvatar, utils };
302
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GiftedChat/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,SAAS,EACT,SAAS,EACT,OAAO,EACP,MAAM,EACN,QAAQ,EACR,WAAW,GAEZ,MAAM,OAAO,CAAA;AACd,OAAO,EACL,mBAAmB,GAEpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,eAAe,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EACL,QAAQ,EAER,IAAI,GAEL,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,mBAAmB,EAAE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yleSheet } from 'react-native';
2
- export default StyleSheet.create({
3
- contentContainer: {
4
- overflow: 'hidden',
5
- },
6
- });
7
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/GiftedChat/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,eAAe,UAAU,CAAC,MAAM,CAAC;IAC/B,gBAAgB,EAAE;QAChB,QAAQ,EAAE,QAAQ;KACnB;CACF,CAAC,CAAA"}
@@ -1,117 +0,0 @@
1
- import React, { RefObject } from 'react';
2
- import { ActionSheetOptions } from '@expo/react-native-action-sheet';
3
- import { TextInput, StyleProp, TextStyle, ViewStyle } from 'react-native';
4
- import { LightboxProps } from 'react-native-lightbox-v2';
5
- import { ActionsProps } from '../Actions';
6
- import { AvatarProps } from '../Avatar';
7
- import { ComposerProps } from '../Composer';
8
- import { DayProps } from '../Day';
9
- import { InputToolbarProps } from '../InputToolbar';
10
- import { LoadEarlierProps } from '../LoadEarlier';
11
- import { MessageProps } from '../Message';
12
- import { MessageImageProps } from '../MessageImage';
13
- import { MessageTextProps } from '../MessageText';
14
- import { IMessage, LeftRightStyle, MessageAudioProps, MessageVideoProps, Reply, User } from '../types';
15
- import { QuickRepliesProps } from '../QuickReplies';
16
- import { SendProps } from '../Send';
17
- import { SystemMessageProps } from '../SystemMessage';
18
- import { TimeProps } from '../Time';
19
- import { AnimatedList, ListViewProps, MessageContainerProps } from '../MessageContainer';
20
- import { BubbleProps } from '../Bubble';
21
- export interface GiftedChatProps<TMessage extends IMessage> extends Partial<MessageContainerProps<TMessage>> {
22
- messageContainerRef?: RefObject<AnimatedList<TMessage>>;
23
- textInputRef?: RefObject<TextInput>;
24
- messages?: TMessage[];
25
- isTyping?: boolean;
26
- renderUsernameOnMessage?: boolean;
27
- messagesContainerStyle?: StyleProp<ViewStyle>;
28
- text?: string;
29
- alignTop?: boolean;
30
- isScrollToBottomEnabled?: boolean;
31
- scrollToBottomStyle?: StyleProp<ViewStyle>;
32
- initialText?: string;
33
- placeholder?: string;
34
- disableComposer?: boolean;
35
- user?: User;
36
- locale?: string;
37
- timeFormat?: string;
38
- dateFormat?: string;
39
- dateFormatCalendar?: object;
40
- loadEarlier?: boolean;
41
- isLoadingEarlier?: boolean;
42
- isKeyboardInternallyHandled?: boolean;
43
- showUserAvatar?: boolean;
44
- showAvatarForEveryMessage?: boolean;
45
- renderAvatarOnTop?: boolean;
46
- inverted?: boolean;
47
- imageProps?: MessageImageProps<TMessage>;
48
- lightboxProps?: LightboxProps;
49
- bottomOffset?: number;
50
- focusOnInputWhenOpeningKeyboard?: boolean;
51
- minInputToolbarHeight?: number;
52
- listViewProps?: ListViewProps;
53
- textInputProps?: object;
54
- keyboardShouldPersistTaps?: 'always' | 'never' | 'handled';
55
- maxInputLength?: number;
56
- alwaysShowSend?: boolean;
57
- imageStyle?: StyleProp<ViewStyle>;
58
- extraData?: object;
59
- minComposerHeight?: number;
60
- maxComposerHeight?: number;
61
- options?: {
62
- [key: string]: () => void;
63
- };
64
- optionTintColor?: string;
65
- quickReplyStyle?: StyleProp<ViewStyle>;
66
- quickReplyTextStyle?: StyleProp<TextStyle>;
67
- quickReplyContainerStyle?: StyleProp<ViewStyle>;
68
- isCustomViewBottom?: boolean;
69
- infiniteScroll?: boolean;
70
- timeTextStyle?: LeftRightStyle<TextStyle>;
71
- actionSheet?(): {
72
- showActionSheetWithOptions: (options: ActionSheetOptions, callback: (buttonIndex: number) => void | Promise<void>) => void;
73
- };
74
- onPressAvatar?(user: User): void;
75
- onLongPressAvatar?(user: User): void;
76
- messageIdGenerator?(message?: TMessage): string;
77
- onSend?(messages: TMessage[]): void;
78
- onLoadEarlier?(): void;
79
- renderLoading?(): React.ReactNode;
80
- renderLoadEarlier?(props: LoadEarlierProps): React.ReactNode;
81
- renderAvatar?: null | ((props: AvatarProps<TMessage>) => React.ReactNode);
82
- renderBubble?(props: BubbleProps<TMessage>): React.ReactNode;
83
- renderSystemMessage?(props: SystemMessageProps<TMessage>): React.ReactNode;
84
- onPress?(context: unknown, message: TMessage): void;
85
- onLongPress?(context: unknown, message: TMessage): void;
86
- renderUsername?(user: User): React.ReactNode;
87
- renderMessage?(message: MessageProps<TMessage>): React.ReactElement;
88
- renderMessageText?(messageText: MessageTextProps<TMessage>): React.ReactNode;
89
- renderMessageImage?(props: MessageImageProps<TMessage>): React.ReactNode;
90
- renderMessageVideo?(props: MessageVideoProps<TMessage>): React.ReactNode;
91
- renderMessageAudio?(props: MessageAudioProps<TMessage>): React.ReactNode;
92
- renderCustomView?(props: BubbleProps<TMessage>): React.ReactNode;
93
- renderDay?(props: DayProps): React.ReactNode;
94
- renderTime?(props: TimeProps<TMessage>): React.ReactNode;
95
- renderFooter?(props: MessageContainerProps<TMessage>): React.ReactNode;
96
- renderChatEmpty?(): React.ReactNode;
97
- renderChatFooter?(): React.ReactNode;
98
- renderInputToolbar?(props: InputToolbarProps<TMessage>): React.ReactNode;
99
- renderComposer?(props: ComposerProps): React.ReactNode;
100
- renderActions?(props: ActionsProps): React.ReactNode;
101
- renderSend?(props: SendProps<TMessage>): React.ReactNode;
102
- renderAccessory?(props: InputToolbarProps<TMessage>): React.ReactNode;
103
- onPressActionButton?(): void;
104
- onInputTextChanged?(text: string): void;
105
- parsePatterns?: (linkStyle?: TextStyle) => {
106
- type?: string;
107
- pattern?: RegExp;
108
- style?: StyleProp<TextStyle> | object;
109
- onPress?: unknown;
110
- renderText?: unknown;
111
- }[];
112
- onQuickReply?(replies: Reply[]): void;
113
- renderQuickReplies?(quickReplies: QuickRepliesProps<TMessage>): React.ReactNode;
114
- renderQuickReplySend?(): React.ReactNode;
115
- scrollToBottomComponent?(): React.ReactNode;
116
- shouldUpdateMessage?(props: MessageProps<TMessage>, nextProps: MessageProps<TMessage>): boolean;
117
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/GiftedChat/types.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- import { ActionSheetOptions } from '@expo/react-native-action-sheet';
2
- export interface IGiftedChatContext {
3
- actionSheet(): {
4
- showActionSheetWithOptions: (options: ActionSheetOptions, callback: (buttonIndex?: number) => void | Promise<void>) => void;
5
- };
6
- getLocale(): string;
7
- }
8
- export declare const GiftedChatContext: import("react").Context<IGiftedChatContext>;
9
- export declare const useChatContext: () => IGiftedChatContext;
@@ -1,9 +0,0 @@
1
- import { createContext, useContext } from 'react';
2
- export const GiftedChatContext = createContext({
3
- getLocale: () => 'en',
4
- actionSheet: () => ({
5
- showActionSheetWithOptions: () => { },
6
- }),
7
- });
8
- export const useChatContext = () => useContext(GiftedChatContext);
9
- //# sourceMappingURL=GiftedChatContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GiftedChatContext.js","sourceRoot":"","sources":["../src/GiftedChatContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAejD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAqB;IACjE,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI;IACrB,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC;QAClB,0BAA0B,EAAE,GAAG,EAAE,GAAE,CAAC;KACrC,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAA"}
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { StyleProp, ViewStyle } from 'react-native';
3
- import { ComposerProps } from './Composer';
4
- import { SendProps } from './Send';
5
- import { ActionsProps } from './Actions';
6
- import { IMessage } from './types';
7
- export interface InputToolbarProps<TMessage extends IMessage> {
8
- options?: {
9
- [key: string]: () => void;
10
- };
11
- optionTintColor?: string;
12
- containerStyle?: StyleProp<ViewStyle>;
13
- primaryStyle?: StyleProp<ViewStyle>;
14
- accessoryStyle?: StyleProp<ViewStyle>;
15
- renderAccessory?(props: InputToolbarProps<TMessage>): React.ReactNode;
16
- renderActions?(props: ActionsProps): React.ReactNode;
17
- renderSend?(props: SendProps<TMessage>): React.ReactNode;
18
- renderComposer?(props: ComposerProps): React.ReactNode;
19
- onPressActionButton?(): void;
20
- icon?: () => React.ReactNode;
21
- wrapperStyle?: StyleProp<ViewStyle>;
22
- }
23
- export declare function InputToolbar<TMessage extends IMessage = IMessage>(props: InputToolbarProps<TMessage>): React.JSX.Element;
@@ -1,56 +0,0 @@
1
- import React, { useMemo } from 'react';
2
- import { StyleSheet, View } from 'react-native';
3
- import { Composer } from './Composer';
4
- import { Send } from './Send';
5
- import { Actions } from './Actions';
6
- import Color from './Color';
7
- export function InputToolbar(props) {
8
- const { renderActions, onPressActionButton, renderComposer, renderSend, renderAccessory, options, optionTintColor, icon, wrapperStyle, containerStyle, } = props;
9
- const actionsFragment = useMemo(() => {
10
- const props = {
11
- onPressActionButton,
12
- options,
13
- optionTintColor,
14
- icon,
15
- wrapperStyle,
16
- containerStyle,
17
- };
18
- return (renderActions?.(props) || (onPressActionButton && <Actions {...props}/>));
19
- }, [
20
- renderActions,
21
- onPressActionButton,
22
- options,
23
- optionTintColor,
24
- icon,
25
- wrapperStyle,
26
- containerStyle,
27
- ]);
28
- const composerFragment = useMemo(() => {
29
- return (renderComposer?.(props) || (<Composer {...props}/>));
30
- }, [renderComposer, props]);
31
- return (<View style={[styles.container, containerStyle]}>
32
- <View style={[styles.primary, props.primaryStyle]}>
33
- {actionsFragment}
34
- {composerFragment}
35
- {renderSend?.(props) || <Send {...props}/>}
36
- </View>
37
- {renderAccessory && (<View style={[styles.accessory, props.accessoryStyle]}>
38
- {renderAccessory(props)}
39
- </View>)}
40
- </View>);
41
- }
42
- const styles = StyleSheet.create({
43
- container: {
44
- borderTopWidth: StyleSheet.hairlineWidth,
45
- borderTopColor: Color.defaultColor,
46
- backgroundColor: Color.white,
47
- },
48
- primary: {
49
- flexDirection: 'row',
50
- alignItems: 'flex-end',
51
- },
52
- accessory: {
53
- height: 44,
54
- },
55
- });
56
- //# sourceMappingURL=InputToolbar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InputToolbar.js","sourceRoot":"","sources":["../src/InputToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAwB,MAAM,cAAc,CAAA;AAErE,OAAO,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAA;AACpD,OAAO,EAAE,IAAI,EAAa,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,OAAO,EAAgB,MAAM,WAAW,CAAA;AACjD,OAAO,KAAK,MAAM,SAAS,CAAA;AAkB3B,MAAM,UAAU,YAAY,CAC1B,KAAkC;IAElC,MAAM,EACJ,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,eAAe,EACf,OAAO,EACP,eAAe,EACf,IAAI,EACJ,YAAY,EACZ,cAAc,GACf,GAAG,KAAK,CAAA;IAET,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,EAAE;QACnC,MAAM,KAAK,GAAG;YACZ,mBAAmB;YACnB,OAAO;YACP,eAAe;YACf,IAAI;YACJ,YAAY;YACZ,cAAc;SACf,CAAA;QAED,OAAO,CACL,aAAa,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC,CAC1E,CAAA;IACH,CAAC,EAAE;QACD,aAAa;QACb,mBAAmB;QACnB,OAAO;QACP,eAAe;QACf,IAAI;QACJ,YAAY;QACZ,cAAc;KACf,CAAC,CAAA;IAEF,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,EAAE;QACpC,OAAO,CACL,cAAc,EAAE,CAAC,KAAsB,CAAC,IAAI,CAC1C,CAAC,QAAQ,CAAC,IAAK,KAAuB,CAAC,EAAG,CAC3C,CACF,CAAA;IACH,CAAC,EAAE,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC,CAAA;IAE3B,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAC9C;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAChD;QAAA,CAAC,eAAe,CAChB;QAAA,CAAC,gBAAgB,CACjB;QAAA,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,EAAG,CAC7C;MAAA,EAAE,IAAI,CACN;MAAA,CAAC,eAAe,IAAI,CAClB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,CACpD;UAAA,CAAC,eAAe,CAAC,KAAK,CAAC,CACzB;QAAA,EAAE,IAAI,CAAC,CACR,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAA;AACH,CAAC;AAED,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,cAAc,EAAE,UAAU,CAAC,aAAa;QACxC,cAAc,EAAE,KAAK,CAAC,YAAY;QAClC,eAAe,EAAE,KAAK,CAAC,KAAK;KAC7B;IACD,OAAO,EAAE;QACP,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,UAAU;KACvB;IACD,SAAS,EAAE;QACT,MAAM,EAAE,EAAE;KACX;CACF,CAAC,CAAA"}
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { StyleProp, ViewStyle, TextStyle } from 'react-native';
3
- export interface LoadEarlierProps {
4
- isLoadingEarlier?: boolean;
5
- label?: string;
6
- containerStyle?: StyleProp<ViewStyle>;
7
- wrapperStyle?: StyleProp<ViewStyle>;
8
- textStyle?: StyleProp<TextStyle>;
9
- activityIndicatorStyle?: StyleProp<ViewStyle>;
10
- activityIndicatorColor?: string;
11
- activityIndicatorSize?: number | 'small' | 'large';
12
- onLoadEarlier?(): void;
13
- }
14
- export declare function LoadEarlier({ isLoadingEarlier, onLoadEarlier, label, containerStyle, wrapperStyle, textStyle, activityIndicatorColor, activityIndicatorSize, activityIndicatorStyle, }: LoadEarlierProps): React.ReactElement;
@@ -1,45 +0,0 @@
1
- import React from 'react';
2
- import { ActivityIndicator, Platform, StyleSheet, Text, TouchableOpacity, View, } from 'react-native';
3
- import Color from './Color';
4
- import stylesCommon from './styles';
5
- const styles = StyleSheet.create({
6
- container: {
7
- alignItems: 'center',
8
- marginTop: 5,
9
- marginBottom: 10,
10
- },
11
- wrapper: {
12
- backgroundColor: Color.defaultColor,
13
- borderRadius: 15,
14
- height: 30,
15
- paddingLeft: 10,
16
- paddingRight: 10,
17
- },
18
- text: {
19
- backgroundColor: Color.backgroundTransparent,
20
- color: Color.white,
21
- fontSize: 12,
22
- },
23
- activityIndicator: {
24
- marginTop: Platform.select({
25
- ios: -14,
26
- android: -16,
27
- default: -15,
28
- }),
29
- },
30
- });
31
- export function LoadEarlier({ isLoadingEarlier = false, onLoadEarlier = () => { }, label = 'Load earlier messages', containerStyle, wrapperStyle, textStyle, activityIndicatorColor = 'white', activityIndicatorSize = 'small', activityIndicatorStyle, }) {
32
- return (<TouchableOpacity style={[styles.container, containerStyle]} onPress={onLoadEarlier} disabled={isLoadingEarlier} accessibilityRole='button'>
33
- <View style={[stylesCommon.centerItems, styles.wrapper, wrapperStyle]}>
34
- {isLoadingEarlier
35
- ? (<View>
36
- <Text style={[styles.text, textStyle, { opacity: 0 }]}>
37
- {label}
38
- </Text>
39
- <ActivityIndicator color={activityIndicatorColor} size={activityIndicatorSize} style={[styles.activityIndicator, activityIndicatorStyle]}/>
40
- </View>)
41
- : (<Text style={[styles.text, textStyle]}>{label}</Text>)}
42
- </View>
43
- </TouchableOpacity>);
44
- }
45
- //# sourceMappingURL=LoadEarlier.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LoadEarlier.js","sourceRoot":"","sources":["../src/LoadEarlier.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,gBAAgB,EAChB,IAAI,GAIL,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,YAAY,MAAM,UAAU,CAAA;AAEnC,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,UAAU,EAAE,QAAQ;QACpB,SAAS,EAAE,CAAC;QACZ,YAAY,EAAE,EAAE;KACjB;IACD,OAAO,EAAE;QACP,eAAe,EAAE,KAAK,CAAC,YAAY;QACnC,YAAY,EAAE,EAAE;QAChB,MAAM,EAAE,EAAE;QACV,WAAW,EAAE,EAAE;QACf,YAAY,EAAE,EAAE;KACjB;IACD,IAAI,EAAE;QACJ,eAAe,EAAE,KAAK,CAAC,qBAAqB;QAC5C,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,QAAQ,EAAE,EAAE;KACb;IACD,iBAAiB,EAAE;QACjB,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC;YACzB,GAAG,EAAE,CAAC,EAAE;YACR,OAAO,EAAE,CAAC,EAAE;YACZ,OAAO,EAAE,CAAC,EAAE;SACb,CAAC;KACH;CACF,CAAC,CAAA;AAcF,MAAM,UAAU,WAAW,CAAE,EAC3B,gBAAgB,GAAG,KAAK,EACxB,aAAa,GAAG,GAAG,EAAE,GAAE,CAAC,EACxB,KAAK,GAAG,uBAAuB,EAC/B,cAAc,EACd,YAAY,EACZ,SAAS,EACT,sBAAsB,GAAG,OAAO,EAChC,qBAAqB,GAAG,OAAO,EAC/B,sBAAsB,GACL;IACjB,OAAO,CACL,CAAC,gBAAgB,CACf,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAC1C,OAAO,CAAC,CAAC,aAAa,CAAC,CACvB,QAAQ,CAAC,CAAC,gBAAgB,CAAC,CAC3B,iBAAiB,CAAC,QAAQ,CAE1B;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CACpE;QAAA,CAAC,gBAAgB;YACf,CAAC,CAAC,CACA,CAAC,IAAI,CACH;cAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CACpD;gBAAA,CAAC,KAAK,CACR;cAAA,EAAE,IAAI,CACN;cAAA,CAAC,iBAAiB,CAChB,KAAK,CAAC,CAAC,sBAAuB,CAAC,CAC/B,IAAI,CAAC,CAAC,qBAAsB,CAAC,CAC7B,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAC,EAE9D;YAAA,EAAE,IAAI,CAAC,CACR;YACD,CAAC,CAAC,CACA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CACtD,CACL;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,gBAAgB,CAAC,CACpB,CAAA;AACH,CAAC"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { IMessage } from '../types';
3
- import { MessageProps } from './types';
4
- export * from './types';
5
- declare let Message: React.FC<MessageProps<IMessage>>;
6
- export default Message;