@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,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type EmojiCategory = ('recent' | 'people' | 'nature' | 'foods' | 'activity' | 'places' | 'objects' | 'symbols' | 'flags' | 'custom');
|
|
2
|
+
export type CustomEmoji = {
|
|
3
3
|
id: string;
|
|
4
4
|
create_at: number;
|
|
5
5
|
update_at: number;
|
|
@@ -8,7 +8,7 @@ export declare type CustomEmoji = {
|
|
|
8
8
|
name: string;
|
|
9
9
|
category: 'custom';
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type SystemEmoji = {
|
|
12
12
|
name: string;
|
|
13
13
|
image: string;
|
|
14
14
|
short_name: string;
|
|
@@ -18,8 +18,8 @@ export declare type SystemEmoji = {
|
|
|
18
18
|
skins?: string[];
|
|
19
19
|
skin_variations?: unknown[];
|
|
20
20
|
};
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export type Emoji = SystemEmoji | CustomEmoji;
|
|
22
|
+
export type EmojisState = {
|
|
23
23
|
customEmoji: {
|
|
24
24
|
[x: string]: CustomEmoji;
|
|
25
25
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dictionary, $ID } from './utilities';
|
|
2
|
-
export
|
|
2
|
+
export type FileInfo = {
|
|
3
3
|
id: string;
|
|
4
4
|
user_id: string;
|
|
5
5
|
create_at: number;
|
|
@@ -15,20 +15,20 @@ export declare type FileInfo = {
|
|
|
15
15
|
clientId: string;
|
|
16
16
|
post_id?: string;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type FilesState = {
|
|
19
19
|
files: Dictionary<FileInfo>;
|
|
20
20
|
filesFromSearch: Dictionary<FileSearchResultItem>;
|
|
21
21
|
fileIdsByPostId: Dictionary<string[]>;
|
|
22
22
|
filePublicLink?: string;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type FileUploadResponse = {
|
|
25
25
|
file_infos: FileInfo[];
|
|
26
26
|
client_ids: string[];
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type FileSearchResultItem = FileInfo & {
|
|
29
29
|
channel_id: string;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export type FileSearchResults = {
|
|
32
32
|
order: Array<$ID<FileSearchResultItem>>;
|
|
33
33
|
file_infos: Map<string, FileSearchResultItem>;
|
|
34
34
|
next_file_info_id: string;
|
|
@@ -2,27 +2,27 @@ import { CustomEmoji } from './emojis';
|
|
|
2
2
|
import { FileInfo } from './files';
|
|
3
3
|
import { Reaction } from './reactions';
|
|
4
4
|
import { $ID, RelationOneToOne, RelationOneToMany, IDMappedObjects, Dictionary } from './utilities';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
5
|
+
export type PostType = 'system_add_remove' | 'system_add_to_channel' | 'system_add_to_team' | 'system_channel_deleted' | 'system_channel_restored' | 'system_displayname_change' | 'system_convert_channel' | 'system_ephemeral' | 'system_header_change' | 'system_join_channel' | 'system_join_leave' | 'system_leave_channel' | 'system_purpose_change' | 'system_remove_from_channel' | 'system_combined_user_activity';
|
|
6
|
+
export type PostEmbedType = 'image' | 'link' | 'message_attachment' | 'opengraph' | 'permalink';
|
|
7
|
+
export type PostEmbed = {
|
|
8
8
|
type: PostEmbedType;
|
|
9
9
|
url: string;
|
|
10
10
|
data?: OpenGraphMetadata | PostPreviewMetadata;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type PostImage = {
|
|
13
13
|
format: string;
|
|
14
14
|
frameCount: number;
|
|
15
15
|
height: number;
|
|
16
16
|
width: number;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type PostMetadata = {
|
|
19
19
|
embeds: PostEmbed[];
|
|
20
20
|
emojis: CustomEmoji[];
|
|
21
21
|
files: FileInfo[];
|
|
22
22
|
images: Dictionary<PostImage>;
|
|
23
23
|
reactions: Reaction[];
|
|
24
24
|
};
|
|
25
|
-
export
|
|
25
|
+
export type Post = {
|
|
26
26
|
id: string;
|
|
27
27
|
create_at: number;
|
|
28
28
|
update_at: number;
|
|
@@ -51,20 +51,20 @@ export declare type Post = {
|
|
|
51
51
|
is_following?: boolean;
|
|
52
52
|
exists?: boolean;
|
|
53
53
|
};
|
|
54
|
-
export
|
|
54
|
+
export type UserActivityPost = Post & {
|
|
55
55
|
system_post_ids: string[];
|
|
56
56
|
user_activity_posts: Post[];
|
|
57
57
|
};
|
|
58
|
-
export
|
|
58
|
+
export type PostList = {
|
|
59
59
|
order: Array<$ID<Post>>;
|
|
60
60
|
posts: Map<string, Post>;
|
|
61
61
|
next_post_id: string;
|
|
62
62
|
prev_post_id: string;
|
|
63
63
|
};
|
|
64
|
-
export
|
|
64
|
+
export type PostSearchResults = PostList & {
|
|
65
65
|
matches: RelationOneToOne<Post, string[]>;
|
|
66
66
|
};
|
|
67
|
-
export
|
|
67
|
+
export type PostWithFormatData = Post & {
|
|
68
68
|
isFirstReply: boolean;
|
|
69
69
|
isLastReply: boolean;
|
|
70
70
|
previousPostIsComment: boolean;
|
|
@@ -74,19 +74,19 @@ export declare type PostWithFormatData = Post & {
|
|
|
74
74
|
isCommentMention: boolean;
|
|
75
75
|
highlight: boolean;
|
|
76
76
|
};
|
|
77
|
-
export
|
|
77
|
+
export type PostOrderBlock = {
|
|
78
78
|
order: string[];
|
|
79
79
|
recent?: boolean;
|
|
80
80
|
oldest?: boolean;
|
|
81
81
|
};
|
|
82
|
-
export
|
|
82
|
+
export type MessageHistory = {
|
|
83
83
|
messages: string[];
|
|
84
84
|
index: {
|
|
85
85
|
post: number;
|
|
86
86
|
comment: number;
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
-
export
|
|
89
|
+
export type PostsState = {
|
|
90
90
|
posts: IDMappedObjects<Post>;
|
|
91
91
|
postsReplies: {
|
|
92
92
|
[x in $ID<Post>]: number;
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type $ID<E extends {
|
|
2
2
|
id: string;
|
|
3
3
|
}> = E['id'];
|
|
4
|
-
export
|
|
4
|
+
export type $UserID<E extends {
|
|
5
5
|
user_id: string;
|
|
6
6
|
}> = E['user_id'];
|
|
7
|
-
export
|
|
7
|
+
export type $Name<E extends {
|
|
8
8
|
name: string;
|
|
9
9
|
}> = E['name'];
|
|
10
|
-
export
|
|
10
|
+
export type $Username<E extends {
|
|
11
11
|
username: string;
|
|
12
12
|
}> = E['username'];
|
|
13
|
-
export
|
|
13
|
+
export type $Email<E extends {
|
|
14
14
|
email: string;
|
|
15
15
|
}> = E['email'];
|
|
16
|
-
export
|
|
16
|
+
export type RelationOneToOne<E extends {
|
|
17
17
|
id: string;
|
|
18
18
|
}, T> = {
|
|
19
19
|
[x in $ID<E>]: T;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type RelationOneToMany<E1 extends {
|
|
22
22
|
id: string;
|
|
23
23
|
}, E2 extends {
|
|
24
24
|
id: string;
|
|
25
25
|
}> = {
|
|
26
26
|
[x in $ID<E1>]: Array<$ID<E2>>;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type IDMappedObjects<E extends {
|
|
29
29
|
id: string;
|
|
30
30
|
}> = RelationOneToOne<E, E>;
|
|
31
|
-
export
|
|
31
|
+
export type UserIDMappedObjects<E extends {
|
|
32
32
|
user_id: string;
|
|
33
33
|
}> = {
|
|
34
34
|
[x in $UserID<E>]: E;
|
|
35
35
|
};
|
|
36
|
-
export
|
|
36
|
+
export type NameMappedObjects<E extends {
|
|
37
37
|
name: string;
|
|
38
38
|
}> = {
|
|
39
39
|
[x in $Name<E>]: E;
|
|
40
40
|
};
|
|
41
|
-
export
|
|
41
|
+
export type UsernameMappedObjects<E extends {
|
|
42
42
|
username: string;
|
|
43
43
|
}> = {
|
|
44
44
|
[x in $Username<E>]: E;
|
|
45
45
|
};
|
|
46
|
-
export
|
|
46
|
+
export type EmailMappedObjects<E extends {
|
|
47
47
|
email: string;
|
|
48
48
|
}> = {
|
|
49
49
|
[x in $Email<E>]: E;
|
|
50
50
|
};
|
|
51
|
-
export
|
|
51
|
+
export type Dictionary<T> = {
|
|
52
52
|
[key: string]: T;
|
|
53
53
|
};
|
package/lib/style.d.ts
CHANGED
|
@@ -1,37 +1 @@
|
|
|
1
|
-
export declare const styleSheet:
|
|
2
|
-
customStyle: () => {
|
|
3
|
-
'& .main_wraper': {
|
|
4
|
-
margin: string;
|
|
5
|
-
background: string;
|
|
6
|
-
minHeight: string;
|
|
7
|
-
marginBottom: string;
|
|
8
|
-
'& .ant-row': {
|
|
9
|
-
padding: string;
|
|
10
|
-
width: string;
|
|
11
|
-
flexWrap: string;
|
|
12
|
-
display: string;
|
|
13
|
-
margin: string;
|
|
14
|
-
'& .ant-col': {
|
|
15
|
-
padding: string;
|
|
16
|
-
'& .sd': {
|
|
17
|
-
padding: string;
|
|
18
|
-
};
|
|
19
|
-
'& .ant-comment-inner': {
|
|
20
|
-
display: string;
|
|
21
|
-
padding: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
'& .chat_raw': {};
|
|
26
|
-
};
|
|
27
|
-
'& .ant-page-header': {
|
|
28
|
-
display: string;
|
|
29
|
-
};
|
|
30
|
-
'& .ant-layout': {
|
|
31
|
-
background: string;
|
|
32
|
-
};
|
|
33
|
-
'& .ant-pro-setting-drawer-handle': {
|
|
34
|
-
top: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
1
|
+
export declare const styleSheet: any;
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
-
|
|
2
|
+
type Props = {
|
|
3
3
|
show?: boolean;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
declare const _default: React.MemoExoticComponent<({ show, children, ...attrs }: Props & Attrs) => JSX.Element>;
|
|
6
|
+
type Attrs = HTMLAttributes<HTMLElement>;
|
|
7
|
+
declare const _default: React.MemoExoticComponent<({ show, children, ...attrs }: Props & Attrs) => React.JSX.Element>;
|
|
8
8
|
export default _default;
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
export declare const styleSheet:
|
|
2
|
-
badgeStyle: () => {
|
|
3
|
-
display: string;
|
|
4
|
-
'& .Badge': {
|
|
5
|
-
display: string;
|
|
6
|
-
alignItems: string;
|
|
7
|
-
margin: string;
|
|
8
|
-
};
|
|
9
|
-
'& .Badge__box': {
|
|
10
|
-
padding: string;
|
|
11
|
-
border: string;
|
|
12
|
-
background: string;
|
|
13
|
-
borderRadius: string;
|
|
14
|
-
fontFamily: string;
|
|
15
|
-
fontSize: string;
|
|
16
|
-
fontWeight: string;
|
|
17
|
-
lineHeight: string;
|
|
18
|
-
};
|
|
19
|
-
'& .Badge__box.BotBadge, .Badge__box.GuestBadge': {
|
|
20
|
-
padding: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
1
|
+
export declare const styleSheet: any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export default function FlagIconFilled(props: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
2
|
+
export default function FlagIconFilled(props: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function MattermostLogo(props: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
2
|
+
export default function MattermostLogo(props: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function StatusAwayAvatarIcon(props: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
2
|
+
export default function StatusAwayAvatarIcon(props: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function StatusAwayIcon(props: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
2
|
+
export default function StatusAwayIcon(props: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export default function StatusDndAvatarIcon(props: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
2
|
+
export default function StatusDndAvatarIcon(props: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function StatusDndIcon(props: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
2
|
+
export default function StatusDndIcon(props: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export default function StatusDndAvatarIcon(props: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
2
|
+
export default function StatusDndAvatarIcon(props: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function StatusOfflineIcon(props: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
2
|
+
export default function StatusOfflineIcon(props: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export default function StatusOnlineAvatarIcon(props: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
2
|
+
export default function StatusOnlineAvatarIcon(props: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export default function StatusOnlineIcon(props: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
2
|
+
export default function StatusOnlineIcon(props: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { OverlayTrigger as OriginalOverlayTrigger } from 'react-bootstrap';
|
|
3
|
-
export
|
|
3
|
+
export type BaseOverlayTrigger = OriginalOverlayTrigger & {
|
|
4
4
|
hide: () => void;
|
|
5
5
|
};
|
|
6
|
-
declare const OverlayTrigger: React.ForwardRefExoticComponent<
|
|
6
|
+
declare const OverlayTrigger: React.ForwardRefExoticComponent<OriginalOverlayTrigger.OverlayTriggerProps & {
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
-
}
|
|
9
|
+
} & React.RefAttributes<OriginalOverlayTrigger>>;
|
|
10
10
|
export default OverlayTrigger;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode, ComponentProps, CSSProperties } from 'react';
|
|
1
|
+
import React, { ReactNode, ComponentProps, CSSProperties } from 'react';
|
|
2
2
|
import OverlayTrigger from '../../components/overlay_trigger';
|
|
3
|
-
|
|
3
|
+
type Props = {
|
|
4
4
|
id: string;
|
|
5
5
|
content: ReactNode;
|
|
6
6
|
children: ReactNode;
|
|
@@ -8,6 +8,6 @@ declare type Props = {
|
|
|
8
8
|
arrowOffsetTop?: number | string;
|
|
9
9
|
style?: CSSProperties;
|
|
10
10
|
};
|
|
11
|
-
declare const SimpleTooltip: ({ id, content, children, placement, className, delayShow, style, ...props }: Props & Omit<ComponentProps<typeof OverlayTrigger>, 'overlay'>) => JSX.Element;
|
|
11
|
+
declare const SimpleTooltip: ({ id, content, children, placement, className, delayShow, style, ...props }: Props & Omit<ComponentProps<typeof OverlayTrigger>, 'overlay'>) => React.JSX.Element;
|
|
12
12
|
export default SimpleTooltip;
|
|
13
13
|
export declare function useSynchronizedImmediate(): [Partial<ComponentProps<typeof SimpleTooltip>>, (isImmediate: boolean) => void];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export type TAvatarSizeToken = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
3
|
+
type Props = {
|
|
4
4
|
url?: string;
|
|
5
5
|
username?: string;
|
|
6
6
|
size?: TAvatarSizeToken;
|
|
7
7
|
text?: string;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
declare const _default: React.MemoExoticComponent<({ url, username, size, text, ...attrs }: Props & Attrs) => JSX.Element>;
|
|
9
|
+
type Attrs = HTMLAttributes<HTMLElement>;
|
|
10
|
+
declare const _default: React.MemoExoticComponent<({ url, username, size, text, ...attrs }: Props & Attrs) => React.JSX.Element>;
|
|
11
11
|
export default _default;
|
|
@@ -1,75 +1 @@
|
|
|
1
|
-
export declare const styleSheet:
|
|
2
|
-
avatarStyle: () => {
|
|
3
|
-
display: string;
|
|
4
|
-
'& .Avatar': {
|
|
5
|
-
'-webkit-user-select': string;
|
|
6
|
-
'-moz-user-select': string;
|
|
7
|
-
'-ms-user-select': string;
|
|
8
|
-
'user-select': string;
|
|
9
|
-
verticalAlign: string;
|
|
10
|
-
};
|
|
11
|
-
'& .Avatar, .Avatar:focus, .Avatar.a11y--focused': {
|
|
12
|
-
borderRadius: string;
|
|
13
|
-
};
|
|
14
|
-
'& .Avatar.Avatar-xxs': {
|
|
15
|
-
width: string;
|
|
16
|
-
minWidth: string;
|
|
17
|
-
height: string;
|
|
18
|
-
fontSize: string;
|
|
19
|
-
};
|
|
20
|
-
'& .Avatar.Avatar-xs': {
|
|
21
|
-
width: string;
|
|
22
|
-
minWidth: string;
|
|
23
|
-
height: string;
|
|
24
|
-
fontSize: string;
|
|
25
|
-
};
|
|
26
|
-
'& .Avatar.Avatar-sm': {
|
|
27
|
-
width: string;
|
|
28
|
-
minWidth: string;
|
|
29
|
-
height: string;
|
|
30
|
-
fontSize: string;
|
|
31
|
-
};
|
|
32
|
-
'& .Avatar.Avatar-md': {
|
|
33
|
-
width: string;
|
|
34
|
-
minWidth: string;
|
|
35
|
-
height: string;
|
|
36
|
-
fontSize: string;
|
|
37
|
-
};
|
|
38
|
-
'& .Avatar.Avatar-lg': {
|
|
39
|
-
width: string;
|
|
40
|
-
minWidth: string;
|
|
41
|
-
height: string;
|
|
42
|
-
fontSize: string;
|
|
43
|
-
};
|
|
44
|
-
'& .Avatar.Avatar-xl': {
|
|
45
|
-
width: string;
|
|
46
|
-
minWidth: string;
|
|
47
|
-
height: string;
|
|
48
|
-
fontSize: string;
|
|
49
|
-
};
|
|
50
|
-
'& .Avatar.Avatar-xxl': {
|
|
51
|
-
width: string;
|
|
52
|
-
minWidth: string;
|
|
53
|
-
height: string;
|
|
54
|
-
fontSize: string;
|
|
55
|
-
};
|
|
56
|
-
'& .Avatar.Avatar-plain': {
|
|
57
|
-
position: string;
|
|
58
|
-
display: string;
|
|
59
|
-
alignItems: string;
|
|
60
|
-
justifyContent: string;
|
|
61
|
-
background: string;
|
|
62
|
-
};
|
|
63
|
-
'& .Avatar.Avatar-plain::before': {
|
|
64
|
-
position: string;
|
|
65
|
-
display: string;
|
|
66
|
-
width: string;
|
|
67
|
-
height: string;
|
|
68
|
-
alignItems: string;
|
|
69
|
-
justifyContent: string;
|
|
70
|
-
borderRadius: string;
|
|
71
|
-
color: string;
|
|
72
|
-
content: string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
};
|
|
1
|
+
export declare const styleSheet: any;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { ComponentProps } from 'react';
|
|
2
2
|
import { $ID } from '../../../packages/types/utilities';
|
|
3
3
|
import Avatar from '../../../widgets/users/avatar';
|
|
4
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
userIds: Array<$ID<any>>;
|
|
6
6
|
totalUsers?: number;
|
|
7
7
|
breakAt?: number;
|
|
8
8
|
size?: ComponentProps<typeof Avatar>['size'];
|
|
9
9
|
fetchMissingUsers?: boolean;
|
|
10
10
|
};
|
|
11
|
-
declare function Avatars({ size, userIds, totalUsers, fetchMissingUsers }: Props): JSX.Element;
|
|
11
|
+
declare function Avatars({ size, userIds, totalUsers, fetchMissingUsers }: Props): React.JSX.Element;
|
|
12
12
|
declare const _default: React.MemoExoticComponent<typeof Avatars>;
|
|
13
13
|
export default _default;
|