@daeryun/dr_components 0.8.5 → 0.8.6
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 +2 -2
- package/dist/components/Daeryuntalk/ChatHomeView.tsx +2 -1
- package/dist/components/Daeryuntalk/ChatWidget.jsx +2 -2
- package/dist/components/Daeryuntalk/ChatWidget.tsx +2 -2
- package/dist/components/Daeryuntalk/_api/daeryuntalk/index.js +1 -1
- package/dist/components/Daeryuntalk/_api/daeryuntalk/index.ts +1 -1
- package/dist/styles/globals.css +4 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ import ShadowBox from './_ui/ShadowBox';
|
|
|
24
24
|
import { useDaeryunTalkToast } from './Toast/DaeryuntalkToastProvider';
|
|
25
25
|
import ToastRenderer from './Toast/ToastRender';
|
|
26
26
|
const ChatHomeView = ({ hashValue, setHashValue, isMobile }) => {
|
|
27
|
-
const { isConnected, isAuthenticated, historyList, inquiryMainData, startChat, createNewChat, chatInquiryNumber, sendHeartbeat, sendInquiryLeft, goGetHistoryList, sendHistoryEntered, sendHistoryLeft, startSelectedChat, attendRoomByHistory } = useDaeryuntalk();
|
|
27
|
+
const { isLoading: isProviderLoading, isConnected, isAuthenticated, historyList, inquiryMainData, startChat, createNewChat, chatInquiryNumber, sendHeartbeat, sendInquiryLeft, goGetHistoryList, sendHistoryEntered, sendHistoryLeft, startSelectedChat, attendRoomByHistory } = useDaeryuntalk();
|
|
28
28
|
const [viewState, setViewState] = useState('home');
|
|
29
29
|
const [mainData, setMainData] = useState(null);
|
|
30
30
|
const [isLoading, setIsLoading] = useState(false);
|
|
@@ -32,7 +32,7 @@ const ChatHomeView = ({ hashValue, setHashValue, isMobile }) => {
|
|
|
32
32
|
// 아직 커버이미지 url이 안나옴
|
|
33
33
|
const backgroundImage = (mainData === null || mainData === void 0 ? void 0 : mainData.sleeve_image_url) ? mainData.sleeve_image_url : DaeryuntalkIntro;
|
|
34
34
|
useEffect(() => {
|
|
35
|
-
if (hashValue && isConnected) {
|
|
35
|
+
if (hashValue && isConnected && !isProviderLoading) {
|
|
36
36
|
handleStartChat();
|
|
37
37
|
}
|
|
38
38
|
}, [hashValue, isConnected]);
|
|
@@ -26,6 +26,7 @@ type ChatHomeViewProps = {
|
|
|
26
26
|
};
|
|
27
27
|
const ChatHomeView: React.FC<ChatHomeViewProps> = ({ hashValue, setHashValue, isMobile }) => {
|
|
28
28
|
const {
|
|
29
|
+
isLoading: isProviderLoading,
|
|
29
30
|
isConnected,
|
|
30
31
|
isAuthenticated,
|
|
31
32
|
historyList,
|
|
@@ -48,7 +49,7 @@ const ChatHomeView: React.FC<ChatHomeViewProps> = ({ hashValue, setHashValue, is
|
|
|
48
49
|
// 아직 커버이미지 url이 안나옴
|
|
49
50
|
const backgroundImage = mainData?.sleeve_image_url ? mainData.sleeve_image_url : DaeryuntalkIntro;
|
|
50
51
|
useEffect(() => {
|
|
51
|
-
if (hashValue && isConnected) {
|
|
52
|
+
if (hashValue && isConnected && !isProviderLoading) {
|
|
52
53
|
handleStartChat();
|
|
53
54
|
}
|
|
54
55
|
}, [hashValue, isConnected]);
|
|
@@ -17,9 +17,9 @@ const ChatWidget = ({ isOpen, isMobile, onClose, hashValue, setHashValue }) => {
|
|
|
17
17
|
bg-white shadow-[0px_4px_10px_0px_#00000026]
|
|
18
18
|
${isMobile ? '' : 'duration-300 ease-in-out'}
|
|
19
19
|
${isHash && isMobile
|
|
20
|
-
? 'inset-0 h-
|
|
20
|
+
? 'inset-0 h-screen w-screen rounded-none'
|
|
21
21
|
: isMobile || isHash
|
|
22
|
-
? 'inset-0 w-screen rounded-none'
|
|
22
|
+
? 'inset-0 h-screen w-screen rounded-none'
|
|
23
23
|
: 'bottom-[165px] right-[30px] max-w-[390px] rounded-[30px] lg:bottom-[110px]'}
|
|
24
24
|
|
|
25
25
|
${isMobile
|
|
@@ -30,9 +30,9 @@ const ChatWidget: React.FC<ChatWidgetProps> = ({ isOpen, isMobile, onClose, hash
|
|
|
30
30
|
${isMobile ? '' : 'duration-300 ease-in-out'}
|
|
31
31
|
${
|
|
32
32
|
isHash && isMobile
|
|
33
|
-
? 'inset-0 h-
|
|
33
|
+
? 'inset-0 h-screen w-screen rounded-none'
|
|
34
34
|
: isMobile || isHash
|
|
35
|
-
? 'inset-0 w-screen rounded-none'
|
|
35
|
+
? 'inset-0 h-screen w-screen rounded-none'
|
|
36
36
|
: 'bottom-[165px] right-[30px] max-w-[390px] rounded-[30px] lg:bottom-[110px]'
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -356,7 +356,7 @@ export function getChatInquiryMessageList(chatInquiryNumber, standardDateTime, s
|
|
|
356
356
|
const body = {
|
|
357
357
|
d: Object.assign(Object.assign({ chat_inquiry_number: chatInquiryNumber }, (standardDateTime && { standard_date_time: standardDateTime })), {
|
|
358
358
|
// standard_date_time: standard_date_time ?? new Date().toISOString(),
|
|
359
|
-
size: size !== null && size !== void 0 ? size :
|
|
359
|
+
size: size !== null && size !== void 0 ? size : 200 })
|
|
360
360
|
};
|
|
361
361
|
console.log('[채팅 메세지 리스트] 문의 번호:', chatInquiryNumber, version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
|
|
362
362
|
try {
|
|
@@ -448,7 +448,7 @@ export async function getChatInquiryMessageList(
|
|
|
448
448
|
chat_inquiry_number: chatInquiryNumber,
|
|
449
449
|
...(standardDateTime && { standard_date_time: standardDateTime }),
|
|
450
450
|
// standard_date_time: standard_date_time ?? new Date().toISOString(),
|
|
451
|
-
size: size ??
|
|
451
|
+
size: size ?? 200
|
|
452
452
|
}
|
|
453
453
|
};
|
|
454
454
|
|
package/dist/styles/globals.css
CHANGED
|
@@ -2216,10 +2216,6 @@ video {
|
|
|
2216
2216
|
height: 1000px;
|
|
2217
2217
|
}
|
|
2218
2218
|
|
|
2219
|
-
.h-\[100dvh\] {
|
|
2220
|
-
height: 100dvh;
|
|
2221
|
-
}
|
|
2222
|
-
|
|
2223
2219
|
.h-\[100px\] {
|
|
2224
2220
|
height: 100px;
|
|
2225
2221
|
}
|
|
@@ -2645,6 +2641,10 @@ video {
|
|
|
2645
2641
|
height: 1px;
|
|
2646
2642
|
}
|
|
2647
2643
|
|
|
2644
|
+
.h-screen {
|
|
2645
|
+
height: 100vh;
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
2648
|
.\!max-h-fit {
|
|
2649
2649
|
max-height: -moz-fit-content !important;
|
|
2650
2650
|
max-height: fit-content !important;
|