@daeryun/dr_components 0.8.60 → 0.8.61
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/Daeryuntalk/ChatHomeView.jsx +4 -1
- package/dist/components/Daeryuntalk/ChatHomeView.tsx +4 -1
- package/dist/components/Daeryuntalk/ChatWidget.jsx +1 -7
- package/dist/components/Daeryuntalk/ChatWidget.tsx +1 -7
- package/dist/components/Daeryuntalk/DaeryuntalkContext.d.ts +1 -0
- package/dist/components/Daeryuntalk/DaeryuntalkContext.jsx +3 -2
- package/dist/components/Daeryuntalk/DaeryuntalkContext.tsx +4 -2
- package/dist/components/Daeryuntalk/_api/daeryuntalk/index.d.ts +1 -1
- package/dist/components/Daeryuntalk/_api/daeryuntalk/index.js +2 -3
- package/dist/components/Daeryuntalk/_api/daeryuntalk/index.ts +2 -2
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.d.ts +2 -1
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.js +2 -2
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.ts +4 -1
- package/dist/components/Daeryuntalk/index.jsx +1 -1
- package/dist/components/Daeryuntalk/index.tsx +1 -1
- package/dist/styles/globals.css +4 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ interface props {
|
|
|
27
27
|
setHistoryList: Dispatch<SetStateAction<History[]>>;
|
|
28
28
|
historyList: History[];
|
|
29
29
|
inquiryMainData: IChatInquiryMainDataResponse | null;
|
|
30
|
+
isMobile: boolean;
|
|
30
31
|
}
|
|
31
32
|
export const useSocketEventHandler = ({
|
|
32
33
|
setIsConnected,
|
|
@@ -39,7 +40,8 @@ export const useSocketEventHandler = ({
|
|
|
39
40
|
setInquiryStatus,
|
|
40
41
|
setHistoryList,
|
|
41
42
|
historyList,
|
|
42
|
-
inquiryMainData
|
|
43
|
+
inquiryMainData,
|
|
44
|
+
isMobile
|
|
43
45
|
}: props) => {
|
|
44
46
|
const toast = useDaeryunTalkToast();
|
|
45
47
|
/**
|
|
@@ -184,6 +186,7 @@ export const useSocketEventHandler = ({
|
|
|
184
186
|
hashValue || '',
|
|
185
187
|
isOpen,
|
|
186
188
|
setIsConnected,
|
|
189
|
+
isMobile,
|
|
187
190
|
socket => {
|
|
188
191
|
console.log('[DaeryuntalkContext] 웹소켓 연결 콜백 - 연결 성공');
|
|
189
192
|
setIsConnected(true);
|
|
@@ -36,7 +36,7 @@ const Daeryuntalk = ({ tel = '1800-7905' }) => {
|
|
|
36
36
|
return (<div className={``}>
|
|
37
37
|
<DaeryuntalkToastProvider>
|
|
38
38
|
<ViewportHandler />
|
|
39
|
-
<DaeryuntalkProvider propsTel={tel}>
|
|
39
|
+
<DaeryuntalkProvider propsTel={tel} isMobile={isMobile}>
|
|
40
40
|
{isMobile ? (isOpen ? null : (<ChatButton isOpen={isOpen} isMobile={isMobile} hashValue={hashValue} onClick={toggleChat}/>)) : (<ChatButton isOpen={isOpen} isMobile={isMobile} hashValue={hashValue} onClick={toggleChat}/>)}
|
|
41
41
|
<ChatWidget isOpen={hashValue ? true : isOpen} isMobile={isMobile} onClose={closeChatWidget} hashValue={hashValue} setHashValue={setHashValue}/>
|
|
42
42
|
</DaeryuntalkProvider>
|
|
@@ -52,7 +52,7 @@ const Daeryuntalk: React.FC<DaeryuntalkProps> = ({ tel = '1800-7905' }) => {
|
|
|
52
52
|
<div className={``}>
|
|
53
53
|
<DaeryuntalkToastProvider>
|
|
54
54
|
<ViewportHandler />
|
|
55
|
-
<DaeryuntalkProvider propsTel={tel}>
|
|
55
|
+
<DaeryuntalkProvider propsTel={tel} isMobile={isMobile}>
|
|
56
56
|
{isMobile ? (
|
|
57
57
|
isOpen ? null : (
|
|
58
58
|
<ChatButton
|