@daeryun/dr_components 0.8.79 → 0.8.82

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 (65) hide show
  1. package/dist/components/Daeryuntalk/ChatConversation.jsx +3 -3
  2. package/dist/components/Daeryuntalk/ChatConversation.tsx +3 -2
  3. package/dist/components/Daeryuntalk/ChatHomeView.jsx +15 -5
  4. package/dist/components/Daeryuntalk/ChatHomeView.tsx +24 -11
  5. package/dist/components/Daeryuntalk/ChatInput.jsx +15 -4
  6. package/dist/components/Daeryuntalk/ChatInput.tsx +17 -5
  7. package/dist/components/Daeryuntalk/ChatItem/ChatFile.jsx +1 -1
  8. package/dist/components/Daeryuntalk/ChatItem/ChatFile.tsx +1 -1
  9. package/dist/components/Daeryuntalk/ChatItem/WorkFlowImg.d.ts +3 -1
  10. package/dist/components/Daeryuntalk/ChatItem/WorkFlowImg.jsx +174 -3
  11. package/dist/components/Daeryuntalk/ChatItem/WorkFlowImg.tsx +211 -3
  12. package/dist/components/Daeryuntalk/ChatMessage.d.ts +1 -0
  13. package/dist/components/Daeryuntalk/ChatMessage.jsx +11 -6
  14. package/dist/components/Daeryuntalk/ChatMessage.tsx +14 -6
  15. package/dist/components/Daeryuntalk/ChatObject/ObjectButton.jsx +4 -2
  16. package/dist/components/Daeryuntalk/ChatObject/ObjectButton.tsx +6 -4
  17. package/dist/components/Daeryuntalk/ChatWidget.d.ts +1 -0
  18. package/dist/components/Daeryuntalk/ChatWidget.jsx +1 -1
  19. package/dist/components/Daeryuntalk/ChatWidget.tsx +10 -2
  20. package/dist/components/Daeryuntalk/DaeryuntalkContext.d.ts +1 -0
  21. package/dist/components/Daeryuntalk/DaeryuntalkContext.jsx +5 -3
  22. package/dist/components/Daeryuntalk/DaeryuntalkContext.tsx +7 -3
  23. package/dist/components/Daeryuntalk/HistoryView.jsx +1 -2
  24. package/dist/components/Daeryuntalk/HistoryView.tsx +1 -1
  25. package/dist/components/Daeryuntalk/HomeView.jsx +4 -9
  26. package/dist/components/Daeryuntalk/HomeView.tsx +9 -9
  27. package/dist/components/Daeryuntalk/NavigationFooter.jsx +1 -1
  28. package/dist/components/Daeryuntalk/NavigationFooter.tsx +1 -1
  29. package/dist/components/Daeryuntalk/Tiptap/Tiptap.d.ts +2 -1
  30. package/dist/components/Daeryuntalk/Tiptap/Tiptap.jsx +38 -5
  31. package/dist/components/Daeryuntalk/Tiptap/Tiptap.tsx +48 -9
  32. package/dist/components/Daeryuntalk/Toast/DaeryuntalkToastProvider.d.ts +2 -1
  33. package/dist/components/Daeryuntalk/Toast/DaeryuntalkToastProvider.jsx +18 -7
  34. package/dist/components/Daeryuntalk/Toast/DaeryuntalkToastProvider.tsx +24 -8
  35. package/dist/components/Daeryuntalk/Toast/ToastRender.jsx +9 -3
  36. package/dist/components/Daeryuntalk/Toast/ToastRender.tsx +10 -6
  37. package/dist/components/Daeryuntalk/Viewer/ImageViewer.jsx +6 -8
  38. package/dist/components/Daeryuntalk/Viewer/ImageViewer.tsx +7 -10
  39. package/dist/components/Daeryuntalk/Viewer/MobileViewer.d.ts +2 -0
  40. package/dist/components/Daeryuntalk/Viewer/MobileViewer.jsx +52 -19
  41. package/dist/components/Daeryuntalk/Viewer/MobileViewer.tsx +89 -43
  42. package/dist/components/Daeryuntalk/Viewer/TbPcViewer.d.ts +2 -0
  43. package/dist/components/Daeryuntalk/Viewer/TbPcViewer.jsx +35 -5
  44. package/dist/components/Daeryuntalk/Viewer/TbPcViewer.tsx +57 -21
  45. package/dist/components/Daeryuntalk/_api/daeryuntalk/index.d.ts +1 -0
  46. package/dist/components/Daeryuntalk/_api/daeryuntalk/index.js +14 -12
  47. package/dist/components/Daeryuntalk/_api/daeryuntalk/index.ts +9 -8
  48. package/dist/components/Daeryuntalk/_enums/error.js +119 -111
  49. package/dist/components/Daeryuntalk/_enums/error.ts +135 -127
  50. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.d.ts +1 -0
  51. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.js +8 -2
  52. package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.ts +10 -2
  53. package/dist/components/Daeryuntalk/_hooks/view/useHomeView.js +1 -0
  54. package/dist/components/Daeryuntalk/_hooks/view/useHomeView.ts +1 -0
  55. package/dist/components/Daeryuntalk/_lib/utils.d.ts +2 -0
  56. package/dist/components/Daeryuntalk/_lib/utils.js +12 -0
  57. package/dist/components/Daeryuntalk/_lib/utils.ts +15 -0
  58. package/dist/components/Daeryuntalk/_types/message.d.ts +1 -1
  59. package/dist/components/Daeryuntalk/_types/message.js +6 -1
  60. package/dist/components/Daeryuntalk/_types/message.ts +7 -1
  61. package/dist/components/Daeryuntalk/index.jsx +34 -5
  62. package/dist/components/Daeryuntalk/index.tsx +37 -6
  63. package/dist/styles/globals.css +30 -24
  64. package/dist/tsconfig.tsbuildinfo +1 -1
  65. package/package.json +1 -1
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { useCallback } from 'react';
11
- import { getChatInquiryMain, getHistoryList, initializeDaeryuntalk as apiInitializeDaeryuntalk } from '../../_api/daeryuntalk';
11
+ import { authenticateUser, getChatInquiryMain, getHistoryList, initializeDaeryuntalk as apiInitializeDaeryuntalk, TEST_CENTER_CODE } from '../../_api/daeryuntalk';
12
12
  import { convertApiMessageToUiMessage, convertSocketObjectToUiMessage } from '../../_lib';
