@messenger-box/platform-browser 0.0.1-alpha.42 → 0.0.1-alpha.420
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/CHANGELOG.md +540 -27
- package/jest.config.js +23 -7
- package/lib/components/InboxMessage/InboxDetails/index.d.ts +2 -0
- package/lib/components/InboxMessage/InboxDetails/style.d.ts +1 -0
- package/lib/components/InboxMessage/InboxSidebar/index.d.ts +11 -0
- package/lib/components/InboxMessage/InboxSidebar/styles.d.ts +1 -0
- package/lib/components/InboxMessage/Messages/index.d.ts +2 -0
- package/lib/components/InboxMessage/Messages/styles.d.ts +80 -0
- package/lib/components/InboxMessage/MessagesList/index.d.ts +2 -0
- package/lib/components/InboxMessage/Popover/index.d.ts +2 -0
- package/lib/components/InboxMessage/Popover/style.d.ts +27 -0
- package/lib/components/InboxMessage/UserModalContent/index.d.ts +2 -0
- package/lib/components/InboxMessage/UserModalContent/style.d.ts +1 -0
- package/lib/components/InboxMessage/index.d.ts +2 -0
- package/lib/components/InboxMessage/mock.d.ts +19 -0
- package/lib/components/InboxMessage/style.d.ts +1 -0
- package/lib/components/channel_view/DirectChannelView.d.ts +3 -0
- package/lib/components/channel_view/PublicChannelView.d.ts +3 -0
- package/lib/components/dashboard/menu_header.d.ts +5 -0
- package/lib/components/dashboard/modals/direct_modal.d.ts +9 -0
- package/lib/components/dashboard/modals.d.ts +8 -0
- package/lib/components/messenger/index.d.ts +6 -1
- package/lib/components/messenger/messagesList/index.d.ts +6 -4
- package/lib/components/messenger/messagesList/style.d.ts +1 -221
- package/lib/components/messenger/more_action/index.d.ts +11 -0
- package/lib/components/messenger/more_action/style.d.ts +1 -0
- package/lib/components/overlay_trigger.d.ts +3 -3
- package/lib/components/post/channel_intro_message/channel_intro_message.d.ts +2 -1
- package/lib/components/post/channel_layout/channel_identifier_router/channel_identifier_router.d.ts +2 -1
- package/lib/components/post/channel_view/channel_view.d.ts +2 -1
- package/lib/components/post/create_post/create_post.d.ts +2 -1
- package/lib/components/post/failed_post_options/failed_post_options.d.ts +2 -1
- package/lib/components/post/index.d.ts +5 -1
- package/lib/components/post/markdown/markdown.d.ts +2 -1
- package/lib/components/post/post/post.d.ts +2 -1
- package/lib/components/post/post_aria_label_div.d.ts +3 -2
- package/lib/components/post/post_body/post_body.d.ts +2 -1
- package/lib/components/post/post_header/post_header.d.ts +2 -1
- package/lib/components/post/post_header/post_header_custom_status.d.ts +2 -1
- package/lib/components/post/post_header/style.d.ts +1 -40
- package/lib/components/post/post_info/post_info.d.ts +2 -1
- package/lib/components/post/post_list/index.d.ts +2 -1
- package/lib/components/post/post_list/post_list.d.ts +2 -1
- package/lib/components/post/post_list_row/post_list_row.d.ts +2 -1
- package/lib/components/post/post_list_virtualized/latest_post_reader.d.ts +2 -1
- package/lib/components/post/post_list_virtualized/post_list_virtualized.d.ts +2 -1
- package/lib/components/post/post_markdown/post_markdown.d.ts +2 -1
- package/lib/components/post/post_message_view/post_message_view.d.ts +2 -1
- package/lib/components/post/post_pre_header/post_pre_header.d.ts +3 -2
- package/lib/components/post/post_profile_picture/post_profile_picture.d.ts +2 -1
- package/lib/components/post/post_view.d.ts +2 -1
- package/lib/components/post/profile_picture/profile_picture.d.ts +2 -1
- package/lib/components/post/show_more/show_more.d.ts +2 -1
- package/lib/components/post/style.d.ts +1 -93
- package/lib/components/post/threading/channel_threads/thread_footer/thread_footer.d.ts +2 -1
- package/lib/components/post/threading/common/button/button.d.ts +3 -3
- package/lib/components/post/threading/common/follow_button/follow_button.d.ts +2 -2
- package/lib/components/post/tutorial/tutorial_tip/tutorial_tip.d.ts +3 -3
- package/lib/components/post/user_profile/user_profile.d.ts +1 -1
- package/lib/components/status_icon.d.ts +2 -1
- package/lib/components/status_icon_new.d.ts +2 -2
- package/lib/compute.d.ts +8 -2
- package/lib/containers/Inbox.d.ts +3 -0
- package/lib/containers/Messenger.d.ts +5 -1
- package/lib/index.js +3864 -581
- package/lib/index.js.map +1 -1
- package/lib/packages/types/emojis.d.ts +5 -5
- package/lib/packages/types/files.d.ts +5 -5
- package/lib/packages/types/posts.d.ts +13 -13
- package/lib/packages/types/reactions.d.ts +1 -1
- package/lib/packages/types/utilities.d.ts +13 -13
- package/lib/style.d.ts +1 -37
- package/lib/utils/index.d.ts +2 -0
- package/lib/widgets/badges/badge.d.ts +3 -3
- package/lib/widgets/badges/bot_badge.d.ts +1 -1
- package/lib/widgets/badges/guest_badge.d.ts +1 -1
- package/lib/widgets/badges/style.d.ts +1 -23
- package/lib/widgets/icons/emoji_icon.d.ts +1 -1
- package/lib/widgets/icons/flag_icon_filled.d.ts +1 -1
- package/lib/widgets/icons/mattermost_logo.d.ts +1 -1
- package/lib/widgets/icons/status_away_avatar_icon.d.ts +1 -1
- package/lib/widgets/icons/status_away_icon.d.ts +1 -1
- package/lib/widgets/icons/status_dnd_avatar_icon.d.ts +1 -1
- package/lib/widgets/icons/status_dnd_icon.d.ts +1 -1
- package/lib/widgets/icons/status_offline_avatar_icon.d.ts +1 -1
- package/lib/widgets/icons/status_offline_icon.d.ts +1 -1
- package/lib/widgets/icons/status_online_avatar_icon.d.ts +1 -1
- package/lib/widgets/icons/status_online_icon.d.ts +1 -1
- package/lib/widgets/overlay_trigger.d.ts +3 -3
- package/lib/widgets/shared_user_indicator.d.ts +1 -1
- package/lib/widgets/simple_tooltip/simple_tooltip.d.ts +3 -3
- package/lib/widgets/users/avatar/avatar.d.ts +4 -4
- package/lib/widgets/users/avatar/style.d.ts +1 -75
- package/lib/widgets/users/avatars/avatars.d.ts +2 -2
- package/package.json +61 -67
- package/src/components/InboxMessage/InboxDetails/index.tsx +23 -0
- package/src/components/InboxMessage/InboxDetails/style.ts +27 -0
- package/src/components/InboxMessage/InboxSidebar/index.tsx +86 -0
- package/src/components/InboxMessage/InboxSidebar/styles.ts +57 -0
- package/src/components/InboxMessage/Messages/index.tsx +159 -0
- package/src/components/InboxMessage/Messages/styles.ts +85 -0
- package/src/components/InboxMessage/MessagesList/index.tsx +93 -0
- package/src/components/InboxMessage/Popover/index.tsx +57 -0
- package/src/components/InboxMessage/Popover/style.ts +27 -0
- package/src/components/InboxMessage/UserModalContent/index.tsx +60 -0
- package/src/components/InboxMessage/UserModalContent/style.ts +98 -0
- package/src/components/InboxMessage/index.tsx +286 -0
- package/src/components/InboxMessage/mock.ts +53 -0
- package/src/components/InboxMessage/style.ts +189 -0
- package/src/components/channel_view/DirectChannelView.tsx +25 -0
- package/src/components/channel_view/PublicChannelView.tsx +24 -0
- package/src/components/dashboard/menu_header.tsx +49 -0
- package/src/components/dashboard/modals/direct_modal.tsx +46 -0
- package/src/components/dashboard/modals.tsx +93 -0
- package/src/components/messenger/avatar/index.tsx +2 -4
- package/src/components/messenger/avatar/style.ts +3 -3
- package/src/components/messenger/index.tsx +258 -94
- package/src/components/messenger/messagesList/index.tsx +673 -249
- package/src/components/messenger/messagesList/messageBox.tsx +2 -1
- package/src/components/messenger/messagesList/style.ts +240 -14
- package/src/components/messenger/more_action/index.tsx +68 -0
- package/src/components/messenger/more_action/style.ts +45 -0
- package/src/components/messenger/postMessage/postMessage.tsx +2 -3
- package/src/components/messenger/postMessage/style.ts +3 -3
- package/src/components/messenger/sidebarThreadList/index.tsx +11 -10
- package/src/components/messenger/style.ts +16 -16
- package/src/components/messenger/threadSidebar/index.tsx +5 -5
- package/src/components/messenger/threadSidebar/style.ts +7 -7
- package/src/components/messenger/types/message.ts +1 -0
- package/src/components/post/channel_intro_message/channel_intro_message.tsx +0 -1
- package/src/components/post/index.tsx +102 -25
- package/src/components/post/post/post.tsx +8 -1
- package/src/components/post/post_header/post_header_custom_status.tsx +1 -2
- package/src/components/post/post_header/style.ts +3 -6
- package/src/components/post/style.ts +22 -8
- package/src/components/post/tutorial/tutorial_tip/tutorial_tip.tsx +1 -0
- package/src/components/post/user_profile/user_profile.tsx +1 -0
- package/src/compute.tsx +58 -37
- package/src/containers/Dashboard.tsx +488 -1
- package/src/containers/Inbox.tsx +13 -0
- package/src/containers/Loading.tsx +1 -1
- package/src/containers/Messenger.tsx +9 -4
- package/src/module.ts +10 -7
- package/src/style.ts +382 -19
- package/src/utils/index.ts +22 -0
- package/src/widgets/badges/badge.tsx +1 -2
- package/src/widgets/badges/style.ts +3 -3
- package/src/widgets/icons/accordion_toggle_icon.tsx +1 -1
- package/src/widgets/icons/add_reaction_icon.tsx +1 -1
- package/src/widgets/icons/admin_eye_icon.tsx +1 -1
- package/src/widgets/icons/alert_icon.tsx +1 -1
- package/src/widgets/icons/archive_icon.tsx +1 -1
- package/src/widgets/icons/arrow_right_icon.tsx +1 -1
- package/src/widgets/icons/at_icon.tsx +1 -1
- package/src/widgets/icons/attachment_icon.tsx +1 -1
- package/src/widgets/icons/back_icon.tsx +1 -1
- package/src/widgets/icons/bot_icon.tsx +1 -1
- package/src/widgets/icons/camera_icon.tsx +1 -1
- package/src/widgets/icons/checkbox_checked_icon.tsx +1 -1
- package/src/widgets/icons/checkbox_partial_icon.tsx +1 -1
- package/src/widgets/icons/close_circle_icon.tsx +1 -1
- package/src/widgets/icons/close_circle_solid_icon.tsx +1 -1
- package/src/widgets/icons/close_icon.tsx +1 -1
- package/src/widgets/icons/dots_horizontal.tsx +1 -1
- package/src/widgets/icons/download_icon.tsx +1 -1
- package/src/widgets/icons/draft_icon.tsx +1 -1
- package/src/widgets/icons/ellipsis_h_icon.tsx +1 -1
- package/src/widgets/icons/email_icon.tsx +1 -1
- package/src/widgets/icons/fa_add_icon.tsx +1 -1
- package/src/widgets/icons/fa_back_icon.tsx +1 -1
- package/src/widgets/icons/fa_dropdown_icon.tsx +1 -1
- package/src/widgets/icons/fa_edit_icon.tsx +1 -1
- package/src/widgets/icons/fa_logout_icon.tsx +1 -1
- package/src/widgets/icons/fa_next_icon.tsx +1 -1
- package/src/widgets/icons/fa_previous_icon.tsx +1 -1
- package/src/widgets/icons/fa_reload_icon.tsx +1 -1
- package/src/widgets/icons/fa_remove_icon.tsx +1 -1
- package/src/widgets/icons/fa_search_icon.tsx +1 -1
- package/src/widgets/icons/fa_select_icon.tsx +1 -1
- package/src/widgets/icons/fa_success_icon.tsx +1 -1
- package/src/widgets/icons/fa_warning_icon.tsx +1 -1
- package/src/widgets/icons/flag_icon.tsx +1 -1
- package/src/widgets/icons/gfycat_icon.tsx +1 -1
- package/src/widgets/icons/gif_reactions_icon.tsx +1 -1
- package/src/widgets/icons/gif_search_clear_icon.tsx +1 -1
- package/src/widgets/icons/gif_search_icon.tsx +1 -1
- package/src/widgets/icons/gif_trending_icon.tsx +1 -1
- package/src/widgets/icons/globe_icon.tsx +1 -1
- package/src/widgets/icons/icons.stories.js +1 -1
- package/src/widgets/icons/info_icon.tsx +1 -1
- package/src/widgets/icons/info_small_icon.tsx +1 -1
- package/src/widgets/icons/invite_icon.tsx +1 -1
- package/src/widgets/icons/invite_members_icon.tsx +1 -1
- package/src/widgets/icons/link_icon.tsx +1 -1
- package/src/widgets/icons/lock_icon.tsx +1 -1
- package/src/widgets/icons/mail_icon.tsx +1 -1
- package/src/widgets/icons/mail_plus_icon.tsx +1 -1
- package/src/widgets/icons/member_icon.tsx +1 -1
- package/src/widgets/icons/mentions_icon.tsx +1 -1
- package/src/widgets/icons/menu_icon.tsx +1 -1
- package/src/widgets/icons/message_icon.tsx +1 -1
- package/src/widgets/icons/pin_icon.tsx +1 -1
- package/src/widgets/icons/plugin_channel_header_icon.tsx +1 -1
- package/src/widgets/icons/plugin_icon.tsx +1 -1
- package/src/widgets/icons/reply_icon.tsx +1 -1
- package/src/widgets/icons/scroll_to_bottom_icon.tsx +1 -1
- package/src/widgets/icons/search_icon.tsx +1 -1
- package/src/widgets/icons/shield_outline_icon.tsx +1 -1
- package/src/widgets/icons/unarchive_icon.tsx +1 -1
- package/src/widgets/icons/unread_below_icon.tsx +1 -1
- package/src/widgets/icons/user_guide_icon.tsx +1 -1
- package/src/widgets/shared_user_indicator.tsx +1 -0
- package/src/widgets/simple_tooltip/simple_tooltip.tsx +1 -0
- package/src/widgets/users/avatar/avatar.tsx +1 -2
- package/src/widgets/users/avatar/style.ts +3 -3
- package/src/widgets/users/avatars/avatars.tsx +1 -0
- package/tsconfig.json +2 -1
- package/webpack.config.js +1 -1
- package/lib/components/messenger/mock.d.ts +0 -50
- package/lib/components/messenger/postMessage/postMessage.d.ts +0 -1
- package/lib/components/messenger/postMessage/style.d.ts +0 -22
- package/lib/components/messenger/sidebarThreadList/index.d.ts +0 -7
- package/lib/components/messenger/threadSidebar/index.d.ts +0 -1
- package/lib/components/messenger/threadSidebar/style.d.ts +0 -62
- package/lib/components/messenger/types/message.d.ts +0 -14
- package/src/api.ts +0 -35
- package/src/components/Counter.tsx +0 -52
- package/src/containers/Clock.tsx +0 -0
- package/src/containers/Counter.tsx +0 -42
- package/src/containers/PersonList.tsx +0 -20
- package/src/containers/ServerCounter.tsx +0 -140
- package/src/graphql/index.ts +0 -3
- package/src/graphql/mutations/addCount.graphql +0 -5
- package/src/graphql/mutations/addPerson.graphql +0 -6
- package/src/graphql/mutations/index.ts +0 -2
- package/src/graphql/queries/count.graphql +0 -5
- package/src/graphql/queries/index.ts +0 -3
- package/src/graphql/queries/person.graphql +0 -22
- package/src/graphql/queries/persons.graphql +0 -6
- package/src/graphql/subscriptions/count.graphql +0 -5
- package/src/graphql/subscriptions/index.ts +0 -1
- package/src/redux/__mocks__/api.ts +0 -4
- package/src/redux/actions/__tests__/sampleActions.test.ts +0 -159
- package/src/redux/actions/index.ts +0 -1
- package/src/redux/actions/sampleActions.ts +0 -91
- package/src/redux/index.ts +0 -2
- package/src/redux/reducers/Store.ts +0 -10
- package/src/redux/reducers/__tests__/sampleReducers.test.ts +0 -39
- package/src/redux/reducers/index.ts +0 -7
- package/src/redux/reducers/sampleReducers.ts +0 -71
- /package/src/components/post/channel_layout/{channel_controller.test.jsx → channel_controller.test.tsx} +0 -0
- /package/src/components/post/channel_layout/{channel_controller.jsx → channel_controller.tsx} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function EllipsisHorizontalIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
|
|
6
6
|
export default class EmailIcon extends React.PureComponent<React.HTMLAttributes<HTMLSpanElement>> {
|
|
7
7
|
render() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
|
|
6
6
|
import LocalizedIcon from 'components/localized_icon';
|
|
7
7
|
import {t} from 'utils/i18n';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
|
|
6
6
|
import LocalizedIcon from 'components/localized_icon';
|
|
7
7
|
import {t} from 'utils/i18n';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
|
|
6
6
|
import LocalizedIcon from 'components/localized_icon';
|
|
7
7
|
import {t} from 'utils/i18n';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function FlagIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
|
|
6
6
|
export default class GfycatIcon extends React.PureComponent<React.HTMLAttributes<HTMLSpanElement>> {
|
|
7
7
|
render() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
|
|
6
6
|
export default class GifReactionsIcon extends React.PureComponent<React.HTMLAttributes<HTMLSpanElement>> {
|
|
7
7
|
render() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
|
|
6
6
|
export default class GifSearchClearIcon extends React.PureComponent<React.HTMLAttributes<HTMLSpanElement>> {
|
|
7
7
|
render() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
|
|
6
6
|
export default class GifSearchIcon extends React.PureComponent<React.HTMLAttributes<HTMLSpanElement>> {
|
|
7
7
|
render() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
|
|
6
6
|
export default class GifTrendingIcon extends React.PureComponent<React.HTMLAttributes<HTMLSpanElement>> {
|
|
7
7
|
render() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function GlobeIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
|
|
6
6
|
import {storiesOf} from '@storybook/react';
|
|
7
7
|
import {withKnobs} from '@storybook/addon-knobs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function InfoIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function InfoSmallIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function InviteIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function InviteMembersIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function LinkIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function LockIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function MailIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function MailPlusIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function MemberIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function MentionsIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function MenuIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function MessageIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function PinIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function PluginChannelHeaderIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function PluginIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function ReplyIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function ScrollToBottomIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function SearchIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
|
|
6
6
|
export default class ShieldOutlineIcon extends React.PureComponent<React.HTMLAttributes<HTMLSpanElement>> {
|
|
7
7
|
render() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function UnarchiveIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
export default function UnreadBelowIcon(props: React.HTMLAttributes<HTMLSpanElement>) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
2
2
|
// See LICENSE.txt for license information.
|
|
3
3
|
|
|
4
|
-
import React from 'react';
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import {useIntl} from 'react-intl';
|
|
6
6
|
|
|
7
7
|
type Props = React.HTMLAttributes<HTMLSpanElement>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import React, { memo, HTMLAttributes } from 'react';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { css } from '@emotion/css';
|
|
8
8
|
import { styleSheet } from './style';
|
|
9
9
|
|
|
10
10
|
export type TAvatarSizeToken = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
@@ -19,7 +19,6 @@ type Props = {
|
|
|
19
19
|
type Attrs = HTMLAttributes<HTMLElement>;
|
|
20
20
|
|
|
21
21
|
const Avatar = ({ url, username, size = 'md', text, ...attrs }: Props & Attrs) => {
|
|
22
|
-
const { css } = useFela();
|
|
23
22
|
const classes = classNames(`Avatar Avatar-${size}`, attrs.className);
|
|
24
23
|
|
|
25
24
|
if (text) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const styleSheet = {
|
|
2
2
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
3
|
-
avatarStyle:
|
|
3
|
+
avatarStyle: {
|
|
4
4
|
display: 'inharit',
|
|
5
5
|
'& .Avatar': {
|
|
6
6
|
'-webkit-user-select': 'none',
|
|
@@ -75,5 +75,5 @@ export const styleSheet = {
|
|
|
75
75
|
color: 'rgba(0, 1, 0, )',
|
|
76
76
|
content: 'attr(data-content)',
|
|
77
77
|
},
|
|
78
|
-
}
|
|
79
|
-
};
|
|
78
|
+
},
|
|
79
|
+
} as any;
|
package/tsconfig.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"allowSyntheticDefaultImports": true,
|
|
5
5
|
"experimentalDecorators": true,
|
|
6
6
|
"esModuleInterop": true,
|
|
7
|
+
"skipLibCheck": true,
|
|
7
8
|
"rootDir": "./src",
|
|
8
9
|
"outDir": "../lib",
|
|
9
10
|
"declarationDir": "lib"
|
|
@@ -14,4 +15,4 @@
|
|
|
14
15
|
"dist",
|
|
15
16
|
"webpack.config.js"
|
|
16
17
|
]
|
|
17
|
-
}
|
|
18
|
+
}
|
package/webpack.config.js
CHANGED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export declare const messagesData: ({
|
|
2
|
-
id: number;
|
|
3
|
-
loginUser: boolean;
|
|
4
|
-
message: string;
|
|
5
|
-
time: string;
|
|
6
|
-
timeIsToday: boolean;
|
|
7
|
-
isReply: boolean;
|
|
8
|
-
thread: {
|
|
9
|
-
threadId: number;
|
|
10
|
-
message: string;
|
|
11
|
-
time: string;
|
|
12
|
-
timeIsToday: boolean;
|
|
13
|
-
loginUser: boolean;
|
|
14
|
-
}[];
|
|
15
|
-
} | {
|
|
16
|
-
id: number;
|
|
17
|
-
loginUser: boolean;
|
|
18
|
-
message: string;
|
|
19
|
-
time: string;
|
|
20
|
-
timeIsToday: boolean;
|
|
21
|
-
isReply: boolean;
|
|
22
|
-
thread?: undefined;
|
|
23
|
-
})[];
|
|
24
|
-
export declare const userProfile: ({
|
|
25
|
-
displayName: string;
|
|
26
|
-
isBusy: boolean;
|
|
27
|
-
user: {
|
|
28
|
-
username: string;
|
|
29
|
-
};
|
|
30
|
-
isShared: boolean;
|
|
31
|
-
disablePopover: boolean;
|
|
32
|
-
url: string;
|
|
33
|
-
displayUsername: boolean;
|
|
34
|
-
hasMention: boolean;
|
|
35
|
-
message: any[];
|
|
36
|
-
hideStatus: boolean;
|
|
37
|
-
} | {
|
|
38
|
-
displayName: string;
|
|
39
|
-
isBusy: boolean;
|
|
40
|
-
user: {
|
|
41
|
-
username: string;
|
|
42
|
-
};
|
|
43
|
-
isShared: boolean;
|
|
44
|
-
disablePopover: boolean;
|
|
45
|
-
url: string;
|
|
46
|
-
displayUsername: boolean;
|
|
47
|
-
hasMention: boolean;
|
|
48
|
-
hideStatus: boolean;
|
|
49
|
-
message?: undefined;
|
|
50
|
-
})[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PostMessage: (props: any) => JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare const styleSheet: {
|
|
2
|
-
postmessageStyles: () => {
|
|
3
|
-
display: string;
|
|
4
|
-
position: string;
|
|
5
|
-
'& .message--box-outer': {
|
|
6
|
-
marginBottom: string;
|
|
7
|
-
width: string;
|
|
8
|
-
};
|
|
9
|
-
'& .icon': {
|
|
10
|
-
position: string;
|
|
11
|
-
top: string;
|
|
12
|
-
right: string;
|
|
13
|
-
cursor: string;
|
|
14
|
-
};
|
|
15
|
-
'& .icon .anticon': {
|
|
16
|
-
marginRight: string;
|
|
17
|
-
};
|
|
18
|
-
'& .icon .anticon svg path': {
|
|
19
|
-
fill: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ThreadSidebar: (props: any) => JSX.Element;
|