@daeryun/dr_components 0.7.83 → 0.7.85
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/asset/images/daeryuntalk/minus.svg +4 -0
- package/dist/asset/images/daeryuntalk/plus.svg +4 -0
- package/dist/components/Daeryuntalk/ChatConversation.jsx +19 -11
- package/dist/components/Daeryuntalk/ChatConversation.tsx +43 -34
- package/dist/components/Daeryuntalk/ChatInput.jsx +2 -0
- package/dist/components/Daeryuntalk/ChatInput.tsx +2 -0
- package/dist/components/Daeryuntalk/ChatMessage.d.ts +1 -0
- package/dist/components/Daeryuntalk/ChatMessage.jsx +25 -8
- package/dist/components/Daeryuntalk/ChatMessage.tsx +45 -15
- package/dist/components/Daeryuntalk/ChatObject/FieldWorkObject.d.ts +9 -0
- package/dist/components/Daeryuntalk/ChatObject/FieldWorkObject.jsx +33 -0
- package/dist/components/Daeryuntalk/ChatObject/FieldWorkObject.tsx +65 -0
- package/dist/components/Daeryuntalk/ChatObject/ObjectButton.jsx +10 -3
- package/dist/components/Daeryuntalk/ChatObject/ObjectButton.tsx +12 -4
- package/dist/components/Daeryuntalk/DaeryuntalkContext.d.ts +2 -0
- package/dist/components/Daeryuntalk/DaeryuntalkContext.jsx +6 -3
- package/dist/components/Daeryuntalk/DaeryuntalkContext.tsx +8 -3
- package/dist/components/Daeryuntalk/Tiptap/Tiptap.jsx +15 -12
- package/dist/components/Daeryuntalk/Tiptap/Tiptap.tsx +15 -11
- package/dist/components/Daeryuntalk/_api/daeryuntalk/index.js +1 -1
- package/dist/components/Daeryuntalk/_api/daeryuntalk/index.ts +1 -1
- package/dist/components/Daeryuntalk/_api/daeryuntalk/type/response.d.ts +1 -0
- package/dist/components/Daeryuntalk/_api/daeryuntalk/type/response.ts +1 -0
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.js +3 -0
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.ts +6 -0
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useWorkFlow.d.ts +9 -0
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useWorkFlow.js +109 -0
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useWorkFlow.ts +122 -0
- package/dist/components/Daeryuntalk/_lib/index.js +5 -2
- package/dist/components/Daeryuntalk/_lib/index.ts +5 -2
- package/dist/components/Daeryuntalk/_types/message_object.d.ts +1 -0
- package/dist/components/Daeryuntalk/_types/message_object.ts +1 -0
- package/dist/components/Daeryuntalk/index.d.ts +4 -1
- package/dist/components/Daeryuntalk/index.jsx +2 -2
- package/dist/components/Daeryuntalk/index.tsx +6 -2
- package/dist/components/common/strength/index.js +15 -11
- package/dist/components/common/strength/index.ts +15 -11
- package/dist/components/page/Strength/StrengthList.jsx +17 -0
- package/dist/components/page/Strength/StrengthList.tsx +31 -0
- package/dist/styles/globals.css +39 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -41,11 +41,13 @@ const DaeryuntalkContext = createContext({
|
|
|
41
41
|
isSocketInitialized: false,
|
|
42
42
|
isSocketConnected: false,
|
|
43
43
|
error: null,
|
|
44
|
-
closeDaeryuntalk: () => { }
|
|
44
|
+
closeDaeryuntalk: () => { },
|
|
45
|
+
tel: ''
|
|
45
46
|
// 이미지 뷰어용
|
|
46
47
|
});
|
|
47
|
-
export const DaeryuntalkProvider = ({ children }) => {
|
|
48
|
+
export const DaeryuntalkProvider = ({ children, propsTel }) => {
|
|
48
49
|
const [inquiryStatus, setInquiryStatus] = useState('');
|
|
50
|
+
const [tel, setTel] = useState(propsTel);
|
|
49
51
|
// 채팅 진행중에 필요한 state들
|
|
50
52
|
const [messages, setMessages] = useState([]);
|
|
51
53
|
const [messageObject, setMessageObject] = useState(null);
|
|
@@ -110,7 +112,8 @@ export const DaeryuntalkProvider = ({ children }) => {
|
|
|
110
112
|
selectedImageFile,
|
|
111
113
|
imageViewerMessage,
|
|
112
114
|
openImageViewer,
|
|
113
|
-
closeImageViewer
|
|
115
|
+
closeImageViewer,
|
|
116
|
+
tel: tel
|
|
114
117
|
}}>
|
|
115
118
|
{children}
|
|
116
119
|
</DaeryuntalkContext.Provider>);
|
|
@@ -53,6 +53,7 @@ type DaeryuntalkContextType = {
|
|
|
53
53
|
imageViewerMessage?: Message | null;
|
|
54
54
|
openImageViewer?: (file: FileInfo, message: Message) => void;
|
|
55
55
|
closeImageViewer?: () => void;
|
|
56
|
+
tel: string;
|
|
56
57
|
};
|
|
57
58
|
|
|
58
59
|
// 기본값으로 컨텍스트 생성
|
|
@@ -85,7 +86,8 @@ const DaeryuntalkContext = createContext<DaeryuntalkContextType>({
|
|
|
85
86
|
isSocketInitialized: false,
|
|
86
87
|
isSocketConnected: false,
|
|
87
88
|
error: null,
|
|
88
|
-
closeDaeryuntalk: () => {}
|
|
89
|
+
closeDaeryuntalk: () => {},
|
|
90
|
+
tel: ''
|
|
89
91
|
|
|
90
92
|
// 이미지 뷰어용
|
|
91
93
|
});
|
|
@@ -93,10 +95,12 @@ const DaeryuntalkContext = createContext<DaeryuntalkContextType>({
|
|
|
93
95
|
// 프로바이더 컴포넌트 생성
|
|
94
96
|
type DaeryuntalkProviderProps = {
|
|
95
97
|
children: ReactNode;
|
|
98
|
+
propsTel: string;
|
|
96
99
|
};
|
|
97
100
|
|
|
98
|
-
export const DaeryuntalkProvider: React.FC<DaeryuntalkProviderProps> = ({ children }) => {
|
|
101
|
+
export const DaeryuntalkProvider: React.FC<DaeryuntalkProviderProps> = ({ children, propsTel }) => {
|
|
99
102
|
const [inquiryStatus, setInquiryStatus] = useState<string>('');
|
|
103
|
+
const [tel, setTel] = useState(propsTel);
|
|
100
104
|
|
|
101
105
|
// 채팅 진행중에 필요한 state들
|
|
102
106
|
const [messages, setMessages] = useState<Message[]>([]);
|
|
@@ -183,7 +187,8 @@ export const DaeryuntalkProvider: React.FC<DaeryuntalkProviderProps> = ({ childr
|
|
|
183
187
|
selectedImageFile,
|
|
184
188
|
imageViewerMessage,
|
|
185
189
|
openImageViewer,
|
|
186
|
-
closeImageViewer
|
|
190
|
+
closeImageViewer,
|
|
191
|
+
tel: tel
|
|
187
192
|
}}
|
|
188
193
|
>
|
|
189
194
|
{children}
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import { useEditor, EditorContent } from '@tiptap/react';
|
|
2
|
-
import StarterKit from '@tiptap/starter-kit';
|
|
3
2
|
import Placeholder from '@tiptap/extension-placeholder';
|
|
4
3
|
import { useImperativeHandle, forwardRef } from 'react';
|
|
4
|
+
import Document from '@tiptap/extension-document';
|
|
5
|
+
import Paragraph from '@tiptap/extension-paragraph';
|
|
6
|
+
import Text from '@tiptap/extension-text';
|
|
5
7
|
const Tiptap = forwardRef(({ onChange, placeholder = '메시지를 입력하세요...', onEnterKeyPress, onKeyDown }, ref) => {
|
|
6
8
|
const editor = useEditor({
|
|
7
|
-
extensions: [
|
|
8
|
-
StarterKit.configure({
|
|
9
|
-
heading: false,
|
|
10
|
-
blockquote: false,
|
|
11
|
-
codeBlock: false,
|
|
12
|
-
horizontalRule: false
|
|
13
|
-
}),
|
|
14
|
-
Placeholder.configure({ placeholder })
|
|
15
|
-
],
|
|
9
|
+
extensions: [Document, Paragraph, Text, Placeholder.configure({ placeholder })],
|
|
16
10
|
content: '',
|
|
17
11
|
enableInputRules: false,
|
|
18
12
|
enablePasteRules: false,
|
|
19
13
|
onUpdate: ({ editor }) => {
|
|
20
|
-
|
|
14
|
+
const text = editor.getText().trim();
|
|
15
|
+
const html = editor.getHTML();
|
|
16
|
+
const json = editor.getJSON();
|
|
17
|
+
if (!text) {
|
|
18
|
+
// 비어있는 경우엔 빈 문자열 반환
|
|
19
|
+
onChange === null || onChange === void 0 ? void 0 : onChange('', json);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(html, json);
|
|
23
|
+
}
|
|
21
24
|
},
|
|
22
25
|
editorProps: {
|
|
23
26
|
attributes: {
|
|
24
|
-
class: 'focus:outline-none min-h-[44px] max-h-[72px] overflow-y-auto resize-none px-[10px] py-[4px]'
|
|
27
|
+
class: 'focus:outline-none min-h-[44px] max-h-[72px] overflow-y-auto resize-none px-[10px] py-[4px] flex items-center'
|
|
25
28
|
},
|
|
26
29
|
handleKeyDown: (view, event) => {
|
|
27
30
|
if (event.key === 'Enter' && !event.shiftKey) {
|
|
@@ -3,6 +3,9 @@ import StarterKit from '@tiptap/starter-kit';
|
|
|
3
3
|
import Placeholder from '@tiptap/extension-placeholder';
|
|
4
4
|
import { useImperativeHandle, forwardRef } from 'react';
|
|
5
5
|
import { JSONContent } from '@tiptap/core'; // 추가 필요
|
|
6
|
+
import Document from '@tiptap/extension-document';
|
|
7
|
+
import Paragraph from '@tiptap/extension-paragraph';
|
|
8
|
+
import Text from '@tiptap/extension-text';
|
|
6
9
|
|
|
7
10
|
export interface TiptapEditorRef {
|
|
8
11
|
clearContent: () => void;
|
|
@@ -23,24 +26,25 @@ interface TiptapProps {
|
|
|
23
26
|
const Tiptap = forwardRef<TiptapEditorRef, TiptapProps>(
|
|
24
27
|
({ onChange, placeholder = '메시지를 입력하세요...', onEnterKeyPress, onKeyDown }, ref) => {
|
|
25
28
|
const editor = useEditor({
|
|
26
|
-
extensions: [
|
|
27
|
-
StarterKit.configure({
|
|
28
|
-
heading: false,
|
|
29
|
-
blockquote: false,
|
|
30
|
-
codeBlock: false,
|
|
31
|
-
horizontalRule: false
|
|
32
|
-
}),
|
|
33
|
-
Placeholder.configure({ placeholder })
|
|
34
|
-
],
|
|
29
|
+
extensions: [Document, Paragraph, Text, Placeholder.configure({ placeholder })],
|
|
35
30
|
content: '',
|
|
36
31
|
enableInputRules: false,
|
|
37
32
|
enablePasteRules: false,
|
|
38
33
|
onUpdate: ({ editor }) => {
|
|
39
|
-
|
|
34
|
+
const text = editor.getText().trim();
|
|
35
|
+
const html = editor.getHTML();
|
|
36
|
+
const json = editor.getJSON();
|
|
37
|
+
|
|
38
|
+
if (!text) {
|
|
39
|
+
// 비어있는 경우엔 빈 문자열 반환
|
|
40
|
+
onChange?.('', json);
|
|
41
|
+
} else {
|
|
42
|
+
onChange?.(html, json);
|
|
43
|
+
}
|
|
40
44
|
},
|
|
41
45
|
editorProps: {
|
|
42
46
|
attributes: {
|
|
43
|
-
class: 'focus:outline-none min-h-[44px] max-h-[72px] overflow-y-auto resize-none px-[10px] py-[4px]'
|
|
47
|
+
class: 'focus:outline-none min-h-[44px] max-h-[72px] overflow-y-auto resize-none px-[10px] py-[4px] flex items-center'
|
|
44
48
|
},
|
|
45
49
|
handleKeyDown: (view, event) => {
|
|
46
50
|
if (event.key === 'Enter' && !event.shiftKey) {
|
|
@@ -340,7 +340,7 @@ export function getChatInquiryMessageList(chatInquiryNumber, standardDateTime, s
|
|
|
340
340
|
const body = {
|
|
341
341
|
d: Object.assign(Object.assign({ chat_inquiry_number: chatInquiryNumber }, (standardDateTime && { standard_date_time: standardDateTime })), {
|
|
342
342
|
// standard_date_time: standard_date_time ?? new Date().toISOString(),
|
|
343
|
-
size: size !== null && size !== void 0 ? size :
|
|
343
|
+
size: size !== null && size !== void 0 ? size : 100 })
|
|
344
344
|
};
|
|
345
345
|
console.log('[채팅 메세지 리스트] 문의 번호:', chatInquiryNumber, version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
|
|
346
346
|
try {
|
|
@@ -429,7 +429,7 @@ export async function getChatInquiryMessageList(
|
|
|
429
429
|
chat_inquiry_number: chatInquiryNumber,
|
|
430
430
|
...(standardDateTime && { standard_date_time: standardDateTime }),
|
|
431
431
|
// standard_date_time: standard_date_time ?? new Date().toISOString(),
|
|
432
|
-
size: size ??
|
|
432
|
+
size: size ?? 100
|
|
433
433
|
}
|
|
434
434
|
};
|
|
435
435
|
|
|
@@ -145,6 +145,9 @@ export const useSocketEventHandler = ({ setIsConnected, setIsLoading, setMessage
|
|
|
145
145
|
}
|
|
146
146
|
// 메세지 회수됨 -> 이거는 관리자에서는 필요없는듯?
|
|
147
147
|
if (data.type === MessageSocketType.MESSAGE_COLLECTED) {
|
|
148
|
+
// 여기서는
|
|
149
|
+
const payload = data.payload;
|
|
150
|
+
setMessages(prev => prev.filter(fil => fil.messageNumber !== payload.message_number));
|
|
148
151
|
}
|
|
149
152
|
// 안읽음 count
|
|
150
153
|
if (data.type === MessageSocketType.INQUIRY_PREVIEW_UPDATED) {
|
|
@@ -175,6 +175,12 @@ export const useSocketEventHandler = ({
|
|
|
175
175
|
}
|
|
176
176
|
// 메세지 회수됨 -> 이거는 관리자에서는 필요없는듯?
|
|
177
177
|
if (data.type === MessageSocketType.MESSAGE_COLLECTED) {
|
|
178
|
+
// 여기서는
|
|
179
|
+
const payload: {
|
|
180
|
+
chat_inquiry_number: string;
|
|
181
|
+
message_number: string;
|
|
182
|
+
} = data.payload;
|
|
183
|
+
setMessages(prev => prev.filter(fil => fil.messageNumber !== payload.message_number));
|
|
178
184
|
}
|
|
179
185
|
// 안읽음 count
|
|
180
186
|
if (data.type === MessageSocketType.INQUIRY_PREVIEW_UPDATED) {
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { insert, savePowerLinkConversion } from '../../../../lib';
|
|
2
|
+
import * as gtag from '../../../../lib/gtag';
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
|
+
export const useWorkFlow = (props) => {
|
|
5
|
+
const mobile = require('is-mobile');
|
|
6
|
+
const [isMobile, setIsMobile] = useState(false);
|
|
7
|
+
const onClickKakao = () => {
|
|
8
|
+
insert('kakao', isMobile);
|
|
9
|
+
savePowerLinkConversion('kakao', isMobile);
|
|
10
|
+
if (isMobile) {
|
|
11
|
+
mKakaoClick();
|
|
12
|
+
if (props.aceUrl) {
|
|
13
|
+
ace_mKakaoClick();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
pcKakaoClick();
|
|
18
|
+
if (props.aceUrl) {
|
|
19
|
+
ace_pcKakaoClick();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const onClickTel = () => {
|
|
24
|
+
insert('call', isMobile);
|
|
25
|
+
savePowerLinkConversion('call', isMobile);
|
|
26
|
+
if (isMobile) {
|
|
27
|
+
mTelClick();
|
|
28
|
+
if (props.aceUrl) {
|
|
29
|
+
ace_mTelClick();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
pcTelClick();
|
|
34
|
+
if (props.aceUrl) {
|
|
35
|
+
ace_pcTelClick();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
// GA 클릭이벤트
|
|
40
|
+
const mTelClick = () => {
|
|
41
|
+
gtag.event({
|
|
42
|
+
action: 'mobile_tel',
|
|
43
|
+
category: 'tel',
|
|
44
|
+
label: '모바일전화버튼',
|
|
45
|
+
value: '1'
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
const pcTelClick = () => {
|
|
49
|
+
gtag.event({
|
|
50
|
+
action: 'pc_tel',
|
|
51
|
+
category: 'tel',
|
|
52
|
+
label: '피씨전화버튼',
|
|
53
|
+
value: '1'
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
const mKakaoClick = () => {
|
|
57
|
+
gtag.event({
|
|
58
|
+
action: 'mobile_kakao',
|
|
59
|
+
category: 'kakao',
|
|
60
|
+
label: '모바일카카오버튼',
|
|
61
|
+
value: '1'
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
const pcKakaoClick = () => {
|
|
65
|
+
gtag.event({
|
|
66
|
+
action: 'pc_kakao',
|
|
67
|
+
category: 'kakao',
|
|
68
|
+
label: '피씨카카오버튼',
|
|
69
|
+
value: '1'
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
// 에이스카운터 전환태그
|
|
73
|
+
const ace_mTelClick = () => {
|
|
74
|
+
try {
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
AM_PL('/m_tel');
|
|
77
|
+
}
|
|
78
|
+
catch (e) { }
|
|
79
|
+
};
|
|
80
|
+
const ace_pcTelClick = () => {
|
|
81
|
+
try {
|
|
82
|
+
// @ts-ignore
|
|
83
|
+
_PL(`${props.aceUrl}/tel`);
|
|
84
|
+
}
|
|
85
|
+
catch (e) { }
|
|
86
|
+
};
|
|
87
|
+
const ace_mKakaoClick = () => {
|
|
88
|
+
try {
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
AM_PL('/m_kakao');
|
|
91
|
+
}
|
|
92
|
+
catch (e) { }
|
|
93
|
+
};
|
|
94
|
+
const ace_pcKakaoClick = () => {
|
|
95
|
+
try {
|
|
96
|
+
// @ts-ignore
|
|
97
|
+
_PL(`${props.aceUrl}/kakao`);
|
|
98
|
+
}
|
|
99
|
+
catch (e) { }
|
|
100
|
+
};
|
|
101
|
+
useEffect(() => {
|
|
102
|
+
const is_mobile = mobile();
|
|
103
|
+
setIsMobile(is_mobile);
|
|
104
|
+
}, []);
|
|
105
|
+
return {
|
|
106
|
+
onClickKakao: onClickKakao,
|
|
107
|
+
onClickTel: onClickTel
|
|
108
|
+
};
|
|
109
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { insert, savePowerLinkConversion } from '../../../../lib';
|
|
2
|
+
import * as gtag from '../../../../lib/gtag';
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
|
+
import mobile from 'is-mobile';
|
|
5
|
+
|
|
6
|
+
export const useWorkFlow = (props: {
|
|
7
|
+
tel: string;
|
|
8
|
+
aceUrl?: string;
|
|
9
|
+
wideBottom?: boolean;
|
|
10
|
+
centerConsultUrl?: string;
|
|
11
|
+
}) => {
|
|
12
|
+
const mobile = require('is-mobile');
|
|
13
|
+
|
|
14
|
+
const [isMobile, setIsMobile] = useState<boolean>(false);
|
|
15
|
+
const onClickKakao = () => {
|
|
16
|
+
insert('kakao', isMobile);
|
|
17
|
+
savePowerLinkConversion('kakao', isMobile);
|
|
18
|
+
|
|
19
|
+
if (isMobile) {
|
|
20
|
+
mKakaoClick();
|
|
21
|
+
if (props.aceUrl) {
|
|
22
|
+
ace_mKakaoClick();
|
|
23
|
+
}
|
|
24
|
+
} else {
|
|
25
|
+
pcKakaoClick();
|
|
26
|
+
if (props.aceUrl) {
|
|
27
|
+
ace_pcKakaoClick();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const onClickTel = () => {
|
|
32
|
+
insert('call', isMobile);
|
|
33
|
+
savePowerLinkConversion('call', isMobile);
|
|
34
|
+
if (isMobile) {
|
|
35
|
+
mTelClick();
|
|
36
|
+
if (props.aceUrl) {
|
|
37
|
+
ace_mTelClick();
|
|
38
|
+
}
|
|
39
|
+
} else {
|
|
40
|
+
pcTelClick();
|
|
41
|
+
if (props.aceUrl) {
|
|
42
|
+
ace_pcTelClick();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// GA 클릭이벤트
|
|
48
|
+
const mTelClick = () => {
|
|
49
|
+
gtag.event({
|
|
50
|
+
action: 'mobile_tel',
|
|
51
|
+
category: 'tel',
|
|
52
|
+
label: '모바일전화버튼',
|
|
53
|
+
value: '1'
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const pcTelClick = () => {
|
|
58
|
+
gtag.event({
|
|
59
|
+
action: 'pc_tel',
|
|
60
|
+
category: 'tel',
|
|
61
|
+
label: '피씨전화버튼',
|
|
62
|
+
value: '1'
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const mKakaoClick = () => {
|
|
67
|
+
gtag.event({
|
|
68
|
+
action: 'mobile_kakao',
|
|
69
|
+
category: 'kakao',
|
|
70
|
+
label: '모바일카카오버튼',
|
|
71
|
+
value: '1'
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const pcKakaoClick = () => {
|
|
76
|
+
gtag.event({
|
|
77
|
+
action: 'pc_kakao',
|
|
78
|
+
category: 'kakao',
|
|
79
|
+
label: '피씨카카오버튼',
|
|
80
|
+
value: '1'
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// 에이스카운터 전환태그
|
|
85
|
+
const ace_mTelClick = () => {
|
|
86
|
+
try {
|
|
87
|
+
// @ts-ignore
|
|
88
|
+
AM_PL('/m_tel');
|
|
89
|
+
} catch (e) {}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const ace_pcTelClick = () => {
|
|
93
|
+
try {
|
|
94
|
+
// @ts-ignore
|
|
95
|
+
_PL(`${props.aceUrl}/tel`);
|
|
96
|
+
} catch (e) {}
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const ace_mKakaoClick = () => {
|
|
100
|
+
try {
|
|
101
|
+
// @ts-ignore
|
|
102
|
+
AM_PL('/m_kakao');
|
|
103
|
+
} catch (e) {}
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
const ace_pcKakaoClick = () => {
|
|
107
|
+
try {
|
|
108
|
+
// @ts-ignore
|
|
109
|
+
_PL(`${props.aceUrl}/kakao`);
|
|
110
|
+
} catch (e) {}
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
useEffect(() => {
|
|
114
|
+
const is_mobile = mobile();
|
|
115
|
+
setIsMobile(is_mobile);
|
|
116
|
+
}, []);
|
|
117
|
+
|
|
118
|
+
return {
|
|
119
|
+
onClickKakao: onClickKakao,
|
|
120
|
+
onClickTel: onClickTel
|
|
121
|
+
};
|
|
122
|
+
};
|
|
@@ -54,6 +54,7 @@ export const convertApiMessageToUiMessage = (apiMessage) => {
|
|
|
54
54
|
// API불러왔을 때용도
|
|
55
55
|
export const convertApiMessageObjectToUiMessageObject = (apiObject) => {
|
|
56
56
|
var _a, _b;
|
|
57
|
+
console.log('apiObject', apiObject);
|
|
57
58
|
const result = {
|
|
58
59
|
exposeObjectListYn: apiObject.object_expose_info.expose_object_list_yn,
|
|
59
60
|
messageNumber: apiObject.object_expose_info.message_number,
|
|
@@ -65,7 +66,8 @@ export const convertApiMessageObjectToUiMessageObject = (apiObject) => {
|
|
|
65
66
|
iconImageUrl: item.icon_image_url,
|
|
66
67
|
sequence: item.sequence,
|
|
67
68
|
actionCode: item.action_code,
|
|
68
|
-
objectUiCode: item.object_ui_code
|
|
69
|
+
objectUiCode: item.object_ui_code,
|
|
70
|
+
linkUrl: (item === null || item === void 0 ? void 0 : item.link_url) || ''
|
|
69
71
|
};
|
|
70
72
|
}),
|
|
71
73
|
// work_flow_progress_stack 이걸로 통일 예정
|
|
@@ -90,7 +92,8 @@ export const convertSocketObjectToUiMessage = (obj) => {
|
|
|
90
92
|
iconImageUrl: item.icon_image_url,
|
|
91
93
|
sequence: item.sequence,
|
|
92
94
|
actionCode: item.action_code,
|
|
93
|
-
objectUiCode: item.object_ui_code
|
|
95
|
+
objectUiCode: item.object_ui_code,
|
|
96
|
+
linkUrl: (item === null || item === void 0 ? void 0 : item.link_url) || ''
|
|
94
97
|
};
|
|
95
98
|
}),
|
|
96
99
|
// work_flow_progress_stack 이걸로 통일 예정
|
|
@@ -89,6 +89,7 @@ export const convertApiMessageToUiMessage = (apiMessage: ApiChatMessage): Messag
|
|
|
89
89
|
|
|
90
90
|
// API불러왔을 때용도
|
|
91
91
|
export const convertApiMessageObjectToUiMessageObject = (apiObject: ChatInquiryDetailDataResponse): MessageObject => {
|
|
92
|
+
console.log('apiObject', apiObject);
|
|
92
93
|
const result: MessageObject = {
|
|
93
94
|
exposeObjectListYn: apiObject.object_expose_info.expose_object_list_yn,
|
|
94
95
|
messageNumber: apiObject.object_expose_info.message_number,
|
|
@@ -100,7 +101,8 @@ export const convertApiMessageObjectToUiMessageObject = (apiObject: ChatInquiryD
|
|
|
100
101
|
iconImageUrl: item.icon_image_url,
|
|
101
102
|
sequence: item.sequence,
|
|
102
103
|
actionCode: item.action_code,
|
|
103
|
-
objectUiCode: item.object_ui_code
|
|
104
|
+
objectUiCode: item.object_ui_code,
|
|
105
|
+
linkUrl: item?.link_url || ''
|
|
104
106
|
};
|
|
105
107
|
}),
|
|
106
108
|
// work_flow_progress_stack 이걸로 통일 예정
|
|
@@ -126,7 +128,8 @@ export const convertSocketObjectToUiMessage = (obj: IInquiryWorkFlowUpdate): Mes
|
|
|
126
128
|
iconImageUrl: item.icon_image_url,
|
|
127
129
|
sequence: item.sequence,
|
|
128
130
|
actionCode: item.action_code,
|
|
129
|
-
objectUiCode: item.object_ui_code
|
|
131
|
+
objectUiCode: item.object_ui_code,
|
|
132
|
+
linkUrl: item?.link_url || ''
|
|
130
133
|
};
|
|
131
134
|
}),
|
|
132
135
|
// work_flow_progress_stack 이걸로 통일 예정
|
|
@@ -3,12 +3,12 @@ import React, { useState } from 'react';
|
|
|
3
3
|
import ChatButton from './ChatButton';
|
|
4
4
|
import ChatWidget from './ChatWidget';
|
|
5
5
|
import { DaeryuntalkProvider } from './DaeryuntalkContext';
|
|
6
|
-
const Daeryuntalk = () => {
|
|
6
|
+
const Daeryuntalk = ({ tel }) => {
|
|
7
7
|
const [isOpen, setIsOpen] = useState(false);
|
|
8
8
|
const toggleChat = () => {
|
|
9
9
|
setIsOpen(prev => !prev);
|
|
10
10
|
};
|
|
11
|
-
return (<DaeryuntalkProvider>
|
|
11
|
+
return (<DaeryuntalkProvider propsTel={tel}>
|
|
12
12
|
<ChatButton isOpen={isOpen} onClick={toggleChat}/>
|
|
13
13
|
<ChatWidget isOpen={isOpen}/>
|
|
14
14
|
</DaeryuntalkProvider>);
|
|
@@ -6,7 +6,11 @@ import ChatWidget from './ChatWidget';
|
|
|
6
6
|
import { DaeryuntalkProvider } from './DaeryuntalkContext';
|
|
7
7
|
import ImageViewer from './Viewer/ImageViewer';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
type DaeryuntalkProps = {
|
|
10
|
+
tel: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const Daeryuntalk: React.FC<DaeryuntalkProps> = ({ tel }) => {
|
|
10
14
|
const [isOpen, setIsOpen] = useState(false);
|
|
11
15
|
|
|
12
16
|
const toggleChat = () => {
|
|
@@ -14,7 +18,7 @@ const Daeryuntalk: React.FC = () => {
|
|
|
14
18
|
};
|
|
15
19
|
|
|
16
20
|
return (
|
|
17
|
-
<DaeryuntalkProvider>
|
|
21
|
+
<DaeryuntalkProvider propsTel={tel}>
|
|
18
22
|
<ChatButton isOpen={isOpen} onClick={toggleChat} />
|
|
19
23
|
<ChatWidget isOpen={isOpen} />
|
|
20
24
|
</DaeryuntalkProvider>
|
|
@@ -4,18 +4,22 @@ export const strengthList = [
|
|
|
4
4
|
title: '상담과 수사, 재판 과정에서\n베테랑 변호사가 밀착 변호합니다',
|
|
5
5
|
list: [
|
|
6
6
|
{
|
|
7
|
-
liTitle: '
|
|
7
|
+
liTitle: '전문 변호사가 직접 상담하고, 최적의 전담팀 매칭',
|
|
8
8
|
li: [
|
|
9
|
-
'문의
|
|
10
|
-
'
|
|
9
|
+
'문의 즉시 해당 분야 전문변호사가 초기 법률상담 직접 진행해 사건 핵심을 정확히 진단',
|
|
10
|
+
'전문 변호사의 초기 진단 후, 분야 특화 변호사와 2차 심화 상담 진행',
|
|
11
|
+
'사건의 복잡성과 위험도, 규모에 따라 3~20인 이상 수행팀 구성',
|
|
12
|
+
'일반 단독 수행에 비해 조사, 전략 수립, 대응 면에서 3배 이상 빠르고 정확한 협업 구조'
|
|
11
13
|
]
|
|
12
14
|
},
|
|
13
15
|
{
|
|
14
|
-
liTitle: '
|
|
16
|
+
liTitle: '3~20인 이상 수행팀 구성, 소속 변호사 직접 수행 원칙',
|
|
15
17
|
li: [
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
18
|
+
'다음 조건을 갖춘 전문 변호사가 사건의 담당이 된 경우, 상담부터 재판 출석까지 전 과정을 직접 수행',
|
|
19
|
+
'>판사·검사·경찰 등 사법기관 경력 변호사',
|
|
20
|
+
'>평균 10년 이상의 해당 분야 전문 변호사',
|
|
21
|
+
'>법무부, 감사원, 공정위 등 관련 공공기관 고위 간부 경력 변호사',
|
|
22
|
+
'*(원칙적 배당이나 사건 난이도, 수임료에 따라서 이 외의 변호사가 배당될 수 있음.)'
|
|
19
23
|
]
|
|
20
24
|
}
|
|
21
25
|
]
|
|
@@ -43,16 +47,16 @@ export const strengthList = [
|
|
|
43
47
|
liTitle: '*pro_count*명 이상의 다양한 분야의 전문가들',
|
|
44
48
|
li: [
|
|
45
49
|
'법원, 검찰, 경찰 경력 보유한 베테랑 전문변호사의 노하우 제공',
|
|
46
|
-
'기업, 형사, 민사, 가사 등
|
|
50
|
+
'기업, 형사, 민사, 가사 등 해당 분야 최적의 전담팀 구성',
|
|
47
51
|
'관할 지역 포함 전국에서 사건별 가장 최적화된 변호사들로 팀 구성'
|
|
48
52
|
]
|
|
49
53
|
},
|
|
50
54
|
{
|
|
51
|
-
liTitle: '사건
|
|
55
|
+
liTitle: '사건 분석회의에서 다수의 시각을 조율하여 최적의 전략 도출',
|
|
52
56
|
li: [
|
|
53
|
-
'
|
|
57
|
+
'사건 담당 변호사와 분야별 전문가단이 함께 전략을 논의하고, 끝까지 책임지는 통합 수행 구조',
|
|
54
58
|
'상담, 서면 작성, 공판 변론 등 사건 단계마다 모든 담당 변호사가 논의 진행',
|
|
55
|
-
'전
|
|
59
|
+
'전 지역 분야별 전문가들이 실시간 협업 시스템을 통해 사건 해결에 참여',
|
|
56
60
|
'타 로펌의 소송 진행 과정도 재진단하여 시정 가능한 방안을 제안'
|
|
57
61
|
]
|
|
58
62
|
}
|