@messenger-box/platform-browser 0.0.1-alpha.42 → 0.0.1-alpha.420

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/CHANGELOG.md +540 -27
  2. package/jest.config.js +23 -7
  3. package/lib/components/InboxMessage/InboxDetails/index.d.ts +2 -0
  4. package/lib/components/InboxMessage/InboxDetails/style.d.ts +1 -0
  5. package/lib/components/InboxMessage/InboxSidebar/index.d.ts +11 -0
  6. package/lib/components/InboxMessage/InboxSidebar/styles.d.ts +1 -0
  7. package/lib/components/InboxMessage/Messages/index.d.ts +2 -0
  8. package/lib/components/InboxMessage/Messages/styles.d.ts +80 -0
  9. package/lib/components/InboxMessage/MessagesList/index.d.ts +2 -0
  10. package/lib/components/InboxMessage/Popover/index.d.ts +2 -0
  11. package/lib/components/InboxMessage/Popover/style.d.ts +27 -0
  12. package/lib/components/InboxMessage/UserModalContent/index.d.ts +2 -0
  13. package/lib/components/InboxMessage/UserModalContent/style.d.ts +1 -0
  14. package/lib/components/InboxMessage/index.d.ts +2 -0
  15. package/lib/components/InboxMessage/mock.d.ts +19 -0
  16. package/lib/components/InboxMessage/style.d.ts +1 -0
  17. package/lib/components/channel_view/DirectChannelView.d.ts +3 -0
  18. package/lib/components/channel_view/PublicChannelView.d.ts +3 -0
  19. package/lib/components/dashboard/menu_header.d.ts +5 -0
  20. package/lib/components/dashboard/modals/direct_modal.d.ts +9 -0
  21. package/lib/components/dashboard/modals.d.ts +8 -0
  22. package/lib/components/messenger/index.d.ts +6 -1
  23. package/lib/components/messenger/messagesList/index.d.ts +6 -4
  24. package/lib/components/messenger/messagesList/style.d.ts +1 -221
  25. package/lib/components/messenger/more_action/index.d.ts +11 -0
  26. package/lib/components/messenger/more_action/style.d.ts +1 -0
  27. package/lib/components/overlay_trigger.d.ts +3 -3
  28. package/lib/components/post/channel_intro_message/channel_intro_message.d.ts +2 -1
  29. package/lib/components/post/channel_layout/channel_identifier_router/channel_identifier_router.d.ts +2 -1
  30. package/lib/components/post/channel_view/channel_view.d.ts +2 -1
  31. package/lib/components/post/create_post/create_post.d.ts +2 -1
  32. package/lib/components/post/failed_post_options/failed_post_options.d.ts +2 -1
  33. package/lib/components/post/index.d.ts +5 -1
  34. package/lib/components/post/markdown/markdown.d.ts +2 -1
  35. package/lib/components/post/post/post.d.ts +2 -1
  36. package/lib/components/post/post_aria_label_div.d.ts +3 -2
  37. package/lib/components/post/post_body/post_body.d.ts +2 -1
  38. package/lib/components/post/post_header/post_header.d.ts +2 -1
  39. package/lib/components/post/post_header/post_header_custom_status.d.ts +2 -1
  40. package/lib/components/post/post_header/style.d.ts +1 -40
  41. package/lib/components/post/post_info/post_info.d.ts +2 -1
  42. package/lib/components/post/post_list/index.d.ts +2 -1
  43. package/lib/components/post/post_list/post_list.d.ts +2 -1
  44. package/lib/components/post/post_list_row/post_list_row.d.ts +2 -1
  45. package/lib/components/post/post_list_virtualized/latest_post_reader.d.ts +2 -1
  46. package/lib/components/post/post_list_virtualized/post_list_virtualized.d.ts +2 -1
  47. package/lib/components/post/post_markdown/post_markdown.d.ts +2 -1
  48. package/lib/components/post/post_message_view/post_message_view.d.ts +2 -1
  49. package/lib/components/post/post_pre_header/post_pre_header.d.ts +3 -2
  50. package/lib/components/post/post_profile_picture/post_profile_picture.d.ts +2 -1
  51. package/lib/components/post/post_view.d.ts +2 -1
  52. package/lib/components/post/profile_picture/profile_picture.d.ts +2 -1
  53. package/lib/components/post/show_more/show_more.d.ts +2 -1
  54. package/lib/components/post/style.d.ts +1 -93
  55. package/lib/components/post/threading/channel_threads/thread_footer/thread_footer.d.ts +2 -1
  56. package/lib/components/post/threading/common/button/button.d.ts +3 -3
  57. package/lib/components/post/threading/common/follow_button/follow_button.d.ts +2 -2
  58. package/lib/components/post/tutorial/tutorial_tip/tutorial_tip.d.ts +3 -3
  59. package/lib/components/post/user_profile/user_profile.d.ts +1 -1
  60. package/lib/components/status_icon.d.ts +2 -1
  61. package/lib/components/status_icon_new.d.ts +2 -2
  62. package/lib/compute.d.ts +8 -2
  63. package/lib/containers/Inbox.d.ts +3 -0
  64. package/lib/containers/Messenger.d.ts +5 -1
  65. package/lib/index.js +3864 -581
  66. package/lib/index.js.map +1 -1
  67. package/lib/packages/types/emojis.d.ts +5 -5
  68. package/lib/packages/types/files.d.ts +5 -5
  69. package/lib/packages/types/posts.d.ts +13 -13
  70. package/lib/packages/types/reactions.d.ts +1 -1
  71. package/lib/packages/types/utilities.d.ts +13 -13
  72. package/lib/style.d.ts +1 -37
  73. package/lib/utils/index.d.ts +2 -0
  74. package/lib/widgets/badges/badge.d.ts +3 -3
  75. package/lib/widgets/badges/bot_badge.d.ts +1 -1
  76. package/lib/widgets/badges/guest_badge.d.ts +1 -1
  77. package/lib/widgets/badges/style.d.ts +1 -23
  78. package/lib/widgets/icons/emoji_icon.d.ts +1 -1
  79. package/lib/widgets/icons/flag_icon_filled.d.ts +1 -1
  80. package/lib/widgets/icons/mattermost_logo.d.ts +1 -1
  81. package/lib/widgets/icons/status_away_avatar_icon.d.ts +1 -1
  82. package/lib/widgets/icons/status_away_icon.d.ts +1 -1
  83. package/lib/widgets/icons/status_dnd_avatar_icon.d.ts +1 -1
  84. package/lib/widgets/icons/status_dnd_icon.d.ts +1 -1
  85. package/lib/widgets/icons/status_offline_avatar_icon.d.ts +1 -1
  86. package/lib/widgets/icons/status_offline_icon.d.ts +1 -1
  87. package/lib/widgets/icons/status_online_avatar_icon.d.ts +1 -1
  88. package/lib/widgets/icons/status_online_icon.d.ts +1 -1
  89. package/lib/widgets/overlay_trigger.d.ts +3 -3
  90. package/lib/widgets/shared_user_indicator.d.ts +1 -1
  91. package/lib/widgets/simple_tooltip/simple_tooltip.d.ts +3 -3
  92. package/lib/widgets/users/avatar/avatar.d.ts +4 -4
  93. package/lib/widgets/users/avatar/style.d.ts +1 -75
  94. package/lib/widgets/users/avatars/avatars.d.ts +2 -2
  95. package/package.json +61 -67
  96. package/src/components/InboxMessage/InboxDetails/index.tsx +23 -0
  97. package/src/components/InboxMessage/InboxDetails/style.ts +27 -0
  98. package/src/components/InboxMessage/InboxSidebar/index.tsx +86 -0
  99. package/src/components/InboxMessage/InboxSidebar/styles.ts +57 -0
  100. package/src/components/InboxMessage/Messages/index.tsx +159 -0
  101. package/src/components/InboxMessage/Messages/styles.ts +85 -0
  102. package/src/components/InboxMessage/MessagesList/index.tsx +93 -0
  103. package/src/components/InboxMessage/Popover/index.tsx +57 -0
  104. package/src/components/InboxMessage/Popover/style.ts +27 -0
  105. package/src/components/InboxMessage/UserModalContent/index.tsx +60 -0
  106. package/src/components/InboxMessage/UserModalContent/style.ts +98 -0
  107. package/src/components/InboxMessage/index.tsx +286 -0
  108. package/src/components/InboxMessage/mock.ts +53 -0
  109. package/src/components/InboxMessage/style.ts +189 -0
  110. package/src/components/channel_view/DirectChannelView.tsx +25 -0
  111. package/src/components/channel_view/PublicChannelView.tsx +24 -0
  112. package/src/components/dashboard/menu_header.tsx +49 -0
  113. package/src/components/dashboard/modals/direct_modal.tsx +46 -0
  114. package/src/components/dashboard/modals.tsx +93 -0
  115. package/src/components/messenger/avatar/index.tsx +2 -4
  116. package/src/components/messenger/avatar/style.ts +3 -3
  117. package/src/components/messenger/index.tsx +258 -94
  118. package/src/components/messenger/messagesList/index.tsx +673 -249
  119. package/src/components/messenger/messagesList/messageBox.tsx +2 -1
  120. package/src/components/messenger/messagesList/style.ts +240 -14
  121. package/src/components/messenger/more_action/index.tsx +68 -0
  122. package/src/components/messenger/more_action/style.ts +45 -0
  123. package/src/components/messenger/postMessage/postMessage.tsx +2 -3
  124. package/src/components/messenger/postMessage/style.ts +3 -3
  125. package/src/components/messenger/sidebarThreadList/index.tsx +11 -10
  126. package/src/components/messenger/style.ts +16 -16
  127. package/src/components/messenger/threadSidebar/index.tsx +5 -5
  128. package/src/components/messenger/threadSidebar/style.ts +7 -7
  129. package/src/components/messenger/types/message.ts +1 -0
  130. package/src/components/post/channel_intro_message/channel_intro_message.tsx +0 -1
  131. package/src/components/post/index.tsx +102 -25
  132. package/src/components/post/post/post.tsx +8 -1
  133. package/src/components/post/post_header/post_header_custom_status.tsx +1 -2
  134. package/src/components/post/post_header/style.ts +3 -6
  135. package/src/components/post/style.ts +22 -8
  136. package/src/components/post/tutorial/tutorial_tip/tutorial_tip.tsx +1 -0
  137. package/src/components/post/user_profile/user_profile.tsx +1 -0
  138. package/src/compute.tsx +58 -37
  139. package/src/containers/Dashboard.tsx +488 -1
  140. package/src/containers/Inbox.tsx +13 -0
  141. package/src/containers/Loading.tsx +1 -1
  142. package/src/containers/Messenger.tsx +9 -4
  143. package/src/module.ts +10 -7
  144. package/src/style.ts +382 -19
  145. package/src/utils/index.ts +22 -0
  146. package/src/widgets/badges/badge.tsx +1 -2
  147. package/src/widgets/badges/style.ts +3 -3
  148. package/src/widgets/icons/accordion_toggle_icon.tsx +1 -1
  149. package/src/widgets/icons/add_reaction_icon.tsx +1 -1
  150. package/src/widgets/icons/admin_eye_icon.tsx +1 -1
  151. package/src/widgets/icons/alert_icon.tsx +1 -1
  152. package/src/widgets/icons/archive_icon.tsx +1 -1
  153. package/src/widgets/icons/arrow_right_icon.tsx +1 -1
  154. package/src/widgets/icons/at_icon.tsx +1 -1
  155. package/src/widgets/icons/attachment_icon.tsx +1 -1
  156. package/src/widgets/icons/back_icon.tsx +1 -1
  157. package/src/widgets/icons/bot_icon.tsx +1 -1
  158. package/src/widgets/icons/camera_icon.tsx +1 -1
  159. package/src/widgets/icons/checkbox_checked_icon.tsx +1 -1
  160. package/src/widgets/icons/checkbox_partial_icon.tsx +1 -1
  161. package/src/widgets/icons/close_circle_icon.tsx +1 -1
  162. package/src/widgets/icons/close_circle_solid_icon.tsx +1 -1
  163. package/src/widgets/icons/close_icon.tsx +1 -1
  164. package/src/widgets/icons/dots_horizontal.tsx +1 -1
  165. package/src/widgets/icons/download_icon.tsx +1 -1
  166. package/src/widgets/icons/draft_icon.tsx +1 -1
  167. package/src/widgets/icons/ellipsis_h_icon.tsx +1 -1
  168. package/src/widgets/icons/email_icon.tsx +1 -1
  169. package/src/widgets/icons/fa_add_icon.tsx +1 -1
  170. package/src/widgets/icons/fa_back_icon.tsx +1 -1
  171. package/src/widgets/icons/fa_dropdown_icon.tsx +1 -1
  172. package/src/widgets/icons/fa_edit_icon.tsx +1 -1
  173. package/src/widgets/icons/fa_logout_icon.tsx +1 -1
  174. package/src/widgets/icons/fa_next_icon.tsx +1 -1
  175. package/src/widgets/icons/fa_previous_icon.tsx +1 -1
  176. package/src/widgets/icons/fa_reload_icon.tsx +1 -1
  177. package/src/widgets/icons/fa_remove_icon.tsx +1 -1
  178. package/src/widgets/icons/fa_search_icon.tsx +1 -1
  179. package/src/widgets/icons/fa_select_icon.tsx +1 -1
  180. package/src/widgets/icons/fa_success_icon.tsx +1 -1
  181. package/src/widgets/icons/fa_warning_icon.tsx +1 -1
  182. package/src/widgets/icons/flag_icon.tsx +1 -1
  183. package/src/widgets/icons/gfycat_icon.tsx +1 -1
  184. package/src/widgets/icons/gif_reactions_icon.tsx +1 -1
  185. package/src/widgets/icons/gif_search_clear_icon.tsx +1 -1
  186. package/src/widgets/icons/gif_search_icon.tsx +1 -1
  187. package/src/widgets/icons/gif_trending_icon.tsx +1 -1
  188. package/src/widgets/icons/globe_icon.tsx +1 -1
  189. package/src/widgets/icons/icons.stories.js +1 -1
  190. package/src/widgets/icons/info_icon.tsx +1 -1
  191. package/src/widgets/icons/info_small_icon.tsx +1 -1
  192. package/src/widgets/icons/invite_icon.tsx +1 -1
  193. package/src/widgets/icons/invite_members_icon.tsx +1 -1
  194. package/src/widgets/icons/link_icon.tsx +1 -1
  195. package/src/widgets/icons/lock_icon.tsx +1 -1
  196. package/src/widgets/icons/mail_icon.tsx +1 -1
  197. package/src/widgets/icons/mail_plus_icon.tsx +1 -1
  198. package/src/widgets/icons/member_icon.tsx +1 -1
  199. package/src/widgets/icons/mentions_icon.tsx +1 -1
  200. package/src/widgets/icons/menu_icon.tsx +1 -1
  201. package/src/widgets/icons/message_icon.tsx +1 -1
  202. package/src/widgets/icons/pin_icon.tsx +1 -1
  203. package/src/widgets/icons/plugin_channel_header_icon.tsx +1 -1
  204. package/src/widgets/icons/plugin_icon.tsx +1 -1
  205. package/src/widgets/icons/reply_icon.tsx +1 -1
  206. package/src/widgets/icons/scroll_to_bottom_icon.tsx +1 -1
  207. package/src/widgets/icons/search_icon.tsx +1 -1
  208. package/src/widgets/icons/shield_outline_icon.tsx +1 -1
  209. package/src/widgets/icons/unarchive_icon.tsx +1 -1
  210. package/src/widgets/icons/unread_below_icon.tsx +1 -1
  211. package/src/widgets/icons/user_guide_icon.tsx +1 -1
  212. package/src/widgets/shared_user_indicator.tsx +1 -0
  213. package/src/widgets/simple_tooltip/simple_tooltip.tsx +1 -0
  214. package/src/widgets/users/avatar/avatar.tsx +1 -2
  215. package/src/widgets/users/avatar/style.ts +3 -3
  216. package/src/widgets/users/avatars/avatars.tsx +1 -0
  217. package/tsconfig.json +2 -1
  218. package/webpack.config.js +1 -1
  219. package/lib/components/messenger/mock.d.ts +0 -50
  220. package/lib/components/messenger/postMessage/postMessage.d.ts +0 -1
  221. package/lib/components/messenger/postMessage/style.d.ts +0 -22
  222. package/lib/components/messenger/sidebarThreadList/index.d.ts +0 -7
  223. package/lib/components/messenger/threadSidebar/index.d.ts +0 -1
  224. package/lib/components/messenger/threadSidebar/style.d.ts +0 -62
  225. package/lib/components/messenger/types/message.d.ts +0 -14
  226. package/src/api.ts +0 -35
  227. package/src/components/Counter.tsx +0 -52
  228. package/src/containers/Clock.tsx +0 -0
  229. package/src/containers/Counter.tsx +0 -42
  230. package/src/containers/PersonList.tsx +0 -20
  231. package/src/containers/ServerCounter.tsx +0 -140
  232. package/src/graphql/index.ts +0 -3
  233. package/src/graphql/mutations/addCount.graphql +0 -5
  234. package/src/graphql/mutations/addPerson.graphql +0 -6
  235. package/src/graphql/mutations/index.ts +0 -2
  236. package/src/graphql/queries/count.graphql +0 -5
  237. package/src/graphql/queries/index.ts +0 -3
  238. package/src/graphql/queries/person.graphql +0 -22
  239. package/src/graphql/queries/persons.graphql +0 -6
  240. package/src/graphql/subscriptions/count.graphql +0 -5
  241. package/src/graphql/subscriptions/index.ts +0 -1
  242. package/src/redux/__mocks__/api.ts +0 -4
  243. package/src/redux/actions/__tests__/sampleActions.test.ts +0 -159
  244. package/src/redux/actions/index.ts +0 -1
  245. package/src/redux/actions/sampleActions.ts +0 -91
  246. package/src/redux/index.ts +0 -2
  247. package/src/redux/reducers/Store.ts +0 -10
  248. package/src/redux/reducers/__tests__/sampleReducers.test.ts +0 -39
  249. package/src/redux/reducers/index.ts +0 -7
  250. package/src/redux/reducers/sampleReducers.ts +0 -71
  251. /package/src/components/post/channel_layout/{channel_controller.test.jsx → channel_controller.test.tsx} +0 -0
  252. /package/src/components/post/channel_layout/{channel_controller.jsx → channel_controller.tsx} +0 -0
