@dotss/tictoccroc 0.7.1 → 0.8.1
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/index.mjs +18 -18
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.d.ts +3 -25
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +55 -74
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.d.ts +3 -13
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.mjs +7 -64
- package/dist/shared/components/ChatKit/BotMessage/index.d.ts +3 -3
- package/dist/shared/components/ChatKit/BotMessage/index.mjs +4 -4
- package/dist/shared/components/ChatKit/index.mjs +7 -7
- package/dist/shared/components/index.mjs +7 -7
- package/dist/shared/utils/index.mjs +11 -11
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -83,23 +83,23 @@ import we from "./shared/components/ChatKit/Message/index.mjs";
|
|
|
83
83
|
import Te from "./shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs";
|
|
84
84
|
import { getSystemMessageLabel as Ee } from "./shared/components/ChatKit/SystemMessage/SystemMessage.utils.mjs";
|
|
85
85
|
import De from "./shared/components/ChatKit/SystemMessage/index.mjs";
|
|
86
|
-
import Oe from "./shared/
|
|
87
|
-
import
|
|
88
|
-
import
|
|
89
|
-
import
|
|
90
|
-
import
|
|
91
|
-
import
|
|
92
|
-
import
|
|
93
|
-
import Le from "./parent/b2b/components/TopLogo/index.mjs";
|
|
86
|
+
import { getBotMessageLabel as Oe, getCtaButtonText as ke } from "./shared/components/ChatKit/BotMessage/BotMessage.utils.mjs";
|
|
87
|
+
import Ae from "./shared/components/ChatKit/BotMessage/index.mjs";
|
|
88
|
+
import je from "./shared/components/ChatKit/InputBar/InputBar.fallback.mjs";
|
|
89
|
+
import Me from "./shared/components/ChatKit/InputBar/index.mjs";
|
|
90
|
+
import Ne from "./shared/components/ChatKit/Seperator/index.mjs";
|
|
91
|
+
import Pe from "./shared/components/ChatKit/UnreadMessagePill/index.mjs";
|
|
92
|
+
import Fe from "./parent/b2b/components/TopLogo/index.mjs";
|
|
94
93
|
import "./parent/b2b/components/index.mjs";
|
|
95
|
-
import
|
|
96
|
-
import
|
|
97
|
-
import
|
|
98
|
-
import
|
|
99
|
-
import
|
|
100
|
-
import
|
|
101
|
-
import
|
|
102
|
-
import
|
|
103
|
-
import
|
|
94
|
+
import Ie from "./shared/utils/isAndroid/index.mjs";
|
|
95
|
+
import Le from "./shared/utils/isIos/index.mjs";
|
|
96
|
+
import Re from "./shared/utils/isApp/index.mjs";
|
|
97
|
+
import ze from "./shared/utils/isDesktop/index.mjs";
|
|
98
|
+
import Be from "./shared/utils/ageToBirthDate/index.mjs";
|
|
99
|
+
import Ve from "./shared/utils/objectToQueryString/index.mjs";
|
|
100
|
+
import He from "./shared/utils/getVimeoId/index.mjs";
|
|
101
|
+
import Ue from "./shared/utils/parseQueryString/index.mjs";
|
|
102
|
+
import We from "./shared/utils/share/index.mjs";
|
|
103
|
+
import Ge from "./shared/utils/getCareTypeLabel/index.mjs";
|
|
104
104
|
import "./shared/utils/index.mjs";
|
|
105
|
-
export { T as AbilityBadge, E as AbilityCollection, oe as ActionButtons, m as ActivityGallery, f as ActivityGalleryItem, P as AvailableScheduleSection, ne as BannerAccount, te as BannerAccountFallback,
|
|
105
|
+
export { T as AbilityBadge, E as AbilityCollection, oe as ActionButtons, m as ActivityGallery, f as ActivityGalleryItem, P as AvailableScheduleSection, ne as BannerAccount, te as BannerAccountFallback, Ae as BotMessage, se as BottomNotes, be as Calendar, L as CareNote, z as CareNoteSection, _ as CareerItem, v as CareerSection, q as Carousel, Y as Carousel1Account, J as Carousel1AccountFallback, Z as Carousel2Account, X as Carousel2AccountFallback, K as CarouselSlide, h as CertificateItem, g as CertificateSection, Te as DirectTradeRiskInfoBottomSheet, y as EducationItem, b as EducationSection, le as EmployeeNumberField, a as Image, i as ImageError, Me as InputBar, je as InputBarFallback, U as LoadingAnnouncer, p as Masonry, l as MasonryBlock, $ as MediaBlock, ve as MediaDialog, he as MediaDialogContent, ge as MediaDialogFooter, _e as MediaDialogToolbar, we as Message, xe as MessageFallback, ue as NameField, ie as NotificationCard, V as ParentReviewCard, H as ParentReviewSection, pe as PhoneNumberField, x as PreferredActivityKeywordGroup, C as PreferredAgeGroup, o as ProfileSummary, R as Roller, F as RollerBlock, M as ScheduleBlock, D as ScheduleEvent, N as Scheduler, Ne as Seperator, s as StatBadge, c as StatBadgeCollection, ee as Swiper, Q as SwiperBlock, De as SystemMessage, G as TextAccount, W as TextAccountFallback, ce as TextField, ye as TimePicker, me as Title, Fe as TopLogo, Pe as UnreadMessagePill, Be as ageToBirthDate, I as birthDateToAge, u as combineRef, ae as convertMdToHtml, O as dayFlagToDay, w as getAbilityCollection, j as getAvailableDateRange, Oe as getBotMessageLabel, Ge as getCareTypeLabel, B as getChildLabel, ke as getCtaButtonText, k as getDateRange, r as getImageUrl, Se as getMessageLabel, S as getPreferredAgeKeywords, Ee as getSystemMessageLabel, A as getTimeRange, He as getVimeoId, Ie as isAndroid, Re as isApp, ze as isDesktop, Le as isIos, t as isServer, de as isSuccess, fe as isValid, Ce as markMessageGroupBoundaries, Ve as objectToQueryString, Ue as parseQueryString, re as sanitize, We as share, d as useCombineRef, e as useInView, n as useIsomorphicLayoutEffect };
|
|
@@ -1,28 +1,8 @@
|
|
|
1
1
|
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
2
|
-
export type BotMessageType = 'TEACHER_INQUIRED' | 'PARENT_CHANGED_OFFER_SCHEDULE' | 'PARENT_CHANGED_MATCHING_SCHEDULE' | 'TEACHER_APPLIED' | 'PARENT_SENT_OFFER' | 'KOK_MATCHING_SUCCEEDED' | 'APPLICATION_MATCHING_SUCCEEDED' | 'ASSIGNMENT_MATCHING_SUCCEEDED' | 'PARENT_REJECTED_APPLICATION' | 'TEACHER_REFUSED_OFFER' | 'PARENT_CANCELED_MATCHING' | 'TEACHER_CANCELED_MATCHING' | 'TEACHER_COMPLETED_CARE' | 'ADMIN_CANCELED_MATCHING' | 'AUTO_MATCHING_SUCCEEDED' | 'PLAY_CONTENT_RECOMMENDED' | 'PARENT_REQUESTED_MATCHING_SCHEDULE_CHANGE' | 'TEACHER_ACCEPTED_MATCHING_SCHEDULE_CHANGE' | 'TEACHER_REFUSED_MATCHING_SCHEDULE_CHANGE' | 'MATCHING_SCHEDULE_CHANGE_EXPIRED' | 'ADMIN_CANCELED_OFFER';
|
|
3
|
-
export type BotMessageCtaType = 'MY_CLASS_CHECK' | 'OFFER_CHECK' | 'CHANGE_INFO_CHECK' | 'MY_APPLICATION_INFO_VIEW' | 'CARE_NOTE_CHECK' | 'TEACHER_SELECTION' | 'PLAY_CONTENT_EXPLORE';
|
|
2
|
+
export type BotMessageType = 'TEACHER_INQUIRED' | 'PARENT_CHANGED_OFFER_SCHEDULE' | 'PARENT_CHANGED_MATCHING_SCHEDULE' | 'TEACHER_APPLIED' | 'PARENT_SENT_OFFER' | 'KOK_MATCHING_SUCCEEDED' | 'APPLICATION_MATCHING_SUCCEEDED' | 'ASSIGNMENT_MATCHING_SUCCEEDED' | 'PARENT_REJECTED_APPLICATION' | 'TEACHER_REFUSED_OFFER' | 'PARENT_CANCELED_MATCHING' | 'TEACHER_CANCELED_MATCHING' | 'TEACHER_COMPLETED_CARE' | 'ADMIN_CANCELED_MATCHING' | 'AUTO_MATCHING_SUCCEEDED' | 'PLAY_CONTENT_RECOMMENDED' | 'PARENT_REQUESTED_MATCHING_SCHEDULE_CHANGE' | 'TEACHER_ACCEPTED_MATCHING_SCHEDULE_CHANGE' | 'TEACHER_REFUSED_MATCHING_SCHEDULE_CHANGE' | 'MATCHING_SCHEDULE_CHANGE_EXPIRED' | 'ADMIN_CANCELED_OFFER' | 'TEACHER_BECAME_ROOKIE';
|
|
3
|
+
export type BotMessageCtaType = 'MY_CLASS_CHECK' | 'OFFER_CHECK' | 'CHANGE_INFO_CHECK' | 'MY_APPLICATION_INFO_VIEW' | 'CARE_NOTE_CHECK' | 'TEACHER_SELECTION' | 'PLAY_CONTENT_EXPLORE' | 'ACTIVITY_GUIDEBOOK_VIEW';
|
|
4
4
|
export type BotMessageCtaTargetTable = 'OFFER' | 'MATCHING';
|
|
5
5
|
export type BotMessageSubCtaTargetTable = 'OFFER' | 'MATCHING';
|
|
6
|
-
export interface BotMessageOffer {
|
|
7
|
-
careStartDate: string;
|
|
8
|
-
careStartTime: string;
|
|
9
|
-
firstCareType: string;
|
|
10
|
-
secondCareType: string;
|
|
11
|
-
totalCareCount: number;
|
|
12
|
-
representativeChildName?: string | null;
|
|
13
|
-
childCount?: number | null;
|
|
14
|
-
}
|
|
15
|
-
export interface BotMessageMatching {
|
|
16
|
-
careStartDate?: string | null;
|
|
17
|
-
careStartTime?: string | null;
|
|
18
|
-
changeReqDate?: string | null;
|
|
19
|
-
changeReqStartTime?: string | null;
|
|
20
|
-
changeReqEndTime?: string | null;
|
|
21
|
-
firstCareType?: string | null;
|
|
22
|
-
secondCareType?: string | null;
|
|
23
|
-
representativeChildName?: string | null;
|
|
24
|
-
childCount?: number | null;
|
|
25
|
-
}
|
|
26
6
|
export interface BotMessageProps extends Omit<FlexboxProps, 'id' | 'title'> {
|
|
27
7
|
id: string | number;
|
|
28
8
|
botMessageType: BotMessageType;
|
|
@@ -36,8 +16,6 @@ export interface BotMessageProps extends Omit<FlexboxProps, 'id' | 'title'> {
|
|
|
36
16
|
title?: string | null;
|
|
37
17
|
content: string;
|
|
38
18
|
unreadUserCount: number;
|
|
39
|
-
offer: BotMessageOffer | null;
|
|
40
|
-
matchings?: BotMessageMatching[] | null;
|
|
41
19
|
botMessageHeaderImageUrl?: string | null;
|
|
42
20
|
regDatetime: string;
|
|
43
21
|
onAction?: (params: {
|
|
@@ -50,5 +28,5 @@ export interface BotMessageProps extends Omit<FlexboxProps, 'id' | 'title'> {
|
|
|
50
28
|
}) => void;
|
|
51
29
|
onView?: () => void;
|
|
52
30
|
}
|
|
53
|
-
declare function BotMessage({ id, botMessageType, ctaType, ctaTargetId, ctaTargetTable, subCtaTargetTable, subCtaTargetId, mine, avatarUrl, title, content, unreadUserCount,
|
|
31
|
+
declare function BotMessage({ id, botMessageType, ctaType, ctaTargetId, ctaTargetTable, subCtaTargetTable, subCtaTargetId, mine, avatarUrl, title, content, unreadUserCount, botMessageHeaderImageUrl, regDatetime, onAction, onView, inlineCSS, ...props }: BotMessageProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
54
32
|
export default BotMessage;
|
|
@@ -1,85 +1,81 @@
|
|
|
1
1
|
import e from "../../../hooks/useInView/index.mjs";
|
|
2
2
|
import t from "../../Image/index.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { useEffect as
|
|
5
|
-
import { Button as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { jsx as
|
|
3
|
+
import { getCtaButtonText as n } from "./BotMessage.utils.mjs";
|
|
4
|
+
import { useEffect as r, useRef as i } from "react";
|
|
5
|
+
import { Button as a, Flexbox as o, Typography as s } from "@dotss/ui";
|
|
6
|
+
import c from "@dotss/ui/core/useTheme";
|
|
7
|
+
import l from "dayjs";
|
|
8
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
9
9
|
//#region shared/components/ChatKit/BotMessage/BotMessage.tsx
|
|
10
|
-
function
|
|
11
|
-
let { palette: { brand:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
ctaTargetId: g,
|
|
19
|
-
ctaTargetTable: _,
|
|
20
|
-
subCtaTargetTable: v,
|
|
21
|
-
subCtaTargetId: y
|
|
10
|
+
function f({ id: f, botMessageType: p, ctaType: m, ctaTargetId: h, ctaTargetTable: g, subCtaTargetTable: _, subCtaTargetId: v, mine: y, avatarUrl: b, title: x, content: S, unreadUserCount: C, botMessageHeaderImageUrl: w, regDatetime: T, onAction: E, onView: D, inlineCSS: O, ...k }) {
|
|
11
|
+
let { palette: { brand: A, grey: j }, spacing: M } = c(), N = i(null), { isInView: P } = e(N), F = n(m), I = () => E?.({
|
|
12
|
+
botMessageType: p,
|
|
13
|
+
ctaType: m,
|
|
14
|
+
ctaTargetId: h,
|
|
15
|
+
ctaTargetTable: g,
|
|
16
|
+
subCtaTargetTable: _,
|
|
17
|
+
subCtaTargetId: v
|
|
22
18
|
});
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
}, [
|
|
26
|
-
ref:
|
|
19
|
+
return r(() => {
|
|
20
|
+
P && D?.();
|
|
21
|
+
}, [P, D]), /* @__PURE__ */ d(o, {
|
|
22
|
+
ref: N,
|
|
27
23
|
alignItems: "flex-end",
|
|
28
24
|
justifyContent: "flex-end",
|
|
29
25
|
gap: 1,
|
|
30
26
|
pl: 4,
|
|
31
27
|
pr: 4,
|
|
32
|
-
flexDirection:
|
|
33
|
-
...
|
|
28
|
+
flexDirection: y ? "row" : "row-reverse",
|
|
29
|
+
...k,
|
|
34
30
|
inlineCSS: {
|
|
35
31
|
overflowAnchor: "none",
|
|
36
|
-
...
|
|
32
|
+
...O
|
|
37
33
|
},
|
|
38
34
|
children: [
|
|
39
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ u(s, {
|
|
40
36
|
visuallyHidden: !0,
|
|
41
37
|
children: "안내"
|
|
42
38
|
}),
|
|
43
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ d(o, {
|
|
44
40
|
flexDirection: "column",
|
|
45
|
-
alignItems:
|
|
41
|
+
alignItems: y ? "flex-end" : "flex-start",
|
|
46
42
|
inlineCSS: { whiteSpace: "nowrap" },
|
|
47
|
-
children: [
|
|
43
|
+
children: [y && C > 0 && /* @__PURE__ */ u(s, {
|
|
48
44
|
tag: "span",
|
|
49
45
|
variant: "c5B",
|
|
50
46
|
"aria-hidden": !0,
|
|
51
|
-
inlineCSS: { color:
|
|
52
|
-
children:
|
|
53
|
-
}), /* @__PURE__ */
|
|
47
|
+
inlineCSS: { color: A.primary.text },
|
|
48
|
+
children: C
|
|
49
|
+
}), /* @__PURE__ */ u(s, {
|
|
54
50
|
tag: "span",
|
|
55
51
|
variant: "c5R",
|
|
56
52
|
color: "etc.dimmed01",
|
|
57
53
|
"aria-hidden": !0,
|
|
58
54
|
inlineCSS: { whiteSpace: "nowrap" },
|
|
59
|
-
children:
|
|
55
|
+
children: l(T).format("A h:mm")
|
|
60
56
|
})]
|
|
61
57
|
}),
|
|
62
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ d(o, {
|
|
63
59
|
alignItems: "flex-start",
|
|
64
60
|
gap: 2,
|
|
65
61
|
"aria-hidden": !0,
|
|
66
|
-
children: [
|
|
67
|
-
src:
|
|
62
|
+
children: [b && /* @__PURE__ */ u(t, {
|
|
63
|
+
src: b,
|
|
68
64
|
width: 32,
|
|
69
65
|
height: 32,
|
|
70
66
|
alt: "째깍악어 선생님 심볼",
|
|
71
67
|
role: "presentation"
|
|
72
|
-
}), /* @__PURE__ */
|
|
68
|
+
}), /* @__PURE__ */ d(o, {
|
|
73
69
|
flexDirection: "column",
|
|
74
70
|
inlineCSS: {
|
|
75
71
|
width: 240,
|
|
76
|
-
backgroundColor:
|
|
72
|
+
backgroundColor: j.white,
|
|
77
73
|
borderRadius: 12,
|
|
78
|
-
border: `1px solid ${
|
|
74
|
+
border: `1px solid ${j[20]}`,
|
|
79
75
|
overflow: "hidden"
|
|
80
76
|
},
|
|
81
|
-
children: [
|
|
82
|
-
src:
|
|
77
|
+
children: [w && /* @__PURE__ */ u(t, {
|
|
78
|
+
src: w,
|
|
83
79
|
width: 240,
|
|
84
80
|
height: 120,
|
|
85
81
|
withIntrinsicRatio: !0,
|
|
@@ -87,49 +83,34 @@ function p({ id: p, botMessageType: m, ctaType: h, ctaTargetId: g, ctaTargetTabl
|
|
|
87
83
|
enableFallback: !0,
|
|
88
84
|
alt: "봇 메시지 안내 이미지",
|
|
89
85
|
role: "presentation"
|
|
90
|
-
}), /* @__PURE__ */
|
|
86
|
+
}), /* @__PURE__ */ d(o, {
|
|
91
87
|
p: 4,
|
|
92
88
|
flexDirection: "column",
|
|
93
89
|
children: [
|
|
94
|
-
|
|
90
|
+
x && /* @__PURE__ */ u(s, {
|
|
95
91
|
tag: "p",
|
|
96
92
|
variant: "h4B",
|
|
97
|
-
children:
|
|
93
|
+
children: x
|
|
98
94
|
}),
|
|
99
|
-
|
|
95
|
+
S && /* @__PURE__ */ u(s, {
|
|
100
96
|
tag: "p",
|
|
101
97
|
variant: "b2R",
|
|
102
|
-
inlineCSS: {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
inlineCSS: { marginTop: F.content(6) },
|
|
108
|
-
children: z.map((e) => /* @__PURE__ */ f(c, {
|
|
109
|
-
tag: "div",
|
|
110
|
-
variant: "b2R",
|
|
111
|
-
children: [/* @__PURE__ */ d(c, {
|
|
112
|
-
tag: "dt",
|
|
113
|
-
visuallyHidden: e.hideLabel,
|
|
114
|
-
inlineCSS: { display: "inline" },
|
|
115
|
-
children: e.hideLabel ? e.label : `■ ${e.label} : `
|
|
116
|
-
}), /* @__PURE__ */ d(c, {
|
|
117
|
-
tag: "dd",
|
|
118
|
-
inlineCSS: { display: "inline" },
|
|
119
|
-
children: e.hideLabel ? `■ ${e.value}` : e.value
|
|
120
|
-
})]
|
|
121
|
-
}, e.label))
|
|
98
|
+
inlineCSS: {
|
|
99
|
+
marginTop: x ? M.content(1) : void 0,
|
|
100
|
+
whiteSpace: "pre-line"
|
|
101
|
+
},
|
|
102
|
+
children: S
|
|
122
103
|
}),
|
|
123
|
-
|
|
124
|
-
onClick:
|
|
104
|
+
F && /* @__PURE__ */ u(a, {
|
|
105
|
+
onClick: I,
|
|
125
106
|
inlineCSS: {
|
|
126
|
-
marginTop:
|
|
127
|
-
backgroundColor:
|
|
128
|
-
color:
|
|
129
|
-
"&:hover:not([aria-disabled=\"true\"])": { backgroundColor:
|
|
130
|
-
"&:active:not([aria-disabled=\"true\"])": { backgroundColor:
|
|
107
|
+
marginTop: M.content(4),
|
|
108
|
+
backgroundColor: j[10],
|
|
109
|
+
color: j[100],
|
|
110
|
+
"&:hover:not([aria-disabled=\"true\"])": { backgroundColor: j[10] },
|
|
111
|
+
"&:active:not([aria-disabled=\"true\"])": { backgroundColor: j[10] }
|
|
131
112
|
},
|
|
132
|
-
children:
|
|
113
|
+
children: F
|
|
133
114
|
})
|
|
134
115
|
]
|
|
135
116
|
})]
|
|
@@ -139,4 +120,4 @@ function p({ id: p, botMessageType: m, ctaType: h, ctaTargetId: g, ctaTargetTabl
|
|
|
139
120
|
});
|
|
140
121
|
}
|
|
141
122
|
//#endregion
|
|
142
|
-
export {
|
|
123
|
+
export { f as default };
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import { BotMessageCtaType,
|
|
2
|
-
export declare function getCtaButtonText(ctaType?: BotMessageCtaType | null): "" | "내 수업 확인하기" | "공고 확인하기" | "변경 내용 확인하기" | "나의 지원 내역 보러가기" | "돌봄노트 확인하기" | "선생님 선택하러 가기" | "놀이콘텐츠 둘러보기";
|
|
3
|
-
export
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
hideLabel?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare function getClassInfo({ offer, matchings, botMessageType }: {
|
|
9
|
-
offer?: BotMessageOffer | null;
|
|
10
|
-
matchings?: BotMessageMatching[] | null;
|
|
11
|
-
botMessageType?: BotMessageType;
|
|
12
|
-
}): ClassInfoLine[];
|
|
13
|
-
export declare function getBotMessageLabel({ title, content, offer, matchings, botMessageType, regDatetime }: Pick<BotMessageProps, 'title' | 'content' | 'offer' | 'matchings' | 'botMessageType' | 'regDatetime'>): string;
|
|
1
|
+
import { BotMessageCtaType, BotMessageProps } from '.';
|
|
2
|
+
export declare function getCtaButtonText(ctaType?: BotMessageCtaType | null): "" | "내 수업 확인하기" | "공고 확인하기" | "변경 내용 확인하기" | "나의 지원 내역 보러가기" | "돌봄노트 확인하기" | "선생님 선택하러 가기" | "놀이콘텐츠 둘러보기" | "활동 가이드북 보기";
|
|
3
|
+
export declare function getBotMessageLabel({ title, content, regDatetime }: Pick<BotMessageProps, 'title' | 'content' | 'regDatetime'>): string;
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import t from "dayjs";
|
|
1
|
+
import e from "dayjs";
|
|
3
2
|
//#region shared/components/ChatKit/BotMessage/BotMessage.utils.ts
|
|
4
|
-
|
|
5
|
-
TEACHER_APPLIED: "NONE",
|
|
6
|
-
PARENT_SENT_OFFER: "NONE",
|
|
7
|
-
PLAY_CONTENT_RECOMMENDED: "NONE",
|
|
8
|
-
PARENT_REJECTED_APPLICATION: "NONE",
|
|
9
|
-
TEACHER_REFUSED_OFFER: "NONE",
|
|
10
|
-
PARENT_REQUESTED_MATCHING_SCHEDULE_CHANGE: "NONE",
|
|
11
|
-
TEACHER_REFUSED_MATCHING_SCHEDULE_CHANGE: "ORIGINAL_ONLY",
|
|
12
|
-
MATCHING_SCHEDULE_CHANGE_EXPIRED: "ORIGINAL_ONLY",
|
|
13
|
-
TEACHER_ACCEPTED_MATCHING_SCHEDULE_CHANGE: "ORIGINAL_AND_CHANGED"
|
|
14
|
-
};
|
|
15
|
-
function c(e) {
|
|
3
|
+
function t(e) {
|
|
16
4
|
switch (e) {
|
|
17
5
|
case "MY_CLASS_CHECK": return "내 수업 확인하기";
|
|
18
6
|
case "OFFER_CHECK": return "공고 확인하기";
|
|
@@ -21,62 +9,17 @@ function c(e) {
|
|
|
21
9
|
case "CARE_NOTE_CHECK": return "돌봄노트 확인하기";
|
|
22
10
|
case "TEACHER_SELECTION": return "선생님 선택하러 가기";
|
|
23
11
|
case "PLAY_CONTENT_EXPLORE": return "놀이콘텐츠 둘러보기";
|
|
12
|
+
case "ACTIVITY_GUIDEBOOK_VIEW": return "활동 가이드북 보기";
|
|
24
13
|
default: return "";
|
|
25
14
|
}
|
|
26
15
|
}
|
|
27
|
-
function
|
|
28
|
-
let c = a?.[0] ?? t ?? null;
|
|
29
|
-
if (!c) return [];
|
|
30
|
-
let l = o ? s[o] : void 0;
|
|
31
|
-
if (l === "NONE") return [];
|
|
32
|
-
if (l === "ORIGINAL_ONLY") return u(c);
|
|
33
|
-
if (l === "ORIGINAL_AND_CHANGED") return d(c);
|
|
34
|
-
let f = a?.length ? a.length : t?.totalCareCount ?? 1, m = [];
|
|
35
|
-
if (c.careStartDate && c.careStartTime) {
|
|
36
|
-
let e = p(c.careStartDate, c.careStartTime), t = f > 1 ? ` 외 ${f - 1}건` : "";
|
|
37
|
-
m.push({
|
|
38
|
-
label: i,
|
|
39
|
-
value: `${e}${t}`
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
if (c.representativeChildName) {
|
|
43
|
-
let e = c.childCount ?? 1, t = e > 1 ? ` 외 ${e - 1}명` : "";
|
|
44
|
-
m.push({
|
|
45
|
-
label: n,
|
|
46
|
-
value: `${c.representativeChildName}${t}`
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
let h = [e(c.firstCareType), e(c.secondCareType)].filter(Boolean).join("+");
|
|
50
|
-
return h && m.push({
|
|
51
|
-
label: r,
|
|
52
|
-
value: h,
|
|
53
|
-
hideLabel: !0
|
|
54
|
-
}), m;
|
|
55
|
-
}
|
|
56
|
-
var u = (e) => {
|
|
57
|
-
let t = [];
|
|
58
|
-
return f(t, a, e.careStartDate, e.careStartTime), t;
|
|
59
|
-
}, d = (e) => {
|
|
60
|
-
let t = [];
|
|
61
|
-
return f(t, a, e.changeReqDate, e.changeReqStartTime), f(t, o, e.careStartDate, e.careStartTime), t;
|
|
62
|
-
}, f = (e, t, n, r) => {
|
|
63
|
-
n && r && e.push({
|
|
64
|
-
label: t,
|
|
65
|
-
value: p(n, r)
|
|
66
|
-
});
|
|
67
|
-
}, p = (e, n) => t(`${e} ${n}`).format("YYYY-MM-DD HH:mm");
|
|
68
|
-
function m({ title: e, content: n, offer: r, matchings: i, botMessageType: a, regDatetime: o }) {
|
|
16
|
+
function n({ title: t, content: n, regDatetime: r }) {
|
|
69
17
|
return [
|
|
70
18
|
"안내",
|
|
71
|
-
|
|
19
|
+
t,
|
|
72
20
|
n,
|
|
73
|
-
|
|
74
|
-
offer: r,
|
|
75
|
-
matchings: i,
|
|
76
|
-
botMessageType: a
|
|
77
|
-
}).map((e) => `${e.label} ${e.value}`).join(", "),
|
|
78
|
-
t(o).format("YYYY년 MM월 DD일 A h:mm")
|
|
21
|
+
e(r).format("YYYY년 MM월 DD일 A h:mm")
|
|
79
22
|
].filter(Boolean).join(", ");
|
|
80
23
|
}
|
|
81
24
|
//#endregion
|
|
82
|
-
export {
|
|
25
|
+
export { n as getBotMessageLabel, t as getCtaButtonText };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as BotMessage, BotMessageCtaTargetTable, BotMessageCtaType,
|
|
2
|
-
export {
|
|
3
|
-
export type { BotMessageProps, BotMessageCtaType, BotMessageType,
|
|
1
|
+
import { default as BotMessage, BotMessageCtaTargetTable, BotMessageCtaType, BotMessageProps, BotMessageSubCtaTargetTable, BotMessageType } from './BotMessage';
|
|
2
|
+
export { getCtaButtonText, getBotMessageLabel } from './BotMessage.utils';
|
|
3
|
+
export type { BotMessageProps, BotMessageCtaType, BotMessageType, BotMessageSubCtaTargetTable, BotMessageCtaTargetTable };
|
|
4
4
|
export default BotMessage;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getBotMessageLabel as e,
|
|
2
|
-
import
|
|
1
|
+
import { getBotMessageLabel as e, getCtaButtonText as t } from "./BotMessage.utils.mjs";
|
|
2
|
+
import n from "./BotMessage.mjs";
|
|
3
3
|
//#region shared/components/ChatKit/BotMessage/index.ts
|
|
4
|
-
var
|
|
4
|
+
var r = n;
|
|
5
5
|
//#endregion
|
|
6
|
-
export {
|
|
6
|
+
export { r as default, e as getBotMessageLabel, t as getCtaButtonText };
|
|
@@ -4,10 +4,10 @@ import r from "./Message/index.mjs";
|
|
|
4
4
|
import i from "./SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs";
|
|
5
5
|
import { getSystemMessageLabel as a } from "./SystemMessage/SystemMessage.utils.mjs";
|
|
6
6
|
import o from "./SystemMessage/index.mjs";
|
|
7
|
-
import { getBotMessageLabel as s,
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
export {
|
|
7
|
+
import { getBotMessageLabel as s, getCtaButtonText as c } from "./BotMessage/BotMessage.utils.mjs";
|
|
8
|
+
import l from "./BotMessage/index.mjs";
|
|
9
|
+
import u from "./InputBar/InputBar.fallback.mjs";
|
|
10
|
+
import d from "./InputBar/index.mjs";
|
|
11
|
+
import f from "./Seperator/index.mjs";
|
|
12
|
+
import p from "./UnreadMessagePill/index.mjs";
|
|
13
|
+
export { l as BotMessage, i as DirectTradeRiskInfoBottomSheet, d as InputBar, u as InputBarFallback, r as Message, e as MessageFallback, f as Seperator, o as SystemMessage, p as UnreadMessagePill, s as getBotMessageLabel, c as getCtaButtonText, t as getMessageLabel, a as getSystemMessageLabel, n as markMessageGroupBoundaries };
|
|
@@ -27,10 +27,10 @@ import E from "./ChatKit/Message/index.mjs";
|
|
|
27
27
|
import D from "./ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs";
|
|
28
28
|
import { getSystemMessageLabel as O } from "./ChatKit/SystemMessage/SystemMessage.utils.mjs";
|
|
29
29
|
import k from "./ChatKit/SystemMessage/index.mjs";
|
|
30
|
-
import { getBotMessageLabel as A,
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
export {
|
|
30
|
+
import { getBotMessageLabel as A, getCtaButtonText as j } from "./ChatKit/BotMessage/BotMessage.utils.mjs";
|
|
31
|
+
import M from "./ChatKit/BotMessage/index.mjs";
|
|
32
|
+
import N from "./ChatKit/InputBar/InputBar.fallback.mjs";
|
|
33
|
+
import P from "./ChatKit/InputBar/index.mjs";
|
|
34
|
+
import F from "./ChatKit/Seperator/index.mjs";
|
|
35
|
+
import I from "./ChatKit/UnreadMessagePill/index.mjs";
|
|
36
|
+
export { M as BotMessage, S as Calendar, f as Carousel, d as CarouselSlide, D as DirectTradeRiskInfoBottomSheet, t as Image, e as ImageError, P as InputBar, N as InputBarFallback, u as LoadingAnnouncer, r as Masonry, n as MasonryBlock, m as MediaBlock, b as MediaDialog, _ as MediaDialogContent, v as MediaDialogFooter, y as MediaDialogToolbar, E as Message, C as MessageFallback, l as Roller, c as RollerBlock, o as ScheduleBlock, i as ScheduleEvent, s as Scheduler, F as Seperator, h as Swiper, p as SwiperBlock, k as SystemMessage, g as TextField, x as TimePicker, I as UnreadMessagePill, a as getAvailableDateRange, A as getBotMessageLabel, j as getCtaButtonText, w as getMessageLabel, O as getSystemMessageLabel, T as markMessageGroupBoundaries };
|
|
@@ -5,14 +5,14 @@ import r from "./dayFlagToDay/index.mjs";
|
|
|
5
5
|
import i from "./getDateRange/index.mjs";
|
|
6
6
|
import a from "./getTimeRange/index.mjs";
|
|
7
7
|
import o from "./birthDateToAge/index.mjs";
|
|
8
|
-
import s from "./
|
|
9
|
-
import c from "./
|
|
10
|
-
import l from "./
|
|
11
|
-
import u from "./
|
|
12
|
-
import d from "./
|
|
13
|
-
import f from "./
|
|
14
|
-
import p from "./
|
|
15
|
-
import m from "./
|
|
16
|
-
import h from "./
|
|
17
|
-
import g from "./
|
|
18
|
-
export {
|
|
8
|
+
import s from "./isAndroid/index.mjs";
|
|
9
|
+
import c from "./isIos/index.mjs";
|
|
10
|
+
import l from "./isApp/index.mjs";
|
|
11
|
+
import u from "./isDesktop/index.mjs";
|
|
12
|
+
import d from "./ageToBirthDate/index.mjs";
|
|
13
|
+
import f from "./objectToQueryString/index.mjs";
|
|
14
|
+
import p from "./getVimeoId/index.mjs";
|
|
15
|
+
import m from "./parseQueryString/index.mjs";
|
|
16
|
+
import h from "./share/index.mjs";
|
|
17
|
+
import g from "./getCareTypeLabel/index.mjs";
|
|
18
|
+
export { d as ageToBirthDate, o as birthDateToAge, n as combineRef, r as dayFlagToDay, g as getCareTypeLabel, i as getDateRange, t as getImageUrl, a as getTimeRange, p as getVimeoId, s as isAndroid, l as isApp, u as isDesktop, c as isIos, e as isServer, f as objectToQueryString, m as parseQueryString, h as share };
|
package/package.json
CHANGED