@messenger-box/platform-browser 10.0.3-alpha.7 → 10.0.3-alpha.74

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 (138) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/lib/components/InboxMessage/InboxDetails/index.d.ts +6 -1
  3. package/lib/components/InboxMessage/InboxDetails/index.d.ts.map +1 -1
  4. package/lib/components/InboxMessage/InboxDetails/index.js +10 -11
  5. package/lib/components/InboxMessage/InboxDetails/index.js.map +1 -1
  6. package/lib/components/InboxMessage/InboxSidebar/index.d.ts.map +1 -1
  7. package/lib/components/InboxMessage/InboxSidebar/index.js +23 -32
  8. package/lib/components/InboxMessage/InboxSidebar/index.js.map +1 -1
  9. package/lib/components/InboxMessage/Messages/index.d.ts.map +1 -1
  10. package/lib/components/InboxMessage/Messages/index.js +42 -81
  11. package/lib/components/InboxMessage/Messages/index.js.map +1 -1
  12. package/lib/components/InboxMessage/MessagesList/index.d.ts.map +1 -1
  13. package/lib/components/InboxMessage/MessagesList/index.js +53 -74
  14. package/lib/components/InboxMessage/MessagesList/index.js.map +1 -1
  15. package/lib/components/InboxMessage/Popover/index.d.ts +5 -1
  16. package/lib/components/InboxMessage/Popover/index.d.ts.map +1 -1
  17. package/lib/components/InboxMessage/Popover/index.js +8 -35
  18. package/lib/components/InboxMessage/Popover/index.js.map +1 -1
  19. package/lib/components/InboxMessage/UserModalContent/index.d.ts.map +1 -1
  20. package/lib/components/InboxMessage/UserModalContent/index.js +50 -47
  21. package/lib/components/InboxMessage/UserModalContent/index.js.map +1 -1
  22. package/lib/components/InboxMessage/index.d.ts.map +1 -1
  23. package/lib/components/InboxMessage/index.js +38 -70
  24. package/lib/components/InboxMessage/index.js.map +1 -1
  25. package/lib/components/dashboard/menu_header.d.ts.map +1 -1
  26. package/lib/components/dashboard/menu_header.js +38 -24
  27. package/lib/components/dashboard/menu_header.js.map +1 -1
  28. package/lib/components/dashboard/modals/direct_modal.d.ts +10 -8
  29. package/lib/components/dashboard/modals/direct_modal.d.ts.map +1 -1
  30. package/lib/components/dashboard/modals/direct_modal.js +59 -39
  31. package/lib/components/dashboard/modals/direct_modal.js.map +1 -1
  32. package/lib/components/dashboard/modals.d.ts +18 -6
  33. package/lib/components/dashboard/modals.d.ts.map +1 -1
  34. package/lib/components/dashboard/modals.js +60 -101
  35. package/lib/components/dashboard/modals.js.map +1 -1
  36. package/lib/components/messenger/avatar/index.d.ts.map +1 -1
  37. package/lib/components/messenger/index.d.ts.map +1 -1
  38. package/lib/components/messenger/index.js +45 -82
  39. package/lib/components/messenger/index.js.map +1 -1
  40. package/lib/components/messenger/messagesList/index.d.ts.map +1 -1
  41. package/lib/components/messenger/messagesList/index.js +174 -454
  42. package/lib/components/messenger/messagesList/index.js.map +1 -1
  43. package/lib/components/messenger/messagesList/messageBox.d.ts +0 -1
  44. package/lib/components/messenger/messagesList/messageBox.d.ts.map +1 -1
  45. package/lib/components/messenger/more_action/index.d.ts.map +1 -1
  46. package/lib/components/messenger/postMessage/postMessage.d.ts +7 -2
  47. package/lib/components/messenger/postMessage/postMessage.d.ts.map +1 -1
  48. package/lib/components/messenger/sidebarThreadList/index.d.ts.map +1 -1
  49. package/lib/components/messenger/threadSidebar/index.d.ts.map +1 -1
  50. package/lib/components/messenger/types/message.d.ts +11 -11
  51. package/lib/components/messenger/types/message.d.ts.map +1 -1
  52. package/lib/components/post/create_post/create_post.d.ts +10 -1
  53. package/lib/components/post/create_post/create_post.d.ts.map +1 -1
  54. package/lib/components/post/index.d.ts +5 -3
  55. package/lib/components/post/index.d.ts.map +1 -1
  56. package/lib/components/post/index.js +63 -97
  57. package/lib/components/post/index.js.map +1 -1
  58. package/lib/components/post/post_header/post_header_custom_status.d.ts.map +1 -1
  59. package/lib/compute.d.ts.map +1 -1
  60. package/lib/compute.js +1 -1
  61. package/lib/compute.js.map +1 -1
  62. package/lib/containers/Dashboard.d.ts.map +1 -1
  63. package/lib/containers/Dashboard.js +110 -124
  64. package/lib/containers/Dashboard.js.map +1 -1
  65. package/lib/containers/DashboardWithLoader.d.ts.map +1 -1
  66. package/lib/containers/DashboardWithLoader.js +10 -3
  67. package/lib/containers/DashboardWithLoader.js.map +1 -1
  68. package/package.json +5 -5
  69. package/src/components/InboxMessage/InboxDetails/index.tsx +13 -15
  70. package/src/components/InboxMessage/InboxSidebar/index.tsx +23 -33
  71. package/src/components/InboxMessage/Messages/index.tsx +58 -97
  72. package/src/components/InboxMessage/MessagesList/index.tsx +71 -82
  73. package/src/components/InboxMessage/Popover/index.tsx +14 -38
  74. package/src/components/InboxMessage/UserModalContent/index.tsx +41 -44
  75. package/src/components/InboxMessage/index.tsx +53 -68
  76. package/src/components/dashboard/menu_header.tsx +52 -45
  77. package/src/components/dashboard/modals/direct_modal.tsx +73 -40
  78. package/src/components/dashboard/modals.tsx +114 -105
  79. package/src/components/messenger/avatar/index.tsx +27 -13
  80. package/src/components/messenger/index.tsx +126 -161
  81. package/src/components/messenger/messagesList/index.tsx +288 -572
  82. package/src/components/messenger/messagesList/messageBox.tsx +45 -34
  83. package/src/components/messenger/more_action/index.tsx +16 -10
  84. package/src/components/messenger/postMessage/postMessage.tsx +28 -16
  85. package/src/components/messenger/sidebarThreadList/index.tsx +52 -178
  86. package/src/components/messenger/threadSidebar/index.tsx +88 -75
  87. package/src/components/messenger/types/message.ts +12 -11
  88. package/src/components/post/channel_view/channel_view.tsx +2 -2
  89. package/src/components/post/create_post/create_post.tsx +104 -195
  90. package/src/components/post/index.tsx +78 -99
  91. package/src/components/post/post_header/post_header_custom_status.tsx +7 -6
  92. package/src/components/post/post_header/style.ts +51 -51
  93. package/src/compute.ts +8 -8
  94. package/src/containers/Dashboard.tsx +170 -213
  95. package/src/containers/DashboardWithLoader.tsx +13 -5
  96. package/lib/components/InboxMessage/InboxDetails/style.d.ts +0 -2
  97. package/lib/components/InboxMessage/InboxDetails/style.d.ts.map +0 -1
  98. package/lib/components/InboxMessage/InboxDetails/style.js +0 -27
  99. package/lib/components/InboxMessage/InboxDetails/style.js.map +0 -1
  100. package/lib/components/InboxMessage/InboxSidebar/styles.d.ts +0 -2
  101. package/lib/components/InboxMessage/InboxSidebar/styles.d.ts.map +0 -1
  102. package/lib/components/InboxMessage/InboxSidebar/styles.js +0 -57
  103. package/lib/components/InboxMessage/InboxSidebar/styles.js.map +0 -1
  104. package/lib/components/InboxMessage/Messages/styles.d.ts +0 -81
  105. package/lib/components/InboxMessage/Messages/styles.d.ts.map +0 -1
  106. package/lib/components/InboxMessage/Messages/styles.js +0 -85
  107. package/lib/components/InboxMessage/Messages/styles.js.map +0 -1
  108. package/lib/components/InboxMessage/Popover/style.d.ts +0 -28
  109. package/lib/components/InboxMessage/Popover/style.d.ts.map +0 -1
  110. package/lib/components/InboxMessage/Popover/style.js +0 -27
  111. package/lib/components/InboxMessage/Popover/style.js.map +0 -1
  112. package/lib/components/InboxMessage/UserModalContent/style.d.ts +0 -2
  113. package/lib/components/InboxMessage/UserModalContent/style.d.ts.map +0 -1
  114. package/lib/components/InboxMessage/UserModalContent/style.js +0 -98
  115. package/lib/components/InboxMessage/UserModalContent/style.js.map +0 -1
  116. package/lib/components/InboxMessage/style.js +0 -189
  117. package/lib/components/InboxMessage/style.js.map +0 -1
  118. package/lib/components/messenger/avatar/style.d.ts +0 -2
  119. package/lib/components/messenger/avatar/style.d.ts.map +0 -1
  120. package/lib/components/messenger/messagesList/style.js +0 -446
  121. package/lib/components/messenger/messagesList/style.js.map +0 -1
  122. package/lib/components/messenger/more_action/index.js +0 -48
  123. package/lib/components/messenger/more_action/index.js.map +0 -1
  124. package/lib/components/messenger/more_action/style.d.ts +0 -2
  125. package/lib/components/messenger/more_action/style.d.ts.map +0 -1
  126. package/lib/components/messenger/more_action/style.js +0 -45
  127. package/lib/components/messenger/more_action/style.js.map +0 -1
  128. package/lib/components/post/style.js +0 -20101
  129. package/lib/components/post/style.js.map +0 -1
  130. package/lib/style.js +0 -400
  131. package/lib/style.js.map +0 -1
  132. package/src/components/InboxMessage/InboxDetails/style.ts +0 -27
  133. package/src/components/InboxMessage/InboxSidebar/styles.ts +0 -57
  134. package/src/components/InboxMessage/Messages/styles.ts +0 -85
  135. package/src/components/InboxMessage/Popover/style.ts +0 -27
  136. package/src/components/InboxMessage/UserModalContent/style.ts +0 -98
  137. package/src/components/messenger/avatar/style.ts +0 -86
  138. package/src/components/messenger/more_action/style.ts +0 -45