@@ -2,7 +2,8 @@ import React, { createElement, useState } from 'react';
2
2
  import ReactDOM from 'react-dom';
3
3
  import 'antd/dist/antd.css';
4
4
  // import './index.css';
5
- import { Comment, Tooltip, Avatar } from 'antd';
5
+ import { Tooltip, Avatar } from 'antd';
6
+ import { Comment, } from '@ant-design/compatible';
6
7
  import Moment from 'moment';
7
8
  import { DislikeOutlined, LikeOutlined, DislikeFilled, LikeFilled } from '@ant-design/icons';
8
9
 
@@ -1,5 +1,5 @@
1
1
  export const styleSheet3 = {
2
- customStyle: () => ({
2
+ customStyle: {
3
3
  '& .ant-comment-content-author-name > * ': {
4
4
  color: '#3d3c40',
5
5
  fontWeight: '600',
@@ -56,8 +56,129 @@ export const styleSheet3 = {
56
56
  marginLeft: '10px',
57
57
  },
58
58
  },
59
- }),
60
- customStyleDemo: () => ({
59
+ // '& .modal_class': {
60
+ //
61
+ // },
62
+ },
63
+ modalCustomStyle:{
64
+ // backgroundColor: 'black',
65
+ ':hover': {
66
+ '& .modal-header': {
67
+ top: '0',
68
+ },
69
+ '& .modal-footer': {
70
+ bottom: '0',
71
+ },
72
+ },
73
+ '& .modal-dialog': {
74
+ width: '95%',
75
+ height: '100%',
76
+ marginBottom: '0',
77
+ marginTop: '0',
78
+ padding: '25px 0px',
79
+ '& .modal_main': {
80
+ padding: '0px 40px',
81
+ },
82
+ },
83
+ '& .modal-body': {
84
+ zIndex: '3',
85
+ padding: '0px',
86
+ },
87
+ '& .modal-content': {
88
+ height: '100%',
89
+ overflow: 'hidden',
90
+ position: 'relative',
91
+ backgroundColor: '#02020269',
92
+ border: '1px solid rgba(0, 0, 0, 0.2)',
93
+ boxShadow: '0 5px 15px rgb(0 0 0 / 50%)',
94
+ display: 'flex',
95
+ alignItems: 'center',
96
+ flexDirection: 'column',
97
+ justifyContent: 'space-between',
98
+ overflowY: 'auto',
99
+ '::after': {
100
+ content: '""',
101
+ position: 'absolute',
102
+ width: '100%',
103
+ height: '100%',
104
+ top: '0',
105
+ right: '0',
106
+ left: '0',
107
+ },
108
+ },
109
+ '& .mod_head_style': {
110
+ display: 'block',
111
+ zIndex: '4',
112
+ width: '100%',
113
+ position: 'relative',
114
+ minHeight: '71px',
115
+ overflow: 'hidden',
116
+ },
117
+ '& .modal-header': {
118
+ zIndex: '3',
119
+ border: 'unset',
120
+ width: '100%',
121
+ transition: 'all 0.5s',
122
+ background: '#0000000f',
123
+ position: 'absolute',
124
+ top: '-100px',
125
+ '> svg': {
126
+ marginLeft: 'auto',
127
+ height: '22px',
128
+ width: '22px',
129
+ cursor: 'pointer',
130
+ '> path': {
131
+ stroke: 'white',
132
+ },
133
+ },
134
+ },
135
+ '& .modal-footer': {
136
+ zIndex: '3',
137
+ border: 'unset',
138
+ width: '100%',
139
+ position: 'absolute',
140
+ background: '#0000000f',
141
+ bottom: '-100px',
142
+ transition: 'all 0.5s',
143
+ '> p': {
144
+ margin: '0',
145
+ },
146
+ },
147
+ '& .clk_img': {
148
+ // width: '100%',
149
+ width: '80vw',
150
+ height: '73vh',
151
+ },
152
+ '& .header_main': {
153
+ display: 'flex',
154
+ },
155
+ '& .header_img': {
156
+ width: '35px',
157
+ height: '35px',
158
+ background: 'white',
159
+ borderRadius: '5px',
160
+ marginRight: '7px',
161
+ color: 'black',
162
+ fontSize: '20px',
163
+ display: 'flex',
164
+ alignItems: 'center',
165
+ justifyContent: 'center',
166
+ fontWeight: 'bold',
167
+ },
168
+ '& .header_text': {
169
+ '> h4': {
170
+ fontWeight: 'bold',
171
+ margin: '0',
172
+ marginBottom: '4px',
173
+ fontSize: '16px',
174
+ },
175
+ '> p': {
176
+ fontSize: '12px',
177
+ margin: '0',
178
+ },
179
+ },
180
+ },
181
+ customStyleDemo: {
61
182
  ':hover .btn-hover': {
62
183
  display: 'block',
63
184
  },
@@ -88,8 +209,51 @@ export const styleSheet3 = {
88
209
  marginLeft: '10px',
89
210
  },
90
211
  },
91
- }),
92
- customInputStyle: () => ({
212
+ '& .reactionClass': {
213
+ display: 'inline-block',
214
+ border: '1px solid #4390ff',
215
+ padding: '2px',
216
+ borderRadius: '5px',
217
+ marginRight: '4px',
218
+ '> span': {
219
+ fontSize: '13px',
220
+ padding: '0px 3px',
221
+ color: '#4390ff',
222
+ },
223
+ },
224
+ '& .preview_img_style': {
225
+ height: '180px',
226
+ },
227
+ '& .msg_img_preview': {
228
+ position: 'relative',
229
+ display: 'inline-block',
230
+ transition: 'all 0.5s',
231
+ ':hover': {
232
+ cursor: 'zoom-in',
233
+ '& .options_style': {
234
+ opacity: '1',
235
+ },
236
+ },
237
+ },
238
+ '& .options_style': {
239
+ backgroundColor: '#1a1d21',
240
+ padding: '7px',
241
+ display: 'flex',
242
+ alignItems: 'center',
243
+ position: 'absolute',
244
+ top: '10px',
245
+ right: '10px',
246
+ borderRadius: '5px',
247
+ opacity: '0',
248
+ '> svg': {
249
+ width: '30px',
250
+ height: '20px',
251
+ color: '#aaabac',
252
+ cursor: 'pointer',
253
+ },
254
+ },
255
+ },
256
+ customInputStyle: {
93
257
  '& .msg_list': {
94
258
  position: 'relative',
95
259
  bottom: '80px',
@@ -109,12 +273,70 @@ export const styleSheet3 = {
109
273
  maxHeight: '100%',
110
274
  },
111
275
  '& .input_row': {
112
- position: 'absolute',
276
+ // position: 'absolute',
113
277
  marginLeft: '0',
114
278
  padding: '0px 15px',
115
279
  bottom: '0',
116
280
  width: '100%',
117
281
  },
282
+ '& .input_msg': {
283
+ backgroundColor: '#fff',
284
+ backgroundImage: 'none',
285
+ border: '1px solid #d9d9d9',
286
+ borderRadius: '2px',
287
+ },
288
+ '& .preview_imgs': {
289
+ display: 'flex',
290
+ '& .child_div': {
291
+ width: '80px',
292
+ height: '80px',
293
+ boxShadow: '0 3px 10px rgb(0 0 0 / 20%)',
294
+ position: 'relative',
295
+ padding: '0px 5px',
296
+ ':hover': {
297
+ '& .overlay': {
298
+ backgroundColor: '#0000006b',
299
+ width: '100%',
300
+ height: '100%',
301
+ position: 'absolute',
302
+ right: '0',
303
+ left: '0',
304
+ zIndex: '2',
305
+ // display: 'none',
306
+ },
307
+ '> i': {
308
+ '::after': {
309
+ content: '""',
310
+ position: 'absolute',
311
+ width: '20px',
312
+ height: '20px',
313
+ borderRadius: '50%',
314
+ right: '-5px',
315
+ top: '-3px',
316
+ left: 'auto',
317
+ backgroundColor: 'black',
318
+ zIndex: '-1',
319
+ },
320
+ position: 'absolute',
321
+ color: 'white',
322
+ zIndex: '3',
323
+ right: '0px',
324
+ top: '0',
325
+ cursor: 'pointer',
326
+ display: 'block',
327
+ },
328
+ },
329
+ '> img': {
330
+ width: '100%',
331
+ objectFit: 'cover',
332
+ height: '100%',
333
+ position: 'relative',
334
+ },
335
+ '> i': {
336
+ display: 'none',
337
+ },
338
+ },
339
+ },
118
340
  '& .thread_input_row': {
119
341
  position: 'static',
120
342
  marginLeft: '0',
@@ -124,20 +346,22 @@ export const styleSheet3 = {
124
346
  },
125
347
  '& .msg_input': {
126
348
  minHeight: '45px',
349
+ border: 'none',
127
350
  },
128
351
  '& .input_class': {
129
352
  position: 'relative',
353
+ padding: '0 30px',
130
354
  },
131
355
  '& .icon_box': {
132
356
  position: 'absolute',
133
357
  top: '58%',
134
358
  display: 'flex',
135
359
  transform: 'translateY(-50%)',
136
- right: '15px',
360
+ right: '10px',
137
361
  },
138
362
  '& .icon_style': {
139
363
  fontSize: '20px',
140
- marginLeft: '20px',
364
+ // marginLeft: '20px',
141
365
  color: 'rgba(61, 60, 64, 0.56)',
142
366
  },
143
367
  '& .emoji-mart': {
@@ -145,8 +369,8 @@ export const styleSheet3 = {
145
369
  top: 'unset',
146
370
  bottom: '100%',
147
371
  width: '315px !important',
148
- right: '0',
149
- zIndex: '999',
372
+ right: '30px',
373
+ zIndex: '1',
150
374
  },
151
375
  '& .emoji-mart-category': {
152
376
  '& .emoji-mart-emoji span': {
@@ -158,6 +382,7 @@ export const styleSheet3 = {
158
382
  '& .chat_container': {
159
383
  overflow: 'hidden',
160
384
  display: 'flex',
385
+ height: 'calc(100vh - 264px)',
161
386
  },
162
387
  '& .right_chat_box': {
163
388
  right: '0',
@@ -215,8 +440,9 @@ export const styleSheet3 = {
215
440
  '& .left_chat_box': {
216
441
  width: '100%',
217
442
  position: 'relative',
443
+ display: 'flex',
444
+ flexDirection: 'column',
218
445
  },
219
- }),
220
- customPopoverStyles : ()=>({
221
- })
222
- };
446
+ },
447
+ customPopoverStyles: {},
448
+ } as any;
@@ -0,0 +1,68 @@
1
+ import * as React from 'react';
2
+ import { styleSheet } from './style';
3
+ import { css } from '@emotion/css';
4
+
5
+ type IProps = {
6
+ handleShowSideBar?: any;
7
+ handleDeleteMessage? : any;
8
+ handleEditMessage? : any;
9
+ id?: string;
10
+ pinMessage: any;
11
+ handlePinBtn?:any;
12
+ }
13
+
14
+ const MoreAction = ({ handleShowSideBar , handleDeleteMessage , handleEditMessage , id , handlePinBtn , pinMessage} : IProps) => {
15
+ let cardData = [
16
+ {
17
+ tiltle: 'Reply',
18
+ Link: handleShowSideBar,
19
+ },
20
+ {
21
+ tiltle: 'Mark as Unread',
22
+ Link: '#',
23
+ },
24
+ {
25
+ tiltle: 'copy link',
26
+ Link: '#',
27
+ },
28
+ {
29
+ tiltle: pinMessage ? 'unpin to channel' : 'pin to channel',
30
+ Link: handlePinBtn,
31
+ },
32
+ ];
33
+
34
+ const moreActionData = [
35
+ {
36
+ title: 'Edit',
37
+ Link: handleEditMessage,
38
+ className: 'edit-btn',
39
+ },
40
+ {
41
+ title: 'Delete',
42
+ Link: handleDeleteMessage,
43
+ className: 'delete-btn',
44
+ },
45
+ ];
46
+ return (
47
+ <div className={css(styleSheet.MoreActionStyle)}>
48
+ <ul>
49
+ {cardData.map((element: any, index: number) => {
50
+ return (
51
+ <li key={index} onClick={()=>element.Link(id)}>
52
+ <a>{element.tiltle}</a>
53
+ </li>
54
+ );
55
+ })}
56
+ {moreActionData.map((element: any, index: number) => {
57
+ return (
58
+ <li key={index} className={element.className} onClick={()=>element.Link(id)}>
59
+ <a>{element.title}</a>
60
+ </li>
61
+ );
62
+ })}
63
+ </ul>
64
+ </div>
65
+ );
66
+ };
67
+
68
+ export default MoreAction;
@@ -0,0 +1,45 @@
1
+ export const styleSheet = {
2
+ MoreActionStyle: {
3
+ position: 'absolute',
4
+ width: '200px',
5
+ height: '210px',
6
+ right: '90px',
7
+ bottom: '30px',
8
+ backgroundColor: '#fff',
9
+ border: '1px solid rgba(61 , 60 ,64 , 0.23)',
10
+ borderRadius: '5px',
11
+ '& ul': {
12
+ padding: '4px 0px',
13
+ },
14
+ '& ul li ': {
15
+ fontSize: '17px',
16
+ marginBottom: '8px',
17
+ marginRight: '5px',
18
+ textAlign: 'left',
19
+ width: '100%',
20
+ height: '26px',
21
+ transition: '0.1s ease-in',
22
+ listStyleType: 'none',
23
+ },
24
+ '& ul li a': {
25
+ color: '#858487',
26
+ marginLeft: '15px',
27
+ textDecoration: 'none'
28
+ },
29
+ '& ul li:hover': {
30
+ backgroundColor: 'rgba(61 , 60 ,64 , 0.12)'
31
+ },
32
+ '& .edit-btn': {
33
+ borderTop: '1px solid rgba(61 , 60 ,64 , 0.23) '
34
+ },
35
+ '& .delete-btn a': {
36
+ color: '#f74343',
37
+ },
38
+ '& .delete-btn:hover': {
39
+ backgroundColor: '#f74343',
40
+ },
41
+ '& .delete-btn:hover a': {
42
+ color: '#fff'
43
+ },
44
+ }
45
+ } as any
@@ -1,15 +1,14 @@
1
1
  import React, { FC, useState } from 'react';
2
- import { useFela } from 'react-fela';
3
2
  import { Col, Input } from 'antd';
3
+ import { SmileOutlined, PaperClipOutlined } from '@ant-design/icons';
4
+ import { css } from '@emotion/css';
4
5
  import { IMessageList } from './../types/message';
5
6
  import { messagesData } from './../mock';
6
- import { SmileOutlined, PaperClipOutlined } from '@ant-design/icons';
7
7
  import { styleSheet } from './style';
8
8
 
9
9
 
10
10
  export const PostMessage = (props) => {
11
11
  const { handleEnterButton , enterValue } = props;
12
- const { css } = useFela();
13
12
  return (
14
13
  <div className={css(styleSheet.postmessageStyles)}>
15
14
  <Input
@@ -1,6 +1,6 @@
1
1
  export const styleSheet = {
2
2
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
3
- postmessageStyles: () => ({
3
+ postmessageStyles: {
4
4
  display: 'inharit',
5
5
  position: 'relative',
6
6
  '& .message--box-outer': {
@@ -20,5 +20,5 @@ export const styleSheet = {
20
20
  '& .icon .anticon svg path': {
21
21
  fill: 'grey',
22
22
  },
23
- }),
24
- };
23
+ },
24
+ } as any;
@@ -2,13 +2,15 @@ import React, { FC, useState } from 'react';
2
2
  import { Col, Row, Divider } from 'antd';
3
3
  import { Comment, Popover, Avatar } from 'antd';
4
4
  import { useSelector } from 'react-redux';
5
+ import { IoBookmarkOutline } from 'react-icons/io5';
5
6
  import { CommentOutlined, SmileOutlined, SaveOutlined, EllipsisOutlined } from '@ant-design/icons';
6
7
  import { useGetUserAccountQuery } from '@adminide-stack/account-api-client';
7
- import { IMessageReplyList } from '../types/message';
8
- import { BiDotsHorizontalRounded, FaRobot, MdOutlineEmojiEmotions, BiPaperPlane , BiEdit } from 'react-icons/all';
9
- import { IoBookmarkOutline } from 'react-icons/io5';
10
- import { useFela } from 'react-fela';
8
+ import { BiDotsHorizontalRounded, BiPaperPlane, BiEdit } from 'react-icons/bi';
9
+ import { MdOutlineEmojiEmotions } from 'react-icons/md';
10
+ import { FaRobot } from 'react-icons/fa';
11
+ import { css } from '@emotion/css';
11
12
  import Moment from 'moment';
13
+ import { IMessageReplyList } from '../types/message';
12
14
  import { styleSheet } from '../threadSidebar/style';
13
15
 
14
16
  interface IProps {
@@ -27,15 +29,14 @@ export const SidebarThreadList: FC<IProps> = ({ userMessagesList }) => {
27
29
  skip: !userId,
28
30
  });
29
31
  const [showHoverModal, setShowHoverModal] = useState<boolean>(false);
30
- const { css } = useFela();
31
32
  var time = '10:45 PM';
32
33
 
33
34
  return (
34
- <Row gutter={[24, 6]} className={css(styleSheet.costumThreadStyles as any)}>
35
+ <Row gutter={[24, 6]} className={css(styleSheet.costumThreadStyles)}>
35
36
  {userMessagesList?.map((items: any, index: any) => {
36
37
  if (!items?.loginUser) {
37
38
  return (
38
- <Col md={24} key={index} className={css(styleSheet.costumThreadHoverStyles as any)}>
39
+ <Col md={24} key={index} className={css(styleSheet.costumThreadHoverStyles)}>
39
40
  <div className="btn-hover">
40
41
  <div className="hover_btns">
41
42
  <button>
@@ -109,12 +110,12 @@ export const SidebarThreadList: FC<IProps> = ({ userMessagesList }) => {
109
110
  </div>
110
111
  /*</Tooltip>*/
111
112
  }
112
- ></Comment>
113
+ />
113
114
  </Col>
114
115
  );
115
116
  } else {
116
117
  return (
117
- <Col md={24} key={index} className={css(styleSheet.costumThreadHoverStyles as any)}>
118
+ <Col md={24} key={index} className={css(styleSheet.costumThreadHoverStyles)}>
118
119
  <div className="btn-hover">
119
120
  <div className="hover_btns">
120
121
  <button>
@@ -184,7 +185,7 @@ export const SidebarThreadList: FC<IProps> = ({ userMessagesList }) => {
184
185
  </div>
185
186
  /*</Tooltip>*/
186
187
  }
187
- ></Comment>
188
+ />
188
189
  </Col>
189
190
  );
190
191
  }
@@ -4,7 +4,7 @@ export const styleSheet = {
4
4
  display: 'inharit',
5
5
  '& .messagner-list': {
6
6
  width: '100%',
7
- display : 'flex',
7
+ display: 'flex',
8
8
  },
9
9
  '& .messagner-list:hover ': {
10
10
  borderColor: 'rgba(61,60,64,0.04)',
@@ -15,23 +15,23 @@ export const styleSheet = {
15
15
  },
16
16
  '& .modal': {
17
17
  position: 'absolute',
18
- display : 'flex',
19
- width : '120px',
20
- height : '30px',
21
- boxShadow : '0 6px 10px rgba(0, 0, 0, 0.12)',
22
- left : 'auto',
23
- right : '30px',
24
- top : '30px',
25
- backgroundColor : 'white',
26
- borderRadius : '5px',
27
- alignItems : 'center',
18
+ display: 'flex',
19
+ width: '120px',
20
+ height: '30px',
21
+ boxShadow: '0 6px 10px rgba(0, 0, 0, 0.12)',
22
+ left: 'auto',
23
+ right: '30px',
24
+ top: '30px',
25
+ backgroundColor: 'white',
26
+ borderRadius: '5px',
27
+ alignItems: 'center',
28
28
  },
29
29
  '& .modal div': {
30
- textAlign : 'center',
31
- width : '25px',
32
- marginLeft : '5px',
33
- marginRight : '5px',
34
- borderRadius : '3px',
30
+ textAlign: 'center',
31
+ width: '25px',
32
+ marginLeft: '5px',
33
+ marginRight: '5px',
34
+ borderRadius: '3px',
35
35
  },
36
36
  '& .modal div:hover': {
37
37
  backgroundColor: 'rgba(61,60,64,0.12)',
@@ -2,10 +2,11 @@ import React, { useState, useRef, useEffect } from 'react';
2
2
  import { MessagesList } from './../messagesList/index';
3
3
  import { messagesData } from './../mock';
4
4
  import { IMessageList } from './../types/message';
5
- import { useFela } from 'react-fela';
5
+ import { css } from '@emotion/css';
6
6
  import { Input, Col, Row } from 'antd';
7
- import {CloseOutlined} from '@ant-design/icons'
8
- import { HiOutlinePaperClip, MdOutlineEmojiEmotions } from 'react-icons/all';
7
+ import { CloseOutlined } from '@ant-design/icons'
8
+ import { HiOutlinePaperClip } from 'react-icons/hi';
9
+ import { MdOutlineEmojiEmotions } from 'react-icons/md';
9
10
  import { Picker } from 'emoji-mart';
10
11
  import { styleSheet } from './style';
11
12
  import { PostMessage } from './../postMessage/postMessage';
@@ -13,7 +14,6 @@ import { SidebarThreadList } from './../sidebarThreadList';
13
14
 
14
15
  export const ThreadSidebar = (props) => {
15
16
  // const { handleEnterButton } = props;
16
- const { css } = useFela();
17
17
  const [enterValue, setEnterValue] = useState<string>('');
18
18
  const [flag, setFlag] = useState<boolean>(false);
19
19
  const [userMessagesReplyList, setUserMessagesReplyList] = useState<IMessageList | any>([]);
@@ -65,7 +65,7 @@ export const ThreadSidebar = (props) => {
65
65
  };
66
66
 
67
67
  return (
68
- <div className={css(styleSheet.ThreadSidebarStyles) as any}>
68
+ <div className={css(styleSheet.ThreadSidebarStyles)}>
69
69
  <Col>
70
70
  <div className='close-icon'><CloseOutlined /></div>
71
71
  </Col>
@@ -1,6 +1,6 @@
1
1
  export const styleSheet = {
2
2
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
3
- ThreadSidebarStyles: () => ({
3
+ ThreadSidebarStyles: {
4
4
  '& .input_row_thread': {
5
5
  width: 'calc(100% - 240px)',
6
6
  paddingLeft: '0',
@@ -15,8 +15,8 @@ export const styleSheet = {
15
15
 
16
16
 
17
17
  }
18
- }),
19
- costumThreadStyles: () => ({
18
+ },
19
+ costumThreadStyles: {
20
20
  '& .ant-comment-content-author-name > * ': {
21
21
  color: '#3d3c40',
22
22
  fontWeight: '600',
@@ -51,8 +51,8 @@ export const styleSheet = {
51
51
  height: '28px',
52
52
  background: 'white',
53
53
  },
54
- }),
55
- costumThreadHoverStyles: () => ({
54
+ },
55
+ costumThreadHoverStyles: {
56
56
  ':hover .btn-hover': {
57
57
  display: 'block',
58
58
  },
@@ -61,5 +61,5 @@ export const styleSheet = {
61
61
  },
62
62
  padding: '0px 36px',
63
63
  paddingRight: '15px',
64
- })
65
- };
64
+ }
65
+ } as any;
@@ -5,6 +5,7 @@ export interface IMessageList {
5
5
  timeIsToday: boolean;
6
6
  isReply: boolean;
7
7
  thread?: IMessageReplyList[]
8
+ isPin?: boolean
8
9
  }
9
10
 
10
11
  export interface IMessageReplyList {
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { Constants, ModalIdentifiers } from '../../../utils/constants';
3
- // import { Channel } from '../../../packages/types/channels';
4
3
 
5
4
  export const ChannelIntroMessage = (props) => {
6
5
  const {