@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,626 +0,0 @@
|
|
|
1
|
-
// // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
|
-
// // See LICENSE.txt for license information.
|
|
3
|
-
|
|
4
|
-
// import PropTypes from 'prop-types';
|
|
5
|
-
// import * as React from 'react';
|
|
6
|
-
// import AutoSizer from 'react-virtualized-auto-sizer';
|
|
7
|
-
// import {DynamicSizeList} from 'dynamic-virtualized-list';
|
|
8
|
-
|
|
9
|
-
// import {isDateLine, isStartOfNewMessages} from 'mattermost-redux/utils/post_list';
|
|
10
|
-
|
|
11
|
-
// import EventEmitter from 'mattermost-redux/utils/event_emitter';
|
|
12
|
-
|
|
13
|
-
// import Constants, {PostListRowListIds, EventTypes, PostRequestTypes} from 'utils/constants';
|
|
14
|
-
// import DelayedAction from 'utils/delayed_action';
|
|
15
|
-
// import {getPreviousPostId, getLatestPostId, getNewMessageIndex} from 'utils/post_utils';
|
|
16
|
-
// import * as Utils from 'utils/utils.jsx';
|
|
17
|
-
|
|
18
|
-
// import FloatingTimestamp from 'components/post_view/floating_timestamp';
|
|
19
|
-
// import PostListRow from 'components/post_view/post_list_row';
|
|
20
|
-
// import ScrollToBottomArrows from 'components/post_view/scroll_to_bottom_arrows';
|
|
21
|
-
// import ToastWrapper from 'components/toast_wrapper';
|
|
22
|
-
|
|
23
|
-
// import LatestPostReader from './latest_post_reader';
|
|
24
|
-
|
|
25
|
-
// const OVERSCAN_COUNT_BACKWARD = 80;
|
|
26
|
-
// const OVERSCAN_COUNT_FORWARD = 80;
|
|
27
|
-
// const HEIGHT_TRIGGER_FOR_MORE_POSTS = 1000;
|
|
28
|
-
// const BUFFER_TO_BE_CONSIDERED_BOTTOM = 10;
|
|
29
|
-
|
|
30
|
-
// const MAXIMUM_POSTS_FOR_SLICING = {
|
|
31
|
-
// channel: 50,
|
|
32
|
-
// permalink: 100,
|
|
33
|
-
// };
|
|
34
|
-
|
|
35
|
-
// const postListStyle = {
|
|
36
|
-
// padding: '14px 0px 7px',
|
|
37
|
-
// };
|
|
38
|
-
|
|
39
|
-
// const virtListStyles = {
|
|
40
|
-
// position: 'absolute',
|
|
41
|
-
// bottom: '0',
|
|
42
|
-
// maxHeight: '100%',
|
|
43
|
-
// };
|
|
44
|
-
|
|
45
|
-
// const OFFSET_TO_SHOW_TOAST = -50;
|
|
46
|
-
|
|
47
|
-
// export default class PostList extends React.PureComponent {
|
|
48
|
-
// static propTypes = {
|
|
49
|
-
|
|
50
|
-
// /**
|
|
51
|
-
// * Array of Ids in the channel including date separators, new message indicator, more messages loader,
|
|
52
|
-
// * manual load messages trigger and postId in the order of newest to oldest for populating virtual list rows
|
|
53
|
-
// */
|
|
54
|
-
// postListIds: PropTypes.array.isRequired,
|
|
55
|
-
|
|
56
|
-
// /**
|
|
57
|
-
// * Set to focus this post
|
|
58
|
-
// */
|
|
59
|
-
// focusedPostId: PropTypes.string,
|
|
60
|
-
|
|
61
|
-
// /**
|
|
62
|
-
// * The current channel id
|
|
63
|
-
// */
|
|
64
|
-
// channelId: PropTypes.string.isRequired,
|
|
65
|
-
|
|
66
|
-
// /**
|
|
67
|
-
// * Used for disabling auto retry of posts and enabling manual link for loading posts
|
|
68
|
-
// */
|
|
69
|
-
// autoRetryEnable: PropTypes.bool,
|
|
70
|
-
|
|
71
|
-
// /**
|
|
72
|
-
// * used for populating header, scroll correction and disabling triggering loadOlderPosts
|
|
73
|
-
// */
|
|
74
|
-
// atOldestPost: PropTypes.bool,
|
|
75
|
-
|
|
76
|
-
// /**
|
|
77
|
-
// * used for disabling triggering loadNewerPosts
|
|
78
|
-
// */
|
|
79
|
-
// atLatestPost: PropTypes.bool,
|
|
80
|
-
|
|
81
|
-
// /**
|
|
82
|
-
// * used in passing to post row for enabling animation when loading posts
|
|
83
|
-
// */
|
|
84
|
-
// loadingNewerPosts: PropTypes.bool,
|
|
85
|
-
// loadingOlderPosts: PropTypes.bool,
|
|
86
|
-
|
|
87
|
-
// latestPostTimeStamp: PropTypes.number,
|
|
88
|
-
|
|
89
|
-
// lastViewedAt: PropTypes.string,
|
|
90
|
-
|
|
91
|
-
// actions: PropTypes.shape({
|
|
92
|
-
|
|
93
|
-
// /**
|
|
94
|
-
// * Function to get older posts in the channel
|
|
95
|
-
// */
|
|
96
|
-
// loadOlderPosts: PropTypes.func.isRequired,
|
|
97
|
-
|
|
98
|
-
// /**
|
|
99
|
-
// * Function to get newer posts in the channel
|
|
100
|
-
// */
|
|
101
|
-
// loadNewerPosts: PropTypes.func.isRequired,
|
|
102
|
-
|
|
103
|
-
// /**
|
|
104
|
-
// * Function used for autoLoad of posts incase screen is not filled with posts
|
|
105
|
-
// */
|
|
106
|
-
// canLoadMorePosts: PropTypes.func.isRequired,
|
|
107
|
-
|
|
108
|
-
// /**
|
|
109
|
-
// * Function to check and set if app is in mobile view
|
|
110
|
-
// */
|
|
111
|
-
// checkAndSetMobileView: PropTypes.func.isRequired,
|
|
112
|
-
|
|
113
|
-
// /**
|
|
114
|
-
// * Function to change the post selected for postList
|
|
115
|
-
// */
|
|
116
|
-
// changeUnreadChunkTimeStamp: PropTypes.func.isRequired,
|
|
117
|
-
|
|
118
|
-
// updateNewMessagesAtInChannel: PropTypes.func.isRequired,
|
|
119
|
-
// }).isRequired,
|
|
120
|
-
// }
|
|
121
|
-
|
|
122
|
-
// constructor(props) {
|
|
123
|
-
// super(props);
|
|
124
|
-
|
|
125
|
-
// const channelIntroMessage = PostListRowListIds.CHANNEL_INTRO_MESSAGE;
|
|
126
|
-
// const isMobile = Utils.isMobile();
|
|
127
|
-
// this.state = {
|
|
128
|
-
// isScrolling: false,
|
|
129
|
-
// isMobile,
|
|
130
|
-
|
|
131
|
-
// /* Intentionally setting null so that toast can determine when the first time this state is defined */
|
|
132
|
-
// atBottom: null,
|
|
133
|
-
// lastViewedBottom: Date.now(),
|
|
134
|
-
// postListIds: [channelIntroMessage],
|
|
135
|
-
// topPostId: '',
|
|
136
|
-
// postMenuOpened: false,
|
|
137
|
-
// dynamicListStyle: {
|
|
138
|
-
// willChange: 'transform',
|
|
139
|
-
// },
|
|
140
|
-
// initScrollCompleted: false,
|
|
141
|
-
// initScrollOffsetFromBottom: 0,
|
|
142
|
-
|
|
143
|
-
// showSearchHint: false,
|
|
144
|
-
// isSearchHintDismissed: false,
|
|
145
|
-
// };
|
|
146
|
-
|
|
147
|
-
// this.listRef = React.createRef();
|
|
148
|
-
// this.postListRef = React.createRef();
|
|
149
|
-
// if (isMobile) {
|
|
150
|
-
// this.scrollStopAction = new DelayedAction(this.handleScrollStop);
|
|
151
|
-
// }
|
|
152
|
-
|
|
153
|
-
// this.initRangeToRender = this.props.focusedPostId ? [0, MAXIMUM_POSTS_FOR_SLICING.permalink] : [0, MAXIMUM_POSTS_FOR_SLICING.channel];
|
|
154
|
-
|
|
155
|
-
// let postIndex = 0;
|
|
156
|
-
// if (props.focusedPostId) {
|
|
157
|
-
// postIndex = this.props.postListIds.findIndex((postId) => postId === this.props.focusedPostId);
|
|
158
|
-
// } else {
|
|
159
|
-
// postIndex = this.getNewMessagesSeparatorIndex(props.postListIds);
|
|
160
|
-
// }
|
|
161
|
-
|
|
162
|
-
// const maxPostsForSlicing = props.focusedPostId ? MAXIMUM_POSTS_FOR_SLICING.permalink : MAXIMUM_POSTS_FOR_SLICING.channel;
|
|
163
|
-
// this.initRangeToRender = [
|
|
164
|
-
// Math.max(postIndex - 30, 0),
|
|
165
|
-
// Math.max(postIndex + 30, Math.min(props.postListIds.length - 1, maxPostsForSlicing)),
|
|
166
|
-
// ];
|
|
167
|
-
|
|
168
|
-
// this.showSearchHintThreshold = this.getShowSearchHintThreshold();
|
|
169
|
-
// }
|
|
170
|
-
|
|
171
|
-
// componentDidMount() {
|
|
172
|
-
// this.mounted = true;
|
|
173
|
-
// this.props.actions.checkAndSetMobileView();
|
|
174
|
-
|
|
175
|
-
// window.addEventListener('resize', this.handleWindowResize);
|
|
176
|
-
// EventEmitter.addListener(EventTypes.POST_LIST_SCROLL_TO_BOTTOM, this.scrollToLatestMessages);
|
|
177
|
-
// }
|
|
178
|
-
|
|
179
|
-
// getSnapshotBeforeUpdate(prevProps) {
|
|
180
|
-
// if (this.postListRef && this.postListRef.current) {
|
|
181
|
-
// const postsAddedAtTop = this.props.postListIds && this.props.postListIds.length !== prevProps.postListIds.length && this.props.postListIds[0] === prevProps.postListIds[0];
|
|
182
|
-
// const channelHeaderAdded = this.props.atOldestPost !== prevProps.atOldestPost;
|
|
183
|
-
// if ((postsAddedAtTop || channelHeaderAdded) && this.state.atBottom === false) {
|
|
184
|
-
// const postListNode = this.postListRef.current;
|
|
185
|
-
// const previousScrollTop = postListNode.parentElement.scrollTop;
|
|
186
|
-
// const previousScrollHeight = postListNode.scrollHeight;
|
|
187
|
-
|
|
188
|
-
// return {
|
|
189
|
-
// previousScrollTop,
|
|
190
|
-
// previousScrollHeight,
|
|
191
|
-
// };
|
|
192
|
-
// }
|
|
193
|
-
// }
|
|
194
|
-
// return null;
|
|
195
|
-
// }
|
|
196
|
-
|
|
197
|
-
// componentDidUpdate(prevProps, prevState, snapshot) {
|
|
198
|
-
// if (!this.postListRef.current) {
|
|
199
|
-
// return;
|
|
200
|
-
// }
|
|
201
|
-
// const prevPostsCount = prevProps.postListIds.length;
|
|
202
|
-
// const presentPostsCount = this.props.postListIds.length;
|
|
203
|
-
|
|
204
|
-
// if (snapshot) {
|
|
205
|
-
// const postlistScrollHeight = this.postListRef.current.scrollHeight;
|
|
206
|
-
// const postsAddedAtTop = presentPostsCount !== prevPostsCount && this.props.postListIds[0] === prevProps.postListIds[0];
|
|
207
|
-
// const channelHeaderAdded = this.props.atOldestPost !== prevProps.atOldestPost;
|
|
208
|
-
// if ((postsAddedAtTop || channelHeaderAdded) && !this.state.atBottom && snapshot) {
|
|
209
|
-
// const scrollValue = snapshot.previousScrollTop + (postlistScrollHeight - snapshot.previousScrollHeight);
|
|
210
|
-
// if (scrollValue !== 0 && (scrollValue - snapshot.previousScrollTop) !== 0) {
|
|
211
|
-
// //true as third param so chrome can use animationFrame when correcting scroll
|
|
212
|
-
// this.listRef.current.scrollTo(scrollValue, scrollValue - snapshot.previousScrollTop, true);
|
|
213
|
-
// }
|
|
214
|
-
// }
|
|
215
|
-
// }
|
|
216
|
-
// }
|
|
217
|
-
|
|
218
|
-
// componentWillUnmount() {
|
|
219
|
-
// this.mounted = false;
|
|
220
|
-
// window.removeEventListener('resize', this.handleWindowResize);
|
|
221
|
-
// EventEmitter.removeListener(EventTypes.POST_LIST_SCROLL_TO_BOTTOM, this.scrollToLatestMessages);
|
|
222
|
-
// }
|
|
223
|
-
|
|
224
|
-
// static getDerivedStateFromProps(props) {
|
|
225
|
-
// const postListIds = props.postListIds;
|
|
226
|
-
// let newPostListIds;
|
|
227
|
-
|
|
228
|
-
// if (props.atOldestPost) {
|
|
229
|
-
// newPostListIds = [...postListIds, PostListRowListIds.CHANNEL_INTRO_MESSAGE];
|
|
230
|
-
// } else if (props.autoRetryEnable) {
|
|
231
|
-
// newPostListIds = [...postListIds, PostListRowListIds.OLDER_MESSAGES_LOADER];
|
|
232
|
-
// } else {
|
|
233
|
-
// newPostListIds = [...postListIds, PostListRowListIds.LOAD_OLDER_MESSAGES_TRIGGER];
|
|
234
|
-
// }
|
|
235
|
-
|
|
236
|
-
// if (!props.atLatestPost) {
|
|
237
|
-
// if (props.autoRetryEnable) {
|
|
238
|
-
// newPostListIds = [PostListRowListIds.NEWER_MESSAGES_LOADER, ...newPostListIds];
|
|
239
|
-
// } else {
|
|
240
|
-
// newPostListIds = [PostListRowListIds.LOAD_NEWER_MESSAGES_TRIGGER, ...newPostListIds];
|
|
241
|
-
// }
|
|
242
|
-
// }
|
|
243
|
-
|
|
244
|
-
// return {
|
|
245
|
-
// postListIds: newPostListIds,
|
|
246
|
-
// };
|
|
247
|
-
// }
|
|
248
|
-
|
|
249
|
-
// getNewMessagesSeparatorIndex = (postListIds) => {
|
|
250
|
-
// return postListIds.findIndex(
|
|
251
|
-
// (item) => item.indexOf(PostListRowListIds.START_OF_NEW_MESSAGES) === 0,
|
|
252
|
-
// );
|
|
253
|
-
// }
|
|
254
|
-
|
|
255
|
-
// handleWindowResize = () => {
|
|
256
|
-
// this.props.actions.checkAndSetMobileView();
|
|
257
|
-
// const isMobile = Utils.isMobile();
|
|
258
|
-
// if (isMobile !== this.state.isMobile) {
|
|
259
|
-
// const dynamicListStyle = this.state.dynamicListStyle;
|
|
260
|
-
// if (this.state.postMenuOpened) {
|
|
261
|
-
// if (!isMobile && dynamicListStyle.willChange === 'unset') {
|
|
262
|
-
// dynamicListStyle.willChange = 'transform';
|
|
263
|
-
// } else if (isMobile && dynamicListStyle.willChange === 'transform') {
|
|
264
|
-
// dynamicListStyle.willChange = 'unset';
|
|
265
|
-
// }
|
|
266
|
-
// }
|
|
267
|
-
|
|
268
|
-
// this.setState({
|
|
269
|
-
// isMobile,
|
|
270
|
-
// dynamicListStyle,
|
|
271
|
-
// });
|
|
272
|
-
// this.scrollStopAction = new DelayedAction(this.handleScrollStop);
|
|
273
|
-
// }
|
|
274
|
-
|
|
275
|
-
// this.showSearchHintThreshold = this.getShowSearchHintThreshold();
|
|
276
|
-
// }
|
|
277
|
-
|
|
278
|
-
// togglePostMenu = (opened) => {
|
|
279
|
-
// const dynamicListStyle = this.state.dynamicListStyle;
|
|
280
|
-
// if (this.state.isMobile) {
|
|
281
|
-
// dynamicListStyle.willChange = opened ? 'unset' : 'transform';
|
|
282
|
-
// }
|
|
283
|
-
|
|
284
|
-
// this.setState({
|
|
285
|
-
// postMenuOpened: opened,
|
|
286
|
-
// dynamicListStyle,
|
|
287
|
-
// });
|
|
288
|
-
// };
|
|
289
|
-
|
|
290
|
-
// renderRow = ({data, itemId, style}) => {
|
|
291
|
-
// const index = data.indexOf(itemId);
|
|
292
|
-
// let className = '';
|
|
293
|
-
// const basePaddingClass = 'post-row__padding';
|
|
294
|
-
// const previousItemId = (index !== -1 && index < data.length - 1) ? data[index + 1] : '';
|
|
295
|
-
// const nextItemId = (index > 0 && index < data.length) ? data[index - 1] : '';
|
|
296
|
-
|
|
297
|
-
// if (isDateLine(nextItemId) || isStartOfNewMessages(nextItemId)) {
|
|
298
|
-
// className += basePaddingClass + ' bottom';
|
|
299
|
-
// }
|
|
300
|
-
|
|
301
|
-
// if (isDateLine(previousItemId) || isStartOfNewMessages(previousItemId)) {
|
|
302
|
-
// if (className.includes(basePaddingClass)) {
|
|
303
|
-
// className += ' top';
|
|
304
|
-
// } else {
|
|
305
|
-
// className += basePaddingClass + ' top';
|
|
306
|
-
// }
|
|
307
|
-
// }
|
|
308
|
-
|
|
309
|
-
// // Since the first in the list is the latest message
|
|
310
|
-
// const isLastPost = itemId === this.state.postListIds[0];
|
|
311
|
-
|
|
312
|
-
// return (
|
|
313
|
-
// <div
|
|
314
|
-
// style={style}
|
|
315
|
-
// className={className}
|
|
316
|
-
// >
|
|
317
|
-
// <PostListRow
|
|
318
|
-
// listId={itemId}
|
|
319
|
-
// previousListId={getPreviousPostId(data, index)}
|
|
320
|
-
// shouldHighlight={itemId === this.props.focusedPostId}
|
|
321
|
-
// loadOlderPosts={this.props.actions.loadOlderPosts}
|
|
322
|
-
// loadNewerPosts={this.props.actions.loadNewerPosts}
|
|
323
|
-
// togglePostMenu={this.togglePostMenu}
|
|
324
|
-
// isLastPost={isLastPost}
|
|
325
|
-
// loadingNewerPosts={this.props.loadingNewerPosts}
|
|
326
|
-
// loadingOlderPosts={this.props.loadingOlderPosts}
|
|
327
|
-
// />
|
|
328
|
-
// </div>
|
|
329
|
-
// );
|
|
330
|
-
// };
|
|
331
|
-
|
|
332
|
-
// scrollToFailed = (index) => {
|
|
333
|
-
// if (index === 0) {
|
|
334
|
-
// this.props.actions.changeUnreadChunkTimeStamp('');
|
|
335
|
-
// } else {
|
|
336
|
-
// this.props.actions.changeUnreadChunkTimeStamp(this.props.lastViewedAt);
|
|
337
|
-
// }
|
|
338
|
-
// }
|
|
339
|
-
|
|
340
|
-
// onScroll = ({scrollDirection, scrollOffset, scrollUpdateWasRequested, clientHeight, scrollHeight}) => {
|
|
341
|
-
// if (scrollHeight <= 0) {
|
|
342
|
-
// return;
|
|
343
|
-
// }
|
|
344
|
-
|
|
345
|
-
// const didUserScrollBackwards = scrollDirection === 'backward' && !scrollUpdateWasRequested;
|
|
346
|
-
// const didUserScrollForwards = scrollDirection === 'forward' && !scrollUpdateWasRequested;
|
|
347
|
-
// const isOffsetWithInRange = scrollOffset < HEIGHT_TRIGGER_FOR_MORE_POSTS;
|
|
348
|
-
// const offsetFromBottom = (scrollHeight - clientHeight) - scrollOffset;
|
|
349
|
-
// const shouldLoadNewPosts = offsetFromBottom < HEIGHT_TRIGGER_FOR_MORE_POSTS;
|
|
350
|
-
|
|
351
|
-
// if (didUserScrollBackwards && isOffsetWithInRange && !this.props.atOldestPost) {
|
|
352
|
-
// this.props.actions.loadOlderPosts();
|
|
353
|
-
// } else if (didUserScrollForwards && shouldLoadNewPosts && !this.props.atLatestPost) {
|
|
354
|
-
// this.props.actions.loadNewerPosts();
|
|
355
|
-
// }
|
|
356
|
-
|
|
357
|
-
// if (this.state.isMobile) {
|
|
358
|
-
// if (!this.state.isScrolling) {
|
|
359
|
-
// this.setState({
|
|
360
|
-
// isScrolling: true,
|
|
361
|
-
// });
|
|
362
|
-
// }
|
|
363
|
-
|
|
364
|
-
// if (this.scrollStopAction) {
|
|
365
|
-
// this.scrollStopAction.fireAfter(Constants.SCROLL_DELAY);
|
|
366
|
-
// }
|
|
367
|
-
// }
|
|
368
|
-
|
|
369
|
-
// this.checkBottom(scrollOffset, scrollHeight, clientHeight);
|
|
370
|
-
|
|
371
|
-
// if (scrollUpdateWasRequested) { //if scroll change is programatically requested i.e by calling scrollTo
|
|
372
|
-
// //This is a private method on virtlist
|
|
373
|
-
// const postsRenderedRange = this.listRef.current._getRangeToRender(); //eslint-disable-line no-underscore-dangle
|
|
374
|
-
|
|
375
|
-
// // postsRenderedRange[3] is the visibleStopIndex which is post at the bottom of the screen
|
|
376
|
-
// if (postsRenderedRange[3] <= 1 && !this.props.atLatestPost) {
|
|
377
|
-
// this.props.actions.canLoadMorePosts(PostRequestTypes.AFTER_ID);
|
|
378
|
-
// }
|
|
379
|
-
|
|
380
|
-
// if (!this.state.atBottom && scrollHeight) {
|
|
381
|
-
// this.setState({
|
|
382
|
-
// initScrollOffsetFromBottom: offsetFromBottom,
|
|
383
|
-
// });
|
|
384
|
-
// }
|
|
385
|
-
// }
|
|
386
|
-
|
|
387
|
-
// if (this.state.isMobile && this.state.showSearchHint) {
|
|
388
|
-
// this.setState({
|
|
389
|
-
// showSearchHint: false,
|
|
390
|
-
// });
|
|
391
|
-
// }
|
|
392
|
-
|
|
393
|
-
// if (!this.state.isMobile && !this.state.isSearchHintDismissed) {
|
|
394
|
-
// this.setState({
|
|
395
|
-
// showSearchHint: offsetFromBottom > this.showSearchHintThreshold,
|
|
396
|
-
// });
|
|
397
|
-
// }
|
|
398
|
-
// }
|
|
399
|
-
|
|
400
|
-
// getShowSearchHintThreshold = () => {
|
|
401
|
-
// return window.screen.height * 3;
|
|
402
|
-
// }
|
|
403
|
-
|
|
404
|
-
// checkBottom = (scrollOffset, scrollHeight, clientHeight) => {
|
|
405
|
-
// this.updateAtBottom(this.isAtBottom(scrollOffset, scrollHeight, clientHeight));
|
|
406
|
-
// }
|
|
407
|
-
|
|
408
|
-
// isAtBottom = (scrollOffset, scrollHeight, clientHeight) => {
|
|
409
|
-
// // Calculate how far the post list is from being scrolled to the bottom
|
|
410
|
-
// const offsetFromBottom = scrollHeight - clientHeight - scrollOffset;
|
|
411
|
-
|
|
412
|
-
// return offsetFromBottom <= BUFFER_TO_BE_CONSIDERED_BOTTOM && scrollHeight > 0;
|
|
413
|
-
// }
|
|
414
|
-
|
|
415
|
-
// updateAtBottom = (atBottom) => {
|
|
416
|
-
// if (atBottom !== this.state.atBottom) {
|
|
417
|
-
// // Update lastViewedBottom when the list reaches or leaves the bottom
|
|
418
|
-
// let lastViewedBottom = Date.now();
|
|
419
|
-
// if (this.props.latestPostTimeStamp > lastViewedBottom) {
|
|
420
|
-
// lastViewedBottom = this.props.latestPostTimeStamp;
|
|
421
|
-
// }
|
|
422
|
-
|
|
423
|
-
// // if we hit the bottom, we haven't just landed on the unread channel
|
|
424
|
-
// this.setState({
|
|
425
|
-
// atBottom,
|
|
426
|
-
// lastViewedBottom,
|
|
427
|
-
// });
|
|
428
|
-
// }
|
|
429
|
-
// }
|
|
430
|
-
|
|
431
|
-
// updateLastViewedBottomAt = (lastViewedBottom = Date.now()) => {
|
|
432
|
-
// this.setState({
|
|
433
|
-
// lastViewedBottom,
|
|
434
|
-
// });
|
|
435
|
-
// }
|
|
436
|
-
|
|
437
|
-
// handleScrollStop = () => {
|
|
438
|
-
// if (this.mounted) {
|
|
439
|
-
// this.setState({
|
|
440
|
-
// isScrolling: false,
|
|
441
|
-
// });
|
|
442
|
-
// }
|
|
443
|
-
// }
|
|
444
|
-
|
|
445
|
-
// handleSearchHintDismiss = () => {
|
|
446
|
-
// this.setState({
|
|
447
|
-
// showSearchHint: false,
|
|
448
|
-
// isSearchHintDismissed: true,
|
|
449
|
-
// });
|
|
450
|
-
// }
|
|
451
|
-
|
|
452
|
-
// updateFloatingTimestamp = (visibleTopItem) => {
|
|
453
|
-
// if (!this.state.isMobile) {
|
|
454
|
-
// return;
|
|
455
|
-
// }
|
|
456
|
-
|
|
457
|
-
// if (!this.props.postListIds) {
|
|
458
|
-
// return;
|
|
459
|
-
// }
|
|
460
|
-
|
|
461
|
-
// this.setState({
|
|
462
|
-
// topPostId: getLatestPostId(this.props.postListIds.slice(visibleTopItem)),
|
|
463
|
-
// });
|
|
464
|
-
// }
|
|
465
|
-
|
|
466
|
-
// onItemsRendered = ({visibleStartIndex}) => {
|
|
467
|
-
// this.updateFloatingTimestamp(visibleStartIndex);
|
|
468
|
-
// }
|
|
469
|
-
|
|
470
|
-
// initScrollToIndex = () => {
|
|
471
|
-
// if (this.props.focusedPostId) {
|
|
472
|
-
// const index = this.state.postListIds.findIndex(
|
|
473
|
-
// (item) => item === this.props.focusedPostId,
|
|
474
|
-
// );
|
|
475
|
-
// return {
|
|
476
|
-
// index,
|
|
477
|
-
// position: 'center',
|
|
478
|
-
// };
|
|
479
|
-
// }
|
|
480
|
-
|
|
481
|
-
// const newMessagesSeparatorIndex = getNewMessageIndex(this.state.postListIds);
|
|
482
|
-
|
|
483
|
-
// if (newMessagesSeparatorIndex > 0) {
|
|
484
|
-
// // if there is a dateLine above START_OF_NEW_MESSAGES then scroll to date line
|
|
485
|
-
// if (isDateLine(this.state.postListIds[newMessagesSeparatorIndex + 1])) {
|
|
486
|
-
// return {
|
|
487
|
-
// index: newMessagesSeparatorIndex + 1,
|
|
488
|
-
// position: 'start',
|
|
489
|
-
// offset: OFFSET_TO_SHOW_TOAST,
|
|
490
|
-
// };
|
|
491
|
-
// }
|
|
492
|
-
// return {
|
|
493
|
-
// index: newMessagesSeparatorIndex,
|
|
494
|
-
// position: 'start',
|
|
495
|
-
// offset: OFFSET_TO_SHOW_TOAST,
|
|
496
|
-
// };
|
|
497
|
-
// }
|
|
498
|
-
|
|
499
|
-
// return {
|
|
500
|
-
// index: 0,
|
|
501
|
-
// position: 'end',
|
|
502
|
-
// };
|
|
503
|
-
// }
|
|
504
|
-
|
|
505
|
-
// scrollToLatestMessages = () => {
|
|
506
|
-
// if (this.props.atLatestPost) {
|
|
507
|
-
// this.scrollToBottom();
|
|
508
|
-
// } else {
|
|
509
|
-
// this.updateNewMessagesAtInChannel();
|
|
510
|
-
// this.props.actions.changeUnreadChunkTimeStamp('');
|
|
511
|
-
// }
|
|
512
|
-
// }
|
|
513
|
-
|
|
514
|
-
// scrollToBottom = () => {
|
|
515
|
-
// this.listRef.current.scrollToItem(0, 'end');
|
|
516
|
-
// }
|
|
517
|
-
|
|
518
|
-
// scrollToNewMessage = () => {
|
|
519
|
-
// this.listRef.current.scrollToItem(getNewMessageIndex(this.state.postListIds), 'start', OFFSET_TO_SHOW_TOAST);
|
|
520
|
-
// }
|
|
521
|
-
|
|
522
|
-
// updateNewMessagesAtInChannel = (lastViewedAt = Date.now()) => {
|
|
523
|
-
// this.props.actions.updateNewMessagesAtInChannel(this.props.channelId, lastViewedAt);
|
|
524
|
-
// }
|
|
525
|
-
|
|
526
|
-
// renderToasts = (width) => {
|
|
527
|
-
// return (
|
|
528
|
-
// <ToastWrapper
|
|
529
|
-
// atLatestPost={this.props.atLatestPost}
|
|
530
|
-
// postListIds={this.state.postListIds}
|
|
531
|
-
// atBottom={this.state.atBottom}
|
|
532
|
-
// width={width}
|
|
533
|
-
// lastViewedBottom={this.state.lastViewedBottom}
|
|
534
|
-
// latestPostTimeStamp={this.props.latestPostTimeStamp}
|
|
535
|
-
// scrollToNewMessage={this.scrollToNewMessage}
|
|
536
|
-
// scrollToLatestMessages={this.scrollToLatestMessages}
|
|
537
|
-
// updateNewMessagesAtInChannel={this.updateNewMessagesAtInChannel}
|
|
538
|
-
// updateLastViewedBottomAt={this.updateLastViewedBottomAt}
|
|
539
|
-
// channelId={this.props.channelId}
|
|
540
|
-
// focusedPostId={this.props.focusedPostId}
|
|
541
|
-
// initScrollOffsetFromBottom={this.state.initScrollOffsetFromBottom}
|
|
542
|
-
// onSearchHintDismiss={this.handleSearchHintDismiss}
|
|
543
|
-
// showSearchHintToast={this.state.showSearchHint}
|
|
544
|
-
// />
|
|
545
|
-
// );
|
|
546
|
-
// }
|
|
547
|
-
|
|
548
|
-
// render() {
|
|
549
|
-
// const {channelId} = this.props;
|
|
550
|
-
// const {dynamicListStyle} = this.state;
|
|
551
|
-
|
|
552
|
-
// return (
|
|
553
|
-
// <div
|
|
554
|
-
// role='list'
|
|
555
|
-
// className='a11y__region'
|
|
556
|
-
// data-a11y-sort-order='1'
|
|
557
|
-
// data-a11y-focus-child={true}
|
|
558
|
-
// data-a11y-order-reversed={true}
|
|
559
|
-
// data-a11y-loop-navigation={false}
|
|
560
|
-
// aria-label={Utils.localizeMessage('accessibility.sections.centerContent', 'message list main region')}
|
|
561
|
-
// >
|
|
562
|
-
// {this.state.isMobile && (
|
|
563
|
-
// <React.Fragment>
|
|
564
|
-
// <FloatingTimestamp
|
|
565
|
-
// isScrolling={this.state.isScrolling}
|
|
566
|
-
// isMobile={true}
|
|
567
|
-
// postId={this.state.topPostId}
|
|
568
|
-
// />
|
|
569
|
-
// <ScrollToBottomArrows
|
|
570
|
-
// isScrolling={this.state.isScrolling}
|
|
571
|
-
// atBottom={this.state.atBottom}
|
|
572
|
-
// onClick={this.scrollToBottom}
|
|
573
|
-
// />
|
|
574
|
-
// </React.Fragment>
|
|
575
|
-
// )}
|
|
576
|
-
// <div
|
|
577
|
-
// role='presentation'
|
|
578
|
-
// className='post-list-holder-by-time'
|
|
579
|
-
// key={'postlist-' + channelId}
|
|
580
|
-
// >
|
|
581
|
-
// <div
|
|
582
|
-
// role='presentation'
|
|
583
|
-
// className='post-list__table'
|
|
584
|
-
// >
|
|
585
|
-
// <div
|
|
586
|
-
// id='postListContent'
|
|
587
|
-
// className='post-list__content'
|
|
588
|
-
// >
|
|
589
|
-
// <LatestPostReader postIds={this.props.postListIds}/>
|
|
590
|
-
// <AutoSizer>
|
|
591
|
-
// {({height, width}) => (
|
|
592
|
-
// <React.Fragment>
|
|
593
|
-
// <div>{this.renderToasts(width)}</div>
|
|
594
|
-
|
|
595
|
-
// <DynamicSizeList
|
|
596
|
-
// ref={this.listRef}
|
|
597
|
-
// height={height}
|
|
598
|
-
// width={width}
|
|
599
|
-
// className='post-list__dynamic'
|
|
600
|
-
// itemData={this.state.postListIds}
|
|
601
|
-
// overscanCountForward={OVERSCAN_COUNT_FORWARD}
|
|
602
|
-
// overscanCountBackward={OVERSCAN_COUNT_BACKWARD}
|
|
603
|
-
// onScroll={this.onScroll}
|
|
604
|
-
// initScrollToIndex={this.initScrollToIndex}
|
|
605
|
-
// canLoadMorePosts={this.props.actions.canLoadMorePosts}
|
|
606
|
-
// innerRef={this.postListRef}
|
|
607
|
-
// style={{...virtListStyles, ...dynamicListStyle}}
|
|
608
|
-
// innerListStyle={postListStyle}
|
|
609
|
-
// initRangeToRender={this.initRangeToRender}
|
|
610
|
-
// loaderId={PostListRowListIds.OLDER_MESSAGES_LOADER}
|
|
611
|
-
// correctScrollToBottom={this.props.atLatestPost}
|
|
612
|
-
// onItemsRendered={this.onItemsRendered}
|
|
613
|
-
// scrollToFailed={this.scrollToFailed}
|
|
614
|
-
// >
|
|
615
|
-
// {this.renderRow}
|
|
616
|
-
// </DynamicSizeList>
|
|
617
|
-
// </React.Fragment>
|
|
618
|
-
// )}
|
|
619
|
-
// </AutoSizer>
|
|
620
|
-
// </div>
|
|
621
|
-
// </div>
|
|
622
|
-
// </div>
|
|
623
|
-
// </div>
|
|
624
|
-
// );
|
|
625
|
-
// }
|
|
626
|
-
// }
|