@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.
- package/CHANGELOG.md +540 -27
- package/jest.config.js +23 -7
- package/lib/components/InboxMessage/InboxDetails/index.d.ts +2 -0
- package/lib/components/InboxMessage/InboxDetails/style.d.ts +1 -0
- package/lib/components/InboxMessage/InboxSidebar/index.d.ts +11 -0
- package/lib/components/InboxMessage/InboxSidebar/styles.d.ts +1 -0
- package/lib/components/InboxMessage/Messages/index.d.ts +2 -0
- package/lib/components/InboxMessage/Messages/styles.d.ts +80 -0
- package/lib/components/InboxMessage/MessagesList/index.d.ts +2 -0
- package/lib/components/InboxMessage/Popover/index.d.ts +2 -0
- package/lib/components/InboxMessage/Popover/style.d.ts +27 -0
- package/lib/components/InboxMessage/UserModalContent/index.d.ts +2 -0
- package/lib/components/InboxMessage/UserModalContent/style.d.ts +1 -0
- package/lib/components/InboxMessage/index.d.ts +2 -0
- package/lib/components/InboxMessage/mock.d.ts +19 -0
- package/lib/components/InboxMessage/style.d.ts +1 -0
- package/lib/components/channel_view/DirectChannelView.d.ts +3 -0
- package/lib/components/channel_view/PublicChannelView.d.ts +3 -0
- package/lib/components/dashboard/menu_header.d.ts +5 -0
- package/lib/components/dashboard/modals/direct_modal.d.ts +9 -0
- package/lib/components/dashboard/modals.d.ts +8 -0
- package/lib/components/messenger/index.d.ts +6 -1
- package/lib/components/messenger/messagesList/index.d.ts +6 -4
- package/lib/components/messenger/messagesList/style.d.ts +1 -221
- package/lib/components/messenger/more_action/index.d.ts +11 -0
- package/lib/components/messenger/more_action/style.d.ts +1 -0
- package/lib/components/overlay_trigger.d.ts +3 -3
- package/lib/components/post/channel_intro_message/channel_intro_message.d.ts +2 -1
- package/lib/components/post/channel_layout/channel_identifier_router/channel_identifier_router.d.ts +2 -1
- package/lib/components/post/channel_view/channel_view.d.ts +2 -1
- package/lib/components/post/create_post/create_post.d.ts +2 -1
- package/lib/components/post/failed_post_options/failed_post_options.d.ts +2 -1
- package/lib/components/post/index.d.ts +5 -1
- package/lib/components/post/markdown/markdown.d.ts +2 -1
- package/lib/components/post/post/post.d.ts +2 -1
- package/lib/components/post/post_aria_label_div.d.ts +3 -2
- package/lib/components/post/post_body/post_body.d.ts +2 -1
- package/lib/components/post/post_header/post_header.d.ts +2 -1
- package/lib/components/post/post_header/post_header_custom_status.d.ts +2 -1
- package/lib/components/post/post_header/style.d.ts +1 -40
- package/lib/components/post/post_info/post_info.d.ts +2 -1
- package/lib/components/post/post_list/index.d.ts +2 -1
- package/lib/components/post/post_list/post_list.d.ts +2 -1
- package/lib/components/post/post_list_row/post_list_row.d.ts +2 -1
- package/lib/components/post/post_list_virtualized/latest_post_reader.d.ts +2 -1
- package/lib/components/post/post_list_virtualized/post_list_virtualized.d.ts +2 -1
- package/lib/components/post/post_markdown/post_markdown.d.ts +2 -1
- package/lib/components/post/post_message_view/post_message_view.d.ts +2 -1
- package/lib/components/post/post_pre_header/post_pre_header.d.ts +3 -2
- package/lib/components/post/post_profile_picture/post_profile_picture.d.ts +2 -1
- package/lib/components/post/post_view.d.ts +2 -1
- package/lib/components/post/profile_picture/profile_picture.d.ts +2 -1
- package/lib/components/post/show_more/show_more.d.ts +2 -1
- package/lib/components/post/style.d.ts +1 -93
- package/lib/components/post/threading/channel_threads/thread_footer/thread_footer.d.ts +2 -1
- package/lib/components/post/threading/common/button/button.d.ts +3 -3
- package/lib/components/post/threading/common/follow_button/follow_button.d.ts +2 -2
- package/lib/components/post/tutorial/tutorial_tip/tutorial_tip.d.ts +3 -3
- package/lib/components/post/user_profile/user_profile.d.ts +1 -1
- package/lib/components/status_icon.d.ts +2 -1
- package/lib/components/status_icon_new.d.ts +2 -2
- package/lib/compute.d.ts +8 -2
- package/lib/containers/Inbox.d.ts +3 -0
- package/lib/containers/Messenger.d.ts +5 -1
- package/lib/index.js +3864 -581
- package/lib/index.js.map +1 -1
- package/lib/packages/types/emojis.d.ts +5 -5
- package/lib/packages/types/files.d.ts +5 -5
- package/lib/packages/types/posts.d.ts +13 -13
- package/lib/packages/types/reactions.d.ts +1 -1
- package/lib/packages/types/utilities.d.ts +13 -13
- package/lib/style.d.ts +1 -37
- package/lib/utils/index.d.ts +2 -0
- package/lib/widgets/badges/badge.d.ts +3 -3
- package/lib/widgets/badges/bot_badge.d.ts +1 -1
- package/lib/widgets/badges/guest_badge.d.ts +1 -1
- package/lib/widgets/badges/style.d.ts +1 -23
- package/lib/widgets/icons/emoji_icon.d.ts +1 -1
- package/lib/widgets/icons/flag_icon_filled.d.ts +1 -1
- package/lib/widgets/icons/mattermost_logo.d.ts +1 -1
- package/lib/widgets/icons/status_away_avatar_icon.d.ts +1 -1
- package/lib/widgets/icons/status_away_icon.d.ts +1 -1
- package/lib/widgets/icons/status_dnd_avatar_icon.d.ts +1 -1
- package/lib/widgets/icons/status_dnd_icon.d.ts +1 -1
- package/lib/widgets/icons/status_offline_avatar_icon.d.ts +1 -1
- package/lib/widgets/icons/status_offline_icon.d.ts +1 -1
- package/lib/widgets/icons/status_online_avatar_icon.d.ts +1 -1
- package/lib/widgets/icons/status_online_icon.d.ts +1 -1
- package/lib/widgets/overlay_trigger.d.ts +3 -3
- package/lib/widgets/shared_user_indicator.d.ts +1 -1
- package/lib/widgets/simple_tooltip/simple_tooltip.d.ts +3 -3
- package/lib/widgets/users/avatar/avatar.d.ts +4 -4
- package/lib/widgets/users/avatar/style.d.ts +1 -75
- package/lib/widgets/users/avatars/avatars.d.ts +2 -2
- package/package.json +61 -67
- package/src/components/InboxMessage/InboxDetails/index.tsx +23 -0
- package/src/components/InboxMessage/InboxDetails/style.ts +27 -0
- package/src/components/InboxMessage/InboxSidebar/index.tsx +86 -0
- package/src/components/InboxMessage/InboxSidebar/styles.ts +57 -0
- package/src/components/InboxMessage/Messages/index.tsx +159 -0
- package/src/components/InboxMessage/Messages/styles.ts +85 -0
- package/src/components/InboxMessage/MessagesList/index.tsx +93 -0
- package/src/components/InboxMessage/Popover/index.tsx +57 -0
- package/src/components/InboxMessage/Popover/style.ts +27 -0
- package/src/components/InboxMessage/UserModalContent/index.tsx +60 -0
- package/src/components/InboxMessage/UserModalContent/style.ts +98 -0
- package/src/components/InboxMessage/index.tsx +286 -0
- package/src/components/InboxMessage/mock.ts +53 -0
- package/src/components/InboxMessage/style.ts +189 -0
- package/src/components/channel_view/DirectChannelView.tsx +25 -0
- package/src/components/channel_view/PublicChannelView.tsx +24 -0
- package/src/components/dashboard/menu_header.tsx +49 -0
- package/src/components/dashboard/modals/direct_modal.tsx +46 -0
- package/src/components/dashboard/modals.tsx +93 -0
- package/src/components/messenger/avatar/index.tsx +2 -4
- package/src/components/messenger/avatar/style.ts +3 -3
- package/src/components/messenger/index.tsx +258 -94
- package/src/components/messenger/messagesList/index.tsx +673 -249
- package/src/components/messenger/messagesList/messageBox.tsx +2 -1
- package/src/components/messenger/messagesList/style.ts +240 -14
- package/src/components/messenger/more_action/index.tsx +68 -0
- package/src/components/messenger/more_action/style.ts +45 -0
- package/src/components/messenger/postMessage/postMessage.tsx +2 -3
- package/src/components/messenger/postMessage/style.ts +3 -3
- package/src/components/messenger/sidebarThreadList/index.tsx +11 -10
- package/src/components/messenger/style.ts +16 -16
- package/src/components/messenger/threadSidebar/index.tsx +5 -5
- package/src/components/messenger/threadSidebar/style.ts +7 -7
- package/src/components/messenger/types/message.ts +1 -0
- package/src/components/post/channel_intro_message/channel_intro_message.tsx +0 -1
- package/src/components/post/index.tsx +102 -25
- package/src/components/post/post/post.tsx +8 -1
- package/src/components/post/post_header/post_header_custom_status.tsx +1 -2
- package/src/components/post/post_header/style.ts +3 -6
- package/src/components/post/style.ts +22 -8
- package/src/components/post/tutorial/tutorial_tip/tutorial_tip.tsx +1 -0
- package/src/components/post/user_profile/user_profile.tsx +1 -0
- package/src/compute.tsx +58 -37
- package/src/containers/Dashboard.tsx +488 -1
- package/src/containers/Inbox.tsx +13 -0
- package/src/containers/Loading.tsx +1 -1
- package/src/containers/Messenger.tsx +9 -4
- package/src/module.ts +10 -7
- package/src/style.ts +382 -19
- package/src/utils/index.ts +22 -0
- package/src/widgets/badges/badge.tsx +1 -2
- package/src/widgets/badges/style.ts +3 -3
- package/src/widgets/icons/accordion_toggle_icon.tsx +1 -1
- package/src/widgets/icons/add_reaction_icon.tsx +1 -1
- package/src/widgets/icons/admin_eye_icon.tsx +1 -1
- package/src/widgets/icons/alert_icon.tsx +1 -1
- package/src/widgets/icons/archive_icon.tsx +1 -1
- package/src/widgets/icons/arrow_right_icon.tsx +1 -1
- package/src/widgets/icons/at_icon.tsx +1 -1
- package/src/widgets/icons/attachment_icon.tsx +1 -1
- package/src/widgets/icons/back_icon.tsx +1 -1
- package/src/widgets/icons/bot_icon.tsx +1 -1
- package/src/widgets/icons/camera_icon.tsx +1 -1
- package/src/widgets/icons/checkbox_checked_icon.tsx +1 -1
- package/src/widgets/icons/checkbox_partial_icon.tsx +1 -1
- package/src/widgets/icons/close_circle_icon.tsx +1 -1
- package/src/widgets/icons/close_circle_solid_icon.tsx +1 -1
- package/src/widgets/icons/close_icon.tsx +1 -1
- package/src/widgets/icons/dots_horizontal.tsx +1 -1
- package/src/widgets/icons/download_icon.tsx +1 -1
- package/src/widgets/icons/draft_icon.tsx +1 -1
- package/src/widgets/icons/ellipsis_h_icon.tsx +1 -1
- package/src/widgets/icons/email_icon.tsx +1 -1
- package/src/widgets/icons/fa_add_icon.tsx +1 -1
- package/src/widgets/icons/fa_back_icon.tsx +1 -1
- package/src/widgets/icons/fa_dropdown_icon.tsx +1 -1
- package/src/widgets/icons/fa_edit_icon.tsx +1 -1
- package/src/widgets/icons/fa_logout_icon.tsx +1 -1
- package/src/widgets/icons/fa_next_icon.tsx +1 -1
- package/src/widgets/icons/fa_previous_icon.tsx +1 -1
- package/src/widgets/icons/fa_reload_icon.tsx +1 -1
- package/src/widgets/icons/fa_remove_icon.tsx +1 -1
- package/src/widgets/icons/fa_search_icon.tsx +1 -1
- package/src/widgets/icons/fa_select_icon.tsx +1 -1
- package/src/widgets/icons/fa_success_icon.tsx +1 -1
- package/src/widgets/icons/fa_warning_icon.tsx +1 -1
- package/src/widgets/icons/flag_icon.tsx +1 -1
- package/src/widgets/icons/gfycat_icon.tsx +1 -1
- package/src/widgets/icons/gif_reactions_icon.tsx +1 -1
- package/src/widgets/icons/gif_search_clear_icon.tsx +1 -1
- package/src/widgets/icons/gif_search_icon.tsx +1 -1
- package/src/widgets/icons/gif_trending_icon.tsx +1 -1
- package/src/widgets/icons/globe_icon.tsx +1 -1
- package/src/widgets/icons/icons.stories.js +1 -1
- package/src/widgets/icons/info_icon.tsx +1 -1
- package/src/widgets/icons/info_small_icon.tsx +1 -1
- package/src/widgets/icons/invite_icon.tsx +1 -1
- package/src/widgets/icons/invite_members_icon.tsx +1 -1
- package/src/widgets/icons/link_icon.tsx +1 -1
- package/src/widgets/icons/lock_icon.tsx +1 -1
- package/src/widgets/icons/mail_icon.tsx +1 -1
- package/src/widgets/icons/mail_plus_icon.tsx +1 -1
- package/src/widgets/icons/member_icon.tsx +1 -1
- package/src/widgets/icons/mentions_icon.tsx +1 -1
- package/src/widgets/icons/menu_icon.tsx +1 -1
- package/src/widgets/icons/message_icon.tsx +1 -1
- package/src/widgets/icons/pin_icon.tsx +1 -1
- package/src/widgets/icons/plugin_channel_header_icon.tsx +1 -1
- package/src/widgets/icons/plugin_icon.tsx +1 -1
- package/src/widgets/icons/reply_icon.tsx +1 -1
- package/src/widgets/icons/scroll_to_bottom_icon.tsx +1 -1
- package/src/widgets/icons/search_icon.tsx +1 -1
- package/src/widgets/icons/shield_outline_icon.tsx +1 -1
- package/src/widgets/icons/unarchive_icon.tsx +1 -1
- package/src/widgets/icons/unread_below_icon.tsx +1 -1
- package/src/widgets/icons/user_guide_icon.tsx +1 -1
- package/src/widgets/shared_user_indicator.tsx +1 -0
- package/src/widgets/simple_tooltip/simple_tooltip.tsx +1 -0
- package/src/widgets/users/avatar/avatar.tsx +1 -2
- package/src/widgets/users/avatar/style.ts +3 -3
- package/src/widgets/users/avatars/avatars.tsx +1 -0
- package/tsconfig.json +2 -1
- package/webpack.config.js +1 -1
- package/lib/components/messenger/mock.d.ts +0 -50
- package/lib/components/messenger/postMessage/postMessage.d.ts +0 -1
- package/lib/components/messenger/postMessage/style.d.ts +0 -22
- package/lib/components/messenger/sidebarThreadList/index.d.ts +0 -7
- package/lib/components/messenger/threadSidebar/index.d.ts +0 -1
- package/lib/components/messenger/threadSidebar/style.d.ts +0 -62
- package/lib/components/messenger/types/message.d.ts +0 -14
- package/src/api.ts +0 -35
- package/src/components/Counter.tsx +0 -52
- package/src/containers/Clock.tsx +0 -0
- package/src/containers/Counter.tsx +0 -42
- package/src/containers/PersonList.tsx +0 -20
- package/src/containers/ServerCounter.tsx +0 -140
- package/src/graphql/index.ts +0 -3
- package/src/graphql/mutations/addCount.graphql +0 -5
- package/src/graphql/mutations/addPerson.graphql +0 -6
- package/src/graphql/mutations/index.ts +0 -2
- package/src/graphql/queries/count.graphql +0 -5
- package/src/graphql/queries/index.ts +0 -3
- package/src/graphql/queries/person.graphql +0 -22
- package/src/graphql/queries/persons.graphql +0 -6
- package/src/graphql/subscriptions/count.graphql +0 -5
- package/src/graphql/subscriptions/index.ts +0 -1
- package/src/redux/__mocks__/api.ts +0 -4
- package/src/redux/actions/__tests__/sampleActions.test.ts +0 -159
- package/src/redux/actions/index.ts +0 -1
- package/src/redux/actions/sampleActions.ts +0 -91
- package/src/redux/index.ts +0 -2
- package/src/redux/reducers/Store.ts +0 -10
- package/src/redux/reducers/__tests__/sampleReducers.test.ts +0 -39
- package/src/redux/reducers/index.ts +0 -7
- package/src/redux/reducers/sampleReducers.ts +0 -71
- /package/src/components/post/channel_layout/{channel_controller.test.jsx → channel_controller.test.tsx} +0 -0
- /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 {
|
|
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
|
-
|
|
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
|
-
|
|
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: '
|
|
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: '
|
|
149
|
-
zIndex: '
|
|
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 {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
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
|
|
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
|
|
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
|
-
|
|
113
|
+
/>
|
|
113
114
|
</Col>
|
|
114
115
|
);
|
|
115
116
|
} else {
|
|
116
117
|
return (
|
|
117
|
-
<Col md={24} key={index} className={css(styleSheet.costumThreadHoverStyles
|
|
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
|
-
|
|
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
|
|
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
|
|
19
|
-
width
|
|
20
|
-
height
|
|
21
|
-
boxShadow
|
|
22
|
-
left
|
|
23
|
-
right
|
|
24
|
-
top
|
|
25
|
-
backgroundColor
|
|
26
|
-
borderRadius
|
|
27
|
-
alignItems
|
|
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
|
|
31
|
-
width
|
|
32
|
-
marginLeft
|
|
33
|
-
marginRight
|
|
34
|
-
borderRadius
|
|
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 {
|
|
5
|
+
import { css } from '@emotion/css';
|
|
6
6
|
import { Input, Col, Row } from 'antd';
|
|
7
|
-
import {CloseOutlined} from '@ant-design/icons'
|
|
8
|
-
import { HiOutlinePaperClip
|
|
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)
|
|
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;
|