@daeryun/dr_components 0.8.88 → 0.8.90
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/components/Daeryuntalk/ChatHomeView.jsx +4 -1
- package/dist/components/Daeryuntalk/ChatHomeView.tsx +4 -1
- package/dist/components/Daeryuntalk/ChatWidget.jsx +3 -3
- package/dist/components/Daeryuntalk/ChatWidget.tsx +3 -3
- package/dist/components/Daeryuntalk/NavigationFooter.jsx +1 -1
- package/dist/components/Daeryuntalk/NavigationFooter.tsx +1 -1
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.js +1 -1
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -46,11 +46,14 @@ const ChatHomeView = ({ hashValue, onClose, isMobile, isHash }) => {
|
|
|
46
46
|
else {
|
|
47
47
|
}
|
|
48
48
|
}, [hashValue, isConnected, inquiryMainData]);
|
|
49
|
-
//
|
|
49
|
+
// viewState 진입
|
|
50
50
|
useEffect(() => {
|
|
51
51
|
if (isAuthenticated && viewState === 'history') {
|
|
52
52
|
goGetHistoryList({});
|
|
53
53
|
}
|
|
54
|
+
if (isAuthenticated && viewState === 'conversation') {
|
|
55
|
+
goGetHistoryList({});
|
|
56
|
+
}
|
|
54
57
|
}, [viewState, isAuthenticated]);
|
|
55
58
|
useEffect(() => {
|
|
56
59
|
if (inquiryMainData !== null) {
|
|
@@ -98,11 +98,14 @@ const ChatHomeView: React.FC<ChatHomeViewProps> = ({ hashValue, onClose, isMobil
|
|
|
98
98
|
}
|
|
99
99
|
}, [hashValue, isConnected, inquiryMainData]);
|
|
100
100
|
|
|
101
|
-
//
|
|
101
|
+
// viewState 진입
|
|
102
102
|
useEffect(() => {
|
|
103
103
|
if (isAuthenticated && viewState === 'history') {
|
|
104
104
|
goGetHistoryList({});
|
|
105
105
|
}
|
|
106
|
+
if (isAuthenticated && viewState === 'conversation') {
|
|
107
|
+
goGetHistoryList({});
|
|
108
|
+
}
|
|
106
109
|
}, [viewState, isAuthenticated]);
|
|
107
110
|
|
|
108
111
|
useEffect(() => {
|
|
@@ -14,9 +14,9 @@ const ChatWidget = ({ isOpen, isMobile, onClose, hashValue, setHashValue, animat
|
|
|
14
14
|
// 웹 모바일 ~480px
|
|
15
15
|
const webSmallWrapperCss = `
|
|
16
16
|
${isHash ? `duration-300 ease-in-out` : `duration-300 ease-in-out`}
|
|
17
|
-
${isHash ? `${isOpen ? 'translate-y-0 opacity-100' : 'translate-y-full opacity-0 pointer-events-none'} ` : isOpen ? 'translate-y-0 opacity-100' : 'translate-y-full opacity-0 pointer-events-none'}
|
|
17
|
+
${isHash ? `${isOpen ? ' translate-y-0 opacity-100' : 'translate-y-full opacity-0 pointer-events-none'} ` : isOpen ? 'translate-y-0 opacity-100' : 'translate-y-full opacity-0 pointer-events-none'}
|
|
18
18
|
fixed w-screen max-w-[100vw] z-[999998] rounded-none flex flex-col
|
|
19
|
-
bottom-0 right-0 h-[100dvh]
|
|
19
|
+
bottom-0 right-0 h-[100dvh]
|
|
20
20
|
`;
|
|
21
21
|
// 해쉬 있을 경우는 여기서 중앙배치 css로
|
|
22
22
|
const webTbPCWrapperCss = `
|
|
@@ -62,7 +62,7 @@ const ChatWidget = ({ isOpen, isMobile, onClose, hashValue, setHashValue, animat
|
|
|
62
62
|
{/* 여기서 외각 스크롤 생김 */}
|
|
63
63
|
<div ref={containerRef} className={`
|
|
64
64
|
relative z-[999998]
|
|
65
|
-
flex h-full flex-col items-center justify-end
|
|
65
|
+
flex h-full flex-col items-center ${isHash ? 'justify-center' : 'justify-end'}
|
|
66
66
|
${isMobile ? `${innerMobileWrapperCss}` : `${innerWebSmallWrapperCss} ${innerWebTbPCWrapperCss}`}
|
|
67
67
|
`}>
|
|
68
68
|
{/* 여기서 보장해줘야하나? */}
|
|
@@ -34,9 +34,9 @@ const ChatWidget: React.FC<ChatWidgetProps> = ({
|
|
|
34
34
|
// 웹 모바일 ~480px
|
|
35
35
|
const webSmallWrapperCss = `
|
|
36
36
|
${isHash ? `duration-300 ease-in-out` : `duration-300 ease-in-out`}
|
|
37
|
-
${isHash ? `${isOpen ? 'translate-y-0 opacity-100' : 'translate-y-full opacity-0 pointer-events-none'} ` : isOpen ? 'translate-y-0 opacity-100' : 'translate-y-full opacity-0 pointer-events-none'}
|
|
37
|
+
${isHash ? `${isOpen ? ' translate-y-0 opacity-100' : 'translate-y-full opacity-0 pointer-events-none'} ` : isOpen ? 'translate-y-0 opacity-100' : 'translate-y-full opacity-0 pointer-events-none'}
|
|
38
38
|
fixed w-screen max-w-[100vw] z-[999998] rounded-none flex flex-col
|
|
39
|
-
bottom-0 right-0 h-[100dvh]
|
|
39
|
+
bottom-0 right-0 h-[100dvh]
|
|
40
40
|
`;
|
|
41
41
|
|
|
42
42
|
// 해쉬 있을 경우는 여기서 중앙배치 css로
|
|
@@ -98,7 +98,7 @@ const ChatWidget: React.FC<ChatWidgetProps> = ({
|
|
|
98
98
|
ref={containerRef}
|
|
99
99
|
className={`
|
|
100
100
|
relative z-[999998]
|
|
101
|
-
flex h-full flex-col items-center justify-end
|
|
101
|
+
flex h-full flex-col items-center ${isHash ? 'justify-center' : 'justify-end'}
|
|
102
102
|
${isMobile ? `${innerMobileWrapperCss}` : `${innerWebSmallWrapperCss} ${innerWebTbPCWrapperCss}`}
|
|
103
103
|
`}
|
|
104
104
|
>
|
|
@@ -23,7 +23,7 @@ const NavigationFooter = ({ activeView, onHomeClick, onHistoryClick, historyList
|
|
|
23
23
|
(() => {
|
|
24
24
|
const unreadCount = historyList.reduce((sum, item) => sum + (item.unread_message_count || 0), 0);
|
|
25
25
|
const isHundredOver = unreadCount > 99;
|
|
26
|
-
return unreadCount > 0 ? (<span className={`${isHundredOver ? '
|
|
26
|
+
return unreadCount > 0 ? (<span className={`${isHundredOver ? ' -right-[20px] -top-[5px] h-[18px] w-[31px] rounded-[15.5px] ' : '-right-[8px] -top-[5px] h-[18px] w-[18px] rounded-full pr-[1px]'} dr_talk_subtitle_small2 absolute flex items-center justify-center bg-drTalkCrimson text-drTalkWhite`}>
|
|
27
27
|
{isHundredOver ? '99+' : unreadCount}
|
|
28
28
|
</span>) : null;
|
|
29
29
|
})()}
|
|
@@ -65,7 +65,7 @@ const NavigationFooter: React.FC<NavigationFooterProps> = ({
|
|
|
65
65
|
|
|
66
66
|
return unreadCount > 0 ? (
|
|
67
67
|
<span
|
|
68
|
-
className={`${isHundredOver ? '
|
|
68
|
+
className={`${isHundredOver ? ' -right-[20px] -top-[5px] h-[18px] w-[31px] rounded-[15.5px] ' : '-right-[8px] -top-[5px] h-[18px] w-[18px] rounded-full pr-[1px]'} dr_talk_subtitle_small2 absolute flex items-center justify-center bg-drTalkCrimson text-drTalkWhite`}
|
|
69
69
|
>
|
|
70
70
|
{isHundredOver ? '99+' : unreadCount}
|
|
71
71
|
</span>
|
|
@@ -247,7 +247,7 @@ export const useSocketEventHandler = ({ setIsConnected, setIsLoading, setMessage
|
|
|
247
247
|
else {
|
|
248
248
|
toast.error('인증에 실패했습니다.');
|
|
249
249
|
onClose();
|
|
250
|
-
window.location.
|
|
250
|
+
window.location.href = '/';
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
if (!(((_d = inquiryData === null || inquiryData === void 0 ? void 0 : inquiryData.result_info) === null || _d === void 0 ? void 0 : _d.result_cd) === 'OK' || ((_e = inquiryData === null || inquiryData === void 0 ? void 0 : inquiryData.result_info) === null || _e === void 0 ? void 0 : _e.result_type_cd) === 'OK')) {
|