@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.
Files changed (252) hide show
  1. package/CHANGELOG.md +540 -27
  2. package/jest.config.js +23 -7
  3. package/lib/components/InboxMessage/InboxDetails/index.d.ts +2 -0
  4. package/lib/components/InboxMessage/InboxDetails/style.d.ts +1 -0
  5. package/lib/components/InboxMessage/InboxSidebar/index.d.ts +11 -0
  6. package/lib/components/InboxMessage/InboxSidebar/styles.d.ts +1 -0
  7. package/lib/components/InboxMessage/Messages/index.d.ts +2 -0
  8. package/lib/components/InboxMessage/Messages/styles.d.ts +80 -0
  9. package/lib/components/InboxMessage/MessagesList/index.d.ts +2 -0
  10. package/lib/components/InboxMessage/Popover/index.d.ts +2 -0
  11. package/lib/components/InboxMessage/Popover/style.d.ts +27 -0
  12. package/lib/components/InboxMessage/UserModalContent/index.d.ts +2 -0
  13. package/lib/components/InboxMessage/UserModalContent/style.d.ts +1 -0
  14. package/lib/components/InboxMessage/index.d.ts +2 -0
  15. package/lib/components/InboxMessage/mock.d.ts +19 -0
  16. package/lib/components/InboxMessage/style.d.ts +1 -0
  17. package/lib/components/channel_view/DirectChannelView.d.ts +3 -0
  18. package/lib/components/channel_view/PublicChannelView.d.ts +3 -0
  19. package/lib/components/dashboard/menu_header.d.ts +5 -0
  20. package/lib/components/dashboard/modals/direct_modal.d.ts +9 -0
  21. package/lib/components/dashboard/modals.d.ts +8 -0
  22. package/lib/components/messenger/index.d.ts +6 -1
  23. package/lib/components/messenger/messagesList/index.d.ts +6 -4
  24. package/lib/components/messenger/messagesList/style.d.ts +1 -221
  25. package/lib/components/messenger/more_action/index.d.ts +11 -0
  26. package/lib/components/messenger/more_action/style.d.ts +1 -0
  27. package/lib/components/overlay_trigger.d.ts +3 -3
  28. package/lib/components/post/channel_intro_message/channel_intro_message.d.ts +2 -1
  29. package/lib/components/post/channel_layout/channel_identifier_router/channel_identifier_router.d.ts +2 -1
  30. package/lib/components/post/channel_view/channel_view.d.ts +2 -1
  31. package/lib/components/post/create_post/create_post.d.ts +2 -1
  32. package/lib/components/post/failed_post_options/failed_post_options.d.ts +2 -1
  33. package/lib/components/post/index.d.ts +5 -1
  34. package/lib/components/post/markdown/markdown.d.ts +2 -1
  35. package/lib/components/post/post/post.d.ts +2 -1
  36. package/lib/components/post/post_aria_label_div.d.ts +3 -2
  37. package/lib/components/post/post_body/post_body.d.ts +2 -1
  38. package/lib/components/post/post_header/post_header.d.ts +2 -1
  39. package/lib/components/post/post_header/post_header_custom_status.d.ts +2 -1
  40. package/lib/components/post/post_header/style.d.ts +1 -40
  41. package/lib/components/post/post_info/post_info.d.ts +2 -1
  42. package/lib/components/post/post_list/index.d.ts +2 -1
  43. package/lib/components/post/post_list/post_list.d.ts +2 -1
  44. package/lib/components/post/post_list_row/post_list_row.d.ts +2 -1
  45. package/lib/components/post/post_list_virtualized/latest_post_reader.d.ts +2 -1
  46. package/lib/components/post/post_list_virtualized/post_list_virtualized.d.ts +2 -1
  47. package/lib/components/post/post_markdown/post_markdown.d.ts +2 -1
  48. package/lib/components/post/post_message_view/post_message_view.d.ts +2 -1
  49. package/lib/components/post/post_pre_header/post_pre_header.d.ts +3 -2
  50. package/lib/components/post/post_profile_picture/post_profile_picture.d.ts +2 -1
  51. package/lib/components/post/post_view.d.ts +2 -1
  52. package/lib/components/post/profile_picture/profile_picture.d.ts +2 -1
  53. package/lib/components/post/show_more/show_more.d.ts +2 -1
  54. package/lib/components/post/style.d.ts +1 -93
  55. package/lib/components/post/threading/channel_threads/thread_footer/thread_footer.d.ts +2 -1
  56. package/lib/components/post/threading/common/button/button.d.ts +3 -3
  57. package/lib/components/post/threading/common/follow_button/follow_button.d.ts +2 -2
  58. package/lib/components/post/tutorial/tutorial_tip/tutorial_tip.d.ts +3 -3
  59. package/lib/components/post/user_profile/user_profile.d.ts +1 -1
  60. package/lib/components/status_icon.d.ts +2 -1
  61. package/lib/components/status_icon_new.d.ts +2 -2
  62. package/lib/compute.d.ts +8 -2
  63. package/lib/containers/Inbox.d.ts +3 -0
  64. package/lib/containers/Messenger.d.ts +5 -1
  65. package/lib/index.js +3864 -581
  66. package/lib/index.js.map +1 -1
  67. package/lib/packages/types/emojis.d.ts +5 -5
  68. package/lib/packages/types/files.d.ts +5 -5
  69. package/lib/packages/types/posts.d.ts +13 -13
  70. package/lib/packages/types/reactions.d.ts +1 -1
  71. package/lib/packages/types/utilities.d.ts +13 -13
  72. package/lib/style.d.ts +1 -37
  73. package/lib/utils/index.d.ts +2 -0
  74. package/lib/widgets/badges/badge.d.ts +3 -3
  75. package/lib/widgets/badges/bot_badge.d.ts +1 -1
  76. package/lib/widgets/badges/guest_badge.d.ts +1 -1
  77. package/lib/widgets/badges/style.d.ts +1 -23
  78. package/lib/widgets/icons/emoji_icon.d.ts +1 -1
  79. package/lib/widgets/icons/flag_icon_filled.d.ts +1 -1
  80. package/lib/widgets/icons/mattermost_logo.d.ts +1 -1
  81. package/lib/widgets/icons/status_away_avatar_icon.d.ts +1 -1
  82. package/lib/widgets/icons/status_away_icon.d.ts +1 -1
  83. package/lib/widgets/icons/status_dnd_avatar_icon.d.ts +1 -1
  84. package/lib/widgets/icons/status_dnd_icon.d.ts +1 -1
  85. package/lib/widgets/icons/status_offline_avatar_icon.d.ts +1 -1
  86. package/lib/widgets/icons/status_offline_icon.d.ts +1 -1
  87. package/lib/widgets/icons/status_online_avatar_icon.d.ts +1 -1
  88. package/lib/widgets/icons/status_online_icon.d.ts +1 -1
  89. package/lib/widgets/overlay_trigger.d.ts +3 -3
  90. package/lib/widgets/shared_user_indicator.d.ts +1 -1
  91. package/lib/widgets/simple_tooltip/simple_tooltip.d.ts +3 -3
  92. package/lib/widgets/users/avatar/avatar.d.ts +4 -4
  93. package/lib/widgets/users/avatar/style.d.ts +1 -75
  94. package/lib/widgets/users/avatars/avatars.d.ts +2 -2
  95. package/package.json +61 -67
  96. package/src/components/InboxMessage/InboxDetails/index.tsx +23 -0
  97. package/src/components/InboxMessage/InboxDetails/style.ts +27 -0
  98. package/src/components/InboxMessage/InboxSidebar/index.tsx +86 -0
  99. package/src/components/InboxMessage/InboxSidebar/styles.ts +57 -0
  100. package/src/components/InboxMessage/Messages/index.tsx +159 -0
  101. package/src/components/InboxMessage/Messages/styles.ts +85 -0
  102. package/src/components/InboxMessage/MessagesList/index.tsx +93 -0
  103. package/src/components/InboxMessage/Popover/index.tsx +57 -0
  104. package/src/components/InboxMessage/Popover/style.ts +27 -0
  105. package/src/components/InboxMessage/UserModalContent/index.tsx +60 -0
  106. package/src/components/InboxMessage/UserModalContent/style.ts +98 -0
  107. package/src/components/InboxMessage/index.tsx +286 -0
  108. package/src/components/InboxMessage/mock.ts +53 -0
  109. package/src/components/InboxMessage/style.ts +189 -0
  110. package/src/components/channel_view/DirectChannelView.tsx +25 -0
  111. package/src/components/channel_view/PublicChannelView.tsx +24 -0
  112. package/src/components/dashboard/menu_header.tsx +49 -0
  113. package/src/components/dashboard/modals/direct_modal.tsx +46 -0
  114. package/src/components/dashboard/modals.tsx +93 -0
  115. package/src/components/messenger/avatar/index.tsx +2 -4
  116. package/src/components/messenger/avatar/style.ts +3 -3
  117. package/src/components/messenger/index.tsx +258 -94
  118. package/src/components/messenger/messagesList/index.tsx +673 -249
  119. package/src/components/messenger/messagesList/messageBox.tsx +2 -1
  120. package/src/components/messenger/messagesList/style.ts +240 -14
  121. package/src/components/messenger/more_action/index.tsx +68 -0
  122. package/src/components/messenger/more_action/style.ts +45 -0
  123. package/src/components/messenger/postMessage/postMessage.tsx +2 -3
  124. package/src/components/messenger/postMessage/style.ts +3 -3
  125. package/src/components/messenger/sidebarThreadList/index.tsx +11 -10
  126. package/src/components/messenger/style.ts +16 -16
  127. package/src/components/messenger/threadSidebar/index.tsx +5 -5
  128. package/src/components/messenger/threadSidebar/style.ts +7 -7
  129. package/src/components/messenger/types/message.ts +1 -0
  130. package/src/components/post/channel_intro_message/channel_intro_message.tsx +0 -1
  131. package/src/components/post/index.tsx +102 -25
  132. package/src/components/post/post/post.tsx +8 -1
  133. package/src/components/post/post_header/post_header_custom_status.tsx +1 -2
  134. package/src/components/post/post_header/style.ts +3 -6
  135. package/src/components/post/style.ts +22 -8
  136. package/src/components/post/tutorial/tutorial_tip/tutorial_tip.tsx +1 -0
  137. package/src/components/post/user_profile/user_profile.tsx +1 -0
  138. package/src/compute.tsx +58 -37
  139. package/src/containers/Dashboard.tsx +488 -1
  140. package/src/containers/Inbox.tsx +13 -0
  141. package/src/containers/Loading.tsx +1 -1
  142. package/src/containers/Messenger.tsx +9 -4
  143. package/src/module.ts +10 -7
  144. package/src/style.ts +382 -19
  145. package/src/utils/index.ts +22 -0
  146. package/src/widgets/badges/badge.tsx +1 -2
  147. package/src/widgets/badges/style.ts +3 -3
  148. package/src/widgets/icons/accordion_toggle_icon.tsx +1 -1
  149. package/src/widgets/icons/add_reaction_icon.tsx +1 -1
  150. package/src/widgets/icons/admin_eye_icon.tsx +1 -1
  151. package/src/widgets/icons/alert_icon.tsx +1 -1
  152. package/src/widgets/icons/archive_icon.tsx +1 -1
  153. package/src/widgets/icons/arrow_right_icon.tsx +1 -1
  154. package/src/widgets/icons/at_icon.tsx +1 -1
  155. package/src/widgets/icons/attachment_icon.tsx +1 -1
  156. package/src/widgets/icons/back_icon.tsx +1 -1
  157. package/src/widgets/icons/bot_icon.tsx +1 -1
  158. package/src/widgets/icons/camera_icon.tsx +1 -1
  159. package/src/widgets/icons/checkbox_checked_icon.tsx +1 -1
  160. package/src/widgets/icons/checkbox_partial_icon.tsx +1 -1
  161. package/src/widgets/icons/close_circle_icon.tsx +1 -1
  162. package/src/widgets/icons/close_circle_solid_icon.tsx +1 -1
  163. package/src/widgets/icons/close_icon.tsx +1 -1
  164. package/src/widgets/icons/dots_horizontal.tsx +1 -1
  165. package/src/widgets/icons/download_icon.tsx +1 -1
  166. package/src/widgets/icons/draft_icon.tsx +1 -1
  167. package/src/widgets/icons/ellipsis_h_icon.tsx +1 -1
  168. package/src/widgets/icons/email_icon.tsx +1 -1
  169. package/src/widgets/icons/fa_add_icon.tsx +1 -1
  170. package/src/widgets/icons/fa_back_icon.tsx +1 -1
  171. package/src/widgets/icons/fa_dropdown_icon.tsx +1 -1
  172. package/src/widgets/icons/fa_edit_icon.tsx +1 -1
  173. package/src/widgets/icons/fa_logout_icon.tsx +1 -1
  174. package/src/widgets/icons/fa_next_icon.tsx +1 -1
  175. package/src/widgets/icons/fa_previous_icon.tsx +1 -1
  176. package/src/widgets/icons/fa_reload_icon.tsx +1 -1
  177. package/src/widgets/icons/fa_remove_icon.tsx +1 -1
  178. package/src/widgets/icons/fa_search_icon.tsx +1 -1
  179. package/src/widgets/icons/fa_select_icon.tsx +1 -1
  180. package/src/widgets/icons/fa_success_icon.tsx +1 -1
  181. package/src/widgets/icons/fa_warning_icon.tsx +1 -1
  182. package/src/widgets/icons/flag_icon.tsx +1 -1
  183. package/src/widgets/icons/gfycat_icon.tsx +1 -1
  184. package/src/widgets/icons/gif_reactions_icon.tsx +1 -1
  185. package/src/widgets/icons/gif_search_clear_icon.tsx +1 -1
  186. package/src/widgets/icons/gif_search_icon.tsx +1 -1
  187. package/src/widgets/icons/gif_trending_icon.tsx +1 -1
  188. package/src/widgets/icons/globe_icon.tsx +1 -1
  189. package/src/widgets/icons/icons.stories.js +1 -1
  190. package/src/widgets/icons/info_icon.tsx +1 -1
  191. package/src/widgets/icons/info_small_icon.tsx +1 -1
  192. package/src/widgets/icons/invite_icon.tsx +1 -1
  193. package/src/widgets/icons/invite_members_icon.tsx +1 -1
  194. package/src/widgets/icons/link_icon.tsx +1 -1
  195. package/src/widgets/icons/lock_icon.tsx +1 -1
  196. package/src/widgets/icons/mail_icon.tsx +1 -1
  197. package/src/widgets/icons/mail_plus_icon.tsx +1 -1
  198. package/src/widgets/icons/member_icon.tsx +1 -1
  199. package/src/widgets/icons/mentions_icon.tsx +1 -1
  200. package/src/widgets/icons/menu_icon.tsx +1 -1
  201. package/src/widgets/icons/message_icon.tsx +1 -1
  202. package/src/widgets/icons/pin_icon.tsx +1 -1
  203. package/src/widgets/icons/plugin_channel_header_icon.tsx +1 -1
  204. package/src/widgets/icons/plugin_icon.tsx +1 -1
  205. package/src/widgets/icons/reply_icon.tsx +1 -1
  206. package/src/widgets/icons/scroll_to_bottom_icon.tsx +1 -1
  207. package/src/widgets/icons/search_icon.tsx +1 -1
  208. package/src/widgets/icons/shield_outline_icon.tsx +1 -1
  209. package/src/widgets/icons/unarchive_icon.tsx +1 -1
  210. package/src/widgets/icons/unread_below_icon.tsx +1 -1
  211. package/src/widgets/icons/user_guide_icon.tsx +1 -1
  212. package/src/widgets/shared_user_indicator.tsx +1 -0
  213. package/src/widgets/simple_tooltip/simple_tooltip.tsx +1 -0
  214. package/src/widgets/users/avatar/avatar.tsx +1 -2
  215. package/src/widgets/users/avatar/style.ts +3 -3
  216. package/src/widgets/users/avatars/avatars.tsx +1 -0
  217. package/tsconfig.json +2 -1
  218. package/webpack.config.js +1 -1
  219. package/lib/components/messenger/mock.d.ts +0 -50
  220. package/lib/components/messenger/postMessage/postMessage.d.ts +0 -1
  221. package/lib/components/messenger/postMessage/style.d.ts +0 -22
  222. package/lib/components/messenger/sidebarThreadList/index.d.ts +0 -7
  223. package/lib/components/messenger/threadSidebar/index.d.ts +0 -1
  224. package/lib/components/messenger/threadSidebar/style.d.ts +0 -62
  225. package/lib/components/messenger/types/message.d.ts +0 -14
  226. package/src/api.ts +0 -35
  227. package/src/components/Counter.tsx +0 -52
  228. package/src/containers/Clock.tsx +0 -0
  229. package/src/containers/Counter.tsx +0 -42
  230. package/src/containers/PersonList.tsx +0 -20
  231. package/src/containers/ServerCounter.tsx +0 -140
  232. package/src/graphql/index.ts +0 -3
  233. package/src/graphql/mutations/addCount.graphql +0 -5
  234. package/src/graphql/mutations/addPerson.graphql +0 -6
  235. package/src/graphql/mutations/index.ts +0 -2
  236. package/src/graphql/queries/count.graphql +0 -5
  237. package/src/graphql/queries/index.ts +0 -3
  238. package/src/graphql/queries/person.graphql +0 -22
  239. package/src/graphql/queries/persons.graphql +0 -6
  240. package/src/graphql/subscriptions/count.graphql +0 -5
  241. package/src/graphql/subscriptions/index.ts +0 -1
  242. package/src/redux/__mocks__/api.ts +0 -4
  243. package/src/redux/actions/__tests__/sampleActions.test.ts +0 -159
  244. package/src/redux/actions/index.ts +0 -1
  245. package/src/redux/actions/sampleActions.ts +0 -91
  246. package/src/redux/index.ts +0 -2
  247. package/src/redux/reducers/Store.ts +0 -10
  248. package/src/redux/reducers/__tests__/sampleReducers.test.ts +0 -39
  249. package/src/redux/reducers/index.ts +0 -7
  250. package/src/redux/reducers/sampleReducers.ts +0 -71
  251. /package/src/components/post/channel_layout/{channel_controller.test.jsx → channel_controller.test.tsx} +0 -0
  252. /package/src/components/post/channel_layout/{channel_controller.jsx → channel_controller.tsx} +0 -0