@@ -1,33 +1,26 @@
1
1
  import * as React from 'react';
2
- import { css } from '@emotion/css';
3
- import { styleSheet2 } from './style';
4
- import { AiOutlineSearch, AiOutlineStar, AiOutlineQuestionCircle } from 'react-icons/ai';
5
- import { RiPushpinLine } from 'react-icons/ri';
6
- import { BsAt, BsChevronDown } from 'react-icons/bs';
7
- import { IoBookmarkOutline } from 'react-icons/io5';
8
- import { Menu, Dropdown } from 'antd';
9
- import { useDeleteChannelMutation } from 'common/lib/generated/generated.js';
2
+ // import { AiOutlineSearch, AiOutlineStar, AiOutlineQuestionCircle } from 'react-icons/ai';
3
+ import { AiOutlineSearch } from '@react-icons/all-files/ai/AiOutlineSearch';
4
+ import { AiOutlineStar } from '@react-icons/all-files/ai/AiOutlineStar';
5
+ import { AiOutlineQuestionCircle } from '@react-icons/all-files/ai/AiOutlineQuestionCircle';
6
+ import { RiPushpinLine } from '@react-icons/all-files/ri/RiPushpinLine';
7
+ import { BsAt } from '@react-icons/all-files/bs/BsAt';
8
+ import { BsChevronDown } from '@react-icons/all-files/bs/BsChevronDown';
9
+ import { IoBookmarkOutline } from '@react-icons/all-files/io5/IoBookmarkOutline';
10
+ import { useDeleteChannelMutation } from 'common/graphql';
10
11
  import { useNavigate, useLocation } from '@remix-run/react';
