@daeryun/dr_components 1.2.18 → 1.2.20

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 (241) hide show
  1. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  2. package/dist/components/Daeryuntalk/ChatButton.jsx +1 -1
  3. package/dist/components/Daeryuntalk/ChatButton.tsx +1 -1
  4. package/dist/components/Daeryuntalk/ChatWidget.d.ts +1 -0
  5. package/dist/components/Daeryuntalk/ChatWidget.jsx +114 -31
  6. package/dist/components/Daeryuntalk/ChatWidget.tsx +120 -37
  7. package/dist/components/Daeryuntalk/Viewer/TbPcViewer.tsx +0 -9
  8. package/dist/components/Daeryuntalk/index.jsx +17 -1
  9. package/dist/components/Daeryuntalk/index.tsx +26 -2
  10. package/dist/components/DaeryuntalkBackup/ChatButton.d.ts +11 -0
  11. package/dist/components/DaeryuntalkBackup/ChatButton.jsx +123 -0
  12. package/dist/components/DaeryuntalkBackup/ChatButton.tsx +157 -0
  13. package/dist/components/DaeryuntalkBackup/ChatConversation.d.ts +21 -0
  14. package/dist/components/DaeryuntalkBackup/ChatConversation.jsx +259 -0
  15. package/dist/components/DaeryuntalkBackup/ChatConversation.tsx +390 -0
  16. package/dist/components/DaeryuntalkBackup/ChatConversationItem/ChatConversationHeader.d.ts +16 -0
  17. package/dist/components/DaeryuntalkBackup/ChatConversationItem/ChatConversationHeader.jsx +50 -0
  18. package/dist/components/DaeryuntalkBackup/ChatConversationItem/ChatConversationHeader.tsx +108 -0
  19. package/dist/components/DaeryuntalkBackup/ChatHomeView.d.ts +14 -0
  20. package/dist/components/DaeryuntalkBackup/ChatHomeView.jsx +147 -0
  21. package/dist/components/DaeryuntalkBackup/ChatHomeView.tsx +262 -0
  22. package/dist/components/DaeryuntalkBackup/ChatInput.d.ts +8 -0
  23. package/dist/components/DaeryuntalkBackup/ChatInput.jsx +64 -0
  24. package/dist/components/DaeryuntalkBackup/ChatInput.tsx +98 -0
  25. package/dist/components/DaeryuntalkBackup/ChatItem/AgeCheckBox.d.ts +6 -0
  26. package/dist/components/DaeryuntalkBackup/ChatItem/AgeCheckBox.jsx +19 -0
  27. package/dist/components/DaeryuntalkBackup/ChatItem/AgeCheckBox.tsx +27 -0
  28. package/dist/components/DaeryuntalkBackup/ChatItem/ChatFile.d.ts +10 -0
  29. package/dist/components/DaeryuntalkBackup/ChatItem/ChatFile.jsx +165 -0
  30. package/dist/components/DaeryuntalkBackup/ChatItem/ChatFile.tsx +244 -0
  31. package/dist/components/DaeryuntalkBackup/ChatItem/ChatLoading.d.ts +6 -0
  32. package/dist/components/DaeryuntalkBackup/ChatItem/ChatLoading.jsx +12 -0
  33. package/dist/components/DaeryuntalkBackup/ChatItem/ChatLoading.tsx +25 -0
  34. package/dist/components/DaeryuntalkBackup/ChatItem/ChatPrivacyAuth.d.ts +8 -0
  35. package/dist/components/DaeryuntalkBackup/ChatItem/ChatPrivacyAuth.jsx +100 -0
  36. package/dist/components/DaeryuntalkBackup/ChatItem/ChatPrivacyAuth.tsx +135 -0
  37. package/dist/components/DaeryuntalkBackup/ChatItem/ChatWrapper.d.ts +8 -0
  38. package/dist/components/DaeryuntalkBackup/ChatItem/ChatWrapper.jsx +14 -0
  39. package/dist/components/DaeryuntalkBackup/ChatItem/ChatWrapper.tsx +26 -0
  40. package/dist/components/DaeryuntalkBackup/ChatItem/RichText.d.ts +7 -0
  41. package/dist/components/DaeryuntalkBackup/ChatItem/RichText.jsx +37 -0
  42. package/dist/components/DaeryuntalkBackup/ChatItem/RichText.tsx +45 -0
  43. package/dist/components/DaeryuntalkBackup/ChatItem/TimeWrapper.d.ts +9 -0
  44. package/dist/components/DaeryuntalkBackup/ChatItem/TimeWrapper.jsx +10 -0
  45. package/dist/components/DaeryuntalkBackup/ChatItem/TimeWrapper.tsx +21 -0
  46. package/dist/components/DaeryuntalkBackup/ChatItem/TypingComp.d.ts +3 -0
  47. package/dist/components/DaeryuntalkBackup/ChatItem/TypingComp.jsx +34 -0
  48. package/dist/components/DaeryuntalkBackup/ChatItem/TypingComp.tsx +43 -0
  49. package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowAuthForm.d.ts +8 -0
  50. package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowAuthForm.jsx +20 -0
  51. package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowAuthForm.tsx +32 -0
  52. package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowClickData.d.ts +7 -0
  53. package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowClickData.jsx +21 -0
  54. package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowClickData.tsx +37 -0
  55. package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowImg.d.ts +9 -0
  56. package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowImg.jsx +178 -0
  57. package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowImg.tsx +233 -0
  58. package/dist/components/DaeryuntalkBackup/ChatMessage.d.ts +20 -0
  59. package/dist/components/DaeryuntalkBackup/ChatMessage.jsx +198 -0
  60. package/dist/components/DaeryuntalkBackup/ChatMessage.tsx +295 -0
  61. package/dist/components/DaeryuntalkBackup/ChatObject/FieldWorkObject.d.ts +9 -0
  62. package/dist/components/DaeryuntalkBackup/ChatObject/FieldWorkObject.jsx +39 -0
  63. package/dist/components/DaeryuntalkBackup/ChatObject/FieldWorkObject.tsx +75 -0
  64. package/dist/components/DaeryuntalkBackup/ChatObject/ObjectBack.d.ts +7 -0
  65. package/dist/components/DaeryuntalkBackup/ChatObject/ObjectBack.jsx +20 -0
  66. package/dist/components/DaeryuntalkBackup/ChatObject/ObjectBack.tsx +39 -0
  67. package/dist/components/DaeryuntalkBackup/ChatObject/ObjectButton.d.ts +10 -0
  68. package/dist/components/DaeryuntalkBackup/ChatObject/ObjectButton.jsx +138 -0
  69. package/dist/components/DaeryuntalkBackup/ChatObject/ObjectButton.tsx +177 -0
  70. package/dist/components/DaeryuntalkBackup/ChatWidget.d.ts +13 -0
  71. package/dist/components/DaeryuntalkBackup/ChatWidget.jsx +154 -0
  72. package/dist/components/DaeryuntalkBackup/ChatWidget.tsx +221 -0
  73. package/dist/components/DaeryuntalkBackup/DaeryuntalkContext.d.ts +103 -0
  74. package/dist/components/DaeryuntalkBackup/DaeryuntalkContext.jsx +207 -0
  75. package/dist/components/DaeryuntalkBackup/DaeryuntalkContext.tsx +350 -0
  76. package/dist/components/DaeryuntalkBackup/DateSeparator.d.ts +6 -0
  77. package/dist/components/DaeryuntalkBackup/DateSeparator.jsx +14 -0
  78. package/dist/components/DaeryuntalkBackup/DateSeparator.tsx +24 -0
  79. package/dist/components/DaeryuntalkBackup/FixedErrorBox.d.ts +7 -0
  80. package/dist/components/DaeryuntalkBackup/FixedErrorBox.jsx +34 -0
  81. package/dist/components/DaeryuntalkBackup/FixedErrorBox.tsx +73 -0
  82. package/dist/components/DaeryuntalkBackup/History/AuthForm.d.ts +10 -0
  83. package/dist/components/DaeryuntalkBackup/History/AuthForm.jsx +157 -0
  84. package/dist/components/DaeryuntalkBackup/History/AuthForm.tsx +206 -0
  85. package/dist/components/DaeryuntalkBackup/HistoryView.d.ts +19 -0
  86. package/dist/components/DaeryuntalkBackup/HistoryView.jsx +94 -0
  87. package/dist/components/DaeryuntalkBackup/HistoryView.tsx +182 -0
  88. package/dist/components/DaeryuntalkBackup/HomeView.d.ts +12 -0
  89. package/dist/components/DaeryuntalkBackup/HomeView.jsx +178 -0
  90. package/dist/components/DaeryuntalkBackup/HomeView.tsx +261 -0
  91. package/dist/components/DaeryuntalkBackup/NavigationFooter.d.ts +11 -0
  92. package/dist/components/DaeryuntalkBackup/NavigationFooter.jsx +44 -0
  93. package/dist/components/DaeryuntalkBackup/NavigationFooter.tsx +98 -0
  94. package/dist/components/DaeryuntalkBackup/NoticeMessage.d.ts +7 -0
  95. package/dist/components/DaeryuntalkBackup/NoticeMessage.jsx +40 -0
  96. package/dist/components/DaeryuntalkBackup/NoticeMessage.tsx +60 -0
  97. package/dist/components/DaeryuntalkBackup/Tiptap/DisabledInput.d.ts +6 -0
  98. package/dist/components/DaeryuntalkBackup/Tiptap/DisabledInput.jsx +17 -0
  99. package/dist/components/DaeryuntalkBackup/Tiptap/DisabledInput.tsx +28 -0
  100. package/dist/components/DaeryuntalkBackup/Tiptap/Tiptap.d.ts +20 -0
  101. package/dist/components/DaeryuntalkBackup/Tiptap/Tiptap.jsx +130 -0
  102. package/dist/components/DaeryuntalkBackup/Tiptap/Tiptap.tsx +181 -0
  103. package/dist/components/DaeryuntalkBackup/Toast/DaeryuntalkToastProvider.d.ts +23 -0
  104. package/dist/components/DaeryuntalkBackup/Toast/DaeryuntalkToastProvider.jsx +40 -0
  105. package/dist/components/DaeryuntalkBackup/Toast/DaeryuntalkToastProvider.tsx +70 -0
  106. package/dist/components/DaeryuntalkBackup/Toast/Toast.d.ts +11 -0
  107. package/dist/components/DaeryuntalkBackup/Toast/Toast.jsx +64 -0
  108. package/dist/components/DaeryuntalkBackup/Toast/Toast.tsx +98 -0
  109. package/dist/components/DaeryuntalkBackup/Toast/ToastRender.d.ts +1 -0
  110. package/dist/components/DaeryuntalkBackup/Toast/ToastRender.jsx +22 -0
  111. package/dist/components/DaeryuntalkBackup/Toast/ToastRender.tsx +30 -0
  112. package/dist/components/DaeryuntalkBackup/Viewer/ImageViewer.d.ts +9 -0
  113. package/dist/components/DaeryuntalkBackup/Viewer/ImageViewer.jsx +98 -0
  114. package/dist/components/DaeryuntalkBackup/Viewer/ImageViewer.tsx +138 -0
  115. package/dist/components/DaeryuntalkBackup/Viewer/MobileViewer.d.ts +18 -0
  116. package/dist/components/DaeryuntalkBackup/Viewer/MobileViewer.jsx +104 -0
  117. package/dist/components/DaeryuntalkBackup/Viewer/MobileViewer.tsx +182 -0
  118. package/dist/components/DaeryuntalkBackup/Viewer/TbPcViewer.d.ts +24 -0
  119. package/dist/components/DaeryuntalkBackup/Viewer/TbPcViewer.jsx +141 -0
  120. package/dist/components/DaeryuntalkBackup/Viewer/TbPcViewer.tsx +278 -0
  121. package/dist/components/DaeryuntalkBackup/ViewportHandler.d.ts +6 -0
  122. package/dist/components/DaeryuntalkBackup/ViewportHandler.jsx +25 -0
  123. package/dist/components/DaeryuntalkBackup/ViewportHandler.tsx +32 -0
  124. package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/index.d.ts +177 -0
  125. package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/index.js +801 -0
  126. package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/index.ts +1097 -0
  127. package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/type/response.d.ts +131 -0
  128. package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/type/response.js +1 -0
  129. package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/type/response.ts +159 -0
  130. package/dist/components/DaeryuntalkBackup/_api/index.d.ts +6 -0
  131. package/dist/components/DaeryuntalkBackup/_api/index.js +6 -0
  132. package/dist/components/DaeryuntalkBackup/_api/index.ts +7 -0
  133. package/dist/components/DaeryuntalkBackup/_enums/ags_check_status.d.ts +5 -0
  134. package/dist/components/DaeryuntalkBackup/_enums/ags_check_status.js +9 -0
  135. package/dist/components/DaeryuntalkBackup/_enums/ags_check_status.ts +9 -0
  136. package/dist/components/DaeryuntalkBackup/_enums/ask-status.d.ts +13 -0
  137. package/dist/components/DaeryuntalkBackup/_enums/ask-status.js +25 -0
  138. package/dist/components/DaeryuntalkBackup/_enums/ask-status.ts +26 -0
  139. package/dist/components/DaeryuntalkBackup/_enums/error.d.ts +109 -0
  140. package/dist/components/DaeryuntalkBackup/_enums/error.js +254 -0
  141. package/dist/components/DaeryuntalkBackup/_enums/error.ts +289 -0
  142. package/dist/components/DaeryuntalkBackup/_enums/message_type.d.ts +6 -0
  143. package/dist/components/DaeryuntalkBackup/_enums/message_type.js +13 -0
  144. package/dist/components/DaeryuntalkBackup/_enums/message_type.ts +13 -0
  145. package/dist/components/DaeryuntalkBackup/_enums/sender_type.d.ts +8 -0
  146. package/dist/components/DaeryuntalkBackup/_enums/sender_type.js +16 -0
  147. package/dist/components/DaeryuntalkBackup/_enums/sender_type.ts +16 -0
  148. package/dist/components/DaeryuntalkBackup/_enums/socket_type.d.ts +34 -0
  149. package/dist/components/DaeryuntalkBackup/_enums/socket_type.js +46 -0
  150. package/dist/components/DaeryuntalkBackup/_enums/socket_type.ts +56 -0
  151. package/dist/components/DaeryuntalkBackup/_enums/template.d.ts +32 -0
  152. package/dist/components/DaeryuntalkBackup/_enums/template.js +76 -0
  153. package/dist/components/DaeryuntalkBackup/_enums/template.ts +81 -0
  154. package/dist/components/DaeryuntalkBackup/_enums/work_flow_object_expose.d.ts +33 -0
  155. package/dist/components/DaeryuntalkBackup/_enums/work_flow_object_expose.js +66 -0
  156. package/dist/components/DaeryuntalkBackup/_enums/work_flow_object_expose.ts +71 -0
  157. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useChatHandler.d.ts +48 -0
  158. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useChatHandler.js +465 -0
  159. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useChatHandler.ts +595 -0
  160. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useFullURL.d.ts +1 -0
  161. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useFullURL.jsx +15 -0
  162. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useFullURL.tsx +17 -0
  163. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useHistoryHandler.d.ts +24 -0
  164. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useHistoryHandler.js +112 -0
  165. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useHistoryHandler.ts +144 -0
  166. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useSocketEventHandler.d.ts +44 -0
  167. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useSocketEventHandler.js +534 -0
  168. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useSocketEventHandler.ts +706 -0
  169. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useViewerHook.d.ts +8 -0
  170. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useViewerHook.js +18 -0
  171. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useViewerHook.ts +23 -0
  172. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useWorkFlow.d.ts +9 -0
  173. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useWorkFlow.js +109 -0
  174. package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useWorkFlow.ts +121 -0
  175. package/dist/components/DaeryuntalkBackup/_hooks/useHoverScrollbar.d.ts +12 -0
  176. package/dist/components/DaeryuntalkBackup/_hooks/useHoverScrollbar.js +48 -0
  177. package/dist/components/DaeryuntalkBackup/_hooks/useHoverScrollbar.ts +73 -0
  178. package/dist/components/DaeryuntalkBackup/_hooks/useScrollShadow.d.ts +7 -0
  179. package/dist/components/DaeryuntalkBackup/_hooks/useScrollShadow.js +42 -0
  180. package/dist/components/DaeryuntalkBackup/_hooks/useScrollShadow.ts +52 -0
  181. package/dist/components/DaeryuntalkBackup/_hooks/useWindowSize.d.ts +6 -0
  182. package/dist/components/DaeryuntalkBackup/_hooks/useWindowSize.js +20 -0
  183. package/dist/components/DaeryuntalkBackup/_hooks/useWindowSize.ts +30 -0
  184. package/dist/components/DaeryuntalkBackup/_hooks/view/useChatSocketState.d.ts +2 -0
  185. package/dist/components/DaeryuntalkBackup/_hooks/view/useChatSocketState.js +26 -0
  186. package/dist/components/DaeryuntalkBackup/_hooks/view/useChatSocketState.ts +43 -0
  187. package/dist/components/DaeryuntalkBackup/_hooks/view/useHistoryView.d.ts +27 -0
  188. package/dist/components/DaeryuntalkBackup/_hooks/view/useHistoryView.js +80 -0
  189. package/dist/components/DaeryuntalkBackup/_hooks/view/useHistoryView.ts +101 -0
  190. package/dist/components/DaeryuntalkBackup/_hooks/view/useHomeView.d.ts +18 -0
  191. package/dist/components/DaeryuntalkBackup/_hooks/view/useHomeView.js +66 -0
  192. package/dist/components/DaeryuntalkBackup/_hooks/view/useHomeView.ts +75 -0
  193. package/dist/components/DaeryuntalkBackup/_lib/index.d.ts +7 -0
  194. package/dist/components/DaeryuntalkBackup/_lib/index.js +103 -0
  195. package/dist/components/DaeryuntalkBackup/_lib/index.ts +136 -0
  196. package/dist/components/DaeryuntalkBackup/_lib/utils.d.ts +17 -0
  197. package/dist/components/DaeryuntalkBackup/_lib/utils.js +94 -0
  198. package/dist/components/DaeryuntalkBackup/_lib/utils.ts +119 -0
  199. package/dist/components/DaeryuntalkBackup/_types/message.d.ts +92 -0
  200. package/dist/components/DaeryuntalkBackup/_types/message.js +25 -0
  201. package/dist/components/DaeryuntalkBackup/_types/message.ts +156 -0
  202. package/dist/components/DaeryuntalkBackup/_types/message_object.d.ts +17 -0
  203. package/dist/components/DaeryuntalkBackup/_types/message_object.js +1 -0
  204. package/dist/components/DaeryuntalkBackup/_types/message_object.ts +18 -0
  205. package/dist/components/DaeryuntalkBackup/_types/socket/workflow.d.ts +15 -0
  206. package/dist/components/DaeryuntalkBackup/_types/socket/workflow.js +1 -0
  207. package/dist/components/DaeryuntalkBackup/_types/socket/workflow.ts +15 -0
  208. package/dist/components/DaeryuntalkBackup/_ui/ShadowBox.d.ts +6 -0
  209. package/dist/components/DaeryuntalkBackup/_ui/ShadowBox.jsx +5 -0
  210. package/dist/components/DaeryuntalkBackup/_ui/ShadowBox.tsx +15 -0
  211. package/dist/components/DaeryuntalkBackup/_ui/buttons/Button1.d.ts +10 -0
  212. package/dist/components/DaeryuntalkBackup/_ui/buttons/Button1.jsx +12 -0
  213. package/dist/components/DaeryuntalkBackup/_ui/buttons/Button1.tsx +29 -0
  214. package/dist/components/DaeryuntalkBackup/_ui/buttons/Button2.d.ts +10 -0
  215. package/dist/components/DaeryuntalkBackup/_ui/buttons/Button2.jsx +12 -0
  216. package/dist/components/DaeryuntalkBackup/_ui/buttons/Button2.tsx +29 -0
  217. package/dist/components/DaeryuntalkBackup/_ui/buttons/Button3.d.ts +10 -0
  218. package/dist/components/DaeryuntalkBackup/_ui/buttons/Button3.jsx +12 -0
  219. package/dist/components/DaeryuntalkBackup/_ui/buttons/Button3.tsx +29 -0
  220. package/dist/components/DaeryuntalkBackup/_ui/buttons/Button4.d.ts +10 -0
  221. package/dist/components/DaeryuntalkBackup/_ui/buttons/Button4.jsx +12 -0
  222. package/dist/components/DaeryuntalkBackup/_ui/buttons/Button4.tsx +29 -0
  223. package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox1.d.ts +8 -0
  224. package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox1.jsx +15 -0
  225. package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox1.tsx +38 -0
  226. package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox2.d.ts +8 -0
  227. package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox2.jsx +21 -0
  228. package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox2.tsx +50 -0
  229. package/dist/components/DaeryuntalkBackup/_ui/inputs/Input1.d.ts +12 -0
  230. package/dist/components/DaeryuntalkBackup/_ui/inputs/Input1.jsx +9 -0
  231. package/dist/components/DaeryuntalkBackup/_ui/inputs/Input1.tsx +39 -0
  232. package/dist/components/DaeryuntalkBackup/_ui/inputs/Input2.d.ts +13 -0
  233. package/dist/components/DaeryuntalkBackup/_ui/inputs/Input2.jsx +10 -0
  234. package/dist/components/DaeryuntalkBackup/_ui/inputs/Input2.tsx +43 -0
  235. package/dist/components/DaeryuntalkBackup/index.d.ts +8 -0
  236. package/dist/components/DaeryuntalkBackup/index.jsx +190 -0
  237. package/dist/components/DaeryuntalkBackup/index.tsx +261 -0
  238. package/dist/components/common/integrate/index.d.ts +1 -1
  239. package/dist/styles/globals.css +415 -414
  240. package/dist/tsconfig.tsbuildinfo +1 -1
  241. package/package.json +5 -1
