@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,380 +0,0 @@
|
|
|
1
|
-
// // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
|
-
// // See LICENSE.txt for license information.
|
|
3
|
-
|
|
4
|
-
// import * as React from 'react';
|
|
5
|
-
// import {injectIntl, IntlShape, MessageDescriptor} from 'react-intl';
|
|
6
|
-
|
|
7
|
-
// import {Posts} from 'mattermost-redux/constants';
|
|
8
|
-
|
|
9
|
-
// import {UserProfile} from 'mattermost-redux/types/users';
|
|
10
|
-
|
|
11
|
-
// import {ActionFunc} from 'mattermost-redux/types/actions';
|
|
12
|
-
|
|
13
|
-
// import {t} from 'utils/i18n';
|
|
14
|
-
// import Markdown from 'components/markdown';
|
|
15
|
-
|
|
16
|
-
// import LastUsers from './last_users';
|
|
17
|
-
|
|
18
|
-
// const {
|
|
19
|
-
// JOIN_CHANNEL, ADD_TO_CHANNEL, REMOVE_FROM_CHANNEL, LEAVE_CHANNEL,
|
|
20
|
-
// JOIN_TEAM, ADD_TO_TEAM, REMOVE_FROM_TEAM, LEAVE_TEAM,
|
|
21
|
-
// } = Posts.POST_TYPES;
|
|
22
|
-
|
|
23
|
-
// const postTypeMessage = {
|
|
24
|
-
// [JOIN_CHANNEL]: {
|
|
25
|
-
// one: {
|
|
26
|
-
// id: t('combined_system_message.joined_channel.one'),
|
|
27
|
-
// defaultMessage: '{firstUser} **joined the channel**.',
|
|
28
|
-
// },
|
|
29
|
-
// one_you: {
|
|
30
|
-
// id: t('combined_system_message.joined_channel.one_you'),
|
|
31
|
-
// defaultMessage: 'You **joined the channel**.',
|
|
32
|
-
// },
|
|
33
|
-
// two: {
|
|
34
|
-
// id: t('combined_system_message.joined_channel.two'),
|
|
35
|
-
// defaultMessage: '{firstUser} and {secondUser} **joined the channel**.',
|
|
36
|
-
// },
|
|
37
|
-
// many_expanded: {
|
|
38
|
-
// id: t('combined_system_message.joined_channel.many_expanded'),
|
|
39
|
-
// defaultMessage: '{users} and {lastUser} **joined the channel**.',
|
|
40
|
-
// },
|
|
41
|
-
// },
|
|
42
|
-
// [ADD_TO_CHANNEL]: {
|
|
43
|
-
// one: {
|
|
44
|
-
// id: t('combined_system_message.added_to_channel.one'),
|
|
45
|
-
// defaultMessage: '{firstUser} **added to the channel** by {actor}.',
|
|
46
|
-
// },
|
|
47
|
-
// one_you: {
|
|
48
|
-
// id: t('combined_system_message.added_to_channel.one_you'),
|
|
49
|
-
// defaultMessage: 'You were **added to the channel** by {actor}.',
|
|
50
|
-
// },
|
|
51
|
-
// two: {
|
|
52
|
-
// id: t('combined_system_message.added_to_channel.two'),
|
|
53
|
-
// defaultMessage: '{firstUser} and {secondUser} **added to the channel** by {actor}.',
|
|
54
|
-
// },
|
|
55
|
-
// many_expanded: {
|
|
56
|
-
// id: t('combined_system_message.added_to_channel.many_expanded'),
|
|
57
|
-
// defaultMessage: '{users} and {lastUser} were **added to the channel** by {actor}.',
|
|
58
|
-
// },
|
|
59
|
-
// },
|
|
60
|
-
// [REMOVE_FROM_CHANNEL]: {
|
|
61
|
-
// one: {
|
|
62
|
-
// id: t('combined_system_message.removed_from_channel.one'),
|
|
63
|
-
// defaultMessage: '{firstUser} was **removed from the channel**.',
|
|
64
|
-
// },
|
|
65
|
-
// one_you: {
|
|
66
|
-
// id: t('combined_system_message.removed_from_channel.one_you'),
|
|
67
|
-
// defaultMessage: 'You were **removed from the channel**.',
|
|
68
|
-
// },
|
|
69
|
-
// two: {
|
|
70
|
-
// id: t('combined_system_message.removed_from_channel.two'),
|
|
71
|
-
// defaultMessage: '{firstUser} and {secondUser} were **removed from the channel**.',
|
|
72
|
-
// },
|
|
73
|
-
// many_expanded: {
|
|
74
|
-
// id: t('combined_system_message.removed_from_channel.many_expanded'),
|
|
75
|
-
// defaultMessage: '{users} and {lastUser} were **removed from the channel**.',
|
|
76
|
-
// },
|
|
77
|
-
// },
|
|
78
|
-
// [LEAVE_CHANNEL]: {
|
|
79
|
-
// one: {
|
|
80
|
-
// id: t('combined_system_message.left_channel.one'),
|
|
81
|
-
// defaultMessage: '{firstUser} **left the channel**.',
|
|
82
|
-
// },
|
|
83
|
-
// one_you: {
|
|
84
|
-
// id: t('combined_system_message.left_channel.one_you'),
|
|
85
|
-
// defaultMessage: 'You **left the channel**.',
|
|
86
|
-
// },
|
|
87
|
-
// two: {
|
|
88
|
-
// id: t('combined_system_message.left_channel.two'),
|
|
89
|
-
// defaultMessage: '{firstUser} and {secondUser} **left the channel**.',
|
|
90
|
-
// },
|
|
91
|
-
// many_expanded: {
|
|
92
|
-
// id: t('combined_system_message.left_channel.many_expanded'),
|
|
93
|
-
// defaultMessage: '{users} and {lastUser} **left the channel**.',
|
|
94
|
-
// },
|
|
95
|
-
// },
|
|
96
|
-
// [JOIN_TEAM]: {
|
|
97
|
-
// one: {
|
|
98
|
-
// id: t('combined_system_message.joined_team.one'),
|
|
99
|
-
// defaultMessage: '{firstUser} **joined the team**.',
|
|
100
|
-
// },
|
|
101
|
-
// one_you: {
|
|
102
|
-
// id: t('combined_system_message.joined_team.one_you'),
|
|
103
|
-
// defaultMessage: 'You **joined the team**.',
|
|
104
|
-
// },
|
|
105
|
-
// two: {
|
|
106
|
-
// id: t('combined_system_message.joined_team.two'),
|
|
107
|
-
// defaultMessage: '{firstUser} and {secondUser} **joined the team**.',
|
|
108
|
-
// },
|
|
109
|
-
// many_expanded: {
|
|
110
|
-
// id: t('combined_system_message.joined_team.many_expanded'),
|
|
111
|
-
// defaultMessage: '{users} and {lastUser} **joined the team**.',
|
|
112
|
-
// },
|
|
113
|
-
// },
|
|
114
|
-
// [ADD_TO_TEAM]: {
|
|
115
|
-
// one: {
|
|
116
|
-
// id: t('combined_system_message.added_to_team.one'),
|
|
117
|
-
// defaultMessage: '{firstUser} **added to the team** by {actor}.',
|
|
118
|
-
// },
|
|
119
|
-
// one_you: {
|
|
120
|
-
// id: t('combined_system_message.added_to_team.one_you'),
|
|
121
|
-
// defaultMessage: 'You were **added to the team** by {actor}.',
|
|
122
|
-
// },
|
|
123
|
-
// two: {
|
|
124
|
-
// id: t('combined_system_message.added_to_team.two'),
|
|
125
|
-
// defaultMessage: '{firstUser} and {secondUser} **added to the team** by {actor}.',
|
|
126
|
-
// },
|
|
127
|
-
// many_expanded: {
|
|
128
|
-
// id: t('combined_system_message.added_to_team.many_expanded'),
|
|
129
|
-
// defaultMessage: '{users} and {lastUser} were **added to the team** by {actor}.',
|
|
130
|
-
// },
|
|
131
|
-
// },
|
|
132
|
-
// [REMOVE_FROM_TEAM]: {
|
|
133
|
-
// one: {
|
|
134
|
-
// id: t('combined_system_message.removed_from_team.one'),
|
|
135
|
-
// defaultMessage: '{firstUser} was **removed from the team**.',
|
|
136
|
-
// },
|
|
137
|
-
// one_you: {
|
|
138
|
-
// id: t('combined_system_message.removed_from_team.one_you'),
|
|
139
|
-
// defaultMessage: 'You were **removed from the team**.',
|
|
140
|
-
// },
|
|
141
|
-
// two: {
|
|
142
|
-
// id: t('combined_system_message.removed_from_team.two'),
|
|
143
|
-
// defaultMessage: '{firstUser} and {secondUser} were **removed from the team**.',
|
|
144
|
-
// },
|
|
145
|
-
// many_expanded: {
|
|
146
|
-
// id: t('combined_system_message.removed_from_team.many_expanded'),
|
|
147
|
-
// defaultMessage: '{users} and {lastUser} were **removed from the team**.',
|
|
148
|
-
// },
|
|
149
|
-
// },
|
|
150
|
-
// [LEAVE_TEAM]: {
|
|
151
|
-
// one: {
|
|
152
|
-
// id: t('combined_system_message.left_team.one'),
|
|
153
|
-
// defaultMessage: '{firstUser} **left the team**.',
|
|
154
|
-
// },
|
|
155
|
-
// one_you: {
|
|
156
|
-
// id: t('combined_system_message.left_team.one_you'),
|
|
157
|
-
// defaultMessage: 'You **left the team**.',
|
|
158
|
-
// },
|
|
159
|
-
// two: {
|
|
160
|
-
// id: t('combined_system_message.left_team.two'),
|
|
161
|
-
// defaultMessage: '{firstUser} and {secondUser} **left the team**.',
|
|
162
|
-
// },
|
|
163
|
-
// many_expanded: {
|
|
164
|
-
// id: t('combined_system_message.left_team.many_expanded'),
|
|
165
|
-
// defaultMessage: '{users} and {lastUser} **left the team**.',
|
|
166
|
-
// },
|
|
167
|
-
// },
|
|
168
|
-
// };
|
|
169
|
-
|
|
170
|
-
// export type Props = {
|
|
171
|
-
// allUserIds: string[];
|
|
172
|
-
// allUsernames: string[];
|
|
173
|
-
// currentUserId: string;
|
|
174
|
-
// currentUsername: string;
|
|
175
|
-
// intl: IntlShape;
|
|
176
|
-
// messageData: Array<{
|
|
177
|
-
// actorId?: string;
|
|
178
|
-
// postType: string;
|
|
179
|
-
// userIds: string[];
|
|
180
|
-
// }>;
|
|
181
|
-
// showJoinLeave: boolean;
|
|
182
|
-
// userProfiles: UserProfile[];
|
|
183
|
-
// actions: {
|
|
184
|
-
// getMissingProfilesByIds: (userIds: string[]) => ActionFunc ;
|
|
185
|
-
// getMissingProfilesByUsernames: (usernames: string[]) => ActionFunc;
|
|
186
|
-
// };
|
|
187
|
-
// }
|
|
188
|
-
|
|
189
|
-
// export class CombinedSystemMessage extends React.PureComponent<Props> {
|
|
190
|
-
// static defaultProps = {
|
|
191
|
-
// allUserIds: [],
|
|
192
|
-
// allUsernames: [],
|
|
193
|
-
// };
|
|
194
|
-
|
|
195
|
-
// componentDidMount(): void {
|
|
196
|
-
// this.loadUserProfiles(this.props.allUserIds, this.props.allUsernames);
|
|
197
|
-
// }
|
|
198
|
-
|
|
199
|
-
// componentDidUpdate(prevProps: Props): void {
|
|
200
|
-
// const {allUserIds, allUsernames} = this.props;
|
|
201
|
-
// if (allUserIds !== prevProps.allUserIds || allUsernames !== prevProps.allUsernames) {
|
|
202
|
-
// this.loadUserProfiles(allUserIds, allUsernames);
|
|
203
|
-
// }
|
|
204
|
-
// }
|
|
205
|
-
|
|
206
|
-
// loadUserProfiles = (allUserIds: string[], allUsernames: string[]): void => {
|
|
207
|
-
// if (allUserIds.length > 0) {
|
|
208
|
-
// this.props.actions.getMissingProfilesByIds(allUserIds);
|
|
209
|
-
// }
|
|
210
|
-
|
|
211
|
-
// if (allUsernames.length > 0) {
|
|
212
|
-
// this.props.actions.getMissingProfilesByUsernames(allUsernames);
|
|
213
|
-
// }
|
|
214
|
-
// }
|
|
215
|
-
|
|
216
|
-
// getAllUsernames = (): {[p: string]: string} => {
|
|
217
|
-
// const {
|
|
218
|
-
// allUserIds,
|
|
219
|
-
// allUsernames,
|
|
220
|
-
// currentUserId,
|
|
221
|
-
// currentUsername,
|
|
222
|
-
// userProfiles,
|
|
223
|
-
// } = this.props;
|
|
224
|
-
// const {formatMessage} = this.props.intl;
|
|
225
|
-
// const usernames = userProfiles.reduce((acc: {[key: string]: string}, user: UserProfile) => {
|
|
226
|
-
// acc[user.id] = user.username;
|
|
227
|
-
// acc[user.username] = user.username;
|
|
228
|
-
// return acc;
|
|
229
|
-
// }, {});
|
|
230
|
-
|
|
231
|
-
// const currentUserDisplayName = formatMessage({id: t('combined_system_message.you'), defaultMessage: 'You'});
|
|
232
|
-
// if (allUserIds.includes(currentUserId)) {
|
|
233
|
-
// usernames[currentUserId] = currentUserDisplayName;
|
|
234
|
-
// } else if (allUsernames.includes(currentUsername)) {
|
|
235
|
-
// usernames[currentUsername] = currentUserDisplayName;
|
|
236
|
-
// }
|
|
237
|
-
|
|
238
|
-
// return usernames;
|
|
239
|
-
// }
|
|
240
|
-
|
|
241
|
-
// getUsernamesByIds = (userIds: string[] = []): string[] => {
|
|
242
|
-
// const {currentUserId, currentUsername} = this.props;
|
|
243
|
-
// const allUsernames = this.getAllUsernames();
|
|
244
|
-
|
|
245
|
-
// const {formatMessage} = this.props.intl;
|
|
246
|
-
// const someone = formatMessage({id: t('channel_loader.someone'), defaultMessage: 'Someone'});
|
|
247
|
-
|
|
248
|
-
// const usernames = userIds.
|
|
249
|
-
// filter((userId) => {
|
|
250
|
-
// return userId !== currentUserId && userId !== currentUsername;
|
|
251
|
-
// }).
|
|
252
|
-
// map((userId) => {
|
|
253
|
-
// return allUsernames[userId] ? `@${allUsernames[userId]}` : someone;
|
|
254
|
-
// }).filter((username) => {
|
|
255
|
-
// return username && username !== '';
|
|
256
|
-
// });
|
|
257
|
-
|
|
258
|
-
// if (userIds.includes(currentUserId)) {
|
|
259
|
-
// usernames.unshift(allUsernames[currentUserId]);
|
|
260
|
-
// } else if (userIds.includes(currentUsername)) {
|
|
261
|
-
// usernames.unshift(allUsernames[currentUsername]);
|
|
262
|
-
// }
|
|
263
|
-
|
|
264
|
-
// return usernames;
|
|
265
|
-
// }
|
|
266
|
-
|
|
267
|
-
// renderFormattedMessage(postType: string, userIds: string[], actorId?: string): JSX.Element {
|
|
268
|
-
// const {formatMessage} = this.props.intl;
|
|
269
|
-
// const {currentUserId, currentUsername} = this.props;
|
|
270
|
-
// const usernames = this.getUsernamesByIds(userIds);
|
|
271
|
-
// let actor = actorId ? this.getUsernamesByIds([actorId])[0] : '';
|
|
272
|
-
// if (actor && (actorId === currentUserId || actorId === currentUsername)) {
|
|
273
|
-
// actor = actor.toLowerCase();
|
|
274
|
-
// }
|
|
275
|
-
|
|
276
|
-
// const firstUser = usernames[0];
|
|
277
|
-
// const secondUser = usernames[1];
|
|
278
|
-
// const numOthers = usernames.length - 1;
|
|
279
|
-
|
|
280
|
-
// const options = {
|
|
281
|
-
// atMentions: true,
|
|
282
|
-
// mentionKeys: [{key: firstUser}, {key: secondUser}, {key: actor}],
|
|
283
|
-
// mentionHighlight: false,
|
|
284
|
-
// singleline: true,
|
|
285
|
-
// };
|
|
286
|
-
|
|
287
|
-
// if (numOthers > 1) {
|
|
288
|
-
// return (
|
|
289
|
-
// <LastUsers
|
|
290
|
-
// actor={actor}
|
|
291
|
-
// expandedLocale={postTypeMessage[postType].many_expanded}
|
|
292
|
-
// formatOptions={options}
|
|
293
|
-
// postType={postType}
|
|
294
|
-
// usernames={usernames}
|
|
295
|
-
// />
|
|
296
|
-
// );
|
|
297
|
-
// }
|
|
298
|
-
|
|
299
|
-
// let localeHolder: MessageDescriptor = {};
|
|
300
|
-
// if (numOthers === 0) {
|
|
301
|
-
// localeHolder = postTypeMessage[postType].one;
|
|
302
|
-
|
|
303
|
-
// if (
|
|
304
|
-
// (userIds[0] === this.props.currentUserId || userIds[0] === this.props.currentUsername) &&
|
|
305
|
-
// postTypeMessage[postType].one_you
|
|
306
|
-
// ) {
|
|
307
|
-
// localeHolder = postTypeMessage[postType].one_you;
|
|
308
|
-
// }
|
|
309
|
-
// } else if (numOthers === 1) {
|
|
310
|
-
// localeHolder = postTypeMessage[postType].two;
|
|
311
|
-
// }
|
|
312
|
-
|
|
313
|
-
// const formattedMessage = formatMessage(localeHolder, {firstUser, secondUser, actor});
|
|
314
|
-
|
|
315
|
-
// return (
|
|
316
|
-
// <Markdown
|
|
317
|
-
// message={formattedMessage}
|
|
318
|
-
// options={options}
|
|
319
|
-
// />
|
|
320
|
-
// );
|
|
321
|
-
// }
|
|
322
|
-
|
|
323
|
-
// renderMessage(postType: string, userIds: string[], actorId?: string): JSX.Element {
|
|
324
|
-
// return (
|
|
325
|
-
// <React.Fragment key={postType + actorId}>
|
|
326
|
-
// {this.renderFormattedMessage(postType, userIds, actorId)}
|
|
327
|
-
// <br/>
|
|
328
|
-
// </React.Fragment>
|
|
329
|
-
// );
|
|
330
|
-
// }
|
|
331
|
-
|
|
332
|
-
// render(): JSX.Element {
|
|
333
|
-
// const {
|
|
334
|
-
// currentUserId,
|
|
335
|
-
// messageData,
|
|
336
|
-
// } = this.props;
|
|
337
|
-
|
|
338
|
-
// const content = [];
|
|
339
|
-
// const removedUserIds = [];
|
|
340
|
-
// for (const message of messageData) {
|
|
341
|
-
// const {
|
|
342
|
-
// postType,
|
|
343
|
-
// actorId,
|
|
344
|
-
// } = message;
|
|
345
|
-
// let userIds = message.userIds;
|
|
346
|
-
|
|
347
|
-
// if (!this.props.showJoinLeave && actorId !== currentUserId) {
|
|
348
|
-
// const affectsCurrentUser = userIds.indexOf(currentUserId) !== -1;
|
|
349
|
-
|
|
350
|
-
// if (affectsCurrentUser) {
|
|
351
|
-
// // Only show the message that the current user was added, etc
|
|
352
|
-
// userIds = [currentUserId];
|
|
353
|
-
// } else {
|
|
354
|
-
// // Not something the current user did or was affected by
|
|
355
|
-
// continue;
|
|
356
|
-
// }
|
|
357
|
-
// }
|
|
358
|
-
|
|
359
|
-
// if (postType === REMOVE_FROM_CHANNEL) {
|
|
360
|
-
// removedUserIds.push(...userIds);
|
|
361
|
-
// continue;
|
|
362
|
-
// }
|
|
363
|
-
|
|
364
|
-
// content.push(this.renderMessage(postType, userIds, actorId));
|
|
365
|
-
// }
|
|
366
|
-
|
|
367
|
-
// if (removedUserIds.length > 0) {
|
|
368
|
-
// const uniqueRemovedUserIds = removedUserIds.filter((id, index, arr) => arr.indexOf(id) === index);
|
|
369
|
-
// content.push(this.renderMessage(REMOVE_FROM_CHANNEL, uniqueRemovedUserIds, currentUserId));
|
|
370
|
-
// }
|
|
371
|
-
|
|
372
|
-
// return (
|
|
373
|
-
// <React.Fragment>
|
|
374
|
-
// {content}
|
|
375
|
-
// </React.Fragment>
|
|
376
|
-
// );
|
|
377
|
-
// }
|
|
378
|
-
// }
|
|
379
|
-
|
|
380
|
-
// export default injectIntl(CombinedSystemMessage);
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
|
-
// // See LICENSE.txt for license information.
|
|
3
|
-
|
|
4
|
-
// import {connect} from 'react-redux';
|
|
5
|
-
// import {bindActionCreators, Dispatch} from 'redux';
|
|
6
|
-
|
|
7
|
-
// import {getMissingProfilesByIds, getMissingProfilesByUsernames} from 'mattermost-redux/actions/users';
|
|
8
|
-
// import {Preferences} from 'mattermost-redux/constants';
|
|
9
|
-
// import {getBool} from 'mattermost-redux/selectors/entities/preferences';
|
|
10
|
-
// import {getCurrentUser, makeGetProfilesByIdsAndUsernames} from 'mattermost-redux/selectors/entities/users';
|
|
11
|
-
// import {GlobalState} from 'mattermost-redux/types/store';
|
|
12
|
-
// import {GenericAction} from 'mattermost-redux/types/actions';
|
|
13
|
-
|
|
14
|
-
// import CombinedSystemMessage from './combined_system_message';
|
|
15
|
-
|
|
16
|
-
// type OwnProps = {
|
|
17
|
-
// allUserIds: string[];
|
|
18
|
-
// allUsernames: string[];
|
|
19
|
-
// }
|
|
20
|
-
|
|
21
|
-
// function makeMapStateToProps() {
|
|
22
|
-
// const getProfilesByIdsAndUsernames = makeGetProfilesByIdsAndUsernames();
|
|
23
|
-
|
|
24
|
-
// return (state: GlobalState, ownProps: OwnProps) => {
|
|
25
|
-
// const currentUser = getCurrentUser(state);
|
|
26
|
-
// const {allUserIds, allUsernames} = ownProps;
|
|
27
|
-
|
|
28
|
-
// return {
|
|
29
|
-
// currentUserId: currentUser.id,
|
|
30
|
-
// currentUsername: currentUser.username,
|
|
31
|
-
// showJoinLeave: getBool(state, Preferences.CATEGORY_ADVANCED_SETTINGS, Preferences.ADVANCED_FILTER_JOIN_LEAVE, true),
|
|
32
|
-
// userProfiles: getProfilesByIdsAndUsernames(state, {allUserIds, allUsernames}),
|
|
33
|
-
// };
|
|
34
|
-
// };
|
|
35
|
-
// }
|
|
36
|
-
|
|
37
|
-
// function mapDispatchToProps(dispatch: Dispatch<GenericAction>) {
|
|
38
|
-
// return {
|
|
39
|
-
// actions: bindActionCreators({
|
|
40
|
-
// getMissingProfilesByIds,
|
|
41
|
-
// getMissingProfilesByUsernames,
|
|
42
|
-
// }, dispatch),
|
|
43
|
-
// };
|
|
44
|
-
// }
|
|
45
|
-
|
|
46
|
-
// export default connect(makeMapStateToProps, mapDispatchToProps)(CombinedSystemMessage);
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
|
-
// // See LICENSE.txt for license information.
|
|
3
|
-
|
|
4
|
-
// import * as React from 'react';
|
|
5
|
-
|
|
6
|
-
// import {Posts} from 'mattermost-redux/constants';
|
|
7
|
-
|
|
8
|
-
// import {shallowWithIntl} from 'tests/helpers/intl-test-helper';
|
|
9
|
-
|
|
10
|
-
// import LastUsers from './last_users';
|
|
11
|
-
|
|
12
|
-
// describe('components/post_view/combined_system_message/LastUsers', () => {
|
|
13
|
-
// const formatOptions = {
|
|
14
|
-
// atMentions: true,
|
|
15
|
-
// mentionKeys: [{key: '@username2'}, {key: '@username3'}, {key: '@username4'}],
|
|
16
|
-
// mentionHighlight: false,
|
|
17
|
-
// };
|
|
18
|
-
// const baseProps = {
|
|
19
|
-
// actor: 'user_1',
|
|
20
|
-
// expandedLocale: {
|
|
21
|
-
// id: 'combined_system_message.added_to_channel.many_expanded',
|
|
22
|
-
// defaultMessage: '{users} and {lastUser} **added to the channel** by {actor}.',
|
|
23
|
-
// },
|
|
24
|
-
// formatOptions,
|
|
25
|
-
// postType: Posts.POST_TYPES.ADD_TO_CHANNEL,
|
|
26
|
-
// usernames: ['@username2', '@username3', '@username4 '],
|
|
27
|
-
// };
|
|
28
|
-
|
|
29
|
-
// test('should match snapshot', () => {
|
|
30
|
-
// const wrapper = shallowWithIntl(
|
|
31
|
-
// <LastUsers {...baseProps}/>,
|
|
32
|
-
// );
|
|
33
|
-
|
|
34
|
-
// expect(wrapper).toMatchSnapshot();
|
|
35
|
-
// });
|
|
36
|
-
|
|
37
|
-
// test('should match snapshot, expanded', () => {
|
|
38
|
-
// const wrapper = shallowWithIntl(
|
|
39
|
-
// <LastUsers {...baseProps}/>,
|
|
40
|
-
// );
|
|
41
|
-
|
|
42
|
-
// wrapper.setState({expand: true});
|
|
43
|
-
// expect(wrapper).toMatchSnapshot();
|
|
44
|
-
// });
|
|
45
|
-
|
|
46
|
-
// test('should match state on handleOnClick', () => {
|
|
47
|
-
// const wrapper = shallowWithIntl(
|
|
48
|
-
// <LastUsers {...baseProps}/>,
|
|
49
|
-
// );
|
|
50
|
-
|
|
51
|
-
// wrapper.setState({expand: false});
|
|
52
|
-
// const e = {preventDefault: jest.fn()};
|
|
53
|
-
// wrapper.find('a').simulate('click', e);
|
|
54
|
-
// expect(wrapper.state('expand')).toBe(true);
|
|
55
|
-
// });
|
|
56
|
-
// });
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
// // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
|
-
// // See LICENSE.txt for license information.
|
|
3
|
-
|
|
4
|
-
// import * as React from 'react';
|
|
5
|
-
// import {injectIntl, IntlShape, MessageDescriptor} from 'react-intl';
|
|
6
|
-
|
|
7
|
-
// import {Posts} from 'mattermost-redux/constants';
|
|
8
|
-
|
|
9
|
-
// import {t} from 'utils/i18n';
|
|
10
|
-
// import Markdown from 'components/markdown';
|
|
11
|
-
// import {TextFormattingOptions} from 'utils/text_formatting';
|
|
12
|
-
|
|
13
|
-
// const typeMessage = {
|
|
14
|
-
// [Posts.POST_TYPES.ADD_TO_CHANNEL]: {
|
|
15
|
-
// id: t('last_users_message.added_to_channel.type'),
|
|
16
|
-
// defaultMessage: 'were **added to the channel** by {actor}.',
|
|
17
|
-
// },
|
|
18
|
-
// [Posts.POST_TYPES.JOIN_CHANNEL]: {
|
|
19
|
-
// id: t('last_users_message.joined_channel.type'),
|
|
20
|
-
// defaultMessage: '**joined the channel**.',
|
|
21
|
-
// },
|
|
22
|
-
// [Posts.POST_TYPES.LEAVE_CHANNEL]: {
|
|
23
|
-
// id: t('last_users_message.left_channel.type'),
|
|
24
|
-
// defaultMessage: '**left the channel**.',
|
|
25
|
-
// },
|
|
26
|
-
// [Posts.POST_TYPES.REMOVE_FROM_CHANNEL]: {
|
|
27
|
-
// id: t('last_users_message.removed_from_channel.type'),
|
|
28
|
-
// defaultMessage: 'were **removed from the channel**.',
|
|
29
|
-
// },
|
|
30
|
-
// [Posts.POST_TYPES.ADD_TO_TEAM]: {
|
|
31
|
-
// id: t('last_users_message.added_to_team.type'),
|
|
32
|
-
// defaultMessage: 'were **added to the team** by {actor}.',
|
|
33
|
-
// },
|
|
34
|
-
// [Posts.POST_TYPES.JOIN_TEAM]: {
|
|
35
|
-
// id: t('last_users_message.joined_team.type'),
|
|
36
|
-
// defaultMessage: '**joined the team**.',
|
|
37
|
-
// },
|
|
38
|
-
// [Posts.POST_TYPES.LEAVE_TEAM]: {
|
|
39
|
-
// id: t('last_users_message.left_team.type'),
|
|
40
|
-
// defaultMessage: '**left the team**.',
|
|
41
|
-
// },
|
|
42
|
-
// [Posts.POST_TYPES.REMOVE_FROM_TEAM]: {
|
|
43
|
-
// id: t('last_users_message.removed_from_team.type'),
|
|
44
|
-
// defaultMessage: 'were **removed from the team**.',
|
|
45
|
-
// },
|
|
46
|
-
// };
|
|
47
|
-
|
|
48
|
-
// type Props = {
|
|
49
|
-
// actor?: string;
|
|
50
|
-
// expandedLocale: MessageDescriptor;
|
|
51
|
-
// formatOptions: Partial<TextFormattingOptions>;
|
|
52
|
-
// intl: IntlShape;
|
|
53
|
-
// postType: string;
|
|
54
|
-
// usernames: string[];
|
|
55
|
-
// }
|
|
56
|
-
|
|
57
|
-
// type State = {
|
|
58
|
-
// expand: boolean;
|
|
59
|
-
// }
|
|
60
|
-
|
|
61
|
-
// export class LastUsers extends React.PureComponent<Props, State> {
|
|
62
|
-
// constructor(props: Props) {
|
|
63
|
-
// super(props);
|
|
64
|
-
|
|
65
|
-
// this.state = {
|
|
66
|
-
// expand: false,
|
|
67
|
-
// };
|
|
68
|
-
// }
|
|
69
|
-
|
|
70
|
-
// handleOnClick = (e: React.MouseEvent<HTMLAnchorElement, MouseEvent>): void => {
|
|
71
|
-
// e.preventDefault();
|
|
72
|
-
|
|
73
|
-
// this.setState({expand: true});
|
|
74
|
-
// }
|
|
75
|
-
|
|
76
|
-
// renderMessage = (formattedMessage: string): JSX.Element => {
|
|
77
|
-
// return (
|
|
78
|
-
// <Markdown
|
|
79
|
-
// message={formattedMessage}
|
|
80
|
-
// options={this.props.formatOptions}
|
|
81
|
-
// />
|
|
82
|
-
// );
|
|
83
|
-
// }
|
|
84
|
-
|
|
85
|
-
// render(): JSX.Element {
|
|
86
|
-
// const {formatMessage} = this.props.intl;
|
|
87
|
-
// const {expand} = this.state;
|
|
88
|
-
// const {
|
|
89
|
-
// actor,
|
|
90
|
-
// expandedLocale,
|
|
91
|
-
// postType,
|
|
92
|
-
// usernames,
|
|
93
|
-
// } = this.props;
|
|
94
|
-
|
|
95
|
-
// const firstUser = usernames[0];
|
|
96
|
-
// const lastIndex = usernames.length - 1;
|
|
97
|
-
// const lastUser = usernames[lastIndex];
|
|
98
|
-
|
|
99
|
-
// if (expand) {
|
|
100
|
-
// const formattedMessage = formatMessage(expandedLocale, {
|
|
101
|
-
// users: usernames.slice(0, lastIndex).join(', '),
|
|
102
|
-
// lastUser,
|
|
103
|
-
// actor,
|
|
104
|
-
// });
|
|
105
|
-
|
|
106
|
-
// return this.renderMessage(formattedMessage);
|
|
107
|
-
// }
|
|
108
|
-
|
|
109
|
-
// const firstUserMessage = formatMessage(
|
|
110
|
-
// {id: 'last_users_message.first', defaultMessage: '{firstUser} and '},
|
|
111
|
-
// {firstUser},
|
|
112
|
-
// );
|
|
113
|
-
|
|
114
|
-
// const otherUsersMessage = formatMessage(
|
|
115
|
-
// {id: 'last_users_message.others', defaultMessage: '{numOthers} others '},
|
|
116
|
-
// {numOthers: lastIndex},
|
|
117
|
-
// );
|
|
118
|
-
|
|
119
|
-
// const actorMessage = formatMessage(
|
|
120
|
-
// {id: typeMessage[postType].id, defaultMessage: typeMessage[postType].defaultMessage},
|
|
121
|
-
// {actor},
|
|
122
|
-
// );
|
|
123
|
-
|
|
124
|
-
// return (
|
|
125
|
-
// <span>
|
|
126
|
-
// {this.renderMessage(firstUserMessage)}
|
|
127
|
-
// <a onClick={this.handleOnClick}>
|
|
128
|
-
// {otherUsersMessage}
|
|
129
|
-
// </a>
|
|
130
|
-
// {this.renderMessage(actorMessage)}
|
|
131
|
-
// </span>
|
|
132
|
-
// );
|
|
133
|
-
// }
|
|
134
|
-
// }
|
|
135
|
-
// export default injectIntl(LastUsers);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
|
-
// // See LICENSE.txt for license information.
|
|
3
|
-
|
|
4
|
-
// import {connect} from 'react-redux';
|
|
5
|
-
|
|
6
|
-
// import {makeGenerateCombinedPost} from 'mattermost-redux/utils/post_list';
|
|
7
|
-
|
|
8
|
-
// import {GlobalState} from 'mattermost-redux/types/store';
|
|
9
|
-
|
|
10
|
-
// import Post from 'components/post_view/post';
|
|
11
|
-
|
|
12
|
-
// type Props = {
|
|
13
|
-
// combinedId: string;
|
|
14
|
-
// }
|
|
15
|
-
|
|
16
|
-
// function makeMapStateToProps() {
|
|
17
|
-
// const generateCombinedPost = makeGenerateCombinedPost();
|
|
18
|
-
|
|
19
|
-
// return (state: GlobalState, ownProps: Props) => {
|
|
20
|
-
// return {
|
|
21
|
-
// post: generateCombinedPost(state, ownProps.combinedId),
|
|
22
|
-
// postId: ownProps.combinedId,
|
|
23
|
-
// };
|
|
24
|
-
// };
|
|
25
|
-
// }
|
|
26
|
-
|
|
27
|
-
// // Note that this also passes through Post's mapStateToProps
|
|
28
|
-
// export default connect(makeMapStateToProps)(Post);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
|
-
// // See LICENSE.txt for license information.
|
|
3
|
-
|
|
4
|
-
// import {connect} from 'react-redux';
|
|
5
|
-
|
|
6
|
-
// import {getPost, makeGetCommentCountForPost} from 'mattermost-redux/selectors/entities/posts';
|
|
7
|
-
// import {isCollapsedThreadsEnabled} from 'mattermost-redux/selectors/entities/preferences';
|
|
8
|
-
|
|
9
|
-
// import {GlobalState} from 'types/store';
|
|
10
|
-
|
|
11
|
-
// import CommentIcon from 'components/common/comment_icon';
|
|
12
|
-
|
|
13
|
-
// type OwnProps = {
|
|
14
|
-
// postId: string;
|
|
15
|
-
// }
|
|
16
|
-
|
|
17
|
-
// function makeMapStateToProps() {
|
|
18
|
-
// const getReplyCount = makeGetCommentCountForPost();
|
|
19
|
-
|
|
20
|
-
// return (state: GlobalState, ownProps: OwnProps) => {
|
|
21
|
-
// const post = getPost(state, ownProps.postId);
|
|
22
|
-
|
|
23
|
-
// const collapsedThreadsEnabled = isCollapsedThreadsEnabled(state);
|
|
24
|
-
|
|
25
|
-
// return {
|
|
26
|
-
// commentCount: collapsedThreadsEnabled ? 0 : getReplyCount(state, post),
|
|
27
|
-
// };
|
|
28
|
-
// };
|
|
29
|
-
// }
|
|
30
|
-
|
|
31
|
-
// export default connect(makeMapStateToProps)(CommentIcon);
|