stream-chat-react-native-core 4.11.1-beta.2 → 4.12.0-beta.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.
- package/lib/commonjs/components/Attachment/Gallery.js +2 -2
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/Attachment/{GallaryImage.js → GalleryImage.js} +3 -3
- package/lib/{module/components/Attachment/GallaryImage.js.map → commonjs/components/Attachment/GalleryImage.js.map} +1 -1
- package/lib/commonjs/components/Attachment/Giphy.js +1 -1
- package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
- package/lib/commonjs/components/Attachment/VideoThumbnail.js +19 -18
- package/lib/commonjs/components/Attachment/VideoThumbnail.js.map +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js.map +1 -1
- package/lib/commonjs/components/Avatar/GroupAvatar.js +1 -1
- package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +18 -13
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -0
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js +17 -12
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +37 -30
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js +5 -3
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js +10 -6
- package/lib/commonjs/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js +17 -14
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +1 -0
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js +2 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js +36 -18
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGrid.js +3 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGrid.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGridHandle.js +5 -4
- package/lib/commonjs/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
- package/lib/commonjs/components/Message/Message.js +8 -6
- package/lib/commonjs/components/Message/Message.js.map +1 -1
- package/lib/commonjs/components/MessageInput/AudioAttachmentUploadPreview.js +538 -0
- package/lib/commonjs/components/MessageInput/AudioAttachmentUploadPreview.js.map +1 -0
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js +147 -34
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/ImageUploadPreview.js +4 -1
- package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
- package/lib/{module/components/ImageGallery/components → commonjs/components/ProgressControl}/ProgressControl.js +37 -24
- package/lib/commonjs/components/ProgressControl/ProgressControl.js.map +1 -0
- package/lib/commonjs/components/Reply/Reply.js +21 -13
- package/lib/commonjs/components/Reply/Reply.js.map +1 -1
- package/lib/commonjs/components/index.js +26 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +5 -2
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +7 -2
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js +14 -1
- package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/commonjs/icons/Pause.js +2 -2
- package/lib/commonjs/icons/Pause.js.map +1 -1
- package/lib/commonjs/mock-builders/api/channelMocks.js +1 -0
- package/lib/commonjs/mock-builders/api/channelMocks.js.map +1 -1
- package/lib/commonjs/native.js +13 -5
- package/lib/commonjs/native.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/Gallery.js +2 -2
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/Attachment/{GallaryImage.js → GalleryImage.js} +3 -3
- package/lib/{commonjs/components/Attachment/GallaryImage.js.map → module/components/Attachment/GalleryImage.js.map} +1 -1
- package/lib/module/components/Attachment/Giphy.js +1 -1
- package/lib/module/components/Attachment/Giphy.js.map +1 -1
- package/lib/module/components/Attachment/VideoThumbnail.js +19 -18
- package/lib/module/components/Attachment/VideoThumbnail.js.map +1 -1
- package/lib/module/components/Avatar/Avatar.js +1 -1
- package/lib/module/components/Avatar/Avatar.js.map +1 -1
- package/lib/module/components/Avatar/GroupAvatar.js +1 -1
- package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +18 -13
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -0
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreview.js +17 -12
- package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +37 -30
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js +5 -3
- package/lib/module/components/ImageGallery/components/AnimatedGalleryImage.js.map +1 -1
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js +10 -6
- package/lib/module/components/ImageGallery/components/AnimatedGalleryVideo.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js +17 -14
- package/lib/module/components/ImageGallery/components/ImageGalleryFooter.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +1 -0
- package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js +2 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js +36 -18
- package/lib/module/components/ImageGallery/components/ImageGalleryVideoControl.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGrid.js +3 -1
- package/lib/module/components/ImageGallery/components/ImageGrid.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGridHandle.js +5 -4
- package/lib/module/components/ImageGallery/components/ImageGridHandle.js.map +1 -1
- package/lib/module/components/Message/Message.js +8 -6
- package/lib/module/components/Message/Message.js.map +1 -1
- package/lib/module/components/MessageInput/AudioAttachmentUploadPreview.js +538 -0
- package/lib/module/components/MessageInput/AudioAttachmentUploadPreview.js.map +1 -0
- package/lib/module/components/MessageInput/FileUploadPreview.js +147 -34
- package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/ImageUploadPreview.js +4 -1
- package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
- package/lib/{commonjs/components/ImageGallery/components → module/components/ProgressControl}/ProgressControl.js +37 -24
- package/lib/module/components/ProgressControl/ProgressControl.js.map +1 -0
- package/lib/module/components/Reply/Reply.js +21 -13
- package/lib/module/components/Reply/Reply.js.map +1 -1
- package/lib/module/components/index.js +26 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +5 -2
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +7 -2
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/themeContext/utils/theme.js +14 -1
- package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
- package/lib/module/icons/Pause.js +2 -2
- package/lib/module/icons/Pause.js.map +1 -1
- package/lib/module/mock-builders/api/channelMocks.js +1 -0
- package/lib/module/mock-builders/api/channelMocks.js.map +1 -1
- package/lib/module/native.js +13 -5
- package/lib/module/native.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/{GallaryImage.d.ts → GalleryImage.d.ts} +0 -0
- package/lib/typescript/components/Attachment/VideoThumbnail.d.ts +4 -2
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -1
- package/lib/typescript/components/ImageGallery/__tests__/AnimatedVideoGallery.test.d.ts +1 -0
- package/lib/typescript/components/ImageGallery/__tests__/ImageGallery.test.d.ts +1 -0
- package/lib/typescript/components/ImageGallery/__tests__/ImageGalleryFooter.test.d.ts +1 -0
- package/lib/typescript/components/ImageGallery/__tests__/ImageGalleryGrid.test.d.ts +1 -0
- package/lib/typescript/components/ImageGallery/__tests__/ImageGalleryGridHandle.test.d.ts +1 -0
- package/lib/typescript/components/ImageGallery/__tests__/ImageGalleryHeader.test.d.ts +1 -0
- package/lib/typescript/components/ImageGallery/__tests__/ImageGalleryOverlay.test.d.ts +1 -0
- package/lib/typescript/components/ImageGallery/__tests__/ImageGalleryVideoControl.test.d.ts +1 -0
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryImage.d.ts +1 -0
- package/lib/typescript/components/ImageGallery/components/AnimatedGalleryVideo.d.ts +2 -3
- package/lib/typescript/components/ImageGallery/components/ImageGalleryFooter.d.ts +2 -1
- package/lib/typescript/components/ImageGallery/components/ImageGrid.d.ts +2 -3
- package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +1 -1
- package/lib/typescript/components/MessageInput/AudioAttachmentUploadPreview.d.ts +26 -0
- package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts +1 -1
- package/lib/typescript/components/MessageInput/__tests__/AudioAttachmentUploadPreviewExpo.test.d.ts +1 -0
- package/lib/typescript/components/MessageInput/__tests__/AudioAttachmentUploadPreviewNative.test.d.ts +1 -0
- package/lib/typescript/components/ProgressControl/ProgressControl.d.ts +11 -0
- package/lib/typescript/components/index.d.ts +2 -0
- package/lib/typescript/contexts/messageContext/MessageContext.d.ts +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +7 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
- package/lib/typescript/contexts/themeContext/utils/theme.d.ts +13 -0
- package/lib/typescript/native.d.ts +59 -2
- package/package.json +1 -1
- package/src/components/Attachment/Gallery.tsx +1 -1
- package/src/components/Attachment/{GallaryImage.tsx → GalleryImage.tsx} +1 -1
- package/src/components/Attachment/Giphy.tsx +1 -1
- package/src/components/Attachment/VideoThumbnail.tsx +15 -6
- package/src/components/Attachment/__tests__/Gallery.test.js +6 -6
- package/src/components/Attachment/__tests__/Giphy.test.js +4 -4
- package/src/components/Avatar/Avatar.tsx +1 -1
- package/src/components/Avatar/GroupAvatar.tsx +1 -1
- package/src/components/Channel/Channel.tsx +3 -0
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +2 -0
- package/src/components/ChannelPreview/ChannelPreview.tsx +14 -12
- package/src/components/ImageGallery/ImageGallery.tsx +21 -11
- package/src/components/ImageGallery/__tests__/AnimatedVideoGallery.test.tsx +241 -0
- package/src/components/ImageGallery/__tests__/ImageGallery.test.tsx +192 -0
- package/src/components/ImageGallery/__tests__/ImageGalleryFooter.test.tsx +190 -0
- package/src/components/ImageGallery/__tests__/ImageGalleryGrid.test.tsx +98 -0
- package/src/components/ImageGallery/__tests__/ImageGalleryGridHandle.test.tsx +79 -0
- package/src/components/ImageGallery/__tests__/ImageGalleryHeader.test.tsx +172 -0
- package/src/components/ImageGallery/__tests__/ImageGalleryOverlay.test.tsx +94 -0
- package/src/components/ImageGallery/__tests__/ImageGalleryVideoControl.test.tsx +84 -0
- package/src/components/ImageGallery/components/AnimatedGalleryImage.tsx +3 -0
- package/src/components/ImageGallery/components/AnimatedGalleryVideo.tsx +11 -3
- package/src/components/ImageGallery/components/ImageGalleryFooter.tsx +9 -2
- package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +1 -1
- package/src/components/ImageGallery/components/ImageGalleryOverlay.tsx +6 -1
- package/src/components/ImageGallery/components/ImageGalleryVideoControl.tsx +22 -9
- package/src/components/ImageGallery/components/ImageGrid.tsx +19 -17
- package/src/components/ImageGallery/components/ImageGridHandle.tsx +4 -1
- package/src/components/Message/Message.tsx +2 -1
- package/src/components/Message/MessageSimple/__tests__/MessageContent.test.js +9 -3
- package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessageAvatar.test.js.snap +1 -1
- package/src/components/MessageInput/AudioAttachmentUploadPreview.tsx +362 -0
- package/src/components/MessageInput/FileUploadPreview.tsx +165 -60
- package/src/components/MessageInput/ImageUploadPreview.tsx +2 -2
- package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewExpo.test.tsx +199 -0
- package/src/components/MessageInput/__tests__/AudioAttachmentUploadPreviewNative.test.tsx +215 -0
- package/src/components/MessageInput/__tests__/FileUploadPreview.test.js +64 -0
- package/src/components/{ImageGallery/components → ProgressControl}/ProgressControl.tsx +37 -19
- package/src/components/Reply/Reply.tsx +14 -2
- package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +4 -4
- package/src/components/index.ts +3 -0
- package/src/contexts/messageInputContext/MessageInputContext.tsx +13 -0
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +5 -1
- package/src/contexts/themeContext/utils/theme.ts +23 -0
- package/src/icons/Pause.tsx +2 -2
- package/src/mock-builders/api/channelMocks.tsx +1 -0
- package/src/native.ts +67 -7
- package/src/version.json +1 -1
- package/lib/commonjs/components/ImageGallery/components/ProgressControl.js.map +0 -1
- package/lib/module/components/ImageGallery/components/ProgressControl.js.map +0 -1
- package/lib/typescript/components/ImageGallery/components/ProgressControl.d.ts +0 -5
|
@@ -13,58 +13,69 @@ var _reactNativeGestureHandler = require("react-native-gesture-handler");
|
|
|
13
13
|
|
|
14
14
|
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
15
15
|
|
|
16
|
-
var _ThemeContext = require("
|
|
16
|
+
var _ThemeContext = require("../../contexts/themeContext/ThemeContext");
|
|
17
17
|
|
|
18
18
|
var _this = this,
|
|
19
|
-
_jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/components/
|
|
19
|
+
_jsxFileName = "/home/runner/work/stream-chat-react-native/stream-chat-react-native/package/src/components/ProgressControl/ProgressControl.tsx";
|
|
20
20
|
|
|
21
21
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
22
22
|
|
|
23
23
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
24
24
|
|
|
25
|
-
var width = 180;
|
|
26
25
|
var height = 2;
|
|
27
26
|
|
|
28
27
|
var styles = _reactNative.StyleSheet.create({
|
|
29
28
|
containerStyle: {
|
|
30
29
|
borderRadius: 50,
|
|
31
|
-
height: height
|
|
32
|
-
width: width
|
|
30
|
+
height: height
|
|
33
31
|
},
|
|
34
32
|
innerStyle: {
|
|
35
33
|
height: height
|
|
36
34
|
},
|
|
37
35
|
progressControlThumbStyle: {
|
|
38
|
-
backgroundColor: '#fff',
|
|
39
36
|
borderRadius: 5,
|
|
37
|
+
elevation: 6,
|
|
40
38
|
height: 20,
|
|
39
|
+
shadowOffset: {
|
|
40
|
+
height: 3,
|
|
41
|
+
width: 0
|
|
42
|
+
},
|
|
43
|
+
shadowOpacity: 0.27,
|
|
44
|
+
shadowRadius: 4.65,
|
|
41
45
|
top: -11,
|
|
42
|
-
width:
|
|
46
|
+
width: 5
|
|
43
47
|
}
|
|
44
48
|
});
|
|
45
49
|
|
|
46
50
|
var ProgressControlThumb = function ProgressControlThumb() {
|
|
51
|
+
var _useTheme = (0, _ThemeContext.useTheme)(),
|
|
52
|
+
black = _useTheme.theme.colors.black;
|
|
53
|
+
|
|
47
54
|
return _react["default"].createElement(_reactNative.View, {
|
|
48
|
-
style: styles.progressControlThumbStyle,
|
|
55
|
+
style: [styles.progressControlThumbStyle, {
|
|
56
|
+
backgroundColor: '#ffffff',
|
|
57
|
+
shadowColor: black
|
|
58
|
+
}],
|
|
49
59
|
__self: _this,
|
|
50
60
|
__source: {
|
|
51
61
|
fileName: _jsxFileName,
|
|
52
|
-
lineNumber:
|
|
53
|
-
columnNumber:
|
|
62
|
+
lineNumber: 55,
|
|
63
|
+
columnNumber: 5
|
|
54
64
|
}
|
|
55
65
|
});
|
|
56
66
|
};
|
|
57
67
|
|
|
58
68
|
var ProgressControl = _react["default"].memo(function (props) {
|
|
59
69
|
var duration = props.duration,
|
|
70
|
+
filledColor = props.filledColor,
|
|
60
71
|
onPlayPause = props.onPlayPause,
|
|
61
72
|
onProgressDrag = props.onProgressDrag,
|
|
62
|
-
progress = props.progress
|
|
73
|
+
progress = props.progress,
|
|
74
|
+
testID = props.testID,
|
|
75
|
+
width = props.width;
|
|
63
76
|
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
grey_dark = _useTheme$theme$color.grey_dark,
|
|
67
|
-
white_snow = _useTheme$theme$color.white_snow;
|
|
77
|
+
var _useTheme2 = (0, _ThemeContext.useTheme)(),
|
|
78
|
+
grey_dark = _useTheme2.theme.colors.grey_dark;
|
|
68
79
|
|
|
69
80
|
var state = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
70
81
|
var translateX = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
@@ -74,7 +85,7 @@ var ProgressControl = _react["default"].memo(function (props) {
|
|
|
74
85
|
}, [progress]);
|
|
75
86
|
var animatedStyles = (0, _reactNativeReanimated.useAnimatedStyle)(function () {
|
|
76
87
|
return {
|
|
77
|
-
backgroundColor:
|
|
88
|
+
backgroundColor: filledColor,
|
|
78
89
|
width: state.value
|
|
79
90
|
};
|
|
80
91
|
});
|
|
@@ -94,22 +105,23 @@ var ProgressControl = _react["default"].memo(function (props) {
|
|
|
94
105
|
translateX.value = state.value;
|
|
95
106
|
var dragFinishLocationInSeconds = state.value / width * duration;
|
|
96
107
|
(0, _reactNativeReanimated.runOnJS)(onProgressDrag)(dragFinishLocationInSeconds);
|
|
97
|
-
(0, _reactNativeReanimated.runOnJS)(onPlayPause)();
|
|
108
|
+
(0, _reactNativeReanimated.runOnJS)(onPlayPause)(false);
|
|
98
109
|
},
|
|
99
110
|
onStart: function onStart() {
|
|
100
|
-
(0, _reactNativeReanimated.runOnJS)(onPlayPause)();
|
|
111
|
+
(0, _reactNativeReanimated.runOnJS)(onPlayPause)(true);
|
|
101
112
|
(0, _reactNativeReanimated.cancelAnimation)(translateX);
|
|
102
113
|
state.value = translateX.value;
|
|
103
114
|
}
|
|
104
115
|
}, [duration]);
|
|
105
116
|
return _react["default"].createElement(_reactNative.View, {
|
|
106
117
|
style: [styles.containerStyle, {
|
|
107
|
-
backgroundColor: grey_dark
|
|
118
|
+
backgroundColor: grey_dark,
|
|
119
|
+
width: width
|
|
108
120
|
}],
|
|
109
121
|
__self: _this,
|
|
110
122
|
__source: {
|
|
111
123
|
fileName: _jsxFileName,
|
|
112
|
-
lineNumber:
|
|
124
|
+
lineNumber: 109,
|
|
113
125
|
columnNumber: 7
|
|
114
126
|
}
|
|
115
127
|
}, _react["default"].createElement(_reactNativeReanimated["default"].View, {
|
|
@@ -117,16 +129,17 @@ var ProgressControl = _react["default"].memo(function (props) {
|
|
|
117
129
|
__self: _this,
|
|
118
130
|
__source: {
|
|
119
131
|
fileName: _jsxFileName,
|
|
120
|
-
lineNumber:
|
|
132
|
+
lineNumber: 110,
|
|
121
133
|
columnNumber: 9
|
|
122
134
|
}
|
|
123
135
|
}), _react["default"].createElement(_reactNativeGestureHandler.PanGestureHandler, {
|
|
124
136
|
maxPointers: 1,
|
|
125
137
|
onGestureEvent: onGestureEvent,
|
|
138
|
+
testID: testID,
|
|
126
139
|
__self: _this,
|
|
127
140
|
__source: {
|
|
128
141
|
fileName: _jsxFileName,
|
|
129
|
-
lineNumber:
|
|
142
|
+
lineNumber: 112,
|
|
130
143
|
columnNumber: 9
|
|
131
144
|
}
|
|
132
145
|
}, _react["default"].createElement(_reactNativeReanimated["default"].View, {
|
|
@@ -134,14 +147,14 @@ var ProgressControl = _react["default"].memo(function (props) {
|
|
|
134
147
|
__self: _this,
|
|
135
148
|
__source: {
|
|
136
149
|
fileName: _jsxFileName,
|
|
137
|
-
lineNumber:
|
|
150
|
+
lineNumber: 113,
|
|
138
151
|
columnNumber: 11
|
|
139
152
|
}
|
|
140
153
|
}, _react["default"].createElement(ProgressControlThumb, {
|
|
141
154
|
__self: _this,
|
|
142
155
|
__source: {
|
|
143
156
|
fileName: _jsxFileName,
|
|
144
|
-
lineNumber:
|
|
157
|
+
lineNumber: 114,
|
|
145
158
|
columnNumber: 13
|
|
146
159
|
}
|
|
147
160
|
}))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["ProgressControl.tsx"],"names":["height","styles","StyleSheet","create","containerStyle","borderRadius","innerStyle","progressControlThumbStyle","elevation","shadowOffset","width","shadowOpacity","shadowRadius","top","ProgressControlThumb","black","theme","colors","backgroundColor","shadowColor","ProgressControl","React","memo","props","duration","filledColor","onPlayPause","onProgressDrag","progress","testID","grey_dark","state","translateX","value","animatedStyles","thumbStyles","transform","onGestureEvent","onActive","event","translationX","onFinish","dragFinishLocationInSeconds","onStart","prevProps","nextProps"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AAQA;;;;;;;;;AAYA,IAAMA,MAAM,GAAG,CAAf;;AACA,IAAMC,MAAM,GAAGC,wBAAWC,MAAX,CAAkB;AAC/BC,EAAAA,cAAc,EAAE;AACdC,IAAAA,YAAY,EAAE,EADA;AAEdL,IAAAA,MAAM,EAANA;AAFc,GADe;AAK/BM,EAAAA,UAAU,EAAE;AACVN,IAAAA,MAAM,EAANA;AADU,GALmB;AAQ/BO,EAAAA,yBAAyB,EAAE;AACzBF,IAAAA,YAAY,EAAE,CADW;AAEzBG,IAAAA,SAAS,EAAE,CAFc;AAGzBR,IAAAA,MAAM,EAAE,EAHiB;AAIzBS,IAAAA,YAAY,EAAE;AACZT,MAAAA,MAAM,EAAE,CADI;AAEZU,MAAAA,KAAK,EAAE;AAFK,KAJW;AAQzBC,IAAAA,aAAa,EAAE,IARU;AASzBC,IAAAA,YAAY,EAAE,IATW;AAUzBC,IAAAA,GAAG,EAAE,CAAC,EAVmB;AAWzBH,IAAAA,KAAK,EAAE;AAXkB;AARI,CAAlB,CAAf;;AAuBA,IAAMI,oBAAoB,GAAG,SAAvBA,oBAAuB,GAAM;AACjC,kBAII,6BAJJ;AAAA,MAEcC,KAFd,aACEC,KADF,C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cAApB,CAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADF,EAGE,gCAAC,4CAAD;AAAmB,IAAA,WAAW,EAAE,CAAhC;AAAmC,IAAA,cAAc,EAAEG,cAAnD;AAAmE,IAAA,MAAM,EAAER,MAA3E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,gCAAC,iCAAD,CAAU,IAAV;AAAe,IAAA,KAAK,EAAE,CAACM,WAAD,CAAtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KACE,gCAAC,oBAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IADF,CADF,CAHF,CADF;AAWD,CA1D4D,EA2D7D,UAACS,SAAD,EAAYC,SAAZ,EAA0B;AACxB,MAAID,SAAS,CAACpB,QAAV,KAAuBqB,SAAS,CAACrB,QAAjC,IAA6CoB,SAAS,CAAChB,QAAV,KAAuBiB,SAAS,CAACjB,QAAlF,EACE,OAAO,IAAP,CADF,KAEK,OAAO,KAAP;AACN,CA/D4D,CAAxD","sourcesContent":["import React, { useEffect } from 'react';\nimport { StyleSheet, View } from 'react-native';\nimport { PanGestureHandler } from 'react-native-gesture-handler';\nimport Animated, {\n cancelAnimation,\n runOnJS,\n useAnimatedGestureHandler,\n useAnimatedStyle,\n useSharedValue,\n} from 'react-native-reanimated';\n\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\n\nexport type ProgressControlProps = {\n duration: number;\n filledColor: string;\n onPlayPause: (status?: boolean) => void;\n onProgressDrag: (progress: number) => void;\n progress: number;\n testID: string;\n width: number;\n};\n\nconst height = 2;\nconst styles = StyleSheet.create({\n containerStyle: {\n borderRadius: 50,\n height,\n },\n innerStyle: {\n height,\n },\n progressControlThumbStyle: {\n borderRadius: 5,\n elevation: 6,\n height: 20,\n shadowOffset: {\n height: 3,\n width: 0,\n },\n shadowOpacity: 0.27,\n shadowRadius: 4.65,\n top: -11,\n width: 5,\n },\n});\n\nconst ProgressControlThumb = () => {\n const {\n theme: {\n colors: { black },\n },\n } = useTheme();\n return (\n <View\n style={[styles.progressControlThumbStyle, { backgroundColor: '#ffffff', shadowColor: black }]}\n />\n );\n};\n\nexport const ProgressControl: React.FC<ProgressControlProps> = React.memo(\n (props) => {\n const { duration, filledColor, onPlayPause, onProgressDrag, progress, testID, width } = props;\n const {\n theme: {\n colors: { grey_dark },\n },\n } = useTheme();\n\n const state = useSharedValue(0);\n const translateX = useSharedValue(0);\n\n useEffect(() => {\n state.value = progress * width;\n translateX.value = progress * width;\n }, [progress]);\n\n const animatedStyles = useAnimatedStyle(() => ({\n backgroundColor: filledColor,\n width: state.value,\n }));\n\n const thumbStyles = useAnimatedStyle(() => ({\n transform: [{ translateX: state.value }],\n }));\n\n const onGestureEvent = useAnimatedGestureHandler(\n {\n onActive: (event) => {\n state.value = translateX.value + event.translationX;\n if (state.value > width) state.value = width;\n else if (state.value < 0) state.value = 0;\n },\n onFinish: () => {\n translateX.value = state.value;\n const dragFinishLocationInSeconds = (state.value / width) * duration;\n runOnJS(onProgressDrag)(dragFinishLocationInSeconds);\n runOnJS(onPlayPause)(false);\n },\n onStart: () => {\n runOnJS(onPlayPause)(true);\n cancelAnimation(translateX);\n state.value = translateX.value;\n },\n },\n [duration],\n );\n return (\n <View style={[styles.containerStyle, { backgroundColor: grey_dark, width }]}>\n <Animated.View style={[styles.innerStyle, animatedStyles]} />\n\n <PanGestureHandler maxPointers={1} onGestureEvent={onGestureEvent} testID={testID}>\n <Animated.View style={[thumbStyles]}>\n <ProgressControlThumb />\n </Animated.View>\n </PanGestureHandler>\n </View>\n );\n },\n (prevProps, nextProps) => {\n if (prevProps.duration === nextProps.duration && prevProps.progress === nextProps.progress)\n return true;\n else return false;\n },\n);\n"]}
|
|
@@ -79,12 +79,15 @@ var styles = _reactNative.StyleSheet.create({
|
|
|
79
79
|
maxWidth: undefined,
|
|
80
80
|
paddingHorizontal: 8
|
|
81
81
|
},
|
|
82
|
-
|
|
82
|
+
videoThumbnailContainerStyle: {
|
|
83
83
|
borderRadius: 8,
|
|
84
84
|
height: 50,
|
|
85
85
|
marginLeft: 8,
|
|
86
86
|
marginVertical: 8,
|
|
87
87
|
width: 50
|
|
88
|
+
},
|
|
89
|
+
videoThumbnailImageStyle: {
|
|
90
|
+
borderRadius: 10
|
|
88
91
|
}
|
|
89
92
|
});
|
|
90
93
|
|
|
@@ -139,12 +142,15 @@ var ReplyWithContext = function ReplyWithContext(props) {
|
|
|
139
142
|
imageAttachment = _useTheme$theme$reply.imageAttachment,
|
|
140
143
|
markdownStyles = _useTheme$theme$reply.markdownStyles,
|
|
141
144
|
messageContainer = _useTheme$theme$reply.messageContainer,
|
|
142
|
-
textContainer = _useTheme$theme$reply.textContainer
|
|
145
|
+
textContainer = _useTheme$theme$reply.textContainer,
|
|
146
|
+
_useTheme$theme$reply2 = _useTheme$theme$reply.videoThumbnail,
|
|
147
|
+
videoThumbnailContainerStyle = _useTheme$theme$reply2.container,
|
|
148
|
+
videoThumbnailImageStyle = _useTheme$theme$reply2.image;
|
|
143
149
|
|
|
144
150
|
if (typeof quotedMessage === 'boolean') return null;
|
|
145
151
|
var lastAttachment = (_quotedMessage$attach = quotedMessage.attachments) == null ? void 0 : _quotedMessage$attach.slice(-1)[0];
|
|
146
152
|
var messageType = lastAttachment && getMessageType(lastAttachment);
|
|
147
|
-
var hasImage = !error && lastAttachment && messageType !== 'file' && (lastAttachment.image_url || lastAttachment.thumb_url || lastAttachment.og_scrape_url);
|
|
153
|
+
var hasImage = !error && lastAttachment && messageType !== 'file' && messageType !== 'video' && (lastAttachment.image_url || lastAttachment.thumb_url || lastAttachment.og_scrape_url);
|
|
148
154
|
|
|
149
155
|
var onlyEmojis = !lastAttachment && !!quotedMessage.text && _utils.emojiRegex.test(quotedMessage.text);
|
|
150
156
|
|
|
@@ -153,7 +159,7 @@ var ReplyWithContext = function ReplyWithContext(props) {
|
|
|
153
159
|
__self: _this,
|
|
154
160
|
__source: {
|
|
155
161
|
fileName: _jsxFileName,
|
|
156
|
-
lineNumber:
|
|
162
|
+
lineNumber: 169,
|
|
157
163
|
columnNumber: 5
|
|
158
164
|
}
|
|
159
165
|
}, _react["default"].createElement(MessageAvatar, {
|
|
@@ -164,7 +170,7 @@ var ReplyWithContext = function ReplyWithContext(props) {
|
|
|
164
170
|
__self: _this,
|
|
165
171
|
__source: {
|
|
166
172
|
fileName: _jsxFileName,
|
|
167
|
-
lineNumber:
|
|
173
|
+
lineNumber: 170,
|
|
168
174
|
columnNumber: 7
|
|
169
175
|
}
|
|
170
176
|
}), _react["default"].createElement(_reactNative.View, {
|
|
@@ -176,7 +182,7 @@ var ReplyWithContext = function ReplyWithContext(props) {
|
|
|
176
182
|
__self: _this,
|
|
177
183
|
__source: {
|
|
178
184
|
fileName: _jsxFileName,
|
|
179
|
-
lineNumber:
|
|
185
|
+
lineNumber: 171,
|
|
180
186
|
columnNumber: 7
|
|
181
187
|
}
|
|
182
188
|
}, !error && lastAttachment ? messageType === 'file' ? _react["default"].createElement(_reactNative.View, {
|
|
@@ -184,7 +190,7 @@ var ReplyWithContext = function ReplyWithContext(props) {
|
|
|
184
190
|
__self: _this,
|
|
185
191
|
__source: {
|
|
186
192
|
fileName: _jsxFileName,
|
|
187
|
-
lineNumber:
|
|
193
|
+
lineNumber: 186,
|
|
188
194
|
columnNumber: 13
|
|
189
195
|
}
|
|
190
196
|
}, _react["default"].createElement(FileAttachmentIcon, {
|
|
@@ -193,7 +199,7 @@ var ReplyWithContext = function ReplyWithContext(props) {
|
|
|
193
199
|
__self: _this,
|
|
194
200
|
__source: {
|
|
195
201
|
fileName: _jsxFileName,
|
|
196
|
-
lineNumber:
|
|
202
|
+
lineNumber: 193,
|
|
197
203
|
columnNumber: 15
|
|
198
204
|
}
|
|
199
205
|
})) : hasImage ? _react["default"].createElement(_reactNative.Image, {
|
|
@@ -211,15 +217,17 @@ var ReplyWithContext = function ReplyWithContext(props) {
|
|
|
211
217
|
__self: _this,
|
|
212
218
|
__source: {
|
|
213
219
|
fileName: _jsxFileName,
|
|
214
|
-
lineNumber:
|
|
220
|
+
lineNumber: 196,
|
|
215
221
|
columnNumber: 13
|
|
216
222
|
}
|
|
217
223
|
}) : null : null, messageType === 'video' && !lastAttachment.og_scrape_url ? _react["default"].createElement(_VideoThumbnail.VideoThumbnail, {
|
|
218
|
-
|
|
224
|
+
imageStyle: [styles.videoThumbnailImageStyle, videoThumbnailImageStyle],
|
|
225
|
+
style: [styles.videoThumbnailContainerStyle, videoThumbnailContainerStyle],
|
|
226
|
+
thumb_url: lastAttachment.thumb_url,
|
|
219
227
|
__self: _this,
|
|
220
228
|
__source: {
|
|
221
229
|
fileName: _jsxFileName,
|
|
222
|
-
lineNumber:
|
|
230
|
+
lineNumber: 218,
|
|
223
231
|
columnNumber: 11
|
|
224
232
|
}
|
|
225
233
|
}) : null, _react["default"].createElement(_MessageTextContainer.MessageTextContainer, {
|
|
@@ -242,7 +250,7 @@ var ReplyWithContext = function ReplyWithContext(props) {
|
|
|
242
250
|
__self: _this,
|
|
243
251
|
__source: {
|
|
244
252
|
fileName: _jsxFileName,
|
|
245
|
-
lineNumber:
|
|
253
|
+
lineNumber: 224,
|
|
246
254
|
columnNumber: 9
|
|
247
255
|
}
|
|
248
256
|
})));
|
|
@@ -291,7 +299,7 @@ var Reply = function Reply(props) {
|
|
|
291
299
|
__self: _this,
|
|
292
300
|
__source: {
|
|
293
301
|
fileName: _jsxFileName,
|
|
294
|
-
lineNumber:
|
|
302
|
+
lineNumber: 347,
|
|
295
303
|
columnNumber: 5
|
|
296
304
|
}
|
|
297
305
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["Reply.tsx"],"names":["styles","StyleSheet","create","container","alignItems","flexDirection","fileAttachmentContainer","paddingLeft","paddingVertical","imageAttachment","borderRadius","height","marginLeft","marginVertical","width","messageContainer","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius","flexGrow","flexShrink","text","fontSize","textContainer","maxWidth","undefined","paddingHorizontal","videoAttachment","getMessageType","lastAttachment","messageType","isLastAttachmentFile","type","isLastAttachmentVideo","isLastAttachmentGiphy","isLastAttachmentImageOrGiphy","title_link","og_scrape_url","isLastAttachmentImage","image_url","thumb_url","ReplyWithContext","props","FileAttachmentIcon","attachmentSize","MessageAvatar","quotedMessage","stylesProp","t","error","setError","theme","colors","blue_alice","border","grey","transparent","white","deletedText","messageSimple","content","reply","markdownStyles","attachments","slice","hasImage","onlyEmojis","emojiRegex","test","backgroundColor","borderColor","borderWidth","mime_type","uri","url","deleted_at","em","color","length","title","marginRight","Number","useMessageInputContextIfAvailable","contextValue","MessageInputContext","areEqual","prevProps","nextProps","prevQuotedMessage","nextQuotedMessage","quotedMessageEqual","id","MemoizedReply","React","memo","Reply","message","FileIconDefault","MessageAvatarDefault","editing","quotedEditingMessage","quoted_message","displayName"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AAIA;;AACA;;AAIA;;AAIA;;AACA;;AAKA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;AAEA,IAAMA,MAAM,GAAGC,wBAAWC,MAAX,CAAkB;AAC/BC,EAAAA,SAAS,EAAE;AACTC,IAAAA,UAAU,EAAE,UADH;AAETC,IAAAA,aAAa,EAAE;AAFN,GADoB;AAK/BC,EAAAA,uBAAuB,EAAE;AAAEC,IAAAA,WAAW,EAAE,CAAf;AAAkBC,IAAAA,eAAe,EAAE;AAAnC,GALM;AAM/BC,EAAAA,eAAe,EAAE;AACfC,IAAAA,YAAY,EAAE,CADC;AAEfC,IAAAA,MAAM,EAAE,EAFO;AAGfC,IAAAA,UAAU,EAAE,CAHG;AAIfC,IAAAA,cAAc,EAAE,CAJD;AAKfC,IAAAA,KAAK,EAAE;AALQ,GANc;AAa/BC,EAAAA,gBAAgB,EAAE;AAChBX,IAAAA,UAAU,EAAE,YADI;AAEhBY,IAAAA,sBAAsB,EAAE,CAFR;AAGhBC,IAAAA,uBAAuB,EAAE,EAHT;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, View, ViewStyle } from 'react-native';\n\nimport merge from 'lodash/merge';\n\nimport type { Attachment } from 'stream-chat';\n\nimport { useMessageContext } from '../../contexts/messageContext/MessageContext';\nimport {\n MessageInputContext,\n MessageInputContextValue,\n} from '../../contexts/messageInputContext/MessageInputContext';\nimport {\n MessagesContextValue,\n useMessagesContext,\n} from '../../contexts/messagesContext/MessagesContext';\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport {\n TranslationContextValue,\n useTranslationContext,\n} from '../../contexts/translationContext/TranslationContext';\nimport type { DefaultStreamChatGenerics } from '../../types/types';\nimport { getResizedImageUrl } from '../../utils/getResizedImageUrl';\nimport { emojiRegex } from '../../utils/utils';\n\nimport { FileIcon as FileIconDefault } from '../Attachment/FileIcon';\nimport { VideoThumbnail } from '../Attachment/VideoThumbnail';\nimport { MessageAvatar as MessageAvatarDefault } from '../Message/MessageSimple/MessageAvatar';\nimport { MessageTextContainer } from '../Message/MessageSimple/MessageTextContainer';\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'flex-end',\n flexDirection: 'row',\n },\n fileAttachmentContainer: { paddingLeft: 8, paddingVertical: 8 },\n imageAttachment: {\n borderRadius: 8,\n height: 32,\n marginLeft: 8,\n marginVertical: 8,\n width: 32,\n },\n messageContainer: {\n alignItems: 'flex-start',\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 12,\n borderTopLeftRadius: 12,\n borderTopRightRadius: 12,\n flexDirection: 'row',\n flexGrow: 1,\n flexShrink: 1,\n },\n text: { fontSize: 12 },\n textContainer: { maxWidth: undefined, paddingHorizontal: 8 },\n videoAttachment: {\n borderRadius: 8,\n height: 50,\n marginLeft: 8,\n marginVertical: 8,\n width: 50,\n },\n});\n\ntype ReplyPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<MessageInputContextValue<StreamChatGenerics>, 'quotedMessage'> &\n Pick<MessagesContextValue<StreamChatGenerics>, 'FileAttachmentIcon' | 'MessageAvatar'> &\n Pick<TranslationContextValue, 't'> & {\n attachmentSize?: number;\n styles?: Partial<{\n container: ViewStyle;\n fileAttachmentContainer: ViewStyle;\n imageAttachment: ImageStyle;\n messageContainer: ViewStyle;\n textContainer: ViewStyle;\n }>;\n };\n\nconst getMessageType = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n lastAttachment: Attachment<StreamChatGenerics>,\n) => {\n let messageType;\n\n const isLastAttachmentFile = lastAttachment.type === 'file' || lastAttachment.type === 'audio';\n\n const isLastAttachmentVideo = lastAttachment.type === 'video';\n\n const isLastAttachmentGiphy =\n lastAttachment?.type === 'giphy' || lastAttachment?.type === 'imgur';\n\n const isLastAttachmentImageOrGiphy =\n lastAttachment?.type === 'image' &&\n !lastAttachment?.title_link &&\n !lastAttachment?.og_scrape_url;\n\n const isLastAttachmentImage = lastAttachment?.image_url || lastAttachment?.thumb_url;\n\n if (isLastAttachmentFile) {\n messageType = 'file';\n } else if (isLastAttachmentVideo) {\n messageType = 'video';\n } else if (isLastAttachmentImageOrGiphy) {\n if (isLastAttachmentImage) messageType = 'image';\n else messageType = undefined;\n } else if (isLastAttachmentGiphy) messageType = 'giphy';\n else messageType = 'other';\n\n return messageType;\n};\n\nconst ReplyWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ReplyPropsWithContext<StreamChatGenerics>,\n) => {\n const {\n FileAttachmentIcon,\n attachmentSize = 40,\n MessageAvatar,\n quotedMessage,\n styles: stylesProp = {},\n t,\n } = props;\n\n const [error, setError] = useState(false);\n\n const {\n theme: {\n colors: { blue_alice, border, grey, transparent, white },\n messageSimple: {\n content: { deletedText },\n },\n reply: {\n container,\n fileAttachmentContainer,\n imageAttachment,\n markdownStyles,\n messageContainer,\n textContainer,\n },\n },\n } = useTheme();\n\n if (typeof quotedMessage === 'boolean') return null;\n\n const lastAttachment = quotedMessage.attachments?.slice(-1)[0] as Attachment<StreamChatGenerics>;\n const messageType = lastAttachment && getMessageType(lastAttachment);\n\n const hasImage =\n !error &&\n lastAttachment &&\n messageType !== 'file' &&\n (lastAttachment.image_url || lastAttachment.thumb_url || lastAttachment.og_scrape_url);\n\n const onlyEmojis = !lastAttachment && !!quotedMessage.text && emojiRegex.test(quotedMessage.text);\n\n return (\n <View style={[styles.container, container, stylesProp.container]}>\n <MessageAvatar alignment={'left'} lastGroupMessage message={quotedMessage} size={24} />\n <View\n style={[\n styles.messageContainer,\n {\n backgroundColor:\n messageType === 'other' ? blue_alice : messageType === 'giphy' ? transparent : white,\n borderColor: border,\n borderWidth: messageType === 'other' ? 0 : 1,\n },\n messageContainer,\n stylesProp.messageContainer,\n ]}\n >\n {!error && lastAttachment ? (\n messageType === 'file' ? (\n <View\n style={[\n styles.fileAttachmentContainer,\n fileAttachmentContainer,\n stylesProp.fileAttachmentContainer,\n ]}\n >\n <FileAttachmentIcon mimeType={lastAttachment.mime_type} size={attachmentSize} />\n </View>\n ) : hasImage ? (\n <Image\n onError={() => setError(true)}\n source={{\n uri: getResizedImageUrl({\n height:\n stylesProp.imageAttachment?.height ||\n imageAttachment?.height ||\n styles.imageAttachment.height,\n url: (lastAttachment.image_url ||\n lastAttachment.thumb_url ||\n lastAttachment.og_scrape_url) as string,\n width:\n stylesProp.imageAttachment?.width ||\n imageAttachment?.width ||\n styles.imageAttachment.width,\n }),\n }}\n style={[styles.imageAttachment, imageAttachment, stylesProp.imageAttachment]}\n />\n ) : null\n ) : null}\n {messageType === 'video' && !lastAttachment.og_scrape_url ? (\n <VideoThumbnail style={[styles.videoAttachment]} />\n ) : null}\n <MessageTextContainer<StreamChatGenerics>\n markdownStyles={\n quotedMessage.deleted_at\n ? merge({ em: { color: grey } }, deletedText)\n : { text: styles.text, ...markdownStyles }\n }\n message={{\n ...quotedMessage,\n text: quotedMessage.deleted_at\n ? `_${t('Message deleted')}_`\n : quotedMessage.text\n ? quotedMessage.text.length > 170\n ? `${quotedMessage.text.slice(0, 170)}...`\n : quotedMessage.text\n : messageType === 'image'\n ? t('Photo')\n : messageType === 'video'\n ? t('Video')\n : messageType === 'file'\n ? lastAttachment?.title || ''\n : '',\n }}\n onlyEmojis={onlyEmojis}\n styles={{\n textContainer: [\n {\n marginRight:\n hasImage || messageType === 'video'\n ? Number(\n stylesProp.imageAttachment?.height ||\n imageAttachment.height ||\n styles.imageAttachment.height,\n ) +\n Number(\n stylesProp.imageAttachment?.marginLeft ||\n imageAttachment.marginLeft ||\n styles.imageAttachment.marginLeft,\n )\n : messageType === 'file'\n ? attachmentSize +\n Number(\n stylesProp.fileAttachmentContainer?.paddingLeft ||\n fileAttachmentContainer.paddingLeft ||\n styles.fileAttachmentContainer.paddingLeft,\n )\n : undefined,\n },\n styles.textContainer,\n textContainer,\n stylesProp.textContainer,\n ],\n }}\n />\n </View>\n </View>\n );\n};\n\n/**\n * When a reply is rendered in a MessageSimple, it does\n * not have a MessageInputContext. As this is deliberate,\n * this function exists to avoid the error thrown when\n * using a context outside of its provider.\n * */\nconst useMessageInputContextIfAvailable = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const contextValue = useContext(\n MessageInputContext,\n ) as unknown as MessageInputContextValue<StreamChatGenerics>;\n\n return contextValue;\n};\n\nconst areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(\n prevProps: ReplyPropsWithContext<StreamChatGenerics>,\n nextProps: ReplyPropsWithContext<StreamChatGenerics>,\n) => {\n const { quotedMessage: prevQuotedMessage } = prevProps;\n const { quotedMessage: nextQuotedMessage } = nextProps;\n\n const quotedMessageEqual =\n !!prevQuotedMessage &&\n !!nextQuotedMessage &&\n typeof prevQuotedMessage !== 'boolean' &&\n typeof nextQuotedMessage !== 'boolean'\n ? prevQuotedMessage.id === nextQuotedMessage.id &&\n prevQuotedMessage.deleted_at === nextQuotedMessage.deleted_at\n : !!prevQuotedMessage === !!nextQuotedMessage;\n\n if (!quotedMessageEqual) return false;\n\n return true;\n};\n\nconst MemoizedReply = React.memo(ReplyWithContext, areEqual) as typeof ReplyWithContext;\n\nexport type ReplyProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<ReplyPropsWithContext<StreamChatGenerics>>;\n\n/**\n * UI Component for reply\n */\nexport const Reply = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ReplyProps<StreamChatGenerics>,\n) => {\n const { message } = useMessageContext<StreamChatGenerics>();\n\n const { FileAttachmentIcon = FileIconDefault, MessageAvatar = MessageAvatarDefault } =\n useMessagesContext<StreamChatGenerics>();\n\n const { editing, quotedMessage } = useMessageInputContextIfAvailable<StreamChatGenerics>();\n\n const quotedEditingMessage = (\n typeof editing !== 'boolean' ? editing?.quoted_message || false : false\n ) as MessageInputContextValue<StreamChatGenerics>['quotedMessage'];\n\n const { t } = useTranslationContext();\n\n return (\n <MemoizedReply\n {...{\n FileAttachmentIcon,\n MessageAvatar,\n quotedMessage: message\n ? (message.quoted_message as MessageInputContextValue<StreamChatGenerics>['quotedMessage'])\n : quotedMessage || quotedEditingMessage,\n t,\n }}\n {...props}\n />\n );\n};\n\nReply.displayName = 'Reply{reply}';\n"]}
|
|
1
|
+
{"version":3,"sources":["Reply.tsx"],"names":["styles","StyleSheet","create","container","alignItems","flexDirection","fileAttachmentContainer","paddingLeft","paddingVertical","imageAttachment","borderRadius","height","marginLeft","marginVertical","width","messageContainer","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius","flexGrow","flexShrink","text","fontSize","textContainer","maxWidth","undefined","paddingHorizontal","videoThumbnailContainerStyle","videoThumbnailImageStyle","getMessageType","lastAttachment","messageType","isLastAttachmentFile","type","isLastAttachmentVideo","isLastAttachmentGiphy","isLastAttachmentImageOrGiphy","title_link","og_scrape_url","isLastAttachmentImage","image_url","thumb_url","ReplyWithContext","props","FileAttachmentIcon","attachmentSize","MessageAvatar","quotedMessage","stylesProp","t","error","setError","theme","colors","blue_alice","border","grey","transparent","white","deletedText","messageSimple","content","reply","markdownStyles","videoThumbnail","image","attachments","slice","hasImage","onlyEmojis","emojiRegex","test","backgroundColor","borderColor","borderWidth","mime_type","uri","url","deleted_at","em","color","length","title","marginRight","Number","useMessageInputContextIfAvailable","contextValue","MessageInputContext","areEqual","prevProps","nextProps","prevQuotedMessage","nextQuotedMessage","quotedMessageEqual","id","MemoizedReply","React","memo","Reply","message","FileIconDefault","MessageAvatarDefault","editing","quotedEditingMessage","quoted_message","displayName"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AAIA;;AACA;;AAIA;;AAIA;;AACA;;AAKA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;AAEA,IAAMA,MAAM,GAAGC,wBAAWC,MAAX,CAAkB;AAC/BC,EAAAA,SAAS,EAAE;AACTC,IAAAA,UAAU,EAAE,UADH;AAETC,IAAAA,aAAa,EAAE;AAFN,GADoB;AAK/BC,EAAAA,uBAAuB,EAAE;AAAEC,IAAAA,WAAW,EAAE,CAAf;AAAkBC,IAAAA,eAAe,EAAE;AAAnC,GALM;AAM/BC,EAAAA,eAAe,EAAE;AACfC,IAAAA,YAAY,EAAE,CADC;AAEfC,IAAAA,MAAM,EAAE,EAFO;AAGfC,IAAAA,UAAU,EAAE,CAHG;AAIfC,IAAAA,cAAc,EAAE,CAJD;AAKfC,IAAAA,KAAK,EAAE;AALQ,GANc;AAa/BC,EAAAA,gBAAgB,EAAE;AAChBX,IAAAA,UAAU,EAAE,YADI;AAEhBY,IAAAA,sBAAsB,EAAE,CAFR;AAGhBC,IAAAA,uBAAuB,EAAE,EAHT;AAIhBC,IAAAA,mBAAmB,EAAE,EAJL;AAKhBC,IAAAA,oBAAoB,EAAE,EALN;AAMhBd,IAAAA,aAAa,EAAE,KANC;AAOhBe,IAAAA,QAAQ,EAAE,CAPM;AAQhBC,IAAAA,UAAU,EAAE;AARI,GAba;AAuB/BC,EAAAA,IAAI,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AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KADF;AAaD,CA/BM;;;AAiCPuD,KAAK,CAACO,WAAN,GAAoB,cAApB","sourcesContent":["import React, { useContext, useState } from 'react';\nimport { Image, ImageStyle, StyleSheet, View, ViewStyle } from 'react-native';\n\nimport merge from 'lodash/merge';\n\nimport type { Attachment } from 'stream-chat';\n\nimport { useMessageContext } from '../../contexts/messageContext/MessageContext';\nimport {\n MessageInputContext,\n MessageInputContextValue,\n} from '../../contexts/messageInputContext/MessageInputContext';\nimport {\n MessagesContextValue,\n useMessagesContext,\n} from '../../contexts/messagesContext/MessagesContext';\nimport { useTheme } from '../../contexts/themeContext/ThemeContext';\nimport {\n TranslationContextValue,\n useTranslationContext,\n} from '../../contexts/translationContext/TranslationContext';\nimport type { DefaultStreamChatGenerics } from '../../types/types';\nimport { getResizedImageUrl } from '../../utils/getResizedImageUrl';\nimport { emojiRegex } from '../../utils/utils';\n\nimport { FileIcon as FileIconDefault } from '../Attachment/FileIcon';\nimport { VideoThumbnail } from '../Attachment/VideoThumbnail';\nimport { MessageAvatar as MessageAvatarDefault } from '../Message/MessageSimple/MessageAvatar';\nimport { MessageTextContainer } from '../Message/MessageSimple/MessageTextContainer';\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'flex-end',\n flexDirection: 'row',\n },\n fileAttachmentContainer: { paddingLeft: 8, paddingVertical: 8 },\n imageAttachment: {\n borderRadius: 8,\n height: 32,\n marginLeft: 8,\n marginVertical: 8,\n width: 32,\n },\n messageContainer: {\n alignItems: 'flex-start',\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 12,\n borderTopLeftRadius: 12,\n borderTopRightRadius: 12,\n flexDirection: 'row',\n flexGrow: 1,\n flexShrink: 1,\n },\n text: { fontSize: 12 },\n textContainer: { maxWidth: undefined, paddingHorizontal: 8 },\n videoThumbnailContainerStyle: {\n borderRadius: 8,\n height: 50,\n marginLeft: 8,\n marginVertical: 8,\n width: 50,\n },\n videoThumbnailImageStyle: {\n borderRadius: 10,\n },\n});\n\ntype ReplyPropsWithContext<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Pick<MessageInputContextValue<StreamChatGenerics>, 'quotedMessage'> &\n Pick<MessagesContextValue<StreamChatGenerics>, 'FileAttachmentIcon' | 'MessageAvatar'> &\n Pick<TranslationContextValue, 't'> & {\n attachmentSize?: number;\n styles?: Partial<{\n container: ViewStyle;\n fileAttachmentContainer: ViewStyle;\n imageAttachment: ImageStyle;\n messageContainer: ViewStyle;\n textContainer: ViewStyle;\n }>;\n };\n\nconst getMessageType = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n lastAttachment: Attachment<StreamChatGenerics>,\n) => {\n let messageType;\n\n const isLastAttachmentFile = lastAttachment.type === 'file' || lastAttachment.type === 'audio';\n\n const isLastAttachmentVideo = lastAttachment.type === 'video';\n\n const isLastAttachmentGiphy =\n lastAttachment?.type === 'giphy' || lastAttachment?.type === 'imgur';\n\n const isLastAttachmentImageOrGiphy =\n lastAttachment?.type === 'image' &&\n !lastAttachment?.title_link &&\n !lastAttachment?.og_scrape_url;\n\n const isLastAttachmentImage = lastAttachment?.image_url || lastAttachment?.thumb_url;\n\n if (isLastAttachmentFile) {\n messageType = 'file';\n } else if (isLastAttachmentVideo) {\n messageType = 'video';\n } else if (isLastAttachmentImageOrGiphy) {\n if (isLastAttachmentImage) messageType = 'image';\n else messageType = undefined;\n } else if (isLastAttachmentGiphy) messageType = 'giphy';\n else messageType = 'other';\n\n return messageType;\n};\n\nconst ReplyWithContext = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ReplyPropsWithContext<StreamChatGenerics>,\n) => {\n const {\n FileAttachmentIcon,\n attachmentSize = 40,\n MessageAvatar,\n quotedMessage,\n styles: stylesProp = {},\n t,\n } = props;\n\n const [error, setError] = useState(false);\n\n const {\n theme: {\n colors: { blue_alice, border, grey, transparent, white },\n messageSimple: {\n content: { deletedText },\n },\n reply: {\n container,\n fileAttachmentContainer,\n imageAttachment,\n markdownStyles,\n messageContainer,\n textContainer,\n videoThumbnail: {\n container: videoThumbnailContainerStyle,\n image: videoThumbnailImageStyle,\n },\n },\n },\n } = useTheme();\n\n if (typeof quotedMessage === 'boolean') return null;\n\n const lastAttachment = quotedMessage.attachments?.slice(-1)[0] as Attachment<StreamChatGenerics>;\n const messageType = lastAttachment && getMessageType(lastAttachment);\n\n const hasImage =\n !error &&\n lastAttachment &&\n messageType !== 'file' &&\n messageType !== 'video' &&\n (lastAttachment.image_url || lastAttachment.thumb_url || lastAttachment.og_scrape_url);\n\n const onlyEmojis = !lastAttachment && !!quotedMessage.text && emojiRegex.test(quotedMessage.text);\n\n return (\n <View style={[styles.container, container, stylesProp.container]}>\n <MessageAvatar alignment={'left'} lastGroupMessage message={quotedMessage} size={24} />\n <View\n style={[\n styles.messageContainer,\n {\n backgroundColor:\n messageType === 'other' ? blue_alice : messageType === 'giphy' ? transparent : white,\n borderColor: border,\n borderWidth: messageType === 'other' ? 0 : 1,\n },\n messageContainer,\n stylesProp.messageContainer,\n ]}\n >\n {!error && lastAttachment ? (\n messageType === 'file' ? (\n <View\n style={[\n styles.fileAttachmentContainer,\n fileAttachmentContainer,\n stylesProp.fileAttachmentContainer,\n ]}\n >\n <FileAttachmentIcon mimeType={lastAttachment.mime_type} size={attachmentSize} />\n </View>\n ) : hasImage ? (\n <Image\n onError={() => setError(true)}\n source={{\n uri: getResizedImageUrl({\n height:\n stylesProp.imageAttachment?.height ||\n imageAttachment?.height ||\n styles.imageAttachment.height,\n url: (lastAttachment.image_url ||\n lastAttachment.thumb_url ||\n lastAttachment.og_scrape_url) as string,\n width:\n stylesProp.imageAttachment?.width ||\n imageAttachment?.width ||\n styles.imageAttachment.width,\n }),\n }}\n style={[styles.imageAttachment, imageAttachment, stylesProp.imageAttachment]}\n />\n ) : null\n ) : null}\n {messageType === 'video' && !lastAttachment.og_scrape_url ? (\n <VideoThumbnail\n imageStyle={[styles.videoThumbnailImageStyle, videoThumbnailImageStyle]}\n style={[styles.videoThumbnailContainerStyle, videoThumbnailContainerStyle]}\n thumb_url={lastAttachment.thumb_url}\n />\n ) : null}\n <MessageTextContainer<StreamChatGenerics>\n markdownStyles={\n quotedMessage.deleted_at\n ? merge({ em: { color: grey } }, deletedText)\n : { text: styles.text, ...markdownStyles }\n }\n message={{\n ...quotedMessage,\n text: quotedMessage.deleted_at\n ? `_${t('Message deleted')}_`\n : quotedMessage.text\n ? quotedMessage.text.length > 170\n ? `${quotedMessage.text.slice(0, 170)}...`\n : quotedMessage.text\n : messageType === 'image'\n ? t('Photo')\n : messageType === 'video'\n ? t('Video')\n : messageType === 'file'\n ? lastAttachment?.title || ''\n : '',\n }}\n onlyEmojis={onlyEmojis}\n styles={{\n textContainer: [\n {\n marginRight:\n hasImage || messageType === 'video'\n ? Number(\n stylesProp.imageAttachment?.height ||\n imageAttachment.height ||\n styles.imageAttachment.height,\n ) +\n Number(\n stylesProp.imageAttachment?.marginLeft ||\n imageAttachment.marginLeft ||\n styles.imageAttachment.marginLeft,\n )\n : messageType === 'file'\n ? attachmentSize +\n Number(\n stylesProp.fileAttachmentContainer?.paddingLeft ||\n fileAttachmentContainer.paddingLeft ||\n styles.fileAttachmentContainer.paddingLeft,\n )\n : undefined,\n },\n styles.textContainer,\n textContainer,\n stylesProp.textContainer,\n ],\n }}\n />\n </View>\n </View>\n );\n};\n\n/**\n * When a reply is rendered in a MessageSimple, it does\n * not have a MessageInputContext. As this is deliberate,\n * this function exists to avoid the error thrown when\n * using a context outside of its provider.\n * */\nconst useMessageInputContextIfAvailable = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>() => {\n const contextValue = useContext(\n MessageInputContext,\n ) as unknown as MessageInputContextValue<StreamChatGenerics>;\n\n return contextValue;\n};\n\nconst areEqual = <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(\n prevProps: ReplyPropsWithContext<StreamChatGenerics>,\n nextProps: ReplyPropsWithContext<StreamChatGenerics>,\n) => {\n const { quotedMessage: prevQuotedMessage } = prevProps;\n const { quotedMessage: nextQuotedMessage } = nextProps;\n\n const quotedMessageEqual =\n !!prevQuotedMessage &&\n !!nextQuotedMessage &&\n typeof prevQuotedMessage !== 'boolean' &&\n typeof nextQuotedMessage !== 'boolean'\n ? prevQuotedMessage.id === nextQuotedMessage.id &&\n prevQuotedMessage.deleted_at === nextQuotedMessage.deleted_at\n : !!prevQuotedMessage === !!nextQuotedMessage;\n\n if (!quotedMessageEqual) return false;\n\n return true;\n};\n\nconst MemoizedReply = React.memo(ReplyWithContext, areEqual) as typeof ReplyWithContext;\n\nexport type ReplyProps<\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n> = Partial<ReplyPropsWithContext<StreamChatGenerics>>;\n\n/**\n * UI Component for reply\n */\nexport const Reply = <\n StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: ReplyProps<StreamChatGenerics>,\n) => {\n const { message } = useMessageContext<StreamChatGenerics>();\n\n const { FileAttachmentIcon = FileIconDefault, MessageAvatar = MessageAvatarDefault } =\n useMessagesContext<StreamChatGenerics>();\n\n const { editing, quotedMessage } = useMessageInputContextIfAvailable<StreamChatGenerics>();\n\n const quotedEditingMessage = (\n typeof editing !== 'boolean' ? editing?.quoted_message || false : false\n ) as MessageInputContextValue<StreamChatGenerics>['quotedMessage'];\n\n const { t } = useTranslationContext();\n\n return (\n <MemoizedReply\n {...{\n FileAttachmentIcon,\n MessageAvatar,\n quotedMessage: message\n ? (message.quoted_message as MessageInputContextValue<StreamChatGenerics>['quotedMessage'])\n : quotedMessage || quotedEditingMessage,\n t,\n }}\n {...props}\n />\n );\n};\n\nReply.displayName = 'Reply{reply}';\n"]}
|
|
@@ -1341,6 +1341,19 @@ Object.keys(_FileUploadPreview).forEach(function (key) {
|
|
|
1341
1341
|
});
|
|
1342
1342
|
});
|
|
1343
1343
|
|
|
1344
|
+
var _AudioAttachmentUploadPreview = require("./MessageInput/AudioAttachmentUploadPreview");
|
|
1345
|
+
|
|
1346
|
+
Object.keys(_AudioAttachmentUploadPreview).forEach(function (key) {
|
|
1347
|
+
if (key === "default" || key === "__esModule") return;
|
|
1348
|
+
if (key in exports && exports[key] === _AudioAttachmentUploadPreview[key]) return;
|
|
1349
|
+
Object.defineProperty(exports, key, {
|
|
1350
|
+
enumerable: true,
|
|
1351
|
+
get: function get() {
|
|
1352
|
+
return _AudioAttachmentUploadPreview[key];
|
|
1353
|
+
}
|
|
1354
|
+
});
|
|
1355
|
+
});
|
|
1356
|
+
|
|
1344
1357
|
var _ImageUploadPreview = require("./MessageInput/ImageUploadPreview");
|
|
1345
1358
|
|
|
1346
1359
|
Object.keys(_ImageUploadPreview).forEach(function (key) {
|
|
@@ -1770,6 +1783,19 @@ Object.keys(_OverlayReactionList).forEach(function (key) {
|
|
|
1770
1783
|
});
|
|
1771
1784
|
});
|
|
1772
1785
|
|
|
1786
|
+
var _ProgressControl = require("./ProgressControl/ProgressControl");
|
|
1787
|
+
|
|
1788
|
+
Object.keys(_ProgressControl).forEach(function (key) {
|
|
1789
|
+
if (key === "default" || key === "__esModule") return;
|
|
1790
|
+
if (key in exports && exports[key] === _ProgressControl[key]) return;
|
|
1791
|
+
Object.defineProperty(exports, key, {
|
|
1792
|
+
enumerable: true,
|
|
1793
|
+
get: function get() {
|
|
1794
|
+
return _ProgressControl[key];
|
|
1795
|
+
}
|
|
1796
|
+
});
|
|
1797
|
+
});
|
|
1798
|
+
|
|
1773
1799
|
var _Reply = require("./Reply/Reply");
|
|
1774
1800
|
|
|
1775
1801
|
Object.keys(_Reply).forEach(function (key) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;A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A;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAEA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAEA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAEA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export * from './Attachment/Attachment';\nexport * from './Attachment/AttachmentActions';\nexport * from './Attachment/Card';\nexport * from './Attachment/FileAttachment';\nexport * from './Attachment/FileAttachmentGroup';\nexport * from './Attachment/FileIcon';\nexport * from './Attachment/Gallery';\nexport * from './Attachment/Giphy';\nexport * from './Attachment/VideoThumbnail';\nexport * from './Attachment/utils/buildGallery/buildGallery';\n\nexport * from './AttachmentPicker/AttachmentPicker';\nexport * from './AttachmentPicker/components/AttachmentPickerBottomSheetHandle';\nexport * from './AttachmentPicker/components/AttachmentPickerError';\nexport * from './AttachmentPicker/components/AttachmentPickerErrorImage';\nexport * from './AttachmentPicker/components/AttachmentSelectionBar';\nexport * from './AttachmentPicker/components/CameraSelectorIcon';\nexport * from './AttachmentPicker/components/FileSelectorIcon';\nexport * from './AttachmentPicker/components/ImageOverlaySelectedComponent';\nexport * from './AttachmentPicker/components/ImageSelectorIcon';\n\nexport * from './AutoCompleteInput/AutoCompleteInput';\nexport * from './AutoCompleteInput/AutoCompleteSuggestionHeader';\nexport * from './AutoCompleteInput/AutoCompleteSuggestionItem';\nexport * from './AutoCompleteInput/AutoCompleteSuggestionList';\n\nexport * from './Avatar/Avatar';\nexport * from './Avatar/GroupAvatar';\n\nexport * from './Channel/Channel';\nexport * from './Channel/hooks/useCreateChannelContext';\nexport * from './Channel/hooks/useCreateInputMessageInputContext';\nexport * from './Channel/hooks/useCreateMessagesContext';\nexport * from './Channel/hooks/useCreatePaginatedMessageListContext';\nexport * from './Channel/hooks/useCreateThreadContext';\nexport * from './Channel/hooks/useCreateTypingContext';\nexport * from './Channel/hooks/useTargetedMessage';\n\nexport * from './ChannelList/ChannelList';\nexport * from './ChannelList/ChannelListFooterLoadingIndicator';\nexport * from './ChannelList/ChannelListHeaderErrorIndicator';\nexport * from './ChannelList/ChannelListHeaderNetworkDownIndicator';\nexport * from './ChannelList/ChannelListLoadingIndicator';\nexport * from './ChannelList/ChannelListMessenger';\nexport * from './ChannelList/hooks/listeners/useAddedToChannelNotification';\nexport * from './ChannelList/hooks/listeners/useChannelDeleted';\nexport * from './ChannelList/hooks/listeners/useChannelHidden';\nexport * from './ChannelList/hooks/listeners/useChannelTruncated';\nexport * from './ChannelList/hooks/listeners/useChannelUpdated';\nexport * from './ChannelList/hooks/listeners/useConnectionRecovered';\nexport * from './ChannelList/hooks/listeners/useNewMessage';\nexport * from './ChannelList/hooks/listeners/useNewMessageNotification';\nexport * from './ChannelList/hooks/listeners/useRemovedFromChannelNotification';\nexport * from './ChannelList/hooks/listeners/useUserPresence';\nexport * from './ChannelList/hooks/useCreateChannelsContext';\nexport * from './ChannelList/hooks/usePaginatedChannels';\nexport * from './ChannelList/Skeleton';\n\nexport * from './ChannelPreview/ChannelAvatar';\nexport * from './ChannelPreview/ChannelPreview';\nexport * from './ChannelPreview/ChannelPreviewMessenger';\nexport * from './ChannelPreview/ChannelPreviewMessage';\nexport * from './ChannelPreview/ChannelPreviewStatus';\nexport * from './ChannelPreview/ChannelPreviewTitle';\nexport * from './ChannelPreview/ChannelPreviewUnreadCount';\nexport * from './ChannelPreview/hooks/useChannelPreviewDisplayAvatar';\nexport * from './ChannelPreview/hooks/useChannelPreviewDisplayName';\nexport * from './ChannelPreview/hooks/useChannelPreviewDisplayPresence';\nexport * from './ChannelPreview/hooks/useLatestMessagePreview';\n\nexport * from './Chat/Chat';\nexport * from './Chat/hooks/useCreateChatContext';\nexport * from './Chat/hooks/useIsOnline';\nexport * from './Chat/hooks/useMutedUsers';\n\nexport * from './ImageGallery/ImageGallery';\nexport * from './ImageGallery/components/AnimatedGalleryImage';\nexport * from './ImageGallery/components/AnimatedGalleryVideo';\nexport * from './ImageGallery/components/ImageGalleryFooter';\nexport * from './ImageGallery/components/ImageGalleryHeader';\nexport * from './ImageGallery/components/ImageGalleryOverlay';\nexport * from './ImageGallery/components/ImageGrid';\nexport * from './ImageGallery/components/ImageGridHandle';\n\nexport * from './Indicators/EmptyStateIndicator';\nexport * from './Indicators/LoadingDot';\nexport * from './Indicators/LoadingDots';\nexport * from './Indicators/LoadingErrorIndicator';\nexport * from './Indicators/LoadingIndicator';\n\nexport * from './KeyboardCompatibleView/KeyboardCompatibleView';\n\nexport * from './Message/hooks/useCreateMessageContext';\nexport * from './Message/hooks/useMessageActions';\nexport * from './Message/hooks/useMessageActionHandlers';\nexport * from './Message/Message';\nexport * from './Message/MessageSimple/MessageAvatar';\nexport * from './Message/MessageSimple/MessageContent';\nexport * from './Message/MessageSimple/MessageDeleted';\nexport * from './Message/MessageSimple/MessageFooter';\nexport * from './Message/MessageSimple/MessagePinnedHeader';\nexport * from './Message/MessageSimple/MessageReplies';\nexport * from './Message/MessageSimple/MessageRepliesAvatars';\nexport * from './Message/MessageSimple/MessageSimple';\nexport * from './Message/MessageSimple/MessageStatus';\nexport * from './Message/MessageSimple/MessageTextContainer';\nexport * from './Message/MessageSimple/ReactionList';\nexport * from './Message/MessageSimple/utils/renderText';\nexport * from './Message/utils/messageActions';\nexport * from './Message/utils/removeReservedFields';\n\nexport * from './MessageInput/AttachButton';\nexport * from './MessageInput/CommandsButton';\nexport * from './MessageInput/CooldownTimer';\nexport * from './MessageInput/FileUploadPreview';\nexport * from './MessageInput/ImageUploadPreview';\nexport * from './MessageInput/InputButtons';\nexport * from './MessageInput/MessageInput';\nexport * from './MessageInput/MoreOptionsButton';\nexport * from './MessageInput/SendButton';\nexport * from './MessageInput/ShowThreadMessageInChannelButton';\nexport * from './MessageInput/UploadProgressIndicator';\n\nexport * from './MessageList/DateHeader';\nexport * from './MessageList/hooks/useMessageList';\nexport * from './MessageList/hooks/useTypingString';\nexport * from './MessageList/InlineDateSeparator';\nexport * from './MessageList/InlineLoadingMoreIndicator';\nexport * from './MessageList/InlineLoadingMoreRecentIndicator';\nexport * from './MessageList/InlineLoadingMoreThreadIndicator';\nexport * from './MessageList/InlineUnreadIndicator';\nexport * from './MessageList/MessageList';\nexport * from './MessageList/MessageSystem';\nexport * from './MessageList/NetworkDownIndicator';\nexport * from './MessageList/ScrollToBottomButton';\nexport * from './MessageList/TypingIndicator';\nexport * from './MessageList/TypingIndicatorContainer';\nexport * from './MessageList/utils/getDateSeparators';\nexport * from './MessageList/utils/getGroupStyles';\nexport * from './MessageList/utils/getLastReceivedMessage';\nexport * from './MessageList/utils/getReadStates';\n\nexport * from './MessageOverlay/hooks/useMessageActionAnimation';\nexport * from './MessageOverlay/MessageActionList';\nexport * from './MessageOverlay/MessageActionListItem';\nexport * from './MessageOverlay/MessageOverlay';\nexport * from './MessageOverlay/OverlayBackdrop';\nexport * from './MessageOverlay/OverlayReactions';\nexport * from './MessageOverlay/OverlayReactionsAvatar';\nexport * from './MessageOverlay/OverlayReactionList';\n\nexport * from './Reply/Reply';\n\nexport * from './Spinner/Spinner';\n\nexport * from './Thread/Thread';\nexport * from './Th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AAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAEA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAEA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAEA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAEA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAEA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export * from './Attachment/Attachment';\nexport * from './Attachment/AttachmentActions';\nexport * from './Attachment/Card';\nexport * from './Attachment/FileAttachment';\nexport * from './Attachment/FileAttachmentGroup';\nexport * from './Attachment/FileIcon';\nexport * from './Attachment/Gallery';\nexport * from './Attachment/Giphy';\nexport * from './Attachment/VideoThumbnail';\nexport * from './Attachment/utils/buildGallery/buildGallery';\n\nexport * from './AttachmentPicker/AttachmentPicker';\nexport * from './AttachmentPicker/components/AttachmentPickerBottomSheetHandle';\nexport * from './AttachmentPicker/components/AttachmentPickerError';\nexport * from './AttachmentPicker/components/AttachmentPickerErrorImage';\nexport * from './AttachmentPicker/components/AttachmentSelectionBar';\nexport * from './AttachmentPicker/components/CameraSelectorIcon';\nexport * from './AttachmentPicker/components/FileSelectorIcon';\nexport * from './AttachmentPicker/components/ImageOverlaySelectedComponent';\nexport * from './AttachmentPicker/components/ImageSelectorIcon';\n\nexport * from './AutoCompleteInput/AutoCompleteInput';\nexport * from './AutoCompleteInput/AutoCompleteSuggestionHeader';\nexport * from './AutoCompleteInput/AutoCompleteSuggestionItem';\nexport * from './AutoCompleteInput/AutoCompleteSuggestionList';\n\nexport * from './Avatar/Avatar';\nexport * from './Avatar/GroupAvatar';\n\nexport * from './Channel/Channel';\nexport * from './Channel/hooks/useCreateChannelContext';\nexport * from './Channel/hooks/useCreateInputMessageInputContext';\nexport * from './Channel/hooks/useCreateMessagesContext';\nexport * from './Channel/hooks/useCreatePaginatedMessageListContext';\nexport * from './Channel/hooks/useCreateThreadContext';\nexport * from './Channel/hooks/useCreateTypingContext';\nexport * from './Channel/hooks/useTargetedMessage';\n\nexport * from './ChannelList/ChannelList';\nexport * from './ChannelList/ChannelListFooterLoadingIndicator';\nexport * from './ChannelList/ChannelListHeaderErrorIndicator';\nexport * from './ChannelList/ChannelListHeaderNetworkDownIndicator';\nexport * from './ChannelList/ChannelListLoadingIndicator';\nexport * from './ChannelList/ChannelListMessenger';\nexport * from './ChannelList/hooks/listeners/useAddedToChannelNotification';\nexport * from './ChannelList/hooks/listeners/useChannelDeleted';\nexport * from './ChannelList/hooks/listeners/useChannelHidden';\nexport * from './ChannelList/hooks/listeners/useChannelTruncated';\nexport * from './ChannelList/hooks/listeners/useChannelUpdated';\nexport * from './ChannelList/hooks/listeners/useConnectionRecovered';\nexport * from './ChannelList/hooks/listeners/useNewMessage';\nexport * from './ChannelList/hooks/listeners/useNewMessageNotification';\nexport * from './ChannelList/hooks/listeners/useRemovedFromChannelNotification';\nexport * from './ChannelList/hooks/listeners/useUserPresence';\nexport * from './ChannelList/hooks/useCreateChannelsContext';\nexport * from './ChannelList/hooks/usePaginatedChannels';\nexport * from './ChannelList/Skeleton';\n\nexport * from './ChannelPreview/ChannelAvatar';\nexport * from './ChannelPreview/ChannelPreview';\nexport * from './ChannelPreview/ChannelPreviewMessenger';\nexport * from './ChannelPreview/ChannelPreviewMessage';\nexport * from './ChannelPreview/ChannelPreviewStatus';\nexport * from './ChannelPreview/ChannelPreviewTitle';\nexport * from './ChannelPreview/ChannelPreviewUnreadCount';\nexport * from './ChannelPreview/hooks/useChannelPreviewDisplayAvatar';\nexport * from './ChannelPreview/hooks/useChannelPreviewDisplayName';\nexport * from './ChannelPreview/hooks/useChannelPreviewDisplayPresence';\nexport * from './ChannelPreview/hooks/useLatestMessagePreview';\n\nexport * from './Chat/Chat';\nexport * from './Chat/hooks/useCreateChatContext';\nexport * from './Chat/hooks/useIsOnline';\nexport * from './Chat/hooks/useMutedUsers';\n\nexport * from './ImageGallery/ImageGallery';\nexport * from './ImageGallery/components/AnimatedGalleryImage';\nexport * from './ImageGallery/components/AnimatedGalleryVideo';\nexport * from './ImageGallery/components/ImageGalleryFooter';\nexport * from './ImageGallery/components/ImageGalleryHeader';\nexport * from './ImageGallery/components/ImageGalleryOverlay';\nexport * from './ImageGallery/components/ImageGrid';\nexport * from './ImageGallery/components/ImageGridHandle';\n\nexport * from './Indicators/EmptyStateIndicator';\nexport * from './Indicators/LoadingDot';\nexport * from './Indicators/LoadingDots';\nexport * from './Indicators/LoadingErrorIndicator';\nexport * from './Indicators/LoadingIndicator';\n\nexport * from './KeyboardCompatibleView/KeyboardCompatibleView';\n\nexport * from './Message/hooks/useCreateMessageContext';\nexport * from './Message/hooks/useMessageActions';\nexport * from './Message/hooks/useMessageActionHandlers';\nexport * from './Message/Message';\nexport * from './Message/MessageSimple/MessageAvatar';\nexport * from './Message/MessageSimple/MessageContent';\nexport * from './Message/MessageSimple/MessageDeleted';\nexport * from './Message/MessageSimple/MessageFooter';\nexport * from './Message/MessageSimple/MessagePinnedHeader';\nexport * from './Message/MessageSimple/MessageReplies';\nexport * from './Message/MessageSimple/MessageRepliesAvatars';\nexport * from './Message/MessageSimple/MessageSimple';\nexport * from './Message/MessageSimple/MessageStatus';\nexport * from './Message/MessageSimple/MessageTextContainer';\nexport * from './Message/MessageSimple/ReactionList';\nexport * from './Message/MessageSimple/utils/renderText';\nexport * from './Message/utils/messageActions';\nexport * from './Message/utils/removeReservedFields';\n\nexport * from './MessageInput/AttachButton';\nexport * from './MessageInput/CommandsButton';\nexport * from './MessageInput/CooldownTimer';\nexport * from './MessageInput/FileUploadPreview';\nexport * from './MessageInput/AudioAttachmentUploadPreview';\nexport * from './MessageInput/ImageUploadPreview';\nexport * from './MessageInput/InputButtons';\nexport * from './MessageInput/MessageInput';\nexport * from './MessageInput/MoreOptionsButton';\nexport * from './MessageInput/SendButton';\nexport * from './MessageInput/ShowThreadMessageInChannelButton';\nexport * from './MessageInput/UploadProgressIndicator';\n\nexport * from './MessageList/DateHeader';\nexport * from './MessageList/hooks/useMessageList';\nexport * from './MessageList/hooks/useTypingString';\nexport * from './MessageList/InlineDateSeparator';\nexport * from './MessageList/InlineLoadingMoreIndicator';\nexport * from './MessageList/InlineLoadingMoreRecentIndicator';\nexport * from './MessageList/InlineLoadingMoreThreadIndicator';\nexport * from './MessageList/InlineUnreadIndicator';\nexport * from './MessageList/MessageList';\nexport * from './MessageList/MessageSystem';\nexport * from './MessageList/NetworkDownIndicator';\nexport * from './MessageList/ScrollToBottomButton';\nexport * from './MessageList/TypingIndicator';\nexport * from './MessageList/TypingIndicatorContainer';\nexport * from './MessageList/utils/getDateSeparators';\nexport * from './MessageList/utils/getGroupStyles';\nexport * from './MessageList/utils/getLastReceivedMessage';\nexport * from './MessageList/utils/getReadStates';\n\nexport * from './MessageOverlay/hooks/useMessageActionAnimation';\nexport * from './MessageOverlay/MessageActionList';\nexport * from './MessageOverlay/MessageActionListItem';\nexport * from './MessageOverlay/MessageOverlay';\nexport * from './MessageOverlay/OverlayBackdrop';\nexport * from './MessageOverlay/OverlayReactions';\nexport * from './MessageOverlay/OverlayReactionsAvatar';\nexport * from './MessageOverlay/OverlayReactionList';\n\nexport * from './ProgressControl/ProgressControl';\n\nexport * from './Reply/Reply';\n\nexport * from './Spinner/Spinner';\n\nexport * from './Thread/Thread';\nexport * from './Thread/components/ThreadFooterComponent';\n"]}
|
|
@@ -991,10 +991,13 @@ var MessageInputProvider = function MessageInputProvider(_ref) {
|
|
|
991
991
|
});
|
|
992
992
|
fileState = isBlockedFileExtension || isBlockedFileMimeType ? _utils.FileState.NOT_SUPPORTED : _utils.FileState.UPLOADING;
|
|
993
993
|
newFile = {
|
|
994
|
+
duration: 0,
|
|
994
995
|
file: (0, _extends2["default"])({}, file, {
|
|
995
996
|
type: mimeType || (file == null ? void 0 : file.type)
|
|
996
997
|
}),
|
|
997
998
|
id: id,
|
|
999
|
+
paused: true,
|
|
1000
|
+
progress: 0,
|
|
998
1001
|
state: fileState
|
|
999
1002
|
};
|
|
1000
1003
|
_context6.next = 8;
|
|
@@ -1131,7 +1134,7 @@ var MessageInputProvider = function MessageInputProvider(_ref) {
|
|
|
1131
1134
|
__self: _this,
|
|
1132
1135
|
__source: {
|
|
1133
1136
|
fileName: _jsxFileName,
|
|
1134
|
-
lineNumber:
|
|
1137
|
+
lineNumber: 1147,
|
|
1135
1138
|
columnNumber: 5
|
|
1136
1139
|
}
|
|
1137
1140
|
}, children);
|
|
@@ -1158,7 +1161,7 @@ var withMessageInputContext = function withMessageInputContext(Component) {
|
|
|
1158
1161
|
__self: _this,
|
|
1159
1162
|
__source: {
|
|
1160
1163
|
fileName: _jsxFileName,
|
|
1161
|
-
lineNumber:
|
|
1164
|
+
lineNumber: 1187,
|
|
1162
1165
|
columnNumber: 12
|
|
1163
1166
|
}
|
|
1164
1167
|
}));
|