@daeryun/dr_components 1.2.18 → 1.2.19
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/ChatButton.jsx +1 -1
- package/dist/components/Daeryuntalk/ChatButton.tsx +1 -1
- package/dist/components/Daeryuntalk/ChatWidget.d.ts +1 -0
- package/dist/components/Daeryuntalk/ChatWidget.jsx +114 -31
- package/dist/components/Daeryuntalk/ChatWidget.tsx +120 -37
- package/dist/components/Daeryuntalk/Viewer/TbPcViewer.tsx +0 -9
- package/dist/components/Daeryuntalk/index.jsx +17 -1
- package/dist/components/Daeryuntalk/index.tsx +26 -2
- package/dist/components/DaeryuntalkBackup/ChatButton.d.ts +11 -0
- package/dist/components/DaeryuntalkBackup/ChatButton.jsx +123 -0
- package/dist/components/DaeryuntalkBackup/ChatButton.tsx +157 -0
- package/dist/components/DaeryuntalkBackup/ChatConversation.d.ts +21 -0
- package/dist/components/DaeryuntalkBackup/ChatConversation.jsx +259 -0
- package/dist/components/DaeryuntalkBackup/ChatConversation.tsx +390 -0
- package/dist/components/DaeryuntalkBackup/ChatConversationItem/ChatConversationHeader.d.ts +16 -0
- package/dist/components/DaeryuntalkBackup/ChatConversationItem/ChatConversationHeader.jsx +50 -0
- package/dist/components/DaeryuntalkBackup/ChatConversationItem/ChatConversationHeader.tsx +108 -0
- package/dist/components/DaeryuntalkBackup/ChatHomeView.d.ts +14 -0
- package/dist/components/DaeryuntalkBackup/ChatHomeView.jsx +147 -0
- package/dist/components/DaeryuntalkBackup/ChatHomeView.tsx +262 -0
- package/dist/components/DaeryuntalkBackup/ChatInput.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/ChatInput.jsx +64 -0
- package/dist/components/DaeryuntalkBackup/ChatInput.tsx +98 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/AgeCheckBox.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/AgeCheckBox.jsx +19 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/AgeCheckBox.tsx +27 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatFile.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatFile.jsx +165 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatFile.tsx +244 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatLoading.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatLoading.jsx +12 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatLoading.tsx +25 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatPrivacyAuth.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatPrivacyAuth.jsx +100 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatPrivacyAuth.tsx +135 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatWrapper.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatWrapper.jsx +14 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatWrapper.tsx +26 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/RichText.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/RichText.jsx +37 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/RichText.tsx +45 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TimeWrapper.d.ts +9 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TimeWrapper.jsx +10 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TimeWrapper.tsx +21 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TypingComp.d.ts +3 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TypingComp.jsx +34 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TypingComp.tsx +43 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowAuthForm.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowAuthForm.jsx +20 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowAuthForm.tsx +32 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowClickData.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowClickData.jsx +21 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowClickData.tsx +37 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowImg.d.ts +9 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowImg.jsx +178 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowImg.tsx +233 -0
- package/dist/components/DaeryuntalkBackup/ChatMessage.d.ts +20 -0
- package/dist/components/DaeryuntalkBackup/ChatMessage.jsx +198 -0
- package/dist/components/DaeryuntalkBackup/ChatMessage.tsx +295 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/FieldWorkObject.d.ts +9 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/FieldWorkObject.jsx +39 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/FieldWorkObject.tsx +75 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectBack.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectBack.jsx +20 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectBack.tsx +39 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectButton.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectButton.jsx +138 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectButton.tsx +177 -0
- package/dist/components/DaeryuntalkBackup/ChatWidget.d.ts +13 -0
- package/dist/components/DaeryuntalkBackup/ChatWidget.jsx +154 -0
- package/dist/components/DaeryuntalkBackup/ChatWidget.tsx +221 -0
- package/dist/components/DaeryuntalkBackup/DaeryuntalkContext.d.ts +103 -0
- package/dist/components/DaeryuntalkBackup/DaeryuntalkContext.jsx +207 -0
- package/dist/components/DaeryuntalkBackup/DaeryuntalkContext.tsx +350 -0
- package/dist/components/DaeryuntalkBackup/DateSeparator.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/DateSeparator.jsx +14 -0
- package/dist/components/DaeryuntalkBackup/DateSeparator.tsx +24 -0
- package/dist/components/DaeryuntalkBackup/FixedErrorBox.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/FixedErrorBox.jsx +34 -0
- package/dist/components/DaeryuntalkBackup/FixedErrorBox.tsx +73 -0
- package/dist/components/DaeryuntalkBackup/History/AuthForm.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/History/AuthForm.jsx +157 -0
- package/dist/components/DaeryuntalkBackup/History/AuthForm.tsx +206 -0
- package/dist/components/DaeryuntalkBackup/HistoryView.d.ts +19 -0
- package/dist/components/DaeryuntalkBackup/HistoryView.jsx +94 -0
- package/dist/components/DaeryuntalkBackup/HistoryView.tsx +182 -0
- package/dist/components/DaeryuntalkBackup/HomeView.d.ts +12 -0
- package/dist/components/DaeryuntalkBackup/HomeView.jsx +178 -0
- package/dist/components/DaeryuntalkBackup/HomeView.tsx +261 -0
- package/dist/components/DaeryuntalkBackup/NavigationFooter.d.ts +11 -0
- package/dist/components/DaeryuntalkBackup/NavigationFooter.jsx +44 -0
- package/dist/components/DaeryuntalkBackup/NavigationFooter.tsx +98 -0
- package/dist/components/DaeryuntalkBackup/NoticeMessage.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/NoticeMessage.jsx +40 -0
- package/dist/components/DaeryuntalkBackup/NoticeMessage.tsx +60 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/DisabledInput.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/DisabledInput.jsx +17 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/DisabledInput.tsx +28 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/Tiptap.d.ts +20 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/Tiptap.jsx +130 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/Tiptap.tsx +181 -0
- package/dist/components/DaeryuntalkBackup/Toast/DaeryuntalkToastProvider.d.ts +23 -0
- package/dist/components/DaeryuntalkBackup/Toast/DaeryuntalkToastProvider.jsx +40 -0
- package/dist/components/DaeryuntalkBackup/Toast/DaeryuntalkToastProvider.tsx +70 -0
- package/dist/components/DaeryuntalkBackup/Toast/Toast.d.ts +11 -0
- package/dist/components/DaeryuntalkBackup/Toast/Toast.jsx +64 -0
- package/dist/components/DaeryuntalkBackup/Toast/Toast.tsx +98 -0
- package/dist/components/DaeryuntalkBackup/Toast/ToastRender.d.ts +1 -0
- package/dist/components/DaeryuntalkBackup/Toast/ToastRender.jsx +22 -0
- package/dist/components/DaeryuntalkBackup/Toast/ToastRender.tsx +30 -0
- package/dist/components/DaeryuntalkBackup/Viewer/ImageViewer.d.ts +9 -0
- package/dist/components/DaeryuntalkBackup/Viewer/ImageViewer.jsx +98 -0
- package/dist/components/DaeryuntalkBackup/Viewer/ImageViewer.tsx +138 -0
- package/dist/components/DaeryuntalkBackup/Viewer/MobileViewer.d.ts +18 -0
- package/dist/components/DaeryuntalkBackup/Viewer/MobileViewer.jsx +104 -0
- package/dist/components/DaeryuntalkBackup/Viewer/MobileViewer.tsx +182 -0
- package/dist/components/DaeryuntalkBackup/Viewer/TbPcViewer.d.ts +24 -0
- package/dist/components/DaeryuntalkBackup/Viewer/TbPcViewer.jsx +141 -0
- package/dist/components/DaeryuntalkBackup/Viewer/TbPcViewer.tsx +278 -0
- package/dist/components/DaeryuntalkBackup/ViewportHandler.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/ViewportHandler.jsx +25 -0
- package/dist/components/DaeryuntalkBackup/ViewportHandler.tsx +32 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/index.d.ts +177 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/index.js +801 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/index.ts +1097 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/type/response.d.ts +131 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/type/response.js +1 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/type/response.ts +159 -0
- package/dist/components/DaeryuntalkBackup/_api/index.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/_api/index.js +6 -0
- package/dist/components/DaeryuntalkBackup/_api/index.ts +7 -0
- package/dist/components/DaeryuntalkBackup/_enums/ags_check_status.d.ts +5 -0
- package/dist/components/DaeryuntalkBackup/_enums/ags_check_status.js +9 -0
- package/dist/components/DaeryuntalkBackup/_enums/ags_check_status.ts +9 -0
- package/dist/components/DaeryuntalkBackup/_enums/ask-status.d.ts +13 -0
- package/dist/components/DaeryuntalkBackup/_enums/ask-status.js +25 -0
- package/dist/components/DaeryuntalkBackup/_enums/ask-status.ts +26 -0
- package/dist/components/DaeryuntalkBackup/_enums/error.d.ts +109 -0
- package/dist/components/DaeryuntalkBackup/_enums/error.js +254 -0
- package/dist/components/DaeryuntalkBackup/_enums/error.ts +289 -0
- package/dist/components/DaeryuntalkBackup/_enums/message_type.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/_enums/message_type.js +13 -0
- package/dist/components/DaeryuntalkBackup/_enums/message_type.ts +13 -0
- package/dist/components/DaeryuntalkBackup/_enums/sender_type.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/_enums/sender_type.js +16 -0
- package/dist/components/DaeryuntalkBackup/_enums/sender_type.ts +16 -0
- package/dist/components/DaeryuntalkBackup/_enums/socket_type.d.ts +34 -0
- package/dist/components/DaeryuntalkBackup/_enums/socket_type.js +46 -0
- package/dist/components/DaeryuntalkBackup/_enums/socket_type.ts +56 -0
- package/dist/components/DaeryuntalkBackup/_enums/template.d.ts +32 -0
- package/dist/components/DaeryuntalkBackup/_enums/template.js +76 -0
- package/dist/components/DaeryuntalkBackup/_enums/template.ts +81 -0
- package/dist/components/DaeryuntalkBackup/_enums/work_flow_object_expose.d.ts +33 -0
- package/dist/components/DaeryuntalkBackup/_enums/work_flow_object_expose.js +66 -0
- package/dist/components/DaeryuntalkBackup/_enums/work_flow_object_expose.ts +71 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useChatHandler.d.ts +48 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useChatHandler.js +465 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useChatHandler.ts +595 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useFullURL.d.ts +1 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useFullURL.jsx +15 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useFullURL.tsx +17 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useHistoryHandler.d.ts +24 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useHistoryHandler.js +112 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useHistoryHandler.ts +144 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useSocketEventHandler.d.ts +44 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useSocketEventHandler.js +534 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useSocketEventHandler.ts +706 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useViewerHook.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useViewerHook.js +18 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useViewerHook.ts +23 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useWorkFlow.d.ts +9 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useWorkFlow.js +109 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useWorkFlow.ts +121 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useHoverScrollbar.d.ts +12 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useHoverScrollbar.js +48 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useHoverScrollbar.ts +73 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useScrollShadow.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useScrollShadow.js +42 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useScrollShadow.ts +52 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useWindowSize.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useWindowSize.js +20 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useWindowSize.ts +30 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useChatSocketState.d.ts +2 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useChatSocketState.js +26 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useChatSocketState.ts +43 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHistoryView.d.ts +27 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHistoryView.js +80 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHistoryView.ts +101 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHomeView.d.ts +18 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHomeView.js +66 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHomeView.ts +75 -0
- package/dist/components/DaeryuntalkBackup/_lib/index.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/_lib/index.js +103 -0
- package/dist/components/DaeryuntalkBackup/_lib/index.ts +136 -0
- package/dist/components/DaeryuntalkBackup/_lib/utils.d.ts +17 -0
- package/dist/components/DaeryuntalkBackup/_lib/utils.js +94 -0
- package/dist/components/DaeryuntalkBackup/_lib/utils.ts +119 -0
- package/dist/components/DaeryuntalkBackup/_types/message.d.ts +92 -0
- package/dist/components/DaeryuntalkBackup/_types/message.js +25 -0
- package/dist/components/DaeryuntalkBackup/_types/message.ts +156 -0
- package/dist/components/DaeryuntalkBackup/_types/message_object.d.ts +17 -0
- package/dist/components/DaeryuntalkBackup/_types/message_object.js +1 -0
- package/dist/components/DaeryuntalkBackup/_types/message_object.ts +18 -0
- package/dist/components/DaeryuntalkBackup/_types/socket/workflow.d.ts +15 -0
- package/dist/components/DaeryuntalkBackup/_types/socket/workflow.js +1 -0
- package/dist/components/DaeryuntalkBackup/_types/socket/workflow.ts +15 -0
- package/dist/components/DaeryuntalkBackup/_ui/ShadowBox.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/_ui/ShadowBox.jsx +5 -0
- package/dist/components/DaeryuntalkBackup/_ui/ShadowBox.tsx +15 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button1.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button1.jsx +12 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button1.tsx +29 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button2.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button2.jsx +12 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button2.tsx +29 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button3.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button3.jsx +12 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button3.tsx +29 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button4.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button4.jsx +12 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button4.tsx +29 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox1.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox1.jsx +15 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox1.tsx +38 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox2.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox2.jsx +21 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox2.tsx +50 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input1.d.ts +12 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input1.jsx +9 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input1.tsx +39 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input2.d.ts +13 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input2.jsx +10 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input2.tsx +43 -0
- package/dist/components/DaeryuntalkBackup/index.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/index.jsx +190 -0
- package/dist/components/DaeryuntalkBackup/index.tsx +261 -0
- package/dist/components/common/integrate/index.d.ts +1 -1
- package/dist/styles/globals.css +415 -410
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { Message } from '../_types/message';
|
|
3
|
+
import { PreviewImage, ZOOM_LEVELS } from './ImageViewer';
|
|
4
|
+
import Image from 'next/image';
|
|
5
|
+
import { formatDateToKorean } from '../_lib/utils';
|
|
6
|
+
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
7
|
+
|
|
8
|
+
import 'swiper/css';
|
|
9
|
+
import 'swiper/css/navigation';
|
|
10
|
+
|
|
11
|
+
// 이미지
|
|
12
|
+
// import RotateCCWIcon from '../../../asset/images/daeryuntalk/viewer/rotate.svg';
|
|
13
|
+
// import ZoomOutIcon from '../../../asset/images/daeryuntalk/viewer/zoom-out.svg';
|
|
14
|
+
// import ZoomInIcon from '../../../asset/images/daeryuntalk/viewer/zoom-in.svg';
|
|
15
|
+
// import DownloadIcon from '../../../asset/images/daeryuntalk/download.svg';
|
|
16
|
+
// import CloseIcon from '../../../asset/images/daeryuntalk/viewer/close.svg';
|
|
17
|
+
// import MoveSwipingIcon from '../../../asset/images/daeryuntalk/viewer/move-button.svg';
|
|
18
|
+
// import DaeryunLogoIcon from '../../../asset/images/daeryuntalk/daeryun-logo.svg';
|
|
19
|
+
|
|
20
|
+
interface ITbPcViewerProps {
|
|
21
|
+
imageViewerMessage?: Message | null;
|
|
22
|
+
handleDownload: () => void;
|
|
23
|
+
currentIndex: number;
|
|
24
|
+
setCurrentIndex: Dispatch<SetStateAction<number>>;
|
|
25
|
+
rotation: number;
|
|
26
|
+
currentZoom: number;
|
|
27
|
+
currentImage: PreviewImage;
|
|
28
|
+
closeImageViewer?: () => void;
|
|
29
|
+
previewImages: PreviewImage[];
|
|
30
|
+
setRotation: Dispatch<SetStateAction<number>>;
|
|
31
|
+
setZoomLevel: Dispatch<SetStateAction<number>>;
|
|
32
|
+
rotateImage: () => void;
|
|
33
|
+
zoomIn: () => void;
|
|
34
|
+
zoomOut: () => void;
|
|
35
|
+
zoomLevel: number;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const TbPcViewer = ({
|
|
39
|
+
imageViewerMessage,
|
|
40
|
+
handleDownload,
|
|
41
|
+
currentIndex,
|
|
42
|
+
setCurrentIndex,
|
|
43
|
+
rotation,
|
|
44
|
+
currentZoom,
|
|
45
|
+
currentImage,
|
|
46
|
+
closeImageViewer,
|
|
47
|
+
previewImages,
|
|
48
|
+
setRotation,
|
|
49
|
+
setZoomLevel,
|
|
50
|
+
rotateImage,
|
|
51
|
+
zoomIn,
|
|
52
|
+
zoomOut,
|
|
53
|
+
zoomLevel
|
|
54
|
+
}: ITbPcViewerProps) => {
|
|
55
|
+
const s3Url = process.env.NEXT_PUBLIC_S3_URL;
|
|
56
|
+
const rotateCCWIcon = `${s3Url}/daeryuntalk/viewer/rotate.svg`;
|
|
57
|
+
const zoomOutIcon = `${s3Url}/daeryuntalk/viewer/zoom-out.svg`;
|
|
58
|
+
const zoomInIcon = `${s3Url}/daeryuntalk/viewer/zoom-in.svg`;
|
|
59
|
+
const downloadIcon = `${s3Url}/daeryuntalk/download.svg`;
|
|
60
|
+
const closeIcon = `${s3Url}/daeryuntalk/viewer/close.svg`;
|
|
61
|
+
const moveSwipingIcon = `${s3Url}/daeryuntalk/viewer/move-button.svg`;
|
|
62
|
+
const daeryunLogoIcon = `${s3Url}/daeryuntalk/daeryun-logo.svg`;
|
|
63
|
+
return (
|
|
64
|
+
<div className={`hidden md2:block`}>
|
|
65
|
+
<div className={`flex h-[100dvh] flex-col items-center justify-center gap-[60px] px-[88px]`}>
|
|
66
|
+
{/* Main Image + Toolbar */}
|
|
67
|
+
<div className="group relative flex max-h-[80vh] max-w-[90vw] items-center justify-center md2:w-[800px] ">
|
|
68
|
+
{/* 고정된 위치의 좌측 네비게이션 버튼 */}
|
|
69
|
+
<button
|
|
70
|
+
onClick={() => setCurrentIndex(prev => prev - 1)}
|
|
71
|
+
disabled={currentIndex < 1}
|
|
72
|
+
className={`${currentIndex < 1 ? ' disabled:pointer-events-none disabled:opacity-30 ' : ' hover:scale-110 '} absolute top-1/2 z-20 -translate-y-1/2 rotate-180 text-white transition-transform md2:-left-[48px] lg:-left-[68px]`}
|
|
73
|
+
>
|
|
74
|
+
<Image
|
|
75
|
+
src={moveSwipingIcon}
|
|
76
|
+
alt="이동"
|
|
77
|
+
width={48}
|
|
78
|
+
height={48}
|
|
79
|
+
className="h-full w-full text-white"
|
|
80
|
+
/>
|
|
81
|
+
</button>
|
|
82
|
+
|
|
83
|
+
{/* 고정된 위치의 우측 네비게이션 버튼 */}
|
|
84
|
+
<button
|
|
85
|
+
disabled={currentIndex >= previewImages.length - 1}
|
|
86
|
+
onClick={() => setCurrentIndex(prev => prev + 1)}
|
|
87
|
+
className={`
|
|
88
|
+
${currentIndex >= previewImages.length - 1 ? ' disabled:opacity-30 ' : ' hover:scale-110 '}
|
|
89
|
+
absolute top-1/2 z-20 -translate-y-1/2 text-white transition-transform md2:-right-[48px] lg:-right-[68px]
|
|
90
|
+
`}
|
|
91
|
+
>
|
|
92
|
+
<Image
|
|
93
|
+
src={moveSwipingIcon}
|
|
94
|
+
alt="이동"
|
|
95
|
+
width={48}
|
|
96
|
+
height={48}
|
|
97
|
+
className="h-full w-full text-white"
|
|
98
|
+
/>
|
|
99
|
+
</button>
|
|
100
|
+
|
|
101
|
+
{/* 고정된 위치의 닫기 버튼 */}
|
|
102
|
+
<button
|
|
103
|
+
onClick={closeImageViewer}
|
|
104
|
+
className="absolute right-[20px] top-[20px] z-20 transition-transform hover:scale-110"
|
|
105
|
+
>
|
|
106
|
+
<Image src={closeIcon} alt="닫기" width={24} height={24} className="h-6 w-6 text-white" />
|
|
107
|
+
</button>
|
|
108
|
+
|
|
109
|
+
{/* 이미지 컨테이너 */}
|
|
110
|
+
<div
|
|
111
|
+
className={`
|
|
112
|
+
no-scrollbar relative flex h-[500px] w-full min-w-[calc(100dvw-160px)] items-center justify-center overflow-auto rounded-[20px]
|
|
113
|
+
bg-black/50 md2:min-w-[800px]
|
|
114
|
+
`}
|
|
115
|
+
>
|
|
116
|
+
{/*min-w-[320px]*/}
|
|
117
|
+
<div
|
|
118
|
+
className="relative overflow-hidden rounded-[20px]"
|
|
119
|
+
style={{
|
|
120
|
+
transform: `rotate(${rotation}deg) scale(${currentZoom / 100})`,
|
|
121
|
+
transformOrigin: 'center center',
|
|
122
|
+
transition: 'transform 0.2s ease'
|
|
123
|
+
}}
|
|
124
|
+
>
|
|
125
|
+
<Image
|
|
126
|
+
src={currentImage?.url || ''}
|
|
127
|
+
alt={currentImage?.file?.name || ''}
|
|
128
|
+
width={100}
|
|
129
|
+
height={100}
|
|
130
|
+
className="h-auto max-h-[500px] w-full max-w-[684px] object-contain"
|
|
131
|
+
unoptimized
|
|
132
|
+
/>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
{/* Hover Toolbar - 이미지 하단에 고정 */}
|
|
136
|
+
<div className="absolute bottom-0 left-1/2 w-full -translate-x-1/2 opacity-100 transition-opacity duration-300 md2:opacity-0 md2:group-hover:opacity-100">
|
|
137
|
+
<div className="mx-auto flex flex-col items-center justify-between gap-[5px] rounded-b-[20px] bg-black/70 p-[20px] text-white md2:h-[68px] md2:flex-row">
|
|
138
|
+
<div className="flex items-center gap-[20px]">
|
|
139
|
+
<div className={`flex items-center gap-[10px]`}>
|
|
140
|
+
<div className="flex-shrink-0 rounded-full">
|
|
141
|
+
<div className="relative h-full w-full">
|
|
142
|
+
<Image src={daeryunLogoIcon} alt="대륜 로고" width={28} height={28} />
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
<div className={`dr_talk_subtitle_medium text-drTalkWhite`}>
|
|
146
|
+
법무법인(유한)대륜
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
<div className={`text-drTalkWhite`}>|</div>
|
|
150
|
+
<span className={'dr_talk_body_medium2 text-drTalkWhite'}>
|
|
151
|
+
{formatDateToKorean(imageViewerMessage?.createdAt.toString() || '')}
|
|
152
|
+
</span>
|
|
153
|
+
</div>
|
|
154
|
+
<div className={`flex flex-row gap-[20px]`}>
|
|
155
|
+
<button onClick={rotateImage} className="transition-transform hover:scale-110">
|
|
156
|
+
<Image
|
|
157
|
+
src={rotateCCWIcon}
|
|
158
|
+
alt="회전"
|
|
159
|
+
width={24}
|
|
160
|
+
height={24}
|
|
161
|
+
className="h-6 w-6 text-white"
|
|
162
|
+
/>
|
|
163
|
+
</button>
|
|
164
|
+
<button
|
|
165
|
+
onClick={zoomOut}
|
|
166
|
+
disabled={zoomLevel === 0}
|
|
167
|
+
className={`
|
|
168
|
+
${
|
|
169
|
+
zoomLevel === 0
|
|
170
|
+
? 'cursor-not-allowed opacity-50'
|
|
171
|
+
: 'hover:scale-110 hover:opacity-80'
|
|
172
|
+
} transition-all`}
|
|
173
|
+
>
|
|
174
|
+
<Image
|
|
175
|
+
src={zoomOutIcon}
|
|
176
|
+
alt="확대"
|
|
177
|
+
width={24}
|
|
178
|
+
height={24}
|
|
179
|
+
className="h-6 w-6 text-white"
|
|
180
|
+
/>
|
|
181
|
+
</button>
|
|
182
|
+
<button
|
|
183
|
+
onClick={zoomIn}
|
|
184
|
+
disabled={zoomLevel === ZOOM_LEVELS.length - 1}
|
|
185
|
+
className={`${
|
|
186
|
+
zoomLevel === ZOOM_LEVELS.length - 1
|
|
187
|
+
? 'cursor-not-allowed opacity-50'
|
|
188
|
+
: 'hover:scale-110 hover:opacity-80'
|
|
189
|
+
} transition-all`}
|
|
190
|
+
>
|
|
191
|
+
<Image
|
|
192
|
+
src={zoomInIcon}
|
|
193
|
+
alt="확대"
|
|
194
|
+
width={24}
|
|
195
|
+
height={24}
|
|
196
|
+
className="h-6 w-6 text-white"
|
|
197
|
+
/>
|
|
198
|
+
</button>
|
|
199
|
+
<button onClick={handleDownload} className="transition-transform hover:scale-110">
|
|
200
|
+
<Image
|
|
201
|
+
src={downloadIcon}
|
|
202
|
+
alt="다운로드"
|
|
203
|
+
width={24}
|
|
204
|
+
height={24}
|
|
205
|
+
className="bg-transparent text-white"
|
|
206
|
+
/>
|
|
207
|
+
</button>
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
{/* Hover Toolbar - 이미지 하단에 끝 */}
|
|
212
|
+
</div>
|
|
213
|
+
</div>
|
|
214
|
+
|
|
215
|
+
{/* Thumbnail Preview - 고정된 위치 */}
|
|
216
|
+
{previewImages.length > 1 && (
|
|
217
|
+
<div className="flex w-full max-w-[90vw] flex-row justify-center gap-[10px] overflow-x-auto px-[20px] md2:max-w-[570px] ">
|
|
218
|
+
<Swiper
|
|
219
|
+
spaceBetween={10}
|
|
220
|
+
// slidesPerView={Math.min(previewImages.length, 5)}
|
|
221
|
+
slidesPerView={Math.min(previewImages.length, 5)}
|
|
222
|
+
watchSlidesProgress
|
|
223
|
+
allowTouchMove
|
|
224
|
+
>
|
|
225
|
+
{previewImages.map((img, idx) => (
|
|
226
|
+
<SwiperSlide key={idx} className={`!w-fit`}>
|
|
227
|
+
<div
|
|
228
|
+
onClick={() => {
|
|
229
|
+
setCurrentIndex(idx);
|
|
230
|
+
setRotation(0);
|
|
231
|
+
setZoomLevel(3);
|
|
232
|
+
}}
|
|
233
|
+
className={`
|
|
234
|
+
h-[60px] w-[96px] shrink-0 cursor-pointer overflow-hidden rounded-[10px] border-[1px]
|
|
235
|
+
${idx === currentIndex ? 'border-white' : 'border-transparent opacity-50 hover:opacity-100'}
|
|
236
|
+
`}
|
|
237
|
+
>
|
|
238
|
+
<Image
|
|
239
|
+
src={img.file.thumbnailUrl}
|
|
240
|
+
alt={img.file.name}
|
|
241
|
+
width={96}
|
|
242
|
+
height={60}
|
|
243
|
+
className="h-full w-full object-cover"
|
|
244
|
+
unoptimized
|
|
245
|
+
/>
|
|
246
|
+
</div>
|
|
247
|
+
</SwiperSlide>
|
|
248
|
+
))}
|
|
249
|
+
</Swiper>
|
|
250
|
+
{/*{previewImages.map((img, idx) => (*/}
|
|
251
|
+
{/* <div*/}
|
|
252
|
+
{/* key={img.file.fileNumber}*/}
|
|
253
|
+
{/* onClick={() => {*/}
|
|
254
|
+
{/* setCurrentIndex(idx);*/}
|
|
255
|
+
{/* setRotation(0);*/}
|
|
256
|
+
{/* setZoomLevel(3);*/}
|
|
257
|
+
{/* }}*/}
|
|
258
|
+
{/* className={`h-[60px] w-[96px] shrink-0 cursor-pointer overflow-hidden rounded-[10px] border-[1px]*/}
|
|
259
|
+
{/* ${idx === currentIndex ? 'border-white' : 'border-transparent opacity-50 hover:opacity-100'}`}*/}
|
|
260
|
+
{/* >*/}
|
|
261
|
+
{/* <Image*/}
|
|
262
|
+
{/* src={img.file.thumbnailUrl}*/}
|
|
263
|
+
{/* alt={img.file.name}*/}
|
|
264
|
+
{/* width={96}*/}
|
|
265
|
+
{/* height={60}*/}
|
|
266
|
+
{/* className="h-full w-full object-cover"*/}
|
|
267
|
+
{/* unoptimized*/}
|
|
268
|
+
{/* />*/}
|
|
269
|
+
{/* </div>*/}
|
|
270
|
+
{/*))}*/}
|
|
271
|
+
</div>
|
|
272
|
+
)}
|
|
273
|
+
</div>
|
|
274
|
+
</div>
|
|
275
|
+
);
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
export default TbPcViewer;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
export default function ViewportHandler({ isMobile = false, isDisable = true }) {
|
|
4
|
+
useEffect(() => {
|
|
5
|
+
if (!isMobile)
|
|
6
|
+
return;
|
|
7
|
+
if (isDisable)
|
|
8
|
+
return;
|
|
9
|
+
const ua = navigator.userAgent;
|
|
10
|
+
const isSafari = ua.includes('Safari') && !ua.includes('Chrome') && !ua.includes('Chromium');
|
|
11
|
+
if (isSafari) {
|
|
12
|
+
// 이미 삽입된 meta 있는지 체크
|
|
13
|
+
if (!document.querySelector('meta[name="viewport"][data-safari]')) {
|
|
14
|
+
const meta = document.createElement('meta');
|
|
15
|
+
meta.name = 'viewport';
|
|
16
|
+
meta.content = 'width=device-width, initial-scale=1, maximum-scale=1';
|
|
17
|
+
meta.setAttribute('data-safari', 'true'); // 중복 방지용
|
|
18
|
+
document.head.appendChild(meta);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
}
|
|
23
|
+
}, [isMobile, isDisable]);
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { useEffect } from 'react';
|
|
4
|
+
|
|
5
|
+
interface ViewportHandlerProps {
|
|
6
|
+
isDisable?: boolean;
|
|
7
|
+
isMobile?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default function ViewportHandler({ isMobile = false, isDisable = true }: ViewportHandlerProps) {
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (!isMobile) return;
|
|
13
|
+
if (isDisable) return;
|
|
14
|
+
|
|
15
|
+
const ua = navigator.userAgent;
|
|
16
|
+
const isSafari = ua.includes('Safari') && !ua.includes('Chrome') && !ua.includes('Chromium');
|
|
17
|
+
|
|
18
|
+
if (isSafari) {
|
|
19
|
+
// 이미 삽입된 meta 있는지 체크
|
|
20
|
+
if (!document.querySelector('meta[name="viewport"][data-safari]')) {
|
|
21
|
+
const meta = document.createElement('meta');
|
|
22
|
+
meta.name = 'viewport';
|
|
23
|
+
meta.content = 'width=device-width, initial-scale=1, maximum-scale=1';
|
|
24
|
+
meta.setAttribute('data-safari', 'true'); // 중복 방지용
|
|
25
|
+
document.head.appendChild(meta);
|
|
26
|
+
}
|
|
27
|
+
} else {
|
|
28
|
+
}
|
|
29
|
+
}, [isMobile, isDisable]);
|
|
30
|
+
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Daeryuntalk API 클라이언트 모듈 2025-04-23
|
|
3
|
+
*
|
|
4
|
+
* 이 모듈은 Daeryuntalk 채팅 API와 상호작용하기 위한 함수를 제공
|
|
5
|
+
* 1. 고객 인증
|
|
6
|
+
* 2. 웹소켓 연결 초기화
|
|
7
|
+
* 3. 웹소켓 연결
|
|
8
|
+
* 4. 채팅 문의 관리
|
|
9
|
+
*/
|
|
10
|
+
import { IDaeryunTalkResponseWrapper, WebSocketInitDataResponse, IChatInquiryMainDataResponse, ChatInquiryCreateDataResponse, ChatInquiryDetailDataResponse, SendMessageResponse, ChatInquiryMessageListDataResponse, HistoryListResponse, RequestConfirmNumberResponse } from './type/response';
|
|
11
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
12
|
+
import { AgeCheckStatusEnums } from '../../_enums/ags_check_status';
|
|
13
|
+
export declare const DEFAULT_API_VERSION = "1.0.0";
|
|
14
|
+
export declare const MESSAGE_TYPES: {
|
|
15
|
+
SYSTEM: string;
|
|
16
|
+
BOT: string;
|
|
17
|
+
CUSTOMER: string;
|
|
18
|
+
OPERATOR: string;
|
|
19
|
+
MACRO: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* 사용자 인증
|
|
23
|
+
* @param version API 버전 (기본값: 1.0.0)
|
|
24
|
+
* @returns 인증 응답
|
|
25
|
+
*/
|
|
26
|
+
export declare function authenticateUser(centerCode: string, version?: string, retry?: boolean): Promise<any>;
|
|
27
|
+
/**
|
|
28
|
+
* 웹소켓 연결 초기화
|
|
29
|
+
* @param version API 버전 (기본값: 1.0.0)
|
|
30
|
+
* @returns 연결 URL과 토큰이 포함된 웹소켓 초기화 데이터
|
|
31
|
+
*/
|
|
32
|
+
export declare function initializeWebSocket(version?: string): Promise<IDaeryunTalkResponseWrapper<WebSocketInitDataResponse>>;
|
|
33
|
+
/**
|
|
34
|
+
* 웹소켓 연결
|
|
35
|
+
* @param wsUrl 웹소켓 URL
|
|
36
|
+
* @param token 연결 토큰
|
|
37
|
+
* @param onMessage 메시지 핸들러
|
|
38
|
+
* @param onOpen 연결 열림 핸들러
|
|
39
|
+
* @param onClose 연결 닫힘 핸들러
|
|
40
|
+
* @param onError 오류 핸들러
|
|
41
|
+
* @returns 웹소켓 인스턴스
|
|
42
|
+
*/
|
|
43
|
+
export declare function connectWebSocket(wsUrl: string, token: string, isOpen: boolean, setIsConnected: Dispatch<SetStateAction<boolean | null>>, userExpiredRef: React.MutableRefObject<boolean>, onMessage?: (event: MessageEvent) => void, onOpen?: (event: Event) => void, onClose?: (event: CloseEvent) => void, onError?: (event: Event) => void): WebSocket;
|
|
44
|
+
/**
|
|
45
|
+
* 채팅 문의 메인 조회
|
|
46
|
+
* @param channelNumber 전달받은 채널
|
|
47
|
+
* @param version API 버전 (기본값: 1.0.0)
|
|
48
|
+
* @returns 채팅 문의 메인 데이터
|
|
49
|
+
*/
|
|
50
|
+
export declare function getChatInquiryMain(channelNumber: string, version?: string): Promise<IDaeryunTalkResponseWrapper<IChatInquiryMainDataResponse>>;
|
|
51
|
+
/**
|
|
52
|
+
* 새 채팅 문의 생성 (개선된 API)
|
|
53
|
+
* @param channelNumber
|
|
54
|
+
* @param currentUrl
|
|
55
|
+
* @param version
|
|
56
|
+
*/
|
|
57
|
+
export declare function generateChatInquiry(channelNumber: string, currentUrl: string, centerCode?: string, version?: string): Promise<IDaeryunTalkResponseWrapper<ChatInquiryCreateDataResponse>>;
|
|
58
|
+
/**
|
|
59
|
+
* 채팅 문의 상세 조회 (개선된 API)
|
|
60
|
+
* @param chatInquiryNumber 채팅 문의 번호
|
|
61
|
+
* @param version API 버전 (기본값: 1.0.0)
|
|
62
|
+
* @returns 채팅 문의 상세 정보
|
|
63
|
+
*/
|
|
64
|
+
export declare function getChatInquiryDetailNew(chat_inquiry_number: string, version?: string): Promise<IDaeryunTalkResponseWrapper<ChatInquiryDetailDataResponse>>;
|
|
65
|
+
/**
|
|
66
|
+
* 채팅 메세지 목록 조회
|
|
67
|
+
* @param chatInquiryNumber 채팅 문의 번호
|
|
68
|
+
* @param standard_date_time 기준 일시
|
|
69
|
+
* @param size 사이즈
|
|
70
|
+
* @param version API 버전 (기본값: 1.0.0)
|
|
71
|
+
* @returns 채팅 메세지 리스트
|
|
72
|
+
*/
|
|
73
|
+
export declare function getChatInquiryMessageList(chatInquiryNumber: string, standardTimestamp?: number, size?: number, version?: string): Promise<IDaeryunTalkResponseWrapper<ChatInquiryMessageListDataResponse>>;
|
|
74
|
+
/**
|
|
75
|
+
* Daeryuntalk 초기화 완료 흐름
|
|
76
|
+
* 이 함수는 인증부터 웹소켓 연결까지 완전한 흐름을 처리
|
|
77
|
+
* @param onWebSocketConnected 웹소켓 연결 시 콜백
|
|
78
|
+
* @param onWebSocketMessage 메시지 핸들러
|
|
79
|
+
* @param onWebSocketClose 웹소켓 종료 시 콜백
|
|
80
|
+
* @param onWebSocketError 웹소켓 오류 시 콜백
|
|
81
|
+
* @param version API 버전 (기본값: 1.0.0)
|
|
82
|
+
* @returns 웹소켓 인스턴스 및 문의 데이터
|
|
83
|
+
*/
|
|
84
|
+
export declare function initializeDaeryuntalk(hashValue: string, isOpen: boolean, setIsConnected: Dispatch<SetStateAction<boolean | null>>, isMobile: boolean, centerCode: string, userExpiredRef: React.MutableRefObject<boolean>, onWebSocketConnected?: (socket: WebSocket) => void, onWebSocketMessage?: (event: MessageEvent) => void, onWebSocketClose?: (event: CloseEvent) => void, onWebSocketError?: (event: Event) => void, version?: string): Promise<{
|
|
85
|
+
inquiryData: IDaeryunTalkResponseWrapper<IChatInquiryMainDataResponse> | null;
|
|
86
|
+
socket: WebSocket | null;
|
|
87
|
+
hashAuth: any;
|
|
88
|
+
errorCode: IDaeryunTalkResponseWrapper<any> | null;
|
|
89
|
+
}>;
|
|
90
|
+
/**
|
|
91
|
+
* 채팅 워크플로우 진행 처리
|
|
92
|
+
*
|
|
93
|
+
* @param chatInquiryNumber 채팅 문의 번호 required
|
|
94
|
+
* @param messageNumber 메시지 번호 required
|
|
95
|
+
* @param workFlowNumber 워크플로우 번호 required
|
|
96
|
+
* @param objectNumber 오브젝트 번호 required
|
|
97
|
+
* @param version API 버전 (기본값: 1.0.0)
|
|
98
|
+
* @returns 전송된 메시지 데이터
|
|
99
|
+
*/
|
|
100
|
+
export declare function chatWorkFlow(chatInquiryNumber: string, messageNumber: string, workFlowNumber: string, objectNumber: string, version?: string): Promise<IDaeryunTalkResponseWrapper<SendMessageResponse>>;
|
|
101
|
+
/**
|
|
102
|
+
* 채팅 워크플로우 되돌리기
|
|
103
|
+
*
|
|
104
|
+
* @param chatInquiryNumber 채팅 문의 번호 required
|
|
105
|
+
* @param messageNumber 메시지 번호 required
|
|
106
|
+
* @param workFlowNavigationCode 워크플로우네비게이션코드 번호 required
|
|
107
|
+
* @param version API 버전 (기본값: 1.0.0)
|
|
108
|
+
* @returns 전송된 메시지 데이터
|
|
109
|
+
*/
|
|
110
|
+
export declare function chatWorkFlowBack(chatInquiryNumber: string, messageNumber: string, workFlowNavigationCode: string, version?: string): Promise<IDaeryunTalkResponseWrapper<null>>;
|
|
111
|
+
/**
|
|
112
|
+
* 채팅 메시지 전송
|
|
113
|
+
* @param chatInquiryNumber 채팅 문의 번호
|
|
114
|
+
* @param messageText 메시지 내용
|
|
115
|
+
* @param version API 버전 (기본값: 1.0.0)
|
|
116
|
+
* @returns 전송된 메시지 데이터
|
|
117
|
+
*/
|
|
118
|
+
export declare function sendChatMessage(chatInquiryNumber: string, htmlContent: string, jsonData: any, version?: string): Promise<IDaeryunTalkResponseWrapper<SendMessageResponse>>;
|
|
119
|
+
/**
|
|
120
|
+
* 채팅 개인 정보 업데이트
|
|
121
|
+
* @param chatInquiryNumber 채팅 문의 번호
|
|
122
|
+
* @param messageNumber 해당 채팅 번호
|
|
123
|
+
* @param name 이름
|
|
124
|
+
* @param cellPhoneNumber 전화번호
|
|
125
|
+
* @param version API 버전 (기본값: 1.0.0)
|
|
126
|
+
* @returns 전송된 메시지 데이터
|
|
127
|
+
*/
|
|
128
|
+
export declare function chatUserUpdate(chatInquiryNumber: string, messageNumber: string, name: string, cellPhoneNumber: string, version?: string): Promise<IDaeryunTalkResponseWrapper<any>>;
|
|
129
|
+
export declare function ageCheckUpdate(chatInquiryNumber: string, ageConsentStateCode: AgeCheckStatusEnums, version?: string): Promise<IDaeryunTalkResponseWrapper<any>>;
|
|
130
|
+
/**
|
|
131
|
+
* 채팅문의 메시지 파일 다운로드 URL 생성
|
|
132
|
+
* @param chatInquiryNumber 채팅문의번호
|
|
133
|
+
* @param fileNumber 파일번호
|
|
134
|
+
* @param version
|
|
135
|
+
*/
|
|
136
|
+
export declare const getMessageFileDownloadUrl: ({ chatInquiryNumber, fileNumber, version }: {
|
|
137
|
+
chatInquiryNumber: string;
|
|
138
|
+
fileNumber: string;
|
|
139
|
+
version?: string;
|
|
140
|
+
}) => Promise<IDaeryunTalkResponseWrapper<{
|
|
141
|
+
url: string;
|
|
142
|
+
}>>;
|
|
143
|
+
/**
|
|
144
|
+
* 점유 인증 번호 요청
|
|
145
|
+
* @param name
|
|
146
|
+
* @param cellPhoneNumber
|
|
147
|
+
* @param version
|
|
148
|
+
*/
|
|
149
|
+
export declare const requestPhone: ({ name, cellPhoneNumber, version }: {
|
|
150
|
+
name: string;
|
|
151
|
+
cellPhoneNumber: string;
|
|
152
|
+
version?: string;
|
|
153
|
+
}) => Promise<IDaeryunTalkResponseWrapper<RequestConfirmNumberResponse>>;
|
|
154
|
+
/**
|
|
155
|
+
* 점유 인증 번호 검증
|
|
156
|
+
* @param name
|
|
157
|
+
* @param cellPhoneNumber
|
|
158
|
+
* @param certificationNumber
|
|
159
|
+
* @param version
|
|
160
|
+
*/
|
|
161
|
+
export declare const historyPhoneAuth: ({ name, cellPhoneNumber, certificationNumber, version }: {
|
|
162
|
+
name: string;
|
|
163
|
+
cellPhoneNumber: string;
|
|
164
|
+
certificationNumber: string;
|
|
165
|
+
version?: string;
|
|
166
|
+
}) => Promise<IDaeryunTalkResponseWrapper<unknown>>;
|
|
167
|
+
export declare const getHistoryList: ({ version }: {
|
|
168
|
+
version?: string;
|
|
169
|
+
}) => Promise<IDaeryunTalkResponseWrapper<HistoryListResponse>>;
|
|
170
|
+
export declare const attendChatRoomByHistory: ({ chatInquiryNumber, version }: {
|
|
171
|
+
chatInquiryNumber: string;
|
|
172
|
+
version?: string;
|
|
173
|
+
}) => Promise<IDaeryunTalkResponseWrapper<HistoryListResponse>>;
|
|
174
|
+
export declare const followupAttend: ({ token, version }: {
|
|
175
|
+
token: string;
|
|
176
|
+
version?: string;
|
|
177
|
+
}) => Promise<IDaeryunTalkResponseWrapper<HistoryListResponse>>;
|