@mindly/ui-components 5.57.1 → 5.59.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/cjs/index.js +4 -4
- package/dist/cjs/lib/Chat/ChatMessage/ChatMessage.d.ts +11 -1
- package/dist/cjs/lib/Chat/ChatMessage/ChatMessage.style.d.ts +2 -1
- package/dist/cjs/lib2/shared/assets/icons/IconMinus.d.ts +2 -0
- package/dist/cjs/lib2/shared/assets/icons/index.d.ts +1 -0
- package/dist/esm/index.js +6 -6
- package/dist/esm/lib/Chat/ChatMessage/ChatMessage.d.ts +11 -1
- package/dist/esm/lib/Chat/ChatMessage/ChatMessage.style.d.ts +2 -1
- package/dist/esm/lib2/shared/assets/icons/IconMinus.d.ts +2 -0
- package/dist/esm/lib2/shared/assets/icons/index.d.ts +1 -0
- package/dist/index.d.ts +14 -2
- package/package.json +1 -1
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
type ChatMessageProps = {
|
|
3
3
|
message: string | File;
|
|
4
|
+
/**
|
|
5
|
+
* This property is specifically for broadcast messages.
|
|
6
|
+
* It allows a separate file (e.g., an image URL) to be associated with the broadcast message,
|
|
7
|
+
* while the 'message' property contains the text content.
|
|
8
|
+
*/
|
|
9
|
+
fileUrl?: string;
|
|
4
10
|
position: 'left' | 'right';
|
|
5
11
|
time: number;
|
|
6
12
|
timeZone?: string;
|
|
7
13
|
status?: 'loading' | 'sent' | 'viewed';
|
|
8
|
-
messageType?: 'text' | 'file' | 'image' | 'video' | 'system';
|
|
14
|
+
messageType?: 'text' | 'file' | 'image' | 'video' | 'system' | 'broadcast';
|
|
9
15
|
onFileClick?: (type: 'file' | 'image', link: string) => void;
|
|
10
16
|
fileInfo?: {
|
|
11
17
|
originalName: string;
|
|
@@ -14,6 +20,10 @@ type ChatMessageProps = {
|
|
|
14
20
|
height?: number;
|
|
15
21
|
};
|
|
16
22
|
locale?: string;
|
|
23
|
+
buttons?: {
|
|
24
|
+
text: string;
|
|
25
|
+
onClickHandler: () => void;
|
|
26
|
+
}[] | null;
|
|
17
27
|
};
|
|
18
28
|
declare const _default: React.NamedExoticComponent<ChatMessageProps>;
|
|
19
29
|
export default _default;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
type MessageWrapperProps = {
|
|
2
2
|
position: 'left' | 'right';
|
|
3
|
-
messageType: 'text' | 'file' | 'image' | 'video' | 'system';
|
|
3
|
+
messageType: 'text' | 'file' | 'image' | 'video' | 'system' | 'broadcast';
|
|
4
4
|
};
|
|
5
5
|
export declare const MessageWrapper: import("styled-components").StyledComponent<"div", any, MessageWrapperProps, never>;
|
|
6
6
|
export declare const TextMessageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
7
|
type ImageMessageWrapperProps = {
|
|
8
8
|
position: 'left' | 'right';
|
|
9
|
+
messageType?: 'text' | 'file' | 'image' | 'video' | 'system' | 'broadcast';
|
|
9
10
|
};
|
|
10
11
|
export declare const ImageMessageWrapper: import("styled-components").StyledComponent<"div", any, ImageMessageWrapperProps, never>;
|
|
11
12
|
type ImageTimeWrapperProps = {
|
|
@@ -13,6 +13,7 @@ export * from './IconLanguage';
|
|
|
13
13
|
export * from './IconLeftArrow';
|
|
14
14
|
export * from './IconLogout';
|
|
15
15
|
export * from './IconPause';
|
|
16
|
+
export * from './IconMinus';
|
|
16
17
|
export * from './IconPlus';
|
|
17
18
|
export * from './IconProfileChecked';
|
|
18
19
|
export * from './IconProfileCircle';
|
package/dist/index.d.ts
CHANGED
|
@@ -466,11 +466,17 @@ declare const _default$Z: React__default.NamedExoticComponent<ChatListItemProps>
|
|
|
466
466
|
|
|
467
467
|
type ChatMessageProps = {
|
|
468
468
|
message: string | File;
|
|
469
|
+
/**
|
|
470
|
+
* This property is specifically for broadcast messages.
|
|
471
|
+
* It allows a separate file (e.g., an image URL) to be associated with the broadcast message,
|
|
472
|
+
* while the 'message' property contains the text content.
|
|
473
|
+
*/
|
|
474
|
+
fileUrl?: string;
|
|
469
475
|
position: 'left' | 'right';
|
|
470
476
|
time: number;
|
|
471
477
|
timeZone?: string;
|
|
472
478
|
status?: 'loading' | 'sent' | 'viewed';
|
|
473
|
-
messageType?: 'text' | 'file' | 'image' | 'video' | 'system';
|
|
479
|
+
messageType?: 'text' | 'file' | 'image' | 'video' | 'system' | 'broadcast';
|
|
474
480
|
onFileClick?: (type: 'file' | 'image', link: string) => void;
|
|
475
481
|
fileInfo?: {
|
|
476
482
|
originalName: string;
|
|
@@ -479,6 +485,10 @@ type ChatMessageProps = {
|
|
|
479
485
|
height?: number;
|
|
480
486
|
};
|
|
481
487
|
locale?: string;
|
|
488
|
+
buttons?: {
|
|
489
|
+
text: string;
|
|
490
|
+
onClickHandler: () => void;
|
|
491
|
+
}[] | null;
|
|
482
492
|
};
|
|
483
493
|
declare const _default$Y: React__default.NamedExoticComponent<ChatMessageProps>;
|
|
484
494
|
|
|
@@ -2139,6 +2149,8 @@ interface IconProps$o extends React.SVGAttributes<SVGElement> {
|
|
|
2139
2149
|
}
|
|
2140
2150
|
declare function IconPause({ color, size, ...other }: IconProps$o): JSX.Element;
|
|
2141
2151
|
|
|
2152
|
+
declare function IconMinus({ color, size, ...other }: IconProps$B): JSX.Element;
|
|
2153
|
+
|
|
2142
2154
|
type IconPlusProps = React.SVGProps<any>;
|
|
2143
2155
|
declare function IconPlus({ color, ...props }: IconPlusProps): JSX.Element;
|
|
2144
2156
|
|
|
@@ -2682,4 +2694,4 @@ declare const _default$1: React__default.NamedExoticComponent<SpecialistPaymentC
|
|
|
2682
2694
|
|
|
2683
2695
|
declare const _default: React__default.NamedExoticComponent<SpecialistPaymentCardProps & SpecialistPaymentConsultationsProps & TranslationType>;
|
|
2684
2696
|
|
|
2685
|
-
export { AppFooter, _default$q as AppFooter_v2, AppHeader, AppHeader_v2, AppNotSupportedFeature, ArchivedConsultationCard, Avatar, AvatarProps$1 as AvatarProps, _default$p as Avatar_v2, BREAKPOINT_ICON_SIZE, _default$l as Badge, _default$E as BookingScheduleTime, _default$D as BookingSpecialistInfo, Button, Button_v2, Calendar, _default$5 as CalendarPickerFeature, CancelSession, CardModal, ChangeLangModal, ChangeLanguageModal, _default$Z as ChatListItem, _default$X as ChatListSkeleton, _default$Y as ChatMessage, ChatMessageSkeleton, CheckBoxItem, CheckBoxListFeature, CheckBoxSectionListFeature, _default$y as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, CircleRatingContext, CircleRatingProvider, CollapsableText, _default$Q as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$N as ConsultationModal, _default$9 as ConsultationPricingFeature, _default$L as ConsultationSpecialistCard, ConsultationsListSkeleton, Container, Container_v2, ContentCard, CountdownTimerFeature, CountryOfOriginModal, CustomButton, _default$z as CustomCheckbox, CustomRadioButton, _default$A as CustomSelect, _default$B as CustomTextarea, DatePicker, _default$J as DaySlider, DayToRender, DrumListPicker, _default$F as EducationCard, _default$W as EmptyChatList, EmptyChatMessages, _default$O as EmptyConsultations, EntryNotFound, EntryNotFoundProps, _default$v as Flag, FlagTypes, _default$n as Flag_v2, FloatingButton, FooterForBooking, FrequentlyAskedQuestions, GoogleCalendarModalFeature, HeaderWithRedirect, HorizontalCalendar, HorizontalCalendarProps, ISpecialistReview, IconAddModerator, IconApple, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowTopRight, IconAttachMoney, IconBeachAccess, IconBookmark, IconBookmarkOutlined, _default$h as IconButton, IconCalendar, IconCalendarFilled, IconCalendarMonth, IconCancel, IconCancelRounded, IconCapFilled, IconChat3d, IconChatFilled, IconChatOutline, IconCheck, IconCheckCircle, IconCheckSmall, IconCheckboxChecked, IconCheckboxUnchecked, IconClient, IconClientFilled, IconClose, IconCopy, IconCreditCard, IconDelete, IconEcgHeart, IconEdit, IconEditCalendar, IconEventBusy, IconEye, IconEyeOff, IconGallery, IconGift, IconGoogle, IconHome, IconInvisible, IconLanguage, IconLeftArrow, IconLetter, IconLink, IconLock, IconLogout, IconManageAccounts, IconMoreVertical, IconMute, IconNotificationMuted, IconPaid, IconPaper, IconPause, IconPlus, IconProfileChecked, IconProfileCircle, IconProfileSetting, IconProfileUnderReview, IconPromocode, IconQueryStats, IconQuestion, IconRadioButtonChecked, IconResume, IconSchema, IconSearch, IconSend, IconSettings, IconShare, IconSpinner, IconStar, IconStarFilled, IconStylus, IconSuccess, IconText, IconTime, IconTimeAdd, IconUnmute, IconUserNotFound, IconVerifiedUser, IconVisible, IconWarning, ImageInput, ImageWithFallback, ImpressionEmojiEnum, Input, InputSearch, _default$d as Item, _default$k as ItemCard, LabelArrowRedirect, LanguagesList, _default$11 as LetterAvatar, _default$w as LineFileInput, ListBox, ListBoxItem, ListBoxItemProps, ListBoxProps, ListBoxSelectionType, ListButton, ListItemType, _default$e as ListItems, ListOption, ListOptionsProps, ListSelect, ListSelectProps, ListSimple, _default$f as Loading, LouseConnect, _default$_ as MediaPlayer, Modal, ModalCalendar, ModalSheet, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, PasswordInput, _default$4 as PaymentCalendarFeature, _default$6 as PaymentSessionsList, _default$10 as PersonDateTimeCard, _default$m as Picture, _default$u as ProfileInformation, _default$H as ProfileView, _default$x as ProgressBar, ProgressBarDashed, _default$g as ProgressBar_v2, PushNotificationsIsDisabledBanner, PushNotificationsModal, Range, _default$i as Rating, RatingCircleWrapper, _default$K as ReSchedule, ReScheduleSuccess, Refresher, ReviewCard, _default$3 as ReviewCardFeature, ReviewStatistics, ReviewSwiperSection, RoundButton, RowItemType, RowSelect, RowSelectProps, SIZES, ScreenInput, ScreenInputUpdateFeature, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$$ as SelectImpressionEmoji, SelectItemType, ShareModalFeature, _default$P as SignUpSessionButton, _default$M as SignUpSessionModal, Skeleton, _default$o as Skeleton_v2, _default$b as SlotsGrid, _default$a as SlotsGridItem, _default$G as SpecialistAbout, SpecialistCard$1 as SpecialistCard, SpecialistCardListWidget, _default$2 as SpecialistCardWidget, _default$U as SpecialistEducationCard, SpecialistInfoColumnFeature as SpecialistInfoColumn, SpecialistLangs, _default$t as SpecialistMatch, _default$8 as SpecialistPaymentCommonCardFeature, SpecialistPaymentCommonCardSkeleton, _default$7 as SpecialistPaymentConsultationsFeature, _default as SpecialistPaymentResumeWidget, _default$1 as SpecialistPaymentWidget, _default$T as SpecialistProfileViewCard, SpecialistShortInfoItemFeature as SpecialistShortInfoItem, _default$s as SpecialistStatistic, SpecialistStatisticsCard, SpecialistWorkDirections, Spinner, Spinner_v2, StarRating, StatisticsScroll, StatusTag, SuccessScreen, SwitchDeviceCard, TabBar, TabItem, Tabs, Tag, _default$C as TextInput, _default$V as Textarea, _default$j as Textarea_v2, ThemeProvider, ThemeProviderProps, TherapistCard, TherapistInformationComponent, Toast, ToastButton, ToastContext, ToastProps, ToastProvider, ToastRegion, Toggle, TooltipComponent, _default$r as Typography, TypographyVariantsEnum, UpdatesCard, UserInfoModal, UsersPsychologistScrollList, VerticalCalendar, VerticalCalendarMonthSkeleton, VerticalCalendarSkeleton, _default$c as Video, _default$R as VideoCallInfo, _default$S as VideoPlayer, _default$I as WorkDirections, YourLocalTimeBlock, appThemes, decOfNum, getProgressForBreakPoint, mergeRefs, newShade, priceNormalize, toast, useAutoFocus, useBreakPointsPosition, useCircleRatingRenderData, useDomRef, useEvent, useRangeIndex, useRatingCircleBreakPoints, useRatingCircleContentValue, useRatingCircleLegend, useRatingContext, useToastContext };
|
|
2697
|
+
export { AppFooter, _default$q as AppFooter_v2, AppHeader, AppHeader_v2, AppNotSupportedFeature, ArchivedConsultationCard, Avatar, AvatarProps$1 as AvatarProps, _default$p as Avatar_v2, BREAKPOINT_ICON_SIZE, _default$l as Badge, _default$E as BookingScheduleTime, _default$D as BookingSpecialistInfo, Button, Button_v2, Calendar, _default$5 as CalendarPickerFeature, CancelSession, CardModal, ChangeLangModal, ChangeLanguageModal, _default$Z as ChatListItem, _default$X as ChatListSkeleton, _default$Y as ChatMessage, ChatMessageSkeleton, CheckBoxItem, CheckBoxListFeature, CheckBoxSectionListFeature, _default$y as CheckboxList, CheckboxListCategory, CheckboxListItem, CheckboxTypes, ChevronHeader, CircleRatingContext, CircleRatingProvider, CollapsableText, _default$Q as ConsultationCard, ConsultationCardProps, ConsultationCardType, _default$N as ConsultationModal, _default$9 as ConsultationPricingFeature, _default$L as ConsultationSpecialistCard, ConsultationsListSkeleton, Container, Container_v2, ContentCard, CountdownTimerFeature, CountryOfOriginModal, CustomButton, _default$z as CustomCheckbox, CustomRadioButton, _default$A as CustomSelect, _default$B as CustomTextarea, DatePicker, _default$J as DaySlider, DayToRender, DrumListPicker, _default$F as EducationCard, _default$W as EmptyChatList, EmptyChatMessages, _default$O as EmptyConsultations, EntryNotFound, EntryNotFoundProps, _default$v as Flag, FlagTypes, _default$n as Flag_v2, FloatingButton, FooterForBooking, FrequentlyAskedQuestions, GoogleCalendarModalFeature, HeaderWithRedirect, HorizontalCalendar, HorizontalCalendarProps, ISpecialistReview, IconAddModerator, IconApple, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowTopRight, IconAttachMoney, IconBeachAccess, IconBookmark, IconBookmarkOutlined, _default$h as IconButton, IconCalendar, IconCalendarFilled, IconCalendarMonth, IconCancel, IconCancelRounded, IconCapFilled, IconChat3d, IconChatFilled, IconChatOutline, IconCheck, IconCheckCircle, IconCheckSmall, IconCheckboxChecked, IconCheckboxUnchecked, IconClient, IconClientFilled, IconClose, IconCopy, IconCreditCard, IconDelete, IconEcgHeart, IconEdit, IconEditCalendar, IconEventBusy, IconEye, IconEyeOff, IconGallery, IconGift, IconGoogle, IconHome, IconInvisible, IconLanguage, IconLeftArrow, IconLetter, IconLink, IconLock, IconLogout, IconManageAccounts, IconMinus, IconMoreVertical, IconMute, IconNotificationMuted, IconPaid, IconPaper, IconPause, IconPlus, IconProfileChecked, IconProfileCircle, IconProfileSetting, IconProfileUnderReview, IconPromocode, IconQueryStats, IconQuestion, IconRadioButtonChecked, IconResume, IconSchema, IconSearch, IconSend, IconSettings, IconShare, IconSpinner, IconStar, IconStarFilled, IconStylus, IconSuccess, IconText, IconTime, IconTimeAdd, IconUnmute, IconUserNotFound, IconVerifiedUser, IconVisible, IconWarning, ImageInput, ImageWithFallback, ImpressionEmojiEnum, Input, InputSearch, _default$d as Item, _default$k as ItemCard, LabelArrowRedirect, LanguagesList, _default$11 as LetterAvatar, _default$w as LineFileInput, ListBox, ListBoxItem, ListBoxItemProps, ListBoxProps, ListBoxSelectionType, ListButton, ListItemType, _default$e as ListItems, ListOption, ListOptionsProps, ListSelect, ListSelectProps, ListSimple, _default$f as Loading, LouseConnect, _default$_ as MediaPlayer, Modal, ModalCalendar, ModalSheet, NavigationBar, NoInternetConnection, NotSupportModal, NotesCardText, NotesEditor, PasswordInput, _default$4 as PaymentCalendarFeature, _default$6 as PaymentSessionsList, _default$10 as PersonDateTimeCard, _default$m as Picture, _default$u as ProfileInformation, _default$H as ProfileView, _default$x as ProgressBar, ProgressBarDashed, _default$g as ProgressBar_v2, PushNotificationsIsDisabledBanner, PushNotificationsModal, Range, _default$i as Rating, RatingCircleWrapper, _default$K as ReSchedule, ReScheduleSuccess, Refresher, ReviewCard, _default$3 as ReviewCardFeature, ReviewStatistics, ReviewSwiperSection, RoundButton, RowItemType, RowSelect, RowSelectProps, SIZES, ScreenInput, ScreenInputUpdateFeature, ScrollTabs, SectionHeading, Segment, SegmentColor, SegmentType, _default$$ as SelectImpressionEmoji, SelectItemType, ShareModalFeature, _default$P as SignUpSessionButton, _default$M as SignUpSessionModal, Skeleton, _default$o as Skeleton_v2, _default$b as SlotsGrid, _default$a as SlotsGridItem, _default$G as SpecialistAbout, SpecialistCard$1 as SpecialistCard, SpecialistCardListWidget, _default$2 as SpecialistCardWidget, _default$U as SpecialistEducationCard, SpecialistInfoColumnFeature as SpecialistInfoColumn, SpecialistLangs, _default$t as SpecialistMatch, _default$8 as SpecialistPaymentCommonCardFeature, SpecialistPaymentCommonCardSkeleton, _default$7 as SpecialistPaymentConsultationsFeature, _default as SpecialistPaymentResumeWidget, _default$1 as SpecialistPaymentWidget, _default$T as SpecialistProfileViewCard, SpecialistShortInfoItemFeature as SpecialistShortInfoItem, _default$s as SpecialistStatistic, SpecialistStatisticsCard, SpecialistWorkDirections, Spinner, Spinner_v2, StarRating, StatisticsScroll, StatusTag, SuccessScreen, SwitchDeviceCard, TabBar, TabItem, Tabs, Tag, _default$C as TextInput, _default$V as Textarea, _default$j as Textarea_v2, ThemeProvider, ThemeProviderProps, TherapistCard, TherapistInformationComponent, Toast, ToastButton, ToastContext, ToastProps, ToastProvider, ToastRegion, Toggle, TooltipComponent, _default$r as Typography, TypographyVariantsEnum, UpdatesCard, UserInfoModal, UsersPsychologistScrollList, VerticalCalendar, VerticalCalendarMonthSkeleton, VerticalCalendarSkeleton, _default$c as Video, _default$R as VideoCallInfo, _default$S as VideoPlayer, _default$I as WorkDirections, YourLocalTimeBlock, appThemes, decOfNum, getProgressForBreakPoint, mergeRefs, newShade, priceNormalize, toast, useAutoFocus, useBreakPointsPosition, useCircleRatingRenderData, useDomRef, useEvent, useRangeIndex, useRatingCircleBreakPoints, useRatingCircleContentValue, useRatingCircleLegend, useRatingContext, useToastContext };
|