@daeryun/dr_components 1.1.8 → 1.1.10

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.
Files changed (79) hide show
  1. package/dist/asset/images/daeryuntalk/history-icon.png +0 -0
  2. package/dist/asset/images/daeryuntalk/history-new-badge.png +0 -0
  3. package/dist/asset/images/fix/call_h.webp +0 -0
  4. package/dist/asset/images/fix/callbox_h.webp +0 -0
  5. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  6. package/dist/components/Daeryuntalk/ChatButton.jsx +2 -1
  7. package/dist/components/Daeryuntalk/ChatButton.tsx +2 -1
  8. package/dist/components/Daeryuntalk/ChatConversation.d.ts +7 -1
  9. package/dist/components/Daeryuntalk/ChatConversation.jsx +10 -8
  10. package/dist/components/Daeryuntalk/ChatConversation.tsx +25 -12
  11. package/dist/components/Daeryuntalk/ChatConversationItem/ChatConversationHeader.d.ts +7 -2
  12. package/dist/components/Daeryuntalk/ChatConversationItem/ChatConversationHeader.jsx +29 -9
  13. package/dist/components/Daeryuntalk/ChatConversationItem/ChatConversationHeader.tsx +53 -15
  14. package/dist/components/Daeryuntalk/ChatHomeView.d.ts +1 -1
  15. package/dist/components/Daeryuntalk/ChatHomeView.jsx +68 -46
  16. package/dist/components/Daeryuntalk/ChatHomeView.tsx +68 -66
  17. package/dist/components/Daeryuntalk/ChatInput.jsx +2 -1
  18. package/dist/components/Daeryuntalk/ChatInput.tsx +3 -1
  19. package/dist/components/Daeryuntalk/ChatItem/ChatFile.jsx +2 -1
  20. package/dist/components/Daeryuntalk/ChatItem/ChatFile.tsx +2 -1
  21. package/dist/components/Daeryuntalk/ChatItem/ChatLoading.d.ts +4 -1
  22. package/dist/components/Daeryuntalk/ChatItem/ChatLoading.jsx +2 -2
  23. package/dist/components/Daeryuntalk/ChatItem/ChatLoading.tsx +5 -2
  24. package/dist/components/Daeryuntalk/ChatItem/ChatWrapper.tsx +0 -1
  25. package/dist/components/Daeryuntalk/ChatItem/RichText.tsx +0 -1
  26. package/dist/components/Daeryuntalk/ChatItem/TypingComp.jsx +2 -1
  27. package/dist/components/Daeryuntalk/ChatItem/TypingComp.tsx +2 -1
  28. package/dist/components/Daeryuntalk/ChatItem/WorkFlowAuthForm.tsx +0 -1
  29. package/dist/components/Daeryuntalk/ChatItem/WorkFlowClickData.tsx +0 -1
  30. package/dist/components/Daeryuntalk/ChatMessage.jsx +3 -2
  31. package/dist/components/Daeryuntalk/ChatMessage.tsx +3 -2
  32. package/dist/components/Daeryuntalk/ChatObject/FieldWorkObject.jsx +1 -0
  33. package/dist/components/Daeryuntalk/ChatObject/FieldWorkObject.tsx +1 -0
  34. package/dist/components/Daeryuntalk/ChatObject/ObjectBack.jsx +1 -0
  35. package/dist/components/Daeryuntalk/ChatObject/ObjectBack.tsx +1 -1
  36. package/dist/components/Daeryuntalk/ChatWidget.jsx +1 -1
  37. package/dist/components/Daeryuntalk/ChatWidget.tsx +1 -1
  38. package/dist/components/Daeryuntalk/DaeryuntalkContext.d.ts +2 -0
  39. package/dist/components/Daeryuntalk/DaeryuntalkContext.jsx +12 -5
  40. package/dist/components/Daeryuntalk/DaeryuntalkContext.tsx +41 -31
  41. package/dist/components/Daeryuntalk/HistoryView.jsx +12 -9
  42. package/dist/components/Daeryuntalk/HistoryView.tsx +12 -9
  43. package/dist/components/Daeryuntalk/HomeView.jsx +7 -6
  44. package/dist/components/Daeryuntalk/HomeView.tsx +8 -6
  45. package/dist/components/Daeryuntalk/NavigationFooter.d.ts +1 -1
  46. package/dist/components/Daeryuntalk/NavigationFooter.jsx +1 -0
  47. package/dist/components/Daeryuntalk/NavigationFooter.tsx +3 -1
  48. package/dist/components/Daeryuntalk/NoticeMessage.jsx +1 -0
  49. package/dist/components/Daeryuntalk/NoticeMessage.tsx +1 -0
  50. package/dist/components/Daeryuntalk/Tiptap/Tiptap.tsx +1 -0
  51. package/dist/components/Daeryuntalk/Toast/Toast.jsx +1 -1
  52. package/dist/components/Daeryuntalk/Toast/Toast.tsx +2 -2
  53. package/dist/components/Daeryuntalk/Viewer/MobileViewer.jsx +4 -3
  54. package/dist/components/Daeryuntalk/Viewer/MobileViewer.tsx +4 -5
  55. package/dist/components/Daeryuntalk/Viewer/TbPcViewer.jsx +5 -4
  56. package/dist/components/Daeryuntalk/Viewer/TbPcViewer.tsx +7 -5
  57. package/dist/components/Daeryuntalk/ViewportHandler.d.ts +6 -1
  58. package/dist/components/Daeryuntalk/ViewportHandler.jsx +21 -6
  59. package/dist/components/Daeryuntalk/ViewportHandler.tsx +26 -44
  60. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.d.ts +4 -2
  61. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.js +77 -16
  62. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.ts +100 -17
  63. package/dist/components/Daeryuntalk/_hooks/view/useHistoryView.d.ts +3 -4
  64. package/dist/components/Daeryuntalk/_hooks/view/useHistoryView.js +15 -11
  65. package/dist/components/Daeryuntalk/_hooks/view/useHistoryView.ts +15 -13
  66. package/dist/components/Daeryuntalk/_hooks/view/useHomeView.d.ts +0 -1
  67. package/dist/components/Daeryuntalk/_hooks/view/useHomeView.js +8 -6
  68. package/dist/components/Daeryuntalk/_hooks/view/useHomeView.ts +8 -7
  69. package/dist/components/Daeryuntalk/index.jsx +2 -11
  70. package/dist/components/Daeryuntalk/index.tsx +2 -12
  71. package/dist/components/Fix/index.jsx +2 -2
  72. package/dist/components/Fix/index.tsx +2 -2
  73. package/dist/components/page/Login/LoginShareCheckContainer.jsx +6 -4
  74. package/dist/components/page/Login/LoginShareCheckContainer.tsx +6 -4
  75. package/dist/components/page/Login/_hooks/useAppLoginDetect.js +9 -7
  76. package/dist/components/page/Login/_hooks/useAppLoginDetect.ts +11 -8
  77. package/dist/styles/globals.css +22 -2
  78. package/dist/tsconfig.tsbuildinfo +1 -1
  79. package/package.json +1 -1
