@daeryun/dr_components 0.7.79 → 0.7.80

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 (136) hide show
  1. package/dist/asset/images/daeryuntalk/download.svg +5 -0
  2. package/dist/asset/images/daeryuntalk/firstGo.svg +5 -0
  3. package/dist/asset/images/daeryuntalk/objectBack.svg +4 -0
  4. package/dist/asset/images/daeryuntalk/viewer/close.svg +4 -0
  5. package/dist/asset/images/daeryuntalk/viewer/gray-download.svg +7 -0
  6. package/dist/asset/images/daeryuntalk/viewer/move-button.svg +4 -0
  7. package/dist/asset/images/daeryuntalk/viewer/rotate.svg +17 -0
  8. package/dist/asset/images/daeryuntalk/viewer/zoom-in.svg +5 -0
  9. package/dist/asset/images/daeryuntalk/viewer/zoom-out.svg +6 -0
  10. package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
  11. package/dist/components/Daeryuntalk/ChatButton.jsx +1 -0
  12. package/dist/components/Daeryuntalk/ChatButton.tsx +1 -0
  13. package/dist/components/Daeryuntalk/ChatConversation.d.ts +1 -0
  14. package/dist/components/Daeryuntalk/ChatConversation.jsx +19 -12
  15. package/dist/components/Daeryuntalk/ChatConversation.tsx +48 -11
  16. package/dist/components/Daeryuntalk/ChatHomeView.jsx +27 -6
  17. package/dist/components/Daeryuntalk/ChatHomeView.tsx +39 -8
  18. package/dist/components/Daeryuntalk/ChatInput.jsx +23 -3
  19. package/dist/components/Daeryuntalk/ChatInput.tsx +26 -10
  20. package/dist/components/Daeryuntalk/ChatItem/ChatFile.d.ts +10 -0
  21. package/dist/components/Daeryuntalk/ChatItem/ChatFile.jsx +186 -0
  22. package/dist/components/Daeryuntalk/ChatItem/ChatFile.tsx +252 -0
  23. package/dist/components/Daeryuntalk/ChatItem/ChatPrivacyAuth.d.ts +8 -0
  24. package/dist/components/Daeryuntalk/ChatItem/ChatPrivacyAuth.jsx +87 -0
  25. package/dist/components/Daeryuntalk/ChatItem/ChatPrivacyAuth.tsx +115 -0
  26. package/dist/components/Daeryuntalk/ChatItem/ChatWrapper.d.ts +8 -0
  27. package/dist/components/Daeryuntalk/ChatItem/ChatWrapper.jsx +13 -0
  28. package/dist/components/Daeryuntalk/ChatItem/ChatWrapper.tsx +25 -0
  29. package/dist/components/Daeryuntalk/ChatItem/RichText.d.ts +7 -0
  30. package/dist/components/Daeryuntalk/ChatItem/RichText.jsx +25 -0
  31. package/dist/components/Daeryuntalk/ChatItem/RichText.tsx +32 -0
  32. package/dist/components/Daeryuntalk/ChatItem/WorkFlowAuthForm.d.ts +8 -0
  33. package/dist/components/Daeryuntalk/ChatItem/WorkFlowAuthForm.jsx +19 -0
  34. package/dist/components/Daeryuntalk/ChatItem/WorkFlowAuthForm.tsx +31 -0
  35. package/dist/components/Daeryuntalk/ChatItem/WorkFlowClickData.d.ts +7 -0
  36. package/dist/components/Daeryuntalk/ChatItem/WorkFlowClickData.jsx +20 -0
  37. package/dist/components/Daeryuntalk/ChatItem/WorkFlowClickData.tsx +36 -0
  38. package/dist/components/Daeryuntalk/ChatItem/WorkFlowImg.d.ts +7 -0
  39. package/dist/components/Daeryuntalk/ChatItem/WorkFlowImg.jsx +9 -0
  40. package/dist/components/Daeryuntalk/ChatItem/WorkFlowImg.tsx +16 -0
  41. package/dist/components/Daeryuntalk/ChatMessage.d.ts +11 -1
  42. package/dist/components/Daeryuntalk/ChatMessage.jsx +116 -14
  43. package/dist/components/Daeryuntalk/ChatMessage.tsx +175 -20
  44. package/dist/components/Daeryuntalk/ChatObject/ObjectBack.d.ts +7 -0
  45. package/dist/components/Daeryuntalk/ChatObject/ObjectBack.jsx +16 -0
  46. package/dist/components/Daeryuntalk/ChatObject/ObjectBack.tsx +28 -0
  47. package/dist/components/Daeryuntalk/ChatObject/ObjectButton.d.ts +10 -0
  48. package/dist/components/Daeryuntalk/ChatObject/ObjectButton.jsx +118 -0
  49. package/dist/components/Daeryuntalk/ChatObject/ObjectButton.tsx +162 -0
  50. package/dist/components/Daeryuntalk/ChatWidget.jsx +7 -3
  51. package/dist/components/Daeryuntalk/ChatWidget.tsx +9 -5
  52. package/dist/components/Daeryuntalk/DaeryuntalkContext.d.ts +37 -5
  53. package/dist/components/Daeryuntalk/DaeryuntalkContext.jsx +71 -157
  54. package/dist/components/Daeryuntalk/DaeryuntalkContext.tsx +128 -189
  55. package/dist/components/Daeryuntalk/Tiptap/Tiptap.d.ts +17 -0
  56. package/dist/components/Daeryuntalk/Tiptap/Tiptap.jsx +57 -0
  57. package/dist/components/Daeryuntalk/Tiptap/Tiptap.tsx +82 -0
  58. package/dist/components/Daeryuntalk/Viewer/ImageViewer.d.ts +3 -0
  59. package/dist/components/Daeryuntalk/Viewer/ImageViewer.jsx +172 -0
  60. package/dist/components/Daeryuntalk/Viewer/ImageViewer.tsx +236 -0
  61. package/dist/components/Daeryuntalk/_api/daeryuntalk/index.d.ts +133 -0
  62. package/dist/{lib/api → components/Daeryuntalk/_api}/daeryuntalk/index.js +251 -46
  63. package/dist/{lib/api → components/Daeryuntalk/_api}/daeryuntalk/index.ts +353 -129
  64. package/dist/components/Daeryuntalk/_api/daeryuntalk/type/response.d.ts +115 -0
  65. package/dist/components/Daeryuntalk/_api/daeryuntalk/type/response.js +1 -0
  66. package/dist/components/Daeryuntalk/_api/daeryuntalk/type/response.ts +135 -0
  67. package/dist/components/Daeryuntalk/_enums/ask-status.d.ts +6 -0
  68. package/dist/components/Daeryuntalk/_enums/ask-status.js +11 -0
  69. package/dist/components/Daeryuntalk/_enums/ask-status.ts +11 -0
  70. package/dist/components/Daeryuntalk/_enums/message_type.d.ts +6 -0
  71. package/dist/components/Daeryuntalk/_enums/message_type.js +13 -0
  72. package/dist/components/Daeryuntalk/_enums/message_type.ts +13 -0
  73. package/dist/components/Daeryuntalk/_enums/sender_type.d.ts +8 -0
  74. package/dist/components/Daeryuntalk/_enums/sender_type.js +16 -0
  75. package/dist/components/Daeryuntalk/_enums/sender_type.ts +16 -0
  76. package/dist/components/Daeryuntalk/_enums/socket_type.d.ts +22 -0
  77. package/dist/components/Daeryuntalk/_enums/socket_type.js +23 -0
  78. package/dist/components/Daeryuntalk/_enums/socket_type.ts +31 -0
  79. package/dist/components/Daeryuntalk/_enums/template.d.ts +32 -0
  80. package/dist/components/Daeryuntalk/_enums/template.js +49 -0
  81. package/dist/components/Daeryuntalk/_enums/template.ts +53 -0
  82. package/dist/components/Daeryuntalk/_enums/work_flow_object_expose.d.ts +34 -0
  83. package/dist/components/Daeryuntalk/_enums/work_flow_object_expose.js +66 -0
  84. package/dist/components/Daeryuntalk/_enums/work_flow_object_expose.ts +69 -0
  85. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.d.ts +46 -0
  86. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.js +296 -0
  87. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.ts +364 -0
  88. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHistory.d.ts +1 -0
  89. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHistory.js +1 -0
  90. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHistory.ts +1 -0
  91. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatSocketState.d.ts +1 -0
  92. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatSocketState.js +22 -0
  93. package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatSocketState.ts +30 -0
  94. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.d.ts +21 -0
  95. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.js +205 -0
  96. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.ts +240 -0
  97. package/dist/components/Daeryuntalk/_hooks/talkprovider/useViewerHook.d.ts +8 -0
  98. package/dist/components/Daeryuntalk/_hooks/talkprovider/useViewerHook.js +18 -0
  99. package/dist/components/Daeryuntalk/_hooks/talkprovider/useViewerHook.ts +23 -0
  100. package/dist/components/Daeryuntalk/_lib/index.d.ts +7 -0
  101. package/dist/components/Daeryuntalk/_lib/index.js +101 -0
  102. package/dist/components/Daeryuntalk/_lib/index.ts +137 -0
  103. package/dist/components/Daeryuntalk/_lib/utils.d.ts +2 -0
  104. package/dist/components/Daeryuntalk/_lib/utils.js +16 -0
  105. package/dist/components/Daeryuntalk/_lib/utils.ts +17 -0
  106. package/dist/components/Daeryuntalk/{types.d.ts → _types/message.d.ts} +33 -17
  107. package/dist/components/Daeryuntalk/_types/message.js +19 -0
  108. package/dist/components/Daeryuntalk/{types.ts → _types/message.ts} +64 -19
  109. package/dist/components/Daeryuntalk/_types/message_object.d.ts +16 -0
  110. package/dist/components/Daeryuntalk/_types/message_object.js +1 -0
  111. package/dist/components/Daeryuntalk/_types/message_object.ts +20 -0
  112. package/dist/components/Daeryuntalk/_types/socket/message.d.ts +0 -0
  113. package/dist/components/Daeryuntalk/_types/socket/message.js +1 -0
  114. package/dist/components/Daeryuntalk/_types/socket/message.ts +0 -0
  115. package/dist/components/Daeryuntalk/_types/socket/workflow.d.ts +15 -0
  116. package/dist/components/Daeryuntalk/_types/socket/workflow.js +1 -0
  117. package/dist/components/Daeryuntalk/_types/socket/workflow.ts +15 -0
  118. package/dist/components/Daeryuntalk/_ui/buttons/Button1.d.ts +10 -0
  119. package/dist/components/Daeryuntalk/_ui/buttons/Button1.jsx +11 -0
  120. package/dist/components/Daeryuntalk/_ui/buttons/Button1.tsx +28 -0
  121. package/dist/components/Daeryuntalk/_ui/inputs/Input1.d.ts +12 -0
  122. package/dist/components/Daeryuntalk/_ui/inputs/Input1.jsx +9 -0
  123. package/dist/components/Daeryuntalk/_ui/inputs/Input1.tsx +39 -0
  124. package/dist/components/Daeryuntalk/index.tsx +1 -0
  125. package/dist/lib/categoryMenuName.js +0 -3
  126. package/dist/lib/categoryMenuName.ts +0 -2
  127. package/dist/lib/index.js +1 -1
  128. package/dist/lib/index.ts +1 -1
  129. package/dist/styles/globals.css +161 -8
  130. package/dist/tsconfig.tsbuildinfo +1 -1
  131. package/package.json +8 -2
  132. package/dist/components/Daeryuntalk/types.js +0 -8
  133. package/dist/lib/api/daeryuntalk/index.d.ts +0 -143
  134. /package/dist/{lib/api → components/Daeryuntalk/_api}/index.d.ts +0 -0
  135. /package/dist/{lib/api → components/Daeryuntalk/_api}/index.js +0 -0
  136. /package/dist/{lib/api → components/Daeryuntalk/_api}/index.ts +0 -0