package/jest.config.js CHANGED
@@ -1,8 +1,24 @@
1
- const base = require('../../../jest.config.base');
2
- const packageJson = require('./package');
1
+ const merge = require('merge');
2
+ const baseConfig = require('../../../jest.config.base');
3
3
 
4
- module.exports = {
5
- ...base,
6
- name: packageJson.name,
7
- displayName: packageJson.name,
8
- };
4
+ const mergeData = merge.recursive(
5
+ baseConfig,
6
+ {
7
+ testEnvironment: 'jsdom',
8
+ transform: {
9
+ '\\.(js|jsx)?$': '../../../transform.js',
10
+ },
11
+ moduleNameMapper: {
12
+ '^__mocks__/(.*)$': '<rootDir>/../../__mocks__/$1',
13
+ // we'll use commonjs version of lodash for tests 👌
14
+ // because we don't need to use any kind of tree shaking right?!
15
+ '^lodash-es$': '<rootDir>/../../../node_modules/lodash/index.js',
16
+ },
17
+ roots: ['src'],
18
+ },
19
+ {
20
+ globals: {},
21
+ },
22
+ );
23
+
24
+ module.exports = mergeData;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function InboxDetails({ handleToggle, toggleDrawer }: any): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const styleSheet: any;
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ type IPropsType = {
3
+ handleSelectMessgae?: any;
4
+ user?: [] | any;
5
+ messageList?: any;
6
+ currentUser?: any;
7
+ userId?: any;
8
+ users?: any;
9
+ };
10
+ export default function InboxSidebar({ handleSelectMessgae, user, messageList, userId, users }: IPropsType): React.JSX.Element;
11
+ export {};
@@ -0,0 +1 @@
1
+ export declare const styleSheet: any;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function Messages({ id, user, userId, currentUser }: any): React.JSX.Element;
@@ -0,0 +1,80 @@
1
+ export declare const styleSheet: {
2
+ messageListStyles: {
3
+ width: string;
4
+ padding: string;
5
+ '& .message-container': {
6
+ display: string;
7
+ flexDirection: string;
8
+ justifyContent: string;
9
+ height: string;
10
+ alignItems: string;
11
+ };
12
+ '& .message-row': {
13
+ marginLeft: string;
14
+ marginRight: string;
15
+ width: string;
16
+ overflow: string;
17
+ '& .message-list ': {
18
+ bottom: string;
19
+ width: string;
20
+ right: string;
21
+ left: string;
22
+ paddingTop: string;
23
+ top: string;
24
+ '& .ant-comment': {
25
+ width: string;
26
+ };
27
+ };
28
+ };
29
+ '& .message-username': {
30
+ width: string;
31
+ display: string;
32
+ color: string;
33
+ justifyContent: string;
34
+ alignItems: string;
35
+ '& div': {
36
+ width: string;
37
+ '& svg': {
38
+ fontSize: string;
39
+ color: string;
40
+ };
41
+ };
42
+ };
43
+ '& .username': {
44
+ color: string;
45
+ };
46
+ '& .message': {
47
+ width: string;
48
+ display: string;
49
+ color: string;
50
+ justifyContent: string;
51
+ '& svg': {
52
+ color: string;
53
+ };
54
+ };
55
+ '& .message-input': {
56
+ width: string;
57
+ display: string;
58
+ justifyContent: string;
59
+ marginTop: string;
60
+ '& textarea': {
61
+ borderRadius: string;
62
+ width: string;
63
+ overflow: string;
64
+ color: string;
65
+ lineHeight: string;
66
+ fontSize: string;
67
+ resize: string;
68
+ border: string;
69
+ padding: string;
70
+ };
71
+ '& .image-btn': {
72
+ '& svg': {
73
+ fontSize: string;
74
+ fontWeight: string;
75
+ color: string;
76
+ };
77
+ };
78
+ };
79
+ };
80
+ };
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function MsgList({ messageList, currentUser }: any): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function Popover({ toggleDrawer }: any): React.JSX.Element;
@@ -0,0 +1,27 @@
1
+ export declare const styleSheet: {
2
+ customPopoverStyles: (toggleDrawer: any) => {
3
+ position: string;
4
+ height: string;
5
+ width: string;
6
+ zIndex: string;
7
+ background: string;
8
+ boxShadow: string;
9
+ left: string;
10
+ top: string;
11
+ borderRadius: string;
12
+ '& .popover-style': {
13
+ width: string;
14
+ marginTop: string;
15
+ transition: string;
16
+ cursor: string;
17
+ '& :hover': {
18
+ backgroundColor: string;
19
+ };
20
+ '& .ant-btn': {
21
+ textDecoration: string;
22
+ width: string;
23
+ textAlign: string;
24
+ };
25
+ };
26
+ };
27
+ };
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export default function UserModalContent({ username, imageUrl }: any): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const styleSheet: any;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function InboxMessage(): React.JSX.Element;
@@ -0,0 +1,19 @@
1
+ export declare const inboxData: ({
2
+ username: string;
3
+ id: number;
4
+ isLoggedIn: boolean;
5
+ messages: {
6
+ message: string;
7
+ id: number;
8
+ isLoggedIn: boolean;
9
+ }[];
10
+ } | {
11
+ username: string;
12
+ id: number;
13
+ isLoggedIn: boolean;
14
+ messages: {
15
+ message: string;
16
+ id: number;
17
+ isLogged: boolean;
18
+ }[];
19
+ })[];
@@ -0,0 +1 @@
1
+ export declare const stylesheet: any;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const DirectChannelView: () => React.JSX.Element;
3
+ export default DirectChannelView;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const PublicChannelView: () => React.JSX.Element;
3
+ export default PublicChannelView;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ export declare const MenuHeader: ({ clickedChannel, handleClass }: {
3
+ clickedChannel: any;
4
+ handleClass: any;
5
+ }) => React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ export declare const DirectModal: ({ showDirectChl, handleClose, selectedValues, handleSelect, options, handleGo }: {
3
+ showDirectChl: any;
4
+ handleClose: any;
5
+ selectedValues: any;
6
+ handleSelect: any;
7
+ options: any;
8
+ handleGo: any;
9
+ }) => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ export declare const Modals: ({ directMoreModal, publicChlModal, handleClose, handleChange, handleCreate }: {
3
+ directMoreModal: any;
4
+ publicChlModal: any;
5
+ handleClose: any;
6
+ handleChange: any;
7
+ handleCreate: any;
8
+ }) => React.JSX.Element;
@@ -1,3 +1,8 @@
1
1
  import { FC } from 'react';