@@ -7,11 +7,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- export const useHistoryView = ({ attendRoomByHistory, startSelectedChat, setViewState, setIsLoading, createNewChat, goRequestPhone, goHistoryPhoneAuth, setPreviewState }) => {
10
+ export const useHistoryView = ({ attendRoomByHistory, startSelectedChat, setViewState,
11
+ // setIsLoading,
12
+ createNewChat, goRequestPhone, goHistoryPhoneAuth,
13
+ // setPreviewState
14
+ chatInquiryNumber }) => {
11
15
  const handleChatHistoryClick = (chatNumber) => __awaiter(void 0, void 0, void 0, function* () {
12
16
  var _a, _b;
13
17
  try {
14
- setIsLoading(true);
18
+ // setIsLoading(true);
15
19
  const response = yield attendRoomByHistory(chatNumber);
16
20
  if (((_a = response === null || response === void 0 ? void 0 : response.result_info) === null || _a === void 0 ? void 0 : _a.result_cd) === 'OK' || ((_b = response === null || response === void 0 ? void 0 : response.result_info) === null || _b === void 0 ? void 0 : _b.result_type_cd) === 'OK') {
17
21
  yield startSelectedChat(chatNumber);
@@ -22,13 +26,13 @@ export const useHistoryView = ({ attendRoomByHistory, startSelectedChat, setView
22
26
  console.error('e', e);
23
27
  }
24
28
  finally {
25
- setIsLoading(false);
29
+ // setIsLoading(false);
26
30
  }
27
31
  });
28
32
  // 히스토리 + conversatoion 에서 사용
29
33
  const handleNewStartChat = () => __awaiter(void 0, void 0, void 0, function* () {
30
34
  try {
31
- setIsLoading(true);
35
+ // setIsLoading(true);
32
36
  // 채팅 시작 - 새 문의 생성 또는 기존 문의 조회 처리
33
37
  yield createNewChat();
34
38
  // 대화 화면으로 전환
@@ -38,7 +42,7 @@ export const useHistoryView = ({ attendRoomByHistory, startSelectedChat, setView
38
42
  console.error('신규 채팅 실패:', error);
39
43
  }
40
44
  finally {
41
- setIsLoading(false);
45
+ // setIsLoading(false);
42
46
  }
43
47
  });
44
48
  // 히스토리 점유 인증번호 요청
@@ -58,19 +62,19 @@ export const useHistoryView = ({ attendRoomByHistory, startSelectedChat, setView
58
62
  return res;
59
63
  });
60
64
  const handleHistoryClick = () => __awaiter(void 0, void 0, void 0, function* () {
61
- setPreviewState('history');
65
+ // setPreviewState('history');
62
66
  setViewState('history');
63
67
  });
64
- const handleHomeClick = () => {
65
- setPreviewState('home');
66
- setViewState('home');
67
- };
68
+ const handleBackClick = () => __awaiter(void 0, void 0, void 0, function* () {
69
+ chatInquiryNumber && (yield startSelectedChat(chatInquiryNumber || ''));
70
+ setViewState('conversation');
71
+ });
68
72
  return {
69
73
  handleChatHistoryClick,
70
74
  handleNewStartChat,
71
75
  handleHistoryClick,
72
76
  handleGoRequestPhone,
73
77
  handleGoHistoryPhoneAuth,
74
- handleHomeClick
78
+ handleBackClick
75
79
  };
76
80
  };
@@ -2,7 +2,7 @@ import { Dispatch, SetStateAction } from 'react';
2
2
  import { ViewState } from '../../ChatHomeView';
3
3
 
4
4
  interface IHistoryProps {
5
- setIsLoading: Dispatch<SetStateAction<boolean>>;
5
+ // setIsLoading: Dispatch<SetStateAction<boolean>>;
6
6
  setViewState: Dispatch<SetStateAction<ViewState>>;
7
7
  attendRoomByHistory: (chatNumber: string) => any;
8
8
  startSelectedChat: (chatNumber: string) => any;
@@ -17,22 +17,24 @@ interface IHistoryProps {
17
17
  cellPhoneNumber: string;
18
18
  certificationNumber: string;
19
19
  }) => any;
20
- setPreviewState: (state: ViewState) => void;
20
+ chatInquiryNumber: string | null;
21
+ // setPreviewState: (state: ViewState) => void;
21
22
  }
22
23
 
23
24
  export const useHistoryView = ({
24
25
  attendRoomByHistory,
25
26
  startSelectedChat,
26
27
  setViewState,
27
- setIsLoading,
28
+ // setIsLoading,
28
29
  createNewChat,
29
30
  goRequestPhone,
30
31
  goHistoryPhoneAuth,
31
- setPreviewState
32
+ // setPreviewState
33
+ chatInquiryNumber
32
34
  }: IHistoryProps) => {
33
35
  const handleChatHistoryClick = async (chatNumber: string) => {
34
36
  try {
35
- setIsLoading(true);
37
+ // setIsLoading(true);
36
38
  const response = await attendRoomByHistory(chatNumber);
37
39
  if (response?.result_info?.result_cd === 'OK' || response?.result_info?.result_type_cd === 'OK') {
38
40
  await startSelectedChat(chatNumber);
@@ -41,14 +43,14 @@ export const useHistoryView = ({
41
43
  } catch (e) {
42
44
  console.error('e', e);
43
45
  } finally {
44
- setIsLoading(false);
46
+ // setIsLoading(false);
45
47
  }
46
48
  };
47
49
 
48
50
  // 히스토리 + conversatoion 에서 사용
49
51
  const handleNewStartChat = async () => {
50
52
  try {
51
- setIsLoading(true);
53
+ // setIsLoading(true);
52
54
  // 채팅 시작 - 새 문의 생성 또는 기존 문의 조회 처리
53
55
  await createNewChat();
54
56
  // 대화 화면으로 전환
@@ -56,7 +58,7 @@ export const useHistoryView = ({
56
58
  } catch (error) {
57
59
  console.error('신규 채팅 실패:', error);
58
60
  } finally {
59
- setIsLoading(false);
61
+ // setIsLoading(false);
60
62
  }
61
63
  };
62
64
 
@@ -79,13 +81,13 @@ export const useHistoryView = ({
79
81
  };
80
82
 
81
83
  const handleHistoryClick = async () => {
82
- setPreviewState('history');
84
+ // setPreviewState('history');
83
85
  setViewState('history');
84
86
  };
85
87
 
86
- const handleHomeClick = () => {
87
- setPreviewState('home');
88
- setViewState('home');
88
+ const handleBackClick =async () => {
89
+ chatInquiryNumber && await startSelectedChat(chatInquiryNumber || '');
90
+ setViewState('conversation');
89
91
  };
90
92
 
91
93
  return {
@@ -94,6 +96,6 @@ export const useHistoryView = ({
94
96
  handleHistoryClick,
95
97
  handleGoRequestPhone,
96
98
  handleGoHistoryPhoneAuth,
97
- handleHomeClick
99
+ handleBackClick
98
100
  };
99
101
  };
@@ -14,6 +14,5 @@ interface IHomeProps {
14
14
  export declare const useHomeView: ({ setIsLoading, setViewState, retryInquiryMain, inquiryMainData, startChat, preViewState, viewState, setPreviewState }: IHomeProps) => {
15
15
  handleStartChat: () => Promise<void>;
16
16
  handleHashStartChat: () => Promise<void>;
17
- handleBackToHome: () => void;
18
17
  };
19
18
  export {};
@@ -51,14 +51,16 @@ export const useHomeView = ({ setIsLoading, setViewState, retryInquiryMain, inqu
51
51
  setIsLoading(false);
52
52
  }
53
53
  });
54
- const handleBackToHome = () => {
55
- const isDupHis = viewState === 'history' && preViewState === 'history';
56
- isDupHis && setPreviewState('home');
57
- setViewState(viewState === 'history' && preViewState === 'history' ? 'home' : (preViewState !== null && preViewState !== void 0 ? preViewState : 'home'));
58
- };
54
+ // const handleBackToHome = () => {
55
+ // if (preViewState === 'conversation') {
56
+ // setViewState('conversation');
57
+ // } else {
58
+ // setViewState('history');
59
+ // }
60
+ // };
59
61
  return {
60
62
  handleStartChat,
61
63
  handleHashStartChat,
62
- handleBackToHome
64
+ // handleBackToHome
63
65
  };
64
66
  };
@@ -13,7 +13,6 @@ interface IHomeProps {
13
13
  viewState: ViewState;
14
14
  setPreviewState: (state: ViewState) => void;
15
15
  }
16
-
17
16
  export const useHomeView = ({
18
17
  setIsLoading,
19
18
  setViewState,
@@ -60,15 +59,17 @@ export const useHomeView = ({
60
59
  setIsLoading(false);
61
60
  }
62
61
  };
63
- const handleBackToHome = () => {
64
- const isDupHis = viewState === 'history' && preViewState === 'history';
65
- isDupHis && setPreviewState('home');
66
- setViewState(viewState === 'history' && preViewState === 'history' ? 'home' : (preViewState ?? 'home'));
67
- };
62
+ // const handleBackToHome = () => {
63
+ // if (preViewState === 'conversation') {
64
+ // setViewState('conversation');
65
+ // } else {
66
+ // setViewState('history');
67
+ // }
68
+ // };
68
69
 
69
70
  return {
70
71
  handleStartChat,
71
72
  handleHashStartChat,
72
- handleBackToHome
73
+ // handleBackToHome
73
74
  };
74
75
  };
@@ -7,13 +7,13 @@ import { DaeryuntalkToastProvider } from './Toast/DaeryuntalkToastProvider';
7
7
  import mobile from 'is-mobile';
8
8
  import Head from 'next/head';
9
9
  import { usePathname } from 'next/navigation';
10
+ import ViewportHandler from './ViewportHandler';
10
11
  const Daeryuntalk = ({ tel = '1800-7905', centerCode = 'CT0000', bannerHeight = 0 }) => {
11
12
  const [isOpen, setIsOpen] = useState(false);
12
13
  const [isMobile, setIsMobile] = useState(false);
13
14
  const pathName = usePathname();
14
15
  // const isMobile = mobile();
15
16
  const [hashValue, setHashValue] = useState(null);
16
- const isLocal = process.env.NODE_ENV === 'development';
17
17
  const [showCustomTitle, setShowCustomTitle] = useState(false); // ← 추가
18
18
  // 상태 관리 (컴포넌트 내부에 추가)
19
19
  const [animationState, setAnimationState] = useState('hidden'); // 'hidden', 'entering', 'visible', 'exiting'
@@ -41,15 +41,6 @@ const Daeryuntalk = ({ tel = '1800-7905', centerCode = 'CT0000', bannerHeight =
41
41
  else {
42
42
  openModal();
43
43
  }
44
- // setIsOpen(prev => {
45
- // if (prev) {
46
- // openModal();
47
- // return false;
48
- // } else {
49
- // // closeModal();
50
- // return true;
51
- // }
52
- // });
53
44
  };
54
45
  useEffect(() => {
55
46
  if (typeof window !== 'undefined') {
@@ -103,7 +94,7 @@ const Daeryuntalk = ({ tel = '1800-7905', centerCode = 'CT0000', bannerHeight =
103
94
  <title>법무법인 (유한)대륜 채팅상담</title>
104
95
  </Head>)}
105
96
  <DaeryuntalkToastProvider>
106
- {/*<ViewportHandler />*/}
97
+ <ViewportHandler isMobile={isMobile} isDisable={!isOpen || !isMobile}/>
107
98
  <DaeryuntalkProvider propsTel={tel} isMobile={isMobile} onClose={closeModal} centerCode={currentCenterCode || ''}>
108
99
  {isMobile ? (isOpen || !currentCenterCode ? null : (<ChatButton isOpen={isOpen} isMobile={isMobile} hashValue={hashValue} onClick={toggleChat}/>)) : !currentCenterCode ? null : (<ChatButton isOpen={isOpen} isMobile={isMobile} hashValue={hashValue} onClick={toggleChat} bannerHeight={bannerHeight}/>)}
109
100
  <ChatWidget isOpen={hashValue ? true : isOpen} isMobile={isMobile} onClose={closeModal} hashValue={hashValue} setHashValue={setHashValue} animationState={animationState}/>
@@ -6,9 +6,9 @@ import ChatWidget from './ChatWidget';
6
6
  import { DaeryuntalkProvider } from './DaeryuntalkContext';
7
7
  import { DaeryuntalkToastProvider } from './Toast/DaeryuntalkToastProvider';
8
8
  import mobile from 'is-mobile';
9
- import ViewportHandler from './ViewportHandler';
10
9
  import Head from 'next/head';
11
10
  import { usePathname } from 'next/navigation';
11
+ import ViewportHandler from './ViewportHandler';
12
12
 
13
13
  type DaeryuntalkProps = {
14
14
  tel?: string;
@@ -23,7 +23,6 @@ const Daeryuntalk: React.FC<DaeryuntalkProps> = ({ tel = '1800-7905', centerCode
23
23
 
24
24
  // const isMobile = mobile();
25
25
  const [hashValue, setHashValue] = useState<string | null>(null);
26
- const isLocal = process.env.NODE_ENV === 'development';
27
26
 
28
27
  const [showCustomTitle, setShowCustomTitle] = useState(false); // ← 추가
29
28
 
@@ -55,15 +54,6 @@ const Daeryuntalk: React.FC<DaeryuntalkProps> = ({ tel = '1800-7905', centerCode
55
54
  } else {
56
55
  openModal();
57
56
  }
58
- // setIsOpen(prev => {
59
- // if (prev) {
60
- // openModal();
61
- // return false;
62
- // } else {
63
- // // closeModal();
64
- // return true;
65
- // }
66
- // });
67
57
  };
68
58
  useEffect(() => {
69
59
  if (typeof window !== 'undefined') {
@@ -127,7 +117,7 @@ const Daeryuntalk: React.FC<DaeryuntalkProps> = ({ tel = '1800-7905', centerCode
127
117
  </Head>
128
118
  )}
129
119
  <DaeryuntalkToastProvider>
130
- {/*<ViewportHandler />*/}
120
+ <ViewportHandler isMobile={isMobile} isDisable={!isOpen || !isMobile} />
131
121
  <DaeryuntalkProvider
132
122
  propsTel={tel}
133
123
  isMobile={isMobile}
@@ -16,8 +16,8 @@ import ArrowIcon from '../../asset/images/fix/arrow.webp';
16
16
  import OnlineIconM from '../../asset/images/fix/online_m.webp';
17
17
  import KakaoIconM from '../../asset/images/fix/kakao_m.webp';
18
18
  import CallIconM from '../../asset/images/fix/call_m.webp';
19
- import CallIconB from '../../../public/images/header/call.webp';
20
- import CallBoxIcon from '../../../public/images/header/callbox.webp';
19
+ import CallIconB from '../../asset/images/fix/call_h.webp';
20
+ import CallBoxIcon from '../../asset/images/fix/callbox_h.webp';
21
21
  const Fix = (props) => {
22
22
  const mobile = require('is-mobile');
23
23
  const pathname = usePathname();
@@ -19,8 +19,8 @@ import OnlineIconM from '../../asset/images/fix/online_m.webp';
19
19
  import KakaoIconM from '../../asset/images/fix/kakao_m.webp';
20
20
  import CallIconM from '../../asset/images/fix/call_m.webp';
21
21
 
22
- import CallIconB from '../../../public/images/header/call.webp';
23
- import CallBoxIcon from '../../../public/images/header/callbox.webp';
22
+ import CallIconB from '../../asset/images/fix/call_h.webp';
23
+ import CallBoxIcon from '../../asset/images/fix/callbox_h.webp';
24
24
 
25
25
  const Fix = (props: {
26
26
  tel: string;
@@ -189,10 +189,12 @@ const LoginShareCheckContainer = ({ children, setUserInfo }) => {
189
189
  }
190
190
  });
191
191
  useEffect(() => {
192
- const routeCheck = CHECK_ROUTE.some(route => pathName.startsWith(route));
193
- if (routeCheck) {
194
- initializeUser();
195
- handlePageTransitionCheck();
192
+ if (pathName) {
193
+ const routeCheck = CHECK_ROUTE.some(route => pathName.startsWith(route));
194
+ if (routeCheck) {
195
+ initializeUser();
196
+ handlePageTransitionCheck();
197
+ }
196
198
  }
197
199
  }, [pathName]);
198
200
  return <>{children}</>;
@@ -201,10 +201,12 @@ const LoginShareCheckContainer = ({ children, setUserInfo }: Props) => {
201
201
  };
202
202
 
203
203
  useEffect(() => {
204
- const routeCheck = CHECK_ROUTE.some(route => pathName.startsWith(route));
205
- if (routeCheck) {
206
- initializeUser();
207
- handlePageTransitionCheck();
204
+ if (pathName) {
205
+ const routeCheck = CHECK_ROUTE.some(route => pathName.startsWith(route));
206
+ if (routeCheck) {
207
+ initializeUser();
208
+ handlePageTransitionCheck();
209
+ }
208
210
  }
209
211
  }, [pathName]);
210
212
 
@@ -75,13 +75,15 @@ export const checkAppLoginDetect = (userInfo, setUserInfo, isThirdCookie) => __a
75
75
  // useEffect에서 올바르게 사용
76
76
  const useAppLoginDetect = (userInfo, pathname, setUserInfo) => {
77
77
  useEffect(() => {
78
- const checkLogin = () => __awaiter(void 0, void 0, void 0, function* () {
79
- const isCookie = yield checkThirdPartyCookie();
80
- yield checkAppLoginDetect(userInfo, setUserInfo, isCookie);
81
- });
82
- const routeCheck = CHECK_ROUTE.some(route => pathname.startsWith(route));
83
- if (routeCheck) {
84
- checkLogin();
78
+ if (pathname) {
79
+ const checkLogin = () => __awaiter(void 0, void 0, void 0, function* () {
80
+ const isCookie = yield checkThirdPartyCookie();
81
+ yield checkAppLoginDetect(userInfo, setUserInfo, isCookie);
82
+ });
83
+ const routeCheck = CHECK_ROUTE.some(route => pathname.startsWith(route));
84
+ if (routeCheck) {
85
+ checkLogin();
86
+ }
85
87
  }
86
88
  }, [userInfo, pathname]);
87
89
  };
@@ -75,15 +75,18 @@ const useAppLoginDetect = (
75
75
  setUserInfo: React.Dispatch<React.SetStateAction<ILoginInfo>>
76
76
  ) => {
77
77
  useEffect(() => {
78
- const checkLogin = async () => {
79
- const isCookie = await checkThirdPartyCookie();
80
- await checkAppLoginDetect(userInfo, setUserInfo, isCookie);
81
- };
82
- const routeCheck = CHECK_ROUTE.some(route => pathname.startsWith(route));
83
-
84
- if (routeCheck) {
85
- checkLogin();
78
+ if(pathname){
79
+ const checkLogin = async () => {
80
+ const isCookie = await checkThirdPartyCookie();
81
+ await checkAppLoginDetect(userInfo, setUserInfo, isCookie);
82
+ };
83
+ const routeCheck = CHECK_ROUTE.some(route => pathname.startsWith(route));
84
+
85
+ if (routeCheck) {
86
+ checkLogin();
87
+ }
86
88
  }
89
+
87
90
  }, [userInfo, pathname]);
88
91
  };
89
92
 
@@ -850,6 +850,10 @@ html {
850
850
  right: -20px;
851
851
  }
852
852
 
853
+ .-right-\[4px\] {
854
+ right: -4px;
855
+ }
856
+
853
857
  .-right-\[50px\] {
854
858
  right: -50px;
855
859
  }
@@ -870,6 +874,10 @@ html {
870
874
  top: -10px;
871
875
  }
872
876
 
877
+ .-top-\[1px\] {
878
+ top: -1px;
879
+ }
880
+
873
881
  .-top-\[5px\] {
874
882
  top: -5px;
875
883
  }
@@ -2803,6 +2811,10 @@ html {
2803
2811
  height: 98px;
2804
2812
  }
2805
2813
 
2814
+ .h-\[calc\(100\%\)\] {
2815
+ height: calc(100%);
2816
+ }
2817
+
2806
2818
  .h-\[calc\(100\%\+60px\)\] {
2807
2819
  height: calc(100% + 60px);
2808
2820
  }
@@ -2815,8 +2827,8 @@ html {
2815
2827
  height: calc(100% - 80px);
2816
2828
  }
2817
2829
 
2818
- .h-\[calc\(100dvh-64px\)\] {
2819
- height: calc(100dvh - 64px);
2830
+ .h-\[calc\(100dvh\)\] {
2831
+ height: calc(100dvh);
2820
2832
  }
2821
2833
 
2822
2834
  .h-\[calc\(100dvh-68px-155px\)\] {
@@ -6812,6 +6824,10 @@ html {
6812
6824
  padding-bottom: 9px;
6813
6825
  }
6814
6826
 
6827
+ .\!pl-0 {
6828
+ padding-left: 0px !important;
6829
+ }
6830
+
6815
6831
  .\!pl-\[4px\] {
6816
6832
  padding-left: 4px !important;
6817
6833
  }
@@ -7753,6 +7769,10 @@ html {
7753
7769
  line-height: 1.25;
7754
7770
  }
7755
7771
 
7772
+ .tracking-\[-0\.04\%\] {
7773
+ letter-spacing: -0.04%;
7774
+ }
7775
+
7756
7776
  .tracking-\[-0\.04em\] {
7757
7777
  letter-spacing: -0.04em;
7758
7778
  }