@@ -0,0 +1,100 @@
1
+ 'use client';
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import React, { useEffect, useState } from 'react';
12
+ import ChatWrapper from './ChatWrapper';
13
+ import Input1 from '../_ui/inputs/Input1';
14
+ import { useDaeryuntalk } from '../DaeryuntalkContext';
15
+ import Button1 from '../_ui/buttons/Button1';
16
+ // 채팅문의 번호 인증
17
+ const ChatPrivacyAuth = ({ message, isOperator }) => {
18
+ var _a;
19
+ const { chatUserUpdate, chatInquiryNumber } = useDaeryuntalk();
20
+ const formData = (_a = message === null || message === void 0 ? void 0 : message.form) !== null && _a !== void 0 ? _a : null;
21
+ const [authObject, setAuthObject] = useState({
22
+ name: '',
23
+ cell_phone_number: ''
24
+ });
25
+ // const [isAgeCheck, setIsAgeCheck] = useState<boolean>(false);
26
+ const [isModify, setIsModify] = useState(false);
27
+ useEffect(() => {
28
+ var _a, _b, _c, _d;
29
+ if (formData) {
30
+ setAuthObject({
31
+ name: (_b = (_a = formData.inputs.find(item => (item === null || item === void 0 ? void 0 : item.bindingKey) === 'name')) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : '',
32
+ cell_phone_number: (_d = (_c = formData.inputs.find(item => (item === null || item === void 0 ? void 0 : item.bindingKey) === 'cell_phone_number')) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : ''
33
+ });
34
+ }
35
+ }, [formData]);
36
+ const handleInput = (e) => {
37
+ const { name, value } = e.currentTarget;
38
+ setAuthObject(prev => {
39
+ return Object.assign(Object.assign({}, prev), { [name]: value });
40
+ });
41
+ };
42
+ const update = () => __awaiter(void 0, void 0, void 0, function* () {
43
+ yield chatUserUpdate({
44
+ chatInquiryNumber: chatInquiryNumber || '',
45
+ cellPhoneNumber: authObject.cell_phone_number || '',
46
+ name: authObject.name || '',
47
+ messageNumber: (message === null || message === void 0 ? void 0 : message.messageNumber) || ''
48
+ });
49
+ setIsModify(false);
50
+ });
51
+ // const ageCheck = (e: React.ChangeEvent<HTMLInputElement>) => {
52
+ // setIsAgeCheck(e.target.checked);
53
+ // };
54
+ const goModify = () => {
55
+ // setIsAgeCheck(false);
56
+ setIsModify(true);
57
+ };
58
+ if (!formData) {
59
+ return;
60
+ }
61
+ const renderSetAuth = () => (<div className="flex flex-col gap-[16px]">
62
+ {formData.inputs.map((item, index) => {
63
+ var _a, _b, _c;
64
+ return (<div className="flex flex-col gap-[8px]" key={index}>
65
+ <p className="text-[14px] font-[700] leading-[100%] tracking-[-4%]">{item.label}</p>
66
+ <Input1 onChange={handleInput} value={(_b = authObject[(_a = item.bindingKey) !== null && _a !== void 0 ? _a : '']) !== null && _b !== void 0 ? _b : ''} type={item.type} name={item.bindingKey || ''} readOnly={isModify ? false : ((_c = item.readOnly) !== null && _c !== void 0 ? _c : false)}/>
67
+ </div>);
68
+ })}
69
+ {/* <CheckBox1 title={'(필수)만 14세 이상입니다.'} checked={isAgeCheck} onChange={ageCheck} /> */}
70
+ <Button1 type="button" onClick={update}>
71
+ 저장
72
+ </Button1>
73
+ </div>);
74
+ return (<ChatWrapper isOperator={isOperator} className={`!py-[16px]`}>
75
+ {/* 최초 요청 시 */}
76
+ {!formData.submittedAt && renderSetAuth()}
77
+ {/* 회원 정보 보여주기 */}
78
+ {formData.submittedAt && !isModify && (<div className={`flex flex-col gap-[16px]`}>
79
+ <div className={`flex flex-col`}>
80
+ {formData.inputs.map((input, index) => {
81
+ return (<div className={`flex flex-col ${index === 0 ? ' border-b-[1px] border-solid border-b-[#EDEDED] pb-[10px] ' : ' mt-[10px] '} `} key={`sub-not-modify-${index}`}>
82
+ <div className={`flex h-[28px] items-center text-[14px] font-[700] leading-[100%] tracking-[-4%] `}>
83
+ {input.label}
84
+ </div>
85
+ <div className={`flex h-[28px] items-center text-[16px] font-[400] leading-[140%] tracking-[-4%] `}>
86
+ {input.value}
87
+ </div>
88
+ </div>);
89
+ })}
90
+ </div>
91
+ <Button1 type={'button'} onClick={goModify}>
92
+ 정보수정
93
+ </Button1>
94
+ </div>)}
95
+
96
+ {/* 회원 정보 수정 */}
97
+ {formData.submittedAt && isModify && renderSetAuth()}
98
+ </ChatWrapper>);
99
+ };
100
+ export default ChatPrivacyAuth;
@@ -0,0 +1,135 @@
1
+ 'use client';
2
+ import React, { FormEvent, useEffect, useState } from 'react';
3
+ import ChatWrapper from './ChatWrapper';
4
+ import { Form, Message } from '../_types/message';
5
+ import Input1 from '../_ui/inputs/Input1';
6
+ import { useDaeryuntalk } from '../DaeryuntalkContext';
7
+ import Button1 from '../_ui/buttons/Button1';
8
+ import CheckBox1 from '../_ui/checkboxs/CheckBox1';
9
+
10
+ interface props {
11
+ message: Message;
12
+ isOperator: boolean;
13
+ }
14
+
15
+ // 채팅문의 번호 인증
16
+ const ChatPrivacyAuth = ({ message, isOperator }: props) => {
17
+ const { chatUserUpdate, chatInquiryNumber } = useDaeryuntalk();
18
+ const formData: Form | null = message?.form ?? null;
19
+ const [authObject, setAuthObject] = useState<{
20
+ name?: string;
21
+ cell_phone_number?: string;
22
+ [key: string]: string | undefined;
23
+ }>({
24
+ name: '',
25
+ cell_phone_number: ''
26
+ });
27
+
28
+ // const [isAgeCheck, setIsAgeCheck] = useState<boolean>(false);
29
+
30
+ const [isModify, setIsModify] = useState<boolean>(false);
31
+
32
+ useEffect(() => {
33
+ if (formData) {
34
+ setAuthObject({
35
+ name: formData.inputs.find(item => item?.bindingKey === 'name')?.value ?? '',
36
+ cell_phone_number: formData.inputs.find(item => item?.bindingKey === 'cell_phone_number')?.value ?? ''
37
+ });
38
+ }
39
+ }, [formData]);
40
+
41
+ const handleInput = (e: FormEvent<HTMLInputElement>) => {
42
+ const { name, value } = e.currentTarget;
43
+ setAuthObject(prev => {
44
+ return {
45
+ ...prev,
46
+ [name]: value
47
+ };
48
+ });
49
+ };
50
+
51
+ const update = async () => {
52
+ await chatUserUpdate({
53
+ chatInquiryNumber: chatInquiryNumber || '',
54
+ cellPhoneNumber: authObject.cell_phone_number || '',
55
+ name: authObject.name || '',
56
+ messageNumber: message?.messageNumber || ''
57
+ });
58
+ setIsModify(false);
59
+ };
60
+
61
+ // const ageCheck = (e: React.ChangeEvent<HTMLInputElement>) => {
62
+ // setIsAgeCheck(e.target.checked);
63
+ // };
64
+
65
+ const goModify = () => {
66
+ // setIsAgeCheck(false);
67
+ setIsModify(true);
68
+ };
69
+
70
+ if (!formData) {
71
+ return;
72
+ }
73
+
74
+ const renderSetAuth = () => (
75
+ <div className="flex flex-col gap-[16px]">
76
+ {formData.inputs.map((item, index) => (
77
+ <div className="flex flex-col gap-[8px]" key={index}>
78
+ <p className="text-[14px] font-[700] leading-[100%] tracking-[-4%]">{item.label}</p>
79
+ <Input1
80
+ onChange={handleInput}
81
+ value={authObject[item.bindingKey ?? ''] ?? ''}
82
+ type={item.type}
83
+ name={item.bindingKey || ''}
84
+ readOnly={isModify ? false : (item.readOnly ?? false)}
85
+ />
86
+ </div>
87
+ ))}
88
+ {/* <CheckBox1 title={'(필수)만 14세 이상입니다.'} checked={isAgeCheck} onChange={ageCheck} /> */}
89
+ <Button1 type="button" onClick={update}>
90
+ 저장
91
+ </Button1>
92
+ </div>
93
+ );
94
+
95
+ return (
96
+ <ChatWrapper isOperator={isOperator} className={`!py-[16px]`}>
97
+ {/* 최초 요청 시 */}
98
+ {!formData.submittedAt && renderSetAuth()}
99
+ {/* 회원 정보 보여주기 */}
100
+ {formData.submittedAt && !isModify && (
101
+ <div className={`flex flex-col gap-[16px]`}>
102
+ <div className={`flex flex-col`}>
103
+ {formData.inputs.map((input, index) => {
104
+ return (
105
+ <div
106
+ className={`flex flex-col ${index === 0 ? ' border-b-[1px] border-solid border-b-[#EDEDED] pb-[10px] ' : ' mt-[10px] '} `}
107
+ key={`sub-not-modify-${index}`}
108
+ >
109
+ <div
110
+ className={`flex h-[28px] items-center text-[14px] font-[700] leading-[100%] tracking-[-4%] `}
111
+ >
112
+ {input.label}
113
+ </div>
114
+ <div
115
+ className={`flex h-[28px] items-center text-[16px] font-[400] leading-[140%] tracking-[-4%] `}
116
+ >
117
+ {input.value}
118
+ </div>
119
+ </div>
120
+ );
121
+ })}
122
+ </div>
123
+ <Button1 type={'button'} onClick={goModify}>
124
+ 정보수정
125
+ </Button1>
126
+ </div>
127
+ )}
128
+
129
+ {/* 회원 정보 수정 */}
130
+ {formData.submittedAt && isModify && renderSetAuth()}
131
+ </ChatWrapper>
132
+ );
133
+ };
134
+
135
+ export default ChatPrivacyAuth;
@@ -0,0 +1,8 @@
1
+ import React, { ReactNode } from 'react';
2
+ interface props {
3
+ isOperator: boolean;
4
+ className?: string;
5
+ children: ReactNode;
6
+ }
7
+ declare const ChatWrapper: ({ isOperator, children, className }: props) => React.JSX.Element;
8
+ export default ChatWrapper;
@@ -0,0 +1,14 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ const ChatWrapper = ({ isOperator, children, className = '' }) => {
4
+ const operatorClassName = 'border-drTalkGrayscale4 text-drTalkBlack';
5
+ const customerClassName = 'border-drTalkBtnActive2 text-drTalkHover bg-drTalkGrayscale5';
6
+ return (<div className={`
7
+ ${isOperator ? operatorClassName : customerClassName} ${className}
8
+ dr_talk_body_medium2 w-full whitespace-pre-line
9
+ break-words rounded-[10px] border px-[12px] py-[8px]
10
+ `}>
11
+ {children}
12
+ </div>);
13
+ };
14
+ export default ChatWrapper;
@@ -0,0 +1,26 @@
1
+ 'use client';
2
+ import React, { ReactNode } from 'react';
3
+
4
+ interface props {
5
+ isOperator: boolean;
6
+ className?: string;
7
+ children: ReactNode;
8
+ }
9
+ const ChatWrapper = ({ isOperator, children, className = '' }: props) => {
10
+ const operatorClassName = 'border-drTalkGrayscale4 text-drTalkBlack';
11
+ const customerClassName = 'border-drTalkBtnActive2 text-drTalkHover bg-drTalkGrayscale5';
12
+
13
+ return (
14
+ <div
15
+ className={`
16
+ ${isOperator ? operatorClassName : customerClassName} ${className}
17
+ dr_talk_body_medium2 w-full whitespace-pre-line
18
+ break-words rounded-[10px] border px-[12px] py-[8px]
19
+ `}
20
+ >
21
+ {children}
22
+ </div>
23
+ );
24
+ };
25
+
26
+ export default ChatWrapper;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { Message } from '../_types/message';
3
+ interface props {
4
+ message: Message;
5
+ }
6
+ declare const RichText: ({ message }: props) => React.JSX.Element;
7
+ export default RichText;
@@ -0,0 +1,37 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import { EditorContent, useEditor } from '@tiptap/react';
4
+ import StarterKit from '@tiptap/starter-kit';
5
+ import Image from '@tiptap/extension-image';
6
+ import Color from '@tiptap/extension-color';
7
+ import Link from '@tiptap/extension-link';
8
+ import TextStyle from '@tiptap/extension-text-style';
9
+ const RichText = ({ message }) => {
10
+ var _a;
11
+ const editor = useEditor({
12
+ extensions: [
13
+ StarterKit,
14
+ Image,
15
+ Link.configure({
16
+ openOnClick: true
17
+ }),
18
+ TextStyle,
19
+ Color.configure({
20
+ types: ['textStyle']
21
+ })
22
+ ],
23
+ content: (_a = message.richText) === null || _a === void 0 ? void 0 : _a.structuredData,
24
+ editable: false
25
+ });
26
+ return (<div className="tiptap prose !dr_talk_body_medium2 ">
27
+ <EditorContent editor={editor}/>
28
+ <style>{`
29
+ .tiptap a {
30
+ color: #2563eb; /* Tailwind blue-600 */
31
+ text-decoration: underline;
32
+ word-break:break-all;
33
+ }
34
+ `}</style>
35
+ </div>);
36
+ };
37
+ export default RichText;
@@ -0,0 +1,45 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import { Message } from '../_types/message';
4
+ import { EditorContent, useEditor } from '@tiptap/react';
5
+ import StarterKit from '@tiptap/starter-kit';
6
+ import Image from '@tiptap/extension-image';
7
+ import Color from '@tiptap/extension-color';
8
+ import Link from '@tiptap/extension-link';
9
+ import TextStyle from '@tiptap/extension-text-style';
10
+
11
+ interface props {
12
+ message: Message;
13
+ }
14
+ const RichText = ({ message }: props) => {
15
+ const editor = useEditor({
16
+ extensions: [
17
+ StarterKit,
18
+ Image,
19
+ Link.configure({
20
+ openOnClick: true
21
+ }),
22
+ TextStyle,
23
+ Color.configure({
24
+ types: ['textStyle']
25
+ })
26
+ ],
27
+ content: message.richText?.structuredData,
28
+ editable: false
29
+ });
30
+
31
+ return (
32
+ <div className="tiptap prose !dr_talk_body_medium2 ">
33
+ <EditorContent editor={editor} />
34
+ <style>{`
35
+ .tiptap a {
36
+ color: #2563eb; /* Tailwind blue-600 */
37
+ text-decoration: underline;
38
+ word-break:break-all;
39
+ }
40
+ `}</style>
41
+ </div>
42
+ );
43
+ };
44
+
45
+ export default RichText;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface TimeWrapperProps {
3
+ time: string;
4
+ timePosition?: 'right' | 'left';
5
+ children: React.ReactNode;
6
+ className?: string;
7
+ }
8
+ declare const TimeWrapper: React.FC<TimeWrapperProps>;
9
+ export default TimeWrapper;
@@ -0,0 +1,10 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ const TimeWrapper = ({ time, children, timePosition = 'right', className = '' }) => {
4
+ return (<div className={`flex flex-row items-end gap-[4px] ${className}`}>
5
+ {timePosition === 'left' && <div className="text-xs font-normal text-[#C2C2C2]">{time}</div>}
6
+ {children}
7
+ {timePosition === 'right' && <div className="text-xs font-normal text-[#C2C2C2]">{time}</div>}
8
+ </div>);
9
+ };
10
+ export default TimeWrapper;
@@ -0,0 +1,21 @@
1
+ 'use client';
2
+ import React from 'react';
3
+
4
+ interface TimeWrapperProps {
5
+ time: string;
6
+ timePosition?: 'right' | 'left';
7
+ children: React.ReactNode;
8
+ className?: string;
9
+ }
10
+
11
+ const TimeWrapper: React.FC<TimeWrapperProps> = ({ time, children, timePosition = 'right', className = '' }) => {
12
+ return (
13
+ <div className={`flex flex-row items-end gap-[4px] ${className}`}>
14
+ {timePosition === 'left' && <div className="text-xs font-normal text-[#C2C2C2]">{time}</div>}
15
+ {children}
16
+ {timePosition === 'right' && <div className="text-xs font-normal text-[#C2C2C2]">{time}</div>}
17
+ </div>
18
+ );
19
+ };
20
+
21
+ export default TimeWrapper;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const TypingComp: () => React.JSX.Element;
3
+ export default TypingComp;
@@ -0,0 +1,34 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import ChatWrapper from './ChatWrapper';
4
+ import Image from 'next/image';
5
+ // 이미지
6
+ // import DaeryunLogoIcon from '../../../asset/images/daeryuntalk/daeryun-logo.svg';
7
+ const TypingComp = () => {
8
+ const s3Url = process.env.NEXT_PUBLIC_S3_URL;
9
+ const DaeryunLogoIcon = `${s3Url}/daeryuntalk/daeryun-logo.svg`;
10
+ return (<div className="flex flex-col">
11
+ <div className="flex items-center gap-[10px]">
12
+ <div className="flex-shrink-0 rounded-full">
13
+ <div className="relative h-full w-full">
14
+ <Image src={DaeryunLogoIcon} alt="대륜 로고" width={24} height={24}/>
15
+ {/* <DaeryunLogoIcon width={24} height={24} /> */}
16
+ </div>
17
+ </div>
18
+ <span className="dr_talk_subtitle_medium text-drTalkBlack">법무법인(유한)대륜</span>
19
+ </div>
20
+
21
+ <div className="flex items-end pl-[34px]">
22
+ <ChatWrapper isOperator={true} className="!border-[0px] !px-[0px]">
23
+ <div className="flex h-[36px] items-center ">
24
+ <div className="flex animate-pulse space-x-2 rounded-full ">
25
+ <div className="h-[8px] w-[8px] animate-bounce rounded-full bg-drTalkGrayscale2 "></div>
26
+ <div className="h-[8px] w-[8px] animate-bounce rounded-full bg-drTalkGrayscale3" style={{ animationDelay: '0.2s' }}></div>
27
+ <div className="h-[8px] w-[8px] animate-bounce rounded-full bg-drTalkGrayscale3" style={{ animationDelay: '0.4s' }}></div>
28
+ </div>
29
+ </div>
30
+ </ChatWrapper>
31
+ </div>
32
+ </div>);
33
+ };
34
+ export default TypingComp;
@@ -0,0 +1,43 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import ChatWrapper from './ChatWrapper';
4
+ import Image from 'next/image';
5
+ // 이미지
6
+ // import DaeryunLogoIcon from '../../../asset/images/daeryuntalk/daeryun-logo.svg';
7
+ const TypingComp = () => {
8
+ const s3Url = process.env.NEXT_PUBLIC_S3_URL;
9
+ const DaeryunLogoIcon = `${s3Url}/daeryuntalk/daeryun-logo.svg`;
10
+ return (
11
+ <div className="flex flex-col">
12
+ <div className="flex items-center gap-[10px]">
13
+ <div className="flex-shrink-0 rounded-full">
14
+ <div className="relative h-full w-full">
15
+ <Image src={DaeryunLogoIcon} alt="대륜 로고" width={24} height={24} />
16
+ {/* <DaeryunLogoIcon width={24} height={24} /> */}
17
+ </div>
18
+ </div>
19
+ <span className="dr_talk_subtitle_medium text-drTalkBlack">법무법인(유한)대륜</span>
20
+ </div>
21
+
22
+ <div className="flex items-end pl-[34px]">
23
+ <ChatWrapper isOperator={true} className="!border-[0px] !px-[0px]">
24
+ <div className="flex h-[36px] items-center ">
25
+ <div className="flex animate-pulse space-x-2 rounded-full ">
26
+ <div className="h-[8px] w-[8px] animate-bounce rounded-full bg-drTalkGrayscale2 "></div>
27
+ <div
28
+ className="h-[8px] w-[8px] animate-bounce rounded-full bg-drTalkGrayscale3"
29
+ style={{ animationDelay: '0.2s' }}
30
+ ></div>
31
+ <div
32
+ className="h-[8px] w-[8px] animate-bounce rounded-full bg-drTalkGrayscale3"
33
+ style={{ animationDelay: '0.4s' }}
34
+ ></div>
35
+ </div>
36
+ </div>
37
+ </ChatWrapper>
38
+ </div>
39
+ </div>
40
+ );
41
+ };
42
+
43
+ export default TypingComp;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Message } from '../_types/message';
3
+ interface props {
4
+ message: Message;
5
+ isOperator: boolean;
6
+ }
7
+ declare const WorkFlowAuthForm: ({ message, isOperator }: props) => React.JSX.Element | null;
8
+ export default WorkFlowAuthForm;
@@ -0,0 +1,20 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import ChatWrapper from './ChatWrapper';
4
+ import ChatPrivacyAuth from './ChatPrivacyAuth';
5
+ const WorkFlowAuthForm = ({ message, isOperator }) => {
6
+ var _a, _b;
7
+ const formData = (_a = message === null || message === void 0 ? void 0 : message.form) !== null && _a !== void 0 ? _a : null;
8
+ if (!formData) {
9
+ return null;
10
+ }
11
+ return (<div className={`flex flex-col gap-[10px]`}>
12
+ {message.blocks && ((_b = message.blocks) === null || _b === void 0 ? void 0 : _b.length) > 0 && (<ChatWrapper isOperator={isOperator}>
13
+ {message.blocks
14
+ .filter(fil => fil.type === 'text')
15
+ .map((item, index) => (<p key={index}>{item.value}</p>))}
16
+ </ChatWrapper>)}
17
+ {formData.type === '개인정보수집' && <ChatPrivacyAuth isOperator={isOperator} message={message}/>}
18
+ </div>);
19
+ };
20
+ export default WorkFlowAuthForm;
@@ -0,0 +1,32 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import { Message } from '../_types/message';
4
+ import ChatWrapper from './ChatWrapper';
5
+ import ChatPrivacyAuth from './ChatPrivacyAuth';
6
+
7
+ interface props {
8
+ message: Message;
9
+ isOperator: boolean;
10
+ }
11
+ const WorkFlowAuthForm = ({ message, isOperator }: props) => {
12
+ const formData = message?.form ?? null;
13
+ if (!formData) {
14
+ return null;
15
+ }
16
+ return (
17
+ <div className={`flex flex-col gap-[10px]`}>
18
+ {message.blocks && message.blocks?.length > 0 && (
19
+ <ChatWrapper isOperator={isOperator}>
20
+ {message.blocks
21
+ .filter(fil => fil.type === 'text')
22
+ .map((item, index) => (
23
+ <p key={index}>{item.value}</p>
24
+ ))}
25
+ </ChatWrapper>
26
+ )}
27
+ {formData.type === '개인정보수집' && <ChatPrivacyAuth isOperator={isOperator} message={message} />}
28
+ </div>
29
+ );
30
+ };
31
+
32
+ export default WorkFlowAuthForm;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { Message } from '../_types/message';
3
+ interface props {
4
+ message: Message;
5
+ }
6
+ declare const WorkFlowClickData: ({ message }: props) => React.JSX.Element | null;
7
+ export default WorkFlowClickData;
@@ -0,0 +1,21 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import Image from 'next/image';
4
+ const WorkFlowClickData = ({ message }) => {
5
+ var _a, _b;
6
+ const iconBlock = (_b = (_a = message === null || message === void 0 ? void 0 : message.blocks) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
7
+ if (!iconBlock) {
8
+ return null;
9
+ }
10
+ return (<div className={`
11
+ dr_talk_body_medium2 flex h-[34px] flex-row items-center justify-center
12
+ gap-[6px] rounded-[10px] border-[1px] border-solid border-drTalkBtnActive2 bg-drTalkGrayscale5
13
+ px-[12px] text-drTalkBtnActive2
14
+ `}>
15
+ <div className={`h-[18px] w-[18px]`}>
16
+ <Image className={`h-full w-full`} src={(iconBlock === null || iconBlock === void 0 ? void 0 : iconBlock.iconUrl) || ''} alt={'icon'} width={100} height={100}/>
17
+ </div>
18
+ <p>{iconBlock === null || iconBlock === void 0 ? void 0 : iconBlock.value}</p>
19
+ </div>);
20
+ };
21
+ export default WorkFlowClickData;
@@ -0,0 +1,37 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import { Message } from '../_types/message';
4
+ import Image from 'next/image';
5
+
6
+ interface props {
7
+ message: Message;
8
+ }
9
+ const WorkFlowClickData = ({ message }: props) => {
10
+ const iconBlock = message?.blocks?.[0] ?? null;
11
+ if (!iconBlock) {
12
+ return null;
13
+ }
14
+
15
+ return (
16
+ <div
17
+ className={`
18
+ dr_talk_body_medium2 flex h-[34px] flex-row items-center justify-center
19
+ gap-[6px] rounded-[10px] border-[1px] border-solid border-drTalkBtnActive2 bg-drTalkGrayscale5
20
+ px-[12px] text-drTalkBtnActive2
21
+ `}
22
+ >
23
+ <div className={`h-[18px] w-[18px]`}>
24
+ <Image
25
+ className={`h-full w-full`}
26
+ src={iconBlock?.iconUrl || ''}
27
+ alt={'icon'}
28
+ width={100}
29
+ height={100}
30
+ />
31
+ </div>
32
+ <p>{iconBlock?.value}</p>
33
+ </div>
34
+ );
35
+ };
36
+
37
+ export default WorkFlowClickData;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Message } from '../_types/message';
3
+ interface props {
4
+ message: Message;
5
+ isOperator: boolean;
6
+ isMobile: boolean;
7
+ }
8
+ declare const WorkFlowImg: ({ message, isOperator, isMobile }: props) => React.JSX.Element;
9
+ export default WorkFlowImg;