@messenger-box/platform-browser 0.0.1-alpha.393 → 0.0.1-alpha.398
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 +4 -0
- package/lib/components/InboxMessage/InboxDetails/index.d.ts +2 -2
- package/lib/components/InboxMessage/InboxSidebar/index.d.ts +3 -3
- package/lib/components/InboxMessage/Messages/index.d.ts +2 -2
- package/lib/components/InboxMessage/MessagesList/index.d.ts +2 -2
- package/lib/components/InboxMessage/Popover/index.d.ts +2 -2
- package/lib/components/InboxMessage/UserModalContent/index.d.ts +2 -2
- package/lib/components/InboxMessage/index.d.ts +2 -2
- package/lib/components/channel_view/DirectChannelView.d.ts +2 -1
- package/lib/components/channel_view/PublicChannelView.d.ts +2 -1
- package/lib/components/dashboard/menu_header.d.ts +2 -1
- package/lib/components/dashboard/modals/direct_modal.d.ts +2 -1
- package/lib/components/dashboard/modals.d.ts +2 -1
- package/lib/components/messenger/more_action/index.d.ts +3 -2
- package/lib/components/overlay_trigger.d.ts +1 -1
- package/lib/components/post/channel_intro_message/channel_intro_message.d.ts +2 -2
- package/lib/components/post/channel_layout/channel_identifier_router/channel_identifier_router.d.ts +2 -2
- package/lib/components/post/channel_view/channel_view.d.ts +2 -2
- package/lib/components/post/create_post/create_post.d.ts +2 -2
- package/lib/components/post/failed_post_options/failed_post_options.d.ts +2 -2
- package/lib/components/post/index.d.ts +2 -1
- package/lib/components/post/markdown/markdown.d.ts +2 -2
- package/lib/components/post/post/post.d.ts +2 -2
- package/lib/components/post/post_aria_label_div.d.ts +1 -1
- package/lib/components/post/post_body/post_body.d.ts +2 -2
- package/lib/components/post/post_header/post_header.d.ts +2 -2
- package/lib/components/post/post_header/post_header_custom_status.d.ts +2 -2
- package/lib/components/post/post_info/post_info.d.ts +2 -2
- package/lib/components/post/post_list/index.d.ts +2 -2
- package/lib/components/post/post_list/post_list.d.ts +2 -2
- package/lib/components/post/post_list_row/post_list_row.d.ts +2 -2
- package/lib/components/post/post_list_virtualized/latest_post_reader.d.ts +2 -2
- package/lib/components/post/post_list_virtualized/post_list_virtualized.d.ts +2 -2
- package/lib/components/post/post_markdown/post_markdown.d.ts +2 -2
- package/lib/components/post/post_message_view/post_message_view.d.ts +2 -2
- package/lib/components/post/post_pre_header/post_pre_header.d.ts +3 -3
- package/lib/components/post/post_profile_picture/post_profile_picture.d.ts +2 -2
- package/lib/components/post/post_view.d.ts +2 -2
- package/lib/components/post/profile_picture/profile_picture.d.ts +2 -2
- package/lib/components/post/show_more/show_more.d.ts +2 -2
- package/lib/components/post/threading/channel_threads/thread_footer/thread_footer.d.ts +2 -2
- 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 -2
- package/lib/components/status_icon_new.d.ts +2 -2
- package/lib/compute.d.ts +1 -1
- package/lib/containers/Inbox.d.ts +2 -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/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/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 +1 -1
- 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/avatars/avatars.d.ts +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.0.1-alpha.398](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.397...v0.0.1-alpha.398) (2023-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @messenger-box/platform-browser
|
|
9
|
+
|
|
6
10
|
## [0.0.1-alpha.393](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.392...v0.0.1-alpha.393) (2023-09-25)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @messenger-box/platform-browser
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function InboxDetails({ handleToggle, toggleDrawer }: any): JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function InboxDetails({ handleToggle, toggleDrawer }: any): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type IPropsType = {
|
|
3
3
|
handleSelectMessgae?: any;
|
|
4
4
|
user?: [] | any;
|
|
5
5
|
messageList?: any;
|
|
@@ -7,5 +7,5 @@ declare type IPropsType = {
|
|
|
7
7
|
userId?: any;
|
|
8
8
|
users?: any;
|
|
9
9
|
};
|
|
10
|
-
export default function InboxSidebar({ handleSelectMessgae, user, messageList, userId, users }: IPropsType): JSX.Element;
|
|
10
|
+
export default function InboxSidebar({ handleSelectMessgae, user, messageList, userId, users }: IPropsType): React.JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function Messages({ id, user, userId, currentUser }: any): JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function Messages({ id, user, userId, currentUser }: any): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function MsgList({ messageList, currentUser }: any): JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function MsgList({ messageList, currentUser }: any): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function Popover({ toggleDrawer }: any): JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function Popover({ toggleDrawer }: any): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function UserModalContent({ username, imageUrl }: any): JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export default function UserModalContent({ username, imageUrl }: any): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function InboxMessage(): JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function InboxMessage(): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
export declare const DirectModal: ({ showDirectChl, handleClose, selectedValues, handleSelect, options, handleGo }: {
|
|
2
3
|
showDirectChl: any;
|
|
3
4
|
handleClose: any;
|
|
@@ -5,4 +6,4 @@ export declare const DirectModal: ({ showDirectChl, handleClose, selectedValues,
|
|
|
5
6
|
handleSelect: any;
|
|
6
7
|
options: any;
|
|
7
8
|
handleGo: any;
|
|
8
|
-
}) => JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
export declare const Modals: ({ directMoreModal, publicChlModal, handleClose, handleChange, handleCreate }: {
|
|
2
3
|
directMoreModal: any;
|
|
3
4
|
publicChlModal: any;
|
|
4
5
|
handleClose: any;
|
|
5
6
|
handleChange: any;
|
|
6
7
|
handleCreate: any;
|
|
7
|
-
}) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type IProps = {
|
|
2
3
|
handleShowSideBar?: any;
|
|
3
4
|
handleDeleteMessage?: any;
|
|
4
5
|
handleEditMessage?: any;
|
|
@@ -6,5 +7,5 @@ declare type IProps = {
|
|
|
6
7
|
pinMessage: any;
|
|
7
8
|
handlePinBtn?: any;
|
|
8
9
|
};
|
|
9
|
-
declare const MoreAction: ({ handleShowSideBar, handleDeleteMessage, handleEditMessage, id, handlePinBtn, pinMessage }: IProps) => JSX.Element;
|
|
10
|
+
declare const MoreAction: ({ handleShowSideBar, handleDeleteMessage, handleEditMessage, id, handlePinBtn, pinMessage }: IProps) => React.JSX.Element;
|
|
10
11
|
export default MoreAction;
|
|
@@ -1,6 +1,6 @@
|
|
|
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
6
|
declare const OverlayTrigger: React.ForwardRefExoticComponent<OriginalOverlayTrigger.OverlayTriggerProps & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ChannelIntroMessage: (props: any) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const ChannelIntroMessage: (props: any) => React.JSX.Element;
|
package/lib/components/post/channel_layout/channel_identifier_router/channel_identifier_router.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ChannelIdentifierRouter: (props: any) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const ChannelIdentifierRouter: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ChannelView: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ChannelView: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const CreatePost: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CreatePost: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const FailedPostOptions: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const FailedPostOptions: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Markdown: (props: any) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const Markdown: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Post: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Post: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const PostBody: (props: any) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const PostBody: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const PostHeader: (props: any) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const PostHeader: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const PostHeaderCustomStatus: (props: any) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const PostHeaderCustomStatus: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const PostInfo: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const PostInfo: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const PostListPage: () => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const PostListPage: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const PostList: (props: any) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const PostList: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const PostListRow: (props: any) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const PostListRow: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const LatestPostReader: () => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const LatestPostReader: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const VirtPostList: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const VirtPostList: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const PostMarkdown: (props: any) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const PostMarkdown: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const PostMessageView: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const PostMessageView: (props: any) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { IntlShape } from 'react-intl';
|
|
3
|
-
export
|
|
3
|
+
export type Props = {
|
|
4
4
|
intl?: IntlShape;
|
|
5
5
|
isFlagged: boolean;
|
|
6
6
|
isPinned?: boolean;
|
|
@@ -18,4 +18,4 @@ export declare enum PostPinnedOrFlagged {
|
|
|
18
18
|
PinnedAndFlagged = 2,
|
|
19
19
|
Neither = 3
|
|
20
20
|
}
|
|
21
|
-
export declare const PostPreHeader: (props: Props) => JSX.Element;
|
|
21
|
+
export declare const PostPreHeader: (props: Props) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const PostProfilePicture: (props: any) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const PostProfilePicture: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const PostView: () => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const PostView: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ProfilePicture: (props: any) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const ProfilePicture: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ShowMore: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ShowMore: (props: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ThreadFooter: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ThreadFooter: (props: any) => React.JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
type Props = {
|
|
3
3
|
prepend?: ReactNode;
|
|
4
4
|
append?: ReactNode;
|
|
5
5
|
isActive?: boolean;
|
|
6
6
|
hasDot?: boolean;
|
|
7
7
|
allowTextOverflow?: boolean;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
declare function Button({ prepend, append, children, isActive, hasDot, allowTextOverflow, ...attrs }: Props & Attrs): JSX.Element;
|
|
9
|
+
type Attrs = Exclude<ButtonHTMLAttributes<HTMLButtonElement>, Props>;
|
|
10
|
+
declare function Button({ prepend, append, children, isActive, hasDot, allowTextOverflow, ...attrs }: Props & Attrs): React.JSX.Element;
|
|
11
11
|
declare const _default: React.MemoExoticComponent<typeof Button>;
|
|
12
12
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { ComponentProps } from 'react';
|
|
2
2
|
import Button from '../button';
|
|
3
|
-
|
|
3
|
+
type Props = {
|
|
4
4
|
isFollowing: boolean | null | undefined;
|
|
5
5
|
};
|
|
6
|
-
declare function FollowButton({ isFollowing, ...props }: Props & Exclude<ComponentProps<typeof Button>, Props>): JSX.Element;
|
|
6
|
+
declare function FollowButton({ isFollowing, ...props }: Props & Exclude<ComponentProps<typeof Button>, Props>): React.JSX.Element;
|
|
7
7
|
declare const _default: React.MemoExoticComponent<typeof FollowButton>;
|
|
8
8
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type Preference = {
|
|
3
3
|
user_id: string;
|
|
4
4
|
category: string;
|
|
5
5
|
name: string;
|
|
6
6
|
value: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type Props = {
|
|
9
9
|
currentUserId: string;
|
|
10
10
|
step: number;
|
|
11
11
|
screens: JSX.Element[];
|
|
@@ -17,7 +17,7 @@ declare type Props = {
|
|
|
17
17
|
savePreferences: (currentUserId: string, preferences: Preference[]) => void;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
type State = {
|
|
21
21
|
currentScreen: number;
|
|
22
22
|
show: boolean;
|
|
23
23
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const StatusIcon: (props: any) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const StatusIcon: (props: any) => React.JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type Props = {
|
|
3
3
|
className: string;
|
|
4
4
|
status: string;
|
|
5
5
|
};
|
|
6
6
|
export default class StatusIconNew extends React.PureComponent<Props> {
|
|
7
7
|
static defaultProps: Props;
|
|
8
|
-
render(): JSX.Element;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
9
|
}
|
|
10
10
|
export {};
|
package/lib/compute.d.ts
CHANGED
|
@@ -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
|
};
|
|
@@ -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,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,6 +1,6 @@
|
|
|
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
6
|
declare const OverlayTrigger: React.ForwardRefExoticComponent<OriginalOverlayTrigger.OverlayTriggerProps & {
|
|
@@ -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,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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@messenger-box/platform-browser",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.398",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@container-stack/file-info-client": "^0.0.35-alpha.34",
|
|
26
26
|
"@emotion/react": "^11",
|
|
27
27
|
"@emotion/styled": "^11",
|
|
28
|
-
"@messenger-box/core": "0.0.1-alpha.
|
|
29
|
-
"@messenger-box/platform-client": "0.0.1-alpha.
|
|
28
|
+
"@messenger-box/core": "0.0.1-alpha.398",
|
|
29
|
+
"@messenger-box/platform-client": "0.0.1-alpha.398",
|
|
30
30
|
"bootstrap": "3.4.1",
|
|
31
31
|
"css-vars-ponyfill": "2.4.5",
|
|
32
32
|
"dynamic-virtualized-list": "github:mattermost/dynamic-virtualized-list#119db968c96643c7106d4d2c965f05b2e251bc83",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"typescript": {
|
|
60
60
|
"definition": "lib/index.d.ts"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "a2dc5d24f734d5c7da79fb379756c44837e7ef94"
|
|
63
63
|
}
|