@@ -0,0 +1,19 @@
1
+ // todo 올바른 타입 정의 필요
2
+ import { InquiryMessageTemplateType } from '../_enums/template';
3
+ // 메시지에 특정 컨텐츠가 있는지 확인하는 헬퍼 함수들
4
+ export const hasBlocks = (message) => !!message.blocks && message.blocks.length > 0;
5
+ //
6
+ export const hasRichForm = (message) => !!message.richText && message.richText.structuredData;
7
+ // 사용자가 워크플로우 대답 클릭한거
8
+ export const hasCustomerWorkFlowClickData = (message) => message.templateType === InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_3;
9
+ export const hasButtons = (message) => !!message.buttons && message.buttons.length > 0;
10
+ // 폼인지 여부
11
+ export const hasForm = (message) => message.templateType === InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_4;
12
+ // 파일 자체가 있는지
13
+ export const hasFileArray = (message) => !!message.files && message.files.length > 0;
14
+ // 이미지 외 파일이 있는지
15
+ export const hasFiles = (message) => !!message.files && message.files.filter(fil => fil.type !== 'image').length > 0;
16
+ // 이미지가 있는지
17
+ export const hasImages = (message) => !!message.files && message.files.filter(fil => fil.type === 'image').length > 0;
18
+ export const hasWebPage = (message) => !!message.webPage;
19
+ export const hasWorkFlowImg = (message) => { var _a; return !!((_a = message === null || message === void 0 ? void 0 : message.workFlow) === null || _a === void 0 ? void 0 : _a.imageUrl); };
@@ -1,12 +1,20 @@
1
1
  // todo 올바른 타입 정의 필요