11
12
 
12
- export const PostViewPage = ({ channel, currentUsrId }) => {
13
+ interface PostViewPageProps {
14
+ channel: any;
15
+ currentUsrId: string;
16
+ }
17
+
18
+ export const PostViewPage: React.FC<PostViewPageProps> = ({ channel, currentUsrId }) => {
13
19
  const navigate = useNavigate();
14
20
  const location = useLocation();
15
- const [deleteChannel, deleteChannelResponse] = useDeleteChannelMutation({
16
- // update: (cache, mutationResult) => {
17
- // const normalizedId = cache.identify({ ChannelId, __typename: 'Channel' });
18
- // cache.evict({ id: normalizedId });
19
- // cache.gc();
20
- // cache.modify({
21
- // fields: {
22
- // channels(existingChannels, {toReference}) {
23
- // return [...existingChannels.filter(i => i !== mutationResult.data.deleteChannel)]
24
- // }
25
- // }
26
- // })
27
- // },
28
- });
21
+ const [deleteChannel] = useDeleteChannelMutation();
29
22
 
30
- const hendleDelete = async () => {
23
+ const handleDelete = async () => {
31
24
  await deleteChannel({
32
25
  variables: {
33
26
  ChannelId: channel.id,
@@ -45,87 +38,73 @@ export const PostViewPage = ({ channel, currentUsrId }) => {
45
38
  });
46
39
  };
47
40
 
48
- const menu = (
49
- <Menu>
50
- <Menu.Item key="0">
51
- <div style={{ cursor: 'pointer' }} onClick={hendleDelete}>
52
- Delete Channel
53
- </div>
54
- </Menu.Item>
55
- {/*<Menu.Divider />*/}
56
- </Menu>
57
- );
41
+ const menuItems = [
42
+ {
43
+ key: 'search',
44
+ icon: <AiOutlineSearch className="h-5 w-5" />,
45
+ label: 'Search',
46
+ },
47
+ {
48
+ key: 'pin',
49
+ icon: <RiPushpinLine className="h-5 w-5" />,
50
+ label: 'Pin to channel',
51
+ },
52
+ {
53
+ key: 'star',
54
+ icon: <AiOutlineStar className="h-5 w-5" />,
55
+ label: 'Star channel',
56
+ },
57
+ {
58
+ key: 'members',
59
+ icon: <BsAt className="h-5 w-5" />,
60
+ label: 'View members',
61
+ },
62
+ {
63
+ key: 'delete',
64
+ icon: <IoBookmarkOutline className="h-5 w-5" />,
65
+ label: 'Delete channel',
66
+ onClick: handleDelete,
67
+ },
68
+ ];
58
69
 
59
70
  return (
60
- <div>
61
- {channel ? (
62
- <div className={css(styleSheet2.customStyle)}>
63
- <div className="top-bar">
64
- {channel ? (
65
- <div className="top-left">
66
- <div className="text-nav">
67
- <button style={{ border: '0px', background: 'white' }}>
68
- <AiOutlineStar className="icon ml-0" />
69
- </button>
70
- <h5>
71
- {channel.type !== 'DIRECT'
72
- ? channel.title
73
- : channel.displayName.split('_').length === 2
74
- ? channel.displayName.split('_')[0].split('-')[0] !== currentUsrId
75
- ? channel.displayName.split('_')[0].split('-')[1]
76
- : channel.displayName.split('_')[1].split('-')[1]
77
- : channel.displayName}
78
- </h5>
79
- <Dropdown overlay={menu} trigger={['click']} className="down_menu">
80
- <a className="ant-dropdown-link" onClick={(e) => e.preventDefault()}>
81
- <BsChevronDown className="down_menu" />
82
- </a>
83
- </Dropdown>
84
- </div>
85
- <p>
86
- {channel.description ? channel.description : 'Add a channel description'}
87
- <a> Edit Description</a>
88
- </p>
89
- </div>
90
- ) : (
91
- <div className="top-left">
92
- <div className="text-nav">
93
- <button style={{ border: '0px', background: 'white' }}>
94
- <AiOutlineStar className="icon ml-0" />
95
- </button>
96
- <h5>surveybot</h5>
97
- <span>BOT</span>
98
- </div>
99
- <p>
100
- Surveybot collects user feedback to improve Mattermost.<a href="#">Learn more.</a>
101
- </p>
102
- </div>
103
- )}
104
- <div className="top-right">
105
- <button style={{ border: '0px', background: 'white' }}>
106
- <RiPushpinLine className="icon" />
107
- </button>
108
- <div className="searchbar">
109
- <AiOutlineSearch className="icon" />
110
- <input type="search" name="text" placeholder="search" />
111
- </div>
112
- <div className="icons-nav">
113
- <button style={{ border: '0px', background: 'white' }}>
114
- <BsAt className="icon" />
115
- </button>
116
- <button style={{ border: '0px', background: 'white' }}>
117
- <IoBookmarkOutline className="icon-m" color="gray" />
118
- </button>
119
- <button style={{ border: '0px', background: 'white' }}>
120
- <AiOutlineQuestionCircle className="icon" />
71
+ <div className="flex flex-col h-full">
72
+ <div className="flex items-center justify-between px-4 py-2 border-b border-gray-200">
73
+ <div className="flex items-center space-x-4">
74
+ <h1 className="text-xl font-semibold text-gray-900">{channel?.name || 'Channel Name'}</h1>
75
+ <div className="flex items-center space-x-2 text-gray-500">
76
+ <BsAt className="h-4 w-4" />
77
+ <span>{channel?.members_count || 0} members</span>
78
+ </div>
79
+ </div>
80
+ <div className="flex items-center space-x-2">
81
+ <div className="relative">
82
+ <button
83
+ className="flex items-center space-x-1 px-3 py-2 text-gray-700 hover:bg-gray-100 rounded-md"
84
+ onClick={() => {}}
85
+ >
86
+ <BsChevronDown className="h-4 w-4" />
87
+ <span>More</span>
88
+ </button>
89
+ <div className="absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg hidden">
90
+ {menuItems.map((item) => (
91
+ <button
92
+ key={item.key}
93
+ onClick={item.onClick}
94
+ className="flex items-center space-x-2 w-full px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"
95
+ >
96
+ {item.icon}
97
+ <span>{item.label}</span>
121
98
  </button>
122
- </div>
99
+ ))}
123
100
  </div>
124
101
  </div>
102
+ <button className="p-2 text-gray-400 hover:text-gray-600 rounded-full hover:bg-gray-100">
103
+ <AiOutlineQuestionCircle className="h-5 w-5" />
104
+ </button>
125
105
  </div>
126
- ) : (
127
- ''
128
- )}
106
+ </div>
107
+ <div className="flex-1 overflow-y-auto p-4">{/* Channel content will go here */}</div>
129
108
  </div>
130
109
  );
131
110
  };
@@ -1,8 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { FormattedMessage } from 'react-intl';
3
3
  import EmojiIcon from '../../../widgets/icons/emoji_icon';
4
- import { css } from '@emotion/css';
5
- import { styleSheet } from './style';
6
4
 
7
5
  export const PostHeaderCustomStatus = (props) => {
8
6
  const { userId, isSystemMessage, isBot } = props;
@@ -37,10 +35,13 @@ export const PostHeaderCustomStatus = (props) => {
37
35
  // dispatch(setStatusDropdown(true));
38
36
  };
39
37
  return (
40
- <div className={css(styleSheet.postHeaderStyle)}>
41
- <button onClick={updateStatus} className="post__header-set-custom-status cursor--pointer style--none">
42
- <EmojiIcon className="post__header-set-custom-status-icon" />
43
- <span className="post__header-set-custom-status-text">
38
+ <div className="p-2">
39
+ <button
40
+ onClick={updateStatus}
41
+ className="flex items-center gap-2 cursor-pointer border-none bg-transparent p-0"
42
+ >
43
+ <EmojiIcon className="w-5 h-5" />
44
+ <span className="text-sm">
44
45
  <FormattedMessage id="post_header.update_status" defaultMessage="Update your status" />
45
46
  </span>
46
47
  </button>
@@ -1,54 +1,54 @@
1
- import { inherits } from 'util';
1
+ // import { inherits } from 'util';
2
2
 
3
3
  export const styleSheet = {
4
- postHeaderStyle: {
5
- display: 'inherit',
6
- '& .post__header-set-custom-status': {
7
- // display: 'none',
8
- },
9
- '& .post.current--user.other--root .post__header-set-custom-status, .post.current--user.post--root .post__header-set-custom-status, .post.current--user.post--comment .post__header-set-custom-status':
10
- {
11
- display: 'block',
12
- padding: '0 6px',
13
- marginLeft: '8px',
14
- background: 'rgba(0, 0, 0, )',
15
- borderRadius: '4px',
16
- },
17
- '& .post.current--user.other--root .post__header-set-custom-status-icon > svg, .post.current--user.post--root .post__header-set-custom-status-icon > svg, .post.current--user.post--comment .post__header-set-custom-status-icon > svg':
18
- {
19
- width: '12px',
20
- height: '12px',
21
- marginRight: '4px',
22
- marginBottom: '2px',
23
- background: 'inherit',
24
- fill: 'rgba(0, 1, 0, )',
25
- verticalAlign: 'middle',
26
- },
27
- '& .post.current--user.other--root .post__header-set-custom-status-icon > svg:hover, .post.current--user.post--root .post__header-set-custom-status-icon > svg:hover, .post.current--user.post--comment .post__header-set-custom-status-icon > svg:hover':
28
- {
29
- fill: 'rgba(0, 1, 0, )',
30
- },
31
- '& .post.current--user.other--root .post__header-set-custom-status-text, .post.current--user.post--root .post__header-set-custom-status-text, .post.current--user.post--comment .post__header-set-custom-status-text':
32
- {
33
- color: 'rgba(0, 1, 0, )',
34
- fontSize: '12px',
35
- fontWeight: 'normal',
36
- },
37
- '& .post.current--user.other--root .post__header-set-custom-status-text:hover, .post.current--user.post--root .post__header-set-custom-status-text:hover, .post.current--user.post--comment .post__header-set-custom-status-text:hover':
38
- {
39
- color: 'rgba(0, 1, 0, )',
40
- },
41
- '& .post.current--user.other--root .post__header-set-custom-status:active, .post.current--user.post--root .post__header-set-custom-status:active, .post.current--user.post--comment .post__header-set-custom-status:active':
42
- {
43
- background: 'rgba(0, 0, 0, )',
44
- },
45
- '& .post.current--user.other--root .post__header-set-custom-status:active-icon > svg, .post.current--user.post--root .post__header-set-custom-status:active-icon > svg, .post.current--user.post--comment .post__header-set-custom-status:active-icon > svg':
46
- {
47
- // fill: var(--button-bg);
48
- },
49
- '& .post.current--user.other--root .post__header-set-custom-status:active-text, .post.current--user.post--root .post__header-set-custom-status:active-text, .post.current--user.post--comment .post__header-set-custom-status:active-text':
50
- {
51
- // color: var(--button-bg);
52
- },
53
- }
4
+ postHeaderStyle: {
5
+ display: 'inherit',
6
+ '& .post__header-set-custom-status': {
7
+ // display: 'none',
8
+ },
9
+ '& .post.current--user.other--root .post__header-set-custom-status, .post.current--user.post--root .post__header-set-custom-status, .post.current--user.post--comment .post__header-set-custom-status':
10
+ {
11
+ display: 'block',
12
+ padding: '0 6px',
13
+ marginLeft: '8px',
14
+ background: 'rgba(0, 0, 0, )',
15
+ borderRadius: '4px',
16
+ },
17
+ '& .post.current--user.other--root .post__header-set-custom-status-icon > svg, .post.current--user.post--root .post__header-set-custom-status-icon > svg, .post.current--user.post--comment .post__header-set-custom-status-icon > svg':
18
+ {
19
+ width: '12px',
20
+ height: '12px',
21
+ marginRight: '4px',
22
+ marginBottom: '2px',
23
+ background: 'inherit',
24
+ fill: 'rgba(0, 1, 0, )',
25
+ verticalAlign: 'middle',
26
+ },
27
+ '& .post.current--user.other--root .post__header-set-custom-status-icon > svg:hover, .post.current--user.post--root .post__header-set-custom-status-icon > svg:hover, .post.current--user.post--comment .post__header-set-custom-status-icon > svg:hover':
28
+ {
29
+ fill: 'rgba(0, 1, 0, )',
30
+ },
31
+ '& .post.current--user.other--root .post__header-set-custom-status-text, .post.current--user.post--root .post__header-set-custom-status-text, .post.current--user.post--comment .post__header-set-custom-status-text':
32
+ {
33
+ color: 'rgba(0, 1, 0, )',
34
+ fontSize: '12px',
35
+ fontWeight: 'normal',
36
+ },
37
+ '& .post.current--user.other--root .post__header-set-custom-status-text:hover, .post.current--user.post--root .post__header-set-custom-status-text:hover, .post.current--user.post--comment .post__header-set-custom-status-text:hover':
38
+ {
39
+ color: 'rgba(0, 1, 0, )',
40
+ },
41
+ '& .post.current--user.other--root .post__header-set-custom-status:active, .post.current--user.post--root .post__header-set-custom-status:active, .post.current--user.post--comment .post__header-set-custom-status:active':
42
+ {
43
+ background: 'rgba(0, 0, 0, )',
44
+ },
45
+ '& .post.current--user.other--root .post__header-set-custom-status:active-icon > svg, .post.current--user.post--root .post__header-set-custom-status:active-icon > svg, .post.current--user.post--comment .post__header-set-custom-status:active-icon > svg':
46
+ {
47
+ // fill: var(--button-bg);
48
+ },
49
+ '& .post.current--user.other--root .post__header-set-custom-status:active-text, .post.current--user.post--root .post__header-set-custom-status:active-text, .post.current--user.post--comment .post__header-set-custom-status:active-text':
50
+ {
51
+ // color: var(--button-bg);
52
+ },
53
+ },
54
54
  } as any;
package/src/compute.ts CHANGED
@@ -4,9 +4,9 @@ import { ORG_STD_ROUTES } from '@adminide-stack/core/lib/constants/urls.js';
4
4
  import { getFilteredMenus, getFilteredRoutes } from './utils';
5
5
  const Dashboard = React.lazy(() => import('./containers/Dashboard'));
6
6
  const Messenger = React.lazy(() => import('./containers/Messenger'));
7
- const Inbox = React.lazy(() => import('./containers/Inbox'))
8
- const DirectChannelView = React.lazy(() => import('./components/channel_view/DirectChannelView'))
9
- const PublicChannelView = React.lazy(() => import('./components/channel_view/PublicChannelView'))
7
+ const Inbox = React.lazy(() => import('./containers/Inbox'));
8
+ const DirectChannelView = React.lazy(() => import('./components/channel_view/DirectChannelView'));
9
+ const PublicChannelView = React.lazy(() => import('./components/channel_view/PublicChannelView'));
10
10
 
11
11
  // export const DashboardProvider = () => {
12
12
  // document.body.style.color = 'black'
@@ -26,7 +26,7 @@ export const messengerPageStore: any[] = [
26
26
  key: 'dashboard',
27
27
  component: () => import('./containers/DashboardWithLoader'),
28
28
  tab: 'Messenger',
29
- position: IMenuPosition.MIDDLE,
29
+ position: IMenuPosition.Middle,
30
30
  name: 'Messenger',
31
31
  path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/dashboard`,
32
32
  },
@@ -59,16 +59,16 @@ const filteredMenus = getFilteredMenus(messengerPageStore, selectedRoutesAndMenu
59
59
  // get routes
60
60
  const filteredRoutes = getFilteredRoutes(messengerPageStore, selectedRoutesAndMenus);
61
61
 
62
- export {filteredRoutes, filteredMenus};
62
+ export { filteredRoutes, filteredMenus };
63
63
  export const dashboardRoutes = [
64
64
  {
65
65
  path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/dashboard/message/:channelName`,
66
66
  exact: true,
67
- component: DirectChannelView
67
+ component: DirectChannelView,
68
68
  },
69
69
  {
70
70
  path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/dashboard/channel/:channelName`,
71
71
  exact: true,
72
- component: PublicChannelView
73
- }
72
+ component: PublicChannelView,
73
+ },
74
74
  ];