@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,263 +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 {Tooltip} from 'react-bootstrap';
|
|
6
|
-
|
|
7
|
-
// import {Post} from 'mattermost-redux/types/posts';
|
|
8
|
-
// import {Reaction as ReactionType} from 'mattermost-redux/types/reactions';
|
|
9
|
-
|
|
10
|
-
// import OverlayTrigger from 'components/overlay_trigger';
|
|
11
|
-
|
|
12
|
-
// import * as Utils from 'utils/utils';
|
|
13
|
-
|
|
14
|
-
// import ReactionTooltip from './reaction_tooltip';
|
|
15
|
-
// import './reaction.scss';
|
|
16
|
-
|
|
17
|
-
// type State = {
|
|
18
|
-
// displayNumber: number;
|
|
19
|
-
// reactedClass: 'Reaction--reacted' | 'Reaction--reacting' | 'Reaction--unreacted' | 'Reaction--unreacting';
|
|
20
|
-
// };
|
|
21
|
-
|
|
22
|
-
// declare module 'react-bootstrap/lib/OverlayTrigger' {
|
|
23
|
-
// interface OverlayTriggerProps {
|
|
24
|
-
// shouldUpdatePosition?: boolean;
|
|
25
|
-
// }
|
|
26
|
-
// }
|
|
27
|
-
|
|
28
|
-
// type Props = {
|
|
29
|
-
|
|
30
|
-
// /*
|
|
31
|
-
// * The post to render the reaction for
|
|
32
|
-
// */
|
|
33
|
-
// post: Post;
|
|
34
|
-
|
|
35
|
-
// /*
|
|
36
|
-
// * The user id of the logged in user
|
|
37
|
-
// */
|
|
38
|
-
// currentUserId: string;
|
|
39
|
-
|
|
40
|
-
// /*
|
|
41
|
-
// * The name of the emoji for the reaction
|
|
42
|
-
// */
|
|
43
|
-
// emojiName: string;
|
|
44
|
-
|
|
45
|
-
// /*
|
|
46
|
-
// * The number of reactions to this post for this emoji
|
|
47
|
-
// */
|
|
48
|
-
// reactionCount: number;
|
|
49
|
-
|
|
50
|
-
// /*
|
|
51
|
-
// * Array of reactions by user
|
|
52
|
-
// */
|
|
53
|
-
// reactions: ReactionType[];
|
|
54
|
-
|
|
55
|
-
// /*
|
|
56
|
-
// * True if the user has the permission to add a reaction in this channel
|
|
57
|
-
// */
|
|
58
|
-
// canAddReaction: boolean;
|
|
59
|
-
|
|
60
|
-
// /*
|
|
61
|
-
// * True if user has the permission to remove his own reactions in this channel
|
|
62
|
-
// */
|
|
63
|
-
// canRemoveReaction: boolean;
|
|
64
|
-
|
|
65
|
-
// /*
|
|
66
|
-
// * The URL of the emoji image
|
|
67
|
-
// */
|
|
68
|
-
// emojiImageUrl: string;
|
|
69
|
-
|
|
70
|
-
// /*
|
|
71
|
-
// * Whether or not the current user has used this reaction
|
|
72
|
-
// */
|
|
73
|
-
// currentUserReacted: boolean;
|
|
74
|
-
|
|
75
|
-
// actions: {
|
|
76
|
-
|
|
77
|
-
// /*
|
|
78
|
-
// * Function to add a reaction to a post
|
|
79
|
-
// */
|
|
80
|
-
// addReaction: (postId: string, emojiName: string) => void;
|
|
81
|
-
|
|
82
|
-
// /*
|
|
83
|
-
// * Function to get non-loaded profiles by id
|
|
84
|
-
// */
|
|
85
|
-
// getMissingProfilesByIds: (ids: string[]) => void;
|
|
86
|
-
|
|
87
|
-
// /*
|
|
88
|
-
// * Function to remove a reaction from a post
|
|
89
|
-
// */
|
|
90
|
-
// removeReaction: (postId: string, emojiName: string) => void;
|
|
91
|
-
// };
|
|
92
|
-
// }
|
|
93
|
-
|
|
94
|
-
// export default class Reaction extends React.PureComponent<Props, State> {
|
|
95
|
-
// private reactionButtonRef = React.createRef<HTMLButtonElement>();
|
|
96
|
-
// private reactionCountRef = React.createRef<HTMLSpanElement>();
|
|
97
|
-
// private animating = false;
|
|
98
|
-
|
|
99
|
-
// constructor(props: Props) {
|
|
100
|
-
// super(props);
|
|
101
|
-
|
|
102
|
-
// const {currentUserReacted, reactionCount} = this.props;
|
|
103
|
-
|
|
104
|
-
// if (currentUserReacted) {
|
|
105
|
-
// this.state = {
|
|
106
|
-
// reactedClass: 'Reaction--reacted',
|
|
107
|
-
// displayNumber: reactionCount,
|
|
108
|
-
// };
|
|
109
|
-
// } else {
|
|
110
|
-
// this.state = {
|
|
111
|
-
// reactedClass: 'Reaction--unreacted',
|
|
112
|
-
// displayNumber: reactionCount,
|
|
113
|
-
// };
|
|
114
|
-
// }
|
|
115
|
-
// }
|
|
116
|
-
|
|
117
|
-
// componentDidUpdate(prevProps: Props): void {
|
|
118
|
-
// if (prevProps.reactionCount !== this.props.reactionCount) {
|
|
119
|
-
// const {currentUserReacted} = this.props;
|
|
120
|
-
// const reactedClass = currentUserReacted ? 'Reaction--reacted' : 'Reaction--unreacted';
|
|
121
|
-
|
|
122
|
-
// this.animating = false;
|
|
123
|
-
// /* eslint-disable-next-line react/no-did-update-set-state */
|
|
124
|
-
// this.setState({
|
|
125
|
-
// displayNumber: this.props.reactionCount,
|
|
126
|
-
// reactedClass,
|
|
127
|
-
// });
|
|
128
|
-
// }
|
|
129
|
-
// }
|
|
130
|
-
|
|
131
|
-
// handleClick = (): void => {
|
|
132
|
-
// // only proceed if user has permission to react
|
|
133
|
-
// // and we are not animating
|
|
134
|
-
// if (
|
|
135
|
-
// !(this.props.canAddReaction && this.props.canRemoveReaction) || this.animating
|
|
136
|
-
// ) {
|
|
137
|
-
// return;
|
|
138
|
-
// }
|
|
139
|
-
|
|
140
|
-
// const {currentUserReacted} = this.props;
|
|
141
|
-
|
|
142
|
-
// this.animating = true;
|
|
143
|
-
// this.setState((state) => {
|
|
144
|
-
// if (currentUserReacted) {
|
|
145
|
-
// return {
|
|
146
|
-
// displayNumber: state.displayNumber - 1,
|
|
147
|
-
// reactedClass: 'Reaction--unreacting',
|
|
148
|
-
// };
|
|
149
|
-
// }
|
|
150
|
-
|
|
151
|
-
// return {
|
|
152
|
-
// displayNumber: state.displayNumber + 1,
|
|
153
|
-
// reactedClass: 'Reaction--reacting',
|
|
154
|
-
// };
|
|
155
|
-
// });
|
|
156
|
-
// }
|
|
157
|
-
|
|
158
|
-
// handleAnimationEnded = (): void => {
|
|
159
|
-
// const {actions, currentUserReacted, post, emojiName} = this.props;
|
|
160
|
-
|
|
161
|
-
// this.animating = false;
|
|
162
|
-
// this.setState<'reactedClass'>((state) => {
|
|
163
|
-
// if (state.reactedClass === 'Reaction--reacting') {
|
|
164
|
-
// return {
|
|
165
|
-
// reactedClass: 'Reaction--reacted',
|
|
166
|
-
// };
|
|
167
|
-
// } else if (state.reactedClass === 'Reaction--unreacting') {
|
|
168
|
-
// return {
|
|
169
|
-
// reactedClass: 'Reaction--unreacted',
|
|
170
|
-
// };
|
|
171
|
-
// }
|
|
172
|
-
// return state;
|
|
173
|
-
// });
|
|
174
|
-
|
|
175
|
-
// if (currentUserReacted) {
|
|
176
|
-
// actions.removeReaction(post.id, emojiName);
|
|
177
|
-
// } else {
|
|
178
|
-
// actions.addReaction(post.id, emojiName);
|
|
179
|
-
// }
|
|
180
|
-
// }
|
|
181
|
-
|
|
182
|
-
// loadMissingProfiles = async (): Promise<void> => {
|
|
183
|
-
// const ids = this.props.reactions.map((reaction) => reaction.user_id);
|
|
184
|
-
// this.props.actions.getMissingProfilesByIds(ids);
|
|
185
|
-
// }
|
|
186
|
-
|
|
187
|
-
// render(): React.ReactNode {
|
|
188
|
-
// if (!this.props.emojiImageUrl) {
|
|
189
|
-
// return null;
|
|
190
|
-
// }
|
|
191
|
-
// const {
|
|
192
|
-
// canAddReaction,
|
|
193
|
-
// canRemoveReaction,
|
|
194
|
-
// currentUserReacted,
|
|
195
|
-
// emojiName,
|
|
196
|
-
// reactionCount,
|
|
197
|
-
// reactions,
|
|
198
|
-
// } = this.props;
|
|
199
|
-
// const {displayNumber} = this.state;
|
|
200
|
-
// const reactedNumber = currentUserReacted ? reactionCount : reactionCount + 1;
|
|
201
|
-
// const unreactedNumber = currentUserReacted ? reactionCount - 1 : reactionCount;
|
|
202
|
-
// const unreacted = (unreactedNumber > 0) ? unreactedNumber : '';
|
|
203
|
-
// const reacted = (reactedNumber > 0) ? reactedNumber : '';
|
|
204
|
-
// const display = (displayNumber > 0) ? displayNumber : '';
|
|
205
|
-
// const readOnlyClass = (canAddReaction && canRemoveReaction) ? '' : 'Reaction--read-only';
|
|
206
|
-
|
|
207
|
-
// const emojiNameWithSpaces = this.props.emojiName.replace(/_/g, ' ');
|
|
208
|
-
// let ariaLabelEmoji = `${Utils.localizeMessage('reaction.reactWidth.ariaLabel', 'react with')} ${emojiNameWithSpaces}`;
|
|
209
|
-
// if (currentUserReacted && canRemoveReaction) {
|
|
210
|
-
// ariaLabelEmoji = `${Utils.localizeMessage('reaction.removeReact.ariaLabel', 'remove reaction')} ${emojiNameWithSpaces}`;
|
|
211
|
-
// }
|
|
212
|
-
|
|
213
|
-
// return (
|
|
214
|
-
// <OverlayTrigger
|
|
215
|
-
// delayShow={500}
|
|
216
|
-
// placement='top'
|
|
217
|
-
// shouldUpdatePosition={true}
|
|
218
|
-
// overlay={
|
|
219
|
-
// <Tooltip id={`${this.props.post.id}-${this.props.emojiName}-reaction`}>
|
|
220
|
-
// <ReactionTooltip
|
|
221
|
-
// canAddReaction={canAddReaction}
|
|
222
|
-
// canRemoveReaction={canRemoveReaction}
|
|
223
|
-
// currentUserReacted={currentUserReacted}
|
|
224
|
-
// emojiName={emojiName}
|
|
225
|
-
// reactions={reactions}
|
|
226
|
-
// />
|
|
227
|
-
// </Tooltip>
|
|
228
|
-
// }
|
|
229
|
-
// onEnter={this.loadMissingProfiles}
|
|
230
|
-
// >
|
|
231
|
-
// <button
|
|
232
|
-
// id={`postReaction-${this.props.post.id}-${this.props.emojiName}`}
|
|
233
|
-
// aria-label={ariaLabelEmoji}
|
|
234
|
-
// className={`Reaction ${this.state.reactedClass} ${readOnlyClass}`}
|
|
235
|
-
// onClick={this.handleClick}
|
|
236
|
-
// ref={this.reactionButtonRef}
|
|
237
|
-
// >
|
|
238
|
-
// <span className='d-flex align-items-center'>
|
|
239
|
-
// <span
|
|
240
|
-
// className='Reaction__emoji emoticon'
|
|
241
|
-
// style={{backgroundImage: 'url(' + this.props.emojiImageUrl + ')'}}
|
|
242
|
-
// />
|
|
243
|
-
// <span
|
|
244
|
-
// ref={this.reactionCountRef}
|
|
245
|
-
// className='Reaction__count'
|
|
246
|
-
// >
|
|
247
|
-
// <span className='Reaction__number'>
|
|
248
|
-
// <span className='Reaction__number--display'>{display}</span>
|
|
249
|
-
// <span
|
|
250
|
-
// className='Reaction__number--unreacted'
|
|
251
|
-
// onAnimationEnd={this.handleAnimationEnded}
|
|
252
|
-
// >
|
|
253
|
-
// {unreacted}
|
|
254
|
-
// </span>
|
|
255
|
-
// <span className='Reaction__number--reacted'>{reacted}</span>
|
|
256
|
-
// </span>
|
|
257
|
-
// </span>
|
|
258
|
-
// </span>
|
|
259
|
-
// </button>
|
|
260
|
-
// </OverlayTrigger>
|
|
261
|
-
// );
|
|
262
|
-
// }
|
|
263
|
-
// }
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
|
-
// See LICENSE.txt for license information.
|
|
3
|
-
|
|
4
|
-
import {TestHelper} from 'utils/test_helper';
|
|
5
|
-
|
|
6
|
-
import {makeGetNamesOfUsers} from './index';
|
|
7
|
-
|
|
8
|
-
describe('makeGetNamesOfUsers', () => {
|
|
9
|
-
test('should sort users by who reacted first', () => {
|
|
10
|
-
const getNamesOfUsers = makeGetNamesOfUsers();
|
|
11
|
-
|
|
12
|
-
const post1 = TestHelper.getPostMock({id: 'post1'});
|
|
13
|
-
|
|
14
|
-
const user1 = TestHelper.getUserMock({id: 'user1', username: 'username_1'});
|
|
15
|
-
const user2 = TestHelper.getUserMock({id: 'user2', username: 'username_2'});
|
|
16
|
-
const user3 = TestHelper.getUserMock({id: 'user3', username: 'username_3'});
|
|
17
|
-
|
|
18
|
-
const baseDate = Date.now();
|
|
19
|
-
const reactions = [
|
|
20
|
-
{user_id: user2.id, create_at: baseDate}, // Will be sorted 2nd, after the logged-in user
|
|
21
|
-
{user_id: user1.id, create_at: baseDate + 5000}, // Logged-in user, will be sorted first although 2nd user reacted first
|
|
22
|
-
{user_id: user3.id, create_at: baseDate + 8000}, // Last to react, will be sorted last
|
|
23
|
-
];
|
|
24
|
-
|
|
25
|
-
const state = {
|
|
26
|
-
entities: {
|
|
27
|
-
general: {
|
|
28
|
-
config: {},
|
|
29
|
-
},
|
|
30
|
-
posts: {
|
|
31
|
-
posts: {
|
|
32
|
-
post1,
|
|
33
|
-
},
|
|
34
|
-
reactions: {
|
|
35
|
-
post1: reactions,
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
preferences: {
|
|
39
|
-
myPreferences: {},
|
|
40
|
-
},
|
|
41
|
-
users: {
|
|
42
|
-
currentUserId: user1.id,
|
|
43
|
-
profiles: {
|
|
44
|
-
user1,
|
|
45
|
-
user2,
|
|
46
|
-
user3,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
const names = getNamesOfUsers(state, reactions);
|
|
53
|
-
|
|
54
|
-
expect(names).toEqual(['You', 'username_2', 'username_3']);
|
|
55
|
-
});
|
|
56
|
-
});
|
|
@@ -1,67 +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 {createSelector} from 'reselect';
|
|
7
|
-
|
|
8
|
-
// import {getCurrentUserId, makeGetProfilesForReactions} from 'mattermost-redux/selectors/entities/users';
|
|
9
|
-
// import {getTeammateNameDisplaySetting} from 'mattermost-redux/selectors/entities/preferences';
|
|
10
|
-
|
|
11
|
-
// import {Reaction as ReactionType} from 'mattermost-redux/types/reactions';
|
|
12
|
-
// import {UserProfile} from 'mattermost-redux/types/users';
|
|
13
|
-
|
|
14
|
-
// import {displayUsername} from 'mattermost-redux/utils/user_utils';
|
|
15
|
-
|
|
16
|
-
// import {GlobalState} from 'types/store';
|
|
17
|
-
|
|
18
|
-
// import * as Utils from 'utils/utils';
|
|
19
|
-
|
|
20
|
-
// import ReactionTooltip from './reaction_tooltip';
|
|
21
|
-
|
|
22
|
-
// type OwnProps = {
|
|
23
|
-
// reactions: ReactionType[];
|
|
24
|
-
// };
|
|
25
|
-
|
|
26
|
-
// export const makeGetNamesOfUsers = () => createSelector(
|
|
27
|
-
// 'makeGetNamesOfUsers',
|
|
28
|
-
// (state: GlobalState, reactions: ReactionType[]) => reactions,
|
|
29
|
-
// getCurrentUserId,
|
|
30
|
-
// makeGetProfilesForReactions(),
|
|
31
|
-
// getTeammateNameDisplaySetting,
|
|
32
|
-
// (reactions: ReactionType[], currentUserId: string, profiles: UserProfile[], teammateNameDisplay: string) => {
|
|
33
|
-
// // Sort users by who reacted first with "you" being first if the current user reacted
|
|
34
|
-
|
|
35
|
-
// let currentUserReacted = false;
|
|
36
|
-
// const sortedReactions = reactions.sort((a, b) => a.create_at - b.create_at);
|
|
37
|
-
// const users = sortedReactions.reduce((accumulator, current) => {
|
|
38
|
-
// if (current.user_id === currentUserId) {
|
|
39
|
-
// currentUserReacted = true;
|
|
40
|
-
// } else {
|
|
41
|
-
// const user = profiles.find((u) => u.id === current.user_id);
|
|
42
|
-
// if (user) {
|
|
43
|
-
// accumulator.push(displayUsername(user, teammateNameDisplay));
|
|
44
|
-
// }
|
|
45
|
-
// }
|
|
46
|
-
// return accumulator;
|
|
47
|
-
// }, [] as string[]);
|
|
48
|
-
|
|
49
|
-
// if (currentUserReacted) {
|
|
50
|
-
// users.unshift(Utils.localizeMessage('reaction.you', 'You'));
|
|
51
|
-
// }
|
|
52
|
-
|
|
53
|
-
// return users;
|
|
54
|
-
// },
|
|
55
|
-
// );
|
|
56
|
-
|
|
57
|
-
// function makeMapStateToProps() {
|
|
58
|
-
// const getNamesOfUsers = makeGetNamesOfUsers();
|
|
59
|
-
|
|
60
|
-
// return (state: GlobalState, ownProps: OwnProps) => {
|
|
61
|
-
// return {
|
|
62
|
-
// users: getNamesOfUsers(state, ownProps.reactions),
|
|
63
|
-
// };
|
|
64
|
-
// };
|
|
65
|
-
// }
|
|
66
|
-
|
|
67
|
-
// export default connect(makeMapStateToProps)(ReactionTooltip);
|
|
@@ -1,140 +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 {FormattedMessage} from 'react-intl';
|
|
6
|
-
|
|
7
|
-
// import {Reaction as ReactionType} from 'mattermost-redux/types/reactions';
|
|
8
|
-
|
|
9
|
-
// type Props = {
|
|
10
|
-
// canAddReaction: boolean;
|
|
11
|
-
// canRemoveReaction: boolean;
|
|
12
|
-
// currentUserReacted: boolean;
|
|
13
|
-
// emojiName: string;
|
|
14
|
-
// reactions: ReactionType[];
|
|
15
|
-
// users: string[];
|
|
16
|
-
// };
|
|
17
|
-
|
|
18
|
-
// const ReactionTooltip: React.FC<Props> = (props: Props) => {
|
|
19
|
-
// const {
|
|
20
|
-
// canAddReaction,
|
|
21
|
-
// canRemoveReaction,
|
|
22
|
-
// currentUserReacted,
|
|
23
|
-
// emojiName,
|
|
24
|
-
// reactions,
|
|
25
|
-
// users,
|
|
26
|
-
// } = props;
|
|
27
|
-
|
|
28
|
-
// const otherUsersCount = reactions.length - users.length;
|
|
29
|
-
|
|
30
|
-
// let names: React.ReactNode;
|
|
31
|
-
// if (otherUsersCount > 0) {
|
|
32
|
-
// if (users.length > 0) {
|
|
33
|
-
// names = (
|
|
34
|
-
// <FormattedMessage
|
|
35
|
-
// id='reaction.usersAndOthersReacted'
|
|
36
|
-
// defaultMessage='{users} and {otherUsers, number} other {otherUsers, plural, one {user} other {users}}'
|
|
37
|
-
// values={{
|
|
38
|
-
// users: users.join(', '),
|
|
39
|
-
// otherUsers: otherUsersCount,
|
|
40
|
-
// }}
|
|
41
|
-
// />
|
|
42
|
-
// );
|
|
43
|
-
// } else {
|
|
44
|
-
// names = (
|
|
45
|
-
// <FormattedMessage
|
|
46
|
-
// id='reaction.othersReacted'
|
|
47
|
-
// defaultMessage='{otherUsers, number} {otherUsers, plural, one {user} other {users}}'
|
|
48
|
-
// values={{
|
|
49
|
-
// otherUsers: otherUsersCount,
|
|
50
|
-
// }}
|
|
51
|
-
// />
|
|
52
|
-
// );
|
|
53
|
-
// }
|
|
54
|
-
// } else if (users.length > 1) {
|
|
55
|
-
// names = (
|
|
56
|
-
// <FormattedMessage
|
|
57
|
-
// id='reaction.usersReacted'
|
|
58
|
-
// defaultMessage='{users} and {lastUser}'
|
|
59
|
-
// values={{
|
|
60
|
-
// users: users.slice(0, -1).join(', '),
|
|
61
|
-
// lastUser: users[users.length - 1],
|
|
62
|
-
// }}
|
|
63
|
-
// />
|
|
64
|
-
// );
|
|
65
|
-
// } else {
|
|
66
|
-
// names = users[0];
|
|
67
|
-
// }
|
|
68
|
-
|
|
69
|
-
// let reactionVerb: React.ReactNode;
|
|
70
|
-
// if (users.length + otherUsersCount > 1) {
|
|
71
|
-
// if (currentUserReacted) {
|
|
72
|
-
// reactionVerb = (
|
|
73
|
-
// <FormattedMessage
|
|
74
|
-
// id='reaction.reactionVerb.youAndUsers'
|
|
75
|
-
// defaultMessage='reacted'
|
|
76
|
-
// />
|
|
77
|
-
// );
|
|
78
|
-
// } else {
|
|
79
|
-
// reactionVerb = (
|
|
80
|
-
// <FormattedMessage
|
|
81
|
-
// id='reaction.reactionVerb.users'
|
|
82
|
-
// defaultMessage='reacted'
|
|
83
|
-
// />
|
|
84
|
-
// );
|
|
85
|
-
// }
|
|
86
|
-
// } else if (currentUserReacted) {
|
|
87
|
-
// reactionVerb = (
|
|
88
|
-
// <FormattedMessage
|
|
89
|
-
// id='reaction.reactionVerb.you'
|
|
90
|
-
// defaultMessage='reacted'
|
|
91
|
-
// />
|
|
92
|
-
// );
|
|
93
|
-
// } else {
|
|
94
|
-
// reactionVerb = (
|
|
95
|
-
// <FormattedMessage
|
|
96
|
-
// id='reaction.reactionVerb.user'
|
|
97
|
-
// defaultMessage='reacted'
|
|
98
|
-
// />
|
|
99
|
-
// );
|
|
100
|
-
// }
|
|
101
|
-
|
|
102
|
-
// const tooltip = (
|
|
103
|
-
// <FormattedMessage
|
|
104
|
-
// id='reaction.reacted'
|
|
105
|
-
// defaultMessage='{users} {reactionVerb} with {emoji}'
|
|
106
|
-
// values={{
|
|
107
|
-
// users: <b>{names}</b>,
|
|
108
|
-
// reactionVerb,
|
|
109
|
-
// emoji: <b>{':' + emojiName + ':'}</b>,
|
|
110
|
-
// }}
|
|
111
|
-
// />
|
|
112
|
-
// );
|
|
113
|
-
|
|
114
|
-
// let clickTooltip: React.ReactNode;
|
|
115
|
-
// if (currentUserReacted && canRemoveReaction) {
|
|
116
|
-
// clickTooltip = (
|
|
117
|
-
// <FormattedMessage
|
|
118
|
-
// id='reaction.clickToRemove'
|
|
119
|
-
// defaultMessage='(click to remove)'
|
|
120
|
-
// />
|
|
121
|
-
// );
|
|
122
|
-
// } else if (!currentUserReacted && canAddReaction) {
|
|
123
|
-
// clickTooltip = (
|
|
124
|
-
// <FormattedMessage
|
|
125
|
-
// id='reaction.clickToAdd'
|
|
126
|
-
// defaultMessage='(click to add)'
|
|
127
|
-
// />
|
|
128
|
-
// );
|
|
129
|
-
// }
|
|
130
|
-
|
|
131
|
-
// return (
|
|
132
|
-
// <>
|
|
133
|
-
// {tooltip}
|
|
134
|
-
// <br/>
|
|
135
|
-
// {clickTooltip}
|
|
136
|
-
// </>
|
|
137
|
-
// );
|
|
138
|
-
// };
|
|
139
|
-
|
|
140
|
-
// export default ReactionTooltip;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`components/ReactionList should render nothing when no reactions 1`] = `""`;
|
|
4
|
-
|
|
5
|
-
exports[`components/ReactionList should render when there are reactions 1`] = `
|
|
6
|
-
<div
|
|
7
|
-
aria-label="reactions"
|
|
8
|
-
className="post-reaction-list"
|
|
9
|
-
>
|
|
10
|
-
<Connect(Reaction)
|
|
11
|
-
emojiName="expressionless"
|
|
12
|
-
key="expressionless"
|
|
13
|
-
post={
|
|
14
|
-
Object {
|
|
15
|
-
"id": "post_id",
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
reactions={
|
|
19
|
-
Array [
|
|
20
|
-
Object {
|
|
21
|
-
"create_at": 1542994995740,
|
|
22
|
-
"emoji_name": "expressionless",
|
|
23
|
-
"post_id": "xbqfo5qb4bb4ffmj9hqfji6fiw",
|
|
24
|
-
"user_id": "1rj9fokoeffrigu7sk5uc8aiih",
|
|
25
|
-
},
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
/>
|
|
29
|
-
<div
|
|
30
|
-
className="post-add-reaction"
|
|
31
|
-
>
|
|
32
|
-
<span
|
|
33
|
-
className="emoji-picker__container"
|
|
34
|
-
>
|
|
35
|
-
<EmojiPickerOverlay
|
|
36
|
-
enableGifPicker={false}
|
|
37
|
-
onEmojiClick={[Function]}
|
|
38
|
-
onEmojiClose={[Function]}
|
|
39
|
-
onHide={[Function]}
|
|
40
|
-
rightOffset={15}
|
|
41
|
-
show={false}
|
|
42
|
-
spaceRequiredAbove={476}
|
|
43
|
-
spaceRequiredBelow={497}
|
|
44
|
-
target={[Function]}
|
|
45
|
-
topOffset={-5}
|
|
46
|
-
/>
|
|
47
|
-
<Connect(ChannelPermissionGate)
|
|
48
|
-
permissions={
|
|
49
|
-
Array [
|
|
50
|
-
"add_reaction",
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
teamId="teamId"
|
|
54
|
-
>
|
|
55
|
-
<OverlayTrigger
|
|
56
|
-
defaultOverlayShown={false}
|
|
57
|
-
delayShow={400}
|
|
58
|
-
overlay={
|
|
59
|
-
<Tooltip
|
|
60
|
-
bsClass="tooltip"
|
|
61
|
-
id="addReactionTooltip"
|
|
62
|
-
placement="right"
|
|
63
|
-
>
|
|
64
|
-
<Memo(MemoizedFormattedMessage)
|
|
65
|
-
defaultMessage="Add a reaction"
|
|
66
|
-
id="reaction_list.addReactionTooltip"
|
|
67
|
-
/>
|
|
68
|
-
</Tooltip>
|
|
69
|
-
}
|
|
70
|
-
placement="top"
|
|
71
|
-
trigger={
|
|
72
|
-
Array [
|
|
73
|
-
"hover",
|
|
74
|
-
"focus",
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
>
|
|
78
|
-
<button
|
|
79
|
-
aria-label="Add a reaction"
|
|
80
|
-
className="Reaction"
|
|
81
|
-
onClick={[Function]}
|
|
82
|
-
>
|
|
83
|
-
<span
|
|
84
|
-
className="Reaction__add"
|
|
85
|
-
id="addReaction-post_id"
|
|
86
|
-
>
|
|
87
|
-
<AddReactionIcon />
|
|
88
|
-
</span>
|
|
89
|
-
</button>
|
|
90
|
-
</OverlayTrigger>
|
|
91
|
-
</Connect(ChannelPermissionGate)>
|
|
92
|
-
</span>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
`;
|
|
@@ -1,52 +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 {getChannel} from 'mattermost-redux/selectors/entities/channels';
|
|
8
|
-
// import {makeGetReactionsForPost} from 'mattermost-redux/selectors/entities/posts';
|
|
9
|
-
// import {getConfig} from 'mattermost-redux/selectors/entities/general';
|
|
10
|
-
// import {GlobalState} from 'mattermost-redux/types/store';
|
|
11
|
-
// import {GenericAction} from 'mattermost-redux/types/actions';
|
|
12
|
-
// import {Post} from 'mattermost-redux/types/posts';
|
|
13
|
-
// import {Reaction} from 'mattermost-redux/types/reactions';
|
|
14
|
-
|
|
15
|
-
// import {addReaction} from 'actions/post_actions.jsx';
|
|
16
|
-
|
|
17
|
-
// import ReactionList from './reaction_list';
|
|
18
|
-
|
|
19
|
-
// type Props = {
|
|
20
|
-
// enableEmojiPicker: boolean;
|
|
21
|
-
// isReadOnly: boolean;
|
|
22
|
-
// post: Post;
|
|
23
|
-
// reactions: { [x: string]: Reaction } | undefined | null;
|
|
24
|
-
// };
|
|
25
|
-
|
|
26
|
-
// function makeMapStateToProps() {
|
|
27
|
-
// const getReactionsForPost = makeGetReactionsForPost();
|
|
28
|
-
|
|
29
|
-
// return function mapStateToProps(state: GlobalState, ownProps: Props) {
|
|
30
|
-
// const config = getConfig(state);
|
|
31
|
-
// const enableEmojiPicker = config.EnableEmojiPicker === 'true' && !ownProps.isReadOnly;
|
|
32
|
-
|
|
33
|
-
// const channel = getChannel(state, ownProps.post.channel_id) || {};
|
|
34
|
-
// const teamId = channel.team_id;
|
|
35
|
-
|
|
36
|
-
// return {
|
|
37
|
-
// teamId,
|
|
38
|
-
// reactions: getReactionsForPost(state, ownProps.post.id),
|
|
39
|
-
// enableEmojiPicker,
|
|
40
|
-
// };
|
|
41
|
-
// };
|
|
42
|
-
// }
|
|
43
|
-
|
|
44
|
-
// function mapDispatchToProps(dispatch: Dispatch<GenericAction>) {
|
|
45
|
-
// return {
|
|
46
|
-
// actions: bindActionCreators({
|
|
47
|
-
// addReaction,
|
|
48
|
-
// }, dispatch),
|
|
49
|
-
// };
|
|
50
|
-
// }
|
|
51
|
-
|
|
52
|
-
// export default connect(makeMapStateToProps, mapDispatchToProps)(ReactionList);
|