@daeryun/dr_components 0.8.88 → 0.8.89

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.
@@ -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
  >
@@ -247,7 +247,7 @@ export const useSocketEventHandler = ({ setIsConnected, setIsLoading, setMessage
247
247
  else {
248
248
  toast.error('인증에 실패했습니다.');
249
249
  onClose();
250
- window.location.hash = '/';
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')) {
@@ -339,7 +339,7 @@ export const useSocketEventHandler = ({
339
339
  } else {
340
340
  toast.error('인증에 실패했습니다.');
341
341
  onClose();
342
- window.location.hash = '/';
342
+ window.location.href = '/';
343
343
  }
344
344
  }
345
345