@esvndev/es-react-template-chat 0.0.84 → 0.0.86
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/dist/index.js +21 -21
- package/dist/index.mjs +21 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -71836,26 +71836,26 @@ const ChatLog = (props) => {
|
|
|
71836
71836
|
// const { t } = useTranslation()
|
|
71837
71837
|
// const { uploadMultiFileApi } = useUploadFile()
|
|
71838
71838
|
const {
|
|
71839
|
-
//
|
|
71839
|
+
//typeChat,
|
|
71840
71840
|
contactId, chatRoomId
|
|
71841
|
-
//
|
|
71842
|
-
//
|
|
71843
|
-
//
|
|
71844
|
-
//
|
|
71845
|
-
//
|
|
71846
|
-
//
|
|
71847
|
-
//
|
|
71848
|
-
//
|
|
71849
|
-
//
|
|
71850
|
-
//
|
|
71851
|
-
//
|
|
71852
|
-
//
|
|
71853
|
-
//
|
|
71854
|
-
//
|
|
71855
|
-
//
|
|
71841
|
+
//active,
|
|
71842
|
+
//messageByGroup,
|
|
71843
|
+
// pinnedMessages,
|
|
71844
|
+
// setScroll,
|
|
71845
|
+
// checkScroll,
|
|
71846
|
+
// pinMessageChatRoom,
|
|
71847
|
+
// deleteMessageApi,
|
|
71848
|
+
// recallMessageApi,
|
|
71849
|
+
// get_message_by_group_cursor_api,
|
|
71850
|
+
// getPinMessageChatRoomApi,
|
|
71851
|
+
// deletePinMessage,
|
|
71852
|
+
// //updateGroupTagApi,
|
|
71853
|
+
// createReminderApi,
|
|
71854
|
+
// senMessageApi,
|
|
71855
|
+
// typingUsers
|
|
71856
71856
|
} = useChat();
|
|
71857
|
-
//
|
|
71858
|
-
//
|
|
71857
|
+
//const { connection } = useAppSelector((state: any) => state.hubNotification)
|
|
71858
|
+
//const [dynamicMenuItems, setDynamicMenuItems] = useState<any[]>([])
|
|
71859
71859
|
React.useEffect(() => {
|
|
71860
71860
|
const fetchFormConfig = async () => {
|
|
71861
71861
|
try {
|
|
@@ -71887,14 +71887,14 @@ const ChatLog = (props) => {
|
|
|
71887
71887
|
};
|
|
71888
71888
|
fetchFormConfig();
|
|
71889
71889
|
}, []);
|
|
71890
|
-
//const menuItems = useMemo(() => [...ADMINISTRATIVE_ITEMS, ...dynamicMenuItems], [dynamicMenuItems])
|
|
71891
|
-
// Tách menu items cho Công việc (task + dynamic)
|
|
71890
|
+
// const menuItems = useMemo(() => [...ADMINISTRATIVE_ITEMS, ...dynamicMenuItems], [dynamicMenuItems])
|
|
71891
|
+
// // Tách menu items cho Công việc (task + dynamic)
|
|
71892
71892
|
// const taskMenuItems = useMemo(() => [
|
|
71893
71893
|
// { type: 'task', label: 'Công việc', Icon: ListCheck },
|
|
71894
71894
|
// ...dynamicMenuItems
|
|
71895
71895
|
// ], [dynamicMenuItems])
|
|
71896
71896
|
// Menu items cho Hành chính (chỉ administrative)
|
|
71897
|
-
//const administrativeMenuItems = useMemo(() => ADMINISTRATIVE_ITEMS, [])
|
|
71897
|
+
// const administrativeMenuItems = useMemo(() => ADMINISTRATIVE_ITEMS, [])
|
|
71898
71898
|
// const isTypingRef = useRef(false)
|
|
71899
71899
|
// const typingTimeoutRef = useRef<any>(null)
|
|
71900
71900
|
// const footerRef: any = useRef(null)
|
package/dist/index.mjs
CHANGED
|
@@ -71807,26 +71807,26 @@ const ChatLog = (props) => {
|
|
|
71807
71807
|
// const { t } = useTranslation()
|
|
71808
71808
|
// const { uploadMultiFileApi } = useUploadFile()
|
|
71809
71809
|
const {
|
|
71810
|
-
//
|
|
71810
|
+
//typeChat,
|
|
71811
71811
|
contactId, chatRoomId
|
|
71812
|
-
//
|
|
71813
|
-
//
|
|
71814
|
-
//
|
|
71815
|
-
//
|
|
71816
|
-
//
|
|
71817
|
-
//
|
|
71818
|
-
//
|
|
71819
|
-
//
|
|
71820
|
-
//
|
|
71821
|
-
//
|
|
71822
|
-
//
|
|
71823
|
-
//
|
|
71824
|
-
//
|
|
71825
|
-
//
|
|
71826
|
-
//
|
|
71812
|
+
//active,
|
|
71813
|
+
//messageByGroup,
|
|
71814
|
+
// pinnedMessages,
|
|
71815
|
+
// setScroll,
|
|
71816
|
+
// checkScroll,
|
|
71817
|
+
// pinMessageChatRoom,
|
|
71818
|
+
// deleteMessageApi,
|
|
71819
|
+
// recallMessageApi,
|
|
71820
|
+
// get_message_by_group_cursor_api,
|
|
71821
|
+
// getPinMessageChatRoomApi,
|
|
71822
|
+
// deletePinMessage,
|
|
71823
|
+
// //updateGroupTagApi,
|
|
71824
|
+
// createReminderApi,
|
|
71825
|
+
// senMessageApi,
|
|
71826
|
+
// typingUsers
|
|
71827
71827
|
} = useChat();
|
|
71828
|
-
//
|
|
71829
|
-
//
|
|
71828
|
+
//const { connection } = useAppSelector((state: any) => state.hubNotification)
|
|
71829
|
+
//const [dynamicMenuItems, setDynamicMenuItems] = useState<any[]>([])
|
|
71830
71830
|
useEffect(() => {
|
|
71831
71831
|
const fetchFormConfig = async () => {
|
|
71832
71832
|
try {
|
|
@@ -71858,14 +71858,14 @@ const ChatLog = (props) => {
|
|
|
71858
71858
|
};
|
|
71859
71859
|
fetchFormConfig();
|
|
71860
71860
|
}, []);
|
|
71861
|
-
//const menuItems = useMemo(() => [...ADMINISTRATIVE_ITEMS, ...dynamicMenuItems], [dynamicMenuItems])
|
|
71862
|
-
// Tách menu items cho Công việc (task + dynamic)
|
|
71861
|
+
// const menuItems = useMemo(() => [...ADMINISTRATIVE_ITEMS, ...dynamicMenuItems], [dynamicMenuItems])
|
|
71862
|
+
// // Tách menu items cho Công việc (task + dynamic)
|
|
71863
71863
|
// const taskMenuItems = useMemo(() => [
|
|
71864
71864
|
// { type: 'task', label: 'Công việc', Icon: ListCheck },
|
|
71865
71865
|
// ...dynamicMenuItems
|
|
71866
71866
|
// ], [dynamicMenuItems])
|
|
71867
71867
|
// Menu items cho Hành chính (chỉ administrative)
|
|
71868
|
-
//const administrativeMenuItems = useMemo(() => ADMINISTRATIVE_ITEMS, [])
|
|
71868
|
+
// const administrativeMenuItems = useMemo(() => ADMINISTRATIVE_ITEMS, [])
|
|
71869
71869
|
// const isTypingRef = useRef(false)
|
|
71870
71870
|
// const typingTimeoutRef = useRef<any>(null)
|
|
71871
71871
|
// const footerRef: any = useRef(null)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esvndev/es-react-template-chat",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.86",
|
|
4
4
|
"description": "This product is designed by ESVN and is only for use in products distributed by ESVN. Any product, whether for non-commercial research or commercial purposes, must have written legal approval and a digital signature from ESVN.",
|
|
5
5
|
"author": "dev@esvn.com.vn",
|
|
6
6
|
"license": "ESVN Limited Use License",
|