-
Notifications
You must be signed in to change notification settings - Fork 139
/
rollup.module-exports.mjs
251 lines (230 loc) · 16.6 KB
/
rollup.module-exports.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
export default {
// legacy
index: 'src/index.ts',
// lame-js
// remove when they remove 1.2.2
'lame.all': 'src/_externals/lamejs/lame.all.js',
// Easy to use app
App: 'src/modules/App/index.tsx',
// SendbirdProvider
SendbirdProvider: 'src/lib/Sendbird.tsx',
sendbirdSelectors: 'src/lib/selectors.ts',
useSendbirdStateContext: 'src/hooks/useSendbirdStateContext.tsx',
withSendbird: 'src/lib/SendbirdSdkContext.tsx',
// Voice message
'VoiceRecorder/context': 'src/hooks/VoiceRecorder/index.tsx',
'VoiceRecorder/useVoiceRecorder': 'src/hooks/VoiceRecorder/useVoiceRecorder.tsx',
'VoicePlayer/context': 'src/hooks/VoicePlayer/index.tsx',
'VoicePlayer/useVoicePlayer': 'src/hooks/VoicePlayer/useVoicePlayer.tsx',
// handlers - experimental
'handlers/ConnectionHandler': 'src/lib/handlers/ConnectionHandler.ts',
'handlers/GroupChannelHandler': 'src/lib/handlers/GroupChannelHandler.ts',
'handlers/OpenChannelHandler': 'src/lib/handlers/OpenChannelHandler.ts',
'handlers/UserEventHandler': 'src/lib/handlers/UserEventHandler.ts',
'handlers/SessionHandler': 'src/lib/handlers/SessionHandler.ts',
// pubSub
'pubSub/topics': 'src/lib/pubSub/topics.ts',
// hooks
'hooks/useModal': 'src/hooks/useModal/index.tsx',
'hooks/useLocalization': 'src/hooks/useLocalization.ts',
// utils
'utils/message/getOutgoingMessageState': 'src/utils/exports/getOutgoingMessageState.ts',
'utils/message/isVoiceMessage': 'src/utils/isVoiceMessage.ts',
// ChannelList - legacy
ChannelList: 'src/modules/ChannelList/index.tsx',
'ChannelList/context': 'src/modules/ChannelList/context/ChannelListProvider.tsx',
'ChannelList/components/AddChannel': 'src/modules/ChannelList/components/AddChannel/index.tsx',
'ChannelList/components/ChannelListUI': 'src/modules/ChannelList/components/ChannelListUI/index.tsx',
'ChannelList/components/ChannelListHeader': 'src/modules/ChannelList/components/ChannelListHeader/index.tsx',
'ChannelList/components/ChannelPreview': 'src/modules/ChannelList/components/ChannelPreview/index.tsx',
'ChannelList/components/ChannelPreviewAction': 'src/modules/ChannelList/components/ChannelPreviewAction.tsx',
// GroupChannelList
GroupChannelList: 'src/modules/GroupChannelList/index.tsx',
'GroupChannelList/context': 'src/modules/GroupChannelList/context/GroupChannelListProvider.tsx',
'GroupChannelList/components/AddGroupChannel': 'src/modules/GroupChannelList/components/AddGroupChannel/index.tsx',
'GroupChannelList/components/GroupChannelListUI': 'src/modules/GroupChannelList/components/GroupChannelListUI/index.tsx',
'GroupChannelList/components/GroupChannelListHeader': 'src/modules/GroupChannelList/components/GroupChannelListHeader/index.tsx',
'GroupChannelList/components/GroupChannelListItem': 'src/modules/GroupChannelList/components/GroupChannelListItem/index.tsx',
'GroupChannelList/components/GroupChannelPreviewAction': 'src/modules/GroupChannelList/components/GroupChannelPreviewAction.tsx',
// ChannelSettings
ChannelSettings: 'src/modules/ChannelSettings/index.tsx',
'ChannelSettings/context': 'src/modules/ChannelSettings/context/ChannelSettingsProvider.tsx',
'ChannelSettings/hooks/useMenuList': 'src/modules/ChannelSettings/components/ChannelSettingsUI/hooks/useMenuItems.tsx',
'ChannelSettings/components/ChannelProfile': 'src/modules/ChannelSettings/components/ChannelProfile/index.tsx',
'ChannelSettings/components/ChannelSettingsUI': 'src/modules/ChannelSettings/components/ChannelSettingsUI/index.tsx',
'ChannelSettings/components/ChannelSettingsHeader': 'src/modules/ChannelSettings/components/ChannelSettingsUI/ChannelSettingsHeader.tsx',
'ChannelSettings/components/ChannelSettingMenuList': 'src/modules/ChannelSettings/components/ChannelSettingsUI/MenuListByRole.tsx',
'ChannelSettings/components/ChannelSettingsMenuItem': 'src/modules/ChannelSettings/components/ChannelSettingsUI/MenuItem.tsx',
'ChannelSettings/components/EditDetailsModal': 'src/modules/ChannelSettings/components/EditDetailsModal/index.tsx',
'ChannelSettings/components/LeaveChannel': 'src/modules/ChannelSettings/components/LeaveChannel/index.tsx',
'ChannelSettings/components/UserListItem': 'src/modules/ChannelSettings/components/UserListItem/index.tsx',
// legacy - not using below internally
'ChannelSettings/components/UserPanel': 'src/modules/ChannelSettings/components/UserPanel/index.tsx',
'ChannelSettings/components/ModerationPanel': 'src/modules/ChannelSettings/components/ModerationPanel/index.tsx',
// Channel - legacy
Channel: 'src/modules/Channel/index.tsx',
'Channel/context': 'src/modules/Channel/context/ChannelProvider.tsx',
'Channel/hooks/useInitialMessagesFetch': 'src/modules/Channel/context/hooks/useInitialMessagesFetch.ts',
'Channel/hooks/useHandleUploadFiles': 'src/modules/Channel/context/hooks/useHandleUploadFiles.tsx',
'Channel/utils/getMessagePartsInfo': 'src/modules/GroupChannel/components/MessageList/getMessagePartsInfo.ts', // FIXME: leave for legacy
'Channel/utils/compareMessagesForGrouping': 'src/utils/messages.ts', // TODO: export from global utils path
'Channel/components/ChannelHeader': 'src/modules/Channel/components/ChannelHeader/index.tsx',
'Channel/components/ChannelUI': 'src/modules/Channel/components/ChannelUI/index.tsx',
'Channel/components/FileViewer': 'src/modules/Channel/components/FileViewer/index.tsx',
'Channel/components/FrozenNotification': 'src/modules/Channel/components/FrozenNotification/index.tsx',
'Channel/components/Message': 'src/modules/Channel/components/Message/index.tsx',
'Channel/components/MessageInput': 'src/modules/Channel/components/MessageInputWrapper/index.tsx',
'Channel/components/MessageInputWrapper': 'src/modules/Channel/components/MessageInputWrapper/index.tsx',
'Channel/components/MessageList': 'src/modules/Channel/components/MessageList/index.tsx',
'Channel/components/RemoveMessageModal': 'src/modules/Channel/components/RemoveMessageModal/index.tsx',
'Channel/components/TypingIndicator': 'src/modules/Channel/components/TypingIndicator.tsx',
'Channel/components/UnreadCount': 'src/modules/Channel/components/UnreadCount/index.tsx',
'Channel/components/SuggestedMentionList': 'src/modules/Channel/components/SuggestedMentionList/index.tsx',
GroupChannel: 'src/modules/GroupChannel/index.tsx',
'GroupChannel/context': 'src/modules/GroupChannel/context/GroupChannelProvider.tsx',
'GroupChannel/components/GroupChannelHeader': 'src/modules/GroupChannel/components/GroupChannelHeader/index.tsx',
'GroupChannel/components/GroupChannelUI': 'src/modules/GroupChannel/components/GroupChannelUI/index.tsx',
'GroupChannel/components/FileViewer': 'src/modules/GroupChannel/components/FileViewer/index.tsx',
'GroupChannel/components/FrozenNotification': 'src/modules/GroupChannel/components/FrozenNotification/index.tsx',
'GroupChannel/components/Message': 'src/modules/GroupChannel/components/Message/index.tsx',
'GroupChannel/components/MessageInputWrapper': 'src/modules/GroupChannel/components/MessageInputWrapper/index.tsx',
'GroupChannel/components/MessageList': 'src/modules/GroupChannel/components/MessageList/index.tsx',
'GroupChannel/components/RemoveMessageModal': 'src/modules/GroupChannel/components/RemoveMessageModal/index.tsx',
'GroupChannel/components/TypingIndicator': 'src/modules/GroupChannel/components/TypingIndicator.tsx',
'GroupChannel/components/UnreadCount': 'src/modules/GroupChannel/components/UnreadCount/index.tsx',
'GroupChannel/components/SuggestedMentionList': 'src/modules/GroupChannel/components/SuggestedMentionList/index.tsx',
'GroupChannel/components/SuggestedReplies': 'src/modules/GroupChannel/components/SuggestedReplies/index.tsx',
// OpenChannel
OpenChannel: 'src/modules/OpenChannel/index.tsx',
'OpenChannel/context': 'src/modules/OpenChannel/context/OpenChannelProvider.tsx',
'OpenChannel/components/FrozenChannelNotification': 'src/modules/OpenChannel/components/FrozenChannelNotification/index.tsx',
'OpenChannel/components/OpenChannelHeader': 'src/modules/OpenChannel/components/OpenChannelHeader/index.tsx',
'OpenChannel/components/OpenChannelInput': 'src/modules/OpenChannel/components/OpenChannelInput/index.tsx',
'OpenChannel/components/OpenChannelMessage': 'src/modules/OpenChannel/components/OpenChannelMessage/index.tsx',
'OpenChannel/components/OpenChannelMessageList': 'src/modules/OpenChannel/components/OpenChannelMessageList/index.tsx',
'OpenChannel/components/OpenChannelUI': 'src/modules/OpenChannel/components/OpenChannelUI/index.tsx',
// OpenChannelList
OpenChannelList: 'src/modules/OpenChannelList/index.tsx',
'OpenChannelList/context': 'src/modules/OpenChannelList/context/OpenChannelListProvider.tsx',
'OpenChannelList/components/OpenChannelListUI': 'src/modules/OpenChannelList/components/OpenChannelListUI/index.tsx',
'OpenChannelList/components/OpenChannelPreview': 'src/modules/OpenChannelList/components/OpenChannelPreview/index.tsx',
// CreateOpenChannel
CreateOpenChannel: 'src/modules/CreateOpenChannel/index.tsx',
'CreateOpenChannel/context': 'src/modules/CreateOpenChannel/context/CreateOpenChannelProvider.tsx',
'CreateOpenChannel/components/CreateOpenChannelUI': 'src/modules/CreateOpenChannel/components/CreateOpenChannelUI/index.tsx',
// OpenChannelSettings
OpenChannelSettings: 'src/modules/OpenChannelSettings/index.tsx',
'OpenChannelSettings/context': 'src/modules/OpenChannelSettings/context/OpenChannelSettingsProvider.tsx',
'OpenChannelSettings/components/EditDetailsModal': 'src/modules/OpenChannelSettings/components/EditDetailsModal.tsx',
'OpenChannelSettings/components/OpenChannelProfile': 'src/modules/OpenChannelSettings/components/OpenChannelProfile/index.tsx',
'OpenChannelSettings/components/OpenChannelSettingsUI': 'src/modules/OpenChannelSettings/components/OpenChannelSettingsUI/index.tsx',
'OpenChannelSettings/components/OperatorUI': 'src/modules/OpenChannelSettings/components/OperatorUI/index.tsx',
'OpenChannelSettings/components/ParticipantUI': 'src/modules/OpenChannelSettings/components/ParticipantUI/index.tsx',
// MessageSearch
MessageSearch: 'src/modules/MessageSearch/index.tsx',
'MessageSearch/context': 'src/modules/MessageSearch/context/MessageSearchProvider.tsx',
'MessageSearch/components/MessageSearchUI': 'src/modules/MessageSearch/components/MessageSearchUI/index.tsx',
// Message
'Message/context': 'src/modules/Message/context/MessageProvider.tsx',
'Message/hooks/useDirtyGetMentions': 'src/modules/Message/hooks/useDirtyGetMentions.ts',
// Thread
Thread: 'src/modules/Thread/index.tsx',
'Thread/context': 'src/modules/Thread/context/ThreadProvider.tsx',
'Thread/context/types': 'src/modules/Thread/types.tsx',
'Thread/components/ThreadUI': 'src/modules/Thread/components/ThreadUI/index.tsx',
'Thread/components/ThreadHeader': 'src/modules/Thread/components/ThreadHeader/index.tsx',
'Thread/components/ParentMessageInfo': 'src/modules/Thread/components/ParentMessageInfo/index.tsx',
'Thread/components/ParentMessageInfoItem': 'src/modules/Thread/components/ParentMessageInfo/ParentMessageInfoItem.tsx',
'Thread/components/ThreadList': 'src/modules/Thread/components/ThreadList/index.tsx',
'Thread/components/ThreadListItem': 'src/modules/Thread/components/ThreadList/ThreadListItem.tsx',
'Thread/components/ThreadMessageInput': 'src/modules/Thread/components/ThreadMessageInput/index.tsx',
// CreateChannel
CreateChannel: 'src/modules/CreateChannel/index.tsx',
'CreateChannel/context': 'src/modules/CreateChannel/context/CreateChannelProvider.tsx',
'CreateChannel/components/CreateChannelUI': 'src/modules/CreateChannel/components/CreateChannelUI/index.tsx',
'CreateChannel/components/InviteUsers': 'src/modules/CreateChannel/components/InviteUsers/index.tsx',
'CreateChannel/components/SelectChannelType': 'src/modules/CreateChannel/components/SelectChannelType.tsx',
// EditUserProfile
EditUserProfile: 'src/modules/EditUserProfile/index.tsx',
'EditUserProfile/context': 'src/modules/EditUserProfile/context/EditUserProfileProvider.tsx',
'EditUserProfile/components/EditUserProfileUI': 'src/modules/EditUserProfile/components/EditUserProfileUI/index.tsx',
// UI Components
'ui/Accordion': 'src/ui/Accordion/index.tsx',
'ui/AccordionGroup': 'src/ui/Accordion/AccordionGroup.tsx',
'ui/AdminMessage': 'src/ui/AdminMessage/index.tsx',
'ui/Avatar': 'src/ui/Avatar/index.tsx',
'ui/MutedAvatarOverlay': 'src/ui/Avatar/MutedAvatarOverlay.tsx',
'ui/Button': 'src/ui/Button/index.tsx',
'ui/Badge': 'src/ui/Badge/index.tsx',
'ui/BottomSheet': 'src/ui/BottomSheet/index.tsx',
'ui/ChannelAvatar': 'src/ui/ChannelAvatar/index.tsx',
'ui/OpenChannelAvatar': 'src/ui/ChannelAvatar/OpenChannelAvatar.tsx',
'ui/Checkbox': 'src/ui/Checkbox/index.tsx',
'ui/ConnectionStatus': 'src/ui/ConnectionStatus/index.tsx',
'ui/ContextMenu': 'src/ui/ContextMenu/index.tsx',
'ui/DateSeparator': 'src/ui/DateSeparator/index.tsx',
'ui/EmojiReactions': 'src/ui/EmojiReactions/index.tsx',
'ui/FileMessageItemBody': 'src/ui/FileMessageItemBody/index.tsx',
'ui/FileViewer': 'src/ui/FileViewer/index.tsx',
'ui/Header': 'src/ui/Header/index.tsx',
'ui/Icon': 'src/ui/Icon/index.tsx',
'ui/IconButton': 'src/ui/IconButton/index.tsx',
'ui/ImageRenderer': 'src/ui/ImageRenderer/index.tsx',
'ui/Input': 'src/ui/Input/index.tsx',
'ui/Label': 'src/ui/Label/index.tsx',
'ui/LinkLabel': 'src/ui/LinkLabel/index.tsx',
'ui/Loader': 'src/ui/Loader/index.tsx',
'ui/MentionUserLabel': 'src/ui/MentionUserLabel/index.tsx',
'ui/MentionLabel': 'src/ui/MentionLabel/index.tsx',
'ui/MessageContent': 'src/ui/MessageContent/index.tsx',
// MessageInput is a special case - shouldbe turned into a module
'ui/MessageInput': 'src/ui/MessageInput/index.tsx',
'ui/MessageInput/hooks/usePaste': 'src/ui/MessageInput/hooks/usePaste/index.ts',
'ui/MessageItemMenu': 'src/ui/MessageItemMenu/index.tsx',
'ui/MessageItemReactionMenu': 'src/ui/MessageItemReactionMenu/index.tsx',
'ui/MessageMenu': 'src/ui/MessageMenu/index.tsx',
'ui/MessageSearchFileItem': 'src/ui/MessageSearchFileItem/index.tsx',
'ui/MessageSearchItem': 'src/ui/MessageSearchItem/index.tsx',
'ui/MessageStatus': 'src/ui/MessageStatus/index.tsx',
'ui/MessageTemplate': 'src/ui/MessageTemplate/index.tsx',
'ui/TemplateMessageItemBody': 'src/ui/TemplateMessageItemBody/index.tsx',
'ui/FallbackTemplateMessageItemBody.tsx': 'src/ui/TemplateMessageItemBody/FallbackTemplateMessageItemBody.tsx',
'ui/LoadingTemplateMessageItemBody.tsx': 'src/ui/TemplateMessageItemBody/LoadingTemplateMessageItemBody.tsx',
'ui/Modal': 'src/ui/Modal/index.tsx',
'ui/OGMessageItemBody': 'src/ui/OGMessageItemBody/index.tsx',
'ui/OpenChannelAdminMessage': 'src/ui/OpenChannelAdminMessage/index.tsx',
// should we rename it to OpenChannel?
'ui/OpenchannelConversationHeader': 'src/ui/OpenchannelConversationHeader/index.tsx',
'ui/OpenchannelFileMessage': 'src/ui/OpenchannelFileMessage/index.tsx',
'ui/OpenchannelOGMessage': 'src/ui/OpenchannelOGMessage/index.tsx',
'ui/OpenchannelThumbnailMessage': 'src/ui/OpenchannelThumbnailMessage/index.tsx',
'ui/OpenchannelUserMessage': 'src/ui/OpenchannelUserMessage/index.tsx',
'ui/PlaceHolder': 'src/ui/PlaceHolder/index.tsx',
'ui/PlaybackTime': 'src/ui/PlaybackTime/index.tsx',
'ui/ProgressBar': 'src/ui/ProgressBar/index.tsx',
'ui/QuoteMessage': 'src/ui/QuoteMessage/index.tsx',
'ui/QuoteMessageInput': 'src/ui/QuoteMessageInput/index.tsx',
'ui/ReactionBadge': 'src/ui/ReactionBadge/index.tsx',
'ui/ReactionButton': 'src/ui/ReactionButton/index.tsx',
'ui/SortByRow': 'src/ui/SortByRow/index.tsx',
'ui/TextButton': 'src/ui/TextButton/index.tsx',
'ui/TextMessageItemBody': 'src/ui/TextMessageItemBody/index.tsx',
'ui/ThreadReplies': 'src/ui/ThreadReplies/index.tsx',
'ui/ThumbnailMessageItemBody': 'src/ui/ThumbnailMessageItemBody/index.tsx',
'ui/Toggle': 'src/ui/Toggle/index.tsx',
'ui/Tooltip': 'src/ui/Tooltip/index.tsx',
'ui/TooltipWrapper': 'src/ui/TooltipWrapper/index.tsx',
'ui/TypingIndicatorBubble': 'src/ui/TypingIndicatorBubble/index.tsx',
'ui/UnknownMessageItemBody': 'src/ui/UnknownMessageItemBody/index.tsx',
'ui/UserListItem': 'src/ui/UserListItem/index.tsx',
'ui/UserListItemMenu': 'src/ui/UserListItemMenu/index.tsx',
'ui/UserProfile': 'src/ui/UserProfile/index.tsx',
'ui/VoiceMessageInput': 'src/ui/VoiceMessageInput/index.tsx',
'ui/VoiceMessageItemBody': 'src/ui/VoiceMessageItemBody/index.tsx',
'ui/Word': 'src/ui/Word/index.tsx',
'ui/FeedbackIconButton': 'src/ui/FeedbackIconButton/index.tsx',
'ui/MobileFeedbackMenu': 'src/ui/MobileFeedbackMenu/index.tsx',
'ui/MobileMenu': 'src/ui/MobileMenu/index.tsx',
'ui/MessageFeedbackModal': 'src/ui/MessageFeedbackModal/index.tsx',
'ui/MessageFeedbackFailedModal': 'src/ui/MessageFeedbackFailedModal/index.tsx',
};