@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.
Files changed (40) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/lib/components/InboxMessage/InboxDetails/index.d.ts +1 -0
  3. package/lib/components/InboxMessage/InboxSidebar/index.d.ts +1 -0
  4. package/lib/components/InboxMessage/Messages/index.d.ts +1 -0
  5. package/lib/components/InboxMessage/MessagesList/index.d.ts +1 -0
  6. package/lib/components/InboxMessage/Popover/index.d.ts +1 -0
  7. package/lib/components/InboxMessage/index.d.ts +1 -0
  8. package/lib/components/messenger/more_action/index.d.ts +1 -0
  9. package/lib/components/post/channel_intro_message/channel_intro_message.d.ts +1 -0
  10. package/lib/components/post/channel_layout/channel_identifier_router/channel_identifier_router.d.ts +1 -0
  11. package/lib/components/post/channel_view/channel_view.d.ts +1 -0
  12. package/lib/components/post/create_post/create_post.d.ts +1 -0
  13. package/lib/components/post/failed_post_options/failed_post_options.d.ts +1 -0
  14. package/lib/components/post/index.d.ts +1 -0
  15. package/lib/components/post/markdown/markdown.d.ts +1 -0
  16. package/lib/components/post/post/post.d.ts +1 -0
  17. package/lib/components/post/post_body/post_body.d.ts +1 -0
  18. package/lib/components/post/post_header/post_header.d.ts +1 -0
  19. package/lib/components/post/post_header/post_header_custom_status.d.ts +1 -0
  20. package/lib/components/post/post_info/post_info.d.ts +1 -0
  21. package/lib/components/post/post_list/index.d.ts +1 -0
  22. package/lib/components/post/post_list/post_list.d.ts +1 -0
  23. package/lib/components/post/post_list_row/post_list_row.d.ts +1 -0
  24. package/lib/components/post/post_list_virtualized/latest_post_reader.d.ts +1 -0
  25. package/lib/components/post/post_list_virtualized/post_list_virtualized.d.ts +1 -0
  26. package/lib/components/post/post_markdown/post_markdown.d.ts +1 -0
  27. package/lib/components/post/post_message_view/post_message_view.d.ts +1 -0
  28. package/lib/components/post/post_pre_header/post_pre_header.d.ts +1 -0
  29. package/lib/components/post/post_profile_picture/post_profile_picture.d.ts +1 -0
  30. package/lib/components/post/post_view.d.ts +1 -0
  31. package/lib/components/post/profile_picture/profile_picture.d.ts +1 -0
  32. package/lib/components/post/show_more/show_more.d.ts +1 -0
  33. package/lib/components/post/threading/channel_threads/thread_footer/thread_footer.d.ts +1 -0
  34. package/lib/components/status_icon.d.ts +1 -0
  35. package/lib/containers/Inbox.d.ts +1 -0
  36. package/lib/index.js +3 -5
  37. package/lib/index.js.map +1 -1
  38. package/package.json +2 -2
  39. package/src/components/InboxMessage/InboxSidebar/index.tsx +1 -4
  40. 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
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function InboxDetails({ handleToggle, toggleDrawer }: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type IPropsType = {
2
3
  handleSelectMessgae?: any;
3
4
  user?: [] | any;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function Messages({ id, user, userId, currentUser }: any): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function MsgList({ messageList, currentUser }: any): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function Popover({ toggleDrawer }: any): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function InboxMessage(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type IProps = {
2
3
  handleShowSideBar?: any;
3
4
  handleDeleteMessage?: any;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ChannelIntroMessage: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ChannelIdentifierRouter: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ChannelView: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const CreatePost: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const FailedPostOptions: (props: any) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const PostViewPage: ({ channel, refetchCall }: {
2
3
  channel: any;
3
4
  refetchCall: any;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const Markdown: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const Post: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PostBody: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PostHeader: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PostHeaderCustomStatus: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PostInfo: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PostListPage: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PostList: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PostListRow: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const LatestPostReader: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const VirtPostList: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PostMarkdown: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PostMessageView: (props: any) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IntlShape } from 'react-intl';
2
3
  export declare type Props = {
3
4
  intl?: IntlShape;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PostProfilePicture: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const PostView: () => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ProfilePicture: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ShowMore: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ThreadFooter: (props: any) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const StatusIcon: (props: any) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Inbox: () => JSX.Element;
2
3
  export default Inbox;
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) => {