@daeryun/dr_components 0.8.47 → 0.8.48

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 (120) hide show
  1. package/dist/asset/images/daeryuntalk/close.svg +2 -2
  2. package/dist/asset/images/daeryuntalk/time.svg +2 -2
  3. package/dist/asset/images/daeryuntalk/viewer/zoom-out.svg +2 -4
  4. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  5. package/dist/components/Daeryuntalk/ChatButton.jsx +5 -2
  6. package/dist/components/Daeryuntalk/ChatButton.tsx +5 -2
  7. package/dist/components/Daeryuntalk/ChatConversation.d.ts +2 -0
  8. package/dist/components/Daeryuntalk/ChatConversation.jsx +22 -63
  9. package/dist/components/Daeryuntalk/ChatConversation.tsx +42 -79
  10. package/dist/components/Daeryuntalk/ChatConversationItem/ChatConversationHeader.d.ts +11 -0
  11. package/dist/components/Daeryuntalk/ChatConversationItem/ChatConversationHeader.jsx +27 -0
  12. package/dist/components/Daeryuntalk/ChatConversationItem/ChatConversationHeader.tsx +57 -0
  13. package/dist/components/Daeryuntalk/ChatHomeView.d.ts +3 -2
  14. package/dist/components/Daeryuntalk/ChatHomeView.jsx +59 -181
  15. package/dist/components/Daeryuntalk/ChatHomeView.tsx +102 -206
  16. package/dist/components/Daeryuntalk/ChatItem/ChatFile.jsx +15 -14
  17. package/dist/components/Daeryuntalk/ChatItem/ChatFile.tsx +15 -14
  18. package/dist/components/Daeryuntalk/ChatItem/ChatLoading.d.ts +3 -0
  19. package/dist/components/Daeryuntalk/ChatItem/ChatLoading.jsx +11 -0
  20. package/dist/components/Daeryuntalk/ChatItem/ChatLoading.tsx +21 -0
  21. package/dist/components/Daeryuntalk/ChatItem/ChatWrapper.jsx +4 -4
  22. package/dist/components/Daeryuntalk/ChatItem/ChatWrapper.tsx +4 -4
  23. package/dist/components/Daeryuntalk/ChatItem/RichText.jsx +2 -1
  24. package/dist/components/Daeryuntalk/ChatItem/RichText.tsx +2 -1
  25. package/dist/components/Daeryuntalk/ChatItem/TimeWrapper.d.ts +9 -0
  26. package/dist/components/Daeryuntalk/ChatItem/TimeWrapper.jsx +9 -0
  27. package/dist/components/Daeryuntalk/ChatItem/TimeWrapper.tsx +20 -0
  28. package/dist/components/Daeryuntalk/ChatItem/WorkFlowClickData.jsx +3 -3
  29. package/dist/components/Daeryuntalk/ChatItem/WorkFlowClickData.tsx +3 -3
  30. package/dist/components/Daeryuntalk/ChatItem/WorkFlowImg.jsx +2 -2
  31. package/dist/components/Daeryuntalk/ChatItem/WorkFlowImg.tsx +2 -2
  32. package/dist/components/Daeryuntalk/ChatMessage.d.ts +1 -0
  33. package/dist/components/Daeryuntalk/ChatMessage.jsx +31 -36
  34. package/dist/components/Daeryuntalk/ChatMessage.tsx +34 -38
  35. package/dist/components/Daeryuntalk/ChatObject/FieldWorkObject.jsx +2 -2
  36. package/dist/components/Daeryuntalk/ChatObject/FieldWorkObject.tsx +2 -2
  37. package/dist/components/Daeryuntalk/ChatObject/ObjectBack.jsx +1 -1
  38. package/dist/components/Daeryuntalk/ChatObject/ObjectBack.tsx +1 -1
  39. package/dist/components/Daeryuntalk/ChatObject/ObjectButton.jsx +6 -23
  40. package/dist/components/Daeryuntalk/ChatObject/ObjectButton.tsx +6 -23
  41. package/dist/components/Daeryuntalk/ChatWidget.jsx +60 -23
  42. package/dist/components/Daeryuntalk/ChatWidget.tsx +72 -34
  43. package/dist/components/Daeryuntalk/DaeryuntalkContext.d.ts +2 -2
  44. package/dist/components/Daeryuntalk/DaeryuntalkContext.jsx +2 -2
  45. package/dist/components/Daeryuntalk/DaeryuntalkContext.tsx +5 -5
  46. package/dist/components/Daeryuntalk/DateSeparator.jsx +2 -2
  47. package/dist/components/Daeryuntalk/DateSeparator.tsx +2 -2
  48. package/dist/components/Daeryuntalk/FixedErrorBox.d.ts +7 -0
  49. package/dist/components/Daeryuntalk/FixedErrorBox.jsx +33 -0
  50. package/dist/components/Daeryuntalk/FixedErrorBox.tsx +73 -0
  51. package/dist/components/Daeryuntalk/History/AuthForm.d.ts +3 -1
  52. package/dist/components/Daeryuntalk/History/AuthForm.jsx +15 -45
  53. package/dist/components/Daeryuntalk/History/AuthForm.tsx +21 -53
  54. package/dist/components/Daeryuntalk/HistoryView.d.ts +4 -0
  55. package/dist/components/Daeryuntalk/HistoryView.jsx +17 -40
  56. package/dist/components/Daeryuntalk/HistoryView.tsx +36 -48
  57. package/dist/components/Daeryuntalk/HomeView.d.ts +12 -0
  58. package/dist/components/Daeryuntalk/HomeView.jsx +102 -0
  59. package/dist/components/Daeryuntalk/HomeView.tsx +150 -0
  60. package/dist/components/Daeryuntalk/NavigationFooter.jsx +17 -10
  61. package/dist/components/Daeryuntalk/NavigationFooter.tsx +22 -12
  62. package/dist/components/Daeryuntalk/NoticeMessage.jsx +7 -7
  63. package/dist/components/Daeryuntalk/NoticeMessage.tsx +7 -7
  64. package/dist/components/Daeryuntalk/Toast/ToastRender.jsx +1 -1
  65. package/dist/components/Daeryuntalk/Toast/ToastRender.tsx +2 -2
  66. package/dist/components/Daeryuntalk/Viewer/ImageViewer.d.ts +6 -0
  67. package/dist/components/Daeryuntalk/Viewer/ImageViewer.jsx +18 -90
  68. package/dist/components/Daeryuntalk/Viewer/ImageViewer.tsx +49 -135
  69. package/dist/components/Daeryuntalk/Viewer/MobileViewer.d.ts +16 -0
  70. package/dist/components/Daeryuntalk/Viewer/MobileViewer.jsx +66 -0
  71. package/dist/components/Daeryuntalk/Viewer/MobileViewer.tsx +121 -0
  72. package/dist/components/Daeryuntalk/Viewer/TbPcViewer.d.ts +22 -0
  73. package/dist/components/Daeryuntalk/Viewer/TbPcViewer.jsx +104 -0
  74. package/dist/components/Daeryuntalk/Viewer/TbPcViewer.tsx +195 -0
  75. package/dist/components/Daeryuntalk/_api/daeryuntalk/index.d.ts +4 -3
  76. package/dist/components/Daeryuntalk/_api/daeryuntalk/index.js +81 -105
  77. package/dist/components/Daeryuntalk/_api/daeryuntalk/index.ts +105 -121
  78. package/dist/components/Daeryuntalk/_enums/ask-status.d.ts +7 -0
  79. package/dist/components/Daeryuntalk/_enums/ask-status.js +14 -0
  80. package/dist/components/Daeryuntalk/_enums/ask-status.ts +14 -0
  81. package/dist/components/Daeryuntalk/_enums/error.d.ts +3 -0
  82. package/dist/components/Daeryuntalk/_enums/error.js +125 -0
  83. package/dist/components/Daeryuntalk/_enums/error.ts +143 -0
  84. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.d.ts +8 -8
  85. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.js +227 -179
  86. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.ts +261 -185
  87. package/dist/components/Daeryuntalk/_hooks/talkprovider/useHistoryHandler.d.ts +1 -1
  88. package/dist/components/Daeryuntalk/_hooks/talkprovider/useHistoryHandler.js +54 -18
  89. package/dist/components/Daeryuntalk/_hooks/talkprovider/useHistoryHandler.ts +68 -15
  90. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.d.ts +2 -2
  91. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.js +8 -7
  92. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.ts +13 -6
  93. package/dist/components/Daeryuntalk/_hooks/view/useChatSocketState.d.ts +2 -0
  94. package/dist/components/Daeryuntalk/_hooks/{talkprovider → view}/useChatSocketState.js +7 -1
  95. package/dist/components/Daeryuntalk/_hooks/{talkprovider → view}/useChatSocketState.ts +13 -1
  96. package/dist/components/Daeryuntalk/_hooks/view/useHistoryView.d.ts +26 -0
  97. package/dist/components/Daeryuntalk/_hooks/view/useHistoryView.js +72 -0
  98. package/dist/components/Daeryuntalk/_hooks/view/useHistoryView.ts +93 -0
  99. package/dist/components/Daeryuntalk/_hooks/view/useHomeView.d.ts +16 -0
  100. package/dist/components/Daeryuntalk/_hooks/view/useHomeView.js +61 -0
  101. package/dist/components/Daeryuntalk/_hooks/view/useHomeView.ts +64 -0
  102. package/dist/components/Daeryuntalk/_lib/utils.d.ts +1 -0
  103. package/dist/components/Daeryuntalk/_lib/utils.js +27 -0
  104. package/dist/components/Daeryuntalk/_lib/utils.ts +33 -0
  105. package/dist/components/Daeryuntalk/_ui/buttons/Button2.jsx +3 -3
  106. package/dist/components/Daeryuntalk/_ui/buttons/Button2.tsx +3 -3
  107. package/dist/components/Daeryuntalk/_ui/buttons/Button3.d.ts +10 -0
  108. package/dist/components/Daeryuntalk/_ui/buttons/Button3.jsx +12 -0
  109. package/dist/components/Daeryuntalk/_ui/buttons/Button3.tsx +29 -0
  110. package/dist/components/Daeryuntalk/_ui/inputs/Input2.jsx +2 -1
  111. package/dist/components/Daeryuntalk/_ui/inputs/Input2.tsx +2 -1
  112. package/dist/components/Daeryuntalk/index.jsx +1 -1
  113. package/dist/components/Daeryuntalk/index.tsx +12 -1
  114. package/dist/styles/globals.css +510 -168
  115. package/dist/tsconfig.tsbuildinfo +1 -1
  116. package/package.json +1 -1
  117. package/dist/components/Daeryuntalk/_enums/error_code.d.ts +0 -21
  118. package/dist/components/Daeryuntalk/_enums/error_code.js +0 -23
  119. package/dist/components/Daeryuntalk/_enums/error_code.ts +0 -22
  120. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatSocketState.d.ts +0 -1
