@messenger-box/platform-browser 0.0.1-alpha.88 → 0.0.1-alpha.93
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 +8 -0
- package/lib/components/InboxMessage/InboxDetails/index.d.ts +1 -0
- package/lib/components/InboxMessage/InboxSidebar/index.d.ts +1 -0
- package/lib/components/InboxMessage/Messages/index.d.ts +1 -0
- package/lib/components/InboxMessage/MessagesList/index.d.ts +1 -0
- package/lib/components/InboxMessage/Popover/index.d.ts +1 -0
- package/lib/components/InboxMessage/index.d.ts +1 -0
- package/lib/components/messenger/more_action/index.d.ts +1 -0
- package/lib/components/post/channel_intro_message/channel_intro_message.d.ts +1 -0
- package/lib/components/post/channel_layout/channel_identifier_router/channel_identifier_router.d.ts +1 -0
- package/lib/components/post/channel_view/channel_view.d.ts +1 -0
- package/lib/components/post/create_post/create_post.d.ts +1 -0
- package/lib/components/post/failed_post_options/failed_post_options.d.ts +1 -0
- package/lib/components/post/index.d.ts +1 -0
- package/lib/components/post/markdown/markdown.d.ts +1 -0
- package/lib/components/post/post/post.d.ts +1 -0
- package/lib/components/post/post_body/post_body.d.ts +1 -0
- package/lib/components/post/post_header/post_header.d.ts +1 -0
- package/lib/components/post/post_header/post_header_custom_status.d.ts +1 -0
- package/lib/components/post/post_info/post_info.d.ts +1 -0
- package/lib/components/post/post_list/index.d.ts +1 -0
- package/lib/components/post/post_list/post_list.d.ts +1 -0
- package/lib/components/post/post_list_row/post_list_row.d.ts +1 -0
- package/lib/components/post/post_list_virtualized/latest_post_reader.d.ts +1 -0
- package/lib/components/post/post_list_virtualized/post_list_virtualized.d.ts +1 -0
- package/lib/components/post/post_markdown/post_markdown.d.ts +1 -0
- package/lib/components/post/post_message_view/post_message_view.d.ts +1 -0
- package/lib/components/post/post_pre_header/post_pre_header.d.ts +1 -0
- package/lib/components/post/post_profile_picture/post_profile_picture.d.ts +1 -0
- package/lib/components/post/post_view.d.ts +1 -0
- package/lib/components/post/profile_picture/profile_picture.d.ts +1 -0
- package/lib/components/post/show_more/show_more.d.ts +1 -0
- package/lib/components/post/threading/channel_threads/thread_footer/thread_footer.d.ts +1 -0
- package/lib/components/status_icon.d.ts +1 -0
- package/lib/containers/Inbox.d.ts +1 -0
- package/lib/index.js +3 -5
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/InboxMessage/InboxSidebar/index.tsx +1 -4
- package/src/components/InboxMessage/index.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.93](https://github.com/cdmbase/messenger-box/compare/v0.0.1-alpha.92...v0.0.1-alpha.93) (2021-11-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @messenger-box/platform-browser
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.0.1-alpha.88](https://github.com/cdmbase/messenger-box/compare/v0.0.1-alpha.87...v0.0.1-alpha.88) (2021-11-26)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @messenger-box/platform-browser
|
package/lib/index.js
CHANGED
|
@@ -195,14 +195,12 @@ const styles_1 = __webpack_require__(/*! ./styles */ "./src/components/InboxMess
|
|
|
195
195
|
function InboxSidebar({ handleSelectMessgae, user, messageList, currentUser, userId }) {
|
|
196
196
|
const { css } = react_fela_1.useFela();
|
|
197
197
|
return (React.createElement("div", { className: css(styles_1.styleSheet.inboxSibarStyles) }, (user === null || user === void 0 ? void 0 : user.length) > 0 ? user === null || user === void 0 ? void 0 : user.map((item, index) => {
|
|
198
|
+
var _a, _b, _c;
|
|
198
199
|
const lastMessage = messageList[(messageList === null || messageList === void 0 ? void 0 : messageList.length) - 1];
|
|
199
200
|
if (item.displayName !== currentUser && item.displayName !== 'admin (you)' && item.displayName !== 'surveybot') {
|
|
200
201
|
return React.createElement("a", { className: 'show-message', onClick: () => handleSelectMessgae(item), key: index },
|
|
201
202
|
React.createElement("div", { className: 'inbox-contacts' },
|
|
202
|
-
React.createElement(antd_1.Avatar, { size: 45 }, item.displayName
|
|
203
|
-
.match(/\b(\w)/g)
|
|
204
|
-
.join('')
|
|
205
|
-
.toUpperCase()),
|
|
203
|
+
React.createElement(antd_1.Avatar, { size: 45 }, (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.displayName) === null || _a === void 0 ? void 0 : _a.match(/\b(\w)/g)) === null || _b === void 0 ? void 0 : _b.join('')) === null || _c === void 0 ? void 0 : _c.toUpperCase()),
|
|
206
204
|
React.createElement("div", { className: 'last-message' },
|
|
207
205
|
React.createElement("h5", null, item === null || item === void 0 ? void 0 : item.displayName),
|
|
208
206
|
React.createElement("p", null, lastMessage === null || lastMessage === void 0 ? void 0 : lastMessage.message))));
|
|
@@ -718,7 +716,7 @@ function InboxMessage() {
|
|
|
718
716
|
});
|
|
719
717
|
}
|
|
720
718
|
console.log(fChannel);
|
|
721
|
-
setChannel([...channelData === null || channelData === void 0 ? void 0 : channelData.data.channelsByUser.filter(chl => chl.type === "DIRECT" && (chl === null || chl === void 0 ? void 0 : chl.displayName) !== 'admin (you)' || 'surveybot'), ...fChannel.filter(chl => chl.type === "DIRECT")]);
|
|
719
|
+
setChannel([...channelData === null || channelData === void 0 ? void 0 : channelData.data.channelsByUser.filter(chl => chl.type === "DIRECT" && (chl === null || chl === void 0 ? void 0 : chl.displayName) !== 'admin (you)' && (chl === null || chl === void 0 ? void 0 : chl.displayName) !== 'surveybot'), ...fChannel.filter(chl => chl.type === "DIRECT")]);
|
|
722
720
|
}
|
|
723
721
|
}, [loading, channelData, currentUserId]);
|
|
724
722
|
const handleSelectMessgae = (item) => {
|