@dotss/tictoccroc 0.7.1 → 0.8.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/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/utils/getCareTypeLabel/index.mjs";
87
- import { getBotMessageLabel as ke, getClassInfo as Ae, getCtaButtonText as je } from "./shared/components/ChatKit/BotMessage/BotMessage.utils.mjs";
88
- import Me from "./shared/components/ChatKit/BotMessage/index.mjs";
89
- import Ne from "./shared/components/ChatKit/InputBar/InputBar.fallback.mjs";
90
- import Pe from "./shared/components/ChatKit/InputBar/index.mjs";
91
- import Fe from "./shared/components/ChatKit/Seperator/index.mjs";
92
- import Ie from "./shared/components/ChatKit/UnreadMessagePill/index.mjs";
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 Re from "./shared/utils/isAndroid/index.mjs";
96
- import ze from "./shared/utils/isIos/index.mjs";
97
- import Be from "./shared/utils/isApp/index.mjs";
98
- import Ve from "./shared/utils/isDesktop/index.mjs";
99
- import He from "./shared/utils/ageToBirthDate/index.mjs";
100
- import Ue from "./shared/utils/objectToQueryString/index.mjs";
101
- import We from "./shared/utils/getVimeoId/index.mjs";
102
- import Ge from "./shared/utils/parseQueryString/index.mjs";
103
- import Ke from "./shared/utils/share/index.mjs";
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, Me 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, Pe as InputBar, Ne 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, Fe 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, Le as TopLogo, Ie as UnreadMessagePill, He as ageToBirthDate, I as birthDateToAge, u as combineRef, ae as convertMdToHtml, O as dayFlagToDay, w as getAbilityCollection, j as getAvailableDateRange, ke as getBotMessageLabel, Oe as getCareTypeLabel, B as getChildLabel, Ae as getClassInfo, je as getCtaButtonText, k as getDateRange, r as getImageUrl, Se as getMessageLabel, S as getPreferredAgeKeywords, Ee as getSystemMessageLabel, A as getTimeRange, We as getVimeoId, Re as isAndroid, Be as isApp, Ve as isDesktop, ze as isIos, t as isServer, de as isSuccess, fe as isValid, Ce as markMessageGroupBoundaries, Ue as objectToQueryString, Ge as parseQueryString, re as sanitize, Ke as share, d as useCombineRef, e as useInView, n as useIsomorphicLayoutEffect };
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 };
@@ -3,26 +3,6 @@ export type BotMessageType = 'TEACHER_INQUIRED' | 'PARENT_CHANGED_OFFER_SCHEDULE
3
3
  export type BotMessageCtaType = 'MY_CLASS_CHECK' | 'OFFER_CHECK' | 'CHANGE_INFO_CHECK' | 'MY_APPLICATION_INFO_VIEW' | 'CARE_NOTE_CHECK' | 'TEACHER_SELECTION' | 'PLAY_CONTENT_EXPLORE';
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, offer, matchings, botMessageHeaderImageUrl, regDatetime, onAction, onView, inlineCSS, ...props }: BotMessageProps): import("@emotion/react/jsx-runtime").JSX.Element;
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 { getClassInfo as n, getCtaButtonText as r } from "./BotMessage.utils.mjs";
4
- import { useEffect as i, useRef as a } from "react";
5
- import { Button as o, Flexbox as s, Typography as c } from "@dotss/ui";
6
- import l from "@dotss/ui/core/useTheme";
7
- import u from "dayjs";
8
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
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 p({ id: p, botMessageType: m, ctaType: h, ctaTargetId: g, ctaTargetTable: _, subCtaTargetTable: v, subCtaTargetId: y, mine: b, avatarUrl: x, title: S, content: C, unreadUserCount: w, offer: T, matchings: E, botMessageHeaderImageUrl: D, regDatetime: O, onAction: k, onView: A, inlineCSS: j, ...M }) {
11
- let { palette: { brand: N, grey: P }, spacing: F } = l(), I = a(null), { isInView: L } = e(I), R = r(h), z = n({
12
- offer: T,
13
- matchings: E,
14
- botMessageType: m
15
- }), B = () => k?.({
16
- botMessageType: m,
17
- ctaType: h,
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 i(() => {
24
- L && A?.();
25
- }, [L, A]), /* @__PURE__ */ f(s, {
26
- ref: I,
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: b ? "row" : "row-reverse",
33
- ...M,
28
+ flexDirection: y ? "row" : "row-reverse",
29
+ ...k,
34
30
  inlineCSS: {
35
31
  overflowAnchor: "none",
36
- ...j
32
+ ...O
37
33
  },
38
34
  children: [
39
- /* @__PURE__ */ d(c, {
35
+ /* @__PURE__ */ u(s, {
40
36
  visuallyHidden: !0,
41
37
  children: "안내"
42
38
  }),
43
- /* @__PURE__ */ f(s, {
39
+ /* @__PURE__ */ d(o, {
44
40
  flexDirection: "column",
45
- alignItems: b ? "flex-end" : "flex-start",
41
+ alignItems: y ? "flex-end" : "flex-start",
46
42
  inlineCSS: { whiteSpace: "nowrap" },
47
- children: [b && w > 0 && /* @__PURE__ */ d(c, {
43
+ children: [y && C > 0 && /* @__PURE__ */ u(s, {
48
44
  tag: "span",
49
45
  variant: "c5B",
50
46
  "aria-hidden": !0,
51
- inlineCSS: { color: N.primary.text },
52
- children: w
53
- }), /* @__PURE__ */ d(c, {
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: u(O).format("A h:mm")
55
+ children: l(T).format("A h:mm")
60
56
  })]
61
57
  }),
62
- /* @__PURE__ */ f(s, {
58
+ /* @__PURE__ */ d(o, {
63
59
  alignItems: "flex-start",
64
60
  gap: 2,
65
61
  "aria-hidden": !0,
66
- children: [x && /* @__PURE__ */ d(t, {
67
- src: x,
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__ */ f(s, {
68
+ }), /* @__PURE__ */ d(o, {
73
69
  flexDirection: "column",
74
70
  inlineCSS: {
75
71
  width: 240,
76
- backgroundColor: P.white,
72
+ backgroundColor: j.white,
77
73
  borderRadius: 12,
78
- border: `1px solid ${P[20]}`,
74
+ border: `1px solid ${j[20]}`,
79
75
  overflow: "hidden"
80
76
  },
81
- children: [D && /* @__PURE__ */ d(t, {
82
- src: D,
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__ */ f(s, {
86
+ }), /* @__PURE__ */ d(o, {
91
87
  p: 4,
92
88
  flexDirection: "column",
93
89
  children: [
94
- S && /* @__PURE__ */ d(c, {
90
+ x && /* @__PURE__ */ u(s, {
95
91
  tag: "p",
96
92
  variant: "h4B",
97
- children: S
93
+ children: x
98
94
  }),
99
- C && /* @__PURE__ */ d(c, {
95
+ S && /* @__PURE__ */ u(s, {
100
96
  tag: "p",
101
97
  variant: "b2R",
102
- inlineCSS: { marginTop: S ? F.content(1) : void 0 },
103
- children: C
104
- }),
105
- z.length > 0 && /* @__PURE__ */ d(c, {
106
- tag: "dl",
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
- R && /* @__PURE__ */ d(o, {
124
- onClick: B,
104
+ F && /* @__PURE__ */ u(a, {
105
+ onClick: I,
125
106
  inlineCSS: {
126
- marginTop: F.content(4),
127
- backgroundColor: P[10],
128
- color: P[100],
129
- "&:hover:not([aria-disabled=\"true\"])": { backgroundColor: P[10] },
130
- "&:active:not([aria-disabled=\"true\"])": { backgroundColor: P[10] }
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: R
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 { p as default };
123
+ export { f as default };
@@ -1,13 +1,3 @@
1
- import { BotMessageCtaType, BotMessageMatching, BotMessageOffer, BotMessageProps, BotMessageType } from '.';
1
+ import { BotMessageCtaType, BotMessageProps } from '.';
2
2
  export declare function getCtaButtonText(ctaType?: BotMessageCtaType | null): "" | "내 수업 확인하기" | "공고 확인하기" | "변경 내용 확인하기" | "나의 지원 내역 보러가기" | "돌봄노트 확인하기" | "선생님 선택하러 가기" | "놀이콘텐츠 둘러보기";
3
- export interface ClassInfoLine {
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;
3
+ export declare function getBotMessageLabel({ title, content, regDatetime }: Pick<BotMessageProps, 'title' | 'content' | 'regDatetime'>): string;
@@ -1,18 +1,6 @@
1
- import e from "../../../utils/getCareTypeLabel/index.mjs";
2
- import t from "dayjs";
1
+ import e from "dayjs";
3
2
  //#region shared/components/ChatKit/BotMessage/BotMessage.utils.ts
4
- var n = "아이이름", r = "돌봄종류", i = "방문일시", a = "기존 수업시간", o = "변경 수업시간", s = {
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 "공고 확인하기";
@@ -24,59 +12,13 @@ function c(e) {
24
12
  default: return "";
25
13
  }
26
14
  }
27
- function l({ offer: t, matchings: a, botMessageType: o }) {
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 }) {
15
+ function n({ title: t, content: n, regDatetime: r }) {
69
16
  return [
70
17
  "안내",
71
- e,
18
+ t,
72
19
  n,
73
- l({
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")
20
+ e(r).format("YYYY년 MM월 DD일 A h:mm")
79
21
  ].filter(Boolean).join(", ");
80
22
  }
81
23
  //#endregion
82
- export { m as getBotMessageLabel, l as getClassInfo, c as getCtaButtonText };
24
+ export { n as getBotMessageLabel, t as getCtaButtonText };
@@ -1,4 +1,4 @@
1
- import { default as BotMessage, BotMessageCtaTargetTable, BotMessageCtaType, BotMessageMatching, BotMessageOffer, BotMessageProps, BotMessageSubCtaTargetTable, BotMessageType } from './BotMessage';
2
- export { getClassInfo, getCtaButtonText, getBotMessageLabel } from './BotMessage.utils';
3
- export type { BotMessageProps, BotMessageCtaType, BotMessageType, BotMessageOffer, BotMessageMatching, BotMessageSubCtaTargetTable, BotMessageCtaTargetTable };
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, getClassInfo as t, getCtaButtonText as n } from "./BotMessage.utils.mjs";
2
- import r from "./BotMessage.mjs";
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 i = r;
4
+ var r = n;
5
5
  //#endregion
6
- export { i as default, e as getBotMessageLabel, t as getClassInfo, n as getCtaButtonText };
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, getClassInfo as c, getCtaButtonText as l } from "./BotMessage/BotMessage.utils.mjs";
8
- import u from "./BotMessage/index.mjs";
9
- import d from "./InputBar/InputBar.fallback.mjs";
10
- import f from "./InputBar/index.mjs";
11
- import p from "./Seperator/index.mjs";
12
- import m from "./UnreadMessagePill/index.mjs";
13
- export { u as BotMessage, i as DirectTradeRiskInfoBottomSheet, f as InputBar, d as InputBarFallback, r as Message, e as MessageFallback, p as Seperator, o as SystemMessage, m as UnreadMessagePill, s as getBotMessageLabel, c as getClassInfo, l as getCtaButtonText, t as getMessageLabel, a as getSystemMessageLabel, n as markMessageGroupBoundaries };
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, getClassInfo as j, getCtaButtonText as M } from "./ChatKit/BotMessage/BotMessage.utils.mjs";
31
- import N from "./ChatKit/BotMessage/index.mjs";
32
- import P from "./ChatKit/InputBar/InputBar.fallback.mjs";
33
- import F from "./ChatKit/InputBar/index.mjs";
34
- import I from "./ChatKit/Seperator/index.mjs";
35
- import L from "./ChatKit/UnreadMessagePill/index.mjs";
36
- export { N as BotMessage, S as Calendar, f as Carousel, d as CarouselSlide, D as DirectTradeRiskInfoBottomSheet, t as Image, e as ImageError, F as InputBar, P 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, I as Seperator, h as Swiper, p as SwiperBlock, k as SystemMessage, g as TextField, x as TimePicker, L as UnreadMessagePill, a as getAvailableDateRange, A as getBotMessageLabel, j as getClassInfo, M as getCtaButtonText, w as getMessageLabel, O as getSystemMessageLabel, T as markMessageGroupBoundaries };
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 "./getCareTypeLabel/index.mjs";
9
- import c from "./isAndroid/index.mjs";
10
- import l from "./isIos/index.mjs";
11
- import u from "./isApp/index.mjs";
12
- import d from "./isDesktop/index.mjs";
13
- import f from "./ageToBirthDate/index.mjs";
14
- import p from "./objectToQueryString/index.mjs";
15
- import m from "./getVimeoId/index.mjs";
16
- import h from "./parseQueryString/index.mjs";
17
- import g from "./share/index.mjs";
18
- export { f as ageToBirthDate, o as birthDateToAge, n as combineRef, r as dayFlagToDay, s as getCareTypeLabel, i as getDateRange, t as getImageUrl, a as getTimeRange, m as getVimeoId, c as isAndroid, u as isApp, d as isDesktop, l as isIos, e as isServer, p as objectToQueryString, h as parseQueryString, g as share };
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dotss/tictoccroc",
3
3
  "type": "module",
4
- "version": "0.7.1",
4
+ "version": "0.8.0",
5
5
  "description": "Tictoccroc shared components, hooks, utils, and APIs for Dotss",
6
6
  "main": "./dist/index.mjs",
7
7
  "module": "./dist/index.mjs",