@@ -6,15 +6,15 @@ interface props {
6
6
  children: ReactNode;
7
7
  }
8
8
  const ChatWrapper = ({ isOperator, children, className = '' }: props) => {
9
- const operatorClassName = 'border-[#EDEDED] text-black';
10
- const customerClassName = 'border-[#2E385B] text-[#2E385B] bg-[#F7F7F7]';
9
+ const operatorClassName = 'border-drTalkGrayscale4 text-drTalkBlack';
10
+ const customerClassName = 'border-drTalkBtnActive2 text-drTalkHover bg-drTalkGrayscale5';
11
11
 
12
12
  return (
13
13
  <div
14
14
  className={`
15
15
  ${isOperator ? operatorClassName : customerClassName} ${className}
16
- whitespace-pre-line rounded-[10px] border px-[12px]
17
- py-[16px] text-[14px] leading-[130%] tracking-[-4%]
16
+ dr_talk_body_medium2 whitespace-pre-line break-words rounded-[10px]
17
+ border px-[12px] py-[8px]
18
18
  `}
19
19
  >
20
20
  {children}
@@ -22,12 +22,13 @@ const RichText = ({ message }) => {
22
22
  content: (_a = message.richText) === null || _a === void 0 ? void 0 : _a.structuredData,
23
23
  editable: false
24
24
  });
25
- return (<div className="tiptap prose">
25
+ return (<div className="tiptap prose !dr_talk_body_medium2 ">
26
26
  <EditorContent editor={editor}/>
27
27
  <style>{`
28
28
  .tiptap a {
29
29
  color: #2563eb; /* Tailwind blue-600 */
30
30
  text-decoration: underline;
31
+ word-break:break-all;
31
32
  }
32
33
  `}</style>
33
34
  </div>);
@@ -29,12 +29,13 @@ const RichText = ({ message }: props) => {
29
29
  });
30
30
 
31
31
  return (
32
- <div className="tiptap prose">
32
+ <div className="tiptap prose !dr_talk_body_medium2 ">
33
33
  <EditorContent editor={editor} />
34
34
  <style>{`
35
35
  .tiptap a {
36
36
  color: #2563eb; /* Tailwind blue-600 */
37
37
  text-decoration: underline;
38
+ word-break:break-all;
38
39
  }
39
40
  `}</style>
40
41
  </div>
@@ -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,9 @@
1
+ import React from 'react';
2
+ const TimeWrapper = ({ time, children, timePosition = 'right', className = '' }) => {
3
+ return (<div className={`flex flex-row items-end gap-[4px] ${className}`}>
4
+ {timePosition === 'left' && <div className="text-xs font-normal text-[#C2C2C2]">{time}</div>}
5
+ {children}
6
+ {timePosition === 'right' && <div className="text-xs font-normal text-[#C2C2C2]">{time}</div>}
7
+ </div>);
8
+ };
9
+ export default TimeWrapper;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+
3
+ interface TimeWrapperProps {
4
+ time: string;
5
+ timePosition?: 'right' | 'left';
6
+ children: React.ReactNode;
7
+ className?: string;
8
+ }
9
+
10
+ const TimeWrapper: React.FC<TimeWrapperProps> = ({ time, children, timePosition = 'right', className = '' }) => {
11
+ return (
12
+ <div className={`flex flex-row items-end gap-[4px] ${className}`}>
13
+ {timePosition === 'left' && <div className="text-xs font-normal text-[#C2C2C2]">{time}</div>}
14
+ {children}
15
+ {timePosition === 'right' && <div className="text-xs font-normal text-[#C2C2C2]">{time}</div>}
16
+ </div>
17
+ );
18
+ };
19
+
20
+ export default TimeWrapper;
@@ -7,9 +7,9 @@ const WorkFlowClickData = ({ message }) => {
7
7
  return null;
8
8
  }
9
9
  return (<div className={`
10
- flex flex-row items-center justify-center gap-[6px] rounded-[10px]
11
- border-[1px] border-solid border-[#2E385B] bg-[#F7F7F7] px-[12px] py-[8px]
12
- text-[14px] leading-[130%] tracking-[-4%] text-[#2E385B]
10
+ dr_talk_body_medium2 flex h-[34px] flex-row items-center justify-center
11
+ gap-[6px] rounded-[10px] border-[1px] border-solid border-drTalkBtnActive2 bg-drTalkGrayscale5
12
+ px-[12px] text-drTalkBtnActive2
13
13
  `}>
14
14
  <div className={`h-[18px] w-[18px]`}>
15
15
  <Image className={`h-full w-full`} src={(iconBlock === null || iconBlock === void 0 ? void 0 : iconBlock.iconUrl) || ''} alt={'icon'} width={100} height={100}/>
@@ -14,9 +14,9 @@ const WorkFlowClickData = ({ message }: props) => {
14
14
  return (
15
15
  <div
16
16
  className={`
17
- flex flex-row items-center justify-center gap-[6px] rounded-[10px]
18
- border-[1px] border-solid border-[#2E385B] bg-[#F7F7F7] px-[12px] py-[8px]
19
- text-[14px] leading-[130%] tracking-[-4%] text-[#2E385B]
17
+ dr_talk_body_medium2 flex h-[34px] flex-row items-center justify-center
18
+ gap-[6px] rounded-[10px] border-[1px] border-solid border-drTalkBtnActive2 bg-drTalkGrayscale5
19
+ px-[12px] text-drTalkBtnActive2
20
20
  `}
21
21
  >
22
22
  <div className={`h-[18px] w-[18px]`}>
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import Image from 'next/image';
3
3
  const WorkFlowImg = ({ message }) => {
4
4
  const workFlowItem = message.workFlow;
5
- return (<div className={`h-auto overflow-hidden rounded-[10px]`}>
6
- <Image src={(workFlowItem === null || workFlowItem === void 0 ? void 0 : workFlowItem.imageUrl) || ''} alt={''} width={1000} height={300} className={`h-full w-full object-cover`} unoptimized={true}/>
5
+ return (<div className={`h-auto overflow-hidden rounded-[10px] border-[1px] border-drTalkGrayscale4`}>
6
+ <Image src={(workFlowItem === null || workFlowItem === void 0 ? void 0 : workFlowItem.imageUrl) || ''} alt={''} width={1000} height={300} className={`h-full w-full rounded-[10px] object-cover`} unoptimized={true}/>
7
7
  </div>);
8
8
  };
9
9
  export default WorkFlowImg;
@@ -7,13 +7,13 @@ interface props {
7
7
  const WorkFlowImg = ({ message }: props) => {
8
8
  const workFlowItem = message.workFlow;
9
9
  return (
10
- <div className={`h-auto overflow-hidden rounded-[10px]`}>
10
+ <div className={`h-auto overflow-hidden rounded-[10px] border-[1px] border-drTalkGrayscale4`}>
11
11
  <Image
12
12
  src={workFlowItem?.imageUrl || ''}
13
13
  alt={''}
14
14
  width={1000}
15
15
  height={300}
16
- className={`h-full w-full object-cover`}
16
+ className={`h-full w-full rounded-[10px] object-cover`}
17
17
  unoptimized={true}
18
18
  />
19
19
  </div>
@@ -13,6 +13,7 @@ type ChatMessageProps = {
13
13
  workFlowStack: string[];
14
14
  isHovered: boolean;
15
15
  scrollEnd: () => void;
16
+ inquiryStatus: string;
16
17
  };
17
18
  declare const ChatMessage: React.FC<ChatMessageProps>;
18
19
  export default ChatMessage;
@@ -21,7 +21,9 @@ import ChatWrapper from './ChatItem/ChatWrapper';
21
21
  import RichText from './ChatItem/RichText';
22
22
  import ChatFile from './ChatItem/ChatFile';
23
23
  import FieldWorkObject from './ChatObject/FieldWorkObject';
24
- const ChatMessage = ({ message, object, handelObjectBack, chatInquiryNumber, workFlowStack, isHovered, scrollEnd }) => {
24
+ import TimeWrapper from './ChatItem/TimeWrapper';
25
+ import { InquiryStatus } from './_enums/ask-status';
26
+ const ChatMessage = ({ message, object, handelObjectBack, chatInquiryNumber, workFlowStack, isHovered, scrollEnd, inquiryStatus }) => {
25
27
  // 고객 , 오퍼레이터 분리
26
28
  const isOperator = message.senderType !== MessageSenderType.CUSTOMER;
27
29
  const formatTime = (date) => {
@@ -49,52 +51,45 @@ const ChatMessage = ({ message, object, handelObjectBack, chatInquiryNumber, wor
49
51
  const isAuthForm = hasForm(message);
50
52
  const isRichForm = hasRichForm(message);
51
53
  const isFile = hasFileArray(message);
54
+ // 파일이 있는경우
52
55
  if (isFile) {
53
56
  return (<div className={`flex flex-col gap-[10px]`}>
54
- {isRichForm && (<div className={`flex flex-row items-end gap-[4px] `}>
57
+ {/* 텍스트 + 파일인경우 */}
58
+ {isRichForm && (<TimeWrapper time={time}>
55
59
  <ChatWrapper isOperator={isOperator}>
56
60
  <RichText message={message}/>
57
61
  </ChatWrapper>
58
- <div className={`text-[12px] font-[400] text-[#C2C2C2]`}>{time}</div>
59
- </div>)}
62
+ </TimeWrapper>)}
60
63
  <ChatFile message={message} isOperator={isOperator} isHovered={isHovered} time={time}/>
61
64
  </div>);
62
65
  }
63
- //
64
- // if (message.templateType === InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_1) {
65
- // } else if (message.templateType === InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_1) {
66
- // }
67
66
  if (isAuthForm) {
68
- return (<div className={`flex flex-row items-end gap-[4px]`}>
67
+ return (<TimeWrapper time={time}>
69
68
  <WorkFlowAuthForm message={message} isOperator={isOperator}/>
70
- <div className={`text-[12px] font-[400] text-[#C2C2C2]`}>{time}</div>
71
- </div>);
69
+ </TimeWrapper>);
72
70
  }
73
71
  if (isWorkFlowCustomerClickData) {
74
- return (<div className={`flex flex-row items-end gap-[4px]`}>
75
- <div className={`text-[12px] font-[400] text-[#C2C2C2]`}>{time}</div>
72
+ return (<TimeWrapper time={time} timePosition={'left'}>
76
73
  <WorkFlowClickData message={message}/>
77
- </div>);
74
+ </TimeWrapper>);
78
75
  }
79
76
  if (isWorkFlowImg) {
80
- return (<div className={`relative flex flex-row items-end gap-[4px]`}>
77
+ return (<TimeWrapper time={time}>
81
78
  <WorkFlowImg message={message}/>
82
- {/*<div className={` text-[12px] font-[400] text-[#C2C2C2]`}>{time}</div>*/}
83
- </div>);
79
+ </TimeWrapper>);
84
80
  }
85
81
  if (isRichForm) {
86
- return (<div className={`flex flex-row items-end gap-[4px]`}>
82
+ return (<TimeWrapper time={time} timePosition={isOperator ? 'right' : 'left'}>
87
83
  <ChatWrapper isOperator={isOperator} className={`w-[calc(100%-31.25px)]`}>
88
84
  <RichText message={message}/>
89
85
  </ChatWrapper>
90
- <div className={`text-[12px] font-[400] text-[#C2C2C2]`}>{time}</div>
91
- </div>);
92
- }
93
- if (isBlock) {
86
+ </TimeWrapper>);
94
87
  }
95
- return (<ChatWrapper isOperator={isOperator}>
96
- <p className="whitespace-pre-line text-sm leading-[130%] tracking-[-4%]">{message.plainText}</p>
97
- </ChatWrapper>);
88
+ return (<TimeWrapper time={time}>
89
+ <ChatWrapper isOperator={isOperator}>
90
+ <p className="dr_talk_body_medium2 whitespace-pre-line">{message.plainText}</p>
91
+ </ChatWrapper>
92
+ </TimeWrapper>);
98
93
  };
99
94
  const renderMessageContent = () => {
100
95
  var _a, _b;
@@ -104,12 +99,11 @@ const ChatMessage = ({ message, object, handelObjectBack, chatInquiryNumber, wor
104
99
  const objectIsBack = workFlowStack.length >= 3;
105
100
  const isObject = Boolean(object && object.exposeObjectListYn);
106
101
  return (<div className={`
107
- message-content max-w-[280px]
102
+ message-content mt-[10px]
108
103
  `}>
109
- {/*{hasBlocks(message) && message.blocks?.map((block, index) => renderTextBlock(block, index))}*/}
110
104
  {renderText(message, isObject)}
111
105
  {/* 오브젝트 박스 */}
112
- {object && object.exposeObjectListYn && (<div className={`mt-[10px] flex flex-col gap-[10px]`}>
106
+ {inquiryStatus === InquiryStatus.OPEN && object && object.exposeObjectListYn && (<div className={`mt-[10px] flex w-[calc(100%-35px)] flex-col gap-[10px] `}>
113
107
  <div className={`
114
108
  ${WorkFlowButtonUiCode.TILE_BUTTON === (object === null || object === void 0 ? void 0 : object.objectGroupUiCode)
115
109
  ? 'flex flex-row flex-wrap gap-x-[4px] gap-y-[8px]'
@@ -121,6 +115,7 @@ const ChatMessage = ({ message, object, handelObjectBack, chatInquiryNumber, wor
121
115
  return (<ObjectButton key={`object-expose-${index}`} object={item} messageNumber={(object === null || object === void 0 ? void 0 : object.messageNumber) || ''} workFlowNumber={((_a = message === null || message === void 0 ? void 0 : message.workFlow) === null || _a === void 0 ? void 0 : _a.workFlowNumber) || ''} isFirstObject={objectFirstQuestionCheck} objectGroupUiCode={(object === null || object === void 0 ? void 0 : object.objectGroupUiCode) || ''}/>);
122
116
  })
123
117
  : null}
118
+ {/* 더보기 들어간 타입 */}
124
119
  {WorkFlowButtonUiCode.TILE_BUTTON === (object === null || object === void 0 ? void 0 : object.objectGroupUiCode) && (<FieldWorkObject object={object} message={message} isFirstObject={objectFirstQuestionCheck} scrollEnd={scrollEnd}/>)}
125
120
  </div>
126
121
  {!objectFirstQuestionCheck && (<ObjectBack isBack={objectIsBack} handleBtn={() => __awaiter(void 0, void 0, void 0, function* () {
@@ -137,23 +132,23 @@ const ChatMessage = ({ message, object, handelObjectBack, chatInquiryNumber, wor
137
132
  </div>)}
138
133
  </div>);
139
134
  };
140
- return (<div className={`mb-4 flex ${isOperator ? 'justify-start' : 'justify-end'}`}>
135
+ return (<div className={`mb-[20px] flex ${isOperator ? 'justify-start' : 'justify-end'}`}>
141
136
  {/* 시스템 or 오퍼레이터 */}
142
137
  {isOperator ? (<div className="flex flex-col">
143
- <div className="mb-1 flex items-center">
144
- <div className="mr-1 h-8 w-8 flex-shrink-0 rounded-full">
145
- <div className="relative h-full w-full p-1">
138
+ <div className="flex items-center gap-[10px]">
139
+ <div className="flex-shrink-0 rounded-full">
140
+ <div className="relative h-full w-full">
146
141
  <DaeryunLogoIcon width={24} height={24}/>
147
142
  </div>
148
143
  </div>
149
- <span className="font-[700] leading-[100%] tracking-[-4%]">법무법인(유한)대륜</span>
144
+ <span className="dr_talk_subtitle_medium text-drTalkBlack">법무법인(유한)대륜</span>
150
145
  </div>
151
146
 
152
- <div className="flex items-end gap-2 pl-9">{renderMessageContent()}</div>
147
+ <div className="flex items-end pl-[34px]">{renderMessageContent()}</div>
153
148
  </div>) : (
154
149
  // 유저
155
- <div className="flex max-w-[80%] flex-col">
156
- <div className="flex items-end gap-2">{renderMessageContent()}</div>
150
+ <div className="flex flex-col">
151
+ <div className="flex items-end">{renderMessageContent()}</div>
157
152
  </div>)}
158
153
  </div>);
159
154
  };
@@ -28,6 +28,8 @@ import ChatFile from './ChatItem/ChatFile';
28
28
  import { getMessageFileDownloadUrl } from './_api';
29
29
  import FieldWorkObject from './ChatObject/FieldWorkObject';
30
30
  import { InquiryMessageTemplateType } from './_enums/template';
31
+ import TimeWrapper from './ChatItem/TimeWrapper';
32
+ import { InquiryStatus } from './_enums/ask-status';
31
33
 
32
34
  type ChatMessageProps = {
33
35
  message: Message;
@@ -41,6 +43,7 @@ type ChatMessageProps = {
41
43
  workFlowStack: string[];
42
44
  isHovered: boolean;
43
45
  scrollEnd: () => void;
46
+ inquiryStatus: string;
44
47
  };
45
48
 
46
49
  const ChatMessage: React.FC<ChatMessageProps> = ({
@@ -50,7 +53,8 @@ const ChatMessage: React.FC<ChatMessageProps> = ({
50
53
  chatInquiryNumber,
51
54
  workFlowStack,
52
55
  isHovered,
53
- scrollEnd
56
+ scrollEnd,
57
+ inquiryStatus
54
58
  }) => {
55
59
  // 고객 , 오퍼레이터 분리
56
60
  const isOperator = message.senderType !== MessageSenderType.CUSTOMER;
@@ -84,68 +88,60 @@ const ChatMessage: React.FC<ChatMessageProps> = ({
84
88
  const isRichForm = hasRichForm(message);
85
89
  const isFile = hasFileArray(message);
86
90
 
91
+ // 파일이 있는경우
87
92
  if (isFile) {
88
93
  return (
89
94
  <div className={`flex flex-col gap-[10px]`}>
95
+ {/* 텍스트 + 파일인경우 */}
90
96
  {isRichForm && (
91
- <div className={`flex flex-row items-end gap-[4px] `}>
97
+ <TimeWrapper time={time}>
92
98
  <ChatWrapper isOperator={isOperator}>
93
99
  <RichText message={message} />
94
100
  </ChatWrapper>
95
- <div className={`text-[12px] font-[400] text-[#C2C2C2]`}>{time}</div>
96
- </div>
101
+ </TimeWrapper>
97
102
  )}
98
103
  <ChatFile message={message} isOperator={isOperator} isHovered={isHovered} time={time} />
99
104
  </div>
100
105
  );
101
106
  }
102
- //
103
- // if (message.templateType === InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_1) {
104
- // } else if (message.templateType === InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_1) {
105
- // }
106
107
 
107
108
  if (isAuthForm) {
108
109
  return (
109
- <div className={`flex flex-row items-end gap-[4px]`}>
110
+ <TimeWrapper time={time}>
110
111
  <WorkFlowAuthForm message={message} isOperator={isOperator} />
111
- <div className={`text-[12px] font-[400] text-[#C2C2C2]`}>{time}</div>
112
- </div>
112
+ </TimeWrapper>
113
113
  );
114
114
  }
115
115
  if (isWorkFlowCustomerClickData) {
116
116
  return (
117
- <div className={`flex flex-row items-end gap-[4px]`}>
118
- <div className={`text-[12px] font-[400] text-[#C2C2C2]`}>{time}</div>
117
+ <TimeWrapper time={time} timePosition={'left'}>
119
118
  <WorkFlowClickData message={message} />
120
- </div>
119
+ </TimeWrapper>
121
120
  );
122
121
  }
123
122
  if (isWorkFlowImg) {
124
123
  return (
125
- <div className={`relative flex flex-row items-end gap-[4px]`}>
124
+ <TimeWrapper time={time}>
126
125
  <WorkFlowImg message={message} />
127
- {/*<div className={` text-[12px] font-[400] text-[#C2C2C2]`}>{time}</div>*/}
128
- </div>
126
+ </TimeWrapper>
129
127
  );
130
128
  }
131
129
  if (isRichForm) {
132
130
  return (
133
- <div className={`flex flex-row items-end gap-[4px]`}>
131
+ <TimeWrapper time={time} timePosition={isOperator ? 'right' : 'left'}>
134
132
  <ChatWrapper isOperator={isOperator} className={`w-[calc(100%-31.25px)]`}>
135
133
  <RichText message={message} />
136
134
  </ChatWrapper>
137
- <div className={`text-[12px] font-[400] text-[#C2C2C2]`}>{time}</div>
138
- </div>
135
+ </TimeWrapper>
139
136
  );
140
137
  }
141
138
 
142
- if (isBlock) {
143
- }
144
-
145
139
  return (
146
- <ChatWrapper isOperator={isOperator}>
147
- <p className="whitespace-pre-line text-sm leading-[130%] tracking-[-4%]">{message.plainText}</p>
148
- </ChatWrapper>
140
+ <TimeWrapper time={time}>
141
+ <ChatWrapper isOperator={isOperator}>
142
+ <p className="dr_talk_body_medium2 whitespace-pre-line">{message.plainText}</p>
143
+ </ChatWrapper>
144
+ </TimeWrapper>
149
145
  );
150
146
  };
151
147
 
@@ -163,14 +159,13 @@ const ChatMessage: React.FC<ChatMessageProps> = ({
163
159
  return (
164
160
  <div
165
161
  className={`
166
- message-content max-w-[280px]
162
+ message-content mt-[10px]
167
163
  `}
168
164
  >
169
- {/*{hasBlocks(message) && message.blocks?.map((block, index) => renderTextBlock(block, index))}*/}
170
165
  {renderText(message, isObject)}
171
166
  {/* 오브젝트 박스 */}
172
- {object && object.exposeObjectListYn && (
173
- <div className={`mt-[10px] flex flex-col gap-[10px]`}>
167
+ {inquiryStatus === InquiryStatus.OPEN && object && object.exposeObjectListYn && (
168
+ <div className={`mt-[10px] flex w-[calc(100%-35px)] flex-col gap-[10px] `}>
174
169
  <div
175
170
  className={`
176
171
  ${
@@ -196,6 +191,7 @@ const ChatMessage: React.FC<ChatMessageProps> = ({
196
191
  );
197
192
  })
198
193
  : null}
194
+ {/* 더보기 들어간 타입 */}
199
195
  {WorkFlowButtonUiCode.TILE_BUTTON === object?.objectGroupUiCode && (
200
196
  <FieldWorkObject
201
197
  object={object}
@@ -228,25 +224,25 @@ const ChatMessage: React.FC<ChatMessageProps> = ({
228
224
  };
229
225
 
230
226
  return (
231
- <div className={`mb-4 flex ${isOperator ? 'justify-start' : 'justify-end'}`}>
227
+ <div className={`mb-[20px] flex ${isOperator ? 'justify-start' : 'justify-end'}`}>
232
228
  {/* 시스템 or 오퍼레이터 */}
233
229
  {isOperator ? (
234
230
  <div className="flex flex-col">
235
- <div className="mb-1 flex items-center">
236
- <div className="mr-1 h-8 w-8 flex-shrink-0 rounded-full">
237
- <div className="relative h-full w-full p-1">
231
+ <div className="flex items-center gap-[10px]">
232
+ <div className="flex-shrink-0 rounded-full">
233
+ <div className="relative h-full w-full">
238
234
  <DaeryunLogoIcon width={24} height={24} />
239
235
  </div>
240
236
  </div>
241
- <span className="font-[700] leading-[100%] tracking-[-4%]">법무법인(유한)대륜</span>
237
+ <span className="dr_talk_subtitle_medium text-drTalkBlack">법무법인(유한)대륜</span>
242
238
  </div>
243
239
 
244
- <div className="flex items-end gap-2 pl-9">{renderMessageContent()}</div>
240
+ <div className="flex items-end pl-[34px]">{renderMessageContent()}</div>
245
241
  </div>
246
242
  ) : (
247
243
  // 유저
248
- <div className="flex max-w-[80%] flex-col">
249
- <div className="flex items-end gap-2">{renderMessageContent()}</div>
244
+ <div className="flex flex-col">
245
+ <div className="flex items-end">{renderMessageContent()}</div>
250
246
  </div>
251
247
  )}
252
248
  </div>
@@ -22,9 +22,9 @@ const FieldWorkObject = ({ object, message, isFirstObject, scrollEnd }) => {
22
22
 
23
23
  {hasMoreThanMax && (<button type="button" onClick={() => {
24
24
  setIsExpanded(prev => !prev);
25
- }} className={`flex h-[36px] w-full items-center justify-center gap-[4px] rounded-[250px] bg-[#F7F7F7] py-[9px]`}>
25
+ }} className={`flex h-[36px] w-full items-center justify-center gap-[4px] rounded-[20px] bg-drTalkGrayscale5 `}>
26
26
  {isExpanded ? <MinusIcon /> : <PlusIcon />}
27
- <span className={`text-[14px] font-[700] leading-[100%] tracking-[-4%] text-[#777777] `}>
27
+ <span className={`dr_talk_subtitle_medium2 text-drTalkGrayscale2 `}>
28
28
  {isExpanded ? '접기' : '더보기'}
29
29
  </span>
30
30
  </button>)}
@@ -50,10 +50,10 @@ const FieldWorkObject = ({
50
50
  onClick={() => {
51
51
  setIsExpanded(prev => !prev);
52
52
  }}
53
- className={`flex h-[36px] w-full items-center justify-center gap-[4px] rounded-[250px] bg-[#F7F7F7] py-[9px]`}
53
+ className={`flex h-[36px] w-full items-center justify-center gap-[4px] rounded-[20px] bg-drTalkGrayscale5 `}
54
54
  >
55
55
  {isExpanded ? <MinusIcon /> : <PlusIcon />}
56
- <span className={`text-[14px] font-[700] leading-[100%] tracking-[-4%] text-[#777777] `}>
56
+ <span className={`dr_talk_subtitle_medium2 text-drTalkGrayscale2 `}>
57
57
  {isExpanded ? '접기' : '더보기'}
58
58
  </span>
59
59
  </button>
@@ -8,7 +8,7 @@ const ObjectBack = ({ isBack, handleBtn }) => {
8
8
  }
9
9
  }} className={`flex flex-row items-center gap-[4px] `}>
10
10
  {isBack ? <BackIcon /> : <FirstGoICon />}
11
- <p className={` text-[14px] font-[400] leading-[110%] tracking-[-4%] text-[#1E1E1E] `}>
11
+ <p className={` dr_talk_body_medium2 text-[14px] text-drTalkGrayscale1 `}>
12
12
  {isBack ? '이전으로' : '처음으로'}
13
13
  </p>
14
14
  </button>);
@@ -18,7 +18,7 @@ const ObjectBack = ({ isBack, handleBtn }: props) => {
18
18
  className={`flex flex-row items-center gap-[4px] `}
19
19
  >
20
20
  {isBack ? <BackIcon /> : <FirstGoICon />}
21
- <p className={` text-[14px] font-[400] leading-[110%] tracking-[-4%] text-[#1E1E1E] `}>
21
+ <p className={` dr_talk_body_medium2 text-[14px] text-drTalkGrayscale1 `}>
22
22
  {isBack ? '이전으로' : '처음으로'}
23
23
  </p>
24
24
  </button>
@@ -13,7 +13,6 @@ import { ObjectNumber, WorkFlowButtonActionType, WorkFlowButtonUiCode } from '..
13
13
  import { useDaeryuntalk } from '../DaeryuntalkContext';
14
14
  import { useRouter } from 'next/router';
15
15
  import { useWorkFlow } from '../_hooks/talkprovider/useWorkFlow';
16
- import * as gtag from '../../../lib/gtag';
17
16
  // 길이 fit 형
18
17
  // 길이 full 형
19
18
  // 업무 그룹형
@@ -27,35 +26,19 @@ const ObjectButton = ({ object, messageNumber, workFlowNumber, isFirstObject = f
27
26
  };
28
27
  const fitClassName = `
29
28
  flex w-fit flex-row items-center gap-[6px] rounded-[4px] border-[1px]
30
- border-solid border-[#EDEDED] bg-[#F7F7F780] px-[10px] py-[12.5px]
31
- text-[14px] font-[400] leading-[110%] tracking-[-4%]
29
+ border-solid border-drTalkGrayscale4 bg-drTalkGrayscale5 bg-opacity-50 h-[40px] px-[10px]
30
+ dr_talk_body_medium2
32
31
  `;
33
32
  const fullClassName = `
34
33
  flex w-full flex-row items-center justify-center gap-[6px] rounded-[4px] border-[1px]
35
- border-solid border-[#EDEDED] bg-[#F7F7F780] px-[10px] py-[12.5px]
36
- text-[14px] font-[400] leading-[110%] tracking-[-4%]
34
+ border-solid border-drTalkGrayscale4 bg-drTalkGrayscale5 bg-opacity-50 h-[40px]
35
+ dr_talk_body_medium2
37
36
  `;
38
37
  const workTypeClassName = `
39
38
  flex w-fit flex-row items-center justify-center gap-[4px] rounded-[20px] border-[1px]
40
- border-solid border-[#EDEDED] bg-white px-[10px] py-[7px]
41
- text-[14px] font-[400] leading-[110%] tracking-[-4%]
39
+ border-solid border-drTalkGrayscale4 bg-white h-[32px] px-[10px]
40
+ dr_talk_body_medium2
42
41
  `;
43
- const mConsultClick = () => {
44
- gtag.event({
45
- action: 'mobile_fix_consult',
46
- category: 'fix_consult',
47
- label: '모바일온라인예약클릭',
48
- value: '1'
49
- });
50
- };
51
- const pcConsultClick = () => {
52
- gtag.event({
53
- action: 'pc_fix_consult',
54
- category: 'fix_consult',
55
- label: '피씨온라인예약클릭',
56
- value: '1'
57
- });
58
- };
59
42
  const handleButton = (object) => __awaiter(void 0, void 0, void 0, function* () {
60
43
  const actionType = (object === null || object === void 0 ? void 0 : object.actionCode) || '';
61
44
  // 내부링크
@@ -41,39 +41,22 @@ const ObjectButton = ({
41
41
  };
42
42
  const fitClassName = `
43
43
  flex w-fit flex-row items-center gap-[6px] rounded-[4px] border-[1px]
44
- border-solid border-[#EDEDED] bg-[#F7F7F780] px-[10px] py-[12.5px]
45
- text-[14px] font-[400] leading-[110%] tracking-[-4%]
44
+ border-solid border-drTalkGrayscale4 bg-drTalkGrayscale5 bg-opacity-50 h-[40px] px-[10px]
45
+ dr_talk_body_medium2
46
46
  `;
47
47
 
48
48
  const fullClassName = `
49
49
  flex w-full flex-row items-center justify-center gap-[6px] rounded-[4px] border-[1px]
50
- border-solid border-[#EDEDED] bg-[#F7F7F780] px-[10px] py-[12.5px]
51
- text-[14px] font-[400] leading-[110%] tracking-[-4%]
50
+ border-solid border-drTalkGrayscale4 bg-drTalkGrayscale5 bg-opacity-50 h-[40px]
51
+ dr_talk_body_medium2
52
52
  `;
53
53
 
54
54
  const workTypeClassName = `
55
55
  flex w-fit flex-row items-center justify-center gap-[4px] rounded-[20px] border-[1px]
56
- border-solid border-[#EDEDED] bg-white px-[10px] py-[7px]
57
- text-[14px] font-[400] leading-[110%] tracking-[-4%]
56
+ border-solid border-drTalkGrayscale4 bg-white h-[32px] px-[10px]
57
+ dr_talk_body_medium2
58
58
  `;
59
59
 
60
- const mConsultClick = () => {
61
- gtag.event({
62
- action: 'mobile_fix_consult',
63
- category: 'fix_consult',
64
- label: '모바일온라인예약클릭',
65
- value: '1'
66
- });
67
- };
68
- const pcConsultClick = () => {
69
- gtag.event({
70
- action: 'pc_fix_consult',
71
- category: 'fix_consult',
72
- label: '피씨온라인예약클릭',
73
- value: '1'
74
- });
75
- };
76
-
77
60
  const handleButton = async (object: MessageObjectExpose) => {
78
61
  const actionType = object?.actionCode || '';
79
62