@daeryun/dr_components 0.9.11 → 0.9.13

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.
@@ -117,14 +117,14 @@ const objectListRender = (objectNumber) => {
117
117
  return (<>
118
118
  <span className="font-[700]">채팅 문의</span>&nbsp;시작하기
119
119
  </>);
120
- case ObjectNumber.OTHER_RESERVATION:
121
- return (<>
122
- 다른&nbsp;<span className="font-[700]">예약 방법</span>&nbsp;보기
123
- </>);
124
120
  case ObjectNumber.ASK_AI:
125
121
  return (<>
126
122
  <span className="font-[700]">AI 대륜</span>에게 질문하기
127
123
  </>);
124
+ case ObjectNumber.OTHER_RESERVATION:
125
+ return (<>
126
+ 다른&nbsp;<span className="font-[700]">예약 방법</span>&nbsp;보기
127
+ </>);
128
128
  case ObjectNumber.FAQ:
129
129
  return (<>
130
130
  자주 묻는&nbsp;<span className="font-[700]">질문</span>
@@ -159,16 +159,16 @@ const objectListRender = (objectNumber: string) => {
159
159
  <span className="font-[700]">채팅 문의</span>&nbsp;시작하기
160
160
  </>
161
161
  );
162
- case ObjectNumber.OTHER_RESERVATION:
162
+ case ObjectNumber.ASK_AI:
163
163
  return (
164
164
  <>
165
- 다른&nbsp;<span className="font-[700]">예약 방법</span>&nbsp;보기
165
+ <span className="font-[700]">AI 대륜</span>에게 질문하기
166
166
  </>
167
167
  );
168
- case ObjectNumber.ASK_AI:
168
+ case ObjectNumber.OTHER_RESERVATION:
169
169
  return (
170
170
  <>
171
- <span className="font-[700]">AI 대륜</span>에게 질문하기
171
+ 다른&nbsp;<span className="font-[700]">예약 방법</span>&nbsp;보기
172
172
  </>
173
173
  );
174
174
  case ObjectNumber.FAQ:
@@ -108,10 +108,8 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
108
108
  </div>
109
109
  </header>
110
110
 
111
- <div className="absolute left-0 top-0 z-0 h-full w-full overflow-hidden">
112
- <Image src={backgroundImage} alt="대화 배경" fill className={`${isMobile
113
- ? ' h-full max-h-[360px] w-full object-center will-change-transform '
114
- : ` w-full object-contain object-top will-change-transform `}`}/>
111
+ <div className={`absolute left-0 top-0 z-0 w-full overflow-hidden ${isMobile ? 'aspect-[16/9] max-h-[360px]' : 'h-full'}`}>
112
+ <Image src={backgroundImage} alt="대화 배경" fill className={`will-change-transform ${isMobile ? 'object-cover object-center' : 'object-contain object-top'}`} priority/>
115
113
  </div>
116
114
 
117
115
  <div className={` relative z-10 px-[20px] ${isMobile ? 'flex w-full justify-center pb-[20px]' : 'flex h-full w-full flex-col justify-center pb-[34px] xs:h-fit'}`}>
@@ -138,16 +138,19 @@ const HomeView = ({ inquiryMainData, isLoading, handleStartChat, isMobile, onClo
138
138
  </div>
139
139
  </header>
140
140
 
141
- <div className="absolute left-0 top-0 z-0 h-full w-full overflow-hidden">
141
+ <div
142
+ className={`absolute left-0 top-0 z-0 w-full overflow-hidden ${
143
+ isMobile ? 'aspect-[16/9] max-h-[360px]' : 'h-full'
144
+ }`}
145
+ >
142
146
  <Image
143
147
  src={backgroundImage}
144
148
  alt="대화 배경"
145
149
  fill
146
- className={`${
147
- isMobile
148
- ? ' h-full max-h-[360px] w-full object-center will-change-transform '
149
- : ` w-full object-contain object-top will-change-transform `
150
+ className={`will-change-transform ${
151
+ isMobile ? 'object-cover object-center' : 'object-contain object-top'
150
152
  }`}
153
+ priority
151
154
  />
152
155
  </div>
153
156
 
@@ -10,7 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { ErrorEnum } from '../../_enums/error';
11
11
  import { MessageSocketType } from '../../_enums/socket_type';
12
12
  // API 기본 URL
13
- const API_BASE_URL = 'https://chat-client-api.lawmance.com';
13
+ const API_BASE_URL = process.env.NEXT_PUBLIC_CHAT_CUSTOMER_API;
14
+ // 'https://chat-client-api.lawmance.com';
14
15
  // API 기본 버전
15
16
  export const DEFAULT_API_VERSION = '1.0.0';
16
17
  // API 엔드포인트
@@ -25,7 +25,8 @@ import { ErrorEnum } from '../../_enums/error';
25
25
  import { MessageSocketType } from '../../_enums/socket_type';
26
26
 
27
27
  // API 기본 URL
28
- const API_BASE_URL = 'https://chat-client-api.lawmance.com';
28
+ const API_BASE_URL = process.env.NEXT_PUBLIC_CHAT_CUSTOMER_API;
29
+ // 'https://chat-client-api.lawmance.com';
29
30
 
30
31
  // API 기본 버전
31
32
  export const DEFAULT_API_VERSION = '1.0.0';
@@ -19,6 +19,12 @@
19
19
  pointer-events: none;
20
20
  }
21
21
 
22
+ .ProseMirror {
23
+ white-space: pre-wrap;
24
+ word-break: break-word;
25
+ overflow-wrap: anywhere;
26
+ }
27
+
22
28
  @layer components {
23
29
 
24
30
  /* Titles */
@@ -2032,6 +2032,10 @@ video {
2032
2032
  aspect-ratio: 110/62;
2033
2033
  }
2034
2034
 
2035
+ .aspect-\[16\/9\] {
2036
+ aspect-ratio: 16/9;
2037
+ }
2038
+
2035
2039
  .aspect-\[6\/11\] {
2036
2040
  aspect-ratio: 6/11;
2037
2041
  }