13
13
  import { MessageSocketType } from '../../_enums/socket_type';
14
14
  import { InquiryStatus } from '../../_enums/ask-status';
@@ -256,6 +256,11 @@ export const useSocketEventHandler = ({ setIsConnected, setIsLoading, setMessage
256
256
  setInquiryMainData(result.data);
257
257
  return result;
258
258
  }), [inquiryMainData]);
259
+ const retryInitData = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
260
+ const authRes = yield authenticateUser(TEST_CENTER_CODE);
261
+ const result = yield getChatInquiryMain(authRes.data.channel_number);
262
+ setInquiryMainData(result.data);
263
+ }), []);
259
264
  return {
260
265
  initializeDaeryuntalk,
261
266
  sendHeartbeat,
@@ -264,6 +269,7 @@ export const useSocketEventHandler = ({ setIsConnected, setIsLoading, setMessage
264
269
  sendHistoryEntered,
265
270
  sendHistoryLeft,
266
271
  sendInquiryWatching,
267
- retryInquiryMain
272
+ retryInquiryMain,
273
+ retryInitData
268
274
  };
269
275
  };
@@ -1,10 +1,12 @@
1
1
  import { Dispatch, MutableRefObject, SetStateAction, useCallback, useRef } from 'react';
2
2
 
3
3
  import {
4
+ authenticateUser,
4
5
  followupAttend,
5
6
  getChatInquiryMain,
6
7
  getHistoryList,
7
- initializeDaeryuntalk as apiInitializeDaeryuntalk
8
+ initializeDaeryuntalk as apiInitializeDaeryuntalk,
9
+ TEST_CENTER_CODE
8
10
  } from '../../_api/daeryuntalk';
9
11
  import { Message } from '../../_types/message';
10
12
  import { History, IChatInquiryMainDataResponse } from '../../_api/daeryuntalk/type/response';
@@ -343,6 +345,11 @@ export const useSocketEventHandler = ({
343
345
  },
344
346
  [inquiryMainData]
345
347
  );
348
+ const retryInitData = useCallback(async () => {
349
+ const authRes = await authenticateUser(TEST_CENTER_CODE);
350
+ const result = await getChatInquiryMain(authRes.data.channel_number);
351
+ setInquiryMainData(result.data as IChatInquiryMainDataResponse);
352
+ }, []);
346
353
 
347
354
  return {
348
355
  initializeDaeryuntalk,
@@ -352,6 +359,7 @@ export const useSocketEventHandler = ({
352
359
  sendHistoryEntered,
353
360
  sendHistoryLeft,
354
361
  sendInquiryWatching,
355
- retryInquiryMain
362
+ retryInquiryMain,
363
+ retryInitData
356
364
  };
357
365
  };
@@ -14,6 +14,7 @@ export const useHomeView = ({ setIsLoading, setViewState, retryInquiryMain, inqu
14
14
  var _a, _b, _c;
15
15
  try {
16
16
  setIsLoading(true);
17
+ // 여기서 채널번호가 존재하지가 않음
17
18
  const res = yield retryInquiryMain((inquiryMainData === null || inquiryMainData === void 0 ? void 0 : inquiryMainData.channel_number) || '');
18
19
  if (((_a = res === null || res === void 0 ? void 0 : res.result_info) === null || _a === void 0 ? void 0 : _a.result_cd) === 'OK' || ((_b = res === null || res === void 0 ? void 0 : res.result_info) === null || _b === void 0 ? void 0 : _b.result_type_cd) === 'OK') {
19
20
  const startRes = yield startChat((_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.progress_inquiry_number);
@@ -21,6 +21,7 @@ export const useHomeView = ({
21
21
  const handleStartChat = async () => {
22
22
  try {
23
23
  setIsLoading(true);
24
+ // 여기서 채널번호가 존재하지가 않음
24
25
  const res = await retryInquiryMain(inquiryMainData?.channel_number || '');
25
26
  if (res?.result_info?.result_cd === 'OK' || res?.result_info?.result_type_cd === 'OK') {
26
27
  const startRes = await startChat(res?.data?.progress_inquiry_number);
@@ -12,3 +12,5 @@ export declare const nameFilter: (value: string) => {
12
12
  };
13
13
  export declare const formatSecondsToMMSS: (seconds: number) => string;
14
14
  export declare const formatTimestamp: (timestamp: string) => string;
15
+ export declare const stripHtmlTags: (input: string) => string;
16
+ export declare const decodeDoubleEscapedHtml: (escaped: string) => string;
@@ -75,3 +75,15 @@ export const formatTimestamp = (timestamp) => {
75
75
  const day = date.getDate();
76
76
  return `${month}월${day}일`;
77
77
  };
78
+ export const stripHtmlTags = (input) => {
79
+ // 모든 HTML 태그 제거
80
+ const withoutTags = input.replace(/<[^>]*>/g, '');
81
+ return withoutTags.trim();
82
+ };
83
+ export const decodeDoubleEscapedHtml = (escaped) => {
84
+ const textArea = document.createElement('textarea');
85
+ textArea.innerHTML = escaped;
86
+ const onceDecoded = textArea.value;
87
+ textArea.innerHTML = onceDecoded;
88
+ return textArea.value;
89
+ };
@@ -96,3 +96,18 @@ export const formatTimestamp = (timestamp: string): string => {
96
96
  const day = date.getDate();
97
97
  return `${month}월${day}일`;
98
98
  };
99
+
100
+ export const stripHtmlTags = (input: string) => {
101
+ // 모든 HTML 태그 제거
102
+ const withoutTags = input.replace(/<[^>]*>/g, '');
103
+ return withoutTags.trim();
104
+ };
105
+
106
+ export const decodeDoubleEscapedHtml = (escaped: string) => {
107
+ const textArea = document.createElement('textarea');
108
+ textArea.innerHTML = escaped;
109
+ const onceDecoded = textArea.value;
110
+
111
+ textArea.innerHTML = onceDecoded;
112
+ return textArea.value;
113
+ };
@@ -88,4 +88,4 @@ export declare const hasFileArray: (message: Message) => boolean;
88
88
  export declare const hasFiles: (message: Message) => boolean;
89
89
  export declare const hasImages: (message: Message) => boolean;
90
90
  export declare const hasWebPage: (message: Message) => boolean;
91
- export declare const hasWorkFlowImg: (message: Message) => boolean;
91
+ export declare const hasWorkFlow: (message: Message) => boolean;
@@ -16,4 +16,9 @@ export const hasFiles = (message) => !!message.files && message.files.filter(fil
16
16
  // 이미지가 있는지
17
17
  export const hasImages = (message) => !!message.files && message.files.filter(fil => fil.type === 'image').length > 0;
18
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); };
19
+ export const hasWorkFlow = (message) => [
20
+ String(InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_1),
21
+ String(InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_2),
22
+ String(InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_3),
23
+ String(InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_4)
24
+ ].includes((message === null || message === void 0 ? void 0 : message.templateType) || '');
@@ -146,4 +146,10 @@ export const hasFiles = (message: Message): boolean =>
146
146
  export const hasImages = (message: Message): boolean =>
147
147
  !!message.files && message.files.filter(fil => fil.type === 'image').length > 0;
148
148
  export const hasWebPage = (message: Message): boolean => !!message.webPage;
149
- export const hasWorkFlowImg = (message: Message): boolean => !!message?.workFlow?.imageUrl;
149
+ export const hasWorkFlow = (message: Message): boolean =>
150
+ [
151
+ String(InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_1),
152
+ String(InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_2),
153
+ String(InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_3),
154
+ String(InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_4)
155
+ ].includes(message?.templateType || '');
@@ -12,6 +12,24 @@ const Daeryuntalk = ({ tel = '1800-7905' }) => {
12
12
  // const isMobile = mobile();
13
13
  const [hashValue, setHashValue] = useState(null);
14
14
  const isLocal = process.env.NODE_ENV === 'development';
15
+ // 상태 관리 (컴포넌트 내부에 추가)
16
+ const [animationState, setAnimationState] = useState('hidden'); // 'hidden', 'entering', 'visible', 'exiting'
17
+ // 모달 열기 함수
18
+ const openModal = () => {
19
+ setAnimationState('entering');
20
+ setIsOpen(true);
21
+ setTimeout(() => {
22
+ setAnimationState('visible');
23
+ }, 50);
24
+ };
25
+ // 모달 닫기 함수
26
+ const closeModal = () => {
27
+ setAnimationState('exiting');
28
+ setTimeout(() => {
29
+ setAnimationState('hidden');
30
+ setIsOpen(false);
31
+ }, 300);
32
+ };
15
33
  useEffect(() => {
16
34
  if (isOpen && isMobile) {
17
35
  document.body.style.overflow = 'hidden';
@@ -25,10 +43,21 @@ const Daeryuntalk = ({ tel = '1800-7905' }) => {
25
43
  };
26
44
  }, [isOpen]);
27
45
  const toggleChat = () => {
28
- setIsOpen(prev => !prev);
29
- };
30
- const closeChatWidget = () => {
31
- setIsOpen(false);
46
+ if (isOpen) {
47
+ closeModal();
48
+ }
49
+ else {
50
+ openModal();
51
+ }
52
+ // setIsOpen(prev => {
53
+ // if (prev) {
54
+ // openModal();
55
+ // return false;
56
+ // } else {
57
+ // // closeModal();
58
+ // return true;
59
+ // }
60
+ // });
32
61
  };
33
62
  useEffect(() => {
34
63
  if (typeof window !== 'undefined') {
@@ -50,7 +79,7 @@ const Daeryuntalk = ({ tel = '1800-7905' }) => {
50
79
  <ViewportHandler />
51
80
  <DaeryuntalkProvider propsTel={tel} isMobile={isMobile}>
52
81
  {isMobile ? (isOpen ? null : (<ChatButton isOpen={isOpen} isMobile={isMobile} hashValue={hashValue} onClick={toggleChat}/>)) : (<ChatButton isOpen={isOpen} isMobile={isMobile} hashValue={hashValue} onClick={toggleChat}/>)}
53
- <ChatWidget isOpen={hashValue ? true : isOpen} isMobile={isMobile} onClose={closeChatWidget} hashValue={hashValue} setHashValue={setHashValue}/>
82
+ <ChatWidget isOpen={hashValue ? true : isOpen} isMobile={isMobile} onClose={closeModal} hashValue={hashValue} setHashValue={setHashValue} animationState={animationState}/>
54
83
  </DaeryuntalkProvider>
55
84
  </DaeryuntalkToastProvider>
56
85
  </div>);
@@ -20,6 +20,27 @@ const Daeryuntalk: React.FC<DaeryuntalkProps> = ({ tel = '1800-7905' }) => {
20
20
  const [hashValue, setHashValue] = useState<string | null>(null);
21
21
  const isLocal = process.env.NODE_ENV === 'development';
22
22
 
23
+ // 상태 관리 (컴포넌트 내부에 추가)
24
+ const [animationState, setAnimationState] = useState('hidden'); // 'hidden', 'entering', 'visible', 'exiting'
25
+
26
+ // 모달 열기 함수
27
+ const openModal = () => {
28
+ setAnimationState('entering');
29
+ setIsOpen(true);
30
+ setTimeout(() => {
31
+ setAnimationState('visible');
32
+ }, 50);
33
+ };
34
+
35
+ // 모달 닫기 함수
36
+ const closeModal = () => {
37
+ setAnimationState('exiting');
38
+ setTimeout(() => {
39
+ setAnimationState('hidden');
40
+ setIsOpen(false);
41
+ }, 300);
42
+ };
43
+
23
44
  useEffect(() => {
24
45
  if (isOpen && isMobile) {
25
46
  document.body.style.overflow = 'hidden';
@@ -34,11 +55,20 @@ const Daeryuntalk: React.FC<DaeryuntalkProps> = ({ tel = '1800-7905' }) => {
34
55
  }, [isOpen]);
35
56
 
36
57
  const toggleChat = () => {
37
- setIsOpen(prev => !prev);
38
- };
39
-
40
- const closeChatWidget = () => {
41
- setIsOpen(false);
58
+ if (isOpen) {
59
+ closeModal();
60
+ } else {
61
+ openModal();
62
+ }
63
+ // setIsOpen(prev => {
64
+ // if (prev) {
65
+ // openModal();
66
+ // return false;
67
+ // } else {
68
+ // // closeModal();
69
+ // return true;
70
+ // }
71
+ // });
42
72
  };
43
73
 
44
74
  useEffect(() => {
@@ -81,9 +111,10 @@ const Daeryuntalk: React.FC<DaeryuntalkProps> = ({ tel = '1800-7905' }) => {
81
111
  <ChatWidget
82
112
  isOpen={hashValue ? true : isOpen}
83
113
  isMobile={isMobile}
84
- onClose={closeChatWidget}
114
+ onClose={closeModal}
85
115
  hashValue={hashValue}
86
116
  setHashValue={setHashValue}
117
+ animationState={animationState}
87
118
  />
88
119
  </DaeryuntalkProvider>
89
120
  </DaeryuntalkToastProvider>
@@ -3825,11 +3825,21 @@ video {
3825
3825
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
3826
3826
  }
3827
3827
 
3828
+ .translate-y-\[-80px\] {
3829
+ --tw-translate-y: -80px;
3830
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
3831
+ }
3832
+
3828
3833
  .translate-y-\[-8px\] {
3829
3834
  --tw-translate-y: -8px;
3830
3835
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
3831
3836
  }
3832
3837
 
3838
+ .translate-y-\[20px\] {
3839
+ --tw-translate-y: 20px;
3840
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
3841
+ }
3842
+
3833
3843
  .translate-y-\[5\%\] {
3834
3844
  --tw-translate-y: 5%;
3835
3845
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
@@ -5585,6 +5595,11 @@ video {
5585
5595
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
5586
5596
  }
5587
5597
 
5598
+ .bg-yellow-200 {
5599
+ --tw-bg-opacity: 1;
5600
+ background-color: rgb(254 240 138 / var(--tw-bg-opacity, 1));
5601
+ }
5602
+
5588
5603
  .bg-yellow-400 {
5589
5604
  --tw-bg-opacity: 1;
5590
5605
  background-color: rgb(250 204 21 / var(--tw-bg-opacity, 1));
@@ -6378,6 +6393,10 @@ video {
6378
6393
  padding-bottom: 4px;
6379
6394
  }
6380
6395
 
6396
+ .pb-\[50px\] {
6397
+ padding-bottom: 50px;
6398
+ }
6399
+
6381
6400
  .pb-\[5px\] {
6382
6401
  padding-bottom: 5px;
6383
6402
  }
@@ -7247,6 +7266,11 @@ video {
7247
7266
  letter-spacing: -0.05em;
7248
7267
  }
7249
7268
 
7269
+ .\!text-black {
7270
+ --tw-text-opacity: 1 !important;
7271
+ color: rgb(0 0 0 / var(--tw-text-opacity, 1)) !important;
7272
+ }
7273
+
7250
7274
  .text-\[\#0000004D\] {
7251
7275
  color: #0000004D;
7252
7276
  }
@@ -8053,30 +8077,12 @@ body {
8053
8077
  /* Firefox */
8054
8078
  }
8055
8079
 
8056
- @keyframes wave-pulse {
8057
- 0% {
8058
- transform: scale(1);
8059
- opacity: 0.4;
8060
- }
8061
-
8062
- 70% {
8063
- transform: scale(1.8);
8064
- opacity: 0;
8065
- }
8066
-
8067
- 100% {
8068
- transform: scale(1.8);
8069
- opacity: 0;
8070
- }
8071
- }
8072
-
8073
- .wave-animation {
8074
- position: absolute;
8075
- inset: 0;
8076
- border-radius: 10px;
8077
- background-color: #AA1D36;
8078
- animation: wave-pulse 2s ease-out infinite;
8079
- z-index: -1;
8080
+ .tiptap p.is-editor-empty:first-child::before {
8081
+ color: #adb5bd;
8082
+ content: attr(data-placeholder);
8083
+ float: left;
8084
+ height: 0;
8085
+ pointer-events: none;
8080
8086
  }
8081
8087
 
8082
8088
  /* 채팅문의 필요 css */