@messenger-box/platform-browser 10.0.3-alpha.17 → 10.0.3-alpha.171
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/components/InboxMessage/InboxDetails/index.d.ts +6 -1
- package/lib/components/InboxMessage/InboxDetails/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/InboxDetails/index.js +10 -11
- package/lib/components/InboxMessage/InboxDetails/index.js.map +1 -1
- package/lib/components/InboxMessage/InboxSidebar/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/InboxSidebar/index.js +23 -32
- package/lib/components/InboxMessage/InboxSidebar/index.js.map +1 -1
- package/lib/components/InboxMessage/Messages/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/Messages/index.js +42 -81
- package/lib/components/InboxMessage/Messages/index.js.map +1 -1
- package/lib/components/InboxMessage/MessagesList/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/MessagesList/index.js +53 -74
- package/lib/components/InboxMessage/MessagesList/index.js.map +1 -1
- package/lib/components/InboxMessage/Popover/index.d.ts +5 -1
- package/lib/components/InboxMessage/Popover/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/Popover/index.js +8 -35
- package/lib/components/InboxMessage/Popover/index.js.map +1 -1
- package/lib/components/InboxMessage/UserModalContent/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/UserModalContent/index.js +50 -47
- package/lib/components/InboxMessage/UserModalContent/index.js.map +1 -1
- package/lib/components/InboxMessage/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/index.js +38 -70
- package/lib/components/InboxMessage/index.js.map +1 -1
- package/lib/components/channel_view/DirectChannelView.js.map +1 -1
- package/lib/components/channel_view/PublicChannelView.js.map +1 -1
- package/lib/components/dashboard/menu_header.d.ts.map +1 -1
- package/lib/components/dashboard/menu_header.js +38 -24
- package/lib/components/dashboard/menu_header.js.map +1 -1
- package/lib/components/dashboard/modals/direct_modal.d.ts +10 -8
- package/lib/components/dashboard/modals/direct_modal.d.ts.map +1 -1
- package/lib/components/dashboard/modals/direct_modal.js +59 -39
- package/lib/components/dashboard/modals/direct_modal.js.map +1 -1
- package/lib/components/dashboard/modals.d.ts +18 -6
- package/lib/components/dashboard/modals.d.ts.map +1 -1
- package/lib/components/dashboard/modals.js +60 -101
- package/lib/components/dashboard/modals.js.map +1 -1
- package/lib/components/messenger/avatar/index.d.ts.map +1 -1
- package/lib/components/messenger/index.d.ts.map +1 -1
- package/lib/components/messenger/index.js +45 -82
- package/lib/components/messenger/index.js.map +1 -1
- package/lib/components/messenger/messagesList/index.d.ts.map +1 -1
- package/lib/components/messenger/messagesList/index.js +174 -454
- package/lib/components/messenger/messagesList/index.js.map +1 -1
- package/lib/components/messenger/messagesList/messageBox.d.ts +0 -1
- package/lib/components/messenger/messagesList/messageBox.d.ts.map +1 -1
- package/lib/components/messenger/more_action/index.d.ts.map +1 -1
- package/lib/components/messenger/postMessage/postMessage.d.ts +7 -2
- package/lib/components/messenger/postMessage/postMessage.d.ts.map +1 -1
- package/lib/components/messenger/sidebarThreadList/index.d.ts.map +1 -1
- package/lib/components/messenger/threadSidebar/index.d.ts.map +1 -1
- package/lib/components/messenger/types/message.d.ts +11 -11
- package/lib/components/messenger/types/message.d.ts.map +1 -1
- package/lib/components/post/channel_intro_message/channel_intro_message.d.ts.map +1 -1
- package/lib/components/post/channel_layout/channel_identifier_router/channel_identifier_router.d.ts.map +1 -1
- package/lib/components/post/channel_view/channel_view.d.ts.map +1 -1
- package/lib/components/post/create_post/create_post.d.ts +10 -1
- package/lib/components/post/create_post/create_post.d.ts.map +1 -1
- package/lib/components/post/failed_post_options/failed_post_options.d.ts.map +1 -1
- package/lib/components/post/index.d.ts +5 -3
- package/lib/components/post/index.d.ts.map +1 -1
- package/lib/components/post/index.js +63 -97
- package/lib/components/post/index.js.map +1 -1
- package/lib/components/post/markdown/markdown.d.ts.map +1 -1
- package/lib/components/post/post/post.d.ts.map +1 -1
- package/lib/components/post/post_body/post_body.d.ts.map +1 -1
- package/lib/components/post/post_body_additional_content/post_body_additional_content.d.ts.map +1 -1
- package/lib/components/post/post_header/post_header.d.ts.map +1 -1
- package/lib/components/post/post_header/post_header_custom_status.d.ts.map +1 -1
- package/lib/components/post/post_info/post_info.d.ts.map +1 -1
- package/lib/components/post/post_list/post_list.d.ts.map +1 -1
- package/lib/components/post/post_list_row/post_list_row.d.ts.map +1 -1
- package/lib/components/post/post_list_virtualized/post_list_virtualized.d.ts.map +1 -1
- package/lib/components/post/post_markdown/post_markdown.d.ts.map +1 -1
- package/lib/components/post/post_message_view/post_message_view.d.ts.map +1 -1
- package/lib/components/post/post_pre_header/post_pre_header.d.ts.map +1 -1
- package/lib/components/post/post_profile_picture/post_profile_picture.d.ts.map +1 -1
- package/lib/components/post/profile_picture/profile_picture.d.ts.map +1 -1
- package/lib/components/post/show_more/show_more.d.ts.map +1 -1
- package/lib/components/post/suggestion/suggestion_box.d.ts.map +1 -1
- package/lib/components/post/textbox/textbox.d.ts.map +1 -1
- package/lib/components/post/threading/channel_threads/thread_footer/thread_footer.d.ts.map +1 -1
- package/lib/components/post/tutorial/menu_tutorial_tip.d.ts.map +1 -1
- package/lib/components/post/tutorial/tutorial_tip/tutorial_tip.d.ts.map +1 -1
- package/lib/components/post_view/post_attachment_container/post_attachment_container.d.ts.map +1 -1
- package/lib/components/status_icon.d.ts.map +1 -1
- package/lib/compute.js.map +1 -1
- package/lib/containers/Dashboard.d.ts.map +1 -1
- package/lib/containers/Dashboard.js +110 -124
- package/lib/containers/Dashboard.js.map +1 -1
- package/lib/containers/DashboardWithLoader.d.ts.map +1 -1
- package/lib/containers/DashboardWithLoader.js +14 -5
- package/lib/containers/DashboardWithLoader.js.map +1 -1
- package/lib/containers/Inbox.js.map +1 -1
- package/lib/containers/Messenger.js.map +1 -1
- package/lib/module.js.map +1 -1
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/widgets/simple_tooltip/simple_tooltip.d.ts.map +1 -1
- package/package.json +5 -5
- package/CHANGELOG.md +0 -135
- package/jest.config.js +0 -24
- package/lib/components/InboxMessage/InboxDetails/style.d.ts +0 -2
- package/lib/components/InboxMessage/InboxDetails/style.d.ts.map +0 -1
- package/lib/components/InboxMessage/InboxDetails/style.js +0 -27
- package/lib/components/InboxMessage/InboxDetails/style.js.map +0 -1
- package/lib/components/InboxMessage/InboxSidebar/styles.d.ts +0 -2
- package/lib/components/InboxMessage/InboxSidebar/styles.d.ts.map +0 -1
- package/lib/components/InboxMessage/InboxSidebar/styles.js +0 -57
- package/lib/components/InboxMessage/InboxSidebar/styles.js.map +0 -1
- package/lib/components/InboxMessage/Messages/styles.d.ts +0 -81
- package/lib/components/InboxMessage/Messages/styles.d.ts.map +0 -1
- package/lib/components/InboxMessage/Messages/styles.js +0 -85
- package/lib/components/InboxMessage/Messages/styles.js.map +0 -1
- package/lib/components/InboxMessage/Popover/style.d.ts +0 -28
- package/lib/components/InboxMessage/Popover/style.d.ts.map +0 -1
- package/lib/components/InboxMessage/Popover/style.js +0 -27
- package/lib/components/InboxMessage/Popover/style.js.map +0 -1
- package/lib/components/InboxMessage/UserModalContent/style.d.ts +0 -2
- package/lib/components/InboxMessage/UserModalContent/style.d.ts.map +0 -1
- package/lib/components/InboxMessage/UserModalContent/style.js +0 -98
- package/lib/components/InboxMessage/UserModalContent/style.js.map +0 -1
- package/lib/components/InboxMessage/style.js +0 -189
- package/lib/components/InboxMessage/style.js.map +0 -1
- package/lib/components/messenger/avatar/style.d.ts +0 -2
- package/lib/components/messenger/avatar/style.d.ts.map +0 -1
- package/lib/components/messenger/messagesList/style.js +0 -446
- package/lib/components/messenger/messagesList/style.js.map +0 -1
- package/lib/components/messenger/more_action/index.js +0 -48
- package/lib/components/messenger/more_action/index.js.map +0 -1
- package/lib/components/messenger/more_action/style.d.ts +0 -2
- package/lib/components/messenger/more_action/style.d.ts.map +0 -1
- package/lib/components/messenger/more_action/style.js +0 -45
- package/lib/components/messenger/more_action/style.js.map +0 -1
- package/lib/components/post/style.js +0 -20101
- package/lib/components/post/style.js.map +0 -1
- package/lib/style.js +0 -400
- package/lib/style.js.map +0 -1
- package/rollup.config.mjs +0 -35
- package/src/cdm-locales/en/translations.json +0 -95
- package/src/cdm-locales/es/translations.json +0 -95
- package/src/components/InboxMessage/InboxDetails/index.tsx +0 -25
- package/src/components/InboxMessage/InboxDetails/style.ts +0 -27
- package/src/components/InboxMessage/InboxSidebar/index.tsx +0 -89
- package/src/components/InboxMessage/InboxSidebar/styles.ts +0 -57
- package/src/components/InboxMessage/Messages/index.tsx +0 -161
- package/src/components/InboxMessage/Messages/styles.ts +0 -85
- package/src/components/InboxMessage/MessagesList/index.tsx +0 -93
- package/src/components/InboxMessage/Popover/index.tsx +0 -60
- package/src/components/InboxMessage/Popover/style.ts +0 -27
- package/src/components/InboxMessage/UserModalContent/index.tsx +0 -63
- package/src/components/InboxMessage/UserModalContent/style.ts +0 -98
- package/src/components/InboxMessage/index.tsx +0 -289
- package/src/components/InboxMessage/mock.ts +0 -53
- package/src/components/InboxMessage/style.ts +0 -189
- package/src/components/NavBar.tsx +0 -10
- package/src/components/channel_view/DirectChannelView.tsx +0 -25
- package/src/components/channel_view/PublicChannelView.tsx +0 -25
- package/src/components/dashboard/menu_header.tsx +0 -62
- package/src/components/dashboard/modals/direct_modal.tsx +0 -54
- package/src/components/dashboard/modals.tsx +0 -121
- package/src/components/messenger/avatar/index.tsx +0 -39
- package/src/components/messenger/avatar/style.ts +0 -86
- package/src/components/messenger/index.tsx +0 -382
- package/src/components/messenger/messagesList/index.tsx +0 -764
- package/src/components/messenger/messagesList/messageBox.tsx +0 -66
- package/src/components/messenger/messagesList/style.ts +0 -448
- package/src/components/messenger/mock.ts +0 -77
- package/src/components/messenger/more_action/index.tsx +0 -79
- package/src/components/messenger/more_action/style.ts +0 -45
- package/src/components/messenger/postMessage/postMessage.tsx +0 -28
- package/src/components/messenger/postMessage/style.ts +0 -24
- package/src/components/messenger/sidebarThreadList/index.tsx +0 -201
- package/src/components/messenger/style.ts +0 -40
- package/src/components/messenger/threadSidebar/index.tsx +0 -129
- package/src/components/messenger/threadSidebar/style.ts +0 -65
- package/src/components/messenger/types/message.ts +0 -16
- package/src/components/messenger/utils/utils.ts +0 -5
- package/src/components/overlay_trigger.tsx +0 -59
- package/src/components/post/channel_intro_message/add_members_button.tsx +0 -152
- package/src/components/post/channel_intro_message/channel_intro_message.tsx +0 -53
- package/src/components/post/channel_intro_message/index.ts +0 -1
- package/src/components/post/channel_layout/center_channel/center_channel.test.tsx +0 -50
- package/src/components/post/channel_layout/center_channel/center_channel.tsx +0 -125
- package/src/components/post/channel_layout/center_channel/index.ts +0 -69
- package/src/components/post/channel_layout/channel_controller.test.tsx +0 -76
- package/src/components/post/channel_layout/channel_controller.tsx +0 -85
- package/src/components/post/channel_layout/channel_identifier_router/actions.test.ts +0 -243
- package/src/components/post/channel_layout/channel_identifier_router/actions.ts +0 -353
- package/src/components/post/channel_layout/channel_identifier_router/channel_identifier_router.test.tsx +0 -101
- package/src/components/post/channel_layout/channel_identifier_router/channel_identifier_router.tsx +0 -6
- package/src/components/post/channel_layout/channel_identifier_router/index.ts +0 -1
- package/src/components/post/channel_view/channel_view.test.tsx +0 -68
- package/src/components/post/channel_view/channel_view.tsx +0 -92
- package/src/components/post/channel_view/index.ts +0 -1
- package/src/components/post/create_post/create_post.test.jsx +0 -1335
- package/src/components/post/create_post/create_post.tsx +0 -225
- package/src/components/post/create_post/index.ts +0 -1
- package/src/components/post/failed_post_options/failed_post_options.tsx +0 -32
- package/src/components/post/failed_post_options/index.ts +0 -4
- package/src/components/post/index.tsx +0 -131
- package/src/components/post/markdown/index.ts +0 -1
- package/src/components/post/markdown/markdown.test.tsx +0 -62
- package/src/components/post/markdown/markdown.tsx +0 -38
- package/src/components/post/post/defaultpost.ts +0 -25
- package/src/components/post/post/post.tsx +0 -270
- package/src/components/post/post/style.ts +0 -0
- package/src/components/post/post_aria_label_div.tsx +0 -43
- package/src/components/post/post_body/post_body.tsx +0 -80
- package/src/components/post/post_body_additional_content/post_body_additional_content.tsx +0 -6
- package/src/components/post/post_context.tsx +0 -10
- package/src/components/post/post_header/index.ts +0 -38
- package/src/components/post/post_header/post_header.scss +0 -53
- package/src/components/post/post_header/post_header.tsx +0 -98
- package/src/components/post/post_header/post_header_custom_status.tsx +0 -49
- package/src/components/post/post_header/style.ts +0 -54
- package/src/components/post/post_info/post_info.tsx +0 -195
- package/src/components/post/post_list/index.tsx +0 -10
- package/src/components/post/post_list/post_list.tsx +0 -27
- package/src/components/post/post_list_row/index.ts +0 -42
- package/src/components/post/post_list_row/post_list_row.test.tsx +0 -176
- package/src/components/post/post_list_row/post_list_row.tsx +0 -130
- package/src/components/post/post_list_virtualized/latest_post_reader.tsx +0 -9
- package/src/components/post/post_list_virtualized/post_list_virtualized.tsx +0 -269
- package/src/components/post/post_markdown/index.test.js +0 -119
- package/src/components/post/post_markdown/index.ts +0 -1
- package/src/components/post/post_markdown/post_markdown.test.tsx +0 -178
- package/src/components/post/post_markdown/post_markdown.tsx +0 -58
- package/src/components/post/post_markdown/system_message_helpers.tsx +0 -420
- package/src/components/post/post_message_view/index.ts +0 -4
- package/src/components/post/post_message_view/post_message_view.test.tsx +0 -89
- package/src/components/post/post_message_view/post_message_view.tsx +0 -71
- package/src/components/post/post_pre_header/post_pre_header.tsx +0 -141
- package/src/components/post/post_profile_picture/post_profile_picture.tsx +0 -95
- package/src/components/post/post_view.tsx +0 -10
- package/src/components/post/profile_picture/profile_picture.tsx +0 -21
- package/src/components/post/show_more/index.ts +0 -1
- package/src/components/post/show_more/show_more.test.tsx +0 -102
- package/src/components/post/show_more/show_more.tsx +0 -97
- package/src/components/post/style.ts +0 -20101
- package/src/components/post/suggestion/suggestion_box.tsx +0 -5
- package/src/components/post/textbox/index.ts +0 -1
- package/src/components/post/textbox/textbox.tsx +0 -80
- package/src/components/post/textbox/textbox_links/index.ts +0 -24
- package/src/components/post/textbox/textbox_links/textbox_links.tsx +0 -143
- package/src/components/post/threading/channel_threads/thread_footer/index.ts +0 -4
- package/src/components/post/threading/channel_threads/thread_footer/thread_footer.scss +0 -72
- package/src/components/post/threading/channel_threads/thread_footer/thread_footer.tsx +0 -206
- package/src/components/post/threading/common/button/__snapshots__/button.test.tsx.snap +0 -68
- package/src/components/post/threading/common/button/button.scss +0 -148
- package/src/components/post/threading/common/button/button.test.tsx +0 -75
- package/src/components/post/threading/common/button/button.tsx +0 -51
- package/src/components/post/threading/common/button/index.ts +0 -4
- package/src/components/post/threading/common/follow_button/__snapshots__/follow_button.test.tsx.snap +0 -50
- package/src/components/post/threading/common/follow_button/follow_button.test.tsx +0 -56
- package/src/components/post/threading/common/follow_button/follow_button.tsx +0 -39
- package/src/components/post/threading/common/follow_button/index.ts +0 -4
- package/src/components/post/timestamp/__snapshots__/semantic_time.test.tsx.snap +0 -13
- package/src/components/post/timestamp/__snapshots__/timestamp.test.tsx.snap +0 -13
- package/src/components/post/timestamp/index.ts +0 -50
- package/src/components/post/timestamp/relative_ranges.tsx +0 -58
- package/src/components/post/timestamp/semantic_time.test.tsx +0 -47
- package/src/components/post/timestamp/semantic_time.tsx +0 -28
- package/src/components/post/timestamp/timestamp.stories.tsx +0 -190
- package/src/components/post/timestamp/timestamp.test.tsx +0 -309
- package/src/components/post/timestamp/timestamp.tsx +0 -441
- package/src/components/post/tutorial/menu_tutorial_tip.tsx +0 -63
- package/src/components/post/tutorial/tutorial_tip/index.ts +0 -0
- package/src/components/post/tutorial/tutorial_tip/tutorial_tip.test.tsx +0 -111
- package/src/components/post/tutorial/tutorial_tip/tutorial_tip.tsx +0 -224
- package/src/components/post/user_profile/index.tsx +0 -6
- package/src/components/post/user_profile/user_profile.tsx +0 -114
- package/src/components/post_view/__snapshots__/post_view.test.js.snap +0 -25
- package/src/components/post_view/channel_intro_message/add_members_button.scss +0 -72
- package/src/components/post_view/channel_intro_message/add_members_button.tsx +0 -152
- package/src/components/post_view/channel_intro_message/channel_intro_message.tsx +0 -549
- package/src/components/post_view/channel_intro_message/index.ts +0 -67
- package/src/components/post_view/combined_system_message/__snapshots__/combined_system_message.test.tsx.snap +0 -238
- package/src/components/post_view/combined_system_message/__snapshots__/last_users.test.tsx.snap +0 -74
- package/src/components/post_view/combined_system_message/combined_system_message.test.tsx +0 -167
- package/src/components/post_view/combined_system_message/combined_system_message.tsx +0 -380
- package/src/components/post_view/combined_system_message/index.ts +0 -46
- package/src/components/post_view/combined_system_message/last_users.test.tsx +0 -56
- package/src/components/post_view/combined_system_message/last_users.tsx +0 -135
- package/src/components/post_view/combined_user_activity_post/index.ts +0 -28
- package/src/components/post_view/comment_icon/index.ts +0 -31
- package/src/components/post_view/commented_on/__snapshots__/commented_on.test.tsx.snap +0 -276
- package/src/components/post_view/commented_on/commented_on.test.tsx +0 -184
- package/src/components/post_view/commented_on/commented_on.tsx +0 -92
- package/src/components/post_view/commented_on/index.ts +0 -37
- package/src/components/post_view/commented_on_files_message/__snapshots__/commented_on_files_message.test.jsx.snap +0 -24
- package/src/components/post_view/commented_on_files_message/commented_on_files_message.jsx +0 -47
- package/src/components/post_view/commented_on_files_message/commented_on_files_message.test.jsx +0 -53
- package/src/components/post_view/commented_on_files_message/index.js +0 -25
- package/src/components/post_view/date_separator/__snapshots__/date_separator.test.tsx.snap +0 -35
- package/src/components/post_view/date_separator/date_separator.test.tsx +0 -26
- package/src/components/post_view/date_separator/date_separator.tsx +0 -40
- package/src/components/post_view/date_separator/index.ts +0 -4
- package/src/components/post_view/embedded_bindings/button_binding/__snapshots__/button_binding.test.tsx.snap +0 -23
- package/src/components/post_view/embedded_bindings/button_binding/button_binding.test.tsx +0 -124
- package/src/components/post_view/embedded_bindings/button_binding/button_binding.tsx +0 -141
- package/src/components/post_view/embedded_bindings/button_binding/index.ts +0 -34
- package/src/components/post_view/embedded_bindings/embedded_binding/__snapshots__/embedded_binding.test.tsx.snap +0 -249
- package/src/components/post_view/embedded_bindings/embedded_binding/embedded_binding.test.tsx +0 -76
- package/src/components/post_view/embedded_bindings/embedded_binding/embedded_binding.tsx +0 -205
- package/src/components/post_view/embedded_bindings/embedded_binding/index.ts +0 -17
- package/src/components/post_view/embedded_bindings/embedded_bindings.tsx +0 -59
- package/src/components/post_view/embedded_bindings/select_binding/index.ts +0 -33
- package/src/components/post_view/embedded_bindings/select_binding/select_binding.test.tsx +0 -170
- package/src/components/post_view/embedded_bindings/select_binding/select_binding.tsx +0 -188
- package/src/components/post_view/failed_post_options/__snapshots__/failed_post_options.test.tsx.snap +0 -29
- package/src/components/post_view/failed_post_options/failed_post_options.test.tsx +0 -59
- package/src/components/post_view/failed_post_options/failed_post_options.tsx +0 -67
- package/src/components/post_view/failed_post_options/index.ts +0 -23
- package/src/components/post_view/floating_timestamp/__snapshots__/floating_timestamp.test.tsx.snap +0 -41
- package/src/components/post_view/floating_timestamp/floating_timestamp.test.tsx +0 -23
- package/src/components/post_view/floating_timestamp/floating_timestamp.tsx +0 -52
- package/src/components/post_view/floating_timestamp/index.ts +0 -35
- package/src/components/post_view/index.js +0 -61
- package/src/components/post_view/index.test.js +0 -37
- package/src/components/post_view/message_attachments/action_button/__snapshots__/action_button.test.tsx.snap +0 -26
- package/src/components/post_view/message_attachments/action_button/action_button.test.tsx +0 -113
- package/src/components/post_view/message_attachments/action_button/action_button.tsx +0 -80
- package/src/components/post_view/message_attachments/action_button/index.ts +0 -17
- package/src/components/post_view/message_attachments/action_menu/action_menu.test.tsx +0 -61
- package/src/components/post_view/message_attachments/action_menu/action_menu.tsx +0 -156
- package/src/components/post_view/message_attachments/action_menu/index.ts +0 -41
- package/src/components/post_view/message_attachments/message_attachment/__snapshots__/message_attachment.test.tsx.snap +0 -726
- package/src/components/post_view/message_attachments/message_attachment/index.ts +0 -32
- package/src/components/post_view/message_attachments/message_attachment/message_attachment.test.tsx +0 -234
- package/src/components/post_view/message_attachments/message_attachment/message_attachment.tsx +0 -544
- package/src/components/post_view/message_attachments/message_attachment_list.tsx +0 -64
- package/src/components/post_view/new_message_separator/__snapshots__/new_message_separator.test.tsx.snap +0 -16
- package/src/components/post_view/new_message_separator/new_message_separator.test.tsx +0 -16
- package/src/components/post_view/new_message_separator/new_message_separator.tsx +0 -31
- package/src/components/post_view/post/__snapshots__/post.test.js.snap +0 -337
- package/src/components/post_view/post/index.test.js +0 -61
- package/src/components/post_view/post/index.ts +0 -96
- package/src/components/post_view/post/post.jsx +0 -446
- package/src/components/post_view/post/post.test.js +0 -222
- package/src/components/post_view/post_add_channel_member/__snapshots__/post_add_channel_member.test.tsx.snap +0 -226
- package/src/components/post_view/post_add_channel_member/index.ts +0 -47
- package/src/components/post_view/post_add_channel_member/post_add_channel_member.test.tsx +0 -140
- package/src/components/post_view/post_add_channel_member/post_add_channel_member.tsx +0 -231
- package/src/components/post_view/post_aria_label_div.test.jsx +0 -106
- package/src/components/post_view/post_aria_label_div.tsx +0 -48
- package/src/components/post_view/post_attachment_container/__snapshots__/post_attachment_container.test.tsx.snap +0 -25
- package/src/components/post_view/post_attachment_container/post_attachment_container.test.tsx +0 -21
- package/src/components/post_view/post_attachment_container/post_attachment_container.tsx +0 -40
- package/src/components/post_view/post_attachment_opengraph/get_nearest_point.test.ts +0 -55
- package/src/components/post_view/post_attachment_opengraph/get_nearest_point.ts +0 -31
- package/src/components/post_view/post_attachment_opengraph/index.ts +0 -48
- package/src/components/post_view/post_attachment_opengraph/post_attachment_opengraph.test.tsx +0 -264
- package/src/components/post_view/post_attachment_opengraph/post_attachment_opengraph.tsx +0 -262
- package/src/components/post_view/post_body/index.js +0 -36
- package/src/components/post_view/post_body/post_body.jsx +0 -235
- package/src/components/post_view/post_body_additional_content/__snapshots__/post_body_additional_content.test.tsx.snap +0 -295
- package/src/components/post_view/post_body_additional_content/index.ts +0 -36
- package/src/components/post_view/post_body_additional_content/post_body_additional_content.test.tsx +0 -425
- package/src/components/post_view/post_body_additional_content/post_body_additional_content.tsx +0 -194
- package/src/components/post_view/post_context.js +0 -14
- package/src/components/post_view/post_flag_icon/__snapshots__/post_flag_icon.test.js.snap +0 -81
- package/src/components/post_view/post_flag_icon/index.js +0 -20
- package/src/components/post_view/post_flag_icon/post_flag_icon.js +0 -125
- package/src/components/post_view/post_flag_icon/post_flag_icon.test.js +0 -39
- package/src/components/post_view/post_header/__snapshots__/post_header.test.tsx.snap +0 -196
- package/src/components/post_view/post_header/index.ts +0 -38
- package/src/components/post_view/post_header/post_header.scss +0 -53
- package/src/components/post_view/post_header/post_header.test.tsx +0 -68
- package/src/components/post_view/post_header/post_header.tsx +0 -202
- package/src/components/post_view/post_header/post_header_custom_status.tsx +0 -73
- package/src/components/post_view/post_image/index.js +0 -6
- package/src/components/post_view/post_image/post_image.jsx +0 -69
- package/src/components/post_view/post_info/__snapshots__/post_info.test.tsx.snap +0 -322
- package/src/components/post_view/post_info/index.ts +0 -66
- package/src/components/post_view/post_info/post_info.test.tsx +0 -170
- package/src/components/post_view/post_info/post_info.tsx +0 -403
- package/src/components/post_view/post_list/__snapshots__/post_list.test.jsx.snap +0 -71
- package/src/components/post_view/post_list/index.js +0 -105
- package/src/components/post_view/post_list/post_list.jsx +0 -324
- package/src/components/post_view/post_list/post_list.test.jsx +0 -274
- package/src/components/post_view/post_list_row/__snapshots__/post_list_row.test.tsx.snap +0 -108
- package/src/components/post_view/post_list_row/index.ts +0 -42
- package/src/components/post_view/post_list_row/post_list_row.test.tsx +0 -176
- package/src/components/post_view/post_list_row/post_list_row.tsx +0 -165
- package/src/components/post_view/post_list_virtualized/latest_post_reader.test.jsx +0 -80
- package/src/components/post_view/post_list_virtualized/latest_post_reader.tsx +0 -46
- package/src/components/post_view/post_list_virtualized/post_list_virtualized.jsx +0 -626
- package/src/components/post_view/post_list_virtualized/post_list_virtualized.test.jsx +0 -623
- package/src/components/post_view/post_message_preview/__snapshots__/post_message_preview.test.tsx.snap +0 -88
- package/src/components/post_view/post_message_preview/index.ts +0 -35
- package/src/components/post_view/post_message_preview/post_message_preview.test.tsx +0 -50
- package/src/components/post_view/post_message_preview/post_message_preview.tsx +0 -92
- package/src/components/post_view/post_message_view/__snapshots__/post_message_view.test.tsx.snap +0 -242
- package/src/components/post_view/post_message_view/index.ts +0 -27
- package/src/components/post_view/post_message_view/post_message_view.test.tsx +0 -89
- package/src/components/post_view/post_message_view/post_message_view.tsx +0 -192
- package/src/components/post_view/post_pre_header/__snapshots__/post_pre_header.test.tsx.snap +0 -209
- package/src/components/post_view/post_pre_header/index.js +0 -18
- package/src/components/post_view/post_pre_header/post_pre_header.test.tsx +0 -188
- package/src/components/post_view/post_pre_header/post_pre_header.tsx +0 -148
- package/src/components/post_view/post_reaction/__snapshots__/post_reaction.test.tsx.snap +0 -63
- package/src/components/post_view/post_reaction/index.ts +0 -21
- package/src/components/post_view/post_reaction/post_reaction.test.tsx +0 -39
- package/src/components/post_view/post_reaction/post_reaction.tsx +0 -124
- package/src/components/post_view/post_time/index.ts +0 -18
- package/src/components/post_view/post_time/post_time.tsx +0 -113
- package/src/components/post_view/post_view.jsx +0 -83
- package/src/components/post_view/post_view.test.js +0 -53
- package/src/components/post_view/reaction/__snapshots__/reaction.test.jsx.snap +0 -339
- package/src/components/post_view/reaction/index.ts +0 -120
- package/src/components/post_view/reaction/reaction.scss +0 -157
- package/src/components/post_view/reaction/reaction.test.jsx +0 -80
- package/src/components/post_view/reaction/reaction.tsx +0 -263
- package/src/components/post_view/reaction/reaction_tooltip/index.test.js +0 -56
- package/src/components/post_view/reaction/reaction_tooltip/index.ts +0 -67
- package/src/components/post_view/reaction/reaction_tooltip/reaction_tooltip.tsx +0 -140
- package/src/components/post_view/reaction_list/__snapshots__/reactions_list.test.jsx.snap +0 -95
- package/src/components/post_view/reaction_list/index.ts +0 -52
- package/src/components/post_view/reaction_list/reaction_list.tsx +0 -201
- package/src/components/post_view/reaction_list/reactions_list.test.jsx +0 -57
- package/src/components/post_view/scroll_to_bottom_arrows.jsx +0 -37
- package/src/components/post_view/show_more/__snapshots__/show_more.test.tsx.snap +0 -237
- package/src/components/post_view/show_more/index.ts +0 -23
- package/src/components/post_view/show_more/show_more.test.tsx +0 -102
- package/src/components/post_view/show_more/show_more.tsx +0 -196
- package/src/components/status_icon.tsx +0 -49
- package/src/components/status_icon_new.tsx +0 -35
- package/src/compute.ts +0 -74
- package/src/containers/Dashboard.tsx +0 -527
- package/src/containers/DashboardWithLoader.tsx +0 -38
- package/src/containers/Inbox.tsx +0 -13
- package/src/containers/Loading.tsx +0 -12
- package/src/containers/Messenger.tsx +0 -18
- package/src/containers/__tests__/ApolloProvider.test.tsx +0 -48
- package/src/containers/__tests__/Counter.test.tsx +0 -49
- package/src/containers/__tests__/PersonList.test.tsx +0 -43
- package/src/containers/__tests__/__snapshots__/Counter.test.tsx.snap +0 -299
- package/src/containers/__tests__/__snapshots__/PersonList.test.tsx.snap +0 -230
- package/src/containers/__tests__/redux.test.tsx +0 -86
- package/src/containers/__tests__/setup.ts +0 -18
- package/src/containers/__tests__/utils.ts +0 -5
- package/src/containers/index.ts +0 -4
- package/src/index.ts +0 -5
- package/src/inversify-containers/index.ts +0 -1
- package/src/inversify-containers/module.ts +0 -4
- package/src/module.ts +0 -21
- package/src/packages/constants/constants.ts +0 -1831
- package/src/packages/types/channels.ts +0 -194
- package/src/packages/types/emojis.ts +0 -41
- package/src/packages/types/files.ts +0 -43
- package/src/packages/types/posts.ts +0 -155
- package/src/packages/types/reactions.ts +0 -8
- package/src/packages/types/teams.ts +0 -105
- package/src/packages/types/utilities.ts +0 -30
- package/src/services/index.ts +0 -0
- package/src/style.ts +0 -401
- package/src/utils/constants.tsx +0 -1120
- package/src/utils/i18n.tsx +0 -15
- package/src/utils/index.ts +0 -34
- package/src/utils/post_list.ts +0 -54
- package/src/utils/post_utils.ts +0 -33
- package/src/utils/user_agent.tsx +0 -153
- package/src/utils/utils.tsx +0 -54
- package/src/widgets/badges/badge.scss +0 -21
- package/src/widgets/badges/badge.tsx +0 -30
- package/src/widgets/badges/bot_badge.tsx +0 -31
- package/src/widgets/badges/guest_badge.tsx +0 -31
- package/src/widgets/badges/style.ts +0 -24
- package/src/widgets/icons/accordion_toggle_icon.tsx +0 -59
- package/src/widgets/icons/add_reaction_icon.tsx +0 -23
- package/src/widgets/icons/admin_eye_icon.tsx +0 -30
- package/src/widgets/icons/alert_icon.tsx +0 -22
- package/src/widgets/icons/archive_icon.tsx +0 -23
- package/src/widgets/icons/arrow_right_icon.tsx +0 -23
- package/src/widgets/icons/at_icon.tsx +0 -22
- package/src/widgets/icons/attachment_icon.tsx +0 -38
- package/src/widgets/icons/back_icon.tsx +0 -22
- package/src/widgets/icons/bot_icon.tsx +0 -23
- package/src/widgets/icons/camera_icon.tsx +0 -41
- package/src/widgets/icons/checkbox_checked_icon.tsx +0 -62
- package/src/widgets/icons/checkbox_partial_icon.tsx +0 -62
- package/src/widgets/icons/close_circle_icon.tsx +0 -25
- package/src/widgets/icons/close_circle_solid_icon.tsx +0 -25
- package/src/widgets/icons/close_icon.tsx +0 -27
- package/src/widgets/icons/dots_horizontal.tsx +0 -22
- package/src/widgets/icons/download_icon.tsx +0 -46
- package/src/widgets/icons/draft_icon.tsx +0 -32
- package/src/widgets/icons/ellipsis_h_icon.tsx +0 -23
- package/src/widgets/icons/email_icon.tsx +0 -23
- package/src/widgets/icons/emoji_icon.tsx +0 -22
- package/src/widgets/icons/fa_add_icon.tsx +0 -15
- package/src/widgets/icons/fa_back_icon.tsx +0 -16
- package/src/widgets/icons/fa_dropdown_icon.tsx +0 -15
- package/src/widgets/icons/fa_edit_icon.tsx +0 -16
- package/src/widgets/icons/fa_logout_icon.tsx +0 -15
- package/src/widgets/icons/fa_next_icon.tsx +0 -28
- package/src/widgets/icons/fa_previous_icon.tsx +0 -28
- package/src/widgets/icons/fa_reload_icon.tsx +0 -16
- package/src/widgets/icons/fa_remove_icon.tsx +0 -16
- package/src/widgets/icons/fa_search_icon.tsx +0 -16
- package/src/widgets/icons/fa_select_icon.tsx +0 -16
- package/src/widgets/icons/fa_success_icon.tsx +0 -16
- package/src/widgets/icons/fa_warning_icon.tsx +0 -28
- package/src/widgets/icons/flag_icon.tsx +0 -22
- package/src/widgets/icons/flag_icon_filled.tsx +0 -41
- package/src/widgets/icons/gfycat_icon.tsx +0 -38
- package/src/widgets/icons/gif_reactions_icon.tsx +0 -52
- package/src/widgets/icons/gif_search_clear_icon.tsx +0 -27
- package/src/widgets/icons/gif_search_icon.tsx +0 -29
- package/src/widgets/icons/gif_trending_icon.tsx +0 -49
- package/src/widgets/icons/globe_icon.tsx +0 -22
- package/src/widgets/icons/icons.stories.js +0 -110
- package/src/widgets/icons/info_icon.tsx +0 -40
- package/src/widgets/icons/info_small_icon.tsx +0 -35
- package/src/widgets/icons/invite_icon.tsx +0 -22
- package/src/widgets/icons/invite_members_icon.tsx +0 -22
- package/src/widgets/icons/leave_team_icon.tsx +0 -30
- package/src/widgets/icons/link_icon.tsx +0 -23
- package/src/widgets/icons/lock_icon.tsx +0 -41
- package/src/widgets/icons/mail_icon.tsx +0 -22
- package/src/widgets/icons/mail_plus_icon.tsx +0 -22
- package/src/widgets/icons/mattermost_logo.tsx +0 -40
- package/src/widgets/icons/member_icon.tsx +0 -22
- package/src/widgets/icons/mentions_icon.tsx +0 -24
- package/src/widgets/icons/menu_icon.tsx +0 -42
- package/src/widgets/icons/message_icon.tsx +0 -42
- package/src/widgets/icons/pin_icon.tsx +0 -23
- package/src/widgets/icons/plugin_channel_header_icon.tsx +0 -23
- package/src/widgets/icons/plugin_icon.tsx +0 -44
- package/src/widgets/icons/reply_icon.tsx +0 -23
- package/src/widgets/icons/scroll_to_bottom_icon.tsx +0 -23
- package/src/widgets/icons/search_icon.tsx +0 -22
- package/src/widgets/icons/shield_outline_icon.tsx +0 -23
- package/src/widgets/icons/status_away_avatar_icon.tsx +0 -33
- package/src/widgets/icons/status_away_icon.tsx +0 -33
- package/src/widgets/icons/status_dnd_avatar_icon.tsx +0 -41
- package/src/widgets/icons/status_dnd_icon.tsx +0 -33
- package/src/widgets/icons/status_offline_avatar_icon.tsx +0 -45
- package/src/widgets/icons/status_offline_icon.tsx +0 -31
- package/src/widgets/icons/status_online_avatar_icon.tsx +0 -49
- package/src/widgets/icons/status_online_icon.tsx +0 -33
- package/src/widgets/icons/team_info_icon.tsx +0 -32
- package/src/widgets/icons/unarchive_icon.tsx +0 -22
- package/src/widgets/icons/unread_below_icon.tsx +0 -23
- package/src/widgets/icons/user_guide_icon.tsx +0 -26
- package/src/widgets/overlay_trigger.tsx +0 -59
- package/src/widgets/shared_user_indicator.tsx +0 -37
- package/src/widgets/simple_tooltip/index.ts +0 -7
- package/src/widgets/simple_tooltip/simple_tooltip.tsx +0 -63
- package/src/widgets/users/avatar/avatar.test.tsx +0 -34
- package/src/widgets/users/avatar/avatar.tsx +0 -38
- package/src/widgets/users/avatar/index.ts +0 -4
- package/src/widgets/users/avatar/style.ts +0 -79
- package/src/widgets/users/avatars/__snapshots__/avatars.test.tsx.snap +0 -1585
- package/src/widgets/users/avatars/avatars.scss +0 -64
- package/src/widgets/users/avatars/avatars.test.tsx +0 -184
- package/src/widgets/users/avatars/avatars.tsx +0 -146
- package/src/widgets/users/avatars/index.ts +0 -4
- package/src/widgets/users/users.stories.tsx +0 -37
- package/tsconfig.json +0 -14
- package/webpack.config.js +0 -58
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"messenger_box_browser": {
|
|
3
|
-
"direct_messages": "Mensajes Directos",
|
|
4
|
-
"go": "Ir",
|
|
5
|
-
"use_browse_or_select": "Usa ↑↓ para navegar, ↵ para seleccionar.",
|
|
6
|
-
"toggle_sidebar": "Alternar barra lateral",
|
|
7
|
-
"create_channel": "Crear Canal",
|
|
8
|
-
"join": "unirse",
|
|
9
|
-
"no_more_channels_to_join": "No hay más canales a los que unirse",
|
|
10
|
-
"click_create_new_channel": "Haz clic en 'Crear Nuevo Canal' para crear uno nuevo",
|
|
11
|
-
"create_public_channel": "Crear Canal Público",
|
|
12
|
-
"channel_name": "Nombre del Canal",
|
|
13
|
-
"channel_description": "Descripción del Canal",
|
|
14
|
-
"close": "Cerrar",
|
|
15
|
-
"details": "Detalles",
|
|
16
|
-
"you_have_no_unread_messages": "No tienes mensajes sin leer",
|
|
17
|
-
"when_you_book_a_trip_or_experience": "Cuando reservas un viaje o experiencia, los mensajes de tu anfitrión aparecerán aquí.",
|
|
18
|
-
"explore": "Explorar",
|
|
19
|
-
"archive": "Archivo",
|
|
20
|
-
"image": "Imagen",
|
|
21
|
-
"type_your_message": "Escribe tu mensaje",
|
|
22
|
-
"all_conversations": "Todas las Conversaciones",
|
|
23
|
-
"archived_conversations": "Conversaciones Archivadas",
|
|
24
|
-
"unread_conversations": "Conversaciones sin Leer",
|
|
25
|
-
"update_photo": "Actualizar foto",
|
|
26
|
-
"identity_verification": "Verificación de identidad",
|
|
27
|
-
"show_others_you_are_really_you": "Demuestra a los demás que realmente eres tú con la insignia de verificación de identidad.",
|
|
28
|
-
"get_the_badge": "Obtener la insignia",
|
|
29
|
-
"username_confirmed": "{{username}} confirmado",
|
|
30
|
-
"email_address": "Correo electrónico",
|
|
31
|
-
"hi_username": "Hola, soy {{username}}",
|
|
32
|
-
"joined_in_date": "Se unió en {{date}}",
|
|
33
|
-
"edit_profile": "Editar perfil",
|
|
34
|
-
"reviews": "Reseñas",
|
|
35
|
-
"reviews_by_you": "Reseñas hechas por ti",
|
|
36
|
-
"messages": "Mensajes",
|
|
37
|
-
"add_conversations": "Añadir Conversaciones",
|
|
38
|
-
"edit_message": "Editar Mensaje",
|
|
39
|
-
"save": "Guardar",
|
|
40
|
-
"add_new_members_to_my_first_public_channel": "Añadir Nuevos Miembros a Mi Primer Canal Público",
|
|
41
|
-
"surveybot": "Survey Bot",
|
|
42
|
-
"survey_bot_collects_your": "El bot de encuestas recoge tu..",
|
|
43
|
-
"local_time": "Hora Local",
|
|
44
|
-
"send_message": "Enviar Mensaje",
|
|
45
|
-
"beginning_of": "Inicio de",
|
|
46
|
-
"direct_messages_and_files_shared": "Los mensajes directos y archivos compartidos aquí no se muestran a personas fuera de esta área.",
|
|
47
|
-
"invite_others_to_this_channel": "Invitar a otros a este canal",
|
|
48
|
-
"set_a_header": "Establecer un Encabezado",
|
|
49
|
-
"bot": "BOT",
|
|
50
|
-
"this_is_the_start_of_your_direct_message": "Este es el inicio de tu historial de mensajes directos con surveybot.",
|
|
51
|
-
"today": "Hoy",
|
|
52
|
-
"yesterday": "Ayer",
|
|
53
|
-
"pick_your_emoji": "Elige tu emoji...",
|
|
54
|
-
"system": "Sistema",
|
|
55
|
-
"working": "Trabajando..........",
|
|
56
|
-
"joined_the_channel": "se unió al canal",
|
|
57
|
-
"reply_to": "Responder a",
|
|
58
|
-
"we_supply_a_series_of_design_principles": "Proporcionamos una serie de principios de diseño, patrones prácticos y recursos de diseño de alta calidad (Sketch y Axure), para ayudar a las personas a crear sus prototipos de productos de manera hermosa y eficiente.",
|
|
59
|
-
"reply": "Responder",
|
|
60
|
-
"mark_as_unread": "Marcar como no leído",
|
|
61
|
-
"copy_link": "copiar enlace",
|
|
62
|
-
"unpin_to_channel": "desanclar del canal",
|
|
63
|
-
"pin_to_channel": "anclar al canal",
|
|
64
|
-
"edit": "Editar",
|
|
65
|
-
"delete": "Eliminar",
|
|
66
|
-
"please_enter": "Por favor ingrese",
|
|
67
|
-
"slack_bot": "Slack Bot",
|
|
68
|
-
"edit_account_setting": "Editar Configuración de la Cuenta",
|
|
69
|
-
"thank_for_chatting_with_us": "Gracias por chatear con nosotros",
|
|
70
|
-
"close_channel": "Cerrar Canal",
|
|
71
|
-
"this_channel_is_read_only": "Este canal es solo de lectura. Solo los miembros con permiso pueden publicar aquí.",
|
|
72
|
-
"retry": "Reintentar",
|
|
73
|
-
"cancel": "Cancelar",
|
|
74
|
-
"update_your_status": "Actualizar tu estado",
|
|
75
|
-
"only_visible_to_you": "(Solo visible para ti)",
|
|
76
|
-
"saved": "Guardado",
|
|
77
|
-
"pinned": "Anclado",
|
|
78
|
-
"show_less": "Mostrar menos",
|
|
79
|
-
"show_more": "Mostrar más",
|
|
80
|
-
"preview": "Vista previa",
|
|
81
|
-
"help": "Ayuda",
|
|
82
|
-
"following": "Siguiendo",
|
|
83
|
-
"follow": "Seguir",
|
|
84
|
-
"got_it": "Entendido",
|
|
85
|
-
"seen_this_before": "¿Has visto esto antes?",
|
|
86
|
-
"opt_out_of_these_tips": "Darse de baja de estos consejos.",
|
|
87
|
-
"invite_people": "Invitar a personas",
|
|
88
|
-
"username_joined_the_channel": "@{{username}} se unió al canal",
|
|
89
|
-
"PUBLIC_CHANNELS": "CANALES PÚBLICOS",
|
|
90
|
-
"more": "Más...",
|
|
91
|
-
"PRIVATE_CHANNELS": "CANALES PRIVADOS",
|
|
92
|
-
"DIRECT_MESSAGES": "MENSAJES DIRECTOS",
|
|
93
|
-
"loading": "Cargando"
|
|
94
|
-
}
|
|
95
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { Button } from '@chakra-ui/react';
|
|
4
|
-
import { AiOutlineClose } from '@react-icons/all-files/ai/AiOutlineClose';
|
|
5
|
-
import { css } from '@emotion/css';
|
|
6
|
-
import { styleSheet } from './style';
|
|
7
|
-
|
|
8
|
-
export default function InboxDetails({ handleToggle, toggleDrawer }: any) {
|
|
9
|
-
const { t } = useTranslation();
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<div className={css(styleSheet.detailDrawerStyles)}>
|
|
13
|
-
<div className="details">
|
|
14
|
-
<h4> {t('messenger_box_browser.details')}</h4>
|
|
15
|
-
<Button
|
|
16
|
-
onClick={handleToggle}
|
|
17
|
-
as="a"
|
|
18
|
-
className="close-btn"
|
|
19
|
-
marginRight="10px"
|
|
20
|
-
rightIcon={<AiOutlineClose color="black" />}
|
|
21
|
-
></Button>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
);
|
|
25
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export const styleSheet = {
|
|
2
|
-
detailDrawerStyles: {
|
|
3
|
-
width: '100%',
|
|
4
|
-
'& .details': {
|
|
5
|
-
borderBottom: '1px solid #eaeaea',
|
|
6
|
-
height: '55px',
|
|
7
|
-
display: 'flex',
|
|
8
|
-
alignItems: 'center',
|
|
9
|
-
paddingLeft: '10px',
|
|
10
|
-
justifyContent: 'space-between',
|
|
11
|
-
'& h4': {
|
|
12
|
-
color: 'black',
|
|
13
|
-
fontSize: '1em',
|
|
14
|
-
fontWeight: 'bold',
|
|
15
|
-
},
|
|
16
|
-
'& .close-btn ': {
|
|
17
|
-
marginTop: '0',
|
|
18
|
-
'& svg': {
|
|
19
|
-
color: 'black',
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
'& .close-btn:hover ': {
|
|
23
|
-
background: '#eaeaea',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
} as any;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { Avatar, Button } from '@chakra-ui/react';
|
|
4
|
-
import Moment from 'moment';
|
|
5
|
-
import { css } from '@emotion/css';
|
|
6
|
-
import { inboxData } from '../mock';
|
|
7
|
-
import { styleSheet } from './styles';
|
|
8
|
-
|
|
9
|
-
type IPropsType = {
|
|
10
|
-
handleSelectMessgae?: any;
|
|
11
|
-
user?: [] | any;
|
|
12
|
-
messageList?: any;
|
|
13
|
-
currentUser?: any;
|
|
14
|
-
userId?: any;
|
|
15
|
-
users?: any;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export default function InboxSidebar({ handleSelectMessgae, user, messageList, userId, users }: IPropsType) {
|
|
19
|
-
const { t } = useTranslation();
|
|
20
|
-
|
|
21
|
-
const userList = users?.filter((item) => {
|
|
22
|
-
return item?.id !== userId;
|
|
23
|
-
});
|
|
24
|
-
return (
|
|
25
|
-
<div className={css(styleSheet.inboxSibarStyles)}>
|
|
26
|
-
{user?.length > 0 ? (
|
|
27
|
-
user?.map((item, index) => {
|
|
28
|
-
const lastMessage = messageList[messageList?.length - 1];
|
|
29
|
-
let memberId;
|
|
30
|
-
item?.members.find((ele) => {
|
|
31
|
-
if (ele.user !== userId) {
|
|
32
|
-
memberId = ele.user;
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
const userMember = userList.find((element) => {
|
|
36
|
-
return element.id === memberId;
|
|
37
|
-
});
|
|
38
|
-
return (
|
|
39
|
-
<Button
|
|
40
|
-
as="a"
|
|
41
|
-
border="none"
|
|
42
|
-
bg="none"
|
|
43
|
-
width="100%"
|
|
44
|
-
borderRadius="10px"
|
|
45
|
-
_hover={{ backgroundColor: 'rgb(221, 221, 221)' }}
|
|
46
|
-
className="show-message"
|
|
47
|
-
paddingLeft="10px"
|
|
48
|
-
onClick={() => handleSelectMessgae(item)}
|
|
49
|
-
key={index}
|
|
50
|
-
>
|
|
51
|
-
<div className="inbox-contacts">
|
|
52
|
-
<Avatar size="md" backgroundColor="grey" borderRadius="50%" width="50px" />
|
|
53
|
-
<div className="last-message">
|
|
54
|
-
<h5>{userMember?.username}</h5>
|
|
55
|
-
<p>{lastMessage?.message}</p>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</Button>
|
|
59
|
-
);
|
|
60
|
-
})
|
|
61
|
-
) : (
|
|
62
|
-
<div className="no-messages">
|
|
63
|
-
<h4>{t('messenger_box_browser.you_have_no_unread_messages')}</h4>
|
|
64
|
-
<p>{t('messenger_box_browser.when_you_book_a_trip_or_experience')}</p>
|
|
65
|
-
<Button
|
|
66
|
-
variant="outline"
|
|
67
|
-
width="110px"
|
|
68
|
-
height="40px"
|
|
69
|
-
borderRadius="7px"
|
|
70
|
-
bg="none"
|
|
71
|
-
border="1px solid rgb(34 34 34)"
|
|
72
|
-
color="black"
|
|
73
|
-
fontWeight="600"
|
|
74
|
-
>
|
|
75
|
-
{t('messenger_box_browser.explore')}
|
|
76
|
-
</Button>
|
|
77
|
-
</div>
|
|
78
|
-
)}
|
|
79
|
-
</div>
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// {
|
|
84
|
-
// cnl.displayName.split(',').length > 1 ?
|
|
85
|
-
// <span
|
|
86
|
-
// className="num_style">{cnl.displayName.split(',').length}</span> :
|
|
87
|
-
// <span className="icon icon__globe"
|
|
88
|
-
// color="white"><RiAdminFill /></span>
|
|
89
|
-
// }
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export const styleSheet = {
|
|
2
|
-
inboxSibarStyles: {
|
|
3
|
-
width: '100%',
|
|
4
|
-
marginRight: '20px',
|
|
5
|
-
cursor: 'pointer',
|
|
6
|
-
top: '0',
|
|
7
|
-
bottom: '0',
|
|
8
|
-
height: '100%',
|
|
9
|
-
overflow: 'auto',
|
|
10
|
-
padding: '10px',
|
|
11
|
-
'& .show-message': {
|
|
12
|
-
color: 'black',
|
|
13
|
-
textDecoration: 'none',
|
|
14
|
-
},
|
|
15
|
-
'& .username': {
|
|
16
|
-
color: 'black',
|
|
17
|
-
},
|
|
18
|
-
'& .inbox-contacts': {
|
|
19
|
-
display: 'flex',
|
|
20
|
-
marginTop: '10px',
|
|
21
|
-
paddingBottom: '15px',
|
|
22
|
-
width: '100%',
|
|
23
|
-
borderBottom: '1px solid #eaeaea',
|
|
24
|
-
paddingRight: '10px',
|
|
25
|
-
justifiedContent: 'space-between',
|
|
26
|
-
'& .last-message': {
|
|
27
|
-
marginLeft: '10px',
|
|
28
|
-
lineHeight: '3px',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
'& .no-messages': {
|
|
32
|
-
textAlign: 'center',
|
|
33
|
-
margin: '0 auto',
|
|
34
|
-
padding: '10px',
|
|
35
|
-
'& h4': {
|
|
36
|
-
fontSize: '18px',
|
|
37
|
-
color: 'black',
|
|
38
|
-
},
|
|
39
|
-
'& p': {
|
|
40
|
-
color: 'rgb(113, 113, 113)',
|
|
41
|
-
fontSize: '16px',
|
|
42
|
-
},
|
|
43
|
-
'& .ant-btn': {
|
|
44
|
-
width: '110px',
|
|
45
|
-
height: '40px',
|
|
46
|
-
borderRadius: '7px',
|
|
47
|
-
border: '1px solid rgb(34 34 34)',
|
|
48
|
-
color: 'black',
|
|
49
|
-
fontWeight: '600',
|
|
50
|
-
'& :hover': {
|
|
51
|
-
color: 'black',
|
|
52
|
-
borderColor: 'black',
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
} as any;
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useRef, useState } from 'react';
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { BiImage } from 'react-icons/bi';
|
|
4
|
-
import { BiArchiveIn } from 'react-icons/bi';
|
|
5
|
-
import { BsFillArrowUpCircleFill } from 'react-icons/bs';
|
|
6
|
-
import { css } from '@emotion/css';
|
|
7
|
-
import { Button, InputGroup, InputRightElement, Textarea, Tooltip } from '@chakra-ui/react';
|
|
8
|
-
import { useGetMessagesQuery, useSendMessagesMutation } from 'common/graphql';
|
|
9
|
-
import MsgList from '../MessagesList';
|
|
10
|
-
import { styleSheet } from './styles';
|
|
11
|
-
|
|
12
|
-
export default function Messages({ id, user, userId, currentUser }: any) {
|
|
13
|
-
const [message, setMessage] = useState('');
|
|
14
|
-
const [messageList, setMessageList] = useState([]);
|
|
15
|
-
const [height, setHeight] = useState<any>('40px');
|
|
16
|
-
const { t } = useTranslation();
|
|
17
|
-
const { data, loading, error, refetch } = useGetMessagesQuery({
|
|
18
|
-
variables: {
|
|
19
|
-
channelId: id,
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
if (!loading) {
|
|
24
|
-
setMessageList(data.messages.data);
|
|
25
|
-
}
|
|
26
|
-
}, [loading, id, data?.messages?.data, messageList]);
|
|
27
|
-
const [sendMsg, {}] = useSendMessagesMutation({
|
|
28
|
-
context: {},
|
|
29
|
-
});
|
|
30
|
-
const messagesEndRef = useRef(null);
|
|
31
|
-
const scrollToBottom = () => {
|
|
32
|
-
messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' });
|
|
33
|
-
};
|
|
34
|
-
const handleEnterBtn = () => {
|
|
35
|
-
if (message) {
|
|
36
|
-
sendMsg({
|
|
37
|
-
variables: {
|
|
38
|
-
channelId: id,
|
|
39
|
-
content: message,
|
|
40
|
-
files: [],
|
|
41
|
-
},
|
|
42
|
-
}).then(() => {
|
|
43
|
-
refetch().then((value) => {
|
|
44
|
-
setMessageList([...value.data.messages.data]);
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
setMessage('');
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
const item = user?.find((element) => {
|
|
51
|
-
return element.id !== userId;
|
|
52
|
-
});
|
|
53
|
-
// console.log(textarea)
|
|
54
|
-
const handleTextareaHeight = (e) => {
|
|
55
|
-
if (e.key === 'Enter' && message !== '') {
|
|
56
|
-
setHeight(40 + message.split('\n').length * 10 + 'px');
|
|
57
|
-
} else {
|
|
58
|
-
setHeight('40px');
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
return (
|
|
62
|
-
<div className={css(styleSheet.messageListStyles as any)}>
|
|
63
|
-
<div className="message-container">
|
|
64
|
-
<div className="message-username">
|
|
65
|
-
<h2>{item?.username}</h2>
|
|
66
|
-
<div>
|
|
67
|
-
<Tooltip
|
|
68
|
-
label={t('messenger_box_browser.archive')}
|
|
69
|
-
placement="bottom-end"
|
|
70
|
-
backgroundColor="black"
|
|
71
|
-
// bg="white"
|
|
72
|
-
display="flex"
|
|
73
|
-
alignItems="center"
|
|
74
|
-
width="60px"
|
|
75
|
-
borderRadius="10px"
|
|
76
|
-
fontSize="15px"
|
|
77
|
-
height="40px"
|
|
78
|
-
justifyContent="center"
|
|
79
|
-
marginTop="5px"
|
|
80
|
-
color="white"
|
|
81
|
-
boxShadow="0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)"
|
|
82
|
-
hasArrow={true}
|
|
83
|
-
>
|
|
84
|
-
<Button
|
|
85
|
-
border="none"
|
|
86
|
-
bg="none"
|
|
87
|
-
width="30px"
|
|
88
|
-
height="30px"
|
|
89
|
-
onClick={handleEnterBtn}
|
|
90
|
-
borderRadius="50%"
|
|
91
|
-
_hover={{ backgroundColor: 'rgb(221, 221, 221)' }}
|
|
92
|
-
>
|
|
93
|
-
<BiArchiveIn />
|
|
94
|
-
</Button>
|
|
95
|
-
</Tooltip>
|
|
96
|
-
</div>
|
|
97
|
-
</div>
|
|
98
|
-
<div className="message-row">
|
|
99
|
-
<MsgList id={id} messageList={messageList} user={user} currentUser={currentUser} />
|
|
100
|
-
<div ref={messagesEndRef}></div>
|
|
101
|
-
<div className="message-input">
|
|
102
|
-
<Tooltip
|
|
103
|
-
label={t('messenger_box_browser.image')}
|
|
104
|
-
placement="top"
|
|
105
|
-
// bg="white"
|
|
106
|
-
display="flex"
|
|
107
|
-
alignItems="center"
|
|
108
|
-
width="60px"
|
|
109
|
-
borderRadius="10px"
|
|
110
|
-
fontSize="15px"
|
|
111
|
-
height="40px"
|
|
112
|
-
justifyContent="center"
|
|
113
|
-
marginTop="5px"
|
|
114
|
-
color="black"
|
|
115
|
-
boxShadow="0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)"
|
|
116
|
-
hasArrow={true}
|
|
117
|
-
>
|
|
118
|
-
<Button
|
|
119
|
-
border="none"
|
|
120
|
-
borderRadius="50%"
|
|
121
|
-
bg="none"
|
|
122
|
-
marginRight="5px"
|
|
123
|
-
height="40px"
|
|
124
|
-
width="40px"
|
|
125
|
-
_hover={{ backgroundColor: 'rgb(221, 221, 221)' }}
|
|
126
|
-
>
|
|
127
|
-
<BiImage color="#464646" style={{ fontSize: '25px' }} />
|
|
128
|
-
</Button>
|
|
129
|
-
</Tooltip>
|
|
130
|
-
<InputGroup size="md">
|
|
131
|
-
<Textarea
|
|
132
|
-
placeholder={t('messenger_box_browser.type_your_message')}
|
|
133
|
-
value={message}
|
|
134
|
-
height={height}
|
|
135
|
-
onKeyUp={handleTextareaHeight}
|
|
136
|
-
// height={enter ? message.split('\n').length * 10 + 'px' : '40px'}
|
|
137
|
-
onChange={(e) => setMessage(e.target.value)}
|
|
138
|
-
/>
|
|
139
|
-
<InputRightElement>
|
|
140
|
-
<Button
|
|
141
|
-
border="none"
|
|
142
|
-
bg="none"
|
|
143
|
-
onClick={handleEnterBtn}
|
|
144
|
-
position="relative"
|
|
145
|
-
right="53px"
|
|
146
|
-
top="6px"
|
|
147
|
-
>
|
|
148
|
-
{message !== '' ? (
|
|
149
|
-
<BsFillArrowUpCircleFill color="rgb(34, 34, 34)" style={{ fontSize: '25px' }} />
|
|
150
|
-
) : (
|
|
151
|
-
''
|
|
152
|
-
)}
|
|
153
|
-
</Button>
|
|
154
|
-
</InputRightElement>
|
|
155
|
-
</InputGroup>
|
|
156
|
-
</div>
|
|
157
|
-
</div>
|
|
158
|
-
</div>
|
|
159
|
-
</div>
|
|
160
|
-
);
|
|
161
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
export const styleSheet = {
|
|
2
|
-
messageListStyles: {
|
|
3
|
-
width: '100%',
|
|
4
|
-
padding: '15px 10px 10px 30px',
|
|
5
|
-
'& .message-container': {
|
|
6
|
-
display: 'flex',
|
|
7
|
-
flexDirection: 'column',
|
|
8
|
-
justifyContent: 'space-between',
|
|
9
|
-
height: '65vh',
|
|
10
|
-
alignItems: 'center',
|
|
11
|
-
},
|
|
12
|
-
'& .message-row': {
|
|
13
|
-
marginLeft: '23px',
|
|
14
|
-
marginRight: '23px',
|
|
15
|
-
// maxHeight: '100%',
|
|
16
|
-
width: '60%',
|
|
17
|
-
overflow: 'auto',
|
|
18
|
-
'& .message-list ': {
|
|
19
|
-
// height :'58vh',
|
|
20
|
-
bottom: '80px',
|
|
21
|
-
width: '100%',
|
|
22
|
-
right: '0px',
|
|
23
|
-
left: '0px',
|
|
24
|
-
paddingTop: '0px',
|
|
25
|
-
top: '0px',
|
|
26
|
-
'& .ant-comment': {
|
|
27
|
-
width: '100%',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
'& .message-username': {
|
|
32
|
-
width: '100%',
|
|
33
|
-
display: 'flex',
|
|
34
|
-
color: 'black',
|
|
35
|
-
justifyContent: 'space-between',
|
|
36
|
-
alignItems: 'center',
|
|
37
|
-
'& div': {
|
|
38
|
-
// display: 'flex',
|
|
39
|
-
// justifyContent: 'space-evenly',
|
|
40
|
-
width: '50px',
|
|
41
|
-
'& svg': {
|
|
42
|
-
fontSize: '20px',
|
|
43
|
-
color: '#464646',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
'& .username': {
|
|
48
|
-
color: 'black',
|
|
49
|
-
},
|
|
50
|
-
'& .message': {
|
|
51
|
-
width: '100%',
|
|
52
|
-
display: 'flex',
|
|
53
|
-
color: 'black',
|
|
54
|
-
justifyContent: 'space-between',
|
|
55
|
-
'& svg': {
|
|
56
|
-
color: '#464646',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
'& .message-input': {
|
|
60
|
-
width: '100%',
|
|
61
|
-
display: 'flex',
|
|
62
|
-
justifyContent: 'space-around',
|
|
63
|
-
marginTop: '30px',
|
|
64
|
-
'& textarea': {
|
|
65
|
-
borderRadius: '20px',
|
|
66
|
-
width: '93%',
|
|
67
|
-
overflow: 'hidden',
|
|
68
|
-
// maxHeight: '40px',
|
|
69
|
-
color: 'black',
|
|
70
|
-
lineHeight: '22px',
|
|
71
|
-
fontSize: '16px',
|
|
72
|
-
resize: 'none',
|
|
73
|
-
border: '1px solid rgb(221, 221, 221)',
|
|
74
|
-
padding: '9px 8px',
|
|
75
|
-
},
|
|
76
|
-
'& .image-btn': {
|
|
77
|
-
'& svg': {
|
|
78
|
-
fontSize: '25px',
|
|
79
|
-
fontWeight: '1px',
|
|
80
|
-
color: '#464646',
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Avatar,
|
|
4
|
-
Box,
|
|
5
|
-
Text,
|
|
6
|
-
Modal,
|
|
7
|
-
ModalOverlay,
|
|
8
|
-
ModalContent,
|
|
9
|
-
ModalBody,
|
|
10
|
-
ModalCloseButton,
|
|
11
|
-
useDisclosure,
|
|
12
|
-
} from '@chakra-ui/react';
|
|
13
|
-
import Moment from 'moment';
|
|
14
|
-
import { AiFillFlag } from 'react-icons/ai';
|
|
15
|
-
import UserModalContent from '../UserModalContent';
|
|
16
|
-
|
|
17
|
-
export default function MsgList({ messageList, currentUser }: any) {
|
|
18
|
-
const { isOpen, onOpen, onClose } = useDisclosure();
|
|
19
|
-
return (
|
|
20
|
-
<>
|
|
21
|
-
{messageList?.map((element, index) => {
|
|
22
|
-
// if (message.author.username == user?.username ) {
|
|
23
|
-
return (
|
|
24
|
-
<div className="message-list" key={index}>
|
|
25
|
-
<Box display="flex" width="100%">
|
|
26
|
-
<Avatar
|
|
27
|
-
width="40px"
|
|
28
|
-
height="40px"
|
|
29
|
-
backgroundColor="grey"
|
|
30
|
-
borderRadius="50%"
|
|
31
|
-
src={element?.imageUrl ? element?.imageUrl : ''}
|
|
32
|
-
marginRight="15px"
|
|
33
|
-
onClick={onOpen}
|
|
34
|
-
></Avatar>
|
|
35
|
-
<Modal isOpen={isOpen} onClose={onClose} motionPreset="slideInBottom">
|
|
36
|
-
<ModalOverlay />
|
|
37
|
-
<ModalContent
|
|
38
|
-
backgroundColor="white"
|
|
39
|
-
width="1036px"
|
|
40
|
-
position="absolute"
|
|
41
|
-
left="530px"
|
|
42
|
-
top="100px"
|
|
43
|
-
height="700px"
|
|
44
|
-
borderRadius="10px"
|
|
45
|
-
boxShadow="0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)"
|
|
46
|
-
>
|
|
47
|
-
<Box
|
|
48
|
-
display="flex"
|
|
49
|
-
justifyContent="space-between"
|
|
50
|
-
borderBottom="1px solid rgb(221, 221, 221)"
|
|
51
|
-
paddingBottom="15px"
|
|
52
|
-
paddingTop="15px"
|
|
53
|
-
>
|
|
54
|
-
<ModalCloseButton
|
|
55
|
-
as="a"
|
|
56
|
-
width="30px"
|
|
57
|
-
marginLeft="10px"
|
|
58
|
-
color="black"
|
|
59
|
-
_hover={{ color: 'black' }}
|
|
60
|
-
/>
|
|
61
|
-
</Box>
|
|
62
|
-
<ModalBody>
|
|
63
|
-
<UserModalContent
|
|
64
|
-
username={element?.author?.username}
|
|
65
|
-
image={element.imageUrl ? element.imageUrl : ''}
|
|
66
|
-
/>
|
|
67
|
-
</ModalBody>
|
|
68
|
-
</ModalContent>
|
|
69
|
-
</Modal>
|
|
70
|
-
<Box width="100%">
|
|
71
|
-
<Text fontSize="20px" color="black">
|
|
72
|
-
{element?.author?.username}
|
|
73
|
-
</Text>
|
|
74
|
-
<Box display="flex" justifyContent="space-between">
|
|
75
|
-
<Text color="grey">{element?.message}</Text>
|
|
76
|
-
{currentUser !== element?.author?.username ? <AiFillFlag color="black" /> : ''}
|
|
77
|
-
</Box>
|
|
78
|
-
</Box>
|
|
79
|
-
</Box>
|
|
80
|
-
</div>
|
|
81
|
-
);
|
|
82
|
-
// }
|
|
83
|
-
// else {
|
|
84
|
-
// return (
|
|
85
|
-
// <div className='message-list'>
|
|
86
|
-
// {element?.sendTo == user.username ? <Comment author={<p className='username'>{element?.author?.username}</p>} key={index} datetime={Moment().format('HH mm: A')} avatar={<Avatar>{element?.author?.username.charAt(0)}</Avatar>} content={<div className="message"><p>{element.message}</p></div>} /> : '' }
|
|
87
|
-
// </div>
|
|
88
|
-
// )
|
|
89
|
-
// }
|
|
90
|
-
})}
|
|
91
|
-
</>
|
|
92
|
-
);
|
|
93
|
-
}
|