@mirantes-micro/foundation-design-system 1.2.147 → 1.2.149
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.d.ts +332 -52
- package/dist/index.js +136 -136
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ interface IMirantesFoundationProviderProps {
|
|
|
59
59
|
locale?: TLocale;
|
|
60
60
|
Link?: LinkComponent;
|
|
61
61
|
usePathname?: UsePathname;
|
|
62
|
-
user?: User$
|
|
62
|
+
user?: User$3;
|
|
63
63
|
isGettingUser?: boolean;
|
|
64
64
|
isGettingStats?: boolean;
|
|
65
65
|
hostUrl?: string;
|
|
@@ -86,7 +86,7 @@ interface IMirantesFoundationContext {
|
|
|
86
86
|
locale?: TLocale;
|
|
87
87
|
Link?: LinkComponent;
|
|
88
88
|
usePathname?: UsePathname;
|
|
89
|
-
user?: User$
|
|
89
|
+
user?: User$3;
|
|
90
90
|
isPageFeed?: boolean;
|
|
91
91
|
isCommunityFeed?: boolean;
|
|
92
92
|
community?: {
|
|
@@ -124,7 +124,7 @@ type CommonLinkProps = {
|
|
|
124
124
|
replace?: boolean;
|
|
125
125
|
[key: string]: any;
|
|
126
126
|
};
|
|
127
|
-
type User$
|
|
127
|
+
type User$3 = {
|
|
128
128
|
id: string;
|
|
129
129
|
name: string;
|
|
130
130
|
email: string;
|
|
@@ -1008,7 +1008,7 @@ declare const useApiCheckRater: ({ userId, pageId, communityId, forAPage, }: {
|
|
|
1008
1008
|
isCheckingRater: boolean;
|
|
1009
1009
|
};
|
|
1010
1010
|
|
|
1011
|
-
type User$
|
|
1011
|
+
type User$2 = {
|
|
1012
1012
|
id?: string;
|
|
1013
1013
|
name?: string;
|
|
1014
1014
|
slug?: string;
|
|
@@ -1048,11 +1048,11 @@ type User$1 = {
|
|
|
1048
1048
|
updatedAt?: string;
|
|
1049
1049
|
isPublic?: boolean;
|
|
1050
1050
|
currentCompany?: string;
|
|
1051
|
-
person?: IPerson$
|
|
1051
|
+
person?: IPerson$2;
|
|
1052
1052
|
link?: string;
|
|
1053
1053
|
links?: string[];
|
|
1054
1054
|
};
|
|
1055
|
-
interface IPerson$
|
|
1055
|
+
interface IPerson$2 {
|
|
1056
1056
|
gender?: string;
|
|
1057
1057
|
birthDate?: Date;
|
|
1058
1058
|
nationality?: string;
|
|
@@ -1060,15 +1060,15 @@ interface IPerson$1 {
|
|
|
1060
1060
|
salaryExpectation?: string;
|
|
1061
1061
|
countryCode?: string;
|
|
1062
1062
|
}
|
|
1063
|
-
type PostAttachmentProps$
|
|
1063
|
+
type PostAttachmentProps$2 = {
|
|
1064
1064
|
title?: string;
|
|
1065
1065
|
description?: string;
|
|
1066
1066
|
imageUrl?: string;
|
|
1067
1067
|
url?: string;
|
|
1068
1068
|
type: string;
|
|
1069
1069
|
};
|
|
1070
|
-
type Post$
|
|
1071
|
-
user: User$
|
|
1070
|
+
type Post$2 = {
|
|
1071
|
+
user: User$2;
|
|
1072
1072
|
postType: "NORMAL" | "REEL";
|
|
1073
1073
|
id: string;
|
|
1074
1074
|
createdAt: string;
|
|
@@ -1078,7 +1078,7 @@ type Post$1 = {
|
|
|
1078
1078
|
totalShares: number;
|
|
1079
1079
|
totalReactions?: number;
|
|
1080
1080
|
totalComments?: number;
|
|
1081
|
-
attachment?: PostAttachmentProps$
|
|
1081
|
+
attachment?: PostAttachmentProps$2;
|
|
1082
1082
|
isFollowed?: boolean;
|
|
1083
1083
|
isContact?: boolean;
|
|
1084
1084
|
isArticle?: boolean;
|
|
@@ -1089,10 +1089,10 @@ type Post$1 = {
|
|
|
1089
1089
|
imageUrl: string;
|
|
1090
1090
|
url: string;
|
|
1091
1091
|
};
|
|
1092
|
-
images: PostAssetProps$
|
|
1093
|
-
videos: PostAssetProps$
|
|
1094
|
-
reactions: PostReactionsProps$
|
|
1095
|
-
comments: CommentProps$
|
|
1092
|
+
images: PostAssetProps$2[];
|
|
1093
|
+
videos: PostAssetProps$2[];
|
|
1094
|
+
reactions: PostReactionsProps$2[];
|
|
1095
|
+
comments: CommentProps$2[];
|
|
1096
1096
|
sharedPostId: string;
|
|
1097
1097
|
page?: {
|
|
1098
1098
|
id?: string;
|
|
@@ -1106,7 +1106,7 @@ type Post$1 = {
|
|
|
1106
1106
|
media?: unknown;
|
|
1107
1107
|
linkPreview?: unknown;
|
|
1108
1108
|
visibility?: string;
|
|
1109
|
-
sharedPost: Post$
|
|
1109
|
+
sharedPost: Post$2;
|
|
1110
1110
|
title?: string;
|
|
1111
1111
|
stats?: {
|
|
1112
1112
|
reactionCount?: number;
|
|
@@ -1117,7 +1117,7 @@ type Post$1 = {
|
|
|
1117
1117
|
mention?: {
|
|
1118
1118
|
id: string;
|
|
1119
1119
|
mentionedId: string;
|
|
1120
|
-
mentioned: User$
|
|
1120
|
+
mentioned: User$2;
|
|
1121
1121
|
}[];
|
|
1122
1122
|
community?: {
|
|
1123
1123
|
id: string;
|
|
@@ -1163,31 +1163,31 @@ type Post$1 = {
|
|
|
1163
1163
|
};
|
|
1164
1164
|
communityId?: string;
|
|
1165
1165
|
};
|
|
1166
|
-
type PostAssetProps$
|
|
1166
|
+
type PostAssetProps$2 = {
|
|
1167
1167
|
id: string;
|
|
1168
1168
|
url: string;
|
|
1169
1169
|
type?: "image" | "video" | "pdf";
|
|
1170
1170
|
createdAt?: string;
|
|
1171
1171
|
};
|
|
1172
|
-
type PostReactionsProps$
|
|
1172
|
+
type PostReactionsProps$2 = {
|
|
1173
1173
|
id: string;
|
|
1174
1174
|
userId: string;
|
|
1175
1175
|
postId: string;
|
|
1176
1176
|
reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY";
|
|
1177
1177
|
createdAt: string;
|
|
1178
1178
|
updatedAt: string;
|
|
1179
|
-
user: User$
|
|
1179
|
+
user: User$2;
|
|
1180
1180
|
};
|
|
1181
|
-
type CommentReactionsProps$
|
|
1181
|
+
type CommentReactionsProps$2 = {
|
|
1182
1182
|
id: string;
|
|
1183
1183
|
userId: string;
|
|
1184
1184
|
commentId: string;
|
|
1185
1185
|
reaction: "LIKE" | "LOVE" | "HAHA" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT";
|
|
1186
1186
|
createdAt: string;
|
|
1187
1187
|
updatedAt: string;
|
|
1188
|
-
user?: User$
|
|
1188
|
+
user?: User$2;
|
|
1189
1189
|
};
|
|
1190
|
-
type CommentProps$
|
|
1190
|
+
type CommentProps$2 = {
|
|
1191
1191
|
id: string;
|
|
1192
1192
|
userId: string;
|
|
1193
1193
|
postId: string;
|
|
@@ -1196,10 +1196,10 @@ type CommentProps$1 = {
|
|
|
1196
1196
|
imageUrl: string;
|
|
1197
1197
|
createdAt: string;
|
|
1198
1198
|
updatedAt: string;
|
|
1199
|
-
user: User$
|
|
1200
|
-
reactions: CommentReactionsProps$
|
|
1199
|
+
user: User$2;
|
|
1200
|
+
reactions: CommentReactionsProps$2[];
|
|
1201
1201
|
totalReactions?: number;
|
|
1202
|
-
answers: CommentProps$
|
|
1202
|
+
answers: CommentProps$2[];
|
|
1203
1203
|
totalAnswers: number;
|
|
1204
1204
|
page?: {
|
|
1205
1205
|
id: string;
|
|
@@ -1212,7 +1212,7 @@ type CommentProps$1 = {
|
|
|
1212
1212
|
interface SharePostModalProps {
|
|
1213
1213
|
isOpen: boolean;
|
|
1214
1214
|
onClose: () => void;
|
|
1215
|
-
post: Post$
|
|
1215
|
+
post: Post$2;
|
|
1216
1216
|
variant?: "share" | "repost";
|
|
1217
1217
|
}
|
|
1218
1218
|
declare const SharePostModal: ({ isOpen, onClose, post, variant }: SharePostModalProps) => React__default.JSX.Element;
|
|
@@ -1224,7 +1224,7 @@ interface IActivateAccountModalProps {
|
|
|
1224
1224
|
|
|
1225
1225
|
declare function ActivateAccountModal({ isOpen, onClose }: IActivateAccountModalProps): React__default.JSX.Element;
|
|
1226
1226
|
|
|
1227
|
-
type User = {
|
|
1227
|
+
type User$1 = {
|
|
1228
1228
|
id?: string;
|
|
1229
1229
|
name?: string;
|
|
1230
1230
|
slug?: string;
|
|
@@ -1264,11 +1264,11 @@ type User = {
|
|
|
1264
1264
|
updatedAt?: string;
|
|
1265
1265
|
isPublic?: boolean;
|
|
1266
1266
|
currentCompany?: string;
|
|
1267
|
-
person?: IPerson;
|
|
1267
|
+
person?: IPerson$1;
|
|
1268
1268
|
link?: string;
|
|
1269
1269
|
links?: string[];
|
|
1270
1270
|
};
|
|
1271
|
-
interface IPerson {
|
|
1271
|
+
interface IPerson$1 {
|
|
1272
1272
|
gender?: string;
|
|
1273
1273
|
birthDate?: Date;
|
|
1274
1274
|
nationality?: string;
|
|
@@ -1277,15 +1277,15 @@ interface IPerson {
|
|
|
1277
1277
|
countryCode?: string;
|
|
1278
1278
|
}
|
|
1279
1279
|
|
|
1280
|
-
type PostAttachmentProps = {
|
|
1280
|
+
type PostAttachmentProps$1 = {
|
|
1281
1281
|
title?: string;
|
|
1282
1282
|
description?: string;
|
|
1283
1283
|
imageUrl?: string;
|
|
1284
1284
|
url?: string;
|
|
1285
1285
|
type: string;
|
|
1286
1286
|
};
|
|
1287
|
-
type Post = {
|
|
1288
|
-
user: User;
|
|
1287
|
+
type Post$1 = {
|
|
1288
|
+
user: User$1;
|
|
1289
1289
|
postType: "NORMAL" | "REEL" | "ARTICLE";
|
|
1290
1290
|
id: string;
|
|
1291
1291
|
createdAt: string;
|
|
@@ -1295,7 +1295,7 @@ type Post = {
|
|
|
1295
1295
|
totalShares: number;
|
|
1296
1296
|
totalReactions?: number;
|
|
1297
1297
|
totalComments?: number;
|
|
1298
|
-
attachment?: PostAttachmentProps;
|
|
1298
|
+
attachment?: PostAttachmentProps$1;
|
|
1299
1299
|
isFollowed?: boolean;
|
|
1300
1300
|
isContact?: boolean;
|
|
1301
1301
|
isArticle?: boolean;
|
|
@@ -1307,10 +1307,10 @@ type Post = {
|
|
|
1307
1307
|
imageUrl: string;
|
|
1308
1308
|
url: string;
|
|
1309
1309
|
};
|
|
1310
|
-
images: PostAssetProps[];
|
|
1311
|
-
videos: PostAssetProps[];
|
|
1312
|
-
reactions: PostReactionsProps[];
|
|
1313
|
-
comments: CommentProps[];
|
|
1310
|
+
images: PostAssetProps$1[];
|
|
1311
|
+
videos: PostAssetProps$1[];
|
|
1312
|
+
reactions: PostReactionsProps$1[];
|
|
1313
|
+
comments: CommentProps$1[];
|
|
1314
1314
|
sharedPostId: string;
|
|
1315
1315
|
page?: {
|
|
1316
1316
|
id?: string;
|
|
@@ -1324,7 +1324,7 @@ type Post = {
|
|
|
1324
1324
|
media?: unknown;
|
|
1325
1325
|
linkPreview?: unknown;
|
|
1326
1326
|
visibility?: string;
|
|
1327
|
-
sharedPost: Post;
|
|
1327
|
+
sharedPost: Post$1;
|
|
1328
1328
|
title?: string;
|
|
1329
1329
|
stats?: {
|
|
1330
1330
|
reactionCount?: number;
|
|
@@ -1335,7 +1335,7 @@ type Post = {
|
|
|
1335
1335
|
mention?: {
|
|
1336
1336
|
id: string;
|
|
1337
1337
|
mentionedId: string;
|
|
1338
|
-
mentioned: User;
|
|
1338
|
+
mentioned: User$1;
|
|
1339
1339
|
}[];
|
|
1340
1340
|
community?: {
|
|
1341
1341
|
id: string;
|
|
@@ -1381,31 +1381,31 @@ type Post = {
|
|
|
1381
1381
|
};
|
|
1382
1382
|
communityId?: string;
|
|
1383
1383
|
};
|
|
1384
|
-
type PostAssetProps = {
|
|
1384
|
+
type PostAssetProps$1 = {
|
|
1385
1385
|
id: string;
|
|
1386
1386
|
url: string;
|
|
1387
1387
|
type?: "image" | "video" | "pdf";
|
|
1388
1388
|
createdAt?: string;
|
|
1389
1389
|
};
|
|
1390
|
-
type PostReactionsProps = {
|
|
1390
|
+
type PostReactionsProps$1 = {
|
|
1391
1391
|
id: string;
|
|
1392
1392
|
userId: string;
|
|
1393
1393
|
postId: string;
|
|
1394
1394
|
reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT" | "DISAGREE";
|
|
1395
1395
|
createdAt?: string;
|
|
1396
1396
|
updatedAt?: string;
|
|
1397
|
-
user?: User;
|
|
1397
|
+
user?: User$1;
|
|
1398
1398
|
};
|
|
1399
|
-
type CommentReactionsProps = {
|
|
1399
|
+
type CommentReactionsProps$1 = {
|
|
1400
1400
|
id: string;
|
|
1401
1401
|
userId: string;
|
|
1402
1402
|
commentId: string;
|
|
1403
1403
|
reaction: "LIKE" | "LOVE" | "HAHA" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT";
|
|
1404
1404
|
createdAt: string;
|
|
1405
1405
|
updatedAt: string;
|
|
1406
|
-
user?: User;
|
|
1406
|
+
user?: User$1;
|
|
1407
1407
|
};
|
|
1408
|
-
type CommentProps = {
|
|
1408
|
+
type CommentProps$1 = {
|
|
1409
1409
|
id: string;
|
|
1410
1410
|
userId: string;
|
|
1411
1411
|
postId: string;
|
|
@@ -1414,10 +1414,10 @@ type CommentProps = {
|
|
|
1414
1414
|
imageUrl: string;
|
|
1415
1415
|
createdAt: string;
|
|
1416
1416
|
updatedAt: string;
|
|
1417
|
-
user: User;
|
|
1418
|
-
reactions: CommentReactionsProps[];
|
|
1417
|
+
user: User$1;
|
|
1418
|
+
reactions: CommentReactionsProps$1[];
|
|
1419
1419
|
totalReactions?: number;
|
|
1420
|
-
answers: CommentProps[];
|
|
1420
|
+
answers: CommentProps$1[];
|
|
1421
1421
|
totalAnswers: number;
|
|
1422
1422
|
page?: {
|
|
1423
1423
|
id: string;
|
|
@@ -1428,7 +1428,7 @@ type CommentProps = {
|
|
|
1428
1428
|
};
|
|
1429
1429
|
|
|
1430
1430
|
declare function ReactPostButton({ post, hideLabel, className, orientation, }: {
|
|
1431
|
-
post: Post;
|
|
1431
|
+
post: Post$1;
|
|
1432
1432
|
hideLabel?: boolean;
|
|
1433
1433
|
className?: string;
|
|
1434
1434
|
orientation?: "vertical" | "horizontal";
|
|
@@ -1648,7 +1648,7 @@ type ArticleMedia = {
|
|
|
1648
1648
|
type ArticleState = {
|
|
1649
1649
|
title: string;
|
|
1650
1650
|
content: string;
|
|
1651
|
-
post: Post | null;
|
|
1651
|
+
post: Post$1 | null;
|
|
1652
1652
|
selectedProfile: Profile | null;
|
|
1653
1653
|
media: ArticleMedia[];
|
|
1654
1654
|
uploadedMedia: string[];
|
|
@@ -1665,7 +1665,7 @@ type ArticleState = {
|
|
|
1665
1665
|
currentDraftId: string | null;
|
|
1666
1666
|
setTitle: (title: string) => void;
|
|
1667
1667
|
setContent: (content: string) => void;
|
|
1668
|
-
setPost: (post: Post | null) => void;
|
|
1668
|
+
setPost: (post: Post$1 | null) => void;
|
|
1669
1669
|
setSelectedProfile: (profile: Profile | null) => void;
|
|
1670
1670
|
addMedia: (media: ArticleMedia) => void;
|
|
1671
1671
|
removeMedia: (id: string) => void;
|
|
@@ -1701,6 +1701,286 @@ declare const useArticleNavigation: () => {
|
|
|
1701
1701
|
|
|
1702
1702
|
declare function CreatePostCard(): React__default.JSX.Element;
|
|
1703
1703
|
|
|
1704
|
+
interface IMention {
|
|
1705
|
+
id: string;
|
|
1706
|
+
mentionedId: string;
|
|
1707
|
+
mentionType: string;
|
|
1708
|
+
mentionedCommunity?: {
|
|
1709
|
+
slug: string;
|
|
1710
|
+
name: string;
|
|
1711
|
+
id: string;
|
|
1712
|
+
image: string;
|
|
1713
|
+
};
|
|
1714
|
+
mentionedPage?: {
|
|
1715
|
+
name: string;
|
|
1716
|
+
slug: string;
|
|
1717
|
+
logo: string;
|
|
1718
|
+
id: string;
|
|
1719
|
+
};
|
|
1720
|
+
mentionedUser?: {
|
|
1721
|
+
id: string;
|
|
1722
|
+
name: string;
|
|
1723
|
+
slug: string;
|
|
1724
|
+
avatar: string;
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
interface CreatePostFormState {
|
|
1729
|
+
content: string;
|
|
1730
|
+
isUploading: boolean;
|
|
1731
|
+
hashtags?: string[];
|
|
1732
|
+
setHashtags: (value?: string[]) => void;
|
|
1733
|
+
mentions?: IMention[];
|
|
1734
|
+
setMentions: (mentions?: IMention[]) => void;
|
|
1735
|
+
mentionedUsers?: User$3[];
|
|
1736
|
+
setMentionedUsers: (users?: User$3[]) => void;
|
|
1737
|
+
uploadedMedia: string[];
|
|
1738
|
+
selectedFiles: File[];
|
|
1739
|
+
currentAssets: {
|
|
1740
|
+
id: string;
|
|
1741
|
+
url: string;
|
|
1742
|
+
}[];
|
|
1743
|
+
assetsToDelete: {
|
|
1744
|
+
id: string;
|
|
1745
|
+
url: string;
|
|
1746
|
+
}[];
|
|
1747
|
+
setCurrentAssets: (assets: {
|
|
1748
|
+
id: string;
|
|
1749
|
+
url: string;
|
|
1750
|
+
}[]) => void;
|
|
1751
|
+
setContent: (content: string) => void;
|
|
1752
|
+
handleMediaUpload: (files: FileList | null, ignore?: boolean) => void;
|
|
1753
|
+
removeMedia: (index: number) => void;
|
|
1754
|
+
resetForm: () => void;
|
|
1755
|
+
resetFormContent: () => void;
|
|
1756
|
+
isValid: boolean;
|
|
1757
|
+
isCreatingThePost: boolean;
|
|
1758
|
+
setIsCreatingThePost: (isCreatingThePost: boolean) => void;
|
|
1759
|
+
uploadProgress: number;
|
|
1760
|
+
setUploadProgress: (progress: number) => void;
|
|
1761
|
+
isProcessingPost: boolean;
|
|
1762
|
+
setIsProcessingPost: (isProcessing: boolean) => void;
|
|
1763
|
+
progressText: string;
|
|
1764
|
+
setProgressText: (text: string) => void;
|
|
1765
|
+
}
|
|
1766
|
+
declare const useCreatePostFormStore: zustand.UseBoundStore<zustand.StoreApi<CreatePostFormState>>;
|
|
1767
|
+
|
|
1768
|
+
type User = {
|
|
1769
|
+
id?: string;
|
|
1770
|
+
name?: string;
|
|
1771
|
+
slug?: string;
|
|
1772
|
+
about?: string;
|
|
1773
|
+
email?: string;
|
|
1774
|
+
phone?: string;
|
|
1775
|
+
isOpenToWork?: boolean;
|
|
1776
|
+
gender?: string;
|
|
1777
|
+
banner?: string;
|
|
1778
|
+
isContact?: boolean;
|
|
1779
|
+
isFollowed?: boolean;
|
|
1780
|
+
isFollowedBy?: boolean;
|
|
1781
|
+
birthDate?: string;
|
|
1782
|
+
nationality?: string;
|
|
1783
|
+
headline?: string;
|
|
1784
|
+
country?: string;
|
|
1785
|
+
city?: string;
|
|
1786
|
+
street?: string;
|
|
1787
|
+
countryCode?: string;
|
|
1788
|
+
profession?: string;
|
|
1789
|
+
addresses?: {
|
|
1790
|
+
country?: string;
|
|
1791
|
+
city?: string;
|
|
1792
|
+
address?: string;
|
|
1793
|
+
}[];
|
|
1794
|
+
address?: {
|
|
1795
|
+
country?: string;
|
|
1796
|
+
city?: string;
|
|
1797
|
+
address?: string;
|
|
1798
|
+
};
|
|
1799
|
+
avatar?: string;
|
|
1800
|
+
avatarDisplay?: string;
|
|
1801
|
+
provider?: string;
|
|
1802
|
+
role?: string;
|
|
1803
|
+
status?: string;
|
|
1804
|
+
createdAt?: string;
|
|
1805
|
+
updatedAt?: string;
|
|
1806
|
+
isPublic?: boolean;
|
|
1807
|
+
currentCompany?: string;
|
|
1808
|
+
person?: IPerson;
|
|
1809
|
+
link?: string;
|
|
1810
|
+
links?: string[];
|
|
1811
|
+
};
|
|
1812
|
+
interface IPerson {
|
|
1813
|
+
gender?: string;
|
|
1814
|
+
birthDate?: Date;
|
|
1815
|
+
nationality?: string;
|
|
1816
|
+
maritalStatus?: string;
|
|
1817
|
+
salaryExpectation?: string;
|
|
1818
|
+
countryCode?: string;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
type PostAttachmentProps = {
|
|
1822
|
+
title?: string;
|
|
1823
|
+
description?: string;
|
|
1824
|
+
imageUrl?: string;
|
|
1825
|
+
url?: string;
|
|
1826
|
+
type: string;
|
|
1827
|
+
};
|
|
1828
|
+
type Post = {
|
|
1829
|
+
user: User;
|
|
1830
|
+
postType: "NORMAL" | "REEL" | "ARTICLE";
|
|
1831
|
+
id: string;
|
|
1832
|
+
createdAt: string;
|
|
1833
|
+
scheduledAt?: string;
|
|
1834
|
+
bio: string;
|
|
1835
|
+
content: string;
|
|
1836
|
+
totalShares: number;
|
|
1837
|
+
totalReactions?: number;
|
|
1838
|
+
totalComments?: number;
|
|
1839
|
+
attachment?: PostAttachmentProps;
|
|
1840
|
+
isFollowed?: boolean;
|
|
1841
|
+
isContact?: boolean;
|
|
1842
|
+
isArticle?: boolean;
|
|
1843
|
+
isDraft?: boolean;
|
|
1844
|
+
expiresAt?: string | null;
|
|
1845
|
+
link: {
|
|
1846
|
+
title: string;
|
|
1847
|
+
description: string;
|
|
1848
|
+
imageUrl: string;
|
|
1849
|
+
url: string;
|
|
1850
|
+
};
|
|
1851
|
+
images: PostAssetProps[];
|
|
1852
|
+
videos: PostAssetProps[];
|
|
1853
|
+
reactions: PostReactionsProps[];
|
|
1854
|
+
comments: CommentProps[];
|
|
1855
|
+
sharedPostId: string;
|
|
1856
|
+
pageId?: string;
|
|
1857
|
+
page?: {
|
|
1858
|
+
id?: string;
|
|
1859
|
+
name?: string;
|
|
1860
|
+
slug?: string;
|
|
1861
|
+
sector?: string;
|
|
1862
|
+
banner?: string;
|
|
1863
|
+
logo?: string;
|
|
1864
|
+
site?: string;
|
|
1865
|
+
};
|
|
1866
|
+
media?: unknown;
|
|
1867
|
+
linkPreview?: unknown;
|
|
1868
|
+
visibility?: string;
|
|
1869
|
+
sharedPost: Post;
|
|
1870
|
+
title?: string;
|
|
1871
|
+
stats?: {
|
|
1872
|
+
reactionCount?: number;
|
|
1873
|
+
commentCount?: number;
|
|
1874
|
+
shareCount?: number;
|
|
1875
|
+
};
|
|
1876
|
+
sharedContext?: unknown;
|
|
1877
|
+
mention?: IMention[];
|
|
1878
|
+
community?: {
|
|
1879
|
+
id: string;
|
|
1880
|
+
visibility: string;
|
|
1881
|
+
slug: string;
|
|
1882
|
+
banner?: string;
|
|
1883
|
+
createdAt?: string;
|
|
1884
|
+
description?: string;
|
|
1885
|
+
image?: string;
|
|
1886
|
+
location?: string;
|
|
1887
|
+
name: string;
|
|
1888
|
+
owner: {
|
|
1889
|
+
id: string;
|
|
1890
|
+
name: string;
|
|
1891
|
+
slug: string;
|
|
1892
|
+
email?: string;
|
|
1893
|
+
};
|
|
1894
|
+
ownerId: string;
|
|
1895
|
+
members?: {
|
|
1896
|
+
userId: string;
|
|
1897
|
+
user: {
|
|
1898
|
+
id: string;
|
|
1899
|
+
name: string;
|
|
1900
|
+
slug: string;
|
|
1901
|
+
};
|
|
1902
|
+
}[];
|
|
1903
|
+
};
|
|
1904
|
+
userId?: string;
|
|
1905
|
+
sharedInCommunity?: {
|
|
1906
|
+
id: string;
|
|
1907
|
+
slug: string;
|
|
1908
|
+
visibility: string;
|
|
1909
|
+
name: string;
|
|
1910
|
+
banner?: string;
|
|
1911
|
+
image?: string;
|
|
1912
|
+
location?: string;
|
|
1913
|
+
ownerId: string;
|
|
1914
|
+
owner: {
|
|
1915
|
+
id: string;
|
|
1916
|
+
slug: string;
|
|
1917
|
+
name: string;
|
|
1918
|
+
};
|
|
1919
|
+
};
|
|
1920
|
+
communityId?: string;
|
|
1921
|
+
};
|
|
1922
|
+
type PostAssetProps = {
|
|
1923
|
+
id: string;
|
|
1924
|
+
url: string;
|
|
1925
|
+
type?: "image" | "video" | "pdf";
|
|
1926
|
+
createdAt?: string;
|
|
1927
|
+
};
|
|
1928
|
+
type PostReactionsProps = {
|
|
1929
|
+
id: string;
|
|
1930
|
+
userId: string;
|
|
1931
|
+
postId: string;
|
|
1932
|
+
reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY";
|
|
1933
|
+
createdAt: string;
|
|
1934
|
+
updatedAt: string;
|
|
1935
|
+
user: User;
|
|
1936
|
+
};
|
|
1937
|
+
type CommentReactionsProps = {
|
|
1938
|
+
id: string;
|
|
1939
|
+
userId: string;
|
|
1940
|
+
commentId: string;
|
|
1941
|
+
reaction: "LIKE" | "LOVE" | "HAHA" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT";
|
|
1942
|
+
createdAt: string;
|
|
1943
|
+
updatedAt: string;
|
|
1944
|
+
user?: User;
|
|
1945
|
+
};
|
|
1946
|
+
type CommentProps = {
|
|
1947
|
+
id: string;
|
|
1948
|
+
userId: string;
|
|
1949
|
+
postId: string;
|
|
1950
|
+
answerId: string;
|
|
1951
|
+
content: string;
|
|
1952
|
+
imageUrl: string;
|
|
1953
|
+
createdAt: string;
|
|
1954
|
+
updatedAt: string;
|
|
1955
|
+
user: User;
|
|
1956
|
+
reactions: CommentReactionsProps[];
|
|
1957
|
+
totalReactions?: number;
|
|
1958
|
+
answers: CommentProps[];
|
|
1959
|
+
totalAnswers: number;
|
|
1960
|
+
page?: {
|
|
1961
|
+
id: string;
|
|
1962
|
+
name: string;
|
|
1963
|
+
slug: string;
|
|
1964
|
+
sector: string;
|
|
1965
|
+
};
|
|
1966
|
+
};
|
|
1967
|
+
|
|
1968
|
+
type PostType = "text" | "media" | "job" | "reel" | "schedule" | null;
|
|
1969
|
+
type InitialStep = "main" | "schedule" | "scheduled-posts" | null;
|
|
1970
|
+
interface CreatePostState {
|
|
1971
|
+
isOpen: boolean;
|
|
1972
|
+
post: Post | undefined;
|
|
1973
|
+
setPost: (post: Post | undefined) => void;
|
|
1974
|
+
postType: PostType;
|
|
1975
|
+
initialStep: InitialStep;
|
|
1976
|
+
openModal: (type?: PostType, step?: InitialStep) => void;
|
|
1977
|
+
closeModal: (preserveFormState?: boolean) => void;
|
|
1978
|
+
operation: "create" | "update";
|
|
1979
|
+
setOperation: (operation: "create" | "update") => void;
|
|
1980
|
+
setInitialStep: (step: InitialStep) => void;
|
|
1981
|
+
}
|
|
1982
|
+
declare const useCreatePostStore: zustand.UseBoundStore<zustand.StoreApi<CreatePostState>>;
|
|
1983
|
+
|
|
1704
1984
|
declare const PostCardArticle: ({ src, title, content, isCompact, classImage, fontSize }: {
|
|
1705
1985
|
src?: string;
|
|
1706
1986
|
title?: string;
|
|
@@ -1764,4 +2044,4 @@ declare function createPersistentState<T>(key: string, defaultValue: T): T;
|
|
|
1764
2044
|
*/
|
|
1765
2045
|
declare function usePersistentUIState<T>(key: string, defaultValue: T): readonly [T, React$1.Dispatch<React$1.SetStateAction<T>>];
|
|
1766
2046
|
|
|
1767
|
-
export { ActivateAccountModal, AddRating, AddressAutocompleteInput, AnimatedModal, ArticleContent, ArticleViewer, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, ChatListWrapper, ChatView, ChatViewDesktopPage, CheckBoxInput, ContactsModal, ControlButtons, CountryDisplay, CountryInput, CreatePostCard, CreatePostModal, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, DownloadMobileVersionBanner, DownloadModalTrigger, GradientModal, Header, MessageButton, MessagesButtonFromPage, MirantesButton, MirantesFoundationProvider, NoRecruitmentResponsiveIlustration, PageChatContent, PageChatContentHeader, PageChatInput, PageChatList, PageChatListWrapper, PageChatUserSuggestions, PageFloatFooter, PageMessageWrapper, PagesFeedTrigger, PdfFooter, PdfFullscreenView, PdfReader, PdfReaderHeader, PostCardArticle, ProgressBar, RadioButtonInput, RatingReviewsList, RatingUserCard, RatingsCard, RatingsSummary, RattingSuggestionCard, ReactPostButton, ResponsiveDrawer, SalaryInputWithButton, Calendar as ScheduleCalendar, SharePostModal, ShareProfile, ShareProfileButton, ShareProfileModal, Spinner, WorkspacePanel, clearSettingsCookie, closeLogoutChannel, createPersistentState, getInitials, getSettingsFromCookie, joinUrlWithPathAndQuery, onLogout, stringToObj, useApiCheckRater, useApiGetPage, useArticleNavigation, useArticleStore, useAssetVersions, useBestAssetVersion, useCandidaciesTriggerStore, useCommunityTriggerStore, useJobTriggerStore, useLoadSettings, useMessageAppStore, useMirantesFoundation, useModalArticleStore, useModalStore, useOportunitiesStore, usePeriodicDownloadBanner, usePersistentUIState, useRestorePendingChat, useSavedItemsStore, useSetChatVisibility, useSignedUrl, useUploadAsset, useUploadAssetsBulk };
|
|
2047
|
+
export { ActivateAccountModal, AddRating, AddressAutocompleteInput, AnimatedModal, ArticleContent, ArticleViewer, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, ChatListWrapper, ChatView, ChatViewDesktopPage, CheckBoxInput, ContactsModal, ControlButtons, CountryDisplay, CountryInput, CreatePostCard, CreatePostModal, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, DownloadMobileVersionBanner, DownloadModalTrigger, GradientModal, Header, MessageButton, MessagesButtonFromPage, MirantesButton, MirantesFoundationProvider, NoRecruitmentResponsiveIlustration, PageChatContent, PageChatContentHeader, PageChatInput, PageChatList, PageChatListWrapper, PageChatUserSuggestions, PageFloatFooter, PageMessageWrapper, PagesFeedTrigger, PdfFooter, PdfFullscreenView, PdfReader, PdfReaderHeader, PostCardArticle, ProgressBar, RadioButtonInput, RatingReviewsList, RatingUserCard, RatingsCard, RatingsSummary, RattingSuggestionCard, ReactPostButton, ResponsiveDrawer, SalaryInputWithButton, Calendar as ScheduleCalendar, SharePostModal, ShareProfile, ShareProfileButton, ShareProfileModal, Spinner, WorkspacePanel, clearSettingsCookie, closeLogoutChannel, createPersistentState, getInitials, getSettingsFromCookie, joinUrlWithPathAndQuery, onLogout, stringToObj, useApiCheckRater, useApiGetPage, useArticleNavigation, useArticleStore, useAssetVersions, useBestAssetVersion, useCandidaciesTriggerStore, useCommunityTriggerStore, useCreatePostFormStore, useCreatePostStore, useJobTriggerStore, useLoadSettings, useMessageAppStore, useMirantesFoundation, useModalArticleStore, useModalStore, useOportunitiesStore, usePeriodicDownloadBanner, usePersistentUIState, useRestorePendingChat, useSavedItemsStore, useSetChatVisibility, useSignedUrl, useUploadAsset, useUploadAssetsBulk };
|