@mirantes-micro/foundation-design-system 1.2.81 → 1.2.83
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/add-number-image-GFFZ6KT6.jpg +0 -0
- package/dist/index.d.ts +161 -3
- package/dist/index.js +150 -146
- package/package.json +151 -150
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -108,6 +108,7 @@ type User$2 = {
|
|
|
108
108
|
phone: string;
|
|
109
109
|
currentCompany?: string;
|
|
110
110
|
isOpenToWork: boolean;
|
|
111
|
+
isActive: boolean;
|
|
111
112
|
avatar: string;
|
|
112
113
|
accessToken: string;
|
|
113
114
|
refreshToken: string;
|
|
@@ -510,6 +511,157 @@ declare function ChatListWrapper({ isChatOpen, isCompactMode }: {
|
|
|
510
511
|
isCompactMode?: boolean;
|
|
511
512
|
}): React__default.JSX.Element;
|
|
512
513
|
|
|
514
|
+
interface IMessage {
|
|
515
|
+
id?: string;
|
|
516
|
+
conversationId?: string;
|
|
517
|
+
senderId?: string;
|
|
518
|
+
pageId?: string;
|
|
519
|
+
sender?: {
|
|
520
|
+
name?: string;
|
|
521
|
+
slug?: string;
|
|
522
|
+
avatar?: string;
|
|
523
|
+
id?: string;
|
|
524
|
+
};
|
|
525
|
+
attachments?: {
|
|
526
|
+
type?: string;
|
|
527
|
+
url?: string;
|
|
528
|
+
}[];
|
|
529
|
+
body?: string;
|
|
530
|
+
content?: string;
|
|
531
|
+
actions?: string;
|
|
532
|
+
replyMessageId?: string;
|
|
533
|
+
replyMessage?: IMessage;
|
|
534
|
+
createdAt?: Date;
|
|
535
|
+
updatedAt?: Date;
|
|
536
|
+
totalReactions?: number;
|
|
537
|
+
myReaction?: string | null;
|
|
538
|
+
reactions?: {
|
|
539
|
+
reaction?: string;
|
|
540
|
+
count?: number;
|
|
541
|
+
}[];
|
|
542
|
+
isForwarded?: boolean;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
type MessageApp = {
|
|
546
|
+
id: string;
|
|
547
|
+
component: React__default.ReactNode;
|
|
548
|
+
};
|
|
549
|
+
type TOption = "add-participant" | "select-messages" | "new-group" | "edit-group" | "new-message" | "filter-all" | "filter-unread" | "filter-favorites" | "filter-groups" | "filter-recruitment" | "filter-main" | "filter-archived" | "filter-spam" | "filter-muted" | "filter-pinned" | "options";
|
|
550
|
+
type TMessageSubject = "service-request" | "service-request-demo" | "support" | "careers" | "other";
|
|
551
|
+
type UnreadState = {
|
|
552
|
+
count: number;
|
|
553
|
+
dot: boolean;
|
|
554
|
+
};
|
|
555
|
+
interface IUser {
|
|
556
|
+
id?: string;
|
|
557
|
+
name?: string;
|
|
558
|
+
avatar?: string;
|
|
559
|
+
isOnline?: boolean;
|
|
560
|
+
email?: string;
|
|
561
|
+
role?: string;
|
|
562
|
+
isGroupOwner?: boolean;
|
|
563
|
+
slug?: string;
|
|
564
|
+
conversationId?: string;
|
|
565
|
+
description?: string;
|
|
566
|
+
isGroup?: boolean;
|
|
567
|
+
isMuted?: boolean;
|
|
568
|
+
participants?: IUser[];
|
|
569
|
+
asPage?: boolean;
|
|
570
|
+
isGroupAdmin?: boolean;
|
|
571
|
+
}
|
|
572
|
+
type TMessage = {
|
|
573
|
+
id: string;
|
|
574
|
+
type: "text" | "audio" | "image" | "video" | "file" | "temporary";
|
|
575
|
+
content: string;
|
|
576
|
+
timestamp: number;
|
|
577
|
+
sender: "me" | "other" | {
|
|
578
|
+
name?: string;
|
|
579
|
+
avatar?: string;
|
|
580
|
+
id?: string;
|
|
581
|
+
slug?: string;
|
|
582
|
+
};
|
|
583
|
+
replyMessageId?: string;
|
|
584
|
+
isTemporary?: boolean;
|
|
585
|
+
attachmentType?: "image" | "audio" | "video" | "gif" | "file";
|
|
586
|
+
body?: string;
|
|
587
|
+
createdAt?: string;
|
|
588
|
+
senderId?: string;
|
|
589
|
+
replyMessage?: any;
|
|
590
|
+
};
|
|
591
|
+
type State = {
|
|
592
|
+
replyMessage?: IMessage | null;
|
|
593
|
+
setReplyMessage?: (message: IMessage | null) => void;
|
|
594
|
+
apps: MessageApp[];
|
|
595
|
+
selectedAppId: string | null;
|
|
596
|
+
setSelectedApp: (id: string) => void;
|
|
597
|
+
chatHeaderOption?: TOption;
|
|
598
|
+
onSelectChatHeaderOption?: (id: TOption) => void;
|
|
599
|
+
subject?: TMessageSubject;
|
|
600
|
+
onSelectMessageSubject?: (id: TMessageSubject) => void;
|
|
601
|
+
searchQuery?: string;
|
|
602
|
+
onSearchQuery?: (value: string) => void;
|
|
603
|
+
searchMessage?: string;
|
|
604
|
+
onSearchMessage?: (value: string) => void;
|
|
605
|
+
selectedChat?: IUser | null;
|
|
606
|
+
onSelectChat?: (user: IUser | null) => void;
|
|
607
|
+
messages: Record<string, TMessage[]>;
|
|
608
|
+
draftMessages: Record<string, string>;
|
|
609
|
+
setDraftMessage: (chatId: string, text: string) => void;
|
|
610
|
+
sendTextMessage: (chatId: string, text: string) => void;
|
|
611
|
+
sendAudioMessage: (chatId: string, blob: Blob) => void;
|
|
612
|
+
addTemporaryMessage: (conversationId: string, content: string, attachmentType?: "image" | "audio" | "video" | "gif" | "file", messageId?: string) => void;
|
|
613
|
+
removeTemporaryMessage: (conversationId: string, messageId: string) => void;
|
|
614
|
+
unreadChats: Record<string, UnreadState>;
|
|
615
|
+
markChatAsRead: (id?: string) => void;
|
|
616
|
+
incrementUnread: (id: string) => void;
|
|
617
|
+
resetUnread: (id?: string) => void;
|
|
618
|
+
clearDot: (id?: string) => void;
|
|
619
|
+
replaceTempConversationId: (tempId: string, realId: string) => void;
|
|
620
|
+
selectedUsers: IUser[];
|
|
621
|
+
addUser: (user: IUser) => void;
|
|
622
|
+
removeUser: (userId: string) => void;
|
|
623
|
+
resetSelectedUsers?: () => void;
|
|
624
|
+
groupToEdit?: {
|
|
625
|
+
id?: string;
|
|
626
|
+
name?: string;
|
|
627
|
+
description?: string;
|
|
628
|
+
participants?: string[];
|
|
629
|
+
image?: string;
|
|
630
|
+
} | null;
|
|
631
|
+
onEditGroup?: (group?: {
|
|
632
|
+
id?: string;
|
|
633
|
+
name?: string;
|
|
634
|
+
description?: string;
|
|
635
|
+
participants?: string[];
|
|
636
|
+
image?: string;
|
|
637
|
+
}) => void;
|
|
638
|
+
resetAll?: () => void;
|
|
639
|
+
selectedMessageIds: string[];
|
|
640
|
+
selectMessage: (id: string) => void;
|
|
641
|
+
clearSelectedMessages: () => void;
|
|
642
|
+
deleteSelectedMessages: () => void;
|
|
643
|
+
mobileSelectedMessageId: string | null;
|
|
644
|
+
setMobileSelectedMessage: (id: string | null) => void;
|
|
645
|
+
forwardMessageIds: string[];
|
|
646
|
+
selectForwardMessage: (id: string) => void;
|
|
647
|
+
clearForwardMessages: () => void;
|
|
648
|
+
forwardTargets: Array<{
|
|
649
|
+
userId?: string;
|
|
650
|
+
conversationId?: string;
|
|
651
|
+
}>;
|
|
652
|
+
selectForwardTarget: (target: {
|
|
653
|
+
userId?: string;
|
|
654
|
+
conversationId?: string;
|
|
655
|
+
}) => void;
|
|
656
|
+
removeForwardTarget: (target: {
|
|
657
|
+
userId?: string;
|
|
658
|
+
conversationId?: string;
|
|
659
|
+
}) => void;
|
|
660
|
+
clearForwardTargets: () => void;
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
declare const useMessageAppStore: zustand.UseBoundStore<zustand.StoreApi<State>>;
|
|
664
|
+
|
|
513
665
|
interface JobTriggerState {
|
|
514
666
|
isJobOpen: boolean;
|
|
515
667
|
openJob: () => void;
|
|
@@ -729,8 +881,7 @@ type AddRatingProps = {
|
|
|
729
881
|
receiverUserId?: string;
|
|
730
882
|
className?: string;
|
|
731
883
|
};
|
|
732
|
-
declare function AddRating({ enableTitle, variantStars, starSize,
|
|
733
|
-
forAPage, receiverPageId, receiverUserId, className, }: AddRatingProps): React__default.JSX.Element;
|
|
884
|
+
declare function AddRating({ enableTitle, variantStars, starSize, forAPage, receiverPageId, receiverUserId, className, }: AddRatingProps): React__default.JSX.Element;
|
|
734
885
|
|
|
735
886
|
interface PageFloatFooterProps {
|
|
736
887
|
/**
|
|
@@ -954,6 +1105,13 @@ interface SharePostModalProps {
|
|
|
954
1105
|
}
|
|
955
1106
|
declare const SharePostModal: ({ isOpen, onClose, post, variant }: SharePostModalProps) => React__default.JSX.Element;
|
|
956
1107
|
|
|
1108
|
+
interface IActivateAccountModalProps {
|
|
1109
|
+
isOpen: boolean;
|
|
1110
|
+
onClose?: () => void;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
declare function ActivateAccountModal({ isOpen, onClose }: IActivateAccountModalProps): React__default.JSX.Element;
|
|
1114
|
+
|
|
957
1115
|
type User = {
|
|
958
1116
|
id?: string;
|
|
959
1117
|
name?: string;
|
|
@@ -1273,4 +1431,4 @@ declare function useBestAssetVersion(assetId?: string): {
|
|
|
1273
1431
|
error: Error | null;
|
|
1274
1432
|
};
|
|
1275
1433
|
|
|
1276
|
-
export { AddRating, AddressAutocompleteInput, AnimatedModal, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, ChatListWrapper, ChatView, ChatViewDesktopPage, CheckBoxInput, ContactsModal, CountryDisplay, CountryInput, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, DownloadMobileVersionBanner, DownloadModalTrigger, GradientModal, Header, MessageButton, MessagesButtonFromPage, MirantesButton, MirantesFoundationProvider, NoRecruitmentResponsiveIlustration, PageFloatFooter, PagesFeedTrigger, RadioButtonInput, RatingsCard, RattingSuggestionCard, ReactPostButton, ResponsiveDrawer, SalaryInputWithButton, Calendar as ScheduleCalendar, SharePostModal, ShareProfile, ShareProfileButton, ShareProfileModal, Spinner, WorkspacePanel, clearSettingsCookie, closeLogoutChannel, getInitials, getSettingsFromCookie, joinUrlWithPathAndQuery, onLogout, stringToObj, useApiGetPage, useAssetVersions, useBestAssetVersion, useCandidaciesTriggerStore, useCommunityTriggerStore, useJobTriggerStore, useLoadSettings, useMirantesFoundation, useModalStore, useOportunitiesStore, usePeriodicDownloadBanner, useRestorePendingChat, useSetChatVisibility, useSignedUrl, useUploadAsset, useUploadAssetsBulk };
|
|
1434
|
+
export { ActivateAccountModal, AddRating, AddressAutocompleteInput, AnimatedModal, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, ChatListWrapper, ChatView, ChatViewDesktopPage, CheckBoxInput, ContactsModal, CountryDisplay, CountryInput, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, DownloadMobileVersionBanner, DownloadModalTrigger, GradientModal, Header, MessageButton, MessagesButtonFromPage, MirantesButton, MirantesFoundationProvider, NoRecruitmentResponsiveIlustration, PageFloatFooter, PagesFeedTrigger, RadioButtonInput, RatingsCard, RattingSuggestionCard, ReactPostButton, ResponsiveDrawer, SalaryInputWithButton, Calendar as ScheduleCalendar, SharePostModal, ShareProfile, ShareProfileButton, ShareProfileModal, Spinner, WorkspacePanel, clearSettingsCookie, closeLogoutChannel, getInitials, getSettingsFromCookie, joinUrlWithPathAndQuery, onLogout, stringToObj, useApiGetPage, useAssetVersions, useBestAssetVersion, useCandidaciesTriggerStore, useCommunityTriggerStore, useJobTriggerStore, useLoadSettings, useMessageAppStore, useMirantesFoundation, useModalStore, useOportunitiesStore, usePeriodicDownloadBanner, useRestorePendingChat, useSetChatVisibility, useSignedUrl, useUploadAsset, useUploadAssetsBulk };
|