@messenger-box/platform-browser 5.0.11-alpha.0 → 5.0.11-alpha.4
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.js +2 -2
- package/lib/components/InboxMessage/InboxDetails/index.js.map +1 -1
- package/lib/components/messenger/messagesList/messageBox.d.ts.map +1 -1
- package/lib/components/messenger/postMessage/postMessage.d.ts.map +1 -1
- package/lib/components/messenger/sidebarThreadList/index.d.ts.map +1 -1
- package/lib/compute.js +3 -3
- package/lib/compute.js.map +1 -1
- package/package.json +2 -2
- package/src/components/InboxMessage/InboxDetails/index.tsx +2 -2
- package/src/components/messenger/messagesList/messageBox.tsx +6 -3
- package/src/components/messenger/postMessage/postMessage.tsx +4 -3
- package/src/components/messenger/sidebarThreadList/index.tsx +0 -1
- package/src/components/messenger/threadSidebar/index.tsx +2 -2
- package/src/compute.tsx +3 -3
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
|
+
## [5.0.11-alpha.4](https://github.com/CDEBase/messenger-box/compare/v5.0.11-alpha.3...v5.0.11-alpha.4) (2024-04-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @messenger-box/platform-browser
|
|
9
|
+
|
|
6
10
|
## [5.0.11-alpha.0](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.487...v5.0.11-alpha.0) (2024-03-28)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @messenger-box/platform-browser
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React__default from'react';import {Button}from'@chakra-ui/react';import {
|
|
1
|
+
import React__default from'react';import {Button}from'@chakra-ui/react';import {AiOutlineClose}from'@react-icons/all-files/ai/AiOutlineClose';import {css}from'@emotion/css';import {styleSheet}from'./style.js';function InboxDetails({ handleToggle, toggleDrawer }) {
|
|
2
2
|
return (React__default.createElement("div", { className: css(styleSheet.detailDrawerStyles) },
|
|
3
3
|
React__default.createElement("div", { className: "details" },
|
|
4
4
|
React__default.createElement("h4", null, "Details"),
|
|
5
|
-
React__default.createElement(Button, { onClick: handleToggle, as: "a", className: "close-btn", marginRight: '10px', rightIcon: React__default.createElement(
|
|
5
|
+
React__default.createElement(Button, { onClick: handleToggle, as: "a", className: "close-btn", marginRight: '10px', rightIcon: React__default.createElement(AiOutlineClose, { color: "black" }) }))));
|
|
6
6
|
}export{InboxDetails as default};//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/InboxMessage/InboxDetails/index.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/InboxMessage/InboxDetails/index.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"iNAMwB,SAAA,YAAY,CAAC,EAAE,YAAY,EAAE,YAAY,EAAO,EAAA;IAEpE,QACIA,sCAAK,SAAS,EAAE,GAAG,CAAC,UAAU,CAAC,kBAAkB,CAAC,EAAA;QAC9CA,cAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAC,SAAS,EAAA;YACpBA,cAAgB,CAAA,aAAA,CAAA,IAAA,EAAA,IAAA,EAAA,SAAA,CAAA;AAChB,YAAAA,cAAA,CAAA,aAAA,CAAC,MAAM,EAAA,EACH,OAAO,EAAE,YAAY,EACrB,EAAE,EAAC,GAAG,EACN,SAAS,EAAC,WAAW,EACrB,WAAW,EAAC,MAAM,EAClB,SAAS,EAAEA,cAAA,CAAA,aAAA,CAAC,cAAc,EAAC,EAAA,KAAK,EAAC,OAAO,EAAG,CAAA,EAAA,CACrC,CACR,CACJ,EACR;AACN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageBox.d.ts","sourceRoot":"","sources":["../../../../src/components/messenger/messagesList/messageBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAEvD,OAAO,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"messageBox.d.ts","sourceRoot":"","sources":["../../../../src/components/messenger/messagesList/messageBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAEvD,OAAO,oBAAoB,CAAC;AAU5B,eAAO,MAAM,UAAU,yBA4DtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/messenger/postMessage/postMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"postMessage.d.ts","sourceRoot":"","sources":["../../../../src/components/messenger/postMessage/postMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAU5C,eAAO,MAAM,WAAW,mCAgBvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/messenger/sidebarThreadList/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/messenger/sidebarThreadList/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AAY5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGrD,UAAU,MAAM;IACZ,gBAAgB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC1C;AAMD,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,MAAM,CA2KxC,CAAC"}
|
package/lib/compute.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as React from'react';import {IMenuPosition}from'@common-stack/client-react';import {
|
|
1
|
+
import*as React from'react';import {IMenuPosition}from'@common-stack/client-react';import {AiOutlineInbox}from'@react-icons/all-files/ai/AiOutlineInbox';import {getFilteredMenus,getFilteredRoutes}from'./utils/index.js';const Dashboard = React.lazy(() => import('./containers/Dashboard.js'));
|
|
2
2
|
React.lazy(() => import('./containers/Messenger.js'));
|
|
3
3
|
React.lazy(() => import('./containers/Inbox.js'));
|
|
4
4
|
const DirectChannelView = React.lazy(() => import('./components/channel_view/DirectChannelView.js'));
|
|
@@ -15,7 +15,7 @@ const PublicChannelView = React.lazy(() => import('./components/channel_view/Pub
|
|
|
15
15
|
const messengerPageStore = [
|
|
16
16
|
{
|
|
17
17
|
exact: false,
|
|
18
|
-
icon: React.createElement(
|
|
18
|
+
icon: React.createElement(AiOutlineInbox, null),
|
|
19
19
|
key: 'dashboard',
|
|
20
20
|
component: Dashboard,
|
|
21
21
|
tab: 'Messenger',
|
|
@@ -25,7 +25,7 @@ const messengerPageStore = [
|
|
|
25
25
|
},
|
|
26
26
|
// {
|
|
27
27
|
// exact: false,
|
|
28
|
-
// icon: <
|
|
28
|
+
// icon: <AiOutlineInbox />,
|
|
29
29
|
// key: 'messenger-chat',
|
|
30
30
|
// component: Dashboard,
|
|
31
31
|
// tab: 'Messenger',
|
package/lib/compute.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute.js","sources":["../src/compute.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compute.js","sources":["../src/compute.tsx"],"sourcesContent":[null],"names":[],"mappings":"2NAIA,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,OAAO,2BAAwB,CAAC,CAAC,CAAC;AACnD,KAAK,CAAC,IAAI,CAAC,MAAM,OAAO,2BAAwB,CAAC,EAAE;AACvD,KAAK,CAAC,IAAI,CAAC,MAAM,OAAO,uBAAoB,CAAC,E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
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"typescript": {
|
|
61
61
|
"definition": "lib/index.d.ts"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "f65b77b88539c701c56c6ef0e190a36901246535"
|
|
64
64
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { Button } from '@chakra-ui/react';
|
|
3
|
-
import {
|
|
3
|
+
import { AiOutlineClose } from "@react-icons/all-files/ai/AiOutlineClose";
|
|
4
4
|
import { css } from '@emotion/css';
|
|
5
5
|
import { styleSheet } from './style';
|
|
6
6
|
|
|
@@ -15,7 +15,7 @@ export default function InboxDetails({ handleToggle, toggleDrawer }: any) {
|
|
|
15
15
|
as="a"
|
|
16
16
|
className="close-btn"
|
|
17
17
|
marginRight='10px'
|
|
18
|
-
rightIcon={<
|
|
18
|
+
rightIcon={<AiOutlineClose color="black" />}
|
|
19
19
|
></Button>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
@@ -5,7 +5,10 @@ import 'antd/dist/antd.css';
|
|
|
5
5
|
import { Tooltip, Avatar } from 'antd';
|
|
6
6
|
import { Comment, } from '@ant-design/compatible';
|
|
7
7
|
import Moment from 'moment';
|
|
8
|
-
import {
|
|
8
|
+
import { AiFillLike } from "@react-icons/all-files/ai/AiFillLike";
|
|
9
|
+
import { AiOutlineLike } from "@react-icons/all-files/ai/AiOutlineLike";
|
|
10
|
+
import { AiOutlineDislike } from "@react-icons/all-files/ai/AiOutlineDislike";
|
|
11
|
+
import { AiFillDislike } from "@react-icons/all-files/ai/AiFillDislike";
|
|
9
12
|
|
|
10
13
|
export const MessageBox = () => {
|
|
11
14
|
const [likes, setLikes] = useState(0);
|
|
@@ -27,13 +30,13 @@ export const MessageBox = () => {
|
|
|
27
30
|
const actions = [
|
|
28
31
|
<Tooltip key="comment-basic-like" title="Like">
|
|
29
32
|
<span onClick={like}>
|
|
30
|
-
{createElement(action === 'liked' ?
|
|
33
|
+
{createElement(action === 'liked' ? AiFillLike : AiOutlineLike)}
|
|
31
34
|
<span className="comment-action">{likes}</span>
|
|
32
35
|
</span>
|
|
33
36
|
</Tooltip>,
|
|
34
37
|
<Tooltip key="comment-basic-dislike" title="Dislike">
|
|
35
38
|
<span onClick={dislike}>
|
|
36
|
-
{React.createElement(action === 'disliked' ?
|
|
39
|
+
{React.createElement(action === 'disliked' ? AiFillDislike : AiOutlineDislike)}
|
|
37
40
|
<span className="comment-action">{dislikes}</span>
|
|
38
41
|
</span>
|
|
39
42
|
</Tooltip>,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { FC, useState } from 'react';
|
|
2
2
|
import { Col, Input } from 'antd';
|
|
3
|
-
import {
|
|
3
|
+
import { AiOutlinePaperClip } from "@react-icons/all-files/ai/AiOutlinePaperClip";
|
|
4
|
+
import { AiOutlineSmile } from "@react-icons/all-files/ai/AiOutlineSmile";
|
|
4
5
|
import { css } from '@emotion/css';
|
|
5
6
|
import { IMessageList } from './../types/message';
|
|
6
7
|
import { messagesData } from './../mock';
|
|
@@ -18,8 +19,8 @@ export const PostMessage = (props) => {
|
|
|
18
19
|
style={{ width: '100%' }}
|
|
19
20
|
/>
|
|
20
21
|
<div className="icon">
|
|
21
|
-
<
|
|
22
|
-
<
|
|
22
|
+
<AiOutlinePaperClip />
|
|
23
|
+
<AiOutlineSmile />
|
|
23
24
|
</div>
|
|
24
25
|
</div>
|
|
25
26
|
)
|
|
@@ -4,7 +4,6 @@ import { Popover, Avatar } from 'antd';
|
|
|
4
4
|
import { Comment } from '@ant-design/compatible';
|
|
5
5
|
import { useSelector } from 'react-redux';
|
|
6
6
|
import { IoBookmarkOutline } from 'react-icons/io5';
|
|
7
|
-
import { CommentOutlined, SmileOutlined, SaveOutlined, EllipsisOutlined } from '@ant-design/icons';
|
|
8
7
|
import { useGetUserAccountQuery } from '@adminide-stack/account-api-client';
|
|
9
8
|
import { BiDotsHorizontalRounded, BiPaperPlane, BiEdit } from 'react-icons/bi';
|
|
10
9
|
import { MdOutlineEmojiEmotions } from 'react-icons/md';
|
|
@@ -4,7 +4,7 @@ import { messagesData } from './../mock';
|
|
|
4
4
|
import { IMessageList } from './../types/message';
|
|
5
5
|
import { css } from '@emotion/css';
|
|
6
6
|
import { Input, Col, Row } from 'antd';
|
|
7
|
-
import {
|
|
7
|
+
import { AiOutlineClose } from "@react-icons/all-files/ai/AiOutlineClose";
|
|
8
8
|
import { HiOutlinePaperClip } from 'react-icons/hi';
|
|
9
9
|
import { MdOutlineEmojiEmotions } from 'react-icons/md';
|
|
10
10
|
import { Picker } from 'emoji-mart';
|
|
@@ -67,7 +67,7 @@ export const ThreadSidebar = (props) => {
|
|
|
67
67
|
return (
|
|
68
68
|
<div className={css(styleSheet.ThreadSidebarStyles)}>
|
|
69
69
|
<Col>
|
|
70
|
-
<div className='close-icon'><
|
|
70
|
+
<div className='close-icon'><AiOutlineClose /></div>
|
|
71
71
|
</Col>
|
|
72
72
|
<Col md={16}>
|
|
73
73
|
<SidebarThreadList userMessagesList={userMessagesReplyList} />
|
package/src/compute.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IMenuPosition } from '@common-stack/client-react';
|
|
3
|
-
import {
|
|
3
|
+
import { AiOutlineInbox } from '@react-icons/all-files/ai/AiOutlineInbox';
|
|
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'));
|
|
@@ -22,7 +22,7 @@ const PublicChannelView = React.lazy(() => import('./components/channel_view/Pub
|
|
|
22
22
|
export const messengerPageStore: any[] = [
|
|
23
23
|
{
|
|
24
24
|
exact: false,
|
|
25
|
-
icon: <
|
|
25
|
+
icon: <AiOutlineInbox/>,
|
|
26
26
|
key: 'dashboard',
|
|
27
27
|
component: Dashboard,
|
|
28
28
|
tab: 'Messenger',
|
|
@@ -32,7 +32,7 @@ export const messengerPageStore: any[] = [
|
|
|
32
32
|
},
|
|
33
33
|
// {
|
|
34
34
|
// exact: false,
|
|
35
|
-
// icon: <
|
|
35
|
+
// icon: <AiOutlineInbox />,
|
|
36
36
|
// key: 'messenger-chat',
|
|
37
37
|
// component: Dashboard,
|
|
38
38
|
// tab: 'Messenger',
|