@daeryun/dr_components 0.6.51 → 0.6.53

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.
@@ -13,7 +13,7 @@ const ChatMessage = ({ message }) => {
13
13
  const renderTextBlock = (block, index) => (<div key={`text-${index}`} className={`mb-1 rounded-[10px] border p-2 ${isUser ? 'border-[#2E385B] text-[#2E385B]' : 'border-[#EDEDED] text-black'}`}>
14
14
  <p className="text-sm leading-[130%] tracking-[-4%]">{block.value}</p>
15
15
  </div>);
16
- /** todo: trophy198 메시지 내용 렌더링 추후 추가 될듯 */
16
+ /** todo 메시지 내용 렌더링 추후 추가 될듯 */
17
17
  const renderMessageContent = () => {
18
18
  var _a;
19
19
  return (<div className="message-content">
@@ -28,7 +28,7 @@ const ChatMessage: React.FC<ChatMessageProps> = ({ message }) => {
28
28
  <p className="text-sm leading-[130%] tracking-[-4%]">{block.value}</p>
29
29
  </div>
30
30
  );
31
- /** todo: trophy198 메시지 내용 렌더링 추후 추가 될듯 */
31
+ /** todo 메시지 내용 렌더링 추후 추가 될듯 */
32
32
  const renderMessageContent = () => {
33
33
  return (
34
34
  <div className="message-content">
@@ -175,7 +175,7 @@ export const DaeryuntalkProvider = ({ children }) => {
175
175
  // 메시지 전송
176
176
  const sendMessage = useCallback((text, retry) => __awaiter(void 0, void 0, void 0, function* () {
177
177
  try {
178
- /** todo: trophy198 지금은 여기로직이 비어있지만
178
+ /** todo 지금은 여기로직이 비어있지만
179
179
  * 추후에는 메시지 전송 로직을 한 이후에 로컬로 메시지를 임시로 저장하고 그걸 보내야함
180
180
  * 그럴라면 인터페이스 규격이 서로달라 내가 임시로 작성할지 아니면 응답 데이터를 변조해서 쓸지 고민
181
181
  */
@@ -185,7 +185,7 @@ export const DaeryuntalkProvider = ({ children }) => {
185
185
  console.error('[DaeryuntalkContext] 메시지 전송 중 오류 발생:', error);
186
186
  }
187
187
  }), [chatInquiryNumber]);
188
- // todo: trophy198 메시지 이력 조회 함수
188
+ // todo 메시지 이력 조회 함수
189
189
  const viewHistory = () => { };
190
190
  return (<DaeryuntalkContext.Provider value={{
191
191
  messages,
@@ -218,7 +218,7 @@ export const DaeryuntalkProvider: React.FC<DaeryuntalkProviderProps> = ({ childr
218
218
  const sendMessage = useCallback(
219
219
  async (text: string, retry?: boolean) => {
220
220
  try {
221
- /** todo: trophy198 지금은 여기로직이 비어있지만
221
+ /** todo 지금은 여기로직이 비어있지만
222
222
  * 추후에는 메시지 전송 로직을 한 이후에 로컬로 메시지를 임시로 저장하고 그걸 보내야함
223
223
  * 그럴라면 인터페이스 규격이 서로달라 내가 임시로 작성할지 아니면 응답 데이터를 변조해서 쓸지 고민
224
224
  */
@@ -230,7 +230,7 @@ export const DaeryuntalkProvider: React.FC<DaeryuntalkProviderProps> = ({ childr
230
230
  [chatInquiryNumber]
231
231
  );
232
232
 
233
- // todo: trophy198 메시지 이력 조회 함수
233
+ // todo 메시지 이력 조회 함수
234
234
  const viewHistory = () => {};
235
235
 
236
236
  return (
@@ -1,4 +1,4 @@
1
- // todo : trophy198 올바른 타입 정의 필요
1
+ // todo 올바른 타입 정의 필요
2
2
  // 메시지에 특정 컨텐츠가 있는지 확인하는 헬퍼 함수들
3
3
  export const hasBlocks = (message) => !!message.blocks && message.blocks.length > 0;
4
4
  export const hasButtons = (message) => !!message.buttons && message.buttons.length > 0;
@@ -1,4 +1,4 @@
1
- // todo : trophy198 올바른 타입 정의 필요
1
+ // todo 올바른 타입 정의 필요
2
2
 
3
3
  // 기본 발신자 타입
4
4
  export type MessageSender = 'user' | 'system' | 'operator' | 'bot';
@@ -32,7 +32,7 @@ export interface FormInput {
32
32
  options?: Array<{ value: string; label: string }>;
33
33
  }
34
34
 
35
- // todo: trophy198 폼 정의
35
+ // todo 폼 정의
36
36
  export interface Form {
37
37
  type: string;
38
38
  inputs: FormInput[];
@@ -40,7 +40,7 @@ export interface Form {
40
40
  submitButton?: string;
41
41
  }
42
42
 
43
- // todo: trophy198 파일 정보 정의
43
+ // todo 파일 정보 정의
44
44
  export interface FileInfo {
45
45
  name: string;
46
46
  url: string;
@@ -49,7 +49,7 @@ export interface FileInfo {
49
49
  thumbnailUrl?: string;
50
50
  }
51
51
 
52
- // todo: trophy198 이미지 정보 정의
52
+ // todo 이미지 정보 정의
53
53
  export interface ImageInfo {
54
54
  url: string;
55
55
  alt?: string;