2
2
 
3
- // 기본 발신자 타입
4
- export type MessageSender = 'user' | 'system' | 'operator' | 'bot';
5
-
6
3
  // 텍스트 블록 타입
4
+ import exp from 'constants';
5
+ import { InquiryMessageTemplateType } from '../_enums/template';
6
+
7
7
  export interface TextBlock {
8
8
  type: string;
9
9
  value: string;
10
+ iconUrl?: string;
11
+ }
12
+
13
+ // 워크플로우
14
+ export interface WorkFlowInfo {
15
+ workFlowNumber: string; // 워크플로우 번호
16
+ optionExposureYn: boolean; // 옵션 노출 여부
17
+ imageUrl: string; // 이미지
10
18
  }
11
19
 
12
20
  // 버튼 타입
@@ -25,28 +33,32 @@ export interface FormInput {
25
33
  type: FormInputType;
26
34
  label: string;
27
35
  value: string;
28
- placeholder?: string;
29
- required?: boolean;
36
+ // placeholder?: string;
37
+ // required?: boolean;
30
38
  readOnly?: boolean;
31
39
  bindingKey?: string;
32
- options?: Array<{ value: string; label: string }>;
40
+ // options?: Array<{ value: string; label: string }>;
33
41
  }
34
42
 
35
43
  // todo 폼 정의
