@dotss/tictoccroc 0.4.2 → 0.5.0
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/Calendar-BOLCHnjh.js +97 -0
- package/dist/TimePicker-BwACyeBR.js +120 -0
- package/dist/convertMdToHtml-Bmk0brLK.js +1431 -0
- package/dist/index.mjs +105 -200
- package/dist/parent/b2b/components/ActionButtons/ActionButtons.mjs +26 -29
- package/dist/parent/b2b/components/ActionButtons/index.mjs +5 -4
- package/dist/parent/b2b/components/BottomNotes/BottomNotes.mjs +37 -35
- package/dist/parent/b2b/components/BottomNotes/index.mjs +5 -4
- package/dist/parent/b2b/components/EmployeeNumberField/EmployeeNumberField.mjs +12 -15
- package/dist/parent/b2b/components/EmployeeNumberField/index.mjs +5 -4
- package/dist/parent/b2b/components/NameField/NameField.mjs +12 -7
- package/dist/parent/b2b/components/NameField/index.mjs +5 -4
- package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.mjs +27 -30
- package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.utils.mjs +7 -8
- package/dist/parent/b2b/components/PhoneNumberField/index.mjs +6 -7
- package/dist/parent/b2b/components/Title/Title.mjs +22 -16
- package/dist/parent/b2b/components/Title/index.mjs +4 -3
- package/dist/parent/b2b/components/TopLogo/TopLogo.mjs +55 -93
- package/dist/parent/b2b/components/TopLogo/index.mjs +5 -4
- package/dist/parent/b2b/components/index.mjs +9 -19
- package/dist/parent/b2b/utils/convertMdToHtml/convertMdToHtml.mjs +2 -1143
- package/dist/parent/b2b/utils/index.mjs +2 -4
- package/dist/parent/notification/components/NotificationCard/NotificationCard.mjs +90 -108
- package/dist/parent/notification/components/NotificationCard/index.mjs +5 -4
- package/dist/parent/notification/components/index.mjs +2 -4
- package/dist/parent/notification/utils/index.mjs +2 -4
- package/dist/parent/notification/utils/sanitize/sanitize.mjs +6 -6
- package/dist/purify.es-D3W4zDrg.js +549 -0
- package/dist/shared/components/Calendar/Calendar.mjs +2 -80
- package/dist/shared/components/Calendar/index.mjs +5 -4
- package/dist/shared/components/Carousel/Carousel.mjs +184 -210
- package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.mjs +10 -7
- package/dist/shared/components/Carousel/CarouselSlide/index.mjs +5 -4
- package/dist/shared/components/Carousel/index.mjs +6 -6
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +151 -183
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.mjs +30 -50
- package/dist/shared/components/ChatKit/BotMessage/index.mjs +6 -8
- package/dist/shared/components/ChatKit/InputBar/InputBar.fallback.mjs +64 -84
- package/dist/shared/components/ChatKit/InputBar/InputBar.mjs +105 -130
- package/dist/shared/components/ChatKit/InputBar/index.mjs +6 -6
- package/dist/shared/components/ChatKit/Message/Message.fallback.mjs +50 -66
- package/dist/shared/components/ChatKit/Message/Message.mjs +178 -276
- package/dist/shared/components/ChatKit/Message/Message.utils.mjs +20 -31
- package/dist/shared/components/ChatKit/Message/index.mjs +7 -9
- package/dist/shared/components/ChatKit/Seperator/Seperator.mjs +31 -27
- package/dist/shared/components/ChatKit/Seperator/index.mjs +4 -3
- package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs +183 -153
- package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.mjs +83 -108
- package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.utils.mjs +5 -5
- package/dist/shared/components/ChatKit/SystemMessage/index.mjs +7 -8
- package/dist/shared/components/ChatKit/UnreadMessagePill/UnreadMessagePill.mjs +49 -54
- package/dist/shared/components/ChatKit/UnreadMessagePill/index.mjs +5 -4
- package/dist/shared/components/ChatKit/index.mjs +13 -29
- package/dist/shared/components/Image/Image.d.ts +2 -0
- package/dist/shared/components/Image/Image.error.mjs +34 -40
- package/dist/shared/components/Image/Image.mjs +247 -289
- package/dist/shared/components/Image/index.mjs +6 -6
- package/dist/shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs +19 -18
- package/dist/shared/components/LoadingAnnouncer/index.mjs +5 -4
- package/dist/shared/components/Masonry/Masonry.mjs +240 -276
- package/dist/shared/components/Masonry/Masonry.utils.mjs +62 -81
- package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.mjs +111 -144
- package/dist/shared/components/Masonry/MasonryBlock/index.mjs +5 -4
- package/dist/shared/components/Masonry/index.mjs +6 -6
- package/dist/shared/components/MediaDialog/MediaBlock/MediaBlock.mjs +54 -69
- package/dist/shared/components/MediaDialog/MediaBlock/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/MediaDialog.mjs +216 -330
- package/dist/shared/components/MediaDialog/MediaDialogContent/MediaDialogContent.mjs +18 -21
- package/dist/shared/components/MediaDialog/MediaDialogContent/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/MediaDialogFooter/MediaDialogFooter.mjs +22 -27
- package/dist/shared/components/MediaDialog/MediaDialogFooter/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/MediaDialogToolbar/MediaDialogToolbar.mjs +15 -21
- package/dist/shared/components/MediaDialog/MediaDialogToolbar/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/index.mjs +9 -12
- package/dist/shared/components/Roller/Roller.mjs +99 -132
- package/dist/shared/components/Roller/RollerBlock/RollerBlock.mjs +9 -6
- package/dist/shared/components/Roller/RollerBlock/index.mjs +5 -4
- package/dist/shared/components/Roller/index.mjs +6 -6
- package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs +22 -30
- package/dist/shared/components/Scheduler/ScheduleBlock/index.mjs +5 -4
- package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs +25 -35
- package/dist/shared/components/Scheduler/ScheduleEvent/index.mjs +5 -4
- package/dist/shared/components/Scheduler/Scheduler.mjs +472 -567
- package/dist/shared/components/Scheduler/Scheduler.utils.mjs +78 -101
- package/dist/shared/components/Scheduler/index.mjs +8 -10
- package/dist/shared/components/Swiper/Swiper.mjs +238 -283
- package/dist/shared/components/Swiper/Swiper.utils.mjs +19 -24
- package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.mjs +14 -17
- package/dist/shared/components/Swiper/SwiperBlock/index.mjs +5 -4
- package/dist/shared/components/Swiper/index.mjs +6 -6
- package/dist/shared/components/TextField/TextField.mjs +44 -55
- package/dist/shared/components/TextField/index.mjs +5 -4
- package/dist/shared/components/TimePicker/TimePicker.mjs +2 -120
- package/dist/shared/components/TimePicker/index.mjs +5 -4
- package/dist/shared/components/index.mjs +36 -75
- package/dist/shared/hooks/index.mjs +4 -8
- package/dist/shared/hooks/useCombineRef/index.mjs +5 -4
- package/dist/shared/hooks/useCombineRef/useCombineRef.mjs +7 -7
- package/dist/shared/hooks/useInView/index.mjs +5 -4
- package/dist/shared/hooks/useInView/useInView.d.ts +2 -1
- package/dist/shared/hooks/useInView/useInView.mjs +37 -47
- package/dist/shared/hooks/useIsomorphicLayoutEffect/index.mjs +5 -4
- package/dist/shared/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +6 -6
- package/dist/shared/typings/common.mjs +6 -4
- package/dist/shared/typings/index.mjs +2 -4
- package/dist/shared/utils/ageToBirthDate/ageToBirthDate.mjs +17 -9
- package/dist/shared/utils/ageToBirthDate/index.mjs +5 -4
- package/dist/shared/utils/birthDateToAge/birthDateToAge.mjs +9 -10
- package/dist/shared/utils/birthDateToAge/index.mjs +4 -3
- package/dist/shared/utils/combineRef/combineRef.mjs +20 -23
- package/dist/shared/utils/combineRef/index.mjs +5 -4
- package/dist/shared/utils/dayFlagToDay/dayFlagToDay.mjs +15 -23
- package/dist/shared/utils/dayFlagToDay/index.mjs +5 -4
- package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.mjs +13 -20
- package/dist/shared/utils/getCareTypeLabel/index.mjs +5 -4
- package/dist/shared/utils/getDateRange/getDateRange.mjs +15 -20
- package/dist/shared/utils/getDateRange/index.mjs +5 -4
- package/dist/shared/utils/getImageUrl/getImageUrl.mjs +7 -17
- package/dist/shared/utils/getImageUrl/index.mjs +5 -6
- package/dist/shared/utils/getTimeRange/getTimeRange.mjs +19 -21
- package/dist/shared/utils/getTimeRange/index.mjs +5 -4
- package/dist/shared/utils/getVimeoId/getVimeoId.mjs +11 -11
- package/dist/shared/utils/getVimeoId/index.mjs +5 -4
- package/dist/shared/utils/index.mjs +18 -36
- package/dist/shared/utils/isAndroid/index.mjs +5 -4
- package/dist/shared/utils/isAndroid/isAndroid.mjs +5 -5
- package/dist/shared/utils/isApp/index.mjs +5 -4
- package/dist/shared/utils/isApp/isApp.mjs +4 -4
- package/dist/shared/utils/isDesktop/index.mjs +5 -4
- package/dist/shared/utils/isDesktop/isDesktop.mjs +15 -15
- package/dist/shared/utils/isIos/index.mjs +5 -4
- package/dist/shared/utils/isIos/isIos.mjs +5 -5
- package/dist/shared/utils/isServer/index.mjs +4 -3
- package/dist/shared/utils/isServer/isServer.mjs +4 -4
- package/dist/shared/utils/objectToQueryString/index.mjs +5 -4
- package/dist/shared/utils/objectToQueryString/objectToQueryString.mjs +7 -8
- package/dist/shared/utils/parseQueryString/index.mjs +4 -3
- package/dist/shared/utils/parseQueryString/parseQueryString.mjs +5 -5
- package/dist/shared/utils/share/index.mjs +5 -4
- package/dist/shared/utils/share/share.mjs +12 -14
- package/dist/teacher/home/components/BannerAccount/BannerAccount.fallback.mjs +19 -11
- package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +83 -99
- package/dist/teacher/home/components/BannerAccount/index.mjs +6 -7
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.fallback.mjs +127 -67
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +68 -82
- package/dist/teacher/home/components/Carousel1Account/index.mjs +6 -7
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.fallback.mjs +112 -94
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +79 -85
- package/dist/teacher/home/components/Carousel2Account/index.mjs +6 -7
- package/dist/teacher/home/components/TextAccount/TextAccount.fallback.mjs +119 -108
- package/dist/teacher/home/components/TextAccount/TextAccount.mjs +91 -111
- package/dist/teacher/home/components/TextAccount/index.mjs +6 -7
- package/dist/teacher/home/components/index.mjs +9 -18
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs +345 -442
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/index.mjs +5 -5
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.mjs +106 -109
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs +54 -58
- package/dist/teacher/profile/components/AbilityCollection/index.mjs +7 -8
- package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.mjs +73 -104
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs +81 -95
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.mjs +4 -3
- package/dist/teacher/profile/components/ActivityGallery/index.mjs +6 -6
- package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs +148 -194
- package/dist/teacher/profile/components/AvailableScheduleSection/index.mjs +5 -4
- package/dist/teacher/profile/components/CareNoteSection/CareNote/CareNote.mjs +61 -53
- package/dist/teacher/profile/components/CareNoteSection/CareNote/index.mjs +5 -4
- package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.mjs +72 -81
- package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.utils.mjs +17 -12
- package/dist/teacher/profile/components/CareNoteSection/index.mjs +6 -6
- package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +108 -134
- package/dist/teacher/profile/components/CareerSection/CareerItem/index.mjs +5 -4
- package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +133 -176
- package/dist/teacher/profile/components/CareerSection/index.mjs +6 -6
- package/dist/teacher/profile/components/CertificateSection/CertificateItem/CertificateItem.mjs +82 -88
- package/dist/teacher/profile/components/CertificateSection/CertificateItem/index.mjs +4 -3
- package/dist/teacher/profile/components/CertificateSection/CertificateSection.mjs +112 -141
- package/dist/teacher/profile/components/CertificateSection/index.mjs +6 -6
- package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs +96 -111
- package/dist/teacher/profile/components/EducationSection/EducationItem/index.mjs +5 -4
- package/dist/teacher/profile/components/EducationSection/EducationSection.mjs +112 -141
- package/dist/teacher/profile/components/EducationSection/index.mjs +6 -6
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs +107 -102
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/index.mjs +5 -4
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs +85 -81
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.mjs +17 -12
- package/dist/teacher/profile/components/ParentReviewSection/index.mjs +7 -8
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.mjs +43 -36
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/index.mjs +4 -3
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.mjs +44 -31
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs +11 -12
- package/dist/teacher/profile/components/PreferredAgeGroup/index.mjs +5 -5
- package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.mjs +348 -433
- package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.utils.mjs +7 -7
- package/dist/teacher/profile/components/ProfileSummary/index.mjs +5 -4
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs +80 -105
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/index.mjs +5 -4
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs +34 -27
- package/dist/teacher/profile/components/StatBadgeCollection/index.mjs +6 -6
- package/dist/teacher/profile/components/index.mjs +24 -48
- package/dist/teacher/profile/utils/index.mjs +2 -4
- package/dist/teacher/profile/utils/sortItems/index.mjs +5 -4
- package/dist/teacher/profile/utils/sortItems/sortItems.mjs +48 -48
- package/package.json +1 -1
- package/dist/purify.es-BGaRrCfO.js +0 -553
|
@@ -1,278 +1,180 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import e from "../../../hooks/useInView/index.mjs";
|
|
2
|
+
import t from "../../Image/index.mjs";
|
|
3
|
+
import { useEffect as n, useImperativeHandle as r, useRef as i } from "react";
|
|
4
|
+
import { Button as a, CircularProgressIndicator as o, Flexbox as s, Icon as c, Menu as l, MenuBlock as u, Typography as d } from "@dotss/ui";
|
|
5
|
+
import f from "@dotss/ui/core/useTheme";
|
|
6
|
+
import p from "dayjs";
|
|
7
|
+
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
5
8
|
import { useCheckHoverPossible as _ } from "@dotss/ui/hooks";
|
|
6
|
-
import { MenuButton as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
backgroundColor: `${c[10]} !important`
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
"&:active": {
|
|
179
|
-
backgroundColor: `${c[10]} !important`
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
children: [
|
|
183
|
-
/* @__PURE__ */ e(
|
|
184
|
-
C,
|
|
185
|
-
{
|
|
186
|
-
name: "ResetLine",
|
|
187
|
-
size: "xSmall",
|
|
188
|
-
color: "grey.70",
|
|
189
|
-
inlineCSS: {
|
|
190
|
-
color: `${c[70]} !important`
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
),
|
|
194
|
-
/* @__PURE__ */ e(
|
|
195
|
-
C,
|
|
196
|
-
{
|
|
197
|
-
name: "CloseLine",
|
|
198
|
-
size: "xSmall",
|
|
199
|
-
color: "etc.red",
|
|
200
|
-
inlineCSS: {
|
|
201
|
-
color: `${K.red} !important`
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
)
|
|
205
|
-
]
|
|
206
|
-
}
|
|
207
|
-
),
|
|
208
|
-
/* @__PURE__ */ n(
|
|
209
|
-
X,
|
|
210
|
-
{
|
|
211
|
-
id: `message-${k}-menu`,
|
|
212
|
-
anchorRef: F,
|
|
213
|
-
open: S,
|
|
214
|
-
onClose: t,
|
|
215
|
-
onChange: O,
|
|
216
|
-
width: 160,
|
|
217
|
-
placement: "bottom-left",
|
|
218
|
-
children: [
|
|
219
|
-
/* @__PURE__ */ e(T, { value: "resend", children: "재전송" }),
|
|
220
|
-
/* @__PURE__ */ e(T, { value: "delete", children: "삭제" })
|
|
221
|
-
]
|
|
222
|
-
}
|
|
223
|
-
)
|
|
224
|
-
] }),
|
|
225
|
-
!f && /* @__PURE__ */ n(
|
|
226
|
-
d,
|
|
227
|
-
{
|
|
228
|
-
flexDirection: "column",
|
|
229
|
-
alignItems: i ? "flex-end" : "flex-start",
|
|
230
|
-
inlineCSS: {
|
|
231
|
-
whiteSpace: "nowrap"
|
|
232
|
-
},
|
|
233
|
-
children: [
|
|
234
|
-
i && g > 0 && l === "SUCCEEDED" && /* @__PURE__ */ e(
|
|
235
|
-
I,
|
|
236
|
-
{
|
|
237
|
-
tag: "span",
|
|
238
|
-
variant: "c5B",
|
|
239
|
-
"aria-hidden": !0,
|
|
240
|
-
inlineCSS: {
|
|
241
|
-
color: p.primary.text
|
|
242
|
-
},
|
|
243
|
-
children: g
|
|
244
|
-
}
|
|
245
|
-
),
|
|
246
|
-
i && g > 0 && l === "PENDING" && /* @__PURE__ */ e(
|
|
247
|
-
Y,
|
|
248
|
-
{
|
|
249
|
-
size: "small",
|
|
250
|
-
loop: !0,
|
|
251
|
-
inlineCSS: {
|
|
252
|
-
width: 12,
|
|
253
|
-
height: 12
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
),
|
|
257
|
-
/* @__PURE__ */ e(
|
|
258
|
-
I,
|
|
259
|
-
{
|
|
260
|
-
tag: "span",
|
|
261
|
-
variant: "c5R",
|
|
262
|
-
color: "etc.dimmed01",
|
|
263
|
-
inlineCSS: {
|
|
264
|
-
display: R ? void 0 : "none"
|
|
265
|
-
},
|
|
266
|
-
children: V($).format("A h:mm")
|
|
267
|
-
}
|
|
268
|
-
)
|
|
269
|
-
]
|
|
270
|
-
}
|
|
271
|
-
)
|
|
272
|
-
]
|
|
273
|
-
}
|
|
274
|
-
);
|
|
9
|
+
import { MenuButton as v } from "@dotss/ui/Menu";
|
|
10
|
+
//#region shared/components/ChatKit/Message/Message.tsx
|
|
11
|
+
function y({ id: y, content: b = "", mine: x = !1, avatarUrl: S = "", unreadUserCount: C = 0, regDatetime: w, status: T, onView: E, openMenu: D, onClickAvatar: O, onCloseMenu: k, onClickMenu: A, onResend: j, onDelete: M, onViewAll: N, showAvatar: P, showTime: F, ref: I, inlineCSS: L, ...R }) {
|
|
12
|
+
let { palette: { brand: z, grey: B, etc: V }, spacing: H } = f(), { isHoverPossible: U } = _(), W = i(null), G = i(null), K = i(null);
|
|
13
|
+
r(I, () => W.current);
|
|
14
|
+
let q = e(W), J = T === "FAILED", Y = b.length > 300, X = (e) => {
|
|
15
|
+
e === "resend" ? (k?.(), K.current = setTimeout(() => {
|
|
16
|
+
j?.();
|
|
17
|
+
}, 200)) : e === "delete" && (k?.(), K.current = setTimeout(() => {
|
|
18
|
+
M?.();
|
|
19
|
+
}, 200));
|
|
20
|
+
}, Z = (e) => {
|
|
21
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.currentTarget.click());
|
|
22
|
+
};
|
|
23
|
+
return n(() => {
|
|
24
|
+
q && E?.();
|
|
25
|
+
}, [q, E]), n(() => {
|
|
26
|
+
J && W?.current?.scrollIntoView();
|
|
27
|
+
}, [J]), n(() => () => {
|
|
28
|
+
K.current && clearTimeout(K.current);
|
|
29
|
+
}, []), /* @__PURE__ */ g(s, {
|
|
30
|
+
ref: W,
|
|
31
|
+
alignItems: "flex-end",
|
|
32
|
+
flexDirection: x ? "row-reverse" : "row",
|
|
33
|
+
pl: 4,
|
|
34
|
+
pr: 4,
|
|
35
|
+
gap: 1,
|
|
36
|
+
"aria-busy": T === "PENDING",
|
|
37
|
+
...R,
|
|
38
|
+
inlineCSS: {
|
|
39
|
+
cursor: T === "PENDING" ? "wait" : "default",
|
|
40
|
+
overflowAnchor: "none",
|
|
41
|
+
...L
|
|
42
|
+
},
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ g(s, {
|
|
45
|
+
alignItems: "flex-start",
|
|
46
|
+
gap: 2.5,
|
|
47
|
+
children: [!x && P && S && /* @__PURE__ */ h(s, {
|
|
48
|
+
role: typeof O == "function" ? "button" : void 0,
|
|
49
|
+
tabIndex: typeof O == "function" ? 0 : -1,
|
|
50
|
+
onClick: O,
|
|
51
|
+
onKeyDown: Z,
|
|
52
|
+
"aria-label": typeof O == "function" ? "선생님 프로필 보기" : void 0,
|
|
53
|
+
inlineCSS: {
|
|
54
|
+
position: "relative",
|
|
55
|
+
overflow: "hidden",
|
|
56
|
+
minWidth: 32,
|
|
57
|
+
cursor: typeof O == "function" ? "pointer" : void 0
|
|
58
|
+
},
|
|
59
|
+
children: /* @__PURE__ */ h(t, {
|
|
60
|
+
src: S,
|
|
61
|
+
width: 32,
|
|
62
|
+
height: 32,
|
|
63
|
+
borderRadius: "50%",
|
|
64
|
+
alt: "선생님 프로필 사진",
|
|
65
|
+
role: "presentation",
|
|
66
|
+
enableFallback: !0,
|
|
67
|
+
style: { objectFit: "cover" }
|
|
68
|
+
})
|
|
69
|
+
}), /* @__PURE__ */ g(s, {
|
|
70
|
+
pt: 2,
|
|
71
|
+
pb: 2,
|
|
72
|
+
pl: 3,
|
|
73
|
+
pr: 3,
|
|
74
|
+
ml: !x && !P && S ? 10.5 : void 0,
|
|
75
|
+
flexDirection: "column",
|
|
76
|
+
gap: 2.5,
|
|
77
|
+
inlineCSS: {
|
|
78
|
+
borderRadius: 12,
|
|
79
|
+
backgroundColor: x ? z.primary.pageControl : B[10]
|
|
80
|
+
},
|
|
81
|
+
children: [/* @__PURE__ */ h(d, {
|
|
82
|
+
tag: "p",
|
|
83
|
+
variant: "b3R",
|
|
84
|
+
inlineCSS: {
|
|
85
|
+
whiteSpace: "pre-wrap",
|
|
86
|
+
wordBreak: "break-all",
|
|
87
|
+
userSelect: "text",
|
|
88
|
+
"& *": { userSelect: "text" }
|
|
89
|
+
},
|
|
90
|
+
children: Y ? b.slice(0, 300) + "..." : b
|
|
91
|
+
}), Y && /* @__PURE__ */ h(a, {
|
|
92
|
+
variant: "text",
|
|
93
|
+
size: "xSmall",
|
|
94
|
+
endAdornment: /* @__PURE__ */ h(c, { name: "ChevronRightLine" }),
|
|
95
|
+
onClick: N,
|
|
96
|
+
inlineCSS: {
|
|
97
|
+
marginLeft: "auto",
|
|
98
|
+
"&:active:not([aria-disabled=\"true\"])": { backgroundColor: z.primary.main },
|
|
99
|
+
...U && { "&:hover:not([aria-disabled=\"true\"])": { backgroundColor: z.primary.main } }
|
|
100
|
+
},
|
|
101
|
+
children: "전체보기"
|
|
102
|
+
})]
|
|
103
|
+
})]
|
|
104
|
+
}),
|
|
105
|
+
J && /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g(v, {
|
|
106
|
+
ref: G,
|
|
107
|
+
isMenuOpen: !!D,
|
|
108
|
+
menuId: `message-${y}-menu`,
|
|
109
|
+
onClick: A,
|
|
110
|
+
size: "xSmall",
|
|
111
|
+
inlineCSS: {
|
|
112
|
+
padding: H.content(.5),
|
|
113
|
+
gap: H.content(.5),
|
|
114
|
+
borderRadius: 200,
|
|
115
|
+
backgroundColor: D ? B[10] : "transparent",
|
|
116
|
+
cursor: "pointer",
|
|
117
|
+
...U && { "&:hover": { backgroundColor: `${B[10]} !important` } },
|
|
118
|
+
"&:active": { backgroundColor: `${B[10]} !important` }
|
|
119
|
+
},
|
|
120
|
+
children: [/* @__PURE__ */ h(c, {
|
|
121
|
+
name: "ResetLine",
|
|
122
|
+
size: "xSmall",
|
|
123
|
+
color: "grey.70",
|
|
124
|
+
inlineCSS: { color: `${B[70]} !important` }
|
|
125
|
+
}), /* @__PURE__ */ h(c, {
|
|
126
|
+
name: "CloseLine",
|
|
127
|
+
size: "xSmall",
|
|
128
|
+
color: "etc.red",
|
|
129
|
+
inlineCSS: { color: `${V.red} !important` }
|
|
130
|
+
})]
|
|
131
|
+
}), /* @__PURE__ */ g(l, {
|
|
132
|
+
id: `message-${y}-menu`,
|
|
133
|
+
anchorRef: G,
|
|
134
|
+
open: D,
|
|
135
|
+
onClose: k,
|
|
136
|
+
onChange: X,
|
|
137
|
+
width: 160,
|
|
138
|
+
placement: "bottom-left",
|
|
139
|
+
children: [/* @__PURE__ */ h(u, {
|
|
140
|
+
value: "resend",
|
|
141
|
+
children: "재전송"
|
|
142
|
+
}), /* @__PURE__ */ h(u, {
|
|
143
|
+
value: "delete",
|
|
144
|
+
children: "삭제"
|
|
145
|
+
})]
|
|
146
|
+
})] }),
|
|
147
|
+
!J && /* @__PURE__ */ g(s, {
|
|
148
|
+
flexDirection: "column",
|
|
149
|
+
alignItems: x ? "flex-end" : "flex-start",
|
|
150
|
+
inlineCSS: { whiteSpace: "nowrap" },
|
|
151
|
+
children: [
|
|
152
|
+
x && C > 0 && T === "SUCCEEDED" && /* @__PURE__ */ h(d, {
|
|
153
|
+
tag: "span",
|
|
154
|
+
variant: "c5B",
|
|
155
|
+
"aria-hidden": !0,
|
|
156
|
+
inlineCSS: { color: z.primary.text },
|
|
157
|
+
children: C
|
|
158
|
+
}),
|
|
159
|
+
x && C > 0 && T === "PENDING" && /* @__PURE__ */ h(o, {
|
|
160
|
+
size: "small",
|
|
161
|
+
loop: !0,
|
|
162
|
+
inlineCSS: {
|
|
163
|
+
width: 12,
|
|
164
|
+
height: 12
|
|
165
|
+
}
|
|
166
|
+
}),
|
|
167
|
+
/* @__PURE__ */ h(d, {
|
|
168
|
+
tag: "span",
|
|
169
|
+
variant: "c5R",
|
|
170
|
+
color: "etc.dimmed01",
|
|
171
|
+
inlineCSS: { display: F ? void 0 : "none" },
|
|
172
|
+
children: p(w).format("A h:mm")
|
|
173
|
+
})
|
|
174
|
+
]
|
|
175
|
+
})
|
|
176
|
+
]
|
|
177
|
+
});
|
|
275
178
|
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
};
|
|
179
|
+
//#endregion
|
|
180
|
+
export { y as default };
|
|
@@ -1,33 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}))
|
|
18
|
-
];
|
|
19
|
-
});
|
|
1
|
+
import e from "dayjs";
|
|
2
|
+
//#region shared/components/ChatKit/Message/Message.utils.ts
|
|
3
|
+
function t(e) {
|
|
4
|
+
return e.map(([e, t]) => {
|
|
5
|
+
let n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
|
|
6
|
+
for (let e = 0; e < t.length; e += 1) {
|
|
7
|
+
let o = t[e], s = o.senderId, c = t[e - 1], l = t[e + 1];
|
|
8
|
+
s == null || o.status === "FAILED" || o.type !== "USER" || (c && c?.senderId !== s && a.set(`${s}-${o.id}`, o.id), l && l?.senderId !== s && i.set(`${s}-${o.id}`, o.id), n.has(s) || n.set(s, o.id), r.set(s, o.id));
|
|
9
|
+
}
|
|
10
|
+
let o = new Set(n.values()), s = new Set(r.values()), c = new Set(i.values()), l = new Set(a.values());
|
|
11
|
+
return [e, t.map((e) => ({
|
|
12
|
+
...e,
|
|
13
|
+
isFirstInGroup: s.has(e.id) || c.has(e.id),
|
|
14
|
+
isLastInGroup: o.has(e.id) || l.has(e.id)
|
|
15
|
+
}))];
|
|
16
|
+
});
|
|
20
17
|
}
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
status: c,
|
|
24
|
-
unreadUserCount: s,
|
|
25
|
-
content: r,
|
|
26
|
-
regDatetime: e
|
|
27
|
-
}) {
|
|
28
|
-
return `${a ? "나" : "상대방"}, ${r}, ${s && s > 0 ? "읽지 않음" : "읽음"}, ${c === "SUCCEEDED" ? "전송됨" : "전송 실패"}, ${w(e).format("YYYY년 MM월 DD일 A h:mm")}`;
|
|
18
|
+
function n({ mine: t, status: n, unreadUserCount: r, content: i, regDatetime: a }) {
|
|
19
|
+
return `${t ? "나" : "상대방"}, ${i}, ${r && r > 0 ? "읽지 않음" : "읽음"}, ${n === "SUCCEEDED" ? "전송됨" : "전송 실패"}, ${e(a).format("YYYY년 MM월 DD일 A h:mm")}`;
|
|
29
20
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
h as markMessageGroupBoundaries
|
|
33
|
-
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { n as getMessageLabel, t as markMessageGroupBoundaries };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { getMessageLabel as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
g as markMessageGroupBoundaries
|
|
9
|
-
};
|
|
1
|
+
import e from "./Message.mjs";
|
|
2
|
+
import t from "./Message.fallback.mjs";
|
|
3
|
+
import { getMessageLabel as n, markMessageGroupBoundaries as r } from "./Message.utils.mjs";
|
|
4
|
+
//#region shared/components/ChatKit/Message/index.ts
|
|
5
|
+
var i = e;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { t as MessageFallback, i as default, n as getMessageLabel, r as markMessageGroupBoundaries };
|
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Flexbox as o, Typography as i } from "@dotss/ui";
|
|
1
|
+
import { Flexbox as e, Typography as t } from "@dotss/ui";
|
|
3
2
|
import n from "@dotss/ui/core/useTheme";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
3
|
+
import r from "dayjs";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
//#region shared/components/ChatKit/Seperator/Seperator.tsx
|
|
6
|
+
function a({ date: a, ...o }) {
|
|
7
|
+
let { palette: { grey: s } } = n();
|
|
8
|
+
return /* @__PURE__ */ i(e, {
|
|
9
|
+
role: "separator",
|
|
10
|
+
...o,
|
|
11
|
+
children: /* @__PURE__ */ i(e, {
|
|
12
|
+
pt: .5,
|
|
13
|
+
pb: .5,
|
|
14
|
+
pl: 2,
|
|
15
|
+
pr: 2,
|
|
16
|
+
inlineCSS: {
|
|
17
|
+
maxWidth: "fit-content",
|
|
18
|
+
marginLeft: "auto",
|
|
19
|
+
marginRight: "auto",
|
|
20
|
+
borderRadius: 20,
|
|
21
|
+
backgroundColor: s[10]
|
|
22
|
+
},
|
|
23
|
+
children: /* @__PURE__ */ i(t, {
|
|
24
|
+
tag: "p",
|
|
25
|
+
variant: "c3M",
|
|
26
|
+
color: "grey.70",
|
|
27
|
+
children: r(a).format("YYYY년 M월 D일 dddd")
|
|
28
|
+
})
|
|
29
|
+
})
|
|
30
|
+
});
|
|
26
31
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { a as default };
|