@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
package/src/utils/i18n.tsx
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
|
-
// See LICENSE.txt for license information.
|
|
3
|
-
|
|
4
|
-
export function getMonthLong(locale) {
|
|
5
|
-
if (locale === 'ko') {
|
|
6
|
-
// Long and short are equivalent in Korean except long has a bug on IE11/Windows 7
|
|
7
|
-
return 'short';
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
return 'long';
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function t(v) {
|
|
14
|
-
return v;
|
|
15
|
-
}
|
package/src/utils/index.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export const getFilteredMenus = (accountPageStore, selectedMenu) =>
|
|
2
|
-
accountPageStore
|
|
3
|
-
.map((item) => {
|
|
4
|
-
if (selectedMenu.indexOf(item.key) !== -1) {
|
|
5
|
-
const { path, component, ...rest } = item;
|
|
6
|
-
return {
|
|
7
|
-
[path]: { name: rest.tab, ...rest },
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
})
|
|
11
|
-
.filter((valid) => valid);
|
|
12
|
-
|
|
13
|
-
export const getFilteredRoutes = (accountPageStore, selectedRoutes) =>
|
|
14
|
-
accountPageStore
|
|
15
|
-
.map((item) => {
|
|
16
|
-
if (selectedRoutes.indexOf(item.key) !== -1) {
|
|
17
|
-
const { path } = item;
|
|
18
|
-
return {
|
|
19
|
-
[path]: item,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
return null;
|
|
23
|
-
})
|
|
24
|
-
.filter((valid) => valid);
|
|
25
|
-
|
|
26
|
-
export const getFilteredTabs = (accountPageStore, selectedTabs) =>
|
|
27
|
-
accountPageStore
|
|
28
|
-
.map((item) => {
|
|
29
|
-
if (selectedTabs.indexOf(item.key) !== -1) {
|
|
30
|
-
const { component, ...rest } = item;
|
|
31
|
-
return rest;
|
|
32
|
-
}
|
|
33
|
-
})
|
|
34
|
-
.filter((valid) => valid);
|
package/src/utils/post_list.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export const COMBINED_USER_ACTIVITY = 'user-activity-';
|
|
2
|
-
export const CREATE_COMMENT = 'create-comment';
|
|
3
|
-
export const DATE_LINE = 'date-';
|
|
4
|
-
export const START_OF_NEW_MESSAGES = 'start-of-new-messages';
|
|
5
|
-
export const MAX_COMBINED_SYSTEM_POSTS = 100;
|
|
6
|
-
|
|
7
|
-
export function isDateLine(item: string) {
|
|
8
|
-
return item.startsWith(DATE_LINE);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function getDateForDateLine(item: string) {
|
|
12
|
-
return parseInt(item.substring(DATE_LINE.length), 10);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function isStartOfNewMessages(item: string) {
|
|
16
|
-
return item === START_OF_NEW_MESSAGES;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function isCreateComment(item: string) {
|
|
20
|
-
return item === CREATE_COMMENT;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export function isCombinedUserActivityPost(item: string) {
|
|
24
|
-
return /^user-activity-(?:[^_]+_)*[^_]+$/.test(item);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export function getPostIdsForCombinedUserActivityPost(item: string) {
|
|
28
|
-
return item.substring(COMBINED_USER_ACTIVITY.length).split('_');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export function getFirstPostId(items: string[]) {
|
|
32
|
-
// eslint-disable-next-line no-plusplus
|
|
33
|
-
for (let i = 0; i < items.length; i++) {
|
|
34
|
-
const item = items[i];
|
|
35
|
-
|
|
36
|
-
if (isStartOfNewMessages(item) || isDateLine(item) || isCreateComment(item)) {
|
|
37
|
-
// This is not a post at all
|
|
38
|
-
// eslint-disable-next-line no-continue
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
if (isCombinedUserActivityPost(item)) {
|
|
43
|
-
// This is a combined post, so find the first post ID from it
|
|
44
|
-
const combinedIds = getPostIdsForCombinedUserActivityPost(item);
|
|
45
|
-
|
|
46
|
-
return combinedIds[0];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// This is a post ID
|
|
50
|
-
return item;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return '';
|
|
54
|
-
}
|
package/src/utils/post_utils.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Post } from '../packages/types/posts';
|
|
2
|
-
import { Constants } from '../packages/constants/constants';
|
|
3
|
-
|
|
4
|
-
export function isSystemMessage(post: Post): boolean {
|
|
5
|
-
return Boolean(post.type && post.type.lastIndexOf(Constants.SYSTEM_MESSAGE_PREFIX) === 0);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export function fromAutoResponder(post: Post): boolean {
|
|
9
|
-
return Boolean(post.type && post.type === Constants.AUTO_RESPONDER);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function isMeMessage(post: Post): boolean {
|
|
13
|
-
return null;
|
|
14
|
-
// return Boolean(post.type && post.type === Posts.POST_TYPES.ME);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function isFromWebhook(post: Post): boolean {
|
|
18
|
-
return post.props && post.props.from_webhook === 'true';
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function getImageSrc(src: string, hasImageProxy = false): string {
|
|
22
|
-
if (!src) {
|
|
23
|
-
return src;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// const imageAPI = Client4.getBaseRoute() + '/image?url=';
|
|
27
|
-
|
|
28
|
-
// if (hasImageProxy && !src.startsWith(imageAPI)) {
|
|
29
|
-
// return imageAPI + encodeURIComponent(src);
|
|
30
|
-
// }
|
|
31
|
-
|
|
32
|
-
return src;
|
|
33
|
-
}
|
package/src/utils/user_agent.tsx
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
// // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
|
-
// // See LICENSE.txt for license information.
|
|
3
|
-
|
|
4
|
-
// /*
|
|
5
|
-
// Example User Agents
|
|
6
|
-
// --------------------
|
|
7
|
-
|
|
8
|
-
// Chrome:
|
|
9
|
-
// Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
|
|
10
|
-
|
|
11
|
-
// Firefox:
|
|
12
|
-
// Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
|
|
13
|
-
|
|
14
|
-
// IE11:
|
|
15
|
-
// Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
|
|
16
|
-
|
|
17
|
-
// Edge:
|
|
18
|
-
// Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586
|
|
19
|
-
|
|
20
|
-
// Desktop App:
|
|
21
|
-
// Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Mattermost/1.2.1 Chrome/49.0.2623.75 Electron/0.37.8 Safari/537.36
|
|
22
|
-
// Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586
|
|
23
|
-
// Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Mattermost/3.4.1 Chrome/53.0.2785.113 Electron/1.4.2 Safari/537.36
|
|
24
|
-
// Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Mattermost/3.4.1 Chrome/51.0.2704.106 Electron/1.2.8 Safari/537.36
|
|
25
|
-
|
|
26
|
-
// Android Chrome:
|
|
27
|
-
// Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19
|
|
28
|
-
|
|
29
|
-
// Android Firefox:
|
|
30
|
-
// Mozilla/5.0 (Android; U; Android; pl; rv:1.9.2.8) Gecko/20100202 Firefox/3.5.8
|
|
31
|
-
// Mozilla/5.0 (Android 7.0; Mobile; rv:54.0) Gecko/54.0 Firefox/54.0
|
|
32
|
-
// Mozilla/5.0 (Android 7.0; Mobile; rv:57.0) Gecko/57.0 Firefox/57.0
|
|
33
|
-
|
|
34
|
-
// Android App:
|
|
35
|
-
// Mozilla/5.0 (Linux; U; Android 4.1.1; en-gb; Build/KLP) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30
|
|
36
|
-
// Mozilla/5.0 (Linux; Android 4.4; Nexus 5 Build/_BuildID_) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36
|
|
37
|
-
// Mozilla/5.0 (Linux; Android 5.1.1; Nexus 5 Build/LMY48B; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/43.0.2357.65 Mobile Safari/537.36
|
|
38
|
-
|
|
39
|
-
// iOS Safari:
|
|
40
|
-
// Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543 Safari/419.3
|
|
41
|
-
|
|
42
|
-
// iOS Android:
|
|
43
|
-
// Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1_1 like Mac OS X; en) AppleWebKit/534.46.0 (KHTML, like Gecko) CriOS/19.0.1084.60 Mobile/9B206 Safari/7534.48.3
|
|
44
|
-
|
|
45
|
-
// iOS App:
|
|
46
|
-
// Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_2 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13F69
|
|
47
|
-
// */
|
|
48
|
-
|
|
49
|
-
// const userAgent = () => window.navigator.userAgent;
|
|
50
|
-
|
|
51
|
-
// export function isChrome(): boolean {
|
|
52
|
-
// return userAgent().indexOf('Chrome') > -1 && userAgent().indexOf('Edge') === -1;
|
|
53
|
-
// }
|
|
54
|
-
|
|
55
|
-
// export function isSafari(): boolean {
|
|
56
|
-
// return userAgent().indexOf('Safari') !== -1 && userAgent().indexOf('Chrome') === -1;
|
|
57
|
-
// }
|
|
58
|
-
|
|
59
|
-
// export function isIosSafari(): boolean {
|
|
60
|
-
// return (userAgent().indexOf('iPhone') !== -1 || userAgent().indexOf('iPad') !== -1) && userAgent().indexOf('Safari') !== -1 && userAgent().indexOf('CriOS') === -1;
|
|
61
|
-
// }
|
|
62
|
-
|
|
63
|
-
// export function isIosChrome(): boolean {
|
|
64
|
-
// return userAgent().indexOf('CriOS') !== -1;
|
|
65
|
-
// }
|
|
66
|
-
|
|
67
|
-
// export function isIosWeb(): boolean {
|
|
68
|
-
// return isIosSafari() || isIosChrome();
|
|
69
|
-
// }
|
|
70
|
-
|
|
71
|
-
// export function isIos(): boolean {
|
|
72
|
-
// return userAgent().indexOf('iPhone') !== -1 || userAgent().indexOf('iPad') !== -1;
|
|
73
|
-
// }
|
|
74
|
-
|
|
75
|
-
// export function isAndroid(): boolean {
|
|
76
|
-
// return userAgent().indexOf('Android') !== -1;
|
|
77
|
-
// }
|
|
78
|
-
|
|
79
|
-
// export function isAndroidChrome(): boolean {
|
|
80
|
-
// return userAgent().indexOf('Android') !== -1 && userAgent().indexOf('Chrome') !== -1 && userAgent().indexOf('Version') === -1;
|
|
81
|
-
// }
|
|
82
|
-
|
|
83
|
-
// export function isAndroidFirefox(): boolean {
|
|
84
|
-
// return userAgent().indexOf('Android') !== -1 && userAgent().indexOf('Firefox') !== -1;
|
|
85
|
-
// }
|
|
86
|
-
|
|
87
|
-
// export function isAndroidWeb(): boolean {
|
|
88
|
-
// return isAndroidChrome() || isAndroidFirefox();
|
|
89
|
-
// }
|
|
90
|
-
|
|
91
|
-
// export function isIosClassic(): boolean {
|
|
92
|
-
// return isMobileApp() && isIos();
|
|
93
|
-
// }
|
|
94
|
-
|
|
95
|
-
// // Returns true if and only if the user is using a Mattermost mobile app. This will return false if the user is using the
|
|
96
|
-
// // web browser on a mobile device.
|
|
97
|
-
// export function isMobileApp(): boolean {
|
|
98
|
-
// return isMobile() && !isIosWeb() && !isAndroidWeb();
|
|
99
|
-
// }
|
|
100
|
-
|
|
101
|
-
// // Returns true if and only if the user is using Mattermost from either the mobile app or the web browser on a mobile device.
|
|
102
|
-
// export function isMobile(): boolean {
|
|
103
|
-
// return isIos() || isAndroid();
|
|
104
|
-
// }
|
|
105
|
-
|
|
106
|
-
// export function isFirefox(): boolean {
|
|
107
|
-
// return userAgent().indexOf('Firefox') !== -1;
|
|
108
|
-
// }
|
|
109
|
-
|
|
110
|
-
// export function isInternetExplorer(): boolean {
|
|
111
|
-
// return userAgent().indexOf('Trident') !== -1;
|
|
112
|
-
// }
|
|
113
|
-
|
|
114
|
-
// export function isEdge(): boolean {
|
|
115
|
-
// return userAgent().indexOf('Edge') !== -1;
|
|
116
|
-
// }
|
|
117
|
-
|
|
118
|
-
// export function isDesktopApp(): boolean {
|
|
119
|
-
// return userAgent().indexOf('Mattermost') !== -1 && userAgent().indexOf('Electron') !== -1;
|
|
120
|
-
// }
|
|
121
|
-
|
|
122
|
-
// export function isWindowsApp(): boolean {
|
|
123
|
-
// return isDesktopApp() && isWindows();
|
|
124
|
-
// }
|
|
125
|
-
|
|
126
|
-
// export function isMacApp(): boolean {
|
|
127
|
-
// return isDesktopApp() && isMac();
|
|
128
|
-
// }
|
|
129
|
-
|
|
130
|
-
// export function isWindows(): boolean {
|
|
131
|
-
// return userAgent().indexOf('Windows') !== -1;
|
|
132
|
-
// }
|
|
133
|
-
|
|
134
|
-
// export function isMac(): boolean {
|
|
135
|
-
// return userAgent().indexOf('Macintosh') !== -1;
|
|
136
|
-
// }
|
|
137
|
-
|
|
138
|
-
// export function isWindows7(): boolean {
|
|
139
|
-
// const appVersion = navigator.appVersion;
|
|
140
|
-
|
|
141
|
-
// if (!appVersion) {
|
|
142
|
-
// return false;
|
|
143
|
-
// }
|
|
144
|
-
|
|
145
|
-
// return (/\bWindows NT 6\.1\b/).test(appVersion);
|
|
146
|
-
// }
|
|
147
|
-
|
|
148
|
-
// export function getDesktopVersion(): string {
|
|
149
|
-
// // use if the value window.desktop.version is not set yet
|
|
150
|
-
// const regex = /Mattermost\/(\d+\.\d+\.\d+)/gm;
|
|
151
|
-
// const match = regex.exec(window.navigator.appVersion)?.[1] || '';
|
|
152
|
-
// return match;
|
|
153
|
-
// }
|
package/src/utils/utils.tsx
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FormattedMessage } from 'react-intl';
|
|
3
|
-
|
|
4
|
-
import cssVars from 'css-vars-ponyfill';
|
|
5
|
-
|
|
6
|
-
import { Constants } from '../packages/constants/constants';
|
|
7
|
-
import { Post } from '../packages/types/posts';
|
|
8
|
-
|
|
9
|
-
export function isPostEphemeral(post) {
|
|
10
|
-
return null;
|
|
11
|
-
// return post.type === Constants.PostTypes.EPHEMERAL || post.state === Posts.POST_DELETED;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export function isMobile() {
|
|
15
|
-
return window.innerWidth > 0 && window.innerWidth <= Constants.MOBILE_SCREEN_WIDTH;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function imageURLForUser(userId, lastPictureUpdate = 0) {
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export function isInRole(roles, inRole) {
|
|
23
|
-
if (roles) {
|
|
24
|
-
var parts = roles.split(' ');
|
|
25
|
-
for (var i = 0; i < parts.length; i++) {
|
|
26
|
-
if (parts[i] === inRole) {
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export function isGuest(user) {
|
|
36
|
-
if (user && user.roles && isInRole(user.roles, 'system_guest')) {
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function localizeMessage(id, defaultMessage) {
|
|
44
|
-
// const state = store.getState();
|
|
45
|
-
|
|
46
|
-
// const locale = getCurrentLocale(state);
|
|
47
|
-
// const translations = getTranslations(state, locale);
|
|
48
|
-
|
|
49
|
-
// if (!translations || !(id in translations)) {
|
|
50
|
-
// return defaultMessage || id;
|
|
51
|
-
// }
|
|
52
|
-
|
|
53
|
-
return true
|
|
54
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.Badge {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
margin: 0 0 0 4px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.Badge__box {
|
|
8
|
-
padding: 1px 4px;
|
|
9
|
-
border: none;
|
|
10
|
-
background: rgba(var(--center-channel-color-rgb), 0.16);
|
|
11
|
-
border-radius: 2px;
|
|
12
|
-
font-family: inherit;
|
|
13
|
-
font-size: 10px;
|
|
14
|
-
font-weight: 600;
|
|
15
|
-
line-height: 14px;
|
|
16
|
-
|
|
17
|
-
&.BotBadge,
|
|
18
|
-
&.GuestBadge {
|
|
19
|
-
padding: 2px 4px;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React, { memo, ReactNode, HTMLAttributes } from 'react';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import { css } from '@emotion/css';
|
|
4
|
-
|
|
5
|
-
import { styleSheet } from './style';
|
|
6
|
-
|
|
7
|
-
type Props = {
|
|
8
|
-
show?: boolean;
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
type Attrs = HTMLAttributes<HTMLElement>;
|
|
13
|
-
|
|
14
|
-
const Badge = ({ show = true, children, ...attrs }: Props & Attrs) => {
|
|
15
|
-
if (!show) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
const ButtonOrDiv: keyof JSX.IntrinsicElements = attrs.onClick ? 'button' : 'div';
|
|
19
|
-
return (
|
|
20
|
-
<div className={css(styleSheet.badgeStyle)}>
|
|
21
|
-
<div className="Badge">
|
|
22
|
-
<ButtonOrDiv {...attrs} className={classNames('Badge__box', attrs.className)}>
|
|
23
|
-
{children}
|
|
24
|
-
</ButtonOrDiv>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export default memo(Badge);
|
|
@@ -1,31 +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 Badge from './badge';
|
|
8
|
-
|
|
9
|
-
type Props = {
|
|
10
|
-
className?: string;
|
|
11
|
-
show?: boolean;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const BotBadge: React.FC<Props> = (props: Props) => (
|
|
15
|
-
<Badge
|
|
16
|
-
className={'BotBadge ' + props.className}
|
|
17
|
-
show={props.show}
|
|
18
|
-
>
|
|
19
|
-
<FormattedMessage
|
|
20
|
-
id='post_info.bot'
|
|
21
|
-
defaultMessage='BOT'
|
|
22
|
-
/>
|
|
23
|
-
</Badge>
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
BotBadge.defaultProps = {
|
|
27
|
-
show: true,
|
|
28
|
-
className: '',
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export default BotBadge;
|
|
@@ -1,31 +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 Badge from './badge';
|
|
8
|
-
|
|
9
|
-
type Props = {
|
|
10
|
-
className?: string;
|
|
11
|
-
show?: boolean;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const GuestBadge: React.FC<Props> = (props: Props) => (
|
|
15
|
-
<Badge
|
|
16
|
-
className={'GuestBadge ' + props.className}
|
|
17
|
-
show={props.show}
|
|
18
|
-
>
|
|
19
|
-
<FormattedMessage
|
|
20
|
-
id='post_info.guest'
|
|
21
|
-
defaultMessage='GUEST'
|
|
22
|
-
/>
|
|
23
|
-
</Badge>
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
GuestBadge.defaultProps = {
|
|
27
|
-
show: true,
|
|
28
|
-
className: '',
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export default GuestBadge;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export const styleSheet = {
|
|
2
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
3
|
-
badgeStyle: {
|
|
4
|
-
display: 'inharit',
|
|
5
|
-
'& .Badge': {
|
|
6
|
-
display: 'inline-flex',
|
|
7
|
-
alignItems: 'center',
|
|
8
|
-
margin: '0 0 0 4px',
|
|
9
|
-
},
|
|
10
|
-
'& .Badge__box': {
|
|
11
|
-
padding: '1px 4px',
|
|
12
|
-
border: 'none',
|
|
13
|
-
background: 'rgba(0, 0, 0, )',
|
|
14
|
-
borderRadius: '2px',
|
|
15
|
-
fontFamily: 'inherit',
|
|
16
|
-
fontSize: '10px',
|
|
17
|
-
fontWeight: '600',
|
|
18
|
-
lineHeight: '14px',
|
|
19
|
-
},
|
|
20
|
-
'& .Badge__box.BotBadge, .Badge__box.GuestBadge': {
|
|
21
|
-
padding: '2px 4px',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
} as any;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
|
-
// See LICENSE.txt for license information.
|
|
3
|
-
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
|
|
6
|
-
export default class AccordionToggleIcon extends React.PureComponent<React.HTMLAttributes<HTMLSpanElement>> {
|
|
7
|
-
render(): JSX.Element {
|
|
8
|
-
return (
|
|
9
|
-
<span {...this.props}>
|
|
10
|
-
<svg
|
|
11
|
-
width='30px'
|
|
12
|
-
height='30px'
|
|
13
|
-
viewBox='0 0 30 30'
|
|
14
|
-
>
|
|
15
|
-
<g
|
|
16
|
-
id='Developer-Export'
|
|
17
|
-
stroke='none'
|
|
18
|
-
strokeWidth='1'
|
|
19
|
-
fill='none'
|
|
20
|
-
fillRule='evenodd'
|
|
21
|
-
>
|
|
22
|
-
<g
|
|
23
|
-
transform='translate(-995.000000, -1372.000000)'
|
|
24
|
-
id='All-Team-Members'
|
|
25
|
-
>
|
|
26
|
-
<g transform='translate(245.000000, 698.000000)'>
|
|
27
|
-
<g
|
|
28
|
-
id='Team-Administrators'
|
|
29
|
-
transform='translate(0.000000, 651.000000)'
|
|
30
|
-
>
|
|
31
|
-
<g id='accordion-header'>
|
|
32
|
-
<g
|
|
33
|
-
id='accordion---expanded'
|
|
34
|
-
transform='translate(750.000000, 23.000000)'
|
|
35
|
-
>
|
|
36
|
-
<path
|
|
37
|
-
d='M23.1484532,13.3124932 C23.3437659,13.1171805 23.3437659,12.7968676 23.1484532,12.6015549 L21.8515766,11.3124908 C21.6562639,11.1171781 21.3437635,11.1171781 21.1484508,11.3124908 L15.0000083,17.4609333 L8.8515659,11.3124908 C8.65625317,11.1171781 8.34375279,11.1171781 8.14844006,11.3124908 L6.85156352,12.6015549 C6.65625078,12.7968676 6.65625078,13.1171805 6.85156352,13.3124932 L14.6484454,21.1015626 C14.8437582,21.2968754 15.1562585,21.2968754 15.3515713,21.1015626 L23.1484532,13.3124932 Z'
|
|
38
|
-
id=''
|
|
39
|
-
fill='#979797'
|
|
40
|
-
/>
|
|
41
|
-
<circle
|
|
42
|
-
id='Oval-2'
|
|
43
|
-
stroke='#989898'
|
|
44
|
-
strokeWidth='2'
|
|
45
|
-
cx='15'
|
|
46
|
-
cy='15'
|
|
47
|
-
r='14'
|
|
48
|
-
/>
|
|
49
|
-
</g>
|
|
50
|
-
</g>
|
|
51
|
-
</g>
|
|
52
|
-
</g>
|
|
53
|
-
</g>
|
|
54
|
-
</g>
|
|
55
|
-
</svg>
|
|
56
|
-
</span>
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,23 +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 {useIntl} from 'react-intl';
|
|
6
|
-
|
|
7
|
-
export default function AddReactionIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
8
|
-
const {formatMessage} = useIntl();
|
|
9
|
-
return (
|
|
10
|
-
<span {...props}>
|
|
11
|
-
<svg
|
|
12
|
-
width='16px'
|
|
13
|
-
height='16px'
|
|
14
|
-
viewBox='0 0 16 16'
|
|
15
|
-
role='img'
|
|
16
|
-
aria-label={formatMessage({id: 'generic_icons.add-reaction', defaultMessage: 'Add Reaction Icon'})}
|
|
17
|
-
>
|
|
18
|
-
<path d='M10 8.00001C10.32 8.00001 10.5973 7.88267 10.832 7.64801C11.0773 7.40267 11.2 7.12001 11.2 6.80001C11.2 6.48001 11.0773 6.20267 10.832 5.96801C10.5973 5.72267 10.32 5.60001 10 5.60001C9.68 5.60001 9.39733 5.72267 9.152 5.96801C8.91733 6.20267 8.8 6.48001 8.8 6.80001C8.8 7.12001 8.91733 7.40267 9.152 7.64801C9.39733 7.88267 9.68 8.00001 10 8.00001ZM5.2 8.00001C5.52 8.00001 5.79733 7.88267 6.032 7.64801C6.27733 7.40267 6.4 7.12001 6.4 6.80001C6.4 6.48001 6.27733 6.20267 6.032 5.96801C5.79733 5.72267 5.52 5.60001 5.2 5.60001C4.88 5.60001 4.59733 5.72267 4.352 5.96801C4.11733 6.20267 4 6.48001 4 6.80001C4 7.12001 4.11733 7.40267 4.352 7.64801C4.59733 7.88267 4.88 8.00001 5.2 8.00001ZM13.584 7.93601C13.584 7.97867 13.584 8.05334 13.584 8.16001L13.6 8.40001C13.6 9.48801 13.328 10.496 12.784 11.424C12.2507 12.3307 11.5307 13.0507 10.624 13.584C9.696 14.128 8.688 14.4 7.6 14.4C6.512 14.4 5.504 14.128 4.576 13.584C3.66933 13.0507 2.94933 12.3307 2.416 11.424C1.872 10.496 1.6 9.48801 1.6 8.40001C1.6 7.31201 1.872 6.30401 2.416 5.37601C2.94933 4.46934 3.66933 3.74934 4.576 3.21601C5.504 2.67201 6.512 2.40001 7.6 2.40001L8.064 2.41601C8.17067 1.84001 8.352 1.32801 8.608 0.880006C8.23467 0.826673 7.89867 0.800006 7.6 0.800006C6.224 0.800006 4.944 1.14667 3.76 1.84001C2.61867 2.51201 1.712 3.41867 1.04 4.56001C0.346667 5.74401 0 7.02401 0 8.40001C0 9.77601 0.346667 11.056 1.04 12.24C1.712 13.3813 2.61867 14.288 3.76 14.96C4.944 15.6533 6.224 16 7.6 16C8.976 16 10.256 15.6533 11.44 14.96C12.5813 14.288 13.488 13.3813 14.16 12.24C14.8533 11.056 15.2 9.77601 15.2 8.40001C15.2 8.10134 15.1733 7.76534 15.12 7.39201C14.672 7.64801 14.16 7.82934 13.584 7.93601ZM12 5.72205e-06H13.6V2.40001H16V4.00001H13.6V6.40001H12V4.00001H9.6V2.40001H12V5.72205e-06ZM3.504 10C3.83467 10.832 4.36267 11.504 5.088 12.016C5.84533 12.5387 6.68267 12.8 7.6 12.8C8.51733 12.8 9.35467 12.5387 10.112 12.016C10.8373 11.504 11.3653 10.832 11.696 10H3.504Z'/>
|
|
19
|
-
</svg>
|
|
20
|
-
</span>
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
|
|
@@ -1,30 +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 {useIntl} from 'react-intl';
|
|
6
|
-
|
|
7
|
-
type Props = React.HTMLAttributes<HTMLSpanElement>;
|
|
8
|
-
|
|
9
|
-
export default function AdminEyeIcon(props: Props): JSX.Element {
|
|
10
|
-
const {formatMessage} = useIntl();
|
|
11
|
-
|
|
12
|
-
return (
|
|
13
|
-
<span {...props}>
|
|
14
|
-
<svg
|
|
15
|
-
width='14'
|
|
16
|
-
height='10'
|
|
17
|
-
viewBox='0 0 14 10'
|
|
18
|
-
fill='none'
|
|
19
|
-
role='img'
|
|
20
|
-
aria-label={formatMessage({id: 'generic_icons.adminOnlyIcon', defaultMessage: 'Admin View Only Icon'})}
|
|
21
|
-
>
|
|
22
|
-
<path
|
|
23
|
-
d='M7 3.21005C7.3264 3.21005 7.624 3.29165 7.8928 3.45485C8.1712 3.61805 8.392 3.83885 8.5552 4.11725C8.7184 4.38605 8.8 4.68365 8.8 5.01005C8.8 5.33645 8.7184 5.63885 8.5552 5.91725C8.392 6.18605 8.1712 6.40205 7.8928 6.56525C7.624 6.72845 7.3264 6.81005 7 6.81005C6.6736 6.81005 6.3712 6.72845 6.0928 6.56525C5.824 6.40205 5.608 6.18605 5.4448 5.91725C5.2816 5.63885 5.2 5.33645 5.2 5.01005C5.2 4.68365 5.2816 4.38605 5.4448 4.11725C5.608 3.83885 5.824 3.61805 6.0928 3.45485C6.3712 3.29165 6.6736 3.21005 7 3.21005ZM7 0.502848C7.9792 0.502848 8.9152 0.694848 9.808 1.07885C10.672 1.46285 11.4304 1.99565 12.0832 2.67725C12.7456 3.35885 13.2496 4.13645 13.5952 5.01005C13.2496 5.88365 12.7456 6.66125 12.0832 7.34285C11.4304 8.02445 10.672 8.55245 9.808 8.92685C8.9152 9.31085 7.9792 9.50285 7 9.50285C6.0208 9.50285 5.0848 9.31085 4.192 8.92685C3.328 8.55245 2.5648 8.02445 1.9024 7.34285C1.2496 6.66125 0.7504 5.88365 0.4048 5.01005C0.7504 4.13645 1.2496 3.35885 1.9024 2.67725C2.5648 1.99565 3.328 1.46285 4.192 1.07885C5.0848 0.694848 6.0208 0.502848 7 0.502848ZM1.7152 5.01005C2.0416 5.67245 2.4736 6.25325 3.0112 6.75245C3.5488 7.25165 4.1584 7.63565 4.84 7.90445C5.5312 8.17325 6.2512 8.30765 7 8.30765C8.1328 8.30765 9.1744 8.01005 10.1248 7.41485C11.0752 6.81965 11.8 6.01805 12.2992 5.01005C11.8 4.00205 11.0752 3.20045 10.1248 2.60525C9.1744 2.01005 8.1328 1.71245 7 1.71245C6.2512 1.71245 5.5312 1.84685 4.84 2.11565C4.1584 2.38445 3.5488 2.76845 3.0112 3.26765C2.4736 3.76685 2.0416 4.34765 1.7152 5.01005Z'
|
|
24
|
-
fill='rgba(var(--center-channel-color-rgb), 0.72)'
|
|
25
|
-
fillOpacity='0.48'
|
|
26
|
-
/>
|
|
27
|
-
</svg>
|
|
28
|
-
</span>
|
|
29
|
-
);
|
|
30
|
-
}
|
|
@@ -1,22 +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 {useIntl} from 'react-intl';
|
|
6
|
-
|
|
7
|
-
export default function AlertIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
8
|
-
const {formatMessage} = useIntl();
|
|
9
|
-
return (
|
|
10
|
-
<span {...props}>
|
|
11
|
-
<svg
|
|
12
|
-
width='24px'
|
|
13
|
-
height='24px'
|
|
14
|
-
viewBox='0 0 24 24'
|
|
15
|
-
role='img'
|
|
16
|
-
aria-label={formatMessage({id: 'generic_icons.alert', defaultMessage: 'Alert Icon'})}
|
|
17
|
-
>
|
|
18
|
-
<path d='M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z'/>
|
|
19
|
-
</svg>
|
|
20
|
-
</span>
|
|
21
|
-
);
|
|
22
|
-
}
|
|
@@ -1,23 +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 {useIntl} from 'react-intl';
|
|
6
|
-
|
|
7
|
-
export default function ArchiveIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
8
|
-
const {formatMessage} = useIntl();
|
|
9
|
-
return (
|
|
10
|
-
<span {...props}>
|
|
11
|
-
<svg
|
|
12
|
-
width='16px'
|
|
13
|
-
height='16px'
|
|
14
|
-
viewBox='0 0 16 16'
|
|
15
|
-
role='img'
|
|
16
|
-
aria-label={formatMessage({id: 'generic_icons.archive', defaultMessage: 'Archive Icon'})}
|
|
17
|
-
>
|
|
18
|
-
<path d='M13.994 14.75H2.006V6.50599H3.5V13.256H12.5V6.50599H13.994V14.75ZM1.25 1.24999H14.75V5.74999H1.25V1.24999ZM6.128 7.24399H9.872C9.98 7.24399 10.07 7.27999 10.142 7.35199C10.214 7.42399 10.25 7.51399 10.25 7.62199V8.75599H5.75V7.62199C5.75 7.51399 5.786 7.42399 5.858 7.35199C5.93 7.27999 6.02 7.24399 6.128 7.24399ZM2.744 2.74399V4.25599H13.256V2.74399H2.744Z'/>
|
|
19
|
-
</svg>
|
|
20
|
-
</span>
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
|