36
44
  export interface Form {
37
45
  type: string;
38
46
  inputs: FormInput[];
39
- submittedAt?: Date;
47
+ submittedAt?: string;
40
48
  submitButton?: string;
41
49
  }
42
50
 
43
51
  // todo 파일 정보 정의
44
52
  export interface FileInfo {
53
+ fileNumber: string;
54
+ fileKey: string;
45
55
  name: string;
46
- url: string;
47
- fileType?: string;
48
- size?: number;
49
- thumbnailUrl?: string;
56
+ type: 'image' | 'file'; // 확장 가능
57
+ contentType: string;
58
+ size: number;
59
+ sequence: number;
60
+ thumbnailUrl: string;
61
+ originalUrl: string;
50
62
  }
51
63
 
52
64
  // todo 이미지 정보 정의
@@ -58,25 +70,39 @@ export interface ImageInfo {
58
70
  height?: number;
59
71
  }
60
72
 
73
+ export interface IRichText {
74
+ version: number;
75
+ htmlContent: string;
76
+ structuredData: any | null;
77
+ }
78
+
61
79
  // 기본 메시지 인터페이스
62
80
  export interface Message {
63
81
  // 핵심 필드
64
- msgNo: string; // API의 msg_no
82
+ messageNumber: string; // API의 msg_no
65
83
  plainText: string; // API의 plain_text
66
- sender: MessageSender; // UI 표시용 발신자 타입 (msg_type에서 변환)
67
84
 
68
85
  // API에서 오는 필드들
69
- msgType?: string; // API의 msg_type
70
- msgStatus?: string; // API의 msg_status
86
+ senderType: string; // UI 표시용 발신자 타입 (msg_type에서 변환)
87
+ messageType?: string; // API의 msg_type
88
+ messageStatus?: string; // API의 msg_status
71
89
  userKey?: string; // API의 user_key
72
- inquiryNo?: string; // API의 inquiry_no
90
+ inquiryNumber?: string; // API의 inquiry_no
91
+ templateType?: string;
73
92
  createdAt: Date; // API의 created_at (Date 객체로 변환)
74
93
  updatedAt?: Date; // API의 updated_at (Date 객체로 변환)
75
94
  language?: string; // API의 language
95
+ timestamp: number;
96
+
97
+ // 팁탭 에디터
98
+ richText?: IRichText;
76
99
 
77
100
  // 블록 관련
78
101
  blocks?: TextBlock[]; // API의 blocks를 UI 타입으로 변환
79
102
 
103
+ // 워크블로우 관련
104
+ workFlow?: WorkFlowInfo;
105
+
80
106
  // UI 관련 추가 필드
81
107
  buttons?: Button[]; // 버튼이 있는 경우
82
108
  form?: Form; // 폼이 있는 경우
@@ -97,8 +123,27 @@ export interface Message {
97
123
 
98
124
  // 메시지에 특정 컨텐츠가 있는지 확인하는 헬퍼 함수들
99
125
  export const hasBlocks = (message: Message): boolean => !!message.blocks && message.blocks.length > 0;
126
+
127
+ //
128
+ export const hasRichForm = (message: Message): boolean => !!message.richText && message.richText.structuredData;
129
+
130
+ // 사용자가 워크플로우 대답 클릭한거
131
+ export const hasCustomerWorkFlowClickData = (message: Message): boolean =>
132
+ message.templateType === InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_3;
100
133
  export const hasButtons = (message: Message): boolean => !!message.buttons && message.buttons.length > 0;
101
- export const hasForm = (message: Message): boolean => !!message.form;
102
- export const hasFiles = (message: Message): boolean => !!message.files && message.files.length > 0;
103
- export const hasImages = (message: Message): boolean => !!message.images && message.images.length > 0;
134
+ // 폼인지 여부
135
+ export const hasForm = (message: Message): boolean =>
136
+ message.templateType === InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_4;
137
+
138
+ // 파일 자체가 있는지
139
+ export const hasFileArray = (message: Message): boolean => !!message.files && message.files.length > 0;
140
+
141
+ // 이미지 외 파일이 있는지
142
+ export const hasFiles = (message: Message): boolean =>
143
+ !!message.files && message.files.filter(fil => fil.type !== 'image').length > 0;
144
+
145
+ // 이미지가 있는지
146
+ export const hasImages = (message: Message): boolean =>
147
+ !!message.files && message.files.filter(fil => fil.type === 'image').length > 0;
104
148
  export const hasWebPage = (message: Message): boolean => !!message.webPage;
149
+ export const hasWorkFlowImg = (message: Message): boolean => !!message?.workFlow?.imageUrl;
@@ -0,0 +1,16 @@
1
+ export interface MessageObject {
2
+ exposeObjectListYn?: boolean;
3
+ messageNumber?: string;
4
+ workFlowNumber?: string;
5
+ objectList?: MessageObjectExpose[];
6
+ workFlowProgressStack: string[];
7
+ objectGroupUiCode: string;
8
+ }
9
+ export interface MessageObjectExpose {
10
+ objectNumber: string;
11
+ objectName: string;
12
+ iconImageUrl: string;
13
+ sequence: number;
14
+ actionCode: string;
15
+ objectUiCode: string;
16
+ }
@@ -0,0 +1,20 @@
1
+ import { useState } from 'react';
2
+ import { Message } from './message';
3
+
4
+ export interface MessageObject {
5
+ exposeObjectListYn?: boolean; // 오브젝트 목록 노출 여부
6
+ messageNumber?: string; // 연결된 메시지 번호
7
+ workFlowNumber?: string; // 연결된 워크플로우 번호
8
+ objectList?: MessageObjectExpose[]; // 노출될 오브젝트 리스트
9
+ workFlowProgressStack: string[];
10
+ objectGroupUiCode: string;
11
+ }
12
+
13
+ export interface MessageObjectExpose {
14
+ objectNumber: string; // 오브젝트 고유 번호
15
+ objectName: string; // 오브젝트 이름 (버튼/옵션 텍스트 등)
16
+ iconImageUrl: string; // 오브젝트 아이콘 이미지 URL
17
+ sequence: number; // 노출 순서
18
+ actionCode: string; // 액션 코드 (예: WFL00900004)
19
+ objectUiCode: string; // 오브젝트 UI 코드 (예: WFL01000001)
20
+ }
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,15 @@
1
+ export interface IInquiryWorkFlowUpdate {
2
+ chat_inquiry_number: string;
3
+ message_number: string;
4
+ object_group_ui_code: string;
5
+ object_list: {
6
+ action_code: string;
7
+ icon_image_url: string;
8
+ link_url: string;
9
+ object_name: string;
10
+ object_number: string;
11
+ object_ui_code: string;
12
+ sequence: number;
13
+ }[];
14
+ work_flow_progress_stack: string[];
15
+ }
@@ -0,0 +1,15 @@
1
+ export interface IInquiryWorkFlowUpdate {
2
+ chat_inquiry_number: string;
3
+ message_number: string;
4
+ object_group_ui_code: string;
5
+ object_list: {
6
+ action_code: string;
7
+ icon_image_url: string;
8
+ link_url: string;
9
+ object_name: string;
10
+ object_number: string;
11
+ object_ui_code: string;
12
+ sequence: number;
13
+ }[];
14
+ work_flow_progress_stack: string[];
15
+ }
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface Button1Props {
3
+ onClick?: () => void | Promise<void>;
4
+ type?: 'button' | 'submit' | 'reset';
5
+ className?: string;
6
+ children: React.ReactNode;
7
+ isDisabled?: boolean;
8
+ }
9
+ declare const Button1: ({ onClick, type, className, children, isDisabled }: Button1Props) => React.JSX.Element;
10
+ export default Button1;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ const Button1 = ({ onClick, type = 'button', className = '', children, isDisabled = false }) => {
3
+ return (<button disabled={isDisabled} type={type} onClick={onClick} className={`
4
+ h-[38px] rounded-[10px] bg-[#2E385B] text-center text-[14px]
5
+ font-[700] leading-[100%] tracking-[-4%] text-white
6
+ ${className}
7
+ `}>
8
+ {children}
9
+ </button>);
10
+ };
11
+ export default Button1;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+
3
+ interface Button1Props {
4
+ onClick?: () => void | Promise<void>;
5
+ type?: 'button' | 'submit' | 'reset';
6
+ className?: string;
7
+ children: React.ReactNode;
8
+ isDisabled?: boolean;
9
+ }
10
+
11
+ const Button1 = ({ onClick, type = 'button', className = '', children, isDisabled = false }: Button1Props) => {
12
+ return (
13
+ <button
14
+ disabled={isDisabled}
15
+ type={type}
16
+ onClick={onClick}
17
+ className={`
18
+ h-[38px] rounded-[10px] bg-[#2E385B] text-center text-[14px]
19
+ font-[700] leading-[100%] tracking-[-4%] text-white
20
+ ${className}
21
+ `}
22
+ >
23
+ {children}
24
+ </button>
25
+ );
26
+ };
27
+
28
+ export default Button1;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface Input1Props {
3
+ value?: string;
4
+ name?: string;
5
+ readOnly?: boolean;
6
+ className?: string;
7
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
8
+ placeholder?: string;
9
+ type?: string;
10
+ }
11
+ declare const Input1: ({ value, name, readOnly, className, onChange, placeholder, type }: Input1Props) => React.JSX.Element;
12
+ export default Input1;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ const Input1 = ({ value, name, readOnly = false, className = '', onChange, placeholder, type = 'text' }) => {
3
+ return (<input type={type} readOnly={readOnly} name={name} value={value} onChange={onChange} placeholder={placeholder} className={`
4
+ h-[40px] w-full rounded-[6px] border-[1px] border-solid
5
+ border-[#D9D9D9] p-[8px]
6
+ ${className}
7
+ `}/>);
8
+ };
9
+ export default Input1;
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+
3
+ interface Input1Props {
4
+ value?: string;
5
+ name?: string;
6
+ readOnly?: boolean;
7
+ className?: string;
8
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
9
+ placeholder?: string;
10
+ type?: string;
11
+ }
12
+
13
+ const Input1 = ({
14
+ value,
15
+ name,
16
+ readOnly = false,
17
+ className = '',
18
+ onChange,
19
+ placeholder,
20
+ type = 'text'
21
+ }: Input1Props) => {
22
+ return (
23
+ <input
24
+ type={type}
25
+ readOnly={readOnly}
26
+ name={name}
27
+ value={value}
28
+ onChange={onChange}
29
+ placeholder={placeholder}
30
+ className={`
31
+ h-[40px] w-full rounded-[6px] border-[1px] border-solid
32
+ border-[#D9D9D9] p-[8px]
33
+ ${className}
34
+ `}
35
+ />
36
+ );
37
+ };
38
+
39
+ export default Input1;
@@ -4,6 +4,7 @@ import React, { useState } from 'react';
4
4
  import ChatButton from './ChatButton';
5
5
  import ChatWidget from './ChatWidget';
6
6
  import { DaeryuntalkProvider } from './DaeryuntalkContext';
7
+ import ImageViewer from './Viewer/ImageViewer';
7
8
 
8
9
  const Daeryuntalk: React.FC = () => {
9
10
  const [isOpen, setIsOpen] = useState(false);
@@ -167,9 +167,6 @@ export function categoryMenuName({ url }) {
167
167
  else if (url.includes('/lawfirm')) {
168
168
  return { title: '대륜소개', subTitle: '로펌 3.0', address: 'lawfirm' };
169
169
  }
170
- else if (allUrl.includes('comp') && url.includes('/merit')) {
171
- return { title: '기업의뢰인을 위한 장점', subTitle: '', address: 'merit' };
172
- }
173
170
  else {
174
171
  return { title: '', subTitle: '', address: '/' };
175
172
  }
@@ -133,8 +133,6 @@ export function categoryMenuName({ url }: { url: string }): {
133
133
  return { title: '업무사례', subTitle: '법률지식인', address: 'faq' };
134
134
  } else if (url.includes('/lawfirm')) {
135
135
  return { title: '대륜소개', subTitle: '로펌 3.0', address: 'lawfirm' };
136
- } else if (allUrl.includes('comp') && url.includes('/merit')) {
137
- return { title: '기업의뢰인을 위한 장점', subTitle: '', address: 'merit' };
138
136
  } else {
139
137
  return { title: '', subTitle: '', address: '/' };
140
138
  }
package/dist/lib/index.js CHANGED
@@ -3,4 +3,4 @@ export * from './conversion';
3
3
  export * from './powerlink';
4
4
  export * from './utils';
5
5
  export * from './categoryMenuName';
6
- export * from './api';
6
+ export * from '../components/Daeryuntalk/_api';
package/dist/lib/index.ts CHANGED
@@ -3,4 +3,4 @@ export * from './conversion';
3
3
  export * from './powerlink';
4
4
  export * from './utils';
5
5
  export * from './categoryMenuName';
6
- export * from './api';
6
+ export * from '../components/Daeryuntalk/_api';