@mirantes-micro/foundation-design-system 1.2.53 → 1.2.56

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +427 -6
  2. package/dist/index.js +651 -94
  3. package/package.json +149 -147
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { ReactNode, ChangeEvent, KeyboardEvent, FocusEvent } from 'react';
2
+ import React__default, { ReactNode, ChangeEvent, KeyboardEvent, FocusEvent, JSX } from 'react';
3
3
  import { QueryClient } from '@tanstack/react-query';
4
4
  import { AxiosInstance } from 'axios';
5
5
  import * as zustand from 'zustand';
@@ -45,7 +45,7 @@ interface IMirantesFoundationProviderProps {
45
45
  locale?: TLocale;
46
46
  Link?: LinkComponent;
47
47
  usePathname?: UsePathname;
48
- user?: User;
48
+ user?: User$2;
49
49
  isGettingUser?: boolean;
50
50
  isGettingStats?: boolean;
51
51
  hostUrl?: string;
@@ -72,7 +72,7 @@ interface IMirantesFoundationContext {
72
72
  Link?: LinkComponent;
73
73
  usePathname?: UsePathname;
74
74
  pageId?: string;
75
- user?: User;
75
+ user?: User$2;
76
76
  page?: {
77
77
  id?: string;
78
78
  slug?: string;
@@ -98,7 +98,7 @@ type CommonLinkProps = {
98
98
  replace?: boolean;
99
99
  [key: string]: any;
100
100
  };
101
- type User = {
101
+ type User$2 = {
102
102
  id: string;
103
103
  name: string;
104
104
  email: string;
@@ -593,9 +593,10 @@ interface OportunitiesState {
593
593
  }
594
594
  declare const useOportunitiesStore: zustand.UseBoundStore<zustand.StoreApi<OportunitiesState>>;
595
595
 
596
- declare function ChatContacts({ postId, onClose }: {
596
+ declare function ChatContacts({ postId, onClose, searchTerm }: {
597
597
  postId?: string;
598
598
  onClose?: () => void;
599
+ searchTerm?: string;
599
600
  }): React__default.JSX.Element;
600
601
 
601
602
  declare const DownloadMobileVersionBanner: () => React__default.JSX.Element;
@@ -736,6 +737,424 @@ declare const NoRecruitmentResponsiveIlustration: ({ className, }: {
736
737
  className?: string;
737
738
  }) => React__default.JSX.Element;
738
739
 
740
+ type User$1 = {
741
+ id?: string;
742
+ name?: string;
743
+ slug?: string;
744
+ about?: string;
745
+ email?: string;
746
+ phone?: string;
747
+ isOpenToWork?: boolean;
748
+ gender?: string;
749
+ banner?: string;
750
+ isContact?: boolean;
751
+ isFollowed?: boolean;
752
+ isFollowedBy?: boolean;
753
+ birthDate?: string;
754
+ nationality?: string;
755
+ headline?: string;
756
+ country?: string;
757
+ city?: string;
758
+ street?: string;
759
+ countryCode?: string;
760
+ profession?: string;
761
+ addresses?: {
762
+ country?: string;
763
+ city?: string;
764
+ address?: string;
765
+ }[];
766
+ address?: {
767
+ country?: string;
768
+ city?: string;
769
+ address?: string;
770
+ };
771
+ avatar?: string;
772
+ avatarDisplay?: string;
773
+ provider?: string;
774
+ role?: string;
775
+ status?: string;
776
+ createdAt?: string;
777
+ updatedAt?: string;
778
+ isPublic?: boolean;
779
+ currentCompany?: string;
780
+ person?: IPerson$1;
781
+ link?: string;
782
+ links?: string[];
783
+ };
784
+ interface IPerson$1 {
785
+ gender?: string;
786
+ birthDate?: Date;
787
+ nationality?: string;
788
+ maritalStatus?: string;
789
+ salaryExpectation?: string;
790
+ countryCode?: string;
791
+ }
792
+ type PostAttachmentProps$1 = {
793
+ title?: string;
794
+ description?: string;
795
+ imageUrl?: string;
796
+ url?: string;
797
+ type: string;
798
+ };
799
+ type Post$1 = {
800
+ user: User$1;
801
+ postType: "NORMAL" | "REEL";
802
+ id: string;
803
+ createdAt: string;
804
+ scheduledAt?: string;
805
+ bio: string;
806
+ content: string;
807
+ totalShares: number;
808
+ totalReactions?: number;
809
+ totalComments?: number;
810
+ attachment?: PostAttachmentProps$1;
811
+ isFollowed?: boolean;
812
+ isContact?: boolean;
813
+ isArticle?: boolean;
814
+ expiresAt?: string | null;
815
+ link: {
816
+ title: string;
817
+ description: string;
818
+ imageUrl: string;
819
+ url: string;
820
+ };
821
+ images: PostAssetProps$1[];
822
+ videos: PostAssetProps$1[];
823
+ reactions: PostReactionsProps$1[];
824
+ comments: CommentProps$1[];
825
+ sharedPostId: string;
826
+ page?: {
827
+ id?: string;
828
+ name?: string;
829
+ slug?: string;
830
+ sector?: string;
831
+ banner?: string;
832
+ logo?: string;
833
+ site?: string;
834
+ };
835
+ media?: unknown;
836
+ linkPreview?: unknown;
837
+ visibility?: string;
838
+ sharedPost: Post$1;
839
+ title?: string;
840
+ stats?: {
841
+ reactionCount?: number;
842
+ commentCount?: number;
843
+ shareCount?: number;
844
+ };
845
+ sharedContext?: unknown;
846
+ mention?: {
847
+ id: string;
848
+ mentionedId: string;
849
+ mentioned: User$1;
850
+ }[];
851
+ community?: {
852
+ id: string;
853
+ visibility: string;
854
+ slug: string;
855
+ banner?: string;
856
+ createdAt?: string;
857
+ description?: string;
858
+ image?: string;
859
+ location?: string;
860
+ name: string;
861
+ owner: {
862
+ id: string;
863
+ name: string;
864
+ slug: string;
865
+ email?: string;
866
+ };
867
+ ownerId: string;
868
+ members?: {
869
+ userId: string;
870
+ user: {
871
+ id: string;
872
+ name: string;
873
+ slug: string;
874
+ };
875
+ }[];
876
+ };
877
+ userId?: string;
878
+ sharedInCommunity?: {
879
+ id: string;
880
+ slug: string;
881
+ visibility: string;
882
+ name: string;
883
+ banner?: string;
884
+ image?: string;
885
+ location?: string;
886
+ ownerId: string;
887
+ owner: {
888
+ id: string;
889
+ slug: string;
890
+ name: string;
891
+ };
892
+ };
893
+ communityId?: string;
894
+ };
895
+ type PostAssetProps$1 = {
896
+ id: string;
897
+ url: string;
898
+ type?: "image" | "video" | "pdf";
899
+ createdAt?: string;
900
+ };
901
+ type PostReactionsProps$1 = {
902
+ id: string;
903
+ userId: string;
904
+ postId: string;
905
+ reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY";
906
+ createdAt: string;
907
+ updatedAt: string;
908
+ user: User$1;
909
+ };
910
+ type CommentReactionsProps$1 = {
911
+ id: string;
912
+ userId: string;
913
+ commentId: string;
914
+ reaction: "LIKE" | "LOVE" | "HAHA" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT";
915
+ createdAt: string;
916
+ updatedAt: string;
917
+ user?: User$1;
918
+ };
919
+ type CommentProps$1 = {
920
+ id: string;
921
+ userId: string;
922
+ postId: string;
923
+ answerId: string;
924
+ content: string;
925
+ imageUrl: string;
926
+ createdAt: string;
927
+ updatedAt: string;
928
+ user: User$1;
929
+ reactions: CommentReactionsProps$1[];
930
+ totalReactions?: number;
931
+ answers: CommentProps$1[];
932
+ totalAnswers: number;
933
+ page?: {
934
+ id: string;
935
+ name: string;
936
+ slug: string;
937
+ sector: string;
938
+ };
939
+ };
940
+
941
+ interface SharePostModalProps {
942
+ isOpen: boolean;
943
+ onClose: () => void;
944
+ post: Post$1;
945
+ variant?: "share" | "repost";
946
+ }
947
+ declare const SharePostModal: ({ isOpen, onClose, post, variant }: SharePostModalProps) => React__default.JSX.Element;
948
+
949
+ type User = {
950
+ id?: string;
951
+ name?: string;
952
+ slug?: string;
953
+ about?: string;
954
+ email?: string;
955
+ phone?: string;
956
+ isOpenToWork?: boolean;
957
+ gender?: string;
958
+ banner?: string;
959
+ isContact?: boolean;
960
+ isFollowed?: boolean;
961
+ isFollowedBy?: boolean;
962
+ birthDate?: string;
963
+ nationality?: string;
964
+ headline?: string;
965
+ country?: string;
966
+ city?: string;
967
+ street?: string;
968
+ countryCode?: string;
969
+ profession?: string;
970
+ addresses?: {
971
+ country?: string;
972
+ city?: string;
973
+ address?: string;
974
+ }[];
975
+ address?: {
976
+ country?: string;
977
+ city?: string;
978
+ address?: string;
979
+ };
980
+ avatar?: string;
981
+ avatarDisplay?: string;
982
+ provider?: string;
983
+ role?: string;
984
+ status?: string;
985
+ createdAt?: string;
986
+ updatedAt?: string;
987
+ isPublic?: boolean;
988
+ currentCompany?: string;
989
+ person?: IPerson;
990
+ link?: string;
991
+ links?: string[];
992
+ };
993
+ interface IPerson {
994
+ gender?: string;
995
+ birthDate?: Date;
996
+ nationality?: string;
997
+ maritalStatus?: string;
998
+ salaryExpectation?: string;
999
+ countryCode?: string;
1000
+ }
1001
+
1002
+ type PostAttachmentProps = {
1003
+ title?: string;
1004
+ description?: string;
1005
+ imageUrl?: string;
1006
+ url?: string;
1007
+ type: string;
1008
+ };
1009
+ type Post = {
1010
+ user: User;
1011
+ postType: "NORMAL" | "REEL";
1012
+ id: string;
1013
+ createdAt: string;
1014
+ scheduledAt?: string;
1015
+ bio: string;
1016
+ content: string;
1017
+ totalShares: number;
1018
+ totalReactions?: number;
1019
+ totalComments?: number;
1020
+ attachment?: PostAttachmentProps;
1021
+ isFollowed?: boolean;
1022
+ isContact?: boolean;
1023
+ isArticle?: boolean;
1024
+ expiresAt?: string | null;
1025
+ link: {
1026
+ title: string;
1027
+ description: string;
1028
+ imageUrl: string;
1029
+ url: string;
1030
+ };
1031
+ images: PostAssetProps[];
1032
+ videos: PostAssetProps[];
1033
+ reactions: PostReactionsProps[];
1034
+ comments: CommentProps[];
1035
+ sharedPostId: string;
1036
+ page?: {
1037
+ id?: string;
1038
+ name?: string;
1039
+ slug?: string;
1040
+ sector?: string;
1041
+ banner?: string;
1042
+ logo?: string;
1043
+ site?: string;
1044
+ };
1045
+ media?: unknown;
1046
+ linkPreview?: unknown;
1047
+ visibility?: string;
1048
+ sharedPost: Post;
1049
+ title?: string;
1050
+ stats?: {
1051
+ reactionCount?: number;
1052
+ commentCount?: number;
1053
+ shareCount?: number;
1054
+ };
1055
+ sharedContext?: unknown;
1056
+ mention?: {
1057
+ id: string;
1058
+ mentionedId: string;
1059
+ mentioned: User;
1060
+ }[];
1061
+ community?: {
1062
+ id: string;
1063
+ visibility: string;
1064
+ slug: string;
1065
+ banner?: string;
1066
+ createdAt?: string;
1067
+ description?: string;
1068
+ image?: string;
1069
+ location?: string;
1070
+ name: string;
1071
+ owner: {
1072
+ id: string;
1073
+ name: string;
1074
+ slug: string;
1075
+ email?: string;
1076
+ };
1077
+ ownerId: string;
1078
+ members?: {
1079
+ userId: string;
1080
+ user: {
1081
+ id: string;
1082
+ name: string;
1083
+ slug: string;
1084
+ };
1085
+ }[];
1086
+ };
1087
+ userId?: string;
1088
+ sharedInCommunity?: {
1089
+ id: string;
1090
+ slug: string;
1091
+ visibility: string;
1092
+ name: string;
1093
+ banner?: string;
1094
+ image?: string;
1095
+ location?: string;
1096
+ ownerId: string;
1097
+ owner: {
1098
+ id: string;
1099
+ slug: string;
1100
+ name: string;
1101
+ };
1102
+ };
1103
+ communityId?: string;
1104
+ };
1105
+ type PostAssetProps = {
1106
+ id: string;
1107
+ url: string;
1108
+ type?: "image" | "video" | "pdf";
1109
+ createdAt?: string;
1110
+ };
1111
+ type PostReactionsProps = {
1112
+ id: string;
1113
+ userId: string;
1114
+ postId: string;
1115
+ reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY";
1116
+ createdAt: string;
1117
+ updatedAt: string;
1118
+ user: User;
1119
+ };
1120
+ type CommentReactionsProps = {
1121
+ id: string;
1122
+ userId: string;
1123
+ commentId: string;
1124
+ reaction: "LIKE" | "LOVE" | "HAHA" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT";
1125
+ createdAt: string;
1126
+ updatedAt: string;
1127
+ user?: User;
1128
+ };
1129
+ type CommentProps = {
1130
+ id: string;
1131
+ userId: string;
1132
+ postId: string;
1133
+ answerId: string;
1134
+ content: string;
1135
+ imageUrl: string;
1136
+ createdAt: string;
1137
+ updatedAt: string;
1138
+ user: User;
1139
+ reactions: CommentReactionsProps[];
1140
+ totalReactions?: number;
1141
+ answers: CommentProps[];
1142
+ totalAnswers: number;
1143
+ page?: {
1144
+ id: string;
1145
+ name: string;
1146
+ slug: string;
1147
+ sector: string;
1148
+ };
1149
+ };
1150
+
1151
+ declare function ReactPostButton({ post, hideLabel, className, orientation, }: {
1152
+ post: Post;
1153
+ hideLabel?: boolean;
1154
+ className?: string;
1155
+ orientation?: "vertical" | "horizontal";
1156
+ }): JSX.Element;
1157
+
739
1158
  interface TargetEntity {
740
1159
  id?: string;
741
1160
  name?: string;
@@ -754,4 +1173,6 @@ interface IMessageButtonProps {
754
1173
  }
755
1174
  declare function MessagesButtonFromPage({ user, label, className, disabled, onClick: customOnClick, variant, }: IMessageButtonProps): React__default.JSX.Element;
756
1175
 
757
- export { AddRating, AddressAutocompleteInput, AnimatedModal, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, 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, ResponsiveDrawer, SalaryInputWithButton, Calendar as ScheduleCalendar, ShareProfile, ShareProfileButton, ShareProfileModal, Spinner, WorkspacePanel, clearSettingsCookie, closeLogoutChannel, getInitials, getSettingsFromCookie, joinUrlWithPathAndQuery, onLogout, stringToObj, useApiGetPage, useCandidaciesTriggerStore, useCommunityTriggerStore, useJobTriggerStore, useLoadSettings, useMirantesFoundation, useModalStore, useOportunitiesStore, usePeriodicDownloadBanner, useSetChatVisibility };
1176
+ declare function useRestorePendingChat(): void;
1177
+
1178
+ export { AddRating, AddressAutocompleteInput, AnimatedModal, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, 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, useCandidaciesTriggerStore, useCommunityTriggerStore, useJobTriggerStore, useLoadSettings, useMirantesFoundation, useModalStore, useOportunitiesStore, usePeriodicDownloadBanner, useRestorePendingChat, useSetChatVisibility };