@messenger-box/platform-browser 10.0.3-alpha.16 → 10.0.3-alpha.160
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 +228 -0
- package/lib/components/InboxMessage/InboxDetails/index.d.ts +6 -1
- package/lib/components/InboxMessage/InboxDetails/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/InboxDetails/index.js +10 -11
- package/lib/components/InboxMessage/InboxDetails/index.js.map +1 -1
- package/lib/components/InboxMessage/InboxSidebar/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/InboxSidebar/index.js +23 -32
- package/lib/components/InboxMessage/InboxSidebar/index.js.map +1 -1
- package/lib/components/InboxMessage/Messages/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/Messages/index.js +42 -81
- package/lib/components/InboxMessage/Messages/index.js.map +1 -1
- package/lib/components/InboxMessage/MessagesList/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/MessagesList/index.js +53 -74
- package/lib/components/InboxMessage/MessagesList/index.js.map +1 -1
- package/lib/components/InboxMessage/Popover/index.d.ts +5 -1
- package/lib/components/InboxMessage/Popover/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/Popover/index.js +8 -35
- package/lib/components/InboxMessage/Popover/index.js.map +1 -1
- package/lib/components/InboxMessage/UserModalContent/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/UserModalContent/index.js +50 -47
- package/lib/components/InboxMessage/UserModalContent/index.js.map +1 -1
- package/lib/components/InboxMessage/index.d.ts.map +1 -1
- package/lib/components/InboxMessage/index.js +38 -70
- package/lib/components/InboxMessage/index.js.map +1 -1
- package/lib/components/channel_view/DirectChannelView.js.map +1 -1
- package/lib/components/channel_view/PublicChannelView.js.map +1 -1
- package/lib/components/dashboard/menu_header.d.ts.map +1 -1
- package/lib/components/dashboard/menu_header.js +38 -24
- package/lib/components/dashboard/menu_header.js.map +1 -1
- package/lib/components/dashboard/modals/direct_modal.d.ts +10 -8
- package/lib/components/dashboard/modals/direct_modal.d.ts.map +1 -1
- package/lib/components/dashboard/modals/direct_modal.js +59 -39
- package/lib/components/dashboard/modals/direct_modal.js.map +1 -1
- package/lib/components/dashboard/modals.d.ts +18 -6
- package/lib/components/dashboard/modals.d.ts.map +1 -1
- package/lib/components/dashboard/modals.js +60 -101
- package/lib/components/dashboard/modals.js.map +1 -1
- package/lib/components/messenger/avatar/index.d.ts.map +1 -1
- package/lib/components/messenger/index.d.ts.map +1 -1
- package/lib/components/messenger/index.js +45 -82
- package/lib/components/messenger/index.js.map +1 -1
- package/lib/components/messenger/messagesList/index.d.ts.map +1 -1
- package/lib/components/messenger/messagesList/index.js +174 -454
- package/lib/components/messenger/messagesList/index.js.map +1 -1
- package/lib/components/messenger/messagesList/messageBox.d.ts +0 -1
- package/lib/components/messenger/messagesList/messageBox.d.ts.map +1 -1
- package/lib/components/messenger/more_action/index.d.ts.map +1 -1
- package/lib/components/messenger/postMessage/postMessage.d.ts +7 -2
- package/lib/components/messenger/postMessage/postMessage.d.ts.map +1 -1
- package/lib/components/messenger/sidebarThreadList/index.d.ts.map +1 -1
- package/lib/components/messenger/threadSidebar/index.d.ts.map +1 -1
- package/lib/components/messenger/types/message.d.ts +11 -11
- package/lib/components/messenger/types/message.d.ts.map +1 -1
- package/lib/components/post/channel_intro_message/channel_intro_message.d.ts.map +1 -1
- package/lib/components/post/channel_layout/channel_identifier_router/channel_identifier_router.d.ts.map +1 -1
- package/lib/components/post/channel_view/channel_view.d.ts.map +1 -1
- package/lib/components/post/create_post/create_post.d.ts +10 -1
- package/lib/components/post/create_post/create_post.d.ts.map +1 -1
- package/lib/components/post/failed_post_options/failed_post_options.d.ts.map +1 -1
- package/lib/components/post/index.d.ts +5 -3
- package/lib/components/post/index.d.ts.map +1 -1
- package/lib/components/post/index.js +63 -97
- package/lib/components/post/index.js.map +1 -1
- package/lib/components/post/markdown/markdown.d.ts.map +1 -1
- package/lib/components/post/post/post.d.ts.map +1 -1
- package/lib/components/post/post_body/post_body.d.ts.map +1 -1
- package/lib/components/post/post_body_additional_content/post_body_additional_content.d.ts.map +1 -1
- package/lib/components/post/post_header/post_header.d.ts.map +1 -1
- package/lib/components/post/post_header/post_header_custom_status.d.ts.map +1 -1
- package/lib/components/post/post_info/post_info.d.ts.map +1 -1
- package/lib/components/post/post_list/post_list.d.ts.map +1 -1
- package/lib/components/post/post_list_row/post_list_row.d.ts.map +1 -1
- package/lib/components/post/post_list_virtualized/post_list_virtualized.d.ts.map +1 -1
- package/lib/components/post/post_markdown/post_markdown.d.ts.map +1 -1
- package/lib/components/post/post_message_view/post_message_view.d.ts.map +1 -1
- package/lib/components/post/post_pre_header/post_pre_header.d.ts.map +1 -1
- package/lib/components/post/post_profile_picture/post_profile_picture.d.ts.map +1 -1
- package/lib/components/post/profile_picture/profile_picture.d.ts.map +1 -1
- package/lib/components/post/show_more/show_more.d.ts.map +1 -1
- package/lib/components/post/suggestion/suggestion_box.d.ts.map +1 -1
- package/lib/components/post/textbox/textbox.d.ts.map +1 -1
- package/lib/components/post/threading/channel_threads/thread_footer/thread_footer.d.ts.map +1 -1
- package/lib/components/post/tutorial/menu_tutorial_tip.d.ts.map +1 -1
- package/lib/components/post/tutorial/tutorial_tip/tutorial_tip.d.ts.map +1 -1
- package/lib/components/post_view/post_attachment_container/post_attachment_container.d.ts.map +1 -1
- package/lib/components/status_icon.d.ts.map +1 -1
- package/lib/compute.js.map +1 -1
- package/lib/containers/Dashboard.d.ts.map +1 -1
- package/lib/containers/Dashboard.js +110 -124
- package/lib/containers/Dashboard.js.map +1 -1
- package/lib/containers/DashboardWithLoader.d.ts.map +1 -1
- package/lib/containers/DashboardWithLoader.js +10 -3
- package/lib/containers/DashboardWithLoader.js.map +1 -1
- package/lib/containers/Inbox.js.map +1 -1
- package/lib/containers/Messenger.js.map +1 -1
- package/lib/module.js.map +1 -1
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/widgets/simple_tooltip/simple_tooltip.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/components/InboxMessage/InboxDetails/index.tsx +13 -15
- package/src/components/InboxMessage/InboxSidebar/index.tsx +23 -33
- package/src/components/InboxMessage/Messages/index.tsx +57 -96
- package/src/components/InboxMessage/MessagesList/index.tsx +71 -82
- package/src/components/InboxMessage/Popover/index.tsx +14 -38
- package/src/components/InboxMessage/UserModalContent/index.tsx +41 -44
- package/src/components/InboxMessage/index.tsx +52 -67
- package/src/components/dashboard/menu_header.tsx +52 -45
- package/src/components/dashboard/modals/direct_modal.tsx +73 -40
- package/src/components/dashboard/modals.tsx +114 -105
- package/src/components/messenger/avatar/index.tsx +27 -13
- package/src/components/messenger/index.tsx +125 -160
- package/src/components/messenger/messagesList/index.tsx +288 -572
- package/src/components/messenger/messagesList/messageBox.tsx +45 -34
- package/src/components/messenger/more_action/index.tsx +16 -10
- package/src/components/messenger/postMessage/postMessage.tsx +28 -16
- package/src/components/messenger/sidebarThreadList/index.tsx +51 -177
- package/src/components/messenger/threadSidebar/index.tsx +88 -75
- package/src/components/messenger/types/message.ts +12 -11
- package/src/components/post/channel_view/channel_view.tsx +2 -2
- package/src/components/post/create_post/create_post.tsx +104 -195
- package/src/components/post/index.tsx +77 -98
- package/src/components/post/post_header/post_header_custom_status.tsx +7 -6
- package/src/components/post/post_header/style.ts +51 -51
- package/src/containers/Dashboard.tsx +169 -212
- package/src/containers/DashboardWithLoader.tsx +12 -4
- package/lib/components/InboxMessage/InboxDetails/style.d.ts +0 -2
- package/lib/components/InboxMessage/InboxDetails/style.d.ts.map +0 -1
- package/lib/components/InboxMessage/InboxDetails/style.js +0 -27
- package/lib/components/InboxMessage/InboxDetails/style.js.map +0 -1
- package/lib/components/InboxMessage/InboxSidebar/styles.d.ts +0 -2
- package/lib/components/InboxMessage/InboxSidebar/styles.d.ts.map +0 -1
- package/lib/components/InboxMessage/InboxSidebar/styles.js +0 -57
- package/lib/components/InboxMessage/InboxSidebar/styles.js.map +0 -1
- package/lib/components/InboxMessage/Messages/styles.d.ts +0 -81
- package/lib/components/InboxMessage/Messages/styles.d.ts.map +0 -1
- package/lib/components/InboxMessage/Messages/styles.js +0 -85
- package/lib/components/InboxMessage/Messages/styles.js.map +0 -1
- package/lib/components/InboxMessage/Popover/style.d.ts +0 -28
- package/lib/components/InboxMessage/Popover/style.d.ts.map +0 -1
- package/lib/components/InboxMessage/Popover/style.js +0 -27
- package/lib/components/InboxMessage/Popover/style.js.map +0 -1
- package/lib/components/InboxMessage/UserModalContent/style.d.ts +0 -2
- package/lib/components/InboxMessage/UserModalContent/style.d.ts.map +0 -1
- package/lib/components/InboxMessage/UserModalContent/style.js +0 -98
- package/lib/components/InboxMessage/UserModalContent/style.js.map +0 -1
- package/lib/components/InboxMessage/style.js +0 -189
- package/lib/components/InboxMessage/style.js.map +0 -1
- package/lib/components/messenger/avatar/style.d.ts +0 -2
- package/lib/components/messenger/avatar/style.d.ts.map +0 -1
- package/lib/components/messenger/messagesList/style.js +0 -446
- package/lib/components/messenger/messagesList/style.js.map +0 -1
- package/lib/components/messenger/more_action/index.js +0 -48
- package/lib/components/messenger/more_action/index.js.map +0 -1
- package/lib/components/messenger/more_action/style.d.ts +0 -2
- package/lib/components/messenger/more_action/style.d.ts.map +0 -1
- package/lib/components/messenger/more_action/style.js +0 -45
- package/lib/components/messenger/more_action/style.js.map +0 -1
- package/lib/components/post/style.js +0 -20101
- package/lib/components/post/style.js.map +0 -1
- package/lib/style.js +0 -400
- package/lib/style.js.map +0 -1
- package/src/components/InboxMessage/InboxDetails/style.ts +0 -27
- package/src/components/InboxMessage/InboxSidebar/styles.ts +0 -57
- package/src/components/InboxMessage/Messages/styles.ts +0 -85
- package/src/components/InboxMessage/Popover/style.ts +0 -27
- package/src/components/InboxMessage/UserModalContent/style.ts +0 -98
- package/src/components/messenger/avatar/style.ts +0 -86
- package/src/components/messenger/more_action/style.ts +0 -45
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as React from'react';import {useTranslation}from'react-i18next';import {
|
|
1
|
+
import*as React from'react';import {useTranslation}from'react-i18next';import {FiSearch}from'@react-icons/all-files/fi/FiSearch.js';import {VscMenu}from'@react-icons/all-files/vsc/VscMenu.js';const MenuHeader = ({
|
|
2
2
|
clickedChannel,
|
|
3
3
|
handleClass
|
|
4
4
|
}) => {
|
|
@@ -6,39 +6,53 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {s
|
|
|
6
6
|
t
|
|
7
7
|
} = useTranslation();
|
|
8
8
|
return React.createElement("div", {
|
|
9
|
-
className:
|
|
9
|
+
className: "w-full bg-white border-b border-gray-200"
|
|
10
10
|
}, React.createElement("div", {
|
|
11
|
-
className: "
|
|
11
|
+
className: "flex items-center justify-between h-16 px-4"
|
|
12
|
+
}, React.createElement("div", {
|
|
13
|
+
className: "flex items-center"
|
|
12
14
|
}, React.createElement("button", {
|
|
13
15
|
type: "button",
|
|
14
|
-
className: "
|
|
16
|
+
className: "p-2 text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",
|
|
15
17
|
onClick: handleClass
|
|
16
18
|
}, React.createElement("span", {
|
|
17
19
|
className: "sr-only"
|
|
18
|
-
},
|
|
19
|
-
className: "
|
|
20
|
-
}
|
|
21
|
-
className: "
|
|
20
|
+
}, t('messenger_box_browser.toggle_sidebar')), React.createElement(VscMenu, {
|
|
21
|
+
className: "w-6 h-6"
|
|
22
|
+
})), React.createElement("div", {
|
|
23
|
+
className: "ml-4"
|
|
24
|
+
}, clickedChannel.id && React.createElement("div", {
|
|
25
|
+
className: "flex items-center space-x-2"
|
|
22
26
|
}, React.createElement("div", {
|
|
23
|
-
className: "
|
|
24
|
-
},
|
|
25
|
-
className: "
|
|
26
|
-
}, React.createElement("span", {
|
|
27
|
-
className: "
|
|
28
|
-
}
|
|
29
|
-
className: "
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
className: "flex items-center hover:text-gray-900 cursor-pointer"
|
|
28
|
+
}, React.createElement("div", {
|
|
29
|
+
className: "w-2 h-2 bg-green-500 rounded-full mr-2"
|
|
30
|
+
}), " ", React.createElement("span", {
|
|
31
|
+
className: "font-medium"
|
|
32
|
+
}, clickedChannel.type === 'DIRECT' ? clickedChannel.displayName : clickedChannel.title), React.createElement("svg", {
|
|
33
|
+
className: "w-4 h-4 ml-1",
|
|
34
|
+
fill: "none",
|
|
35
|
+
stroke: "currentColor",
|
|
36
|
+
viewBox: "0 0 24 24"
|
|
37
|
+
}, React.createElement("path", {
|
|
38
|
+
strokeLinecap: "round",
|
|
39
|
+
strokeLinejoin: "round",
|
|
40
|
+
strokeWidth: 2,
|
|
41
|
+
d: "M19 9l-7 7-7-7"
|
|
42
|
+
})))))), React.createElement("div", {
|
|
43
|
+
className: "flex items-center space-x-2"
|
|
44
|
+
}, React.createElement("button", {
|
|
32
45
|
type: "button",
|
|
33
|
-
className: "
|
|
46
|
+
className: "p-2 text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",
|
|
34
47
|
"aria-label": "Search"
|
|
35
|
-
}, React.createElement(
|
|
36
|
-
className: "
|
|
37
|
-
|
|
38
|
-
}, React.createElement(FiSearch, null))), React.createElement("button", {
|
|
48
|
+
}, React.createElement(FiSearch, {
|
|
49
|
+
className: "w-5 h-5"
|
|
50
|
+
})), React.createElement("button", {
|
|
39
51
|
type: "button",
|
|
40
|
-
className: "
|
|
52
|
+
className: "p-2 text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",
|
|
41
53
|
"data-toggle": "collapse",
|
|
42
54
|
"data-target": "#sidebar-nav"
|
|
43
|
-
}, React.createElement(
|
|
55
|
+
}, React.createElement(VscMenu, {
|
|
56
|
+
className: "w-5 h-5"
|
|
57
|
+
})))));
|
|
44
58
|
};export{MenuHeader};//# sourceMappingURL=menu_header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu_header.js","sources":["../../../src/components/dashboard/menu_header.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"menu_header.js","sources":["../../../src/components/dashboard/menu_header.tsx"],"sourcesContent":[null],"names":[],"mappings":"gMAKO,MAAM,UAAU,GAAG,CAAC;AACvB,EAAA,cAAW;AACX,EAAA;;;;oBAUoB,EAAA;AACA,EAAA,OAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAIJ,IAAA,SAAA,EAAA;wBAGY,CAAA,KAAA,EAAA;;;;iCAIc,EAAA;AACF,IAAA,IAAA,EAAA,QAAA;AAER,IAAA,SAAA,EAAA,8IAAmF;;wBAevG,CAAA,MAAA,EAAA;;AAMQ,GAAA,EAAA,CAAA,CAAA,0CAAS,KAAC,CAAA,aAAU,CAAA,OACf,EAAA;;0BAQL,CAAA,KAAA,EAAA;AAMxB,IAAE,SAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface DirectModalProps {
|
|
3
|
+
show: boolean;
|
|
4
|
+
onHide: () => void;
|
|
5
|
+
options: any[];
|
|
5
6
|
selectedValues: any;
|
|
6
|
-
handleSelect: any;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) => React.JSX.Element;
|
|
7
|
+
handleSelect: (value: any) => void;
|
|
8
|
+
handleGo: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const DirectModal: ({ show, onHide, options, selectedValues, handleSelect, handleGo }: DirectModalProps) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
10
12
|
//# sourceMappingURL=direct_modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"direct_modal.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/modals/direct_modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"direct_modal.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/modals/direct_modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,gBAAgB;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,cAAc,EAAE,GAAG,CAAC;IACpB,YAAY,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACnC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,WAAW,GAAI,mEAAmE,gBAAgB,sBAwE9G,CAAC"}
|
|
@@ -1,43 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import React__default from'react';import {useTranslation}from'react-i18next';import {VscChromeClose}from'@react-icons/all-files/vsc/VscChromeClose.js';import Select from'react-select';const DirectModal = ({
|
|
2
|
+
show,
|
|
3
|
+
onHide,
|
|
4
|
+
options,
|
|
4
5
|
selectedValues,
|
|
5
6
|
handleSelect,
|
|
6
|
-
options,
|
|
7
7
|
handleGo
|
|
8
8
|
}) => {
|
|
9
9
|
const {
|
|
10
10
|
t
|
|
11
11
|
} = useTranslation();
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
})),
|
|
32
|
-
className:
|
|
33
|
-
},
|
|
34
|
-
className: "
|
|
35
|
-
},
|
|
36
|
-
className: "
|
|
37
|
-
},
|
|
38
|
-
className: "
|
|
39
|
-
}, React.createElement(Select, {
|
|
40
|
-
className: "temp",
|
|
12
|
+
if (!show) return null;
|
|
13
|
+
return React__default.createElement("div", {
|
|
14
|
+
className: "fixed inset-0 z-50 overflow-y-auto"
|
|
15
|
+
}, React__default.createElement("div", {
|
|
16
|
+
className: "flex min-h-full items-center justify-center p-4"
|
|
17
|
+
}, React__default.createElement("div", {
|
|
18
|
+
className: "fixed inset-0 bg-black bg-opacity-25",
|
|
19
|
+
onClick: onHide
|
|
20
|
+
}), React__default.createElement("div", {
|
|
21
|
+
className: "relative w-full max-w-md transform overflow-hidden rounded-lg bg-white shadow-xl transition-all"
|
|
22
|
+
}, React__default.createElement("div", {
|
|
23
|
+
className: "bg-blue-600 px-4 py-3 flex items-center justify-between"
|
|
24
|
+
}, React__default.createElement("h3", {
|
|
25
|
+
className: "text-lg font-medium text-white"
|
|
26
|
+
}, t('messenger_box_browser.direct_message')), React__default.createElement("button", {
|
|
27
|
+
onClick: onHide,
|
|
28
|
+
className: "text-white hover:text-gray-200 transition-colors"
|
|
29
|
+
}, React__default.createElement(VscChromeClose, {
|
|
30
|
+
className: "w-5 h-5"
|
|
31
|
+
}))), React__default.createElement("div", {
|
|
32
|
+
className: "p-6"
|
|
33
|
+
}, React__default.createElement("div", {
|
|
34
|
+
className: "space-y-4"
|
|
35
|
+
}, React__default.createElement("div", {
|
|
36
|
+
className: "flex space-x-2"
|
|
37
|
+
}, React__default.createElement(Select, {
|
|
38
|
+
className: "flex-1",
|
|
41
39
|
value: selectedValues.value,
|
|
42
40
|
onChange: handleSelect,
|
|
43
41
|
components: {
|
|
@@ -47,10 +45,32 @@ import*as React from'react';import {Modal}from'react-bootstrap';import {useTrans
|
|
|
47
45
|
autoFocus: true,
|
|
48
46
|
options: options,
|
|
49
47
|
isMulti: true,
|
|
50
|
-
menuIsOpen: true
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
menuIsOpen: true,
|
|
49
|
+
styles: {
|
|
50
|
+
control: base => ({
|
|
51
|
+
...base,
|
|
52
|
+
borderRadius: '0.375rem',
|
|
53
|
+
borderColor: '#E5E7EB'
|
|
54
|
+
}),
|
|
55
|
+
menu: base => ({
|
|
56
|
+
...base,
|
|
57
|
+
marginTop: '0',
|
|
58
|
+
boxShadow: 'none',
|
|
59
|
+
border: 'none'
|
|
60
|
+
})
|
|
61
|
+
}
|
|
62
|
+
}), React__default.createElement("button", {
|
|
63
|
+
onClick: handleGo,
|
|
64
|
+
className: "px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"
|
|
65
|
+
}, t('messenger_box_browser.go'))), React__default.createElement("div", {
|
|
66
|
+
className: "relative"
|
|
67
|
+
}, React__default.createElement("div", {
|
|
68
|
+
className: "absolute inset-0 flex items-center"
|
|
69
|
+
}, React__default.createElement("div", {
|
|
70
|
+
className: "w-full border-t border-gray-300"
|
|
71
|
+
})), React__default.createElement("div", {
|
|
72
|
+
className: "relative flex justify-center text-sm"
|
|
73
|
+
}, React__default.createElement("span", {
|
|
74
|
+
className: "px-2 text-gray-500 bg-white"
|
|
75
|
+
}, t('messenger_box_browser.use_browse_or_select')))))))));
|
|
56
76
|
};export{DirectModal};//# sourceMappingURL=direct_modal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"direct_modal.js","sources":["../../../../src/components/dashboard/modals/direct_modal.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"direct_modal.js","sources":["../../../../src/components/dashboard/modals/direct_modal.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"wLAcO,MAAM,WAAW,GAAG,CAAC;AACxB,EAAA,IAAA;AAEA,EAAA,MAAI;AAAO,EAAA,OAAA;AAEX,EAAA,cACI;cACI;AACI,EAAA;;;;AAMQ,GAAA,GAAA,cAAA,EAAA;AACI,EAAA,IAAA,CAAA,IAAA,EAAA,OAAA,IAAA;qCAKR,CAAA,KAAA,EAAA;;iCAEQ,CAAA,KAAA,EAAA;AACI,IAAA,SAAA,EAAA;AAKQ,GAAA,EAAAA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AACA,IAAA,SAAA,EAAA,sCAAA;AACH,IAAA,OAAA,EAAA;AAMG,GAAA,CAAA,EAAAA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AACI,IAAA,SAAA,EAAA;AACA,GAAA,EAAAA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AACA,IAAA,SAAA,EAAA;;AAEJ,IAAA,SAAA,EAAA;AACI,GAAA,EAAA,CAAA,CAAA,sCAAG,CAAA,CAAI,EAAAA,cAAA,CAAA,aAAA,CAAA,QAAA,EAAA;AACP,IAAA,OAAA,EAAA,MAAA;AACA,IAAA,SAAA,EAAA;AACA,GAAA,EAAAA,cAAA,CAAA,aAAA,CAAA,cAAA,EAAA;;0CAEP,EAAA;AAEL,IAAA,SAAA,EAAA;iCAOJ,CAAA,KAAA,EAAA;;AAEQ,GAAA,EAAAA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;;AAGA,GAAA,EAAAA,cAAA,CAAA,aAAA,CAAA,MAAA,EAAA;AAWpC,IAAE,SAAA,EAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
interface Channel {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
}
|
|
6
|
+
interface DirectMoreModal {
|
|
7
|
+
showDirectMore: boolean;
|
|
8
|
+
handleShow: (type: string, title: string) => void;
|
|
9
|
+
modalPublicChannels: Channel[];
|
|
10
|
+
handleJoin: (channelId: string) => void;
|
|
11
|
+
}
|
|
12
|
+
interface ModalsProps {
|
|
13
|
+
directMoreModal: DirectMoreModal;
|
|
4
14
|
publicChlModal: any;
|
|
5
|
-
handleClose:
|
|
6
|
-
handleChange:
|
|
7
|
-
handleCreate:
|
|
8
|
-
}
|
|
15
|
+
handleClose: (type: string) => void;
|
|
16
|
+
handleChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
17
|
+
handleCreate: () => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const Modals: React.FC<ModalsProps>;
|
|
20
|
+
export {};
|
|
9
21
|
//# sourceMappingURL=modals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modals.d.ts","sourceRoot":"","sources":["../../../src/components/dashboard/modals.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"modals.d.ts","sourceRoot":"","sources":["../../../src/components/dashboard/modals.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,UAAU,OAAO;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,eAAe;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,mBAAmB,EAAE,OAAO,EAAE,CAAC;IAC/B,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,UAAU,WAAW;IACjB,eAAe,EAAE,eAAe,CAAC;IACjC,cAAc,EAAE,GAAG,CAAC;IACpB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,YAAY,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/D,YAAY,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAyGxC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as React from'react';import {
|
|
1
|
+
import*as React from'react';import {useTranslation}from'react-i18next';import {VscChromeClose}from'@react-icons/all-files/vsc/VscChromeClose.js';const Modals = ({
|
|
2
2
|
directMoreModal,
|
|
3
3
|
publicChlModal,
|
|
4
4
|
handleClose,
|
|
@@ -8,112 +8,71 @@ import*as React from'react';import {Modal,Button}from'react-bootstrap';import {u
|
|
|
8
8
|
const {
|
|
9
9
|
t
|
|
10
10
|
} = useTranslation();
|
|
11
|
+
if (!directMoreModal.showDirectMore) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
11
14
|
return React.createElement("div", {
|
|
12
|
-
className:
|
|
13
|
-
}, React.createElement(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
className:
|
|
15
|
+
className: "fixed inset-0 z-50 overflow-y-auto"
|
|
16
|
+
}, React.createElement("div", {
|
|
17
|
+
className: "flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0"
|
|
18
|
+
}, React.createElement("div", {
|
|
19
|
+
className: "fixed inset-0 transition-opacity",
|
|
20
|
+
"aria-hidden": "true"
|
|
21
|
+
}, React.createElement("div", {
|
|
22
|
+
className: "absolute inset-0 bg-gray-500 opacity-75"
|
|
23
|
+
})), React.createElement("span", {
|
|
24
|
+
className: "hidden sm:inline-block sm:align-middle sm:h-screen",
|
|
25
|
+
"aria-hidden": "true"
|
|
26
|
+
}, "\u200B"), React.createElement("div", {
|
|
27
|
+
className: "inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full"
|
|
28
|
+
}, React.createElement("div", {
|
|
29
|
+
className: "bg-primary-600 px-4 py-3 sm:px-6 flex items-center justify-between"
|
|
30
|
+
}, React.createElement("h3", {
|
|
31
|
+
className: "text-lg leading-6 font-medium text-white"
|
|
32
|
+
}, t('messenger_box_browser.direct_messages')), React.createElement("div", {
|
|
33
|
+
className: "flex items-center space-x-4"
|
|
25
34
|
}, React.createElement("button", {
|
|
26
|
-
onClick: () => directMoreModal.handleShow('publicChannel', 'Public Channel')
|
|
27
|
-
|
|
35
|
+
onClick: () => directMoreModal.handleShow('publicChannel', 'Public Channel'),
|
|
36
|
+
className: "text-white hover:text-gray-200 font-medium"
|
|
37
|
+
}, t('messenger_box_browser.create_channel')), React.createElement("button", {
|
|
28
38
|
onClick: () => handleClose('publicMore'),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}))), React.createElement(Modal.Body, {
|
|
35
|
-
className: css(styleSheet.directMoreStyle)
|
|
39
|
+
className: "text-white hover:text-gray-200"
|
|
40
|
+
}, React.createElement(VscChromeClose, {
|
|
41
|
+
className: "h-5 w-5"
|
|
42
|
+
})))), React.createElement("div", {
|
|
43
|
+
className: "bg-white px-4 py-5 sm:p-6"
|
|
36
44
|
}, React.createElement("div", {
|
|
37
|
-
className: "
|
|
45
|
+
className: "space-y-4"
|
|
38
46
|
}, React.createElement("input", {
|
|
39
|
-
|
|
47
|
+
type: "text",
|
|
48
|
+
placeholder: t('messenger_box_browser.search_channels'),
|
|
49
|
+
className: "w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-primary-500 focus:border-primary-500"
|
|
40
50
|
}), directMoreModal.modalPublicChannels.length > 0 ? React.createElement("div", {
|
|
41
|
-
className: "
|
|
42
|
-
}, directMoreModal.modalPublicChannels.map((
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
className: "space-y-2"
|
|
52
|
+
}, directMoreModal.modalPublicChannels.map((channel, index) => React.createElement("div", {
|
|
53
|
+
key: index,
|
|
54
|
+
className: "flex items-center justify-between p-3 hover:bg-gray-50 rounded-md"
|
|
55
|
+
}, React.createElement("h5", {
|
|
56
|
+
onClick: () => directMoreModal.handleJoin(channel.id),
|
|
57
|
+
className: "text-gray-900 font-medium cursor-pointer"
|
|
58
|
+
}, channel.title), React.createElement("button", {
|
|
59
|
+
onClick: () => directMoreModal.handleJoin(channel.id),
|
|
60
|
+
className: "px-3 py-1 text-sm text-primary-600 hover:text-primary-700 font-medium"
|
|
61
|
+
}, t('messenger_box_browser.join'))))) : React.createElement("div", {
|
|
62
|
+
className: "text-center py-8"
|
|
52
63
|
}, React.createElement("p", {
|
|
53
|
-
className: "
|
|
54
|
-
},
|
|
55
|
-
className: "
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
style: {
|
|
61
|
-
backgroundColor: '#2b5ebf',
|
|
62
|
-
color: 'white',
|
|
63
|
-
display: 'flex',
|
|
64
|
-
alignItems: 'center'
|
|
65
|
-
}
|
|
66
|
-
}, React.createElement(Modal.Title, null, t('messenger_box_browser.create_public_channel')), React.createElement(VscChromeClose, {
|
|
67
|
-
onClick: () => handleClose('publicChannel'),
|
|
68
|
-
fontSize: "16px",
|
|
69
|
-
style: {
|
|
70
|
-
marginLeft: 'auto',
|
|
71
|
-
cursor: 'pointer'
|
|
72
|
-
}
|
|
73
|
-
})), React.createElement(Modal.Body, null, React.createElement("div", {
|
|
74
|
-
className: "modal_div",
|
|
75
|
-
style: {
|
|
76
|
-
textAlign: 'center'
|
|
77
|
-
}
|
|
78
|
-
}, React.createElement("label", {
|
|
79
|
-
style: {
|
|
80
|
-
width: '20%',
|
|
81
|
-
fontSize: '15px',
|
|
82
|
-
fontWeight: 500,
|
|
83
|
-
marginRight: '5px'
|
|
84
|
-
}
|
|
85
|
-
}, t('messenger_box_browser.channel_name')), React.createElement("input", {
|
|
86
|
-
type: "text",
|
|
87
|
-
name: "name",
|
|
88
|
-
style: {
|
|
89
|
-
width: '62%',
|
|
90
|
-
height: '35px',
|
|
91
|
-
border: '1px solid gray'
|
|
92
|
-
},
|
|
93
|
-
onChange: e => handleChange(e)
|
|
94
|
-
}), React.createElement("label", {
|
|
95
|
-
style: {
|
|
96
|
-
width: '20%',
|
|
97
|
-
fontSize: '15px',
|
|
98
|
-
fontWeight: 500,
|
|
99
|
-
marginRight: '5px'
|
|
100
|
-
}
|
|
101
|
-
}, t('messenger_box_browser.channel_description')), React.createElement("input", {
|
|
102
|
-
type: "text",
|
|
103
|
-
name: "description",
|
|
104
|
-
style: {
|
|
105
|
-
width: '62%',
|
|
106
|
-
height: '35px',
|
|
107
|
-
border: '1px solid gray'
|
|
108
|
-
},
|
|
109
|
-
onChange: e => handleChange(e)
|
|
110
|
-
}))), React.createElement(Modal.Footer, null, React.createElement(Button, {
|
|
111
|
-
onClick: () => handleClose('publicChannel')
|
|
112
|
-
}, t('messenger_box_browser.close')), React.createElement(Button, {
|
|
64
|
+
className: "text-gray-900 font-medium"
|
|
65
|
+
}, t('messenger_box_browser.no_more_channels_to_join')), React.createElement("p", {
|
|
66
|
+
className: "mt-1 text-gray-500"
|
|
67
|
+
}, t('messenger_box_browser.click_create_new_channel'))))), React.createElement("div", {
|
|
68
|
+
className: "bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"
|
|
69
|
+
}, React.createElement("button", {
|
|
70
|
+
type: "button",
|
|
113
71
|
onClick: handleCreate,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
72
|
+
className: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-primary-600 text-base font-medium text-white hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
73
|
+
}, t('messenger_box_browser.create_channel')), React.createElement("button", {
|
|
74
|
+
type: "button",
|
|
75
|
+
onClick: () => handleClose('publicMore'),
|
|
76
|
+
className: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
77
|
+
}, t('messenger_box_browser.close'))))));
|
|
119
78
|
};export{Modals};//# sourceMappingURL=modals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modals.js","sources":["../../../src/components/dashboard/modals.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modals.js","sources":["../../../src/components/dashboard/modals.tsx"],"sourcesContent":[null],"names":[],"mappings":"iJAwBO,MAAM,MAAM,GAA0B,CAAC;AAO1C,EAAA,eAAW;AAEX,EAAA,cAAK;AACD,EAAA,WAAA;cACH;AAED,EAAA;;AAGY,EAAA,MAAA;AACI,IAAA;AAGJ,GAAA,GAAA,cAAA,EAAA;sBAIA,CAAA,cAAA,EAAA;;;4BAKQ,CAAA,KAAA,EAAA;;AAOI,GAAA,EAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;;wBAQR,CAAA,KAAA,EAAA;iDACS;AACD,IAAA,aAAA,EAAA;AAKC,GAAA,EAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;;AAae,GAAA,CAAA,CAAA,EAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA;mEAWK;AAGb,IAAA,aAAA,EAAA;gBAOhB,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AACI,IAAA,SAAA,EAAA;AAOA,GAAA,EAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAYxB,IAAE,SAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/messenger/avatar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/messenger/avatar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,WAAW,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAEpE,KAAK,MAAM,GAAG;IACV,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,GAAG,CAAC;CACb,CAAC;AAYF,eAAO,MAAM,MAAM,GAAI,qCAA4C,MAAM,sBA6BxE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/messenger/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAA4C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/messenger/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAA4C,MAAM,OAAO,CAAC;AAY5E,OAAO,+BAA+B,CAAC;AAIvC,UAAU,UAAU;IAChB,OAAO,EAAE,GAAG,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,UAAU,CAqU7C,CAAC"}
|