2
2
  import 'emoji-mart/css/emoji-mart.css';
3
- export declare const MessengerComponent: FC;
3
+ interface PropsTypes {
4
+ channel: any;
5
+ currentUsrId: string;
6
+ }
7
+ export declare const MessengerComponent: FC<PropsTypes>;
8
+ export {};
@@ -1,10 +1,12 @@
1
1
  import { FC } from 'react';
2
- import { IMessageList } from '../types/message';
3
- import 'antd/dist/antd.css';
2
+ import { IPostFragment } from '@messenger-box/core';
4
3
  interface IProps {
5
- userMessagesList: IMessageList[];
4
+ userMessagesList: IPostFragment[];
6
5
  handleShowSideBar: () => void;
6
+ handleDeleteMessage: any;
7
+ handleEditMessage: any;
8
+ channel: any;
9
+ currentUsrId: string;
7
10
  }
8
11
  export declare const MessagesList: FC<IProps>;
9
- export declare const ThreadMessagesList: FC<IProps>;
10
12
  export {};
@@ -1,221 +1 @@
1
- export declare const styleSheet3: {
2
- customStyle: () => {
3
- '& .ant-comment-content-author-name > * ': {
4
- color: string;
5
- fontWeight: string;
6
- fontSize: string;
7
- };
8
- '& span.ant-comment-content-author-time': {
9
- color: string;
10
- fontSize: string;
11
- };
12
- '& .btn-hover': {
13
- display: string;
14
- };
15
- '& .hover_btns': {
16
- borderRadius: string;
17
- border: string;
18
- display: string;
19
- justifyContent: string;
20
- padding: string;
21
- position: string;
22
- right: string;
23
- top: string;
24
- whiteSpace: string;
25
- zIndex: string;
26
- };
27
- '& .hover_btns button': {
28
- border: string;
29
- display: string;
30
- alignItems: string;
31
- justifyContent: string;
32
- padding: string;
33
- width: string;
34
- height: string;
35
- background: string;
36
- };
37
- '& .text-divider': {
38
- display: string;
39
- alignItems: string;
40
- color: string;
41
- fontSize: string;
42
- fontWeight: string;
43
- lineHeight: string;
44
- ':before': {
45
- content: string;
46
- height: string;
47
- backgroundColor: string;
48
- flexGrow: string;
49
- marginRight: string;
50
- };
51
- ':after': {
52
- content: string;
53
- height: string;
54
- backgroundColor: string;
55
- flexGrow: string;
56
- marginLeft: string;
57
- };
58
- };
59
- };
60
- customStyleDemo: () => {
61
- ':hover .btn-hover': {
62
- display: string;
63
- };
64
- '.btn-hover': {
65
- display: string;
66
- };
67
- padding: string;
68
- paddingRight: string;
69
- '& .text-divider': {
70
- display: string;
71
- alignItems: string;
72
- color: string;
73
- fontSize: string;
74
- fontWeight: string;
75
- lineHeight: string;
76
- ':before': {
77
- content: string;
78
- height: string;
79
- backgroundColor: string;
80
- flexGrow: string;
81
- marginRight: string;
82
- };
83
- ':after': {
84
- content: string;
85
- height: string;
86
- backgroundColor: string;
87
- flexGrow: string;
88
- marginLeft: string;
89
- };
90
- };
91
- };
92
- customInputStyle: () => {
93
- '& .msg_list': {
94
- position: string;
95
- bottom: string;
96
- width: string;
97
- right: string;
98
- left: string;
99
- height: string;
100
- paddingTop: string;
101
- top: string;
102
- overflowY: string;
103
- };
104
- '& .msg_row': {
105
- marginLeft: string;
106
- marginRight: string;
107
- position: string;
108
- bottom: string;
109
- maxHeight: string;
110
- };
111
- '& .input_row': {
112
- position: string;
113
- marginLeft: string;
114
- padding: string;
115
- bottom: string;
116
- width: string;
117
- };
118
- '& .thread_input_row': {
119
- position: string;
120
- marginLeft: string;
121
- padding: string;
122
- bottom: string;
123
- width: string;
124
- };
125
- '& .msg_input': {
126
- minHeight: string;
127
- };
128
- '& .input_class': {
129
- position: string;
130
- };
131
- '& .icon_box': {
132
- position: string;
133
- top: string;
134
- display: string;
135
- transform: string;
136
- right: string;
137
- };
138
- '& .icon_style': {
139
- fontSize: string;
140
- marginLeft: string;
141
- color: string;
142
- };
143
- '& .emoji-mart': {
144
- position: string;
145
- top: string;
146
- bottom: string;
147
- width: string;
148
- right: string;
149
- zIndex: string;
150
- };
151
- '& .emoji-mart-category': {
152
- '& .emoji-mart-emoji span': {
153
- width: string;
154
- height: string;
155
- fontSize: string;
156
- };
157
- };
158
- '& .chat_container': {
159
- overflow: string;
160
- display: string;
161
- };
162
- '& .right_chat_box': {
163
- right: string;
164
- top: string;
165
- border: string;
166
- width: string;
167
- height: string;
168
- maxWidth: string;
169
- position: string;
170
- display: string;
171
- flex: string;
172
- flexDirection: string;
173
- borderLeft: string;
174
- '& .msg_list': {
175
- top: string;
176
- bottom: string;
177
- overflow: string;
178
- '& .msg_row': {
179
- position: string;
180
- maxHeight: string;
181
- padding: string;
182
- };
183
- };
184
- '& .thread_head': {
185
- flex: string;
186
- display: string;
187
- alignItems: string;
188
- justifyContent: string;
189
- overflow: string;
190
- whiteSpace: string;
191
- padding: string;
192
- borderBottom: string;
193
- '> div': {
194
- '> span': {
195
- fontSize: string;
196
- fontWeight: string;
197
- };
198
- '> button': {
199
- margin: string;
200
- fontSize: string;
201
- fontWeight: string;
202
- height: string;
203
- lineHeight: string;
204
- padding: string;
205
- overflow: string;
206
- textOverflow: string;
207
- whiteSpace: string;
208
- background: string;
209
- border: string;
210
- borderLeft: string;
211
- };
212
- };
213
- };
214
- };
215
- '& .left_chat_box': {
216
- width: string;
217
- position: string;
218
- };
219
- };
220
- customPopoverStyles: () => {};
221
- };
1
+ export declare const styleSheet3: any;
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ type IProps = {
3
+ handleShowSideBar?: any;
4
+ handleDeleteMessage?: any;
5
+ handleEditMessage?: any;
6
+ id?: string;
7
+ pinMessage: any;
8
+ handlePinBtn?: any;
9
+ };
10
+ declare const MoreAction: ({ handleShowSideBar, handleDeleteMessage, handleEditMessage, id, handlePinBtn, pinMessage }: IProps) => React.JSX.Element;
11
+ export default MoreAction;
@@ -0,0 +1 @@
1
+ export declare const styleSheet: any;
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { OverlayTrigger as OriginalOverlayTrigger } from 'react-bootstrap';
3
- export declare type BaseOverlayTrigger = OriginalOverlayTrigger & {
3
+ export type BaseOverlayTrigger = OriginalOverlayTrigger & {
4
4
  hide: () => void;
5
5
  };
6
- declare const OverlayTrigger: React.ForwardRefExoticComponent<Pick<OriginalOverlayTrigger.OverlayTriggerProps & {
6
+ declare const OverlayTrigger: React.ForwardRefExoticComponent<OriginalOverlayTrigger.OverlayTriggerProps & {
7
7
  disabled?: boolean;
8
8
  className?: string;
9
- }, "children" | "disabled" | "className" | "key" | "trigger" | "placement" | "animation" | "overlay" | "container" | "containerPadding" | "defaultOverlayShown" | "delay" | "delayHide" | "delayShow" | "onEnter" | "onEntered" | "onEntering" | "onExit" | "onExited" | "onExiting" | "rootClose"> & React.RefAttributes<OriginalOverlayTrigger>>;
9
+ } & React.RefAttributes<OriginalOverlayTrigger>>;
10
10
  export default OverlayTrigger;
@@ -1 +1,2 @@
1
- export declare const ChannelIntroMessage: (props: any) => JSX.Element;
1
+ import * as React from 'react';
2
+ export declare const ChannelIntroMessage: (props: any) => React.JSX.Element;
@@ -1 +1,2 @@
1
- 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 +1,2 @@
1
- export declare const ChannelView: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const ChannelView: (props: any) => React.JSX.Element;
@@ -1 +1,2 @@
1
- export declare const CreatePost: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const CreatePost: (props: any) => React.JSX.Element;
@@ -1 +1,2 @@
1
- export declare const FailedPostOptions: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const FailedPostOptions: (props: any) => React.JSX.Element;
@@ -1 +1,5 @@
1
- export declare const PostViewPage: (pros: any) => JSX.Element;
1
+ import * as React from 'react';
2
+ export declare const PostViewPage: ({ channel, currentUsrId }: {
3
+ channel: any;
4
+ currentUsrId: any;
5
+ }) => React.JSX.Element;
@@ -1 +1,2 @@
1
- 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 +1,2 @@
1
- export declare const Post: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ export declare const Post: (props: any) => React.JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- declare const PostAriaLabelDiv: React.ForwardRefExoticComponent<Pick<React.HTMLProps<HTMLDivElement> & {
2
+ type Props = React.HTMLProps<HTMLDivElement> & {
3
3
  labelPrefix?: string;
4
4
  post: any;
5
- }, "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "wrap" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "post" | "labelPrefix"> & React.RefAttributes<HTMLDivElement>>;
5
+ };
6
+ declare const PostAriaLabelDiv: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
7
  export default PostAriaLabelDiv;
@@ -1 +1,2 @@
1
- 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 +1,2 @@
1
- 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 +1,2 @@
1
- export declare const PostHeaderCustomStatus: (props: any) => JSX.Element;
1
+ import * as React from 'react';
2
+ export declare const PostHeaderCustomStatus: (props: any) => React.JSX.Element;